wertyz-vue 1.0.2 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/wertyzVue.js +1 -1
- package/package.json +1 -1
package/dist/wertyzVue.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see wertyzVue.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("wertyzvue",["vue"],e):"object"==typeof exports?exports.wertyzvue=e(require("vue")):t.wertyzvue=e(t.vue)}(self,(t=>(()=>{var e={295:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n/*.v-spinner\n{\n margin: 100px auto;\n text-align: center;\n}\n*/\n@-webkit-keyframes v-pulseStretchDelay\n{\n0%,\n 80%\n {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1; \n opacity: 1;\n}\n45%\n {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7; \n opacity: 0.7;\n}\n}\n@keyframes v-pulseStretchDelay\n{\n0%,\n 80%\n {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1; \n opacity: 1;\n}\n45%\n {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7; \n opacity: 0.7;\n}\n}\n",""]);const r=s},239:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.header[data-v-0fb2ac16] {\n flex-basis: 100%;\n}\n.chart[data-v-0fb2ac16] {\n background-color: var(--lightgrey);\n /*padding: 20px;*/\n position: relative;\n}\n.chart__wrapper[data-v-0fb2ac16] {\n padding: 20px;\n}\nh4[data-v-0fb2ac16] {\n text-align: center;\n margin-bottom: 25px !important;\n font-weight: bold !important;\n}\n@media screen and (max-width: 767px) {\n.chart[data-v-0fb2ac16] {\n flex: 1 1 100%;\n}\n}\n",""]);const r=s},37:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.legend[data-v-26d722e0] {\n flex-basis: 100%;\n}\n.legend__row[data-v-26d722e0] {\n display: flex;\n margin-bottom: 5px;\n /* justify-content: space-around;*/\n}\n.legend__cell[data-v-26d722e0] {\n display: flex;\n align-items: center;\n flex: 1;\n justify-content: center;\n /*cursor: pointer;*/\n}\n.legend__text[data-v-26d722e0] {\n padding: 10px 20px;\n width: 180px;\n}\n.legend__text span[data-v-26d722e0]:first-child {\n display: block;\n /* font-weight: 550; */\n font-size: 18px;\n color: var(--darkgrey);\n}\n.legend__text span[data-v-26d722e0]:last-child {\n font-weight: lighter;\n}\n.legend__circle[data-v-26d722e0] {\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background-color: black;\n transition: all .2s;\n margin-right: 5px;\n}\n.legend__cell:hover .legend__circle[data-v-26d722e0] {\n width: 25px;\n height: 25px;\n}\n.legend__rectangle[data-v-26d722e0] {\n width: 20px;\n height: 20px;\n background-color: black;\n margin-right: 5px;\n}\n",""]);const r=s},887:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\nh3[data-v-32fd9d9e] {\n font-weight: bold !important;\n color: white !important;\n text-align: center;\n}\n.body__text[data-v-32fd9d9e] {\n color: black;\n width: 100%;\n text-align: center;\n font-size: 20px;\n padding: 20px 10px;\n margin-bottom: 30px;\n}\n.row[data-v-32fd9d9e] {\n flex: 1 1 100%\n}\n",""]);const r=s},942:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-content[data-v-414af972] {\n padding: 15px;\n}\n",""]);const r=s},581:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.absolute-row[data-v-ea7667be] {\n flex-direction: row;\n /* top: 76px; */\n width: 100%;\n left: 15px;\n margin: 0;\n margin-top: 20px;\n}\n.flex-direction--row[data-v-ea7667be] {\n flex-direction: row;\n}\n",""]);const r=s},229:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__header {\n margin-bottom: 10px;\n border-bottom: 2px solid var(--lightgrey);\n padding-bottom: 10px;\n}\n.w__header-text {\n font-weight: 500 !important;\n color: var(--green) !important;\n font-size: 32px !important;\n /*padding-bottom: 10px !important;*/\n}\n.w__header-icon {\n /*background-color: white;\n\n height: 50px;\n width: 80px;\n margin: 0px 18px;*/\n margin-right: 10px;\n border-radius: 5px;\n text-align: center;\n}\n.w__header-icon img {\n max-height: 54px;\n border-radius: 50%;\n}\n.w__header-number {\n padding: 12px;\n background-color: var(--green);\n border-radius: 5px;\n color: white;\n font-size: 20px;\n font-weight: 550;\n margin-right: 15px;\n min-width: 52px;\n text-align: center;\n height: 50px;\n}\n.w__header-number--grey {\n background-color: var(--grey);\n}\n.w__back__btn {\n display: flex;\n align-items: center;\n cursor: pointer;\n border-right: 1px solid var(--grey);\n}\n.w__back__btn-img {\n width: 40px;\n height: 40px;\n}\n.w__back__btn-text {\n font-size: 25px;\n flex: 1;\n color: #888888;\n font-weight: lighter;\n padding: 0 15px;\n}\n",""]);const r=s},458:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n@-webkit-keyframes spin {\n0% { -webkit-transform: rotate(0deg);\n}\n100% { -webkit-transform: rotate(360deg);\n}\n}\n@keyframes spin {\n0% { transform: rotate(0deg);\n}\n100% { transform: rotate(360deg);\n}\n}\n.w__loader__wrapper\n{\n position: fixed;\n z-index: 10000;\n width: 100%;\n text-align: center;\n background-color: #ffffffd1;\n height: 100%;\n padding-top: 20%;\n}\n.w__loader\n{\n width: 120px;\n margin-top: 10px;\n border-top: 2px solid #009999;\n height: 120px;\n animation: spin 1s linear infinite;\n border-radius: 50%;\n display: inline-block;\n -webkit-animation: spin 1s ease-out infinite;\n}\n.w__loader__img\n{\n background-repeat: no-repeat;\n background-position: center;\n height: 114px;\n position: relative;\n top: -122px;\n}\n.w__loader__img img\n{\n height: 114px;\n}\n",""]);const r=s},781:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#w-menu[data-v-31ca7b9e] {\n background-color: var(--darkergrey);\n /*padding: 10px;*/\n /*width: 100%;*/\n width: inherit;\n min-height: 100%;\n position: fixed;\n}\n.menu__logo[data-v-31ca7b9e] {\n /*background: url(../../assets/img/menu/logo.svg);*/\n background-repeat: no-repeat;\n background-position: center;\n height: 100px;\n text-align: center;\n}\n.menu__logo img[data-v-31ca7b9e] {\n height: 100px;\n}\n.menu__header[data-v-31ca7b9e] {\n display: flex;\n padding: 20px;\n border-bottom: 2px solid black;\n justify-content: center;\n}\n.menu__button[data-v-31ca7b9e] {\n background-color: black;\n /* display: inline-block; */\n width: 40px;\n height: 40px;\n text-align: center;\n line-height: 2.8;\n border-radius: 5px;\n position: absolute;\n right: 15px;\n cursor: pointer;\n}\n.menu__button img[data-v-31ca7b9e] {\n height: 25px;\n transition: all .5s;\n}\n.menu__header__wrapper[data-v-31ca7b9e] {\n padding: 15px;\n}\n.menu__header__text[data-v-31ca7b9e] {\n color: white !important;\n font-weight: 500 !important;\n}\n.menu__content__ul[data-v-31ca7b9e] {\n padding: 0;\n width: 100%;\n}\n.menu__content__li[data-v-31ca7b9e] {\n text-decoration: none;\n list-style: none;\n color: white;\n width: 100%;\n cursor: pointer;\n}\n.menu__content__li-wrapper[data-v-31ca7b9e] {\n font-size: 20px;\n padding: 10px 0;\n display: flex;\n align-items: center;\n width: 100%;\n padding-left: 15px;\n flex-wrap: wrap;\n border-right: 3px solid transparent;\n /*padding-right: 30px;*/\n}\n.menu__sub__li-wrapper[data-v-31ca7b9e] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.menu__sub__li-img[data-v-31ca7b9e] {\n height: 20px;\n padding-right: 10px;\n width: 30px;\n font-size: 20px;\n color: #C2C1C1;\n}\n.menu__sub__li-img--active[data-v-31ca7b9e] {\n display: none;\n color: white;\n}\n.menu__sub__li--active .menu__sub__li-wrapper .menu__sub__li-img--active[data-v-31ca7b9e] {\n display: block;\n}\n.menu__sub__li--active .menu__sub__li-wrapper img[data-v-31ca7b9e],\n.menu__sub__li--active .menu__sub__li-wrapper span.glyphicons[data-v-31ca7b9e]:not(.menu__sub__li-img--active) {\n display: none;\n}\n.menu__content__li--active .menu__sub__ul[data-v-31ca7b9e] {\n display: block !important;\n}\n.menu__content__li--active .menu__content__li-wrapper[data-v-31ca7b9e] {\n border-right: 3px solid var(--green);\n background-color: var(--darkgreen);\n}\n.menu__content__li-img[data-v-31ca7b9e] {\n padding-right: 20px;\n height: 35px;\n width: 50px;\n color: var(--green);\n font-size: 35px;\n}\n.menu__content__li-img--active[data-v-31ca7b9e] {\n display: none;\n color: white;\n}\n.menu__content__li--active .menu__content__li-wrapper .menu__content__li-img--active[data-v-31ca7b9e] {\n display: block;\n}\n.menu__content__li--active .menu__content__li-wrapper img.menu__content__li-img[data-v-31ca7b9e]:not(.menu__content__li-img--active),\n.menu__content__li--active .menu__content__li-wrapper span.glyphicons[data-v-31ca7b9e]:not(.menu__content__li-img--active) {\n display: none;\n}\n.menu__content__li--active .menu__content__li-arrow[data-v-31ca7b9e] {\n -webkit-transform: rotate(90deg) translateY(-20%);\n -moz-transform: rotate(90deg) translateY(-20%);\n -ms-transform: rotate(90deg) translateY(-20%);\n -o-transform: rotate(90deg) translateY(-20%);\n transform: rotate(90deg) translateY(-20%);\n}\n.menu__content__li-arrow[data-v-31ca7b9e] {\n font-size: 30px;\n transform: rotate(-90deg);\n margin-left: auto;\n transition: all 0.4s ease;\n}\n.menu__content__li-arrow[data-v-31ca7b9e]:after {\n content: '\\2039';\n}\n.menu__sub__ul[data-v-31ca7b9e] {\n flex: 1 0 100%;\n list-style: none;\n padding: 0;\n}\n.menu__sub__li[data-v-31ca7b9e] {\n padding: 10px 46px;\n font-size: 15px;\n}\n.menu__content__li-right[data-v-31ca7b9e] {\n flex: 1;\n text-align: right;\n margin-right: 10px;\n}\n.menu__sub__li--active[data-v-31ca7b9e] {\n background-color: rgba(255, 255, 255, .2);\n}\n.w__menu--minimalize .menu__content__li-arrow[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__logo[data-v-31ca7b9e] {\n height: 30px;\n display: none;\n}\n.w__menu--minimalize .menu__content__li-name[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__sub__li-name[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__header[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__content__li-img[data-v-31ca7b9e] {\n width: 35px;\n}\n.w__menu--minimalize .menu__content__li-right[data-v-31ca7b9e] {\n margin-right: 0px;\n text-align: center;\n}\n\n/*.tp__menu--minimalize .menu__content__ul\n{\n width: 18%;\n}*/\n.w__menu--minimalize .menu__sub__li[data-v-31ca7b9e] {\n padding: 10px 18px;\n}\n.w__menu--minimalize .menu__sub__li--active[data-v-31ca7b9e] {\n border-right: 3px solid var(--darkgreen);\n}\n.w__menu--minimalize .menu__content__li-img[data-v-31ca7b9e] {\n padding-right: 0px;\n}\n.w__menu--minimalize .menu__content__li-wrapper[data-v-31ca7b9e] {\n padding-right: 0px;\n padding-left: 0px;\n justify-content: center;\n /*border-right: 3px solid transparent;*/\n}\n.w__menu--minimalize .menu__sub__li-img[data-v-31ca7b9e] {\n padding-right: 0px;\n}\n.w__menu--minimalize .menu__button[data-v-31ca7b9e] {\n position: static;\n}\n.w__menu--minimalize .menu__button img[data-v-31ca7b9e] {\n transform: rotate(180deg);\n}\n.menu__content a[data-v-31ca7b9e] {\n display: block !important;\n color: white !important;\n text-decoration: none !important;\n}\n.menu__footer[data-v-31ca7b9e] {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n}\n",""]);const r=s},333:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n@media screen and (max-width: 767px) {\n#w-mobile-menu {\n height: 50px;\n width: 100%;\n background-color: var(--darkergrey);\n color: white;\n padding: 10px;\n display: flex;\n}\n.glyphicons {\n font-size: 30px;\n flex: 1\n}\nh3 {\n color: var(--green) !important;\n}\n}\n",""]);const r=s},522:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n/* MODAL */\n.w__modal[data-v-d16ba0f6] {\n position: fixed;\n z-index: 9999;\n background-color: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.w__modal__close[data-v-d16ba0f6] {\n height: 20px;\n position: absolute;\n top: 10px;\n right: 10px;\n cursor: pointer;\n z-index: 1000;\n}\n.w__modal__content[data-v-d16ba0f6] {\n width: 40%;\n background-color: white;\n border-radius: 5px;\n position: relative;\n}\n.w__modal__header[data-v-d16ba0f6] {\n background-color: var(--green);\n padding: 10px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n position: relative;\n}\n.w__modal__body[data-v-d16ba0f6] {\n padding: 30px;\n height: 95%;\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n}\n.w__modal__body .row[data-v-d16ba0f6] {\n flex: 1;\n flex-basis: 100%;\n}\n",""]);const r=s},718:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.filter[data-v-e09ce0e4] {\n display: flex;\n gap: 15px;\n padding: 5px;\n}\n.filter__item[data-v-e09ce0e4] {\n color: var(--grey);\n cursor: pointer;\n font-weight: bold;\n}\n.filter__item--selected[data-v-e09ce0e4] {\n color: black;\n}\n",""]);const r=s},790:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__small__loader[data-v-e0d9804a] {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 444;\n background-color: rgba(255, 255, 255, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n",""]);const r=s},45:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__input__icon {\n position: absolute;\n right: 20px;\n top: 8px;\n font-size: 25px;\n color: var(--grey);\n}\n.w__panel {\n padding: 5px;\n background-color: var(--lightgrey);\n}\n.w__table__wrapper {\n /*padding: 10px;*/\n}\n",""]);const r=s},685:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-table-panel .select2-container {\n position: relative;\n top: 0;\n right: 0;\n}\n",""]);const r=s},940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-table-panel[data-v-e94d5c9e] {\n padding: 5px 15px;\n background-color: var(--lightgreen);\n}\n.panel__row[data-v-e94d5c9e] {\n display: flex;\n align-items: center;\n}\n.length[data-v-e94d5c9e] {\n display: flex;\n align-items: center;\n gap: 30px;\n margin-left: auto;\n}\n.table__counts[data-v-e94d5c9e] {\n width: 60%;\n text-align: right;\n position: static;\n}\n.search__icon[data-v-e94d5c9e] {\n top: 0;\n}\n",""]);const r=s},176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,":root {\n --green: #009999;\n --lightgreen: #D5EEE8;\n --darkgreen: #066;\n --red: #FF0000;\n --yellow: #FFF989;\n --darkgrey: #4E4E4E;\n --lightgrey: #F3F3F3;\n --grey: #C1C1C1;\n --darkyellow: #EDB666;\n --darkergrey: #3D3D3D;\n --orange: #FF7400;\n --darkblue: #1240AB;\n}\n\n#right-content {\n min-width: 16%; \n width: 16%; \n /*min-height: 100%;*/\n}\n\n.txt-green {\n color: var(--green) !important;\n}\n\n.txt-orange {\n color: var(--orange) !important;\n}\n\n.txt-red {\n color: var(--red) !important;\n}\n\n.txt-bold {\n font-weight: bold;\n}\n\n.txt-lighter {\n font-weight: lighter;\n}\n\n.border-red {\n border-color: var(--red) !important;\n}\n\n.border-red:hover {\n border-color: var(--red) !important;\n}\n\n.border-red .multiselect__tags {\n border-color: var(--red) !important;\n}\n\n.multiselect.border-red.required .multiselect__tags {\n border-left: 3px solid var(--red) !important;\n}\n\n.d-flex {\n display: flex;\n}\n\n.d-flex--v-center {\n align-items: center;\n}\n\n.d-flex--h-center {\n justify-content: center;\n}\n\n.disable-decoration {\n text-decoration: none !important;\n}\n\n.padding--no {\n padding: 0px;\n}\n\n.padding--no-left {\n padding-left: 0px;\n}\n\n.padding--no-right {\n padding-right: 0px;\n}\n\n.nav-tabs__input {\n height: 40px;\n position: absolute;\n width: 250px;\n right: 22px;\n top: 2px;\n}\n\n.nav-tabs__input--icon {\n position: absolute;\n right: 27px;\n top: 10px;\n font-size: 25px;\n color: var(--grey);\n}\n\n.calendar__icon {\n height: 20px;\n}\n\n.calendar__icon img {\n height: 20px;\n}\n\nh6 {\n color: black;\n}\n\n.txt-align--center {\n text-align: center;\n}\n\n.txt-align--right {\n text-align: right;\n}\n\n.icon__calendar {\n position: absolute;\n right: 3%;\n top: 51%;\n}\n\n/* DATATABLES MODIFY */\n.dataTables_paginate {\n display: none !important;\n}\n\ndiv.dataTables_wrapper {\n width: 100%;\n margin: 0 auto;\n}\n\n.table.dataTable thead .sorting:after {\n /*color: black !important;*/\n opacity: .5 !important;\n}\n\n.dataTables_wrapper.no-footer .dataTables_scrollBody {\n border: none;\n}\n\n\n\ndiv.dts div.dataTables_scrollBody,\ndiv.dts div.dataTables_scrollBody table {\n background-color: transparent !important;\n background: none;\n}\n\n/* BOOTSTRAP MODIFY */\n.form-group {\n position: relative;\n}\n.map__detail .nav-tabs>li {\n margin-bottom: -1px;\n}\n\n.btn-block+.btn-block {\n margin-top: 0px !important;\n}\n\n.form-group {\n margin-right: 5px;\n}\n\n.btn.active.focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn:active:focus,\n.btn:focus {\n outline: none;\n outline: none;\n outline-offset: 0;\n}\n\n.btn.focus,\n.btn:focus,\n.btn:hover {\n color: white;\n text-decoration: none;\n}\n\n.btn-group.open a {\n cursor: pointer !important;\n}\n\n.input-group-addon {\n width: 60px;\n font-weight: 550;\n}\n\n.input-group {\n margin-bottom: 5px;\n width: 100%;\n}\n\nlabel {\n margin-bottom: 5px !important;\n font-size: 16px;\n font-weight: normal;\n color: black;\n padding: 0px;\n}\n\ninput.form-control {\n height: 40px !important;\n font-size: 18px !important;\n font-weight: lighter;\n border-radius: 5px !important;\n background-color: white;\n}\n\ninput.form-control:required {\n border-left: 3px solid var(--green);\n}\n\ninput.form-control:hover:not(.border-red),\ninput.form-control:focus:not(.border-red) {\n border: 1px solid var(--green) !important;\n box-shadow: none;\n}\n\ninput.form-control:hover:required:not(.border-red), input.form-control:focus:required:not(.border-red) {\n border-left: 3px solid var(--green) !important;\n}\n\n.input-group input.form-control {\n border-top-right-radius: 0px !important;\n border-bottom-right-radius: 0px !important;\n}\n\nspan.input-group-addon {\n background-color: #E0E0E0 !important;\n color: black !important;\n width: 44px !important;\n padding: 0px !important;\n border: 1px solid #E0E0E0;\n}\n\n.input-group .form-control {\n z-index: 0 !important;\n}\n\nul.dropdown-menu {\n left: 5px !important;\n top: 117% !important;\n}\n\nul.dropdown-menu:before {\n position: absolute;\n left: 11.5%;\n transform: translateX(-50%);\n top: -7px;\n width: 0;\n height: 0;\n content: '';\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 7px solid white;\n}\n\nul.nav-tabs li {\n text-align: center;\n font-size: 17px;\n font-weight: 550;\n min-width: 9.5vw;\n}\n\nul.nav-tabs {\n background-color: var(--lightgreen);\n border-bottom: 1px solid #d8d4d4;\n /*margin-bottom: 15px;*/\n}\n\nul.nav-tabs--bg-grey {\n background-color: #E0E0E0;\n}\n\nul.nav-tabs--bg-white {\n background-color: white;\n border-bottom: none;\n}\n\nul.nav-tabs li a {\n border: none;\n border-top: 6px solid transparent;\n border-left: 0;\n color: #686868;\n text-align: left;\n height: 45px;\n padding: 8px 30px;\n border-radius: 0px;\n margin-right: 0px;\n text-align: center;\n}\n\nul.nav-tabs li.active a {\n border-top: 6px solid #009999;\n border-left: 0;\n border-right: 0;\n color: black;\n}\n\nul.nav-tabs--bg-white li.active,\nul.nav-tabs--bg-white li.active a {\n background-color: var(--lightgrey);\n}\n\nul.nav-tabs li.active a:hover,\nul.nav-tabs li.active a:focus {\n border-top: 6px solid #009999;\n border-left: 0;\n border-right: 0;\n color: black;\n}\n\nul.nav-tabs--bg-white li.active a:hover,\nul.nav-tabs--bg-white li.active a:focus {\n background-color: var(--lightgrey);\n}\n\n\nul.nav-tabs li.tp__nav__btn a {\n background-color: var(--darkgreen);\n text-align: center;\n border-bottom: 1px solid black;\n}\n\n/* SELECT2 MODIFY */\n.select2-container .select2-selection--single {\n height: 42px !important;\n width: 100% !important;\n}\n\n.select2-container .select2-selection--single {\n height: 42px !important;\n width: 100% !important;\n}\n\n.select2-container {\n flex: 1 !important;\n}\n\n.select2-container {\n width: 100% !important;\n}\n\n.select2-container--default .select2-selection--single .select2-selection__rendered {\n line-height: 40px !important;\n font-size: 18px !important;\n font-weight: lighter !important;\n color: black !important;\n}\n\n.select2-container--default .select2-selection--single .select2-selection__arrow {\n height: 40px !important;\n}\n\n.select2-container--default .select2-selection--single {\n /*border-color: var(--green) !important;*/\n border-color: #ccc !important;\n}\n\n.map__detail .select2-container--default .select2-selection--single {\n /*border-color: var(--green) !important;*/\n border-color: #5B5B5B !important;\n}\n\n\n.select2-selection__rendered {\n height: 40px;\n}\n\n.select2-selection__arrow {\n height: 39px !important;\n background-color: #009999;\n color: white;\n width: 40px !important;\n border-bottom-right-radius: 4px;\n}\n\n.select2-selection__arrow b {\n border-color: white transparent transparent transparent !important;\n}\n\n/* VUE MULTISELECT MODIFTY */\n.multiselect {\n color: #555;\n}\n\n.multiselect__select {\n background-color: #009999;\n color: white;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 40px !important;\n}\n\n.multiselect__select::before {\n border-color: white transparent transparent !important;\n}\n\n.multiselect__input,\n.multiselect__single {\n font-size: 18px !important;\n font-weight: lighter !important;\n color: black !important;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nspan.multiselect__select {\n color: #555;\n}\n\nspan span.multiselect__single {\n color: #5555559c;\n}\n\n.multiselect__tags {\n border: 1px solid #ccc !important;\n}\n\n.multiselect.required .multiselect__tags{\n border-left: 3px solid var(--green) !important;\n}\n\n.map__detail .multiselect__tags {\n border-color: #5B5B5B !important;\n}\n\n.multiselect__tag {\n background-color: var(--green) !important;\n}\n\n.multiselect__tag-icon:hover {\n background-color: var(--darkgreen) !important;\n}\n\n.multiselect__option--selected.multiselect__option--highlight {\n background-color: var(--red) !important;\n}\n\n.multiselect__option--highlight {\n background-color: var(--green) !important;\n}\n\n.multiselect--above.multiselect--active .multiselect__tags {\n border-color: var(--green);\n}\n\n.multiselect--active .multiselect__select {\n border-bottom-left-radius: 5px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n\n.multiselect__input,\n.multiselect__single {\n min-height: 24px !important;\n line-height: 24px !important;\n}\n\n/*.multiselect__content-wrapper\n{\n position: sticky !important;\n}*/\n\n.multiselect__content-wrapper {\n z-index: 40 !important;\n}\n\n.map__detail .multiselect__content-wrapper {\n bottom: unset !important;\n top: 40px !important;\n\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n border-bottom-left-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-top: none !important;\n border-bottom: 1px solid #e8e8e8 !important;\n\n max-height: 150px !important;\n\n z-index: 10;\n}\n\n.map__detail .multiselect__input,\n.map__detail .multiselect__single {\n color: white !important;\n}\n\n/* VUE-DATEPICKER MODIFY */\n.mx-datepicker {\n width: 100% !important;\n}\n\n.mx-calendar-content .cell.in,\n.mx-calendar-content .cell.hover-in {\n background-color: rgba(0, 153, 153, .1) !important;\n color: var(--darkgrey) !important;\n}\n\n.mx-datepicker svg {\n fill: var(--darkgreen);\n display: none;\n}\n\n.mx-calendar-content .cell.active {\n background-color: var(--darkgreen) !important;\n color: white !important;\n}\n\n.mx-range-wrapper {\n color: black;\n}\n\n.mx-time-column .mx-time-item.active {\n color: var(--darkgreen) !important;\n}\n\n.mx-table-date .today {\n color: var(--green) !important;\n}\n\n.mx-input:hover,\n.mx-input:focus {\n border-color: var(--green) !important;\n}\n\n.mx-input {\n border-radius: 0px;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n height: 42px !important;\n font-size: 18px !important;\n font-weight: lighter;\n}\n\n.mx-input:disabled {\n border-radius: 0px;\n}\n\n.mx-datepicker.border-red input {\n border-color: var(--red);\n}\n\n.mx-datepicker.required input {\n border-left: 3px solid var(--green);\n}\n\n.mx-datepicker.required.border-red input {\n border-left: 3px solid var(--red);\n}\n\n.mx-datepicker.required.border-red input:hover, .mx-datepicker.required.border-red input:hover {\n border-color: var(--red) !important;\n}\n\n.mx-datepicker-popup {\n z-index: 20000 !important;\n}\n\n/* wTable */\n.w__table {\n width: 100% !important;\n}\n\n.w__table thead {\n /*background-color: var(--darkgrey);*/\n background-color: transparent !important;\n}\n\n.w__table--hover tbody tr:not(.w__table__tr__child):hover,\n.w__table--hover tbody tr.shown {\n cursor: pointer;\n background-color: var(--lightgrey);\n}\n\n.w__table--hover tbody tr:not(.w__table__tr__child):hover td:first-child {\n border-left: 4px solid var(--green);\n}\n\n.w__table thead th {\n /*\n color: black;\n font-size: 16px;\n */\n font-weight: bold !important;\n border-bottom: 1px solid var(--green) !important;\n\n /*padding: 5px !important;*/\n background-color: var(--darkgrey);\n color: white;\n font-size: 12px;\n}\n\n.dataTables_scrollHead th {\n padding: 5px !important;\n}\n\n.dataTables_scrollBody th {\n padding: 0px 5px !important;\n}\n\n.w__table tbody td {\n /*font-size: 16px;\n padding: 10px !important;*/\n font-size: 14px;\n padding: 5px 4px !important;\n\n color: black;\n vertical-align: middle !important;\n}\n\n.w__table tbody td:first-child {\n border-left: 4px solid transparent;\n}\n\n.w__table__td--bold {\n font-weight: 550;\n}\n\n.w__table__td--center {\n text-align: center;\n}\n\n.w__table__action__btn {\n background-color: var(--green);\n width: 25px;\n height: 25px;\n text-align: center;\n padding-top: 6px;\n font-size: 15px;\n border-radius: 5px;\n cursor: pointer;\n transition: all .5s;\n color: white;\n}\n\n.w__table__action__btn:hover,\n.w__table__action__btn--active {\n background-color: var(--darkgreen);\n}\n\n/* wPagination */\n\n.w__pagination {\n /*background-color: #404040;*/\n height: 50px;\n display: flex;\n align-items: center;\n}\n\n.w__pages__wrapper {\n overflow: hidden;\n /* text-align: center; */\n /* clear: both; */\n width: auto;\n margin: 0 auto;\n display: flex;\n align-items: center;\n}\n\n.w__pages__arrow {\n float: left;\n /*/margin-top: 8px;*/\n\n cursor: pointer;\n}\n\n.w__pages {\n float: left;\n}\n\n.w__page {\n float: left;\n color: black;\n font-size: 18px;\n width: 35px;\n height: 35px;\n padding-top: 5px;\n text-align: center;\n cursor: pointer;\n}\n\n.w__page--active {\n border-radius: 50%;\n background-color: #298F8F;\n color: white;\n}\n\n/* DefaultHeader, DetailHeader */\n\n.w__header {\n margin-bottom: 10px;\n border-bottom: 2px solid var(--lightgrey);\n padding-bottom: 10px;\n}\n\n.w__header-text {\n font-weight: 500 !important;\n color: var(--green) !important;\n font-size: 32px !important;\n /*padding-bottom: 10px !important;*/\n}\n\n.w__header-icon {\n /*background-color: white;\n\n height: 50px;\n width: 80px;\n margin: 0px 18px;*/\n margin-right: 10px;\n border-radius: 5px;\n text-align: center;\n}\n\n.w__header-icon img {\n max-height: 54px;\n border-radius: 50%;\n}\n\n.w__header-number {\n padding: 12px;\n background-color: var(--green);\n border-radius: 5px;\n color: white;\n font-size: 20px;\n font-weight: 550;\n margin-right: 15px;\n min-width: 52px;\n text-align: center;\n height: 50px;\n}\n\n.w__header-number--grey {\n background-color: var(--grey);\n}\n\n.w__back__btn {\n display: flex;\n align-items: center;\n cursor: pointer;\n border-right: 1px solid var(--grey);\n\n}\n\n.w__back__btn-img {\n width: 40px;\n height: 40px;\n}\n\n.w__back__btn-text {\n font-size: 25px;\n flex: 1;\n color: #888888;\n font-weight: lighter;\n padding: 0 15px;\n}\n\n/* ContentDetail */\n.w__content__detail {\n background-color: var(--lightgrey);\n padding: 15px;\n height: 100%;\n overflow: hidden;\n\n}\n\n.w__content__item {\n background-color: white;\n margin-bottom: 10px;\n position: relative;\n}\n\n.w__content__item--bg-transparent {\n background-color: transparent;\n}\n\n.w__content__detail .w__header {\n border-color: var(--lightgreen);\n}\n\n/* Content detail informations */\n.detail__informations__text {\n font-size: 18px;\n color: var(--green);\n font-weight: bold;\n}\n\n.detail__informations {\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n height: 100%;\n flex-direction: column;\n}\n\n.detail__informations>* {\n flex: 1;\n}\n\n.detail__informations .form-group:last-child {\n margin-bottom: 0px;\n}\n\n.detail__informations__img {\n height: 100%;\n}\n\n.detail__informations__img img {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 110px;\n}\n\n/* Buttons */\nbutton.btn {\n border-radius: 20px;\n /*\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n */\n height: 40px;\n transition: background-color .5s;\n transition: all .5s;\n}\n\nbutton.btn.green {\n background-color: var(--green);\n color: white !important;\n}\n\nbutton.btn.green:hover {\n background-color: var(--darkgreen);\n}\n\nbutton.btn.darkgreen {\n background-color: var(--darkgreen);\n color: white;\n}\n\n\nbutton.btn.red {\n border-color: var(--red);\n background-color: white;\n color: var(--red);\n}\n\nbutton.btn.red--full {\n /*border-color: var(--red);*/\n background-color: var(--red);\n color: white;\n}\n\nbutton.btn.red--full:hover {\n background-color: #ab0101;\n}\n\nbutton.btn.red:hover {\n color: white;\n background-color: var(--red);\n}\n\nbutton.btn.orange {\n background-color: var(--orange);\n color: white;\n}\n\nbutton.btn.orange:hover {\n background-color: #da6c10;\n}\n\nbutton.btn.white {\n color: var(--green);\n background-color: white;\n border: 1px solid var(--green);\n}\n\nbutton.btn.white:hover {\n background-color: var(--green);\n color: white;\n}\n\n/* Checkbox */\n.w__checkbox {\n position: relative;\n margin-bottom: 10px;\n}\n\n.w__checkbox label {\n padding-left: 35px;\n cursor: pointer;\n font-size: 12px;\n}\n\n.w__checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n.w__checkbox__checkmark {\n position: absolute;\n top: 0px;\n left: 0px;\n height: 25px;\n /*20*/\n width: 25px;\n /*20*/\n background-color: white;\n border: 1px solid var(--green);\n}\n\n.w__checkbox input:checked~.w__checkbox__checkmark {\n background-color: #009999;\n}\n\n.w__checkbox__checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n.w__checkbox input:checked~.w__checkbox__checkmark:after {\n display: block;\n}\n\n.w__checkbox .w__checkbox__checkmark:after {\n left: 8px;\n top: 2px;\n width: 8px;\n height: 16px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(44deg);\n}\n\n/* Window control */\n.w__window__control {\n position: absolute;\n right: 20px;\n top: 8px;\n}\n\n.w__window__control img {\n width: 30px;\n height: 30px;\n cursor: pointer;\n}\n\n/* Map detail */\n.map__detail {\n position: absolute;\n width: 100%;\n height: 41vh;\n background-color: rgba(0, 0, 0, 0.8);\n bottom: 0;\n z-index: 5;\n overflow: hidden;\n}\n\n.map__detail--maximalize {\n height: 100vh;\n top: 6.4%;\n /* kvoli top header menu*/\n}\n\n.map__detail--maximalize .dataTables_scrollBody {\n max-height: 89.7vh !important;\n}\n\n.map__detail--minimalize {\n height: 10vh;\n}\n\n.map__detail__text {\n height: 45px;\n border-bottom: 1px solid black;\n font-size: 16px;\n color: white;\n text-align: center;\n line-height: 2.8;\n font-weight: 550;\n background-color: var(--darkgreen);\n}\n\n.map__detail__info {\n margin: 5px;\n background-color: var(--darkergrey);\n padding: 10px;\n min-height: 33vh;\n text-align: center;\n border-radius: 5px;\n}\n\n.map__detail .popup__body {\n padding: 0;\n background-color: transparent;\n padding-top: 10px;\n}\n\n.map__detail .w__header-icon {\n display: inline-block;\n height: 60px;\n width: 60px;\n}\n\n.map__detail .w__header-icon img {\n width: 30px;\n height: 60px;\n}\n\n.map__detail .w__header-text h5 {\n color: white !important;\n font-weight: 550 !important;\n text-align: center;\n}\n\n.map__detail .w__header-text h3 {\n color: white !important;\n font-weight: 550 !important;\n margin-bottom: 10px !important;\n}\n\n.map__detail .nav-tabs__input {\n right: 128px;\n}\n\n.map__detail .nav-tabs__input--icon {\n right: 135px;\n}\n\n/*.map__detail .select2-container\n{\n width: 150px !important;\n position: absolute;\n top: 2px;\n right: 500px;\n}*/\n\n.map__detail .select2-selection {\n background-color: var(--darkergrey);\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .select2-container--default .select2-selection--single .select2-selection__rendered {\n color: white !important;\n}\n\n.map__detail label {\n color: white;\n font-weight: 550;\n}\n\n.map__detail input.form-control {\n background-color: var(--darkergrey);\n color:\n /*var(--grey);*/\n white;\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .multiselect__tags {\n background-color: var(--darkergrey);\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .multiselect__single {\n background-color: var(--darkergrey);\n color: var(--grey);\n}\n\n.map__detail .multiselect__input {\n background-color: var(--darkergrey);\n color: var(--grey);\n}\n\n.map__detail .mx-input {\n background-color: var(--darkergrey);\n color:\n /*var(--grey);*/\n white;\n border-color: #5B5B5B;\n /*border-radius: 5px;*/\n}\n\n.map__detail .input-group-addon-green {\n border-color: #5B5B5B;\n background-color: var(--green) !important;\n}\n\n.map__detail .input-group-addon {\n border-color: #5B5B5B;\n background-color: black;\n color: white;\n}\n\n.map__detail .calendar__icon {\n /*background: url(../img/wertyz/calendar-white-small.svg);*/\n background-repeat: no-repeat;\n background-position: center;\n height: 30px;\n background-size: 30px;\n}\n\n.map__detail ul.nav-tabs {\n background-color: var(--darkergrey);\n border-bottom: 1px solid black;\n}\n\n.map__detail ul.nav-tabs li a {\n color: var(--lightgrey);\n padding: 8px 27px;\n /*height: 45px;*/\n}\n\n.map__detail .nav-tabs li.active a,\n.map__detail .nav-tabs>li>a:hover {\n background-color: black;\n color: white !important;\n border-top: 6px solid var(--green);\n}\n\n.map__detail .w__content__item {\n height: 35.7vh;\n overflow-y: auto;\n overflow-x: hidden;\n margin: 0;\n padding: 10px;\n}\n\n.map__detail--maximalize .w__content__item {\n height: 94.7vh;\n /*height: 50vh;*/\n}\n\n.map__detail--minimalize {\n height: 5.2vh;\n}\n\n.map__detail--minimalize .w__content__item {\n display: none;\n}\n\n.map__detail--minimalize .map__detail__info {\n display: none;\n}\n\n.map__detail .w__table thead th {\n color: var(--green);\n font-weight: bold;\n font-size: 14px;\n}\n\n.map__detail .w__back__btn-img {\n position: absolute;\n left: 20px;\n top: 2px;\n cursor: pointer;\n}\n\n.map__detail .detail__page {\n color: white;\n}\n\n.map__detail .w__table {\n margin-top: 0px !important;\n}\n\n.map__detail .w__table thead {\n background-color: black !important;\n}\n\n.map__detail .w__table tbody td {\n color: white !important;\n border-color: #444 !important;\n}\n\n.map__detail .w__table--hover tbody tr:not(.w__table__tr__child):hover,\n.w__table--hover tbody tr.shown {\n cursor: pointer;\n background-color: var(--darkergrey)\n}\n\n.map__detail .dataTables_scrollHeadInner {\n background-color: black;\n}\n\n/* VUEJS TRANSITION */\n.fade-enter-active {\n transition: opacity 0.5s ease;\n}\n\n.fade-leave-active {\n opacity: 0;\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n\n.slide-enter-active {\n -moz-transition-duration: 1s;\n -webkit-transition-duration: 1;\n -o-transition-duration: 1s;\n transition-duration: 1s;\n -moz-transition-timing-function: ease-in;\n -webkit-transition-timing-function: ease-in;\n -o-transition-timing-function: ease-in;\n transition-timing-function: ease-in;\n}\n\n.slide-leave-active {\n -moz-transition-duration: 1s;\n -webkit-transition-duration: 1s;\n -o-transition-duration: 1s;\n transition-duration: 1s;\n -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n}\n\n.slide-enter-to,\n.slide-leave {\n max-height: 45vh;\n overflow: hidden;\n}\n\n.slide-enter,\n.slide-leave-to {\n overflow: hidden;\n max-height: 0;\n}\n\n.scale-enter-active,\n.scale-leave-active {\n transition: all 0.5s ease;\n}\n\n.scale-enter-from,\n.scale-leave-to {\n opacity: 0;\n transform: scale(0.9);\n}\n\n.slideside-enter-active,\n.slideside-leave-active {\n transition: all 0.75s ease-out;\n}\n\n.slideside-enter-to {\n position: absolute;\n right: 0;\n}\n\n.slideside-enter-from {\n position: absolute;\n right: -100%;\n}\n\n.slideside-leave-to {\n position: absolute;\n left: -100%;\n}\n\n.slideside-leave-from {\n position: absolute;\n left: 0;\n}\n\n.scale-slide-enter-active,\n.scale-slide-leave-active {\n position: absolute;\n transition: all 0.85s ease;\n}\n\n.scale-slide-enter-from {\n left: -100%;\n}\n\n.scale-slide-enter-to {\n left: 0%;\n}\n\n.scale-slide-leave-from {\n transform: scale(1);\n}\n\n.scale-slide-leave-to {\n transform: scale(0.8);\n}\n\n.modal-enter {\n opacity: 0;\n}\n\n.modal-leave-active {\n opacity: 0;\n}\n\n.modal-enter .modal-container,\n.modal-leave-active .modal-container {\n -webkit-transform: scale(1.1);\n transform: scale(1.1);\n}\n\n/* END VUEJS TRANSITION */\n\n/* OPEN LAYERS MODIFY */\n.ol-control button {\n width: 2.5em;\n height: 2.5em;\n}\n\n/* SCROLLBAR */\n\n.scrollbar::-webkit-scrollbar,\n.dataTables_scrollBody::-webkit-scrollbar {\n width: 10px;\n}\n\n.scrollbar::-webkit-scrollbar-track,\n.dataTables_scrollBody::-webkit-scrollbar-track {\n background: black;\n border-radius: 5px;\n}\n\n.scrollbar::-webkit-scrollbar-thumb,\n.dataTables_scrollBody::-webkit-scrollbar-thumb {\n background: #009999;\n border-radius: 5px;\n}\n\n.scrollbar::-webkit-scrollbar-thumb:hover,\n.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {\n background: #1A5D5C;\n}\n\n/* MAP */\n.ol-popup {\n position: absolute;\n background-color: #333;\n -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));\n filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));\n /*border-radius: 10px;*/\n /*border: 1px solid var(--green) !important;*/\n border: none !important;\n bottom: 12px;\n left: -140px !important;\n min-width: 280px;\n padding: 0 !important;\n display: block !important;\n /*box-shadow: 1px 1px 12px 1px black;*/\n box-shadow: 0px 0px 0px 1px #009999;\n\n /*border-radius: 5px;*/\n /*max-width: 510px;*/\n}\n\n.ol-popup:after,\n.ol-popup:before {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.ol-popup:after {\n border-top-color: #4E4E4E !important;\n border-width: 5px !important;\n left: 50% !important;\n margin-left: -5px !important;\n}\n\n.ol-popup:before {\n border-top-color: var(--green) !important;\n border-width: 6px !important;\n left: 50% !important;\n margin-left: -6px !important;\n}\n\n.popup__header {\n background-color: #231F20;\n padding: 5px;\n display: flex;\n align-items: center;\n}\n\n.popup__header__img {\n background-color: white;\n border-radius: 5px;\n height: 40px;\n width: 40px;\n text-align: center;\n margin-right: 10px;\n}\n\n.popup__header__img img {\n height: 35px;\n width: 35px;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.popup__header__text {\n flex: 1;\n color: white;\n}\n\n.popup__header__text-big {\n font-size: 15px;\n font-weight: 550;\n display: block;\n}\n\n.popup__header__text-small {\n font-size: 12px;\n color: var(--green);\n display: block;\n}\n\n.popup__header__close {\n width: 20px;\n position: absolute;\n right: 0;\n top: 2px;\n cursor: pointer;\n}\n\n.popup__subheader {\n background-color: black;\n color: white;\n font-size: 15px;\n padding: 5px;\n text-align: center;\n}\n\n.popup__body {\n padding: 10px 5px;\n background-color: #4E4E4E;\n}\n\n.popup__body__button {\n background-color: #343434;\n width: 100%;\n height: 30px;\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n border-radius: 15px;\n cursor: pointer;\n position: relative;\n}\n\n.popup__body__button--hover:hover {\n background-color: black;\n}\n\n.popup__body__button--selected {\n background-color: black;\n border: 1px solid #009999;\n}\n\n.popup__body__button--bg-red {\n background-color: var(--red);\n}\n\n.popup__body__button--bg-green {\n background-color: var(--green);\n}\n\n.popup__body__button-img {\n background-color: black;\n height: 28px;\n width: 28px;\n border-radius: 50%;\n text-align: center;\n position: absolute;\n}\n\n.popup__body__name {\n color: white;\n font-weight: 550;\n margin-top: 5px;\n font-size: 14px;\n}\n\n.popup__body__header {\n margin-top: 5px;\n background-color: transparent;\n text-align: center;\n border-bottom: 2px solid var(--green);\n color: white;\n padding: 10px;\n font-weight: 550;\n}\n\n.popup__body__text {\n color: #009999;\n font-size: 14px;\n}\n\n.popup__body__button--bg-red .popup__body__button-img {\n background-color: #8E1011;\n}\n\n.popup__body__button-img img {\n height: 19px;\n width: 18px;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.popup__body__button--bg-red .popup__body__button-img img {\n height: 28px;\n width: 28px;\n}\n\n.popup__body__button-text {\n color: white;\n flex: 1;\n text-align: center;\n font-size: 13px;\n font-weight: 550;\n}\n\n.popup__body__button-number {\n color: white;\n position: absolute;\n z-index: 5;\n left: 9px;\n top: 6px;\n font-size: 9px;\n width: 10px;\n text-align: center;\n}\n\n.ol-popup table {\n margin-bottom: 0px;\n}\n\n.ol-popup .popup__table-wrapper {\n max-height: 200px;\n overflow-y: auto;\n padding-top: 0px;\n padding: 0px;\n background-color: black;\n}\n\n.ol-popup table thead {\n background-color: black;\n color: white;\n}\n\n.ol-popup table th {\n position: sticky;\n top: 0;\n background-color: black;\n}\n\n.ol-popup table td {\n color: black;\n background-color: #D2E8E6;\n}\n\n/* TOASTIFICATION MODIFY */\n.Vue-Toastification__toast--info\n{\n background-color: var(--darkblue) !important;\n}\n\n.Vue-Toastification__toast--success\n{\n background-color: var(--green) !important;\n}\n\n.Vue-Toastification__toast--error\n{\n background-color: var(--red) !important;\n}\n\n.Vue-Toastification__toast--warning\n{\n background-color: var(--orange) !important;\n}\n\n/* Radio button */\n.control {\n font-family: arial;\n display: block;\n position: relative;\n padding-left: 30px;\n margin-bottom: 5px;\n padding-top: 2px;\n cursor: pointer;\n font-size: 14px;\n}\n .control input {\n position: absolute;\n z-index: -1;\n opacity: 0;\n }\n.control_indicator {\n position: absolute;\n top: 2px;\n left: 0;\n height: 20px;\n width: 20px;\n background: #e6e6e6;\n border: 0px solid #000000;\n border-radius: undefinedpx;\n}\n.control:hover input ~ .control_indicator,\n.control input:focus ~ .control_indicator {\n background: #cccccc;\n}\n\n.control input:checked ~ .control_indicator {\n background: #009999;\n}\n.control:hover input:not([disabled]):checked ~ .control_indicator,\n.control input:checked:focus ~ .control_indicator {\n background: #0e6647d;\n}\n.control input:disabled ~ .control_indicator {\n background: #e6e6e6;\n opacity: 0.6;\n pointer-events: none;\n}\n.control_indicator:after {\n box-sizing: unset;\n content: '';\n position: absolute;\n display: none;\n}\n.control input:checked ~ .control_indicator:after {\n display: block;\n}\n.control-radio .control_indicator {\n border-radius: 20%;\n}\n\n.control-radio .control_indicator:after {\n left: 7px;\n top: 7px;\n height: 6px;\n width: 6px;\n border-radius: 50%;\n background: #ffffff;\n transition: background 250ms;\n}\n.control-radio input:disabled ~ .control_indicator:after {\n background: #7b7b7b;\n}.control-radio .control_indicator::before {\n content: '';\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n width: 4.5rem;\n height: 4.5rem;\n margin-left: -1.3rem;\n margin-top: -1.3rem;\n background: #009999;\n border-radius: 3rem;\n opacity: 0.6;\n z-index: 99999;\n transform: scale(0);\n}\n@keyframes s-ripple {\n 0% {\n opacity: 0;\n transform: scale(0);\n }\n 20% {\n transform: scale(1);\n }\n 100% {\n opacity: 0.01;\n transform: scale(1);\n }\n}\n@keyframes s-ripple-dup {\n 0% {\n transform: scale(0);\n }\n 30% {\n transform: scale(1);\n }\n 60% {\n transform: scale(1);\n }\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n}\n.control-radio input + .control_indicator::before {\n animation: s-ripple 250ms ease-out;\n}\n.control-radio input:checked + .control_indicator::before {\n animation-name: s-ripple-dup;\n}\n\n.control-group {\n display: flex;\n justify-content: space-evenly;\n}\n\n.control-disabled {\n text-decoration: line-through;\n cursor: default;\n color: var(--grey);\n}",""]);const r=s},865:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"@media screen and (max-width: 767px) {\n .d-flex {\n flex-direction: column;\n }\n\n #right-content {\n position: absolute;\n width: 100% !important;\n top: 50px;\n }\n\n #main-content {\n min-width: 100%;\n }\n\n ul.nav-tabs {\n display: flex;\n overflow-y: hidden;\n }\n\n ul.nav-tabs li {\n min-width: auto;\n }\n\n .w__modal__content {\n width: 95% !important;\n max-height: 99%;\n overflow-y: auto;\n }\n\n .w__header {\n margin-bottom: 50px;\n position: relative;\n }\n\n .btn {\n margin-bottom: 10px;\n }\n\n #w-menu {\n height: 100%;\n overflow-y: auto;\n top: 0;\n }\n\n .menu__content {\n height: 100%;\n }\n\n .menu__footer {\n position: relative;\n }\n\n /* MULTISELECT MODIFY */\n .multiselect__option--highlight {\n \n }\n}",""]);const r=s},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);i&&s[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),e.push(d))}},e}},81:t=>{"use strict";t.exports=function(t){return t[1]}},41:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3LjgxIDE0LjI0Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9IlZyc3R2YV8yIiBkYXRhLW5hbWU9IlZyc3R2YSAyIj48ZyBpZD0iTGF5ZXJfNyIgZGF0YS1uYW1lPSJMYXllciA3Ij48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMC45OSAzLjU2IDQuOSA3LjEyIDAuOTkgMTAuNjggMCAxMS41OCAwIDE0LjI0IDMuOTEgMTAuNjggNy44MiA3LjEyIDMuOTEgMy41NiAwIDAgMCAyLjY2IDAuOTkgMy41NiIvPjwvZz48L2c+PC9zdmc+"},835:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MSA0MSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7c3Ryb2tlOiM4ODg7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fS5jbHMtMntmaWxsOiM4ODg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJWcnN0dmFfMiIgZGF0YS1uYW1lPSJWcnN0dmEgMiI+PGcgaWQ9IkxheWVyXzciIGRhdGEtbmFtZT0iTGF5ZXIgNyI+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIyMC41IiBjeT0iMjAuNSIgcj0iMjAiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xMC4xNCwyMC4yMmwtLjEyLjIzczAsLjA4LDAsLjEzYTEuNjgsMS42OCwwLDAsMC0uMDcuMjQuNTMuNTMsMCwwLDAsMCwuMTIsMS42NCwxLjY0LDAsMCwwLDAsLjM4aDBhMS41LDEuNSwwLDAsMCwwLC4zNy41LjUsMCwwLDAsMCwuMTMsMi4xNywyLjE3LDAsMCwwLC4wNy4yNGMwLC4wNSwwLC4wOSwwLC4xM2wuMTIuMjIuMDcuMTFzMCwwLDAsMEwxNSwyOS4wNmEyLjEyLDIuMTIsMCwxLDAsMy40Mi0yLjQ5bC0yLjI4LTMuMTNIMjkuNjdhMi4xMiwyLjEyLDAsMCwwLDAtNC4yM0gxNi4wOWwyLjI4LTMuMTNhMi4xLDIuMSwwLDAsMC0uNDctMi45NSwyLDIsMCwwLDAtMS4yNC0uNDEsMi4xMiwyLjEyLDAsMCwwLTEuNzEuODdsLTQuNzIsNi40OXMwLDAsMCwwQS42MS42MSwwLDAsMSwxMC4xNCwyMC4yMloiLz48L2c+PC9nPjwvc3ZnPg=="},800:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC4wNyAyNC4wNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsLW9wYWNpdHk6MC44NTt9LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6I2MxYzFjMTtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48ZyBpZD0iVnJzdHZhXzIiIGRhdGEtbmFtZT0iVnJzdHZhIDIiPjxnIGlkPSJMYXllcl83IiBkYXRhLW5hbWU9IkxheWVyIDciPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTIuMDQiIGN5PSIxMi4wNCIgcj0iMTIuMDQiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjYuMzMiIHk9IjYuODUiIHdpZHRoPSIxMS40MSIgaGVpZ2h0PSIxMC4zOCIgcng9IjEiLz48L2c+PC9nPjwvc3ZnPg=="},436:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC4wNyAyNC4wNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsLW9wYWNpdHk6MC44NTt9LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6I2MxYzFjMTtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48ZyBpZD0iVnJzdHZhXzIiIGRhdGEtbmFtZT0iVnJzdHZhIDIiPjxnIGlkPSJMYXllcl83IiBkYXRhLW5hbWU9IkxheWVyIDciPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTIuMDQiIGN5PSIxMi4wNCIgcj0iMTIuMDQiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI2LjQ1IiB5MT0iMTYuMzUiIHgyPSIxNy45IiB5Mj0iMTYuMzUiLz48L2c+PC9nPjwvc3ZnPg=="},36:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJWcnN0dmFfMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjEuNjQgMjEuNjQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDpyZWQ7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJMYXllcl83Ij48Zz48cmVjdCBjbGFzcz0iY2xzLTEiIHg9Ii0yLjExIiB5PSI4LjQ0IiB3aWR0aD0iMjUuODUiIGhlaWdodD0iNC43NSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQuNDggMTAuODIpIHJvdGF0ZSgtNDUpIi8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSItMi4xMSIgeT0iOC40NCIgd2lkdGg9IjI1Ljg1IiBoZWlnaHQ9IjQuNzUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjgyIC00LjQ4KSByb3RhdGUoNDUpIi8+PC9nPjwvZz48L3N2Zz4="},744:(t,e)=>{"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[t,i]of e)n[t]=i;return n}},816:(t,e,n)=>{var i=n(295);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("5f0d96f0",i,!1,{})},944:(t,e,n)=>{var i=n(239);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("310b4fce",i,!1,{})},565:(t,e,n)=>{var i=n(37);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("8a386ace",i,!1,{})},310:(t,e,n)=>{var i=n(887);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2222a175",i,!1,{})},802:(t,e,n)=>{var i=n(942);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("6f2f3c42",i,!1,{})},986:(t,e,n)=>{var i=n(581);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("7937aec0",i,!1,{})},611:(t,e,n)=>{var i=n(229);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2cce24bc",i,!1,{})},926:(t,e,n)=>{var i=n(458);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2942d870",i,!1,{})},32:(t,e,n)=>{var i=n(781);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("76e62494",i,!1,{})},967:(t,e,n)=>{var i=n(333);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("1e7d399b",i,!1,{})},341:(t,e,n)=>{var i=n(522);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("3e0b99e7",i,!1,{})},34:(t,e,n)=>{var i=n(718);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("560cb020",i,!1,{})},724:(t,e,n)=>{var i=n(790);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("4cb94118",i,!1,{})},687:(t,e,n)=>{var i=n(45);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("5fe0d6d0",i,!1,{})},242:(t,e,n)=>{var i=n(685);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("175dda0a",i,!1,{})},276:(t,e,n)=>{var i=n(940);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("e5c43840",i,!1,{})},67:(t,e,n)=>{var i=n(176);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("7de428ec",i,!1,{})},737:(t,e,n)=>{var i=n(865);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("6085b328",i,!1,{})},346:(t,e,n)=>{"use strict";function i(t,e){for(var n=[],i={},o=0;o<e.length;o++){var a=e[o],s=a[0],r={id:t+":"+o,css:a[1],media:a[2],sourceMap:a[3]};i[s]?i[s].parts.push(r):n.push(i[s]={id:s,parts:[r]})}return n}n.d(e,{Z:()=>g});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},s=o&&(document.head||document.getElementsByTagName("head")[0]),r=null,l=0,c=!1,d=function(){},h=null,u="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(t,e,n,o){c=n,h=o||{};var s=i(t,e);return m(s),function(e){for(var n=[],o=0;o<s.length;o++){var r=s[o];(l=a[r.id]).refs--,n.push(l)}for(e?m(s=i(t,e)):s=[],o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(b(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(b(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:s}}}}function f(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function b(t){var e,n,i=document.querySelector("style["+u+'~="'+t.id+'"]');if(i){if(c)return d;i.parentNode.removeChild(i)}if(p){var o=l++;i=r||(r=f()),e=y.bind(null,i,o,!1),n=y.bind(null,i,o,!0)}else i=f(),e=v.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var _,x=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function y(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var a=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(a,s[e]):t.appendChild(a)}}function v(t,e){var n=e.css,i=e.media,o=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(u,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},748:e=>{"use strict";e.exports=t}},n={};function i(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,exports:{}};return e[t](a,a.exports,i),a.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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})};var o={};return(()=>{"use strict";i.r(o),i.d(o,{WertyzChartContent:()=>dn,WertyzConfirmationWindow:()=>qe,WertyzContent:()=>s,WertyzDetailContent:()=>Y,WertyzDetailHeader:()=>L,WertyzDetailNavbar:()=>j,WertyzHeader:()=>rt,WertyzListContent:()=>te,WertyzListNavbar:()=>yt,WertyzLoader:()=>se,WertyzMenu:()=>De,WertyzMobileMenu:()=>ze,WertyzModal:()=>Re,WertyzPieChart:()=>Fl,WertyzQuickFilter:()=>Ze,WertyzSmallLoader:()=>Fe,WertyzTable:()=>Kt,default:()=>Hl,wAjax:()=>Rl,wMap:()=>jl,wMixin:()=>at});var t=i(748);const e={id:"wertyz-content"},n={name:"WertyzContent"};i(802);var a=i(744);const s=(0,a.Z)(n,[["render",function(n,i,o,a,s,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",e,[(0,t.renderSlot)(n.$slots,"header",{},void 0,!0),(0,t.renderSlot)(n.$slots,"content",{},void 0,!0),(0,t.renderSlot)(n.$slots,"footer",{},void 0,!0)])}],["__scopeId","data-v-414af972"]]),r={id:"wertyz-detail-content",class:"w__content__detail"},l={class:"w__header"},c={class:"row padding-no d-flex d-flex--v-center"},d={class:"col-lg-2"},h=["src"],u={class:"w__back__btn-text"},p={class:"col-lg-6 d-flex d-flex--v-center padding--no-left"},g=["src"],m={class:"w__header-text"},f={class:"col-lg-2"},b={class:"col-lg-2"},_={name:"WertyzDetailHeaderDesktop",props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},backImageUrl:{type:String,default:null},imgClass:{type:String,default:null}}},x=(0,a.Z)(_,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("header",l,[(0,t.createElementVNode)("div",c,[(0,t.createElementVNode)("div",d,[(0,t.createVNode)(r,{to:i.backUrl,class:"disable-decoration w__back__btn"},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("img",{class:"w__back__btn-img",src:i.backImageUrl},null,8,h),(0,t.createElementVNode)("span",u,(0,t.toDisplayString)(e.$t("back")),1)])),_:1},8,["to"])]),(0,t.createElementVNode)("div",p,[i.img?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["w__header-icon",i.imgClass])},[(0,t.createElementVNode)("img",{src:i.img},null,8,g)],2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",m,[(0,t.createElementVNode)("h2",null,(0,t.toDisplayString)(i.name),1)])]),(0,t.createElementVNode)("div",f,[i.firstBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.firstBtn.class]),onClick:n[0]||(n[0]=t=>e.$emit("first-btn-action"))},(0,t.toDisplayString)(i.firstBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)]),(0,t.createElementVNode)("div",b,[i.secondBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.secondBtn.class]),onClick:n[1]||(n[1]=t=>e.$emit("second-btn-action"))},(0,t.toDisplayString)(i.secondBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)])])])}]]),y={class:"w__header"},v={class:"row padding-no d-flex d-flex--v-center flex-direction--row"},w={class:"col-lg-2"},k=["src"],M=(e=>((0,t.pushScopeId)("data-v-ea7667be"),e=e(),(0,t.popScopeId)(),e))((()=>(0,t.createElementVNode)("span",{class:"w__back__btn-text"},null,-1))),S={class:"col-lg-6 d-flex d-flex--v-center padding--no-left flex-direction--row"},C=["src"],A={class:"w__header-text"},E={class:"row d-flex d-flex--v-center absolute-row"},D={class:"col-xs-6"},I={class:"col-xs-6"},P={name:"WertyzDetailHeaderMobile",props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},backImageUrl:{type:String,default:null},imgClass:{type:String,default:null}}};i(986);const z={name:"WertyzDetailHeader",components:{WertyzDetailHeaderDesktop:x,WertyzDetailHeaderMobile:(0,a.Z)(P,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("header",y,[(0,t.createElementVNode)("div",v,[(0,t.createElementVNode)("div",w,[(0,t.createVNode)(r,{to:i.backUrl,class:"disable-decoration w__back__btn"},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("img",{class:"w__back__btn-img",src:i.backImageUrl},null,8,k),M])),_:1},8,["to"])]),(0,t.createElementVNode)("div",S,[i.img?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["w__header-icon",i.imgClass])},[(0,t.createElementVNode)("img",{src:i.img},null,8,C)],2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",A,[(0,t.createElementVNode)("h2",null,(0,t.toDisplayString)(i.name),1)])])]),(0,t.createElementVNode)("div",E,[(0,t.createElementVNode)("div",D,[i.firstBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.firstBtn.class]),onClick:n[0]||(n[0]=t=>e.$emit("first-btn-action"))},(0,t.toDisplayString)(i.firstBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)]),(0,t.createElementVNode)("div",I,[i.secondBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.secondBtn.class]),onClick:n[1]||(n[1]=t=>e.$emit("second-btn-action"))},(0,t.toDisplayString)(i.secondBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)])])])}],["__scopeId","data-v-ea7667be"]])},props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},imgClass:{type:String,default:null}},data:()=>({backImageUrl:i(835).Z,url:null}),created(){this.backUrl?this.url=this.backUrl:this.url=this.$router.options.history.state.back?this.$router.options.history.state.back:""}},L=(0,a.Z)(z,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzDetailHeaderDesktop"),l=(0,t.resolveComponent)("WertyzDetailHeaderMobile");return e.IS_MOBILE?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1,"back-url":a.url,name:i.name,"second-btn":i.secondBtn,"first-btn":i.firstBtn,img:i.img,"img-class":i.imgClass,"back-image-url":a.backImageUrl,onFirstBtnAction:t=>"first-btn-action",onSecondBtnAction:t=>"second-btn-action"},null,8,["back-url","name","second-btn","first-btn","img","img-class","back-image-url"])):((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,"back-url":a.url,name:i.name,"second-btn":i.secondBtn,"first-btn":i.firstBtn,"img-class":i.imgClass,img:i.img,"back-image-url":a.backImageUrl,onFirstBtnAction:t=>"first-btn-action",onSecondBtnAction:t=>"second-btn-action"},null,8,["back-url","name","second-btn","first-btn","img-class","img","back-image-url"]))}]]),T={id:"wertyz-detail-navbar"},O={class:"row"},B={class:"col-lg-12"},N={class:"nav nav-tabs"},F=["onClick"],V={href:"#"},R={class:"w__content__item shadow",style:{padding:"10px"}},W={name:"WertyzDetailNavbar",props:{items:{type:Array,default:[{name:"Item name",active:!0,componentName:null}]}},data:()=>({componentName:null}),methods:{changeTab(t){this.componentName=t}},mounted(){this.items.forEach((t=>t.active?this.componentName=t.componentName:null))}},j=(0,a.Z)(W,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",T,[(0,t.createElementVNode)("div",O,[(0,t.createElementVNode)("div",B,[(0,t.createElementVNode)("ul",N,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{"data-toggle":"tab",class:(0,t.normalizeClass)(e.active?"active":""),onClick:t=>s.changeTab(e.componentName)},[(0,t.createElementVNode)("a",V,(0,t.toDisplayString)(e.name),1)],10,F)))),256))])])]),(0,t.createElementVNode)("div",R,[(0,t.renderSlot)(e.$slots,"item-component",{componentName:a.componentName})])])}]]),H={name:"WertyzDetailContent",components:{WertyzDetailHeader:L,WertyzDetailNavbar:j,WertyzContent:s},props:{headerName:{type:String,default:"Header name"},headerImg:{type:String,default:null},headerFirstBtn:{type:Object,default:{name:null,class:null}},headerSecondBtn:{type:Object,default:{name:null,class:null}},headerBackUrl:{type:[String,Object],default:null},headerImgClass:{type:String,default:null},navbarItems:{type:Array,default:null}}},Y=(0,a.Z)(H,[["render",function(e,n,i,o,a,s){const l=(0,t.resolveComponent)("WertyzDetailHeader"),c=(0,t.resolveComponent)("WertyzDetailNavbar"),d=(0,t.resolveComponent)("WertyzContent");return(0,t.openBlock)(),(0,t.createElementBlock)("div",r,[(0,t.createVNode)(d,null,{header:(0,t.withCtx)((()=>[(0,t.createVNode)(l,{name:i.headerName,img:i.headerImg,"first-btn":i.headerFirstBtn,"second-btn":i.headerSecondBtn,"back-url":i.headerBackUrl,"img-class":i.headerImgClass,onFirstBtnAction:n[0]||(n[0]=t=>e.$emit("header-first-btn-action")),onSecondBtnAction:n[1]||(n[1]=t=>e.$emit("header-second-btn-action"))},null,8,["name","img","first-btn","second-btn","back-url","img-class"])])),content:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"informations"),i.navbarItems?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,items:i.navbarItems},{"item-component":(0,t.withCtx)((({componentName:n})=>[(0,t.renderSlot)(e.$slots,"navbar-item-component",{componentName:n})])),_:3},8,["items"])):(0,t.createCommentVNode)("v-if",!0)])),_:3})])}]]),Z={key:0,class:"w__header"},U={class:"row"},G={class:"col-lg-7"},X={class:"w__header-text"},Q={class:"col-lg-3 d-flex d-flex--v-center"},J={class:"col-lg-2 d-flex d-flex--v-center"},K={class:"row"},q={class:"col-lg-12"},tt={key:1,style:{position:"relative","margin-bottom":"10px"}},et={class:"row d-flex d-flex--v-center",style:{"flex-direction":"row",margin:"0"}},nt={class:"col-xs-7 padding--no"},it={class:"w__header-text"},ot={class:"col-xs-5"},at={data:()=>({isMinimalize:!1,isMaximalize:!1}),methods:{addZero:t=>t>9?t:"0"+t,removeAccent:t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),convertUTCToDate(t){let e;return e=t instanceof Date?t:new Date(1e3*t),e.getFullYear()+"-"+this.addZero(e.getMonth()+1)+"-"+this.addZero(e.getDate())},disabledDateOlderThanTodayOrValidTo(t){let e=new Date;return t<new Date(e.getFullYear(),e.getMonth(),e.getDate())||t>this.validTo&&null!==this.validTo},disabledDateOlderThanTodayOrValidFrom(t){let e=new Date;return t<new Date(e.getFullYear(),e.getMonth(),e.getDate())||t<this.validFrom&&null!==this.validFrom},convertTimeToSeconds(t){let e=t.split(":");return 3600*+e[0]+60*+e[1]},convertTimeSecondsToString(t){let e;return e=t instanceof Date?t:new Date(1e3*t),t?this.addZero(e.getUTCHours())+":"+this.addZero(e.getUTCMinutes()):"00:00"},convertSecondsToString(t){let e=t/3600,n=Math.floor(e),i=Math.round(60*(e-n));return this.addZero(n)+"h. "+this.addZero(i)+"min."},convertUTCSecondsToHHMMSS(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getUTCHours())+":"+this.addZero(e.getUTCMinutes())+":"+this.addZero(e.getUTCSeconds())},convertSecondsToDateStringSTN(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getDate())+"."+this.addZero(e.getMonth()+1)+"."+e.getFullYear()},convertUTCToDDMMYYYYHHMMSS(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getDate())+"."+this.addZero(e.getMonth()+1)+"."+e.getFullYear()+" "+this.addZero(e.getHours())+":"+this.addZero(e.getMinutes())+":"+this.addZero(e.getSeconds())},getUTCDate(){let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()},isValid(t,e){let n=(new Date).getTime()/1e3,i=null,o=null;return i=t instanceof Date?t.getTime()/1e3:t,o=e instanceof Date?e.getTime()/1e3:e,i<n&&o>n},isValidInFuture(t,e){let n=(new Date).getTime()/1e3,i=null,o=null;return i=t instanceof Date?t.getTime()/1e3:t,o=e instanceof Date?e.getTime()/1e3:e,i>n&&o>n},checkOverlap:(t,e)=>t.validFrom<=e.validFrom&&e.validFrom<=t.validTo||t.validFrom<=e.validTo&&e.validTo<=t.validTo||e.validFrom<t.validFrom&&t.validTo<e.validTo,isJson(t){try{JSON.parse(t)}catch(t){return!1}return!0},getActualUTCTimestamp:()=>Math.floor((new Date).getTime()/1e3),hexToRgbA(t){let e;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return e=t.substring(1).split(""),3==e.length&&(e=[e[0],e[0],e[1],e[1],e[2],e[2]]),e="0x"+e.join(""),"rgba("+[e>>16&255,e>>8&255,255&e].join(",")+",0.3)"},searchInData(t,e){let n=this.removeAccent(e.searchText.toUpperCase()),i=[];return t.forEach((t=>{if(void 0!==e.properties)for(let o=0,a=e.properties.length;o<a;o++){let a=e.properties[o];if(-1!==this.removeAccent(t[a].toUpperCase()).indexOf(n)){i.push(t);break}}else-1!==this.removeAccent(t.toUpperCase()).indexOf(n)&&i.push(t)})),i},randomColor:()=>"#"+Math.floor(16777215*Math.random()).toString(16)},computed:{windowSize(){return this.isMinimalize?"map__detail--minimalize":this.isMaximalize?"map__detail--maximalize":""}}},st={name:"WertyzHeader",mixins:[at],props:{name:{type:String,default:""},btn:{type:Object,default:null},search:{type:Object,default:{id:null,value:null}}}};i(611);const rt=(0,a.Z)(st,[["render",function(e,n,i,o,a,s){return e.IS_MOBILE?((0,t.openBlock)(),(0,t.createElementBlock)("header",tt,[(0,t.createElementVNode)("div",et,[(0,t.createElementVNode)("div",nt,[(0,t.createElementVNode)("h3",it,(0,t.toDisplayString)(i.name),1)]),(0,t.createElementVNode)("div",ot,[i.btn?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.btn.class]),onClick:n[1]||(n[1]=t=>e.$emit("btn-action")),style:{"margin-bottom":"0px"}},(0,t.toDisplayString)(i.btn.name),3)):(0,t.createCommentVNode)("v-if",!0)])]),(0,t.renderSlot)(e.$slots,"search")])):((0,t.openBlock)(),(0,t.createElementBlock)("header",Z,[(0,t.createElementVNode)("div",U,[(0,t.createElementVNode)("div",G,[(0,t.createElementVNode)("h2",X,(0,t.toDisplayString)(i.name),1)]),(0,t.createElementVNode)("div",Q,[(0,t.renderSlot)(e.$slots,"search-slot")]),(0,t.createElementVNode)("div",J,[i.btn?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.btn.class]),onClick:n[0]||(n[0]=t=>e.$emit("btn-action"))},(0,t.toDisplayString)(i.btn.name),3)):(0,t.createCommentVNode)("v-if",!0)])]),(0,t.createElementVNode)("div",K,[(0,t.createElementVNode)("div",q,[(0,t.renderSlot)(e.$slots,"other-row")])])]))}]]),lt={id:"wertyz-list-content"},ct={id:"wertyz-list-navbar"},dt={class:"row"},ht={class:"col-lg-12"},ut={class:"nav nav-tabs"},pt=["onClick"],gt={href:"#"},mt={key:0,class:"table__counts"},ft={class:"table__counts__number"},bt=["id"],_t=["value","selected"],xt={name:"WertyzListNavbar",data:()=>({lengths:[5,10,20,30,50,100,-1]}),props:{items:{type:Array,default:[{name:"Item name",clickCallback:null,active:!1}]},tableId:{type:String,default:null},tableLength:{type:Number,default:10},tableCount:{type:Number,default:0}}},yt=(0,a.Z)(xt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",ct,[(0,t.createElementVNode)("div",dt,[(0,t.createElementVNode)("div",ht,[(0,t.createElementVNode)("ul",ut,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{"data-toggle":"tab",class:(0,t.normalizeClass)(e.active?"active":""),onClick:e.clickCallback},[(0,t.createElementVNode)("a",gt,(0,t.toDisplayString)(e.name),1)],10,pt)))),256))]),e.IS_MOBILE||-1===i.tableCount?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",mt,[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.$t("CountOfResults"))+": ",1),(0,t.createElementVNode)("span",ft,(0,t.toDisplayString)(i.tableCount),1)])),e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("select",{key:1,id:i.tableId+"-length"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.lengths,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("option",{value:n,selected:n===i.tableLength},(0,t.toDisplayString)(-1===n?e.$t("AllRows"):n),9,_t)))),256))],8,bt))])])])}]]),vt={id:"wertyz-table"},wt={class:"w__table__wrapper"},kt={class:"row"},Mt={class:"col-lg-12"},St=["id"];function Ct(t={},e="",n=1){let i=t,o=""!==e?$(e):$(".w__pages"),a=this;function s(t){let n=i.info instanceof Function?i.info():i.page.info(),a=n.pages,s="",r=void 0===t||t<=5?9:t+4,c=void 0===t||t<=5?1:t-4,d=void 0!==t?"w__page--active":"";n.serverSide&&(a=Math.ceil(n.recordsDisplay/n.length)),r>a&&(r=a);for(let e=c;e<=r;e++)s+=e===t?"<div class='w__page "+d+"' data-page='"+e+"'>"+e+"</div>":"<div class='w__page' data-page='"+e+"'>"+e+"</div>";o.empty(),o.html(s),$(e+" .w__page").on("click",l)}function r(t){i.page(t-1).draw("page"),s(t)}function l(t){r(+$(t.target).attr("data-page"))}var c;this.firstPage=function(){r(1)},this.lastPage=function(){r(i.info instanceof Function?i.info().pages:i.page.info().pages)},this.changeVisibleRows=function(t){i.len instanceof Function?i.len(t.target.value).draw():i.page.len(t.target.value).draw(),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},this.nextPage=function(){i.page("next").draw("page"),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},this.refresh=function(t){let e=null,n=i.info instanceof Function?i.info():i.page.info();console.log(n),void 0!==t?(e=t,s(e)):n.page<=n.pages?(e=n.page+1,s(e)):this.lastPage()},this.previousPage=function(){i.page("previous").draw("page"),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},c=n,$(e).parent().children(".w__pages__arrow--first").off(),$(e).parent().children(".w__pages__arrow--previous").off(),$(e).parent().children(".w__pages__arrow--next").off(),$(e).parent().children(".w__pages__arrow--last").off(),$(e).parent().children(".w__pages__arrow--first").on("click",a.firstPage),$(e).parent().children(".w__pages__arrow--previous").on("click",a.previousPage),$(e).parent().children(".w__pages__arrow--next").on("click",a.nextPage),$(e).parent().children(".w__pages__arrow--last").on("click",a.lastPage),s(c)}function At(){let t={};this.register=function(e,n,i){this.add(e),t[e].on(n,i)},this.registerDynamic=function(t,e,n,i){this.add(t+" "+e),$(t).on(n,e,i)},this.unregister=function(e,n=null,i=null){return this.add(e),n?i?t[e].off(n,i):t[e].off(n):t[e].off()},this.add=function(e,n=!1){(void 0===t[e]||null===t[e]||n)&&(t[e]=$(e))},this.get=function(e,n=!1){return this.add(e,n),t[e]},this.getAll=function(){return t},void 0===window.eventRegistrators&&(window.eventRegistrators=[]),window.eventRegistrators.push(this),function e(){console.log("Clearing inactive selectors");for(let e in t)0===t[e].length&&t[e];setTimeout(e,6e4)}()}function Et(t,e){let n={},i={},o=new At,a=this,s=null;function r(t){let o=function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}(t.target.value);if(13===t.keyCode)if(-1!==o.indexOf(";")){let e=t.target.value.split(";");e=e.map((t=>"\\b"+t+"\\b")),n.search(e.join("|"),!0,!1).draw()}else n.search("\\b"+o+"\\b",!0,!1).draw();else n.search(o.replace(";","|"),!0,!1).draw();i.refresh(),void 0!==e.searchCallback&&e.searchCallback(a.getFilteredData())}function l(){o.unregister(t+"-search"),o.register(t+"-search","keyup",(function(t){s&&clearTimeout(s),s=setTimeout(r.bind(this,t),void 0!==e.searchInterval?e.searchInterval:0)}))}this.setRowDetail=function(t,e,i){const o=$(t),a=n.row(o);a.child.isShown()?(a.child.hide(),o.removeClass("shown")):(a.child(i(e),"w__table__tr__child").show(),o.addClass("shown"))},this.getPagination=function(){return i},this.getTable=function(){return n},this.destroy=function(){n.clear(),n.destroy(),n=null},this.updateSize=function(){n.columns.adjust()},this.getFilteredData=function(){return n.rows({filter:"applied"}).data()},this.reloadTable=function(t){void 0!==t&&n.clear().rows.add(t).draw(!1),i.refresh()},this.ajaxReload=function(){n.ajax.reload()},this.reloadTableRow=function(t,e){n.row(t).data(e)},this.init=function(){e&&e.serverSide&&(e.drawCallback=function(){i.refresh()}),n=$(t).DataTable(e),i=new Ct(n,t+"-pages"),o.unregister(t+"-length"),o.get(t+"-length").select2({selectionCssClass:":all"}),o.register(t+"-length","change",i.changeVisibleRows),l()},this.init()}const Dt={class:"row"},It={class:"w__pagination"},Pt={class:"none-select w__pages__wrapper"},zt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--first",style:{"margin-right":"10px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAVCAYAAABPPm7SAAAACXBIWXMAAAsSAAALEgHS3X78AAAA7klEQVQ4jaWUuw3CMBRFb6Chg02SEWjp2ABo4pJ0lCgbpH0VyQSswAhkirQwgZEjO3px7HyMJTdX7xw9fyGlnDWRpoVdp7IVZoxIiBLAlVeabFKgC0++bFRgwV+XMGrXMg/eAzgCuLOyi1PggRMADw5LonKwhCXwYA+Wwj1BCNwJQmE11nnTZABuLDsA2AB4siyXRIUNmw6UtWaZKnwDqFiWRUIkToEk+uiWjSQG8FIQk2xV5pK0e/CPpDuFUEnvHoRIfFd5p8FYR7UWF/ZxO1+jrxNJdLY78T5nj0TlPcnof+CQmLyTTP5IoxKg+gE4KLmkN4OjgAAAAABJRU5ErkJggg=="})],-1),Lt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--previous",style:{"margin-right":"50px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAVCAYAAACQcBTNAAAACXBIWXMAAAsSAAALEgHS3X78AAAAtElEQVQokWP8//8/AzGAcdasBBYiFS5gYGBQYCJSYTyIjVcxskIwH5eb0RR+ZGBgcMBqMjaF/9PSLmAoxqUQw834FKIoJqQQrpgYhSDA3CglVcDAwFCOJOb5Py3tBDaPg0wGmXoRSWwC46xZAlgV/09L+wCyFkmDPgMDwwFsGsBuJlYDPDSI0YASzoQ0YE0bUMkDUMUgANLsgC8hoWvYiDOJYnGSAMFshWTDB4I5BW4DA8MFAKXxaPX60gVzAAAAAElFTkSuQmCC"})],-1),Tt=["id"],Ot=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--next",style:{"margin-left":"50px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAVCAYAAAByrA+0AAAACXBIWXMAAAsSAAALEgHS3X78AAAAuUlEQVQ4jZXSvRWCMBRA4Rts7LSm0g0cxQ2E5u3hCJZJA05g6xiO4Ahu8DzBn5NIlGfOoYH7QR4A3m/wvlFVLEcFLIHOhdBgWFWSmFAEt39QpSIXoLWiYUsq0lvRewYrSoc2oQxY0AhMIRe/3rflQohwl1xeF5/AI453TONWRa5F8Iw78rgvzvArHoGpOAOF+PAZD118Sy6ELXBKzh9VpPhrzPZ1vQLOwHwqfm0pgoUlzmawxCkwxQB3JvV6PYYRQjMAAAAASUVORK5CYII="})],-1),Bt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--last",style:{"margin-left":"10px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAVCAYAAACg/AXsAAAACXBIWXMAAAsSAAALEgHS3X78AAAA70lEQVQ4jaXUyxGCMBCA4R8a0BIsQSvQEuxAvCRXS/G6J7ACW7ADLUUriLNMwIARY9yZDLBsvsmGBxhTYczSOUc39FrzYW5qlMACuBTWLnnFHKgLaysSovQlswhEKqTI/V+odCJH4BRCHj4FdZNQ0W6knljbADuffwAb4BDkNFZO5BZrpw0nUkVWdBytKNbuC0mEovs2QHKhNyQH6jc2FoW1Onntbz2cyHyc05f1I+IfaR2k9v44yDmRJtrOL0B0T34F3pAcYIDkAj3yD9DOx5gtcB4B+n1cU4BuJeEr3BXrTykJ6NuZKP4KhEg2APAEm2Ow87Riu7IAAAAASUVORK5CYII="})],-1),Nt={name:"WertyzPagination",props:{tableId:{type:String,default:"wertyz-table"}},data:()=>({})},Ft=(0,a.Z)(Nt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Dt,[(0,t.createElementVNode)("div",It,[(0,t.createElementVNode)("div",Pt,[zt,Lt,(0,t.createElementVNode)("div",{class:"w__pages",id:i.tableId+"-pages"},null,8,Tt),Ot,Bt])])])}]]),Vt={class:"panel__row row"},Rt={key:0,class:"panel__col date col-lg-3"},Wt={key:1,class:"panel__col date col-lg-3"},jt={class:"panel__col col-lg-3"},Ht=["id","placeholder"],Yt=(e=>((0,t.pushScopeId)("data-v-e94d5c9e"),e=e(),(0,t.popScopeId)(),e))((()=>(0,t.createElementVNode)("span",{class:"glyphicons glyphicons-search search__icon"},null,-1))),Zt={class:"panel__col length col-lg-3"},$t={key:0,class:"table__counts"},Ut={class:"table__counts__number"},Gt=["id"],Xt=["value","selected"],Qt={name:"WertyzTablePanel",emits:["update:tableSearch"],props:{tableId:{type:String,default:"wertyz-table"},tableSearch:{type:String,default:null},tableCount:{type:Number,default:0},tableLength:{type:Number,default:10},panelStyle:{type:String,default:""}},data:()=>({lengths:[5,10,20,30,50,100,-1]}),computed:{searchValue:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},countValue:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}}};i(242),i(276);const Jt={name:"WertyzTable",inject:["emitter"],components:{WertyzPagination:Ft,WertyzTablePanel:(0,a.Z)(Qt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{id:"wertyz-table-panel",class:"w__panel",style:(0,t.normalizeStyle)(i.panelStyle)},[(0,t.createElementVNode)("div",Vt,[e.$slots["first-item"]?((0,t.openBlock)(),(0,t.createElementBlock)("div",Rt,[(0,t.renderSlot)(e.$slots,"first-item",{},void 0,!0)])):(0,t.createCommentVNode)("v-if",!0),e.$slots["second-item"]?((0,t.openBlock)(),(0,t.createElementBlock)("div",Wt,[(0,t.renderSlot)(e.$slots,"second-item",{},void 0,!0)])):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",jt,[(0,t.withDirectives)((0,t.createElementVNode)("input",{type:"text",id:i.tableId+"-search",class:"form-control search",placeholder:e.$t("search"),"onUpdate:modelValue":n[0]||(n[0]=t=>s.searchValue=t)},null,8,Ht),[[t.vModelText,s.searchValue]]),Yt]),(0,t.createElementVNode)("div",Zt,[e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",$t,[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.$t("CountOfResults"))+": ",1),(0,t.createElementVNode)("span",Ut,(0,t.toDisplayString)(i.tableCount),1)])),e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("select",{key:1,id:i.tableId+"-length",class:"statements-list-length"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.lengths,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("option",{value:n,selected:n===i.tableLength},(0,t.toDisplayString)(-1===n?e.$t("AllRows"):n),9,Xt)))),256))],8,Gt))])])],4)}],["__scopeId","data-v-e94d5c9e"]])},emits:["update:tableSearch","update:tableCount"],props:{tableColumns:{type:Array,default:[]},tableId:{type:String,default:"wertyz-table"},tableOptions:{type:Object,default:{}},tableData:{type:Array,default:[]},tablePanelStyle:{type:String,default:""},showPanel:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},tableLength:{type:Number,default:10},tableCount:{type:Number,default:0},tableSearch:{type:String,default:null}},data(){return this.table={},{pageLength:"10"}},methods:{setTable(){this.tableOptions.data=this.tableData,this.table=new Et("#"+this.tableId,this.tableOptions),setTimeout((()=>{this.table.getPagination().refresh()}),10)}},watch:{tableData:{handler(){this.table&&(this.table.reloadTable(this.tableData),this.count=this.table.getFilteredData().length)},deep:!0}},computed:{search:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},count:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}},created(){this.tableOptions&&this.tableOptions.pageLength&&(this.pageLength=this.tableOptions.pageLength+"")},mounted(){this.tableOptions&&this.setTable(),this.emitter.on(this.tableId+"-ajax-reload",this.table.ajaxReload)},unmounted(){this.emitter.off(this.tableId+"-ajax-reload",this.table.ajaxReload),this.table.destroy(),this.table=null}};i(687);const Kt=(0,a.Z)(Jt,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzTablePanel"),l=(0,t.resolveComponent)("WertyzPagination");return(0,t.openBlock)(),(0,t.createElementBlock)("div",vt,[i.showPanel&&i.tableOptions?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,"table-id":i.tableId,"table-length":i.tableLength,"panel-style":i.tablePanelStyle,"table-count":s.count,"onUpdate:table-count":n[0]||(n[0]=t=>s.count=t),"table-search":s.search,"onUpdate:table-search":n[1]||(n[1]=t=>s.search=t)},(0,t.createSlots)({_:2},[e.$slots["panel-first-item"]?{name:"first-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"panel-first-item")])),key:"0"}:void 0,e.$slots["panel-second-item"]?{name:"second-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"panel-second-item")])),key:"1"}:void 0]),1032,["table-id","table-length","panel-style","table-count","table-search"])):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",wt,[(0,t.createElementVNode)("div",kt,[(0,t.createElementVNode)("div",Mt,[(0,t.createElementVNode)("table",{class:"table w__table w__table--hover",id:i.tableId},[(0,t.createElementVNode)("thead",null,[(0,t.createElementVNode)("tr",null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.tableColumns,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("th",{class:(0,t.normalizeClass)(e.class?e.class:"")},(0,t.toDisplayString)(e.name),3)))),256))])])],8,St)])])]),i.showPagination&&i.tableOptions?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1,"table-id":i.tableId},null,8,["table-id"])):(0,t.createCommentVNode)("v-if",!0)])}]]),qt={name:"WertyzListContent",components:{WertyzHeader:rt,WertyzListNavbar:yt,WertyzTable:Kt,WertyzContent:s},emits:["update:tableSearch","update:tableCount"],props:{headerName:{type:String,default:"Header name"},headerBtn:{type:Object,default:null},navbarItems:{type:Array,default:null},tableId:{type:String,default:"wertyz-table"},tableCount:{type:Number,default:0},tableLength:{type:Number,default:10},tableOptions:{type:Object,default:null},tableColumns:{type:Array,default:[]},tableData:{type:Array,default:[]},tableSearch:{type:String,default:null},showPanel:{type:Boolean,default:!0}},computed:{search:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},count:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}}},te=(0,a.Z)(qt,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzHeader"),l=(0,t.resolveComponent)("WertyzListNavbar"),c=(0,t.resolveComponent)("WertyzTable"),d=(0,t.resolveComponent)("WertyzContent");return(0,t.openBlock)(),(0,t.createElementBlock)("div",lt,[(0,t.createVNode)(d,null,{header:(0,t.withCtx)((()=>[(0,t.createVNode)(r,{name:i.headerName,btn:i.headerBtn,onBtnAction:n[0]||(n[0]=t=>e.$emit("header-btn-action"))},{"search-slot":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"header-search-slot")])),"other-row":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"header-other-row")])),_:3},8,["name","btn"])])),content:(0,t.withCtx)((()=>[i.navbarItems?((0,t.openBlock)(),(0,t.createBlock)(l,{key:0,items:i.navbarItems,"table-id":i.tableId,"table-count":i.tableCount,"table-length":i.tableLength},null,8,["items","table-id","table-count","table-length"])):(0,t.createCommentVNode)("v-if",!0),(0,t.createVNode)(c,{"table-options":i.tableOptions,"table-columns":i.tableColumns,"table-id":i.tableId,"table-data":i.tableData,"table-count":s.count,"onUpdate:table-count":n[1]||(n[1]=t=>s.count=t),"table-length":i.tableLength,"table-search":s.search,"onUpdate:table-search":n[2]||(n[2]=t=>s.search=t),"show-panel":i.showPanel},(0,t.createSlots)({_:2},[e.$slots["table-panel-first-item"]?{name:"panel-first-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"table-panel-first-item")])),key:"0"}:void 0,e.$slots["table-panel-second-item"]?{name:"panel-second-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"table-panel-second-item")])),key:"1"}:void 0]),1032,["table-options","table-columns","table-id","table-data","table-count","table-length","table-search","show-panel"])])),_:3})])}]]),ee={class:"w__loader__wrapper"},ne=(0,t.createElementVNode)("div",{class:"w__loader"},null,-1),ie={class:"w__loader__img"},oe=["src"],ae={name:"WertyzLoader",props:{imageUrl:{type:String,default:null}}};i(926);const se=(0,a.Z)(ae,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",ee,[ne,(0,t.createElementVNode)("div",ie,[(0,t.createElementVNode)("img",{src:i.imageUrl},null,8,oe)])])}]]),re={id:"w-menu"},le={class:"menu__header__wrapper"},ce=["src"],de={class:"menu__logo"},he=["src"],ue={class:"menu__header"},pe={class:"menu__header__text"},ge={class:"menu__content"},me={class:"menu__content__ul"},fe={class:"menu__content__li-wrapper"},be=["src"],_e=["src"],xe={class:"menu__content__li-name"},ye={key:4,class:"menu__content__li-right"},ve={key:5,class:"menu__content__li-arrow"},we={key:0,class:"menu__sub__ul"},ke={class:"menu__sub__li-wrapper"},Me=["src"],Se=["src"],Ce={class:"menu__sub__li-name"},Ae={class:"menu__footer"},Ee={name:"WertyzMenu",mixins:[at],props:{items:{type:Array,default:[]},appName:{type:String,default:"APPNAME"},logo:{type:String,default:null}},data:()=>({isMinimalize:!1}),methods:{toggleMinMax(){this.isMinimalize?(document.getElementById("w-menu").classList.remove("w__menu--minimalize"),document.getElementById("main-content").classList.remove("maximalize"),document.getElementById("right-content").classList.remove("minimalize"),this.isMinimalize=!1):(document.getElementById("w-menu").classList.add("w__menu--minimalize"),document.getElementById("main-content").classList.add("maximalize"),document.getElementById("right-content").classList.add("minimalize"),this.isMinimalize=!0),this.$store.getters.getMapControl&&this.$store.getters.getMapControl.map.getMap().updateSize(),$.fn.dataTable.tables({api:!0}).columns.adjust()}},mounted(){}};i(32);const De=(0,a.Z)(Ee,[["render",function(e,n,o,a,s,r){const l=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("div",re,[(0,t.createElementVNode)("div",le,[e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"menu__button",onClick:n[0]||(n[0]=t=>r.toggleMinMax())},[(0,t.createElementVNode)("img",{src:i(41).Z},null,8,ce)])),(0,t.createElementVNode)("div",de,[(0,t.createElementVNode)("img",{src:o.logo},null,8,he)]),(0,t.createElementVNode)("div",ue,[(0,t.createElementVNode)("h3",pe,(0,t.toDisplayString)(o.appName),1)])]),(0,t.createElementVNode)("div",ge,[(0,t.createElementVNode)("ul",me,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.items,(e=>((0,t.openBlock)(),(0,t.createBlock)(l,{"exact-active-class":"menu__content__li--active",class:"menu__content__li",to:e.to},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("div",fe,[e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["menu__content__li-img menu__content__li-img--active",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,class:(0,t.normalizeClass)(["menu__content__li-img",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.imgActive?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"menu__content__li-img menu__content__li-img--active",src:e.imgActive},null,8,be)):(0,t.createCommentVNode)("v-if",!0),e.img?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:3,class:"menu__content__li-img",src:e.img},null,8,_e)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("span",xe,(0,t.toDisplayString)(e.name),1),e.rightComponent?((0,t.openBlock)(),(0,t.createElementBlock)("span",ye,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)({...e.rightComponent})))])):(0,t.createCommentVNode)("v-if",!0),e.subItems&&e.subItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("span",ve)):(0,t.createCommentVNode)("v-if",!0)]),e.subItems&&e.subItems.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("ul",we,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.subItems,(e=>((0,t.openBlock)(),(0,t.createBlock)(l,{"exact-active-class":"menu__content__li--active",class:"menu__sub__li",to:e.to},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("div",ke,[e.imgActive?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"menu__sub__li-img menu__sub__li-img--active",src:e.imgActive},null,8,Me)):(0,t.createCommentVNode)("v-if",!0),e.img?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,class:"menu__sub__li-img",src:e.img},null,8,Se)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:2,class:(0,t.normalizeClass)(["menu__sub__li-img menu__sub__li-img--active",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:(0,t.normalizeClass)(["menu__sub__li-img",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("span",Ce,(0,t.toDisplayString)(e.name),1)])])),_:2},1032,["to"])))),256))],512)),[[t.vShow,e.active]]):(0,t.createCommentVNode)("v-if",!0)])),_:2},1032,["to"])))),256))])]),(0,t.createElementVNode)("div",Ae,[(0,t.renderSlot)(e.$slots,"footer",{},void 0,!0)])])}],["__scopeId","data-v-31ca7b9e"]]),Ie={id:"w-mobile-menu"},Pe={name:"WertyzMobileMenu",inject:["emitter"],mixins:[at],data:()=>({isShowMenu:!1}),methods:{showMenu(){this.emitter.emit("show-menu"),this.isShowMenu=!0},hideMenu(){this.emitter.emit("hide-menu"),this.isShowMenu=!1}}};i(967);const ze=(0,a.Z)(Pe,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Ie,[(0,t.withDirectives)((0,t.createElementVNode)("span",{class:"glyphicons glyphicons-menu-hamburger",onClick:n[0]||(n[0]=(...t)=>s.showMenu&&s.showMenu(...t))},null,512),[[t.vShow,!e.$store.getters["globalState/getShowingMenu"]]]),(0,t.withDirectives)((0,t.createElementVNode)("span",{class:"glyphicons glyphicons-remove",onClick:n[1]||(n[1]=(...t)=>s.hideMenu&&s.hideMenu(...t))},null,512),[[t.vShow,e.$store.getters["globalState/getShowingMenu"]]])])}]]),Le=["src"],Te={class:"w__small__loader"},Oe={class:"v-spinner"},Be={name:"PulseLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}};i(816);const Ne={name:"WertyzSmallLoader",components:{PulseLoader:(0,a.Z)(Be,[["render",function(e,n,i,o,a,s){return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",Oe,[(0,t.createElementVNode)("div",{class:"v-pulse v-pulse1",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay1])},null,4),(0,t.createElementVNode)("div",{class:"v-pulse v-pulse2",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay2])},null,4),(0,t.createElementVNode)("div",{class:"v-pulse v-pulse3",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay3])},null,4)],512)),[[t.vShow,i.loading]])}]])},props:{show:{type:Boolean,default:!1}}};i(724);const Fe=(0,a.Z)(Ne,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("PulseLoader");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",Te,[(0,t.createVNode)(r,{loading:i.show,color:"#066",size:"15px"},null,8,["loading"])],512)),[[t.vShow,i.show]])}],["__scopeId","data-v-e0d9804a"]]),Ve={name:"WertyzModal",components:{WertyzSmallLoader:Fe},props:{modalClass:{type:String,default:""},modalHeaderClass:{type:String,default:""},modalContentClass:{type:String,default:""},modalBodyClass:{type:String,default:""},modalStyle:{type:String,default:""},modalHeaderStyle:{type:String,default:""},modalContentStyle:{type:String,default:""},modalBodyStyle:{type:String,default:""},modalCloseClass:{type:String,default:""},modalCloseStyle:{type:String,default:""},loader:{type:Boolean,default:!1}}};i(341);const Re=(0,a.Z)(Ve,[["render",function(e,n,o,a,s,r){const l=(0,t.resolveComponent)("WertyzSmallLoader");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{id:"wertyz-modal",class:(0,t.normalizeClass)(["w__modal",o.modalClass]),style:(0,t.normalizeStyle)(o.modalStyle)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__content",o.modalContentClass]),style:(0,t.normalizeStyle)(o.modalContentStyle)},[(0,t.createVNode)(l,{show:o.loader},null,8,["show"]),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__header",o.modalHeaderClass]),style:(0,t.normalizeStyle)(o.modalHeaderStyle)},[(0,t.renderSlot)(e.$slots,"modal-header",{},void 0,!0),(0,t.createElementVNode)("img",{class:(0,t.normalizeClass)(["w__modal__close",o.modalCloseClass]),style:(0,t.normalizeStyle)(o.modalCloseStyle),src:i(36).Z,onClick:n[0]||(n[0]=t=>e.$emit("close"))},null,14,Le)],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__body",o.modalBodyClass]),style:(0,t.normalizeStyle)(o.modalBodyStyle)},[(0,t.renderSlot)(e.$slots,"modal-body",{},void 0,!0)],6)],6)],6)}],["__scopeId","data-v-d16ba0f6"]]),We={id:"wertyz-quick-filter"},je={class:"filter"},He=["onClick"],Ye={name:"WertyzQuickFilter",emits:["select"],props:{items:{type:Array,default:null}},data:()=>({selected:null}),methods:{select(t){this.selected=t.id,this.$emit("select",t)}},mounted(){this.items&&this.items.forEach((t=>{t.selected&&(this.selected=t.id)}))}};i(34);const Ze=(0,a.Z)(Ye,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",We,[(0,t.createElementVNode)("div",je,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["filter__item",e.id===a.selected?"filter__item--selected":""]),key:e.id,onClick:t=>s.select(e)},(0,t.toDisplayString)(e.name),11,He)))),128))])])}],["__scopeId","data-v-e09ce0e4"]]),$e={class:"row"},Ue={class:"col-lg-12"},Ge={class:"body__text"},Xe={class:"row"},Qe={class:"col-lg-3 col-lg-offset-6"},Je={class:"col-lg-3"},Ke={name:"WertyzConfirmationWindow",components:{WertyzModal:Re},props:{headerText:{type:String,default:null},bodyText:{type:String,default:""},confirmText:{type:String,default:null},decelineText:{type:String,default:null}}};i(310);const qe=(0,a.Z)(Ke,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzModal");return(0,t.openBlock)(),(0,t.createBlock)(r,{onClose:n[2]||(n[2]=t=>e.$emit("close")),"modal-content-style":"border-radius: 15px;","modal-header-style":"background-color: var(--orange); border-top-left-radius: 15px; border-top-right-radius: 15px;","modal-close-style":"padding: 3px; border-radius: 10px; background-color: white;"},{"modal-header":(0,t.withCtx)((()=>[(0,t.createElementVNode)("h3",null,(0,t.toDisplayString)(i.headerText?i.headerText:e.$t("AreYouSure?")),1)])),"modal-body":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"confirmation-body",{},(()=>[(0,t.createElementVNode)("div",$e,[(0,t.createElementVNode)("div",Ue,[(0,t.createElementVNode)("div",Ge,(0,t.toDisplayString)(i.bodyText),1)])]),(0,t.createElementVNode)("div",Xe,[(0,t.createElementVNode)("div",Qe,[(0,t.createElementVNode)("button",{class:"btn btn-block green",onClick:n[0]||(n[0]=t=>e.$emit("no"))},(0,t.toDisplayString)(i.decelineText?i.decelineText:this.$t("No")),1)]),(0,t.createElementVNode)("div",Je,[(0,t.createElementVNode)("button",{class:"btn btn-block red--full",onClick:n[1]||(n[1]=t=>e.$emit("yes"))},(0,t.toDisplayString)(i.confirmText?i.confirmText:this.$t("Yes")),1)])])]),!0)])),_:3},8,["modal-header-style"])}],["__scopeId","data-v-32fd9d9e"]]),tn={class:"chart",id:"wertyz-chart-content"},en={class:"chart__wrapper"},nn={class:"header"},on={key:0,id:"wertyz-chart-legend",class:"legend"},an={class:"legend__row"},sn={class:"legend__cell"},rn={class:"legend__text"},ln={name:"WertyzChartLegened",props:{labels:{type:Array,default:[]},colors:{type:Array,default:[]}}};i(565);const cn={name:"OverviewChartContent",components:{WertyzChartLegend:(0,a.Z)(ln,[["render",function(e,n,i,o,a,s){return i.labels.length&&i.colors.length?((0,t.openBlock)(),(0,t.createElementBlock)("div",on,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Math.ceil(i.labels.length/2),(n=>((0,t.openBlock)(),(0,t.createElementBlock)("div",an,[e.index>=n&&e.index!==n||1===n?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(2*n,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("div",sn,[(0,t.createElementVNode)("div",{class:"legend__rectangle",style:(0,t.normalizeStyle)("background-color:"+i.colors[n-1])},null,4),(0,t.createElementVNode)("div",rn,[(0,t.renderSlot)(e.$slots,"text",{label:i.labels[n-1]},(()=>[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(i.labels[n-1]),1)]),!0)])])))),256)):(0,t.createCommentVNode)("v-if",!0)])))),256))])):(0,t.createCommentVNode)("v-if",!0)}],["__scopeId","data-v-26d722e0"]]),WertyzSmallLoader:Fe},props:{headerText:{type:String,default:""},legendLabels:{type:Array,default:[]},legendColors:{type:Array,default:[]},loader:{type:Boolean,default:!1}},mounted(){}};i(944);const dn=(0,a.Z)(cn,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzSmallLoader"),l=(0,t.resolveComponent)("WertyzChartLegend");return(0,t.openBlock)(),(0,t.createElementBlock)("div",tn,[(0,t.createVNode)(r,{show:i.loader},null,8,["show"]),(0,t.createElementVNode)("div",en,[(0,t.createElementVNode)("div",nn,[(0,t.createElementVNode)("h4",null,(0,t.toDisplayString)(i.headerText),1)]),(0,t.renderSlot)(e.$slots,"subtitle",{},void 0,!0),(0,t.createElementVNode)("div",null,[(0,t.renderSlot)(e.$slots,"chart",{},void 0,!0)]),(0,t.createElementVNode)("div",null,[i.legendLabels.length&&i.legendColors.length?((0,t.openBlock)(),(0,t.createBlock)(l,{key:0,labels:i.legendLabels,colors:i.legendColors},{text:(0,t.withCtx)((({label:n})=>[(0,t.renderSlot)(e.$slots,"legend-text",{label:n},void 0,!0)])),_:3},8,["labels","colors"])):(0,t.createCommentVNode)("v-if",!0)])])])}],["__scopeId","data-v-0fb2ac16"]]);function hn(){}const un=function(){let t=0;return function(){return t++}}();function pn(t){return null==t}function gn(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 mn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const fn=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function bn(t,e){return fn(t)?t:e}function _n(t,e){return void 0===t?e:t}const xn=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function yn(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function vn(t,e,n,i){let o,a,s;if(gn(t))if(a=t.length,i)for(o=a-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<a;o++)e.call(n,t[o],o);else if(mn(t))for(s=Object.keys(t),a=s.length,o=0;o<a;o++)e.call(n,t[s[o]],s[o])}function wn(t,e){let n,i,o,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],a=e[n],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function kn(t){if(gn(t))return t.map(kn);if(mn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=kn(t[n[o]]);return e}return t}function Mn(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Sn(t,e,n,i){if(!Mn(t))return;const o=e[t],a=n[t];mn(o)&&mn(a)?Cn(o,a,i):e[t]=kn(a)}function Cn(t,e,n){const i=gn(e)?e:[e],o=i.length;if(!mn(t))return t;const a=(n=n||{}).merger||Sn;for(let s=0;s<o;++s){if(!mn(e=i[s]))continue;const o=Object.keys(e);for(let i=0,s=o.length;i<s;++i)a(o[i],t,e,n)}return t}function An(t,e){return Cn(t,e,{merger:En})}function En(t,e,n){if(!Mn(t))return;const i=e[t],o=n[t];mn(i)&&mn(o)?An(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=kn(o))}const Dn={"":t=>t,x:t=>t.x,y:t=>t.y};function In(t,e){const n=Dn[e]||(Dn[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Pn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const zn=t=>void 0!==t,Ln=t=>"function"==typeof t,Tn=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},On=Math.PI,Bn=2*On,Nn=Bn+On,Fn=Number.POSITIVE_INFINITY,Vn=On/180,Rn=On/2,Wn=On/4,jn=2*On/3,Hn=Math.log10,Yn=Math.sign;function Zn(t){const e=Math.round(t);t=Un(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Hn(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function $n(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Un(t,e,n){return Math.abs(t-e)<n}function Gn(t,e,n){let i,o,a;for(i=0,o=t.length;i<o;i++)a=t[i][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Xn(t){return t*(On/180)}function Qn(t){return t*(180/On)}function Jn(t){if(!fn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Kn(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*On&&(a+=Bn),{angle:a,distance:o}}function qn(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ti(t,e){return(t-e+Nn)%Bn-On}function ei(t){return(t%Bn+Bn)%Bn}function ni(t,e,n,i){const o=ei(t),a=ei(e),s=ei(n),r=ei(a-o),l=ei(s-o),c=ei(o-a),d=ei(o-s);return o===a||o===s||i&&a===s||r>l&&c<d}function ii(t,e,n){return Math.max(e,Math.min(n,t))}function oi(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function ai(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,a=0;for(;o-a>1;)i=a+o>>1,n(i)?a=i:o=i;return{lo:a,hi:o}}const si=(t,e,n,i)=>ai(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),ri=(t,e,n)=>ai(t,n,(i=>t[i][e]>=n)),li=["push","pop","shift","splice","unshift"];function ci(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(li.forEach((e=>{delete t[e]})),delete t._chartjs)}function di(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const hi="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ui(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,a=[];return function(...n){a=i(n),o||(o=!0,hi.call(window,(()=>{o=!1,t.apply(e,a)})))}}const pi=t=>"start"===t?"left":"end"===t?"right":"center",gi=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function mi(t,e,n){const i=e.length;let o=0,a=i;if(t._sorted){const{iScale:s,_parsed:r}=t,l=s.axis,{min:c,max:d,minDefined:h,maxDefined:u}=s.getUserBounds();h&&(o=ii(Math.min(si(r,s.axis,c).lo,n?i:si(e,l,s.getPixelForValue(c)).lo),0,i-1)),a=u?ii(Math.max(si(r,s.axis,d,!0).hi+1,n?0:si(e,l,s.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:a}}function fi(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const a=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),a}const bi=t=>0===t||1===t,_i=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Bn/n),xi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Bn/n)+1,yi={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*Rn),easeOutSine:t=>Math.sin(t*Rn),easeInOutSine:t=>-.5*(Math.cos(On*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=>bi(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=>bi(t)?t:_i(t,.075,.3),easeOutElastic:t=>bi(t)?t:xi(t,.075,.3),easeInOutElastic(t){const e=.1125;return bi(t)?t:t<.5?.5*_i(2*t,e,.45):.5+.5*xi(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-yi.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*yi.easeInBounce(2*t):.5*yi.easeOutBounce(2*t-1)+.5};function vi(t){return t+.5|0}const wi=(t,e,n)=>Math.max(Math.min(t,n),e);function ki(t){return wi(vi(2.55*t),0,255)}function Mi(t){return wi(vi(255*t),0,255)}function Si(t){return wi(vi(t/2.55)/100,0,1)}function Ci(t){return wi(vi(100*t),0,100)}const Ai={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},Ei=[..."0123456789ABCDEF"],Di=t=>Ei[15&t],Ii=t=>Ei[(240&t)>>4]+Ei[15&t],Pi=t=>(240&t)>>4==(15&t);const zi=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Li(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Ti(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Oi(t,e,n){const i=Li(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function Bi(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),a=Math.min(e,n,i),s=(o+a)/2;let r,l,c;return o!==a&&(c=o-a,l=s>.5?c/(2-o-a):c/(o+a),r=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),r=60*r+.5),[0|r,l||0,s]}function Ni(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Mi)}function Fi(t,e,n){return Ni(Li,t,e,n)}function Vi(t){return(t%360+360)%360}const Ri={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"},Wi={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 ji;const Hi=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Yi=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Zi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function $i(t,e,n){if(t){let i=Bi(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Fi(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Ui(t,e){return t?Object.assign(e||{},t):t}function Gi(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=Mi(t[3]))):(e=Ui(t,{r:0,g:0,b:0,a:1})).a=Mi(e.a),e}function Xi(t){return"r"===t.charAt(0)?function(t){const e=Hi.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?ki(t):wi(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?ki(n):wi(n,0,255)),i=255&(e[4]?ki(i):wi(i,0,255)),o=255&(e[6]?ki(o):wi(o,0,255)),{r:n,g:i,b:o,a}}}(t):function(t){const e=zi.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?ki(+e[5]):Mi(+e[5]));const o=Vi(+e[2]),a=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Ni(Oi,t,e,n)}(o,a,s):"hsv"===e[1]?function(t,e,n){return Ni(Ti,t,e,n)}(o,a,s):Fi(o,a,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Qi{constructor(t){if(t instanceof Qi)return t;const e=typeof t;let n;var i,o,a;"object"===e?n=Gi(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?o={r:255&17*Ai[i[1]],g:255&17*Ai[i[2]],b:255&17*Ai[i[3]],a:5===a?17*Ai[i[4]]:255}:7!==a&&9!==a||(o={r:Ai[i[1]]<<4|Ai[i[2]],g:Ai[i[3]]<<4|Ai[i[4]],b:Ai[i[5]]<<4|Ai[i[6]],a:9===a?Ai[i[7]]<<4|Ai[i[8]]:255})),n=o||function(t){ji||(ji=function(){const t={},e=Object.keys(Wi),n=Object.keys(Ri);let i,o,a,s,r;for(i=0;i<e.length;i++){for(s=r=e[i],o=0;o<n.length;o++)a=n[o],r=r.replace(a,Ri[a]);a=parseInt(Wi[s],16),t[r]=[a>>16&255,a>>8&255,255&a]}return t}(),ji.transparent=[0,0,0,0]);const e=ji[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Xi(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ui(this._rgb);return t&&(t.a=Si(t.a)),t}set rgb(t){this._rgb=Gi(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Si(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>Pi(t.r)&&Pi(t.g)&&Pi(t.b)&&Pi(t.a))(t)?Di:Ii,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Bi(t),n=e[0],i=Ci(e[1]),o=Ci(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${Si(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const a=e===o?.5:e,s=2*a-1,r=n.a-i.a,l=((s*r==-1?s:(s+r)/(1+s*r))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Zi(Si(t.r)),o=Zi(Si(t.g)),a=Zi(Si(t.b));return{r:Mi(Yi(i+n*(Zi(Si(e.r))-i))),g:Mi(Yi(o+n*(Zi(Si(e.g))-o))),b:Mi(Yi(a+n*(Zi(Si(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Qi(this.rgb)}alpha(t){return this._rgb.a=Mi(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=vi(.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 $i(this._rgb,2,t),this}darken(t){return $i(this._rgb,2,-t),this}saturate(t){return $i(this._rgb,1,t),this}desaturate(t){return $i(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Bi(t);n[0]=Vi(n[0]+e),n=Fi(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Ji(t){return new Qi(t)}function Ki(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function qi(t){return Ki(t)?t:Ji(t)}function to(t){return Ki(t)?t:Ji(t).saturate(.5).darken(.1).hexString()}const eo=Object.create(null),no=Object.create(null);function io(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function oo(t,e,n){return"string"==typeof e?Cn(io(t,e),n):Cn(io(t,""),e)}var ao=new class{constructor(t){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)=>to(e.backgroundColor),this.hoverBorderColor=(t,e)=>to(e.borderColor),this.hoverColor=(t,e)=>to(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)}set(t,e){return oo(this,t,e)}get(t){return io(this,t)}describe(t,e){return oo(no,t,e)}override(t,e){return oo(eo,t,e)}route(t,e,n,i){const o=io(this,t),a=io(this,n),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=a[i];return mn(t)?Object.assign({},e,t):_n(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function so(t,e,n,i,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,n.push(o)),a>i&&(i=a),i}function ro(t,e,n,i){let o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const r=n.length;let l,c,d,h,u;for(l=0;l<r;l++)if(h=n[l],null!=h&&!0!==gn(h))s=so(t,o,a,s,h);else if(gn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||gn(u)||(s=so(t,o,a,s,u));t.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[a[l]];a.splice(0,p)}return s}function lo(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function co(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ho(t,e,n,i){uo(t,e,n,i,null)}function uo(t,e,n,i,o){let a,s,r,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let g=(u||0)*Vn;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,Bn):t.arc(n,i,p,0,Bn),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(g)*p,i-Math.cos(g)*p),g+=jn,t.lineTo(n+Math.sin(g)*p,i-Math.cos(g)*p),g+=jn,t.lineTo(n+Math.sin(g)*p,i-Math.cos(g)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,s=Math.cos(g+Wn)*l,r=Math.sin(g+Wn)*l,t.arc(n-s,i-r,c,g-On,g-Rn),t.arc(n+r,i-s,c,g-Rn,g),t.arc(n+s,i+r,c,g,g+Rn),t.arc(n-r,i+s,c,g+Rn,g+On),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}g+=Wn;case"rectRot":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+r,i-s),t.lineTo(n+s,i+r),t.lineTo(n-r,i+s),t.closePath();break;case"crossRot":g+=Wn;case"cross":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s);break;case"star":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s),g+=Wn,s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s);break;case"line":s=o?o/2:Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(g)*p,i+Math.sin(g)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function po(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function go(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function mo(t){t.restore()}function fo(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function bo(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function _o(t,e,n,i,o,a={}){const s=gn(e)?e:[e],r=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),pn(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<s.length;++l)c=s[l],r&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),pn(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),xo(t,n,i,c,a),i+=o.lineHeight;t.restore()}function xo(t,e,n,i,o){if(o.strikethrough||o.underline){const a=t.measureText(i),s=e-a.actualBoundingBoxLeft,r=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(r,d),t.stroke()}}function yo(t,e){const{x:n,y:i,w:o,h:a,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,-Rn,On,!0),t.lineTo(n,i+a-s.bottomLeft),t.arc(n+s.bottomLeft,i+a-s.bottomLeft,s.bottomLeft,On,Rn,!0),t.lineTo(n+o-s.bottomRight,i+a),t.arc(n+o-s.bottomRight,i+a-s.bottomRight,s.bottomRight,Rn,0,!0),t.lineTo(n+o,i+s.topRight),t.arc(n+o-s.topRight,i+s.topRight,s.topRight,0,-Rn,!0),t.lineTo(n+s.topLeft,i)}const vo=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),wo=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ko(t,e){const n=(""+t).match(vo);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Mo(t,e){const n={},i=mn(e),o=i?Object.keys(e):e,a=mn(t)?i?n=>_n(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=+a(t)||0;return n}function So(t){return Mo(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(t){return Mo(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ao(t){const e=So(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Eo(t,e){t=t||{},e=e||ao.font;let n=_n(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=_n(t.style,e.style);i&&!(""+i).match(wo)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:_n(t.family,e.family),lineHeight:ko(_n(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:_n(t.weight,e.weight),string:""};return o.string=function(t){return!t||pn(t.size)||pn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Do(t,e,n,i){let o,a,s,r=!0;for(o=0,a=t.length;o<a;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),r=!1),void 0!==n&&gn(s)&&(s=s[n%s.length],r=!1),void 0!==s))return i&&!r&&(i.cacheable=!1),s}function Io(t,e){return Object.assign(Object.create(t),e)}function Po(t,e=[""],n=t,i,o=(()=>t[0])){zn(i)||(i=jo("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>Po([o,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Bo(n,i,(()=>function(t,e,n,i){let o;for(const a of e)if(o=jo(To(a,t),n),zn(o))return Oo(t,o)?Ro(n,i,t,o):o}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ho(t).includes(e),ownKeys:t=>Ho(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function zo(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Lo(t,i),setContext:e=>zo(t,e,n,i),override:o=>zo(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Bo(t,e,(()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t;let r=i[e];return Ln(r)&&s.isScriptable(e)&&(r=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:s,_stack:r}=n;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(a,s||i),r.delete(t),Oo(t,e)&&(e=Ro(o._scopes,o,t,e)),e}(e,r,t,n)),gn(r)&&r.length&&(r=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:s,_descriptors:r}=n;if(zn(a.index)&&i(t))e=e[a.index%e.length];else if(mn(e[0])){const n=e,i=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Ro(i,o,t,l);e.push(zo(n,a,s&&s[t],r))}}return e}(e,r,t,s.isIndexable)),Oo(e,r)&&(r=zo(r,o,a&&a[e],s)),r}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Lo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:Ln(n)?n:()=>n,isIndexable:Ln(i)?i:()=>i}}const To=(t,e)=>t?t+Pn(e):e,Oo=(t,e)=>mn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Bo(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function No(t,e,n){return Ln(t)?t(e,n):t}const Fo=(t,e)=>!0===t?e:"string"==typeof t?In(e,t):void 0;function Vo(t,e,n,i,o){for(const a of e){const e=Fo(n,a);if(e){t.add(e);const a=No(e._fallback,n,o);if(zn(a)&&a!==n&&a!==i)return a}else if(!1===e&&zn(i)&&n!==i)return null}return!1}function Ro(t,e,n,i){const o=e._rootScopes,a=No(e._fallback,n,i),s=[...t,...o],r=new Set;r.add(i);let l=Wo(r,s,n,a||n,i);return null!==l&&(!zn(a)||a===n||(l=Wo(r,s,a,l,i),null!==l))&&Po(Array.from(r),[""],o,a,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return gn(o)&&mn(n)?n:o}(e,n,i)))}function Wo(t,e,n,i,o){for(;n;)n=Vo(t,e,n,i,o);return n}function jo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(zn(e))return e}}function Ho(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Yo(t,e,n,i){const{iScale:o}=t,{key:a="r"}=this._parsing,s=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+n,d=e[c],s[r]={r:o.parse(In(d,a),c)};return s}const Zo=Number.EPSILON||1e-14,$o=(t,e)=>e<t.length&&!t[e].skip&&t[e],Uo=t=>"x"===t?"y":"x";function Go(t,e,n,i){const o=t.skip?e:t,a=e,s=n.skip?e:n,r=qn(a,o),l=qn(s,a);let c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:a.x-h*(s.x-o.x),y:a.y-h*(s.y-o.y)},next:{x:a.x+u*(s.x-o.x),y:a.y+u*(s.y-o.y)}}}function Xo(t,e,n){return Math.max(Math.min(t,n),e)}function Qo(t,e,n,i,o){let a,s,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=Uo(e),i=t.length,o=Array(i).fill(0),a=Array(i);let s,r,l,c=$o(t,0);for(s=0;s<i;++s)if(r=l,l=c,c=$o(t,s+1),l){if(c){const t=c[e]-l[e];o[s]=0!==t?(c[n]-l[n])/t:0}a[s]=r?c?Yn(o[s-1])!==Yn(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}!function(t,e,n){const i=t.length;let o,a,s,r,l,c=$o(t,0);for(let d=0;d<i-1;++d)l=c,c=$o(t,d+1),l&&c&&(Un(e[d],0,Zo)?n[d]=n[d+1]=0:(o=n[d]/e[d],a=n[d+1]/e[d],r=Math.pow(o,2)+Math.pow(a,2),r<=9||(s=3/Math.sqrt(r),n[d]=o*s*e[d],n[d+1]=a*s*e[d])))}(t,o,a),function(t,e,n="x"){const i=Uo(n),o=t.length;let a,s,r,l=$o(t,0);for(let c=0;c<o;++c){if(s=r,r=l,l=$o(t,c+1),!r)continue;const o=r[n],d=r[i];s&&(a=(o-s[n])/3,r[`cp1${n}`]=o-a,r[`cp1${i}`]=d-a*e[c]),l&&(a=(l[n]-o)/3,r[`cp2${n}`]=o+a,r[`cp2${i}`]=d+a*e[c])}}(t,a,e)}(t,o);else{let n=i?t[t.length-1]:t[0];for(a=0,s=t.length;a<s;++a)r=t[a],l=Go(n,r,t[Math.min(a+1,s-(i?0:1))%s],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,n=r}e.capBezierPoints&&function(t,e){let n,i,o,a,s,r=po(t[0],e);for(n=0,i=t.length;n<i;++n)s=a,a=r,r=n<i-1&&po(t[n+1],e),a&&(o=t[n],s&&(o.cp1x=Xo(o.cp1x,e.left,e.right),o.cp1y=Xo(o.cp1y,e.top,e.bottom)),r&&(o.cp2x=Xo(o.cp2x,e.left,e.right),o.cp2y=Xo(o.cp2y,e.top,e.bottom)))}(t,n)}function Jo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ko(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function qo(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const ta=t=>window.getComputedStyle(t,null),ea=["top","right","bottom","left"];function na(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=ea[o];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ia(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=ta(n),a="border-box"===o.boxSizing,s=na(o,"padding"),r=na(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:a}=i;let s,r,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,a,t.target))s=o,r=a;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,r=i.clientY-t.top,l=!0}return{x:s,y:r,box:l}}(t,n),h=s.left+(d&&r.left),u=s.top+(d&&r.top);let{width:p,height:g}=e;return a&&(p-=s.width+r.width,g-=s.height+r.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/g*n.height/i)}}const oa=t=>Math.round(10*t)/10;function aa(t,e,n){const i=e||1,o=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=o/i,t.width=a/i;const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==o||s.width!==a)&&(t.currentDevicePixelRatio=i,s.height=o,s.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const sa=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function ra(t,e){const n=function(t,e){return ta(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function la(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function ca(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function da(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},s=la(t,o,n),r=la(o,a,n),l=la(a,e,n),c=la(s,r,n),d=la(r,l,n);return la(c,d,n)}const ha=new Map;function ua(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ha.get(n);return i||(i=new Intl.NumberFormat(t,e),ha.set(n,i)),i}(e,n).format(t)}function pa(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function ga(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ma(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fa(t){return"angle"===t?{between:ni,compare:ti,normalize:ei}:{between:oi,compare:(t,e)=>t-e,normalize:t=>t}}function ba({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function _a(t,e,n){if(!n)return[t];const{property:i,start:o,end:a}=n,s=e.length,{compare:r,between:l,normalize:c}=fa(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:a}=n,{between:s,normalize:r}=fa(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&s(r(e[h%l][i]),o,a);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),g=[];let m,f,b,_=!1,x=null;for(let t=d,n=d;t<=h;++t)f=e[t%s],f.skip||(m=c(f[i]),m!==b&&(_=l(m,o,a),null===x&&(_||l(o,b,m)&&0!==r(o,b))&&(x=0===r(m,o)?t:n),null!==x&&(!_||0===r(a,m)||l(a,b,m))&&(g.push(ba({start:x,end:t,loop:u,count:s,style:p})),x=null),n=t,b=m));return null!==x&&g.push(ba({start:x,end:h,loop:u,count:s,style:p})),g}function xa(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ya(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var va=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach((i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=hi.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,s=o.length-1,r=!1;for(;s>=0;--s)a=o[s],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),r=!0):(o[s]=o[o.length-1],o.pop());r&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const wa="transparent",ka={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=qi(t||wa),o=i.valid&&qi(e||wa);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Ma{constructor(t,e,n,i){const o=e[n];i=Do([t.to,i,o,t.from]);const a=Do([t.from,o,i]);this._active=!0,this._fn=t.fn||ka[t.type||typeof a],this._easing=yi[t.easing]||yi.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=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Do([t.to,e,i,t.from]),this._from=Do([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let r;if(this._active=o!==s&&(a||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=o:(r=e/n%2,r=a&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[i]=this._fn(o,s,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}ao.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Sa=Object.keys(ao.animation);ao.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ao.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ao.describe("animations",{_fallback:"animation"}),ao.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}}}});class Ca{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!mn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!mn(i))return;const o={};for(const t of Sa)o[t]=i[t];(gn(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),s=Date.now();let r;for(r=a.length-1;r>=0;--r){const l=a[r];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,s);continue}d.cancel()}h&&h.duration?(o[l]=d=new Ma(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(va.add(this._chart,n),!0):void 0}}function Aa(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function Ea(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Da(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let s,r,l,c;if(null!==e){for(s=0,r=o.length;s<r;++s){if(l=+o[s],l===n){if(i.all)continue;break}c=t.values[l],fn(c)&&(a||0===e||Yn(e)===Yn(c))&&(e+=c)}return e}}function Ia(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Pa(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function za(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function La(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:r}=i,l=a.axis,c=s.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,s,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Pa(o,d,a),u[r]=h,u._top=za(u,s,!0,i.type),u._bottom=za(u,s,!1,i.type)}}function Ta(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Oa(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Ba=t=>"reset"===t||"none"===t,Na=(t,e)=>e?t:Object.assign({},t);class Fa{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.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ia(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Oa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=_n(n.xAxisID,Ta(t,"x")),a=e.yAxisID=_n(n.yAxisID,Ta(t,"y")),s=e.rAxisID=_n(n.rAxisID,Ta(t,"r")),r=e.indexAxis,l=e.iAxisID=i(r,o,a,s),c=e.vAxisID=i(r,a,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(s),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&&ci(this._data,this),t._stacked&&Oa(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(mn(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){ci(n,this);const t=this._cachedMeta;Oa(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),li.forEach((t=>{const e="_onData"+Pn(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),o}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Ia(e.vScale,e),e.stack!==n.stack&&(i=!0,Oa(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&La(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,s=o.axis;let r,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=gn(i[t])?this.parseArrayData(n,i,t,e):mn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[s]||h&&l[s]<h[s];for(r=0;r<e;++r)n._parsed[r+t]=l=c[r],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&La(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,s=o.axis,r=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[s]:c||o.parse(l[p],p),[r]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,s=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+n,d=e[c],s[r]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(In(u,s),h),y:a.parse(In(u,r),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return Da({keys:Ea(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,a=Da(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,s=this._getOtherScale(t),r=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ea(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(s);let h,u;function p(){u=i[h];const e=u[s.axis];return!fn(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,r),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],fn(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return mn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(_n(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Aa(t,n),o=Aa(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],s=this._drawStart||0,r=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,s,r),c=s;c<s+r;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return Io(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Io(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,s=o[a],r=this.enableOptionSharing&&zn(n);if(s)return Na(s,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(ao.elements[t]),p=l.resolveNamedOptions(h,u,(()=>this.getContext(n,i)),d);return p.$shared&&(p.$shared=r,o[a]=Object.freeze(Na(p,r))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,s=o[a];if(s)return s;let r;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);r=i.createResolver(a,this.getContext(t,n,e))}const l=new Ca(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ba(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Ba(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Ba(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let s;const r=t=>{for(t.length+=e,s=t.length-1;s>=a;s--)t[s]=t[s-e]};for(r(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&r(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Oa(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Va(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=di(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,o,a,s,r=e._length;const l=()=>{32767!==a&&-32768!==a&&(zn(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return r}function Ra(t,e,n,i){return gn(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),s=Math.min(o,a),r=Math.max(o,a);let l=s,c=r;Math.abs(s)>Math.abs(r)&&(l=r,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:s,max:r}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Wa(t,e,n,i){const o=t.iScale,a=t.vScale,s=o.getLabels(),r=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=r||o.parse(s[c],c),l.push(Ra(u,h,a,c));return l}function ja(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ha(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:r,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Ya(d,s,r,l)]=!0,o=c)),a[Ya(o,s,r,l)]=!0,t.borderSkipped=a}function Ya(t,e,n,i){var o,a,s;return i?(s=n,t=Za(t=(o=t)===(a=e)?s:o===s?a:o,n,e)):t=Za(t,e,n),t}function Za(t,e,n){return"start"===t?e:"end"===t?n:t}function $a(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Fa.defaults={},Fa.prototype.datasetElementType=null,Fa.prototype.dataElementType=null;class Ua extends Fa{parsePrimitiveData(t,e,n,i){return Wa(t,e,n,i)}parseArrayData(t,e,n,i){return Wa(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,l="x"===o.axis?s:r,c="x"===a.axis?s:r,d=[];let h,u,p,g;for(h=n,u=n+i;h<u;++h)g=e[h],p={},p[o.axis]=o.parse(In(g,l),h),d.push(Ra(In(g,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,s=ja(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}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,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:s}}=this,r=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||pn(e[s.axis])?{base:r,head:r}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),g=(e._stacks||{})[s.axis],m={horizontal:l,base:n.base,enableBorderRadius:!g||ja(e._custom)||a===g._top||a===g._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const f=m.options||t[u].options;Ha(m,f,g,a),$a(m,f,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,a=[],s=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(pn(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!s(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=t.barThickness;return{min:s||Va(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,s=this.getParsed(t),r=s._custom,l=ja(r);let c,d,h=s[e.axis],u=0,p=n?this.applyStack(e,s,n):h;p!==h&&(u=p-h,p=h),l&&(h=r.barStart,p=r.barEnd-r.barStart,0!==h&&Yn(h)!==Yn(r.barEnd)&&(u=0),u+=h);const g=pn(i)||l?u:i;let m=e.getPixelForValue(g);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Yn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),s=Math.max(t,n);m=Math.max(Math.min(m,s),i),c=m+d}if(m===e.getPixelForValue(a)){const t=Yn(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=_n(i.maxBarThickness,1/0);let s,r;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let s=t>0?o[t-1]:null,r=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===s&&(s=a-(null===r?e.end-e.start:r-a)),null===r&&(r=a+a-s);const c=a-(a-Math.min(s,r))/2*l;return{chunk:Math.abs(r-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,s;return pn(o)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=o*i,s=1),{chunk:a/i,ratio:s,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=l.start+l.chunk*c+l.chunk/2,r=Math.min(a,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),r=Math.min(a,e.min*e.ratio);return{base:s-r/2,head:s+r/2,center:s,size:r}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ua.id="bar",Ua.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ua.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ga extends Fa{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=_n(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=_n(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),s=i.getLabelForValue(o.y),r=o._custom;return{label:e.label,value:"("+a+", "+s+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=s.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),g=u[d]=o?s.getBasePixel():s.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=_n(n&&n._custom,o),i}}Ga.id="bubble",Ga.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Ga.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Xa extends Fa{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,s=t=>+n[t];if(mn(n[t])){const{key:t="value"}=this._parsing;s=e=>+In(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=s(o)}}_getRotation(){return Xn(this.options.rotation-90)}_getCircumference(){return Xn(this.options.circumference)}_getRotationExtents(){let t=Bn,e=-Bn;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-a)/2,0),r=Math.min((c=s,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:m,offsetY:f}=function(t,e,n){let i=1,o=1,a=0,s=0;if(e<Bn){const r=t,l=r+e,c=Math.cos(r),d=Math.sin(r),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>ni(t,r,l,!0)?1:Math.max(e,e*n,i,i*n),g=(t,e,i)=>ni(t,r,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),f=p(Rn,d,u),b=g(On,c,h),_=g(On+Rn,d,u);i=(m-b)/2,o=(f-_)/2,a=-(m+b)/2,s=-(f+_)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:s}}(u,h,r),b=(n.width-a)/p,_=(n.height-a)/g,x=Math.max(Math.min(b,_)/2,0),y=xn(this.options.radius,x),v=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=f*y,i.total=this.calculateTotal(),this.outerRadius=y-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Bn)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.chartArea,r=a.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,d=o&&r.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,i);let m,f=this._getRotation();for(m=0;m<e;++m)f+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:f,endAngle:f+e,circumference:e,outerRadius:u,innerRadius:h};g&&(a.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),f+=e,this.updateElement(n,m,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Bn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ua(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,s,r;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,s=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)r=s.resolveDataElementOptions(i),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(_n(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Xa.id="doughnut",Xa.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"},Xa.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Xa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return gn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Qa extends Fa{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:s,count:r}=mi(e,i,a);this._drawStart=s,this._drawCount=r,fi(e)&&(s=0,r=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,s,r,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=s.axis,{spanGaps:p,segment:g}=this.options,m=$n(p)?p:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),_=f?e:{},x=pn(n[u]),y=_[h]=a.getPixelForValue(n[h],p),v=_[u]=o||x?s.getBasePixel():s.getPixelForValue(r?this.applyStack(s,n,r):n[u],p);_.skip=isNaN(y)||isNaN(v)||x,_.stop=p>0&&Math.abs(n[h]-b[h])>m,g&&(_.parsed=n,_.raw=l.data[p]),d&&(_.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),f||this.updateElement(e,p,_,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Qa.id="line",Qa.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Qa.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ja extends Fa{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ua(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Yo.bind(this)(t,e,n,i)}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,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,d=r.getIndexAngle(0)-.5*On;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,g=u+this._computeAngle(h,i,p),m=a.getDataVisibility(h)?r.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=g,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=g=d));const f={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:g,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,f,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Xn(this.resolveDataElementOptions(t,e).angle||n):0}}Ja.id="polarArea",Ja.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ja.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ka extends Xa{}Ka.id="pie",Ka.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class qa extends Fa{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Yo.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),r=o.getPointPositionForValue(s,this.getParsed(s).r),l=a?o.xCenter:r.x,c=a?o.yCenter:r.y,d={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,s,d,i)}}}qa.id="radar",qa.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},qa.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ts{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return $n(this.x)&&$n(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}ts.defaults={},ts.defaultRoutes=void 0;const es={values:t=>gn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=Hn(Math.abs(a)),r=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ua(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Hn(t)));return 1===i||2===i||5===i?es.numeric.call(this,t,e,n):""}};var ns={formatters:es};function is(t,e,n,i,o){const a=_n(i,0),s=Math.min(_n(o,t.length),t.length);let r,l,c,d=0;for(n=Math.ceil(n),o&&(r=o-i,n=r/Math.floor(r/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<s;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}ao.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:ns.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ao.route("scale.ticks","color","","color"),ao.route("scale.grid","color","","borderColor"),ao.route("scale.grid","borderColor","","borderColor"),ao.route("scale.title","color","","color"),ao.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ao.describe("scales",{_fallback:"scale"}),ao.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const os=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function as(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function ss(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,s=t._endPixel,r=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-r||c>s+r)))return c}function rs(t){return t.drawTicks?t.tickLength:0}function ls(t,e){if(!t.display)return 0;const n=Eo(t.font,e),i=Ao(t.padding);return(gn(t.text)?t.text.length:1)*n.lineHeight+i.height}function cs(t,e,n){let i=pi(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class ds extends ts{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:n,_suggestedMax:i}=this;return t=bn(t,Number.POSITIVE_INFINITY),e=bn(e,Number.NEGATIVE_INFINITY),n=bn(n,Number.POSITIVE_INFINITY),i=bn(i,Number.NEGATIVE_INFINITY),{min:bn(t,n),max:bn(e,i),minDefined:fn(t),maxDefined:fn(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let r=0,l=s.length;r<l;++r)e=s[r].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:bn(n,bn(i,n)),max:bn(i,bn(n,i))}}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||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yn(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=xn(e,(o-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(a)),max:s(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=s<this.ticks.length;this._convertTicksToLabels(r?as(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],r=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,s=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),a++,s=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((r-s)/(a-1)):null;for(is(e,l,c,pn(i)?0:s-i,s),t=0,n=a-1;t<n;t++)is(e,l,c,o[t],o[t+1]);return is(e,l,c,r,pn(i)?e.length:r+i),l}return is(e,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){yn(this.options.afterUpdate,[this])}beforeSetDimensions(){yn(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(){yn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),yn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){yn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=yn(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){yn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){yn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,s,r,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=ii(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),s=this.maxHeight-rs(t.grid)-e.padding-ls(t.title,this.chart.options.font),r=Math.sqrt(d*d+h*h),l=Qn(Math.min(Math.asin(ii((c.highest.height+6)/a,-1,1)),Math.asin(ii(s/r,-1,1))-Math.asin(ii(h/r,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){yn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=ls(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=rs(o)+a):(t.height=this.maxHeight,t.width=rs(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),r=2*n.padding,l=Xn(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(s){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),s?(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,n,i){const{ticks:{align:o,padding:a},position:s}=this.options,r=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;r?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-s+a)*this.width/(this.width-s),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+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(){yn(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,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)pn(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=as(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let s,r,l,c,d,h,u,p,g,m,f,b=0,_=0;for(s=0;s<e;++s){if(c=t[s].label,d=this._resolveTickFontOptions(s),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,g=m=0,pn(c)||gn(c)){if(gn(c))for(r=0,l=c.length;r<l;++r)f=c[r],pn(f)||gn(f)||(g=so(n,u.data,u.gc,g,f),m+=p)}else g=so(n,u.data,u.gc,g,c),m=p;o.push(g),a.push(m),b=Math.max(g,b),_=Math.max(m,_)}!function(t,e){vn(t,(t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}}))}(i,e);const x=o.indexOf(b),y=a.indexOf(_),v=t=>({width:o[t]||0,height:a[t]||0});return{first:v(0),last:v(e-1),widest:v(x),highest:v(y),widths:o,heights:a}}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 ii(this._alignToPixels?lo(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 n=e[t];return n.$context||(n.$context=function(t,e,n){return Io(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Io(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Xn(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,r=o?o.highest.height+a:0;return this.isHorizontal()?r*n>s*i?s/n:r/i:r*i<s*n?r/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,s=o.offset,r=this.isHorizontal(),l=this.ticks.length+(s?1:0),c=rs(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,g=function(t){return lo(n,t,u)};let m,f,b,_,x,y,v,w,k,M,S,C;if("top"===a)m=g(this.bottom),y=this.bottom-c,w=m-p,M=g(t.top)+p,C=t.bottom;else if("bottom"===a)m=g(this.top),M=t.top,C=g(t.bottom)-p,y=m+p,w=this.top+c;else if("left"===a)m=g(this.right),x=this.right-c,v=m-p,k=g(t.left)+p,S=t.right;else if("right"===a)m=g(this.left),k=t.left,S=g(t.right)-p,x=m+p,v=this.left+c;else if("x"===e){if("center"===a)m=g((t.top+t.bottom)/2+.5);else if(mn(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,C=t.bottom,y=m+p,w=y+c}else if("y"===e){if("center"===a)m=g((t.left+t.right)/2);else if(mn(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-p,v=x-c,k=t.left,S=t.right}const A=_n(i.ticks.maxTicksLimit,l),E=Math.max(1,Math.ceil(l/A));for(f=0;f<l;f+=E){const t=o.setContext(this.getContext(f)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=ss(this,f,s),void 0!==b&&(_=lo(n,b,e),r?x=v=k=S=_:y=w=M=C=_,d.push({tx1:x,ty1:y,tx2:v,ty2:w,x1:k,y1:M,x2:S,y2:C,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),s=this.ticks,{align:r,crossAlign:l,padding:c,mirror:d}=o,h=rs(n.grid),u=h+c,p=d?-c:u,g=-Xn(this.labelRotation),m=[];let f,b,_,x,y,v,w,k,M,S,C,A,E="middle";if("top"===i)v=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)v=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("x"===e){if("center"===i)v=(t.top+t.bottom)/2+u;else if(mn(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)y=(t.left+t.right)/2-u;else if(mn(i)){const t=Object.keys(i)[0],e=i[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===r?E="top":"end"===r&&(E="bottom"));const D=this._getLabelSizes();for(f=0,b=s.length;f<b;++f){_=s[f],x=_.label;const t=o.setContext(this.getContext(f));k=this.getPixelForTick(f)+o.labelOffset,M=this._resolveTickFontOptions(f),S=M.lineHeight,C=gn(x)?x.length:1;const e=C/2,n=t.color,r=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(a?(y=k,"inner"===w&&(u=f===b-1?this.options.reverse?"left":"right":0===f?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===l||0!==g?-C*S+S/2:"center"===l?-D.highest.height/2-e*S+S:-D.highest.height+S/2:"near"===l||0!==g?S/2:"center"===l?D.highest.height/2-e*S:D.highest.height-C*S,d&&(A*=-1)):(v=k,A=(1-C)*S/2),t.showLabelBackdrop){const e=Ao(t.backdropPadding),n=D.heights[f],i=D.widths[f];let o=v+A-e.top,a=y-e.left;switch(E){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:g,label:x,font:M,color:n,strokeColor:r,strokeWidth:c,textOffset:A,textAlign:u,textBaseline:E,translation:[y,v],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Xn(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,s=this._getLabelSizes().widest.width;let r,l;return"left"===e?i?(l=this.right+o,"near"===n?r="left":"center"===n?(r="center",l+=s/2):(r="right",l+=s)):(l=this.right-a,"near"===n?r="right":"center"===n?(r="center",l-=s/2):(r="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?r="right":"center"===n?(r="center",l-=s/2):(r="left",l-=s)):(l=this.left+a,"near"===n?r="left":"center"===n?(r="center",l+=s/2):(r="right",l=this.right)):r="right",{textAlign:r,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:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({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:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let r,l,c,d;this.isHorizontal()?(r=lo(t,this.left,o)-o/2,l=lo(t,this.right,a)+a/2,c=d=s):(c=lo(t,this.top,o)-o/2,d=lo(t,this.bottom,a)+a/2,r=l=s),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(r,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&go(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),_o(e,a,0,t.textOffset,n,t)}n&&mo(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=Eo(n.font),a=Ao(n.padding),s=n.align;let r=o.lineHeight/2;"bottom"===e||"center"===e||mn(e)?(r+=a.bottom,gn(n.text)&&(r+=o.lineHeight*(n.text.length-1))):r+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:s,right:r,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,g=0;const m=s-o,f=r-a;if(t.isHorizontal()){if(u=gi(i,a,r),mn(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:os(t,n,e);h=r-a}else{if(mn(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-f+e}else u="center"===n?(c.left+c.right)/2-f+e:os(t,n,e);p=gi(i,s,o),g="left"===n?-Rn:Rn}return{titleX:u,titleY:p,maxWidth:h,rotation:g}}(this,r,e,s);_o(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:cs(s,e,i),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,n=_n(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ds.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return Eo(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hs{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=Cn(Object.create(null),[n?ao.get(n):{},ao.get(e),t.defaults]);ao.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),s=e[n].split("."),r=s.pop(),l=s.join(".");ao.route(a,o,l,r)}))}(e,t.defaultRoutes),t.descriptors&&ao.describe(e,t.descriptors)}(t,a,n),this.override&&ao.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in ao[i]&&(delete ao[i][n],this.override&&delete eo[n])}}var us=new class{constructor(){this.controllers=new hs(Fa,"datasets",!0),this.elements=new hs(ts,"elements"),this.plugins=new hs(Object,"plugins"),this.scales=new hs(ds,"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,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):vn(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Pn(t);yn(n["before"+i],[],n),e[t](n),yn(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class ps extends Fa{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=mi(e,n,i);if(this._drawStart=o,this._drawCount=a,fi(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:s},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=us.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:r,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=s.axis,{spanGaps:g,segment:m}=this.options,f=$n(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),g=b?e:{},x=pn(n[p]),y=g[u]=a.getPixelForValue(n[u],c),v=g[p]=o||x?s.getBasePixel():s.getPixelForValue(r?this.applyStack(s,n,r):n[p],c);g.skip=isNaN(y)||isNaN(v)||x,g.stop=c>0&&Math.abs(n[u]-_[u])>f,m&&(g.parsed=n,g.raw=l.data[c]),h&&(g.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,g,i),_=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function gs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}ps.id="scatter",ps.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ps.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ms{constructor(t){this.options=t||{}}init(t){}formats(){return gs()}parse(t,e){return gs()}format(t,e){return gs()}add(t,e,n){return gs()}diff(t,e,n){return gs()}startOf(t,e,n){return gs()}endOf(t,e){return gs()}}ms.override=function(t){Object.assign(ms.prototype,t)};var fs={_date:ms};function bs(t,e,n,i){const{controller:o,data:a,_sorted:s}=t,r=o._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&s&&a.length){const t=r._reversePixels?ri:si;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),s=t(a,e,n+o);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function _s(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:r}=a[t],{lo:l,hi:c}=bs(a[t],e,s,o);for(let t=l;t<=c;++t){const e=r[t];e.skip||i(e,n,t)}}}function xs(t,e,n,i,o){const a=[];return o||t.isPointInArea(e)?(_s(t,n,e,(function(n,s,r){(o||po(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:s,index:r})}),!0),a):a}function ys(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,o,a){let s=[];const r=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return _s(t,n,e,(function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!a&&!t.isPointInArea(u)&&!h)return;const p=r(e,u);p<l?(s=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:d})})),s}(t,e,n,i,o,a):function(t,e,n,i){let o=[];return _s(t,n,e,(function(t,n,a){const{startAngle:s,endAngle:r}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Kn(t,{x:e.x,y:e.y});ni(l,s,r)&&o.push({element:t,datasetIndex:n,index:a})})),o}(t,e,n,o):[]}function vs(t,e,n,i,o){const a=[],s="x"===n?"inXRange":"inYRange";let r=!1;return _s(t,n,e,((t,i,l)=>{t[s](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),r=r||t.inRange(e.x,e.y,o))})),i&&!r?[]:a}var ws={evaluateInteractionItems:_s,modes:{index(t,e,n,i){const o=ia(e,t),a=n.axis||"x",s=n.includeInvisible||!1,r=n.intersect?xs(t,o,a,i,s):ys(t,o,a,!1,i,s),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const o=ia(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let r=n.intersect?xs(t,o,a,i,s):ys(t,o,a,!1,i,s);if(r.length>0){const e=r[0].datasetIndex,n=t.getDatasetMeta(e).data;r=[];for(let t=0;t<n.length;++t)r.push({element:n[t],datasetIndex:e,index:t})}return r},point:(t,e,n,i)=>xs(t,ia(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=ia(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return ys(t,o,a,n.intersect,i,s)},x:(t,e,n,i)=>vs(t,ia(e,t),"x",n.intersect,i),y:(t,e,n,i)=>vs(t,ia(e,t),"y",n.intersect,i)}};const ks=["left","top","right","bottom"];function Ms(t,e){return t.filter((t=>t.pos===e))}function Ss(t,e){return t.filter((t=>-1===ks.indexOf(t.pos)&&t.box.axis===e))}function Cs(t,e){return t.sort(((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function As(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Es(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 Ds(t,e,n,i){const{pos:o,box:a}=n,s=t.maxPadding;if(!mn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Es(s,a.getPadding());const r=Math.max(0,e.outerWidth-As(s,t,"left","right")),l=Math.max(0,e.outerHeight-As(s,t,"top","bottom")),c=r!==t.w,d=l!==t.h;return t.w=r,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Is(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function Ps(t,e,n,i){const o=[];let a,s,r,l,c,d;for(a=0,s=t.length,c=0;a<s;++a){r=t[a],l=r.box,l.update(r.width||e.w,r.height||e.h,Is(r.horizontal,e));const{same:s,other:h}=Ds(e,n,r,i);c|=s&&o.length,d=d||h,l.fullSize||o.push(r)}return c&&Ps(o,e,n,i)||d}function zs(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ls(t,e,n,i){const o=n.padding;let{x:a,y:s}=e;for(const r of t){const t=r.box,l=i[r.stack]||{count:1,placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const i=e.w*c,a=l.size||t.height;zn(l.start)&&(s=l.start),t.fullSize?zs(t,o.left,s,n.outerWidth-o.right-o.left,a):zs(t,e.left+l.placed,s,i,a),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;zn(l.start)&&(a=l.start),t.fullSize?zs(t,a,o.top,s,n.outerHeight-o.bottom-o.top):zs(t,a,e.top+l.placed,s,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=s}ao.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ts={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 n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=Ao(t.options.layout.padding),a=Math.max(e-o.width,0),s=Math.max(n-o.height,0),r=function(t){const e=function(t){const e=[];let n,i,o,a,s,r;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:s,stackWeight:r=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&a+s,stackWeight:r});return e}(t),n=Cs(e.filter((t=>t.box.fullSize)),!0),i=Cs(Ms(e,"left"),!0),o=Cs(Ms(e,"right")),a=Cs(Ms(e,"top"),!0),s=Cs(Ms(e,"bottom")),r=Ss(e,"x"),l=Ss(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(s).concat(r),chartArea:Ms(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(s).concat(r)}}(t.boxes),l=r.vertical,c=r.horizontal;vn(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/d,hBoxMaxHeight:s/2}),u=Object.assign({},o);Es(u,Ao(i));const p=Object.assign({maxPadding:u,w:a,h:s,x:o.left,y:o.top},o),g=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!ks.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,s,r;for(a=0,s=t.length;a<s;++a){r=t[a];const{fullSize:s}=r.box,l=n[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*i:s&&e.availableWidth,r.height=o):(r.width=i,r.height=c?c*o:s&&e.availableHeight)}return n}(l.concat(c),h);Ps(r.fullSize,p,h,g),Ps(l,p,h,g),Ps(c,p,h,g)&&Ps(l,p,h,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ls(r.leftAndTop,p,h,g),p.x+=p.w,p.y+=p.h,Ls(r.rightAndBottom,p,h,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},vn(r.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Os{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Bs extends Os{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ns="$chartjs",Fs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vs=t=>null===t||""===t,Rs=!!sa&&{passive:!0};function Ws(t,e,n){t.canvas.removeEventListener(e,n,Rs)}function js(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Hs(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||js(n.addedNodes,i),e=e&&!js(n.removedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Ys(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||js(n.removedNodes,i),e=e&&!js(n.addedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Zs=new Map;let $s=0;function Us(){const t=window.devicePixelRatio;t!==$s&&($s=t,Zs.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Gs(t,e,n){const i=t.canvas,o=i&&Ko(i);if(!o)return;const a=ui(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)}));return s.observe(o),function(t,e){Zs.size||window.addEventListener("resize",Us),Zs.set(t,e)}(t,a),s}function Xs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Zs.delete(t),Zs.size||window.removeEventListener("resize",Us)}(t)}function Qs(t,e,n){const i=t.canvas,o=ui((e=>{null!==t.ctx&&n(function(t,e){const n=Fs[t.type]||t.type,{x:i,y:o}=ia(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,Rs)}(i,e,o),o}class Js extends Os{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ns]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vs(o)){const e=ra(t,"width");void 0!==e&&(t.width=e)}if(Vs(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ra(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ns])return!1;const n=e[Ns].initial;["height","width"].forEach((t=>{const i=n[t];pn(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ns],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Hs,detach:Ys,resize:Gs}[e]||Qs;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Xs,detach:Xs,resize:Xs}[e]||Ws)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const o=ta(t),a=na(o,"margin"),s=qo(o.maxWidth,t,"clientWidth")||Fn,r=qo(o.maxHeight,t,"clientHeight")||Fn,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const a=Ko(t);if(a){const t=a.getBoundingClientRect(),s=ta(a),r=na(s,"border","width"),l=na(s,"padding");e=t.width-l.width-r.width,n=t.height-l.height-r.height,i=qo(s.maxWidth,a,"clientWidth"),o=qo(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Fn,maxHeight:o||Fn}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=na(o,"border","width"),e=na(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,i?Math.floor(c/i):d-a.height),c=oa(Math.min(c,s,l.maxWidth)),d=oa(Math.min(d,r,l.maxHeight)),c&&!d&&(d=oa(c/2)),{width:c,height:d}}(t,e,n,i)}isAttached(t){const e=Ko(t);return!(!e||!e.isConnected)}}class Ks{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===yn(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){pn(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 n=t&&t.config,i=_n(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(us.plugins.items);for(let t=0;t<i.length;t++)n.push(us.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],s=t.getContext();for(const r of e){const e=r.id,l=qs(i[e],o);null!==l&&a.push({plugin:r,options:tr(t.config,{plugin:r,local:n[e]},l,s)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function qs(t,e){return e||!1!==t?!0===t?{}:t:null}function tr(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),s=t.getOptionScopes(i,a);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function er(t,e){const n=ao.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function nr(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function ir(t){const e=t.options||(t.options={});e.plugins=_n(e.plugins,{}),e.scales=function(t,e){const n=eo[t.type]||{scales:{}},i=e.scales||{},o=er(t.type,e),a=Object.create(null),s=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!mn(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const r=nr(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(r,o),c=n.scales||{};a[r]=a[r]||t,s[t]=An(Object.create(null),[{axis:r},e,c[r],c[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,r=n.indexAxis||er(o,e),l=(eo[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,r),o=n[e+"AxisID"]||a[e]||e;s[o]=s[o]||Object.create(null),An(s[o],[{axis:e},i[o],l[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];An(e,[ao.scales[e.type],ao.scale])})),s}(t,e)}function or(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ar=new Map,sr=new Set;function rr(t,e){let n=ar.get(t);return n||(n=e(),ar.set(t,n),sr.add(n)),n}const lr=(t,e,n)=>{const i=In(e,n);void 0!==i&&t.add(i)};class cr{constructor(t){this._config=function(t){return(t=t||{}).data=or(t.data),ir(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=or(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(),ir(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rr(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return rr(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return rr(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return rr(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),s=a.get(e);if(s)return s;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>lr(r,t,e)))),e.forEach((t=>lr(r,i,t))),e.forEach((t=>lr(r,eo[o]||{},t))),e.forEach((t=>lr(r,ao,t))),e.forEach((t=>lr(r,no,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),sr.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,eo[e]||{},ao.datasets[e]||{},{type:e},ao,no]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=dr(this._resolverCache,t,i);let r=a;(function(t,e){const{isScriptable:n,isIndexable:i}=Lo(t);for(const o of e){const e=n(o),a=i(o),s=(a||e)&&t[o];if(e&&(Ln(s)||hr(s))||a&&gn(s))return!0}return!1})(a,e)&&(o.$shared=!1,r=zo(a,n=Ln(n)?n():n,this.createResolver(t,n,s)));for(const t of e)o[t]=r[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=dr(this._resolverCache,t,n);return mn(e)?zo(o,e,void 0,i):o}}function dr(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);return a||(a={resolver:Po(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,a)),a}const hr=t=>mn(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||Ln(t[n])),!1),ur=["top","bottom","left","right","chartArea"];function pr(t,e){return"top"===t||"bottom"===t||-1===ur.indexOf(t)&&"x"===e}function gr(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function mr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),yn(n&&n.onComplete,[t],e)}function fr(t){const e=t.chart,n=e.options.animation;yn(n&&n.onProgress,[t],e)}function br(t){return Jo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _r={},xr=t=>{const e=br(t);return Object.values(_r).filter((t=>t.canvas===e)).pop()};function yr(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class vr{constructor(t,e){const n=this.config=new cr(e),i=br(t),o=xr(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Jo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bs:Js}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,a.aspectRatio),r=s&&s.canvas,l=r&&r.height,c=r&&r.width;this.id=un(),this.ctx=s,this.canvas=r,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 Ks,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],_r[this.id]=this,s&&r?(va.listen(this,"complete",mr),va.listen(this,"progress",fr),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:n,height:i,_aspectRatio:o}=this;return pn(t)?e&&o?o:i?n/i: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}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():aa(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return co(this.canvas,this.ctx),this}stop(){return va.stop(this),this}resize(t,e){va.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,aa(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),yn(n.onResize,[this,a],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){vn(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=nr(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}})))),vn(o,(e=>{const o=e.options,a=o.id,s=nr(a,o),r=_n(o.type,e.dtype);void 0!==o.position&&pr(o.position,s)===pr(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;a in n&&n[a].type===r?l=n[a]:(l=new(us.getScale(r))({id:a,type:r,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,t)})),vn(i,((t,e)=>{t||delete n[e]})),vn(n,(t=>{Ts.configure(this,t,t.options),Ts.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(gr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||er(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=us.getController(a),{datasetElementType:i,dataElementType:s}=ao.datasets[a];Object.assign(e.prototype,{dataElementType:us.getElement(s),datasetElementType:i&&us.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){vn(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=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),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||vn(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(gr("z","_idx"));const{_active:s,_lastEvent:r}=this;r?this._eventHandler(r,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){vn(this.scales,(t=>{Ts.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Tn(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e)yr(t,i,"_removeElements"===n?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!Tn(i,n(t)))return;return Array.from(i).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;Ts.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],vn(this.boxes,(t=>{n&&"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,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Ln(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(va.has(this)?this.attached&&!va.running(this)&&va.start(this):(this.draw(),mr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}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,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}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,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&go(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&mo(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return po(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=ws.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=Io(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.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,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);zn(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i: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(),va.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(),co(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete _r[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};vn(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():a()}unbindEvents(){vn(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},vn(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,s,r;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,r=t.length;s<r;++s){a=t[s];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!wn(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=o(e,t),s=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,s=this._getActiveElements(t,i,n,a),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,r);n&&(this._lastEvent=null,yn(o.onHover,[t,s,this],this),r&&yn(o.onClick,[t,s,this],this));const c=!wn(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const wr=()=>vn(vr.instances,(t=>t._plugins.invalidate())),kr=!0;function Mr(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:s,outerRadius:r,innerRadius:l}=e;let c=o/r;t.beginPath(),t.arc(a,s,r,i-c,n+c),l>o?(c=o/l,t.arc(a,s,l,n+c,i-c,!0)):t.arc(a,s,o,n+Rn,i-Rn),t.closePath(),t.clip()}function Sr(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Cr(t,e,n,i,o,a){const{x:s,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const g=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(g-(0!==t?g*t/(t+i):g))/2}const m=(g-Math.max(.001,g*h-n/On)/h)/2,f=l+m+p,b=o-m-p,{outerStart:_,outerEnd:x,innerStart:y,innerEnd:v}=function(t,e,n,i){const o=Mo(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-e)/2,s=Math.min(a,i*e/2),r=t=>{const e=(n-Math.min(a,t))*i/2;return ii(t,0,Math.min(a,e))};return{outerStart:r(o.outerStart),outerEnd:r(o.outerEnd),innerStart:ii(o.innerStart,0,s),innerEnd:ii(o.innerEnd,0,s)}}(e,u,h,b-f),w=h-_,k=h-x,M=f+_/w,S=b-x/k,C=u+y,A=u+v,E=f+y/C,D=b-v/A;if(t.beginPath(),a){if(t.arc(s,r,h,M,S),x>0){const e=Sr(k,S,s,r);t.arc(e.x,e.y,x,S,b+Rn)}const e=Sr(A,b,s,r);if(t.lineTo(e.x,e.y),v>0){const e=Sr(A,D,s,r);t.arc(e.x,e.y,v,b+Rn,D+Math.PI)}if(t.arc(s,r,u,b-v/u,f+y/u,!0),y>0){const e=Sr(C,E,s,r);t.arc(e.x,e.y,y,E+Math.PI,f-Rn)}const n=Sr(w,f,s,r);if(t.lineTo(n.x,n.y),_>0){const e=Sr(w,M,s,r);t.arc(e.x,e.y,_,f-Rn,M)}}else{t.moveTo(s,r);const e=Math.cos(M)*h+s,n=Math.sin(M)*h+r;t.lineTo(e,n);const i=Math.cos(S)*h+s,o=Math.sin(S)*h+r;t.lineTo(i,o)}t.closePath()}Object.defineProperties(vr,{defaults:{enumerable:kr,value:ao},instances:{enumerable:kr,value:_r},overrides:{enumerable:kr,value:eo},registry:{enumerable:kr,value:us},version:{enumerable:kr,value:"3.9.1"},getChart:{enumerable:kr,value:xr},register:{enumerable:kr,value:(...t)=>{us.add(...t),wr()}},unregister:{enumerable:kr,value:(...t)=>{us.remove(...t),wr()}}});class Ar extends ts{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Kn(i,{x:t,y:e}),{startAngle:s,endAngle:r,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=_n(d,r-s)>=Bn||ni(o,s,r),p=oi(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,c=(i+o)/2,d=(a+s+l+r)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Bn?Math.floor(n/Bn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let s=0;if(i){s=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*s,Math.sin(e)*s),this.circumference>=On&&(s=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,n,i,o){const{fullCircles:a,startAngle:s,circumference:r}=e;let l=e.endAngle;if(a){Cr(t,e,n,i,s+Bn,o);for(let e=0;e<a;++e)t.fill();isNaN(r)||(l=s+r%Bn,r%Bn==0&&(l+=Bn))}return Cr(t,e,n,i,l,o),t.fill(),l}(t,this,s,o,a);(function(t,e,n,i,o,a){const{options:s}=e,{borderWidth:r,borderJoinStyle:l}=s,c="inner"===s.borderAlign;r&&(c?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:s,fullCircles:r}=e,l=Math.max(e.outerRadius-s,0),c=e.innerRadius+s;let d;for(n&&Mr(t,e,a+Bn),t.beginPath(),t.arc(i,o,c,a+Bn,a,!0),d=0;d<r;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+Bn),d=0;d<r;++d)t.stroke()}(t,e,c),c&&Mr(t,e,o),Cr(t,e,n,i,o,a),t.stroke())})(t,this,s,o,r,a),t.restore()}}function Er(t,e,n=e){t.lineCap=_n(n.borderCapStyle,e.borderCapStyle),t.setLineDash(_n(n.borderDash,e.borderDash)),t.lineDashOffset=_n(n.borderDashOffset,e.borderDashOffset),t.lineJoin=_n(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=_n(n.borderWidth,e.borderWidth),t.strokeStyle=_n(n.borderColor,e.borderColor)}function Dr(t,e,n){t.lineTo(n.x,n.y)}function Ir(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:s,end:r}=e,l=Math.max(o,s),c=Math.min(a,r),d=o<s&&a<s||o>r&&a>r;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Pr(t,e,n,i){const{points:o,options:a}=e,{count:s,start:r,loop:l,ilen:c}=Ir(o,n,i),d=function(t){return t.stepped?fo:t.tension||"monotone"===t.cubicInterpolationMode?bo:Dr}(a);let h,u,p,{move:g=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(r+(m?c-h:h))%s],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):d(t,p,u,m,a.stepped),p=u);return l&&(u=o[(r+(m?c:0))%s],d(t,p,u,m,a.stepped)),!!l}function zr(t,e,n,i){const o=e.points,{count:a,start:s,ilen:r}=Ir(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,g,m,f=0,b=0;const _=t=>(s+(c?r-t:t))%a,x=()=>{p!==g&&(t.lineTo(f,g),t.lineTo(f,p),t.lineTo(f,m))};for(l&&(h=o[_(0)],t.moveTo(h.x,h.y)),d=0;d<=r;++d){if(h=o[_(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>g&&(g=n),f=(b*f+e)/++b):(x(),t.lineTo(e,n),u=i,b=0,p=g=n),m=n}x()}function Lr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?Pr:zr}Ar.id="arc",Ar.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ar.defaultRoutes={backgroundColor:"backgroundColor"};const Tr="function"==typeof Path2D;class Or extends ts{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Qo(this._points,n,t,i,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 n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:s,end:r}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return function(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),a=xa(t.options),{_datasetIndex:s,options:{spanGaps:r}}=t,l=n.length,c=[];let d=a,h=e[0].start,u=h;function p(t,e,i,o){const a=r?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=r?h:t.start;let e,a=n[h%l];for(u=h+1;u<=t.end;u++){const r=n[u%l];e=xa(i.setContext(Io(o,{type:"segment",p0:a,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:s}))),ya(e,d)&&p(h,u-1,t.loop,d),a=r,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}(t,!0===i?[{start:s,end:r,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let s,r=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(s-1)%o,loop:i}),e=r=n.stop?s:null):(r=s,l.skip&&(e=s)),l=n}return null!==r&&a.push({start:e%o,end:r%o,loop:i}),a}(n,s,r<s?r+o:r,!!t._fullLoop&&0===s&&r===o-1),n,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,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=function(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const a=_a(i[o],t.points,e);a.length&&n.push(...a)}return n}(this,{property:e,start:i,end:i});if(!a.length)return;const s=[],r=function(t){return t.stepped?ca:t.tension||"monotone"===t.cubicInterpolationMode?da:la}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){s.push(h);continue}const p=r(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],s.push(p)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return Lr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Lr(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)a&=o(t,this,s,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),function(t,e,n,i){Tr&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Er(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,s=Lr(e);for(const r of o)Er(t,a,r.style),t.beginPath(),s(t,e,r,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Br(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Or.id="line",Or.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Or.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Or.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Nr extends ts{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,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Br(this,t,"x",e)}inYRange(t,e){return Br(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}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 n=this.options;this.skip||n.radius<.1||!po(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,ho(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Fr(t,e){const{x:n,y:i,base:o,width:a,height:s}=t.getProps(["x","y","base","width","height"],e);let r,l,c,d,h;return t.horizontal?(h=s/2,r=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,r=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:r,top:c,right:l,bottom:d}}function Vr(t,e,n,i){return t?0:ii(e,n,i)}function Rr(t,e,n,i){const o=null===e,a=null===n,s=t&&!(o&&a)&&Fr(t,i);return s&&(o||oi(e,s.left,s.right))&&(a||oi(n,s.top,s.bottom))}function Wr(t,e){t.rect(e.x,e.y,e.w,e.h)}function jr(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+s,radius:t.radius}}Nr.id="point",Nr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Nr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Hr extends ts{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:n,backgroundColor:i}}=this,{inner:o,outer:a}=function(t){const e=Fr(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=So(i);return{t:Vr(o.top,a.top,0,n),r:Vr(o.right,a.right,0,e),b:Vr(o.bottom,a.bottom,0,n),l:Vr(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=Co(o),s=Math.min(e,n),r=t.borderSkipped,l=i||mn(o);return{topLeft:Vr(!l||r.top||r.left,a.topLeft,0,s),topRight:Vr(!l||r.top||r.right,a.topRight,0,s),bottomLeft:Vr(!l||r.bottom||r.left,a.bottomLeft,0,s),bottomRight:Vr(!l||r.bottom||r.right,a.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}(this),s=(r=a.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?yo:Wr;var r;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),s(t,jr(a,e,o)),t.clip(),s(t,jr(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,jr(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Rr(this,t,e,n)}inXRange(t,e){return Rr(this,t,null,e)}inYRange(t,e){return Rr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Hr.id="bar",Hr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Hr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const Yr=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class Zr extends ts{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=yn(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,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 n=t.labels,i=Eo(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:r}=Yr(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,s,r)+10):(c=this.maxHeight,l=this._fitCols(a,o,s,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach(((t,p)=>{const g=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+g+2*s>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),r[p]={left:0,top:u,row:h,width:g,height:i},l[l.length-1]+=g+s})),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=s,h=0,u=0,p=0,g=0;return this.legendItems.forEach(((t,a)=>{const m=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*s>c&&(d+=h+s,l.push({width:h,height:u}),p+=h+s,g++,h=u=0),r[a]={left:p,top:u,col:g,width:m,height:i},h=Math.max(h,m),u+=i+s})),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=pa(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=gi(n,this.left+i,this.right-this.lineWidths[o]);for(const r of e)o!==r.row&&(o=r.row,s=gi(n,this.left+i,this.right-this.lineWidths[o])),r.top+=this.top+t+i,r.left=a.leftForLtr(a.x(s),r.width),s+=r.width+i}else{let o=0,s=gi(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const r of e)r.col!==o&&(o=r.col,s=gi(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),r.top=s,r.left+=this.left+i,r.left=a.leftForLtr(a.x(r.left),r.width),s+=r.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;go(t,this),this._draw(),mo(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,s=ao.color,r=pa(t.rtl,this.left,this.width),l=Eo(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=r.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:g,boxHeight:m,itemHeight:f}=Yr(a,h),b=this.isHorizontal(),_=this._computeTitleHeight();p=b?{x:gi(o,this.left+d,this.right-n[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:gi(o,this.top+_+d,this.bottom-e[0].height),line:0},ga(this.ctx,t.textDirection);const x=f+d;this.legendItems.forEach(((y,v)=>{i.strokeStyle=y.fontColor||c,i.fillStyle=y.fontColor||c;const w=i.measureText(y.text).width,k=r.textAlign(y.textAlign||(y.textAlign=a.textAlign)),M=g+u+w;let S=p.x,C=p.y;r.setWidth(this.width),b?v>0&&S+M+d>this.right&&(C=p.y+=x,p.line++,S=p.x=gi(o,this.left+d,this.right-n[p.line])):v>0&&C+x>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,C=p.y=gi(o,this.top+_+d,this.bottom-e[p.line].height)),function(t,e,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const o=_n(n.lineWidth,1);if(i.fillStyle=_n(n.fillStyle,s),i.lineCap=_n(n.lineCap,"butt"),i.lineDashOffset=_n(n.lineDashOffset,0),i.lineJoin=_n(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=_n(n.strokeStyle,s),i.setLineDash(_n(n.lineDash,[])),a.usePointStyle){const s={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=r.xPlus(t,g/2);uo(i,s,l,e+u,a.pointStyleWidth&&g)}else{const a=e+Math.max((h-m)/2,0),s=r.leftForLtr(t,g),l=Co(n.borderRadius);i.beginPath(),Object.values(l).some((t=>0!==t))?yo(i,{x:s,y:a,w:g,h:m,radius:l}):i.rect(s,a,g,m),i.fill(),0!==o&&i.stroke()}i.restore()}(r.x(S),C,y),S=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,S+g+u,b?S+M:this.right,t.rtl),function(t,e,n){_o(i,n.text,t,e+f/2,l,{strikethrough:n.hidden,textAlign:r.textAlign(n.textAlign)})}(r.x(S),C,y),b?p.x+=M+d:p.y+=x})),ma(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Eo(e.font),i=Ao(e.padding);if(!e.display)return;const o=pa(t.rtl,this.left,this.width),a=this.ctx,s=e.position,r=n.size/2,l=i.top+r;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=gi(t.align,d,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+gi(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=gi(s,d,d+h);a.textAlign=o.textAlign(pi(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,_o(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=Eo(t.font),n=Ao(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(oi(t,this.left,this.right)&&oi(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],oi(t,i.left,i.left+i.width)&&oi(e,i.top,i.top+i.height))return this.legendItems[n];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 n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,s=(o=n,null!==(i=a)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);a&&!s&&yn(e.onLeave,[t,a,this],this),this._hoveredItem=n,n&&!s&&yn(e.onHover,[t,n,this],this)}else n&&yn(e.onClick,[t,n,this],this);var i,o}}var $r={id:"legend",_element:Zr,start(t,e,n){const i=t.legend=new Zr({ctx:t.ctx,options:n,chart:t});Ts.configure(t,i,n),Ts.addBox(t,i)},stop(t){Ts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ts.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const s=t.controller.getStyle(n?0:void 0),r=Ao(s.borderWidth);return{text:e[t.index].label,fillStyle:s.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:s.borderColor,pointStyle:i||s.pointStyle,rotation:s.rotation,textAlign:o||s.textAlign,borderRadius:0,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 Ur extends ts{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 n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=gn(n.text)?n.text.length:1;this._padding=Ao(n.padding);const o=i*Eo(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:o,options:a}=this,s=a.align;let r,l,c,d=0;return this.isHorizontal()?(l=gi(s,n,o),c=e+t,r=o-n):("left"===a.position?(l=n+t,c=gi(s,i,e),d=-.5*On):(l=o-t,c=gi(s,e,i),d=.5*On),r=i-e),{titleX:l,titleY:c,maxWidth:r,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Eo(e.font),i=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:r}=this._drawArgs(i);_o(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:r,textAlign:pi(e.align),textBaseline:"middle",translation:[o,a]})}}var Gr={id:"title",_element:Ur,start(t,e,n){!function(t,e){const n=new Ur({ctx:t.ctx,options:e,chart:t});Ts.configure(t,n,e),Ts.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Ts.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;Ts.configure(t,i,n),i.options=n},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}};new WeakMap;const Xr={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,s=e.y,r=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=qn(e,i.getCenterPoint());t<r&&(r=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function Qr(t,e){return e&&(gn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Jr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Kr(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:s,value:r}=a.getLabelAndValue(o);return{chart:t,label:s,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:r,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function qr(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:s,boxHeight:r}=e,l=Eo(e.bodyFont),c=Eo(e.titleFont),d=Eo(e.footerFont),h=a.length,u=o.length,p=i.length,g=Ao(e.padding);let m=g.height,f=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b&&(m+=p*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing),u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let _=0;const x=function(t){f=Math.max(f,n.measureText(t).width+_)};return n.save(),n.font=c.string,vn(t.title,x),n.font=l.string,vn(t.beforeBody.concat(t.afterBody),x),_=e.displayColors?s+2+e.boxPadding:0,vn(i,(t=>{vn(t.before,x),vn(t.lines,x),vn(t.after,x)})),_=0,n.font=d.string,vn(t.footer,x),n.restore(),f+=g.width,{width:f,height:m}}function tl(t,e,n,i){const{x:o,width:a}=n,{width:s,chartArea:{left:r,right:l}}=t;let c="center";return"center"===i?c=o<=(r+l)/2?"left":"right":o<=a/2?c="left":o>=s-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,s=n.caretSize+n.caretPadding;return"left"===t&&o+a+s>e.width||"right"===t&&o-a-s<0||void 0}(c,t,e,n)&&(c="center"),c}function el(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||tl(t,e,n,i),yAlign:i}}function nl(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:s}=t,{xAlign:r,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Co(s);let g=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,r);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===r?g+=c:"right"===r&&(g-=c):"left"===r?g-=Math.max(d,u)+o:"right"===r&&(g+=Math.max(h,p)+o),{x:ii(g,0,i.width-e.width),y:ii(m,0,i.height-e.height)}}function il(t,e,n){const i=Ao(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function al(t){return Qr([],Jr(t))}function sl(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class rl extends ts{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||t._chart,this._chart=this.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,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new Ca(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(this,Io(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let s=[];return s=Qr(s,Jr(i)),s=Qr(s,Jr(o)),s=Qr(s,Jr(a)),s}getBeforeBody(t,e){return al(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return vn(t,(t=>{const e={before:[],lines:[],after:[]},o=sl(n,t);Qr(e.before,Jr(o.beforeLabel.call(this,t))),Qr(e.lines,o.label.call(this,t)),Qr(e.after,Jr(o.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return al(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let s=[];return s=Qr(s,Jr(i)),s=Qr(s,Jr(o)),s=Qr(s,Jr(a)),s}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let s,r,l=[];for(s=0,r=e.length;s<r;++s)l.push(Kr(this.chart,e[s]));return t.filter&&(l=l.filter(((e,i,o)=>t.filter(e,i,o,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),vn(l,(e=>{const n=sl(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=Xr[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=qr(this,n),s=Object.assign({},t,e),r=el(this.chart,n,s),l=nl(n,s,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:d}=Co(s),{x:h,y:u}=t,{width:p,height:g}=e;let m,f,b,_,x,y;return"center"===o?(x=u+g/2,"left"===i?(m=h,f=m-a,_=x+a,y=x-a):(m=h+p,f=m+a,_=x-a,y=x+a),b=m):(f="left"===i?h+Math.max(r,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(_=u,x=_-a,m=f-a,b=f+a):(_=u+g,x=_+a,m=f+a,b=f-a),y=_),{x1:m,x2:f,x3:b,y1:_,y2:x,y3:y}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,s,r;if(o){const l=pa(n.rtl,this.x,this.width);for(t.x=il(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=Eo(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,r+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:r,boxWidth:l,boxPadding:c}=o,d=Eo(o.bodyFont),h=il(this,"left",o),u=i.x(h),p=r<d.lineHeight?(d.lineHeight-r)/2:0,g=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,r)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=g+r/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,ho(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,ho(t,e,n,c)}else{t.lineWidth=mn(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=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),s=Co(a.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,yo(t,{x:e,y:g,w:l,h:r,radius:s}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),yo(t,{x:n,y:g+1,w:l-2,h:r-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,l,r),t.strokeRect(e,g,l,r),t.fillStyle=a.backgroundColor,t.fillRect(n,g+1,l-2,r-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:r,boxWidth:l,boxPadding:c}=n,d=Eo(n.bodyFont);let h=d.lineHeight,u=0;const p=pa(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},m=p.textAlign(a);let f,b,_,x,y,v,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=il(this,m,n),e.fillStyle=n.bodyColor,vn(this.beforeBody,g),u=s&&"right"!==m?"center"===a?l/2+c:l+2+c:0,x=0,v=i.length;x<v;++x){for(f=i[x],b=this.labelTextColors[x],e.fillStyle=b,vn(f.before,g),_=f.lines,s&&_.length&&(this._drawColorBox(e,t,x,p,n),h=Math.max(d.lineHeight,r)),y=0,w=_.length;y<w;++y)g(_[y]),h=d.lineHeight;vn(f.after,g)}u=0,h=d.lineHeight,vn(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,s;if(o){const r=pa(n.rtl,this.x,this.width);for(t.x=il(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=r.textAlign(n.footerAlign),e.textBaseline="middle",a=Eo(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],r.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:s,y:r}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Co(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+d,r),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+l-h,r),e.quadraticCurveTo(s+l,r,s+l,r+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+l,r+c-p),e.quadraticCurveTo(s+l,r+c,s+l-p,r+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+u,r+c),e.quadraticCurveTo(s,r+c,s,r+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,r+d),e.quadraticCurveTo(s,r,s+d,r),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=Xr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=qr(this,t),s=Object.assign({},n,this._size),r=el(e,t,s),l=nl(t,s,r,e);i._to===l.x&&o._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Ao(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),ga(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ma(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!wn(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),s=this._positionChanged(a,t),r=e||!wn(a,o)||s;return r&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=Xr[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}rl.positioners=Xr;var ll={id:"tooltip",_element:rl,positioners:Xr,afterInit(t,e,n){n&&(t.tooltip=new rl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:hn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:hn,beforeBody:hn,beforeLabel:hn,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 n=t.formattedValue;return pn(n)||(e+=n),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:hn,afterBody:hn,beforeFooter:hn,footer:hn,afterFooter:hn}},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"]};class cl extends ds{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:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(pn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ii(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const o=t.indexOf(e);return-1===o?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):o!==t.lastIndexOf(e)?n:o}(n,t,_n(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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}}function dl(t,e,{horizontal:n,minRotation:i}){const o=Xn(i),a=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}cl.id="category",cl.defaults={ticks:{callback:cl.prototype.getLabelForValue}};class hl extends ds{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 pn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,s=t=>o=n?o:t;if(t){const t=Yn(i),e=Yn(o);t<0&&e<0?s(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),s(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:o,min:a,max:s,precision:r,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:g,max:m}=e,f=!pn(a),b=!pn(s),_=!pn(l),x=(m-g)/(d+1);let y,v,w,k,M=Zn((m-g)/p/u)*u;if(M<1e-14&&!f&&!b)return[{value:g},{value:m}];k=Math.ceil(m/M)-Math.floor(g/M),k>p&&(M=Zn(k*M/p/u)*u),pn(r)||(y=Math.pow(10,r),M=Math.ceil(M*y)/y),"ticks"===i?(v=Math.floor(g/M)*M,w=Math.ceil(m/M)*M):(v=g,w=m),f&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-a)/o,M/1e3)?(k=Math.round(Math.min((s-a)/M,c)),M=(s-a)/k,v=a,w=s):_?(v=f?a:v,w=b?s:w,k=l-1,M=(w-v)/k):(k=(w-v)/M,k=Un(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Jn(M),Jn(v));y=Math.pow(10,pn(r)?S:r),v=Math.round(v*y)/y,w=Math.round(w*y)/y;let C=0;for(f&&(h&&v!==a?(n.push({value:a}),v<a&&C++,Un(Math.round((v+C*M)*y)/y,a,dl(a,x,t))&&C++):v<a&&C++);C<k;++C)n.push({value:Math.round((v+C*M)*y)/y});return b&&h&&w!==s?n.length&&Un(n[n.length-1].value,s,dl(s,x,t))?n[n.length-1].value=s:n.push({value:s}):b&&w!==s||n.push({value:w}),n}({maxTicks:n,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&&Gn(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return ua(t,this.chart.options.locale,this.options.ticks.format)}}class ul extends hl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=fn(t)?t:0,this.max=fn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Xn(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function pl(t){return 1==t/Math.pow(10,Math.floor(Hn(t)))}ul.id="linear",ul.defaults={ticks:{callback:ns.formatters.numeric}};class gl extends ds{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=hl.prototype.parse.apply(this,[t,e]);if(0!==n)return fn(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=fn(t)?Math.max(0,t):null,this.max=fn(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,s=(t,e)=>Math.pow(10,Math.floor(Hn(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(s(n,-1)),a(s(i,1)))),n<=0&&o(s(i,-1)),i<=0&&a(s(n,1)),this._zero&&this.min!==this._suggestedMin&&n===s(this.min,0)&&o(s(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Hn(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=bn(t.min,Math.pow(10,Math.floor(Hn(e.min)))),s=Math.floor(Hn(a)),r=Math.floor(a/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do{o.push({value:a,major:pl(a)}),++r,10===r&&(r=1,++s,l=s>=0?1:l),a=Math.round(r*Math.pow(10,s)*l)/l}while(s<n||s===n&&r<i);const c=bn(t.max,a);return o.push({value:c,major:pl(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Gn(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":ua(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Hn(t),this._valueRange=Hn(this.max)-Hn(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Hn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function ml(t){const e=t.ticks;if(e.display&&t.display){const t=Ao(e.backdropPadding);return _n(e.font&&e.font.size,ao.font.size)+t.height}return 0}function fl(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function bl(t,e,n,i,o){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let r=0,l=0;i.start<e.l?(r=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-r)):i.end>e.r&&(r=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+r)),o.start<e.t?(l=(e.t-o.start)/s,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function _l(t){return 0===t||180===t?"center":t<180?"left":"right"}function xl(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function yl(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,Bn);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}gl.id="logarithmic",gl.defaults={ticks:{callback:ns.formatters.logarithmic,major:{enabled:!0}}};class vl extends hl{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=Ao(ml(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=fn(t)&&!isNaN(t)?t:0,this.max=fn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ml(this.options))}generateTickLabels(t){hl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=yn(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).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},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,s=t.options.pointLabels,r=s.centerPointLabels?On/a:0;for(let h=0;h<a;h++){const a=s.setContext(t.getPointLabelContext(h));o[h]=a.padding;const u=t.getPointPosition(h,t.drawingArea+o[h],r),p=Eo(a.font),g=(l=t.ctx,c=p,d=gn(d=t._pointLabels[h])?d:[d],{w:ro(l,c.string,d),h:d.length*c.lineHeight});i[h]=g;const m=ei(t.getIndexAngle(h)+r),f=Math.round(Qn(m));bl(n,e,m,fl(f,u.x,g.w,0,180),fl(f,u.y,g.h,90,270))}var l,c,d;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,s=ml(a)/2,r=t.drawingArea,l=a.pointLabels.centerPointLabels?On/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,r+s+n[a],l),u=Math.round(Qn(ei(o.angle+Rn))),p=e[a],g=xl(o.y,p.h,u),m=_l(u),f=(c=o.x,d=p.w,"right"===(h=m)?c-=d:"center"===h&&(c-=d/2),c);i.push({x:o.x,y:g,textAlign:m,left:f,top:g,right:f+p.w,bottom:g+p.h})}var c,d,h;return i}(t,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return ei(t*(Bn/(this._pointLabels.length||1))+Xn(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(pn(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(pn(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 n=e[t];return function(t,e,n){return Io(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Rn+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),yl(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,s,r;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=Eo(e.font),{x:s,y:r,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!pn(p)){const t=Co(e.borderRadius),i=Ao(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,s=h-c+i.width,r=u-d+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),yo(n,{x:o,y:a,w:s,h:r,radius:t}),n.fill()):n.fillRect(o,a,s,r)}_o(n,t._pointLabels[o],s,r+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach(((t,e)=>{0!==e&&(s=this.getDistanceFromCenterForValue(t.value),function(t,e,n,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:r}=e;!a&&!i||!s||!r||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=r,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),yl(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),s,o))})),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),r=this.getPointPosition(a,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(r.x,r.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&!e.reverse)return;const r=n.setContext(this.getContext(s)),l=Eo(r.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),r.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=r.backdropColor;const e=Ao(r.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}_o(t,i.label,0,-o,l,{color:r.color})})),t.restore()}drawTitle(){}}vl.id="radialLinear",vl.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ns.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},vl.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vl.descriptors={angleLines:{_fallback:"grid"}};const wl={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}},kl=Object.keys(wl);function Ml(t,e){return t-e}function Sl(t,e){if(pn(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let s=e;return"function"==typeof i&&(s=i(s)),fn(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!$n(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function Cl(t,e,n,i){const o=kl.length;for(let a=kl.indexOf(t);a<o-1;++a){const t=wl[kl[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return kl[a]}return kl[o-1]}function Al(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=ai(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function El(t,e,n){const i=[],o={},a=e.length;let s,r;for(s=0;s<a;++s)r=e[s],o[r]=s,i.push({value:r,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),s=e[e.length-1].value;let r,l;for(r=a;r<=s;r=+o.add(r,1,i))l=n[r],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class Dl extends ds{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 n=t.time||(t.time={}),i=this._adapter=new fs._date(t.adapters.date);i.init(e),An(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Sl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function r(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}a&&s||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),i=fn(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=fn(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Cl(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=kl.length-1;a>=kl.indexOf(n);a--){const n=kl[a];if(wl[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return kl[n?kl.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=kl.indexOf(t)+1,n=kl.length;e<n;++e)if(wl[kl[e]].common)return kl[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),El(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=ii(i,0,a),o=ii(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||Cl(o.minUnit,e,n,this._getLabelCapacity(e)),s=_n(o.stepSize,1),r="week"===a&&o.isoWeekday,l=$n(r)||!0===r,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,s,a),h++)Al(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Al(c,d,p),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,s=this._unit,r=this._majorUnit,l=s&&a[s],c=r&&a[r],d=n[e],h=r&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?yn(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Xn(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,El(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Sl(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return di(t.sort(Ml))}}function Il(t,e,n){let i,o,a,s,r=0,l=t.length-1;n?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=si(t,"pos",e)),({pos:i,time:a}=t[r]),({pos:o,time:s}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=si(t,"time",e)),({time:i,pos:a}=t[r]),({time:o,pos:s}=t[l]));const c=o-i;return c?a+(s-a)*(e-i)/c:a}Dl.id="time",Dl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Pl extends Dl{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=Il(e,this.min),this._tableRange=Il(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,s,r,l,c;for(a=0,s=t.length;a<s;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,s=i.length;a<s;++a)c=i[a+1],r=i[a-1],l=i[a],Math.round((c+r)/2)!==l&&o.push({time:l,pos:a/(s-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Il(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Il(this._table,n*this._tableRange+this._minPos,!0)}}var zl;function Ll(t,e,n,i){t(e,n),void 0!==i&&i.emit(zl.ChartRendered)}function Tl(t,e){t.destroy(),void 0!==e&&e.emit(zl.ChartDestroyed)}function Ol(t,e,n){const i=[];t.datasets=e.datasets.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}}))}Pl.id="timeseries",Pl.defaults=Dl.defaults,function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"}(zl||(zl={}));const Bl=((e,n,i)=>(0,t.defineComponent)({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:e},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(e,o){vr.register(i);const a=(0,t.shallowRef)(null),s=(0,t.ref)(null);function r(i,r){if(null!==a.value&&Tl((0,t.toRaw)(a.value),o),null===s.value)throw new Error("Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");{const o=function(t,e){const n={labels:void 0===t.labels?[]:[...t.labels],datasets:[]};return Ol(n,{...t},e),n}(i,e.datasetIdKey),l=s.value.getContext("2d");null!==l&&(a.value=new vr(l,{type:n,data:(0,t.isProxy)(i)?new Proxy(o,{}):o,options:r,plugins:e.plugins}))}}function l(){const e=(0,t.toRaw)(a.value);null!==e?function(t,e){t.update(),void 0!==e&&e.emit(zl.ChartUpdated)}(e,o):console.error("Update ERROR: chart instance not found")}return(0,t.watch)((()=>e.chartData),((n,i)=>function(n,i){const s=(0,t.isProxy)(n)?(0,t.toRaw)(n):{...n},c=(0,t.isProxy)(i)?(0,t.toRaw)(i):{...i};if(Object.keys(c).length>0){const n=(0,t.toRaw)(a.value),i=function(t,e){const n=t.datasets.map((t=>t.label)),i=e.datasets.map((t=>t.label));return e.datasets.length===t.datasets.length&&n.every(((t,e)=>t===i[e]))}(s,c);i&&null!==n?(Ol(null==n?void 0:n.data,s,e.datasetIdKey),void 0!==s.labels&&function(t,e,n){t.data.labels=e,void 0!==n&&n.emit(zl.LabelsUpdated)}(n,s.labels,o),l()):(null!==n&&Tl(n,o),Ll(r,e.chartData,e.chartOptions,o))}else null!==a.value&&Tl((0,t.toRaw)(a.value),o),Ll(r,e.chartData,e.chartOptions,o)}(n,i)),{deep:!0}),(0,t.watch)((()=>e.chartOptions),(n=>function(n){const i=(0,t.toRaw)(a.value);null!==i?(function(t,e){t.options={...e}}(i,n),l()):Ll(r,e.chartData,e.chartOptions,o)}(n)),{deep:!0}),(0,t.onMounted)((()=>{"datasets"in e.chartData&&e.chartData.datasets.length>0&&Ll(r,e.chartData,e.chartOptions,o)})),(0,t.onBeforeUnmount)((()=>{null!==a.value&&Tl((0,t.toRaw)(a.value),o)})),o.expose({chart:a,updateChart:l}),()=>(0,t.h)("div",{style:e.styles,class:e.cssClasses},[(0,t.h)("canvas",{id:e.chartId,width:e.width,height:e.height,ref:s})])}}))("pie-chart","pie",Ka);vr.register(Ar,Gr,ll,$r);const Nl={name:"PieChart",components:{Pie:Bl},props:{labels:{type:Array,default:[]},data:{type:Array,default:[]},colors:{type:Array,default:[]},chartId:{type:String,default:"pie-chart"},options:{type:Object,default:null}},computed:{chartData(){return{labels:this.labels,datasets:[{data:this.data,backgroundColor:this.colors}]}},chartOptions(){return this.options?this.options:{responsive:!0,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{padding:20,boxHeight:20,boxWidth:20,font:{size:16,lineHeight:2}}}}}}}},Fl=(0,a.Z)(Nl,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("Pie");return(0,t.openBlock)(),(0,t.createBlock)(r,{"chart-data":s.chartData,"chart-id":i.chartId,"chart-options":s.chartOptions},null,8,["chart-data","chart-id","chart-options"])}]]);i(67),i(737);const Vl={IS_MOBILE:window.matchMedia("(max-width: 767px)").matches,BACK_BTN_IMG:i(835).Z,MINIMALIZE_IMG:i(436).Z,MAXIMALIZE_IMG:i(800).Z,COLORS:{0:"#009999",1:"#D5EEE8",2:"#066",3:"#FF0000",4:"#FFF989",5:"#EDB666",6:"#FF7400",7:"#1240AB"},MONTH_NAMES:{0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"}},Rl=class{constructor(t){this.url=t}makePost(t,e={},n){return $.post(this.url+t,e,n)}makeGet(t,e,...n){return $.get(this.url+t+(n.length>0?"/"+n.join("/"):""),e)}makeDelete(t,e,...n){return $.ajax({url:this.url+t+(n.length>0?"/"+n.join("/"):""),method:"DELETE",contentType:"application/json",success:e})}makePut(t,e={},n){return $.ajax({url:this.url+t,method:"PUT",contentType:"application/x-www-form-urlencoded",success:n,data:JSON.stringify(e)})}makePostFile(t,e,n){return $.ajax({type:"POST",enctype:"multipart/form-data",url:this.url+t,data:e,processData:!1,contentType:!1,cache:!1,timeout:6e5,success:n})}},Wl={GEOMETRYTYPE:{Line:"LineString",Point:"Point",Polygon:"Polygon",Circle:"Circle"},convertCoordinates:t=>ol.proj.fromLonLat([t.longitude,t.latitude]),convertCoordinatesToLonLat:t=>ol.proj.toLonLat(t),calculateMidPoint:t=>({latitude:(t[0].latitude+t[1].latitude)/2,longitude:(t[0].longitude+t[1].longitude)/2}),calculateCentroid(t,e){let n={latitude:0,longitude:0};for(let i=0;i<e;i++){let e=t[i];n.latitude+=e.latitude,n.longitude+=e.longitude}return n.latitude/=e,n.longitude/=e,n},calculateDistance(t,e){let n=.017453292519943295,i=Math.cos,o=t.latitude,a=e.latitude,s=t.longitude,r=e.longitude,l=.5-i((a-o)*n)/2+i(o*n)*i(a*n)*(1-i((r-s)*n))/2;return Math.round(12742*Math.asin(Math.sqrt(l))*1e3)},calculateLongestDistance(t,e,n){let i=0;for(let o=0;o<n;o++){let n=this.calculateDistance(t,e[o]);n>i&&(i=n)}return i},pointsDistance(t,e){let n=t[0]-e[0],i=t[1]-e[1];return Math.sqrt(n*n+i*i)},getArea(t){return t.getGeometry().getType()===this.GEOMETRYTYPE.Polygon?ol.sphere.getArea(t.getGeometry()):null},getLength(t){return t.getGeometry().getType()===this.GEOMETRYTYPE.Circle?null:ol.sphere.getLength(t.getGeometry())},styles:{},interactions:{},templates:{},stopClusterStyleCache:{},MapWrapper:function(t){let e={},n={};function i(t,i){n.hasOwnProperty(t)&&n[t].forEach((t=>{void 0!==i.pixel?e.forEachFeatureAtPixel(i.pixel,((e,n)=>{setTimeout(t(e,n,i),1)}),{hitTolerance:10}):setTimeout(t(i),1)}))}return e=new ol.Map({target:void 0!==t.element?t.element:"",layers:[new ol.layer.Tile({source:new ol.source.OSM})],view:new ol.View({zoom:4,center:ol.proj.fromLonLat([0,0])})}),e.on("click",(t=>{i("click",t)})),e.on("moveend",(t=>{i("moveend",t)})),{getMap:function(){return e},addLayer:function(t){e.addLayer(t.getLayer())},fit:function(t,n){t.getSource().getFeatures().length>0&&e.getView().fit(t.getExtent(),{size:e.getSize(),maxZoom:void 0===n?20:n,padding:[20,20,20,20]})},fitToFeature:function(t){let n=t.getGeometry().getExtent();e.getView().fit(n,{size:e.getSize(),maxZoom:20,padding:[20,20,20,20]})},addInteraction:function(t){e.addInteraction(t.getInteraction())},removeInteraction:function(t){e.removeInteraction(t.getInteraction())},addOverlay:function(t){e.addOverlay(t.getOverlay())},removeOverlay:function(t){e.removeOverlay(t.getOverlay())},getPixelFromCoordinate:function(t){return e.getPixelFromCoordinate(t)},removeLayer:function(t){e.removeLayer(t.getLayer())},addControl:function(t){e.addControl(t.getControl())},removeControl:function(t){e.removeControl(t.getControl())},getFeatureFromPixel:function(t){return e.forEachFeatureAtPixel(t,(t=>t))},getLayerFromPixel:function(t){return e.forEachFeatureAtPixel(t,((t,e)=>e))},getZoomLevel:function(){return e.getView().getZoom()},on:function(t,e){n.hasOwnProperty(t)?n[t].push(e):n[t]=[e]},off:function(t,e){n.hasOwnProperty(t)&&(n[t]=n[t].filter((t=>t!==e)))}}},LayerWrapper:function(t={style:void 0,name:void 0,zIndex:void 0,vectorImage:void 0}){let e={},n=new ol.source.Vector;return function(){let i={name:void 0!==t.name?t.name:"",source:n,style:void 0!==t.style?t.style:new ol.style.Style({}),zIndex:void 0!==t.zIndex?t.zIndex:1};e=t.vectorImage?new ol.layer.VectorImage(i):new ol.layer.Vector(i)}(),{addFeatures:function(t){n.addFeatures(t)},addFeature:function(t){n.addFeature(t)},removeFeatures:function(){n.clear()},removeFeature:function(t){n.removeFeature(t)},removeFeatureById:function(t){let e=n.getFeatureById(t);e&&n.removeFeature(e)},removeFeaturesByProperty:function(t,e){n.getFeatures().forEach((i=>{i.get("properties")[t]===e&&n.removeFeature(i)}))},getFeatureById:function(t){return n.getFeatureById(t)},getFeaturesByProperty:function(t,e){let i=[];return n.getFeatures().forEach((n=>{n.get("properties")[t]===e&&i.push(n)})),i},getAllFeatures:function(){return n.getFeatures()},getLayer:function(){return e},getSource:function(){return n},getExtent:function(){return n.getExtent()},getName:function(t){return t.get("name")},show:function(){e.setVisible(!0)},hide:function(){e.setVisible(!1)},setStyle:function(t){e.setStyle(t)}}},ClusterLayerWrapper:function(t={style:void 0,name:void 0,zIndex:void 0,animationDuration:void 0,distance:void 0}){let e={},n=new ol.source.Vector,i={};return i=new ol.source.Cluster({source:n,distance:void 0!==t.distance?t.distance:50}),e=new ol.layer.AnimatedCluster({name:void 0!==t.name?t.name:"",source:i,style:void 0!==t.style?t.style:{},zIndex:void 0!==t.zIndex?t.zIndex:1,animationDuration:void 0!==t.animationDuration?t.animationDuration:200}),{addFeatures:function(t){n.addFeatures(t)},addFeature:function(t){n.addFeature(t)},removeFeatures:function(){n.clear()},removeFeature:function(t){n.removeFeature(t)},removeFeatureById:function(t){let e=n.getFeatureById(t);e&&n.removeFeature(e)},getFeatureById:function(t){return n.getFeatureById(t)},getFeaturesByProperty:function(t,e){let i=[];return n.getFeatures().forEach((n=>{n.get("properties")[t]===e&&i.push(n)})),i},getAllFeatures:function(){return n.getFeatures()},getLayer:function(){return e},getSource:function(){return n},getExtent:function(){return n.getExtent()},getName:function(t){return t.get("name")},getClusterFeatures:function(t){return t.get("features")},setStyle:function(t){e.setStyle(t)},setDistance:function(t){i.setDistance(t)}}},Feature:function(){this.setFeatureStyle=function(t,e){t.setStyle(e)},this.setFeatureId=function(t,e){t.setId(e)},this.setFeatureProperty=function(t,e,n){t.set(e,n)},this.getProperties=function(t){return t.get("properties")}},Linestring:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(t){const e=[];for(let n=0,i=t.points.length;n<i;n++)t.points[n].longitude>1e5||t.points[n].latitude>1e5?e.push(ol.proj.fromLonLat([t.points[n].longitude/1e5,t.points[n].latitude/1e5])):e.push(ol.proj.fromLonLat([t.points[n].longitude,t.points[n].latitude]));return e}function i(t,i){const o=n(t),a=new ol.geom.LineString(o),s=new ol.Feature({geometry:a});return s.setId(t.id),s.set("properties",t),void 0!==t.style?s.setStyle(t.style):void 0!==i?s.setStyle(i):void 0!==e.style&&s.setStyle(e.style),void 0!==e.changeCallback&&s.on("change",e.changeCallback),s}return Wl.Feature.call(this),{createFeatures:function(t,e){if(Array.isArray(t))return t.map((t=>i(t,e)))},createFeature:i,getCoordinates:function(t){return n(t)},setFeatureCoordinates:function(t,e){let i=n(e);t.getGeometry().setCoordinates(i)},setFeatureStyle:this.setFeatureStyle}},Point:function(t={style:void 0,changeCallback:void 0,id:void 0,nestedObj:void 0}){let e=t;function n(n){let i=n;t.nestedObj&&(i=n[t.nestedObj]);let o=new ol.geom.Point(ol.proj.fromLonLat([i.longitude>180||i.longitude<-180?i.longitude/1e5:i.longitude,i.latitude>90||i.latitude<-90?i.latitude/1e5:i.latitude])),a=new ol.Feature({geometry:o});return void 0!==t.id?a.setId(n[t.id]):void 0!==i.id?a.setId(i.id):void 0!==n.id&&a.setId(n.id),a.set("properties",n),void 0!==e.style?a.setStyle(e.style):void 0!==n.style&&a.setStyle(n.style),void 0!==e.changeCallback&&a.on("change",e.changeCallback),a}return Wl.Feature.call(this),{createFeatures:function(t){return Array.isArray(t)?t.map((t=>n(t))):n(t)},getProperties:this.getProperties,setFeatureStyle:this.setFeatureStyle,setFeatureId:this.setFeatureId,setFeatureProperty:this.setFeatureProperty,setFeatureCoordinates:function(t,e){t.getGeometry().setCoordinates(ol.proj.fromLonLat([e.longitude>180||e.longitude<-180?e.longitude/1e5:e.longitude,e.latitude>90||e.latitude<-90?e.latitude/1e5:e.latitude]))}}},Polygon:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(t){const n=function(t){let e=[];for(let n=0,i=t.length;n<i;n++)e.push(ol.proj.fromLonLat([t[n].longitude>180||t[n].longitude<-180?t[n].longitude/1e5:t[n].longitude,t[n].latitude>90||t[n].latitude<-90?t[n].latitude/1e5:t[n].latitude]));return e}(t.coordinates),i=new ol.geom.Polygon([n]),o=new ol.Feature({geometry:i});return o.setId(t.id),o.set("properties",t),void 0!==e.style?o.setStyle(e.style):void 0!==t.style&&o.setStyle(t.style),void 0!==e.changeCallback&&o.on("change",e.changeCallback),o}return Wl.Feature.call(this),{createFeatures:function(t){if(Array.isArray(t))return t.map((t=>n(t)))},createFeature:n}},Circle:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(n){let i=new ol.geom.Circle(ol.proj.fromLonLat([n.longitude>180||n.latitude<-180?n.longitude/1e5:n.longitude,n.latitude>90||n.latitude<-90?n.latitude/1e5:n.latitude]),n.radius),o=new ol.Feature({geometry:i});return o.set("properties",n),void 0!==t.id?o.setId(n[t.id]):void 0!==n.id&&o.setId(n.id),void 0!==e.style?o.setStyle(e.style):void 0!==n.style&&o.setStyle(n.style),void 0!==e.changeCallback&&o.on("change",e.changeCallback),o}return Wl.Feature.call(this),{createFeatures:function(t){return Array.isArray(t)?t.map((t=>n(t))):n(t)}}}};Wl.interactions.ModifyWrapper=function(t={source:void 0,features:void 0,modifyEnd:void 0,modifyStart:void 0,hitDetection:void 0,style:void 0,flPointsModify:void 0,alwaysOneFeature:void 0}){let e={};function n(e){switch(e.getGeometry().getType()){case Wl.GEOMETRYTYPE.Line:return function(e){let n=e.getGeometry().getCoordinates(),i=e.get("properties"),o=i.points;if(o.length!==n.length)for(let t=0,e=n.length;t<e;t++){let e=n[t],i=o[t],a=ol.proj.toLonLat(e),s=Math.round(+a[0].toFixed(5)),r=Math.round(+a[1].toFixed(5));s+r!==i.longitude+i.latitude&&o.splice(t,0,{order:t+1,longitude:s,latitude:r,id:0,segmentPointId:0,timeOnSegment:0,modifyType:"add"}),i.order=t+1}else for(let a=0,s=o.length;a<s;a++){let r=n[a],l=o[a],c=ol.proj.toLonLat(r),d=Math.round(+c[0].toFixed(5)),h=Math.round(+c[1].toFixed(5));d+h!==l.longitude+l.latitude&&(0!==a&&a!==s-1?(l.longitude=d,l.latitude=h,l.modifyType="edit"):void 0!==t.flPointsModify&&t.flPointsModify(i,e))}return i}(e);case Wl.GEOMETRYTYPE.Polygon:return function(t){let e=t.getGeometry().getCoordinates()[0],n=[],i=t.get("properties");for(let t=0,i=e.length;t<i;t++){let i=ol.proj.toLonLat(e[t]);n.push({longitude:Math.round(+i[0].toFixed(5)),latitude:Math.round(+i[1].toFixed(5)),order:t+1})}return void 0!==i&&i.hasOwnProperty("coordinates")?(i.coordinates=n,i):(t.set("properties",{coordinates:n}),t.get("properties"))}(e);case Wl.GEOMETRYTYPE.Point:return function(t){let e=ol.proj.toLonLat(t.getGeometry().getCoordinates());return{longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),id:t.getId(),properties:t.get("properties")}}(e);case Wl.GEOMETRYTYPE.Circle:return function(t){let e=ol.proj.toLonLat(t.getGeometry().getCenter()),n=t.get("properties"),i={longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),radius:t.getGeometry().getRadius(),id:t.getId()};return void 0!==n&&n.hasOwnProperty("coordinates")?(n.longitude=i.longitude,n.latitude=i.latitude,n.radius=i.radius):t.set("properties",i),t.get("properties")}(e)}}return function(){let i={};void 0!==t.source?i.source=t.source:void 0!==t.features&&(i.features=t.features),void 0!==t.hitDetection&&(i.hitDetection=t.hitDetection),void 0!==t.style&&(i.style=t.style),e=new ol.interaction.Modify(i),void 0!==t.modifyEnd&&e.on("modifyend",(e=>{let i=e.features.getArray();t.modifyEnd(function(e){if(void 0!==t.alwaysOneFeature&&t.alwaysOneFeature){for(let t=1;t<e.length;t++){let n=e[t],i=n.get("properties"),o=ol.proj.fromLonLat([+i.longitude,+i.latitude]);n.getGeometry().setCoordinates(o)}return[n(e[0])]}return e.map((t=>n(t)))}(i),i)})),void 0!==t.modifyStart&&e.on("modifystart",t.modifyStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)},getState:function(){return e.getActive()}}},Wl.interactions.ModifyLSWrapper=function(t={source:void 0,features:void 0,modifyEnd:void 0,modifyStart:void 0,hitDetection:void 0,style:void 0}){let e={};return function(){let n={};void 0!==t.source?n.source=t.source:void 0!==t.features&&(n.features=t.features),void 0!==t.modifyEnd&&(n.hitDetection=t.hitDetection),void 0!==t.style&&(n.style=t.style),e=new ol.interaction.Modify(n),void 0!==t.modifyEnd&&e.on("modifyend",(e=>{t.modifyEnd(function(t){return t.features.getArray().map((t=>{let e=ol.proj.toLonLat(t.getGeometry().getCoordinates());return{longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),id:t.getId(),properties:t.get("properties")}}))}(e),e)})),void 0!==t.modifyStart&&modifiy.on("modifystart",t.modifyStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)}}},Wl.interactions.SelectWrapper=function(t={layerWrapper:void 0,style:void 0,hitTolerance:void 0,selected:void 0,deselected:void 0,alwaysOneSelected:void 0}){let e,n=null;return function(){let i={};void 0!==t.layerWrapper&&(i.layers=[t.layerWrapper.getLayer()]),void 0!==t.style&&(i.style=t.style),void 0!==t.hitTolerance&&(i.hitTolerance=t.hitTolerance),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&(i.toggleCondition=ol.events.condition.never,i.filter=function(t){return null===n||t.getId()===n||null===n}),e=new ol.interaction.Select(i),e.on("select",(i=>{void 0!==t.deselected&&(i.deselected.length>0?t.deselected(i,i.deselected[0].get("properties")):t.deselected(i,null)),void 0!==t.selected&&(i.selected.length>0?(t.selected(i,i.selected[0].get("properties")),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&(n=i.selected[0].getId())):(t.selected(i,null),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&e.getFeatures().push(i.deselected[0])))}))}(),{getInteraction:function(){return e},getSelectedFeatures:function(){return e.getFeatures()},clearSelected:function(){e.getFeatures().clear(),n=null},addFeatures:function(t){e.getFeatures().push(...t)},setActive:function(t){e.setActive(t)}}},Wl.interactions.DrawWrapper=function(t={source:void 0,drawEnd:void 0,drawStart:void 0,style:void 0,geometryType:void 0}){let e={};function n(t){return t.feature.getGeometry().getCoordinates()[0].map(((t,e)=>{let n=ol.proj.toLonLat(t);return{longitude:n[0].toFixed(5),latitude:n[1].toFixed(5),order:e+1}}))}return function(){let i={};void 0!==t.source&&(i.source=t.source),void 0!==t.style&&(i.style=t.style),void 0!==t.geometryType&&(i.type=t.geometryType),e=new ol.interaction.Draw(i),void 0!==t.drawEnd&&e.on("drawend",(function(e){i.type===Wl.GEOMETRYTYPE.Circle?t.drawEnd(function(t){let e=t.feature.getGeometry().getCenter(),n=t.feature.getGeometry().getRadius(),i=ol.proj.toLonLat(e);return{longitude:i[0].toFixed(5),latitude:i[1].toFixed(5),radius:n}}(e),i.type,e.feature):i.type===Wl.GEOMETRYTYPE.Point?t.drawEnd(function(t){console.log(t);let e=t.feature.getGeometry().getCoordinates(),n=ol.proj.toLonLat(e);return{longitude:n[0].toFixed(5),latitude:n[1].toFixed(5)}}(e),i.type,e,e.feature):t.drawEnd(n(e),i.type,e.feature)})),void 0!==t.drawStart&&e.on("drawstart",t.drawStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)},getCoordinates:n}},Wl.OverlayWrapper=function(t={element:void 0,offset:void 0}){let e={},n={},i=null;function o(t){if(t){let e=t.getGeometry().getExtent();n.setPosition(ol.extent.getCenter(e))}else n.setPosition(void 0)}function a(t){i.innerHTML=t}return e=t,i=document.getElementById(e.element),n=new ol.Overlay({element:i,offset:void 0!==e.offset?e.offset:[0,-10]}),{show:function(t,e){void 0!==e&&a(e),void 0!==t&&o(t)},hide:function(){n.setPosition(void 0)},getOverlay:function(){return n},setPosition:o,setContent:a}},Wl.ContextMenuWrapper=function(t={items:void 0,defaultItems:void 0,width:void 0}){let e={},n=[];return function(){let i={};void 0!==t.items&&(i.items=t.items,n=t.items),void 0!==t.defaultItems&&(i.defaultItems=t.defaultItems),void 0!==t.width?i.width=t.width:i.width=170,e=new ContextMenu(i)}(),{addItems:function(t=[]){e.clear(),e.extend(t),e.extend(e.getDefaultItems())},addItem:function(t={text:void 0,classname:void 0,callback:void 0,icon:void 0}){let i={};void 0!==t.text&&(i.text=t.text),void 0!==t.classname&&(i.classname=t.classname),void 0!==t.callback&&(i.callback=t.callback),void 0!==t.icon&&(i.callback=t.callback),e.push(i),n.push(i)},getControl:function(){return e},hide:function(){e.disable()},show:function(){e.enable()},on:function(t,n){e.on(t,n)}}},Wl.LegendWrapper=function(t={title:void 0,margin:void 0,target:void 0}){let e=null,n=null;return e=new ol.legend.Legend({title:void 0!==t.title?t.title:"",margin:void 0!==t.margin?t.margin:5}),n=new ol.control.Legend({legend:e,target:t.target,collapsed:!1}),{getControl:function(){return n},addItem:function(t={title:void 0,feature:void 0,typeGeom:void 0,style:void 0,size:void 0,margin:void 0}){let n={margin:t.margin,size:t.size,title:t.title?t.title:""};void 0!==t.feature&&(n.feature=t.feature),void 0!==t.typeGeom&&void 0!==t.style&&(n.typeGeom=t.typeGeom,n.style=t.style),e.addItem(n)}}},Wl.BarWrapper=function(t={toggleOne:void 0,group:void 0}){let e=null;return function(){let n={};void 0!==t.toggleOne&&(n.toggleOne=t.toggleOne),void 0!==t.group&&(n.group=t.group),e=new ol.control.Bar(n)}(),{addBarItemWrapper:function(t){e.addControl(t.getBarItem())},addBarWrapper:function(t){e.addControl(t.getControl())},getControl:function(){return e}}},Wl.BarItemWrapper=function(t={title:void 0,barWrapper:void 0,interactionWrapper:void 0,html:void 0,className:void 0,active:void 0,onActive:void 0,onDeactive:void 0}){let e=null;return function(){let n={};void 0!==t.title&&(n.title=t.title),void 0!==t.barWrapper&&(n.bar=t.barWrapper.getControl()),void 0!==t.interactionWrapper&&(n.interaction=t.interactionWrapper.getInteraction()),void 0!==t.html&&(n.html=t.html),void 0!==t.className&&(n.className=t.className),void 0!==t.active&&(n.active=t.active,n.active?t.onActive():t.onDeactive()),n.onToggle=function(e){e&&t.onActive&&t.onActive(),!e&&t.onDeactive&&t.onDeactive()},e=new ol.control.Toggle(n)}(),{getBarItem:function(){return e}}};const jl=Wl,Hl={install(t,e){Object.assign(t.config.globalProperties,Vl)}}})(),o})()));
|
|
2
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("wertyzvue",["vue"],e):"object"==typeof exports?exports.wertyzvue=e(require("vue")):t.wertyzvue=e(t.vue)}(self,(t=>(()=>{var e={295:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n/*.v-spinner\n{\n margin: 100px auto;\n text-align: center;\n}\n*/\n@-webkit-keyframes v-pulseStretchDelay\n{\n0%,\n 80%\n {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1; \n opacity: 1;\n}\n45%\n {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7; \n opacity: 0.7;\n}\n}\n@keyframes v-pulseStretchDelay\n{\n0%,\n 80%\n {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1; \n opacity: 1;\n}\n45%\n {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7; \n opacity: 0.7;\n}\n}\n",""]);const r=s},754:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.header[data-v-4fc00704] {\n flex-basis: 100%;\n}\n.chart[data-v-4fc00704] {\n background-color: var(--lightgrey);\n /*padding: 20px;*/\n position: relative;\n min-height: 500px;\n}\n.chart__wrapper[data-v-4fc00704] {\n padding: 20px;\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n}\nh4[data-v-4fc00704] {\n text-align: center;\n margin-bottom: 25px !important;\n font-weight: bold !important;\n}\n@media screen and (max-width: 767px) {\n.chart[data-v-4fc00704] {\n flex: 1 1 100%;\n}\n}\n",""]);const r=s},37:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.legend[data-v-26d722e0] {\n flex-basis: 100%;\n}\n.legend__row[data-v-26d722e0] {\n display: flex;\n margin-bottom: 5px;\n /* justify-content: space-around;*/\n}\n.legend__cell[data-v-26d722e0] {\n display: flex;\n align-items: center;\n flex: 1;\n justify-content: center;\n /*cursor: pointer;*/\n}\n.legend__text[data-v-26d722e0] {\n padding: 10px 20px;\n width: 180px;\n}\n.legend__text span[data-v-26d722e0]:first-child {\n display: block;\n /* font-weight: 550; */\n font-size: 18px;\n color: var(--darkgrey);\n}\n.legend__text span[data-v-26d722e0]:last-child {\n font-weight: lighter;\n}\n.legend__circle[data-v-26d722e0] {\n border-radius: 50%;\n width: 20px;\n height: 20px;\n background-color: black;\n transition: all .2s;\n margin-right: 5px;\n}\n.legend__cell:hover .legend__circle[data-v-26d722e0] {\n width: 25px;\n height: 25px;\n}\n.legend__rectangle[data-v-26d722e0] {\n width: 20px;\n height: 20px;\n background-color: black;\n margin-right: 5px;\n}\n",""]);const r=s},887:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\nh3[data-v-32fd9d9e] {\n font-weight: bold !important;\n color: white !important;\n text-align: center;\n}\n.body__text[data-v-32fd9d9e] {\n color: black;\n width: 100%;\n text-align: center;\n font-size: 20px;\n padding: 20px 10px;\n margin-bottom: 30px;\n}\n.row[data-v-32fd9d9e] {\n flex: 1 1 100%\n}\n",""]);const r=s},942:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-content[data-v-414af972] {\n padding: 15px;\n}\n",""]);const r=s},581:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.absolute-row[data-v-ea7667be] {\n flex-direction: row;\n /* top: 76px; */\n width: 100%;\n left: 15px;\n margin: 0;\n margin-top: 20px;\n}\n.flex-direction--row[data-v-ea7667be] {\n flex-direction: row;\n}\n",""]);const r=s},229:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__header {\n margin-bottom: 10px;\n border-bottom: 2px solid var(--lightgrey);\n padding-bottom: 10px;\n}\n.w__header-text {\n font-weight: 500 !important;\n color: var(--green) !important;\n font-size: 32px !important;\n /*padding-bottom: 10px !important;*/\n}\n.w__header-icon {\n /*background-color: white;\n\n height: 50px;\n width: 80px;\n margin: 0px 18px;*/\n margin-right: 10px;\n border-radius: 5px;\n text-align: center;\n}\n.w__header-icon img {\n max-height: 54px;\n border-radius: 50%;\n}\n.w__header-number {\n padding: 12px;\n background-color: var(--green);\n border-radius: 5px;\n color: white;\n font-size: 20px;\n font-weight: 550;\n margin-right: 15px;\n min-width: 52px;\n text-align: center;\n height: 50px;\n}\n.w__header-number--grey {\n background-color: var(--grey);\n}\n.w__back__btn {\n display: flex;\n align-items: center;\n cursor: pointer;\n border-right: 1px solid var(--grey);\n}\n.w__back__btn-img {\n width: 40px;\n height: 40px;\n}\n.w__back__btn-text {\n font-size: 25px;\n flex: 1;\n color: #888888;\n font-weight: lighter;\n padding: 0 15px;\n}\n",""]);const r=s},458:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n@-webkit-keyframes spin {\n0% { -webkit-transform: rotate(0deg);\n}\n100% { -webkit-transform: rotate(360deg);\n}\n}\n@keyframes spin {\n0% { transform: rotate(0deg);\n}\n100% { transform: rotate(360deg);\n}\n}\n.w__loader__wrapper\n{\n position: fixed;\n z-index: 10000;\n width: 100%;\n text-align: center;\n background-color: #ffffffd1;\n height: 100%;\n padding-top: 20%;\n}\n.w__loader\n{\n width: 120px;\n margin-top: 10px;\n border-top: 2px solid #009999;\n height: 120px;\n animation: spin 1s linear infinite;\n border-radius: 50%;\n display: inline-block;\n -webkit-animation: spin 1s ease-out infinite;\n}\n.w__loader__img\n{\n background-repeat: no-repeat;\n background-position: center;\n height: 114px;\n position: relative;\n top: -122px;\n}\n.w__loader__img img\n{\n height: 114px;\n}\n",""]);const r=s},781:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#w-menu[data-v-31ca7b9e] {\n background-color: var(--darkergrey);\n /*padding: 10px;*/\n /*width: 100%;*/\n width: inherit;\n min-height: 100%;\n position: fixed;\n}\n.menu__logo[data-v-31ca7b9e] {\n /*background: url(../../assets/img/menu/logo.svg);*/\n background-repeat: no-repeat;\n background-position: center;\n height: 100px;\n text-align: center;\n}\n.menu__logo img[data-v-31ca7b9e] {\n height: 100px;\n}\n.menu__header[data-v-31ca7b9e] {\n display: flex;\n padding: 20px;\n border-bottom: 2px solid black;\n justify-content: center;\n}\n.menu__button[data-v-31ca7b9e] {\n background-color: black;\n /* display: inline-block; */\n width: 40px;\n height: 40px;\n text-align: center;\n line-height: 2.8;\n border-radius: 5px;\n position: absolute;\n right: 15px;\n cursor: pointer;\n}\n.menu__button img[data-v-31ca7b9e] {\n height: 25px;\n transition: all .5s;\n}\n.menu__header__wrapper[data-v-31ca7b9e] {\n padding: 15px;\n}\n.menu__header__text[data-v-31ca7b9e] {\n color: white !important;\n font-weight: 500 !important;\n}\n.menu__content__ul[data-v-31ca7b9e] {\n padding: 0;\n width: 100%;\n}\n.menu__content__li[data-v-31ca7b9e] {\n text-decoration: none;\n list-style: none;\n color: white;\n width: 100%;\n cursor: pointer;\n}\n.menu__content__li-wrapper[data-v-31ca7b9e] {\n font-size: 20px;\n padding: 10px 0;\n display: flex;\n align-items: center;\n width: 100%;\n padding-left: 15px;\n flex-wrap: wrap;\n border-right: 3px solid transparent;\n /*padding-right: 30px;*/\n}\n.menu__sub__li-wrapper[data-v-31ca7b9e] {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.menu__sub__li-img[data-v-31ca7b9e] {\n height: 20px;\n padding-right: 10px;\n width: 30px;\n font-size: 20px;\n color: #C2C1C1;\n}\n.menu__sub__li-img--active[data-v-31ca7b9e] {\n display: none;\n color: white;\n}\n.menu__sub__li--active .menu__sub__li-wrapper .menu__sub__li-img--active[data-v-31ca7b9e] {\n display: block;\n}\n.menu__sub__li--active .menu__sub__li-wrapper img[data-v-31ca7b9e],\n.menu__sub__li--active .menu__sub__li-wrapper span.glyphicons[data-v-31ca7b9e]:not(.menu__sub__li-img--active) {\n display: none;\n}\n.menu__content__li--active .menu__sub__ul[data-v-31ca7b9e] {\n display: block !important;\n}\n.menu__content__li--active .menu__content__li-wrapper[data-v-31ca7b9e] {\n border-right: 3px solid var(--green);\n background-color: var(--darkgreen);\n}\n.menu__content__li-img[data-v-31ca7b9e] {\n padding-right: 20px;\n height: 35px;\n width: 50px;\n color: var(--green);\n font-size: 35px;\n}\n.menu__content__li-img--active[data-v-31ca7b9e] {\n display: none;\n color: white;\n}\n.menu__content__li--active .menu__content__li-wrapper .menu__content__li-img--active[data-v-31ca7b9e] {\n display: block;\n}\n.menu__content__li--active .menu__content__li-wrapper img.menu__content__li-img[data-v-31ca7b9e]:not(.menu__content__li-img--active),\n.menu__content__li--active .menu__content__li-wrapper span.glyphicons[data-v-31ca7b9e]:not(.menu__content__li-img--active) {\n display: none;\n}\n.menu__content__li--active .menu__content__li-arrow[data-v-31ca7b9e] {\n -webkit-transform: rotate(90deg) translateY(-20%);\n -moz-transform: rotate(90deg) translateY(-20%);\n -ms-transform: rotate(90deg) translateY(-20%);\n -o-transform: rotate(90deg) translateY(-20%);\n transform: rotate(90deg) translateY(-20%);\n}\n.menu__content__li-arrow[data-v-31ca7b9e] {\n font-size: 30px;\n transform: rotate(-90deg);\n margin-left: auto;\n transition: all 0.4s ease;\n}\n.menu__content__li-arrow[data-v-31ca7b9e]:after {\n content: '\\2039';\n}\n.menu__sub__ul[data-v-31ca7b9e] {\n flex: 1 0 100%;\n list-style: none;\n padding: 0;\n}\n.menu__sub__li[data-v-31ca7b9e] {\n padding: 10px 46px;\n font-size: 15px;\n}\n.menu__content__li-right[data-v-31ca7b9e] {\n flex: 1;\n text-align: right;\n margin-right: 10px;\n}\n.menu__sub__li--active[data-v-31ca7b9e] {\n background-color: rgba(255, 255, 255, .2);\n}\n.w__menu--minimalize .menu__content__li-arrow[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__logo[data-v-31ca7b9e] {\n height: 30px;\n display: none;\n}\n.w__menu--minimalize .menu__content__li-name[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__sub__li-name[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__header[data-v-31ca7b9e] {\n display: none;\n}\n.w__menu--minimalize .menu__content__li-img[data-v-31ca7b9e] {\n width: 35px;\n}\n.w__menu--minimalize .menu__content__li-right[data-v-31ca7b9e] {\n margin-right: 0px;\n text-align: center;\n}\n\n/*.tp__menu--minimalize .menu__content__ul\n{\n width: 18%;\n}*/\n.w__menu--minimalize .menu__sub__li[data-v-31ca7b9e] {\n padding: 10px 18px;\n}\n.w__menu--minimalize .menu__sub__li--active[data-v-31ca7b9e] {\n border-right: 3px solid var(--darkgreen);\n}\n.w__menu--minimalize .menu__content__li-img[data-v-31ca7b9e] {\n padding-right: 0px;\n}\n.w__menu--minimalize .menu__content__li-wrapper[data-v-31ca7b9e] {\n padding-right: 0px;\n padding-left: 0px;\n justify-content: center;\n /*border-right: 3px solid transparent;*/\n}\n.w__menu--minimalize .menu__sub__li-img[data-v-31ca7b9e] {\n padding-right: 0px;\n}\n.w__menu--minimalize .menu__button[data-v-31ca7b9e] {\n position: static;\n}\n.w__menu--minimalize .menu__button img[data-v-31ca7b9e] {\n transform: rotate(180deg);\n}\n.menu__content a[data-v-31ca7b9e] {\n display: block !important;\n color: white !important;\n text-decoration: none !important;\n}\n.menu__footer[data-v-31ca7b9e] {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n}\n",""]);const r=s},333:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n@media screen and (max-width: 767px) {\n#w-mobile-menu {\n height: 50px;\n width: 100%;\n background-color: var(--darkergrey);\n color: white;\n padding: 10px;\n display: flex;\n}\n.glyphicons {\n font-size: 30px;\n flex: 1\n}\nh3 {\n color: var(--green) !important;\n}\n}\n",""]);const r=s},522:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n/* MODAL */\n.w__modal[data-v-d16ba0f6] {\n position: fixed;\n z-index: 9999;\n background-color: rgba(0, 0, 0, 0.5);\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.w__modal__close[data-v-d16ba0f6] {\n height: 20px;\n position: absolute;\n top: 10px;\n right: 10px;\n cursor: pointer;\n z-index: 1000;\n}\n.w__modal__content[data-v-d16ba0f6] {\n width: 40%;\n background-color: white;\n border-radius: 5px;\n position: relative;\n}\n.w__modal__header[data-v-d16ba0f6] {\n background-color: var(--green);\n padding: 10px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n position: relative;\n}\n.w__modal__body[data-v-d16ba0f6] {\n padding: 30px;\n height: 95%;\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n}\n.w__modal__body .row[data-v-d16ba0f6] {\n flex: 1;\n flex-basis: 100%;\n}\n",""]);const r=s},718:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.filter[data-v-e09ce0e4] {\n display: flex;\n gap: 15px;\n padding: 5px;\n}\n.filter__item[data-v-e09ce0e4] {\n color: var(--grey);\n cursor: pointer;\n font-weight: bold;\n}\n.filter__item--selected[data-v-e09ce0e4] {\n color: black;\n}\n",""]);const r=s},790:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__small__loader[data-v-e0d9804a] {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: 444;\n background-color: rgba(255, 255, 255, 0.5);\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n",""]);const r=s},45:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n.w__input__icon {\n position: absolute;\n right: 20px;\n top: 8px;\n font-size: 25px;\n color: var(--grey);\n}\n.w__panel {\n padding: 5px;\n background-color: var(--lightgrey);\n}\n.w__table__wrapper {\n /*padding: 10px;*/\n}\n",""]);const r=s},685:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-table-panel .select2-container {\n position: relative;\n top: 0;\n right: 0;\n}\n",""]);const r=s},940:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"\n#wertyz-table-panel[data-v-e94d5c9e] {\n padding: 5px 15px;\n background-color: var(--lightgreen);\n}\n.panel__row[data-v-e94d5c9e] {\n display: flex;\n align-items: center;\n}\n.length[data-v-e94d5c9e] {\n display: flex;\n align-items: center;\n gap: 30px;\n margin-left: auto;\n}\n.table__counts[data-v-e94d5c9e] {\n width: 60%;\n text-align: right;\n position: static;\n}\n.search__icon[data-v-e94d5c9e] {\n top: 0;\n}\n",""]);const r=s},176:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,":root {\n --green: #009999;\n --lightgreen: #D5EEE8;\n --darkgreen: #066;\n --red: #FF0000;\n --yellow: #FFF989;\n --darkgrey: #4E4E4E;\n --lightgrey: #F3F3F3;\n --grey: #C1C1C1;\n --darkyellow: #EDB666;\n --darkergrey: #3D3D3D;\n --orange: #FF7400;\n --darkblue: #1240AB;\n}\n\n#right-content {\n min-width: 16%; \n width: 16%; \n /*min-height: 100%;*/\n}\n\n.txt-green {\n color: var(--green) !important;\n}\n\n.txt-orange {\n color: var(--orange) !important;\n}\n\n.txt-red {\n color: var(--red) !important;\n}\n\n.txt-bold {\n font-weight: bold;\n}\n\n.txt-lighter {\n font-weight: lighter;\n}\n\n.border-red {\n border-color: var(--red) !important;\n}\n\n.border-red:hover {\n border-color: var(--red) !important;\n}\n\n.border-red .multiselect__tags {\n border-color: var(--red) !important;\n}\n\n.multiselect.border-red.required .multiselect__tags {\n border-left: 3px solid var(--red) !important;\n}\n\n.d-flex {\n display: flex;\n}\n\n.d-flex--v-center {\n align-items: center;\n}\n\n.d-flex--h-center {\n justify-content: center;\n}\n\n.disable-decoration {\n text-decoration: none !important;\n}\n\n.padding--no {\n padding: 0px;\n}\n\n.padding--no-left {\n padding-left: 0px;\n}\n\n.padding--no-right {\n padding-right: 0px;\n}\n\n.nav-tabs__input {\n height: 40px;\n position: absolute;\n width: 250px;\n right: 22px;\n top: 2px;\n}\n\n.nav-tabs__input--icon {\n position: absolute;\n right: 27px;\n top: 10px;\n font-size: 25px;\n color: var(--grey);\n}\n\n.calendar__icon {\n height: 20px;\n}\n\n.calendar__icon img {\n height: 20px;\n}\n\nh6 {\n color: black;\n}\n\n.txt-align--center {\n text-align: center;\n}\n\n.txt-align--right {\n text-align: right;\n}\n\n.icon__calendar {\n position: absolute;\n right: 3%;\n top: 51%;\n}\n\n/* DATATABLES MODIFY */\n.dataTables_paginate {\n display: none !important;\n}\n\ndiv.dataTables_wrapper {\n width: 100%;\n margin: 0 auto;\n}\n\n.table.dataTable thead .sorting:after {\n /*color: black !important;*/\n opacity: .5 !important;\n}\n\n.dataTables_wrapper.no-footer .dataTables_scrollBody {\n border: none;\n}\n\n\n\ndiv.dts div.dataTables_scrollBody,\ndiv.dts div.dataTables_scrollBody table {\n background-color: transparent !important;\n background: none;\n}\n\n/* BOOTSTRAP MODIFY */\n.form-group {\n position: relative;\n}\n.map__detail .nav-tabs>li {\n margin-bottom: -1px;\n}\n\n.btn-block+.btn-block {\n margin-top: 0px !important;\n}\n\n.form-group {\n margin-right: 5px;\n}\n\n.btn.active.focus,\n.btn.active:focus,\n.btn.focus,\n.btn:active.focus,\n.btn:active:focus,\n.btn:focus {\n outline: none;\n outline: none;\n outline-offset: 0;\n}\n\n.btn.focus,\n.btn:focus,\n.btn:hover {\n color: white;\n text-decoration: none;\n}\n\n.btn-group.open a {\n cursor: pointer !important;\n}\n\n.input-group-addon {\n width: 60px;\n font-weight: 550;\n}\n\n.input-group {\n margin-bottom: 5px;\n width: 100%;\n}\n\nlabel {\n margin-bottom: 5px !important;\n font-size: 16px;\n font-weight: normal;\n color: black;\n padding: 0px;\n}\n\ninput.form-control {\n height: 40px !important;\n font-size: 18px !important;\n font-weight: lighter;\n border-radius: 5px !important;\n background-color: white;\n}\n\ninput.form-control:required {\n border-left: 3px solid var(--green);\n}\n\ninput.form-control:hover:not(.border-red),\ninput.form-control:focus:not(.border-red) {\n border: 1px solid var(--green) !important;\n box-shadow: none;\n}\n\ninput.form-control:hover:required:not(.border-red), input.form-control:focus:required:not(.border-red) {\n border-left: 3px solid var(--green) !important;\n}\n\n.input-group input.form-control {\n border-top-right-radius: 0px !important;\n border-bottom-right-radius: 0px !important;\n}\n\nspan.input-group-addon {\n background-color: #E0E0E0 !important;\n color: black !important;\n width: 44px !important;\n padding: 0px !important;\n border: 1px solid #E0E0E0;\n}\n\n.input-group .form-control {\n z-index: 0 !important;\n}\n\nul.dropdown-menu {\n left: 5px !important;\n top: 117% !important;\n}\n\nul.dropdown-menu:before {\n position: absolute;\n left: 11.5%;\n transform: translateX(-50%);\n top: -7px;\n width: 0;\n height: 0;\n content: '';\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n border-bottom: 7px solid white;\n}\n\nul.nav-tabs li {\n text-align: center;\n font-size: 17px;\n font-weight: 550;\n min-width: 9.5vw;\n}\n\nul.nav-tabs {\n background-color: var(--lightgreen);\n border-bottom: 1px solid #d8d4d4;\n /*margin-bottom: 15px;*/\n}\n\nul.nav-tabs--bg-grey {\n background-color: #E0E0E0;\n}\n\nul.nav-tabs--bg-white {\n background-color: white;\n border-bottom: none;\n}\n\nul.nav-tabs li a {\n border: none;\n border-top: 6px solid transparent;\n border-left: 0;\n color: #686868;\n text-align: left;\n height: 45px;\n padding: 8px 30px;\n border-radius: 0px;\n margin-right: 0px;\n text-align: center;\n}\n\nul.nav-tabs li.active a {\n border-top: 6px solid #009999;\n border-left: 0;\n border-right: 0;\n color: black;\n}\n\nul.nav-tabs--bg-white li.active,\nul.nav-tabs--bg-white li.active a {\n background-color: var(--lightgrey);\n}\n\nul.nav-tabs li.active a:hover,\nul.nav-tabs li.active a:focus {\n border-top: 6px solid #009999;\n border-left: 0;\n border-right: 0;\n color: black;\n}\n\nul.nav-tabs--bg-white li.active a:hover,\nul.nav-tabs--bg-white li.active a:focus {\n background-color: var(--lightgrey);\n}\n\n\nul.nav-tabs li.tp__nav__btn a {\n background-color: var(--darkgreen);\n text-align: center;\n border-bottom: 1px solid black;\n}\n\n/* SELECT2 MODIFY */\n.select2-container .select2-selection--single {\n height: 42px !important;\n width: 100% !important;\n}\n\n.select2-container .select2-selection--single {\n height: 42px !important;\n width: 100% !important;\n}\n\n.select2-container {\n flex: 1 !important;\n}\n\n.select2-container {\n width: 100% !important;\n}\n\n.select2-container--default .select2-selection--single .select2-selection__rendered {\n line-height: 40px !important;\n font-size: 18px !important;\n font-weight: lighter !important;\n color: black !important;\n}\n\n.select2-container--default .select2-selection--single .select2-selection__arrow {\n height: 40px !important;\n}\n\n.select2-container--default .select2-selection--single {\n /*border-color: var(--green) !important;*/\n border-color: #ccc !important;\n}\n\n.map__detail .select2-container--default .select2-selection--single {\n /*border-color: var(--green) !important;*/\n border-color: #5B5B5B !important;\n}\n\n\n.select2-selection__rendered {\n height: 40px;\n}\n\n.select2-selection__arrow {\n height: 39px !important;\n background-color: #009999;\n color: white;\n width: 40px !important;\n border-bottom-right-radius: 4px;\n}\n\n.select2-selection__arrow b {\n border-color: white transparent transparent transparent !important;\n}\n\n/* VUE MULTISELECT MODIFTY */\n.multiselect {\n color: #555;\n}\n\n.multiselect__select {\n background-color: #009999;\n color: white;\n border-top-right-radius: 5px;\n border-bottom-right-radius: 5px;\n height: 40px !important;\n}\n\n.multiselect__select::before {\n border-color: white transparent transparent !important;\n}\n\n.multiselect__input,\n.multiselect__single {\n font-size: 18px !important;\n font-weight: lighter !important;\n color: black !important;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\nspan.multiselect__select {\n color: #555;\n}\n\nspan span.multiselect__single {\n color: #5555559c;\n}\n\n.multiselect__tags {\n border: 1px solid #ccc !important;\n}\n\n.multiselect.required .multiselect__tags{\n border-left: 3px solid var(--green) !important;\n}\n\n.map__detail .multiselect__tags {\n border-color: #5B5B5B !important;\n}\n\n.multiselect__tag {\n background-color: var(--green) !important;\n}\n\n.multiselect__tag-icon:hover {\n background-color: var(--darkgreen) !important;\n}\n\n.multiselect__option--selected.multiselect__option--highlight {\n background-color: var(--red) !important;\n}\n\n.multiselect__option--highlight {\n background-color: var(--green) !important;\n}\n\n.multiselect--above.multiselect--active .multiselect__tags {\n border-color: var(--green);\n}\n\n.multiselect--active .multiselect__select {\n border-bottom-left-radius: 5px;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n}\n\n.multiselect__input,\n.multiselect__single {\n min-height: 24px !important;\n line-height: 24px !important;\n}\n\n/*.multiselect__content-wrapper\n{\n position: sticky !important;\n}*/\n\n.multiselect__content-wrapper {\n z-index: 40 !important;\n}\n\n.map__detail .multiselect__content-wrapper {\n bottom: unset !important;\n top: 40px !important;\n\n border-top-left-radius: 0 !important;\n border-top-right-radius: 0 !important;\n border-bottom-left-radius: 5px !important;\n border-bottom-right-radius: 5px !important;\n border-top: none !important;\n border-bottom: 1px solid #e8e8e8 !important;\n\n max-height: 150px !important;\n\n z-index: 10;\n}\n\n.map__detail .multiselect__input,\n.map__detail .multiselect__single {\n color: white !important;\n}\n\n/* VUE-DATEPICKER MODIFY */\n.mx-datepicker {\n width: 100% !important;\n}\n\n.mx-calendar-content .cell.in,\n.mx-calendar-content .cell.hover-in {\n background-color: rgba(0, 153, 153, .1) !important;\n color: var(--darkgrey) !important;\n}\n\n.mx-datepicker svg {\n fill: var(--darkgreen);\n display: none;\n}\n\n.mx-calendar-content .cell.active {\n background-color: var(--darkgreen) !important;\n color: white !important;\n}\n\n.mx-range-wrapper {\n color: black;\n}\n\n.mx-time-column .mx-time-item.active {\n color: var(--darkgreen) !important;\n}\n\n.mx-table-date .today {\n color: var(--green) !important;\n}\n\n.mx-input:hover,\n.mx-input:focus {\n border-color: var(--green) !important;\n}\n\n.mx-input {\n border-radius: 0px;\n transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;\n height: 42px !important;\n font-size: 18px !important;\n font-weight: lighter;\n}\n\n.mx-input:disabled {\n border-radius: 0px;\n}\n\n.mx-datepicker.border-red input {\n border-color: var(--red);\n}\n\n.mx-datepicker.required input {\n border-left: 3px solid var(--green);\n}\n\n.mx-datepicker.required.border-red input {\n border-left: 3px solid var(--red);\n}\n\n.mx-datepicker.required.border-red input:hover, .mx-datepicker.required.border-red input:hover {\n border-color: var(--red) !important;\n}\n\n.mx-datepicker-popup {\n z-index: 20000 !important;\n}\n\n/* wTable */\n.w__table {\n width: 100% !important;\n}\n\n.w__table thead {\n /*background-color: var(--darkgrey);*/\n background-color: transparent !important;\n}\n\n.w__table--hover tbody tr:not(.w__table__tr__child):hover,\n.w__table--hover tbody tr.shown {\n cursor: pointer;\n background-color: var(--lightgrey);\n}\n\n.w__table--hover tbody tr:not(.w__table__tr__child):hover td:first-child {\n border-left: 4px solid var(--green);\n}\n\n.w__table thead th {\n /*\n color: black;\n font-size: 16px;\n */\n font-weight: bold !important;\n border-bottom: 1px solid var(--green) !important;\n\n /*padding: 5px !important;*/\n background-color: var(--darkgrey);\n color: white;\n font-size: 12px;\n}\n\n.dataTables_scrollHead th {\n padding: 5px !important;\n}\n\n.dataTables_scrollBody th {\n padding: 0px 5px !important;\n}\n\n.w__table tbody td {\n /*font-size: 16px;\n padding: 10px !important;*/\n font-size: 14px;\n padding: 5px 4px !important;\n\n color: black;\n vertical-align: middle !important;\n}\n\n.w__table tbody td:first-child {\n border-left: 4px solid transparent;\n}\n\n.w__table__td--bold {\n font-weight: 550;\n}\n\n.w__table__td--center {\n text-align: center;\n}\n\n.w__table__action__btn {\n background-color: var(--green);\n width: 25px;\n height: 25px;\n text-align: center;\n padding-top: 6px;\n font-size: 15px;\n border-radius: 5px;\n cursor: pointer;\n transition: all .5s;\n color: white;\n}\n\n.w__table__action__btn:hover,\n.w__table__action__btn--active {\n background-color: var(--darkgreen);\n}\n\n/* wPagination */\n\n.w__pagination {\n /*background-color: #404040;*/\n height: 50px;\n display: flex;\n align-items: center;\n}\n\n.w__pages__wrapper {\n overflow: hidden;\n /* text-align: center; */\n /* clear: both; */\n width: auto;\n margin: 0 auto;\n display: flex;\n align-items: center;\n}\n\n.w__pages__arrow {\n float: left;\n /*/margin-top: 8px;*/\n\n cursor: pointer;\n}\n\n.w__pages {\n float: left;\n}\n\n.w__page {\n float: left;\n color: black;\n font-size: 18px;\n width: 35px;\n height: 35px;\n padding-top: 5px;\n text-align: center;\n cursor: pointer;\n}\n\n.w__page--active {\n border-radius: 50%;\n background-color: #298F8F;\n color: white;\n}\n\n/* DefaultHeader, DetailHeader */\n\n.w__header {\n margin-bottom: 10px;\n border-bottom: 2px solid var(--lightgrey);\n padding-bottom: 10px;\n}\n\n.w__header-text {\n font-weight: 500 !important;\n color: var(--green) !important;\n font-size: 32px !important;\n /*padding-bottom: 10px !important;*/\n}\n\n.w__header-icon {\n /*background-color: white;\n\n height: 50px;\n width: 80px;\n margin: 0px 18px;*/\n margin-right: 10px;\n border-radius: 5px;\n text-align: center;\n}\n\n.w__header-icon img {\n max-height: 54px;\n border-radius: 50%;\n}\n\n.w__header-number {\n padding: 12px;\n background-color: var(--green);\n border-radius: 5px;\n color: white;\n font-size: 20px;\n font-weight: 550;\n margin-right: 15px;\n min-width: 52px;\n text-align: center;\n height: 50px;\n}\n\n.w__header-number--grey {\n background-color: var(--grey);\n}\n\n.w__back__btn {\n display: flex;\n align-items: center;\n cursor: pointer;\n border-right: 1px solid var(--grey);\n\n}\n\n.w__back__btn-img {\n width: 40px;\n height: 40px;\n}\n\n.w__back__btn-text {\n font-size: 25px;\n flex: 1;\n color: #888888;\n font-weight: lighter;\n padding: 0 15px;\n}\n\n/* ContentDetail */\n.w__content__detail {\n background-color: var(--lightgrey);\n padding: 15px;\n height: 100%;\n overflow: hidden;\n\n}\n\n.w__content__item {\n background-color: white;\n margin-bottom: 10px;\n position: relative;\n}\n\n.w__content__item--bg-transparent {\n background-color: transparent;\n}\n\n.w__content__detail .w__header {\n border-color: var(--lightgreen);\n}\n\n/* Content detail informations */\n.detail__informations__text {\n font-size: 18px;\n color: var(--green);\n font-weight: bold;\n}\n\n.detail__informations {\n display: flex;\n align-items: stretch;\n flex-wrap: wrap;\n height: 100%;\n flex-direction: column;\n}\n\n.detail__informations>* {\n flex: 1;\n}\n\n.detail__informations .form-group:last-child {\n margin-bottom: 0px;\n}\n\n.detail__informations__img {\n height: 100%;\n}\n\n.detail__informations__img img {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n height: 110px;\n}\n\n/* Buttons */\nbutton.btn {\n border-radius: 20px;\n /*\n border-top-left-radius: 5px !important;\n border-bottom-left-radius: 5px !important;\n */\n height: 40px;\n transition: background-color .5s;\n transition: all .5s;\n}\n\nbutton.btn.green {\n background-color: var(--green);\n color: white !important;\n}\n\nbutton.btn.green:hover {\n background-color: var(--darkgreen);\n}\n\nbutton.btn.darkgreen {\n background-color: var(--darkgreen);\n color: white;\n}\n\n\nbutton.btn.red {\n border-color: var(--red);\n background-color: white;\n color: var(--red);\n}\n\nbutton.btn.red--full {\n /*border-color: var(--red);*/\n background-color: var(--red);\n color: white;\n}\n\nbutton.btn.red--full:hover {\n background-color: #ab0101;\n}\n\nbutton.btn.red:hover {\n color: white;\n background-color: var(--red);\n}\n\nbutton.btn.orange {\n background-color: var(--orange);\n color: white;\n}\n\nbutton.btn.orange:hover {\n background-color: #da6c10;\n}\n\nbutton.btn.white {\n color: var(--green);\n background-color: white;\n border: 1px solid var(--green);\n}\n\nbutton.btn.white:hover {\n background-color: var(--green);\n color: white;\n}\n\n/* Checkbox */\n.w__checkbox {\n position: relative;\n margin-bottom: 10px;\n}\n\n.w__checkbox label {\n padding-left: 35px;\n cursor: pointer;\n font-size: 12px;\n}\n\n.w__checkbox input {\n position: absolute;\n opacity: 0;\n cursor: pointer;\n height: 0;\n width: 0;\n}\n\n.w__checkbox__checkmark {\n position: absolute;\n top: 0px;\n left: 0px;\n height: 25px;\n /*20*/\n width: 25px;\n /*20*/\n background-color: white;\n border: 1px solid var(--green);\n}\n\n.w__checkbox input:checked~.w__checkbox__checkmark {\n background-color: #009999;\n}\n\n.w__checkbox__checkmark:after {\n content: \"\";\n position: absolute;\n display: none;\n}\n\n.w__checkbox input:checked~.w__checkbox__checkmark:after {\n display: block;\n}\n\n.w__checkbox .w__checkbox__checkmark:after {\n left: 8px;\n top: 2px;\n width: 8px;\n height: 16px;\n border: solid white;\n border-width: 0 3px 3px 0;\n -webkit-transform: rotate(45deg);\n -ms-transform: rotate(45deg);\n transform: rotate(44deg);\n}\n\n/* Window control */\n.w__window__control {\n position: absolute;\n right: 20px;\n top: 8px;\n}\n\n.w__window__control img {\n width: 30px;\n height: 30px;\n cursor: pointer;\n}\n\n/* Map detail */\n.map__detail {\n position: absolute;\n width: 100%;\n height: 41vh;\n background-color: rgba(0, 0, 0, 0.8);\n bottom: 0;\n z-index: 5;\n overflow: hidden;\n}\n\n.map__detail--maximalize {\n height: 100vh;\n top: 6.4%;\n /* kvoli top header menu*/\n}\n\n.map__detail--maximalize .dataTables_scrollBody {\n max-height: 89.7vh !important;\n}\n\n.map__detail--minimalize {\n height: 10vh;\n}\n\n.map__detail__text {\n height: 45px;\n border-bottom: 1px solid black;\n font-size: 16px;\n color: white;\n text-align: center;\n line-height: 2.8;\n font-weight: 550;\n background-color: var(--darkgreen);\n}\n\n.map__detail__info {\n margin: 5px;\n background-color: var(--darkergrey);\n padding: 10px;\n min-height: 33vh;\n text-align: center;\n border-radius: 5px;\n}\n\n.map__detail .popup__body {\n padding: 0;\n background-color: transparent;\n padding-top: 10px;\n}\n\n.map__detail .w__header-icon {\n display: inline-block;\n height: 60px;\n width: 60px;\n}\n\n.map__detail .w__header-icon img {\n width: 30px;\n height: 60px;\n}\n\n.map__detail .w__header-text h5 {\n color: white !important;\n font-weight: 550 !important;\n text-align: center;\n}\n\n.map__detail .w__header-text h3 {\n color: white !important;\n font-weight: 550 !important;\n margin-bottom: 10px !important;\n}\n\n.map__detail .nav-tabs__input {\n right: 128px;\n}\n\n.map__detail .nav-tabs__input--icon {\n right: 135px;\n}\n\n/*.map__detail .select2-container\n{\n width: 150px !important;\n position: absolute;\n top: 2px;\n right: 500px;\n}*/\n\n.map__detail .select2-selection {\n background-color: var(--darkergrey);\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .select2-container--default .select2-selection--single .select2-selection__rendered {\n color: white !important;\n}\n\n.map__detail label {\n color: white;\n font-weight: 550;\n}\n\n.map__detail input.form-control {\n background-color: var(--darkergrey);\n color:\n /*var(--grey);*/\n white;\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .multiselect__tags {\n background-color: var(--darkergrey);\n border: 1px solid #5B5B5B;\n}\n\n.map__detail .multiselect__single {\n background-color: var(--darkergrey);\n color: var(--grey);\n}\n\n.map__detail .multiselect__input {\n background-color: var(--darkergrey);\n color: var(--grey);\n}\n\n.map__detail .mx-input {\n background-color: var(--darkergrey);\n color:\n /*var(--grey);*/\n white;\n border-color: #5B5B5B;\n /*border-radius: 5px;*/\n}\n\n.map__detail .input-group-addon-green {\n border-color: #5B5B5B;\n background-color: var(--green) !important;\n}\n\n.map__detail .input-group-addon {\n border-color: #5B5B5B;\n background-color: black;\n color: white;\n}\n\n.map__detail .calendar__icon {\n /*background: url(../img/wertyz/calendar-white-small.svg);*/\n background-repeat: no-repeat;\n background-position: center;\n height: 30px;\n background-size: 30px;\n}\n\n.map__detail ul.nav-tabs {\n background-color: var(--darkergrey);\n border-bottom: 1px solid black;\n}\n\n.map__detail ul.nav-tabs li a {\n color: var(--lightgrey);\n padding: 8px 27px;\n /*height: 45px;*/\n}\n\n.map__detail .nav-tabs li.active a,\n.map__detail .nav-tabs>li>a:hover {\n background-color: black;\n color: white !important;\n border-top: 6px solid var(--green);\n}\n\n.map__detail .w__content__item {\n height: 35.7vh;\n overflow-y: auto;\n overflow-x: hidden;\n margin: 0;\n padding: 10px;\n}\n\n.map__detail--maximalize .w__content__item {\n height: 94.7vh;\n /*height: 50vh;*/\n}\n\n.map__detail--minimalize {\n height: 5.2vh;\n}\n\n.map__detail--minimalize .w__content__item {\n display: none;\n}\n\n.map__detail--minimalize .map__detail__info {\n display: none;\n}\n\n.map__detail .w__table thead th {\n color: var(--green);\n font-weight: bold;\n font-size: 14px;\n}\n\n.map__detail .w__back__btn-img {\n position: absolute;\n left: 20px;\n top: 2px;\n cursor: pointer;\n}\n\n.map__detail .detail__page {\n color: white;\n}\n\n.map__detail .w__table {\n margin-top: 0px !important;\n}\n\n.map__detail .w__table thead {\n background-color: black !important;\n}\n\n.map__detail .w__table tbody td {\n color: white !important;\n border-color: #444 !important;\n}\n\n.map__detail .w__table--hover tbody tr:not(.w__table__tr__child):hover,\n.w__table--hover tbody tr.shown {\n cursor: pointer;\n background-color: var(--darkergrey)\n}\n\n.map__detail .dataTables_scrollHeadInner {\n background-color: black;\n}\n\n/* VUEJS TRANSITION */\n.fade-enter-active {\n transition: opacity 0.5s ease;\n}\n\n.fade-leave-active {\n opacity: 0;\n}\n\n.fade-enter-from,\n.fade-leave-to {\n opacity: 0;\n}\n\n.slide-enter-active {\n -moz-transition-duration: 1s;\n -webkit-transition-duration: 1;\n -o-transition-duration: 1s;\n transition-duration: 1s;\n -moz-transition-timing-function: ease-in;\n -webkit-transition-timing-function: ease-in;\n -o-transition-timing-function: ease-in;\n transition-timing-function: ease-in;\n}\n\n.slide-leave-active {\n -moz-transition-duration: 1s;\n -webkit-transition-duration: 1s;\n -o-transition-duration: 1s;\n transition-duration: 1s;\n -moz-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n -webkit-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n -o-transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n transition-timing-function: cubic-bezier(0, 1, 0.5, 1);\n}\n\n.slide-enter-to,\n.slide-leave {\n max-height: 45vh;\n overflow: hidden;\n}\n\n.slide-enter,\n.slide-leave-to {\n overflow: hidden;\n max-height: 0;\n}\n\n.scale-enter-active,\n.scale-leave-active {\n transition: all 0.5s ease;\n}\n\n.scale-enter-from,\n.scale-leave-to {\n opacity: 0;\n transform: scale(0.9);\n}\n\n.slideside-enter-active,\n.slideside-leave-active {\n transition: all 0.75s ease-out;\n}\n\n.slideside-enter-to {\n position: absolute;\n right: 0;\n}\n\n.slideside-enter-from {\n position: absolute;\n right: -100%;\n}\n\n.slideside-leave-to {\n position: absolute;\n left: -100%;\n}\n\n.slideside-leave-from {\n position: absolute;\n left: 0;\n}\n\n.scale-slide-enter-active,\n.scale-slide-leave-active {\n position: absolute;\n transition: all 0.85s ease;\n}\n\n.scale-slide-enter-from {\n left: -100%;\n}\n\n.scale-slide-enter-to {\n left: 0%;\n}\n\n.scale-slide-leave-from {\n transform: scale(1);\n}\n\n.scale-slide-leave-to {\n transform: scale(0.8);\n}\n\n.modal-enter {\n opacity: 0;\n}\n\n.modal-leave-active {\n opacity: 0;\n}\n\n.modal-enter .modal-container,\n.modal-leave-active .modal-container {\n -webkit-transform: scale(1.1);\n transform: scale(1.1);\n}\n\n/* END VUEJS TRANSITION */\n\n/* OPEN LAYERS MODIFY */\n.ol-control button {\n width: 2.5em;\n height: 2.5em;\n}\n\n/* SCROLLBAR */\n\n.scrollbar::-webkit-scrollbar,\n.dataTables_scrollBody::-webkit-scrollbar {\n width: 10px;\n}\n\n.scrollbar::-webkit-scrollbar-track,\n.dataTables_scrollBody::-webkit-scrollbar-track {\n background: black;\n border-radius: 5px;\n}\n\n.scrollbar::-webkit-scrollbar-thumb,\n.dataTables_scrollBody::-webkit-scrollbar-thumb {\n background: #009999;\n border-radius: 5px;\n}\n\n.scrollbar::-webkit-scrollbar-thumb:hover,\n.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {\n background: #1A5D5C;\n}\n\n/* MAP */\n.ol-popup {\n position: absolute;\n background-color: #333;\n -webkit-filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));\n filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.2));\n /*border-radius: 10px;*/\n /*border: 1px solid var(--green) !important;*/\n border: none !important;\n bottom: 12px;\n left: -140px !important;\n min-width: 280px;\n padding: 0 !important;\n display: block !important;\n /*box-shadow: 1px 1px 12px 1px black;*/\n box-shadow: 0px 0px 0px 1px #009999;\n\n /*border-radius: 5px;*/\n /*max-width: 510px;*/\n}\n\n.ol-popup:after,\n.ol-popup:before {\n top: 100%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.ol-popup:after {\n border-top-color: #4E4E4E !important;\n border-width: 5px !important;\n left: 50% !important;\n margin-left: -5px !important;\n}\n\n.ol-popup:before {\n border-top-color: var(--green) !important;\n border-width: 6px !important;\n left: 50% !important;\n margin-left: -6px !important;\n}\n\n.popup__header {\n background-color: #231F20;\n padding: 5px;\n display: flex;\n align-items: center;\n}\n\n.popup__header__img {\n background-color: white;\n border-radius: 5px;\n height: 40px;\n width: 40px;\n text-align: center;\n margin-right: 10px;\n}\n\n.popup__header__img img {\n height: 35px;\n width: 35px;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.popup__header__text {\n flex: 1;\n color: white;\n}\n\n.popup__header__text-big {\n font-size: 15px;\n font-weight: 550;\n display: block;\n}\n\n.popup__header__text-small {\n font-size: 12px;\n color: var(--green);\n display: block;\n}\n\n.popup__header__close {\n width: 20px;\n position: absolute;\n right: 0;\n top: 2px;\n cursor: pointer;\n}\n\n.popup__subheader {\n background-color: black;\n color: white;\n font-size: 15px;\n padding: 5px;\n text-align: center;\n}\n\n.popup__body {\n padding: 10px 5px;\n background-color: #4E4E4E;\n}\n\n.popup__body__button {\n background-color: #343434;\n width: 100%;\n height: 30px;\n margin-bottom: 8px;\n display: flex;\n align-items: center;\n border-radius: 15px;\n cursor: pointer;\n position: relative;\n}\n\n.popup__body__button--hover:hover {\n background-color: black;\n}\n\n.popup__body__button--selected {\n background-color: black;\n border: 1px solid #009999;\n}\n\n.popup__body__button--bg-red {\n background-color: var(--red);\n}\n\n.popup__body__button--bg-green {\n background-color: var(--green);\n}\n\n.popup__body__button-img {\n background-color: black;\n height: 28px;\n width: 28px;\n border-radius: 50%;\n text-align: center;\n position: absolute;\n}\n\n.popup__body__name {\n color: white;\n font-weight: 550;\n margin-top: 5px;\n font-size: 14px;\n}\n\n.popup__body__header {\n margin-top: 5px;\n background-color: transparent;\n text-align: center;\n border-bottom: 2px solid var(--green);\n color: white;\n padding: 10px;\n font-weight: 550;\n}\n\n.popup__body__text {\n color: #009999;\n font-size: 14px;\n}\n\n.popup__body__button--bg-red .popup__body__button-img {\n background-color: #8E1011;\n}\n\n.popup__body__button-img img {\n height: 19px;\n width: 18px;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.popup__body__button--bg-red .popup__body__button-img img {\n height: 28px;\n width: 28px;\n}\n\n.popup__body__button-text {\n color: white;\n flex: 1;\n text-align: center;\n font-size: 13px;\n font-weight: 550;\n}\n\n.popup__body__button-number {\n color: white;\n position: absolute;\n z-index: 5;\n left: 9px;\n top: 6px;\n font-size: 9px;\n width: 10px;\n text-align: center;\n}\n\n.ol-popup table {\n margin-bottom: 0px;\n}\n\n.ol-popup .popup__table-wrapper {\n max-height: 200px;\n overflow-y: auto;\n padding-top: 0px;\n padding: 0px;\n background-color: black;\n}\n\n.ol-popup table thead {\n background-color: black;\n color: white;\n}\n\n.ol-popup table th {\n position: sticky;\n top: 0;\n background-color: black;\n}\n\n.ol-popup table td {\n color: black;\n background-color: #D2E8E6;\n}\n\n/* TOASTIFICATION MODIFY */\n.Vue-Toastification__toast--info\n{\n background-color: var(--darkblue) !important;\n}\n\n.Vue-Toastification__toast--success\n{\n background-color: var(--green) !important;\n}\n\n.Vue-Toastification__toast--error\n{\n background-color: var(--red) !important;\n}\n\n.Vue-Toastification__toast--warning\n{\n background-color: var(--orange) !important;\n}\n\n/* Radio button */\n.control {\n font-family: arial;\n display: block;\n position: relative;\n padding-left: 30px;\n margin-bottom: 5px;\n padding-top: 2px;\n cursor: pointer;\n font-size: 14px;\n}\n .control input {\n position: absolute;\n z-index: -1;\n opacity: 0;\n }\n.control_indicator {\n position: absolute;\n top: 2px;\n left: 0;\n height: 20px;\n width: 20px;\n background: #e6e6e6;\n border: 0px solid #000000;\n border-radius: undefinedpx;\n}\n.control:hover input ~ .control_indicator,\n.control input:focus ~ .control_indicator {\n background: #cccccc;\n}\n\n.control input:checked ~ .control_indicator {\n background: #009999;\n}\n.control:hover input:not([disabled]):checked ~ .control_indicator,\n.control input:checked:focus ~ .control_indicator {\n background: #0e6647d;\n}\n.control input:disabled ~ .control_indicator {\n background: #e6e6e6;\n opacity: 0.6;\n pointer-events: none;\n}\n.control_indicator:after {\n box-sizing: unset;\n content: '';\n position: absolute;\n display: none;\n}\n.control input:checked ~ .control_indicator:after {\n display: block;\n}\n.control-radio .control_indicator {\n border-radius: 20%;\n}\n\n.control-radio .control_indicator:after {\n left: 7px;\n top: 7px;\n height: 6px;\n width: 6px;\n border-radius: 50%;\n background: #ffffff;\n transition: background 250ms;\n}\n.control-radio input:disabled ~ .control_indicator:after {\n background: #7b7b7b;\n}.control-radio .control_indicator::before {\n content: '';\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n width: 4.5rem;\n height: 4.5rem;\n margin-left: -1.3rem;\n margin-top: -1.3rem;\n background: #009999;\n border-radius: 3rem;\n opacity: 0.6;\n z-index: 99999;\n transform: scale(0);\n}\n@keyframes s-ripple {\n 0% {\n opacity: 0;\n transform: scale(0);\n }\n 20% {\n transform: scale(1);\n }\n 100% {\n opacity: 0.01;\n transform: scale(1);\n }\n}\n@keyframes s-ripple-dup {\n 0% {\n transform: scale(0);\n }\n 30% {\n transform: scale(1);\n }\n 60% {\n transform: scale(1);\n }\n 100% {\n opacity: 0;\n transform: scale(1);\n }\n}\n.control-radio input + .control_indicator::before {\n animation: s-ripple 250ms ease-out;\n}\n.control-radio input:checked + .control_indicator::before {\n animation-name: s-ripple-dup;\n}\n\n.control-group {\n display: flex;\n justify-content: space-evenly;\n}\n\n.control-disabled {\n text-decoration: line-through;\n cursor: default;\n color: var(--grey);\n}",""]);const r=s},865:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>r});var i=n(81),o=n.n(i),a=n(645),s=n.n(a)()(o());s.push([t.id,"@media screen and (max-width: 767px) {\n .d-flex {\n flex-direction: column;\n }\n\n #right-content {\n position: absolute;\n width: 100% !important;\n top: 50px;\n }\n\n #main-content {\n min-width: 100%;\n }\n\n ul.nav-tabs {\n display: flex;\n overflow-y: hidden;\n }\n\n ul.nav-tabs li {\n min-width: auto;\n }\n\n .w__modal__content {\n width: 95% !important;\n max-height: 99%;\n overflow-y: auto;\n }\n\n .w__header {\n margin-bottom: 50px;\n position: relative;\n }\n\n .btn {\n margin-bottom: 10px;\n }\n\n #w-menu {\n height: 100%;\n overflow-y: auto;\n top: 0;\n }\n\n .menu__content {\n height: 100%;\n }\n\n .menu__footer {\n position: relative;\n }\n\n /* MULTISELECT MODIFY */\n .multiselect__option--highlight {\n \n }\n}",""]);const r=s},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,i,o,a){"string"==typeof t&&(t=[[null,t,void 0]]);var s={};if(i)for(var r=0;r<this.length;r++){var l=this[r][0];null!=l&&(s[l]=!0)}for(var c=0;c<t.length;c++){var d=[].concat(t[c]);i&&s[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),e.push(d))}},e}},81:t=>{"use strict";t.exports=function(t){return t[1]}},41:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA3LjgxIDE0LjI0Ij48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9PC9zdHlsZT48L2RlZnM+PGcgaWQ9IlZyc3R2YV8yIiBkYXRhLW5hbWU9IlZyc3R2YSAyIj48ZyBpZD0iTGF5ZXJfNyIgZGF0YS1uYW1lPSJMYXllciA3Ij48cG9seWdvbiBjbGFzcz0iY2xzLTEiIHBvaW50cz0iMC45OSAzLjU2IDQuOSA3LjEyIDAuOTkgMTAuNjggMCAxMS41OCAwIDE0LjI0IDMuOTEgMTAuNjggNy44MiA3LjEyIDMuOTEgMy41NiAwIDAgMCAyLjY2IDAuOTkgMy41NiIvPjwvZz48L2c+PC9zdmc+"},835:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MSA0MSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmY7c3Ryb2tlOiM4ODg7c3Ryb2tlLW1pdGVybGltaXQ6MTA7fS5jbHMtMntmaWxsOiM4ODg7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJWcnN0dmFfMiIgZGF0YS1uYW1lPSJWcnN0dmEgMiI+PGcgaWQ9IkxheWVyXzciIGRhdGEtbmFtZT0iTGF5ZXIgNyI+PGNpcmNsZSBjbGFzcz0iY2xzLTEiIGN4PSIyMC41IiBjeT0iMjAuNSIgcj0iMjAiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Ik0xMC4xNCwyMC4yMmwtLjEyLjIzczAsLjA4LDAsLjEzYTEuNjgsMS42OCwwLDAsMC0uMDcuMjQuNTMuNTMsMCwwLDAsMCwuMTIsMS42NCwxLjY0LDAsMCwwLDAsLjM4aDBhMS41LDEuNSwwLDAsMCwwLC4zNy41LjUsMCwwLDAsMCwuMTMsMi4xNywyLjE3LDAsMCwwLC4wNy4yNGMwLC4wNSwwLC4wOSwwLC4xM2wuMTIuMjIuMDcuMTFzMCwwLDAsMEwxNSwyOS4wNmEyLjEyLDIuMTIsMCwxLDAsMy40Mi0yLjQ5bC0yLjI4LTMuMTNIMjkuNjdhMi4xMiwyLjEyLDAsMCwwLDAtNC4yM0gxNi4wOWwyLjI4LTMuMTNhMi4xLDIuMSwwLDAsMC0uNDctMi45NSwyLDIsMCwwLDAtMS4yNC0uNDEsMi4xMiwyLjEyLDAsMCwwLTEuNzEuODdsLTQuNzIsNi40OXMwLDAsMCwwQS42MS42MSwwLDAsMSwxMC4xNCwyMC4yMloiLz48L2c+PC9nPjwvc3ZnPg=="},800:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC4wNyAyNC4wNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsLW9wYWNpdHk6MC44NTt9LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6I2MxYzFjMTtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48ZyBpZD0iVnJzdHZhXzIiIGRhdGEtbmFtZT0iVnJzdHZhIDIiPjxnIGlkPSJMYXllcl83IiBkYXRhLW5hbWU9IkxheWVyIDciPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTIuMDQiIGN5PSIxMi4wNCIgcj0iMTIuMDQiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjYuMzMiIHk9IjYuODUiIHdpZHRoPSIxMS40MSIgaGVpZ2h0PSIxMC4zOCIgcng9IjEiLz48L2c+PC9nPjwvc3ZnPg=="},436:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNC4wNyAyNC4wNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsLW9wYWNpdHk6MC44NTt9LmNscy0ye2ZpbGw6bm9uZTtzdHJva2U6I2MxYzFjMTtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4O308L3N0eWxlPjwvZGVmcz48ZyBpZD0iVnJzdHZhXzIiIGRhdGEtbmFtZT0iVnJzdHZhIDIiPjxnIGlkPSJMYXllcl83IiBkYXRhLW5hbWU9IkxheWVyIDciPjxjaXJjbGUgY2xhc3M9ImNscy0xIiBjeD0iMTIuMDQiIGN5PSIxMi4wNCIgcj0iMTIuMDQiLz48bGluZSBjbGFzcz0iY2xzLTIiIHgxPSI2LjQ1IiB5MT0iMTYuMzUiIHgyPSIxNy45IiB5Mj0iMTYuMzUiLz48L2c+PC9nPjwvc3ZnPg=="},36:(t,e,n)=>{"use strict";n.d(e,{Z:()=>i});const i="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJWcnN0dmFfMiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgMjEuNjQgMjEuNjQiPjxkZWZzPjxzdHlsZT4uY2xzLTF7ZmlsbDpyZWQ7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJMYXllcl83Ij48Zz48cmVjdCBjbGFzcz0iY2xzLTEiIHg9Ii0yLjExIiB5PSI4LjQ0IiB3aWR0aD0iMjUuODUiIGhlaWdodD0iNC43NSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTQuNDggMTAuODIpIHJvdGF0ZSgtNDUpIi8+PHJlY3QgY2xhc3M9ImNscy0xIiB4PSItMi4xMSIgeT0iOC40NCIgd2lkdGg9IjI1Ljg1IiBoZWlnaHQ9IjQuNzUiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjgyIC00LjQ4KSByb3RhdGUoNDUpIi8+PC9nPjwvZz48L3N2Zz4="},744:(t,e)=>{"use strict";e.Z=(t,e)=>{const n=t.__vccOpts||t;for(const[t,i]of e)n[t]=i;return n}},816:(t,e,n)=>{var i=n(295);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("5f0d96f0",i,!1,{})},751:(t,e,n)=>{var i=n(754);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("e155272a",i,!1,{})},565:(t,e,n)=>{var i=n(37);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("8a386ace",i,!1,{})},310:(t,e,n)=>{var i=n(887);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2222a175",i,!1,{})},802:(t,e,n)=>{var i=n(942);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("6f2f3c42",i,!1,{})},986:(t,e,n)=>{var i=n(581);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("7937aec0",i,!1,{})},611:(t,e,n)=>{var i=n(229);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2cce24bc",i,!1,{})},926:(t,e,n)=>{var i=n(458);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("2942d870",i,!1,{})},32:(t,e,n)=>{var i=n(781);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("76e62494",i,!1,{})},967:(t,e,n)=>{var i=n(333);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("1e7d399b",i,!1,{})},341:(t,e,n)=>{var i=n(522);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("3e0b99e7",i,!1,{})},34:(t,e,n)=>{var i=n(718);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("560cb020",i,!1,{})},724:(t,e,n)=>{var i=n(790);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("4cb94118",i,!1,{})},687:(t,e,n)=>{var i=n(45);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("5fe0d6d0",i,!1,{})},242:(t,e,n)=>{var i=n(685);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("175dda0a",i,!1,{})},276:(t,e,n)=>{var i=n(940);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("e5c43840",i,!1,{})},67:(t,e,n)=>{var i=n(176);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("7de428ec",i,!1,{})},737:(t,e,n)=>{var i=n(865);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals),(0,n(346).Z)("6085b328",i,!1,{})},346:(t,e,n)=>{"use strict";function i(t,e){for(var n=[],i={},o=0;o<e.length;o++){var a=e[o],s=a[0],r={id:t+":"+o,css:a[1],media:a[2],sourceMap:a[3]};i[s]?i[s].parts.push(r):n.push(i[s]={id:s,parts:[r]})}return n}n.d(e,{Z:()=>g});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},s=o&&(document.head||document.getElementsByTagName("head")[0]),r=null,l=0,c=!1,d=function(){},h=null,u="data-vue-ssr-id",p="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function g(t,e,n,o){c=n,h=o||{};var s=i(t,e);return m(s),function(e){for(var n=[],o=0;o<s.length;o++){var r=s[o];(l=a[r.id]).refs--,n.push(l)}for(e?m(s=i(t,e)):s=[],o=0;o<n.length;o++){var l;if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete a[l.id]}}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=a[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(b(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(o=0;o<n.parts.length;o++)s.push(b(n.parts[o]));a[n.id]={id:n.id,refs:1,parts:s}}}}function f(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function b(t){var e,n,i=document.querySelector("style["+u+'~="'+t.id+'"]');if(i){if(c)return d;i.parentNode.removeChild(i)}if(p){var o=l++;i=r||(r=f()),e=y.bind(null,i,o,!1),n=y.bind(null,i,o,!0)}else i=f(),e=v.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var _,x=(_=[],function(t,e){return _[t]=e,_.filter(Boolean).join("\n")});function y(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=x(e,o);else{var a=document.createTextNode(o),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(a,s[e]):t.appendChild(a)}}function v(t,e){var n=e.css,i=e.media,o=e.sourceMap;if(i&&t.setAttribute("media",i),h.ssrId&&t.setAttribute(u,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},748:e=>{"use strict";e.exports=t}},n={};function i(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,exports:{}};return e[t](a,a.exports,i),a.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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})};var o={};return(()=>{"use strict";i.r(o),i.d(o,{WertyzChartContent:()=>dn,WertyzConfirmationWindow:()=>qe,WertyzContent:()=>s,WertyzDetailContent:()=>Y,WertyzDetailHeader:()=>L,WertyzDetailNavbar:()=>j,WertyzHeader:()=>rt,WertyzListContent:()=>te,WertyzListNavbar:()=>yt,WertyzLoader:()=>se,WertyzMenu:()=>De,WertyzMobileMenu:()=>ze,WertyzModal:()=>Re,WertyzPieChart:()=>Fl,WertyzQuickFilter:()=>Ze,WertyzSmallLoader:()=>Fe,WertyzTable:()=>Kt,default:()=>Hl,wAjax:()=>Rl,wMap:()=>jl,wMixin:()=>at});var t=i(748);const e={id:"wertyz-content"},n={name:"WertyzContent"};i(802);var a=i(744);const s=(0,a.Z)(n,[["render",function(n,i,o,a,s,r){return(0,t.openBlock)(),(0,t.createElementBlock)("div",e,[(0,t.renderSlot)(n.$slots,"header",{},void 0,!0),(0,t.renderSlot)(n.$slots,"content",{},void 0,!0),(0,t.renderSlot)(n.$slots,"footer",{},void 0,!0)])}],["__scopeId","data-v-414af972"]]),r={id:"wertyz-detail-content",class:"w__content__detail"},l={class:"w__header"},c={class:"row padding-no d-flex d-flex--v-center"},d={class:"col-lg-2"},h=["src"],u={class:"w__back__btn-text"},p={class:"col-lg-6 d-flex d-flex--v-center padding--no-left"},g=["src"],m={class:"w__header-text"},f={class:"col-lg-2"},b={class:"col-lg-2"},_={name:"WertyzDetailHeaderDesktop",props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},backImageUrl:{type:String,default:null},imgClass:{type:String,default:null}}},x=(0,a.Z)(_,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("header",l,[(0,t.createElementVNode)("div",c,[(0,t.createElementVNode)("div",d,[(0,t.createVNode)(r,{to:i.backUrl,class:"disable-decoration w__back__btn"},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("img",{class:"w__back__btn-img",src:i.backImageUrl},null,8,h),(0,t.createElementVNode)("span",u,(0,t.toDisplayString)(e.$t("back")),1)])),_:1},8,["to"])]),(0,t.createElementVNode)("div",p,[i.img?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["w__header-icon",i.imgClass])},[(0,t.createElementVNode)("img",{src:i.img},null,8,g)],2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",m,[(0,t.createElementVNode)("h2",null,(0,t.toDisplayString)(i.name),1)])]),(0,t.createElementVNode)("div",f,[i.firstBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.firstBtn.class]),onClick:n[0]||(n[0]=t=>e.$emit("first-btn-action"))},(0,t.toDisplayString)(i.firstBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)]),(0,t.createElementVNode)("div",b,[i.secondBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.secondBtn.class]),onClick:n[1]||(n[1]=t=>e.$emit("second-btn-action"))},(0,t.toDisplayString)(i.secondBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)])])])}]]),y={class:"w__header"},v={class:"row padding-no d-flex d-flex--v-center flex-direction--row"},w={class:"col-lg-2"},k=["src"],M=(e=>((0,t.pushScopeId)("data-v-ea7667be"),e=e(),(0,t.popScopeId)(),e))((()=>(0,t.createElementVNode)("span",{class:"w__back__btn-text"},null,-1))),S={class:"col-lg-6 d-flex d-flex--v-center padding--no-left flex-direction--row"},C=["src"],A={class:"w__header-text"},E={class:"row d-flex d-flex--v-center absolute-row"},D={class:"col-xs-6"},I={class:"col-xs-6"},P={name:"WertyzDetailHeaderMobile",props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},backImageUrl:{type:String,default:null},imgClass:{type:String,default:null}}};i(986);const z={name:"WertyzDetailHeader",components:{WertyzDetailHeaderDesktop:x,WertyzDetailHeaderMobile:(0,a.Z)(P,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("header",y,[(0,t.createElementVNode)("div",v,[(0,t.createElementVNode)("div",w,[(0,t.createVNode)(r,{to:i.backUrl,class:"disable-decoration w__back__btn"},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("img",{class:"w__back__btn-img",src:i.backImageUrl},null,8,k),M])),_:1},8,["to"])]),(0,t.createElementVNode)("div",S,[i.img?((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:(0,t.normalizeClass)(["w__header-icon",i.imgClass])},[(0,t.createElementVNode)("img",{src:i.img},null,8,C)],2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",A,[(0,t.createElementVNode)("h2",null,(0,t.toDisplayString)(i.name),1)])])]),(0,t.createElementVNode)("div",E,[(0,t.createElementVNode)("div",D,[i.firstBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.firstBtn.class]),onClick:n[0]||(n[0]=t=>e.$emit("first-btn-action"))},(0,t.toDisplayString)(i.firstBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)]),(0,t.createElementVNode)("div",I,[i.secondBtn.name?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.secondBtn.class]),onClick:n[1]||(n[1]=t=>e.$emit("second-btn-action"))},(0,t.toDisplayString)(i.secondBtn.name),3)):(0,t.createCommentVNode)("v-if",!0)])])])}],["__scopeId","data-v-ea7667be"]])},props:{backUrl:{type:[String,Object],default:null},name:{type:String,default:null},secondBtn:{type:Object,default:{name:null,class:null}},firstBtn:{type:Object,default:{name:null,class:null}},img:{type:String,default:null},imgClass:{type:String,default:null}},data:()=>({backImageUrl:i(835).Z,url:null}),created(){this.backUrl?this.url=this.backUrl:this.url=this.$router.options.history.state.back?this.$router.options.history.state.back:""}},L=(0,a.Z)(z,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzDetailHeaderDesktop"),l=(0,t.resolveComponent)("WertyzDetailHeaderMobile");return e.IS_MOBILE?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1,"back-url":a.url,name:i.name,"second-btn":i.secondBtn,"first-btn":i.firstBtn,img:i.img,"img-class":i.imgClass,"back-image-url":a.backImageUrl,onFirstBtnAction:t=>"first-btn-action",onSecondBtnAction:t=>"second-btn-action"},null,8,["back-url","name","second-btn","first-btn","img","img-class","back-image-url"])):((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,"back-url":a.url,name:i.name,"second-btn":i.secondBtn,"first-btn":i.firstBtn,"img-class":i.imgClass,img:i.img,"back-image-url":a.backImageUrl,onFirstBtnAction:t=>"first-btn-action",onSecondBtnAction:t=>"second-btn-action"},null,8,["back-url","name","second-btn","first-btn","img-class","img","back-image-url"]))}]]),T={id:"wertyz-detail-navbar"},O={class:"row"},B={class:"col-lg-12"},N={class:"nav nav-tabs"},F=["onClick"],V={href:"#"},R={class:"w__content__item shadow",style:{padding:"10px"}},W={name:"WertyzDetailNavbar",props:{items:{type:Array,default:[{name:"Item name",active:!0,componentName:null}]}},data:()=>({componentName:null}),methods:{changeTab(t){this.componentName=t}},mounted(){this.items.forEach((t=>t.active?this.componentName=t.componentName:null))}},j=(0,a.Z)(W,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",T,[(0,t.createElementVNode)("div",O,[(0,t.createElementVNode)("div",B,[(0,t.createElementVNode)("ul",N,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{"data-toggle":"tab",class:(0,t.normalizeClass)(e.active?"active":""),onClick:t=>s.changeTab(e.componentName)},[(0,t.createElementVNode)("a",V,(0,t.toDisplayString)(e.name),1)],10,F)))),256))])])]),(0,t.createElementVNode)("div",R,[(0,t.renderSlot)(e.$slots,"item-component",{componentName:a.componentName})])])}]]),H={name:"WertyzDetailContent",components:{WertyzDetailHeader:L,WertyzDetailNavbar:j,WertyzContent:s},props:{headerName:{type:String,default:"Header name"},headerImg:{type:String,default:null},headerFirstBtn:{type:Object,default:{name:null,class:null}},headerSecondBtn:{type:Object,default:{name:null,class:null}},headerBackUrl:{type:[String,Object],default:null},headerImgClass:{type:String,default:null},navbarItems:{type:Array,default:null}}},Y=(0,a.Z)(H,[["render",function(e,n,i,o,a,s){const l=(0,t.resolveComponent)("WertyzDetailHeader"),c=(0,t.resolveComponent)("WertyzDetailNavbar"),d=(0,t.resolveComponent)("WertyzContent");return(0,t.openBlock)(),(0,t.createElementBlock)("div",r,[(0,t.createVNode)(d,null,{header:(0,t.withCtx)((()=>[(0,t.createVNode)(l,{name:i.headerName,img:i.headerImg,"first-btn":i.headerFirstBtn,"second-btn":i.headerSecondBtn,"back-url":i.headerBackUrl,"img-class":i.headerImgClass,onFirstBtnAction:n[0]||(n[0]=t=>e.$emit("header-first-btn-action")),onSecondBtnAction:n[1]||(n[1]=t=>e.$emit("header-second-btn-action"))},null,8,["name","img","first-btn","second-btn","back-url","img-class"])])),content:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"informations"),i.navbarItems?((0,t.openBlock)(),(0,t.createBlock)(c,{key:0,items:i.navbarItems},{"item-component":(0,t.withCtx)((({componentName:n})=>[(0,t.renderSlot)(e.$slots,"navbar-item-component",{componentName:n})])),_:3},8,["items"])):(0,t.createCommentVNode)("v-if",!0)])),_:3})])}]]),Z={key:0,class:"w__header"},U={class:"row"},G={class:"col-lg-7"},X={class:"w__header-text"},Q={class:"col-lg-3 d-flex d-flex--v-center"},J={class:"col-lg-2 d-flex d-flex--v-center"},K={class:"row"},q={class:"col-lg-12"},tt={key:1,style:{position:"relative","margin-bottom":"10px"}},et={class:"row d-flex d-flex--v-center",style:{"flex-direction":"row",margin:"0"}},nt={class:"col-xs-7 padding--no"},it={class:"w__header-text"},ot={class:"col-xs-5"},at={data:()=>({isMinimalize:!1,isMaximalize:!1}),methods:{addZero:t=>t>9?t:"0"+t,removeAccent:t=>t.normalize("NFD").replace(/[\u0300-\u036f]/g,""),convertUTCToDate(t){let e;return e=t instanceof Date?t:new Date(1e3*t),e.getFullYear()+"-"+this.addZero(e.getMonth()+1)+"-"+this.addZero(e.getDate())},disabledDateOlderThanTodayOrValidTo(t){let e=new Date;return t<new Date(e.getFullYear(),e.getMonth(),e.getDate())||t>this.validTo&&null!==this.validTo},disabledDateOlderThanTodayOrValidFrom(t){let e=new Date;return t<new Date(e.getFullYear(),e.getMonth(),e.getDate())||t<this.validFrom&&null!==this.validFrom},convertTimeToSeconds(t){let e=t.split(":");return 3600*+e[0]+60*+e[1]},convertTimeSecondsToString(t){let e;return e=t instanceof Date?t:new Date(1e3*t),t?this.addZero(e.getUTCHours())+":"+this.addZero(e.getUTCMinutes()):"00:00"},convertSecondsToString(t){let e=t/3600,n=Math.floor(e),i=Math.round(60*(e-n));return this.addZero(n)+"h. "+this.addZero(i)+"min."},convertUTCSecondsToHHMMSS(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getUTCHours())+":"+this.addZero(e.getUTCMinutes())+":"+this.addZero(e.getUTCSeconds())},convertSecondsToDateStringSTN(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getDate())+"."+this.addZero(e.getMonth()+1)+"."+e.getFullYear()},convertUTCToDDMMYYYYHHMMSS(t){let e;return e=t instanceof Date?t:new Date(1e3*t),this.addZero(e.getDate())+"."+this.addZero(e.getMonth()+1)+"."+e.getFullYear()+" "+this.addZero(e.getHours())+":"+this.addZero(e.getMinutes())+":"+this.addZero(e.getSeconds())},getUTCDate(){let t=new Date;return new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()},isValid(t,e){let n=(new Date).getTime()/1e3,i=null,o=null;return i=t instanceof Date?t.getTime()/1e3:t,o=e instanceof Date?e.getTime()/1e3:e,i<n&&o>n},isValidInFuture(t,e){let n=(new Date).getTime()/1e3,i=null,o=null;return i=t instanceof Date?t.getTime()/1e3:t,o=e instanceof Date?e.getTime()/1e3:e,i>n&&o>n},checkOverlap:(t,e)=>t.validFrom<=e.validFrom&&e.validFrom<=t.validTo||t.validFrom<=e.validTo&&e.validTo<=t.validTo||e.validFrom<t.validFrom&&t.validTo<e.validTo,isJson(t){try{JSON.parse(t)}catch(t){return!1}return!0},getActualUTCTimestamp:()=>Math.floor((new Date).getTime()/1e3),hexToRgbA(t){let e;if(/^#([A-Fa-f0-9]{3}){1,2}$/.test(t))return e=t.substring(1).split(""),3==e.length&&(e=[e[0],e[0],e[1],e[1],e[2],e[2]]),e="0x"+e.join(""),"rgba("+[e>>16&255,e>>8&255,255&e].join(",")+",0.3)"},searchInData(t,e){let n=this.removeAccent(e.searchText.toUpperCase()),i=[];return t.forEach((t=>{if(void 0!==e.properties)for(let o=0,a=e.properties.length;o<a;o++){let a=e.properties[o];if(-1!==this.removeAccent(t[a].toUpperCase()).indexOf(n)){i.push(t);break}}else-1!==this.removeAccent(t.toUpperCase()).indexOf(n)&&i.push(t)})),i},randomColor:()=>"#"+Math.floor(16777215*Math.random()).toString(16)},computed:{windowSize(){return this.isMinimalize?"map__detail--minimalize":this.isMaximalize?"map__detail--maximalize":""}}},st={name:"WertyzHeader",mixins:[at],props:{name:{type:String,default:""},btn:{type:Object,default:null},search:{type:Object,default:{id:null,value:null}}}};i(611);const rt=(0,a.Z)(st,[["render",function(e,n,i,o,a,s){return e.IS_MOBILE?((0,t.openBlock)(),(0,t.createElementBlock)("header",tt,[(0,t.createElementVNode)("div",et,[(0,t.createElementVNode)("div",nt,[(0,t.createElementVNode)("h3",it,(0,t.toDisplayString)(i.name),1)]),(0,t.createElementVNode)("div",ot,[i.btn?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.btn.class]),onClick:n[1]||(n[1]=t=>e.$emit("btn-action")),style:{"margin-bottom":"0px"}},(0,t.toDisplayString)(i.btn.name),3)):(0,t.createCommentVNode)("v-if",!0)])]),(0,t.renderSlot)(e.$slots,"search")])):((0,t.openBlock)(),(0,t.createElementBlock)("header",Z,[(0,t.createElementVNode)("div",U,[(0,t.createElementVNode)("div",G,[(0,t.createElementVNode)("h2",X,(0,t.toDisplayString)(i.name),1)]),(0,t.createElementVNode)("div",Q,[(0,t.renderSlot)(e.$slots,"search-slot")]),(0,t.createElementVNode)("div",J,[i.btn?((0,t.openBlock)(),(0,t.createElementBlock)("button",{key:0,class:(0,t.normalizeClass)(["btn btn-block",i.btn.class]),onClick:n[0]||(n[0]=t=>e.$emit("btn-action"))},(0,t.toDisplayString)(i.btn.name),3)):(0,t.createCommentVNode)("v-if",!0)])]),(0,t.createElementVNode)("div",K,[(0,t.createElementVNode)("div",q,[(0,t.renderSlot)(e.$slots,"other-row")])])]))}]]),lt={id:"wertyz-list-content"},ct={id:"wertyz-list-navbar"},dt={class:"row"},ht={class:"col-lg-12"},ut={class:"nav nav-tabs"},pt=["onClick"],gt={href:"#"},mt={key:0,class:"table__counts"},ft={class:"table__counts__number"},bt=["id"],_t=["value","selected"],xt={name:"WertyzListNavbar",data:()=>({lengths:[5,10,20,30,50,100,-1]}),props:{items:{type:Array,default:[{name:"Item name",clickCallback:null,active:!1}]},tableId:{type:String,default:null},tableLength:{type:Number,default:10},tableCount:{type:Number,default:0}}},yt=(0,a.Z)(xt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",ct,[(0,t.createElementVNode)("div",dt,[(0,t.createElementVNode)("div",ht,[(0,t.createElementVNode)("ul",ut,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("li",{"data-toggle":"tab",class:(0,t.normalizeClass)(e.active?"active":""),onClick:e.clickCallback},[(0,t.createElementVNode)("a",gt,(0,t.toDisplayString)(e.name),1)],10,pt)))),256))]),e.IS_MOBILE||-1===i.tableCount?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",mt,[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.$t("CountOfResults"))+": ",1),(0,t.createElementVNode)("span",ft,(0,t.toDisplayString)(i.tableCount),1)])),e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("select",{key:1,id:i.tableId+"-length"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.lengths,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("option",{value:n,selected:n===i.tableLength},(0,t.toDisplayString)(-1===n?e.$t("AllRows"):n),9,_t)))),256))],8,bt))])])])}]]),vt={id:"wertyz-table"},wt={class:"w__table__wrapper"},kt={class:"row"},Mt={class:"col-lg-12"},St=["id"];function Ct(t={},e="",n=1){let i=t,o=""!==e?$(e):$(".w__pages"),a=this;function s(t){let n=i.info instanceof Function?i.info():i.page.info(),a=n.pages,s="",r=void 0===t||t<=5?9:t+4,c=void 0===t||t<=5?1:t-4,d=void 0!==t?"w__page--active":"";n.serverSide&&(a=Math.ceil(n.recordsDisplay/n.length)),r>a&&(r=a);for(let e=c;e<=r;e++)s+=e===t?"<div class='w__page "+d+"' data-page='"+e+"'>"+e+"</div>":"<div class='w__page' data-page='"+e+"'>"+e+"</div>";o.empty(),o.html(s),$(e+" .w__page").on("click",l)}function r(t){i.page(t-1).draw("page"),s(t)}function l(t){r(+$(t.target).attr("data-page"))}var c;this.firstPage=function(){r(1)},this.lastPage=function(){r(i.info instanceof Function?i.info().pages:i.page.info().pages)},this.changeVisibleRows=function(t){i.len instanceof Function?i.len(t.target.value).draw():i.page.len(t.target.value).draw(),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},this.nextPage=function(){i.page("next").draw("page"),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},this.refresh=function(t){let e=null,n=i.info instanceof Function?i.info():i.page.info();console.log(n),void 0!==t?(e=t,s(e)):n.page<=n.pages?(e=n.page+1,s(e)):this.lastPage()},this.previousPage=function(){i.page("previous").draw("page"),s((i.info instanceof Function?i.info().page:i.page.info().page)+1)},c=n,$(e).parent().children(".w__pages__arrow--first").off(),$(e).parent().children(".w__pages__arrow--previous").off(),$(e).parent().children(".w__pages__arrow--next").off(),$(e).parent().children(".w__pages__arrow--last").off(),$(e).parent().children(".w__pages__arrow--first").on("click",a.firstPage),$(e).parent().children(".w__pages__arrow--previous").on("click",a.previousPage),$(e).parent().children(".w__pages__arrow--next").on("click",a.nextPage),$(e).parent().children(".w__pages__arrow--last").on("click",a.lastPage),s(c)}function At(){let t={};this.register=function(e,n,i){this.add(e),t[e].on(n,i)},this.registerDynamic=function(t,e,n,i){this.add(t+" "+e),$(t).on(n,e,i)},this.unregister=function(e,n=null,i=null){return this.add(e),n?i?t[e].off(n,i):t[e].off(n):t[e].off()},this.add=function(e,n=!1){(void 0===t[e]||null===t[e]||n)&&(t[e]=$(e))},this.get=function(e,n=!1){return this.add(e,n),t[e]},this.getAll=function(){return t},void 0===window.eventRegistrators&&(window.eventRegistrators=[]),window.eventRegistrators.push(this),function e(){console.log("Clearing inactive selectors");for(let e in t)0===t[e].length&&t[e];setTimeout(e,6e4)}()}function Et(t,e){let n={},i={},o=new At,a=this,s=null;function r(t){let o=function(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}(t.target.value);if(13===t.keyCode)if(-1!==o.indexOf(";")){let e=t.target.value.split(";");e=e.map((t=>"\\b"+t+"\\b")),n.search(e.join("|"),!0,!1).draw()}else n.search("\\b"+o+"\\b",!0,!1).draw();else n.search(o.replace(";","|"),!0,!1).draw();i.refresh(),void 0!==e.searchCallback&&e.searchCallback(a.getFilteredData())}function l(){o.unregister(t+"-search"),o.register(t+"-search","keyup",(function(t){s&&clearTimeout(s),s=setTimeout(r.bind(this,t),void 0!==e.searchInterval?e.searchInterval:0)}))}this.setRowDetail=function(t,e,i){const o=$(t),a=n.row(o);a.child.isShown()?(a.child.hide(),o.removeClass("shown")):(a.child(i(e),"w__table__tr__child").show(),o.addClass("shown"))},this.getPagination=function(){return i},this.getTable=function(){return n},this.destroy=function(){n.clear(),n.destroy(),n=null},this.updateSize=function(){n.columns.adjust()},this.getFilteredData=function(){return n.rows({filter:"applied"}).data()},this.reloadTable=function(t){void 0!==t&&n.clear().rows.add(t).draw(!1),i.refresh()},this.ajaxReload=function(){n.ajax.reload()},this.reloadTableRow=function(t,e){n.row(t).data(e)},this.init=function(){e&&e.serverSide&&(e.drawCallback=function(){i.refresh()}),n=$(t).DataTable(e),i=new Ct(n,t+"-pages"),o.unregister(t+"-length"),o.get(t+"-length").select2({selectionCssClass:":all"}),o.register(t+"-length","change",i.changeVisibleRows),l()},this.init()}const Dt={class:"row"},It={class:"w__pagination"},Pt={class:"none-select w__pages__wrapper"},zt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--first",style:{"margin-right":"10px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAVCAYAAABPPm7SAAAACXBIWXMAAAsSAAALEgHS3X78AAAA7klEQVQ4jaWUuw3CMBRFb6Chg02SEWjp2ABo4pJ0lCgbpH0VyQSswAhkirQwgZEjO3px7HyMJTdX7xw9fyGlnDWRpoVdp7IVZoxIiBLAlVeabFKgC0++bFRgwV+XMGrXMg/eAzgCuLOyi1PggRMADw5LonKwhCXwYA+Wwj1BCNwJQmE11nnTZABuLDsA2AB4siyXRIUNmw6UtWaZKnwDqFiWRUIkToEk+uiWjSQG8FIQk2xV5pK0e/CPpDuFUEnvHoRIfFd5p8FYR7UWF/ZxO1+jrxNJdLY78T5nj0TlPcnof+CQmLyTTP5IoxKg+gE4KLmkN4OjgAAAAABJRU5ErkJggg=="})],-1),Lt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--previous",style:{"margin-right":"50px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAVCAYAAACQcBTNAAAACXBIWXMAAAsSAAALEgHS3X78AAAAtElEQVQokWP8//8/AzGAcdasBBYiFS5gYGBQYCJSYTyIjVcxskIwH5eb0RR+ZGBgcMBqMjaF/9PSLmAoxqUQw834FKIoJqQQrpgYhSDA3CglVcDAwFCOJOb5Py3tBDaPg0wGmXoRSWwC46xZAlgV/09L+wCyFkmDPgMDwwFsGsBuJlYDPDSI0YASzoQ0YE0bUMkDUMUgANLsgC8hoWvYiDOJYnGSAMFshWTDB4I5BW4DA8MFAKXxaPX60gVzAAAAAElFTkSuQmCC"})],-1),Tt=["id"],Ot=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--next",style:{"margin-left":"50px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAVCAYAAAByrA+0AAAACXBIWXMAAAsSAAALEgHS3X78AAAAuUlEQVQ4jZXSvRWCMBRA4Rts7LSm0g0cxQ2E5u3hCJZJA05g6xiO4Ahu8DzBn5NIlGfOoYH7QR4A3m/wvlFVLEcFLIHOhdBgWFWSmFAEt39QpSIXoLWiYUsq0lvRewYrSoc2oQxY0AhMIRe/3rflQohwl1xeF5/AI453TONWRa5F8Iw78rgvzvArHoGpOAOF+PAZD118Sy6ELXBKzh9VpPhrzPZ1vQLOwHwqfm0pgoUlzmawxCkwxQB3JvV6PYYRQjMAAAAASUVORK5CYII="})],-1),Bt=(0,t.createElementVNode)("div",{class:"w__pages__arrow w__pages__arrow--last",style:{"margin-left":"10px"}},[(0,t.createElementVNode)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAVCAYAAACg/AXsAAAACXBIWXMAAAsSAAALEgHS3X78AAAA70lEQVQ4jaXUyxGCMBCA4R8a0BIsQSvQEuxAvCRXS/G6J7ACW7ADLUUriLNMwIARY9yZDLBsvsmGBxhTYczSOUc39FrzYW5qlMACuBTWLnnFHKgLaysSovQlswhEKqTI/V+odCJH4BRCHj4FdZNQ0W6knljbADuffwAb4BDkNFZO5BZrpw0nUkVWdBytKNbuC0mEovs2QHKhNyQH6jc2FoW1Onntbz2cyHyc05f1I+IfaR2k9v44yDmRJtrOL0B0T34F3pAcYIDkAj3yD9DOx5gtcB4B+n1cU4BuJeEr3BXrTykJ6NuZKP4KhEg2APAEm2Ow87Riu7IAAAAASUVORK5CYII="})],-1),Nt={name:"WertyzPagination",props:{tableId:{type:String,default:"wertyz-table"}},data:()=>({})},Ft=(0,a.Z)(Nt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Dt,[(0,t.createElementVNode)("div",It,[(0,t.createElementVNode)("div",Pt,[zt,Lt,(0,t.createElementVNode)("div",{class:"w__pages",id:i.tableId+"-pages"},null,8,Tt),Ot,Bt])])])}]]),Vt={class:"panel__row row"},Rt={key:0,class:"panel__col date col-lg-3"},Wt={key:1,class:"panel__col date col-lg-3"},jt={class:"panel__col col-lg-3"},Ht=["id","placeholder"],Yt=(e=>((0,t.pushScopeId)("data-v-e94d5c9e"),e=e(),(0,t.popScopeId)(),e))((()=>(0,t.createElementVNode)("span",{class:"glyphicons glyphicons-search search__icon"},null,-1))),Zt={class:"panel__col length col-lg-3"},$t={key:0,class:"table__counts"},Ut={class:"table__counts__number"},Gt=["id"],Xt=["value","selected"],Qt={name:"WertyzTablePanel",emits:["update:tableSearch"],props:{tableId:{type:String,default:"wertyz-table"},tableSearch:{type:String,default:null},tableCount:{type:Number,default:0},tableLength:{type:Number,default:10},panelStyle:{type:String,default:""}},data:()=>({lengths:[5,10,20,30,50,100,-1]}),computed:{searchValue:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},countValue:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}}};i(242),i(276);const Jt={name:"WertyzTable",inject:["emitter"],components:{WertyzPagination:Ft,WertyzTablePanel:(0,a.Z)(Qt,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",{id:"wertyz-table-panel",class:"w__panel",style:(0,t.normalizeStyle)(i.panelStyle)},[(0,t.createElementVNode)("div",Vt,[e.$slots["first-item"]?((0,t.openBlock)(),(0,t.createElementBlock)("div",Rt,[(0,t.renderSlot)(e.$slots,"first-item",{},void 0,!0)])):(0,t.createCommentVNode)("v-if",!0),e.$slots["second-item"]?((0,t.openBlock)(),(0,t.createElementBlock)("div",Wt,[(0,t.renderSlot)(e.$slots,"second-item",{},void 0,!0)])):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",jt,[(0,t.withDirectives)((0,t.createElementVNode)("input",{type:"text",id:i.tableId+"-search",class:"form-control search",placeholder:e.$t("search"),"onUpdate:modelValue":n[0]||(n[0]=t=>s.searchValue=t)},null,8,Ht),[[t.vModelText,s.searchValue]]),Yt]),(0,t.createElementVNode)("div",Zt,[e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",$t,[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(e.$t("CountOfResults"))+": ",1),(0,t.createElementVNode)("span",Ut,(0,t.toDisplayString)(i.tableCount),1)])),e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("select",{key:1,id:i.tableId+"-length",class:"statements-list-length"},[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(a.lengths,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("option",{value:n,selected:n===i.tableLength},(0,t.toDisplayString)(-1===n?e.$t("AllRows"):n),9,Xt)))),256))],8,Gt))])])],4)}],["__scopeId","data-v-e94d5c9e"]])},emits:["update:tableSearch","update:tableCount"],props:{tableColumns:{type:Array,default:[]},tableId:{type:String,default:"wertyz-table"},tableOptions:{type:Object,default:{}},tableData:{type:Array,default:[]},tablePanelStyle:{type:String,default:""},showPanel:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},tableLength:{type:Number,default:10},tableCount:{type:Number,default:0},tableSearch:{type:String,default:null}},data(){return this.table={},{pageLength:"10"}},methods:{setTable(){this.tableOptions.data=this.tableData,this.table=new Et("#"+this.tableId,this.tableOptions),setTimeout((()=>{this.table.getPagination().refresh()}),10)}},watch:{tableData:{handler(){this.table&&(this.table.reloadTable(this.tableData),this.count=this.table.getFilteredData().length)},deep:!0}},computed:{search:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},count:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}},created(){this.tableOptions&&this.tableOptions.pageLength&&(this.pageLength=this.tableOptions.pageLength+"")},mounted(){this.tableOptions&&this.setTable(),this.emitter.on(this.tableId+"-ajax-reload",this.table.ajaxReload)},unmounted(){this.emitter.off(this.tableId+"-ajax-reload",this.table.ajaxReload),this.table.destroy(),this.table=null}};i(687);const Kt=(0,a.Z)(Jt,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzTablePanel"),l=(0,t.resolveComponent)("WertyzPagination");return(0,t.openBlock)(),(0,t.createElementBlock)("div",vt,[i.showPanel&&i.tableOptions?((0,t.openBlock)(),(0,t.createBlock)(r,{key:0,"table-id":i.tableId,"table-length":i.tableLength,"panel-style":i.tablePanelStyle,"table-count":s.count,"onUpdate:table-count":n[0]||(n[0]=t=>s.count=t),"table-search":s.search,"onUpdate:table-search":n[1]||(n[1]=t=>s.search=t)},(0,t.createSlots)({_:2},[e.$slots["panel-first-item"]?{name:"first-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"panel-first-item")])),key:"0"}:void 0,e.$slots["panel-second-item"]?{name:"second-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"panel-second-item")])),key:"1"}:void 0]),1032,["table-id","table-length","panel-style","table-count","table-search"])):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("div",wt,[(0,t.createElementVNode)("div",kt,[(0,t.createElementVNode)("div",Mt,[(0,t.createElementVNode)("table",{class:"table w__table w__table--hover",id:i.tableId},[(0,t.createElementVNode)("thead",null,[(0,t.createElementVNode)("tr",null,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.tableColumns,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("th",{class:(0,t.normalizeClass)(e.class?e.class:"")},(0,t.toDisplayString)(e.name),3)))),256))])])],8,St)])])]),i.showPagination&&i.tableOptions?((0,t.openBlock)(),(0,t.createBlock)(l,{key:1,"table-id":i.tableId},null,8,["table-id"])):(0,t.createCommentVNode)("v-if",!0)])}]]),qt={name:"WertyzListContent",components:{WertyzHeader:rt,WertyzListNavbar:yt,WertyzTable:Kt,WertyzContent:s},emits:["update:tableSearch","update:tableCount"],props:{headerName:{type:String,default:"Header name"},headerBtn:{type:Object,default:null},navbarItems:{type:Array,default:null},tableId:{type:String,default:"wertyz-table"},tableCount:{type:Number,default:0},tableLength:{type:Number,default:10},tableOptions:{type:Object,default:null},tableColumns:{type:Array,default:[]},tableData:{type:Array,default:[]},tableSearch:{type:String,default:null},showPanel:{type:Boolean,default:!0}},computed:{search:{get(){return this.tableSearch},set(t){this.$emit("update:tableSearch",t)}},count:{get(){return this.tableCount},set(t){this.$emit("update:tableCount",t)}}}},te=(0,a.Z)(qt,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzHeader"),l=(0,t.resolveComponent)("WertyzListNavbar"),c=(0,t.resolveComponent)("WertyzTable"),d=(0,t.resolveComponent)("WertyzContent");return(0,t.openBlock)(),(0,t.createElementBlock)("div",lt,[(0,t.createVNode)(d,null,{header:(0,t.withCtx)((()=>[(0,t.createVNode)(r,{name:i.headerName,btn:i.headerBtn,onBtnAction:n[0]||(n[0]=t=>e.$emit("header-btn-action"))},{"search-slot":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"header-search-slot")])),"other-row":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"header-other-row")])),_:3},8,["name","btn"])])),content:(0,t.withCtx)((()=>[i.navbarItems?((0,t.openBlock)(),(0,t.createBlock)(l,{key:0,items:i.navbarItems,"table-id":i.tableId,"table-count":i.tableCount,"table-length":i.tableLength},null,8,["items","table-id","table-count","table-length"])):(0,t.createCommentVNode)("v-if",!0),(0,t.createVNode)(c,{"table-options":i.tableOptions,"table-columns":i.tableColumns,"table-id":i.tableId,"table-data":i.tableData,"table-count":s.count,"onUpdate:table-count":n[1]||(n[1]=t=>s.count=t),"table-length":i.tableLength,"table-search":s.search,"onUpdate:table-search":n[2]||(n[2]=t=>s.search=t),"show-panel":i.showPanel},(0,t.createSlots)({_:2},[e.$slots["table-panel-first-item"]?{name:"panel-first-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"table-panel-first-item")])),key:"0"}:void 0,e.$slots["table-panel-second-item"]?{name:"panel-second-item",fn:(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"table-panel-second-item")])),key:"1"}:void 0]),1032,["table-options","table-columns","table-id","table-data","table-count","table-length","table-search","show-panel"])])),_:3})])}]]),ee={class:"w__loader__wrapper"},ne=(0,t.createElementVNode)("div",{class:"w__loader"},null,-1),ie={class:"w__loader__img"},oe=["src"],ae={name:"WertyzLoader",props:{imageUrl:{type:String,default:null}}};i(926);const se=(0,a.Z)(ae,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",ee,[ne,(0,t.createElementVNode)("div",ie,[(0,t.createElementVNode)("img",{src:i.imageUrl},null,8,oe)])])}]]),re={id:"w-menu"},le={class:"menu__header__wrapper"},ce=["src"],de={class:"menu__logo"},he=["src"],ue={class:"menu__header"},pe={class:"menu__header__text"},ge={class:"menu__content"},me={class:"menu__content__ul"},fe={class:"menu__content__li-wrapper"},be=["src"],_e=["src"],xe={class:"menu__content__li-name"},ye={key:4,class:"menu__content__li-right"},ve={key:5,class:"menu__content__li-arrow"},we={key:0,class:"menu__sub__ul"},ke={class:"menu__sub__li-wrapper"},Me=["src"],Se=["src"],Ce={class:"menu__sub__li-name"},Ae={class:"menu__footer"},Ee={name:"WertyzMenu",mixins:[at],props:{items:{type:Array,default:[]},appName:{type:String,default:"APPNAME"},logo:{type:String,default:null}},data:()=>({isMinimalize:!1}),methods:{toggleMinMax(){this.isMinimalize?(document.getElementById("w-menu").classList.remove("w__menu--minimalize"),document.getElementById("main-content").classList.remove("maximalize"),document.getElementById("right-content").classList.remove("minimalize"),this.isMinimalize=!1):(document.getElementById("w-menu").classList.add("w__menu--minimalize"),document.getElementById("main-content").classList.add("maximalize"),document.getElementById("right-content").classList.add("minimalize"),this.isMinimalize=!0),this.$store.getters.getMapControl&&this.$store.getters.getMapControl.map.getMap().updateSize(),$.fn.dataTable.tables({api:!0}).columns.adjust()}},mounted(){}};i(32);const De=(0,a.Z)(Ee,[["render",function(e,n,o,a,s,r){const l=(0,t.resolveComponent)("router-link");return(0,t.openBlock)(),(0,t.createElementBlock)("div",re,[(0,t.createElementVNode)("div",le,[e.IS_MOBILE?(0,t.createCommentVNode)("v-if",!0):((0,t.openBlock)(),(0,t.createElementBlock)("div",{key:0,class:"menu__button",onClick:n[0]||(n[0]=t=>r.toggleMinMax())},[(0,t.createElementVNode)("img",{src:i(41).Z},null,8,ce)])),(0,t.createElementVNode)("div",de,[(0,t.createElementVNode)("img",{src:o.logo},null,8,he)]),(0,t.createElementVNode)("div",ue,[(0,t.createElementVNode)("h3",pe,(0,t.toDisplayString)(o.appName),1)])]),(0,t.createElementVNode)("div",ge,[(0,t.createElementVNode)("ul",me,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(o.items,(e=>((0,t.openBlock)(),(0,t.createBlock)(l,{"exact-active-class":"menu__content__li--active",class:"menu__content__li",to:e.to},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("div",fe,[e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:0,class:(0,t.normalizeClass)(["menu__content__li-img menu__content__li-img--active",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:1,class:(0,t.normalizeClass)(["menu__content__li-img",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.imgActive?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:2,class:"menu__content__li-img menu__content__li-img--active",src:e.imgActive},null,8,be)):(0,t.createCommentVNode)("v-if",!0),e.img?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:3,class:"menu__content__li-img",src:e.img},null,8,_e)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("span",xe,(0,t.toDisplayString)(e.name),1),e.rightComponent?((0,t.openBlock)(),(0,t.createElementBlock)("span",ye,[((0,t.openBlock)(),(0,t.createBlock)((0,t.resolveDynamicComponent)({...e.rightComponent})))])):(0,t.createCommentVNode)("v-if",!0),e.subItems&&e.subItems.length?((0,t.openBlock)(),(0,t.createElementBlock)("span",ve)):(0,t.createCommentVNode)("v-if",!0)]),e.subItems&&e.subItems.length?(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("ul",we,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(e.subItems,(e=>((0,t.openBlock)(),(0,t.createBlock)(l,{"exact-active-class":"menu__content__li--active",class:"menu__sub__li",to:e.to},{default:(0,t.withCtx)((()=>[(0,t.createElementVNode)("div",ke,[e.imgActive?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,class:"menu__sub__li-img menu__sub__li-img--active",src:e.imgActive},null,8,Me)):(0,t.createCommentVNode)("v-if",!0),e.img?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:1,class:"menu__sub__li-img",src:e.img},null,8,Se)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:2,class:(0,t.normalizeClass)(["menu__sub__li-img menu__sub__li-img--active",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),e.class?((0,t.openBlock)(),(0,t.createElementBlock)("span",{key:3,class:(0,t.normalizeClass)(["menu__sub__li-img",e.class])},null,2)):(0,t.createCommentVNode)("v-if",!0),(0,t.createElementVNode)("span",Ce,(0,t.toDisplayString)(e.name),1)])])),_:2},1032,["to"])))),256))],512)),[[t.vShow,e.active]]):(0,t.createCommentVNode)("v-if",!0)])),_:2},1032,["to"])))),256))])]),(0,t.createElementVNode)("div",Ae,[(0,t.renderSlot)(e.$slots,"footer",{},void 0,!0)])])}],["__scopeId","data-v-31ca7b9e"]]),Ie={id:"w-mobile-menu"},Pe={name:"WertyzMobileMenu",inject:["emitter"],mixins:[at],data:()=>({isShowMenu:!1}),methods:{showMenu(){this.emitter.emit("show-menu"),this.isShowMenu=!0},hideMenu(){this.emitter.emit("hide-menu"),this.isShowMenu=!1}}};i(967);const ze=(0,a.Z)(Pe,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",Ie,[(0,t.withDirectives)((0,t.createElementVNode)("span",{class:"glyphicons glyphicons-menu-hamburger",onClick:n[0]||(n[0]=(...t)=>s.showMenu&&s.showMenu(...t))},null,512),[[t.vShow,!e.$store.getters["globalState/getShowingMenu"]]]),(0,t.withDirectives)((0,t.createElementVNode)("span",{class:"glyphicons glyphicons-remove",onClick:n[1]||(n[1]=(...t)=>s.hideMenu&&s.hideMenu(...t))},null,512),[[t.vShow,e.$store.getters["globalState/getShowingMenu"]]])])}]]),Le=["src"],Te={class:"w__small__loader"},Oe={class:"v-spinner"},Be={name:"PulseLoader",props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#5dc596"},size:{type:String,default:"15px"},margin:{type:String,default:"2px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}};i(816);const Ne={name:"WertyzSmallLoader",components:{PulseLoader:(0,a.Z)(Be,[["render",function(e,n,i,o,a,s){return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",Oe,[(0,t.createElementVNode)("div",{class:"v-pulse v-pulse1",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay1])},null,4),(0,t.createElementVNode)("div",{class:"v-pulse v-pulse2",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay2])},null,4),(0,t.createElementVNode)("div",{class:"v-pulse v-pulse3",style:(0,t.normalizeStyle)([a.spinnerStyle,a.spinnerDelay3])},null,4)],512)),[[t.vShow,i.loading]])}]])},props:{show:{type:Boolean,default:!1}}};i(724);const Fe=(0,a.Z)(Ne,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("PulseLoader");return(0,t.withDirectives)(((0,t.openBlock)(),(0,t.createElementBlock)("div",Te,[(0,t.createVNode)(r,{loading:i.show,color:"#066",size:"15px"},null,8,["loading"])],512)),[[t.vShow,i.show]])}],["__scopeId","data-v-e0d9804a"]]),Ve={name:"WertyzModal",components:{WertyzSmallLoader:Fe},props:{modalClass:{type:String,default:""},modalHeaderClass:{type:String,default:""},modalContentClass:{type:String,default:""},modalBodyClass:{type:String,default:""},modalStyle:{type:String,default:""},modalHeaderStyle:{type:String,default:""},modalContentStyle:{type:String,default:""},modalBodyStyle:{type:String,default:""},modalCloseClass:{type:String,default:""},modalCloseStyle:{type:String,default:""},loader:{type:Boolean,default:!1}}};i(341);const Re=(0,a.Z)(Ve,[["render",function(e,n,o,a,s,r){const l=(0,t.resolveComponent)("WertyzSmallLoader");return(0,t.openBlock)(),(0,t.createElementBlock)("div",{id:"wertyz-modal",class:(0,t.normalizeClass)(["w__modal",o.modalClass]),style:(0,t.normalizeStyle)(o.modalStyle)},[(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__content",o.modalContentClass]),style:(0,t.normalizeStyle)(o.modalContentStyle)},[(0,t.createVNode)(l,{show:o.loader},null,8,["show"]),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__header",o.modalHeaderClass]),style:(0,t.normalizeStyle)(o.modalHeaderStyle)},[(0,t.renderSlot)(e.$slots,"modal-header",{},void 0,!0),(0,t.createElementVNode)("img",{class:(0,t.normalizeClass)(["w__modal__close",o.modalCloseClass]),style:(0,t.normalizeStyle)(o.modalCloseStyle),src:i(36).Z,onClick:n[0]||(n[0]=t=>e.$emit("close"))},null,14,Le)],6),(0,t.createElementVNode)("div",{class:(0,t.normalizeClass)(["w__modal__body",o.modalBodyClass]),style:(0,t.normalizeStyle)(o.modalBodyStyle)},[(0,t.renderSlot)(e.$slots,"modal-body",{},void 0,!0)],6)],6)],6)}],["__scopeId","data-v-d16ba0f6"]]),We={id:"wertyz-quick-filter"},je={class:"filter"},He=["onClick"],Ye={name:"WertyzQuickFilter",emits:["select"],props:{items:{type:Array,default:null}},data:()=>({selected:null}),methods:{select(t){this.selected=t.id,this.$emit("select",t)}},mounted(){this.items&&this.items.forEach((t=>{t.selected&&(this.selected=t.id)}))}};i(34);const Ze=(0,a.Z)(Ye,[["render",function(e,n,i,o,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("div",We,[(0,t.createElementVNode)("div",je,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(i.items,(e=>((0,t.openBlock)(),(0,t.createElementBlock)("div",{class:(0,t.normalizeClass)(["filter__item",e.id===a.selected?"filter__item--selected":""]),key:e.id,onClick:t=>s.select(e)},(0,t.toDisplayString)(e.name),11,He)))),128))])])}],["__scopeId","data-v-e09ce0e4"]]),$e={class:"row"},Ue={class:"col-lg-12"},Ge={class:"body__text"},Xe={class:"row"},Qe={class:"col-lg-3 col-lg-offset-6"},Je={class:"col-lg-3"},Ke={name:"WertyzConfirmationWindow",components:{WertyzModal:Re},props:{headerText:{type:String,default:null},bodyText:{type:String,default:""},confirmText:{type:String,default:null},decelineText:{type:String,default:null}}};i(310);const qe=(0,a.Z)(Ke,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzModal");return(0,t.openBlock)(),(0,t.createBlock)(r,{onClose:n[2]||(n[2]=t=>e.$emit("close")),"modal-content-style":"border-radius: 15px;","modal-header-style":"background-color: var(--orange); border-top-left-radius: 15px; border-top-right-radius: 15px;","modal-close-style":"padding: 3px; border-radius: 10px; background-color: white;"},{"modal-header":(0,t.withCtx)((()=>[(0,t.createElementVNode)("h3",null,(0,t.toDisplayString)(i.headerText?i.headerText:e.$t("AreYouSure?")),1)])),"modal-body":(0,t.withCtx)((()=>[(0,t.renderSlot)(e.$slots,"confirmation-body",{},(()=>[(0,t.createElementVNode)("div",$e,[(0,t.createElementVNode)("div",Ue,[(0,t.createElementVNode)("div",Ge,(0,t.toDisplayString)(i.bodyText),1)])]),(0,t.createElementVNode)("div",Xe,[(0,t.createElementVNode)("div",Qe,[(0,t.createElementVNode)("button",{class:"btn btn-block green",onClick:n[0]||(n[0]=t=>e.$emit("no"))},(0,t.toDisplayString)(i.decelineText?i.decelineText:this.$t("No")),1)]),(0,t.createElementVNode)("div",Je,[(0,t.createElementVNode)("button",{class:"btn btn-block red--full",onClick:n[1]||(n[1]=t=>e.$emit("yes"))},(0,t.toDisplayString)(i.confirmText?i.confirmText:this.$t("Yes")),1)])])]),!0)])),_:3},8,["modal-header-style"])}],["__scopeId","data-v-32fd9d9e"]]),tn={class:"chart",id:"wertyz-chart-content"},en={class:"chart__wrapper"},nn={class:"header"},on={key:0,id:"wertyz-chart-legend",class:"legend"},an={class:"legend__row"},sn={class:"legend__cell"},rn={class:"legend__text"},ln={name:"WertyzChartLegened",props:{labels:{type:Array,default:[]},colors:{type:Array,default:[]}}};i(565);const cn={name:"OverviewChartContent",components:{WertyzChartLegend:(0,a.Z)(ln,[["render",function(e,n,i,o,a,s){return i.labels.length&&i.colors.length?((0,t.openBlock)(),(0,t.createElementBlock)("div",on,[((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,null,(0,t.renderList)(Math.ceil(i.labels.length/2),(n=>((0,t.openBlock)(),(0,t.createElementBlock)("div",an,[e.index>=n&&e.index!==n||1===n?((0,t.openBlock)(!0),(0,t.createElementBlock)(t.Fragment,{key:0},(0,t.renderList)(2*n,(n=>((0,t.openBlock)(),(0,t.createElementBlock)("div",sn,[(0,t.createElementVNode)("div",{class:"legend__rectangle",style:(0,t.normalizeStyle)("background-color:"+i.colors[n-1])},null,4),(0,t.createElementVNode)("div",rn,[(0,t.renderSlot)(e.$slots,"text",{label:i.labels[n-1]},(()=>[(0,t.createElementVNode)("span",null,(0,t.toDisplayString)(i.labels[n-1]),1)]),!0)])])))),256)):(0,t.createCommentVNode)("v-if",!0)])))),256))])):(0,t.createCommentVNode)("v-if",!0)}],["__scopeId","data-v-26d722e0"]]),WertyzSmallLoader:Fe},props:{headerText:{type:String,default:""},legendLabels:{type:Array,default:[]},legendColors:{type:Array,default:[]},loader:{type:Boolean,default:!1}},mounted(){}};i(751);const dn=(0,a.Z)(cn,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("WertyzSmallLoader"),l=(0,t.resolveComponent)("WertyzChartLegend");return(0,t.openBlock)(),(0,t.createElementBlock)("div",tn,[(0,t.createVNode)(r,{show:i.loader},null,8,["show"]),(0,t.createElementVNode)("div",en,[(0,t.createElementVNode)("div",nn,[(0,t.createElementVNode)("h4",null,(0,t.toDisplayString)(i.headerText),1)]),(0,t.renderSlot)(e.$slots,"subtitle",{},void 0,!0),(0,t.createElementVNode)("div",null,[(0,t.renderSlot)(e.$slots,"chart",{},void 0,!0)]),(0,t.createElementVNode)("div",null,[i.legendLabels.length&&i.legendColors.length?((0,t.openBlock)(),(0,t.createBlock)(l,{key:0,labels:i.legendLabels,colors:i.legendColors},{text:(0,t.withCtx)((({label:n})=>[(0,t.renderSlot)(e.$slots,"legend-text",{label:n},void 0,!0)])),_:3},8,["labels","colors"])):(0,t.createCommentVNode)("v-if",!0)])])])}],["__scopeId","data-v-4fc00704"]]);function hn(){}const un=function(){let t=0;return function(){return t++}}();function pn(t){return null==t}function gn(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 mn(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const fn=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function bn(t,e){return fn(t)?t:e}function _n(t,e){return void 0===t?e:t}const xn=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function yn(t,e,n){if(t&&"function"==typeof t.call)return t.apply(n,e)}function vn(t,e,n,i){let o,a,s;if(gn(t))if(a=t.length,i)for(o=a-1;o>=0;o--)e.call(n,t[o],o);else for(o=0;o<a;o++)e.call(n,t[o],o);else if(mn(t))for(s=Object.keys(t),a=s.length,o=0;o<a;o++)e.call(n,t[s[o]],s[o])}function wn(t,e){let n,i,o,a;if(!t||!e||t.length!==e.length)return!1;for(n=0,i=t.length;n<i;++n)if(o=t[n],a=e[n],o.datasetIndex!==a.datasetIndex||o.index!==a.index)return!1;return!0}function kn(t){if(gn(t))return t.map(kn);if(mn(t)){const e=Object.create(null),n=Object.keys(t),i=n.length;let o=0;for(;o<i;++o)e[n[o]]=kn(t[n[o]]);return e}return t}function Mn(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function Sn(t,e,n,i){if(!Mn(t))return;const o=e[t],a=n[t];mn(o)&&mn(a)?Cn(o,a,i):e[t]=kn(a)}function Cn(t,e,n){const i=gn(e)?e:[e],o=i.length;if(!mn(t))return t;const a=(n=n||{}).merger||Sn;for(let s=0;s<o;++s){if(!mn(e=i[s]))continue;const o=Object.keys(e);for(let i=0,s=o.length;i<s;++i)a(o[i],t,e,n)}return t}function An(t,e){return Cn(t,e,{merger:En})}function En(t,e,n){if(!Mn(t))return;const i=e[t],o=n[t];mn(i)&&mn(o)?An(i,o):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=kn(o))}const Dn={"":t=>t,x:t=>t.x,y:t=>t.y};function In(t,e){const n=Dn[e]||(Dn[e]=function(t){const e=function(t){const e=t.split("."),n=[];let i="";for(const t of e)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(n.push(i),i="");return n}(t);return t=>{for(const n of e){if(""===n)break;t=t&&t[n]}return t}}(e));return n(t)}function Pn(t){return t.charAt(0).toUpperCase()+t.slice(1)}const zn=t=>void 0!==t,Ln=t=>"function"==typeof t,Tn=(t,e)=>{if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0},On=Math.PI,Bn=2*On,Nn=Bn+On,Fn=Number.POSITIVE_INFINITY,Vn=On/180,Rn=On/2,Wn=On/4,jn=2*On/3,Hn=Math.log10,Yn=Math.sign;function Zn(t){const e=Math.round(t);t=Un(t,e,t/1e3)?e:t;const n=Math.pow(10,Math.floor(Hn(t))),i=t/n;return(i<=1?1:i<=2?2:i<=5?5:10)*n}function $n(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Un(t,e,n){return Math.abs(t-e)<n}function Gn(t,e,n){let i,o,a;for(i=0,o=t.length;i<o;i++)a=t[i][n],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function Xn(t){return t*(On/180)}function Qn(t){return t*(180/On)}function Jn(t){if(!fn(t))return;let e=1,n=0;for(;Math.round(t*e)/e!==t;)e*=10,n++;return n}function Kn(t,e){const n=e.x-t.x,i=e.y-t.y,o=Math.sqrt(n*n+i*i);let a=Math.atan2(i,n);return a<-.5*On&&(a+=Bn),{angle:a,distance:o}}function qn(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function ti(t,e){return(t-e+Nn)%Bn-On}function ei(t){return(t%Bn+Bn)%Bn}function ni(t,e,n,i){const o=ei(t),a=ei(e),s=ei(n),r=ei(a-o),l=ei(s-o),c=ei(o-a),d=ei(o-s);return o===a||o===s||i&&a===s||r>l&&c<d}function ii(t,e,n){return Math.max(e,Math.min(n,t))}function oi(t,e,n,i=1e-6){return t>=Math.min(e,n)-i&&t<=Math.max(e,n)+i}function ai(t,e,n){n=n||(n=>t[n]<e);let i,o=t.length-1,a=0;for(;o-a>1;)i=a+o>>1,n(i)?a=i:o=i;return{lo:a,hi:o}}const si=(t,e,n,i)=>ai(t,n,i?i=>t[i][e]<=n:i=>t[i][e]<n),ri=(t,e,n)=>ai(t,n,(i=>t[i][e]>=n)),li=["push","pop","shift","splice","unshift"];function ci(t,e){const n=t._chartjs;if(!n)return;const i=n.listeners,o=i.indexOf(e);-1!==o&&i.splice(o,1),i.length>0||(li.forEach((e=>{delete t[e]})),delete t._chartjs)}function di(t){const e=new Set;let n,i;for(n=0,i=t.length;n<i;++n)e.add(t[n]);return e.size===i?t:Array.from(e)}const hi="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function ui(t,e,n){const i=n||(t=>Array.prototype.slice.call(t));let o=!1,a=[];return function(...n){a=i(n),o||(o=!0,hi.call(window,(()=>{o=!1,t.apply(e,a)})))}}const pi=t=>"start"===t?"left":"end"===t?"right":"center",gi=(t,e,n)=>"start"===t?e:"end"===t?n:(e+n)/2;function mi(t,e,n){const i=e.length;let o=0,a=i;if(t._sorted){const{iScale:s,_parsed:r}=t,l=s.axis,{min:c,max:d,minDefined:h,maxDefined:u}=s.getUserBounds();h&&(o=ii(Math.min(si(r,s.axis,c).lo,n?i:si(e,l,s.getPixelForValue(c)).lo),0,i-1)),a=u?ii(Math.max(si(r,s.axis,d,!0).hi+1,n?0:si(e,l,s.getPixelForValue(d),!0).hi+1),o,i)-o:i-o}return{start:o,count:a}}function fi(t){const{xScale:e,yScale:n,_scaleRanges:i}=t,o={xmin:e.min,xmax:e.max,ymin:n.min,ymax:n.max};if(!i)return t._scaleRanges=o,!0;const a=i.xmin!==e.min||i.xmax!==e.max||i.ymin!==n.min||i.ymax!==n.max;return Object.assign(i,o),a}const bi=t=>0===t||1===t,_i=(t,e,n)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Bn/n),xi=(t,e,n)=>Math.pow(2,-10*t)*Math.sin((t-e)*Bn/n)+1,yi={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*Rn),easeOutSine:t=>Math.sin(t*Rn),easeInOutSine:t=>-.5*(Math.cos(On*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=>bi(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=>bi(t)?t:_i(t,.075,.3),easeOutElastic:t=>bi(t)?t:xi(t,.075,.3),easeInOutElastic(t){const e=.1125;return bi(t)?t:t<.5?.5*_i(2*t,e,.45):.5+.5*xi(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-yi.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},easeInOutBounce:t=>t<.5?.5*yi.easeInBounce(2*t):.5*yi.easeOutBounce(2*t-1)+.5};function vi(t){return t+.5|0}const wi=(t,e,n)=>Math.max(Math.min(t,n),e);function ki(t){return wi(vi(2.55*t),0,255)}function Mi(t){return wi(vi(255*t),0,255)}function Si(t){return wi(vi(t/2.55)/100,0,1)}function Ci(t){return wi(vi(100*t),0,100)}const Ai={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},Ei=[..."0123456789ABCDEF"],Di=t=>Ei[15&t],Ii=t=>Ei[(240&t)>>4]+Ei[15&t],Pi=t=>(240&t)>>4==(15&t);const zi=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Li(t,e,n){const i=e*Math.min(n,1-n),o=(e,o=(e+t/30)%12)=>n-i*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function Ti(t,e,n){const i=(i,o=(i+t/60)%6)=>n-n*e*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Oi(t,e,n){const i=Li(t,1,.5);let o;for(e+n>1&&(o=1/(e+n),e*=o,n*=o),o=0;o<3;o++)i[o]*=1-e-n,i[o]+=e;return i}function Bi(t){const e=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(e,n,i),a=Math.min(e,n,i),s=(o+a)/2;let r,l,c;return o!==a&&(c=o-a,l=s>.5?c/(2-o-a):c/(o+a),r=function(t,e,n,i,o){return t===o?(e-n)/i+(e<n?6:0):e===o?(n-t)/i+2:(t-e)/i+4}(e,n,i,c,o),r=60*r+.5),[0|r,l||0,s]}function Ni(t,e,n,i){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,n,i)).map(Mi)}function Fi(t,e,n){return Ni(Li,t,e,n)}function Vi(t){return(t%360+360)%360}const Ri={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"},Wi={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 ji;const Hi=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Yi=t=>t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Zi=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function $i(t,e,n){if(t){let i=Bi(t);i[e]=Math.max(0,Math.min(i[e]+i[e]*n,0===e?360:1)),i=Fi(i),t.r=i[0],t.g=i[1],t.b=i[2]}}function Ui(t,e){return t?Object.assign(e||{},t):t}function Gi(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=Mi(t[3]))):(e=Ui(t,{r:0,g:0,b:0,a:1})).a=Mi(e.a),e}function Xi(t){return"r"===t.charAt(0)?function(t){const e=Hi.exec(t);let n,i,o,a=255;if(e){if(e[7]!==n){const t=+e[7];a=e[8]?ki(t):wi(255*t,0,255)}return n=+e[1],i=+e[3],o=+e[5],n=255&(e[2]?ki(n):wi(n,0,255)),i=255&(e[4]?ki(i):wi(i,0,255)),o=255&(e[6]?ki(o):wi(o,0,255)),{r:n,g:i,b:o,a}}}(t):function(t){const e=zi.exec(t);let n,i=255;if(!e)return;e[5]!==n&&(i=e[6]?ki(+e[5]):Mi(+e[5]));const o=Vi(+e[2]),a=+e[3]/100,s=+e[4]/100;return n="hwb"===e[1]?function(t,e,n){return Ni(Oi,t,e,n)}(o,a,s):"hsv"===e[1]?function(t,e,n){return Ni(Ti,t,e,n)}(o,a,s):Fi(o,a,s),{r:n[0],g:n[1],b:n[2],a:i}}(t)}class Qi{constructor(t){if(t instanceof Qi)return t;const e=typeof t;let n;var i,o,a;"object"===e?n=Gi(t):"string"===e&&(a=(i=t).length,"#"===i[0]&&(4===a||5===a?o={r:255&17*Ai[i[1]],g:255&17*Ai[i[2]],b:255&17*Ai[i[3]],a:5===a?17*Ai[i[4]]:255}:7!==a&&9!==a||(o={r:Ai[i[1]]<<4|Ai[i[2]],g:Ai[i[3]]<<4|Ai[i[4]],b:Ai[i[5]]<<4|Ai[i[6]],a:9===a?Ai[i[7]]<<4|Ai[i[8]]:255})),n=o||function(t){ji||(ji=function(){const t={},e=Object.keys(Wi),n=Object.keys(Ri);let i,o,a,s,r;for(i=0;i<e.length;i++){for(s=r=e[i],o=0;o<n.length;o++)a=n[o],r=r.replace(a,Ri[a]);a=parseInt(Wi[s],16),t[r]=[a>>16&255,a>>8&255,255&a]}return t}(),ji.transparent=[0,0,0,0]);const e=ji[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Xi(t)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var t=Ui(this._rgb);return t&&(t.a=Si(t.a)),t}set rgb(t){this._rgb=Gi(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${Si(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?(t=this._rgb,e=(t=>Pi(t.r)&&Pi(t.g)&&Pi(t.b)&&Pi(t.a))(t)?Di:Ii,t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0):void 0;var t,e}hslString(){return this._valid?function(t){if(!t)return;const e=Bi(t),n=e[0],i=Ci(e[1]),o=Ci(e[2]);return t.a<255?`hsla(${n}, ${i}%, ${o}%, ${Si(t.a)})`:`hsl(${n}, ${i}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const n=this.rgb,i=t.rgb;let o;const a=e===o?.5:e,s=2*a-1,r=n.a-i.a,l=((s*r==-1?s:(s+r)/(1+s*r))+1)/2;o=1-l,n.r=255&l*n.r+o*i.r+.5,n.g=255&l*n.g+o*i.g+.5,n.b=255&l*n.b+o*i.b+.5,n.a=a*n.a+(1-a)*i.a,this.rgb=n}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,n){const i=Zi(Si(t.r)),o=Zi(Si(t.g)),a=Zi(Si(t.b));return{r:Mi(Yi(i+n*(Zi(Si(e.r))-i))),g:Mi(Yi(o+n*(Zi(Si(e.g))-o))),b:Mi(Yi(a+n*(Zi(Si(e.b))-a))),a:t.a+n*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Qi(this.rgb)}alpha(t){return this._rgb.a=Mi(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=vi(.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 $i(this._rgb,2,t),this}darken(t){return $i(this._rgb,2,-t),this}saturate(t){return $i(this._rgb,1,t),this}desaturate(t){return $i(this._rgb,1,-t),this}rotate(t){return function(t,e){var n=Bi(t);n[0]=Vi(n[0]+e),n=Fi(n),t.r=n[0],t.g=n[1],t.b=n[2]}(this._rgb,t),this}}function Ji(t){return new Qi(t)}function Ki(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function qi(t){return Ki(t)?t:Ji(t)}function to(t){return Ki(t)?t:Ji(t).saturate(.5).darken(.1).hexString()}const eo=Object.create(null),no=Object.create(null);function io(t,e){if(!e)return t;const n=e.split(".");for(let e=0,i=n.length;e<i;++e){const i=n[e];t=t[i]||(t[i]=Object.create(null))}return t}function oo(t,e,n){return"string"==typeof e?Cn(io(t,e),n):Cn(io(t,""),e)}var ao=new class{constructor(t){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)=>to(e.backgroundColor),this.hoverBorderColor=(t,e)=>to(e.borderColor),this.hoverColor=(t,e)=>to(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)}set(t,e){return oo(this,t,e)}get(t){return io(this,t)}describe(t,e){return oo(no,t,e)}override(t,e){return oo(eo,t,e)}route(t,e,n,i){const o=io(this,t),a=io(this,n),s="_"+e;Object.defineProperties(o,{[s]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[s],e=a[i];return mn(t)?Object.assign({},e,t):_n(t,e)},set(t){this[s]=t}}})}}({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function so(t,e,n,i,o){let a=e[o];return a||(a=e[o]=t.measureText(o).width,n.push(o)),a>i&&(i=a),i}function ro(t,e,n,i){let o=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==e&&(o=i.data={},a=i.garbageCollect=[],i.font=e),t.save(),t.font=e;let s=0;const r=n.length;let l,c,d,h,u;for(l=0;l<r;l++)if(h=n[l],null!=h&&!0!==gn(h))s=so(t,o,a,s,h);else if(gn(h))for(c=0,d=h.length;c<d;c++)u=h[c],null==u||gn(u)||(s=so(t,o,a,s,u));t.restore();const p=a.length/2;if(p>n.length){for(l=0;l<p;l++)delete o[a[l]];a.splice(0,p)}return s}function lo(t,e,n){const i=t.currentDevicePixelRatio,o=0!==n?Math.max(n/2,.5):0;return Math.round((e-o)*i)/i+o}function co(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ho(t,e,n,i){uo(t,e,n,i,null)}function uo(t,e,n,i,o){let a,s,r,l,c,d;const h=e.pointStyle,u=e.rotation,p=e.radius;let g=(u||0)*Vn;if(h&&"object"==typeof h&&(a=h.toString(),"[object HTMLImageElement]"===a||"[object HTMLCanvasElement]"===a))return t.save(),t.translate(n,i),t.rotate(g),t.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void t.restore();if(!(isNaN(p)||p<=0)){switch(t.beginPath(),h){default:o?t.ellipse(n,i,o/2,p,0,0,Bn):t.arc(n,i,p,0,Bn),t.closePath();break;case"triangle":t.moveTo(n+Math.sin(g)*p,i-Math.cos(g)*p),g+=jn,t.lineTo(n+Math.sin(g)*p,i-Math.cos(g)*p),g+=jn,t.lineTo(n+Math.sin(g)*p,i-Math.cos(g)*p),t.closePath();break;case"rectRounded":c=.516*p,l=p-c,s=Math.cos(g+Wn)*l,r=Math.sin(g+Wn)*l,t.arc(n-s,i-r,c,g-On,g-Rn),t.arc(n+r,i-s,c,g-Rn,g),t.arc(n+s,i+r,c,g,g+Rn),t.arc(n-r,i+s,c,g+Rn,g+On),t.closePath();break;case"rect":if(!u){l=Math.SQRT1_2*p,d=o?o/2:l,t.rect(n-d,i-l,2*d,2*l);break}g+=Wn;case"rectRot":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+r,i-s),t.lineTo(n+s,i+r),t.lineTo(n-r,i+s),t.closePath();break;case"crossRot":g+=Wn;case"cross":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s);break;case"star":s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s),g+=Wn,s=Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r),t.moveTo(n+r,i-s),t.lineTo(n-r,i+s);break;case"line":s=o?o/2:Math.cos(g)*p,r=Math.sin(g)*p,t.moveTo(n-s,i-r),t.lineTo(n+s,i+r);break;case"dash":t.moveTo(n,i),t.lineTo(n+Math.cos(g)*p,i+Math.sin(g)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function po(t,e,n){return n=n||.5,!e||t&&t.x>e.left-n&&t.x<e.right+n&&t.y>e.top-n&&t.y<e.bottom+n}function go(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function mo(t){t.restore()}function fo(t,e,n,i,o){if(!e)return t.lineTo(n.x,n.y);if("middle"===o){const i=(e.x+n.x)/2;t.lineTo(i,e.y),t.lineTo(i,n.y)}else"after"===o!=!!i?t.lineTo(e.x,n.y):t.lineTo(n.x,e.y);t.lineTo(n.x,n.y)}function bo(t,e,n,i){if(!e)return t.lineTo(n.x,n.y);t.bezierCurveTo(i?e.cp1x:e.cp2x,i?e.cp1y:e.cp2y,i?n.cp2x:n.cp1x,i?n.cp2y:n.cp1y,n.x,n.y)}function _o(t,e,n,i,o,a={}){const s=gn(e)?e:[e],r=a.strokeWidth>0&&""!==a.strokeColor;let l,c;for(t.save(),t.font=o.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),pn(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<s.length;++l)c=s[l],r&&(a.strokeColor&&(t.strokeStyle=a.strokeColor),pn(a.strokeWidth)||(t.lineWidth=a.strokeWidth),t.strokeText(c,n,i,a.maxWidth)),t.fillText(c,n,i,a.maxWidth),xo(t,n,i,c,a),i+=o.lineHeight;t.restore()}function xo(t,e,n,i,o){if(o.strikethrough||o.underline){const a=t.measureText(i),s=e-a.actualBoundingBoxLeft,r=e+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,d=o.strikethrough?(l+c)/2:c;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=o.decorationWidth||2,t.moveTo(s,d),t.lineTo(r,d),t.stroke()}}function yo(t,e){const{x:n,y:i,w:o,h:a,radius:s}=e;t.arc(n+s.topLeft,i+s.topLeft,s.topLeft,-Rn,On,!0),t.lineTo(n,i+a-s.bottomLeft),t.arc(n+s.bottomLeft,i+a-s.bottomLeft,s.bottomLeft,On,Rn,!0),t.lineTo(n+o-s.bottomRight,i+a),t.arc(n+o-s.bottomRight,i+a-s.bottomRight,s.bottomRight,Rn,0,!0),t.lineTo(n+o,i+s.topRight),t.arc(n+o-s.topRight,i+s.topRight,s.topRight,0,-Rn,!0),t.lineTo(n+s.topLeft,i)}const vo=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),wo=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function ko(t,e){const n=(""+t).match(vo);if(!n||"normal"===n[1])return 1.2*e;switch(t=+n[2],n[3]){case"px":return t;case"%":t/=100}return e*t}function Mo(t,e){const n={},i=mn(e),o=i?Object.keys(e):e,a=mn(t)?i?n=>_n(t[n],t[e[n]]):e=>t[e]:()=>t;for(const t of o)n[t]=+a(t)||0;return n}function So(t){return Mo(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(t){return Mo(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Ao(t){const e=So(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Eo(t,e){t=t||{},e=e||ao.font;let n=_n(t.size,e.size);"string"==typeof n&&(n=parseInt(n,10));let i=_n(t.style,e.style);i&&!(""+i).match(wo)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const o={family:_n(t.family,e.family),lineHeight:ko(_n(t.lineHeight,e.lineHeight),n),size:n,style:i,weight:_n(t.weight,e.weight),string:""};return o.string=function(t){return!t||pn(t.size)||pn(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(o),o}function Do(t,e,n,i){let o,a,s,r=!0;for(o=0,a=t.length;o<a;++o)if(s=t[o],void 0!==s&&(void 0!==e&&"function"==typeof s&&(s=s(e),r=!1),void 0!==n&&gn(s)&&(s=s[n%s.length],r=!1),void 0!==s))return i&&!r&&(i.cacheable=!1),s}function Io(t,e){return Object.assign(Object.create(t),e)}function Po(t,e=[""],n=t,i,o=(()=>t[0])){zn(i)||(i=jo("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:n,_fallback:i,_getTarget:o,override:o=>Po([o,...t],e,n,i)};return new Proxy(a,{deleteProperty:(e,n)=>(delete e[n],delete e._keys,delete t[0][n],!0),get:(n,i)=>Bo(n,i,(()=>function(t,e,n,i){let o;for(const a of e)if(o=jo(To(a,t),n),zn(o))return Oo(t,o)?Ro(n,i,t,o):o}(i,e,t,n))),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>Ho(t).includes(e),ownKeys:t=>Ho(t),set(t,e,n){const i=t._storage||(t._storage=o());return t[e]=i[e]=n,delete t._keys,!0}})}function zo(t,e,n,i){const o={_cacheable:!1,_proxy:t,_context:e,_subProxy:n,_stack:new Set,_descriptors:Lo(t,i),setContext:e=>zo(t,e,n,i),override:o=>zo(t.override(o),e,n,i)};return new Proxy(o,{deleteProperty:(e,n)=>(delete e[n],delete t[n],!0),get:(t,e,n)=>Bo(t,e,(()=>function(t,e,n){const{_proxy:i,_context:o,_subProxy:a,_descriptors:s}=t;let r=i[e];return Ln(r)&&s.isScriptable(e)&&(r=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:s,_stack:r}=n;if(r.has(t))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+t);return r.add(t),e=e(a,s||i),r.delete(t),Oo(t,e)&&(e=Ro(o._scopes,o,t,e)),e}(e,r,t,n)),gn(r)&&r.length&&(r=function(t,e,n,i){const{_proxy:o,_context:a,_subProxy:s,_descriptors:r}=n;if(zn(a.index)&&i(t))e=e[a.index%e.length];else if(mn(e[0])){const n=e,i=o._scopes.filter((t=>t!==n));e=[];for(const l of n){const n=Ro(i,o,t,l);e.push(zo(n,a,s&&s[t],r))}}return e}(e,r,t,s.isIndexable)),Oo(e,r)&&(r=zo(r,o,a&&a[e],s)),r}(t,e,n))),getOwnPropertyDescriptor:(e,n)=>e._descriptors.allKeys?Reflect.has(t,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,n),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,n)=>Reflect.has(t,n),ownKeys:()=>Reflect.ownKeys(t),set:(e,n,i)=>(t[n]=i,delete e[n],!0)})}function Lo(t,e={scriptable:!0,indexable:!0}){const{_scriptable:n=e.scriptable,_indexable:i=e.indexable,_allKeys:o=e.allKeys}=t;return{allKeys:o,scriptable:n,indexable:i,isScriptable:Ln(n)?n:()=>n,isIndexable:Ln(i)?i:()=>i}}const To=(t,e)=>t?t+Pn(e):e,Oo=(t,e)=>mn(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Bo(t,e,n){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];const i=n();return t[e]=i,i}function No(t,e,n){return Ln(t)?t(e,n):t}const Fo=(t,e)=>!0===t?e:"string"==typeof t?In(e,t):void 0;function Vo(t,e,n,i,o){for(const a of e){const e=Fo(n,a);if(e){t.add(e);const a=No(e._fallback,n,o);if(zn(a)&&a!==n&&a!==i)return a}else if(!1===e&&zn(i)&&n!==i)return null}return!1}function Ro(t,e,n,i){const o=e._rootScopes,a=No(e._fallback,n,i),s=[...t,...o],r=new Set;r.add(i);let l=Wo(r,s,n,a||n,i);return null!==l&&(!zn(a)||a===n||(l=Wo(r,s,a,l,i),null!==l))&&Po(Array.from(r),[""],o,a,(()=>function(t,e,n){const i=t._getTarget();e in i||(i[e]={});const o=i[e];return gn(o)&&mn(n)?n:o}(e,n,i)))}function Wo(t,e,n,i,o){for(;n;)n=Vo(t,e,n,i,o);return n}function jo(t,e){for(const n of e){if(!n)continue;const e=n[t];if(zn(e))return e}}function Ho(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const n of t)for(const t of Object.keys(n).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Yo(t,e,n,i){const{iScale:o}=t,{key:a="r"}=this._parsing,s=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+n,d=e[c],s[r]={r:o.parse(In(d,a),c)};return s}const Zo=Number.EPSILON||1e-14,$o=(t,e)=>e<t.length&&!t[e].skip&&t[e],Uo=t=>"x"===t?"y":"x";function Go(t,e,n,i){const o=t.skip?e:t,a=e,s=n.skip?e:n,r=qn(a,o),l=qn(s,a);let c=r/(r+l),d=l/(r+l);c=isNaN(c)?0:c,d=isNaN(d)?0:d;const h=i*c,u=i*d;return{previous:{x:a.x-h*(s.x-o.x),y:a.y-h*(s.y-o.y)},next:{x:a.x+u*(s.x-o.x),y:a.y+u*(s.y-o.y)}}}function Xo(t,e,n){return Math.max(Math.min(t,n),e)}function Qo(t,e,n,i,o){let a,s,r,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const n=Uo(e),i=t.length,o=Array(i).fill(0),a=Array(i);let s,r,l,c=$o(t,0);for(s=0;s<i;++s)if(r=l,l=c,c=$o(t,s+1),l){if(c){const t=c[e]-l[e];o[s]=0!==t?(c[n]-l[n])/t:0}a[s]=r?c?Yn(o[s-1])!==Yn(o[s])?0:(o[s-1]+o[s])/2:o[s-1]:o[s]}!function(t,e,n){const i=t.length;let o,a,s,r,l,c=$o(t,0);for(let d=0;d<i-1;++d)l=c,c=$o(t,d+1),l&&c&&(Un(e[d],0,Zo)?n[d]=n[d+1]=0:(o=n[d]/e[d],a=n[d+1]/e[d],r=Math.pow(o,2)+Math.pow(a,2),r<=9||(s=3/Math.sqrt(r),n[d]=o*s*e[d],n[d+1]=a*s*e[d])))}(t,o,a),function(t,e,n="x"){const i=Uo(n),o=t.length;let a,s,r,l=$o(t,0);for(let c=0;c<o;++c){if(s=r,r=l,l=$o(t,c+1),!r)continue;const o=r[n],d=r[i];s&&(a=(o-s[n])/3,r[`cp1${n}`]=o-a,r[`cp1${i}`]=d-a*e[c]),l&&(a=(l[n]-o)/3,r[`cp2${n}`]=o+a,r[`cp2${i}`]=d+a*e[c])}}(t,a,e)}(t,o);else{let n=i?t[t.length-1]:t[0];for(a=0,s=t.length;a<s;++a)r=t[a],l=Go(n,r,t[Math.min(a+1,s-(i?0:1))%s],e.tension),r.cp1x=l.previous.x,r.cp1y=l.previous.y,r.cp2x=l.next.x,r.cp2y=l.next.y,n=r}e.capBezierPoints&&function(t,e){let n,i,o,a,s,r=po(t[0],e);for(n=0,i=t.length;n<i;++n)s=a,a=r,r=n<i-1&&po(t[n+1],e),a&&(o=t[n],s&&(o.cp1x=Xo(o.cp1x,e.left,e.right),o.cp1y=Xo(o.cp1y,e.top,e.bottom)),r&&(o.cp2x=Xo(o.cp2x,e.left,e.right),o.cp2y=Xo(o.cp2y,e.top,e.bottom)))}(t,n)}function Jo(){return"undefined"!=typeof window&&"undefined"!=typeof document}function Ko(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function qo(t,e,n){let i;return"string"==typeof t?(i=parseInt(t,10),-1!==t.indexOf("%")&&(i=i/100*e.parentNode[n])):i=t,i}const ta=t=>window.getComputedStyle(t,null),ea=["top","right","bottom","left"];function na(t,e,n){const i={};n=n?"-"+n:"";for(let o=0;o<4;o++){const a=ea[o];i[a]=parseFloat(t[e+"-"+a+n])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ia(t,e){if("native"in t)return t;const{canvas:n,currentDevicePixelRatio:i}=e,o=ta(n),a="border-box"===o.boxSizing,s=na(o,"padding"),r=na(o,"border","width"),{x:l,y:c,box:d}=function(t,e){const n=t.touches,i=n&&n.length?n[0]:t,{offsetX:o,offsetY:a}=i;let s,r,l=!1;if(((t,e,n)=>(t>0||e>0)&&(!n||!n.shadowRoot))(o,a,t.target))s=o,r=a;else{const t=e.getBoundingClientRect();s=i.clientX-t.left,r=i.clientY-t.top,l=!0}return{x:s,y:r,box:l}}(t,n),h=s.left+(d&&r.left),u=s.top+(d&&r.top);let{width:p,height:g}=e;return a&&(p-=s.width+r.width,g-=s.height+r.height),{x:Math.round((l-h)/p*n.width/i),y:Math.round((c-u)/g*n.height/i)}}const oa=t=>Math.round(10*t)/10;function aa(t,e,n){const i=e||1,o=Math.floor(t.height*i),a=Math.floor(t.width*i);t.height=o/i,t.width=a/i;const s=t.canvas;return s.style&&(n||!s.style.height&&!s.style.width)&&(s.style.height=`${t.height}px`,s.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==i||s.height!==o||s.width!==a)&&(t.currentDevicePixelRatio=i,s.height=o,s.width=a,t.ctx.setTransform(i,0,0,i,0,0),!0)}const sa=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function ra(t,e){const n=function(t,e){return ta(t).getPropertyValue(e)}(t,e),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function la(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:t.y+n*(e.y-t.y)}}function ca(t,e,n,i){return{x:t.x+n*(e.x-t.x),y:"middle"===i?n<.5?t.y:e.y:"after"===i?n<1?t.y:e.y:n>0?e.y:t.y}}function da(t,e,n,i){const o={x:t.cp2x,y:t.cp2y},a={x:e.cp1x,y:e.cp1y},s=la(t,o,n),r=la(o,a,n),l=la(a,e,n),c=la(s,r,n),d=la(r,l,n);return la(c,d,n)}const ha=new Map;function ua(t,e,n){return function(t,e){e=e||{};const n=t+JSON.stringify(e);let i=ha.get(n);return i||(i=new Intl.NumberFormat(t,e),ha.set(n,i)),i}(e,n).format(t)}function pa(t,e,n){return t?function(t,e){return{x:n=>t+t+e-n,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}}(e,n):{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}}function ga(t,e){let n,i;"ltr"!==e&&"rtl"!==e||(n=t.canvas.style,i=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",e,"important"),t.prevTextDirection=i)}function ma(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function fa(t){return"angle"===t?{between:ni,compare:ti,normalize:ei}:{between:oi,compare:(t,e)=>t-e,normalize:t=>t}}function ba({start:t,end:e,count:n,loop:i,style:o}){return{start:t%n,end:e%n,loop:i&&(e-t+1)%n==0,style:o}}function _a(t,e,n){if(!n)return[t];const{property:i,start:o,end:a}=n,s=e.length,{compare:r,between:l,normalize:c}=fa(i),{start:d,end:h,loop:u,style:p}=function(t,e,n){const{property:i,start:o,end:a}=n,{between:s,normalize:r}=fa(i),l=e.length;let c,d,{start:h,end:u,loop:p}=t;if(p){for(h+=l,u+=l,c=0,d=l;c<d&&s(r(e[h%l][i]),o,a);++c)h--,u--;h%=l,u%=l}return u<h&&(u+=l),{start:h,end:u,loop:p,style:t.style}}(t,e,n),g=[];let m,f,b,_=!1,x=null;for(let t=d,n=d;t<=h;++t)f=e[t%s],f.skip||(m=c(f[i]),m!==b&&(_=l(m,o,a),null===x&&(_||l(o,b,m)&&0!==r(o,b))&&(x=0===r(m,o)?t:n),null!==x&&(!_||0===r(a,m)||l(a,b,m))&&(g.push(ba({start:x,end:t,loop:u,count:s,style:p})),x=null),n=t,b=m));return null!==x&&g.push(ba({start:x,end:h,loop:u,count:s,style:p})),g}function xa(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function ya(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}var va=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,n,i){const o=e.listeners[i],a=e.duration;o.forEach((i=>i({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(n-e.start,a)})))}_refresh(){this._request||(this._running=!0,this._request=hi.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((n,i)=>{if(!n.running||!n.items.length)return;const o=n.items;let a,s=o.length-1,r=!1;for(;s>=0;--s)a=o[s],a._active?(a._total>n.duration&&(n.duration=a._total),a.tick(t),r=!0):(o[s]=o[o.length-1],o.pop());r&&(i.draw(),this._notify(i,n,t,"progress")),o.length||(n.running=!1,this._notify(i,n,t,"complete"),n.initial=!1),e+=o.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let n=e.get(t);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,n)),n}listen(t,e,n){this._getAnims(t).listeners[e].push(n)}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 n=e.items;let i=n.length-1;for(;i>=0;--i)n[i].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const wa="transparent",ka={boolean:(t,e,n)=>n>.5?e:t,color(t,e,n){const i=qi(t||wa),o=i.valid&&qi(e||wa);return o&&o.valid?o.mix(i,n).hexString():e},number:(t,e,n)=>t+(e-t)*n};class Ma{constructor(t,e,n,i){const o=e[n];i=Do([t.to,i,o,t.from]);const a=Do([t.from,o,i]);this._active=!0,this._fn=t.fn||ka[t.type||typeof a],this._easing=yi[t.easing]||yi.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=n,this._from=a,this._to=i,this._promises=void 0}active(){return this._active}update(t,e,n){if(this._active){this._notify(!1);const i=this._target[this._prop],o=n-this._start,a=this._duration-o;this._start=n,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Do([t.to,e,i,t.from]),this._from=Do([t.from,i,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,n=this._duration,i=this._prop,o=this._from,a=this._loop,s=this._to;let r;if(this._active=o!==s&&(a||e<n),!this._active)return this._target[i]=s,void this._notify(!0);e<0?this._target[i]=o:(r=e/n%2,r=a&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[i]=this._fn(o,s,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,n)=>{t.push({res:e,rej:n})}))}_notify(t){const e=t?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][e]()}}ao.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const Sa=Object.keys(ao.animation);ao.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),ao.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),ao.describe("animations",{_fallback:"animation"}),ao.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}}}});class Ca{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!mn(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((n=>{const i=t[n];if(!mn(i))return;const o={};for(const t of Sa)o[t]=i[t];(gn(i.properties)&&i.properties||[n]).forEach((t=>{t!==n&&e.has(t)||e.set(t,o)}))}))}_animateOptions(t,e){const n=e.options,i=function(t,e){if(!e)return;let n=t.options;if(n)return n.$shared&&(t.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n;t.options=e}(t,n);if(!i)return[];const o=this._createAnimations(i,n);return n.$shared&&function(t,e){const n=[],i=Object.keys(e);for(let e=0;e<i.length;e++){const o=t[i[e]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}(t.options.$animations,n).then((()=>{t.options=n}),(()=>{})),o}_createAnimations(t,e){const n=this._properties,i=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),s=Date.now();let r;for(r=a.length-1;r>=0;--r){const l=a[r];if("$"===l.charAt(0))continue;if("options"===l){i.push(...this._animateOptions(t,e));continue}const c=e[l];let d=o[l];const h=n.get(l);if(d){if(h&&d.active()){d.update(h,c,s);continue}d.cancel()}h&&h.duration?(o[l]=d=new Ma(h,t,l,c),i.push(d)):t[l]=c}return i}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const n=this._createAnimations(t,e);return n.length?(va.add(this._chart,n),!0):void 0}}function Aa(t,e){const n=t&&t.options||{},i=n.reverse,o=void 0===n.min?e:0,a=void 0===n.max?e:0;return{start:i?a:o,end:i?o:a}}function Ea(t,e){const n=[],i=t._getSortedDatasetMetas(e);let o,a;for(o=0,a=i.length;o<a;++o)n.push(i[o].index);return n}function Da(t,e,n,i={}){const o=t.keys,a="single"===i.mode;let s,r,l,c;if(null!==e){for(s=0,r=o.length;s<r;++s){if(l=+o[s],l===n){if(i.all)continue;break}c=t.values[l],fn(c)&&(a||0===e||Yn(e)===Yn(c))&&(e+=c)}return e}}function Ia(t,e){const n=t&&t.options.stacked;return n||void 0===n&&void 0!==e.stack}function Pa(t,e,n){const i=t[e]||(t[e]={});return i[n]||(i[n]={})}function za(t,e,n,i){for(const o of e.getMatchingVisibleMetas(i).reverse()){const e=t[o.index];if(n&&e>0||!n&&e<0)return o.index}return null}function La(t,e){const{chart:n,_cachedMeta:i}=t,o=n._stacks||(n._stacks={}),{iScale:a,vScale:s,index:r}=i,l=a.axis,c=s.axis,d=function(t,e,n){return`${t.id}.${e.id}.${n.stack||n.type}`}(a,s,i),h=e.length;let u;for(let t=0;t<h;++t){const n=e[t],{[l]:a,[c]:h}=n;u=(n._stacks||(n._stacks={}))[c]=Pa(o,d,a),u[r]=h,u._top=za(u,s,!0,i.type),u._bottom=za(u,s,!1,i.type)}}function Ta(t,e){const n=t.scales;return Object.keys(n).filter((t=>n[t].axis===e)).shift()}function Oa(t,e){const n=t.controller.index,i=t.vScale&&t.vScale.axis;if(i){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[i]||void 0===e[i][n])return;delete e[i][n]}}}const Ba=t=>"reset"===t||"none"===t,Na=(t,e)=>e?t:Object.assign({},t);class Fa{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.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Ia(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Oa(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,n=this.getDataset(),i=(t,e,n,i)=>"x"===t?e:"r"===t?i:n,o=e.xAxisID=_n(n.xAxisID,Ta(t,"x")),a=e.yAxisID=_n(n.yAxisID,Ta(t,"y")),s=e.rAxisID=_n(n.rAxisID,Ta(t,"r")),r=e.indexAxis,l=e.iAxisID=i(r,o,a,s),c=e.vAxisID=i(r,a,o,s);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(s),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&&ci(this._data,this),t._stacked&&Oa(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),n=this._data;if(mn(e))this._data=function(t){const e=Object.keys(t),n=new Array(e.length);let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i],n[i]={x:a,y:t[a]};return n}(e);else if(n!==e){if(n){ci(n,this);const t=this._cachedMeta;Oa(t),t._parsed=[]}e&&Object.isExtensible(e)&&(this,(i=e)._chartjs?i._chartjs.listeners.push(this):(Object.defineProperty(i,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),li.forEach((t=>{const e="_onData"+Pn(t),n=i[t];Object.defineProperty(i,t,{configurable:!0,enumerable:!1,value(...t){const o=n.apply(this,t);return i._chartjs.listeners.forEach((n=>{"function"==typeof n[e]&&n[e](...t)})),o}})})))),this._syncList=[],this._data=e}var i}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,n=this.getDataset();let i=!1;this._dataCheck();const o=e._stacked;e._stacked=Ia(e.vScale,e),e.stack!==n.stack&&(i=!0,Oa(e),e.stack=n.stack),this._resyncElements(t),(i||o!==e._stacked)&&La(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),n=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:n,_data:i}=this,{iScale:o,_stacked:a}=n,s=o.axis;let r,l,c,d=0===t&&e===i.length||n._sorted,h=t>0&&n._parsed[t-1];if(!1===this._parsing)n._parsed=i,n._sorted=!0,c=i;else{c=gn(i[t])?this.parseArrayData(n,i,t,e):mn(i[t])?this.parseObjectData(n,i,t,e):this.parsePrimitiveData(n,i,t,e);const o=()=>null===l[s]||h&&l[s]<h[s];for(r=0;r<e;++r)n._parsed[r+t]=l=c[r],d&&(o()&&(d=!1),h=l);n._sorted=d}a&&La(this,c)}parsePrimitiveData(t,e,n,i){const{iScale:o,vScale:a}=t,s=o.axis,r=a.axis,l=o.getLabels(),c=o===a,d=new Array(i);let h,u,p;for(h=0,u=i;h<u;++h)p=h+n,d[h]={[s]:c||o.parse(l[p],p),[r]:a.parse(e[p],p)};return d}parseArrayData(t,e,n,i){const{xScale:o,yScale:a}=t,s=new Array(i);let r,l,c,d;for(r=0,l=i;r<l;++r)c=r+n,d=e[c],s[r]={x:o.parse(d[0],c),y:a.parse(d[1],c)};return s}parseObjectData(t,e,n,i){const{xScale:o,yScale:a}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,l=new Array(i);let c,d,h,u;for(c=0,d=i;c<d;++c)h=c+n,u=e[h],l[c]={x:o.parse(In(u,s),h),y:a.parse(In(u,r),h)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,n){const i=this.chart,o=this._cachedMeta,a=e[t.axis];return Da({keys:Ea(i,!0),values:e._stacks[t.axis]},a,o.index,{mode:n})}updateRangeFromParsed(t,e,n,i){const o=n[e.axis];let a=null===o?NaN:o;const s=i&&n._stacks[e.axis];i&&s&&(i.values=s,a=Da(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,a),t.max=Math.max(t.max,a)}getMinMax(t,e){const n=this._cachedMeta,i=n._parsed,o=n._sorted&&t===n.iScale,a=i.length,s=this._getOtherScale(t),r=((t,e,n)=>t&&!e.hidden&&e._stacked&&{keys:Ea(n,!0),values:null})(e,n,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:c,max:d}=function(t){const{min:e,max:n,minDefined:i,maxDefined:o}=t.getUserBounds();return{min:i?e:Number.NEGATIVE_INFINITY,max:o?n:Number.POSITIVE_INFINITY}}(s);let h,u;function p(){u=i[h];const e=u[s.axis];return!fn(u[t.axis])||c>e||d<e}for(h=0;h<a&&(p()||(this.updateRangeFromParsed(l,t,u,r),!o));++h);if(o)for(h=a-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(l,t,u,r);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,n=[];let i,o,a;for(i=0,o=e.length;i<o;++i)a=e[i][t.axis],fn(a)&&n.push(a);return n}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,n=e.iScale,i=e.vScale,o=this.getParsed(t);return{label:n?""+n.getLabelForValue(o[n.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,n,i,o;return mn(t)?(e=t.top,n=t.right,i=t.bottom,o=t.left):e=n=i=o=t,{top:e,right:n,bottom:i,left:o,disabled:!1===t}}(_n(this.options.clip,function(t,e,n){if(!1===n)return!1;const i=Aa(t,n),o=Aa(e,n);return{top:o.end,right:i.end,bottom:o.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,n=this._cachedMeta,i=n.data||[],o=e.chartArea,a=[],s=this._drawStart||0,r=this._drawCount||i.length-s,l=this.options.drawActiveElementsOnTop;let c;for(n.dataset&&n.dataset.draw(t,o,s,r),c=s;c<s+r;++c){const e=i[c];e.hidden||(e.active&&l?a.push(e):e.draw(t,o))}for(c=0;c<a.length;++c)a[c].draw(t,o)}getStyle(t,e){const n=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(t||0,n)}getContext(t,e,n){const i=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];o=e.$context||(e.$context=function(t,e,n){return Io(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:n,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=function(t,e){return Io(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=n,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",n){const i="active"===e,o=this._cachedDataOpts,a=t+"-"+e,s=o[a],r=this.enableOptionSharing&&zn(n);if(s)return Na(s,r);const l=this.chart.config,c=l.datasetElementScopeKeys(this._type,t),d=i?[`${t}Hover`,"hover",t,""]:[t,""],h=l.getOptionScopes(this.getDataset(),c),u=Object.keys(ao.elements[t]),p=l.resolveNamedOptions(h,u,(()=>this.getContext(n,i)),d);return p.$shared&&(p.$shared=r,o[a]=Object.freeze(Na(p,r))),p}_resolveAnimations(t,e,n){const i=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,s=o[a];if(s)return s;let r;if(!1!==i.options.animation){const i=this.chart.config,o=i.datasetAnimationScopeKeys(this._type,e),a=i.getOptionScopes(this.getDataset(),o);r=i.createResolver(a,this.getContext(t,n,e))}const l=new Ca(i,r&&r.animations);return r&&r._cacheable&&(o[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Ba(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const n=this.resolveDataElementOptions(t,e),i=this._sharedOptions,o=this.getSharedOptions(n),a=this.includeOptions(e,o)||o!==i;return this.updateSharedOptions(o,e,n),{sharedOptions:o,includeOptions:a}}updateElement(t,e,n,i){Ba(i)?Object.assign(t,n):this._resolveAnimations(e,i).update(t,n)}updateSharedOptions(t,e,n){t&&!Ba(e)&&this._resolveAnimations(void 0,e).update(t,n)}_setStyle(t,e,n,i){t.active=i;const o=this.getStyle(e,i);this._resolveAnimations(e,n,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,n){this._setStyle(t,n,"active",!1)}setHoverStyle(t,e,n){this._setStyle(t,n,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,n=this._cachedMeta.data;for(const[t,e,n]of this._syncList)this[t](e,n);this._syncList=[];const i=n.length,o=e.length,a=Math.min(o,i);a&&this.parse(0,a),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,e,n=!0){const i=this._cachedMeta,o=i.data,a=t+e;let s;const r=t=>{for(t.length+=e,s=t.length-1;s>=a;s--)t[s]=t[s-e]};for(r(o),s=t;s<a;++s)o[s]=new this.dataElementType;this._parsing&&r(i._parsed),this.parse(t,e),n&&this.updateElements(o,t,e,"reset")}updateElements(t,e,n,i){}_removeElements(t,e){const n=this._cachedMeta;if(this._parsing){const i=n._parsed.splice(t,e);n._stacked&&Oa(n,i)}n.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,n,i]=t;this[e](n,i)}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 n=arguments.length-2;n&&this._sync(["_insertElements",t,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function Va(t){const e=t.iScale,n=function(t,e){if(!t._cache.$bar){const n=t.getMatchingVisibleMetas(e);let i=[];for(let e=0,o=n.length;e<o;e++)i=i.concat(n[e].controller.getAllParsedValues(t));t._cache.$bar=di(i.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let i,o,a,s,r=e._length;const l=()=>{32767!==a&&-32768!==a&&(zn(s)&&(r=Math.min(r,Math.abs(a-s)||r)),s=a)};for(i=0,o=n.length;i<o;++i)a=e.getPixelForValue(n[i]),l();for(s=void 0,i=0,o=e.ticks.length;i<o;++i)a=e.getPixelForTick(i),l();return r}function Ra(t,e,n,i){return gn(t)?function(t,e,n,i){const o=n.parse(t[0],i),a=n.parse(t[1],i),s=Math.min(o,a),r=Math.max(o,a);let l=s,c=r;Math.abs(s)>Math.abs(r)&&(l=r,c=s),e[n.axis]=c,e._custom={barStart:l,barEnd:c,start:o,end:a,min:s,max:r}}(t,e,n,i):e[n.axis]=n.parse(t,i),e}function Wa(t,e,n,i){const o=t.iScale,a=t.vScale,s=o.getLabels(),r=o===a,l=[];let c,d,h,u;for(c=n,d=n+i;c<d;++c)u=e[c],h={},h[o.axis]=r||o.parse(s[c],c),l.push(Ra(u,h,a,c));return l}function ja(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function Ha(t,e,n,i){let o=e.borderSkipped;const a={};if(!o)return void(t.borderSkipped=a);if(!0===o)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:r,reverse:l,top:c,bottom:d}=function(t){let e,n,i,o,a;return t.horizontal?(e=t.base>t.x,n="left",i="right"):(e=t.base<t.y,n="bottom",i="top"),e?(o="end",a="start"):(o="start",a="end"),{start:n,end:i,reverse:e,top:o,bottom:a}}(t);"middle"===o&&n&&(t.enableBorderRadius=!0,(n._top||0)===i?o=c:(n._bottom||0)===i?o=d:(a[Ya(d,s,r,l)]=!0,o=c)),a[Ya(o,s,r,l)]=!0,t.borderSkipped=a}function Ya(t,e,n,i){var o,a,s;return i?(s=n,t=Za(t=(o=t)===(a=e)?s:o===s?a:o,n,e)):t=Za(t,e,n),t}function Za(t,e,n){return"start"===t?e:"end"===t?n:t}function $a(t,{inflateAmount:e},n){t.inflateAmount="auto"===e?1===n?.33:0:e}Fa.defaults={},Fa.prototype.datasetElementType=null,Fa.prototype.dataElementType=null;class Ua extends Fa{parsePrimitiveData(t,e,n,i){return Wa(t,e,n,i)}parseArrayData(t,e,n,i){return Wa(t,e,n,i)}parseObjectData(t,e,n,i){const{iScale:o,vScale:a}=t,{xAxisKey:s="x",yAxisKey:r="y"}=this._parsing,l="x"===o.axis?s:r,c="x"===a.axis?s:r,d=[];let h,u,p,g;for(h=n,u=n+i;h<u;++h)g=e[h],p={},p[o.axis]=o.parse(In(g,l),h),d.push(Ra(In(g,c),p,a,h));return d}updateRangeFromParsed(t,e,n,i){super.updateRangeFromParsed(t,e,n,i);const o=n._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:n,vScale:i}=e,o=this.getParsed(t),a=o._custom,s=ja(a)?"["+a.start+", "+a.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+n.getLabelForValue(o[n.axis]),value:s}}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,n,i){const o="reset"===i,{index:a,_cachedMeta:{vScale:s}}=this,r=s.getBasePixel(),l=s.isHorizontal(),c=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,i);for(let u=e;u<e+n;u++){const e=this.getParsed(u),n=o||pn(e[s.axis])?{base:r,head:r}:this._calculateBarValuePixels(u),p=this._calculateBarIndexPixels(u,c),g=(e._stacks||{})[s.axis],m={horizontal:l,base:n.base,enableBorderRadius:!g||ja(e._custom)||a===g._top||a===g._bottom,x:l?n.head:p.center,y:l?p.center:n.head,height:l?p.size:Math.abs(n.size),width:l?Math.abs(n.size):p.size};h&&(m.options=d||this.resolveDataElementOptions(u,t[u].active?"active":i));const f=m.options||t[u].options;Ha(m,f,g,a),$a(m,f,c.ratio),this.updateElement(t[u],u,m,i)}}_getStacks(t,e){const{iScale:n}=this._cachedMeta,i=n.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),o=n.options.stacked,a=[],s=t=>{const n=t.controller.getParsed(e),i=n&&n[t.vScale.axis];if(pn(i)||isNaN(i))return!0};for(const n of i)if((void 0===e||!s(n))&&((!1===o||-1===a.indexOf(n.stack)||void 0===o&&void 0===n.stack)&&a.push(n.stack),n.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,n){const i=this._getStacks(t,n),o=void 0!==e?i.indexOf(e):-1;return-1===o?i.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,n=e.iScale,i=[];let o,a;for(o=0,a=e.data.length;o<a;++o)i.push(n.getPixelForValue(this.getParsed(o)[n.axis],o));const s=t.barThickness;return{min:s||Va(e),pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:t.grouped,ratio:s?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:n},options:{base:i,minBarLength:o}}=this,a=i||0,s=this.getParsed(t),r=s._custom,l=ja(r);let c,d,h=s[e.axis],u=0,p=n?this.applyStack(e,s,n):h;p!==h&&(u=p-h,p=h),l&&(h=r.barStart,p=r.barEnd-r.barStart,0!==h&&Yn(h)!==Yn(r.barEnd)&&(u=0),u+=h);const g=pn(i)||l?u:i;let m=e.getPixelForValue(g);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(u+p):m,d=c-m,Math.abs(d)<o){d=function(t,e,n){return 0!==t?Yn(t):(e.isHorizontal()?1:-1)*(e.min>=n?1:-1)}(d,e,a)*o,h===a&&(m-=d/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),i=Math.min(t,n),s=Math.max(t,n);m=Math.max(Math.min(m,s),i),c=m+d}if(m===e.getPixelForValue(a)){const t=Yn(d)*e.getLineWidthForValue(a)/2;m+=t,d-=t}return{size:d,base:m,head:c,center:c+d/2}}_calculateBarIndexPixels(t,e){const n=e.scale,i=this.options,o=i.skipNull,a=_n(i.maxBarThickness,1/0);let s,r;if(e.grouped){const n=o?this._getStackCount(t):e.stackCount,l="flex"===i.barThickness?function(t,e,n,i){const o=e.pixels,a=o[t];let s=t>0?o[t-1]:null,r=t<o.length-1?o[t+1]:null;const l=n.categoryPercentage;null===s&&(s=a-(null===r?e.end-e.start:r-a)),null===r&&(r=a+a-s);const c=a-(a-Math.min(s,r))/2*l;return{chunk:Math.abs(r-s)/2*l/i,ratio:n.barPercentage,start:c}}(t,e,i,n):function(t,e,n,i){const o=n.barThickness;let a,s;return pn(o)?(a=e.min*n.categoryPercentage,s=n.barPercentage):(a=o*i,s=1),{chunk:a/i,ratio:s,start:e.pixels[t]-a/2}}(t,e,i,n),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);s=l.start+l.chunk*c+l.chunk/2,r=Math.min(a,l.chunk*l.ratio)}else s=n.getPixelForValue(this.getParsed(t)[n.axis],t),r=Math.min(a,e.min*e.ratio);return{base:s-r/2,head:s+r/2,center:s,size:r}}draw(){const t=this._cachedMeta,e=t.vScale,n=t.data,i=n.length;let o=0;for(;o<i;++o)null!==this.getParsed(o)[e.axis]&&n[o].draw(this._ctx)}}Ua.id="bar",Ua.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Ua.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Ga extends Fa{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,n,i){const o=super.parsePrimitiveData(t,e,n,i);for(let t=0;t<o.length;t++)o[t]._custom=this.resolveDataElementOptions(t+n).radius;return o}parseArrayData(t,e,n,i){const o=super.parseArrayData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=_n(i[2],this.resolveDataElementOptions(t+n).radius)}return o}parseObjectData(t,e,n,i){const o=super.parseObjectData(t,e,n,i);for(let t=0;t<o.length;t++){const i=e[n+t];o[t]._custom=_n(i&&i.r&&+i.r,this.resolveDataElementOptions(t+n).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let n=t.length-1;n>=0;--n)e=Math.max(e,t[n].size(this.resolveDataElementOptions(n))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:n,yScale:i}=e,o=this.getParsed(t),a=n.getLabelForValue(o.x),s=i.getLabelForValue(o.y),r=o._custom;return{label:e.label,value:"("+a+", "+s+(r?", "+r:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s}=this._cachedMeta,{sharedOptions:r,includeOptions:l}=this._getSharedOptions(e,i),c=a.axis,d=s.axis;for(let h=e;h<e+n;h++){const e=t[h],n=!o&&this.getParsed(h),u={},p=u[c]=o?a.getPixelForDecimal(.5):a.getPixelForValue(n[c]),g=u[d]=o?s.getBasePixel():s.getPixelForValue(n[d]);u.skip=isNaN(p)||isNaN(g),l&&(u.options=r||this.resolveDataElementOptions(h,e.active?"active":i),o&&(u.options.radius=0)),this.updateElement(e,h,u,i)}}resolveDataElementOptions(t,e){const n=this.getParsed(t);let i=super.resolveDataElementOptions(t,e);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const o=i.radius;return"active"!==e&&(i.radius=0),i.radius+=_n(n&&n._custom,o),i}}Ga.id="bubble",Ga.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Ga.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Xa extends Fa{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 n=this.getDataset().data,i=this._cachedMeta;if(!1===this._parsing)i._parsed=n;else{let o,a,s=t=>+n[t];if(mn(n[t])){const{key:t="value"}=this._parsing;s=e=>+In(n[e],t)}for(o=t,a=t+e;o<a;++o)i._parsed[o]=s(o)}}_getRotation(){return Xn(this.options.rotation-90)}_getCircumference(){return Xn(this.options.circumference)}_getRotationExtents(){let t=Bn,e=-Bn;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const i=this.chart.getDatasetMeta(n).controller,o=i._getRotation(),a=i._getCircumference();t=Math.min(t,o),e=Math.max(e,o+a)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:n}=e,i=this._cachedMeta,o=i.data,a=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,s=Math.max((Math.min(n.width,n.height)-a)/2,0),r=Math.min((c=s,"string"==typeof(l=this.options.cutout)&&l.endsWith("%")?parseFloat(l)/100:l/c),1);var l,c;const d=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:p,ratioY:g,offsetX:m,offsetY:f}=function(t,e,n){let i=1,o=1,a=0,s=0;if(e<Bn){const r=t,l=r+e,c=Math.cos(r),d=Math.sin(r),h=Math.cos(l),u=Math.sin(l),p=(t,e,i)=>ni(t,r,l,!0)?1:Math.max(e,e*n,i,i*n),g=(t,e,i)=>ni(t,r,l,!0)?-1:Math.min(e,e*n,i,i*n),m=p(0,c,h),f=p(Rn,d,u),b=g(On,c,h),_=g(On+Rn,d,u);i=(m-b)/2,o=(f-_)/2,a=-(m+b)/2,s=-(f+_)/2}return{ratioX:i,ratioY:o,offsetX:a,offsetY:s}}(u,h,r),b=(n.width-a)/p,_=(n.height-a)/g,x=Math.max(Math.min(b,_)/2,0),y=xn(this.options.radius,x),v=(y-Math.max(y*r,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*y,this.offsetY=f*y,i.total=this.calculateTotal(),this.outerRadius=y-v*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-v*d,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const n=this.options,i=this._cachedMeta,o=this._getCircumference();return e&&n.animation.animateRotate||!this.chart.getDataVisibility(t)||null===i._parsed[t]||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/Bn)}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.chartArea,r=a.options.animation,l=(s.left+s.right)/2,c=(s.top+s.bottom)/2,d=o&&r.animateScale,h=d?0:this.innerRadius,u=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,i);let m,f=this._getRotation();for(m=0;m<e;++m)f+=this._circumference(m,o);for(m=e;m<e+n;++m){const e=this._circumference(m,o),n=t[m],a={x:l+this.offsetX,y:c+this.offsetY,startAngle:f,endAngle:f+e,circumference:e,outerRadius:u,innerRadius:h};g&&(a.options=p||this.resolveDataElementOptions(m,n.active?"active":i)),f+=e,this.updateElement(n,m,a,i)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let n,i=0;for(n=0;n<e.length;n++){const o=t._parsed[n];null===o||isNaN(o)||!this.chart.getDataVisibility(n)||e[n].hidden||(i+=Math.abs(o))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?Bn*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ua(e._parsed[t],n.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const n=this.chart;let i,o,a,s,r;if(!t)for(i=0,o=n.data.datasets.length;i<o;++i)if(n.isDatasetVisible(i)){a=n.getDatasetMeta(i),t=a.data,s=a.controller;break}if(!t)return 0;for(i=0,o=t.length;i<o;++i)r=s.resolveDataElementOptions(i),"inner"!==r.borderAlign&&(e=Math.max(e,r.borderWidth||0,r.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let n=0,i=t.length;n<i;++n){const t=this.resolveDataElementOptions(n);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let n=0;n<t;++n)this.chart.isDatasetVisible(n)&&(e+=this._getRingWeight(n));return e}_getRingWeight(t){return Math.max(_n(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Xa.id="doughnut",Xa.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"},Xa.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Xa.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label;const n=": "+t.formattedValue;return gn(e)?(e=e.slice(),e[0]+=n):e+=n,e}}}}};class Qa extends Fa{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:n,data:i=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:s,count:r}=mi(e,i,a);this._drawStart=s,this._drawCount=r,fi(e)&&(s=0,r=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!o._decimated,n.points=i;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(n,void 0,{animated:!a,options:l},t),this.updateElements(i,s,r,t)}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:r,_dataset:l}=this._cachedMeta,{sharedOptions:c,includeOptions:d}=this._getSharedOptions(e,i),h=a.axis,u=s.axis,{spanGaps:p,segment:g}=this.options,m=$n(p)?p:Number.POSITIVE_INFINITY,f=this.chart._animationsDisabled||o||"none"===i;let b=e>0&&this.getParsed(e-1);for(let p=e;p<e+n;++p){const e=t[p],n=this.getParsed(p),_=f?e:{},x=pn(n[u]),y=_[h]=a.getPixelForValue(n[h],p),v=_[u]=o||x?s.getBasePixel():s.getPixelForValue(r?this.applyStack(s,n,r):n[u],p);_.skip=isNaN(y)||isNaN(v)||x,_.stop=p>0&&Math.abs(n[h]-b[h])>m,g&&(_.parsed=n,_.raw=l.data[p]),d&&(_.options=c||this.resolveDataElementOptions(p,e.active?"active":i)),f||this.updateElement(e,p,_,i),b=n}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,n=e.options&&e.options.borderWidth||0,i=t.data||[];if(!i.length)return n;const o=i[0].size(this.resolveDataElementOptions(0)),a=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(n,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Qa.id="line",Qa.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Qa.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Ja extends Fa{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,n=this.chart,i=n.data.labels||[],o=ua(e._parsed[t].r,n.options.locale);return{label:i[t]||"",value:o}}parseObjectData(t,e,n,i){return Yo.bind(this)(t,e,n,i)}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,n)=>{const i=this.getParsed(n).r;!isNaN(i)&&this.chart.getDataVisibility(n)&&(i<e.min&&(e.min=i),i>e.max&&(e.max=i))})),e}_updateRadius(){const t=this.chart,e=t.chartArea,n=t.options,i=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(i/2,0),a=(o-Math.max(n.cutoutPercentage?o/100*n.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,n,i){const o="reset"===i,a=this.chart,s=a.options.animation,r=this._cachedMeta.rScale,l=r.xCenter,c=r.yCenter,d=r.getIndexAngle(0)-.5*On;let h,u=d;const p=360/this.countVisibleElements();for(h=0;h<e;++h)u+=this._computeAngle(h,i,p);for(h=e;h<e+n;h++){const e=t[h];let n=u,g=u+this._computeAngle(h,i,p),m=a.getDataVisibility(h)?r.getDistanceFromCenterForValue(this.getParsed(h).r):0;u=g,o&&(s.animateScale&&(m=0),s.animateRotate&&(n=g=d));const f={x:l,y:c,innerRadius:0,outerRadius:m,startAngle:n,endAngle:g,options:this.resolveDataElementOptions(h,e.active?"active":i)};this.updateElement(e,h,f,i)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach(((t,n)=>{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++})),e}_computeAngle(t,e,n){return this.chart.getDataVisibility(t)?Xn(this.resolveDataElementOptions(t,e).angle||n):0}}Ja.id="polarArea",Ja.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Ja.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:n}}=t.legend.options;return e.labels.map(((e,i)=>{const o=t.getDatasetMeta(0).controller.getStyle(i);return{text:e,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:n,hidden:!t.getDataVisibility(i),index:i}}))}return[]}},onClick(t,e,n){n.chart.toggleDataVisibility(e.index),n.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ka extends Xa{}Ka.id="pie",Ka.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class qa extends Fa{getLabelAndValue(t){const e=this._cachedMeta.vScale,n=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(n[e.axis])}}parseObjectData(t,e,n,i){return Yo.bind(this)(t,e,n,i)}update(t){const e=this._cachedMeta,n=e.dataset,i=e.data||[],o=e.iScale.getLabels();if(n.points=i,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const a={_loop:!0,_fullLoop:o.length===i.length,options:e};this.updateElement(n,void 0,a,t)}this.updateElements(i,0,i.length,t)}updateElements(t,e,n,i){const o=this._cachedMeta.rScale,a="reset"===i;for(let s=e;s<e+n;s++){const e=t[s],n=this.resolveDataElementOptions(s,e.active?"active":i),r=o.getPointPositionForValue(s,this.getParsed(s).r),l=a?o.xCenter:r.x,c=a?o.yCenter:r.y,d={x:l,y:c,angle:r.angle,skip:isNaN(l)||isNaN(c),options:n};this.updateElement(e,s,d,i)}}}qa.id="radar",qa.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},qa.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ts{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}hasValue(){return $n(this.x)&&$n(this.y)}getProps(t,e){const n=this.$animations;if(!e||!n)return this;const i={};return t.forEach((t=>{i[t]=n[t]&&n[t].active()?n[t]._to:this[t]})),i}}ts.defaults={},ts.defaultRoutes=void 0;const es={values:t=>gn(t)?t:""+t,numeric(t,e,n){if(0===t)return"0";const i=this.chart.options.locale;let o,a=t;if(n.length>1){const e=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(e<1e-4||e>1e15)&&(o="scientific"),a=function(t,e){let n=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(n)>=1&&t!==Math.floor(t)&&(n=t-Math.floor(t)),n}(t,n)}const s=Hn(Math.abs(a)),r=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:o,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),ua(t,i,l)},logarithmic(t,e,n){if(0===t)return"0";const i=t/Math.pow(10,Math.floor(Hn(t)));return 1===i||2===i||5===i?es.numeric.call(this,t,e,n):""}};var ns={formatters:es};function is(t,e,n,i,o){const a=_n(i,0),s=Math.min(_n(o,t.length),t.length);let r,l,c,d=0;for(n=Math.ceil(n),o&&(r=o-i,n=r/Math.floor(r/n)),c=a;c<0;)d++,c=Math.round(a+d*n);for(l=Math.max(a,0);l<s;l++)l===c&&(e.push(t[l]),d++,c=Math.round(a+d*n))}ao.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:ns.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),ao.route("scale.ticks","color","","color"),ao.route("scale.grid","color","","borderColor"),ao.route("scale.grid","borderColor","","borderColor"),ao.route("scale.title","color","","color"),ao.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),ao.describe("scales",{_fallback:"scale"}),ao.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});const os=(t,e,n)=>"top"===e||"left"===e?t[e]+n:t[e]-n;function as(t,e){const n=[],i=t.length/e,o=t.length;let a=0;for(;a<o;a+=i)n.push(t[Math.floor(a)]);return n}function ss(t,e,n){const i=t.ticks.length,o=Math.min(e,i-1),a=t._startPixel,s=t._endPixel,r=1e-6;let l,c=t.getPixelForTick(o);if(!(n&&(l=1===i?Math.max(c-a,s-c):0===e?(t.getPixelForTick(1)-c)/2:(c-t.getPixelForTick(o-1))/2,c+=o<e?l:-l,c<a-r||c>s+r)))return c}function rs(t){return t.drawTicks?t.tickLength:0}function ls(t,e){if(!t.display)return 0;const n=Eo(t.font,e),i=Ao(t.padding);return(gn(t.text)?t.text.length:1)*n.lineHeight+i.height}function cs(t,e,n){let i=pi(t);return(n&&"right"!==e||!n&&"right"===e)&&(i=(t=>"left"===t?"right":"right"===t?"left":t)(i)),i}class ds extends ts{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:n,_suggestedMax:i}=this;return t=bn(t,Number.POSITIVE_INFINITY),e=bn(e,Number.NEGATIVE_INFINITY),n=bn(n,Number.POSITIVE_INFINITY),i=bn(i,Number.NEGATIVE_INFINITY),{min:bn(t,n),max:bn(e,i),minDefined:fn(t),maxDefined:fn(e)}}getMinMax(t){let e,{min:n,max:i,minDefined:o,maxDefined:a}=this.getUserBounds();if(o&&a)return{min:n,max:i};const s=this.getMatchingVisibleMetas();for(let r=0,l=s.length;r<l;++r)e=s[r].controller.getMinMax(this,t),o||(n=Math.min(n,e.min)),a||(i=Math.max(i,e.max));return n=a&&n>i?i:n,i=o&&n>i?n:i,{min:bn(n,bn(i,n)),max:bn(i,bn(n,i))}}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||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){yn(this.options.beforeUpdate,[this])}update(t,e,n){const{beginAtZero:i,grace:o,ticks:a}=this.options,s=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(t,e,n){const{min:i,max:o}=t,a=xn(e,(o-i)/2),s=(t,e)=>n&&0===t?0:t+e;return{min:s(i,-Math.abs(a)),max:s(o,a)}}(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const r=s<this.ticks.length;this._convertTicksToLabels(r?as(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=function(t,e){const n=t.options.ticks,i=n.maxTicksLimit||function(t){const e=t.options.offset,n=t._tickSize(),i=t._length/n+(e?0:1),o=t._maxLength/n;return Math.floor(Math.min(i,o))}(t),o=n.major.enabled?function(t){const e=[];let n,i;for(n=0,i=t.length;n<i;n++)t[n].major&&e.push(n);return e}(e):[],a=o.length,s=o[0],r=o[a-1],l=[];if(a>i)return function(t,e,n,i){let o,a=0,s=n[0];for(i=Math.ceil(i),o=0;o<t.length;o++)o===s&&(e.push(t[o]),a++,s=n[a*i])}(e,l,o,a/i),l;const c=function(t,e,n){const i=function(t){const e=t.length;let n,i;if(e<2)return!1;for(i=t[0],n=1;n<e;++n)if(t[n]-t[n-1]!==i)return!1;return i}(t),o=e.length/n;if(!i)return Math.max(o,1);const a=function(t){const e=[],n=Math.sqrt(t);let i;for(i=1;i<n;i++)t%i==0&&(e.push(i),e.push(t/i));return n===(0|n)&&e.push(n),e.sort(((t,e)=>t-e)).pop(),e}(i);for(let t=0,e=a.length-1;t<e;t++){const e=a[t];if(e>o)return e}return Math.max(o,1)}(o,e,i);if(a>0){let t,n;const i=a>1?Math.round((r-s)/(a-1)):null;for(is(e,l,c,pn(i)?0:s-i,s),t=0,n=a-1;t<n;t++)is(e,l,c,o[t],o[t+1]);return is(e,l,c,r,pn(i)?e.length:r+i),l}return is(e,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),r&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,n=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,n=!n),this._startPixel=t,this._endPixel=e,this._reversePixels=n,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){yn(this.options.afterUpdate,[this])}beforeSetDimensions(){yn(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(){yn(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),yn(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){yn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let n,i,o;for(n=0,i=t.length;n<i;n++)o=t[n],o.label=yn(e.callback,[o.value,n,t],this)}afterTickToLabelConversion(){yn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){yn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,n=this.ticks.length,i=e.minRotation||0,o=e.maxRotation;let a,s,r,l=i;if(!this._isVisible()||!e.display||i>=o||n<=1||!this.isHorizontal())return void(this.labelRotation=i);const c=this._getLabelSizes(),d=c.widest.width,h=c.highest.height,u=ii(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/n:u/(n-1),d+6>a&&(a=u/(n-(t.offset?.5:1)),s=this.maxHeight-rs(t.grid)-e.padding-ls(t.title,this.chart.options.font),r=Math.sqrt(d*d+h*h),l=Qn(Math.min(Math.asin(ii((c.highest.height+6)/a,-1,1)),Math.asin(ii(s/r,-1,1))-Math.asin(ii(h/r,-1,1)))),l=Math.max(i,Math.min(o,l))),this.labelRotation=l}afterCalculateLabelRotation(){yn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){yn(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:n,title:i,grid:o}}=this,a=this._isVisible(),s=this.isHorizontal();if(a){const a=ls(i,e.options.font);if(s?(t.width=this.maxWidth,t.height=rs(o)+a):(t.height=this.maxHeight,t.width=rs(o)+a),n.display&&this.ticks.length){const{first:e,last:i,widest:o,highest:a}=this._getLabelSizes(),r=2*n.padding,l=Xn(this.labelRotation),c=Math.cos(l),d=Math.sin(l);if(s){const e=n.mirror?0:d*o.width+c*a.height;t.height=Math.min(this.maxHeight,t.height+e+r)}else{const e=n.mirror?0:c*o.width+d*a.height;t.width=Math.min(this.maxWidth,t.width+e+r)}this._calculatePadding(e,i,d,c)}}this._handleMargins(),s?(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,n,i){const{ticks:{align:o,padding:a},position:s}=this.options,r=0!==this.labelRotation,l="top"!==s&&"x"===this.axis;if(this.isHorizontal()){const s=this.getPixelForTick(0)-this.left,c=this.right-this.getPixelForTick(this.ticks.length-1);let d=0,h=0;r?l?(d=i*t.width,h=n*e.height):(d=n*t.height,h=i*e.width):"start"===o?h=e.width:"end"===o?d=t.width:"inner"!==o&&(d=t.width/2,h=e.width/2),this.paddingLeft=Math.max((d-s+a)*this.width/(this.width-s),0),this.paddingRight=Math.max((h-c+a)*this.width/(this.width-c),0)}else{let n=e.height/2,i=t.height/2;"start"===o?(n=0,i=t.height):"end"===o&&(n=e.height,i=0),this.paddingTop=n+a,this.paddingBottom=i+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(){yn(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,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,n=t.length;e<n;e++)pn(t[e].label)&&(t.splice(e,1),n--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let n=this.ticks;e<n.length&&(n=as(n,e)),this._labelSizes=t=this._computeLabelSizes(n,n.length)}return t}_computeLabelSizes(t,e){const{ctx:n,_longestTextCache:i}=this,o=[],a=[];let s,r,l,c,d,h,u,p,g,m,f,b=0,_=0;for(s=0;s<e;++s){if(c=t[s].label,d=this._resolveTickFontOptions(s),n.font=h=d.string,u=i[h]=i[h]||{data:{},gc:[]},p=d.lineHeight,g=m=0,pn(c)||gn(c)){if(gn(c))for(r=0,l=c.length;r<l;++r)f=c[r],pn(f)||gn(f)||(g=so(n,u.data,u.gc,g,f),m+=p)}else g=so(n,u.data,u.gc,g,c),m=p;o.push(g),a.push(m),b=Math.max(g,b),_=Math.max(m,_)}!function(t,e){vn(t,(t=>{const n=t.gc,i=n.length/2;let o;if(i>e){for(o=0;o<i;++o)delete t.data[n[o]];n.splice(0,i)}}))}(i,e);const x=o.indexOf(b),y=a.indexOf(_),v=t=>({width:o[t]||0,height:a[t]||0});return{first:v(0),last:v(e-1),widest:v(x),highest:v(y),widths:o,heights:a}}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 ii(this._alignToPixels?lo(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 n=e[t];return n.$context||(n.$context=function(t,e,n){return Io(t,{tick:n,index:e,type:"tick"})}(this.getContext(),t,n))}return this.$context||(this.$context=Io(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=Xn(this.labelRotation),n=Math.abs(Math.cos(e)),i=Math.abs(Math.sin(e)),o=this._getLabelSizes(),a=t.autoSkipPadding||0,s=o?o.widest.width+a:0,r=o?o.highest.height+a:0;return this.isHorizontal()?r*n>s*i?s/n:r/i:r*i<s*n?r/n:s/i}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,n=this.chart,i=this.options,{grid:o,position:a}=i,s=o.offset,r=this.isHorizontal(),l=this.ticks.length+(s?1:0),c=rs(o),d=[],h=o.setContext(this.getContext()),u=h.drawBorder?h.borderWidth:0,p=u/2,g=function(t){return lo(n,t,u)};let m,f,b,_,x,y,v,w,k,M,S,C;if("top"===a)m=g(this.bottom),y=this.bottom-c,w=m-p,M=g(t.top)+p,C=t.bottom;else if("bottom"===a)m=g(this.top),M=t.top,C=g(t.bottom)-p,y=m+p,w=this.top+c;else if("left"===a)m=g(this.right),x=this.right-c,v=m-p,k=g(t.left)+p,S=t.right;else if("right"===a)m=g(this.left),k=t.left,S=g(t.right)-p,x=m+p,v=this.left+c;else if("x"===e){if("center"===a)m=g((t.top+t.bottom)/2+.5);else if(mn(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}M=t.top,C=t.bottom,y=m+p,w=y+c}else if("y"===e){if("center"===a)m=g((t.left+t.right)/2);else if(mn(a)){const t=Object.keys(a)[0],e=a[t];m=g(this.chart.scales[t].getPixelForValue(e))}x=m-p,v=x-c,k=t.left,S=t.right}const A=_n(i.ticks.maxTicksLimit,l),E=Math.max(1,Math.ceil(l/A));for(f=0;f<l;f+=E){const t=o.setContext(this.getContext(f)),e=t.lineWidth,i=t.color,a=t.borderDash||[],l=t.borderDashOffset,c=t.tickWidth,h=t.tickColor,u=t.tickBorderDash||[],p=t.tickBorderDashOffset;b=ss(this,f,s),void 0!==b&&(_=lo(n,b,e),r?x=v=k=S=_:y=w=M=C=_,d.push({tx1:x,ty1:y,tx2:v,ty2:w,x1:k,y1:M,x2:S,y2:C,width:e,color:i,borderDash:a,borderDashOffset:l,tickWidth:c,tickColor:h,tickBorderDash:u,tickBorderDashOffset:p}))}return this._ticksLength=l,this._borderValue=m,d}_computeLabelItems(t){const e=this.axis,n=this.options,{position:i,ticks:o}=n,a=this.isHorizontal(),s=this.ticks,{align:r,crossAlign:l,padding:c,mirror:d}=o,h=rs(n.grid),u=h+c,p=d?-c:u,g=-Xn(this.labelRotation),m=[];let f,b,_,x,y,v,w,k,M,S,C,A,E="middle";if("top"===i)v=this.bottom-p,w=this._getXAxisLabelAlignment();else if("bottom"===i)v=this.top+p,w=this._getXAxisLabelAlignment();else if("left"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("right"===i){const t=this._getYAxisLabelAlignment(h);w=t.textAlign,y=t.x}else if("x"===e){if("center"===i)v=(t.top+t.bottom)/2+u;else if(mn(i)){const t=Object.keys(i)[0],e=i[t];v=this.chart.scales[t].getPixelForValue(e)+u}w=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===i)y=(t.left+t.right)/2-u;else if(mn(i)){const t=Object.keys(i)[0],e=i[t];y=this.chart.scales[t].getPixelForValue(e)}w=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===r?E="top":"end"===r&&(E="bottom"));const D=this._getLabelSizes();for(f=0,b=s.length;f<b;++f){_=s[f],x=_.label;const t=o.setContext(this.getContext(f));k=this.getPixelForTick(f)+o.labelOffset,M=this._resolveTickFontOptions(f),S=M.lineHeight,C=gn(x)?x.length:1;const e=C/2,n=t.color,r=t.textStrokeColor,c=t.textStrokeWidth;let h,u=w;if(a?(y=k,"inner"===w&&(u=f===b-1?this.options.reverse?"left":"right":0===f?this.options.reverse?"right":"left":"center"),A="top"===i?"near"===l||0!==g?-C*S+S/2:"center"===l?-D.highest.height/2-e*S+S:-D.highest.height+S/2:"near"===l||0!==g?S/2:"center"===l?D.highest.height/2-e*S:D.highest.height-C*S,d&&(A*=-1)):(v=k,A=(1-C)*S/2),t.showLabelBackdrop){const e=Ao(t.backdropPadding),n=D.heights[f],i=D.widths[f];let o=v+A-e.top,a=y-e.left;switch(E){case"middle":o-=n/2;break;case"bottom":o-=n}switch(w){case"center":a-=i/2;break;case"right":a-=i}h={left:a,top:o,width:i+e.width,height:n+e.height,color:t.backdropColor}}m.push({rotation:g,label:x,font:M,color:n,strokeColor:r,strokeWidth:c,textOffset:A,textAlign:u,textBaseline:E,translation:[y,v],backdrop:h})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Xn(this.labelRotation))return"top"===t?"left":"right";let n="center";return"start"===e.align?n="left":"end"===e.align?n="right":"inner"===e.align&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:n,mirror:i,padding:o}}=this.options,a=t+o,s=this._getLabelSizes().widest.width;let r,l;return"left"===e?i?(l=this.right+o,"near"===n?r="left":"center"===n?(r="center",l+=s/2):(r="right",l+=s)):(l=this.right-a,"near"===n?r="right":"center"===n?(r="center",l-=s/2):(r="left",l=this.left)):"right"===e?i?(l=this.left+o,"near"===n?r="right":"center"===n?(r="center",l-=s/2):(r="left",l-=s)):(l=this.left+a,"near"===n?r="left":"center"===n?(r="center",l+=s/2):(r="right",l=this.right)):r="right",{textAlign:r,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:n,top:i,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(n,i,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex((e=>e.value===t));return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const s=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(e.display)for(o=0,a=i.length;o<a;++o){const t=i[o];e.drawOnChartArea&&s({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.drawTicks&&s({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:{grid:n}}=this,i=n.setContext(this.getContext()),o=n.drawBorder?i.borderWidth:0;if(!o)return;const a=n.setContext(this.getContext(0)).lineWidth,s=this._borderValue;let r,l,c,d;this.isHorizontal()?(r=lo(t,this.left,o)-o/2,l=lo(t,this.right,a)+a/2,c=d=s):(c=lo(t,this.top,o)-o/2,d=lo(t,this.bottom,a)+a/2,r=l=s),e.save(),e.lineWidth=i.borderWidth,e.strokeStyle=i.borderColor,e.beginPath(),e.moveTo(r,c),e.lineTo(l,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,n=this._computeLabelArea();n&&go(e,n);const i=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,a;for(o=0,a=i.length;o<a;++o){const t=i[o],n=t.font,a=t.label;t.backdrop&&(e.fillStyle=t.backdrop.color,e.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height)),_o(e,a,0,t.textOffset,n,t)}n&&mo(e)}drawTitle(){const{ctx:t,options:{position:e,title:n,reverse:i}}=this;if(!n.display)return;const o=Eo(n.font),a=Ao(n.padding),s=n.align;let r=o.lineHeight/2;"bottom"===e||"center"===e||mn(e)?(r+=a.bottom,gn(n.text)&&(r+=o.lineHeight*(n.text.length-1))):r+=a.top;const{titleX:l,titleY:c,maxWidth:d,rotation:h}=function(t,e,n,i){const{top:o,left:a,bottom:s,right:r,chart:l}=t,{chartArea:c,scales:d}=l;let h,u,p,g=0;const m=s-o,f=r-a;if(t.isHorizontal()){if(u=gi(i,a,r),mn(n)){const t=Object.keys(n)[0],i=n[t];p=d[t].getPixelForValue(i)+m-e}else p="center"===n?(c.bottom+c.top)/2+m-e:os(t,n,e);h=r-a}else{if(mn(n)){const t=Object.keys(n)[0],i=n[t];u=d[t].getPixelForValue(i)-f+e}else u="center"===n?(c.left+c.right)/2-f+e:os(t,n,e);p=gi(i,s,o),g="left"===n?-Rn:Rn}return{titleX:u,titleY:p,maxWidth:h,rotation:g}}(this,r,e,s);_o(t,n.text,0,0,o,{color:n.color,maxWidth:d,rotation:h,textAlign:cs(s,e,i),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,n=_n(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===ds.prototype.draw?[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[];let o,a;for(o=0,a=e.length;o<a;++o){const a=e[o];a[n]!==this.id||t&&a.type!==t||i.push(a)}return i}_resolveTickFontOptions(t){return Eo(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class hs{constructor(t,e,n){this.type=t,this.scope=e,this.override=n,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 n;(function(t){return"id"in t&&"defaults"in t})(e)&&(n=this.register(e));const i=this.items,o=t.id,a=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,function(t,e,n){const i=Cn(Object.create(null),[n?ao.get(n):{},ao.get(e),t.defaults]);ao.set(e,i),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((n=>{const i=n.split("."),o=i.pop(),a=[t].concat(i).join("."),s=e[n].split("."),r=s.pop(),l=s.join(".");ao.route(a,o,l,r)}))}(e,t.defaultRoutes),t.descriptors&&ao.describe(e,t.descriptors)}(t,a,n),this.override&&ao.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){const e=this.items,n=t.id,i=this.scope;n in e&&delete e[n],i&&n in ao[i]&&(delete ao[i][n],this.override&&delete eo[n])}}var us=new class{constructor(){this.controllers=new hs(Fa,"datasets",!0),this.elements=new hs(ts,"elements"),this.plugins=new hs(Object,"plugins"),this.scales=new hs(ds,"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,n){[...e].forEach((e=>{const i=n||this._getRegistryForType(e);n||i.isForType(e)||i===this.plugins&&e.id?this._exec(t,i,e):vn(e,(e=>{const i=n||this._getRegistryForType(e);this._exec(t,i,e)}))}))}_exec(t,e,n){const i=Pn(t);yn(n["before"+i],[],n),e[t](n),yn(n["after"+i],[],n)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const n=this._typedRegistries[e];if(n.isForType(t))return n}return this.plugins}_get(t,e,n){const i=e.get(t);if(void 0===i)throw new Error('"'+t+'" is not a registered '+n+".");return i}};class ps extends Fa{update(t){const e=this._cachedMeta,{data:n=[]}=e,i=this.chart._animationsDisabled;let{start:o,count:a}=mi(e,n,i);if(this._drawStart=o,this._drawCount=a,fi(e)&&(o=0,a=n.length),this.options.showLine){const{dataset:o,_dataset:a}=e;o._chart=this.chart,o._datasetIndex=this.index,o._decimated=!!a._decimated,o.points=n;const s=this.resolveDatasetElementOptions(t);s.segment=this.options.segment,this.updateElement(o,void 0,{animated:!i,options:s},t)}this.updateElements(n,o,a,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=us.getElement("line")),super.addElements()}updateElements(t,e,n,i){const o="reset"===i,{iScale:a,vScale:s,_stacked:r,_dataset:l}=this._cachedMeta,c=this.resolveDataElementOptions(e,i),d=this.getSharedOptions(c),h=this.includeOptions(i,d),u=a.axis,p=s.axis,{spanGaps:g,segment:m}=this.options,f=$n(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||"none"===i;let _=e>0&&this.getParsed(e-1);for(let c=e;c<e+n;++c){const e=t[c],n=this.getParsed(c),g=b?e:{},x=pn(n[p]),y=g[u]=a.getPixelForValue(n[u],c),v=g[p]=o||x?s.getBasePixel():s.getPixelForValue(r?this.applyStack(s,n,r):n[p],c);g.skip=isNaN(y)||isNaN(v)||x,g.stop=c>0&&Math.abs(n[u]-_[u])>f,m&&(g.parsed=n,g.raw=l.data[c]),h&&(g.options=d||this.resolveDataElementOptions(c,e.active?"active":i)),b||this.updateElement(e,c,g,i),_=n}this.updateSharedOptions(d,i,c)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}const n=t.dataset,i=n.options&&n.options.borderWidth||0;if(!e.length)return i;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(i,o,a)/2}}function gs(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}ps.id="scatter",ps.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},ps.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class ms{constructor(t){this.options=t||{}}init(t){}formats(){return gs()}parse(t,e){return gs()}format(t,e){return gs()}add(t,e,n){return gs()}diff(t,e,n){return gs()}startOf(t,e,n){return gs()}endOf(t,e){return gs()}}ms.override=function(t){Object.assign(ms.prototype,t)};var fs={_date:ms};function bs(t,e,n,i){const{controller:o,data:a,_sorted:s}=t,r=o._cachedMeta.iScale;if(r&&e===r.axis&&"r"!==e&&s&&a.length){const t=r._reversePixels?ri:si;if(!i)return t(a,e,n);if(o._sharedOptions){const i=a[0],o="function"==typeof i.getRange&&i.getRange(e);if(o){const i=t(a,e,n-o),s=t(a,e,n+o);return{lo:i.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function _s(t,e,n,i,o){const a=t.getSortedVisibleDatasetMetas(),s=n[e];for(let t=0,n=a.length;t<n;++t){const{index:n,data:r}=a[t],{lo:l,hi:c}=bs(a[t],e,s,o);for(let t=l;t<=c;++t){const e=r[t];e.skip||i(e,n,t)}}}function xs(t,e,n,i,o){const a=[];return o||t.isPointInArea(e)?(_s(t,n,e,(function(n,s,r){(o||po(n,t.chartArea,0))&&n.inRange(e.x,e.y,i)&&a.push({element:n,datasetIndex:s,index:r})}),!0),a):a}function ys(t,e,n,i,o,a){return a||t.isPointInArea(e)?"r"!==n||i?function(t,e,n,i,o,a){let s=[];const r=function(t){const e=-1!==t.indexOf("x"),n=-1!==t.indexOf("y");return function(t,i){const o=e?Math.abs(t.x-i.x):0,a=n?Math.abs(t.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(a,2))}}(n);let l=Number.POSITIVE_INFINITY;return _s(t,n,e,(function(n,c,d){const h=n.inRange(e.x,e.y,o);if(i&&!h)return;const u=n.getCenterPoint(o);if(!a&&!t.isPointInArea(u)&&!h)return;const p=r(e,u);p<l?(s=[{element:n,datasetIndex:c,index:d}],l=p):p===l&&s.push({element:n,datasetIndex:c,index:d})})),s}(t,e,n,i,o,a):function(t,e,n,i){let o=[];return _s(t,n,e,(function(t,n,a){const{startAngle:s,endAngle:r}=t.getProps(["startAngle","endAngle"],i),{angle:l}=Kn(t,{x:e.x,y:e.y});ni(l,s,r)&&o.push({element:t,datasetIndex:n,index:a})})),o}(t,e,n,o):[]}function vs(t,e,n,i,o){const a=[],s="x"===n?"inXRange":"inYRange";let r=!1;return _s(t,n,e,((t,i,l)=>{t[s](e[n],o)&&(a.push({element:t,datasetIndex:i,index:l}),r=r||t.inRange(e.x,e.y,o))})),i&&!r?[]:a}var ws={evaluateInteractionItems:_s,modes:{index(t,e,n,i){const o=ia(e,t),a=n.axis||"x",s=n.includeInvisible||!1,r=n.intersect?xs(t,o,a,i,s):ys(t,o,a,!1,i,s),l=[];return r.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=r[0].index,n=t.data[e];n&&!n.skip&&l.push({element:n,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,n,i){const o=ia(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;let r=n.intersect?xs(t,o,a,i,s):ys(t,o,a,!1,i,s);if(r.length>0){const e=r[0].datasetIndex,n=t.getDatasetMeta(e).data;r=[];for(let t=0;t<n.length;++t)r.push({element:n[t],datasetIndex:e,index:t})}return r},point:(t,e,n,i)=>xs(t,ia(e,t),n.axis||"xy",i,n.includeInvisible||!1),nearest(t,e,n,i){const o=ia(e,t),a=n.axis||"xy",s=n.includeInvisible||!1;return ys(t,o,a,n.intersect,i,s)},x:(t,e,n,i)=>vs(t,ia(e,t),"x",n.intersect,i),y:(t,e,n,i)=>vs(t,ia(e,t),"y",n.intersect,i)}};const ks=["left","top","right","bottom"];function Ms(t,e){return t.filter((t=>t.pos===e))}function Ss(t,e){return t.filter((t=>-1===ks.indexOf(t.pos)&&t.box.axis===e))}function Cs(t,e){return t.sort(((t,n)=>{const i=e?n:t,o=e?t:n;return i.weight===o.weight?i.index-o.index:i.weight-o.weight}))}function As(t,e,n,i){return Math.max(t[n],e[n])+Math.max(t[i],e[i])}function Es(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 Ds(t,e,n,i){const{pos:o,box:a}=n,s=t.maxPadding;if(!mn(o)){n.size&&(t[o]-=n.size);const e=i[n.stack]||{size:0,count:1};e.size=Math.max(e.size,n.horizontal?a.height:a.width),n.size=e.size/e.count,t[o]+=n.size}a.getPadding&&Es(s,a.getPadding());const r=Math.max(0,e.outerWidth-As(s,t,"left","right")),l=Math.max(0,e.outerHeight-As(s,t,"top","bottom")),c=r!==t.w,d=l!==t.h;return t.w=r,t.h=l,n.horizontal?{same:c,other:d}:{same:d,other:c}}function Is(t,e){const n=e.maxPadding;return function(t){const i={left:0,top:0,right:0,bottom:0};return t.forEach((t=>{i[t]=Math.max(e[t],n[t])})),i}(t?["left","right"]:["top","bottom"])}function Ps(t,e,n,i){const o=[];let a,s,r,l,c,d;for(a=0,s=t.length,c=0;a<s;++a){r=t[a],l=r.box,l.update(r.width||e.w,r.height||e.h,Is(r.horizontal,e));const{same:s,other:h}=Ds(e,n,r,i);c|=s&&o.length,d=d||h,l.fullSize||o.push(r)}return c&&Ps(o,e,n,i)||d}function zs(t,e,n,i,o){t.top=n,t.left=e,t.right=e+i,t.bottom=n+o,t.width=i,t.height=o}function Ls(t,e,n,i){const o=n.padding;let{x:a,y:s}=e;for(const r of t){const t=r.box,l=i[r.stack]||{count:1,placed:0,weight:1},c=r.stackWeight/l.weight||1;if(r.horizontal){const i=e.w*c,a=l.size||t.height;zn(l.start)&&(s=l.start),t.fullSize?zs(t,o.left,s,n.outerWidth-o.right-o.left,a):zs(t,e.left+l.placed,s,i,a),l.start=s,l.placed+=i,s=t.bottom}else{const i=e.h*c,s=l.size||t.width;zn(l.start)&&(a=l.start),t.fullSize?zs(t,a,o.top,s,n.outerHeight-o.bottom-o.top):zs(t,a,e.top+l.placed,s,i),l.start=a,l.placed+=i,a=t.right}}e.x=a,e.y=s}ao.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Ts={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 n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure(t,e,n){e.fullSize=n.fullSize,e.position=n.position,e.weight=n.weight},update(t,e,n,i){if(!t)return;const o=Ao(t.options.layout.padding),a=Math.max(e-o.width,0),s=Math.max(n-o.height,0),r=function(t){const e=function(t){const e=[];let n,i,o,a,s,r;for(n=0,i=(t||[]).length;n<i;++n)o=t[n],({position:a,options:{stack:s,stackWeight:r=1}}=o),e.push({index:n,box:o,pos:a,horizontal:o.isHorizontal(),weight:o.weight,stack:s&&a+s,stackWeight:r});return e}(t),n=Cs(e.filter((t=>t.box.fullSize)),!0),i=Cs(Ms(e,"left"),!0),o=Cs(Ms(e,"right")),a=Cs(Ms(e,"top"),!0),s=Cs(Ms(e,"bottom")),r=Ss(e,"x"),l=Ss(e,"y");return{fullSize:n,leftAndTop:i.concat(a),rightAndBottom:o.concat(l).concat(s).concat(r),chartArea:Ms(e,"chartArea"),vertical:i.concat(o).concat(l),horizontal:a.concat(s).concat(r)}}(t.boxes),l=r.vertical,c=r.horizontal;vn(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const d=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,h=Object.freeze({outerWidth:e,outerHeight:n,padding:o,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/d,hBoxMaxHeight:s/2}),u=Object.assign({},o);Es(u,Ao(i));const p=Object.assign({maxPadding:u,w:a,h:s,x:o.left,y:o.top},o),g=function(t,e){const n=function(t){const e={};for(const n of t){const{stack:t,pos:i,stackWeight:o}=n;if(!t||!ks.includes(i))continue;const a=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});a.count++,a.weight+=o}return e}(t),{vBoxMaxWidth:i,hBoxMaxHeight:o}=e;let a,s,r;for(a=0,s=t.length;a<s;++a){r=t[a];const{fullSize:s}=r.box,l=n[r.stack],c=l&&r.stackWeight/l.weight;r.horizontal?(r.width=c?c*i:s&&e.availableWidth,r.height=o):(r.width=i,r.height=c?c*o:s&&e.availableHeight)}return n}(l.concat(c),h);Ps(r.fullSize,p,h,g),Ps(l,p,h,g),Ps(c,p,h,g)&&Ps(l,p,h,g),function(t){const e=t.maxPadding;function n(n){const i=Math.max(e[n]-t[n],0);return t[n]+=i,i}t.y+=n("top"),t.x+=n("left"),n("right"),n("bottom")}(p),Ls(r.leftAndTop,p,h,g),p.x+=p.w,p.y+=p.h,Ls(r.rightAndBottom,p,h,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},vn(r.chartArea,(e=>{const n=e.box;Object.assign(n,t.chartArea),n.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class Os{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,n){}removeEventListener(t,e,n){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,n,i){return e=Math.max(0,e||t.width),n=n||t.height,{width:e,height:Math.max(0,i?Math.floor(e/i):n)}}isAttached(t){return!0}updateConfig(t){}}class Bs extends Os{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ns="$chartjs",Fs={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Vs=t=>null===t||""===t,Rs=!!sa&&{passive:!0};function Ws(t,e,n){t.canvas.removeEventListener(e,n,Rs)}function js(t,e){for(const n of t)if(n===e||n.contains(e))return!0}function Hs(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||js(n.addedNodes,i),e=e&&!js(n.removedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}function Ys(t,e,n){const i=t.canvas,o=new MutationObserver((t=>{let e=!1;for(const n of t)e=e||js(n.removedNodes,i),e=e&&!js(n.addedNodes,i);e&&n()}));return o.observe(document,{childList:!0,subtree:!0}),o}const Zs=new Map;let $s=0;function Us(){const t=window.devicePixelRatio;t!==$s&&($s=t,Zs.forEach(((e,n)=>{n.currentDevicePixelRatio!==t&&e()})))}function Gs(t,e,n){const i=t.canvas,o=i&&Ko(i);if(!o)return;const a=ui(((t,e)=>{const i=o.clientWidth;n(t,e),i<o.clientWidth&&n()}),window),s=new ResizeObserver((t=>{const e=t[0],n=e.contentRect.width,i=e.contentRect.height;0===n&&0===i||a(n,i)}));return s.observe(o),function(t,e){Zs.size||window.addEventListener("resize",Us),Zs.set(t,e)}(t,a),s}function Xs(t,e,n){n&&n.disconnect(),"resize"===e&&function(t){Zs.delete(t),Zs.size||window.removeEventListener("resize",Us)}(t)}function Qs(t,e,n){const i=t.canvas,o=ui((e=>{null!==t.ctx&&n(function(t,e){const n=Fs[t.type]||t.type,{x:i,y:o}=ia(t,e);return{type:n,chart:e,native:t,x:void 0!==i?i:null,y:void 0!==o?o:null}}(e,t))}),t,(t=>{const e=t[0];return[e,e.offsetX,e.offsetY]}));return function(t,e,n){t.addEventListener(e,n,Rs)}(i,e,o),o}class Js extends Os{acquireContext(t,e){const n=t&&t.getContext&&t.getContext("2d");return n&&n.canvas===t?(function(t,e){const n=t.style,i=t.getAttribute("height"),o=t.getAttribute("width");if(t[Ns]={initial:{height:i,width:o,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Vs(o)){const e=ra(t,"width");void 0!==e&&(t.width=e)}if(Vs(i))if(""===t.style.height)t.height=t.width/(e||2);else{const e=ra(t,"height");void 0!==e&&(t.height=e)}}(t,e),n):null}releaseContext(t){const e=t.canvas;if(!e[Ns])return!1;const n=e[Ns].initial;["height","width"].forEach((t=>{const i=n[t];pn(i)?e.removeAttribute(t):e.setAttribute(t,i)}));const i=n.style||{};return Object.keys(i).forEach((t=>{e.style[t]=i[t]})),e.width=e.width,delete e[Ns],!0}addEventListener(t,e,n){this.removeEventListener(t,e);const i=t.$proxies||(t.$proxies={}),o={attach:Hs,detach:Ys,resize:Gs}[e]||Qs;i[e]=o(t,e,n)}removeEventListener(t,e){const n=t.$proxies||(t.$proxies={}),i=n[e];i&&(({attach:Xs,detach:Xs,resize:Xs}[e]||Ws)(t,e,i),n[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,n,i){return function(t,e,n,i){const o=ta(t),a=na(o,"margin"),s=qo(o.maxWidth,t,"clientWidth")||Fn,r=qo(o.maxHeight,t,"clientHeight")||Fn,l=function(t,e,n){let i,o;if(void 0===e||void 0===n){const a=Ko(t);if(a){const t=a.getBoundingClientRect(),s=ta(a),r=na(s,"border","width"),l=na(s,"padding");e=t.width-l.width-r.width,n=t.height-l.height-r.height,i=qo(s.maxWidth,a,"clientWidth"),o=qo(s.maxHeight,a,"clientHeight")}else e=t.clientWidth,n=t.clientHeight}return{width:e,height:n,maxWidth:i||Fn,maxHeight:o||Fn}}(t,e,n);let{width:c,height:d}=l;if("content-box"===o.boxSizing){const t=na(o,"border","width"),e=na(o,"padding");c-=e.width+t.width,d-=e.height+t.height}return c=Math.max(0,c-a.width),d=Math.max(0,i?Math.floor(c/i):d-a.height),c=oa(Math.min(c,s,l.maxWidth)),d=oa(Math.min(d,r,l.maxHeight)),c&&!d&&(d=oa(c/2)),{width:c,height:d}}(t,e,n,i)}isAttached(t){const e=Ko(t);return!(!e||!e.isConnected)}}class Ks{constructor(){this._init=[]}notify(t,e,n,i){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=i?this._descriptors(t).filter(i):this._descriptors(t),a=this._notify(o,t,e,n);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),a}_notify(t,e,n,i){i=i||{};for(const o of t){const t=o.plugin;if(!1===yn(t[n],[e,i,o.options],t)&&i.cancelable)return!1}return!0}invalidate(){pn(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 n=t&&t.config,i=_n(n.options&&n.options.plugins,{}),o=function(t){const e={},n=[],i=Object.keys(us.plugins.items);for(let t=0;t<i.length;t++)n.push(us.getPlugin(i[t]));const o=t.plugins||[];for(let t=0;t<o.length;t++){const i=o[t];-1===n.indexOf(i)&&(n.push(i),e[i.id]=!0)}return{plugins:n,localIds:e}}(n);return!1!==i||e?function(t,{plugins:e,localIds:n},i,o){const a=[],s=t.getContext();for(const r of e){const e=r.id,l=qs(i[e],o);null!==l&&a.push({plugin:r,options:tr(t.config,{plugin:r,local:n[e]},l,s)})}return a}(t,o,i,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],n=this._cache,i=(t,e)=>t.filter((t=>!e.some((e=>t.plugin.id===e.plugin.id))));this._notify(i(e,n),t,"stop"),this._notify(i(n,e),t,"start")}}function qs(t,e){return e||!1!==t?!0===t?{}:t:null}function tr(t,{plugin:e,local:n},i,o){const a=t.pluginScopeKeys(e),s=t.getOptionScopes(i,a);return n&&e.defaults&&s.push(e.defaults),t.createResolver(s,o,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function er(t,e){const n=ao.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||n.indexAxis||"x"}function nr(t,e){return"x"===t||"y"===t?t:e.axis||("top"===(n=e.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||t.charAt(0).toLowerCase();var n}function ir(t){const e=t.options||(t.options={});e.plugins=_n(e.plugins,{}),e.scales=function(t,e){const n=eo[t.type]||{scales:{}},i=e.scales||{},o=er(t.type,e),a=Object.create(null),s=Object.create(null);return Object.keys(i).forEach((t=>{const e=i[t];if(!mn(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);const r=nr(t,e),l=function(t,e){return t===e?"_index_":"_value_"}(r,o),c=n.scales||{};a[r]=a[r]||t,s[t]=An(Object.create(null),[{axis:r},e,c[r],c[l]])})),t.data.datasets.forEach((n=>{const o=n.type||t.type,r=n.indexAxis||er(o,e),l=(eo[o]||{}).scales||{};Object.keys(l).forEach((t=>{const e=function(t,e){let n=t;return"_index_"===t?n=e:"_value_"===t&&(n="x"===e?"y":"x"),n}(t,r),o=n[e+"AxisID"]||a[e]||e;s[o]=s[o]||Object.create(null),An(s[o],[{axis:e},i[o],l[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];An(e,[ao.scales[e.type],ao.scale])})),s}(t,e)}function or(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const ar=new Map,sr=new Set;function rr(t,e){let n=ar.get(t);return n||(n=e(),ar.set(t,n),sr.add(n)),n}const lr=(t,e,n)=>{const i=In(e,n);void 0!==i&&t.add(i)};class cr{constructor(t){this._config=function(t){return(t=t||{}).data=or(t.data),ir(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=or(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(),ir(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return rr(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return rr(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return rr(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return rr(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const n=this._scopeCache;let i=n.get(t);return i&&!e||(i=new Map,n.set(t,i)),i}getOptionScopes(t,e,n){const{options:i,type:o}=this,a=this._cachedScopes(t,n),s=a.get(e);if(s)return s;const r=new Set;e.forEach((e=>{t&&(r.add(t),e.forEach((e=>lr(r,t,e)))),e.forEach((t=>lr(r,i,t))),e.forEach((t=>lr(r,eo[o]||{},t))),e.forEach((t=>lr(r,ao,t))),e.forEach((t=>lr(r,no,t)))}));const l=Array.from(r);return 0===l.length&&l.push(Object.create(null)),sr.has(e)&&a.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,eo[e]||{},ao.datasets[e]||{},{type:e},ao,no]}resolveNamedOptions(t,e,n,i=[""]){const o={$shared:!0},{resolver:a,subPrefixes:s}=dr(this._resolverCache,t,i);let r=a;(function(t,e){const{isScriptable:n,isIndexable:i}=Lo(t);for(const o of e){const e=n(o),a=i(o),s=(a||e)&&t[o];if(e&&(Ln(s)||hr(s))||a&&gn(s))return!0}return!1})(a,e)&&(o.$shared=!1,r=zo(a,n=Ln(n)?n():n,this.createResolver(t,n,s)));for(const t of e)o[t]=r[t];return o}createResolver(t,e,n=[""],i){const{resolver:o}=dr(this._resolverCache,t,n);return mn(e)?zo(o,e,void 0,i):o}}function dr(t,e,n){let i=t.get(e);i||(i=new Map,t.set(e,i));const o=n.join();let a=i.get(o);return a||(a={resolver:Po(e,n),subPrefixes:n.filter((t=>!t.toLowerCase().includes("hover")))},i.set(o,a)),a}const hr=t=>mn(t)&&Object.getOwnPropertyNames(t).reduce(((e,n)=>e||Ln(t[n])),!1),ur=["top","bottom","left","right","chartArea"];function pr(t,e){return"top"===t||"bottom"===t||-1===ur.indexOf(t)&&"x"===e}function gr(t,e){return function(n,i){return n[t]===i[t]?n[e]-i[e]:n[t]-i[t]}}function mr(t){const e=t.chart,n=e.options.animation;e.notifyPlugins("afterRender"),yn(n&&n.onComplete,[t],e)}function fr(t){const e=t.chart,n=e.options.animation;yn(n&&n.onProgress,[t],e)}function br(t){return Jo()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const _r={},xr=t=>{const e=br(t);return Object.values(_r).filter((t=>t.canvas===e)).pop()};function yr(t,e,n){const i=Object.keys(t);for(const o of i){const i=+o;if(i>=e){const a=t[o];delete t[o],(n>0||i>e)&&(t[i+n]=a)}}}class vr{constructor(t,e){const n=this.config=new cr(e),i=br(t),o=xr(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||function(t){return!Jo()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?Bs:Js}(i)),this.platform.updateConfig(n);const s=this.platform.acquireContext(i,a.aspectRatio),r=s&&s.canvas,l=r&&r.height,c=r&&r.width;this.id=un(),this.ctx=s,this.canvas=r,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 Ks,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let n;return function(...i){return e?(clearTimeout(n),n=setTimeout(t,e,i)):t.apply(this,i),e}}((t=>this.update(t)),a.resizeDelay||0),this._dataChanges=[],_r[this.id]=this,s&&r?(va.listen(this,"complete",mr),va.listen(this,"progress",fr),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:n,height:i,_aspectRatio:o}=this;return pn(t)?e&&o?o:i?n/i: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}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():aa(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return co(this.canvas,this.ctx),this}stop(){return va.stop(this),this}resize(t,e){va.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const n=this.options,i=this.canvas,o=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(i,t,e,o),s=n.devicePixelRatio||this.platform.getDevicePixelRatio(),r=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,aa(this,s,!0)&&(this.notifyPlugins("resize",{size:a}),yn(n.onResize,[this,a],this),this.attached&&this._doResize(r)&&this.render())}ensureScalesHaveIDs(){vn(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,n=this.scales,i=Object.keys(n).reduce(((t,e)=>(t[e]=!1,t)),{});let o=[];e&&(o=o.concat(Object.keys(e).map((t=>{const n=e[t],i=nr(t,n),o="r"===i,a="x"===i;return{options:n,dposition:o?"chartArea":a?"bottom":"left",dtype:o?"radialLinear":a?"category":"linear"}})))),vn(o,(e=>{const o=e.options,a=o.id,s=nr(a,o),r=_n(o.type,e.dtype);void 0!==o.position&&pr(o.position,s)===pr(e.dposition)||(o.position=e.dposition),i[a]=!0;let l=null;a in n&&n[a].type===r?l=n[a]:(l=new(us.getScale(r))({id:a,type:r,ctx:this.ctx,chart:this}),n[l.id]=l),l.init(o,t)})),vn(i,((t,e)=>{t||delete n[e]})),vn(n,(t=>{Ts.configure(this,t,t.options),Ts.addBox(this,t)}))}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,n=t.length;if(t.sort(((t,e)=>t.index-e.index)),n>e){for(let t=e;t<n;++t)this._destroyDatasetMeta(t);t.splice(e,n-e)}this._sortedMetasets=t.slice(0).sort(gr("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach(((t,n)=>{0===e.filter((e=>e===t._dataset)).length&&this._destroyDatasetMeta(n)}))}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let n,i;for(this._removeUnreferencedMetasets(),n=0,i=e.length;n<i;n++){const i=e[n];let o=this.getDatasetMeta(n);const a=i.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(n),o=this.getDatasetMeta(n)),o.type=a,o.indexAxis=i.indexAxis||er(a,this.options),o.order=i.order||0,o.index=n,o.label=""+i.label,o.visible=this.isDatasetVisible(n),o.controller)o.controller.updateIndex(n),o.controller.linkScales();else{const e=us.getController(a),{datasetElementType:i,dataElementType:s}=ao.datasets[a];Object.assign(e.prototype,{dataElementType:us.getElement(s),datasetElementType:i&&us.getElement(i)}),o.controller=new e(this,n),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){vn(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 n=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=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),n=!i&&-1===o.indexOf(e);e.buildOrUpdateElements(n),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),i||vn(o,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(gr("z","_idx"));const{_active:s,_lastEvent:r}=this;r?this._eventHandler(r,!0):s.length&&this._updateHoverStyles(s,s,!0),this.render()}_updateScales(){vn(this.scales,(t=>{Ts.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),n=new Set(t.events);Tn(e,n)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:n,start:i,count:o}of e)yr(t,i,"_removeElements"===n?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,n=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),i=n(0);for(let t=1;t<e;t++)if(!Tn(i,n(t)))return;return Array.from(i).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;Ts.update(this,this.width,this.height,t);const e=this.chartArea,n=e.width<=0||e.height<=0;this._layers=[],vn(this.boxes,(t=>{n&&"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,n=this.data.datasets.length;e<n;++e)this._updateDataset(e,Ln(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const n=this.getDatasetMeta(t),i={meta:n,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",i)&&(n.controller._update(e),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(va.has(this)?this.attached&&!va.running(this)&&va.start(this):(this.draw(),mr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}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,n=[];let i,o;for(i=0,o=e.length;i<o;++i){const o=e[i];t&&!o.visible||n.push(o)}return n}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,n=t._clip,i=!n.disabled,o=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(i&&go(e,{left:!1===n.left?0:o.left-n.left,right:!1===n.right?this.width:o.right+n.right,top:!1===n.top?0:o.top-n.top,bottom:!1===n.bottom?this.height:o.bottom+n.bottom}),t.controller.draw(),i&&mo(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return po(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,n,i){const o=ws.modes[e];return"function"==typeof o?o(this,t,n,i):[]}getDatasetMeta(t){const e=this.data.datasets[t],n=this._metasets;let i=n.filter((t=>t&&t._dataset===e)).pop();return i||(i={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},n.push(i)),i}getContext(){return this.$context||(this.$context=Io(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const n=this.getDatasetMeta(t);return"boolean"==typeof n.hidden?!n.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,n){const i=n?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,i);zn(e)?(o.data[e].hidden=!n,this.update()):(this.setDatasetVisibility(t,n),a.update(o,{visible:n}),this.update((e=>e.datasetIndex===t?i: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(),va.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(),co(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete _r[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,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(t,e,n)=>{t.offsetX=e,t.offsetY=n,this._eventHandler(t)};vn(this.options.events,(t=>n(t,i)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,n=(n,i)=>{e.addEventListener(this,n,i),t[n]=i},i=(n,i)=>{t[n]&&(e.removeEventListener(this,n,i),delete t[n])},o=(t,e)=>{this.canvas&&this.resize(t,e)};let a;const s=()=>{i("attach",s),this.attached=!0,this.resize(),n("resize",o),n("detach",a)};a=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),n("attach",s)},e.isAttached(this.canvas)?s():a()}unbindEvents(){vn(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},vn(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,n){const i=n?"set":"remove";let o,a,s,r;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),s=0,r=t.length;s<r;++s){a=t[s];const e=a&&this.getDatasetMeta(a.datasetIndex).controller;e&&e[i+"HoverStyle"](a.element,a.datasetIndex,a.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],n=t.map((({datasetIndex:t,index:e})=>{const n=this.getDatasetMeta(t);if(!n)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:n.data[e],index:e}}));!wn(n,e)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,e))}notifyPlugins(t,e,n){return this._plugins.notify(this,t,e,n)}_updateHoverStyles(t,e,n){const i=this.options.hover,o=(t,e)=>t.filter((t=>!e.some((e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)))),a=o(e,t),s=n?t:o(t,e);a.length&&this.updateHoverStyle(a,i.mode,!1),s.length&&i.mode&&this.updateHoverStyle(s,i.mode,!0)}_eventHandler(t,e){const n={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},i=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",n,i))return;const o=this._handleEvent(t,e,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,i),(o||n.changed)&&this.render(),this}_handleEvent(t,e,n){const{_active:i=[],options:o}=this,a=e,s=this._getActiveElements(t,i,n,a),r=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,n,i){return n&&"mouseout"!==t.type?i?e:t:null}(t,this._lastEvent,n,r);n&&(this._lastEvent=null,yn(o.onHover,[t,s,this],this),r&&yn(o.onClick,[t,s,this],this));const c=!wn(s,i);return(c||e)&&(this._active=s,this._updateHoverStyles(s,i,e)),this._lastEvent=l,c}_getActiveElements(t,e,n,i){if("mouseout"===t.type)return[];if(!n)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}}const wr=()=>vn(vr.instances,(t=>t._plugins.invalidate())),kr=!0;function Mr(t,e,n){const{startAngle:i,pixelMargin:o,x:a,y:s,outerRadius:r,innerRadius:l}=e;let c=o/r;t.beginPath(),t.arc(a,s,r,i-c,n+c),l>o?(c=o/l,t.arc(a,s,l,n+c,i-c,!0)):t.arc(a,s,o,n+Rn,i-Rn),t.closePath(),t.clip()}function Sr(t,e,n,i){return{x:n+t*Math.cos(e),y:i+t*Math.sin(e)}}function Cr(t,e,n,i,o,a){const{x:s,y:r,startAngle:l,pixelMargin:c,innerRadius:d}=e,h=Math.max(e.outerRadius+i+n-c,0),u=d>0?d+i+n+c:0;let p=0;const g=o-l;if(i){const t=((d>0?d-i:0)+(h>0?h-i:0))/2;p=(g-(0!==t?g*t/(t+i):g))/2}const m=(g-Math.max(.001,g*h-n/On)/h)/2,f=l+m+p,b=o-m-p,{outerStart:_,outerEnd:x,innerStart:y,innerEnd:v}=function(t,e,n,i){const o=Mo(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-e)/2,s=Math.min(a,i*e/2),r=t=>{const e=(n-Math.min(a,t))*i/2;return ii(t,0,Math.min(a,e))};return{outerStart:r(o.outerStart),outerEnd:r(o.outerEnd),innerStart:ii(o.innerStart,0,s),innerEnd:ii(o.innerEnd,0,s)}}(e,u,h,b-f),w=h-_,k=h-x,M=f+_/w,S=b-x/k,C=u+y,A=u+v,E=f+y/C,D=b-v/A;if(t.beginPath(),a){if(t.arc(s,r,h,M,S),x>0){const e=Sr(k,S,s,r);t.arc(e.x,e.y,x,S,b+Rn)}const e=Sr(A,b,s,r);if(t.lineTo(e.x,e.y),v>0){const e=Sr(A,D,s,r);t.arc(e.x,e.y,v,b+Rn,D+Math.PI)}if(t.arc(s,r,u,b-v/u,f+y/u,!0),y>0){const e=Sr(C,E,s,r);t.arc(e.x,e.y,y,E+Math.PI,f-Rn)}const n=Sr(w,f,s,r);if(t.lineTo(n.x,n.y),_>0){const e=Sr(w,M,s,r);t.arc(e.x,e.y,_,f-Rn,M)}}else{t.moveTo(s,r);const e=Math.cos(M)*h+s,n=Math.sin(M)*h+r;t.lineTo(e,n);const i=Math.cos(S)*h+s,o=Math.sin(S)*h+r;t.lineTo(i,o)}t.closePath()}Object.defineProperties(vr,{defaults:{enumerable:kr,value:ao},instances:{enumerable:kr,value:_r},overrides:{enumerable:kr,value:eo},registry:{enumerable:kr,value:us},version:{enumerable:kr,value:"3.9.1"},getChart:{enumerable:kr,value:xr},register:{enumerable:kr,value:(...t)=>{us.add(...t),wr()}},unregister:{enumerable:kr,value:(...t)=>{us.remove(...t),wr()}}});class Ar extends ts{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,n){const i=this.getProps(["x","y"],n),{angle:o,distance:a}=Kn(i,{x:t,y:e}),{startAngle:s,endAngle:r,innerRadius:l,outerRadius:c,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),h=this.options.spacing/2,u=_n(d,r-s)>=Bn||ni(o,s,r),p=oi(a,l+h,c+h);return u&&p}getCenterPoint(t){const{x:e,y:n,startAngle:i,endAngle:o,innerRadius:a,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:r,spacing:l}=this.options,c=(i+o)/2,d=(a+s+l+r)/2;return{x:e+Math.cos(c)*d,y:n+Math.sin(c)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:n}=this,i=(e.offset||0)/2,o=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=n>Bn?Math.floor(n/Bn):0,0===n||this.innerRadius<0||this.outerRadius<0)return;t.save();let s=0;if(i){s=i/2;const e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*s,Math.sin(e)*s),this.circumference>=On&&(s=i)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const r=function(t,e,n,i,o){const{fullCircles:a,startAngle:s,circumference:r}=e;let l=e.endAngle;if(a){Cr(t,e,n,i,s+Bn,o);for(let e=0;e<a;++e)t.fill();isNaN(r)||(l=s+r%Bn,r%Bn==0&&(l+=Bn))}return Cr(t,e,n,i,l,o),t.fill(),l}(t,this,s,o,a);(function(t,e,n,i,o,a){const{options:s}=e,{borderWidth:r,borderJoinStyle:l}=s,c="inner"===s.borderAlign;r&&(c?(t.lineWidth=2*r,t.lineJoin=l||"round"):(t.lineWidth=r,t.lineJoin=l||"bevel"),e.fullCircles&&function(t,e,n){const{x:i,y:o,startAngle:a,pixelMargin:s,fullCircles:r}=e,l=Math.max(e.outerRadius-s,0),c=e.innerRadius+s;let d;for(n&&Mr(t,e,a+Bn),t.beginPath(),t.arc(i,o,c,a+Bn,a,!0),d=0;d<r;++d)t.stroke();for(t.beginPath(),t.arc(i,o,l,a,a+Bn),d=0;d<r;++d)t.stroke()}(t,e,c),c&&Mr(t,e,o),Cr(t,e,n,i,o,a),t.stroke())})(t,this,s,o,r,a),t.restore()}}function Er(t,e,n=e){t.lineCap=_n(n.borderCapStyle,e.borderCapStyle),t.setLineDash(_n(n.borderDash,e.borderDash)),t.lineDashOffset=_n(n.borderDashOffset,e.borderDashOffset),t.lineJoin=_n(n.borderJoinStyle,e.borderJoinStyle),t.lineWidth=_n(n.borderWidth,e.borderWidth),t.strokeStyle=_n(n.borderColor,e.borderColor)}function Dr(t,e,n){t.lineTo(n.x,n.y)}function Ir(t,e,n={}){const i=t.length,{start:o=0,end:a=i-1}=n,{start:s,end:r}=e,l=Math.max(o,s),c=Math.min(a,r),d=o<s&&a<s||o>r&&a>r;return{count:i,start:l,loop:e.loop,ilen:c<l&&!d?i+c-l:c-l}}function Pr(t,e,n,i){const{points:o,options:a}=e,{count:s,start:r,loop:l,ilen:c}=Ir(o,n,i),d=function(t){return t.stepped?fo:t.tension||"monotone"===t.cubicInterpolationMode?bo:Dr}(a);let h,u,p,{move:g=!0,reverse:m}=i||{};for(h=0;h<=c;++h)u=o[(r+(m?c-h:h))%s],u.skip||(g?(t.moveTo(u.x,u.y),g=!1):d(t,p,u,m,a.stepped),p=u);return l&&(u=o[(r+(m?c:0))%s],d(t,p,u,m,a.stepped)),!!l}function zr(t,e,n,i){const o=e.points,{count:a,start:s,ilen:r}=Ir(o,n,i),{move:l=!0,reverse:c}=i||{};let d,h,u,p,g,m,f=0,b=0;const _=t=>(s+(c?r-t:t))%a,x=()=>{p!==g&&(t.lineTo(f,g),t.lineTo(f,p),t.lineTo(f,m))};for(l&&(h=o[_(0)],t.moveTo(h.x,h.y)),d=0;d<=r;++d){if(h=o[_(d)],h.skip)continue;const e=h.x,n=h.y,i=0|e;i===u?(n<p?p=n:n>g&&(g=n),f=(b*f+e)/++b):(x(),t.lineTo(e,n),u=i,b=0,p=g=n),m=n}x()}function Lr(t){const e=t.options,n=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||n?Pr:zr}Ar.id="arc",Ar.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ar.defaultRoutes={backgroundColor:"backgroundColor"};const Tr="function"==typeof Path2D;class Or extends ts{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 n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){const i=n.spanGaps?this._loop:this._fullLoop;Qo(this._points,n,t,i,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 n=t.points,i=t.options.spanGaps,o=n.length;if(!o)return[];const a=!!t._loop,{start:s,end:r}=function(t,e,n,i){let o=0,a=e-1;if(n&&!i)for(;o<e&&!t[o].skip;)o++;for(;o<e&&t[o].skip;)o++;for(o%=e,n&&(a+=o);a>o&&t[a%e].skip;)a--;return a%=e,{start:o,end:a}}(n,o,a,i);return function(t,e,n,i){return i&&i.setContext&&n?function(t,e,n,i){const o=t._chart.getContext(),a=xa(t.options),{_datasetIndex:s,options:{spanGaps:r}}=t,l=n.length,c=[];let d=a,h=e[0].start,u=h;function p(t,e,i,o){const a=r?-1:1;if(t!==e){for(t+=l;n[t%l].skip;)t-=a;for(;n[e%l].skip;)e+=a;t%l!=e%l&&(c.push({start:t%l,end:e%l,loop:i,style:o}),d=o,h=e%l)}}for(const t of e){h=r?h:t.start;let e,a=n[h%l];for(u=h+1;u<=t.end;u++){const r=n[u%l];e=xa(i.setContext(Io(o,{type:"segment",p0:a,p1:r,p0DataIndex:(u-1)%l,p1DataIndex:u%l,datasetIndex:s}))),ya(e,d)&&p(h,u-1,t.loop,d),a=r,d=e}h<u-1&&p(h,u-1,t.loop,d)}return c}(t,e,n,i):e}(t,!0===i?[{start:s,end:r,loop:a}]:function(t,e,n,i){const o=t.length,a=[];let s,r=e,l=t[e];for(s=e+1;s<=n;++s){const n=t[s%o];n.skip||n.stop?l.skip||(i=!1,a.push({start:e%o,end:(s-1)%o,loop:i}),e=r=n.stop?s:null):(r=s,l.skip&&(e=s)),l=n}return null!==r&&a.push({start:e%o,end:r%o,loop:i}),a}(n,s,r<s?r+o:r,!!t._fullLoop&&0===s&&r===o-1),n,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,n=t.length;return n&&e[t[n-1].end]}interpolate(t,e){const n=this.options,i=t[e],o=this.points,a=function(t,e){const n=[],i=t.segments;for(let o=0;o<i.length;o++){const a=_a(i[o],t.points,e);a.length&&n.push(...a)}return n}(this,{property:e,start:i,end:i});if(!a.length)return;const s=[],r=function(t){return t.stepped?ca:t.tension||"monotone"===t.cubicInterpolationMode?da:la}(n);let l,c;for(l=0,c=a.length;l<c;++l){const{start:c,end:d}=a[l],h=o[c],u=o[d];if(h===u){s.push(h);continue}const p=r(h,u,Math.abs((i-h[e])/(u[e]-h[e])),n.stepped);p[e]=t[e],s.push(p)}return 1===s.length?s[0]:s}pathSegment(t,e,n){return Lr(this)(t,this,e,n)}path(t,e,n){const i=this.segments,o=Lr(this);let a=this._loop;e=e||0,n=n||this.points.length-e;for(const s of i)a&=o(t,this,s,{start:e,end:e+n-1});return!!a}draw(t,e,n,i){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),function(t,e,n,i){Tr&&!e.options.segment?function(t,e,n,i){let o=e._path;o||(o=e._path=new Path2D,e.path(o,n,i)&&o.closePath()),Er(t,e.options),t.stroke(o)}(t,e,n,i):function(t,e,n,i){const{segments:o,options:a}=e,s=Lr(e);for(const r of o)Er(t,a,r.style),t.beginPath(),s(t,e,r,{start:n,end:n+i-1})&&t.closePath(),t.stroke()}(t,e,n,i)}(t,this,n,i),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Br(t,e,n,i){const o=t.options,{[n]:a}=t.getProps([n],i);return Math.abs(e-a)<o.radius+o.hitRadius}Or.id="line",Or.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Or.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Or.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class Nr extends ts{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,n){const i=this.options,{x:o,y:a}=this.getProps(["x","y"],n);return Math.pow(t-o,2)+Math.pow(e-a,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(t,e){return Br(this,t,"x",e)}inYRange(t,e){return Br(this,t,"y",e)}getCenterPoint(t){const{x:e,y:n}=this.getProps(["x","y"],t);return{x:e,y:n}}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 n=this.options;this.skip||n.radius<.1||!po(this,e,this.size(n)/2)||(t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,ho(t,n,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Fr(t,e){const{x:n,y:i,base:o,width:a,height:s}=t.getProps(["x","y","base","width","height"],e);let r,l,c,d,h;return t.horizontal?(h=s/2,r=Math.min(n,o),l=Math.max(n,o),c=i-h,d=i+h):(h=a/2,r=n-h,l=n+h,c=Math.min(i,o),d=Math.max(i,o)),{left:r,top:c,right:l,bottom:d}}function Vr(t,e,n,i){return t?0:ii(e,n,i)}function Rr(t,e,n,i){const o=null===e,a=null===n,s=t&&!(o&&a)&&Fr(t,i);return s&&(o||oi(e,s.left,s.right))&&(a||oi(n,s.top,s.bottom))}function Wr(t,e){t.rect(e.x,e.y,e.w,e.h)}function jr(t,e,n={}){const i=t.x!==n.x?-e:0,o=t.y!==n.y?-e:0,a=(t.x+t.w!==n.x+n.w?e:0)-i,s=(t.y+t.h!==n.y+n.h?e:0)-o;return{x:t.x+i,y:t.y+o,w:t.w+a,h:t.h+s,radius:t.radius}}Nr.id="point",Nr.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Nr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Hr extends ts{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:n,backgroundColor:i}}=this,{inner:o,outer:a}=function(t){const e=Fr(t),n=e.right-e.left,i=e.bottom-e.top,o=function(t,e,n){const i=t.options.borderWidth,o=t.borderSkipped,a=So(i);return{t:Vr(o.top,a.top,0,n),r:Vr(o.right,a.right,0,e),b:Vr(o.bottom,a.bottom,0,n),l:Vr(o.left,a.left,0,e)}}(t,n/2,i/2),a=function(t,e,n){const{enableBorderRadius:i}=t.getProps(["enableBorderRadius"]),o=t.options.borderRadius,a=Co(o),s=Math.min(e,n),r=t.borderSkipped,l=i||mn(o);return{topLeft:Vr(!l||r.top||r.left,a.topLeft,0,s),topRight:Vr(!l||r.top||r.right,a.topRight,0,s),bottomLeft:Vr(!l||r.bottom||r.left,a.bottomLeft,0,s),bottomRight:Vr(!l||r.bottom||r.right,a.bottomRight,0,s)}}(t,n/2,i/2);return{outer:{x:e.left,y:e.top,w:n,h:i,radius:a},inner:{x:e.left+o.l,y:e.top+o.t,w:n-o.l-o.r,h:i-o.t-o.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(o.t,o.l)),topRight:Math.max(0,a.topRight-Math.max(o.t,o.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(o.b,o.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(o.b,o.r))}}}}(this),s=(r=a.radius).topLeft||r.topRight||r.bottomLeft||r.bottomRight?yo:Wr;var r;t.save(),a.w===o.w&&a.h===o.h||(t.beginPath(),s(t,jr(a,e,o)),t.clip(),s(t,jr(o,-e,a)),t.fillStyle=n,t.fill("evenodd")),t.beginPath(),s(t,jr(o,e)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,e,n){return Rr(this,t,e,n)}inXRange(t,e){return Rr(this,t,null,e)}inYRange(t,e){return Rr(this,null,t,e)}getCenterPoint(t){const{x:e,y:n,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+i)/2:e,y:o?n:(n+i)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Hr.id="bar",Hr.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Hr.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const Yr=(t,e)=>{let{boxHeight:n=e,boxWidth:i=e}=t;return t.usePointStyle&&(n=Math.min(n,e),i=t.pointStyleWidth||Math.min(i,e)),{boxWidth:i,boxHeight:n,itemHeight:Math.max(e,n)}};class Zr extends ts{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,n){this.maxWidth=t,this.maxHeight=e,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=yn(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter((e=>t.filter(e,this.chart.data)))),t.sort&&(e=e.sort(((e,n)=>t.sort(e,n,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 n=t.labels,i=Eo(n.font),o=i.size,a=this._computeTitleHeight(),{boxWidth:s,itemHeight:r}=Yr(n,o);let l,c;e.font=i.string,this.isHorizontal()?(l=this.maxWidth,c=this._fitRows(a,o,s,r)+10):(c=this.maxHeight,l=this._fitCols(a,o,s,r)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(c,t.maxHeight||this.maxHeight)}_fitRows(t,e,n,i){const{ctx:o,maxWidth:a,options:{labels:{padding:s}}}=this,r=this.legendHitBoxes=[],l=this.lineWidths=[0],c=i+s;let d=t;o.textAlign="left",o.textBaseline="middle";let h=-1,u=-c;return this.legendItems.forEach(((t,p)=>{const g=n+e/2+o.measureText(t.text).width;(0===p||l[l.length-1]+g+2*s>a)&&(d+=c,l[l.length-(p>0?0:1)]=0,u+=c,h++),r[p]={left:0,top:u,row:h,width:g,height:i},l[l.length-1]+=g+s})),d}_fitCols(t,e,n,i){const{ctx:o,maxHeight:a,options:{labels:{padding:s}}}=this,r=this.legendHitBoxes=[],l=this.columnSizes=[],c=a-t;let d=s,h=0,u=0,p=0,g=0;return this.legendItems.forEach(((t,a)=>{const m=n+e/2+o.measureText(t.text).width;a>0&&u+i+2*s>c&&(d+=h+s,l.push({width:h,height:u}),p+=h+s,g++,h=u=0),r[a]={left:p,top:u,col:g,width:m,height:i},h=Math.max(h,m),u+=i+s})),d+=h,l.push({width:h,height:u}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:n,labels:{padding:i},rtl:o}}=this,a=pa(o,this.left,this.width);if(this.isHorizontal()){let o=0,s=gi(n,this.left+i,this.right-this.lineWidths[o]);for(const r of e)o!==r.row&&(o=r.row,s=gi(n,this.left+i,this.right-this.lineWidths[o])),r.top+=this.top+t+i,r.left=a.leftForLtr(a.x(s),r.width),s+=r.width+i}else{let o=0,s=gi(n,this.top+t+i,this.bottom-this.columnSizes[o].height);for(const r of e)r.col!==o&&(o=r.col,s=gi(n,this.top+t+i,this.bottom-this.columnSizes[o].height)),r.top=s,r.left+=this.left+i,r.left=a.leftForLtr(a.x(r.left),r.width),s+=r.height+i}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;go(t,this),this._draw(),mo(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:n,ctx:i}=this,{align:o,labels:a}=t,s=ao.color,r=pa(t.rtl,this.left,this.width),l=Eo(a.font),{color:c,padding:d}=a,h=l.size,u=h/2;let p;this.drawTitle(),i.textAlign=r.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=l.string;const{boxWidth:g,boxHeight:m,itemHeight:f}=Yr(a,h),b=this.isHorizontal(),_=this._computeTitleHeight();p=b?{x:gi(o,this.left+d,this.right-n[0]),y:this.top+d+_,line:0}:{x:this.left+d,y:gi(o,this.top+_+d,this.bottom-e[0].height),line:0},ga(this.ctx,t.textDirection);const x=f+d;this.legendItems.forEach(((y,v)=>{i.strokeStyle=y.fontColor||c,i.fillStyle=y.fontColor||c;const w=i.measureText(y.text).width,k=r.textAlign(y.textAlign||(y.textAlign=a.textAlign)),M=g+u+w;let S=p.x,C=p.y;r.setWidth(this.width),b?v>0&&S+M+d>this.right&&(C=p.y+=x,p.line++,S=p.x=gi(o,this.left+d,this.right-n[p.line])):v>0&&C+x>this.bottom&&(S=p.x=S+e[p.line].width+d,p.line++,C=p.y=gi(o,this.top+_+d,this.bottom-e[p.line].height)),function(t,e,n){if(isNaN(g)||g<=0||isNaN(m)||m<0)return;i.save();const o=_n(n.lineWidth,1);if(i.fillStyle=_n(n.fillStyle,s),i.lineCap=_n(n.lineCap,"butt"),i.lineDashOffset=_n(n.lineDashOffset,0),i.lineJoin=_n(n.lineJoin,"miter"),i.lineWidth=o,i.strokeStyle=_n(n.strokeStyle,s),i.setLineDash(_n(n.lineDash,[])),a.usePointStyle){const s={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:o},l=r.xPlus(t,g/2);uo(i,s,l,e+u,a.pointStyleWidth&&g)}else{const a=e+Math.max((h-m)/2,0),s=r.leftForLtr(t,g),l=Co(n.borderRadius);i.beginPath(),Object.values(l).some((t=>0!==t))?yo(i,{x:s,y:a,w:g,h:m,radius:l}):i.rect(s,a,g,m),i.fill(),0!==o&&i.stroke()}i.restore()}(r.x(S),C,y),S=((t,e,n,i)=>t===(i?"left":"right")?n:"center"===t?(e+n)/2:e)(k,S+g+u,b?S+M:this.right,t.rtl),function(t,e,n){_o(i,n.text,t,e+f/2,l,{strikethrough:n.hidden,textAlign:r.textAlign(n.textAlign)})}(r.x(S),C,y),b?p.x+=M+d:p.y+=x})),ma(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,n=Eo(e.font),i=Ao(e.padding);if(!e.display)return;const o=pa(t.rtl,this.left,this.width),a=this.ctx,s=e.position,r=n.size/2,l=i.top+r;let c,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),c=this.top+l,d=gi(t.align,d,this.right-h);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);c=l+gi(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const u=gi(s,d,d+h);a.textAlign=o.textAlign(pi(s)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=n.string,_o(a,e.text,u,c,n)}_computeTitleHeight(){const t=this.options.title,e=Eo(t.font),n=Ao(t.padding);return t.display?e.lineHeight+n.height:0}_getLegendItemAt(t,e){let n,i,o;if(oi(t,this.left,this.right)&&oi(e,this.top,this.bottom))for(o=this.legendHitBoxes,n=0;n<o.length;++n)if(i=o[n],oi(t,i.left,i.left+i.width)&&oi(e,i.top,i.top+i.height))return this.legendItems[n];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 n=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const a=this._hoveredItem,s=(o=n,null!==(i=a)&&null!==o&&i.datasetIndex===o.datasetIndex&&i.index===o.index);a&&!s&&yn(e.onLeave,[t,a,this],this),this._hoveredItem=n,n&&!s&&yn(e.onHover,[t,n,this],this)}else n&&yn(e.onClick,[t,n,this],this);var i,o}}var $r={id:"legend",_element:Zr,start(t,e,n){const i=t.legend=new Zr({ctx:t.ctx,options:n,chart:t});Ts.configure(t,i,n),Ts.addBox(t,i)},stop(t){Ts.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,n){const i=t.legend;Ts.configure(t,i,n),i.options=n},afterUpdate(t){const e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,n){const i=e.datasetIndex,o=n.chart;o.isDatasetVisible(i)?(o.hide(i),e.hidden=!0):(o.show(i),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){const e=t.data.datasets,{labels:{usePointStyle:n,pointStyle:i,textAlign:o,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const s=t.controller.getStyle(n?0:void 0),r=Ao(s.borderWidth);return{text:e[t.index].label,fillStyle:s.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:s.borderCapStyle,lineDash:s.borderDash,lineDashOffset:s.borderDashOffset,lineJoin:s.borderJoinStyle,lineWidth:(r.width+r.height)/4,strokeStyle:s.borderColor,pointStyle:i||s.pointStyle,rotation:s.rotation,textAlign:o||s.textAlign,borderRadius:0,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 Ur extends ts{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 n=this.options;if(this.left=0,this.top=0,!n.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const i=gn(n.text)?n.text.length:1;this._padding=Ao(n.padding);const o=i*Eo(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:n,bottom:i,right:o,options:a}=this,s=a.align;let r,l,c,d=0;return this.isHorizontal()?(l=gi(s,n,o),c=e+t,r=o-n):("left"===a.position?(l=n+t,c=gi(s,i,e),d=-.5*On):(l=o-t,c=gi(s,e,i),d=.5*On),r=i-e),{titleX:l,titleY:c,maxWidth:r,rotation:d}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const n=Eo(e.font),i=n.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:s,rotation:r}=this._drawArgs(i);_o(t,e.text,0,0,n,{color:e.color,maxWidth:s,rotation:r,textAlign:pi(e.align),textBaseline:"middle",translation:[o,a]})}}var Gr={id:"title",_element:Ur,start(t,e,n){!function(t,e){const n=new Ur({ctx:t.ctx,options:e,chart:t});Ts.configure(t,n,e),Ts.addBox(t,n),t.titleBlock=n}(t,n)},stop(t){const e=t.titleBlock;Ts.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,n){const i=t.titleBlock;Ts.configure(t,i,n),i.options=n},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}};new WeakMap;const Xr={average(t){if(!t.length)return!1;let e,n,i=0,o=0,a=0;for(e=0,n=t.length;e<n;++e){const n=t[e].element;if(n&&n.hasValue()){const t=n.tooltipPosition();i+=t.x,o+=t.y,++a}}return{x:i/a,y:o/a}},nearest(t,e){if(!t.length)return!1;let n,i,o,a=e.x,s=e.y,r=Number.POSITIVE_INFINITY;for(n=0,i=t.length;n<i;++n){const i=t[n].element;if(i&&i.hasValue()){const t=qn(e,i.getCenterPoint());t<r&&(r=t,o=i)}}if(o){const t=o.tooltipPosition();a=t.x,s=t.y}return{x:a,y:s}}};function Qr(t,e){return e&&(gn(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function Jr(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function Kr(t,e){const{element:n,datasetIndex:i,index:o}=e,a=t.getDatasetMeta(i).controller,{label:s,value:r}=a.getLabelAndValue(o);return{chart:t,label:s,parsed:a.getParsed(o),raw:t.data.datasets[i].data[o],formattedValue:r,dataset:a.getDataset(),dataIndex:o,datasetIndex:i,element:n}}function qr(t,e){const n=t.chart.ctx,{body:i,footer:o,title:a}=t,{boxWidth:s,boxHeight:r}=e,l=Eo(e.bodyFont),c=Eo(e.titleFont),d=Eo(e.footerFont),h=a.length,u=o.length,p=i.length,g=Ao(e.padding);let m=g.height,f=0,b=i.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);b+=t.beforeBody.length+t.afterBody.length,h&&(m+=h*c.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),b&&(m+=p*(e.displayColors?Math.max(r,l.lineHeight):l.lineHeight)+(b-p)*l.lineHeight+(b-1)*e.bodySpacing),u&&(m+=e.footerMarginTop+u*d.lineHeight+(u-1)*e.footerSpacing);let _=0;const x=function(t){f=Math.max(f,n.measureText(t).width+_)};return n.save(),n.font=c.string,vn(t.title,x),n.font=l.string,vn(t.beforeBody.concat(t.afterBody),x),_=e.displayColors?s+2+e.boxPadding:0,vn(i,(t=>{vn(t.before,x),vn(t.lines,x),vn(t.after,x)})),_=0,n.font=d.string,vn(t.footer,x),n.restore(),f+=g.width,{width:f,height:m}}function tl(t,e,n,i){const{x:o,width:a}=n,{width:s,chartArea:{left:r,right:l}}=t;let c="center";return"center"===i?c=o<=(r+l)/2?"left":"right":o<=a/2?c="left":o>=s-a/2&&(c="right"),function(t,e,n,i){const{x:o,width:a}=i,s=n.caretSize+n.caretPadding;return"left"===t&&o+a+s>e.width||"right"===t&&o-a-s<0||void 0}(c,t,e,n)&&(c="center"),c}function el(t,e,n){const i=n.yAlign||e.yAlign||function(t,e){const{y:n,height:i}=e;return n<i/2?"top":n>t.height-i/2?"bottom":"center"}(t,n);return{xAlign:n.xAlign||e.xAlign||tl(t,e,n,i),yAlign:i}}function nl(t,e,n,i){const{caretSize:o,caretPadding:a,cornerRadius:s}=t,{xAlign:r,yAlign:l}=n,c=o+a,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Co(s);let g=function(t,e){let{x:n,width:i}=t;return"right"===e?n-=i:"center"===e&&(n-=i/2),n}(e,r);const m=function(t,e,n){let{y:i,height:o}=t;return"top"===e?i+=n:i-="bottom"===e?o+n:o/2,i}(e,l,c);return"center"===l?"left"===r?g+=c:"right"===r&&(g-=c):"left"===r?g-=Math.max(d,u)+o:"right"===r&&(g+=Math.max(h,p)+o),{x:ii(g,0,i.width-e.width),y:ii(m,0,i.height-e.height)}}function il(t,e,n){const i=Ao(n.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-i.right:t.x+i.left}function al(t){return Qr([],Jr(t))}function sl(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}class rl extends ts{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||t._chart,this._chart=this.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,n=this.options.setContext(this.getContext()),i=n.enabled&&e.options.animation&&n.animations,o=new Ca(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(this,Io(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"})))}getTitle(t,e){const{callbacks:n}=e,i=n.beforeTitle.apply(this,[t]),o=n.title.apply(this,[t]),a=n.afterTitle.apply(this,[t]);let s=[];return s=Qr(s,Jr(i)),s=Qr(s,Jr(o)),s=Qr(s,Jr(a)),s}getBeforeBody(t,e){return al(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:n}=e,i=[];return vn(t,(t=>{const e={before:[],lines:[],after:[]},o=sl(n,t);Qr(e.before,Jr(o.beforeLabel.call(this,t))),Qr(e.lines,o.label.call(this,t)),Qr(e.after,Jr(o.afterLabel.call(this,t))),i.push(e)})),i}getAfterBody(t,e){return al(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:n}=e,i=n.beforeFooter.apply(this,[t]),o=n.footer.apply(this,[t]),a=n.afterFooter.apply(this,[t]);let s=[];return s=Qr(s,Jr(i)),s=Qr(s,Jr(o)),s=Qr(s,Jr(a)),s}_createItems(t){const e=this._active,n=this.chart.data,i=[],o=[],a=[];let s,r,l=[];for(s=0,r=e.length;s<r;++s)l.push(Kr(this.chart,e[s]));return t.filter&&(l=l.filter(((e,i,o)=>t.filter(e,i,o,n)))),t.itemSort&&(l=l.sort(((e,i)=>t.itemSort(e,i,n)))),vn(l,(e=>{const n=sl(t.callbacks,e);i.push(n.labelColor.call(this,e)),o.push(n.labelPointStyle.call(this,e)),a.push(n.labelTextColor.call(this,e))})),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=l,l}update(t,e){const n=this.options.setContext(this.getContext()),i=this._active;let o,a=[];if(i.length){const t=Xr[n.position].call(this,i,this._eventPosition);a=this._createItems(n),this.title=this.getTitle(a,n),this.beforeBody=this.getBeforeBody(a,n),this.body=this.getBody(a,n),this.afterBody=this.getAfterBody(a,n),this.footer=this.getFooter(a,n);const e=this._size=qr(this,n),s=Object.assign({},t,e),r=el(this.chart,n,s),l=nl(n,s,r,this.chart);this.xAlign=r.xAlign,this.yAlign=r.yAlign,o={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,n,i){const o=this.getCaretPosition(t,n,i);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,n){const{xAlign:i,yAlign:o}=this,{caretSize:a,cornerRadius:s}=n,{topLeft:r,topRight:l,bottomLeft:c,bottomRight:d}=Co(s),{x:h,y:u}=t,{width:p,height:g}=e;let m,f,b,_,x,y;return"center"===o?(x=u+g/2,"left"===i?(m=h,f=m-a,_=x+a,y=x-a):(m=h+p,f=m+a,_=x-a,y=x+a),b=m):(f="left"===i?h+Math.max(r,c)+a:"right"===i?h+p-Math.max(l,d)-a:this.caretX,"top"===o?(_=u,x=_-a,m=f-a,b=f+a):(_=u+g,x=_+a,m=f+a,b=f-a),y=_),{x1:m,x2:f,x3:b,y1:_,y2:x,y3:y}}drawTitle(t,e,n){const i=this.title,o=i.length;let a,s,r;if(o){const l=pa(n.rtl,this.x,this.width);for(t.x=il(this,n.titleAlign,n),e.textAlign=l.textAlign(n.titleAlign),e.textBaseline="middle",a=Eo(n.titleFont),s=n.titleSpacing,e.fillStyle=n.titleColor,e.font=a.string,r=0;r<o;++r)e.fillText(i[r],l.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+s,r+1===o&&(t.y+=n.titleMarginBottom-s)}}_drawColorBox(t,e,n,i,o){const a=this.labelColors[n],s=this.labelPointStyles[n],{boxHeight:r,boxWidth:l,boxPadding:c}=o,d=Eo(o.bodyFont),h=il(this,"left",o),u=i.x(h),p=r<d.lineHeight?(d.lineHeight-r)/2:0,g=e.y+p;if(o.usePointStyle){const e={radius:Math.min(l,r)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},n=i.leftForLtr(u,l)+l/2,c=g+r/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,ho(t,e,n,c),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,ho(t,e,n,c)}else{t.lineWidth=mn(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=i.leftForLtr(u,l-c),n=i.leftForLtr(i.xPlus(u,1),l-c-2),s=Co(a.borderRadius);Object.values(s).some((t=>0!==t))?(t.beginPath(),t.fillStyle=o.multiKeyBackground,yo(t,{x:e,y:g,w:l,h:r,radius:s}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),yo(t,{x:n,y:g+1,w:l-2,h:r-2,radius:s}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(e,g,l,r),t.strokeRect(e,g,l,r),t.fillStyle=a.backgroundColor,t.fillRect(n,g+1,l-2,r-2))}t.fillStyle=this.labelTextColors[n]}drawBody(t,e,n){const{body:i}=this,{bodySpacing:o,bodyAlign:a,displayColors:s,boxHeight:r,boxWidth:l,boxPadding:c}=n,d=Eo(n.bodyFont);let h=d.lineHeight,u=0;const p=pa(n.rtl,this.x,this.width),g=function(n){e.fillText(n,p.x(t.x+u),t.y+h/2),t.y+=h+o},m=p.textAlign(a);let f,b,_,x,y,v,w;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=il(this,m,n),e.fillStyle=n.bodyColor,vn(this.beforeBody,g),u=s&&"right"!==m?"center"===a?l/2+c:l+2+c:0,x=0,v=i.length;x<v;++x){for(f=i[x],b=this.labelTextColors[x],e.fillStyle=b,vn(f.before,g),_=f.lines,s&&_.length&&(this._drawColorBox(e,t,x,p,n),h=Math.max(d.lineHeight,r)),y=0,w=_.length;y<w;++y)g(_[y]),h=d.lineHeight;vn(f.after,g)}u=0,h=d.lineHeight,vn(this.afterBody,g),t.y-=o}drawFooter(t,e,n){const i=this.footer,o=i.length;let a,s;if(o){const r=pa(n.rtl,this.x,this.width);for(t.x=il(this,n.footerAlign,n),t.y+=n.footerMarginTop,e.textAlign=r.textAlign(n.footerAlign),e.textBaseline="middle",a=Eo(n.footerFont),e.fillStyle=n.footerColor,e.font=a.string,s=0;s<o;++s)e.fillText(i[s],r.x(t.x),t.y+a.lineHeight/2),t.y+=a.lineHeight+n.footerSpacing}}drawBackground(t,e,n,i){const{xAlign:o,yAlign:a}=this,{x:s,y:r}=t,{width:l,height:c}=n,{topLeft:d,topRight:h,bottomLeft:u,bottomRight:p}=Co(i.cornerRadius);e.fillStyle=i.backgroundColor,e.strokeStyle=i.borderColor,e.lineWidth=i.borderWidth,e.beginPath(),e.moveTo(s+d,r),"top"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+l-h,r),e.quadraticCurveTo(s+l,r,s+l,r+h),"center"===a&&"right"===o&&this.drawCaret(t,e,n,i),e.lineTo(s+l,r+c-p),e.quadraticCurveTo(s+l,r+c,s+l-p,r+c),"bottom"===a&&this.drawCaret(t,e,n,i),e.lineTo(s+u,r+c),e.quadraticCurveTo(s,r+c,s,r+c-u),"center"===a&&"left"===o&&this.drawCaret(t,e,n,i),e.lineTo(s,r+d),e.quadraticCurveTo(s,r,s+d,r),e.closePath(),e.fill(),i.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,n=this.$animations,i=n&&n.x,o=n&&n.y;if(i||o){const n=Xr[t.position].call(this,this._active,this._eventPosition);if(!n)return;const a=this._size=qr(this,t),s=Object.assign({},n,this._size),r=el(e,t,s),l=nl(t,s,r,e);i._to===l.x&&o._to===l.y||(this.xAlign=r.xAlign,this.yAlign=r.yAlign,this.width=a.width,this.height=a.height,this.caretX=n.x,this.caretY=n.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(e);const i={width:this.width,height:this.height},o={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const a=Ao(e.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&s&&(t.save(),t.globalAlpha=n,this.drawBackground(o,t,i,e),ga(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ma(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const n=this._active,i=t.map((({datasetIndex:t,index:e})=>{const n=this.chart.getDatasetMeta(t);if(!n)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:n.data[e],index:e}})),o=!wn(n,i),a=this._positionChanged(i,e);(o||a)&&(this._active=i,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,n=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,n),s=this._positionChanged(a,t),r=e||!wn(a,o)||s;return r&&(this._active=a,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),r}_getActiveElements(t,e,n,i){const o=this.options;if("mouseout"===t.type)return[];if(!i)return e;const a=this.chart.getElementsAtEventForMode(t,o.mode,o,n);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:n,caretY:i,options:o}=this,a=Xr[o.position].call(this,t,e);return!1!==a&&(n!==a.x||i!==a.y)}}rl.positioners=Xr;var ll={id:"tooltip",_element:rl,positioners:Xr,afterInit(t,e,n){n&&(t.tooltip=new rl({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",n))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:hn,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,i=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(i>0&&e.dataIndex<i)return n[e.dataIndex]}return""},afterTitle:hn,beforeBody:hn,beforeLabel:hn,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 n=t.formattedValue;return pn(n)||(e+=n),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:hn,afterBody:hn,beforeFooter:hn,footer:hn,afterFooter:hn}},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"]};class cl extends ds{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:n,label:i}of e)t[n]===i&&t.splice(n,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(pn(t))return null;const n=this.getLabels();return((t,e)=>null===t?null:ii(Math.round(t),0,e))(e=isFinite(e)&&n[e]===t?e:function(t,e,n,i){const o=t.indexOf(e);return-1===o?((t,e,n,i)=>("string"==typeof e?(n=t.push(e)-1,i.unshift({index:n,label:e})):isNaN(e)&&(n=null),n))(t,e,n,i):o!==t.lastIndexOf(e)?n:o}(n,t,_n(e,t),this._addedLabels),n.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:n,max:i}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(n=0),e||(i=this.getLabels().length-1)),this.min=n,this.max=i}buildTicks(){const t=this.min,e=this.max,n=this.options.offset,i=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let n=t;n<=e;n++)i.push({value:n});return i}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]: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}}function dl(t,e,{horizontal:n,minRotation:i}){const o=Xn(i),a=(n?Math.sin(o):Math.cos(o))||.001,s=.75*e*(""+t).length;return Math.min(e/a,s)}cl.id="category",cl.defaults={ticks:{callback:cl.prototype.getLabelForValue}};class hl extends ds{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 pn(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:i,max:o}=this;const a=t=>i=e?i:t,s=t=>o=n?o:t;if(t){const t=Yn(i),e=Yn(o);t<0&&e<0?s(0):t>0&&e>0&&a(0)}if(i===o){let e=1;(o>=Number.MAX_SAFE_INTEGER||i<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*o)),s(o+e),t||a(i-e)}this.min=i,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:n,stepSize:i}=t;return i?(e=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let n=this.getTickLimit();n=Math.max(2,n);const i=function(t,e){const n=[],{bounds:i,step:o,min:a,max:s,precision:r,count:l,maxTicks:c,maxDigits:d,includeBounds:h}=t,u=o||1,p=c-1,{min:g,max:m}=e,f=!pn(a),b=!pn(s),_=!pn(l),x=(m-g)/(d+1);let y,v,w,k,M=Zn((m-g)/p/u)*u;if(M<1e-14&&!f&&!b)return[{value:g},{value:m}];k=Math.ceil(m/M)-Math.floor(g/M),k>p&&(M=Zn(k*M/p/u)*u),pn(r)||(y=Math.pow(10,r),M=Math.ceil(M*y)/y),"ticks"===i?(v=Math.floor(g/M)*M,w=Math.ceil(m/M)*M):(v=g,w=m),f&&b&&o&&function(t,e){const n=Math.round(t);return n-e<=t&&n+e>=t}((s-a)/o,M/1e3)?(k=Math.round(Math.min((s-a)/M,c)),M=(s-a)/k,v=a,w=s):_?(v=f?a:v,w=b?s:w,k=l-1,M=(w-v)/k):(k=(w-v)/M,k=Un(k,Math.round(k),M/1e3)?Math.round(k):Math.ceil(k));const S=Math.max(Jn(M),Jn(v));y=Math.pow(10,pn(r)?S:r),v=Math.round(v*y)/y,w=Math.round(w*y)/y;let C=0;for(f&&(h&&v!==a?(n.push({value:a}),v<a&&C++,Un(Math.round((v+C*M)*y)/y,a,dl(a,x,t))&&C++):v<a&&C++);C<k;++C)n.push({value:Math.round((v+C*M)*y)/y});return b&&h&&w!==s?n.length&&Un(n[n.length-1].value,s,dl(s,x,t))?n[n.length-1].value=s:n.push({value:s}):b&&w!==s||n.push({value:w}),n}({maxTicks:n,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&&Gn(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}configure(){const t=this.ticks;let e=this.min,n=this.max;if(super.configure(),this.options.offset&&t.length){const i=(n-e)/Math.max(t.length-1,1)/2;e-=i,n+=i}this._startValue=e,this._endValue=n,this._valueRange=n-e}getLabelForValue(t){return ua(t,this.chart.options.locale,this.options.ticks.format)}}class ul extends hl{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=fn(t)?t:0,this.max=fn(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,n=Xn(this.options.ticks.minRotation),i=(t?Math.sin(n):Math.cos(n))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function pl(t){return 1==t/Math.pow(10,Math.floor(Hn(t)))}ul.id="linear",ul.defaults={ticks:{callback:ns.formatters.numeric}};class gl extends ds{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const n=hl.prototype.parse.apply(this,[t,e]);if(0!==n)return fn(n)&&n>0?n:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=fn(t)?Math.max(0,t):null,this.max=fn(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let n=this.min,i=this.max;const o=e=>n=t?n:e,a=t=>i=e?i:t,s=(t,e)=>Math.pow(10,Math.floor(Hn(t))+e);n===i&&(n<=0?(o(1),a(10)):(o(s(n,-1)),a(s(i,1)))),n<=0&&o(s(i,-1)),i<=0&&a(s(n,1)),this._zero&&this.min!==this._suggestedMin&&n===s(this.min,0)&&o(s(n,-1)),this.min=n,this.max=i}buildTicks(){const t=this.options,e=function(t,e){const n=Math.floor(Hn(e.max)),i=Math.ceil(e.max/Math.pow(10,n)),o=[];let a=bn(t.min,Math.pow(10,Math.floor(Hn(e.min)))),s=Math.floor(Hn(a)),r=Math.floor(a/Math.pow(10,s)),l=s<0?Math.pow(10,Math.abs(s)):1;do{o.push({value:a,major:pl(a)}),++r,10===r&&(r=1,++s,l=s>=0?1:l),a=Math.round(r*Math.pow(10,s)*l)/l}while(s<n||s===n&&r<i);const c=bn(t.max,a);return o.push({value:c,major:pl(a)}),o}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&Gn(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":ua(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Hn(t),this._valueRange=Hn(this.max)-Hn(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Hn(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function ml(t){const e=t.ticks;if(e.display&&t.display){const t=Ao(e.backdropPadding);return _n(e.font&&e.font.size,ao.font.size)+t.height}return 0}function fl(t,e,n,i,o){return t===i||t===o?{start:e-n/2,end:e+n/2}:t<i||t>o?{start:e-n,end:e}:{start:e,end:e+n}}function bl(t,e,n,i,o){const a=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let r=0,l=0;i.start<e.l?(r=(e.l-i.start)/a,t.l=Math.min(t.l,e.l-r)):i.end>e.r&&(r=(i.end-e.r)/a,t.r=Math.max(t.r,e.r+r)),o.start<e.t?(l=(e.t-o.start)/s,t.t=Math.min(t.t,e.t-l)):o.end>e.b&&(l=(o.end-e.b)/s,t.b=Math.max(t.b,e.b+l))}function _l(t){return 0===t||180===t?"center":t<180?"left":"right"}function xl(t,e,n){return 90===n||270===n?t-=e/2:(n>270||n<90)&&(t-=e),t}function yl(t,e,n,i){const{ctx:o}=t;if(n)o.arc(t.xCenter,t.yCenter,e,0,Bn);else{let n=t.getPointPosition(0,e);o.moveTo(n.x,n.y);for(let a=1;a<i;a++)n=t.getPointPosition(a,e),o.lineTo(n.x,n.y)}}gl.id="logarithmic",gl.defaults={ticks:{callback:ns.formatters.logarithmic,major:{enabled:!0}}};class vl extends hl{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=Ao(ml(this.options)/2),e=this.width=this.maxWidth-t.width,n=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+n/2+t.top),this.drawingArea=Math.floor(Math.min(e,n)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=fn(t)&&!isNaN(t)?t:0,this.max=fn(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ml(this.options))}generateTickLabels(t){hl.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const n=yn(this.options.pointLabels.callback,[t,e],this);return n||0===n?n:""})).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},n=Object.assign({},e),i=[],o=[],a=t._pointLabels.length,s=t.options.pointLabels,r=s.centerPointLabels?On/a:0;for(let h=0;h<a;h++){const a=s.setContext(t.getPointLabelContext(h));o[h]=a.padding;const u=t.getPointPosition(h,t.drawingArea+o[h],r),p=Eo(a.font),g=(l=t.ctx,c=p,d=gn(d=t._pointLabels[h])?d:[d],{w:ro(l,c.string,d),h:d.length*c.lineHeight});i[h]=g;const m=ei(t.getIndexAngle(h)+r),f=Math.round(Qn(m));bl(n,e,m,fl(f,u.x,g.w,0,180),fl(f,u.y,g.h,90,270))}var l,c,d;t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=function(t,e,n){const i=[],o=t._pointLabels.length,a=t.options,s=ml(a)/2,r=t.drawingArea,l=a.pointLabels.centerPointLabels?On/o:0;for(let a=0;a<o;a++){const o=t.getPointPosition(a,r+s+n[a],l),u=Math.round(Qn(ei(o.angle+Rn))),p=e[a],g=xl(o.y,p.h,u),m=_l(u),f=(c=o.x,d=p.w,"right"===(h=m)?c-=d:"center"===h&&(c-=d/2),c);i.push({x:o.x,y:g,textAlign:m,left:f,top:g,right:f+p.w,bottom:g+p.h})}var c,d,h;return i}(t,i,o)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,n,i){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,n,i))}getIndexAngle(t){return ei(t*(Bn/(this._pointLabels.length||1))+Xn(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(pn(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(pn(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 n=e[t];return function(t,e,n){return Io(t,{label:n,index:e,type:"pointLabel"})}(this.getContext(),t,n)}}getPointPosition(t,e,n=0){const i=this.getIndexAngle(t)-Rn+n;return{x:Math.cos(i)*e+this.xCenter,y:Math.sin(i)*e+this.yCenter,angle:i}}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:n,right:i,bottom:o}=this._pointLabelItems[t];return{left:e,top:n,right:i,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const n=this.ctx;n.save(),n.beginPath(),yl(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),n.closePath(),n.fillStyle=t,n.fill(),n.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:n,grid:i}=e,o=this._pointLabels.length;let a,s,r;if(e.pointLabels.display&&function(t,e){const{ctx:n,options:{pointLabels:i}}=t;for(let o=e-1;o>=0;o--){const e=i.setContext(t.getPointLabelContext(o)),a=Eo(e.font),{x:s,y:r,textAlign:l,left:c,top:d,right:h,bottom:u}=t._pointLabelItems[o],{backdropColor:p}=e;if(!pn(p)){const t=Co(e.borderRadius),i=Ao(e.backdropPadding);n.fillStyle=p;const o=c-i.left,a=d-i.top,s=h-c+i.width,r=u-d+i.height;Object.values(t).some((t=>0!==t))?(n.beginPath(),yo(n,{x:o,y:a,w:s,h:r,radius:t}),n.fill()):n.fillRect(o,a,s,r)}_o(n,t._pointLabels[o],s,r+a.lineHeight/2,a,{color:e.color,textAlign:l,textBaseline:"middle"})}}(this,o),i.display&&this.ticks.forEach(((t,e)=>{0!==e&&(s=this.getDistanceFromCenterForValue(t.value),function(t,e,n,i){const o=t.ctx,a=e.circular,{color:s,lineWidth:r}=e;!a&&!i||!s||!r||n<0||(o.save(),o.strokeStyle=s,o.lineWidth=r,o.setLineDash(e.borderDash),o.lineDashOffset=e.borderDashOffset,o.beginPath(),yl(t,n,a,i),o.closePath(),o.stroke(),o.restore())}(this,i.setContext(this.getContext(e-1)),s,o))})),n.display){for(t.save(),a=o-1;a>=0;a--){const i=n.setContext(this.getPointLabelContext(a)),{color:o,lineWidth:l}=i;l&&o&&(t.lineWidth=l,t.strokeStyle=o,t.setLineDash(i.borderDash),t.lineDashOffset=i.borderDashOffset,s=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),r=this.getPointPosition(a,s),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(r.x,r.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,n=e.ticks;if(!n.display)return;const i=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((i,s)=>{if(0===s&&!e.reverse)return;const r=n.setContext(this.getContext(s)),l=Eo(r.font);if(o=this.getDistanceFromCenterForValue(this.ticks[s].value),r.showLabelBackdrop){t.font=l.string,a=t.measureText(i.label).width,t.fillStyle=r.backdropColor;const e=Ao(r.backdropPadding);t.fillRect(-a/2-e.left,-o-l.size/2-e.top,a+e.width,l.size+e.height)}_o(t,i.label,0,-o,l,{color:r.color})})),t.restore()}drawTitle(){}}vl.id="radialLinear",vl.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ns.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},vl.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vl.descriptors={angleLines:{_fallback:"grid"}};const wl={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}},kl=Object.keys(wl);function Ml(t,e){return t-e}function Sl(t,e){if(pn(e))return null;const n=t._adapter,{parser:i,round:o,isoWeekday:a}=t._parseOpts;let s=e;return"function"==typeof i&&(s=i(s)),fn(s)||(s="string"==typeof i?n.parse(s,i):n.parse(s)),null===s?null:(o&&(s="week"!==o||!$n(a)&&!0!==a?n.startOf(s,o):n.startOf(s,"isoWeek",a)),+s)}function Cl(t,e,n,i){const o=kl.length;for(let a=kl.indexOf(t);a<o-1;++a){const t=wl[kl[a]],o=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((n-e)/(o*t.size))<=i)return kl[a]}return kl[o-1]}function Al(t,e,n){if(n){if(n.length){const{lo:i,hi:o}=ai(n,e);t[n[i]>=e?n[i]:n[o]]=!0}}else t[e]=!0}function El(t,e,n){const i=[],o={},a=e.length;let s,r;for(s=0;s<a;++s)r=e[s],o[r]=s,i.push({value:r,major:!1});return 0!==a&&n?function(t,e,n,i){const o=t._adapter,a=+o.startOf(e[0].value,i),s=e[e.length-1].value;let r,l;for(r=a;r<=s;r=+o.add(r,1,i))l=n[r],l>=0&&(e[l].major=!0);return e}(t,i,o,n):i}class Dl extends ds{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 n=t.time||(t.time={}),i=this._adapter=new fs._date(t.adapters.date);i.init(e),An(n.displayFormats,i.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Sl(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,n=t.time.unit||"day";let{min:i,max:o,minDefined:a,maxDefined:s}=this.getUserBounds();function r(t){a||isNaN(t.min)||(i=Math.min(i,t.min)),s||isNaN(t.max)||(o=Math.max(o,t.max))}a&&s||(r(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||r(this.getMinMax(!1))),i=fn(i)&&!isNaN(i)?i:+e.startOf(Date.now(),n),o=fn(o)&&!isNaN(o)?o:+e.endOf(Date.now(),n)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],n=t[t.length-1]),{min:e,max:n}}buildTicks(){const t=this.options,e=t.time,n=t.ticks,i="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const o=this.min,a=function(t,e,n){let i=0,o=t.length;for(;i<o&&t[i]<e;)i++;for(;o>i&&t[o-1]>n;)o--;return i>0||o<t.length?t.slice(i,o):t}(i,o,this.max);return this._unit=e.unit||(n.autoSkip?Cl(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):function(t,e,n,i,o){for(let a=kl.length-1;a>=kl.indexOf(n);a--){const n=kl[a];if(wl[n].common&&t._adapter.diff(o,i,n)>=e-1)return n}return kl[n?kl.indexOf(n):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(t){for(let e=kl.indexOf(t)+1,n=kl.length;e<n;++e)if(wl[kl[e]].common)return kl[e]}(this._unit):void 0,this.initOffsets(i),t.reverse&&a.reverse(),El(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t){let e,n,i=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),i=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,n=this.getDecimalForValue(t[t.length-1]),o=1===t.length?n:(n-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;i=ii(i,0,a),o=ii(o,0,a),this._offsets={start:i,end:o,factor:1/(i+1+o)}}_generate(){const t=this._adapter,e=this.min,n=this.max,i=this.options,o=i.time,a=o.unit||Cl(o.minUnit,e,n,this._getLabelCapacity(e)),s=_n(o.stepSize,1),r="week"===a&&o.isoWeekday,l=$n(r)||!0===r,c={};let d,h,u=e;if(l&&(u=+t.startOf(u,"isoWeek",r)),u=+t.startOf(u,l?"day":a),t.diff(n,e,a)>1e5*s)throw new Error(e+" and "+n+" are too far apart with stepSize of "+s+" "+a);const p="data"===i.ticks.source&&this.getDataTimestamps();for(d=u,h=0;d<n;d=+t.add(d,s,a),h++)Al(c,d,p);return d!==n&&"ticks"!==i.bounds&&1!==h||Al(c,d,p),Object.keys(c).sort(((t,e)=>t-e)).map((t=>+t))}getLabelForValue(t){const e=this._adapter,n=this.options.time;return n.tooltipFormat?e.format(t,n.tooltipFormat):e.format(t,n.displayFormats.datetime)}_tickFormatFunction(t,e,n,i){const o=this.options,a=o.time.displayFormats,s=this._unit,r=this._majorUnit,l=s&&a[s],c=r&&a[r],d=n[e],h=r&&c&&d&&d.major,u=this._adapter.format(t,i||(h?c:l)),p=o.ticks.callback;return p?yn(p,[u,e,n],this):u}generateTickLabels(t){let e,n,i;for(e=0,n=t.length;e<n;++e)i=t[e],i.label=this._tickFormatFunction(i.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,n=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+n)*e.factor)}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+n*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,n=this.ctx.measureText(t).width,i=Xn(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(i),a=Math.sin(i),s=this._resolveTickFontOptions(0).size;return{w:n*o+s*a,h:n*a+s*o}}_getLabelCapacity(t){const e=this.options.time,n=e.displayFormats,i=n[e.unit]||n.millisecond,o=this._tickFormatFunction(t,0,El(this,[t],this._majorUnit),i),a=this._getLabelSize(o),s=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return s>0?s:1}getDataTimestamps(){let t,e,n=this._cache.data||[];if(n.length)return n;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,e=i.length;t<e;++t)n=n.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}getLabelTimestamps(){const t=this._cache.labels||[];let e,n;if(t.length)return t;const i=this.getLabels();for(e=0,n=i.length;e<n;++e)t.push(Sl(this,i[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return di(t.sort(Ml))}}function Il(t,e,n){let i,o,a,s,r=0,l=t.length-1;n?(e>=t[r].pos&&e<=t[l].pos&&({lo:r,hi:l}=si(t,"pos",e)),({pos:i,time:a}=t[r]),({pos:o,time:s}=t[l])):(e>=t[r].time&&e<=t[l].time&&({lo:r,hi:l}=si(t,"time",e)),({time:i,pos:a}=t[r]),({time:o,pos:s}=t[l]));const c=o-i;return c?a+(s-a)*(e-i)/c:a}Dl.id="time",Dl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Pl extends Dl{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=Il(e,this.min),this._tableRange=Il(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:n}=this,i=[],o=[];let a,s,r,l,c;for(a=0,s=t.length;a<s;++a)l=t[a],l>=e&&l<=n&&i.push(l);if(i.length<2)return[{time:e,pos:0},{time:n,pos:1}];for(a=0,s=i.length;a<s;++a)c=i[a+1],r=i[a-1],l=i[a],Math.round((c+r)/2)!==l&&o.push({time:l,pos:a/(s-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),n=this.getLabelTimestamps();return t=e.length&&n.length?this.normalize(e.concat(n)):e.length?e:n,t=this._cache.all=t,t}getDecimalForValue(t){return(Il(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,n=this.getDecimalForPixel(t)/e.factor-e.end;return Il(this._table,n*this._tableRange+this._minPos,!0)}}var zl;function Ll(t,e,n,i){t(e,n),void 0!==i&&i.emit(zl.ChartRendered)}function Tl(t,e){t.destroy(),void 0!==e&&e.emit(zl.ChartDestroyed)}function Ol(t,e,n){const i=[];t.datasets=e.datasets.map((e=>{const o=t.datasets.find((t=>t[n]===e[n]));return o&&e.data&&!i.includes(o)?(i.push(o),Object.assign(o,e),o):{...e}}))}Pl.id="timeseries",Pl.defaults=Dl.defaults,function(t){t.ChartRendered="chart:rendered",t.ChartUpdated="chart:updated",t.ChartDestroyed="chart:destroyed",t.LabelsUpdated="labels:updated"}(zl||(zl={}));const Bl=((e,n,i)=>(0,t.defineComponent)({props:{chartData:{type:Object,required:!0},chartOptions:{type:Object,default:()=>{}},datasetIdKey:{type:String,default:"label"},chartId:{type:String,default:e},width:{type:Number,default:400},height:{type:Number,default:400},cssClasses:{type:String,default:""},styles:{type:Object,default:()=>{}},plugins:{type:Array,default:()=>[]}},setup(e,o){vr.register(i);const a=(0,t.shallowRef)(null),s=(0,t.ref)(null);function r(i,r){if(null!==a.value&&Tl((0,t.toRaw)(a.value),o),null===s.value)throw new Error("Please remove the <template></template> tags from your chart component. See https://vue-chartjs.org/guide/#vue-single-file-components");{const o=function(t,e){const n={labels:void 0===t.labels?[]:[...t.labels],datasets:[]};return Ol(n,{...t},e),n}(i,e.datasetIdKey),l=s.value.getContext("2d");null!==l&&(a.value=new vr(l,{type:n,data:(0,t.isProxy)(i)?new Proxy(o,{}):o,options:r,plugins:e.plugins}))}}function l(){const e=(0,t.toRaw)(a.value);null!==e?function(t,e){t.update(),void 0!==e&&e.emit(zl.ChartUpdated)}(e,o):console.error("Update ERROR: chart instance not found")}return(0,t.watch)((()=>e.chartData),((n,i)=>function(n,i){const s=(0,t.isProxy)(n)?(0,t.toRaw)(n):{...n},c=(0,t.isProxy)(i)?(0,t.toRaw)(i):{...i};if(Object.keys(c).length>0){const n=(0,t.toRaw)(a.value),i=function(t,e){const n=t.datasets.map((t=>t.label)),i=e.datasets.map((t=>t.label));return e.datasets.length===t.datasets.length&&n.every(((t,e)=>t===i[e]))}(s,c);i&&null!==n?(Ol(null==n?void 0:n.data,s,e.datasetIdKey),void 0!==s.labels&&function(t,e,n){t.data.labels=e,void 0!==n&&n.emit(zl.LabelsUpdated)}(n,s.labels,o),l()):(null!==n&&Tl(n,o),Ll(r,e.chartData,e.chartOptions,o))}else null!==a.value&&Tl((0,t.toRaw)(a.value),o),Ll(r,e.chartData,e.chartOptions,o)}(n,i)),{deep:!0}),(0,t.watch)((()=>e.chartOptions),(n=>function(n){const i=(0,t.toRaw)(a.value);null!==i?(function(t,e){t.options={...e}}(i,n),l()):Ll(r,e.chartData,e.chartOptions,o)}(n)),{deep:!0}),(0,t.onMounted)((()=>{"datasets"in e.chartData&&e.chartData.datasets.length>0&&Ll(r,e.chartData,e.chartOptions,o)})),(0,t.onBeforeUnmount)((()=>{null!==a.value&&Tl((0,t.toRaw)(a.value),o)})),o.expose({chart:a,updateChart:l}),()=>(0,t.h)("div",{style:e.styles,class:e.cssClasses},[(0,t.h)("canvas",{id:e.chartId,width:e.width,height:e.height,ref:s})])}}))("pie-chart","pie",Ka);vr.register(Ar,Gr,ll,$r);const Nl={name:"PieChart",components:{Pie:Bl},props:{labels:{type:Array,default:[]},data:{type:Array,default:[]},colors:{type:Array,default:[]},chartId:{type:String,default:"pie-chart"},options:{type:Object,default:null}},computed:{chartData(){return{labels:this.labels,datasets:[{data:this.data,backgroundColor:this.colors}]}},chartOptions(){return this.options?this.options:{responsive:!1,maintainAspectRatio:!1,plugins:{legend:{position:"bottom",labels:{padding:20,boxHeight:20,boxWidth:20,font:{size:16,lineHeight:2}}}}}}}},Fl=(0,a.Z)(Nl,[["render",function(e,n,i,o,a,s){const r=(0,t.resolveComponent)("Pie");return(0,t.openBlock)(),(0,t.createBlock)(r,{data:s.chartData,id:i.chartId,options:s.chartOptions},null,8,["data","id","options"])}]]);i(67),i(737);const Vl={IS_MOBILE:window.matchMedia("(max-width: 767px)").matches,BACK_BTN_IMG:i(835).Z,MINIMALIZE_IMG:i(436).Z,MAXIMALIZE_IMG:i(800).Z,COLORS:{0:"#009999",1:"#D5EEE8",2:"#066",3:"#FF0000",4:"#FFF989",5:"#EDB666",6:"#FF7400",7:"#1240AB"},MONTH_NAMES:{0:"January",1:"February",2:"March",3:"April",4:"May",5:"June",6:"July",7:"August",8:"September",9:"October",10:"November",11:"December"}},Rl=class{constructor(t){this.url=t}makePost(t,e={},n){return $.post(this.url+t,e,n)}makeGet(t,e,...n){return $.get(this.url+t+(n.length>0?"/"+n.join("/"):""),e)}makeDelete(t,e,...n){return $.ajax({url:this.url+t+(n.length>0?"/"+n.join("/"):""),method:"DELETE",contentType:"application/json",success:e})}makePut(t,e={},n){return $.ajax({url:this.url+t,method:"PUT",contentType:"application/x-www-form-urlencoded",success:n,data:JSON.stringify(e)})}makePostFile(t,e,n){return $.ajax({type:"POST",enctype:"multipart/form-data",url:this.url+t,data:e,processData:!1,contentType:!1,cache:!1,timeout:6e5,success:n})}},Wl={GEOMETRYTYPE:{Line:"LineString",Point:"Point",Polygon:"Polygon",Circle:"Circle"},convertCoordinates:t=>ol.proj.fromLonLat([t.longitude,t.latitude]),convertCoordinatesToLonLat:t=>ol.proj.toLonLat(t),calculateMidPoint:t=>({latitude:(t[0].latitude+t[1].latitude)/2,longitude:(t[0].longitude+t[1].longitude)/2}),calculateCentroid(t,e){let n={latitude:0,longitude:0};for(let i=0;i<e;i++){let e=t[i];n.latitude+=e.latitude,n.longitude+=e.longitude}return n.latitude/=e,n.longitude/=e,n},calculateDistance(t,e){let n=.017453292519943295,i=Math.cos,o=t.latitude,a=e.latitude,s=t.longitude,r=e.longitude,l=.5-i((a-o)*n)/2+i(o*n)*i(a*n)*(1-i((r-s)*n))/2;return Math.round(12742*Math.asin(Math.sqrt(l))*1e3)},calculateLongestDistance(t,e,n){let i=0;for(let o=0;o<n;o++){let n=this.calculateDistance(t,e[o]);n>i&&(i=n)}return i},pointsDistance(t,e){let n=t[0]-e[0],i=t[1]-e[1];return Math.sqrt(n*n+i*i)},getArea(t){return t.getGeometry().getType()===this.GEOMETRYTYPE.Polygon?ol.sphere.getArea(t.getGeometry()):null},getLength(t){return t.getGeometry().getType()===this.GEOMETRYTYPE.Circle?null:ol.sphere.getLength(t.getGeometry())},styles:{},interactions:{},templates:{},stopClusterStyleCache:{},MapWrapper:function(t){let e={},n={};function i(t,i){n.hasOwnProperty(t)&&n[t].forEach((t=>{void 0!==i.pixel?e.forEachFeatureAtPixel(i.pixel,((e,n)=>{setTimeout(t(e,n,i),1)}),{hitTolerance:10}):setTimeout(t(i),1)}))}return e=new ol.Map({target:void 0!==t.element?t.element:"",layers:[new ol.layer.Tile({source:new ol.source.OSM})],view:new ol.View({zoom:4,center:ol.proj.fromLonLat([0,0])})}),e.on("click",(t=>{i("click",t)})),e.on("moveend",(t=>{i("moveend",t)})),{getMap:function(){return e},addLayer:function(t){e.addLayer(t.getLayer())},fit:function(t,n){t.getSource().getFeatures().length>0&&e.getView().fit(t.getExtent(),{size:e.getSize(),maxZoom:void 0===n?20:n,padding:[20,20,20,20]})},fitToFeature:function(t){let n=t.getGeometry().getExtent();e.getView().fit(n,{size:e.getSize(),maxZoom:20,padding:[20,20,20,20]})},addInteraction:function(t){e.addInteraction(t.getInteraction())},removeInteraction:function(t){e.removeInteraction(t.getInteraction())},addOverlay:function(t){e.addOverlay(t.getOverlay())},removeOverlay:function(t){e.removeOverlay(t.getOverlay())},getPixelFromCoordinate:function(t){return e.getPixelFromCoordinate(t)},removeLayer:function(t){e.removeLayer(t.getLayer())},addControl:function(t){e.addControl(t.getControl())},removeControl:function(t){e.removeControl(t.getControl())},getFeatureFromPixel:function(t){return e.forEachFeatureAtPixel(t,(t=>t))},getLayerFromPixel:function(t){return e.forEachFeatureAtPixel(t,((t,e)=>e))},getZoomLevel:function(){return e.getView().getZoom()},on:function(t,e){n.hasOwnProperty(t)?n[t].push(e):n[t]=[e]},off:function(t,e){n.hasOwnProperty(t)&&(n[t]=n[t].filter((t=>t!==e)))}}},LayerWrapper:function(t={style:void 0,name:void 0,zIndex:void 0,vectorImage:void 0}){let e={},n=new ol.source.Vector;return function(){let i={name:void 0!==t.name?t.name:"",source:n,style:void 0!==t.style?t.style:new ol.style.Style({}),zIndex:void 0!==t.zIndex?t.zIndex:1};e=t.vectorImage?new ol.layer.VectorImage(i):new ol.layer.Vector(i)}(),{addFeatures:function(t){n.addFeatures(t)},addFeature:function(t){n.addFeature(t)},removeFeatures:function(){n.clear()},removeFeature:function(t){n.removeFeature(t)},removeFeatureById:function(t){let e=n.getFeatureById(t);e&&n.removeFeature(e)},removeFeaturesByProperty:function(t,e){n.getFeatures().forEach((i=>{i.get("properties")[t]===e&&n.removeFeature(i)}))},getFeatureById:function(t){return n.getFeatureById(t)},getFeaturesByProperty:function(t,e){let i=[];return n.getFeatures().forEach((n=>{n.get("properties")[t]===e&&i.push(n)})),i},getAllFeatures:function(){return n.getFeatures()},getLayer:function(){return e},getSource:function(){return n},getExtent:function(){return n.getExtent()},getName:function(t){return t.get("name")},show:function(){e.setVisible(!0)},hide:function(){e.setVisible(!1)},setStyle:function(t){e.setStyle(t)}}},ClusterLayerWrapper:function(t={style:void 0,name:void 0,zIndex:void 0,animationDuration:void 0,distance:void 0}){let e={},n=new ol.source.Vector,i={};return i=new ol.source.Cluster({source:n,distance:void 0!==t.distance?t.distance:50}),e=new ol.layer.AnimatedCluster({name:void 0!==t.name?t.name:"",source:i,style:void 0!==t.style?t.style:{},zIndex:void 0!==t.zIndex?t.zIndex:1,animationDuration:void 0!==t.animationDuration?t.animationDuration:200}),{addFeatures:function(t){n.addFeatures(t)},addFeature:function(t){n.addFeature(t)},removeFeatures:function(){n.clear()},removeFeature:function(t){n.removeFeature(t)},removeFeatureById:function(t){let e=n.getFeatureById(t);e&&n.removeFeature(e)},getFeatureById:function(t){return n.getFeatureById(t)},getFeaturesByProperty:function(t,e){let i=[];return n.getFeatures().forEach((n=>{n.get("properties")[t]===e&&i.push(n)})),i},getAllFeatures:function(){return n.getFeatures()},getLayer:function(){return e},getSource:function(){return n},getExtent:function(){return n.getExtent()},getName:function(t){return t.get("name")},getClusterFeatures:function(t){return t.get("features")},setStyle:function(t){e.setStyle(t)},setDistance:function(t){i.setDistance(t)}}},Feature:function(){this.setFeatureStyle=function(t,e){t.setStyle(e)},this.setFeatureId=function(t,e){t.setId(e)},this.setFeatureProperty=function(t,e,n){t.set(e,n)},this.getProperties=function(t){return t.get("properties")}},Linestring:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(t){const e=[];for(let n=0,i=t.points.length;n<i;n++)t.points[n].longitude>1e5||t.points[n].latitude>1e5?e.push(ol.proj.fromLonLat([t.points[n].longitude/1e5,t.points[n].latitude/1e5])):e.push(ol.proj.fromLonLat([t.points[n].longitude,t.points[n].latitude]));return e}function i(t,i){const o=n(t),a=new ol.geom.LineString(o),s=new ol.Feature({geometry:a});return s.setId(t.id),s.set("properties",t),void 0!==t.style?s.setStyle(t.style):void 0!==i?s.setStyle(i):void 0!==e.style&&s.setStyle(e.style),void 0!==e.changeCallback&&s.on("change",e.changeCallback),s}return Wl.Feature.call(this),{createFeatures:function(t,e){if(Array.isArray(t))return t.map((t=>i(t,e)))},createFeature:i,getCoordinates:function(t){return n(t)},setFeatureCoordinates:function(t,e){let i=n(e);t.getGeometry().setCoordinates(i)},setFeatureStyle:this.setFeatureStyle}},Point:function(t={style:void 0,changeCallback:void 0,id:void 0,nestedObj:void 0}){let e=t;function n(n){let i=n;t.nestedObj&&(i=n[t.nestedObj]);let o=new ol.geom.Point(ol.proj.fromLonLat([i.longitude>180||i.longitude<-180?i.longitude/1e5:i.longitude,i.latitude>90||i.latitude<-90?i.latitude/1e5:i.latitude])),a=new ol.Feature({geometry:o});return void 0!==t.id?a.setId(n[t.id]):void 0!==i.id?a.setId(i.id):void 0!==n.id&&a.setId(n.id),a.set("properties",n),void 0!==e.style?a.setStyle(e.style):void 0!==n.style&&a.setStyle(n.style),void 0!==e.changeCallback&&a.on("change",e.changeCallback),a}return Wl.Feature.call(this),{createFeatures:function(t){return Array.isArray(t)?t.map((t=>n(t))):n(t)},getProperties:this.getProperties,setFeatureStyle:this.setFeatureStyle,setFeatureId:this.setFeatureId,setFeatureProperty:this.setFeatureProperty,setFeatureCoordinates:function(t,e){t.getGeometry().setCoordinates(ol.proj.fromLonLat([e.longitude>180||e.longitude<-180?e.longitude/1e5:e.longitude,e.latitude>90||e.latitude<-90?e.latitude/1e5:e.latitude]))}}},Polygon:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(t){const n=function(t){let e=[];for(let n=0,i=t.length;n<i;n++)e.push(ol.proj.fromLonLat([t[n].longitude>180||t[n].longitude<-180?t[n].longitude/1e5:t[n].longitude,t[n].latitude>90||t[n].latitude<-90?t[n].latitude/1e5:t[n].latitude]));return e}(t.coordinates),i=new ol.geom.Polygon([n]),o=new ol.Feature({geometry:i});return o.setId(t.id),o.set("properties",t),void 0!==e.style?o.setStyle(e.style):void 0!==t.style&&o.setStyle(t.style),void 0!==e.changeCallback&&o.on("change",e.changeCallback),o}return Wl.Feature.call(this),{createFeatures:function(t){if(Array.isArray(t))return t.map((t=>n(t)))},createFeature:n}},Circle:function(t={style:void 0,changeCallback:void 0}){let e=t;function n(n){let i=new ol.geom.Circle(ol.proj.fromLonLat([n.longitude>180||n.latitude<-180?n.longitude/1e5:n.longitude,n.latitude>90||n.latitude<-90?n.latitude/1e5:n.latitude]),n.radius),o=new ol.Feature({geometry:i});return o.set("properties",n),void 0!==t.id?o.setId(n[t.id]):void 0!==n.id&&o.setId(n.id),void 0!==e.style?o.setStyle(e.style):void 0!==n.style&&o.setStyle(n.style),void 0!==e.changeCallback&&o.on("change",e.changeCallback),o}return Wl.Feature.call(this),{createFeatures:function(t){return Array.isArray(t)?t.map((t=>n(t))):n(t)}}}};Wl.interactions.ModifyWrapper=function(t={source:void 0,features:void 0,modifyEnd:void 0,modifyStart:void 0,hitDetection:void 0,style:void 0,flPointsModify:void 0,alwaysOneFeature:void 0}){let e={};function n(e){switch(e.getGeometry().getType()){case Wl.GEOMETRYTYPE.Line:return function(e){let n=e.getGeometry().getCoordinates(),i=e.get("properties"),o=i.points;if(o.length!==n.length)for(let t=0,e=n.length;t<e;t++){let e=n[t],i=o[t],a=ol.proj.toLonLat(e),s=Math.round(+a[0].toFixed(5)),r=Math.round(+a[1].toFixed(5));s+r!==i.longitude+i.latitude&&o.splice(t,0,{order:t+1,longitude:s,latitude:r,id:0,segmentPointId:0,timeOnSegment:0,modifyType:"add"}),i.order=t+1}else for(let a=0,s=o.length;a<s;a++){let r=n[a],l=o[a],c=ol.proj.toLonLat(r),d=Math.round(+c[0].toFixed(5)),h=Math.round(+c[1].toFixed(5));d+h!==l.longitude+l.latitude&&(0!==a&&a!==s-1?(l.longitude=d,l.latitude=h,l.modifyType="edit"):void 0!==t.flPointsModify&&t.flPointsModify(i,e))}return i}(e);case Wl.GEOMETRYTYPE.Polygon:return function(t){let e=t.getGeometry().getCoordinates()[0],n=[],i=t.get("properties");for(let t=0,i=e.length;t<i;t++){let i=ol.proj.toLonLat(e[t]);n.push({longitude:Math.round(+i[0].toFixed(5)),latitude:Math.round(+i[1].toFixed(5)),order:t+1})}return void 0!==i&&i.hasOwnProperty("coordinates")?(i.coordinates=n,i):(t.set("properties",{coordinates:n}),t.get("properties"))}(e);case Wl.GEOMETRYTYPE.Point:return function(t){let e=ol.proj.toLonLat(t.getGeometry().getCoordinates());return{longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),id:t.getId(),properties:t.get("properties")}}(e);case Wl.GEOMETRYTYPE.Circle:return function(t){let e=ol.proj.toLonLat(t.getGeometry().getCenter()),n=t.get("properties"),i={longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),radius:t.getGeometry().getRadius(),id:t.getId()};return void 0!==n&&n.hasOwnProperty("coordinates")?(n.longitude=i.longitude,n.latitude=i.latitude,n.radius=i.radius):t.set("properties",i),t.get("properties")}(e)}}return function(){let i={};void 0!==t.source?i.source=t.source:void 0!==t.features&&(i.features=t.features),void 0!==t.hitDetection&&(i.hitDetection=t.hitDetection),void 0!==t.style&&(i.style=t.style),e=new ol.interaction.Modify(i),void 0!==t.modifyEnd&&e.on("modifyend",(e=>{let i=e.features.getArray();t.modifyEnd(function(e){if(void 0!==t.alwaysOneFeature&&t.alwaysOneFeature){for(let t=1;t<e.length;t++){let n=e[t],i=n.get("properties"),o=ol.proj.fromLonLat([+i.longitude,+i.latitude]);n.getGeometry().setCoordinates(o)}return[n(e[0])]}return e.map((t=>n(t)))}(i),i)})),void 0!==t.modifyStart&&e.on("modifystart",t.modifyStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)},getState:function(){return e.getActive()}}},Wl.interactions.ModifyLSWrapper=function(t={source:void 0,features:void 0,modifyEnd:void 0,modifyStart:void 0,hitDetection:void 0,style:void 0}){let e={};return function(){let n={};void 0!==t.source?n.source=t.source:void 0!==t.features&&(n.features=t.features),void 0!==t.modifyEnd&&(n.hitDetection=t.hitDetection),void 0!==t.style&&(n.style=t.style),e=new ol.interaction.Modify(n),void 0!==t.modifyEnd&&e.on("modifyend",(e=>{t.modifyEnd(function(t){return t.features.getArray().map((t=>{let e=ol.proj.toLonLat(t.getGeometry().getCoordinates());return{longitude:e[0].toFixed(5),latitude:e[1].toFixed(5),id:t.getId(),properties:t.get("properties")}}))}(e),e)})),void 0!==t.modifyStart&&modifiy.on("modifystart",t.modifyStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)}}},Wl.interactions.SelectWrapper=function(t={layerWrapper:void 0,style:void 0,hitTolerance:void 0,selected:void 0,deselected:void 0,alwaysOneSelected:void 0}){let e,n=null;return function(){let i={};void 0!==t.layerWrapper&&(i.layers=[t.layerWrapper.getLayer()]),void 0!==t.style&&(i.style=t.style),void 0!==t.hitTolerance&&(i.hitTolerance=t.hitTolerance),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&(i.toggleCondition=ol.events.condition.never,i.filter=function(t){return null===n||t.getId()===n||null===n}),e=new ol.interaction.Select(i),e.on("select",(i=>{void 0!==t.deselected&&(i.deselected.length>0?t.deselected(i,i.deselected[0].get("properties")):t.deselected(i,null)),void 0!==t.selected&&(i.selected.length>0?(t.selected(i,i.selected[0].get("properties")),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&(n=i.selected[0].getId())):(t.selected(i,null),void 0!==t.alwaysOneSelected&&t.alwaysOneSelected&&e.getFeatures().push(i.deselected[0])))}))}(),{getInteraction:function(){return e},getSelectedFeatures:function(){return e.getFeatures()},clearSelected:function(){e.getFeatures().clear(),n=null},addFeatures:function(t){e.getFeatures().push(...t)},setActive:function(t){e.setActive(t)}}},Wl.interactions.DrawWrapper=function(t={source:void 0,drawEnd:void 0,drawStart:void 0,style:void 0,geometryType:void 0}){let e={};function n(t){return t.feature.getGeometry().getCoordinates()[0].map(((t,e)=>{let n=ol.proj.toLonLat(t);return{longitude:n[0].toFixed(5),latitude:n[1].toFixed(5),order:e+1}}))}return function(){let i={};void 0!==t.source&&(i.source=t.source),void 0!==t.style&&(i.style=t.style),void 0!==t.geometryType&&(i.type=t.geometryType),e=new ol.interaction.Draw(i),void 0!==t.drawEnd&&e.on("drawend",(function(e){i.type===Wl.GEOMETRYTYPE.Circle?t.drawEnd(function(t){let e=t.feature.getGeometry().getCenter(),n=t.feature.getGeometry().getRadius(),i=ol.proj.toLonLat(e);return{longitude:i[0].toFixed(5),latitude:i[1].toFixed(5),radius:n}}(e),i.type,e.feature):i.type===Wl.GEOMETRYTYPE.Point?t.drawEnd(function(t){console.log(t);let e=t.feature.getGeometry().getCoordinates(),n=ol.proj.toLonLat(e);return{longitude:n[0].toFixed(5),latitude:n[1].toFixed(5)}}(e),i.type,e,e.feature):t.drawEnd(n(e),i.type,e.feature)})),void 0!==t.drawStart&&e.on("drawstart",t.drawStart)}(),{getInteraction:function(){return e},setActive:function(t){e.setActive(t)},getCoordinates:n}},Wl.OverlayWrapper=function(t={element:void 0,offset:void 0}){let e={},n={},i=null;function o(t){if(t){let e=t.getGeometry().getExtent();n.setPosition(ol.extent.getCenter(e))}else n.setPosition(void 0)}function a(t){i.innerHTML=t}return e=t,i=document.getElementById(e.element),n=new ol.Overlay({element:i,offset:void 0!==e.offset?e.offset:[0,-10]}),{show:function(t,e){void 0!==e&&a(e),void 0!==t&&o(t)},hide:function(){n.setPosition(void 0)},getOverlay:function(){return n},setPosition:o,setContent:a}},Wl.ContextMenuWrapper=function(t={items:void 0,defaultItems:void 0,width:void 0}){let e={},n=[];return function(){let i={};void 0!==t.items&&(i.items=t.items,n=t.items),void 0!==t.defaultItems&&(i.defaultItems=t.defaultItems),void 0!==t.width?i.width=t.width:i.width=170,e=new ContextMenu(i)}(),{addItems:function(t=[]){e.clear(),e.extend(t),e.extend(e.getDefaultItems())},addItem:function(t={text:void 0,classname:void 0,callback:void 0,icon:void 0}){let i={};void 0!==t.text&&(i.text=t.text),void 0!==t.classname&&(i.classname=t.classname),void 0!==t.callback&&(i.callback=t.callback),void 0!==t.icon&&(i.callback=t.callback),e.push(i),n.push(i)},getControl:function(){return e},hide:function(){e.disable()},show:function(){e.enable()},on:function(t,n){e.on(t,n)}}},Wl.LegendWrapper=function(t={title:void 0,margin:void 0,target:void 0}){let e=null,n=null;return e=new ol.legend.Legend({title:void 0!==t.title?t.title:"",margin:void 0!==t.margin?t.margin:5}),n=new ol.control.Legend({legend:e,target:t.target,collapsed:!1}),{getControl:function(){return n},addItem:function(t={title:void 0,feature:void 0,typeGeom:void 0,style:void 0,size:void 0,margin:void 0}){let n={margin:t.margin,size:t.size,title:t.title?t.title:""};void 0!==t.feature&&(n.feature=t.feature),void 0!==t.typeGeom&&void 0!==t.style&&(n.typeGeom=t.typeGeom,n.style=t.style),e.addItem(n)}}},Wl.BarWrapper=function(t={toggleOne:void 0,group:void 0}){let e=null;return function(){let n={};void 0!==t.toggleOne&&(n.toggleOne=t.toggleOne),void 0!==t.group&&(n.group=t.group),e=new ol.control.Bar(n)}(),{addBarItemWrapper:function(t){e.addControl(t.getBarItem())},addBarWrapper:function(t){e.addControl(t.getControl())},getControl:function(){return e}}},Wl.BarItemWrapper=function(t={title:void 0,barWrapper:void 0,interactionWrapper:void 0,html:void 0,className:void 0,active:void 0,onActive:void 0,onDeactive:void 0}){let e=null;return function(){let n={};void 0!==t.title&&(n.title=t.title),void 0!==t.barWrapper&&(n.bar=t.barWrapper.getControl()),void 0!==t.interactionWrapper&&(n.interaction=t.interactionWrapper.getInteraction()),void 0!==t.html&&(n.html=t.html),void 0!==t.className&&(n.className=t.className),void 0!==t.active&&(n.active=t.active,n.active?t.onActive():t.onDeactive()),n.onToggle=function(e){e&&t.onActive&&t.onActive(),!e&&t.onDeactive&&t.onDeactive()},e=new ol.control.Toggle(n)}(),{getBarItem:function(){return e}}};const jl=Wl,Hl={install(t,e){Object.assign(t.config.globalProperties,Vl)}}})(),o})()));
|