- Add PublicCampaignsController for public campaign analytics
- Add public routes for /public/analytics/{slug} and /api/campaigns/{slug}
- Add public campaign analytics view with charts and KPIs
- Support for campaign sharing via custom slugs
- Real-time analytics with ApexCharts integration
3 lines
1.1 MiB
Plaintext
3 lines
1.1 MiB
Plaintext
/*! For license information please see vendor.9519303acbdcceec1cd1.js.LICENSE.txt */
|
|
(()=>{var t={34:(t,e,i)=>{"use strict";var s=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:s(t)}},283:(t,e,i)=>{"use strict";var s=i(9504),n=i(9039),a=i(4901),r=i(9297),o=i(3724),l=i(350).CONFIGURABLE,c=i(3706),h=i(1181),d=h.enforce,u=h.get,p=String,g=Object.defineProperty,f=s("".slice),m=s("".replace),x=s([].join),b=o&&!n(function(){return 8!==g(function(){},"length",{value:8}).length}),v=String(String).split("String"),y=t.exports=function(t,e,i){"Symbol("===f(p(e),0,7)&&(e="["+m(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!r(t,"name")||l&&t.name!==e)&&(o?g(t,"name",{value:e,configurable:!0}):t.name=e),b&&i&&r(i,"arity")&&t.length!==i.arity&&g(t,"length",{value:i.arity});try{i&&r(i,"constructor")&&i.constructor?o&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var s=d(t);return r(s,"source")||(s.source=x(v,"string"==typeof e?e:"")),t};Function.prototype.toString=y(function(){return a(this)&&u(this).source||c(this)},"toString")},350:(t,e,i)=>{"use strict";var s=i(3724),n=i(9297),a=Function.prototype,r=s&&Object.getOwnPropertyDescriptor,o=n(a,"name"),l=o&&"something"===function(){}.name,c=o&&(!s||s&&r(a,"name").configurable);t.exports={EXISTS:o,PROPER:l,CONFIGURABLE:c}},397:(t,e,i)=>{"use strict";var s=i(7751);t.exports=s("document","documentElement")},421:t=>{"use strict";t.exports={}},506:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(1354),n=i.n(s),a=i(6314),r=i.n(a)()(n());r.push([t.id,":root {\n --swiper-navigation-size: 44px;\n /*\n --swiper-navigation-top-offset: 50%;\n --swiper-navigation-sides-offset: 10px;\n --swiper-navigation-color: var(--swiper-theme-color);\n */\n}\n.swiper-button-prev,\n.swiper-button-next {\n position: absolute;\n top: var(--swiper-navigation-top-offset, 50%);\n width: calc(var(--swiper-navigation-size) / 44 * 27);\n height: var(--swiper-navigation-size);\n margin-top: calc(0px - (var(--swiper-navigation-size) / 2));\n z-index: 10;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--swiper-navigation-color, var(--swiper-theme-color));\n}\n.swiper-button-prev.swiper-button-disabled,\n.swiper-button-next.swiper-button-disabled {\n opacity: 0.35;\n cursor: auto;\n pointer-events: none;\n}\n.swiper-button-prev.swiper-button-hidden,\n.swiper-button-next.swiper-button-hidden {\n opacity: 0;\n cursor: auto;\n pointer-events: none;\n}\n.swiper-navigation-disabled .swiper-button-prev,\n.swiper-navigation-disabled .swiper-button-next {\n display: none !important;\n}\n.swiper-button-prev svg,\n.swiper-button-next svg {\n width: 100%;\n height: 100%;\n object-fit: contain;\n transform-origin: center;\n}\n.swiper-rtl .swiper-button-prev svg,\n.swiper-rtl .swiper-button-next svg {\n transform: rotate(180deg);\n}\n.swiper-button-prev,\n.swiper-rtl .swiper-button-next {\n left: var(--swiper-navigation-sides-offset, 10px);\n right: auto;\n}\n.swiper-button-next,\n.swiper-rtl .swiper-button-prev {\n right: var(--swiper-navigation-sides-offset, 10px);\n left: auto;\n}\n.swiper-button-lock {\n display: none;\n}\n/* Navigation font start */\n.swiper-button-prev:after,\n.swiper-button-next:after {\n font-family: swiper-icons;\n font-size: var(--swiper-navigation-size);\n text-transform: none !important;\n letter-spacing: 0;\n font-variant: initial;\n line-height: 1;\n}\n.swiper-button-prev:after,\n.swiper-rtl .swiper-button-next:after {\n content: 'prev';\n}\n.swiper-button-next,\n.swiper-rtl .swiper-button-prev {\n right: var(--swiper-navigation-sides-offset, 10px);\n left: auto;\n}\n.swiper-button-next:after,\n.swiper-rtl .swiper-button-prev:after {\n content: 'next';\n}\n/* Navigation font end */\n","",{version:3,sources:["webpack://./node_modules/swiper/modules/navigation.css"],names:[],mappings:"AAAA;EACE,8BAA8B;EAC9B;;;;GAIC;AACH;AACA;;EAEE,kBAAkB;EAClB,6CAA6C;EAC7C,oDAAoD;EACpD,qCAAqC;EACrC,2DAA2D;EAC3D,WAAW;EACX,eAAe;EACf,aAAa;EACb,mBAAmB;EACnB,uBAAuB;EACvB,gEAAgE;AAClE;AACA;;EAEE,aAAa;EACb,YAAY;EACZ,oBAAoB;AACtB;AACA;;EAEE,UAAU;EACV,YAAY;EACZ,oBAAoB;AACtB;AACA;;EAEE,wBAAwB;AAC1B;AACA;;EAEE,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,wBAAwB;AAC1B;AACA;;EAEE,yBAAyB;AAC3B;AACA;;EAEE,iDAAiD;EACjD,WAAW;AACb;AACA;;EAEE,kDAAkD;EAClD,UAAU;AACZ;AACA;EACE,aAAa;AACf;AACA,0BAA0B;AAC1B;;EAEE,yBAAyB;EACzB,wCAAwC;EACxC,+BAA+B;EAC/B,iBAAiB;EACjB,qBAAqB;EACrB,cAAc;AAChB;AACA;;EAEE,eAAe;AACjB;AACA;;EAEE,kDAAkD;EAClD,UAAU;AACZ;AACA;;EAEE,eAAe;AACjB;AACA,wBAAwB",sourcesContent:[":root {\n --swiper-navigation-size: 44px;\n /*\n --swiper-navigation-top-offset: 50%;\n --swiper-navigation-sides-offset: 10px;\n --swiper-navigation-color: var(--swiper-theme-color);\n */\n}\n.swiper-button-prev,\n.swiper-button-next {\n position: absolute;\n top: var(--swiper-navigation-top-offset, 50%);\n width: calc(var(--swiper-navigation-size) / 44 * 27);\n height: var(--swiper-navigation-size);\n margin-top: calc(0px - (var(--swiper-navigation-size) / 2));\n z-index: 10;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--swiper-navigation-color, var(--swiper-theme-color));\n}\n.swiper-button-prev.swiper-button-disabled,\n.swiper-button-next.swiper-button-disabled {\n opacity: 0.35;\n cursor: auto;\n pointer-events: none;\n}\n.swiper-button-prev.swiper-button-hidden,\n.swiper-button-next.swiper-button-hidden {\n opacity: 0;\n cursor: auto;\n pointer-events: none;\n}\n.swiper-navigation-disabled .swiper-button-prev,\n.swiper-navigation-disabled .swiper-button-next {\n display: none !important;\n}\n.swiper-button-prev svg,\n.swiper-button-next svg {\n width: 100%;\n height: 100%;\n object-fit: contain;\n transform-origin: center;\n}\n.swiper-rtl .swiper-button-prev svg,\n.swiper-rtl .swiper-button-next svg {\n transform: rotate(180deg);\n}\n.swiper-button-prev,\n.swiper-rtl .swiper-button-next {\n left: var(--swiper-navigation-sides-offset, 10px);\n right: auto;\n}\n.swiper-button-next,\n.swiper-rtl .swiper-button-prev {\n right: var(--swiper-navigation-sides-offset, 10px);\n left: auto;\n}\n.swiper-button-lock {\n display: none;\n}\n/* Navigation font start */\n.swiper-button-prev:after,\n.swiper-button-next:after {\n font-family: swiper-icons;\n font-size: var(--swiper-navigation-size);\n text-transform: none !important;\n letter-spacing: 0;\n font-variant: initial;\n line-height: 1;\n}\n.swiper-button-prev:after,\n.swiper-rtl .swiper-button-next:after {\n content: 'prev';\n}\n.swiper-button-next,\n.swiper-rtl .swiper-button-prev {\n right: var(--swiper-navigation-sides-offset, 10px);\n left: auto;\n}\n.swiper-button-next:after,\n.swiper-rtl .swiper-button-prev:after {\n content: 'next';\n}\n/* Navigation font end */\n"],sourceRoot:""}]);const o=r},540:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},616:(t,e,i)=>{"use strict";var s=i(9039);t.exports=!s(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},655:(t,e,i)=>{"use strict";var s=i(6955),n=String;t.exports=function(t){if("Symbol"===s(t))throw new TypeError("Cannot convert a Symbol value to a string");return n(t)}},741:t=>{"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var s=+t;return(s>0?i:e)(s)}},757:(t,e,i)=>{"use strict";var s=i(7751),n=i(4901),a=i(1625),r=i(7040),o=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=s("Symbol");return n(e)&&a(e.prototype,o(t))}},947:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(1354),n=i.n(s),a=i(6314),r=i.n(a)()(n());r.push([t.id,'@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n display: inline-block;\n position: relative;\n width: 16px;\n height: 16px;\n font-size: 16px;\n line-height: 16px;\n margin-right: 4px;\n text-align: center;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n content: "";\n display: inline-block;\n width: 100%;\n text-align: center;\n color: currentcolor;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n font-size: 26px;\n font-family: Arial, Helvetica, sans-serif;\n line-height: 14px;\n font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n content: "\\25A0";\n transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n content: "\\25C6";\n font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n content: "\\25B2";\n font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n content: "\\2715";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n content: "\\2715";\n transform: rotate(45deg) translate(-1px, -1px);\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n content: "\\2605";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n content: "\\2726";\n font-size: 20px;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_shape {\n stroke-width: 1;\n stroke-dasharray: 10 10;\n stroke: black;\n stroke-opacity: 0.1;\n pointer-events: none;\n fill: none;\n}\n\n.svg_select_handle {\n stroke-width: 3;\n stroke: black;\n fill: none;\n}\n\n.svg_select_handle_r {\n cursor: e-resize;\n}\n\n.svg_select_handle_l {\n cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n pointer-events: none;\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n transition: none !important;\n}',"",{version:3,sources:["webpack://./node_modules/apexcharts/dist/apexcharts.css"],names:[],mappings:"AAAA;EACE;IACE;EACF;;EAEA;IACE;EACF;AACF;;AAEA;;EAEE;;IAEE;EACF;AACF;;AAEA;EACE,kBAAkB;EAClB,yBAAyB;EACzB;AACF;;AAEA;EACE,wBAAwB;EACxB;AACF;;AAEA;EACE,kBAAkB;EAClB,mCAAmC;EACnC,2CAA2C;EAC3C;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;;;;;;EAOE,yBAAyB;EACzB;AACF;;AAEA;EACE,kBAAkB;EAClB,kBAAkB;AACpB;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB,iCAAiC;EACjC,eAAe;EACf,eAAe;EACf,UAAU;EACV,UAAU;EACV,oBAAoB;EACpB,kBAAkB;EAClB,SAAS;EACT,aAAa;EACb,sBAAsB;EACtB,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX;AACF;;AAEA;EACE,UAAU;EACV;AACF;;AAEA;EACE,yBAAyB;EACzB;AACF;;AAEA;EACE,WAAW;EACX;AACF;;AAEA;EACE;AACF;;AAEA;EACE,YAAY;EACZ,eAAe;EACf;AACF;;AAEA;EACE,mBAAmB;EACnB;AACF;;AAEA;EACE,6BAA6B;EAC7B;AACF;;AAEA;;;EAGE,qBAAqB;EACrB,gBAAgB;EAChB;AACF;;AAEA;;;;;;EAME;AACF;;AAEA;;EAEE;AACF;;AAEA;;;EAGE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,eAAe;EACf,iBAAiB;EACjB,iBAAiB;EACjB,kBAAkB;EAClB,sBAAsB;EACtB,cAAc;AAChB;;AAEA;EACE,WAAW;EACX,qBAAqB;EACrB,WAAW;EACX,kBAAkB;EAClB,mBAAmB;EACnB,kCAAkC;EAClC,mCAAmC;EACnC,eAAe;EACf,yCAAyC;EACzC,iBAAiB;EACjB,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;;EAEE,gBAAgB;EAChB,gCAAgC;AAClC;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,8CAA8C;EAC9C,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,gBAAgB;EAChB,eAAe;AACjB;;AAEA;EACE,eAAe;EACf,aAAa;EACb,gBAAgB;EAChB,qBAAqB;EACrB;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE,aAAa;EACb;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,gBAAgB;EAChB;AACF;;AAEA;EACE,gBAAgB;EAChB,cAAc;EACd;AACF;;AAEA;;EAEE,UAAU;EACV,oBAAoB;EACpB,cAAc;EACd,eAAe;EACf,kBAAkB;EAClB,kBAAkB;EAClB,kBAAkB;EAClB,WAAW;EACX,mBAAmB;EACnB;AACF;;AAEA;EACE,iBAAiB;EACjB;AACF;;AAEA;EACE,6BAA6B;EAC7B,mCAAmC;EACnC;AACF;;AAEA;;EAEE,SAAS;EACT,yBAAyB;EACzB,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,kBAAkB;EAClB;AACF;;AAEA;EACE,yBAAyB;EACzB,iBAAiB;EACjB;AACF;;AAEA;EACE,yBAAyB;EACzB,iBAAiB;EACjB;AACF;;AAEA;;EAEE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE,UAAU;EACV;AACF;;AAEA;EACE;AACF;;AAEA;EACE,6BAA6B;EAC7B,mCAAmC;EACnC;AACF;;AAEA;;EAEE,QAAQ;EACR,yBAAyB;EACzB,YAAY;EACZ,SAAS;EACT,QAAQ;EACR,kBAAkB;EAClB;AACF;;AAEA;EACE,yBAAyB;EACzB,iBAAiB;EACjB;AACF;;AAEA;EACE,yBAAyB;EACzB,iBAAiB;EACjB;AACF;;AAEA;;EAEE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;EAEE,oBAAoB;EACpB,UAAU;EACV;AACF;;AAEA;;EAEE,UAAU;EACV;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,eAAe;EACf,uBAAuB;EACvB,aAAa;EACb,mBAAmB;EACnB,oBAAoB;EACpB,UAAU;AACZ;;AAEA;EACE,eAAe;EACf,aAAa;EACb,UAAU;AACZ;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;;;;;;;;EAQE,eAAe;EACf,WAAW;EACX,YAAY;EACZ,iBAAiB;EACjB,cAAc;EACd;AACF;;AAEA;;;;;EAKE;AACF;;AAEA;EACE,UAAU;EACV;AACF;;AAEA;;;;;;;;EAQE;AACF;;AAEA;;;EAGE;AACF;;AAEA;;;;;;EAME;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;;;EAGE;AACF;;AAEA;;EAEE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,qBAAqB;EACrB,kBAAkB;EAClB,SAAS;EACT;AACF;;AAEA;EACE,UAAU;EACV,eAAe;EACf;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,gBAAgB;EAChB,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,aAAa;EACb,8BAA8B;EAC9B;AACF;;AAEA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,SAAS;EACT,sBAAsB;EACtB,kBAAkB;EAClB,YAAY;EACZ,WAAW;EACX,UAAU;EACV,gBAAgB;EAChB,yBAAyB;EACzB;AACF;;AAEA;EACE,UAAU;EACV,mBAAmB;EACnB;AACF;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf;AACF;;AAEA;EACE;AACF;;AAEA;EACE,6BAA6B;EAC7B;AACF;;AAEA;EACE;IACE;EACF;AACF;;AAEA;;;EAGE,UAAU;AACZ;;AAEA;EACE,UAAU;EACV,0BAA0B;AAC5B;;AAEA;;;;;EAKE,eAAe;EACf;AACF;;AAEA;EACE,UAAU;EACV,sBAAsB;EACtB,uBAAuB;EACvB,6BAA6B;EAC7B;AACF;;AAEA;EACE,eAAe;AACjB;;AAEA;;;;;;;;;;;;;EAaE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,oBAAoB;AACtB;;AAEA;EACE,yBAAyB;EACzB,kBAAkB;EAClB,UAAU;EACV,YAAY;EACZ,WAAW;EACX;AACF;;AAEA;;;EAGE,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,MAAM;EACN;AACF;;AAEA;EACE,YAAY;EACZ,WAAW;EACX,gBAAgB;EAChB;AACF;;AAEA;EACE,gBAAgB;EAChB,WAAW;EACX;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE;AACF;;AAEA;EACE,2BAA2B;AAC7B",sourcesContent:['@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n display: inline-block;\n position: relative;\n width: 16px;\n height: 16px;\n font-size: 16px;\n line-height: 16px;\n margin-right: 4px;\n text-align: center;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n content: "";\n display: inline-block;\n width: 100%;\n text-align: center;\n color: currentcolor;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n font-size: 26px;\n font-family: Arial, Helvetica, sans-serif;\n line-height: 14px;\n font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n content: "\\25A0";\n transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n content: "\\25C6";\n font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n content: "\\25B2";\n font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n content: "\\2715";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n content: "\\2715";\n transform: rotate(45deg) translate(-1px, -1px);\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n content: "\\2605";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n content: "\\2726";\n font-size: 20px;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_shape {\n stroke-width: 1;\n stroke-dasharray: 10 10;\n stroke: black;\n stroke-opacity: 0.1;\n pointer-events: none;\n fill: none;\n}\n\n.svg_select_handle {\n stroke-width: 3;\n stroke: black;\n fill: none;\n}\n\n.svg_select_handle_r {\n cursor: e-resize;\n}\n\n.svg_select_handle_l {\n cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n pointer-events: none;\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n transition: none !important;\n}'],sourceRoot:""}]);const o=r},1034:(t,e,i)=>{"use strict";var s=i(9565),n=i(9297),a=i(1625),r=i(5213),o=i(7979),l=RegExp.prototype;t.exports=r.correct?function(t){return t.flags}:function(t){return r.correct||!a(l,t)||n(t,"flags")?t.flags:s(o,t)}},1072:(t,e,i)=>{"use strict";var s=i(1828),n=i(8727);t.exports=Object.keys||function(t){return s(t,n)}},1113:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},1181:(t,e,i)=>{"use strict";var s,n,a,r=i(8622),o=i(4576),l=i(34),c=i(6699),h=i(9297),d=i(7629),u=i(6119),p=i(421),g="Object already initialized",f=o.TypeError,m=o.WeakMap;if(r||d.state){var x=d.state||(d.state=new m);x.get=x.get,x.has=x.has,x.set=x.set,s=function(t,e){if(x.has(t))throw new f(g);return e.facade=t,x.set(t,e),e},n=function(t){return x.get(t)||{}},a=function(t){return x.has(t)}}else{var b=u("state");p[b]=!0,s=function(t,e){if(h(t,b))throw new f(g);return e.facade=t,c(t,b,e),e},n=function(t){return h(t,b)?t[b]:{}},a=function(t){return h(t,b)}}t.exports={set:s,get:n,has:a,enforce:function(t){return a(t)?n(t):s(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=n(e)).type!==t)throw new f("Incompatible receiver, "+t+" required");return i}}}},1291:(t,e,i)=>{"use strict";var s=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:s(e)}},1354:t=>{"use strict";t.exports=function(t){var e=t[1],i=t[3];if(!i)return e;if("function"==typeof btoa){var s=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),a="/*# ".concat(n," */");return[e].concat([a]).join("\n")}return[e].join("\n")}},1625:(t,e,i)=>{"use strict";var s=i(9504);t.exports=s({}.isPrototypeOf)},1828:(t,e,i)=>{"use strict";var s=i(9504),n=i(9297),a=i(5397),r=i(9617).indexOf,o=i(421),l=s([].push);t.exports=function(t,e){var i,s=a(t),c=0,h=[];for(i in s)!n(o,i)&&n(s,i)&&l(h,i);for(;e.length>c;)n(s,i=e[c++])&&(~r(h,i)||l(h,i));return h}},2087:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(1354),n=i.n(s),a=i(6314),r=i.n(a)()(n());r.push([t.id,"","",{version:3,sources:[],names:[],mappings:"",sourceRoot:""}]);const o=r},2140:(t,e,i)=>{"use strict";var s={};s[i(8227)("toStringTag")]="z",t.exports="[object z]"===String(s)},2195:(t,e,i)=>{"use strict";var s=i(9504),n=s({}.toString),a=s("".slice);t.exports=function(t){return a(n(t),8,-1)}},2360:(t,e,i)=>{"use strict";var s,n=i(8551),a=i(6801),r=i(8727),o=i(421),l=i(397),c=i(4055),h=i(6119),d="prototype",u="script",p=h("IE_PROTO"),g=function(){},f=function(t){return"<"+u+">"+t+"</"+u+">"},m=function(t){t.write(f("")),t.close();var e=t.parentWindow.Object;return t=null,e},x=function(){try{s=new ActiveXObject("htmlfile")}catch(t){}var t,e,i;x="undefined"!=typeof document?document.domain&&s?m(s):(e=c("iframe"),i="java"+u+":",e.style.display="none",l.appendChild(e),e.src=String(i),(t=e.contentWindow.document).open(),t.write(f("document.F=Object")),t.close(),t.F):m(s);for(var n=r.length;n--;)delete x[d][r[n]];return x()};o[p]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(g[d]=n(t),i=new g,g[d]=null,i[p]=t):i=x(),void 0===e?i:a.f(i,e)}},2478:(t,e,i)=>{"use strict";var s=i(9504),n=i(8981),a=Math.floor,r=s("".charAt),o=s("".replace),l=s("".slice),c=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,h=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,i,s,d,u){var p=i+t.length,g=s.length,f=h;return void 0!==d&&(d=n(d),f=c),o(u,f,function(n,o){var c;switch(r(o,0)){case"$":return"$";case"&":return t;case"`":return l(e,0,i);case"'":return l(e,p);case"<":c=d[l(o,1,-1)];break;default:var h=+o;if(0===h)return n;if(h>g){var u=a(h/10);return 0===u?n:u<=g?void 0===s[u-1]?r(o,1):s[u-1]+r(o,1):n}c=s[h-1]}return void 0===c?"":c})}},2777:(t,e,i)=>{"use strict";var s=i(9565),n=i(34),a=i(757),r=i(5966),o=i(4270),l=i(8227),c=TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!n(t)||a(t))return t;var i,l=r(t,h);if(l){if(void 0===e&&(e="default"),i=s(l,t,e),!n(i)||a(i))return i;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),o(t,e)}},2796:(t,e,i)=>{"use strict";var s=i(9039),n=i(4901),a=/#|\.prototype\./,r=function(t,e){var i=l[o(t)];return i===h||i!==c&&(n(e)?s(e):!!e)},o=r.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=r.data={},c=r.NATIVE="N",h=r.POLYFILL="P";t.exports=r},2839:(t,e,i)=>{"use strict";var s=i(4576).navigator,n=s&&s.userAgent;t.exports=n?String(n):""},2870:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var s=i(1354),n=i.n(s),a=i(6314),r=i.n(a),o=i(4417),l=i.n(o),c=new URL(i(6085),i.b),h=r()(n()),d=l()(c);h.push([t.id,`/**\n * Swiper 11.2.10\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2025 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: June 28, 2025\n */\n\n/* FONT_START */\n@font-face {\n font-family: 'swiper-icons';\n src: url(${d});\n font-weight: 400;\n font-style: normal;\n}\n/* FONT_END */\n:root {\n --swiper-theme-color: #007aff;\n /*\n --swiper-preloader-color: var(--swiper-theme-color);\n --swiper-wrapper-transition-timing-function: initial;\n */\n}\n:host {\n position: relative;\n display: block;\n margin-left: auto;\n margin-right: auto;\n z-index: 1;\n}\n.swiper {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n /* Fix of Webkit flickering */\n z-index: 1;\n display: block;\n}\n.swiper-vertical > .swiper-wrapper {\n flex-direction: column;\n}\n.swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n transition-property: transform;\n transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);\n box-sizing: content-box;\n}\n.swiper-android .swiper-slide,\n.swiper-ios .swiper-slide,\n.swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n}\n.swiper-horizontal {\n touch-action: pan-y;\n}\n.swiper-vertical {\n touch-action: pan-x;\n}\n.swiper-slide {\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n position: relative;\n transition-property: transform;\n display: block;\n}\n.swiper-slide-invisible-blank {\n visibility: hidden;\n}\n/* Auto Height */\n.swiper-autoheight,\n.swiper-autoheight .swiper-slide {\n height: auto;\n}\n.swiper-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n}\n.swiper-backface-hidden .swiper-slide {\n transform: translateZ(0);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n/* 3D Effects */\n.swiper-3d.swiper-css-mode .swiper-wrapper {\n perspective: 1200px;\n}\n.swiper-3d .swiper-wrapper {\n transform-style: preserve-3d;\n}\n.swiper-3d {\n perspective: 1200px;\n}\n.swiper-3d .swiper-slide,\n.swiper-3d .swiper-cube-shadow {\n transform-style: preserve-3d;\n}\n/* CSS Mode */\n.swiper-css-mode > .swiper-wrapper {\n overflow: auto;\n scrollbar-width: none;\n /* For Firefox */\n -ms-overflow-style: none;\n /* For Internet Explorer and Edge */\n}\n.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {\n display: none;\n}\n.swiper-css-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: start start;\n}\n.swiper-css-mode.swiper-horizontal > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n}\n.swiper-css-mode.swiper-vertical > .swiper-wrapper {\n scroll-snap-type: y mandatory;\n}\n.swiper-css-mode.swiper-free-mode > .swiper-wrapper {\n scroll-snap-type: none;\n}\n.swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: none;\n}\n.swiper-css-mode.swiper-centered > .swiper-wrapper::before {\n content: '';\n flex-shrink: 0;\n order: 9999;\n}\n.swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: center center;\n scroll-snap-stop: always;\n}\n.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-inline-start: var(--swiper-centered-offset-before);\n}\n.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {\n height: 100%;\n min-height: 1px;\n width: var(--swiper-centered-offset-after);\n}\n.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {\n margin-block-start: var(--swiper-centered-offset-before);\n}\n.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {\n width: 100%;\n min-width: 1px;\n height: var(--swiper-centered-offset-after);\n}\n/* Slide styles start */\n/* 3D Shadows */\n.swiper-3d .swiper-slide-shadow,\n.swiper-3d .swiper-slide-shadow-left,\n.swiper-3d .swiper-slide-shadow-right,\n.swiper-3d .swiper-slide-shadow-top,\n.swiper-3d .swiper-slide-shadow-bottom,\n.swiper-3d .swiper-slide-shadow,\n.swiper-3d .swiper-slide-shadow-left,\n.swiper-3d .swiper-slide-shadow-right,\n.swiper-3d .swiper-slide-shadow-top,\n.swiper-3d .swiper-slide-shadow-bottom {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 10;\n}\n.swiper-3d .swiper-slide-shadow {\n background: rgba(0, 0, 0, 0.15);\n}\n.swiper-3d .swiper-slide-shadow-left {\n background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-right {\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-top {\n background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-bottom {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-lazy-preloader {\n width: 42px;\n height: 42px;\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -21px;\n margin-top: -21px;\n z-index: 10;\n transform-origin: 50%;\n box-sizing: border-box;\n border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));\n border-radius: 50%;\n border-top-color: transparent;\n}\n.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,\n.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {\n animation: swiper-preloader-spin 1s infinite linear;\n}\n.swiper-lazy-preloader-white {\n --swiper-preloader-color: #fff;\n}\n.swiper-lazy-preloader-black {\n --swiper-preloader-color: #000;\n}\n@keyframes swiper-preloader-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n/* Slide styles end */\n`,"",{version:3,sources:["webpack://./node_modules/swiper/swiper.css"],names:[],mappings:"AAAA;;;;;;;;;;EAUE;;AAEF,eAAe;AACf;EACE,2BAA2B;EAC3B,4CAA6rE;EAC7rE,gBAAgB;EAChB,kBAAkB;AACpB;AACA,aAAa;AACb;EACE,6BAA6B;EAC7B;;;GAGC;AACH;AACA;EACE,kBAAkB;EAClB,cAAc;EACd,iBAAiB;EACjB,kBAAkB;EAClB,UAAU;AACZ;AACA;EACE,iBAAiB;EACjB,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;EAChB,UAAU;EACV,6BAA6B;EAC7B,UAAU;EACV,cAAc;AAChB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,UAAU;EACV,aAAa;EACb,8BAA8B;EAC9B,qFAAqF;EACrF,uBAAuB;AACzB;AACA;;;EAGE,iCAAiC;AACnC;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,cAAc;EACd,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,8BAA8B;EAC9B,cAAc;AAChB;AACA;EACE,kBAAkB;AACpB;AACA,gBAAgB;AAChB;;EAEE,YAAY;AACd;AACA;EACE,uBAAuB;EACvB,sCAAsC;AACxC;AACA;EACE,wBAAwB;EACxB,mCAAmC;UAC3B,2BAA2B;AACrC;AACA,eAAe;AACf;EACE,mBAAmB;AACrB;AACA;EACE,4BAA4B;AAC9B;AACA;EACE,mBAAmB;AACrB;AACA;;EAEE,4BAA4B;AAC9B;AACA,aAAa;AACb;EACE,cAAc;EACd,qBAAqB;EACrB,gBAAgB;EAChB,wBAAwB;EACxB,mCAAmC;AACrC;AACA;EACE,aAAa;AACf;AACA;EACE,8BAA8B;AAChC;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,6BAA6B;AAC/B;AACA;EACE,sBAAsB;AACxB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,WAAW;EACX,cAAc;EACd,WAAW;AACb;AACA;EACE,gCAAgC;EAChC,wBAAwB;AAC1B;AACA;EACE,yDAAyD;AAC3D;AACA;EACE,YAAY;EACZ,eAAe;EACf,0CAA0C;AAC5C;AACA;EACE,wDAAwD;AAC1D;AACA;EACE,WAAW;EACX,cAAc;EACd,2CAA2C;AAC7C;AACA,uBAAuB;AACvB,eAAe;AACf;;;;;;;;;;EAUE,kBAAkB;EAClB,OAAO;EACP,MAAM;EACN,WAAW;EACX,YAAY;EACZ,oBAAoB;EACpB,WAAW;AACb;AACA;EACE,+BAA+B;AACjC;AACA;EACE,gFAAgF;AAClF;AACA;EACE,iFAAiF;AACnF;AACA;EACE,+EAA+E;AACjF;AACA;EACE,kFAAkF;AACpF;AACA;EACE,WAAW;EACX,YAAY;EACZ,kBAAkB;EAClB,SAAS;EACT,QAAQ;EACR,kBAAkB;EAClB,iBAAiB;EACjB,WAAW;EACX,qBAAqB;EACrB,sBAAsB;EACtB,0EAA0E;EAC1E,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;;EAEE,mDAAmD;AACrD;AACA;EACE,8BAA8B;AAChC;AACA;EACE,8BAA8B;AAChC;AACA;EACE;IACE,uBAAuB;EACzB;EACA;IACE,yBAAyB;EAC3B;AACF;AACA,qBAAqB",sourcesContent:["/**\n * Swiper 11.2.10\n * Most modern mobile touch slider and framework with hardware accelerated transitions\n * https://swiperjs.com\n *\n * Copyright 2014-2025 Vladimir Kharlampidi\n *\n * Released under the MIT License\n *\n * Released on: June 28, 2025\n */\n\n/* FONT_START */\n@font-face {\n font-family: 'swiper-icons';\n src: url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');\n font-weight: 400;\n font-style: normal;\n}\n/* FONT_END */\n:root {\n --swiper-theme-color: #007aff;\n /*\n --swiper-preloader-color: var(--swiper-theme-color);\n --swiper-wrapper-transition-timing-function: initial;\n */\n}\n:host {\n position: relative;\n display: block;\n margin-left: auto;\n margin-right: auto;\n z-index: 1;\n}\n.swiper {\n margin-left: auto;\n margin-right: auto;\n position: relative;\n overflow: hidden;\n list-style: none;\n padding: 0;\n /* Fix of Webkit flickering */\n z-index: 1;\n display: block;\n}\n.swiper-vertical > .swiper-wrapper {\n flex-direction: column;\n}\n.swiper-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n z-index: 1;\n display: flex;\n transition-property: transform;\n transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);\n box-sizing: content-box;\n}\n.swiper-android .swiper-slide,\n.swiper-ios .swiper-slide,\n.swiper-wrapper {\n transform: translate3d(0px, 0, 0);\n}\n.swiper-horizontal {\n touch-action: pan-y;\n}\n.swiper-vertical {\n touch-action: pan-x;\n}\n.swiper-slide {\n flex-shrink: 0;\n width: 100%;\n height: 100%;\n position: relative;\n transition-property: transform;\n display: block;\n}\n.swiper-slide-invisible-blank {\n visibility: hidden;\n}\n/* Auto Height */\n.swiper-autoheight,\n.swiper-autoheight .swiper-slide {\n height: auto;\n}\n.swiper-autoheight .swiper-wrapper {\n align-items: flex-start;\n transition-property: transform, height;\n}\n.swiper-backface-hidden .swiper-slide {\n transform: translateZ(0);\n -webkit-backface-visibility: hidden;\n backface-visibility: hidden;\n}\n/* 3D Effects */\n.swiper-3d.swiper-css-mode .swiper-wrapper {\n perspective: 1200px;\n}\n.swiper-3d .swiper-wrapper {\n transform-style: preserve-3d;\n}\n.swiper-3d {\n perspective: 1200px;\n}\n.swiper-3d .swiper-slide,\n.swiper-3d .swiper-cube-shadow {\n transform-style: preserve-3d;\n}\n/* CSS Mode */\n.swiper-css-mode > .swiper-wrapper {\n overflow: auto;\n scrollbar-width: none;\n /* For Firefox */\n -ms-overflow-style: none;\n /* For Internet Explorer and Edge */\n}\n.swiper-css-mode > .swiper-wrapper::-webkit-scrollbar {\n display: none;\n}\n.swiper-css-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: start start;\n}\n.swiper-css-mode.swiper-horizontal > .swiper-wrapper {\n scroll-snap-type: x mandatory;\n}\n.swiper-css-mode.swiper-vertical > .swiper-wrapper {\n scroll-snap-type: y mandatory;\n}\n.swiper-css-mode.swiper-free-mode > .swiper-wrapper {\n scroll-snap-type: none;\n}\n.swiper-css-mode.swiper-free-mode > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: none;\n}\n.swiper-css-mode.swiper-centered > .swiper-wrapper::before {\n content: '';\n flex-shrink: 0;\n order: 9999;\n}\n.swiper-css-mode.swiper-centered > .swiper-wrapper > .swiper-slide {\n scroll-snap-align: center center;\n scroll-snap-stop: always;\n}\n.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {\n margin-inline-start: var(--swiper-centered-offset-before);\n}\n.swiper-css-mode.swiper-centered.swiper-horizontal > .swiper-wrapper::before {\n height: 100%;\n min-height: 1px;\n width: var(--swiper-centered-offset-after);\n}\n.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper > .swiper-slide:first-child {\n margin-block-start: var(--swiper-centered-offset-before);\n}\n.swiper-css-mode.swiper-centered.swiper-vertical > .swiper-wrapper::before {\n width: 100%;\n min-width: 1px;\n height: var(--swiper-centered-offset-after);\n}\n/* Slide styles start */\n/* 3D Shadows */\n.swiper-3d .swiper-slide-shadow,\n.swiper-3d .swiper-slide-shadow-left,\n.swiper-3d .swiper-slide-shadow-right,\n.swiper-3d .swiper-slide-shadow-top,\n.swiper-3d .swiper-slide-shadow-bottom,\n.swiper-3d .swiper-slide-shadow,\n.swiper-3d .swiper-slide-shadow-left,\n.swiper-3d .swiper-slide-shadow-right,\n.swiper-3d .swiper-slide-shadow-top,\n.swiper-3d .swiper-slide-shadow-bottom {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n z-index: 10;\n}\n.swiper-3d .swiper-slide-shadow {\n background: rgba(0, 0, 0, 0.15);\n}\n.swiper-3d .swiper-slide-shadow-left {\n background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-right {\n background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-top {\n background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-3d .swiper-slide-shadow-bottom {\n background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));\n}\n.swiper-lazy-preloader {\n width: 42px;\n height: 42px;\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: -21px;\n margin-top: -21px;\n z-index: 10;\n transform-origin: 50%;\n box-sizing: border-box;\n border: 4px solid var(--swiper-preloader-color, var(--swiper-theme-color));\n border-radius: 50%;\n border-top-color: transparent;\n}\n.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,\n.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader {\n animation: swiper-preloader-spin 1s infinite linear;\n}\n.swiper-lazy-preloader-white {\n --swiper-preloader-color: #fff;\n}\n.swiper-lazy-preloader-black {\n --swiper-preloader-color: #000;\n}\n@keyframes swiper-preloader-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n/* Slide styles end */\n"],sourceRoot:""}]);const u=h},3392:(t,e,i)=>{"use strict";var s=i(9504),n=0,a=Math.random(),r=s(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+r(++n+a,36)}},3635:(t,e,i)=>{"use strict";var s=i(9039),n=i(4576).RegExp;t.exports=s(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})},3706:(t,e,i)=>{"use strict";var s=i(9504),n=i(4901),a=i(7629),r=s(Function.toString);n(a.inspectSource)||(a.inspectSource=function(t){return r(t)}),t.exports=a.inspectSource},3717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3724:(t,e,i)=>{"use strict";var s=i(9039);t.exports=!s(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:(t,e,i)=>{"use strict";var s=i(4576),n=i(34),a=s.document,r=n(a)&&n(a.createElement);t.exports=function(t){return r?a.createElement(t):{}}},4117:t=>{"use strict";t.exports=function(t){return null==t}},4270:(t,e,i)=>{"use strict";var s=i(9565),n=i(4901),a=i(34),r=TypeError;t.exports=function(t,e){var i,o;if("string"===e&&n(i=t.toString)&&!a(o=s(i,t)))return o;if(n(i=t.valueOf)&&!a(o=s(i,t)))return o;if("string"!==e&&n(i=t.toString)&&!a(o=s(i,t)))return o;throw new r("Can't convert object to primitive value")}},4417:t=>{"use strict";t.exports=function(t,e){return e||(e={}),t?(t=String(t.__esModule?t.default:t),/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]|(%20)/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t):t}},4495:(t,e,i)=>{"use strict";var s=i(9519),n=i(9039),a=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!n(function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&s&&s<41})},4576:function(t,e,i){"use strict";var s=function(t){return t&&t.Math===Math&&t};t.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i.g&&i.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:(t,e,i)=>{"use strict";var s=i(3724),n=i(5917),a=i(8686),r=i(8551),o=i(6969),l=TypeError,c=Object.defineProperty,h=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=s?a?function(t,e,i){if(r(t),e=o(e),r(i),"function"==typeof t&&"prototype"===e&&"value"in i&&p in i&&!i[p]){var s=h(t,e);s&&s[p]&&(t[e]=i.value,i={configurable:u in i?i[u]:s[u],enumerable:d in i?i[d]:s[d],writable:!1})}return c(t,e,i)}:c:function(t,e,i){if(r(t),e=o(e),r(i),n)try{return c(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},5031:(t,e,i)=>{"use strict";var s=i(7751),n=i(9504),a=i(8480),r=i(3717),o=i(8551),l=n([].concat);t.exports=s("Reflect","ownKeys")||function(t){var e=a.f(o(t)),i=r.f;return i?l(e,i(t)):e}},5056:(t,e,i)=>{"use strict";t.exports=function(t){var e=i.nc;e&&t.setAttribute("nonce",e)}},5072:t=>{"use strict";var e=[];function i(t){for(var i=-1,s=0;s<e.length;s++)if(e[s].identifier===t){i=s;break}return i}function s(t,s){for(var a={},r=[],o=0;o<t.length;o++){var l=t[o],c=s.base?l[0]+s.base:l[0],h=a[c]||0,d="".concat(c," ").concat(h);a[c]=h+1;var u=i(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==u)e[u].references++,e[u].updater(p);else{var g=n(p,s);s.byIndex=o,e.splice(o,0,{identifier:d,updater:g,references:1})}r.push(d)}return r}function n(t,e){var i=e.domAPI(e);return i.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;i.update(t=e)}else i.remove()}}t.exports=function(t,n){var a=s(t=t||[],n=n||{});return function(t){t=t||[];for(var r=0;r<a.length;r++){var o=i(a[r]);e[o].references--}for(var l=s(t,n),c=0;c<a.length;c++){var h=i(a[c]);0===e[h].references&&(e[h].updater(),e.splice(h,1))}a=l}}},5124:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var s=i(1354),n=i.n(s),a=i(6314),r=i.n(a)()(n());r.push([t.id,":root {\n /*\n --swiper-pagination-color: var(--swiper-theme-color);\n --swiper-pagination-left: auto;\n --swiper-pagination-right: 8px;\n --swiper-pagination-bottom: 8px;\n --swiper-pagination-top: auto;\n --swiper-pagination-fraction-color: inherit;\n --swiper-pagination-progressbar-bg-color: rgba(0,0,0,0.25);\n --swiper-pagination-progressbar-size: 4px;\n --swiper-pagination-bullet-size: 8px;\n --swiper-pagination-bullet-width: 8px;\n --swiper-pagination-bullet-height: 8px;\n --swiper-pagination-bullet-border-radius: 50%;\n --swiper-pagination-bullet-inactive-color: #000;\n --swiper-pagination-bullet-inactive-opacity: 0.2;\n --swiper-pagination-bullet-opacity: 1;\n --swiper-pagination-bullet-horizontal-gap: 4px;\n --swiper-pagination-bullet-vertical-gap: 6px;\n */\n}\n.swiper-pagination {\n position: absolute;\n text-align: center;\n transition: 300ms opacity;\n transform: translate3d(0, 0, 0);\n z-index: 10;\n}\n.swiper-pagination.swiper-pagination-hidden {\n opacity: 0;\n}\n.swiper-pagination-disabled > .swiper-pagination,\n.swiper-pagination.swiper-pagination-disabled {\n display: none !important;\n}\n/* Common Styles */\n.swiper-pagination-fraction,\n.swiper-pagination-custom,\n.swiper-horizontal > .swiper-pagination-bullets,\n.swiper-pagination-bullets.swiper-pagination-horizontal {\n bottom: var(--swiper-pagination-bottom, 8px);\n top: var(--swiper-pagination-top, auto);\n left: 0;\n width: 100%;\n}\n/* Bullets */\n.swiper-pagination-bullets-dynamic {\n overflow: hidden;\n font-size: 0;\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transform: scale(0.33);\n position: relative;\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {\n transform: scale(1);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {\n transform: scale(1);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {\n transform: scale(0.66);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {\n transform: scale(0.33);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {\n transform: scale(0.66);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {\n transform: scale(0.33);\n}\n.swiper-pagination-bullet {\n width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));\n height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));\n display: inline-block;\n border-radius: var(--swiper-pagination-bullet-border-radius, 50%);\n background: var(--swiper-pagination-bullet-inactive-color, #000);\n opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);\n}\nbutton.swiper-pagination-bullet {\n border: none;\n margin: 0;\n padding: 0;\n box-shadow: none;\n -webkit-appearance: none;\n appearance: none;\n}\n.swiper-pagination-clickable .swiper-pagination-bullet {\n cursor: pointer;\n}\n.swiper-pagination-bullet:only-child {\n display: none !important;\n}\n.swiper-pagination-bullet-active {\n opacity: var(--swiper-pagination-bullet-opacity, 1);\n background: var(--swiper-pagination-color, var(--swiper-theme-color));\n}\n.swiper-vertical > .swiper-pagination-bullets,\n.swiper-pagination-vertical.swiper-pagination-bullets {\n right: var(--swiper-pagination-right, 8px);\n left: var(--swiper-pagination-left, auto);\n top: 50%;\n transform: translate3d(0px, -50%, 0);\n}\n.swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet,\n.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {\n margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;\n display: block;\n}\n.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,\n.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n}\n.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,\n.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n display: inline-block;\n transition: 200ms transform,\n 200ms top;\n}\n.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,\n.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {\n margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);\n}\n.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,\n.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n}\n.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,\n.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transition: 200ms transform,\n 200ms left;\n}\n.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transition: 200ms transform,\n 200ms right;\n}\n/* Fraction */\n.swiper-pagination-fraction {\n color: var(--swiper-pagination-fraction-color, inherit);\n}\n/* Progress */\n.swiper-pagination-progressbar {\n background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));\n position: absolute;\n}\n.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n background: var(--swiper-pagination-color, var(--swiper-theme-color));\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transform: scale(0);\n transform-origin: left top;\n}\n.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n transform-origin: right top;\n}\n.swiper-horizontal > .swiper-pagination-progressbar,\n.swiper-pagination-progressbar.swiper-pagination-horizontal,\n.swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,\n.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {\n width: 100%;\n height: var(--swiper-pagination-progressbar-size, 4px);\n left: 0;\n top: 0;\n}\n.swiper-vertical > .swiper-pagination-progressbar,\n.swiper-pagination-progressbar.swiper-pagination-vertical,\n.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,\n.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {\n width: var(--swiper-pagination-progressbar-size, 4px);\n height: 100%;\n left: 0;\n top: 0;\n}\n.swiper-pagination-lock {\n display: none;\n}\n","",{version:3,sources:["webpack://./node_modules/swiper/modules/pagination.css"],names:[],mappings:"AAAA;EACE;;;;;;;;;;;;;;;;;;GAkBC;AACH;AACA;EACE,kBAAkB;EAClB,kBAAkB;EAClB,yBAAyB;EACzB,+BAA+B;EAC/B,WAAW;AACb;AACA;EACE,UAAU;AACZ;AACA;;EAEE,wBAAwB;AAC1B;AACA,kBAAkB;AAClB;;;;EAIE,4CAA4C;EAC5C,uCAAuC;EACvC,OAAO;EACP,WAAW;AACb;AACA,YAAY;AACZ;EACE,gBAAgB;EAChB,YAAY;AACd;AACA;EACE,sBAAsB;EACtB,kBAAkB;AACpB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,mBAAmB;AACrB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,sBAAsB;AACxB;AACA;EACE,uFAAuF;EACvF,yFAAyF;EACzF,qBAAqB;EACrB,iEAAiE;EACjE,gEAAgE;EAChE,8DAA8D;AAChE;AACA;EACE,YAAY;EACZ,SAAS;EACT,UAAU;EACV,gBAAgB;EAChB,wBAAwB;UAChB,gBAAgB;AAC1B;AACA;EACE,eAAe;AACjB;AACA;EACE,wBAAwB;AAC1B;AACA;EACE,mDAAmD;EACnD,qEAAqE;AACvE;AACA;;EAEE,0CAA0C;EAC1C,yCAAyC;EACzC,QAAQ;EACR,oCAAoC;AACtC;AACA;;EAEE,2DAA2D;EAC3D,cAAc;AAChB;AACA;;EAEE,QAAQ;EACR,2BAA2B;EAC3B,UAAU;AACZ;AACA;;EAEE,qBAAqB;EACrB;iBACe;AACjB;AACA;;EAEE,6DAA6D;AAC/D;AACA;;EAEE,SAAS;EACT,2BAA2B;EAC3B,mBAAmB;AACrB;AACA;;EAEE;kBACgB;AAClB;AACA;EACE;eACa;AACf;AACA,aAAa;AACb;EACE,uDAAuD;AACzD;AACA,aAAa;AACb;EACE,8EAA8E;EAC9E,kBAAkB;AACpB;AACA;EACE,qEAAqE;EACrE,kBAAkB;EAClB,OAAO;EACP,MAAM;EACN,WAAW;EACX,YAAY;EACZ,mBAAmB;EACnB,0BAA0B;AAC5B;AACA;EACE,2BAA2B;AAC7B;AACA;;;;EAIE,WAAW;EACX,sDAAsD;EACtD,OAAO;EACP,MAAM;AACR;AACA;;;;EAIE,qDAAqD;EACrD,YAAY;EACZ,OAAO;EACP,MAAM;AACR;AACA;EACE,aAAa;AACf",sourcesContent:[":root {\n /*\n --swiper-pagination-color: var(--swiper-theme-color);\n --swiper-pagination-left: auto;\n --swiper-pagination-right: 8px;\n --swiper-pagination-bottom: 8px;\n --swiper-pagination-top: auto;\n --swiper-pagination-fraction-color: inherit;\n --swiper-pagination-progressbar-bg-color: rgba(0,0,0,0.25);\n --swiper-pagination-progressbar-size: 4px;\n --swiper-pagination-bullet-size: 8px;\n --swiper-pagination-bullet-width: 8px;\n --swiper-pagination-bullet-height: 8px;\n --swiper-pagination-bullet-border-radius: 50%;\n --swiper-pagination-bullet-inactive-color: #000;\n --swiper-pagination-bullet-inactive-opacity: 0.2;\n --swiper-pagination-bullet-opacity: 1;\n --swiper-pagination-bullet-horizontal-gap: 4px;\n --swiper-pagination-bullet-vertical-gap: 6px;\n */\n}\n.swiper-pagination {\n position: absolute;\n text-align: center;\n transition: 300ms opacity;\n transform: translate3d(0, 0, 0);\n z-index: 10;\n}\n.swiper-pagination.swiper-pagination-hidden {\n opacity: 0;\n}\n.swiper-pagination-disabled > .swiper-pagination,\n.swiper-pagination.swiper-pagination-disabled {\n display: none !important;\n}\n/* Common Styles */\n.swiper-pagination-fraction,\n.swiper-pagination-custom,\n.swiper-horizontal > .swiper-pagination-bullets,\n.swiper-pagination-bullets.swiper-pagination-horizontal {\n bottom: var(--swiper-pagination-bottom, 8px);\n top: var(--swiper-pagination-top, auto);\n left: 0;\n width: 100%;\n}\n/* Bullets */\n.swiper-pagination-bullets-dynamic {\n overflow: hidden;\n font-size: 0;\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transform: scale(0.33);\n position: relative;\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active {\n transform: scale(1);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main {\n transform: scale(1);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev {\n transform: scale(0.66);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev {\n transform: scale(0.33);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next {\n transform: scale(0.66);\n}\n.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next {\n transform: scale(0.33);\n}\n.swiper-pagination-bullet {\n width: var(--swiper-pagination-bullet-width, var(--swiper-pagination-bullet-size, 8px));\n height: var(--swiper-pagination-bullet-height, var(--swiper-pagination-bullet-size, 8px));\n display: inline-block;\n border-radius: var(--swiper-pagination-bullet-border-radius, 50%);\n background: var(--swiper-pagination-bullet-inactive-color, #000);\n opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);\n}\nbutton.swiper-pagination-bullet {\n border: none;\n margin: 0;\n padding: 0;\n box-shadow: none;\n -webkit-appearance: none;\n appearance: none;\n}\n.swiper-pagination-clickable .swiper-pagination-bullet {\n cursor: pointer;\n}\n.swiper-pagination-bullet:only-child {\n display: none !important;\n}\n.swiper-pagination-bullet-active {\n opacity: var(--swiper-pagination-bullet-opacity, 1);\n background: var(--swiper-pagination-color, var(--swiper-theme-color));\n}\n.swiper-vertical > .swiper-pagination-bullets,\n.swiper-pagination-vertical.swiper-pagination-bullets {\n right: var(--swiper-pagination-right, 8px);\n left: var(--swiper-pagination-left, auto);\n top: 50%;\n transform: translate3d(0px, -50%, 0);\n}\n.swiper-vertical > .swiper-pagination-bullets .swiper-pagination-bullet,\n.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet {\n margin: var(--swiper-pagination-bullet-vertical-gap, 6px) 0;\n display: block;\n}\n.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,\n.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n top: 50%;\n transform: translateY(-50%);\n width: 8px;\n}\n.swiper-vertical > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,\n.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n display: inline-block;\n transition: 200ms transform,\n 200ms top;\n}\n.swiper-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet,\n.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {\n margin: 0 var(--swiper-pagination-bullet-horizontal-gap, 4px);\n}\n.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic,\n.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {\n left: 50%;\n transform: translateX(-50%);\n white-space: nowrap;\n}\n.swiper-horizontal > .swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,\n.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transition: 200ms transform,\n 200ms left;\n}\n.swiper-horizontal.swiper-rtl > .swiper-pagination-bullets-dynamic .swiper-pagination-bullet {\n transition: 200ms transform,\n 200ms right;\n}\n/* Fraction */\n.swiper-pagination-fraction {\n color: var(--swiper-pagination-fraction-color, inherit);\n}\n/* Progress */\n.swiper-pagination-progressbar {\n background: var(--swiper-pagination-progressbar-bg-color, rgba(0, 0, 0, 0.25));\n position: absolute;\n}\n.swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n background: var(--swiper-pagination-color, var(--swiper-theme-color));\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n transform: scale(0);\n transform-origin: left top;\n}\n.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {\n transform-origin: right top;\n}\n.swiper-horizontal > .swiper-pagination-progressbar,\n.swiper-pagination-progressbar.swiper-pagination-horizontal,\n.swiper-vertical > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,\n.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite {\n width: 100%;\n height: var(--swiper-pagination-progressbar-size, 4px);\n left: 0;\n top: 0;\n}\n.swiper-vertical > .swiper-pagination-progressbar,\n.swiper-pagination-progressbar.swiper-pagination-vertical,\n.swiper-horizontal > .swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,\n.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite {\n width: var(--swiper-pagination-progressbar-size, 4px);\n height: 100%;\n left: 0;\n top: 0;\n}\n.swiper-pagination-lock {\n display: none;\n}\n"],sourceRoot:""}]);const o=r},5213:(t,e,i)=>{"use strict";var s=i(4576),n=i(9039),a=s.RegExp,r=!n(function(){var t=!0;try{a(".","d")}catch(e){t=!1}var e={},i="",s=t?"dgimsy":"gimsy",n=function(t,s){Object.defineProperty(e,t,{get:function(){return i+=s,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in t&&(r.hasIndices="d"),r)n(o,r[o]);return Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(e)!==s||i!==s});t.exports={correct:r}},5397:(t,e,i)=>{"use strict";var s=i(7055),n=i(7750);t.exports=function(t){return s(n(t))}},5440:(t,e,i)=>{"use strict";var s=i(8745),n=i(9565),a=i(9504),r=i(9228),o=i(9039),l=i(8551),c=i(4901),h=i(34),d=i(1291),u=i(8014),p=i(655),g=i(7750),f=i(7829),m=i(5966),x=i(2478),b=i(1034),v=i(6682),y=i(8227)("replace"),w=Math.max,A=Math.min,k=a([].concat),C=a([].push),_=a("".indexOf),E=a("".slice),S=function(t){return void 0===t?t:String(t)},M="$0"==="a".replace(/./,"$0"),T=!!/./[y]&&""===/./[y]("a","$0");r("replace",function(t,e,i){var a=T?"$":"$0";return[function(t,i){var s=g(this),a=h(t)?m(t,y):void 0;return a?n(a,t,s,i):n(e,p(s),t,i)},function(t,n){var r=l(this),o=p(t);if("string"==typeof n&&-1===_(n,a)&&-1===_(n,"$<")){var h=i(e,r,o,n);if(h.done)return h.value}var g=c(n);g||(n=p(n));var m,y=p(b(r)),M=-1!==_(y,"g");M&&(m=-1!==_(y,"u"),r.lastIndex=0);for(var T,L=[];null!==(T=v(r,o))&&(C(L,T),M);)""===p(T[0])&&(r.lastIndex=f(o,u(r.lastIndex),m));for(var P="",B=0,O=0;O<L.length;O++){for(var I,z=p((T=L[O])[0]),D=w(A(d(T.index),o.length),0),F=[],R=1;R<T.length;R++)C(F,S(T[R]));var H=T.groups;if(g){var N=k([z],F,D,o);void 0!==H&&C(N,H),I=p(s(n,void 0,N))}else I=x(z,o,D,F,H,n);D>=B&&(P+=E(o,B,D)+I,B=D+z.length)}return P+E(o,B)}]},!!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!M||T)},5610:(t,e,i)=>{"use strict";var s=i(1291),n=Math.max,a=Math.min;t.exports=function(t,e){var i=s(t);return i<0?n(i+e,0):a(i,e)}},5745:(t,e,i)=>{"use strict";var s=i(7629);t.exports=function(t,e){return s[t]||(s[t]=e||{})}},5917:(t,e,i)=>{"use strict";var s=i(3724),n=i(9039),a=i(4055);t.exports=!s&&!n(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},5966:(t,e,i)=>{"use strict";var s=i(9306),n=i(4117);t.exports=function(t,e){var i=t[e];return n(i)?void 0:s(i)}},6085:t=>{"use strict";t.exports="data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA"},6119:(t,e,i)=>{"use strict";var s=i(5745),n=i(3392),a=s("keys");t.exports=function(t){return a[t]||(a[t]=n(t))}},6198:(t,e,i)=>{"use strict";var s=i(8014);t.exports=function(t){return s(t.length)}},6314:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var i="",s=void 0!==e[5];return e[4]&&(i+="@supports (".concat(e[4],") {")),e[2]&&(i+="@media ".concat(e[2]," {")),s&&(i+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),i+=t(e),s&&(i+="}"),e[2]&&(i+="}"),e[4]&&(i+="}"),i}).join("")},e.i=function(t,i,s,n,a){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(s)for(var o=0;o<this.length;o++){var l=this[o][0];null!=l&&(r[l]=!0)}for(var c=0;c<t.length;c++){var h=[].concat(t[c]);s&&r[h[0]]||(void 0!==a&&(void 0===h[5]||(h[1]="@layer".concat(h[5].length>0?" ".concat(h[5]):""," {").concat(h[1],"}")),h[5]=a),i&&(h[2]?(h[1]="@media ".concat(h[2]," {").concat(h[1],"}"),h[2]=i):h[2]=i),n&&(h[4]?(h[1]="@supports (".concat(h[4],") {").concat(h[1],"}"),h[4]=n):h[4]="".concat(n)),e.push(h))}},e}},6395:t=>{"use strict";t.exports=!1},6518:(t,e,i)=>{"use strict";var s=i(4576),n=i(7347).f,a=i(6699),r=i(6840),o=i(9433),l=i(7740),c=i(2796);t.exports=function(t,e){var i,h,d,u,p,g=t.target,f=t.global,m=t.stat;if(i=f?s:m?s[g]||o(g,{}):s[g]&&s[g].prototype)for(h in e){if(u=e[h],d=t.dontCallGetSet?(p=n(i,h))&&p.value:i[h],!c(f?h:g+(m?".":"#")+h,t.forced)&&void 0!==d){if(typeof u==typeof d)continue;l(u,d)}(t.sham||d&&d.sham)&&a(u,"sham",!0),r(i,h,u,t)}}},6682:(t,e,i)=>{"use strict";var s=i(9565),n=i(8551),a=i(4901),r=i(2195),o=i(7323),l=TypeError;t.exports=function(t,e){var i=t.exec;if(a(i)){var c=s(i,t,e);return null!==c&&n(c),c}if("RegExp"===r(t))return s(o,t,e);throw new l("RegExp#exec called on incompatible receiver")}},6699:(t,e,i)=>{"use strict";var s=i(3724),n=i(4913),a=i(6980);t.exports=s?function(t,e,i){return n.f(t,e,a(1,i))}:function(t,e,i){return t[e]=i,t}},6801:(t,e,i)=>{"use strict";var s=i(3724),n=i(8686),a=i(4913),r=i(8551),o=i(5397),l=i(1072);e.f=s&&!n?Object.defineProperties:function(t,e){r(t);for(var i,s=o(e),n=l(e),c=n.length,h=0;c>h;)a.f(t,i=n[h++],s[i]);return t}},6823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6840:(t,e,i)=>{"use strict";var s=i(4901),n=i(4913),a=i(283),r=i(9433);t.exports=function(t,e,i,o){o||(o={});var l=o.enumerable,c=void 0!==o.name?o.name:e;if(s(i)&&a(i,c,o),o.global)l?t[e]=i:r(e,i);else{try{o.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:n.f(t,e,{value:i,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return t}},6955:(t,e,i)=>{"use strict";var s=i(2140),n=i(4901),a=i(2195),r=i(8227)("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}());t.exports=s?a:function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=o(t),r))?i:l?a(e):"Object"===(s=a(e))&&n(e.callee)?"Arguments":s}},6969:(t,e,i)=>{"use strict";var s=i(2777),n=i(757);t.exports=function(t){var e=s(t,"string");return n(e)?e:e+""}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7040:(t,e,i)=>{"use strict";var s=i(4495);t.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,e,i)=>{"use strict";var s=i(9504),n=i(9039),a=i(2195),r=Object,o=s("".split);t.exports=n(function(){return!r("z").propertyIsEnumerable(0)})?function(t){return"String"===a(t)?o(t,""):r(t)}:r},7323:(t,e,i)=>{"use strict";var s,n,a=i(9565),r=i(9504),o=i(655),l=i(7979),c=i(8429),h=i(5745),d=i(2360),u=i(1181).get,p=i(3635),g=i(8814),f=h("native-string-replace",String.prototype.replace),m=RegExp.prototype.exec,x=m,b=r("".charAt),v=r("".indexOf),y=r("".replace),w=r("".slice),A=(n=/b*/g,a(m,s=/a/,"a"),a(m,n,"a"),0!==s.lastIndex||0!==n.lastIndex),k=c.BROKEN_CARET,C=void 0!==/()??/.exec("")[1];(A||C||k||p||g)&&(x=function(t){var e,i,s,n,r,c,h,p=this,g=u(p),_=o(t),E=g.raw;if(E)return E.lastIndex=p.lastIndex,e=a(x,E,_),p.lastIndex=E.lastIndex,e;var S=g.groups,M=k&&p.sticky,T=a(l,p),L=p.source,P=0,B=_;if(M&&(T=y(T,"y",""),-1===v(T,"g")&&(T+="g"),B=w(_,p.lastIndex),p.lastIndex>0&&(!p.multiline||p.multiline&&"\n"!==b(_,p.lastIndex-1))&&(L="(?: "+L+")",B=" "+B,P++),i=new RegExp("^(?:"+L+")",T)),C&&(i=new RegExp("^"+L+"$(?!\\s)",T)),A&&(s=p.lastIndex),n=a(m,M?i:p,B),M?n?(n.input=w(n.input,P),n[0]=w(n[0],P),n.index=p.lastIndex,p.lastIndex+=n[0].length):p.lastIndex=0:A&&n&&(p.lastIndex=p.global?n.index+n[0].length:s),C&&n&&n.length>1&&a(f,n[0],i,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)}),n&&S)for(n.groups=c=d(null),r=0;r<S.length;r++)c[(h=S[r])[0]]=n[h[1]];return n}),t.exports=x},7347:(t,e,i)=>{"use strict";var s=i(3724),n=i(9565),a=i(8773),r=i(6980),o=i(5397),l=i(6969),c=i(9297),h=i(5917),d=Object.getOwnPropertyDescriptor;e.f=s?d:function(t,e){if(t=o(t),e=l(e),h)try{return d(t,e)}catch(t){}if(c(t,e))return r(!n(a.f,t,e),t[e])}},7495:(t,e,i)=>{"use strict";var s=i(6518),n=i(7323);s({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},7629:(t,e,i)=>{"use strict";var s=i(6395),n=i(4576),a=i(9433),r="__core-js_shared__",o=t.exports=n[r]||a(r,{});(o.versions||(o.versions=[])).push({version:"3.45.1",mode:s?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"})},7659:t=>{"use strict";var e={};t.exports=function(t,i){var s=function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(t){i=null}e[t]=i}return e[t]}(t);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(i)}},7740:(t,e,i)=>{"use strict";var s=i(9297),n=i(5031),a=i(7347),r=i(4913);t.exports=function(t,e,i){for(var o=n(e),l=r.f,c=a.f,h=0;h<o.length;h++){var d=o[h];s(t,d)||i&&s(i,d)||l(t,d,c(e,d))}}},7750:(t,e,i)=>{"use strict";var s=i(4117),n=TypeError;t.exports=function(t){if(s(t))throw new n("Can't call method on "+t);return t}},7751:(t,e,i)=>{"use strict";var s=i(4576),n=i(4901);t.exports=function(t,e){return arguments.length<2?(i=s[t],n(i)?i:void 0):s[t]&&s[t][e];var i}},7825:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(i){!function(t,e,i){var s="";i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var n=void 0!==i.layer;n&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,n&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}");var a=i.sourceMap;a&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),e.styleTagTransform(s,t,e.options)}(e,t,i)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},7829:(t,e,i)=>{"use strict";var s=i(8183).charAt;t.exports=function(t,e,i){return e+(i?s(t,e).length:1)}},7979:(t,e,i)=>{"use strict";var s=i(8551);t.exports=function(){var t=s(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},8014:(t,e,i)=>{"use strict";var s=i(1291),n=Math.min;t.exports=function(t){var e=s(t);return e>0?n(e,9007199254740991):0}},8183:(t,e,i)=>{"use strict";var s=i(9504),n=i(1291),a=i(655),r=i(7750),o=s("".charAt),l=s("".charCodeAt),c=s("".slice),h=function(t){return function(e,i){var s,h,d=a(r(e)),u=n(i),p=d.length;return u<0||u>=p?t?"":void 0:(s=l(d,u))<55296||s>56319||u+1===p||(h=l(d,u+1))<56320||h>57343?t?o(d,u):s:t?c(d,u,u+2):h-56320+(s-55296<<10)+65536}};t.exports={codeAt:h(!1),charAt:h(!0)}},8227:(t,e,i)=>{"use strict";var s=i(4576),n=i(5745),a=i(9297),r=i(3392),o=i(4495),l=i(7040),c=s.Symbol,h=n("wks"),d=l?c.for||c:c&&c.withoutSetter||r;t.exports=function(t){return a(h,t)||(h[t]=o&&a(c,t)?c[t]:d("Symbol."+t)),h[t]}},8429:(t,e,i)=>{"use strict";var s=i(9039),n=i(4576).RegExp,a=s(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),r=a||s(function(){return!n("a","y").sticky}),o=a||s(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:o,MISSED_STICKY:r,UNSUPPORTED_Y:a}},8465:function(t){t.exports=function(){"use strict";function t(t,e,i){if("function"==typeof t?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function e(e,i){return e.get(t(e,i))}function i(t,e,i){(function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,e),e.set(t,i)}const s={},n=t=>new Promise(e=>{if(!t)return e();const i=window.scrollX,n=window.scrollY;s.restoreFocusTimeout=setTimeout(()=>{s.previousActiveElement instanceof HTMLElement?(s.previousActiveElement.focus(),s.previousActiveElement=null):document.body&&document.body.focus(),e()},100),window.scrollTo(i,n)}),a="swal2-",r=["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]=a+e,t),{}),o=["success","warning","info","question","error"].reduce((t,e)=>(t[e]=a+e,t),{}),l="SweetAlert2:",c=t=>t.charAt(0).toUpperCase()+t.slice(1),h=t=>{console.warn(`${l} ${"object"==typeof t?t.join(" "):t}`)},d=t=>{console.error(`${l} ${t}`)},u=[],p=(t,e=null)=>{var i;i=`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`,u.includes(i)||(u.push(i),h(i))},g=t=>"function"==typeof t?t():t,f=t=>t&&"function"==typeof t.toPromise,m=t=>f(t)?t.toPromise():Promise.resolve(t),x=t=>t&&Promise.resolve(t)===t,b=()=>document.body.querySelector(`.${r.container}`),v=t=>{const e=b();return e?e.querySelector(t):null},y=t=>v(`.${t}`),w=()=>y(r.popup),A=()=>y(r.icon),k=()=>y(r.title),C=()=>y(r["html-container"]),_=()=>y(r.image),E=()=>y(r["progress-steps"]),S=()=>y(r["validation-message"]),M=()=>v(`.${r.actions} .${r.confirm}`),T=()=>v(`.${r.actions} .${r.cancel}`),L=()=>v(`.${r.actions} .${r.deny}`),P=()=>v(`.${r.loader}`),B=()=>y(r.actions),O=()=>y(r.footer),I=()=>y(r["timer-progress-bar"]),z=()=>y(r.close),D=()=>{const t=w();if(!t)return[];const e=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),i=Array.from(e).sort((t,e)=>{const i=parseInt(t.getAttribute("tabindex")||"0"),s=parseInt(e.getAttribute("tabindex")||"0");return i>s?1:i<s?-1:0}),s=t.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),n=Array.from(s).filter(t=>"-1"!==t.getAttribute("tabindex"));return[...new Set(i.concat(n))].filter(t=>tt(t))},F=()=>N(document.body,r.shown)&&!N(document.body,r["toast-shown"])&&!N(document.body,r["no-backdrop"]),R=()=>{const t=w();return!!t&&N(t,r.toast)},H=(t,e)=>{if(t.textContent="",e){const i=(new DOMParser).parseFromString(e,"text/html"),s=i.querySelector("head");s&&Array.from(s.childNodes).forEach(e=>{t.appendChild(e)});const n=i.querySelector("body");n&&Array.from(n.childNodes).forEach(e=>{e instanceof HTMLVideoElement||e instanceof HTMLAudioElement?t.appendChild(e.cloneNode(!0)):t.appendChild(e)})}},N=(t,e)=>{if(!e)return!1;const i=e.split(/\s+/);for(let e=0;e<i.length;e++)if(!t.classList.contains(i[e]))return!1;return!0},Y=(t,e,i)=>{if(((t,e)=>{Array.from(t.classList).forEach(i=>{Object.values(r).includes(i)||Object.values(o).includes(i)||Object.values(e.showClass||{}).includes(i)||t.classList.remove(i)})})(t,e),!e.customClass)return;const s=e.customClass[i];s&&("string"==typeof s||s.forEach?V(t,s):h(`Invalid type of customClass.${i}! Expected string or iterable object, got "${typeof s}"`))},W=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${r.popup} > .${r[e]}`);case"checkbox":return t.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return t.querySelector(`.${r.popup} > .${r.radio} input:checked`)||t.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return t.querySelector(`.${r.popup} > .${r.range} input`);default:return t.querySelector(`.${r.popup} > .${r.input}`)}},X=t=>{if(t.focus(),"file"!==t.type){const e=t.value;t.value="",t.value=e}},j=(t,e,i)=>{t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(e=>{Array.isArray(t)?t.forEach(t=>{i?t.classList.add(e):t.classList.remove(e)}):i?t.classList.add(e):t.classList.remove(e)}))},V=(t,e)=>{j(t,e,!0)},G=(t,e)=>{j(t,e,!1)},$=(t,e)=>{const i=Array.from(t.children);for(let t=0;t<i.length;t++){const s=i[t];if(s instanceof HTMLElement&&N(s,e))return s}},U=(t,e,i)=>{i===`${parseInt(i)}`&&(i=parseInt(i)),i||0===parseInt(i)?t.style.setProperty(e,"number"==typeof i?`${i}px`:i):t.style.removeProperty(e)},q=(t,e="flex")=>{t&&(t.style.display=e)},Z=t=>{t&&(t.style.display="none")},Q=(t,e="block")=>{t&&new MutationObserver(()=>{J(t,t.innerHTML,e)}).observe(t,{childList:!0,subtree:!0})},K=(t,e,i,s)=>{const n=t.querySelector(e);n&&n.style.setProperty(i,s)},J=(t,e,i="flex")=>{e?q(t,i):Z(t)},tt=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),et=t=>!!(t.scrollHeight>t.clientHeight),it=t=>{const e=window.getComputedStyle(t),i=parseFloat(e.getPropertyValue("animation-duration")||"0"),s=parseFloat(e.getPropertyValue("transition-duration")||"0");return i>0||s>0},st=(t,e=!1)=>{const i=I();i&&tt(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout(()=>{i.style.transition=`width ${t/1e3}s linear`,i.style.width="0%"},10))},nt=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n <button type="button" class="${r.close}"></button>\n <ul class="${r["progress-steps"]}"></ul>\n <div class="${r.icon}"></div>\n <img class="${r.image}" />\n <h2 class="${r.title}" id="${r.title}"></h2>\n <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n <input class="${r.input}" id="${r.input}" />\n <input type="file" class="${r.file}" />\n <div class="${r.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${r.select}" id="${r.select}"></select>\n <div class="${r.radio}"></div>\n <label class="${r.checkbox}">\n <input type="checkbox" id="${r.checkbox}" />\n <span class="${r.label}"></span>\n </label>\n <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n <div class="${r.actions}">\n <div class="${r.loader}"></div>\n <button type="button" class="${r.confirm}"></button>\n <button type="button" class="${r.deny}"></button>\n <button type="button" class="${r.cancel}"></button>\n </div>\n <div class="${r.footer}"></div>\n <div class="${r["timer-progress-bar-container"]}">\n <div class="${r["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),at=()=>{s.currentInstance.resetValidationMessage()},rt=t=>{const e=(()=>{const t=b();return!!t&&(t.remove(),G([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void d("SweetAlert2 requires document to initialize");const i=document.createElement("div");i.className=r.container,e&&V(i,r["no-transition"]),H(i,nt),i.dataset.swal2Theme=t.theme;const s="string"==typeof(n=t.target)?document.querySelector(n):n;var n;s.appendChild(i),t.topLayer&&(i.setAttribute("popover",""),i.showPopover()),(t=>{const e=w();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),(t=>{"rtl"===window.getComputedStyle(t).direction&&V(b(),r.rtl)})(s),(()=>{const t=w(),e=$(t,r.input),i=$(t,r.file),s=t.querySelector(`.${r.range} input`),n=t.querySelector(`.${r.range} output`),a=$(t,r.select),o=t.querySelector(`.${r.checkbox} input`),l=$(t,r.textarea);e.oninput=at,i.onchange=at,a.onchange=at,o.onchange=at,l.oninput=at,s.oninput=()=>{at(),n.value=s.value},s.onchange=()=>{at(),n.value=s.value}})()},ot=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?lt(t,e):t&&H(e,t)},lt=(t,e)=>{t.jquery?ct(e,t):H(e,t.toString())},ct=(t,e)=>{if(t.textContent="",0 in e)for(let i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},ht=(t,e)=>{const i=B(),s=P();i&&s&&(e.showConfirmButton||e.showDenyButton||e.showCancelButton?q(i):Z(i),Y(i,e,"actions"),function(t,e,i){const s=M(),n=L(),a=T();s&&n&&a&&(ut(s,"confirm",i),ut(n,"deny",i),ut(a,"cancel",i),function(t,e,i,s){s.buttonsStyling?(V([t,e,i],r.styled),s.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",s.confirmButtonColor),s.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",s.denyButtonColor),s.cancelButtonColor&&i.style.setProperty("--swal2-cancel-button-background-color",s.cancelButtonColor),dt(t),dt(e),dt(i)):G([t,e,i],r.styled)}(s,n,a,i),i.reverseButtons&&(i.toast?(t.insertBefore(a,s),t.insertBefore(n,s)):(t.insertBefore(a,e),t.insertBefore(n,e),t.insertBefore(s,e))))}(i,s,e),H(s,e.loaderHtml||""),Y(s,e,"loader"))};function dt(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const i=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\(.*/,` ${i}`))}function ut(t,e,i){const s=c(e);J(t,i[`show${s}Button`],"inline-block"),H(t,i[`${e}ButtonText`]||""),t.setAttribute("aria-label",i[`${e}ButtonAriaLabel`]||""),t.className=r[e],Y(t,i,`${e}Button`)}const pt=(t,e)=>{const i=b();i&&(function(t,e){"string"==typeof e?t.style.background=e:e||V([document.documentElement,document.body],r["no-backdrop"])}(i,e.backdrop),function(t,e){e&&(e in r?V(t,r[e]):(h('The "position" parameter is not valid, defaulting to "center"'),V(t,r.center)))}(i,e.position),function(t,e){e&&V(t,r[`grow-${e}`])}(i,e.grow),Y(i,e,"container"))};var gt={innerParams:new WeakMap,domCache:new WeakMap};const ft=["input","file","range","select","radio","checkbox","textarea"],mt=t=>{if(!t.input)return;if(!kt[t.input])return void d(`Unexpected type of input! Expected ${Object.keys(kt).join(" | ")}, got "${t.input}"`);const e=wt(t.input);if(!e)return;const i=kt[t.input](e,t);q(e),t.inputAutoFocus&&setTimeout(()=>{X(i)})},xt=(t,e)=>{const i=w();if(!i)return;const s=W(i,t);if(s){(t=>{for(let e=0;e<t.attributes.length;e++){const i=t.attributes[e].name;["id","type","value","style"].includes(i)||t.removeAttribute(i)}})(s);for(const t in e)s.setAttribute(t,e[t])}},bt=t=>{if(!t.input)return;const e=wt(t.input);e&&Y(e,t,"input")},vt=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},yt=(t,e,i)=>{if(i.inputLabel){const s=document.createElement("label"),n=r["input-label"];s.setAttribute("for",t.id),s.className=n,"object"==typeof i.customClass&&V(s,i.customClass.inputLabel),s.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",s)}},wt=t=>{const e=w();if(e)return $(e,r[t]||r.input)},At=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:x(e)||h(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},kt={};kt.text=kt.email=kt.password=kt.number=kt.tel=kt.url=kt.search=kt.date=kt["datetime-local"]=kt.time=kt.week=kt.month=(t,e)=>(At(t,e.inputValue),yt(t,t,e),vt(t,e),t.type=e.input,t),kt.file=(t,e)=>(yt(t,t,e),vt(t,e),t),kt.range=(t,e)=>{const i=t.querySelector("input"),s=t.querySelector("output");return At(i,e.inputValue),i.type=e.input,At(s,e.inputValue),yt(i,t,e),t},kt.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const i=document.createElement("option");H(i,e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)}return yt(t,t,e),t},kt.radio=t=>(t.textContent="",t),kt.checkbox=(t,e)=>{const i=W(w(),"checkbox");i.value="1",i.checked=Boolean(e.inputValue);const s=t.querySelector("span");return H(s,e.inputPlaceholder||e.inputLabel),i},kt.textarea=(t,e)=>{At(t,e.inputValue),vt(t,e),yt(t,t,e);return setTimeout(()=>{if("MutationObserver"in window){const i=parseInt(window.getComputedStyle(w()).width);new MutationObserver(()=>{if(!document.body.contains(t))return;const s=t.offsetWidth+(n=t,parseInt(window.getComputedStyle(n).marginLeft)+parseInt(window.getComputedStyle(n).marginRight));var n;s>i?w().style.width=`${s}px`:U(w(),"width",e.width)}).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Ct=(t,e)=>{const i=C();i&&(Q(i),Y(i,e,"htmlContainer"),e.html?(ot(e.html,i),q(i,"block")):e.text?(i.textContent=e.text,q(i,"block")):Z(i),((t,e)=>{const i=w();if(!i)return;const s=gt.innerParams.get(t),n=!s||e.input!==s.input;ft.forEach(t=>{const s=$(i,r[t]);s&&(xt(t,e.inputAttributes),s.className=r[t],n&&Z(s))}),e.input&&(n&&mt(e),bt(e))})(t,e))},_t=(t,e)=>{for(const[i,s]of Object.entries(o))e.icon!==i&&G(t,s);V(t,e.icon&&o[e.icon]),Mt(t,e),Et(),Y(t,e,"icon")},Et=()=>{const t=w();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t<i.length;t++)i[t].style.backgroundColor=e},St=(t,e)=>{if(!e.icon&&!e.iconHtml)return;let i=t.innerHTML,s="";e.iconHtml?s=Tt(e.iconHtml):"success"===e.icon?(s=(t=>`\n ${t.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${t.animation?'<div class="swal2-success-fix"></div>':""}\n ${t.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(e),i=i.replace(/ style=".*?"/g,"")):"error"===e.icon?s='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':e.icon&&(s=Tt({question:"?",warning:"!",info:"i"}[e.icon])),i.trim()!==s.trim()&&H(t,s)},Mt=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const i of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(t,i,"background-color",e.iconColor);K(t,".swal2-success-ring","border-color",e.iconColor)}},Tt=t=>`<div class="${r["icon-content"]}">${t}</div>`;let Lt=!1,Pt=0,Bt=0,Ot=0,It=0;const zt=t=>{const e=w();if(t.target===e||A().contains(t.target)){Lt=!0;const i=Rt(t);Pt=i.clientX,Bt=i.clientY,Ot=parseInt(e.style.insetInlineStart)||0,It=parseInt(e.style.insetBlockStart)||0,V(e,"swal2-dragging")}},Dt=t=>{const e=w();if(Lt){let{clientX:i,clientY:s}=Rt(t);e.style.insetInlineStart=`${Ot+(i-Pt)}px`,e.style.insetBlockStart=`${It+(s-Bt)}px`}},Ft=()=>{const t=w();Lt=!1,G(t,"swal2-dragging")},Rt=t=>{let e=0,i=0;return t.type.startsWith("mouse")?(e=t.clientX,i=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,i=t.touches[0].clientY),{clientX:e,clientY:i}},Ht=(t,e)=>{const i=b(),s=w();if(i&&s){if(e.toast){U(i,"width",e.width),s.style.width="100%";const t=P();t&&s.insertBefore(t,A())}else U(s,"width",e.width);U(s,"padding",e.padding),e.color&&(s.style.color=e.color),e.background&&(s.style.background=e.background),Z(S()),Nt(s,e),e.draggable&&!e.toast?(V(s,r.draggable),(t=>{t.addEventListener("mousedown",zt),document.body.addEventListener("mousemove",Dt),t.addEventListener("mouseup",Ft),t.addEventListener("touchstart",zt),document.body.addEventListener("touchmove",Dt),t.addEventListener("touchend",Ft)})(s)):(G(s,r.draggable),(t=>{t.removeEventListener("mousedown",zt),document.body.removeEventListener("mousemove",Dt),t.removeEventListener("mouseup",Ft),t.removeEventListener("touchstart",zt),document.body.removeEventListener("touchmove",Dt),t.removeEventListener("touchend",Ft)})(s))}},Nt=(t,e)=>{const i=e.showClass||{};t.className=`${r.popup} ${tt(t)?i.popup:""}`,e.toast?(V([document.documentElement,document.body],r["toast-shown"]),V(t,r.toast)):V(t,r.modal),Y(t,e,"popup"),"string"==typeof e.customClass&&V(t,e.customClass),e.icon&&V(t,r[`icon-${e.icon}`])},Yt=t=>{const e=document.createElement("li");return V(e,r["progress-step"]),H(e,t),e},Wt=t=>{const e=document.createElement("li");return V(e,r["progress-step-line"]),t.progressStepsDistance&&U(e,"width",t.progressStepsDistance),e},Xt=(t,e)=>{Ht(0,e),pt(0,e),((t,e)=>{const i=E();if(!i)return;const{progressSteps:s,currentProgressStep:n}=e;s&&0!==s.length&&void 0!==n?(q(i),i.textContent="",n>=s.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),s.forEach((t,a)=>{const o=Yt(t);if(i.appendChild(o),a===n&&V(o,r["active-progress-step"]),a!==s.length-1){const t=Wt(e);i.appendChild(t)}})):Z(i)})(0,e),((t,e)=>{const i=gt.innerParams.get(t),s=A();if(s){if(i&&e.icon===i.icon)return St(s,e),void _t(s,e);if(e.icon||e.iconHtml){if(e.icon&&-1===Object.keys(o).indexOf(e.icon))return d(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),void Z(s);q(s),St(s,e),_t(s,e),V(s,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Et)}else Z(s)}})(t,e),((t,e)=>{const i=_();i&&(e.imageUrl?(q(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt||""),U(i,"width",e.imageWidth),U(i,"height",e.imageHeight),i.className=r.image,Y(i,e,"image")):Z(i))})(0,e),((t,e)=>{const i=k();i&&(Q(i),J(i,e.title||e.titleText,"block"),e.title&&ot(e.title,i),e.titleText&&(i.innerText=e.titleText),Y(i,e,"title"))})(0,e),((t,e)=>{const i=z();i&&(H(i,e.closeButtonHtml||""),Y(i,e,"closeButton"),J(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel||""))})(0,e),Ct(t,e),ht(0,e),((t,e)=>{const i=O();i&&(Q(i),J(i,e.footer,"block"),e.footer&&ot(e.footer,i),Y(i,e,"footer"))})(0,e);const i=w();"function"==typeof e.didRender&&i&&e.didRender(i),s.eventEmitter.emit("didRender",i)},jt=()=>{var t;return null===(t=M())||void 0===t?void 0:t.click()},Vt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Gt=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},$t=(t,e)=>{var i;const s=D();if(s.length)return-2===(t+=e)&&(t=s.length-1),t===s.length?t=0:-1===t&&(t=s.length-1),void s[t].focus();null===(i=w())||void 0===i||i.focus()},Ut=["ArrowRight","ArrowDown"],qt=["ArrowLeft","ArrowUp"],Zt=(t,e,i)=>{t&&(e.isComposing||229===e.keyCode||(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Qt(e,t):"Tab"===e.key?Kt(e):[...Ut,...qt].includes(e.key)?Jt(e.key):"Escape"===e.key&&te(e,t,i)))},Qt=(t,e)=>{if(!g(e.allowEnterKey))return;const i=W(w(),e.input);if(t.target&&i&&t.target instanceof HTMLElement&&t.target.outerHTML===i.outerHTML){if(["textarea","file"].includes(e.input))return;jt(),t.preventDefault()}},Kt=t=>{const e=t.target,i=D();let s=-1;for(let t=0;t<i.length;t++)if(e===i[t]){s=t;break}t.shiftKey?$t(s,-1):$t(s,1),t.stopPropagation(),t.preventDefault()},Jt=t=>{const e=B(),i=M(),s=L(),n=T();if(!(e&&i&&s&&n))return;const a=[i,s,n];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const r=Ut.includes(t)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;if(o){for(let t=0;t<e.children.length;t++){if(o=o[r],!o)return;if(o instanceof HTMLButtonElement&&tt(o))break}o instanceof HTMLButtonElement&&o.focus()}},te=(t,e,i)=>{t.preventDefault(),g(e.allowEscapeKey)&&i(Vt.esc)};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ie=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},se="undefined"!=typeof window&&!!window.GestureEvent,ne=()=>{const t=b();if(!t)return;let e;t.ontouchstart=t=>{e=ae(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},ae=t=>{const e=t.target,i=b(),s=C();return!(!i||!s||re(t)||oe(t)||e!==i&&(et(i)||!(e instanceof HTMLElement)||((t,e)=>{let i=t;for(;i&&i!==e;){if(et(i))return!0;i=i.parentElement}return!1})(e,s)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||et(s)&&s.contains(e)))},re=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,oe=t=>t.touches&&t.touches.length>1;let le=null;const ce=t=>{null===le&&(document.body.scrollHeight>window.innerHeight||"scroll"===t)&&(le=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${le+(()=>{const t=document.createElement("div");t.className=r["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})()}px`)};function he(t,e,i,a){R()?be(t,a):(n(i).then(()=>be(t,a)),Gt(s)),se?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),F()&&(null!==le&&(document.body.style.paddingRight=`${le}px`,le=null),(()=>{if(N(document.body,r.iosfix)){const t=parseInt(document.body.style.top,10);G(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}})(),ie()),G([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function de(t){t=fe(t);const e=ee.swalPromiseResolve.get(this),i=ue(this);this.isAwaitingPromise?t.isDismissed||(ge(this),e(t)):i&&e(t)}const ue=t=>{const e=w();if(!e)return!1;const i=gt.innerParams.get(t);if(!i||N(e,i.hideClass.popup))return!1;G(e,i.showClass.popup),V(e,i.hideClass.popup);const s=b();return G(s,i.showClass.backdrop),V(s,i.hideClass.backdrop),me(t,e,i),!0};function pe(t){const e=ee.swalPromiseReject.get(this);ge(this),e&&e(t)}const ge=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,gt.innerParams.get(t)||t._destroy())},fe=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),me=(t,e,i)=>{var n;const a=b(),r=it(e);"function"==typeof i.willClose&&i.willClose(e),null===(n=s.eventEmitter)||void 0===n||n.emit("willClose",e),r?xe(t,e,a,i.returnFocus,i.didClose):he(t,a,i.returnFocus,i.didClose)},xe=(t,e,i,n,a)=>{s.swalCloseEventFinishedCallback=he.bind(null,t,i,n,a);const r=function(t){var i;t.target===e&&(null===(i=s.swalCloseEventFinishedCallback)||void 0===i||i.call(s),delete s.swalCloseEventFinishedCallback,e.removeEventListener("animationend",r),e.removeEventListener("transitionend",r))};e.addEventListener("animationend",r),e.addEventListener("transitionend",r)},be=(t,e)=>{setTimeout(()=>{var i;"function"==typeof e&&e.bind(t.params)(),null===(i=s.eventEmitter)||void 0===i||i.emit("didClose"),t._destroy&&t._destroy()})},ve=t=>{let e=w();if(e||new Ki,e=w(),!e)return;const i=P();R()?Z(A()):ye(e,t),q(i),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},ye=(t,e)=>{const i=B(),s=P();i&&s&&(!e&&tt(M())&&(e=M()),q(i),e&&(Z(e),s.setAttribute("data-button-to-replace",e.className),i.insertBefore(s,e)),V([t,i],r.loading))},we=t=>t.checked?1:0,Ae=t=>t.checked?t.value:null,ke=t=>t.files&&t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,Ce=(t,e)=>{const i=w();if(!i)return;const s=t=>{"select"===e.input?function(t,e,i){const s=$(t,r.select);if(!s)return;const n=(t,e,s)=>{const n=document.createElement("option");n.value=s,H(n,e),n.selected=Se(s,i.inputValue),t.appendChild(n)};e.forEach(t=>{const e=t[0],i=t[1];if(Array.isArray(i)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,s.appendChild(t),i.forEach(e=>n(t,e[1],e[0]))}else n(s,i,e)}),s.focus()}(i,Ee(t),e):"radio"===e.input&&function(t,e,i){const s=$(t,r.radio);if(!s)return;e.forEach(t=>{const e=t[0],n=t[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=r.radio,a.value=e,Se(e,i.inputValue)&&(a.checked=!0);const l=document.createElement("span");H(l,n),l.className=r.label,o.appendChild(a),o.appendChild(l),s.appendChild(o)});const n=s.querySelectorAll("input");n.length&&n[0].focus()}(i,Ee(t),e)};f(e.inputOptions)||x(e.inputOptions)?(ve(M()),m(e.inputOptions).then(e=>{t.hideLoading(),s(e)})):"object"==typeof e.inputOptions?s(e.inputOptions):d("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof e.inputOptions)},_e=(t,e)=>{const i=t.getInput();i&&(Z(i),m(e.inputValue).then(s=>{i.value="number"===e.input?`${parseFloat(s)||0}`:`${s}`,q(i),i.focus(),t.hideLoading()}).catch(e=>{d(`Error in inputValue promise: ${e}`),i.value="",q(i),i.focus(),t.hideLoading()}))};const Ee=t=>{const e=[];return t instanceof Map?t.forEach((t,i)=>{let s=t;"object"==typeof s&&(s=Ee(s)),e.push([i,s])}):Object.keys(t).forEach(i=>{let s=t[i];"object"==typeof s&&(s=Ee(s)),e.push([i,s])}),e},Se=(t,e)=>!!e&&e.toString()===t.toString(),Me=(t,e)=>{const i=gt.innerParams.get(t);if(!i.input)return void d(`The "input" parameter is needed to be set when using returnInputValueOn${c(e)}`);const s=t.getInput(),n=((t,e)=>{const i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return we(i);case"radio":return Ae(i);case"file":return ke(i);default:return e.inputAutoTrim?i.value.trim():i.value}})(t,i);i.inputValidator?Te(t,n,e):s&&!s.checkValidity()?(t.enableButtons(),t.showValidationMessage(i.validationMessage||s.validationMessage)):"deny"===e?Le(t,n):Oe(t,n)},Te=(t,e,i)=>{const s=gt.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>m(s.inputValidator(e,s.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):"deny"===i?Le(t,e):Oe(t,e)})},Le=(t,e)=>{const i=gt.innerParams.get(t||void 0);i.showLoaderOnDeny&&ve(L()),i.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>m(i.preDeny(e,i.validationMessage))).then(i=>{!1===i?(t.hideLoading(),ge(t)):t.close({isDenied:!0,value:void 0===i?e:i})}).catch(e=>Be(t||void 0,e))):t.close({isDenied:!0,value:e})},Pe=(t,e)=>{t.close({isConfirmed:!0,value:e})},Be=(t,e)=>{t.rejectPromise(e)},Oe=(t,e)=>{const i=gt.innerParams.get(t||void 0);i.showLoaderOnConfirm&&ve(),i.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>m(i.preConfirm(e,i.validationMessage))).then(i=>{tt(S())||!1===i?(t.hideLoading(),ge(t)):Pe(t,void 0===i?e:i)}).catch(e=>Be(t||void 0,e))):Pe(t,e)};function Ie(){const t=gt.innerParams.get(this);if(!t)return;const e=gt.domCache.get(this);Z(e.loader),R()?t.icon&&q(A()):ze(e),G([e.popup,e.actions],r.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const ze=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?q(e[0],"inline-block"):!tt(M())&&!tt(L())&&!tt(T())&&Z(t.actions)};function De(){const t=gt.innerParams.get(this),e=gt.domCache.get(this);return e?W(e.popup,t.input):null}function Fe(t,e,i){const s=gt.domCache.get(t);e.forEach(t=>{s[t].disabled=i})}function Re(t,e){const i=w();if(i&&t)if("radio"===t.type){const t=i.querySelectorAll(`[name="${r.radio}"]`);for(let i=0;i<t.length;i++)t[i].disabled=e}else t.disabled=e}function He(){Fe(this,["confirmButton","denyButton","cancelButton"],!1)}function Ne(){Fe(this,["confirmButton","denyButton","cancelButton"],!0)}function Ye(){Re(this.getInput(),!1)}function We(){Re(this.getInput(),!0)}function Xe(t){const e=gt.domCache.get(this),i=gt.innerParams.get(this);H(e.validationMessage,t),e.validationMessage.className=r["validation-message"],i.customClass&&i.customClass.validationMessage&&V(e.validationMessage,i.customClass.validationMessage),q(e.validationMessage);const s=this.getInput();s&&(s.setAttribute("aria-invalid","true"),s.setAttribute("aria-describedby",r["validation-message"]),X(s),V(s,r.inputerror))}function je(){const t=gt.domCache.get(this);t.validationMessage&&Z(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),G(e,r.inputerror))}const Ve={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:"×",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},Ge=["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"],$e={allowEnterKey:void 0},Ue=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],qe=t=>Object.prototype.hasOwnProperty.call(Ve,t),Ze=t=>-1!==Ge.indexOf(t),Qe=t=>$e[t],Ke=t=>{qe(t)||h(`Unknown parameter "${t}"`)},Je=t=>{Ue.includes(t)&&h(`The parameter "${t}" is incompatible with toasts`)},ti=t=>{const e=Qe(t);e&&p(t,e)},ei=t=>{!1===t.backdrop&&t.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&h(`Invalid theme "${t.theme}"`);for(const e in t)Ke(e),t.toast&&Je(e),ti(e)};function ii(t){const e=b(),i=w(),s=gt.innerParams.get(this);if(!i||N(i,s.hideClass.popup))return void h("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.");const n=si(t),a=Object.assign({},s,n);ei(a),e.dataset.swal2Theme=a.theme,Xt(this,a),gt.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const si=t=>{const e={};return Object.keys(t).forEach(i=>{Ze(i)?e[i]=t[i]:h(`Invalid parameter to update: ${i}`)}),e};function ni(){const t=gt.domCache.get(this),e=gt.innerParams.get(this);e?(t.popup&&s.swalCloseEventFinishedCallback&&(s.swalCloseEventFinishedCallback(),delete s.swalCloseEventFinishedCallback),"function"==typeof e.didDestroy&&e.didDestroy(),s.eventEmitter.emit("didDestroy"),ai(this)):ri(this)}const ai=t=>{ri(t),delete t.params,delete s.keydownHandler,delete s.keydownTarget,delete s.currentInstance},ri=t=>{t.isAwaitingPromise?(oi(gt,t),t.isAwaitingPromise=!0):(oi(ee,t),oi(gt,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)},oi=(t,e)=>{for(const i in t)t[i].delete(e)};var li=Object.freeze({__proto__:null,_destroy:ni,close:de,closeModal:de,closePopup:de,closeToast:de,disableButtons:Ne,disableInput:We,disableLoading:Ie,enableButtons:He,enableInput:Ye,getInput:De,handleAwaitingPromise:ge,hideLoading:Ie,rejectPromise:pe,resetValidationMessage:je,showValidationMessage:Xe,update:ii});const ci=(t,e,i)=>{e.popup.onclick=()=>{t&&(hi(t)||t.timer||t.input)||i(Vt.close)}},hi=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let di=!1;const ui=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(di=!0)}}},pi=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(e){t.popup.onmouseup=()=>{},(e.target===t.popup||e.target instanceof HTMLElement&&t.popup.contains(e.target))&&(di=!0)}}},gi=(t,e,i)=>{e.container.onclick=s=>{di?di=!1:s.target===e.container&&g(t.allowOutsideClick)&&i(Vt.backdrop)}},fi=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t);const mi=()=>{if(s.timeout)return(()=>{const t=I();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const i=e/parseInt(window.getComputedStyle(t).width)*100;t.style.width=`${i}%`})(),s.timeout.stop()},xi=()=>{if(s.timeout){const t=s.timeout.start();return st(t),t}};let bi=!1;const vi={};const yi=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in vi){const i=e.getAttribute(t);if(i)return void vi[t].fire({template:i})}};s.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(t){return void 0===this.events[t]&&(this.events[t]=[]),this.events[t]}on(t,e){const i=this._getHandlersByEventName(t);i.includes(e)||i.push(e)}once(t,e){const i=(...s)=>{this.removeListener(t,i),e.apply(this,s)};this.on(t,i)}emit(t,...e){this._getHandlersByEventName(t).forEach(t=>{try{t.apply(this,e)}catch(t){console.error(t)}})}removeListener(t,e){const i=this._getHandlersByEventName(t),s=i.indexOf(e);s>-1&&i.splice(s,1)}removeAllListeners(t){void 0!==this.events[t]&&(this.events[t].length=0)}reset(){this.events={}}};var wi=Object.freeze({__proto__:null,argsToParams:t=>{const e={};return"object"!=typeof t[0]||fi(t[0])?["title","html","icon"].forEach((i,s)=>{const n=t[s];"string"==typeof n||fi(n)?e[i]=n:void 0!==n&&d(`Unexpected type of ${i}! Expected "string" or "Element", got ${typeof n}`)}):Object.assign(e,t[0]),e},bindClickHandler:function(t="data-swal-template"){vi[t]=this,bi||(document.body.addEventListener("click",yi),bi=!0)},clickCancel:()=>{var t;return null===(t=T())||void 0===t?void 0:t.click()},clickConfirm:jt,clickDeny:()=>{var t;return null===(t=L())||void 0===t?void 0:t.click()},enableLoading:ve,fire:function(...t){return new this(...t)},getActions:B,getCancelButton:T,getCloseButton:z,getConfirmButton:M,getContainer:b,getDenyButton:L,getFocusableElements:D,getFooter:O,getHtmlContainer:C,getIcon:A,getIconContent:()=>y(r["icon-content"]),getImage:_,getInputLabel:()=>y(r["input-label"]),getLoader:P,getPopup:w,getProgressSteps:E,getTimerLeft:()=>s.timeout&&s.timeout.getTimerLeft(),getTimerProgressBar:I,getTitle:k,getValidationMessage:S,increaseTimer:t=>{if(s.timeout){const e=s.timeout.increase(t);return st(e,!0),e}},isDeprecatedParameter:Qe,isLoading:()=>{const t=w();return!!t&&t.hasAttribute("data-loading")},isTimerRunning:()=>!(!s.timeout||!s.timeout.isRunning()),isUpdatableParameter:Ze,isValidParameter:qe,isVisible:()=>tt(w()),mixin:function(t){return class extends(this){_main(e,i){return super._main(e,Object.assign({},t,i))}}},off:(t,e)=>{t?e?s.eventEmitter.removeListener(t,e):s.eventEmitter.removeAllListeners(t):s.eventEmitter.reset()},on:(t,e)=>{s.eventEmitter.on(t,e)},once:(t,e)=>{s.eventEmitter.once(t,e)},resumeTimer:xi,showLoading:ve,stopTimer:mi,toggleTimer:()=>{const t=s.timeout;return t&&(t.running?mi():xi())}});class Ai{constructor(t,e){this.callback=t,this.remaining=e,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(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const ki=["swal-title","swal-html","swal-footer"],Ci=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach(t=>{Bi(t,["name","value"]);const i=t.getAttribute("name"),s=t.getAttribute("value");i&&s&&(e[i]="boolean"==typeof Ve[i]?"false"!==s:"object"==typeof Ve[i]?JSON.parse(s):s)}),e},_i=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(t=>{const i=t.getAttribute("name"),s=t.getAttribute("value");i&&s&&(e[i]=new Function(`return ${s}`)())}),e},Ei=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach(t=>{Bi(t,["type","color","aria-label"]);const i=t.getAttribute("type");i&&["confirm","cancel","deny"].includes(i)&&(e[`${i}ButtonText`]=t.innerHTML,e[`show${c(i)}Button`]=!0,t.hasAttribute("color")&&(e[`${i}ButtonColor`]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e[`${i}ButtonAriaLabel`]=t.getAttribute("aria-label")))}),e},Si=t=>{const e={},i=t.querySelector("swal-image");return i&&(Bi(i,["src","width","height","alt"]),i.hasAttribute("src")&&(e.imageUrl=i.getAttribute("src")||void 0),i.hasAttribute("width")&&(e.imageWidth=i.getAttribute("width")||void 0),i.hasAttribute("height")&&(e.imageHeight=i.getAttribute("height")||void 0),i.hasAttribute("alt")&&(e.imageAlt=i.getAttribute("alt")||void 0)),e},Mi=t=>{const e={},i=t.querySelector("swal-icon");return i&&(Bi(i,["type","color"]),i.hasAttribute("type")&&(e.icon=i.getAttribute("type")),i.hasAttribute("color")&&(e.iconColor=i.getAttribute("color")),e.iconHtml=i.innerHTML),e},Ti=t=>{const e={},i=t.querySelector("swal-input");i&&(Bi(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value")));const s=Array.from(t.querySelectorAll("swal-input-option"));return s.length&&(e.inputOptions={},s.forEach(t=>{Bi(t,["value"]);const i=t.getAttribute("value");if(!i)return;const s=t.innerHTML;e.inputOptions[i]=s})),e},Li=(t,e)=>{const i={};for(const s in e){const n=e[s],a=t.querySelector(n);a&&(Bi(a,[]),i[n.replace(/^swal-/,"")]=a.innerHTML.trim())}return i},Pi=t=>{const e=ki.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||h(`Unrecognized element <${i}>`)})},Bi=(t,e)=>{Array.from(t.attributes).forEach(i=>{-1===e.indexOf(i.name)&&h([`Unrecognized attribute "${i.name}" on <${t.tagName.toLowerCase()}>.`,e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."])})},Oi=t=>{const e=b(),i=w();"function"==typeof t.willOpen&&t.willOpen(i),s.eventEmitter.emit("willOpen",i);const n=window.getComputedStyle(document.body).overflowY;Fi(e,i,t),setTimeout(()=>{zi(e,i)},10),F()&&(Di(e,t.scrollbarPadding,n),(()=>{const t=b();Array.from(document.body.children).forEach(e=>{e.contains(t)||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))})})()),R()||s.previousActiveElement||(s.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout(()=>t.didOpen(i)),s.eventEmitter.emit("didOpen",i),G(e,r["no-transition"])},Ii=t=>{const e=w();if(t.target!==e)return;const i=b();e.removeEventListener("animationend",Ii),e.removeEventListener("transitionend",Ii),i.style.overflowY="auto"},zi=(t,e)=>{it(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Ii),e.addEventListener("transitionend",Ii)):t.style.overflowY="auto"},Di=(t,e,i)=>{(()=>{if(se&&!N(document.body,r.iosfix)){const t=document.body.scrollTop;document.body.style.top=-1*t+"px",V(document.body,r.iosfix),ne()}})(),e&&"hidden"!==i&&ce(i),setTimeout(()=>{t.scrollTop=0})},Fi=(t,e,i)=>{V(t,i.showClass.backdrop),i.animation?(e.style.setProperty("opacity","0","important"),q(e,"grid"),setTimeout(()=>{V(e,i.showClass.popup),e.style.removeProperty("opacity")},10)):q(e,"grid"),V([document.documentElement,document.body],r.shown),i.heightAuto&&i.backdrop&&!i.toast&&V([document.documentElement,document.body],r["height-auto"])};var Ri=(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),Hi=(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 Ni(t){(function(t){t.inputValidator||("email"===t.input&&(t.inputValidator=Ri),"url"===t.input&&(t.inputValidator=Hi))})(t),t.showLoaderOnConfirm&&!t.preConfirm&&h("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),rt(t)}let Yi;var Wi=new WeakMap;class Xi{constructor(...e){if(i(this,Wi,void 0),"undefined"==typeof window)return;Yi=this;const s=Object.freeze(this.constructor.argsToParams(e));var n,a,r;this.params=s,this.isAwaitingPromise=!1,n=Wi,a=this,r=this._main(Yi.params),n.set(t(n,a),r)}_main(t,e={}){if(ei(Object.assign({},e,t)),s.currentInstance){const t=ee.swalPromiseResolve.get(s.currentInstance),{isAwaitingPromise:e}=s.currentInstance;s.currentInstance._destroy(),e||t({isDismissed:!0}),F()&&ie()}s.currentInstance=Yi;const i=Vi(t,e);Ni(i),Object.freeze(i),s.timeout&&(s.timeout.stop(),delete s.timeout),clearTimeout(s.restoreFocusTimeout);const n=Gi(Yi);return Xt(Yi,i),gt.innerParams.set(Yi,i),ji(Yi,n,i)}then(t){return e(Wi,this).then(t)}finally(t){return e(Wi,this).finally(t)}}const ji=(t,e,i)=>new Promise((n,a)=>{const r=e=>{t.close({isDismissed:!0,dismiss:e})};ee.swalPromiseResolve.set(t,n),ee.swalPromiseReject.set(t,a),e.confirmButton.onclick=()=>{(t=>{const e=gt.innerParams.get(t);t.disableButtons(),e.input?Me(t,"confirm"):Oe(t,!0)})(t)},e.denyButton.onclick=()=>{(t=>{const e=gt.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Me(t,"deny"):Le(t,!1)})(t)},e.cancelButton.onclick=()=>{((t,e)=>{t.disableButtons(),e(Vt.cancel)})(t,r)},e.closeButton.onclick=()=>{r(Vt.close)},((t,e,i)=>{t.toast?ci(t,e,i):(ui(e),pi(e),gi(t,e,i))})(i,e,r),((t,e,i)=>{Gt(t),e.toast||(t.keydownHandler=t=>Zt(e,t,i),t.keydownTarget=e.keydownListenerCapture?window:w(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(s,i,r),((t,e)=>{"select"===e.input||"radio"===e.input?Ce(t,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(f(e.inputValue)||x(e.inputValue))&&(ve(M()),_e(t,e))})(t,i),Oi(i),$i(s,i,r),Ui(e,i),setTimeout(()=>{e.container.scrollTop=0})}),Vi=(t,e)=>{const i=(t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const i=e.content;return Pi(i),Object.assign(Ci(i),_i(i),Ei(i),Si(i),Mi(i),Ti(i),Li(i,ki))})(t),s=Object.assign({},Ve,e,i,t);return s.showClass=Object.assign({},Ve.showClass,s.showClass),s.hideClass=Object.assign({},Ve.hideClass,s.hideClass),!1===s.animation&&(s.showClass={backdrop:"swal2-noanimation"},s.hideClass={}),s},Gi=t=>{const e={popup:w(),container:b(),actions:B(),confirmButton:M(),denyButton:L(),cancelButton:T(),loader:P(),closeButton:z(),validationMessage:S(),progressSteps:E()};return gt.domCache.set(t,e),e},$i=(t,e,i)=>{const s=I();Z(s),e.timer&&(t.timeout=new Ai(()=>{i("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(q(s),Y(s,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&st(e.timer)})))},Ui=(t,e)=>{if(!e.toast)return g(e.allowEnterKey)?void(qi(t)||Zi(t,e)||$t(-1,1)):(p("allowEnterKey"),void Qi())},qi=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&tt(t))return t.focus(),!0;return!1},Zi=(t,e)=>e.focusDeny&&tt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&tt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!tt(t.confirmButton)||(t.confirmButton.focus(),0)),Qi=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Xi.prototype.disableButtons=Ne,Xi.prototype.enableButtons=He,Xi.prototype.getInput=De,Xi.prototype.disableInput=We,Xi.prototype.enableInput=Ye,Xi.prototype.hideLoading=Ie,Xi.prototype.disableLoading=Ie,Xi.prototype.showValidationMessage=Xe,Xi.prototype.resetValidationMessage=je,Xi.prototype.close=de,Xi.prototype.closePopup=de,Xi.prototype.closeModal=de,Xi.prototype.closeToast=de,Xi.prototype.rejectPromise=pe,Xi.prototype.update=ii,Xi.prototype._destroy=ni,Object.assign(Xi,wi),Object.keys(li).forEach(t=>{Xi[t]=function(...e){return Yi&&Yi[t]?Yi[t](...e):null}}),Xi.DismissReason=Vt,Xi.version="11.23.0";const Ki=Xi;return Ki.default=Ki,Ki}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var i=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch(t){i.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.1s;--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 $swal2-outline-color;--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:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);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}}')},8480:(t,e,i)=>{"use strict";var s=i(1828),n=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return s(t,n)}},8551:(t,e,i)=>{"use strict";var s=i(34),n=String,a=TypeError;t.exports=function(t){if(s(t))return t;throw new a(n(t)+" is not an object")}},8622:(t,e,i)=>{"use strict";var s=i(4576),n=i(4901),a=s.WeakMap;t.exports=n(a)&&/native code/.test(String(a))},8686:(t,e,i)=>{"use strict";var s=i(3724),n=i(9039);t.exports=s&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8727:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8745:(t,e,i)=>{"use strict";var s=i(616),n=Function.prototype,a=n.apply,r=n.call;t.exports="object"==typeof Reflect&&Reflect.apply||(s?r.bind(a):function(){return r.apply(a,arguments)})},8773:(t,e)=>{"use strict";var i={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!i.call({1:2},1);e.f=n?function(t){var e=s(this,t);return!!e&&e.enumerable}:i},8814:(t,e,i)=>{"use strict";var s=i(9039),n=i(4576).RegExp;t.exports=s(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})},8981:(t,e,i)=>{"use strict";var s=i(7750),n=Object;t.exports=function(t){return n(s(t))}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9228:(t,e,i)=>{"use strict";i(7495);var s=i(9565),n=i(6840),a=i(7323),r=i(9039),o=i(8227),l=i(6699),c=o("species"),h=RegExp.prototype;t.exports=function(t,e,i,d){var u=o(t),p=!r(function(){var e={};return e[u]=function(){return 7},7!==""[t](e)}),g=p&&!r(function(){var e=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[c]=function(){return i},i.flags="",i[u]=/./[u]),i.exec=function(){return e=!0,null},i[u](""),!e});if(!p||!g||i){var f=/./[u],m=e(u,""[t],function(t,e,i,n,r){var o=e.exec;return o===a||o===h.exec?p&&!r?{done:!0,value:s(f,e,i,n)}:{done:!0,value:s(t,i,e,n)}:{done:!1}});n(String.prototype,t,m[0]),n(h,u,m[1])}d&&l(h[u],"sham",!0)}},9297:(t,e,i)=>{"use strict";var s=i(9504),n=i(8981),a=s({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return a(n(t),e)}},9306:(t,e,i)=>{"use strict";var s=i(4901),n=i(6823),a=TypeError;t.exports=function(t){if(s(t))return t;throw new a(n(t)+" is not a function")}},9433:(t,e,i)=>{"use strict";var s=i(4576),n=Object.defineProperty;t.exports=function(t,e){try{n(s,t,{value:e,configurable:!0,writable:!0})}catch(i){s[t]=e}return e}},9504:(t,e,i)=>{"use strict";var s=i(616),n=Function.prototype,a=n.call,r=s&&n.bind.bind(a,a);t.exports=s?r:function(t){return function(){return a.apply(t,arguments)}}},9519:(t,e,i)=>{"use strict";var s,n,a=i(4576),r=i(2839),o=a.process,l=a.Deno,c=o&&o.versions||l&&l.version,h=c&&c.v8;h&&(n=(s=h.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&r&&(!(s=r.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=r.match(/Chrome\/(\d+)/))&&(n=+s[1]),t.exports=n},9565:(t,e,i)=>{"use strict";var s=i(616),n=Function.prototype.call;t.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},9617:(t,e,i)=>{"use strict";var s=i(5397),n=i(5610),a=i(6198),r=function(t){return function(e,i,r){var o=s(e),l=a(o);if(0===l)return!t&&-1;var c,h=n(r,l);if(t&&i!=i){for(;l>h;)if((c=o[h++])!=c)return!0}else for(;l>h;h++)if((t||h in o)&&o[h]===i)return t||h||0;return!t&&-1}};t.exports={includes:r(!0),indexOf:r(!1)}}},e={};function i(s){var n=e[s];if(void 0!==n)return n.exports;var a=e[s]={id:s,exports:{}};return t[s].call(a.exports,a,a.exports,i),a.exports}i.m=t,i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var s in e)i.o(e,s)&&!i.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.b=document&&document.baseURI||self.location.href,i.nc=void 0,(()=>{"use strict";var t={};i.r(t),i.d(t,{afterMain:()=>A,afterRead:()=>v,afterWrite:()=>_,applyStyles:()=>B,arrow:()=>J,auto:()=>o,basePlacements:()=>l,beforeMain:()=>y,beforeRead:()=>x,beforeWrite:()=>k,bottom:()=>n,clippingParents:()=>d,computeStyles:()=>st,createPopper:()=>Bt,createPopperBase:()=>Pt,createPopperLite:()=>Ot,detectOverflow:()=>bt,end:()=>h,eventListeners:()=>at,flip:()=>vt,hide:()=>At,left:()=>r,main:()=>w,modifierPhases:()=>E,offset:()=>kt,placements:()=>m,popper:()=>p,popperGenerator:()=>Lt,popperOffsets:()=>Ct,preventOverflow:()=>_t,read:()=>b,reference:()=>g,right:()=>a,start:()=>c,top:()=>s,variationPlacements:()=>f,viewport:()=>u,write:()=>C});var e={};i.r(e),i.d(e,{Alert:()=>Me,Button:()=>Le,Carousel:()=>hi,Collapse:()=>Ci,Dropdown:()=>qi,Modal:()=>Ls,Offcanvas:()=>Us,Popover:()=>wn,ScrollSpy:()=>Bn,Tab:()=>ea,Toast:()=>ma,Tooltip:()=>mn}),i(7495),i(5440);var s="top",n="bottom",a="right",r="left",o="auto",l=[s,n,a,r],c="start",h="end",d="clippingParents",u="viewport",p="popper",g="reference",f=l.reduce(function(t,e){return t.concat([e+"-"+c,e+"-"+h])},[]),m=[].concat(l,[o]).reduce(function(t,e){return t.concat([e,e+"-"+c,e+"-"+h])},[]),x="beforeRead",b="read",v="afterRead",y="beforeMain",w="main",A="afterMain",k="beforeWrite",C="write",_="afterWrite",E=[x,b,v,y,w,A,k,C,_];function S(t){return t?(t.nodeName||"").toLowerCase():null}function M(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function T(t){return t instanceof M(t).Element||t instanceof Element}function L(t){return t instanceof M(t).HTMLElement||t instanceof HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof M(t).ShadowRoot||t instanceof ShadowRoot)}const B={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];L(n)&&S(n)&&(Object.assign(n.style,i),Object.keys(s).forEach(function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var s=e.elements[t],n=e.attributes[t]||{},a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});L(s)&&S(s)&&(Object.assign(s.style,a),Object.keys(n).forEach(function(t){s.removeAttribute(t)}))})}},requires:["computeStyles"]};function O(t){return t.split("-")[0]}var I=Math.max,z=Math.min,D=Math.round;function F(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function R(){return!/^((?!chrome|android).)*safari/i.test(F())}function H(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var s=t.getBoundingClientRect(),n=1,a=1;e&&L(t)&&(n=t.offsetWidth>0&&D(s.width)/t.offsetWidth||1,a=t.offsetHeight>0&&D(s.height)/t.offsetHeight||1);var r=(T(t)?M(t):window).visualViewport,o=!R()&&i,l=(s.left+(o&&r?r.offsetLeft:0))/n,c=(s.top+(o&&r?r.offsetTop:0))/a,h=s.width/n,d=s.height/a;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function N(t){var e=H(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function Y(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&P(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function W(t){return M(t).getComputedStyle(t)}function X(t){return["table","td","th"].indexOf(S(t))>=0}function V(t){return((T(t)?t.ownerDocument:t.document)||window.document).documentElement}function G(t){return"html"===S(t)?t:t.assignedSlot||t.parentNode||(P(t)?t.host:null)||V(t)}function $(t){return L(t)&&"fixed"!==W(t).position?t.offsetParent:null}function U(t){for(var e=M(t),i=$(t);i&&X(i)&&"static"===W(i).position;)i=$(i);return i&&("html"===S(i)||"body"===S(i)&&"static"===W(i).position)?e:i||function(t){var e=/firefox/i.test(F());if(/Trident/i.test(F())&&L(t)&&"fixed"===W(t).position)return null;var i=G(t);for(P(i)&&(i=i.host);L(i)&&["html","body"].indexOf(S(i))<0;){var s=W(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(t)||e}function q(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Z(t,e,i){return I(t,z(e,i))}function Q(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function K(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}const J={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,o=t.name,c=t.options,h=i.elements.arrow,d=i.modifiersData.popperOffsets,u=O(i.placement),p=q(u),g=[r,a].indexOf(u)>=0?"height":"width";if(h&&d){var f=function(t,e){return Q("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:K(t,l))}(c.padding,i),m=N(h),x="y"===p?s:r,b="y"===p?n:a,v=i.rects.reference[g]+i.rects.reference[p]-d[p]-i.rects.popper[g],y=d[p]-i.rects.reference[p],w=U(h),A=w?"y"===p?w.clientHeight||0:w.clientWidth||0:0,k=v/2-y/2,C=f[x],_=A-m[g]-f[b],E=A/2-m[g]/2+k,S=Z(C,E,_),M=p;i.modifiersData[o]=((e={})[M]=S,e.centerOffset=S-E,e)}},effect:function(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&Y(e.elements.popper,s)&&(e.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(t){var e,i=t.popper,o=t.popperRect,l=t.placement,c=t.variation,d=t.offsets,u=t.position,p=t.gpuAcceleration,g=t.adaptive,f=t.roundOffsets,m=t.isFixed,x=d.x,b=void 0===x?0:x,v=d.y,y=void 0===v?0:v,w="function"==typeof f?f({x:b,y}):{x:b,y};b=w.x,y=w.y;var A=d.hasOwnProperty("x"),k=d.hasOwnProperty("y"),C=r,_=s,E=window;if(g){var S=U(i),T="clientHeight",L="clientWidth";S===M(i)&&"static"!==W(S=V(i)).position&&"absolute"===u&&(T="scrollHeight",L="scrollWidth"),(l===s||(l===r||l===a)&&c===h)&&(_=n,y-=(m&&S===E&&E.visualViewport?E.visualViewport.height:S[T])-o.height,y*=p?1:-1),l!==r&&(l!==s&&l!==n||c!==h)||(C=a,b-=(m&&S===E&&E.visualViewport?E.visualViewport.width:S[L])-o.width,b*=p?1:-1)}var P,B=Object.assign({position:u},g&&et),O=!0===f?function(t,e){var i=t.x,s=t.y,n=e.devicePixelRatio||1;return{x:D(i*n)/n||0,y:D(s*n)/n||0}}({x:b,y},M(i)):{x:b,y};return b=O.x,y=O.y,p?Object.assign({},B,((P={})[_]=k?"0":"",P[C]=A?"0":"",P.transform=(E.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",P)):Object.assign({},B,((e={})[_]=k?y+"px":"",e[C]=A?b+"px":"",e.transform="",e))}const st={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,a=i.adaptive,r=void 0===a||a,o=i.roundOffsets,l=void 0===o||o,c={placement:O(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,it(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,it(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var nt={passive:!0};const at={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,a=void 0===n||n,r=s.resize,o=void 0===r||r,l=M(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(t){t.addEventListener("scroll",i.update,nt)}),o&&l.addEventListener("resize",i.update,nt),function(){a&&c.forEach(function(t){t.removeEventListener("scroll",i.update,nt)}),o&&l.removeEventListener("resize",i.update,nt)}},data:{}};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(t){return t.replace(/left|right|bottom|top/g,function(t){return rt[t]})}var lt={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,function(t){return lt[t]})}function ht(t){var e=M(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(t){return H(V(t)).left+ht(t).scrollLeft}function ut(t){var e=W(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function pt(t){return["html","body","#document"].indexOf(S(t))>=0?t.ownerDocument.body:L(t)&&ut(t)?t:pt(G(t))}function gt(t,e){var i;void 0===e&&(e=[]);var s=pt(t),n=s===(null==(i=t.ownerDocument)?void 0:i.body),a=M(s),r=n?[a].concat(a.visualViewport||[],ut(s)?s:[]):s,o=e.concat(r);return n?o:o.concat(gt(G(r)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function mt(t,e,i){return e===u?ft(function(t,e){var i=M(t),s=V(t),n=i.visualViewport,a=s.clientWidth,r=s.clientHeight,o=0,l=0;if(n){a=n.width,r=n.height;var c=R();(c||!c&&"fixed"===e)&&(o=n.offsetLeft,l=n.offsetTop)}return{width:a,height:r,x:o+dt(t),y:l}}(t,i)):T(e)?function(t,e){var i=H(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ft(function(t){var e,i=V(t),s=ht(t),n=null==(e=t.ownerDocument)?void 0:e.body,a=I(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=I(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),o=-s.scrollLeft+dt(t),l=-s.scrollTop;return"rtl"===W(n||i).direction&&(o+=I(i.clientWidth,n?n.clientWidth:0)-a),{width:a,height:r,x:o,y:l}}(V(t)))}function xt(t){var e,i=t.reference,o=t.element,l=t.placement,d=l?O(l):null,u=l?tt(l):null,p=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2;switch(d){case s:e={x:p,y:i.y-o.height};break;case n:e={x:p,y:i.y+i.height};break;case a:e={x:i.x+i.width,y:g};break;case r:e={x:i.x-o.width,y:g};break;default:e={x:i.x,y:i.y}}var f=d?q(d):null;if(null!=f){var m="y"===f?"height":"width";switch(u){case c:e[f]=e[f]-(i[m]/2-o[m]/2);break;case h:e[f]=e[f]+(i[m]/2-o[m]/2)}}return e}function bt(t,e){void 0===e&&(e={});var i=e,r=i.placement,o=void 0===r?t.placement:r,c=i.strategy,h=void 0===c?t.strategy:c,f=i.boundary,m=void 0===f?d:f,x=i.rootBoundary,b=void 0===x?u:x,v=i.elementContext,y=void 0===v?p:v,w=i.altBoundary,A=void 0!==w&&w,k=i.padding,C=void 0===k?0:k,_=Q("number"!=typeof C?C:K(C,l)),E=y===p?g:p,M=t.rects.popper,P=t.elements[A?E:y],B=function(t,e,i,s){var n="clippingParents"===e?function(t){var e=gt(G(t)),i=["absolute","fixed"].indexOf(W(t).position)>=0&&L(t)?U(t):t;return T(i)?e.filter(function(t){return T(t)&&Y(t,i)&&"body"!==S(t)}):[]}(t):[].concat(e),a=[].concat(n,[i]),r=a[0],o=a.reduce(function(e,i){var n=mt(t,i,s);return e.top=I(n.top,e.top),e.right=z(n.right,e.right),e.bottom=z(n.bottom,e.bottom),e.left=I(n.left,e.left),e},mt(t,r,s));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(T(P)?P:P.contextElement||V(t.elements.popper),m,b,h),O=H(t.elements.reference),D=xt({reference:O,element:M,strategy:"absolute",placement:o}),F=ft(Object.assign({},M,D)),R=y===p?F:O,N={top:B.top-R.top+_.top,bottom:R.bottom-B.bottom+_.bottom,left:B.left-R.left+_.left,right:R.right-B.right+_.right},X=t.modifiersData.offset;if(y===p&&X){var j=X[o];Object.keys(N).forEach(function(t){var e=[a,n].indexOf(t)>=0?1:-1,i=[s,n].indexOf(t)>=0?"y":"x";N[t]+=j[i]*e})}return N}const vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,h=t.name;if(!e.modifiersData[h]._skip){for(var d=i.mainAxis,u=void 0===d||d,p=i.altAxis,g=void 0===p||p,x=i.fallbackPlacements,b=i.padding,v=i.boundary,y=i.rootBoundary,w=i.altBoundary,A=i.flipVariations,k=void 0===A||A,C=i.allowedAutoPlacements,_=e.options.placement,E=O(_),S=x||(E!==_&&k?function(t){if(O(t)===o)return[];var e=ot(t);return[ct(t),e,ct(e)]}(_):[ot(_)]),M=[_].concat(S).reduce(function(t,i){return t.concat(O(i)===o?function(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,c=i.allowedAutoPlacements,h=void 0===c?m:c,d=tt(s),u=d?o?f:f.filter(function(t){return tt(t)===d}):l,p=u.filter(function(t){return h.indexOf(t)>=0});0===p.length&&(p=u);var g=p.reduce(function(e,i){return e[i]=bt(t,{placement:i,boundary:n,rootBoundary:a,padding:r})[O(i)],e},{});return Object.keys(g).sort(function(t,e){return g[t]-g[e]})}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:k,allowedAutoPlacements:C}):i)},[]),T=e.rects.reference,L=e.rects.popper,P=new Map,B=!0,I=M[0],z=0;z<M.length;z++){var D=M[z],F=O(D),R=tt(D)===c,H=[s,n].indexOf(F)>=0,N=H?"width":"height",Y=bt(e,{placement:D,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),W=H?R?a:r:R?n:s;T[N]>L[N]&&(W=ot(W));var X=ot(W),j=[];if(u&&j.push(Y[F]<=0),g&&j.push(Y[W]<=0,Y[X]<=0),j.every(function(t){return t})){I=D,B=!1;break}P.set(D,j)}if(B)for(var V=function(t){var e=M.find(function(e){var i=P.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return I=e,"break"},G=k?3:1;G>0&&"break"!==V(G);G--);e.placement!==I&&(e.modifiersData[h]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function wt(t){return[s,a,n,r].some(function(e){return t[e]>=0})}const At={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,a=e.modifiersData.preventOverflow,r=bt(e,{elementContext:"reference"}),o=bt(e,{altBoundary:!0}),l=yt(r,s),c=yt(o,n,a),h=wt(l),d=wt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},kt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,o=i.offset,l=void 0===o?[0,0]:o,c=m.reduce(function(t,i){return t[i]=function(t,e,i){var n=O(t),o=[r,s].indexOf(n)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*o,[r,a].indexOf(n)>=0?{x:h,y:c}:{x:c,y:h}}(i,e.rects,l),t},{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=c}},Ct={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=xt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},_t={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,o=t.name,l=i.mainAxis,h=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,p=i.boundary,g=i.rootBoundary,f=i.altBoundary,m=i.padding,x=i.tether,b=void 0===x||x,v=i.tetherOffset,y=void 0===v?0:v,w=bt(e,{boundary:p,rootBoundary:g,padding:m,altBoundary:f}),A=O(e.placement),k=tt(e.placement),C=!k,_=q(A),E="x"===_?"y":"x",S=e.modifiersData.popperOffsets,M=e.rects.reference,T=e.rects.popper,L="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,P="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(S){if(h){var F,R="y"===_?s:r,H="y"===_?n:a,Y="y"===_?"height":"width",W=S[_],X=W+w[R],j=W-w[H],V=b?-T[Y]/2:0,G=k===c?M[Y]:T[Y],$=k===c?-T[Y]:-M[Y],Q=e.elements.arrow,K=b&&Q?N(Q):{width:0,height:0},J=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=J[R],it=J[H],st=Z(0,M[Y],K[Y]),nt=C?M[Y]/2-V-st-et-P.mainAxis:G-st-et-P.mainAxis,at=C?-M[Y]/2+V+st+it+P.mainAxis:$+st+it+P.mainAxis,rt=e.elements.arrow&&U(e.elements.arrow),ot=rt?"y"===_?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(F=null==B?void 0:B[_])?F:0,ct=W+at-lt,ht=Z(b?z(X,W+nt-lt-ot):X,W,b?I(j,ct):j);S[_]=ht,D[_]=ht-W}if(u){var dt,ut="x"===_?s:r,pt="x"===_?n:a,gt=S[E],ft="y"===E?"height":"width",mt=gt+w[ut],xt=gt-w[pt],vt=-1!==[s,r].indexOf(A),yt=null!=(dt=null==B?void 0:B[E])?dt:0,wt=vt?mt:gt-M[ft]-T[ft]-yt+P.altAxis,At=vt?gt+M[ft]+T[ft]-yt-P.altAxis:xt,kt=b&&vt?function(t,e,i){var s=Z(t,e,i);return s>i?i:s}(wt,gt,At):Z(b?wt:mt,gt,b?At:xt);S[E]=kt,D[E]=kt-gt}e.modifiersData[o]=D}},requiresIfExists:["offset"]};function Et(t,e,i){void 0===i&&(i=!1);var s,n,a=L(e),r=L(e)&&function(t){var e=t.getBoundingClientRect(),i=D(e.width)/t.offsetWidth||1,s=D(e.height)/t.offsetHeight||1;return 1!==i||1!==s}(e),o=V(e),l=H(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(a||!a&&!i)&&(("body"!==S(e)||ut(o))&&(c=(s=e)!==M(s)&&L(s)?{scrollLeft:(n=s).scrollLeft,scrollTop:n.scrollTop}:ht(s)),L(e)?((h=H(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):o&&(h.x=dt(o))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function St(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}}),s.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||n(t)}),s}var Mt={placement:"bottom",modifiers:[],strategy:"absolute"};function Tt(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Lt(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,s=void 0===i?[]:i,n=e.defaultOptions,a=void 0===n?Mt:n;return function(t,e,i){void 0===i&&(i=a);var n,r,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mt,a),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,h={state:o,setOptions:function(i){var n="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},a,o.options,n),o.scrollParents={reference:T(t)?gt(t):t.contextElement?gt(t.contextElement):[],popper:gt(e)};var r,c,u=function(t){var e=St(t);return E.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((r=[].concat(s,o.options.modifiers),c=r.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return o.orderedModifiers=u.filter(function(t){return t.enabled}),o.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,s=void 0===i?{}:i,n=t.effect;if("function"==typeof n){var a=n({state:o,name:e,instance:h,options:s});l.push(a||function(){})}}),h.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Tt(e,i)){o.rects={reference:Et(e,U(i),"fixed"===o.options.strategy),popper:N(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(t){return o.modifiersData[t.name]=Object.assign({},t.data)});for(var s=0;s<o.orderedModifiers.length;s++)if(!0!==o.reset){var n=o.orderedModifiers[s],a=n.fn,r=n.options,l=void 0===r?{}:r,d=n.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:h})||o)}else o.reset=!1,s=-1}}},update:(n=function(){return new Promise(function(t){h.forceUpdate(),t(o)})},function(){return r||(r=new Promise(function(t){Promise.resolve().then(function(){r=void 0,t(n())})})),r}),destroy:function(){d(),c=!0}};if(!Tt(t,e))return h;function d(){l.forEach(function(t){return t()}),l=[]}return h.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),h}}var Pt=Lt(),Bt=Lt({defaultModifiers:[at,Ct,st,B,kt,vt,_t,J,At]}),Ot=Lt({defaultModifiers:[at,Ct,st,B]});const It=new Map,zt={set(t,e,i){It.has(t)||It.set(t,new Map);const s=It.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>It.has(t)&&It.get(t).get(e)||null,remove(t,e){if(!It.has(t))return;const i=It.get(t);i.delete(e),0===i.size&&It.delete(t)}},Dt="transitionend",Ft=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),Rt=t=>null==t?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Ht=t=>{t.dispatchEvent(new Event(Dt))},Nt=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Yt=t=>Nt(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(Ft(t)):null,Wt=t=>{if(!Nt(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},Xt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),jt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?jt(t.parentNode):null},Vt=()=>{},Gt=t=>{t.offsetHeight},$t=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ut=[],qt=()=>"rtl"===document.documentElement.dir,Zt=t=>{(t=>{"loading"===document.readyState?(Ut.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Ut)t()}),Ut.push(t)):t()})(()=>{const e=$t();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}})},Qt=(t,e=[],i=t)=>"function"==typeof t?t.call(...e):i,Kt=(t,e,i=!0)=>{if(!i)return void Qt(t);const s=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let n=!1;const a=({target:i})=>{i===e&&(n=!0,e.removeEventListener(Dt,a),Qt(t))};e.addEventListener(Dt,a),setTimeout(()=>{n||Ht(e)},s)},Jt=(t,e,i,s)=>{const n=t.length;let a=t.indexOf(e);return-1===a?!i&&s?t[n-1]:t[0]:(a+=i?1:-1,s&&(a=(a+n)%n),t[Math.max(0,Math.min(a,n-1))])},te=/[^.]*(?=\..*)\.|.*/,ee=/\..*/,ie=/::\d+$/,se={};let ne=1;const ae={mouseenter:"mouseover",mouseleave:"mouseout"},re=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function oe(t,e){return e&&`${e}::${ne++}`||t.uidEvent||ne++}function le(t){const e=oe(t);return t.uidEvent=e,se[e]=se[e]||{},se[e]}function ce(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function he(t,e,i){const s="string"==typeof e,n=s?i:e||i;let a=ge(t);return re.has(a)||(a=t),[s,n,a]}function de(t,e,i,s,n){if("string"!=typeof e||!t)return;let[a,r,o]=he(e,i,s);if(e in ae){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=le(t),c=l[o]||(l[o]={}),h=ce(c,r,a?i:null);if(h)return void(h.oneOff=h.oneOff&&n);const d=oe(r,e.replace(te,"")),u=a?function(t,e,i){return function s(n){const a=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(const o of a)if(o===r)return me(n,{delegateTarget:r}),s.oneOff&&fe.off(t,n.type,e,i),i.apply(r,[n])}}(t,i,r):function(t,e){return function i(s){return me(s,{delegateTarget:t}),i.oneOff&&fe.off(t,s.type,e),e.apply(t,[s])}}(t,r);u.delegationSelector=a?i:null,u.callable=r,u.oneOff=n,u.uidEvent=d,c[d]=u,t.addEventListener(o,u,a)}function ue(t,e,i,s,n){const a=ce(e[i],s,n);a&&(t.removeEventListener(i,a,Boolean(n)),delete e[i][a.uidEvent])}function pe(t,e,i,s){const n=e[i]||{};for(const[a,r]of Object.entries(n))a.includes(s)&&ue(t,e,i,r.callable,r.delegationSelector)}function ge(t){return t=t.replace(ee,""),ae[t]||t}const fe={on(t,e,i,s){de(t,e,i,s,!1)},one(t,e,i,s){de(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,a,r]=he(e,i,s),o=r!==e,l=le(t),c=l[r]||{},h=e.startsWith(".");if(void 0===a){if(h)for(const i of Object.keys(l))pe(t,l,i,e.slice(1));for(const[i,s]of Object.entries(c)){const n=i.replace(ie,"");o&&!e.includes(n)||ue(t,l,r,s.callable,s.delegationSelector)}}else{if(!Object.keys(c).length)return;ue(t,l,r,a,n?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=$t();let n=null,a=!0,r=!0,o=!1;e!==ge(e)&&s&&(n=s.Event(e,i),s(t).trigger(n),a=!n.isPropagationStopped(),r=!n.isImmediatePropagationStopped(),o=n.isDefaultPrevented());const l=me(new Event(e,{bubbles:a,cancelable:!0}),i);return o&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&n&&n.preventDefault(),l}};function me(t,e={}){for(const[i,s]of Object.entries(e))try{t[i]=s}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>s})}return t}function xe(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function be(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const ve={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${be(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${be(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const s of i){let i=s.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1),e[i]=xe(t.dataset[s])}return e},getDataAttribute:(t,e)=>xe(t.getAttribute(`data-bs-${be(e)}`))};class ye{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Nt(e)?ve.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Nt(e)?ve.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,s]of Object.entries(e)){const e=t[i],n=Nt(e)?"element":Rt(e);if(!new RegExp(s).test(n))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${n}" but expected type "${s}".`)}}}class we extends ye{constructor(t,e){super(),(t=Yt(t))&&(this._element=t,this._config=this._getConfig(e),zt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){zt.remove(this._element,this.constructor.DATA_KEY),fe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Kt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return zt.get(Yt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ae=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map(t=>Ft(t)).join(","):null},ke={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!Xt(t)&&Wt(t))},getSelectorFromElement(t){const e=Ae(t);return e&&ke.findOne(e)?e:null},getElementFromSelector(t){const e=Ae(t);return e?ke.findOne(e):null},getMultipleElementsFromSelector(t){const e=Ae(t);return e?ke.find(e):[]}},Ce=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;fe.on(document,i,`[data-bs-dismiss="${s}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),Xt(this))return;const n=ke.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(n)[e]()})},_e=".bs.alert",Ee=`close${_e}`,Se=`closed${_e}`;class Me extends we{static get NAME(){return"alert"}close(){if(fe.trigger(this._element,Ee).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),fe.trigger(this._element,Se),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Me.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ce(Me,"close"),Zt(Me);const Te='[data-bs-toggle="button"]';class Le extends we{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=Le.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}fe.on(document,"click.bs.button.data-api",Te,t=>{t.preventDefault();const e=t.target.closest(Te);Le.getOrCreateInstance(e).toggle()}),Zt(Le);const Pe=".bs.swipe",Be=`touchstart${Pe}`,Oe=`touchmove${Pe}`,Ie=`touchend${Pe}`,ze=`pointerdown${Pe}`,De=`pointerup${Pe}`,Fe={endCallback:null,leftCallback:null,rightCallback:null},Re={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class He extends ye{constructor(t,e){super(),this._element=t,t&&He.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Fe}static get DefaultType(){return Re}static get NAME(){return"swipe"}dispose(){fe.off(this._element,Pe)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Qt(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Qt(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(fe.on(this._element,ze,t=>this._start(t)),fe.on(this._element,De,t=>this._end(t)),this._element.classList.add("pointer-event")):(fe.on(this._element,Be,t=>this._start(t)),fe.on(this._element,Oe,t=>this._move(t)),fe.on(this._element,Ie,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Ne=".bs.carousel",Ye=".data-api",We="ArrowLeft",Xe="ArrowRight",je="next",Ve="prev",Ge="left",$e="right",Ue=`slide${Ne}`,qe=`slid${Ne}`,Ze=`keydown${Ne}`,Qe=`mouseenter${Ne}`,Ke=`mouseleave${Ne}`,Je=`dragstart${Ne}`,ti=`load${Ne}${Ye}`,ei=`click${Ne}${Ye}`,ii="carousel",si="active",ni=".active",ai=".carousel-item",ri=ni+ai,oi={[We]:$e,[Xe]:Ge},li={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ci={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class hi extends we{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=ke.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ii&&this.cycle()}static get Default(){return li}static get DefaultType(){return ci}static get NAME(){return"carousel"}next(){this._slide(je)}nextWhenVisible(){!document.hidden&&Wt(this._element)&&this.next()}prev(){this._slide(Ve)}pause(){this._isSliding&&Ht(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?fe.one(this._element,qe,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void fe.one(this._element,qe,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const s=t>i?je:Ve;this._slide(s,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&fe.on(this._element,Ze,t=>this._keydown(t)),"hover"===this._config.pause&&(fe.on(this._element,Qe,()=>this.pause()),fe.on(this._element,Ke,()=>this._maybeEnableCycle())),this._config.touch&&He.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of ke.find(".carousel-item img",this._element))fe.on(t,Je,t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(Ge)),rightCallback:()=>this._slide(this._directionToOrder($e)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new He(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=oi[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=ke.findOne(ni,this._indicatorsElement);e.classList.remove(si),e.removeAttribute("aria-current");const i=ke.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(si),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),s=t===je,n=e||Jt(this._getItems(),i,s,this._config.wrap);if(n===i)return;const a=this._getItemIndex(n),r=e=>fe.trigger(this._element,e,{relatedTarget:n,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:a});if(r(Ue).defaultPrevented)return;if(!i||!n)return;const o=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=n;const l=s?"carousel-item-start":"carousel-item-end",c=s?"carousel-item-next":"carousel-item-prev";n.classList.add(c),Gt(n),i.classList.add(l),n.classList.add(l),this._queueCallback(()=>{n.classList.remove(l,c),n.classList.add(si),i.classList.remove(si,c,l),this._isSliding=!1,r(qe)},i,this._isAnimated()),o&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return ke.findOne(ri,this._element)}_getItems(){return ke.find(ai,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return qt()?t===Ge?Ve:je:t===Ge?je:Ve}_orderToDirection(t){return qt()?t===Ve?Ge:$e:t===Ve?$e:Ge}static jQueryInterface(t){return this.each(function(){const e=hi.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}fe.on(document,ei,"[data-bs-slide], [data-bs-slide-to]",function(t){const e=ke.getElementFromSelector(this);if(!e||!e.classList.contains(ii))return;t.preventDefault();const i=hi.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===ve.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),fe.on(window,ti,()=>{const t=ke.find('[data-bs-ride="carousel"]');for(const e of t)hi.getOrCreateInstance(e)}),Zt(hi);const di=".bs.collapse",ui=`show${di}`,pi=`shown${di}`,gi=`hide${di}`,fi=`hidden${di}`,mi=`click${di}.data-api`,xi="show",bi="collapse",vi="collapsing",yi=`:scope .${bi} .${bi}`,wi='[data-bs-toggle="collapse"]',Ai={parent:null,toggle:!0},ki={parent:"(null|element)",toggle:"boolean"};class Ci extends we{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=ke.find(wi);for(const t of i){const e=ke.getSelectorFromElement(t),i=ke.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Ai}static get DefaultType(){return ki}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>Ci.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(fe.trigger(this._element,ui).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(bi),this._element.classList.add(vi),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(bi,xi),this._element.style[e]="",fe.trigger(this._element,pi)},this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(fe.trigger(this._element,gi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Gt(this._element),this._element.classList.add(vi),this._element.classList.remove(bi,xi);for(const t of this._triggerArray){const e=ke.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(vi),this._element.classList.add(bi),fe.trigger(this._element,fi)},this._element,!0)}_isShown(t=this._element){return t.classList.contains(xi)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Yt(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(wi);for(const e of t){const t=ke.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=ke.find(yi,this._config.parent);return ke.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=Ci.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}fe.on(document,mi,wi,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of ke.getMultipleElementsFromSelector(this))Ci.getOrCreateInstance(t,{toggle:!1}).toggle()}),Zt(Ci);const _i="dropdown",Ei=".bs.dropdown",Si=".data-api",Mi="ArrowUp",Ti="ArrowDown",Li=`hide${Ei}`,Pi=`hidden${Ei}`,Bi=`show${Ei}`,Oi=`shown${Ei}`,Ii=`click${Ei}${Si}`,zi=`keydown${Ei}${Si}`,Di=`keyup${Ei}${Si}`,Fi="show",Ri='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hi=`${Ri}.${Fi}`,Ni=".dropdown-menu",Yi=qt()?"top-end":"top-start",Wi=qt()?"top-start":"top-end",Xi=qt()?"bottom-end":"bottom-start",ji=qt()?"bottom-start":"bottom-end",Vi=qt()?"left-start":"right-start",Gi=qt()?"right-start":"left-start",$i={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Ui={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class qi extends we{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=ke.next(this._element,Ni)[0]||ke.prev(this._element,Ni)[0]||ke.findOne(Ni,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return $i}static get DefaultType(){return Ui}static get NAME(){return _i}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Xt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!fe.trigger(this._element,Bi,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Vt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Fi),this._element.classList.add(Fi),fe.trigger(this._element,Oi,t)}}hide(){if(Xt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!fe.trigger(this._element,Li,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Vt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Fi),this._element.classList.remove(Fi),this._element.setAttribute("aria-expanded","false"),ve.removeDataAttribute(this._menu,"popper"),fe.trigger(this._element,Pi,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Nt(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${_i.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){let t=this._element;"parent"===this._config.reference?t=this._parent:Nt(this._config.reference)?t=Yt(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Bt(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Fi)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Vi;if(t.classList.contains("dropstart"))return Gi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Wi:Yi:e?ji:Xi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(ve.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Qt(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=ke.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>Wt(t));i.length&&Jt(i,e,t===Ti,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=qi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=ke.find(Hi);for(const i of e){const e=qi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const s=t.composedPath(),n=s.includes(e._menu);if(s.includes(e._element)||"inside"===e._config.autoClose&&!n||"outside"===e._config.autoClose&&n)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:e._element};"click"===t.type&&(a.clickEvent=t),e._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,s=[Mi,Ti].includes(t.key);if(!s&&!i)return;if(e&&!i)return;t.preventDefault();const n=this.matches(Ri)?this:ke.prev(this,Ri)[0]||ke.next(this,Ri)[0]||ke.findOne(Ri,t.delegateTarget.parentNode),a=qi.getOrCreateInstance(n);if(s)return t.stopPropagation(),a.show(),void a._selectMenuItem(t);a._isShown()&&(t.stopPropagation(),a.hide(),n.focus())}}fe.on(document,zi,Ri,qi.dataApiKeydownHandler),fe.on(document,zi,Ni,qi.dataApiKeydownHandler),fe.on(document,Ii,qi.clearMenus),fe.on(document,Di,qi.clearMenus),fe.on(document,Ii,Ri,function(t){t.preventDefault(),qi.getOrCreateInstance(this).toggle()}),Zt(qi);const Zi="backdrop",Qi="show",Ki=`mousedown.bs.${Zi}`,Ji={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ts={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class es extends ye{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ji}static get DefaultType(){return ts}static get NAME(){return Zi}show(t){if(!this._config.isVisible)return void Qt(t);this._append();const e=this._getElement();this._config.isAnimated&&Gt(e),e.classList.add(Qi),this._emulateAnimation(()=>{Qt(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(Qi),this._emulateAnimation(()=>{this.dispose(),Qt(t)})):Qt(t)}dispose(){this._isAppended&&(fe.off(this._element,Ki),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Yt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),fe.on(t,Ki,()=>{Qt(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Kt(t,this._getElement(),this._config.isAnimated)}}const is=".bs.focustrap",ss=`focusin${is}`,ns=`keydown.tab${is}`,as="backward",rs={autofocus:!0,trapElement:null},os={autofocus:"boolean",trapElement:"element"};class ls extends ye{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rs}static get DefaultType(){return os}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),fe.off(document,is),fe.on(document,ss,t=>this._handleFocusin(t)),fe.on(document,ns,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,fe.off(document,is))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=ke.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===as?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?as:"forward")}}const cs=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hs=".sticky-top",ds="padding-right",us="margin-right";class ps{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ds,e=>e+t),this._setElementAttributes(cs,ds,e=>e+t),this._setElementAttributes(hs,us,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ds),this._resetElementAttributes(cs,ds),this._resetElementAttributes(hs,us)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(n))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&ve.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=ve.getDataAttribute(t,e);null!==i?(ve.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(Nt(t))e(t);else for(const i of ke.find(t,this._element))e(i)}}const gs=".bs.modal",fs=`hide${gs}`,ms=`hidePrevented${gs}`,xs=`hidden${gs}`,bs=`show${gs}`,vs=`shown${gs}`,ys=`resize${gs}`,ws=`click.dismiss${gs}`,As=`mousedown.dismiss${gs}`,ks=`keydown.dismiss${gs}`,Cs=`click${gs}.data-api`,_s="modal-open",Es="show",Ss="modal-static",Ms={backdrop:!0,focus:!0,keyboard:!0},Ts={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Ls extends we{constructor(t,e){super(t,e),this._dialog=ke.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new ps,this._addEventListeners()}static get Default(){return Ms}static get DefaultType(){return Ts}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||fe.trigger(this._element,bs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(_s),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(fe.trigger(this._element,fs).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Es),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){fe.off(window,gs),fe.off(this._dialog,gs),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new es({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=ke.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Gt(this._element),this._element.classList.add(Es),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,fe.trigger(this._element,vs,{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){fe.on(this._element,ks,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),fe.on(window,ys,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),fe.on(this._element,As,t=>{fe.one(this._element,ws,e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(_s),this._resetAdjustments(),this._scrollBar.reset(),fe.trigger(this._element,xs)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(fe.trigger(this._element,ms).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ss)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ss),this._queueCallback(()=>{this._element.classList.remove(Ss),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=qt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=qt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=Ls.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}fe.on(document,Cs,'[data-bs-toggle="modal"]',function(t){const e=ke.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),fe.one(e,bs,t=>{t.defaultPrevented||fe.one(e,xs,()=>{Wt(this)&&this.focus()})});const i=ke.findOne(".modal.show");i&&Ls.getInstance(i).hide(),Ls.getOrCreateInstance(e).toggle(this)}),Ce(Ls),Zt(Ls);const Ps=".bs.offcanvas",Bs=".data-api",Os=`load${Ps}${Bs}`,Is="show",zs="showing",Ds="hiding",Fs=".offcanvas.show",Rs=`show${Ps}`,Hs=`shown${Ps}`,Ns=`hide${Ps}`,Ys=`hidePrevented${Ps}`,Ws=`hidden${Ps}`,Xs=`resize${Ps}`,js=`click${Ps}${Bs}`,Vs=`keydown.dismiss${Ps}`,Gs={backdrop:!0,keyboard:!0,scroll:!1},$s={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Us extends we{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Gs}static get DefaultType(){return $s}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||fe.trigger(this._element,Rs,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new ps).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(zs),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Is),this._element.classList.remove(zs),fe.trigger(this._element,Hs,{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(fe.trigger(this._element,Ns).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ds),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Is,Ds),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new ps).reset(),fe.trigger(this._element,Ws)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new es({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():fe.trigger(this._element,Ys)}:null})}_initializeFocusTrap(){return new ls({trapElement:this._element})}_addEventListeners(){fe.on(this._element,Vs,t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():fe.trigger(this._element,Ys))})}static jQueryInterface(t){return this.each(function(){const e=Us.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}fe.on(document,js,'[data-bs-toggle="offcanvas"]',function(t){const e=ke.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),Xt(this))return;fe.one(e,Ws,()=>{Wt(this)&&this.focus()});const i=ke.findOne(Fs);i&&i!==e&&Us.getInstance(i).hide(),Us.getOrCreateInstance(e).toggle(this)}),fe.on(window,Os,()=>{for(const t of ke.find(Fs))Us.getOrCreateInstance(t).show()}),fe.on(window,Xs,()=>{for(const t of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Us.getOrCreateInstance(t).hide()}),Ce(Us),Zt(Us);const qs={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Zs=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Qs=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ks=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Zs.has(i)||Boolean(Qs.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))},Js={allowList:qs,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},tn={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},en={entry:"(string|element|function|null)",selector:"(string|element)"};class sn extends ye{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Js}static get DefaultType(){return tn}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},en)}_setContent(t,e,i){const s=ke.findOne(i,t);s&&((e=this._resolvePossibleFunction(e))?Nt(e)?this._putElementInTemplate(Yt(e),s):this._config.html?s.innerHTML=this._maybeSanitize(e):s.textContent=e:s.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(const t of n){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const s=[].concat(...t.attributes),n=[].concat(e["*"]||[],e[i]||[]);for(const e of s)Ks(e,n)||t.removeAttribute(e.nodeName)}return s.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Qt(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const nn=new Set(["sanitize","allowList","sanitizeFn"]),an="fade",rn="show",on=".tooltip-inner",ln=".modal",cn="hide.bs.modal",hn="hover",dn="focus",un="click",pn={AUTO:"auto",TOP:"top",RIGHT:qt()?"left":"right",BOTTOM:"bottom",LEFT:qt()?"right":"left"},gn={allowList:qs,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},fn={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class mn extends we{constructor(t,e){super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return gn}static get DefaultType(){return fn}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),fe.off(this._element.closest(ln),cn,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=fe.trigger(this._element,this.constructor.eventName("show")),e=(jt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),fe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(rn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.on(t,"mouseover",Vt);this._queueCallback(()=>{fe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!fe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(rn),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))fe.off(t,"mouseover",Vt);this._activeTrigger[un]=!1,this._activeTrigger[dn]=!1,this._activeTrigger[hn]=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),fe.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(an,rn),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(an),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new sn({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[on]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(an)}_isShown(){return this.tip&&this.tip.classList.contains(rn)}_createPopper(t){const e=Qt(this._config.placement,[this,t,this._element]),i=pn[e.toUpperCase()];return Bt(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Qt(t,[this._element,this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Qt(this._config.popperConfig,[void 0,e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)fe.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger[un]=!(e._isShown()&&e._activeTrigger[un]),e.toggle()});else if("manual"!==e){const t=e===hn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===hn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");fe.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?dn:hn]=!0,e._enter()}),fe.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?dn:hn]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},fe.on(this._element.closest(ln),cn,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=ve.getDataAttributes(this._element);for(const t of Object.keys(e))nn.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Yt(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=mn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Zt(mn);const xn=".popover-header",bn=".popover-body",vn={...mn.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},yn={...mn.DefaultType,content:"(null|string|element|function)"};class wn extends mn{static get Default(){return vn}static get DefaultType(){return yn}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[xn]:this._getTitle(),[bn]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=wn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}Zt(wn);const An=".bs.scrollspy",kn=`activate${An}`,Cn=`click${An}`,_n=`load${An}.data-api`,En="active",Sn="[href]",Mn=".nav-link",Tn=`${Mn}, .nav-item > ${Mn}, .list-group-item`,Ln={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Pn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Bn extends we{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Ln}static get DefaultType(){return Pn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Yt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(fe.off(this._config.target,Cn),fe.on(this._config.target,Cn,Sn,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,s=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:s,behavior:"smooth"});i.scrollTop=s}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},s=(this._rootElement||document.documentElement).scrollTop,n=s>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=s;for(const a of t){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(a));continue}const t=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(n&&t){if(i(a),!s)return}else n||t||i(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=ke.find(Sn,this._config.target);for(const e of t){if(!e.hash||Xt(e))continue;const t=ke.findOne(decodeURI(e.hash),this._element);Wt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(En),this._activateParents(t),fe.trigger(this._element,kn,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))ke.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(En);else for(const e of ke.parents(t,".nav, .list-group"))for(const t of ke.prev(e,Tn))t.classList.add(En)}_clearActiveClass(t){t.classList.remove(En);const e=ke.find(`${Sn}.${En}`,t);for(const t of e)t.classList.remove(En)}static jQueryInterface(t){return this.each(function(){const e=Bn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}fe.on(window,_n,()=>{for(const t of ke.find('[data-bs-spy="scroll"]'))Bn.getOrCreateInstance(t)}),Zt(Bn);const On=".bs.tab",In=`hide${On}`,zn=`hidden${On}`,Dn=`show${On}`,Fn=`shown${On}`,Rn=`click${On}`,Hn=`keydown${On}`,Nn=`load${On}`,Yn="ArrowLeft",Wn="ArrowRight",Xn="ArrowUp",jn="ArrowDown",Vn="Home",Gn="End",$n="active",Un="fade",qn="show",Zn=".dropdown-toggle",Qn=`:not(${Zn})`,Kn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Jn=`.nav-link${Qn}, .list-group-item${Qn}, [role="tab"]${Qn}, ${Kn}`,ta=`.${$n}[data-bs-toggle="tab"], .${$n}[data-bs-toggle="pill"], .${$n}[data-bs-toggle="list"]`;class ea extends we{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),fe.on(this._element,Hn,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?fe.trigger(e,In,{relatedTarget:t}):null;fe.trigger(t,Dn,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add($n),this._activate(ke.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),fe.trigger(t,Fn,{relatedTarget:e})):t.classList.add(qn)},t,t.classList.contains(Un)))}_deactivate(t,e){t&&(t.classList.remove($n),t.blur(),this._deactivate(ke.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),fe.trigger(t,zn,{relatedTarget:e})):t.classList.remove(qn)},t,t.classList.contains(Un)))}_keydown(t){if(![Yn,Wn,Xn,jn,Vn,Gn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(t=>!Xt(t));let i;if([Vn,Gn].includes(t.key))i=e[t.key===Vn?0:e.length-1];else{const s=[Wn,jn].includes(t.key);i=Jt(e,t.target,s,!0)}i&&(i.focus({preventScroll:!0}),ea.getOrCreateInstance(i).show())}_getChildren(){return ke.find(Jn,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=ke.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const s=(t,s)=>{const n=ke.findOne(t,i);n&&n.classList.toggle(s,e)};s(Zn,$n),s(".dropdown-menu",qn),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains($n)}_getInnerElement(t){return t.matches(Jn)?t:ke.findOne(Jn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=ea.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}fe.on(document,Rn,Kn,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),Xt(this)||ea.getOrCreateInstance(this).show()}),fe.on(window,Nn,()=>{for(const t of ke.find(ta))ea.getOrCreateInstance(t)}),Zt(ea);const ia=".bs.toast",sa=`mouseover${ia}`,na=`mouseout${ia}`,aa=`focusin${ia}`,ra=`focusout${ia}`,oa=`hide${ia}`,la=`hidden${ia}`,ca=`show${ia}`,ha=`shown${ia}`,da="hide",ua="show",pa="showing",ga={animation:"boolean",autohide:"boolean",delay:"number"},fa={animation:!0,autohide:!0,delay:5e3};class ma extends we{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return fa}static get DefaultType(){return ga}static get NAME(){return"toast"}show(){fe.trigger(this._element,ca).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(da),Gt(this._element),this._element.classList.add(ua,pa),this._queueCallback(()=>{this._element.classList.remove(pa),fe.trigger(this._element,ha),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(fe.trigger(this._element,oa).defaultPrevented||(this._element.classList.add(pa),this._queueCallback(()=>{this._element.classList.add(da),this._element.classList.remove(pa,ua),fe.trigger(this._element,la)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ua),super.dispose()}isShown(){return this._element.classList.contains(ua)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){fe.on(this._element,sa,t=>this._onInteraction(t,!0)),fe.on(this._element,na,t=>this._onInteraction(t,!1)),fe.on(this._element,aa,t=>this._onInteraction(t,!0)),fe.on(this._element,ra,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ma.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Ce(ma),Zt(ma);var xa,ba,va,ya,wa=!1,Aa=!1,ka=[],Ca=-1;function _a(t){let e=ka.indexOf(t);-1!==e&&e>Ca&&ka.splice(e,1)}function Ea(){wa=!1,Aa=!0;for(let t=0;t<ka.length;t++)ka[t](),Ca=t;ka.length=0,Ca=-1,Aa=!1}var Sa=!0;function Ma(t){ba=t}function Ta(t,e){let i,s=!0,n=ba(()=>{let n=t();JSON.stringify(n),s?i=n:queueMicrotask(()=>{e(n,i),i=n}),s=!1});return()=>va(n)}var La=[],Pa=[],Ba=[];function Oa(t,e){"function"==typeof e?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,Pa.push(e))}function Ia(t){La.push(t)}function za(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}function Da(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([i,s])=>{(void 0===e||e.includes(i))&&(s.forEach(t=>t()),delete t._x_attributeCleanups[i])})}var Fa=new MutationObserver(Va),Ra=!1;function Ha(){Fa.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Ra=!0}function Na(){!function(){let t=Fa.takeRecords();Ya.push(()=>t.length>0&&Va(t));let e=Ya.length;queueMicrotask(()=>{if(Ya.length===e)for(;Ya.length>0;)Ya.shift()()})}(),Fa.disconnect(),Ra=!1}var Ya=[];function Wa(t){if(!Ra)return t();Na();let e=t();return Ha(),e}var Xa=!1,ja=[];function Va(t){if(Xa)return void(ja=ja.concat(t));let e=[],i=new Set,s=new Map,n=new Map;for(let a=0;a<t.length;a++)if(!t[a].target._x_ignoreMutationObserver&&("childList"===t[a].type&&(t[a].removedNodes.forEach(t=>{1===t.nodeType&&t._x_marker&&i.add(t)}),t[a].addedNodes.forEach(t=>{1===t.nodeType&&(i.has(t)?i.delete(t):t._x_marker||e.push(t))})),"attributes"===t[a].type)){let e=t[a].target,i=t[a].attributeName,r=t[a].oldValue,o=()=>{s.has(e)||s.set(e,[]),s.get(e).push({name:i,value:e.getAttribute(i)})},l=()=>{n.has(e)||n.set(e,[]),n.get(e).push(i)};e.hasAttribute(i)&&null===r?o():e.hasAttribute(i)?(l(),o()):l()}n.forEach((t,e)=>{Da(e,t)}),s.forEach((t,e)=>{La.forEach(i=>i(e,t))});for(let t of i)e.some(e=>e.contains(t))||Pa.forEach(e=>e(t));for(let t of e)t.isConnected&&Ba.forEach(e=>e(t));e=null,i=null,s=null,n=null}function Ga(t){return qa(Ua(t))}function $a(t,e,i){return t._x_dataStack=[e,...Ua(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter(t=>t!==e)}}function Ua(t){return t._x_dataStack?t._x_dataStack:"function"==typeof ShadowRoot&&t instanceof ShadowRoot?Ua(t.host):t.parentNode?Ua(t.parentNode):[]}function qa(t){return new Proxy({objects:t},Za)}var Za={ownKeys:({objects:t})=>Array.from(new Set(t.flatMap(t=>Object.keys(t)))),has:({objects:t},e)=>e!=Symbol.unscopables&&t.some(t=>Object.prototype.hasOwnProperty.call(t,e)||Reflect.has(t,e)),get:({objects:t},e,i)=>"toJSON"==e?Qa:Reflect.get(t.find(t=>Reflect.has(t,e))||{},e,i),set({objects:t},e,i,s){const n=t.find(t=>Object.prototype.hasOwnProperty.call(t,e))||t[t.length-1],a=Object.getOwnPropertyDescriptor(n,e);return a?.set&&a?.get?a.set.call(s,i)||!0:Reflect.set(n,e,i)}};function Qa(){return Reflect.ownKeys(this).reduce((t,e)=>(t[e]=Reflect.get(this,e),t),{})}function Ka(t){let e=(i,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(i)).forEach(([n,{value:a,enumerable:r}])=>{if(!1===r||void 0===a)return;if("object"==typeof a&&null!==a&&a.__v_skip)return;let o=""===s?n:`${s}.${n}`;var l;"object"==typeof a&&null!==a&&a._x_interceptor?i[n]=a.initialize(t,o,n):"object"!=typeof(l=a)||Array.isArray(l)||null===l||a===i||a instanceof Element||e(a,o)})};return e(t)}function Ja(t,e=()=>{}){let i={initialValue:void 0,_x_interceptor:!0,initialize(e,i,s){return t(this.initialValue,()=>function(t,e){return e.split(".").reduce((t,e)=>t[e],t)}(e,i),t=>tr(e,i,t),i,s)}};return e(i),t=>{if("object"==typeof t&&null!==t&&t._x_interceptor){let e=i.initialize.bind(i);i.initialize=(s,n,a)=>{let r=t.initialize(s,n,a);return i.initialValue=r,e(s,n,a)}}else i.initialValue=t;return i}}function tr(t,e,i){if("string"==typeof e&&(e=e.split(".")),1!==e.length){if(0===e.length)throw error;return t[e[0]]||(t[e[0]]={}),tr(t[e[0]],e.slice(1),i)}t[e[0]]=i}var er={};function ir(t,e){er[t]=e}function sr(t,e){let i=function(t){let[e,i]=kr(t),s={interceptor:Ja,...e};return Oa(t,i),s}(e);return Object.entries(er).forEach(([s,n])=>{Object.defineProperty(t,`$${s}`,{get:()=>n(e,i),enumerable:!1})}),t}function nr(t,e,i,...s){try{return i(...s)}catch(i){ar(i,t,e)}}function ar(t,e,i=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:i}),console.warn(`Alpine Expression Error: ${t.message}\n\n${i?'Expression: "'+i+'"\n\n':""}`,e),setTimeout(()=>{throw t},0)}var rr=!0;function or(t){let e=rr;rr=!1;let i=t();return rr=e,i}function lr(t,e,i={}){let s;return cr(t,e)(t=>s=t,i),s}function cr(...t){return hr(...t)}var hr=dr;function dr(t,e){let i={};sr(i,t);let s=[i,...Ua(t)],n="function"==typeof e?function(t,e){return(i=()=>{},{scope:s={},params:n=[],context:a}={})=>{pr(i,e.apply(qa([s,...t]),n))}}(s,e):function(t,e,i){let s=function(t,e){if(ur[t])return ur[t];let i=Object.getPrototypeOf(async function(){}).constructor,s=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t;let n=(()=>{try{let e=new i(["__self","scope"],`with (scope) { __self.result = ${s} }; __self.finished = true; return __self.result;`);return Object.defineProperty(e,"name",{value:`[Alpine] ${t}`}),e}catch(i){return ar(i,e,t),Promise.resolve()}})();return ur[t]=n,n}(e,i);return(n=()=>{},{scope:a={},params:r=[],context:o}={})=>{s.result=void 0,s.finished=!1;let l=qa([a,...t]);if("function"==typeof s){let t=s.call(o,s,l).catch(t=>ar(t,i,e));s.finished?(pr(n,s.result,l,r,i),s.result=void 0):t.then(t=>{pr(n,t,l,r,i)}).catch(t=>ar(t,i,e)).finally(()=>s.result=void 0)}}}(s,e,t);return nr.bind(null,t,e,n)}var ur={};function pr(t,e,i,s,n){if(rr&&"function"==typeof e){let a=e.apply(i,s);a instanceof Promise?a.then(e=>pr(t,e,i,s)).catch(t=>ar(t,n,e)):t(a)}else"object"==typeof e&&e instanceof Promise?e.then(e=>t(e)):t(e)}var gr="x-";function fr(t=""){return gr+t}var mr={};function xr(t,e){return mr[t]=e,{before(e){if(!mr[e])return void console.warn(String.raw`Cannot find directive \`${e}\`. \`${t}\` will use the default order of execution`);const i=Pr.indexOf(e);Pr.splice(i>=0?i:Pr.indexOf("DEFAULT"),0,t)}}}function br(t,e,i){if(e=Array.from(e),t._x_virtualDirectives){let i=Object.entries(t._x_virtualDirectives).map(([t,e])=>({name:t,value:e})),s=vr(i);i=i.map(t=>s.find(e=>e.name===t.name)?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t),e=e.concat(i)}let s={},n=e.map(_r((t,e)=>s[t]=e)).filter(Mr).map(function(t,e){return({name:i,value:s})=>{let n=i.match(Tr()),a=i.match(/:([a-zA-Z0-9\-_:]+)/),r=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],o=e||t[i]||i;return{type:n?n[1]:null,value:a?a[1]:null,modifiers:r.map(t=>t.replace(".","")),expression:s,original:o}}}(s,i)).sort(Br);return n.map(e=>function(t,e){let i=mr[e.type]||(()=>{}),[s,n]=kr(t);za(t,e.original,n);let a=()=>{t._x_ignore||t._x_ignoreSelf||(i.inline&&i.inline(t,e,s),i=i.bind(i,t,e,s),yr?wr.get(Ar).push(i):i())};return a.runCleanups=n,a}(t,e))}function vr(t){return Array.from(t).map(_r()).filter(t=>!Mr(t))}var yr=!1,wr=new Map,Ar=Symbol();function kr(t){let e=[],[i,s]=function(t){let e=()=>{};return[i=>{let s=ba(i);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(t=>t())}),t._x_effects.add(s),e=()=>{void 0!==s&&(t._x_effects.delete(s),va(s))},s},()=>{e()}]}(t);e.push(s);let n={Alpine:Oo,effect:i,cleanup:t=>e.push(t),evaluateLater:cr.bind(cr,t),evaluate:lr.bind(lr,t)};return[n,()=>e.forEach(t=>t())]}var Cr=(t,e)=>({name:i,value:s})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:s});function _r(t=()=>{}){return({name:e,value:i})=>{let{name:s,value:n}=Er.reduce((t,e)=>e(t),{name:e,value:i});return s!==e&&t(s,e),{name:s,value:n}}}var Er=[];function Sr(t){Er.push(t)}function Mr({name:t}){return Tr().test(t)}var Tr=()=>new RegExp(`^${gr}([^:^.]+)\\b`),Lr="DEFAULT",Pr=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",Lr,"teleport"];function Br(t,e){let i=-1===Pr.indexOf(t.type)?Lr:t.type,s=-1===Pr.indexOf(e.type)?Lr:e.type;return Pr.indexOf(i)-Pr.indexOf(s)}function Or(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}function Ir(t,e){if("function"==typeof ShadowRoot&&t instanceof ShadowRoot)return void Array.from(t.children).forEach(t=>Ir(t,e));let i=!1;if(e(t,()=>i=!0),i)return;let s=t.firstElementChild;for(;s;)Ir(s,e),s=s.nextElementSibling}function zr(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Dr=!1,Fr=[],Rr=[];function Hr(){return Fr.map(t=>t())}function Nr(){return Fr.concat(Rr).map(t=>t())}function Yr(t){Fr.push(t)}function Wr(t){Rr.push(t)}function Xr(t,e=!1){return jr(t,t=>{if((e?Nr():Hr()).some(e=>t.matches(e)))return!0})}function jr(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),t.parentElement)return jr(t.parentElement,e)}}var Vr=[],Gr=1;function $r(t,e=Ir,i=()=>{}){jr(t,t=>t._x_ignore)||function(){yr=!0;let s=Symbol();Ar=s,wr.set(s,[]);let n=()=>{for(;wr.get(s).length;)wr.get(s).shift()();wr.delete(s)};e(t,(t,e)=>{t._x_marker||(i(t,e),Vr.forEach(i=>i(t,e)),br(t,t.attributes).forEach(t=>t()),t._x_ignore||(t._x_marker=Gr++),t._x_ignore&&e())}),yr=!1,n()}()}function Ur(t,e=Ir){e(t,t=>{!function(t){for(t._x_effects?.forEach(_a);t._x_cleanups?.length;)t._x_cleanups.pop()()}(t),Da(t),delete t._x_marker})}var qr=[],Zr=!1;function Qr(t=()=>{}){return queueMicrotask(()=>{Zr||setTimeout(()=>{Kr()})}),new Promise(e=>{qr.push(()=>{t(),e()})})}function Kr(){for(Zr=!1;qr.length;)qr.shift()()}function Jr(t,e){return Array.isArray(e)?to(t,e.join(" ")):"object"==typeof e&&null!==e?function(t,e){let i=t=>t.split(" ").filter(Boolean),s=Object.entries(e).flatMap(([t,e])=>!!e&&i(t)).filter(Boolean),n=Object.entries(e).flatMap(([t,e])=>!e&&i(t)).filter(Boolean),a=[],r=[];return n.forEach(e=>{t.classList.contains(e)&&(t.classList.remove(e),r.push(e))}),s.forEach(e=>{t.classList.contains(e)||(t.classList.add(e),a.push(e))}),()=>{r.forEach(e=>t.classList.add(e)),a.forEach(e=>t.classList.remove(e))}}(t,e):"function"==typeof e?Jr(t,e()):to(t,e)}function to(t,e){return(e=>(t.classList.add(...e),()=>{t.classList.remove(...e)}))((e=!0===e?e="":e||"").split(" ").filter(e=>!t.classList.contains(e)).filter(Boolean))}function eo(t,e){return"object"==typeof e&&null!==e?function(t,e){let i={};return Object.entries(e).forEach(([e,s])=>{i[e]=t.style[e],e.startsWith("--")||(e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),t.style.setProperty(e,s)}),setTimeout(()=>{0===t.style.length&&t.removeAttribute("style")}),()=>{eo(t,i)}}(t,e):function(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i||"")}}(t,e)}function io(t,e=()=>{}){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}function so(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(i=()=>{},s=()=>{}){ao(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},i,s)},out(i=()=>{},s=()=>{}){ao(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},i,s)}})}function no(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:no(e)}function ao(t,e,{during:i,start:s,end:n}={},a=()=>{},r=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),0===Object.keys(i).length&&0===Object.keys(s).length&&0===Object.keys(n).length)return a(),void r();let o,l,c;!function(t,e){let i,s,n,a=io(()=>{Wa(()=>{i=!0,s||e.before(),n||(e.end(),Kr()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(t){this.beforeCancels.push(t)},cancel:io(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},Wa(()=>{e.start(),e.during()}),Zr=!0,requestAnimationFrame(()=>{if(i)return;let a=1e3*Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s","")),r=1e3*Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""));0===a&&(a=1e3*Number(getComputedStyle(t).animationDuration.replace("s",""))),Wa(()=>{e.before()}),s=!0,requestAnimationFrame(()=>{i||(Wa(()=>{e.end()}),Kr(),setTimeout(t._x_transitioning.finish,a+r),n=!0)})})}(t,{start(){o=e(t,s)},during(){l=e(t,i)},before:a,end(){o(),c=e(t,n)},after:r,cleanup(){l(),c()}})}function ro(t,e,i){if(-1===t.indexOf(e))return i;const s=t[t.indexOf(e)+1];if(!s)return i;if("scale"===e&&isNaN(s))return i;if("duration"===e||"delay"===e){let t=s.match(/([0-9]+)ms/);if(t)return t[1]}return"origin"===e&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[s,t[t.indexOf(e)+2]].join(" "):s}xr("transition",(t,{value:e,modifiers:i,expression:s},{evaluate:n})=>{"function"==typeof s&&(s=n(s)),!1!==s&&(s&&"boolean"!=typeof s?function(t,e,i){so(t,Jr,"");let s={enter:e=>{t._x_transition.enter.during=e},"enter-start":e=>{t._x_transition.enter.start=e},"enter-end":e=>{t._x_transition.enter.end=e},leave:e=>{t._x_transition.leave.during=e},"leave-start":e=>{t._x_transition.leave.start=e},"leave-end":e=>{t._x_transition.leave.end=e}};s[i](e)}(t,s,e):function(t,e,i){so(t,eo);let s=!e.includes("in")&&!e.includes("out")&&!i,n=s||e.includes("in")||["enter"].includes(i),a=s||e.includes("out")||["leave"].includes(i);e.includes("in")&&!s&&(e=e.filter((t,i)=>i<e.indexOf("out"))),e.includes("out")&&!s&&(e=e.filter((t,i)=>i>e.indexOf("out")));let r=!e.includes("opacity")&&!e.includes("scale"),o=r||e.includes("opacity")?0:1,l=r||e.includes("scale")?ro(e,"scale",95)/100:1,c=ro(e,"delay",0)/1e3,h=ro(e,"origin","center"),d="opacity, transform",u=ro(e,"duration",150)/1e3,p=ro(e,"duration",75)/1e3,g="cubic-bezier(0.4, 0.0, 0.2, 1)";n&&(t._x_transition.enter.during={transformOrigin:h,transitionDelay:`${c}s`,transitionProperty:d,transitionDuration:`${u}s`,transitionTimingFunction:g},t._x_transition.enter.start={opacity:o,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(t._x_transition.leave.during={transformOrigin:h,transitionDelay:`${c}s`,transitionProperty:d,transitionDuration:`${p}s`,transitionTimingFunction:g},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:o,transform:`scale(${l})`})}(t,i,e))}),window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,i,s){const n="visible"===document.visibilityState?requestAnimationFrame:setTimeout;let a=()=>n(i);e?t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(i):a():t._x_transition?t._x_transition.in(i):a():(t._x_hidePromise=t._x_transition?new Promise((e,i)=>{t._x_transition.out(()=>{},()=>e(s)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>i({isFromCancelledTransition:!0}))}):Promise.resolve(s),queueMicrotask(()=>{let e=no(t);e?(e._x_hideChildren||(e._x_hideChildren=[]),e._x_hideChildren.push(t)):n(()=>{let e=t=>{let i=Promise.all([t._x_hidePromise,...(t._x_hideChildren||[]).map(e)]).then(([t])=>t?.());return delete t._x_hidePromise,delete t._x_hideChildren,i};e(t).catch(t=>{if(!t.isFromCancelledTransition)throw t})})}))};var oo=!1;function lo(t,e=()=>{}){return(...i)=>oo?e(...i):t(...i)}var co=[];function ho(t){co.push(t)}var uo=!1;function po(t){let e=ba;Ma((t,i)=>{let s=e(t);return va(s),()=>{}}),t(),Ma(e)}function go(t,e,i,s=[]){switch(t._x_bindings||(t._x_bindings=xa({})),t._x_bindings[e]=i,e=s.includes("camel")?e.toLowerCase().replace(/-(\w)/g,(t,e)=>e.toUpperCase()):e){case"value":!function(t,e){if(Ao(t))void 0===t.attributes.value&&(t.value=e),window.fromModel&&(t.checked="boolean"==typeof e?xo(t.value)===e:mo(t.value,e));else if(wo(t))Number.isInteger(e)?t.value=e:Array.isArray(e)||"boolean"==typeof e||[null,void 0].includes(e)?Array.isArray(e)?t.checked=e.some(e=>mo(e,t.value)):t.checked=!!e:t.value=String(e);else if("SELECT"===t.tagName)!function(t,e){const i=[].concat(e).map(t=>t+"");Array.from(t.options).forEach(t=>{t.selected=i.includes(t.value)})}(t,e);else{if(t.value===e)return;t.value=void 0===e?"":e}}(t,i);break;case"style":!function(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=eo(t,e)}(t,i);break;case"class":!function(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=Jr(t,e)}(t,i);break;case"selected":case"checked":!function(t,e,i){fo(t,e,i),function(t,e,i){t[e]!==i&&(t[e]=i)}(t,e,i)}(t,e,i);break;default:fo(t,e,i)}}function fo(t,e,i){[null,void 0,!1].includes(i)&&function(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}(e)?t.removeAttribute(e):(vo(e)&&(i=e),function(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}(t,e,i))}function mo(t,e){return t==e}function xo(t){return!![1,"1","true","on","yes",!0].includes(t)||![0,"0","false","off","no",!1].includes(t)&&(t?Boolean(t):null)}var bo=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function vo(t){return bo.has(t)}function yo(t,e,i){let s=t.getAttribute(e);return null===s?"function"==typeof i?i():i:""===s||(vo(e)?!![e,"true"].includes(s):s)}function wo(t){return"checkbox"===t.type||"ui-checkbox"===t.localName||"ui-switch"===t.localName}function Ao(t){return"radio"===t.type||"ui-radio"===t.localName}function ko(t,e){let i;return function(){const s=this,n=arguments;clearTimeout(i),i=setTimeout(function(){i=null,t.apply(s,n)},e)}}function Co(t,e){let i;return function(){let s=arguments;i||(t.apply(this,s),i=!0,setTimeout(()=>i=!1,e))}}function _o({get:t,set:e},{get:i,set:s}){let n,a,r=!0,o=ba(()=>{let o=t(),l=i();if(r)s(Eo(o)),r=!1;else{let t=JSON.stringify(o),i=JSON.stringify(l);t!==n?s(Eo(o)):t!==i&&e(Eo(l))}n=JSON.stringify(t()),a=JSON.stringify(i())});return()=>{va(o)}}function Eo(t){return"object"==typeof t?JSON.parse(JSON.stringify(t)):t}var So={},Mo=!1,To={};function Lo(t,e,i){let s=[];for(;s.length;)s.pop()();let n=Object.entries(e).map(([t,e])=>({name:t,value:e})),a=vr(n);return n=n.map(t=>a.find(e=>e.name===t.name)?{name:`x-bind:${t.name}`,value:`"${t.value}"`}:t),br(t,n,i).map(t=>{s.push(t.runCleanups),t()}),()=>{for(;s.length;)s.pop()()}}var Po={},Bo={get reactive(){return xa},get release(){return va},get effect(){return ba},get raw(){return ya},version:"3.15.0",flushAndStopDeferringMutations:function(){Xa=!1,Va(ja),ja=[]},dontAutoEvaluateFunctions:or,disableEffectScheduling:function(t){Sa=!1,t(),Sa=!0},startObservingMutations:Ha,stopObservingMutations:Na,setReactivityEngine:function(t){xa=t.reactive,va=t.release,ba=e=>t.effect(e,{scheduler:t=>{Sa?function(t){var e;e=t,ka.includes(e)||ka.push(e),Aa||wa||(wa=!0,queueMicrotask(Ea))}(t):t()}}),ya=t.raw},onAttributeRemoved:za,onAttributesAdded:Ia,closestDataStack:Ua,skipDuringClone:lo,onlyDuringClone:function(t){return(...e)=>oo&&t(...e)},addRootSelector:Yr,addInitSelector:Wr,interceptClone:ho,addScopeToNode:$a,deferMutations:function(){Xa=!0},mapAttributes:Sr,evaluateLater:cr,interceptInit:function(t){Vr.push(t)},setEvaluator:function(t){hr=t},mergeProxies:qa,extractProp:function(t,e,i,s=!0){if(t._x_bindings&&void 0!==t._x_bindings[e])return t._x_bindings[e];if(t._x_inlineBindings&&void 0!==t._x_inlineBindings[e]){let i=t._x_inlineBindings[e];return i.extract=s,or(()=>lr(t,i.expression))}return yo(t,e,i)},findClosest:jr,onElRemoved:Oa,closestRoot:Xr,destroyTree:Ur,interceptor:Ja,transition:ao,setStyles:eo,mutateDom:Wa,directive:xr,entangle:_o,throttle:Co,debounce:ko,evaluate:lr,initTree:$r,nextTick:Qr,prefixed:fr,prefix:function(t){gr=t},plugin:function(t){(Array.isArray(t)?t:[t]).forEach(t=>t(Oo))},magic:ir,store:function(t,e){if(Mo||(So=xa(So),Mo=!0),void 0===e)return So[t];So[t]=e,Ka(So[t]),"object"==typeof e&&null!==e&&e.hasOwnProperty("init")&&"function"==typeof e.init&&So[t].init()},start:function(){Dr&&zr("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Dr=!0,document.body||zr("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Or(document,"alpine:init"),Or(document,"alpine:initializing"),Ha(),Ba.push(t=>$r(t,Ir)),Oa(t=>Ur(t)),Ia((t,e)=>{br(t,e).forEach(t=>t())}),Array.from(document.querySelectorAll(Nr().join(","))).filter(t=>!Xr(t.parentElement,!0)).forEach(t=>{$r(t)}),Or(document,"alpine:initialized"),setTimeout(()=>{[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,e,i])=>{var s;s=e,Object.keys(mr).includes(s)||i.some(e=>{if(document.querySelector(e))return zr(`found "${e}", but missing ${t} plugin`),!0})})})},clone:function(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),oo=!0,uo=!0,po(()=>{!function(t){let e=!1;$r(t,(t,i)=>{Ir(t,(t,s)=>{if(e&&function(t){return Hr().some(e=>t.matches(e))}(t))return s();e=!0,i(t,s)})})}(e)}),oo=!1,uo=!1},cloneNode:function(t,e){co.forEach(i=>i(t,e)),oo=!0,po(()=>{$r(e,(t,e)=>{e(t,()=>{})})}),oo=!1},bound:function(t,e,i){return t._x_bindings&&void 0!==t._x_bindings[e]?t._x_bindings[e]:yo(t,e,i)},$data:Ga,watch:Ta,walk:Ir,data:function(t,e){Po[t]=e},bind:function(t,e){let i="function"!=typeof e?()=>e:e;return t instanceof Element?Lo(t,i()):(To[t]=i,()=>{})}},Oo=Bo;function Io(t,e){const i=Object.create(null),s=t.split(",");for(let t=0;t<s.length;t++)i[s[t]]=!0;return e?t=>!!i[t.toLowerCase()]:t=>!!i[t]}var zo,Do=Object.freeze({}),Fo=(Object.freeze([]),Object.prototype.hasOwnProperty),Ro=(t,e)=>Fo.call(t,e),Ho=Array.isArray,No=t=>"[object Map]"===jo(t),Yo=t=>"symbol"==typeof t,Wo=t=>null!==t&&"object"==typeof t,Xo=Object.prototype.toString,jo=t=>Xo.call(t),Vo=t=>jo(t).slice(8,-1),Go=t=>"string"==typeof t&&"NaN"!==t&&"-"!==t[0]&&""+parseInt(t,10)===t,$o=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},Uo=/-(\w)/g,qo=($o(t=>t.replace(Uo,(t,e)=>e?e.toUpperCase():"")),/\B([A-Z])/g),Zo=($o(t=>t.replace(qo,"-$1").toLowerCase()),$o(t=>t.charAt(0).toUpperCase()+t.slice(1))),Qo=($o(t=>t?`on${Zo(t)}`:""),(t,e)=>t!==e&&(t==t||e==e)),Ko=new WeakMap,Jo=[],tl=Symbol("iterate"),el=Symbol("Map key iterate"),il=0;function sl(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var nl=!0,al=[];function rl(){const t=al.pop();nl=void 0===t||t}function ol(t,e,i){if(!nl||void 0===zo)return;let s=Ko.get(t);s||Ko.set(t,s=new Map);let n=s.get(i);n||s.set(i,n=new Set),n.has(zo)||(n.add(zo),zo.deps.push(n),zo.options.onTrack&&zo.options.onTrack({effect:zo,target:t,type:e,key:i}))}function ll(t,e,i,s,n,a){const r=Ko.get(t);if(!r)return;const o=new Set,l=t=>{t&&t.forEach(t=>{(t!==zo||t.allowRecurse)&&o.add(t)})};if("clear"===e)r.forEach(l);else if("length"===i&&Ho(t))r.forEach((t,e)=>{("length"===e||e>=s)&&l(t)});else switch(void 0!==i&&l(r.get(i)),e){case"add":Ho(t)?Go(i)&&l(r.get("length")):(l(r.get(tl)),No(t)&&l(r.get(el)));break;case"delete":Ho(t)||(l(r.get(tl)),No(t)&&l(r.get(el)));break;case"set":No(t)&&l(r.get(tl))}o.forEach(r=>{r.options.onTrigger&&r.options.onTrigger({effect:r,target:t,key:i,type:e,newValue:s,oldValue:n,oldTarget:a}),r.options.scheduler?r.options.scheduler(r):r()})}var cl=Io("__proto__,__v_isRef,__isVue"),hl=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(Yo)),dl=fl(),ul=fl(!0),pl=gl();function gl(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...t){const i=ql(this);for(let t=0,e=this.length;t<e;t++)ol(i,"get",t+"");const s=i[e](...t);return-1===s||!1===s?i[e](...t.map(ql)):s}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...t){al.push(nl),nl=!1;const i=ql(this)[e].apply(this,t);return rl(),i}}),t}function fl(t=!1,e=!1){return function(i,s,n){if("__v_isReactive"===s)return!t;if("__v_isReadonly"===s)return t;if("__v_raw"===s&&n===(t?e?Vl:jl:e?Xl:Wl).get(i))return i;const a=Ho(i);if(!t&&a&&Ro(pl,s))return Reflect.get(pl,s,n);const r=Reflect.get(i,s,n);return(Yo(s)?hl.has(s):cl(s))?r:(t||ol(i,"get",s),e?r:Zl(r)?a&&Go(s)?r:r.value:Wo(r)?t?$l(r):Gl(r):r)}}function ml(t=!1){return function(e,i,s,n){let a=e[i];if(!t&&(s=ql(s),a=ql(a),!Ho(e)&&Zl(a)&&!Zl(s)))return a.value=s,!0;const r=Ho(e)&&Go(i)?Number(i)<e.length:Ro(e,i),o=Reflect.set(e,i,s,n);return e===ql(n)&&(r?Qo(s,a)&&ll(e,"set",i,s,a):ll(e,"add",i,s)),o}}var xl={get:dl,set:ml(),deleteProperty:function(t,e){const i=Ro(t,e),s=t[e],n=Reflect.deleteProperty(t,e);return n&&i&&ll(t,"delete",e,void 0,s),n},has:function(t,e){const i=Reflect.has(t,e);return Yo(e)&&hl.has(e)||ol(t,"has",e),i},ownKeys:function(t){return ol(t,"iterate",Ho(t)?"length":tl),Reflect.ownKeys(t)}},bl={get:ul,set:(t,e)=>(console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0),deleteProperty:(t,e)=>(console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0)},vl=t=>Wo(t)?Gl(t):t,yl=t=>Wo(t)?$l(t):t,wl=t=>t,Al=t=>Reflect.getPrototypeOf(t);function kl(t,e,i=!1,s=!1){const n=ql(t=t.__v_raw),a=ql(e);e!==a&&!i&&ol(n,"get",e),!i&&ol(n,"get",a);const{has:r}=Al(n),o=s?wl:i?yl:vl;return r.call(n,e)?o(t.get(e)):r.call(n,a)?o(t.get(a)):void(t!==n&&t.get(e))}function Cl(t,e=!1){const i=this.__v_raw,s=ql(i),n=ql(t);return t!==n&&!e&&ol(s,"has",t),!e&&ol(s,"has",n),t===n?i.has(t):i.has(t)||i.has(n)}function _l(t,e=!1){return t=t.__v_raw,!e&&ol(ql(t),"iterate",tl),Reflect.get(t,"size",t)}function El(t){t=ql(t);const e=ql(this);return Al(e).has.call(e,t)||(e.add(t),ll(e,"add",t,t)),this}function Sl(t,e){e=ql(e);const i=ql(this),{has:s,get:n}=Al(i);let a=s.call(i,t);a?Yl(i,s,t):(t=ql(t),a=s.call(i,t));const r=n.call(i,t);return i.set(t,e),a?Qo(e,r)&&ll(i,"set",t,e,r):ll(i,"add",t,e),this}function Ml(t){const e=ql(this),{has:i,get:s}=Al(e);let n=i.call(e,t);n?Yl(e,i,t):(t=ql(t),n=i.call(e,t));const a=s?s.call(e,t):void 0,r=e.delete(t);return n&&ll(e,"delete",t,void 0,a),r}function Tl(){const t=ql(this),e=0!==t.size,i=No(t)?new Map(t):new Set(t),s=t.clear();return e&&ll(t,"clear",void 0,void 0,i),s}function Ll(t,e){return function(i,s){const n=this,a=n.__v_raw,r=ql(a),o=e?wl:t?yl:vl;return!t&&ol(r,"iterate",tl),a.forEach((t,e)=>i.call(s,o(t),o(e),n))}}function Pl(t,e,i){return function(...s){const n=this.__v_raw,a=ql(n),r=No(a),o="entries"===t||t===Symbol.iterator&&r,l="keys"===t&&r,c=n[t](...s),h=i?wl:e?yl:vl;return!e&&ol(a,"iterate",l?el:tl),{next(){const{value:t,done:e}=c.next();return e?{value:t,done:e}:{value:o?[h(t[0]),h(t[1])]:h(t),done:e}},[Symbol.iterator](){return this}}}}function Bl(t){return function(...e){{const i=e[0]?`on key "${e[0]}" `:"";console.warn(`${Zo(t)} operation ${i}failed: target is readonly.`,ql(this))}return"delete"!==t&&this}}function Ol(){const t={get(t){return kl(this,t)},get size(){return _l(this)},has:Cl,add:El,set:Sl,delete:Ml,clear:Tl,forEach:Ll(!1,!1)},e={get(t){return kl(this,t,!1,!0)},get size(){return _l(this)},has:Cl,add:El,set:Sl,delete:Ml,clear:Tl,forEach:Ll(!1,!0)},i={get(t){return kl(this,t,!0)},get size(){return _l(this,!0)},has(t){return Cl.call(this,t,!0)},add:Bl("add"),set:Bl("set"),delete:Bl("delete"),clear:Bl("clear"),forEach:Ll(!0,!1)},s={get(t){return kl(this,t,!0,!0)},get size(){return _l(this,!0)},has(t){return Cl.call(this,t,!0)},add:Bl("add"),set:Bl("set"),delete:Bl("delete"),clear:Bl("clear"),forEach:Ll(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(n=>{t[n]=Pl(n,!1,!1),i[n]=Pl(n,!0,!1),e[n]=Pl(n,!1,!0),s[n]=Pl(n,!0,!0)}),[t,i,e,s]}var[Il,zl,Dl,Fl]=Ol();function Rl(t,e){const i=e?t?Fl:Dl:t?zl:Il;return(e,s,n)=>"__v_isReactive"===s?!t:"__v_isReadonly"===s?t:"__v_raw"===s?e:Reflect.get(Ro(i,s)&&s in e?i:e,s,n)}var Hl={get:Rl(!1,!1)},Nl={get:Rl(!0,!1)};function Yl(t,e,i){const s=ql(i);if(s!==i&&e.call(t,s)){const e=Vo(t);console.warn(`Reactive ${e} contains both the raw and reactive versions of the same object${"Map"===e?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Wl=new WeakMap,Xl=new WeakMap,jl=new WeakMap,Vl=new WeakMap;function Gl(t){return t&&t.__v_isReadonly?t:Ul(t,!1,xl,Hl,Wl)}function $l(t){return Ul(t,!0,bl,Nl,jl)}function Ul(t,e,i,s,n){if(!Wo(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&(!e||!t.__v_isReactive))return t;const a=n.get(t);if(a)return a;const r=(o=t).__v_skip||!Object.isExtensible(o)?0:function(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Vo(o));var o;if(0===r)return t;const l=new Proxy(t,2===r?s:i);return n.set(t,l),l}function ql(t){return t&&ql(t.__v_raw)||t}function Zl(t){return Boolean(t&&!0===t.__v_isRef)}ir("nextTick",()=>Qr),ir("dispatch",t=>Or.bind(Or,t)),ir("watch",(t,{evaluateLater:e,cleanup:i})=>(t,s)=>{let n=e(t),a=Ta(()=>{let t;return n(e=>t=e),t},s);i(a)}),ir("store",function(){return So}),ir("data",t=>Ga(t)),ir("root",t=>Xr(t)),ir("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=qa(function(t){let e=[];return jr(t,t=>{t._x_refs&&e.push(t._x_refs)}),e}(t))),t._x_refs_proxy));var Ql={};function Kl(t){return Ql[t]||(Ql[t]=0),++Ql[t]}function Jl(t,e,i){ir(e,s=>zr(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,s))}ir("id",(t,{cleanup:e})=>(i,s=null)=>function(t,e,i,s){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let n=s();return t._x_id[e]=n,i(()=>{delete t._x_id[e]}),n}(t,`${i}${s?`-${s}`:""}`,e,()=>{let e=function(t,e){return jr(t,t=>{if(t._x_ids&&t._x_ids[e])return!0})}(t,i),n=e?e._x_ids[i]:Kl(i);return s?`${i}-${n}-${s}`:`${i}-${n}`})),ho((t,e)=>{t._x_id&&(e._x_id=t._x_id)}),ir("el",t=>t),Jl("Focus","focus","focus"),Jl("Persist","persist","persist"),xr("modelable",(t,{expression:e},{effect:i,evaluateLater:s,cleanup:n})=>{let a=s(e),r=()=>{let t;return a(e=>t=e),t},o=s(`${e} = __placeholder`),l=t=>o(()=>{},{scope:{__placeholder:t}}),c=r();l(c),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let e=t._x_model.get,i=t._x_model.set,s=_o({get:()=>e(),set(t){i(t)}},{get:()=>r(),set(t){l(t)}});n(s)})}),xr("teleport",(t,{modifiers:e,expression:i},{cleanup:s})=>{"template"!==t.tagName.toLowerCase()&&zr("x-teleport can only be used on a <template> tag",t);let n=ec(i),a=t.content.cloneNode(!0).firstElementChild;t._x_teleport=a,a._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),a.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(e=>{a.addEventListener(e,e=>{e.stopPropagation(),t.dispatchEvent(new e.constructor(e.type,e))})}),$a(a,{},t);let r=(t,e,i)=>{i.includes("prepend")?e.parentNode.insertBefore(t,e):i.includes("append")?e.parentNode.insertBefore(t,e.nextSibling):e.appendChild(t)};Wa(()=>{r(a,n,e),lo(()=>{$r(a)})()}),t._x_teleportPutBack=()=>{let s=ec(i);Wa(()=>{r(t._x_teleport,s,e)})},s(()=>Wa(()=>{a.remove(),Ur(a)}))});var tc=document.createElement("div");function ec(t){let e=lo(()=>document.querySelector(t),()=>tc)();return e||zr(`Cannot find x-teleport element for selector: "${t}"`),e}var ic=()=>{};function sc(t,e,i,s){let n=t,a=t=>s(t),r={},o=(t,e)=>i=>e(t,i);if(i.includes("dot")&&(e=e.replace(/-/g,".")),i.includes("camel")&&(e=e.toLowerCase().replace(/-(\w)/g,(t,e)=>e.toUpperCase())),i.includes("passive")&&(r.passive=!0),i.includes("capture")&&(r.capture=!0),i.includes("window")&&(n=window),i.includes("document")&&(n=document),i.includes("debounce")){let t=i[i.indexOf("debounce")+1]||"invalid-wait",e=nc(t.split("ms")[0])?Number(t.split("ms")[0]):250;a=ko(a,e)}if(i.includes("throttle")){let t=i[i.indexOf("throttle")+1]||"invalid-wait",e=nc(t.split("ms")[0])?Number(t.split("ms")[0]):250;a=Co(a,e)}return i.includes("prevent")&&(a=o(a,(t,e)=>{e.preventDefault(),t(e)})),i.includes("stop")&&(a=o(a,(t,e)=>{e.stopPropagation(),t(e)})),i.includes("once")&&(a=o(a,(t,i)=>{t(i),n.removeEventListener(e,a,r)})),(i.includes("away")||i.includes("outside"))&&(n=document,a=o(a,(e,i)=>{t.contains(i.target)||!1!==i.target.isConnected&&(t.offsetWidth<1&&t.offsetHeight<1||!1!==t._x_isShown&&e(i))})),i.includes("self")&&(a=o(a,(e,i)=>{i.target===t&&e(i)})),(function(t){return["keydown","keyup"].includes(t)}(e)||ac(e))&&(a=o(a,(t,e)=>{(function(t,e){let i=e.filter(t=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(t));if(i.includes("debounce")){let t=i.indexOf("debounce");i.splice(t,nc((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.includes("throttle")){let t=i.indexOf("throttle");i.splice(t,nc((i[t+1]||"invalid-wait").split("ms")[0])?2:1)}if(0===i.length)return!1;if(1===i.length&&rc(t.key).includes(i[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(t=>i.includes(t));if(i=i.filter(t=>!s.includes(t)),s.length>0&&s.filter(e=>("cmd"!==e&&"super"!==e||(e="meta"),t[`${e}Key`])).length===s.length){if(ac(t.type))return!1;if(rc(t.key).includes(i[0]))return!1}return!0})(e,i)||t(e)})),n.addEventListener(e,a,r),()=>{n.removeEventListener(e,a,r)}}function nc(t){return!Array.isArray(t)&&!isNaN(t)}function ac(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function rc(t){if(!t)return[];var e;t=[" ","_"].includes(e=t)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase();let i={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return i[t]=t,Object.keys(i).map(e=>{if(i[e]===t)return e}).filter(t=>t)}function oc(t,e,i,s){return Wa(()=>{if(i instanceof CustomEvent&&void 0!==i.detail)return null!==i.detail&&void 0!==i.detail?i.detail:i.target.value;if(wo(t)){if(Array.isArray(s)){let t=null;return t=e.includes("number")?lc(i.target.value):e.includes("boolean")?xo(i.target.value):i.target.value,i.target.checked?s.includes(t)?s:s.concat([t]):s.filter(e=>!(e==t))}return i.target.checked}if("select"===t.tagName.toLowerCase()&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map(t=>lc(t.value||t.text)):e.includes("boolean")?Array.from(i.target.selectedOptions).map(t=>xo(t.value||t.text)):Array.from(i.target.selectedOptions).map(t=>t.value||t.text);{let n;return n=Ao(t)?i.target.checked?i.target.value:s:i.target.value,e.includes("number")?lc(n):e.includes("boolean")?xo(n):e.includes("trim")?n.trim():n}})}function lc(t){let e=t?parseFloat(t):null;return i=e,Array.isArray(i)||isNaN(i)?t:e;var i}function cc(t){return null!==t&&"object"==typeof t&&"function"==typeof t.get&&"function"==typeof t.set}ic.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})},xr("ignore",ic),xr("effect",lo((t,{expression:e},{effect:i})=>{i(cr(t,e))})),xr("model",(t,{modifiers:e,expression:i},{effect:s,cleanup:n})=>{let a=t;e.includes("parent")&&(a=t.parentNode);let r,o=cr(a,i);r="string"==typeof i?cr(a,`${i} = __placeholder`):"function"==typeof i&&"string"==typeof i()?cr(a,`${i()} = __placeholder`):()=>{};let l=()=>{let t;return o(e=>t=e),cc(t)?t.get():t},c=t=>{let e;o(t=>e=t),cc(e)?e.set(t):r(()=>{},{scope:{__placeholder:t}})};"string"==typeof i&&"radio"===t.type&&Wa(()=>{t.hasAttribute("name")||t.setAttribute("name",i)});let h="select"===t.tagName.toLowerCase()||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input",d=oo?()=>{}:sc(t,h,e,i=>{c(oc(t,e,i,l()))});if(e.includes("fill")&&([void 0,null,""].includes(l())||wo(t)&&Array.isArray(l())||"select"===t.tagName.toLowerCase()&&t.multiple)&&c(oc(t,e,{target:t},l())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=d,n(()=>t._x_removeModelListeners.default()),t.form){let i=sc(t.form,"reset",[],i=>{Qr(()=>t._x_model&&t._x_model.set(oc(t,e,{target:t},l())))});n(()=>i())}t._x_model={get:()=>l(),set(t){c(t)}},t._x_forceModelUpdate=e=>{void 0===e&&"string"==typeof i&&i.match(/\./)&&(e=""),window.fromModel=!0,Wa(()=>go(t,"value",e)),delete window.fromModel},s(()=>{let i=l();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(i)})}),xr("cloak",t=>queueMicrotask(()=>Wa(()=>t.removeAttribute(fr("cloak"))))),Wr(()=>`[${fr("init")}]`),xr("init",lo((t,{expression:e},{evaluate:i})=>"string"==typeof e?!!e.trim()&&i(e,{},!1):i(e,{},!1))),xr("text",(t,{expression:e},{effect:i,evaluateLater:s})=>{let n=s(e);i(()=>{n(e=>{Wa(()=>{t.textContent=e})})})}),xr("html",(t,{expression:e},{effect:i,evaluateLater:s})=>{let n=s(e);i(()=>{n(e=>{Wa(()=>{t.innerHTML=e,t._x_ignoreSelf=!0,$r(t),delete t._x_ignoreSelf})})})}),Sr(Cr(":",fr("bind:")));var hc=(t,{value:e,modifiers:i,expression:s,original:n},{effect:a,cleanup:r})=>{if(!e){let e={};return o=e,Object.entries(To).forEach(([t,e])=>{Object.defineProperty(o,t,{get:()=>(...t)=>e(...t)})}),void cr(t,s)(e=>{Lo(t,e,n)},{scope:e})}var o;if("key"===e)return function(t,e){t._x_keyExpression=e}(t,s);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let l=cr(t,s);a(()=>l(n=>{void 0===n&&"string"==typeof s&&s.match(/\./)&&(n=""),Wa(()=>go(t,e,n,i))})),r(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};function dc(t,e,i,s){let n={};if(/^\[.*\]$/.test(t.item)&&Array.isArray(e)){let i=t.item.replace("[","").replace("]","").split(",").map(t=>t.trim());i.forEach((t,i)=>{n[t]=e[i]})}else if(/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&"object"==typeof e){let i=t.item.replace("{","").replace("}","").split(",").map(t=>t.trim());i.forEach(t=>{n[t]=e[t]})}else n[t.item]=e;return t.index&&(n[t.index]=i),t.collection&&(n[t.collection]=s),n}function uc(){}function pc(t,e,i){xr(e,s=>zr(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,s))}hc.inline=(t,{value:e,modifiers:i,expression:s})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:s,extract:!1})},xr("bind",hc),Yr(()=>`[${fr("data")}]`),xr("data",(t,{expression:e},{cleanup:i})=>{if(function(t){return!!oo&&(!!uo||t.hasAttribute("data-has-alpine-state"))}(t))return;e=""===e?"{}":e;let s={};sr(s,t);let n={};var a,r;a=n,r=s,Object.entries(Po).forEach(([t,e])=>{Object.defineProperty(a,t,{get:()=>(...t)=>e.bind(r)(...t),enumerable:!1})});let o=lr(t,e,{scope:n});void 0!==o&&!0!==o||(o={}),sr(o,t);let l=xa(o);Ka(l);let c=$a(t,l);l.init&&lr(t,l.init),i(()=>{l.destroy&&lr(t,l.destroy),c()})}),ho((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))}),xr("show",(t,{modifiers:e,expression:i},{effect:s})=>{let n=cr(t,i);t._x_doHide||(t._x_doHide=()=>{Wa(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{Wa(()=>{1===t.style.length&&"none"===t.style.display?t.removeAttribute("style"):t.style.removeProperty("display")})});let a,r=()=>{t._x_doHide(),t._x_isShown=!1},o=()=>{t._x_doShow(),t._x_isShown=!0},l=()=>setTimeout(o),c=io(t=>t?o():r(),e=>{"function"==typeof t._x_toggleAndCascadeWithTransitions?t._x_toggleAndCascadeWithTransitions(t,e,o,r):e?l():r()}),h=!0;s(()=>n(t=>{(h||t!==a)&&(e.includes("immediate")&&(t?l():r()),c(t),a=t,h=!1)}))}),xr("for",(t,{expression:e},{effect:i,cleanup:s})=>{let n=function(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=t.match(/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/);if(!i)return;let s={};s.items=i[2].trim();let n=i[1].replace(/^\s*\(|\)\s*$/g,"").trim(),a=n.match(e);return a?(s.item=n.replace(e,"").trim(),s.index=a[1].trim(),a[2]&&(s.collection=a[2].trim())):s.item=n,s}(e),a=cr(t,n.items),r=cr(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i(()=>function(t,e,i,s){let n=t;i(i=>{var a;a=i,!Array.isArray(a)&&!isNaN(a)&&i>=0&&(i=Array.from(Array(i).keys(),t=>t+1)),void 0===i&&(i=[]);let r=t._x_lookup,o=t._x_prevKeys,l=[],c=[];if((t=>"object"==typeof t&&!Array.isArray(t))(i))i=Object.entries(i).map(([n,a])=>{let r=dc(e,a,n,i);s(e=>{c.includes(e)&&zr("Duplicate key on x-for",t),c.push(e)},{scope:{index:n,...r}}),l.push(r)});else for(let n=0;n<i.length;n++){let a=dc(e,i[n],n,i);s(e=>{c.includes(e)&&zr("Duplicate key on x-for",t),c.push(e)},{scope:{index:n,...a}}),l.push(a)}let h=[],d=[],u=[],p=[];for(let t=0;t<o.length;t++){let e=o[t];-1===c.indexOf(e)&&u.push(e)}o=o.filter(t=>!u.includes(t));let g="template";for(let t=0;t<c.length;t++){let e=c[t],i=o.indexOf(e);if(-1===i)o.splice(t,0,e),h.push([g,t]);else if(i!==t){let e=o.splice(t,1)[0],s=o.splice(i-1,1)[0];o.splice(t,0,s),o.splice(i,0,e),d.push([e,s])}else p.push(e);g=e}for(let t=0;t<u.length;t++){let e=u[t];e in r&&(Wa(()=>{Ur(r[e]),r[e].remove()}),delete r[e])}for(let t=0;t<d.length;t++){let[e,i]=d[t],s=r[e],a=r[i],o=document.createElement("div");Wa(()=>{a||zr('x-for ":key" is undefined or invalid',n,i,r),a.after(o),s.after(a),a._x_currentIfEl&&a.after(a._x_currentIfEl),o.before(s),s._x_currentIfEl&&s.after(s._x_currentIfEl),o.remove()}),a._x_refreshXForScope(l[c.indexOf(i)])}for(let t=0;t<h.length;t++){let[e,i]=h[t],s="template"===e?n:r[e];s._x_currentIfEl&&(s=s._x_currentIfEl);let a=l[i],o=c[i],d=document.importNode(n.content,!0).firstElementChild,u=xa(a);$a(d,u,n),d._x_refreshXForScope=t=>{Object.entries(t).forEach(([t,e])=>{u[t]=e})},Wa(()=>{s.after(d),lo(()=>$r(d))()}),"object"==typeof o&&zr("x-for key cannot be an object, it must be a string or an integer",n),r[o]=d}for(let t=0;t<p.length;t++)r[p[t]]._x_refreshXForScope(l[c.indexOf(p[t])]);n._x_prevKeys=c})}(t,n,a,r)),s(()=>{Object.values(t._x_lookup).forEach(t=>Wa(()=>{Ur(t),t.remove()})),delete t._x_prevKeys,delete t._x_lookup})}),uc.inline=(t,{expression:e},{cleanup:i})=>{let s=Xr(t);s._x_refs||(s._x_refs={}),s._x_refs[e]=t,i(()=>delete s._x_refs[e])},xr("ref",uc),xr("if",(t,{expression:e},{effect:i,cleanup:s})=>{"template"!==t.tagName.toLowerCase()&&zr("x-if can only be used on a <template> tag",t);let n=cr(t,e);i(()=>n(e=>{e?(()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let e=t.content.cloneNode(!0).firstElementChild;$a(e,{},t),Wa(()=>{t.after(e),lo(()=>$r(e))()}),t._x_currentIfEl=e,t._x_undoIf=()=>{Wa(()=>{Ur(e),e.remove()}),delete t._x_currentIfEl}})():t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)})),s(()=>t._x_undoIf&&t._x_undoIf())}),xr("id",(t,{expression:e},{evaluate:i})=>{i(e).forEach(e=>function(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=Kl(e))}(t,e))}),ho((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)}),Sr(Cr("@",fr("on:"))),xr("on",lo((t,{value:e,modifiers:i,expression:s},{cleanup:n})=>{let a=s?cr(t,s):()=>{};"template"===t.tagName.toLowerCase()&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let r=sc(t,e,i,t=>{a(()=>{},{scope:{$event:t},params:[t]})});n(()=>r())})),pc("Collapse","collapse","collapse"),pc("Intersect","intersect","intersect"),pc("Focus","trap","focus"),pc("Mask","mask","mask"),Oo.setEvaluator(dr),Oo.setReactivityEngine({reactive:Gl,effect:function(t,e=Do){(function(t){return t&&!0===t._isEffect})(t)&&(t=t.raw);const i=function(t,e){const i=function(){if(!i.active)return t();if(!Jo.includes(i)){sl(i);try{return al.push(nl),nl=!0,Jo.push(i),zo=i,t()}finally{Jo.pop(),rl(),zo=Jo[Jo.length-1]}}};return i.id=il++,i.allowRecurse=!!e.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=t,i.deps=[],i.options=e,i}(t,e);return e.lazy||i(),i},release:function(t){t.active&&(sl(t),t.options.onStop&&t.options.onStop(),t.active=!1)},raw:ql});var gc=Oo,fc=i(8465),mc=i.n(fc);function xc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=Array(e);i<e;i++)s[i]=t[i];return s}function bc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yc(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,Oc(s.key),s)}}function wc(t,e,i){return e&&yc(t.prototype,e),i&&yc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Ac(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=zc(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,n=function(){};return{s:n,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,o=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return r=t.done,t},e:function(t){o=!0,a=t},f:function(){try{r||null==i.return||i.return()}finally{if(o)throw a}}}}function kc(t){var e=Sc();return function(){var i,s=_c(t);if(e){var n=_c(this).constructor;i=Reflect.construct(s,arguments,n)}else i=s.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return bc(t)}(this,i)}}function Cc(t,e,i){return(e=Oc(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function _c(t){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},_c(t)}function Ec(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lc(t,e)}function Sc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Sc=function(){return!!t})()}function Mc(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,s)}return i}function Tc(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Mc(Object(i),!0).forEach(function(e){Cc(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Mc(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}function Lc(t,e){return Lc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lc(t,e)}function Pc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var i=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=i){var s,n,a,r,o=[],l=!0,c=!1;try{if(a=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=a.call(i)).done)&&(o.push(s.value),o.length!==e);l=!0);}catch(t){c=!0,n=t}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw n}}return o}}(t,e)||zc(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bc(t){return function(t){if(Array.isArray(t))return xc(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||zc(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Oc(t){var e=function(t){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:e+""}function Ic(t){return Ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(t)}function zc(t,e){if(t){if("string"==typeof t)return xc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?xc(t,e):void 0}}var Dc=function(){function t(){vc(this,t)}return wc(t,[{key:"shadeRGBColor",value:function(t,e){var i=e.split(","),s=t<0?0:255,n=t<0?-1*t:t,a=parseInt(i[0].slice(4),10),r=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((s-a)*n)+a)+","+(Math.round((s-r)*n)+r)+","+(Math.round((s-o)*n)+o)+")"}},{key:"shadeHexColor",value:function(t,e){var i=parseInt(e.slice(1),16),s=t<0?0:255,n=t<0?-1*t:t,a=i>>16,r=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((s-a)*n)+a)+256*(Math.round((s-r)*n)+r)+(Math.round((s-o)*n)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(e,i){return t.isColorHex(i)?this.shadeHexColor(e,i):this.shadeRGBColor(e,i)}}],[{key:"bind",value:function(t,e){return function(){return t.apply(e,arguments)}}},{key:"isObject",value:function(t){return t&&"object"===Ic(t)&&!Array.isArray(t)&&null!=t}},{key:"is",value:function(t,e){return Object.prototype.toString.call(e)==="[object "+t+"]"}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"listToArray",value:function(t){var e,i=[];for(e=0;e<t.length;e++)i[e]=t[e];return i}},{key:"extend",value:function(t,e){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i<arguments.length;i++){var s=arguments[i];if(null!=s)for(var n in s)s.hasOwnProperty(n)&&(e[n]=s[n])}return e});var s=Object.assign({},t);return this.isObject(t)&&this.isObject(e)&&Object.keys(e).forEach(function(n){i.isObject(e[n])&&n in t?s[n]=i.extend(t[n],e[n]):Object.assign(s,Cc({},n,e[n]))}),s}},{key:"extendArray",value:function(e,i){var s=[];return e.map(function(e){s.push(t.extend(i,e))}),s}},{key:"monthMod",value:function(t){return t%12}},{key:"clone",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===t||"object"!==Ic(t))return t;if(i.has(t))return i.get(t);if(Array.isArray(t)){e=[],i.set(t,e);for(var s=0;s<t.length;s++)e[s]=this.clone(t[s],i)}else if(t instanceof Date)e=new Date(t.getTime());else for(var n in e={},i.set(t,e),t)t.hasOwnProperty(n)&&(e[n]=this.clone(t[n],i));return e}},{key:"log10",value:function(t){return Math.log(t)/Math.LN10}},{key:"roundToBase10",value:function(t){return Math.pow(10,Math.floor(Math.log10(t)))}},{key:"roundToBase",value:function(t,e){return Math.pow(e,Math.floor(Math.log(t)/Math.log(e)))}},{key:"parseNumber",value:function(t){return null===t?t:parseFloat(t)}},{key:"stripNumber",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(t)?t:parseFloat(t.toPrecision(e))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(t){return t.toString().includes("e")?Math.round(t):t}},{key:"elementExists",value:function(t){return!(!t||!t.isConnected)}},{key:"getDimensions",value:function(t){var e=getComputedStyle(t,null),i=t.clientHeight,s=t.clientWidth;return i-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),[s-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),i]}},{key:"getBoundingClientRect",value:function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:t.clientWidth,height:t.clientHeight,x:e.left,y:e.top}}},{key:"getLargestStringFromArr",value:function(t){return t.reduce(function(t,e){return Array.isArray(e)&&(e=e.reduce(function(t,e){return t.length>e.length?t:e})),t.length>e.length?t:e},0)}},{key:"hexToRgba",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==t.substring(0,1)&&(t="#999999");var i=t.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var s=0;s<i.length;s++)i[s]=parseInt(1===i[s].length?i[s]+i[s]:i[s],16);return void 0!==e&&i.push(e),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(t){return parseFloat(t.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(t)}},{key:"getPolygonPos",value:function(t,e){for(var i=[],s=2*Math.PI/e,n=0;n<e;n++){var a={};a.x=t*Math.sin(n*s),a.y=-t*Math.cos(n*s),i.push(a)}return i}},{key:"polarToCartesian",value:function(t,e,i,s){var n=(s-90)*Math.PI/180;return{x:t+i*Math.cos(n),y:e+i*Math.sin(n)}}},{key:"escapeString",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return t.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,e)}},{key:"negToZero",value:function(t){return t<0?0:t}},{key:"moveIndexInArray",value:function(t,e,i){if(i>=t.length)for(var s=i-t.length+1;s--;)t.push(void 0);return t.splice(i,0,t.splice(e,1)[0]),t}},{key:"extractNumber",value:function(t){return parseFloat(t.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(t,e){for(;(t=t.parentElement)&&!t.classList.contains(e););return t}},{key:"setELstyles",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t.style.key=e[i])}},{key:"preciseAddition",value:function(t,e){var i=(String(t).split(".")[1]||"").length,s=(String(e).split(".")[1]||"").length,n=Math.pow(10,Math.max(i,s));return(Math.round(t*n)+Math.round(e*n))/n}},{key:"isNumber",value:function(t){return!isNaN(t)&&parseFloat(Number(t))===t&&!isNaN(parseInt(t,10))}},{key:"isFloat",value:function(t){return Number(t)===t&&t%1!=0}},{key:"isMsEdge",value:function(){var t=window.navigator.userAgent,e=t.indexOf("Edge/");return e>0&&parseInt(t.substring(e+5,t.indexOf(".",e)),10)}},{key:"getGCD",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,s=Math.pow(10,i-Math.floor(Math.log10(Math.max(t,e))));for(t=Math.round(Math.abs(t)*s),e=Math.round(Math.abs(e)*s);e;){var n=e;e=t%e,t=n}return t/s}},{key:"getPrimeFactors",value:function(t){for(var e=[],i=2;t>=2;)t%i==0?(e.push(i),t/=i):i++;return e}},{key:"mod",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,s=Math.pow(10,i-Math.floor(Math.log10(Math.max(t,e))));return(t=Math.round(Math.abs(t)*s))%(e=Math.round(Math.abs(e)*s))/s}}]),t}(),Fc=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"animateLine",value:function(t,e,i,s){t.attr(e).animate(s).attr(i)}},{key:"animateMarker",value:function(t,e,i,s){t.attr({opacity:0}).animate(e).attr({opacity:1}).after(function(){s()})}},{key:"animateRect",value:function(t,e,i,s,n){t.attr(e).animate(s).attr(i).after(function(){return n()})}},{key:"animatePathsGradually",value:function(t){var e=t.el,i=t.realIndex,s=t.j,n=t.fill,a=t.pathFrom,r=t.pathTo,o=t.speed,l=t.delay,c=this.w,h=0;c.config.chart.animations.animateGradually.enabled&&(h=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(h=0),this.morphSVG(e,i,s,"line"!==c.config.chart.type||c.globals.comboCharts?n:"stroke",a,r,o,l*h)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(t){var e=t.el;e.classList.remove("apexcharts-element-hidden"),e.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(t){var e=this.w;e.globals.animationEnded||(e.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof e.config.chart.events.animationEnd&&e.config.chart.events.animationEnd(this.ctx,{el:t,w:e}))}},{key:"morphSVG",value:function(t,e,i,s,n,a,r,o){var l=this,c=this.w;n||(n=t.attr("pathFrom")),a||(a=t.attr("pathTo"));var h=function(t){return"radar"===c.config.chart.type&&(r=1),"M 0 ".concat(c.globals.gridHeight)};(!n||n.indexOf("undefined")>-1||n.indexOf("NaN")>-1)&&(n=h()),(!a.trim()||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=h()),c.globals.shouldAnimate||(r=1),t.plot(n).animate(1,o).plot(n).animate(r,o).plot(a).after(function(){Dc.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(t):"none"!==s&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&e===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(t),l.showDelayedElements()})}}]),t}();const Rc={},Hc=[];function Nc(t,e){if(Array.isArray(t))for(const i of t)Nc(i,e);else if("object"!=typeof t)Wc(Object.getOwnPropertyNames(e)),Rc[t]=Object.assign(Rc[t]||{},e);else for(const e in t)Nc(e,t[e])}function Yc(t){return Rc[t]||{}}function Wc(t){Hc.push(...t)}function Xc(t,e){let i;const s=t.length,n=[];for(i=0;i<s;i++)n.push(e(t[i]));return n}function jc(t){return t%360*Math.PI/180}function Vc(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Gc(t,e,i,s){return null!=e&&null!=i||(s=s||t.bbox(),null==e?e=s.width/s.height*i:null==i&&(i=s.height/s.width*e)),{width:e,height:i}}function $c(t,e){const i=t.origin;let s=null!=t.ox?t.ox:null!=t.originX?t.originX:"center",n=null!=t.oy?t.oy:null!=t.originY?t.originY:"center";null!=i&&([s,n]=Array.isArray(i)?i:"object"==typeof i?[i.x,i.y]:[i,i]);const a="string"==typeof s,r="string"==typeof n;if(a||r){const{height:t,width:i,x:o,y:l}=e.bbox();a&&(s=s.includes("left")?o:s.includes("right")?o+i:o+i/2),r&&(n=n.includes("top")?l:n.includes("bottom")?l+t:l+t/2)}return[s,n]}const Uc=new Set(["desc","metadata","title"]),qc=t=>Uc.has(t.nodeName),Zc=(t,e,i={})=>{const s={...e};for(const t in s)s[t].valueOf()===i[t]&&delete s[t];Object.keys(s).length?t.node.setAttribute("data-svgjs",JSON.stringify(s)):(t.node.removeAttribute("data-svgjs"),t.node.removeAttribute("svgjs:data"))},Qc="http://www.w3.org/2000/svg",Kc="http://www.w3.org/2000/xmlns/",Jc="http://www.w3.org/1999/xlink",th={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};function eh(){return th.window}let ih=class{};const sh={},nh="___SYMBOL___ROOT___";function ah(t,e=Qc){return th.document.createElementNS(e,t)}function rh(t,e=!1){if(t instanceof ih)return t;if("object"==typeof t)return ch(t);if(null==t)return new sh[nh];if("string"==typeof t&&"<"!==t.charAt(0))return ch(th.document.querySelector(t));const i=e?th.document.createElement("div"):ah("svg");return i.innerHTML=t,t=ch(i.firstChild),i.removeChild(i.firstChild),t}function oh(t,e){return e&&(e instanceof th.window.Node||e.ownerDocument&&e instanceof e.ownerDocument.defaultView.Node)?e:ah(t)}function lh(t){if(!t)return null;if(t.instance instanceof ih)return t.instance;if("#document-fragment"===t.nodeName)return new sh.Fragment(t);let e=Vc(t.nodeName||"Dom");return"LinearGradient"===e||"RadialGradient"===e?e="Gradient":sh[e]||(e="Dom"),new sh[e](t)}let ch=lh;function hh(t,e=t.name,i=!1){return sh[e]=t,i&&(sh[nh]=t),Wc(Object.getOwnPropertyNames(t.prototype)),t}let dh=1e3;function uh(t){return"Svgjs"+Vc(t)+dh++}function ph(t){for(let e=t.children.length-1;e>=0;e--)ph(t.children[e]);return t.id?(t.id=uh(t.nodeName),t):t}function gh(t,e){let i,s;for(s=(t=Array.isArray(t)?t:[t]).length-1;s>=0;s--)for(i in e)t[s].prototype[i]=e[i]}function fh(t){return function(...e){const i=e[e.length-1];return!i||i.constructor!==Object||i instanceof Array?t.apply(this,e):t.apply(this,e.slice(0,-1)).attr(i)}}Nc("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const t=this.position();return this.parent().add(this.remove(),t+1),this},backward:function(){const t=this.position();return this.parent().add(this.remove(),t?t-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(t){(t=rh(t)).remove();const e=this.position();return this.parent().add(t,e),this},after:function(t){(t=rh(t)).remove();const e=this.position();return this.parent().add(t,e+1),this},insertBefore:function(t){return(t=rh(t)).before(this),this},insertAfter:function(t){return(t=rh(t)).after(this),this}});const mh=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,xh=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,bh=/rgb\((\d+),(\d+),(\d+)\)/,vh=/(#[a-z_][a-z0-9\-_]*)/i,yh=/\)\s*,?\s*/,wh=/\s/g,Ah=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,kh=/^rgb\(/,Ch=/^(\s+)?$/,_h=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Eh=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,Sh=/[\s,]+/,Mh=/[MLHVCSQTAZ]/i;function Th(t){const e=Math.round(t),i=Math.max(0,Math.min(255,e)).toString(16);return 1===i.length?"0"+i:i}function Lh(t,e){for(let i=e.length;i--;)if(null==t[e[i]])return!1;return!0}function Ph(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}Nc("Dom",{classes:function(){const t=this.attr("class");return null==t?[]:t.trim().split(Sh)},hasClass:function(t){return-1!==this.classes().indexOf(t)},addClass:function(t){if(!this.hasClass(t)){const e=this.classes();e.push(t),this.attr("class",e.join(" "))}return this},removeClass:function(t){return this.hasClass(t)&&this.attr("class",this.classes().filter(function(e){return e!==t}).join(" ")),this},toggleClass:function(t){return this.hasClass(t)?this.removeClass(t):this.addClass(t)}}),Nc("Dom",{css:function(t,e){const i={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(t){return!!t.length}).forEach(function(t){const e=t.split(/\s*:\s*/);i[e[0]]=e[1]}),i;if(arguments.length<2){if(Array.isArray(t)){for(const e of t){const t=e;i[e]=this.node.style.getPropertyValue(t)}return i}if("string"==typeof t)return this.node.style.getPropertyValue(t);if("object"==typeof t)for(const e in t)this.node.style.setProperty(e,null==t[e]||Ch.test(t[e])?"":t[e])}return 2===arguments.length&&this.node.style.setProperty(t,null==e||Ch.test(e)?"":e),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),Nc("Dom",{data:function(t,e,i){if(null==t)return this.data(Xc(function(t,e){let i;const s=t.length,n=[];for(i=0;i<s;i++)e(t[i])&&n.push(t[i]);return n}(this.node.attributes,t=>0===t.nodeName.indexOf("data-")),t=>t.nodeName.slice(5)));if(t instanceof Array){const e={};for(const i of t)e[i]=this.data(i);return e}if("object"==typeof t)for(e in t)this.data(e,t[e]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+t))}catch(e){return this.attr("data-"+t)}else this.attr("data-"+t,null===e?null:!0===i||"string"==typeof e||"number"==typeof e?e:JSON.stringify(e));return this}}),Nc("Dom",{remember:function(t,e){if("object"==typeof arguments[0])for(const e in t)this.remember(e,t[e]);else{if(1===arguments.length)return this.memory()[t];this.memory()[t]=e}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let t=arguments.length-1;t>=0;t--)delete this.memory()[arguments[t]];return this},memory:function(){return this._memory=this._memory||{}}});class Bh{constructor(...t){this.init(...t)}static isColor(t){return t&&(t instanceof Bh||this.isRgb(t)||this.test(t))}static isRgb(t){return t&&"number"==typeof t.r&&"number"==typeof t.g&&"number"==typeof t.b}static random(t="vibrant",e){const{random:i,round:s,sin:n,PI:a}=Math;if("vibrant"===t){const t=24*i()+57,e=38*i()+45,s=360*i();return new Bh(t,e,s,"lch")}if("sine"===t){const t=s(80*n(2*a*(e=null==e?i():e)/.5+.01)+150),r=s(50*n(2*a*e/.5+4.6)+200),o=s(100*n(2*a*e/.5+2.3)+150);return new Bh(t,r,o)}if("pastel"===t){const t=8*i()+86,e=17*i()+9,s=360*i();return new Bh(t,e,s,"lch")}if("dark"===t){const t=10+10*i(),e=50*i()+86,s=360*i();return new Bh(t,e,s,"lch")}if("rgb"===t){const t=255*i(),e=255*i(),s=255*i();return new Bh(t,e,s)}if("lab"===t){const t=100*i(),e=256*i()-128,s=256*i()-128;return new Bh(t,e,s,"lab")}if("grey"===t){const t=255*i();return new Bh(t,t,t)}throw new Error("Unsupported random color mode")}static test(t){return"string"==typeof t&&(Ah.test(t)||kh.test(t))}cmyk(){const{_a:t,_b:e,_c:i}=this.rgb(),[s,n,a]=[t,e,i].map(t=>t/255),r=Math.min(1-s,1-n,1-a);return 1===r?new Bh(0,0,0,1,"cmyk"):new Bh((1-s-r)/(1-r),(1-n-r)/(1-r),(1-a-r)/(1-r),r,"cmyk")}hsl(){const{_a:t,_b:e,_c:i}=this.rgb(),[s,n,a]=[t,e,i].map(t=>t/255),r=Math.max(s,n,a),o=Math.min(s,n,a),l=(r+o)/2,c=r===o,h=r-o;return new Bh(360*(c?0:r===s?((n-a)/h+(n<a?6:0))/6:r===n?((a-s)/h+2)/6:r===a?((s-n)/h+4)/6:0),100*(c?0:l>.5?h/(2-r-o):h/(r+o)),100*l,"hsl")}init(t=0,e=0,i=0,s=0,n="rgb"){if(t=t||0,this.space)for(const t in this.space)delete this[this.space[t]];if("number"==typeof t)n="string"==typeof s?s:n,s="string"==typeof s?0:s,Object.assign(this,{_a:t,_b:e,_c:i,_d:s,space:n});else if(t instanceof Array)this.space=e||("string"==typeof t[3]?t[3]:t[4])||"rgb",Object.assign(this,{_a:t[0],_b:t[1],_c:t[2],_d:t[3]||0});else if(t instanceof Object){const i=function(t,e){const i=Lh(t,"rgb")?{_a:t.r,_b:t.g,_c:t.b,_d:0,space:"rgb"}:Lh(t,"xyz")?{_a:t.x,_b:t.y,_c:t.z,_d:0,space:"xyz"}:Lh(t,"hsl")?{_a:t.h,_b:t.s,_c:t.l,_d:0,space:"hsl"}:Lh(t,"lab")?{_a:t.l,_b:t.a,_c:t.b,_d:0,space:"lab"}:Lh(t,"lch")?{_a:t.l,_b:t.c,_c:t.h,_d:0,space:"lch"}:Lh(t,"cmyk")?{_a:t.c,_b:t.m,_c:t.y,_d:t.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return i.space=e||i.space,i}(t,e);Object.assign(this,i)}else if("string"==typeof t)if(kh.test(t)){const e=t.replace(wh,""),[i,s,n]=bh.exec(e).slice(1,4).map(t=>parseInt(t));Object.assign(this,{_a:i,_b:s,_c:n,_d:0,space:"rgb"})}else{if(!Ah.test(t))throw Error("Unsupported string format, can't construct Color");{const e=t=>parseInt(t,16),[,i,s,n]=xh.exec(function(t){return 4===t.length?["#",t.substring(1,2),t.substring(1,2),t.substring(2,3),t.substring(2,3),t.substring(3,4),t.substring(3,4)].join(""):t}(t)).map(e);Object.assign(this,{_a:i,_b:s,_c:n,_d:0,space:"rgb"})}}const{_a:a,_b:r,_c:o,_d:l}=this,c="rgb"===this.space?{r:a,g:r,b:o}:"xyz"===this.space?{x:a,y:r,z:o}:"hsl"===this.space?{h:a,s:r,l:o}:"lab"===this.space?{l:a,a:r,b:o}:"lch"===this.space?{l:a,c:r,h:o}:"cmyk"===this.space?{c:a,m:r,y:o,k:l}:{};Object.assign(this,c)}lab(){const{x:t,y:e,z:i}=this.xyz();return new Bh(116*e-16,500*(t-e),200*(e-i),"lab")}lch(){const{l:t,a:e,b:i}=this.lab(),s=Math.sqrt(e**2+i**2);let n=180*Math.atan2(i,e)/Math.PI;return n<0&&(n*=-1,n=360-n),new Bh(t,s,n,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(t=this.space)||"xyz"===t||"lch"===t){let{x:t,y:e,z:i}=this;if("lab"===this.space||"lch"===this.space){let{l:s,a:n,b:a}=this;if("lch"===this.space){const{c:t,h:e}=this,i=Math.PI/180;n=t*Math.cos(i*e),a=t*Math.sin(i*e)}const r=(s+16)/116,o=n/500+r,l=r-a/200,c=16/116,h=.008856,d=7.787;t=.95047*(o**3>h?o**3:(o-c)/d),e=1*(r**3>h?r**3:(r-c)/d),i=1.08883*(l**3>h?l**3:(l-c)/d)}const s=3.2406*t+-1.5372*e+-.4986*i,n=-.9689*t+1.8758*e+.0415*i,a=.0557*t+-.204*e+1.057*i,r=Math.pow,o=.0031308,l=s>o?1.055*r(s,1/2.4)-.055:12.92*s,c=n>o?1.055*r(n,1/2.4)-.055:12.92*n,h=a>o?1.055*r(a,1/2.4)-.055:12.92*a;return new Bh(255*l,255*c,255*h)}if("hsl"===this.space){let{h:t,s:e,l:i}=this;if(t/=360,e/=100,i/=100,0===e)return i*=255,new Bh(i,i,i);const s=i<.5?i*(1+e):i+e-i*e,n=2*i-s,a=255*Ph(n,s,t+1/3),r=255*Ph(n,s,t),o=255*Ph(n,s,t-1/3);return new Bh(a,r,o)}if("cmyk"===this.space){const{c:t,m:e,y:i,k:s}=this,n=255*(1-Math.min(1,t*(1-s)+s)),a=255*(1-Math.min(1,e*(1-s)+s)),r=255*(1-Math.min(1,i*(1-s)+s));return new Bh(n,a,r)}return this;var t}toArray(){const{_a:t,_b:e,_c:i,_d:s,space:n}=this;return[t,e,i,s,n]}toHex(){const[t,e,i]=this._clamped().map(Th);return`#${t}${e}${i}`}toRgb(){const[t,e,i]=this._clamped();return`rgb(${t},${e},${i})`}toString(){return this.toHex()}xyz(){const{_a:t,_b:e,_c:i}=this.rgb(),[s,n,a]=[t,e,i].map(t=>t/255),r=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,o=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92,l=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,c=(.4124*r+.3576*o+.1805*l)/.95047,h=(.2126*r+.7152*o+.0722*l)/1,d=(.0193*r+.1192*o+.9505*l)/1.08883,u=c>.008856?Math.pow(c,1/3):7.787*c+16/116,p=h>.008856?Math.pow(h,1/3):7.787*h+16/116,g=d>.008856?Math.pow(d,1/3):7.787*d+16/116;return new Bh(u,p,g,"xyz")}_clamped(){const{_a:t,_b:e,_c:i}=this.rgb(),{max:s,min:n,round:a}=Math;return[t,e,i].map(t=>s(0,n(a(t),255)))}}class Oh{constructor(...t){this.init(...t)}clone(){return new Oh(this)}init(t,e){const i=Array.isArray(t)?{x:t[0],y:t[1]}:"object"==typeof t?{x:t.x,y:t.y}:{x:t,y:e};return this.x=null==i.x?0:i.x,this.y=null==i.y?0:i.y,this}toArray(){return[this.x,this.y]}transform(t){return this.clone().transformO(t)}transformO(t){zh.isMatrixLike(t)||(t=new zh(t));const{x:e,y:i}=this;return this.x=t.a*e+t.c*i+t.e,this.y=t.b*e+t.d*i+t.f,this}}function Ih(t,e,i){return Math.abs(e-t)<(i||1e-6)}class zh{constructor(...t){this.init(...t)}static formatTransforms(t){const e="both"===t.flip||!0===t.flip,i=t.flip&&(e||"x"===t.flip)?-1:1,s=t.flip&&(e||"y"===t.flip)?-1:1,n=t.skew&&t.skew.length?t.skew[0]:isFinite(t.skew)?t.skew:isFinite(t.skewX)?t.skewX:0,a=t.skew&&t.skew.length?t.skew[1]:isFinite(t.skew)?t.skew:isFinite(t.skewY)?t.skewY:0,r=t.scale&&t.scale.length?t.scale[0]*i:isFinite(t.scale)?t.scale*i:isFinite(t.scaleX)?t.scaleX*i:i,o=t.scale&&t.scale.length?t.scale[1]*s:isFinite(t.scale)?t.scale*s:isFinite(t.scaleY)?t.scaleY*s:s,l=t.shear||0,c=t.rotate||t.theta||0,h=new Oh(t.origin||t.around||t.ox||t.originX,t.oy||t.originY),d=h.x,u=h.y,p=new Oh(t.position||t.px||t.positionX||NaN,t.py||t.positionY||NaN),g=p.x,f=p.y,m=new Oh(t.translate||t.tx||t.translateX,t.ty||t.translateY),x=m.x,b=m.y,v=new Oh(t.relative||t.rx||t.relativeX,t.ry||t.relativeY);return{scaleX:r,scaleY:o,skewX:n,skewY:a,shear:l,theta:c,rx:v.x,ry:v.y,tx:x,ty:b,ox:d,oy:u,px:g,py:f}}static fromArray(t){return{a:t[0],b:t[1],c:t[2],d:t[3],e:t[4],f:t[5]}}static isMatrixLike(t){return null!=t.a||null!=t.b||null!=t.c||null!=t.d||null!=t.e||null!=t.f}static matrixMultiply(t,e,i){const s=t.a*e.a+t.c*e.b,n=t.b*e.a+t.d*e.b,a=t.a*e.c+t.c*e.d,r=t.b*e.c+t.d*e.d,o=t.e+t.a*e.e+t.c*e.f,l=t.f+t.b*e.e+t.d*e.f;return i.a=s,i.b=n,i.c=a,i.d=r,i.e=o,i.f=l,i}around(t,e,i){return this.clone().aroundO(t,e,i)}aroundO(t,e,i){const s=t||0,n=e||0;return this.translateO(-s,-n).lmultiplyO(i).translateO(s,n)}clone(){return new zh(this)}decompose(t=0,e=0){const i=this.a,s=this.b,n=this.c,a=this.d,r=this.e,o=this.f,l=i*a-s*n,c=l>0?1:-1,h=c*Math.sqrt(i*i+s*s),d=Math.atan2(c*s,c*i),u=180/Math.PI*d,p=Math.cos(d),g=Math.sin(d),f=(i*n+s*a)/l,m=n*h/(f*i-s)||a*h/(f*s+i);return{scaleX:h,scaleY:m,shear:f,rotate:u,translateX:r-t+t*p*h+e*(f*p*h-g*m),translateY:o-e+t*g*h+e*(f*g*h+p*m),originX:t,originY:e,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(t){if(t===this)return!0;const e=new zh(t);return Ih(this.a,e.a)&&Ih(this.b,e.b)&&Ih(this.c,e.c)&&Ih(this.d,e.d)&&Ih(this.e,e.e)&&Ih(this.f,e.f)}flip(t,e){return this.clone().flipO(t,e)}flipO(t,e){return"x"===t?this.scaleO(-1,1,e,0):"y"===t?this.scaleO(1,-1,0,e):this.scaleO(-1,-1,t,e||t)}init(t){const e=zh.fromArray([1,0,0,1,0,0]);return t=t instanceof sd?t.matrixify():"string"==typeof t?zh.fromArray(t.split(Sh).map(parseFloat)):Array.isArray(t)?zh.fromArray(t):"object"==typeof t&&zh.isMatrixLike(t)?t:"object"==typeof t?(new zh).transform(t):6===arguments.length?zh.fromArray([].slice.call(arguments)):e,this.a=null!=t.a?t.a:e.a,this.b=null!=t.b?t.b:e.b,this.c=null!=t.c?t.c:e.c,this.d=null!=t.d?t.d:e.d,this.e=null!=t.e?t.e:e.e,this.f=null!=t.f?t.f:e.f,this}inverse(){return this.clone().inverseO()}inverseO(){const t=this.a,e=this.b,i=this.c,s=this.d,n=this.e,a=this.f,r=t*s-e*i;if(!r)throw new Error("Cannot invert "+this);const o=s/r,l=-e/r,c=-i/r,h=t/r,d=-(o*n+c*a),u=-(l*n+h*a);return this.a=o,this.b=l,this.c=c,this.d=h,this.e=d,this.f=u,this}lmultiply(t){return this.clone().lmultiplyO(t)}lmultiplyO(t){const e=t instanceof zh?t:new zh(t);return zh.matrixMultiply(e,this,this)}multiply(t){return this.clone().multiplyO(t)}multiplyO(t){const e=t instanceof zh?t:new zh(t);return zh.matrixMultiply(this,e,this)}rotate(t,e,i){return this.clone().rotateO(t,e,i)}rotateO(t,e=0,i=0){t=jc(t);const s=Math.cos(t),n=Math.sin(t),{a,b:r,c:o,d:l,e:c,f:h}=this;return this.a=a*s-r*n,this.b=r*s+a*n,this.c=o*s-l*n,this.d=l*s+o*n,this.e=c*s-h*n+i*n-e*s+e,this.f=h*s+c*n-e*n-i*s+i,this}scale(){return this.clone().scaleO(...arguments)}scaleO(t,e=t,i=0,s=0){3===arguments.length&&(s=i,i=e,e=t);const{a:n,b:a,c:r,d:o,e:l,f:c}=this;return this.a=n*t,this.b=a*e,this.c=r*t,this.d=o*e,this.e=l*t-i*t+i,this.f=c*e-s*e+s,this}shear(t,e,i){return this.clone().shearO(t,e,i)}shearO(t,e=0,i=0){const{a:s,b:n,c:a,d:r,e:o,f:l}=this;return this.a=s+n*t,this.c=a+r*t,this.e=o+l*t-i*t,this}skew(){return this.clone().skewO(...arguments)}skewO(t,e=t,i=0,s=0){3===arguments.length&&(s=i,i=e,e=t),t=jc(t),e=jc(e);const n=Math.tan(t),a=Math.tan(e),{a:r,b:o,c:l,d:c,e:h,f:d}=this;return this.a=r+o*n,this.b=o+r*a,this.c=l+c*n,this.d=c+l*a,this.e=h+d*n-s*n,this.f=d+h*a-i*a,this}skewX(t,e,i){return this.skew(t,0,e,i)}skewY(t,e,i){return this.skew(0,t,e,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(t){if(zh.isMatrixLike(t))return new zh(t).multiplyO(this);const e=zh.formatTransforms(t),{x:i,y:s}=new Oh(e.ox,e.oy).transform(this),n=(new zh).translateO(e.rx,e.ry).lmultiplyO(this).translateO(-i,-s).scaleO(e.scaleX,e.scaleY).skewO(e.skewX,e.skewY).shearO(e.shear).rotateO(e.theta).translateO(i,s);if(isFinite(e.px)||isFinite(e.py)){const t=new Oh(i,s).transform(n),a=isFinite(e.px)?e.px-t.x:0,r=isFinite(e.py)?e.py-t.y:0;n.translateO(a,r)}return n.translateO(e.tx,e.ty),n}translate(t,e){return this.clone().translateO(t,e)}translateO(t,e){return this.e+=t||0,this.f+=e||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function Dh(){if(!Dh.nodes){const t=rh().size(2,0);t.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),t.attr("focusable","false"),t.attr("aria-hidden","true");const e=t.path().node;Dh.nodes={svg:t,path:e}}if(!Dh.nodes.svg.node.parentNode){const t=th.document.body||th.document.documentElement;Dh.nodes.svg.addTo(t)}return Dh.nodes}function Fh(t){return!(t.width||t.height||t.x||t.y)}hh(zh,"Matrix");class Rh{constructor(...t){this.init(...t)}addOffset(){return this.x+=th.window.pageXOffset,this.y+=th.window.pageYOffset,new Rh(this)}init(t){return t="string"==typeof t?t.split(Sh).map(parseFloat):Array.isArray(t)?t:"object"==typeof t?[null!=t.left?t.left:t.x,null!=t.top?t.top:t.y,t.width,t.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=t[0]||0,this.y=t[1]||0,this.width=this.w=t[2]||0,this.height=this.h=t[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Fh(this)}merge(t){const e=Math.min(this.x,t.x),i=Math.min(this.y,t.y),s=Math.max(this.x+this.width,t.x+t.width)-e,n=Math.max(this.y+this.height,t.y+t.height)-i;return new Rh(e,i,s,n)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(t){t instanceof zh||(t=new zh(t));let e=1/0,i=-1/0,s=1/0,n=-1/0;return[new Oh(this.x,this.y),new Oh(this.x2,this.y),new Oh(this.x,this.y2),new Oh(this.x2,this.y2)].forEach(function(a){a=a.transform(t),e=Math.min(e,a.x),i=Math.max(i,a.x),s=Math.min(s,a.y),n=Math.max(n,a.y)}),new Rh(e,s,i-e,n-s)}}function Hh(t,e,i){let s;try{if(s=e(t.node),Fh(s)&&(n=t.node)!==th.document&&!(th.document.documentElement.contains||function(t){for(;t.parentNode;)t=t.parentNode;return t===th.document}).call(th.document.documentElement,n))throw new Error("Element not in the dom")}catch(e){s=i(t)}var n;return s}Nc({viewbox:{viewbox(t,e,i,s){return null==t?new Rh(this.attr("viewBox")):this.attr("viewBox",new Rh(t,e,i,s))},zoom(t,e){let{width:i,height:s}=this.attr(["width","height"]);if((i||s)&&"string"!=typeof i&&"string"!=typeof s||(i=this.node.clientWidth,s=this.node.clientHeight),!i||!s)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const n=this.viewbox(),a=i/n.width,r=s/n.height,o=Math.min(a,r);if(null==t)return o;let l=o/t;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),e=e||new Oh(i/2/a+n.x,s/2/r+n.y);const c=new Rh(n).transform(new zh({scale:l,origin:e}));return this.viewbox(c)}}}),hh(Rh,"Box");class Nh extends Array{constructor(t=[],...e){if(super(t,...e),"number"==typeof t)return this;this.length=0,this.push(...t)}}gh([Nh],{each(t,...e){return"function"==typeof t?this.map((e,i,s)=>t.call(e,e,i,s)):this.map(i=>i[t](...e))},toArray(){return Array.prototype.concat.apply([],this)}});const Yh=["toArray","constructor","each"];function Wh(t,e){return new Nh(Xc((e||th.document).querySelectorAll(t),function(t){return lh(t)}))}Nh.extend=function(t){t=t.reduce((t,e)=>(Yh.includes(e)||"_"===e[0]||(e in Array.prototype&&(t["$"+e]=Array.prototype[e]),t[e]=function(...t){return this.each(e,...t)}),t),{}),gh([Nh],t)};let Xh=0;const jh={};function Vh(t){let e=t.getEventHolder();return e===th.window&&(e=jh),e.events||(e.events={}),e.events}function Gh(t){return t.getEventTarget()}function $h(t,e,i,s,n){const a=i.bind(s||t),r=rh(t),o=Vh(r),l=Gh(r);e=Array.isArray(e)?e:e.split(Sh),i._svgjsListenerId||(i._svgjsListenerId=++Xh),e.forEach(function(t){const e=t.split(".")[0],s=t.split(".")[1]||"*";o[e]=o[e]||{},o[e][s]=o[e][s]||{},o[e][s][i._svgjsListenerId]=a,l.addEventListener(e,a,n||!1)})}function Uh(t,e,i,s){const n=rh(t),a=Vh(n),r=Gh(n);("function"!=typeof i||(i=i._svgjsListenerId))&&(e=Array.isArray(e)?e:(e||"").split(Sh)).forEach(function(t){const e=t&&t.split(".")[0],o=t&&t.split(".")[1];let l,c;if(i)a[e]&&a[e][o||"*"]&&(r.removeEventListener(e,a[e][o||"*"][i],s||!1),delete a[e][o||"*"][i]);else if(e&&o){if(a[e]&&a[e][o]){for(c in a[e][o])Uh(r,[e,o].join("."),c);delete a[e][o]}}else if(o)for(t in a)for(l in a[t])o===l&&Uh(r,[t,o].join("."));else if(e){if(a[e]){for(l in a[e])Uh(r,[e,l].join("."));delete a[e]}}else{for(t in a)Uh(r,t);!function(t){let e=t.getEventHolder();e===th.window&&(e=jh),e.events&&(e.events={})}(n)}})}class qh extends ih{addEventListener(){}dispatch(t,e,i){return function(t,e,i,s){const n=Gh(t);return e instanceof th.window.Event||(e=new th.window.CustomEvent(e,{detail:i,cancelable:!0,...s})),n.dispatchEvent(e),e}(this,t,e,i)}dispatchEvent(t){const e=this.getEventHolder().events;if(!e)return!0;const i=e[t.type];for(const e in i)for(const s in i[e])i[e][s](t);return!t.defaultPrevented}fire(t,e,i){return this.dispatch(t,e,i),this}getEventHolder(){return this}getEventTarget(){return this}off(t,e,i){return Uh(this,t,e,i),this}on(t,e,i,s){return $h(this,t,e,i,s),this}removeEventListener(){}}function Zh(){}hh(qh,"EventTarget");const Qh={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Kh extends Array{constructor(...t){super(...t),this.init(...t)}clone(){return new this.constructor(this)}init(t){return"number"==typeof t||(this.length=0,this.push(...this.parse(t))),this}parse(t=[]){return t instanceof Array?t:t.trim().split(Sh).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const t=[];return t.push(...this),t}}class Jh{constructor(...t){this.init(...t)}convert(t){return new Jh(this.value,t)}divide(t){return t=new Jh(t),new Jh(this/t,this.unit||t.unit)}init(t,e){return e=Array.isArray(t)?t[1]:e,t=Array.isArray(t)?t[0]:t,this.value=0,this.unit=e||"","number"==typeof t?this.value=isNaN(t)?0:isFinite(t)?t:t<0?-34e37:34e37:"string"==typeof t?(e=t.match(mh))&&(this.value=parseFloat(e[1]),"%"===e[5]?this.value/=100:"s"===e[5]&&(this.value*=1e3),this.unit=e[5]):t instanceof Jh&&(this.value=t.valueOf(),this.unit=t.unit),this}minus(t){return t=new Jh(t),new Jh(this-t,this.unit||t.unit)}plus(t){return t=new Jh(t),new Jh(this+t,this.unit||t.unit)}times(t){return t=new Jh(t),new Jh(this*t,this.unit||t.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const td=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),ed=[];class id extends qh{constructor(t,e){super(),this.node=t,this.type=t.nodeName,e&&t!==e&&this.attr(e)}add(t,e){return(t=rh(t)).removeNamespace&&this.node instanceof th.window.SVGElement&&t.removeNamespace(),null==e?this.node.appendChild(t.node):t.node!==this.node.childNodes[e]&&this.node.insertBefore(t.node,this.node.childNodes[e]),this}addTo(t,e){return rh(t).put(this,e)}children(){return new Nh(Xc(this.node.children,function(t){return lh(t)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(t=!0,e=!0){this.writeDataToDom();let i=this.node.cloneNode(t);return e&&(i=ph(i)),new this.constructor(i)}each(t,e){const i=this.children();let s,n;for(s=0,n=i.length;s<n;s++)t.apply(i[s],[s,i]),e&&i[s].each(t,e);return this}element(t,e){return this.put(new id(ah(t),e))}first(){return lh(this.node.firstChild)}get(t){return lh(this.node.childNodes[t])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(t){return this.index(t)>=0}html(t,e){return this.xml(t,e,"http://www.w3.org/1999/xhtml")}id(t){return void 0!==t||this.node.id||(this.node.id=uh(this.type)),this.attr("id",t)}index(t){return[].slice.call(this.node.childNodes).indexOf(t.node)}last(){return lh(this.node.lastChild)}matches(t){const e=this.node,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector||null;return i&&i.call(e,t)}parent(t){let e=this;if(!e.node.parentNode)return null;if(e=lh(e.node.parentNode),!t)return e;do{if("string"==typeof t?e.matches(t):e instanceof t)return e}while(e=lh(e.node.parentNode));return e}put(t,e){return t=rh(t),this.add(t,e),t}putIn(t,e){return rh(t).add(this,e)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(t){return this.node.removeChild(t.node),this}replace(t){return t=rh(t),this.node.parentNode&&this.node.parentNode.replaceChild(t.node,this.node),t}round(t=2,e=null){const i=10**t,s=this.attr(e);for(const t in s)"number"==typeof s[t]&&(s[t]=Math.round(s[t]*i)/i);return this.attr(s),this}svg(t,e){return this.xml(t,e,Qc)}toString(){return this.id()}words(t){return this.node.textContent=t,this}wrap(t){const e=this.parent();if(!e)return this.addTo(t);const i=e.index(this);return e.put(t,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){e=null==e||e,this.writeDataToDom();let i=this;if(null!=t){if(i=lh(i.node.cloneNode(!0)),e){const e=t(i);if(i=e||i,!1===e)return""}i.each(function(){const e=t(this),i=e||this;!1===e?this.remove():e&&this!==i&&this.replace(i)},!0)}return e?i.node.outerHTML:i.node.innerHTML}e=null!=e&&e;const s=ah("wrapper",i),n=th.document.createDocumentFragment();s.innerHTML=t;for(let t=s.children.length;t--;)n.appendChild(s.firstElementChild);const a=this.parent();return e?this.replace(n)&&a:this.add(n)}}gh(id,{attr:function(t,e,i){if(null==t){t={},e=this.node.attributes;for(const i of e)t[i.nodeName]=_h.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return t}if(t instanceof Array)return t.reduce((t,e)=>(t[e]=this.attr(e),t),{});if("object"==typeof t&&t.constructor===Object)for(e in t)this.attr(e,t[e]);else if(null===e)this.node.removeAttribute(t);else{if(null==e)return null==(e=this.node.getAttribute(t))?Qh[t]:_h.test(e)?parseFloat(e):e;"number"==typeof(e=ed.reduce((e,i)=>i(t,e,this),e))?e=new Jh(e):td.has(t)&&Bh.isColor(e)?e=new Bh(e):e.constructor===Array&&(e=new Kh(e)),"leading"===t?this.leading&&this.leading(e):"string"==typeof i?this.node.setAttributeNS(i,t,e.toString()):this.node.setAttribute(t,e.toString()),!this.rebuild||"font-size"!==t&&"x"!==t||this.rebuild()}return this},find:function(t){return Wh(t,this.node)},findOne:function(t){return lh(this.node.querySelector(t))}}),hh(id,"Dom");let sd=class extends id{constructor(t,e){super(t,e),this.dom={},this.node.instance=this,(t.hasAttribute("data-svgjs")||t.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(t.getAttribute("data-svgjs"))??JSON.parse(t.getAttribute("svgjs:data"))??{})}center(t,e){return this.cx(t).cy(e)}cx(t){return null==t?this.x()+this.width()/2:this.x(t-this.width()/2)}cy(t){return null==t?this.y()+this.height()/2:this.y(t-this.height()/2)}defs(){const t=this.root();return t&&t.defs()}dmove(t,e){return this.dx(t).dy(e)}dx(t=0){return this.x(new Jh(t).plus(this.x()))}dy(t=0){return this.y(new Jh(t).plus(this.y()))}getEventHolder(){return this}height(t){return this.attr("height",t)}move(t,e){return this.x(t).y(e)}parents(t=this.root()){const e="string"==typeof t;e||(t=rh(t));const i=new Nh;let s=this;for(;(s=s.parent())&&s.node!==th.document&&"#document-fragment"!==s.nodeName&&(i.push(s),e||s.node!==t.node)&&(!e||!s.matches(t));)if(s.node===this.root().node)return null;return i}reference(t){if(!(t=this.attr(t)))return null;const e=(t+"").match(vh);return e?rh(e[1]):null}root(){const t=this.parent(function(t){return sh[t]}(nh));return t&&t.root()}setData(t){return this.dom=t,this}size(t,e){const i=Gc(this,t,e);return this.width(new Jh(i.width)).height(new Jh(i.height))}width(t){return this.attr("width",t)}writeDataToDom(){return Zc(this,this.dom),super.writeDataToDom()}x(t){return this.attr("x",t)}y(t){return this.attr("y",t)}};gh(sd,{bbox:function(){const t=Hh(this,t=>t.getBBox(),t=>{try{const e=t.clone().addTo(Dh().svg).show(),i=e.node.getBBox();return e.remove(),i}catch(e){throw new Error(`Getting bbox of element "${t.node.nodeName}" is not possible: ${e.toString()}`)}});return new Rh(t)},rbox:function(t){const e=Hh(this,t=>t.getBoundingClientRect(),t=>{throw new Error(`Getting rbox of element "${t.node.nodeName}" is not possible`)}),i=new Rh(e);return t?i.transform(t.screenCTM().inverseO()):i.addOffset()},inside:function(t,e){const i=this.bbox();return t>i.x&&e>i.y&&t<i.x+i.width&&e<i.y+i.height},point:function(t,e){return new Oh(t,e).transformO(this.screenCTM().inverseO())},ctm:function(){return new zh(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const t=this.rect(1,1),e=t.node.getScreenCTM();return t.remove(),new zh(e)}return new zh(this.node.getScreenCTM())}catch(t){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new zh}}}),hh(sd,"Element");const nd={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(t,e){return"color"===e?t:t+"-"+e}};["fill","stroke"].forEach(function(t){const e={};let i;e[t]=function(e){if(void 0===e)return this.attr(t);if("string"==typeof e||e instanceof Bh||Bh.isRgb(e)||e instanceof sd)this.attr(t,e);else for(i=nd[t].length-1;i>=0;i--)null!=e[nd[t][i]]&&this.attr(nd.prefix(t,nd[t][i]),e[nd[t][i]]);return this},Nc(["Element","Runner"],e)}),Nc(["Element","Runner"],{matrix:function(t,e,i,s,n,a){return null==t?new zh(this):this.attr("transform",new zh(t,e,i,s,n,a))},rotate:function(t,e,i){return this.transform({rotate:t,ox:e,oy:i},!0)},skew:function(t,e,i,s){return 1===arguments.length||3===arguments.length?this.transform({skew:t,ox:e,oy:i},!0):this.transform({skew:[t,e],ox:i,oy:s},!0)},shear:function(t,e,i){return this.transform({shear:t,ox:e,oy:i},!0)},scale:function(t,e,i,s){return 1===arguments.length||3===arguments.length?this.transform({scale:t,ox:e,oy:i},!0):this.transform({scale:[t,e],ox:i,oy:s},!0)},translate:function(t,e){return this.transform({translate:[t,e]},!0)},relative:function(t,e){return this.transform({relative:[t,e]},!0)},flip:function(t="both",e="center"){return-1==="xybothtrue".indexOf(t)&&(e=t,t="both"),this.transform({flip:t,origin:e},!0)},opacity:function(t){return this.attr("opacity",t)}}),Nc("radius",{radius:function(t,e=t){return"radialGradient"===(this._element||this).type?this.attr("r",new Jh(t)):this.rx(t).ry(e)}}),Nc("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(t){return new Oh(this.node.getPointAtLength(t))}}),Nc(["Element","Runner"],{font:function(t,e){if("object"==typeof t){for(e in t)this.font(e,t[e]);return this}return"leading"===t?this.leading(e):"anchor"===t?this.attr("text-anchor",e):"size"===t||"family"===t||"weight"===t||"stretch"===t||"variant"===t||"style"===t?this.attr("font-"+t,e):this.attr(t,e)}}),Nc("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(t,e){return t[e]=function(t){return null===t?this.off(e):this.on(e,t),this},t},{})),Nc("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const t=(this.attr("transform")||"").split(yh).slice(0,-1).map(function(t){const e=t.trim().split("(");return[e[0],e[1].split(Sh).map(function(t){return parseFloat(t)})]}).reverse().reduce(function(t,e){return"matrix"===e[0]?t.lmultiply(zh.fromArray(e[1])):t[e[0]].apply(t,e[1])},new zh);return t},toParent:function(t,e){if(this===t)return this;if(qc(this.node))return this.addTo(t,e);const i=this.screenCTM(),s=t.screenCTM().inverse();return this.addTo(t,e).untransform().transform(s.multiply(i)),this},toRoot:function(t){return this.toParent(this.root(),t)},transform:function(t,e){if(null==t||"string"==typeof t){const e=new zh(this).decompose();return null==t?e:e[t]}zh.isMatrixLike(t)||(t={...t,origin:$c(t,this)});const i=new zh(!0===e?this:e||!1).transform(t);return this.attr("transform",i)}});class ad extends sd{flatten(){return this.each(function(){if(this instanceof ad)return this.flatten().ungroup()}),this}ungroup(t=this.parent(),e=t.index(this)){return e=-1===e?t.children().length:e,this.each(function(i,s){return s[s.length-i-1].toParent(t,e)}),this.remove()}}hh(ad,"Container");class rd extends ad{constructor(t,e=t){super(oh("defs",t),e)}flatten(){return this}ungroup(){return this}}hh(rd,"Defs");class od extends sd{}function ld(t){return this.attr("rx",t)}function cd(t){return this.attr("ry",t)}function hd(t){return null==t?this.cx()-this.rx():this.cx(t+this.rx())}function dd(t){return null==t?this.cy()-this.ry():this.cy(t+this.ry())}function ud(t){return this.attr("cx",t)}function pd(t){return this.attr("cy",t)}function gd(t){return null==t?2*this.rx():this.rx(new Jh(t).divide(2))}function fd(t){return null==t?2*this.ry():this.ry(new Jh(t).divide(2))}hh(od,"Shape");var md=Object.freeze({__proto__:null,cx:ud,cy:pd,height:fd,rx:ld,ry:cd,width:gd,x:hd,y:dd});class xd extends od{constructor(t,e=t){super(oh("ellipse",t),e)}size(t,e){const i=Gc(this,t,e);return this.rx(new Jh(i.width).divide(2)).ry(new Jh(i.height).divide(2))}}gh(xd,md),Nc("Container",{ellipse:fh(function(t=0,e=t){return this.put(new xd).size(t,e).move(0,0)})}),hh(xd,"Ellipse");class bd extends id{constructor(t=th.document.createDocumentFragment()){super(t)}xml(t,e,i){if("boolean"==typeof t&&(i=e,e=t,t=null),null==t||"function"==typeof t){const t=new id(ah("wrapper",i));return t.add(this.node.cloneNode(!0)),t.xml(!1,i)}return super.xml(t,!1,i)}}function vd(t,e){return"radialGradient"===(this._element||this).type?this.attr({fx:new Jh(t),fy:new Jh(e)}):this.attr({x1:new Jh(t),y1:new Jh(e)})}function yd(t,e){return"radialGradient"===(this._element||this).type?this.attr({cx:new Jh(t),cy:new Jh(e)}):this.attr({x2:new Jh(t),y2:new Jh(e)})}hh(bd,"Fragment");var wd=Object.freeze({__proto__:null,from:vd,to:yd});class Ad extends ad{constructor(t,e){super(oh(t+"Gradient","string"==typeof t?null:t),e)}attr(t,e,i){return"transform"===t&&(t="gradientTransform"),super.attr(t,e,i)}bbox(){return new Rh}targets(){return Wh("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}gh(Ad,wd),Nc({Container:{gradient(...t){return this.defs().gradient(...t)}},Defs:{gradient:fh(function(t,e){return this.put(new Ad(t)).update(e)})}}),hh(Ad,"Gradient");class kd extends ad{constructor(t,e=t){super(oh("pattern",t),e)}attr(t,e,i){return"transform"===t&&(t="patternTransform"),super.attr(t,e,i)}bbox(){return new Rh}targets(){return Wh("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}url(){return"url(#"+this.id()+")"}}Nc({Container:{pattern(...t){return this.defs().pattern(...t)}},Defs:{pattern:fh(function(t,e,i){return this.put(new kd).update(i).attr({x:0,y:0,width:t,height:e,patternUnits:"userSpaceOnUse"})})}}),hh(kd,"Pattern");let Cd=class extends od{constructor(t,e=t){super(oh("image",t),e)}load(t,e){if(!t)return this;const i=new th.window.Image;return $h(i,"load",function(t){const s=this.parent(kd);0===this.width()&&0===this.height()&&this.size(i.width,i.height),s instanceof kd&&0===s.width()&&0===s.height()&&s.size(this.width(),this.height()),"function"==typeof e&&e.call(this,t)},this),$h(i,"load error",function(){Uh(i)}),this.attr("href",i.src=t,Jc)}};var _d;_d=function(t,e,i){return"fill"!==t&&"stroke"!==t||Eh.test(e)&&(e=i.root().defs().image(e)),e instanceof Cd&&(e=i.root().defs().pattern(0,0,t=>{t.add(e)})),e},ed.push(_d),Nc({Container:{image:fh(function(t,e){return this.put(new Cd).size(0,0).load(t,e)})}}),hh(Cd,"Image");class Ed extends Kh{bbox(){let t=-1/0,e=-1/0,i=1/0,s=1/0;return this.forEach(function(n){t=Math.max(n[0],t),e=Math.max(n[1],e),i=Math.min(n[0],i),s=Math.min(n[1],s)}),new Rh(i,s,t-i,e-s)}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+t,this[i][1]+e];return this}parse(t=[0,0]){const e=[];(t=t instanceof Array?Array.prototype.concat.apply([],t):t.trim().split(Sh).map(parseFloat)).length%2!=0&&t.pop();for(let i=0,s=t.length;i<s;i+=2)e.push([t[i],t[i+1]]);return e}size(t,e){let i;const s=this.bbox();for(i=this.length-1;i>=0;i--)s.width&&(this[i][0]=(this[i][0]-s.x)*t/s.width+s.x),s.height&&(this[i][1]=(this[i][1]-s.y)*e/s.height+s.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const t=[];for(let e=0,i=this.length;e<i;e++)t.push(this[e].join(","));return t.join(" ")}transform(t){return this.clone().transformO(t)}transformO(t){zh.isMatrixLike(t)||(t=new zh(t));for(let e=this.length;e--;){const[i,s]=this[e];this[e][0]=t.a*i+t.c*s+t.e,this[e][1]=t.b*i+t.d*s+t.f}return this}}const Sd=Ed;var Md=Object.freeze({__proto__:null,MorphArray:Sd,height:function(t){const e=this.bbox();return null==t?e.height:this.size(e.width,t)},width:function(t){const e=this.bbox();return null==t?e.width:this.size(t,e.height)},x:function(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)},y:function(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}});let Td=class extends od{constructor(t,e=t){super(oh("line",t),e)}array(){return new Ed([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(t,e){return this.attr(this.array().move(t,e).toLine())}plot(t,e,i,s){return null==t?this.array():(t=void 0!==e?{x1:t,y1:e,x2:i,y2:s}:new Ed(t).toLine(),this.attr(t))}size(t,e){const i=Gc(this,t,e);return this.attr(this.array().size(i.width,i.height).toLine())}};gh(Td,Md),Nc({Container:{line:fh(function(...t){return Td.prototype.plot.apply(this.put(new Td),null!=t[0]?t:[0,0,0,0])})}}),hh(Td,"Line");let Ld=class extends ad{constructor(t,e=t){super(oh("marker",t),e)}height(t){return this.attr("markerHeight",t)}orient(t){return this.attr("orient",t)}ref(t,e){return this.attr("refX",t).attr("refY",e)}toString(){return"url(#"+this.id()+")"}update(t){return this.clear(),"function"==typeof t&&t.call(this,this),this}width(t){return this.attr("markerWidth",t)}};function Pd(t,e){return function(i){return null==i?this[t]:(this[t]=i,e&&e.call(this),this)}}Nc({Container:{marker(...t){return this.defs().marker(...t)}},Defs:{marker:fh(function(t,e,i){return this.put(new Ld).size(t,e).ref(t/2,e/2).viewbox(0,0,t,e).attr("orient","auto").update(i)})},marker:{marker(t,e,i,s){let n=["marker"];return"all"!==t&&n.push(t),n=n.join("-"),t=arguments[1]instanceof Ld?arguments[1]:this.defs().marker(e,i,s),this.attr(n,t)}}}),hh(Ld,"Marker");const Bd={"-":function(t){return t},"<>":function(t){return-Math.cos(t*Math.PI)/2+.5},">":function(t){return Math.sin(t*Math.PI/2)},"<":function(t){return 1-Math.cos(t*Math.PI/2)},bezier:function(t,e,i,s){return function(n){return n<0?t>0?e/t*n:i>0?s/i*n:0:n>1?i<1?(1-s)/(1-i)*n+(s-i)/(1-i):t<1?(1-e)/(1-t)*n+(e-t)/(1-t):1:3*n*(1-n)**2*e+3*n**2*(1-n)*s+n**3}},steps:function(t,e="end"){e=e.split("-").reverse()[0];let i=t;return"none"===e?--i:"both"===e&&++i,(s,n=!1)=>{let a=Math.floor(s*t);const r=s*a%1==0;return"start"!==e&&"both"!==e||++a,n&&r&&--a,s>=0&&a<0&&(a=0),s<=1&&a>i&&(a=i),a/i}}};class Od{done(){return!1}}class Id extends Od{constructor(t=">"){super(),this.ease=Bd[t]||t}step(t,e,i){return"number"!=typeof t?i<1?t:e:t+(e-t)*this.ease(i)}}class zd extends Od{constructor(t){super(),this.stepper=t}done(t){return t.done}step(t,e,i,s){return this.stepper(t,e,i,s)}}function Dd(){const t=(this._duration||500)/1e3,e=this._overshoot||0,i=Math.PI,s=Math.log(e/100+1e-10),n=-s/Math.sqrt(i*i+s*s),a=3.9/(n*t);this.d=2*n*a,this.k=a*a}gh(class extends zd{constructor(t=500,e=0){super(),this.duration(t).overshoot(e)}step(t,e,i,s){if("string"==typeof t)return t;if(s.done=i===1/0,i===1/0)return e;if(0===i)return t;i>100&&(i=16),i/=1e3;const n=s.velocity||0,a=-this.d*n-this.k*(t-e),r=t+n*i+a*i*i/2;return s.velocity=n+a*i,s.done=Math.abs(e-r)+Math.abs(n)<.002,s.done?e:r}},{duration:Pd("_duration",Dd),overshoot:Pd("_overshoot",Dd)}),gh(class extends zd{constructor(t=.1,e=.01,i=0,s=1e3){super(),this.p(t).i(e).d(i).windup(s)}step(t,e,i,s){if("string"==typeof t)return t;if(s.done=i===1/0,i===1/0)return e;if(0===i)return t;const n=e-t;let a=(s.integral||0)+n*i;const r=(n-(s.error||0))/i,o=this._windup;return!1!==o&&(a=Math.max(-o,Math.min(a,o))),s.error=n,s.integral=a,s.done=Math.abs(n)<.001,s.done?e:t+(this.P*n+this.I*a+this.D*r)}},{windup:Pd("_windup"),p:Pd("P"),i:Pd("I"),d:Pd("D")});const Fd={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},Rd={M:function(t,e,i){return e.x=i.x=t[0],e.y=i.y=t[1],["M",e.x,e.y]},L:function(t,e){return e.x=t[0],e.y=t[1],["L",t[0],t[1]]},H:function(t,e){return e.x=t[0],["H",t[0]]},V:function(t,e){return e.y=t[0],["V",t[0]]},C:function(t,e){return e.x=t[4],e.y=t[5],["C",t[0],t[1],t[2],t[3],t[4],t[5]]},S:function(t,e){return e.x=t[2],e.y=t[3],["S",t[0],t[1],t[2],t[3]]},Q:function(t,e){return e.x=t[2],e.y=t[3],["Q",t[0],t[1],t[2],t[3]]},T:function(t,e){return e.x=t[0],e.y=t[1],["T",t[0],t[1]]},Z:function(t,e,i){return e.x=i.x,e.y=i.y,["Z"]},A:function(t,e){return e.x=t[5],e.y=t[6],["A",t[0],t[1],t[2],t[3],t[4],t[5],t[6]]}},Hd="mlhvqtcsaz".split("");for(let t=0,e=Hd.length;t<e;++t)Rd[Hd[t]]=function(t){return function(e,i,s){if("H"===t)e[0]=e[0]+i.x;else if("V"===t)e[0]=e[0]+i.y;else if("A"===t)e[5]=e[5]+i.x,e[6]=e[6]+i.y;else for(let t=0,s=e.length;t<s;++t)e[t]=e[t]+(t%2?i.y:i.x);return Rd[t](e,i,s)}}(Hd[t].toUpperCase());function Nd(t){return t.segment.length&&t.segment.length-1===Fd[t.segment[0].toUpperCase()]}function Yd(t,e){t.inNumber&&Wd(t,!1);const i=Mh.test(e);if(i)t.segment=[e];else{const e=t.lastCommand,i=e.toLowerCase(),s=e===i;t.segment=["m"===i?s?"l":"L":e]}return t.inSegment=!0,t.lastCommand=t.segment[0],i}function Wd(t,e){if(!t.inNumber)throw new Error("Parser Error");t.number&&t.segment.push(parseFloat(t.number)),t.inNumber=e,t.number="",t.pointSeen=!1,t.hasExponent=!1,Nd(t)&&Xd(t)}function Xd(t){t.inSegment=!1,t.absolute&&(t.segment=function(t){const e=t.segment[0];return Rd[e](t.segment.slice(1),t.p,t.p0)}(t)),t.segments.push(t.segment)}function jd(t){if(!t.segment.length)return!1;const e="A"===t.segment[0].toUpperCase(),i=t.segment.length;return e&&(4===i||5===i)}function Vd(t){return"E"===t.lastToken.toUpperCase()}const Gd=new Set([" ",",","\t","\n","\r","\f"]);class $d extends Kh{bbox(){return Dh().path.setAttribute("d",this.toString()),new Rh(Dh.nodes.path.getBBox())}move(t,e){const i=this.bbox();if(t-=i.x,e-=i.y,!isNaN(t)&&!isNaN(e))for(let i,s=this.length-1;s>=0;s--)i=this[s][0],"M"===i||"L"===i||"T"===i?(this[s][1]+=t,this[s][2]+=e):"H"===i?this[s][1]+=t:"V"===i?this[s][1]+=e:"C"===i||"S"===i||"Q"===i?(this[s][1]+=t,this[s][2]+=e,this[s][3]+=t,this[s][4]+=e,"C"===i&&(this[s][5]+=t,this[s][6]+=e)):"A"===i&&(this[s][6]+=t,this[s][7]+=e);return this}parse(t="M0 0"){return Array.isArray(t)&&(t=Array.prototype.concat.apply([],t).toString()),function(t,e=!0){let i=0,s="";const n={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:e,p0:new Oh,p:new Oh};for(;n.lastToken=s,s=t.charAt(i++);)if(n.inSegment||!Yd(n,s))if("."!==s)if(isNaN(parseInt(s)))if(Gd.has(s))n.inNumber&&Wd(n,!1);else if("-"!==s&&"+"!==s)if("E"!==s.toUpperCase()){if(Mh.test(s)){if(n.inNumber)Wd(n,!1);else{if(!Nd(n))throw new Error("parser Error");Xd(n)}--i}}else n.number+=s,n.hasExponent=!0;else{if(n.inNumber&&!Vd(n)){Wd(n,!1),--i;continue}n.number+=s,n.inNumber=!0}else{if("0"===n.number||jd(n)){n.inNumber=!0,n.number=s,Wd(n,!0);continue}n.inNumber=!0,n.number+=s}else{if(n.pointSeen||n.hasExponent){Wd(n,!1),--i;continue}n.inNumber=!0,n.pointSeen=!0,n.number+=s}return n.inNumber&&Wd(n,!1),n.inSegment&&Nd(n)&&Xd(n),n.segments}(t)}size(t,e){const i=this.bbox();let s,n;for(i.width=0===i.width?1:i.width,i.height=0===i.height?1:i.height,s=this.length-1;s>=0;s--)n=this[s][0],"M"===n||"L"===n||"T"===n?(this[s][1]=(this[s][1]-i.x)*t/i.width+i.x,this[s][2]=(this[s][2]-i.y)*e/i.height+i.y):"H"===n?this[s][1]=(this[s][1]-i.x)*t/i.width+i.x:"V"===n?this[s][1]=(this[s][1]-i.y)*e/i.height+i.y:"C"===n||"S"===n||"Q"===n?(this[s][1]=(this[s][1]-i.x)*t/i.width+i.x,this[s][2]=(this[s][2]-i.y)*e/i.height+i.y,this[s][3]=(this[s][3]-i.x)*t/i.width+i.x,this[s][4]=(this[s][4]-i.y)*e/i.height+i.y,"C"===n&&(this[s][5]=(this[s][5]-i.x)*t/i.width+i.x,this[s][6]=(this[s][6]-i.y)*e/i.height+i.y)):"A"===n&&(this[s][1]=this[s][1]*t/i.width,this[s][2]=this[s][2]*e/i.height,this[s][6]=(this[s][6]-i.x)*t/i.width+i.x,this[s][7]=(this[s][7]-i.y)*e/i.height+i.y);return this}toString(){return function(t){let e="";for(let i=0,s=t.length;i<s;i++)e+=t[i][0],null!=t[i][1]&&(e+=t[i][1],null!=t[i][2]&&(e+=" ",e+=t[i][2],null!=t[i][3]&&(e+=" ",e+=t[i][3],e+=" ",e+=t[i][4],null!=t[i][5]&&(e+=" ",e+=t[i][5],e+=" ",e+=t[i][6],null!=t[i][7]&&(e+=" ",e+=t[i][7])))));return e+" "}(this)}}const Ud=t=>{const e=typeof t;return"number"===e?Jh:"string"===e?Bh.isColor(t)?Bh:Sh.test(t)?Mh.test(t)?$d:Kh:mh.test(t)?Jh:Zd:tu.indexOf(t.constructor)>-1?t.constructor:Array.isArray(t)?Kh:"object"===e?Jd:Zd};class qd{constructor(t){this._stepper=t||new Id("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(t){return this._morphObj.morph(this._from,this._to,t,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(t,e){return t&&e},!0)}from(t){return null==t?this._from:(this._from=this._set(t),this)}stepper(t){return null==t?this._stepper:(this._stepper=t,this)}to(t){return null==t?this._to:(this._to=this._set(t),this)}type(t){return null==t?this._type:(this._type=t,this)}_set(t){this._type||this.type(Ud(t));let e=new this._type(t);return this._type===Bh&&(e=this._to?e[this._to[4]]():this._from?e[this._from[4]]():e),this._type===Jd&&(e=this._to?e.align(this._to):this._from?e.align(this._from):e),e=e.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(e.length)).map(Object).map(function(t){return t.done=!0,t}),e}}class Zd{constructor(...t){this.init(...t)}init(t){return t=Array.isArray(t)?t[0]:t,this.value=t,this}toArray(){return[this.value]}valueOf(){return this.value}}class Qd{constructor(...t){this.init(...t)}init(t){return Array.isArray(t)&&(t={scaleX:t[0],scaleY:t[1],shear:t[2],rotate:t[3],translateX:t[4],translateY:t[5],originX:t[6],originY:t[7]}),Object.assign(this,Qd.defaults,t),this}toArray(){const t=this;return[t.scaleX,t.scaleY,t.shear,t.rotate,t.translateX,t.translateY,t.originX,t.originY]}}Qd.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Kd=(t,e)=>t[0]<e[0]?-1:t[0]>e[0]?1:0;class Jd{constructor(...t){this.init(...t)}align(t){const e=this.values;for(let i=0,s=e.length;i<s;++i){if(e[i+1]===t[i+1]){if(e[i+1]===Bh&&t[i+7]!==e[i+7]){const e=t[i+7],s=new Bh(this.values.splice(i+3,5))[e]().toArray();this.values.splice(i+3,0,...s)}i+=e[i+2]+2;continue}if(!t[i+1])return this;const s=(new t[i+1]).toArray(),n=e[i+2]+3;e.splice(i,n,t[i],t[i+1],t[i+2],...s),i+=e[i+2]+2}return this}init(t){if(this.values=[],Array.isArray(t))return void(this.values=t.slice());t=t||{};const e=[];for(const i in t){const s=Ud(t[i]),n=new s(t[i]).toArray();e.push([i,s,n.length,...n])}return e.sort(Kd),this.values=e.reduce((t,e)=>t.concat(e),[]),this}toArray(){return this.values}valueOf(){const t={},e=this.values;for(;e.length;){const i=e.shift(),s=e.shift(),n=e.shift(),a=e.splice(0,n);t[i]=new s(a)}return t}}const tu=[Zd,Qd,Jd];class eu extends od{constructor(t,e=t){super(oh("path",t),e)}array(){return this._array||(this._array=new $d(this.attr("d")))}clear(){return delete this._array,this}height(t){return null==t?this.bbox().height:this.size(this.bbox().width,t)}move(t,e){return this.attr("d",this.array().move(t,e))}plot(t){return null==t?this.array():this.clear().attr("d","string"==typeof t?t:this._array=new $d(t))}size(t,e){const i=Gc(this,t,e);return this.attr("d",this.array().size(i.width,i.height))}width(t){return null==t?this.bbox().width:this.size(t,this.bbox().height)}x(t){return null==t?this.bbox().x:this.move(t,this.bbox().y)}y(t){return null==t?this.bbox().y:this.move(this.bbox().x,t)}}eu.prototype.MorphArray=$d,Nc({Container:{path:fh(function(t){return this.put(new eu).plot(t||new $d)})}}),hh(eu,"Path");var iu=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new Ed(this.attr("points")))},clear:function(){return delete this._array,this},move:function(t,e){return this.attr("points",this.array().move(t,e))},plot:function(t){return null==t?this.array():this.clear().attr("points","string"==typeof t?t:this._array=new Ed(t))},size:function(t,e){const i=Gc(this,t,e);return this.attr("points",this.array().size(i.width,i.height))}});class su extends od{constructor(t,e=t){super(oh("polygon",t),e)}}Nc({Container:{polygon:fh(function(t){return this.put(new su).plot(t||new Ed)})}}),gh(su,Md),gh(su,iu),hh(su,"Polygon");class nu extends od{constructor(t,e=t){super(oh("polyline",t),e)}}Nc({Container:{polyline:fh(function(t){return this.put(new nu).plot(t||new Ed)})}}),gh(nu,Md),gh(nu,iu),hh(nu,"Polyline");class au extends od{constructor(t,e=t){super(oh("rect",t),e)}}gh(au,{rx:ld,ry:cd}),Nc({Container:{rect:fh(function(t,e){return this.put(new au).size(t,e)})}}),hh(au,"Rect");class ru{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(t){const e=void 0!==t.next?t:{value:t,next:null,prev:null};return this._last?(e.prev=this._last,this._last.next=e,this._last=e):(this._last=e,this._first=e),e}remove(t){t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t===this._last&&(this._last=t.prev),t===this._first&&(this._first=t.next),t.prev=null,t.next=null}shift(){const t=this._first;return t?(this._first=t.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,t.value):null}}const ou={nextDraw:null,frames:new ru,timeouts:new ru,immediates:new ru,timer:()=>th.window.performance||th.window.Date,transforms:[],frame(t){const e=ou.frames.push({run:t});return null===ou.nextDraw&&(ou.nextDraw=th.window.requestAnimationFrame(ou._draw)),e},timeout(t,e){e=e||0;const i=ou.timer().now()+e,s=ou.timeouts.push({run:t,time:i});return null===ou.nextDraw&&(ou.nextDraw=th.window.requestAnimationFrame(ou._draw)),s},immediate(t){const e=ou.immediates.push(t);return null===ou.nextDraw&&(ou.nextDraw=th.window.requestAnimationFrame(ou._draw)),e},cancelFrame(t){null!=t&&ou.frames.remove(t)},clearTimeout(t){null!=t&&ou.timeouts.remove(t)},cancelImmediate(t){null!=t&&ou.immediates.remove(t)},_draw(t){let e=null;const i=ou.timeouts.last();for(;(e=ou.timeouts.shift())&&(t>=e.time?e.run():ou.timeouts.push(e),e!==i););let s=null;const n=ou.frames.last();for(;s!==n&&(s=ou.frames.shift());)s.run(t);let a=null;for(;a=ou.immediates.shift();)a();ou.nextDraw=ou.timeouts.first()||ou.frames.first()?th.window.requestAnimationFrame(ou._draw):null}},lu=function(t){const e=t.start,i=t.runner.duration();return{start:e,duration:i,end:e+i,runner:t.runner}},cu=function(){const t=th.window;return(t.performance||t.Date).now()};class hu extends qh{constructor(t=cu){super(),this._timeSource=t,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const t=this.getLastRunnerInfo(),e=t?t.runner.duration():0;return(t?t.start:this._time)+e}getEndTimeOfTimeline(){const t=this._runners.map(t=>t.start+t.runner.duration());return Math.max(0,...t)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(t){return this._runners[this._runnerIds.indexOf(t)]||null}pause(){return this._paused=!0,this._continue()}persist(t){return null==t?this._persist:(this._persist=t,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(t){const e=this.speed();if(null==t)return this.speed(-e);const i=Math.abs(e);return this.speed(t?-i:i)}schedule(t,e,i){if(null==t)return this._runners.map(lu);let s=0;const n=this.getEndTime();if(e=e||0,null==i||"last"===i||"after"===i)s=n;else if("absolute"===i||"start"===i)s=e,e=0;else if("now"===i)s=this._time;else if("relative"===i){const i=this.getRunnerInfoById(t.id);i&&(s=i.start+e,e=0)}else{if("with-last"!==i)throw new Error('Invalid value for the "when" parameter');{const t=this.getLastRunnerInfo();s=t?t.start:this._time}}t.unschedule(),t.timeline(this);const a=t.persist(),r={persist:null===a?this._persist:a,start:s+e,runner:t};return this._lastRunnerId=t.id,this._runners.push(r),this._runners.sort((t,e)=>t.start-e.start),this._runnerIds=this._runners.map(t=>t.runner.id),this.updateTime()._continue(),this}seek(t){return this.time(this._time+t)}source(t){return null==t?this._timeSource:(this._timeSource=t,this)}speed(t){return null==t?this._speed:(this._speed=t,this)}stop(){return this.time(0),this.pause()}time(t){return null==t?this._time:(this._time=t,this._continue(!0))}unschedule(t){const e=this._runnerIds.indexOf(t.id);return e<0||(this._runners.splice(e,1),this._runnerIds.splice(e,1),t.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(t=!1){return ou.cancelFrame(this._nextFrame),this._nextFrame=null,t?this._stepImmediate():(this._paused||(this._nextFrame=ou.frame(this._step)),this)}_stepFn(t=!1){const e=this._timeSource();let i=e-this._lastSourceTime;t&&(i=0);const s=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=e,t||(this._time+=s,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let t=this._runners.length;t--;){const e=this._runners[t],i=e.runner;this._time-e.start<=0&&i.reset()}let n=!1;for(let t=0,e=this._runners.length;t<e;t++){const i=this._runners[t],a=i.runner;let r=s;const o=this._time-i.start;o<=0?n=!0:(o<r&&(r=o),a.active()&&(a.step(r).done?!0!==i.persist&&a.duration()-a.time()+this._time+i.persist<this._time&&(a.unschedule(),--t,--e):n=!0))}return n&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}Nc({Element:{timeline:function(t){return null==t?(this._timeline=this._timeline||new hu,this._timeline):(this._timeline=t,this)}}});class du extends qh{constructor(t){super(),this.id=du.id++,t="function"==typeof(t=null==t?400:t)?new zd(t):t,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof t&&t,this._isDeclarative=t instanceof zd,this._stepper=this._isDeclarative?t:new Id,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new zh,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(t,e,i){let s=1,n=!1,a=0;return e=e??0,i=i||"last","object"!=typeof(t=t??400)||t instanceof Od||(e=t.delay??e,i=t.when??i,n=t.swing||n,s=t.times??s,a=t.wait??a,t=t.duration??400),{duration:t,delay:e,swing:n,times:s,wait:a,when:i}}active(t){return null==t?this.enabled:(this.enabled=t,this)}addTransform(t){return this.transforms.lmultiplyO(t),this}after(t){return this.on("finished",t)}animate(t,e,i){const s=du.sanitise(t,e,i),n=new du(s.duration);return this._timeline&&n.timeline(this._timeline),this._element&&n.element(this._element),n.loop(s).schedule(s.delay,s.when)}clearTransform(){return this.transforms=new zh,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(t=>!t.isTransform))}delay(t){return this.animate(0,t)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(t){return this.queue(null,t)}ease(t){return this._stepper=new Id(t),this}element(t){return null==t?this._element:(this._element=t,t._prepareRunner(),this)}finish(){return this.step(1/0)}loop(t,e,i){return"object"==typeof t&&(e=t.swing,i=t.wait,t=t.times),this._times=t||1/0,this._swing=e||!1,this._wait=i||0,!0===this._times&&(this._times=1/0),this}loops(t){const e=this._duration+this._wait;if(null==t){const t=Math.floor(this._time/e),i=(this._time-t*e)/this._duration;return Math.min(t+i,this._times)}const i=t%1,s=e*Math.floor(t)+this._duration*i;return this.time(s)}persist(t){return null==t?this._persist:(this._persist=t,this)}position(t){const e=this._time,i=this._duration,s=this._wait,n=this._times,a=this._swing,r=this._reverse;let o;if(null==t){const t=function(t){const e=a*Math.floor(t%(2*(s+i))/(s+i)),n=e&&!r||!e&&r,o=Math.pow(-1,n)*(t%(s+i))/i+n;return Math.max(Math.min(o,1),0)},l=n*(s+i)-s;return o=e<=0?Math.round(t(1e-5)):e<l?t(e):Math.round(t(l-1e-5)),o}const l=Math.floor(this.loops()),c=a&&l%2==0;return o=l+(c&&!r||r&&c?t:1-t),this.loops(o)}progress(t){return null==t?Math.min(1,this._time/this.duration()):this.time(t*this.duration())}queue(t,e,i,s){return this._queue.push({initialiser:t||Zh,runner:e||Zh,retarget:i,isTransform:s,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(t){return this._reverse=null==t?!this._reverse:t,this}schedule(t,e,i){if(t instanceof hu||(i=e,e=t,t=this.timeline()),!t)throw Error("Runner cannot be scheduled without timeline");return t.schedule(this,e,i),this}step(t){if(!this.enabled)return this;t=null==t?16:t,this._time+=t;const e=this.position(),i=this._lastPosition!==e&&this._time>=0;this._lastPosition=e;const s=this.duration(),n=this._lastTime<=0&&this._time>0,a=this._lastTime<s&&this._time>=s;this._lastTime=this._time,n&&this.fire("start",this);const r=this._isDeclarative;this.done=!r&&!a&&this._time>=s,this._reseted=!1;let o=!1;return(i||r)&&(this._initialise(i),this.transforms=new zh,o=this._run(r?t:e),this.fire("step",this)),this.done=this.done||o&&r,a&&this.fire("finished",this),this}time(t){if(null==t)return this._time;const e=t-this._time;return this.step(e),this}timeline(t){return void 0===t?this._timeline:(this._timeline=t,this)}unschedule(){const t=this.timeline();return t&&t.unschedule(this),this}_initialise(t){if(t||this._isDeclarative)for(let e=0,i=this._queue.length;e<i;++e){const i=this._queue[e],s=this._isDeclarative||!i.initialised&&t;t=!i.finished,s&&t&&(i.initialiser.call(this),i.initialised=!0)}}_rememberMorpher(t,e){if(this._history[t]={morpher:e,caller:this._queue[this._queue.length-1]},this._isDeclarative){const t=this.timeline();t&&t.play()}}_run(t){let e=!0;for(let i=0,s=this._queue.length;i<s;++i){const s=this._queue[i],n=s.runner.call(this,t);s.finished=s.finished||!0===n,e=e&&s.finished}return e}_tryRetarget(t,e,i){if(this._history[t]){if(!this._history[t].caller.initialised){const e=this._queue.indexOf(this._history[t].caller);return this._queue.splice(e,1),!1}this._history[t].caller.retarget?this._history[t].caller.retarget.call(this,e,i):this._history[t].morpher.to(e),this._history[t].caller.finished=!1;const s=this.timeline();return s&&s.play(),!0}return!1}}du.id=0;class uu{constructor(t=new zh,e=-1,i=!0){this.transforms=t,this.id=e,this.done=i}clearTransformsFromQueue(){}}gh([du,uu],{mergeWith(t){return new uu(t.transforms.lmultiply(this.transforms),t.id)}});const pu=(t,e)=>t.lmultiplyO(e),gu=t=>t.transforms;function fu(){const t=this._transformationRunners.runners.map(gu).reduce(pu,new zh);this.transform(t),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class mu{constructor(){this.runners=[],this.ids=[]}add(t){if(this.runners.includes(t))return;const e=t.id+1;return this.runners.push(t),this.ids.push(e),this}clearBefore(t){const e=this.ids.indexOf(t+1)||1;return this.ids.splice(0,e,0),this.runners.splice(0,e,new uu).forEach(t=>t.clearTransformsFromQueue()),this}edit(t,e){const i=this.ids.indexOf(t+1);return this.ids.splice(i,1,t+1),this.runners.splice(i,1,e),this}getByID(t){return this.runners[this.ids.indexOf(t+1)]}length(){return this.ids.length}merge(){let t=null;for(let e=0;e<this.runners.length;++e){const i=this.runners[e];if(!(t&&i.done&&t.done)||i._timeline&&i._timeline._runnerIds.includes(i.id)||t._timeline&&t._timeline._runnerIds.includes(t.id))t=i;else{this.remove(i.id);const s=i.mergeWith(t);this.edit(t.id,s),t=s,--e}}return this}remove(t){const e=this.ids.indexOf(t+1);return this.ids.splice(e,1),this.runners.splice(e,1),this}}Nc({Element:{animate(t,e,i){const s=du.sanitise(t,e,i),n=this.timeline();return new du(s.duration).loop(s).element(this).timeline(n.play()).schedule(s.delay,s.when)},delay(t,e){return this.animate(0,t,e)},_clearTransformRunnersBefore(t){this._transformationRunners.clearBefore(t.id)},_currentTransform(t){return this._transformationRunners.runners.filter(e=>e.id<=t.id).map(gu).reduce(pu,new zh)},_addRunner(t){this._transformationRunners.add(t),ou.cancelImmediate(this._frameId),this._frameId=ou.immediate(fu.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new mu).add(new uu(new zh(this))))}}}),gh(du,{attr(t,e){return this.styleAttr("attr",t,e)},css(t,e){return this.styleAttr("css",t,e)},styleAttr(t,e,i){if("string"==typeof e)return this.styleAttr(t,{[e]:i});let s=e;if(this._tryRetarget(t,s))return this;let n=new qd(this._stepper).to(s),a=Object.keys(s);return this.queue(function(){n=n.from(this.element()[t](a))},function(e){return this.element()[t](n.at(e).valueOf()),n.done()},function(e){const i=Object.keys(e),r=(o=a,i.filter(t=>!o.includes(t)));var o;if(r.length){const e=this.element()[t](r),i=new Jd(n.from()).valueOf();Object.assign(i,e),n.from(i)}const l=new Jd(n.to()).valueOf();Object.assign(l,e),n.to(l),a=i,s=e}),this._rememberMorpher(t,n),this},zoom(t,e){if(this._tryRetarget("zoom",t,e))return this;let i=new qd(this._stepper).to(new Jh(t));return this.queue(function(){i=i.from(this.element().zoom())},function(t){return this.element().zoom(i.at(t),e),i.done()},function(t,s){e=s,i.to(t)}),this._rememberMorpher("zoom",i),this},transform(t,e,i){if(e=t.relative||e,this._isDeclarative&&!e&&this._tryRetarget("transform",t))return this;const s=zh.isMatrixLike(t);i=null!=t.affine?t.affine:null!=i?i:!s;const n=new qd(this._stepper).type(i?Qd:zh);let a,r,o,l,c;return this.queue(function(){r=r||this.element(),a=a||$c(t,r),c=new zh(e?void 0:r),r._addRunner(this),e||r._clearTransformRunnersBefore(this)},function(h){e||this.clearTransform();const{x:d,y:u}=new Oh(a).transform(r._currentTransform(this));let p=new zh({...t,origin:[d,u]}),g=this._isDeclarative&&o?o:c;if(i){p=p.decompose(d,u),g=g.decompose(d,u);const t=p.rotate,e=g.rotate,i=[t-360,t,t+360],s=i.map(t=>Math.abs(t-e)),n=Math.min(...s),a=s.indexOf(n);p.rotate=i[a]}e&&(s||(p.rotate=t.rotate||0),this._isDeclarative&&l&&(g.rotate=l)),n.from(g),n.to(p);const f=n.at(h);return l=f.rotate,o=new zh(f),this.addTransform(o),r._addRunner(this),n.done()},function(e){(e.origin||"center").toString()!==(t.origin||"center").toString()&&(a=$c(e,r)),t={...e,origin:a}},!0),this._isDeclarative&&this._rememberMorpher("transform",n),this},x(t){return this._queueNumber("x",t)},y(t){return this._queueNumber("y",t)},ax(t){return this._queueNumber("ax",t)},ay(t){return this._queueNumber("ay",t)},dx(t=0){return this._queueNumberDelta("x",t)},dy(t=0){return this._queueNumberDelta("y",t)},dmove(t,e){return this.dx(t).dy(e)},_queueNumberDelta(t,e){if(e=new Jh(e),this._tryRetarget(t,e))return this;const i=new qd(this._stepper).to(e);let s=null;return this.queue(function(){s=this.element()[t](),i.from(s),i.to(s+e)},function(e){return this.element()[t](i.at(e)),i.done()},function(t){i.to(s+new Jh(t))}),this._rememberMorpher(t,i),this},_queueObject(t,e){if(this._tryRetarget(t,e))return this;const i=new qd(this._stepper).to(e);return this.queue(function(){i.from(this.element()[t]())},function(e){return this.element()[t](i.at(e)),i.done()}),this._rememberMorpher(t,i),this},_queueNumber(t,e){return this._queueObject(t,new Jh(e))},cx(t){return this._queueNumber("cx",t)},cy(t){return this._queueNumber("cy",t)},move(t,e){return this.x(t).y(e)},amove(t,e){return this.ax(t).ay(e)},center(t,e){return this.cx(t).cy(e)},size(t,e){let i;return t&&e||(i=this._element.bbox()),t||(t=i.width/i.height*e),e||(e=i.height/i.width*t),this.width(t).height(e)},width(t){return this._queueNumber("width",t)},height(t){return this._queueNumber("height",t)},plot(t,e,i,s){if(4===arguments.length)return this.plot([t,e,i,s]);if(this._tryRetarget("plot",t))return this;const n=new qd(this._stepper).type(this._element.MorphArray).to(t);return this.queue(function(){n.from(this._element.array())},function(t){return this._element.plot(n.at(t)),n.done()}),this._rememberMorpher("plot",n),this},leading(t){return this._queueNumber("leading",t)},viewbox(t,e,i,s){return this._queueObject("viewbox",new Rh(t,e,i,s))},update(t){return"object"!=typeof t?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",t.offset),this)}}),gh(du,{rx:ld,ry:cd,from:vd,to:yd}),hh(du,"Runner");class xu extends ad{constructor(t,e=t){super(oh("svg",t),e),this.namespace()}defs(){return this.isRoot()?lh(this.node.querySelector("defs"))||this.put(new rd):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof th.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:Qc,version:"1.1"}).attr("xmlns:xlink",Jc,Kc):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,Kc).attr("xmlns:svgjs",null,Kc)}root(){return this.isRoot()?this:super.root()}}Nc({Container:{nested:fh(function(){return this.put(new xu)})}}),hh(xu,"Svg",!0);let bu=class extends ad{constructor(t,e=t){super(oh("symbol",t),e)}};Nc({Container:{symbol:fh(function(){return this.put(new bu)})}}),hh(bu,"Symbol");var vu=Object.freeze({__proto__:null,amove:function(t,e){return this.ax(t).ay(e)},ax:function(t){return this.attr("x",t)},ay:function(t){return this.attr("y",t)},build:function(t){return this._build=!!t,this},center:function(t,e,i=this.bbox()){return this.cx(t,i).cy(e,i)},cx:function(t,e=this.bbox()){return null==t?e.cx:this.attr("x",this.attr("x")+t-e.cx)},cy:function(t,e=this.bbox()){return null==t?e.cy:this.attr("y",this.attr("y")+t-e.cy)},length:function(){return this.node.getComputedTextLength()},move:function(t,e,i=this.bbox()){return this.x(t,i).y(e,i)},plain:function(t){return!1===this._build&&this.clear(),this.node.appendChild(th.document.createTextNode(t)),this},x:function(t,e=this.bbox()){return null==t?e.x:this.attr("x",this.attr("x")+t-e.x)},y:function(t,e=this.bbox()){return null==t?e.y:this.attr("y",this.attr("y")+t-e.y)}});class yu extends od{constructor(t,e=t){super(oh("text",t),e),this.dom.leading=this.dom.leading??new Jh(1.3),this._rebuild=!0,this._build=!1}leading(t){return null==t?this.dom.leading:(this.dom.leading=new Jh(t),this.rebuild())}rebuild(t){if("boolean"==typeof t&&(this._rebuild=t),this._rebuild){const t=this;let e=0;const i=this.dom.leading;this.each(function(s){if(qc(this.node))return;const n=th.window.getComputedStyle(this.node).getPropertyValue("font-size"),a=i*new Jh(n);this.dom.newLined&&(this.attr("x",t.attr("x")),"\n"===this.text()?e+=a:(this.attr("dy",s?a+e:0),e=0))}),this.fire("rebuild")}return this}setData(t){return this.dom=t,this.dom.leading=new Jh(t.leading||1.3),this}writeDataToDom(){return Zc(this,this.dom,{leading:1.3}),this}text(t){if(void 0===t){const e=this.node.childNodes;let i=0;t="";for(let s=0,n=e.length;s<n;++s)"textPath"===e[s].nodeName||qc(e[s])?0===s&&(i=s+1):(s!==i&&3!==e[s].nodeType&&!0===lh(e[s]).dom.newLined&&(t+="\n"),t+=e[s].textContent);return t}if(this.clear().build(!0),"function"==typeof t)t.call(this,this);else for(let e=0,i=(t=(t+"").split("\n")).length;e<i;e++)this.newLine(t[e]);return this.build(!1).rebuild()}}gh(yu,vu),Nc({Container:{text:fh(function(t=""){return this.put(new yu).text(t)}),plain:fh(function(t=""){return this.put(new yu).plain(t)})}}),hh(yu,"Text");class wu extends od{constructor(t,e=t){super(oh("tspan",t),e),this._build=!1}dx(t){return this.attr("dx",t)}dy(t){return this.attr("dy",t)}newLine(){this.dom.newLined=!0;const t=this.parent();if(!(t instanceof yu))return this;const e=t.index(this),i=th.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=t.dom.leading*new Jh(i);return this.dy(e?s:0).attr("x",t.x())}text(t){return null==t?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof t?(this.clear().build(!0),t.call(this,this),this.build(!1)):this.plain(t),this)}}gh(wu,vu),Nc({Tspan:{tspan:fh(function(t=""){const e=new wu;return this._build||this.clear(),this.put(e).text(t)})},Text:{newLine:function(t=""){return this.tspan(t).newLine()}}}),hh(wu,"Tspan");class Au extends od{constructor(t,e=t){super(oh("circle",t),e)}radius(t){return this.attr("r",t)}rx(t){return this.attr("r",t)}ry(t){return this.rx(t)}size(t){return this.radius(new Jh(t).divide(2))}}gh(Au,{x:hd,y:dd,cx:ud,cy:pd,width:gd,height:fd}),Nc({Container:{circle:fh(function(t=0){return this.put(new Au).size(t).move(0,0)})}}),hh(Au,"Circle");class ku extends ad{constructor(t,e=t){super(oh("clipPath",t),e)}remove(){return this.targets().forEach(function(t){t.unclip()}),super.remove()}targets(){return Wh("svg [clip-path*="+this.id()+"]")}}Nc({Container:{clip:fh(function(){return this.defs().put(new ku)})},Element:{clipper(){return this.reference("clip-path")},clipWith(t){const e=t instanceof ku?t:this.parent().clip().add(t);return this.attr("clip-path","url(#"+e.id()+")")},unclip(){return this.attr("clip-path",null)}}}),hh(ku,"ClipPath");class Cu extends sd{constructor(t,e=t){super(oh("foreignObject",t),e)}}Nc({Container:{foreignObject:fh(function(t,e){return this.put(new Cu).size(t,e)})}}),hh(Cu,"ForeignObject");var _u=Object.freeze({__proto__:null,dmove:function(t,e){return this.children().forEach(i=>{let s;try{s=i.node instanceof eh().SVGSVGElement?new Rh(i.attr(["x","y","width","height"])):i.bbox()}catch(t){return}const n=new zh(i),a=n.translate(t,e).transform(n.inverse()),r=new Oh(s.x,s.y).transform(a);i.move(r.x,r.y)}),this},dx:function(t){return this.dmove(t,0)},dy:function(t){return this.dmove(0,t)},height:function(t,e=this.bbox()){return null==t?e.height:this.size(e.width,t,e)},move:function(t=0,e=0,i=this.bbox()){const s=t-i.x,n=e-i.y;return this.dmove(s,n)},size:function(t,e,i=this.bbox()){const s=Gc(this,t,e,i),n=s.width/i.width,a=s.height/i.height;return this.children().forEach(t=>{const e=new Oh(i).transform(new zh(t).inverse());t.scale(n,a,e.x,e.y)}),this},width:function(t,e=this.bbox()){return null==t?e.width:this.size(t,e.height,e)},x:function(t,e=this.bbox()){return null==t?e.x:this.move(t,e.y,e)},y:function(t,e=this.bbox()){return null==t?e.y:this.move(e.x,t,e)}});class Eu extends ad{constructor(t,e=t){super(oh("g",t),e)}}gh(Eu,_u),Nc({Container:{group:fh(function(){return this.put(new Eu)})}}),hh(Eu,"G");class Su extends ad{constructor(t,e=t){super(oh("a",t),e)}target(t){return this.attr("target",t)}to(t){return this.attr("href",t,Jc)}}gh(Su,_u),Nc({Container:{link:fh(function(t){return this.put(new Su).to(t)})},Element:{unlink(){const t=this.linker();if(!t)return this;const e=t.parent();if(!e)return this.remove();const i=e.index(t);return e.add(this,i),t.remove(),this},linkTo(t){let e=this.linker();return e||(e=new Su,this.wrap(e)),"function"==typeof t?t.call(e,e):e.to(t),this},linker(){const t=this.parent();return t&&"a"===t.node.nodeName.toLowerCase()?t:null}}}),hh(Su,"A");class Mu extends ad{constructor(t,e=t){super(oh("mask",t),e)}remove(){return this.targets().forEach(function(t){t.unmask()}),super.remove()}targets(){return Wh("svg [mask*="+this.id()+"]")}}Nc({Container:{mask:fh(function(){return this.defs().put(new Mu)})},Element:{masker(){return this.reference("mask")},maskWith(t){const e=t instanceof Mu?t:this.parent().mask().add(t);return this.attr("mask","url(#"+e.id()+")")},unmask(){return this.attr("mask",null)}}}),hh(Mu,"Mask");class Tu extends sd{constructor(t,e=t){super(oh("stop",t),e)}update(t){return("number"==typeof t||t instanceof Jh)&&(t={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=t.opacity&&this.attr("stop-opacity",t.opacity),null!=t.color&&this.attr("stop-color",t.color),null!=t.offset&&this.attr("offset",new Jh(t.offset)),this}}Nc({Gradient:{stop:function(t,e,i){return this.put(new Tu).update(t,e,i)}}}),hh(Tu,"Stop");class Lu extends sd{constructor(t,e=t){super(oh("style",t),e)}addText(t=""){return this.node.textContent+=t,this}font(t,e,i={}){return this.rule("@font-face",{fontFamily:t,src:e,...i})}rule(t,e){return this.addText(function(t,e){if(!t)return"";if(!e)return t;let i=t+"{";for(const t in e)i+=t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()})+":"+e[t]+";";return i+="}",i}(t,e))}}Nc("Dom",{style(t,e){return this.put(new Lu).rule(t,e)},fontface(t,e,i){return this.put(new Lu).font(t,e,i)}}),hh(Lu,"Style");class Pu extends yu{constructor(t,e=t){super(oh("textPath",t),e)}array(){const t=this.track();return t?t.array():null}plot(t){const e=this.track();let i=null;return e&&(i=e.plot(t)),null==t?i:this}track(){return this.reference("href")}}Nc({Container:{textPath:fh(function(t,e){return t instanceof yu||(t=this.text(t)),t.path(e)})},Text:{path:fh(function(t,e=!0){const i=new Pu;let s;if(t instanceof eu||(t=this.defs().path(t)),i.attr("href","#"+t,Jc),e)for(;s=this.node.firstChild;)i.node.appendChild(s);return this.put(i)}),textPath(){return this.findOne("textPath")}},Path:{text:fh(function(t){return t instanceof yu||(t=(new yu).addTo(this.parent()).text(t)),t.path(this)}),targets(){return Wh("svg textPath").filter(t=>(t.attr("href")||"").includes(this.id()))}}}),Pu.prototype.MorphArray=$d,hh(Pu,"TextPath");class Bu extends od{constructor(t,e=t){super(oh("use",t),e)}use(t,e){return this.attr("href",(e||"")+"#"+t,Jc)}}Nc({Container:{use:fh(function(t,e){return this.put(new Bu).use(t,e)})}}),hh(Bu,"Use");const Ou=rh;gh([xu,bu,Cd,kd,Ld],Yc("viewbox")),gh([Td,nu,su,eu],Yc("marker")),gh(yu,Yc("Text")),gh(eu,Yc("Path")),gh(rd,Yc("Defs")),gh([yu,wu],Yc("Tspan")),gh([au,xd,Ad,du],Yc("radius")),gh(qh,Yc("EventTarget")),gh(id,Yc("Dom")),gh(sd,Yc("Element")),gh(od,Yc("Shape")),gh([ad,bd],Yc("Container")),gh(Ad,Yc("Gradient")),gh(du,Yc("Runner")),Nh.extend([...new Set(Hc)]),function(t=[]){tu.push(...[].concat(t))}([Jh,Bh,Rh,zh,Kh,Ed,$d,Oh]),gh(tu,{to(t){return(new qd).type(this.constructor).from(this.toArray()).to(t)},fromArray(t){return this.init(t),this},toConsumable(){return this.toArray()},morph(t,e,i,s,n){return this.fromArray(t.map(function(t,a){return s.step(t,e[a],i,n[a],n)}))}});class Iu extends sd{constructor(t){super(oh("filter",t),t),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(t,e){return!(t=super.put(t,e)).attr("in")&&this.$autoSetIn&&t.attr("in",this.$source),t.attr("result")||t.attr("result",t.id()),t}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Wh('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class zu extends sd{constructor(t,e){super(t,e),this.result(this.id())}in(t){if(null==t){const t=this.attr("in");return this.parent()&&this.parent().find(`[result="${t}"]`)[0]||t}return this.attr("in",t)}result(t){return this.attr("result",t)}toString(){return this.result()}}const Du=t=>function(...e){for(let i=t.length;i--;)null!=e[i]&&this.attr(t[i],e[i])},Fu={blend:Du(["in","in2","mode"]),colorMatrix:Du(["type","values"]),composite:Du(["in","in2","operator"]),convolveMatrix:function(t){t=new Kh(t).toString(),this.attr({order:Math.sqrt(t.split(" ").length),kernelMatrix:t})},diffuseLighting:Du(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:Du(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:Du(["in","dx","dy","stdDeviation"]),flood:Du(["flood-color","flood-opacity"]),gaussianBlur:function(t=0,e=t){this.attr("stdDeviation",t+" "+e)},image:function(t){this.attr("href",t,Jc)},morphology:Du(["operator","radius"]),offset:Du(["dx","dy"]),specularLighting:Du(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:Du([]),turbulence:Du(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(t=>{const e=Vc(t),i=Fu[t];Iu[e+"Effect"]=class extends zu{constructor(t){super(oh("fe"+e,t),t)}update(t){return i.apply(this,t),this}},Iu.prototype[t]=fh(function(t,...i){const s=new Iu[e+"Effect"];return null==t?this.put(s):("function"==typeof t?t.call(s,s):i.unshift(t),this.put(s).update(i))})}),gh(Iu,{merge(t){const e=this.put(new Iu.MergeEffect);return"function"==typeof t?(t.call(e,e),e):((t instanceof Array?t:[...arguments]).forEach(t=>{t instanceof Iu.MergeNode?e.put(t):e.mergeNode(t)}),e)},componentTransfer(t={}){const e=this.put(new Iu.ComponentTransferEffect);if("function"==typeof t)return t.call(e,e),e;t.r||t.g||t.b||t.a||(t={r:t,g:t,b:t,a:t});for(const i in t)e.add(new(Iu["Func"+i.toUpperCase()])(t[i]));return e}}),["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(t=>{const e=Vc(t);Iu[e]=class extends zu{constructor(t){super(oh("fe"+e,t),t)}}}),["funcR","funcG","funcB","funcA"].forEach(function(t){const e=Iu[Vc(t)],i=fh(function(){return this.put(new e)});Iu.ComponentTransferEffect.prototype[t]=i}),["distantLight","pointLight","spotLight"].forEach(t=>{const e=Iu[Vc(t)],i=fh(function(){return this.put(new e)});Iu.DiffuseLightingEffect.prototype[t]=i,Iu.SpecularLightingEffect.prototype[t]=i}),gh(Iu.MergeEffect,{mergeNode(t){return this.put(new Iu.MergeNode).attr("in",t)}}),gh(rd,{filter:function(t){const e=this.put(new Iu);return"function"==typeof t&&t.call(e,e),e}}),gh(ad,{filter:function(t){return this.defs().filter(t)}}),gh(sd,{filterWith:function(t){const e=t instanceof Iu?t:this.defs().filter(t);return this.attr("filter",e)},unfilter:function(t){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const Ru={blend:function(t,e){return this.parent()&&this.parent().blend(this,t,e)},colorMatrix:function(t,e){return this.parent()&&this.parent().colorMatrix(t,e).in(this)},componentTransfer:function(t){return this.parent()&&this.parent().componentTransfer(t).in(this)},composite:function(t,e){return this.parent()&&this.parent().composite(this,t,e)},convolveMatrix:function(t){return this.parent()&&this.parent().convolveMatrix(t).in(this)},diffuseLighting:function(t,e,i,s){return this.parent()&&this.parent().diffuseLighting(t,i,s).in(this)},displacementMap:function(t,e,i,s){return this.parent()&&this.parent().displacementMap(this,t,e,i,s)},dropShadow:function(t,e,i){return this.parent()&&this.parent().dropShadow(this,t,e,i).in(this)},flood:function(t,e){return this.parent()&&this.parent().flood(t,e)},gaussianBlur:function(t,e){return this.parent()&&this.parent().gaussianBlur(t,e).in(this)},image:function(t){return this.parent()&&this.parent().image(t)},merge:function(t){return t=t instanceof Array?t:[...t],this.parent()&&this.parent().merge(this,...t)},morphology:function(t,e){return this.parent()&&this.parent().morphology(t,e).in(this)},offset:function(t,e){return this.parent()&&this.parent().offset(t,e).in(this)},specularLighting:function(t,e,i,s,n){return this.parent()&&this.parent().specularLighting(t,i,s,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(t,e,i,s,n){return this.parent()&&this.parent().turbulence(t,e,i,s,n).in(this)}};gh(zu,Ru),gh(Iu.MergeEffect,{in:function(t){return t instanceof Iu.MergeNode?this.add(t,0):this.add((new Iu.MergeNode).in(t),0),this}}),gh([Iu.CompositeEffect,Iu.BlendEffect,Iu.DisplacementMapEffect],{in2:function(t){if(null==t){const t=this.attr("in2");return this.parent()&&this.parent().find(`[result="${t}"]`)[0]||t}return this.attr("in2",t)}}),Iu.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var Hu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"getDefaultFilter",value:function(t,e){var i=this.w;t.unfilter(!0),(new Iu).size("120%","180%","-5%","-40%"),i.config.chart.dropShadow.enabled&&this.dropShadow(t,i.config.chart.dropShadow,e)}},{key:"applyFilter",value:function(t,e,i){var s,n=this,a=this.w;if(t.unfilter(!0),"none"!==i){var r,o,l=a.config.chart.dropShadow,c="lighten"===i?2:.3;t.filterWith(function(t){t.colorMatrix({type:"matrix",values:"\n ".concat(c," 0 0 0 0\n 0 ").concat(c," 0 0 0\n 0 0 ").concat(c," 0 0\n 0 0 0 1 0\n "),in:"SourceGraphic",result:"brightness"}),l.enabled&&n.addShadow(t,e,l,"brightness")}),l.noUserSpaceOnUse||null===(r=t.filterer())||void 0===r||null===(o=r.node)||void 0===o||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(s=t.filterer())||void 0===s?void 0:s.node)}else this.getDefaultFilter(t,e)}},{key:"addShadow",value:function(t,e,i,s){var n,a=this.w,r=i.blur,o=i.top,l=i.left,c=i.color,h=i.opacity;if(c=Array.isArray(c)?c[e]:c,(null===(n=a.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===a.config.chart.dropShadow.enabledOnSeries.indexOf(e))return t;t.offset({in:s,dx:l,dy:o,result:"offset"}),t.gaussianBlur({in:"offset",stdDeviation:r,result:"blur"}),t.flood({"flood-color":c,"flood-opacity":h,result:"flood"}),t.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),t.merge(["shadow",s])}},{key:"dropShadow",value:function(t,e){var i,s,n,a,r,o=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=this.w;return t.unfilter(!0),Dc.isMsEdge()&&"radialBar"===c.config.chart.type||(null===(i=c.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.length)>0&&-1===(null===(n=c.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.indexOf(l))||(t.filterWith(function(t){o.addShadow(t,l,e,"SourceGraphic")}),e.noUserSpaceOnUse||null===(a=t.filterer())||void 0===a||null===(r=a.node)||void 0===r||r.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(s=t.filterer())||void 0===s?void 0:s.node)),t}},{key:"setSelectionFilter",value:function(t,e,i){var s=this.w;if(void 0!==s.globals.selectedDataPoints[e]&&s.globals.selectedDataPoints[e].indexOf(i)>-1){t.node.setAttribute("selected",!0);var n=s.config.states.active.filter;"none"!==n&&this.applyFilter(t,e,n.type)}}},{key:"_scaleFilterSize",value:function(t){t&&function(e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),t}(),Nu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"roundPathCorners",value:function(t,e){function i(t,e,i){var n=e.x-t.x,a=e.y-t.y,r=Math.sqrt(n*n+a*a);return s(t,e,Math.min(1,i/r))}function s(t,e,i){return{x:t.x+(e.x-t.x)*i,y:t.y+(e.y-t.y)*i}}function n(t,e){t.length>2&&(t[t.length-2]=e.x,t[t.length-1]=e.y)}function a(t){return{x:parseFloat(t[t.length-2]),y:parseFloat(t[t.length-1])}}t.indexOf("NaN")>-1&&(t="");var r=t.split(/[,\s]/).reduce(function(t,e){var i=e.match(/^([a-zA-Z])(.+)/);return i?(t.push(i[1]),t.push(i[2])):t.push(e),t},[]).reduce(function(t,e){return parseFloat(e)==e&&t.length?t[t.length-1].push(e):t.push([e]),t},[]),o=[];if(r.length>1){var l=a(r[0]),c=null;"Z"==r[r.length-1][0]&&r[0].length>2&&(c=["L",l.x,l.y],r[r.length-1]=c),o.push(r[0]);for(var h=1;h<r.length;h++){var d=o[o.length-1],u=r[h],p=u==c?r[1]:r[h+1];if(p&&d&&d.length>2&&"L"==u[0]&&p.length>2&&"L"==p[0]){var g,f,m=a(d),x=a(u),b=a(p);g=i(x,m,e),f=i(x,b,e),n(u,g),u.origPoint=x,o.push(u);var v=s(g,x,.5),y=s(x,f,.5),w=["C",v.x,v.y,y.x,y.y,f.x,f.y];w.origPoint=x,o.push(w)}else o.push(u)}if(c){var A=a(o[o.length-1]);o.push(["Z"]),n(o[0],A)}}else o=r;return o.reduce(function(t,e){return t+e.join(" ")+" "},"")}},{key:"drawLine",value:function(t,e,i,s){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:t,y1:e,x2:i,y2:s,stroke:n,"stroke-dasharray":a,"stroke-width":r,"stroke-linecap":o})}},{key:"drawRect",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,h=this.w.globals.dom.Paper.rect();return h.attr({x:t,y:e,width:i>0?i:0,height:s>0?s:0,rx:n,ry:n,opacity:r,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),h.node.setAttribute("fill",a),h}},{key:"drawPolygon",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(t).attr({fill:s,stroke:e,"stroke-width":i})}},{key:"drawCircle",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t<0&&(t=0);var i=this.w.globals.dom.Paper.circle(2*t);return null!==e&&i.attr(e),i}},{key:"drawPath",value:function(t){var e=t.d,i=void 0===e?"":e,s=t.stroke,n=void 0===s?"#a8a8a8":s,a=t.strokeWidth,r=void 0===a?1:a,o=t.fill,l=t.fillOpacity,c=void 0===l?1:l,h=t.strokeOpacity,d=void 0===h?1:h,u=t.classes,p=t.strokeLinecap,g=void 0===p?null:p,f=t.strokeDashArray,m=void 0===f?0:f,x=this.w;return null===g&&(g=x.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(x.globals.gridHeight)),x.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:n,"stroke-opacity":d,"stroke-linecap":g,"stroke-width":r,"stroke-dasharray":m,class:u})}},{key:"group",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w.globals.dom.Paper.group();return null!==t&&e.attr(t),e}},{key:"move",value:function(t,e){return["M",t,e].join(" ")}},{key:"line",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=null;return null===i?s=[" L",t,e].join(" "):"H"===i?s=[" H",t].join(" "):"V"===i&&(s=[" V",e].join(" ")),s}},{key:"curve",value:function(t,e,i,s,n,a){return["C",t,e,i,s,n,a].join(" ")}},{key:"quadraticCurve",value:function(t,e,i,s){return["Q",t,e,i,s].join(" ")}},{key:"arc",value:function(t,e,i,s,n,a,r){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,t,e,i,s,n,a,r].join(" ")}},{key:"renderPaths",value:function(t){var e,i=t.j,s=t.realIndex,n=t.pathFrom,a=t.pathTo,r=t.stroke,o=t.strokeWidth,l=t.strokeLinecap,c=t.fill,h=t.animationDelay,d=t.initialSpeed,u=t.dataChangeSpeed,p=t.className,g=t.chartType,f=t.shouldClipToGrid,m=void 0===f||f,x=t.bindEventsOnPaths,b=void 0===x||x,v=t.drawShadow,y=void 0===v||v,w=this.w,A=new Hu(this.ctx),k=new Fc(this.ctx),C=this.w.config.chart.animations.enabled,_=C&&this.w.config.chart.animations.dynamicAnimation.enabled;if(n&&n.startsWith("M 0 0")&&a){var E=a.match(/^M\s+[\d.-]+\s+[\d.-]+/);E&&(n=n.replace(/^M\s+0\s+0/,E[0]))}var S=!!(C&&!w.globals.resized||_&&w.globals.dataChanged&&w.globals.shouldAnimate);S?e=n:(e=a,w.globals.animationEnded=!0);var M,T=w.config.stroke.dashArray;M=Array.isArray(T)?T[s]:w.config.stroke.dashArray;var L=this.drawPath({d:e,stroke:r,strokeWidth:o,fill:c,fillOpacity:1,classes:p,strokeLinecap:l,strokeDashArray:M});L.attr("index",s),m&&("bar"===g&&!w.globals.isHorizontal||w.globals.comboCharts?L.attr({"clip-path":"url(#gridRectBarMask".concat(w.globals.cuid,")")}):L.attr({"clip-path":"url(#gridRectMask".concat(w.globals.cuid,")")})),w.config.chart.dropShadow.enabled&&y&&A.dropShadow(L,w.config.chart.dropShadow,s),b&&(L.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,L)),L.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,L)),L.node.addEventListener("mousedown",this.pathMouseDown.bind(this,L))),L.attr({pathTo:a,pathFrom:n});var P={el:L,j:i,realIndex:s,pathFrom:n,pathTo:a,fill:c,strokeWidth:o,delay:h};return!C||w.globals.resized||w.globals.dataChanged?!w.globals.resized&&w.globals.dataChanged||k.showDelayedElements():k.animatePathsGradually(Tc(Tc({},P),{},{speed:d})),w.globals.dataChanged&&_&&S&&k.animatePathsGradually(Tc(Tc({},P),{},{speed:u})),L}},{key:"drawPattern",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(e,i,function(a){"horizontalLines"===t?a.line(0,0,i,0).stroke({color:s,width:n+1}):"verticalLines"===t?a.line(0,0,0,e).stroke({color:s,width:n+1}):"slantedLines"===t?a.line(0,0,e,i).stroke({color:s,width:n}):"squares"===t?a.rect(e,i).fill("none").stroke({color:s,width:n}):"circles"===t&&a.circle(e).fill("none").stroke({color:s,width:n})})}},{key:"drawGradient",value:function(t,e,i,s,n){var a,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,h=this.w;e.length<9&&0===e.indexOf("#")&&(e=Dc.hexToRgba(e,s)),i.length<9&&0===i.indexOf("#")&&(i=Dc.hexToRgba(i,n));var d=0,u=1,p=1,g=null;null!==o&&(d=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,p=void 0!==o[2]?o[2]/100:1,g=void 0!==o[3]?o[3]/100:null);var f=!("donut"!==h.config.chart.type&&"pie"!==h.config.chart.type&&"polarArea"!==h.config.chart.type&&"bubble"!==h.config.chart.type);if(a=l&&0!==l.length?h.globals.dom.Paper.gradient(f?"radial":"linear",function(t){(Array.isArray(l[c])?l[c]:l).forEach(function(e){t.stop(e.offset/100,e.color,e.opacity)})}):h.globals.dom.Paper.gradient(f?"radial":"linear",function(t){t.stop(d,e,s),t.stop(u,i,n),t.stop(p,i,n),null!==g&&t.stop(g,e,s)}),f){var m=h.globals.gridWidth/2,x=h.globals.gridHeight/2;"bubble"!==h.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:x,r}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===t?a.from(0,0).to(0,1):"diagonal"===t?a.from(0,0).to(1,1):"horizontal"===t?a.from(0,1).to(1,1):"diagonal2"===t&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(t){var e=t.text,i=t.maxWidth,s=t.fontSize,n=t.fontFamily,a=this.getTextRects(e,s,n),r=a.width/e.length,o=Math.floor(i/r);return i<a.width?e.slice(0,o-3)+"...":e}},{key:"drawText",value:function(t){var e=this,i=t.x,s=t.y,n=t.text,a=t.textAnchor,r=t.fontSize,o=t.fontFamily,l=t.fontWeight,c=t.foreColor,h=t.opacity,d=t.maxWidth,u=t.cssClass,p=void 0===u?"":u,g=t.isPlainText,f=void 0===g||g,m=t.dominantBaseline,x=void 0===m?"auto":m,b=this.w;void 0===n&&(n="");var v=n;a||(a="start"),c&&c.length||(c=b.config.chart.foreColor),o=o||b.config.chart.fontFamily,l=l||"regular";var y,w={maxWidth:d,fontSize:r=r||"11px",fontFamily:o};return Array.isArray(n)?y=b.globals.dom.Paper.text(function(t){for(var i=0;i<n.length;i++)v=n[i],d&&(v=e.getTextBasedOnMaxWidth(Tc({text:n[i]},w))),0===i?t.tspan(v):t.tspan(v).newLine()}):(d&&(v=this.getTextBasedOnMaxWidth(Tc({text:n},w))),y=f?b.globals.dom.Paper.plain(n):b.globals.dom.Paper.text(function(t){return t.tspan(v)})),y.attr({x:i,y:s,"text-anchor":a,"dominant-baseline":x,"font-size":r,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+p}),y.node.style.fontFamily=o,y.node.style.opacity=h,y}},{key:"getMarkerPath",value:function(t,e,i,s){var n="";switch(i){case"cross":n="M ".concat(t-(s/=1.4)," ").concat(e-s," L ").concat(t+s," ").concat(e+s," M ").concat(t-s," ").concat(e+s," L ").concat(t+s," ").concat(e-s);break;case"plus":n="M ".concat(t-(s/=1.12)," ").concat(e," L ").concat(t+s," ").concat(e," M ").concat(t," ").concat(e-s," L ").concat(t," ").concat(e+s);break;case"star":case"sparkle":var a=5;s*=1.15,"sparkle"===i&&(s/=1.1,a=4);for(var r=Math.PI/a,o=0;o<=2*a;o++){var l=o*r,c=o%2==0?s:s/2;n+=(0===o?"M":"L")+(t+c*Math.sin(l))+","+(e-c*Math.cos(l))}n+="Z";break;case"triangle":n="M ".concat(t," ").concat(e-s," \n L ").concat(t+s," ").concat(e+s," \n L ").concat(t-s," ").concat(e+s," \n Z");break;case"square":case"rect":n="M ".concat(t-(s/=1.125)," ").concat(e-s," \n L ").concat(t+s," ").concat(e-s," \n L ").concat(t+s," ").concat(e+s," \n L ").concat(t-s," ").concat(e+s," \n Z");break;case"diamond":s*=1.05,n="M ".concat(t," ").concat(e-s," \n L ").concat(t+s," ").concat(e," \n L ").concat(t," ").concat(e+s," \n L ").concat(t-s," ").concat(e," \n Z");break;case"line":n="M ".concat(t-(s/=1.1)," ").concat(e," \n L ").concat(t+s," ").concat(e);break;default:s*=2,n="M ".concat(t,", ").concat(e," \n m -").concat(s/2,", 0 \n a ").concat(s/2,",").concat(s/2," 0 1,0 ").concat(s,",0 \n a ").concat(s/2,",").concat(s/2," 0 1,0 -").concat(s,",0")}return n}},{key:"drawMarkerShape",value:function(t,e,i,s,n){var a=this.drawPath({d:this.getMarkerPath(t,e,i,s,n),stroke:n.pointStrokeColor,strokeDashArray:n.pointStrokeDashArray,strokeWidth:n.pointStrokeWidth,fill:n.pointFillColor,fillOpacity:n.pointFillOpacity,strokeOpacity:n.pointStrokeOpacity});return a.attr({cx:t,cy:e,shape:n.shape,class:n.class?n.class:""}),a}},{key:"drawMarker",value:function(t,e,i){t=t||0;var s=i.pSize||0;return Dc.isNumber(e)||(s=0,e=0),this.drawMarkerShape(t,e,null==i?void 0:i.shape,s,Tc(Tc({},i),"line"===i.shape||"plus"===i.shape||"cross"===i.shape?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(t,e){var i=this.w,s=new Hu(this.ctx),n=parseInt(t.node.getAttribute("index"),10),a=parseInt(t.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(e,this.ctx,{seriesIndex:n,dataPointIndex:a,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[e,this.ctx,{seriesIndex:n,dataPointIndex:a,w:i}]),("none"===i.config.states.active.filter.type||"true"!==t.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var r=i.config.states.hover.filter;s.applyFilter(t,n,r.type)}}},{key:"pathMouseLeave",value:function(t,e){var i=this.w,s=new Hu(this.ctx),n=parseInt(t.node.getAttribute("index"),10),a=parseInt(t.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(e,this.ctx,{seriesIndex:n,dataPointIndex:a,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[e,this.ctx,{seriesIndex:n,dataPointIndex:a,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===t.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&s.getDefaultFilter(t,n)}},{key:"pathMouseDown",value:function(t,e){var i=this.w,s=new Hu(this.ctx),n=parseInt(t.node.getAttribute("index"),10),a=parseInt(t.node.getAttribute("j"),10),r="false";if("true"===t.node.getAttribute("selected")){if(t.node.setAttribute("selected","false"),i.globals.selectedDataPoints[n].indexOf(a)>-1){var o=i.globals.selectedDataPoints[n].indexOf(a);i.globals.selectedDataPoints[n].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),c=i.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),h=function(t){Array.prototype.forEach.call(t,function(t){t.node.setAttribute("selected","false"),s.getDefaultFilter(t,n)})};h(l),h(c)}t.node.setAttribute("selected","true"),r="true",void 0===i.globals.selectedDataPoints[n]&&(i.globals.selectedDataPoints[n]=[]),i.globals.selectedDataPoints[n].push(a)}if("true"===r){var d=i.config.states.active.filter;if("none"!==d)s.applyFilter(t,n,d.type);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;s.applyFilter(t,n,u.type)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?s.getDefaultFilter(t,n):(u=i.config.states.hover.filter,s.applyFilter(t,n,u.type)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:a,w:i}),e&&this.ctx.events.fireEvent("dataPointSelection",[e,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:n,dataPointIndex:a,w:i}])}},{key:"rotateAroundCenter",value:function(t){var e={};return t&&"function"==typeof t.getBBox&&(e=t.getBBox()),{x:e.x+e.width/2,y:e.y+e.height/2}}},{key:"getTextRects",value:function(t,e,i,s){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,r=this.drawText({x:-200,y:-200,text:t,textAnchor:"start",fontSize:e,fontFamily:i,foreColor:"#fff",opacity:0});s&&r.attr("transform",s),a.globals.dom.Paper.add(r);var o=r.bbox();return n||(o=r.node.getBoundingClientRect()),r.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(t,e,i){if("function"==typeof t.getComputedTextLength&&(t.textContent=e,e.length>0&&t.getComputedTextLength()>=i/1.1)){for(var s=e.length-3;s>0;s-=3)if(t.getSubStringLength(0,s)<=i/1.1)return void(t.textContent=e.substring(0,s)+"...");t.textContent="."}}}],[{key:"setAttrs",value:function(t,e){for(var i in e)e.hasOwnProperty(i)&&t.setAttribute(i,e[i])}}]),t}(),Yu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"getStackedSeriesTotals",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=this.w,i=[];if(0===e.globals.series.length)return i;for(var s=0;s<e.globals.series[e.globals.maxValsInArrayIndex].length;s++){for(var n=0,a=0;a<e.globals.series.length;a++)void 0!==e.globals.series[a][s]&&-1===t.indexOf(a)&&(n+=e.globals.series[a][s]);i.push(n)}return i}},{key:"getSeriesTotalByIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===t?this.w.config.series.reduce(function(t,e){return t+e},0):this.w.globals.series[t].reduce(function(t,e){return t+e},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var t=this,e=this.w,i=[];return e.globals.seriesGroups.forEach(function(s){var n=[];e.config.series.forEach(function(t,i){s.indexOf(e.globals.seriesNames[i])>-1&&n.push(i)});var a=e.globals.series.map(function(t,e){return-1===n.indexOf(e)?e:-1}).filter(function(t){return-1!==t});i.push(t.getStackedSeriesTotals(a))}),i}},{key:"setSeriesYAxisMappings",value:function(){var t=this.w.globals,e=this.w.config,i=[],s=[],n=[],a=t.series.length>e.yaxis.length||e.yaxis.some(function(t){return Array.isArray(t.seriesName)});e.series.forEach(function(t,e){n.push(e),s.push(null)}),e.yaxis.forEach(function(t,e){i[e]=[]});var r=[];e.yaxis.forEach(function(t,s){var o=!1;if(t.seriesName){var l=[];Array.isArray(t.seriesName)?l=t.seriesName:l.push(t.seriesName),l.forEach(function(t){e.series.forEach(function(e,r){if(e.name===t){var l=r;s===r||a?!a||n.indexOf(r)>-1?i[s].push([s,r]):console.warn("Series '"+e.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(i[r].push([r,s]),l=s),o=!0,-1!==(l=n.indexOf(l))&&n.splice(l,1)}})})}o||r.push(s)}),i=i.map(function(t,e){var i=[];return t.forEach(function(t){s[t[1]]=t[0],i.push(t[1])}),i});for(var o=e.yaxis.length-1,l=0;l<r.length&&(o=r[l],i[o]=[],n);l++){var c=n[0];n.shift(),i[o].push(c),s[c]=o}n.forEach(function(t){i[o].push(t),s[t]=o}),t.seriesYAxisMap=i.map(function(t){return t}),t.seriesYAxisReverseMap=s.map(function(t){return t}),t.seriesYAxisMap.forEach(function(t,i){t.forEach(function(t){e.series[t]&&void 0===e.series[t].group&&(e.series[t].group="apexcharts-axis-".concat(i.toString()))})})}},{key:"isSeriesNull",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===t?this.w.config.series.filter(function(t){return null!==t}):this.w.config.series[t].data.filter(function(t){return null!==t})).length}},{key:"seriesHaveSameValues",value:function(t){return this.w.globals.series[t].every(function(t,e,i){return t===i[0]})}},{key:"getCategoryLabels",value:function(t){var e=this.w,i=t.slice();return e.config.xaxis.convertedCatToNumeric&&(i=t.map(function(t,i){return e.config.xaxis.labels.formatter(t-e.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var t=this.w;t.globals.maxValsInArrayIndex=t.globals.series.map(function(t){return t.length}).indexOf(Math.max.apply(Math,t.globals.series.map(function(t){return t.length})))}},{key:"getLargestMarkerSize",value:function(){var t=this.w,e=0;return t.globals.markers.size.forEach(function(t){e=Math.max(e,t)}),t.config.markers.discrete&&t.config.markers.discrete.length&&t.config.markers.discrete.forEach(function(t){e=Math.max(e,t.size)}),e>0&&(t.config.markers.hover.size>0?e=t.config.markers.hover.size:e+=t.config.markers.hover.sizeOffset),t.globals.markers.largestSize=e,e}},{key:"getSeriesTotals",value:function(){var t=this.w;t.globals.seriesTotals=t.globals.series.map(function(t,e){var i=0;if(Array.isArray(t))for(var s=0;s<t.length;s++)i+=t[s];else i+=t;return i})}},{key:"getSeriesTotalsXRange",value:function(t,e){var i=this.w;return i.globals.series.map(function(s,n){for(var a=0,r=0;r<s.length;r++)i.globals.seriesX[n][r]>t&&i.globals.seriesX[n][r]<e&&(a+=s[r]);return a})}},{key:"getPercentSeries",value:function(){var t=this.w;t.globals.seriesPercent=t.globals.series.map(function(e,i){var s=[];if(Array.isArray(e))for(var n=0;n<e.length;n++){var a=t.globals.stackedSeriesTotals[n],r=0;a&&(r=100*e[n]/a),s.push(r)}else{var o=100*e/t.globals.seriesTotals.reduce(function(t,e){return t+e},0);s.push(o)}return s})}},{key:"getCalculatedRatios",value:function(){var t,e,i,s=this,n=this.w,a=n.globals,r=[],o=0,l=[],c=.1,h=0;if(a.yRange=[],a.isMultipleYAxis)for(var d=0;d<a.minYArr.length;d++)a.yRange.push(Math.abs(a.minYArr[d]-a.maxYArr[d])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var u=0;u<a.yRange.length;u++)r.push(a.yRange[u]/a.gridHeight);if(e=a.xRange/a.gridWidth,t=a.yRange/a.gridWidth,i=a.xRange/a.gridHeight,(o=a.zRange/a.gridHeight*16)||(o=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),n.globals.seriesYAxisReverseMap.length>0){var p=function(t,e){var i=n.config.yaxis[n.globals.seriesYAxisReverseMap[e]],a=t<0?-1:1;return t=Math.abs(t),i.logarithmic&&(t=s.getBaseLog(i.logBase,t)),-a*t/r[e]};if(a.isMultipleYAxis){l=[];for(var g=0;g<r.length;g++)l.push(p(a.minYArr[g],g))}else(l=[]).push(p(a.minY,0)),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(c=-a.minY/t,h=a.minX/e)}else(l=[]).push(0),c=0,h=0;return{yRatio:r,invertedYRatio:t,zRatio:o,xRatio:e,invertedXRatio:i,baseLineInvertedY:c,baseLineY:l,baseLineX:h}}},{key:"getLogSeries",value:function(t){var e=this,i=this.w;return i.globals.seriesLog=t.map(function(t,s){var n=i.globals.seriesYAxisReverseMap[s];return i.config.yaxis[n]&&i.config.yaxis[n].logarithmic?t.map(function(t){return null===t?null:e.getLogVal(i.config.yaxis[n].logBase,t,s)}):t}),i.globals.invalidLogScale?t:i.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(t,e){if(null===t)return null;var i=this.w,s=i.globals.seriesYAxisReverseMap[e];return i.config.yaxis[s]&&i.config.yaxis[s].logarithmic?this.getLogVal(i.config.yaxis[s].logBase,t,e):t}},{key:"getBaseLog",value:function(t,e){return Math.log(e)/Math.log(t)}},{key:"getLogVal",value:function(t,e,i){if(e<=0)return 0;var s=this.w,n=0===s.globals.minYArr[i]?-1:this.getBaseLog(t,s.globals.minYArr[i]),a=(0===s.globals.maxYArr[i]?0:this.getBaseLog(t,s.globals.maxYArr[i]))-n;return e<1?e/a:(this.getBaseLog(t,e)-n)/a}},{key:"getLogYRatios",value:function(t){var e=this,i=this.w,s=this.w.globals;return s.yLogRatio=t.slice(),s.logYRange=s.yRange.map(function(t,n){var a=i.globals.seriesYAxisReverseMap[n];if(i.config.yaxis[a]&&e.w.config.yaxis[a].logarithmic){var r,o=-Number.MAX_VALUE,l=Number.MIN_VALUE;return s.seriesLog.forEach(function(t,e){t.forEach(function(t){i.config.yaxis[e]&&i.config.yaxis[e].logarithmic&&(o=Math.max(t,o),l=Math.min(t,l))})}),r=Math.pow(s.yRange[n],Math.abs(l-o)/s.yRange[n]),s.yLogRatio[n]=r/s.gridHeight,r}}),s.invalidLogScale?t.slice():s.yLogRatio}},{key:"drawSeriesByGroup",value:function(t,e,i,s){var n=this.w,a=[];return t.series.length>0&&e.forEach(function(e){var r=[],o=[];t.i.forEach(function(i,s){n.config.series[i].group===e&&(r.push(t.series[s]),o.push(i))}),r.length>0&&a.push(s.draw(r,i,o))}),a}}],[{key:"checkComboSeries",value:function(t,e){var i=!1,s=0,n=0;return void 0===e&&(e="line"),t.length&&void 0!==t[0].type&&t.forEach(function(t){"bar"!==t.type&&"column"!==t.type&&"candlestick"!==t.type&&"boxPlot"!==t.type||s++,void 0!==t.type&&t.type!==e&&n++}),n>0&&(i=!0),{comboBarCount:s,comboCharts:i}}},{key:"extendArrayProps",value:function(t,e,i){var s,n,a,r,o,l;return null!==(s=e)&&void 0!==s&&s.yaxis&&(e=t.extendYAxis(e,i)),null!==(n=e)&&void 0!==n&&n.annotations&&(e.annotations.yaxis&&(e=t.extendYAxisAnnotations(e)),null!==(a=e)&&void 0!==a&&null!==(r=a.annotations)&&void 0!==r&&r.xaxis&&(e=t.extendXAxisAnnotations(e)),null!==(o=e)&&void 0!==o&&null!==(l=o.annotations)&&void 0!==l&&l.points&&(e=t.extendPointAnnotations(e))),e}}]),t}(),Wu=function(){function t(e){vc(this,t),this.w=e.w,this.annoCtx=e}return wc(t,[{key:"setOrientations",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===t.label.orientation){var s=null!==e?e:0,n=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(s,"']"));if(null!==n){var a=n.getBoundingClientRect();n.setAttribute("x",parseFloat(n.getAttribute("x"))-a.height+4);var r="top"===t.label.position?a.width:-a.width;n.setAttribute("y",parseFloat(n.getAttribute("y"))+r);var o=this.annoCtx.graphics.rotateAroundCenter(n),l=o.x,c=o.y;n.setAttribute("transform","rotate(-90 ".concat(l," ").concat(c,")"))}}}},{key:"addBackgroundToAnno",value:function(t,e){var i=this.w;if(!t||!e.label.text||!String(e.label.text).trim())return null;var s=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),n=t.getBoundingClientRect(),a=e.label.style.padding,r=a.left,o=a.right,l=a.top,c=a.bottom;if("vertical"===e.label.orientation){var h=[r,o,l,c];l=h[0],c=h[1],r=h[2],o=h[3]}var d=n.left-s.left-r,u=n.top-s.top-l,p=this.annoCtx.graphics.drawRect(d-i.globals.barPadForNumericAxis,u,n.width+r+o,n.height+l+c,e.label.borderRadius,e.label.style.background,1,e.label.borderWidth,e.label.borderColor,0);return e.id&&p.node.classList.add(e.id),p}},{key:"annotationsBackground",value:function(){var t=this,e=this.w,i=function(i,s,n){var a=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(s,"']"));if(a){var r=a.parentNode,o=t.addBackgroundToAnno(a,i);o&&(r.insertBefore(o.node,a),i.label.mouseEnter&&o.node.addEventListener("mouseenter",i.label.mouseEnter.bind(t,i)),i.label.mouseLeave&&o.node.addEventListener("mouseleave",i.label.mouseLeave.bind(t,i)),i.label.click&&o.node.addEventListener("click",i.label.click.bind(t,i)))}};e.config.annotations.xaxis.forEach(function(t,e){return i(t,e,"xaxis")}),e.config.annotations.yaxis.forEach(function(t,e){return i(t,e,"yaxis")}),e.config.annotations.points.forEach(function(t,e){return i(t,e,"point")})}},{key:"getY1Y2",value:function(t,e){var i,s=this.w,n="y1"===t?e.y:e.y2,a=!1;if(this.annoCtx.invertAxis){var r=s.config.xaxis.convertedCatToNumeric?s.globals.categoryLabels:s.globals.labels,o=r.indexOf(n),l=s.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(o+1,")"));i=l?parseFloat(l.getAttribute("y")):(s.globals.gridHeight/r.length-1)*(o+1)-s.globals.barHeight,void 0!==e.seriesIndex&&s.globals.barHeight&&(i-=s.globals.barHeight/2*(s.globals.series.length-1)-s.globals.barHeight*e.seriesIndex)}else{var c,h=s.globals.seriesYAxisMap[e.yAxisIndex][0],d=s.config.yaxis[e.yAxisIndex].logarithmic?new Yu(this.annoCtx.ctx).getLogVal(s.config.yaxis[e.yAxisIndex].logBase,n,h)/s.globals.yLogRatio[h]:(n-s.globals.minYArr[h])/(s.globals.yRange[h]/s.globals.gridHeight);i=s.globals.gridHeight-Math.min(Math.max(d,0),s.globals.gridHeight),a=d>s.globals.gridHeight||d<0,!e.marker||void 0!==e.y&&null!==e.y||(i=0),null!==(c=s.config.yaxis[e.yAxisIndex])&&void 0!==c&&c.reversed&&(i=d)}return"string"==typeof n&&n.includes("px")&&(i=parseFloat(n)),{yP:i,clipped:a}}},{key:"getX1X2",value:function(t,e){var i=this.w,s="x1"===t?e.x:e.x2,n=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,a=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,r=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=!1,l=this.annoCtx.inversedReversedAxis?(a-s)/(r/i.globals.gridWidth):(s-n)/(r/i.globals.gridWidth);return"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||i.config.chart.sparkline.enabled||(l=this.getStringX(s)),"string"==typeof s&&s.includes("px")&&(l=parseFloat(s)),null==s&&e.marker&&(l=i.globals.gridWidth),void 0!==e.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=i.globals.barWidth/2*(i.globals.series.length-1)-i.globals.barWidth*e.seriesIndex),"number"!=typeof l&&(l=0,o=!0),parseFloat(l.toFixed(10))>parseFloat(i.globals.gridWidth.toFixed(10))?(l=i.globals.gridWidth,o=!0):l<0&&(l=0,o=!0),{x:l,clipped:o}}},{key:"getStringX",value:function(t){var e=this.w,i=t;e.config.xaxis.convertedCatToNumeric&&e.globals.categoryLabels.length&&(t=e.globals.categoryLabels.indexOf(t)+1);var s=e.globals.labels.map(function(t){return Array.isArray(t)?t.join(" "):t}).indexOf(t),n=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(s+1,")"));return n&&(i=parseFloat(n.getAttribute("x"))),i}}]),t}(),Xu=function(){function t(e){vc(this,t),this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Wu(this.annoCtx)}return wc(t,[{key:"addXaxisAnnotation",value:function(t,e,i){var s,n=this.w,a=this.helpers.getX1X2("x1",t),r=a.x,o=a.clipped,l=!0,c=t.label.text,h=t.strokeDashArray;if(Dc.isNumber(r)){if(null===t.x2||void 0===t.x2){if(!o){var d=this.annoCtx.graphics.drawLine(r+t.offsetX,0+t.offsetY,r+t.offsetX,n.globals.gridHeight+t.offsetY,t.borderColor,h,t.borderWidth);e.appendChild(d.node),t.id&&d.node.classList.add(t.id)}}else{var u=this.helpers.getX1X2("x2",t);if(s=u.x,l=u.clipped,s<r){var p=r;r=s,s=p}var g=this.annoCtx.graphics.drawRect(r+t.offsetX,0+t.offsetY,s-r,n.globals.gridHeight+t.offsetY,0,t.fillColor,t.opacity,1,t.borderColor,h);g.node.classList.add("apexcharts-annotation-rect"),g.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(g.node),t.id&&g.node.classList.add(t.id)}if(!o||!l){var f=this.annoCtx.graphics.getTextRects(c,parseFloat(t.label.style.fontSize)),m="top"===t.label.position?4:"center"===t.label.position?n.globals.gridHeight/2+("vertical"===t.label.orientation?f.width/2:0):n.globals.gridHeight,x=this.annoCtx.graphics.drawText({x:r+t.label.offsetX,y:m+t.label.offsetY-("vertical"===t.label.orientation?"top"===t.label.position?f.width/2-12:-f.width/2:0),text:c,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});x.attr({rel:i}),e.appendChild(x.node),this.annoCtx.helpers.setOrientations(t,i)}}}},{key:"drawXAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map(function(e,s){t.addXaxisAnnotation(e,i.node,s)}),i}}]),t}(),ju=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return wc(t,[{key:"isValidDate",value:function(t){return"number"!=typeof t&&!isNaN(this.parseDate(t))}},{key:"getTimeStamp",value:function(t){return Date.parse(t)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toISOString().substr(0,25)).getTime():new Date(t).getTime():t}},{key:"getDate",value:function(t){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(t).toUTCString()):new Date(t)}},{key:"parseDate",value:function(t){var e=Date.parse(t);if(!isNaN(e))return this.getTimeStamp(t);var i=Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(t){return Date.parse(t.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(t,e){var i=this.w.globals.locale,s=this.w.config.xaxis.labels.datetimeUTC,n=["\0"].concat(Bc(i.months)),a=[""].concat(Bc(i.shortMonths)),r=[""].concat(Bc(i.days)),o=[""].concat(Bc(i.shortDays));function l(t,e){var i=t+"";for(e=e||2;i.length<e;)i="0"+i;return i}var c=s?t.getUTCFullYear():t.getFullYear();e=(e=(e=e.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var h=(s?t.getUTCMonth():t.getMonth())+1;e=(e=(e=(e=e.replace(/(^|[^\\])MMMM+/g,"$1"+n[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+l(h))).replace(/(^|[^\\])M/g,"$1"+h);var d=s?t.getUTCDate():t.getDate();e=(e=(e=(e=e.replace(/(^|[^\\])dddd+/g,"$1"+r[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var u=s?t.getUTCHours():t.getHours(),p=u>12?u-12:0===u?12:u;e=(e=(e=(e=e.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(p))).replace(/(^|[^\\])h/g,"$1"+p);var g=s?t.getUTCMinutes():t.getMinutes();e=(e=e.replace(/(^|[^\\])mm+/g,"$1"+l(g))).replace(/(^|[^\\])m/g,"$1"+g);var f=s?t.getUTCSeconds():t.getSeconds();e=(e=e.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var m=s?t.getUTCMilliseconds():t.getMilliseconds();e=e.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),e=e.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var x=u<12?"AM":"PM";e=(e=(e=e.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+x)).replace(/(^|[^\\])T/g,"$1"+x.charAt(0));var b=x.toLowerCase();e=(e=e.replace(/(^|[^\\])tt+/g,"$1"+b)).replace(/(^|[^\\])t/g,"$1"+b.charAt(0));var v=-t.getTimezoneOffset(),y=s||!v?"Z":v>0?"+":"-";if(!s){var w=(v=Math.abs(v))%60;y+=l(Math.floor(v/60))+":"+l(w)}e=e.replace(/(^|[^\\])K/g,"$1"+y);var A=(s?t.getUTCDay():t.getDay())+1;return(e=(e=(e=(e=e.replace(new RegExp(r[0],"g"),r[A])).replace(new RegExp(o[0],"g"),o[A])).replace(new RegExp(n[0],"g"),n[h])).replace(new RegExp(a[0],"g"),a[h])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(t,e,i){var s=this.w;void 0!==s.config.xaxis.min&&(t=s.config.xaxis.min),void 0!==s.config.xaxis.max&&(e=s.config.xaxis.max);var n=this.getDate(t),a=this.getDate(e),r=this.formatDate(n,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(r[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(r[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(r[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(r[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(r[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(r[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(r[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(t){return t%4==0&&t%100!=0||t%400==0}},{key:"calculcateLastDaysOfMonth",value:function(t,e,i){return this.determineDaysOfMonths(t,e)-i}},{key:"determineDaysOfYear",value:function(t){var e=365;return this.isLeapYear(t)&&(e=366),e}},{key:"determineRemainingDaysOfYear",value:function(t,e,i){var s=this.daysCntOfYear[e]+i;return e>1&&this.isLeapYear()&&s++,s}},{key:"determineDaysOfMonths",value:function(t,e){var i=30;switch(t=Dc.monthMod(t),!0){case this.months30.indexOf(t)>-1:2===t&&(i=this.isLeapYear(e)?29:28);break;case this.months31.indexOf(t)>-1:default:i=31}return i}}]),t}(),Vu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.tooltipKeyFormat="dd MMM"}return wc(t,[{key:"xLabelFormat",value:function(t,e,i,s){var n=this.w;if("datetime"===n.config.xaxis.type&&void 0===n.config.xaxis.labels.formatter&&void 0===n.config.tooltip.x.formatter){var a=new ju(this.ctx);return a.formatDate(a.getDate(e),n.config.tooltip.x.format)}return t(e,i,s)}},{key:"defaultGeneralFormatter",value:function(t){return Array.isArray(t)?t.map(function(t){return t}):t}},{key:"defaultYFormatter",value:function(t,e,i){var s=this.w;if(Dc.isNumber(t))if(0!==s.globals.yValueDecimal)t=t.toFixed(void 0!==e.decimalsInFloat?e.decimalsInFloat:s.globals.yValueDecimal);else{var n=t.toFixed(0);t=t==n?n:t.toFixed(1)}return t}},{key:"setLabelFormatters",value:function(){var t=this,e=this.w;return e.globals.xaxisTooltipFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttKeyFormatter=function(e){return t.defaultGeneralFormatter(e)},e.globals.ttZFormatter=function(t){return t},e.globals.legendFormatter=function(e){return t.defaultGeneralFormatter(e)},void 0!==e.config.xaxis.labels.formatter?e.globals.xLabelFormatter=e.config.xaxis.labels.formatter:e.globals.xLabelFormatter=function(t){if(Dc.isNumber(t)){if(!e.config.xaxis.convertedCatToNumeric&&"numeric"===e.config.xaxis.type){if(Dc.isNumber(e.config.xaxis.decimalsInFloat))return t.toFixed(e.config.xaxis.decimalsInFloat);var i=e.globals.maxX-e.globals.minX;return i>0&&i<100?t.toFixed(1):t.toFixed(0)}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?t.toFixed(1):t.toFixed(0)}return t},"function"==typeof e.config.tooltip.x.formatter?e.globals.ttKeyFormatter=e.config.tooltip.x.formatter:e.globals.ttKeyFormatter=e.globals.xLabelFormatter,"function"==typeof e.config.xaxis.tooltip.formatter&&(e.globals.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||void 0!==e.config.tooltip.y.formatter)&&(e.globals.ttVal=e.config.tooltip.y),void 0!==e.config.tooltip.z.formatter&&(e.globals.ttZFormatter=e.config.tooltip.z.formatter),void 0!==e.config.legend.formatter&&(e.globals.legendFormatter=e.config.legend.formatter),e.config.yaxis.forEach(function(i,s){void 0!==i.labels.formatter?e.globals.yLabelFormatters[s]=i.labels.formatter:e.globals.yLabelFormatters[s]=function(n){return e.globals.xyCharts?Array.isArray(n)?n.map(function(e){return t.defaultYFormatter(e,i,s)}):t.defaultYFormatter(n,i,s):n}}),e.globals}},{key:"heatmapLabelFormatters",value:function(){var t=this.w;if("heatmap"===t.config.chart.type){t.globals.yAxisScale[0].result=t.globals.seriesNames.slice();var e=t.globals.seriesNames.reduce(function(t,e){return t.length>e.length?t:e},0);t.globals.yAxisScale[0].niceMax=e,t.globals.yAxisScale[0].niceMin=e}}}]),t}(),Gu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"getLabel",value:function(t,e,i,s){var n,a,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,h=void 0===t[s]?"":t[s],d=h,u=c.globals.xLabelFormatter,p=c.config.xaxis.labels.formatter,g=!1,f=new Vu(this.ctx),m=h;l&&(d=f.xLabelFormat(u,h,m,{i:s,dateFormatter:new ju(this.ctx).formatDate,w:c}),void 0!==p&&(d=p(h,t[s],{i:s,dateFormatter:new ju(this.ctx).formatDate,w:c}))),e.length>0?(n=e[s].unit,a=null,e.forEach(function(t){"month"===t.unit?a="year":"day"===t.unit?a="month":"hour"===t.unit?a="day":"minute"===t.unit&&(a="hour")}),g=a===n,i=e[s].position,d=e[s].value):"datetime"===c.config.xaxis.type&&void 0===p&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var x,b=new Nu(this.ctx);x=c.globals.rotateXLabels&&l?b.getTextRects(d,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):b.getTextRects(d,parseInt(o,10));var v=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||r.indexOf(d)>=0&&v)&&(d=""),{x:i,text:d,textRect:x,isBold:g}}},{key:"checkLabelBasedOnTickamount",value:function(t,e,i){var s=this.w,n=s.config.xaxis.tickAmount;return"dataPoints"===n&&(n=Math.round(s.globals.gridWidth/120)),n>i||t%Math.round(i/(n+1))==0||(e.text=""),e}},{key:"checkForOverflowingLabels",value:function(t,e,i,s,n){var a=this.w;if(0===t&&a.globals.skipFirstTimelinelabel&&(e.text=""),t===i-1&&a.globals.skipLastTimelinelabel&&(e.text=""),a.config.xaxis.labels.hideOverlappingLabels&&s.length>0){var r=n[n.length-1];e.x<r.textRect.width/(a.globals.rotateXLabels?Math.abs(a.config.xaxis.labels.rotate)/12:1.01)+r.x&&(e.text="")}return e}},{key:"checkForReversedLabels",value:function(t,e){var i=this.w;return i.config.yaxis[t]&&i.config.yaxis[t].reversed&&e.reverse(),e}},{key:"yAxisAllSeriesCollapsed",value:function(t){var e=this.w.globals;return!e.seriesYAxisMap[t].some(function(t){return-1===e.collapsedSeriesIndices.indexOf(t)})}},{key:"translateYAxisIndex",value:function(t){var e=this.w,i=e.globals,s=e.config.yaxis;return i.series.length>s.length||s.some(function(t){return Array.isArray(t.seriesName)})?t:i.seriesYAxisReverseMap[t]}},{key:"isYAxisHidden",value:function(t){var e=this.w,i=e.config.yaxis[t];if(!i.show||this.yAxisAllSeriesCollapsed(t))return!0;if(!i.showForNullSeries){var s=e.globals.seriesYAxisMap[t],n=new Yu(this.ctx);return s.every(function(t){return n.isSeriesNull(t)})}return!1}},{key:"getYAxisForeColor",value:function(t,e){var i=this.w;return Array.isArray(t)&&i.globals.yAxisScale[e]&&this.ctx.theme.pushExtraColors(t,i.globals.yAxisScale[e].result.length,!1),t}},{key:"drawYAxisTicks",value:function(t,e,i,s,n,a,r){var o=this.w,l=new Nu(this.ctx),c=o.globals.translateY+o.config.yaxis[n].labels.offsetY;if(o.globals.isBarHorizontal?c=0:"heatmap"===o.config.chart.type&&(c+=a/2),s.show&&e>0){!0===o.config.yaxis[n].opposite&&(t+=s.width);for(var h=e;h>=0;h--){var d=l.drawLine(t+i.offsetX-s.width+s.offsetX,c+s.offsetY,t+i.offsetX+s.offsetX,c+s.offsetY,s.color);r.add(d),c+=a}}}}]),t}(),$u=function(){function t(e){vc(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new Wu(this.annoCtx),this.axesUtils=new Gu(this.annoCtx)}return wc(t,[{key:"addYaxisAnnotation",value:function(t,e,i){var s,n=this.w,a=t.strokeDashArray,r=this.helpers.getY1Y2("y1",t),o=r.yP,l=r.clipped,c=!0,h=!1,d=t.label.text;if(null===t.y2||void 0===t.y2){if(!l){h=!0;var u=this.annoCtx.graphics.drawLine(0+t.offsetX,o+t.offsetY,this._getYAxisAnnotationWidth(t),o+t.offsetY,t.borderColor,a,t.borderWidth);e.appendChild(u.node),t.id&&u.node.classList.add(t.id)}}else{if(s=(r=this.helpers.getY1Y2("y2",t)).yP,c=r.clipped,s>o){var p=o;o=s,s=p}if(!l||!c){h=!0;var g=this.annoCtx.graphics.drawRect(0+t.offsetX,s+t.offsetY,this._getYAxisAnnotationWidth(t),o-s,0,t.fillColor,t.opacity,1,t.borderColor,a);g.node.classList.add("apexcharts-annotation-rect"),g.attr("clip-path","url(#gridRectMask".concat(n.globals.cuid,")")),e.appendChild(g.node),t.id&&g.node.classList.add(t.id)}}if(h){var f="right"===t.label.position?n.globals.gridWidth:"center"===t.label.position?n.globals.gridWidth/2:0,m=this.annoCtx.graphics.drawText({x:f+t.label.offsetX,y:(null!=s?s:o)+t.label.offsetY-3,text:d,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});m.attr({rel:i}),e.appendChild(m.node)}}},{key:"_getYAxisAnnotationWidth",value:function(t){var e=this.w;return e.globals.gridWidth,(t.width.indexOf("%")>-1?e.globals.gridWidth*parseInt(t.width,10)/100:parseInt(t.width,10))+t.offsetX}},{key:"drawYAxisAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.forEach(function(e,s){e.yAxisIndex=t.axesUtils.translateYAxisIndex(e.yAxisIndex),t.axesUtils.isYAxisHidden(e.yAxisIndex)&&t.axesUtils.yAxisAllSeriesCollapsed(e.yAxisIndex)||t.addYaxisAnnotation(e,i.node,s)}),i}}]),t}(),Uu=function(){function t(e){vc(this,t),this.w=e.w,this.annoCtx=e,this.helpers=new Wu(this.annoCtx)}return wc(t,[{key:"addPointAnnotation",value:function(t,e,i){if(!(this.w.globals.collapsedSeriesIndices.indexOf(t.seriesIndex)>-1)){var s=this.helpers.getX1X2("x1",t),n=s.x,a=s.clipped,r=(s=this.helpers.getY1Y2("y1",t)).yP,o=s.clipped;if(Dc.isNumber(n)&&!o&&!a){var l={pSize:t.marker.size,pointStrokeWidth:t.marker.strokeWidth,pointFillColor:t.marker.fillColor,pointStrokeColor:t.marker.strokeColor,shape:t.marker.shape,pRadius:t.marker.radius,class:"apexcharts-point-annotation-marker ".concat(t.marker.cssClass," ").concat(t.id?t.id:"")},c=this.annoCtx.graphics.drawMarker(n+t.marker.offsetX,r+t.marker.offsetY,l);e.appendChild(c.node);var h=t.label.text?t.label.text:"",d=this.annoCtx.graphics.drawText({x:n+t.label.offsetX,y:r+t.label.offsetY-t.marker.size-parseFloat(t.label.style.fontSize)/1.6,text:h,textAnchor:t.label.textAnchor,fontSize:t.label.style.fontSize,fontFamily:t.label.style.fontFamily,fontWeight:t.label.style.fontWeight,foreColor:t.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(t.label.style.cssClass," ").concat(t.id?t.id:"")});if(d.attr({rel:i}),e.appendChild(d.node),t.customSVG.SVG){var u=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+t.customSVG.cssClass});u.attr({transform:"translate(".concat(n+t.customSVG.offsetX,", ").concat(r+t.customSVG.offsetY,")")}),u.node.innerHTML=t.customSVG.SVG,e.appendChild(u.node)}if(t.image.path){var p=t.image.width?t.image.width:20,g=t.image.height?t.image.height:20;c=this.annoCtx.addImage({x:n+t.image.offsetX-p/2,y:r+t.image.offsetY-g/2,width:p,height:g,path:t.image.path,appendTo:".apexcharts-point-annotations"})}t.mouseEnter&&c.node.addEventListener("mouseenter",t.mouseEnter.bind(this,t)),t.mouseLeave&&c.node.addEventListener("mouseleave",t.mouseLeave.bind(this,t)),t.click&&c.node.addEventListener("click",t.click.bind(this,t))}}}},{key:"drawPointAnnotations",value:function(){var t=this,e=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map(function(e,s){t.addPointAnnotation(e,i.node,s)}),i}}]),t}(),qu={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Zu=function(){function t(){vc(this,t),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return wc(t,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[qu],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(t){return t}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(t){return t+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)/t.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(t){return t},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(t){return t}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(t){return t}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(t){return t.globals.seriesTotals.reduce(function(t,e){return t+e},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(t){return null!==t?t:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(t){return t?t+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),t}(),Qu=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.graphics=new Nu(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Wu(this),this.xAxisAnnotations=new Xu(this),this.yAxisAnnotations=new $u(this),this.pointsAnnotations=new Uu(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return wc(t,[{key:"drawAxesAnnotations",value:function(){var t=this.w;if(t.globals.axisCharts&&t.globals.dataPoints){for(var e=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),s=this.pointsAnnotations.drawPointAnnotations(),n=t.config.chart.animations.enabled,a=[e,i,s],r=[i.node,e.node,s.node],o=0;o<3;o++)t.globals.dom.elGraphical.add(a[o]),!n||t.globals.resized||t.globals.dataChanged||"scatter"!==t.config.chart.type&&"bubble"!==t.config.chart.type&&t.globals.dataPoints>1&&r[o].classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:r[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var t=this;this.w.config.annotations.images.map(function(e,i){t.addImage(e,i)})}},{key:"drawTextAnnos",value:function(){var t=this;this.w.config.annotations.texts.map(function(e,i){t.addText(e,i)})}},{key:"addXaxisAnnotation",value:function(t,e,i){this.xAxisAnnotations.addXaxisAnnotation(t,e,i)}},{key:"addYaxisAnnotation",value:function(t,e,i){this.yAxisAnnotations.addYaxisAnnotation(t,e,i)}},{key:"addPointAnnotation",value:function(t,e,i){this.pointsAnnotations.addPointAnnotation(t,e,i)}},{key:"addText",value:function(t,e){var i=t.x,s=t.y,n=t.text,a=t.textAnchor,r=t.foreColor,o=t.fontSize,l=t.fontFamily,c=t.fontWeight,h=t.cssClass,d=t.backgroundColor,u=t.borderWidth,p=t.strokeDashArray,g=t.borderRadius,f=t.borderColor,m=t.appendTo,x=void 0===m?".apexcharts-svg":m,b=t.paddingLeft,v=void 0===b?4:b,y=t.paddingRight,w=void 0===y?4:y,A=t.paddingBottom,k=void 0===A?2:A,C=t.paddingTop,_=void 0===C?2:C,E=this.w,S=this.graphics.drawText({x:i,y:s,text:n,textAnchor:a||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||E.config.chart.fontFamily,foreColor:r||E.config.chart.foreColor,cssClass:h}),M=E.globals.dom.baseEl.querySelector(x);M&&M.appendChild(S.node);var T=S.bbox();if(n){var L=this.graphics.drawRect(T.x-v,T.y-_,T.width+v+w,T.height+k+_,g,d||"transparent",1,u,f,p);M.insertBefore(L.node,S.node)}}},{key:"addImage",value:function(t,e){var i=this.w,s=t.path,n=t.x,a=void 0===n?0:n,r=t.y,o=void 0===r?0:r,l=t.width,c=void 0===l?20:l,h=t.height,d=void 0===h?20:h,u=t.appendTo,p=void 0===u?".apexcharts-svg":u,g=i.globals.dom.Paper.image(s);g.size(c,d).move(a,o);var f=i.globals.dom.baseEl.querySelector(p);return f&&f.appendChild(g.node),g}},{key:"addXaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(t,e,i){return this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(t,e,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:t,pushToMemory:e,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(t){var e=t.params,i=t.pushToMemory,s=t.context,n=t.type,a=t.contextMethod,r=s,o=r.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations")),c=l.childNodes.length+1,h=new Zu,d=Object.assign({},"xaxis"===n?h.xAxisAnnotation:"yaxis"===n?h.yAxisAnnotation:h.pointAnnotation),u=Dc.extend(d,e);switch(n){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var p=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(n,"-annotations .apexcharts-").concat(n,"-annotation-label[rel='").concat(c,"']")),g=this.helpers.addBackgroundToAnno(p,u);return g&&l.insertBefore(g.node,p),i&&o.globals.memory.methodsToExec.push({context:r,id:u.id?u.id:Dc.randomId(),method:a,label:"addAnnotation",params:e}),s}},{key:"clearAnnotations",value:function(t){for(var e=t.w,i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),s=e.globals.memory.methodsToExec.length-1;s>=0;s--)"addText"!==e.globals.memory.methodsToExec[s].label&&"addAnnotation"!==e.globals.memory.methodsToExec[s].label||e.globals.memory.methodsToExec.splice(s,1);i=Dc.listToArray(i),Array.prototype.forEach.call(i,function(t){for(;t.firstChild;)t.removeChild(t.firstChild)})}},{key:"removeAnnotation",value:function(t,e){var i=t.w,s=i.globals.dom.baseEl.querySelectorAll(".".concat(e));s&&(i.globals.memory.methodsToExec.map(function(t,s){t.id===e&&i.globals.memory.methodsToExec.splice(s,1)}),Object.keys(i.config.annotations).forEach(function(t){var s=i.config.annotations[t];Array.isArray(s)&&(i.config.annotations[t]=s.filter(function(t){return t.id!==e}))}),Array.prototype.forEach.call(s,function(t){t.parentElement.removeChild(t)}))}}]),t}(),Ku=function(t){var e,i=t.isTimeline,s=t.ctx,n=t.seriesIndex,a=t.dataPointIndex,r=t.y1,o=t.y2,l=t.w,c=l.globals.seriesRangeStart[n][a],h=l.globals.seriesRangeEnd[n][a],d=l.globals.labels[a],u=l.config.series[n].name?l.config.series[n].name:"",p=l.globals.ttKeyFormatter,g=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:n,dataPointIndex:a,start:c,end:h};"function"==typeof g&&(u=g(u,f)),null!==(e=l.config.series[n].data[a])&&void 0!==e&&e.x&&(d=l.config.series[n].data[a].x),i||"datetime"===l.config.xaxis.type&&(d=new Vu(s).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new ju(s).formatDate,w:l})),"function"==typeof p&&(d=p(d,f)),Number.isFinite(r)&&Number.isFinite(o)&&(c=r,h=o);var m="",x="",b=l.globals.colors[n];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var v=new ju(s);m=v.formatDate(v.getDate(c),l.config.tooltip.x.format),x=v.formatDate(v.getDate(h),l.config.tooltip.x.format)}else m=c,x=h;else m=l.config.tooltip.x.formatter(c),x=l.config.tooltip.x.formatter(h);return{start:c,end:h,startVal:m,endVal:x,ylabel:d,color:b,seriesName:u}},Ju=function(t){var e=t.color,i=t.seriesName,s=t.ylabel,n=t.start,a=t.end,r=t.seriesIndex,o=t.dataPointIndex,l=t.ctx.tooltip.tooltipLabels.getFormatters(r);n=l.yLbFormatter(n),a=l.yLbFormatter(a);var c=l.yLbFormatter(t.w.globals.series[r][o]),h='<span class="value start-value">\n '.concat(n,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(a,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(i||"")+'</span></div><div> <span class="category">'+s+": </span> "+(t.w.globals.comboCharts?"rangeArea"===t.w.config.series[r].type||"rangeBar"===t.w.config.series[r].type?h:"<span>".concat(c,"</span>"):h)+" </div></div>"},tp=function(){function t(e){vc(this,t),this.opts=e}return wc(t,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(t){return this.hideYAxis(),Dc.extend(t,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(t,e){var i=e.w.config.series[e.seriesIndex].name;return null!==t?i+": "+t:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),Tc(Tc({},this.bar()),{},{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var t=this;return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var t=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(e){var i=e.seriesIndex,s=e.dataPointIndex,n=e.w;return t._getBoxTooltip(n,i,s,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(t,e){e.ctx;var i=e.seriesIndex,s=e.dataPointIndex,n=e.w,a=function(){var t=n.globals.seriesRangeStart[i][s];return n.globals.seriesRangeEnd[i][s]-t};return n.globals.comboCharts?"rangeBar"===n.config.series[i].type||"rangeArea"===n.config.series[i].type?a():t:a()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(t){return t.w.config.plotOptions&&t.w.config.plotOptions.bar&&t.w.config.plotOptions.bar.horizontal?function(t){var e=Ku(Tc(Tc({},t),{},{isTimeline:!0})),i=e.color,s=e.seriesName,n=e.ylabel,a=e.startVal,r=e.endVal;return Ju(Tc(Tc({},t),{},{color:i,seriesName:s,ylabel:n,start:a,end:r}))}(t):function(t){var e=Ku(t),i=e.color,s=e.seriesName,n=e.ylabel,a=e.start,r=e.end;return Ju(Tc(Tc({},t),{},{color:i,seriesName:s,ylabel:n,start:a,end:r}))}(t)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(t){var e,i;return null!==(e=t.plotOptions.bar)&&void 0!==e&&e.barHeight||(t.plotOptions.bar.barHeight=2),null!==(i=t.plotOptions.bar)&&void 0!==i&&i.columnWidth||(t.plotOptions.bar.columnWidth=2),t}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(t){return function(t){var e=Ku(t),i=e.color,s=e.seriesName,n=e.ylabel,a=e.start,r=e.end;return Ju(Tc(Tc({},t),{},{color:i,seriesName:s,ylabel:n,start:a,end:r}))}(t)}}}}},{key:"brush",value:function(t){return Dc.extend(t,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(t){t.dataLabels=t.dataLabels||{},t.dataLabels.formatter=t.dataLabels.formatter||void 0;var e=t.dataLabels.formatter;return t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}),"bar"===t.chart.type&&(t.dataLabels.formatter=e||function(t){return"number"==typeof t&&t?t.toFixed(0)+"%":t}),t}},{key:"stackedBars",value:function(){var t=this.bar();return Tc(Tc({},t),{},{plotOptions:Tc(Tc({},t.plotOptions),{},{bar:Tc(Tc({},t.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(t){return t.xaxis.convertedCatToNumeric=!0,t}},{key:"convertCatToNumericXaxis",value:function(t,e,i){t.xaxis.type="numeric",t.xaxis.labels=t.xaxis.labels||{},t.xaxis.labels.formatter=t.xaxis.labels.formatter||function(t){return Dc.isNumber(t)?Math.floor(t):t};var s=t.xaxis.labels.formatter,n=t.xaxis.categories&&t.xaxis.categories.length?t.xaxis.categories:t.labels;return i&&i.length&&(n=i.map(function(t){return Array.isArray(t)?t:String(t)})),n&&n.length&&(t.xaxis.labels.formatter=function(t){return Dc.isNumber(t)?s(n[Math.floor(t)-1]):s(t)}),t.xaxis.categories=[],t.labels=[],t.xaxis.tickAmount=t.xaxis.tickAmount||"dataPoints",t}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(t){return t.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(t){return t},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(t,e,i,s,n){var a=t.globals.seriesCandleO[e][i],r=t.globals.seriesCandleH[e][i],o=t.globals.seriesCandleM[e][i],l=t.globals.seriesCandleL[e][i],c=t.globals.seriesCandleC[e][i];return t.config.series[e].type&&t.config.series[e].type!==n?'<div class="apexcharts-custom-tooltip">\n '.concat(t.config.series[e].name?t.config.series[e].name:"series-"+(e+1),": <strong>").concat(t.globals.series[e][i],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(t.config.chart.type,'">')+"<div>".concat(s[0],': <span class="value">')+a+"</span></div>"+"<div>".concat(s[1],': <span class="value">')+r+"</span></div>"+(o?"<div>".concat(s[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(s[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(s[4],': <span class="value">')+c+"</span></div></div>"}}]),t}(),ep=function(){function t(e){vc(this,t),this.opts=e}return wc(t,[{key:"init",value:function(t){var e=t.responsiveOverride,i=this.opts,s=new Zu,n=new tp(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var a=s.init(),r={};if(i&&"object"===Ic(i)){var o,l,c,h,d,u,p,g,f,m,x={};x=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?n[i.chart.type]():n.line(),null!==(o=i.plotOptions)&&void 0!==o&&null!==(l=o.bar)&&void 0!==l&&l.isFunnel&&(x=n.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(x=n.stackedBars()),null!==(c=i.chart.brush)&&void 0!==c&&c.enabled&&(x=n.brush(x)),null!==(h=i.plotOptions)&&void 0!==h&&null!==(d=h.line)&&void 0!==d&&d.isSlopeChart&&(x=n.slope()),i.chart.stacked&&"100%"===i.chart.stackType&&(i=n.stacked100(i)),null!==(u=i.plotOptions)&&void 0!==u&&null!==(p=u.bar)&&void 0!==p&&p.isDumbbell&&(i=n.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},e||(i.xaxis.convertedCatToNumeric=!1),(null!==(g=(i=this.checkForCatToNumericXAxis(this.chartType,x,i)).chart.sparkline)&&void 0!==g&&g.enabled||null!==(f=window.Apex.chart)&&void 0!==f&&null!==(m=f.sparkline)&&void 0!==m&&m.enabled)&&(x=n.sparkline(x)),r=Dc.extend(a,x)}var b=Dc.extend(r,window.Apex);return a=Dc.extend(b,i),this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(t,e,i){var s,n,a=new tp(i),r=("bar"===t||"boxPlot"===t)&&(null===(s=i.plotOptions)||void 0===s||null===(n=s.bar)||void 0===n?void 0:n.horizontal),o="pie"===t||"polarArea"===t||"donut"===t||"radar"===t||"radialBar"===t||"heatmap"===t,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:e.xaxis&&e.xaxis.tickPlacement;return r||o||!l||"between"===c||(i=a.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(t,e){var i=new Zu;(void 0===t.yaxis||!t.yaxis||Array.isArray(t.yaxis)&&0===t.yaxis.length)&&(t.yaxis={}),t.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(t.yaxis=Dc.extend(t.yaxis,window.Apex.yaxis)),t.yaxis.constructor!==Array?t.yaxis=[Dc.extend(i.yAxis,t.yaxis)]:t.yaxis=Dc.extendArray(t.yaxis,i.yAxis);var s=!1;t.yaxis.forEach(function(t){t.logarithmic&&(s=!0)});var n=t.series;return e&&!n&&(n=e.config.series),s&&n.length!==t.yaxis.length&&n.length&&(t.yaxis=n.map(function(e,s){if(e.name||(n[s].name="series-".concat(s+1)),t.yaxis[s])return t.yaxis[s].seriesName=n[s].name,t.yaxis[s];var a=Dc.extend(i.yAxis,t.yaxis[0]);return a.show=!1,a})),s&&n.length>1&&n.length!==t.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),t}},{key:"extendAnnotations",value:function(t){return void 0===t.annotations&&(t.annotations={},t.annotations.yaxis=[],t.annotations.xaxis=[],t.annotations.points=[]),t=this.extendYAxisAnnotations(t),t=this.extendXAxisAnnotations(t),this.extendPointAnnotations(t)}},{key:"extendYAxisAnnotations",value:function(t){var e=new Zu;return t.annotations.yaxis=Dc.extendArray(void 0!==t.annotations.yaxis?t.annotations.yaxis:[],e.yAxisAnnotation),t}},{key:"extendXAxisAnnotations",value:function(t){var e=new Zu;return t.annotations.xaxis=Dc.extendArray(void 0!==t.annotations.xaxis?t.annotations.xaxis:[],e.xAxisAnnotation),t}},{key:"extendPointAnnotations",value:function(t){var e=new Zu;return t.annotations.points=Dc.extendArray(void 0!==t.annotations.points?t.annotations.points:[],e.pointAnnotation),t}},{key:"checkForDarkTheme",value:function(t){t.theme&&"dark"===t.theme.mode&&(t.tooltip||(t.tooltip={}),"light"!==t.tooltip.theme&&(t.tooltip.theme="dark"),t.chart.foreColor||(t.chart.foreColor="#f6f7f8"),t.theme.palette||(t.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(t){var e=t;if(e.tooltip.shared&&e.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),t}(),ip=function(){function t(){vc(this,t)}return wc(t,[{key:"initGlobalVars",value:function(t){t.series=[],t.seriesCandleO=[],t.seriesCandleH=[],t.seriesCandleM=[],t.seriesCandleL=[],t.seriesCandleC=[],t.seriesRangeStart=[],t.seriesRangeEnd=[],t.seriesRange=[],t.seriesPercent=[],t.seriesGoals=[],t.seriesX=[],t.seriesZ=[],t.seriesNames=[],t.seriesTotals=[],t.seriesLog=[],t.seriesColors=[],t.stackedSeriesTotals=[],t.seriesXvalues=[],t.seriesYvalues=[],t.labels=[],t.hasXaxisGroups=!1,t.groups=[],t.barGroups=[],t.lineGroups=[],t.areaGroups=[],t.hasSeriesGroups=!1,t.seriesGroups=[],t.categoryLabels=[],t.timescaleLabels=[],t.noLabelsProvided=!1,t.resizeTimer=null,t.selectionResizeTimer=null,t.lastWheelExecution=0,t.delayedElements=[],t.pointsArray=[],t.dataLabelsRects=[],t.isXNumeric=!1,t.skipLastTimelinelabel=!1,t.skipFirstTimelinelabel=!1,t.isDataXYZ=!1,t.isMultiLineX=!1,t.isMultipleYAxis=!1,t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE,t.minYArr=[],t.maxYArr=[],t.maxX=-Number.MAX_VALUE,t.minX=Number.MAX_VALUE,t.initialMaxX=-Number.MAX_VALUE,t.initialMinX=Number.MAX_VALUE,t.maxDate=0,t.minDate=Number.MAX_VALUE,t.minZ=Number.MAX_VALUE,t.maxZ=-Number.MAX_VALUE,t.minXDiff=Number.MAX_VALUE,t.yAxisScale=[],t.xAxisScale=null,t.xAxisTicksPositions=[],t.yLabelsCoords=[],t.yTitleCoords=[],t.barPadForNumericAxis=0,t.padHorizontal=0,t.xRange=0,t.yRange=[],t.zRange=0,t.dataPoints=0,t.xTickAmount=0,t.multiAxisTickAmount=0}},{key:"globalVars",value:function(t){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:t.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.zoom&&t.chart.zoom.enabled,panEnabled:"pan"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.pan,selectionEnabled:"selection"===t.chart.toolbar.autoSelected&&t.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:t.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(t){var e=this.globalVars(t);return this.initGlobalVars(e),e.initialConfig=Dc.extend({},t),e.initialSeries=Dc.clone(t.series),e.lastXAxis=Dc.clone(e.initialConfig.xaxis),e.lastYAxis=Dc.clone(e.initialConfig.yaxis),e}}]),t}(),sp=function(){function t(e){vc(this,t),this.opts=e}return wc(t,[{key:"init",value:function(){var t=new ep(this.opts).init({responsiveOverride:!1});return{config:t,globals:(new ip).init(t)}}}]),t}(),np=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return wc(t,[{key:"clippedImgArea",value:function(t){var e=this.w,i=e.config,s=parseInt(e.globals.gridWidth,10),n=parseInt(e.globals.gridHeight,10),a=s>n?s:n,r=t.image,o=0,l=0;void 0===t.width&&void 0===t.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=a+1,l=a):(o=t.width,l=t.height);var c=document.createElementNS(e.globals.SVGNS,"pattern");Nu.setAttrs(c,{id:t.patternID,patternUnits:t.patternUnits?t.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var h=document.createElementNS(e.globals.SVGNS,"image");c.appendChild(h),h.setAttributeNS(window.SVG.xlink,"href",r),Nu.setAttrs(h,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),h.style.opacity=t.opacity,e.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(t){var e=this.w,i=e.config.chart.type;return("bar"===i||"rangeBar"===i)&&e.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=t.seriesNumber:this.seriesIndex=t.seriesNumber%e.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(t,e){var i,s=this.w,n=null,a=null,r=Ac(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;o>=e.threshold?(null===n||o>n)&&(n=o):(null===a||o<a)&&(a=o)}}catch(t){r.e(t)}finally{r.f()}null===n&&(n=e.threshold),null===a&&(a=e.threshold);var l=n-e.threshold+(e.threshold-a);0===l&&(l=1);var c=100-(e.threshold-a)/l*100;return[{offset:c=Math.max(0,Math.min(c,100)),color:e.colorAboveThreshold,opacity:s.config.fill.opacity},{offset:0,color:e.colorBelowThreshold,opacity:s.config.fill.opacity}]}},{key:"fillPath",value:function(t){var e,i,s,n=this.w;this.opts=t;var a,r,o,l=this.w.config;this.seriesIndex=this.getSeriesIndex(t);var c=l.plotOptions.line.colors.colorAboveThreshold&&l.plotOptions.line.colors.colorBelowThreshold,h=this.getFillColors()[this.seriesIndex];void 0!==n.globals.seriesColors[this.seriesIndex]&&(h=n.globals.seriesColors[this.seriesIndex]),"function"==typeof h&&(h=h({seriesIndex:this.seriesIndex,dataPointIndex:t.dataPointIndex,value:t.value,w:n}));var d,u,p,g=t.fillType?t.fillType:this.getFillType(this.seriesIndex),f=Array.isArray(l.fill.opacity)?l.fill.opacity[this.seriesIndex]:l.fill.opacity,m="gradient"===g||c;t.color&&(h=t.color),null!==(e=n.config.series[this.seriesIndex])&&void 0!==e&&null!==(i=e.data)&&void 0!==i&&null!==(s=i[t.dataPointIndex])&&void 0!==s&&s.fillColor&&(h=null===(d=n.config.series[this.seriesIndex])||void 0===d||null===(u=d.data)||void 0===u||null===(p=u[t.dataPointIndex])||void 0===p?void 0:p.fillColor),h||(h="#fff",console.warn("undefined color - ApexCharts"));var x=h;if(-1===h.indexOf("rgb")?-1===h.indexOf("#")?x=h:h.length<9&&(x=Dc.hexToRgba(h,f)):h.indexOf("rgba")>-1?f=Dc.getOpacityFromRGBA(h):x=Dc.hexToRgba(Dc.rgb2hex(h),f),t.opacity&&(f=t.opacity),"pattern"===g&&(r=this.handlePatternFill({fillConfig:t.fillConfig,patternFill:r,fillColor:h,fillOpacity:f,defaultColor:x})),m){var b=Bc(l.fill.gradient.colorStops)||[],v=l.fill.gradient.type;c&&(b[this.seriesIndex]=this.computeColorStops(n.globals.series[this.seriesIndex],l.plotOptions.line.colors),v="vertical"),o=this.handleGradientFill({type:v,fillConfig:t.fillConfig,fillColor:h,fillOpacity:f,colorStops:b,i:this.seriesIndex})}if("image"===g){var y=l.fill.image.src,w=t.patternID?t.patternID:"",A="pattern".concat(n.globals.cuid).concat(t.seriesNumber+1).concat(w);-1===this.patternIDs.indexOf(A)&&(this.clippedImgArea({opacity:f,image:Array.isArray(y)?t.seriesNumber<y.length?y[t.seriesNumber]:y[0]:y,width:t.width?t.width:void 0,height:t.height?t.height:void 0,patternUnits:t.patternUnits,patternID:A}),this.patternIDs.push(A)),a="url(#".concat(A,")")}else a=m?o:"pattern"===g?r:x;return t.solid&&(a=x),a}},{key:"getFillType",value:function(t){var e=this.w;return Array.isArray(e.config.fill.type)?e.config.fill.type[t]:e.config.fill.type}},{key:"getFillColors",value:function(){var t=this.w,e=t.config,i=this.opts,s=[];return t.globals.comboCharts?"line"===t.config.series[this.seriesIndex].type?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors):"line"===e.chart.type?Array.isArray(t.globals.stroke.colors)?s=t.globals.stroke.colors:s.push(t.globals.stroke.colors):Array.isArray(t.globals.fill.colors)?s=t.globals.fill.colors:s.push(t.globals.fill.colors),void 0!==i.fillColors&&(s=[],Array.isArray(i.fillColors)?s=i.fillColors.slice():s.push(i.fillColors)),s}},{key:"handlePatternFill",value:function(t){var e=t.fillConfig,i=(t.patternFill,t.fillColor),s=t.fillOpacity,n=t.defaultColor,a=this.w.config.fill;e&&(a=e);var r=this.opts,o=new Nu(this.ctx),l=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth,c=i;return Array.isArray(a.pattern.style)?void 0!==a.pattern.style[r.seriesNumber]?o.drawPattern(a.pattern.style[r.seriesNumber],a.pattern.width,a.pattern.height,c,l,s):n:o.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,c,l,s)}},{key:"handleGradientFill",value:function(t){var e=t.type,i=t.fillColor,s=t.fillOpacity,n=t.fillConfig,a=t.colorStops,r=t.i,o=this.w.config.fill;n&&(o=Tc(Tc({},o),n));var l=this.opts,c=new Nu(this.ctx),h=new Dc;e=e||o.gradient.type;var d,u=i,p=void 0===o.gradient.opacityFrom?s:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[r]:o.gradient.opacityFrom;u.indexOf("rgba")>-1&&(p=Dc.getOpacityFromRGBA(u));var g=void 0===o.gradient.opacityTo?s:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[r]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)d="dark"===o.gradient.shade?h.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),i.indexOf("rgb")>-1?Dc.rgb2hex(i):i):h.shadeColor(parseFloat(o.gradient.shadeIntensity),i.indexOf("rgb")>-1?Dc.rgb2hex(i):i);else if(o.gradient.gradientToColors[l.seriesNumber]){var f=o.gradient.gradientToColors[l.seriesNumber];d=f,f.indexOf("rgba")>-1&&(g=Dc.getOpacityFromRGBA(f))}else d=i;if(o.gradient.gradientFrom&&(u=o.gradient.gradientFrom),o.gradient.gradientTo&&(d=o.gradient.gradientTo),o.gradient.inverseColors){var m=u;u=d,d=m}return u.indexOf("rgb")>-1&&(u=Dc.rgb2hex(u)),d.indexOf("rgb")>-1&&(d=Dc.rgb2hex(d)),c.drawGradient(e,u,d,p,g,l.size,o.gradient.stops,a,r)}}]),t}(),ap=function(){function t(e,i){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"setGlobalMarkerSize",value:function(){var t=this.w;if(t.globals.markers.size=Array.isArray(t.config.markers.size)?t.config.markers.size:[t.config.markers.size],t.globals.markers.size.length>0){if(t.globals.markers.size.length<t.globals.series.length+1)for(var e=0;e<=t.globals.series.length;e++)void 0===t.globals.markers.size[e]&&t.globals.markers.size.push(t.globals.markers.size[0])}else t.globals.markers.size=t.config.series.map(function(e){return t.config.markers.size})}},{key:"plotChartMarkers",value:function(t){var e=t.pointsPos,i=t.seriesIndex,s=t.j,n=t.pSize,a=t.alwaysDrawMarker,r=void 0!==a&&a,o=t.isVirtualPoint,l=void 0!==o&&o,c=this.w,h=i,d=e,u=null,p=new Nu(this.ctx),g=c.config.markers.discrete&&c.config.markers.discrete.length;if(Array.isArray(d.x))for(var f=0;f<d.x.length;f++){var m=void 0,x=s,b=!Dc.isNumber(d.y[f]);0===c.globals.markers.largestSize&&c.globals.hasNullValues&&null!==c.globals.series[h][s+1]&&!l&&(b=!0),1===s&&0===f&&(x=0),1===s&&1===f&&(x=1);var v="apexcharts-marker";if("line"!==c.config.chart.type&&"area"!==c.config.chart.type||c.globals.comboCharts||c.config.tooltip.intersect||(v+=" no-pointer-events"),(Array.isArray(c.config.markers.size)?c.globals.markers.size[i]>0:c.config.markers.size>0)||r||g){b||(v+=" w".concat(Dc.randomId()));var y=this.getMarkerConfig({cssClass:v,seriesIndex:i,dataPointIndex:x});c.config.series[h].data[x]&&(c.config.series[h].data[x].fillColor&&(y.pointFillColor=c.config.series[h].data[x].fillColor),c.config.series[h].data[x].strokeColor&&(y.pointStrokeColor=c.config.series[h].data[x].strokeColor)),void 0!==n&&(y.pSize=n),(d.x[f]<-c.globals.markers.largestSize||d.x[f]>c.globals.gridWidth+c.globals.markers.largestSize||d.y[f]<-c.globals.markers.largestSize||d.y[f]>c.globals.gridHeight+c.globals.markers.largestSize)&&(y.pSize=0),b||((c.globals.markers.size[i]>0||r||g)&&!u&&(u=p.group({class:r||g?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(c.globals.cuid,")")),(m=p.drawMarker(d.x[f],d.y[f],y)).attr("rel",x),m.attr("j",x),m.attr("index",i),m.node.setAttribute("default-marker-size",y.pSize),new Hu(this.ctx).setSelectionFilter(m,i,x),this.addEvents(m),u&&u.add(m))}else void 0===c.globals.pointsArray[i]&&(c.globals.pointsArray[i]=[]),c.globals.pointsArray[i].push([d.x[f],d.y[f]])}return u}},{key:"getMarkerConfig",value:function(t){var e=t.cssClass,i=t.seriesIndex,s=t.dataPointIndex,n=void 0===s?null:s,a=t.radius,r=void 0===a?null:a,o=t.size,l=void 0===o?null:o,c=t.strokeWidth,h=void 0===c?null:c,d=this.w,u=this.getMarkerStyle(i),p=null===l?d.globals.markers.size[i]:l,g=d.config.markers;return null!==n&&g.discrete.length&&g.discrete.map(function(t){t.seriesIndex===i&&t.dataPointIndex===n&&(u.pointStrokeColor=t.strokeColor,u.pointFillColor=t.fillColor,p=t.size,u.pointShape=t.shape)}),{pSize:null===r?p:r,pRadius:null!==r?r:g.radius,pointStrokeWidth:null!==h?h:Array.isArray(g.strokeWidth)?g.strokeWidth[i]:g.strokeWidth,pointStrokeColor:u.pointStrokeColor,pointFillColor:u.pointFillColor,shape:u.pointShape||(Array.isArray(g.shape)?g.shape[i]:g.shape),class:e,pointStrokeOpacity:Array.isArray(g.strokeOpacity)?g.strokeOpacity[i]:g.strokeOpacity,pointStrokeDashArray:Array.isArray(g.strokeDashArray)?g.strokeDashArray[i]:g.strokeDashArray,pointFillOpacity:Array.isArray(g.fillOpacity)?g.fillOpacity[i]:g.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(t){var e=this.w,i=new Nu(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,t)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,t)),t.node.addEventListener("click",e.config.markers.onClick),t.node.addEventListener("dblclick",e.config.markers.onDblClick),t.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,t),{passive:!0})}},{key:"getMarkerStyle",value:function(t){var e=this.w,i=e.globals.markers.colors,s=e.config.markers.strokeColor||e.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(s)?s[t]:s,pointFillColor:Array.isArray(i)?i[t]:i}}}]),t}(),rp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.initialAnim=this.w.config.chart.animations.enabled}return wc(t,[{key:"draw",value:function(t,e,i){var s=this.w,n=new Nu(this.ctx),a=i.realIndex,r=i.pointsPos,o=i.zRatio,l=i.elParent,c=n.group({class:"apexcharts-series-markers apexcharts-series-".concat(s.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(s.globals.cuid,")")),Array.isArray(r.x))for(var h=0;h<r.x.length;h++){var d=e+1,u=!0;0===e&&0===h&&(d=0),0===e&&1===h&&(d=1);var p=s.globals.markers.size[a];if(o!==1/0){var g=s.config.plotOptions.bubble;p=s.globals.seriesZ[a][d],g.zScaling&&(p/=o),g.minBubbleRadius&&p<g.minBubbleRadius&&(p=g.minBubbleRadius),g.maxBubbleRadius&&p>g.maxBubbleRadius&&(p=g.maxBubbleRadius)}var f=r.x[h],m=r.y[h];if(p=p||0,null!==m&&void 0!==s.globals.series[a][d]||(u=!1),u){var x=this.drawPoint(f,m,p,a,d,e);c.add(x)}l.add(c)}}},{key:"drawPoint",value:function(t,e,i,s,n,a){var r=this.w,o=s,l=new Fc(this.ctx),c=new Hu(this.ctx),h=new np(this.ctx),d=new ap(this.ctx),u=new Nu(this.ctx),p=d.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:n,radius:"bubble"===r.config.chart.type||r.globals.comboCharts&&r.config.series[s]&&"bubble"===r.config.series[s].type?i:null}),g=h.fillPath({seriesNumber:s,dataPointIndex:n,color:p.pointFillColor,patternUnits:"objectBoundingBox",value:r.globals.series[s][a]}),f=u.drawMarker(t,e,p);if(r.config.series[o].data[n]&&r.config.series[o].data[n].fillColor&&(g=r.config.series[o].data[n].fillColor),f.attr({fill:g}),r.config.chart.dropShadow.enabled){var m=r.config.chart.dropShadow;c.dropShadow(f,m,s)}if(!this.initialAnim||r.globals.dataChanged||r.globals.resized)r.globals.animationEnded=!0;else{var x=r.config.chart.animations.speed;l.animateMarker(f,x,r.globals.easing,function(){window.setTimeout(function(){l.animationCompleted(f)},100)})}return f.attr({rel:n,j:n,index:s,"default-marker-size":p.pSize}),c.setSelectionFilter(f,s,n),d.addEvents(f),f.node.classList.add("apexcharts-marker"),f}},{key:"centerTextInBubble",value:function(t){var e=this.w;return{y:t+=parseInt(e.config.dataLabels.style.fontSize,10)/4}}}]),t}(),op=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"dataLabelsCorrection",value:function(t,e,i,s,n,a,r){var o=this.w,l=!1,c=new Nu(this.ctx).getTextRects(i,r),h=c.width,d=c.height;e<0&&(e=0),e>o.globals.gridHeight+d&&(e=o.globals.gridHeight+d/2),void 0===o.globals.dataLabelsRects[s]&&(o.globals.dataLabelsRects[s]=[]),o.globals.dataLabelsRects[s].push({x:t,y:e,width:h,height:d});var u=o.globals.dataLabelsRects[s].length-2,p=void 0!==o.globals.lastDrawnDataLabelsIndexes[s]?o.globals.lastDrawnDataLabelsIndexes[s][o.globals.lastDrawnDataLabelsIndexes[s].length-1]:0;if(void 0!==o.globals.dataLabelsRects[s][u]){var g=o.globals.dataLabelsRects[s][p];(t>g.x+g.width||e>g.y+g.height||e+d<g.y||t+h<g.x)&&(l=!0)}return(0===n||a)&&(l=!0),{x:t,y:e,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(t){var e=this,i=t.type,s=t.pos,n=t.i,a=t.j,r=t.isRangeStart,o=t.strokeWidth,l=void 0===o?2:o,c=this.w,h=new Nu(this.ctx),d=c.config.dataLabels,u=0,p=0,g=a,f=null;if(-1!==c.globals.collapsedSeriesIndices.indexOf(n)||!d.enabled||!Array.isArray(s.x))return f;f=h.group({class:"apexcharts-data-labels"});for(var m=0;m<s.x.length;m++)if(u=s.x[m]+d.offsetX,p=s.y[m]+d.offsetY+l,!isNaN(u)){1===a&&0===m&&(g=0),1===a&&1===m&&(g=1);var x=c.globals.series[n][g];"rangeArea"===i&&(x=r?c.globals.seriesRangeStart[n][g]:c.globals.seriesRangeEnd[n][g]);var b="",v=function(t){return c.config.dataLabels.formatter(t,{ctx:e.ctx,seriesIndex:n,dataPointIndex:g,w:c})};"bubble"===c.config.chart.type?(b=v(x=c.globals.seriesZ[n][g]),p=s.y[m],p=new rp(this.ctx).centerTextInBubble(p,n,g).y):void 0!==x&&(b=v(x));var y=c.config.dataLabels.textAnchor;c.globals.isSlopeChart&&(y=0===g?"end":g===c.config.series[n].data.length-1?"start":"middle"),this.plotDataLabelsText({x:u,y:p,text:b,i:n,j:g,parent:f,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels,textAnchor:y})}return f}},{key:"plotDataLabelsText",value:function(t){var e=this.w,i=new Nu(this.ctx),s=t.x,n=t.y,a=t.i,r=t.j,o=t.text,l=t.textAnchor,c=t.fontSize,h=t.parent,d=t.dataLabelsConfig,u=t.color,p=t.alwaysDrawDataLabel,g=t.offsetCorrection,f=t.className,m=null;if(Array.isArray(e.config.dataLabels.enabledOnSeries)&&e.config.dataLabels.enabledOnSeries.indexOf(a)<0)return m;var x={x:s,y:n,drawnextLabel:!0,textRects:null};g&&(x=this.dataLabelsCorrection(s,n,o,a,r,p,parseInt(d.style.fontSize,10))),e.globals.zoomed||(s=x.x,n=x.y),x.textRects&&(s<-20-x.textRects.width||s>e.globals.gridWidth+x.textRects.width+30)&&(o="");var b=e.globals.dataLabels.style.colors[a];(("bar"===e.config.chart.type||"rangeBar"===e.config.chart.type)&&e.config.plotOptions.bar.distributed||e.config.dataLabels.distributed)&&(b=e.globals.dataLabels.style.colors[r]),"function"==typeof b&&(b=b({series:e.globals.series,seriesIndex:a,dataPointIndex:r,w:e})),u&&(b=u);var v=d.offsetX,y=d.offsetY;if("bar"!==e.config.chart.type&&"rangeBar"!==e.config.chart.type||(v=0,y=0),e.globals.isSlopeChart&&(0!==r&&(v=-2*d.offsetX+5),0!==r&&r!==e.config.series[a].data.length-1&&(v=0)),x.drawnextLabel){if((m=i.drawText({width:100,height:parseInt(d.style.fontSize,10),x:s+v,y:n+y,foreColor:b,textAnchor:l||d.textAnchor,text:o,fontSize:c||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:f||"apexcharts-datalabel",cx:s,cy:n}),d.dropShadow.enabled){var w=d.dropShadow;new Hu(this.ctx).dropShadow(m,w)}h.add(m),void 0===e.globals.lastDrawnDataLabelsIndexes[a]&&(e.globals.lastDrawnDataLabelsIndexes[a]=[]),e.globals.lastDrawnDataLabelsIndexes[a].push(r)}return m}},{key:"addBackgroundToDataLabel",value:function(t,e){var i=this.w,s=i.config.dataLabels.background,n=s.padding,a=s.padding/2,r=e.width,o=e.height,l=new Nu(this.ctx).drawRect(e.x-n,e.y-a/2,r+2*n,o+a,s.borderRadius,"transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",s.opacity,s.borderWidth,s.borderColor);return s.dropShadow.enabled&&new Hu(this.ctx).dropShadow(l,s.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var t=this.w;if("bubble"!==t.config.chart.type)for(var e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<e.length;i++){var s=e[i],n=s.getBBox(),a=null;if(n.width&&n.height&&(a=this.addBackgroundToDataLabel(s,n)),a){s.parentNode.insertBefore(a.node,s);var r=t.config.dataLabels.background.backgroundColor||s.getAttribute("fill");!t.config.chart.animations.enabled||t.globals.resized||t.globals.dataChanged?a.attr({fill:r}):a.animate().attr({fill:r}),s.setAttribute("fill",t.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var t=this.w,e=t.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=t.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),s=0;s<e.length;s++)i&&i.insertBefore(e[s],i.nextSibling)}}]),t}(),lp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.legendInactiveClass="legend-mouseover-inactive"}return wc(t,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(t){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(Dc.escapeString(t),"']"))}},{key:"isSeriesHidden",value:function(t){var e=this.getSeriesByName(t),i=parseInt(e.getAttribute("data:realIndex"),10);return{isHidden:e.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(t,e){var i=this.w;function s(i){for(var s=0;s<i.length;s++)i[s].index===e&&t.node.classList.add("apexcharts-series-collapsed")}s(i.globals.collapsedSeries),s(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(t){var e=this.isSeriesHidden(t);return this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,e.isHidden),e.isHidden}},{key:"showSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!0)}},{key:"hideSeries",value:function(t){var e=this.isSeriesHidden(t);e.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(e.realIndex,!1)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w,n=Dc.clone(s.globals.initialSeries);s.globals.previousPaths=[],i?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):n=this.emptyCollapsedSeries(n),s.config.series=n,t&&(e&&(s.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(t){for(var e=this.w,i=0;i<t.length;i++)e.globals.collapsedSeriesIndices.indexOf(i)>-1&&(t[i].data=[]);return t}},{key:"highlightSeries",value:function(t){var e=this.w,i=this.getSeriesByName(t),s=parseInt(null==i?void 0:i.getAttribute("data:realIndex"),10),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),a=null,r=null,o=null;if(e.globals.axisCharts||"radialBar"===e.config.chart.type)if(e.globals.axisCharts){a=e.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(s,"']")),r=e.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(s,"']"));var l=e.globals.seriesYAxisReverseMap[s];o=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else a=e.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"']"));else a=e.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(s+1,"'] path"));for(var c=0;c<n.length;c++)n[c].classList.add(this.legendInactiveClass);if(a)e.globals.axisCharts||a.parentNode.classList.remove(this.legendInactiveClass),a.classList.remove(this.legendInactiveClass),null!==r&&r.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass);else for(var h=0;h<n.length;h++)n[h].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(t,e){var i=this.w;e||(e=t.target);var s=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===t.type){var n=parseInt(e.getAttribute("rel"),10)-1;this.highlightSeries(i.globals.seriesNames[n])}else if("mouseout"===t.type)for(var a=0;a<s.length;a++)s[a].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(t,e){var i=this,s=this.w,n=s.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=function(t){for(var e=0;e<n.length;e++)n[e].classList[t](i.legendInactiveClass)};if("mousemove"===t.type){var r=parseInt(e.getAttribute("rel"),10)-1;a("add");var o=s.config.plotOptions.heatmap.colorScale.ranges;!function(t,e){for(var s=0;s<n.length;s++){var a=Number(n[s].getAttribute("val"));a>=t.from&&(a<t.to||t.to===e&&a===e)&&n[s].classList.remove(i.legendInactiveClass)}}(o[r],o.reduce(function(t,e){return Math.max(t,e.to)},0))}else"mouseout"===t.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,s=0;if(i.config.series.length>1)for(var n=i.config.series.map(function(t,s){return t.data&&t.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(s)&&(!i.globals.comboCharts||0===e.length||e.length&&e.indexOf(i.config.series[s].type)>-1)?s:-1}),a="asc"===t?0:n.length-1;"asc"===t?a<n.length:a>=0;"asc"===t?a++:a--)if(-1!==n[a]){s=n[a];break}return s}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(t,e){return"bar"===t.type||"column"===t.type?e:-1}).filter(function(t){return-1!==t}):this.w.config.series.map(function(t,e){return e})}},{key:"getPreviousPaths",value:function(){var t=this.w;function e(e,i,s){for(var n=e[i].childNodes,a={type:s,paths:[],realIndex:e[i].getAttribute("data:realIndex")},r=0;r<n.length;r++)if(n[r].hasAttribute("pathTo")){var o=n[r].getAttribute("pathTo");a.paths.push({d:o})}t.globals.previousPaths.push(a)}t.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(i){for(var s,n=(s=i,t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(s,"-series .apexcharts-series"))),a=0;a<n.length;a++)e(n,a,i)});var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series"));if(i.length>0)for(var s=function(e){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(e,"'] rect")),s=[],n=function(t){var e=function(e){return i[t].getAttribute(e)},n={x:parseFloat(e("x")),y:parseFloat(e("y")),width:parseFloat(e("width")),height:parseFloat(e("height"))};s.push({rect:n,color:i[t].getAttribute("color")})},a=0;a<i.length;a++)n(a);t.globals.previousPaths.push(s)},n=0;n<i.length;n++)s(n);t.globals.axisCharts||(t.globals.previousPaths=t.globals.series)}},{key:"clearPreviousPaths",value:function(){var t=this.w;t.globals.previousPaths=[],t.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var t=this.w,e=t.config.noData,i=new Nu(this.ctx),s=t.globals.svgWidth/2,n=t.globals.svgHeight/2,a="middle";if(t.globals.noData=!0,t.globals.animationEnded=!0,"left"===e.align?(s=10,a="start"):"right"===e.align&&(s=t.globals.svgWidth-10,a="end"),"top"===e.verticalAlign?n=50:"bottom"===e.verticalAlign&&(n=t.globals.svgHeight-50),s+=e.offsetX,n=n+parseInt(e.style.fontSize,10)+2+e.offsetY,void 0!==e.text&&""!==e.text){var r=i.drawText({x:s,y:n,text:e.text,textAnchor:a,fontSize:e.style.fontSize,fontFamily:e.style.fontFamily,foreColor:e.style.color,opacity:1,class:"apexcharts-text-nodata"});t.globals.dom.Paper.add(r)}}},{key:"setNullSeriesToZeroValues",value:function(t){for(var e=this.w,i=0;i<t.length;i++)if(0===t[i].length)for(var s=0;s<t[e.globals.maxValsInArrayIndex].length;s++)t[i].push(0);return t}},{key:"hasAllSeriesEqualX",value:function(){for(var t=!0,e=this.w,i=this.filteredSeriesX(),s=0;s<i.length-1;s++)if(i[s][0]!==i[s+1][0]){t=!1;break}return e.globals.allSeriesHasEqualX=t,t}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(t){return t.length>0?t:[]})}}]),t}(),cp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Yu(this.ctx)}return wc(t,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var t=this.w.config.series.slice(),e=new lp(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&null!==t[this.activeSeriesIndex].data[0]&&void 0!==t[this.activeSeriesIndex].data[0].x&&null!==t[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var t=this.w.config.series.slice(),e=new lp(this.ctx);if(this.activeSeriesIndex=e.getActiveConfigSeriesIndex(),void 0!==t[this.activeSeriesIndex].data&&t[this.activeSeriesIndex].data.length>0&&void 0!==t[this.activeSeriesIndex].data[0]&&null!==t[this.activeSeriesIndex].data[0]&&t[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(t,e){for(var i=this.w.config,s=this.w.globals,n="boxPlot"===i.chart.type||"boxPlot"===i.series[e].type,a=0;a<t[e].data.length;a++)if(void 0!==t[e].data[a][1]&&(Array.isArray(t[e].data[a][1])&&4===t[e].data[a][1].length&&!n?this.twoDSeries.push(Dc.parseNumber(t[e].data[a][1][3])):t[e].data[a].length>=5?this.twoDSeries.push(Dc.parseNumber(t[e].data[a][4])):this.twoDSeries.push(Dc.parseNumber(t[e].data[a][1])),s.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var r=new Date(t[e].data[a][0]);r=new Date(r).getTime(),this.twoDSeriesX.push(r)}else this.twoDSeriesX.push(t[e].data[a][0]);for(var o=0;o<t[e].data.length;o++)void 0!==t[e].data[o][2]&&(this.threeDSeries.push(t[e].data[o][2]),s.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(t,e){var i=this.w.config,s=this.w.globals,n=new ju(this.ctx),a=e;s.collapsedSeriesIndices.indexOf(e)>-1&&(a=this.activeSeriesIndex);for(var r=0;r<t[e].data.length;r++)void 0!==t[e].data[r].y&&(Array.isArray(t[e].data[r].y)?this.twoDSeries.push(Dc.parseNumber(t[e].data[r].y[t[e].data[r].y.length-1])):this.twoDSeries.push(Dc.parseNumber(t[e].data[r].y))),void 0!==t[e].data[r].goals&&Array.isArray(t[e].data[r].goals)?(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(t[e].data[r].goals)):(void 0===this.seriesGoals[e]&&(this.seriesGoals[e]=[]),this.seriesGoals[e].push(null));for(var o=0;o<t[a].data.length;o++){var l="string"==typeof t[a].data[o].x,c=Array.isArray(t[a].data[o].x),h=!c&&!!n.isValidDate(t[a].data[o].x);if(l||h)if(l||i.xaxis.convertedCatToNumeric){var d=s.isBarHorizontal&&s.isRangeData;"datetime"!==i.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[a].data[o].x),isNaN(t[a].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof t[a].data[o].x||(s.isXNumeric=!0)):this.twoDSeriesX.push(n.parseDate(t[a].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(n.parseDate(t[a].data[o].x.toString())):(s.dataFormatXNumeric=!0,s.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(t[a].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(t[a].data[o].x)):(s.isXNumeric=!0,s.dataFormatXNumeric=!0,this.twoDSeriesX.push(t[a].data[o].x))}if(t[e].data[0]&&void 0!==t[e].data[0].z){for(var u=0;u<t[e].data.length;u++)this.threeDSeries.push(t[e].data[u].z);s.isDataXYZ=!0}}},{key:"handleRangeData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleRangeDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleRangeDataFormat("xy",t,e)),i.seriesRangeStart[e]=void 0===s.start?[]:s.start,i.seriesRangeEnd[e]=void 0===s.end?[]:s.end,i.seriesRange[e]=s.rangeUniques,i.seriesRange.forEach(function(t,e){t&&t.forEach(function(t,e){t.y.forEach(function(e,i){for(var s=0;s<t.y.length;s++)if(i!==s){var n=e.y1,a=e.y2,r=t.y[s].y1;n<=t.y[s].y2&&r<=a&&(t.overlaps.indexOf(e.rangeName)<0&&t.overlaps.push(e.rangeName),t.overlaps.indexOf(t.y[s].rangeName)<0&&t.overlaps.push(t.y[s].rangeName))}})})}),s}},{key:"handleCandleStickBoxData",value:function(t,e){var i=this.w.globals,s={};return this.isFormat2DArray()?s=this.handleCandleStickBoxDataFormat("array",t,e):this.isFormatXY()&&(s=this.handleCandleStickBoxDataFormat("xy",t,e)),i.seriesCandleO[e]=s.o,i.seriesCandleH[e]=s.h,i.seriesCandleM[e]=s.m,i.seriesCandleL[e]=s.l,i.seriesCandleC[e]=s.c,s}},{key:"handleRangeDataFormat",value:function(t,e,i){var s=[],n=[],a=e[i].data.filter(function(t,e,i){return e===i.findIndex(function(e){return e.x===t.x})}).map(function(t,e){return{x:t.x,overlaps:[],y:[]}});if("array"===t)for(var r=0;r<e[i].data.length;r++)Array.isArray(e[i].data[r])?(s.push(e[i].data[r][1][0]),n.push(e[i].data[r][1][1])):(s.push(e[i].data[r]),n.push(e[i].data[r]));else if("xy"===t)for(var o=function(t){var r=Array.isArray(e[i].data[t].y),o=Dc.randomId(),l=e[i].data[t].x,c={y1:r?e[i].data[t].y[0]:e[i].data[t].y,y2:r?e[i].data[t].y[1]:e[i].data[t].y,rangeName:o};e[i].data[t].rangeName=o;var h=a.findIndex(function(t){return t.x===l});a[h].y.push(c),s.push(c.y1),n.push(c.y2)},l=0;l<e[i].data.length;l++)o(l);return{start:s,end:n,rangeUniques:a}}},{key:"handleCandleStickBoxDataFormat",value:function(t,e,i){var s=this.w,n="boxPlot"===s.config.chart.type||"boxPlot"===s.config.series[i].type,a=[],r=[],o=[],l=[],c=[];if("array"===t)if(n&&6===e[i].data[0].length||!n&&5===e[i].data[0].length)for(var h=0;h<e[i].data.length;h++)a.push(e[i].data[h][1]),r.push(e[i].data[h][2]),n?(o.push(e[i].data[h][3]),l.push(e[i].data[h][4]),c.push(e[i].data[h][5])):(l.push(e[i].data[h][3]),c.push(e[i].data[h][4]));else for(var d=0;d<e[i].data.length;d++)Array.isArray(e[i].data[d][1])&&(a.push(e[i].data[d][1][0]),r.push(e[i].data[d][1][1]),n?(o.push(e[i].data[d][1][2]),l.push(e[i].data[d][1][3]),c.push(e[i].data[d][1][4])):(l.push(e[i].data[d][1][2]),c.push(e[i].data[d][1][3])));else if("xy"===t)for(var u=0;u<e[i].data.length;u++)Array.isArray(e[i].data[u].y)&&(a.push(e[i].data[u].y[0]),r.push(e[i].data[u].y[1]),n?(o.push(e[i].data[u].y[2]),l.push(e[i].data[u].y[3]),c.push(e[i].data[u].y[4])):(l.push(e[i].data[u].y[2]),c.push(e[i].data[u].y[3])));return{o:a,h:r,m:o,l,c}}},{key:"parseDataAxisCharts",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,s=this.w.config,n=this.w.globals,a=new ju(i),r=s.labels.length>0?s.labels.slice():s.xaxis.categories.slice();n.isRangeBar="rangeBar"===s.chart.type&&n.isBarHorizontal,n.hasXaxisGroups="category"===s.xaxis.type&&s.xaxis.group.groups.length>0,n.hasXaxisGroups&&(n.groups=s.xaxis.group.groups),t.forEach(function(t,e){void 0!==t.name?n.seriesNames.push(t.name):n.seriesNames.push("series-"+parseInt(e+1,10))}),this.coreUtils.setSeriesYAxisMappings();var o=[],l=Bc(new Set(s.series.map(function(t){return t.group})));s.series.forEach(function(t,e){var i=l.indexOf(t.group);o[i]||(o[i]=[]),o[i].push(n.seriesNames[e])}),n.seriesGroups=o;for(var c=function(){for(var t=0;t<r.length;t++)if("string"==typeof r[t]){if(!a.isValidDate(r[t]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");e.twoDSeriesX.push(a.parseDate(r[t]))}else e.twoDSeriesX.push(r[t])},h=0;h<t.length;h++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===t[h].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==s.chart.type&&"rangeArea"!==s.chart.type&&"rangeBar"!==t[h].type&&"rangeArea"!==t[h].type||(n.isRangeData=!0,this.handleRangeData(t,h)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(t,h):this.isFormatXY()&&this.handleFormatXY(t,h),"candlestick"!==s.chart.type&&"candlestick"!==t[h].type&&"boxPlot"!==s.chart.type&&"boxPlot"!==t[h].type||this.handleCandleStickBoxData(t,h),n.series.push(this.twoDSeries),n.labels.push(this.twoDSeriesX),n.seriesX.push(this.twoDSeriesX),n.seriesGoals=this.seriesGoals,h!==this.activeSeriesIndex||this.fallbackToCategory||(n.isXNumeric=!0);else{"datetime"===s.xaxis.type?(n.isXNumeric=!0,c(),n.seriesX.push(this.twoDSeriesX)):"numeric"===s.xaxis.type&&(n.isXNumeric=!0,r.length>0&&(this.twoDSeriesX=r,n.seriesX.push(this.twoDSeriesX))),n.labels.push(this.twoDSeriesX);var d=t[h].data.map(function(t){return Dc.parseNumber(t)});n.series.push(d)}n.seriesZ.push(this.threeDSeries),void 0!==t[h].color?n.seriesColors.push(t[h].color):n.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(t){var e=this.w.globals,i=this.w.config;e.series=t.slice(),e.seriesNames=i.labels.slice();for(var s=0;s<e.series.length;s++)void 0===e.seriesNames[s]&&e.seriesNames.push("series-"+(s+1));return this.w}},{key:"handleExternalLabelsData",value:function(t){var e=this.w.config,i=this.w.globals;e.xaxis.categories.length>0?i.labels=e.xaxis.categories:e.labels.length>0?i.labels=e.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(t){t.forEach(function(t){i.labels.indexOf(t.x)<0&&t.x&&i.labels.push(t.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),e.xaxis.convertedCatToNumeric&&(new tp(e).convertCatToNumericXaxis(e,this.ctx,i.seriesX[0]),this._generateExternalLabels(t))):this._generateExternalLabels(t)}},{key:"_generateExternalLabels",value:function(t){var e=this.w.globals,i=this.w.config,s=[];if(e.axisCharts){if(e.series.length>0)if(this.isFormatXY())for(var n=i.series.map(function(t,e){return t.data.filter(function(t,e,i){return i.findIndex(function(e){return e.x===t.x})===e})}),a=n.reduce(function(t,e,i,s){return s[t].length>e.length?t:i},0),r=0;r<n[a].length;r++)s.push(r+1);else for(var o=0;o<e.series[e.maxValsInArrayIndex].length;o++)s.push(o+1);e.seriesX=[];for(var l=0;l<t.length;l++)e.seriesX.push(s);this.w.globals.isBarHorizontal||(e.isXNumeric=!0)}if(0===s.length){s=e.axisCharts?[]:e.series.map(function(t,e){return e+1});for(var c=0;c<t.length;c++)e.seriesX.push(s)}e.labels=s,i.xaxis.convertedCatToNumeric&&(e.categoryLabels=s.map(function(t){return i.xaxis.labels.formatter(t)})),e.noLabelsProvided=!0}},{key:"parseData",value:function(t){var e=this.w,i=e.config,s=e.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),s.axisCharts?(this.parseDataAxisCharts(t),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(t),i.chart.stacked){var n=new lp(this.ctx);s.series=n.setNullSeriesToZeroValues(s.series)}this.coreUtils.getSeriesTotals(),s.axisCharts&&(s.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),s.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),s.dataFormatXNumeric||s.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(t);for(var a=this.coreUtils.getCategoryLabels(s.labels),r=0;r<a.length;r++)if(Array.isArray(a[r])){s.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var t=this.w,e=[];t.globals.seriesYAxisMap.forEach(function(i,s){var n=0;i.forEach(function(e){-1!==t.globals.collapsedSeriesIndices.indexOf(e)&&n++}),n>0&&n==i.length&&e.push(s)}),t.globals.ignoreYAxisIndexes=e.map(function(t){return t})}}]),t}(),hp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"svgStringToNode",value:function(t){return(new DOMParser).parseFromString(t,"image/svg+xml").documentElement}},{key:"scaleSvgNode",value:function(t,e){var i=parseFloat(t.getAttributeNS(null,"width")),s=parseFloat(t.getAttributeNS(null,"height"));t.setAttributeNS(null,"width",i*e),t.setAttributeNS(null,"height",s*e),t.setAttributeNS(null,"viewBox","0 0 "+i+" "+s)}},{key:"getSvgString",value:function(t){var e=this;return new Promise(function(i){var s=e.w,n=t||s.config.chart.toolbar.export.scale||s.config.chart.toolbar.export.width/s.globals.svgWidth;n||(n=1);var a=s.globals.svgWidth*n,r=s.globals.svgHeight*n,o=s.globals.dom.elWrap.cloneNode(!0);o.style.width=a+"px",o.style.height=r+"px";var l=(new XMLSerializer).serializeToString(o),c='\n <svg xmlns="http://www.w3.org/2000/svg"\n version="1.1"\n xmlns:xlink="http://www.w3.org/1999/xlink"\n class="apexcharts-svg"\n xmlns:data="ApexChartsNS"\n transform="translate(0, 0)"\n width="'.concat(s.globals.svgWidth,'px" height="').concat(s.globals.svgHeight,'px">\n <foreignObject width="100%" height="100%">\n <div xmlns="http://www.w3.org/1999/xhtml" style="width:').concat(a,"px; height:").concat(r,'px;">\n <style type="text/css">\n .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {\n display: none;\n }\n </style>\n ').concat(l,"\n </div>\n </foreignObject>\n </svg>\n "),h=e.svgStringToNode(c);1!==n&&e.scaleSvgNode(h,n),e.convertImagesToBase64(h).then(function(){c=(new XMLSerializer).serializeToString(h),i(c.replace(/ /g," "))})})}},{key:"convertImagesToBase64",value:function(t){var e=this,i=t.getElementsByTagName("image"),s=Array.from(i).map(function(t){var i=t.getAttributeNS("http://www.w3.org/1999/xlink","href");return i&&!i.startsWith("data:")?e.getBase64FromUrl(i).then(function(e){t.setAttributeNS("http://www.w3.org/1999/xlink","href",e)}).catch(function(t){console.error("Error converting image to base64:",t)}):Promise.resolve()});return Promise.all(s)}},{key:"getBase64FromUrl",value:function(t){return new Promise(function(e,i){var s=new Image;s.crossOrigin="Anonymous",s.onload=function(){var t=document.createElement("canvas");t.width=s.width,t.height=s.height,t.getContext("2d").drawImage(s,0,0),e(t.toDataURL())},s.onerror=i,s.src=t})}},{key:"svgUrl",value:function(){var t=this;return new Promise(function(e){t.getSvgString().then(function(t){var i=new Blob([t],{type:"image/svg+xml;charset=utf-8"});e(URL.createObjectURL(i))})})}},{key:"dataURI",value:function(t){var e=this;return new Promise(function(i){var s=e.w,n=t?t.scale||t.width/s.globals.svgWidth:1,a=document.createElement("canvas");a.width=s.globals.svgWidth*n,a.height=parseInt(s.globals.dom.elWrap.style.height,10)*n;var r="transparent"!==s.config.chart.background&&s.config.chart.background?s.config.chart.background:"#fff",o=a.getContext("2d");o.fillStyle=r,o.fillRect(0,0,a.width*n,a.height*n),e.getSvgString(n).then(function(t){var e="data:image/svg+xml,"+encodeURIComponent(t),s=new Image;s.crossOrigin="anonymous",s.onload=function(){if(o.drawImage(s,0,0),a.msToBlob){var t=a.msToBlob();i({blob:t})}else{var e=a.toDataURL("image/png");i({imgURI:e})}},s.src=e})})}},{key:"exportToSVG",value:function(){var t=this;this.svgUrl().then(function(e){t.triggerDownload(e,t.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var t=this,e=this.w.config.chart.toolbar.export.scale,i=this.w.config.chart.toolbar.export.width,s=e?{scale:e}:i?{width:i}:void 0;this.dataURI(s).then(function(e){var i=e.imgURI,s=e.blob;s?navigator.msSaveOrOpenBlob(s,t.w.globals.chartID+".png"):t.triggerDownload(i,t.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(t){var e=this,i=t.series,s=t.fileName,n=t.columnDelimiter,a=void 0===n?",":n,r=t.lineDelimiter,o=void 0===r?"\n":r,l=this.w;i||(i=l.config.series);var c=[],h=[],d="",u=l.globals.series.map(function(t,e){return-1===l.globals.collapsedSeriesIndices.indexOf(e)?t:[]}),p=function(t){return"function"==typeof l.config.chart.toolbar.export.csv.categoryFormatter?l.config.chart.toolbar.export.csv.categoryFormatter(t):"datetime"===l.config.xaxis.type&&String(t).length>=10?new Date(t).toDateString():Dc.isNumber(t)?t:t.split(a).join("")},g=function(t){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(t):t},f=Math.max.apply(Math,Bc(i.map(function(t){return t.data?t.data.length:0}))),m=new cp(this.ctx),x=new Gu(this.ctx),b=function(t){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var s=l.globals.yLabelFormatters[0],n=new lp(e.ctx).getActiveConfigSeriesIndex();i=s(l.globals.labels[t],{seriesIndex:n,dataPointIndex:t,w:l})}else i=x.getLabel(l.globals.labels,l.globals.timescaleLabels,0,t).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[t]:l.config.labels.length&&(i=l.config.labels[t]))}else i=l.config.labels[t];return null===i?"nullvalue":(Array.isArray(i)&&(i=i.join(" ")),Dc.isNumber(i)?i:i.split(a).join(""))};c.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===l.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===l.config.chart.type?(c.push("minimum"),c.push("maximum")):i.map(function(t,e){var i=(t.name?t.name:"series-".concat(e))+"";l.globals.axisCharts&&c.push(i.split(a).join("")?i.split(a).join(""):"series-".concat(e))}),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),h.push(c.join(a))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?i.map(function(t,e){l.globals.axisCharts?function(t,e){if(c.length&&0===e&&h.push(c.join(a)),t.data){t.data=t.data.length&&t.data||Bc(Array(f)).map(function(){return""});for(var s=0;s<t.data.length;s++){c=[];var n=b(s);if("nullvalue"!==n){if(n||(m.isFormatXY()?n=i[e].data[s].x:m.isFormat2DArray()&&(n=i[e].data[s]?i[e].data[s][0]:"")),0===e){c.push(p(n));for(var r=0;r<l.globals.series.length;r++){var o,d=m.isFormatXY()?null===(o=i[r].data[s])||void 0===o?void 0:o.y:u[r][s];c.push(g(d))}}("candlestick"===l.config.chart.type||t.type&&"candlestick"===t.type)&&(c.pop(),c.push(l.globals.seriesCandleO[e][s]),c.push(l.globals.seriesCandleH[e][s]),c.push(l.globals.seriesCandleL[e][s]),c.push(l.globals.seriesCandleC[e][s])),("boxPlot"===l.config.chart.type||t.type&&"boxPlot"===t.type)&&(c.pop(),c.push(l.globals.seriesCandleO[e][s]),c.push(l.globals.seriesCandleH[e][s]),c.push(l.globals.seriesCandleM[e][s]),c.push(l.globals.seriesCandleL[e][s]),c.push(l.globals.seriesCandleC[e][s])),"rangeBar"===l.config.chart.type&&(c.pop(),c.push(l.globals.seriesRangeStart[e][s]),c.push(l.globals.seriesRangeEnd[e][s])),c.length&&h.push(c.join(a))}}}}(t,e):((c=[]).push(p(l.globals.labels[e])),c.push(g(u[e])),h.push(c.join(a)))}):function(){var t=new Set,e={};i.forEach(function(s,n){null==s||s.data.forEach(function(s){var a,r;if(m.isFormatXY())a=s.x,r=s.y;else{if(!m.isFormat2DArray())return;a=s[0],r=s[1]}e[a]||(e[a]=Array(i.length).fill("")),e[a][n]=g(r),t.add(a)})}),c.length&&h.push(c.join(a)),Array.from(t).sort().forEach(function(t){h.push([p(t),e[t].join(a)])})}(),d+=h.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+d),s||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(t,e,i){var s=document.createElement("a");s.href=t,s.download=(e||this.w.globals.chartID)+i,document.body.appendChild(s),s.click(),document.body.removeChild(s)}}]),t}(),dp=function(){function t(e,i){vc(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var s=this.w;this.axesUtils=new Gu(e),this.xaxisLabels=s.globals.labels.slice(),s.globals.timescaleLabels.length>0&&!s.globals.isBarHorizontal&&(this.xaxisLabels=s.globals.timescaleLabels.slice()),s.config.xaxis.overwriteCategories&&(this.xaxisLabels=s.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===s.config.xaxis.position?this.offY=0:this.offY=s.globals.gridHeight,this.offY=this.offY+s.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===s.config.chart.type&&s.config.plotOptions.bar.horizontal,this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.xaxisBorderWidth=s.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=s.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=s.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=s.config.xaxis.axisBorder.height,this.yaxis=s.config.yaxis[0]}return wc(t,[{key:"drawXaxis",value:function(){var t=this.w,e=new Nu(this.ctx),i=e.group({class:"apexcharts-xaxis",transform:"translate(".concat(t.config.xaxis.offsetX,", ").concat(t.config.xaxis.offsetY,")")}),s=e.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});i.add(s);for(var n=[],a=0;a<this.xaxisLabels.length;a++)n.push(this.xaxisLabels[a]);if(this.drawXAxisLabelAndGroup(!0,e,s,n,t.globals.isXNumeric,function(t,e){return e}),t.globals.hasXaxisGroups){var r=t.globals.groups;n=[];for(var o=0;o<r.length;o++)n.push(r[o].title);var l={};t.config.xaxis.group.style&&(l.xaxisFontSize=t.config.xaxis.group.style.fontSize,l.xaxisFontFamily=t.config.xaxis.group.style.fontFamily,l.xaxisForeColors=t.config.xaxis.group.style.colors,l.fontWeight=t.config.xaxis.group.style.fontWeight,l.cssClass=t.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,e,s,n,!1,function(t,e){return r[t].cols*e},l)}if(void 0!==t.config.xaxis.title.text){var c=e.group({class:"apexcharts-xaxis-title"}),h=e.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===t.config.xaxis.position?t.globals.xAxisLabelsHeight:-t.globals.xAxisLabelsHeight-10)+t.config.xaxis.title.offsetY,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+t.config.xaxis.title.style.cssClass});c.add(h),i.add(c)}if(t.config.xaxis.axisBorder.show){var d=t.globals.barPadForNumericAxis,u=e.drawLine(t.globals.padHorizontal+t.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,t.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(u):i.add(u)}return i}},{key:"drawXAxisLabelAndGroup",value:function(t,e,i,s,n,a){var r,o=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],h=[],d=this.w,u=l.xaxisFontSize||this.xaxisFontSize,p=l.xaxisFontFamily||this.xaxisFontFamily,g=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,x=d.globals.padHorizontal,b=s.length,v="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===v&&b>v&&(v=b),n){var y=Math.max(Number(d.config.xaxis.tickAmount)||1,v>1?v-1:v);r=d.globals.gridWidth/Math.min(y,b-1),x=x+a(0,r)/2+d.config.xaxis.labels.offsetX}else r=d.globals.gridWidth/v,x=x+a(0,r)+d.config.xaxis.labels.offsetX;for(var w=function(n){var l=x-a(n,r)/2+d.config.xaxis.labels.offsetX;0===n&&1===b&&r/2===x&&1===v&&(l=d.globals.gridWidth/2);var y=o.axesUtils.getLabel(s,d.globals.timescaleLabels,l,n,c,u,t),w=28;if(d.globals.rotateXLabels&&t&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),t||(w=w+parseFloat(u)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(n,y,b):o.axesUtils.checkForOverflowingLabels(n,y,b,c,h),d.config.xaxis.labels.show){var A=e.drawText({x:y.x,y:o.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:u,fontFamily:p,foreColor:Array.isArray(g)?t&&d.config.xaxis.convertedCatToNumeric?g[d.globals.minX+n-1]:g[n]:g,isPlainText:!1,cssClass:(t?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(i.add(A),A.on("click",function(t){if("function"==typeof d.config.chart.events.xAxisLabelClick){var e=Object.assign({},d,{labelIndex:n});d.config.chart.events.xAxisLabelClick(t,o.ctx,e)}}),t){var k=document.createElementNS(d.globals.SVGNS,"title");k.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,A.node.appendChild(k),""!==y.text&&(c.push(y.text),h.push(y))}}n<b-1&&(x+=a(n+1,r))},A=0;A<=b-1;A++)w(A)}},{key:"drawXaxisInversed",value:function(t){var e,i,s=this,n=this.w,a=new Nu(this.ctx),r=n.config.yaxis[0].opposite?n.globals.translateYAxisX[t]:0,o=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:t}),l=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+r+", 0)"});o.add(l);var c=[];if(n.config.yaxis[t].show)for(var h=0;h<this.xaxisLabels.length;h++)c.push(this.xaxisLabels[h]);e=n.globals.gridHeight/c.length,i=-e/2.2;var d=n.globals.yLabelFormatters[0],u=n.config.yaxis[0].labels;if(u.show)for(var p=function(r){var o=void 0===c[r]?"":c[r];o=d(o,{seriesIndex:t,dataPointIndex:r,w:n});var h=s.axesUtils.getYAxisForeColor(u.style.colors,t),p=0;Array.isArray(o)&&(p=o.length/2*parseInt(u.style.fontSize,10));var g=u.offsetX-15,f="end";s.yaxis.opposite&&(f="start"),"left"===n.config.yaxis[0].labels.align?(g=u.offsetX,f="start"):"center"===n.config.yaxis[0].labels.align?(g=u.offsetX,f="middle"):"right"===n.config.yaxis[0].labels.align&&(f="end");var m=a.drawText({x:g,y:i+e+u.offsetY-p,text:o,textAnchor:f,foreColor:Array.isArray(h)?h[r]:h,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass,maxWidth:u.maxWidth});l.add(m),m.on("click",function(t){if("function"==typeof n.config.chart.events.xAxisLabelClick){var e=Object.assign({},n,{labelIndex:r});n.config.chart.events.xAxisLabelClick(t,s.ctx,e)}});var x=document.createElementNS(n.globals.SVGNS,"title");if(x.textContent=Array.isArray(o)?o.join(" "):o,m.node.appendChild(x),0!==n.config.yaxis[t].labels.rotate){var b=a.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(n.config.yaxis[t].labels.rotate," 0 ").concat(b.y,")"))}i+=e},g=0;g<=c.length-1;g++)p(g);if(void 0!==n.config.yaxis[0].title.text){var f=a.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+r+", 0)"}),m=a.drawText({x:n.config.yaxis[0].title.offsetX,y:n.globals.gridHeight/2+n.config.yaxis[0].title.offsetY,text:n.config.yaxis[0].title.text,textAnchor:"middle",foreColor:n.config.yaxis[0].title.style.color,fontSize:n.config.yaxis[0].title.style.fontSize,fontWeight:n.config.yaxis[0].title.style.fontWeight,fontFamily:n.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+n.config.yaxis[0].title.style.cssClass});f.add(m),o.add(f)}var x=0;this.isCategoryBarHorizontal&&n.config.yaxis[0].opposite&&(x=n.globals.gridWidth);var b=n.config.xaxis.axisBorder;if(b.show){var v=a.drawLine(n.globals.padHorizontal+b.offsetX+x,1+b.offsetY,n.globals.padHorizontal+b.offsetX+x,n.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&n.config.grid.show?this.elgrid.elGridBorders.add(v):o.add(v)}return n.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(x,c.length,n.config.yaxis[0].axisBorder,n.config.yaxis[0].axisTicks,0,e,o),o}},{key:"drawXaxisTicks",value:function(t,e,i){var s=this.w,n=t;if(!(t<0||t-2>s.globals.gridWidth)){var a=this.offY+s.config.xaxis.axisTicks.offsetY;if(e=e+a+s.config.xaxis.axisTicks.height,"top"===s.config.xaxis.position&&(e=a-s.config.xaxis.axisTicks.height),s.config.xaxis.axisTicks.show){var r=new Nu(this.ctx).drawLine(t+s.config.xaxis.axisTicks.offsetX,a+s.config.xaxis.offsetY,n+s.config.xaxis.axisTicks.offsetX,e+s.config.xaxis.offsetY,s.config.xaxis.axisTicks.color);i.add(r),r.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var t=this.w,e=[],i=this.xaxisLabels.length,s=t.globals.padHorizontal;if(t.globals.timescaleLabels.length>0)for(var n=0;n<i;n++)s=this.xaxisLabels[n].position,e.push(s);else for(var a=i,r=0;r<a;r++){var o=a;t.globals.isXNumeric&&"bar"!==t.config.chart.type&&(o-=1),s+=t.globals.gridWidth/o,e.push(s)}return e}},{key:"xAxisLabelCorrections",value:function(){var t=this.w,e=new Nu(this.ctx),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(t.globals.rotateXLabels||t.config.xaxis.labels.rotateAlways)for(var r=0;r<s.length;r++){var o=e.rotateAroundCenter(s[r]);o.y=o.y-1,o.x=o.x+1,s[r].setAttribute("transform","rotate(".concat(t.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),s[r].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=s[r].childNodes;t.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,function(i){e.placeTextWithEllipsis(i,i.textContent,t.globals.xAxisLabelsHeight-("bottom"===t.config.legend.position?20:10))})}else!function(){for(var i=t.globals.gridWidth/(t.globals.labels.length+1),n=0;n<s.length;n++){var a=s[n].childNodes;t.config.xaxis.labels.trim&&"datetime"!==t.config.xaxis.type&&Array.prototype.forEach.call(a,function(t){e.placeTextWithEllipsis(t,t.textContent,i)})}}();if(n.length>0){var c=n[n.length-1].getBBox(),h=n[0].getBBox();c.x<-20&&n[n.length-1].parentNode.removeChild(n[n.length-1]),h.x+h.width>t.globals.gridWidth&&!t.globals.isBarHorizontal&&n[0].parentNode.removeChild(n[0]);for(var d=0;d<a.length;d++)e.placeTextWithEllipsis(a[d],a[d].textContent,t.config.yaxis[0].labels.maxWidth-(t.config.yaxis[0].title.text?2*parseFloat(t.config.yaxis[0].title.style.fontSize):0)-15)}}}]),t}(),up=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new Gu(e),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return wc(t,[{key:"drawGridArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=this.w,i=new Nu(this.ctx);t||(t=i.group({class:"apexcharts-grid"}));var s=i.drawLine(e.globals.padHorizontal,1,e.globals.padHorizontal,e.globals.gridHeight,"transparent"),n=i.drawLine(e.globals.padHorizontal,e.globals.gridHeight,e.globals.gridWidth,e.globals.gridHeight,"transparent");return t.add(n),t.add(s),t}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var t=this.renderGrid();return this.drawGridArea(t.el),t}return null}},{key:"createGridMask",value:function(){var t=this.w,e=t.globals,i=new Nu(this.ctx),s=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,Bc(t.config.stroke.width)):t.config.stroke.width,n=function(t){var i=document.createElementNS(e.SVGNS,"clipPath");return i.setAttribute("id",t),i};e.dom.elGridRectMask=n("gridRectMask".concat(e.cuid)),e.dom.elGridRectBarMask=n("gridRectBarMask".concat(e.cuid)),e.dom.elGridRectMarkerMask=n("gridRectMarkerMask".concat(e.cuid)),e.dom.elForecastMask=n("forecastMask".concat(e.cuid)),e.dom.elNonForecastMask=n("nonForecastMask".concat(e.cuid));var a=0,r=0;(["bar","rangeBar","candlestick","boxPlot"].includes(t.config.chart.type)||t.globals.comboBarCount>0)&&t.globals.isXNumeric&&!t.globals.isBarHorizontal&&(a=Math.max(t.config.grid.padding.left,e.barPadForNumericAxis),r=Math.max(t.config.grid.padding.right,e.barPadForNumericAxis)),e.dom.elGridRect=i.drawRect(-s/2-2,-s/2-2,e.gridWidth+s+4,e.gridHeight+s+4,0,"#fff"),e.dom.elGridRectBar=i.drawRect(-s/2-a-2,-s/2-2,e.gridWidth+s+r+a+4,e.gridHeight+s+4,0,"#fff");var o=t.globals.markers.largestSize;e.dom.elGridRectMarker=i.drawRect(-o,-o,e.gridWidth+2*o,e.gridHeight+2*o,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectBarMask.appendChild(e.dom.elGridRectBar.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);var l=e.dom.baseEl.querySelector("defs");l.appendChild(e.dom.elGridRectMask),l.appendChild(e.dom.elGridRectBarMask),l.appendChild(e.dom.elGridRectMarkerMask),l.appendChild(e.dom.elForecastMask),l.appendChild(e.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(t){var e=t.i,i=t.x1,s=t.y1,n=t.x2,a=t.y2,r=t.xCount,o=t.parent,l=this.w;if(!(0===e&&l.globals.skipFirstTimelinelabel||e===r-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:i,y1:s,x2:n,y2:a,xCount:r,parent:o});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var h=l.globals.groups;if(h){for(var d=0,u=0;d<e&&u<h.length;u++)d+=h[u].cols;d===e&&(c=.6*l.globals.xAxisLabelsHeight)}}new dp(this.ctx).drawXaxisTicks(i,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(t){var e=t.i,i=t.x1,s=t.y1,n=t.x2,a=t.y2,r=t.xCount,o=t.parent,l=this.w,c=o.node.classList.contains("apexcharts-gridlines-horizontal"),h=l.globals.barPadForNumericAxis,d=0===s&&0===a||0===i&&0===n||s===l.globals.gridHeight&&a===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===e||e===r-1),u=new Nu(this).drawLine(i-(c?h:0),s,n+(c?h:0),a,l.config.grid.borderColor,l.config.grid.strokeDashArray);u.node.classList.add("apexcharts-gridline"),d&&l.config.grid.show?this.elGridBorders.add(u):o.add(u)}},{key:"_drawGridBandRect",value:function(t){var e=t.c,i=t.x1,s=t.y1,n=t.x2,a=t.y2,r=t.type,o=this.w,l=new Nu(this.ctx),c=o.globals.barPadForNumericAxis,h=o.config.grid[r].colors[e],d=l.drawRect(i-("row"===r?c:0),s,n+("row"===r?2*c:0),a,0,h,o.config.grid[r].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(r))}},{key:"_drawXYLines",value:function(t){var e=this,i=t.xCount,s=t.tickAmount,n=this.w;if(n.config.grid.xaxis.lines.show||n.config.xaxis.axisTicks.show){var a,r=n.globals.padHorizontal,o=n.globals.gridHeight;n.globals.timescaleLabels.length?function(t){for(var s=t.xC,n=t.x1,a=t.y1,r=t.x2,o=t.y2,l=0;l<s;l++)n=e.xaxisLabels[l].position,r=e.xaxisLabels[l].position,e._drawGridLines({i:l,x1:n,y1:a,x2:r,y2:o,xCount:i,parent:e.elgridLinesV})}({xC:i,x1:r,y1:0,x2:a,y2:o}):(n.globals.isXNumeric&&(i=n.globals.xAxisScale.result.length),function(t){for(var s=t.xC,a=t.x1,r=t.y1,o=t.x2,l=t.y2,c=0;c<s+(n.globals.isXNumeric?0:1);c++)0===c&&1===s&&1===n.globals.dataPoints&&(o=a=n.globals.gridWidth/2),e._drawGridLines({i:c,x1:a,y1:r,x2:o,y2:l,xCount:i,parent:e.elgridLinesV}),o=a+=n.globals.gridWidth/(n.globals.isXNumeric?s-1:s)}({xC:i,x1:r,y1:0,x2:a,y2:o}))}if(n.config.grid.yaxis.lines.show){var l=0,c=0,h=n.globals.gridWidth,d=s+1;this.isRangeBar&&(d=n.globals.labels.length);for(var u=0;u<d+(this.isRangeBar?1:0);u++)this._drawGridLine({i:u,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:h,y2:c,parent:this.elgridLinesH}),c=l+=n.globals.gridHeight/(this.isRangeBar?d:s)}}},{key:"_drawInvertedXYLines",value:function(t){var e=t.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var s,n=i.globals.padHorizontal,a=i.globals.gridHeight,r=0;r<e+1;r++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:r,xCount:e+1,x1:n,y1:0,x2:s,y2:a,parent:this.elgridLinesV}),new dp(this.ctx).drawXaxisTicks(n,0,i.globals.dom.elGraphical),s=n+=i.globals.gridWidth/e;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,h=0;h<i.globals.dataPoints+1;h++)this._drawGridLine({i:h,xCount:i.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var t=this.w,e=t.globals,i=new Nu(this.ctx);this.elg=i.group({class:"apexcharts-grid"}),this.elgridLinesH=i.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=i.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=i.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),t.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var s=0;s<e.seriesYAxisMap.length&&e.ignoreYAxisIndexes.includes(s);)s++;s===e.seriesYAxisMap.length&&(s=0);var n,a,r,o,l=e.yAxisScale[s].result.length-1;return!e.isBarHorizontal||this.isRangeBar?(n=this.xaxisLabels.length,this.isRangeBar&&(l=e.labels.length,t.config.xaxis.tickAmount&&t.config.xaxis.labels.formatter&&(n=t.config.xaxis.tickAmount),(null===(a=e.yAxisScale)||void 0===a||null===(r=a[s])||void 0===r||null===(o=r.result)||void 0===o?void 0:o.length)>0&&"datetime"!==t.config.xaxis.type&&(n=e.yAxisScale[s].result.length-1)),this._drawXYLines({xCount:n,tickAmount:l})):(n=l,l=e.xTickAmount,this._drawInvertedXYLines({xCount:n,tickAmount:l})),this.drawGridBands(n,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:e.gridWidth/n}}},{key:"drawGridBands",value:function(t,e){var i,s,n=this,a=this.w;if((null===(i=a.config.grid.row.colors)||void 0===i?void 0:i.length)>0&&function(t,i,s,r,o,l){for(var c=0,h=0;c<i;c++,h++)h>=a.config.grid.row.colors.length&&(h=0),n._drawGridBandRect({c:h,x1:0,y1:r,x2:o,y2:l,type:"row"}),r+=a.globals.gridHeight/e}(0,e,0,0,a.globals.gridWidth,a.globals.gridHeight/e),(null===(s=a.config.grid.column.colors)||void 0===s?void 0:s.length)>0){var r=a.globals.isBarHorizontal||"on"!==a.config.xaxis.tickPlacement||"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric?t:t-1;a.globals.isXNumeric&&(r=a.globals.xAxisScale.result.length-1);for(var o=a.globals.padHorizontal,l=a.globals.padHorizontal+a.globals.gridWidth/r,c=a.globals.gridHeight,h=0,d=0;h<t;h++,d++){var u;d>=a.config.grid.column.colors.length&&(d=0),"datetime"===a.config.xaxis.type&&(o=this.xaxisLabels[h].position,l=((null===(u=this.xaxisLabels[h+1])||void 0===u?void 0:u.position)||a.globals.gridWidth)-this.xaxisLabels[h].position),this._drawGridBandRect({c:d,x1:o,y1:0,x2:l,y2:c,type:"column"}),o+=a.globals.gridWidth/r}}}}]),t}(),pp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.coreUtils=new Yu(this.ctx)}return wc(t,[{key:"niceScale",value:function(t,e){var i,s,n,a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(i=l.config.xaxis,s=Math.max((c.svgWidth-100)/25,2)):(i=l.config.yaxis[r],s=Math.max((c.svgHeight-100)/15,2)),Dc.isNumber(s)||(s=10),n=void 0!==i.min&&null!==i.min,a=void 0!==i.max&&null!==i.min;var h=void 0!==i.stepSize&&null!==i.stepSize,d=void 0!==i.tickAmount&&null!==i.tickAmount,u=d?i.tickAmount:c.niceScaleDefaultTicks[Math.min(Math.round(s/2),c.niceScaleDefaultTicks.length-1)];if(c.isMultipleYAxis&&!d&&c.multiAxisTickAmount>0&&(u=c.multiAxisTickAmount,d=!0),u="dataPoints"===u?c.dataPoints-1:Math.abs(Math.round(u)),(t===Number.MIN_VALUE&&0===e||!Dc.isNumber(t)&&!Dc.isNumber(e)||t===Number.MIN_VALUE&&e===-Number.MAX_VALUE)&&(t=Dc.isNumber(i.min)?i.min:0,e=Dc.isNumber(i.max)?i.max:t+u,c.allSeriesCollapsed=!1),t>e){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var p=e;e=t,t=p}else t===e&&(t=0===t?0:t-1,e=0===e?2:e+1);var g=[];u<1&&(u=1);var f=u,m=Math.abs(e-t);!n&&t>0&&t/m<.15&&(t=0,n=!0),!a&&e<0&&-e/m<.15&&(e=0,a=!0);var x=(m=Math.abs(e-t))/f,b=x,v=Math.floor(Math.log10(b)),y=Math.pow(10,v),w=Math.ceil(b/y);if(x=b=(w=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][w])*y,c.isBarHorizontal&&i.stepSize&&"datetime"!==i.type?(x=i.stepSize,h=!0):h&&(x=i.stepSize),h&&i.forceNiceScale){var A=Math.floor(Math.log10(x));x*=Math.pow(10,v-A)}if(n&&a){var k=m/f;if(d)if(h)if(0!=Dc.mod(m,x)){var C=Dc.getGCD(x,k);x=k/C<10?C:k}else 0==Dc.mod(x,k)?x=k:(k=x,d=!1);else x=k;else if(h)0==Dc.mod(m,x)?k=x:x=k;else if(0==Dc.mod(m,x))k=x;else{k=m/(f=Math.ceil(m/x));var _=Dc.getGCD(m,x);m/_<s&&(k=_),x=k}f=Math.round(m/x)}else{if(n||a){if(a)if(d)t=e-x*f;else{var E=t;t=x*Math.floor(t/x),Math.abs(e-t)/Dc.getGCD(m,x)>s&&(t=e-x*u,t+=x*Math.floor((E-t)/x))}else if(n)if(d)e=t+x*f;else{var S=e;e=x*Math.ceil(e/x),Math.abs(e-t)/Dc.getGCD(m,x)>s&&(e=t+x*u,e+=x*Math.ceil((S-e)/x))}}else if(c.isMultipleYAxis&&d){var M=x*Math.floor(t/x),T=M+x*f;T<e&&(x*=2),T=e,e=(t=M)+x*f,m=Math.abs(e-t),t>0&&t<Math.abs(T-e)&&(t=0,e=x*f),e<0&&-e<Math.abs(M-t)&&(e=0,t=-x*f)}else t=x*Math.floor(t/x),e=x*Math.ceil(e/x);m=Math.abs(e-t),x=Dc.getGCD(m,x),f=Math.round(m/x)}if(d||n||a||(f=Math.ceil((m-o)/(x+o)))>16&&Dc.getPrimeFactors(f).length<2&&f++,!d&&i.forceNiceScale&&0===c.yValueDecimal&&f>m&&(f=m,x=Math.round(m/f)),f>s&&(!d&&!h||i.forceNiceScale)){var L=Dc.getPrimeFactors(f),P=L.length-1,B=f;t:for(var O=0;O<P;O++)for(var I=0;I<=P-O;I++){for(var z=Math.min(I+O,P),D=B,F=1,R=I;R<=z;R++)F*=L[R];if((D/=F)<s){B=D;break t}}x=B===f?m:m/B,f=Math.round(m/x)}c.isMultipleYAxis&&0==c.multiAxisTickAmount&&c.ignoreYAxisIndexes.indexOf(r)<0&&(c.multiAxisTickAmount=f);var H=t-x,N=x*o;do{H+=x,g.push(Dc.stripNumber(H,7))}while(e-H>N);return{result:g,niceMin:g[0],niceMax:g[g.length-1]}}},{key:"linearScale",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=Math.abs(e-t),r=[];if(t===e)return{result:r=[t],niceMin:r[0],niceMax:r[r.length-1]};"dataPoints"===(i=this._adjustTicksForSmallRange(i,s,a))&&(i=this.w.globals.dataPoints-1),n||(n=a/i),n=Math.round(100*(n+Number.EPSILON))/100,i===Number.MAX_VALUE&&(i=5,n=1);for(var o=t;i>=0;)r.push(o),o=Dc.preciseAddition(o,n),i-=1;return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScaleNice",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var s=[],n=Math.ceil(Math.log(e)/Math.log(i)+1),a=Math.floor(Math.log(t)/Math.log(i));a<n;a++)s.push(Math.pow(i,a));return{result:s,niceMin:s[0],niceMax:s[s.length-1]}}},{key:"logarithmicScale",value:function(t,e,i){e<=0&&(e=Math.max(t,i)),t<=0&&(t=Math.min(e,i));for(var s=[],n=Math.log(e)/Math.log(i),a=Math.log(t)/Math.log(i),r=n-a,o=Math.round(r),l=r/o,c=0,h=a;c<o;c++,h+=l)s.push(Math.pow(i,h));return s.push(Math.pow(i,n)),{result:s,niceMin:t,niceMax:e}}},{key:"_adjustTicksForSmallRange",value:function(t,e,i){var s=t;if(void 0!==e&&this.w.config.yaxis[e].labels.formatter&&void 0===this.w.config.yaxis[e].tickAmount){var n=Number(this.w.config.yaxis[e].labels.formatter(1));Dc.isNumber(n)&&0===this.w.globals.yValueDecimal&&(s=Math.ceil(i))}return s<t?s:t}},{key:"setYScaleForIndex",value:function(t,e,i){var s=this.w.globals,n=this.w.config,a=s.isBarHorizontal?n.xaxis:n.yaxis[t];void 0===s.yAxisScale[t]&&(s.yAxisScale[t]=[]);var r=Math.abs(i-e);a.logarithmic&&r<=5&&(s.invalidLogScale=!0),a.logarithmic&&r>5?(s.allSeriesCollapsed=!1,s.yAxisScale[t]=a.forceNiceScale?this.logarithmicScaleNice(e,i,a.logBase):this.logarithmicScale(e,i,a.logBase)):i!==-Number.MAX_VALUE&&Dc.isNumber(i)&&e!==Number.MAX_VALUE&&Dc.isNumber(e)?(s.allSeriesCollapsed=!1,s.yAxisScale[t]=this.niceScale(e,i,t)):s.yAxisScale[t]=this.niceScale(Number.MIN_VALUE,0,t)}},{key:"setXScale",value:function(t,e){var i=this.w,s=i.globals;if(e!==-Number.MAX_VALUE&&Dc.isNumber(e)){var n=s.xTickAmount;s.xAxisScale=this.linearScale(t,e,n,0,i.config.xaxis.stepSize)}else s.xAxisScale=this.linearScale(0,10,10);return s.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var t=this,e=this.w.config,i=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var s=i.seriesYAxisMap,n=i.minYArr,a=i.maxYArr;i.allSeriesCollapsed=!0,i.barGroups=[],s.forEach(function(s,r){var o=[];s.forEach(function(t){var i,s=null===(i=e.series[t])||void 0===i?void 0:i.group;o.indexOf(s)<0&&o.push(s)}),s.length>0?function(){var l,c,h=Number.MAX_VALUE,d=-Number.MAX_VALUE,u=h,p=d;if(e.chart.stacked)!function(){var t=new Array(i.dataPoints).fill(0),n=[],a=[],g=[];o.forEach(function(){n.push(t.map(function(){return Number.MIN_VALUE})),a.push(t.map(function(){return Number.MIN_VALUE})),g.push(t.map(function(){return Number.MIN_VALUE}))});for(var f=function(t){!l&&e.series[s[t]].type&&(l=e.series[s[t]].type);var h=s[t];c=e.series[h].group?e.series[h].group:"axis-".concat(r),!(i.collapsedSeriesIndices.indexOf(h)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(h)<0)||(i.allSeriesCollapsed=!1,o.forEach(function(t,s){if(e.series[h].group===t)for(var r=0;r<i.series[h].length;r++){var o=i.series[h][r];o>=0?a[s][r]+=o:g[s][r]+=o,n[s][r]+=o,u=Math.min(u,o),p=Math.max(p,o)}})),"bar"!==l&&"column"!==l||i.barGroups.push(c)},m=0;m<s.length;m++)f(m);l||(l=e.chart.type),"bar"===l||"column"===l?o.forEach(function(t,e){h=Math.min(h,Math.min.apply(null,g[e])),d=Math.max(d,Math.max.apply(null,a[e]))}):(o.forEach(function(t,e){u=Math.min(u,Math.min.apply(null,n[e])),p=Math.max(p,Math.max.apply(null,n[e]))}),h=u,d=p),h===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}();else for(var g=0;g<s.length;g++){var f=s[g];h=Math.min(h,n[f]),d=Math.max(d,a[f]),!(i.collapsedSeriesIndices.indexOf(f)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(f)<0)||(i.allSeriesCollapsed=!1)}void 0!==e.yaxis[r].min&&(h="function"==typeof e.yaxis[r].min?e.yaxis[r].min(h):e.yaxis[r].min),void 0!==e.yaxis[r].max&&(d="function"==typeof e.yaxis[r].max?e.yaxis[r].max(d):e.yaxis[r].max),i.barGroups=i.barGroups.filter(function(t,e,i){return i.indexOf(t)===e}),t.setYScaleForIndex(r,h,d),s.forEach(function(t){n[t]=i.yAxisScale[r].niceMin,a[t]=i.yAxisScale[r].niceMax})}():t.setYScaleForIndex(r,0,-Number.MAX_VALUE)})}}]),t}(),gp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.scales=new pp(e)}return wc(t,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this.w.config,a=this.w.globals,r=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===s&&(s=t+1);var l=a.series,c=l,h=l;"candlestick"===n.chart.type?(c=a.seriesCandleL,h=a.seriesCandleH):"boxPlot"===n.chart.type?(c=a.seriesCandleO,h=a.seriesCandleC):a.isRangeData&&(c=a.seriesRangeStart,h=a.seriesRangeEnd);var d=!1;if(a.seriesX.length>=s){var u,p=null===(u=a.brushSource)||void 0===u?void 0:u.w.config.chart.brush;(n.chart.zoom.enabled&&n.chart.zoom.autoScaleYaxis||null!=p&&p.enabled&&null!=p&&p.autoScaleYaxis)&&(d=!0)}for(var g=t;g<s;g++){a.dataPoints=Math.max(a.dataPoints,l[g].length);var f=n.series[g].type;a.categoryLabels.length&&(a.dataPoints=a.categoryLabels.filter(function(t){return void 0!==t}).length),a.labels.length&&"datetime"!==n.xaxis.type&&0!==a.series.reduce(function(t,e){return t+e.length},0)&&(a.dataPoints=Math.max(a.dataPoints,a.labels.length));var m=0,x=l[g].length-1;if(d){if(n.xaxis.min)for(;m<x&&a.seriesX[g][m]<n.xaxis.min;m++);if(n.xaxis.max)for(;x>m&&a.seriesX[g][x]>n.xaxis.max;x--);}for(var b=m;b<=x&&b<a.series[g].length;b++){var v=l[g][b];if(null!==v&&Dc.isNumber(v)){var y,w,A,k;switch(void 0!==(null===(y=h[g])||void 0===y?void 0:y[b])&&(r=Math.max(r,h[g][b]),e=Math.min(e,h[g][b])),void 0!==(null===(w=c[g])||void 0===w?void 0:w[b])&&(e=Math.min(e,c[g][b]),i=Math.max(i,c[g][b])),f){case"candlestick":void 0!==a.seriesCandleC[g][b]&&(r=Math.max(r,a.seriesCandleH[g][b]),e=Math.min(e,a.seriesCandleL[g][b]));break;case"boxPlot":void 0!==a.seriesCandleC[g][b]&&(r=Math.max(r,a.seriesCandleC[g][b]),e=Math.min(e,a.seriesCandleO[g][b]))}f&&"candlestick"!==f&&"boxPlot"!==f&&"rangeArea"!==f&&"rangeBar"!==f&&(r=Math.max(r,a.series[g][b]),e=Math.min(e,a.series[g][b])),a.seriesGoals[g]&&a.seriesGoals[g][b]&&Array.isArray(a.seriesGoals[g][b])&&a.seriesGoals[g][b].forEach(function(t){r=Math.max(r,t.value),e=Math.min(e,t.value)}),i=r,v=Dc.noExponents(v),Dc.isFloat(v)&&(a.yValueDecimal=Math.max(a.yValueDecimal,v.toString().split(".")[1].length)),o>(null===(A=c[g])||void 0===A?void 0:A[b])&&(null===(k=c[g])||void 0===k?void 0:k[b])<0&&(o=c[g][b])}else a.hasNullValues=!0}"bar"!==f&&"column"!==f||(o<0&&r<0&&(r=0,i=Math.max(i,0)),o===Number.MIN_VALUE&&(o=0,e=Math.min(e,0)))}return"rangeBar"===n.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(o=e),"bar"===n.chart.type&&(o<0&&r<0&&(r=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:r,lowestY:e,highestY:i}}},{key:"setYRange",value:function(){var t=this.w.globals,e=this.w.config;t.maxY=-Number.MAX_VALUE,t.minY=Number.MIN_VALUE;var i,s=Number.MAX_VALUE;if(t.isMultipleYAxis){s=Number.MAX_VALUE;for(var n=0;n<t.series.length;n++)i=this.getMinYMaxY(n),t.minYArr[n]=i.lowestY,t.maxYArr[n]=i.highestY,s=Math.min(s,i.lowestY)}return i=this.getMinYMaxY(0,s,null,t.series.length),"bar"===e.chart.type?(t.minY=i.minY,t.maxY=i.maxY):(t.minY=i.lowestY,t.maxY=i.highestY),s=i.lowestY,e.chart.stacked&&this._setStackedMinMax(),"line"===e.chart.type||"area"===e.chart.type||"scatter"===e.chart.type||"candlestick"===e.chart.type||"boxPlot"===e.chart.type||"rangeBar"===e.chart.type&&!t.isBarHorizontal?t.minY===Number.MIN_VALUE&&s!==-Number.MAX_VALUE&&s!==t.maxY&&(t.minY=s):t.minY=t.minY!==Number.MIN_VALUE?Math.min(i.minY,t.minY):i.minY,e.yaxis.forEach(function(e,i){void 0!==e.max&&("number"==typeof e.max?t.maxYArr[i]=e.max:"function"==typeof e.max&&(t.maxYArr[i]=e.max(t.isMultipleYAxis?t.maxYArr[i]:t.maxY)),t.maxY=t.maxYArr[i]),void 0!==e.min&&("number"==typeof e.min?t.minYArr[i]=e.min:"function"==typeof e.min&&(t.minYArr[i]=e.min(t.isMultipleYAxis?t.minYArr[i]===Number.MIN_VALUE?0:t.minYArr[i]:t.minY)),t.minY=t.minYArr[i])}),t.isBarHorizontal&&["min","max"].forEach(function(i){void 0!==e.xaxis[i]&&"number"==typeof e.xaxis[i]&&("min"===i?t.minY=e.xaxis[i]:t.maxY=e.xaxis[i])}),t.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),t.minY=s):(this.scales.setYScaleForIndex(0,t.minY,t.maxY),t.minY=t.yAxisScale[0].niceMin,t.maxY=t.yAxisScale[0].niceMax,t.minYArr[0]=t.minY,t.maxYArr[0]=t.maxY),t.barGroups=[],t.lineGroups=[],t.areaGroups=[],e.series.forEach(function(i){switch(i.type||e.chart.type){case"bar":case"column":t.barGroups.push(i.group);break;case"line":t.lineGroups.push(i.group);break;case"area":t.areaGroups.push(i.group)}}),t.barGroups=t.barGroups.filter(function(t,e,i){return i.indexOf(t)===e}),t.lineGroups=t.lineGroups.filter(function(t,e,i){return i.indexOf(t)===e}),t.areaGroups=t.areaGroups.filter(function(t,e,i){return i.indexOf(t)===e}),{minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,yAxisScale:t.yAxisScale}}},{key:"setXRange",value:function(){var t=this.w.globals,e=this.w.config,i="numeric"===e.xaxis.type||"datetime"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided||t.noLabelsProvided||t.isXNumeric;if(t.isXNumeric&&function(){for(var e=0;e<t.series.length;e++)if(t.labels[e])for(var i=0;i<t.labels[e].length;i++)null!==t.labels[e][i]&&Dc.isNumber(t.labels[e][i])&&(t.maxX=Math.max(t.maxX,t.labels[e][i]),t.initialMaxX=Math.max(t.maxX,t.labels[e][i]),t.minX=Math.min(t.minX,t.labels[e][i]),t.initialMinX=Math.min(t.minX,t.labels[e][i]))}(),t.noLabelsProvided&&0===e.xaxis.categories.length&&(t.maxX=t.labels[t.labels.length-1],t.initialMaxX=t.labels[t.labels.length-1],t.minX=1,t.initialMinX=1),t.isXNumeric||t.noLabelsProvided||t.dataFormatXNumeric){var s=10;if(void 0===e.xaxis.tickAmount)s=Math.round(t.svgWidth/150),"numeric"===e.xaxis.type&&t.dataPoints<30&&(s=t.dataPoints-1),s>t.dataPoints&&0!==t.dataPoints&&(s=t.dataPoints-1);else if("dataPoints"===e.xaxis.tickAmount){if(t.series.length>1&&(s=t.series[t.maxValsInArrayIndex].length-1),t.isXNumeric){var n=Math.round(t.maxX-t.minX);n<30&&(s=n-1)}}else s=e.xaxis.tickAmount;if(t.xTickAmount=s,void 0!==e.xaxis.max&&"number"==typeof e.xaxis.max&&(t.maxX=e.xaxis.max),void 0!==e.xaxis.min&&"number"==typeof e.xaxis.min&&(t.minX=e.xaxis.min),void 0!==e.xaxis.range&&(t.minX=t.maxX-e.xaxis.range),t.minX!==Number.MAX_VALUE&&t.maxX!==-Number.MAX_VALUE)if(e.xaxis.convertedCatToNumeric&&!t.dataFormatXNumeric){for(var a=[],r=t.minX-1;r<t.maxX;r++)a.push(r+1);t.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else t.xAxisScale=this.scales.setXScale(t.minX,t.maxX);else t.xAxisScale=this.scales.linearScale(0,s,s,0,e.xaxis.stepSize),t.noLabelsProvided&&t.labels.length>0&&(t.xAxisScale=this.scales.linearScale(1,t.labels.length,s-1,0,e.xaxis.stepSize),t.seriesX=t.labels.slice());i&&(t.labels=t.xAxisScale.result.slice())}return t.isBarHorizontal&&t.labels.length&&(t.xTickAmount=t.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:t.minX,maxX:t.maxX}}},{key:"setZRange",value:function(){var t=this.w.globals;if(t.isDataXYZ)for(var e=0;e<t.series.length;e++)if(void 0!==t.seriesZ[e])for(var i=0;i<t.seriesZ[e].length;i++)null!==t.seriesZ[e][i]&&Dc.isNumber(t.seriesZ[e][i])&&(t.maxZ=Math.max(t.maxZ,t.seriesZ[e][i]),t.minZ=Math.min(t.minZ,t.seriesZ[e][i]))}},{key:"_handleSingleDataPoint",value:function(){var t=this.w.globals,e=this.w.config;if(t.minX===t.maxX){var i=new ju(this.ctx);if("datetime"===e.xaxis.type){var s=i.getDate(t.minX);e.xaxis.labels.datetimeUTC?s.setUTCDate(s.getUTCDate()-2):s.setDate(s.getDate()-2),t.minX=new Date(s).getTime();var n=i.getDate(t.maxX);e.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()+2):n.setDate(n.getDate()+2),t.maxX=new Date(n).getTime()}else("numeric"===e.xaxis.type||"category"===e.xaxis.type&&!t.noLabelsProvided)&&(t.minX=t.minX-2,t.initialMinX=t.minX,t.maxX=t.maxX+2,t.initialMaxX=t.maxX)}}},{key:"_getMinXDiff",value:function(){var t=this.w.globals;t.isXNumeric&&t.seriesX.forEach(function(e,i){if(e.length){1===e.length&&e.push(t.seriesX[t.maxValsInArrayIndex][t.seriesX[t.maxValsInArrayIndex].length-1]);var s=e.slice();s.sort(function(t,e){return t-e}),s.forEach(function(e,i){if(i>0){var n=e-s[i-1];n>0&&(t.minXDiff=Math.min(n,t.minXDiff))}}),1!==t.dataPoints&&t.minXDiff!==Number.MAX_VALUE||(t.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var t=this,e=this.w.globals;if(e.series.length){var i=e.seriesGroups;i.length||(i=[this.w.globals.seriesNames.map(function(t){return t})]);var s={},n={};i.forEach(function(i){s[i]=[],n[i]=[],t.w.config.series.map(function(t,s){return i.indexOf(e.seriesNames[s])>-1?s:null}).filter(function(t){return null!==t}).forEach(function(a){for(var r=0;r<e.series[e.maxValsInArrayIndex].length;r++){var o,l,c,h;void 0===s[i][r]&&(s[i][r]=0,n[i][r]=0),(t.w.config.chart.stacked&&!e.comboCharts||t.w.config.chart.stacked&&e.comboCharts&&(!t.w.config.chart.stackOnlyBar||"bar"===(null===(o=t.w.config.series)||void 0===o||null===(l=o[a])||void 0===l?void 0:l.type)||"column"===(null===(c=t.w.config.series)||void 0===c||null===(h=c[a])||void 0===h?void 0:h.type)))&&null!==e.series[a][r]&&Dc.isNumber(e.series[a][r])&&(e.series[a][r]>0?s[i][r]+=parseFloat(e.series[a][r])+1e-4:n[i][r]+=parseFloat(e.series[a][r]))}})}),Object.entries(s).forEach(function(t){var i=Pc(t,1)[0];s[i].forEach(function(t,a){e.maxY=Math.max(e.maxY,s[i][a]),e.minY=Math.min(e.minY,n[i][a])})})}}}]),t}(),fp=function(){function t(e,i){vc(this,t),this.ctx=e,this.elgrid=i,this.w=e.w;var s=this.w;this.xaxisFontSize=s.config.xaxis.labels.style.fontSize,this.axisFontFamily=s.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=s.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===s.config.chart.type&&s.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===s.config.xaxis.position?s.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Gu(e)}return wc(t,[{key:"drawYaxis",value:function(t){var e=this.w,i=new Nu(this.ctx),s=e.config.yaxis[t].labels.style,n=s.fontSize,a=s.fontFamily,r=s.fontWeight,o=i.group({class:"apexcharts-yaxis",rel:t,transform:"translate(".concat(e.globals.translateYAxisX[t],", 0)")});if(this.axesUtils.isYAxisHidden(t))return o;var l=i.group({class:"apexcharts-yaxis-texts-g"});o.add(l);var c=e.globals.yAxisScale[t].result.length-1,h=e.globals.gridHeight/c,d=e.globals.yLabelFormatters[t],u=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice());if(e.config.yaxis[t].labels.show){var p=e.globals.translateY+e.config.yaxis[t].labels.offsetY;e.globals.isBarHorizontal?p=0:"heatmap"===e.config.chart.type&&(p-=h/2),p+=parseInt(n,10)/3;for(var g=c;g>=0;g--){var f=d(u[g],g,e),m=e.config.yaxis[t].labels.padding;e.config.yaxis[t].opposite&&0!==e.config.yaxis.length&&(m*=-1);var x=this.getTextAnchor(e.config.yaxis[t].labels.align,e.config.yaxis[t].opposite),b=this.axesUtils.getYAxisForeColor(s.colors,t),v=Array.isArray(b)?b[g]:b,y=Dc.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-label tspan"))).map(function(t){return t.textContent}),w=i.drawText({x:m,y:p,text:y.includes(f)&&!e.config.yaxis[t].labels.showDuplicates?"":f,textAnchor:x,fontSize:n,fontFamily:a,fontWeight:r,maxWidth:e.config.yaxis[t].labels.maxWidth,foreColor:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(s.cssClass)});l.add(w),this.addTooltip(w,f),0!==e.config.yaxis[t].labels.rotate&&this.rotateLabel(i,w,firstLabel,e.config.yaxis[t].labels.rotate),p+=h}}return this.addYAxisTitle(i,o,t),this.addAxisBorder(i,o,t,c,h),o}},{key:"getTextAnchor",value:function(t,e){return"left"===t?"start":"center"===t?"middle":"right"===t?"end":e?"start":"end"}},{key:"addTooltip",value:function(t,e){var i=document.createElementNS(this.w.globals.SVGNS,"title");i.textContent=Array.isArray(e)?e.join(" "):e,t.node.appendChild(i)}},{key:"rotateLabel",value:function(t,e,i,s){var n=t.rotateAroundCenter(i.node),a=t.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(".concat(s," ").concat(n.x," ").concat(a.y,")"))}},{key:"addYAxisTitle",value:function(t,e,i){var s=this.w;if(void 0!==s.config.yaxis[i].title.text){var n=t.group({class:"apexcharts-yaxis-title"}),a=s.config.yaxis[i].opposite?s.globals.translateYAxisX[i]:0,r=t.drawText({x:a,y:s.globals.gridHeight/2+s.globals.translateY+s.config.yaxis[i].title.offsetY,text:s.config.yaxis[i].title.text,textAnchor:"end",foreColor:s.config.yaxis[i].title.style.color,fontSize:s.config.yaxis[i].title.style.fontSize,fontWeight:s.config.yaxis[i].title.style.fontWeight,fontFamily:s.config.yaxis[i].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(s.config.yaxis[i].title.style.cssClass)});n.add(r),e.add(n)}}},{key:"addAxisBorder",value:function(t,e,i,s,n){var a=this.w,r=a.config.yaxis[i].axisBorder,o=31+r.offsetX;if(a.config.yaxis[i].opposite&&(o=-31-r.offsetX),r.show){var l=t.drawLine(o,a.globals.translateY+r.offsetY-2,o,a.globals.gridHeight+a.globals.translateY+r.offsetY+2,r.color,0,r.width);e.add(l)}a.config.yaxis[i].axisTicks.show&&this.axesUtils.drawYAxisTicks(o,s,r,a.config.yaxis[i].axisTicks,i,n,e)}},{key:"drawYaxisInversed",value:function(t){var e=this.w,i=new Nu(this.ctx),s=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),n=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});s.add(n);var a=e.globals.yAxisScale[t].result.length-1,r=e.globals.gridWidth/a+.1,o=r+e.config.xaxis.labels.offsetX,l=e.globals.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(t,e.globals.yAxisScale[t].result.slice()),h=e.globals.timescaleLabels;if(h.length>0&&(this.xaxisLabels=h.slice(),a=(c=h.slice()).length),e.config.xaxis.labels.show)for(var d=h.length?0:a;h.length?d<h.length:d>=0;h.length?d++:d--){var u=l(c[d],d,e),p=e.globals.gridWidth+e.globals.padHorizontal-(o-r+e.config.xaxis.labels.offsetX);if(h.length){var g=this.axesUtils.getLabel(c,h,p,d,this.drawnLabels,this.xaxisFontSize);p=g.x,u=g.text,this.drawnLabels.push(g.text),0===d&&e.globals.skipFirstTimelinelabel&&(u=""),d===c.length-1&&e.globals.skipLastTimelinelabel&&(u="")}var f=i.drawText({x:p,y:this.xAxisoffX+e.config.xaxis.labels.offsetY+30-("top"===e.config.xaxis.position?e.globals.xAxisHeight+e.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[t]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:e.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(e.config.xaxis.labels.style.cssClass)});n.add(f),f.tspan(u),this.addTooltip(f,u),o+=r}return this.inversedYAxisTitleText(s),this.inversedYAxisBorder(s),s}},{key:"inversedYAxisBorder",value:function(t){var e=this.w,i=new Nu(this.ctx),s=e.config.xaxis.axisBorder;if(s.show){var n=0;"bar"===e.config.chart.type&&e.globals.isXNumeric&&(n-=15);var a=i.drawLine(e.globals.padHorizontal+n+s.offsetX,this.xAxisoffX,e.globals.gridWidth,this.xAxisoffX,s.color,0,s.height);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(a):t.add(a)}}},{key:"inversedYAxisTitleText",value:function(t){var e=this.w,i=new Nu(this.ctx);if(void 0!==e.config.xaxis.title.text){var s=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),n=i.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(e.config.xaxis.title.style.fontSize)+e.config.xaxis.title.offsetY+20,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(e.config.xaxis.title.style.cssClass)});s.add(n),t.add(s)}}},{key:"yAxisTitleRotate",value:function(t,e){var i=this.w,s=new Nu(this.ctx),n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-texts-g")),a=n?n.getBoundingClientRect():{width:0,height:0},r=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(t,"'] .apexcharts-yaxis-title text")),o=r?r.getBoundingClientRect():{width:0,height:0};if(r){var l=this.xPaddingForYAxisTitle(t,a,o,e);r.setAttribute("x",l.xPos-(e?10:0));var c=s.rotateAroundCenter(r);r.setAttribute("transform","rotate(".concat(e?-1*i.config.yaxis[t].title.rotate:i.config.yaxis[t].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(t,e,i,s){var n=this.w,a=0,r=10;return void 0===n.config.yaxis[t].title.text||t<0?{xPos:a,padd:0}:(s?a=e.width+n.config.yaxis[t].title.offsetX+i.width/2+r/2:(a=-1*e.width+n.config.yaxis[t].title.offsetX+r/2+i.width/2,n.globals.isBarHorizontal&&(r=25,a=-1*e.width-n.config.yaxis[t].title.offsetX-r)),{xPos:a,padd:r})}},{key:"setYAxisXPosition",value:function(t,e){var i=this.w,s=0,n=0,a=18,r=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.forEach(function(o,l){var c=i.globals.ignoreYAxisIndexes.includes(l)||!o.show||o.floating||0===t[l].width,h=t[l].width+e[l].width;o.opposite?i.globals.isBarHorizontal?(n=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=n-o.labels.offsetX):(n=i.globals.gridWidth+i.globals.translateX+r,c||(r+=h+20),i.globals.translateYAxisX[l]=n-o.labels.offsetX+20):(s=i.globals.translateX-a,c||(a+=h+20),i.globals.translateYAxisX[l]=s+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var t=this.w;Dc.listToArray(t.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(e,i){var s=t.config.yaxis[i];if(s&&!s.floating&&void 0!==s.labels.align){var n=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),a=Dc.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"))),r=n.getBoundingClientRect();a.forEach(function(t){t.setAttribute("text-anchor",s.labels.align)}),"left"!==s.labels.align||s.opposite?"center"===s.labels.align?n.setAttribute("transform","translate(".concat(r.width/2*(s.opposite?1:-1),", 0)")):"right"===s.labels.align&&s.opposite&&n.setAttribute("transform","translate(".concat(r.width,", 0)")):n.setAttribute("transform","translate(-".concat(r.width,", 0)"))}})}}]),t}(),mp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.documentEvent=Dc.bind(this.documentEvent,this)}return wc(t,[{key:"addEventListener",value:function(t,e){var i=this.w;i.globals.events.hasOwnProperty(t)?i.globals.events[t].push(e):i.globals.events[t]=[e]}},{key:"removeEventListener",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){var s=i.globals.events[t].indexOf(e);-1!==s&&i.globals.events[t].splice(s,1)}}},{key:"fireEvent",value:function(t,e){var i=this.w;if(i.globals.events.hasOwnProperty(t)){e&&e.length||(e=[]);for(var s=i.globals.events[t],n=s.length,a=0;a<n;a++)s[a].apply(null,e)}}},{key:"setupEventHandlers",value:function(){var t=this,e=this.w,i=this.ctx,s=e.globals.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(function(t){s.addEventListener(t,function(t){var s=null===t.target.getAttribute("i")&&-1!==e.globals.capturedSeriesIndex?e.globals.capturedSeriesIndex:t.target.getAttribute("i"),n=null===t.target.getAttribute("j")&&-1!==e.globals.capturedDataPointIndex?e.globals.capturedDataPointIndex:t.target.getAttribute("j"),a=Object.assign({},e,{seriesIndex:e.globals.axisCharts?s:0,dataPointIndex:n});"mousemove"===t.type||"touchmove"===t.type?"function"==typeof e.config.chart.events.mouseMove&&e.config.chart.events.mouseMove(t,i,a):"mouseleave"===t.type||"touchleave"===t.type?"function"==typeof e.config.chart.events.mouseLeave&&e.config.chart.events.mouseLeave(t,i,a):("mouseup"===t.type&&1===t.which||"touchend"===t.type)&&("function"==typeof e.config.chart.events.click&&e.config.chart.events.click(t,i,a),i.ctx.events.fireEvent("click",[t,i,a]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(i){e.globals.dom.baseEl.addEventListener(i,t.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(t){var e=this.w,i=t.target.className;if("click"===t.type){var s=e.globals.dom.baseEl.querySelector(".apexcharts-menu");s&&s.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&s.classList.remove("apexcharts-menu-open")}e.globals.clientX="touchmove"===t.type?t.touches[0].clientX:t.clientX,e.globals.clientY="touchmove"===t.type?t.touches[0].clientY:t.clientY}}]),t}(),xp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"setCurrentLocaleValues",value:function(t){var e=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(e=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=e.filter(function(e){return e.name===t})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var s=Dc.extend(qu,i);this.w.globals.locale=s.options}}]),t}(),bp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"drawAxis",value:function(t,e){var i,s,n=this,a=this.w.globals,r=this.w.config,o=new dp(this.ctx,e),l=new fp(this.ctx,e);a.axisCharts&&"radar"!==t&&(a.isBarHorizontal?(s=l.drawYaxisInversed(0),i=o.drawXaxisInversed(0),a.dom.elGraphical.add(i),a.dom.elGraphical.add(s)):(i=o.drawXaxis(),a.dom.elGraphical.add(i),r.yaxis.map(function(t,e){if(-1===a.ignoreYAxisIndexes.indexOf(e)&&(s=l.drawYaxis(e),a.dom.Paper.add(s),"back"===n.w.config.grid.position)){var i=a.dom.Paper.children()[1];i.remove(),a.dom.Paper.add(i)}})))}}]),t}(),vp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"drawXCrosshairs",value:function(){var t=this.w,e=new Nu(this.ctx),i=new Hu(this.ctx),s=t.config.xaxis.crosshairs.fill.gradient,n=t.config.xaxis.crosshairs.dropShadow,a=t.config.xaxis.crosshairs.fill.type,r=s.colorFrom,o=s.colorTo,l=s.opacityFrom,c=s.opacityTo,h=s.stops,d=n.enabled,u=n.left,p=n.top,g=n.blur,f=n.color,m=n.opacity,x=t.config.xaxis.crosshairs.fill.color;if(t.config.xaxis.crosshairs.show){"gradient"===a&&(x=e.drawGradient("vertical",r,o,l,c,null,h,null));var b=e.drawRect();1===t.config.xaxis.crosshairs.width&&(b=e.drawLine());var v=t.globals.gridHeight;(!Dc.isNumber(v)||v<0)&&(v=0);var y=t.config.xaxis.crosshairs.width;(!Dc.isNumber(y)||y<0)&&(y=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:y,height:v,fill:x,filter:"none","fill-opacity":t.config.xaxis.crosshairs.opacity,stroke:t.config.xaxis.crosshairs.stroke.color,"stroke-width":t.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":t.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=i.dropShadow(b,{left:u,top:p,blur:g,color:f,opacity:m})),t.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var t=this.w,e=new Nu(this.ctx),i=t.config.yaxis[0].crosshairs,s=t.globals.barPadForNumericAxis;if(t.config.yaxis[0].crosshairs.show){var n=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);n.attr({class:"apexcharts-ycrosshairs"}),t.globals.dom.elGraphical.add(n)}var a=e.drawLine(-s,0,t.globals.gridWidth+s,0,i.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),t.globals.dom.elGraphical.add(a)}}]),t}(),yp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"checkResponsiveConfig",value:function(t){var e=this,i=this.w,s=i.config;if(0!==s.responsive.length){var n=s.responsive.slice();n.sort(function(t,e){return t.breakpoint>e.breakpoint?1:e.breakpoint>t.breakpoint?-1:0}).reverse();var a=new ep({}),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=n[0].breakpoint,r=window.innerWidth>0?window.innerWidth:screen.width;if(r>s){var o=Dc.clone(i.globals.initialConfig);o.series=Dc.clone(i.config.series);var l=Yu.extendArrayProps(a,o,i);t=Dc.extend(l,t),t=Dc.extend(i.config,t),e.overrideResponsiveOptions(t)}else for(var c=0;c<n.length;c++)r<n[c].breakpoint&&(t=Yu.extendArrayProps(a,n[c].options,i),t=Dc.extend(i.config,t),e.overrideResponsiveOptions(t))};if(t){var o=Yu.extendArrayProps(a,t,i);o=Dc.extend(i.config,o),r(o=Dc.extend(o,t))}else r({})}}},{key:"overrideResponsiveOptions",value:function(t){var e=new ep(t).init({responsiveOverride:!0});this.w.config=e}}]),t}(),wp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return wc(t,[{key:"checkHeatmapDistributed",value:function(){var t=this.w.config,e=t.chart,i=t.plotOptions;return"treemap"===e.type&&i.treemap&&i.treemap.distributed||"heatmap"===e.type&&i.heatmap&&i.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var t=this.w.config,e=t.chart,i=t.plotOptions;return i.bar&&i.bar.distributed&&("bar"===e.type||"rangeBar"===e.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var t=this.w,e=new Dc;t.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(t.config.theme.mode||"light"));var i=Bc(t.config.colors||t.config.fill.colors||[]);t.globals.colors=this.getColors(i),this.applySeriesColors(t.globals.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.globals.series,e));var s=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],s),this.applyDataLabelsColors(s),this.applyRadarPolygonsColors(),this.applyMarkersColors(s)}},{key:"getColors",value:function(t){var e=this,i=this.w;return t&&0!==t.length?Array.isArray(t)&&t.length>0&&"function"==typeof t[0]?(this.isColorFn=!0,i.config.series.map(function(s,n){var a=t[n]||t[0];return"function"==typeof a?a({value:i.globals.axisCharts?i.globals.series[n][0]||0:i.globals.series[n],seriesIndex:n,dataPointIndex:n,w:e.w}):a})):t:this.predefined()}},{key:"applySeriesColors",value:function(t,e){t.forEach(function(t,i){t&&(e[i]=t)})}},{key:"getMonochromeColors",value:function(t,e,i){var s=t.color,n=t.shadeIntensity,a=t.shadeTo,r=this.isBarDistributed||this.isHeatmapDistributed?e[0].length*e.length:e.length,o=1/(r/n),l=0;return Array.from({length:r},function(){var t="dark"===a?i.shadeColor(-1*l,s):i.shadeColor(l,s);return l+=o,t})}},{key:"applyColorTypes",value:function(t,e){var i=this,s=this.w;t.forEach(function(t){s.globals[t].colors=void 0===s.config[t].colors?i.isColorFn?s.config.colors:e:s.config[t].colors.slice(),i.pushExtraColors(s.globals[t].colors)})}},{key:"applyDataLabelsColors",value:function(t){var e=this.w;e.globals.dataLabels.style.colors=void 0===e.config.dataLabels.style.colors?t:e.config.dataLabels.style.colors.slice(),this.pushExtraColors(e.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var t=this.w;t.globals.radarPolygons.fill.colors=void 0===t.config.plotOptions.radar.polygons.fill.colors?["dark"===t.config.theme.mode?"#343A3F":"none"]:t.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(t.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(t){var e=this.w;e.globals.markers.colors=void 0===e.config.markers.colors?t:e.config.markers.colors.slice(),this.pushExtraColors(e.globals.markers.colors)}},{key:"pushExtraColors",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,n=e||s.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===s.config.chart.type&&s.config.plotOptions.heatmap&&s.config.plotOptions.heatmap.colorScale.inverse),i&&s.globals.series.length&&(n=s.globals.series[s.globals.maxValsInArrayIndex].length*s.globals.series.length),t.length<n)for(var a=n-t.length,r=0;r<a;r++)t.push(t[r])}},{key:"updateThemeOptions",value:function(t){t.chart=t.chart||{},t.tooltip=t.tooltip||{};var e=t.theme.mode,i="dark"===e?"palette4":"light"===e?"palette1":t.theme.palette||"palette1",s="dark"===e?"#f6f7f8":"light"===e?"#373d3f":t.chart.foreColor||"#373d3f";return t.tooltip.theme=e||"light",t.chart.foreColor=s,t.theme.palette=i,t}},{key:"predefined",value:function(){var t={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return t[this.w.config.theme.palette]||t.default}}]),t}(),Ap=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(t){var e=this.w,i="title"===t?e.config.title:e.config.subtitle,s=e.globals.svgWidth/2,n=i.offsetY,a="middle";if("left"===i.align?(s=10,a="start"):"right"===i.align&&(s=e.globals.svgWidth-10,a="end"),s+=i.offsetX,n=n+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var r=new Nu(this.ctx).drawText({x:s,y:n,text:i.text,textAnchor:a,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});r.node.setAttribute("class","apexcharts-".concat(t,"-text")),e.globals.dom.Paper.add(r)}}}]),t}(),kp=function(){function t(e){vc(this,t),this.w=e.w,this.dCtx=e}return wc(t,[{key:"getTitleSubtitleCoords",value:function(t){var e=this.w,i=0,s=0,n="title"===t?e.config.title.floating:e.config.subtitle.floating,a=e.globals.dom.baseEl.querySelector(".apexcharts-".concat(t,"-text"));if(null!==a&&!n){var r=a.getBoundingClientRect();i=r.width,s=e.globals.axisCharts?r.height+5:r.height}return{width:i,height:s}}},{key:"getLegendsRect",value:function(){var t=this.w,e=t.globals.dom.elLegendWrap;t.config.legend.height||"top"!==t.config.legend.position&&"bottom"!==t.config.legend.position||(e.style.maxHeight=t.globals.svgHeight/2+"px");var i=Object.assign({},Dc.getBoundingClientRect(e));return null!==e&&!t.config.legend.floating&&t.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==t.config.legend.position&&"right"!==t.config.legend.position||1.5*this.dCtx.lgRect.width>t.globals.svgWidth&&(this.dCtx.lgRect.width=t.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var t=this,e=this.w,i=[];e.config.series.forEach(function(n,a){n.data.forEach(function(n,r){var o;o=e.globals.series[a][r],s=e.config.dataLabels.formatter(o,{ctx:t.dCtx.ctx,seriesIndex:a,dataPointIndex:r,w:e}),i.push(s)})});var s=Dc.getLargestStringFromArr(i),n=new Nu(this.dCtx.ctx),a=e.config.dataLabels.style,r=n.getTextRects(s,parseInt(a.fontSize),a.fontFamily);return{width:1.05*r.width,height:r.height}}},{key:"getLargestStringFromMultiArr",value:function(t,e){var i=t;if(this.w.globals.isMultiLineX){var s=e.map(function(t,e){return Array.isArray(t)?t.length:1}),n=Math.max.apply(Math,Bc(s));i=e[s.indexOf(n)]}return i}}]),t}(),Cp=function(){function t(e){vc(this,t),this.w=e.w,this.dCtx=e}return wc(t,[{key:"getxAxisLabelsCoords",value:function(){var t,e=this.w,i=e.globals.labels.slice();if(e.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=e.globals.categoryLabels),e.globals.timescaleLabels.length>0){var s=this.getxAxisTimeScaleLabelsCoords();t={width:s.width,height:s.height},e.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==e.config.legend.position&&"right"!==e.config.legend.position||e.config.legend.floating?0:this.dCtx.lgRect.width;var n=e.globals.xLabelFormatter,a=Dc.getLargestStringFromArr(i),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,i);e.globals.isBarHorizontal&&(r=a=e.globals.yAxisScale[0].result.reduce(function(t,e){return t.length>e.length?t:e},0));var o=new Vu(this.dCtx.ctx),l=a;a=o.xLabelFormat(n,a,l,{i:void 0,dateFormatter:new ju(this.dCtx.ctx).formatDate,w:e}),r=o.xLabelFormat(n,r,l,{i:void 0,dateFormatter:new ju(this.dCtx.ctx).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(r=a="1");var c=new Nu(this.dCtx.ctx),h=c.getTextRects(a,e.config.xaxis.labels.style.fontSize),d=h;if(a!==r&&(d=c.getTextRects(r,e.config.xaxis.labels.style.fontSize)),(t={width:h.width>=d.width?h.width:d.width,height:h.height>=d.height?h.height:d.height}).width*i.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==e.config.xaxis.labels.rotate||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.globals.rotateXLabels=!0;var u=function(t){return c.getTextRects(t,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,"rotate(".concat(e.config.xaxis.labels.rotate," 0 0)"),!1)};h=u(a),a!==r&&(d=u(r)),t.height=(h.height>d.height?h.height:d.height)/1.5,t.width=h.width>d.width?h.width:d.width}}else e.globals.rotateXLabels=!1}return e.config.xaxis.labels.show||(t={width:0,height:0}),{width:t.width,height:t.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var t,e=this.w;if(!e.globals.hasXaxisGroups)return{width:0,height:0};var i,s=(null===(t=e.config.xaxis.group.style)||void 0===t?void 0:t.fontSize)||e.config.xaxis.labels.style.fontSize,n=e.globals.groups.map(function(t){return t.title}),a=Dc.getLargestStringFromArr(n),r=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,n),o=new Nu(this.dCtx.ctx),l=o.getTextRects(a,s),c=l;return a!==r&&(c=o.getTextRects(r,s)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},e.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var t=this.w,e=0,i=0;if(void 0!==t.config.xaxis.title.text){var s=new Nu(this.dCtx.ctx).getTextRects(t.config.xaxis.title.text,t.config.xaxis.title.style.fontSize);e=s.width,i=s.height}return{width:e,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var t,e=this.w;this.dCtx.timescaleLabels=e.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(t){return t.value}),s=i.reduce(function(t,e){return void 0===t?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):t.length>e.length?t:e},0);return 1.05*(t=new Nu(this.dCtx.ctx).getTextRects(s,e.config.xaxis.labels.style.fontSize)).width*i.length>e.globals.gridWidth&&0!==e.config.xaxis.labels.rotate&&(e.globals.overlappingXLabels=!0),t}},{key:"additionalPaddingXLabels",value:function(t){var e=this,i=this.w,s=i.globals,n=i.config,a=n.xaxis.type,r=t.width;s.skipLastTimelinelabel=!1,s.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(t,o){n.yaxis.length>1&&function(t){return-1!==s.collapsedSeriesIndices.indexOf(t)}(o)||function(t){if(e.dCtx.timescaleLabels&&e.dCtx.timescaleLabels.length){var o=e.dCtx.timescaleLabels[0],l=e.dCtx.timescaleLabels[e.dCtx.timescaleLabels.length-1].position+r/1.75-e.dCtx.yAxisWidthRight,c=o.position-r/1.75+e.dCtx.yAxisWidthLeft,h="right"===i.config.legend.position&&e.dCtx.lgRect.width>0?e.dCtx.lgRect.width:0;l>s.svgWidth-s.translateX-h&&(s.skipLastTimelinelabel=!0),c<-(t.show&&!t.floating||"bar"!==n.chart.type&&"candlestick"!==n.chart.type&&"rangeBar"!==n.chart.type&&"boxPlot"!==n.chart.type?10:r/1.75)&&(s.skipFirstTimelinelabel=!0)}else"datetime"===a?e.dCtx.gridPad.right<r&&!s.rotateXLabels&&(s.skipLastTimelinelabel=!0):"datetime"!==a&&e.dCtx.gridPad.right<r/2-e.dCtx.yAxisWidthRight&&!s.rotateXLabels&&!i.config.xaxis.labels.trim&&(e.dCtx.xPadRight=r/2+1)}(t)};n.yaxis.forEach(function(t,i){o?(e.dCtx.gridPad.left<r&&(e.dCtx.xPadLeft=r/2+1),e.dCtx.xPadRight=r/2+1):l(t,i)})}}]),t}(),_p=function(){function t(e){vc(this,t),this.w=e.w,this.dCtx=e}return wc(t,[{key:"getyAxisLabelsCoords",value:function(){var t=this,e=this.w,i=[],s=10,n=new Gu(this.dCtx.ctx);return e.config.yaxis.map(function(a,r){var o={seriesIndex:r,dataPointIndex:-1,w:e},l=e.globals.yAxisScale[r],c=0;if(!n.isYAxisHidden(r)&&a.labels.show&&void 0!==a.labels.minWidth&&(c=a.labels.minWidth),!n.isYAxisHidden(r)&&a.labels.show&&l.result.length){var h=e.globals.yLabelFormatters[r],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,u=l.result.reduce(function(t,e){var i,s;return(null===(i=String(h(t,o)))||void 0===i?void 0:i.length)>(null===(s=String(h(e,o)))||void 0===s?void 0:s.length)?t:e},d),p=u=h(u,o);if(void 0!==u&&0!==u.length||(u=l.niceMax),e.globals.isBarHorizontal){s=0;var g=e.globals.labels.slice();u=Dc.getLargestStringFromArr(g),u=h(u,{seriesIndex:r,dataPointIndex:-1,w:e}),p=t.dCtx.dimHelpers.getLargestStringFromMultiArr(u,g)}var f=new Nu(t.dCtx.ctx),m="rotate(".concat(a.labels.rotate," 0 0)"),x=f.getTextRects(u,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1),b=x;u!==p&&(b=f.getTextRects(p,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1)),i.push({width:(c>b.width||c>x.width?c:b.width>x.width?b.width:x.width)+s,height:b.height>x.height?b.height:x.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var t=this,e=this.w,i=[];return e.config.yaxis.map(function(e,s){if(e.show&&void 0!==e.title.text){var n=new Nu(t.dCtx.ctx),a="rotate(".concat(e.title.rotate," 0 0)"),r=n.getTextRects(e.title.text,e.title.style.fontSize,e.title.style.fontFamily,a,!1);i.push({width:r.width,height:r.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var t=this.w,e=0,i=0,s=0,n=t.globals.yAxisScale.length>1?10:0,a=new Gu(this.dCtx.ctx),r=function(r,o){var l=t.config.yaxis[o].floating,c=0;r.width>0&&!l?(c=r.width+n,function(e){return t.globals.ignoreYAxisIndexes.indexOf(e)>-1}(o)&&(c=c-r.width-n)):c=l||a.isYAxisHidden(o)?0:5,t.config.yaxis[o].opposite?s+=c:i+=c,e+=c};return t.globals.yLabelsCoords.map(function(t,e){r(t,e)}),t.globals.yTitleCoords.map(function(t,e){r(t,e)}),t.globals.isBarHorizontal&&!t.config.yaxis[0].floating&&(e=t.globals.yLabelsCoords[0].width+t.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=s,e}}]),t}(),Ep=function(){function t(e){vc(this,t),this.w=e.w,this.dCtx=e}return wc(t,[{key:"gridPadForColumnsInNumericAxis",value:function(t){var e=this.w,i=e.config,s=e.globals;if(s.noData||s.collapsedSeries.length+s.ancillaryCollapsedSeries.length===i.series.length)return 0;var n=function(t){return["bar","rangeBar","candlestick","boxPlot"].includes(t)},a=i.chart.type,r=0,o=n(a)?i.series.length:1;s.comboBarCount>0&&(o=s.comboBarCount),s.collapsedSeries.forEach(function(t){n(t.type)&&(o-=1)}),i.chart.stacked&&(o=1);var l=n(a)||s.comboBarCount>0,c=Math.abs(s.initialMaxX-s.initialMinX);if(l&&s.isXNumeric&&!s.isBarHorizontal&&o>0&&0!==c){c<=3&&(c=s.dataPoints);var h=c/t,d=s.minXDiff&&s.minXDiff/h>0?s.minXDiff/h:0;d>t/2&&(d/=2),(r=d*parseInt(i.plotOptions.bar.columnWidth,10)/100)<1&&(r=1),s.barPadForNumericAxis=r}return r}},{key:"gridPadFortitleSubtitle",value:function(){var t=this,e=this.w,i=e.globals,s=this.dCtx.isSparkline||!i.axisCharts?0:10;["title","subtitle"].forEach(function(n){void 0!==e.config[n].text?s+=e.config[n].margin:s+=t.dCtx.isSparkline||!i.axisCharts?0:5}),!e.config.legend.show||"bottom"!==e.config.legend.position||e.config.legend.floating||i.axisCharts||(s+=10);var n=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight-=n.height+a.height+s,i.translateY+=n.height+a.height+s}},{key:"setGridXPosForDualYAxis",value:function(t,e){var i=this.w,s=new Gu(this.dCtx.ctx);i.config.yaxis.forEach(function(n,a){-1!==i.globals.ignoreYAxisIndexes.indexOf(a)||n.floating||s.isYAxisHidden(a)||(n.opposite&&(i.globals.translateX-=e[a].width+t[a].width+parseInt(n.labels.style.fontSize,10)/1.2+12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),t}(),Sp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new kp(this),this.dimYAxis=new _p(this),this.dimXAxis=new Cp(this),this.dimGrid=new Ep(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return wc(t,[{key:"plotCoords",value:function(){var t=this,e=this.w,i=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var s=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,Bc(e.config.stroke.width)):e.config.stroke.width;this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(e){var i=Pc(e,2),s=i[0],n=i[1];t.gridPad[s]=Math.max(n,t.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(s/2,this.gridPad.top),this.gridPad.bottom=Math.max(s/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var n=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*n,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(n>0?n:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var t=this,e=this.w,i=e.globals,s=this.dimYAxis.getyAxisLabelsCoords(),n=this.dimYAxis.getyAxisTitleCoords();i.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),e.globals.yLabelsCoords=[],e.globals.yTitleCoords=[],e.config.yaxis.map(function(t,i){e.globals.yLabelsCoords.push({width:s[i].width,index:i}),e.globals.yTitleCoords.push({width:n[i].width,index:i})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),r=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,o,r),i.translateXAxisY=e.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=e.globals.rotateXLabels&&e.globals.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+e.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+e.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-a.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var h=10;("radar"===e.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===e.config.chart.type)&&(l=0,c=0,h=0),this.isSparkline||"treemap"===e.config.chart.type||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){i.translateX=l+t.datalabelsCoords.width,i.gridHeight=i.svgHeight-t.lgRect.height-c-(t.isSparkline||"treemap"===e.config.chart.type?0:e.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l-2*t.datalabelsCoords.width};switch("top"===e.config.xaxis.position&&(h=i.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":i.translateY=h,d();break;case"top":i.translateY=this.lgRect.height+h,d();break;case"left":i.translateY=h,i.translateX=this.lgRect.width+l+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":i.translateY=h,i.translateX=l+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(n,s),new fp(this.ctx).setYAxisXPosition(s,n)}},{key:"setDimensionsForNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=t.config,s=0;t.config.legend.show&&!t.config.legend.floating&&(s=20);var n="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",a=i.plotOptions[n].offsetY,r=i.plotOptions[n].offsetX;if(!i.legend.show||i.legend.floating){e.gridHeight=e.svgHeight;var o=e.dom.elWrap.getBoundingClientRect().width;return e.gridWidth=Math.min(o,e.gridHeight),e.translateY=a,void(e.translateX=r+(e.svgWidth-e.gridWidth)/2)}switch(i.legend.position){case"bottom":e.gridHeight=e.svgHeight-this.lgRect.height,e.gridWidth=e.svgWidth,e.translateY=a-10,e.translateX=r+(e.svgWidth-e.gridWidth)/2;break;case"top":e.gridHeight=e.svgHeight-this.lgRect.height,e.gridWidth=e.svgWidth,e.translateY=this.lgRect.height+a+10,e.translateX=r+(e.svgWidth-e.gridWidth)/2;break;case"left":e.gridWidth=e.svgWidth-this.lgRect.width-s,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=a,e.translateX=r+this.lgRect.width+s;break;case"right":e.gridWidth=e.svgWidth-this.lgRect.width-s-5,e.gridHeight="auto"!==i.chart.height?e.svgHeight:e.gridWidth,e.translateY=a,e.translateX=r+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(t,e,i){var s=this.w,n=s.globals.hasXaxisGroups?2:1,a=i.height+t.height+e.height,r=s.globals.isMultiLineX?1.2:s.globals.LINE_HEIGHT_RATIO,o=s.globals.rotateXLabels?22:10,l=s.globals.rotateXLabels&&"bottom"===s.config.legend.position?10:0;this.xAxisHeight=a*r+n*o+l,this.xAxisWidth=t.width,this.xAxisHeight-e.height>s.config.xaxis.labels.maxHeight&&(this.xAxisHeight=s.config.xaxis.labels.maxHeight),s.config.xaxis.labels.minHeight&&this.xAxisHeight<s.config.xaxis.labels.minHeight&&(this.xAxisHeight=s.config.xaxis.labels.minHeight),s.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,h=0;s.config.yaxis.forEach(function(t){c+=t.labels.minWidth,h+=t.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>h&&(this.yAxisWidth=h)}}]),t}(),Mp=function(){function t(e){vc(this,t),this.w=e.w,this.lgCtx=e}return wc(t,[{key:"getLegendStyles",value:function(){var t,e,i,s=document.createElement("style");s.setAttribute("type","text/css");var n=(null===(t=this.lgCtx.ctx)||void 0===t||null===(e=t.opts)||void 0===e||null===(i=e.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;n&&s.setAttribute("nonce",n);var a=document.createTextNode("\n .apexcharts-flip-y {\n transform: scaleY(-1) translateY(-100%);\n transform-origin: top;\n transform-box: fill-box;\n }\n .apexcharts-flip-x {\n transform: scaleX(-1);\n transform-origin: center;\n transform-box: fill-box;\n }\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apexcharts-legend-group-horizontal {\n flex-direction: column;\n }\n .apexcharts-legend-group {\n display: flex;\n }\n .apexcharts-legend-group-vertical {\n flex-direction: column-reverse;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n align-items: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n align-items: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n align-items: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }\n\n ");return s.appendChild(a),s}},{key:"getLegendDimensions",value:function(){var t=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),e=t.width;return{clwh:t.height,clww:e}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(t,e){var i=this,s=this.w;if(s.globals.axisCharts||"radialBar"===s.config.chart.type){s.globals.resized=!0;var n=null,a=null;s.globals.risingSeries=[],s.globals.axisCharts?(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"']")),a=parseInt(n.getAttribute("data:realIndex"),10)):(n=s.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(t+1,"']")),a=parseInt(n.getAttribute("rel"),10)-1),e?[{cs:s.globals.collapsedSeries,csi:s.globals.collapsedSeriesIndices},{cs:s.globals.ancillaryCollapsedSeries,csi:s.globals.ancillaryCollapsedSeriesIndices}].forEach(function(t){i.riseCollapsedSeries(t.cs,t.csi,a)}):this.hideSeries({seriesEl:n,realIndex:a})}else{var r=s.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(t+1,"'] path")),o=s.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=s.config.plotOptions.pie.donut.labels;new Nu(this.lgCtx.ctx).pathMouseDown(r,null),this.lgCtx.ctx.pie.printDataLabelsInner(r.node,l)}r.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(t){var e=t.realIndex,i=this.w,s=i.globals,n=Dc.clone(i.config.series);if(s.axisCharts){var a=i.config.yaxis[s.seriesYAxisReverseMap[e]],r={index:e,data:n[e].data.slice(),type:n[e].type||i.config.chart.type};if(a&&a.show&&a.showAlways)s.ancillaryCollapsedSeriesIndices.indexOf(e)<0&&(s.ancillaryCollapsedSeries.push(r),s.ancillaryCollapsedSeriesIndices.push(e));else if(s.collapsedSeriesIndices.indexOf(e)<0){s.collapsedSeries.push(r),s.collapsedSeriesIndices.push(e);var o=s.risingSeries.indexOf(e);s.risingSeries.splice(o,1)}}else s.collapsedSeries.push({index:e,data:n[e]}),s.collapsedSeriesIndices.push(e);return s.allSeriesCollapsed=s.collapsedSeries.length+s.ancillaryCollapsedSeries.length===i.config.series.length,this._getSeriesBasedOnCollapsedState(n)}},{key:"hideSeries",value:function(t){for(var e=t.seriesEl,i=t.realIndex,s=this.w,n=this.getSeriesAfterCollapsing({realIndex:i}),a=e.childNodes,r=0;r<a.length;r++)a[r].classList.contains("apexcharts-series-markers-wrap")&&(a[r].classList.contains("apexcharts-hide")?a[r].classList.remove("apexcharts-hide"):a[r].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(t,e,i){var s=this.w,n=Dc.clone(s.config.series);if(t.length>0){for(var a=0;a<t.length;a++)t[a].index===i&&(s.globals.axisCharts?n[i].data=t[a].data.slice():n[i]=t[a].data,"number"!=typeof n[i]&&(n[i].hidden=!1),t.splice(a,1),e.splice(a,1),s.globals.risingSeries.push(i));n=this._getSeriesBasedOnCollapsedState(n),this.lgCtx.ctx.updateHelpers._updateSeries(n,s.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(t){var e=this.w,i=0;return e.globals.axisCharts?t.forEach(function(s,n){e.globals.collapsedSeriesIndices.indexOf(n)<0&&e.globals.ancillaryCollapsedSeriesIndices.indexOf(n)<0||(t[n].data=[],i++)}):t.forEach(function(s,n){!e.globals.collapsedSeriesIndices.indexOf(n)<0&&(t[n]=0,i++)}),e.globals.allSeriesCollapsed=i===t.length,t}}]),t}(),Tp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new Mp(this)}return wc(t,[{key:"init",value:function(){var t=this.w,e=t.globals,i=t.config,s=i.legend.showForSingleSeries&&1===e.series.length||this.isBarsDistributed||e.series.length>1;if(this.legendHelpers.appendToForeignObject(),(s||!e.axisCharts)&&i.legend.show){for(;e.dom.elLegendWrap.firstChild;)e.dom.elLegendWrap.removeChild(e.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(t){var e=t.i,i=t.fillcolor,s=this.w,n=document.createElement("span");n.classList.add("apexcharts-legend-marker");var a=s.config.legend.markers.shape||s.config.markers.shape,r=a;Array.isArray(a)&&(r=a[e]);var o=Array.isArray(s.config.legend.markers.size)?parseFloat(s.config.legend.markers.size[e]):parseFloat(s.config.legend.markers.size),l=Array.isArray(s.config.legend.markers.offsetX)?parseFloat(s.config.legend.markers.offsetX[e]):parseFloat(s.config.legend.markers.offsetX),c=Array.isArray(s.config.legend.markers.offsetY)?parseFloat(s.config.legend.markers.offsetY[e]):parseFloat(s.config.legend.markers.offsetY),h=Array.isArray(s.config.legend.markers.strokeWidth)?parseFloat(s.config.legend.markers.strokeWidth[e]):parseFloat(s.config.legend.markers.strokeWidth),d=n.style;if(d.height=2*(o+h)+"px",d.width=2*(o+h)+"px",d.left=l+"px",d.top=c+"px",s.config.legend.markers.customHTML)d.background="transparent",d.color=i[e],Array.isArray(s.config.legend.markers.customHTML)?s.config.legend.markers.customHTML[e]&&(n.innerHTML=s.config.legend.markers.customHTML[e]()):n.innerHTML=s.config.legend.markers.customHTML();else{var u=new ap(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(r),seriesIndex:e,strokeWidth:h,size:o}),p=window.SVG().addTo(n).size("100%","100%"),g=new Nu(this.ctx).drawMarker(0,0,Tc(Tc({},u),{},{pointFillColor:Array.isArray(i)?i[e]:u.pointFillColor,shape:r}));s.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(t){t.node.classList.contains("apexcharts-marker-triangle")?t.node.style.transform="translate(50%, 45%)":t.node.style.transform="translate(50%, 50%)"}),p.add(g)}return n}},{key:"drawLegends",value:function(){var t=this,e=this,i=this.w,s=i.config.legend.fontFamily,n=i.globals.seriesNames,a=i.config.legend.markers.fillColors?i.config.legend.markers.fillColors.slice():i.globals.colors.slice();if("heatmap"===i.config.chart.type){var r=i.config.plotOptions.heatmap.colorScale.ranges;n=r.map(function(t){return t.name?t.name:t.from+" - "+t.to}),a=r.map(function(t){return t.color})}else this.isBarsDistributed&&(n=i.globals.labels.slice());i.config.legend.customLegendItems.length&&(n=i.config.legend.customLegendItems);var o=i.globals.legendFormatter,l=i.config.legend.inverseOrder,c=[];i.globals.seriesGroups.length>1&&i.config.legend.clusterGroupedSeries&&i.globals.seriesGroups.forEach(function(t,e){c[e]=document.createElement("div"),c[e].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(e)),"horizontal"===i.config.legend.clusterGroupedSeriesOrientation?i.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):c[e].classList.add("apexcharts-legend-group-vertical")});for(var h=function(e){var r,l=o(n[e],{seriesIndex:e,w:i}),h=!1,d=!1;if(i.globals.collapsedSeries.length>0)for(var u=0;u<i.globals.collapsedSeries.length;u++)i.globals.collapsedSeries[u].index===e&&(h=!0);if(i.globals.ancillaryCollapsedSeriesIndices.length>0)for(var p=0;p<i.globals.ancillaryCollapsedSeriesIndices.length;p++)i.globals.ancillaryCollapsedSeriesIndices[p]===e&&(d=!0);var g=t.createLegendMarker({i:e,fillcolor:a});Nu.setAttrs(g,{rel:e+1,"data:collapsed":h||d}),(h||d)&&g.classList.add("apexcharts-inactive-legend");var f=document.createElement("div"),m=document.createElement("span");m.classList.add("apexcharts-legend-text"),m.innerHTML=Array.isArray(l)?l.join(" "):l;var x=i.config.legend.labels.useSeriesColors?i.globals.colors[e]:Array.isArray(i.config.legend.labels.colors)?null===(r=i.config.legend.labels.colors)||void 0===r?void 0:r[e]:i.config.legend.labels.colors;x||(x=i.config.chart.foreColor),m.style.color=x,m.style.fontSize=parseFloat(i.config.legend.fontSize)+"px",m.style.fontWeight=i.config.legend.fontWeight,m.style.fontFamily=s||i.config.chart.fontFamily,Nu.setAttrs(m,{rel:e+1,i:e,"data:default-text":encodeURIComponent(l),"data:collapsed":h||d}),f.appendChild(g),f.appendChild(m);var b=new Yu(t.ctx);i.config.legend.showForZeroSeries||0===b.getSeriesTotalByIndex(e)&&b.seriesHaveSameValues(e)&&!b.isSeriesNull(e)&&-1===i.globals.collapsedSeriesIndices.indexOf(e)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(e)&&f.classList.add("apexcharts-hidden-zero-series"),i.config.legend.showForNullSeries||b.isSeriesNull(e)&&-1===i.globals.collapsedSeriesIndices.indexOf(e)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(e)&&f.classList.add("apexcharts-hidden-null-series"),c.length?i.globals.seriesGroups.forEach(function(t,s){var n;t.includes(null===(n=i.config.series[e])||void 0===n?void 0:n.name)&&(i.globals.dom.elLegendWrap.appendChild(c[s]),c[s].appendChild(f))}):i.globals.dom.elLegendWrap.appendChild(f),i.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(i.config.legend.horizontalAlign)),i.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+i.config.legend.position),f.classList.add("apexcharts-legend-series"),f.style.margin="".concat(i.config.legend.itemMargin.vertical,"px ").concat(i.config.legend.itemMargin.horizontal,"px"),i.globals.dom.elLegendWrap.style.width=i.config.legend.width?i.config.legend.width+"px":"",i.globals.dom.elLegendWrap.style.height=i.config.legend.height?i.config.legend.height+"px":"",Nu.setAttrs(f,{rel:e+1,seriesName:Dc.escapeString(n[e]),"data:collapsed":h||d}),(h||d)&&f.classList.add("apexcharts-inactive-legend"),i.config.legend.onItemClick.toggleDataSeries||f.classList.add("apexcharts-no-click")},d=l?n.length-1:0;l?d>=0:d<=n.length-1;l?d--:d++)h(d);i.globals.dom.elWrap.addEventListener("click",e.onLegendClick,!0),i.config.legend.onItemHover.highlightDataSeries&&0===i.config.legend.customLegendItems.length&&(i.globals.dom.elWrap.addEventListener("mousemove",e.onLegendHovered,!0),i.globals.dom.elWrap.addEventListener("mouseout",e.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(t,e){var i=this.w,s=i.globals.dom.elLegendWrap,n=s.clientHeight,a=0,r=0;if("bottom"===i.config.legend.position)r=i.globals.svgHeight-Math.min(n,i.globals.svgHeight/2)-5;else if("top"===i.config.legend.position){var o=new Sp(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;r=(l>0?l-10:0)+(c>0?c-10:0)}s.style.position="absolute",a=a+t+i.config.legend.offsetX,r=r+e+i.config.legend.offsetY,s.style.left=a+"px",s.style.top=r+"px","right"===i.config.legend.position&&(s.style.left="auto",s.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(t){s.style[t]&&(s.style[t]=parseInt(i.config.legend[t],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var t=this.w;t.globals.dom.elLegendWrap.style.right=0;var e=new Sp(this.ctx),i=e.dimHelpers.getTitleSubtitleCoords("title"),s=e.dimHelpers.getTitleSubtitleCoords("subtitle"),n=0;"top"===t.config.legend.position&&(n=i.height+s.height+t.config.title.margin+t.config.subtitle.margin-10),this.setLegendWrapXY(20,n)}},{key:"legendAlignVertical",value:function(){var t=this.w,e=this.legendHelpers.getLegendDimensions(),i=0;"left"===t.config.legend.position&&(i=20),"right"===t.config.legend.position&&(i=t.globals.svgWidth-e.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(t){var e=this.w,i=t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker");if("heatmap"===e.config.chart.type||this.isBarsDistributed){if(i){var s=parseInt(t.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,s,this.w]),new lp(this.ctx).highlightRangeInSeries(t,t.target)}}else!t.target.classList.contains("apexcharts-inactive-legend")&&i&&new lp(this.ctx).toggleSeriesOnHover(t,t.target)}},{key:"onLegendClick",value:function(t){var e=this.w;if(!e.config.legend.customLegendItems.length&&(t.target.classList.contains("apexcharts-legend-series")||t.target.classList.contains("apexcharts-legend-text")||t.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(t.target.getAttribute("rel"),10)-1,s="true"===t.target.getAttribute("data:collapsed"),n=this.w.config.chart.events.legendClick;"function"==typeof n&&n(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&t.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==e.config.chart.type&&"heatmap"!==e.config.chart.type&&!this.isBarsDistributed&&e.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,s)}}}]),t}(),Lp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return wc(t,[{key:"createToolbar",value:function(){var t=this,e=this.w,i=function(){return document.createElement("div")},s=i();if(s.setAttribute("class","apexcharts-toolbar"),s.style.top=e.config.chart.toolbar.offsetY+"px",s.style.right=3-e.config.chart.toolbar.offsetX+"px",e.globals.dom.elWrap.appendChild(s),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var n=0;n<this.t.customIcons.length;n++)this.elCustomIcons.push(i());var a=[],r=function(i,s,n){var r=i.toLowerCase();t.t[r]&&e.config.chart.zoom.enabled&&a.push({el:s,icon:"string"==typeof t.t[r]?t.t[r]:n,title:t.localeValues[i],class:"apexcharts-".concat(r,"-icon")})};r("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),r("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(i){t.t[i]&&e.config.chart[i].enabled&&a.push({el:"zoom"===i?t.elZoom:t.elSelection,icon:"string"==typeof t.t[i]?t.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:t.localeValues["zoom"===i?"selectionZoom":"selection"],class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:e.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),r("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)a.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});a.forEach(function(t,e){t.index&&Dc.moveIndexInArray(a,e,t.index)});for(var c=0;c<a.length;c++)Nu.setAttrs(a[c].el,{class:a[c].class,title:a[c].title}),a[c].el.innerHTML=a[c].icon,s.appendChild(a[c].el);this._createHamburgerMenu(s),e.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.globals.panEnabled?this.elPan.classList.add(this.selectedClass):e.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(t){this.elMenuItems=[],t.appendChild(this.elMenu),Nu.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var e=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<e.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=e[i].title,Nu.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(e[i].name),title:e[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var t=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(e){e.classList.contains("exportSVG")?e.addEventListener("click",t.handleDownload.bind(t,"svg")):e.classList.contains("exportPNG")?e.addEventListener("click",t.handleDownload.bind(t,"png")):e.classList.contains("exportCSV")&&e.addEventListener("click",t.handleDownload.bind(t,"csv"))});for(var e=0;e<this.t.customIcons.length;e++)this.elCustomIcons[e].addEventListener("click",this.t.customIcons[e].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(t){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls();var i="selection"===t?e.ctx.toolbar.elSelection:e.ctx.toolbar.elZoom,s="selection"===t?"selectionEnabled":"zoomEnabled";e.w.globals[s]=!e.w.globals[s],i.classList.contains(e.ctx.toolbar.selectedClass)?i.classList.remove(e.ctx.toolbar.selectedClass):i.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var t=this.w;this.elZoom||(this.elZoom=t.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=t.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=t.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(t){this.toggleOtherControls(),"pan"===t?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var e="pan"===t?this.elPan:this.elZoom,i="pan"===t?this.elZoom:this.elPan;e&&e.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls(),t.w.globals.panEnabled=!t.w.globals.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var t=this,e=this.w;e.globals.panEnabled=!1,e.globals.zoomEnabled=!1,e.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(e){e&&e.classList.remove(t.selectedClass)})}},{key:"handleZoomIn",value:function(){var t=this.w;t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY);var e=(this.minX+this.maxX)/2,i=(this.minX+e)/2,s=(this.maxX+e)/2,n=this._getNewMinXMaxX(i,s);t.globals.disableZoomIn||this.zoomUpdateOptions(n.minX,n.maxX)}},{key:"handleZoomOut",value:function(){var t=this.w;if(t.globals.isRangeBar&&(this.minX=t.globals.minY,this.maxX=t.globals.maxY),!("datetime"===t.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var e=(this.minX+this.maxX)/2,i=this.minX-(e-this.minX),s=this.maxX-(e-this.maxX),n=this._getNewMinXMaxX(i,s);t.globals.disableZoomOut||this.zoomUpdateOptions(n.minX,n.maxX)}}},{key:"_getNewMinXMaxX",value:function(t,e){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(t):t,maxX:i?Math.floor(e):e}}},{key:"zoomUpdateOptions",value:function(t,e){var i=this.w;if(void 0!==t||void 0!==e){if(!(i.config.xaxis.convertedCatToNumeric&&(t<1&&(t=1,e=i.globals.dataPoints),e-t<2))){var s={min:t,max:e},n=this.getBeforeZoomRange(s);n&&(s=n.xaxis);var a={xaxis:s},r=Dc.clone(i.globals.initialConfig.yaxis);i.config.chart.group||(a.yaxis=r),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(a,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(s,r)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(t,e){"function"==typeof this.ev.zoomed&&(this.ev.zoomed(this.ctx,{xaxis:t,yaxis:e}),this.ctx.events.fireEvent("zoomed",{xaxis:t,yaxis:e}))}},{key:"getBeforeZoomRange",value:function(t,e){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:t,yaxis:e})),i}},{key:"toggleMenu",value:function(){var t=this;window.setTimeout(function(){t.elMenu.classList.contains("apexcharts-menu-open")?t.elMenu.classList.remove("apexcharts-menu-open"):t.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(t){var e=this.w,i=new hp(this.ctx);switch(t){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:e.config.series,columnDelimiter:e.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(t){this.ctx.getSyncedCharts().forEach(function(t){var e=t.w;if(e.globals.lastXAxis.min=e.globals.initialConfig.xaxis.min,e.globals.lastXAxis.max=e.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof e.config.chart.events.beforeResetZoom){var i=e.config.chart.events.beforeResetZoom(t,e);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof e.config.chart.events.zoomed&&t.ctx.toolbar.zoomCallback({min:e.config.xaxis.min,max:e.config.xaxis.max}),e.globals.zoomed=!1;var s=t.ctx.series.emptyCollapsedSeries(Dc.clone(e.globals.initialSeries));t.updateHelpers._updateSeries(s,e.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),t}(),Pp=function(){Ec(e,Lp);var t=kc(e);function e(i){var s;return vc(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.dragged=!1,s.graphics=new Nu(s.ctx),s.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],s.clientX=0,s.clientY=0,s.startX=0,s.endX=0,s.dragX=0,s.startY=0,s.endY=0,s.dragY=0,s.moveDirection="none",s.debounceTimer=null,s.debounceDelay=100,s.wheelDelay=400,s}return wc(e,[{key:"init",value:function(t){var e=this,i=t.xyRatios,s=this.w,n=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=s.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new Rh(0,0,s.globals.gridWidth,s.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),s.globals.dom.Paper.add(this.zoomRect),s.globals.dom.Paper.add(this.selectionRect),"x"===s.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:s.globals.gridWidth,maxY:s.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):"y"===s.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:s.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=s.globals.dom.baseEl.querySelector("".concat(s.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(t){e.hoverArea.addEventListener(t,n.svgMouseEvents.bind(n,i),{capture:!1,passive:!0})}),s.config.chart.zoom.enabled&&s.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",n.mouseWheelEvent.bind(n),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(t,e){var i=this.w,s=this.ctx.toolbar,n=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,a=i.config.chart.toolbar.autoSelected;if(e.shiftKey?(this.shiftWasPressed=!0,s.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(s.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1),e.target){var r,o=e.target.classList;if(e.target.parentNode&&null!==e.target.parentNode&&(r=e.target.parentNode.classList),!(o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||r&&r.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientX:"touchend"===e.type?e.changedTouches[0].clientX:e.clientX,this.clientY="touchmove"===e.type||"touchstart"===e.type?e.touches[0].clientY:"touchend"===e.type?e.changedTouches[0].clientY:e.clientY,"mousedown"===e.type&&1===e.which||"touchstart"===e.type){var l=this.gridRect.getBoundingClientRect();this.startX=this.clientX-l.left-i.globals.barPadForNumericAxis,this.startY=this.clientY-l.top,this.dragged=!1,this.w.globals.mousedown=!0}("mousemove"===e.type&&1===e.which||"touchmove"===e.type)&&(this.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:n,xyRatios:t})):(this.w.globals.mousedown&&i.globals.zoomEnabled||this.w.globals.mousedown&&i.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:n}))),"mouseup"!==e.type&&"touchend"!==e.type&&"mouseleave"!==e.type||this.handleMouseUp({zoomtype:n}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(t){var e,i=t.zoomtype,s=t.isResized,n=this.w,a=null===(e=this.gridRect)||void 0===e?void 0:e.getBoundingClientRect();a&&(this.w.globals.mousedown||s)&&(this.endX=this.clientX-a.left-n.globals.barPadForNumericAxis,this.endY=this.clientY-a.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(n.globals.zoomEnabled||n.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:i})),n.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(t){var e=this,i=this.w;t.preventDefault();var s=Date.now();s-i.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(t),i.globals.lastWheelExecution=s),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){s-i.globals.lastWheelExecution>e.wheelDelay&&(e.executeMouseWheelZoom(t),i.globals.lastWheelExecution=s)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(t){var e,i=this.w;this.minX=i.globals.isRangeBar?i.globals.minY:i.globals.minX,this.maxX=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;var s=null===(e=this.gridRect)||void 0===e?void 0:e.getBoundingClientRect();if(s){var n,a,r,o=(t.clientX-s.left)/s.width,l=this.minX,c=this.maxX,h=c-l;if(t.deltaY<0){var d=l+o*h;a=d-(n=.5*h)/2,r=d+n/2}else a=l-(n=1.5*h)/2,r=c+n/2;if(!i.globals.isRangeBar){a=Math.max(a,i.globals.initialMinX),r=Math.min(r,i.globals.initialMaxX);var u=.01*(i.globals.initialMaxX-i.globals.initialMinX);if(r-a<u){var p=(a+r)/2;a=p-u/2,r=p+u/2}}var g=this._getNewMinXMaxX(a,r);isNaN(g.minX)||isNaN(g.maxX)||this.zoomUpdateOptions(g.minX,g.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var t=this,e=this.w;if(this.selectionRect){var i=this.selectionRect.node.getBoundingClientRect();i.width>0&&i.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(t,e,i,s,n){return"l"===n||"r"===n?t.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):t.circle(0)},updateHandle:function(t,e){return t.center(e[0],e[1])}}).resize().on("resize",function(){var i=e.globals.zoomEnabled?e.config.chart.zoom.type:e.config.chart.selection.type;t.handleMouseUp({zoomtype:i,isResized:!0})}))}}},{key:"preselectedSelection",value:function(){var t=this.w,e=this.xyRatios;if(!t.globals.zoomEnabled)if(void 0!==t.globals.selection&&null!==t.globals.selection)this.drawSelectionRect(Tc(Tc({},t.globals.selection),{},{translateX:t.globals.translateX,translateY:t.globals.translateY}));else if(void 0!==t.config.chart.selection.xaxis.min&&void 0!==t.config.chart.selection.xaxis.max){var i=(t.config.chart.selection.xaxis.min-t.globals.minX)/e.xRatio,s=t.globals.gridWidth-(t.globals.maxX-t.config.chart.selection.xaxis.max)/e.xRatio-i;t.globals.isRangeBar&&(i=(t.config.chart.selection.xaxis.min-t.globals.yAxisScale[0].niceMin)/e.invertedYRatio,s=(t.config.chart.selection.xaxis.max-t.config.chart.selection.xaxis.min)/e.invertedYRatio);var n={x:i,y:0,width:s,height:t.globals.gridHeight,translateX:t.globals.translateX,translateY:t.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(n),this.makeSelectionRectDraggable(),"function"==typeof t.config.chart.events.selection&&t.config.chart.events.selection(this.ctx,{xaxis:{min:t.config.chart.selection.xaxis.min,max:t.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(t){var e=t.x,i=t.y,s=t.width,n=t.height,a=t.translateX,r=void 0===a?0:a,o=t.translateY,l=void 0===o?0:o,c=this.w,h=this.zoomRect,d=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+r+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(s<0&&(s=1),h.attr({x:e,y:i,width:s,height:n,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),Nu.setAttrs(h.node,u)),c.globals.selectionEnabled&&(d.attr({x:e,y:i,width:s>0?s:0,height:n>0?n:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),Nu.setAttrs(d.node,u))}}},{key:"hideSelectionRect",value:function(t){t&&t.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(t){var e=t.context,i=t.zoomtype,s=this.w,n=e,a=this.gridRect.getBoundingClientRect(),r=n.startX-1,o=n.startY,l=!1,c=!1,h=n.clientX-a.left-s.globals.barPadForNumericAxis,d=n.clientY-a.top,u=h-r,p=d-o,g={translateX:s.globals.translateX,translateY:s.globals.translateY};return Math.abs(u+r)>s.globals.gridWidth?u=s.globals.gridWidth-r:h<0&&(u=r),r>h&&(l=!0,u=Math.abs(u)),o>d&&(c=!0,p=Math.abs(p)),g=Tc(Tc({},g="x"===i?{x:l?r-u:r,y:0,width:u,height:s.globals.gridHeight}:"y"===i?{x:0,y:c?o-p:o,width:s.globals.gridWidth,height:p}:{x:l?r-u:r,y:c?o-p:o,width:u,height:p}),{},{translateX:s.globals.translateX,translateY:s.globals.translateY}),n.drawSelectionRect(g),n.selectionDragging("resizing"),g}},{key:"selectionDragging",value:function(t,e){var i=this,s=this.w;if(e){e.preventDefault();var n=e.detail,a=n.handler,r=n.box,o=r.x,l=r.y;o<this.constraints.x&&(o=this.constraints.x),l<this.constraints.y&&(l=this.constraints.y),r.x2>this.constraints.x2&&(o=this.constraints.x2-r.w),r.y2>this.constraints.y2&&(l=this.constraints.y2-r.h),a.move(o,l);var c=this.xyRatios,h=this.selectionRect,d=0;"resizing"===t&&(d=30);var u=function(t){return parseFloat(h.node.getAttribute(t))},p={x:u("x"),y:u("y"),width:u("width"),height:u("height")};s.globals.selection=p,"function"==typeof s.config.chart.events.selection&&s.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var t,e,n,a,r=i.gridRect.getBoundingClientRect(),o=h.node.getBoundingClientRect();s.globals.isRangeBar?(t=s.globals.yAxisScale[0].niceMin+(o.left-r.left)*c.invertedYRatio,e=s.globals.yAxisScale[0].niceMin+(o.right-r.left)*c.invertedYRatio,n=0,a=1):(t=s.globals.xAxisScale.niceMin+(o.left-r.left)*c.xRatio,e=s.globals.xAxisScale.niceMin+(o.right-r.left)*c.xRatio,n=s.globals.yAxisScale[0].niceMin+(r.bottom-o.bottom)*c.yRatio[0],a=s.globals.yAxisScale[0].niceMax-(o.top-r.top)*c.yRatio[0]);var l={xaxis:{min:t,max:e},yaxis:{min:n,max:a}};s.config.chart.events.selection(i.ctx,l),s.config.chart.brush.enabled&&void 0!==s.config.chart.events.brushScrolled&&s.config.chart.events.brushScrolled(i.ctx,l)},d))}}},{key:"selectionDrawn",value:function(t){var e,i,s=t.context,n=t.zoomtype,a=this.w,r=s,o=this.xyRatios,l=this.ctx.toolbar,c=a.globals.zoomEnabled?r.zoomRect.node.getBoundingClientRect():r.selectionRect.node.getBoundingClientRect(),h=r.gridRect.getBoundingClientRect(),d=c.left-h.left-a.globals.barPadForNumericAxis,u=c.right-h.left-a.globals.barPadForNumericAxis,p=c.top-h.top,g=c.bottom-h.top;a.globals.isRangeBar?(e=a.globals.yAxisScale[0].niceMin+d*o.invertedYRatio,i=a.globals.yAxisScale[0].niceMin+u*o.invertedYRatio):(e=a.globals.xAxisScale.niceMin+d*o.xRatio,i=a.globals.xAxisScale.niceMin+u*o.xRatio);var f=[],m=[];if(a.config.yaxis.forEach(function(t,e){var i=a.globals.seriesYAxisMap[e][0],s=a.globals.yAxisScale[e].niceMax-o.yRatio[i]*p,n=a.globals.yAxisScale[e].niceMax-o.yRatio[i]*g;f.push(s),m.push(n)}),r.dragged&&(r.dragX>10||r.dragY>10)&&e!==i)if(a.globals.zoomEnabled){var x=Dc.clone(a.globals.initialConfig.yaxis),b=Dc.clone(a.globals.initialConfig.xaxis);if(a.globals.zoomed=!0,a.config.xaxis.convertedCatToNumeric&&(e=Math.floor(e),i=Math.floor(i),e<1&&(e=1,i=a.globals.dataPoints),i-e<2&&(i=e+1)),"xy"!==n&&"x"!==n||(b={min:e,max:i}),"xy"!==n&&"y"!==n||x.forEach(function(t,e){x[e].min=m[e],x[e].max=f[e]}),l){var v=l.getBeforeZoomRange(b,x);v&&(b=v.xaxis?v.xaxis:b,x=v.yaxis?v.yaxis:x)}var y={xaxis:b};a.config.chart.group||(y.yaxis=x),r.ctx.updateHelpers._updateOptions(y,!1,r.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof a.config.chart.events.zoomed&&l.zoomCallback(b,x)}else if(a.globals.selectionEnabled){var w,A=null;w={min:e,max:i},"xy"!==n&&"y"!==n||(A=Dc.clone(a.config.yaxis)).forEach(function(t,e){A[e].min=m[e],A[e].max=f[e]}),a.globals.selection=r.selection,"function"==typeof a.config.chart.events.selection&&a.config.chart.events.selection(r.ctx,{xaxis:w,yaxis:A})}}},{key:"panDragging",value:function(t){var e=t.context,i=this.w,s=e;if(void 0!==i.globals.lastClientPosition.x){var n=i.globals.lastClientPosition.x-s.clientX,a=i.globals.lastClientPosition.y-s.clientY;Math.abs(n)>Math.abs(a)&&n>0?this.moveDirection="left":Math.abs(n)>Math.abs(a)&&n<0?this.moveDirection="right":Math.abs(a)>Math.abs(n)&&a>0?this.moveDirection="up":Math.abs(a)>Math.abs(n)&&a<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:s.clientX,y:s.clientY};var r=i.globals.isRangeBar?i.globals.minY:i.globals.minX,o=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;s.panScrolled(r,o)}},{key:"panScrolled",value:function(t,e){var i=this.w,s=this.xyRatios,n=Dc.clone(i.globals.initialConfig.yaxis),a=s.xRatio,r=i.globals.minX,o=i.globals.maxX;i.globals.isRangeBar&&(a=s.invertedYRatio,r=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(t=r+i.globals.gridWidth/15*a,e=o+i.globals.gridWidth/15*a):"right"===this.moveDirection&&(t=r-i.globals.gridWidth/15*a,e=o-i.globals.gridWidth/15*a),i.globals.isRangeBar||(t<i.globals.initialMinX||e>i.globals.initialMaxX)&&(t=r,e=o);var l={xaxis:{min:t,max:e}};i.config.chart.group||(l.yaxis=n),this.updateScrolledChart(l,t,e)}},{key:"updateScrolledChart",value:function(t,e,i){var s=this.w;if(this.ctx.updateHelpers._updateOptions(t,!1,!1),"function"==typeof s.config.chart.events.scrolled){var n={xaxis:{min:e,max:i}};s.config.chart.events.scrolled(this.ctx,n),this.ctx.events.fireEvent("scrolled",n)}}}]),e}(),Bp=function(){function t(e){vc(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx}return wc(t,[{key:"getNearestValues",value:function(t){var e=t.hoverArea,i=t.elGrid,s=t.clientX,n=t.clientY,a=this.w,r=i.getBoundingClientRect(),o=r.width,l=r.height,c=o/(a.globals.dataPoints-1),h=l/a.globals.dataPoints,d=this.hasBars();!a.globals.comboCharts&&!d||a.config.xaxis.convertedCatToNumeric||(c=o/a.globals.dataPoints);var u=s-r.left-a.globals.barPadForNumericAxis,p=n-r.top;u<0||p<0||u>o||p>l?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):a.globals.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):a.globals.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));var g=Math.round(u/c),f=Math.floor(p/h);d&&!a.config.xaxis.convertedCatToNumeric&&(g=Math.ceil(u/c),g-=1);var m=null,x=null,b=a.globals.seriesXvalues.map(function(t){return t.filter(function(t){return Dc.isNumber(t)})}),v=a.globals.seriesYvalues.map(function(t){return t.filter(function(t){return Dc.isNumber(t)})});if(a.globals.isXNumeric){var y=this.ttCtx.getElGrid().getBoundingClientRect(),w=u*(y.width/o),A=p*(y.height/l);m=(x=this.closestInMultiArray(w,A,b,v)).index,g=x.j,null!==m&&a.globals.hasNullValues&&(b=a.globals.seriesXvalues[m],g=(x=this.closestInArray(w,b)).j)}return a.globals.capturedSeriesIndex=null===m?-1:m,(!g||g<1)&&(g=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=f:a.globals.capturedDataPointIndex=g,{capturedSeries:m,j:a.globals.isBarHorizontal?f:g,hoverX:u,hoverY:p}}},{key:"getFirstActiveXArray",value:function(t){for(var e=this.w,i=0,s=t.map(function(t,e){return t.length>0?e:-1}),n=0;n<s.length;n++)if(-1!==s[n]&&-1===e.globals.collapsedSeriesIndices.indexOf(n)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(n)){i=s[n];break}return i}},{key:"closestInMultiArray",value:function(t,e,i,s){for(var n,a=this.w,r=1/0,o=null,l=null,c=0;c<i.length;c++)if(n=c,-1===a.globals.collapsedSeriesIndices.indexOf(n)&&-1===a.globals.ancillaryCollapsedSeriesIndices.indexOf(n))for(var h=i[c],d=s[c],u=Math.min(h.length,d.length),p=0;p<u;p++){var g=t-h[p],f=Math.sqrt(g*g);if(!a.globals.allSeriesHasEqualX){var m=e-d[p];f=Math.sqrt(g*g+m*m)}f<r&&(r=f,o=c,l=p)}return{index:o,j:l}}},{key:"closestInArray",value:function(t,e){for(var i=e[0],s=null,n=Math.abs(t-i),a=0;a<e.length;a++){var r=Math.abs(t-e[a]);r<n&&(n=r,s=a)}return{j:s}}},{key:"isXoverlap",value:function(t){var e=[],i=this.w.globals.seriesX.filter(function(t){return void 0!==t[0]});if(i.length>0)for(var s=0;s<i.length-1;s++)void 0!==i[s][t]&&void 0!==i[s+1][t]&&i[s][t]!==i[s+1][t]&&e.push("unEqual");return 0===e.length}},{key:"isInitialSeriesSameLen",value:function(){for(var t=!0,e=this.w.globals.initialSeries,i=0;i<e.length-1;i++)if(e[i].data.length!==e[i+1].data.length){t=!1;break}return t}},{key:"getBarsHeight",value:function(t){return Bc(t).reduce(function(t,e){return t+e.getBBox().height},0)}},{key:"getElMarkers",value:function(t){return"number"==typeof t?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");i=Bc(i),e&&(i=i.filter(function(e){var i=Number(e.getAttribute("data:realIndex"));return-1===t.w.globals.collapsedSeriesIndices.indexOf(i)})),i.sort(function(t,e){var i=Number(t.getAttribute("data:realIndex")),s=Number(e.getAttribute("data:realIndex"));return s<i?1:s>i?-1:0});var s=[];return i.forEach(function(t){s.push(t.querySelector(".apexcharts-marker"))}),s}},{key:"hasMarkers",value:function(t){return this.getElMarkers(t).length>0}},{key:"getPathFromPoint",value:function(t,e){var i=Number(t.getAttribute("cx")),s=Number(t.getAttribute("cy")),n=t.getAttribute("shape");return new Nu(this.ctx).getMarkerPath(i,s,n,e)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(t){var e=this.w,i=e.config.markers.hover.size;return void 0===i&&(i=e.globals.markers.size[t]+e.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(t){var e=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=e.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var s=i.allTooltipSeriesGroups,n=0;n<s.length;n++)"enable"===t?(s[n].classList.add("apexcharts-active"),s[n].style.display=e.config.tooltip.items.display):(s[n].classList.remove("apexcharts-active"),s[n].style.display="none")}}]),t}(),Op=function(){function t(e){vc(this,t),this.w=e.w,this.ctx=e.ctx,this.ttCtx=e,this.tooltipUtil=new Bp(e)}return wc(t,[{key:"drawSeriesTexts",value:function(t){var e=t.shared,i=void 0===e||e,s=t.ttItems,n=t.i,a=void 0===n?0:n,r=t.j,o=void 0===r?null:r,l=t.y1,c=t.y2,h=t.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:a,j:o,y1:l,y2:c,w:d}):this.toggleActiveInactiveSeries(i,a);var u=this.getValuesToPrint({i:a,j:o});this.printLabels({i:a,j:o,values:u,ttItems:s,shared:i,e:h});var p=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=p.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=p.getBoundingClientRect().height}},{key:"printLabels",value:function(t){var e,i=this,s=t.i,n=t.j,a=t.values,r=t.ttItems,o=t.shared,l=t.e,c=this.w,h=[],d=function(t){return c.globals.seriesGoals[t]&&c.globals.seriesGoals[t][n]&&Array.isArray(c.globals.seriesGoals[t][n])},u=a.xVal,p=a.zVal,g=a.xAxisTTVal,f="",m=c.globals.colors[s];null!==n&&c.config.plotOptions.bar.distributed&&(m=c.globals.colors[n]);for(var x=function(t,a){var x=i.getFormatters(s);f=i.getSeriesName({fn:x.yLbTitleFormatter,index:s,seriesIndex:s,j:n}),"treemap"===c.config.chart.type&&(f=x.yLbTitleFormatter(String(c.config.series[s].data[n].x),{series:c.globals.series,seriesIndex:s,dataPointIndex:n,w:c}));var b=c.config.tooltip.inverseOrder?a:t;if(c.globals.axisCharts){var v=function(t){var e,i,s,a;return c.globals.isRangeData?x.yLbFormatter(null===(e=c.globals.seriesRangeStart)||void 0===e||null===(i=e[t])||void 0===i?void 0:i[n],{series:c.globals.seriesRangeStart,seriesIndex:t,dataPointIndex:n,w:c})+" - "+x.yLbFormatter(null===(s=c.globals.seriesRangeEnd)||void 0===s||null===(a=s[t])||void 0===a?void 0:a[n],{series:c.globals.seriesRangeEnd,seriesIndex:t,dataPointIndex:n,w:c}):x.yLbFormatter(c.globals.series[t][n],{series:c.globals.series,seriesIndex:t,dataPointIndex:n,w:c})};if(o)x=i.getFormatters(b),f=i.getSeriesName({fn:x.yLbTitleFormatter,index:b,seriesIndex:s,j:n}),m=c.globals.colors[b],e=v(b),d(b)&&(h=c.globals.seriesGoals[b][n].map(function(t){return{attrs:t,val:x.yLbFormatter(t.value,{seriesIndex:b,dataPointIndex:n,w:c})}}));else{var y,w=null==l||null===(y=l.target)||void 0===y?void 0:y.getAttribute("fill");w&&(-1!==w.indexOf("url")?-1!==w.indexOf("Pattern")&&(m=c.globals.dom.baseEl.querySelector(w.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):m=w),e=v(s),d(s)&&Array.isArray(c.globals.seriesGoals[s][n])&&(h=c.globals.seriesGoals[s][n].map(function(t){return{attrs:t,val:x.yLbFormatter(t.value,{seriesIndex:s,dataPointIndex:n,w:c})}}))}}null===n&&(e=x.yLbFormatter(c.globals.series[s],Tc(Tc({},c),{},{seriesIndex:s,dataPointIndex:s}))),i.DOMHandling({i:s,t:b,j:n,ttItems:r,values:{val:e,goalVals:h,xVal:u,xAxisTTVal:g,zVal:p},seriesName:f,shared:o,pColor:m})},b=0,v=c.globals.series.length-1;b<c.globals.series.length;b++,v--)x(b,v)}},{key:"getFormatters",value:function(t){var e,i=this.w,s=i.globals.yLabelFormatters[t];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(s=i.globals.ttVal[t]&&i.globals.ttVal[t].formatter,e=i.globals.ttVal[t]&&i.globals.ttVal[t].title&&i.globals.ttVal[t].title.formatter):(s=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(e=i.globals.ttVal.title.formatter)):e=i.config.tooltip.y.title.formatter,"function"!=typeof s&&(s=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(t){return t}),"function"!=typeof e&&(e=function(t){return t?t+": ":""}),{yLbFormatter:s,yLbTitleFormatter:e}}},{key:"getSeriesName",value:function(t){var e=t.fn,i=t.index,s=t.seriesIndex,n=t.j,a=this.w;return e(String(a.globals.seriesNames[i]),{series:a.globals.series,seriesIndex:s,dataPointIndex:n,w:a})}},{key:"DOMHandling",value:function(t){t.i;var e=t.t,i=t.j,s=t.ttItems,n=t.values,a=t.seriesName,r=t.shared,o=t.pColor,l=this.w,c=this.ttCtx,h=n.val,d=n.goalVals,u=n.xVal,p=n.xAxisTTVal,g=n.zVal,f=null;f=s[e].children,l.config.tooltip.fillSeriesColor&&(s[e].style.backgroundColor=o,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==p?p:u);var m=s[e].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=a||"");var x=s[e].querySelector(".apexcharts-tooltip-text-y-value");x&&(x.innerHTML=void 0!==h?h:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[e]),l.config.tooltip.fillSeriesColor?f[0].style.backgroundColor=o:f[0].style.color=o),l.config.tooltip.marker.show||(f[0].style.display="none");var b=s[e].querySelector(".apexcharts-tooltip-text-goals-label"),v=s[e].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[e]){var y=function(){var t="<div>",e="<div>";d.forEach(function(i,s){t+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),e+="<div>".concat(i.val,"</div>")}),b.innerHTML=t+"</div>",v.innerHTML=e+"</div>"};r?l.globals.seriesGoals[e][i]&&Array.isArray(l.globals.seriesGoals[e][i])?y():(b.innerHTML="",v.innerHTML=""):y()}else b.innerHTML="",v.innerHTML="";if(null!==g&&(s[e].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,s[e].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==g?g:""),r&&f[0]){if(l.config.tooltip.hideEmptySeries){var w=s[e].querySelector(".apexcharts-tooltip-marker"),A=s[e].querySelector(".apexcharts-tooltip-text");0==parseFloat(h)?(w.style.display="none",A.style.display="none"):(w.style.display="block",A.style.display="block")}null==h||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(e)?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(e)&&(f[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(t,e){var i=this.w;if(t)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var s=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(e));s&&(s.classList.add("apexcharts-active"),s.style.display=i.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(t){var e=t.i,i=t.j,s=this.w,n=this.ctx.series.filteredSeriesX(),a="",r="",o=null,l=null,c={series:s.globals.series,seriesIndex:e,dataPointIndex:i,w:s},h=s.globals.ttZFormatter;null===i?l=s.globals.series[e]:s.globals.isXNumeric&&"treemap"!==s.config.chart.type?(a=n[e][i],0===n[e].length&&(a=n[this.tooltipUtil.getFirstActiveXArray(n)][i])):a=new cp(this.ctx).isFormatXY()?void 0!==s.config.series[e].data[i]?s.config.series[e].data[i].x:"":void 0!==s.globals.labels[i]?s.globals.labels[i]:"";var d=a;return a=s.globals.isXNumeric&&"datetime"===s.config.xaxis.type?new Vu(this.ctx).xLabelFormat(s.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new ju(this.ctx).formatDate,w:this.w}):s.globals.isBarHorizontal?s.globals.yLabelFormatters[0](d,c):s.globals.xLabelFormatter(d,c),void 0!==s.config.tooltip.x.formatter&&(a=s.globals.ttKeyFormatter(d,c)),s.globals.seriesZ.length>0&&s.globals.seriesZ[e].length>0&&(o=h(s.globals.seriesZ[e][i],s)),r="function"==typeof s.config.xaxis.tooltip.formatter?s.globals.xaxisTooltipFormatter(d,c):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(r)?r.join(" "):r,zVal:o}}},{key:"handleCustomTooltip",value:function(t){var e=t.i,i=t.j,s=t.y1,n=t.y2,a=t.w,r=this.ttCtx.getElTooltip(),o=a.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]);var l=o({ctx:this.ctx,series:a.globals.series,seriesIndex:e,dataPointIndex:i,y1:s,y2:n,w:a});"string"==typeof l||"number"==typeof l?r.innerHTML=l:(l instanceof Element||"string"==typeof l.nodeName)&&(r.innerHTML="",r.appendChild(l.cloneNode(!0)))}}]),t}(),Ip=function(){function t(e){vc(this,t),this.ttCtx=e,this.ctx=e.ctx,this.w=e.w}return wc(t,[{key:"moveXCrosshairs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,s=this.w,n=i.getElXCrosshairs(),a=t-i.xcrosshairsWidth/2,r=s.globals.labels.slice().length;if(null!==e&&(a=s.globals.gridWidth/r*e),null===n||s.globals.isBarHorizontal||(n.setAttribute("x",a),n.setAttribute("x1",a),n.setAttribute("x2",a),n.setAttribute("y2",s.globals.gridHeight),n.classList.add("apexcharts-active")),a<0&&(a=0),a>s.globals.gridWidth&&(a=s.globals.gridWidth),i.isXAxisTooltipEnabled){var o=a;"tickWidth"!==s.config.xaxis.crosshairs.width&&"barWidth"!==s.config.xaxis.crosshairs.width||(o=a+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(t){var e=this.ttCtx;null!==e.ycrosshairs&&Nu.setAttrs(e.ycrosshairs,{y1:t,y2:t}),null!==e.ycrosshairsHidden&&Nu.setAttrs(e.ycrosshairsHidden,{y1:t,y2:t})}},{key:"moveXAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var s,n=i.xaxisOffY+e.config.xaxis.tooltip.offsetY+e.globals.translateY+1+e.config.xaxis.offsetY;t-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(t)||(t+=e.globals.translateX,s=new Nu(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=s.width+"px",i.xaxisTooltip.style.left=t+"px",i.xaxisTooltip.style.top=n+"px")}}},{key:"moveYAxisTooltip",value:function(t){var e=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var s=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),n=e.globals.translateY+s,a=i.yaxisTTEls[t].getBoundingClientRect(),r=a.height,o=e.globals.translateYAxisX[t]-2;e.config.yaxis[t].opposite&&(o-=a.width),n-=r/2,-1===e.globals.ignoreYAxisIndexes.indexOf(t)&&n>0&&n<e.globals.gridHeight?(i.yaxisTTEls[t].classList.add("apexcharts-active"),i.yaxisTTEls[t].style.top=n+"px",i.yaxisTTEls[t].style.left=o+e.config.yaxis[t].tooltip.offsetX+"px"):i.yaxisTTEls[t].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=this.w,n=this.ttCtx,a=n.getElTooltip(),r=n.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(t)+o+5,c=parseFloat(e)+o/2;if(l>s.globals.gridWidth/2&&(l=l-r.ttWidth-o-10),l>s.globals.gridWidth-r.ttWidth-10&&(l=s.globals.gridWidth-r.ttWidth),l<-20&&(l=-20),s.config.tooltip.followCursor){var h=n.getElGrid().getBoundingClientRect();(l=n.e.clientX-h.left)>s.globals.gridWidth/2&&(l-=n.tooltipRect.ttWidth),(c=n.e.clientY+s.globals.translateY-h.top)>s.globals.gridHeight/2&&(c-=n.tooltipRect.ttHeight)}else s.globals.isBarHorizontal||r.ttHeight/2+c>s.globals.gridHeight&&(c=s.globals.gridHeight-r.ttHeight+s.globals.translateY);isNaN(l)||(l+=s.globals.translateX,a.style.left=l+"px",a.style.top=c+"px")}},{key:"moveMarkers",value:function(t,e){var i=this.w,s=this.ttCtx;if(i.globals.markers.size[t]>0)for(var n=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-marker")),a=0;a<n.length;a++)parseInt(n[a].getAttribute("rel"),10)===e&&(s.marker.resetPointsSize(),s.marker.enlargeCurrentPoint(e,n[a]));else s.marker.resetPointsSize(),this.moveDynamicPointOnHover(e,t)}},{key:"moveDynamicPointOnHover",value:function(t,e){var i,s,n,a,r=this.w,o=this.ttCtx,l=new Nu(this.ctx),c=r.globals.pointsArray,h=o.tooltipUtil.getHoverMarkerSize(e),d=r.config.series[e].type;if(!d||"column"!==d&&"candlestick"!==d&&"boxPlot"!==d){n=null===(i=c[e][t])||void 0===i?void 0:i[0],a=(null===(s=c[e][t])||void 0===s?void 0:s[1])||0;var u=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers path"));if(u&&a<r.globals.gridHeight&&a>0){var p=u.getAttribute("shape"),g=l.getMarkerPath(n,a,p,1.5*h);u.setAttribute("d",g)}this.moveXCrosshairs(n),o.fixedTooltip||this.moveTooltip(n,a,h)}}},{key:"moveDynamicPointsOnHover",value:function(t){var e,i=this.ttCtx,s=i.w,n=0,a=0,r=s.globals.pointsArray,o=new lp(this.ctx),l=new Nu(this.ctx);e=o.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=i.tooltipUtil.getHoverMarkerSize(e);if(r[e]&&(n=r[e][t][0],a=r[e][t][1]),!isNaN(n)){var h=i.tooltipUtil.getAllMarkers();if(h.length)for(var d=0;d<s.globals.series.length;d++){var u=r[d];if(s.globals.comboCharts&&void 0===u&&h.splice(d,0,null),u&&u.length){var p=r[d][t][1],g=void 0;h[d].setAttribute("cx",n);var f=h[d].getAttribute("shape");if("rangeArea"===s.config.chart.type&&!s.globals.comboCharts){var m=t+s.globals.series[d].length;g=r[d][m][1],p-=Math.abs(p-g)/2}if(null!==p&&!isNaN(p)&&p<s.globals.gridHeight+c&&p+c>0){var x=l.getMarkerPath(n,p,f,c);h[d].setAttribute("d",x)}else h[d].setAttribute("d","")}}this.moveXCrosshairs(n),i.fixedTooltip||this.moveTooltip(n,a||s.globals.gridHeight,c)}}},{key:"moveStickyTooltipOverBars",value:function(t,e){var i=this.w,s=this.ttCtx,n=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length;i.config.chart.stacked&&(n=i.globals.barGroups.length);var a=n>=2&&n%2==0?Math.floor(n/2):Math.floor(n/2)+1;i.globals.isBarHorizontal&&(a=new lp(this.ctx).getActiveConfigSeriesIndex("desc")+1);var r=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(t,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(t,"']"));r||"number"!=typeof e||(r=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(e,"'] path[j='").concat(t,"']")));var o=r?parseFloat(r.getAttribute("cx")):0,l=r?parseFloat(r.getAttribute("cy")):0,c=r?parseFloat(r.getAttribute("barWidth")):0,h=s.getElGrid().getBoundingClientRect(),d=r&&(r.classList.contains("apexcharts-candlestick-area")||r.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(r&&!d&&(o-=n%2!=0?c/2:0),r&&d&&(o-=c/2)):i.globals.isBarHorizontal||(o=s.xAxisTicksPositions[t-1]+s.dataPointsDividedWidth/2,isNaN(o)&&(o=s.xAxisTicksPositions[t]-s.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=s.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=s.e.clientY-h.top-s.tooltipRect.ttHeight/2:l+s.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(o),s.fixedTooltip||this.moveTooltip(o,l||i.globals.gridHeight)}}]),t}(),zp=function(){function t(e){vc(this,t),this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Ip(e)}return wc(t,[{key:"drawDynamicPoints",value:function(){var t=this.w,e=new Nu(this.ctx),i=new ap(this.ctx),s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");s=Bc(s),t.config.chart.stacked&&s.sort(function(t,e){return parseFloat(t.getAttribute("data:realIndex"))-parseFloat(e.getAttribute("data:realIndex"))});for(var n=0;n<s.length;n++){var a=s[n].querySelector(".apexcharts-series-markers-wrap");if(null!==a){var r=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==t.config.chart.type&&"area"!==t.config.chart.type||t.globals.comboCharts||t.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:o,seriesIndex:Number(a.getAttribute("data:realIndex"))});(r=e.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(t.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(r.node),a.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,n=this.w;"bubble"!==n.config.chart.type&&this.newPointSize(t,e);var a=e.getAttribute("cx"),r=e.getAttribute("cy");if(null!==i&&null!==s&&(a=i,r=s),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===n.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();a=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(a,r,n.config.markers.hover.size)}}},{key:"enlargePoints",value:function(t){for(var e=this.w,i=this,s=this.ttCtx,n=t,a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),r=e.config.markers.hover.size,o=0;o<a.length;o++){var l=a[o].getAttribute("rel"),c=a[o].getAttribute("index");if(void 0===r&&(r=e.globals.markers.size[c]+e.config.markers.hover.sizeOffset),n===parseInt(l,10)){i.newPointSize(n,a[o]);var h=a[o].getAttribute("cx"),d=a[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(h),s.fixedTooltip||i.tooltipPosition.moveTooltip(h,d,r)}else i.oldPointSize(a[o])}}},{key:"newPointSize",value:function(t,e){var i=this.w,s=i.config.markers.hover.size,n=0===t?e.parentNode.firstChild:e.parentNode.lastChild;if("0"!==n.getAttribute("default-marker-size")){var a=parseInt(n.getAttribute("index"),10);void 0===s&&(s=i.globals.markers.size[a]+i.config.markers.hover.sizeOffset),s<0&&(s=0);var r=this.ttCtx.tooltipUtil.getPathFromPoint(e,s);e.setAttribute("d",r)}}},{key:"oldPointSize",value:function(t){var e=parseFloat(t.getAttribute("default-marker-size")),i=this.ttCtx.tooltipUtil.getPathFromPoint(t,e);t.setAttribute("d",i)}},{key:"resetPointsSize",value:function(){for(var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),e=0;e<t.length;e++){var i=parseFloat(t[e].getAttribute("default-marker-size"));if(Dc.isNumber(i)&&i>0){var s=this.ttCtx.tooltipUtil.getPathFromPoint(t[e],i);t[e].setAttribute("d",s)}else t[e].setAttribute("d","M0,0")}}}]),t}(),Dp=function(){function t(e){vc(this,t),this.w=e.w;var i=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return wc(t,[{key:"getAttr",value:function(t,e){return parseFloat(t.target.getAttribute(e))}},{key:"handleHeatTreeTooltip",value:function(t){var e=t.e,i=t.opt,s=t.x,n=t.y,a=t.type,r=this.ttCtx,o=this.w;if(e.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(e,"i"),c=this.getAttr(e,"j"),h=this.getAttr(e,"cx"),d=this.getAttr(e,"cy"),u=this.getAttr(e,"width"),p=this.getAttr(e,"height");if(r.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,s=h+r.tooltipRect.ttWidth/2+u,n=d+r.tooltipRect.ttHeight/2-p/2,r.tooltipPosition.moveXCrosshairs(h+u/2),s>o.globals.gridWidth/2&&(s=h-r.tooltipRect.ttWidth/2+u),r.w.config.tooltip.followCursor){var g=o.globals.dom.elWrap.getBoundingClientRect();s=o.globals.clientX-g.left-(s>o.globals.gridWidth/2?r.tooltipRect.ttWidth:0),n=o.globals.clientY-g.top-(n>o.globals.gridHeight/2?r.tooltipRect.ttHeight:0)}}return{x:s,y:n}}},{key:"handleMarkerTooltip",value:function(t){var e,i,s=t.e,n=t.opt,a=t.x,r=t.y,o=this.w,l=this.ttCtx;if(s.target.classList.contains("apexcharts-marker")){var c=parseInt(n.paths.getAttribute("cx"),10),h=parseInt(n.paths.getAttribute("cy"),10),d=parseFloat(n.paths.getAttribute("val"));if(i=parseInt(n.paths.getAttribute("rel"),10),e=parseInt(n.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=Dc.findAncestor(n.paths,"apexcharts-series");u&&(e=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:e,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:s}),"mouseup"===s.type&&l.markerClick(s,e,i),o.globals.capturedSeriesIndex=e,o.globals.capturedDataPointIndex=i,a=c,r=h+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var p=l.getElGrid().getBoundingClientRect();r=l.e.clientY+o.globals.translateY-p.top}d<0&&(r=h),l.marker.enlargeCurrentPoint(i,n.paths,a,r)}return{x:a,y:r}}},{key:"handleBarTooltip",value:function(t){var e,i,s=t.e,n=t.opt,a=this.w,r=this.ttCtx,o=r.getElTooltip(),l=0,c=0,h=0,d=this.getBarTooltipXY({e:s,opt:n});if(null!==d.j||0!==d.barHeight||0!==d.barWidth){e=d.i;var u=d.j;if(a.globals.capturedSeriesIndex=e,a.globals.capturedDataPointIndex=u,a.globals.isBarHorizontal&&r.tooltipUtil.hasBars()||!a.config.tooltip.shared?(c=d.x,h=d.y,i=Array.isArray(a.config.stroke.width)?a.config.stroke.width[e]:a.config.stroke.width,l=c):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(h)&&(h=a.globals.svgHeight-r.tooltipRect.ttHeight),parseInt(n.paths.parentNode.getAttribute("data:realIndex"),10),c+r.tooltipRect.ttWidth>a.globals.gridWidth?c-=r.tooltipRect.ttWidth:c<0&&(c=0),r.w.config.tooltip.followCursor){var p=r.getElGrid().getBoundingClientRect();h=r.e.clientY-p.top}null===r.tooltip&&(r.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?r.tooltipPosition.moveXCrosshairs(l+i/2):r.tooltipPosition.moveXCrosshairs(l)),!r.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&r.tooltipUtil.hasBars())&&(h=h+a.globals.translateY-r.tooltipRect.ttHeight/2,o.style.left=c+a.globals.translateX+"px",o.style.top=h+"px")}}},{key:"getBarTooltipXY",value:function(t){var e=this,i=t.e,s=t.opt,n=this.w,a=null,r=this.ttCtx,o=0,l=0,c=0,h=0,d=0,u=i.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){var p=i.target,g=p.getBoundingClientRect(),f=s.elGrid.getBoundingClientRect(),m=g.height;d=g.height;var x=g.width,b=parseInt(p.getAttribute("cx"),10),v=parseInt(p.getAttribute("cy"),10);h=parseFloat(p.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;a=parseInt(p.getAttribute("j"),10),o=parseInt(p.parentNode.getAttribute("rel"),10)-1;var w=p.getAttribute("data-range-y1"),A=p.getAttribute("data-range-y2");n.globals.comboCharts&&(o=parseInt(p.parentNode.getAttribute("data:realIndex"),10));var k=function(t){return n.globals.isXNumeric?b-x/2:e.isVerticalGroupedRangeBar?b+x/2:b-r.dataPointsDividedWidth+x/2},C=function(){return v-r.dataPointsDividedHeight+m/2-r.tooltipRect.ttHeight/2};r.tooltipLabels.drawSeriesTexts({ttItems:s.ttItems,i:o,j:a,y1:w?parseInt(w,10):null,y2:A?parseInt(A,10):null,shared:!r.showOnIntersect&&n.config.tooltip.shared,e:i}),n.config.tooltip.followCursor?n.globals.isBarHorizontal?(l=y-f.left+15,c=C()):(l=k(),c=i.clientY-f.top-r.tooltipRect.ttHeight/2-15):n.globals.isBarHorizontal?((l=b)<r.xyRatios.baseLineInvertedY&&(l=b-r.tooltipRect.ttWidth),c=C()):(l=k(),c=v)}return{x:l,y:c,barHeight:d,barWidth:h,i:o,j:a}}}]),t}(),Fp=function(){function t(e){vc(this,t),this.w=e.w,this.ttCtx=e}return wc(t,[{key:"drawXaxisTooltip",value:function(){var t=this.w,e=this.ttCtx,i="bottom"===t.config.xaxis.position;e.xaxisOffY=i?t.globals.gridHeight+1:-t.globals.xAxisHeight-t.config.xaxis.axisTicks.height+3;var s=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",n=t.globals.dom.elWrap;e.isXAxisTooltipEnabled&&null===t.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(e.xaxisTooltip=document.createElement("div"),e.xaxisTooltip.setAttribute("class",s+" apexcharts-theme-"+t.config.tooltip.theme),n.appendChild(e.xaxisTooltip),e.xaxisTooltipText=document.createElement("div"),e.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),e.xaxisTooltipText.style.fontFamily=t.config.xaxis.tooltip.style.fontFamily||t.config.chart.fontFamily,e.xaxisTooltipText.style.fontSize=t.config.xaxis.tooltip.style.fontSize,e.xaxisTooltip.appendChild(e.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var t=this.w,e=this.ttCtx,i=0;i<t.config.yaxis.length;i++){var s=t.config.yaxis[i].opposite||t.config.yaxis[i].crosshairs.opposite;e.yaxisOffX=s?t.globals.gridWidth+1:1;var n="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,s?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),a=t.globals.dom.elWrap;null===t.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(e.yaxisTooltip=document.createElement("div"),e.yaxisTooltip.setAttribute("class",n+" apexcharts-theme-"+t.config.tooltip.theme),a.appendChild(e.yaxisTooltip),0===i&&(e.yaxisTooltipText=[]),e.yaxisTooltipText[i]=document.createElement("div"),e.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),e.yaxisTooltip.appendChild(e.yaxisTooltipText[i]))}}},{key:"setXCrosshairWidth",value:function(){var t=this.w,e=this.ttCtx,i=e.getElXCrosshairs();if(e.xcrosshairsWidth=parseInt(t.config.xaxis.crosshairs.width,10),t.globals.comboCharts){var s=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s&&"barWidth"===t.config.xaxis.crosshairs.width){var n=parseFloat(s.getAttribute("barWidth"));e.xcrosshairsWidth=n}else if("tickWidth"===t.config.xaxis.crosshairs.width){var a=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/a}}else if("tickWidth"===t.config.xaxis.crosshairs.width){var r=t.globals.labels.length;e.xcrosshairsWidth=t.globals.gridWidth/r}else if("barWidth"===t.config.xaxis.crosshairs.width){var o=t.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));e.xcrosshairsWidth=l}else e.xcrosshairsWidth=1}t.globals.isBarHorizontal&&(e.xcrosshairsWidth=0),null!==i&&e.xcrosshairsWidth>0&&i.setAttribute("width",e.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var t=this.w,e=this.ttCtx;e.ycrosshairs=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),e.ycrosshairsHidden=t.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(t,e,i){var s=this.ttCtx,n=this.w,a=n.globals,r=a.seriesYAxisMap[t];if(s.yaxisTooltips[t]&&r.length>0){var o=a.yLabelFormatters[t],l=s.getElGrid().getBoundingClientRect(),c=r[0],h=0;i.yRatio.length>1&&(h=c);var d=(e-l.top)*i.yRatio[h],u=a.maxYArr[c]-a.minYArr[c],p=a.minYArr[c]+(u-d);n.config.yaxis[t].reversed&&(p=a.maxYArr[c]-(u-d)),s.tooltipPosition.moveYCrosshairs(e-l.top),s.yaxisTooltipText[t].innerHTML=o(p),s.tooltipPosition.moveYAxisTooltip(t)}}}]),t}(),Rp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new Bp(this),this.tooltipLabels=new Op(this),this.tooltipPosition=new Ip(this),this.marker=new zp(this),this.intersect=new Dp(this),this.axesTooltip=new Fp(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return wc(t,[{key:"getElTooltip",value:function(t){return t||(t=this),t.w.globals.dom.baseEl?t.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(t){var e=this.w;this.xyRatios=t,this.isXAxisTooltipEnabled=e.config.xaxis.tooltip.enabled&&e.globals.axisCharts,this.yaxisTooltips=e.config.yaxis.map(function(t,i){return!!(t.show&&t.tooltip.enabled&&e.globals.axisCharts)}),this.allTooltipSeriesGroups=[],e.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),e.config.tooltip.cssClass&&i.classList.add(e.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme||"light")),e.globals.dom.elWrap.appendChild(i),e.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var s=new dp(this.ctx);this.xAxisTicksPositions=s.getXAxisTicksPositions()}if(!e.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==e.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==e.config.markers.size&&0!==e.globals.markers.largestSize||this.marker.drawDynamicPoints(this),e.globals.collapsedSeries.length!==e.globals.series.length){this.dataPointsDividedHeight=e.globals.gridHeight/e.globals.dataPoints,this.dataPointsDividedWidth=e.globals.gridWidth/e.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||e.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var n=e.globals.series.length;(e.globals.xyCharts||e.globals.comboCharts)&&this.tConfig.shared&&(n=this.showOnIntersect?1:e.globals.series.length),this.legendLabels=e.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(n),this.addSVGEvents()}}},{key:"createTTElements",value:function(t){for(var e=this,i=this.w,s=[],n=this.getElTooltip(),a=function(a){var r=document.createElement("div");r.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(a)),r.style.order=i.config.tooltip.inverseOrder?t-a:a+1;var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),i.config.tooltip.fillSeriesColor?o.style.backgroundColor=i.globals.colors[a]:o.style.color=i.globals.colors[a];var l=i.config.markers.shape,c=l;Array.isArray(l)&&(c=l[a]),o.setAttribute("shape",c),r.appendChild(o);var h=document.createElement("div");h.classList.add("apexcharts-tooltip-text"),h.style.fontFamily=e.tConfig.style.fontFamily||i.config.chart.fontFamily,h.style.fontSize=e.tConfig.style.fontSize,["y","goals","z"].forEach(function(t){var e=document.createElement("div");e.classList.add("apexcharts-tooltip-".concat(t,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(t,"-label")),e.appendChild(i);var s=document.createElement("span");s.classList.add("apexcharts-tooltip-text-".concat(t,"-value")),e.appendChild(s),h.appendChild(e)}),r.appendChild(h),n.appendChild(r),s.push(r)},r=0;r<t;r++)a(r);return s}},{key:"addSVGEvents",value:function(){var t=this.w,e=t.config.chart.type,i=this.getElTooltip(),s=!("bar"!==e&&"candlestick"!==e&&"boxPlot"!==e&&"rangeBar"!==e),n="area"===e||"line"===e||"scatter"===e||"bubble"===e||"radar"===e,a=t.globals.dom.Paper.node,r=this.getElGrid();r&&(this.seriesBound=r.getBoundingClientRect());var o,l=[],c=[],h={hoverArea:a,elGrid:r,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(t.globals.axisCharts&&(n?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):s?o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==e&&"treemap"!==e||(o=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var d=0;d<o.length;d++)l.push(o[d].getAttribute("cy")),c.push(o[d].getAttribute("cx"));if(t.globals.xyCharts&&!this.showOnIntersect||t.globals.comboCharts&&!this.showOnIntersect||s&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([a],h);else if(s&&!t.globals.comboCharts||n&&this.showOnIntersect)this.addDatapointEventsListeners(h);else if(!t.globals.axisCharts||"heatmap"===e||"treemap"===e){var u=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,h)}if(this.showOnIntersect){var p=t.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,h),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(h)}}},{key:"drawFixedTooltipRect",value:function(){var t=this.w,e=this.getElTooltip(),i=e.getBoundingClientRect(),s=i.width+10,n=i.height+10,a=this.tConfig.fixed.offsetX,r=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(a=a+t.globals.svgWidth-s+10),o.indexOf("bottom")>-1&&(r=r+t.globals.svgHeight-n-10),e.style.left=a+"px",e.style.top=r+"px",{x:a,y:r,ttWidth:s,ttHeight:n}}},{key:"addDatapointEventsListeners",value:function(t){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(e,t)}},{key:"addPathsEventListeners",value:function(t,e){for(var i=this,s=function(s){var n={paths:t[s],tooltipEl:e.tooltipEl,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:e.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(e){return t[s].addEventListener(e,i.onSeriesHover.bind(i,n),{capture:!1,passive:!0})})},n=0;n<t.length;n++)s(n)}},{key:"onSeriesHover",value:function(t,e){var i=this,s=Date.now()-this.lastHoverTime;s>=20?this.seriesHover(t,e):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(t,e)},20-s))}},{key:"seriesHover",value:function(t,e){var i=this;this.lastHoverTime=Date.now();var s=[],n=this.w;n.config.chart.group&&(s=this.ctx.getGroupedCharts()),n.globals.axisCharts&&(n.globals.minX===-1/0&&n.globals.maxX===1/0||0===n.globals.dataPoints)||(s.length?s.forEach(function(s){var n=i.getElTooltip(s),a={paths:t.paths,tooltipEl:n,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:s.w.globals.tooltip.ttItems};s.w.globals.minX===i.w.globals.minX&&s.w.globals.maxX===i.w.globals.maxX&&s.w.globals.tooltip.seriesHoverByContext({chartCtx:s,ttCtx:s.w.globals.tooltip,opt:a,e})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:t,e}))}},{key:"seriesHoverByContext",value:function(t){var e=t.chartCtx,i=t.ttCtx,s=t.opt,n=t.e,a=e.w,r=this.getElTooltip(e);r&&(i.tooltipRect={x:0,y:0,ttWidth:r.getBoundingClientRect().width,ttHeight:r.getBoundingClientRect().height},i.e=n,!i.tooltipUtil.hasBars()||a.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new lp(e).toggleSeriesOnHover(n,n.target.parentNode),a.globals.axisCharts?i.axisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:n,opt:s,tooltipRect:i.tooltipRect}),i.fixedTooltip&&i.drawFixedTooltipRect())}},{key:"axisChartsTooltips",value:function(t){var e,i,s=t.e,n=t.opt,a=this.w,r=n.elGrid.getBoundingClientRect(),o="touchmove"===s.type?s.touches[0].clientX:s.clientX,l="touchmove"===s.type?s.touches[0].clientY:s.clientY;if(this.clientY=l,this.clientX=o,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,l<r.top||l>r.top+r.height)this.handleMouseOut(n);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var c=parseInt(n.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(n)}var h=this.getElTooltip(),d=this.getElXCrosshairs(),u=[];a.config.chart.group&&(u=this.ctx.getSyncedCharts());var p=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===s.type||"touchmove"===s.type||"mouseup"===s.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var g=this.yaxisTooltips.filter(function(t){return!0===t});if(null!==this.ycrosshairs&&g.length&&this.ycrosshairs.classList.add("apexcharts-active"),p&&!this.showOnIntersect||u.length>1)this.handleStickyTooltip(s,o,l,n);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:s,opt:n,x:e,y:i,type:a.config.chart.type});e=f.x,i=f.y,h.style.left=e+"px",h.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:s,opt:n}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:s,opt:n,x:e,y:i});if(this.yaxisTooltips.length)for(var m=0;m<a.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),n.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==s.type&&"touchend"!==s.type||this.handleMouseOut(n)}}},{key:"nonAxisChartsTooltips",value:function(t){var e=t.e,i=t.opt,s=t.tooltipRect,n=this.w,a=i.paths.getAttribute("rel"),r=this.getElTooltip(),o=n.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===e.type||"touchmove"===e.type){n.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),r.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(a,10)-1,shared:!1});var l=n.globals.clientX-o.left-s.ttWidth/2,c=n.globals.clientY-o.top-s.ttHeight-10;if(r.style.left=l+"px",r.style.top=c+"px",n.config.legend.tooltipHoverFormatter){var h=a-1,d=(0,n.config.legend.tooltipHoverFormatter)(this.legendLabels[h].getAttribute("data:default-text"),{seriesIndex:h,dataPointIndex:h,w:n});this.legendLabels[h].innerHTML=d}}else"mouseout"!==e.type&&"touchend"!==e.type||(r.classList.remove("apexcharts-active"),n.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),n.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)}))}},{key:"handleStickyTooltip",value:function(t,e,i,s){var n=this.w,a=this.tooltipUtil.getNearestValues({context:this,hoverArea:s.hoverArea,elGrid:s.elGrid,clientX:e,clientY:i}),r=a.j,o=a.capturedSeries;n.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=s.elGrid.getBoundingClientRect();if(a.hoverX<0||a.hoverX>l.width)this.handleMouseOut(s);else if(null!==o)this.handleStickyCapturedSeries(t,o,s,r);else if(this.tooltipUtil.isXoverlap(r)||n.globals.isBarHorizontal){var c=n.globals.series.findIndex(function(t,e){return!n.globals.collapsedSeriesIndices.includes(e)});this.create(t,this,c,r,s.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(t,e,i,s){var n=this.w;if(this.tConfig.shared||null!==n.globals.series[e][s]){if(void 0!==n.globals.series[e][s])this.tConfig.shared&&this.tooltipUtil.isXoverlap(s)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(t,this,e,s,i.ttItems):this.create(t,this,e,s,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(s)){var a=n.globals.series.findIndex(function(t,e){return!n.globals.collapsedSeriesIndices.includes(e)});this.create(t,this,a,s,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var t=this.w,e=new Nu(this.ctx),i=t.globals.dom.Paper.find(".apexcharts-bar-area"),s=0;s<i.length;s++)e.pathMouseLeave(i[s])}},{key:"handleMouseOut",value:function(t){var e=this.w,i=this.getElXCrosshairs();if(e.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),t.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==e.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var s=0;s<this.yaxisTTEls.length;s++)this.yaxisTTEls[s].classList.remove("apexcharts-active")}e.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)})}},{key:"markerClick",value:function(t,e,i){var s=this.w;"function"==typeof s.config.chart.events.markerClick&&s.config.chart.events.markerClick(t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}),this.ctx.events.fireEvent("markerClick",[t,this.ctx,{seriesIndex:e,dataPointIndex:i,w:s}])}},{key:"create",value:function(t,e,i,s,n){var a,r,o,l,c,h,d,u,p,g,f,m,x,b,v,y,w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,A=this.w,k=e;"mouseup"===t.type&&this.markerClick(t,i,s),null===w&&(w=this.tConfig.shared);var C=this.tooltipUtil.hasMarkers(i),_=this.tooltipUtil.getElBars(),E=function(){A.globals.markers.largestSize>0?k.marker.enlargePoints(s):k.tooltipPosition.moveDynamicPointsOnHover(s)};if(A.config.legend.tooltipHoverFormatter){var S=A.config.legend.tooltipHoverFormatter,M=Array.from(this.legendLabels);M.forEach(function(t){var e=t.getAttribute("data:default-text");t.innerHTML=decodeURIComponent(e)});for(var T=0;T<M.length;T++){var L=M[T],P=parseInt(L.getAttribute("i"),10),B=decodeURIComponent(L.getAttribute("data:default-text")),O=S(B,{seriesIndex:w?P:i,dataPointIndex:s,w:A});if(w)L.innerHTML=A.globals.collapsedSeriesIndices.indexOf(P)<0?O:B;else if(L.innerHTML=P===i?O:B,i===P)break}}var I=Tc(Tc({ttItems:n,i,j:s},void 0!==(null===(a=A.globals.seriesRange)||void 0===a||null===(r=a[i])||void 0===r||null===(o=r[s])||void 0===o||null===(l=o.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(c=A.globals.seriesRange)||void 0===c||null===(h=c[i])||void 0===h||null===(d=h[s])||void 0===d||null===(u=d.y[0])||void 0===u?void 0:u.y1}),void 0!==(null===(p=A.globals.seriesRange)||void 0===p||null===(g=p[i])||void 0===g||null===(f=g[s])||void 0===f||null===(m=f.y[0])||void 0===m?void 0:m.y2)&&{y2:null===(x=A.globals.seriesRange)||void 0===x||null===(b=x[i])||void 0===b||null===(v=b[s])||void 0===v||null===(y=v.y[0])||void 0===y?void 0:y.y2});if(w){if(k.tooltipLabels.drawSeriesTexts(Tc(Tc({},I),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),C)E();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(_),this.barSeriesHeight>0)){var z=new Nu(this.ctx),D=A.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(s,"']"));this.deactivateHoverFilter(),k.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&E(),k.tooltipPosition.moveStickyTooltipOverBars(s,i);for(var F=0;F<D.length;F++)z.pathMouseEnter(D[F])}}else k.tooltipLabels.drawSeriesTexts(Tc({shared:!1},I)),this.tooltipUtil.hasBars()&&k.tooltipPosition.moveStickyTooltipOverBars(s,i),C&&k.tooltipPosition.moveMarkers(i,s)}}]),t}(),Hp=function(){function t(e){vc(this,t),this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return wc(t,[{key:"handleBarDataLabels",value:function(t){var e,i,s=t.x,n=t.y,a=t.y1,r=t.y2,o=t.i,l=t.j,c=t.realIndex,h=t.columnGroupIndex,d=t.series,u=t.barHeight,p=t.barWidth,g=t.barXPosition,f=t.barYPosition,m=t.visibleSeries,x=this.w,b=new Nu(this.barCtx.ctx),v=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[c]:this.barCtx.strokeWidth;x.globals.isXNumeric&&!x.globals.isBarHorizontal?(e=s+parseFloat(p*(m+1)),i=n+parseFloat(u*(m+1))-v):(e=s+parseFloat(p*m),i=n+parseFloat(u*m));var y,w,A=null,k=s,C=n,_=x.config.dataLabels,E=this.barCtx.barOptions.dataLabels,S=this.barCtx.barOptions.dataLabels.total;void 0!==f&&this.barCtx.isRangeBar&&(i=f,C=f),void 0!==g&&this.barCtx.isVerticalGroupedRangeBar&&(e=g,k=g);var M=_.offsetX,T=_.offsetY,L={width:0,height:0};if(x.config.dataLabels.enabled){var P=x.globals.series[o][l];L=b.getTextRects(x.config.dataLabels.formatter?x.config.dataLabels.formatter(P,Tc(Tc({},x),{},{seriesIndex:o,dataPointIndex:l,w:x})):x.globals.yLabelFormatters[0](P),parseFloat(_.style.fontSize))}var B={x:s,y:n,i:o,j:l,realIndex:c,columnGroupIndex:h,bcx:e,bcy:i,barHeight:u,barWidth:p,textRects:L,strokeWidth:v,dataLabelsX:k,dataLabelsY:C,dataLabelsConfig:_,barDataLabelsConfig:E,barTotalDataLabelsConfig:S,offX:M,offY:T};return w=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(B):this.calculateColumnsDataLabelsPosition(B),y=this.drawCalculatedDataLabels({x:w.dataLabelsX,y:w.dataLabelsY,val:this.barCtx.isRangeBar?[a,r]:"100%"===x.config.chart.stackType?d[c][l]:x.globals.series[c][l],i:c,j:l,barWidth:p,barHeight:u,textRects:L,dataLabelsConfig:_}),x.config.chart.stacked&&S.enabled&&(A=this.drawTotalDataLabels({x:w.totalDataLabelsX,y:w.totalDataLabelsY,barWidth:p,barHeight:u,realIndex:c,textAnchor:w.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:c,j:l}),dataLabelsConfig:_,barTotalDataLabelsConfig:S})),{dataLabelsPos:w,dataLabels:y,totalDataLabels:A}}},{key:"getStackedTotalDataLabel",value:function(t){var e=t.realIndex,i=t.j,s=this.w,n=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(n=this.totalFormatter(n,Tc(Tc({},s),{},{seriesIndex:e,dataPointIndex:i,w:s}))),n}},{key:"calculateColumnsDataLabelsPosition",value:function(t){var e=this,i=this.w,s=t.i,n=t.j,a=t.realIndex;t.columnGroupIndex;var r,o,l=t.y,c=t.bcx,h=t.barWidth,d=t.barHeight,u=t.textRects,p=t.dataLabelsX,g=t.dataLabelsY,f=t.dataLabelsConfig,m=t.barDataLabelsConfig,x=t.barTotalDataLabelsConfig,b=t.strokeWidth,v=t.offX,y=t.offY,w=c;d=Math.abs(d);var A="vertical"===i.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:s,j:n}).zeroEncounters;c-=b/2;var C=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?p+=h/2:(p=i.globals.isXNumeric?c-h/2+v:c-C+h/2+v,!i.config.chart.stacked&&k>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(p-=h*k)),A&&(p=p+u.height/2-b/2-2);var _=i.globals.series[s][n]<0,E=l;switch(this.barCtx.isReversed&&(E=l+(_?d:-d)),m.position){case"center":g=A?_?E-d/2+y:E+d/2-y:_?E-d/2+u.height/2+y:E+d/2+u.height/2-y;break;case"bottom":g=A?_?E-d+y:E+d-y:_?E-d+u.height+b+y:E+d-u.height/2+b-y;break;case"top":g=A?_?E+y:E-y:_?E-u.height/2-y:E+u.height+y}var S=E;if(i.globals.seriesGroups.forEach(function(t){var i;null===(i=e.barCtx[t.join(",")])||void 0===i||i.prevY.forEach(function(t){S=_?Math.max(t[n],S):Math.min(t[n],S)})}),this.barCtx.lastActiveBarSerieIndex===a&&x.enabled){var M=new Nu(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:n}),f.fontSize);r=_?S-M.height/2-y-x.offsetY+18:S+M.height+y+x.offsetY-18;var T=C;o=w+(i.globals.isXNumeric?-h*i.globals.barGroups.length/2:i.globals.barGroups.length*h/2-(i.globals.barGroups.length-1)*h-T)+x.offsetX}return i.config.chart.stacked||(g<0?g=0+b:g+u.height/3>i.globals.gridHeight&&(g=i.globals.gridHeight-b)),{bcx:c,bcy:l,dataLabelsX:p,dataLabelsY:g,totalDataLabelsX:o,totalDataLabelsY:r,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(t){var e=this,i=this.w,s=t.x,n=t.i,a=t.j,r=t.realIndex,o=t.bcy,l=t.barHeight,c=t.barWidth,h=t.textRects,d=t.dataLabelsX,u=t.strokeWidth,p=t.dataLabelsConfig,g=t.barDataLabelsConfig,f=t.barTotalDataLabelsConfig,m=t.offX,x=t.offY,b=i.globals.gridHeight/i.globals.dataPoints,v=this.barCtx.barHelpers.getZeroValueEncounters({i:n,j:a}).zeroEncounters;c=Math.abs(c);var y,w,A=o-(this.barCtx.isRangeBar?0:b)+l/2+h.height/2+x-3;!i.config.chart.stacked&&v>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(A-=l*v);var k="start",C=i.globals.series[n][a]<0,_=s;switch(this.barCtx.isReversed&&(_=s+(C?-c:c),k=C?"start":"end"),g.position){case"center":d=C?_+c/2-m:Math.max(h.width/2,_-c/2)+m;break;case"bottom":d=C?_+c-u-m:_-c+u+m;break;case"top":d=C?_-u-m:_-u+m}var E=_;if(i.globals.seriesGroups.forEach(function(t){var i;null===(i=e.barCtx[t.join(",")])||void 0===i||i.prevX.forEach(function(t){E=C?Math.min(t[a],E):Math.max(t[a],E)})}),this.barCtx.lastActiveBarSerieIndex===r&&f.enabled){var S=new Nu(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:r,j:a}),p.fontSize);C?(y=E-u-m-f.offsetX,k="end"):y=E+m+f.offsetX+(this.barCtx.isReversed?-(c+u):u),w=A-h.height/2+S.height/2+f.offsetY+u,i.globals.barGroups.length>1&&(w-=i.globals.barGroups.length/2*(l/2))}return i.config.chart.stacked||("start"===p.textAnchor?d-h.width<0?d=C?h.width+u:u:d+h.width>i.globals.gridWidth&&(d=C?i.globals.gridWidth-u:i.globals.gridWidth-h.width-u):"middle"===p.textAnchor?d-h.width/2<0?d=h.width/2+u:d+h.width/2>i.globals.gridWidth&&(d=i.globals.gridWidth-h.width/2-u):"end"===p.textAnchor&&(d<1?d=h.width+u:d+1>i.globals.gridWidth&&(d=i.globals.gridWidth-h.width-u))),{bcx:s,bcy:o,dataLabelsX:d,dataLabelsY:A,totalDataLabelsX:y,totalDataLabelsY:w,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(t){var e=t.x,i=t.y,s=t.val,n=t.i,a=t.j,r=t.textRects,o=t.barHeight,l=t.barWidth,c=t.dataLabelsConfig,h=this.w,d="rotate(0)";"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(e,", ").concat(i,")"));var u=new op(this.barCtx.ctx),p=new Nu(this.barCtx.ctx),g=c.formatter,f=null,m=h.globals.collapsedSeriesIndices.indexOf(n)>-1;if(c.enabled&&!m){f=p.group({class:"apexcharts-data-labels",transform:d});var x="";void 0!==s&&(x=g(s,Tc(Tc({},h),{},{seriesIndex:n,dataPointIndex:a,w:h}))),!s&&h.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(x="");var b=h.globals.series[n][a]<0,v=h.config.plotOptions.bar.dataLabels.position;"vertical"===h.config.plotOptions.bar.dataLabels.orientation&&("top"===v&&(c.textAnchor=b?"end":"start"),"center"===v&&(c.textAnchor="middle"),"bottom"===v&&(c.textAnchor=b?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<p.getTextRects(x,parseFloat(c.style.fontSize)).width&&(x=""),h.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?r.width/1.6>Math.abs(l)&&(x=""):r.height/1.6>Math.abs(o)&&(x=""));var y=Tc({},c);this.barCtx.isHorizontal&&s<0&&("start"===c.textAnchor?y.textAnchor="end":"end"===c.textAnchor&&(y.textAnchor="start")),u.plotDataLabelsText({x:e,y:i,text:x,i:n,j:a,parent:f,dataLabelsConfig:y,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return f}},{key:"drawTotalDataLabels",value:function(t){var e=t.x,i=t.y,s=t.val,n=t.realIndex,a=t.textAnchor,r=t.barTotalDataLabelsConfig;this.w;var o,l=new Nu(this.barCtx.ctx);return r.enabled&&void 0!==e&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===n&&(o=l.drawText({x:e,y:i,foreColor:r.style.color,text:s,textAnchor:a,fontFamily:r.style.fontFamily,fontSize:r.style.fontSize,fontWeight:r.style.fontWeight})),o}}]),t}(),Np=function(){function t(e){vc(this,t),this.w=e.w,this.barCtx=e}return wc(t,[{key:"initVariables",value:function(t){var e=this.w;this.barCtx.series=t,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<t.length;i++)if(t[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=t[i].length),e.globals.isXNumeric)for(var s=0;s<t[i].length;s++)e.globals.seriesX[i][s]>e.globals.minX&&e.globals.seriesX[i][s]<e.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=e.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(e.globals.series),Dc.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(function(t){return t.map(function(t){return"none"})})),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],e.globals.comboCharts||this.checkZeroSeries({series:t})}},{key:"initialPositions",value:function(t){var e,i,s,n,a,r,o,l,c=this.w,h=c.globals.dataPoints;this.barCtx.isRangeBar&&(h=c.globals.labels.length);var d=this.barCtx.seriesLen;if(c.config.plotOptions.bar.rangeBarGroupRows&&(d=1),this.barCtx.isHorizontal)a=(s=c.globals.gridHeight/h)/d,c.globals.isXNumeric&&(a=(s=c.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),a=a*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.barHeight,10)),l=this.barCtx.baseLineInvertedY+c.globals.padHorizontal+(this.barCtx.isReversed?c.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(l=c.globals.gridWidth/2),i=(s-a*this.barCtx.seriesLen)/2;else{if(n=c.globals.gridWidth/this.barCtx.visibleItems,c.config.xaxis.convertedCatToNumeric&&(n=c.globals.gridWidth/c.globals.dataPoints),r=n/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100,c.globals.isXNumeric){var u=this.barCtx.xRatio;c.globals.minXDiff&&.5!==c.globals.minXDiff&&c.globals.minXDiff/u>0&&(n=c.globals.minXDiff/u),(r=n/d*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(r=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(r=parseInt(this.barCtx.barOptions.columnWidth,10)),o=c.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?c.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=c.globals.isXNumeric?this.barCtx.getBarXForNumericXAxis({x:e,j:0,realIndex:t,barWidth:r}).x:c.globals.padHorizontal+Dc.noExponents(n-r*this.barCtx.seriesLen)/2}return c.globals.barHeight=a,c.globals.barWidth=r,{x:e,y:i,yDivision:s,xDivision:n,barHeight:a,barWidth:r,zeroH:o,zeroW:l}}},{key:"initializeStackedPrevVars",value:function(t){t.w.globals.seriesGroups.forEach(function(e){t[e]||(t[e]={}),t[e].prevY=[],t[e].prevX=[],t[e].prevYF=[],t[e].prevXF=[],t[e].prevYVal=[],t[e].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(t){t.w.globals.seriesGroups.forEach(function(e){t[e]||(t[e]={}),t[e].xArrj=[],t[e].xArrjF=[],t[e].xArrjVal=[],t[e].yArrj=[],t[e].yArrjF=[],t[e].yArrjVal=[]})}},{key:"getPathFillColor",value:function(t,e,i,s){var n,a,r,o,l=this.w,c=this.barCtx.ctx.fill,h=null,d=this.barCtx.barOptions.distributed?i:e,u=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(s){t[e][i]>=s.from&&t[e][i]<=s.to&&(h=s.color,u=!0)}),{color:c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?d:s,dataPointIndex:i,color:h,value:t[e][i],fillConfig:null===(n=l.config.series[e].data[i])||void 0===n?void 0:n.fill,fillType:null!==(a=l.config.series[e].data[i])&&void 0!==a&&null!==(r=a.fill)&&void 0!==r&&r.type?null===(o=l.config.series[e].data[i])||void 0===o?void 0:o.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[s]:l.config.fill.type}),useRangeColor:u}}},{key:"getStrokeWidth",value:function(t,e,i){var s=0,n=this.w;return void 0===this.barCtx.series[t][e]||null===this.barCtx.series[t][e]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,n.config.stroke.show&&(this.barCtx.isNullValue||(s=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),s}},{key:"createBorderRadiusArr",value:function(t){var e,i=this.w,s=!this.w.config.chart.stacked||i.config.plotOptions.bar.borderRadius<=0,n=t.length,a=0|(null===(e=t[0])||void 0===e?void 0:e.length),r=Array.from({length:n},function(){return Array(a).fill(s?"top":"none")});if(s)return r;for(var o=0;o<a;o++){for(var l=[],c=[],h=0,d=0;d<n;d++){var u=t[d][o];u>0?(l.push(d),h++):u<0&&(c.push(d),h++)}if(l.length>0&&0===c.length)if(1===l.length)r[l[0]][o]="both";else{var p,g=l[0],f=l[l.length-1],m=Ac(l);try{for(m.s();!(p=m.n()).done;){var x=p.value;r[x][o]=x===g?"bottom":x===f?"top":"none"}}catch(t){m.e(t)}finally{m.f()}}else if(c.length>0&&0===l.length)if(1===c.length)r[c[0]][o]="both";else{var b,v=Math.max.apply(Math,c),y=Math.min.apply(Math,c),w=Ac(c);try{for(w.s();!(b=w.n()).done;){var A=b.value;r[A][o]=A===v?"bottom":A===y?"top":"none"}}catch(t){w.e(t)}finally{w.f()}}else if(l.length>0&&c.length>0){var k,C=l[l.length-1],_=Ac(l);try{for(_.s();!(k=_.n()).done;){var E=k.value;r[E][o]=E===C?"top":"none"}}catch(t){_.e(t)}finally{_.f()}var S,M=Math.max.apply(Math,c),T=Ac(c);try{for(T.s();!(S=T.n()).done;){var L=S.value;r[L][o]=L===M?"bottom":"none"}}catch(t){T.e(t)}finally{T.f()}}else 1===h&&(r[l[0]||c[0]][o]="both")}return r}},{key:"barBackground",value:function(t){var e=t.j,i=t.i,s=t.x1,n=t.x2,a=t.y1,r=t.y2,o=t.elSeries,l=this.w,c=new Nu(this.barCtx.ctx),h=new lp(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&h===i){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[e],u=c.drawRect(void 0!==s?s:0,void 0!==a?a:0,void 0!==n?n:l.globals.gridWidth,void 0!==r?r:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(t){var e,i=t.barWidth,s=t.barXPosition,n=t.y1,a=t.y2,r=t.strokeWidth,o=t.isReversed,l=t.series,c=t.seriesGroup,h=t.realIndex,d=t.i,u=t.j,p=t.w,g=new Nu(this.barCtx.ctx);(r=Array.isArray(r)?r[h]:r)||(r=0);var f=i,m=s;null!==(e=p.config.series[h].data[u])&&void 0!==e&&e.columnWidthOffset&&(m=s-p.config.series[h].data[u].columnWidthOffset/2,f=i+p.config.series[h].data[u].columnWidthOffset);var x=r/2,b=m+x,v=m+f-x,y=(l[d][u]>=0?1:-1)*(o?-1:1);n+=.001-x*y,a+=.001+x*y;var w=g.move(b,n),A=g.move(b,n),k=g.line(v,n);if(p.globals.previousPaths.length>0&&(A=this.barCtx.getPreviousPath(h,u,!1)),w=w+g.line(b,a)+g.line(v,a)+k+("around"===p.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[h][u]?" Z":" z"),A=A+g.line(b,n)+k+k+k+k+k+g.line(b,n)+("around"===p.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[h][u]?" Z":" z"),"none"!==this.arrBorderRadius[h][u]&&(w=g.roundPathCorners(w,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var C=this.barCtx;(C=this.barCtx[c]).yArrj.push(a-x*y),C.yArrjF.push(Math.abs(n-a+r*y)),C.yArrjVal.push(this.barCtx.series[d][u])}return{pathTo:w,pathFrom:A}}},{key:"getBarpaths",value:function(t){var e,i=t.barYPosition,s=t.barHeight,n=t.x1,a=t.x2,r=t.strokeWidth,o=t.isReversed,l=t.series,c=t.seriesGroup,h=t.realIndex,d=t.i,u=t.j,p=t.w,g=new Nu(this.barCtx.ctx);(r=Array.isArray(r)?r[h]:r)||(r=0);var f=i,m=s;null!==(e=p.config.series[h].data[u])&&void 0!==e&&e.barHeightOffset&&(f=i-p.config.series[h].data[u].barHeightOffset/2,m=s+p.config.series[h].data[u].barHeightOffset);var x=r/2,b=f+x,v=f+m-x,y=(l[d][u]>=0?1:-1)*(o?-1:1);n+=.001+x*y,a+=.001-x*y;var w=g.move(n,b),A=g.move(n,b);p.globals.previousPaths.length>0&&(A=this.barCtx.getPreviousPath(h,u,!1));var k=g.line(n,v);if(w=w+g.line(a,b)+g.line(a,v)+k+("around"===p.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[h][u]?" Z":" z"),A=A+g.line(n,b)+k+k+k+k+k+g.line(n,b)+("around"===p.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[h][u]?" Z":" z"),"none"!==this.arrBorderRadius[h][u]&&(w=g.roundPathCorners(w,p.config.plotOptions.bar.borderRadius)),p.config.chart.stacked){var C=this.barCtx;(C=this.barCtx[c]).xArrj.push(a+x*y),C.xArrjF.push(Math.abs(n-a-r*y)),C.xArrjVal.push(this.barCtx.series[d][u])}return{pathTo:w,pathFrom:A}}},{key:"checkZeroSeries",value:function(t){for(var e=t.series,i=this.w,s=0;s<e.length;s++){for(var n=0,a=0;a<e[i.globals.maxValsInArrayIndex].length;a++)n+=e[s][a];0===n&&this.barCtx.zeroSerieses.push(s)}}},{key:"getXForValue",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:e;return null!=t&&(i=e+t/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?t/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(t,e,i){var s=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:e;return null!=t&&(s=e-t/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?t/this.barCtx.yRatio[i]:0)),s}},{key:"getGoalValues",value:function(t,e,i,s,n,a){var r=this,o=this.w,l=[],c=function(s,n){var o;l.push((Cc(o={},t,"x"===t?r.getXForValue(s,e,!1):r.getYForValue(s,i,a,!1)),Cc(o,"attrs",n),o))};if(o.globals.seriesGoals[s]&&o.globals.seriesGoals[s][n]&&Array.isArray(o.globals.seriesGoals[s][n])&&o.globals.seriesGoals[s][n].forEach(function(t){c(t.value,t)}),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var h=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,d={strokeHeight:"x"===t?0:o.globals.markers.size[s],strokeWidth:"x"===t?o.globals.markers.size[s]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(h[s])?h[s][0]:h[s]};c(o.globals.seriesRangeStart[s][n],d),c(o.globals.seriesRangeEnd[s][n],Tc(Tc({},d),{},{strokeColor:Array.isArray(h[s])?h[s][1]:h[s]}))}return l}},{key:"drawGoalLine",value:function(t){var e=t.barXPosition,i=t.barYPosition,s=t.goalX,n=t.goalY,a=t.barWidth,r=t.barHeight,o=new Nu(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(s)&&s.forEach(function(t){if(t.x>=-1&&t.x<=o.w.globals.gridWidth+1){var e=void 0!==t.attrs.strokeHeight?t.attrs.strokeHeight:r/2,s=i+e+r/2;c=o.drawLine(t.x,s-2*e,t.x,s,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeWidth?t.attrs.strokeWidth:2,t.attrs.strokeLineCap),l.add(c)}}):Array.isArray(n)&&n.forEach(function(t){if(t.y>=-1&&t.y<=o.w.globals.gridHeight+1){var i=void 0!==t.attrs.strokeWidth?t.attrs.strokeWidth:a/2,s=e+i+a/2;c=o.drawLine(s-2*i,t.y,s,t.y,t.attrs.strokeColor?t.attrs.strokeColor:void 0,t.attrs.strokeDashArray,t.attrs.strokeHeight?t.attrs.strokeHeight:2,t.attrs.strokeLineCap),l.add(c)}}),l}},{key:"drawBarShadow",value:function(t){var e=t.prevPaths,i=t.currPaths,s=t.color,n=this.w,a=e.x,r=e.x1,o=e.barYPosition,l=i.x,c=i.x1,h=i.barYPosition,d=o+i.barHeight,u=new Nu(this.barCtx.ctx),p=new Dc,g=u.move(r,d)+u.line(a,d)+u.line(l,h)+u.line(c,h)+u.line(r,d)+("around"===n.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return u.drawPath({d:g,fill:p.shadeColor(.5,Dc.rgb2hex(s)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(t){var e,i=t.i,s=t.j,n=this.w,a=0,r=0;return(n.config.plotOptions.bar.horizontal?n.globals.series.map(function(t,e){return e}):(null===(e=n.globals.columnSeries)||void 0===e?void 0:e.i.map(function(t){return t}))||[]).forEach(function(t){var e=n.globals.seriesPercent[t][s];e&&a++,t<i&&0===e&&r++}),{nonZeroColumns:a,zeroEncounters:r}}},{key:"getGroupIndex",value:function(t){var e=this.w,i=e.globals.seriesGroups.findIndex(function(i){return i.indexOf(e.globals.seriesNames[t])>-1}),s=this.barCtx.columnGroupIndices,n=s.indexOf(i);return n<0&&(s.push(i),n=s.length-1),{groupIndex:i,columnGroupIndex:n}}}]),t}(),Yp=function(){function t(e,i){vc(this,t),this.ctx=e,this.w=e.w;var s=this.w;this.barOptions=s.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=s.config.stroke.width,this.isNullValue=!1,this.isRangeBar=s.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!s.globals.isBarHorizontal&&s.globals.seriesRange.length&&s.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var n=new lp(this.ctx);this.lastActiveBarSerieIndex=n.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var a=n.getBarSeriesIndices(),r=new Yu(this.ctx);this.stackedSeriesTotals=r.getStackedSeriesTotals(this.w.config.series.map(function(t,e){return-1===a.indexOf(e)?e:-1}).filter(function(t){return-1!==t})),this.barHelpers=new Np(this)}return wc(t,[{key:"draw",value:function(t,e){var i=this.w,s=new Nu(this.ctx),n=new Yu(this.ctx,i);t=n.getLogSeries(t),this.series=t,this.yRatio=n.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);var a=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var r=0,o=0;r<t.length;r++,o++){var l,c,h,d,u=void 0,p=void 0,g=[],f=[],m=i.globals.comboCharts?e[r]:r,x=this.barHelpers.getGroupIndex(m).columnGroupIndex,b=s.group({class:"apexcharts-series",rel:r+1,seriesName:Dc.escapeString(i.globals.seriesNames[m]),"data:realIndex":m});this.ctx.series.addCollapsedClassToSeries(b,m),t[r].length>0&&(this.visibleI=this.visibleI+1);var v=0,y=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[m],this.translationsIndex=m);var w=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var A=this.barHelpers.initialPositions(m);p=A.y,v=A.barHeight,c=A.yDivision,d=A.zeroW,u=A.x,y=A.barWidth,l=A.xDivision,h=A.zeroH,this.isHorizontal||f.push(u+y/2);var k=s.group({class:"apexcharts-datalabels","data:realIndex":m});i.globals.delayedElements.push({el:k.node}),k.node.classList.add("apexcharts-element-hidden");var C=s.group({class:"apexcharts-bar-goals-markers"}),_=s.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:_.node}),_.node.classList.add("apexcharts-element-hidden");for(var E=0;E<t[r].length;E++){var S=this.barHelpers.getStrokeWidth(r,E,m),M=null,T={indexes:{i:r,j:E,realIndex:m,translationsIndex:w,bc:o},x:u,y:p,strokeWidth:S,elSeries:b};this.isHorizontal?(M=this.drawBarPaths(Tc(Tc({},T),{},{barHeight:v,zeroW:d,yDivision:c})),y=this.series[r][E]/this.invertedYRatio):(M=this.drawColumnPaths(Tc(Tc({},T),{},{xDivision:l,barWidth:y,zeroH:h})),v=this.series[r][E]/this.yRatio[w]);var L=this.barHelpers.getPathFillColor(t,r,E,m);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&E>0){var P,B=this.barHelpers.drawBarShadow({color:"string"==typeof L.color&&-1===(null===(P=L.color)||void 0===P?void 0:P.indexOf("url"))?L.color:Dc.hexToRgba(i.globals.colors[r]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:M});_.add(B),i.config.chart.dropShadow.enabled&&new Hu(this.ctx).dropShadow(B,i.config.chart.dropShadow,m)}this.pathArr.push(M);var O=this.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:v,barWidth:y});O&&C.add(O),p=M.y,u=M.x,E>0&&f.push(u+y/2),g.push(p),this.renderSeries(Tc(Tc({realIndex:m,pathFill:L.color},L.useRangeColor?{lineFill:L.color}:{}),{},{j:E,i:r,columnGroupIndex:x,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:S,elSeries:b,x:u,y:p,series:t,barHeight:Math.abs(M.barHeight?M.barHeight:v),barWidth:Math.abs(M.barWidth?M.barWidth:y),elDataLabelsWrap:k,elGoalsMarkers:C,elBarShadows:_,visibleSeries:this.visibleI,type:"bar"}))}i.globals.seriesXvalues[m]=f,i.globals.seriesYvalues[m]=g,a.add(b)}return a}},{key:"renderSeries",value:function(t){var e=t.realIndex,i=t.pathFill,s=t.lineFill,n=t.j,a=t.i,r=t.columnGroupIndex,o=t.pathFrom,l=t.pathTo,c=t.strokeWidth,h=t.elSeries,d=t.x,u=t.y,p=t.y1,g=t.y2,f=t.series,m=t.barHeight,x=t.barWidth,b=t.barXPosition,v=t.barYPosition,y=t.elDataLabelsWrap,w=t.elGoalsMarkers,A=t.elBarShadows,k=t.visibleSeries,C=t.type,_=t.classes,E=this.w,S=new Nu(this.ctx),M=!1;if(!s){var T="function"==typeof E.globals.stroke.colors[e]?function(t){var e,i=E.config.stroke.colors;return Array.isArray(i)&&i.length>0&&((e=i[t])||(e=""),"function"==typeof e)?e({value:E.globals.series[t][n],dataPointIndex:n,w:E}):e}(e):E.globals.stroke.colors[e];s=this.barOptions.distributed?E.globals.stroke.colors[n]:T}var L=new Hp(this).handleBarDataLabels({x:d,y:u,y1:p,y2:g,i:a,j:n,series:f,realIndex:e,columnGroupIndex:r,barHeight:m,barWidth:x,barXPosition:b,barYPosition:v,visibleSeries:k});E.globals.isBarHorizontal||(L.dataLabelsPos.dataLabelsX+x<0||L.dataLabelsPos.dataLabelsX-x>E.globals.gridWidth)&&(M=!0),E.config.series[a].data[n]&&E.config.series[a].data[n].strokeColor&&(s=E.config.series[a].data[n].strokeColor),this.isNullValue&&(i="none");var P=n/E.config.chart.animations.animateGradually.delay*(E.config.chart.animations.speed/E.globals.dataPoints)/2.4;if(!M){var B=S.renderPaths({i:a,j:n,realIndex:e,pathFrom:o,pathTo:l,stroke:s,strokeWidth:c,strokeLineCap:E.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:E.config.chart.animations.speed,dataChangeSpeed:E.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(C,"-area ").concat(_),chartType:C});B.attr("clip-path","url(#gridRectBarMask".concat(E.globals.cuid,")"));var O=E.config.forecastDataPoints;O.count>0&&n>=E.globals.dataPoints-O.count&&(B.node.setAttribute("stroke-dasharray",O.dashArray),B.node.setAttribute("stroke-width",O.strokeWidth),B.node.setAttribute("fill-opacity",O.fillOpacity)),void 0!==p&&void 0!==g&&(B.attr("data-range-y1",p),B.attr("data-range-y2",g)),new Hu(this.ctx).setSelectionFilter(B,e,n),h.add(B),B.attr({cy:L.dataLabelsPos.bcy,cx:L.dataLabelsPos.bcx,j:n,val:E.globals.series[a][n],barHeight:m,barWidth:x}),null!==L.dataLabels&&y.add(L.dataLabels),L.totalDataLabels&&y.add(L.totalDataLabels),h.add(y),w&&h.add(w),A&&h.add(A)}return h}},{key:"drawBarPaths",value:function(t){var e,i=t.indexes,s=t.barHeight,n=t.strokeWidth,a=t.zeroW,r=t.x,o=t.y,l=t.yDivision,c=t.elSeries,h=this.w,d=i.i,u=i.j;if(h.globals.isXNumeric)e=(o=(h.globals.seriesX[d][u]-h.globals.minX)/this.invertedXRatio-s)+s*this.visibleI;else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var p=this.barHelpers.getZeroValueEncounters({i:d,j:u}),g=p.nonZeroColumns,f=p.zeroEncounters;g>0&&(s=this.seriesLen*s/g),e=o+s*this.visibleI,e-=s*f}else e=o+s*this.visibleI;this.isFunnel&&(a-=(this.barHelpers.getXForValue(this.series[d][u],a)-a)/2),r=this.barHelpers.getXForValue(this.series[d][u],a);var m=this.barHelpers.getBarpaths({barYPosition:e,barHeight:s,x1:a,x2:r,strokeWidth:n,isReversed:this.isReversed,series:this.series,realIndex:i.realIndex,i:d,j:u,w:h});return h.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:u,i:d,y1:e-s*this.visibleI,y2:s*this.seriesLen,elSeries:c}),{pathTo:m.pathTo,pathFrom:m.pathFrom,x1:a,x:r,y:o,goalX:this.barHelpers.getGoalValues("x",a,null,d,u),barYPosition:e,barHeight:s}}},{key:"drawColumnPaths",value:function(t){var e,i=t.indexes,s=t.x,n=t.y,a=t.xDivision,r=t.barWidth,o=t.zeroH,l=t.strokeWidth,c=t.elSeries,h=this.w,d=i.realIndex,u=i.translationsIndex,p=i.i,g=i.j,f=i.bc;if(h.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:s,j:g,realIndex:d,barWidth:r});s=m.x,e=m.barXPosition}else if(h.config.plotOptions.bar.hideZeroBarsWhenGrouped){var x=this.barHelpers.getZeroValueEncounters({i:p,j:g}),b=x.nonZeroColumns,v=x.zeroEncounters;b>0&&(r=this.seriesLen*r/b),e=s+r*this.visibleI,e-=r*v}else e=s+r*this.visibleI;n=this.barHelpers.getYForValue(this.series[p][g],o,u);var y=this.barHelpers.getColumnPaths({barXPosition:e,barWidth:r,y1:o,y2:n,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:d,i:p,j:g,w:h});return h.globals.isXNumeric||(s+=a),this.barHelpers.barBackground({bc:f,j:g,i:p,x1:e-l/2-r*this.visibleI,x2:r*this.seriesLen+l/2,elSeries:c}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:s,y:n,goalY:this.barHelpers.getGoalValues("y",null,o,p,g,u),barXPosition:e,barWidth:r}}},{key:"getBarXForNumericXAxis",value:function(t){var e=t.x,i=t.barWidth,s=t.realIndex,n=t.j,a=this.w,r=s;return a.globals.seriesX[s].length||(r=a.globals.maxValsInArrayIndex),Dc.isNumber(a.globals.seriesX[r][n])&&(e=(a.globals.seriesX[r][n]-a.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:e+i*this.visibleI,x:e}}},{key:"getPreviousPath",value:function(t,e){for(var i=this.w,s="M 0 0",n=0;n<i.globals.previousPaths.length;n++){var a=i.globals.previousPaths[n];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(t,10)&&void 0!==i.globals.previousPaths[n].paths[e]&&(s=i.globals.previousPaths[n].paths[e].d)}return s}}]),t}(),Wp=function(){Ec(e,Yp);var t=kc(e);function e(){return vc(this,e),t.apply(this,arguments)}return wc(e,[{key:"draw",value:function(t,e){var i=this,s=this.w;this.graphics=new Nu(this.ctx),this.bar=new Yp(this.ctx,this.xyRatios);var n=new Yu(this.ctx,s);t=n.getLogSeries(t),this.yRatio=n.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t),"100%"===s.config.chart.stackType&&(t=s.globals.comboCharts?e.map(function(t){return s.globals.seriesPercent[t]}):s.globals.seriesPercent.slice()),this.series=t,this.barHelpers.initializeStackedPrevVars(this);for(var a=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),r=0,o=0,l=function(n,l){var c=void 0,h=void 0,d=void 0,u=void 0,p=s.globals.comboCharts?e[n]:n,g=i.barHelpers.getGroupIndex(p),f=g.groupIndex,m=g.columnGroupIndex;i.groupCtx=i[s.globals.seriesGroups[f]];var x=[],b=[],v=0;i.yRatio.length>1&&(i.yaxisIndex=s.globals.seriesYAxisReverseMap[p][0],v=p),i.isReversed=s.config.yaxis[i.yaxisIndex]&&s.config.yaxis[i.yaxisIndex].reversed;var y=i.graphics.group({class:"apexcharts-series",seriesName:Dc.escapeString(s.globals.seriesNames[p]),rel:n+1,"data:realIndex":p});i.ctx.series.addCollapsedClassToSeries(y,p);var w=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":p}),A=i.graphics.group({class:"apexcharts-bar-goals-markers"}),k=0,C=0,_=i.initialPositions(r,o,c,h,d,u,v);o=_.y,k=_.barHeight,h=_.yDivision,u=_.zeroW,r=_.x,C=_.barWidth,c=_.xDivision,d=_.zeroH,s.globals.barHeight=k,s.globals.barWidth=C,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every(function(t){return isNaN(t)})&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map(function(){return d}),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map(function(){return 0}));for(var E=0;E<s.globals.dataPoints;E++){var S=i.barHelpers.getStrokeWidth(n,E,p),M={indexes:{i:n,j:E,realIndex:p,translationsIndex:v,bc:l},strokeWidth:S,x:r,y:o,elSeries:y,columnGroupIndex:m,seriesGroup:s.globals.seriesGroups[f]},T=null;i.isHorizontal?(T=i.drawStackedBarPaths(Tc(Tc({},M),{},{zeroW:u,barHeight:k,yDivision:h})),C=i.series[n][E]/i.invertedYRatio):(T=i.drawStackedColumnPaths(Tc(Tc({},M),{},{xDivision:c,barWidth:C,zeroH:d})),k=i.series[n][E]/i.yRatio[v]);var L=i.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:T.barYPosition,goalX:T.goalX,goalY:T.goalY,barHeight:k,barWidth:C});L&&A.add(L),o=T.y,r=T.x,x.push(r),b.push(o);var P=i.barHelpers.getPathFillColor(t,n,E,p),B="",O=s.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";("bottom"===i.barHelpers.arrBorderRadius[p][E]&&s.globals.series[p][E]>0||"top"===i.barHelpers.arrBorderRadius[p][E]&&s.globals.series[p][E]<0)&&(B=O),y=i.renderSeries(Tc(Tc({realIndex:p,pathFill:P.color},P.useRangeColor?{lineFill:P.color}:{}),{},{j:E,i:n,columnGroupIndex:m,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:S,elSeries:y,x:r,y:o,series:t,barHeight:k,barWidth:C,elDataLabelsWrap:w,elGoalsMarkers:A,type:"bar",visibleSeries:m,classes:B}))}s.globals.seriesXvalues[p]=x,s.globals.seriesYvalues[p]=b,i.groupCtx.prevY.push(i.groupCtx.yArrj),i.groupCtx.prevYF.push(i.groupCtx.yArrjF),i.groupCtx.prevYVal.push(i.groupCtx.yArrjVal),i.groupCtx.prevX.push(i.groupCtx.xArrj),i.groupCtx.prevXF.push(i.groupCtx.xArrjF),i.groupCtx.prevXVal.push(i.groupCtx.xArrjVal),a.add(y)},c=0,h=0;c<t.length;c++,h++)l(c,h);return a}},{key:"initialPositions",value:function(t,e,i,s,n,a,r){var o,l,c=this.w;if(this.isHorizontal){s=c.globals.gridHeight/c.globals.dataPoints;var h=c.config.plotOptions.bar.barHeight;o=-1===String(h).indexOf("%")?parseInt(h,10):s*parseInt(h,10)/100,a=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),e=(s-o)/2}else{l=i=c.globals.gridWidth/c.globals.dataPoints;var d=c.config.plotOptions.bar.columnWidth;c.globals.isXNumeric&&c.globals.dataPoints>1?l=(i=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(d).indexOf("%")?l=parseInt(d,10):l*=parseInt(d,10)/100,n=this.isReversed?this.baseLineY[r]:c.globals.gridHeight-this.baseLineY[r],t=c.globals.padHorizontal+(i-l)/2}var u=c.globals.barGroups.length||1;return{x:t,y:e,yDivision:s,xDivision:i,barHeight:o/u,barWidth:l/u,zeroH:n,zeroW:a}}},{key:"drawStackedBarPaths",value:function(t){for(var e,i=t.indexes,s=t.barHeight,n=t.strokeWidth,a=t.zeroW,r=t.x,o=t.y,l=t.columnGroupIndex,c=t.seriesGroup,h=t.yDivision,d=t.elSeries,u=this.w,p=o+l*s,g=i.i,f=i.j,m=i.realIndex,x=i.translationsIndex,b=0,v=0;v<this.groupCtx.prevXF.length;v++)b+=this.groupCtx.prevXF[v][f];var y=g;if(u.config.series[m].name&&(y=c.indexOf(u.config.series[m].name)),y>0){var w=a;this.groupCtx.prevXVal[y-1][f]<0?w=this.series[g][f]>=0?this.groupCtx.prevX[y-1][f]+b-2*(this.isReversed?b:0):this.groupCtx.prevX[y-1][f]:this.groupCtx.prevXVal[y-1][f]>=0&&(w=this.series[g][f]>=0?this.groupCtx.prevX[y-1][f]:this.groupCtx.prevX[y-1][f]-b+2*(this.isReversed?b:0)),e=w}else e=a;r=null===this.series[g][f]?e:e+this.series[g][f]/this.invertedYRatio-2*(this.isReversed?this.series[g][f]/this.invertedYRatio:0);var A=this.barHelpers.getBarpaths({barYPosition:p,barHeight:s,x1:e,x2:r,strokeWidth:n,isReversed:this.isReversed,series:this.series,realIndex:i.realIndex,seriesGroup:c,i:g,j:f,w:u});return this.barHelpers.barBackground({j:f,i:g,y1:p,y2:s,elSeries:d}),o+=h,{pathTo:A.pathTo,pathFrom:A.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,g,f,x),barXPosition:e,barYPosition:p,x:r,y:o}}},{key:"drawStackedColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.y,n=t.xDivision,a=t.barWidth,r=t.zeroH,o=t.columnGroupIndex,l=t.seriesGroup,c=t.elSeries,h=this.w,d=e.i,u=e.j,p=e.bc,g=e.realIndex,f=e.translationsIndex;if(h.globals.isXNumeric){var m=h.globals.seriesX[g][u];m||(m=0),i=(m-h.globals.minX)/this.xRatio-a/2*h.globals.barGroups.length}for(var x,b=i+o*a,v=0,y=0;y<this.groupCtx.prevYF.length;y++)v+=isNaN(this.groupCtx.prevYF[y][u])?0:this.groupCtx.prevYF[y][u];var w=d;if(l&&(w=l.indexOf(h.globals.seriesNames[g])),w>0&&!h.globals.isXNumeric||w>0&&h.globals.isXNumeric&&h.globals.seriesX[g-1][u]===h.globals.seriesX[g][u]){var A,k,C,_=Math.min(this.yRatio.length+1,g+1);if(void 0!==this.groupCtx.prevY[w-1]&&this.groupCtx.prevY[w-1].length)for(var E=1;E<_;E++){var S;if(!isNaN(null===(S=this.groupCtx.prevY[w-E])||void 0===S?void 0:S[u])){C=this.groupCtx.prevY[w-E][u];break}}for(var M=1;M<_;M++){var T,L;if((null===(T=this.groupCtx.prevYVal[w-M])||void 0===T?void 0:T[u])<0){k=this.series[d][u]>=0?C-v+2*(this.isReversed?v:0):C;break}if((null===(L=this.groupCtx.prevYVal[w-M])||void 0===L?void 0:L[u])>=0){k=this.series[d][u]>=0?C:C+v-2*(this.isReversed?v:0);break}}void 0===k&&(k=h.globals.gridHeight),x=null!==(A=this.groupCtx.prevYF[0])&&void 0!==A&&A.every(function(t){return 0===t})&&this.groupCtx.prevYF.slice(1,w).every(function(t){return t.every(function(t){return isNaN(t)})})?r:k}else x=r;s=this.series[d][u]?x-this.series[d][u]/this.yRatio[f]+2*(this.isReversed?this.series[d][u]/this.yRatio[f]:0):x;var P=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:a,y1:x,y2:s,yRatio:this.yRatio[f],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:d,j:u,w:h});return this.barHelpers.barBackground({bc:p,j:u,i:d,x1:b,x2:a,elSeries:c}),{pathTo:P.pathTo,pathFrom:P.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,r,d,u),barXPosition:b,x:h.globals.isXNumeric?i:i+n,y:s}}}]),e}(),Xp=function(){Ec(e,Yp);var t=kc(e);function e(){return vc(this,e),t.apply(this,arguments)}return wc(e,[{key:"draw",value:function(t,e,i){var s=this,n=this.w,a=new Nu(this.ctx),r=n.globals.comboCharts?e:n.config.chart.type,o=new np(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=n.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&"ohlc"===this.candlestickOptions.type;var l=new Yu(this.ctx,n);t=l.getLogSeries(t),this.series=t,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(t);for(var c=a.group({class:"apexcharts-".concat(r,"-series apexcharts-plot-series")}),h=function(e){s.isBoxPlot="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[e].type;var r,l,h,d,u=void 0,p=void 0,g=[],f=[],m=n.globals.comboCharts?i[e]:e,x=s.barHelpers.getGroupIndex(m).columnGroupIndex,b=a.group({class:"apexcharts-series",seriesName:Dc.escapeString(n.globals.seriesNames[m]),rel:e+1,"data:realIndex":m});s.ctx.series.addCollapsedClassToSeries(b,m),t[e].length>0&&(s.visibleI=s.visibleI+1);var v,y,w=0;s.yRatio.length>1&&(s.yaxisIndex=n.globals.seriesYAxisReverseMap[m][0],w=m);var A=s.barHelpers.initialPositions(m);p=A.y,v=A.barHeight,l=A.yDivision,d=A.zeroW,u=A.x,y=A.barWidth,r=A.xDivision,h=A.zeroH,f.push(u+y/2);for(var k=a.group({class:"apexcharts-datalabels","data:realIndex":m}),C=a.group({class:"apexcharts-bar-goals-markers"}),_=function(i){var a=s.barHelpers.getStrokeWidth(e,i,m),c=null,A={indexes:{i:e,j:i,realIndex:m,translationsIndex:w},x:u,y:p,strokeWidth:a,elSeries:b};c=s.isHorizontal?s.drawHorizontalBoxPaths(Tc(Tc({},A),{},{yDivision:l,barHeight:v,zeroW:d})):s.drawVerticalBoxPaths(Tc(Tc({},A),{},{xDivision:r,barWidth:y,zeroH:h})),p=c.y,u=c.x;var _=s.barHelpers.drawGoalLine({barXPosition:c.barXPosition,barYPosition:c.barYPosition,goalX:c.goalX,goalY:c.goalY,barHeight:v,barWidth:y});_&&C.add(_),i>0&&f.push(u+y/2),g.push(p),c.pathTo.forEach(function(r,l){var h=!s.isBoxPlot&&s.candlestickOptions.wick.useFillColor?c.color[l]:n.globals.stroke.colors[e],d=o.fillPath({seriesNumber:m,dataPointIndex:i,color:c.color[l],value:t[e][i]});s.renderSeries({realIndex:m,pathFill:d,lineFill:h,j:i,i:e,pathFrom:c.pathFrom,pathTo:r,strokeWidth:a,elSeries:b,x:u,y:p,series:t,columnGroupIndex:x,barHeight:v,barWidth:y,elDataLabelsWrap:k,elGoalsMarkers:C,visibleSeries:s.visibleI,type:n.config.chart.type})})},E=0;E<n.globals.dataPoints;E++)_(E);n.globals.seriesXvalues[m]=f,n.globals.seriesYvalues[m]=g,c.add(b)},d=0;d<t.length;d++)h(d);return c}},{key:"drawVerticalBoxPaths",value:function(t){var e=t.indexes,i=t.x;t.y;var s=t.xDivision,n=t.barWidth,a=t.zeroH,r=t.strokeWidth,o=this.w,l=new Nu(this.ctx),c=e.i,h=e.j,d=o.config.plotOptions.candlestick.colors,u=this.boxOptions.colors,p=e.realIndex,g=function(t){return Array.isArray(t)?t[p]:t},f=g(d.upward),m=g(d.downward),x=this.yRatio[e.translationsIndex],b=this.getOHLCValue(p,h),v=a,y=a,w=b.o<b.c?[f]:[m];this.isBoxPlot&&(w=[g(u.lower),g(u.upper)]);var A=Math.min(b.o,b.c),k=Math.max(b.o,b.c),C=b.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[p][h]-o.globals.minX)/this.xRatio-n/2);var _=i+n*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(A=a,k=a):(A=a-A/x,k=a-k/x,v=a-b.h/x,y=a-b.l/x,C=a-b.m/x);var E=l.move(_,a),S=l.move(_+n/2,A);if(o.globals.previousPaths.length>0&&(S=this.getPreviousPath(p,h,!0)),this.isOHLC){var M=_+n/2,T=a-b.o/x,L=a-b.c/x;E=[l.move(M,v)+l.line(M,y)+l.move(M,T)+l.line(_,T)+l.move(M,L)+l.line(_+n,L)]}else E=this.isBoxPlot?[l.move(_,A)+l.line(_+n/2,A)+l.line(_+n/2,v)+l.line(_+n/4,v)+l.line(_+n-n/4,v)+l.line(_+n/2,v)+l.line(_+n/2,A)+l.line(_+n,A)+l.line(_+n,C)+l.line(_,C)+l.line(_,A+r/2),l.move(_,C)+l.line(_+n,C)+l.line(_+n,k)+l.line(_+n/2,k)+l.line(_+n/2,y)+l.line(_+n-n/4,y)+l.line(_+n/4,y)+l.line(_+n/2,y)+l.line(_+n/2,k)+l.line(_,k)+l.line(_,C)+"z"]:[l.move(_,k)+l.line(_+n/2,k)+l.line(_+n/2,v)+l.line(_+n/2,k)+l.line(_+n,k)+l.line(_+n,A)+l.line(_+n/2,A)+l.line(_+n/2,y)+l.line(_+n/2,A)+l.line(_,A)+l.line(_,k-r/2)];return S+=l.move(_,A),o.globals.isXNumeric||(i+=s),{pathTo:E,pathFrom:S,x:i,y:k,goalY:this.barHelpers.getGoalValues("y",null,a,c,h,e.translationsIndex),barXPosition:_,color:w}}},{key:"drawHorizontalBoxPaths",value:function(t){var e=t.indexes;t.x;var i=t.y,s=t.yDivision,n=t.barHeight,a=t.zeroW,r=t.strokeWidth,o=this.w,l=new Nu(this.ctx),c=e.i,h=e.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,p=e.realIndex,g=this.getOHLCValue(p,h),f=a,m=a,x=Math.min(g.o,g.c),b=Math.max(g.o,g.c),v=g.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[p][h]-o.globals.minX)/this.invertedXRatio-n/2);var y=i+n*this.visibleI;void 0===this.series[c][h]||null===this.series[c][h]?(x=a,b=a):(x=a+x/u,b=a+b/u,f=a+g.h/u,m=a+g.l/u,v=a+g.m/u);var w=l.move(a,y),A=l.move(x,y+n/2);return o.globals.previousPaths.length>0&&(A=this.getPreviousPath(p,h,!0)),w=[l.move(x,y)+l.line(x,y+n/2)+l.line(f,y+n/2)+l.line(f,y+n/2-n/4)+l.line(f,y+n/2+n/4)+l.line(f,y+n/2)+l.line(x,y+n/2)+l.line(x,y+n)+l.line(v,y+n)+l.line(v,y)+l.line(x+r/2,y),l.move(v,y)+l.line(v,y+n)+l.line(b,y+n)+l.line(b,y+n/2)+l.line(m,y+n/2)+l.line(m,y+n-n/4)+l.line(m,y+n/4)+l.line(m,y+n/2)+l.line(b,y+n/2)+l.line(b,y)+l.line(v,y)+"z"],A+=l.move(x,y),o.globals.isXNumeric||(i+=s),{pathTo:w,pathFrom:A,x:b,y:i,goalX:this.barHelpers.getGoalValues("x",a,null,c,h),barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(t,e){var i=this.w,s=new Yu(this.ctx,i),n=s.getLogValAtSeriesIndex(i.globals.seriesCandleH[t][e],t),a=s.getLogValAtSeriesIndex(i.globals.seriesCandleO[t][e],t),r=s.getLogValAtSeriesIndex(i.globals.seriesCandleM[t][e],t),o=s.getLogValAtSeriesIndex(i.globals.seriesCandleC[t][e],t),l=s.getLogValAtSeriesIndex(i.globals.seriesCandleL[t][e],t);return{o:this.isBoxPlot?n:a,h:this.isBoxPlot?a:n,m:r,l:this.isBoxPlot?o:l,c:this.isBoxPlot?l:o}}}]),e}(),jp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"checkColorRange",value:function(){var t=this.w,e=!1,i=t.config.plotOptions[t.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(t,i){t.from<=0&&(e=!0)}),e}},{key:"getShadeColor",value:function(t,e,i,s){var n=this.w,a=1,r=n.config.plotOptions[t].shadeIntensity,o=this.determineColor(t,e,i);n.globals.hasNegs||s?a=n.config.plotOptions[t].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*r):(1-o.percent/100)*(1.25*r):o.percent<=0?1-(1+o.percent/100)*r:(1-o.percent/100)*r:(a=1-o.percent/100,"treemap"===t&&(a=(1-o.percent/100)*(1.25*r)));var l=o.color,c=new Dc;if(n.config.plotOptions[t].enableShades)if("dark"===this.w.config.theme.mode){var h=c.shadeColor(-1*a,o.color);l=Dc.hexToRgba(Dc.isColorHex(h)?h:Dc.rgb2hex(h),n.config.fill.opacity)}else{var d=c.shadeColor(a,o.color);l=Dc.hexToRgba(Dc.isColorHex(d)?d:Dc.rgb2hex(d),n.config.fill.opacity)}return{color:l,colorProps:o}}},{key:"determineColor",value:function(t,e,i){var s=this.w,n=s.globals.series[e][i],a=s.config.plotOptions[t],r=a.colorScale.inverse?i:e;a.distributed&&"treemap"===s.config.chart.type&&(r=i);var o=s.globals.colors[r],l=null,c=Math.min.apply(Math,Bc(s.globals.series[e])),h=Math.max.apply(Math,Bc(s.globals.series[e]));a.distributed||"heatmap"!==t||(c=s.globals.minY,h=s.globals.maxY),void 0!==a.colorScale.min&&(c=a.colorScale.min<s.globals.minY?a.colorScale.min:s.globals.minY,h=a.colorScale.max>s.globals.maxY?a.colorScale.max:s.globals.maxY);var d=Math.abs(h)+Math.abs(c),u=100*n/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map(function(t,e){if(n>=t.from&&n<=t.to){o=t.color,l=t.foreColor?t.foreColor:null,c=t.from,h=t.to;var i=Math.abs(h)+Math.abs(c);u=100*n/(0===i?i-1e-6:i)}}),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(t){var e=t.text,i=t.x,s=t.y,n=t.i,a=t.j,r=t.colorProps,o=t.fontSize,l=this.w.config.dataLabels,c=new Nu(this.ctx),h=new op(this.ctx),d=null;if(l.enabled){d=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,p=l.offsetY,g=i+u,f=s+parseFloat(l.style.fontSize)/3+p;h.plotDataLabelsText({x:g,y:f,text:e,i:n,j:a,color:r.foreColor,parent:d,fontSize:o,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(t){var e=new Nu(this.ctx);t.node.addEventListener("mouseenter",e.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",e.pathMouseLeave.bind(this,t)),t.node.addEventListener("mousedown",e.pathMouseDown.bind(this,t))}}]),t}(),Vp=function(){function t(e,i){vc(this,t),this.ctx=e,this.w=e.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new jp(e),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return wc(t,[{key:"draw",value:function(t){var e=this.w,i=new Nu(this.ctx),s=i.group({class:"apexcharts-heatmap"});s.attr("clip-path","url(#gridRectMask".concat(e.globals.cuid,")"));var n=e.globals.gridWidth/e.globals.dataPoints,a=e.globals.gridHeight/e.globals.series.length,r=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=t.slice();e.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var h=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:Dc.escapeString(e.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(h,c),e.config.chart.dropShadow.enabled){var d=e.config.chart.dropShadow;new Hu(this.ctx).dropShadow(h,d,c)}for(var u=0,p=e.config.plotOptions.heatmap.shadeIntensity,g=0,f=0;f<e.globals.dataPoints;f++)if(e.globals.seriesX.length&&!e.globals.allSeriesHasEqualX&&e.globals.minX+e.globals.minXDiff*f<e.globals.seriesX[c][g])u+=n;else{if(g>=l[c].length)break;var m=this.helpers.getShadeColor(e.config.chart.type,c,g,this.negRange),x=m.color,b=m.colorProps;"image"===e.config.fill.type&&(x=new np(this.ctx).fillPath({seriesNumber:c,dataPointIndex:g,opacity:e.globals.hasNegs?b.percent<0?1-(1+b.percent/100):p+b.percent/100:b.percent/100,patternID:Dc.randomId(),width:e.config.fill.image.width?e.config.fill.image.width:n,height:e.config.fill.image.height?e.config.fill.image.height:a}));var v=this.rectRadius,y=i.drawRect(u,r,n,a,v);if(y.attr({cx:u,cy:r}),y.node.classList.add("apexcharts-heatmap-rect"),h.add(y),y.attr({fill:x,i:c,index:c,j:g,val:t[c][g],"stroke-width":this.strokeWidth,stroke:e.config.plotOptions.heatmap.useFillColorAsStroke?x:e.globals.stroke.colors[0],color:x}),this.helpers.addListeners(y),e.config.chart.animations.enabled&&!e.globals.dataChanged){var w=1;e.globals.resized||(w=e.config.chart.animations.speed),this.animateHeatMap(y,u,r,n,a,w)}if(e.globals.dataChanged){var A=1;if(this.dynamicAnim.enabled&&e.globals.shouldAnimate){A=this.dynamicAnim.speed;var k=e.globals.previousPaths[c]&&e.globals.previousPaths[c][g]&&e.globals.previousPaths[c][g].color;k||(k="rgba(255, 255, 255, 0)"),this.animateHeatColor(y,Dc.isColorHex(k)?k:Dc.rgb2hex(k),Dc.isColorHex(x)?x:Dc.rgb2hex(x),A)}}var C=(0,e.config.dataLabels.formatter)(e.globals.series[c][g],{value:e.globals.series[c][g],seriesIndex:c,dataPointIndex:g,w:e}),_=this.helpers.calculateDataLabels({text:C,x:u+n/2,y:r+a/2,i:c,j:g,colorProps:b,series:l});null!==_&&h.add(_),u+=n,g++}r+=a,s.add(h)}var E=e.globals.yAxisScale[0].result.slice();return e.config.yaxis[0].reversed?E.unshift(""):E.push(""),e.globals.yAxisScale[0].result=E,s}},{key:"animateHeatMap",value:function(t,e,i,s,n,a){var r=new Fc(this.ctx);r.animateRect(t,{x:e+s/2,y:i+n/2,width:0,height:0},{x:e,y:i,width:s,height:n},a,function(){r.animationCompleted(t)})}},{key:"animateHeatColor",value:function(t,e,i,s){t.attr({fill:e}).animate(s).attr({fill:i})}}]),t}(),Gp=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"drawYAxisTexts",value:function(t,e,i,s){var n=this.w,a=n.config.yaxis[0],r=n.globals.yLabelFormatters[0];return new Nu(this.ctx).drawText({x:t+a.labels.offsetX,y:e+a.labels.offsetY,text:r(s,i),textAnchor:"middle",fontSize:a.labels.style.fontSize,fontFamily:a.labels.style.fontFamily,foreColor:Array.isArray(a.labels.style.colors)?a.labels.style.colors[i]:a.labels.style.colors})}}]),t}(),$p=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100;var s=i.config.plotOptions.pie.customScale,n=i.globals.gridWidth/2,a=i.globals.gridHeight/2;this.translateX=n-n*s,this.translateY=a-a*s,this.dataLabelsGroup=new Nu(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(s,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return wc(t,[{key:"draw",value:function(t){var e=this,i=this.w,s=new Nu(this.ctx),n=s.group({class:"apexcharts-pie"});if(i.globals.noData)return n;for(var a=0,r=0;r<t.length;r++)a+=Dc.negToZero(t[r]);var o=[],l=s.group();0===a&&(a=1e-5),t.forEach(function(t){e.maxY=Math.max(e.maxY,t)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(n);for(var c=0;c<t.length;c++){var h=this.fullAngle*Dc.negToZero(t[c])/a;o.push(h),"polarArea"===this.chartType?(o[c]=this.fullAngle/t.length,this.sliceSizes.push(i.globals.radialSize*t[c]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var d,u=0,p=0;p<i.globals.previousPaths.length;p++)u+=Dc.negToZero(i.globals.previousPaths[p]);for(var g=0;g<i.globals.previousPaths.length;g++)d=this.fullAngle*Dc.negToZero(i.globals.previousPaths[g])/u,this.prevSectorAngleArr.push(d)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var f=s.drawCircle(this.donutSize);f.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),l.add(f)}var m=this.drawArcs(o,t);if(this.sliceLabels.forEach(function(t){m.add(t)}),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),l.add(m),n.add(l),this.donutDataLabels.show){var x=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});n.add(x)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(n),n}},{key:"drawArcs",value:function(t,e){var i=this.w,s=new Hu(this.ctx),n=new Nu(this.ctx),a=new np(this.ctx),r=n.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,h=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var d=0;d<t.length;d++){var u=n.group({class:"apexcharts-series apexcharts-pie-series",seriesName:Dc.escapeString(i.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});r.add(u),l=h,c=(o=c)+t[d],h=l+this.prevSectorAngleArr[d];var p=c<o?this.fullAngle+c-o:c-o,g=a.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:e[d]}),f=this.getChangedPath(l,h),m=n.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:g,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),s.setSelectionFilter(m,0,d),i.config.chart.dropShadow.enabled){var x=i.config.chart.dropShadow;s.dropShadow(m,x,d)}this.addListeners(m,this.donutDataLabels),Nu.setAttrs(m.node,{"data:angle":p,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":e[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=Dc.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle):"donut"===this.chartType&&(b=Dc.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+p/2)%this.fullAngle)),u.add(m);var v=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0===(v=p/this.fullAngle*i.config.chart.animations.speed)&&(v=1),this.animDur=v+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:h,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:c,startAngle:o,i:d,totalItems:t.length-1,animBeginArr:this.animBeginArr,dur:v}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.node.addEventListener("mouseup",this.pieClicked.bind(this,d)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),i.config.dataLabels.enabled){var y=b.x,w=b.y,A=100*p/this.fullAngle+"%";if(0!==p&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<t[d]){var k=i.config.dataLabels.formatter;void 0!==k&&(A=k(i.globals.seriesPercent[d][0],{seriesIndex:d,w:i}));var C=i.globals.dataLabels.style.colors[d],_=n.group({class:"apexcharts-datalabels"}),E=n.drawText({x:y,y:w,text:A,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:C});if(_.add(E),i.config.dataLabels.dropShadow.enabled){var S=i.config.dataLabels.dropShadow;s.dropShadow(E,S)}E.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(E.node.classList.add("apexcharts-pie-label-delay"),E.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(_)}}}return r}},{key:"addListeners",value:function(t,e){var i=new Nu(this.ctx);t.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,t)),t.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,t)),t.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",i.pathMouseDown.bind(this,t)),this.donutDataLabels.total.showAlways||(t.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,t.node,e)),t.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,t.node,e)))}},{key:"animatePaths",value:function(t,e){var i=this.w,s=e.endAngle<e.startAngle?this.fullAngle+e.endAngle-e.startAngle:e.endAngle-e.startAngle,n=s,a=e.startAngle,r=e.startAngle;void 0!==e.prevStartAngle&&void 0!==e.prevEndAngle&&(a=e.prevEndAngle,n=e.prevEndAngle<e.prevStartAngle?this.fullAngle+e.prevEndAngle-e.prevStartAngle:e.prevEndAngle-e.prevStartAngle),e.i===i.config.series.length-1&&(s+r>this.fullAngle?e.endAngle=e.endAngle-(s+r):s+r<this.fullAngle&&(e.endAngle=e.endAngle+(this.fullAngle-(s+r)))),s===this.fullAngle&&(s=this.fullAngle-.01),this.animateArc(t,a,r,s,n,e)}},{key:"animateArc",value:function(t,e,i,s,n,a){var r,o=this,l=this.w,c=new Fc(this.ctx),h=a.size;(isNaN(e)||isNaN(n))&&(e=i,n=s,a.dur=0);var d=s,u=i,p=e<i?this.fullAngle+e-i:e-i;l.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(r=o.getPiePath({me:o,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:h}),t.attr({d:r})),0!==a.dur?t.animate(a.dur,a.animBeginArr[a.i]).after(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),a.i===l.config.series.length-1&&c.animationCompleted(t)}).during(function(l){d=p+(s-p)*l,a.animateStartingPos&&(d=n+(s-n)*l,u=e-n+(i-(e-n))*l),r=o.getPiePath({me:o,startAngle:u,angle:d,size:h}),t.node.setAttribute("data:pathOrig",r),t.attr({d:r})}):(r=o.getPiePath({me:o,startAngle:u,angle:s,size:h}),a.isTrack||(l.globals.animationEnded=!0),t.node.setAttribute("data:pathOrig",r),t.attr({d:r,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(t){var e,i=this.w,s=this,n=s.sliceSizes[t]+(i.config.plotOptions.pie.expandOnClick?4:0),a=i.globals.dom.Paper.findOne(".apexcharts-".concat(s.chartType.toLowerCase(),"-slice-").concat(t));if("true"!==a.attr("data:pieClicked")){var r=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(r,function(t){t.setAttribute("data:pieClicked","false");var e=t.getAttribute("data:pathOrig");e&&t.setAttribute("d",e)}),i.globals.capturedDataPointIndex=t,a.attr("data:pieClicked","true");var o=parseInt(a.attr("data:startAngle"),10),l=parseInt(a.attr("data:angle"),10);e=s.getPiePath({me:s,startAngle:o,angle:l,size:n}),360!==l&&a.plot(e)}else{a.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(a.node,this.donutDataLabels);var c=a.attr("data:pathOrig");a.attr({d:c})}}},{key:"getChangedPath",value:function(t,e){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:t,angle:e-t,size:this.size})),i}},{key:"getPiePath",value:function(t){var e,i=t.me,s=t.startAngle,n=t.angle,a=t.size,r=new Nu(this.ctx),o=s,l=Math.PI*(o-90)/180,c=n+s;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var h=Math.PI*(c-90)/180,d=i.centerX+a*Math.cos(l),u=i.centerY+a*Math.sin(l),p=i.centerX+a*Math.cos(h),g=i.centerY+a*Math.sin(h),f=Dc.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),m=Dc.polarToCartesian(i.centerX,i.centerY,i.donutSize,o),x=n>180?1:0,b=["M",d,u,"A",a,a,0,x,1,p,g];return e="donut"===i.chartType?[].concat(b,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,x,0,m.x,m.y,"L",d,u,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(b,["L",i.centerX,i.centerY,"L",d,u]).join(" "):[].concat(b).join(" "),r.roundPathCorners(e,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(t){var e=this.w,i=new pp(this.ctx),s=new Nu(this.ctx),n=new Gp(this.ctx),a=s.group(),r=s.group(),o=i.niceScale(0,Math.ceil(this.maxY),0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var h=e.globals.radialSize,d=h/(c-1),u=0;u<c-1;u++){var p=s.drawCircle(h);if(p.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":e.config.plotOptions.polarArea.rings.strokeWidth,stroke:e.config.plotOptions.polarArea.rings.strokeColor}),e.config.yaxis[0].show){var g=n.drawYAxisTexts(this.centerX,this.centerY-h+parseInt(e.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);r.add(g)}a.add(p),h-=d}this.drawSpokes(t),t.add(a),t.add(r)}},{key:"renderInnerDataLabels",value:function(t,e,i){var s=this.w,n=new Nu(this.ctx),a=e.total.show;t.node.innerHTML="",t.node.style.opacity=i.opacity;var r,o,l=i.centerX,c=this.donutDataLabels.total.label?i.centerY:i.centerY-i.centerY/6;r=void 0===e.name.color?s.globals.colors[0]:e.name.color;var h=e.name.fontSize,d=e.name.fontFamily,u=e.name.fontWeight;o=void 0===e.value.color?s.config.chart.foreColor:e.value.color;var p=e.value.formatter,g="",f="";if(a?(r=e.total.color,h=e.total.fontSize,d=e.total.fontFamily,u=e.total.fontWeight,f=this.donutDataLabels.total.label?e.total.label:"",g=e.total.formatter(s)):1===s.globals.series.length&&(g=p(s.globals.series[0],s),f=s.globals.seriesNames[0]),f&&(f=e.name.formatter(f,e.total.show,s)),e.name.show){var m=n.drawText({x:l,y:c+parseFloat(e.name.offsetY),text:f,textAnchor:"middle",foreColor:r,fontSize:h,fontWeight:u,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),t.add(m)}if(e.value.show){var x=e.name.show?parseFloat(e.value.offsetY)+16:e.value.offsetY,b=n.drawText({x:l,y:c+x,text:g,textAnchor:"middle",foreColor:o,fontWeight:e.value.fontWeight,fontSize:e.value.fontSize,fontFamily:e.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),t.add(b)}return t}},{key:"printInnerLabels",value:function(t,e,i,s){var n,a=this.w;s?n=void 0===t.name.color?a.globals.colors[parseInt(s.parentNode.getAttribute("rel"),10)-1]:t.name.color:a.globals.series.length>1&&t.total.show&&(n=t.total.color);var r=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,t.value.formatter)(i,a),s||"function"!=typeof t.total.formatter||(i=t.total.formatter(a));var l=e===t.total.label;e=this.donutDataLabels.total.label?t.name.formatter(e,l,a):"",null!==r&&(r.textContent=e),null!==o&&(o.textContent=i),null!==r&&(r.style.fill=n)}},{key:"printDataLabelsInner",value:function(t,e){var i=this.w,s=t.getAttribute("data:value"),n=i.globals.seriesNames[parseInt(t.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(e,n,s,t);var a=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(t){var e=this,i=this.w,s=new Nu(this.ctx),n=i.config.plotOptions.polarArea.spokes;if(0!==n.strokeWidth){for(var a=[],r=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)a.push(Dc.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+r*o));a.forEach(function(i,a){var r=s.drawLine(i.x,i.y,e.centerX,e.centerY,Array.isArray(n.connectorColors)?n.connectorColors[a]:n.connectorColors);t.add(r)})}}},{key:"revertDataLabelsInner",value:function(){var t=this.w;if(this.donutDataLabels.show){var e=t.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),i=this.renderInnerDataLabels(e,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});t.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(i)}}}]),t}(),Up=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new Nu(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.logBase=i.config.yaxis[0].logBase,this.coreUtils=new Yu(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return wc(t,[{key:"draw",value:function(t){var e=this,i=this.w,s=new np(this.ctx),n=[],a=new op(this.ctx);t.length&&(this.dataPointsLen=t[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var r=i.globals.gridWidth/2,o=i.globals.gridHeight/2,l=r+i.config.plotOptions.radar.offsetX,c=o+i.config.plotOptions.radar.offsetY,h=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),d=[],u=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),t.forEach(function(t,r){var o=t.length===i.globals.dataPoints,l=e.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:Dc.escapeString(i.globals.seriesNames[r]),rel:r+1,"data:realIndex":r});e.dataRadiusOfPercent[r]=[],e.dataRadius[r]=[],e.angleArr[r]=[],t.forEach(function(t,i){var s=Math.abs(e.maxValue-e.minValue);t-=e.minValue,e.isLog&&(t=e.coreUtils.getLogVal(e.logBase,t,0)),e.dataRadiusOfPercent[r][i]=t/s,e.dataRadius[r][i]=e.dataRadiusOfPercent[r][i]*e.size,e.angleArr[r][i]=i*e.disAngle}),d=e.getDataPointsPos(e.dataRadius[r],e.angleArr[r]);var c=e.createPaths(d,{x:0,y:0});u=e.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=e.graphics.group({class:"apexcharts-datalabels","data:realIndex":r}),i.globals.delayedElements.push({el:u.node,index:r});var h={i:r,realIndex:r,animationDelay:r,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[r],strokeLineCap:i.config.stroke.lineCap},g=null;i.globals.previousPaths.length>0&&(g=e.getPreviousPath(r));for(var f=0;f<c.linePathsTo.length;f++){var m=e.graphics.renderPaths(Tc(Tc({},h),{},{pathFrom:null===g?c.linePathsFrom[f]:g,pathTo:c.linePathsTo[f],strokeWidth:Array.isArray(e.strokeWidth)?e.strokeWidth[r]:e.strokeWidth,fill:"none",drawShadow:!1}));l.add(m);var x=s.fillPath({seriesNumber:r}),b=e.graphics.renderPaths(Tc(Tc({},h),{},{pathFrom:null===g?c.areaPathsFrom[f]:g,pathTo:c.areaPathsTo[f],strokeWidth:0,fill:x,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var v=new Hu(e.ctx),y=i.config.chart.dropShadow;v.dropShadow(b,Object.assign({},y,{noUserSpaceOnUse:!0}),r)}l.add(b)}t.forEach(function(t,s){var n=new ap(e.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:r,dataPointIndex:s}),o=e.graphics.drawMarker(d[s].x,d[s].y,n);o.attr("rel",s),o.attr("j",s),o.attr("index",r),o.node.setAttribute("default-marker-size",n.pSize);var c=e.graphics.group({class:"apexcharts-series-markers"});c&&c.add(o),u.add(c),l.add(u);var h=i.config.dataLabels;if(h.enabled){var g=h.formatter(i.globals.series[r][s],{seriesIndex:r,dataPointIndex:s,w:i});a.plotDataLabelsText({x:d[s].x,y:d[s].y,text:g,textAnchor:"middle",i:r,j:r,parent:p,offsetCorrection:!1,dataLabelsConfig:Tc({},h)})}l.add(p)}),n.push(l)}),this.drawPolygons({parent:h}),i.config.xaxis.labels.show){var g=this.drawXAxisTexts();h.add(g)}return n.forEach(function(t){h.add(t)}),h.add(this.yaxisLabels),h}},{key:"drawPolygons",value:function(t){for(var e=this,i=this.w,s=t.parent,n=new Gp(this.ctx),a=i.globals.yAxisScale[0].result.reverse(),r=a.length,o=[],l=this.size/(r-1),c=0;c<r;c++)o[c]=l*c;o.reverse();var h=[],d=[];o.forEach(function(t,i){var s=Dc.getPolygonPos(t,e.dataPointsLen),n="";s.forEach(function(t,s){if(0===i){var a=e.graphics.drawLine(t.x,t.y,0,0,Array.isArray(e.polygons.connectorColors)?e.polygons.connectorColors[s]:e.polygons.connectorColors);d.push(a)}0===s&&e.yaxisLabelsTextsPos.push({x:t.x,y:t.y}),n+=t.x+","+t.y+" "}),h.push(n)}),h.forEach(function(t,n){var a=e.polygons.strokeColors,r=e.polygons.strokeWidth,o=e.graphics.drawPolygon(t,Array.isArray(a)?a[n]:a,Array.isArray(r)?r[n]:r,i.globals.radarPolygons.fill.colors[n]);s.add(o)}),d.forEach(function(t){s.add(t)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(t,i){var s=n.drawYAxisTexts(t.x,t.y,i,a[i]);e.yaxisLabels.add(s)})}},{key:"drawXAxisTexts",value:function(){var t=this,e=this.w,i=e.config.xaxis.labels,s=this.graphics.group({class:"apexcharts-xaxis"}),n=Dc.getPolygonPos(this.size,this.dataPointsLen);return e.globals.labels.forEach(function(a,r){var o=e.config.xaxis.labels.formatter,l=new op(t.ctx);if(n[r]){var c=t.getTextPos(n[r],t.size),h=o(a,{seriesIndex:-1,dataPointIndex:r,w:e});l.plotDataLabelsText({x:c.newX,y:c.newY,text:h,textAnchor:c.textAnchor,i:r,j:r,parent:s,className:"apexcharts-xaxis-label",color:Array.isArray(i.style.colors)&&i.style.colors[r]?i.style.colors[r]:"#a8a8a8",dataLabelsConfig:Tc({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1}).on("click",function(i){if("function"==typeof e.config.chart.events.xAxisLabelClick){var s=Object.assign({},e,{labelIndex:r});e.config.chart.events.xAxisLabelClick(i,t.ctx,s)}})}}),s}},{key:"createPaths",value:function(t,e){var i=this,s=[],n=[],a=[],r=[];if(t.length){n=[this.graphics.move(e.x,e.y)],r=[this.graphics.move(e.x,e.y)];var o=this.graphics.move(t[0].x,t[0].y),l=this.graphics.move(t[0].x,t[0].y);t.forEach(function(e,s){o+=i.graphics.line(e.x,e.y),l+=i.graphics.line(e.x,e.y),s===t.length-1&&(o+="Z",l+="Z")}),s.push(o),a.push(l)}return{linePathsFrom:n,linePathsTo:s,areaPathsFrom:r,areaPathsTo:a}}},{key:"getTextPos",value:function(t,e){var i="middle",s=t.x,n=t.y;return Math.abs(t.x)>=10?t.x>0?(i="start",s+=10):t.x<0&&(i="end",s-=10):i="middle",Math.abs(t.y)>=e-10&&(t.y<0?n-=10:t.y>0&&(n+=10)),{textAnchor:i,newX:s,newY:n}}},{key:"getPreviousPath",value:function(t){for(var e=this.w,i=null,s=0;s<e.globals.previousPaths.length;s++){var n=e.globals.previousPaths[s];n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(t,10)&&void 0!==e.globals.previousPaths[s].paths[0]&&(i=e.globals.previousPaths[s].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;t=t||[],e=e||[];for(var s=[],n=0;n<i;n++){var a={};a.x=t[n]*Math.sin(e[n]),a.y=-t[n]*Math.cos(e[n]),s.push(a)}return s}}]),t}(),qp=function(){Ec(e,$p);var t=kc(e);function e(i){var s;vc(this,e),(s=t.call(this,i)).ctx=i,s.w=i.w,s.animBeginArr=[0],s.animDur=0;var n=s.w;return s.startAngle=n.config.plotOptions.radialBar.startAngle,s.endAngle=n.config.plotOptions.radialBar.endAngle,s.totalAngle=Math.abs(n.config.plotOptions.radialBar.endAngle-n.config.plotOptions.radialBar.startAngle),s.trackStartAngle=n.config.plotOptions.radialBar.track.startAngle,s.trackEndAngle=n.config.plotOptions.radialBar.track.endAngle,s.barLabels=s.w.config.plotOptions.radialBar.barLabels,s.donutDataLabels=s.w.config.plotOptions.radialBar.dataLabels,s.radialDataLabels=s.donutDataLabels,s.trackStartAngle||(s.trackStartAngle=s.startAngle),s.trackEndAngle||(s.trackEndAngle=s.endAngle),360===s.endAngle&&(s.endAngle=359.99),s.margin=parseInt(n.config.plotOptions.radialBar.track.margin,10),s.onBarLabelClick=s.onBarLabelClick.bind(bc(s)),s}return wc(e,[{key:"draw",value:function(t){var e=this.w,i=new Nu(this.ctx),s=i.group({class:"apexcharts-radialbar"});if(e.globals.noData)return s;var n=i.group(),a=this.defaultSize/2,r=e.globals.gridWidth/2,o=this.defaultSize/2.05;e.config.chart.sparkline.enabled||(o=o-e.config.stroke.width-e.config.chart.dropShadow.blur);var l=e.globals.fill.colors;if(e.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:r,centerY:a,colorArr:l,series:t});n.add(c)}var h=this.drawArcs({size:o,centerX:r,centerY:a,colorArr:l,series:t}),d=360;e.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var u=(360-d)/360;if(e.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var p=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);e.globals.radialSize+=p*u}return n.add(h.g),"front"===e.config.plotOptions.radialBar.hollow.position&&(h.g.add(h.elHollow),h.dataLabels&&h.g.add(h.dataLabels)),s.add(n),s}},{key:"drawTracks",value:function(t){var e=this.w,i=new Nu(this.ctx),s=i.group({class:"apexcharts-tracks"}),n=new Hu(this.ctx),a=new np(this.ctx),r=this.getStrokeWidth(t);t.size=t.size-r/2;for(var o=0;o<t.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});s.add(l),l.attr({rel:o+1}),t.size=t.size-r-this.margin;var c=e.config.plotOptions.radialBar.track,h=a.fillPath({seriesNumber:0,size:t.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),d=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(d)>=360&&(u=360-Math.abs(this.startAngle)-.1);var p=i.drawPath({d:"",stroke:h,strokeWidth:r*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var g=c.dropShadow;n.dropShadow(p,g)}l.add(p),p.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(p,{centerX:t.centerX,centerY:t.centerY,endAngle:u,startAngle:d,size:t.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return s}},{key:"drawArcs",value:function(t){var e=this.w,i=new Nu(this.ctx),s=new np(this.ctx),n=new Hu(this.ctx),a=i.group(),r=this.getStrokeWidth(t);t.size=t.size-r/2;var o=e.config.plotOptions.radialBar.hollow.background,l=t.size-r*t.series.length-this.margin*t.series.length-r*parseInt(e.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-e.config.plotOptions.radialBar.hollow.margin;void 0!==e.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(t,a,l,o));var h=this.drawHollow({size:c,centerX:t.centerX,centerY:t.centerY,fill:o||"transparent"});if(e.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=e.config.plotOptions.radialBar.hollow.dropShadow;n.dropShadow(h,d)}var u=1;!this.radialDataLabels.total.show&&e.globals.series.length>1&&(u=0);var p=null;if(this.radialDataLabels.show){var g=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group");p=this.renderInnerDataLabels(g,this.radialDataLabels,{hollowSize:l,centerX:t.centerX,centerY:t.centerY,opacity:u})}"back"===e.config.plotOptions.radialBar.hollow.position&&(a.add(h),p&&a.add(p));var f=!1;e.config.plotOptions.radialBar.inverseOrder&&(f=!0);for(var m=f?t.series.length-1:0;f?m>=0:m<t.series.length;f?m--:m++){var x=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:Dc.escapeString(e.globals.seriesNames[m])});a.add(x),x.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(x,m),t.size=t.size-r-this.margin;var b=s.fillPath({seriesNumber:m,size:t.size,value:t.series[m]}),v=this.startAngle,y=void 0,w=Dc.negToZero(t.series[m]>100?100:t.series[m])/100,A=Math.round(this.totalAngle*w)+this.startAngle,k=void 0;e.globals.dataChanged&&(y=this.startAngle,k=Math.round(this.totalAngle*Dc.negToZero(e.globals.previousPaths[m])/100)+y),Math.abs(A)+Math.abs(v)>360&&(A-=.01),Math.abs(k)+Math.abs(y)>360&&(k-=.01);var C=A-v,_=Array.isArray(e.config.stroke.dashArray)?e.config.stroke.dashArray[m]:e.config.stroke.dashArray,E=i.drawPath({d:"",stroke:b,strokeWidth:r,fill:"none",fillOpacity:e.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:_});if(Nu.setAttrs(E.node,{"data:angle":C,"data:value":t.series[m]}),e.config.chart.dropShadow.enabled){var S=e.config.chart.dropShadow;n.dropShadow(E,S,m)}if(n.setSelectionFilter(E,0,m),this.addListeners(E,this.radialDataLabels),x.add(E),E.attr({index:0,j:m}),this.barLabels.enabled){var M=Dc.polarToCartesian(t.centerX,t.centerY,t.size,v),T=this.barLabels.formatter(e.globals.seriesNames[m],{seriesIndex:m,w:e}),L=["apexcharts-radialbar-label"];this.barLabels.onClick||L.push("apexcharts-no-click");var P=this.barLabels.useSeriesColors?e.globals.colors[m]:e.config.chart.foreColor;P||(P=e.config.chart.foreColor);var B=M.x+this.barLabels.offsetX,O=M.y+this.barLabels.offsetY,I=i.drawText({x:B,y:O,text:T,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:P,cssClass:L.join(" ")});I.on("click",this.onBarLabelClick),I.attr({rel:m+1}),0!==v&&I.attr({"transform-origin":"".concat(B," ").concat(O),transform:"rotate(".concat(v," 0 0)")}),x.add(I)}var z=0;!this.initialAnim||e.globals.resized||e.globals.dataChanged||(z=e.config.chart.animations.speed),e.globals.dataChanged&&(z=e.config.chart.animations.dynamicAnimation.speed),this.animDur=z/(1.2*t.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(E,{centerX:t.centerX,centerY:t.centerY,endAngle:A,startAngle:v,prevEndAngle:k,prevStartAngle:y,size:t.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:z,shouldSetPrevPaths:!0})}return{g:a,elHollow:h,dataLabels:p}}},{key:"drawHollow",value:function(t){var e=new Nu(this.ctx).drawCircle(2*t.size);return e.attr({class:"apexcharts-radialbar-hollow",cx:t.centerX,cy:t.centerY,r:t.size,fill:t.fill}),e}},{key:"drawHollowImage",value:function(t,e,i,s){var n=this.w,a=new np(this.ctx),r=Dc.randomId(),o=n.config.plotOptions.radialBar.hollow.image;if(n.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(n.globals.cuid).concat(r)}),s="url(#pattern".concat(n.globals.cuid).concat(r,")");else{var l=n.config.plotOptions.radialBar.hollow.imageWidth,c=n.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var h=n.globals.dom.Paper.image(o,function(e){this.move(t.centerX-e.width/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-e.height/2+n.config.plotOptions.radialBar.hollow.imageOffsetY)});e.add(h)}else{var d=n.globals.dom.Paper.image(o,function(e){this.move(t.centerX-l/2+n.config.plotOptions.radialBar.hollow.imageOffsetX,t.centerY-c/2+n.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)});e.add(d)}}return s}},{key:"getStrokeWidth",value:function(t){var e=this.w;return t.size*(100-parseInt(e.config.plotOptions.radialBar.hollow.size,10))/100/(t.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(t){var e=parseInt(t.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,s=this.w;i&&i(s.globals.seriesNames[e],{w:s,seriesIndex:e})}}]),e}(),Zp=function(){Ec(e,Yp);var t=kc(e);function e(){return vc(this,e),t.apply(this,arguments)}return wc(e,[{key:"draw",value:function(t,e){var i=this.w,s=new Nu(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=t,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(t);for(var n=s.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0;a<t.length;a++){var r,o,l,c,h=void 0,d=void 0,u=i.globals.comboCharts?e[a]:a,p=this.barHelpers.getGroupIndex(u).columnGroupIndex,g=s.group({class:"apexcharts-series",seriesName:Dc.escapeString(i.globals.seriesNames[u]),rel:a+1,"data:realIndex":u});this.ctx.series.addCollapsedClassToSeries(g,u),t[a].length>0&&(this.visibleI=this.visibleI+1);var f=0,m=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[u][0],x=u);var b=this.barHelpers.initialPositions(u);d=b.y,c=b.zeroW,h=b.x,m=b.barWidth,f=b.barHeight,r=b.xDivision,o=b.yDivision,l=b.zeroH;for(var v=s.group({class:"apexcharts-datalabels","data:realIndex":u}),y=s.group({class:"apexcharts-rangebar-goals-markers"}),w=0;w<i.globals.dataPoints;w++){var A=this.barHelpers.getStrokeWidth(a,w,u),k=this.seriesRangeStart[a][w],C=this.seriesRangeEnd[a][w],_=null,E=null,S=null,M={x:h,y:d,strokeWidth:A,elSeries:g},T=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(T=1),void 0===i.config.series[a].data[w])break;if(this.isHorizontal){S=d+f*this.visibleI;var L=(o-f*T)/2;if(i.config.series[a].data[w].x){var P=this.detectOverlappingBars({i:a,j:w,barYPosition:S,srty:L,barHeight:f,yDivision:o,initPositions:b});f=P.barHeight,S=P.barYPosition}m=(_=this.drawRangeBarPaths(Tc({indexes:{i:a,j:w,realIndex:u},barHeight:f,barYPosition:S,zeroW:c,yDivision:o,y1:k,y2:C},M))).barWidth}else{i.globals.isXNumeric&&(h=(i.globals.seriesX[a][w]-i.globals.minX)/this.xRatio-m/2),E=h+m*this.visibleI;var B=(r-m*T)/2;if(i.config.series[a].data[w].x){var O=this.detectOverlappingBars({i:a,j:w,barXPosition:E,srtx:B,barWidth:m,xDivision:r,initPositions:b});m=O.barWidth,E=O.barXPosition}f=(_=this.drawRangeColumnPaths(Tc({indexes:{i:a,j:w,realIndex:u,translationsIndex:x},barWidth:m,barXPosition:E,zeroH:l,xDivision:r},M))).barHeight}var I=this.barHelpers.drawGoalLine({barXPosition:_.barXPosition,barYPosition:S,goalX:_.goalX,goalY:_.goalY,barHeight:f,barWidth:m});I&&y.add(I),d=_.y,h=_.x;var z=this.barHelpers.getPathFillColor(t,a,w,u);this.renderSeries({realIndex:u,pathFill:z.color,lineFill:z.useRangeColor?z.color:i.globals.stroke.colors[u],j:w,i:a,x:h,y:d,y1:k,y2:C,pathFrom:_.pathFrom,pathTo:_.pathTo,strokeWidth:A,elSeries:g,series:t,barHeight:f,barWidth:m,barXPosition:E,barYPosition:S,columnGroupIndex:p,elDataLabelsWrap:v,elGoalsMarkers:y,visibleSeries:this.visibleI,type:"rangebar"})}n.add(g)}return n}},{key:"detectOverlappingBars",value:function(t){var e=t.i,i=t.j,s=t.barYPosition,n=t.barXPosition,a=t.srty,r=t.srtx,o=t.barHeight,l=t.barWidth,c=t.yDivision,h=t.xDivision,d=t.initPositions,u=this.w,p=[],g=u.config.series[e].data[i].rangeName,f=u.config.series[e].data[i].x,m=Array.isArray(f)?f.join(" "):f,x=u.globals.labels.map(function(t){return Array.isArray(t)?t.join(" "):t}).indexOf(m),b=u.globals.seriesRange[e].findIndex(function(t){return t.x===m&&t.overlaps.length>0});return this.isHorizontal?(s=u.config.plotOptions.bar.rangeBarGroupRows?a+c*x:a+o*this.visibleI+c*x,b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(p=u.globals.seriesRange[e][b].overlaps).indexOf(g)>-1&&(s=(o=d.barHeight/p.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+p.indexOf(g))+c*x)):(x>-1&&!u.globals.timescaleLabels.length&&(n=u.config.plotOptions.bar.rangeBarGroupRows?r+h*x:r+l*this.visibleI+h*x),b>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(p=u.globals.seriesRange[e][b].overlaps).indexOf(g)>-1&&(n=(l=d.barWidth/p.length)*this.visibleI+h*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+p.indexOf(g))+h*x)),{barYPosition:s,barXPosition:n,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(t){var e=t.indexes,i=t.x,s=t.xDivision,n=t.barWidth,a=t.barXPosition,r=t.zeroH,o=this.w,l=e.i,c=e.j,h=e.realIndex,d=e.translationsIndex,u=this.yRatio[d],p=this.getRangeValue(h,c),g=Math.min(p.start,p.end),f=Math.max(p.start,p.end);void 0===this.series[l][c]||null===this.series[l][c]?g=r:(g=r-g/u,f=r-f/u);var m=Math.abs(f-g),x=this.barHelpers.getColumnPaths({barXPosition:a,barWidth:n,y1:g,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:h,i:h,j:c,w:o});if(o.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:i,j:c,realIndex:h,barWidth:n});i=b.x,a=b.barXPosition}else i+=s;return{pathTo:x.pathTo,pathFrom:x.pathFrom,barHeight:m,x:i,y:p.start<0&&p.end<0?g:f,goalY:this.barHelpers.getGoalValues("y",null,r,l,c,d),barXPosition:a}}},{key:"preventBarOverflow",value:function(t){var e=this.w;return t<0&&(t=0),t>e.globals.gridWidth&&(t=e.globals.gridWidth),t}},{key:"drawRangeBarPaths",value:function(t){var e=t.indexes,i=t.y,s=t.y1,n=t.y2,a=t.yDivision,r=t.barHeight,o=t.barYPosition,l=t.zeroW,c=this.w,h=e.realIndex,d=e.j,u=this.preventBarOverflow(l+s/this.invertedYRatio),p=this.preventBarOverflow(l+n/this.invertedYRatio),g=this.getRangeValue(h,d),f=Math.abs(p-u),m=this.barHelpers.getBarpaths({barYPosition:o,barHeight:r,x1:u,x2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:h,realIndex:h,j:d,w:c});return c.globals.isXNumeric||(i+=a),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:f,x:g.start<0&&g.end<0?u:p,goalX:this.barHelpers.getGoalValues("x",l,null,h,d),y:i}}},{key:"getRangeValue",value:function(t,e){var i=this.w;return{start:i.globals.seriesRangeStart[t][e],end:i.globals.seriesRangeEnd[t][e]}}}]),e}(),Qp=function(){function t(e){vc(this,t),this.w=e.w,this.lineCtx=e}return wc(t,[{key:"sameValueSeriesFix",value:function(t,e){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[t])&&new Yu(this.lineCtx.ctx,i).seriesHaveSameValues(t)){var s=e[t].slice();s[s.length-1]=s[s.length-1]+1e-6,e[t]=s}return e}},{key:"calculatePoints",value:function(t){var e=t.series,i=t.realIndex,s=t.x,n=t.y,a=t.i,r=t.j,o=t.prevY,l=this.w,c=[],h=[],d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.globals.isXNumeric&&(d=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),0===r&&(c.push(d),h.push(Dc.isNumber(e[a][0])?o+l.config.markers.offsetY:null)),c.push(s+l.config.markers.offsetX),h.push(Dc.isNumber(e[a][r+1])?n+l.config.markers.offsetY:null),{x:c,y:h}}},{key:"checkPreviousPaths",value:function(t){for(var e=t.pathFromLine,i=t.pathFromArea,s=t.realIndex,n=this.w,a=0;a<n.globals.previousPaths.length;a++){var r=n.globals.previousPaths[a];("line"===r.type||"area"===r.type)&&r.paths.length>0&&parseInt(r.realIndex,10)===parseInt(s,10)&&("line"===r.type?(this.lineCtx.appendPathFrom=!1,e=n.globals.previousPaths[a].paths[0].d):"area"===r.type&&(this.lineCtx.appendPathFrom=!1,i=n.globals.previousPaths[a].paths[0].d,n.config.stroke.show&&n.globals.previousPaths[a].paths[1]&&(e=n.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:e,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(t){var e,i,s,n=t.i,a=t.realIndex,r=t.series,o=t.prevY,l=t.lineYPosition,c=t.translationsIndex,h=this.w,d=h.config.chart.stacked&&!h.globals.comboCharts||h.config.chart.stacked&&h.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[a])||void 0===e?void 0:e.type)||"column"===(null===(i=this.w.config.series[a])||void 0===i?void 0:i.type));if(void 0!==(null===(s=r[n])||void 0===s?void 0:s[0]))o=(l=d&&n>0?this.lineCtx.prevSeriesY[n-1][0]:this.lineCtx.zeroY)-r[n][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?r[n][0]/this.lineCtx.yRatio[c]:0);else if(d&&n>0&&void 0===r[n][0])for(var u=n-1;u>=0;u--)if(null!==r[u][0]&&void 0!==r[u][0]){o=l=this.lineCtx.prevSeriesY[u][0];break}return{prevY:o,lineYPosition:l}}}]),t}(),Kp=function(t,e,i){var s=t.slice(e,i);if(e){if(i-e>1&&s[1].length<6){var n=s[0].length;s[1]=[2*s[0][n-2]-s[0][n-4],2*s[0][n-1]-s[0][n-3]].concat(s[1])}s[0]=s[0].slice(-2)}return s};function Jp(t,e){return(e[1]-t[1])/(e[0]-t[0])}var tg=function(){function t(e,i,s){vc(this,t),this.ctx=e,this.w=e.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||s,this.scatter=new rp(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Qp(this),this.markers=new ap(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return wc(t,[{key:"draw",value:function(t,e,i,s){var n,a=this.w,r=new Nu(this.ctx),o=a.globals.comboCharts?e:a.config.chart.type,l=r.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),c=new Yu(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,t=c.getLogSeries(t),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var h=[],d=0;d<t.length;d++){t=this.lineHelpers.sameValueSeriesFix(d,t);var u=a.globals.comboCharts?i[d]:d,p=this.yRatio.length>1?u:0;this._initSerieVariables(t,d,u);var g=[],f=[],m=[],x=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(x=(a.globals.seriesX[u][0]-a.globals.minX)/this.xRatio),m.push(x);var b,v=x,y=void 0,w=v,A=this.zeroY,k=this.zeroY;A=this.lineHelpers.determineFirstPrevY({i:d,realIndex:u,series:t,prevY:A,lineYPosition:0,translationsIndex:p}).prevY,"monotoneCubic"===a.config.stroke.curve&&null===t[d][0]?g.push(null):g.push(A),b=A,"rangeArea"===o&&(y=k=this.lineHelpers.determineFirstPrevY({i:d,realIndex:u,series:s,prevY:k,lineYPosition:0,translationsIndex:p}).prevY,f.push(null!==g[0]?k:null));var C=this._calculatePathsFrom({type:o,series:t,i:d,realIndex:u,translationsIndex:p,prevX:w,prevY:A,prevY2:k}),_=[g[0]],E=[f[0]],S={type:o,series:t,realIndex:u,translationsIndex:p,i:d,x,y:1,pX:v,pY:b,pathsFrom:C,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:m,yArrj:g,y2Arrj:f,seriesRangeEnd:s},M=this._iterateOverDataPoints(Tc(Tc({},S),{},{iterations:"rangeArea"===o?t[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===o){for(var T=this._calculatePathsFrom({series:s,i:d,realIndex:u,prevX:w,prevY:k}),L=this._iterateOverDataPoints(Tc(Tc({},S),{},{series:s,xArrj:[x],yArrj:_,y2Arrj:E,pY:y,areaPaths:M.areaPaths,pathsFrom:T,iterations:s[d].length-1,isRangeStart:!1})),P=M.linePaths.length/2,B=0;B<P;B++)M.linePaths[B]=L.linePaths[B+P]+M.linePaths[B];M.linePaths.splice(P),M.pathFromLine=L.pathFromLine+M.pathFromLine}else M.pathFromArea+="z";this._handlePaths({type:o,realIndex:u,i:d,paths:M}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),h.push(this.elSeries)}if(void 0!==(null===(n=a.config.series[0])||void 0===n?void 0:n.zIndex)&&h.sort(function(t,e){return Number(t.node.getAttribute("zIndex"))-Number(e.node.getAttribute("zIndex"))}),a.config.chart.stacked)for(var O=h.length-1;O>=0;O--)l.add(h[O]);else for(var I=0;I<h.length;I++)l.add(h[I]);return l}},{key:"_initSerieVariables",value:function(t,e,i){var s=this.w,n=new Nu(this.ctx);this.xDivision=s.globals.gridWidth/(s.globals.dataPoints-("on"===s.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(s.config.stroke.width)?s.config.stroke.width[i]:s.config.stroke.width;var a=0;if(this.yRatio.length>1&&(this.yaxisIndex=s.globals.seriesYAxisReverseMap[i],a=i),this.isReversed=s.config.yaxis[this.yaxisIndex]&&s.config.yaxis[this.yaxisIndex].reversed,this.zeroY=s.globals.gridHeight-this.baseLineY[a]-(this.isReversed?s.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[a]:0),this.areaBottomY=this.zeroY,(this.zeroY>s.globals.gridHeight||"end"===s.config.plotOptions.area.fillTo)&&(this.areaBottomY=s.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=n.group({class:"apexcharts-series",zIndex:void 0!==s.config.series[i].zIndex?s.config.series[i].zIndex:i,seriesName:Dc.escapeString(s.globals.seriesNames[i])}),this.elPointsMain=n.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),s.globals.hasNullValues){var r=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[s.globals.gridHeight+s.globals.markers.largestSize]},seriesIndex:e,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==r&&this.elPointsMain.add(r)}this.elDataLabelsWrap=n.group({class:"apexcharts-datalabels","data:realIndex":i});var o=t[e].length===s.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:e+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(t){var e,i,s,n,a=t.type,r=t.series,o=t.i,l=t.realIndex,c=t.translationsIndex,h=t.prevX,d=t.prevY,u=t.prevY2,p=this.w,g=new Nu(this.ctx);if(null===r[o][0]){for(var f=0;f<r[o].length;f++)if(null!==r[o][f]){h=this.xDivision*f,d=this.zeroY-r[o][f]/this.yRatio[c],e=g.move(h,d),i=g.move(h,this.areaBottomY);break}}else e=g.move(h,d),"rangeArea"===a&&(e=g.move(h,u)+g.line(h,d)),i=g.move(h,this.areaBottomY)+g.line(h,d);if(s=g.move(0,this.areaBottomY)+g.line(0,this.areaBottomY),n=g.move(0,this.areaBottomY)+g.line(0,this.areaBottomY),p.globals.previousPaths.length>0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:s,pathFromArea:n,realIndex:l});s=m.pathFromLine,n=m.pathFromArea}return{prevX:h,prevY:d,linePath:e,areaPath:i,pathFromLine:s,pathFromArea:n}}},{key:"_handlePaths",value:function(t){var e=t.type,i=t.realIndex,s=t.i,n=t.paths,a=this.w,r=new Nu(this.ctx),o=new np(this.ctx);this.prevSeriesY.push(n.yArrj),a.globals.seriesXvalues[i]=n.xArrj,a.globals.seriesYvalues[i]=n.yArrj;var l=a.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==e){var c=a.globals.seriesXvalues[i][a.globals.seriesXvalues[i].length-l.count-1],h=r.drawRect(c,0,a.globals.gridWidth,a.globals.gridHeight,0);a.globals.dom.elForecastMask.appendChild(h.node);var d=r.drawRect(0,0,c,a.globals.gridHeight,0);a.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||a.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var u={i:s,realIndex:i,animationDelay:s,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(e)};if("area"===e)for(var p=o.fillPath({seriesNumber:i}),g=0;g<n.areaPaths.length;g++){var f=r.renderPaths(Tc(Tc({},u),{},{pathFrom:n.pathFromArea,pathTo:n.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:p}));this.elSeries.add(f)}if(a.config.stroke.show&&!this.pointsChart){var m=null;if("line"===e)m=o.fillPath({seriesNumber:i,i:s});else if("solid"===a.config.stroke.fill.type)m=a.globals.stroke.colors[i];else{var x=a.config.fill;a.config.fill=a.config.stroke.fill,m=o.fillPath({seriesNumber:i,i:s}),a.config.fill=x}for(var b=0;b<n.linePaths.length;b++){var v=m;"rangeArea"===e&&(v=o.fillPath({seriesNumber:i}));var y=Tc(Tc({},u),{},{pathFrom:n.pathFromLine,pathTo:n.linePaths[b],stroke:m,strokeWidth:this.strokeWidth,strokeLineCap:a.config.stroke.lineCap,fill:"rangeArea"===e?v:"none"}),w=r.renderPaths(y);if(this.elSeries.add(w),w.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==e){var A=r.renderPaths(y);A.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&A.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(A),A.attr("clip-path","url(#forecastMask".concat(a.globals.cuid,")")),w.attr("clip-path","url(#nonForecastMask".concat(a.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(t){var e,i,s=this,n=t.type,a=t.series,r=t.iterations,o=t.realIndex,l=t.translationsIndex,c=t.i,h=t.x,d=t.y,u=t.pX,p=t.pY,g=t.pathsFrom,f=t.linePaths,m=t.areaPaths,x=t.seriesIndex,b=t.lineYPosition,v=t.xArrj,y=t.yArrj,w=t.y2Arrj,A=t.isRangeStart,k=t.seriesRangeEnd,C=this.w,_=new Nu(this.ctx),E=this.yRatio,S=g.prevY,M=g.linePath,T=g.areaPath,L=g.pathFromLine,P=g.pathFromArea,B=Dc.isNumber(C.globals.minYArr[o])?C.globals.minYArr[o]:C.globals.minY;r||(r=C.globals.dataPoints>1?C.globals.dataPoints-1:C.globals.dataPoints);var O=function(t,e){return e-t/E[l]+2*(s.isReversed?t/E[l]:0)},I=d,z=C.config.chart.stacked&&!C.globals.comboCharts||C.config.chart.stacked&&C.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(e=this.w.config.series[o])||void 0===e?void 0:e.type)||"column"===(null===(i=this.w.config.series[o])||void 0===i?void 0:i.type)),D=C.config.stroke.curve;Array.isArray(D)&&(D=Array.isArray(x)?D[x[c]]:D[c]);for(var F,R=0,H=0;H<r&&0!==a[c].length;H++){var N=void 0===a[c][H+1]||null===a[c][H+1];if(C.globals.isXNumeric){var Y=C.globals.seriesX[o][H+1];void 0===C.globals.seriesX[o][H+1]&&(Y=C.globals.seriesX[o][r-1]),h=(Y-C.globals.minX)/this.xRatio}else h+=this.xDivision;b=z&&c>0&&C.globals.collapsedSeries.length<C.config.series.length-1?this.prevSeriesY[function(t){for(var e=t;e>0;e--){if(!(C.globals.collapsedSeriesIndices.indexOf((null==x?void 0:x[e])||e)>-1))return e;e--}return 0}(c-1)][H+1]:this.zeroY,N?d=O(B,b):(d=O(a[c][H+1],b),"rangeArea"===n&&(I=O(k[c][H+1],b))),v.push(null===a[c][H+1]?null:h),!N||"smooth"!==C.config.stroke.curve&&"monotoneCubic"!==C.config.stroke.curve?(y.push(d),w.push(I)):(y.push(null),w.push(null));var W=this.lineHelpers.calculatePoints({series:a,x:h,y:d,realIndex:o,i:c,j:H,prevY:S}),X=this._createPaths({type:n,series:a,i:c,realIndex:o,j:H,x:h,y:d,y2:I,xArrj:v,yArrj:y,y2Arrj:w,pX:u,pY:p,pathState:R,segmentStartX:F,linePath:M,areaPath:T,linePaths:f,areaPaths:m,curve:D,isRangeStart:A});m=X.areaPaths,f=X.linePaths,u=X.pX,p=X.pY,R=X.pathState,F=X.segmentStartX,T=X.areaPath,M=X.linePath,!this.appendPathFrom||C.globals.hasNullValues||"monotoneCubic"===D&&"rangeArea"===n||(L+=_.line(h,this.areaBottomY),P+=_.line(h,this.areaBottomY)),this.handleNullDataPoints(a,W,c,H,o),this._handleMarkersAndLabels({type:n,pointsPos:W,i:c,j:H,realIndex:o,isRangeStart:A})}return{yArrj:y,xArrj:v,pathFromArea:P,areaPaths:m,pathFromLine:L,linePaths:f,linePath:M,areaPath:T}}},{key:"_handleMarkersAndLabels",value:function(t){var e=t.type,i=t.pointsPos,s=t.isRangeStart,n=t.i,a=t.j,r=t.realIndex,o=this.w,l=new op(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:r,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[n].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers({pointsPos:i,seriesIndex:r,j:a+1});null!==c&&this.elPointsMain.add(c)}var h=l.drawDataLabel({type:e,isRangeStart:s,pos:i,i:r,j:a+1});null!==h&&this.elDataLabelsWrap.add(h)}},{key:"_createPaths",value:function(t){var e=t.type,i=t.series,s=t.i;t.realIndex;var n,a=t.j,r=t.x,o=t.y,l=t.xArrj,c=t.yArrj,h=t.y2,d=t.y2Arrj,u=t.pX,p=t.pY,g=t.pathState,f=t.segmentStartX,m=t.linePath,x=t.areaPath,b=t.linePaths,v=t.areaPaths,y=t.curve,w=t.isRangeStart,A=new Nu(this.ctx),k=this.areaBottomY,C="rangeArea"===e,_="rangeArea"===e&&w;switch(y){case"monotoneCubic":var E=w?c:d;switch(g){case 0:if(null===E[a+1])break;g=1;case 1:if(!(C?l.length===i[s].length:a===i[s].length-2))break;case 2:var S=w?l:l.slice().reverse(),M=w?E:E.slice().reverse(),T=(n=M,S.map(function(t,e){return[t,n[e]]}).filter(function(t){return null!==t[1]})),L=T.length>1?function(t){var e=function(t){for(var e,i,s,n,a=function(t){for(var e=[],i=t[0],s=t[1],n=e[0]=Jp(i,s),a=1,r=t.length-1;a<r;a++)i=s,s=t[a+1],e[a]=.5*(n+(n=Jp(i,s)));return e[a]=n,e}(t),r=t.length-1,o=[],l=0;l<r;l++)s=Jp(t[l],t[l+1]),Math.abs(s)<1e-6?a[l]=a[l+1]=0:(n=(e=a[l]/s)*e+(i=a[l+1]/s)*i)>9&&(n=3*s/Math.sqrt(n),a[l]=n*e,a[l+1]=n*i);for(var c=0;c<=r;c++)n=(t[Math.min(r,c+1)][0]-t[Math.max(0,c-1)][0])/(6*(1+a[c]*a[c])),o.push([n||0,a[c]*n||0]);return o}(t),i=t[1],s=t[0],n=[],a=e[1],r=e[0];n.push(s,[s[0]+r[0],s[1]+r[1],i[0]-a[0],i[1]-a[1],i[0],i[1]]);for(var o=2,l=e.length;o<l;o++){var c=t[o],h=e[o];n.push([c[0]-h[0],c[1]-h[1],c[0],c[1]])}return n}(T):T,P=[];C&&(_?v=T:P=v.reverse());var B=0,O=0;if(function(t,e){for(var i=function(t){var e=[],i=0;return t.forEach(function(t){null!==t?i++:i>0&&(e.push(i),i=0)}),i>0&&e.push(i),e}(t),s=[],n=0,a=0;n<i.length;a+=i[n++])s[n]=Kp(e,a,a+i[n]);return s}(M,L).forEach(function(t){B++;var e=function(t){for(var e="",i=0;i<t.length;i++){var s=t[i],n=s.length;n>4?(e+="C".concat(s[0],", ").concat(s[1]),e+=", ".concat(s[2],", ").concat(s[3]),e+=", ".concat(s[4],", ").concat(s[5])):n>2&&(e+="S".concat(s[0],", ").concat(s[1]),e+=", ".concat(s[2],", ").concat(s[3]))}return e}(t),i=O,s=(O+=t.length)-1;_?m=A.move(T[i][0],T[i][1])+e:C?m=A.move(P[i][0],P[i][1])+A.line(T[i][0],T[i][1])+e+A.line(P[s][0],P[s][1]):(m=A.move(T[i][0],T[i][1])+e,x=m+A.line(T[s][0],k)+A.line(T[i][0],k)+"z",v.push(x)),b.push(m)}),C&&B>1&&!_){var I=b.slice(B).reverse();b.splice(B),I.forEach(function(t){return b.push(t)})}g=0}break;case"smooth":var z=.35*(r-u);if(null===i[s][a])g=0;else switch(g){case 0:if(f=u,m=_?A.move(u,d[a])+A.line(u,p):A.move(u,p),x=A.move(u,p),null===i[s][a+1]||void 0===i[s][a+1]){b.push(m),v.push(x);break}if(g=1,a<i[s].length-2){var D=A.curve(u+z,p,r-z,o,r,o);m+=D,x+=D;break}case 1:if(null===i[s][a+1])m+=_?A.line(u,h):A.move(u,p),x+=A.line(u,k)+A.line(f,k)+"z",b.push(m),v.push(x),g=-1;else{var F=A.curve(u+z,p,r-z,o,r,o);m+=F,x+=F,a>=i[s].length-2&&(_&&(m+=A.curve(r,o,r,o,r,h)+A.move(r,h)),x+=A.curve(r,o,r,o,r,k)+A.line(f,k)+"z",b.push(m),v.push(x),g=-1)}}u=r,p=o;break;default:var R=function(t,e,i){var s=[];switch(t){case"stepline":s=A.line(e,null,"H")+A.line(null,i,"V");break;case"linestep":s=A.line(null,i,"V")+A.line(e,null,"H");break;case"straight":s=A.line(e,i)}return s};if(null===i[s][a])g=0;else switch(g){case 0:if(f=u,m=_?A.move(u,d[a])+A.line(u,p):A.move(u,p),x=A.move(u,p),null===i[s][a+1]||void 0===i[s][a+1]){b.push(m),v.push(x);break}if(g=1,a<i[s].length-2){var H=R(y,r,o);m+=H,x+=H;break}case 1:if(null===i[s][a+1])m+=_?A.line(u,h):A.move(u,p),x+=A.line(u,k)+A.line(f,k)+"z",b.push(m),v.push(x),g=-1;else{var N=R(y,r,o);m+=N,x+=N,a>=i[s].length-2&&(_&&(m+=A.line(r,h)),x+=A.line(r,k)+A.line(f,k)+"z",b.push(m),v.push(x),g=-1)}}u=r,p=o}return{linePaths:b,areaPaths:v,pX:u,pY:p,pathState:g,segmentStartX:f,linePath:m,areaPath:x}}},{key:"handleNullDataPoints",value:function(t,e,i,s,n){var a=this.w;if(null===t[i][s]&&a.config.markers.showNullDataPoints||1===t[i].length){var r=this.strokeWidth-a.config.markers.strokeWidth/2;r>0||(r=0);var o=this.markers.plotChartMarkers({pointsPos:e,seriesIndex:n,j:s+1,pSize:r,alwaysDrawMarker:!0});null!==o&&this.elPointsMain.add(o)}}}]),t}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function t(e,i,s,n){this.xoffset=e,this.yoffset=i,this.height=n,this.width=s,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(t){var e,i=[],s=this.xoffset,n=this.yoffset,r=a(t)/this.height,o=a(t)/this.width;if(this.width>=this.height)for(e=0;e<t.length;e++)i.push([s,n,s+r,n+t[e]/r]),n+=t[e]/r;else for(e=0;e<t.length;e++)i.push([s,n,s+t[e]/o,n+o]),s+=t[e]/o;return i},this.cutArea=function(e){var i;if(this.width>=this.height){var s=e/this.height,n=this.width-s;i=new t(this.xoffset+s,this.yoffset,n,this.height)}else{var a=e/this.width,r=this.height-a;i=new t(this.xoffset,this.yoffset+a,this.width,r)}return i}}function e(e,s,n,r,o){r=void 0===r?0:r,o=void 0===o?0:o;var l=i(function(t,e){var i,s=[],n=e/a(t);for(i=0;i<t.length;i++)s[i]=t[i]*n;return s}(e,s*n),[],new t(r,o,s,n),[]);return function(t){var e,i,s=[];for(e=0;e<t.length;e++)for(i=0;i<t[e].length;i++)s.push(t[e][i]);return s}(l)}function i(t,e,n,r){var o,l,c;if(0!==t.length)return o=n.shortestEdge(),function(t,e,i){var n;return 0===t.length||((n=t.slice()).push(e),s(t,i)>=s(n,i))}(e,l=t[0],o)?(e.push(l),i(t.slice(1),e,n,r)):(c=n.cutArea(a(e),r),r.push(n.getCoordinates(e)),i(t,[],c,r)),r;r.push(n.getCoordinates(e))}function s(t,e){var i=Math.min.apply(Math,t),s=Math.max.apply(Math,t),n=a(t);return Math.max(Math.pow(e,2)*s/Math.pow(n,2),Math.pow(n,2)/(Math.pow(e,2)*i))}function n(t){return t&&t.constructor===Array}function a(t){var e,i=0;for(e=0;e<t.length;e++)i+=t[e];return i}function r(t){var e,i=0;if(n(t[0]))for(e=0;e<t.length;e++)i+=r(t[e]);else i=a(t);return i}return function t(i,s,a,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,h,d=[],u=[];if(n(i[0])){for(h=0;h<i.length;h++)d[h]=r(i[h]);for(c=e(d,s,a,o,l),h=0;h<i.length;h++)u.push(t(i[h],c[h][2]-c[h][0],c[h][3]-c[h][1],c[h][0],c[h][1]))}else u=e(i,s,a,o,l);return u}}();var eg=function(){function t(e,i){vc(this,t),this.ctx=e,this.w=e.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new jp(e),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return wc(t,[{key:"draw",value:function(t){var e=this,i=this.w,s=new Nu(this.ctx),n=new np(this.ctx),a=s.group({class:"apexcharts-treemap"});if(i.globals.noData)return a;var r=[];return t.forEach(function(t){var e=t.map(function(t){return Math.abs(t)});r.push(e)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(t,i){t.data.forEach(function(t){Array.isArray(e.labels[i])||(e.labels[i]=[]),e.labels[i].push(t.x)})}),window.TreemapSquared.generate(r,i.globals.gridWidth,i.globals.gridHeight).forEach(function(r,o){var l=s.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:Dc.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new Hu(e.ctx).dropShadow(a,c,o)}var h=s.group({class:"apexcharts-data-labels"}),d={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};r.forEach(function(a,r){var c=a[0],h=a[1],u=a[2],p=a[3];d.xMin=Math.min(d.xMin,c),d.yMin=Math.min(d.yMin,h),d.xMax=Math.max(d.xMax,u),d.yMax=Math.max(d.yMax,p);var g=e.helpers.getShadeColor(i.config.chart.type,o,r,e.negRange),f=g.color,m=n.fillPath({color:f,seriesNumber:o,dataPointIndex:r}),x=s.drawRect(c,h,u-c,p-h,i.config.plotOptions.treemap.borderRadius,"#fff",1,e.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?f:i.globals.stroke.colors[o]);x.attr({cx:c,cy:h,index:o,i:o,j:r,width:u-c,height:p-h,fill:m}),x.node.classList.add("apexcharts-treemap-rect"),e.helpers.addListeners(x);var b={x:c+(u-c)/2,y:h+(p-h)/2,width:0,height:0},v={x:c,y:h,width:u-c,height:p-h};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var y=1;i.globals.resized||(y=i.config.chart.animations.speed),e.animateTreemap(x,b,v,y)}if(i.globals.dataChanged){var w=1;e.dynamicAnim.enabled&&i.globals.shouldAnimate&&(w=e.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][r]&&i.globals.previousPaths[o][r].rect&&(b=i.globals.previousPaths[o][r].rect),e.animateTreemap(x,b,v,w))}var A=e.getFontSize(a),k=i.config.dataLabels.formatter(e.labels[o][r],{value:i.globals.series[o][r],seriesIndex:o,dataPointIndex:r,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(A=parseInt(i.config.dataLabels.style.fontSize,10),k=e.truncateLabels(k,A,c,h,u,p));var C=null;i.globals.series[o][r]&&(C=e.helpers.calculateDataLabels({text:k,x:(c+u)/2,y:(h+p)/2+e.strokeWidth/2+A/3,i:o,j:r,colorProps:g,fontSize:A,series:t})),i.config.dataLabels.enabled&&C&&e.rotateToFitLabel(C,A,k,c,h,u,p),l.add(x),null!==C&&l.add(C)});var u=i.config.plotOptions.treemap.seriesTitle;if(i.config.series.length>1&&u&&u.show){var p=i.config.series[o].name||"";if(p&&d.xMin<1/0&&d.yMin<1/0){var g=u.offsetX,f=u.offsetY,m=u.borderColor,x=u.borderWidth,b=u.borderRadius,v=u.style,y=v.color||i.config.chart.foreColor,w={left:v.padding.left,right:v.padding.right,top:v.padding.top,bottom:v.padding.bottom},A=s.getTextRects(p,v.fontSize,v.fontFamily),k=A.width+w.left+w.right,C=A.height+w.top+w.bottom,_=d.xMin+(g||0),E=d.yMin+(f||0),S=s.drawRect(_,E,k,C,b,v.background,1,x,m),M=s.drawText({x:_+w.left,y:E+w.top+.75*A.height,text:p,fontSize:v.fontSize,fontFamily:v.fontFamily,fontWeight:v.fontWeight,foreColor:y,cssClass:v.cssClass||""});l.add(S),l.add(M)}}l.add(h),a.add(l)}),a}},{key:"getFontSize",value:function(t){var e=this.w,i=function t(e){var i,s=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)s+=t(e[i]);else for(i=0;i<e.length;i++)s+=e[i].length;return s}(this.labels)/function t(e){var i,s=0;if(Array.isArray(e[0]))for(i=0;i<e.length;i++)s+=t(e[i]);else for(i=0;i<e.length;i++)s+=1;return s}(this.labels);return function(t,s){var n=t*s,a=Math.pow(n,.5);return Math.min(a/i,parseInt(e.config.dataLabels.style.fontSize,10))}(t[2]-t[0],t[3]-t[1])}},{key:"rotateToFitLabel",value:function(t,e,i,s,n,a,r){var o=new Nu(this.ctx),l=o.getTextRects(i,e);if(l.width+this.w.config.stroke.width+5>a-s&&l.width<=r-n){var c=o.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(t,e,i,s,n,a){var r=new Nu(this.ctx),o=r.getTextRects(t,e).width+this.w.config.stroke.width+5>n-i&&a-s>n-i?a-s:n-i,l=r.getTextBasedOnMaxWidth({text:t,maxWidth:o,fontSize:e});return t.length!==l.length&&o/e<5?"":l}},{key:"animateTreemap",value:function(t,e,i,s){var n=new Fc(this.ctx);n.animateRect(t,e,i,s,function(){n.animationCompleted(t)})}}]),t}(),ig=10/86400,sg=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return wc(t,[{key:"calculateTimeScaleTicks",value:function(t,e){var i=this,s=this.w;if(s.globals.allSeriesCollapsed)return s.globals.labels=[],s.globals.timescaleLabels=[],[];var n=new ju(this.ctx),a=(e-t)/864e5;this.determineInterval(a),s.globals.disableZoomIn=!1,s.globals.disableZoomOut=!1,a<ig?s.globals.disableZoomIn=!0:a>5e4&&(s.globals.disableZoomOut=!0);var r=n.getTimeUnitsfromTimestamp(t,e,this.utc),o=s.globals.gridWidth/a,l=o/24,c=l/60,h=c/60,d=Math.floor(24*a),u=Math.floor(1440*a),p=Math.floor(86400*a),g=Math.floor(a),f=Math.floor(a/30),m=Math.floor(a/365),x={minMillisecond:r.minMillisecond,minSecond:r.minSecond,minMinute:r.minMinute,minHour:r.minHour,minDate:r.minDate,minMonth:r.minMonth,minYear:r.minYear},b={firstVal:x,currentMillisecond:x.minMillisecond,currentSecond:x.minSecond,currentMinute:x.minMinute,currentHour:x.minHour,currentMonthDate:x.minDate,currentDate:x.minDate,currentMonth:x.minMonth,currentYear:x.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:h,numberOfSeconds:p,numberOfMinutes:u,numberOfHours:d,numberOfDays:g,numberOfMonths:f,numberOfYears:m};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var v=this.timeScaleArray.map(function(t){var e={position:t.position,unit:t.unit,year:t.year,day:t.day?t.day:1,hour:t.hour?t.hour:0,month:t.month+1};return"month"===t.unit?Tc(Tc({},e),{},{day:1,value:t.value+1}):"day"===t.unit||"hour"===t.unit?Tc(Tc({},e),{},{value:t.value}):"minute"===t.unit?Tc(Tc({},e),{},{value:t.value,minute:t.value}):"second"===t.unit?Tc(Tc({},e),{},{value:t.value,minute:t.minute,second:t.second}):t});return v.filter(function(t){var e=1,n=Math.ceil(s.globals.gridWidth/120),a=t.value;void 0!==s.config.xaxis.tickAmount&&(n=s.config.xaxis.tickAmount),v.length>n&&(e=Math.floor(v.length/n));var r=!1,o=!1;switch(i.tickInterval){case"years":"year"===t.unit&&(r=!0);break;case"half_year":e=7,"year"===t.unit&&(r=!0);break;case"months":e=1,"year"===t.unit&&(r=!0);break;case"months_fortnight":e=15,"year"!==t.unit&&"month"!==t.unit||(r=!0),30===a&&(o=!0);break;case"months_days":e=10,"month"===t.unit&&(r=!0),30===a&&(o=!0);break;case"week_days":e=8,"month"===t.unit&&(r=!0);break;case"days":e=1,"month"===t.unit&&(r=!0);break;case"hours":"day"===t.unit&&(r=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(o=!0);break;case"seconds_tens":a%10!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((a%e==0||r)&&!o)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(t,e){var i=this.w,s=this.formatDates(t),n=this.removeOverlappingTS(s);i.globals.timescaleLabels=n.slice(),new Sp(this.ctx).plotCoords()}},{key:"determineInterval",value:function(t){var e=24*t,i=60*e;switch(!0){case t/365>5:this.tickInterval="years";break;case t>800:this.tickInterval="half_year";break;case t>180:this.tickInterval="months";break;case t>90:this.tickInterval="months_fortnight";break;case t>60:this.tickInterval="months_days";break;case t>30:this.tickInterval="week_days";break;case t>2:this.tickInterval="days";break;case e>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.daysWidthOnXAxis,a=t.numberOfYears,r=e.minYear,o=0,l=new ju(this.ctx),c="year";if(e.minDate>1||e.minMonth>0){var h=l.determineRemainingDaysOfYear(e.minYear,e.minMonth,e.minDate);o=(l.determineDaysOfYear(e.minYear)-h+1)*n,r=e.minYear+1,this.timeScaleArray.push({position:o,value:r,unit:c,year:r,month:Dc.monthMod(i+1)})}else 1===e.minDate&&0===e.minMonth&&this.timeScaleArray.push({position:o,value:r,unit:c,year:s,month:Dc.monthMod(i+1)});for(var d=r,u=o,p=0;p<a;p++)d++,u=l.determineDaysOfYear(d-1)*n+u,this.timeScaleArray.push({position:u,value:d,unit:c,year:d,month:1})}},{key:"generateMonthScale",value:function(t){var e=t.firstVal,i=t.currentMonthDate,s=t.currentMonth,n=t.currentYear,a=t.daysWidthOnXAxis,r=t.numberOfMonths,o=s,l=0,c=new ju(this.ctx),h="month",d=0;if(e.minDate>1){l=(c.determineDaysOfMonths(s+1,e.minYear)-i+1)*a,o=Dc.monthMod(s+1);var u=n+d,p=Dc.monthMod(o),g=o;0===o&&(h="year",g=u,p=1,u+=d+=1),this.timeScaleArray.push({position:l,value:g,unit:h,year:u,month:p})}else this.timeScaleArray.push({position:l,value:o,unit:h,year:n,month:Dc.monthMod(s)});for(var f=o+1,m=l,x=0,b=1;x<r;x++,b++){0===(f=Dc.monthMod(f))?(h="year",d+=1):h="month";var v=this._getYear(n,f,d);m=c.determineDaysOfMonths(f,v)*a+m;var y=0===f?v:f;this.timeScaleArray.push({position:m,value:y,unit:h,year:v,month:0===f?1:f}),f++}}},{key:"generateDayScale",value:function(t){var e=t.firstVal,i=t.currentMonth,s=t.currentYear,n=t.hoursWidthOnXAxis,a=t.numberOfDays,r=new ju(this.ctx),o="day",l=e.minDate+1,c=l,h=function(t,e,i){return t>r.determineDaysOfMonths(e+1,i)?(c=1,o="month",u=e+=1,e):e},d=(24-e.minHour)*n,u=l,p=h(c,i,s);0===e.minHour&&1===e.minDate?(d=0,u=Dc.monthMod(e.minMonth),o="month",c=e.minDate):1!==e.minDate&&0===e.minHour&&0===e.minMinute&&(d=0,l=e.minDate,u=l,p=h(c=l,i,s),1!==u&&(o="day")),this.timeScaleArray.push({position:d,value:u,unit:o,year:this._getYear(s,p,0),month:Dc.monthMod(p),day:c});for(var g=d,f=0;f<a;f++){o="day",p=h(c+=1,p,this._getYear(s,p,0));var m=this._getYear(s,p,0);g=24*n+g;var x=1===c?Dc.monthMod(p):c;this.timeScaleArray.push({position:g,value:x,unit:o,year:m,month:Dc.monthMod(p),day:x})}}},{key:"generateHourScale",value:function(t){var e=t.firstVal,i=t.currentDate,s=t.currentMonth,n=t.currentYear,a=t.minutesWidthOnXAxis,r=t.numberOfHours,o=new ju(this.ctx),l="hour",c=function(t,e){return t>o.determineDaysOfMonths(e+1,n)&&(f=1,e+=1),{month:e,date:f}},h=function(t,e){return t>o.determineDaysOfMonths(e+1,n)?e+=1:e},d=60-(e.minMinute+e.minSecond/60),u=d*a,p=e.minHour+1,g=p;60===d&&(u=0,g=p=e.minHour);var f=i;g>=24&&(g=0,l="day",p=f+=1);var m=c(f,s).month;m=h(f,m),p>31&&(p=f=1),this.timeScaleArray.push({position:u,value:p,unit:l,day:f,hour:g,year:n,month:Dc.monthMod(m)}),g++;for(var x=u,b=0;b<r;b++){l="hour",g>=24&&(g=0,l="day",m=c(f+=1,m).month,m=h(f,m));var v=this._getYear(n,m,0);x=60*a+x;var y=0===g?f:g;this.timeScaleArray.push({position:x,value:y,unit:l,hour:g,day:f,year:v,month:Dc.monthMod(m)}),g++}}},{key:"generateMinuteScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,a=t.currentDate,r=t.currentMonth,o=t.currentYear,l=t.minutesWidthOnXAxis,c=t.secondsWidthOnXAxis,h=t.numberOfMinutes,d=s+1,u=a,p=r,g=o,f=n,m=(60-i-e/1e3)*c,x=0;x<h;x++)d>=60&&(d=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:m,value:d,unit:"minute",hour:f,minute:d,day:u,year:this._getYear(g,p,0),month:Dc.monthMod(p)}),m+=l,d++}},{key:"generateSecondScale",value:function(t){for(var e=t.currentMillisecond,i=t.currentSecond,s=t.currentMinute,n=t.currentHour,a=t.currentDate,r=t.currentMonth,o=t.currentYear,l=t.secondsWidthOnXAxis,c=t.numberOfSeconds,h=i+1,d=s,u=a,p=r,g=o,f=n,m=(1e3-e)/1e3*l,x=0;x<c;x++)h>=60&&(h=0,++d>=60&&(d=0,24===++f&&(f=0))),this.timeScaleArray.push({position:m,value:h,unit:"second",hour:f,minute:d,second:h,day:u,year:this._getYear(g,p,0),month:Dc.monthMod(p)}),m+=l,h++}},{key:"createRawDateString",value:function(t,e){var i=t.year;return 0===t.month&&(t.month=1),i+="-"+("0"+t.month.toString()).slice(-2),"day"===t.unit?i+="day"===t.unit?"-"+("0"+e).slice(-2):"-01":i+="-"+("0"+(t.day?t.day:"1")).slice(-2),"hour"===t.unit?i+="hour"===t.unit?"T"+("0"+e).slice(-2):"T00":i+="T"+("0"+(t.hour?t.hour:"0")).slice(-2),"minute"===t.unit?i+=":"+("0"+e).slice(-2):i+=":"+(t.minute?("0"+t.minute).slice(-2):"00"),"second"===t.unit?i+=":"+("0"+e).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(t){var e=this,i=this.w;return t.map(function(t){var s=t.value.toString(),n=new ju(e.ctx),a=e.createRawDateString(t,s),r=n.getDate(n.parseDate(a));if(e.utc||(r=n.getDate(n.parseDateWithTimezone(a))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===t.unit&&(o=l.year),"month"===t.unit&&(o=l.month),"day"===t.unit&&(o=l.day),"hour"===t.unit&&(o=l.hour),"minute"===t.unit&&(o=l.minute),"second"===t.unit&&(o=l.second),s=n.formatDate(r,o)}else s=n.formatDate(r,i.config.xaxis.labels.format);return{dateString:a,position:t.position,value:s,unit:t.unit,year:t.year,month:t.month}})}},{key:"removeOverlappingTS",value:function(t){var e,i=this,s=new Nu(this.ctx),n=!1;t.length>0&&t[0].value&&t.every(function(e){return e.value.length===t[0].value.length})&&(n=!0,e=s.getTextRects(t[0].value).width);var a=0,r=t.map(function(r,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=n?e:s.getTextRects(t[a].value).width,c=t[a].position;return r.position>c+l+10?(a=o,r):null}return r});return r.filter(function(t){return null!==t})}},{key:"_getYear",value:function(t,e,i){return t+Math.floor(e/12)+i}}]),t}(),ng=function(){function t(e,i){vc(this,t),this.ctx=i,this.w=i.w,this.el=e}return wc(t,[{key:"setupElements",value:function(){var t=this.w,e=t.globals,i=t.config,s=i.chart.type;e.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(s),e.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(s),e.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(s)&&i.plotOptions.bar.horizontal,e.chartClass=".apexcharts".concat(e.chartID),e.dom.baseEl=this.el,e.dom.elWrap=document.createElement("div"),Nu.setAttrs(e.dom.elWrap,{id:e.chartClass.substring(1),class:"apexcharts-canvas ".concat(e.chartClass.substring(1))}),this.el.appendChild(e.dom.elWrap),e.dom.Paper=window.SVG().addTo(e.dom.elWrap),e.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(i.chart.offsetX,", ").concat(i.chart.offsetY,")")}),e.dom.Paper.node.style.background="dark"!==i.theme.mode||i.chart.background?"light"!==i.theme.mode||i.chart.background?i.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),e.dom.elLegendForeign=document.createElementNS(e.SVGNS,"foreignObject"),Nu.setAttrs(e.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),e.dom.elLegendWrap=document.createElement("div"),e.dom.elLegendWrap.classList.add("apexcharts-legend"),e.dom.elWrap.appendChild(e.dom.elLegendWrap),e.dom.Paper.node.appendChild(e.dom.elLegendForeign),e.dom.elGraphical=e.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),e.dom.elDefs=e.dom.Paper.defs(),e.dom.Paper.add(e.dom.elGraphical),e.dom.elGraphical.add(e.dom.elDefs)}},{key:"plotChartType",value:function(t,e){var i=this.w,s=this.ctx,n=i.config,a=i.globals,r={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},o=n.chart.type||"line",l=null,c=0;a.series.forEach(function(e,s){var n="column"===t[s].type?"bar":t[s].type||("column"===o?"bar":o);r[n]?("rangeArea"===n?(r[n].series.push(a.seriesRangeStart[s]),r[n].seriesRangeEnd.push(a.seriesRangeEnd[s])):r[n].series.push(e),r[n].i.push(s),"bar"===n&&(i.globals.columnSeries=r.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(n)?l=n:console.warn("You have specified an unrecognized series type (".concat(n,").")),o!==n&&"scatter"!==n&&c++}),c>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),r.bar.series.length>0&&n.plotOptions.bar.horizontal&&(c-=r.bar.series.length,r.bar={series:[],i:[]},i.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),a.comboCharts||(a.comboCharts=c>0);var h=new tg(s,e),d=new Xp(s,e);s.pie=new $p(s);var u=new qp(s);s.rangeBar=new Zp(s,e);var p=new Up(s),g=[];if(a.comboCharts){var f,m,x=new Yu(s);if(r.area.series.length>0&&(f=g).push.apply(f,Bc(x.drawSeriesByGroup(r.area,a.areaGroups,"area",h))),r.bar.series.length>0)if(n.chart.stacked){var b=new Wp(s,e);g.push(b.draw(r.bar.series,r.bar.i))}else s.bar=new Yp(s,e),g.push(s.bar.draw(r.bar.series,r.bar.i));if(r.rangeArea.series.length>0&&g.push(h.draw(r.rangeArea.series,"rangeArea",r.rangeArea.i,r.rangeArea.seriesRangeEnd)),r.line.series.length>0&&(m=g).push.apply(m,Bc(x.drawSeriesByGroup(r.line,a.lineGroups,"line",h))),r.candlestick.series.length>0&&g.push(d.draw(r.candlestick.series,"candlestick",r.candlestick.i)),r.boxPlot.series.length>0&&g.push(d.draw(r.boxPlot.series,"boxPlot",r.boxPlot.i)),r.rangeBar.series.length>0&&g.push(s.rangeBar.draw(r.rangeBar.series,r.rangeBar.i)),r.scatter.series.length>0){var v=new tg(s,e,!0);g.push(v.draw(r.scatter.series,"scatter",r.scatter.i))}if(r.bubble.series.length>0){var y=new tg(s,e,!0);g.push(y.draw(r.bubble.series,"bubble",r.bubble.i))}}else switch(n.chart.type){case"line":g=h.draw(a.series,"line");break;case"area":g=h.draw(a.series,"area");break;case"bar":n.chart.stacked?g=new Wp(s,e).draw(a.series):(s.bar=new Yp(s,e),g=s.bar.draw(a.series));break;case"candlestick":g=new Xp(s,e).draw(a.series,"candlestick");break;case"boxPlot":g=new Xp(s,e).draw(a.series,n.chart.type);break;case"rangeBar":g=s.rangeBar.draw(a.series);break;case"rangeArea":g=h.draw(a.seriesRangeStart,"rangeArea",void 0,a.seriesRangeEnd);break;case"heatmap":g=new Vp(s,e).draw(a.series);break;case"treemap":g=new eg(s,e).draw(a.series);break;case"pie":case"donut":case"polarArea":g=s.pie.draw(a.series);break;case"radialBar":g=u.draw(a.series);break;case"radar":g=p.draw(a.series);break;default:g=h.draw(a.series)}return g}},{key:"setSVGDimensions",value:function(){var t=this.w,e=t.globals,i=t.config;i.chart.width=i.chart.width||"100%",i.chart.height=i.chart.height||"auto",e.svgWidth=i.chart.width,e.svgHeight=i.chart.height;var s=Dc.getDimensions(this.el),n=i.chart.width.toString().split(/[0-9]+/g).pop();"%"===n?Dc.isNumber(s[0])&&(0===s[0].width&&(s=Dc.getDimensions(this.el.parentNode)),e.svgWidth=s[0]*parseInt(i.chart.width,10)/100):"px"!==n&&""!==n||(e.svgWidth=parseInt(i.chart.width,10));var a=String(i.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==e.svgHeight&&""!==e.svgHeight)if("%"===a){var r=Dc.getDimensions(this.el.parentNode);e.svgHeight=r[1]*parseInt(i.chart.height,10)/100}else e.svgHeight=parseInt(i.chart.height,10);else e.svgHeight=e.axisCharts?e.svgWidth/1.61:e.svgWidth/1.2;if(e.svgWidth=Math.max(e.svgWidth,0),e.svgHeight=Math.max(e.svgHeight,0),Nu.setAttrs(e.dom.Paper.node,{width:e.svgWidth,height:e.svgHeight}),"%"!==a){var o=i.chart.sparkline.enabled?0:e.axisCharts?i.chart.parentHeightOffset:0;e.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(e.svgHeight+o,"px")}e.dom.elWrap.style.width="".concat(e.svgWidth,"px"),e.dom.elWrap.style.height="".concat(e.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var t=this.w.globals,e=t.translateY,i=t.translateX;Nu.setAttrs(t.dom.elGraphical.node,{transform:"translate(".concat(i,", ").concat(e,")")})}},{key:"resizeNonAxisCharts",value:function(){var t=this.w,e=t.globals,i=0,s=t.config.chart.sparkline.enabled?1:15;s+=t.config.grid.padding.bottom,["top","bottom"].includes(t.config.legend.position)&&t.config.legend.show&&!t.config.legend.floating&&(i=new Tp(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var n=t.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*t.globals.radialSize;if(n&&!t.config.chart.sparkline.enabled&&0!==t.config.plotOptions.radialBar.startAngle){var r=Dc.getBoundingClientRect(n);a=r.bottom;var o=r.bottom-r.top;a=Math.max(2.05*t.globals.radialSize,o)}var l=Math.ceil(a+e.translateY+i+s);e.dom.elLegendForeign&&e.dom.elLegendForeign.setAttribute("height",l),t.config.chart.height&&String(t.config.chart.height).includes("%")||(e.dom.elWrap.style.height="".concat(l,"px"),Nu.setAttrs(e.dom.Paper.node,{height:l}),e.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new gp(this.ctx).init()}},{key:"resetGlobals",value:function(){var t=this,e=function(){return t.w.config.series.map(function(){return[]})},i=new ip,s=this.w.globals;i.initGlobalVars(s),s.seriesXvalues=e(),s.seriesYvalues=e()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var t=this.w,e=null;if(t.globals.axisCharts){if("back"===t.config.xaxis.crosshairs.position&&new vp(this.ctx).drawXCrosshairs(),"back"===t.config.yaxis[0].crosshairs.position&&new vp(this.ctx).drawYCrosshairs(),"datetime"===t.config.xaxis.type&&void 0===t.config.xaxis.labels.formatter){this.ctx.timeScale=new sg(this.ctx);var i=[];isFinite(t.globals.minX)&&isFinite(t.globals.maxX)&&!t.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minX,t.globals.maxX):t.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(t.globals.minY,t.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}e=new Yu(this.ctx).getCalculatedRatios()}return e}},{key:"updateSourceChart",value:function(t){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:t.w.globals.minX,max:t.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var t=this,e=this.ctx,i=this.w;if(i.config.chart.brush.enabled&&"function"!=typeof i.config.chart.events.selection){var s=Array.isArray(i.config.chart.brush.targets)?i.config.chart.brush.targets:[i.config.chart.brush.target];s.forEach(function(i){var s=e.constructor.getChartByID(i);s.w.globals.brushSource=t.ctx,"function"!=typeof s.w.config.chart.events.zoomed&&(s.w.config.chart.events.zoomed=function(){return t.updateSourceChart(s)}),"function"!=typeof s.w.config.chart.events.scrolled&&(s.w.config.chart.events.scrolled=function(){return t.updateSourceChart(s)})}),i.config.chart.events.selection=function(t,i){s.forEach(function(t){e.constructor.getChartByID(t).ctx.updateHelpers._updateOptions({xaxis:{min:i.xaxis.min,max:i.xaxis.max}},!1,!1,!1,!1)})}}}}]),t}(),ag=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"_updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(r){var o=[e.ctx];n&&(o=e.ctx.getSyncedCharts()),e.ctx.w.globals.isExecCalled&&(o=[e.ctx],e.ctx.w.globals.isExecCalled=!1),o.forEach(function(n,l){var c=n.w;if(c.globals.shouldAnimate=s,i||(c.globals.resized=!0,c.globals.dataChanged=!0,s&&n.series.getPreviousPaths()),t&&"object"===Ic(t)&&(n.config=new ep(t),t=Yu.extendArrayProps(n.config,t,c),n.w.globals.chartID!==e.ctx.w.globals.chartID&&delete t.series,c.config=Dc.extend(c.config,t),a&&(c.globals.lastXAxis=t.xaxis?Dc.clone(t.xaxis):[],c.globals.lastYAxis=t.yaxis?Dc.clone(t.yaxis):[],c.globals.initialConfig=Dc.extend({},c.config),c.globals.initialSeries=Dc.clone(c.config.series),t.series))){for(var h=0;h<c.globals.collapsedSeriesIndices.length;h++){var d=c.config.series[c.globals.collapsedSeriesIndices[h]];c.globals.collapsedSeries[h].data=c.globals.axisCharts?d.data.slice():d}for(var u=0;u<c.globals.ancillaryCollapsedSeriesIndices.length;u++){var p=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[u]];c.globals.ancillaryCollapsedSeries[u].data=c.globals.axisCharts?p.data.slice():p}n.series.emptyCollapsedSeries(c.config.series)}return n.update(t).then(function(){l===o.length-1&&r(n)})})})}},{key:"_updateSeries",value:function(t,e){var i=this,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(n){var a,r=i.w;return r.globals.shouldAnimate=e,r.globals.dataChanged=!0,e&&i.ctx.series.getPreviousPaths(),r.globals.axisCharts?(0===(a=t.map(function(t,e){return i._extendSeries(t,e)})).length&&(a=[{data:[]}]),r.config.series=a):r.config.series=t.slice(),s&&(r.globals.initialConfig.series=Dc.clone(r.config.series),r.globals.initialSeries=Dc.clone(r.config.series)),i.ctx.update().then(function(){n(i.ctx)})})}},{key:"_extendSeries",value:function(t,e){var i=this.w,s=i.config.series[e];return Tc(Tc({},i.config.series[e]),{},{name:t.name?t.name:null==s?void 0:s.name,color:t.color?t.color:null==s?void 0:s.color,type:t.type?t.type:null==s?void 0:s.type,group:t.group?t.group:null==s?void 0:s.group,hidden:void 0!==t.hidden?t.hidden:null==s?void 0:s.hidden,data:t.data?t.data:null==s?void 0:s.data,zIndex:void 0!==t.zIndex?t.zIndex:e})}},{key:"toggleDataPointSelection",value:function(t,e){var i=this.w,s=null,n=".apexcharts-series[data\\:realIndex='".concat(t,"']");return i.globals.axisCharts?s=i.globals.dom.Paper.findOne("".concat(n," path[j='").concat(e,"'], ").concat(n," circle[j='").concat(e,"'], ").concat(n," rect[j='").concat(e,"']")):void 0===e&&(s=i.globals.dom.Paper.findOne("".concat(n," path[j='").concat(t,"']")),"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(t)),s?(new Nu(this.ctx).pathMouseDown(s,null),s.node?s.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(t){var e=this.w;if(["min","max"].forEach(function(i){void 0!==t.xaxis[i]&&(e.config.xaxis[i]=t.xaxis[i],e.globals.lastXAxis[i]=t.xaxis[i])}),t.xaxis.categories&&t.xaxis.categories.length&&(e.config.xaxis.categories=t.xaxis.categories),e.config.xaxis.convertedCatToNumeric){var i=new tp(t);t=i.convertCatToNumericXaxis(t,this.ctx)}return t}},{key:"forceYAxisUpdate",value:function(t){return t.chart&&t.chart.stacked&&"100%"===t.chart.stackType&&(Array.isArray(t.yaxis)?t.yaxis.forEach(function(e,i){t.yaxis[i].min=0,t.yaxis[i].max=100}):(t.yaxis.min=0,t.yaxis.max=100)),t}},{key:"revertDefaultAxisMinMax",value:function(t){var e=this,i=this.w,s=i.globals.lastXAxis,n=i.globals.lastYAxis;t&&t.xaxis&&(s=t.xaxis),t&&t.yaxis&&(n=t.yaxis),i.config.xaxis.min=s.min,i.config.xaxis.max=s.max,i.config.yaxis.map(function(t,s){i.globals.zoomed||void 0!==n[s]?function(t){void 0!==n[t]&&(i.config.yaxis[t].min=n[t].min,i.config.yaxis[t].max=n[t].max)}(s):void 0!==e.ctx.opts.yaxis[s]&&(t.min=e.ctx.opts.yaxis[s].min,t.max=e.ctx.opts.yaxis[s].max)})}}]),t}();!function(){function t(){for(var t=arguments.length>0&&arguments[0]!==c?arguments[0]:[],n=arguments.length>1?arguments[1]:c,a=arguments.length>2?arguments[2]:c,r=arguments.length>3?arguments[3]:c,o=arguments.length>4?arguments[4]:c,l=arguments.length>5?arguments[5]:c,c=arguments.length>6?arguments[6]:c,h=t.slice(n,a||c),d=r.slice(o,l||c),u=0,p={pos:[0,0],start:[0,0]},g={pos:[0,0],start:[0,0]};h[u]=e.call(p,h[u]),d[u]=e.call(g,d[u]),h[u][0]!=d[u][0]||"M"==h[u][0]||"A"==h[u][0]&&(h[u][4]!=d[u][4]||h[u][5]!=d[u][5])?(Array.prototype.splice.apply(h,[u,1].concat(s.call(p,h[u]))),Array.prototype.splice.apply(d,[u,1].concat(s.call(g,d[u])))):(h[u]=i.call(p,h[u]),d[u]=i.call(g,d[u])),++u!=h.length||u!=d.length;)u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]),u==d.length&&d.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]);return{start:h,dest:d}}function e(t){switch(t[0]){case"z":case"Z":t[0]="L",t[1]=this.start[0],t[2]=this.start[1];break;case"H":t[0]="L",t[2]=this.pos[1];break;case"V":t[0]="L",t[2]=t[1],t[1]=this.pos[0];break;case"T":t[0]="Q",t[3]=t[1],t[4]=t[2],t[1]=this.reflection[1],t[2]=this.reflection[0];break;case"S":t[0]="C",t[6]=t[4],t[5]=t[3],t[4]=t[2],t[3]=t[1],t[2]=this.reflection[1],t[1]=this.reflection[0]}return t}function i(t){var e=t.length;return this.pos=[t[e-2],t[e-1]],-1!="SCQT".indexOf(t[0])&&(this.reflection=[2*this.pos[0]-t[e-4],2*this.pos[1]-t[e-3]]),t}function s(t){var e=[t];switch(t[0]){case"M":return this.pos=this.start=[t[1],t[2]],e;case"L":t[5]=t[3]=t[1],t[6]=t[4]=t[2],t[1]=this.pos[0],t[2]=this.pos[1];break;case"Q":t[6]=t[4],t[5]=t[3],t[4]=1*t[4]/3+2*t[2]/3,t[3]=1*t[3]/3+2*t[1]/3,t[2]=1*this.pos[1]/3+2*t[2]/3,t[1]=1*this.pos[0]/3+2*t[1]/3;break;case"A":e=function(t,e){var i,s,n,a,r,o,l,c,h,d,u,p,g,f,m,x,b,v,y,w,A,k,C,_,E,S,M=Math.abs(e[1]),T=Math.abs(e[2]),L=e[3]%360,P=e[4],B=e[5],O=e[6],I=e[7],z=new Oh(t),D=new Oh(O,I),F=[];if(0===M||0===T||z.x===D.x&&z.y===D.y)return[["C",z.x,z.y,D.x,D.y,D.x,D.y]];for((s=(i=new Oh((z.x-D.x)/2,(z.y-D.y)/2).transform((new zh).rotate(L))).x*i.x/(M*M)+i.y*i.y/(T*T))>1&&(M*=s=Math.sqrt(s),T*=s),n=(new zh).rotate(L).scale(1/M,1/T).rotate(-L),z=z.transform(n),o=(a=[(D=D.transform(n)).x-z.x,D.y-z.y])[0]*a[0]+a[1]*a[1],r=Math.sqrt(o),a[0]/=r,a[1]/=r,l=o<4?Math.sqrt(1-o/4):0,P===B&&(l*=-1),c=new Oh((D.x+z.x)/2+l*-a[1],(D.y+z.y)/2+l*a[0]),h=new Oh(z.x-c.x,z.y-c.y),d=new Oh(D.x-c.x,D.y-c.y),u=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(u*=-1),p=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(p*=-1),B&&u>p&&(p+=2*Math.PI),!B&&u<p&&(p-=2*Math.PI),x=[],b=u,g=(p-u)/(f=Math.ceil(2*Math.abs(u-p)/Math.PI)),m=4*Math.tan(g/4)/3,A=0;A<=f;A++)y=Math.cos(b),v=Math.sin(b),w=new Oh(c.x+y,c.y+v),x[A]=[new Oh(w.x+m*v,w.y-m*y),w,new Oh(w.x-m*v,w.y+m*y)],b+=g;for(x[0][0]=x[0][1].clone(),x[x.length-1][2]=x[x.length-1][1].clone(),n=(new zh).rotate(L).scale(M,T).rotate(-L),A=0,k=x.length;A<k;A++)x[A][0]=x[A][0].transform(n),x[A][1]=x[A][1].transform(n),x[A][2]=x[A][2].transform(n);for(A=1,k=x.length;A<k;A++)C=(w=x[A-1][2]).x,_=w.y,E=(w=x[A][0]).x,S=w.y,O=(w=x[A][1]).x,I=w.y,F.push(["C",C,_,E,S,O,I]);return F}(this.pos,t),t=e[0]}return t[0]="C",this.pos=[t[5],t[6]],this.reflection=[2*t[5]-t[3],2*t[6]-t[4]],e}function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0;if(!1===e)return!1;for(var i=e,s=t.length;i<s;++i)if("M"==t[i][0])return i;return!1}gh($d,{morph:function(e,i,s,a,r){for(var o=this.parse(e),l=this.parse(i),c=0,h=0,d=!1,u=!1;!1!==c||!1!==h;){var p;d=n(o,!1!==c&&c+1),u=n(l,!1!==h&&h+1),!1===c&&(c=0==(p=new $d(g.start).bbox()).height||0==p.width?o.push(o[0])-1:o.push(["M",p.x+p.width/2,p.y+p.height/2])-1),!1===h&&(h=0==(p=new $d(g.dest).bbox()).height||0==p.width?l.push(l[0])-1:l.push(["M",p.x+p.width/2,p.y+p.height/2])-1);var g=t(o,c,d,l,h,u);o=o.slice(0,c).concat(g.start,!1===d?[]:o.slice(d)),l=l.slice(0,h).concat(g.dest,!1===u?[]:l.slice(u)),c=!1!==d&&c+g.start.length,h=!1!==u&&h+g.dest.length}this._array=o,this.destination=new $d,this.destination._array=l;var f=this.fromArray(o.map(function(t,e){var i=l[e].map(function(i,n){return 0===n?i:a.step(t[n],l[e][n],s,r[e],r)});return i}));return f}})}();const rg=t=>(t.changedTouches&&(t=t.changedTouches[0]),{x:t.clientX,y:t.clientY});class og{constructor(t){t.remember("_draggable",this),this.el=t,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(t){t?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(t){const e=!t.type.indexOf("mouse");if(e&&1!==t.which&&0!==t.buttons)return;if(this.el.dispatch("beforedrag",{event:t,handler:this}).defaultPrevented)return;t.preventDefault(),t.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(rg(t));const i=(e?"mouseup":"touchend")+".drag";$h(window,(e?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),$h(window,i,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:t,handler:this,box:this.box})}drag(t){const{box:e,lastClick:i}=this,s=this.el.point(rg(t)),n=s.x-i.x,a=s.y-i.y;if(!n&&!a)return e;const r=e.x+n,o=e.y+a;this.box=new Rh(r,o,e.w,e.h),this.lastClick=s,this.el.dispatch("dragmove",{event:t,handler:this,box:this.box}).defaultPrevented||this.move(r,o)}move(t,e){"svg"===this.el.type?Eu.prototype.move.call(this.el,t,e):this.el.move(t,e)}endDrag(t){this.drag(t),this.el.fire("dragend",{event:t,handler:this,box:this.box}),Uh(window,"mousemove.drag"),Uh(window,"touchmove.drag"),Uh(window,"mouseup.drag"),Uh(window,"touchend.drag"),this.init(!0)}}function lg(t,e,i,s=null){return function(n){n.preventDefault(),n.stopPropagation();var a=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;e.fire(t,{x:a,y:r,event:n,index:s,points:i})}}function cg([t,e],{a:i,b:s,c:n,d:a,e:r,f:o}){return[t*i+e*n+r,t*s+e*a+o]}gh(sd,{draggable(t=!0){return(this.remember("_draggable")||new og(this)).init(t),this}});let hg=class{constructor(t){this.el=t,t.remember("_selectHandler",this),this.selection=new Eu,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=eh();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.createRot=t.createRot||this.createRotFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.updateRot=t.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((t,e,i)=>{const s=this.order[e];this.createHandle.call(this,this.selection,t,e,i,s),this.selection.get(e+1).addClass("svg_select_handle svg_select_handle_"+s).on("mousedown.selection touchstart.selection",lg(s,this.el,this.handlePoints,e))})}createHandleFn(t){t.polyline()}updateHandleFn(t,e,i,s){const n=s.at(i-1),a=s[(i+1)%s.length],r=e,o=[r[0]-n[0],r[1]-n[1]],l=[r[0]-a[0],r[1]-a[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),h=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=[o[0]/c,o[1]/c],u=[l[0]/h,l[1]/h],p=[r[0]-10*d[0],r[1]-10*d[1]],g=[r[0]-10*u[0],r[1]-10*u[1]];t.plot([p,r,g])}updateResizeHandles(){this.handlePoints.forEach((t,e,i)=>{const s=this.order[e];this.updateHandle.call(this,this.selection.get(e+1),t,e,i,s)})}createRotFn(t){t.line(),t.circle(5)}getPoint(t){return this.handlePoints[this.order.indexOf(t)]}getPointHandle(t){return this.selection.get(this.order.indexOf(t)+1)}updateRotFn(t,e){const i=this.getPoint("t");t.get(0).plot(i[0],i[1],e[0],e[1]),t.get(1).center(e[0],e[1])}createRotationHandle(){const t=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",lg("rot",this.el,this.handlePoints));this.createRot.call(this,t)}updateRotationHandle(){const t=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(t,this.rotationPoint,this.handlePoints)}updatePoints(){const t=this.el.bbox(),e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(t).map(t=>cg(t,e)),this.rotationPoint=cg(this.getRotationPoint(t),e)}getHandlePoints({x:t,x2:e,y:i,y2:s,cx:n,cy:a}=this.el.bbox()){return[[t,i],[n,i],[e,i],[e,a],[e,s],[n,s],[t,s],[t,a]]}getRotationPoint({y:t,cx:e}=this.el.bbox()){return[e,t-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const dg=t=>function(e=!0,i={}){"object"==typeof e&&(i=e,e=!0);let s=this.remember("_"+t.name);return s||(e.prototype instanceof hg?(s=new e(this),e=!0):s=new t(this),this.remember("_"+t.name,s)),s.active(e,i),this};function ug(t,e,i,s=null){return function(n){n.preventDefault(),n.stopPropagation();var a=n.pageX||n.touches[0].pageX,r=n.pageY||n.touches[0].pageY;e.fire(t,{x:a,y:r,event:n,index:s,points:i})}}function pg([t,e],{a:i,b:s,c:n,d:a,e:r,f:o}){return[t*i+e*n+r,t*s+e*a+o]}gh(sd,{select:dg(hg)}),gh([su,nu,Td],{pointSelect:dg(class{constructor(t){this.el=t,t.remember("_pointSelectHandler",this),this.selection=new Eu,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=eh();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((t,e,i)=>{this.createHandle.call(this,this.selection,t,e,i),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",lg("point",this.el,this.points,e))})}createHandleFn(t){t.circle(5)}updateHandleFn(t,e){t.center(e[0],e[1])}updatePointHandles(){this.points.forEach((t,e,i)=>{this.updateHandle.call(this,this.selection.get(e+1),t,e,i)})}updatePoints(){const t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>cg(e,t))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class gg{constructor(t){this.el=t,t.remember("_selectHandler",this),this.selection=new Eu,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=eh();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.createRot=t.createRot||this.createRotFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.updateRot=t.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((t,e,i)=>{const s=this.order[e];this.createHandle.call(this,this.selection,t,e,i,s),this.selection.get(e+1).addClass("svg_select_handle svg_select_handle_"+s).on("mousedown.selection touchstart.selection",ug(s,this.el,this.handlePoints,e))})}createHandleFn(t){t.polyline()}updateHandleFn(t,e,i,s){const n=s.at(i-1),a=s[(i+1)%s.length],r=e,o=[r[0]-n[0],r[1]-n[1]],l=[r[0]-a[0],r[1]-a[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),h=Math.sqrt(l[0]*l[0]+l[1]*l[1]),d=[o[0]/c,o[1]/c],u=[l[0]/h,l[1]/h],p=[r[0]-10*d[0],r[1]-10*d[1]],g=[r[0]-10*u[0],r[1]-10*u[1]];t.plot([p,r,g])}updateResizeHandles(){this.handlePoints.forEach((t,e,i)=>{const s=this.order[e];this.updateHandle.call(this,this.selection.get(e+1),t,e,i,s)})}createRotFn(t){t.line(),t.circle(5)}getPoint(t){return this.handlePoints[this.order.indexOf(t)]}getPointHandle(t){return this.selection.get(this.order.indexOf(t)+1)}updateRotFn(t,e){const i=this.getPoint("t");t.get(0).plot(i[0],i[1],e[0],e[1]),t.get(1).center(e[0],e[1])}createRotationHandle(){const t=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",ug("rot",this.el,this.handlePoints));this.createRot.call(this,t)}updateRotationHandle(){const t=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(t,this.rotationPoint,this.handlePoints)}updatePoints(){const t=this.el.bbox(),e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(t).map(t=>pg(t,e)),this.rotationPoint=pg(this.getRotationPoint(t),e)}getHandlePoints({x:t,x2:e,y:i,y2:s,cx:n,cy:a}=this.el.bbox()){return[[t,i],[n,i],[e,i],[e,a],[e,s],[n,s],[t,s],[t,a]]}getRotationPoint({y:t,cx:e}=this.el.bbox()){return[e,t-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const fg=t=>function(e=!0,i={}){"object"==typeof e&&(i=e,e=!0);let s=this.remember("_"+t.name);return s||(e.prototype instanceof gg?(s=new e(this),e=!0):s=new t(this),this.remember("_"+t.name,s)),s.active(e,i),this};gh(sd,{select:fg(gg)}),gh([su,nu,Td],{pointSelect:fg(class{constructor(t){this.el=t,t.remember("_pointSelectHandler",this),this.selection=new Eu,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const e=eh();this.observer=new e.MutationObserver(this.mutationHandler)}init(t){this.createHandle=t.createHandle||this.createHandleFn,this.updateHandle=t.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(t,e){if(!t)return this.selection.clear().remove(),void this.observer.disconnect();this.init(e)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((t,e,i)=>{this.createHandle.call(this,this.selection,t,e,i),this.selection.get(e+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",ug("point",this.el,this.points,e))})}createHandleFn(t){t.circle(5)}updateHandleFn(t,e){t.center(e[0],e[1])}updatePointHandles(){this.points.forEach((t,e,i)=>{this.updateHandle.call(this,this.selection.get(e+1),t,e,i)})}updatePoints(){const t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(e=>pg(e,t))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const mg=t=>(t.changedTouches&&(t=t.changedTouches[0]),{x:t.clientX,y:t.clientY}),xg=t=>{let e=1/0,i=1/0,s=-1/0,n=-1/0;for(let a=0;a<t.length;a++){const r=t[a];e=Math.min(e,r[0]),i=Math.min(i,r[1]),s=Math.max(s,r[0]),n=Math.max(n,r[1])}return new Rh(e,i,s-e,n-i)};class bg{constructor(t){this.el=t,t.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(t,e){this.preserveAspectRatio=e.preserveAspectRatio??!1,this.aroundCenter=e.aroundCenter??!1,this.grid=e.grid??0,this.degree=e.degree??0,this.el.off(".resize"),t&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&("rot"===this.eventType?this.rotate(this.lastEvent):"point"===this.eventType?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(t){this.eventType=t.type;const{event:e,index:i,points:s}=t.detail,n=!e.type.indexOf("mouse");if(n&&1!==(e.which||e.buttons))return;if(this.el.dispatch("beforeresize",{event:t,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(mg(e)),this.index=i,this.points=s.slice();const a=(n?"mousemove":"touchmove")+".resize",r=(n?"mouseup":"touchcancel.resize touchend")+".resize";"point"===t.type?$h(window,a,this.movePoint):"rot"===t.type?$h(window,a,this.rotate):$h(window,a,this.resize),$h(window,r,this.endResize)}resize(t){this.lastEvent=t;const e=this.snapToGrid(this.el.point(mg(t)));let i=e.x-this.startPoint.x,s=e.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(i*=2,s*=2);const n=this.box.x+i,a=this.box.y+s,r=this.box.x2+i,o=this.box.y2+s;let l=new Rh(this.box);if(this.eventType.includes("l")&&(l.x=Math.min(n,this.box.x2),l.x2=Math.max(n,this.box.x2)),this.eventType.includes("r")&&(l.x=Math.min(r,this.box.x),l.x2=Math.max(r,this.box.x)),this.eventType.includes("t")&&(l.y=Math.min(a,this.box.y2),l.y2=Math.max(a,this.box.y2)),this.eventType.includes("b")&&(l.y=Math.min(o,this.box.y),l.y2=Math.max(o,this.box.y)),l.width=l.x2-l.x,l.height=l.y2-l.y,this.preserveAspectRatio){const t=l.width/this.box.width,e=l.height/this.box.height,i=["lt","t","rt","r","rb","b","lb","l"],s=(i.indexOf(this.eventType)+4)%i.length,n=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[s];let a=this.eventType.includes("t")||this.eventType.includes("b")?e:t;a=2===this.eventType.length?Math.max(t,e):a,l=function(t,e,i){const s=[[t.x,t.y],[t.x+t.width,t.y],[t.x+t.width,t.y+t.height],[t.x,t.y+t.height]].map(([t,s])=>{const n=t-e[0],a=(s-e[1])*i;return[n*i+e[0],a+e[1]]});return xg(s)}(this.box,n,a)}this.el.dispatch("resize",{box:new Rh(l),angle:0,eventType:this.eventType,event:t,handler:this}).defaultPrevented||this.el.size(l.width,l.height).move(l.x,l.y)}movePoint(t){this.lastEvent=t;const{x:e,y:i}=this.snapToGrid(this.el.point(mg(t))),s=this.el.array().slice();s[this.index]=[e,i],this.el.dispatch("resize",{box:xg(s),angle:0,eventType:this.eventType,event:t,handler:this}).defaultPrevented||this.el.plot(s)}rotate(t){this.lastEvent=t;const e=this.startPoint,i=this.el.point(mg(t)),{cx:s,cy:n}=this.box,a=e.x-s,r=e.y-n,o=i.x-s,l=i.y-n,c=Math.sqrt(a*a+r*r)*Math.sqrt(o*o+l*l);if(0===c)return;let h=Math.acos((a*o+r*l)/c)/Math.PI*180;if(!h)return;i.x<e.x&&(h=-h);const d=new zh(this.el),{x:u,y:p}=new Oh(s,n).transformO(d),{rotate:g}=d.decompose(),f=this.snapToAngle(g+h)-g;this.el.dispatch("resize",{box:this.box,angle:f,eventType:this.eventType,event:t,handler:this}).defaultPrevented||this.el.transform(d.rotateO(f,u,p))}endResize(t){"rot"!==this.eventType&&"point"!==this.eventType&&this.resize(t),this.lastEvent=null,this.eventType="",Uh(window,"mousemove.resize touchmove.resize"),Uh(window,"mouseup.resize touchend.resize")}snapToGrid(t){return this.grid&&(t.x=Math.round(t.x/this.grid)*this.grid,t.y=Math.round(t.y/this.grid)*this.grid),t}snapToAngle(t){return this.degree&&(t=Math.round(t/this.degree)*this.degree),t}}gh(sd,{resize:function(t=!0,e={}){"object"==typeof t&&(e=t,t=!0);let i=this.remember("_ResizeHandler");return i||(t.prototype instanceof bg?(i=new t(this),t=!0):i=new bg(this),this.remember("_resizeHandler",i)),i.active(t,e),this}}),void 0===window.SVG&&(window.SVG=Ou),void 0===window.Apex&&(window.Apex={});var vg=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new Fc(this.ctx),this.ctx.axes=new bp(this.ctx),this.ctx.core=new ng(this.ctx.el,this.ctx),this.ctx.config=new ep({}),this.ctx.data=new cp(this.ctx),this.ctx.grid=new up(this.ctx),this.ctx.graphics=new Nu(this.ctx),this.ctx.coreUtils=new Yu(this.ctx),this.ctx.crosshairs=new vp(this.ctx),this.ctx.events=new mp(this.ctx),this.ctx.exports=new hp(this.ctx),this.ctx.fill=new np(this.ctx),this.ctx.localization=new xp(this.ctx),this.ctx.options=new Zu,this.ctx.responsive=new yp(this.ctx),this.ctx.series=new lp(this.ctx),this.ctx.theme=new wp(this.ctx),this.ctx.formatters=new Vu(this.ctx),this.ctx.titleSubtitle=new Ap(this.ctx),this.ctx.legend=new Tp(this.ctx),this.ctx.toolbar=new Lp(this.ctx),this.ctx.tooltip=new Rp(this.ctx),this.ctx.dimensions=new Sp(this.ctx),this.ctx.updateHelpers=new ag(this.ctx),this.ctx.zoomPanSelection=new Pp(this.ctx),this.ctx.w.globals.tooltip=new Rp(this.ctx)}}]),t}(),yg=function(){function t(e){vc(this,t),this.ctx=e,this.w=e.w}return wc(t,[{key:"clear",value:function(t){var e=t.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:e})}},{key:"killSVG",value:function(t){t.each(function(){this.removeClass("*"),this.off()},!0),t.clear()}},{key:"clearDomElements",value:function(t){var e=this,i=t.isUpdating,s=this.w.globals.dom.Paper.node;s.parentNode&&s.parentNode.parentNode&&!i&&(s.parentNode.parentNode.style.minHeight="unset");var n=this.w.globals.dom.baseEl;n&&this.ctx.eventList.forEach(function(t){n.removeEventListener(t,e.ctx.events.documentEvent)});var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elLegendWrap=null,a.elLegendForeign=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectBarMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),t}(),wg=new WeakMap,Ag=function(){function t(e,i){vc(this,t),this.opts=i,this.ctx=this,this.w=new sp(i).init(),this.el=e,this.w.globals.cuid=Dc.randomId(),this.w.globals.chartID=this.w.config.chart.id?Dc.escapeString(this.w.config.chart.id):this.w.globals.cuid,new vg(this).initModules(),this.lastUpdateOptions=null,this.create=Dc.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return wc(t,[{key:"render",value:function(){var t=this;return new Promise(function(e,i){if(Dc.elementExists(t.el)){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),t.w.config.chart.id&&Apex._chartInstances.push({id:t.w.globals.chartID,group:t.w.config.chart.group,chart:t}),t.setLocale(t.w.config.chart.defaultLocale);var s=t.w.config.chart.events.beforeMount;"function"==typeof s&&s(t,t.w),t.events.fireEvent("beforeMount",[t,t.w]),window.addEventListener("resize",t.windowResizeHandler),function(t,e){var i=!1;if(t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var s=t.getBoundingClientRect();"none"!==t.style.display&&0!==s.width||(i=!0)}var n=new ResizeObserver(function(s){i&&e.call(t,s),i=!0});t.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(t.children).forEach(function(t){return n.observe(t)}):n.observe(t),wg.set(e,n)}(t.el.parentNode,t.parentResizeHandler);var n=t.el.getRootNode&&t.el.getRootNode(),a=Dc.is("ShadowRoot",n),r=t.el.ownerDocument,o=a?n.getElementById("apexcharts-css"):r.getElementById("apexcharts-css");if(!o){var l;(o=document.createElement("style")).id="apexcharts-css",o.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n display: inline-block;\n position: relative;\n width: 16px;\n height: 16px;\n font-size: 16px;\n line-height: 16px;\n margin-right: 4px;\n text-align: center;\n vertical-align: middle;\n color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n content: "";\n display: inline-block;\n width: 100%;\n text-align: center;\n color: currentcolor;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n font-size: 26px;\n font-family: Arial, Helvetica, sans-serif;\n line-height: 14px;\n font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n content: "\\25A0";\n transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n content: "\\25C6";\n font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n content: "\\25B2";\n font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n content: "\\2715";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n content: "\\2715";\n transform: rotate(45deg) translate(-1px, -1px);\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n content: "\\2605";\n font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n content: "\\2726";\n font-size: 20px;\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_shape {\n stroke-width: 1;\n stroke-dasharray: 10 10;\n stroke: black;\n stroke-opacity: 0.1;\n pointer-events: none;\n fill: none;\n}\n\n.svg_select_handle {\n stroke-width: 3;\n stroke: black;\n fill: none;\n}\n\n.svg_select_handle_r {\n cursor: e-resize;\n}\n\n.svg_select_handle_l {\n cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n pointer-events: none;\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n transition: none !important;\n}';var c=(null===(l=t.opts.chart)||void 0===l?void 0:l.nonce)||t.w.config.chart.nonce;c&&o.setAttribute("nonce",c),a?n.prepend(o):r.head.appendChild(o)}var h=t.create(t.w.config.series,{});if(!h)return e(t);t.mount(h).then(function(){"function"==typeof t.w.config.chart.events.mounted&&t.w.config.chart.events.mounted(t,t.w),t.events.fireEvent("mounted",[t,t.w]),e(h)}).catch(function(t){i(t)})}else i(new Error("Element not found"))})}},{key:"create",value:function(t,e){var i=this,s=this.w;new vg(this).initModules();var n=this.w.globals;if(n.noData=!1,n.animationEnded=!1,!Dc.elementExists(this.el))return n.animationEnded=!0,null;if(this.responsive.checkResponsiveConfig(e),s.config.xaxis.convertedCatToNumeric&&new tp(s.config).convertCatToNumericXaxis(s.config,this.ctx),this.core.setupElements(),"treemap"===s.config.chart.type&&(s.config.grid.show=!1,s.config.yaxis[0].show=!1),0===n.svgWidth)return n.animationEnded=!0,null;var a=t;t.forEach(function(t,e){t.hidden&&(a=i.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:e}))});var r=Yu.checkComboSeries(a,s.config.chart.type);n.comboCharts=r.comboCharts,n.comboBarCount=r.comboBarCount;var o=a.every(function(t){return t.data&&0===t.data.length});(0===a.length||o&&n.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(a),this.theme.init(),new ap(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),n.noData&&n.collapsedSeries.length!==n.series.length&&!s.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),n.axisCharts&&(this.core.coreCalculations(),"category"!==s.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=s.globals.minX,this.ctx.toolbar.maxX=s.globals.maxX),this.formatters.heatmapLabelFormatters(),new Yu(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var c=this.core.plotChartType(a,l),h=new op(this);return h.bringForward(),s.config.dataLabels.background.enabled&&h.dataLabelsBackground(),this.core.shiftGraphPosition(),s.globals.dataPoints>50&&s.globals.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:c,xyRatios:l,dimensions:{plot:{left:s.globals.translateX,top:s.globals.translateY,width:s.globals.gridWidth,height:s.globals.gridHeight}}}}},{key:"mount",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,s=i.w;return new Promise(function(n,a){if(null===i.el)return a(new Error("Not enough data to display or target element not found"));(null===e||s.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new up(i);var r,o,l=i.grid.drawGrid();if(i.annotations=new Qu(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===s.config.grid.position&&(l&&s.globals.dom.elGraphical.add(l.el),null!=l&&null!==(r=l.elGridBorders)&&void 0!==r&&r.node&&s.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(e.elGraph))for(var c=0;c<e.elGraph.length;c++)s.globals.dom.elGraphical.add(e.elGraph[c]);else s.globals.dom.elGraphical.add(e.elGraph);"front"===s.config.grid.position&&(l&&s.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&s.globals.dom.elGraphical.add(l.elGridBorders)),"front"===s.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===s.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==s.config.chart.type&&i.axes.drawAxis(s.config.chart.type,l);var h=new dp(t.ctx,l),d=new fp(t.ctx,l);if(null!==l&&(h.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),s.config.yaxis.map(function(t,e){-1===s.globals.ignoreYAxisIndexes.indexOf(e)&&d.yAxisTitleRotate(e,t.opposite)})),i.annotations.drawAxesAnnotations(),!s.globals.noData){if(s.config.tooltip.enabled&&!s.globals.noData&&i.w.globals.tooltip.drawTooltip(e.xyRatios),s.globals.axisCharts&&(s.globals.isXNumeric||s.config.xaxis.convertedCatToNumeric||s.globals.isRangeBar))(s.config.chart.zoom.enabled||s.config.chart.selection&&s.config.chart.selection.enabled||s.config.chart.pan&&s.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:e.xyRatios});else{var u=s.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(t){u[t]=!1})}s.config.chart.toolbar.show&&!s.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}s.globals.memory.methodsToExec.length>0&&s.globals.memory.methodsToExec.forEach(function(t){t.method(t.params,!1,t.context)}),s.globals.axisCharts||s.globals.noData||i.core.resizeNonAxisCharts(),n(i)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(t,e){var i=wg.get(e);i&&(i.disconnect(),wg.delete(e))}(this.el.parentNode,this.parentResizeHandler);var t=this.w.config.chart.id;t&&Apex._chartInstances.forEach(function(e,i){e.id===Dc.escapeString(t)&&Apex._chartInstances.splice(i,1)}),new yg(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],r=this.w;return r.globals.selection=void 0,this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(t)?this:(this.lastUpdateOptions=Dc.clone(t),t.series&&(this.series.resetSeries(!1,!0,!1),t.series.length&&t.series[0].data&&(t.series=t.series.map(function(t,i){return e.updateHelpers._extendSeries(t,i)})),this.updateHelpers.revertDefaultAxisMinMax()),t.xaxis&&(t=this.updateHelpers.forceXAxisUpdate(t)),t.yaxis&&(t=this.updateHelpers.forceYAxisUpdate(t)),r.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),t.theme&&(t=this.theme.updateThemeOptions(t)),this.updateHelpers._updateOptions(t,i,s,n,a))}},{key:"updateSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(t,e,i)}},{key:"appendSeries",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=this.w.config.series.slice();return s.push(t),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(s,e,i)}},{key:"appendData",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var s=i.w.config.series.slice(),n=0;n<s.length;n++)if(null!==t[n]&&void 0!==t[n])for(var a=0;a<t[n].data.length;a++)s[n].data.push(t[n].data[a]);return i.w.config.series=s,e&&(i.w.globals.initialSeries=Dc.clone(i.w.config.series)),this.update()}},{key:"update",value:function(t){var e=this;return new Promise(function(i,s){if(e.lastUpdateOptions&&JSON.stringify(e.lastUpdateOptions)===JSON.stringify(t))return i(e);e.lastUpdateOptions=Dc.clone(t),new yg(e.ctx).clear({isUpdating:!0});var n=e.create(e.w.config.series,t);if(!n)return i(e);e.mount(n).then(function(){"function"==typeof e.w.config.chart.events.updated&&e.w.config.chart.events.updated(e,e.w),e.events.fireEvent("updated",[e,e.w]),e.w.globals.isDirty=!0,i(e)}).catch(function(t){s(t)})})}},{key:"getSyncedCharts",value:function(){var t=this.getGroupedCharts(),e=[this];return t.length&&(e=[],t.forEach(function(t){e.push(t)})),e}},{key:"getGroupedCharts",value:function(){var t=this;return Apex._chartInstances.filter(function(t){if(t.group)return!0}).map(function(e){return t.w.config.chart.group===e.group?e.chart:t})}},{key:"toggleSeries",value:function(t){return this.series.toggleSeries(t)}},{key:"highlightSeriesOnLegendHover",value:function(t,e){return this.series.toggleSeriesOnHover(t,e)}},{key:"showSeries",value:function(t){this.series.showSeries(t)}},{key:"hideSeries",value:function(t){this.series.hideSeries(t)}},{key:"highlightSeries",value:function(t){this.series.highlightSeries(t)}},{key:"isSeriesHidden",value:function(t){this.series.isSeriesHidden(t)}},{key:"resetSeries",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(t,e)}},{key:"addEventListener",value:function(t,e){this.events.addEventListener(t,e)}},{key:"removeEventListener",value:function(t,e){this.events.removeEventListener(t,e)}},{key:"addXaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addXaxisAnnotationExternal(t,e,s)}},{key:"addYaxisAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addYaxisAnnotationExternal(t,e,s)}},{key:"addPointAnnotation",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=this;i&&(s=i),s.annotations.addPointAnnotationExternal(t,e,s)}},{key:"clearAnnotations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this;t&&(e=t),e.annotations.clearAnnotations(e)}},{key:"removeAnnotation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;e&&(i=e),i.annotations.removeAnnotation(i,t)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(t,e){return this.coreUtils.getSeriesTotalsXRange(t,e)}},{key:"getHighestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new gp(this.ctx).getMinYMaxY(t).highestY}},{key:"getLowestValueInSeries",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new gp(this.ctx).getMinYMaxY(t).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(t,e){return this.updateHelpers.toggleDataPointSelection(t,e)}},{key:"zoomX",value:function(t,e){this.ctx.toolbar.zoomUpdateOptions(t,e)}},{key:"setLocale",value:function(t){this.localization.setCurrentLocaleValues(t)}},{key:"dataURI",value:function(t){return new hp(this.ctx).dataURI(t)}},{key:"getSvgString",value:function(t){return new hp(this.ctx).getSvgString(t)}},{key:"exportToCSV",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new hp(this.ctx).exportToCSV(t)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var t=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){t.w.globals.resized=!0,t.w.globals.dataChanged=!1,t.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var t=this.w.config.chart.redrawOnWindowResize;"function"==typeof t&&(t=t()),t&&this._windowResize()}}],[{key:"getChartByID",value:function(t){var e=Dc.escapeString(t);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(t){return t.id===e})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var e=document.querySelectorAll("[data-apexcharts]"),i=0;i<e.length;i++)new t(e[i],JSON.parse(e[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(t,e){var i=this.getChartByID(t);if(i){i.w.globals.isExecCalled=!0;var s=null;if(-1!==i.publicMethods.indexOf(e)){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];s=i[e].apply(i,a)}return s}}},{key:"merge",value:function(t,e){return Dc.extend(t,e)}}]),t}(),kg=i(5072),Cg=i.n(kg),_g=i(7825),Eg=i.n(_g),Sg=i(7659),Mg=i.n(Sg),Tg=i(5056),Lg=i.n(Tg),Pg=i(540),Bg=i.n(Pg),Og=i(1113),Ig=i.n(Og),zg=i(947),Dg={};function Fg(t){return t+.5|0}Dg.styleTagTransform=Ig(),Dg.setAttributes=Lg(),Dg.insert=Mg().bind(null,"head"),Dg.domAPI=Eg(),Dg.insertStyleElement=Bg(),Cg()(zg.A,Dg),zg.A&&zg.A.locals&&zg.A.locals;const Rg=(t,e,i)=>Math.max(Math.min(t,i),e);function Hg(t){return Rg(Fg(2.55*t),0,255)}function Ng(t){return Rg(Fg(255*t),0,255)}function Yg(t){return Rg(Fg(t/2.55)/100,0,1)}function Wg(t){return Rg(Fg(100*t),0,100)}const Xg={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},jg=[..."0123456789ABCDEF"],Vg=t=>jg[15&t],Gg=t=>jg[(240&t)>>4]+jg[15&t],$g=t=>(240&t)>>4==(15&t);const Ug=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function qg(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function Zg(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function Qg(t,e,i){const s=qg(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Kg(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),a=Math.min(e,i,s),r=(n+a)/2;let o,l,c;return n!==a&&(c=n-a,l=r>.5?c/(2-n-a):c/(n+a),o=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,c,n),o=60*o+.5),[0|o,l||0,r]}function Jg(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(Ng)}function tf(t,e,i){return Jg(qg,t,e,i)}function ef(t){return(t%360+360)%360}const sf={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"},nf={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"};let af;const rf=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,of=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,lf=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function cf(t,e,i){if(t){let s=Kg(t);s[e]=Math.max(0,Math.min(s[e]+s[e]*i,0===e?360:1)),s=tf(s),t.r=s[0],t.g=s[1],t.b=s[2]}}function hf(t,e){return t?Object.assign(e||{},t):t}function df(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=Ng(t[3]))):(e=hf(t,{r:0,g:0,b:0,a:1})).a=Ng(e.a),e}function uf(t){return"r"===t.charAt(0)?function(t){const e=rf.exec(t);let i,s,n,a=255;if(e){if(e[7]!==i){const t=+e[7];a=e[8]?Hg(t):Rg(255*t,0,255)}return i=+e[1],s=+e[3],n=+e[5],i=255&(e[2]?Hg(i):Rg(i,0,255)),s=255&(e[4]?Hg(s):Rg(s,0,255)),n=255&(e[6]?Hg(n):Rg(n,0,255)),{r:i,g:s,b:n,a}}}(t):function(t){const e=Ug.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?Hg(+e[5]):Ng(+e[5]));const n=ef(+e[2]),a=+e[3]/100,r=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Jg(Qg,t,e,i)}(n,a,r):"hsv"===e[1]?function(t,e,i){return Jg(Zg,t,e,i)}(n,a,r):tf(n,a,r),{r:i[0],g:i[1],b:i[2],a:s}}(t)}class pf{constructor(t){if(t instanceof pf)return t;const e=typeof t;let i;var s,n,a;"object"===e?i=df(t):"string"===e&&(a=(s=t).length,"#"===s[0]&&(4===a||5===a?n={r:255&17*Xg[s[1]],g:255&17*Xg[s[2]],b:255&17*Xg[s[3]],a:5===a?17*Xg[s[4]]:255}:7!==a&&9!==a||(n={r:Xg[s[1]]<<4|Xg[s[2]],g:Xg[s[3]]<<4|Xg[s[4]],b:Xg[s[5]]<<4|Xg[s[6]],a:9===a?Xg[s[7]]<<4|Xg[s[8]]:255})),i=n||function(t){af||(af=function(){const t={},e=Object.keys(nf),i=Object.keys(sf);let s,n,a,r,o;for(s=0;s<e.length;s++){for(r=o=e[s],n=0;n<i.length;n++)a=i[n],o=o.replace(a,sf[a]);a=parseInt(nf[r],16),t[o]=[a>>16&255,a>>8&255,255&a]}return t}(),af.transparent=[0,0,0,0]);const e=af[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||uf(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=hf(this._rgb);return t&&(t.a=Yg(t.a)),t}set rgb(t){this._rgb=df(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Yg(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(t){var e=(t=>$g(t.r)&&$g(t.g)&&$g(t.b)&&$g(t.a))(t)?Vg:Gg;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Kg(t),i=e[0],s=Wg(e[1]),n=Wg(e[2]);return t.a<255?`hsla(${i}, ${s}%, ${n}%, ${Yg(t.a)})`:`hsl(${i}, ${s}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,s=t.rgb;let n;const a=e===n?.5:e,r=2*a-1,o=i.a-s.a,l=((r*o===-1?r:(r+o)/(1+r*o))+1)/2;n=1-l,i.r=255&l*i.r+n*s.r+.5,i.g=255&l*i.g+n*s.g+.5,i.b=255&l*i.b+n*s.b+.5,i.a=a*i.a+(1-a)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const s=lf(Yg(t.r)),n=lf(Yg(t.g)),a=lf(Yg(t.b));return{r:Ng(of(s+i*(lf(Yg(e.r))-s))),g:Ng(of(n+i*(lf(Yg(e.g))-n))),b:Ng(of(a+i*(lf(Yg(e.b))-a))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new pf(this.rgb)}alpha(t){return this._rgb.a=Ng(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=Fg(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return cf(this._rgb,2,t),this}darken(t){return cf(this._rgb,2,-t),this}saturate(t){return cf(this._rgb,1,t),this}desaturate(t){return cf(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Kg(t);i[0]=ef(i[0]+e),i=tf(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function gf(){}const ff=(()=>{let t=0;return()=>t++})();function mf(t){return null==t}function xf(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function bf(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function vf(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function yf(t,e){return vf(t)?t:e}function wf(t,e){return void 0===t?e:t}const Af=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function kf(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Cf(t,e,i,s){let n,a,r;if(xf(t))if(a=t.length,s)for(n=a-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<a;n++)e.call(i,t[n],n);else if(bf(t))for(r=Object.keys(t),a=r.length,n=0;n<a;n++)e.call(i,t[r[n]],r[n])}function _f(t,e){let i,s,n,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],a=e[i],n.datasetIndex!==a.datasetIndex||n.index!==a.index)return!1;return!0}function Ef(t){if(xf(t))return t.map(Ef);if(bf(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=Ef(t[i[n]]);return e}return t}function Sf(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Mf(t,e,i,s){if(!Sf(t))return;const n=e[t],a=i[t];bf(n)&&bf(a)?Tf(n,a,s):e[t]=Ef(a)}function Tf(t,e,i){const s=xf(e)?e:[e],n=s.length;if(!bf(t))return t;const a=(i=i||{}).merger||Mf;let r;for(let e=0;e<n;++e){if(r=s[e],!bf(r))continue;const n=Object.keys(r);for(let e=0,s=n.length;e<s;++e)a(n[e],t,r,i)}return t}function Lf(t,e){return Tf(t,e,{merger:Pf})}function Pf(t,e,i){if(!Sf(t))return;const s=e[t],n=i[t];bf(s)&&bf(n)?Lf(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=Ef(n))}const Bf={"":t=>t,x:t=>t.x,y:t=>t.y};function Of(t,e){const i=Bf[e]||(Bf[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function If(t){return t.charAt(0).toUpperCase()+t.slice(1)}const zf=t=>void 0!==t,Df=t=>"function"==typeof t,Ff=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},Rf=Math.PI,Hf=2*Rf,Nf=Hf+Rf,Yf=Number.POSITIVE_INFINITY,Wf=Rf/180,Xf=Rf/2,jf=Rf/4,Vf=2*Rf/3,Gf=Math.log10,$f=Math.sign;function Uf(t,e,i){return Math.abs(t-e)<i}function qf(t){const e=Math.round(t);t=Uf(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(Gf(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function Zf(t){return!function(t){return"symbol"==typeof t||"object"==typeof t&&null!==t&&!(Symbol.toPrimitive in t||"toString"in t||"valueOf"in t)}(t)&&!isNaN(parseFloat(t))&&isFinite(t)}function Qf(t,e,i){let s,n,a;for(s=0,n=t.length;s<n;s++)a=t[s][i],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Kf(t){return t*(Rf/180)}function Jf(t){return t*(180/Rf)}function tm(t){if(!vf(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function em(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let a=Math.atan2(s,i);return a<-.5*Rf&&(a+=Hf),{angle:a,distance:n}}function im(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function sm(t,e){return(t-e+Nf)%Hf-Rf}function nm(t){return(t%Hf+Hf)%Hf}function am(t,e,i,s){const n=nm(t),a=nm(e),r=nm(i),o=nm(a-n),l=nm(r-n),c=nm(n-a),h=nm(n-r);return n===a||n===r||s&&a===r||o>l&&c<h}function rm(t,e,i){return Math.max(e,Math.min(i,t))}function om(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function lm(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,a=0;for(;n-a>1;)s=a+n>>1,i(s)?a=s:n=s;return{lo:a,hi:n}}const cm=(t,e,i,s)=>lm(t,i,s?s=>{const n=t[s][e];return n<i||n===i&&t[s+1][e]===i}:s=>t[s][e]<i),hm=(t,e,i)=>lm(t,i,s=>t[s][e]>=i),dm=["push","pop","shift","splice","unshift"];function um(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(dm.forEach(e=>{delete t[e]}),delete t._chartjs)}function pm(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const gm="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function fm(t,e){let i=[],s=!1;return function(...n){i=n,s||(s=!0,gm.call(window,()=>{s=!1,t.apply(e,i)}))}}const mm=t=>"start"===t?"left":"end"===t?"right":"center",xm=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function bm(t,e,i){const s=e.length;let n=0,a=s;if(t._sorted){const{iScale:r,vScale:o,_parsed:l}=t,c=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null,h=r.axis,{min:d,max:u,minDefined:p,maxDefined:g}=r.getUserBounds();if(p){if(n=Math.min(cm(l,h,d).lo,i?s:cm(e,h,r.getPixelForValue(d)).lo),c){const t=l.slice(0,n+1).reverse().findIndex(t=>!mf(t[o.axis]));n-=Math.max(0,t)}n=rm(n,0,s-1)}if(g){let t=Math.max(cm(l,r.axis,u,!0).hi+1,i?0:cm(e,h,r.getPixelForValue(u),!0).hi+1);if(c){const e=l.slice(t-1).findIndex(t=>!mf(t[o.axis]));t+=Math.max(0,e)}a=rm(t,n,s)-n}else a=s-n}return{start:n,count:a}}function vm(t){const{xScale:e,yScale:i,_scaleRanges:s}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!s)return t._scaleRanges=n,!0;const a=s.xmin!==e.min||s.xmax!==e.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,n),a}const ym=t=>0===t||1===t,wm=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Hf/i),Am=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*Hf/i)+1,km={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=>1-Math.cos(t*Xf),easeOutSine:t=>Math.sin(t*Xf),easeInOutSine:t=>-.5*(Math.cos(Rf*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>ym(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>ym(t)?t:wm(t,.075,.3),easeOutElastic:t=>ym(t)?t:Am(t,.075,.3),easeInOutElastic(t){const e=.1125;return ym(t)?t:t<.5?.5*wm(2*t,e,.45):.5+.5*Am(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-km.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*km.easeInBounce(2*t):.5*km.easeOutBounce(2*t-1)+.5};function Cm(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function _m(t){return Cm(t)?t:new pf(t)}function Em(t){return Cm(t)?t:new pf(t).saturate(.5).darken(.1).hexString()}const Sm=["x","y","borderWidth","radius","tension"],Mm=["color","borderColor","backgroundColor"],Tm=new Map;function Lm(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let s=Tm.get(i);return s||(s=new Intl.NumberFormat(t,e),Tm.set(i,s)),s}(e,i).format(t)}const Pm={values:t=>xf(t)?t:""+t,numeric(t,e,i){if(0===t)return"0";const s=this.chart.options.locale;let n,a=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),a=function(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}(t,i)}const r=Gf(Math.abs(a)),o=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),l={notation:n,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),Lm(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";const s=i[e].significand||t/Math.pow(10,Math.floor(Gf(t)));return[1,2,3,5,10,15].includes(s)||e>.8*i.length?Pm.numeric.call(this,t,e,i):""}};var Bm={formatters:Pm};const Om=Object.create(null),Im=Object.create(null);function zm(t,e){if(!e)return t;const i=e.split(".");for(let e=0,s=i.length;e<s;++e){const s=i[e];t=t[s]||(t[s]=Object.create(null))}return t}function Dm(t,e,i){return"string"==typeof e?Tf(zm(t,e),i):Tf(zm(t,""),e)}class Fm{constructor(t,e){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=t=>t.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=(t,e)=>Em(e.backgroundColor),this.hoverBorderColor=(t,e)=>Em(e.borderColor),this.hoverColor=(t,e)=>Em(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Dm(this,t,e)}get(t){return zm(this,t)}describe(t,e){return Dm(Im,t,e)}override(t,e){return Dm(Om,t,e)}route(t,e,i,s){const n=zm(this,t),a=zm(this,i),r="_"+e;Object.defineProperties(n,{[r]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[r],e=a[s];return bf(t)?Object.assign({},e,t):wf(t,e)},set(t){this[r]=t}}})}apply(t){t.forEach(t=>t(this))}}var Rm=new Fm({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(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:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:Mm},numbers:{type:"number",properties:Sm}}),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:t=>0|t}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(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:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.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:Bm.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:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Hm(t,e,i,s,n){let a=e[n];return a||(a=e[n]=t.measureText(n).width,i.push(n)),a>s&&(s=a),s}function Nm(t,e,i,s){let n=(s=s||{}).data=s.data||{},a=s.garbageCollect=s.garbageCollect||[];s.font!==e&&(n=s.data={},a=s.garbageCollect=[],s.font=e),t.save(),t.font=e;let r=0;const o=i.length;let l,c,h,d,u;for(l=0;l<o;l++)if(d=i[l],null==d||xf(d)){if(xf(d))for(c=0,h=d.length;c<h;c++)u=d[c],null==u||xf(u)||(r=Hm(t,n,a,r,u))}else r=Hm(t,n,a,r,d);t.restore();const p=a.length/2;if(p>i.length){for(l=0;l<p;l++)delete n[a[l]];a.splice(0,p)}return r}function Ym(t,e,i){const s=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*s)/s+n}function Wm(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function Xm(t,e,i,s){jm(t,e,i,s,null)}function jm(t,e,i,s,n){let a,r,o,l,c,h,d,u;const p=e.pointStyle,g=e.rotation,f=e.radius;let m=(g||0)*Wf;if(p&&"object"==typeof p&&(a=p.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(i,s),t.rotate(m),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(f)||f<=0)){switch(t.beginPath(),p){default:n?t.ellipse(i,s,n/2,f,0,0,Hf):t.arc(i,s,f,0,Hf),t.closePath();break;case"triangle":h=n?n/2:f,t.moveTo(i+Math.sin(m)*h,s-Math.cos(m)*f),m+=Vf,t.lineTo(i+Math.sin(m)*h,s-Math.cos(m)*f),m+=Vf,t.lineTo(i+Math.sin(m)*h,s-Math.cos(m)*f),t.closePath();break;case"rectRounded":c=.516*f,l=f-c,r=Math.cos(m+jf)*l,d=Math.cos(m+jf)*(n?n/2-c:l),o=Math.sin(m+jf)*l,u=Math.sin(m+jf)*(n?n/2-c:l),t.arc(i-d,s-o,c,m-Rf,m-Xf),t.arc(i+u,s-r,c,m-Xf,m),t.arc(i+d,s+o,c,m,m+Xf),t.arc(i-u,s+r,c,m+Xf,m+Rf),t.closePath();break;case"rect":if(!g){l=Math.SQRT1_2*f,h=n?n/2:l,t.rect(i-h,s-l,2*h,2*l);break}m+=jf;case"rectRot":d=Math.cos(m)*(n?n/2:f),r=Math.cos(m)*f,o=Math.sin(m)*f,u=Math.sin(m)*(n?n/2:f),t.moveTo(i-d,s-o),t.lineTo(i+u,s-r),t.lineTo(i+d,s+o),t.lineTo(i-u,s+r),t.closePath();break;case"crossRot":m+=jf;case"cross":d=Math.cos(m)*(n?n/2:f),r=Math.cos(m)*f,o=Math.sin(m)*f,u=Math.sin(m)*(n?n/2:f),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-r),t.lineTo(i-u,s+r);break;case"star":d=Math.cos(m)*(n?n/2:f),r=Math.cos(m)*f,o=Math.sin(m)*f,u=Math.sin(m)*(n?n/2:f),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-r),t.lineTo(i-u,s+r),m+=jf,d=Math.cos(m)*(n?n/2:f),r=Math.cos(m)*f,o=Math.sin(m)*f,u=Math.sin(m)*(n?n/2:f),t.moveTo(i-d,s-o),t.lineTo(i+d,s+o),t.moveTo(i+u,s-r),t.lineTo(i-u,s+r);break;case"line":r=n?n/2:Math.cos(m)*f,o=Math.sin(m)*f,t.moveTo(i-r,s-o),t.lineTo(i+r,s+o);break;case"dash":t.moveTo(i,s),t.lineTo(i+Math.cos(m)*(n?n/2:f),s+Math.sin(m)*f);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function Vm(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function Gm(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function $m(t){t.restore()}function Um(t,e,i,s,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const s=(e.x+i.x)/2;t.lineTo(s,e.y),t.lineTo(s,i.y)}else"after"===n!=!!s?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function qm(t,e,i,s){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(s?e.cp1x:e.cp2x,s?e.cp1y:e.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function Zm(t,e,i,s,n){if(n.strikethrough||n.underline){const a=t.measureText(s),r=e-a.actualBoundingBoxLeft,o=e+a.actualBoundingBoxRight,l=i-a.actualBoundingBoxAscent,c=i+a.actualBoundingBoxDescent,h=n.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(r,h),t.lineTo(o,h),t.stroke()}}function Qm(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Km(t,e,i,s,n,a={}){const r=xf(e)?e:[e],o=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),mf(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,a),l=0;l<r.length;++l)c=r[l],a.backdrop&&Qm(t,a.backdrop),o&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),mf(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,i,s,a.maxWidth)),t.fillText(c,i,s,a.maxWidth),Zm(t,i,s,c,a),s+=Number(n.lineHeight);t.restore()}function Jm(t,e){const{x:i,y:s,w:n,h:a,radius:r}=e;t.arc(i+r.topLeft,s+r.topLeft,r.topLeft,1.5*Rf,Rf,!0),t.lineTo(i,s+a-r.bottomLeft),t.arc(i+r.bottomLeft,s+a-r.bottomLeft,r.bottomLeft,Rf,Xf,!0),t.lineTo(i+n-r.bottomRight,s+a),t.arc(i+n-r.bottomRight,s+a-r.bottomRight,r.bottomRight,Xf,0,!0),t.lineTo(i+n,s+r.topRight),t.arc(i+n-r.topRight,s+r.topRight,r.topRight,0,-Xf,!0),t.lineTo(i+r.topLeft,s)}const tx=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,ex=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function ix(t,e){const i=(""+t).match(tx);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}const sx=t=>+t||0;function nx(t,e){const i={},s=bf(e),n=s?Object.keys(e):e,a=bf(t)?s?i=>wf(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=sx(a(t));return i}function ax(t){return nx(t,{top:"y",right:"x",bottom:"y",left:"x"})}function rx(t){return nx(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ox(t){const e=ax(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function lx(t,e){t=t||{},e=e||Rm.font;let i=wf(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let s=wf(t.style,e.style);s&&!(""+s).match(ex)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:wf(t.family,e.family),lineHeight:ix(wf(t.lineHeight,e.lineHeight),i),size:i,style:s,weight:wf(t.weight,e.weight),string:""};return n.string=function(t){return!t||mf(t.size)||mf(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function cx(t,e,i,s){let n,a,r,o=!0;for(n=0,a=t.length;n<a;++n)if(r=t[n],void 0!==r&&(void 0!==e&&"function"==typeof r&&(r=r(e),o=!1),void 0!==i&&xf(r)&&(r=r[i%r.length],o=!1),void 0!==r))return s&&!o&&(s.cacheable=!1),r}function hx(t,e){return Object.assign(Object.create(t),e)}function dx(t,e=[""],i,s,n=()=>t[0]){const a=i||t;void 0===s&&(s=Ax("_fallback",t));const r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:a,_fallback:s,_getTarget:n,override:i=>dx([i,...t],e,a,s)};return new Proxy(r,{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,s)=>mx(i,s,()=>function(t,e,i,s){let n;for(const a of e)if(n=Ax(gx(a,t),i),void 0!==n)return fx(t,n)?yx(i,s,t,n):n}(s,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>kx(t).includes(e),ownKeys:t=>kx(t),set(t,e,i){const s=t._storage||(t._storage=n());return t[e]=s[e]=i,delete t._keys,!0}})}function ux(t,e,i,s){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:px(t,s),setContext:e=>ux(t,e,i,s),override:n=>ux(t.override(n),e,i,s)};return new Proxy(n,{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>mx(t,e,()=>function(t,e,i){const{_proxy:s,_context:n,_subProxy:a,_descriptors:r}=t;let o=s[e];return Df(o)&&r.isScriptable(e)&&(o=function(t,e,i,s){const{_proxy:n,_context:a,_subProxy:r,_stack:o}=i;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(a,r||s);return o.delete(t),fx(t,l)&&(l=yx(n._scopes,n,t,l)),l}(e,o,t,i)),xf(o)&&o.length&&(o=function(t,e,i,s){const{_proxy:n,_context:a,_subProxy:r,_descriptors:o}=i;if(void 0!==a.index&&s(t))return e[a.index%e.length];if(bf(e[0])){const i=e,s=n._scopes.filter(t=>t!==i);e=[];for(const l of i){const i=yx(s,n,t,l);e.push(ux(i,a,r&&r[t],o))}}return e}(e,o,t,r.isIndexable)),fx(e,o)&&(o=ux(o,n,a&&a[e],r)),o}(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,s)=>(t[i]=s,delete e[i],!0)})}function px(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:s=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:s,isScriptable:Df(i)?i:()=>i,isIndexable:Df(s)?s:()=>s}}const gx=(t,e)=>t?t+If(e):e,fx=(t,e)=>bf(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function mx(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const s=i();return t[e]=s,s}function xx(t,e,i){return Df(t)?t(e,i):t}const bx=(t,e)=>!0===t?e:"string"==typeof t?Of(e,t):void 0;function vx(t,e,i,s,n){for(const a of e){const e=bx(i,a);if(e){t.add(e);const a=xx(e._fallback,i,n);if(void 0!==a&&a!==i&&a!==s)return a}else if(!1===e&&void 0!==s&&i!==s)return null}return!1}function yx(t,e,i,s){const n=e._rootScopes,a=xx(e._fallback,i,s),r=[...t,...n],o=new Set;o.add(s);let l=wx(o,r,i,a||i,s);return null!==l&&(void 0===a||a===i||(l=wx(o,r,a,l,s),null!==l))&&dx(Array.from(o),[""],n,a,()=>function(t,e,i){const s=t._getTarget();e in s||(s[e]={});const n=s[e];return xf(n)&&bf(i)?i:n||{}}(e,i,s))}function wx(t,e,i,s,n){for(;i;)i=vx(t,e,i,s,n);return i}function Ax(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function kx(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}(t._scopes)),e}function Cx(t,e,i,s){const{iScale:n}=t,{key:a="r"}=this._parsing,r=new Array(s);let o,l,c,h;for(o=0,l=s;o<l;++o)c=o+i,h=e[c],r[o]={r:n.parse(Of(h,a),c)};return r}const _x=Number.EPSILON||1e-14,Ex=(t,e)=>e<t.length&&!t[e].skip&&t[e],Sx=t=>"x"===t?"y":"x";function Mx(t,e,i,s){const n=t.skip?e:t,a=e,r=i.skip?e:i,o=im(a,n),l=im(r,a);let c=o/(o+l),h=l/(o+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=s*c,u=s*h;return{previous:{x:a.x-d*(r.x-n.x),y:a.y-d*(r.y-n.y)},next:{x:a.x+u*(r.x-n.x),y:a.y+u*(r.y-n.y)}}}function Tx(t,e,i){return Math.max(Math.min(t,i),e)}function Lx(t,e,i,s,n){let a,r,o,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=Sx(e),s=t.length,n=Array(s).fill(0),a=Array(s);let r,o,l,c=Ex(t,0);for(r=0;r<s;++r)if(o=l,l=c,c=Ex(t,r+1),l){if(c){const t=c[e]-l[e];n[r]=0!==t?(c[i]-l[i])/t:0}a[r]=o?c?$f(n[r-1])!==$f(n[r])?0:(n[r-1]+n[r])/2:n[r-1]:n[r]}!function(t,e,i){const s=t.length;let n,a,r,o,l,c=Ex(t,0);for(let h=0;h<s-1;++h)l=c,c=Ex(t,h+1),l&&c&&(Uf(e[h],0,_x)?i[h]=i[h+1]=0:(n=i[h]/e[h],a=i[h+1]/e[h],o=Math.pow(n,2)+Math.pow(a,2),o<=9||(r=3/Math.sqrt(o),i[h]=n*r*e[h],i[h+1]=a*r*e[h])))}(t,n,a),function(t,e,i="x"){const s=Sx(i),n=t.length;let a,r,o,l=Ex(t,0);for(let c=0;c<n;++c){if(r=o,o=l,l=Ex(t,c+1),!o)continue;const n=o[i],h=o[s];r&&(a=(n-r[i])/3,o[`cp1${i}`]=n-a,o[`cp1${s}`]=h-a*e[c]),l&&(a=(l[i]-n)/3,o[`cp2${i}`]=n+a,o[`cp2${s}`]=h+a*e[c])}}(t,a,e)}(t,n);else{let i=s?t[t.length-1]:t[0];for(a=0,r=t.length;a<r;++a)o=t[a],l=Mx(i,o,t[Math.min(a+1,r-(s?0:1))%r],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,i=o}e.capBezierPoints&&function(t,e){let i,s,n,a,r,o=Vm(t[0],e);for(i=0,s=t.length;i<s;++i)r=a,a=o,o=i<s-1&&Vm(t[i+1],e),a&&(n=t[i],r&&(n.cp1x=Tx(n.cp1x,e.left,e.right),n.cp1y=Tx(n.cp1y,e.top,e.bottom)),o&&(n.cp2x=Tx(n.cp2x,e.left,e.right),n.cp2y=Tx(n.cp2y,e.top,e.bottom)))}(t,i)}function Px(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Bx(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function Ox(t,e,i){let s;return"string"==typeof t?(s=parseInt(t,10),-1!==t.indexOf("%")&&(s=s/100*e.parentNode[i])):s=t,s}const Ix=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),zx=["top","right","bottom","left"];function Dx(t,e,i){const s={};i=i?"-"+i:"";for(let n=0;n<4;n++){const a=zx[n];s[a]=parseFloat(t[e+"-"+a+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}function Fx(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:s}=e,n=Ix(i),a="border-box"===n.boxSizing,r=Dx(n,"padding"),o=Dx(n,"border","width"),{x:l,y:c,box:h}=function(t,e){const i=t.touches,s=i&&i.length?i[0]:t,{offsetX:n,offsetY:a}=s;let r,o,l=!1;if(((t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot))(n,a,t.target))r=n,o=a;else{const t=e.getBoundingClientRect();r=s.clientX-t.left,o=s.clientY-t.top,l=!0}return{x:r,y:o,box:l}}(t,i),d=r.left+(h&&o.left),u=r.top+(h&&o.top);let{width:p,height:g}=e;return a&&(p-=r.width+o.width,g-=r.height+o.height),{x:Math.round((l-d)/p*i.width/s),y:Math.round((c-u)/g*i.height/s)}}const Rx=t=>Math.round(10*t)/10;function Hx(t,e,i){const s=e||1,n=Math.floor(t.height*s),a=Math.floor(t.width*s);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const r=t.canvas;return r.style&&(i||!r.style.height&&!r.style.width)&&(r.style.height=`${t.height}px`,r.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==s||r.height!==n||r.width!==a)&&(t.currentDevicePixelRatio=s,r.height=n,r.width=a,t.ctx.setTransform(s,0,0,s,0,0),!0)}const Nx=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};Px()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function Yx(t,e){const i=function(t,e){return Ix(t).getPropertyValue(e)}(t,e),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Wx(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function Xx(t,e,i,s){return{x:t.x+i*(e.x-t.x),y:"middle"===s?i<.5?t.y:e.y:"after"===s?i<1?t.y:e.y:i>0?e.y:t.y}}function jx(t,e,i,s){const n={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},r=Wx(t,n,i),o=Wx(n,a,i),l=Wx(a,e,i),c=Wx(r,o,i),h=Wx(o,l,i);return Wx(c,h,i)}function Vx(t,e,i){return t?function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,i):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function Gx(t,e){let i,s;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=s)}function $x(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function Ux(t){return"angle"===t?{between:am,compare:sm,normalize:nm}:{between:om,compare:(t,e)=>t-e,normalize:t=>t}}function qx({start:t,end:e,count:i,loop:s,style:n}){return{start:t%i,end:e%i,loop:s&&(e-t+1)%i==0,style:n}}function Zx(t,e,i){if(!i)return[t];const{property:s,start:n,end:a}=i,r=e.length,{compare:o,between:l,normalize:c}=Ux(s),{start:h,end:d,loop:u,style:p}=function(t,e,i){const{property:s,start:n,end:a}=i,{between:r,normalize:o}=Ux(s),l=e.length;let c,h,{start:d,end:u,loop:p}=t;if(p){for(d+=l,u+=l,c=0,h=l;c<h&&r(o(e[d%l][s]),n,a);++c)d--,u--;d%=l,u%=l}return u<d&&(u+=l),{start:d,end:u,loop:p,style:t.style}}(t,e,i),g=[];let f,m,x,b=!1,v=null;const y=()=>b||l(n,x,f)&&0!==o(n,x),w=()=>!b||0===o(a,f)||l(a,x,f);for(let t=h,i=h;t<=d;++t)m=e[t%r],m.skip||(f=c(m[s]),f!==x&&(b=l(f,n,a),null===v&&y()&&(v=0===o(f,n)?t:i),null!==v&&w()&&(g.push(qx({start:v,end:t,loop:u,count:r,style:p})),v=null),i=t,x=f));return null!==v&&g.push(qx({start:v,end:d,loop:u,count:r,style:p})),g}function Qx(t,e){const i=[],s=t.segments;for(let n=0;n<s.length;n++){const a=Zx(s[n],t.points,e);a.length&&i.push(...a)}return i}function Kx(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function Jx(t,e){if(!e)return!1;const i=[],s=function(t,e){return Cm(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,s)!==JSON.stringify(e,s)}function tb(t,e,i){return t.options.clip?t[i]:e[i]}function eb(t,e){const i=e._clip;if(i.disabled)return!1;const s=function(t,e){const{xScale:i,yScale:s}=t;return i&&s?{left:tb(i,e,"left"),right:tb(i,e,"right"),top:tb(s,e,"top"),bottom:tb(s,e,"bottom")}:e}(e,t.chartArea);return{left:!1===i.left?0:s.left-(!0===i.left?0:i.left),right:!1===i.right?t.width:s.right+(!0===i.right?0:i.right),top:!1===i.top?0:s.top-(!0===i.top?0:i.top),bottom:!1===i.bottom?t.height:s.bottom+(!0===i.bottom?0:i.bottom)}}class ib{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],a=e.duration;n.forEach(s=>s({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(i-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=gm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let a,r=n.length-1,o=!1;for(;r>=0;--r)a=n[r],a._active?(a._total>i.duration&&(i.duration=a._total),a.tick(t),o=!0):(n[r]=n[n.length-1],n.pop());o&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var sb=new ib;const nb="transparent",ab={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=_m(t||nb),n=s.valid&&_m(e||nb);return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class rb{constructor(t,e,i,s){const n=e[i];s=cx([t.to,s,n,t.from]);const a=cx([t.from,n,s]);this._active=!0,this._fn=t.fn||ab[t.type||typeof a],this._easing=km[t.easing]||km.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,a=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=cx([t.to,e,s,t.from]),this._from=cx([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,a=this._loop,r=this._to;let o;if(this._active=n!==r&&(a||e<i),!this._active)return this._target[s]=r,void this._notify(!0);e<0?this._target[s]=n:(o=e/i%2,o=a&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[s]=this._fn(n,r,o))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class ob{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!bf(t))return;const e=Object.keys(Rm.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const n=t[s];if(!bf(n))return;const a={};for(const t of e)a[t]=n[t];(xf(n.properties)&&n.properties||[s]).forEach(t=>{t!==s&&i.has(t)||i.set(t,a)})})}_animateOptions(t,e){const i=e.options,s=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!s)return[];const n=this._createAnimations(s,i);return i.$shared&&function(t,e){const i=[],s=Object.keys(e);for(let e=0;e<s.length;e++){const n=t[s[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),n}_createAnimations(t,e){const i=this._properties,s=[],n=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let o;for(o=a.length-1;o>=0;--o){const l=a[o];if("$"===l.charAt(0))continue;if("options"===l){s.push(...this._animateOptions(t,e));continue}const c=e[l];let h=n[l];const d=i.get(l);if(h){if(d&&h.active()){h.update(d,c,r);continue}h.cancel()}d&&d.duration?(n[l]=h=new rb(d,t,l,c),s.push(h)):t[l]=c}return s}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(sb.add(this._chart,i),!0):void 0}}function lb(t,e){const i=t&&t.options||{},s=i.reverse,n=void 0===i.min?e:0,a=void 0===i.max?e:0;return{start:s?a:n,end:s?n:a}}function cb(t,e){const i=[],s=t._getSortedDatasetMetas(e);let n,a;for(n=0,a=s.length;n<a;++n)i.push(s[n].index);return i}function hb(t,e,i,s={}){const n=t.keys,a="single"===s.mode;let r,o,l,c;if(null===e)return;let h=!1;for(r=0,o=n.length;r<o;++r){if(l=+n[r],l===i){if(h=!0,s.all)continue;break}c=t.values[l],vf(c)&&(a||0===e||$f(e)===$f(c))&&(e+=c)}return h||s.all?e:0}function db(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function ub(t,e,i){const s=t[e]||(t[e]={});return s[i]||(s[i]={})}function pb(t,e,i,s){for(const n of e.getMatchingVisibleMetas(s).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function gb(t,e){const{chart:i,_cachedMeta:s}=t,n=i._stacks||(i._stacks={}),{iScale:a,vScale:r,index:o}=s,l=a.axis,c=r.axis,h=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(a,r,s),d=e.length;let u;for(let t=0;t<d;++t){const i=e[t],{[l]:a,[c]:d}=i;u=(i._stacks||(i._stacks={}))[c]=ub(n,h,a),u[o]=d,u._top=pb(u,r,!0,s.type),u._bottom=pb(u,r,!1,s.type),(u._visualValues||(u._visualValues={}))[o]=d}}function fb(t,e){const i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function mb(t,e){const i=t.controller.index,s=t.vScale&&t.vScale.axis;if(s){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[s]||void 0===e[s][i])return;delete e[s][i],void 0!==e[s]._visualValues&&void 0!==e[s]._visualValues[i]&&delete e[s]._visualValues[i]}}}const xb=t=>"reset"===t||"none"===t,bb=(t,e)=>e?t:Object.assign({},t);class vb{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=db(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&mb(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(t,e,i,s)=>"x"===t?e:"r"===t?s:i,n=e.xAxisID=wf(i.xAxisID,fb(t,"x")),a=e.yAxisID=wf(i.yAxisID,fb(t,"y")),r=e.rAxisID=wf(i.rAxisID,fb(t,"r")),o=e.indexAxis,l=e.iAxisID=s(o,n,a,r),c=e.vAxisID=s(o,a,n,r);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(c)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&um(this._data,this),t._stacked&&mb(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(bf(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:s}=e,n="x"===i.axis?"x":"y",a="x"===s.axis?"x":"y",r=Object.keys(t),o=new Array(r.length);let l,c,h;for(l=0,c=r.length;l<c;++l)h=r[l],o[l]={[n]:h,[a]:t[h]};return o}(e,t)}else if(i!==e){if(i){um(i,this);const t=this._cachedMeta;mb(t),t._parsed=[]}e&&Object.isExtensible(e)&&((s=e)._chartjs?s._chartjs.listeners.push(this):(Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),dm.forEach(t=>{const e="_onData"+If(t),i=s[t];Object.defineProperty(s,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return s._chartjs.listeners.forEach(i=>{"function"==typeof i[e]&&i[e](...t)}),n}})}))),this._syncList=[],this._data=e}var s}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let s=!1;this._dataCheck();const n=e._stacked;e._stacked=db(e.vScale,e),e.stack!==i.stack&&(s=!0,mb(e),e.stack=i.stack),this._resyncElements(t),(s||n!==e._stacked)&&(gb(this,e._parsed),e._stacked=db(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:s}=this,{iScale:n,_stacked:a}=i,r=n.axis;let o,l,c,h=0===t&&e===s.length||i._sorted,d=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=s,i._sorted=!0,c=s;else{c=xf(s[t])?this.parseArrayData(i,s,t,e):bf(s[t])?this.parseObjectData(i,s,t,e):this.parsePrimitiveData(i,s,t,e);const n=()=>null===l[r]||d&&l[r]<d[r];for(o=0;o<e;++o)i._parsed[o+t]=l=c[o],h&&(n()&&(h=!1),d=l);i._sorted=h}a&&gb(this,c)}parsePrimitiveData(t,e,i,s){const{iScale:n,vScale:a}=t,r=n.axis,o=a.axis,l=n.getLabels(),c=n===a,h=new Array(s);let d,u,p;for(d=0,u=s;d<u;++d)p=d+i,h[d]={[r]:c||n.parse(l[p],p),[o]:a.parse(e[p],p)};return h}parseArrayData(t,e,i,s){const{xScale:n,yScale:a}=t,r=new Array(s);let o,l,c,h;for(o=0,l=s;o<l;++o)c=o+i,h=e[c],r[o]={x:n.parse(h[0],c),y:a.parse(h[1],c)};return r}parseObjectData(t,e,i,s){const{xScale:n,yScale:a}=t,{xAxisKey:r="x",yAxisKey:o="y"}=this._parsing,l=new Array(s);let c,h,d,u;for(c=0,h=s;c<h;++c)d=c+i,u=e[d],l[c]={x:n.parse(Of(u,r),d),y:a.parse(Of(u,o),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this.chart,n=this._cachedMeta,a=e[t.axis];return hb({keys:cb(s,!0),values:e._stacks[t.axis]._visualValues},a,n.index,{mode:i})}updateRangeFromParsed(t,e,i,s){const n=i[e.axis];let a=null===n?NaN:n;const r=s&&i._stacks[e.axis];s&&r&&(s.values=r,a=hb(s,n,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const i=this._cachedMeta,s=i._parsed,n=i._sorted&&t===i.iScale,a=s.length,r=this._getOtherScale(t),o=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:cb(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:h}=function(t){const{min:e,max:i,minDefined:s,maxDefined:n}=t.getUserBounds();return{min:s?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(r);let d,u;function p(){u=s[d];const e=u[r.axis];return!vf(u[t.axis])||c>e||h<e}for(d=0;d<a&&(p()||(this.updateRangeFromParsed(l,t,u,o),!n));++d);if(n)for(d=a-1;d>=0;--d)if(!p()){this.updateRangeFromParsed(l,t,u,o);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let s,n,a;for(s=0,n=e.length;s<n;++s)a=e[s][t.axis],vf(a)&&i.push(a);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,s=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:s?""+s.getLabelForValue(n[s.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,s,n;return bf(t)?(e=t.top,i=t.right,s=t.bottom,n=t.left):e=i=s=n=t,{top:e,right:i,bottom:s,left:n,disabled:!1===t}}(wf(this.options.clip,function(t,e,i){if(!1===i)return!1;const s=lb(t,i),n=lb(e,i);return{top:n.end,right:s.end,bottom:n.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],n=e.chartArea,a=[],r=this._drawStart||0,o=this._drawCount||s.length-r,l=this.options.drawActiveElementsOnTop;let c;for(i.dataset&&i.dataset.draw(t,n,r,o),c=r;c<r+o;++c){const e=s[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,n))}for(c=0;c<a.length;++c)a[c].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const s=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return hx(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=s.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return hx(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=s,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const s="active"===e,n=this._cachedDataOpts,a=t+"-"+e,r=n[a],o=this.enableOptionSharing&&zf(i);if(r)return bb(r,o);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),h=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),c),u=Object.keys(Rm.elements[t]),p=l.resolveNamedOptions(d,u,()=>this.getContext(i,s,e),h);return p.$shared&&(p.$shared=o,n[a]=Object.freeze(bb(p,o))),p}_resolveAnimations(t,e,i){const s=this.chart,n=this._cachedDataOpts,a=`animation-${e}`,r=n[a];if(r)return r;let o;if(!1!==s.options.animation){const s=this.chart.config,n=s.datasetAnimationScopeKeys(this._type,e),a=s.getOptionScopes(this.getDataset(),n);o=s.createResolver(a,this.getContext(t,i,e))}const l=new ob(s,o&&o.animations);return o&&o._cacheable&&(n[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||xb(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,n=this.getSharedOptions(i),a=this.includeOptions(e,n)||n!==s;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:a}}updateElement(t,e,i,s){xb(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!xb(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;const n=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const s=i.length,n=e.length,a=Math.min(n,s);a&&this.parse(0,a),n>s?this._insertElements(s,n-s,t):n<s&&this._removeElements(n,s-n)}_insertElements(t,e,i=!0){const s=this._cachedMeta,n=s.data,a=t+e;let r;const o=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(o(n),r=t;r<a;++r)n[r]=new this.dataElementType;this._parsing&&o(s._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const s=i._parsed.splice(t,e);i._stacked&&mb(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function yb(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let s=[];for(let e=0,n=i.length;e<n;e++)s=s.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=pm(s.sort((t,e)=>t-e))}return t._cache.$bar}(e,t.type);let s,n,a,r,o=e._length;const l=()=>{32767!==a&&-32768!==a&&(zf(r)&&(o=Math.min(o,Math.abs(a-r)||o)),r=a)};for(s=0,n=i.length;s<n;++s)a=e.getPixelForValue(i[s]),l();for(r=void 0,s=0,n=e.ticks.length;s<n;++s)a=e.getPixelForTick(s),l();return o}function wb(t,e,i,s){return xf(t)?function(t,e,i,s){const n=i.parse(t[0],s),a=i.parse(t[1],s),r=Math.min(n,a),o=Math.max(n,a);let l=r,c=o;Math.abs(r)>Math.abs(o)&&(l=o,c=r),e[i.axis]=c,e._custom={barStart:l,barEnd:c,start:n,end:a,min:r,max:o}}(t,e,i,s):e[i.axis]=i.parse(t,s),e}function Ab(t,e,i,s){const n=t.iScale,a=t.vScale,r=n.getLabels(),o=n===a,l=[];let c,h,d,u;for(c=i,h=i+s;c<h;++c)u=e[c],d={},d[n.axis]=o||n.parse(r[c],c),l.push(wb(u,d,a,c));return l}function kb(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Cb(t,e,i,s){let n=e.borderSkipped;const a={};if(!n)return void(t.borderSkipped=a);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:r,end:o,reverse:l,top:c,bottom:h}=function(t){let e,i,s,n,a;return t.horizontal?(e=t.base>t.x,i="left",s="right"):(e=t.base<t.y,i="bottom",s="top"),e?(n="end",a="start"):(n="start",a="end"),{start:i,end:s,reverse:e,top:n,bottom:a}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===s?n=c:(i._bottom||0)===s?n=h:(a[_b(h,r,o,l)]=!0,n=c)),a[_b(n,r,o,l)]=!0,t.borderSkipped=a}function _b(t,e,i,s){var n,a,r;return s?(r=i,t=Eb(t=(n=t)===(a=e)?r:n===r?a:n,i,e)):t=Eb(t,e,i),t}function Eb(t,e,i){return"start"===t?e:"end"===t?i:t}function Sb(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class Mb extends vb{static id="doughnut";static 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"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{const a=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,s=this._cachedMeta;if(!1===this._parsing)s._parsed=i;else{let n,a,r=t=>+i[t];if(bf(i[t])){const{key:t="value"}=this._parsing;r=e=>+Of(i[e],t)}for(n=t,a=t+e;n<a;++n)s._parsed[n]=r(n)}}_getRotation(){return Kf(this.options.rotation-90)}_getCircumference(){return Kf(this.options.circumference)}_getRotationExtents(){let t=Hf,e=-Hf;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const s=this.chart.getDatasetMeta(i).controller,n=s._getRotation(),a=s._getCircumference();t=Math.min(t,n),e=Math.max(e,n+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,s=this._cachedMeta,n=s.data,a=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,r=Math.max((Math.min(i.width,i.height)-a)/2,0),o=Math.min((c=r,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:+l/c),1);var l,c;const h=this._getRingWeight(this.index),{circumference:d,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:f,offsetY:m}=function(t,e,i){let s=1,n=1,a=0,r=0;if(e<Hf){const o=t,l=o+e,c=Math.cos(o),h=Math.sin(o),d=Math.cos(l),u=Math.sin(l),p=(t,e,s)=>am(t,o,l,!0)?1:Math.max(e,e*i,s,s*i),g=(t,e,s)=>am(t,o,l,!0)?-1:Math.min(e,e*i,s,s*i),f=p(0,c,d),m=p(Xf,h,u),x=g(Rf,c,d),b=g(Rf+Xf,h,u);s=(f-x)/2,n=(m-b)/2,a=-(f+x)/2,r=-(m+b)/2}return{ratioX:s,ratioY:n,offsetX:a,offsetY:r}}(u,d,o),x=(i.width-a)/p,b=(i.height-a)/g,v=Math.max(Math.min(x,b)/2,0),y=Af(this.options.radius,v),w=(y-Math.max(y*o,0))/this._getVisibleDatasetWeightTotal();this.offsetX=f*y,this.offsetY=m*y,s.total=this.calculateTotal(),this.outerRadius=y-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*h,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,s=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===s._parsed[t]||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*n/Hf)}updateElements(t,e,i,s){const n="reset"===s,a=this.chart,r=a.chartArea,o=a.options.animation,l=(r.left+r.right)/2,c=(r.top+r.bottom)/2,h=n&&o.animateScale,d=h?0:this.innerRadius,u=h?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,s);let f,m=this._getRotation();for(f=0;f<e;++f)m+=this._circumference(f,n);for(f=e;f<e+i;++f){const e=this._circumference(f,n),i=t[f],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:m,endAngle:m+e,circumference:e,outerRadius:u,innerRadius:d};g&&(a.options=p||this.resolveDataElementOptions(f,i.active?"active":s)),m+=e,this.updateElement(i,f,a,s)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,s=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(s+=Math.abs(n))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Hf*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=Lm(e._parsed[t],i.options.locale);return{label:s[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let s,n,a,r,o;if(!t)for(s=0,n=i.data.datasets.length;s<n;++s)if(i.isDatasetVisible(s)){a=i.getDatasetMeta(s),t=a.data,r=a.controller;break}if(!t)return 0;for(s=0,n=t.length;s<n;++s)o=r.resolveDataElementOptions(s),"inner"!==o.borderAlign&&(e=Math.max(e,o.borderWidth||0,o.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){const t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(wf(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Tb extends vb{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((e,n)=>{const a=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:s,lineWidth:a.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,s=i.data.labels||[],n=Lm(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:n}}parseObjectData(t,e,i,s){return Cx.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{const s=this.getParsed(i).r;!isNaN(s)&&this.chart.getDataVisibility(i)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(s/2,0),a=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){const n="reset"===s,a=this.chart,r=a.options.animation,o=this._cachedMeta.rScale,l=o.xCenter,c=o.yCenter,h=o.getIndexAngle(0)-.5*Rf;let d,u=h;const p=360/this.countVisibleElements();for(d=0;d<e;++d)u+=this._computeAngle(d,s,p);for(d=e;d<e+i;d++){const e=t[d];let i=u,g=u+this._computeAngle(d,s,p),f=a.getDataVisibility(d)?o.getDistanceFromCenterForValue(this.getParsed(d).r):0;u=g,n&&(r.animateScale&&(f=0),r.animateRotate&&(i=g=h));const m={x:l,y:c,innerRadius:0,outerRadius:f,startAngle:i,endAngle:g,options:this.resolveDataElementOptions(d,e.active?"active":s)};this.updateElement(e,d,m,s)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Kf(this.resolveDataElementOptions(t,e).angle||i):0}}var Lb=Object.freeze({__proto__:null,BarController:class extends vb{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,s){return Ab(t,e,i,s)}parseArrayData(t,e,i,s){return Ab(t,e,i,s)}parseObjectData(t,e,i,s){const{iScale:n,vScale:a}=t,{xAxisKey:r="x",yAxisKey:o="y"}=this._parsing,l="x"===n.axis?r:o,c="x"===a.axis?r:o,h=[];let d,u,p,g;for(d=i,u=i+s;d<u;++d)g=e[d],p={},p[n.axis]=n.parse(Of(g,l),d),h.push(wb(Of(g,c),p,a,d));return h}updateRangeFromParsed(t,e,i,s){super.updateRangeFromParsed(t,e,i,s);const n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:s}=e,n=this.getParsed(t),a=n._custom,r=kb(a)?"["+a.start+", "+a.end+"]":""+s.getLabelForValue(n[s.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:r}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,s){const n="reset"===s,{index:a,_cachedMeta:{vScale:r}}=this,o=r.getBasePixel(),l=r.isHorizontal(),c=this._getRuler(),{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,s);for(let u=e;u<e+i;u++){const e=this.getParsed(u),i=n||mf(e[r.axis])?{base:o,head:o}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),g=(e._stacks||{})[r.axis],f={horizontal:l,base:i.base,enableBorderRadius:!g||kb(e._custom)||a===g._top||a===g._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};d&&(f.options=h||this.resolveDataElementOptions(u,t[u].active?"active":s));const m=f.options||t[u].options;Cb(f,m,g,a),Sb(f,m,c.ratio),this.updateElement(t[u],u,f,s)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,s=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),n=i.options.stacked,a=[],r=this._cachedMeta.controller.getParsed(e),o=r&&r[i.axis],l=t=>{const e=t._parsed.find(t=>t[i.axis]===o),s=e&&e[t.vScale.axis];if(mf(s)||isNaN(s))return!0};for(const i of s)if((void 0===e||!l(i))&&((!1===n||-1===a.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const i of this.chart.data.datasets)t[wf("x"===this.chart.options.indexAxis?i.xAxisID:i.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,i){const s=this._getStacks(t,i),n=void 0!==e?s.indexOf(e):-1;return-1===n?s.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,s=[];let n,a;for(n=0,a=e.data.length;n<a;++n)s.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const r=t.barThickness;return{min:r||yb(e),pixels:s,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:r?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:s},options:{base:n,minBarLength:a}}=this,r=n||0,o=this.getParsed(t),l=o._custom,c=kb(l);let h,d,u=o[e.axis],p=0,g=i?this.applyStack(e,o,i):u;g!==u&&(p=g-u,g=u),c&&(u=l.barStart,g=l.barEnd-l.barStart,0!==u&&$f(u)!==$f(l.barEnd)&&(p=0),p+=u);const f=mf(n)||c?p:n;let m=e.getPixelForValue(f);if(h=this.chart.getDataVisibility(t)?e.getPixelForValue(p+g):m,d=h-m,Math.abs(d)<a){d=function(t,e,i){return 0!==t?$f(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(d,e,r)*a,u===r&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),l=Math.min(t,n),p=Math.max(t,n);m=Math.max(Math.min(m,p),l),h=m+d,i&&!c&&(o._stacks[e.axis]._visualValues[s]=e.getValueForPixel(h)-e.getValueForPixel(m))}if(m===e.getPixelForValue(r)){const t=$f(d)*e.getLineWidthForValue(r)/2;m+=t,d-=t}return{size:d,base:m,head:h,center:h+d/2}}_calculateBarIndexPixels(t,e){const i=e.scale,s=this.options,n=s.skipNull,a=wf(s.maxBarThickness,1/0);let r,o;const l=this._getAxisCount();if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,c="flex"===s.barThickness?function(t,e,i,s){const n=e.pixels,a=n[t];let r=t>0?n[t-1]:null,o=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===r&&(r=a-(null===o?e.end-e.start:o-a)),null===o&&(o=a+a-r);const c=a-(a-Math.min(r,o))/2*l;return{chunk:Math.abs(o-r)/2*l/s,ratio:i.barPercentage,start:c}}(t,e,s,i*l):function(t,e,i,s){const n=i.barThickness;let a,r;return mf(n)?(a=e.min*i.categoryPercentage,r=i.barPercentage):(a=n*s,r=1),{chunk:a/s,ratio:r,start:e.pixels[t]-a/2}}(t,e,s,i*l),h="x"===this.chart.options.indexAxis?this.getDataset().xAxisID:this.getDataset().yAxisID,d=this._getAxis().indexOf(wf(h,this.getFirstScaleIdForIndexAxis())),u=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0)+d;r=c.start+c.chunk*u+c.chunk/2,o=Math.min(a,c.chunk*c.ratio)}else r=i.getPixelForValue(this.getParsed(t)[i.axis],t),o=Math.min(a,e.min*e.ratio);return{base:r-o/2,head:r+o/2,center:r,size:o}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,s=i.length;let n=0;for(;n<s;++n)null===this.getParsed(n)[e.axis]||i[n].hidden||i[n].draw(this._ctx)}},BubbleController:class extends vb{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,s){const n=super.parsePrimitiveData(t,e,i,s);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,s){const n=super.parseArrayData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=wf(s[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,s){const n=super.parseObjectData(t,e,i,s);for(let t=0;t<n.length;t++){const s=e[i+t];n[t]._custom=wf(s&&s.r&&+s.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,a=this.getParsed(t),r=s.getLabelForValue(a.x),o=n.getLabelForValue(a.y),l=a._custom;return{label:i[t]||"",value:"("+r+", "+o+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,s),c=a.axis,h=r.axis;for(let d=e;d<e+i;d++){const e=t[d],i=!n&&this.getParsed(d),u={},p=u[c]=n?a.getPixelForDecimal(.5):a.getPixelForValue(i[c]),g=u[h]=n?r.getBasePixel():r.getPixelForValue(i[h]);u.skip=isNaN(p)||isNaN(g),l&&(u.options=o||this.resolveDataElementOptions(d,e.active?"active":s),n&&(u.options.radius=0)),this.updateElement(e,d,u,s)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let s=super.resolveDataElementOptions(t,e);s.$shared&&(s=Object.assign({},s,{$shared:!1}));const n=s.radius;return"active"!==e&&(s.radius=0),s.radius+=wf(i&&i._custom,n),s}},DoughnutController:Mb,LineController:class extends vb{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:s=[],_dataset:n}=e,a=this.chart._animationsDisabled;let{start:r,count:o}=bm(e,s,a);this._drawStart=r,this._drawCount=o,vm(e)&&(r=0,o=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=s;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:l},t),this.updateElements(s,r,o,t)}updateElements(t,e,i,s){const n="reset"===s,{iScale:a,vScale:r,_stacked:o,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:h}=this._getSharedOptions(e,s),d=a.axis,u=r.axis,{spanGaps:p,segment:g}=this.options,f=Zf(p)?p:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||n||"none"===s,x=e+i,b=t.length;let v=e>0&&this.getParsed(e-1);for(let i=0;i<b;++i){const p=t[i],b=m?p:{};if(i<e||i>=x){b.skip=!0;continue}const y=this.getParsed(i),w=mf(y[u]),A=b[d]=a.getPixelForValue(y[d],i),k=b[u]=n||w?r.getBasePixel():r.getPixelForValue(o?this.applyStack(r,y,o):y[u],i);b.skip=isNaN(A)||isNaN(k)||w,b.stop=i>0&&Math.abs(y[d]-v[d])>f,g&&(b.parsed=y,b.raw=l.data[i]),h&&(b.options=c||this.resolveDataElementOptions(i,p.active?"active":s)),m||this.updateElement(p,i,b,s),v=y}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;const n=s[0].size(this.resolveDataElementOptions(0)),a=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,n,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends Mb{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:Tb,RadarController:class extends vb{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,s){return Cx.bind(this)(t,e,i,s)}update(t){const e=this._cachedMeta,i=e.dataset,s=e.data||[],n=e.iScale.getLabels();if(i.points=s,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:n.length===s.length,options:e};this.updateElement(i,void 0,a,t)}this.updateElements(s,0,s.length,t)}updateElements(t,e,i,s){const n=this._cachedMeta.rScale,a="reset"===s;for(let r=e;r<e+i;r++){const e=t[r],i=this.resolveDataElementOptions(r,e.active?"active":s),o=n.getPointPositionForValue(r,this.getParsed(r).r),l=a?n.xCenter:o.x,c=a?n.yCenter:o.y,h={x:l,y:c,angle:o.angle,skip:isNaN(l)||isNaN(c),options:i};this.updateElement(e,r,h,s)}}},ScatterController:class extends vb{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:n}=e,a=this.getParsed(t),r=s.getLabelForValue(a.x),o=n.getLabelForValue(a.y);return{label:i[t]||"",value:"("+r+", "+o+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,s=this.chart._animationsDisabled;let{start:n,count:a}=bm(e,i,s);if(this._drawStart=n,this._drawCount=a,vm(e)&&(n=0,a=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:a}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;const r=this.resolveDatasetElementOptions(t);r.segment=this.options.segment,this.updateElement(n,void 0,{animated:!s,options:r},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,n,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,s){const n="reset"===s,{iScale:a,vScale:r,_stacked:o,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,s),h=this.getSharedOptions(c),d=this.includeOptions(s,h),u=a.axis,p=r.axis,{spanGaps:g,segment:f}=this.options,m=Zf(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||n||"none"===s;let b=e>0&&this.getParsed(e-1);for(let c=e;c<e+i;++c){const e=t[c],i=this.getParsed(c),g=x?e:{},v=mf(i[p]),y=g[u]=a.getPixelForValue(i[u],c),w=g[p]=n||v?r.getBasePixel():r.getPixelForValue(o?this.applyStack(r,i,o):i[p],c);g.skip=isNaN(y)||isNaN(w)||v,g.stop=c>0&&Math.abs(i[u]-b[u])>m,f&&(g.parsed=i,g.raw=l.data[c]),d&&(g.options=h||this.resolveDataElementOptions(c,e.active?"active":s)),x||this.updateElement(e,c,g,s),b=i}this.updateSharedOptions(h,s,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}const i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!e.length)return s;const n=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(s,n,a)/2}}});function Pb(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Bb{static override(t){Object.assign(Bb.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return Pb()}parse(){return Pb()}format(){return Pb()}add(){return Pb()}diff(){return Pb()}startOf(){return Pb()}endOf(){return Pb()}}var Ob=Bb;function Ib(t,e,i,s){const{controller:n,data:a,_sorted:r}=t,o=n._cachedMeta.iScale,l=t.dataset&&t.dataset.options?t.dataset.options.spanGaps:null;if(o&&e===o.axis&&"r"!==e&&r&&a.length){const r=o._reversePixels?hm:cm;if(!s){const s=r(a,e,i);if(l){const{vScale:e}=n._cachedMeta,{_parsed:i}=t,a=i.slice(0,s.lo+1).reverse().findIndex(t=>!mf(t[e.axis]));s.lo-=Math.max(0,a);const r=i.slice(s.hi).findIndex(t=>!mf(t[e.axis]));s.hi+=Math.max(0,r)}return s}if(n._sharedOptions){const t=a[0],s="function"==typeof t.getRange&&t.getRange(e);if(s){const t=r(a,e,i-s),n=r(a,e,i+s);return{lo:t.lo,hi:n.hi}}}}return{lo:0,hi:a.length-1}}function zb(t,e,i,s,n){const a=t.getSortedVisibleDatasetMetas(),r=i[e];for(let t=0,i=a.length;t<i;++t){const{index:i,data:o}=a[t],{lo:l,hi:c}=Ib(a[t],e,r,n);for(let t=l;t<=c;++t){const e=o[t];e.skip||s(e,i,t)}}}function Db(t,e,i,s,n){const a=[];return n||t.isPointInArea(e)?(zb(t,i,e,function(i,r,o){(n||Vm(i,t.chartArea,0))&&i.inRange(e.x,e.y,s)&&a.push({element:i,datasetIndex:r,index:o})},!0),a):a}function Fb(t,e,i,s,n,a){return a||t.isPointInArea(e)?"r"!==i||s?function(t,e,i,s,n,a){let r=[];const o=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,s){const n=e?Math.abs(t.x-s.x):0,a=i?Math.abs(t.y-s.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(a,2))}}(i);let l=Number.POSITIVE_INFINITY;return zb(t,i,e,function(i,c,h){const d=i.inRange(e.x,e.y,n);if(s&&!d)return;const u=i.getCenterPoint(n);if(!a&&!t.isPointInArea(u)&&!d)return;const p=o(e,u);p<l?(r=[{element:i,datasetIndex:c,index:h}],l=p):p===l&&r.push({element:i,datasetIndex:c,index:h})}),r}(t,e,i,s,n,a):function(t,e,i,s){let n=[];return zb(t,i,e,function(t,i,a){const{startAngle:r,endAngle:o}=t.getProps(["startAngle","endAngle"],s),{angle:l}=em(t,{x:e.x,y:e.y});am(l,r,o)&&n.push({element:t,datasetIndex:i,index:a})}),n}(t,e,i,n):[]}function Rb(t,e,i,s,n){const a=[],r="x"===i?"inXRange":"inYRange";let o=!1;return zb(t,i,e,(t,s,l)=>{t[r]&&t[r](e[i],n)&&(a.push({element:t,datasetIndex:s,index:l}),o=o||t.inRange(e.x,e.y,n))}),s&&!o?[]:a}var Hb={evaluateInteractionItems:zb,modes:{index(t,e,i,s){const n=Fx(e,t),a=i.axis||"x",r=i.includeInvisible||!1,o=i.intersect?Db(t,n,a,s,r):Fb(t,n,a,!1,s,r),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{const e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})}),l):[]},dataset(t,e,i,s){const n=Fx(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;let o=i.intersect?Db(t,n,a,s,r):Fb(t,n,a,!1,s,r);if(o.length>0){const e=o[0].datasetIndex,i=t.getDatasetMeta(e).data;o=[];for(let t=0;t<i.length;++t)o.push({element:i[t],datasetIndex:e,index:t})}return o},point:(t,e,i,s)=>Db(t,Fx(e,t),i.axis||"xy",s,i.includeInvisible||!1),nearest(t,e,i,s){const n=Fx(e,t),a=i.axis||"xy",r=i.includeInvisible||!1;return Fb(t,n,a,i.intersect,s,r)},x:(t,e,i,s)=>Rb(t,Fx(e,t),"x",i.intersect,s),y:(t,e,i,s)=>Rb(t,Fx(e,t),"y",i.intersect,s)}};const Nb=["left","top","right","bottom"];function Yb(t,e){return t.filter(t=>t.pos===e)}function Wb(t,e){return t.filter(t=>-1===Nb.indexOf(t.pos)&&t.box.axis===e)}function Xb(t,e){return t.sort((t,i)=>{const s=e?i:t,n=e?t:i;return s.weight===n.weight?s.index-n.index:s.weight-n.weight})}function jb(t,e,i,s){return Math.max(t[i],e[i])+Math.max(t[s],e[s])}function Vb(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 Gb(t,e,i,s){const{pos:n,box:a}=i,r=t.maxPadding;if(!bf(n)){i.size&&(t[n]-=i.size);const e=s[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?a.height:a.width),i.size=e.size/e.count,t[n]+=i.size}a.getPadding&&Vb(r,a.getPadding());const o=Math.max(0,e.outerWidth-jb(r,t,"left","right")),l=Math.max(0,e.outerHeight-jb(r,t,"top","bottom")),c=o!==t.w,h=l!==t.h;return t.w=o,t.h=l,i.horizontal?{same:c,other:h}:{same:h,other:c}}function $b(t,e){const i=e.maxPadding;return function(t){const s={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{s[t]=Math.max(e[t],i[t])}),s}(t?["left","right"]:["top","bottom"])}function Ub(t,e,i,s){const n=[];let a,r,o,l,c,h;for(a=0,r=t.length,c=0;a<r;++a){o=t[a],l=o.box,l.update(o.width||e.w,o.height||e.h,$b(o.horizontal,e));const{same:r,other:d}=Gb(e,i,o,s);c|=r&&n.length,h=h||d,l.fullSize||n.push(o)}return c&&Ub(n,e,i,s)||h}function qb(t,e,i,s,n){t.top=i,t.left=e,t.right=e+s,t.bottom=i+n,t.width=s,t.height=n}function Zb(t,e,i,s){const n=i.padding;let{x:a,y:r}=e;for(const o of t){const t=o.box,l=s[o.stack]||{count:1,placed:0,weight:1},c=o.stackWeight/l.weight||1;if(o.horizontal){const s=e.w*c,a=l.size||t.height;zf(l.start)&&(r=l.start),t.fullSize?qb(t,n.left,r,i.outerWidth-n.right-n.left,a):qb(t,e.left+l.placed,r,s,a),l.start=r,l.placed+=s,r=t.bottom}else{const s=e.h*c,r=l.size||t.width;zf(l.start)&&(a=l.start),t.fullSize?qb(t,a,n.top,r,i.outerHeight-n.bottom-n.top):qb(t,a,e.top+l.placed,r,s),l.start=a,l.placed+=s,a=t.right}}e.x=a,e.y=r}var Qb={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(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){const i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,s){if(!t)return;const n=ox(t.options.layout.padding),a=Math.max(e-n.width,0),r=Math.max(i-n.height,0),o=function(t){const e=function(t){const e=[];let i,s,n,a,r,o;for(i=0,s=(t||[]).length;i<s;++i)n=t[i],({position:a,options:{stack:r,stackWeight:o=1}}=n),e.push({index:i,box:n,pos:a,horizontal:n.isHorizontal(),weight:n.weight,stack:r&&a+r,stackWeight:o});return e}(t),i=Xb(e.filter(t=>t.box.fullSize),!0),s=Xb(Yb(e,"left"),!0),n=Xb(Yb(e,"right")),a=Xb(Yb(e,"top"),!0),r=Xb(Yb(e,"bottom")),o=Wb(e,"x"),l=Wb(e,"y");return{fullSize:i,leftAndTop:s.concat(a),rightAndBottom:n.concat(l).concat(r).concat(o),chartArea:Yb(e,"chartArea"),vertical:s.concat(n).concat(l),horizontal:a.concat(r).concat(o)}}(t.boxes),l=o.vertical,c=o.horizontal;Cf(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});const h=l.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1,d=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:a,availableHeight:r,vBoxMaxWidth:a/2/h,hBoxMaxHeight:r/2}),u=Object.assign({},n);Vb(u,ox(s));const p=Object.assign({maxPadding:u,w:a,h:r,x:n.left,y:n.top},n),g=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:s,stackWeight:n}=i;if(!t||!Nb.includes(s))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=n}return e}(t),{vBoxMaxWidth:s,hBoxMaxHeight:n}=e;let a,r,o;for(a=0,r=t.length;a<r;++a){o=t[a];const{fullSize:r}=o.box,l=i[o.stack],c=l&&o.stackWeight/l.weight;o.horizontal?(o.width=c?c*s:r&&e.availableWidth,o.height=n):(o.width=s,o.height=c?c*n:r&&e.availableHeight)}return i}(l.concat(c),d);Ub(o.fullSize,p,d,g),Ub(l,p,d,g),Ub(c,p,d,g)&&Ub(l,p,d,g),function(t){const e=t.maxPadding;function i(i){const s=Math.max(e[i]-t[i],0);return t[i]+=s,s}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}(p),Zb(o.leftAndTop,p,d,g),p.x+=p.w,p.y+=p.h,Zb(o.rightAndBottom,p,d,g),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Cf(o.chartArea,e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class Kb{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}}class Jb extends Kb{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const tv="$chartjs",ev={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},iv=t=>null===t||""===t,sv=!!Nx&&{passive:!0};function nv(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,sv)}function av(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function rv(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||av(i.addedNodes,s),e=e&&!av(i.removedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function ov(t,e,i){const s=t.canvas,n=new MutationObserver(t=>{let e=!1;for(const i of t)e=e||av(i.removedNodes,s),e=e&&!av(i.addedNodes,s);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}const lv=new Map;let cv=0;function hv(){const t=window.devicePixelRatio;t!==cv&&(cv=t,lv.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function dv(t,e,i){const s=t.canvas,n=s&&Bx(s);if(!n)return;const a=fm((t,e)=>{const s=n.clientWidth;i(t,e),s<n.clientWidth&&i()},window),r=new ResizeObserver(t=>{const e=t[0],i=e.contentRect.width,s=e.contentRect.height;0===i&&0===s||a(i,s)});return r.observe(n),function(t,e){lv.size||window.addEventListener("resize",hv),lv.set(t,e)}(t,a),r}function uv(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){lv.delete(t),lv.size||window.removeEventListener("resize",hv)}(t)}function pv(t,e,i){const s=t.canvas,n=fm(e=>{null!==t.ctx&&i(function(t,e){const i=ev[t.type]||t.type,{x:s,y:n}=Fx(t,e);return{type:i,chart:e,native:t,x:void 0!==s?s:null,y:void 0!==n?n:null}}(e,t))},t);return function(t,e,i){t&&t.addEventListener(e,i,sv)}(s,e,n),n}class gv extends Kb{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,s=t.getAttribute("height"),n=t.getAttribute("width");if(t[tv]={initial:{height:s,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",iv(n)){const e=Yx(t,"width");void 0!==e&&(t.width=e)}if(iv(s))if(""===t.style.height)t.height=t.width/(e||2);else{const e=Yx(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[tv])return!1;const i=e[tv].initial;["height","width"].forEach(t=>{const s=i[t];mf(s)?e.removeAttribute(t):e.setAttribute(t,s)});const s=i.style||{};return Object.keys(s).forEach(t=>{e.style[t]=s[t]}),e.width=e.width,delete e[tv],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const s=t.$proxies||(t.$proxies={}),n={attach:rv,detach:ov,resize:dv}[e]||pv;s[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),s=i[e];s&&(({attach:uv,detach:uv,resize:uv}[e]||nv)(t,e,s),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return function(t,e,i,s){const n=Ix(t),a=Dx(n,"margin"),r=Ox(n.maxWidth,t,"clientWidth")||Yf,o=Ox(n.maxHeight,t,"clientHeight")||Yf,l=function(t,e,i){let s,n;if(void 0===e||void 0===i){const a=t&&Bx(t);if(a){const t=a.getBoundingClientRect(),r=Ix(a),o=Dx(r,"border","width"),l=Dx(r,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,s=Ox(r.maxWidth,a,"clientWidth"),n=Ox(r.maxHeight,a,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:s||Yf,maxHeight:n||Yf}}(t,e,i);let{width:c,height:h}=l;if("content-box"===n.boxSizing){const t=Dx(n,"border","width"),e=Dx(n,"padding");c-=e.width+t.width,h-=e.height+t.height}return c=Math.max(0,c-a.width),h=Math.max(0,s?c/s:h-a.height),c=Rx(Math.min(c,r,l.maxWidth)),h=Rx(Math.min(h,o,l.maxHeight)),c&&!h&&(h=Rx(c/2)),(void 0!==e||void 0!==i)&&s&&l.height&&h>l.height&&(h=l.height,c=Rx(Math.floor(h*s))),{width:c,height:h}}(t,e,i,s)}isAttached(t){const e=t&&Bx(t);return!(!e||!e.isConnected)}}class fv{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return Zf(this.x)&&Zf(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const s={};return t.forEach(t=>{s[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),s}}function mv(t,e,i,s,n){const a=wf(s,0),r=Math.min(wf(n,t.length),t.length);let o,l,c,h=0;for(i=Math.ceil(i),n&&(o=n-s,i=o/Math.floor(o/i)),c=a;c<0;)h++,c=Math.round(a+h*i);for(l=Math.max(a,0);l<r;l++)l===c&&(e.push(t[l]),h++,c=Math.round(a+h*i))}const xv=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,bv=(t,e)=>Math.min(e||t,t);function vv(t,e){const i=[],s=t.length/e,n=t.length;let a=0;for(;a<n;a+=s)i.push(t[Math.floor(a)]);return i}function yv(t,e,i){const s=t.ticks.length,n=Math.min(e,s-1),a=t._startPixel,r=t._endPixel,o=1e-6;let l,c=t.getPixelForTick(n);if(!(i&&(l=1===s?Math.max(c-a,r-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(n-1))/2,c+=n<e?l:-l,c<a-o||c>r+o)))return c}function wv(t){return t.drawTicks?t.tickLength:0}function Av(t,e){if(!t.display)return 0;const i=lx(t.font,e),s=ox(t.padding);return(xf(t.text)?t.text.length:1)*i.lineHeight+s.height}function kv(t,e,i){let s=mm(t);return(i&&"right"!==e||!i&&"right"===e)&&(s=(t=>"left"===t?"right":"right"===t?"left":t)(s)),s}class Cv extends fv{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=yf(t,Number.POSITIVE_INFINITY),e=yf(e,Number.NEGATIVE_INFINITY),i=yf(i,Number.POSITIVE_INFINITY),s=yf(s,Number.NEGATIVE_INFINITY),{min:yf(t,i),max:yf(e,s),minDefined:vf(t),maxDefined:vf(e)}}getMinMax(t){let e,{min:i,max:s,minDefined:n,maxDefined:a}=this.getUserBounds();if(n&&a)return{min:i,max:s};const r=this.getMatchingVisibleMetas();for(let o=0,l=r.length;o<l;++o)e=r[o].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),a||(s=Math.max(s,e.max));return i=a&&i>s?s:i,s=n&&i>s?i:s,{min:yf(i,yf(s,i)),max:yf(s,yf(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){kf(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:s,grace:n,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,i){const{min:s,max:n}=t,a=Af(e,(n-s)/2),r=(t,e)=>i&&0===t?0:t+e;return{min:r(s,-Math.abs(a)),max:r(n,a)}}(this,n,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=r<this.ticks.length;this._convertTicksToLabels(o?vv(this.ticks,r):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const i=t.options.ticks,s=function(t){const e=t.options.offset,i=t._tickSize(),s=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(s,n))}(t),n=Math.min(i.maxTicksLimit||s,s),a=i.major.enabled?function(t){const e=[];let i,s;for(i=0,s=t.length;i<s;i++)t[i].major&&e.push(i);return e}(e):[],r=a.length,o=a[0],l=a[r-1],c=[];if(r>n)return function(t,e,i,s){let n,a=0,r=i[0];for(s=Math.ceil(s),n=0;n<t.length;n++)n===r&&(e.push(t[n]),a++,r=i[a*s])}(e,c,a,r/n),c;const h=function(t,e,i){const s=function(t){const e=t.length;let i,s;if(e<2)return!1;for(s=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==s)return!1;return s}(t),n=e.length/i;if(!s)return Math.max(n,1);const a=function(t){const e=[],i=Math.sqrt(t);let s;for(s=1;s<i;s++)t%s===0&&(e.push(s),e.push(t/s));return i===(0|i)&&e.push(i),e.sort((t,e)=>t-e).pop(),e}(s);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>n)return e}return Math.max(n,1)}(a,e,n);if(r>0){let t,i;const s=r>1?Math.round((l-o)/(r-1)):null;for(mv(e,c,h,mf(s)?0:o-s,o),t=0,i=r-1;t<i;t++)mv(e,c,h,a[t],a[t+1]);return mv(e,c,h,l,mf(s)?e.length:l+s),c}return mv(e,c,h),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){kf(this.options.afterUpdate,[this])}beforeSetDimensions(){kf(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(){kf(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),kf(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){kf(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,s,n;for(i=0,s=t.length;i<s;i++)n=t[i],n.label=kf(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){kf(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){kf(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=bv(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,n=e.maxRotation;let a,r,o,l=s;if(!this._isVisible()||!e.display||s>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=s);const c=this._getLabelSizes(),h=c.widest.width,d=c.highest.height,u=rm(this.chart.width-h,0,this.maxWidth);a=t.offset?this.maxWidth/i:u/(i-1),h+6>a&&(a=u/(i-(t.offset?.5:1)),r=this.maxHeight-wv(t.grid)-e.padding-Av(t.title,this.chart.options.font),o=Math.sqrt(h*h+d*d),l=Jf(Math.min(Math.asin(rm((c.highest.height+6)/a,-1,1)),Math.asin(rm(r/o,-1,1))-Math.asin(rm(d/o,-1,1)))),l=Math.max(s,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){kf(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){kf(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:n}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const a=Av(s,e.options.font);if(r?(t.width=this.maxWidth,t.height=wv(n)+a):(t.height=this.maxHeight,t.width=wv(n)+a),i.display&&this.ticks.length){const{first:e,last:s,widest:n,highest:a}=this._getLabelSizes(),o=2*i.padding,l=Kf(this.labelRotation),c=Math.cos(l),h=Math.sin(l);if(r){const e=i.mirror?0:h*n.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{const e=i.mirror?0:c*n.width+h*a.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,s,h,c)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){const{ticks:{align:n,padding:a},position:r}=this.options,o=0!==this.labelRotation,l="top"!==r&&"x"===this.axis;if(this.isHorizontal()){const r=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,d=0;o?l?(h=s*t.width,d=i*e.height):(h=i*t.height,d=s*e.width):"start"===n?d=e.width:"end"===n?h=t.width:"inner"!==n&&(h=t.width/2,d=e.width/2),this.paddingLeft=Math.max((h-r+a)*this.width/(this.width-r),0),this.paddingRight=Math.max((d-c+a)*this.width/(this.width-c),0)}else{let i=e.height/2,s=t.height/2;"start"===n?(i=0,s=t.height):"end"===n&&(i=e.height,s=0),this.paddingTop=i+a,this.paddingBottom=s+a}}_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(){kf(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)mf(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=vv(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:s,_longestTextCache:n}=this,a=[],r=[],o=Math.floor(e/bv(e,i));let l,c,h,d,u,p,g,f,m,x,b,v=0,y=0;for(l=0;l<e;l+=o){if(d=t[l].label,u=this._resolveTickFontOptions(l),s.font=p=u.string,g=n[p]=n[p]||{data:{},gc:[]},f=u.lineHeight,m=x=0,mf(d)||xf(d)){if(xf(d))for(c=0,h=d.length;c<h;++c)b=d[c],mf(b)||xf(b)||(m=Hm(s,g.data,g.gc,m,b),x+=f)}else m=Hm(s,g.data,g.gc,m,d),x=f;a.push(m),r.push(x),v=Math.max(m,v),y=Math.max(x,y)}!function(t,e){Cf(t,t=>{const i=t.gc,s=i.length/2;let n;if(s>e){for(n=0;n<s;++n)delete t.data[i[n]];i.splice(0,s)}})}(n,e);const w=a.indexOf(v),A=r.indexOf(y),k=t=>({width:a[t]||0,height:r[t]||0});return{first:k(0),last:k(e-1),widest:k(w),highest:k(A),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return rm(this._alignToPixels?Ym(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return hx(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=hx(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Kf(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),n=this._getLabelSizes(),a=t.autoSkipPadding||0,r=n?n.widest.width+a:0,o=n?n.highest.height+a:0;return this.isHorizontal()?o*i>r*s?r/i:o/s:o*s<r*i?o/i:r/s}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,s=this.options,{grid:n,position:a,border:r}=s,o=n.offset,l=this.isHorizontal(),c=this.ticks.length+(o?1:0),h=wv(n),d=[],u=r.setContext(this.getContext()),p=u.display?u.width:0,g=p/2,f=function(t){return Ym(i,t,p)};let m,x,b,v,y,w,A,k,C,_,E,S;if("top"===a)m=f(this.bottom),w=this.bottom-h,k=m-g,_=f(t.top)+g,S=t.bottom;else if("bottom"===a)m=f(this.top),_=t.top,S=f(t.bottom)-g,w=m+g,k=this.top+h;else if("left"===a)m=f(this.right),y=this.right-h,A=m-g,C=f(t.left)+g,E=t.right;else if("right"===a)m=f(this.left),C=t.left,E=f(t.right)-g,y=m+g,A=this.left+h;else if("x"===e){if("center"===a)m=f((t.top+t.bottom)/2+.5);else if(bf(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}_=t.top,S=t.bottom,w=m+g,k=w+h}else if("y"===e){if("center"===a)m=f((t.left+t.right)/2);else if(bf(a)){const t=Object.keys(a)[0],e=a[t];m=f(this.chart.scales[t].getPixelForValue(e))}y=m-g,A=y-h,C=t.left,E=t.right}const M=wf(s.ticks.maxTicksLimit,c),T=Math.max(1,Math.ceil(c/M));for(x=0;x<c;x+=T){const t=this.getContext(x),e=n.setContext(t),s=r.setContext(t),a=e.lineWidth,c=e.color,h=s.dash||[],u=s.dashOffset,p=e.tickWidth,g=e.tickColor,f=e.tickBorderDash||[],m=e.tickBorderDashOffset;b=yv(this,x,o),void 0!==b&&(v=Ym(i,b,a),l?y=A=C=E=v:w=k=_=S=v,d.push({tx1:y,ty1:w,tx2:A,ty2:k,x1:C,y1:_,x2:E,y2:S,width:a,color:c,borderDash:h,borderDashOffset:u,tickWidth:p,tickColor:g,tickBorderDash:f,tickBorderDashOffset:m}))}return this._ticksLength=c,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,i=this.options,{position:s,ticks:n}=i,a=this.isHorizontal(),r=this.ticks,{align:o,crossAlign:l,padding:c,mirror:h}=n,d=wv(i.grid),u=d+c,p=h?-c:u,g=-Kf(this.labelRotation),f=[];let m,x,b,v,y,w,A,k,C,_,E,S,M="middle";if("top"===s)w=this.bottom-p,A=this._getXAxisLabelAlignment();else if("bottom"===s)w=this.top+p,A=this._getXAxisLabelAlignment();else if("left"===s){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,y=t.x}else if("right"===s){const t=this._getYAxisLabelAlignment(d);A=t.textAlign,y=t.x}else if("x"===e){if("center"===s)w=(t.top+t.bottom)/2+u;else if(bf(s)){const t=Object.keys(s)[0],e=s[t];w=this.chart.scales[t].getPixelForValue(e)+u}A=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===s)y=(t.left+t.right)/2-u;else if(bf(s)){const t=Object.keys(s)[0],e=s[t];y=this.chart.scales[t].getPixelForValue(e)}A=this._getYAxisLabelAlignment(d).textAlign}"y"===e&&("start"===o?M="top":"end"===o&&(M="bottom"));const T=this._getLabelSizes();for(m=0,x=r.length;m<x;++m){b=r[m],v=b.label;const t=n.setContext(this.getContext(m));k=this.getPixelForTick(m)+n.labelOffset,C=this._resolveTickFontOptions(m),_=C.lineHeight,E=xf(v)?v.length:1;const e=E/2,i=t.color,o=t.textStrokeColor,c=t.textStrokeWidth;let d,u=A;if(a?(y=k,"inner"===A&&(u=m===x-1?this.options.reverse?"left":"right":0===m?this.options.reverse?"right":"left":"center"),S="top"===s?"near"===l||0!==g?-E*_+_/2:"center"===l?-T.highest.height/2-e*_+_:-T.highest.height+_/2:"near"===l||0!==g?_/2:"center"===l?T.highest.height/2-e*_:T.highest.height-E*_,h&&(S*=-1),0===g||t.showLabelBackdrop||(y+=_/2*Math.sin(g))):(w=k,S=(1-E)*_/2),t.showLabelBackdrop){const e=ox(t.backdropPadding),i=T.heights[m],s=T.widths[m];let n=S-e.top,a=0-e.left;switch(M){case"middle":n-=i/2;break;case"bottom":n-=i}switch(A){case"center":a-=s/2;break;case"right":a-=s;break;case"inner":m===x-1?a-=s:m>0&&(a-=s/2)}d={left:a,top:n,width:s+e.width,height:i+e.height,color:t.backdropColor}}f.push({label:v,font:C,textOffset:S,options:{rotation:g,color:i,strokeColor:o,strokeWidth:c,textAlign:u,textBaseline:M,translation:[y,w],backdrop:d}})}return f}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Kf(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:s,padding:n}}=this.options,a=t+n,r=this._getLabelSizes().widest.width;let o,l;return"left"===e?s?(l=this.right+n,"near"===i?o="left":"center"===i?(o="center",l+=r/2):(o="right",l+=r)):(l=this.right-a,"near"===i?o="right":"center"===i?(o="center",l-=r/2):(o="left",l=this.left)):"right"===e?s?(l=this.left+n,"near"===i?o="right":"center"===i?(o="center",l-=r/2):(o="left",l-=r)):(l=this.left+a,"near"===i?o="left":"center"===i?(o="center",l+=r/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:s,width:n,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,n,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(e=>e.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,a;const r=(t,e,s)=>{s.width&&s.color&&(i.save(),i.lineWidth=s.width,i.strokeStyle=s.color,i.setLineDash(s.borderDash||[]),i.lineDashOffset=s.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,a=s.length;n<a;++n){const t=s[n];e.drawOnChartArea&&r({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&r({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:s}}=this,n=i.setContext(this.getContext()),a=i.display?n.width:0;if(!a)return;const r=s.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let l,c,h,d;this.isHorizontal()?(l=Ym(t,this.left,a)-a/2,c=Ym(t,this.right,r)+r/2,h=d=o):(h=Ym(t,this.top,a)-a/2,d=Ym(t,this.bottom,r)+r/2,l=c=o),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(l,h),e.lineTo(c,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&Gm(e,i);const s=this.getLabelItems(t);for(const t of s){const i=t.options,s=t.font;Km(e,t.label,0,t.textOffset,s,i)}i&&$m(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;const n=lx(i.font),a=ox(i.padding),r=i.align;let o=n.lineHeight/2;"bottom"===e||"center"===e||bf(e)?(o+=a.bottom,xf(i.text)&&(o+=n.lineHeight*(i.text.length-1))):o+=a.top;const{titleX:l,titleY:c,maxWidth:h,rotation:d}=function(t,e,i,s){const{top:n,left:a,bottom:r,right:o,chart:l}=t,{chartArea:c,scales:h}=l;let d,u,p,g=0;const f=r-n,m=o-a;if(t.isHorizontal()){if(u=xm(s,a,o),bf(i)){const t=Object.keys(i)[0],s=i[t];p=h[t].getPixelForValue(s)+f-e}else p="center"===i?(c.bottom+c.top)/2+f-e:xv(t,i,e);d=o-a}else{if(bf(i)){const t=Object.keys(i)[0],s=i[t];u=h[t].getPixelForValue(s)-m+e}else u="center"===i?(c.left+c.right)/2-m+e:xv(t,i,e);p=xm(s,r,n),g="left"===i?-Xf:Xf}return{titleX:u,titleY:p,maxWidth:d,rotation:g}}(this,o,e,r);Km(t,i.text,0,0,n,{color:i.color,maxWidth:h,rotation:d,textAlign:kv(r,e,s),textBaseline:"middle",translation:[l,c]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=wf(t.grid&&t.grid.z,-1),s=wf(t.border&&t.border.z,0);return this._isVisible()&&this.draw===Cv.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[];let n,a;for(n=0,a=e.length;n<a;++n){const a=e[n];a[i]!==this.id||t&&a.type!==t||s.push(a)}return s}_resolveTickFontOptions(t){return lx(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class _v{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const s=this.items,n=t.id,a=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in s||(s[n]=t,function(t,e,i){const s=Tf(Object.create(null),[i?Rm.get(i):{},Rm.get(e),t.defaults]);Rm.set(e,s),t.defaultRoutes&&function(t,e){Object.keys(e).forEach(i=>{const s=i.split("."),n=s.pop(),a=[t].concat(s).join("."),r=e[i].split("."),o=r.pop(),l=r.join(".");Rm.route(a,n,l,o)})}(e,t.defaultRoutes),t.descriptors&&Rm.describe(e,t.descriptors)}(t,a,i),this.override&&Rm.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in Rm[s]&&(delete Rm[s][i],this.override&&delete Om[i])}}class Ev{constructor(){this.controllers=new _v(vb,"datasets",!0),this.elements=new _v(fv,"elements"),this.plugins=new _v(Object,"plugins"),this.scales=new _v(Cv,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{const s=i||this._getRegistryForType(e);i||s.isForType(e)||s===this.plugins&&e.id?this._exec(t,s,e):Cf(e,e=>{const s=i||this._getRegistryForType(e);this._exec(t,s,e)})})}_exec(t,e,i){const s=If(t);kf(i["before"+s],[],i),e[t](i),kf(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const s=e.get(t);if(void 0===s)throw new Error('"'+t+'" is not a registered '+i+".");return s}}var Sv=new Ev;class Mv{constructor(){this._init=[]}notify(t,e,i,s){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const n=s?this._descriptors(t).filter(s):this._descriptors(t),a=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,i,s){s=s||{};for(const n of t){const t=n.plugin;if(!1===kf(t[i],[e,s,n.options],t)&&s.cancelable)return!1}return!0}invalidate(){mf(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,s=wf(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],s=Object.keys(Sv.plugins.items);for(let t=0;t<s.length;t++)i.push(Sv.getPlugin(s[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const s=n[t];-1===i.indexOf(s)&&(i.push(s),e[s.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==s||e?function(t,{plugins:e,localIds:i},s,n){const a=[],r=t.getContext();for(const o of e){const e=o.id,l=Tv(s[e],n);null!==l&&a.push({plugin:o,options:Lv(t.config,{plugin:o,local:i[e]},l,r)})}return a}(t,n,s,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,s=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}}function Tv(t,e){return e||!1!==t?!0===t?{}:t:null}function Lv(t,{plugin:e,local:i},s,n){const a=t.pluginScopeKeys(e),r=t.getOptionScopes(s,a);return i&&e.defaults&&r.push(e.defaults),t.createResolver(r,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Pv(t,e){const i=Rm.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function Bv(t){if("x"===t||"y"===t||"r"===t)return t}function Ov(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function Iv(t,...e){if(Bv(t))return t;for(const i of e){const e=i.axis||Ov(i.position)||t.length>1&&Bv(t[0].toLowerCase());if(e)return e}throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function zv(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function Dv(t){const e=t.options||(t.options={});e.plugins=wf(e.plugins,{}),e.scales=function(t,e){const i=Om[t.type]||{scales:{}},s=e.scales||{},n=Pv(t.type,e),a=Object.create(null);return Object.keys(s).forEach(e=>{const r=s[e];if(!bf(r))return console.error(`Invalid scale configuration for scale: ${e}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const o=Iv(e,r,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter(e=>e.xAxisID===t||e.yAxisID===t);if(i.length)return zv(t,"x",i[0])||zv(t,"y",i[0])}return{}}(e,t),Rm.scales[r.type]),l=function(t,e){return t===e?"_index_":"_value_"}(o,n),c=i.scales||{};a[e]=Lf(Object.create(null),[{axis:o},r,c[o],c[l]])}),t.data.datasets.forEach(i=>{const n=i.type||t.type,r=i.indexAxis||Pv(n,e),o=(Om[n]||{}).scales||{};Object.keys(o).forEach(t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,r),n=i[e+"AxisID"]||e;a[n]=a[n]||Object.create(null),Lf(a[n],[{axis:e},s[n],o[t]])})}),Object.keys(a).forEach(t=>{const e=a[t];Lf(e,[Rm.scales[e.type],Rm.scale])}),a}(t,e)}function Fv(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const Rv=new Map,Hv=new Set;function Nv(t,e){let i=Rv.get(t);return i||(i=e(),Rv.set(t,i),Hv.add(i)),i}const Yv=(t,e,i)=>{const s=Of(e,i);void 0!==s&&t.add(s)};class Wv{constructor(t){this._config=function(t){return(t=t||{}).data=Fv(t.data),Dv(t),t}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Fv(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Dv(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Nv(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Nv(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Nv(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Nv(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let s=i.get(t);return s&&!e||(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){const{options:s,type:n}=this,a=this._cachedScopes(t,i),r=a.get(e);if(r)return r;const o=new Set;e.forEach(e=>{t&&(o.add(t),e.forEach(e=>Yv(o,t,e))),e.forEach(t=>Yv(o,s,t)),e.forEach(t=>Yv(o,Om[n]||{},t)),e.forEach(t=>Yv(o,Rm,t)),e.forEach(t=>Yv(o,Im,t))});const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),Hv.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,Om[e]||{},Rm.datasets[e]||{},{type:e},Rm,Im]}resolveNamedOptions(t,e,i,s=[""]){const n={$shared:!0},{resolver:a,subPrefixes:r}=Xv(this._resolverCache,t,s);let o=a;(function(t,e){const{isScriptable:i,isIndexable:s}=px(t);for(const n of e){const e=i(n),a=s(n),r=(a||e)&&t[n];if(e&&(Df(r)||jv(r))||a&&xf(r))return!0}return!1})(a,e)&&(n.$shared=!1,o=ux(a,i=Df(i)?i():i,this.createResolver(t,i,r)));for(const t of e)n[t]=o[t];return n}createResolver(t,e,i=[""],s){const{resolver:n}=Xv(this._resolverCache,t,i);return bf(e)?ux(n,e,void 0,s):n}}function Xv(t,e,i){let s=t.get(e);s||(s=new Map,t.set(e,s));const n=i.join();let a=s.get(n);return a||(a={resolver:dx(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},s.set(n,a)),a}const jv=t=>bf(t)&&Object.getOwnPropertyNames(t).some(e=>Df(t[e])),Vv=["top","bottom","left","right","chartArea"];function Gv(t,e){return"top"===t||"bottom"===t||-1===Vv.indexOf(t)&&"x"===e}function $v(t,e){return function(i,s){return i[t]===s[t]?i[e]-s[e]:i[t]-s[t]}}function Uv(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),kf(i&&i.onComplete,[t],e)}function qv(t){const e=t.chart,i=e.options.animation;kf(i&&i.onProgress,[t],e)}function Zv(t){return Px()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const Qv={},Kv=t=>{const e=Zv(t);return Object.values(Qv).filter(t=>t.canvas===e).pop()};function Jv(t,e,i){const s=Object.keys(t);for(const n of s){const s=+n;if(s>=e){const a=t[n];delete t[n],(i>0||s>e)&&(t[s+i]=a)}}}class ty{static defaults=Rm;static instances=Qv;static overrides=Om;static registry=Sv;static version="4.5.0";static getChart=Kv;static register(...t){Sv.add(...t),ey()}static unregister(...t){Sv.remove(...t),ey()}constructor(t,e){const i=this.config=new Wv(e),s=Zv(t),n=Kv(s);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const a=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!Px()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Jb:gv}(s)),this.platform.updateConfig(i);const r=this.platform.acquireContext(s,a.aspectRatio),o=r&&r.canvas,l=o&&o.height,c=o&&o.width;this.id=ff(),this.ctx=r,this.canvas=o,this.width=c,this.height=l,this._options=a,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 Mv,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...s){return e?(clearTimeout(i),i=setTimeout(t,e,s)):t.apply(this,s),e}}(t=>this.update(t),a.resizeDelay||0),this._dataChanges=[],Qv[this.id]=this,r&&o?(sb.listen(this,"complete",Uv),sb.listen(this,"progress",qv),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:n}=this;return mf(t)?e&&n?n:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Sv}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Hx(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Wm(this.canvas,this.ctx),this}stop(){return sb.stop(this),this}resize(t,e){sb.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(s,t,e,n),r=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Hx(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),kf(i.onResize,[this,a],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){Cf(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{});let n=[];e&&(n=n.concat(Object.keys(e).map(t=>{const i=e[t],s=Iv(t,i),n="r"===s,a="x"===s;return{options:i,dposition:n?"chartArea":a?"bottom":"left",dtype:n?"radialLinear":a?"category":"linear"}}))),Cf(n,e=>{const n=e.options,a=n.id,r=Iv(a,n),o=wf(n.type,e.dtype);void 0!==n.position&&Gv(n.position,r)===Gv(e.dposition)||(n.position=e.dposition),s[a]=!0;let l=null;a in i&&i[a].type===o?l=i[a]:(l=new(Sv.getScale(o))({id:a,type:o,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)}),Cf(s,(t,e)=>{t||delete i[e]}),Cf(i,t=>{Qb.configure(this,t,t.options),Qb.addBox(this,t)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort($v("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){const s=e[i];let n=this.getDatasetMeta(i);const a=s.type||this.config.type;if(n.type&&n.type!==a&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=a,n.indexAxis=s.indexAxis||Pv(a,this.options),n.order=s.order||0,n.index=i,n.label=""+s.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=Sv.getController(a),{datasetElementType:s,dataElementType:r}=Rm.datasets[a];Object.assign(e,{dataElementType:Sv.getElement(r),datasetElementType:s&&Sv.getElement(s)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){Cf(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!s&&-1===n.indexOf(e);e.buildOrUpdateElements(i),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),s||Cf(n,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort($v("z","_idx"));const{_active:r,_lastEvent:o}=this;o?this._eventHandler(o,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){Cf(this.scales,t=>{Qb.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);Ff(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:s,count:n}of e)Jv(t,s,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),s=i(0);for(let t=1;t<e;t++)if(!Ff(s,i(t)))return;return Array.from(s).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Qb.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Cf(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,Df(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",s)&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(sb.has(this)?this.attached&&!sb.running(this)&&sb.start(this):(this.draw(),Uv({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(t,e)}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let s,n;for(s=0,n=e.length;s<n;++s){const n=e[s];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=eb(this,t);!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(s&&Gm(e,s),t.controller.draw(),s&&$m(e),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return Vm(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){const n=Hb.modes[e];return"function"==typeof n?n(this,t,i,s):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let s=i.filter(t=>t&&t._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=hx(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const s=i?"show":"hide",n=this.getDatasetMeta(t),a=n.controller._resolveAnimations(void 0,s);zf(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(n,{visible:i}),this.update(e=>e.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),sb.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Wm(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Qv[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Cf(this.options.events,t=>i(t,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,s)=>{e.addEventListener(this,i,s),t[i]=s},s=(i,s)=>{t[i]&&(e.removeEventListener(this,i,s),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const r=()=>{s("attach",r),this.attached=!0,this.resize(),i("resize",n),i("detach",a)};a=()=>{this.attached=!1,s("resize",n),this._stop(),this._resize(0,0),i("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){Cf(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Cf(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const s=i?"set":"remove";let n,a,r,o;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+s+"DatasetHoverStyle"]()),r=0,o=t.length;r<o;++r){a=t[r];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[s+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});!_f(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){const s=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),a=n(e,t),r=i?t:n(t,e);a.length&&this.updateHoverStyle(a,s.mode,!1),r.length&&s.mode&&this.updateHoverStyle(r,s.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,s))return;const n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:s=[],options:n}=this,a=e,r=this._getActiveElements(t,s,i,a),o=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,s){return i&&"mouseout"!==t.type?s?e:t:null}(t,this._lastEvent,i,o);i&&(this._lastEvent=null,kf(n.onHover,[t,r,this],this),o&&kf(n.onClick,[t,r,this],this));const c=!_f(r,s);return(c||e)&&(this._active=r,this._updateHoverStyles(r,s,e)),this._lastEvent=l,c}_getActiveElements(t,e,i,s){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,s)}}function ey(){return Cf(ty.instances,t=>t._plugins.invalidate())}function iy(t,e,i,s){return{x:i+t*Math.cos(e),y:s+t*Math.sin(e)}}function sy(t,e,i,s,n,a){const{x:r,y:o,startAngle:l,pixelMargin:c,innerRadius:h}=e,d=Math.max(e.outerRadius+s+i-c,0),u=h>0?h+s+i+c:0;let p=0;const g=n-l;if(s){const t=((h>0?h-s:0)+(d>0?d-s:0))/2;p=(g-(0!==t?g*t/(t+s):g))/2}const f=(g-Math.max(.001,g*d-i/Rf)/d)/2,m=l+f+p,x=n-f-p,{outerStart:b,outerEnd:v,innerStart:y,innerEnd:w}=function(t,e,i,s){const n=nx(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(i-e)/2,r=Math.min(a,s*e/2),o=t=>{const e=(i-Math.min(a,t))*s/2;return rm(t,0,Math.min(a,e))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:rm(n.innerStart,0,r),innerEnd:rm(n.innerEnd,0,r)}}(e,u,d,x-m),A=d-b,k=d-v,C=m+b/A,_=x-v/k,E=u+y,S=u+w,M=m+y/E,T=x-w/S;if(t.beginPath(),a){const e=(C+_)/2;if(t.arc(r,o,d,C,e),t.arc(r,o,d,e,_),v>0){const e=iy(k,_,r,o);t.arc(e.x,e.y,v,_,x+Xf)}const i=iy(S,x,r,o);if(t.lineTo(i.x,i.y),w>0){const e=iy(S,T,r,o);t.arc(e.x,e.y,w,x+Xf,T+Math.PI)}const s=(x-w/u+(m+y/u))/2;if(t.arc(r,o,u,x-w/u,s,!0),t.arc(r,o,u,s,m+y/u,!0),y>0){const e=iy(E,M,r,o);t.arc(e.x,e.y,y,M+Math.PI,m-Xf)}const n=iy(A,m,r,o);if(t.lineTo(n.x,n.y),b>0){const e=iy(A,C,r,o);t.arc(e.x,e.y,b,m-Xf,C)}}else{t.moveTo(r,o);const e=Math.cos(C)*d+r,i=Math.sin(C)*d+o;t.lineTo(e,i);const s=Math.cos(_)*d+r,n=Math.sin(_)*d+o;t.lineTo(s,n)}t.closePath()}function ny(t,e,i=e){t.lineCap=wf(i.borderCapStyle,e.borderCapStyle),t.setLineDash(wf(i.borderDash,e.borderDash)),t.lineDashOffset=wf(i.borderDashOffset,e.borderDashOffset),t.lineJoin=wf(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=wf(i.borderWidth,e.borderWidth),t.strokeStyle=wf(i.borderColor,e.borderColor)}function ay(t,e,i){t.lineTo(i.x,i.y)}function ry(t,e,i={}){const s=t.length,{start:n=0,end:a=s-1}=i,{start:r,end:o}=e,l=Math.max(n,r),c=Math.min(a,o),h=n<r&&a<r||n>o&&a>o;return{count:s,start:l,loop:e.loop,ilen:c<l&&!h?s+c-l:c-l}}function oy(t,e,i,s){const{points:n,options:a}=e,{count:r,start:o,loop:l,ilen:c}=ry(n,i,s),h=function(t){return t.stepped?Um:t.tension||"monotone"===t.cubicInterpolationMode?qm:ay}(a);let d,u,p,{move:g=!0,reverse:f}=s||{};for(d=0;d<=c;++d)u=n[(o+(f?c-d:d))%r],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):h(t,p,u,f,a.stepped),p=u);return l&&(u=n[(o+(f?c:0))%r],h(t,p,u,f,a.stepped)),!!l}function ly(t,e,i,s){const n=e.points,{count:a,start:r,ilen:o}=ry(n,i,s),{move:l=!0,reverse:c}=s||{};let h,d,u,p,g,f,m=0,x=0;const b=t=>(r+(c?o-t:t))%a,v=()=>{p!==g&&(t.lineTo(m,g),t.lineTo(m,p),t.lineTo(m,f))};for(l&&(d=n[b(0)],t.moveTo(d.x,d.y)),h=0;h<=o;++h){if(d=n[b(h)],d.skip)continue;const e=d.x,i=d.y,s=0|e;s===u?(i<p?p=i:i>g&&(g=i),m=(x*m+e)/++x):(v(),t.lineTo(e,i),u=s,x=0,p=g=i),f=i}v()}function cy(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?oy:ly}const hy="function"==typeof Path2D;class dy extends fv{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const s=i.spanGaps?this._loop:this._fullLoop;Lx(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(t,e){const i=t.points,s=t.options.spanGaps,n=i.length;if(!n)return[];const a=!!t._loop,{start:r,end:o}=function(t,e,i,s){let n=0,a=e-1;if(i&&!s)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(a+=n);a>n&&t[a%e].skip;)a--;return a%=e,{start:n,end:a}}(i,n,a,s);return function(t,e,i,s){return s&&s.setContext&&i?function(t,e,i,s){const n=t._chart.getContext(),a=Kx(t.options),{_datasetIndex:r,options:{spanGaps:o}}=t,l=i.length,c=[];let h=a,d=e[0].start,u=d;function p(t,e,s,n){const a=o?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=a;for(;i[e%l].skip;)e+=a;t%l!==e%l&&(c.push({start:t%l,end:e%l,loop:s,style:n}),h=n,d=e%l)}}for(const t of e){d=o?d:t.start;let e,a=i[d%l];for(u=d+1;u<=t.end;u++){const o=i[u%l];e=Kx(s.setContext(hx(n,{type:"segment",p0:a,p1:o,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:r}))),Jx(e,h)&&p(d,u-1,t.loop,h),a=o,h=e}d<u-1&&p(d,u-1,t.loop,h)}return c}(t,e,i,s):e}(t,!0===s?[{start:r,end:o,loop:a}]:function(t,e,i,s){const n=t.length,a=[];let r,o=e,l=t[e];for(r=e+1;r<=i;++r){const i=t[r%n];i.skip||i.stop?l.skip||(s=!1,a.push({start:e%n,end:(r-1)%n,loop:s}),e=o=i.stop?r:null):(o=r,l.skip&&(e=r)),l=i}return null!==o&&a.push({start:e%n,end:o%n,loop:s}),a}(i,r,o<r?o+n:o,!!t._fullLoop&&0===r&&o===n-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,s=t[e],n=this.points,a=Qx(this,{property:e,start:s,end:s});if(!a.length)return;const r=[],o=function(t){return t.stepped?Xx:t.tension||"monotone"===t.cubicInterpolationMode?jx:Wx}(i);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:h}=a[l],d=n[c],u=n[h];if(d===u){r.push(d);continue}const p=o(d,u,Math.abs((s-d[e])/(u[e]-d[e])),i.stepped);p[e]=t[e],r.push(p)}return 1===r.length?r[0]:r}pathSegment(t,e,i){return cy(this)(t,this,e,i)}path(t,e,i){const s=this.segments,n=cy(this);let a=this._loop;e=e||0,i=i||this.points.length-e;for(const r of s)a&=n(t,this,r,{start:e,end:e+i-1});return!!a}draw(t,e,i,s){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,i,s){hy&&!e.options.segment?function(t,e,i,s){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,s)&&n.closePath()),ny(t,e.options),t.stroke(n)}(t,e,i,s):function(t,e,i,s){const{segments:n,options:a}=e,r=cy(e);for(const o of n)ny(t,a,o.style),t.beginPath(),r(t,e,o,{start:i,end:i+s-1})&&t.closePath(),t.stroke()}(t,e,i,s)}(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function uy(t,e,i,s){const n=t.options,{[i]:a}=t.getProps([i],s);return Math.abs(e-a)<n.radius+n.hitRadius}function py(t,e){const{x:i,y:s,base:n,width:a,height:r}=t.getProps(["x","y","base","width","height"],e);let o,l,c,h,d;return t.horizontal?(d=r/2,o=Math.min(i,n),l=Math.max(i,n),c=s-d,h=s+d):(d=a/2,o=i-d,l=i+d,c=Math.min(s,n),h=Math.max(s,n)),{left:o,top:c,right:l,bottom:h}}function gy(t,e,i,s){return t?0:rm(e,i,s)}function fy(t,e,i,s){const n=null===e,a=null===i,r=t&&!(n&&a)&&py(t,s);return r&&(n||om(e,r.left,r.right))&&(a||om(i,r.top,r.bottom))}function my(t,e){t.rect(e.x,e.y,e.w,e.h)}function xy(t,e,i={}){const s=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,a=(t.x+t.w!==i.x+i.w?e:0)-s,r=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+s,y:t.y+n,w:t.w+a,h:t.h+r,radius:t.radius}}var by=Object.freeze({__proto__:null,ArcElement:class extends fv{static id="arc";static 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};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.getProps(["x","y"],i),{angle:n,distance:a}=em(s,{x:t,y:e}),{startAngle:r,endAngle:o,innerRadius:l,outerRadius:c,circumference:h}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),d=(this.options.spacing+this.options.borderWidth)/2,u=wf(h,o-r),p=am(n,r,o)&&r!==o,g=u>=Hf||p,f=om(a,l+d,c+d);return g&&f}getCenterPoint(t){const{x:e,y:i,startAngle:s,endAngle:n,innerRadius:a,outerRadius:r}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:o,spacing:l}=this.options,c=(s+n)/2,h=(a+r+l+o)/2;return{x:e+Math.cos(c)*h,y:i+Math.sin(c)*h}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,s=(e.offset||0)/4,n=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>Hf?Math.floor(i/Hf):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const r=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(r)*s,Math.sin(r)*s);const o=s*(1-Math.sin(Math.min(Rf,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,s,n){const{fullCircles:a,startAngle:r,circumference:o}=e;let l=e.endAngle;if(a){sy(t,e,i,s,l,n);for(let e=0;e<a;++e)t.fill();isNaN(o)||(l=r+(o%Hf||Hf))}sy(t,e,i,s,l,n),t.fill()}(t,this,o,n,a),function(t,e,i,s,n){const{fullCircles:a,startAngle:r,circumference:o,options:l}=e,{borderWidth:c,borderJoinStyle:h,borderDash:d,borderDashOffset:u,borderRadius:p}=l,g="inner"===l.borderAlign;if(!c)return;t.setLineDash(d||[]),t.lineDashOffset=u,g?(t.lineWidth=2*c,t.lineJoin=h||"round"):(t.lineWidth=c,t.lineJoin=h||"bevel");let f=e.endAngle;if(a){sy(t,e,i,s,f,n);for(let e=0;e<a;++e)t.stroke();isNaN(o)||(f=r+(o%Hf||Hf))}g&&function(t,e,i){const{startAngle:s,pixelMargin:n,x:a,y:r,outerRadius:o,innerRadius:l}=e;let c=n/o;t.beginPath(),t.arc(a,r,o,s-c,i+c),l>n?(c=n/l,t.arc(a,r,l,i+c,s-c,!0)):t.arc(a,r,n,i+Xf,s-Xf),t.closePath(),t.clip()}(t,e,f),l.selfJoin&&f-r>=Rf&&0===p&&"miter"!==h&&function(t,e,i){const{startAngle:s,x:n,y:a,outerRadius:r,innerRadius:o,options:l}=e,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/r,nm(s-i));if(t.beginPath(),t.arc(n,a,r-c/2,s+d/2,i-d/2),o>0){const e=Math.min(c/o,nm(s-i));t.arc(n,a,o+c/2,i-e/2,s+e/2,!0)}else{const e=Math.min(c/2,r*nm(s-i));if("round"===h)t.arc(n,a,e,i-Rf/2,s+Rf/2,!0);else if("bevel"===h){const r=2*e*e,o=-r*Math.cos(i+Rf/2)+n,l=-r*Math.sin(i+Rf/2)+a,c=r*Math.cos(s+Rf/2)+n,h=r*Math.sin(s+Rf/2)+a;t.lineTo(o,l),t.lineTo(c,h)}}t.closePath(),t.moveTo(0,0),t.rect(0,0,t.canvas.width,t.canvas.height),t.clip("evenodd")}(t,e,f),a||(sy(t,e,i,s,f,n),t.stroke())}(t,this,o,n,a),t.restore()}},BarElement:class extends fv{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:s}}=this,{inner:n,outer:a}=function(t){const e=py(t),i=e.right-e.left,s=e.bottom-e.top,n=function(t,e,i){const s=t.options.borderWidth,n=t.borderSkipped,a=ax(s);return{t:gy(n.top,a.top,0,i),r:gy(n.right,a.right,0,e),b:gy(n.bottom,a.bottom,0,i),l:gy(n.left,a.left,0,e)}}(t,i/2,s/2),a=function(t,e,i){const{enableBorderRadius:s}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,a=rx(n),r=Math.min(e,i),o=t.borderSkipped,l=s||bf(n);return{topLeft:gy(!l||o.top||o.left,a.topLeft,0,r),topRight:gy(!l||o.top||o.right,a.topRight,0,r),bottomLeft:gy(!l||o.bottom||o.left,a.bottomLeft,0,r),bottomRight:gy(!l||o.bottom||o.right,a.bottomRight,0,r)}}(t,i/2,s/2);return{outer:{x:e.left,y:e.top,w:i,h:s,radius:a},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:s-n.t-n.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,a.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(n.b,n.r))}}}}(this),r=(o=a.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?Jm:my;var o;t.save(),a.w===n.w&&a.h===n.h||(t.beginPath(),r(t,xy(a,e,n)),t.clip(),r(t,xy(n,-e,a)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),r(t,xy(n,e)),t.fillStyle=s,t.fill(),t.restore()}inRange(t,e,i){return fy(this,t,e,i)}inXRange(t,e){return fy(this,t,null,e)}inYRange(t,e){return fy(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:s,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+s)/2:e,y:n?i:(i+s)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}},LineElement:dy,PointElement:class extends fv{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const s=this.options,{x:n,y:a}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-a,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return uy(this,t,"x",e)}inYRange(t,e){return uy(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Vm(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,Xm(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}});const vy=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],yy=vy.map(t=>t.replace("rgb(","rgba(").replace(")",", 0.5)"));function wy(t){return vy[t%vy.length]}function Ay(t){return yy[t%yy.length]}function ky(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var Cy={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:s},options:n}=t.config,{elements:a}=n,r=ky(s)||(o=n)&&(o.borderColor||o.backgroundColor)||a&&ky(a)||"rgba(0,0,0,0.1)"!==Rm.borderColor||"rgba(0,0,0,0.1)"!==Rm.backgroundColor;var o;if(!i.forceOverride&&r)return;const l=function(t){let e=0;return(i,s)=>{const n=t.getDatasetMeta(s).controller;n instanceof Mb?e=function(t,e){return t.backgroundColor=t.data.map(()=>wy(e++)),e}(i,e):n instanceof Tb?e=function(t,e){return t.backgroundColor=t.data.map(()=>Ay(e++)),e}(i,e):n&&(e=function(t,e){return t.borderColor=wy(e),t.backgroundColor=Ay(e),++e}(i,e))}}(t);s.forEach(l)}};function _y(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function Ey(t){t.data.datasets.forEach(t=>{_y(t)})}var Sy={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void Ey(t);const s=t.width;t.data.datasets.forEach((e,n)=>{const{_data:a,indexAxis:r}=e,o=t.getDatasetMeta(n),l=a||e.data;if("y"===cx([r,t.options.indexAxis]))return;if(!o.controller.supportsDecimation)return;const c=t.scales[o.xAxisID];if("linear"!==c.type&&"time"!==c.type)return;if(t.options.parsing)return;let h,{start:d,count:u}=function(t,e){const i=e.length;let s,n=0;const{iScale:a}=t,{min:r,max:o,minDefined:l,maxDefined:c}=a.getUserBounds();return l&&(n=rm(cm(e,a.axis,r).lo,0,i-1)),s=c?rm(cm(e,a.axis,o).hi+1,n,i)-n:i-n,{start:n,count:s}}(o,l);if(u<=(i.threshold||4*s))_y(e);else{switch(mf(a)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":h=function(t,e,i,s,n){const a=n.samples||s;if(a>=i)return t.slice(e,e+i);const r=[],o=(i-2)/(a-2);let l=0;const c=e+i-1;let h,d,u,p,g,f=e;for(r[l++]=t[f],h=0;h<a-2;h++){let s,n=0,a=0;const c=Math.floor((h+1)*o)+1+e,m=Math.min(Math.floor((h+2)*o)+1,i)+e,x=m-c;for(s=c;s<m;s++)n+=t[s].x,a+=t[s].y;n/=x,a/=x;const b=Math.floor(h*o)+1+e,v=Math.min(Math.floor((h+1)*o)+1,i)+e,{x:y,y:w}=t[f];for(u=p=-1,s=b;s<v;s++)p=.5*Math.abs((y-n)*(t[s].y-w)-(y-t[s].x)*(a-w)),p>u&&(u=p,d=t[s],g=s);r[l++]=d,f=g}return r[l++]=t[c],r}(l,d,u,s,i);break;case"min-max":h=function(t,e,i,s){let n,a,r,o,l,c,h,d,u,p,g=0,f=0;const m=[],x=e+i-1,b=t[e].x,v=t[x].x-b;for(n=e;n<e+i;++n){a=t[n],r=(a.x-b)/v*s,o=a.y;const e=0|r;if(e===l)o<u?(u=o,c=n):o>p&&(p=o,h=n),g=(f*g+a.x)/++f;else{const i=n-1;if(!mf(c)&&!mf(h)){const e=Math.min(c,h),s=Math.max(c,h);e!==d&&e!==i&&m.push({...t[e],x:g}),s!==d&&s!==i&&m.push({...t[s],x:g})}n>0&&i!==d&&m.push(t[i]),m.push(a),l=e,f=0,u=p=o,c=h=d=n}}return m}(l,d,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=h}})},destroy(t){Ey(t)}};function My(t,e,i,s){if(s)return;let n=e[t],a=i[t];return"angle"===t&&(n=nm(n),a=nm(a)),{property:t,start:n,end:a}}function Ty(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function Ly(t,e,i,s){return t&&e?s(t[i],e[i]):t?t[i]:e?e[i]:0}function Py(t,e){let i=[],s=!1;return xf(t)?(s=!0,i=t):i=function(t,e){const{x:i=null,y:s=null}=t||{},n=e.points,a=[];return e.segments.forEach(({start:t,end:e})=>{e=Ty(t,e,n);const r=n[t],o=n[e];null!==s?(a.push({x:r.x,y:s}),a.push({x:o.x,y:s})):null!==i&&(a.push({x:i,y:r.y}),a.push({x:i,y:o.y}))}),a}(t,e),i.length?new dy({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function By(t){return t&&!1!==t.fill}function Oy(t,e,i){let s=t[e].fill;const n=[e];let a;if(!i)return s;for(;!1!==s&&-1===n.indexOf(s);){if(!vf(s))return s;if(a=t[s],!a)return!1;if(a.visible)return s;n.push(s),s=a.fill}return!1}function Iy(t,e,i){const s=function(t){const e=t.options,i=e.fill;let s=wf(i&&i.target,i);return void 0===s&&(s=!!e.backgroundColor),!1!==s&&null!==s&&(!0===s?"origin":s)}(t);if(bf(s))return!isNaN(s.value)&&s;let n=parseFloat(s);return vf(n)&&Math.floor(n)===n?function(t,e,i,s){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=s)&&i}(s[0],e,n,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function zy(t,e,i){const s=[];for(let n=0;n<i.length;n++){const a=i[n],{first:r,last:o,point:l}=Dy(a,e,"x");if(!(!l||r&&o))if(r)s.unshift(l);else if(t.push(l),!o)break}t.push(...s)}function Dy(t,e,i){const s=t.interpolate(e,i);if(!s)return{};const n=s[i],a=t.segments,r=t.points;let o=!1,l=!1;for(let t=0;t<a.length;t++){const e=a[t],s=r[e.start][i],c=r[e.end][i];if(om(n,s,c)){o=n===s,l=n===c;break}}return{first:o,last:l,point:s}}class Fy{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:s,y:n,radius:a}=this;return e=e||{start:0,end:Hf},t.arc(s,n,a,e.end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:s}=this,n=t.angle;return{x:e+Math.cos(n)*s,y:i+Math.sin(n)*s,angle:n}}}function Ry(t,e,i){const s=function(t){const{chart:e,fill:i,line:s}=t;if(vf(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:s}=t,n=[],a=s.segments,r=s.points,o=function(t,e){const i=[],s=t.getMatchingVisibleMetas("line");for(let t=0;t<s.length;t++){const n=s[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);o.push(Py({x:null,y:e.bottom},s));for(let t=0;t<a.length;t++){const e=a[t];for(let t=e.start;t<=e.end;t++)zy(n,r[t],o)}return new dy({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,s=e.options,n=e.getLabels().length,a=s.reverse?e.max:e.min,r=function(t,e,i){let s;return s="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:bf(t)?t.value:e.getBaseValue(),s}(i,e,a),o=[];if(s.grid.circular){const t=e.getPointPositionForValue(0,a);return new Fy({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(r)})}for(let t=0;t<n;++t)o.push(e.getPointPositionForValue(t,r));return o}(t):function(t){const{scale:e={},fill:i}=t,s=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:bf(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(vf(s)){const t=e.isHorizontal();return{x:t?s:null,y:t?null:s}}return null}(t)}(t);return n instanceof Fy?n:Py(n,s)}(e),{chart:n,index:a,line:r,scale:o,axis:l}=e,c=r.options,h=c.fill,d=c.backgroundColor,{above:u=d,below:p=d}=h||{},g=n.getDatasetMeta(a),f=eb(n,g);s&&r.points.length&&(Gm(t,i),function(t,e){const{line:i,target:s,above:n,below:a,area:r,scale:o,clip:l}=e,c=i._loop?"angle":e.axis;t.save();let h=a;a!==n&&("x"===c?(Hy(t,s,r.top),Yy(t,{line:i,target:s,color:n,scale:o,property:c,clip:l}),t.restore(),t.save(),Hy(t,s,r.bottom)):"y"===c&&(Ny(t,s,r.left),Yy(t,{line:i,target:s,color:a,scale:o,property:c,clip:l}),t.restore(),t.save(),Ny(t,s,r.right),h=n)),Yy(t,{line:i,target:s,color:h,scale:o,property:c,clip:l}),t.restore()}(t,{line:r,target:s,above:u,below:p,area:i,scale:o,axis:l,clip:f}),$m(t))}function Hy(t,e,i){const{segments:s,points:n}=e;let a=!0,r=!1;t.beginPath();for(const o of s){const{start:s,end:l}=o,c=n[s],h=n[Ty(s,l,n)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(c.x,i),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,o,{move:r}),r?t.closePath():t.lineTo(h.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function Ny(t,e,i){const{segments:s,points:n}=e;let a=!0,r=!1;t.beginPath();for(const o of s){const{start:s,end:l}=o,c=n[s],h=n[Ty(s,l,n)];a?(t.moveTo(c.x,c.y),a=!1):(t.lineTo(i,c.y),t.lineTo(c.x,c.y)),r=!!e.pathSegment(t,o,{move:r}),r?t.closePath():t.lineTo(i,h.y)}t.lineTo(i,e.first().y),t.closePath(),t.clip()}function Yy(t,e){const{line:i,target:s,property:n,color:a,scale:r,clip:o}=e,l=function(t,e,i){const s=t.segments,n=t.points,a=e.points,r=[];for(const t of s){let{start:s,end:o}=t;o=Ty(s,o,n);const l=My(i,n[s],n[o],t.loop);if(!e.segments){r.push({source:t,target:l,start:n[s],end:n[o]});continue}const c=Qx(e,l);for(const e of c){const s=My(i,a[e.start],a[e.end],e.loop),o=Zx(t,n,s);for(const t of o)r.push({source:t,target:e,start:{[i]:Ly(l,s,"start",Math.max)},end:{[i]:Ly(l,s,"end",Math.min)}})}}return r}(i,s,n);for(const{source:e,target:c,start:h,end:d}of l){const{style:{backgroundColor:l=a}={}}=e,u=!0!==s;t.save(),t.fillStyle=l,Wy(t,r,o,u&&My(n,h,d)),t.beginPath();const p=!!i.pathSegment(t,e);let g;if(u){p?t.closePath():Xy(t,s,d,n);const e=!!s.pathSegment(t,c,{move:p,reverse:!0});g=p&&e,g||Xy(t,s,h,n)}t.closePath(),t.fill(g?"evenodd":"nonzero"),t.restore()}}function Wy(t,e,i,s){const n=e.chart.chartArea,{property:a,start:r,end:o}=s||{};if("x"===a||"y"===a){let e,s,l,c;"x"===a?(e=r,s=n.top,l=o,c=n.bottom):(e=n.left,s=r,l=n.right,c=o),t.beginPath(),i&&(e=Math.max(e,i.left),l=Math.min(l,i.right),s=Math.max(s,i.top),c=Math.min(c,i.bottom)),t.rect(e,s,l-e,c-s),t.clip()}}function Xy(t,e,i,s){const n=e.interpolate(i,s);n&&t.lineTo(n.x,n.y)}var jy={id:"filler",afterDatasetsUpdate(t,e,i){const s=(t.data.datasets||[]).length,n=[];let a,r,o,l;for(r=0;r<s;++r)a=t.getDatasetMeta(r),o=a.dataset,l=null,o&&o.options&&o instanceof dy&&(l={visible:t.isDatasetVisible(r),index:r,fill:Iy(o,r,s),chart:t,axis:a.controller.options.indexAxis,scale:a.vScale,line:o}),a.$filler=l,n.push(l);for(r=0;r<s;++r)l=n[r],l&&!1!==l.fill&&(l.fill=Oy(n,r,i.propagate))},beforeDraw(t,e,i){const s="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),a=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(a,i.axis),s&&i.fill&&Ry(t.ctx,i,a))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const s=t.getSortedVisibleDatasetMetas();for(let e=s.length-1;e>=0;--e){const i=s[e].$filler;By(i)&&Ry(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const s=e.meta.$filler;By(s)&&"beforeDatasetDraw"===i.drawTime&&Ry(t.ctx,s,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Vy=(t,e)=>{let{boxHeight:i=e,boxWidth:s=e}=t;return t.usePointStyle&&(i=Math.min(i,e),s=t.pointStyleWidth||Math.min(s,e)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(e,i)}};class Gy extends fv{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=kf(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,s=lx(i.font),n=s.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:o}=Vy(i,n);let l,c;e.font=s.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,n,r,o)+10):(c=this.maxHeight,l=this._fitCols(a,s,r,o)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,s){const{ctx:n,maxWidth:a,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],c=s+r;let h=t;n.textAlign="left",n.textBaseline="middle";let d=-1,u=-c;return this.legendItems.forEach((t,p)=>{const g=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+g+2*r>a)&&(h+=c,l[l.length-(p>0?0:1)]=0,u+=c,d++),o[p]={left:0,top:u,row:d,width:g,height:s},l[l.length-1]+=g+r}),h}_fitCols(t,e,i,s){const{ctx:n,maxHeight:a,options:{labels:{padding:r}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let h=r,d=0,u=0,p=0,g=0;return this.legendItems.forEach((t,a)=>{const{itemWidth:f,itemHeight:m}=function(t,e,i,s,n){const a=function(t,e,i,s){let n=t.text;return n&&"string"!=typeof n&&(n=n.reduce((t,e)=>t.length>e.length?t:e)),e+i.size/2+s.measureText(n).width}(s,t,e,i),r=function(t,e,i){let s=t;return"string"!=typeof e.text&&(s=$y(e,i)),s}(n,s,e.lineHeight);return{itemWidth:a,itemHeight:r}}(i,e,n,t,s);a>0&&u+m+2*r>c&&(h+=d+r,l.push({width:d,height:u}),p+=d+r,g++,d=u=0),o[a]={left:p,top:u,col:g,width:f,height:m},d=Math.max(d,f),u+=m+r}),h+=d,l.push({width:d,height:u}),h}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:s},rtl:n}}=this,a=Vx(n,this.left,this.width);if(this.isHorizontal()){let n=0,r=xm(i,this.left+s,this.right-this.lineWidths[n]);for(const o of e)n!==o.row&&(n=o.row,r=xm(i,this.left+s,this.right-this.lineWidths[n])),o.top+=this.top+t+s,o.left=a.leftForLtr(a.x(r),o.width),r+=o.width+s}else{let n=0,r=xm(i,this.top+t+s,this.bottom-this.columnSizes[n].height);for(const o of e)o.col!==n&&(n=o.col,r=xm(i,this.top+t+s,this.bottom-this.columnSizes[n].height)),o.top=r,o.left+=this.left+s,o.left=a.leftForLtr(a.x(o.left),o.width),r+=o.height+s}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Gm(t,this),this._draw(),$m(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:s}=this,{align:n,labels:a}=t,r=Rm.color,o=Vx(t.rtl,this.left,this.width),l=lx(a.font),{padding:c}=a,h=l.size,d=h/2;let u;this.drawTitle(),s.textAlign=o.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=l.string;const{boxWidth:p,boxHeight:g,itemHeight:f}=Vy(a,h),m=this.isHorizontal(),x=this._computeTitleHeight();u=m?{x:xm(n,this.left+c,this.right-i[0]),y:this.top+c+x,line:0}:{x:this.left+c,y:xm(n,this.top+x+c,this.bottom-e[0].height),line:0},Gx(this.ctx,t.textDirection);const b=f+c;this.legendItems.forEach((v,y)=>{s.strokeStyle=v.fontColor,s.fillStyle=v.fontColor;const w=s.measureText(v.text).width,A=o.textAlign(v.textAlign||(v.textAlign=a.textAlign)),k=p+d+w;let C=u.x,_=u.y;if(o.setWidth(this.width),m?y>0&&C+k+c>this.right&&(_=u.y+=b,u.line++,C=u.x=xm(n,this.left+c,this.right-i[u.line])):y>0&&_+b>this.bottom&&(C=u.x=C+e[u.line].width+c,u.line++,_=u.y=xm(n,this.top+x+c,this.bottom-e[u.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;s.save();const n=wf(i.lineWidth,1);if(s.fillStyle=wf(i.fillStyle,r),s.lineCap=wf(i.lineCap,"butt"),s.lineDashOffset=wf(i.lineDashOffset,0),s.lineJoin=wf(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=wf(i.strokeStyle,r),s.setLineDash(wf(i.lineDash,[])),a.usePointStyle){const r={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=o.xPlus(t,p/2);jm(s,r,l,e+d,a.pointStyleWidth&&p)}else{const a=e+Math.max((h-g)/2,0),r=o.leftForLtr(t,p),l=rx(i.borderRadius);s.beginPath(),Object.values(l).some(t=>0!==t)?Jm(s,{x:r,y:a,w:p,h:g,radius:l}):s.rect(r,a,p,g),s.fill(),0!==n&&s.stroke()}s.restore()}(o.x(C),_,v),C=((t,e,i,s)=>t===(s?"left":"right")?i:"center"===t?(e+i)/2:e)(A,C+p+d,m?C+k:this.right,t.rtl),function(t,e,i){Km(s,i.text,t,e+f/2,l,{strikethrough:i.hidden,textAlign:o.textAlign(i.textAlign)})}(o.x(C),_,v),m)u.x+=k+c;else if("string"!=typeof v.text){const t=l.lineHeight;u.y+=$y(v,t)+c}else u.y+=b}),$x(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=lx(e.font),s=ox(e.padding);if(!e.display)return;const n=Vx(t.rtl,this.left,this.width),a=this.ctx,r=e.position,o=i.size/2,l=s.top+o;let c,h=this.left,d=this.width;if(this.isHorizontal())d=Math.max(...this.lineWidths),c=this.top+l,h=xm(t.align,h,this.right-d);else{const e=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);c=l+xm(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=xm(r,h,h+d);a.textAlign=n.textAlign(mm(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=i.string,Km(a,e.text,u,c,i)}_computeTitleHeight(){const t=this.options.title,e=lx(t.font),i=ox(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,s,n;if(om(t,this.left,this.right)&&om(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;++i)if(s=n[i],om(t,s.left,s.left+s.width)&&om(e,s.top,s.top+s.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const s=this._hoveredItem,n=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(s,i);s&&!n&&kf(e.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!n&&kf(e.onHover,[t,i,this],this)}else i&&kf(e.onClick,[t,i,this],this)}}function $y(t,e){return e*(t.text?t.text.length:0)}var Uy={id:"legend",_element:Gy,start(t,e,i){const s=t.legend=new Gy({ctx:t.ctx,options:i,chart:t});Qb.configure(t,s,i),Qb.addBox(t,s)},stop(t){Qb.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const s=t.legend;Qb.configure(t,s,i),s.options=i},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,i){const s=e.datasetIndex,n=i.chart;n.isDatasetVisible(s)?(n.hide(s),e.hidden=!0):(n.show(s),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:i,pointStyle:s,textAlign:n,color:a,useBorderRadius:r,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{const l=t.controller.getStyle(i?0:void 0),c=ox(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(c.width+c.height)/4,strokeStyle:l.borderColor,pointStyle:s||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:r&&(o||l.borderRadius),datasetIndex:t.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)}}};class qy extends fv{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,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.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const s=xf(i.text)?i.text.length:1;this._padding=ox(i.padding);const n=s*lx(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:s,right:n,options:a}=this,r=a.align;let o,l,c,h=0;return this.isHorizontal()?(l=xm(r,i,n),c=e+t,o=n-i):("left"===a.position?(l=i+t,c=xm(r,s,e),h=-.5*Rf):(l=n-t,c=xm(r,e,s),h=.5*Rf),o=s-e),{titleX:l,titleY:c,maxWidth:o,rotation:h}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=lx(e.font),s=i.lineHeight/2+this._padding.top,{titleX:n,titleY:a,maxWidth:r,rotation:o}=this._drawArgs(s);Km(t,e.text,0,0,i,{color:e.color,maxWidth:r,rotation:o,textAlign:mm(e.align),textBaseline:"middle",translation:[n,a]})}}var Zy={id:"title",_element:qy,start(t,e,i){!function(t,e){const i=new qy({ctx:t.ctx,options:e,chart:t});Qb.configure(t,i,e),Qb.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;Qb.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const s=t.titleBlock;Qb.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qy=new WeakMap;var Ky={id:"subtitle",start(t,e,i){const s=new qy({ctx:t.ctx,options:i,chart:t});Qb.configure(t,s,i),Qb.addBox(t,s),Qy.set(t,s)},stop(t){Qb.removeBox(t,Qy.get(t)),Qy.delete(t)},beforeUpdate(t,e,i){const s=Qy.get(t);Qb.configure(t,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Jy={average(t){if(!t.length)return!1;let e,i,s=new Set,n=0,a=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();s.add(t.x),n+=t.y,++a}}if(0===a||0===s.size)return!1;const r=[...s].reduce((t,e)=>t+e)/s.size;return{x:r,y:n/a}},nearest(t,e){if(!t.length)return!1;let i,s,n,a=e.x,r=e.y,o=Number.POSITIVE_INFINITY;for(i=0,s=t.length;i<s;++i){const s=t[i].element;if(s&&s.hasValue()){const t=im(e,s.getCenterPoint());t<o&&(o=t,n=s)}}if(n){const t=n.tooltipPosition();a=t.x,r=t.y}return{x:a,y:r}}};function tw(t,e){return e&&(xf(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function ew(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function iw(t,e){const{element:i,datasetIndex:s,index:n}=e,a=t.getDatasetMeta(s).controller,{label:r,value:o}=a.getLabelAndValue(n);return{chart:t,label:r,parsed:a.getParsed(n),raw:t.data.datasets[s].data[n],formattedValue:o,dataset:a.getDataset(),dataIndex:n,datasetIndex:s,element:i}}function sw(t,e){const i=t.chart.ctx,{body:s,footer:n,title:a}=t,{boxWidth:r,boxHeight:o}=e,l=lx(e.bodyFont),c=lx(e.titleFont),h=lx(e.footerFont),d=a.length,u=n.length,p=s.length,g=ox(e.padding);let f=g.height,m=0,x=s.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);x+=t.beforeBody.length+t.afterBody.length,d&&(f+=d*c.lineHeight+(d-1)*e.titleSpacing+e.titleMarginBottom),x&&(f+=p*(e.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(x-p)*l.lineHeight+(x-1)*e.bodySpacing),u&&(f+=e.footerMarginTop+u*h.lineHeight+(u-1)*e.footerSpacing);let b=0;const v=function(t){m=Math.max(m,i.measureText(t).width+b)};return i.save(),i.font=c.string,Cf(t.title,v),i.font=l.string,Cf(t.beforeBody.concat(t.afterBody),v),b=e.displayColors?r+2+e.boxPadding:0,Cf(s,t=>{Cf(t.before,v),Cf(t.lines,v),Cf(t.after,v)}),b=0,i.font=h.string,Cf(t.footer,v),i.restore(),m+=g.width,{width:m,height:f}}function nw(t,e,i,s){const{x:n,width:a}=i,{width:r,chartArea:{left:o,right:l}}=t;let c="center";return"center"===s?c=n<=(o+l)/2?"left":"right":n<=a/2?c="left":n>=r-a/2&&(c="right"),function(t,e,i,s){const{x:n,width:a}=s,r=i.caretSize+i.caretPadding;return"left"===t&&n+a+r>e.width||"right"===t&&n-a-r<0||void 0}(c,t,e,i)&&(c="center"),c}function aw(t,e,i){const s=i.yAlign||e.yAlign||function(t,e){const{y:i,height:s}=e;return i<s/2?"top":i>t.height-s/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||nw(t,e,i,s),yAlign:s}}function rw(t,e,i,s){const{caretSize:n,caretPadding:a,cornerRadius:r}=t,{xAlign:o,yAlign:l}=i,c=n+a,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=rx(r);let g=function(t,e){let{x:i,width:s}=t;return"right"===e?i-=s:"center"===e&&(i-=s/2),i}(e,o);const f=function(t,e,i){let{y:s,height:n}=t;return"top"===e?s+=i:s-="bottom"===e?n+i:n/2,s}(e,l,c);return"center"===l?"left"===o?g+=c:"right"===o&&(g-=c):"left"===o?g-=Math.max(h,u)+n:"right"===o&&(g+=Math.max(d,p)+n),{x:rm(g,0,s.width-e.width),y:rm(f,0,s.height-e.height)}}function ow(t,e,i){const s=ox(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-s.right:t.x+s.left}function lw(t){return tw([],ew(t))}function cw(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const hw={beforeTitle:gf,title(t){if(t.length>0){const e=t[0],i=e.chart.data.labels,s=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(s>0&&e.dataIndex<s)return i[e.dataIndex]}return""},afterTitle:gf,beforeBody:gf,beforeLabel:gf,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return mf(i)||(e+=i),e},labelColor(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:gf,afterBody:gf,beforeFooter:gf,footer:gf,afterFooter:gf};function dw(t,e,i,s){const n=t[e].call(i,s);return void 0===n?hw[e].call(i,s):n}class uw extends fv{static positioners=Jy;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,n=new ob(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=hx(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(t,e){const{callbacks:i}=e,s=dw(i,"beforeTitle",this,t),n=dw(i,"title",this,t),a=dw(i,"afterTitle",this,t);let r=[];return r=tw(r,ew(s)),r=tw(r,ew(n)),r=tw(r,ew(a)),r}getBeforeBody(t,e){return lw(dw(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,s=[];return Cf(t,t=>{const e={before:[],lines:[],after:[]},n=cw(i,t);tw(e.before,ew(dw(n,"beforeLabel",this,t))),tw(e.lines,dw(n,"label",this,t)),tw(e.after,ew(dw(n,"afterLabel",this,t))),s.push(e)}),s}getAfterBody(t,e){return lw(dw(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,s=dw(i,"beforeFooter",this,t),n=dw(i,"footer",this,t),a=dw(i,"afterFooter",this,t);let r=[];return r=tw(r,ew(s)),r=tw(r,ew(n)),r=tw(r,ew(a)),r}_createItems(t){const e=this._active,i=this.chart.data,s=[],n=[],a=[];let r,o,l=[];for(r=0,o=e.length;r<o;++r)l.push(iw(this.chart,e[r]));return t.filter&&(l=l.filter((e,s,n)=>t.filter(e,s,n,i))),t.itemSort&&(l=l.sort((e,s)=>t.itemSort(e,s,i))),Cf(l,e=>{const i=cw(t.callbacks,e);s.push(dw(i,"labelColor",this,e)),n.push(dw(i,"labelPointStyle",this,e)),a.push(dw(i,"labelTextColor",this,e))}),this.labelColors=s,this.labelPointStyles=n,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),s=this._active;let n,a=[];if(s.length){const t=Jy[i.position].call(this,s,this._eventPosition);a=this._createItems(i),this.title=this.getTitle(a,i),this.beforeBody=this.getBeforeBody(a,i),this.body=this.getBody(a,i),this.afterBody=this.getAfterBody(a,i),this.footer=this.getFooter(a,i);const e=this._size=sw(this,i),r=Object.assign({},t,e),o=aw(this.chart,i,r),l=rw(i,r,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){const n=this.getCaretPosition(t,i,s);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){const{xAlign:s,yAlign:n}=this,{caretSize:a,cornerRadius:r}=i,{topLeft:o,topRight:l,bottomLeft:c,bottomRight:h}=rx(r),{x:d,y:u}=t,{width:p,height:g}=e;let f,m,x,b,v,y;return"center"===n?(v=u+g/2,"left"===s?(f=d,m=f-a,b=v+a,y=v-a):(f=d+p,m=f+a,b=v-a,y=v+a),x=f):(m="left"===s?d+Math.max(o,c)+a:"right"===s?d+p-Math.max(l,h)-a:this.caretX,"top"===n?(b=u,v=b-a,f=m-a,x=m+a):(b=u+g,v=b+a,f=m+a,x=m-a),y=b),{x1:f,x2:m,x3:x,y1:b,y2:v,y3:y}}drawTitle(t,e,i){const s=this.title,n=s.length;let a,r,o;if(n){const l=Vx(i.rtl,this.x,this.width);for(t.x=ow(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",a=lx(i.titleFont),r=i.titleSpacing,e.fillStyle=i.titleColor,e.font=a.string,o=0;o<n;++o)e.fillText(s[o],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+r,o+1===n&&(t.y+=i.titleMarginBottom-r)}}_drawColorBox(t,e,i,s,n){const a=this.labelColors[i],r=this.labelPointStyles[i],{boxHeight:o,boxWidth:l}=n,c=lx(n.bodyFont),h=ow(this,"left",n),d=s.x(h),u=o<c.lineHeight?(c.lineHeight-o)/2:0,p=e.y+u;if(n.usePointStyle){const e={radius:Math.min(l,o)/2,pointStyle:r.pointStyle,rotation:r.rotation,borderWidth:1},i=s.leftForLtr(d,l)+l/2,c=p+o/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,Xm(t,e,i,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,Xm(t,e,i,c)}else{t.lineWidth=bf(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;const e=s.leftForLtr(d,l),i=s.leftForLtr(s.xPlus(d,1),l-2),r=rx(a.borderRadius);Object.values(r).some(t=>0!==t)?(t.beginPath(),t.fillStyle=n.multiKeyBackground,Jm(t,{x:e,y:p,w:l,h:o,radius:r}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),Jm(t,{x:i,y:p+1,w:l-2,h:o-2,radius:r}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,p,l,o),t.strokeRect(e,p,l,o),t.fillStyle=a.backgroundColor,t.fillRect(i,p+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:s}=this,{bodySpacing:n,bodyAlign:a,displayColors:r,boxHeight:o,boxWidth:l,boxPadding:c}=i,h=lx(i.bodyFont);let d=h.lineHeight,u=0;const p=Vx(i.rtl,this.x,this.width),g=function(i){e.fillText(i,p.x(t.x+u),t.y+d/2),t.y+=d+n},f=p.textAlign(a);let m,x,b,v,y,w,A;for(e.textAlign=a,e.textBaseline="middle",e.font=h.string,t.x=ow(this,f,i),e.fillStyle=i.bodyColor,Cf(this.beforeBody,g),u=r&&"right"!==f?"center"===a?l/2+c:l+2+c:0,v=0,w=s.length;v<w;++v){for(m=s[v],x=this.labelTextColors[v],e.fillStyle=x,Cf(m.before,g),b=m.lines,r&&b.length&&(this._drawColorBox(e,t,v,p,i),d=Math.max(h.lineHeight,o)),y=0,A=b.length;y<A;++y)g(b[y]),d=h.lineHeight;Cf(m.after,g)}u=0,d=h.lineHeight,Cf(this.afterBody,g),t.y-=n}drawFooter(t,e,i){const s=this.footer,n=s.length;let a,r;if(n){const o=Vx(i.rtl,this.x,this.width);for(t.x=ow(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=o.textAlign(i.footerAlign),e.textBaseline="middle",a=lx(i.footerFont),e.fillStyle=i.footerColor,e.font=a.string,r=0;r<n;++r)e.fillText(s[r],o.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){const{xAlign:n,yAlign:a}=this,{x:r,y:o}=t,{width:l,height:c}=i,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:p}=rx(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(r+h,o),"top"===a&&this.drawCaret(t,e,i,s),e.lineTo(r+l-d,o),e.quadraticCurveTo(r+l,o,r+l,o+d),"center"===a&&"right"===n&&this.drawCaret(t,e,i,s),e.lineTo(r+l,o+c-p),e.quadraticCurveTo(r+l,o+c,r+l-p,o+c),"bottom"===a&&this.drawCaret(t,e,i,s),e.lineTo(r+u,o+c),e.quadraticCurveTo(r,o+c,r,o+c-u),"center"===a&&"left"===n&&this.drawCaret(t,e,i,s),e.lineTo(r,o+h),e.quadraticCurveTo(r,o,r+h,o),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,s=i&&i.x,n=i&&i.y;if(s||n){const i=Jy[t.position].call(this,this._active,this._eventPosition);if(!i)return;const a=this._size=sw(this,t),r=Object.assign({},i,this._size),o=aw(e,t,r),l=rw(t,r,o,e);s._to===l.x&&n._to===l.y||(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=a.width,this.height=a.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const s={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const a=ox(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,s,e),Gx(t,e.textDirection),n.y+=a.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),$x(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,s=t.map(({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),n=!_f(i,s),a=this._positionChanged(s,e);(n||a)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,n=this._active||[],a=this._getActiveElements(t,n,e,i),r=this._positionChanged(a,t),o=e||!_f(a,n)||r;return o&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_getActiveElements(t,e,i,s){const n=this.options;if("mouseout"===t.type)return[];if(!s)return e.filter(t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index));const a=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:i,caretY:s,options:n}=this,a=Jy[n.position].call(this,t,e);return!1!==a&&(i!==a.x||s!==a.y)}}var pw={id:"tooltip",_element:uw,positioners:Jy,afterInit(t,e,i){i&&(t.tooltip=new uw({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const i=e.replay;t.tooltip.handleEvent(e.event,i,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:hw},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},gw=Object.freeze({__proto__:null,Colors:Cy,Decimation:Sy,Filler:jy,Legend:Uy,SubTitle:Ky,Title:Zy,Tooltip:pw});function fw(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function mw(t,e,{horizontal:i,minRotation:s}){const n=Kf(s),a=(i?Math.sin(n):Math.cos(n))||.001,r=.75*e*(""+t).length;return Math.min(e/a,r)}class xw extends Cv{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return mf(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:s,max:n}=this;const a=t=>s=e?s:t,r=t=>n=i?n:t;if(t){const t=$f(s),e=$f(n);t<0&&e<0?r(0):t>0&&e>0&&a(0)}if(s===n){let e=0===n?1:Math.abs(.05*n);r(n+e),t||a(s-e)}this.min=s,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:s}=t;return s?(e=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const s=function(t,e){const i=[],{bounds:s,step:n,min:a,max:r,precision:o,count:l,maxTicks:c,maxDigits:h,includeBounds:d}=t,u=n||1,p=c-1,{min:g,max:f}=e,m=!mf(a),x=!mf(r),b=!mf(l),v=(f-g)/(h+1);let y,w,A,k,C=qf((f-g)/p/u)*u;if(C<1e-14&&!m&&!x)return[{value:g},{value:f}];k=Math.ceil(f/C)-Math.floor(g/C),k>p&&(C=qf(k*C/p/u)*u),mf(o)||(y=Math.pow(10,o),C=Math.ceil(C*y)/y),"ticks"===s?(w=Math.floor(g/C)*C,A=Math.ceil(f/C)*C):(w=g,A=f),m&&x&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((r-a)/n,C/1e3)?(k=Math.round(Math.min((r-a)/C,c)),C=(r-a)/k,w=a,A=r):b?(w=m?a:w,A=x?r:A,k=l-1,C=(A-w)/k):(k=(A-w)/C,k=Uf(k,Math.round(k),C/1e3)?Math.round(k):Math.ceil(k));const _=Math.max(tm(C),tm(w));y=Math.pow(10,mf(o)?_:o),w=Math.round(w*y)/y,A=Math.round(A*y)/y;let E=0;for(m&&(d&&w!==a?(i.push({value:a}),w<a&&E++,Uf(Math.round((w+E*C)*y)/y,a,mw(a,v,t))&&E++):w<a&&E++);E<k;++E){const t=Math.round((w+E*C)*y)/y;if(x&&t>r)break;i.push({value:t})}return x&&d&&A!==r?i.length&&Uf(i[i.length-1].value,r,mw(r,v,t))?i[i.length-1].value=r:i.push({value:r}):x&&A!==r||i.push({value:A}),i}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&Qf(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return Lm(t,this.chart.options.locale,this.options.ticks.format)}}class bw extends xw{static id="linear";static defaults={ticks:{callback:Bm.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=vf(t)?t:0,this.max=vf(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Kf(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/s))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const vw=t=>Math.floor(Gf(t)),yw=(t,e)=>Math.pow(10,vw(t)+e);function ww(t){return 1===t/Math.pow(10,vw(t))}function Aw(t,e,i){const s=Math.pow(10,i),n=Math.floor(t/s);return Math.ceil(e/s)-n}class kw extends Cv{static id="logarithmic";static defaults={ticks:{callback:Bm.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=xw.prototype.parse.apply(this,[t,e]);if(0!==i)return vf(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=vf(t)?Math.max(0,t):null,this.max=vf(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!vf(this._userMin)&&(this.min=t===yw(this.min,0)?yw(this.min,-1):yw(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,s=this.max;const n=e=>i=t?i:e,a=t=>s=e?s:t;i===s&&(i<=0?(n(1),a(10)):(n(yw(i,-1)),a(yw(s,1)))),i<=0&&n(yw(s,-1)),s<=0&&a(yw(i,1)),this.min=i,this.max=s}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=yf(t.min,e);const s=[],n=vw(e);let a=function(t,e){let i=vw(e-t);for(;Aw(t,e,i)>10;)i++;for(;Aw(t,e,i)<10;)i--;return Math.min(i,vw(t))}(e,i),r=a<0?Math.pow(10,Math.abs(a)):1;const o=Math.pow(10,a),l=n>a?Math.pow(10,n):0,c=Math.round((e-l)*r)/r,h=Math.floor((e-l)/o/10)*o*10;let d=Math.floor((c-h)/Math.pow(10,a)),u=yf(t.min,Math.round((l+h+d*Math.pow(10,a))*r)/r);for(;u<i;)s.push({value:u,major:ww(u),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,r=a>=0?1:r),u=Math.round((l+h+d*Math.pow(10,a))*r)/r;const p=yf(t.max,u);return s.push({value:p,major:ww(p),significand:d}),s}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Qf(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":Lm(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Gf(t),this._valueRange=Gf(this.max)-Gf(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Gf(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function Cw(t){const e=t.ticks;if(e.display&&t.display){const t=ox(e.backdropPadding);return wf(e.font&&e.font.size,Rm.font.size)+t.height}return 0}function _w(t,e,i){return i=xf(i)?i:[i],{w:Nm(t,e.string,i),h:i.length*e.lineHeight}}function Ew(t,e,i,s,n){return t===s||t===n?{start:e-i/2,end:e+i/2}:t<s||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function Sw(t,e,i,s,n){const a=Math.abs(Math.sin(i)),r=Math.abs(Math.cos(i));let o=0,l=0;s.start<e.l?(o=(e.l-s.start)/a,t.l=Math.min(t.l,e.l-o)):s.end>e.r&&(o=(s.end-e.r)/a,t.r=Math.max(t.r,e.r+o)),n.start<e.t?(l=(e.t-n.start)/r,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/r,t.b=Math.max(t.b,e.b+l))}function Mw(t,e,i){const s=t.drawingArea,{extra:n,additionalAngle:a,padding:r,size:o}=i,l=t.getPointPosition(e,s+n+r,a),c=Math.round(Jf(nm(l.angle+Xf))),h=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,o.h,c),d=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(c),u=function(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}(l.x,o.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+o.w,bottom:h+o.h}}function Tw(t,e){if(!e)return!0;const{left:i,top:s,right:n,bottom:a}=t;return!(Vm({x:i,y:s},e)||Vm({x:i,y:a},e)||Vm({x:n,y:s},e)||Vm({x:n,y:a},e))}function Lw(t,e,i){const{left:s,top:n,right:a,bottom:r}=i,{backdropColor:o}=e;if(!mf(o)){const i=rx(e.borderRadius),l=ox(e.backdropPadding);t.fillStyle=o;const c=s-l.left,h=n-l.top,d=a-s+l.width,u=r-n+l.height;Object.values(i).some(t=>0!==t)?(t.beginPath(),Jm(t,{x:c,y:h,w:d,h:u,radius:i}),t.fill()):t.fillRect(c,h,d,u)}}function Pw(t,e,i,s){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,Hf);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let a=1;a<s;a++)i=t.getPointPosition(a,e),n.lineTo(i.x,i.y)}}class Bw extends xw{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Bm.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=ox(Cw(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=vf(t)&&!isNaN(t)?t:0,this.max=vf(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Cw(this.options))}generateTickLabels(t){xw.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{const i=kf(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),s=[],n=[],a=t._pointLabels.length,r=t.options.pointLabels,o=r.centerPointLabels?Rf/a:0;for(let l=0;l<a;l++){const a=r.setContext(t.getPointLabelContext(l));n[l]=a.padding;const c=t.getPointPosition(l,t.drawingArea+n[l],o),h=lx(a.font),d=_w(t.ctx,h,t._pointLabels[l]);s[l]=d;const u=nm(t.getIndexAngle(l)+o),p=Math.round(Jf(u));Sw(i,e,u,Ew(p,c.x,d.w,0,180),Ew(p,c.y,d.h,90,270))}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const s=[],n=t._pointLabels.length,a=t.options,{centerPointLabels:r,display:o}=a.pointLabels,l={extra:Cw(a)/2,additionalAngle:r?Rf/n:0};let c;for(let a=0;a<n;a++){l.padding=i[a],l.size=e[a];const n=Mw(t,a,l);s.push(n),"auto"===o&&(n.visible=Tw(n,c),n.visible&&(c=n))}return s}(t,s,n)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){return nm(t*(Hf/(this._pointLabels.length||1))+Kf(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(mf(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(mf(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function(t,e,i){return hx(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const s=this.getIndexAngle(t)-Xf+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:s,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Pw(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:s,border:n}=e,a=this._pointLabels.length;let r,o,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:s}}=t;for(let n=e-1;n>=0;n--){const e=t._pointLabelItems[n];if(!e.visible)continue;const a=s.setContext(t.getPointLabelContext(n));Lw(i,a,e);const r=lx(a.font),{x:o,y:l,textAlign:c}=e;Km(i,t._pointLabels[n],o,l+r.lineHeight/2,r,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,a),s.display&&this.ticks.forEach((t,e)=>{if(0!==e||0===e&&this.min<0){o=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),r=s.setContext(i),l=n.setContext(i);!function(t,e,i,s,n){const a=t.ctx,r=e.circular,{color:o,lineWidth:l}=e;!r&&!s||!o||!l||i<0||(a.save(),a.strokeStyle=o,a.lineWidth=l,a.setLineDash(n.dash||[]),a.lineDashOffset=n.dashOffset,a.beginPath(),Pw(t,i,r,s),a.closePath(),a.stroke(),a.restore())}(this,r,o,a,l)}}),i.display){for(t.save(),r=a-1;r>=0;r--){const s=i.setContext(this.getPointLabelContext(r)),{color:n,lineWidth:a}=s;a&&n&&(t.lineWidth=a,t.strokeStyle=n,t.setLineDash(s.borderDash),t.lineDashOffset=s.borderDashOffset,o=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),l=this.getPointPosition(r,o),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const s=this.getIndexAngle(0);let n,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,r)=>{if(0===r&&this.min>=0&&!e.reverse)return;const o=i.setContext(this.getContext(r)),l=lx(o.font);if(n=this.getDistanceFromCenterForValue(this.ticks[r].value),o.showLabelBackdrop){t.font=l.string,a=t.measureText(s.label).width,t.fillStyle=o.backdropColor;const e=ox(o.backdropPadding);t.fillRect(-a/2-e.left,-n-l.size/2-e.top,a+e.width,l.size+e.height)}Km(t,s.label,0,-n,l,{color:o.color,strokeColor:o.textStrokeColor,strokeWidth:o.textStrokeWidth})}),t.restore()}drawTitle(){}}const Ow={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}},Iw=Object.keys(Ow);function zw(t,e){return t-e}function Dw(t,e){if(mf(e))return null;const i=t._adapter,{parser:s,round:n,isoWeekday:a}=t._parseOpts;let r=e;return"function"==typeof s&&(r=s(r)),vf(r)||(r="string"==typeof s?i.parse(r,s):i.parse(r)),null===r?null:(n&&(r="week"!==n||!Zf(a)&&!0!==a?i.startOf(r,n):i.startOf(r,"isoWeek",a)),+r)}function Fw(t,e,i,s){const n=Iw.length;for(let a=Iw.indexOf(t);a<n-1;++a){const t=Ow[Iw[a]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=s)return Iw[a]}return Iw[n-1]}function Rw(t,e,i){if(i){if(i.length){const{lo:s,hi:n}=lm(i,e);t[i[s]>=e?i[s]:i[n]]=!0}}else t[e]=!0}function Hw(t,e,i){const s=[],n={},a=e.length;let r,o;for(r=0;r<a;++r)o=e[r],n[o]=r,s.push({value:o,major:!1});return 0!==a&&i?function(t,e,i,s){const n=t._adapter,a=+n.startOf(e[0].value,s),r=e[e.length-1].value;let o,l;for(o=a;o<=r;o=+n.add(o,1,s))l=i[o],l>=0&&(e[l].major=!0);return e}(t,s,n,i):s}class Nw extends Cv{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),s=this._adapter=new Ob(t.adapters.date);s.init(e),Lf(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Dw(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:s,max:n,minDefined:a,maxDefined:r}=this.getUserBounds();function o(t){a||isNaN(t.min)||(s=Math.min(s,t.min)),r||isNaN(t.max)||(n=Math.max(n,t.max))}a&&r||(o(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||o(this.getMinMax(!1))),s=vf(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),n=vf(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,n-1),this.max=Math.max(s+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,s="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const n=this.min,a=function(t,e,i){let s=0,n=t.length;for(;s<n&&t[s]<e;)s++;for(;n>s&&t[n-1]>i;)n--;return s>0||n<t.length?t.slice(s,n):t}(s,n,this.max);return this._unit=e.unit||(i.autoSkip?Fw(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,s,n){for(let a=Iw.length-1;a>=Iw.indexOf(i);a--){const i=Iw[a];if(Ow[i].common&&t._adapter.diff(n,s,i)>=e-1)return i}return Iw[i?Iw.indexOf(i):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=Iw.indexOf(t)+1,i=Iw.length;e<i;++e)if(Ow[Iw[e]].common)return Iw[e]}(this._unit):void 0,this.initOffsets(s),t.reverse&&a.reverse(),Hw(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e,i,s=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),s=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;s=rm(s,0,a),n=rm(n,0,a),this._offsets={start:s,end:n,factor:1/(s+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,s=this.options,n=s.time,a=n.unit||Fw(n.minUnit,e,i,this._getLabelCapacity(e)),r=wf(s.ticks.stepSize,1),o="week"===a&&n.isoWeekday,l=Zf(o)||!0===o,c={};let h,d,u=e;if(l&&(u=+t.startOf(u,"isoWeek",o)),u=+t.startOf(u,l?"day":a),t.diff(i,e,a)>1e5*r)throw new Error(e+" and "+i+" are too far apart with stepSize of "+r+" "+a);const p="data"===s.ticks.source&&this.getDataTimestamps();for(h=u,d=0;h<i;h=+t.add(h,r,a),d++)Rw(c,h,p);return h!==i&&"ticks"!==s.bounds&&1!==d||Rw(c,h,p),Object.keys(c).sort(zw).map(t=>+t)}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,s=this._unit,n=e||i[s];return this._adapter.format(t,n)}_tickFormatFunction(t,e,i,s){const n=this.options,a=n.ticks.callback;if(a)return kf(a,[t,e,i],this);const r=n.time.displayFormats,o=this._unit,l=this._majorUnit,c=o&&r[o],h=l&&r[l],d=i[e],u=l&&h&&d&&d.major;return this._adapter.format(t,s||(u?h:c))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,s=Kf(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(s),a=Math.sin(s),r=this._resolveTickFontOptions(0).size;return{w:i*n+r*a,h:i*a+r*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,Hw(this,[t],this._majorUnit),s),a=this._getLabelSize(n),r=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return r>0?r:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(t=0,e=s.length;t<e;++t)i=i.concat(s[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Dw(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return pm(t.sort(zw))}}function Yw(t,e,i){let s,n,a,r,o=0,l=t.length-1;i?(e>=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=cm(t,"pos",e)),({pos:s,time:a}=t[o]),({pos:n,time:r}=t[l])):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=cm(t,"time",e)),({time:s,pos:a}=t[o]),({time:n,pos:r}=t[l]));const c=n-s;return c?a+(r-a)*(e-s)/c:a}var Ww=Object.freeze({__proto__:null,CategoryScale:class extends Cv{static id="category";static defaults={ticks:{callback:fw}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:s}of e)t[i]===s&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(mf(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:rm(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,i,s){const n=t.indexOf(e);return-1===n?((t,e,i,s)=>("string"==typeof e?(i=t.push(e)-1,s.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,s):n!==t.lastIndexOf(e)?i:n}(i,t,wf(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:s}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,s=[];let n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)s.push({value:i});return s}getLabelForValue(t){return fw.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:bw,LogarithmicScale:kw,RadialLinearScale:Bw,TimeScale:Nw,TimeSeriesScale:class extends Nw{static id="timeseries";static defaults=Nw.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Yw(e,this.min),this._tableRange=Yw(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,s=[],n=[];let a,r,o,l,c;for(a=0,r=t.length;a<r;++a)l=t[a],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(a=0,r=s.length;a<r;++a)c=s[a+1],o=s[a-1],l=s[a],Math.round((c+o)/2)!==l&&n.push({time:l,pos:a/(r-1)});return n}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort((t,e)=>t-e)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Yw(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Yw(this._table,i*this._tableRange+this._minPos,!0)}}});const Xw=[Lb,by,gw,Ww];ty.register(...Xw);const jw=ty;function Vw(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function Gw(t,e){void 0===t&&(t={}),void 0===e&&(e={});const i=["__proto__","constructor","prototype"];Object.keys(e).filter(t=>i.indexOf(t)<0).forEach(i=>{void 0===t[i]?t[i]=e[i]:Vw(e[i])&&Vw(t[i])&&Object.keys(e[i]).length>0&&Gw(t[i],e[i])})}const $w={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Uw(){const t="undefined"!=typeof document?document:{};return Gw(t,$w),t}const qw={document:$w,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function Zw(){const t="undefined"!=typeof window?window:{};return Gw(t,qw),t}function Qw(t,e){return void 0===e&&(e=0),setTimeout(t,e)}function Kw(){return Date.now()}function Jw(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function tA(t){return"undefined"!=typeof window&&void 0!==window.HTMLElement?t instanceof HTMLElement:t&&(1===t.nodeType||11===t.nodeType)}function eA(){const t=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const s=i<0||arguments.length<=i?void 0:arguments[i];if(null!=s&&!tA(s)){const i=Object.keys(Object(s)).filter(t=>e.indexOf(t)<0);for(let e=0,n=i.length;e<n;e+=1){const n=i[e],a=Object.getOwnPropertyDescriptor(s,n);void 0!==a&&a.enumerable&&(Jw(t[n])&&Jw(s[n])?s[n].__swiper__?t[n]=s[n]:eA(t[n],s[n]):!Jw(t[n])&&Jw(s[n])?(t[n]={},s[n].__swiper__?t[n]=s[n]:eA(t[n],s[n])):t[n]=s[n])}}}return t}function iA(t,e,i){t.style.setProperty(e,i)}function sA(t){let{swiper:e,targetPosition:i,side:s}=t;const n=Zw(),a=-e.translate;let r,o=null;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(e.cssModeFrameID);const c=i>a?"next":"prev",h=(t,e)=>"next"===c&&t>=e||"prev"===c&&t<=e,d=()=>{r=(new Date).getTime(),null===o&&(o=r);const t=Math.max(Math.min((r-o)/l,1),0),c=.5-Math.cos(t*Math.PI)/2;let u=a+c*(i-a);if(h(u,i)&&(u=i),e.wrapperEl.scrollTo({[s]:u}),h(u,i))return e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[s]:u})}),void n.cancelAnimationFrame(e.cssModeFrameID);e.cssModeFrameID=n.requestAnimationFrame(d)};d()}function nA(t,e){void 0===e&&(e="");const i=Zw(),s=[...t.children];return i.HTMLSlotElement&&t instanceof HTMLSlotElement&&s.push(...t.assignedElements()),e?s.filter(t=>t.matches(e)):s}function aA(t){try{return void console.warn(t)}catch(t){}}function rA(t,e){void 0===e&&(e=[]);const i=document.createElement(t);return i.classList.add(...Array.isArray(e)?e:function(t){return void 0===t&&(t=""),t.trim().split(" ").filter(t=>!!t.trim())}(e)),i}function oA(t,e){return Zw().getComputedStyle(t,null).getPropertyValue(e)}function lA(t){let e,i=t;if(i){for(e=0;null!==(i=i.previousSibling);)1===i.nodeType&&(e+=1);return e}}function cA(t,e){const i=[];let s=t.parentElement;for(;s;)e?s.matches(e)&&i.push(s):i.push(s),s=s.parentElement;return i}function hA(t,e,i){const s=Zw();return i?t["width"===e?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(t,null).getPropertyValue("width"===e?"margin-left":"margin-bottom")):t.offsetWidth}function dA(t){return(Array.isArray(t)?t:[t]).filter(t=>!!t)}function uA(t,e){void 0===e&&(e=""),"undefined"!=typeof trustedTypes?t.innerHTML=trustedTypes.createPolicy("html",{createHTML:t=>t}).createHTML(e):t.innerHTML=e}let pA,gA,fA;function mA(){return pA||(pA=function(){const t=Zw(),e=Uw();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch)}}()),pA}function xA(t){return void 0===t&&(t={}),gA||(gA=function(t){let{userAgent:e}=void 0===t?{}:t;const i=mA(),s=Zw(),n=s.navigator.platform,a=e||s.navigator.userAgent,r={ios:!1,android:!1},o=s.screen.width,l=s.screen.height,c=a.match(/(Android);?[\s\/]+([\d.]+)?/);let h=a.match(/(iPad).*OS\s([\d_]+)/);const d=a.match(/(iPod)(.*OS\s([\d_]+))?/),u=!h&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===n;let g="MacIntel"===n;return!h&&g&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${o}x${l}`)>=0&&(h=a.match(/(Version)\/([\d.]+)/),h||(h=[0,1,"13_0_0"]),g=!1),c&&!p&&(r.os="android",r.android=!0),(h||u||d)&&(r.os="ios",r.ios=!0),r}(t)),gA}function bA(){return fA||(fA=function(){const t=Zw(),e=xA();let i=!1;function s(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}if(s()){const e=String(t.navigator.userAgent);if(e.includes("Version/")){const[t,s]=e.split("Version/")[1].split(" ")[0].split(".").map(t=>Number(t));i=t<16||16===t&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent),a=s();return{isSafari:i||a,needPerspectiveFix:i,need3dFix:a||n&&e.ios,isWebView:n}}()),fA}var vA={on(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;const n=i?"unshift":"push";return t.split(" ").forEach(t=>{s.eventsListeners[t]||(s.eventsListeners[t]=[]),s.eventsListeners[t][n](e)}),s},once(t,e,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof e)return s;function n(){s.off(t,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];e.apply(s,a)}return n.__emitterProxy=e,s.on(t,n,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const s=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[s](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(t.split(" ").forEach(t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach((s,n)=>{(s===e||s.__emitterProxy&&s.__emitterProxy===e)&&i.eventsListeners[t].splice(n,1)})}),i):i},emit(){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsListeners)return t;let e,i,s;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return"string"==typeof a[0]||Array.isArray(a[0])?(e=a[0],i=a.slice(1,a.length),s=t):(e=a[0].events,i=a[0].data,s=a[0].context||t),i.unshift(s),(Array.isArray(e)?e:e.split(" ")).forEach(e=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(t=>{t.apply(s,[e,...i])}),t.eventsListeners&&t.eventsListeners[e]&&t.eventsListeners[e].forEach(t=>{t.apply(s,i)})}),t}};const yA=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},wA=(t,e,i)=>{e&&!t.classList.contains(i)?t.classList.add(i):!e&&t.classList.contains(i)&&t.classList.remove(i)},AA=(t,e)=>{if(!t||t.destroyed||!t.params)return;const i=e.closest(t.isElement?"swiper-slide":`.${t.params.slideClass}`);if(i){let e=i.querySelector(`.${t.params.lazyPreloaderClass}`);!e&&t.isElement&&(i.shadowRoot?e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(e=i.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`),e&&e.remove())})),e&&e.remove()}},kA=(t,e)=>{if(!t.slides[e])return;const i=t.slides[e].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},CA=t=>{if(!t||t.destroyed||!t.params)return;let e=t.params.lazyPreloadPrevNext;const i=t.slides.length;if(!i||!e||e<0)return;e=Math.min(e,i);const s="auto"===t.params.slidesPerView?t.slidesPerViewDynamic():Math.ceil(t.params.slidesPerView),n=t.activeIndex;if(t.params.grid&&t.params.grid.rows>1){const i=n,a=[i-e];return a.push(...Array.from({length:e}).map((t,e)=>i+s+e)),void t.slides.forEach((e,i)=>{a.includes(e.column)&&kA(t,i)})}const a=n+s-1;if(t.params.rewind||t.params.loop)for(let s=n-e;s<=a+e;s+=1){const e=(s%i+i)%i;(e<n||e>a)&&kA(t,e)}else for(let s=Math.max(n-e,0);s<=Math.min(a+e,i-1);s+=1)s!==n&&(s>a||s<n)&&kA(t,s)};var _A={updateSize:function(){const t=this;let e,i;const s=t.el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:s.clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:s.clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(oA(s,"padding-left")||0,10)-parseInt(oA(s,"padding-right")||0,10),i=i-parseInt(oA(s,"padding-top")||0,10)-parseInt(oA(s,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e,i){return parseFloat(e.getPropertyValue(t.getDirectionLabel(i))||0)}const i=t.params,{wrapperEl:s,slidesEl:n,size:a,rtlTranslate:r,wrongRTL:o}=t,l=t.virtual&&i.virtual.enabled,c=l?t.virtual.slides.length:t.slides.length,h=nA(n,`.${t.params.slideClass}, swiper-slide`),d=l?t.virtual.slides.length:h.length;let u=[];const p=[],g=[];let f=i.slidesOffsetBefore;"function"==typeof f&&(f=i.slidesOffsetBefore.call(t));let m=i.slidesOffsetAfter;"function"==typeof m&&(m=i.slidesOffsetAfter.call(t));const x=t.snapGrid.length,b=t.slidesGrid.length;let v=i.spaceBetween,y=-f,w=0,A=0;if(void 0===a)return;"string"==typeof v&&v.indexOf("%")>=0?v=parseFloat(v.replace("%",""))/100*a:"string"==typeof v&&(v=parseFloat(v)),t.virtualSize=-v,h.forEach(t=>{r?t.style.marginLeft="":t.style.marginRight="",t.style.marginBottom="",t.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(iA(s,"--swiper-centered-offset-before",""),iA(s,"--swiper-centered-offset-after",""));const k=i.grid&&i.grid.rows>1&&t.grid;let C;k?t.grid.initSlides(h):t.grid&&t.grid.unsetSlides();const _="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(t=>void 0!==i.breakpoints[t].slidesPerView).length>0;for(let s=0;s<d;s+=1){let n;if(C=0,h[s]&&(n=h[s]),k&&t.grid.updateSlide(s,n,h),!h[s]||"none"!==oA(n,"display")){if("auto"===i.slidesPerView){_&&(h[s].style[t.getDirectionLabel("width")]="");const a=getComputedStyle(n),r=n.style.transform,o=n.style.webkitTransform;if(r&&(n.style.transform="none"),o&&(n.style.webkitTransform="none"),i.roundLengths)C=t.isHorizontal()?hA(n,"width",!0):hA(n,"height",!0);else{const t=e(a,"width"),i=e(a,"padding-left"),s=e(a,"padding-right"),r=e(a,"margin-left"),o=e(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)C=t+r+o;else{const{clientWidth:e,offsetWidth:a}=n;C=t+i+s+r+o+(a-e)}}r&&(n.style.transform=r),o&&(n.style.webkitTransform=o),i.roundLengths&&(C=Math.floor(C))}else C=(a-(i.slidesPerView-1)*v)/i.slidesPerView,i.roundLengths&&(C=Math.floor(C)),h[s]&&(h[s].style[t.getDirectionLabel("width")]=`${C}px`);h[s]&&(h[s].swiperSlideSize=C),g.push(C),i.centeredSlides?(y=y+C/2+w/2+v,0===w&&0!==s&&(y=y-a/2-v),0===s&&(y=y-a/2-v),Math.abs(y)<.001&&(y=0),i.roundLengths&&(y=Math.floor(y)),A%i.slidesPerGroup===0&&u.push(y),p.push(y)):(i.roundLengths&&(y=Math.floor(y)),(A-Math.min(t.params.slidesPerGroupSkip,A))%t.params.slidesPerGroup===0&&u.push(y),p.push(y),y=y+C+v),t.virtualSize+=C+v,w=C,A+=1}}if(t.virtualSize=Math.max(t.virtualSize,a)+m,r&&o&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${t.virtualSize+v}px`),i.setWrapperSize&&(s.style[t.getDirectionLabel("width")]=`${t.virtualSize+v}px`),k&&t.grid.updateWrapperSize(C,u),!i.centeredSlides){const e=[];for(let s=0;s<u.length;s+=1){let n=u[s];i.roundLengths&&(n=Math.floor(n)),u[s]<=t.virtualSize-a&&e.push(n)}u=e,Math.floor(t.virtualSize-a)-Math.floor(u[u.length-1])>1&&u.push(t.virtualSize-a)}if(l&&i.loop){const e=g[0]+v;if(i.slidesPerGroup>1){const s=Math.ceil((t.virtual.slidesBefore+t.virtual.slidesAfter)/i.slidesPerGroup),n=e*i.slidesPerGroup;for(let t=0;t<s;t+=1)u.push(u[u.length-1]+n)}for(let s=0;s<t.virtual.slidesBefore+t.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&u.push(u[u.length-1]+e),p.push(p[p.length-1]+e),t.virtualSize+=e}if(0===u.length&&(u=[0]),0!==v){const e=t.isHorizontal()&&r?"marginLeft":t.getDirectionLabel("marginRight");h.filter((t,e)=>!(i.cssMode&&!i.loop)||e!==h.length-1).forEach(t=>{t.style[e]=`${v}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let t=0;g.forEach(e=>{t+=e+(v||0)}),t-=v;const e=t>a?t-a:0;u=u.map(t=>t<=0?-f:t>e?e+m:t)}if(i.centerInsufficientSlides){let t=0;g.forEach(e=>{t+=e+(v||0)}),t-=v;const e=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(t+e<a){const i=(a-t-e)/2;u.forEach((t,e)=>{u[e]=t-i}),p.forEach((t,e)=>{p[e]=t+i})}}if(Object.assign(t,{slides:h,snapGrid:u,slidesGrid:p,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){iA(s,"--swiper-centered-offset-before",-u[0]+"px"),iA(s,"--swiper-centered-offset-after",t.size/2-g[g.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map(t=>t+e),t.slidesGrid=t.slidesGrid.map(t=>t+i)}if(d!==c&&t.emit("slidesLengthChange"),u.length!==x&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==b&&t.emit("slidesGridLengthChange"),i.watchSlidesProgress&&t.updateSlidesOffset(),t.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const e=`${i.containerModifierClass}backface-hidden`,s=t.el.classList.contains(e);d<=i.maxBackfaceHiddenSlides?s||t.el.classList.add(e):s&&t.el.classList.remove(e)}},updateAutoHeight:function(t){const e=this,i=[],s=e.virtual&&e.params.virtual.enabled;let n,a=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const r=t=>s?e.slides[e.getSlideIndexByData(t)]:e.slides[t];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(t=>{i.push(t)});else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length&&!s)break;i.push(r(t))}else i.push(r(e.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const t=i[n].offsetHeight;a=t>a?t:a}(a||0===a)&&(e.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const t=this,e=t.slides,i=t.isElement?t.isHorizontal()?t.wrapperEl.offsetLeft:t.wrapperEl.offsetTop:0;for(let s=0;s<e.length;s+=1)e[s].swiperSlideOffset=(t.isHorizontal()?e[s].offsetLeft:e[s].offsetTop)-i-t.cssOverflowAdjustment()},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);const e=this,i=e.params,{slides:s,rtlTranslate:n,snapGrid:a}=e;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&e.updateSlidesOffset();let r=-t;n&&(r=t),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=i.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:"string"==typeof o&&(o=parseFloat(o));for(let t=0;t<s.length;t+=1){const l=s[t];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const h=(r+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+o),d=(r-a[0]+(i.centeredSlides?e.minTranslate():0)-c)/(l.swiperSlideSize+o),u=-(r-c),p=u+e.slidesSizesGrid[t],g=u>=0&&u<=e.size-e.slidesSizesGrid[t],f=u>=0&&u<e.size-1||p>1&&p<=e.size||u<=0&&p>=e.size;f&&(e.visibleSlides.push(l),e.visibleSlidesIndexes.push(t)),yA(l,f,i.slideVisibleClass),yA(l,g,i.slideFullyVisibleClass),l.progress=n?-h:h,l.originalProgress=n?-d:d}},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,s=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:a,isEnd:r,progressLoop:o}=e;const l=a,c=r;if(0===s)n=0,a=!0,r=!0;else{n=(t-e.minTranslate())/s;const i=Math.abs(t-e.minTranslate())<1,o=Math.abs(t-e.maxTranslate())<1;a=i||n<=0,r=o||n>=1,i&&(n=0),o&&(n=1)}if(i.loop){const i=e.getSlideIndexByData(0),s=e.getSlideIndexByData(e.slides.length-1),n=e.slidesGrid[i],a=e.slidesGrid[s],r=e.slidesGrid[e.slidesGrid.length-1],l=Math.abs(t);o=l>=n?(l-n)/r:(l+r-a)/r,o>1&&(o-=1)}Object.assign(e,{progress:n,progressLoop:o,isBeginning:a,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),a&&!l&&e.emit("reachBeginning toEdge"),r&&!c&&e.emit("reachEnd toEdge"),(l&&!a||c&&!r)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,slidesEl:s,activeIndex:n}=t,a=t.virtual&&i.virtual.enabled,r=t.grid&&i.grid&&i.grid.rows>1,o=t=>nA(s,`.${i.slideClass}${t}, swiper-slide${t}`)[0];let l,c,h;if(a)if(i.loop){let e=n-t.virtual.slidesBefore;e<0&&(e=t.virtual.slides.length+e),e>=t.virtual.slides.length&&(e-=t.virtual.slides.length),l=o(`[data-swiper-slide-index="${e}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else r?(l=e.find(t=>t.column===n),h=e.find(t=>t.column===n+1),c=e.find(t=>t.column===n-1)):l=e[n];l&&(r||(h=function(t,e){const i=[];for(;t.nextElementSibling;){const s=t.nextElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!h&&(h=e[0]),c=function(t,e){const i=[];for(;t.previousElementSibling;){const s=t.previousElementSibling;e?s.matches(e)&&i.push(s):i.push(s),t=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=e[e.length-1]))),e.forEach(t=>{wA(t,t===l,i.slideActiveClass),wA(t,t===h,i.slideNextClass),wA(t,t===c,i.slidePrevClass)}),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:r,snapIndex:o}=e;let l,c=t;const h=t=>{let i=t-e.virtual.slidesBefore;return i<0&&(i=e.virtual.slides.length+i),i>=e.virtual.slides.length&&(i-=e.virtual.slides.length),i};if(void 0===c&&(c=function(t){const{slidesGrid:e,params:i}=t,s=t.rtlTranslate?t.translate:-t.translate;let n;for(let t=0;t<e.length;t+=1)void 0!==e[t+1]?s>=e[t]&&s<e[t+1]-(e[t+1]-e[t])/2?n=t:s>=e[t]&&s<e[t+1]&&(n=t+1):s>=e[t]&&(n=t);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(e)),s.indexOf(i)>=0)l=s.indexOf(i);else{const t=Math.min(n.slidesPerGroupSkip,c);l=t+Math.floor((c-t)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===a&&!e.params.loop)return void(l!==o&&(e.snapIndex=l,e.emit("snapIndexChange")));if(c===a&&e.params.loop&&e.virtual&&e.params.virtual.enabled)return void(e.realIndex=h(c));const d=e.grid&&n.grid&&n.grid.rows>1;let u;if(e.virtual&&n.virtual.enabled&&n.loop)u=h(c);else if(d){const t=e.slides.find(t=>t.column===c);let i=parseInt(t.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(e.slides.indexOf(t),0)),u=Math.floor(i/n.grid.rows)}else if(e.slides[c]){const t=e.slides[c].getAttribute("data-swiper-slide-index");u=t?parseInt(t,10):c}else u=c;Object.assign(e,{previousSnapIndex:o,snapIndex:l,previousRealIndex:r,realIndex:u,previousIndex:a,activeIndex:c}),e.initialized&&CA(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(r!==u&&e.emit("realIndexChange"),e.emit("slideChange"))},updateClickedSlide:function(t,e){const i=this,s=i.params;let n=t.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&e&&e.length>1&&e.includes(t)&&[...e.slice(e.indexOf(t)+1,e.length)].forEach(t=>{!n&&t.matches&&t.matches(`.${s.slideClass}, swiper-slide`)&&(n=t)});let a,r=!1;if(n)for(let t=0;t<i.slides.length;t+=1)if(i.slides[t]===n){r=!0,a=t;break}if(!n||!r)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},EA={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");const{params:e,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(e.virtualTranslate)return i?-s:s;if(e.cssMode)return s;let a=function(t,e){void 0===e&&(e="x");const i=Zw();let s,n,a;const r=function(t){const e=Zw();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(n=r.transform||r.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(t=>t.replace(",",".")).join(", ")),a=new i.WebKitCSSMatrix("none"===n?"":n)):(a=r.MozTransform||r.OTransform||r.MsTransform||r.msTransform||r.transform||r.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),s=a.toString().split(",")),"x"===e&&(n=i.WebKitCSSMatrix?a.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===e&&(n=i.WebKitCSSMatrix?a.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}(n,t);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(t,e){const i=this,{rtlTranslate:s,params:n,wrapperEl:a,progress:r}=i;let o,l=0,c=0;i.isHorizontal()?l=s?-t:t:c=t,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const h=i.maxTranslate()-i.minTranslate();o=0===h?0:(t-i.minTranslate())/h,o!==r&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t,e,i,s,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const a=this,{params:r,wrapperEl:o}=a;if(a.animating&&r.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let h;if(h=s&&t>l?l:s&&t<c?c:t,a.updateProgress(h),r.cssMode){const t=a.isHorizontal();if(0===e)o[t?"scrollLeft":"scrollTop"]=-h;else{if(!a.support.smoothScroll)return sA({swiper:a,targetPosition:-h,side:t?"left":"top"}),!0;o.scrollTo({[t?"left":"top"]:-h,behavior:"smooth"})}return!0}return 0===e?(a.setTransition(0),a.setTranslate(h),i&&(a.emit("beforeTransitionStart",e,n),a.emit("transitionEnd"))):(a.setTransition(e),a.setTranslate(h),i&&(a.emit("beforeTransitionStart",e,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(t){a&&!a.destroyed&&t.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}};function SA(t){let{swiper:e,runCallbacks:i,direction:s,step:n}=t;const{activeIndex:a,previousIndex:r}=e;let o=s;o||(o=a>r?"next":a<r?"prev":"reset"),e.emit(`transition${n}`),i&&"reset"===o?e.emit(`slideResetTransition${n}`):i&&a!==r&&(e.emit(`slideChangeTransition${n}`),"next"===o?e.emit(`slideNextTransition${n}`):e.emit(`slidePrevTransition${n}`))}var MA={setTransition:function(t,e){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${t}ms`,i.wrapperEl.style.transitionDelay=0===t?"0ms":""),i.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),SA({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t,e){void 0===t&&(t=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),SA({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},TA={slideTo:function(t,e,i,s,n){void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t&&(t=parseInt(t,10));const a=this;let r=t;r<0&&(r=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:h,activeIndex:d,rtlTranslate:u,wrapperEl:p,enabled:g}=a;if(!g&&!s&&!n||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===e&&(e=a.params.speed);const f=Math.min(a.params.slidesPerGroupSkip,r);let m=f+Math.floor((r-f)/a.params.slidesPerGroup);m>=l.length&&(m=l.length-1);const x=-l[m];if(o.normalizeSlideIndex)for(let t=0;t<c.length;t+=1){const e=-Math.floor(100*x),i=Math.floor(100*c[t]),s=Math.floor(100*c[t+1]);void 0!==c[t+1]?e>=i&&e<s-(s-i)/2?r=t:e>=i&&e<s&&(r=t+1):e>=i&&(r=t)}if(a.initialized&&r!==d){if(!a.allowSlideNext&&(u?x>a.translate&&x>a.minTranslate():x<a.translate&&x<a.minTranslate()))return!1;if(!a.allowSlidePrev&&x>a.translate&&x>a.maxTranslate()&&(d||0)!==r)return!1}let b;r!==(h||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(x),b=r>d?"next":r<d?"prev":"reset";const v=a.virtual&&a.params.virtual.enabled;if((!v||!n)&&(u&&-x===a.translate||!u&&x===a.translate))return a.updateActiveIndex(r),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(x),"reset"!==b&&(a.transitionStart(i,b),a.transitionEnd(i,b)),!1;if(o.cssMode){const t=a.isHorizontal(),i=u?x:-x;if(0===e)v&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),v&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[t?"scrollLeft":"scrollTop"]=i})):p[t?"scrollLeft":"scrollTop"]=i,v&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return sA({swiper:a,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}const y=bA().isSafari;return v&&!n&&y&&a.isElement&&a.virtual.update(!1,!1,r),a.setTransition(e),a.setTranslate(x),a.updateActiveIndex(r),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,s),a.transitionStart(i,b),0===e?a.transitionEnd(i,b):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(t){a&&!a.destroyed&&t.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,b))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t,e,i,s){void 0===t&&(t=0),void 0===i&&(i=!0),"string"==typeof t&&(t=parseInt(t,10));const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);const a=n.grid&&n.params.grid&&n.params.grid.rows>1;let r=t;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)r+=n.virtual.slidesBefore;else{let t;if(a){const e=r*n.params.grid.rows;t=n.slides.find(t=>1*t.getAttribute("data-swiper-slide-index")===e).column}else t=n.getSlideIndexByData(r);const e=a?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let o=n.params.slidesPerView;"auto"===o?o=n.slidesPerViewDynamic():(o=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&o%2==0&&(o+=1));let l=e-t<o;if(i&&(l=l||t<Math.ceil(o/2)),s&&i&&"auto"!==n.params.slidesPerView&&!a&&(l=!1),l){const s=i?t<n.activeIndex?"prev":"next":t-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?t+1:t-e+1,slideRealIndex:"next"===s?n.realIndex:void 0})}if(a){const t=r*n.params.grid.rows;r=n.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t).column}else r=n.getSlideIndexByData(r)}return requestAnimationFrame(()=>{n.slideTo(r,e,i,s)}),n},slideNext:function(t,e,i){void 0===e&&(e=!0);const s=this,{enabled:n,params:a,animating:r}=s;if(!n||s.destroyed)return s;void 0===t&&(t=s.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<a.slidesPerGroupSkip?1:o,c=s.virtual&&a.virtual.enabled;if(a.loop){if(r&&!c&&a.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,t,e,i)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,t,e,i):s.slideTo(s.activeIndex+l,t,e,i)},slidePrev:function(t,e,i){void 0===e&&(e=!0);const s=this,{params:n,snapGrid:a,slidesGrid:r,rtlTranslate:o,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===t&&(t=s.params.speed);const h=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!h&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function d(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=d(o?s.translate:-s.translate),p=a.map(t=>d(t)),g=n.freeMode&&n.freeMode.enabled;let f=a[p.indexOf(u)-1];if(void 0===f&&(n.cssMode||g)){let t;a.forEach((e,i)=>{u>=e&&(t=i)}),void 0!==t&&(f=g?a[t]:a[t>0?t-1:t])}let m=0;if(void 0!==f&&(m=r.indexOf(f),m<0&&(m=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,t,e,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{s.slideTo(m,t,e,i)}),!0):s.slideTo(m,t,e,i)},slideReset:function(t,e,i){void 0===e&&(e=!0);const s=this;if(!s.destroyed)return void 0===t&&(t=s.params.speed),s.slideTo(s.activeIndex,t,e,i)},slideToClosest:function(t,e,i,s){void 0===e&&(e=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);let a=n.activeIndex;const r=Math.min(n.params.slidesPerGroupSkip,a),o=r+Math.floor((a-r)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const t=n.snapGrid[o];l-t>(n.snapGrid[o+1]-t)*s&&(a+=n.params.slidesPerGroup)}else{const t=n.snapGrid[o-1];l-t<=(n.snapGrid[o]-t)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,t,e,i)},slideToClickedSlide:function(){const t=this;if(t.destroyed)return;const{params:e,slidesEl:i}=t,s="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,a=t.getSlideIndexWhenGrid(t.clickedIndex);const r=t.isElement?"swiper-slide":`.${e.slideClass}`,o=t.grid&&t.params.grid&&t.params.grid.rows>1;if(e.loop){if(t.animating)return;n=parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?t.slideToLoop(n):a>(o?(t.slides.length-s)/2-(t.params.grid.rows-1):t.slides.length-s)?(t.loopFix(),a=t.getSlideIndex(nA(i,`${r}[data-swiper-slide-index="${n}"]`)[0]),Qw(()=>{t.slideTo(a)})):t.slideTo(a)}else t.slideTo(a)}},LA={loopCreate:function(t,e){const i=this,{params:s,slidesEl:n}=i;if(!s.loop||i.virtual&&i.params.virtual.enabled)return;const a=()=>{nA(n,`.${s.slideClass}, swiper-slide`).forEach((t,e)=>{t.setAttribute("data-swiper-slide-index",e)})},r=i.grid&&s.grid&&s.grid.rows>1;s.loopAddBlankSlides&&(s.slidesPerGroup>1||r)&&(()=>{const t=nA(n,`.${s.slideBlankClass}`);t.forEach(t=>{t.remove()}),t.length>0&&(i.recalcSlides(),i.updateSlides())})();const o=s.slidesPerGroup*(r?s.grid.rows:1),l=i.slides.length%o!==0,c=r&&i.slides.length%s.grid.rows!==0,h=t=>{for(let e=0;e<t;e+=1){const t=i.isElement?rA("swiper-slide",[s.slideBlankClass]):rA("div",[s.slideClass,s.slideBlankClass]);i.slidesEl.append(t)}};l?(s.loopAddBlankSlides?(h(o-i.slides.length%o),i.recalcSlides(),i.updateSlides()):aA("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):c?(s.loopAddBlankSlides?(h(s.grid.rows-i.slides.length%s.grid.rows),i.recalcSlides(),i.updateSlides()):aA("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),a()):a(),i.loopFix({slideRealIndex:t,direction:s.centeredSlides?void 0:"next",initial:e})},loopFix:function(t){let{slideRealIndex:e,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:a,initial:r,byController:o,byMousewheel:l}=void 0===t?{}:t;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:h,allowSlidePrev:d,allowSlideNext:u,slidesEl:p,params:g}=c,{centeredSlides:f,initialSlide:m}=g;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&g.virtual.enabled)return i&&(g.centeredSlides||0!==c.snapIndex?g.centeredSlides&&c.snapIndex<g.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&c.slideTo(c.virtual.slidesBefore,0,!1,!0):c.slideTo(c.virtual.slides.length,0,!1,!0)),c.allowSlidePrev=d,c.allowSlideNext=u,void c.emit("loopFix");let x=g.slidesPerView;"auto"===x?x=c.slidesPerViewDynamic():(x=Math.ceil(parseFloat(g.slidesPerView,10)),f&&x%2==0&&(x+=1));const b=g.slidesPerGroupAuto?x:g.slidesPerGroup;let v=f?Math.max(b,Math.ceil(x/2)):b;v%b!==0&&(v+=b-v%b),v+=g.loopAdditionalSlides,c.loopedSlides=v;const y=c.grid&&g.grid&&g.grid.rows>1;h.length<x+v||"cards"===c.params.effect&&h.length<x+2*v?aA("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===g.grid.fill&&aA("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],A=[],k=y?Math.ceil(h.length/g.grid.rows):h.length,C=r&&k-m<x&&!f;let _=C?m:c.activeIndex;void 0===a?a=c.getSlideIndex(h.find(t=>t.classList.contains(g.slideActiveClass))):_=a;const E="next"===s||!s,S="prev"===s||!s;let M=0,T=0;const L=(y?h[a].column:a)+(f&&void 0===n?-x/2+.5:0);if(L<v){M=Math.max(v-L,b);for(let t=0;t<v-L;t+=1){const e=t-Math.floor(t/k)*k;if(y){const t=k-e-1;for(let e=h.length-1;e>=0;e-=1)h[e].column===t&&w.push(e)}else w.push(k-e-1)}}else if(L+x>k-v){T=Math.max(L-(k-2*v),b),C&&(T=Math.max(T,x-k+m+1));for(let t=0;t<T;t+=1){const e=t-Math.floor(t/k)*k;y?h.forEach((t,i)=>{t.column===e&&A.push(i)}):A.push(e)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),"cards"===c.params.effect&&h.length<x+2*v&&(A.includes(a)&&A.splice(A.indexOf(a),1),w.includes(a)&&w.splice(w.indexOf(a),1)),S&&w.forEach(t=>{h[t].swiperLoopMoveDOM=!0,p.prepend(h[t]),h[t].swiperLoopMoveDOM=!1}),E&&A.forEach(t=>{h[t].swiperLoopMoveDOM=!0,p.append(h[t]),h[t].swiperLoopMoveDOM=!1}),c.recalcSlides(),"auto"===g.slidesPerView?c.updateSlides():y&&(w.length>0&&S||A.length>0&&E)&&c.slides.forEach((t,e)=>{c.grid.updateSlide(e,t,c.slides)}),g.watchSlidesProgress&&c.updateSlidesOffset(),i)if(w.length>0&&S){if(void 0===e){const t=c.slidesGrid[_],e=c.slidesGrid[_+M]-t;l?c.setTranslate(c.translate-e):(c.slideTo(_+Math.ceil(M),0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-e,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-e))}else if(n){const t=y?w.length/g.grid.rows:w.length;c.slideTo(c.activeIndex+t,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(A.length>0&&E)if(void 0===e){const t=c.slidesGrid[_],e=c.slidesGrid[_-T]-t;l?c.setTranslate(c.translate-e):(c.slideTo(_-T,0,!1,!0),n&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-e,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-e))}else{const t=y?A.length/g.grid.rows:A.length;c.slideTo(c.activeIndex-t,0,!1,!0)}if(c.allowSlidePrev=d,c.allowSlideNext=u,c.controller&&c.controller.control&&!o){const t={slideRealIndex:e,direction:s,setTranslate:n,activeSlideIndex:a,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(e=>{!e.destroyed&&e.params.loop&&e.loopFix({...t,slideTo:e.params.slidesPerView===g.slidesPerView&&i})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...t,slideTo:c.controller.control.params.slidesPerView===g.slidesPerView&&i})}c.emit("loopFix")},loopDestroy:function(){const t=this,{params:e,slidesEl:i}=t;if(!e.loop||!i||t.virtual&&t.params.virtual.enabled)return;t.recalcSlides();const s=[];t.slides.forEach(t=>{const e=void 0===t.swiperSlideIndex?1*t.getAttribute("data-swiper-slide-index"):t.swiperSlideIndex;s[e]=t}),t.slides.forEach(t=>{t.removeAttribute("data-swiper-slide-index")}),s.forEach(t=>{i.append(t)}),t.recalcSlides(),t.slideTo(t.realIndex,0)}},PA={setGrabCursor:function(t){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=t?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})},unsetGrabCursor:function(){const t=this;t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t.isElement&&(t.__preventObserver__=!0),t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1}))}};function BA(t,e,i){const s=Zw(),{params:n}=t,a=n.edgeSwipeDetection,r=n.edgeSwipeThreshold;return!a||!(i<=r||i>=s.innerWidth-r)||"prevent"===a&&(e.preventDefault(),!0)}function OA(t){const e=this,i=Uw();let s=t;s.originalEvent&&(s=s.originalEvent);const n=e.touchEventsData;if("pointerdown"===s.type){if(null!==n.pointerId&&n.pointerId!==s.pointerId)return;n.pointerId=s.pointerId}else"touchstart"===s.type&&1===s.targetTouches.length&&(n.touchId=s.targetTouches[0].identifier);if("touchstart"===s.type)return void BA(e,s,s.targetTouches[0].pageX);const{params:a,touches:r,enabled:o}=e;if(!o)return;if(!a.simulateTouch&&"mouse"===s.pointerType)return;if(e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let l=s.target;if("wrapper"===a.touchEventsTarget&&!function(t,e){const i=Zw();let s=e.contains(t);return!s&&i.HTMLSlotElement&&e instanceof HTMLSlotElement&&(s=[...e.assignedElements()].includes(t),s||(s=function(t,e){const i=[e];for(;i.length>0;){const e=i.shift();if(t===e)return!0;i.push(...e.children,...e.shadowRoot?e.shadowRoot.children:[],...e.assignedElements?e.assignedElements():[])}}(t,e))),s}(l,e.wrapperEl))return;if("which"in s&&3===s.which)return;if("button"in s&&s.button>0)return;if(n.isTouched&&n.isMoved)return;const c=!!a.noSwipingClass&&""!==a.noSwipingClass,h=s.composedPath?s.composedPath():s.path;c&&s.target&&s.target.shadowRoot&&h&&(l=h[0]);const d=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,u=!(!s.target||!s.target.shadowRoot);if(a.noSwiping&&(u?function(t,e){return void 0===e&&(e=this),function e(i){if(!i||i===Uw()||i===Zw())return null;i.assignedSlot&&(i=i.assignedSlot);const s=i.closest(t);return s||i.getRootNode?s||e(i.getRootNode().host):null}(e)}(d,l):l.closest(d)))return void(e.allowClick=!0);if(a.swipeHandler&&!l.closest(a.swipeHandler))return;r.currentX=s.pageX,r.currentY=s.pageY;const p=r.currentX,g=r.currentY;if(!BA(e,s,p))return;Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),r.startX=p,r.startY=g,n.touchStartTime=Kw(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1);let f=!0;l.matches(n.focusableElements)&&(f=!1,"SELECT"===l.nodeName&&(n.isTouched=!1)),i.activeElement&&i.activeElement.matches(n.focusableElements)&&i.activeElement!==l&&("mouse"===s.pointerType||"mouse"!==s.pointerType&&!l.matches(n.focusableElements))&&i.activeElement.blur();const m=f&&e.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!m||l.isContentEditable||s.preventDefault(),a.freeMode&&a.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",s)}function IA(t){const e=Uw(),i=this,s=i.touchEventsData,{params:n,touches:a,rtlTranslate:r,enabled:o}=i;if(!o)return;if(!n.simulateTouch&&"mouse"===t.pointerType)return;let l,c=t;if(c.originalEvent&&(c=c.originalEvent),"pointermove"===c.type){if(null!==s.touchId)return;if(c.pointerId!==s.pointerId)return}if("touchmove"===c.type){if(l=[...c.changedTouches].find(t=>t.identifier===s.touchId),!l||l.identifier!==s.touchId)return}else l=c;if(!s.isTouched)return void(s.startMoving&&s.isScrolling&&i.emit("touchMoveOpposite",c));const h=l.pageX,d=l.pageY;if(c.preventedByNestedSwiper)return a.startX=h,void(a.startY=d);if(!i.allowTouchMove)return c.target.matches(s.focusableElements)||(i.allowClick=!1),void(s.isTouched&&(Object.assign(a,{startX:h,startY:d,currentX:h,currentY:d}),s.touchStartTime=Kw()));if(n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(d<a.startY&&i.translate<=i.maxTranslate()||d>a.startY&&i.translate>=i.minTranslate())return s.isTouched=!1,void(s.isMoved=!1)}else{if(r&&(h>a.startX&&-i.translate<=i.maxTranslate()||h<a.startX&&-i.translate>=i.minTranslate()))return;if(!r&&(h<a.startX&&i.translate<=i.maxTranslate()||h>a.startX&&i.translate>=i.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(s.focusableElements)&&e.activeElement!==c.target&&"mouse"!==c.pointerType&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(s.focusableElements))return s.isMoved=!0,void(i.allowClick=!1);s.allowTouchCallbacks&&i.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=h,a.currentY=d;const u=a.currentX-a.startX,p=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(u**2+p**2)<i.params.threshold)return;if(void 0===s.isScrolling){let t;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?s.isScrolling=!1:u*u+p*p>=25&&(t=180*Math.atan2(Math.abs(p),Math.abs(u))/Math.PI,s.isScrolling=i.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(s.isScrolling&&i.emit("touchMoveOpposite",c),void 0===s.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(s.startMoving=!0)),s.isScrolling||"touchmove"===c.type&&s.preventTouchMoveFromPointerMove)return void(s.isTouched=!1);if(!s.startMoving)return;i.allowClick=!1,!n.cssMode&&c.cancelable&&c.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&c.stopPropagation();let g=i.isHorizontal()?u:p,f=i.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;n.oneWayMovement&&(g=Math.abs(g)*(r?1:-1),f=Math.abs(f)*(r?1:-1)),a.diff=g,g*=n.touchRatio,r&&(g=-g,f=-f);const m=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=f>0?"prev":"next";const x=i.params.loop&&!n.cssMode,b="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!s.isMoved){if(x&&b&&i.loopFix({direction:i.swipeDirection}),s.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const t=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(t)}s.allowMomentumBounce=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",c)}if((new Date).getTime(),!1!==n._loopSwapReset&&s.isMoved&&s.allowThresholdMove&&m!==i.touchesDirection&&x&&b&&Math.abs(g)>=1)return Object.assign(a,{startX:h,startY:d,currentX:h,currentY:d,startTranslate:s.currentTranslate}),s.loopSwapReset=!0,void(s.startTranslate=s.currentTranslate);i.emit("sliderMove",c),s.isMoved=!0,s.currentTranslate=g+s.startTranslate;let v=!0,y=n.resistanceRatio;if(n.touchReleaseOnEdges&&(y=0),g>0?(x&&b&&s.allowThresholdMove&&s.currentTranslate>(n.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==n.slidesPerView&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),s.currentTranslate>i.minTranslate()&&(v=!1,n.resistance&&(s.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+s.startTranslate+g)**y))):g<0&&(x&&b&&s.allowThresholdMove&&s.currentTranslate<(n.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==n.slidesPerView&&i.slides.length-n.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===n.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(n.slidesPerView,10)))}),s.currentTranslate<i.maxTranslate()&&(v=!1,n.resistance&&(s.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-s.startTranslate-g)**y))),v&&(c.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&s.currentTranslate<s.startTranslate&&(s.currentTranslate=s.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&s.currentTranslate>s.startTranslate&&(s.currentTranslate=s.startTranslate),i.allowSlidePrev||i.allowSlideNext||(s.currentTranslate=s.startTranslate),n.threshold>0){if(!(Math.abs(g)>n.threshold||s.allowThresholdMove))return void(s.currentTranslate=s.startTranslate);if(!s.allowThresholdMove)return s.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,s.currentTranslate=s.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),n.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(s.currentTranslate),i.setTranslate(s.currentTranslate))}function zA(t){const e=this,i=e.touchEventsData;let s,n=t;if(n.originalEvent&&(n=n.originalEvent),"touchend"===n.type||"touchcancel"===n.type){if(s=[...n.changedTouches].find(t=>t.identifier===i.touchId),!s||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&(!["pointercancel","contextmenu"].includes(n.type)||!e.browser.isSafari&&!e.browser.isWebView))return;i.pointerId=null,i.touchId=null;const{params:a,touches:r,rtlTranslate:o,slidesGrid:l,enabled:c}=e;if(!c)return;if(!a.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&e.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&a.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);a.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const h=Kw(),d=h-i.touchStartTime;if(e.allowClick){const t=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(t&&t[0]||n.target,t),e.emit("tap click",n),d<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(i.lastClickTime=Kw(),Qw(()=>{e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===r.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=a.followFinger?o?e.translate:-e.translate:-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:u});const p=u>=-e.maxTranslate()&&!e.params.loop;let g=0,f=e.slidesSizesGrid[0];for(let t=0;t<l.length;t+=t<a.slidesPerGroupSkip?1:a.slidesPerGroup){const e=t<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==l[t+e]?(p||u>=l[t]&&u<l[t+e])&&(g=t,f=l[t+e]-l[t]):(p||u>=l[t])&&(g=t,f=l[l.length-1]-l[l.length-2])}let m=null,x=null;a.rewind&&(e.isBeginning?x=a.virtual&&a.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(m=0));const b=(u-l[g])/f,v=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(b>=a.longSwipesRatio?e.slideTo(a.rewind&&e.isEnd?m:g+v):e.slideTo(g)),"prev"===e.swipeDirection&&(b>1-a.longSwipesRatio?e.slideTo(g+v):null!==x&&b<0&&Math.abs(b)>a.longSwipesRatio?e.slideTo(x):e.slideTo(g))}else{if(!a.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||n.target!==e.navigation.nextEl&&n.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==m?m:g+v),"prev"===e.swipeDirection&&e.slideTo(null!==x?x:g)):n.target===e.navigation.nextEl?e.slideTo(g+v):e.slideTo(g)}}function DA(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=t,r=t.virtual&&t.params.virtual.enabled;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses();const o=r&&e.loop;!("auto"===e.slidesPerView||e.slidesPerView>1)||!t.isEnd||t.isBeginning||t.params.centeredSlides||o?t.params.loop&&!r?t.slideToLoop(t.realIndex,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0):t.slideTo(t.slides.length-1,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&(clearTimeout(t.autoplay.resizeTimeout),t.autoplay.resizeTimeout=setTimeout(()=>{t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.resume()},500)),t.allowSlidePrev=n,t.allowSlideNext=s,t.params.watchOverflow&&a!==t.snapGrid&&t.checkOverflow()}function FA(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function RA(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:s}=t;if(!s)return;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const a=t.maxTranslate()-t.minTranslate();n=0===a?0:(t.translate-t.minTranslate())/a,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}function HA(t){const e=this;AA(e,t.target),e.params.cssMode||"auto"!==e.params.slidesPerView&&!e.params.autoHeight||e.update()}function NA(){const t=this;t.documentTouchHandlerProceeded||(t.documentTouchHandlerProceeded=!0,t.params.touchReleaseOnEdges&&(t.el.style.touchAction="auto"))}const YA=(t,e)=>{const i=Uw(),{params:s,el:n,wrapperEl:a,device:r}=t,o=!!s.nested,l="on"===e?"addEventListener":"removeEventListener",c=e;n&&"string"!=typeof n&&(i[l]("touchstart",t.onDocumentTouchStart,{passive:!1,capture:o}),n[l]("touchstart",t.onTouchStart,{passive:!1}),n[l]("pointerdown",t.onTouchStart,{passive:!1}),i[l]("touchmove",t.onTouchMove,{passive:!1,capture:o}),i[l]("pointermove",t.onTouchMove,{passive:!1,capture:o}),i[l]("touchend",t.onTouchEnd,{passive:!0}),i[l]("pointerup",t.onTouchEnd,{passive:!0}),i[l]("pointercancel",t.onTouchEnd,{passive:!0}),i[l]("touchcancel",t.onTouchEnd,{passive:!0}),i[l]("pointerout",t.onTouchEnd,{passive:!0}),i[l]("pointerleave",t.onTouchEnd,{passive:!0}),i[l]("contextmenu",t.onTouchEnd,{passive:!0}),(s.preventClicks||s.preventClicksPropagation)&&n[l]("click",t.onClick,!0),s.cssMode&&a[l]("scroll",t.onScroll),s.updateOnWindowResize?t[c](r.ios||r.android?"resize orientationchange observerUpdate":"resize observerUpdate",DA,!0):t[c]("observerUpdate",DA,!0),n[l]("load",t.onLoad,{capture:!0}))};var WA={attachEvents:function(){const t=this,{params:e}=t;t.onTouchStart=OA.bind(t),t.onTouchMove=IA.bind(t),t.onTouchEnd=zA.bind(t),t.onDocumentTouchStart=NA.bind(t),e.cssMode&&(t.onScroll=RA.bind(t)),t.onClick=FA.bind(t),t.onLoad=HA.bind(t),YA(t,"on")},detachEvents:function(){YA(this,"off")}};const XA=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var jA={setBreakpoint:function(){const t=this,{realIndex:e,initialized:i,params:s,el:n}=t,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const r=Uw(),o="window"!==s.breakpointsBase&&s.breakpointsBase?"container":s.breakpointsBase,l=["window","container"].includes(s.breakpointsBase)||!s.breakpointsBase?t.el:r.querySelector(s.breakpointsBase),c=t.getBreakpoint(a,o,l);if(!c||t.currentBreakpoint===c)return;const h=(c in a?a[c]:void 0)||t.originalParams,d=XA(t,s),u=XA(t,h),p=t.params.grabCursor,g=h.grabCursor,f=s.enabled;d&&!u?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),t.emitContainerClasses()):!d&&u&&(n.classList.add(`${s.containerModifierClass}grid`),(h.grid.fill&&"column"===h.grid.fill||!h.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),t.emitContainerClasses()),p&&!g?t.unsetGrabCursor():!p&&g&&t.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(e=>{if(void 0===h[e])return;const i=s[e]&&s[e].enabled,n=h[e]&&h[e].enabled;i&&!n&&t[e].disable(),!i&&n&&t[e].enable()});const m=h.direction&&h.direction!==s.direction,x=s.loop&&(h.slidesPerView!==s.slidesPerView||m),b=s.loop;m&&i&&t.changeDirection(),eA(t.params,h);const v=t.params.enabled,y=t.params.loop;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),f&&!v?t.disable():!f&&v&&t.enable(),t.currentBreakpoint=c,t.emit("_beforeBreakpoint",h),i&&(x?(t.loopDestroy(),t.loopCreate(e),t.updateSlides()):!b&&y?(t.loopCreate(e),t.updateSlides()):b&&!y&&t.loopDestroy()),t.emit("breakpoint",h)},getBreakpoint:function(t,e,i){if(void 0===e&&(e="window"),!t||"container"===e&&!i)return;let s=!1;const n=Zw(),a="window"===e?n.innerHeight:i.clientHeight,r=Object.keys(t).map(t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:a*e,point:t}}return{value:t,point:t}});r.sort((t,e)=>parseInt(t.value,10)-parseInt(e.value,10));for(let t=0;t<r.length;t+=1){const{point:a,value:o}=r[t];"window"===e?n.matchMedia(`(min-width: ${o}px)`).matches&&(s=a):o<=i.clientWidth&&(s=a)}return s||"max"}},VA={addClasses:function(){const t=this,{classNames:e,params:i,rtl:s,el:n,device:a}=t,r=function(t,e){const i=[];return t.forEach(t=>{"object"==typeof t?Object.keys(t).forEach(s=>{t[s]&&i.push(e+s)}):"string"==typeof t&&i.push(e+t)}),i}(["initialized",i.direction,{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...r),n.classList.add(...e),t.emitContainerClasses()},removeClasses:function(){const{el:t,classNames:e}=this;t&&"string"!=typeof t&&(t.classList.remove(...e),this.emitContainerClasses())}},GA={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function $A(t,e){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===t[s]&&(t[s]={enabled:!0}),"navigation"===s&&t[s]&&t[s].enabled&&!t[s].prevEl&&!t[s].nextEl&&(t[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&t[s]&&t[s].enabled&&!t[s].el&&(t[s].auto=!0),s in t&&"enabled"in n?("object"!=typeof t[s]||"enabled"in t[s]||(t[s].enabled=!0),t[s]||(t[s]={enabled:!1}),eA(e,i)):eA(e,i)):eA(e,i)}}const UA={eventsEmitter:vA,update:_A,translate:EA,transition:MA,slide:TA,loop:LA,grabCursor:PA,events:WA,breakpoints:jA,checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:s}=i;if(s){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*s;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:VA},qA={};class ZA{constructor(){let t,e;for(var i=arguments.length,s=new Array(i),n=0;n<i;n++)s[n]=arguments[n];1===s.length&&s[0].constructor&&"Object"===Object.prototype.toString.call(s[0]).slice(8,-1)?e=s[0]:[t,e]=s,e||(e={}),e=eA({},e),t&&!e.el&&(e.el=t);const a=Uw();if(e.el&&"string"==typeof e.el&&a.querySelectorAll(e.el).length>1){const t=[];return a.querySelectorAll(e.el).forEach(i=>{const s=eA({},e,{el:i});t.push(new ZA(s))}),t}const r=this;r.__swiper__=!0,r.support=mA(),r.device=xA({userAgent:e.userAgent}),r.browser=bA(),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],e.modules&&Array.isArray(e.modules)&&r.modules.push(...e.modules);const o={};r.modules.forEach(t=>{t({params:e,swiper:r,extendParams:$A(e,o),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})});const l=eA({},GA,o);return r.params=eA({},l,qA,e),r.originalParams=eA({},r.params),r.passedParams=eA({},e),r.params&&r.params.on&&Object.keys(r.params.on).forEach(t=>{r.on(t,r.params.on[t])}),r.params&&r.params.onAny&&r.onAny(r.params.onAny),Object.assign(r,{enabled:r.params.enabled,el:t,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===r.params.direction,isVertical:()=>"vertical"===r.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}getDirectionLabel(t){return this.isHorizontal()?t:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[t]}getSlideIndex(t){const{slidesEl:e,params:i}=this,s=lA(nA(e,`.${i.slideClass}, swiper-slide`)[0]);return lA(t)-s}getSlideIndexByData(t){return this.getSlideIndex(this.slides.find(e=>1*e.getAttribute("data-swiper-slide-index")===t))}getSlideIndexWhenGrid(t){return this.grid&&this.params.grid&&this.params.grid.rows>1&&("column"===this.params.grid.fill?t=Math.floor(t/this.params.grid.rows):"row"===this.params.grid.fill&&(t%=Math.ceil(this.slides.length/this.params.grid.rows))),t}recalcSlides(){const{slidesEl:t,params:e}=this;this.slides=nA(t,`.${e.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*t+s;i.translateTo(n,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter(e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter(t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass)).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.forEach(i=>{const s=t.getSlideClasses(i);e.push({slideEl:i,classNames:s}),t.emit("_slideClass",i,s)}),t.emit("_slideClasses",e)}slidesPerViewDynamic(t,e){void 0===t&&(t="current"),void 0===e&&(e=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:r,activeIndex:o}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let t,e=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;i<s.length;i+=1)s[i]&&!t&&(e+=Math.ceil(s[i].swiperSlideSize),l+=1,e>r&&(t=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!t&&(e+=s[i].swiperSlideSize,l+=1,e>r&&(t=!0))}else if("current"===t)for(let t=o+1;t<s.length;t+=1)(e?n[t]+a[t]-n[o]<r:n[t]-n[o]<r)&&(l+=1);else for(let t=o-1;t>=0;t-=1)n[o]-n[t]<r&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function s(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let n;if(i.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(e=>{e.complete&&AA(t,e)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&t.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&t.isEnd&&!i.centeredSlides){const e=t.virtual&&i.virtual.enabled?t.virtual.slides:t.slides;n=t.slideTo(e.length-1,0,!1,!0)}else n=t.slideTo(t.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e){void 0===e&&(e=!0);const i=this,s=i.params.direction;return t||(t="horizontal"===s?"vertical":"horizontal"),t===s||"horizontal"!==t&&"vertical"!==t||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.forEach(e=>{"vertical"===t?e.style.width="":e.style.height=""}),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.el.classList.add(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.el.classList.remove(`${e.params.containerModifierClass}rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;let i=t||e.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=e,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===e.params.swiperElementNodeName.toUpperCase()&&(e.isElement=!0);const s=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):nA(i,s())[0];return!n&&e.params.createElements&&(n=rA("div",e.params.wrapperClass),i.append(n),nA(i,`.${e.params.slideClass}`).forEach(t=>{n.append(t)})),Object.assign(e,{el:i,wrapperEl:n,slidesEl:e.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:e.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===oA(i,"direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===oA(i,"direction")),wrongRTL:"-webkit-box"===oA(n,"display")}),!0}init(t){const e=this;if(e.initialized)return e;if(!1===e.mount(t))return e;e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.loop&&e.virtual&&e.params.virtual.enabled?e.slideTo(e.params.initialSlide+e.virtual.slidesBefore,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.params.loop&&e.loopCreate(void 0,!0),e.attachEvents();const i=[...e.el.querySelectorAll('[loading="lazy"]')];return e.isElement&&i.push(...e.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(t=>{t.complete?AA(e,t):t.addEventListener("load",t=>{AA(e,t.target)})}),CA(e),e.initialized=!0,CA(e),e.emit("init"),e.emit("afterInit"),e}destroy(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);const i=this,{params:s,el:n,wrapperEl:a,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),e&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),a&&a.removeAttribute("style"),r&&r.length&&r.forEach(t=>{t.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),t.removeAttribute("style"),t.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(t=>{i.off(t)}),!1!==t&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(t){const e=t;Object.keys(e).forEach(t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})}(i)),i.destroyed=!0),null}static extendDefaults(t){eA(qA,t)}static get extendedDefaults(){return qA}static get defaults(){return GA}static installModule(t){ZA.prototype.__modules__||(ZA.prototype.__modules__=[]);const e=ZA.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach(t=>ZA.installModule(t)),ZA):(ZA.installModule(t),ZA)}}function QA(t,e,i,s){return t.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&!0===i.auto){let a=nA(t.el,`.${s[n]}`)[0];a||(a=rA("div",s[n]),a.className=s[n],t.el.append(a)),i[n]=a,e[n]=a}}),i}function KA(t){return void 0===t&&(t=""),`.${t.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}Object.keys(UA).forEach(t=>{Object.keys(UA[t]).forEach(e=>{ZA.prototype[e]=UA[t][e]})}),ZA.use([function(t){let{swiper:e,on:i,emit:s}=t;const n=Zw();let a=null,r=null;const o=()=>{e&&!e.destroyed&&e.initialized&&(s("beforeResize"),s("resize"))},l=()=>{e&&!e.destroyed&&e.initialized&&s("orientationchange")};i("init",()=>{e.params.resizeObserver&&void 0!==n.ResizeObserver?e&&!e.destroyed&&e.initialized&&(a=new ResizeObserver(t=>{r=n.requestAnimationFrame(()=>{const{width:i,height:s}=e;let n=i,a=s;t.forEach(t=>{let{contentBoxSize:i,contentRect:s,target:r}=t;r&&r!==e.el||(n=s?s.width:(i[0]||i).inlineSize,a=s?s.height:(i[0]||i).blockSize)}),n===i&&a===s||o()})}),a.observe(e.el)):(n.addEventListener("resize",o),n.addEventListener("orientationchange",l))}),i("destroy",()=>{r&&n.cancelAnimationFrame(r),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null),n.removeEventListener("resize",o),n.removeEventListener("orientationchange",l)})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a=[],r=Zw(),o=function(t,i){void 0===i&&(i={});const s=new(r.MutationObserver||r.WebkitMutationObserver)(t=>{if(e.__preventObserver__)return;if(1===t.length)return void n("observerUpdate",t[0]);const i=function(){n("observerUpdate",t[0])};r.requestAnimationFrame?r.requestAnimationFrame(i):r.setTimeout(i,0)});s.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:e.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),a.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(e.params.observer){if(e.params.observeParents){const t=cA(e.hostEl);for(let e=0;e<t.length;e+=1)o(t[e])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}}),s("destroy",()=>{a.forEach(t=>{t.disconnect()}),a.splice(0,a.length)})}]);var JA=i(2870),tk={};tk.styleTagTransform=Ig(),tk.setAttributes=Lg(),tk.insert=Mg().bind(null,"head"),tk.domAPI=Eg(),tk.insertStyleElement=Bg(),Cg()(JA.A,tk),JA.A&&JA.A.locals&&JA.A.locals;var ek=i(506),ik={};ik.styleTagTransform=Ig(),ik.setAttributes=Lg(),ik.insert=Mg().bind(null,"head"),ik.domAPI=Eg(),ik.insertStyleElement=Bg(),Cg()(ek.A,ik),ek.A&&ek.A.locals&&ek.A.locals;var sk=i(5124),nk={};nk.styleTagTransform=Ig(),nk.setAttributes=Lg(),nk.insert=Mg().bind(null,"head"),nk.domAPI=Eg(),nk.insertStyleElement=Bg(),Cg()(sk.A,nk),sk.A&&sk.A.locals&&sk.A.locals;var ak=i(2087),rk={};rk.styleTagTransform=Ig(),rk.setAttributes=Lg(),rk.insert=Mg().bind(null,"head"),rk.domAPI=Eg(),rk.insertStyleElement=Bg(),Cg()(ak.A,rk),ak.A&&ak.A.locals&&ak.A.locals,window.bootstrap=e,window.Alpine=gc,window.Swal=mc(),window.ApexCharts=Ag,window.Chart=jw,window.Swiper=ZA,ZA.use([function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;function a(t){let i;return t&&"string"==typeof t&&e.isElement&&(i=e.el.querySelector(t)||e.hostEl.querySelector(t),i)?i:(t&&("string"==typeof t&&(i=[...document.querySelectorAll(t)]),e.params.uniqueNavElements&&"string"==typeof t&&i&&i.length>1&&1===e.el.querySelectorAll(t).length?i=e.el.querySelector(t):i&&1===i.length&&(i=i[0])),t&&!i?t:i)}function r(t,i){const s=e.params.navigation;(t=dA(t)).forEach(t=>{t&&(t.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===t.tagName&&(t.disabled=i),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](s.lockClass))})}function o(){const{nextEl:t,prevEl:i}=e.navigation;if(e.params.loop)return r(i,!1),void r(t,!1);r(i,e.isBeginning&&!e.params.rewind),r(t,e.isEnd&&!e.params.rewind)}function l(t){t.preventDefault(),(!e.isBeginning||e.params.loop||e.params.rewind)&&(e.slidePrev(),n("navigationPrev"))}function c(t){t.preventDefault(),(!e.isEnd||e.params.loop||e.params.rewind)&&(e.slideNext(),n("navigationNext"))}function h(){const t=e.params.navigation;if(e.params.navigation=QA(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!t.nextEl&&!t.prevEl)return;let i=a(t.nextEl),s=a(t.prevEl);Object.assign(e.navigation,{nextEl:i,prevEl:s}),i=dA(i),s=dA(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?c:l),!e.enabled&&i&&i.classList.add(...t.lockClass.split(" "))};i.forEach(t=>n(t,"next")),s.forEach(t=>n(t,"prev"))}function d(){let{nextEl:t,prevEl:i}=e.navigation;t=dA(t),i=dA(i);const s=(t,i)=>{t.removeEventListener("click","next"===i?c:l),t.classList.remove(...e.params.navigation.disabledClass.split(" "))};t.forEach(t=>s(t,"next")),i.forEach(t=>s(t,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null},s("init",()=>{!1===e.params.navigation.enabled?u():(h(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{d()}),s("enable disable",()=>{let{nextEl:t,prevEl:i}=e.navigation;t=dA(t),i=dA(i),e.enabled?o():[...t,...i].filter(t=>!!t).forEach(t=>t.classList.add(e.params.navigation.lockClass))}),s("click",(t,i)=>{let{nextEl:s,prevEl:a}=e.navigation;s=dA(s),a=dA(a);const r=i.target;let o=a.includes(r)||s.includes(r);if(e.isElement&&!o){const t=i.path||i.composedPath&&i.composedPath();t&&(o=t.find(t=>s.includes(t)||a.includes(t)))}if(e.params.navigation.hideOnClick&&!o){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===r||e.pagination.el.contains(r)))return;let t;s.length?t=s[0].classList.contains(e.params.navigation.hiddenClass):a.length&&(t=a[0].classList.contains(e.params.navigation.hiddenClass)),n(!0===t?"navigationShow":"navigationHide"),[...s,...a].filter(t=>!!t).forEach(t=>t.classList.toggle(e.params.navigation.hiddenClass))}});const u=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),h(),o()},disable:u,update:o,init:h,destroy:d})},function(t){let{swiper:e,extendParams:i,on:s,emit:n}=t;const a="swiper-pagination";let r;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:t=>t,formatFractionTotal:t=>t,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),e.pagination={el:null,bullets:[]};let o=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&0===e.pagination.el.length}function c(t,i){const{bulletActiveClass:s}=e.params.pagination;t&&(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&(t.classList.add(`${s}-${i}`),(t=t[("prev"===i?"previous":"next")+"ElementSibling"])&&t.classList.add(`${s}-${i}-${i}`))}function h(t){const i=t.target.closest(KA(e.params.pagination.bulletClass));if(!i)return;t.preventDefault();const s=lA(i)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===s)return;const t=(n=e.realIndex,a=s,(a%=r=e.slides.length)===1+(n%=r)?"next":a===n-1?"previous":void 0);"next"===t?e.slideNext():"previous"===t?e.slidePrev():e.slideToLoop(s)}else e.slideTo(s);var n,a,r}function d(){const t=e.rtl,i=e.params.pagination;if(l())return;let s,a,h=e.pagination.el;h=dA(h);const d=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,u=e.params.loop?Math.ceil(d/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(a=e.previousRealIndex||0,s=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):void 0!==e.snapIndex?(s=e.snapIndex,a=e.previousSnapIndex):(a=e.previousIndex||0,s=e.activeIndex||0),"bullets"===i.type&&e.pagination.bullets&&e.pagination.bullets.length>0){const n=e.pagination.bullets;let l,d,u;if(i.dynamicBullets&&(r=hA(n[0],e.isHorizontal()?"width":"height",!0),h.forEach(t=>{t.style[e.isHorizontal()?"width":"height"]=r*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==a&&(o+=s-(a||0),o>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(s-o,0),d=l+(Math.min(n.length,i.dynamicMainBullets)-1),u=(d+l)/2),n.forEach(t=>{const e=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(t=>`${i.bulletActiveClass}${t}`)].map(t=>"string"==typeof t&&t.includes(" ")?t.split(" "):t).flat();t.classList.remove(...e)}),h.length>1)n.forEach(t=>{const n=lA(t);n===s?t.classList.add(...i.bulletActiveClass.split(" ")):e.isElement&&t.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=d&&t.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&c(t,"prev"),n===d&&c(t,"next"))});else{const t=n[s];if(t&&t.classList.add(...i.bulletActiveClass.split(" ")),e.isElement&&n.forEach((t,e)=>{t.setAttribute("part",e===s?"bullet-active":"bullet")}),i.dynamicBullets){const t=n[l],e=n[d];for(let t=l;t<=d;t+=1)n[t]&&n[t].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(t,"prev"),c(e,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(r*s-r)/2-u*r,o=t?"right":"left";n.forEach(t=>{t.style[e.isHorizontal()?o:"top"]=`${a}px`})}}h.forEach((t,a)=>{if("fraction"===i.type&&(t.querySelectorAll(KA(i.currentClass)).forEach(t=>{t.textContent=i.formatFractionCurrent(s+1)}),t.querySelectorAll(KA(i.totalClass)).forEach(t=>{t.textContent=i.formatFractionTotal(u)})),"progressbar"===i.type){let n;n=i.progressbarOpposite?e.isHorizontal()?"vertical":"horizontal":e.isHorizontal()?"horizontal":"vertical";const a=(s+1)/u;let r=1,o=1;"horizontal"===n?r=a:o=a,t.querySelectorAll(KA(i.progressbarFillClass)).forEach(t=>{t.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,t.style.transitionDuration=`${e.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(uA(t,i.renderCustom(e,s+1,u)),0===a&&n("paginationRender",t)):(0===a&&n("paginationRender",t),n("paginationUpdate",t)),e.params.watchOverflow&&e.enabled&&t.classList[e.isLocked?"add":"remove"](i.lockClass)})}function u(){const t=e.params.pagination;if(l())return;const i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let s=e.pagination.el;s=dA(s);let a="";if("bullets"===t.type){let s=e.params.loop?Math.ceil(i/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)t.renderBullet?a+=t.renderBullet.call(e,i,t.bulletClass):a+=`<${t.bulletElement} ${e.isElement?'part="bullet"':""} class="${t.bulletClass}"></${t.bulletElement}>`}"fraction"===t.type&&(a=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):`<span class="${t.currentClass}"></span> / <span class="${t.totalClass}"></span>`),"progressbar"===t.type&&(a=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):`<span class="${t.progressbarFillClass}"></span>`),e.pagination.bullets=[],s.forEach(i=>{"custom"!==t.type&&uA(i,a||""),"bullets"===t.type&&e.pagination.bullets.push(...i.querySelectorAll(KA(t.bulletClass)))}),"custom"!==t.type&&n("paginationRender",s[0])}function p(){e.params.pagination=QA(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const t=e.params.pagination;if(!t.el)return;let i;"string"==typeof t.el&&e.isElement&&(i=e.el.querySelector(t.el)),i||"string"!=typeof t.el||(i=[...document.querySelectorAll(t.el)]),i||(i=t.el),i&&0!==i.length&&(e.params.uniqueNavElements&&"string"==typeof t.el&&Array.isArray(i)&&i.length>1&&(i=[...e.el.querySelectorAll(t.el)],i.length>1&&(i=i.find(t=>cA(t,".swiper")[0]===e.el))),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(e.pagination,{el:i}),i=dA(i),i.forEach(i=>{"bullets"===t.type&&t.clickable&&i.classList.add(...(t.clickableClass||"").split(" ")),i.classList.add(t.modifierClass+t.type),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass),"bullets"===t.type&&t.dynamicBullets&&(i.classList.add(`${t.modifierClass}${t.type}-dynamic`),o=0,t.dynamicMainBullets<1&&(t.dynamicMainBullets=1)),"progressbar"===t.type&&t.progressbarOpposite&&i.classList.add(t.progressbarOppositeClass),t.clickable&&i.addEventListener("click",h),e.enabled||i.classList.add(t.lockClass)}))}function g(){const t=e.params.pagination;if(l())return;let i=e.pagination.el;i&&(i=dA(i),i.forEach(i=>{i.classList.remove(t.hiddenClass),i.classList.remove(t.modifierClass+t.type),i.classList.remove(e.isHorizontal()?t.horizontalClass:t.verticalClass),t.clickable&&(i.classList.remove(...(t.clickableClass||"").split(" ")),i.removeEventListener("click",h))})),e.pagination.bullets&&e.pagination.bullets.forEach(e=>e.classList.remove(...t.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const t=e.params.pagination;let{el:i}=e.pagination;i=dA(i),i.forEach(i=>{i.classList.remove(t.horizontalClass,t.verticalClass),i.classList.add(e.isHorizontal()?t.horizontalClass:t.verticalClass)})}),s("init",()=>{!1===e.params.pagination.enabled?f():(p(),u(),d())}),s("activeIndexChange",()=>{void 0===e.snapIndex&&d()}),s("snapIndexChange",()=>{d()}),s("snapGridLengthChange",()=>{u(),d()}),s("destroy",()=>{g()}),s("enable disable",()=>{let{el:t}=e.pagination;t&&(t=dA(t),t.forEach(t=>t.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),s("lock unlock",()=>{d()}),s("click",(t,i)=>{const s=i.target,a=dA(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&a&&a.length>0&&!s.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&s===e.navigation.nextEl||e.navigation.prevEl&&s===e.navigation.prevEl))return;const t=a[0].classList.contains(e.params.pagination.hiddenClass);n(!0===t?"paginationShow":"paginationHide"),a.forEach(t=>t.classList.toggle(e.params.pagination.hiddenClass))}});const f=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=dA(t),t.forEach(t=>t.classList.add(e.params.pagination.paginationDisabledClass))),g()};Object.assign(e.pagination,{enable:()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:t}=e.pagination;t&&(t=dA(t),t.forEach(t=>t.classList.remove(e.params.pagination.paginationDisabledClass))),p(),u(),d()},disable:f,render:u,update:d,init:p,destroy:g})},function(t){let{swiper:e,extendParams:i,on:s}=t;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let n=!1,a=!1;function r(){const t=e.thumbs.swiper;if(!t||t.destroyed)return;const i=t.clickedIndex,s=t.clickedSlide;if(s&&s.classList.contains(e.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=t.params.loop?parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,e.params.loop?e.slideToLoop(n):e.slideTo(n)}function o(){const{thumbs:t}=e.params;if(n)return!1;n=!0;const i=e.constructor;if(t.swiper instanceof i){if(t.swiper.destroyed)return n=!1,!1;e.thumbs.swiper=t.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update()}else if(Jw(t.swiper)){const s=Object.assign({},t.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new i(s),a=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",r),!0}function l(t){const i=e.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const a=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(n=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach(t=>t.classList.remove(a)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let t=0;t<n;t+=1)nA(i.slidesEl,`[data-swiper-slide-index="${e.realIndex+t}"]`).forEach(t=>{t.classList.add(a)});else for(let t=0;t<n;t+=1)i.slides[e.realIndex+t]&&i.slides[e.realIndex+t].classList.add(a);const r=e.params.thumbs.autoScrollOffset,o=r&&!i.params.loop;if(e.realIndex!==i.realIndex||o){const n=i.activeIndex;let a,l;if(i.params.loop){const t=i.slides.find(t=>t.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);a=i.slides.indexOf(t),l=e.activeIndex>e.previousIndex?"next":"prev"}else a=e.realIndex,l=a>e.previousIndex?"next":"prev";o&&(a+="next"===l?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>n?a-Math.floor(s/2)+1:a+Math.floor(s/2)-1:a>n&&i.params.slidesPerGroup,i.slideTo(a,t?0:void 0))}}e.thumbs={swiper:null},s("beforeInit",()=>{const{thumbs:t}=e.params;if(t&&t.swiper)if("string"==typeof t.swiper||t.swiper instanceof HTMLElement){const i=Uw(),s=()=>{const s="string"==typeof t.swiper?i.querySelector(t.swiper):t.swiper;if(s&&s.swiper)t.swiper=s.swiper,o(),l(!0);else if(s){const i=`${e.params.eventsPrefix}init`,n=a=>{t.swiper=a.detail[0],s.removeEventListener(i,n),o(),l(!0),t.swiper.update(),e.update()};s.addEventListener(i,n)}return s},n=()=>{e.destroyed||s()||requestAnimationFrame(n)};requestAnimationFrame(n)}else o(),l(!0)}),s("slideChange update resize observerUpdate",()=>{l()}),s("setTransition",(t,i)=>{const s=e.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),s("beforeDestroy",()=>{const t=e.thumbs.swiper;t&&!t.destroyed&&a&&t.destroy()}),Object.assign(e.thumbs,{init:o,update:l})}]),gc.store("i18n",{currentLang:"pt",translations:{},async init(){console.log("🌍 Initializing i18n store...");const t=localStorage.getItem("language")||"pt";this.currentLang=t,await this.loadTranslations(),console.log("✅ i18n store initialized with language: ".concat(this.currentLang))},async loadTranslations(){try{const t=await fetch("/assets/lang/".concat(this.currentLang,".json"));t.ok?(this.translations=await t.json(),console.log("✅ Translations loaded for language: ".concat(this.currentLang))):console.warn("⚠️ Failed to load translations for: ".concat(this.currentLang))}catch(t){console.error("❌ Failed to load translations:",t)}},t(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.split(".").reduce((t,e)=>t?t[e]:void 0,this.translations);if(null==i){const e=t.replace(/\./g,"-");if(i=this.translations[e],null==i){console.warn("🔍 Translation missing: ".concat(t));const e=t.split(".");return e[e.length-1].replace(/-/g," ").replace(/_/g," ")}}return Object.keys(e).forEach(t=>{i=i.replace("{".concat(t,"}"),e[t])}),i},async setLang(t){console.log("🌍 setLang called with: ".concat(t)),this.currentLang=t,await this.loadTranslations(),console.log("🔄 Language changed to: ".concat(t,", translations loaded: ").concat(Object.keys(this.translations).length," keys")),setTimeout(()=>{document.querySelectorAll('[x-text*="$t("], [x-bind\\:placeholder*="$t("]').forEach(t=>{t._x_dataStack&&t._x_dataStack.length>0&&gc.initTree(t)}),console.log("🔄 Alpine.js expressions re-evaluated after language change")},100),window.dispatchEvent(new CustomEvent("language-changed",{detail:{lang:t}}))}}),document.addEventListener("DOMContentLoaded",async()=>{console.log("🚀 Initializing vendor bundle..."),await gc.store("i18n").init(),await new Promise(t=>setTimeout(t,100));const t=Object.keys(gc.store("i18n").translations).length;console.log("📚 Translations loaded: ".concat(t," keys"));const e=gc.store("i18n").t("t-users-title");console.log('🧪 Test translation: "'.concat(e,'"')),gc.magic("t",()=>function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=gc.store("i18n");return i&&"function"==typeof i.t?i.t(t,e):(console.warn("⚠️ i18n store not available for key: ".concat(t)),t.split(".").pop().replace(/-/g," ").replace(/_/g," "))}),gc.start(),console.log("✅ Vendor libraries loaded: Bootstrap, Alpine.js, SweetAlert2, Translation System")}),window.debugTranslation=function(t){const e=gc.store("i18n");console.log('Translation Debug for "'.concat(t,'":'),{key:t,translation:e.t(t),currentLang:e.currentLang,hasTranslations:Object.keys(e.translations).length>0})}})()})();
|
|
//# sourceMappingURL=vendor.9519303acbdcceec1cd1.js.map |