From 5700fb0ab487700f3f3eda23c57512412635b0fb Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 28 Aug 2024 19:56:24 +0000 Subject: [PATCH] Automated commit of dist --- dist/changelog.md | 3 +++ dist/{chunk-R3MKZRT5.js => chunk-2IO2FDUA.js} | 2 +- dist/{chunk-F5IDLFZU.js => chunk-2JNMJA37.js} | 2 +- dist/{chunk-4KFWLVKI.js => chunk-42QBCWN2.js} | 2 +- dist/{chunk-WYNQ5JHX.js => chunk-4E6RZBBM.js} | 2 +- dist/{chunk-2Q4ZQRSR.js => chunk-5IGE6P55.js} | 2 +- dist/{chunk-LPXDHCFD.js => chunk-6RK5MU4O.js} | 2 +- dist/{chunk-7NWZDKAS.js => chunk-B5EPJNTD.js} | 2 +- dist/{chunk-QEASB5VU.js => chunk-BNUZIG4N.js} | 2 +- dist/{chunk-LJGOUF7S.js => chunk-COTWOYRS.js} | 2 +- dist/{chunk-UYNSFEXL.js => chunk-CSWYKUHK.js} | 2 +- dist/{chunk-HN36NMEB.js => chunk-DEHPGDYX.js} | 2 +- dist/{chunk-PBNT6RE2.js => chunk-EM2NUV7J.js} | 2 +- dist/{chunk-XKBPBU2N.js => chunk-F2EOB5ZN.js} | 2 +- dist/{chunk-37UFIW5D.js => chunk-GZORBMTM.js} | 2 +- dist/{chunk-L76GKDA2.js => chunk-JE2DBAFS.js} | 20 +++++++++---------- dist/chunk-K2HAFW67.js | 1 - dist/{chunk-IWE2BDK3.js => chunk-KPBK2R3N.js} | 2 +- dist/{chunk-B2BNZRWN.js => chunk-LT3W5FMN.js} | 2 +- dist/{chunk-FHZVEBZY.js => chunk-OK3AR2TD.js} | 6 +++--- dist/{chunk-6QFXSLJK.js => chunk-QWH4BMSJ.js} | 2 +- dist/{chunk-S6MPGTA6.js => chunk-SXKIVI4L.js} | 2 +- dist/{chunk-4JGIKPPC.js => chunk-TDEEXQXM.js} | 2 +- dist/{chunk-XEEYYVYF.js => chunk-VIPKQBAQ.js} | 2 +- dist/{chunk-7JDU6VT7.js => chunk-VLXUGY6P.js} | 2 +- dist/{chunk-74DGA4QX.js => chunk-X265IDBJ.js} | 2 +- dist/{chunk-G2SG73M6.js => chunk-XMI7PNZQ.js} | 2 +- dist/chunk-YQLISMDV.js | 1 + dist/{chunk-7Z57W26K.js => chunk-ZXTET2VA.js} | 2 +- dist/index.html | 2 +- dist/{main-DSROMZL7.js => main-RORSWP7B.js} | 4 ++-- module.xml | 2 +- package-lock.json | 4 ++-- 33 files changed, 47 insertions(+), 44 deletions(-) rename dist/{chunk-R3MKZRT5.js => chunk-2IO2FDUA.js} (96%) rename dist/{chunk-F5IDLFZU.js => chunk-2JNMJA37.js} (93%) rename dist/{chunk-4KFWLVKI.js => chunk-42QBCWN2.js} (99%) rename dist/{chunk-WYNQ5JHX.js => chunk-4E6RZBBM.js} (98%) rename dist/{chunk-2Q4ZQRSR.js => chunk-5IGE6P55.js} (97%) rename dist/{chunk-LPXDHCFD.js => chunk-6RK5MU4O.js} (99%) rename dist/{chunk-7NWZDKAS.js => chunk-B5EPJNTD.js} (86%) rename dist/{chunk-QEASB5VU.js => chunk-BNUZIG4N.js} (97%) rename dist/{chunk-LJGOUF7S.js => chunk-COTWOYRS.js} (92%) rename dist/{chunk-UYNSFEXL.js => chunk-CSWYKUHK.js} (98%) rename dist/{chunk-HN36NMEB.js => chunk-DEHPGDYX.js} (99%) rename dist/{chunk-PBNT6RE2.js => chunk-EM2NUV7J.js} (98%) rename dist/{chunk-XKBPBU2N.js => chunk-F2EOB5ZN.js} (97%) rename dist/{chunk-37UFIW5D.js => chunk-GZORBMTM.js} (99%) rename dist/{chunk-L76GKDA2.js => chunk-JE2DBAFS.js} (66%) delete mode 100644 dist/chunk-K2HAFW67.js rename dist/{chunk-IWE2BDK3.js => chunk-KPBK2R3N.js} (98%) rename dist/{chunk-B2BNZRWN.js => chunk-LT3W5FMN.js} (99%) rename dist/{chunk-FHZVEBZY.js => chunk-OK3AR2TD.js} (99%) rename dist/{chunk-6QFXSLJK.js => chunk-QWH4BMSJ.js} (88%) rename dist/{chunk-S6MPGTA6.js => chunk-SXKIVI4L.js} (95%) rename dist/{chunk-4JGIKPPC.js => chunk-TDEEXQXM.js} (99%) rename dist/{chunk-XEEYYVYF.js => chunk-VIPKQBAQ.js} (99%) rename dist/{chunk-7JDU6VT7.js => chunk-VLXUGY6P.js} (98%) rename dist/{chunk-74DGA4QX.js => chunk-X265IDBJ.js} (94%) rename dist/{chunk-G2SG73M6.js => chunk-XMI7PNZQ.js} (94%) create mode 100644 dist/chunk-YQLISMDV.js rename dist/{chunk-7Z57W26K.js => chunk-ZXTET2VA.js} (95%) rename dist/{main-DSROMZL7.js => main-RORSWP7B.js} (99%) diff --git a/dist/changelog.md b/dist/changelog.md index 84cbdae..ce9798c 100644 --- a/dist/changelog.md +++ b/dist/changelog.md @@ -1,3 +1,6 @@ +#### 4.0.7 +* fixed issue with colors on map widget + #### 4.0.6 * changing `tile push` option now applied immediately without page refresh (#310) diff --git a/dist/chunk-R3MKZRT5.js b/dist/chunk-2IO2FDUA.js similarity index 96% rename from dist/chunk-R3MKZRT5.js rename to dist/chunk-2IO2FDUA.js index e285a90..c7a1c8a 100644 --- a/dist/chunk-R3MKZRT5.js +++ b/dist/chunk-2IO2FDUA.js @@ -1,2 +1,2 @@ -import{a as A}from"./chunk-PBNT6RE2.js";import{a as I}from"./chunk-QEASB5VU.js";import{a as N}from"./chunk-EAEBZZLM.js";import{a as j}from"./chunk-6QFXSLJK.js";import{a as D}from"./chunk-RNWIIYZZ.js";import{a as F}from"./chunk-SUAWKU6Z.js";import{b as T}from"./chunk-7Z57W26K.js";import{d as W,e as O,i as P,j as k}from"./chunk-LPXDHCFD.js";import{F as S}from"./chunk-B2BNZRWN.js";import{$a as p,$b as u,Db as e,Eb as t,Fb as a,Jb as y,Nb as g,Ob as M,Xb as n,_b as h,ab as s,ac as f,cc as E,fa as _,qa as w,ra as v,rb as x,tb as b,yb as C}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function B(m,l){if(m&1){let z=y();e(0,"button",11),g("click",function(){w(z);let o=M();return v(o.deleteWidgetClick())}),n(1,"Delete widget"),t()}}var U=(()=>{let l=class l{constructor(c,o,i,d,r){this.ms=c,this.dbs=o,this.eds=i,this.mds=d,this.sbs=r,this.invalid=[],this.model={edKey:"ed"+new Date().getTime(),dashboard:this.dbs.current.value,name:"",title:"",dataSource:"",type:"pivot",dataLink:"",dataProperties:[],dependents:[],controls:[],mdx:"",x:0,y:0,rows:4,cols:4}}ngOnInit(){this.eds.resetSavedState(),this.widget?(this.model=this.widget,this.widget.oldWidget=JSON.parse(JSON.stringify(this.widget)),this.eds.updateEditedWidget({widget:this.model}),this.eds.resetSavedState()):this.initializeNewWidget()}ngOnDestroy(){this.eds.cancelEditing()}onCancelEditing(){this.close()}onSave(){this.eds.save(this.model)}onTypeAndDataSourceClick(){this.eds.navigateDataSourceAndType(this.model)}updateWidget(){this.eds.updateEditedWidget({widget:this.model})}deleteWidgetClick(){this.eds.deleteWidget(this.model)}close(){this.sbs.hide()}initializeNewWidget(){let c=this.dbs.getWidgets().filter(o=>o.type!==S.const.emptyWidgetClass).length+1;this.model.name=`Widget${c}`,this.eds.onNewWidget.emit(this.model)}};l.\u0275fac=function(o){return new(o||l)(s(N),s(T),s(j),s(D),s(F))},l.\u0275cmp=_({type:l,selectors:[["dsw-widget-editor"]],inputs:{widget:"widget",invalid:"invalid"},standalone:!0,features:[E],decls:37,vars:5,consts:[[3,"cancel","apply","isWidgetEditorWarning"],[1,"container"],[1,"headline"],[3,"ngModelChange","change","required","ngModel"],[3,"ngModelChange","change","ngModel"],[1,"navigation"],[1,"btn-section",3,"click"],["src","assets/img/icons/icon-next-blue.svg"],["title","Not implemented yet",1,"btn-section","disabled"],[1,"footer"],[1,"btn","btn-white"],[1,"btn","btn-white",3,"click"]],template:function(o,i){o&1&&(e(0,"dsw-sidebar-actions",0),g("cancel",function(){return i.onCancelEditing()})("apply",function(){return i.onSave()}),n(1,` Add widget +import{a as A}from"./chunk-EM2NUV7J.js";import{a as I}from"./chunk-BNUZIG4N.js";import{a as N}from"./chunk-EAEBZZLM.js";import{a as j}from"./chunk-QWH4BMSJ.js";import{a as D}from"./chunk-RNWIIYZZ.js";import{a as F}from"./chunk-SUAWKU6Z.js";import{b as T}from"./chunk-ZXTET2VA.js";import{d as W,e as O,i as P,j as k}from"./chunk-6RK5MU4O.js";import{F as S}from"./chunk-LT3W5FMN.js";import{$a as p,$b as u,Db as e,Eb as t,Fb as a,Jb as y,Nb as g,Ob as M,Xb as n,_b as h,ab as s,ac as f,cc as E,fa as _,qa as w,ra as v,rb as x,tb as b,yb as C}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function B(m,l){if(m&1){let z=y();e(0,"button",11),g("click",function(){w(z);let o=M();return v(o.deleteWidgetClick())}),n(1,"Delete widget"),t()}}var U=(()=>{let l=class l{constructor(c,o,i,d,r){this.ms=c,this.dbs=o,this.eds=i,this.mds=d,this.sbs=r,this.invalid=[],this.model={edKey:"ed"+new Date().getTime(),dashboard:this.dbs.current.value,name:"",title:"",dataSource:"",type:"pivot",dataLink:"",dataProperties:[],dependents:[],controls:[],mdx:"",x:0,y:0,rows:4,cols:4}}ngOnInit(){this.eds.resetSavedState(),this.widget?(this.model=this.widget,this.widget.oldWidget=JSON.parse(JSON.stringify(this.widget)),this.eds.updateEditedWidget({widget:this.model}),this.eds.resetSavedState()):this.initializeNewWidget()}ngOnDestroy(){this.eds.cancelEditing()}onCancelEditing(){this.close()}onSave(){this.eds.save(this.model)}onTypeAndDataSourceClick(){this.eds.navigateDataSourceAndType(this.model)}updateWidget(){this.eds.updateEditedWidget({widget:this.model})}deleteWidgetClick(){this.eds.deleteWidget(this.model)}close(){this.sbs.hide()}initializeNewWidget(){let c=this.dbs.getWidgets().filter(o=>o.type!==S.const.emptyWidgetClass).length+1;this.model.name=`Widget${c}`,this.eds.onNewWidget.emit(this.model)}};l.\u0275fac=function(o){return new(o||l)(s(N),s(T),s(j),s(D),s(F))},l.\u0275cmp=_({type:l,selectors:[["dsw-widget-editor"]],inputs:{widget:"widget",invalid:"invalid"},standalone:!0,features:[E],decls:37,vars:5,consts:[[3,"cancel","apply","isWidgetEditorWarning"],[1,"container"],[1,"headline"],[3,"ngModelChange","change","required","ngModel"],[3,"ngModelChange","change","ngModel"],[1,"navigation"],[1,"btn-section",3,"click"],["src","assets/img/icons/icon-next-blue.svg"],["title","Not implemented yet",1,"btn-section","disabled"],[1,"footer"],[1,"btn","btn-white"],[1,"btn","btn-white",3,"click"]],template:function(o,i){o&1&&(e(0,"dsw-sidebar-actions",0),g("cancel",function(){return i.onCancelEditing()})("apply",function(){return i.onSave()}),n(1,` Add widget `),t(),e(2,"div",1)(3,"div",2),n(4," General settings "),t(),e(5,"label"),n(6,"Name"),t(),e(7,"dsw-input",3),f("ngModelChange",function(r){return u(i.model.name,r)||(i.model.name=r),r}),g("change",function(){return i.updateWidget()}),t(),e(8,"label"),n(9,"Title"),t(),e(10,"dsw-input",4),f("ngModelChange",function(r){return u(i.model.title,r)||(i.model.title=r),r}),g("change",function(){return i.updateWidget()}),t(),e(11,"div",5)(12,"button",6),g("click",function(){return i.onTypeAndDataSourceClick()}),n(13," Type and data source "),a(14,"img",7),t(),e(15,"button",8),n(16," Widget settings "),a(17,"img",7),t(),e(18,"button",8),n(19," Controls "),a(20,"img",7),t(),e(21,"button",8),n(22," Data properties "),a(23,"img",7),t(),e(24,"div",2),n(25," Diagram and pivot table "),t(),e(26,"button",8),n(27," Table settings "),a(28,"img",7),t(),e(29,"button",8),n(30," Diagram settings "),a(31,"img",7),t(),e(32,"button",8),n(33," Diagram legend "),a(34,"img",7),t()()(),e(35,"div",9),x(36,B,2,0,"button",10),t()),o&2&&(b("isWidgetEditorWarning",!0),p(7),b("required",i.invalid.includes("name")),h("ngModel",i.model.name),p(3),h("ngModel",i.model.title),p(26),C(i.widget?36:-1))},dependencies:[I,A,k,W,P,O],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}"],changeDetection:0});let m=l;return m})();export{U as WidgetEditorComponent}; diff --git a/dist/chunk-F5IDLFZU.js b/dist/chunk-2JNMJA37.js similarity index 93% rename from dist/chunk-F5IDLFZU.js rename to dist/chunk-2JNMJA37.js index 56f52a7..29d2da6 100644 --- a/dist/chunk-F5IDLFZU.js +++ b/dist/chunk-2JNMJA37.js @@ -1 +1 @@ -import{a as D}from"./chunk-V6EVLSKF.js";import{a as A}from"./chunk-EAEBZZLM.js";import{a as T}from"./chunk-RNWIIYZZ.js";import{a as I}from"./chunk-SUAWKU6Z.js";import{D as O,F as E,H as P,t as S,u as y,w as F}from"./chunk-B2BNZRWN.js";import{$a as g,Db as n,Eb as o,Fb as r,Jb as v,Nb as d,Ob as _,Xb as c,Zb as x,ab as a,cc as C,fa as w,hc as k,ic as M,qa as p,ra as b,rb as u,yb as f}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function V(s,l){if(s&1){let h=v();n(0,"li",5),d("click",function(){p(h);let t=_();return b(t.gotoZenDeepSee())}),r(1,"img",10),c(2),k(3,"i18n"),o()}s&2&&(g(2),x(" ",M(3,1,"gotoDeepSee")," "))}function L(s,l){if(s&1){let h=v();n(0,"li",2),d("click",function(){p(h);let t=_();return b(t.editDashboard())}),r(1,"img",11),c(2," Edit dashboard "),o()}}var U=(()=>{let l=class l{constructor(e,t,i,m,H,j,B){this.router=e,this.route=t,this.ds=i,this.ms=m,this.modal=H,this.sbs=j,this.hs=B,this.isHome=!1,this.version=E.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(e=>{e instanceof S&&this.checkHome()})}ngOnDestroy(){this.subOnRouteChange?.unsubscribe()}checkHome(){let e=this.router.url.split("/");this.isHome=!e[e.length-1]?.endsWith(".dashboard")}editDashboard(){this.hs.resetSearch(),this.ms.onEditDashboard.emit(!0)}logout(){this.ds.signOut()}showNamespaceSelector(){this.sbs.showComponent({component:import("./chunk-UYNSFEXL.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-IWE2BDK3.js")})}showAboutDialog(){this.modal.show({title:"DeepSeeWeb v."+this.version,component:import("./chunk-4JGIKPPC.js"),closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-G2SG73M6.js")})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}};l.\u0275fac=function(t){return new(t||l)(a(F),a(y),a(P),a(A),a(T),a(I),a(D))},l.\u0275cmp=w({type:l,selectors:[["dsw-menu"]],standalone:!0,features:[C],decls:21,vars:3,consts:[[1,"only-sm"],[1,"divider","only-sm"],[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/icon-namespace.svg"],[1,"only-sm",3,"click"],["src","assets/img/icons/language-24px.svg"],["src","assets/img/icons/icon-info.svg"],["src","assets/img/icons/icon-logout.svg"],[1,"version"],["src","assets/img/icons/icon-navigate.svg"],["src","assets/img/icons/icon-edit.svg"]],template:function(t,i){t&1&&(n(0,"ul"),u(1,V,4,3,"li",0),r(2,"div",1),u(3,L,3,0,"li"),n(4,"li",2),d("click",function(){return i.showSettingsMenu()}),r(5,"img",3),c(6," Settings "),o(),n(7,"li",2),d("click",function(){return i.showNamespaceSelector()}),r(8,"img",4),c(9," Namespace "),o(),n(10,"li",5),d("click",function(){return i.showLanguageSelector()}),r(11,"img",6),c(12," Language "),o(),n(13,"li",2),d("click",function(){return i.showAboutDialog()}),r(14,"img",7),c(15," About "),o(),n(16,"li",5),d("click",function(){return i.logout()}),r(17,"img",8),c(18," Logout "),o()(),n(19,"span",9),c(20),o()),t&2&&(g(),f(i.isHome?-1:1),g(2),f(i.isHome?3:-1),g(17),x("v.",i.version,""))},dependencies:[O],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let s=l;return s})();export{U as MenuComponent}; +import{a as D}from"./chunk-V6EVLSKF.js";import{a as A}from"./chunk-EAEBZZLM.js";import{a as T}from"./chunk-RNWIIYZZ.js";import{a as I}from"./chunk-SUAWKU6Z.js";import{D as O,F as E,H as P,t as S,u as y,w as F}from"./chunk-LT3W5FMN.js";import{$a as g,Db as n,Eb as o,Fb as r,Jb as v,Nb as d,Ob as _,Xb as c,Zb as x,ab as a,cc as C,fa as w,hc as k,ic as M,qa as p,ra as b,rb as u,yb as f}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function V(s,l){if(s&1){let h=v();n(0,"li",5),d("click",function(){p(h);let t=_();return b(t.gotoZenDeepSee())}),r(1,"img",10),c(2),k(3,"i18n"),o()}s&2&&(g(2),x(" ",M(3,1,"gotoDeepSee")," "))}function L(s,l){if(s&1){let h=v();n(0,"li",2),d("click",function(){p(h);let t=_();return b(t.editDashboard())}),r(1,"img",11),c(2," Edit dashboard "),o()}}var U=(()=>{let l=class l{constructor(e,t,i,m,H,j,B){this.router=e,this.route=t,this.ds=i,this.ms=m,this.modal=H,this.sbs=j,this.hs=B,this.isHome=!1,this.version=E.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(e=>{e instanceof S&&this.checkHome()})}ngOnDestroy(){this.subOnRouteChange?.unsubscribe()}checkHome(){let e=this.router.url.split("/");this.isHome=!e[e.length-1]?.endsWith(".dashboard")}editDashboard(){this.hs.resetSearch(),this.ms.onEditDashboard.emit(!0)}logout(){this.ds.signOut()}showNamespaceSelector(){this.sbs.showComponent({component:import("./chunk-CSWYKUHK.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-KPBK2R3N.js")})}showAboutDialog(){this.modal.show({title:"DeepSeeWeb v."+this.version,component:import("./chunk-TDEEXQXM.js"),closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-XMI7PNZQ.js")})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}};l.\u0275fac=function(t){return new(t||l)(a(F),a(y),a(P),a(A),a(T),a(I),a(D))},l.\u0275cmp=w({type:l,selectors:[["dsw-menu"]],standalone:!0,features:[C],decls:21,vars:3,consts:[[1,"only-sm"],[1,"divider","only-sm"],[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/icon-namespace.svg"],[1,"only-sm",3,"click"],["src","assets/img/icons/language-24px.svg"],["src","assets/img/icons/icon-info.svg"],["src","assets/img/icons/icon-logout.svg"],[1,"version"],["src","assets/img/icons/icon-navigate.svg"],["src","assets/img/icons/icon-edit.svg"]],template:function(t,i){t&1&&(n(0,"ul"),u(1,V,4,3,"li",0),r(2,"div",1),u(3,L,3,0,"li"),n(4,"li",2),d("click",function(){return i.showSettingsMenu()}),r(5,"img",3),c(6," Settings "),o(),n(7,"li",2),d("click",function(){return i.showNamespaceSelector()}),r(8,"img",4),c(9," Namespace "),o(),n(10,"li",5),d("click",function(){return i.showLanguageSelector()}),r(11,"img",6),c(12," Language "),o(),n(13,"li",2),d("click",function(){return i.showAboutDialog()}),r(14,"img",7),c(15," About "),o(),n(16,"li",5),d("click",function(){return i.logout()}),r(17,"img",8),c(18," Logout "),o()(),n(19,"span",9),c(20),o()),t&2&&(g(),f(i.isHome?-1:1),g(2),f(i.isHome?3:-1),g(17),x("v.",i.version,""))},dependencies:[O],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let s=l;return s})();export{U as MenuComponent}; diff --git a/dist/chunk-4KFWLVKI.js b/dist/chunk-42QBCWN2.js similarity index 99% rename from dist/chunk-4KFWLVKI.js rename to dist/chunk-42QBCWN2.js index a170f9d..2cd3a4a 100644 --- a/dist/chunk-4KFWLVKI.js +++ b/dist/chunk-42QBCWN2.js @@ -1 +1 @@ -import{H as K,f as H,x as J}from"./chunk-B2BNZRWN.js";import{$a as o,Ba as $,Bb as x,Bc as B,Cb as w,Da as M,Db as h,Eb as d,F as A,Fb as T,Ib as R,Jb as f,Nb as m,Ob as l,Tb as D,Ub as E,Vb as S,Wb as Q,Xb as O,Zb as k,ab as g,cc as V,dc as I,ec as N,fa as F,gb as j,kc as W,pa as z,qa as u,ra as p,rb as b,tb as v,vb as y,xb as P,y as L,yb as _}from"./chunk-ZKAUCJHV.js";import{h as q}from"./chunk-DEPBX7UX.js";var Y=["elements"],ee=i=>({tab:i,edit:null});function te(i,r){if(i&1){let c=f();h(0,"div",4,0),m("click",function(){let t=u(c).$implicit,n=l();return p(n.tabClick(t))}),O(2),d()}if(i&2){let c=r.$implicit,e=l();y("hidden-offscreen",c.hidden)("active",e.currentTab===c),o(2),k(" ",c.text," ")}}function ie(i,r){if(i&1){let c=f();h(0,"div",5),m("click",function(t){u(c);let n=l();return p(n.onOpenTabsClick(t))}),T(1,"img",6),d()}}function ne(i,r){if(i&1){let c=f();h(0,"div",8),m("click",function(){let t=u(c).$implicit,n=l(2);return p(n.tabClick(t))}),O(1),d()}if(i&2){let c=r.$implicit,e=l(2);y("active",e.currentTab===c),v("routerLink","./")("queryParams",e.useQuery?I(5,ee,c.id):void 0),o(),k(" ",c.text," ")}}function re(i,r){if(i&1&&(h(0,"div",3),x(1,ne,2,7,"div",7,P().trackByIdentity,!0),d()),i&2){let c=l();o(),w(c.hiddenTabs)}}var ce=37;var U=(()=>{let r=class r{constructor(e,t,n){this.el=e,this.cd=t,this.zone=n,this.tabs=[],this.useQuery=!1,this.currentTabChange=new M,this.isMoreButtonVisible=!1,this.isOpened=!1,this.trackByIdentity=(a,s)=>s.id,this.zone.runOutsideAngular(()=>{this.subClick=L(window,"click").subscribe(a=>{let s=a.target;for(;s;){if(s.classList.contains("btn-more"))return;if(!s.parentElement)break;s=s.parentElement}this.isOpened=!1}),this.subResize=L(window,"resize").pipe(A(50)).subscribe(a=>{this.recalcTabsVisibility(!0)})})}get hiddenTabs(){return this.tabs.filter(e=>e.hidden)}tabClick(e){this.currentTab=e,this.currentTabChange.emit(this.currentTab)}scrollToTabs(){this.el.nativeElement.scrollIntoView()}ngAfterViewInit(){this.recalcTabsVisibility()}ngOnChanges(e){let t=e.tabs;if(t.previousValue!==t.currentValue||t.previousValue?.length!==t.currentValue?.length){if(this.isArraysEqual(t.previousValue,t.currentValue))return;setTimeout(()=>{this.recalcTabsVisibility()})}}recalcTabsVisibility(e=!1){if(!this.elements)return;let t=this.el.nativeElement.offsetWidth,n=this.elements.toArray().map(s=>s.nativeElement),a=0;this.isMoreButtonVisible=!1,n.forEach((s,C)=>{let Z=C===n.length-1,G=s.getBoundingClientRect();a+=G.width,a>t+8-(Z?0:ce)?(this.tabs[C].hidden=!0,this.isMoreButtonVisible=!0):this.tabs[C].hidden=!1}),e&&this.cd.detectChanges()}ngOnDestroy(){this.subClick&&this.subClick.unsubscribe(),this.subResize&&this.subResize.unsubscribe()}onOpenTabsClick(e){this.isOpened=!this.isOpened}isArraysEqual(e,t){if(!e||!t||e.length!==t.length)return!1;for(let n=0;n img[_ngcontent-%COMP%]{height:7px;opacity:.4}.dropdown[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;background-color:#fff;display:flex;flex-direction:column;box-shadow:0 0 10px #0000001f;border-radius:4px;z-index:1;overflow:hidden}.dropdown[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:6px 16px}.dropdown[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{background-color:var(--cl-bg);color:var(--cl-input-text)}'],changeDetection:0});let i=r;return i})();var ae=["table"],oe=i=>({data:i,level:0}),le=(i,r)=>({data:i,level:r});function se(i,r){i&1&&T(0,"img",9)}function de(i,r){if(i&1){let c=f();h(0,"div",8),m("click",function(){let t=u(c).$implicit,n=l().level,a=l();return p(a.selectRow(t,n))}),b(1,se,1,0,"img",9),O(2),d()}if(i&2){let c=r.$implicit,e=l().level,t=l();y("selected",t.selected[e]===c),o(),_(c.children!=null&&c.children.length?1:-1),o(),k(" ",c.name," ")}}function he(i,r){if(i&1&&x(0,de,3,4,"div",7,P().trackByIndex,!0),i&2){let c=r.data;w(c)}}function be(i,r){i&1&&R(0)}function ue(i,r){i&1&&R(0)}function pe(i,r){if(i&1&&(h(0,"div"),b(1,ue,1,0,"ng-container",5),d()),i&2){let c=r.$implicit,e=r.$index;l();let t=Q(3);o(),v("ngTemplateOutlet",t)("ngTemplateOutletContext",N(2,le,c.children,e+1))}}function ge(i,r){i&1&&(h(0,"div",6),T(1,"img",10),d())}var Be=(()=>{let r=class r{constructor(e,t){this.ds=e,this.cd=t,this.select=new M,this.isLoading=!0,this.tabs=[{id:"pivot",text:"Pivot tables"},{id:"kpi",text:"KPI"},{id:"worksheets",text:"Worksheets"},{id:"metrics",text:"Metrics"}],this.currentTab=this.tabs[0],this.data=[],this.filteredData=[],this.selected=[],this.trackByIndex=(n,a)=>n}ngOnInit(){this.requestData(),this.subSearch=this._modal?.search.subscribe(e=>{this.applyFiltering(e)})}selectRow(e,t){if(!e.children){this.select.emit(e),this._modal?.close();return}this.selected[t]=e,this.selected.splice(t+1,this.selected.length-t),this.scrollToLast()}requestData(e){return q(this,null,function*(){e||(e=this.currentTab),this.isLoading=!0,this.ds.requestListOfDataSources(e.id).then(t=>{this.retrieveData(t)}).catch(t=>{console.error(t)}).finally(()=>{this.isLoading=!1,this.cd.detectChanges()})})}ngOnDestroy(){clearTimeout(this.scrollTimeout),this.subSearch?.unsubscribe()}retrieveData(e){this.data=e.children,this.selected=[],this.applyFiltering()}scrollToLast(){clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{let e=this.table.nativeElement,t=this.table.nativeElement.children[0].offsetWidth;e.scroll({left:this.selected.length*t,behavior:"smooth"})},10)}applyFiltering(e=""){if(e=e.toString(),e===""){this.filteredData=this.data,this.cd.detectChanges();return}this.selected=[],this.filteredData=JSON.parse(JSON.stringify(this.data)),this.filterItems(this.filteredData,e.toLowerCase()),this.scrollToLast(),this.cd.detectChanges()}filterItems(e,t){let n=[];return e.forEach(a=>{if(!(a.children?.length&&this.filterItems(a.children,t))&&!a.name.toLowerCase().includes(t)){n.push(a);return}}),n.forEach(a=>{e.splice(e.indexOf(a),1)}),!!e.length}};r.\u0275fac=function(t){return new(t||r)(g(K),g(B))},r.\u0275cmp=F({type:r,selectors:[["dsw-ds-sel-dialog"]],viewQuery:function(t,n){if(t&1&&D(ae,5),t&2){let a;E(a=S())&&(n.table=a.first)}},inputs:{_modal:"_modal"},outputs:{select:"select"},standalone:!0,features:[V],decls:11,vars:8,consts:[["items",""],["table",""],[1,"header"],[3,"currentTabChange","tabs","currentTab","useQuery"],[1,"table"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"dsw-spinner"],[1,"row",3,"selected"],[1,"row",3,"click"],["src","assets/img/widget-icons/folder-1.svg"],["src","assets/img/spinner.svg"]],template:function(t,n){if(t&1){let a=f();h(0,"section",2)(1,"dsw-tabs",3),m("currentTabChange",function(C){return u(a),p(n.requestData(C))}),d()(),b(2,he,2,0,"ng-template",null,0,W),h(4,"section",4,1)(6,"div"),b(7,be,1,0,"ng-container",5),d(),x(8,pe,2,5,"div",null,n.trackByIndex,!0),b(10,ge,2,0,"div",6),d()}if(t&2){let a=Q(3);o(),v("tabs",n.tabs)("currentTab",n.currentTab)("useQuery",!1),o(6),v("ngTemplateOutlet",a)("ngTemplateOutletContext",I(6,oe,n.filteredData)),o(),w(n.selected),o(2),_(n.isLoading?10:-1)}},dependencies:[U,H],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.header[_ngcontent-%COMP%]{flex-shrink:0}.table[_ngcontent-%COMP%]{position:relative;flex:1 1 100%;min-width:800px;min-height:0;display:flex;white-space:nowrap;overflow:hidden}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-shrink:0;flex-grow:1;flex-basis:25%;border-right:1px solid var(--cl-input-border);overflow:auto;min-width:25%;width:25%}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#ebebea}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background:#1c1d2066}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{position:sticky;left:0;z-index:2;background:#fff}.row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:5px 4px;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt);max-width:25em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}.row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}.row.selected[_ngcontent-%COMP%]{color:var(--cl-accent);background-color:var(--cl-sidebar-bg)}.row[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:18px;vertical-align:text-top;margin-right:2px}'],changeDetection:0});let i=r;return i})();export{Be as DataSourceSelectorDialog}; +import{H as K,f as H,x as J}from"./chunk-LT3W5FMN.js";import{$a as o,Ba as $,Bb as x,Bc as B,Cb as w,Da as M,Db as h,Eb as d,F as A,Fb as T,Ib as R,Jb as f,Nb as m,Ob as l,Tb as D,Ub as E,Vb as S,Wb as Q,Xb as O,Zb as k,ab as g,cc as V,dc as I,ec as N,fa as F,gb as j,kc as W,pa as z,qa as u,ra as p,rb as b,tb as v,vb as y,xb as P,y as L,yb as _}from"./chunk-ZKAUCJHV.js";import{h as q}from"./chunk-DEPBX7UX.js";var Y=["elements"],ee=i=>({tab:i,edit:null});function te(i,r){if(i&1){let c=f();h(0,"div",4,0),m("click",function(){let t=u(c).$implicit,n=l();return p(n.tabClick(t))}),O(2),d()}if(i&2){let c=r.$implicit,e=l();y("hidden-offscreen",c.hidden)("active",e.currentTab===c),o(2),k(" ",c.text," ")}}function ie(i,r){if(i&1){let c=f();h(0,"div",5),m("click",function(t){u(c);let n=l();return p(n.onOpenTabsClick(t))}),T(1,"img",6),d()}}function ne(i,r){if(i&1){let c=f();h(0,"div",8),m("click",function(){let t=u(c).$implicit,n=l(2);return p(n.tabClick(t))}),O(1),d()}if(i&2){let c=r.$implicit,e=l(2);y("active",e.currentTab===c),v("routerLink","./")("queryParams",e.useQuery?I(5,ee,c.id):void 0),o(),k(" ",c.text," ")}}function re(i,r){if(i&1&&(h(0,"div",3),x(1,ne,2,7,"div",7,P().trackByIdentity,!0),d()),i&2){let c=l();o(),w(c.hiddenTabs)}}var ce=37;var U=(()=>{let r=class r{constructor(e,t,n){this.el=e,this.cd=t,this.zone=n,this.tabs=[],this.useQuery=!1,this.currentTabChange=new M,this.isMoreButtonVisible=!1,this.isOpened=!1,this.trackByIdentity=(a,s)=>s.id,this.zone.runOutsideAngular(()=>{this.subClick=L(window,"click").subscribe(a=>{let s=a.target;for(;s;){if(s.classList.contains("btn-more"))return;if(!s.parentElement)break;s=s.parentElement}this.isOpened=!1}),this.subResize=L(window,"resize").pipe(A(50)).subscribe(a=>{this.recalcTabsVisibility(!0)})})}get hiddenTabs(){return this.tabs.filter(e=>e.hidden)}tabClick(e){this.currentTab=e,this.currentTabChange.emit(this.currentTab)}scrollToTabs(){this.el.nativeElement.scrollIntoView()}ngAfterViewInit(){this.recalcTabsVisibility()}ngOnChanges(e){let t=e.tabs;if(t.previousValue!==t.currentValue||t.previousValue?.length!==t.currentValue?.length){if(this.isArraysEqual(t.previousValue,t.currentValue))return;setTimeout(()=>{this.recalcTabsVisibility()})}}recalcTabsVisibility(e=!1){if(!this.elements)return;let t=this.el.nativeElement.offsetWidth,n=this.elements.toArray().map(s=>s.nativeElement),a=0;this.isMoreButtonVisible=!1,n.forEach((s,C)=>{let Z=C===n.length-1,G=s.getBoundingClientRect();a+=G.width,a>t+8-(Z?0:ce)?(this.tabs[C].hidden=!0,this.isMoreButtonVisible=!0):this.tabs[C].hidden=!1}),e&&this.cd.detectChanges()}ngOnDestroy(){this.subClick&&this.subClick.unsubscribe(),this.subResize&&this.subResize.unsubscribe()}onOpenTabsClick(e){this.isOpened=!this.isOpened}isArraysEqual(e,t){if(!e||!t||e.length!==t.length)return!1;for(let n=0;n img[_ngcontent-%COMP%]{height:7px;opacity:.4}.dropdown[_ngcontent-%COMP%]{position:absolute;top:calc(100% + 4px);right:0;background-color:#fff;display:flex;flex-direction:column;box-shadow:0 0 10px #0000001f;border-radius:4px;z-index:1;overflow:hidden}.dropdown[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:6px 16px}.dropdown[_ngcontent-%COMP%] > div.active[_ngcontent-%COMP%]{background-color:var(--cl-bg);color:var(--cl-input-text)}'],changeDetection:0});let i=r;return i})();var ae=["table"],oe=i=>({data:i,level:0}),le=(i,r)=>({data:i,level:r});function se(i,r){i&1&&T(0,"img",9)}function de(i,r){if(i&1){let c=f();h(0,"div",8),m("click",function(){let t=u(c).$implicit,n=l().level,a=l();return p(a.selectRow(t,n))}),b(1,se,1,0,"img",9),O(2),d()}if(i&2){let c=r.$implicit,e=l().level,t=l();y("selected",t.selected[e]===c),o(),_(c.children!=null&&c.children.length?1:-1),o(),k(" ",c.name," ")}}function he(i,r){if(i&1&&x(0,de,3,4,"div",7,P().trackByIndex,!0),i&2){let c=r.data;w(c)}}function be(i,r){i&1&&R(0)}function ue(i,r){i&1&&R(0)}function pe(i,r){if(i&1&&(h(0,"div"),b(1,ue,1,0,"ng-container",5),d()),i&2){let c=r.$implicit,e=r.$index;l();let t=Q(3);o(),v("ngTemplateOutlet",t)("ngTemplateOutletContext",N(2,le,c.children,e+1))}}function ge(i,r){i&1&&(h(0,"div",6),T(1,"img",10),d())}var Be=(()=>{let r=class r{constructor(e,t){this.ds=e,this.cd=t,this.select=new M,this.isLoading=!0,this.tabs=[{id:"pivot",text:"Pivot tables"},{id:"kpi",text:"KPI"},{id:"worksheets",text:"Worksheets"},{id:"metrics",text:"Metrics"}],this.currentTab=this.tabs[0],this.data=[],this.filteredData=[],this.selected=[],this.trackByIndex=(n,a)=>n}ngOnInit(){this.requestData(),this.subSearch=this._modal?.search.subscribe(e=>{this.applyFiltering(e)})}selectRow(e,t){if(!e.children){this.select.emit(e),this._modal?.close();return}this.selected[t]=e,this.selected.splice(t+1,this.selected.length-t),this.scrollToLast()}requestData(e){return q(this,null,function*(){e||(e=this.currentTab),this.isLoading=!0,this.ds.requestListOfDataSources(e.id).then(t=>{this.retrieveData(t)}).catch(t=>{console.error(t)}).finally(()=>{this.isLoading=!1,this.cd.detectChanges()})})}ngOnDestroy(){clearTimeout(this.scrollTimeout),this.subSearch?.unsubscribe()}retrieveData(e){this.data=e.children,this.selected=[],this.applyFiltering()}scrollToLast(){clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{let e=this.table.nativeElement,t=this.table.nativeElement.children[0].offsetWidth;e.scroll({left:this.selected.length*t,behavior:"smooth"})},10)}applyFiltering(e=""){if(e=e.toString(),e===""){this.filteredData=this.data,this.cd.detectChanges();return}this.selected=[],this.filteredData=JSON.parse(JSON.stringify(this.data)),this.filterItems(this.filteredData,e.toLowerCase()),this.scrollToLast(),this.cd.detectChanges()}filterItems(e,t){let n=[];return e.forEach(a=>{if(!(a.children?.length&&this.filterItems(a.children,t))&&!a.name.toLowerCase().includes(t)){n.push(a);return}}),n.forEach(a=>{e.splice(e.indexOf(a),1)}),!!e.length}};r.\u0275fac=function(t){return new(t||r)(g(K),g(B))},r.\u0275cmp=F({type:r,selectors:[["dsw-ds-sel-dialog"]],viewQuery:function(t,n){if(t&1&&D(ae,5),t&2){let a;E(a=S())&&(n.table=a.first)}},inputs:{_modal:"_modal"},outputs:{select:"select"},standalone:!0,features:[V],decls:11,vars:8,consts:[["items",""],["table",""],[1,"header"],[3,"currentTabChange","tabs","currentTab","useQuery"],[1,"table"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"dsw-spinner"],[1,"row",3,"selected"],[1,"row",3,"click"],["src","assets/img/widget-icons/folder-1.svg"],["src","assets/img/spinner.svg"]],template:function(t,n){if(t&1){let a=f();h(0,"section",2)(1,"dsw-tabs",3),m("currentTabChange",function(C){return u(a),p(n.requestData(C))}),d()(),b(2,he,2,0,"ng-template",null,0,W),h(4,"section",4,1)(6,"div"),b(7,be,1,0,"ng-container",5),d(),x(8,pe,2,5,"div",null,n.trackByIndex,!0),b(10,ge,2,0,"div",6),d()}if(t&2){let a=Q(3);o(),v("tabs",n.tabs)("currentTab",n.currentTab)("useQuery",!1),o(6),v("ngTemplateOutlet",a)("ngTemplateOutletContext",I(6,oe,n.filteredData)),o(),w(n.selected),o(2),_(n.isLoading?10:-1)}},dependencies:[U,H],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.header[_ngcontent-%COMP%]{flex-shrink:0}.table[_ngcontent-%COMP%]{position:relative;flex:1 1 100%;min-width:800px;min-height:0;display:flex;white-space:nowrap;overflow:hidden}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex-shrink:0;flex-grow:1;flex-basis:25%;border-right:1px solid var(--cl-input-border);overflow:auto;min-width:25%;width:25%}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#ebebea}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background:#1c1d2066}.table[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{position:sticky;left:0;z-index:2;background:#fff}.row[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;padding:5px 4px;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt);max-width:25em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;position:relative}.row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}.row.selected[_ngcontent-%COMP%]{color:var(--cl-accent);background-color:var(--cl-sidebar-bg)}.row[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:18px;vertical-align:text-top;margin-right:2px}'],changeDetection:0});let i=r;return i})();export{Be as DataSourceSelectorDialog}; diff --git a/dist/chunk-WYNQ5JHX.js b/dist/chunk-4E6RZBBM.js similarity index 98% rename from dist/chunk-WYNQ5JHX.js rename to dist/chunk-4E6RZBBM.js index d820f0c..60f4732 100644 --- a/dist/chunk-WYNQ5JHX.js +++ b/dist/chunk-4E6RZBBM.js @@ -1 +1 @@ -import{a as E,b as w}from"./chunk-7Z57W26K.js";import{E as F,H as S,I as b,J as D,u as I}from"./chunk-B2BNZRWN.js";import{Da as x,X as y,aa as h}from"./chunk-ZKAUCJHV.js";var P="%ZEN.Component.calendar",q=(()=>{let c=class c{constructor(e,r,i,t,s,l,n){this.route=e,this.us=r,this.ss=i,this.ds=t,this.bs=s,this.dbs=l,this.i18n=n,this.filtersChanged=!1,this.isFiltersOnToolbarExists=!1,this.items=[],this.onApplyFilter=new x,this.onFiltersChanged=new x,this.dashboard=""}init(e,r){this.filtersChanged=!0,this.dashboard=r,this.items=[],this.isFiltersOnToolbarExists=!1;for(let i=0;il.path===s[0])||-1,t.toIdx=t.values.findIndex(l=>l.path===s[1])||-1,t.fromIdx===-1&&(t.values?.push({path:s[0],name:s[0].replace("&[","").replace("]","")}),t.fromIdx=t.values.length-1),t.values[t.fromIdx].checked=!0,t.toIdx===-1&&(t.values.push({path:s[1],name:s[1].replace("&[","").replace("]","")}),t.toIdx=t.values.length-1),t.values[t.toIdx].checked=!0,t.isInterval=!0}if(t.targetArray=[],t.target!=="*"&&t.target!==""&&(t.targetArray=t.target?.split(",").concat(["emptyWidget"])),t.sourceArray=[],t.source!=="*"&&t.source!==""&&t.location!=="dashboard"&&(t.sourceArray=t.source?.split(",")),(t.source===""||t.location==="dashboard")&&(this.isFiltersOnToolbarExists=!0),t.label){let s=t.label.match(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g);if(s&&s.length!==0){let l=s[0].substring(2,s[0].length-2);t.additionalParams=l.toLowerCase().trim().split(","),t.additionalParams.indexOf("inverseorder")!==-1&&(t.values=t.values?.reverse()),t.additionalParams.indexOf("ignorenow")!==-1&&(t.values=t.values?.filter(n=>n.path.toLowerCase()!=="&[now]"))}t.label=t.label.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g,"")}this.route.snapshot.queryParamMap.get("nofilters")==="1"&&(t.value=""),t.valueDisplay=this.findDisplayText(t)}this.loadFiltersFromSettings(),this.loadFiltersFromUrl()}getFiltersShareUrl(){let e=window.location.href.split("?")[0],r=e.split("#")[1],i=this.getFiltersUrlString(),t="FILTERS=TARGET:*;FILTER:"+i;return i&&(r&&r.indexOf("?")!==-1?e+="&"+t:e+="?"+t),e}getFiltersUrlString(e,r=!1,i=".",t="~"){let s=[],l=e?this.getAffectsFilters(e):this.items;r&&l&&(l=l.filter(n=>n.target!=="*"));for(let n=0;n{a.split("=")[0].toLowerCase()==="filters"&&(i=a.split("=")[1])});try{let a=decodeURIComponent(i);this.isBase64(a)&&(i=atob(a))}catch{}if(!i){let a=Object.keys(this.route.snapshot.queryParams)[0];if(!a||(i=a.split("FILTERS=")[1],!i))return}let t=i.split(";"),s="",l="";for(let a=0;aa.targetArray?.indexOf(s)!==-1||a.target===s||a.target==="*"):n=this.items.slice(),n.forEach((a,o)=>{let p=decodeURIComponent(l).split("~");for(let d=0;dm.path===T),a.toIdx=a.values.findIndex(m=>m.path===A),a.isInterval=!0}else a.value="&"+u.split(".&")[1]}}a.valueDisplay=this.findDisplayText(a)})}getClickFilterTarget(e){let r=[];for(let i=0;ir.target==="*"||r.target===e||r.targetArray?.indexOf(e)!==-1)}findDisplayText(e){if(e.value===""||e.value===void 0)return"";let r=e.value,i=!1;if(typeof r=="string"&&(i=r.toString().toUpperCase().endsWith(".%NOT")),i&&(r=r.toString().substr(0,r.toString().length-5)),e.isDate)return this.findDateText(e);e.value=r;let t=e.value.toString().split("|"),s=[];for(let l=0;l1&&t.includes(e.values[l].path))&&(e.values[l].checked=!0,e.values[l].default=!0,e.defaultExclude=i,e.isExclude=i,s.push(e.values[l].name.toString()));return(e.isExclude?"Not ":"")+s.join(",")}getWidgetModelFilters(e){let r=[];for(let i=0;i({targetProperty:n.targetProperty,value:n.value,isExclude:n.isExclude,isInterval:n.isInterval,fromIdx:n.fromIdx,toIdx:n.toIdx,valueDisplay:n.valueDisplay})),l=this.ss.getWidgetsSettings(this.dashboard);s.length?l._filters=s:delete l._filters,this.ss.setWidgetsSettings(l,this.dashboard)}getFilter(e){if(this.items[e])return this.items[e]}clear(){this.items=[]}removeParameterFromUrl(e,r){return e.replace(new RegExp("[?&]"+r+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+r+"=[^&]*&"),"$1")}isBase64(e){try{return btoa(atob(e))===e}catch{return!1}}loadFiltersFromSettings(){if(this.route.snapshot.queryParamMap.get("nofilters")==="1"||this.us.isEmbedded()||this.ss.getAppSettings()?.isSaveFilters===!1)return;let e=!1,r=this.ss.getWidgetsSettings(this.dashboard);if(r._filters)for(let i=0;il.targetProperty===t.targetProperty)[0];if(s){if(s.value=t.value,s.isExclude=t.isExclude,s.isInterval=t.isInterval,s.isInterval)s.fromIdx=t.fromIdx,s.toIdx=t.toIdx,s.isDate?(s.valueDisplay=t.valueDisplay,s.values=t.value.toString().split("|").map(l=>({path:l,checked:!0}))):s.valueDisplay=s.values?.[s.fromIdx]?.name+":"+s.values?.[s.toIdx]?.name;else{let l=t.value.toString().split("|");s.values?.forEach(n=>{l.indexOf(n.path.toString())!==-1&&(n.checked=!0)}),this._addSavedFilterToFilterList(t,s),t.valueDisplay&&(s.valueDisplay=t.valueDisplay.trim()),s.valueDisplay||(s.valueDisplay=t.value.toString().split("|").map(n=>{let a=n.indexOf(".%NOT")!==-1;a&&(n=n.replace(".%NOT",""));let o=s.values?.find(d=>d.path==n),p="";return o&&o.name&&(p=o.name.toString()),(a?this.i18n.get("not")+" ":"")+p}).join(","))}e=!0}}}updateFiltersParameterInURL(){if(!this.us.isEmbedded())return;let e=this.route.snapshot.queryParamMap.get("widget")||-1;if(e===-1)return;let r=this.dbs.getAllWidgets()[parseInt(e,10)],i=r?.name,t="TARGET:*;FILTER:"+this.getFiltersUrlString(i,!0);this.ds.router.navigate([],{relativeTo:this.route,queryParams:{FILTERS:t},queryParamsHandling:"merge"});let s={type:"filter",index:this.route.snapshot.queryParamMap.get("widget"),widget:r,filters:t};window.parent&&window.parent.postMessage(s,"*");try{window.parent.dsw?.onFilter&&window.parent.dsw.onFilter(s)}catch(l){console.error(l)}}_addSavedFilterToFilterList(e,r){let i=e.value.toString().split("|");if(!i.length||!e.valueDisplay)return;let t=e.valueDisplay.toString().split(",");i.forEach((s,l)=>{r.values.some(n=>n.path===s||!isNaN(n.path)&&parseInt(s,10)===n.path)||r.values.push({name:t[l],path:s,checked:!0,_saved:!0})})}initDateFilter(e){e.isInterval=!0,e.value=e.value.toString().replace(":","|");let r=e.value.toString().split("|");e.values||(e.value=[]),e.values.forEach(i=>i.checked=!1),e.fromIdx=e.values.findIndex(i=>i.path===r[0]),e.fromIdx===-1&&(e.values.push({path:r[0]}),e.fromIdx=e.values.length-1),e.values[e.fromIdx].checked=!0,e.toIdx=e.values.findIndex(i=>i.path===r[1]),e.toIdx===-1&&(e.values.push({path:r[1]}),e.toIdx=e.values.length-1),e.values[e.toIdx].checked=!0}findDateText(e){return(e.value||"").toString().split("|").map(i=>i.replace("&[","").replace("]","")).join(":")}checkForExclude(e){if(e.isExclude=(e.value??"").toString().toLowerCase().startsWith("%not"),!e.isExclude)return;let r=e.value.split(" ")[1];if(!r)return;let i=e.values?.find(t=>t.path===r);i&&(e.value=i.path+".%NOT")}};c.\u0275fac=function(r){return new(r||c)(h(I),h(b),h(D),h(S),h(E),h(w),h(F))},c.\u0275prov=y({token:c,factory:c.\u0275fac,providedIn:"root"});let f=c;return f})();export{q as a}; +import{a as E,b as w}from"./chunk-ZXTET2VA.js";import{E as F,H as S,I as b,J as D,u as I}from"./chunk-LT3W5FMN.js";import{Da as x,X as y,aa as h}from"./chunk-ZKAUCJHV.js";var P="%ZEN.Component.calendar",q=(()=>{let c=class c{constructor(e,r,i,t,s,l,n){this.route=e,this.us=r,this.ss=i,this.ds=t,this.bs=s,this.dbs=l,this.i18n=n,this.filtersChanged=!1,this.isFiltersOnToolbarExists=!1,this.items=[],this.onApplyFilter=new x,this.onFiltersChanged=new x,this.dashboard=""}init(e,r){this.filtersChanged=!0,this.dashboard=r,this.items=[],this.isFiltersOnToolbarExists=!1;for(let i=0;il.path===s[0])||-1,t.toIdx=t.values.findIndex(l=>l.path===s[1])||-1,t.fromIdx===-1&&(t.values?.push({path:s[0],name:s[0].replace("&[","").replace("]","")}),t.fromIdx=t.values.length-1),t.values[t.fromIdx].checked=!0,t.toIdx===-1&&(t.values.push({path:s[1],name:s[1].replace("&[","").replace("]","")}),t.toIdx=t.values.length-1),t.values[t.toIdx].checked=!0,t.isInterval=!0}if(t.targetArray=[],t.target!=="*"&&t.target!==""&&(t.targetArray=t.target?.split(",").concat(["emptyWidget"])),t.sourceArray=[],t.source!=="*"&&t.source!==""&&t.location!=="dashboard"&&(t.sourceArray=t.source?.split(",")),(t.source===""||t.location==="dashboard")&&(this.isFiltersOnToolbarExists=!0),t.label){let s=t.label.match(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g);if(s&&s.length!==0){let l=s[0].substring(2,s[0].length-2);t.additionalParams=l.toLowerCase().trim().split(","),t.additionalParams.indexOf("inverseorder")!==-1&&(t.values=t.values?.reverse()),t.additionalParams.indexOf("ignorenow")!==-1&&(t.values=t.values?.filter(n=>n.path.toLowerCase()!=="&[now]"))}t.label=t.label.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(\/\/.*)/g,"")}this.route.snapshot.queryParamMap.get("nofilters")==="1"&&(t.value=""),t.valueDisplay=this.findDisplayText(t)}this.loadFiltersFromSettings(),this.loadFiltersFromUrl()}getFiltersShareUrl(){let e=window.location.href.split("?")[0],r=e.split("#")[1],i=this.getFiltersUrlString(),t="FILTERS=TARGET:*;FILTER:"+i;return i&&(r&&r.indexOf("?")!==-1?e+="&"+t:e+="?"+t),e}getFiltersUrlString(e,r=!1,i=".",t="~"){let s=[],l=e?this.getAffectsFilters(e):this.items;r&&l&&(l=l.filter(n=>n.target!=="*"));for(let n=0;n{a.split("=")[0].toLowerCase()==="filters"&&(i=a.split("=")[1])});try{let a=decodeURIComponent(i);this.isBase64(a)&&(i=atob(a))}catch{}if(!i){let a=Object.keys(this.route.snapshot.queryParams)[0];if(!a||(i=a.split("FILTERS=")[1],!i))return}let t=i.split(";"),s="",l="";for(let a=0;aa.targetArray?.indexOf(s)!==-1||a.target===s||a.target==="*"):n=this.items.slice(),n.forEach((a,o)=>{let p=decodeURIComponent(l).split("~");for(let d=0;dm.path===T),a.toIdx=a.values.findIndex(m=>m.path===A),a.isInterval=!0}else a.value="&"+u.split(".&")[1]}}a.valueDisplay=this.findDisplayText(a)})}getClickFilterTarget(e){let r=[];for(let i=0;ir.target==="*"||r.target===e||r.targetArray?.indexOf(e)!==-1)}findDisplayText(e){if(e.value===""||e.value===void 0)return"";let r=e.value,i=!1;if(typeof r=="string"&&(i=r.toString().toUpperCase().endsWith(".%NOT")),i&&(r=r.toString().substr(0,r.toString().length-5)),e.isDate)return this.findDateText(e);e.value=r;let t=e.value.toString().split("|"),s=[];for(let l=0;l1&&t.includes(e.values[l].path))&&(e.values[l].checked=!0,e.values[l].default=!0,e.defaultExclude=i,e.isExclude=i,s.push(e.values[l].name.toString()));return(e.isExclude?"Not ":"")+s.join(",")}getWidgetModelFilters(e){let r=[];for(let i=0;i({targetProperty:n.targetProperty,value:n.value,isExclude:n.isExclude,isInterval:n.isInterval,fromIdx:n.fromIdx,toIdx:n.toIdx,valueDisplay:n.valueDisplay})),l=this.ss.getWidgetsSettings(this.dashboard);s.length?l._filters=s:delete l._filters,this.ss.setWidgetsSettings(l,this.dashboard)}getFilter(e){if(this.items[e])return this.items[e]}clear(){this.items=[]}removeParameterFromUrl(e,r){return e.replace(new RegExp("[?&]"+r+"=[^&#]*(#.*)?$"),"$1").replace(new RegExp("([?&])"+r+"=[^&]*&"),"$1")}isBase64(e){try{return btoa(atob(e))===e}catch{return!1}}loadFiltersFromSettings(){if(this.route.snapshot.queryParamMap.get("nofilters")==="1"||this.us.isEmbedded()||this.ss.getAppSettings()?.isSaveFilters===!1)return;let e=!1,r=this.ss.getWidgetsSettings(this.dashboard);if(r._filters)for(let i=0;il.targetProperty===t.targetProperty)[0];if(s){if(s.value=t.value,s.isExclude=t.isExclude,s.isInterval=t.isInterval,s.isInterval)s.fromIdx=t.fromIdx,s.toIdx=t.toIdx,s.isDate?(s.valueDisplay=t.valueDisplay,s.values=t.value.toString().split("|").map(l=>({path:l,checked:!0}))):s.valueDisplay=s.values?.[s.fromIdx]?.name+":"+s.values?.[s.toIdx]?.name;else{let l=t.value.toString().split("|");s.values?.forEach(n=>{l.indexOf(n.path.toString())!==-1&&(n.checked=!0)}),this._addSavedFilterToFilterList(t,s),t.valueDisplay&&(s.valueDisplay=t.valueDisplay.trim()),s.valueDisplay||(s.valueDisplay=t.value.toString().split("|").map(n=>{let a=n.indexOf(".%NOT")!==-1;a&&(n=n.replace(".%NOT",""));let o=s.values?.find(d=>d.path==n),p="";return o&&o.name&&(p=o.name.toString()),(a?this.i18n.get("not")+" ":"")+p}).join(","))}e=!0}}}updateFiltersParameterInURL(){if(!this.us.isEmbedded())return;let e=this.route.snapshot.queryParamMap.get("widget")||-1;if(e===-1)return;let r=this.dbs.getAllWidgets()[parseInt(e,10)],i=r?.name,t="TARGET:*;FILTER:"+this.getFiltersUrlString(i,!0);this.ds.router.navigate([],{relativeTo:this.route,queryParams:{FILTERS:t},queryParamsHandling:"merge"});let s={type:"filter",index:this.route.snapshot.queryParamMap.get("widget"),widget:r,filters:t};window.parent&&window.parent.postMessage(s,"*");try{window.parent.dsw?.onFilter&&window.parent.dsw.onFilter(s)}catch(l){console.error(l)}}_addSavedFilterToFilterList(e,r){let i=e.value.toString().split("|");if(!i.length||!e.valueDisplay)return;let t=e.valueDisplay.toString().split(",");i.forEach((s,l)=>{r.values.some(n=>n.path===s||!isNaN(n.path)&&parseInt(s,10)===n.path)||r.values.push({name:t[l],path:s,checked:!0,_saved:!0})})}initDateFilter(e){e.isInterval=!0,e.value=e.value.toString().replace(":","|");let r=e.value.toString().split("|");e.values||(e.value=[]),e.values.forEach(i=>i.checked=!1),e.fromIdx=e.values.findIndex(i=>i.path===r[0]),e.fromIdx===-1&&(e.values.push({path:r[0]}),e.fromIdx=e.values.length-1),e.values[e.fromIdx].checked=!0,e.toIdx=e.values.findIndex(i=>i.path===r[1]),e.toIdx===-1&&(e.values.push({path:r[1]}),e.toIdx=e.values.length-1),e.values[e.toIdx].checked=!0}findDateText(e){return(e.value||"").toString().split("|").map(i=>i.replace("&[","").replace("]","")).join(":")}checkForExclude(e){if(e.isExclude=(e.value??"").toString().toLowerCase().startsWith("%not"),!e.isExclude)return;let r=e.value.split(" ")[1];if(!r)return;let i=e.values?.find(t=>t.path===r);i&&(e.value=i.path+".%NOT")}};c.\u0275fac=function(r){return new(r||c)(h(I),h(b),h(D),h(S),h(E),h(w),h(F))},c.\u0275prov=y({token:c,factory:c.\u0275fac,providedIn:"root"});let f=c;return f})();export{q as a}; diff --git a/dist/chunk-2Q4ZQRSR.js b/dist/chunk-5IGE6P55.js similarity index 97% rename from dist/chunk-2Q4ZQRSR.js rename to dist/chunk-5IGE6P55.js index 0c12cd6..27a9587 100644 --- a/dist/chunk-2Q4ZQRSR.js +++ b/dist/chunk-5IGE6P55.js @@ -1,3 +1,3 @@ -import{a as j}from"./chunk-HN36NMEB.js";import{a as D}from"./chunk-QEASB5VU.js";import"./chunk-W7AFIDCE.js";import{a as z,b as I}from"./chunk-XEEYYVYF.js";import"./chunk-6QFXSLJK.js";import"./chunk-RNWIIYZZ.js";import{a as B}from"./chunk-SUAWKU6Z.js";import"./chunk-7Z57W26K.js";import{c as T,d as A,e as V,j as W}from"./chunk-LPXDHCFD.js";import{F as E,J as k}from"./chunk-B2BNZRWN.js";import{$a as h,$b as u,Bb as M,Cb as P,Db as r,Eb as o,Jb as w,Nb as g,Ob as a,Xb as s,Yb as O,_b as f,ab as x,ac as _,cc as S,fa as y,qa as b,ra as m,rb as F,tb as C,yb as v}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function N(l,c){if(l&1){let i=w();r(0,"dsw-color-picker",7),_("colorChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("colorChange",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("color",i.value),C("isImmediate",!0)}}function L(l,c){if(l&1){let i=w();r(0,"input",8),_("ngModelChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("change",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("ngModel",i.value)}}function R(l,c){if(l&1&&(r(0,"tr")(1,"td"),s(2),o(),r(3,"td"),F(4,N,1,2,"dsw-color-picker",5)(5,L,1,1,"input",6),o()()),l&2){let i=c.$implicit;h(2),O(i.name),h(2),v(i.isColor?4:-1),h(),v(i.isColor?-1:5)}}var Z=(()=>{let c=class c{constructor(e,t){this.sbs=e,this.ss=t,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:E.const.themes,theme:this.settings.theme},this.initializeVariables()}ngOnDestroy(){this.isApplied||this.restoreTheme()}onCancel(){this.sbs.hide()}onApply(){let e=this.ss.getAppSettings();e.theme=this.model.theme,this.ss.setAppSettings(e),this.isApplied=!0,this.sbs.hide()}exportTheme(){let e=`:root {\r +import{a as j}from"./chunk-DEHPGDYX.js";import{a as D}from"./chunk-BNUZIG4N.js";import"./chunk-W7AFIDCE.js";import{a as z,b as I}from"./chunk-VIPKQBAQ.js";import"./chunk-QWH4BMSJ.js";import"./chunk-RNWIIYZZ.js";import{a as B}from"./chunk-SUAWKU6Z.js";import"./chunk-ZXTET2VA.js";import{c as T,d as A,e as V,j as W}from"./chunk-6RK5MU4O.js";import{F as E,J as k}from"./chunk-LT3W5FMN.js";import{$a as h,$b as u,Bb as M,Cb as P,Db as r,Eb as o,Jb as w,Nb as g,Ob as a,Xb as s,Yb as O,_b as f,ab as x,ac as _,cc as S,fa as y,qa as b,ra as m,rb as F,tb as C,yb as v}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function N(l,c){if(l&1){let i=w();r(0,"dsw-color-picker",7),_("colorChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("colorChange",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("color",i.value),C("isImmediate",!0)}}function L(l,c){if(l&1){let i=w();r(0,"input",8),_("ngModelChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("change",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("ngModel",i.value)}}function R(l,c){if(l&1&&(r(0,"tr")(1,"td"),s(2),o(),r(3,"td"),F(4,N,1,2,"dsw-color-picker",5)(5,L,1,1,"input",6),o()()),l&2){let i=c.$implicit;h(2),O(i.name),h(2),v(i.isColor?4:-1),h(),v(i.isColor?-1:5)}}var Z=(()=>{let c=class c{constructor(e,t){this.sbs=e,this.ss=t,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:E.const.themes,theme:this.settings.theme},this.initializeVariables()}ngOnDestroy(){this.isApplied||this.restoreTheme()}onCancel(){this.sbs.hide()}onApply(){let e=this.ss.getAppSettings();e.theme=this.model.theme,this.ss.setAppSettings(e),this.isApplied=!0,this.sbs.hide()}exportTheme(){let e=`:root {\r `;this.variables.forEach(n=>{e+=" --"+n.name+": "+n.value+`;\r `}),e+="}";let t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),t.setAttribute("download","theme.css"),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}updateVariable(e){document.documentElement.style.setProperty("--"+e.name,e.value)}restoreTheme(){this.model.theme=this.settings.theme,this.applyTheme()}trackVariable(e,t){return t.name}applyTheme(){this.variables.forEach(t=>{document.documentElement.style.setProperty("--"+t.name,null)});let e=document.getElementById("page-theme");e||(e=document.createElement("link")),e.id="page-theme",e.rel="stylesheet",e.type="text/css",this.model.theme?e.href="css/"+this.model.theme:e.href="",document.head.appendChild(e),setTimeout(()=>{this.initializeVariables()},100)}initializeVariables(){this.variables=this.getAllCssVariables().map(e=>{let t=getComputedStyle(document.documentElement).getPropertyValue(e);return{name:e.replace("--",""),value:t,isColor:this.isColor(t)}})}isColor(e){let t=new Option().style;return t.color=e,t.color!==""}getAllCssVariables(){return Array.from(document.styleSheets).filter(e=>e.href===null||e.href.startsWith(window.location.origin)).reduce((e,t)=>e=[...e,...Array.from(t.cssRules).reduce((n,d)=>n=d.selectorText===":root"?[...n,...Array.from(d.style).filter(p=>p.startsWith("--"))]:n,[])],[])}};c.\u0275fac=function(t){return new(t||c)(x(B),x(k))},c.\u0275cmp=y({type:c,selectors:[["dsw-theme-settings"]],standalone:!0,features:[S],decls:21,vars:3,consts:[[3,"cancel","apply"],[1,"container"],["bindValue","file","bindLabel","text",1,"dsw",3,"ngModelChange","ngModel","clearable","items"],[1,"variables-container"],[1,"btn","btn-success",3,"click"],[3,"color","isImmediate"],[1,"input",3,"ngModel"],[3,"colorChange","color","isImmediate"],[1,"input",3,"ngModelChange","change","ngModel"]],template:function(t,n){t&1&&(r(0,"dsw-sidebar-actions",0),g("cancel",function(){return n.onCancel()})("apply",function(){return n.onApply()}),s(1,"Theme settings"),o(),r(2,"div",1)(3,"label"),s(4,"Current theme"),o(),r(5,"ng-select",2),_("ngModelChange",function(p){return u(n.model.theme,p)||(n.model.theme=p),p}),o(),r(6,"label"),s(7,"Theme variables"),o(),r(8,"div",3)(9,"table")(10,"thead")(11,"tr")(12,"td"),s(13,"Name"),o(),r(14,"td"),s(15,"Value"),o()()(),r(16,"tbody"),M(17,R,6,3,"tr",null,n.trackVariable,!0),o()()(),r(19,"button",4),g("click",function(){return n.exportTheme()}),s(20,"Download theme"),o()()),t&2&&(h(5),f("ngModel",n.model.theme),C("clearable",!1)("items",n.model.themes),h(12),P(n.variables))},dependencies:[D,I,z,W,T,A,V,j],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}table[_ngcontent-%COMP%]{font-size:12px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{opacity:.7}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:50%}.color[_ngcontent-%COMP%]{height:14px;cursor:pointer}.input[_ngcontent-%COMP%]{height:14px}.btn-success[_ngcontent-%COMP%]{margin-top:10px}dsw-color-picker[_ngcontent-%COMP%]{height:20px}"]});let l=c;return l})();export{Z as ThemeSettingsComponent}; diff --git a/dist/chunk-LPXDHCFD.js b/dist/chunk-6RK5MU4O.js similarity index 99% rename from dist/chunk-LPXDHCFD.js rename to dist/chunk-6RK5MU4O.js index ae9c7ad..92401f5 100644 --- a/dist/chunk-LPXDHCFD.js +++ b/dist/chunk-6RK5MU4O.js @@ -1 +1 @@ -import{a as $}from"./chunk-B2BNZRWN.js";import{Ba as V,Bc as ne,Da as N,Gc as L,Nb as b,W as p,Y as O,_ as g,ab as l,bc as m,eb as D,f as Y,ga as x,ha as u,l as K,lb as f,pa as H,r as J,rc as ie,sb as ee,ua as v,vb as te,x as Q}from"./chunk-ZKAUCJHV.js";import{a as d,b as c}from"./chunk-DEPBX7UX.js";var fe=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V))},e.\u0275dir=u({type:e});let t=e;return t})(),j=(()=>{let e=class e extends fe{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[f]});let t=e;return t})(),I=new g(""),Fe={provide:I,useExisting:p(()=>Ie),multi:!0},Ie=(()=>{let e=class e extends j{writeValue(i){this.setProperty("checked",i)}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[m([Fe]),f]});let t=e;return t})(),Se={provide:I,useExisting:p(()=>pe),multi:!0};function Oe(){let t=$()?$().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var xe=new g(""),pe=(()=>{let e=class e extends fe{constructor(i,r,s){super(i,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Oe())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V),l(xe,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&b("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[m([Se]),f]});let t=e;return t})();function Ne(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var ge=new g(""),Pe=new g("");function ke(t){return Ne(t.value)?{required:!0}:null}function re(t){return null}function me(t){return t!=null}function ve(t){return ie(t)?K(t):t}function ye(t){let e={};return t.forEach(n=>{e=n!=null?d(d({},e),n):e}),Object.keys(e).length===0?null:e}function _e(t,e){return e.map(n=>n(t))}function Ge(t){return!t.validate}function Ce(t){return t.map(e=>Ge(e)?e:n=>e.validate(n))}function Te(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){return ye(_e(n,e))}}function Ve(t){return t!=null?Te(Ce(t)):null}function je(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){let i=_e(n,e).map(ve);return Q(i).pipe(J(ye))}}function De(t){return t!=null?je(Ce(t)):null}function se(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Be(t){return t._rawValidators}function Ue(t){return t._rawAsyncValidators}function W(t){return t?Array.isArray(t)?t:[t]:[]}function k(t,e){return Array.isArray(t)?t.includes(e):t===e}function oe(t,e){let n=W(e);return W(t).forEach(r=>{k(n,r)||n.push(r)}),n}function ae(t,e){return W(e).filter(n=>!k(t,n))}var G=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ve(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},q=class extends G{get formDirective(){return null}get path(){return null}},F=class extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},z=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Re={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Pt=c(d({},Re),{"[class.ng-submitted]":"isSubmitted"}),kt=(()=>{let e=class e extends z{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(l(F,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&te("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[f]});let t=e;return t})();var A="VALID",P="INVALID",y="PENDING",M="DISABLED",C=class{},T=class extends C{constructor(e,n){super(),this.value=e,this.source=n}},E=class extends C{constructor(e,n){super(),this.pristine=e,this.source=n}},w=class extends C{constructor(e,n){super(),this.touched=e,this.source=n}},_=class extends C{constructor(e,n){super(),this.status=e,this.source=n}};function He(t){return(B(t)?t.validators:t)||null}function Le(t){return Array.isArray(t)?Ve(t):t||null}function $e(t,e){return(B(e)?e.asyncValidators:t)||null}function We(t){return Array.isArray(t)?De(t):t||null}function B(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Z=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Y,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===A}get invalid(){return this.status===P}get pending(){return this.status==y}get disabled(){return this.status===M}get enabled(){return this.status!==M}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(oe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(oe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ae(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ae(e,this._rawAsyncValidators))}hasValidator(e){return k(this._rawValidators,e)}hasAsyncValidator(e){return k(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new w(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new w(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new E(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new E(!0,i))}markAsPending(e={}){this.status=y;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(c(d({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable(c(d({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,i)),this._events.next(new _(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=A,this._forEachChild(i=>{i.enable(c(d({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===y)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,n)),this._events.next(new _(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(c(d({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?M:A}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=y,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=ve(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new _(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?P:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(y)?y:this._anyControlsHaveStatus(P)?P:A}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new E(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new w(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){B(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Le(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}};var X=new g("CallSetDisabledState",{providedIn:"root",factory:()=>U}),U="always";function qe(t,e){return[...e.path,t]}function ze(t,e,n=U){Xe(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Ye(t,e),Je(t,e),Ke(t,e),Ze(t,e)}function le(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Ze(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Xe(t,e){let n=Be(t);e.validator!==null?t.setValidators(se(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=Ue(t);e.asyncValidator!==null?t.setAsyncValidators(se(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function Ye(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&be(t,e)})}function Ke(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&be(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function be(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Je(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Qe(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function et(t){return Object.getPrototypeOf(t.constructor)===j}function tt(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(s=>{s.constructor===pe?n=s:et(s)?i=s:r=s}),r||i||n||null}function ue(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function de(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var it=class extends Z{constructor(e=null,n,i){super(He(n),$e(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(n)&&(n.nonNullable||n.initialValueIsDefault)&&(de(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){de(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var nt={provide:F,useExisting:p(()=>rt)},ce=Promise.resolve(),rt=(()=>{let e=class e extends F{constructor(i,r,s,o,a,h){super(),this._changeDetectorRef=a,this.callSetDisabledState=h,this.control=new it,this._registered=!1,this.name="",this.update=new N,this._parent=i,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=tt(this,o)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Qe(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ze(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){ce.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,s=r!==0&&L(r);ce.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?qe(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(l(q,9),l(ge,10),l(Pe,10),l(I,10),l(ne,8),l(X,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m([nt]),f,H]});let t=e;return t})();var st=new g("");var ot={provide:I,useExisting:p(()=>Me),multi:!0};function Ae(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function at(t){return t.split(":")[0]}var Me=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r=this._getOptionId(i),s=Ae(r,i);this.setProperty("value",s)}registerOnChange(i){this.onChange=r=>{this.value=this._getOptionValue(r),i(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(i){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),i))return r;return null}_getOptionValue(i){let r=at(i);return this._optionMap.has(r)?this._optionMap.get(r):i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([ot]),f]});let t=e;return t})(),Tt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(i){this._select!=null&&(this._select._optionMap.set(this.id,i),this._setElementValue(Ae(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._setElementValue(i),this._select&&this._select.writeValue(this._select.value)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Me,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),lt={provide:I,useExisting:p(()=>Ee),multi:!0};function he(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function ut(t){return t.split(":")[0]}var Ee=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r;if(Array.isArray(i)){let s=i.map(o=>this._getOptionId(o));r=(o,a)=>{o._setSelected(s.indexOf(a.toString())>-1)}}else r=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(i){this.onChange=r=>{let s=[],o=r.selectedOptions;if(o!==void 0){let a=o;for(let h=0;h{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([lt]),f]});let t=e;return t})(),jt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(i){this._select!=null&&(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._select?(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value)):this._setElementValue(i)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}_setSelected(i){this._renderer.setProperty(this._element.nativeElement,"selected",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Ee,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();var dt=(()=>{let e=class e{constructor(){this._validator=re}ngOnChanges(i){if(this.inputName in i){let r=this.normalizeInput(i[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):re,this._onChange&&this._onChange()}}validate(i){return this._validator(i)}registerOnValidatorChange(i){this._onChange=i}enabled(i){return i!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,features:[H]});let t=e;return t})();var ct={provide:ge,useExisting:p(()=>ht),multi:!0};var ht=(()=>{let e=class e extends dt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=L,this.createValidator=i=>ke}enabled(i){return i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&ee("required",s._enabled?"":null)},inputs:{required:"required"},features:[m([ct]),f]});let t=e;return t})();var we=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({});let t=e;return t})();var Bt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})(),Ut=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:st,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})();export{I as a,Ie as b,pe as c,kt as d,rt as e,Me as f,Tt as g,jt as h,ht as i,Bt as j,Ut as k}; +import{a as $}from"./chunk-LT3W5FMN.js";import{Ba as V,Bc as ne,Da as N,Gc as L,Nb as b,W as p,Y as O,_ as g,ab as l,bc as m,eb as D,f as Y,ga as x,ha as u,l as K,lb as f,pa as H,r as J,rc as ie,sb as ee,ua as v,vb as te,x as Q}from"./chunk-ZKAUCJHV.js";import{a as d,b as c}from"./chunk-DEPBX7UX.js";var fe=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V))},e.\u0275dir=u({type:e});let t=e;return t})(),j=(()=>{let e=class e extends fe{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[f]});let t=e;return t})(),I=new g(""),Fe={provide:I,useExisting:p(()=>Ie),multi:!0},Ie=(()=>{let e=class e extends j{writeValue(i){this.setProperty("checked",i)}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[m([Fe]),f]});let t=e;return t})(),Se={provide:I,useExisting:p(()=>pe),multi:!0};function Oe(){let t=$()?$().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var xe=new g(""),pe=(()=>{let e=class e extends fe{constructor(i,r,s){super(i,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Oe())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V),l(xe,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&b("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[m([Se]),f]});let t=e;return t})();function Ne(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var ge=new g(""),Pe=new g("");function ke(t){return Ne(t.value)?{required:!0}:null}function re(t){return null}function me(t){return t!=null}function ve(t){return ie(t)?K(t):t}function ye(t){let e={};return t.forEach(n=>{e=n!=null?d(d({},e),n):e}),Object.keys(e).length===0?null:e}function _e(t,e){return e.map(n=>n(t))}function Ge(t){return!t.validate}function Ce(t){return t.map(e=>Ge(e)?e:n=>e.validate(n))}function Te(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){return ye(_e(n,e))}}function Ve(t){return t!=null?Te(Ce(t)):null}function je(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){let i=_e(n,e).map(ve);return Q(i).pipe(J(ye))}}function De(t){return t!=null?je(Ce(t)):null}function se(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Be(t){return t._rawValidators}function Ue(t){return t._rawAsyncValidators}function W(t){return t?Array.isArray(t)?t:[t]:[]}function k(t,e){return Array.isArray(t)?t.includes(e):t===e}function oe(t,e){let n=W(e);return W(t).forEach(r=>{k(n,r)||n.push(r)}),n}function ae(t,e){return W(e).filter(n=>!k(t,n))}var G=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ve(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},q=class extends G{get formDirective(){return null}get path(){return null}},F=class extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},z=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Re={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Pt=c(d({},Re),{"[class.ng-submitted]":"isSubmitted"}),kt=(()=>{let e=class e extends z{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(l(F,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&te("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[f]});let t=e;return t})();var A="VALID",P="INVALID",y="PENDING",M="DISABLED",C=class{},T=class extends C{constructor(e,n){super(),this.value=e,this.source=n}},E=class extends C{constructor(e,n){super(),this.pristine=e,this.source=n}},w=class extends C{constructor(e,n){super(),this.touched=e,this.source=n}},_=class extends C{constructor(e,n){super(),this.status=e,this.source=n}};function He(t){return(B(t)?t.validators:t)||null}function Le(t){return Array.isArray(t)?Ve(t):t||null}function $e(t,e){return(B(e)?e.asyncValidators:t)||null}function We(t){return Array.isArray(t)?De(t):t||null}function B(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Z=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Y,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===A}get invalid(){return this.status===P}get pending(){return this.status==y}get disabled(){return this.status===M}get enabled(){return this.status!==M}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(oe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(oe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ae(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ae(e,this._rawAsyncValidators))}hasValidator(e){return k(this._rawValidators,e)}hasAsyncValidator(e){return k(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new w(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new w(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new E(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new E(!0,i))}markAsPending(e={}){this.status=y;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(c(d({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable(c(d({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,i)),this._events.next(new _(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=A,this._forEachChild(i=>{i.enable(c(d({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===y)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,n)),this._events.next(new _(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(c(d({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?M:A}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=y,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=ve(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new _(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?P:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(y)?y:this._anyControlsHaveStatus(P)?P:A}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new E(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new w(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){B(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Le(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}};var X=new g("CallSetDisabledState",{providedIn:"root",factory:()=>U}),U="always";function qe(t,e){return[...e.path,t]}function ze(t,e,n=U){Xe(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Ye(t,e),Je(t,e),Ke(t,e),Ze(t,e)}function le(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Ze(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Xe(t,e){let n=Be(t);e.validator!==null?t.setValidators(se(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=Ue(t);e.asyncValidator!==null?t.setAsyncValidators(se(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function Ye(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&be(t,e)})}function Ke(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&be(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function be(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Je(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Qe(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function et(t){return Object.getPrototypeOf(t.constructor)===j}function tt(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(s=>{s.constructor===pe?n=s:et(s)?i=s:r=s}),r||i||n||null}function ue(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function de(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var it=class extends Z{constructor(e=null,n,i){super(He(n),$e(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(n)&&(n.nonNullable||n.initialValueIsDefault)&&(de(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){de(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var nt={provide:F,useExisting:p(()=>rt)},ce=Promise.resolve(),rt=(()=>{let e=class e extends F{constructor(i,r,s,o,a,h){super(),this._changeDetectorRef=a,this.callSetDisabledState=h,this.control=new it,this._registered=!1,this.name="",this.update=new N,this._parent=i,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=tt(this,o)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Qe(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ze(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){ce.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,s=r!==0&&L(r);ce.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?qe(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(l(q,9),l(ge,10),l(Pe,10),l(I,10),l(ne,8),l(X,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m([nt]),f,H]});let t=e;return t})();var st=new g("");var ot={provide:I,useExisting:p(()=>Me),multi:!0};function Ae(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function at(t){return t.split(":")[0]}var Me=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r=this._getOptionId(i),s=Ae(r,i);this.setProperty("value",s)}registerOnChange(i){this.onChange=r=>{this.value=this._getOptionValue(r),i(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(i){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),i))return r;return null}_getOptionValue(i){let r=at(i);return this._optionMap.has(r)?this._optionMap.get(r):i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([ot]),f]});let t=e;return t})(),Tt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(i){this._select!=null&&(this._select._optionMap.set(this.id,i),this._setElementValue(Ae(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._setElementValue(i),this._select&&this._select.writeValue(this._select.value)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Me,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),lt={provide:I,useExisting:p(()=>Ee),multi:!0};function he(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function ut(t){return t.split(":")[0]}var Ee=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r;if(Array.isArray(i)){let s=i.map(o=>this._getOptionId(o));r=(o,a)=>{o._setSelected(s.indexOf(a.toString())>-1)}}else r=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(i){this.onChange=r=>{let s=[],o=r.selectedOptions;if(o!==void 0){let a=o;for(let h=0;h{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([lt]),f]});let t=e;return t})(),jt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(i){this._select!=null&&(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._select?(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value)):this._setElementValue(i)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}_setSelected(i){this._renderer.setProperty(this._element.nativeElement,"selected",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Ee,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();var dt=(()=>{let e=class e{constructor(){this._validator=re}ngOnChanges(i){if(this.inputName in i){let r=this.normalizeInput(i[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):re,this._onChange&&this._onChange()}}validate(i){return this._validator(i)}registerOnValidatorChange(i){this._onChange=i}enabled(i){return i!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,features:[H]});let t=e;return t})();var ct={provide:ge,useExisting:p(()=>ht),multi:!0};var ht=(()=>{let e=class e extends dt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=L,this.createValidator=i=>ke}enabled(i){return i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&ee("required",s._enabled?"":null)},inputs:{required:"required"},features:[m([ct]),f]});let t=e;return t})();var we=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({});let t=e;return t})();var Bt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})(),Ut=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:st,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})();export{I as a,Ie as b,pe as c,kt as d,rt as e,Me as f,Tt as g,jt as h,ht as i,Bt as j,Ut as k}; diff --git a/dist/chunk-7NWZDKAS.js b/dist/chunk-B5EPJNTD.js similarity index 86% rename from dist/chunk-7NWZDKAS.js rename to dist/chunk-B5EPJNTD.js index 3005928..8d658bc 100644 --- a/dist/chunk-7NWZDKAS.js +++ b/dist/chunk-B5EPJNTD.js @@ -1 +1 @@ -import{I as c}from"./chunk-B2BNZRWN.js";import{Ba as o,ab as s,ha as n}from"./chunk-ZKAUCJHV.js";var u=(()=>{let t=class t{constructor(r,i){this.el=r,this.us=i}ngAfterViewInit(){this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value==="desktop"&&this.us.isMobile()||this.el.nativeElement.focus()}};t.\u0275fac=function(i){return new(i||t)(s(o),s(c))},t.\u0275dir=n({type:t,selectors:[["","dswAutoFocus",""]],standalone:!0});let e=t;return e})();export{u as a}; +import{I as c}from"./chunk-LT3W5FMN.js";import{Ba as o,ab as s,ha as n}from"./chunk-ZKAUCJHV.js";var u=(()=>{let t=class t{constructor(r,i){this.el=r,this.us=i}ngAfterViewInit(){this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value==="desktop"&&this.us.isMobile()||this.el.nativeElement.focus()}};t.\u0275fac=function(i){return new(i||t)(s(o),s(c))},t.\u0275dir=n({type:t,selectors:[["","dswAutoFocus",""]],standalone:!0});let e=t;return e})();export{u as a}; diff --git a/dist/chunk-QEASB5VU.js b/dist/chunk-BNUZIG4N.js similarity index 97% rename from dist/chunk-QEASB5VU.js rename to dist/chunk-BNUZIG4N.js index 5e8d8d7..f95b02b 100644 --- a/dist/chunk-QEASB5VU.js +++ b/dist/chunk-BNUZIG4N.js @@ -1,3 +1,3 @@ -import{a as k}from"./chunk-6QFXSLJK.js";import{a as O}from"./chunk-SUAWKU6Z.js";import{D as E}from"./chunk-B2BNZRWN.js";import{$a as a,Bc as F,Da as s,Db as o,Eb as n,Fb as x,Nb as b,Pb as C,Qb as w,Xb as d,Zb as y,ab as l,cc as _,fa as f,hc as h,ic as p,rb as m,tb as g,vb as u,yb as v}from"./chunk-ZKAUCJHV.js";var M=["*"];function P(r,t){r&1&&(o(0,"div",1),d(1,"You have unsaved changes"),n())}var U=(()=>{let t=class t{constructor(c,i,e){this.sbs=c,this.eds=i,this.cd=e,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new s,this.apply=new s,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(c=>{this.isWidgetEditorWarningVisible=c,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(l(O),l(k),l(F))},t.\u0275cmp=f({type:t,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},standalone:!0,features:[_],ngContentSelectors:M,decls:11,vars:10,consts:[[3,"click","title"],[1,"unsaved"],["src","assets/img/icons/icon-check.svg"]],template:function(i,e){i&1&&(C(),o(0,"button",0),h(1,"i18n"),b("click",function(){return e.onCloseClick()}),d(2),n(),o(3,"label")(4,"div"),w(5),n(),m(6,P,2,0,"div",1),n(),o(7,"button",0),h(8,"i18n"),b("click",function(){return e.apply.emit()}),x(9,"img",2),d(10,` Save +import{a as k}from"./chunk-QWH4BMSJ.js";import{a as O}from"./chunk-SUAWKU6Z.js";import{D as E}from"./chunk-LT3W5FMN.js";import{$a as a,Bc as F,Da as s,Db as o,Eb as n,Fb as x,Nb as b,Pb as C,Qb as w,Xb as d,Zb as y,ab as l,cc as _,fa as f,hc as h,ic as p,rb as m,tb as g,vb as u,yb as v}from"./chunk-ZKAUCJHV.js";var M=["*"];function P(r,t){r&1&&(o(0,"div",1),d(1,"You have unsaved changes"),n())}var U=(()=>{let t=class t{constructor(c,i,e){this.sbs=c,this.eds=i,this.cd=e,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new s,this.apply=new s,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(c=>{this.isWidgetEditorWarningVisible=c,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(l(O),l(k),l(F))},t.\u0275cmp=f({type:t,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},standalone:!0,features:[_],ngContentSelectors:M,decls:11,vars:10,consts:[[3,"click","title"],[1,"unsaved"],["src","assets/img/icons/icon-check.svg"]],template:function(i,e){i&1&&(C(),o(0,"button",0),h(1,"i18n"),b("click",function(){return e.onCloseClick()}),d(2),n(),o(3,"label")(4,"div"),w(5),n(),m(6,P,2,0,"div",1),n(),o(7,"button",0),h(8,"i18n"),b("click",function(){return e.apply.emit()}),x(9,"img",2),d(10,` Save `),n()),i&2&&(g("title",p(1,6,"cancel")),a(2),y(" ",e.isBack?"Back":"Close",` `),a(4),v(e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible?6:-1),a(),u("warning",e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible),g("title",p(8,8,"save")))},dependencies:[E],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;white-space:nowrap;height:var(--header-height);display:flex;justify-content:space-between;border-bottom:1px solid var(--cl-header-border);margin-bottom:6px;margin-left:20px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{padding:0;cursor:pointer;font-family:Oxygen;display:block;text-align:left;font-size:14px;background-color:transparent;border:none;outline:none;flex-shrink:0;flex-grow:0;color:var(--cl-accent);min-width:50px;transition:background-color .3s linear}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--cl-header-btn-hover)}[_nghost-%COMP%] button[_ngcontent-%COMP%]:last-child{text-align:right}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:none;vertical-align:middle;transform:translateY(-1px);margin-right:4px;width:14px}[_nghost-%COMP%] > label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-family:Oxygen;color:#000;font-size:16px}.img-accept[_ngcontent-%COMP%]{max-width:60%;max-height:60%}.unsaved[_ngcontent-%COMP%]{position:absolute;left:0;right:0;text-align:center;bottom:0;font-family:Oxygen;font-size:12px;color:#f70000}"],changeDetection:0});let r=t;return r})();export{U as a}; diff --git a/dist/chunk-LJGOUF7S.js b/dist/chunk-COTWOYRS.js similarity index 92% rename from dist/chunk-LJGOUF7S.js rename to dist/chunk-COTWOYRS.js index a821338..e0e1449 100644 --- a/dist/chunk-LJGOUF7S.js +++ b/dist/chunk-COTWOYRS.js @@ -1,2 +1,2 @@ -import{a as T}from"./chunk-PBNT6RE2.js";import{a as A}from"./chunk-QEASB5VU.js";import{d as t}from"./chunk-L76GKDA2.js";import"./chunk-54YLOEMX.js";import"./chunk-WYNQ5JHX.js";import{a as F,b as W}from"./chunk-XEEYYVYF.js";import{a as V}from"./chunk-6QFXSLJK.js";import{a as E}from"./chunk-RNWIIYZZ.js";import"./chunk-SUAWKU6Z.js";import{b as D}from"./chunk-7Z57W26K.js";import{d as O,e as S,i as P,j as k}from"./chunk-LPXDHCFD.js";import"./chunk-B2BNZRWN.js";import{$a as h,$b as _,Db as l,Eb as d,Jb as v,Nb as b,Ob as r,Xb as m,_b as f,ab as u,ac as C,cc as M,fa as x,qa as a,ra as c,rb as w,tb as p,yb as y}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function L(g,s){if(g&1){let i=v();l(0,"div",1)(1,"label"),m(2,"Widget type"),d(),l(3,"ng-select",2),C("ngModelChange",function(e){a(i);let o=r();return _(o.type,e)||(o.type=e),c(e)}),b("change",function(){a(i);let e=r();return c(e.onTypeChange())}),d(),l(4,"label"),m(5,"Data source"),d(),l(6,"dsw-input",3),C("ngModelChange",function(e){a(i);let o=r();return _(o.model.dataSource,e)||(o.model.dataSource=e),c(e)}),b("keydown.enter",function(){a(i);let e=r();return c(e.onDatasourceChanged())})("choose",function(){a(i);let e=r();return c(e.onSelectDataSource())}),d(),l(7,"label"),m(8,"Reference to"),d(),l(9,"ng-select",4),C("ngModelChange",function(e){a(i);let o=r();return _(o.model.dataLink,e)||(o.model.dataLink=e),c(e)}),b("change",function(){a(i);let e=r();return c(e.onLinkChange())}),d()()}if(g&2){let i=r();h(3),f("ngModel",i.type),p("items",i.widgetTypes)("clearable",!1)("closeOnSelect",!0),h(3),p("required",i.invalid.includes("datasource")),f("ngModel",i.model.dataSource),p("chooseButton",!0),h(3),p("items",i.widgetList),f("ngModel",i.model.dataLink),p("clearable",!1)("closeOnSelect",!0)}}var K=(()=>{let s=class s{constructor(n,e,o){this.ms=n,this.eds=e,this.ds=o,this.invalid=[],this.widgetList=[],this.widgetTypes=[t.pivot,t.columnChart,t.columnChartStacked,t.columnChart3D,t.barChart,t.barChartStacked,t.lineChart,t.lineChartMarkers,t.comboChart,t.hilowChart,t.areaChart,t.bubbleChart,t.xyChart,t.pieChart,t.pieChart3D,t.donutChart,t.donutChart3D,t.treeMapChart,t.bullseyeChart,t.timeChart,t.regular,t.textMeter,t.map]}ngOnInit(){this.widgetList=this.eds.getWidgetsList([this.model?.name??""]),this.type=t[this.model?.type?.toLowerCase()??""]}onSelectDataSource(){this.ms.show({title:"Choose data source",component:import("./chunk-4KFWLVKI.js"),buttons:[{label:"Cancel",autoClose:!0}],closeByEsc:!0,search:"",minHeight:!0,outputs:{select:n=>{this.model&&(this.model.dataSource=n.value+"."+n.type),this.onDatasourceChanged()}}})}ngOnDestroy(){this.eds.cancelEditing()}onTypeChange(){this.model&&(this.model.type=Object.entries(t).find(n=>n[1]===this.type)?.[0]||"",this.eds.updateEditedWidget({widget:this.model,reCreate:!0}))}onDatasourceChanged(){this.model&&this.eds.generateWidgetMdx(this.model).then(()=>{this.model&&this.eds.updateEditedWidget({widget:this.model,refreshData:!0})})}onLinkChange(){this.model&&this.eds.updateEditedWidget({widget:this.model,reCreate:!0})}onSave(){this.model&&this.eds.save(this.model)}};s.\u0275fac=function(e){return new(e||s)(u(E),u(V),u(D))},s.\u0275cmp=x({type:s,selectors:[["dsw-type-and-ds"]],inputs:{model:"model",invalid:"invalid"},standalone:!0,features:[M],decls:3,vars:3,consts:[[3,"apply","isWidgetEditorWarning","isBack"],[1,"container"],["bindLabel","label",1,"dsw",3,"ngModelChange","change","ngModel","items","clearable","closeOnSelect"],[3,"ngModelChange","keydown.enter","choose","required","ngModel","chooseButton"],["bindLabel","label","bindValue","name",1,"dsw",3,"ngModelChange","change","items","ngModel","clearable","closeOnSelect"]],template:function(e,o){e&1&&(l(0,"dsw-sidebar-actions",0),b("apply",function(){return o.onSave()}),m(1,` Type & Datasource +import{a as T}from"./chunk-EM2NUV7J.js";import{a as A}from"./chunk-BNUZIG4N.js";import{d as t}from"./chunk-JE2DBAFS.js";import"./chunk-54YLOEMX.js";import"./chunk-4E6RZBBM.js";import{a as F,b as W}from"./chunk-VIPKQBAQ.js";import{a as V}from"./chunk-QWH4BMSJ.js";import{a as E}from"./chunk-RNWIIYZZ.js";import"./chunk-SUAWKU6Z.js";import{b as D}from"./chunk-ZXTET2VA.js";import{d as O,e as S,i as P,j as k}from"./chunk-6RK5MU4O.js";import"./chunk-LT3W5FMN.js";import{$a as h,$b as _,Db as l,Eb as d,Jb as v,Nb as b,Ob as r,Xb as m,_b as f,ab as u,ac as C,cc as M,fa as x,qa as a,ra as c,rb as w,tb as p,yb as y}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function L(g,s){if(g&1){let i=v();l(0,"div",1)(1,"label"),m(2,"Widget type"),d(),l(3,"ng-select",2),C("ngModelChange",function(e){a(i);let o=r();return _(o.type,e)||(o.type=e),c(e)}),b("change",function(){a(i);let e=r();return c(e.onTypeChange())}),d(),l(4,"label"),m(5,"Data source"),d(),l(6,"dsw-input",3),C("ngModelChange",function(e){a(i);let o=r();return _(o.model.dataSource,e)||(o.model.dataSource=e),c(e)}),b("keydown.enter",function(){a(i);let e=r();return c(e.onDatasourceChanged())})("choose",function(){a(i);let e=r();return c(e.onSelectDataSource())}),d(),l(7,"label"),m(8,"Reference to"),d(),l(9,"ng-select",4),C("ngModelChange",function(e){a(i);let o=r();return _(o.model.dataLink,e)||(o.model.dataLink=e),c(e)}),b("change",function(){a(i);let e=r();return c(e.onLinkChange())}),d()()}if(g&2){let i=r();h(3),f("ngModel",i.type),p("items",i.widgetTypes)("clearable",!1)("closeOnSelect",!0),h(3),p("required",i.invalid.includes("datasource")),f("ngModel",i.model.dataSource),p("chooseButton",!0),h(3),p("items",i.widgetList),f("ngModel",i.model.dataLink),p("clearable",!1)("closeOnSelect",!0)}}var K=(()=>{let s=class s{constructor(n,e,o){this.ms=n,this.eds=e,this.ds=o,this.invalid=[],this.widgetList=[],this.widgetTypes=[t.pivot,t.columnChart,t.columnChartStacked,t.columnChart3D,t.barChart,t.barChartStacked,t.lineChart,t.lineChartMarkers,t.comboChart,t.hilowChart,t.areaChart,t.bubbleChart,t.xyChart,t.pieChart,t.pieChart3D,t.donutChart,t.donutChart3D,t.treeMapChart,t.bullseyeChart,t.timeChart,t.regular,t.textMeter,t.map]}ngOnInit(){this.widgetList=this.eds.getWidgetsList([this.model?.name??""]),this.type=t[this.model?.type?.toLowerCase()??""]}onSelectDataSource(){this.ms.show({title:"Choose data source",component:import("./chunk-42QBCWN2.js"),buttons:[{label:"Cancel",autoClose:!0}],closeByEsc:!0,search:"",minHeight:!0,outputs:{select:n=>{this.model&&(this.model.dataSource=n.value+"."+n.type),this.onDatasourceChanged()}}})}ngOnDestroy(){this.eds.cancelEditing()}onTypeChange(){this.model&&(this.model.type=Object.entries(t).find(n=>n[1]===this.type)?.[0]||"",this.eds.updateEditedWidget({widget:this.model,reCreate:!0}))}onDatasourceChanged(){this.model&&this.eds.generateWidgetMdx(this.model).then(()=>{this.model&&this.eds.updateEditedWidget({widget:this.model,refreshData:!0})})}onLinkChange(){this.model&&this.eds.updateEditedWidget({widget:this.model,reCreate:!0})}onSave(){this.model&&this.eds.save(this.model)}};s.\u0275fac=function(e){return new(e||s)(u(E),u(V),u(D))},s.\u0275cmp=x({type:s,selectors:[["dsw-type-and-ds"]],inputs:{model:"model",invalid:"invalid"},standalone:!0,features:[M],decls:3,vars:3,consts:[[3,"apply","isWidgetEditorWarning","isBack"],[1,"container"],["bindLabel","label",1,"dsw",3,"ngModelChange","change","ngModel","items","clearable","closeOnSelect"],[3,"ngModelChange","keydown.enter","choose","required","ngModel","chooseButton"],["bindLabel","label","bindValue","name",1,"dsw",3,"ngModelChange","change","items","ngModel","clearable","closeOnSelect"]],template:function(e,o){e&1&&(l(0,"dsw-sidebar-actions",0),b("apply",function(){return o.onSave()}),m(1,` Type & Datasource `),d(),w(2,L,10,11,"div",1)),e&2&&(p("isWidgetEditorWarning",!0)("isBack",!0),h(2),y(o.model?2:-1))},dependencies:[A,W,F,k,O,P,S,T],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}"]});let g=s;return g})();export{K as TypeAndDatasourceComponent}; diff --git a/dist/chunk-UYNSFEXL.js b/dist/chunk-CSWYKUHK.js similarity index 98% rename from dist/chunk-UYNSFEXL.js rename to dist/chunk-CSWYKUHK.js index 24a196e..8f5f8e8 100644 --- a/dist/chunk-UYNSFEXL.js +++ b/dist/chunk-CSWYKUHK.js @@ -1 +1 @@ -import{a as D}from"./chunk-SUAWKU6Z.js";import{H as E,K as g,L as N,w as S}from"./chunk-B2BNZRWN.js";import{$a as o,Ab as _,Bb as C,Bc as k,Cb as w,Db as l,Eb as s,Fb as d,Jb as y,Nb as F,Ob as p,Xa as f,Xb as M,Zb as O,ab as c,cc as P,fa as h,qa as b,ra as m,rb as v,tb as x,yb as u}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function T(i,t){i&1&&d(0,"img",0)}function j(i,t){if(i&1){let a=y();l(0,"li",1),F("click",function(){let n=b(a).$implicit,r=p();return m(r.selectNamespace(n))}),d(1,"img",2),M(2),s()}if(i&2){let a=t.$implicit,e=p();o(),x("src",e.isSelected(a)?"assets/img/icons/check-black-18dp.svg":"",f),o(),O(" ",a," ")}}var q=(()=>{let t=class t{constructor(e,n,r,I,A){this.ss=e,this.ns=n,this.ds=r,this.cdr=I,this.router=A,this.items=[],this.isLoading=!0,this.requestData()}selectNamespace(e){this.ns.setCurrent(e),this.router.navigateByUrl(e),this.ss.hide()}isSelected(e){return e.toLowerCase()===g.toLowerCase()}requestData(){this.ds.getSettings(g).then(e=>{this.ns.setNamespaces(e.Mappings.Mapped)}).finally(()=>{this.isLoading=!1,this.items=this.ns.getNamespaces(),this.cdr.detectChanges()})}};t.\u0275fac=function(n){return new(n||t)(c(D),c(N),c(E),c(k),c(S))},t.\u0275cmp=h({type:t,selectors:[["dsw-namespace-selector"]],standalone:!0,features:[P],decls:4,vars:1,consts:[["src","assets/img/spinner.svg",1,"spinner"],[3,"click"],[3,"src"]],template:function(n,r){n&1&&(v(0,T,1,0,"img",0),l(1,"ul"),C(2,j,3,2,"li",null,_),s()),n&2&&(u(r.isLoading?0:-1),o(2),w(r.items))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}'],changeDetection:0});let i=t;return i})();export{q as NamespaceSelectorComponent}; +import{a as D}from"./chunk-SUAWKU6Z.js";import{H as E,K as g,L as N,w as S}from"./chunk-LT3W5FMN.js";import{$a as o,Ab as _,Bb as C,Bc as k,Cb as w,Db as l,Eb as s,Fb as d,Jb as y,Nb as F,Ob as p,Xa as f,Xb as M,Zb as O,ab as c,cc as P,fa as h,qa as b,ra as m,rb as v,tb as x,yb as u}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function T(i,t){i&1&&d(0,"img",0)}function j(i,t){if(i&1){let a=y();l(0,"li",1),F("click",function(){let n=b(a).$implicit,r=p();return m(r.selectNamespace(n))}),d(1,"img",2),M(2),s()}if(i&2){let a=t.$implicit,e=p();o(),x("src",e.isSelected(a)?"assets/img/icons/check-black-18dp.svg":"",f),o(),O(" ",a," ")}}var q=(()=>{let t=class t{constructor(e,n,r,I,A){this.ss=e,this.ns=n,this.ds=r,this.cdr=I,this.router=A,this.items=[],this.isLoading=!0,this.requestData()}selectNamespace(e){this.ns.setCurrent(e),this.router.navigateByUrl(e),this.ss.hide()}isSelected(e){return e.toLowerCase()===g.toLowerCase()}requestData(){this.ds.getSettings(g).then(e=>{this.ns.setNamespaces(e.Mappings.Mapped)}).finally(()=>{this.isLoading=!1,this.items=this.ns.getNamespaces(),this.cdr.detectChanges()})}};t.\u0275fac=function(n){return new(n||t)(c(D),c(N),c(E),c(k),c(S))},t.\u0275cmp=h({type:t,selectors:[["dsw-namespace-selector"]],standalone:!0,features:[P],decls:4,vars:1,consts:[["src","assets/img/spinner.svg",1,"spinner"],[3,"click"],[3,"src"]],template:function(n,r){n&1&&(v(0,T,1,0,"img",0),l(1,"ul"),C(2,j,3,2,"li",null,_),s()),n&2&&(u(r.isLoading?0:-1),o(2),w(r.items))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}'],changeDetection:0});let i=t;return i})();export{q as NamespaceSelectorComponent}; diff --git a/dist/chunk-HN36NMEB.js b/dist/chunk-DEHPGDYX.js similarity index 99% rename from dist/chunk-HN36NMEB.js rename to dist/chunk-DEHPGDYX.js index 680cae0..4d1efb9 100644 --- a/dist/chunk-HN36NMEB.js +++ b/dist/chunk-DEHPGDYX.js @@ -1 +1 @@ -import{c as Ot,d as $,f as B,g as Xt,h as tt,i as it,j as ot}from"./chunk-W7AFIDCE.js";import{b as mt,c as Nt,g as Qt}from"./chunk-B2BNZRWN.js";import{$a as g,$b as D,A as H,Aa as C,Ab as pt,Ba as L,Bb as ut,Bc as Vt,Cb as dt,Da as Gt,Db as d,Eb as p,Fb as G,Gc as R,Hc as ft,J as Rt,Jb as k,Jc as J,K as Wt,Kb as jt,Nb as y,Ob as m,Pb as zt,Qb as Pt,S as ct,Tb as Z,Ub as j,Vb as z,Wb as Yt,X as It,Xb as E,Za as Zt,_ as Dt,_b as I,aa as Kt,ab as M,ac as K,ba as yt,cc as q,eb as U,ec as gt,f as at,fa as _,g as vt,ha as xt,hc as Y,ia as At,ic as nt,jc as Mt,kb as W,lb as lt,m as Bt,pa as Ht,qa as V,r as Ft,ra as O,rb as w,sa as Lt,tb as b,ub as T,vb as ht,y as S,yb as v,za as X}from"./chunk-ZKAUCJHV.js";var St=["pointer"],ee=["backgroundColorEl"],F="[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}";function ne(o,t){o&1&&(d(0,"span"),E(1,"R"),p())}function ie(o,t){o&1&&(d(0,"span"),E(1,"G"),p())}function oe(o,t){o&1&&(d(0,"span"),E(1,"B"),p())}function se(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function re(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",2),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,se,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}function ae(o,t){o&1&&(d(0,"span"),E(1,"H"),p())}function ce(o,t){o&1&&(d(0,"span"),E(1,"S"),p())}function le(o,t){o&1&&(d(0,"span"),E(1,"L"),p())}function he(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function pe(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",3),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,he,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}var Ut="[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}";function ue(o,t){o&1&&(d(0,"span"),E(1,"HEX"),p())}function de(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(2);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=t.$implicit,n=m(2);b("color",a)("activeColor",n.activeColor())}}function ge(o,t){if(o&1&&(d(0,"div",2),ut(1,de,1,2,"color-preset",3,pt),Y(3,"reverse"),p()),o&2){let a=m();b("@opacityAnimation",a.showChildren)("@listAnimation",a.direction),g(),dt(Mt(3,2,a.list(),a.direction()=="up"||a.direction()=="right"))}}var _t=(o,t)=>({first:o,last:t});function fe(o,t){if(o&1){let a=k();d(0,"color-preset-sublist",3),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("list",n)("direction",c.direction())("activeColor",c.color())("ngClass",gt(4,_t,e===0,e===i-1))}}function me(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("ngClass",gt(3,_t,e===0,e===i-1))("color",n)("activeColor",c.color())}}function Ce(o,t){if(o&1&&w(0,fe,1,7,"color-preset-sublist",1)(1,me,1,6,"color-preset",2),o&2){let a=t.$implicit,n=m(2);v(n.isList(a)?0:1)}}function be(o,t){if(o&1&&(d(0,"div",0),ut(1,Ce,2,1,null,null,pt),p()),o&2){let a=t.$implicit,n=t.$index,e=t.$count;b("ngClass",gt(1,_t,n===0,n===e-1)),g(),dt(a)}}var we=[[["","before",""]],"*"],ve=["[before]","*"];function ye(o,t){if(o&1){let a=k();d(0,"alpha-component",0),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function xe(o,t){if(o&1){let a=k();d(0,"rgba-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Ae(o,t){if(o&1){let a=k();d(0,"hsla-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Pe(o,t){if(o&1){let a=k();d(0,"hex-input-component",13),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function Me(o,t){if(o&1){let a=k();d(0,"color-presets-component",14),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value),b("colorPresets",a.control().presets)}}var et=class{},st=class extends et{constructor(t,a,n,e){super(),this.cyan=t,this.magenta=a,this.yellow=n,this.black=e}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}equal(t){return this===t?!0:this.cyan===t.cyan&&this.magenta===t.magenta&&this.yellow===t.yellow&&this.black===t.black}},N=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.lightness=n,this.alpha=e}toString(t=!0){return t?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.lightness===t.lightness&&this.alpha===t.alpha}},Q=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.value=n,this.alpha=e}toString(t=!0){return t?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},r=class extends et{constructor(t,a,n,e){super(),this.red=t,this.green=a,this.blue=n,this.alpha=e}toString(t=!0){return t?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.red===t.red&&this.green===t.green&&this.blue===t.blue&&this.alpha===t.alpha}},s=class s{};s.transparent=new r(0,0,0,0),s.aliceblue=new r(240,248,255,1),s.antiquewhite=new r(250,235,215,1),s.aqua=new r(0,255,255,1),s.aquamarine=new r(127,255,212,1),s.azure=new r(240,255,255,1),s.beige=new r(245,245,220,1),s.bisque=new r(255,228,196,1),s.black=new r(0,0,0,1),s.blanchedalmond=new r(255,235,205,1),s.blue=new r(0,0,255,1),s.blueviolet=new r(138,43,226,1),s.brown=new r(165,42,42,1),s.burlywood=new r(222,184,135,1),s.cadetblue=new r(95,158,160,1),s.chartreuse=new r(127,255,0,1),s.chocolate=new r(210,105,30,1),s.coral=new r(255,127,80,1),s.cornflowerblue=new r(100,149,237,1),s.cornsilk=new r(255,248,220,1),s.crimson=new r(220,20,60,1),s.cyan=new r(0,255,255,1),s.darkblue=new r(0,0,139,1),s.darkcyan=new r(0,139,139,1),s.darkgoldenrod=new r(184,134,11,1),s.darkgray=new r(169,169,169,1),s.darkgreen=new r(0,100,0,1),s.darkgrey=s.darkgray,s.darkkhaki=new r(189,183,107,1),s.darkmagenta=new r(139,0,139,1),s.darkolivegreen=new r(85,107,47,1),s.darkorange=new r(255,140,0,1),s.darkorchid=new r(153,50,204,1),s.darkred=new r(139,0,0,1),s.darksalmon=new r(233,150,122,1),s.darkseagreen=new r(143,188,143,1),s.darkslateblue=new r(72,61,139,1),s.darkslategray=new r(47,79,79,1),s.darkslategrey=s.darkslategray,s.darkturquoise=new r(0,206,209,1),s.darkviolet=new r(148,0,211,1),s.deeppink=new r(255,20,147,1),s.deepskyblue=new r(0,191,255,1),s.dimgray=new r(105,105,105,1),s.dimgrey=s.dimgray,s.dodgerblue=new r(30,144,255,1),s.firebrick=new r(178,34,34,1),s.floralwhite=new r(255,250,240,1),s.forestgreen=new r(34,139,34,1),s.fuchsia=new r(255,0,255,1),s.gainsboro=new r(220,220,220,1),s.ghostwhite=new r(248,248,255,1),s.gold=new r(255,215,0,1),s.goldenrod=new r(218,165,32,1),s.gray=new r(128,128,128,1),s.grey=s.gray,s.green=new r(0,128,0,1),s.greenyellow=new r(173,255,47,1),s.honeydew=new r(240,255,240,1),s.hotpink=new r(255,105,180,1),s.indianred=new r(205,92,92,1),s.indigo=new r(75,0,130,1),s.ivory=new r(255,255,240,1),s.khaki=new r(240,230,140,1),s.lavender=new r(230,230,250,1),s.lavenderblush=new r(255,240,245,1),s.lawngreen=new r(124,252,0,1),s.lemonchiffon=new r(255,250,205,1),s.lightblue=new r(173,216,230,1),s.lightcoral=new r(240,128,128,1),s.lightcyan=new r(224,255,255,1),s.lightgoldenrodyellow=new r(250,250,210,1),s.lightgray=new r(211,211,211,1),s.lightgreen=new r(144,238,144,1),s.lightgrey=s.lightgray,s.lightpink=new r(255,182,193,1),s.lightsalmon=new r(255,160,122,1),s.lightseagreen=new r(32,178,170,1),s.lightskyblue=new r(135,206,250,1),s.lightslategray=new r(119,136,153,1),s.lightslategrey=s.lightslategray,s.lightsteelblue=new r(176,196,222,1),s.lightyellow=new r(255,255,224,1),s.lime=new r(0,255,0,1),s.limegreen=new r(50,205,50,1),s.linen=new r(250,240,230,1),s.magenta=new r(255,0,255,1),s.maroon=new r(128,0,0,1),s.mediumaquamarine=new r(102,205,170,1),s.mediumblue=new r(0,0,205,1),s.mediumorchid=new r(186,85,211,1),s.mediumpurple=new r(147,112,219,1),s.mediumseagreen=new r(60,179,113,1),s.mediumslateblue=new r(123,104,238,1),s.mediumspringgreen=new r(0,250,154,1),s.mediumturquoise=new r(72,209,204,1),s.mediumvioletred=new r(199,21,133,1),s.midnightblue=new r(25,25,112,1),s.mintcream=new r(245,255,250,1),s.mistyrose=new r(255,228,225,1),s.moccasin=new r(255,228,181,1),s.navajowhite=new r(255,222,173,1),s.navy=new r(0,0,128,1),s.oldlace=new r(253,245,230,1),s.olive=new r(128,128,0,1),s.olivedrab=new r(107,142,35,1),s.orange=new r(255,165,0,1),s.orangered=new r(255,69,0,1),s.orchid=new r(218,112,214,1),s.palegoldenrod=new r(238,232,170,1),s.palegreen=new r(152,251,152,1),s.paleturquoise=new r(175,238,238,1),s.palevioletred=new r(219,112,147,1),s.papayawhip=new r(255,239,213,1),s.peachpuff=new r(255,218,185,1),s.peru=new r(205,133,63,1),s.pink=new r(255,192,203,1),s.plum=new r(221,160,221,1),s.powderblue=new r(176,224,230,1),s.purple=new r(128,0,128,1),s.red=new r(255,0,0,1),s.rosybrown=new r(188,143,143,1),s.royalblue=new r(65,105,225,1),s.saddlebrown=new r(139,69,19,1),s.salmon=new r(250,128,114,1),s.sandybrown=new r(244,164,96,1),s.seagreen=new r(46,139,87,1),s.seashell=new r(255,245,238,1),s.sienna=new r(160,82,45,1),s.silver=new r(192,192,192,1),s.skyblue=new r(135,206,235,1),s.slateblue=new r(106,90,205,1),s.slategray=new r(112,128,144,1),s.slategrey=s.slategray,s.snow=new r(255,250,250,1),s.springgreen=new r(0,255,127,1),s.steelblue=new r(70,130,180,1),s.tan=new r(210,180,140,1),s.teal=new r(0,128,128,1),s.thistle=new r(216,191,216,1),s.tomato=new r(255,99,71,1),s.turquoise=new r(64,224,208,1),s.violet=new r(238,130,238,1),s.wheat=new r(245,222,179,1),s.white=new r(255,255,255,1),s.whitesmoke=new r(245,245,245,1),s.yellow=new r(255,255,0,1),s.yellowgreen=new r(154,205,50,1);var kt=s,P=class o{constructor(t){this.hsva=new Q(0,1,1,1),t&&this.stringToColor(t)}static from(t){return typeof t=="string"?new o(t):t instanceof o?t.clone():t instanceof r?new o().setRgba(t.red,t.green,t.blue,t.alpha):t instanceof Q?new o().setHsva(t.hue,t.saturation,t.value,t.alpha):t instanceof N?new o().setHsla(t.hue,t.saturation,t.lightness,t.alpha):null}clone(){return o.from(this.getRgba())}setFromString(t){return this.stringToColor(t)}setHsva(t=null,a=100,n=100,e=1){return t!=null&&(this.hsva.hue=t),a!=null&&(this.hsva.saturation=a),n!=null&&(this.hsva.value=n),e!=null&&(e=e>1?1:e<0?0:e,this.hsva.alpha=e),this}setRgba(t=null,a=null,n=null,e=1){return e!=null&&(e=e>1?1:e<0?0:e),this.hsva=this.rgbaToHsva(new r(t,a,n,e)),this}setHsla(t,a,n,e=1){e!=null&&(e=e>1?1:e<0?0:e);let i=new N(t,a,n,e);return this.hsva=this.hslaToHsva(i),this}toHexString(t=!1){let a=this.getRgba(),n="#"+(1<<24|a.getRed()<<16|a.getGreen()<<8|a.getBlue()).toString(16).substring(1);return t&&(n+=(256|Math.round(a.alpha*255)).toString(16).substring(1)),n.toUpperCase()}toRgbaString(){return this.getRgba().toString()}toRgbString(){return this.getRgba().toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.getHsva().toString()}toHsvString(){return this.getHsva().toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Q(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return this.hsvaToRgba(this.getHsva())}getHsla(){return this.rgbaToHsla(this.getRgba())}getCmyk(){return this.rgbaToCmyk(this.getRgba())}equal(t){return this.hsva.equal(t.getHsva())}hsvaToHsla(t){let a=t.hue,n=t.saturation/100,e=t.value/100,i=(2-n)*t.value/2,c=n*e/(i<=1?i:2-i)||0;return new N(a,i*100,c*100,t.alpha)}hslaToHsva(t){let a=t.hue,n=t.lightness/100*2,e=t.saturation/100*(n<=1?n:2-n),i=(n+e)/2,c=2*e/(n+e)||0;return new Q(a,c,i,t.alpha)}rgbaToHsva(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=t.alpha,c=Math.max(a,n,e),l=Math.min(a,n,e),h=c-l,u=0,f=c===0?0:h/c,A=c;if(c!==l){switch(c){case a:u=(n-e)/h+(n.5?A/(2-c-l):A/(c+l),c){case a:h=(n-e)/A+(n1&&(n-=1),n<1/6?t+(a-t)*6*n:n<1/2?a:n<2/3?t+(a-t)*(2/3-n)*6:t}cmykToRgba(t){let a=t.black/100,n=t.cyan/100,e=t.magenta/100,i=t.yellow/100,c=Math.min(1,(1-n)*(1-a)),l=Math.min(1,(1-e)*(1-a)),h=Math.min(1,(1-i)*(1-a));return c=c*255,l=l*255,h=h*255,new r(c,l,h,1)}rgbaToCmyk(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=1-a,c=1-n,l=1-e,h=Math.min(i,c,l);return h===1?new st(0,0,0,100):(i=(i-h)/(1-h),c=(c-h)/(1-h),l=(l-h)/(1-h),h=h*100,i=i*100,c=c*100,l=l*100,new st(i,c,l,h))}roundNumber(t){return Math.round(t*100)/100}stringToColor(t){let a=t.replace(/ /g,"").toLowerCase(),n=kt[a]||null;if(a[0]==="#"){let c=a.substr(1),l=c.length,h=1,u=[];if(l===3)u=c.split("").map(f=>f+f);else if(l===6)u=c.match(/.{2}/g);else if(l===8){let f=c.substr(-2);c=c.substr(0,l-2),h=this.roundNumber(parseInt(f||"FF",16)/255),u=c.match(/.{2}/g)}u.length===3&&(n=new r(parseInt(u[0],16),parseInt(u[1],16),parseInt(u[2],16),h))}let e=a.indexOf("("),i=a.indexOf(")");if(e!==-1&&i+1===a.length){let c=a.substr(0,e),l=a.substr(e+1,i-(e+1)).split(","),h=1;switch(c){case"rgba":h=parseFloat(l.pop());case"rgb":n=new r(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);break;case"hsla":h=parseFloat(l.pop());case"hsl":let u=new N(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);n=this.hslaToRgba(u);break;case"cmyk":let f=new st(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10));n=this.cmykToRgba(f);break}}return n&&(this.hsva=this.rgbaToHsva(n)),this}},qt=(()=>{let t=class t{constructor(){this.subscriptions=[],this.window={pageXOffset:0,pageYOffset:0},this.mouseup=new at,this.document=yt(mt),this.elementRef=yt(L),this.window=document.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame(),this.addEventListeners()}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"touchstart",{passive:!0,capture:!0}),S(this.elementRef.nativeElement,"mousedown",{capture:!0})).subscribe(n=>this.onEventChange(n)))}onEventChange(n){this.calculate(n),H(S(this.document,"mouseup",{capture:!0}),S(this.document,"touchend",{capture:!0})).pipe(ct(this.mouseup)).subscribe(()=>this.mouseup.next()),H(S(this.document,"mousemove",{capture:!0}),S(this.document,"touchmove",{passive:!0,capture:!0})).pipe(ct(this.mouseup)).subscribe(e=>this.calculate(e))}calculateCoordinates(n){let{width:e,height:i,top:c,left:l}=this.elementRef.nativeElement.getBoundingClientRect(),h=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,u=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,f=Math.max(0,Math.min(h-(l+this.window.pageXOffset),e)),A=Math.max(0,Math.min(u-(c+this.window.pageYOffset),i));this.movePointer({x:f,y:A,height:i,width:e})}calculate(n){if(n.stopPropagation(),n.type.includes("touch")||n.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(n);this.requestAnimationFrame.call(this.window,()=>this.calculateCoordinates(n))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t});let o=t;return o})(),Ve=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.saturation,e.value),this.updateBackgroundColor()})}movePointer({x:n,y:e,height:i,width:c}){let l=n*100/c,h=-(e*100/i)+100;l>10&&(h=h<1?1:h),this.changePointerPosition(l,h);let u=this.color().getHsva(),f=new P().setHsva(u.hue,l,h,u.alpha);this.color.set(f)}updateBackgroundColor(){let n=null;if(this.color()){let e=this.color().getHsva();n=new P().setHsva(e.hue,100,100).toRgbString()}this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",n)}changePointerPosition(n,e){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-e}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${n}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["saturation-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==);touch-action:none}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0});let o=t;return o})(),Oe=new Dt("COLOR_PICKER_CONFIG",{providedIn:"root",factory:()=>new Et}),Et=(()=>{let t=class t{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return e?i=new(e||t):i=Kt(Oe),i},providedIn:"root"});let o=t;return o})(),ke=(()=>{let t=class t{constructor(n,e,i,c){this.pickerConfig=n,this.renderer=e,this.elementRef=i,this.document=c,this.color=C.required(),this.colorType=C("rgba"),this.subscriptions=[],this.renderTitle(),J(()=>{this.renderBackgroundColor()})}ngOnInit(){this.subscriptions.push(S(this.elementRef.nativeElement,"click").subscribe(()=>this.onClick()))}renderTitle(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.pickerConfig?.indicatorTitle||"")}renderBackgroundColor(){this.backgroundColorEl&&this.renderer.setStyle(this.backgroundColorEl.nativeElement,"backgroundColor",this.color().toRgbaString())}onClick(){let n=this.renderer.createElement("input");switch(this.renderer.setStyle(n,"position","absolute"),this.renderer.setStyle(n,"top","-100%"),this.renderer.setStyle(n,"left","-100%"),this.colorType()){case"hsla":n.value=this.color().toHslaString();break;case"hex":n.value=this.color().toHexString(this.color().getRgba().alpha<1);break;default:n.value=this.color().toRgbaString()}this.renderer.appendChild(this.elementRef.nativeElement,n),n.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,n)}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(U),M(L),M(mt))},t.\u0275cmp=_({type:t,selectors:[["indicator-component"]],viewQuery:function(e,i){if(e&1&&Z(ee,5),e&2){let c;j(c=z())&&(i.backgroundColorEl=c.first)}},inputs:{color:[1,"color"],colorType:[1,"colorType"]},standalone:!0,features:[q],decls:5,vars:0,consts:[["backgroundColorEl",""],["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,i){e&1&&(d(0,"div",null,0),Lt(),d(2,"svg",1),G(3,"path",2)(4,"path",3),p()())},styles:[F,'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC) repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\\a0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0});let o=t;return o})(),Se=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.hue)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i*359:n/c*359;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(l,h.saturation,h.value,h.alpha);this.color.set(u)}changePointerPosition(n){let e=n/360*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["hue-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:[F,"[_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;border-radius:2px;display:block;height:12px;position:relative;touch-action:none}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),_e=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=C.required(),this.colorChange=X(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.alpha)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i:n/c;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(h.hue,h.saturation,h.value,l);this.colorChange.emit(u)}changePointerPosition(n){let e=n*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}get gradient(){let n=this.color().getRgba();return`linear-gradient(to ${this.isVertical()?"bottom":"right"}, rgba(${n.red}, ${n.green}, ${n.blue}, 0) 0%, rgb(${n.red}, ${n.green}, ${n.blue}) 100%)`}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["alpha-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{colorChange:"colorChange"},standalone:!0,features:[lt,q],decls:3,vars:2,consts:[["pointer",""],[1,"pointer"],[1,"gradient-color"]],template:function(e,i){e&1&&G(0,"div",1,0)(2,"div",2),e&2&&(g(2),T("background",i.gradient))},styles:[F,"[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),Tt=(()=>{let t=class t{constructor(){this.min=C(0,{transform:ft}),this.max=C(255,{transform:ft}),this.inputChange=X()}inputChanges(n){let i=(n.target||n.srcElement).value,c=parseFloat(i);!isNaN(c)&&c>=this.min()&&c<=this.max()&&this.inputChange.emit(c)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t,selectors:[["","inputChange",""]],hostBindings:function(e,i){e&1&&y("input",function(l){return i.inputChanges(l)})},inputs:{min:[1,"min"],max:[1,"max"]},outputs:{inputChange:"inputChange"},standalone:!0});let o=t;return o})(),qe=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getRgba()}onInputChange(n,e){let i=this.value,c=e==="R"?n:i.red,l=e==="G"?n:i.green,h=e==="B"?n:i.blue,u=e==="A"?n:i.alpha,f=new P().setRgba(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["rgba-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"R")}),p(),w(2,ne,2,0,"span"),p(),d(3,"div",0)(4,"input",1),y("inputChange",function(l){return i.onInputChange(l,"G")}),p(),w(5,ie,2,0,"span"),p(),d(6,"div",0)(7,"input",1),y("inputChange",function(l){return i.onInputChange(l,"B")}),p(),w(8,oe,2,0,"span"),p(),w(9,re,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getRed().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",i.value==null?null:i.value.getGreen().toString()),g(),v(i.labelVisible()?5:-1),g(2),b("value",i.value==null?null:i.value.getBlue().toString()),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,"[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}"],changeDetection:0});let o=t;return o})(),Ee=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getHsla()}onInputChange(n,e){let i=this.value,c=e==="H"?n:i.hue,l=e==="S"?n:i.saturation,h=e==="L"?n:i.lightness,u=e==="A"?n:i.alpha,f=new P().setHsla(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hsla-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"inputChange","value"],["type","text","pattern","[0-9]*","min","0","max","100",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"H")}),p(),w(2,ae,2,0,"span"),p(),d(3,"div",0)(4,"input",2),y("inputChange",function(l){return i.onInputChange(l,"S")}),p(),w(5,ce,2,0,"span"),p(),d(6,"div",0)(7,"input",2),y("inputChange",function(l){return i.onInputChange(l,"L")}),p(),w(8,le,2,0,"span"),p(),w(9,pe,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getHue().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",(i.value==null?null:i.value.getSaturation())+"%"),g(),v(i.labelVisible()?5:-1),g(2),b("value",(i.value==null?null:i.value.getLightness())+"%"),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,Ut],changeDetection:0});let o=t;return o})(),Be=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.prefixValue=C("",{alias:"prefix"})}get value(){return this.prefixValue()+(this.color()?this.color().toHexString(this.color().getRgba().alpha<1).replace("#",""):"")}onInputChange(n,e){let i=e.toLowerCase().replace("#","");if(((n.keyCode===13||n.key.toLowerCase()==="enter")&&i.length===3||i.length===6||i.length===8)&&parseInt(i,16).toString(16).padStart(i.length,"0")===i&&this.value!==i){let h=new P(`#${i}`);this.color.set(h)}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hex-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],prefixValue:[1,"prefix","prefixValue"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:4,vars:2,consts:[["elRef",""],[1,"column"],["type","text",3,"keyup","value"]],template:function(e,i){if(e&1){let c=k();d(0,"div",1)(1,"input",2,0),y("keyup",function(h){V(c);let u=Yt(2);return O(i.onInputChange(h,u.value))}),p(),w(3,ue,2,0,"span"),p()}e&2&&(g(),b("value",i.value),g(2),v(i.labelVisible()?3:-1))},styles:[F,Ut],changeDetection:0});let o=t;return o})(),Fe=Ot("opacityAnimation",[Xt("true",B({opacity:1})),tt("void => *",[B({opacity:0}),$(".08s ease-in")])]),Re=Ot("listAnimation",[tt("* => up",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => right",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => down",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => left",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})])]),Jt=(()=>{let t=class t{constructor(n,e,i){this.pickerConfig=n,this.elementRef=e,this.renderer=i,this.activeColor=C.required(),this.color=C.required(),this.showDepthText=C(!1,{alias:"show-depth-title",transform:R}),this.selectionChange=X(),this.longPress=X(),this.mouseup=new at,this.subscriptions=[],this.addEventListeners(),J(()=>{this.updateBackground(),this.updateTitleAttr()})}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.removeEventListeners()}get className(){return this.activeColor()?this.color().toRgbaString()===this.activeColor().toRgbaString():!1}updateBackground(){this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.color().toRgbaString())}updateTitleAttr(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.getTitle())}getTitle(){let n=this.color()?this.color().toHexString():"";return this.showDepthText()?(this.pickerConfig?.presetsTitle||"").replace(/\{\s*(.+?)\s*\}/g,(e,i)=>n):n}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"mouseup"),S(this.elementRef.nativeElement,"touchend")).subscribe(()=>this.onTouchEnd())),this.subscriptions.push(H(S(this.elementRef.nativeElement,"mousedown"),S(this.elementRef.nativeElement,"touchstart",{passive:!0})).subscribe(n=>this.onTouch(n)))}removeEventListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}onTouch(n){Bt(n).pipe(Ft(e=>e.timeStamp||new Date().getTime()),Rt(350),ct(this.mouseup)).subscribe(()=>this.longPress.emit(!0)),this.selectionChange.emit(this.color())}onTouchEnd(){this.mouseup.next()}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(L),M(U))},t.\u0275cmp=_({type:t,selectors:[["color-preset"]],hostVars:2,hostBindings:function(e,i){e&2&&ht("selected",i.className)},inputs:{activeColor:[1,"activeColor"],color:[1,"color"],showDepthText:[1,"show-depth-title","showDepthText"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},standalone:!0,features:[q],decls:0,vars:0,template:function(e,i){},styles:[F,"[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0});let o=t;return o})(),We=(()=>{let t=class t{transform(n,e=!0){return e?n.slice().reverse():n}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"reverse",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ie=(()=>{let t=class t{constructor(n,e){this.document=n,this.cdr=e,this.list=C.required(),this.activeColor=C.required(),this.direction=C("up"),this.selectionChange=X(),this.showChildren=!1,this.subscriptions=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}get className(){return`direction-${this.direction()}`}onSelectionChange(n){this.selectionChange.emit(n)}onLongPress(){this.showChildren=!0,this.listenDocumentEvents()}removeListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}listenDocumentEvents(){this.subscriptions.push(H(S(this.document,"mousedown"),S(this.document,"touchstart",{passive:!0})).subscribe(()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}};t.\u0275fac=function(e){return new(e||t)(M(mt),M(Vt))},t.\u0275cmp=_({type:t,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,i){e&2&&jt("className",i.className)},inputs:{list:[1,"list"],activeColor:[1,"activeColor"],direction:[1,"direction"]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[q],decls:4,vars:8,consts:[[3,"longPress","selectionChange","show-depth-title","color","activeColor"],[1,"reflection"],[1,"sublist"],[3,"color","activeColor"],[3,"selectionChange","color","activeColor"]],template:function(e,i){e&1&&(d(0,"color-preset",0),y("longPress",function(){return i.onLongPress()})("selectionChange",function(l){return i.onSelectionChange(l)}),p(),G(1,"div",1)(2,"div",1),w(3,ge,4,5,"div",2)),e&2&&(b("show-depth-title",i.list().length>1)("color",i.list()[0])("activeColor",i.activeColor()),g(),T("background-color",i.list()[0].toRgbaString()),g(),T("background-color",i.list()[0].toRgbaString()),g(),v(i.showChildren?3:-1))},dependencies:[Jt,We],styles:[F,"[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:#0000004d 0 0 2px,#0000004d 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Fe,Re]},changeDetection:0});let o=t;return o})(),De=(()=>{let t=class t{transform(n,e){return n.reduce((i,c,l)=>l%e?i:i.concat([n.slice(l,l+e)]),[])}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"chunks",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ke=(()=>{let t=class t{constructor(){this.columns=C(8,{transform:ft}),this.colorPresets=C.required(),this.color=W.required(),this.direction=C("up")}onSelectionChange(n){let e=n.getRgba(),i=new P().setRgba(e.red,e.green,e.blue,e.alpha);this.color.set(i)}isList(n){return Array.isArray(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["color-presets-component"]],inputs:{columns:[1,"columns"],colorPresets:[1,"colorPresets"],color:[1,"color"],direction:[1,"direction"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:3,vars:3,consts:[[1,"presets-row",3,"ngClass"],[3,"list","direction","activeColor","ngClass"],[3,"ngClass","color","activeColor"],[3,"selectionChange","list","direction","activeColor","ngClass"],[3,"selectionChange","ngClass","color","activeColor"]],template:function(e,i){e&1&&(ut(0,be,3,4,"div",0,pt),Y(2,"chunks")),e&2&&dt(Mt(2,0,i.colorPresets(),i.columns()))},dependencies:[Jt,Ie,Nt,De],styles:[F,"[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0});let o=t;return o})(),x=function(o){return o.hex="hex",o.hexa="hexa",o.rgba="rgba",o.rgb="rgb",o.hsla="hsla",o.hsl="hsl",o.cmyk="cmyk",o}(x||{}),rt=class{constructor(){this.modelValue=null,this.initValue=null,this.valueChanged=new at,this.presetsVisibilityChanges=new vt(!0),this.initType=null,this.alphaChannelVisibilityChanges=new vt(!0),this.valueChanges=this.valueChanged.asObservable().pipe(Wt((a,n)=>a.toRgbaString()==n.toRgbaString())),this.colorPresets=[];let t=P.from(new r(255,0,0,1));this.setValue(t)}setValueFrom(t){let a=P.from(t);return this.initValue||(this.initValue=P.from(t)),typeof t=="string"&&!this.initType&&(this.initType=this.finOutInputType(t)),this.setValue(a),this}get value(){return this.modelValue}set value(t){this.setValue(t)}reset(){let t=this.initValue?this.initValue.clone():P.from(new r(255,0,0,1));return this.setValue(t),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}getColorType(t){return this.finOutInputType(t)}setColorPresets(t){return this.colorPresets=this.setPresets(t),this}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}setValue(t){return this.modelValue=t,this.valueChanged.next(t),this}finOutInputType(t){let a=t.replace(/ /g,"").toLowerCase();if(a[0]==="#")return a.length>7?x.hexa:x.hex;let n=a.indexOf("(");switch(a.substr(0,n)){case x.rgba:return x.rgba;case x.rgb:return x.rgb;case x.hsla:return x.hsla;case x.hsl:return x.hsl;case x.cmyk:return x.cmyk}return null}setPresets(t){let a=[];for(let n of t)Array.isArray(n)?a.push(this.setPresets(n)):a.push(new P(n));return a}};function Ct(o,t){switch(t){case x.hex:return o.toHexString();case x.hexa:return o.toHexString(!0);case x.rgb:return o.toRgbString();case x.rgba:return o.toRgbaString();case x.hsl:return o.toHslString();case x.hsla:return o.toHslaString();default:return o.toRgbaString()}}function He(o,t){return o instanceof P&&t instanceof P?o.equal(t):o===t}var $t=(()=>{let t=class t{constructor(n){this.cdr=n,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.color=W(),this.control=C(new rt),this.subscriptions=[]}ngOnInit(){this.color()&&this.control().setValueFrom(this.color()),this.control().hasPresets()||this.control().setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control().valueChanges.subscribe(n=>{this.color.set(Ct(n,this.control().initType)),this.cdr.detectChanges()}))}ngOnChanges(n){let e=this.color(),i=this.control();e&&i&&!He(Ct(i.value,i.initType),e)&&i.setValueFrom(e)}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}};t.\u0275fac=function(e){return new(e||t)(M(Vt))},t.\u0275cmp=_({type:t,selectors:[["chrome-picker"]],inputs:{color:[1,"color"],control:[1,"control"]},outputs:{color:"colorChange"},standalone:!0,features:[Ht,q],ngContentSelectors:ve,decls:20,vars:11,consts:[[3,"colorChange","color"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"color"],[1,"controls-row","presentation"],["label","",3,"alpha","color"],["label","","prefix","#",3,"color"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets"],["label","",3,"colorChange","alpha","color"],["label","","prefix","#",3,"colorChange","color"],[3,"colorChange","color","colorPresets"]],template:function(e,i){if(e&1&&(zt(we),Pt(0),d(1,"saturation-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),d(2,"div",1)(3,"div",2)(4,"div",3),G(5,"indicator-component",4),p(),d(6,"div",3)(7,"hue-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),w(8,ye,1,1,"alpha-component",5),Y(9,"async"),p()(),d(10,"div",6)(11,"div",3),w(12,xe,2,4,"rgba-input-component",7)(13,Ae,2,4,"hsla-input-component",7)(14,Pe,1,1,"hex-input-component",8),p(),d(15,"div",9)(16,"span",10),y("click",function(){return i.changePresentation()}),p()()()(),w(17,Me,1,2,"color-presets-component",11),Y(18,"async"),Pt(19,1)),e&2){let c;g(),I("color",i.control().value),g(4),b("colorType",i.presentations[i.selectedPresentation])("color",i.control().value),g(2),I("color",i.control().value),g(),v(nt(9,7,i.control().alphaChannelVisibilityChanges)?8:-1),g(4),v((c=i.presentations[i.selectedPresentation])==="rgba"?12:c==="hsla"?13:c==="hex"?14:-1),g(5),v(nt(18,9,i.control().presetsVisibilityChanges)?17:-1)}},dependencies:[Ve,ke,Se,_e,qe,Ee,Be,Ke,Qt],styles:[F,"[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .controls .pointer{box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset #0000004d 0 0 2px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] color-preset:first-child, [_nghost-%COMP%] color-preset-sublist:first-child{margin:0}[_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] .presets-row>color-preset:hover{transform:scale(1.18)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .presets-row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) no-repeat center;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}"],changeDetection:0});let o=t;return o})();var Le=["pickerComponent"];function Ge(o,t){if(o&1){let a=k();d(0,"button",3),y("click",function(e){V(a);let i=m(2);return O(i.applyClick(e))}),E(1,"Apply"),p()}}function Ze(o,t){if(o&1){let a=k();d(0,"chrome-picker",1),y("colorChange",function(){V(a);let e=m();return O(e.onColorChanged())}),w(1,Ge,2,0,"button",2),p()}if(o&2){let a=m();ht("top",a.isTop),b("control",a.colorControl),g(),v(a.isImmediate?-1:1)}}var vn=(()=>{let t=class t{constructor(n){this.el=n,this.isImmediate=!1,this.colorChange=new Gt,this.colorControl=new rt,this.isVisible=!1,this.isTop=!1,this.colorControl.hideAlphaChannel()}set color(n){this.colorControl.setValueFrom(n),this._color=this.colorControl.value}get background(){return this._color?this._color.toHexString():""}onWidowClick(n){n.composedPath().includes(this.el.nativeElement)||(this.isVisible=!1)}showColorPicker(n){if(!this.isVisible){let e=this.el.nativeElement.getBoundingClientRect();this.isTop=e.top+e.height+320>window.innerHeight&&e.top-320>0}this.isVisible=!0}applyClick(n){n.stopPropagation(),this._color=this.colorControl.value,this.triggerUpdate(),this.isVisible=!1}onColorChanged(){this.isImmediate&&this.triggerUpdate()}triggerUpdate(){this.colorChange.emit(Ct(this.colorControl.value,this.colorControl.initType))}};t.\u0275fac=function(e){return new(e||t)(M(L))},t.\u0275cmp=_({type:t,selectors:[["dsw-color-picker"]],viewQuery:function(e,i){if(e&1&&Z(Le,7),e&2){let c;j(c=z())&&(i.pickerComponent=c.first)}},hostVars:2,hostBindings:function(e,i){e&1&&y("mousedown",function(l){return i.onWidowClick(l)},!1,Zt)("click",function(l){return i.showColorPicker(l)}),e&2&&T("background-color",i.background)},inputs:{isImmediate:"isImmediate",color:"color"},outputs:{colorChange:"colorChange"},standalone:!0,features:[q],decls:1,vars:1,consts:[[3,"top","control"],[3,"colorChange","control"],["type","button",1,"btn","btn-primary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,i){e&1&&w(0,Ze,2,4,"chrome-picker",0),e&2&&v(i.isVisible?0:-1)},dependencies:[$t],styles:["[_nghost-%COMP%]{display:block;width:100%;height:32px;cursor:pointer;border:1px solid rgb(210,210,210)}chrome-picker[_ngcontent-%COMP%]{position:fixed;transform:translateY(32px);cursor:default;z-index:2}.btn-primary[_ngcontent-%COMP%]{width:100%;border-radius:0}.top[_ngcontent-%COMP%]{transform:translateY(-100%)}"],changeDetection:0});let o=t;return o})();export{vn as a}; +import{c as Ot,d as $,f as B,g as Xt,h as tt,i as it,j as ot}from"./chunk-W7AFIDCE.js";import{b as mt,c as Nt,g as Qt}from"./chunk-LT3W5FMN.js";import{$a as g,$b as D,A as H,Aa as C,Ab as pt,Ba as L,Bb as ut,Bc as Vt,Cb as dt,Da as Gt,Db as d,Eb as p,Fb as G,Gc as R,Hc as ft,J as Rt,Jb as k,Jc as J,K as Wt,Kb as jt,Nb as y,Ob as m,Pb as zt,Qb as Pt,S as ct,Tb as Z,Ub as j,Vb as z,Wb as Yt,X as It,Xb as E,Za as Zt,_ as Dt,_b as I,aa as Kt,ab as M,ac as K,ba as yt,cc as q,eb as U,ec as gt,f as at,fa as _,g as vt,ha as xt,hc as Y,ia as At,ic as nt,jc as Mt,kb as W,lb as lt,m as Bt,pa as Ht,qa as V,r as Ft,ra as O,rb as w,sa as Lt,tb as b,ub as T,vb as ht,y as S,yb as v,za as X}from"./chunk-ZKAUCJHV.js";var St=["pointer"],ee=["backgroundColorEl"],F="[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}";function ne(o,t){o&1&&(d(0,"span"),E(1,"R"),p())}function ie(o,t){o&1&&(d(0,"span"),E(1,"G"),p())}function oe(o,t){o&1&&(d(0,"span"),E(1,"B"),p())}function se(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function re(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",2),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,se,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}function ae(o,t){o&1&&(d(0,"span"),E(1,"H"),p())}function ce(o,t){o&1&&(d(0,"span"),E(1,"S"),p())}function le(o,t){o&1&&(d(0,"span"),E(1,"L"),p())}function he(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function pe(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",3),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,he,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}var Ut="[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}";function ue(o,t){o&1&&(d(0,"span"),E(1,"HEX"),p())}function de(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(2);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=t.$implicit,n=m(2);b("color",a)("activeColor",n.activeColor())}}function ge(o,t){if(o&1&&(d(0,"div",2),ut(1,de,1,2,"color-preset",3,pt),Y(3,"reverse"),p()),o&2){let a=m();b("@opacityAnimation",a.showChildren)("@listAnimation",a.direction),g(),dt(Mt(3,2,a.list(),a.direction()=="up"||a.direction()=="right"))}}var _t=(o,t)=>({first:o,last:t});function fe(o,t){if(o&1){let a=k();d(0,"color-preset-sublist",3),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("list",n)("direction",c.direction())("activeColor",c.color())("ngClass",gt(4,_t,e===0,e===i-1))}}function me(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("ngClass",gt(3,_t,e===0,e===i-1))("color",n)("activeColor",c.color())}}function Ce(o,t){if(o&1&&w(0,fe,1,7,"color-preset-sublist",1)(1,me,1,6,"color-preset",2),o&2){let a=t.$implicit,n=m(2);v(n.isList(a)?0:1)}}function be(o,t){if(o&1&&(d(0,"div",0),ut(1,Ce,2,1,null,null,pt),p()),o&2){let a=t.$implicit,n=t.$index,e=t.$count;b("ngClass",gt(1,_t,n===0,n===e-1)),g(),dt(a)}}var we=[[["","before",""]],"*"],ve=["[before]","*"];function ye(o,t){if(o&1){let a=k();d(0,"alpha-component",0),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function xe(o,t){if(o&1){let a=k();d(0,"rgba-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Ae(o,t){if(o&1){let a=k();d(0,"hsla-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Pe(o,t){if(o&1){let a=k();d(0,"hex-input-component",13),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function Me(o,t){if(o&1){let a=k();d(0,"color-presets-component",14),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value),b("colorPresets",a.control().presets)}}var et=class{},st=class extends et{constructor(t,a,n,e){super(),this.cyan=t,this.magenta=a,this.yellow=n,this.black=e}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}equal(t){return this===t?!0:this.cyan===t.cyan&&this.magenta===t.magenta&&this.yellow===t.yellow&&this.black===t.black}},N=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.lightness=n,this.alpha=e}toString(t=!0){return t?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.lightness===t.lightness&&this.alpha===t.alpha}},Q=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.value=n,this.alpha=e}toString(t=!0){return t?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},r=class extends et{constructor(t,a,n,e){super(),this.red=t,this.green=a,this.blue=n,this.alpha=e}toString(t=!0){return t?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.red===t.red&&this.green===t.green&&this.blue===t.blue&&this.alpha===t.alpha}},s=class s{};s.transparent=new r(0,0,0,0),s.aliceblue=new r(240,248,255,1),s.antiquewhite=new r(250,235,215,1),s.aqua=new r(0,255,255,1),s.aquamarine=new r(127,255,212,1),s.azure=new r(240,255,255,1),s.beige=new r(245,245,220,1),s.bisque=new r(255,228,196,1),s.black=new r(0,0,0,1),s.blanchedalmond=new r(255,235,205,1),s.blue=new r(0,0,255,1),s.blueviolet=new r(138,43,226,1),s.brown=new r(165,42,42,1),s.burlywood=new r(222,184,135,1),s.cadetblue=new r(95,158,160,1),s.chartreuse=new r(127,255,0,1),s.chocolate=new r(210,105,30,1),s.coral=new r(255,127,80,1),s.cornflowerblue=new r(100,149,237,1),s.cornsilk=new r(255,248,220,1),s.crimson=new r(220,20,60,1),s.cyan=new r(0,255,255,1),s.darkblue=new r(0,0,139,1),s.darkcyan=new r(0,139,139,1),s.darkgoldenrod=new r(184,134,11,1),s.darkgray=new r(169,169,169,1),s.darkgreen=new r(0,100,0,1),s.darkgrey=s.darkgray,s.darkkhaki=new r(189,183,107,1),s.darkmagenta=new r(139,0,139,1),s.darkolivegreen=new r(85,107,47,1),s.darkorange=new r(255,140,0,1),s.darkorchid=new r(153,50,204,1),s.darkred=new r(139,0,0,1),s.darksalmon=new r(233,150,122,1),s.darkseagreen=new r(143,188,143,1),s.darkslateblue=new r(72,61,139,1),s.darkslategray=new r(47,79,79,1),s.darkslategrey=s.darkslategray,s.darkturquoise=new r(0,206,209,1),s.darkviolet=new r(148,0,211,1),s.deeppink=new r(255,20,147,1),s.deepskyblue=new r(0,191,255,1),s.dimgray=new r(105,105,105,1),s.dimgrey=s.dimgray,s.dodgerblue=new r(30,144,255,1),s.firebrick=new r(178,34,34,1),s.floralwhite=new r(255,250,240,1),s.forestgreen=new r(34,139,34,1),s.fuchsia=new r(255,0,255,1),s.gainsboro=new r(220,220,220,1),s.ghostwhite=new r(248,248,255,1),s.gold=new r(255,215,0,1),s.goldenrod=new r(218,165,32,1),s.gray=new r(128,128,128,1),s.grey=s.gray,s.green=new r(0,128,0,1),s.greenyellow=new r(173,255,47,1),s.honeydew=new r(240,255,240,1),s.hotpink=new r(255,105,180,1),s.indianred=new r(205,92,92,1),s.indigo=new r(75,0,130,1),s.ivory=new r(255,255,240,1),s.khaki=new r(240,230,140,1),s.lavender=new r(230,230,250,1),s.lavenderblush=new r(255,240,245,1),s.lawngreen=new r(124,252,0,1),s.lemonchiffon=new r(255,250,205,1),s.lightblue=new r(173,216,230,1),s.lightcoral=new r(240,128,128,1),s.lightcyan=new r(224,255,255,1),s.lightgoldenrodyellow=new r(250,250,210,1),s.lightgray=new r(211,211,211,1),s.lightgreen=new r(144,238,144,1),s.lightgrey=s.lightgray,s.lightpink=new r(255,182,193,1),s.lightsalmon=new r(255,160,122,1),s.lightseagreen=new r(32,178,170,1),s.lightskyblue=new r(135,206,250,1),s.lightslategray=new r(119,136,153,1),s.lightslategrey=s.lightslategray,s.lightsteelblue=new r(176,196,222,1),s.lightyellow=new r(255,255,224,1),s.lime=new r(0,255,0,1),s.limegreen=new r(50,205,50,1),s.linen=new r(250,240,230,1),s.magenta=new r(255,0,255,1),s.maroon=new r(128,0,0,1),s.mediumaquamarine=new r(102,205,170,1),s.mediumblue=new r(0,0,205,1),s.mediumorchid=new r(186,85,211,1),s.mediumpurple=new r(147,112,219,1),s.mediumseagreen=new r(60,179,113,1),s.mediumslateblue=new r(123,104,238,1),s.mediumspringgreen=new r(0,250,154,1),s.mediumturquoise=new r(72,209,204,1),s.mediumvioletred=new r(199,21,133,1),s.midnightblue=new r(25,25,112,1),s.mintcream=new r(245,255,250,1),s.mistyrose=new r(255,228,225,1),s.moccasin=new r(255,228,181,1),s.navajowhite=new r(255,222,173,1),s.navy=new r(0,0,128,1),s.oldlace=new r(253,245,230,1),s.olive=new r(128,128,0,1),s.olivedrab=new r(107,142,35,1),s.orange=new r(255,165,0,1),s.orangered=new r(255,69,0,1),s.orchid=new r(218,112,214,1),s.palegoldenrod=new r(238,232,170,1),s.palegreen=new r(152,251,152,1),s.paleturquoise=new r(175,238,238,1),s.palevioletred=new r(219,112,147,1),s.papayawhip=new r(255,239,213,1),s.peachpuff=new r(255,218,185,1),s.peru=new r(205,133,63,1),s.pink=new r(255,192,203,1),s.plum=new r(221,160,221,1),s.powderblue=new r(176,224,230,1),s.purple=new r(128,0,128,1),s.red=new r(255,0,0,1),s.rosybrown=new r(188,143,143,1),s.royalblue=new r(65,105,225,1),s.saddlebrown=new r(139,69,19,1),s.salmon=new r(250,128,114,1),s.sandybrown=new r(244,164,96,1),s.seagreen=new r(46,139,87,1),s.seashell=new r(255,245,238,1),s.sienna=new r(160,82,45,1),s.silver=new r(192,192,192,1),s.skyblue=new r(135,206,235,1),s.slateblue=new r(106,90,205,1),s.slategray=new r(112,128,144,1),s.slategrey=s.slategray,s.snow=new r(255,250,250,1),s.springgreen=new r(0,255,127,1),s.steelblue=new r(70,130,180,1),s.tan=new r(210,180,140,1),s.teal=new r(0,128,128,1),s.thistle=new r(216,191,216,1),s.tomato=new r(255,99,71,1),s.turquoise=new r(64,224,208,1),s.violet=new r(238,130,238,1),s.wheat=new r(245,222,179,1),s.white=new r(255,255,255,1),s.whitesmoke=new r(245,245,245,1),s.yellow=new r(255,255,0,1),s.yellowgreen=new r(154,205,50,1);var kt=s,P=class o{constructor(t){this.hsva=new Q(0,1,1,1),t&&this.stringToColor(t)}static from(t){return typeof t=="string"?new o(t):t instanceof o?t.clone():t instanceof r?new o().setRgba(t.red,t.green,t.blue,t.alpha):t instanceof Q?new o().setHsva(t.hue,t.saturation,t.value,t.alpha):t instanceof N?new o().setHsla(t.hue,t.saturation,t.lightness,t.alpha):null}clone(){return o.from(this.getRgba())}setFromString(t){return this.stringToColor(t)}setHsva(t=null,a=100,n=100,e=1){return t!=null&&(this.hsva.hue=t),a!=null&&(this.hsva.saturation=a),n!=null&&(this.hsva.value=n),e!=null&&(e=e>1?1:e<0?0:e,this.hsva.alpha=e),this}setRgba(t=null,a=null,n=null,e=1){return e!=null&&(e=e>1?1:e<0?0:e),this.hsva=this.rgbaToHsva(new r(t,a,n,e)),this}setHsla(t,a,n,e=1){e!=null&&(e=e>1?1:e<0?0:e);let i=new N(t,a,n,e);return this.hsva=this.hslaToHsva(i),this}toHexString(t=!1){let a=this.getRgba(),n="#"+(1<<24|a.getRed()<<16|a.getGreen()<<8|a.getBlue()).toString(16).substring(1);return t&&(n+=(256|Math.round(a.alpha*255)).toString(16).substring(1)),n.toUpperCase()}toRgbaString(){return this.getRgba().toString()}toRgbString(){return this.getRgba().toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.getHsva().toString()}toHsvString(){return this.getHsva().toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Q(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return this.hsvaToRgba(this.getHsva())}getHsla(){return this.rgbaToHsla(this.getRgba())}getCmyk(){return this.rgbaToCmyk(this.getRgba())}equal(t){return this.hsva.equal(t.getHsva())}hsvaToHsla(t){let a=t.hue,n=t.saturation/100,e=t.value/100,i=(2-n)*t.value/2,c=n*e/(i<=1?i:2-i)||0;return new N(a,i*100,c*100,t.alpha)}hslaToHsva(t){let a=t.hue,n=t.lightness/100*2,e=t.saturation/100*(n<=1?n:2-n),i=(n+e)/2,c=2*e/(n+e)||0;return new Q(a,c,i,t.alpha)}rgbaToHsva(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=t.alpha,c=Math.max(a,n,e),l=Math.min(a,n,e),h=c-l,u=0,f=c===0?0:h/c,A=c;if(c!==l){switch(c){case a:u=(n-e)/h+(n.5?A/(2-c-l):A/(c+l),c){case a:h=(n-e)/A+(n1&&(n-=1),n<1/6?t+(a-t)*6*n:n<1/2?a:n<2/3?t+(a-t)*(2/3-n)*6:t}cmykToRgba(t){let a=t.black/100,n=t.cyan/100,e=t.magenta/100,i=t.yellow/100,c=Math.min(1,(1-n)*(1-a)),l=Math.min(1,(1-e)*(1-a)),h=Math.min(1,(1-i)*(1-a));return c=c*255,l=l*255,h=h*255,new r(c,l,h,1)}rgbaToCmyk(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=1-a,c=1-n,l=1-e,h=Math.min(i,c,l);return h===1?new st(0,0,0,100):(i=(i-h)/(1-h),c=(c-h)/(1-h),l=(l-h)/(1-h),h=h*100,i=i*100,c=c*100,l=l*100,new st(i,c,l,h))}roundNumber(t){return Math.round(t*100)/100}stringToColor(t){let a=t.replace(/ /g,"").toLowerCase(),n=kt[a]||null;if(a[0]==="#"){let c=a.substr(1),l=c.length,h=1,u=[];if(l===3)u=c.split("").map(f=>f+f);else if(l===6)u=c.match(/.{2}/g);else if(l===8){let f=c.substr(-2);c=c.substr(0,l-2),h=this.roundNumber(parseInt(f||"FF",16)/255),u=c.match(/.{2}/g)}u.length===3&&(n=new r(parseInt(u[0],16),parseInt(u[1],16),parseInt(u[2],16),h))}let e=a.indexOf("("),i=a.indexOf(")");if(e!==-1&&i+1===a.length){let c=a.substr(0,e),l=a.substr(e+1,i-(e+1)).split(","),h=1;switch(c){case"rgba":h=parseFloat(l.pop());case"rgb":n=new r(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);break;case"hsla":h=parseFloat(l.pop());case"hsl":let u=new N(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);n=this.hslaToRgba(u);break;case"cmyk":let f=new st(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10));n=this.cmykToRgba(f);break}}return n&&(this.hsva=this.rgbaToHsva(n)),this}},qt=(()=>{let t=class t{constructor(){this.subscriptions=[],this.window={pageXOffset:0,pageYOffset:0},this.mouseup=new at,this.document=yt(mt),this.elementRef=yt(L),this.window=document.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame(),this.addEventListeners()}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"touchstart",{passive:!0,capture:!0}),S(this.elementRef.nativeElement,"mousedown",{capture:!0})).subscribe(n=>this.onEventChange(n)))}onEventChange(n){this.calculate(n),H(S(this.document,"mouseup",{capture:!0}),S(this.document,"touchend",{capture:!0})).pipe(ct(this.mouseup)).subscribe(()=>this.mouseup.next()),H(S(this.document,"mousemove",{capture:!0}),S(this.document,"touchmove",{passive:!0,capture:!0})).pipe(ct(this.mouseup)).subscribe(e=>this.calculate(e))}calculateCoordinates(n){let{width:e,height:i,top:c,left:l}=this.elementRef.nativeElement.getBoundingClientRect(),h=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,u=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,f=Math.max(0,Math.min(h-(l+this.window.pageXOffset),e)),A=Math.max(0,Math.min(u-(c+this.window.pageYOffset),i));this.movePointer({x:f,y:A,height:i,width:e})}calculate(n){if(n.stopPropagation(),n.type.includes("touch")||n.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(n);this.requestAnimationFrame.call(this.window,()=>this.calculateCoordinates(n))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t});let o=t;return o})(),Ve=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.saturation,e.value),this.updateBackgroundColor()})}movePointer({x:n,y:e,height:i,width:c}){let l=n*100/c,h=-(e*100/i)+100;l>10&&(h=h<1?1:h),this.changePointerPosition(l,h);let u=this.color().getHsva(),f=new P().setHsva(u.hue,l,h,u.alpha);this.color.set(f)}updateBackgroundColor(){let n=null;if(this.color()){let e=this.color().getHsva();n=new P().setHsva(e.hue,100,100).toRgbString()}this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",n)}changePointerPosition(n,e){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-e}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${n}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["saturation-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==);touch-action:none}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0});let o=t;return o})(),Oe=new Dt("COLOR_PICKER_CONFIG",{providedIn:"root",factory:()=>new Et}),Et=(()=>{let t=class t{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return e?i=new(e||t):i=Kt(Oe),i},providedIn:"root"});let o=t;return o})(),ke=(()=>{let t=class t{constructor(n,e,i,c){this.pickerConfig=n,this.renderer=e,this.elementRef=i,this.document=c,this.color=C.required(),this.colorType=C("rgba"),this.subscriptions=[],this.renderTitle(),J(()=>{this.renderBackgroundColor()})}ngOnInit(){this.subscriptions.push(S(this.elementRef.nativeElement,"click").subscribe(()=>this.onClick()))}renderTitle(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.pickerConfig?.indicatorTitle||"")}renderBackgroundColor(){this.backgroundColorEl&&this.renderer.setStyle(this.backgroundColorEl.nativeElement,"backgroundColor",this.color().toRgbaString())}onClick(){let n=this.renderer.createElement("input");switch(this.renderer.setStyle(n,"position","absolute"),this.renderer.setStyle(n,"top","-100%"),this.renderer.setStyle(n,"left","-100%"),this.colorType()){case"hsla":n.value=this.color().toHslaString();break;case"hex":n.value=this.color().toHexString(this.color().getRgba().alpha<1);break;default:n.value=this.color().toRgbaString()}this.renderer.appendChild(this.elementRef.nativeElement,n),n.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,n)}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(U),M(L),M(mt))},t.\u0275cmp=_({type:t,selectors:[["indicator-component"]],viewQuery:function(e,i){if(e&1&&Z(ee,5),e&2){let c;j(c=z())&&(i.backgroundColorEl=c.first)}},inputs:{color:[1,"color"],colorType:[1,"colorType"]},standalone:!0,features:[q],decls:5,vars:0,consts:[["backgroundColorEl",""],["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,i){e&1&&(d(0,"div",null,0),Lt(),d(2,"svg",1),G(3,"path",2)(4,"path",3),p()())},styles:[F,'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC) repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\\a0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0});let o=t;return o})(),Se=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.hue)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i*359:n/c*359;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(l,h.saturation,h.value,h.alpha);this.color.set(u)}changePointerPosition(n){let e=n/360*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["hue-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:[F,"[_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;border-radius:2px;display:block;height:12px;position:relative;touch-action:none}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAACWCAYAAADXGgikAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAAJtJREFUeNrs2MEJBDEMQ1EZ5rTpv9TM1VuEBGbMTwFCfhdBqqWW8R79pOGAM95gQQCIIIIIYqhBdZvD8so8wQ644w0WBIAIIoggphqU3GGRuW2JgKPPnwAiiCCCuAWx1G0Oi7ltgYA73mBBAIgggghiqEFJ5rCYf3GBgDPeYEEAiCCCCGKqQbU7LDK3LRFw9fkTQAQRRBC3IP4HAGiDWTj81TDkAAAAAElFTkSuQmCC);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),_e=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=C.required(),this.colorChange=X(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.alpha)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i:n/c;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(h.hue,h.saturation,h.value,l);this.colorChange.emit(u)}changePointerPosition(n){let e=n*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}get gradient(){let n=this.color().getRgba();return`linear-gradient(to ${this.isVertical()?"bottom":"right"}, rgba(${n.red}, ${n.green}, ${n.blue}, 0) 0%, rgb(${n.red}, ${n.green}, ${n.blue}) 100%)`}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["alpha-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{colorChange:"colorChange"},standalone:!0,features:[lt,q],decls:3,vars:2,consts:[["pointer",""],[1,"pointer"],[1,"gradient-color"]],template:function(e,i){e&1&&G(0,"div",1,0)(2,"div",2),e&2&&(g(2),T("background",i.gradient))},styles:[F,"[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),Tt=(()=>{let t=class t{constructor(){this.min=C(0,{transform:ft}),this.max=C(255,{transform:ft}),this.inputChange=X()}inputChanges(n){let i=(n.target||n.srcElement).value,c=parseFloat(i);!isNaN(c)&&c>=this.min()&&c<=this.max()&&this.inputChange.emit(c)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t,selectors:[["","inputChange",""]],hostBindings:function(e,i){e&1&&y("input",function(l){return i.inputChanges(l)})},inputs:{min:[1,"min"],max:[1,"max"]},outputs:{inputChange:"inputChange"},standalone:!0});let o=t;return o})(),qe=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getRgba()}onInputChange(n,e){let i=this.value,c=e==="R"?n:i.red,l=e==="G"?n:i.green,h=e==="B"?n:i.blue,u=e==="A"?n:i.alpha,f=new P().setRgba(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["rgba-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"R")}),p(),w(2,ne,2,0,"span"),p(),d(3,"div",0)(4,"input",1),y("inputChange",function(l){return i.onInputChange(l,"G")}),p(),w(5,ie,2,0,"span"),p(),d(6,"div",0)(7,"input",1),y("inputChange",function(l){return i.onInputChange(l,"B")}),p(),w(8,oe,2,0,"span"),p(),w(9,re,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getRed().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",i.value==null?null:i.value.getGreen().toString()),g(),v(i.labelVisible()?5:-1),g(2),b("value",i.value==null?null:i.value.getBlue().toString()),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,"[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}"],changeDetection:0});let o=t;return o})(),Ee=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getHsla()}onInputChange(n,e){let i=this.value,c=e==="H"?n:i.hue,l=e==="S"?n:i.saturation,h=e==="L"?n:i.lightness,u=e==="A"?n:i.alpha,f=new P().setHsla(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hsla-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"inputChange","value"],["type","text","pattern","[0-9]*","min","0","max","100",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"H")}),p(),w(2,ae,2,0,"span"),p(),d(3,"div",0)(4,"input",2),y("inputChange",function(l){return i.onInputChange(l,"S")}),p(),w(5,ce,2,0,"span"),p(),d(6,"div",0)(7,"input",2),y("inputChange",function(l){return i.onInputChange(l,"L")}),p(),w(8,le,2,0,"span"),p(),w(9,pe,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getHue().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",(i.value==null?null:i.value.getSaturation())+"%"),g(),v(i.labelVisible()?5:-1),g(2),b("value",(i.value==null?null:i.value.getLightness())+"%"),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,Ut],changeDetection:0});let o=t;return o})(),Be=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.prefixValue=C("",{alias:"prefix"})}get value(){return this.prefixValue()+(this.color()?this.color().toHexString(this.color().getRgba().alpha<1).replace("#",""):"")}onInputChange(n,e){let i=e.toLowerCase().replace("#","");if(((n.keyCode===13||n.key.toLowerCase()==="enter")&&i.length===3||i.length===6||i.length===8)&&parseInt(i,16).toString(16).padStart(i.length,"0")===i&&this.value!==i){let h=new P(`#${i}`);this.color.set(h)}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hex-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],prefixValue:[1,"prefix","prefixValue"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:4,vars:2,consts:[["elRef",""],[1,"column"],["type","text",3,"keyup","value"]],template:function(e,i){if(e&1){let c=k();d(0,"div",1)(1,"input",2,0),y("keyup",function(h){V(c);let u=Yt(2);return O(i.onInputChange(h,u.value))}),p(),w(3,ue,2,0,"span"),p()}e&2&&(g(),b("value",i.value),g(2),v(i.labelVisible()?3:-1))},styles:[F,Ut],changeDetection:0});let o=t;return o})(),Fe=Ot("opacityAnimation",[Xt("true",B({opacity:1})),tt("void => *",[B({opacity:0}),$(".08s ease-in")])]),Re=Ot("listAnimation",[tt("* => up",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => right",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => down",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => left",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})])]),Jt=(()=>{let t=class t{constructor(n,e,i){this.pickerConfig=n,this.elementRef=e,this.renderer=i,this.activeColor=C.required(),this.color=C.required(),this.showDepthText=C(!1,{alias:"show-depth-title",transform:R}),this.selectionChange=X(),this.longPress=X(),this.mouseup=new at,this.subscriptions=[],this.addEventListeners(),J(()=>{this.updateBackground(),this.updateTitleAttr()})}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.removeEventListeners()}get className(){return this.activeColor()?this.color().toRgbaString()===this.activeColor().toRgbaString():!1}updateBackground(){this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.color().toRgbaString())}updateTitleAttr(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.getTitle())}getTitle(){let n=this.color()?this.color().toHexString():"";return this.showDepthText()?(this.pickerConfig?.presetsTitle||"").replace(/\{\s*(.+?)\s*\}/g,(e,i)=>n):n}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"mouseup"),S(this.elementRef.nativeElement,"touchend")).subscribe(()=>this.onTouchEnd())),this.subscriptions.push(H(S(this.elementRef.nativeElement,"mousedown"),S(this.elementRef.nativeElement,"touchstart",{passive:!0})).subscribe(n=>this.onTouch(n)))}removeEventListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}onTouch(n){Bt(n).pipe(Ft(e=>e.timeStamp||new Date().getTime()),Rt(350),ct(this.mouseup)).subscribe(()=>this.longPress.emit(!0)),this.selectionChange.emit(this.color())}onTouchEnd(){this.mouseup.next()}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(L),M(U))},t.\u0275cmp=_({type:t,selectors:[["color-preset"]],hostVars:2,hostBindings:function(e,i){e&2&&ht("selected",i.className)},inputs:{activeColor:[1,"activeColor"],color:[1,"color"],showDepthText:[1,"show-depth-title","showDepthText"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},standalone:!0,features:[q],decls:0,vars:0,template:function(e,i){},styles:[F,"[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0});let o=t;return o})(),We=(()=>{let t=class t{transform(n,e=!0){return e?n.slice().reverse():n}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"reverse",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ie=(()=>{let t=class t{constructor(n,e){this.document=n,this.cdr=e,this.list=C.required(),this.activeColor=C.required(),this.direction=C("up"),this.selectionChange=X(),this.showChildren=!1,this.subscriptions=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}get className(){return`direction-${this.direction()}`}onSelectionChange(n){this.selectionChange.emit(n)}onLongPress(){this.showChildren=!0,this.listenDocumentEvents()}removeListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}listenDocumentEvents(){this.subscriptions.push(H(S(this.document,"mousedown"),S(this.document,"touchstart",{passive:!0})).subscribe(()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}};t.\u0275fac=function(e){return new(e||t)(M(mt),M(Vt))},t.\u0275cmp=_({type:t,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,i){e&2&&jt("className",i.className)},inputs:{list:[1,"list"],activeColor:[1,"activeColor"],direction:[1,"direction"]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[q],decls:4,vars:8,consts:[[3,"longPress","selectionChange","show-depth-title","color","activeColor"],[1,"reflection"],[1,"sublist"],[3,"color","activeColor"],[3,"selectionChange","color","activeColor"]],template:function(e,i){e&1&&(d(0,"color-preset",0),y("longPress",function(){return i.onLongPress()})("selectionChange",function(l){return i.onSelectionChange(l)}),p(),G(1,"div",1)(2,"div",1),w(3,ge,4,5,"div",2)),e&2&&(b("show-depth-title",i.list().length>1)("color",i.list()[0])("activeColor",i.activeColor()),g(),T("background-color",i.list()[0].toRgbaString()),g(),T("background-color",i.list()[0].toRgbaString()),g(),v(i.showChildren?3:-1))},dependencies:[Jt,We],styles:[F,"[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:#0000004d 0 0 2px,#0000004d 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Fe,Re]},changeDetection:0});let o=t;return o})(),De=(()=>{let t=class t{transform(n,e){return n.reduce((i,c,l)=>l%e?i:i.concat([n.slice(l,l+e)]),[])}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"chunks",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ke=(()=>{let t=class t{constructor(){this.columns=C(8,{transform:ft}),this.colorPresets=C.required(),this.color=W.required(),this.direction=C("up")}onSelectionChange(n){let e=n.getRgba(),i=new P().setRgba(e.red,e.green,e.blue,e.alpha);this.color.set(i)}isList(n){return Array.isArray(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["color-presets-component"]],inputs:{columns:[1,"columns"],colorPresets:[1,"colorPresets"],color:[1,"color"],direction:[1,"direction"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:3,vars:3,consts:[[1,"presets-row",3,"ngClass"],[3,"list","direction","activeColor","ngClass"],[3,"ngClass","color","activeColor"],[3,"selectionChange","list","direction","activeColor","ngClass"],[3,"selectionChange","ngClass","color","activeColor"]],template:function(e,i){e&1&&(ut(0,be,3,4,"div",0,pt),Y(2,"chunks")),e&2&&dt(Mt(2,0,i.colorPresets(),i.columns()))},dependencies:[Jt,Ie,Nt,De],styles:[F,"[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0});let o=t;return o})(),x=function(o){return o.hex="hex",o.hexa="hexa",o.rgba="rgba",o.rgb="rgb",o.hsla="hsla",o.hsl="hsl",o.cmyk="cmyk",o}(x||{}),rt=class{constructor(){this.modelValue=null,this.initValue=null,this.valueChanged=new at,this.presetsVisibilityChanges=new vt(!0),this.initType=null,this.alphaChannelVisibilityChanges=new vt(!0),this.valueChanges=this.valueChanged.asObservable().pipe(Wt((a,n)=>a.toRgbaString()==n.toRgbaString())),this.colorPresets=[];let t=P.from(new r(255,0,0,1));this.setValue(t)}setValueFrom(t){let a=P.from(t);return this.initValue||(this.initValue=P.from(t)),typeof t=="string"&&!this.initType&&(this.initType=this.finOutInputType(t)),this.setValue(a),this}get value(){return this.modelValue}set value(t){this.setValue(t)}reset(){let t=this.initValue?this.initValue.clone():P.from(new r(255,0,0,1));return this.setValue(t),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}getColorType(t){return this.finOutInputType(t)}setColorPresets(t){return this.colorPresets=this.setPresets(t),this}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}setValue(t){return this.modelValue=t,this.valueChanged.next(t),this}finOutInputType(t){let a=t.replace(/ /g,"").toLowerCase();if(a[0]==="#")return a.length>7?x.hexa:x.hex;let n=a.indexOf("(");switch(a.substr(0,n)){case x.rgba:return x.rgba;case x.rgb:return x.rgb;case x.hsla:return x.hsla;case x.hsl:return x.hsl;case x.cmyk:return x.cmyk}return null}setPresets(t){let a=[];for(let n of t)Array.isArray(n)?a.push(this.setPresets(n)):a.push(new P(n));return a}};function Ct(o,t){switch(t){case x.hex:return o.toHexString();case x.hexa:return o.toHexString(!0);case x.rgb:return o.toRgbString();case x.rgba:return o.toRgbaString();case x.hsl:return o.toHslString();case x.hsla:return o.toHslaString();default:return o.toRgbaString()}}function He(o,t){return o instanceof P&&t instanceof P?o.equal(t):o===t}var $t=(()=>{let t=class t{constructor(n){this.cdr=n,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.color=W(),this.control=C(new rt),this.subscriptions=[]}ngOnInit(){this.color()&&this.control().setValueFrom(this.color()),this.control().hasPresets()||this.control().setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control().valueChanges.subscribe(n=>{this.color.set(Ct(n,this.control().initType)),this.cdr.detectChanges()}))}ngOnChanges(n){let e=this.color(),i=this.control();e&&i&&!He(Ct(i.value,i.initType),e)&&i.setValueFrom(e)}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}};t.\u0275fac=function(e){return new(e||t)(M(Vt))},t.\u0275cmp=_({type:t,selectors:[["chrome-picker"]],inputs:{color:[1,"color"],control:[1,"control"]},outputs:{color:"colorChange"},standalone:!0,features:[Ht,q],ngContentSelectors:ve,decls:20,vars:11,consts:[[3,"colorChange","color"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"color"],[1,"controls-row","presentation"],["label","",3,"alpha","color"],["label","","prefix","#",3,"color"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets"],["label","",3,"colorChange","alpha","color"],["label","","prefix","#",3,"colorChange","color"],[3,"colorChange","color","colorPresets"]],template:function(e,i){if(e&1&&(zt(we),Pt(0),d(1,"saturation-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),d(2,"div",1)(3,"div",2)(4,"div",3),G(5,"indicator-component",4),p(),d(6,"div",3)(7,"hue-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),w(8,ye,1,1,"alpha-component",5),Y(9,"async"),p()(),d(10,"div",6)(11,"div",3),w(12,xe,2,4,"rgba-input-component",7)(13,Ae,2,4,"hsla-input-component",7)(14,Pe,1,1,"hex-input-component",8),p(),d(15,"div",9)(16,"span",10),y("click",function(){return i.changePresentation()}),p()()()(),w(17,Me,1,2,"color-presets-component",11),Y(18,"async"),Pt(19,1)),e&2){let c;g(),I("color",i.control().value),g(4),b("colorType",i.presentations[i.selectedPresentation])("color",i.control().value),g(2),I("color",i.control().value),g(),v(nt(9,7,i.control().alphaChannelVisibilityChanges)?8:-1),g(4),v((c=i.presentations[i.selectedPresentation])==="rgba"?12:c==="hsla"?13:c==="hex"?14:-1),g(5),v(nt(18,9,i.control().presetsVisibilityChanges)?17:-1)}},dependencies:[Ve,ke,Se,_e,qe,Ee,Be,Ke,Qt],styles:[F,"[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .controls .pointer{box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset #0000004d 0 0 2px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] color-preset:first-child, [_nghost-%COMP%] color-preset-sublist:first-child{margin:0}[_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] .presets-row>color-preset:hover{transform:scale(1.18)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .presets-row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) no-repeat center;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}"],changeDetection:0});let o=t;return o})();var Le=["pickerComponent"];function Ge(o,t){if(o&1){let a=k();d(0,"button",3),y("click",function(e){V(a);let i=m(2);return O(i.applyClick(e))}),E(1,"Apply"),p()}}function Ze(o,t){if(o&1){let a=k();d(0,"chrome-picker",1),y("colorChange",function(){V(a);let e=m();return O(e.onColorChanged())}),w(1,Ge,2,0,"button",2),p()}if(o&2){let a=m();ht("top",a.isTop),b("control",a.colorControl),g(),v(a.isImmediate?-1:1)}}var vn=(()=>{let t=class t{constructor(n){this.el=n,this.isImmediate=!1,this.colorChange=new Gt,this.colorControl=new rt,this.isVisible=!1,this.isTop=!1,this.colorControl.hideAlphaChannel()}set color(n){this.colorControl.setValueFrom(n),this._color=this.colorControl.value}get background(){return this._color?this._color.toHexString():""}onWidowClick(n){n.composedPath().includes(this.el.nativeElement)||(this.isVisible=!1)}showColorPicker(n){if(!this.isVisible){let e=this.el.nativeElement.getBoundingClientRect();this.isTop=e.top+e.height+320>window.innerHeight&&e.top-320>0}this.isVisible=!0}applyClick(n){n.stopPropagation(),this._color=this.colorControl.value,this.triggerUpdate(),this.isVisible=!1}onColorChanged(){this.isImmediate&&this.triggerUpdate()}triggerUpdate(){this.colorChange.emit(Ct(this.colorControl.value,this.colorControl.initType))}};t.\u0275fac=function(e){return new(e||t)(M(L))},t.\u0275cmp=_({type:t,selectors:[["dsw-color-picker"]],viewQuery:function(e,i){if(e&1&&Z(Le,7),e&2){let c;j(c=z())&&(i.pickerComponent=c.first)}},hostVars:2,hostBindings:function(e,i){e&1&&y("mousedown",function(l){return i.onWidowClick(l)},!1,Zt)("click",function(l){return i.showColorPicker(l)}),e&2&&T("background-color",i.background)},inputs:{isImmediate:"isImmediate",color:"color"},outputs:{colorChange:"colorChange"},standalone:!0,features:[q],decls:1,vars:1,consts:[[3,"top","control"],[3,"colorChange","control"],["type","button",1,"btn","btn-primary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,i){e&1&&w(0,Ze,2,4,"chrome-picker",0),e&2&&v(i.isVisible?0:-1)},dependencies:[$t],styles:["[_nghost-%COMP%]{display:block;width:100%;height:32px;cursor:pointer;border:1px solid rgb(210,210,210)}chrome-picker[_ngcontent-%COMP%]{position:fixed;transform:translateY(32px);cursor:default;z-index:2}.btn-primary[_ngcontent-%COMP%]{width:100%;border-radius:0}.top[_ngcontent-%COMP%]{transform:translateY(-100%)}"],changeDetection:0});let o=t;return o})();export{vn as a}; diff --git a/dist/chunk-PBNT6RE2.js b/dist/chunk-EM2NUV7J.js similarity index 98% rename from dist/chunk-PBNT6RE2.js rename to dist/chunk-EM2NUV7J.js index 631826a..f2a7cd0 100644 --- a/dist/chunk-PBNT6RE2.js +++ b/dist/chunk-EM2NUV7J.js @@ -1 +1 @@ -import{a as E,c as P,d as S,e as I,j as T}from"./chunk-LPXDHCFD.js";import{$a as m,$b as O,Da as f,Db as d,Eb as s,Jb as h,Nb as u,Ob as x,W as b,Wb as y,Xb as F,_b as M,ac as k,bc as V,cc as B,fa as g,qa as c,ra as l,rb as v,tb as w,vb as _,yb as C}from"./chunk-ZKAUCJHV.js";function D(r,n){if(r&1){let A=h();d(0,"button",2),u("click",function(){c(A);let i=x();return l(i.onSelectButtonClick())}),F(1,"..."),s()}}var U=(()=>{let n=class n{constructor(){this.model="",this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new f,this.onChange=e=>{},this.onTouched=()=>{}}get isInvalid(){return this.required&&!this.model}writeValue(e){this.model=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){}onSelectButtonClick(){this.choose.emit()}onModelChange(e){this.writeValue(e),this.onChange(e)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=g({type:n,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(i,t){i&2&&_("choose",t.chooseButton)("invalid",t.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},standalone:!0,features:[V([{provide:E,useExisting:b(()=>n),multi:!0}]),B],decls:3,vars:3,consts:[["inp",""],[3,"ngModelChange","keydown.enter","ngModel","type"],[3,"click"]],template:function(i,t){if(i&1){let a=h();d(0,"input",1,0),k("ngModelChange",function(o){return c(a),O(t.model,o)||(t.model=o),l(o)}),u("ngModelChange",function(o){return c(a),l(t.onModelChange(o))})("keydown.enter",function(){c(a);let o=y(1);return l(o.blur())}),s(),v(2,D,2,0,"button")}i&2&&(M("ngModel",t.model),w("type",t.type),m(2),C(t.chooseButton?2:-1))},dependencies:[T,P,S,I],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}.choose[_nghost-%COMP%] > input[_ngcontent-%COMP%]{width:calc(100% - var(--cl-input-height));border-radius:4px 0 0 4px}.invalid[_nghost-%COMP%] input[_ngcontent-%COMP%]{border-color:red}input[_ngcontent-%COMP%]{font-family:Oxygen;font-size:13px;border-radius:4px;height:var(--cl-input-height);text-overflow:ellipsis}button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:var(--cl-input-height);height:var(--cl-input-height);padding:0;border:1px solid var(--cl-input-border);border-left:none;background-color:var(--cl-input-bg);cursor:pointer;font-family:Oxygen;color:var(--cl-input-text);font-size:16px;border-radius:0 4px 4px 0;transition:background-color .2s linear}button[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}button[_ngcontent-%COMP%]:active{transform:translateY(1px)}"]});let r=n;return r})();export{U as a}; +import{a as E,c as P,d as S,e as I,j as T}from"./chunk-6RK5MU4O.js";import{$a as m,$b as O,Da as f,Db as d,Eb as s,Jb as h,Nb as u,Ob as x,W as b,Wb as y,Xb as F,_b as M,ac as k,bc as V,cc as B,fa as g,qa as c,ra as l,rb as v,tb as w,vb as _,yb as C}from"./chunk-ZKAUCJHV.js";function D(r,n){if(r&1){let A=h();d(0,"button",2),u("click",function(){c(A);let i=x();return l(i.onSelectButtonClick())}),F(1,"..."),s()}}var U=(()=>{let n=class n{constructor(){this.model="",this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new f,this.onChange=e=>{},this.onTouched=()=>{}}get isInvalid(){return this.required&&!this.model}writeValue(e){this.model=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){}onSelectButtonClick(){this.choose.emit()}onModelChange(e){this.writeValue(e),this.onChange(e)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=g({type:n,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(i,t){i&2&&_("choose",t.chooseButton)("invalid",t.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},standalone:!0,features:[V([{provide:E,useExisting:b(()=>n),multi:!0}]),B],decls:3,vars:3,consts:[["inp",""],[3,"ngModelChange","keydown.enter","ngModel","type"],[3,"click"]],template:function(i,t){if(i&1){let a=h();d(0,"input",1,0),k("ngModelChange",function(o){return c(a),O(t.model,o)||(t.model=o),l(o)}),u("ngModelChange",function(o){return c(a),l(t.onModelChange(o))})("keydown.enter",function(){c(a);let o=y(1);return l(o.blur())}),s(),v(2,D,2,0,"button")}i&2&&(M("ngModel",t.model),w("type",t.type),m(2),C(t.chooseButton?2:-1))},dependencies:[T,P,S,I],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}.choose[_nghost-%COMP%] > input[_ngcontent-%COMP%]{width:calc(100% - var(--cl-input-height));border-radius:4px 0 0 4px}.invalid[_nghost-%COMP%] input[_ngcontent-%COMP%]{border-color:red}input[_ngcontent-%COMP%]{font-family:Oxygen;font-size:13px;border-radius:4px;height:var(--cl-input-height);text-overflow:ellipsis}button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:var(--cl-input-height);height:var(--cl-input-height);padding:0;border:1px solid var(--cl-input-border);border-left:none;background-color:var(--cl-input-bg);cursor:pointer;font-family:Oxygen;color:var(--cl-input-text);font-size:16px;border-radius:0 4px 4px 0;transition:background-color .2s linear}button[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}button[_ngcontent-%COMP%]:active{transform:translateY(1px)}"]});let r=n;return r})();export{U as a}; diff --git a/dist/chunk-XKBPBU2N.js b/dist/chunk-F2EOB5ZN.js similarity index 97% rename from dist/chunk-XKBPBU2N.js rename to dist/chunk-F2EOB5ZN.js index 4ef43df..39bbbf7 100644 --- a/dist/chunk-XKBPBU2N.js +++ b/dist/chunk-F2EOB5ZN.js @@ -1 +1 @@ -import{a as D}from"./chunk-HN36NMEB.js";import{a as W}from"./chunk-QEASB5VU.js";import"./chunk-W7AFIDCE.js";import{a as J}from"./chunk-54YLOEMX.js";import"./chunk-6QFXSLJK.js";import"./chunk-RNWIIYZZ.js";import{a as I}from"./chunk-SUAWKU6Z.js";import{a as A}from"./chunk-7Z57W26K.js";import{D as E,J as L}from"./chunk-B2BNZRWN.js";import{$a as a,$b as x,Bb as S,Bc as V,Cb as O,Db as l,Eb as c,Fb as P,Jb as f,Nb as C,Ob as r,Xb as p,Yb as M,_b as b,ab as w,ac as u,cc as T,fa as k,hc as B,ic as F,qa as d,ra as h,rb as y,tb as g,yb as _,zb as v}from"./chunk-ZKAUCJHV.js";import{f as j}from"./chunk-DEPBX7UX.js";var U=j(J());function N(i,s){if(i&1){let n=f();l(0,"span",5)(1,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r().$index,m=r();return x(m.model.themeColors.hcColors[o],t)||(m.model.themeColors.hcColors[o]=t),h(t)}),C("colorChange",function(){d(n);let t=r(2);return h(t.update())}),c()()}if(i&2){let n=r().$index,e=r();a(),g("isImmediate",!0),b("color",e.model.themeColors.hcColors[n])}}function z(i,s){if(i&1&&y(0,N,2,2,"span",5),i&2){let n=s.$index,e=r();_((e.appearance==null||e.appearance.showSeries==null?null:e.appearance.showSeries[n])!==!1?0:-1)}}function R(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Chart background"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcBackground,t)||(o.model.themeColors.hcBackground=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcBackground)}}function H(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Lines color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcLineColor,t)||(o.model.themeColors.hcLineColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcLineColor)}}function Y(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Text color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcTextColor,t)||(o.model.themeColors.hcTextColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcTextColor)}}function q(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Series border color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcBorderColor,t)||(o.model.themeColors.hcBorderColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcBorderColor)}}var te=(()=>{let s=class s{constructor(e,t,o,m){this.sbs=e,this.ss=t,this.cd=o,this.bs=m,this.model={themeColors:{hcColors:[],hcTextColor:"",hcBackground:"",hcLineColor:"",hcBorderColor:""}},this.key="",this.isApplied=!1,this.isChanged=!1}ngOnInit(){let e=this.ss.getAppSettings();if(this.key=e.theme||"",this.widgetSettings){let t=this.widgetSettings.themeColors[this.key];t&&(this.model.themeColors=JSON.parse(JSON.stringify(t)))}else if(e?.themeColors?.[this.key]&&(this.globalOriginalColors=JSON.parse(JSON.stringify(e.themeColors[this.key]))),!e?.themeColors?.[this.key])e.themeColors||(e.themeColors={}),e.themeColors[this.key]=this.model.themeColors;else{let t=e.themeColors[this.key];t&&(this.model.themeColors=t)}this.initColors()}ngOnDestroy(){this.isApplied||this.restoreColors()}onCancel(){this.sbs.hide()}onApply(){if(this.isApplied=!0,this.onSave)this.isChanged&&(this.widgetSettings.themeColors[this.key]=this.model.themeColors),this.onSave();else{let e=this.ss.getAppSettings();e.themeColors&&(e.themeColors[this.key]=this.model.themeColors),this.ss.setAppSettings(e)}this.sbs.hide()}update(){this.isChanged=!0,this.onUpdate?this.onUpdate(this.model.themeColors):this.bs.broadcast("charts:update-colors",this.model.themeColors)}initColors(){let e=this.model.themeColors,t=this.getDefaultColors();(!e.hcColors||e.hcColors.length===0)&&(e.hcColors=t.hcColors),e.hcTextColor||(e.hcTextColor=t.hcTextColor),e.hcBackground||(e.hcBackground=t.hcBackground),e.hcBorderColor||(e.hcBorderColor=t.hcBorderColor),e.hcLineColor||(e.hcLineColor=t.hcLineColor),this.originalColors=JSON.parse(JSON.stringify(e))}byIndex(e,t){return e}resetToDefault(){let e=this.getDefaultColors();this.model.themeColors.hcLineColor=e.hcLineColor,this.model.themeColors.hcBorderColor=e.hcBorderColor,this.model.themeColors.hcBackground=e.hcBackground,this.model.themeColors.hcTextColor=e.hcTextColor,this.model.themeColors.hcColors=e.hcColors,this.widgetSettings?.themeColors[this.key]&&(this.widgetSettings.themeColors[this.key]=null),this.onUpdate?this.onUpdate(e):this.bs.broadcast("charts:update-colors",e),this.isChanged=!1}restoreColors(){if(this.widgetSettings)this.widgetSettings.themeColors[this.key]=this.originalColors;else{let e=this.ss.getAppSettings();e.themeColors&&(e.themeColors[this.key]=this.globalOriginalColors)}this.onUpdate?this.onUpdate(this.originalColors):this.bs.broadcast("charts:update-colors",this.originalColors)}getDefaultColors(){let e=U.default.getOptions();return{hcColors:e.colors?.slice()||"",hcBackground:e.chart?.backgroundColor||"",hcTextColor:e.labels?.style?.color||"",hcBorderColor:"",hcLineColor:"#e6e6e6"}}};s.\u0275fac=function(t){return new(t||s)(w(I),w(L),w(V),w(A))},s.\u0275cmp=k({type:s,selectors:[["dsw-chart-config"]],inputs:{chart:"chart",widgetSettings:"widgetSettings",onSave:"onSave",appearance:"appearance",onUpdate:"onUpdate"},standalone:!0,features:[T],decls:16,vars:7,consts:[[3,"cancel","apply"],[1,"container"],[1,"series-colors"],[1,"divider"],[1,"btn","btn-success",3,"click"],[1,"color-small"],[3,"colorChange","isImmediate","color"]],template:function(t,o){t&1&&(l(0,"dsw-sidebar-actions",0),C("cancel",function(){return o.onCancel()})("apply",function(){return o.onApply()}),p(1,"Chart colors"),c(),l(2,"div",1)(3,"label"),p(4),B(5,"i18n"),c(),l(6,"div",2),S(7,z,1,1,null,null,v),c(),y(9,R,3,2)(10,H,3,2)(11,Y,3,2)(12,q,3,2),P(13,"div",3),l(14,"button",4),C("click",function(){return o.resetToDefault()}),p(15,"Reset to default"),c()()),t&2&&(a(4),M(F(5,5,"seriesColor")),a(3),O(o.model.themeColors.hcColors),a(2),_((o.appearance==null?null:o.appearance.showBackground)!==!1?9:-1),a(),_((o.appearance==null?null:o.appearance.showLines)!==!1?10:-1),a(),_((o.appearance==null?null:o.appearance.showText)!==!1?11:-1),a(),_((o.appearance==null?null:o.appearance.showBorder)!==!1?12:-1))},dependencies:[W,E,D],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}",".color-small[_ngcontent-%COMP%]{display:inline-block;width:32px;height:32px;min-width:32px;flex-shrink:0}.series-colors[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}label[_ngcontent-%COMP%] + .color-small[_ngcontent-%COMP%]{margin-left:0}.color[_ngcontent-%COMP%]{display:inline-flex}.divider[_ngcontent-%COMP%]{margin-bottom:10px}"]});let i=s;return i})();export{te as ChartColorsConfigComponent}; +import{a as D}from"./chunk-DEHPGDYX.js";import{a as W}from"./chunk-BNUZIG4N.js";import"./chunk-W7AFIDCE.js";import{a as J}from"./chunk-54YLOEMX.js";import"./chunk-QWH4BMSJ.js";import"./chunk-RNWIIYZZ.js";import{a as I}from"./chunk-SUAWKU6Z.js";import{a as A}from"./chunk-ZXTET2VA.js";import{D as E,J as L}from"./chunk-LT3W5FMN.js";import{$a as a,$b as x,Bb as S,Bc as V,Cb as O,Db as l,Eb as c,Fb as P,Jb as f,Nb as C,Ob as r,Xb as p,Yb as M,_b as b,ab as w,ac as u,cc as T,fa as k,hc as B,ic as F,qa as d,ra as h,rb as y,tb as g,yb as _,zb as v}from"./chunk-ZKAUCJHV.js";import{f as j}from"./chunk-DEPBX7UX.js";var U=j(J());function N(i,s){if(i&1){let n=f();l(0,"span",5)(1,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r().$index,m=r();return x(m.model.themeColors.hcColors[o],t)||(m.model.themeColors.hcColors[o]=t),h(t)}),C("colorChange",function(){d(n);let t=r(2);return h(t.update())}),c()()}if(i&2){let n=r().$index,e=r();a(),g("isImmediate",!0),b("color",e.model.themeColors.hcColors[n])}}function z(i,s){if(i&1&&y(0,N,2,2,"span",5),i&2){let n=s.$index,e=r();_((e.appearance==null||e.appearance.showSeries==null?null:e.appearance.showSeries[n])!==!1?0:-1)}}function R(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Chart background"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcBackground,t)||(o.model.themeColors.hcBackground=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcBackground)}}function H(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Lines color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcLineColor,t)||(o.model.themeColors.hcLineColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcLineColor)}}function Y(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Text color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcTextColor,t)||(o.model.themeColors.hcTextColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcTextColor)}}function q(i,s){if(i&1){let n=f();l(0,"label"),p(1,"Series border color"),c(),l(2,"dsw-color-picker",6),u("colorChange",function(t){d(n);let o=r();return x(o.model.themeColors.hcBorderColor,t)||(o.model.themeColors.hcBorderColor=t),h(t)}),C("colorChange",function(){d(n);let t=r();return h(t.update())}),c()}if(i&2){let n=r();a(2),g("isImmediate",!0),b("color",n.model.themeColors.hcBorderColor)}}var te=(()=>{let s=class s{constructor(e,t,o,m){this.sbs=e,this.ss=t,this.cd=o,this.bs=m,this.model={themeColors:{hcColors:[],hcTextColor:"",hcBackground:"",hcLineColor:"",hcBorderColor:""}},this.key="",this.isApplied=!1,this.isChanged=!1}ngOnInit(){let e=this.ss.getAppSettings();if(this.key=e.theme||"",this.widgetSettings){let t=this.widgetSettings.themeColors[this.key];t&&(this.model.themeColors=JSON.parse(JSON.stringify(t)))}else if(e?.themeColors?.[this.key]&&(this.globalOriginalColors=JSON.parse(JSON.stringify(e.themeColors[this.key]))),!e?.themeColors?.[this.key])e.themeColors||(e.themeColors={}),e.themeColors[this.key]=this.model.themeColors;else{let t=e.themeColors[this.key];t&&(this.model.themeColors=t)}this.initColors()}ngOnDestroy(){this.isApplied||this.restoreColors()}onCancel(){this.sbs.hide()}onApply(){if(this.isApplied=!0,this.onSave)this.isChanged&&(this.widgetSettings.themeColors[this.key]=this.model.themeColors),this.onSave();else{let e=this.ss.getAppSettings();e.themeColors&&(e.themeColors[this.key]=this.model.themeColors),this.ss.setAppSettings(e)}this.sbs.hide()}update(){this.isChanged=!0,this.onUpdate?this.onUpdate(this.model.themeColors):this.bs.broadcast("charts:update-colors",this.model.themeColors)}initColors(){let e=this.model.themeColors,t=this.getDefaultColors();(!e.hcColors||e.hcColors.length===0)&&(e.hcColors=t.hcColors),e.hcTextColor||(e.hcTextColor=t.hcTextColor),e.hcBackground||(e.hcBackground=t.hcBackground),e.hcBorderColor||(e.hcBorderColor=t.hcBorderColor),e.hcLineColor||(e.hcLineColor=t.hcLineColor),this.originalColors=JSON.parse(JSON.stringify(e))}byIndex(e,t){return e}resetToDefault(){let e=this.getDefaultColors();this.model.themeColors.hcLineColor=e.hcLineColor,this.model.themeColors.hcBorderColor=e.hcBorderColor,this.model.themeColors.hcBackground=e.hcBackground,this.model.themeColors.hcTextColor=e.hcTextColor,this.model.themeColors.hcColors=e.hcColors,this.widgetSettings?.themeColors[this.key]&&(this.widgetSettings.themeColors[this.key]=null),this.onUpdate?this.onUpdate(e):this.bs.broadcast("charts:update-colors",e),this.isChanged=!1}restoreColors(){if(this.widgetSettings)this.widgetSettings.themeColors[this.key]=this.originalColors;else{let e=this.ss.getAppSettings();e.themeColors&&(e.themeColors[this.key]=this.globalOriginalColors)}this.onUpdate?this.onUpdate(this.originalColors):this.bs.broadcast("charts:update-colors",this.originalColors)}getDefaultColors(){let e=U.default.getOptions();return{hcColors:e.colors?.slice()||"",hcBackground:e.chart?.backgroundColor||"",hcTextColor:e.labels?.style?.color||"",hcBorderColor:"",hcLineColor:"#e6e6e6"}}};s.\u0275fac=function(t){return new(t||s)(w(I),w(L),w(V),w(A))},s.\u0275cmp=k({type:s,selectors:[["dsw-chart-config"]],inputs:{chart:"chart",widgetSettings:"widgetSettings",onSave:"onSave",appearance:"appearance",onUpdate:"onUpdate"},standalone:!0,features:[T],decls:16,vars:7,consts:[[3,"cancel","apply"],[1,"container"],[1,"series-colors"],[1,"divider"],[1,"btn","btn-success",3,"click"],[1,"color-small"],[3,"colorChange","isImmediate","color"]],template:function(t,o){t&1&&(l(0,"dsw-sidebar-actions",0),C("cancel",function(){return o.onCancel()})("apply",function(){return o.onApply()}),p(1,"Chart colors"),c(),l(2,"div",1)(3,"label"),p(4),B(5,"i18n"),c(),l(6,"div",2),S(7,z,1,1,null,null,v),c(),y(9,R,3,2)(10,H,3,2)(11,Y,3,2)(12,q,3,2),P(13,"div",3),l(14,"button",4),C("click",function(){return o.resetToDefault()}),p(15,"Reset to default"),c()()),t&2&&(a(4),M(F(5,5,"seriesColor")),a(3),O(o.model.themeColors.hcColors),a(2),_((o.appearance==null?null:o.appearance.showBackground)!==!1?9:-1),a(),_((o.appearance==null?null:o.appearance.showLines)!==!1?10:-1),a(),_((o.appearance==null?null:o.appearance.showText)!==!1?11:-1),a(),_((o.appearance==null?null:o.appearance.showBorder)!==!1?12:-1))},dependencies:[W,E,D],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}",".color-small[_ngcontent-%COMP%]{display:inline-block;width:32px;height:32px;min-width:32px;flex-shrink:0}.series-colors[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px}label[_ngcontent-%COMP%] + .color-small[_ngcontent-%COMP%]{margin-left:0}.color[_ngcontent-%COMP%]{display:inline-flex}.divider[_ngcontent-%COMP%]{margin-bottom:10px}"]});let i=s;return i})();export{te as ChartColorsConfigComponent}; diff --git a/dist/chunk-37UFIW5D.js b/dist/chunk-GZORBMTM.js similarity index 99% rename from dist/chunk-37UFIW5D.js rename to dist/chunk-GZORBMTM.js index 6bfd34d..fc503e3 100644 --- a/dist/chunk-37UFIW5D.js +++ b/dist/chunk-GZORBMTM.js @@ -1 +1 @@ -import{a as nt}from"./chunk-7NWZDKAS.js";import{a as pt}from"./chunk-WYNQ5JHX.js";import{b as ut}from"./chunk-7Z57W26K.js";import{b as st,c as at,d as rt,e as ot,f as lt,g as dt,h as ht,j as ct}from"./chunk-LPXDHCFD.js";import{D as Ge,F as Xe,G as Ze,H as et,I as tt,J as it,h as Qe}from"./chunk-B2BNZRWN.js";import{$a as w,$b as de,Ab as Ce,Ba as $e,Bb as ve,Bc as Oe,Cb as ye,Da as Ue,Db as x,Eb as k,Fb as Z,Jb as q,Nb as R,Ob as F,Rb as Je,Tb as Te,Ub as Pe,Vb as Ve,Wb as Ee,Xb as O,Yb as Q,Zb as oe,_b as le,ab as H,ac as he,cc as be,fa as me,hc as U,ic as Y,qa as V,ra as E,rb as ge,tb as K,vb as fe,wb as Ye,xb as ze,yb as X,zc as qe}from"./chunk-ZKAUCJHV.js";import{a as je,d as We,f as Ke}from"./chunk-DEPBX7UX.js";var mt=We((xe,Ne)=>{"use strict";(function(v,b){typeof xe=="object"&&typeof Ne=="object"?Ne.exports=b():typeof define=="function"&&define.amd?define([],b):typeof xe=="object"?xe.AirDatepicker=b():v.AirDatepicker=b()})(xe,function(){return function(){"use strict";var v={d:function(d,e){for(var i in e)v.o(e,i)&&!v.o(d,i)&&Object.defineProperty(d,i,{enumerable:!0,get:e[i]})},o:function(d,e){return Object.prototype.hasOwnProperty.call(d,e)}},b={};v.d(b,{default:function(){return J}});var o={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},u={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:o.days,minView:o.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'',nextHtml:'',navTitles:{days:"MMMM, yyyy",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function l(d){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof d=="string"?e.querySelector(d):d}function c(){let{tagName:d="div",className:e="",innerHtml:i="",id:t="",attrs:a={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=document.createElement(d);return e&&s.classList.add(...e.split(" ")),t&&(s.id=t),i&&(s.innerHTML=i),a&&y(s,a),s}function y(d,e){for(let[i,t]of Object.entries(e))t!==void 0&&d.setAttribute(i,t);return d}function P(d){return new Date(d.getFullYear(),d.getMonth()+1,0).getDate()}function D(d){let e=d.getHours(),{hours:i,dayPeriod:t}=I(e);return{year:d.getFullYear(),month:d.getMonth(),fullMonth:d.getMonth()+1<10?"0"+(d.getMonth()+1):d.getMonth()+1,date:d.getDate(),fullDate:d.getDate()<10?"0"+d.getDate():d.getDate(),day:d.getDay(),hours:e,fullHours:C(e),hours12:i,dayPeriod:t,fullHours12:C(i),minutes:d.getMinutes(),fullMinutes:d.getMinutes()<10?"0"+d.getMinutes():d.getMinutes()}}function I(d){return{dayPeriod:d>11?"pm":"am",hours:d%12==0?12:d%12}}function C(d){return d<10?"0"+d:d}function S(d){let e=10*Math.floor(d.getFullYear()/10);return[e,e+9]}function L(){let d=[];for(var e=arguments.length,i=new Array(e),t=0;t{if(typeof a=="object")for(let s in a)a[s]&&d.push(s);else a&&d.push(a)}),d.join(" ")}function $(d,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.days;if(!d||!e)return!1;let t=D(d),a=D(e);return{[o.days]:t.date===a.date&&t.month===a.month&&t.year===a.year,[o.months]:t.month===a.month&&t.year===a.year,[o.years]:t.year===a.year}[i]}function W(d,e,i){let t=ke(d,!1).getTime(),a=ke(e,!1).getTime();return i?t>=a:t>a}function ce(d,e){return!W(d,e,!0)}function ke(d){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=new Date(d.getTime());return typeof e!="boolean"||e||function(t){t.setHours(0,0,0,0)}(i),i}function N(d,e,i){d.length?d.forEach(t=>{t.addEventListener(e,i)}):d.addEventListener(e,i)}function De(d,e){return!(!d||d===document||d instanceof DocumentFragment)&&(d.matches(e)?d:De(d.parentNode,e))}function ue(d,e,i){return d>i?i:d1?e-1:0),t=1;ta).forEach(a=>{for(let[s,n]of Object.entries(a))if(n!==void 0&&n.toString()==="[object Object]"){let r=d[s]!==void 0?d[s].toString():void 0,h=n.toString(),p=Array.isArray(n)?[]:{};d[s]=d[s]?r!==h?p:d[s]:p,Me(d[s],n)}else d[s]=n}),d}function B(d){let e=d;return d instanceof Date||(typeof d=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(d)&&(d+="T00:00:00"),e=new Date(d)),isNaN(e.getTime())&&(console.log(`Unable to convert value "${d}" to Date object`),e=!1),e}function Ae(d){let e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+d+")($|<|"+e+")","g")}function ee(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class _t{constructor(){let{type:e,date:i,dp:t,opts:a,body:s}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ee(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),ee(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),ee(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),ee(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),ee(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),ee(this,"onChangeFocusDate",n=>{if(!n)return void(this.focused&&this.removeFocus());let r=$(n,this.date,this.type);r?this.focus():!r&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),ee(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell)),this.type=e,this.singleType=this.type.slice(0,-1),this.date=i,this.dp=t,this.opts=a,this.body=s,this.customData=!1,this.init()}init(){var e;let{onRenderCell:i}=this.opts;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(e=this.customData)!==null&&e!==void 0&&e.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(o.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(o.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var e;let{year:i,month:t,date:a}=D(this.date),s=((e=this.customData)===null||e===void 0?void 0:e.attrs)||{};this.$cell=c({attrs:je({"data-year":i,"data-month":t,"data-date":a},s)}),this.$cell.adpCell=this}_getClassName(){var e;let i=new Date,{selectOtherMonths:t,selectOtherYears:a}=this.opts,{minDate:s,maxDate:n,isDateDisabled:r}=this.dp,{day:h}=D(this.date),p=this._isOutOfMinMaxRange(),g=r(this.date),m=L("air-datepicker-cell",`-${this.singleType}-`,{"-current-":$(i,this.date,this.type),"-min-date-":s&&$(s,this.date,this.type),"-max-date-":n&&$(n,this.date,this.type)}),f="";switch(this.type){case o.days:f=L({"-weekend-":this.dp.isWeekend(h),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!t||p||g});break;case o.months:f=L({"-disabled-":p});break;case o.years:f=L({"-other-decade-":this.isOtherDecade,"-disabled-":p||this.isOtherDecade&&!a})}return L(m,f,(e=this.customData)===null||e===void 0?void 0:e.classes).split(" ")}_getHtml(){var e;let{year:i,month:t,date:a}=D(this.date),{showOtherMonths:s,showOtherYears:n}=this.opts;if((e=this.customData)!==null&&e!==void 0&&e.html)return this.customData.html;switch(this.type){case o.days:return!s&&this.isOtherMonth?"":a;case o.months:return this.dp.locale[this.opts.monthsField][t];case o.years:return!n&&this.isOtherDecade?"":i}}_isOutOfMinMaxRange(){let{minDate:e,maxDate:i}=this.dp,{type:t,date:a}=this,{month:s,year:n,date:r}=D(a),h=t===o.days,p=t===o.years,g=!!e&&new Date(n,p?e.getMonth():s,h?r:e.getDate()),m=!!i&&new Date(n,p?i.getMonth():s,h?r:i.getDate());return e&&i?ce(g,e)||W(m,i):e?ce(g,e):i?W(m,i):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:e,focusDate:i,rangeDateTo:t,rangeDateFrom:a}=this.dp,s=e.length;if(!s)return;let n=a,r=t;if(s===1&&i){let f=W(i,e[0]);n=f?e[0]:i,r=f?i:e[0]}let h=L({"-in-range-":n&&r&&(p=this.date,g=n,m=r,W(p,g)&&ce(p,m)),"-range-from-":n&&$(this.date,n,this.type),"-range-to-":r&&$(this.date,r,this.type)});var p,g,m;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),h&&this.$cell.classList.add(...h.split(" "))}_handleSelectedStatus(){let e=this.dp._checkIfDateIsSelected(this.date,this.type);e?this.select():!e&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){$(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function j(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}let Ct={[o.days]:`
`,[o.months]:`
`,[o.years]:`
`},we=".air-datepicker-cell";class G{constructor(e){let{dp:i,type:t,opts:a}=e;j(this,"handleClick",s=>{let n=s.target.closest(we).adpCell;if(n.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let r=this.dp._checkIfDateIsSelected(n.date,n.type);r?this.dp._handleAlreadySelectedDates(r,n.date):this.dp.selectDate(n.date)}),j(this,"handleDayNameClick",s=>{let n=s.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(n),datepicker:this.dp})}),j(this,"onChangeCurrentView",s=>{s!==this.type?this.hide():(this.show(),this.render())}),j(this,"onMouseOverCell",s=>{let n=De(s.target,we);this.dp.setFocusDate(!!n&&n.adpCell.date)}),j(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),j(this,"onClickBody",s=>{let{onClickDayName:n}=this.opts,r=s.target;r.closest(we)&&this.handleClick(s),n&&r.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(s)}),j(this,"onMouseDown",s=>{this.pressed=!0;let n=De(s.target,we),r=n&&n.adpCell;$(r.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),$(r.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),j(this,"onMouseMove",s=>{if(!this.pressed||!this.dp.isMinViewReached)return;s.preventDefault();let n=De(s.target,we),r=n&&n.adpCell,{selectedDates:h,rangeDateTo:p,rangeDateFrom:g}=this.dp;if(!r||r.isDisabled)return;let{date:m}=r;if(h.length===2){if(this.rangeFromFocused&&!W(m,p)){let{hours:f,minutes:M}=D(g);m.setHours(f),m.setMinutes(M),this.dp.rangeDateFrom=m,this.dp.replaceDate(g,m)}if(this.rangeToFocused&&!ce(m,g)){let{hours:f,minutes:M}=D(p);m.setHours(f),m.setMinutes(M),this.dp.rangeDateTo=m,this.dp.replaceDate(p,m)}}}),j(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),j(this,"onChangeViewDate",(s,n)=>{if(!this.isVisible)return;let r=S(s),h=S(n);switch(this.dp.currentView){case o.days:if($(s,n,o.months))return;break;case o.months:if($(s,n,o.years))return;break;case o.years:if(r[0]===h[0]&&r[1]===h[1])return}this.render()}),j(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(s=>{this.$cells.appendChild(s.render())})}),this.dp=i,this.type=t,this.opts=a,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===o.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:e,dynamicRange:i}=this.opts;N(this.$el,"mouseover",this.onMouseOverCell),N(this.$el,"mouseout",this.onMouseOutCell),N(this.$el,"click",this.onClickBody),e&&i&&(N(this.$el,"mousedown",this.onMouseDown),N(this.$el,"mousemove",this.onMouseMove),N(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(o.eventChangeViewDate,this.onChangeViewDate),this.dp.on(o.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=c({className:`air-datepicker-body -${this.type}-`,innerHtml:Ct[this.type]}),this.$names=l(".air-datepicker-body--day-names",this.$el),this.$cells=l(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,i="",t=this.dp.isWeekend,{onClickDayName:a}=this.opts,s=e,n=0;for(;n<7;){let r=s%7;i+=`
${this.dp.locale.daysMin[r]}
`,n++,s++}return i}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(e){let{type:i,dp:t,opts:a}=this;return new _t({type:i,dp:t,opts:a,date:e,body:this})}_generateCells(){G.getDatesFunction(this.type)(this.dp,e=>{this.cells.push(this._generateCell(e))})}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(e=>e.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(o.eventChangeViewDate,this.onChangeViewDate),this.dp.off(o.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(e,i){let{viewDate:t,opts:{fixedHeight:a},locale:{firstDay:s}}=e,n=P(t),{year:r,month:h}=D(t),p=new Date(r,h,1),g=new Date(r,h,n),m=p.getDay()-s,f=6-g.getDay()+s;m=m<0?m+7:m,f=f>6?f-7:f;let M=function(re,He){let{year:Se,month:$t,date:Tt}=D(re);return new Date(Se,$t,Tt-He)}(p,m),A=n+m+f,T=M.getDate(),{year:Fe,month:_e}=D(M),se=0;a&&(A=42);let ae=[];for(;se0&&arguments[0]!==void 0?arguments[0]:o.days;return{[o.days]:G.getDaysDates,[o.months]:G.getMonthsDates,[o.years]:G.getYearsDates}[e]}}function te(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class xt{constructor(e){let{dp:i,opts:t}=e;te(this,"onClickNav",a=>{let s=De(a.target,".air-datepicker-nav--action");if(!s)return;let n=s.dataset.action;this.dp[n]()}),te(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),te(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),te(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),te(this,"update",()=>{let{prevHtml:a,nextHtml:s}=this.opts;this.$prev.innerHTML=a,this.$next.innerHTML=s,this._resetNavStatus(),this.render(),this.handleNavStatus()}),te(this,"renderDelay",()=>{setTimeout(this.render)}),te(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(a,s){for(let n in s)s[n]?a.classList.add(n):a.classList.remove(n)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=i,this.opts=t,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=l(".air-datepicker-nav--title",this.$el),this.$prev=l('[data-action="prev"]',this.$el),this.$next=l('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(o.eventChangeViewDate,this.onChangeViewDate),this.dp.on(o.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(o.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(o.eventChangeTime,this.render))}destroy(){this.dp.off(o.eventChangeViewDate,this.onChangeViewDate),this.dp.off(o.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(o.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(o.eventChangeTime,this.render))}_createElement(){this.$el=c({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:e,opts:i}=this,t=i.navTitles[e.currentView];return typeof t=="function"?t(e):e.formatDate(e.viewDate,t)}handleNavStatus(){let{disableNavWhenOutOfRange:e}=this.opts,{minDate:i,maxDate:t}=this.dp;if(!i&&!t||!e)return;let{year:a,month:s}=this.dp.parsedViewDate,n=!!i&&D(i),r=!!t&&D(t);switch(this.dp.currentView){case o.days:i&&n.month>=s&&n.year>=a&&this._disableNav("prev"),t&&r.month<=s&&r.year<=a&&this._disableNav("next");break;case o.months:i&&n.year>=a&&this._disableNav("prev"),t&&r.year<=a&&this._disableNav("next");break;case o.years:{let h=S(this.dp.viewDate);i&&n.year>=h[0]&&this._disableNav("prev"),t&&r.year<=h[1]&&this._disableNav("next");break}}}_disableNav(e){l('[data-action="'+e+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),a=1;a{s.classList.remove(...t)}):e.classList.remove(...t)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:e,nextHtml:i}=this.opts;this.$el.innerHTML=`
${e}
${i}
`}get isNavIsFunction(){let{navTitles:e}=this.opts;return Object.keys(e).find(i=>typeof e[i]=="function")}}var Be={today:{content:d=>d.locale.today,onClick:d=>d.setViewDate(new Date)},clear:{content:d=>d.locale.clear,onClick:d=>d.clear()}};class kt{constructor(e){let{dp:i,opts:t}=e;this.dp=i,this.opts=t,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=c({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:e}=this.opts;Array.isArray(e)||(e=[e]),e.forEach(i=>{let t=i;typeof i=="string"&&Be[i]&&(t=Be[i]);let a=this.createButton(t);t.onClick&&this.attachEventToButton(a,t.onClick),this.$el.appendChild(a)})}attachEventToButton(e,i){e.addEventListener("click",()=>{i(this.dp)})}createButton(e){let{content:i,className:t,tagName:a="button",attrs:s={}}=e;return c({tagName:a,innerHtml:`${typeof i=="function"?i(this.dp):i}`,className:L("air-datepicker-button",t),attrs:s})}render(){this.generateButtons()}}function ie(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class Mt{constructor(){let{opts:e,dp:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie(this,"toggleTimepickerIsActive",a=>{this.dp.timepickerIsActive=a}),ie(this,"onChangeSelectedDate",a=>{let{date:s,updateTime:n=!1}=a;s&&(this.setMinMaxTime(s),this.setCurrentTime(!!n&&s),this.addTimeToDate(s))}),ie(this,"onChangeLastSelectedDate",a=>{a&&(this.setTime(a),this.render())}),ie(this,"onChangeInputRange",a=>{let s=a.target;this[s.getAttribute("name")]=s.value,this.updateText(),this.dp.trigger(o.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),ie(this,"onMouseEnterLeave",a=>{let s=a.target.getAttribute("name"),n=this.$minutesText;s==="hours"&&(n=this.$hoursText),n.classList.toggle("-focus-")}),ie(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),ie(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=e,this.dp=i;let{timeFormat:t}=this.dp.locale;t&&(t.match(Ae("h"))||t.match(Ae("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(o.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let e="input";navigator.userAgent.match(/trident/gi)&&(e="change"),N(this.$ranges,e,this.onChangeInputRange),N(this.$ranges,"mouseenter",this.onMouseEnterLeave),N(this.$ranges,"mouseleave",this.onMouseEnterLeave),N(this.$ranges,"focus",this.onFocus),N(this.$ranges,"mousedown",this.onFocus),N(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=c({className:L("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(o.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:e,hours:i,displayHours:t,minutes:a,minHours:s,minMinutes:n,maxHours:r,maxMinutes:h,dayPeriod:p,opts:{hoursStep:g,minutesStep:m}}=this;this.$el.innerHTML=`
${C(t)} : ${C(a)} `+(e?`${p}`:"")+`
`}defineDOM(){let e=i=>l(i,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")}setTime(e){this.setMinMaxTime(e),this.setCurrentTime(e)}addTimeToDate(e){e&&(e.setHours(this.hours),e.setMinutes(this.minutes))}setMinMaxTime(e){if(this.setMinMaxTimeFromOptions(),e){let{minDate:i,maxDate:t}=this.dp;i&&$(e,i)&&this.setMinTimeFromMinDate(i),t&&$(e,t)&&this.setMaxTimeFromMaxDate(t)}}setCurrentTime(e){let{hours:i,minutes:t}=e?D(e):this;this.hours=ue(i,this.minHours,this.maxHours),this.minutes=ue(t,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:e,minMinutes:i,maxHours:t,maxMinutes:a}=this.opts;this.minHours=ue(e,0,23),this.minMinutes=ue(i,0,59),this.maxHours=ue(t,0,23),this.maxMinutes=ue(a,0,59)}setMinTimeFromMinDate(e){let{lastSelectedDate:i}=this.dp;this.minHours=e.getHours(),i&&i.getHours()>e.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=e.getMinutes()}setMaxTimeFromMaxDate(e){let{lastSelectedDate:i}=this.dp;this.maxHours=e.getHours(),i&&i.getHours()a.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],a=>a.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],a=>a.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],a=>a.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],a=>a.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],a=>a.year-=10],[["Control","Shift","ArrowUp"],(a,s)=>s.up()]])),ne(this,"handleHotKey",a=>{let s=this.hotKeys.get(a),n=D(this.getInitialFocusDate());s(n,this.dp);let{year:r,month:h,date:p}=n,g=P(new Date(r,h));g{let a=!1,s=this.pressedKeys.size,n=r=>this.pressedKeys.has(r);for(let[r]of this.hotKeys){if(a)break;if(Array.isArray(r[0]))r.forEach(h=>{a||s!==h.length||(a=h.every(n)&&r)});else{if(s!==r.length)continue;a=r.every(n)&&r}}return a}),ne(this,"isArrow",a=>a>=37&&a<=40),ne(this,"onKeyDown",a=>{let{key:s,which:n}=a,{dp:r,dp:{focusDate:h},opts:p}=this;this.registerKey(s);let g=this.isHotKeyPressed();if(g)return a.preventDefault(),void this.handleHotKey(g);if(this.isArrow(n))return a.preventDefault(),void this.focusNextCell(s);if(s==="Enter"){if(r.currentView!==p.minView)return void r.down();if(h){let m=r._checkIfDateIsSelected(h);return void(m?r._handleAlreadySelectedDates(m,h):r.selectDate(h))}}s==="Escape"&&this.dp.hide()}),ne(this,"onKeyUp",a=>{this.removeKey(a.key)}),this.dp=i,this.opts=t,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:e}=this.dp;e.addEventListener("keydown",this.onKeyDown),e.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:e}=this.dp;e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:e,currentView:i,selectedDates:t,parsedViewDate:{year:a,month:s}}=this.dp,n=e||t[t.length-1];if(!n)switch(i){case o.days:n=new Date(a,s,new Date().getDate());break;case o.months:n=new Date(a,s,1);break;case o.years:n=new Date(a,0,1)}return n}focusNextCell(e){let i=this.getInitialFocusDate(),{currentView:t}=this.dp,{days:a,months:s,years:n}=o,r=D(i),h=r.year,p=r.month,g=r.date;switch(e){case"ArrowLeft":t===a&&(g-=1),t===s&&(p-=1),t===n&&(h-=1);break;case"ArrowUp":t===a&&(g-=7),t===s&&(p-=3),t===n&&(h-=4);break;case"ArrowRight":t===a&&(g+=1),t===s&&(p+=1),t===n&&(h+=1);break;case"ArrowDown":t===a&&(g+=7),t===s&&(p+=3),t===n&&(h+=4)}let m=this.dp.getClampedDate(new Date(h,p,g));this.dp.setFocusDate(m,{viewDateTransition:!0})}registerKey(e){this.pressedKeys.add(e)}removeKey(e){this.pressedKeys.delete(e)}}let St={on(d,e){this.__events||(this.__events={}),this.__events[d]?this.__events[d].push(e):this.__events[d]=[e]},off(d,e){this.__events&&this.__events[d]&&(this.__events[d]=this.__events[d].filter(i=>i!==e))},removeAllEvents(){this.__events={}},trigger(d){for(var e=arguments.length,i=new Array(e>1?e-1:0),t=1;t{a(...i)})}};function _(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}let pe="",z="",Le=!1;class J{static buildGlobalContainer(e){Le=!0,pe=c({className:e,id:e}),l("body").appendChild(pe)}constructor(e,i){var t=this;if(_(this,"viewIndexes",[o.days,o.months,o.years]),_(this,"next",()=>{let{year:n,month:r}=this.parsedViewDate;switch(this.currentView){case o.days:this.setViewDate(new Date(n,r+1,1));break;case o.months:this.setViewDate(new Date(n+1,r,1));break;case o.years:this.setViewDate(new Date(n+10,0,1))}}),_(this,"prev",()=>{let{year:n,month:r}=this.parsedViewDate;switch(this.currentView){case o.days:this.setViewDate(new Date(n,r-1,1));break;case o.months:this.setViewDate(new Date(n-1,r,1));break;case o.years:this.setViewDate(new Date(n-10,0,1))}}),_(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),_(this,"setPosition",function(n){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(n=n||t.opts.position)=="function")return void(t.customHide=n({$datepicker:t.$datepicker,$target:t.$el,$pointer:t.$pointer,isViewChange:r,done:t._finishHide}));let h,p,{isMobile:g}=t.opts,m=t.$el.getBoundingClientRect(),f=t.$el.getBoundingClientRect(),M=t.$datepicker.offsetParent,A=t.$el.offsetParent,T=t.$datepicker.getBoundingClientRect(),Fe=n.split(" "),_e=window.scrollY,se=window.scrollX,ae=t.opts.offset,re=Fe[0],He=Fe[1];if(g)t.$datepicker.style.cssText="left: 50%; top: 50%";else{if(M===A&&M!==document.body&&(f={top:t.$el.offsetTop,left:t.$el.offsetLeft,width:m.width,height:t.$el.offsetHeight},_e=0,se=0),M!==A&&M!==document.body){let Se=M.getBoundingClientRect();f={top:m.top-Se.top,left:m.left-Se.left,width:m.width,height:m.height},_e=0,se=0}switch(re){case"top":h=f.top-T.height-ae;break;case"right":p=f.left+f.width+ae;break;case"bottom":h=f.top+f.height+ae;break;case"left":p=f.left-T.width-ae}switch(He){case"top":h=f.top;break;case"right":p=f.left+f.width-T.width;break;case"bottom":h=f.top+f.height-T.height;break;case"left":p=f.left;break;case"center":/left|right/.test(re)?h=f.top+f.height/2-T.height/2:p=f.left+f.width/2-T.width/2}t.$datepicker.style.cssText=`left: ${p+se}px; top: ${h+_e}px`}}),_(this,"_setInputValue",()=>{let{opts:n,$altField:r,locale:{dateFormat:h}}=this,{altFieldDateFormat:p,altField:g}=n;g&&r&&(r.value=this._getInputValue(p)),this.$el.value=this._getInputValue(h)}),_(this,"_getInputValue",n=>{let{selectedDates:r,opts:h}=this,{multipleDates:p,multipleDatesSeparator:g}=h;if(!r.length)return"";let m=typeof n=="function",f=m?n(p?r:r[0]):r.map(M=>this.formatDate(M,n));return f=m?f:f.join(g),f}),_(this,"_checkIfDateIsSelected",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.days,h=!1;return t.selectedDates.some(p=>{let g=$(n,p,r);return h=g&&p,g}),h}),_(this,"_scheduleCallAfterTransition",n=>{this._cancelScheduledCall(),n&&n(!1),this._onTransitionEnd=()=>{n&&n(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),_(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),_(this,"setViewDate",n=>{if(!((n=B(n))instanceof Date)||$(n,this.viewDate))return;let r=this.viewDate;this.viewDate=n;let{onChangeViewDate:h}=this.opts;if(h){let{month:p,year:g}=this.parsedViewDate;h({month:p,year:g,decade:this.curDecade})}this.trigger(o.eventChangeViewDate,n,r)}),_(this,"setFocusDate",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!n||(n=B(n))instanceof Date)&&(t.focusDate=n,t.trigger(o.eventChangeFocusDate,n,r))}),_(this,"setCurrentView",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t.viewIndexes.includes(n)){if(t.currentView=n,t.elIsInput&&t.visible&&t.setPosition(void 0,!0),t.trigger(o.eventChangeCurrentView,n),!t.views[n]){let h=t.views[n]=new G({dp:t,opts:t.opts,type:n});t.shouldUpdateDOM&&t.$content.appendChild(h.$el)}t.opts.onChangeView&&!r.silent&&t.opts.onChangeView(n)}}),_(this,"_updateLastSelectedDate",n=>{this.lastSelectedDate=n,this.trigger(o.eventChangeLastSelectedDate,n)}),_(this,"destroy",()=>{if(this.isDestroyed)return;let{showEvent:n,isMobile:r}=this.opts,h=this.$datepicker.parentNode;h&&h.removeChild(this.$datepicker),this.$el.removeEventListener(n,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),r&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0}),_(this,"update",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=Me({},t.opts),{silent:p}=r;Me(t.opts,n);let{timepicker:g,buttons:m,range:f,selectedDates:M,isMobile:A}=t.opts,T=t.visible||t.treatAsInline;t._createMinMaxDates(),t._limitViewDateByMaxMinDates(),t._handleLocale(),M&&(t.selectedDates=[],t.selectDate(M,{silent:p})),n.view&&t.setCurrentView(n.view,{silent:p}),t._setInputValue(),h.range&&!f?(t.rangeDateTo=!1,t.rangeDateFrom=!1):!h.range&&f&&t.selectedDates.length&&(t.rangeDateFrom=t.selectedDates[0],t.rangeDateTo=t.selectedDates[1]),h.timepicker&&!g?(T&&t.timepicker.destroy(),t.timepicker=!1,t.$timepicker.parentNode.removeChild(t.$timepicker)):!h.timepicker&&g&&t._addTimepicker(),!h.buttons&&m?t._addButtons():h.buttons&&!m?(t.buttons.destroy(),t.$buttons.parentNode.removeChild(t.$buttons)):T&&h.buttons&&m&&t.buttons.clearHtml().render(),!h.isMobile&&A?(t.treatAsInline||z||t._createMobileOverlay(),t._addMobileAttributes(),t.visible&&t._showMobileOverlay()):h.isMobile&&!A&&(t._removeMobileAttributes(),t.visible&&(z.classList.remove("-active-"),typeof t.opts.position!="function"&&t.setPosition())),T&&(t.nav.update(),t.views[t.currentView].render(),t.currentView===o.days&&t.views[t.currentView].renderDayNames())}),_(this,"disableDate",(n,r)=>{(Array.isArray(n)?n:[n]).forEach(h=>{let p=B(h);if(!p)return;let g=r?"delete":"add";this.disabledDates[g](this.formatDate(p,"yyyy-MM-dd"));let m=this.getCell(p,this.currentViewSingular);m&&m.adpCell.render()},[])}),_(this,"enableDate",n=>{this.disableDate(n,!0)}),_(this,"isDateDisabled",n=>{let r=B(n);return this.disabledDates.has(this.formatDate(r,"yyyy-MM-dd"))}),_(this,"isOtherMonth",n=>{let{month:r}=D(n);return r!==this.parsedViewDate.month}),_(this,"isOtherYear",n=>{let{year:r}=D(n);return r!==this.parsedViewDate.year}),_(this,"isOtherDecade",n=>{let{year:r}=D(n),[h,p]=S(this.viewDate);return rp}),_(this,"_onChangeSelectedDate",n=>{let{silent:r}=n;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!r&&this._triggerOnSelect()})}),_(this,"_onChangeFocusedDate",function(n){let{viewDateTransition:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!n)return;let h=!1;r&&(h=t.isOtherMonth(n)||t.isOtherYear(n)||t.isOtherDecade(n)),h&&t.setViewDate(n),t.opts.onFocus&&t.opts.onFocus({datepicker:t,date:n})}),_(this,"_onChangeTime",n=>{let{hours:r,minutes:h}=n,p=new Date,{lastSelectedDate:g,opts:{onSelect:m}}=this,f=g;g||(f=p);let M=this.getCell(f,this.currentViewSingular),A=M&&M.adpCell;A&&A.isDisabled||(f.setHours(r),f.setMinutes(h),g?(this._setInputValue(),m&&this._triggerOnSelect()):this.selectDate(f))}),_(this,"_onFocus",n=>{this.visible||this.show()}),_(this,"_onBlur",n=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),_(this,"_onMouseDown",n=>{this.inFocus=!0}),_(this,"_onMouseUp",n=>{this.inFocus=!1,this.$el.focus()}),_(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),_(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),_(this,"getViewDates",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.days;return G.getDatesFunction(n)(t)}),_(this,"isWeekend",n=>this.opts.weekends.includes(n)),_(this,"getClampedDate",n=>{let{minDate:r,maxDate:h}=this,p=n;return h&&W(n,h)?p=h:r&&ce(n,r)&&(p=r),p}),this.$el=l(e),!this.$el)return;this.$datepicker=c({className:"air-datepicker"}),this.opts=Me({},u,i),this.$customContainer=!!this.opts.container&&l(this.opts.container),this.$altField=l(this.opts.altField||!1);let{view:a,startDate:s}=this.opts;s||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=B(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=a,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:e,treatAsInline:i,opts:{inline:t,isMobile:a,selectedDates:s,keyboardNav:n,onlyTimepicker:r}}=this,h=l("body");(!Le||Le&&pe&&!h.contains(pe))&&!t&&this.elIsInput&&!this.$customContainer&&J.buildGlobalContainer(J.defaultGlobalContainerId),!a||z||i||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(t||this._bindEvents(),n&&!r&&(this.keyboardNav=new Ft({dp:this,opts:e}))),s&&this.selectDate(s,{silent:!0}),this.opts.visible&&!i&&this.show(),a&&!i&&this.$el.setAttribute("readonly",!0),i&&this._createComponents()}_createMobileOverlay(){z=c({className:"air-datepicker-overlay"}),pe.appendChild(z)}_createComponents(){let{opts:e,treatAsInline:i,opts:{inline:t,buttons:a,timepicker:s,position:n,classes:r,onlyTimepicker:h,isMobile:p}}=this;this._buildBaseHtml(),this.elIsInput&&(t||this._setPositionClasses(n)),!t&&this.elIsInput||this.$datepicker.classList.add("-inline-"),r&&this.$datepicker.classList.add(...r.split(" ")),h&&this.$datepicker.classList.add("-only-timepicker-"),p&&!i&&this._addMobileAttributes(),this.views[this.currentView]=new G({dp:this,type:this.currentView,opts:e}),this.nav=new xt({dp:this,opts:e}),s&&this._addTimepicker(),a&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let e in this.views)this.views[e].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){z.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){z.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:e,maxDate:i}=this.opts;this.minDate=!!e&&B(e),this.maxDate=!!i&&B(i)}_addTimepicker(){this.$timepicker=c({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new Mt({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=c({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new kt({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(o.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(o.eventChangeFocusDate,this._onChangeFocusedDate),this.on(o.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:e}=this.opts;var i,t;this.elIsInput?e?(i=this.$datepicker,(t=this.$el).parentNode.insertBefore(i,t.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='
',this.$content=l(".air-datepicker--content",this.$datepicker),this.$pointer=l(".air-datepicker--pointer",this.$datepicker),this.$nav=l(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:e,dateFormat:i,firstDay:t,timepicker:a,onlyTimepicker:s,timeFormat:n,dateTimeSeparator:r}=this.opts;var h;this.locale=(h=e,JSON.parse(JSON.stringify(h))),i&&(this.locale.dateFormat=i),n!==void 0&&n!==""&&(this.locale.timeFormat=n);let{timeFormat:p}=this.locale;if(t!==""&&(this.locale.firstDay=t),a&&typeof i!="function"){let g=p?r:"";this.locale.dateFormat=[this.locale.dateFormat,p||""].join(g)}s&&typeof i!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(e){if(typeof e=="function")return void this.$datepicker.classList.add("-custom-position-");let i=(e=e.split(" "))[0],t=`air-datepicker -${i}-${e[1]}- -from-${i}-`;this.$datepicker.classList.add(...t.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:e,minDate:i,maxDate:t}=this;t&&W(e,t)&&this.setViewDate(t),i&&ce(e,i)&&this.setViewDate(i)}formatDate(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=B(e),!(e instanceof Date))return;let t=i,a=this.locale,s=D(e),n=s.dayPeriod,r=S(e),h=J.replacer,p={T:e.getTime(),m:s.minutes,mm:s.fullMinutes,h:s.hours12,hh:s.fullHours12,H:s.hours,HH:s.fullHours,aa:n,AA:n.toUpperCase(),E:a.daysShort[s.day],EEEE:a.days[s.day],d:s.date,dd:s.fullDate,M:s.month+1,MM:s.fullMonth,MMM:a.monthsShort[s.month],MMMM:a.months[s.month],yy:s.year.toString().slice(-2),yyyy:s.year,yyyy1:r[0],yyyy2:r[1]};for(let[g,m]of Object.entries(p))t=h(t,Ae(g),m);return t}down(e){this._handleUpDownActions(e,"down")}up(e){this._handleUpDownActions(e,"up")}selectDate(e){let i,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:a,parsedViewDate:s,selectedDates:n}=this,{updateTime:r}=t,{moveToOtherMonthsOnSelect:h,moveToOtherYearsOnSelect:p,multipleDates:g,range:m,autoClose:f,onBeforeSelect:M}=this.opts,A=n.length;if(Array.isArray(e))return e.forEach(T=>{this.selectDate(T,t)}),new Promise(T=>{setTimeout(T)});if((e=B(e))instanceof Date){if(M&&!M({date:e,datepicker:this}))return Promise.resolve();if(a===o.days&&e.getMonth()!==s.month&&h&&(i=new Date(e.getFullYear(),e.getMonth(),1)),a===o.years&&e.getFullYear()!==s.year&&p&&(i=new Date(e.getFullYear(),0,1)),i&&this.setViewDate(i),g&&!m){if(A===g)return;this._checkIfDateIsSelected(e)||n.push(e)}else if(m)switch(A){case 1:n.push(e),this.rangeDateTo||(this.rangeDateTo=e),W(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=e),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[e],this.rangeDateFrom=e,this.rangeDateTo="";break;default:this.selectedDates=[e],this.rangeDateFrom=e}else this.selectedDates=[e];return this.trigger(o.eventChangeSelectedDate,{action:o.actionSelectDate,silent:t?.silent,date:e,updateTime:r}),this._updateLastSelectedDate(e),f&&!this.timepickerIsActive&&this.visible&&(g||m?m&&A===1&&this.hide():this.hide()),new Promise(T=>{setTimeout(T)})}}unselectDate(e){let i=this.selectedDates,t=this;if((e=B(e))instanceof Date)return i.some((a,s)=>{if($(a,e))return i.splice(s,1),t.selectedDates.length?(t.rangeDateTo="",t.rangeDateFrom=i[0],t._updateLastSelectedDate(t.selectedDates[t.selectedDates.length-1])):(t.rangeDateFrom="",t.rangeDateTo="",t._updateLastSelectedDate(!1)),this.trigger(o.eventChangeSelectedDate,{action:o.actionUnselectDate,date:e}),!0})}replaceDate(e,i){let t=this.selectedDates.find(s=>$(s,e,this.currentView)),a=this.selectedDates.indexOf(t);a<0||$(this.selectedDates[a],i,this.currentView)||(this.selectedDates[a]=i,this.trigger(o.eventChangeSelectedDate,{action:o.actionSelectDate,date:i,updateTime:!0}),this._updateLastSelectedDate(i))}clear(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(o.eventChangeSelectedDate,{action:o.actionUnselectDate,silent:e.silent}),new Promise(i=>{setTimeout(i)})}show(){let{onShow:e,isMobile:i}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()}hide(){let{onHide:e,isMobile:i}=this.opts,t=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(a=>{!this.customHide&&(a&&t||!a&&!t)&&this._finishHide(),e&&e(a)}),i&&z.classList.remove("-active-")}_triggerOnSelect(){let e=[],i=[],{selectedDates:t,locale:a,opts:{onSelect:s,multipleDates:n,range:r}}=this,h=n||r,p=typeof a.dateFormat=="function";t.length&&(e=t.map(ke),i=p?n?a.dateFormat(e):e.map(g=>a.dateFormat(g)):e.map(g=>this.formatDate(g,a.dateFormat))),s({date:h?e:e[0],formattedDate:h?i:i[0],datepicker:this})}_handleAlreadySelectedDates(e,i){let{selectedDates:t,rangeDateFrom:a,rangeDateTo:s}=this,{range:n,toggleSelected:r}=this.opts,h=t.length,p=typeof r=="function"?r({datepicker:this,date:i}):r,g=!!(n&&h===1&&e),m=g?ke(i):i;n&&!p&&(h!==2&&this.selectDate(m),h===2&&$(a,s))||(p?this.unselectDate(m):this._updateLastSelectedDate(g?m:e))}_handleUpDownActions(e,i){if(!((e=B(e||this.focusDate||this.viewDate))instanceof Date))return;let t=i==="up"?this.viewIndex+1:this.viewIndex-1;t>2&&(t=2),t<0&&(t=0),this.setViewDate(new Date(e.getFullYear(),e.getMonth(),1)),this.setCurrentView(this.viewIndexes[t])}getCell(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.day;if(!((e=B(e))instanceof Date))return;let{year:t,month:a,date:s}=D(e),n=`[data-year="${t}"]`,r=`[data-month="${a}"]`,h={[o.day]:`${n}${r}[data-date="${s}"]`,[o.month]:`${n}${r}`,[o.year]:`${n}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(h[i]):void 0}_showMobileOverlay(){z.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((e,i)=>parseFloat(i)+e,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return D(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return S(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===o.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===o.days}get $container(){return this.$customContainer||pe}static replacer(e,i,t){return e.replace(i,function(a,s,n,r){return s+t+r})}}var Re;return _(J,"defaults",u),_(J,"version","3.5.3"),_(J,"defaultGlobalContainerId","air-datepicker-global-container"),Re=J.prototype,Object.assign(Re,St),b.default}()})});var vt=We(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=void 0;var Pt={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};Ie.default=Pt});var gt=Ke(mt()),ft=gt.default;var bt=Ke(vt());var Dt=(()=>{let b=class b{constructor(u){this.el=u,this.inline=!1,this.range=!1,this.select=new Ue,this.ignoreSelectEvent=!1}ngOnInit(){}ngAfterViewInit(){this.dp=new ft(this.el.nativeElement,{inline:this.inline,range:this.range,toggleSelected:!1,locale:bt.default,onSelect:(u,l,c)=>{this.ignoreSelectEvent||this.select.emit({date:u,formattedDate:l,datepicker:c})}})}setDateRange(u,l){this.ignoreSelectEvent=!0,this.dp.clear(),this.dp.update({range:!!l}),this.dp.selectDate(u,{silent:!0}),l&&this.dp.selectDate(l,{silent:!0}),setTimeout(()=>{this.ignoreSelectEvent=!1})}};b.\u0275fac=function(l){return new(l||b)(H($e))},b.\u0275cmp=me({type:b,selectors:[["dsw-date-picker"]],inputs:{inline:"inline",range:"range"},outputs:{select:"select"},standalone:!0,features:[be],decls:0,vars:0,template:function(l,c){},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}"]});let v=b;return v})();var Vt=["datePicker"];function Et(v,b){if(v&1){let o=q();x(0,"li",3),R("click",function(){let l=V(o),c=l.$implicit,y=l.$index,P=F();return E(P.setFilter(c,y))}),O(1),k()}if(v&2){let o=b.$implicit,u=b.$index,l=F();fe("selected",l.curFilter===u),w(),oe("",o.label," ")}}var wt=(()=>{let b=class b{constructor(u){this.cd=u,this.filters=[{label:"Today",init:function(){let c=new Date;this.dateFrom=c}},{label:"This week",init:function(){let c=new Date,y=c.getDate()-c.getDay()+1,P=y+6;this.dateFrom=new Date(c.setDate(y)),this.dateTo=new Date(c.setDate(P))}},{label:"Last 30 days",init:function(){let c=new Date,y=new Date().setDate(c.getDate()-30);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last 3 months",init:function(){let c=new Date,y=new Date().setMonth(c.getMonth()-3);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last 6 months",init:function(){let c=new Date,y=new Date().setMonth(c.getMonth()-6);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last year",init:function(){let c=new Date(new Date().getFullYear()-1,0,1);this.dateFrom=new Date(c.getFullYear(),0,1),this.dateTo=new Date(c.getFullYear(),11,31)}},{label:"This year (Jan - Today)",init:function(){let c=new Date;this.dateFrom=new Date(c.getFullYear(),0,1),this.dateTo=c}},{label:"Custom",init:function(){this.dateFrom=new Date,this.dateTo=new Date}}],this.curFilter=this.filters.length-1,this.initialize()}initialize(){this.filters.forEach(u=>{u.init&&u.init()})}setFilter(u,l){this.curFilter=l,this.datePicker&&u.dateFrom&&this.datePicker.setDateRange(u.dateFrom,u.dateTo)}onSelect(u){this.curFilter=this.filters.length-1,this.datePicker.dp.update({range:!0})}getValues(){let u=this.datePicker.dp.selectedDates;return u.length>1&&u[0].toDateString()===u[1].toDateString()&&u.pop(),u}setDateRange(u,l){this.datePicker.setDateRange(u,l);let c=this.filters.findIndex(y=>l?y.dateFrom?.toDateString()===u.toDateString()&&y.dateTo?.toDateString()===l.toDateString():y.dateFrom?.toDateString()===u.toDateString());c!==-1&&(this.curFilter=c),this.cd.detectChanges()}};b.\u0275fac=function(l){return new(l||b)(H(Oe))},b.\u0275cmp=me({type:b,selectors:[["dsw-date-filter"]],viewQuery:function(l,c){if(l&1&&Te(Vt,5),l&2){let y;Pe(y=Ve())&&(c.datePicker=y.first)}},standalone:!0,features:[be],decls:5,vars:2,consts:[["datePicker",""],[3,"selected"],[3,"select","inline","range"],[3,"click"]],template:function(l,c){if(l&1){let y=q();x(0,"ul"),ve(1,Et,2,3,"li",1,Ce),k(),x(3,"dsw-date-picker",2,0),R("select",function(D){return V(y),E(c.onSelect(D))}),k()}l&2&&(w(),ye(c.filters),w(2),K("inline",!0)("range",!0))},dependencies:[Dt],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;font-size:14px;color:var(--cl-widget-filter-txt);display:flex;align-items:flex-start;overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar{width:5px;height:8px;background-color:#eee}[_nghost-%COMP%]::-webkit-scrollbar-thumb{background:#aaa}ul[_ngcontent-%COMP%]{border-right:1px solid var(--cl-input-border);padding:20px;margin:0;list-style-type:none}li[_ngcontent-%COMP%]{white-space:nowrap;cursor:pointer}li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}li.selected[_ngcontent-%COMP%]{position:relative;color:var(--cl-accent)}li.selected[_ngcontent-%COMP%]:before{position:absolute;left:-20px;top:0;height:100%;width:2px;content:"";background-color:var(--cl-accent)}dsw-date-picker[_ngcontent-%COMP%] .air-datepicker{border:none}'],changeDetection:0});let v=b;return v})();var Ot=["dateFilter"];function It(v,b){if(v&1){let o=q();x(0,"div",12)(1,"span",17)(2,"input",18),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isAll,l)||(c.model.isAll=l),E(l)}),R("click",function(l){V(o);let c=F(2);return E(c.setAll(l))}),k(),x(3,"label",19),O(4),U(5,"i18n"),k()(),x(6,"span",17)(7,"input",20),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isExclude,l)||(c.model.isExclude=l),E(l)}),k(),x(8,"label",21),O(9),U(10,"i18n"),k()(),x(11,"span")(12,"input",22),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isInterval,l)||(c.model.isInterval=l),E(l)}),k(),x(13,"label",23),O(14),U(15,"i18n"),k()()()}if(v&2){let o=F(2);w(),K("hidden",o.model.isInterval),w(),le("ngModel",o.model.isAll),w(2),Q(Y(5,8,"all")),w(2),K("hidden",o.model.isInterval),w(),le("ngModel",o.model.isExclude),w(2),Q(Y(10,10,"exclude")),w(3),le("ngModel",o.model.isInterval),w(2),Q(Y(15,12,"interval"))}}function At(v,b){if(v&1&&(x(0,"option",25),O(1),k()),v&2){let o=b.$implicit;K("ngValue",o.path),w(),Q(o.name)}}function Lt(v,b){if(v&1&&(x(0,"option",25),O(1),k()),v&2){let o=b.$implicit;K("ngValue",o.path),w(),Q(o.name)}}function Ht(v,b){if(v&1){let o=q();x(0,"div",13)(1,"div")(2,"label"),O(3),U(4,"i18n"),k(),x(5,"select",24),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.from,l)||(c.model.from=l),E(l)}),ve(6,At,2,2,"option",25,Ce),k()(),x(8,"div")(9,"label"),O(10),U(11,"i18n"),k(),x(12,"select",24),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.to,l)||(c.model.to=l),E(l)}),ve(13,Lt,2,2,"option",25,Ce),k()()()}if(v&2){let o=F(2);w(3),Q(Y(4,4,"from")),w(2),le("ngModel",o.model.from),w(),ye(o.model.values),w(4),Q(Y(11,6,"to")),w(2),le("ngModel",o.model.to),w(),ye(o.model.values)}}function Nt(v,b){if(v&1){let o=q();x(0,"div",26),R("click",function(l){V(o);let c=F(2);return E(c.setAll(l))}),Z(1,"input",27),x(2,"div"),O(3,"Default"),k()()}if(v&2){let o=F(2);w(),K("checked",o.model.isAll)}}function Bt(v,b){if(v&1&&(x(0,"div"),O(1),k()),v&2){let o=F().$implicit;w(),Q(o.info)}}function Rt(v,b){if(v&1){let o=q();x(0,"div",26),R("click",function(l){let c=V(o).$implicit,y=F(2);return E(y.toggleRow(c,l))}),x(1,"input",28,1),R("click",function(l){let c=V(o).$implicit,y=Ee(2),P=F(2);return c.checked=y.checked,E(P.onItemSelect(l))}),k(),x(3,"div"),O(4),ge(5,Bt,2,1,"div"),k()()}if(v&2){let o=b.$implicit,u=F(2);w(),fe("readonly",u.isRadio),K("type",u.isRadio?"radio":"checkbox")("checked",o.checked),w(2),Ye(o.default?"bold":""),fe("selected",o.checked),w(),oe("",o.name," "),w(),X(o.info?5:-1)}}function jt(v,b){v&1&&(x(0,"div",16),Z(1,"img",29),k())}function Wt(v,b){if(v&1){let o=q();x(0,"div",9),Z(1,"img",10),x(2,"input",11,0),U(4,"i18n"),he("ngModelChange",function(l){V(o);let c=F();return de(c.model.search,l)||(c.model.search=l),E(l)}),R("search",function(){V(o);let l=Ee(3),c=F();return E(c.onSearch(l.value))})("keyup",function(){V(o);let l=Ee(3),c=F();return E(c.onSearch(l.value))})("keydown.enter",function(){V(o);let l=F();return E(l.searchFilters())}),k()(),ge(5,It,16,14,"div",12)(6,Ht,15,8,"div",13),x(7,"div",14),ge(8,Nt,4,1,"div",15),ve(9,Rt,6,10,"div",15,ze().trackByIndex,!0),ge(11,jt,2,0,"div",16),k()}if(v&2){let o=F();w(2),Je("placeholder",Y(4,7,"search")),le("ngModel",o.model.search),w(3),X(o.isRadio?-1:5),w(),X(o.model.isInterval?6:-1),w(),K("hidden",o.model.isInterval),w(),X(o.hasDefault?8:-1),w(),ye(o.model.values),w(2),X(o.model.isLoading?11:-1)}}function Kt(v,b){v&1&&Z(0,"dsw-date-filter",null,2)}var _i=(()=>{let b=class b{constructor(u,l,c,y,P,D,I,C,S){this.ss=u,this.el=l,this.ds=c,this.dbs=y,this.fs=P,this.es=D,this.us=I,this.cdr=C,this.locale=S,this.model={search:"",isLoading:!1,filter:void 0,values:[],isAll:!1,isExclude:!1,isInterval:!1,from:"",to:""},this.isRelatedFilters=!1,this.trackByIndex=($,W)=>$,this.datePipe=new Qe(S);let L=this.ss.getAppSettings();this.isRelatedFilters=L.isRelatedFilters===void 0?!0:L.isRelatedFilters}get isDateFilter(){return!!this.model?.filter?.isDate}get isRadio(){return this.model?.filter?.type==="radioSet"||this.model?.filter?.action==="applyVariable"}get hasDefault(){return this.model?.filter?.type==="radioSet"&&this.model?.filter?.action!=="applyVariable"}ngAfterViewInit(){let u=this.el?.nativeElement;if(!u)return;let l=u.getBoundingClientRect(),c=window.innerHeight;if(l.top+l.height>c){let y=c-l.top,P=l.top-26-4-4;if(c-l.top<200&&P>y){let D=c-l.top+30+4,I=c-D-l.height;u.style.maxHeight=l.height+I-20+"px",u.style.top="",u.style.bottom=D+"px"}else{let D=l.top+l.height-c;u.style.maxHeight=l.height-D-20+"px"}}this.initializeDateFilter()}initialize(u,l,c){this.widget=u,this.model.filter=l,!l.isDate&&this.isRelatedFilters?this.requestRelatedFilters(l):this.prepareFilters(),this.model.isAll=!this.isAnyChecked(),this.model.isExclude=l.isExclude,this.model.isInterval=l.isInterval}ngOnInit(){}requestRelatedFilters(u){let l=this.getDataSource();if(this.prepareFilters(),!l)return;let c=[],y=this.fs.items,P=y.filter(C=>!C.isInterval&&C.targetProperty!==this.model.filter?.targetProperty&&C.value!==""),D=[];P.forEach(C=>{let S=C.value.toString();C.isExclude&&(S=S.split("|").map(L=>L+=".%NOT").join("|")),C.isInterval&&(S=S.replace("|",":")),C.value.toString().indexOf("|")!==-1&&(S="{"+S.replace(/\|/g,",")+"}"),D.push({Filter:C.targetProperty,Value:S})}),y.find(C=>C.targetProperty===this.model?.filter?.targetProperty)?.values?.filter(C=>!C._saved)?.length&&(this.model.isLoading=!0,this.ds.searchFilters("",l,D,[this.model.filter?.targetProperty]).catch(C=>this.onError(C,C.status)).then(C=>{this.onFilterValuesReceived(C),this.onSearch("")}).finally(()=>{this.model.isLoading=!1,this.cdr.detectChanges()}))}getDataSource(){let u="";try{if(this.widget.type.toLowerCase()===Xe.const.emptyWidgetClass){let l=this.model.filter?.source||"";u=this.dbs.getWidgets().filter(y=>y.name===l)[0]?.dataSource||""}else u=this.widget.dataSource}catch{u=""}return u}prepareFilters(){this.fs.filtersChanged=!1,this.model.values=[];for(let u=0;uthis.onError(c,c.status)).then(c=>{this.onFilterValuesReceived(c),this.onSearch(l)}))}onFilterValuesReceived(u,l=!1){if(this.model.isLoading=!1,!u)return;let c=u.children.filter(I=>I.path===this.model.filter?.targetProperty);if(c.length===0)return;let y=c[0];if(!y.children||y.children.length===0)return;let P=this.model.filter?.values.slice(),D=[];y.children.forEach(I=>{let C=P.find(S=>S?.path===I?.path||!isNaN(I?.path)&&parseInt(S?.path,10)===I?.path);C&&Object.assign(I,C),D.push(I)}),D.length&&this.model.filter&&(this.model.filter.values=[...D])}onError(u,l){this.model.isLoading=!1,this.es.show(`Error ${l.toString()}`)}removeFilter(){this.model.filter&&(this.model.filter.isInterval=!1),delete this.model.filter?.fromIdx,delete this.model.filter?.toIdx;for(let u=0;uu.path===this.model.from),this.model.filter.toIdx=this.model.values.findIndex(u=>u.path===this.model.to)):(delete this.model.filter.from,delete this.model.filter.to),this.model.filter.isDate){this.model.filter.isInterval=!1,delete this.model.filter.from,delete this.model.filter.to;let u=this.dateFilter.getValues();this.model.filter.values=u.map(l=>{let c=l.getFullYear()+"-"+("0"+(l.getMonth()+1)).slice(-2)+"-"+("0"+l.getDate()).slice(-2);return{name:this.datePipe.transform(l,"dd MMM yyyy"),path:`&[${c}]`,checked:!0}}),u.length===2&&(this.model.filter.isInterval=!0,this.model.filter.fromIdx=0,this.model.filter.toIdx=1)}this.fs.applyFilter(this.model.filter),this.fs.filtersChanged=!0,this.close()}close(){this._modal?.close()}initializeDateFilter(){if(!this.model?.filter?.isDate||!this.dateFilter)return;let u=this.model?.filter?.value;if(!u)return;let l=u.split("|").map(c=>this.createDate(c));this.dateFilter.setDateRange(l[0],l[1])}createDate(u){return this.us.toDate(u.replace("&[","").replace("]",""))}};b.\u0275fac=function(l){return new(l||b)(H(it),H($e),H(et),H(ut),H(pt),H(Ze),H(tt),H(Oe),H(qe))},b.\u0275cmp=me({type:b,selectors:[["dsw-filter-popup"]],viewQuery:function(l,c){if(l&1&&Te(Ot,5),l&2){let y;Pe(y=Ve())&&(c.dateFilter=y.first)}},hostVars:2,hostBindings:function(l,c){l&2&&fe("date-filter",c.isDateFilter)},inputs:{_modal:"_modal"},standalone:!0,features:[be],decls:15,vars:11,consts:[["sr",""],["inp",""],["dateFilter",""],[1,"footer"],[1,"btn","default",3,"click"],["src","assets/img/icons/icon-check.svg",1,"ico","ico-accept"],[1,"btn",3,"click"],["src","assets/img/icons/icon-reload.svg",1,"ico","ico-accept"],["src","assets/img/icons/icon-close.svg",1,"ico","ico-close"],[1,"header"],["src","assets/img/icons/icon-search.svg"],["type","search","dswAutoFocus","desktop",3,"ngModelChange","search","keyup","keydown.enter","placeholder","ngModel"],[1,"checks-container"],[1,"interval-container"],[1,"values-list",3,"hidden"],[1,"value-row"],[1,"spinner"],[3,"hidden"],["id","all","type","checkbox",3,"ngModelChange","click","ngModel"],["for","all"],["id","exclude","type","checkbox",3,"ngModelChange","ngModel"],["for","exclude"],["id","interval","type","checkbox",3,"ngModelChange","ngModel"],["for","interval"],[3,"ngModelChange","ngModel"],[3,"ngValue"],[1,"value-row",3,"click"],["type","radio","name","filter-item",3,"checked"],["name","filter-item",3,"click","type","checked"],["src","assets/img/spinner.svg"]],template:function(l,c){l&1&&(ge(0,Wt,12,9)(1,Kt,2,0,"dsw-date-filter"),x(2,"div",3)(3,"button",4),R("click",function(){return c.acceptFilter()}),Z(4,"img",5),O(5),U(6,"i18n"),k(),x(7,"button",6),R("click",function(){return c.removeFilter()}),Z(8,"img",7),O(9),U(10,"i18n"),k(),x(11,"button",6),R("click",function(){return c.close()}),Z(12,"img",8),O(13),U(14,"i18n"),k()()),l&2&&(X(c.model.filter!=null&&c.model.filter.isDate?-1:0),w(),X(c.model.filter!=null&&c.model.filter.isDate?1:-1),w(4),oe(" ",Y(6,5,"accept")," "),w(4),oe(" ",Y(10,7,"dismiss")," "),w(4),oe(" ",Y(14,9,"close")," "))},dependencies:[ct,dt,ht,at,st,lt,rt,ot,nt,wt,Ge],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:absolute;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;width:340px;background-color:var(--cl-widget-filter-bg);filter:drop-shadow(0px 0px 10px rgba(0,0,0,.1));border-radius:10px;padding:20px 20px 63px}@media (max-width: 576px){[_nghost-%COMP%]{left:0!important;width:100vw;display:flex;flex-direction:column;padding-top:4px}}.date-filter[_nghost-%COMP%]{padding:0 0 45px;width:auto}.header[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.header[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{width:100%;border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}.values-list[_ngcontent-%COMP%]{overflow:auto;max-height:280px;color:var(--cl-txt)}.value-row[_ngcontent-%COMP%]{display:flex;padding:5px 0;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt)}.value-row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}@media (max-width: 576px){.value-row[_ngcontent-%COMP%]{padding:0;display:flex}}.value-row[_ngcontent-%COMP%] > div.selected[_ngcontent-%COMP%]{color:var(--cl-accent)}input[type=search][_ngcontent-%COMP%]{width:116px}@media (max-width: 576px){input[type=search][_ngcontent-%COMP%]{width:100%;height:calc(100% - 8px);background-color:transparent;border:none;box-shadow:none}}input[_ngcontent-%COMP%]:focus{outline:1px solid var(--cl-accent);outline-offset:-1px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{flex-grow:0;margin-right:5px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{cursor:pointer}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=radio][_ngcontent-%COMP%]:focus{outline:none}@media (max-width: 576px){input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{height:34px;margin-right:4px;margin-left:4px}}.checks-container[_ngcontent-%COMP%]{color:var(--cl-widget-filter-txt);display:flex;padding-bottom:12px}.checks-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;margin-right:12px;align-items:center}.ico[_ngcontent-%COMP%]{opacity:.7;vertical-align:middle}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}.interval-container[_ngcontent-%COMP%]{padding:4px;color:var(--cl-txt)}.interval-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:10px}.readonly[_ngcontent-%COMP%]{pointer-events:none}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;display:flex;justify-content:flex-end;border-top:1px solid #EBEBEA}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{height:44px;padding:0 10px;border:none;box-shadow:none;background:transparent;color:#606367;display:flex;align-items:center;transition:filter .3s linear}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:6px}.footer[_ngcontent-%COMP%] > .btn.default[_ngcontent-%COMP%]{color:var(--cl-accent)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:hover{filter:contrast(3)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:focus, .footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:active{border:none;outline:none}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:last-child{padding-right:20px}"],changeDetection:0});let v=b;return v})();export{_i as FilterPopupComponent}; +import{a as nt}from"./chunk-B5EPJNTD.js";import{a as pt}from"./chunk-4E6RZBBM.js";import{b as ut}from"./chunk-ZXTET2VA.js";import{b as st,c as at,d as rt,e as ot,f as lt,g as dt,h as ht,j as ct}from"./chunk-6RK5MU4O.js";import{D as Ge,F as Xe,G as Ze,H as et,I as tt,J as it,h as Qe}from"./chunk-LT3W5FMN.js";import{$a as w,$b as de,Ab as Ce,Ba as $e,Bb as ve,Bc as Oe,Cb as ye,Da as Ue,Db as x,Eb as k,Fb as Z,Jb as q,Nb as R,Ob as F,Rb as Je,Tb as Te,Ub as Pe,Vb as Ve,Wb as Ee,Xb as O,Yb as Q,Zb as oe,_b as le,ab as H,ac as he,cc as be,fa as me,hc as U,ic as Y,qa as V,ra as E,rb as ge,tb as K,vb as fe,wb as Ye,xb as ze,yb as X,zc as qe}from"./chunk-ZKAUCJHV.js";import{a as je,d as We,f as Ke}from"./chunk-DEPBX7UX.js";var mt=We((xe,Ne)=>{"use strict";(function(v,b){typeof xe=="object"&&typeof Ne=="object"?Ne.exports=b():typeof define=="function"&&define.amd?define([],b):typeof xe=="object"?xe.AirDatepicker=b():v.AirDatepicker=b()})(xe,function(){return function(){"use strict";var v={d:function(d,e){for(var i in e)v.o(e,i)&&!v.o(d,i)&&Object.defineProperty(d,i,{enumerable:!0,get:e[i]})},o:function(d,e){return Object.prototype.hasOwnProperty.call(d,e)}},b={};v.d(b,{default:function(){return J}});var o={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},u={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:o.days,minView:o.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'',nextHtml:'',navTitles:{days:"MMMM, yyyy",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function l(d){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof d=="string"?e.querySelector(d):d}function c(){let{tagName:d="div",className:e="",innerHtml:i="",id:t="",attrs:a={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=document.createElement(d);return e&&s.classList.add(...e.split(" ")),t&&(s.id=t),i&&(s.innerHTML=i),a&&y(s,a),s}function y(d,e){for(let[i,t]of Object.entries(e))t!==void 0&&d.setAttribute(i,t);return d}function P(d){return new Date(d.getFullYear(),d.getMonth()+1,0).getDate()}function D(d){let e=d.getHours(),{hours:i,dayPeriod:t}=I(e);return{year:d.getFullYear(),month:d.getMonth(),fullMonth:d.getMonth()+1<10?"0"+(d.getMonth()+1):d.getMonth()+1,date:d.getDate(),fullDate:d.getDate()<10?"0"+d.getDate():d.getDate(),day:d.getDay(),hours:e,fullHours:C(e),hours12:i,dayPeriod:t,fullHours12:C(i),minutes:d.getMinutes(),fullMinutes:d.getMinutes()<10?"0"+d.getMinutes():d.getMinutes()}}function I(d){return{dayPeriod:d>11?"pm":"am",hours:d%12==0?12:d%12}}function C(d){return d<10?"0"+d:d}function S(d){let e=10*Math.floor(d.getFullYear()/10);return[e,e+9]}function L(){let d=[];for(var e=arguments.length,i=new Array(e),t=0;t{if(typeof a=="object")for(let s in a)a[s]&&d.push(s);else a&&d.push(a)}),d.join(" ")}function $(d,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:o.days;if(!d||!e)return!1;let t=D(d),a=D(e);return{[o.days]:t.date===a.date&&t.month===a.month&&t.year===a.year,[o.months]:t.month===a.month&&t.year===a.year,[o.years]:t.year===a.year}[i]}function W(d,e,i){let t=ke(d,!1).getTime(),a=ke(e,!1).getTime();return i?t>=a:t>a}function ce(d,e){return!W(d,e,!0)}function ke(d){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=new Date(d.getTime());return typeof e!="boolean"||e||function(t){t.setHours(0,0,0,0)}(i),i}function N(d,e,i){d.length?d.forEach(t=>{t.addEventListener(e,i)}):d.addEventListener(e,i)}function De(d,e){return!(!d||d===document||d instanceof DocumentFragment)&&(d.matches(e)?d:De(d.parentNode,e))}function ue(d,e,i){return d>i?i:d1?e-1:0),t=1;ta).forEach(a=>{for(let[s,n]of Object.entries(a))if(n!==void 0&&n.toString()==="[object Object]"){let r=d[s]!==void 0?d[s].toString():void 0,h=n.toString(),p=Array.isArray(n)?[]:{};d[s]=d[s]?r!==h?p:d[s]:p,Me(d[s],n)}else d[s]=n}),d}function B(d){let e=d;return d instanceof Date||(typeof d=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(d)&&(d+="T00:00:00"),e=new Date(d)),isNaN(e.getTime())&&(console.log(`Unable to convert value "${d}" to Date object`),e=!1),e}function Ae(d){let e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+d+")($|<|"+e+")","g")}function ee(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class _t{constructor(){let{type:e,date:i,dp:t,opts:a,body:s}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ee(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),ee(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),ee(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),ee(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),ee(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),ee(this,"onChangeFocusDate",n=>{if(!n)return void(this.focused&&this.removeFocus());let r=$(n,this.date,this.type);r?this.focus():!r&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),ee(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell)),this.type=e,this.singleType=this.type.slice(0,-1),this.date=i,this.dp=t,this.opts=a,this.body=s,this.customData=!1,this.init()}init(){var e;let{onRenderCell:i}=this.opts;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(e=this.customData)!==null&&e!==void 0&&e.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(o.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(o.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var e;let{year:i,month:t,date:a}=D(this.date),s=((e=this.customData)===null||e===void 0?void 0:e.attrs)||{};this.$cell=c({attrs:je({"data-year":i,"data-month":t,"data-date":a},s)}),this.$cell.adpCell=this}_getClassName(){var e;let i=new Date,{selectOtherMonths:t,selectOtherYears:a}=this.opts,{minDate:s,maxDate:n,isDateDisabled:r}=this.dp,{day:h}=D(this.date),p=this._isOutOfMinMaxRange(),g=r(this.date),m=L("air-datepicker-cell",`-${this.singleType}-`,{"-current-":$(i,this.date,this.type),"-min-date-":s&&$(s,this.date,this.type),"-max-date-":n&&$(n,this.date,this.type)}),f="";switch(this.type){case o.days:f=L({"-weekend-":this.dp.isWeekend(h),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!t||p||g});break;case o.months:f=L({"-disabled-":p});break;case o.years:f=L({"-other-decade-":this.isOtherDecade,"-disabled-":p||this.isOtherDecade&&!a})}return L(m,f,(e=this.customData)===null||e===void 0?void 0:e.classes).split(" ")}_getHtml(){var e;let{year:i,month:t,date:a}=D(this.date),{showOtherMonths:s,showOtherYears:n}=this.opts;if((e=this.customData)!==null&&e!==void 0&&e.html)return this.customData.html;switch(this.type){case o.days:return!s&&this.isOtherMonth?"":a;case o.months:return this.dp.locale[this.opts.monthsField][t];case o.years:return!n&&this.isOtherDecade?"":i}}_isOutOfMinMaxRange(){let{minDate:e,maxDate:i}=this.dp,{type:t,date:a}=this,{month:s,year:n,date:r}=D(a),h=t===o.days,p=t===o.years,g=!!e&&new Date(n,p?e.getMonth():s,h?r:e.getDate()),m=!!i&&new Date(n,p?i.getMonth():s,h?r:i.getDate());return e&&i?ce(g,e)||W(m,i):e?ce(g,e):i?W(m,i):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:e,focusDate:i,rangeDateTo:t,rangeDateFrom:a}=this.dp,s=e.length;if(!s)return;let n=a,r=t;if(s===1&&i){let f=W(i,e[0]);n=f?e[0]:i,r=f?i:e[0]}let h=L({"-in-range-":n&&r&&(p=this.date,g=n,m=r,W(p,g)&&ce(p,m)),"-range-from-":n&&$(this.date,n,this.type),"-range-to-":r&&$(this.date,r,this.type)});var p,g,m;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),h&&this.$cell.classList.add(...h.split(" "))}_handleSelectedStatus(){let e=this.dp._checkIfDateIsSelected(this.date,this.type);e?this.select():!e&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){$(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function j(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}let Ct={[o.days]:`
`,[o.months]:`
`,[o.years]:`
`},we=".air-datepicker-cell";class G{constructor(e){let{dp:i,type:t,opts:a}=e;j(this,"handleClick",s=>{let n=s.target.closest(we).adpCell;if(n.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let r=this.dp._checkIfDateIsSelected(n.date,n.type);r?this.dp._handleAlreadySelectedDates(r,n.date):this.dp.selectDate(n.date)}),j(this,"handleDayNameClick",s=>{let n=s.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(n),datepicker:this.dp})}),j(this,"onChangeCurrentView",s=>{s!==this.type?this.hide():(this.show(),this.render())}),j(this,"onMouseOverCell",s=>{let n=De(s.target,we);this.dp.setFocusDate(!!n&&n.adpCell.date)}),j(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),j(this,"onClickBody",s=>{let{onClickDayName:n}=this.opts,r=s.target;r.closest(we)&&this.handleClick(s),n&&r.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(s)}),j(this,"onMouseDown",s=>{this.pressed=!0;let n=De(s.target,we),r=n&&n.adpCell;$(r.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),$(r.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),j(this,"onMouseMove",s=>{if(!this.pressed||!this.dp.isMinViewReached)return;s.preventDefault();let n=De(s.target,we),r=n&&n.adpCell,{selectedDates:h,rangeDateTo:p,rangeDateFrom:g}=this.dp;if(!r||r.isDisabled)return;let{date:m}=r;if(h.length===2){if(this.rangeFromFocused&&!W(m,p)){let{hours:f,minutes:M}=D(g);m.setHours(f),m.setMinutes(M),this.dp.rangeDateFrom=m,this.dp.replaceDate(g,m)}if(this.rangeToFocused&&!ce(m,g)){let{hours:f,minutes:M}=D(p);m.setHours(f),m.setMinutes(M),this.dp.rangeDateTo=m,this.dp.replaceDate(p,m)}}}),j(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),j(this,"onChangeViewDate",(s,n)=>{if(!this.isVisible)return;let r=S(s),h=S(n);switch(this.dp.currentView){case o.days:if($(s,n,o.months))return;break;case o.months:if($(s,n,o.years))return;break;case o.years:if(r[0]===h[0]&&r[1]===h[1])return}this.render()}),j(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(s=>{this.$cells.appendChild(s.render())})}),this.dp=i,this.type=t,this.opts=a,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===o.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:e,dynamicRange:i}=this.opts;N(this.$el,"mouseover",this.onMouseOverCell),N(this.$el,"mouseout",this.onMouseOutCell),N(this.$el,"click",this.onClickBody),e&&i&&(N(this.$el,"mousedown",this.onMouseDown),N(this.$el,"mousemove",this.onMouseMove),N(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(o.eventChangeViewDate,this.onChangeViewDate),this.dp.on(o.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=c({className:`air-datepicker-body -${this.type}-`,innerHtml:Ct[this.type]}),this.$names=l(".air-datepicker-body--day-names",this.$el),this.$cells=l(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,i="",t=this.dp.isWeekend,{onClickDayName:a}=this.opts,s=e,n=0;for(;n<7;){let r=s%7;i+=`
${this.dp.locale.daysMin[r]}
`,n++,s++}return i}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(e){let{type:i,dp:t,opts:a}=this;return new _t({type:i,dp:t,opts:a,date:e,body:this})}_generateCells(){G.getDatesFunction(this.type)(this.dp,e=>{this.cells.push(this._generateCell(e))})}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(e=>e.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(o.eventChangeViewDate,this.onChangeViewDate),this.dp.off(o.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(e,i){let{viewDate:t,opts:{fixedHeight:a},locale:{firstDay:s}}=e,n=P(t),{year:r,month:h}=D(t),p=new Date(r,h,1),g=new Date(r,h,n),m=p.getDay()-s,f=6-g.getDay()+s;m=m<0?m+7:m,f=f>6?f-7:f;let M=function(re,He){let{year:Se,month:$t,date:Tt}=D(re);return new Date(Se,$t,Tt-He)}(p,m),A=n+m+f,T=M.getDate(),{year:Fe,month:_e}=D(M),se=0;a&&(A=42);let ae=[];for(;se0&&arguments[0]!==void 0?arguments[0]:o.days;return{[o.days]:G.getDaysDates,[o.months]:G.getMonthsDates,[o.years]:G.getYearsDates}[e]}}function te(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class xt{constructor(e){let{dp:i,opts:t}=e;te(this,"onClickNav",a=>{let s=De(a.target,".air-datepicker-nav--action");if(!s)return;let n=s.dataset.action;this.dp[n]()}),te(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),te(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),te(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),te(this,"update",()=>{let{prevHtml:a,nextHtml:s}=this.opts;this.$prev.innerHTML=a,this.$next.innerHTML=s,this._resetNavStatus(),this.render(),this.handleNavStatus()}),te(this,"renderDelay",()=>{setTimeout(this.render)}),te(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(a,s){for(let n in s)s[n]?a.classList.add(n):a.classList.remove(n)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=i,this.opts=t,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=l(".air-datepicker-nav--title",this.$el),this.$prev=l('[data-action="prev"]',this.$el),this.$next=l('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(o.eventChangeViewDate,this.onChangeViewDate),this.dp.on(o.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(o.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(o.eventChangeTime,this.render))}destroy(){this.dp.off(o.eventChangeViewDate,this.onChangeViewDate),this.dp.off(o.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(o.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(o.eventChangeTime,this.render))}_createElement(){this.$el=c({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:e,opts:i}=this,t=i.navTitles[e.currentView];return typeof t=="function"?t(e):e.formatDate(e.viewDate,t)}handleNavStatus(){let{disableNavWhenOutOfRange:e}=this.opts,{minDate:i,maxDate:t}=this.dp;if(!i&&!t||!e)return;let{year:a,month:s}=this.dp.parsedViewDate,n=!!i&&D(i),r=!!t&&D(t);switch(this.dp.currentView){case o.days:i&&n.month>=s&&n.year>=a&&this._disableNav("prev"),t&&r.month<=s&&r.year<=a&&this._disableNav("next");break;case o.months:i&&n.year>=a&&this._disableNav("prev"),t&&r.year<=a&&this._disableNav("next");break;case o.years:{let h=S(this.dp.viewDate);i&&n.year>=h[0]&&this._disableNav("prev"),t&&r.year<=h[1]&&this._disableNav("next");break}}}_disableNav(e){l('[data-action="'+e+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),a=1;a{s.classList.remove(...t)}):e.classList.remove(...t)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:e,nextHtml:i}=this.opts;this.$el.innerHTML=`
${e}
${i}
`}get isNavIsFunction(){let{navTitles:e}=this.opts;return Object.keys(e).find(i=>typeof e[i]=="function")}}var Be={today:{content:d=>d.locale.today,onClick:d=>d.setViewDate(new Date)},clear:{content:d=>d.locale.clear,onClick:d=>d.clear()}};class kt{constructor(e){let{dp:i,opts:t}=e;this.dp=i,this.opts=t,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=c({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:e}=this.opts;Array.isArray(e)||(e=[e]),e.forEach(i=>{let t=i;typeof i=="string"&&Be[i]&&(t=Be[i]);let a=this.createButton(t);t.onClick&&this.attachEventToButton(a,t.onClick),this.$el.appendChild(a)})}attachEventToButton(e,i){e.addEventListener("click",()=>{i(this.dp)})}createButton(e){let{content:i,className:t,tagName:a="button",attrs:s={}}=e;return c({tagName:a,innerHtml:`${typeof i=="function"?i(this.dp):i}`,className:L("air-datepicker-button",t),attrs:s})}render(){this.generateButtons()}}function ie(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}class Mt{constructor(){let{opts:e,dp:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ie(this,"toggleTimepickerIsActive",a=>{this.dp.timepickerIsActive=a}),ie(this,"onChangeSelectedDate",a=>{let{date:s,updateTime:n=!1}=a;s&&(this.setMinMaxTime(s),this.setCurrentTime(!!n&&s),this.addTimeToDate(s))}),ie(this,"onChangeLastSelectedDate",a=>{a&&(this.setTime(a),this.render())}),ie(this,"onChangeInputRange",a=>{let s=a.target;this[s.getAttribute("name")]=s.value,this.updateText(),this.dp.trigger(o.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),ie(this,"onMouseEnterLeave",a=>{let s=a.target.getAttribute("name"),n=this.$minutesText;s==="hours"&&(n=this.$hoursText),n.classList.toggle("-focus-")}),ie(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),ie(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=e,this.dp=i;let{timeFormat:t}=this.dp.locale;t&&(t.match(Ae("h"))||t.match(Ae("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(o.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let e="input";navigator.userAgent.match(/trident/gi)&&(e="change"),N(this.$ranges,e,this.onChangeInputRange),N(this.$ranges,"mouseenter",this.onMouseEnterLeave),N(this.$ranges,"mouseleave",this.onMouseEnterLeave),N(this.$ranges,"focus",this.onFocus),N(this.$ranges,"mousedown",this.onFocus),N(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=c({className:L("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(o.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(o.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:e,hours:i,displayHours:t,minutes:a,minHours:s,minMinutes:n,maxHours:r,maxMinutes:h,dayPeriod:p,opts:{hoursStep:g,minutesStep:m}}=this;this.$el.innerHTML=`
${C(t)} : ${C(a)} `+(e?`${p}`:"")+`
`}defineDOM(){let e=i=>l(i,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")}setTime(e){this.setMinMaxTime(e),this.setCurrentTime(e)}addTimeToDate(e){e&&(e.setHours(this.hours),e.setMinutes(this.minutes))}setMinMaxTime(e){if(this.setMinMaxTimeFromOptions(),e){let{minDate:i,maxDate:t}=this.dp;i&&$(e,i)&&this.setMinTimeFromMinDate(i),t&&$(e,t)&&this.setMaxTimeFromMaxDate(t)}}setCurrentTime(e){let{hours:i,minutes:t}=e?D(e):this;this.hours=ue(i,this.minHours,this.maxHours),this.minutes=ue(t,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:e,minMinutes:i,maxHours:t,maxMinutes:a}=this.opts;this.minHours=ue(e,0,23),this.minMinutes=ue(i,0,59),this.maxHours=ue(t,0,23),this.maxMinutes=ue(a,0,59)}setMinTimeFromMinDate(e){let{lastSelectedDate:i}=this.dp;this.minHours=e.getHours(),i&&i.getHours()>e.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=e.getMinutes()}setMaxTimeFromMaxDate(e){let{lastSelectedDate:i}=this.dp;this.maxHours=e.getHours(),i&&i.getHours()a.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],a=>a.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],a=>a.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],a=>a.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],a=>a.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],a=>a.year-=10],[["Control","Shift","ArrowUp"],(a,s)=>s.up()]])),ne(this,"handleHotKey",a=>{let s=this.hotKeys.get(a),n=D(this.getInitialFocusDate());s(n,this.dp);let{year:r,month:h,date:p}=n,g=P(new Date(r,h));g{let a=!1,s=this.pressedKeys.size,n=r=>this.pressedKeys.has(r);for(let[r]of this.hotKeys){if(a)break;if(Array.isArray(r[0]))r.forEach(h=>{a||s!==h.length||(a=h.every(n)&&r)});else{if(s!==r.length)continue;a=r.every(n)&&r}}return a}),ne(this,"isArrow",a=>a>=37&&a<=40),ne(this,"onKeyDown",a=>{let{key:s,which:n}=a,{dp:r,dp:{focusDate:h},opts:p}=this;this.registerKey(s);let g=this.isHotKeyPressed();if(g)return a.preventDefault(),void this.handleHotKey(g);if(this.isArrow(n))return a.preventDefault(),void this.focusNextCell(s);if(s==="Enter"){if(r.currentView!==p.minView)return void r.down();if(h){let m=r._checkIfDateIsSelected(h);return void(m?r._handleAlreadySelectedDates(m,h):r.selectDate(h))}}s==="Escape"&&this.dp.hide()}),ne(this,"onKeyUp",a=>{this.removeKey(a.key)}),this.dp=i,this.opts=t,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:e}=this.dp;e.addEventListener("keydown",this.onKeyDown),e.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:e}=this.dp;e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:e,currentView:i,selectedDates:t,parsedViewDate:{year:a,month:s}}=this.dp,n=e||t[t.length-1];if(!n)switch(i){case o.days:n=new Date(a,s,new Date().getDate());break;case o.months:n=new Date(a,s,1);break;case o.years:n=new Date(a,0,1)}return n}focusNextCell(e){let i=this.getInitialFocusDate(),{currentView:t}=this.dp,{days:a,months:s,years:n}=o,r=D(i),h=r.year,p=r.month,g=r.date;switch(e){case"ArrowLeft":t===a&&(g-=1),t===s&&(p-=1),t===n&&(h-=1);break;case"ArrowUp":t===a&&(g-=7),t===s&&(p-=3),t===n&&(h-=4);break;case"ArrowRight":t===a&&(g+=1),t===s&&(p+=1),t===n&&(h+=1);break;case"ArrowDown":t===a&&(g+=7),t===s&&(p+=3),t===n&&(h+=4)}let m=this.dp.getClampedDate(new Date(h,p,g));this.dp.setFocusDate(m,{viewDateTransition:!0})}registerKey(e){this.pressedKeys.add(e)}removeKey(e){this.pressedKeys.delete(e)}}let St={on(d,e){this.__events||(this.__events={}),this.__events[d]?this.__events[d].push(e):this.__events[d]=[e]},off(d,e){this.__events&&this.__events[d]&&(this.__events[d]=this.__events[d].filter(i=>i!==e))},removeAllEvents(){this.__events={}},trigger(d){for(var e=arguments.length,i=new Array(e>1?e-1:0),t=1;t{a(...i)})}};function _(d,e,i){return(e=function(t){var a=function(s,n){if(typeof s!="object"||s===null)return s;var r=s[Symbol.toPrimitive];if(r!==void 0){var h=r.call(s,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(s)}(t);return typeof a=="symbol"?a:String(a)}(e))in d?Object.defineProperty(d,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):d[e]=i,d}let pe="",z="",Le=!1;class J{static buildGlobalContainer(e){Le=!0,pe=c({className:e,id:e}),l("body").appendChild(pe)}constructor(e,i){var t=this;if(_(this,"viewIndexes",[o.days,o.months,o.years]),_(this,"next",()=>{let{year:n,month:r}=this.parsedViewDate;switch(this.currentView){case o.days:this.setViewDate(new Date(n,r+1,1));break;case o.months:this.setViewDate(new Date(n+1,r,1));break;case o.years:this.setViewDate(new Date(n+10,0,1))}}),_(this,"prev",()=>{let{year:n,month:r}=this.parsedViewDate;switch(this.currentView){case o.days:this.setViewDate(new Date(n,r-1,1));break;case o.months:this.setViewDate(new Date(n-1,r,1));break;case o.years:this.setViewDate(new Date(n-10,0,1))}}),_(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),_(this,"setPosition",function(n){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(n=n||t.opts.position)=="function")return void(t.customHide=n({$datepicker:t.$datepicker,$target:t.$el,$pointer:t.$pointer,isViewChange:r,done:t._finishHide}));let h,p,{isMobile:g}=t.opts,m=t.$el.getBoundingClientRect(),f=t.$el.getBoundingClientRect(),M=t.$datepicker.offsetParent,A=t.$el.offsetParent,T=t.$datepicker.getBoundingClientRect(),Fe=n.split(" "),_e=window.scrollY,se=window.scrollX,ae=t.opts.offset,re=Fe[0],He=Fe[1];if(g)t.$datepicker.style.cssText="left: 50%; top: 50%";else{if(M===A&&M!==document.body&&(f={top:t.$el.offsetTop,left:t.$el.offsetLeft,width:m.width,height:t.$el.offsetHeight},_e=0,se=0),M!==A&&M!==document.body){let Se=M.getBoundingClientRect();f={top:m.top-Se.top,left:m.left-Se.left,width:m.width,height:m.height},_e=0,se=0}switch(re){case"top":h=f.top-T.height-ae;break;case"right":p=f.left+f.width+ae;break;case"bottom":h=f.top+f.height+ae;break;case"left":p=f.left-T.width-ae}switch(He){case"top":h=f.top;break;case"right":p=f.left+f.width-T.width;break;case"bottom":h=f.top+f.height-T.height;break;case"left":p=f.left;break;case"center":/left|right/.test(re)?h=f.top+f.height/2-T.height/2:p=f.left+f.width/2-T.width/2}t.$datepicker.style.cssText=`left: ${p+se}px; top: ${h+_e}px`}}),_(this,"_setInputValue",()=>{let{opts:n,$altField:r,locale:{dateFormat:h}}=this,{altFieldDateFormat:p,altField:g}=n;g&&r&&(r.value=this._getInputValue(p)),this.$el.value=this._getInputValue(h)}),_(this,"_getInputValue",n=>{let{selectedDates:r,opts:h}=this,{multipleDates:p,multipleDatesSeparator:g}=h;if(!r.length)return"";let m=typeof n=="function",f=m?n(p?r:r[0]):r.map(M=>this.formatDate(M,n));return f=m?f:f.join(g),f}),_(this,"_checkIfDateIsSelected",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.days,h=!1;return t.selectedDates.some(p=>{let g=$(n,p,r);return h=g&&p,g}),h}),_(this,"_scheduleCallAfterTransition",n=>{this._cancelScheduledCall(),n&&n(!1),this._onTransitionEnd=()=>{n&&n(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),_(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),_(this,"setViewDate",n=>{if(!((n=B(n))instanceof Date)||$(n,this.viewDate))return;let r=this.viewDate;this.viewDate=n;let{onChangeViewDate:h}=this.opts;if(h){let{month:p,year:g}=this.parsedViewDate;h({month:p,year:g,decade:this.curDecade})}this.trigger(o.eventChangeViewDate,n,r)}),_(this,"setFocusDate",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!n||(n=B(n))instanceof Date)&&(t.focusDate=n,t.trigger(o.eventChangeFocusDate,n,r))}),_(this,"setCurrentView",function(n){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t.viewIndexes.includes(n)){if(t.currentView=n,t.elIsInput&&t.visible&&t.setPosition(void 0,!0),t.trigger(o.eventChangeCurrentView,n),!t.views[n]){let h=t.views[n]=new G({dp:t,opts:t.opts,type:n});t.shouldUpdateDOM&&t.$content.appendChild(h.$el)}t.opts.onChangeView&&!r.silent&&t.opts.onChangeView(n)}}),_(this,"_updateLastSelectedDate",n=>{this.lastSelectedDate=n,this.trigger(o.eventChangeLastSelectedDate,n)}),_(this,"destroy",()=>{if(this.isDestroyed)return;let{showEvent:n,isMobile:r}=this.opts,h=this.$datepicker.parentNode;h&&h.removeChild(this.$datepicker),this.$el.removeEventListener(n,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),r&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0}),_(this,"update",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=Me({},t.opts),{silent:p}=r;Me(t.opts,n);let{timepicker:g,buttons:m,range:f,selectedDates:M,isMobile:A}=t.opts,T=t.visible||t.treatAsInline;t._createMinMaxDates(),t._limitViewDateByMaxMinDates(),t._handleLocale(),M&&(t.selectedDates=[],t.selectDate(M,{silent:p})),n.view&&t.setCurrentView(n.view,{silent:p}),t._setInputValue(),h.range&&!f?(t.rangeDateTo=!1,t.rangeDateFrom=!1):!h.range&&f&&t.selectedDates.length&&(t.rangeDateFrom=t.selectedDates[0],t.rangeDateTo=t.selectedDates[1]),h.timepicker&&!g?(T&&t.timepicker.destroy(),t.timepicker=!1,t.$timepicker.parentNode.removeChild(t.$timepicker)):!h.timepicker&&g&&t._addTimepicker(),!h.buttons&&m?t._addButtons():h.buttons&&!m?(t.buttons.destroy(),t.$buttons.parentNode.removeChild(t.$buttons)):T&&h.buttons&&m&&t.buttons.clearHtml().render(),!h.isMobile&&A?(t.treatAsInline||z||t._createMobileOverlay(),t._addMobileAttributes(),t.visible&&t._showMobileOverlay()):h.isMobile&&!A&&(t._removeMobileAttributes(),t.visible&&(z.classList.remove("-active-"),typeof t.opts.position!="function"&&t.setPosition())),T&&(t.nav.update(),t.views[t.currentView].render(),t.currentView===o.days&&t.views[t.currentView].renderDayNames())}),_(this,"disableDate",(n,r)=>{(Array.isArray(n)?n:[n]).forEach(h=>{let p=B(h);if(!p)return;let g=r?"delete":"add";this.disabledDates[g](this.formatDate(p,"yyyy-MM-dd"));let m=this.getCell(p,this.currentViewSingular);m&&m.adpCell.render()},[])}),_(this,"enableDate",n=>{this.disableDate(n,!0)}),_(this,"isDateDisabled",n=>{let r=B(n);return this.disabledDates.has(this.formatDate(r,"yyyy-MM-dd"))}),_(this,"isOtherMonth",n=>{let{month:r}=D(n);return r!==this.parsedViewDate.month}),_(this,"isOtherYear",n=>{let{year:r}=D(n);return r!==this.parsedViewDate.year}),_(this,"isOtherDecade",n=>{let{year:r}=D(n),[h,p]=S(this.viewDate);return rp}),_(this,"_onChangeSelectedDate",n=>{let{silent:r}=n;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!r&&this._triggerOnSelect()})}),_(this,"_onChangeFocusedDate",function(n){let{viewDateTransition:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!n)return;let h=!1;r&&(h=t.isOtherMonth(n)||t.isOtherYear(n)||t.isOtherDecade(n)),h&&t.setViewDate(n),t.opts.onFocus&&t.opts.onFocus({datepicker:t,date:n})}),_(this,"_onChangeTime",n=>{let{hours:r,minutes:h}=n,p=new Date,{lastSelectedDate:g,opts:{onSelect:m}}=this,f=g;g||(f=p);let M=this.getCell(f,this.currentViewSingular),A=M&&M.adpCell;A&&A.isDisabled||(f.setHours(r),f.setMinutes(h),g?(this._setInputValue(),m&&this._triggerOnSelect()):this.selectDate(f))}),_(this,"_onFocus",n=>{this.visible||this.show()}),_(this,"_onBlur",n=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),_(this,"_onMouseDown",n=>{this.inFocus=!0}),_(this,"_onMouseUp",n=>{this.inFocus=!1,this.$el.focus()}),_(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),_(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),_(this,"getViewDates",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.days;return G.getDatesFunction(n)(t)}),_(this,"isWeekend",n=>this.opts.weekends.includes(n)),_(this,"getClampedDate",n=>{let{minDate:r,maxDate:h}=this,p=n;return h&&W(n,h)?p=h:r&&ce(n,r)&&(p=r),p}),this.$el=l(e),!this.$el)return;this.$datepicker=c({className:"air-datepicker"}),this.opts=Me({},u,i),this.$customContainer=!!this.opts.container&&l(this.opts.container),this.$altField=l(this.opts.altField||!1);let{view:a,startDate:s}=this.opts;s||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=B(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=a,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:e,treatAsInline:i,opts:{inline:t,isMobile:a,selectedDates:s,keyboardNav:n,onlyTimepicker:r}}=this,h=l("body");(!Le||Le&&pe&&!h.contains(pe))&&!t&&this.elIsInput&&!this.$customContainer&&J.buildGlobalContainer(J.defaultGlobalContainerId),!a||z||i||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(t||this._bindEvents(),n&&!r&&(this.keyboardNav=new Ft({dp:this,opts:e}))),s&&this.selectDate(s,{silent:!0}),this.opts.visible&&!i&&this.show(),a&&!i&&this.$el.setAttribute("readonly",!0),i&&this._createComponents()}_createMobileOverlay(){z=c({className:"air-datepicker-overlay"}),pe.appendChild(z)}_createComponents(){let{opts:e,treatAsInline:i,opts:{inline:t,buttons:a,timepicker:s,position:n,classes:r,onlyTimepicker:h,isMobile:p}}=this;this._buildBaseHtml(),this.elIsInput&&(t||this._setPositionClasses(n)),!t&&this.elIsInput||this.$datepicker.classList.add("-inline-"),r&&this.$datepicker.classList.add(...r.split(" ")),h&&this.$datepicker.classList.add("-only-timepicker-"),p&&!i&&this._addMobileAttributes(),this.views[this.currentView]=new G({dp:this,type:this.currentView,opts:e}),this.nav=new xt({dp:this,opts:e}),s&&this._addTimepicker(),a&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let e in this.views)this.views[e].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){z.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){z.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:e,maxDate:i}=this.opts;this.minDate=!!e&&B(e),this.maxDate=!!i&&B(i)}_addTimepicker(){this.$timepicker=c({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new Mt({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=c({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new kt({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(o.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(o.eventChangeFocusDate,this._onChangeFocusedDate),this.on(o.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:e}=this.opts;var i,t;this.elIsInput?e?(i=this.$datepicker,(t=this.$el).parentNode.insertBefore(i,t.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='
',this.$content=l(".air-datepicker--content",this.$datepicker),this.$pointer=l(".air-datepicker--pointer",this.$datepicker),this.$nav=l(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:e,dateFormat:i,firstDay:t,timepicker:a,onlyTimepicker:s,timeFormat:n,dateTimeSeparator:r}=this.opts;var h;this.locale=(h=e,JSON.parse(JSON.stringify(h))),i&&(this.locale.dateFormat=i),n!==void 0&&n!==""&&(this.locale.timeFormat=n);let{timeFormat:p}=this.locale;if(t!==""&&(this.locale.firstDay=t),a&&typeof i!="function"){let g=p?r:"";this.locale.dateFormat=[this.locale.dateFormat,p||""].join(g)}s&&typeof i!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(e){if(typeof e=="function")return void this.$datepicker.classList.add("-custom-position-");let i=(e=e.split(" "))[0],t=`air-datepicker -${i}-${e[1]}- -from-${i}-`;this.$datepicker.classList.add(...t.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:e,minDate:i,maxDate:t}=this;t&&W(e,t)&&this.setViewDate(t),i&&ce(e,i)&&this.setViewDate(i)}formatDate(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=B(e),!(e instanceof Date))return;let t=i,a=this.locale,s=D(e),n=s.dayPeriod,r=S(e),h=J.replacer,p={T:e.getTime(),m:s.minutes,mm:s.fullMinutes,h:s.hours12,hh:s.fullHours12,H:s.hours,HH:s.fullHours,aa:n,AA:n.toUpperCase(),E:a.daysShort[s.day],EEEE:a.days[s.day],d:s.date,dd:s.fullDate,M:s.month+1,MM:s.fullMonth,MMM:a.monthsShort[s.month],MMMM:a.months[s.month],yy:s.year.toString().slice(-2),yyyy:s.year,yyyy1:r[0],yyyy2:r[1]};for(let[g,m]of Object.entries(p))t=h(t,Ae(g),m);return t}down(e){this._handleUpDownActions(e,"down")}up(e){this._handleUpDownActions(e,"up")}selectDate(e){let i,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:a,parsedViewDate:s,selectedDates:n}=this,{updateTime:r}=t,{moveToOtherMonthsOnSelect:h,moveToOtherYearsOnSelect:p,multipleDates:g,range:m,autoClose:f,onBeforeSelect:M}=this.opts,A=n.length;if(Array.isArray(e))return e.forEach(T=>{this.selectDate(T,t)}),new Promise(T=>{setTimeout(T)});if((e=B(e))instanceof Date){if(M&&!M({date:e,datepicker:this}))return Promise.resolve();if(a===o.days&&e.getMonth()!==s.month&&h&&(i=new Date(e.getFullYear(),e.getMonth(),1)),a===o.years&&e.getFullYear()!==s.year&&p&&(i=new Date(e.getFullYear(),0,1)),i&&this.setViewDate(i),g&&!m){if(A===g)return;this._checkIfDateIsSelected(e)||n.push(e)}else if(m)switch(A){case 1:n.push(e),this.rangeDateTo||(this.rangeDateTo=e),W(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=e),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[e],this.rangeDateFrom=e,this.rangeDateTo="";break;default:this.selectedDates=[e],this.rangeDateFrom=e}else this.selectedDates=[e];return this.trigger(o.eventChangeSelectedDate,{action:o.actionSelectDate,silent:t?.silent,date:e,updateTime:r}),this._updateLastSelectedDate(e),f&&!this.timepickerIsActive&&this.visible&&(g||m?m&&A===1&&this.hide():this.hide()),new Promise(T=>{setTimeout(T)})}}unselectDate(e){let i=this.selectedDates,t=this;if((e=B(e))instanceof Date)return i.some((a,s)=>{if($(a,e))return i.splice(s,1),t.selectedDates.length?(t.rangeDateTo="",t.rangeDateFrom=i[0],t._updateLastSelectedDate(t.selectedDates[t.selectedDates.length-1])):(t.rangeDateFrom="",t.rangeDateTo="",t._updateLastSelectedDate(!1)),this.trigger(o.eventChangeSelectedDate,{action:o.actionUnselectDate,date:e}),!0})}replaceDate(e,i){let t=this.selectedDates.find(s=>$(s,e,this.currentView)),a=this.selectedDates.indexOf(t);a<0||$(this.selectedDates[a],i,this.currentView)||(this.selectedDates[a]=i,this.trigger(o.eventChangeSelectedDate,{action:o.actionSelectDate,date:i,updateTime:!0}),this._updateLastSelectedDate(i))}clear(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(o.eventChangeSelectedDate,{action:o.actionUnselectDate,silent:e.silent}),new Promise(i=>{setTimeout(i)})}show(){let{onShow:e,isMobile:i}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()}hide(){let{onHide:e,isMobile:i}=this.opts,t=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(a=>{!this.customHide&&(a&&t||!a&&!t)&&this._finishHide(),e&&e(a)}),i&&z.classList.remove("-active-")}_triggerOnSelect(){let e=[],i=[],{selectedDates:t,locale:a,opts:{onSelect:s,multipleDates:n,range:r}}=this,h=n||r,p=typeof a.dateFormat=="function";t.length&&(e=t.map(ke),i=p?n?a.dateFormat(e):e.map(g=>a.dateFormat(g)):e.map(g=>this.formatDate(g,a.dateFormat))),s({date:h?e:e[0],formattedDate:h?i:i[0],datepicker:this})}_handleAlreadySelectedDates(e,i){let{selectedDates:t,rangeDateFrom:a,rangeDateTo:s}=this,{range:n,toggleSelected:r}=this.opts,h=t.length,p=typeof r=="function"?r({datepicker:this,date:i}):r,g=!!(n&&h===1&&e),m=g?ke(i):i;n&&!p&&(h!==2&&this.selectDate(m),h===2&&$(a,s))||(p?this.unselectDate(m):this._updateLastSelectedDate(g?m:e))}_handleUpDownActions(e,i){if(!((e=B(e||this.focusDate||this.viewDate))instanceof Date))return;let t=i==="up"?this.viewIndex+1:this.viewIndex-1;t>2&&(t=2),t<0&&(t=0),this.setViewDate(new Date(e.getFullYear(),e.getMonth(),1)),this.setCurrentView(this.viewIndexes[t])}getCell(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:o.day;if(!((e=B(e))instanceof Date))return;let{year:t,month:a,date:s}=D(e),n=`[data-year="${t}"]`,r=`[data-month="${a}"]`,h={[o.day]:`${n}${r}[data-date="${s}"]`,[o.month]:`${n}${r}`,[o.year]:`${n}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(h[i]):void 0}_showMobileOverlay(){z.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((e,i)=>parseFloat(i)+e,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return D(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return S(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===o.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===o.days}get $container(){return this.$customContainer||pe}static replacer(e,i,t){return e.replace(i,function(a,s,n,r){return s+t+r})}}var Re;return _(J,"defaults",u),_(J,"version","3.5.3"),_(J,"defaultGlobalContainerId","air-datepicker-global-container"),Re=J.prototype,Object.assign(Re,St),b.default}()})});var vt=We(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=void 0;var Pt={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};Ie.default=Pt});var gt=Ke(mt()),ft=gt.default;var bt=Ke(vt());var Dt=(()=>{let b=class b{constructor(u){this.el=u,this.inline=!1,this.range=!1,this.select=new Ue,this.ignoreSelectEvent=!1}ngOnInit(){}ngAfterViewInit(){this.dp=new ft(this.el.nativeElement,{inline:this.inline,range:this.range,toggleSelected:!1,locale:bt.default,onSelect:(u,l,c)=>{this.ignoreSelectEvent||this.select.emit({date:u,formattedDate:l,datepicker:c})}})}setDateRange(u,l){this.ignoreSelectEvent=!0,this.dp.clear(),this.dp.update({range:!!l}),this.dp.selectDate(u,{silent:!0}),l&&this.dp.selectDate(l,{silent:!0}),setTimeout(()=>{this.ignoreSelectEvent=!1})}};b.\u0275fac=function(l){return new(l||b)(H($e))},b.\u0275cmp=me({type:b,selectors:[["dsw-date-picker"]],inputs:{inline:"inline",range:"range"},outputs:{select:"select"},standalone:!0,features:[be],decls:0,vars:0,template:function(l,c){},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}"]});let v=b;return v})();var Vt=["datePicker"];function Et(v,b){if(v&1){let o=q();x(0,"li",3),R("click",function(){let l=V(o),c=l.$implicit,y=l.$index,P=F();return E(P.setFilter(c,y))}),O(1),k()}if(v&2){let o=b.$implicit,u=b.$index,l=F();fe("selected",l.curFilter===u),w(),oe("",o.label," ")}}var wt=(()=>{let b=class b{constructor(u){this.cd=u,this.filters=[{label:"Today",init:function(){let c=new Date;this.dateFrom=c}},{label:"This week",init:function(){let c=new Date,y=c.getDate()-c.getDay()+1,P=y+6;this.dateFrom=new Date(c.setDate(y)),this.dateTo=new Date(c.setDate(P))}},{label:"Last 30 days",init:function(){let c=new Date,y=new Date().setDate(c.getDate()-30);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last 3 months",init:function(){let c=new Date,y=new Date().setMonth(c.getMonth()-3);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last 6 months",init:function(){let c=new Date,y=new Date().setMonth(c.getMonth()-6);this.dateFrom=new Date(y),this.dateTo=c}},{label:"Last year",init:function(){let c=new Date(new Date().getFullYear()-1,0,1);this.dateFrom=new Date(c.getFullYear(),0,1),this.dateTo=new Date(c.getFullYear(),11,31)}},{label:"This year (Jan - Today)",init:function(){let c=new Date;this.dateFrom=new Date(c.getFullYear(),0,1),this.dateTo=c}},{label:"Custom",init:function(){this.dateFrom=new Date,this.dateTo=new Date}}],this.curFilter=this.filters.length-1,this.initialize()}initialize(){this.filters.forEach(u=>{u.init&&u.init()})}setFilter(u,l){this.curFilter=l,this.datePicker&&u.dateFrom&&this.datePicker.setDateRange(u.dateFrom,u.dateTo)}onSelect(u){this.curFilter=this.filters.length-1,this.datePicker.dp.update({range:!0})}getValues(){let u=this.datePicker.dp.selectedDates;return u.length>1&&u[0].toDateString()===u[1].toDateString()&&u.pop(),u}setDateRange(u,l){this.datePicker.setDateRange(u,l);let c=this.filters.findIndex(y=>l?y.dateFrom?.toDateString()===u.toDateString()&&y.dateTo?.toDateString()===l.toDateString():y.dateFrom?.toDateString()===u.toDateString());c!==-1&&(this.curFilter=c),this.cd.detectChanges()}};b.\u0275fac=function(l){return new(l||b)(H(Oe))},b.\u0275cmp=me({type:b,selectors:[["dsw-date-filter"]],viewQuery:function(l,c){if(l&1&&Te(Vt,5),l&2){let y;Pe(y=Ve())&&(c.datePicker=y.first)}},standalone:!0,features:[be],decls:5,vars:2,consts:[["datePicker",""],[3,"selected"],[3,"select","inline","range"],[3,"click"]],template:function(l,c){if(l&1){let y=q();x(0,"ul"),ve(1,Et,2,3,"li",1,Ce),k(),x(3,"dsw-date-picker",2,0),R("select",function(D){return V(y),E(c.onSelect(D))}),k()}l&2&&(w(),ye(c.filters),w(2),K("inline",!0)("range",!0))},dependencies:[Dt],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;font-size:14px;color:var(--cl-widget-filter-txt);display:flex;align-items:flex-start;overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar{width:5px;height:8px;background-color:#eee}[_nghost-%COMP%]::-webkit-scrollbar-thumb{background:#aaa}ul[_ngcontent-%COMP%]{border-right:1px solid var(--cl-input-border);padding:20px;margin:0;list-style-type:none}li[_ngcontent-%COMP%]{white-space:nowrap;cursor:pointer}li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}li.selected[_ngcontent-%COMP%]{position:relative;color:var(--cl-accent)}li.selected[_ngcontent-%COMP%]:before{position:absolute;left:-20px;top:0;height:100%;width:2px;content:"";background-color:var(--cl-accent)}dsw-date-picker[_ngcontent-%COMP%] .air-datepicker{border:none}'],changeDetection:0});let v=b;return v})();var Ot=["dateFilter"];function It(v,b){if(v&1){let o=q();x(0,"div",12)(1,"span",17)(2,"input",18),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isAll,l)||(c.model.isAll=l),E(l)}),R("click",function(l){V(o);let c=F(2);return E(c.setAll(l))}),k(),x(3,"label",19),O(4),U(5,"i18n"),k()(),x(6,"span",17)(7,"input",20),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isExclude,l)||(c.model.isExclude=l),E(l)}),k(),x(8,"label",21),O(9),U(10,"i18n"),k()(),x(11,"span")(12,"input",22),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.isInterval,l)||(c.model.isInterval=l),E(l)}),k(),x(13,"label",23),O(14),U(15,"i18n"),k()()()}if(v&2){let o=F(2);w(),K("hidden",o.model.isInterval),w(),le("ngModel",o.model.isAll),w(2),Q(Y(5,8,"all")),w(2),K("hidden",o.model.isInterval),w(),le("ngModel",o.model.isExclude),w(2),Q(Y(10,10,"exclude")),w(3),le("ngModel",o.model.isInterval),w(2),Q(Y(15,12,"interval"))}}function At(v,b){if(v&1&&(x(0,"option",25),O(1),k()),v&2){let o=b.$implicit;K("ngValue",o.path),w(),Q(o.name)}}function Lt(v,b){if(v&1&&(x(0,"option",25),O(1),k()),v&2){let o=b.$implicit;K("ngValue",o.path),w(),Q(o.name)}}function Ht(v,b){if(v&1){let o=q();x(0,"div",13)(1,"div")(2,"label"),O(3),U(4,"i18n"),k(),x(5,"select",24),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.from,l)||(c.model.from=l),E(l)}),ve(6,At,2,2,"option",25,Ce),k()(),x(8,"div")(9,"label"),O(10),U(11,"i18n"),k(),x(12,"select",24),he("ngModelChange",function(l){V(o);let c=F(2);return de(c.model.to,l)||(c.model.to=l),E(l)}),ve(13,Lt,2,2,"option",25,Ce),k()()()}if(v&2){let o=F(2);w(3),Q(Y(4,4,"from")),w(2),le("ngModel",o.model.from),w(),ye(o.model.values),w(4),Q(Y(11,6,"to")),w(2),le("ngModel",o.model.to),w(),ye(o.model.values)}}function Nt(v,b){if(v&1){let o=q();x(0,"div",26),R("click",function(l){V(o);let c=F(2);return E(c.setAll(l))}),Z(1,"input",27),x(2,"div"),O(3,"Default"),k()()}if(v&2){let o=F(2);w(),K("checked",o.model.isAll)}}function Bt(v,b){if(v&1&&(x(0,"div"),O(1),k()),v&2){let o=F().$implicit;w(),Q(o.info)}}function Rt(v,b){if(v&1){let o=q();x(0,"div",26),R("click",function(l){let c=V(o).$implicit,y=F(2);return E(y.toggleRow(c,l))}),x(1,"input",28,1),R("click",function(l){let c=V(o).$implicit,y=Ee(2),P=F(2);return c.checked=y.checked,E(P.onItemSelect(l))}),k(),x(3,"div"),O(4),ge(5,Bt,2,1,"div"),k()()}if(v&2){let o=b.$implicit,u=F(2);w(),fe("readonly",u.isRadio),K("type",u.isRadio?"radio":"checkbox")("checked",o.checked),w(2),Ye(o.default?"bold":""),fe("selected",o.checked),w(),oe("",o.name," "),w(),X(o.info?5:-1)}}function jt(v,b){v&1&&(x(0,"div",16),Z(1,"img",29),k())}function Wt(v,b){if(v&1){let o=q();x(0,"div",9),Z(1,"img",10),x(2,"input",11,0),U(4,"i18n"),he("ngModelChange",function(l){V(o);let c=F();return de(c.model.search,l)||(c.model.search=l),E(l)}),R("search",function(){V(o);let l=Ee(3),c=F();return E(c.onSearch(l.value))})("keyup",function(){V(o);let l=Ee(3),c=F();return E(c.onSearch(l.value))})("keydown.enter",function(){V(o);let l=F();return E(l.searchFilters())}),k()(),ge(5,It,16,14,"div",12)(6,Ht,15,8,"div",13),x(7,"div",14),ge(8,Nt,4,1,"div",15),ve(9,Rt,6,10,"div",15,ze().trackByIndex,!0),ge(11,jt,2,0,"div",16),k()}if(v&2){let o=F();w(2),Je("placeholder",Y(4,7,"search")),le("ngModel",o.model.search),w(3),X(o.isRadio?-1:5),w(),X(o.model.isInterval?6:-1),w(),K("hidden",o.model.isInterval),w(),X(o.hasDefault?8:-1),w(),ye(o.model.values),w(2),X(o.model.isLoading?11:-1)}}function Kt(v,b){v&1&&Z(0,"dsw-date-filter",null,2)}var _i=(()=>{let b=class b{constructor(u,l,c,y,P,D,I,C,S){this.ss=u,this.el=l,this.ds=c,this.dbs=y,this.fs=P,this.es=D,this.us=I,this.cdr=C,this.locale=S,this.model={search:"",isLoading:!1,filter:void 0,values:[],isAll:!1,isExclude:!1,isInterval:!1,from:"",to:""},this.isRelatedFilters=!1,this.trackByIndex=($,W)=>$,this.datePipe=new Qe(S);let L=this.ss.getAppSettings();this.isRelatedFilters=L.isRelatedFilters===void 0?!0:L.isRelatedFilters}get isDateFilter(){return!!this.model?.filter?.isDate}get isRadio(){return this.model?.filter?.type==="radioSet"||this.model?.filter?.action==="applyVariable"}get hasDefault(){return this.model?.filter?.type==="radioSet"&&this.model?.filter?.action!=="applyVariable"}ngAfterViewInit(){let u=this.el?.nativeElement;if(!u)return;let l=u.getBoundingClientRect(),c=window.innerHeight;if(l.top+l.height>c){let y=c-l.top,P=l.top-26-4-4;if(c-l.top<200&&P>y){let D=c-l.top+30+4,I=c-D-l.height;u.style.maxHeight=l.height+I-20+"px",u.style.top="",u.style.bottom=D+"px"}else{let D=l.top+l.height-c;u.style.maxHeight=l.height-D-20+"px"}}this.initializeDateFilter()}initialize(u,l,c){this.widget=u,this.model.filter=l,!l.isDate&&this.isRelatedFilters?this.requestRelatedFilters(l):this.prepareFilters(),this.model.isAll=!this.isAnyChecked(),this.model.isExclude=l.isExclude,this.model.isInterval=l.isInterval}ngOnInit(){}requestRelatedFilters(u){let l=this.getDataSource();if(this.prepareFilters(),!l)return;let c=[],y=this.fs.items,P=y.filter(C=>!C.isInterval&&C.targetProperty!==this.model.filter?.targetProperty&&C.value!==""),D=[];P.forEach(C=>{let S=C.value.toString();C.isExclude&&(S=S.split("|").map(L=>L+=".%NOT").join("|")),C.isInterval&&(S=S.replace("|",":")),C.value.toString().indexOf("|")!==-1&&(S="{"+S.replace(/\|/g,",")+"}"),D.push({Filter:C.targetProperty,Value:S})}),y.find(C=>C.targetProperty===this.model?.filter?.targetProperty)?.values?.filter(C=>!C._saved)?.length&&(this.model.isLoading=!0,this.ds.searchFilters("",l,D,[this.model.filter?.targetProperty]).catch(C=>this.onError(C,C.status)).then(C=>{this.onFilterValuesReceived(C),this.onSearch("")}).finally(()=>{this.model.isLoading=!1,this.cdr.detectChanges()}))}getDataSource(){let u="";try{if(this.widget.type.toLowerCase()===Xe.const.emptyWidgetClass){let l=this.model.filter?.source||"";u=this.dbs.getWidgets().filter(y=>y.name===l)[0]?.dataSource||""}else u=this.widget.dataSource}catch{u=""}return u}prepareFilters(){this.fs.filtersChanged=!1,this.model.values=[];for(let u=0;uthis.onError(c,c.status)).then(c=>{this.onFilterValuesReceived(c),this.onSearch(l)}))}onFilterValuesReceived(u,l=!1){if(this.model.isLoading=!1,!u)return;let c=u.children.filter(I=>I.path===this.model.filter?.targetProperty);if(c.length===0)return;let y=c[0];if(!y.children||y.children.length===0)return;let P=this.model.filter?.values.slice(),D=[];y.children.forEach(I=>{let C=P.find(S=>S?.path===I?.path||!isNaN(I?.path)&&parseInt(S?.path,10)===I?.path);C&&Object.assign(I,C),D.push(I)}),D.length&&this.model.filter&&(this.model.filter.values=[...D])}onError(u,l){this.model.isLoading=!1,this.es.show(`Error ${l.toString()}`)}removeFilter(){this.model.filter&&(this.model.filter.isInterval=!1),delete this.model.filter?.fromIdx,delete this.model.filter?.toIdx;for(let u=0;uu.path===this.model.from),this.model.filter.toIdx=this.model.values.findIndex(u=>u.path===this.model.to)):(delete this.model.filter.from,delete this.model.filter.to),this.model.filter.isDate){this.model.filter.isInterval=!1,delete this.model.filter.from,delete this.model.filter.to;let u=this.dateFilter.getValues();this.model.filter.values=u.map(l=>{let c=l.getFullYear()+"-"+("0"+(l.getMonth()+1)).slice(-2)+"-"+("0"+l.getDate()).slice(-2);return{name:this.datePipe.transform(l,"dd MMM yyyy"),path:`&[${c}]`,checked:!0}}),u.length===2&&(this.model.filter.isInterval=!0,this.model.filter.fromIdx=0,this.model.filter.toIdx=1)}this.fs.applyFilter(this.model.filter),this.fs.filtersChanged=!0,this.close()}close(){this._modal?.close()}initializeDateFilter(){if(!this.model?.filter?.isDate||!this.dateFilter)return;let u=this.model?.filter?.value;if(!u)return;let l=u.split("|").map(c=>this.createDate(c));this.dateFilter.setDateRange(l[0],l[1])}createDate(u){return this.us.toDate(u.replace("&[","").replace("]",""))}};b.\u0275fac=function(l){return new(l||b)(H(it),H($e),H(et),H(ut),H(pt),H(Ze),H(tt),H(Oe),H(qe))},b.\u0275cmp=me({type:b,selectors:[["dsw-filter-popup"]],viewQuery:function(l,c){if(l&1&&Te(Ot,5),l&2){let y;Pe(y=Ve())&&(c.dateFilter=y.first)}},hostVars:2,hostBindings:function(l,c){l&2&&fe("date-filter",c.isDateFilter)},inputs:{_modal:"_modal"},standalone:!0,features:[be],decls:15,vars:11,consts:[["sr",""],["inp",""],["dateFilter",""],[1,"footer"],[1,"btn","default",3,"click"],["src","assets/img/icons/icon-check.svg",1,"ico","ico-accept"],[1,"btn",3,"click"],["src","assets/img/icons/icon-reload.svg",1,"ico","ico-accept"],["src","assets/img/icons/icon-close.svg",1,"ico","ico-close"],[1,"header"],["src","assets/img/icons/icon-search.svg"],["type","search","dswAutoFocus","desktop",3,"ngModelChange","search","keyup","keydown.enter","placeholder","ngModel"],[1,"checks-container"],[1,"interval-container"],[1,"values-list",3,"hidden"],[1,"value-row"],[1,"spinner"],[3,"hidden"],["id","all","type","checkbox",3,"ngModelChange","click","ngModel"],["for","all"],["id","exclude","type","checkbox",3,"ngModelChange","ngModel"],["for","exclude"],["id","interval","type","checkbox",3,"ngModelChange","ngModel"],["for","interval"],[3,"ngModelChange","ngModel"],[3,"ngValue"],[1,"value-row",3,"click"],["type","radio","name","filter-item",3,"checked"],["name","filter-item",3,"click","type","checked"],["src","assets/img/spinner.svg"]],template:function(l,c){l&1&&(ge(0,Wt,12,9)(1,Kt,2,0,"dsw-date-filter"),x(2,"div",3)(3,"button",4),R("click",function(){return c.acceptFilter()}),Z(4,"img",5),O(5),U(6,"i18n"),k(),x(7,"button",6),R("click",function(){return c.removeFilter()}),Z(8,"img",7),O(9),U(10,"i18n"),k(),x(11,"button",6),R("click",function(){return c.close()}),Z(12,"img",8),O(13),U(14,"i18n"),k()()),l&2&&(X(c.model.filter!=null&&c.model.filter.isDate?-1:0),w(),X(c.model.filter!=null&&c.model.filter.isDate?1:-1),w(4),oe(" ",Y(6,5,"accept")," "),w(4),oe(" ",Y(10,7,"dismiss")," "),w(4),oe(" ",Y(14,9,"close")," "))},dependencies:[ct,dt,ht,at,st,lt,rt,ot,nt,wt,Ge],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:absolute;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;width:340px;background-color:var(--cl-widget-filter-bg);filter:drop-shadow(0px 0px 10px rgba(0,0,0,.1));border-radius:10px;padding:20px 20px 63px}@media (max-width: 576px){[_nghost-%COMP%]{left:0!important;width:100vw;display:flex;flex-direction:column;padding-top:4px}}.date-filter[_nghost-%COMP%]{padding:0 0 45px;width:auto}.header[_ngcontent-%COMP%]{position:relative;margin-bottom:10px}.header[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{width:100%;border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}.header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .header[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}.values-list[_ngcontent-%COMP%]{overflow:auto;max-height:280px;color:var(--cl-txt)}.value-row[_ngcontent-%COMP%]{display:flex;padding:5px 0;cursor:pointer;align-items:center;color:var(--cl-widget-filter-txt)}.value-row[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover);color:var(--cl-header-txt)}@media (max-width: 576px){.value-row[_ngcontent-%COMP%]{padding:0;display:flex}}.value-row[_ngcontent-%COMP%] > div.selected[_ngcontent-%COMP%]{color:var(--cl-accent)}input[type=search][_ngcontent-%COMP%]{width:116px}@media (max-width: 576px){input[type=search][_ngcontent-%COMP%]{width:100%;height:calc(100% - 8px);background-color:transparent;border:none;box-shadow:none}}input[_ngcontent-%COMP%]:focus{outline:1px solid var(--cl-accent);outline-offset:-1px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{flex-grow:0;margin-right:5px}input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{cursor:pointer}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=radio][_ngcontent-%COMP%]:focus{outline:none}@media (max-width: 576px){input[type=checkbox][_ngcontent-%COMP%], input[type=radio][_ngcontent-%COMP%]{height:34px;margin-right:4px;margin-left:4px}}.checks-container[_ngcontent-%COMP%]{color:var(--cl-widget-filter-txt);display:flex;padding-bottom:12px}.checks-container[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;margin-right:12px;align-items:center}.ico[_ngcontent-%COMP%]{opacity:.7;vertical-align:middle}.spinner[_ngcontent-%COMP%]{display:flex;justify-content:center}.interval-container[_ngcontent-%COMP%]{padding:4px;color:var(--cl-txt)}.interval-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{margin-bottom:10px}.readonly[_ngcontent-%COMP%]{pointer-events:none}.footer[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;right:0;width:100%;display:flex;justify-content:flex-end;border-top:1px solid #EBEBEA}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]{height:44px;padding:0 10px;border:none;box-shadow:none;background:transparent;color:#606367;display:flex;align-items:center;transition:filter .3s linear}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:6px}.footer[_ngcontent-%COMP%] > .btn.default[_ngcontent-%COMP%]{color:var(--cl-accent)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:hover{filter:contrast(3)}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:focus, .footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:active{border:none;outline:none}.footer[_ngcontent-%COMP%] > .btn[_ngcontent-%COMP%]:last-child{padding-right:20px}"],changeDetection:0});let v=b;return v})();export{_i as FilterPopupComponent}; diff --git a/dist/chunk-L76GKDA2.js b/dist/chunk-JE2DBAFS.js similarity index 66% rename from dist/chunk-L76GKDA2.js rename to dist/chunk-JE2DBAFS.js index bbebc7e..0dc3338 100644 --- a/dist/chunk-L76GKDA2.js +++ b/dist/chunk-JE2DBAFS.js @@ -1,12 +1,12 @@ -import{a as Jn}from"./chunk-54YLOEMX.js";import{a as vh}from"./chunk-WYNQ5JHX.js";import{a as zr}from"./chunk-SUAWKU6Z.js";import{a as yh,b as bh}from"./chunk-7Z57W26K.js";import{E as fh,F as Ae,H as gh,I as mh,J as xh,K as xs,r as uh,u as ph}from"./chunk-B2BNZRWN.js";import{$a as Dt,Ab as ne,Ba as ah,Bb as oe,Bc as dh,Cb as ae,Db as Lt,Eb as kt,Fb as le,Jb as hh,Nb as ch,Ob as Nt,Tb as $i,Ub as Ji,Vb as Qi,X as ih,Xa as fs,Xb as ie,Yb as Te,Zb as ms,ba as $t,cc as bt,fa as yt,gb as lh,lb as vt,qa as sh,ra as rh,rb as $s,sa as nh,ta as oh,tb as gs,ua as St,ub as Ee,vb as je,yb as Js}from"./chunk-ZKAUCJHV.js";import{a as xe,b as qi,d as qe,f as qt,g as eh,h as Yt}from"./chunk-DEPBX7UX.js";var ys=qe((Ch,Nr)=>{"use strict";(function(o,t){typeof define=="function"&&define.amd?define(t):typeof Nr=="object"&&Nr.exports?Nr.exports=t():o.numeral=t()})(Ch,function(){var o,t,s="2.0.6",e={},i={},r={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},n={currentLocale:r.currentLocale,zeroFormat:r.zeroFormat,nullFormat:r.nullFormat,defaultFormat:r.defaultFormat,scalePercentBy100:r.scalePercentBy100};function l(a,h){this._input=a,this._value=h}return o=function(a){var h,c,g,u;if(o.isNumeral(a))h=a.value();else if(a===0||typeof a>"u")h=0;else if(a===null||t.isNaN(a))h=null;else if(typeof a=="string")if(n.zeroFormat&&a===n.zeroFormat)h=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)h=null;else{for(c in e)if(u=typeof e[c].regexps.unformat=="function"?e[c].regexps.unformat():e[c].regexps.unformat,u&&a.match(u)){g=e[c].unformat;break}g=g||o._.stringToNumber,h=g(a)}else h=Number(a)||null;return new l(a,h)},o.version=s,o.isNumeral=function(a){return a instanceof l},o._=t={numberToFormat:function(a,h,c){var g=i[o.options.currentLocale],u=!1,p=!1,b=0,v="",x=1e12,m=1e9,E=1e6,L=1e3,S="",w=!1,R,O,I,_,P,F,A,D,C,d;if(a=a||0,O=Math.abs(a),o._.includes(h,"(")?(u=!0,h=h.replace(/[\(|\)]/g,"")):(o._.includes(h,"+")||o._.includes(h,"-"))&&(D=o._.includes(h,"+")?h.indexOf("+"):a<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),o._.includes(h,"a")&&(R=h.match(/a(k|m|b|t)?/),R=R?R[1]:!1,o._.includes(h," a")&&(v=" "),h=h.replace(new RegExp(v+"a[kmbt]?"),""),O>=x&&!R||R==="t"?(v+=g.abbreviations.trillion,a=a/x):O=m&&!R||R==="b"?(v+=g.abbreviations.billion,a=a/m):O=E&&!R||R==="m"?(v+=g.abbreviations.million,a=a/E):(O=L&&!R||R==="k")&&(v+=g.abbreviations.thousand,a=a/L)),o._.includes(h,"[.]")&&(p=!0,h=h.replace("[.]",".")),F=a.toString().split(".")[0],A=h.split(".")[1],C=h.indexOf(","),b=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,A?(o._.includes(A,"[")?(A=A.replace("]",""),A=A.split("["),S=o._.toFixed(a,A[0].length+A[1].length,c,A[1].length)):S=o._.toFixed(a,A.length,c),F=S.split(".")[0],o._.includes(S,".")?S=g.delimiters.decimal+S.split(".")[1]:S="",p&&Number(S.slice(1))===0&&(S="")):F=o._.toFixed(a,0,c),v&&!R&&Number(F)>=1e3&&v!==g.abbreviations.trillion)switch(F=String(Number(F)/1e3),v){case g.abbreviations.thousand:v=g.abbreviations.million;break;case g.abbreviations.million:v=g.abbreviations.billion;break;case g.abbreviations.billion:v=g.abbreviations.trillion;break}if(o._.includes(F,"-")&&(F=F.slice(1),w=!0),F.length0;f--)F="0"+F;return C>-1&&(F=F.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g.delimiters.thousands)),h.indexOf(".")===0&&(F=""),d=F+S+(v||""),u?d=(u&&w?"(":"")+d+(u&&w?")":""):D>=0?d=D===0?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(a){var h=i[n.currentLocale],c=a,g={thousand:3,million:6,billion:9,trillion:12},u,p,b,v;if(n.zeroFormat&&a===n.zeroFormat)p=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)p=null;else{p=1,h.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(u in g)if(v=new RegExp("[^a-zA-Z]"+h.abbreviations[u]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(v)){p*=Math.pow(10,g[u]);break}p*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),p*=Number(a)}return p},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,h){return a.indexOf(h)!==-1},insert:function(a,h,c){return a.slice(0,c)+h+a.slice(c)},reduce:function(a,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var c=Object(a),g=c.length>>>0,u=0,p;if(arguments.length===3)p=arguments[2];else{for(;u=g)throw new TypeError("Reduce of empty array with no initial value");p=c[u++]}for(;ug?h:g},1)},toFixed:function(a,h,c,g){var u=a.toString().split("."),p=h-(g||0),b,v,x,m;return u.length===2?b=Math.min(Math.max(u[1].length,p),h):b=p,x=Math.pow(10,b),m=(c(a+"e+"+b)/x).toFixed(b),g>h-b&&(v=new RegExp("\\.?0{1,"+(g-(h-b))+"}$"),m=m.replace(v,"")),m}},o.options=n,o.formats=e,o.locales=i,o.locale=function(a){return a&&(n.currentLocale=a.toLowerCase()),n.currentLocale},o.localeData=function(a){if(!a)return i[n.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},o.reset=function(){for(var a in r)n[a]=r[a]},o.zeroFormat=function(a){n.zeroFormat=typeof a=="string"?a:null},o.nullFormat=function(a){n.nullFormat=typeof a=="string"?a:null},o.defaultFormat=function(a){n.defaultFormat=typeof a=="string"?a:"0.0"},o.register=function(a,h,c){if(h=h.toLowerCase(),this[a+"s"][h])throw new TypeError(h+" "+a+" already registered.");return this[a+"s"][h]=c,c},o.validate=function(a,h){var c,g,u,p,b,v,x,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{x=o.localeData(h)}catch{x=o.localeData(o.locale())}return u=x.currency.symbol,b=x.abbreviations,c=x.delimiters.decimal,x.delimiters.thousands==="."?g="\\.":g=x.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==u)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==b.thousand&&m[0]!==b.million&&m[0]!==b.billion&&m[0]!==b.trillion))?!1:(v=new RegExp(g+"{2}"),a.match(/[^\d.,]/g)?!1:(p=a.split(c),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(v):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(v)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(v)&&!!p[1].match(/^\d+$/)))},o.fn=l.prototype={clone:function(){return o(this)},format:function(a,h){var c=this._value,g=a||n.defaultFormat,u,p,b;if(h=h||Math.round,c===0&&n.zeroFormat!==null)p=n.zeroFormat;else if(c===null&&n.nullFormat!==null)p=n.nullFormat;else{for(u in e)if(g.match(e[u].regexps.format)){b=e[u].format;break}b=b||o._.numberToFormat,p=b(c,g,h)}return p},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(g,u,p,b){return g+Math.round(h*u)}return this._value=t.reduce([this._value,a],c,0)/h,this},subtract:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(g,u,p,b){return g-Math.round(h*u)}return this._value=t.reduce([a],c,Math.round(this._value*h))/h,this},multiply:function(a){function h(c,g,u,p){var b=t.correctionFactor(c,g);return Math.round(c*b)*Math.round(g*b)/Math.round(b*b)}return this._value=t.reduce([this._value,a],h,1),this},divide:function(a){function h(c,g,u,p){var b=t.correctionFactor(c,g);return Math.round(c*b)/Math.round(g*b)}return this._value=t.reduce([this._value,a],h),this},difference:function(a){return Math.abs(o(this._value).subtract(a).value())}},o.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var h=a%10;return~~(a%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){o.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,h,c){var g=o._.includes(h," BPS")?" ":"",u;return a=a*1e4,h=h.replace(/\s?BPS/,""),u=o._.numberToFormat(a,h,c),o._.includes(u,")")?(u=u.split(""),u.splice(-1,0,g+"BPS"),u=u.join("")):u=u+g+"BPS",u},unformat:function(a){return+(o._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},c=a.suffixes.concat(h.suffixes.filter(function(u){return a.suffixes.indexOf(u)<0})),g=c.join("|");g="("+g.replace("B","B(?!PS)")+")",o.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(g)},format:function(u,p,b){var v,x=o._.includes(p,"ib")?h:a,m=o._.includes(p," b")||o._.includes(p," ib")?" ":"",E,L,S;for(p=p.replace(/\s?i?b/,""),E=0;E<=x.suffixes.length;E++)if(L=Math.pow(x.base,E),S=Math.pow(x.base,E+1),u===null||u===0||u>=L&&u0&&(u=u/L);break}return v=o._.numberToFormat(u,p,b),v+m},unformat:function(u){var p=o._.stringToNumber(u),b,v;if(p){for(b=a.suffixes.length-1;b>=0;b--){if(o._.includes(u,a.suffixes[b])){v=Math.pow(a.base,b);break}if(o._.includes(u,h.suffixes[b])){v=Math.pow(h.base,b);break}}p*=v||1}return p}})}(),function(){o.register("format","currency",{regexps:{format:/(\$)/},format:function(a,h,c){var g=o.locales[o.options.currentLocale],u={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,b,v;for(h=h.replace(/\s?\$\s?/,""),p=o._.numberToFormat(a,h,c),a>=0?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):a<0&&!o._.includes(u.before,"-")&&!o._.includes(u.before,"(")&&(u.before="-"+u.before),v=0;v=0;v--)switch(b=u.after[v],b){case"$":p=v===u.after.length-1?p+g.currency.symbol:o._.insert(p,g.currency.symbol,-(u.after.length-(1+v)));break;case" ":p=v===u.after.length-1?p+" ":o._.insert(p," ",-(u.after.length-(1+v)+g.currency.symbol.length-1));break}return p}})}(),function(){o.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,h,c){var g,u=typeof a=="number"&&!o._.isNaN(a)?a.toExponential():"0e+0",p=u.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),g=o._.numberToFormat(Number(p[0]),h,c),g+"e"+p[1]},unformat:function(a){var h=o._.includes(a,"e+")?a.split("e+"):a.split("e-"),c=Number(h[0]),g=Number(h[1]);g=o._.includes(a,"e-")?g*=-1:g;function u(p,b,v,x){var m=o._.correctionFactor(p,b),E=p*m*(b*m)/(m*m);return E}return o._.reduce([c,Math.pow(10,g)],u,1)}})}(),function(){o.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,h,c){var g=o.locales[o.options.currentLocale],u,p=o._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),p+=g.ordinal(a),u=o._.numberToFormat(a,h,c),u+p}})}(),function(){o.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,h,c){var g=o._.includes(h," %")?" ":"",u;return o.options.scalePercentBy100&&(a=a*100),h=h.replace(/\s?\%/,""),u=o._.numberToFormat(a,h,c),o._.includes(u,")")?(u=u.split(""),u.splice(-1,0,g+"%"),u=u.join("")):u=u+g+"%",u},unformat:function(a){var h=o._.stringToNumber(a);return o.options.scalePercentBy100?h*.01:h}})}(),function(){o.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,h,c){var g=Math.floor(a/60/60),u=Math.floor((a-g*60*60)/60),p=Math.round(a-g*60*60-u*60);return g+":"+(u<10?"0"+u:u)+":"+(p<10?"0"+p:p)},unformat:function(a){var h=a.split(":"),c=0;return h.length===3?(c=c+Number(h[0])*60*60,c=c+Number(h[1])*60,c=c+Number(h[2])):h.length===2&&(c=c+Number(h[0])*60,c=c+Number(h[1])),Number(c)}})}(),o})});var Ua=qe((Ya,Va)=>{"use strict";(function(o,t){typeof Ya=="object"&&typeof Va<"u"?Va.exports=t():typeof define=="function"&&define.amd?define(t):(o=o||self).RBush=t()})(Ya,function(){"use strict";function o(x,m,E,L,S){(function w(R,O,I,_,P){for(;_>I;){if(_-I>600){var F=_-I+1,A=O-I+1,D=Math.log(F),C=.5*Math.exp(2*D/3),d=.5*Math.sqrt(D*C*(F-C)/F)*(A-F/2<0?-1:1),f=Math.max(I,Math.floor(O-A*C/F+d)),y=Math.min(_,Math.floor(O+(F-A)*C/F+d));w(R,O,f,y,P)}var M=R[O],k=I,T=_;for(t(R,I,O),P(R[_],M)>0&&t(R,I,_);k0;)T--}P(R[I],M)===0?t(R,I,T):t(R,++T,_),T<=O&&(I=T+1),O<=T&&(_=T-1)}})(x,m,E||0,L||x.length-1,S||s)}function t(x,m,E){var L=x[m];x[m]=x[E],x[E]=L}function s(x,m){return xm?1:0}var e=function(x){x===void 0&&(x=9),this._maxEntries=Math.max(4,x),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(x,m,E){if(!E)return m.indexOf(x);for(var L=0;L=x.minX&&m.maxY>=x.minY}function b(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(x,m,E,L,S){for(var w=[m,E];w.length;)if(!((E=w.pop())-(m=w.pop())<=L)){var R=m+Math.ceil((E-m)/L/2)*L;o(x,R,m,E,S),w.push(m,R,R,E)}}return e.prototype.all=function(){return this._all(this.data,[])},e.prototype.search=function(x){var m=this.data,E=[];if(!p(x,m))return E;for(var L=this.toBBox,S=[];m;){for(var w=0;w=0&&S[m].children.length>this._maxEntries;)this._split(S,m),m--;this._adjustParentBBoxes(L,S,m)},e.prototype._split=function(x,m){var E=x[m],L=E.children.length,S=this._minEntries;this._chooseSplitAxis(E,S,L);var w=this._chooseSplitIndex(E,S,L),R=b(E.children.splice(w,E.children.length-w));R.height=E.height,R.leaf=E.leaf,r(E,this.toBBox),r(R,this.toBBox),m?x[m-1].children.push(R):this._splitRoot(E,R)},e.prototype._splitRoot=function(x,m){this.data=b([x,m]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},e.prototype._chooseSplitIndex=function(x,m,E){for(var L,S,w,R,O,I,_,P=1/0,F=1/0,A=m;A<=E-m;A++){var D=n(x,0,A,this.toBBox),C=n(x,A,E,this.toBBox),d=(S=D,w=C,R=void 0,O=void 0,I=void 0,_=void 0,R=Math.max(S.minX,w.minX),O=Math.max(S.minY,w.minY),I=Math.min(S.maxX,w.maxX),_=Math.min(S.maxY,w.maxY),Math.max(0,I-R)*Math.max(0,_-O)),f=c(D)+c(C);d=m;P--){var F=x.children[P];l(R,x.leaf?S(F):F),O+=g(R)}return O},e.prototype._adjustParentBBoxes=function(x,m,E){for(var L=E;L>=0;L--)l(m[L],x)},e.prototype._condense=function(x){for(var m=x.length-1,E=void 0;m>=0;m--)x[m].children.length===0?m>0?(E=x[m-1].children).splice(E.indexOf(x[m]),1):this.clear():r(x[m],this.toBBox)},e})});var wu=qe((cT,jn)=>{"use strict";(function(o){typeof jn=="object"&&jn.exports?(o.default=o,jn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/map",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:g}=i;return function(u){let p;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=g(I.colorAxis),I.colorAxis.map(_=>new p(this,_)))}function v(I){let _=this.chart.colorAxis||[],P=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],A,D;for(_.forEach(function(C){(A=C.options)&&A.showInLegend&&(A.dataClasses&&A.visible?F=F.concat(C.getDataClassLegendSymbols()):A.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||A.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(f){P(f)}):P(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function m(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function E(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,P=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][P]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,P=this.options.nullColor,F=this.colorAxis,A=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(A),d=D.options.color||(D.isNull||D.value===null?P:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}u.compose=function(I,_,P,F,A){let D=_.prototype,C=P.prototype,d=A.prototype;D.collectionsWithUpdate.includes("colorAxis")||(p=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(f){let y=f.prototype.createAxis;f.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let T=new p(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),T}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",m),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(A,"afterTranslate",E,{order:1}),l(A,"bindAxes",L))},u.pointSetVisible=S}(r||(r={})),r}),s(t,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],g.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(g=this.normalizedValue(h),x=E.length;x--&&!(g>E[x][0]););u=E[x]||E[x+1],g=1-((p=E[x+1]||u)[0]-g)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,g)}return b},r}),s(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:g}=l,{series:u}=h,{defined:p,extend:b,fireEvent:v,isArray:x,isNumber:m,merge:E,pick:L,relativeLength:S}=c;g.colorAxis=E(g.xAxis,r);class w extends e{static compose(O,I,_,P){i.compose(w,O,I,_,P)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},P=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||P?2:1,this.reversed=I.reversed||!P,this.opposite=!P,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=P,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=E(g.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:P}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=P=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-P,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:P)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(P){P instanceof w&&P.drawLegendSymbol(_,P)}),_.render(),this.chart.getMargins(!0),this.chart.series.some(P=>P.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,P=I?0:1,F=O?[_,0,P,0]:[0,P,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},P=O.padding,F=O.options,A=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:f}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:f}),_.labelWidth=d+P+(C?D:L(A.x,A.distance)+(this.maxLabelLength||0)),_.labelHeight=f+P+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,P,F,A,D,C=O.length,d,f;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,A=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],P=F.indexOf(_),d=D.yData,P>=0&&d)for(f=0;fD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=A,this.cross&&!this.cross.addedToColorAxis&&P.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(P.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(O){let I=this.left,_=O.translatedValue,P=this.top;return m(_)?this.horiz?[["M",_-4,P-6],["L",_+4,P-6],["L",_,P],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(P=>{P.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,P=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,A=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((f,y)=>(f.push(...y.points.filter(M=>M.dataClass===d)),f),[]);return P.length||I.dataClasses.forEach((d,f)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,T=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,A)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,A)+D),P.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(f))N.setState(z)},setVisible:function(){this.visible=T=I.visible=!T;let z=[];for(let N of C(f))N.setVisible(T),N.hiddenInDataClass=!T,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,T),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),P}getSize(){let{chart:O,horiz:I}=this,{height:_,width:P}=this.options,{legend:F}=O.options;return{width:L(p(P)?S(P,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(p(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),s(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,i){return e.ColorAxis=e.ColorAxis||i,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),s(t,"Maps/MapNavigationDefaults.js",[],function(){return{lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}}}),s(t,"Maps/MapPointer.js",[t["Core/Utilities.js"]],function(e){var i;let{defined:r,extend:n,pick:l,wrap:a}=e;return function(h){let c,g=0;function u(x){let m=this.chart;x=this.normalize(x),m.options.mapNavigation.enableDoubleClickZoomTo?m.pointer.inClass(x.target,"highcharts-tracker")&&m.hoverPoint&&m.hoverPoint.zoomTo():m.isInsidePlot(x.chartX-m.plotLeft,x.chartY-m.plotTop)&&m.mapZoom(.5,void 0,void 0,x.chartX,x.chartY)}function p(x){let m=this.chart,E=r((x=this.normalize(x)).wheelDelta)&&-x.wheelDelta/120||x.deltaY||x.detail;Math.abs(E)>=1&&(g+=Math.abs(E),c&&clearTimeout(c),c=setTimeout(()=>{g=0},50)),g<10&&m.isInsidePlot(x.chartX-m.plotLeft,x.chartY-m.plotTop)&&m.mapView&&m.mapView.zoomBy(-((m.options.mapNavigation.mouseWheelSensitivity-1)*E),void 0,[x.chartX,x.chartY],!(1>Math.abs(E))&&void 0)}function b(x,m,E){let L=this.chart;if(m=x.call(this,m,E),L&&L.mapView){let S=L.mapView.pixelsToLonLat({x:m.chartX-L.plotLeft,y:m.chartY-L.plotTop});S&&n(m,S)}return m}function v(x){let m=this.chart.options.mapNavigation;m&&l(m.enableTouchZoom,m.enabled)&&(this.chart.zooming.pinchType="xy"),x.apply(this,[].slice.call(arguments,1))}h.compose=function(x){let m=x.prototype;m.onContainerDblClick||(n(m,{onContainerDblClick:u,onContainerMouseWheel:p}),a(m,"normalize",b),a(m,"zoomOption",v))}}(i||(i={})),i}),s(t,"Maps/MapSymbols.js",[],function(){let e;function i(n,l,a,h,c){if(c){let g=c?.r||0;c.brBoxY=l-g,c.brBoxHeight=h+g}return e.roundedRect(n,l,a,h,c)}function r(n,l,a,h,c){if(c){let g=c?.r||0;c.brBoxHeight=h+g}return e.roundedRect(n,l,a,h,c)}return{compose:function(n){(e=n.prototype.symbols).bottombutton=i,e.topbutton=r}}}),s(t,"Maps/MapNavigation.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Maps/MapNavigationDefaults.js"],t["Maps/MapPointer.js"],t["Maps/MapSymbols.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{setOptions:h}=e,{composed:c}=i,{addEvent:g,extend:u,merge:p,objectEach:b,pick:v,pushUnique:x}=a;function m(L){L&&(L.preventDefault&&L.preventDefault(),L.stopPropagation&&L.stopPropagation(),L.cancelBubble=!0)}class E{static compose(S,w,R){n.compose(w),l.compose(R),x(c,"Map.Navigation")&&(g(S,"beforeRender",function(){this.mapNavigation=new E(this),this.mapNavigation.update()}),h(r))}constructor(S){this.chart=S,this.navButtons=[]}update(S){let w=this,R=w.chart,O=w.navButtons,I=function(P){this.handler.call(R,P),m(P)},_=R.options.mapNavigation;for(S&&(_=R.options.mapNavigation=p(R.options.mapNavigation,S));O.length;)O.pop().destroy();if(!R.renderer.forExport&&v(_.enableButtons,_.enabled)){w.navButtonsGroup||(w.navButtonsGroup=R.renderer.g().attr({zIndex:7}).add()),b(_.buttons,(F,A)=>{let D={padding:(F=p(_.buttonOptions,F)).padding};!R.styledMode&&F.theme&&(u(D,F.theme),D.style=p(F.theme.style,F.style));let{text:C,width:d=0,height:f=0,padding:y=0}=F,M=R.renderer.button(C!=="+"&&C!=="-"&&C||"",0,0,I,D,void 0,void 0,void 0,A==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[A]).attr({width:d,height:f,title:R.options.lang[A],zIndex:5}).add(w.navButtonsGroup);if(C==="+"||C==="-"){let k=d+1,T=[["M",y+3,y+f/2],["L",y+k-3,y+f/2]];C==="+"&&T.push(["M",y+k/2,y+3],["L",y+k/2,y+f-3]),R.renderer.path(T).addClass("highcharts-button-symbol").attr(R.styledMode?{}:{stroke:F.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(M)}if(M.handler=F.onclick,g(M.element,"dblclick",m),O.push(M),u(F,{width:M.width,height:2*(M.height||0)}),R.hasLoaded)M.align(F,!1,F.alignTo);else{let k=g(R,"load",()=>{M.element&&M.align(F,!1,F.alignTo),k()})}});let P=(F,A)=>!(A.x>=F.x+F.width||A.x+A.width<=F.x||A.y>=F.y+F.height||A.y+A.height<=F.y);R.hasLoaded||g(R,"render",function(){let F=R.exportingGroup&&R.exportingGroup.getBBox();if(F){let A=w.navButtonsGroup.getBBox();if(P(F,A)){let D=-A.y-A.height+F.y-5,C=F.y+F.height-A.y+5,d=_.buttonOptions&&_.buttonOptions.verticalAlign;w.navButtonsGroup.attr({translateY:d==="bottom"?D:C})}}})}this.updateEvents(_)}updateEvents(S){let w=this.chart;v(S.enableDoubleClickZoom,S.enabled)||S.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||g(w.container,"dblclick",function(R){w.pointer.onContainerDblClick(R)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),v(S.enableMouseWheelZoom,S.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||g(w.container,"wheel",function(R){return w.pointer.inClass(R.target,"highcharts-no-mousewheel")||(w.pointer.onContainerMouseWheel(R),m(R)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return E}),s(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function g(u){let p=this.series,b=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new i(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),u?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):p.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:l.pointAttribs},c.compose=function(u){return a(u.prototype.pointClass,"afterSetState",g),u}}(n||(n={})),n}),s(t,"Core/Chart/MapChart.js",[t["Core/Chart/Chart.js"],t["Core/Defaults.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{getOptions:a}=i,{isNumber:h,merge:c,pick:g}=n;class u extends e{init(b,v){let x=a().credits,m=c({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:g(x.mapText,' \xA9 {geojson.copyrightShort}'),mapTextFull:g(x.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},b);super.init(m,v)}mapZoom(b,v,x,m,E){this.mapView&&(h(b)&&(b=Math.log(b)/Math.log(.5)),this.mapView.zoomBy(b,h(v)&&h(x)?this.mapView.projection.inverse([v,x]):void 0,h(m)&&h(E)?[m,E]:void 0))}update(b){b.chart&&"map"in b.chart&&this.mapView?.recommendMapView(this,[b.chart.map,...(this.options.series||[]).map(v=>v.mapData)],!0),super.update.apply(this,arguments)}}return(l=u||(u={})).maps={},l.mapChart=function(p,b,v){return new l(p,b,v)},l.splitPath=function(p){let b;return b=typeof p=="string"?(p=p.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(v=>/[A-Za-z]/.test(v)?v:parseFloat(v)):p,r.prototype.pathToSegments(b)},u}),s(t,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(e){let i=-Number.MAX_VALUE,r=Number.MAX_VALUE,n=-Number.MAX_VALUE,l=Number.MAX_VALUE,a;if(e.forEach(h=>{let c=h[h.length-2],g=h[h.length-1];typeof c=="number"&&typeof g=="number"&&(r=Math.min(r,c),i=Math.max(i,c),l=Math.min(l,g),n=Math.max(n,g),a=!0)}),a)return{x1:r,y1:l,x2:i,y2:n}},pointInPolygon:function({x:e,y:i},r){let n,l,a=!1;for(n=0,l=r.length-1;ni!=r[l][1]>i&&e<(r[l][0]-r[n][0])*(i-r[n][1])/(r[l][1]-r[n][1])+r[n][0]&&(a=!a);return a}}}),s(t,"Series/Map/MapPoint.js",[t["Series/ColorMapComposition.js"],t["Maps/MapUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{boundsFromPath:l}=i,a=r.seriesTypes.scatter.prototype.pointClass,{extend:h,isNumber:c,pick:g}=n;class u extends a{static getProjectedPath(b,v){return b.projectedPath||(v&&b.geometry?(v.hasCoordinates=!0,b.projectedPath=v.path(b.geometry)):b.projectedPath=b.path),b.projectedPath||[]}applyOptions(b,v){let x=this.series,m=super.applyOptions(b,v),E=x.joinBy;if(x.mapData&&x.mapMap){let L=E[1],S=super.getNestedProperty(L),w=S!==void 0&&x.mapMap[S];w?h(m,qi(xe({},w),{name:m.name??w.name})):x.pointArrayMap.indexOf("value")!==-1&&(m.value=m.value||null)}return m}getProjectedBounds(b){let v=l(u.getProjectedPath(this,b)),x=this.properties,m=this.series.chart.mapView;if(v){let E=x&&x["hc-middle-lon"],L=x&&x["hc-middle-lat"];if(m&&c(E)&&c(L)){let S=b.forward([E,L]);v.midX=S[0],v.midY=S[1]}else{let S=x&&x["hc-middle-x"],w=x&&x["hc-middle-y"];v.midX=v.x1+(v.x2-v.x1)*g(this.middleX,c(S)?S:.5);let R=g(this.middleY,c(w)?w:.5);this.geometry||(R=1-R),v.midY=v.y2-(v.y2-v.y1)*R}return v}}onMouseOver(b){n.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,b):this.series.onMouseOut()}setVisible(b){this.visible=this.options.visible=!!b,this.dataLabel&&this.dataLabel[b?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(b){let v=this.series.chart,x=v.mapView,m=this.bounds;if(x&&m){let E=c(this.insetIndex)&&x.insets[this.insetIndex];if(E){let L=E.projectedUnitsToPixels({x:m.x1,y:m.y1}),S=E.projectedUnitsToPixels({x:m.x2,y:m.y2}),w=x.pixelsToProjectedUnits({x:L.x,y:L.y}),R=x.pixelsToProjectedUnits({x:S.x,y:S.y});m={x1:w.x,y1:w.y,x2:R.x,y2:R.y}}x.fitToBounds(m,void 0,!1),this.series.isDirty=!0,v.redraw(b)}}}return h(u.prototype,{dataLabelOnNull:e.pointMembers.dataLabelOnNull,moveToTopOnHover:e.pointMembers.moveToTopOnHover,isValid:e.pointMembers.isValid}),u}),s(t,"Series/Map/MapSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:i}=e;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return i(n)?r(n,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),s(t,"Maps/MapViewDefaults.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}}),s(t,"Maps/GeoJSONComposition.js",[t["Core/Globals.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{win:l}=e,{format:a}=i,{error:h,extend:c,merge:g,wrap:u}=r;return function(p){function b(S){return this.mapView&&this.mapView.lonLatToProjectedUnits(S)}function v(S){return this.mapView&&this.mapView.projectedUnitsToLonLat(S)}function x(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:P=1,xoffset:F=0,xpan:A=0,yoffset:D=0,ypan:C=0}=w,d=R(w.crs,[S.lon,S.lat]),f=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=w.rotation?[d[0]*f+d[1]*y,-d[0]*y+d[1]*f]:d;return{x:((M[0]-F)*P+A)*_+O,y:-(((D-M[1])*P+C)*_-I)}}function m(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}if(S.y===null)return;let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:P=1,xoffset:F=0,xpan:A=0,yoffset:D=0,ypan:C=0}=w,d={x:((S.x-O)/_-A)/P+F,y:((S.y-I)/_+C)/P+D},f=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=R(w.crs,"WGS84",w.rotation?{x:d.x*f+-(d.y*y),y:d.x*y+d.y*f}:d);return{lat:M.y,lon:M.x}}function E(S,w){w||(w=Object.keys(S.objects)[0]);let R=S.objects[w];if(R["hc-decoded-geojson"]&&R["hc-decoded-geojson"].title===S.title)return R["hc-decoded-geojson"];let O=S.arcs;if(S.transform){let A,D,C,d=S.arcs,{scale:f,translate:y}=S.transform;O=[];for(let M=0,k=d.length;Mtypeof A[0]=="number"?A.reduce((D,C,d)=>{let f=C<0?O[~C]:O[C];return C<0?(f=f.slice(0,d===0?f.length:f.length-1)).reverse():d&&(f=f.slice(1)),D.concat(f)},[]):A.map(I),_=R.geometries,P=[];for(let A=0,D=_.length;A(l[1]-n[1])*(a[0]-n[0])}function r(n,l,a,h){let c=[n[0]-l[0],n[1]-l[1]],g=[a[0]-h[0],a[1]-h[1]],u=n[0]*l[1]-n[1]*l[0],p=a[0]*h[1]-a[1]*h[0],b=1/(c[0]*g[1]-c[1]*g[0]),v=[(u*g[0]-p*c[0])*b,(u*g[1]-p*c[1])*b];return v.isIntersection=!0,v}return{clipLineString:function(n,l){let a=[],h=e(n,l,!1);for(let c=1;cl===0?0:l>0?1:-1),i=Math.PI/180,r=Math.PI/2,n=l=>Math.tan((r+l)/2);return class{constructor(l){let a=(l.parallels||[]).map(p=>p*i),h=a[0]||0,c=a[1]??h,g=Math.cos(h);typeof l.projectedBounds=="object"&&(this.projectedBounds=l.projectedBounds);let u=h===c?Math.sin(h):Math.log(g/Math.cos(c))/Math.log(n(c)/n(h));1e-10>Math.abs(u)&&(u=1e-10*(e(u)||1)),this.n=u,this.c=g*Math.pow(n(h),u)/u}forward(l){let{c:a,n:h,projectedBounds:c}=this,g=l[0]*i,u=l[1]*i;a>0?u<-r+1e-6&&(u=-r+1e-6):u>r-1e-6&&(u=r-1e-6);let p=a/Math.pow(n(u),h),b=p*Math.sin(h*g)*63.78137,v=(a-p*Math.cos(h*g))*63.78137,x=[b,v];return c&&(bc.x2||vc.y2)&&(x.outside=!0),x}inverse(l){let{c:a,n:h}=this,c=l[0]/63.78137,g=a-l[1]/63.78137,u=e(h)*Math.sqrt(c*c+g*g),p=Math.atan2(c,Math.abs(g))*e(g);return g*h<0&&(p-=Math.PI*e(c)*e(g)),[p/h/i,(2*Math.atan(Math.pow(a/u,1/h))-r)/i]}}}),s(t,"Maps/Projections/EqualEarth.js",[],function(){let e=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(i){let r=Math.PI/180,n=Math.asin(e*Math.sin(i[1]*r)),l=n*n,a=l*l*l;return[i[0]*r*Math.cos(n)*74.03120656864502/(e*(1.340264+-.24331799999999998*l+a*(.0062510000000000005+.034164*l))),74.03120656864502*n*(1.340264+-.081106*l+a*(893e-6+.003796*l))]}inverse(i){let r=i[0]/74.03120656864502,n=i[1]/74.03120656864502,l=180/Math.PI,a=n,h,c,g,u;for(let v=0;v<12&&(c=(h=a*a)*h*h,g=a*(1.340264+-.081106*h+c*(893e-6+.003796*h))-n,a-=u=g/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(u)));++v);c=(h=a*a)*h*h;let p=l*e*r*(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h))/Math.cos(a),b=l*Math.asin(Math.sin(a)/e);return Math.abs(p)>180?[NaN,NaN]:[p,b]}}}),s(t,"Maps/Projections/Miller.js",[],function(){let e=Math.PI/4,i=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(r){return[r[0]*i*63.78137,79.7267125*Math.log(Math.tan(e+.4*r[1]*i))]}inverse(r){return[r[0]/63.78137/i,2.5*(Math.atan(Math.exp(r[1]/63.78137*.8))-e)/i]}}}),s(t,"Maps/Projections/Orthographic.js",[],function(){let e=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(i){let r=i[0],n=i[1]*e,l=[Math.cos(n)*Math.sin(r*e)*63.78460826781007,63.78460826781007*Math.sin(n)];return(r<-90||r>90)&&(l.outside=!0),l}inverse(i){let r=i[0]/63.78460826781007,n=i[1]/63.78460826781007,l=Math.sqrt(r*r+n*n),a=Math.asin(l),h=Math.sin(a);return[Math.atan2(r*h,l*Math.cos(a))/e,Math.asin(l&&n*h/l)/e]}}}),s(t,"Maps/Projections/WebMercator.js",[],function(){let e=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(i){let r=Math.sin(i[1]*e),n=[63.78137*i[0]*e,63.78137*Math.log((1+r)/(1-r))/2];return Math.abs(i[1])>this.maxLatitude&&(n.outside=!0),n}inverse(i){return[i[0]/(63.78137*e),(2*Math.atan(Math.exp(i[1]/63.78137))-Math.PI/2)/e]}}}),s(t,"Maps/Projections/ProjectionRegistry.js",[t["Maps/Projections/LambertConformalConic.js"],t["Maps/Projections/EqualEarth.js"],t["Maps/Projections/Miller.js"],t["Maps/Projections/Orthographic.js"],t["Maps/Projections/WebMercator.js"]],function(e,i,r,n,l){return{EqualEarth:i,LambertConformalConic:e,Miller:r,Orthographic:n,WebMercator:l}}),s(t,"Maps/Projection.js",[t["Core/Geometry/PolygonClip.js"],t["Maps/Projections/ProjectionRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{clipLineString:n,clipPolygon:l}=e,{clamp:a,erase:h}=r,c=2*Math.PI/360,g=v=>(v<-180&&(v+=360),v>180&&(v-=360),v),u=v=>(1-Math.cos(v))/2,p=(v,x)=>{let m=Math.cos,E=v[1]*c,L=v[0]*c,S=x[1]*c,w=x[0]*c;return u(S-E)+m(E)*m(S)*u(w-L)};class b{static add(x,m){b.registry[x]=m}static distance(x,m){let{atan2:E,sqrt:L}=Math,S=p(x,m);return 2*E(L(S),L(1-S))*6371e3}static geodesic(x,m,E,L=5e5){let{atan2:S,cos:w,sin:R,sqrt:O}=Math,I=b.distance,_=x[1]*c,P=x[0]*c,F=m[1]*c,A=m[0]*c,D=w(_)*w(P),C=w(F)*w(A),d=w(_)*R(P),f=w(F)*R(A),y=R(_),M=R(F),k=I(x,m),T=k/6371e3,z=R(T),N=Math.round(k/L),G=[];if(E&&G.push(x),N>1){let X=1/N;for(let j=X;j<.999;j+=X){let B=R((1-j)*T)/z,W=R(j*T)/z,Y=B*D+W*C,U=B*d+W*f,q=S(B*y+W*M,O(Y*Y+U*U)),H=S(U,Y);G.push([H/c,q/c])}}return E&&G.push(m),G}static insertGeodesics(x){let m=x.length-1;for(;m--;)if(Math.max(Math.abs(x[m][0]-x[m+1][0]),Math.abs(x[m][1]-x[m+1][1]))>10){let E=b.geodesic(x[m],x[m+1]);E.length&&x.splice(m+1,0,...E)}}static toString(x){let{name:m,rotation:E}=x||{};return[m,E&&E.join(",")].join(";")}constructor(x={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=x;let{name:m,projectedBounds:E,rotation:L}=x;this.rotator=L?this.getRotator(L):void 0;let S=m?b.registry[m]:void 0;S&&(this.def=new S(x));let{def:w,rotator:R}=this;w&&(this.maxLatitude=w.maxLatitude||90,this.hasGeoProjection=!0),R&&w?(this.forward=O=>w.forward(R.forward(O)),this.inverse=O=>R.inverse(w.inverse(O))):w?(this.forward=O=>w.forward(O),this.inverse=O=>w.inverse(O)):R&&(this.forward=R.forward,this.inverse=R.inverse),this.bounds=E==="world"?w&&w.bounds:E}lineIntersectsBounds(x){let{x1:m,x2:E,y1:L,y2:S}=this.bounds||{},w=(I,_,P)=>{let[F,A]=I,D=_?0:1;if(typeof P=="number"&&F[_]>=P!=A[_]>=P){let C=(P-F[_])/(A[_]-F[_]),d=F[D]+C*(A[D]-F[D]);return _?[d,P]:[P,d]}},R,O=x[0];return((R=w(x,0,m))||(R=w(x,0,E)))&&(O=R,x[1]=R),((R=w(x,1,L))||(R=w(x,1,S)))&&(O=R),O}getRotator(x){let m=x[0]*c,E=(x[1]||0)*c,L=(x[2]||0)*c,S=Math.cos(E),w=Math.sin(E),R=Math.cos(L),O=Math.sin(L);if(m!==0||E!==0||L!==0)return{forward:I=>{let _=I[0]*c+m,P=I[1]*c,F=Math.cos(P),A=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(P),d=C*S+A*w;return[Math.atan2(D*R-d*O,A*S-C*w)/c,Math.asin(d*R+D*O)/c]},inverse:I=>{let _=I[0]*c,P=I[1]*c,F=Math.cos(P),A=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(P),d=C*R-D*O;return[(Math.atan2(D*R+C*O,A*S+d*w)-m)/c,Math.asin(d*S-A*w)/c]}}}forward(x){return x}inverse(x){return x}cutOnAntimeridian(x,m){let E,L=[],S=[x];for(let w=0,R=x.length;w90)&&(P<-90||P>90)&&_>0!=P>0){let F=a((180-(_+360)%360)/((P+360)%360-(_+360)%360),0,1),A=I[1]+F*(O[1]-I[1]);L.push({i:w,lat:A,direction:_<0?1:-1,previousLonLat:I,lonLat:O})}}if(L.length)if(m){L.length%2==1&&(E=L.slice().sort((R,O)=>Math.abs(O.lat)-Math.abs(R.lat))[0],h(L,E));let w=L.length-2;for(;w>=0;){let R=L[w].i,O=g(180+1e-6*L[w].direction),I=g(180-1e-6*L[w].direction),_=x.splice(R,L[w+1].i-R,...b.geodesic([O,L[w].lat],[O,L[w+1].lat],!0));_.push(...b.geodesic([I,L[w+1].lat],[I,L[w].lat],!0)),S.push(_),w-=2}if(E)for(let R=0;R-1){let F=(I<0?-1:1)*this.maxLatitude,A=g(180+1e-6*O),D=g(180-1e-6*O),C=b.geodesic([A,I],[A,F],!0);for(let d=A+120*O;d>-180&&d<180;d+=120*O)C.push([d,F]);C.push(...b.geodesic([D,F],[D,E.lat],!0)),_.splice(P,0,...C);break}}}else{let w=L.length;for(;w--;){let R=L[w].i,O=x.splice(R,x.length,[g(180+1e-6*L[w].direction),L[w].lat]);O.unshift([g(180-1e-6*L[w].direction),L[w].lat]),S.push(O)}}return S}path(x){let m,{bounds:E,def:L,rotator:S}=this,w=[],R=x.type==="Polygon"||x.type==="MultiPolygon",O=this.hasGeoProjection,I=!L||L.antimeridianCutting!==!1,_=I?S:void 0,P=I&&L||this;E&&(m=[[E.x1,E.y1],[E.x2,E.y1],[E.x2,E.y2],[E.x1,E.y2]]);let F=A=>{let D=A.map(d=>{if(I){_&&(d=_.forward(d));let f=d[0];1e-6>Math.abs(f-180)&&(f=f<180?179.999999:180.000001),d=[f,d[1]]}return d}),C=[D];O&&(b.insertGeodesics(D),I&&(C=this.cutOnAntimeridian(D,R))),C.forEach(d=>{let f,y;if(d.length<2)return;let M=!1,k=!1,T=X=>{M?w.push(["L",X[0],X[1]]):(w.push(["M",X[0],X[1]]),M=!0)},z=!1,N=!1,G=d.map(X=>{let j=P.forward(X);return j.outside?z=!0:N=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(I){if(R&&G.push(G[0]),z){if(!N)return;if(m){if(R)G=l(G,m);else if(E){n(G,m).forEach(X=>{M=!1,X.forEach(T)});return}}}G.forEach(T)}else for(let X=0;XT(P.forward(W))):M=!1),T(B),y=j,k=!1)}})};return x.type==="LineString"?F(x.coordinates):x.type==="MultiLineString"?x.coordinates.forEach(A=>F(A)):x.type==="Polygon"?(x.coordinates.forEach(A=>F(A)),w.length&&w.push(["Z"])):x.type==="MultiPolygon"&&(x.coordinates.forEach(A=>{A.forEach(D=>F(D))}),w.length&&w.push(["Z"])),w}}return b.registry=i,b}),s(t,"Maps/MapView.js",[t["Core/Globals.js"],t["Maps/MapViewDefaults.js"],t["Maps/GeoJSONComposition.js"],t["Maps/MapUtilities.js"],t["Maps/Projection.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{composed:h}=e,{topo2geo:c}=r,{boundsFromPath:g,pointInPolygon:u}=n,{addEvent:p,clamp:b,crisp:v,fireEvent:x,isArray:m,isNumber:E,isObject:L,isString:S,merge:w,pick:R,pushUnique:O,relativeLength:I}=a,_={};function P(C,d){let{width:f,height:y}=d;return Math.log(400.979322/Math.max((C.x2-C.x1)/(f/256),(C.y2-C.y1)/(y/256)))/Math.log(2)}function F(C){C.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,C.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class A{static compose(d){O(h,"MapView")&&(_=d.maps,p(d,"afterInit",function(){this.mapView=new A(this,this.options.mapView)},{order:0}),p(d,"addSeriesAsDrilldown",F),p(d,"afterDrillUp",F))}static compositeBounds(d){if(d.length)return d.slice(1).reduce((f,y)=>(f.x1=Math.min(f.x1,y.x1),f.y1=Math.min(f.y1,y.y1),f.x2=Math.max(f.x2,y.x2),f.y2=Math.max(f.y2,y.y2),f),w(d[0]))}static mergeInsets(d,f){let y=k=>{let T={};return k.forEach((z,N)=>{T[z&&z.id||`i${N}`]=z}),T},M=w(y(d),y(f));return Object.keys(M).map(k=>M[k])}constructor(d,f){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof D||this.recommendMapView(d,[d.options.chart.map,...(d.options.series||[]).map(T=>T.mapData)]),this.userOptions=f||{};let y=w(i,this.recommendedMapView,f),M=this.recommendedMapView?.insets,k=f&&f.insets;M&&k&&(y.insets=A.mergeInsets(M,k)),this.chart=d,this.center=y.center,this.options=y,this.projection=new l(y.projection),this.playingField=d.plotBox,this.zoom=y.zoom||0,this.minZoom=y.minZoom,this.createInsets(),this.eventsToUnbind.push(p(d,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&E(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&w(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let d=this.options,f=d.insets;f&&f.forEach(y=>{let M=new D(this,w(d.insetOptions,y));this.insets.push(M)})}fitToBounds(d,f,y=!0,M){let k=d||this.getProjectedBounds();if(k){let T=R(f,d?0:this.options.padding),z=this.getField(!1),N=m(T)?T:[T,T,T,T];this.padding=[I(N[0],z.height),I(N[1],z.width),I(N[2],z.height),I(N[3],z.width)],this.playingField=this.getField();let G=P(k,this.playingField);d||(this.minZoom=G);let X=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(X,G,y,M)}}getField(d=!0){let f=d?this.padding:[0,0,0,0];return{x:f[3],y:f[0],width:this.chart.plotWidth-f[1]-f[3],height:this.chart.plotHeight-f[0]-f[2]}}getGeoMap(d){if(S(d))return _[d]&&_[d].type==="Topology"?c(_[d]):_[d];if(L(d,!0)){if(d.type==="FeatureCollection")return d;if(d.type==="Topology")return c(d)}}getMapBBox(){let d=this.getProjectedBounds(),f=this.getScale();if(d){let y=this.padding,M=this.projectedUnitsToPixels({x:d.x1,y:d.y2});return{width:(d.x2-d.x1)*f+y[1]+y[3],height:(d.y2-d.y1)*f+y[0]+y[2],x:M.x-y[3],y:M.y-y[0]}}}getProjectedBounds(){let d=this.projection,f=this.chart.series.reduce((M,k)=>{let T=k.getProjectedBounds&&k.getProjectedBounds();return T&&k.options.affectsMapView!==!1&&M.push(T),M},[]),y=this.options.fitToGeometry;if(y){if(!this.fitToGeometryCache)if(y.type==="MultiPoint"){let M=y.coordinates.map(z=>d.forward(z)),k=M.map(z=>z[0]),T=M.map(z=>z[1]);this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,T),y2:Math.max.apply(0,T)}}else this.fitToGeometryCache=g(d.path(y));return this.fitToGeometryCache}return this.projection.bounds||A.compositeBounds(f)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:d,y:f,width:y,height:M}=this.playingField,k=this.projection.forward(this.center),T=this.projection.hasCoordinates?-1:1,z=this.getScale(),N=z*T,G=d+y/2-k[0]*z,X=f+M/2-k[1]*N;return{scaleX:z,scaleY:N,translateX:G,translateY:X}}lonLatToPixels(d){let f=this.lonLatToProjectedUnits(d);if(f)return this.projectedUnitsToPixels(f)}lonLatToProjectedUnits(d){let f=this.chart,y=f.mapTransforms;if(y){for(let k in y)if(Object.hasOwnProperty.call(y,k)&&y[k].hitZone){let T=f.transformFromLatLon(d,y[k]);if(T&&u(T,y[k].hitZone.coordinates[0]))return T}return f.transformFromLatLon(d,y.default)}for(let k of this.insets)if(k.options.geoBounds&&u({x:d.lon,y:d.lat},k.options.geoBounds.coordinates[0])){let T=k.projection.forward([d.lon,d.lat]),z=k.projectedUnitsToPixels({x:T[0],y:T[1]});return this.pixelsToProjectedUnits(z)}let M=this.projection.forward([d.lon,d.lat]);if(!M.outside)return{x:M[0],y:M[1]}}projectedUnitsToLonLat(d){let f=this.chart,y=f.mapTransforms;if(y){for(let T in y)if(Object.hasOwnProperty.call(y,T)&&y[T].hitZone&&u(d,y[T].hitZone.coordinates[0]))return f.transformToLatLon(d,y[T]);return f.transformToLatLon(d,y.default)}let M=this.projectedUnitsToPixels(d);for(let T of this.insets)if(T.hitZone&&u(M,T.hitZone.coordinates[0])){let z=T.pixelsToProjectedUnits(M),N=T.projection.inverse([z.x,z.y]);return{lon:N[0],lat:N[1]}}let k=this.projection.inverse([d.x,d.y]);return{lon:k[0],lat:k[1]}}recommendMapView(d,f,y=!1){this.recommendedMapView={};let M=f.map(z=>this.getGeoMap(z)),k=[];M.forEach(z=>{if(z&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=z["hc-recommended-mapview"]||{}),z.bbox)){let[N,G,X,j]=z.bbox;k.push({x1:N,y1:G,x2:X,y2:j})}});let T=k.length&&A.compositeBounds(k);x(this,"onRecommendMapView",{geoBounds:T,chart:d},function(){if(T&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:z,y1:N,x2:G,y2:X}=T;this.recommendedMapView.projection=G-z>180&&X-N>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[N,X],rotation:[-(z+G)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=M[0],y&&d.hasRendered&&!d.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(d){this.chart.series.forEach(f=>{f.useMapGeometry&&(f.isDirty=!0)}),this.chart.redraw(d)}setView(d,f,y=!0,M){d&&(this.center=d),typeof f=="number"&&(typeof this.minZoom=="number"&&(f=Math.max(f,this.minZoom)),typeof this.options.maxZoom=="number"&&(f=Math.min(f,this.options.maxZoom)),E(f)&&(this.zoom=f));let k=this.getProjectedBounds();if(k){let T=this.projection.forward(this.center),{x:z,y:N,width:G,height:X}=this.playingField,j=this.getScale(),B=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),W=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2];if(!this.chart.series.some(U=>U.isDrilling)){let U=B.x,q=W.y,H=W.x,V=B.y;H-Uz+G&&U>z&&(T[0]+=Math.min(H-G-z,U-z)/j),V-qN+X&&q>N&&(T[1]-=Math.min(V-X-N,q-N)/j),this.center=this.projection.inverse(T)}this.insets.forEach(U=>{U.options.field&&(U.hitZone=U.getHitZone(),U.playingField=U.getField())}),this.render()}x(this,"afterSetView"),y&&this.redraw(M)}projectedUnitsToPixels(d){let f=this.getScale(),y=this.projection.forward(this.center),M=this.playingField,k=M.x+M.width/2,T=M.y+M.height/2;return{x:k-f*(y[0]-d.x),y:T+f*(y[1]-d.y)}}pixelsToLonLat(d){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(d))}pixelsToProjectedUnits(d){let{x:f,y}=d,M=this.getScale(),k=this.projection.forward(this.center),T=this.playingField,z=T.x+T.width/2,N=T.y+T.height/2;return{x:k[0]+(f-z)/M,y:k[1]-(y-N)/M}}setUpEvents(){let d,f,y,{chart:M}=this,k=T=>{let{lastTouches:z,pinchDown:N}=M.pointer,G=this.projection,X=T.touches,{mouseDownX:j,mouseDownY:B}=M,W=0;if(N?.length===1?(j=N[0].chartX,B=N[0].chartY):N?.length===2&&(j=(N[0].chartX+N[1].chartX)/2,B=(N[0].chartY+N[1].chartY)/2),X?.length===2&&z&&(W=Math.log(Math.sqrt(Math.pow(z[0].chartX-z[1].chartX,2)+Math.pow(z[0].chartY-z[1].chartY,2))/Math.sqrt(Math.pow(X[0].chartX-X[1].chartX,2)+Math.pow(X[0].chartY-X[1].chartY,2)))/Math.log(.5)),E(j)&&E(B)){let Y=`${j},${B}`,{chartX:U,chartY:q}=T.originalEvent;X?.length===2&&(U=(X[0].chartX+X[1].chartX)/2,q=(X[0].chartY+X[1].chartY)/2),Y!==f&&(f=Y,d=this.projection.forward(this.center),y=(this.projection.options.rotation||[0,0]).slice());let H=G.def&&G.def.bounds,V=H&&P(H,this.playingField)||-1/0;if(G.options.name==="Orthographic"&&2>(X?.length||0)&&(this.minZoom||1/0)<1.3*V){let Z=440/(this.getScale()*Math.min(M.plotWidth,M.plotHeight));if(y){let K=(j-U)*Z-y[0],J=b(-y[1]-(B-q)*Z,-80,80),tt=this.zoom;this.update({projection:{rotation:[-K,-J]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=tt,M.redraw(!1)}}else if(E(U)&&E(q)){let Z=this.getScale(),K=this.projection.hasCoordinates?1:-1,J=this.projection.inverse([d[0]+(j-U)/Z,d[1]-(B-q)/Z*K]);isNaN(J[0]+J[1])||this.zoomBy(W,J,void 0,!1)}T.preventDefault()}};p(M,"pan",k),p(M,"touchpan",k),p(M,"selection",T=>{if(T.resetSelection)this.zoomBy();else{let z=T.x-M.plotLeft,N=T.y-M.plotTop,{y:G,x:X}=this.pixelsToProjectedUnits({x:z,y:N}),{y:j,x:B}=this.pixelsToProjectedUnits({x:z+T.width,y:N+T.height});this.fitToBounds({x1:X,y1:G,x2:B,y2:j},void 0,!0,!T.originalEvent.touches&&void 0),/^touch/.test(T.originalEvent.type)||M.showResetZoom(),T.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(d,f=!0,y){let M=d.projection,k=M&&l.toString(M)!==l.toString(this.options.projection),T=!1;w(!0,this.userOptions,d),w(!0,this.options,d),"insets"in d&&(this.insets.forEach(z=>z.destroy()),this.insets.length=0,T=!0),(k||"fitToGeometry"in d)&&delete this.fitToGeometryCache,(k||T)&&(this.chart.series.forEach(z=>{let N=z.transformGroups;if(z.clearBounds&&z.clearBounds(),z.isDirty=!0,z.isDirtyData=!0,T&&N)for(;N.length>1;){let G=N.pop();G&&G.destroy()}}),k&&(this.projection=new l(this.options.projection)),T&&this.createInsets(),!d.center&&Object.hasOwnProperty.call(d,"zoom")&&!E(d.zoom)&&this.fitToBounds(void 0,void 0,!1)),d.center||E(d.zoom)?this.setView(this.options.center,d.zoom,!1):"fitToGeometry"in d&&this.fitToBounds(void 0,void 0,!1),f&&this.chart.redraw(y)}zoomBy(d,f,y,M){let k=this.chart,T=this.projection.forward(this.center);if(typeof d=="number"){let z,N,G,X=this.zoom+d;if(y){let[j,B]=y,W=this.getScale(),Y=j-k.plotLeft-k.plotWidth/2,U=B-k.plotTop-k.plotHeight/2;N=T[0]+Y/W,G=T[1]+U/W}if(typeof N=="number"&&typeof G=="number"){let j=1-Math.pow(2,this.zoom)/Math.pow(2,X),B=T[0]-N,W=T[1]-G;T[0]-=B*j,T[1]+=W*j,z=this.projection.inverse(T)}this.setView(f||z,X,void 0,M)}else this.fitToBounds(void 0,void 0,void 0,M)}}class D extends A{constructor(d,f){if(super(d.chart,f),this.id=f.id,this.mapView=d,this.options=w({center:[0,0]},d.options.insetOptions,f),this.allBounds=[],this.options.geoBounds){let y=d.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=g(y),this.geoBoundsProjectedPolygon=y.map(M=>[M[1]||0,M[2]||0])}}getField(d=!0){let f=this.hitZone;if(f){let y=d?this.padding:[0,0,0,0],M=f.coordinates[0],k=M.map(j=>j[0]),T=M.map(j=>j[1]),z=Math.min.apply(0,k)+y[3],N=Math.max.apply(0,k)-y[1],G=Math.min.apply(0,T)+y[0],X=Math.max.apply(0,T)-y[2];if(E(z)&&E(G))return{x:z,y:G,width:N-z,height:X-G}}return super.getField.call(this,d)}getHitZone(){let{chart:d,mapView:f,options:y}=this,{coordinates:M}=y.field||{};if(M){let k=M[0];if(y.units==="percent"){let T=y.relativeTo==="mapBoundingBox"&&f.getMapBBox()||w(d.plotBox,{x:0,y:0});k=k.map(z=>[I(`${z[0]}%`,T.width,T.x),I(`${z[1]}%`,T.height,T.y)])}return{type:"Polygon",coordinates:[k]}}}getProjectedBounds(){return A.compositeBounds(this.allBounds)}isInside(d){let{geoBoundsProjectedBox:f,geoBoundsProjectedPolygon:y}=this;return!!(f&&d.x>=f.x1&&d.x<=f.x2&&d.y>=f.y1&&d.y<=f.y2&&y&&u(d,y))}render(){let{chart:d,mapView:f,options:y}=this,M=y.borderPath||y.field;if(M&&f.group){let k=!0;this.border||(this.border=d.renderer.path().addClass("highcharts-mapview-inset-border").add(f.group),k=!1),d.styledMode||this.border.attr({stroke:y.borderColor,"stroke-width":y.borderWidth});let T=this.border.strokeWidth(),z=y.relativeTo==="mapBoundingBox"&&f.getMapBBox()||f.playingField,N=(M.coordinates||[]).reduce((G,X)=>X.reduce((j,B,W)=>{let[Y,U]=B;return y.units==="percent"&&(Y=d.plotLeft+I(`${Y}%`,z.width,z.x),U=d.plotTop+I(`${U}%`,z.height,z.y)),Y=v(Y,T),U=v(U,T),j.push(W===0?["M",Y,U]:["L",Y,U]),j},G),[]);this.border[k?"animate":"attr"]({d:N})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(d=>d())}setUpEvents(){}}return A}),s(t,"Series/Map/MapSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Series/ColorMapComposition.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Chart/MapChart.js"],t["Series/Map/MapPoint.js"],t["Series/Map/MapSeriesDefaults.js"],t["Maps/MapView.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,g,u){let{animObject:p,stop:b}=e,{noop:v}=n,{splitPath:x}=l,{column:m,scatter:E}=g.seriesTypes,{extend:L,find:S,fireEvent:w,getNestedProperty:R,isArray:O,defined:I,isNumber:_,isObject:P,merge:F,objectEach:A,pick:D,splat:C}=u;class d extends E{constructor(){super(...arguments),this.processedData=[]}animate(y){let{chart:M,group:k}=this,T=p(this.options.animation);y?k.attr({translateX:M.plotLeft+M.plotWidth/2,translateY:M.plotTop+M.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:M.plotLeft,translateY:M.plotTop,scaleX:1,scaleY:1},T)}clearBounds(){this.points.forEach(y=>{delete y.bounds,delete y.insetIndex,delete y.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let y=this,{chart:M,group:k,transformGroups:T=[]}=this,{mapView:z,renderer:N}=M;if(z){this.transformGroups=T,T[0]||(T[0]=N.g().add(k));for(let G=0,X=z.insets.length;G{let{graphic:X}=G;G.group=T[typeof G.insetIndex=="number"?G.insetIndex+1:0],X&&X.parentGroup!==G.group&&X.add(G.group)}),m.prototype.drawPoints.apply(this),this.points.forEach(G=>{let X=G.graphic;if(X){let j=X.animate,B="";G.name&&(B+="highcharts-name-"+G.name.replace(/ /g,"-").toLowerCase()),G.properties&&G.properties["hc-key"]&&(B+=" highcharts-key-"+G.properties["hc-key"].toString().toLowerCase()),B&&X.addClass(B),M.styledMode&&X.css(this.pointAttribs(G,G.selected&&"select"||void 0)),X.attr({visibility:!G.visible&&(G.visible||G.isNull)?"hidden":"inherit"}),X.animate=function(W,Y,U){let q=_(W["stroke-width"])&&!_(X["stroke-width"]),H=_(X["stroke-width"])&&!_(W["stroke-width"]);if(q||H){let V=D(y.getStrokeWidth(y.options),1)/(M.mapView&&M.mapView.getScale()||1);q&&(X["stroke-width"]=V),H&&(W["stroke-width"]=V)}return j.call(X,W,Y,H?function(){X.element.removeAttribute("stroke-width"),delete X["stroke-width"],U&&U.apply(this,arguments)}:U)}}})),T.forEach((G,X)=>{let j=(X===0?z:z.insets[X-1]).getSVGTransform(),B=D(this.getStrokeWidth(this.options),1),W=j.scaleX,Y=j.scaleY>0?1:-1,U=q=>{(y.points||[]).forEach(H=>{let V,Z=H.graphic;Z&&Z["stroke-width"]&&(V=this.getStrokeWidth(H.options))&&Z.attr({"stroke-width":V/q})})};if(N.globalAnimation&&M.hasRendered&&z.allowTransformAnimation){let q=Number(G.attr("translateX")),H=Number(G.attr("translateY")),V=Number(G.attr("scaleX")),Z=(tt,$)=>{let Q=V+(W-V)*$.pos;G.attr({translateX:q+(j.translateX-q)*$.pos,translateY:H+(j.translateY-H)*$.pos,scaleX:Q,scaleY:Q*Y,"stroke-width":B/Q}),U(Q)},K=F(p(N.globalAnimation)),J=K.step;K.step=function(){J&&J.apply(this,arguments),Z.apply(this,arguments)},G.attr({animator:0}).animate({animator:1},K,(function(){typeof N.globalAnimation!="boolean"&&N.globalAnimation.complete&&N.globalAnimation.complete({applyDrilldown:!0}),w(this,"mapZoomComplete")}).bind(this))}else b(G),G.attr(F(j,{"stroke-width":B/W})),U(W)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:y,projection:M}=this.chart.mapView,k=[];(this.points||[]).forEach(T=>{if(T.path||T.geometry){if(typeof T.path=="string"?T.path=x(T.path):O(T.path)&&T.path[0]==="M"&&(T.path=this.chart.renderer.pathToSegments(T.path)),!T.bounds){let z=T.getProjectedBounds(M);if(z){T.labelrank=D(T.labelrank,(z.x2-z.x1)*(z.y2-z.y1));let{midX:N,midY:G}=z;if(y&&_(N)&&_(G)){let X=S(y,j=>j.isInside({x:N,y:G}));X&&(delete T.projectedPath,(z=T.getProjectedBounds(X.projection))&&X.allBounds.push(z),T.insetIndex=y.indexOf(X))}T.bounds=z}}T.bounds&&T.insetIndex===void 0&&k.push(T.bounds)}}),this.bounds=c.compositeBounds(k)}return this.bounds}getStrokeWidth(y){let M=this.pointAttrToOptions;return y[M&&M["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(y,M){let{mapView:k,styledMode:T}=y.series.chart,z=T?this.colorAttribs(y):m.prototype.pointAttribs.call(this,y,M),N=this.getStrokeWidth(y.options);if(M){let X=F(this.options.states&&this.options.states[M],y.options.states&&y.options.states[M]||{}),j=this.getStrokeWidth(X);I(j)&&(N=j),z.stroke=X.borderColor??y.color}N&&k&&(N/=k.getScale());let G=this.getStrokeWidth(this.options);return z.dashstyle&&k&&_(G)&&(N=G/k.getScale()),y.visible||(z.fill=this.options.nullColor),I(N)?z["stroke-width"]=N:delete z["stroke-width"],z["stroke-linecap"]=z["stroke-linejoin"]=this.options.linecap,z}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(y,M=!0,k,T){delete this.bounds,super.setData(y,!1,void 0,T),this.processData(),this.generatePoints(),M&&this.chart.redraw(k)}processData(){let y,M,k,T=this.options,z=T.data,N=this.chart,G=N.options.chart,X=this.joinBy,j=T.keys||this.pointArrayMap,B=[],W={},Y=this.chart.mapView,U=Y&&(P(T.mapData,!0)?Y.getGeoMap(T.mapData):Y.geoMap),q=N.mapTransforms=G.mapTransforms||U&&U["hc-transform"]||N.mapTransforms;q&&A(q,V=>{V.rotation&&(V.cosAngle=Math.cos(V.rotation),V.sinAngle=Math.sin(V.rotation))}),O(T.mapData)?k=T.mapData:U&&U.type==="FeatureCollection"&&(this.mapTitle=U.title,k=n.geojson(U,this.type,this)),this.processedData=[];let H=this.processedData;if(z){let V;for(let Z=0,K=z.length;Zj.length&&typeof V[0]=="string"&&(H[Z]["hc-key"]=V[0],++J);for(let tt=0;tt0?a.prototype.setNestedProperty(H[Z],V[J],j[tt]):H[Z][j[tt]]=V[J])}else H[Z]=z[Z];X&&X[0]==="_i"&&(H[Z]._i=Z)}}if(k){this.mapData=k,this.mapMap={};for(let V=0;V{let K=R(V,Z);W[K]&&B.push(W[K])})}if(T.allAreas){if(X[1]){let Z=X[1];H.forEach(K=>{B.push(R(Z,K))})}let V="|"+B.map(function(Z){return Z&&Z[X[0]]}).join("|")+"|";k.forEach(Z=>{X[0]&&V.indexOf("|"+Z[X[0]]+"|")!==-1||H.push(F(Z,{value:null}))})}}this.processedXData=Array(H.length)}setOptions(y){let M=super.setOptions(y),k=M.joinBy;return M.joinBy===null&&(k="_i"),(k=this.joinBy=C(k))[1]||(k[1]=k[0]),M}translate(){let y=this.doFullTranslate(),M=this.chart.mapView,k=M&&M.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!M||M.userOptions.center||_(M.userOptions.zoom)||M.zoom!==M.minZoom?this.getProjectedBounds():M.fitToBounds(void 0,void 0,!1)),M){let T=M.getSVGTransform();this.points.forEach(z=>{let N=_(z.insetIndex)&&M.insets[z.insetIndex].getSVGTransform()||T;N&&z.bounds&&_(z.bounds.midX)&&_(z.bounds.midY)&&(z.plotX=z.bounds.midX*N.scaleX+N.translateX,z.plotY=z.bounds.midY*N.scaleY+N.translateY),y&&(z.shapeType="path",z.shapeArgs={d:a.getProjectedPath(z,k)}),z.hiddenInDataClass||(z.projectedPath&&!z.projectedPath.length?z.setVisible(!1):z.visible||z.setVisible(!0))})}w(this,"afterTranslate")}update(y){y.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((M,k)=>k===this._i?y.mapData:M.mapData)],!0),super.update.apply(this,arguments)}}return d.defaultOptions=F(E.defaultOptions,h),L(d.prototype,{type:"map",axisTypes:i.seriesMembers.axisTypes,colorAttribs:i.seriesMembers.colorAttribs,colorKey:i.seriesMembers.colorKey,directTouch:!0,drawDataLabels:v,drawGraph:v,forceDL:!0,getCenter:r.getCenter,getExtremesFromAll:!0,getSymbol:v,isCartesian:!1,parallelArrays:i.seriesMembers.parallelArrays,pointArrayMap:i.seriesMembers.pointArrayMap,pointClass:a,preserveAspectRatio:!0,searchPoint:v,trackerGroups:i.seriesMembers.trackerGroups,useMapGeometry:!0}),i.compose(d),g.registerSeriesType("map",d),d}),s(t,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),s(t,"Series/MapLine/MapLineSeries.js",[t["Series/MapLine/MapLineSeriesDefaults.js"],t["Series/Map/MapSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{extend:l,merge:a}=n;class h extends i{pointAttribs(g,u){let p=super.pointAttribs(g,u);return p.fill=this.options.fillColor,p}}return h.defaultOptions=a(i.defaultOptions,e),l(h.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),r.registerSeriesType("mapline",h),h}),s(t,"Series/MapPoint/MapPointPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:r}=e.seriesTypes,{isNumber:n}=i;class l extends r.prototype.pointClass{isValid(){return!!(this.options.geometry||n(this.x)&&n(this.y)||n(this.options.lon)&&n(this.options.lat))}}return l}),s(t,"Series/MapPoint/MapPointSeriesDefaults.js",[],function(){return{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}}),s(t,"Series/MapPoint/MapPointSeries.js",[t["Core/Globals.js"],t["Series/MapPoint/MapPointPoint.js"],t["Series/MapPoint/MapPointSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{noop:h}=e,{map:c,scatter:g}=n.seriesTypes,{extend:u,fireEvent:p,isNumber:b,merge:v}=a;class x extends g{constructor(){super(...arguments),this.clearBounds=c.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(E){let L=this.chart.mapView;if(L){let{geometry:S,lon:w,lat:R}=E,O=S&&S.type==="Point"&&S.coordinates;if(b(w)&&b(R)&&(O=[w,R]),O)return L.lonLatToProjectedUnits({lon:O[0],lat:O[1]})}}translate(){let E=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),E){let L=E.getSVGTransform(),{hasCoordinates:S}=E.projection;this.points.forEach(w=>{let R,{x:O,y:I}=w,_=b(w.insetIndex)&&E.insets[w.insetIndex].getSVGTransform()||L,P=this.projectPoint(w.options)||w.properties&&this.projectPoint(w.properties);if(P?(O=P.x,I=P.y):w.bounds&&(O=w.bounds.midX,I=w.bounds.midY,_&&b(O)&&b(I)&&(w.plotX=O*_.scaleX+_.translateX,w.plotY=I*_.scaleY+_.translateY,R=!0)),b(O)&&b(I)){if(!R){let F=E.projectedUnitsToPixels({x:O,y:I});w.plotX=F.x,w.plotY=S?F.y:this.chart.plotHeight-F.y}}else w.y=w.plotX=w.plotY=void 0;w.isInside=this.isPointInside(w),w.zone=this.zones.length?w.getZone():void 0})}p(this,"afterTranslate")}}return x.defaultOptions=v(g.defaultOptions,r),l.prototype.symbols.mapmarker=(m,E,L,S,w)=>{let R,O,I=w&&w.context==="legend";I?(R=m+L/2,O=E+S):w&&typeof w.anchorX=="number"&&typeof w.anchorY=="number"?(R=w.anchorX,O=w.anchorY):(R=m+L/2,O=E+S/2,E-=S);let _=I?S/3:S/2;return[["M",R,O],["C",R,O,R-_,E+1.5*_,R-_,E+_],["A",_,_,1,1,1,R+_,E+_],["C",R+_,E+1.5*_,R,O,R,O],["Z"]]},u(x.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:i,searchPoint:h,useMapGeometry:!0}),n.registerSeriesType("mappoint",x),x}),s(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),s(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:u,pick:p,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,m=p(v.options.itemDistance,20),E=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!g(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,P){return P.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,E.labelWidth=I+x+m,E.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,m=this.chart.series[x.seriesIndex],E=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=m.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=p(I.borderColor,x.borderColor,m.color),L.fill=p(I.color,x.color,R!==1?l(m.color).setOpacity(R).get("rgba"):m.color),S.stroke=p(I.connectorColor,x.connectorColor,m.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=u(v[_],{center:v[0].radius-v[_].radius+E}),O||u(!0,v[_],{bubbleAttribs:u(L),connectorAttribs:u(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,m=this.options.seriesIndex,E=this.chart.series[m],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return E.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,m=this.options.zThreshold;for(let E of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))E.value>=m&&this.renderRange(E);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],m=this.legend,E=this.options,L=E.labels,S=this.chart,w=S.series[E.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,P=Math.abs(v.radius),F=E.connectorDistance||0,A=L.align,D=m.options.rtl,C=E.borderWidth,d=E.connectorWidth,f=x.radius||0,y=_-P-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,T=D||A==="left"?-F:F;A==="center"&&(T=0,E.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(f,_+M,P).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(E.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",f,y],["L",f+T,y]],E.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(E.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(E.labels.className||"")).add(this.legendItem.symbol),N={x:f+T+E.labels.x,y:y+E.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(m){x=m.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,m=x.labels.formatter,E=x.labels.format,{numberFormatter:L}=this.chart;return E?i.format(E,v):m?m.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,m=this.symbols;!x&&m&&(v.hideOverlappingLabels(m.labels),m.labels.forEach(function(E,L){E.newOpacity?E.newOpacity!==E.oldOpacity&&m.connectors[L].show():m.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,m=v.options.ranges,E,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(g)).length&&(S=p(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=p(R.options.zMax,Math.max(w,h(L))))}),E=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],m.length&&m[0].radius&&E.reverse(),E.forEach(function(R,O){m&&m[O]&&(E[O]=u(m[O],R))}),E}predictBubbleSizes(){let v=this.chart,x=v.legend.options,m=x.floating,E=x.layout==="horizontal",L=E?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),P,F=R.options.maxSize;return m||!/%$/.test(F)?P=_:(P=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(E&&w-P>=S||!E&&S-P>=w)&&(P=_)),[I,Math.ceil(P)]}updateRanges(v,x){let m=this.legend.options.bubbleLegend;m.minSize=v,m.maxSize=x,m.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),s(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:g,pushUnique:u,wrap:p}=l;function b(S,w,R){let O,I,_,P=this.legend,F=v(this)>=0;P&&P.options.enabled&&P.bubbleLegend&&P.options.bubbleLegend.autoRanges&&F?(O=P.bubbleLegend.options,I=P.bubbleLegend.predictBubbleSizes(),P.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(P.group.placed=!1,P.allItems.forEach(A=>{(_=A.legendItem||{}).group&&(_.group.translateY=void 0)})),P.render(),O.placed||(this.getMargins(),this.axes.forEach(function(A){A.visible&&A.render(),O.placed||(A.setScale(),A.updateNames(),g(A.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),P.bubbleLegend.correctSizes(),L(P,x(P))):(S.call(this,w,R),P&&P.options.enabled&&P.bubbleLegend&&(P.render(),L(P,x(P))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[A].itemHeight);I.step=F}return R}function m(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new i(O,this),this.bubbleLegend.addToLegend(S.allItems))}function E(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,P,F,A=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((P=D.movementX)||O&&D.ranges)&&(P=O?I-D.options.maxSize/2:I+P,F.group.attr({translateX:P})),C>w[A].step&&A++,F.group.attr({translateY:Math.round(_+w[A].height/2)}),F.y=_+w[A].height/2)})}return{compose:function(S,w,R){u(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),p(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",m),c(R,"legendItemClick",E))}}}),s(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=i,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),s(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{parse:h}=r,{composed:c,noop:g}=n,{series:u,seriesTypes:{column:{prototype:p},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:m,clamp:E,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let P=this.len,{coll:F,isXAxis:A,min:D}=this,C=A?"xData":"yData",d=(this.max||0)-(D||0),f=0,y=P,M=P/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(T=>{if(T.bubblePadding&&T.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=T[C];if(A&&((T.onPoint||T).getRadii(0,0,T),T.onPoint&&(T.radii=T.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=T.radii&&T.radii[N]||0;f=Math.min((z[N]-D)*M-G,f),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=P,M*=(P+Math.max(0,f)-Math.min(y,P))/P,[["min","userMin",f],["max","userMax",y]].forEach(T=>{R(this.options[T[0]],this[T[1]])===void 0&&(this[T[0]]+=T[2]/M)})))}class _ extends b{static compose(F,A,D,C){e.compose(A,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),T=!0)}}),T?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/T)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,A){let D=super.markerAttribs(F,A),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,A){let D=this.options.marker.fillOpacity,C=u.prototype.pointAttribs.call(this,F,A);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:A,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let f=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(f.negative=(f.z||0)<(A.zThreshold||0)),S(y)&&y>=C/2?(f.marker=L(f.marker,{radius:y,width:2*y,height:2*y}),f.dlBox={x:f.plotX-y,y:f.plotY-y,width:2*y,height:2*y}):(f.shapeArgs=f.plotY=f.dlBox=void 0,f.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),A=d=>{let f;return typeof d=="string"&&(f=/%$/.test(d),d=parseInt(d,10)),f?F*d/100:d},D=A(R(this.options.minSize,8)),C=Math.max(A(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,A=(this.zData||[]).filter(S);if(A.length){let D=R(F.zMin,E(m(A),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(A));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:P}=this.series.chart,{z:F}=this.point;return S(F)?P(F,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),L(_.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:i,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",P=>{delete P.target.chart.bubbleZExtremes}),v(_,"remove",P=>{delete P.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),s(t,"Series/MapBubble/MapBubblePoint.js",[t["Series/Bubble/BubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{map:{prototype:{pointClass:{prototype:n}}}}}=i,{extend:l}=r;class a extends e{isValid(){return typeof this.z=="number"}}return l(a.prototype,{applyOptions:n.applyOptions,getProjectedBounds:n.getProjectedBounds}),a}),s(t,"Series/MapBubble/MapBubbleSeries.js",[t["Series/Bubble/BubbleSeries.js"],t["Series/MapBubble/MapBubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{seriesTypes:{map:{prototype:l},mappoint:{prototype:a}}}=r,{extend:h,merge:c}=n;class g extends e{constructor(){super(...arguments),this.clearBounds=l.clearBounds}searchPoint(p,b){return this.searchKDTree({plotX:p.chartX-this.chart.plotLeft,plotY:p.chartY-this.chart.plotTop},b,p)}translate(){a.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(p,b,v){super.updateParallelArrays.call(this,p,b,v);let x=this.processedXData,m=this.xData;x&&m&&(x.length=m.length)}}return g.defaultOptions=c(e.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h(g.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:l.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:i,processData:l.processData,projectPoint:a.projectPoint,kdAxisArray:["plotX","plotY"],setData:l.setData,setOptions:l.setOptions,updateData:l.updateData,useMapGeometry:!0,xyFromShape:!0}),r.registerSeriesType("mapbubble",g),g}),s(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=i;class c extends r{applyOptions(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,b=(p.colsize||1)/2,v=(p.rowsize||1)/2,x=u.xAxis,m=u.yAxis,E=this.options.marker||u.options.marker,L=u.pointPlacementToXValue(),S=h(this.pointPadding,p.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(m.translate(this.y-v,!1,!0,!1,!0)),-m.len,2*m.len),y2:n(Math.round(m.translate(this.y+v,!1,!0,!1,!0)),-m.len,2*m.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",P=I+"2",F=Math.abs(w[_]-w[P]),A=E&&E.lineWidth||0,D=Math.abs(w[_]+w[P])/2,C=E&&E[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),s(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{doc:r}=e,{defined:n,pick:l}=i;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let g=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(u=>l(parseFloat(u),parseInt(u,10)));return g[3]=255*l(g[3],1),n(a)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),s(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,i,r,n,l,a,h,c){let{series:g,seriesTypes:{column:u,scatter:p}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:m,isNumber:E,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,P=_.options,F=P.interpolation,A=P.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:f}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:T}=f,z={width:M,height:T};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,Y=C.colorAxis&&C.colorAxis[0];if(G&&N&&Y){let{min:U,max:q}=d.getExtremes(),{min:H,max:V}=f.getExtremes(),Z=q-U,K=V-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:P}=g.prototype.getExtremes.call(this,this.valueData);return E(_)&&(this.valueMin=_),E(P)&&(this.valueMax=P),g.prototype.getExtremes.call(this)}getValidPoints(_,P){return g.prototype.getValidPoints.call(this,_,P,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&E(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,P){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(P&&P!=="normal"){let A=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[P]||{},d=A.states&&A.states[P]||{},f=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-f)/2,y:(F.y||0)+((F.height||0)-y)/2,width:f,height:y}}return F}pointAttribs(_,P){let F=g.prototype.pointAttribs.call(this,_,P),A=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},f=_&&_.options.borderColor||A.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||A.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||A.marker&&A.marker.lineColor||f||this.color,F["stroke-width"]=y,P&&P!=="normal"){let M=L(A.states&&A.states[P],A.marker&&A.marker.states&&A.marker.states[P],_&&_.options.states&&_.options.states[P]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:P}=this.options,F=P&&P.symbol||"rect",A=b[F]?F:"rect",D=["circle","square"].indexOf(A)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),f=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let T=Math.abs(M-k);f=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof Bn=="object"&&Bn.exports?(o.default=o,Bn.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Extensions/Pane/PaneComposition.js",[t["Core/Utilities.js"]],function(e){let{addEvent:i,correctFloat:r,defined:n,pick:l}=e;function a(p){let b,v=this;return p&&v.pane.forEach(x=>{h(p.chartX-v.plotLeft,p.chartY-v.plotTop,x.center)&&(b=x)}),b}function h(p,b,v,x,m){let E=!0,L=v[0],S=v[1];if(n(x)&&n(m)){let w=Math.atan2(r(b-S,8),r(p-L,8));m!==x&&(E=x>m?w>=x&&w<=Math.PI||w<=m&&w>=-Math.PI:w>=x&&w<=r(m,8))}return Math.sqrt(Math.pow(p-L,2)+Math.pow(b-S,2))<=Math.ceil(v[2]/2)&&E}function c(p){this.polar&&(p.options.inverted&&([p.x,p.y]=[p.y,p.x]),p.isInsidePlot=this.pane.some(b=>h(p.x,p.y,b.center,b.axis&&b.axis.normalizedStartAngleRad,b.axis&&b.axis.normalizedEndAngleRad)))}function g(p){let b=this.chart;p.hoverPoint&&p.hoverPoint.plotX&&p.hoverPoint.plotY&&b.hoverPane&&!h(p.hoverPoint.plotX,p.hoverPoint.plotY,b.hoverPane.center)&&(p.hoverPoint=void 0)}function u(p){let b=this.chart;b.polar?(b.hoverPane=b.getHoverPane(p),p.filter=function(v){return v.visible&&!(!p.shared&&v.directTouch)&&l(v.options.enableMouseTracking,!0)&&(!b.hoverPane||v.xAxis.pane===b.hoverPane)}):b.hoverPane=void 0}return{compose:function(p,b){let v=p.prototype;v.getHoverPane||(v.collectionsWithUpdate.push("pane"),v.getHoverPane=a,i(p,"afterIsInsidePlot",c),i(b,"afterGetHoverData",g),i(b,"beforeGetHoverData",u))}}}),s(t,"Extensions/Pane/PaneDefaults.js",[],function(){return{pane:{center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},background:{shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}}}),s(t,"Extensions/Pane/Pane.js",[t["Series/CenteredUtilities.js"],t["Extensions/Pane/PaneComposition.js"],t["Extensions/Pane/PaneDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{extend:l,merge:a,splat:h}=n;class c{constructor(u,p){this.coll="pane",this.init(u,p)}init(u,p){this.chart=p,this.background=[],p.pane.push(this),this.setOptions(u)}setOptions(u){this.options=u=a(r.pane,this.chart.angular?{background:{}}:void 0,u)}render(){let u=this.options,p=this.chart.renderer;this.group||(this.group=p.g("pane-group").attr({zIndex:u.zIndex||0}).add()),this.updateCenter();let b=this.options.background;if(b){let v=Math.max((b=h(b)).length,this.background.length||0);for(let x=0;xd,w.y=w.high,w._plotY=w.plotY,w.plotY=C,F[S]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=R,D?O.align||(O.align=R?"right":"left"):O.verticalAlign||(O.verticalAlign=R?"top":"bottom")}for(this.options.dataLabels=O,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),S=P;S--;)(w=_[S])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=F[S],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(I.enabled||this.hasDataLabels?.()){for(S=P;S--;)if(w=_[S]){let{plotHigh:C=0,plotLow:d=0}=w;R=I.inside?Cd,w.below=!R,D?I.align||(I.align=R?"left":"right"):I.verticalAlign||(I.verticalAlign=R?"bottom":"top")}this.options.dataLabels=I,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(O.enabled)for(S=P;S--;)(w=_[S])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(C){return!!C}));this.options.dataLabels=A}}alignDataLabel(){c.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let S={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:w,lowMarker:R}}=this;this.options.marker=m(w,R),R.symbol&&(this.symbol=R.symbol)}return S}restoreMarkerSettings(S){this.options.marker=S.marker,this.symbol=S.symbol}drawPoints(){let S,w,R=this.points.length,O=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(O),S=0;S=0&&w.plotY<=this.yAxis.len&&w.plotX>=0&&w.plotX<=this.xAxis.len),S++;for(h.drawPoints.apply(this,arguments),S=0;S\u25CF {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),g(E,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(L=>{let S=L.high,w=L.plotY;L.isNull?L.plotY=void 0:(L.plotLow=w,L.plotHigh=v(S)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(S):S,!1,!0,void 0,!0):void 0,this.dataModify&&(L.yBottom=L.plotHigh))})},{order:0}),g(E,"afterTranslate",function(){this.points.forEach(L=>{if(this.chart.polar)this.highToXY(L),L.plotLow=L.plotY,L.tooltipPos=[((L.plotHighX||0)+(L.plotLowX||0))/2,((L.plotHigh||0)+(L.plotLow||0))/2];else{let S=L.pos(!1,L.plotLow),w=L.pos(!1,L.plotHigh);S&&w&&(S[0]=(S[0]+w[0])/2,S[1]=(S[1]+w[1])/2),L.tooltipPos=S}})},{order:3}),p(E.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:e,pointValKey:"low",setStackedPoints:l}),r.registerSeriesType("arearange",E),E}),s(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{spline:{prototype:n}}=i.seriesTypes,{merge:l,extend:a}=r;class h extends e{}return h.defaultOptions=l(e.defaultOptions),a(h.prototype,{getPointSpline:n.getPointSpline}),i.registerSeriesType("areasplinerange",h),h}),s(t,"Series/BoxPlot/BoxPlotSeriesDefaults.js",[],function(){return{threshold:null,tooltip:{pointFormat:'\u25CF {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}}),s(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/BoxPlot/BoxPlotSeriesDefaults.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{noop:a}=r,{crisp:h,extend:c,merge:g,pick:u}=l;class p extends i{pointAttribs(){return{}}translate(){let v=this.yAxis,x=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(m){x.forEach(function(E){m[E]!==null&&(m[E+"Plot"]=v.translate(m[E],0,1,0,1))}),m.plotHigh=m.highPlot})}drawPoints(){let v,x,m,E,L,S,w,R,O,I,_,P,F,A=this.points,D=this.options,C=this.chart,d=C.renderer,f=this.doQuartiles!==!1,y=this.options.whiskerLength;for(let M of A){let k=(R=M.graphic)?"animate":"attr",T=M.shapeArgs,z={},N={},G={},X={},j=M.color||this.color;if(M.plotY!==void 0){let B;O=T.width,_=(I=T.x)+O,P=O/2,v=f?M.q1Plot:M.lowPlot,x=f?M.q3Plot:M.lowPlot,m=M.highPlot,E=M.lowPlot,R||(M.graphic=R=d.g("point").add(this.group),M.stem=d.path().addClass("highcharts-boxplot-stem").add(R),y&&(M.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(R)),f&&(M.box=d.path(w).addClass("highcharts-boxplot-box").add(R)),M.medianShape=d.path(S).addClass("highcharts-boxplot-median").add(R)),C.styledMode||(N.stroke=M.stemColor||D.stemColor||j,N["stroke-width"]=u(M.stemWidth,D.stemWidth,D.lineWidth),N.dashstyle=M.stemDashStyle||D.stemDashStyle||D.dashStyle,M.stem.attr(N),y&&(G.stroke=M.whiskerColor||D.whiskerColor||j,G["stroke-width"]=u(M.whiskerWidth,D.whiskerWidth,D.lineWidth),G.dashstyle=M.whiskerDashStyle||D.whiskerDashStyle||D.dashStyle,M.whiskers.attr(G)),f&&(z.fill=M.fillColor||D.fillColor||j,z.stroke=D.lineColor||j,z["stroke-width"]=D.lineWidth||0,z.dashstyle=M.boxDashStyle||D.boxDashStyle||D.dashStyle,M.box.attr(z)),X.stroke=M.medianColor||D.medianColor||j,X["stroke-width"]=u(M.medianWidth,D.medianWidth,D.lineWidth),X.dashstyle=M.medianDashStyle||D.medianDashStyle||D.dashStyle,M.medianShape.attr(X));let W=h(M.plotX||0,M.stem.strokeWidth());if(B=[["M",W,x],["L",W,m],["M",W,v],["L",W,E]],M.stem[k]({d:B}),f){let Y=M.box.strokeWidth();v=h(v,Y),x=h(x,Y),B=[["M",I=h(I,Y),x],["L",I,v],["L",_=h(_,Y),v],["L",_,x],["L",I,x],["Z"]],M.box[k]({d:B})}if(y){let Y=M.whiskers.strokeWidth();m=h(M.highPlot,Y),E=h(M.lowPlot,Y),B=[["M",h(W-(F=typeof y=="string"&&/%$/.test(y)?P*parseFloat(y)/100:Number(y)/2)),m],["L",h(W+F),m],["M",h(W-F),E],["L",h(W+F),E]],M.whiskers[k]({d:B})}B=[["M",I,L=h(M.medianPlot,M.medianShape.strokeWidth())],["L",_,L]],M.medianShape[k]({d:B})}}}toYData(v){return[v.low,v.q1,v.median,v.q3,v.high]}}return p.defaultOptions=g(i.defaultOptions,e),c(p.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:a,setStackedPoints:a}),n.registerSeriesType("boxplot",p),p}),s(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),s(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:u,pick:p,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,m=p(v.options.itemDistance,20),E=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!g(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,P){return P.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,E.labelWidth=I+x+m,E.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,m=this.chart.series[x.seriesIndex],E=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=m.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=p(I.borderColor,x.borderColor,m.color),L.fill=p(I.color,x.color,R!==1?l(m.color).setOpacity(R).get("rgba"):m.color),S.stroke=p(I.connectorColor,x.connectorColor,m.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=u(v[_],{center:v[0].radius-v[_].radius+E}),O||u(!0,v[_],{bubbleAttribs:u(L),connectorAttribs:u(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,m=this.options.seriesIndex,E=this.chart.series[m],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return E.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,m=this.options.zThreshold;for(let E of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))E.value>=m&&this.renderRange(E);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],m=this.legend,E=this.options,L=E.labels,S=this.chart,w=S.series[E.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,P=Math.abs(v.radius),F=E.connectorDistance||0,A=L.align,D=m.options.rtl,C=E.borderWidth,d=E.connectorWidth,f=x.radius||0,y=_-P-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,T=D||A==="left"?-F:F;A==="center"&&(T=0,E.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(f,_+M,P).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(E.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",f,y],["L",f+T,y]],E.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(E.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(E.labels.className||"")).add(this.legendItem.symbol),N={x:f+T+E.labels.x,y:y+E.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(m){x=m.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,m=x.labels.formatter,E=x.labels.format,{numberFormatter:L}=this.chart;return E?i.format(E,v):m?m.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,m=this.symbols;!x&&m&&(v.hideOverlappingLabels(m.labels),m.labels.forEach(function(E,L){E.newOpacity?E.newOpacity!==E.oldOpacity&&m.connectors[L].show():m.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,m=v.options.ranges,E,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(g)).length&&(S=p(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=p(R.options.zMax,Math.max(w,h(L))))}),E=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],m.length&&m[0].radius&&E.reverse(),E.forEach(function(R,O){m&&m[O]&&(E[O]=u(m[O],R))}),E}predictBubbleSizes(){let v=this.chart,x=v.legend.options,m=x.floating,E=x.layout==="horizontal",L=E?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),P,F=R.options.maxSize;return m||!/%$/.test(F)?P=_:(P=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(E&&w-P>=S||!E&&S-P>=w)&&(P=_)),[I,Math.ceil(P)]}updateRanges(v,x){let m=this.legend.options.bubbleLegend;m.minSize=v,m.maxSize=x,m.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),s(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:g,pushUnique:u,wrap:p}=l;function b(S,w,R){let O,I,_,P=this.legend,F=v(this)>=0;P&&P.options.enabled&&P.bubbleLegend&&P.options.bubbleLegend.autoRanges&&F?(O=P.bubbleLegend.options,I=P.bubbleLegend.predictBubbleSizes(),P.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(P.group.placed=!1,P.allItems.forEach(A=>{(_=A.legendItem||{}).group&&(_.group.translateY=void 0)})),P.render(),O.placed||(this.getMargins(),this.axes.forEach(function(A){A.visible&&A.render(),O.placed||(A.setScale(),A.updateNames(),g(A.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),P.bubbleLegend.correctSizes(),L(P,x(P))):(S.call(this,w,R),P&&P.options.enabled&&P.bubbleLegend&&(P.render(),L(P,x(P))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[A].itemHeight);I.step=F}return R}function m(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new i(O,this),this.bubbleLegend.addToLegend(S.allItems))}function E(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,P,F,A=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((P=D.movementX)||O&&D.ranges)&&(P=O?I-D.options.maxSize/2:I+P,F.group.attr({translateX:P})),C>w[A].step&&A++,F.group.attr({translateY:Math.round(_+w[A].height/2)}),F.y=_+w[A].height/2)})}return{compose:function(S,w,R){u(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),p(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",m),c(R,"legendItemClick",E))}}}),s(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=i,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),s(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{parse:h}=r,{composed:c,noop:g}=n,{series:u,seriesTypes:{column:{prototype:p},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:m,clamp:E,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let P=this.len,{coll:F,isXAxis:A,min:D}=this,C=A?"xData":"yData",d=(this.max||0)-(D||0),f=0,y=P,M=P/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(T=>{if(T.bubblePadding&&T.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=T[C];if(A&&((T.onPoint||T).getRadii(0,0,T),T.onPoint&&(T.radii=T.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=T.radii&&T.radii[N]||0;f=Math.min((z[N]-D)*M-G,f),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=P,M*=(P+Math.max(0,f)-Math.min(y,P))/P,[["min","userMin",f],["max","userMax",y]].forEach(T=>{R(this.options[T[0]],this[T[1]])===void 0&&(this[T[0]]+=T[2]/M)})))}class _ extends b{static compose(F,A,D,C){e.compose(A,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),T=!0)}}),T?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/T)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,A){let D=super.markerAttribs(F,A),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,A){let D=this.options.marker.fillOpacity,C=u.prototype.pointAttribs.call(this,F,A);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:A,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let f=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(f.negative=(f.z||0)<(A.zThreshold||0)),S(y)&&y>=C/2?(f.marker=L(f.marker,{radius:y,width:2*y,height:2*y}),f.dlBox={x:f.plotX-y,y:f.plotY-y,width:2*y,height:2*y}):(f.shapeArgs=f.plotY=f.dlBox=void 0,f.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),A=d=>{let f;return typeof d=="string"&&(f=/%$/.test(d),d=parseInt(d,10)),f?F*d/100:d},D=A(R(this.options.minSize,8)),C=Math.max(A(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,A=(this.zData||[]).filter(S);if(A.length){let D=R(F.zMin,E(m(A),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(A));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:P}=this.series.chart,{z:F}=this.point;return S(F)?P(F,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),L(_.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:i,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",P=>{delete P.target.chart.bubbleZExtremes}),v(_,"remove",P=>{delete P.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),s(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{seriesTypes:{column:{prototype:{pointClass:{prototype:r}}},arearange:{prototype:{pointClass:n}}}}=e,{extend:l,isNumber:a}=i;class h extends n{isValid(){return a(this.low)}}return l(h.prototype,{setState:r.setState}),h}),s(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=i,{seriesTypes:{arearange:a,column:h,column:{prototype:c}}}=r,{addEvent:g,clamp:u,extend:p,isNumber:b,merge:v,pick:x}=n;class m extends a{setOptions(){return v(!0,arguments[0],{stacking:void 0}),a.prototype.setOptions.apply(this,arguments)}translate(){return c.translate.apply(this)}pointAttribs(){return c.pointAttribs.apply(this,arguments)}translate3dPoints(){return c.translate3dPoints.apply(this,arguments)}translate3dShapes(){return c.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let L,S,w,R,O=this.yAxis,I=this.xAxis,_=I.startAngleRad,P=this.chart,F=this.xAxis.isRadial,A=Math.max(P.chartWidth,P.chartHeight)+999;this.points.forEach(D=>{let C=D.shapeArgs||{},d=this.options.minPointLength,f=D.plotY,y=O.translate(D.high,0,1,0,1);if(b(y)&&b(f))if(D.plotHigh=u(y,-A,A),D.plotLow=u(f,-A,A),R=D.plotHigh,Math.abs(L=x(D.rectPlotY,D.plotY)-D.plotHigh)\u25CF {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),s(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{arearange:a}=n.seriesTypes,{addEvent:h,merge:c,extend:g}=l;class u extends e{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||i.prototype.getColumnMetrics.call(this)}drawDataLabels(){let b=this.pointValKey;if(a)for(let v of(a.prototype.drawDataLabels.call(this),this.points))v.y=v[b]}toYData(b){return[b.low,b.high]}}return u.defaultOptions=c(e.defaultOptions,r),h(u,"afterTranslate",function(){for(let p of this.points)p.plotLow=p.plotY},{order:0}),g(u.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),n.registerSeriesType("errorbar",u),u}),s(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{series:{prototype:{pointClass:i}}}=e;return class extends i{setState(r){this.state=r}}}),s(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=i,{series:a,seriesTypes:{column:h}}=r,{clamp:c,isNumber:g,extend:u,merge:p,pick:b,pInt:v,defined:x}=n;class m extends a{translate(){let L=this.yAxis,S=this.options,w=L.center;this.generatePoints(),this.points.forEach(R=>{let O=p(S.dial,R.dial),I=v(O.radius)*w[2]/200,_=v(O.baseLength)*I/100,P=v(O.rearLength)*I/100,F=O.baseWidth,A=O.topWidth,D=S.overshoot,C=L.startAngleRad+L.translate(R.y,void 0,void 0,void 0,!0);(g(D)||S.wrap===!1)&&(D=g(D)?D/180*Math.PI:0,C=c(C,L.startAngleRad-D,L.endAngleRad+D)),C=180*C/Math.PI,R.shapeType="path";let d=O.path||[["M",-P,-F/2],["L",_,-F/2],["L",I,-A/2],["L",I,A/2],["L",_,F/2],["L",-P,F/2],["Z"]];R.shapeArgs={d,translateX:w[0],translateY:w[1],rotation:C},R.plotX=w[0],R.plotY=w[1],x(R.y)&&L.max-L.min&&(R.percentage=(R.y-L.min)/(L.max-L.min)*100)})}drawPoints(){let L=this,S=L.chart,w=L.yAxis.center,R=L.pivot,O=L.options,I=O.pivot,_=S.renderer;L.points.forEach(P=>{let F=P.graphic,A=P.shapeArgs,D=A.d,C=p(O.dial,P.dial);F?(F.animate(A),A.d=D):P.graphic=_[P.shapeType](A).addClass("highcharts-dial").add(L.group),S.styledMode||P.graphic[F?"animate":"attr"]({stroke:C.borderColor,"stroke-width":C.borderWidth,fill:C.backgroundColor})}),R?R.animate({translateX:w[0],translateY:w[1]}):I&&(L.pivot=_.circle(0,0,I.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(w[0],w[1]).add(L.group),S.styledMode||L.pivot.attr({fill:I.backgroundColor,stroke:I.borderColor,"stroke-width":I.borderWidth}))}animate(L){let S=this;L||S.points.forEach(w=>{let R=w.graphic;R&&(R.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),R.animate({rotation:w.shapeArgs.rotation},S.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),a.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(L,S){a.prototype.setData.call(this,L,!1),this.processData(),this.generatePoints(),b(S,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return m.defaultOptions=p(a.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),u(m.prototype,{angular:!0,directTouch:!0,drawGraph:l,drawTracker:h.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:e,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",m),m}),s(t,"Series/DragNodesComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{composed:r}=e,{addEvent:n,pushUnique:l}=i;function a(){let h,c,g,u=this;u.container&&(h=n(u.container,"mousedown",p=>{let b=u.hoverPoint;b&&b.series&&b.series.hasDraggableNodes&&b.series.options.draggable&&(b.series.onMouseDown(b,p),c=n(u.container,"mousemove",v=>b&&b.series&&b.series.onMouseMove(b,v)),g=n(u.container.ownerDocument,"mouseup",v=>(c(),g(),b&&b.series&&b.series.onMouseUp(b,v))))})),n(u,"destroy",function(){h()})}return{compose:function(h){l(r,"DragNodes")&&n(h,"load",a)},onMouseDown:function(h,c){let g=this.chart.pointer?.normalize(c)||c;h.fixedPosition={chartX:g.chartX,chartY:g.chartY,plotX:h.plotX,plotY:h.plotY},h.inDragMode=!0},onMouseMove:function(h,c){if(h.fixedPosition&&h.inDragMode){let g,u,p=this.chart,b=p.pointer?.normalize(c)||c,v=h.fixedPosition.chartX-b.chartX,x=h.fixedPosition.chartY-b.chartY,m=p.graphLayoutsLookup;(Math.abs(v)>5||Math.abs(x)>5)&&(g=h.fixedPosition.plotX-v,u=h.fixedPosition.plotY-x,p.isInsidePlot(g,u)&&(h.plotX=g,h.plotY=u,h.hasDragged=!0,this.redrawHalo(h),m.forEach(E=>{E.restartSimulation()})))}},onMouseUp:function(h){h.fixedPosition&&(h.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),h.inDragMode=h.hasDragged=!1,this.options.fixedDraggable||delete h.fixedPosition)},redrawHalo:function(h){h&&this.halo&&this.halo.attr({d:h.haloPath(this.options.states.hover.halo.size)})}}}),s(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r){let{setAnimation:n}=e,{composed:l}=i,{addEvent:a,pushUnique:h}=r;function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation()}),this.redraw())}function g(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation(!1)}),this.redraw())}function u(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(b=>{b.stop()})}function p(){let b,v=!1,x=m=>{m.maxIterations--&&isFinite(m.temperature)&&!m.isStable()&&!m.enableSimulation&&(m.beforeStep&&m.beforeStep(),m.step(),b=!1,v=!0)};if(this.graphLayoutsLookup){for(n(!1,this),this.graphLayoutsLookup.forEach(m=>m.start());!b;)b=!0,this.graphLayoutsLookup.forEach(x);v&&this.series.forEach(m=>{m&&m.layout&&m.render()})}}return{compose:function(b){h(l,"GraphLayout")&&(a(b,"afterPrint",c),a(b,"beforePrint",g),a(b,"predraw",u),a(b,"render",p))},integrations:{},layouts:{}}}),s(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(e,i,r){let{seriesTypes:{bubble:{prototype:{pointClass:n}}}}=r;return class extends n{destroy(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),i.prototype.destroy.apply(this,arguments)}firePointEvent(){let l=this.series.options;if(this.isParentNode&&l.parentNode){let a=l.allowPointSelect;l.allowPointSelect=l.parentNode.allowPointSelect,i.prototype.firePointEvent.apply(this,arguments),l.allowPointSelect=a}else i.prototype.firePointEvent.apply(this,arguments)}select(){let l=this.series.chart;this.isParentNode?(l.getSelectedPoints=l.getSelectedParentNodes,i.prototype.select.apply(this,arguments),l.getSelectedPoints=e.prototype.getSelectedPoints):i.prototype.select.apply(this,arguments)}}}),s(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:i}=e;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return i(n)?r(n,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),s(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(e,i,r){let n=e.getMass(),l=-r.x*i*this.diffTemperature,a=-r.y*i*this.diffTemperature;e.fromNode.fixedPosition||(e.fromNode.plotX-=l*n.fromNode/e.fromNode.degree,e.fromNode.plotY-=a*n.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.plotX+=l*n.toNode/e.toNode.degree,e.toNode.plotY+=a*n.toNode/e.toNode.degree)},attractiveForceFunction:function(e,i){return(i-e)/e},barycenter:function(){let e=this.options.gravitationalConstant||0,i=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*e,r=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*e;this.nodes.forEach(function(n){n.fixedPosition||(n.plotX-=i/n.mass/n.degree,n.plotY-=r/n.mass/n.degree)})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.5)},integrate:function(e,i){let r=-e.options.friction,n=e.options.maxSpeed,l=i.prevX,a=i.prevY,h=(i.plotX+i.dispX-l)*r,c=(i.plotY+i.dispY-a)*r,g=Math.abs,u=g(h)/(h||1),p=g(c)/(c||1),b=u*Math.min(n,Math.abs(h)),v=p*Math.min(n,Math.abs(c));i.prevX=i.plotX+i.dispX,i.prevY=i.plotY+i.dispY,i.plotX+=b,i.plotY+=v,i.temperature=e.vectorLength({x:b,y:v})},repulsive:function(e,i,r){let n=i*this.diffTemperature/e.mass/e.degree;e.fixedPosition||(e.plotX+=r.x*n,e.plotY+=r.y*n)},repulsiveForceFunction:function(e,i){return(i-e)/e*(i>e?1:0)}}}),s(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(e,i){let{noop:r}=e;return{barycenter:function(){let n,l,a=this.options.gravitationalConstant,h=this.box,c=this.nodes;for(let g of c)this.options.splitSeries&&!g.isParentNode?(n=g.series.parentNode.plotX,l=g.series.parentNode.plotY):(n=h.width/2,l=h.height/2),g.fixedPosition||(g.plotX-=(g.plotX-n)*a/(g.mass*Math.sqrt(c.length)),g.plotY-=(g.plotY-l)*a/(g.mass*Math.sqrt(c.length)))},getK:r,integrate:i.integrate,repulsive:function(n,l,a,h){let c=l*this.diffTemperature/n.mass/n.degree,g=a.x*c,u=a.y*c;n.fixedPosition||(n.plotX+=g,n.plotY+=u),h.fixedPosition||(h.plotX-=g,h.plotY-=u)},repulsiveForceFunction:function(n,l,a,h){return Math.min(n,(a.marker.radius+h.marker.radius)/2)}}}),s(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(e,i,r,n){let l=e.getMass(),a=r.x/n*i,h=r.y/n*i;e.fromNode.fixedPosition||(e.fromNode.dispX-=a*l.fromNode/e.fromNode.degree,e.fromNode.dispY-=h*l.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.dispX+=a*l.toNode/e.toNode.degree,e.toNode.dispY+=h*l.toNode/e.toNode.degree)},attractiveForceFunction:function(e,i){return e*e/i},barycenter:function(){let e=this.options.gravitationalConstant,i=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(n){if(!n.fixedPosition){let l=n.getDegree(),a=l*(1+l/2);n.dispX+=(i-n.plotX)*e*a/n.degree,n.dispY+=(r-n.plotY)*e*a/n.degree}})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.3)},integrate:function(e,i){i.dispX+=i.dispX*e.options.friction,i.dispY+=i.dispY*e.options.friction;let r=i.temperature=e.vectorLength({x:i.dispX,y:i.dispY});r!==0&&(i.plotX+=i.dispX/r*Math.min(Math.abs(i.dispX),e.temperature),i.plotY+=i.dispY/r*Math.min(Math.abs(i.dispY),e.temperature))},repulsive:function(e,i,r,n){e.dispX+=r.x/n*i/e.degree,e.dispY+=r.y/n*i/e.degree},repulsiveForceFunction:function(e,i){return i*i/e}}}),s(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){class e{constructor(r){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=r,this.boxSize=Math.min(r.width,r.height)}divideBox(){let r=this.box.width/2,n=this.box.height/2;this.nodes[0]=new e({left:this.box.left,top:this.box.top,width:r,height:n}),this.nodes[1]=new e({left:this.box.left+r,top:this.box.top,width:r,height:n}),this.nodes[2]=new e({left:this.box.left+r,top:this.box.top+n,width:r,height:n}),this.nodes[3]=new e({left:this.box.left,top:this.box.top+n,width:r,height:n})}getBoxPosition(r){let n=r.plotXthis.step())):(this.simulation=!1,this.series.forEach(E=>{p(E,"afterSimulation")}))}}stop(){this.simulation&&h.cancelAnimationFrame(this.simulation)}setArea(m,E,L,S){this.box={left:m,top:E,width:L,height:S}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(m,E){for(let L of m)E.indexOf(L)===-1&&E.push(L)}removeElementFromCollection(m,E){let L=E.indexOf(m);L!==-1&&E.splice(L,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(m){this.maxIterations=b(m,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(m){this.initialRendering=m}createQuadTree(){this.quadTree=new n(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let m=this.options.initialPositions;if(u(m))for(let E of(m.call(this),this.nodes))g(E.prevX)||(E.prevX=E.plotX),g(E.prevY)||(E.prevY=E.plotY),E.dispX=0,E.dispY=0;else m==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let m,E=this.box,L=this.nodes,S=2*Math.PI/(L.length+1),w=L.filter(function(P){return P.linksTo.length===0}),R={},O=this.options.initialPositionRadius,I=P=>{for(let F of P.linksFrom||[])R[F.toNode.id]||(R[F.toNode.id]=!0,_.push(F.toNode),I(F.toNode))},_=[];for(let P of w)_.push(P),I(P);if(_.length)for(let P of L)_.indexOf(P)===-1&&_.push(P);else _=L;for(let P=0,F=_.length;P{let O=R*R/Math.PI;return O-Math.floor(O)};for(let R=0,O=L.length;Rthis.barnesHutApproximation(m,E));else{let m,E,L;for(let S of this.nodes)for(let w of this.nodes)S===w||S.fixedPosition||(L=this.getDistXY(S,w),(E=this.vectorLength(L))!==0&&(m=this.repulsiveForce(E,this.k),this.force("repulsive",S,m*w.mass,L,E)))}}attractiveForces(){let m,E,L;for(let S of this.links)S.fromNode&&S.toNode&&(m=this.getDistXY(S.fromNode,S.toNode),(E=this.vectorLength(m))!==0&&(L=this.attractiveForce(E,this.k),this.force("attractive",S,L,m,E)))}applyLimits(){for(let m of this.nodes)m.fixedPosition||(this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0)}applyLimitBox(m,E){let L=m.radius;m.plotX=c(m.plotX,E.left+L,E.width-L),m.plotY=c(m.plotY,E.top+L,E.height-L)}coolDown(m,E,L){return m-E*L}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let m=0;for(let E of this.nodes)m+=E.temperature;return m}vectorLength(m){return Math.sqrt(m.x*m.x+m.y*m.y)}getDistR(m,E){let L=this.getDistXY(m,E);return this.vectorLength(L)}getDistXY(m,E){let L=m.plotX-E.plotX,S=m.plotY-E.plotY;return{x:L,y:S,absX:Math.abs(L),absY:Math.abs(S)}}}return v}),s(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{addEvent:l,pick:a}=n;function h(){let u=this.series,p=[];return u.forEach(b=>{b.parentNode&&b.parentNode.selected&&p.push(b.parentNode)}),p}function c(){this.allDataPoints&&delete this.allDataPoints}class g extends r{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(p){r.compose(p),e.integrations.packedbubble=i,e.layouts.packedbubble=g;let b=p.prototype;b.getSelectedParentNodes||(l(p,"beforeRedraw",c),b.getSelectedParentNodes=h)}beforeStep(){this.options.marker&&this.series.forEach(p=>{p&&p.calculateParentRadius()})}isStable(){let p=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&p<1e-5||this.temperature<=0}setCircularPositions(){let p=this.box,b=this.nodes,v=2*Math.PI/(b.length+1),x=this.options.initialPositionRadius,m,E,L=0;for(let S of b)this.options.splitSeries&&!S.isParentNode?(m=S.series.parentNode.plotX,E=S.series.parentNode.plotY):(m=p.width/2,E=p.height/2),S.plotX=S.prevX=a(S.plotX,m+x*Math.cos(S.index||L*v)),S.plotY=S.prevY=a(S.plotY,E+x*Math.sin(S.index||L*v)),S.dispX=0,S.dispY=0,L++}repulsiveForces(){let p,b,v,x=this,m=x.options.bubblePadding,E=x.nodes;E.forEach(L=>{L.degree=L.mass,L.neighbours=0,E.forEach(S=>{p=0,L!==S&&!L.fixedPosition&&(x.options.seriesInteraction||L.series===S.series)&&(v=x.getDistXY(L,S),(b=x.vectorLength(v)-(L.marker.radius+S.marker.radius+m))<0&&(L.degree+=.01,L.neighbours++,p=x.repulsiveForce(-b/Math.sqrt(L.neighbours),x.k,L,S)),x.force("repulsive",L,p*S.mass,v,S,b))})})}applyLimitBox(p,b){let v,x;this.options.splitSeries&&!p.isParentNode&&this.options.parentNodeLimit&&(v=this.getDistXY(p,p.series.parentNode),(x=p.series.parentNodeRadius-p.marker.radius-this.vectorLength(v))<0&&x>-2*p.marker.radius&&(p.plotX-=.01*v.x,p.plotY-=.01*v.y)),super.applyLimitBox(p,b)}}return e.layouts.packedbubble=g,g}),s(t,"Series/SimulationSeriesUtilities.js",[t["Core/Utilities.js"],t["Core/Animation/AnimationUtilities.js"]],function(e,i){let{merge:r,syncTimeout:n}=e,{animObject:l}=i;return{initDataLabels:function(){let a=this.options.dataLabels;if(!this.dataLabelsGroup){let h=this.initDataLabelsGroup();return!this.chart.styledMode&&a?.style&&h.css(a.style),h.attr({opacity:0}),this.visible&&h.show(),h}return this.dataLabelsGroup.attr(r({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let a=this.options.dataLabels;a?.defer&&this.options.layoutAlgorithm?.enableSimulation?n(()=>{this.deferDataLabels=!1},a?l(a.animation).defer:0):this.deferDataLabels=!1}}}),s(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Series/SimulationSeriesUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,g,u){let{parse:p}=e,{noop:b}=n,{series:{prototype:v},seriesTypes:{bubble:x}}=c,{initDataLabels:m,initDataLabelsDefer:E}=g,{addEvent:L,clamp:S,defined:w,extend:R,fireEvent:O,isArray:I,isNumber:_,merge:P,pick:F}=u;class A extends x{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(C,d,f,y){x.compose(C,d,f,y),i.compose(d),h.compose(d)}accumulateAllPoints(){let C,d=this.chart,f=[];for(let y of d.series)if(y.is("packedbubble")&&y.reserveSpace()){C=y.yData||[];for(let M=0;M{T.mass=2,T.degree=1,T.collisionNmb=1}),k.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),k.addElementsToCollection([this],k.series),k.addElementsToCollection(this.points,k.nodes)}addSeriesLayout(){let C=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},d=C.type||"packedbubble",f=this.chart.graphLayoutsStorage,y=this.chart.graphLayoutsLookup,M=P(C,C.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),k=f[d+"-series"];k||(f[d+"-series"]=k=new r.layouts[d],k.init(M),y.splice(k.index,0,k)),this.parentNodeLayout=k,this.createParentNodes()}calculateParentRadius(){let C=this.seriesBox();this.parentNodeRadius=S(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,C?Math.max(Math.sqrt(Math.pow(C.width,2)+Math.pow(C.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let C=this.chart.series,d=this.options.zMin,f=this.options.zMax,y=1/0,M=-1/0;return d&&f?[d,f]:(C.forEach(k=>{k.yData.forEach(T=>{w(T)&&(T>M&&(M=T),T{this.parentNodeMass+=Math.PI*Math.pow(z.marker.radius,2)}),this.calculateParentRadius(),f.nodes.forEach(z=>{z.seriesIndex===this.index&&(M=!0)}),f.setArea(0,0,d.plotWidth,d.plotHeight),M||(k||(k=new C(this,{mass:this.parentNodeRadius/2,marker:T,dataLabels:{inside:!1},states:{normal:{marker:T},hover:{marker:T}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,f.addElementsToCollection([this],f.series),f.addElementsToCollection([k],f.nodes))}deferLayout(){let C=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),C.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(C=>{C.removeElementFromCollection(this,C.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),v.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(v.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",v.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let C=this.chart,d=this.layout.options.parentNodeOptions.marker,f={fill:d.fillColor||p(this.color).brighten(.4).get(),opacity:d.fillOpacity,stroke:d.lineColor||this.color,"stroke-width":F(d.lineWidth,this.options.lineWidth)},y={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,C.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&w(this.parentNode.plotX)&&w(this.parentNode.plotY)&&w(this.parentNodeRadius)&&(y=P({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},f),this.parentNode.graphic||(this.graph=this.parentNode.graphic=C.renderer.symbol(f.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(y))}drawTracker(){let C,d=this.parentNode;super.drawTracker(),d&&(C=I(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),C.forEach(f=>{(f.div||f.element).point=d}))}getPointRadius(){let C,d,f,y,M=this.chart,k=M.plotWidth,T=M.plotHeight,z=this.options,N=z.useSimulation,G=Math.min(k,T),X={},j=[],B=M.allDataPoints||[],W=B.length;["minSize","maxSize"].forEach(U=>{let q=parseInt(z[U],10),H=/%$/.test(z[U]);X[U]=H?G*q/100:q*Math.sqrt(W)}),M.minRadius=C=X.minSize/Math.sqrt(W),M.maxRadius=d=X.maxSize/Math.sqrt(W);let Y=N?this.calculateZExtremes():[C,d];B.forEach((U,q)=>{f=N?S(U[2],Y[0],Y[1]):U[2],(y=this.getRadius(Y[0],Y[1],C,d,f))===0&&(y=null),B[q][2]=y,j.push(y)}),this.radii=j}init(){return v.init.apply(this,arguments),E.call(this),this.eventsToUnbind.push(L(this,"updatedData",function(){this.chart.series.forEach(C=>{C.type===this.type&&(C.isDirty=!0)},this)})),this}onMouseUp(C){if(C.fixedPosition&&!C.removed){let d,f=this.layout,y=this.parentNodeLayout;y&&f.options.dragBetweenSeries&&y.nodes.forEach(M=>{C&&C.marker&&M!==C.series.parentNode&&(d=f.getDistXY(C,M),f.vectorLength(d)-M.marker.radius-C.marker.radius<0&&(M.series.addPoint(P(C.options,{plotX:C.plotX,plotY:C.plotY}),!1),f.removeElementFromCollection(C,f.nodes),C.remove()))}),i.onMouseUp.apply(this,arguments)}}placeBubbles(C){let d=this.checkOverlap,f=this.positionBubble,y=[],M=1,k=0,T=0,z,N=[],G,X=C.sort((j,B)=>B[2]-j[2]);if(X.length){if(y.push([[0,0,X[0][2],X[0][3],X[0][4]]]),X.length>1)for(y.push([[0,0-X[1][2]-X[0][2],X[1][2],X[1][3],X[1][4]]]),G=2;G1&&y[M-1][T+1]&&d(z,y[M-1][T+1])?(T++,y[M].push(f(y[M][k],y[M-1][T],X[G])),k++):(k++,y[M].push(z));this.chart.stages=y,this.chart.rawPositions=[].concat.apply([],y),this.resizeRadius(),N=this.chart.rawPositions}return N}pointAttribs(C,d){let f=this.options,y=C&&C.isParentNode,M=f.marker;y&&f.layoutAlgorithm&&f.layoutAlgorithm.parentNodeOptions&&(M=f.layoutAlgorithm.parentNodeOptions.marker);let k=M.fillOpacity,T=v.pointAttribs.call(this,C,d);return k!==1&&(T["fill-opacity"]=k),T}positionBubble(C,d,f){let y=Math.pow,M=(0,Math.sqrt)(y(C[0]-d[0],2)+y(C[1]-d[1],2)),k=(0,Math.acos)((y(M,2)+y(f[2]+d[2],2)-y(f[2]+C[2],2))/(2*(f[2]+d[2])*M)),T=(0,Math.asin)((0,Math.abs)(C[0]-d[0])/M),z=(C[1]-d[1]<0?0:Math.PI)+k+T*((C[0]-d[0])*(C[1]-d[1])<0?1:-1);return[d[0]+(d[2]+f[2])*Math.sin(z),d[1]-(d[2]+f[2])*Math.cos(z),f[2],f[3],f[4]]}render(){let C=[];v.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(d=>{I(d.dataLabels)&&d.dataLabels.forEach(f=>{C.push(f)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(C))}resizeRadius(){let C,d,f,y,M,k=this.chart,T=k.rawPositions,z=Math.min,N=Math.max,G=k.plotLeft,X=k.plotTop,j=k.plotHeight,B=k.plotWidth;for(let q of(C=f=Number.POSITIVE_INFINITY,d=y=Number.NEGATIVE_INFINITY,T))M=q[2],C=z(C,q[0]-M),d=N(d,q[0]+M),f=z(f,q[1]-M),y=N(y,q[1]+M);let W=[d-C,y-f],Y=[(B-G)/W[0],(j-X)/W[1]],U=z.apply([],Y);if(Math.abs(U-1)>1e-10){for(let q of T)q[2]*=U;this.placeBubbles(T)}else k.diffY=j/2+X-f-(y-f)/2,k.diffX=B/2+G-C-(d-C)/2}seriesBox(){let C,d=this.chart,f=this.data,y=Math.max,M=Math.min,k=[d.plotLeft,d.plotLeft+d.plotWidth,d.plotTop,d.plotTop+d.plotHeight];return f.forEach(T=>{w(T.plotX)&&w(T.plotY)&&T.marker.radius&&(C=T.marker.radius,k[0]=M(k[0],T.plotX-C),k[1]=y(k[1],T.plotX+C),k[2]=M(k[2],T.plotY-C),k[3]=y(k[3],T.plotY+C))}),_(k.width/k.height)?k:null}setVisible(){let C=this;v.setVisible.apply(C,arguments),C.parentNodeLayout&&C.graph?C.visible?(C.graph.show(),C.parentNode.dataLabel&&C.parentNode.dataLabel.show()):(C.graph.hide(),C.parentNodeLayout.removeElementFromCollection(C.parentNode,C.parentNodeLayout.nodes),C.parentNode.dataLabel&&C.parentNode.dataLabel.hide()):C.layout&&(C.visible?C.layout.addElementsToCollection(C.points,C.layout.nodes):C.points.forEach(d=>{C.layout.removeElementFromCollection(d,C.layout.nodes)}))}translate(){let C,d,f,y=this.chart,M=this.data,k=this.index,T=this.options.useSimulation;for(let z of(this.processedXData=this.xData,this.generatePoints(),w(y.allDataPoints)||(y.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),T?f=y.allDataPoints:(f=this.placeBubbles(y.allDataPoints),this.options.draggable=!1),f))z[3]===k&&(C=M[z[4]],d=F(z[2],void 0),T||(C.plotX=z[0]-y.plotLeft+y.diffX,C.plotY=z[1]-y.plotTop+y.diffY),_(d)&&(C.marker=R(C.marker,{radius:d,width:2*d,height:2*d}),C.radius=d));T&&this.deferLayout(),O(this,"afterTranslate")}}return A.defaultOptions=P(x.defaultOptions,a),R(A.prototype,{pointClass:l,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:m,alignDataLabel:v.alignDataLabel,indexateNodes:b,onMouseDown:i.onMouseDown,onMouseMove:i.onMouseMove,redrawHalo:i.redrawHalo,searchPoint:b}),c.registerSeriesType("packedbubble",A),A}),s(t,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),s(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Series/Polygon/PolygonSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=e,{area:a,line:h,scatter:c}=r.seriesTypes,{extend:g,merge:u}=n;class p extends c{getGraphPath(){let v=h.prototype.getGraphPath.call(this),x=v.length+1;for(;x--;)(x===v.length||v[x][0]==="M")&&x>0&&v.splice(x,0,["Z"]);return this.areaPath=v,v}drawGraph(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)}}return p.defaultOptions=u(c.defaultOptions,i),g(p.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:l}),r.registerSeriesType("polygon",p),p}),s(t,"Core/Axis/RadialAxisDefaults.js",[],function(){return{circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}}}),s(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/RadialAxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{defaultOptions:a}=i,{composed:h,noop:c}=r,{addEvent:g,correctFloat:u,defined:p,extend:b,fireEvent:v,isObject:x,merge:m,pick:E,pushUnique:L,relativeLength:S,wrap:w}=n;return function(R){function O(){this.autoConnect=this.isCircular&&E(this.userMax,this.options.max)===void 0&&u(this.endAngleRad-this.startAngleRad)===u(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function I(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(V=>this.ticks[V]&&this.ticks[V].label).filter(V=>!!V)}}function _(){return c}function P(V,Z,K){let J=this.pane.center,tt=V.value,$,Q,et;return this.isCircular?(p(tt)?V.point&&(V.point.shapeArgs||{}).start&&(tt=this.chart.inverted?this.translate(V.point.rectPlotY,!0):V.point.x):(Q=V.chartX||0,et=V.chartY||0,tt=this.translate(Math.atan2(et-K,Q-Z)-this.startAngleRad,!0)),Q=($=this.getPosition(tt)).x,et=$.y):(p(tt)||(Q=V.chartX,et=V.chartY),p(Q)&&p(et)&&(K=J[1]+this.chart.plotTop,tt=this.translate(Math.min(Math.sqrt(Math.pow(Q-Z,2)+Math.pow(et-K,2)),J[2]/2)-J[3]/2,!0))),[tt,Q||0,et||0]}function F(V,Z,K){let J=this.pane.center,tt=this.chart,$=this.left||0,Q=this.top||0,et,it=E(Z,J[2]/2-this.offset),st;return K===void 0&&(K=this.horiz?0:this.center&&-this.center[3]/2),K&&(it+=K),this.isCircular||Z!==void 0?((st=this.chart.renderer.symbols.arc($+J[0],Q+J[1],it,it,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[$+J[0]],st.yBounds=[Q+J[1]-it]):(et=this.postTranslate(this.angleRad,it),st=[["M",this.center[0]+tt.plotLeft,this.center[1]+tt.plotTop],["L",et.x,et.y]]),st}function A(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function D(V,Z,K){let J=this.chart,tt=Tt=>{if(typeof Tt=="string"){let zt=parseInt(Tt,10);return nt.test(Tt)&&(zt=zt*et/100),zt}return Tt},$=this.center,Q=this.startAngleRad,et=$[2]/2,it=Math.min(this.offset,0),st=this.left||0,rt=this.top||0,nt=/%$/,ot=this.isCircular,at,ct,ht,lt,xt,wt,dt=E(tt(K.outerRadius),et),Ct=tt(K.innerRadius),ft=E(tt(K.thickness),10);if(this.options.gridLineInterpolation==="polygon")wt=this.getPlotLinePath({value:V}).concat(this.getPlotLinePath({value:Z,reverse:!0}));else{V=Math.max(V,this.min),Z=Math.min(Z,this.max);let Tt=this.translate(V),zt=this.translate(Z);ot||(dt=Tt||0,Ct=zt||0),K.shape!=="circle"&&ot?(at=Q+(Tt||0),ct=Q+(zt||0)):(at=-Math.PI/2,ct=1.5*Math.PI,xt=!0),dt-=it,ft-=it,wt=J.renderer.symbols.arc(st+$[0],rt+$[1],dt,dt,{start:Math.min(at,ct),end:Math.max(at,ct),innerR:E(Ct,dt-ft),open:xt,borderRadius:K.borderRadius}),ot&&(ht=(ct+at)/2,lt=st+$[0]+$[2]/2*Math.cos(ht),wt.xBounds=ht>-Math.PI/2&&ht-Math.PI&&ht<0||ht>Math.PI?-10:10)}return wt}function C(V){let Z=this.pane.center,K=this.chart,J=K.inverted,tt=V.reverse,$=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},Q=$.innerRadius||"0%",et=$.outerRadius||"100%",it=Z[0]+K.plotLeft,st=Z[1]+K.plotTop,rt=this.height,nt=V.isCrosshair,ot=Z[3]/2,at=V.value,ct,ht,lt,xt,wt,dt,Ct,ft,Tt,zt=this.getPosition(at),pe=zt.x,ee=zt.y;if(nt&&(at=(ft=this.getCrosshairPosition(V,it,st))[0],pe=ft[1],ee=ft[2]),this.isCircular)ht=Math.sqrt(Math.pow(pe-it,2)+Math.pow(ee-st,2)),lt=typeof Q=="string"?S(Q,1):Q/ht,xt=typeof et=="string"?S(et,1):et/ht,Z&&ot&&(lt<(ct=ot/ht)&&(lt=ct),xtrt)&&(at=0),this.options.gridLineInterpolation==="circle")Tt=this.getLinePath(0,at,ot);else if(Tt=[],K[J?"yAxis":"xAxis"].forEach(we=>{we.pane===this.pane&&(wt=we)}),wt){Ct=wt.tickPositions,wt.autoConnect&&(Ct=Ct.concat([Ct[0]])),tt&&(Ct=Ct.slice().reverse()),at&&(at+=ot);for(let we=0;weMath.PI&&(it-=$),st>Math.PI&&(st-=$),this.normalizedStartAngleRad=it,this.normalizedEndAngleRad=st}}function k(V){this.isRadial&&(V.align=void 0,V.preventDefault())}function T(){if(this.chart&&this.chart.labelCollectors){let V=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;V>=0&&this.chart.labelCollectors.splice(V,1)}}function z(V){let Z,K=this.chart,J=K.angular,tt=K.polar,$=this.isXAxis,Q=this.coll,et=V.userOptions.pane||0,it=this.pane=K.pane&&K.pane[et];if(Q==="colorAxis"){this.isRadial=!1;return}J?(J&&$?(this.isHidden=!0,this.createLabelCollector=_,this.getOffset=c,this.redraw=W,this.render=W,this.setScale=c,this.setCategories=c,this.setTitle=c):y(this),Z=!$):tt&&(y(this),Z=this.horiz),J||tt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&K.labelCollectors.push(this.labelCollector)):this.isRadial=!1,it&&Z&&(it.axis=this),this.isCircular=Z}function N(){this.isRadial&&this.beforeSetTickPositions()}function G(V){let Z=this.label;if(!Z)return;let K=this.axis,J=Z.getBBox(),tt=K.options.labels,$=(K.translate(this.pos)+K.startAngleRad+Math.PI/2)/Math.PI*180%360,Q=Math.round($),et=p(tt.y)?0:-(.3*J.height),it=tt.y,st,rt=20,nt=tt.align,ot="end",at=Q<0?Q+360:Q,ct=at,ht=0,lt=0;K.isRadial&&(st=K.getPosition(this.pos,K.center[2]/2+S(E(tt.distance,-25),K.center[2]/2,-K.center[2]/2)),tt.rotation==="auto"?Z.attr({rotation:$}):p(it)||(it=K.chart.renderer.fontMetrics(Z).b-J.height/2),p(nt)||(K.isCircular?(J.width>K.len*K.tickInterval/(K.max-K.min)&&(rt=0),nt=$>rt&&$<180-rt?"left":$>180+rt&&$<360-rt?"right":"center"):nt="center",Z.attr({align:nt})),nt==="auto"&&K.tickPositions.length===2&&K.isCircular&&(at>90&&at<180?at=180-at:at>270&&at<=360&&(at=540-at),ct>180&&ct<=360&&(ct=360-ct),(K.pane.options.startAngle===Q||K.pane.options.startAngle===Q+360||K.pane.options.startAngle===Q-360)&&(ot="start"),nt=Q>=-90&&Q<=90||Q>=-360&&Q<=-270||Q>=270&&Q<=360?ot==="start"?"right":"left":ot==="start"?"left":"right",ct>70&&ct<110&&(nt="center"),at<15||at>=180&&at<195?ht=.3*J.height:at>=15&&at<=35?ht=ot==="start"?0:.75*J.height:at>=195&&at<=215?ht=ot==="start"?.75*J.height:0:at>35&&at<=90?ht=ot==="start"?-(.25*J.height):J.height:at>215&&at<=270&&(ht=ot==="start"?J.height:-(.25*J.height)),ct<15?lt=ot==="start"?-(.15*J.height):.15*J.height:ct>165&&ct<=180&&(lt=ot==="start"?.15*J.height:-(.15*J.height)),Z.attr({align:nt}),Z.translate(lt,ht+et)),V.pos.x=st.x+(tt.x||0),V.pos.y=st.y+(it||0))}function X(V){this.axis.getPosition&&b(V.pos,this.axis.getPosition(this.pos))}function j({options:V}){V.xAxis&&m(!0,R.radialDefaultOptions.circular,V.xAxis),V.yAxis&&m(!0,R.radialDefaultOptions.radialGauge,V.yAxis)}function B(V,Z){let K=this.chart,J=this.center;return V=this.startAngleRad+V,{x:K.plotLeft+J[0]+Math.cos(V)*Z,y:K.plotTop+J[1]+Math.sin(V)*Z}}function W(){this.isDirty=!1}function Y(){let V,Z;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),V=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(Z=this.postTranslate(this.angleRad,V[3]/2),V[0]=Z.x-this.chart.plotLeft,V[1]=Z.y-this.chart.plotTop),this.len=this.width=this.height=(V[2]-V[3])*E(this.sector,1)/2)}function U(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function q(V){let{coll:Z}=this,{angular:K,inverted:J,polar:tt}=this.chart,$={};K?this.isXAxis||($=m(a.yAxis,R.radialDefaultOptions.radialGauge)):tt&&($=this.horiz?m(a.xAxis,R.radialDefaultOptions.circular):m(Z==="xAxis"?a.xAxis:a.yAxis,R.radialDefaultOptions.radial)),J&&Z==="yAxis"&&($.stackLabels=x(a.yAxis,!0)?a.yAxis.stackLabels:{},$.reversedStacks=!0);let Q=this.options=m($,V);Q.plotBands||(Q.plotBands=[]),v(this,"afterSetOptions")}function H(V,Z,K,J,tt,$,Q){let et,it=this.axis;return it.isRadial?["M",Z,K,"L",(et=it.getPosition(this.pos,it.center[2]/2+J)).x,et.y]:V.call(this,Z,K,J,tt,$,Q)}R.radialDefaultOptions=m(e),R.compose=function(V,Z){return L(h,"Axis.Radial")&&(g(V,"afterInit",M),g(V,"autoLabelAlign",k),g(V,"destroy",T),g(V,"init",z),g(V,"initialAxisTranslation",N),g(Z,"afterGetLabelPosition",G),g(Z,"afterGetPosition",X),g(r,"setOptions",j),w(Z.prototype,"getMarkPath",H)),V}}(l||(l={})),l}),s(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Extensions/Pane/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{animObject:h}=e,{composed:c}=i,{addEvent:g,defined:u,find:p,isNumber:b,merge:v,pick:x,pushUnique:m,relativeLength:E,splat:L,uniqueKey:S,wrap:w}=a;function R(){(this.pane||[]).forEach(j=>{j.render()})}function O(j){let B=j.args[0].xAxis,W=j.args[0].yAxis,Y=j.args[0].chart;B&&W&&(W.gridLineInterpolation==="polygon"?(B.startOnTick=!0,B.endOnTick=!0):B.gridLineInterpolation==="polygon"&&Y.inverted&&(W.startOnTick=!0,W.endOnTick=!0))}function I(){this.pane||(this.pane=[]),this.options.pane=L(this.options.pane),this.options.pane.forEach(j=>{new n(j,this)},this)}function _(j){let B=j.args.marker,W=this.chart.xAxis[0],Y=this.chart.yAxis[0],U=this.chart.inverted,q=U?Y:W,H=U?W:Y;if(this.chart.polar){j.preventDefault();let V=(B.attr?B.attr("start"):B.start)-q.startAngleRad,Z=B.attr?B.attr("r"):B.r,K=(B.attr?B.attr("end"):B.end)-q.startAngleRad,J=B.attr?B.attr("innerR"):B.innerR;j.result.x=V+q.pos,j.result.width=K-V,j.result.y=H.len+H.pos-Z,j.result.height=Z-J}}function P(j){let B=this.chart;if(B.polar&&B.hoverPane&&B.hoverPane.axis){j.preventDefault();let W=B.hoverPane.center,Y=B.mouseDownX||0,U=B.mouseDownY||0,q=j.args.chartY,H=j.args.chartX,V=2*Math.PI,Z=B.hoverPane.axis.startAngleRad,K=B.hoverPane.axis.endAngleRad,J=B.inverted?B.xAxis[0]:B.yAxis[0],tt={},$="arc";if(tt.x=W[0]+B.plotLeft,tt.y=W[1]+B.plotTop,this.zoomHor){let Q=Z>0?K-Z:Math.abs(Z)+Math.abs(K),et=Math.atan2(U-B.plotTop-W[1],Y-B.plotLeft-W[0])-Z,it=Math.atan2(q-B.plotTop-W[1],H-B.plotLeft-W[0])-Z;tt.r=W[2]/2,tt.innerR=W[3]/2,et<=0&&(et+=V),it<=0&&(it+=V),itK+(V-Q)/2&&(it=et,et=Z<=0?Z:0);let st=tt.start=Math.max(et+Z,Z),rt=tt.end=Math.min(it+Z,K);if(J.options.gridLineInterpolation==="polygon"){let nt=B.hoverPane.axis,ot=st-nt.startAngleRad+nt.pos,at=J.getPlotLinePath({value:J.max}),ct=nt.toValue(ot),ht=nt.toValue(ot+(rt-st));if(ctW[2]/2&&(it=W[2]/2),etj.max?(Y[U].isNull=!0,Y[U].plotY=NaN):Y[U].isNull=Y[U].isValid&&!Y[U].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(g(this,"afterRender",function(){let q;W.polar&&this.options.clip!==!1&&(q=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:q[0],y:q[1],r:q[2]/2,innerR:q[3]/2}):this.clipCircle=function(H,V,Z,K,J){let tt=S(),$=H.createElement("clipPath").attr({id:tt}).add(H.defs),Q=J?H.arc(V,Z,K,J,0,2*Math.PI).add($):H.circle(V,Z,K).add($);return Q.id=tt,Q.clipPath=$,Q}(W.renderer,q[0],q[1],q[2]/2,q[3]/2),this.group.clip(this.clipCircle),this.setClip=i.noop)})))}}function D(j){let B=this.chart,W=this.xAxis,Y=this.yAxis,U=W.pane&&W.pane.center,q=j.chartX-(U&&U[0]||0)-B.plotLeft,H=j.chartY-(U&&U[1]||0)-B.plotTop,V=B.inverted?{clientX:j.chartX-Y.pos,plotY:j.chartY-W.pos}:{clientX:180+-180/Math.PI*Math.atan2(q,H)};return this.searchKDTree(V)}function C(j,B,W,Y){let U=Y.tickInterval,q=Y.tickPositions,H=p(q,Z=>Z>=W),V=p([...q].reverse(),Z=>Z<=B);return u(H)||(H=q[q.length-1]),u(V)||(V=q[0],H+=U,j[0][0]="L",j.unshift(j[j.length-3])),(j=j.slice(q.indexOf(V),q.indexOf(H)+1))[0][0]="M",j}function d(j,B){return p(this.pane||[],W=>W.options.id===B)||j.call(this,B)}function f(j,B,W,Y,U,q){let H,V,Z,K=this.chart,J=x(Y.inside,!!this.options.stacking);if(K.polar){if(H=B.rectPlotX/Math.PI*180,K.inverted)this.forceDL=K.isInsidePlot(B.plotX,B.plotY),J&&B.shapeArgs?(V=B.shapeArgs,U=v(U,{x:(Z=this.yAxis.postTranslate(((V.start||0)+(V.end||0))/2-this.xAxis.startAngleRad,B.barX+B.pointWidth/2)).x-K.plotLeft,y:Z.y-K.plotTop})):B.tooltipPos&&(U=v(U,{x:B.tooltipPos[0],y:B.tooltipPos[1]})),Y.align=x(Y.align,"center"),Y.verticalAlign=x(Y.verticalAlign,"middle");else{var tt;let $,Q;(tt=Y).align===null&&($=H>20&&H<160?"left":H>200&&H<340?"right":"center",tt.align=$),tt.verticalAlign===null&&(Q=H<45||H>315?"bottom":H>135&&H<225?"top":"middle",tt.verticalAlign=Q),Y=tt}r.prototype.alignDataLabel.call(this,B,W,Y,U,q),this.isRadialBar&&B.shapeArgs&&B.shapeArgs.start===B.shapeArgs.end?W.hide():W.show()}else j.call(this,B,W,Y,U,q)}function y(){let j=this.options,B=j.stacking,W=this.chart,Y=this.xAxis,U=this.yAxis,q=U.reversed,H=U.center,V=Y.startAngleRad,Z=Y.endAngleRad-V,K=j.threshold,J=0,tt,$,Q,et,it,st=0,rt=0,nt,ot,at,ct,ht,lt,xt,wt;if(Y.isRadial)for(Q=(tt=this.points).length,et=U.translate(U.min),it=U.translate(U.max),K=j.threshold||0,W.inverted&&b(K)&&u(J=U.translate(K))&&(J<0?J=0:J>Z&&(J=Z),this.translatedThreshold=J+V);Q--;){if(lt=($=tt[Q]).barX,ot=$.x,at=$.y,$.shapeType="arc",W.inverted){$.plotY=U.translate(at),B&&U.stacking?(ht=U.stacking.stacks[(at<0?"-":"")+this.stackKey],this.visible&&ht&&ht[ot]&&!$.isNull&&(ct=ht[ot].points[this.getStackIndicator(void 0,ot,this.index).key],st=U.translate(ct[0]),rt=U.translate(ct[1]),u(st)&&(st=a.clamp(st,0,Z)))):(st=J,rt=$.plotY),st>rt&&(rt=[st,st=rt][0]),q?rt>et?rt=et:stet||rtit?rt=it:(rtit)&&(st=rt=0),U.min>U.max&&(st=rt=q?Z:0),st+=V,rt+=V,H&&($.barX=lt+=H[3]/2),xt=Math.max(lt,0),wt=Math.max(lt+$.pointWidth,0);let dt=j.borderRadius,Ct=E((typeof dt=="object"?dt.radius:dt)||0,wt-xt);$.shapeArgs={x:H[0],y:H[1],r:wt,innerR:xt,start:st,end:rt,borderRadius:Ct},$.opacity=st===rt?0:void 0,$.plotY=(u(this.translatedThreshold)&&(stH[1])}}function M(j,B){let W,Y,U=this;if(this.chart.polar){B=B||this.points;for(let H=0;H{H.polarPlotY===void 0&&U.polar.toXY(H)})}let q=j.apply(this,[].slice.call(arguments,1));return Y&&B.pop(),q}function k(j,B){let W=this.chart,Y={xAxis:[],yAxis:[]};return W.polar?W.axes.forEach(U=>{if(U.coll==="colorAxis")return;let q=U.isXAxis,H=U.center,V=B.chartX-H[0]-W.plotLeft,Z=B.chartY-H[1]-W.plotTop;Y[q?"xAxis":"yAxis"].push({axis:U,value:U.translate(q?Math.PI-Math.atan2(V,Z):Math.sqrt(Math.pow(V,2)+Math.pow(Z,2)),!0)})}):Y=j.call(this,B),Y}function T(j,B){this.chart.polar||j.call(this,B)}function z(j,B){let W=this,Y=this.chart,U=this.group,q=this.markerGroup,H=this.xAxis&&this.xAxis.center,V=Y.plotLeft,Z=Y.plotTop,K=this.options.animation,J,tt,$,Q,et,it;Y.polar?W.isRadialBar?B||(W.startAngleRad=x(W.translatedThreshold,W.xAxis.startAngleRad),i.seriesTypes.pie.prototype.animate.call(W,B)):(K=h(K),W.is("column")?B||(tt=H[3]/2,W.points.forEach(st=>{$=st.graphic,et=(Q=st.shapeArgs)&&Q.r,it=Q&&Q.innerR,$&&Q&&($.attr({r:tt,innerR:tt}),$.animate({r:et,innerR:it},W.options.animation))})):B?(J={translateX:H[0]+V,translateY:H[1]+Z,scaleX:.001,scaleY:.001},U.attr(J),q&&q.attr(J)):(J={translateX:V,translateY:Z,scaleX:1,scaleY:1},U.animate(J,K),q&&q.animate(J,K))):j.call(this,B)}function N(j,B,W,Y){let U,q;if(this.chart.polar)if(Y){let H=(q=function Z(K,J,tt,$){let Q,et,it,st,rt,nt,ot=$?1:0,at=(Q=J>=0&&J<=K.length-1?J:J<0?K.length-1+J:0)-1<0?K.length-(1+ot):Q-1,ct=Q+1>K.length-1?ot:Q+1,ht=K[at],lt=K[ct],xt=ht.plotX,wt=ht.plotY,dt=lt.plotX,Ct=lt.plotY,ft=K[Q].plotX,Tt=K[Q].plotY;et=(1.5*ft+xt)/2.5,it=(1.5*Tt+wt)/2.5,st=(1.5*ft+dt)/2.5,rt=(1.5*Tt+Ct)/2.5;let zt=Math.sqrt(Math.pow(et-ft,2)+Math.pow(it-Tt,2)),pe=Math.sqrt(Math.pow(st-ft,2)+Math.pow(rt-Tt,2)),ee=Math.atan2(it-Tt,et-ft);nt=Math.PI/2+(ee+Math.atan2(rt-Tt,st-ft))/2,Math.abs(ee-nt)>Math.PI/2&&(nt-=Math.PI),et=ft+Math.cos(nt)*zt,it=Tt+Math.sin(nt)*zt;let we={rightContX:st=ft+Math.cos(Math.PI+nt)*pe,rightContY:rt=Tt+Math.sin(Math.PI+nt)*pe,leftContX:et,leftContY:it,plotX:ft,plotY:Tt};return tt&&(we.prevPointCont=Z(K,at,!1,$)),we}(B,Y,!0,this.connectEnds)).prevPointCont&&q.prevPointCont.rightContX,V=q.prevPointCont&&q.prevPointCont.rightContY;U=["C",b(H)?H:q.plotX,b(V)?V:q.plotY,b(q.leftContX)?q.leftContX:q.plotX,b(q.leftContY)?q.leftContY:q.plotY,q.plotX,q.plotY]}else U=["M",W.plotX,W.plotY];else U=j.call(this,B,W,Y);return U}function G(j,B,W=this.plotY){if(!this.destroyed){let{plotX:Y,series:U}=this,{chart:q}=U;return q.polar&&b(Y)&&b(W)?[Y+(B?q.plotLeft:0),W+(B?q.plotTop:0)]:j.call(this,B,W)}}class X{static compose(B,W,Y,U,q,H,V,Z,K,J){if(n.compose(W,Y),l.compose(B,q),m(c,"Polar")){let tt=W.prototype,$=H.prototype,Q=Y.prototype,et=U.prototype;if(g(W,"afterDrawChartBox",R),g(W,"getAxes",I),g(W,"init",O),w(tt,"get",d),w(Q,"getCoordinates",k),w(Q,"pinch",T),g(Y,"getSelectionMarkerAttrs",P),g(Y,"getSelectionBox",_),g(U,"afterInit",F),g(U,"afterTranslate",A,{order:2}),g(U,"afterColumnTranslate",y,{order:4}),w(et,"animate",z),w($,"pos",G),Z){let it=Z.prototype;w(it,"alignDataLabel",f),w(it,"animate",z)}if(K&&w(K.prototype,"getGraphPath",M),J){let it=J.prototype;w(it,"getPointSpline",N),V&&(V.prototype.getPointSpline=it.getPointSpline)}}}constructor(B){this.series=B}arc(B,W,Y,U){let q=this.series,H=q.xAxis.center,V=q.yAxis.len,Z=H[3]/2,K=V-W+Z,J=V-x(B,V)+Z;return q.yAxis.reversed&&(K<0&&(K=Z),J<0&&(J=Z)),{x:H[0],y:H[1],r:K,innerR:J,start:Y,end:U}}toXY(B){let W=this.series,Y=W.chart,U=W.xAxis,q=W.yAxis,H=B.plotX,V=Y.inverted,Z=B.y,K=B.plotY,J=V?H:q.len-K,tt;if(V&&W&&!W.isRadialBar&&(B.plotY=K=b(Z)?q.translate(Z):0),B.rectPlotX=H,B.rectPlotY=K,q.center&&(J+=q.center[3]/2),b(K)){let $=V?q.postTranslate(K,J):U.postTranslate(H,J);B.plotX=B.polarPlotX=$.x-Y.plotLeft,B.plotY=B.polarPlotY=$.y-Y.plotTop}W.kdByAngle?((tt=(H/Math.PI*180+U.pane.options.startAngle)%360)<0&&(tt+=360),B.clientX=tt):B.clientX=B.plotX}}return X}),s(t,"Core/Axis/WaterfallAxis.js",[t["Core/Globals.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{composed:l}=e,{addEvent:a,objectEach:h,pushUnique:c}=r;return function(g){function u(){let m=this.waterfall.stacks;m&&(m.changed=!1,delete m.alreadyChanged)}function p(){let m=this.options.stackLabels;m&&m.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function b(){this.waterfall||(this.waterfall=new x(this))}function v(){let m=this.axes;for(let E of this.series)if(E.options.stacking){for(let L of m)L.isXAxis||(L.waterfall.stacks.changed=!0);break}}g.compose=function(m,E){c(l,"Axis.Waterfall")&&(a(m,"init",b),a(m,"afterBuildStacks",u),a(m,"afterRender",p),a(E,"beforeRedraw",v))};class x{constructor(E){this.axis=E,this.stacks={changed:!1}}renderStackTotals(){let E=this.axis,L=E.waterfall.stacks,S=E.stacking&&E.stacking.stackTotalGroup,w=new i(E,E.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=w,S&&h(L,R=>{h(R,(O,I)=>{w.total=O.stackTotal,w.x=+I,O.label&&(w.label=O.label),i.prototype.render.call(w,S),O.label=w.label,delete w.label})}),w.total=null}}g.Composition=x}(n||(n={})),n}),s(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(e,i,r){let{isNumber:n}=r;class l extends e.prototype.pointClass{getClassName(){let h=i.prototype.getClassName.call(this);return this.isSum?h+=" highcharts-sum":this.isIntermediateSum&&(h+=" highcharts-intermediate-sum"),h}isValid(){return n(this.y)||this.isSum||!!this.isIntermediateSum}}return l}),s(t,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),s(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"],t["Series/Waterfall/WaterfallSeriesDefaults.js"]],function(e,i,r,n,l){let{column:a,line:h}=e.seriesTypes,{addEvent:c,arrayMax:g,arrayMin:u,correctFloat:p,crisp:b,extend:v,isNumber:x,merge:m,objectEach:E,pick:L}=i;function S(R,O){return Object.hasOwnProperty.call(R,O)}class w extends a{generatePoints(){a.prototype.generatePoints.apply(this);for(let O=0,I=this.points.length;O0?_:void 0);let P=a.prototype.pointAttribs.call(this,O,I);return delete P.dashstyle,P}getGraphPath(){return[["M",0,0]]}getCrispPath(){let O=this.data.filter(d=>x(d.y)),I=this.yAxis,_=O.length,P=this.graph?.strokeWidth()||0,F=this.xAxis.reversed,A=this.yAxis.reversed,D=this.options.stacking,C=[];for(let d=1;d<_;d++){if(!(this.options.connectNulls||x(this.data[O[d].index-1].y)))continue;let f=O[d].box,y=O[d-1],M=y.y||0,k=O[d-1].box;if(!f||!k)continue;let T=I.waterfall.stacks[this.stackKey],z=M>0?-k.height:0;if(T&&k&&f){let N,G=T[d-1];if(D){let X=G.connectorThreshold;N=b(I.translate(X,!1,!0,!1,!0)+(A?z:0),P)}else N=b(k.y+(y.minPointLengthOffset||0),P);C.push(["M",(k.x||0)+(F?0:k.width||0),N],["L",(f.x||0)+(F&&f.width||0),N])}if(k&&C.length&&(!D&&M<0&&!A||M>0&&A)){let N=C[C.length-2];N&&typeof N[2]=="number"&&(N[2]+=k.height||0);let G=C[C.length-1];G&&typeof G[2]=="number"&&(G[2]+=k.height||0)}}return C}drawGraph(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(O){let I=this.options,_=O.waterfall?.stacks,P=I.threshold||0,F=this.stackKey,A=this.xData,D=A.length,C=P,d=C,f,y=0,M=0,k=0,T,z,N,G,X,j,B,W,Y=(U,q,H,V)=>{if(f){if(T)for(;HB.indexOf(F)&&(W=!0),_[F]||(_[F]={});let U=_[F];if(U)for(let q=0;q=0?f.posTotal+=X:f.negTotal+=X,G=I.data[q],z=f.absolutePos=f.posTotal,N=f.absoluteNeg=f.negTotal,f.stackTotal=z+N,T=f.stackState.length,G&&G.isIntermediateSum?(Y(k,M,0,k),k=M,M=P,C^=d,d^=C,C^=d):G&&G.isSum?(Y(P,y,T,0),C=P):(Y(C,X,0,y),G&&(y+=X,M+=X)),f.stateIndex++,f.threshold=C,C+=f.stackTotal;_.changed=!1,_.alreadyChanged||(_.alreadyChanged=[]),_.alreadyChanged.push(F)}}getExtremes(){let O,I,_,P=this.options.stacking;return P?(O=this.yAxis.waterfall.stacks,I=this.stackedYNeg=[],_=this.stackedYPos=[],P==="overlap"?E(O[this.stackKey],function(F){I.push(u(F.stackState)),_.push(g(F.stackState))}):E(O[this.stackKey],function(F){I.push(F.negTotal+F.threshold),_.push(F.posTotal+F.threshold)}),{dataMin:u(I),dataMax:g(_)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return w.defaultOptions=m(a.defaultOptions,l),w.compose=r.compose,v(w.prototype,{pointValKey:"y",showLine:!0,pointClass:n}),c(w,"afterColumnTranslate",function(){let{options:R,points:O,yAxis:I}=this,_=L(R.minPointLength,5),P=_/2,F=R.threshold||0,A=R.stacking,D=I.waterfall.stacks[this.stackKey],C=F,d=F,f,y,M,k;for(let T=0;T=0?y:y-j,S(Y,"absolutePos")&&delete Y.absolutePos,S(Y,"absoluteNeg")&&delete Y.absoluteNeg):(j>=0?(y=Y.threshold+Y.posTotal,Y.posTotal-=j,f=y):(y=Y.threshold+Y.negTotal,Y.negTotal-=j,f=y-j),!Y.posTotal&&x(Y.absolutePos)&&S(Y,"absolutePos")&&(Y.posTotal=Y.absolutePos,delete Y.absolutePos),!Y.negTotal&&x(Y.absoluteNeg)&&S(Y,"absoluteNeg")&&(Y.negTotal=Y.absoluteNeg,delete Y.absoluteNeg)),z.isSum||(Y.connectorThreshold=Y.threshold+Y.stackTotal),I.reversed?(M=j>=0?f-j:f+j,k=f):(M=f,k=f-j),z.below=M<=F,G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-I.translate(k,!1,!0,!1,!0));let U=I.waterfall.dummyStackItem;U&&(U.x=T,U.label=D[T].label,U.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[T],this.stackedYPos[T],void 0,this.xAxis))}}else f=Math.max(d,d+j)+X[0],G.y=I.translate(f,!1,!0,!1,!0),z.isSum?(G.y=I.translate(X[1],!1,!0,!1,!0),G.height=Math.min(I.translate(X[0],!1,!0,!1,!0),I.len)-G.y,z.below=X[1]<=F):z.isIntermediateSum?(j>=0?(M=X[1]+C,k=C):(M=C,k=X[1]+C),I.reversed&&(M^=k,k^=M,M^=k),G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-Math.min(I.translate(k,!1,!0,!1,!0),I.len)),C+=X[1],z.below=M<=F):(G.height=N>0?I.translate(d,!1,!0,!1,!0)-G.y:I.translate(d,!1,!0,!1,!0)-I.translate(d-N,!1,!0,!1,!0),d+=N,z.below=d{"use strict";(function(o){typeof Gn=="object"&&Gn.exports?(o.default=o,Gn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Extensions/Breadcrumbs/BreadcrumbsDefaults.js",[],function(){return{lang:{mainBreadcrumb:"Main"},options:{buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7}}}),s(t,"Extensions/Breadcrumbs/Breadcrumbs.js",[t["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{format:l}=i,{composed:a}=r,{addEvent:h,defined:c,extend:g,fireEvent:u,isString:p,merge:b,objectEach:v,pick:x,pushUnique:m}=n;function E(){if(this.breadcrumbs){let I=this.resetZoomButton&&this.resetZoomButton.getBBox(),_=this.breadcrumbs.options;I&&_.position.align==="right"&&_.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-I.width-_.buttonSpacing)}}function L(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function S(){let I=this.breadcrumbs;if(I&&!I.options.floating&&I.level){let _=I.options,P=_.buttonTheme,F=(P.height||0)+2*(P.padding||0)+_.buttonSpacing,A=_.position.verticalAlign;A==="bottom"?(this.marginBottom=(this.marginBottom||0)+F,I.yOffset=F):A!=="middle"?(this.plotTop+=F,I.yOffset=-F):I.yOffset=void 0}}function w(){this.breadcrumbs&&this.breadcrumbs.redraw()}function R(I){I.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class O{static compose(_,P){m(a,"Breadcrumbs")&&(h(_,"destroy",L),h(_,"afterShowResetZoom",E),h(_,"getMargins",S),h(_,"redraw",w),h(_,"selection",R),g(P.lang,e.lang))}constructor(_,P){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let F=b(_.options.drilldown&&_.options.drilldown.drillUpButton,O.defaultOptions,_.options.navigation&&_.options.navigation.breadcrumbs,P);this.chart=_,this.options=F||{}}updateProperties(_){this.setList(_),this.setLevel(),this.isDirty=!0}setList(_){this.list=_}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(_){let P=this.chart,F=this.options,A=P.options.lang,D=x(F.format,F.showFullPath?"{level.name}":"\u2190 {level.name}"),C=A&&x(A.drillUpText,A.mainBreadcrumb),d=F.formatter&&F.formatter(_)||l(D,{level:_.levelOptions},P)||"";return(p(d)&&!d.length||d==="\u2190 ")&&c(C)&&(d=F.showFullPath?C:"\u2190 "+C),d}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let _=this.chart,P=this.options;!this.group&&P&&(this.group=_.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:P.zIndex}).add()),P.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let _=this.chart,P=this.list,F=this.options.buttonSpacing;this.destroyListElements();let A=this.group?this.group.getBBox().width:F,D=P[P.length-2];!_.drillUpButton&&this.level>0?_.drillUpButton=this.renderButton(D,A,F):_.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(_){if(this.group){let P=this.options,F=P.buttonTheme,A=P.position,D=P.relativeTo==="chart"||P.relativeTo==="spacingBox"?void 0:"plotBox",C=this.group.getBBox(),d=2*(F.padding||0)+P.buttonSpacing;A.width=C.width+d,A.height=C.height+d;let f=b(A);_&&(f.x+=_),this.options.rtl&&(f.x+=A.width),f.y=x(f.y,this.yOffset,0),this.group.align(f,!0,D)}}renderButton(_,P,F){let A=this,D=this.chart,C=A.options,d=b(C.buttonTheme),f=D.renderer.button(A.getButtonText(_),P,F,function(y){let M,k=C.events&&C.events.click;k&&(M=k.call(A,y,_)),M!==!1&&(C.showFullPath?y.newLevel=_.level:y.newLevel=A.level-1,u(A,"up",y))},d).addClass("highcharts-breadcrumbs-button").add(A.group);return D.styledMode||f.attr(C.style),f}renderSeparator(_,P){let F=this.chart,A=this.options.separator,D=F.renderer.label(A.text,_,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return F.styledMode||D.css(A.style),D}update(_){b(!0,this.options,_),this.destroy(),this.isDirty=!0}updateSingleButton(){let _=this.chart,P=this.list[this.level-1];_.drillUpButton&&_.drillUpButton.attr({text:this.getButtonText(P)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(_){let P=this.elementList;v(P,(F,A)=>{(_||!P[A].updated)&&((F=P[A]).button&&F.button.destroy(),F.separator&&F.separator.destroy(),delete F.button,delete F.separator,delete P[A])}),_&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){v(this.elementList,_=>{_.updated=!1})}updateListElements(){let _=this.elementList,P=this.options.buttonSpacing,F=this.list,A=this.options.rtl,D=A?-1:1,C=function(k,T){return D*k.getBBox().width+D*T},d=function(k,T,z){k.translate(T-k.getBBox().width,z)},f=this.group?C(this.group,P):P,y,M;for(let k=0,T=F.length;k{e.graphic=c=c&&c.destroy(),typeof n=="function"&&n()};Object.keys(r).length?c.animate(r,void 0,()=>g()):g()}}}}),s(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{pie:{prototype:{pointClass:n}},scatter:{prototype:{pointClass:l}}}=i.seriesTypes,{extend:a,isNumber:h,pick:c}=r;class g extends l{constructor(){super(...arguments),this.shapeType="rect"}draw(p){e.draw(this,p)}getClassName(){let p=this.series,b=p.options,v=super.getClassName();return this.node.level<=p.nodeMap[p.rootNode].level?v+=" highcharts-above-level":this.node.isLeaf||c(b.interactByLeaf,!b.allowTraversingTree)?this.node.isLeaf||(v+=" highcharts-internal-node"):v+=" highcharts-internal-node-interactive",v}isValid(){return!!(this.id||h(this.value))}setState(p){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:p==="hover"?1:0})}shouldDraw(){return h(this.plotY)&&this.y!==null}}return a(g.prototype,{setVisible:n.prototype.setVisible}),g}),s(t,"Series/Treemap/TreemapSeriesDefaults.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{isString:r}=i;return{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){let n=this&&this.point?this.point:{};return r(n.name)?n.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:e.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle"}}),s(t,"Series/Treemap/TreemapUtilities.js",[],function(){var e;return(e||(e={})).recursive=function i(r,n,l){let a=n.call(l||this,r);a!==!1&&i(a,n,l)},e}),s(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){let{extend:r,isArray:n,isNumber:l,isObject:a,merge:h,pick:c,relativeLength:g}=i;return{getColor:function(u,p){let b,v,x,m,E,L,S=p.index,w=p.mapOptionsToLevel,R=p.parentColor,O=p.parentColorIndex,I=p.series,_=p.colors,P=p.siblings,F=I.points,A=I.chart.options.chart;return u&&(b=F[u.i],v=w[u.level]||{},b&&v.colorByPoint&&(m=b.index%(_?_.length:A.colorCount),x=_&&_[m]),I.chart.styledMode||(E=c(b&&b.options.color,v&&v.color,x,R&&(D=>{let C=v&&v.colorVariation;return C&&C.key==="brightness"&&S&&P?e.parse(D).brighten(C.to*(S/P)).get():D})(R),I.color)),L=c(b&&b.options.colorIndex,v&&v.colorIndex,m,O,p.colorIndex)),{color:E,colorIndex:L}},getLevelOptions:function(u){let p,b,v,x,m,E,L={};if(a(u))for(x=l(u.from)?u.from:1,E=u.levels,b={},p=a(u.defaults)?u.defaults:{},n(E)&&(b=E.reduce((S,w)=>{let R,O,I;return a(w)&&l(w.level)&&(O=c((I=h({},w)).levelIsConstant,p.levelIsConstant),delete I.levelIsConstant,delete I.level,a(S[R=w.level+(O?0:x-1)])?h(!0,S[R],I):S[R]=I),S},{})),m=l(u.to)?u.to:1,v=0;v<=m;v++)L[v]=h({},p,a(b[v])?b[v]:{});return L},getNodeWidth:function(u,p){let{chart:b,options:v}=u,{nodeDistance:x=0,nodeWidth:m=0}=v,{plotSizeX:E=1}=b;if(m==="auto"){if(typeof x=="string"&&/%$/.test(x))return E/(p+parseFloat(x)/100*(p-1));let L=Number(x);return(E+L)/(p||1)-L}return g(m,E)},setTreeValues:function u(p,b){let v=b.before,x=b.idRoot,m=b.mapIdToNode[x],E=b.levelIsConstant!==!1,L=b.points[p.i],S=L&&L.options||{},w=[],R=0;p.levelDynamic=p.level-(E?0:m.level),p.name=c(L&&L.name,""),p.visible=x===p.id||b.visible===!0,typeof v=="function"&&(p=v(p,b)),p.children.forEach((I,_)=>{let P=r({},b);r(P,{index:_,siblings:p.children.length,visible:p.visible}),I=u(I,P),w.push(I),I.visible&&(R+=I.val)});let O=c(S.value,R);return p.visible=O>=0&&(R>0||p.visible),p.children=w,p.childrenTotal=R,p.isLeaf=p.visible&&!R,p.val=O,p},updateRootId:function(u){let p,b;return a(u)&&(b=a(u.options)?u.options:{},p=c(u.rootNode,b.rootId,""),a(u.userOptions)&&(u.userOptions.rootId=p),u.rootNode=p),p}}}),s(t,"Series/Treemap/TreemapSeries.js",[t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Treemap/TreemapAlgorithmGroup.js"],t["Series/Treemap/TreemapNode.js"],t["Series/Treemap/TreemapPoint.js"],t["Series/Treemap/TreemapSeriesDefaults.js"],t["Series/Treemap/TreemapUtilities.js"],t["Series/TreeUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,g,u,p,b){let{parse:v}=i,{composed:x,noop:m}=n,{column:E,scatter:L}=l.seriesTypes,{getColor:S,getLevelOptions:w,updateRootId:R}=p,{addEvent:O,correctFloat:I,crisp:_,defined:P,error:F,extend:A,fireEvent:D,isArray:C,isObject:d,isString:f,merge:y,pick:M,pushUnique:k,stableSort:T}=b,z=!1;function N(){let X,j=this.xAxis,B=this.yAxis;j&&B&&(this.is("treemap")?(X={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},A(B.options,X),A(j.options,X),z=!0):z&&(B.setOptions(B.userOptions),j.setOptions(j.userOptions),z=!1))}class G extends L{static compose(j){k(x,"TreemapSeries")&&O(j,"afterBindAxes",N)}algorithmCalcPoints(j,B,W,Y){let U=W.plot,q=W.elArr.length-1,H,V,Z,K,J=W.lW,tt=W.lH,$,Q=0;for(let et of(B?(J=W.nW,tt=W.nH):$=W.elArr[q],W.elArr))(B||QV.lP.lR&&this.algorithmCalcPoints(j,!1,V,Y,U),K===H&&this.algorithmCalcPoints(j,!0,V,Y,U),++K;return Y}alignDataLabel(j,B,W){let Y=W.style;Y&&!P(Y.textOverflow)&&B.text&&B.getBBox().width>(B.text.textWidth||0)&&B.css({textOverflow:"ellipsis",width:Y.width+="px"}),E.prototype.alignDataLabel.apply(this,arguments),j.dataLabel&&j.dataLabel.attr({zIndex:(j.node.zIndex||0)+1})}calculateChildrenAreas(j,B){let W=this.options,Y=this.mapOptionsToLevel[j.level+1],U=M(this[Y&&Y.layoutAlgorithm]&&Y.layoutAlgorithm,W.layoutAlgorithm),q=W.alternateStartingDirection,H=j.children.filter(K=>!K.ignore),V=[];Y&&Y.layoutStartingDirection&&(B.direction=Y.layoutStartingDirection==="vertical"?0:1),V=this[U](B,H);let Z=-1;for(let K of H){let J=V[++Z];K.values=y(J,{val:K.childrenTotal,direction:q?1-B.direction:B.direction}),K.pointValues=y(J,{x:J.x/this.axisRatio,y:100-J.y-J.height,width:J.width/this.axisRatio}),K.children.length&&this.calculateChildrenAreas(K,K.values)}}createList(j){let B=this.chart,W=B.breadcrumbs,Y=[];if(W){let U=0;Y.push({level:U,levelOptions:B.series[0]});let q=j.target.nodeMap[j.newRootId],H=[];for(;q.parent||q.parent==="";)H.push(q),q=j.target.nodeMap[q.parent];for(let V of H.reverse())Y.push({level:++U,levelOptions:V});Y.length<=1&&(Y.length=0)}return Y}drawDataLabels(){let j,B,W=this.mapOptionsToLevel;for(let Y of this.points.filter(function(U){return U.node.visible}))B=W[Y.node.level],j={style:{}},Y.node.isLeaf||(j.enabled=!1),B&&B.dataLabels&&(j=y(j,B.dataLabels),this.hasDataLabels=()=>!0),Y.shapeArgs&&(j.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=y(j,Y.options.dataLabels);super.drawDataLabels()}drawPoints(j=this.points){let B=this.chart,W=B.renderer,Y=B.styledMode,U=this.options,q=Y?{}:U.shadow,H=U.borderRadius,V=B.pointCount{let H=q.userOptions;P(H.allowDrillToNode)&&!P(H.allowTraversingTree)&&(H.allowTraversingTree=H.allowDrillToNode,delete H.allowDrillToNode),P(H.drillUpButton)&&!P(H.traverseUpButton)&&(H.traverseUpButton=H.drillUpButton,delete H.drillUpButton)});super.init(j,B),delete W.opacity,W.eventsToUnbind.push(U),W.options.allowTraversingTree&&(W.eventsToUnbind.push(O(W,"click",W.onClickDrillToNode)),W.eventsToUnbind.push(O(W,"setRootNode",function(q){let H=W.chart;H.breadcrumbs&&H.breadcrumbs.updateProperties(W.createList(q))})),W.eventsToUnbind.push(O(W,"update",function(q,H){let V=this.chart.breadcrumbs;V&&q.options.breadcrumbs&&V.update(q.options.breadcrumbs)})),W.eventsToUnbind.push(O(W,"destroy",function(q){let H=this.chart;H.breadcrumbs&&!q.keepEventsForUpdate&&(H.breadcrumbs.destroy(),H.breadcrumbs=void 0)}))),j.breadcrumbs||(j.breadcrumbs=new e(j,Y)),W.eventsToUnbind.push(O(j.breadcrumbs,"up",function(q){let H=this.level-q.newLevel;for(let V=0;VU?0:j.pointAttribs(H)["stroke-width"]||0;for(let H of B){let{pointValues:V,visible:Z}=H.node;if(V&&Z){let{height:K,width:J,x:tt,y:$}=V,Q=q(H),et=_(W.toPixels(tt,!0),Q,!0),it=_(W.toPixels(tt+J,!0),Q,!0),st=_(Y.toPixels($,!0),Q,!0),rt=_(Y.toPixels($+K,!0),Q,!0),nt={x:Math.min(et,it),y:Math.min(st,rt),width:Math.abs(it-et),height:Math.abs(rt-st)};H.plotX=nt.x+nt.width/2,H.plotY=nt.y+nt.height/2,H.shapeArgs=nt}else delete H.plotX,delete H.plotY}}setRootNode(j,B,W){D(this,"setRootNode",A({newRootId:j,previousRootId:this.rootNode,redraw:M(B,!0),series:this},W),function(Y){let U=Y.series;U.idPreviousRoot=Y.previousRootId,U.rootNode=Y.newRootId,U.isDirty=!0,Y.redraw&&U.chart.redraw()})}setState(j){this.options.inactiveOtherPoints=!0,super.setState(j,!1),this.options.inactiveOtherPoints=!1}setTreeValues(j){let B=this.options,W=this.rootNode,Y=this.nodeMap[W],U=typeof B.levelIsConstant!="boolean"||B.levelIsConstant,q=[],H=this.points[j.i],V=0;for(let K of j.children)K=this.setTreeValues(K),q.push(K),K.ignore||(V+=K.val);T(q,(K,J)=>(K.sortIndex||0)-(J.sortIndex||0));let Z=M(H&&H.options.value,V);return H&&(H.value=Z),A(j,{children:q,childrenTotal:V,ignore:!(M(H&&H.visible,!0)&&Z>0),isLeaf:j.visible&&!V,levelDynamic:j.level-(U?0:Y.level),name:M(H&&H.name,""),sortIndex:M(H&&H.sortIndex,-Z),val:Z}),j}sliceAndDice(j,B){return this.algorithmFill(!0,j,B)}squarified(j,B){return this.algorithmLowAspectRatio(!0,j,B)}strip(j,B){return this.algorithmLowAspectRatio(!1,j,B)}stripes(j,B){return this.algorithmFill(!1,j,B)}translate(){let j=this,B=j.options,W=R(j),Y,U,q,H;super.translate();let V=j.tree=j.getTree();Y=j.nodeMap[W],W===""||Y&&Y.children.length||(j.setRootNode("",!1),W=j.rootNode,Y=j.nodeMap[W]),j.mapOptionsToLevel=w({from:Y.level+1,levels:B.levels,to:V.height,defaults:{levelIsConstant:j.options.levelIsConstant,colorByPoint:B.colorByPoint}}),u.recursive(j.nodeMap[j.rootNode],Z=>{let K=Z.parent,J=!1;return Z.visible=!0,(K||K==="")&&(J=j.nodeMap[K]),J}),u.recursive(j.nodeMap[j.rootNode].children,Z=>{let K=!1;for(let J of Z)J.visible=!0,J.children.length&&(K=(K||[]).concat(J.children));return K}),j.setTreeValues(V),j.axisRatio=j.xAxis.len/j.yAxis.len,j.nodeMap[""].pointValues=U={x:0,y:0,width:100,height:100},j.nodeMap[""].values=q=y(U,{width:U.width*j.axisRatio,direction:B.layoutStartingDirection==="vertical"?0:1,val:V.val}),j.calculateChildrenAreas(V,q),j.colorAxis||B.colorByPoint||j.setColorRecursive(j.tree),B.allowTraversingTree&&(H=Y.pointValues,j.xAxis.setExtremes(H.x,H.x+H.width,!1),j.yAxis.setExtremes(H.y,H.y+H.height,!1),j.xAxis.setScale(),j.yAxis.setScale()),j.setPointValues()}}return G.defaultOptions=y(L.defaultOptions,g),A(G.prototype,{buildKDTree:m,colorAttribs:r.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:c,NodeClass:h,trackerGroups:["group","dataLabelsGroup"],utils:u}),r.compose(G),l.registerSeriesType("treemap",G),G}),s(t,"masters/modules/treemap.src.js",[t["Core/Globals.js"],t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Series/Treemap/TreemapSeries.js"]],function(e,i,r){return e.Breadcrumbs=e.Breadcrumbs||i,e.Breadcrumbs.compose(e.Chart,e.defaultOptions),r.compose(e.Series),e})})});var Eu=qe((AT,Xn)=>{"use strict";(function(o){typeof Xn=="object"&&Xn.exports?(o.default=o,Xn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:g}=i;return function(u){let p;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=g(I.colorAxis),I.colorAxis.map(_=>new p(this,_)))}function v(I){let _=this.chart.colorAxis||[],P=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],A,D;for(_.forEach(function(C){(A=C.options)&&A.showInLegend&&(A.dataClasses&&A.visible?F=F.concat(C.getDataClassLegendSymbols()):A.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||A.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(f){P(f)}):P(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function m(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function E(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,P=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][P]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,P=this.options.nullColor,F=this.colorAxis,A=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(A),d=D.options.color||(D.isNull||D.value===null?P:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}u.compose=function(I,_,P,F,A){let D=_.prototype,C=P.prototype,d=A.prototype;D.collectionsWithUpdate.includes("colorAxis")||(p=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(f){let y=f.prototype.createAxis;f.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let T=new p(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),T}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",m),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(A,"afterTranslate",E,{order:1}),l(A,"bindAxes",L))},u.pointSetVisible=S}(r||(r={})),r}),s(t,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],g.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(g=this.normalizedValue(h),x=E.length;x--&&!(g>E[x][0]););u=E[x]||E[x+1],g=1-((p=E[x+1]||u)[0]-g)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,g)}return b},r}),s(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:g}=l,{series:u}=h,{defined:p,extend:b,fireEvent:v,isArray:x,isNumber:m,merge:E,pick:L,relativeLength:S}=c;g.colorAxis=E(g.xAxis,r);class w extends e{static compose(O,I,_,P){i.compose(w,O,I,_,P)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},P=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||P?2:1,this.reversed=I.reversed||!P,this.opposite=!P,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=P,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=E(g.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:P}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=P=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-P,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:P)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(P){P instanceof w&&P.drawLegendSymbol(_,P)}),_.render(),this.chart.getMargins(!0),this.chart.series.some(P=>P.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,P=I?0:1,F=O?[_,0,P,0]:[0,P,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},P=O.padding,F=O.options,A=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:f}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:f}),_.labelWidth=d+P+(C?D:L(A.x,A.distance)+(this.maxLabelLength||0)),_.labelHeight=f+P+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,P,F,A,D,C=O.length,d,f;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,A=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],P=F.indexOf(_),d=D.yData,P>=0&&d)for(f=0;fD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=A,this.cross&&!this.cross.addedToColorAxis&&P.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(P.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(O){let I=this.left,_=O.translatedValue,P=this.top;return m(_)?this.horiz?[["M",_-4,P-6],["L",_+4,P-6],["L",_,P],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(P=>{P.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,P=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,A=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((f,y)=>(f.push(...y.points.filter(M=>M.dataClass===d)),f),[]);return P.length||I.dataClasses.forEach((d,f)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,T=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,A)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,A)+D),P.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(f))N.setState(z)},setVisible:function(){this.visible=T=I.visible=!T;let z=[];for(let N of C(f))N.setVisible(T),N.hiddenInDataClass=!T,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,T),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),P}getSize(){let{chart:O,horiz:I}=this,{height:_,width:P}=this.options,{legend:F}=O.options;return{width:L(p(P)?S(P,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(p(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),s(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,i){return e.ColorAxis=e.ColorAxis||i,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),s(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function g(u){let p=this.series,b=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new i(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),u?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):p.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:l.pointAttribs},c.compose=function(u){return a(u.prototype.pointClass,"afterSetState",g),u}}(n||(n={})),n}),s(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=i;class c extends r{applyOptions(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,b=(p.colsize||1)/2,v=(p.rowsize||1)/2,x=u.xAxis,m=u.yAxis,E=this.options.marker||u.options.marker,L=u.pointPlacementToXValue(),S=h(this.pointPadding,p.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(m.translate(this.y-v,!1,!0,!1,!0)),-m.len,2*m.len),y2:n(Math.round(m.translate(this.y+v,!1,!0,!1,!0)),-m.len,2*m.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",P=I+"2",F=Math.abs(w[_]-w[P]),A=E&&E.lineWidth||0,D=Math.abs(w[_]+w[P])/2,C=E&&E[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),s(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{doc:r}=e,{defined:n,pick:l}=i;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let g=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(u=>l(parseFloat(u),parseInt(u,10)));return g[3]=255*l(g[3],1),n(a)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),s(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,i,r,n,l,a,h,c){let{series:g,seriesTypes:{column:u,scatter:p}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:m,isNumber:E,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,P=_.options,F=P.interpolation,A=P.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:f}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:T}=f,z={width:M,height:T};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,Y=C.colorAxis&&C.colorAxis[0];if(G&&N&&Y){let{min:U,max:q}=d.getExtremes(),{min:H,max:V}=f.getExtremes(),Z=q-U,K=V-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:P}=g.prototype.getExtremes.call(this,this.valueData);return E(_)&&(this.valueMin=_),E(P)&&(this.valueMax=P),g.prototype.getExtremes.call(this)}getValidPoints(_,P){return g.prototype.getValidPoints.call(this,_,P,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&E(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,P){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(P&&P!=="normal"){let A=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[P]||{},d=A.states&&A.states[P]||{},f=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-f)/2,y:(F.y||0)+((F.height||0)-y)/2,width:f,height:y}}return F}pointAttribs(_,P){let F=g.prototype.pointAttribs.call(this,_,P),A=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},f=_&&_.options.borderColor||A.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||A.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||A.marker&&A.marker.lineColor||f||this.color,F["stroke-width"]=y,P&&P!=="normal"){let M=L(A.states&&A.states[P],A.marker&&A.marker.states&&A.marker.states[P],_&&_.options.states&&_.options.states[P]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:P}=this.options,F=P&&P.symbol||"rect",A=b[F]?F:"rect",D=["circle","square"].indexOf(A)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),f=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let T=Math.abs(M-k);f=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof Wn=="object"&&Wn.exports?(o.default=o,Wn.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Math3D.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{deg2rad:r}=e,{pick:n}=i;function l(c,g,u,p){let b=g.options.chart.options3d,v=n(p,!!u&&g.inverted),x={x:g.plotWidth/2,y:g.plotHeight/2,z:b.depth/2,vd:n(b.depth,1)*n(b.viewDistance,0)},m=g.scale3d||1,E=r*b.beta*(v?-1:1),L=r*b.alpha*(v?-1:1),S={cosA:Math.cos(L),cosB:Math.cos(-E),sinA:Math.sin(L),sinB:Math.sin(-E)};return u||(x.x+=g.plotLeft,x.y+=g.plotTop),c.map(function(w){var R,O,I;let _=(R=(v?w.y:w.x)-x.x,O=(v?w.x:w.y)-x.y,I=(w.z||0)-x.z,{x:S.cosB*R-S.sinB*I,y:-S.sinA*S.sinB*R+S.cosA*O-S.cosB*S.sinA*I,z:S.cosA*S.sinB*R+S.sinA*O+S.cosA*S.cosB*I}),P=a(_,x,x.vd);return P.x=P.x*m+x.x,P.y=P.y*m+x.y,P.z=_.z*m+x.z,{x:v?P.y:P.x,y:v?P.x:P.y,z:P.z}})}function a(c,g,u){let p=u>0&&u=0?0:360),C.beta=C.beta%360+(C.beta>=0?0:360));let d=this.inverted,f=this.clipBox,y=this.margin;f[d?"y":"x"]=-(y[3]||0),f[d?"x":"y"]=-(y[0]||0),f[d?"height":"width"]=this.chartWidth+(y[3]||0)+(y[1]||0),f[d?"width":"height"]=this.chartHeight+(y[0]||0)+(y[2]||0),this.scale3d=1,C.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(C.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function O(){this.is3d()&&(this.isDirtyBox=!0)}function I(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function _(){this.chart3d||(this.chart3d=new D(this))}function P(C){return this.is3d()||C.apply(this,[].slice.call(arguments,1))}function F(C){let d,f=this.series.length;if(this.is3d())for(;f--;)(d=this.series[f]).translate(),d.render();else C.call(this)}function A(C){C.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}m.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},m.compose=function(C,d){let f=C.prototype,y=d.prototype;f.is3d=function(){return!!this.options.chart.options3d?.enabled},f.propsRequireDirtyBox.push("chart.options3d"),f.propsRequireUpdateSeries.push("chart.options3d"),y.matrixSetter=function(){let M;if(this.pos<1&&(p(this.start)||p(this.end))){let k=this.start||[1,0,0,1,0,0],T=this.end||[1,0,0,1,0,0];M=[];for(let z=0;z<6;z++)M.push(this.pos*T[z]+(1-this.pos)*k[z])}else M=this.end;this.elem.attr(this.prop,M,null,!0)},b(!0,h,m.defaultOptions),u(C,"init",_),u(C,"addSeries",E),u(C,"afterDrawChartBox",L),u(C,"afterGetContainer",S),u(C,"afterInit",w),u(C,"afterSetChartSize",R),u(C,"beforeRedraw",O),u(C,"beforeRender",I),x(f,"isInsidePlot",P),x(f,"renderSeries",F),x(f,"setClassName",A)};class D{constructor(d){this.chart=d}get3dFrame(){let d=this.chart,f=d.options.chart.options3d,y=f.frame,M=d.plotLeft,k=d.plotLeft+d.plotWidth,T=d.plotTop,z=d.plotTop+d.plotHeight,N=f.depth,G=function(tt){let $=g(tt,d);return $>.5?1:$<-.5?-1:0},X=G([{x:M,y:z,z:N},{x:k,y:z,z:N},{x:k,y:z,z:0},{x:M,y:z,z:0}]),j=G([{x:M,y:T,z:0},{x:k,y:T,z:0},{x:k,y:T,z:N},{x:M,y:T,z:N}]),B=G([{x:M,y:T,z:0},{x:M,y:T,z:N},{x:M,y:z,z:N},{x:M,y:z,z:0}]),W=G([{x:k,y:T,z:N},{x:k,y:T,z:0},{x:k,y:z,z:0},{x:k,y:z,z:N}]),Y=G([{x:M,y:z,z:0},{x:k,y:z,z:0},{x:k,y:T,z:0},{x:M,y:T,z:0}]),U=G([{x:M,y:T,z:N},{x:k,y:T,z:N},{x:k,y:z,z:N},{x:M,y:z,z:N}]),q=!1,H=!1,V=!1,Z=!1;[].concat(d.xAxis,d.yAxis,d.zAxis).forEach(function(tt){tt&&(tt.horiz?tt.opposite?H=!0:q=!0:tt.opposite?Z=!0:V=!0)});let K=function(tt,$,Q){let et=["size","color","visible"],it={};for(let rt=0;rt0),{size:v(it.size,1),color:v(it.color,"none"),frontFacing:$>0,visible:st}},J={axes:{},bottom:K([y.bottom,y.top,y],X,q),top:K([y.top,y.bottom,y],j,H),left:K([y.left,y.right,y.side,y],B,V),right:K([y.right,y.left,y.side,y],W,Z),back:K([y.back,y.front,y],U,!0),front:K([y.front,y.back,y],Y,!1)};if(f.axisLabelPosition==="auto"){let tt=function(nt,ot){return nt.visible!==ot.visible||nt.visible&&ot.visible&&nt.frontFacing!==ot.frontFacing},$=[];tt(J.left,J.front)&&$.push({y:(T+z)/2,x:M,z:0,xDir:{x:1,y:0,z:0}}),tt(J.left,J.back)&&$.push({y:(T+z)/2,x:M,z:N,xDir:{x:0,y:0,z:-1}}),tt(J.right,J.front)&&$.push({y:(T+z)/2,x:k,z:0,xDir:{x:0,y:0,z:1}}),tt(J.right,J.back)&&$.push({y:(T+z)/2,x:k,z:N,xDir:{x:-1,y:0,z:0}});let Q=[];tt(J.bottom,J.front)&&Q.push({x:(M+k)/2,y:z,z:0,xDir:{x:1,y:0,z:0}}),tt(J.bottom,J.back)&&Q.push({x:(M+k)/2,y:z,z:N,xDir:{x:-1,y:0,z:0}});let et=[];tt(J.top,J.front)&&et.push({x:(M+k)/2,y:T,z:0,xDir:{x:1,y:0,z:0}}),tt(J.top,J.back)&&et.push({x:(M+k)/2,y:T,z:N,xDir:{x:-1,y:0,z:0}});let it=[];tt(J.bottom,J.left)&&it.push({z:(0+N)/2,y:z,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.bottom,J.right)&&it.push({z:(0+N)/2,y:z,x:k,xDir:{x:0,y:0,z:1}});let st=[];tt(J.top,J.left)&&st.push({z:(0+N)/2,y:T,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.top,J.right)&&st.push({z:(0+N)/2,y:T,x:k,xDir:{x:0,y:0,z:1}});let rt=function(nt,ot,at){if(nt.length===0)return null;if(nt.length===1)return nt[0];let ct=c(nt,d,!1),ht=0;for(let lt=1;ltat*ct[ht][ot]||at*ct[lt][ot]==at*ct[ht][ot]&&ct[lt].zG.minX&&(j=Math.min(j,1-Math.abs((y+z)/(G.minX+z))%1)),MG.minY&&(j=G.minY<0?Math.min(j,(k+N)/(-G.minY+k+N)):Math.min(j,1-(k+N)/(G.minY+N)%1)),T({plotX:w.x,plotY:w.y,plotZ:w.z})),this.group&&L&&L.depth&&L.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,L.beta>270||L.beta<90?L.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),E.reversed=!0;let S=v.call(this,E,!0,!0);if(S[0]&&S[0][0]==="M"&&(S[0]=["L",S[0][1],S[0][2]]),this.areaPath){let w=this.areaPath.splice(0,this.areaPath.length/2).concat(S);w.xMap=this.areaPath.xMap,this.areaPath=w}return this.graphPath=b,b}return{compose:function(p){c(l,"Area3DSeries")&&g(p.prototype,"getGraphPath",u)}}}),s(t,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),s(t,"Core/Axis/Tick3DComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{composed:r}=e,{addEvent:n,extend:l,pushUnique:a,wrap:h}=i;function c(u){let p=this.axis.axis3D;p&&l(u.pos,p.fix3dPosition(u.pos))}function g(u){let p=this.axis.axis3D,b=u.apply(this,[].slice.call(arguments,1));if(p){let v=b[0],x=b[1];if(v[0]==="M"&&x[0]==="L"){let m=[p.fix3dPosition({x:v[1],y:v[2],z:0}),p.fix3dPosition({x:x[1],y:x[2],z:0})];return this.axis.chart.renderer.toLineSegments(m)}}return b}return{compose:function(u){a(r,"Axis.Tick3D")&&(n(u,"afterGetLabelPosition",c),h(u.prototype,"getMarkPath",g))}}}),s(t,"Core/Axis/Axis3DComposition.js",[t["Core/Axis/Axis3DDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Axis/Tick3DComposition.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{defaultOptions:h}=i,{deg2rad:c}=r,{perspective:g,perspective3D:u,shapeArea:p}=n,{addEvent:b,merge:v,pick:x,wrap:m}=a;function E(){let F=this.chart,A=this.options;F.is3d&&F.is3d()&&this.coll!=="colorAxis"&&(A.tickWidth=x(A.tickWidth,0),A.gridLineWidth=x(A.gridLineWidth,1))}function L(F){this.chart.is3d()&&this.coll!=="colorAxis"&&F.point&&(F.point.crosshairPos=this.isXAxis?F.point.axisXpos:this.len-F.point.axisYpos)}function S(){this.axis3D||(this.axis3D=new P(this))}function w(F){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:F.apply(this,[].slice.call(arguments,1))}function R(F){if(!this.chart.is3d()||this.coll==="colorAxis")return F.apply(this,[].slice.call(arguments,1));let A=arguments,D=A[1],C=A[2],d=[],f=this.getPlotLinePath({value:D}),y=this.getPlotLinePath({value:C});if(f&&y)for(let M=0;Mp(g([A,{x:A.x+W.x,y:A.y+W.y,z:A.z+W.z},{x:A.x+Y.x,y:A.y+Y.y,z:A.z+Y.z}],C.chart))&&(W={x:-W.x,y:-W.y,z:-W.z});let H=g([{x:A.x,y:A.y,z:A.z},{x:A.x+W.x,y:A.y+W.y,z:A.z+W.z},{x:A.x+Y.x,y:A.y+Y.y,z:A.z+Y.z}],C.chart);q.matrix=[H[1].x-H[0].x,H[1].y-H[0].y,H[2].x-H[0].x,H[2].y-H[0].y,q.x,q.y],q.matrix[4]-=q.x*q.matrix[0]+q.y*q.matrix[2],q.matrix[5]-=q.x*q.matrix[1]+q.y*q.matrix[3]}return q}swapZ(A,D){let C=this.axis;if(C.isZAxis){let d=D?0:C.chart.plotLeft;return{x:d+A.z,y:A.y,z:A.x-d}}return A}}return P}),s(t,"Core/Series/Series3D.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{composed:l}=e,{perspective:a}=i,{addEvent:h,extend:c,isNumber:g,merge:u,pick:p,pushUnique:b}=n;class v extends r{static compose(m){b(l,"Core.Series3D")&&(h(m,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),c(m.prototype,{translate3dPoints:v.prototype.translate3dPoints}))}translate3dPoints(){let m,E,L=this,S=L.options,w=L.chart,R=p(L.zAxis,w.options.zAxis[0]),O=[],I=[],_=S.stacking?g(S.stack)?S.stack:0:L.index||0;L.zPadding=_*(S.depth||0+(S.groupZPadding||1)),L.data.forEach(F=>{R&&R.translate?(E=R.logarithmic&&R.val2lin?R.val2lin(F.z):F.z,F.plotZ=R.translate(E),F.isInside=!!F.isInside&&E>=R.min&&E<=R.max):F.plotZ=L.zPadding,F.axisXpos=F.plotX,F.axisYpos=F.plotY,F.axisZpos=F.plotZ,O.push({x:F.plotX,y:F.plotY,z:F.plotZ}),I.push(F.plotX||0)}),L.rawPointsX=I;let P=a(O,w,!0);L.data.forEach((F,A)=>{m=P[A],F.plotX=m.x,F.plotY=m.y,F.plotZ=m.z})}}return v.defaultOptions=u(r.defaultOptions),v}),s(t,"Core/Renderer/SVG/SVGElement3D.js",[t["Core/Color/Color.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{parse:n}=e,{Element:l}=i.getRendererType().prototype,{defined:a,pick:h}=r;class c extends l{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(u){let p=this.renderer,b=p[this.pathType+"Path"](u),v=b.zIndexes;for(let x of this.parts){let m={class:"highcharts-3d-"+x,zIndex:v[x]||0};p.styledMode&&(x==="top"?m.filter="url(#highcharts-brighter)":x==="side"&&(m.filter="url(#highcharts-darker)")),this[x]=p.path(b[x]).attr(m).add(this)}this.attr({"stroke-linejoin":"round",zIndex:v.group}),this.forcedSides=b.forcedSides}singleSetterForParts(u,p,b,v,x,m){let E={},L=[null,null,v||"attr",x,m],S=b&&b.zIndexes;if(b){for(let w of(S&&S.group&&this.attr({zIndex:S.group}),Object.keys(b)))E[w]={},E[w][u]=b[w],S&&(E[w].zIndex=b.zIndexes[w]||0);L[1]=E}else E[u]=p,L[0]=E;return this.processParts.apply(this,L)}processParts(u,p,b,v,x){for(let m of this.parts)p&&(u=h(p[m],!1)),u!==!1&&this[m][b](u,v,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(u,p,b,v){if(typeof u=="string"&&p!==void 0){let x=u;(u={})[x]=p}return u.shapeArgs||a(u.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](u.shapeArgs||u)):super.attr(u,void 0,b,v)}animate(u,p,b){if(a(u.x)&&a(u.y)){let v=this.renderer[this.pathType+"Path"](u),x=v.forcedSides;this.singleSetterForParts("d",null,v,"animate",p,b),this.attr({zIndex:v.zIndexes.group}),x===this.forcedSides||(this.forcedSides=x,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(u,p,b);return this}fillSetter(u){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:u,top:n(u).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:n(u).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=u,this}}return c.types={base:c,cuboid:c},c}),s(t,"Core/Renderer/SVG/SVGRenderer3D.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Renderer/SVG/SVGElement3D.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){var h;let{animObject:c}=e,{parse:g}=i,{charts:u,deg2rad:p}=r,{perspective:b,shapeArea:v}=n,{defined:x,extend:m,merge:E,pick:L}=a,S=Math.cos,w=Math.sin,R=Math.PI,O=4*(Math.sqrt(2)-1)/3/(R/2);function I(_,P,F,A,D,C,d,f){let y=C-D,M=[];return C>D&&C-D>Math.PI/2+1e-4?M=(M=M.concat(I(_,P,F,A,D,D+Math.PI/2,d,f))).concat(I(_,P,F,A,D+Math.PI/2,C,d,f)):CMath.PI/2+1e-4?M=(M=M.concat(I(_,P,F,A,D,D-Math.PI/2,d,f))).concat(I(_,P,F,A,D-Math.PI/2,C,d,f)):[["C",_+F*Math.cos(D)-F*O*y*Math.sin(D)+d,P+A*Math.sin(D)+A*O*y*Math.cos(D)+f,_+F*Math.cos(C)+F*O*y*Math.sin(C)+d,P+A*Math.sin(C)-A*O*y*Math.cos(C)+f,_+F*Math.cos(C)+d,P+A*Math.sin(C)+f]]}return function(_){function P(k,T){let z=[];for(let N of k)z.push(["L",N.x,N.y]);return k.length&&(z[0][0]="M",T&&z.push(["Z"])),z}function F(k){let T=[],z=!0;for(let N of k)T.push(z?["M",N.x,N.y]:["L",N.x,N.y]),z=!z;return T}function A(k){let T=this,z=T.Element.prototype,N=T.createElement("path");return N.vertexes=[],N.insidePlotArea=!1,N.enabled=!0,N.attr=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=u[T.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=T.toLinePath(j,!0),W=v(j);G.d=B,G.visibility=this.enabled&&W>0?"inherit":"hidden"}return z.attr.apply(this,arguments)},N.animate=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=u[T.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=T.toLinePath(j,!0),W=v(j),Y=this.enabled&&W>0?"visible":"hidden";G.d=B,this.attr("visibility",Y)}return z.animate.apply(this,arguments)},N.attr(k)}function D(k){let T=this,z=T.Element.prototype,N=T.g(),G=N.destroy;return this.styledMode||N.attr({"stroke-linejoin":"round"}),N.faces=[],N.destroy=function(){for(let X=0;XX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthG===0&&st>1&&st<6?{x:H[st].x,y:H[st].y+10,z:H[st].z}:H[0].x===H[7].x&&st>=4?{x:H[st].x+10,y:H[st].y,z:H[st].z}:j===0&&st<2||st>5?{x:H[st].x,y:H[st].y,z:H[st].z+10}:H[st],Z=st=>H[st],K=(st,rt,nt)=>{let ot=st.map(Z),at=rt.map(Z),ct=st.map(V),ht=rt.map(V),lt=[[],-1];return 0>v(ot)?lt=[ot,0]:0>v(at)?lt=[at,1]:nt&&(Y.push(nt),lt=0>v(ct)?[ot,0]:0>v(ht)?[at,1]:[ot,0]),lt},J=(U=K([3,2,1,0],[7,6,5,4],"front"))[0],tt=U[1],$=(U=K([1,6,7,0],[4,5,2,3],"top"))[0],Q=U[1],et=(U=K([1,2,5,6],[0,7,4,3],"side"))[0],it=U[1];return it===1?q+=1e6*(B.plotWidth-T):it||(q+=1e6*T),q+=10*(!Q||W>=0&&W<=180||W<360&&W>357.5?B.plotHeight-z:10+z),tt===1?q+=100*N:tt||(q+=100*(1e3-N)),{front:this.toLinePath(J,!0),top:this.toLinePath($,!0),side:this.toLinePath(et,!0),zIndexes:{group:Math.round(q)},forcedSides:Y,isFront:tt,isTop:Q}}function y(k){let T=this.g(),z=this.Element.prototype,N=["x","y","r","innerR","start","end","depth"];function G(X){let j={},B=!1,W;for(W in X=E(X))N.indexOf(W)!==-1&&(j[W]=X[W],delete X[W],B=!0);return!!B&&[j,X]}for(let X of((k=E(k)).alpha=(k.alpha||0)*p,k.beta=(k.beta||0)*p,T.top=this.path(),T.side1=this.path(),T.side2=this.path(),T.inn=this.path(),T.out=this.path(),T.onAdd=function(){let j=T.parentGroup,B=T.attr("class");for(let W of(T.top.add(T),["out","inn","side1","side2"]))T[W].attr({class:B+" highcharts-3d-side"}).add(j)},["addClass","removeClass"]))T[X]=function(){let j=arguments;for(let B of["top","out","inn","side1","side2"])T[B][X].apply(T[B],j)};for(let X of(T.setPaths=function(j){let B=T.renderer.arc3dPath(j),W=100*B.zTop;T.attribs=j,T.top.attr({d:B.top,zIndex:B.zTop}),T.inn.attr({d:B.inn,zIndex:B.zInn}),T.out.attr({d:B.out,zIndex:B.zOut}),T.side1.attr({d:B.side1,zIndex:B.zSide1}),T.side2.attr({d:B.side2,zIndex:B.zSide2}),T.zIndex=W,T.attr({zIndex:W}),j.center&&(T.top.setRadialReference(j.center),delete j.center)},T.setPaths(k),T.fillSetter=function(j){let B=g(j).brighten(-.1).get();return this.fill=j,this.side1.attr({fill:B}),this.side2.attr({fill:B}),this.inn.attr({fill:B}),this.out.attr({fill:B}),this.top.attr({fill:j}),this},["opacity","translateX","translateY","visibility"]))T[X+"Setter"]=function(j,B){for(let W of(T[B]=j,["out","inn","side1","side2","top"]))T[W].attr(B,j)};return T.attr=function(X){let j,B;return typeof X=="object"&&(B=G(X))&&(j=B[0],arguments[0]=B[1],m(T.attribs,j),T.setPaths(T.attribs)),z.attr.apply(T,arguments)},T.animate=function(X,j,B){let W,Y,U=this.attribs,q="data-"+Math.random().toString(26).substring(2,9);delete X.center,delete X.z,delete X.alpha,delete X.beta;let H=c(L(j,this.renderer.globalAnimation));return H.duration&&(W=G(X),T[q]=0,X[q]=1,T[q+"Setter"]=r.noop,W&&(Y=W[0],H.step=function(V,Z){let K=J=>U[J]+(L(Y[J],U[J])-U[J])*Z.pos;Z.prop===q&&Z.elem.setPaths(E(U,{x:K("x"),y:K("y"),r:K("r"),innerR:K("innerR"),start:K("start"),end:K("end"),depth:K("depth")}))}),j=H),z.animate.call(this,X,j,B)},T.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),z.destroy.call(this)},T.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},T.show=function(X){this.top.show(X),this.out.show(X),this.inn.show(X),this.side1.show(X),this.side2.show(X)},T}function M(k){let T=k.x||0,z=k.y||0,N=k.start||0,G=(k.end||0)-1e-5,X=k.r||0,j=k.innerR||0,B=k.depth||0,W=k.alpha||0,Y=k.beta||0,U=Math.cos(N),q=Math.sin(N),H=Math.cos(G),V=Math.sin(G),Z=X*Math.cos(Y),K=X*Math.cos(W),J=j*Math.cos(Y),tt=j*Math.cos(W),$=B*Math.sin(Y),Q=B*Math.sin(W),et=[["M",T+Z*U,z+K*q]];(et=et.concat(I(T,z,Z,K,N,G,0,0))).push(["L",T+J*H,z+tt*V]),(et=et.concat(I(T,z,J,tt,G,N,0,0))).push(["Z"]);let it=Y>0?Math.PI/2:0,st=W>0?0:Math.PI/2,rt=N>-it?N:G>-it?-it:N,nt=Got&&NR-st&&NMath.PI&&(ee=2*Math.PI-ee),ee}wt=ft(wt),dt=ft(dt);let Tt=1e5*(Ct=ft(Ct)),zt=1e5*dt,pe=1e5*wt;return{top:et,zTop:1e5*Math.PI+1,out:at,zOut:Math.max(Tt,zt,pe),inn:ct,zInn:Math.max(Tt,zt,pe),side1:ht,zSide1:.99*pe,side2:lt,zSide2:.99*zt}}_.compose=function(k){let T=k.prototype;T.element3d||m(T,{Element3D:l,arc3d:y,arc3dPath:M,cuboid:d,cuboidPath:f,element3d:C,face3d:A,polyhedron:D,toLinePath:P,toLineSegments:F})}}(h||(h={})),h}),s(t,"Core/Axis/ZAxis.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(e,i,r){let{defaultOptions:n}=i,{addEvent:l,merge:a,pick:h,splat:c}=r;function g(b){return new p(this,b)}function u(){let b=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],b.forEach(v=>{this.addZAxis(v).setScale()}))}class p extends e{constructor(){super(...arguments),this.isZAxis=!0}static compose(v){let x=v.prototype;x.addZAxis||(n.zAxis=a(n.xAxis,{offset:0,lineWidth:0}),x.addZAxis=g,x.collectionsWithInit.zAxis=[x.addZAxis],x.collectionsWithUpdate.push("zAxis"),l(v,"afterGetAxes",u))}init(v,x){this.isZAxis=!0,super.init(v,x,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(v=>{if(v.reserveSpace()){let x=v.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&x<=0&&(x=void 0);let m=v.zData;m.length&&(this.dataMin=Math.min(h(this.dataMin,m[0]),Math.min.apply(null,m)),this.dataMax=Math.max(h(this.dataMax,m[0]),Math.max.apply(null,m)))}})}setAxisSize(){let v=this.chart;super.setAxisSize(),this.width=this.len=v.options.chart.options3d&&v.options.chart.options3d.depth||0,this.right=v.chartWidth-this.width-this.left}}return p}),s(t,"Series/Column3D/Column3DComposition.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Utilities.js"]],function(e,i,r){let{composed:n}=e,{perspective:l}=i,{addEvent:a,extend:h,pick:c,pushUnique:g,wrap:u}=r;function p(){let _=this.chart,P=this.options,F=P.depth,A=(P.stacking?P.stack||0:this.index)*(F+(P.groupZPadding||1)),D=this.borderWidth%2?.5:0,C;for(let d of(_.inverted&&!this.yAxis.reversed&&(D*=-1),P.grouping!==!1&&(A=0),A+=P.groupZPadding||1,this.points))if(d.outside3dPlot=null,d.y!==null){let f,y=h({x:0,y:0,width:0,height:0},d.shapeArgs||{}),M=[["x","width"],["y","height"]],k=d.tooltipPos;for(let T of M)if((f=y[T[0]]-D)<0&&(y[T[1]]+=y[T[0]]+D,y[T[0]]=-D,f=0),f+y[T[1]]>this[T[0]+"Axis"].len&&y[T[1]]!==0&&(y[T[1]]=this[T[0]+"Axis"].len-y[T[0]]),y[T[1]]!==0&&(y[T[0]]>=this[T[0]+"Axis"].len||y[T[0]]+y[T[1]]<=D)){for(let z in y)y[z]=z==="y"?-9999:0;d.outside3dPlot=!0}if(d.shapeType==="roundedRect"&&(d.shapeType="cuboid"),d.shapeArgs=h(y,{z:A,depth:F,insidePlotArea:!0}),C={x:y.x+y.width/2,y:y.y,z:A+F/2},_.inverted&&(C.x=y.height,C.y=d.clientX||0),d.axisXpos=C.x,d.axisYpos=C.y,d.axisZpos=C.z,d.plot3d=l([C],_,!0,!1)[0],k){let T=l([{x:k[0],y:k[1],z:A+F/2}],_,!0,!1)[0];d.tooltipPos=[T.x,T.y]}}this.z=A}function b(){if(this.chart.is3d()){let _=this.options,P=_.grouping,F=_.stacking,A=this.yAxis.options.reversedStacks,D=0;if(!(P!==void 0&&!P)){let C,d=function(y,M){let k=y.series,T={totalStacks:0},z,N=1;return k.forEach(function(G){T[z=c(G.options.stack,M?0:k.length-1-G.index)]?T[z].series.push(G):(T[z]={series:[G],position:N},N++)}),T.totalStacks=N+1,T}(this.chart,F),f=_.stack||0;for(C=0;C=90&&y.alpha<=270&&(k.y+=P.shapeArgs.width)),k=l([k],C,!0,!1)[0],D.x=k.x-M,D.y=P.outside3dPlot?-9e9:k.y}_.apply(this,[].slice.call(arguments,1))}function O(_){return!arguments[2].outside3dPlot&&_.apply(this,[].slice.call(arguments,1))}function I(_,P){let F=_.apply(this,[].slice.call(arguments,1)),A=this.axis.chart,{width:D}=P;if(A.is3d()&&this.base){let C=+this.base.split(",")[0],d=A.series[C],f=A.options.chart.options3d;if(d&&d.type==="column"){let y={x:F.x+(A.inverted?F.height:D/2),y:F.y,z:d.options.depth/2};A.inverted&&(F.width=0,f.alpha>=90&&f.alpha<=270&&(y.y+=D)),y=l([y],A,!0,!1)[0],F.x=y.x-D/2,F.y=y.y}}return F}return{compose:function(_,P){if(g(n,"Column3D")){let F=_.prototype,A=P.prototype,{column:D,columnRange:C}=_.types;if(u(F,"alignDataLabel",R),u(F,"justifyDataLabel",O),u(A,"getStackBox",I),D){let d=D.prototype,f=d.pointClass.prototype;d.translate3dPoints=()=>{},d.translate3dShapes=p,a(d,"afterInit",b),u(f,"hasNewShapeType",v),u(d,"animate",x),u(d,"plotGroup",m),u(d,"pointAttribs",E),u(d,"setState",L),u(d,"setVisible",S),u(d,"translate",w)}if(C){let d=C.prototype;u(d.pointClass.prototype,"hasNewShapeType",v),u(d,"plotGroup",m),u(d,"pointAttribs",E),u(d,"setState",L),u(d,"setVisible",S)}}}}}),s(t,"Series/Pie3D/Pie3DPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{pie:{prototype:{pointClass:i}}}=e.seriesTypes;return class extends i{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),s(t,"Series/Pie3D/Pie3DSeries.js",[t["Core/Globals.js"],t["Series/Pie3D/Pie3DPoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{composed:l,deg2rad:a}=e,{pie:h}=r.seriesTypes,{extend:c,pick:g,pushUnique:u}=n;class p extends h{static compose(v){u(l,"Pie3D")&&(v.types.pie=p)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(v){if(this.chart.is3d()){let x=this.center,m=this.group,E=this.markerGroup,L=this.options.animation,S;L===!0&&(L={}),v?(m.oldtranslateX=g(m.oldtranslateX,m.translateX),m.oldtranslateY=g(m.oldtranslateY,m.translateY),S={translateX:x[0],translateY:x[1],scaleX:.001,scaleY:.001},m.attr(S),E&&(E.attrSetters=m.attrSetters,E.attr(S))):(S={translateX:m.oldtranslateX,translateY:m.oldtranslateY,scaleX:1,scaleY:1},m.animate(S,L),E&&E.animate(S,L))}else super.animate.apply(this,arguments)}getDataLabelPosition(v,x){let m=super.getDataLabelPosition(v,x);if(this.chart.is3d()){let E=this.chart.options.chart.options3d,L=v.shapeArgs,S=L.r,w=(L.alpha||E?.alpha)*a,R=(L.beta||E?.beta)*a,O=(L.start+L.end)/2,I=m.connectorPosition,_=-S*(1-Math.cos(w))*Math.sin(O),P=S*(Math.cos(R)-1)*Math.cos(O);for(let F of[m?.natural,I.breakAt,I.touchingSliceAt])F.x+=P,F.y+=_}return m}pointAttribs(v){let x=super.pointAttribs.apply(this,arguments),m=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(x.stroke=m.edgeColor||v.color||this.color,x["stroke-width"]=g(m.edgeWidth,1)),x}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let v=this.options,x=v.depth||0,m=this.chart.options.chart.options3d,E=m.alpha,L=m.beta,S=v.stacking?(v.stack||0)*x:this._i*x;for(let w of(S+=x/2,v.grouping!==!1&&(S=0),this.points)){let R=w.shapeArgs;w.shapeType="arc3d",R.z=S,R.depth=.75*x,R.alpha=E,R.beta=L,R.center=this.center;let O=(R.end+R.start)/2;w.slicedTranslation={translateX:Math.round(Math.cos(O)*v.slicedOffset*Math.cos(E*a)),translateY:Math.round(Math.sin(O)*v.slicedOffset*Math.cos(E*a))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let v of this.points)if(v.graphic)for(let x of["out","inn","side1","side2"])v.graphic&&(v.graphic[x].element.point=v)}}}return c(p.prototype,{pointClass:i}),p}),s(t,"Series/Scatter3D/Scatter3DPoint.js",[t["Series/Scatter/ScatterSeries.js"],t["Core/Utilities.js"]],function(e,i){let{pointClass:r}=e.prototype,{defined:n}=i;return class extends r{applyOptions(){return super.applyOptions.apply(this,arguments),n(this.z)||(this.z=0),this}}}),s(t,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),s(t,"Series/Scatter3D/Scatter3DSeries.js",[t["Core/Math3D.js"],t["Series/Scatter3D/Scatter3DPoint.js"],t["Series/Scatter3D/Scatter3DSeriesDefaults.js"],t["Series/Scatter/ScatterSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{pointCameraDistance:h}=e,{extend:c,merge:g}=a;class u extends n{pointAttribs(b){let v=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&b&&(v.zIndex=h(b,this.chart)),v}}return u.defaultOptions=g(n.defaultOptions,r),c(u.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:i}),l.registerSeriesType("scatter3d",u),u}),s(t,"masters/highcharts-3d.src.js",[t["Core/Globals.js"],t["Core/Chart/Chart3D.js"],t["Series/Area3D/Area3DSeries.js"],t["Core/Axis/Axis3DComposition.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series3D.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Renderer/SVG/SVGRenderer3D.js"],t["Core/Axis/ZAxis.js"],t["Series/Column3D/Column3DComposition.js"],t["Series/Pie3D/Pie3DSeries.js"]],function(e,i,r,n,l,a,h,c,g,u,p){return r.compose(e.seriesTypes.area),n.compose(e.Axis,e.Tick),i.compose(e.Chart,e.Fx),u.compose(e.Series,h),p.compose(e.Series),a.compose(e.Series),c.compose(l.getRendererType()),g.compose(e.Chart),e})})});var Au=qe((RT,Yn)=>{"use strict";(function(o){typeof Yn=="object"&&Yn.exports?(o.default=o,Yn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;return function(i){i.compose=function(n){return n.navigation||(n.navigation=new r(n)),n};class r{constructor(l){this.updates=[],this.chart=l}addUpdate(l){this.chart.navigation.updates.push(l)}update(l,a){this.updates.forEach(h=>{h.call(this.chart,l,a)})}}i.Additions=r}(e||(e={})),e}),s(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(e){let{isTouchDevice:i}=e;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:i?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),s(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var e;return function(i){let r=[];function n(a,h,c,g){return[["M",a,h+2.5],["L",a+c,h+2.5],["M",a,h+g/2+.5],["L",a+c,h+g/2+.5],["M",a,h+g-1.5],["L",a+c,h+g-1.5]]}function l(a,h,c,g){let u=g/3-2;return[].concat(this.circle(c-u,h,u,u),this.circle(c-u,h+u+4,u,u),this.circle(c-u,h+2*(u+4),u,u))}i.compose=function(a){if(r.indexOf(a)===-1){r.push(a);let h=a.prototype.symbols;h.menu=n,h.menuball=l.bind(h)}}}(e||(e={})),e}),s(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r){let{composed:n}=i,{addEvent:l,fireEvent:a,pushUnique:h}=r;function c(){this.fullscreen=new g(this)}class g{static compose(p){h(n,"Fullscreen")&&l(p,"beforeRender",c)}constructor(p){this.chart=p,this.isOpen=!1;let b=p.renderTo;!this.browserProps&&(typeof b.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:b.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:b.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:b.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let p=this,b=p.chart,v=b.options.chart;a(b,"fullscreenClose",null,function(){p.isOpen&&p.browserProps&&b.container.ownerDocument instanceof Document&&b.container.ownerDocument[p.browserProps.exitFullscreen](),p.unbindFullscreenEvent&&(p.unbindFullscreenEvent=p.unbindFullscreenEvent()),b.setSize(p.origWidth,p.origHeight,!1),p.origWidth=void 0,p.origHeight=void 0,v.width=p.origWidthOption,v.height=p.origHeightOption,p.origWidthOption=void 0,p.origHeightOption=void 0,p.isOpen=!1,p.setButtonText()})}open(){let p=this,b=p.chart,v=b.options.chart;a(b,"fullscreenOpen",null,function(){if(v&&(p.origWidthOption=v.width,p.origHeightOption=v.height),p.origWidth=b.chartWidth,p.origHeight=b.chartHeight,p.browserProps){let x=l(b.container.ownerDocument,p.browserProps.fullscreenChange,function(){p.isOpen?(p.isOpen=!1,p.close()):(b.setSize(null,null,!1),p.isOpen=!0,p.setButtonText())}),m=l(b,"destroy",x);p.unbindFullscreenEvent=()=>{x(),m()};let E=b.renderTo[p.browserProps.requestFullscreen]();E&&E.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let p=this.chart,b=p.exportDivElements,v=p.options.exporting,x=v&&v.buttons&&v.buttons.contextButton.menuItems,m=p.options.lang;if(v&&v.menuItemDefinitions&&m&&m.exitFullscreen&&m.viewFullscreen&&x&&b){let E=b[x.indexOf("viewFullscreen")];E&&e.setElementHTML(E,this.isOpen?m.exitFullscreen:v.menuItemDefinitions.viewFullscreen.text||m.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return g}),s(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{win:r}=e,{discardElement:n,objectEach:l}=i,a={ajax:function(h){let c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},g=new XMLHttpRequest;function u(p,b){h.error&&h.error(p,b)}if(!h.url)return!1;g.open((h.type||"get").toUpperCase(),h.url,!0),h.headers&&h.headers["Content-Type"]||g.setRequestHeader("Content-Type",c[h.dataType||"json"]||c.text),l(h.headers,function(p,b){g.setRequestHeader(b,p)}),h.responseType&&(g.responseType=h.responseType),g.onreadystatechange=function(){let p;if(g.readyState===4){if(g.status===200){if(h.responseType!=="blob"&&(p=g.responseText,h.dataType==="json"))try{p=JSON.parse(p)}catch(b){if(b instanceof Error)return u(g,b)}return h.success&&h.success(p,g)}u(g,g.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),g.send(h.data)},getJSON:function(h,c){a.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,g){let u=new r.FormData;l(c,function(v,x){u.append(x,v)}),u.append("b64","true");let{filename:p,type:b}=c;return r.fetch(h,xe({method:"POST",body:u},g)).then(v=>{v.ok&&v.text().then(x=>{let m=document.createElement("a");m.href=`data:${b};base64,${x}`,m.download=p,m.click(),n(m)})})}};return a}),s(t,"Extensions/Exporting/Exporting.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/Defaults.js"],t["Extensions/Exporting/ExportingDefaults.js"],t["Extensions/Exporting/ExportingSymbols.js"],t["Extensions/Exporting/Fullscreen.js"],t["Core/Globals.js"],t["Core/HttpUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,g,u){var p;let{defaultOptions:b}=n,{doc:v,SVG_NS:x,win:m}=c,{addEvent:E,css:L,createElement:S,discardElement:w,extend:R,find:O,fireEvent:I,isObject:_,merge:P,objectEach:F,pick:A,removeEvent:D,uniqueKey:C}=u;return function(d){let f,y=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^[0-9]+$/],M=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];d.inlineAllowlist=[];let k=["clipPath","defs","desc"];function T($){let Q,et,it=this,st=it.renderer,rt=P(it.options.navigation.buttonOptions,$),nt=rt.onclick,ot=rt.menuItems,at=rt.symbolSize||12;if(it.btnCount||(it.btnCount=0),it.exportDivElements||(it.exportDivElements=[],it.exportSVGElements=[]),rt.enabled===!1||!rt.theme)return;let ct=it.styledMode?{}:rt.theme;nt?et=function(lt){lt&<.stopPropagation(),nt.call(it,lt)}:ot&&(et=function(lt){lt&<.stopPropagation(),it.contextMenu(ht.menuClassName,ot,ht.translateX||0,ht.translateY||0,ht.width||0,ht.height||0,ht),ht.setState(2)}),rt.text&&rt.symbol?ct.paddingLeft=A(ct.paddingLeft,30):rt.text||R(ct,{width:rt.width,height:rt.height,padding:0});let ht=st.button(rt.text,0,0,et,ct,void 0,void 0,void 0,void 0,rt.useHTML).addClass($.className).attr({title:A(it.options.lang[rt._titleKey||rt.titleKey],"")});ht.menuClassName=$.menuClassName||"highcharts-menu-"+it.btnCount++,rt.symbol&&(Q=st.symbol(rt.symbol,Math.round((rt.symbolX||0)-at/2),Math.round((rt.symbolY||0)-at/2),at,at,{width:at,height:at}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(ht),it.styledMode||Q.attr({stroke:rt.symbolStroke,fill:rt.symbolFill,"stroke-width":rt.symbolStrokeWidth||1})),ht.add(it.exportingGroup).align(R(rt,{width:ht.width,x:A(rt.x,it.buttonOffset)}),!0,"spacingBox"),it.buttonOffset+=((ht.width||0)+rt.buttonSpacing)*(rt.align==="right"?-1:1),it.exportSVGElements.push(ht,Q)}function z(){if(!this.printReverseInfo)return;let{childNodes:$,origDisplay:Q,resetParams:et}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call($,function(it,st){it.nodeType===1&&(it.style.display=Q[st]||"")}),this.isPrinting=!1,et&&this.setSize.apply(this,et),delete this.printReverseInfo,f=void 0,I(this,"afterPrint")}function N(){let $=v.body,Q=this.options.exporting.printMaxWidth,et={childNodes:$.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),I(this,"beforePrint"),Q&&this.chartWidth>Q&&(et.resetParams=[this.options.chart.width,void 0,!1],this.setSize(Q,void 0,!1)),[].forEach.call(et.childNodes,function(it,st){it.nodeType===1&&(et.origDisplay[st]=it.style.display,it.style.display="none")}),this.moveContainers($),this.printReverseInfo=et}function G($){$.renderExporting(),E($,"redraw",$.renderExporting),E($,"destroy",$.destroyExport)}function X($,Q,et,it,st,rt,nt){let ot=this,at=ot.options.navigation,ct=ot.chartWidth,ht=ot.chartHeight,lt="cache-"+$,xt=Math.max(st,rt),wt,dt=ot[lt];dt||(ot.exportContextMenu=ot[lt]=dt=S("div",{className:$},xe({position:"absolute",zIndex:1e3,padding:xt+"px",pointerEvents:"auto"},ot.renderer.style),ot.scrollablePlotArea?.fixedDiv||ot.container),wt=S("ul",{className:"highcharts-menu"},ot.styledMode?{}:{listStyle:"none",margin:0,padding:0},dt),ot.styledMode||L(wt,R({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},at.menuStyle)),dt.hideMenu=function(){L(dt,{display:"none"}),nt&&nt.setState(0),ot.openMenu=!1,L(ot.renderTo,{overflow:"hidden"}),L(ot.container,{overflow:"hidden"}),u.clearTimeout(dt.hideTimer),I(ot,"exportMenuHidden")},ot.exportEvents.push(E(dt,"mouseleave",function(){dt.hideTimer=m.setTimeout(dt.hideMenu,500)}),E(dt,"mouseenter",function(){u.clearTimeout(dt.hideTimer)}),E(v,"mouseup",function(ft){ot.pointer?.inClass(ft.target,$)||dt.hideMenu()}),E(dt,"click",function(){ot.openMenu&&dt.hideMenu()})),Q.forEach(function(ft){if(typeof ft=="string"&&(ft=ot.options.exporting.menuItemDefinitions[ft]),_(ft,!0)){let Tt;ft.separator?Tt=S("hr",void 0,void 0,wt):(ft.textKey==="viewData"&&ot.isDataTableVisible&&(ft.textKey="hideData"),Tt=S("li",{className:"highcharts-menu-item",onclick:function(zt){zt&&zt.stopPropagation(),dt.hideMenu(),typeof ft!="string"&&ft.onclick&&ft.onclick.apply(ot,arguments)}},void 0,wt),e.setElementHTML(Tt,ft.text||ot.options.lang[ft.textKey]),ot.styledMode||(Tt.onmouseover=function(){L(this,at.menuItemHoverStyle)},Tt.onmouseout=function(){L(this,at.menuItemStyle)},L(Tt,R({cursor:"pointer"},at.menuItemStyle||{})))),ot.exportDivElements.push(Tt)}}),ot.exportDivElements.push(wt,dt),ot.exportMenuWidth=dt.offsetWidth,ot.exportMenuHeight=dt.offsetHeight);let Ct={display:"block"};et+(ot.exportMenuWidth||0)>ct?Ct.right=ct-et-st-xt+"px":Ct.left=et-xt+"px",it+rt+(ot.exportMenuHeight||0)>ht&&nt.alignOptions?.verticalAlign!=="top"?Ct.bottom=ht-it-xt+"px":Ct.top=it+rt-xt+"px",L(dt,Ct),L(ot.renderTo,{overflow:""}),L(ot.container,{overflow:""}),ot.openMenu=!0,I(ot,"exportMenuShown")}function j($){let Q,et=$?$.target:this,it=et.exportSVGElements,st=et.exportDivElements,rt=et.exportEvents;it&&(it.forEach((nt,ot)=>{nt&&(nt.onclick=nt.ontouchstart=null,et[Q="cache-"+nt.menuClassName]&&delete et[Q],it[ot]=nt.destroy())}),it.length=0),et.exportingGroup&&(et.exportingGroup.destroy(),delete et.exportingGroup),st&&(st.forEach(function(nt,ot){nt&&(u.clearTimeout(nt.hideTimer),D(nt,"mouseleave"),st[ot]=nt.onmouseout=nt.onmouseover=nt.ontouchstart=nt.onclick=null,w(nt))}),st.length=0),rt&&(rt.forEach(function(nt){nt()}),rt.length=0)}function B($,Q){let et=this.getSVGForExport($,Q);$=P(this.options.exporting,$),g.post($.url,{filename:$.filename?$.filename.replace(/\//g,"-"):this.getFilename(),type:$.type,width:$.width,scale:$.scale,svg:et},$.fetchOptions)}function W(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function Y(){let $=this.userOptions.title&&this.userOptions.title.text,Q=this.options.exporting.filename;return Q?Q.replace(/\//g,"-"):(typeof $=="string"&&(Q=$.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!Q||Q.length<5)&&(Q="chart"),Q)}function U($){let Q,et,it=P(this.options,$);it.plotOptions=P(this.userOptions.plotOptions,$&&$.plotOptions),it.time=P(this.userOptions.time,$&&$.time);let st=S("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},v.body),rt=this.renderTo.style.width,nt=this.renderTo.style.height,ot=it.exporting.sourceWidth||it.chart.width||/px$/.test(rt)&&parseInt(rt,10)||(it.isGantt?800:600),at=it.exporting.sourceHeight||it.chart.height||/px$/.test(nt)&&parseInt(nt,10)||400;R(it.chart,{animation:!1,renderTo:st,forExport:!0,renderer:"SVGRenderer",width:ot,height:at}),it.exporting.enabled=!1,delete it.data,it.series=[],this.series.forEach(function(lt){(et=P(lt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:lt.visible})).isInternal||it.series.push(et)});let ct={};this.axes.forEach(function(lt){lt.userOptions.internalKey||(lt.userOptions.internalKey=C()),lt.options.isInternal||(ct[lt.coll]||(ct[lt.coll]=!0,it[lt.coll]=[]),it[lt.coll].push(P(lt.userOptions,{visible:lt.visible})))}),it.colorAxis=this.userOptions.colorAxis;let ht=new this.constructor(it,this.callback);return $&&["xAxis","yAxis","series"].forEach(function(lt){let xt={};$[lt]&&(xt[lt]=$[lt],ht.update(xt))}),this.axes.forEach(function(lt){let xt=O(ht.axes,function(ft){return ft.options.internalKey===lt.userOptions.internalKey}),wt=lt.getExtremes(),dt=wt.userMin,Ct=wt.userMax;xt&&(dt!==void 0&&dt!==xt.min||Ct!==void 0&&Ct!==xt.max)&&xt.setExtremes(dt,Ct,!0,!1)}),Q=ht.getChartHTML(),I(this,"getSVG",{chartCopy:ht}),Q=this.sanitizeSVG(Q,it),it=null,ht.destroy(),w(st),Q}function q($,Q){let et=this.options.exporting;return this.getSVG(P({chart:{borderRadius:0}},et.chartOptions,Q,{exporting:{sourceWidth:$&&$.sourceWidth||et.sourceWidth,sourceHeight:$&&$.sourceHeight||et.sourceHeight}}))}function H(){let $,Q=d.inlineAllowlist,et={},it=v.createElement("iframe");L(it,{width:"1px",height:"1px",visibility:"hidden"}),v.body.appendChild(it);let st=it.contentWindow&&it.contentWindow.document;st&&st.body.appendChild(st.createElementNS(x,"svg")),function rt(nt){let ot,at,ct,ht,lt,xt,wt={};if(st&&nt.nodeType===1&&k.indexOf(nt.nodeName)===-1){if(ot=m.getComputedStyle(nt,null),at=nt.nodeName==="svg"?{}:m.getComputedStyle(nt.parentNode,null),!et[nt.nodeName]){$=st.getElementsByTagName("svg")[0],ct=st.createElementNS(nt.namespaceURI,nt.nodeName),$.appendChild(ct);let dt=m.getComputedStyle(ct,null),Ct={};for(let ft in dt)ft.length<1e3&&typeof dt[ft]=="string"&&!/^[0-9]+$/.test(ft)&&(Ct[ft]=dt[ft]);et[nt.nodeName]=Ct,nt.nodeName==="text"&&delete et.text.fill,$.removeChild(ct)}for(let dt in ot)(c.isFirefox||c.isMS||c.isSafari||Object.hasOwnProperty.call(ot,dt))&&function(Ct,ft){if(ht=lt=!1,Q.length){for(xt=Q.length;xt--&&!lt;)lt=Q[xt].test(ft);ht=!lt}for(ft==="transform"&&Ct==="none"&&(ht=!0),xt=y.length;xt--&&!ht;){if(ft.length>1e3)throw Error("Input too long");ht=y[xt].test(ft)||typeof Ct=="function"}!ht&&(at[ft]!==Ct||nt.nodeName==="svg")&&et[nt.nodeName][ft]!==Ct&&(M&&M.indexOf(ft)===-1?wt[ft]=Ct:Ct&&nt.setAttribute(ft.replace(/([A-Z])/g,function(Tt,zt){return"-"+zt.toLowerCase()}),Ct))}(ot[dt],dt);if(L(nt,wt),nt.nodeName==="svg"&&nt.setAttribute("stroke-width","1px"),nt.nodeName==="text")return;[].forEach.call(nt.children||nt.childNodes,rt)}}(this.container.querySelector("svg")),$.parentNode.removeChild($),it.parentNode.removeChild(it)}function V($){let{scrollablePlotArea:Q}=this;(Q?[Q.fixedDiv,Q.scrollingContainer]:[this.container]).forEach(function(et){$.appendChild(et)})}function Z(){let $=this,Q=(et,it,st)=>{$.isDirtyExporting=!0,P(!0,$.options[et],it),A(st,!0)&&$.redraw()};$.exporting={update:function(et,it){Q("exporting",et,it)}},r.compose($).navigation.addUpdate((et,it)=>{Q("navigation",et,it)})}function K(){let $=this;$.isPrinting||(f=$,c.isSafari||$.beforePrint(),setTimeout(()=>{m.focus(),m.print(),c.isSafari||setTimeout(()=>{$.afterPrint()},1e3)},1))}function J(){let $=this,Q=$.options.exporting,et=Q.buttons,it=$.isDirtyExporting||!$.exportSVGElements;$.buttonOffset=0,$.isDirtyExporting&&$.destroyExport(),it&&Q.enabled!==!1&&($.exportEvents=[],$.exportingGroup=$.exportingGroup||$.renderer.g("exporting-group").attr({zIndex:3}).add(),F(et,function(st){$.addButton(st)}),$.isDirtyExporting=!1)}function tt($,Q){let et=$.indexOf("")+6,it=$.substr(et);return $=$.substr(0,et),Q&&Q.exporting&&Q.exporting.allowHTML&&it&&(it=''+it.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",$=$.replace("",it+"")),$=$.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{"use strict";(function(o){typeof Vn=="object"&&Vn.exports?(o.default=o,Vn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/stock",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{tooltipFormatter:a}=i.prototype,{addEvent:h,arrayMax:c,arrayMin:g,correctFloat:u,defined:p,isArray:b,isNumber:v,isString:x,pick:m}=n;return function(E){function L(D,C,d){!this.isXAxis&&(this.series.forEach(function(f){D==="compare"&&typeof C!="boolean"?f.setCompare(C,!1):D!=="cumulative"||x(C)||f.setCumulative(C,!1)}),m(d,!0)&&this.chart.redraw())}function S(D){let C=this,{numberFormatter:d}=C.series.chart,f=function(y){D=D.replace("{point."+y+"}",(C[y]>0&&y==="change"?"+":"")+d(C[y],m(C.series.tooltipOptions.changeDecimals,2)))};return p(C.change)&&f("change"),p(C.cumulativeSum)&&f("cumulativeSum"),a.apply(this,[D])}function w(){let D,C=this.options.compare;(C==="percent"||C==="value"||this.options.cumulative)&&(D=new A(this),C==="percent"||C==="value"?D.initCompare(C):D.initCumulative()),this.dataModify=D}function R(D){let C=D.dataExtremes,d=C.activeYData;if(this.dataModify&&C){let f;this.options.compare?f=[this.dataModify.modifyValue(C.dataMin),this.dataModify.modifyValue(C.dataMax)]:this.options.cumulative&&b(d)&&d.length>=2&&(f=A.getCumulativeExtremes(d)),f&&(C.dataMin=g(f),C.dataMax=c(f))}}function O(D,C){this.options.compare=this.userOptions.compare=D,this.update({},m(C,!0)),this.dataModify&&(D==="value"||D==="percent")?this.dataModify.initCompare(D):this.points.forEach(d=>{delete d.change})}function I(){if(this.xAxis&&this.processedYData&&this.dataModify){let D=this.processedXData,C=this.processedYData,d=C.length,f=this.options.compareStart===!0?0:1,y=-1,M;for(this.pointArrayMap&&(y=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),M=0;M-1?C[M][y]:C[M];if(v(k)&&k!==0&&D[M+f]>=(this.xAxis.min||0)){this.dataModify.compareValue=k;break}}}}function _(D,C){this.setModifier("compare",D,C)}function P(D,C){D=m(D,!1),this.options.cumulative=this.userOptions.cumulative=D,this.update({},m(C,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(d=>{delete d.cumulativeSum})}function F(D,C){this.setModifier("cumulative",D,C)}E.compose=function(D,C,d){let f=C.prototype,y=d.prototype,M=D.prototype;return M.setCompare||(M.setCompare=O,M.setCumulative=P,h(D,"afterInit",w),h(D,"afterGetExtremes",R),h(D,"afterProcessData",I)),f.setCompare||(f.setCompare=_,f.setModifier=L,f.setCumulative=F,y.tooltipFormatter=S),D};class A{constructor(C){this.series=C}modifyValue(){return 0}static getCumulativeExtremes(C){let d=1/0,f=-1/0;return C.reduce((y,M)=>{let k=y+M;return d=Math.min(d,k,y),f=Math.max(f,k,y),k}),[d,f]}initCompare(C){this.modifyValue=function(d,f){d===null&&(d=0);let y=this.compareValue;if(d!==void 0&&y!==void 0){if(C==="value"?d-=y:d=d/y*100-(this.series.options.compareBase===100?0:100),f!==void 0){let M=this.series.points[f];M&&(M.change=d)}return d}return 0}}initCumulative(){this.modifyValue=function(C,d){if(C===null&&(C=0),C!==void 0&&d!==void 0){let f=d>0?this.series.points[d-1]:null;f&&f.cumulativeSum&&(C=u(f.cumulativeSum+C));let y=this.series.points[d],M=y.series.options.cumulativeStart,k=y.x<=this.series.xAxis.max&&y.x>=this.series.xAxis.min;return y&&(!M||k?y.cumulativeSum=C:y.cumulativeSum=void 0),C}return 0}}}E.Additions=A}(l||(l={})),l}),s(t,"Stock/Navigator/ChartNavigatorComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let r,{isTouchDevice:n}=e,{addEvent:l,merge:a,pick:h}=i,c=[];function g(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function u(){let E,L,S,w=this.legend,R=this.navigator;if(R){E=w&&w.options,L=R.xAxis,S=R.yAxis;let{scrollbarHeight:O,scrollButtonSize:I}=R;this.inverted?(R.left=R.opposite?this.chartWidth-O-R.height:this.spacing[3]+O,R.top=this.plotTop+I):(R.left=h(L.left,this.plotLeft+I),R.top=R.navigatorOptions.top||this.chartHeight-R.height-O-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(E&&E.verticalAlign==="bottom"&&E.layout!=="proximate"&&E.enabled&&!E.floating?w.legendHeight+h(E.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),L&&S&&(this.inverted?L.options.left=S.options.left=R.left:L.options.top=S.options.top=R.top,L.setAxisSize(),S.setAxisSize())}}function p(E){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this),h(E.redraw,!0)&&this.redraw(E.animation))}function b(){let E=this.options;(E.navigator.enabled||E.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this))}function v(){let E=this.options,L=E.navigator,S=E.rangeSelector;if((L&&L.enabled||S&&S.enabled)&&(!n&&this.zooming.type==="x"||n&&this.zooming.pinchType==="x"))return!1}function x(E){let L=E.navigator;if(L&&E.xAxis[0]){let S=E.xAxis[0].getExtremes();L.render(S.min,S.max)}}function m(E){let L=E.options.navigator||{},S=E.options.scrollbar||{};!this.navigator&&!this.scroller&&(L.enabled||S.enabled)&&(a(!0,this.options.navigator,L),a(!0,this.options.scrollbar,S),delete E.options.navigator,delete E.options.scrollbar)}return{compose:function(E,L){if(i.pushUnique(c,E)){let S=E.prototype;r=L,S.callbacks.push(x),l(E,"afterAddSeries",g),l(E,"afterSetChartSize",u),l(E,"afterUpdate",p),l(E,"beforeRender",b),l(E,"beforeShowResetZoom",v),l(E,"update",m)}}}}),s(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{isTouchDevice:r}=e,{addEvent:n,correctFloat:l,defined:a,isNumber:h,pick:c}=i;function g(){this.navigatorAxis||(this.navigatorAxis=new p(this))}function u(b){let v,x=this.chart,m=x.options,E=m.navigator,L=this.navigatorAxis,S=x.zooming.pinchType,w=m.rangeSelector,R=x.zooming.type;if(this.isXAxis&&(E?.enabled||w?.enabled)){if(R==="y"&&b.trigger==="zoom")v=!1;else if((b.trigger==="zoom"&&R==="xy"||r&&S==="xy")&&this.options.range){let O=L.previousZoom;a(b.min)?L.previousZoom=[this.min,this.max]:O&&(b.min=O[0],b.max=O[1],L.previousZoom=void 0)}}v!==void 0&&b.preventDefault()}class p{static compose(v){v.keepProps.includes("navigatorAxis")||(v.keepProps.push("navigatorAxis"),n(v,"init",g),n(v,"setExtremes",u))}constructor(v){this.axis=v}destroy(){this.axis=void 0}toFixedRange(v,x,m,E){let L=this.axis,S=(L.pointRange||0)/2,w=c(m,L.translate(v,!0,!L.horiz)),R=c(E,L.translate(x,!0,!L.horiz));return a(m)||(w=l(w+S)),a(E)||(R=l(R-S)),h(w)&&h(R)||(w=R=void 0),{min:w,max:R}}}return p}),s(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(e,i){let{parse:r}=e,{seriesTypes:n}=i;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:r("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:n.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),s(t,"Stock/Navigator/NavigatorSymbols.js",[t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(e,i){let{relativeLength:r}=i;return{"navigator-handle":function(n,l,a,h,c={}){let g=c.width?c.width/2:a,u=r(c.borderRadius||0,Math.min(2*g,h));return[["M",-1.5,(h=c.height||h)/2-3.5],["L",-1.5,h/2+4.5],["M",.5,h/2-3.5],["L",.5,h/2+4.5],...e.rect(-g-1,.5,2*g+1,h,{r:u})]}}}),s(t,"Stock/Utilities/StockUtilities.js",[t["Core/Utilities.js"]],function(e){let{defined:i}=e;return{setFixedRange:function(r){let n=this.xAxis[0];i(n.dataMax)&&i(n.dataMin)&&r?this.fixedRange=Math.min(r,n.dataMax-n.dataMin):this.fixedRange=r}}}),s(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{setOptions:g}=e,{composed:u}=i,{getRendererType:p}=a,{setFixedRange:b}=h,{addEvent:v,extend:x,pushUnique:m}=c;function E(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(L,S,w){r.compose(S),m(u,"Navigator")&&(L.prototype.setFixedRange=b,x(p().prototype.symbols,l),v(w,"afterUpdate",E),g({navigator:n}))}}}),s(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){var r;let{composed:n}=e,{addEvent:l,defined:a,pick:h,pushUnique:c}=i;return function(g){let u;function p(m){let E=h(m.options&&m.options.min,m.min),L=h(m.options&&m.options.max,m.max);return{axisMin:E,axisMax:L,scrollMin:a(m.dataMin)?Math.min(E,m.min,m.dataMin,h(m.threshold,1/0)):E,scrollMax:a(m.dataMax)?Math.max(L,m.max,m.dataMax,h(m.threshold,-1/0)):L}}function b(){let m=this.scrollbar,E=m&&!m.options.opposite,L=this.horiz?2:E?3:1;m&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[L]+=m.size+(m.options.margin||0))}function v(){let m=this;m.options&&m.options.scrollbar&&m.options.scrollbar.enabled&&(m.options.scrollbar.vertical=!m.horiz,m.options.startOnTick=m.options.endOnTick=!1,m.scrollbar=new u(m.chart.renderer,m.options.scrollbar,m.chart),l(m.scrollbar,"changed",function(E){let L,S,{axisMin:w,axisMax:R,scrollMin:O,scrollMax:I}=p(m),_=I-O;if(a(w)&&a(R))if(m.horiz&&!m.reversed||!m.horiz&&m.reversed?(L=O+_*this.to,S=O+_*this.from):(L=O+_*(1-this.from),S=O+_*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)){let P=E.DOMType!=="mousemove"&&E.DOMType!=="touchmove"&&void 0;m.setExtremes(S,L,!0,P,E)}else this.setRange(this.from,this.to)}))}function x(){let m,E,L,{scrollMin:S,scrollMax:w}=p(this),R=this.scrollbar,O=this.axisTitleMargin+(this.titleOffset||0),I=this.chart.scrollbarsOffsets,_=this.options.margin||0;if(R&&I){if(this.horiz)this.opposite||(I[1]+=O),R.position(this.left,this.top+this.height+2+I[1]-(this.opposite?_:0),this.width,this.height),this.opposite||(I[1]+=_),m=1;else{let P;this.opposite&&(I[0]+=O),P=R.options.opposite?this.left+this.width+2+I[0]-(this.opposite?0:_):this.opposite?0:_,R.position(P,this.top,this.width,this.height),this.opposite&&(I[0]+=_),m=0}I[m]+=R.size+(R.options.margin||0),isNaN(S)||isNaN(w)||!a(this.min)||!a(this.max)||this.min===this.max?R.setRange(0,1):(E=(this.min-S)/(w-S),L=(this.max-S)/(w-S),this.horiz&&!this.reversed||!this.horiz&&this.reversed?R.setRange(E,L):R.setRange(1-L,1-E))}}g.compose=function(m,E){c(n,"Axis.Scrollbar")&&(u=E,l(m,"afterGetOffset",b),l(m,"afterInit",v),l(m,"afterRender",x))}}(r||(r={})),r}),s(t,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),s(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{defaultOptions:a}=e,{addEvent:h,correctFloat:c,crisp:g,defined:u,destroyObjectProperties:p,fireEvent:b,merge:v,pick:x,removeEvent:m}=l;class E{static compose(S){r.compose(S,E)}static swapXY(S,w){return w&&S.forEach(R=>{let O,I=R.length;for(let _=0;_this.calculatedWidth?w.minWidth:0;return{chartX:(S.chartX-this.x-this.xOffset)/(this.barWidth-R),chartY:(S.chartY-this.y-this.yOffset)/(this.barWidth-R)}}destroy(){let S=this,w=S.chart.scroller;S.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(R){S[R]&&S[R].destroy&&(S[R]=S[R].destroy())}),w&&S===w.scrollbar&&(w.scrollbar=null,p(w.scrollbarButtons))}drawScrollbarButton(S){let w=this.renderer,R=this.scrollbarButtons,O=this.options,I=this.size,_=w.g().add(this.group);if(R.push(_),O.buttonsEnabled){let P=w.rect().addClass("highcharts-scrollbar-button").add(_);this.chart.styledMode||P.attr({stroke:O.buttonBorderColor,"stroke-width":O.buttonBorderWidth,fill:O.buttonBackgroundColor}),P.attr(P.crisp({x:-.5,y:-.5,width:I,height:I,r:O.buttonBorderRadius},P.strokeWidth()));let F=w.path(E.swapXY([["M",I/2+(S?-1:1),I/2-3],["L",I/2+(S?-1:1),I/2+3],["L",I/2+(S?2:-2),I/2]],O.vertical)).addClass("highcharts-scrollbar-arrow").add(R[S]);this.chart.styledMode||F.attr({fill:O.buttonArrowColor})}}init(S,w,R){this.scrollbarButtons=[],this.renderer=S,this.userOptions=w,this.options=v(n,a.scrollbar,w),this.options.margin=x(this.options.margin,10),this.chart=R,this.size=x(this.options.size,this.options.height),w.enabled&&(this.render(),this.addEvents())}mouseDownHandler(S){let w=this.chart.pointer?.normalize(S)||S,R=this.cursorToScrollbarPosition(w);this.chartX=R.chartX,this.chartY=R.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(S){let w,R=this.chart.pointer?.normalize(S)||S,O=this.options.vertical?"chartY":"chartX",I=this.initPositions||[];this.grabbedCenter&&(!S.touches||S.touches[0][O]!==0)&&(w=this.cursorToScrollbarPosition(R)[O]-this[O],this.hasDragged=!0,this.updatePosition(I[0]+w,I[1]+w),this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}))}mouseUpHandler(S){this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(S,w,R,O){let{buttonsEnabled:I,margin:_=0,vertical:P}=this.options,F=this.rendered?"animate":"attr",A=O,D=0;this.group.show(),this.x=S,this.y=w+this.trackBorderWidth,this.width=R,this.height=O,this.xOffset=A,this.yOffset=D,P?(this.width=this.yOffset=R=D=this.size,this.xOffset=A=0,this.yOffset=D=I?this.size:0,this.barWidth=O-(I?2*R:0),this.x=S+=_):(this.height=O=this.size,this.xOffset=A=I?this.size:0,this.barWidth=R-(I?2*O:0),this.y=this.y+_),this.group[F]({translateX:S,translateY:this.y}),this.track[F]({width:R,height:O}),this.scrollbarButtons[1][F]({translateX:P?0:R-A,translateY:P?O-D:0})}removeEvents(){this._events.forEach(function(S){m.apply(null,S)}),this._events.length=0}render(){let S=this.renderer,w=this.options,R=this.size,O=this.chart.styledMode,I=S.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();this.group=I,this.track=S.rect().addClass("highcharts-scrollbar-track").attr({r:w.trackBorderRadius||0,height:R,width:R}).add(I),O||this.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth});let _=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-g(0,_),y:-g(0,_)}),this.scrollbarGroup=S.g().add(I),this.scrollbar=S.rect().addClass("highcharts-scrollbar-thumb").attr({height:R-_,width:R-_,r:w.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=S.path(E.swapXY([["M",-3,R/4],["L",-3,2*R/3],["M",0,R/4],["L",0,2*R/3],["M",3,R/4],["L",3,2*R/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),O||(this.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),this.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-g(0,this.scrollbarStrokeWidth),-g(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(S,w){let R,O,I=this.options,_=I.vertical,P=I.minWidth,F=this.barWidth,A=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!u(F))return;let D=F*Math.min(w,1);R=Math.ceil(F*(S=Math.max(S,0))),this.calculatedWidth=O=c(D-R),O=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(S){return x(this.options.liveRedraw,i.svg&&!i.isTouchDevice&&!this.chart.boosted)||S==="mouseup"||S==="touchend"||!u(S)}trackClick(S){let w=this.chart.pointer?.normalize(S)||S,R=this.to-this.from,O=this.y+this.scrollbarTop,I=this.x+this.scrollbarLeft;this.options.vertical&&w.chartY>O||!this.options.vertical&&w.chartX>I?this.updatePosition(this.from+R,this.to+R):this.updatePosition(this.from-R,this.to-R),b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:S})}update(S){this.destroy(),this.init(this.chart.renderer,v(!0,this.options,S),this.chart)}updatePosition(S,w){w>1&&(S=c(1-c(w-S)),w=1),S<0&&(w=c(w-S),S=0),this.from=S,this.to=w}}return E.defaultOptions=n,a.scrollbar=v(!0,E.defaultOptions,a.scrollbar),E}),s(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Stock/Navigator/ChartNavigatorComposition.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:g}=r,{isTouchDevice:u}=n,{addEvent:p,clamp:b,correctFloat:v,defined:x,destroyObjectProperties:m,erase:E,extend:L,find:S,fireEvent:w,isArray:R,isNumber:O,merge:I,pick:_,removeEvent:P,splat:F}=c;function A(C,...d){let f=[].filter.call(d,O);if(f.length)return Math[C].apply(0,f)}class D{static compose(d,f,y){i.compose(d,D),a.compose(d,f,y)}constructor(d){this.scrollbarHeight=0,this.init(d)}drawHandle(d,f,y,M){let k=this.navigatorOptions.handles.height;this.handles[f][M](y?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(d,10)+.5-k)}:{translateX:Math.round(this.left+parseInt(d,10)),translateY:Math.round(this.top+this.height/2-k/2-1)})}drawOutline(d,f,y,M){let k=this.navigatorOptions.maskInside,T=this.outline.strokeWidth(),z=T/2,N=T%2/2,G=this.scrollButtonSize,X=this.size,j=this.top,B=this.height,W=j-z,Y=j+B,U=this.left,q,H;y?(q=j+f+N,f=j+d+N,H=[["M",U+B,j-G-N],["L",U+B,q],["L",U,q],["M",U,f],["L",U+B,f],["L",U+B,j+X+G]],k&&H.push(["M",U+B,q-z],["L",U+B,f+z])):(U-=G,d+=U+G-N,f+=U+G-N,H=[["M",U,W],["L",d,W],["L",d,Y],["M",f,Y],["L",f,W],["L",U+X+2*G,j+z]],k&&H.push(["M",d-z,W],["L",f+z,W])),this.outline[M]({d:H})}drawMasks(d,f,y,M){let k,T,z,N,G=this.left,X=this.top,j=this.height;y?(z=[G,G,G],N=[X,X+d,X+f],T=[j,j,j],k=[d,f-d,this.size-f]):(z=[G,G+d,G+f],N=[X,X,X],T=[d,f-d,this.size-f],k=[j,j,j]),this.shades.forEach((B,W)=>{B[M]({x:z[W],y:N[W],width:T[W],height:k[W]})})}renderElements(){let d=this,f=d.navigatorOptions,y=f.maskInside,M=d.chart,k=M.inverted,T=M.renderer,z={cursor:k?"ns-resize":"ew-resize"},N=d.navigatorGroup=T.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!y,y,!y].forEach((G,X)=>{let j=T.rect().addClass("highcharts-navigator-mask"+(X===1?"-inside":"-outside")).add(N);M.styledMode||(j.attr({fill:G?f.maskFill:"rgba(0,0,0,0)"}),X===1&&j.css(z)),d.shades[X]=j}),d.outline=T.path().addClass("highcharts-navigator-outline").add(N),M.styledMode||d.outline.attr({"stroke-width":f.outlineWidth,stroke:f.outlineColor}),f.handles&&f.handles.enabled){let G=f.handles,{height:X,width:j}=G;[0,1].forEach(B=>{d.handles[B]=T.symbol(G.symbols[B],-j/2-1,0,j,X,G),M.inverted&&d.handles[B].attr({rotation:90,rotationOriginX:Math.floor(-j/2),rotationOriginY:(X+j)/2}),d.handles[B].attr({zIndex:7-B}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][B]).add(N),M.styledMode||d.handles[B].attr({fill:G.backgroundColor,stroke:G.borderColor,"stroke-width":G.lineWidth}).css(z)})}}update(d){(this.series||[]).forEach(f=>{f.baseSeries&&delete f.baseSeries.navigatorSeries}),this.destroy(),I(!0,this.chart.options.navigator,d),this.init(this.chart)}render(d,f,y,M){let k=this.chart,T=this.xAxis,z=T.pointRange||0,N=T.navigatorAxis.fake?k.xAxis[0]:T,G=this.navigatorEnabled,X=this.rendered,j=k.inverted,B=k.xAxis[0].minRange,W=k.xAxis[0].options.maxRange,Y=this.scrollButtonSize,U,q,H,V=this.scrollbarHeight,Z,K;if(this.hasDragged&&!x(y))return;if(d=v(d-z/2),f=v(f+z/2),!O(d)||!O(f)){if(!X)return;y=0,M=_(T.width,N.width)}this.left=_(T.left,k.plotLeft+Y+(j?k.plotWidth:0));let J=this.size=Z=_(T.len,(j?k.plotHeight:k.plotWidth)-2*Y);U=j?V:Z+2*Y,y=_(y,T.toPixels(d,!0)),M=_(M,T.toPixels(f,!0)),O(y)&&Math.abs(y)!==1/0||(y=0,M=U);let tt=T.toValue(y,!0),$=T.toValue(M,!0),Q=Math.abs(v($-tt));QW&&(this.grabbedLeft?y=T.toPixels($-W-z,!0):this.grabbedRight&&(M=T.toPixels(tt+W+z,!0))),this.zoomedMax=b(Math.max(y,M),0,J),this.zoomedMin=b(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(y,M),0,J),this.range=this.zoomedMax-this.zoomedMin,J=Math.round(this.zoomedMax);let et=Math.round(this.zoomedMin);G&&(this.navigatorGroup.attr({visibility:"inherit"}),K=X&&!this.hasDragged?"animate":"attr",this.drawMasks(et,J,j,K),this.drawOutline(et,J,j,K),this.navigatorOptions.handles.enabled&&(this.drawHandle(et,0,j,K),this.drawHandle(J,1,j,K))),this.scrollbar&&(j?(H=this.top-Y,q=this.left-V+(G||!N.opposite?0:(N.titleOffset||0)+N.axisTitleMargin),V=Z+2*Y):(H=this.top+(G?this.height:-V),q=this.left-Y),this.scrollbar.position(q,H,U,V),this.scrollbar.setRange(this.zoomedMin/(Z||1),this.zoomedMax/(Z||1))),this.rendered=!0,w(this,"afterRender")}addMouseEvents(){let d=this,f=d.chart,y=f.container,M=[],k,T;d.mouseMoveHandler=k=function(z){d.onMouseMove(z)},d.mouseUpHandler=T=function(z){d.onMouseUp(z)},(M=d.getPartsEvents("mousedown")).push(p(f.renderTo,"mousemove",k),p(y.ownerDocument,"mouseup",T),p(f.renderTo,"touchmove",k),p(y.ownerDocument,"touchend",T)),M.concat(d.getPartsEvents("touchstart")),d.eventsToUnbind=M,d.series&&d.series[0]&&M.push(p(d.series[0].xAxis,"foundExtremes",function(){f.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(d){let f=this,y=[];return["shades","handles"].forEach(function(M){f[M].forEach(function(k,T){y.push(p(k.element,d,function(z){f[M+"Mousedown"](z,T)}))})}),y}shadesMousedown(d,f){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=this.xAxis,k=this.zoomedMin,T=this.size,z=this.range,N=this.left,G=d.chartX,X,j,B,W;y.inverted&&(G=d.chartY,N=this.top),f===1?(this.grabbedCenter=G,this.fixedWidth=z,this.dragOffset=G-k):(W=G-N-z/2,f===0?W=Math.max(0,W):f===2&&W+z>=T&&(W=T-z,this.reversedExtremes?(W-=z,j=this.getUnionExtremes().dataMin):X=this.getUnionExtremes().dataMax),W!==k&&(this.fixedWidth=z,x((B=M.navigatorAxis.toFixedRange(W,W+z,j,X)).min)&&w(this,"setRange",{min:Math.min(B.min,B.max),max:Math.max(B.min,B.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(d,f){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=y.xAxis[0],k=this.reversedExtremes;f===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=k?M.min:M.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=k?M.max:M.min),y.setFixedRange(void 0)}onMouseMove(d){let f=this,y=f.chart,M=f.navigatorSize,k=f.range,T=f.dragOffset,z=y.inverted,N=f.left,G;(!d.touches||d.touches[0].pageX!==0)&&(G=(d=y.pointer?.normalize(d)||d).chartX,z&&(N=f.top,G=d.chartY),f.grabbedLeft?(f.hasDragged=!0,f.render(0,0,G-N,f.otherHandlePos)):f.grabbedRight?(f.hasDragged=!0,f.render(0,0,f.otherHandlePos,G-N)):f.grabbedCenter&&(f.hasDragged=!0,GM+T-k&&(G=M+T-k),f.render(0,0,G-T,G-T+k)),f.hasDragged&&f.scrollbar&&_(f.scrollbar.options.liveRedraw,!u&&!this.chart.boosted)&&(d.DOMType=d.type,setTimeout(function(){f.onMouseUp(d)},0)))}onMouseUp(d){let f,y,M,k,T,z,N=this.chart,G=this.xAxis,X=this.scrollbar,j=d.DOMEvent||d,B=N.inverted,W=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!X||!X.hasDragged)||d.trigger==="scrollbar")&&(M=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?k=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(T=this.fixedExtreme),this.zoomedMax===this.size&&(T=this.reversedExtremes?M.dataMin:M.dataMax),this.zoomedMin===0&&(k=this.reversedExtremes?M.dataMax:M.dataMin),x((z=G.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,T)).min)&&w(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:j}})),d.DOMType!=="mousemove"&&d.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&O(this.zoomedMin)&&O(this.zoomedMax)&&(y=Math.round(this.zoomedMin),f=Math.round(this.zoomedMax),this.shades&&this.drawMasks(y,f,B,W),this.outline&&this.drawOutline(y,f,B,W),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(y,0,B,W),this.drawHandle(f,1,B,W)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(d){d()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let d=this.baseSeries||[];this.navigatorEnabled&&d[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&d.forEach(function(f){P(f,"updatedData",this.updatedDataHandler)},this),d[0].xAxis&&P(d[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(d){let f=d.options,y=f.navigator||{},M=y.enabled,k=f.scrollbar||{},T=k.enabled,z=M&&y.height||0,N=T&&k.height||0,G=k.buttonsEnabled&&N||0;this.handles=[],this.shades=[],this.chart=d,this.setBaseSeries(),this.height=z,this.scrollbarHeight=N,this.scrollButtonSize=G,this.scrollbarEnabled=T,this.navigatorEnabled=M,this.navigatorOptions=y,this.scrollbarOptions=k,this.opposite=_(y.opposite,!!(!M&&d.inverted));let X=this,j=X.baseSeries,B=d.xAxis.length,W=d.yAxis.length,Y=j&&j[0]&&j[0].xAxis||d.xAxis[0]||{options:{}};if(d.isDirtyBox=!0,X.navigatorEnabled?(X.xAxis=new e(d,I({breaks:Y.options.breaks,ordinal:Y.options.ordinal,overscroll:Y.options.overscroll},y.xAxis,{type:"datetime",index:B,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},d.inverted?{offsets:[G,0,-G,0],width:z}:{offsets:[0,-G,0,G],height:z}),"xAxis"),X.yAxis=new e(d,I(y.yAxis,{alignTicks:!1,offset:0,index:W,isInternal:!0,reversed:_(y.yAxis&&y.yAxis.reversed,d.yAxis[0]&&d.yAxis[0].reversed,!1),zoomEnabled:!1},d.inverted?{width:z}:{height:z}),"yAxis"),j||y.series.data?X.updateNavigatorSeries(!1):d.series.length===0&&(X.unbindRedraw=p(d,"beforeRedraw",function(){d.series.length>0&&!X.series&&(X.setBaseSeries(),X.unbindRedraw())})),X.reversedExtremes=d.inverted&&!X.xAxis.reversed||!d.inverted&&X.xAxis.reversed,X.renderElements(),X.addMouseEvents()):(X.xAxis={chart:d,navigatorAxis:{fake:!0},translate:function(U,q){let H=d.xAxis[0],V=H.getExtremes(),Z=H.len-2*G,K=A("min",H.options.min,V.dataMin),J=A("max",H.options.max,V.dataMax)-K;return q?U*J/Z+K:Z*(U-K)/J},toPixels:function(U){return this.translate(U)},toValue:function(U){return this.translate(U,!0)}},X.xAxis.navigatorAxis.axis=X.xAxis,X.xAxis.navigatorAxis.toFixedRange=l.prototype.toFixedRange.bind(X.xAxis.navigatorAxis)),d.options.scrollbar.enabled){let U=I(d.options.scrollbar,{vertical:d.inverted});!O(U.margin)&&X.navigatorEnabled&&(U.margin=d.inverted?-3:3),d.scrollbar=X.scrollbar=new h(d.renderer,U,d),p(X.scrollbar,"changed",function(q){let H=X.size,V=H*this.to,Z=H*this.from;X.hasDragged=X.scrollbar.hasDragged,X.render(0,0,Z,V),this.shouldUpdateExtremes(q.DOMType)&&setTimeout(function(){X.onMouseUp(q)})})}X.addBaseSeriesEvents(),X.addChartEvents()}getUnionExtremes(d){let f,y=this.chart.xAxis[0],M=this.xAxis,k=M.options,T=y.options;return d&&y.dataMin===null||(f={dataMin:_(k&&k.min,A("min",T.min,y.dataMin,M.dataMin,M.min)),dataMax:_(k&&k.max,A("max",T.max,y.dataMax,M.dataMax,M.max))}),f}setBaseSeries(d,f){let y=this.chart,M=this.baseSeries=[];d=d||y.options&&y.options.navigator.baseSeries||(y.series.length?S(y.series,k=>!k.options.isInternal).index:0),(y.series||[]).forEach((k,T)=>{!k.options.isInternal&&(k.options.showInNavigator||(T===d||k.options.id===d)&&k.options.showInNavigator!==!1)&&M.push(k)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,f)}updateNavigatorSeries(d,f){let y=this,M=y.chart,k=y.baseSeries,T={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},z=y.series=(y.series||[]).filter(B=>{let W=B.baseSeries;return!(0>k.indexOf(W))||(W&&(P(W,"updatedData",y.updatedDataHandler),delete W.navigatorSeries),B.chart&&B.destroy(),!1)}),N,G,X=y.navigatorOptions.series,j;k&&k.length&&k.forEach(B=>{let W=B.navigatorSeries,Y=L({color:B.color,visible:B.visible},R(X)?g.navigator.series:X);if(W&&y.navigatorOptions.adaptToUpdatedData===!1)return;T.name="Navigator "+k.length,j=(N=B.options||{}).navigatorOptions||{},Y.dataLabels=F(Y.dataLabels),(G=I(N,T,Y,j)).pointRange=_(Y.pointRange,j.pointRange,g.plotOptions[G.type||"line"].pointRange);let U=j.data||Y.data;y.hasNavigatorData=y.hasNavigatorData||!!U,G.data=U||N.data&&N.data.slice(0),W&&W.options?W.update(G,f):(B.navigatorSeries=M.initSeries(G),M.setSortedData(),B.navigatorSeries.baseSeries=B,z.push(B.navigatorSeries))}),(X.data&&!(k&&k.length)||R(X))&&(y.hasNavigatorData=!1,(X=F(X)).forEach((B,W)=>{T.name="Navigator "+(z.length+1),(G=I(g.navigator.series,{color:M.series[W]&&!M.series[W].options.isInternal&&M.series[W].color||M.options.colors[W]||M.options.colors[0]},T,B)).data=B.data,G.data&&(y.hasNavigatorData=!0,z.push(M.initSeries(G)))})),d&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let d=this,f=d.baseSeries||[];f[0]&&f[0].xAxis&&f[0].eventsToUnbind.push(p(f[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),f.forEach(y=>{y.eventsToUnbind.push(p(y,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),y.eventsToUnbind.push(p(y,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&y.xAxis&&y.eventsToUnbind.push(p(y,"updatedData",this.updatedDataHandler)),y.eventsToUnbind.push(p(y,"remove",function(){this.navigatorSeries&&(E(d.series,this.navigatorSeries),x(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(d){return this.baseSeries.reduce(function(f,y){return Math.min(f,y.xData&&y.xData.length?y.xData[0]:f)},d)}modifyNavigatorAxisExtremes(){let d=this.xAxis;if(d.getExtremes!==void 0){let f=this.getUnionExtremes(!0);f&&(f.dataMin!==d.min||f.dataMax!==d.max)&&(d.min=f.dataMin,d.max=f.dataMax)}}modifyBaseAxisExtremes(){let d,f,y=this.chart.navigator,M=this.getExtremes(),k=M.min,T=M.max,z=M.dataMin,N=M.dataMax,G=T-k,X=y.stickToMin,j=y.stickToMax,B=_(this.ordinal?.convertOverscroll(this.options.overscroll),0),W=y.series&&y.series[0],Y=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(X&&(d=(f=z)+G),j&&(d=N+B,X||(f=Math.max(z,d-G,y.getBaseSeriesMin(W&&W.xData?W.xData[0]:-Number.MAX_VALUE)))),Y&&(X||j)&&O(f)&&(this.min=this.userMin=f,this.max=this.userMax=d)),y.stickToMin=y.stickToMax=null}updatedDataHandler(){let d=this.chart.navigator,f=this.navigatorSeries,y=d.reversedExtremes?Math.round(d.zoomedMin)===0:Math.round(d.zoomedMax)>=Math.round(d.size);d.stickToMax=_(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,y),d.stickToMin=d.shouldStickToMin(this,d),f&&!d.hasNavigatorData&&(f.options.pointStart=this.xData[0],f.setData(this.options.data,!1,null,!1))}shouldStickToMin(d,f){let y=f.getBaseSeriesMin(d.xData[0]),M=d.xAxis,k=M.max,T=M.min,z=M.options.range;return!!(O(k)&&O(T))&&(z&&k-y>0?k-y{d.destroy&&d.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(d=>{this[d]&&this[d].destroy&&this[d].destroy(),this[d]=null}),[this.handles].forEach(d=>{m(d)})}}return D}),s(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{addEvent:a,correctFloat:h,css:c,defined:g,error:u,isNumber:p,pick:b,timeUnits:v,isString:x}=n;return function(m){function E(C,d,f,y,M=[],k=0,T){let z={},N=this.options.tickPixelInterval,G=this.chart.time,X=[],j,B,W,Y,U,q=0,H=[],V=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!M||M.length<3||d===void 0)return G.getTimeTicks.apply(G,arguments);let Z=M.length;for(j=0;jf,M[j]5*k||U){if(M[j]>V){for(B=G.getTimeTicks(C,M[q],M[j],y);B.length&&B[0]<=V;)B.shift();B.length&&(V=B[B.length-1]),X.push(H.length),H=H.concat(B)}q=j+1}if(U)break}if(B){if(Y=B.info,T&&Y.unitRange<=v.hour){for(q=1,j=H.length-1;qnt-ot),(it=tt[Math.floor(tt.length/2)])<.6*N&&(it=null),rt=H[K-1]>f?K-1:K,et=void 0;rt--;)st=Math.abs(et-(Q=J[rt])),et&&st<.8*N&&(it===null||st<.8*it)?(z[H[rt]]&&!z[H[rt+1]]?($=rt+1,et=Q):$=rt,H.splice($,1)):et=Q}return H}function L(C){let d=this.ordinal.positions;if(!d)return C;let f=d.length-1,y;return C<0?C=d[0]:C>f?C=d[f]:(f=Math.floor(C),y=C-f),y!==void 0&&d[f]!==void 0?d[f]+(y?y*(d[f+1]-d[f]):0):C}function S(C){let d=this.ordinal,f=this.old?this.old.min:this.min,y=this.old?this.old.transA:this.transA,M=d.getExtendedPositions();if(M&&M.length){let k=h((C-f)*y+this.minPixelPadding),T=h(d.getIndexOfPoint(k,M)),z=h(T%1);if(T>=0&&T<=M.length-1){let N=M[Math.floor(T)],G=M[Math.ceil(T)];return M[Math.floor(T)]+z*(G-N)}}return C}function w(C,d){let f=m.Additions.findIndexOf(C,d,!0);if(C[f]===d)return f;let y=(d-C[f])/(C[f+1]-C[f]);return f+y}function R(){this.ordinal||(this.ordinal=new m.Additions(this))}function O(){let{eventArgs:C,options:d}=this;if(this.isXAxis&&g(d.overscroll)&&d.overscroll!==0&&p(this.max)&&p(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(C?.trigger!=="pan"||this.isInternal)&&C?.trigger!=="navigator")){let f=this.ordinal.convertOverscroll(d.overscroll);this.max+=f,!this.isInternal&&g(this.userMin)&&C?.trigger!=="mousewheel"&&(this.min+=f)}}function I(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function _(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function P(C){let d=this.xAxis[0],f=d.ordinal.convertOverscroll(d.options.overscroll),y=C.originalEvent.chartX,M=this.options.chart.panning,k=!1;if(M&&M.type!=="y"&&d.options.ordinal&&d.series.length){let T,z,N=this.mouseDownX,G=d.getExtremes(),X=G.dataMin,j=G.dataMax,B=G.min,W=G.max,Y=this.hoverPoints,U=d.closestPointRange||d.ordinal&&d.ordinal.overscrollPointsRange,q=Math.round((N-y)/(d.translationSlope*(d.ordinal.slope||U))),H=d.ordinal.getExtendedPositions(),V={ordinal:{positions:H,extendedOrdinalPositions:H}},Z=d.index2val,K=d.val2lin;if(B<=X&&q<0||W+f>=j&&q>0)return;V.ordinal.positions?Math.abs(q)>1&&(Y&&Y.forEach(function(J){J.setState()}),j>(z=V.ordinal.positions)[z.length-1]&&z.push(j),this.setFixedRange(W-B),(T=d.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(V,[K.apply(V,[B,!0])+q]),Z.apply(V,[K.apply(V,[W,!0])+q]))).min>=Math.min(G.dataMin,B)&&T.max<=Math.max(j,W)+f&&d.setExtremes(T.min,T.max,!0,!1,{trigger:"pan"}),this.mouseDownX=y,c(this.container,{cursor:"move"})):k=!0}else k=!0;k||M&&/y/.test(M.type)?f&&(d.max=d.dataMax+f):C.preventDefault()}function F(){let C=this.xAxis;C&&C.options.ordinal&&(delete C.ordinal.index,delete C.ordinal.originalOrdinalRange)}function A(C,d){let f,y=this.ordinal,M=y.positions,k=y.slope,T;if(!M)return C;let z=M.length;if(M[0]<=C&&M[z-1]>=C)f=w(M,C);else{if(!((T=y.getExtendedPositions&&y.getExtendedPositions())&&T.length))return C;let N=T.length;k||(k=(T[N-1]-T[0])/N);let G=w(T,M[0]);if(C>=T[0]&&C<=T[N-1])f=w(T,C)-G;else{if(!d)return C;f=C0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(V=K!==J.processedXData[1]-J.processedXData[0]),K=J.processedXData[1]-J.processedXData[0],J.boosted&&(Z=J.boosted),J.reserveSpace()&&(J.takeOrdinalPosition!==!1||T)&&(N=(U=U.concat(J.processedXData)).length,U.sort(function($,Q){return $-Q}),q=Math.min(q,b(J.closestPointRange,q)),N)){for(tt=0;tt2){for(X=U[1]-U[0],Y=N-1;Y--&&!H;)U[Y+1]-U[Y]!==X&&(H=!0);!d.options.keepOrdinalPadding&&(U[0]-M>X||k-U[U.length-1]>X)&&(H=!0)}else d.options.overscroll&&(N===2?q=U[1]-U[0]:N===1?(q=d.ordinal.convertOverscroll(d.options.overscroll),U=[U[0],U[0]+q]):q=f.overscrollPointsRange);H||d.forceOrdinal?(d.options.overscroll&&(f.overscrollPointsRange=q,U=U.concat(f.getOverscrollPositions())),f.positions=U,j=d.ordinal2lin(Math.max(M,U[0]),!0),B=Math.max(d.ordinal2lin(Math.min(k,U[U.length-1]),!0),1),f.slope=W=(k-M)/(B-j),f.offset=M-j*W):(f.overscrollPointsRange=b(d.closestPointRange,f.overscrollPointsRange),f.positions=d.ordinal.slope=f.offset=void 0)}d.isOrdinal=z&&H,f.groupIntervalFactor=null}static findIndexOf(d,f,y){let M=0,k=d.length-1,T;for(;MB.x>=X&&B.x<=j)};M.series.forEach(G=>{let X=G.points?.[0];g(X?.plotX)&&(X.plotXA()),m.splice(_,1);return}}}function O(){let _=this.rangeSelector;if(_){let P=_.getHeight();this.extraTopMargin&&(this.plotTop+=P),this.extraBottomMargin&&(this.marginBottom+=P)}}function I(_){let P=_.options.rangeSelector,F=this.extraBottomMargin,A=this.extraTopMargin,D=this.rangeSelector;if(P&&P.enabled&&!g(D)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=D=new l(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,D){let C=P&&P.verticalAlign||D.options&&D.options.verticalAlign;D.options.floating||(C==="bottom"?this.extraBottomMargin=!0:C==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==F||this.extraTopMargin!==A)&&(this.isDirtyBox=!0)}}return{compose:function(_,P,F){if(l=F,x(h,"RangeSelector")){let A=P.prototype;_.prototype.minFromRange=E,c(P,"afterGetContainer",L),c(P,"beforeRender",S),c(P,"destroy",R),c(P,"getMargins",O),c(P,"redraw",w),c(P,"update",I),A.callbacks.push(w),u(a,{rangeSelector:r.rangeSelector}),u(a.lang,r.lang)}}}}),s(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"],t["Core/Axis/OrdinalAxis.js"]],function(e,i,r,n,l,a,h){let{defaultOptions:c}=i,{addEvent:g,createElement:u,css:p,defined:b,destroyObjectProperties:v,discardElement:x,extend:m,fireEvent:E,isNumber:L,merge:S,objectEach:w,pad:R,pick:O,pInt:I,splat:_}=a;class P{static compose(A,D){n.compose(A,D,P)}constructor(A){this.buttonOptions=P.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(A)}clickButton(A,D){let C=this.chart,d=this.buttonOptions[A],f=C.xAxis[0],y=C.scroller&&C.scroller.getUnionExtremes()||f||{},M=d.type,k=d.dataGrouping,T=y.dataMin,z=y.dataMax,N,G=f&&Math.round(Math.min(f.max,O(z,f.max))),X,j=d._range,B,W,Y,U=!0;if(T!==null&&z!==null){if(this.setSelected(A),k&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(f||{chart:this.chart},k,!1),this.frozenStates=d.preserveDataGrouping),M==="month"||M==="year")f?(W={range:d,max:G,chart:C,dataMin:T,dataMax:z},N=f.minFromRange.call(W),L(W.newMax)&&(G=W.newMax),U=!1):j=d;else if(j)G=Math.min((N=Math.max(G-j,T))+j,z),U=!1;else if(M==="ytd")if(f)(z===void 0||T===void 0)&&(T=Number.MAX_VALUE,z=Number.MIN_VALUE,C.series.forEach(q=>{let H=q.xData;H&&(T=Math.min(H[0],T),z=Math.max(H[H.length-1],z))}),D=!1),N=B=(Y=this.getYTDExtremes(z,T,C.time.useUTC)).min,G=Y.max;else{this.deferredYTDClick=A;return}else M==="all"&&f&&(C.navigator&&C.navigator.baseSeries[0]&&(C.navigator.baseSeries[0].xAxis.options.range=void 0),N=T,G=z);if(U&&d._offsetMin&&b(N)&&(N+=d._offsetMin),d._offsetMax&&b(G)&&(G+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=A+1),f)f.setExtremes(N,G,O(D,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}),C.setFixedRange(d._range);else{X=_(C.options.xAxis)[0];let q=g(C,"afterGetAxes",function(){let H=C.xAxis[0];H.range=H.options.range=j,H.min=H.options.min=B});g(C,"load",function(){let H=C.xAxis[0];C.setFixedRange(d._range),H.options.range=X.range,H.options.min=X.min,q()})}E(this,"afterBtnClick")}}setSelected(A){this.selected=this.options.selected=A}init(A){let D=this,C=A.options.rangeSelector,d=C.buttons||D.defaultButtons.slice(),f=C.selected,y=function(){let M=D.minInput,k=D.maxInput;M&&M.blur&&E(M,"blur"),k&&k.blur&&E(k,"blur")};D.chart=A,D.options=C,D.buttons=[],D.buttonOptions=d,this.eventsToUnbind=[],this.eventsToUnbind.push(g(A.container,"mousedown",y)),this.eventsToUnbind.push(g(A,"resize",y)),d.forEach(D.computeButtonRange),f!==void 0&&d[f]&&this.clickButton(f,!1),this.eventsToUnbind.push(g(A,"load",function(){A.xAxis&&A.xAxis[0]&&g(A.xAxis[0],"setExtremes",function(M){L(this.max)&&L(this.min)&&this.max-this.min!==A.fixedRange&&M.trigger!=="rangeSelectorButton"&&M.trigger!=="updatedData"&&D.forcedDataGrouping&&!D.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let A=this,D=this.chart,C=this.dropdown,d=this.dropdownLabel,f=D.xAxis[0],y=Math.round(f.max-f.min),M=!f.hasVisibleSeries,k=24*36e5,T=D.scroller&&D.scroller.getUnionExtremes()||f,z=T.dataMin,N=T.dataMax,G=A.getYTDExtremes(N,z,D.time.useUTC),X=G.min,j=G.max,B=A.selected,W=A.options.allButtonsEnabled,Y=Array(A.buttonOptions.length).fill(0),U=L(B),q=A.buttons,H=!1,V=null;A.buttonOptions.forEach((Z,K)=>{let J=Z._range,tt=Z.type,$=Z.count||1,Q=Z._offsetMax-Z._offsetMin,et=K===B,it=J>N-z,st=JJ&&(nt=!0)}else(tt==="month"||tt==="year")&&y+36e5>={month:28,year:365}[tt]*k*$-Q&&y-36e5<={month:31,year:366}[tt]*k*$+Q?nt=!0:tt==="ytd"?(nt=j-X+Q===y,rt=!et):tt==="all"&&(nt=f.max-f.min>=N-z);let ot=!W&&!(H&&tt==="all")&&(it||st||M),at=H&&tt==="all"||!rt&&nt||et&&A.frozenStates;ot?Y[K]=3:at&&(!U||K===B)&&(V=K)}),V!==null?(Y[V]=2,A.setSelected(V)):(A.setSelected(),d&&(d.setState(0),d.attr({text:(c.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let Z=0;Z6&&(y.lastIndexOf("-")===y.length-6||y.lastIndexOf("+")===y.length-6))){let M=new Date(d).getTimezoneOffset()/60;d+=M<=0?`+${R(-M)}:00`:`-${R(M)}:00`}}let f=Date.parse(d);if(!L(f)){let y=A.split("-");f=Date.UTC(I(y[0]),I(y[1])-1,I(y[2]))}return C&&D&&L(f)&&(f+=C.getTimezoneOffset(f)),f}drawInput(A){let{chart:D,div:C,inputGroup:d}=this,f=this,y=D.renderer.style||{},M=D.renderer,k=D.options.rangeSelector,T=c.lang,z=A==="min";function N(Y){let{maxInput:U,minInput:q}=f,H=D.xAxis[0],V=D.scroller?.getUnionExtremes()||H,Z=V.dataMin,K=V.dataMax,J=D.xAxis[0].getExtremes()[Y],tt=f.getInputValue(Y);L(tt)&&tt!==J&&(z&&U&&L(Z)?tt>Number(U.getAttribute("data-hc-time"))?tt=void 0:ttK&&(tt=K)),tt!==void 0&&H.setExtremes(z?tt:H.min,z?H.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}let G=T[z?"rangeSelectorFrom":"rangeSelectorTo"]||"",X=M.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?k.inputBoxHeight:0}).add(d),j=M.label("",0).addClass("highcharts-range-input").attr({padding:2,width:k.inputBoxWidth,height:k.inputBoxHeight,"text-align":"center"}).on("click",function(){f.showInput(A),f[A+"Input"].focus()});D.styledMode||j.attr({stroke:k.inputBoxBorderColor,"stroke-width":1}),j.add(d);let B=u("input",{name:A,className:"highcharts-range-selector"},void 0,C);B.setAttribute("type",function(Y){if(Y.indexOf("%L")!==-1)return"text";let U=["a","A","d","e","w","b","B","m","o","y","Y"].some(H=>Y.indexOf("%"+H)!==-1),q=["H","k","I","l","M","S"].some(H=>Y.indexOf("%"+H)!==-1);return U&&q?"datetime-local":U?"date":q?"time":"text"}(k.inputDateFormat||"%e %b %Y")),D.styledMode||(X.css(S(y,k.labelStyle)),j.css(S({color:"#333333"},y,k.inputStyle)),p(B,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:y.fontSize,fontFamily:y.fontFamily,top:"-9999em"},k.inputStyle))),B.onfocus=()=>{f.showInput(A)},B.onblur=()=>{B===r.doc.activeElement&&N(A),f.hideInput(A),f.setInputValue(A),B.blur()};let W=!1;return B.onchange=()=>{W||(N(A),f.hideInput(A),B.blur())},B.onkeypress=Y=>{Y.keyCode===13&&N(A)},B.onkeydown=Y=>{W=!0,(Y.key==="ArrowUp"||Y.key==="ArrowDown"||Y.key==="Tab")&&N(A)},B.onkeyup=()=>{W=!1},{dateBox:j,input:B,label:X}}getPosition(){let A=this.chart,D=A.options.rangeSelector,C=D.verticalAlign==="top"?A.plotTop-A.axisOffset[0]:0;return{buttonTop:C+D.buttonPosition.y,inputTop:C+D.inputPosition.y-10}}getYTDExtremes(A,D,C){let d=this.chart.time,f=new d.Date(A),y=d.get("FullYear",f),M=C?d.Date.UTC(y,0,1):+new d.Date(y,0,1),k=f.getTime();return{max:Math.min(A||k,k),min:Math.max(D,M)}}createElements(){let A=this.chart,D=A.renderer,C=A.container,d=A.options,f=d.rangeSelector,y=f.inputEnabled,M=O(d.chart.style?.zIndex,0)+1;if(f.enabled!==!1&&(this.group=D.g("range-selector-group").attr({zIndex:7}).add(),this.div=u("div",void 0,{position:"relative",height:0,zIndex:M}),this.buttonOptions.length&&this.renderButtons(),C.parentNode&&C.parentNode.insertBefore(this.div,C),y)){this.inputGroup=D.g("input-group").add(this.group);let k=this.drawInput("min");this.minDateBox=k.dateBox,this.minLabel=k.label,this.minInput=k.input;let T=this.drawInput("max");this.maxDateBox=T.dateBox,this.maxLabel=T.label,this.maxInput=T.input}}render(A,D){let C=this.chart,d=C.options.rangeSelector,f=d.inputEnabled;if(d.enabled!==!1){if(f){this.setInputValue("min",A),this.setInputValue("max",D);let y=C.scroller&&C.scroller.getUnionExtremes()||C.xAxis[0]||{};if(b(y.dataMin)&&b(y.dataMax)){let M=C.xAxis[0].minRange||0;this.setInputExtremes("min",y.dataMin,Math.min(y.dataMax,this.getInputValue("max"))-M),this.setInputExtremes("max",Math.max(y.dataMin,this.getInputValue("min"))+M,y.dataMax)}if(this.inputGroup){let M=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(k=>{if(k){let{width:T}=k.getBBox();T&&(k.attr({x:M}),M+=T+d.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:A,chart:D,options:C}=this,d=c.lang,f=D.renderer,y=S(C.buttonTheme),M=y&&y.states,k=y.width||28;delete y.width,delete y.states,this.buttonGroup=f.g("range-selector-buttons").add(this.group);let T=this.dropdown=u("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),z=D.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=f.button("",0,0,()=>{},S(y,{"stroke-width":O(y["stroke-width"],0),width:"auto",paddingLeft:O(C.buttonTheme.paddingLeft,z?.padding,8),paddingRight:O(C.buttonTheme.paddingRight,z?.padding,8)}),M&&M.hover,M&&M.select,M&&M.disabled).hide().add(this.group),g(T,"touchstart",()=>{T.style.fontSize="16px"});let N=r.isMS?"mouseover":"mouseenter",G=r.isMS?"mouseout":"mouseleave";g(T,N,()=>{E(this.dropdownLabel.element,N)}),g(T,G,()=>{E(this.dropdownLabel.element,G)}),g(T,"change",()=>{E(this.buttons[T.selectedIndex-1].element,"click")}),this.zoomText=f.label(d.rangeSelectorZoom||"",0).attr({padding:C.buttonTheme.padding,height:C.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(C.labelStyle),y["stroke-width"]=O(y["stroke-width"],0)),u("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,T),this.buttonOptions.forEach((X,j)=>{u("option",{textContent:X.title||X.text},void 0,T),A[j]=f.button(X.text,0,0,B=>{let W,Y=X.events&&X.events.click;Y&&(W=Y.call(X,B)),W!==!1&&this.clickButton(j),this.isActive=!0},y,M&&M.hover,M&&M.select,M&&M.disabled).attr({"text-align":"center",width:k}).add(this.buttonGroup),X.title&&A[j].attr("title",X.title)})}alignElements(){let{buttonGroup:A,buttons:D,chart:C,group:d,inputGroup:f,options:y,zoomText:M}=this,k=C.options,T=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,{buttonPosition:z,inputPosition:N,verticalAlign:G}=y,X=(B,W)=>T&&this.titleCollision(C)&&G==="top"&&W.align==="right"&&W.y-B.getBBox().height-12<(T.y||0)+(T.height||0)+C.spacing[0]?-40:0,j=C.plotLeft;if(d&&z&&N){let B=z.x-C.spacing[3];if(A){if(this.positionButtons(),!this.initialButtonGroupWidth){let J=0;M&&(J+=M.getBBox().width+5),D.forEach((tt,$)=>{J+=tt.width||0,$!==D.length-1&&(J+=y.buttonSpacing)}),this.initialButtonGroupWidth=J}j-=C.spacing[3];let K=X(A,z);this.alignButtonGroup(K),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),d.placed=A.placed=C.hasLoaded}let W=0;f&&(W=X(f,N),N.align==="left"?B=j:N.align==="right"&&(B=-Math.max(C.axisOffset[1],-W)),f.align({y:N.y,width:f.getBBox().width,align:N.align,x:N.x+B-2},!0,C.spacingBox),f.placed=C.hasLoaded),this.handleCollision(W),d.align({verticalAlign:G},!0,C.spacingBox);let Y=d.alignAttr.translateY,U=d.getBBox().height+20,q=0;if(G==="bottom"){let K=C.legend&&C.legend.options;q=Y-(U=U+(K&&K.verticalAlign==="bottom"&&K.enabled&&!K.floating?C.legend.legendHeight+O(K.margin,10):0)-20)-(y.floating?0:y.y)-(C.titleOffset?C.titleOffset[2]:0)-10}G==="top"?(y.floating&&(q=0),C.titleOffset&&C.titleOffset[0]&&(q=C.titleOffset[0]),q+=C.margin[0]-C.spacing[0]||0):G==="middle"&&(N.y===z.y?q=Y:(N.y||z.y)&&(N.y<0||z.y<0?q-=Math.min(N.y,z.y):q=Y-U)),d.translate(y.x,y.y+Math.floor(q));let{minInput:H,maxInput:V,dropdown:Z}=this;y.inputEnabled&&H&&V&&(H.style.marginTop=d.translateY+"px",V.style.marginTop=d.translateY+"px"),Z&&(Z.style.marginTop=d.translateY+"px")}}alignButtonGroup(A,D){let{chart:C,options:d,buttonGroup:f}=this,{buttonPosition:y}=d,M=C.plotLeft-C.spacing[3],k=y.x-C.spacing[3];y.align==="right"?k+=A-M:y.align==="center"&&(k-=M/2),f&&f.align({y:y.y,width:O(D,this.initialButtonGroupWidth),align:y.align,x:k},!0,C.spacingBox)}positionButtons(){let{buttons:A,chart:D,options:C,zoomText:d}=this,f=D.hasLoaded?"animate":"attr",{buttonPosition:y}=C,M=D.plotLeft,k=M;d&&d.visibility!=="hidden"&&(d[f]({x:O(M+y.x,M)}),k+=y.x+d.getBBox().width+5);for(let T=0,z=this.buttonOptions.length;T{let N=0;return this.buttons.forEach(G=>{let X=G.getBBox();X.width>N&&(N=X.width)}),N},T=N=>{if(d?.alignOptions&&C){let G=d.alignAttr.translateX+d.alignOptions.x-A+d.getBBox().x+2,X=d.alignOptions.width||0,j=C.alignAttr.translateX+C.getBBox().x;return j+N>G&&G+X>j&&f.y{d&&C&&d.attr({translateX:d.alignAttr.translateX+(D.axisOffset[1]>=-A?0:-A),translateY:d.alignAttr.translateY+C.getBBox().height+10})};if(C){if(y==="always"){this.collapseButtons(),T(k())&&z();return}y==="never"&&this.expandButtons()}d&&C?M.align===f.align||T(this.initialButtonGroupWidth+20)?y==="responsive"?(this.collapseButtons(),T(k())&&z()):z():y==="responsive"&&this.expandButtons():C&&y==="responsive"&&(this.initialButtonGroupWidth>D.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:A,zoomText:D}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,D.hide(),A.forEach(C=>void C.hide()),this.showDropdown())}expandButtons(){let{buttons:A,zoomText:D}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),D.show(),A.forEach(C=>void C.show()),this.positionButtons())}showDropdown(){let{buttonGroup:A,chart:D,dropdownLabel:C,dropdown:d}=this;if(A&&d){let{translateX:f=0,translateY:y=0}=A,M=D.plotLeft+f;C.attr({x:M,y}).show(),p(d,{left:M+"px",top:y+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:A}=this;A&&(this.dropdownLabel.hide(),p(A,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let A=this.options,D=this.group,C=A.inputPosition,d=A.buttonPosition,f=A.y,y=d.y,M=C.y,k=0;return A.height?A.height:(this.alignElements(),k=D?D.getBBox(!0).height+13+f:0,(M<0&&y<0||M>0&&y>0)&&(k+=Math.abs(Math.min(M,y))),k)}titleCollision(A){return!(A.options.title.text||A.options.subtitle.text)}update(A,D=!0){let C=this.chart;S(!0,C.options.rangeSelector,A),this.destroy(),this.init(C),D&&this.render()}destroy(){let A=this,D=A.minInput,C=A.maxInput;A.eventsToUnbind&&(A.eventsToUnbind.forEach(d=>d()),A.eventsToUnbind=void 0),v(A.buttons),D&&(D.onfocus=D.onblur=D.onchange=null),C&&(C.onfocus=C.onblur=C.onchange=null),w(A,function(d,f){d&&f!=="chart"&&(d instanceof l?d.destroy():d instanceof window.HTMLElement&&x(d)),d!==P.prototype[f]&&(A[f]=null)},this)}}return m(P.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),P}),s(t,"Core/Chart/StockChart.js",[t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{format:g}=i,{getOptions:u}=r,{setFixedRange:p}=h,{addEvent:b,clamp:v,crisp:x,defined:m,extend:E,find:L,isNumber:S,isString:w,merge:R,pick:O,splat:I}=c;function _(A,D,C){return A==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:A==="yAxis"?{labels:{y:-2},opposite:C.opposite??D.opposite??!0,showLastLabel:!!(D.categories||D.type==="category"),title:{text:C.title?.text!=="Values"?C.title?.text:null}}:{}}function P(A,D){if(A==="xAxis"){let C=O(D.navigator&&D.navigator.enabled,n.enabled,!0),d={type:"datetime",categories:void 0};return C&&(d.startOnTick=!1,d.endOnTick=!1),d}return{}}class F extends e{init(D,C){let d=u(),f=D.xAxis,y=D.yAxis,M=O(D.navigator&&D.navigator.enabled,n.enabled,!0);D.xAxis=D.yAxis=void 0;let k=R({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:M},scrollbar:{enabled:O(a.enabled,!0)},rangeSelector:{enabled:O(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:O(d.tooltip&&d.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},D,{isStock:!0});D.xAxis=f,D.yAxis=y,k.xAxis=I(D.xAxis||{}).map(T=>R(_("xAxis",T,d.xAxis),T,P("xAxis",D))),k.yAxis=I(D.yAxis||{}).map(T=>R(_("yAxis",T,d.yAxis),T)),super.init(k,C)}createAxis(D,C){return C.axis=R(_(D,C.axis,u()[D]),C.axis,P(D,this.userOptions)),super.createAxis(D,C)}}return b(e,"update",function(A){let D=A.options;"scrollbar"in D&&this.navigator&&(R(!0,this.options.scrollbar,D.scrollbar),this.navigator.update({}),delete D.scrollbar)}),function(A){function D(z){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!S(this.min)||!S(this.max))return;let N=this.chart,G=this.logarithmic,X=this.crosshair.label,j=this.horiz,B=this.opposite,W=this.left,Y=this.top,U=this.width,q=this.options.tickPosition==="inside",H=this.crosshair.snap!==!1,V=z.e||this.cross&&this.cross.e,Z=z.point,K=this.crossLabel,J,tt,$=X.format,Q="",et,it=0,st=this.min,rt=this.max;G&&(st=G.lin2log(this.min),rt=G.lin2log(this.max));let nt=j?"center":B?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";K||(K=this.crossLabel=N.renderer.label("",0,void 0,X.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Z&&Z.series?Z.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:X.align||nt,padding:O(X.padding,8),r:O(X.borderRadius,3),zIndex:2}).add(this.labelGroup),N.styledMode||K.attr({fill:X.backgroundColor||Z&&Z.series&&Z.series.color||"#666666",stroke:X.borderColor||"","stroke-width":X.borderWidth||0}).css(E({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},X.style||{}))),j?(J=H?(Z.plotX||0)+W:V.chartX,tt=Y+(B?0:this.height)):(J=W+this.offset+(B?U:0),tt=H?(Z.plotY||0)+Y:V.chartY),$||X.formatter||(this.dateTime&&(Q="%b %d, %Y"),$="{value"+(Q?":"+Q:"")+"}");let ot=H?this.isXAxis?Z.x:Z.y:this.toValue(j?V.chartX:V.chartY),at=Z&&Z.series?Z.series.isPointInside(Z):S(ot)&&ot>st&&ot=et.right&&(it=-(lt+ht.width-et.right)),K.attr({x:J+it,y:tt,anchorX:j?J:this.opposite?0:N.chartWidth,anchorY:j?this.opposite?N.chartHeight:0:tt+ht.height/2})}function C(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function d(z){let N=this.chart,G=this.options,X=N._labelPanes=N._labelPanes||{},j=G.labels;if(N.options.isStock&&this.coll==="yAxis"){let B=G.top+","+G.height;!X[B]&&j.enabled&&(j.distance===15&&this.side===1&&(j.distance=0),j.align===void 0&&(j.align="right"),X[B]=this,z.align="right",z.preventDefault())}}function f(){let z=this.chart,N=this.options&&this.options.top+","+this.options.height;N&&z._labelPanes&&z._labelPanes[N]===this&&delete z._labelPanes[N]}function y(z){let N=this,G=N.isLinked&&!N.series&&N.linkedParent?N.linkedParent.series:N.series,X=N.chart,j=X.renderer,B=N.left,W=N.top,Y=[],U=z.translatedValue,q=z.value,H=z.force,V,Z,K,J,tt=[],$,Q;if(X.options.isStock&&z.acrossPanes!==!1&&N.coll==="xAxis"||N.coll==="yAxis"){for(let et of(z.preventDefault(),tt=(it=>{let st=it==="xAxis"?"yAxis":"xAxis",rt=N.options[st];return S(rt)?[X[st][rt]]:w(rt)?[X.get(rt)]:G.map(nt=>nt[st])})(N.coll),N.isXAxis?X.yAxis:X.xAxis))if(!m(et.options.id)||et.options.id.indexOf("navigator")===-1){let it=et.isXAxis?"yAxis":"xAxis";N===(m(et.options[it])?X[it][et.options[it]]:X[it][0])&&tt.push(et)}for(let et of($=tt.length?[]:[N.isXAxis?X.yAxis[0]:X.xAxis[0]],tt))$.indexOf(et)!==-1||L($,it=>it.pos===et.pos&&it.len===et.len)||$.push(et);if(S(Q=O(U,N.translate(q||0,void 0,void 0,z.old))))if(N.horiz)for(let et of $){let it;J=(Z=et.pos)+et.len,V=K=Math.round(Q+N.transB),H!=="pass"&&(VB+N.width)&&(H?V=K=v(V,B,B+N.width):it=!0),it||Y.push(["M",V,Z],["L",K,J])}else for(let et of $){let it;K=(V=et.pos)+et.len,Z=J=Math.round(W+N.height-Q),H!=="pass"&&(ZW+N.height)&&(H?Z=J=v(Z,W,W+N.height):it=!0),it||Y.push(["M",V,Z],["L",K,J])}z.path=Y.length>0?j.crispPolyLine(Y,z.lineWidth||1):void 0}}function M(z){if(this.chart.options.isStock){let N;this.is("column")||this.is("columnrange")?N={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(N={marker:{enabled:!1,radius:2}}),N&&(z.plotOptions[this.type]=R(z.plotOptions[this.type],N))}}function k(){let z=this.chart,N=this.options.dataGrouping;return this.allowDG!==!1&&N&&O(N.enabled,z.options.isStock)}function T(z,N){for(let G=0;G\u25CF {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),s(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{column:l}=r.seriesTypes,{crisp:a,extend:h,merge:c}=n;class g extends l{extendStem(p,b,v){let x=p[0],m=p[1];typeof x[2]=="number"&&(x[2]=Math.max(v+b,x[2])),typeof m[2]=="number"&&(m[2]=Math.min(v-b,m[2]))}getPointPath(p,b){let v=b.strokeWidth(),x=p.series,m=a(p.plotX||0,v),E=Math.round(p.shapeArgs.width/2),L=[["M",m,Math.round(p.yBottom)],["L",m,Math.round(p.plotHigh)]];if(p.close!==null){let S=a(p.plotClose,v);L.push(["M",m,S],["L",m+E,S]),x.extendStem(L,v/2,S)}return L}drawSinglePoint(p){let b=p.series,v=b.chart,x,m=p.graphic;p.plotY!==void 0&&(m||(p.graphic=m=v.renderer.path().add(b.group)),v.styledMode||m.attr(b.pointAttribs(p,p.selected&&"select")),x=b.getPointPath(p,m),m[m?"animate":"attr"]({d:x}).addClass(p.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(p,b){let v=super.pointAttribs.call(this,p,b);return delete v.fill,v}toYData(p){return[p.high,p.low,p.close]}translate(){let p=this,b=p.yAxis,v=this.pointArrayMap&&this.pointArrayMap.slice()||[],x=v.map(m=>`plot${m.charAt(0).toUpperCase()+m.slice(1)}`);x.push("yBottom"),v.push("low"),super.translate.apply(p),p.points.forEach(function(m){v.forEach(function(E,L){let S=m[E];S!==null&&(p.dataModify&&(S=p.dataModify.modifyValue(S)),m[x[L]]=b.toPixels(S,!0))}),m.tooltipPos[1]=m.plotHigh+b.pos-p.chart.plotTop})}}return g.defaultOptions=c(l.defaultOptions,i),h(g.prototype,{pointClass:e,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",g),g}),s(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{seriesTypes:{hlc:i}}=e;class r extends i.prototype.pointClass{getClassName(){return super.getClassName.call(this)+(this.open\u25CF {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),s(t,"Series/OHLC/OHLCSeries.js",[t["Core/Globals.js"],t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{composed:a}=e,{hlc:h}=n.seriesTypes,{addEvent:c,crisp:g,extend:u,merge:p,pushUnique:b}=l;function v(E){let L=E.options,S=L.dataGrouping;S&&L.useOhlcData&&L.id!=="highcharts-navigator-series"&&(S.approximation="ohlc")}function x(E){let L=E.options;L.useOhlcData&&L.id!=="highcharts-navigator-series"&&u(this,{pointValKey:m.prototype.pointValKey,pointArrayMap:m.prototype.pointArrayMap,toYData:m.prototype.toYData})}class m extends h{static compose(L,...S){b(a,"OHLCSeries")&&(c(L,"afterSetOptions",v),c(L,"init",x))}getPointPath(L,S){let w=super.getPointPath(L,S),R=S.strokeWidth(),O=g(L.plotX||0,R),I=Math.round(L.shapeArgs.width/2);if(L.open!==null){let _=g(L.plotOpen,R);w.push(["M",O,_],["L",O-I,_]),super.extendStem(w,R/2,_)}return w}pointAttribs(L,S){let w=super.pointAttribs.call(this,L,S),R=this.options;return delete w.fill,!L.options.color&&R.upColor&&L.openp&&(g-=Math.round((b-p)/2),p=b),x=h[c](g,u,p,b,v),m&&E){let L=m;if(c==="circle")L=g+p/2;else{let w=x[0],R=x[1];w[0]==="M"&&R[0]==="L"&&(L=(w[1]+R[1])/2)}let S=u>E?u:u+b;x.push(["M",L,S],["L",m,E]),x=x.concat(h.circle(m-1,E-1,2,2))}return x}}r.compose=function(h){if(n.indexOf(h)===-1){n.push(h);let g=h.prototype.symbols;g.flag=l,a(g,"circle"),a(g,"square")}let c=e.getRendererType();n.indexOf(c)&&n.push(c)}}(i||(i={})),i}),s(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{composed:a}=i,{prototype:h}=e,{prototype:c}=r,{defined:g,pushUnique:u,stableSort:p}=n;return function(b){function v(m){return c.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,m)}function x(){h.translate.apply(this);let m=this,E=m.options,L=m.chart,S=m.points,w=E.onSeries,R=w&&L.get(w),O=R&&R.options.step,I=R&&R.points,_=L.inverted,P=m.xAxis,F=m.yAxis,A=S.length-1,D,C,d=E.onKey||"y",f=I&&I.length,y=0,M,k,T,z,N;if(R&&R.visible&&f){for(y=(R.pointXOffset||0)+(R.barW||0)/2,z=R.currentDataGrouping,k=I[f-1].x+(z?z.totalRange:0),p(S,(G,X)=>G.x-X.x),d="plot"+d[0].toUpperCase()+d.substr(1);f--&&S[A];)if(M=I[f],(D=S[A]).y=M.y,M.x<=D.x&&M[d]!==void 0){if(D.x<=k&&(D.plotY=M[d],M.xMath.pow(1-H,3)*G[V]+3*(1-H)*(1-H)*H*j[V]+3*(1-H)*H*H*B[V]+H*H*H*X[V],Y=0,U=1,q;for(let H=0;H<100;H++){let V=(Y+U)/2,Z=W(V,0);if(Z===null)break;if(.25>Math.abs(Z-D.plotX)){q=V;break}Z{let j;G.plotX+=y,(G.plotY===void 0||_)&&(G.plotX>=0&&G.plotX<=P.len?_?(G.plotY=P.translate(G.x,0,1,0,1),G.plotX=g(G.y)?F.translate(G.y,0,0,0,1):0):G.plotY=(P.opposite?0:m.yAxis.len)+P.offset:G.shapeArgs={}),(C=S[X-1])&&C.plotX===G.plotX&&(C.stackIndex===void 0&&(C.stackIndex=0),j=C.stackIndex+1),G.stackIndex=j}),this.onSeries=R}b.compose=function(m){if(u(a,"OnSeries")){let E=m.prototype;E.getPlotBox=v,E.translate=x}return m},b.getPlotBox=v,b.translate=x}(l||(l={})),l}),s(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,g){let{noop:u}=n,{distribute:p}=a,{series:b,seriesTypes:{column:v}}=h,{addEvent:x,defined:m,extend:E,isNumber:L,merge:S,objectEach:w,wrap:R}=g;class O extends v{animate(_){_&&this.setClip()}drawPoints(){let _,P,F,A,D,C,d,f,y,M,k,T=this.points,z=this.chart,N=z.renderer,G=z.inverted,X=this.options,j=X.y,B=this.yAxis,W={},Y=[],U=L(X.borderRadius)?X.borderRadius:0;for(A=T.length;A--;)D=T[A],M=(G?D.plotY:D.plotX)>this.xAxis.len,_=D.plotX,d=D.stackIndex,F=D.options.shape||X.shape,(P=D.plotY)!==void 0&&(P=D.plotY+j-(d!==void 0&&d*X.stackDistance)),D.anchorX=d?void 0:D.plotX,f=d?void 0:D.plotY,k=F!=="flag",C=D.graphic,P!==void 0&&_>=0&&!M?(C&&D.hasNewShapeType()&&(C=C.destroy()),C||(C=D.graphic=N.label("",0,void 0,F,void 0,void 0,X.useHTML).addClass("highcharts-point").add(this.markerGroup),D.graphic.div&&(D.graphic.div.point=D),C.isNew=!0),C.attr({align:k?"center":"left",width:X.width,height:X.height,"text-align":X.textAlign,r:U}),z.styledMode||C.attr(this.pointAttribs(D)).css(S(X.style,D.style)).shadow(X.shadow),_>0&&(_-=C.strokeWidth()%2),y={y:P,anchorY:f},X.allowOverlapX&&(y.x=_,y.anchorX=D.anchorX),C.attr({text:D.options.title??X.title??"A"})[C.isNew?"attr":"animate"](y),X.allowOverlapX||(W[D.plotX]?W[D.plotX].size=Math.max(W[D.plotX].size,C.width||0):W[D.plotX]={align:k?.5:0,size:C.width||0,target:_,anchorX:_}),D.tooltipPos=[_,P+B.pos-z.plotTop]):C&&(D.graphic=C.destroy());if(!X.allowOverlapX){let q=100;for(let H of(w(W,function(V){V.plotX=V.anchorX,Y.push(V),q=Math.max(V.size,q)}),p(Y,G?B.len:this.xAxis.len,q),T)){let V=H.plotX,Z=H.graphic,K=Z&&W[V];K&&Z&&(m(K.pos)?Z[Z.isNew?"attr":"animate"]({x:K.pos+(K.align||0)*K.size,anchorX:H.anchorX}).show().isNew=!1:Z.hide().isNew=!0)}}X.useHTML&&this.markerGroup&&R(this.markerGroup,"on",function(q){return c.prototype.on.apply(q.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let _=this.points;for(let P of(super.drawTracker(),_)){let F=P.graphic;F&&(P.unbindMouseOver&&P.unbindMouseOver(),P.unbindMouseOver=x(F.element,"mouseover",function(){for(let A of(P.stackIndex>0&&!P.raised&&(P._y=F.y,F.attr({y:P._y-8}),P.raised=!0),_))A!==P&&A.raised&&A.graphic&&(A.graphic.attr({y:A._y}),A.raised=!1)}))}}pointAttribs(_,P){let F=this.options,A=_&&_.color||this.color,D=F.lineColor,C=_&&_.lineWidth,d=_&&_.fillColor||F.fillColor;return P&&(d=F.states[P].fillColor,D=F.states[P].lineColor,C=F.states[P].lineWidth),{fill:d||A,stroke:D||A,"stroke-width":C||F.lineWidth||0}}setClip(){b.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return O.compose=r.compose,O.defaultOptions=S(v.defaultOptions,i),l.compose(O),E(O.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:u,init:b.prototype.init}),h.registerSeriesType("flags",O),O}),s(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,i){var r;let{addEvent:n,find:l,fireEvent:a,isArray:h,isNumber:c,pick:g}=i;return function(u){function p(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function b(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function v(){let R=this.brokenAxis;if(R?.hasBreaks){let O=this.tickPositions,I=this.tickPositions.info,_=[];for(let P=0;Py.to||_>y.from&&Py.from&&Py.from&&P>y.to&&P0){let A,D;for(this.options.gapUnit!=="value"&&(P*=this.basePointRange),O&&O>P&&O>=this.basePointRange&&(P=O);F--;)if(D&&D.visible!==!1||(D=I[F+1]),A=I[F],D.visible!==!1&&A.visible!==!1){if(D.x-A.x>P){let C=(A.x+D.x)/2;I.splice(F+1,0,{isNull:!0,x:C}),_.stacking&&this.options.stacking&&((_.stacking.stacks[this.stackKey][C]=new e(_,_.options.stackLabels,!1,C,this.stack)).total=0)}D=A}}return this.getGraphPath(I)}u.compose=function(R,O){if(!R.keepProps.includes("brokenAxis")){R.keepProps.push("brokenAxis"),n(R,"init",x),n(R,"afterInit",p),n(R,"afterSetTickPositions",v),n(R,"afterSetOptions",b);let I=O.prototype;I.drawBreaks=L,I.gappedPath=S,n(O,"afterGeneratePoints",m),n(O,"afterRender",E)}return R};class w{static isInBreak(O,I){let _=O.repeat||1/0,P=O.from,F=O.to-O.from,A=I>=P?(I-P)%_:_-(P-I)%_;return O.inclusive?A<=F:A=P);A++)(F.to=O)break;if(w.isInBreak(F,O)){P-=O-F.from;break}}return P}constructor(O){this.hasBreaks=!1,this.axis=O}findBreakAt(O,I){return l(I,function(_){return _.fromk;)z-=M;for(;zthis.chart.plotSizeX/x||E&&L.forced)&&(m=!0));return m?x:0}function u(){this.series.forEach(function(b){b.hasProcessed=!1})}function p(b,v){let x;if(v=h(v,!0),b||(b={forced:!1,units:null}),this instanceof r)for(x=this.series.length;x--;)this.series[x].update({dataGrouping:b},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof b=="boolean"?b:a(b,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),v&&this.chart.redraw()}return{compose:function(b){r=b;let v=b.prototype;v.applyGrouping||(n(b,"afterSetScale",u),n(b,"postProcessData",c),l(v,{applyGrouping:c,getGroupPixelWidth:g,setDataGrouping:p}))}}}),s(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{series:{prototype:h}}=l,{addEvent:c,defined:g,error:u,extend:p,isNumber:b,merge:v,pick:x}=a,m=h.generatePoints;function E(I){var _;let P,F,A=this.chart,D=this.options.dataGrouping,C=this.allowDG!==!1&&D&&x(D.enabled,A.options.isStock),d=this.reserveSpace(),f=this.currentDataGrouping,y,M,k=!1;C&&!this.requireSorting&&(this.requireSorting=k=!0);let T=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!I)||!C;if(k&&(this.requireSorting=!1),T)return;this.destroyGroupedData();let z=D.groupAll?this.xData:this.processedXData,N=D.groupAll?this.yData:this.processedYData,G=A.plotSizeX,X=this.xAxis,j=X.options.ordinal,B=this.groupPixelWidth;if(B&&z&&z.length&&G){F=!0,this.isDirty=!0,this.points=null;let W=X.getExtremes(),Y=W.min,U=W.max,q=j&&X.ordinal&&X.ordinal.getGroupIntervalFactor(Y,U,this)||1,H=B*(U-Y)/G*q,V=X.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(H,D.units||i.units),Math.min(Y,z[0]),Math.max(U,z[z.length-1]),X.options.startOfWeek,z,this.closestPointRange),Z=h.groupData.apply(this,[z,N,V,D.approximation]),K=Z.groupedXData,J=Z.groupedYData,tt=0;for(D&&D.smoothed&&K.length&&(D.firstAnchor="firstPoint",D.anchor="middle",D.lastAnchor="lastPoint",u(32,!1,A,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),P=1;P=Q[0]){let lt;ht++;let xt=$.groupMap[0].start,wt=$.groupMap[0].length;b(xt)&&b(wt)&&(lt=xt+(wt-1)),Q[0]={start:Q[0],middle:Q[0]+.5*st,end:Q[0]+st,firstPoint:$.xData[0],lastPoint:lt&&$.xData[lt]}[ot]}if(rt>0&&at&&st&&Q[rt]>=et-st){ct--;let lt=$.groupMap[$.groupMap.length-1].start;Q[rt]={start:Q[rt],middle:Q[rt]+.5*st,end:Q[rt]+st,firstPoint:lt&&$.xData[lt],lastPoint:$.xData[$.xData.length-1]}[at]}if(nt&&nt!=="start"){let lt=st*{middle:.5,end:1}[nt];for(;ct>=ht;)Q[ct]+=lt,ct--}}(this,K,U),d&&(g((_=K)[0])&&b(X.min)&&b(X.dataMin)&&_[0]X.max&&((!g(X.options.max)&&b(X.dataMax)&&X.max>=X.dataMax||X.max===X.dataMax)&&(X.max=Math.max(_[_.length-1],X.max)),X.dataMax=Math.max(_[_.length-1],X.dataMax))),D.groupAll&&(this.allGroupedData=J,K=(M=this.cropData(K,J,X.min,X.max)).xData,J=M.yData,this.cropStart=M.start),this.processedXData=K,this.processedYData=J}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=F,this.preventGraphAnimation=(f&&f.totalRange)!==(y&&y.totalRange)}function L(){this.groupedData&&(this.groupedData.forEach(function(I,_){I&&(this.groupedData[_]=I.destroy?I.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function S(){m.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function w(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function R(I,_,P,F){let A=this,D=A.data,C=A.options&&A.options.data,d=[],f=[],y=[],M=I.length,k=!!_,T=[],z=A.pointArrayMap,N=z&&z.length,G=["x"].concat(z||["y"]),X=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j,B,W,Y=0,U=0,q=typeof F=="function"?F:F&&e[F]?e[F]:e[A.getDGApproximation&&A.getDGApproximation()||"average"];if(N){let V=z.length;for(;V--;)T.push([])}else T.push([]);let H=N||1;for(let V=0;V<=M;V++)if(!(I[V]=P[Y+1]||V===M;){j=P[Y],A.dataGroupInfo={start:X?U:A.cropStart+U,length:T[0].length,groupStart:j},W=q.apply(A,T),A.pointClass&&!g(A.dataGroupInfo.options)&&(A.dataGroupInfo.options=v(A.pointClass.prototype.optionsToObject.call({series:A},A.options.data[A.cropStart+U])),G.forEach(function(Z){delete A.dataGroupInfo.options[Z]})),W!==void 0&&(d.push(j),f.push(W),y.push(A.dataGroupInfo)),U=V;for(let Z=0;Z{let c=h.axis.getExtremes(),g=c.min,u=c.max,p=n(h.axis.minPointOffset,0);return r(g)&&r(u)&&h.value>=g-p&&h.value<=u+p&&!h.axis.options.isInternal})[0]},getFieldType:function(a,h){let c=l[a],g=typeof h;return i(c)&&(g=c),{string:"text",number:"number",boolean:"checkbox"}[g]}}}),s(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(e,i){let r,{addEvent:n,isObject:l,pick:a,defined:h,merge:c}=e,{getAssignedAxis:g}=i,u=[],p={enabled:!0,sensitivity:1.1},b=m=>(l(m)||(m={enabled:m??!0}),c(p,m)),v=function(m,E,L,S,w,R,O){let I=a(O.type,m.zooming.type,""),_=[];I==="x"?_=L:I==="y"?_=S:I==="xy"&&(_=m.axes);let P=m.transform({axes:_,to:{x:w-5,y:R-5,width:10,height:10},from:{x:w-5*E,y:R-5*E,width:10*E,height:10*E},trigger:"mousewheel"});return P&&(h(r)&&clearTimeout(r),r=setTimeout(()=>{m.pointer?.drop()},400)),P};function x(){let m=b(this.zooming.mouseWheel);m.enabled&&n(this.container,"wheel",E=>{E=this.pointer?.normalize(E)||E;let{pointer:L}=this,S=L&&!L.inClass(E.target,"highcharts-no-mousewheel");if(this.isInsidePlot(E.chartX-this.plotLeft,E.chartY-this.plotTop)&&S){let w=m.sensitivity||1.1,R=E.detail||(E.deltaY||0)/120,O=g(L.getCoordinates(E).xAxis),I=g(L.getCoordinates(E).yAxis);v(this,Math.pow(w,R),O?[O.axis]:this.xAxis,I?[I.axis]:this.yAxis,E.chartX,E.chartY,m)&&E.preventDefault?.()}})}return{compose:function(m){u.indexOf(m)===-1&&(u.push(m),n(m,"afterGetContainer",x))}}}),s(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(e,i){return e.MouseWheelZoom=e.MouseWheelZoom||i,e.MouseWheelZoom.compose(e.Chart),e}),s(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Core/Axis/OrdinalAxis.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Chart/StockChart.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"]],function(e,i,r,n,l,a,h,c,g){return e.Navigator=e.Navigator||r,e.OrdinalAxis=e.OrdinalAxis||n,e.RangeSelector=e.RangeSelector||l,e.Scrollbar=e.Scrollbar||a,e.stockChart=e.stockChart||h.stockChart,e.StockChart=e.StockChart||e.stockChart,e.extend(e.StockChart,h),i.compose(e.Series,e.Axis,e.Point),g.compose(e.Renderer),c.compose(e.Series),e.Navigator.compose(e.Chart,e.Axis,e.Series),e.OrdinalAxis.compose(e.Axis,e.Series,e.Chart),e.RangeSelector.compose(e.Axis,e.Chart),e.Scrollbar.compose(e.Axis),e.StockChart.compose(e.Chart,e.Axis,e.Series,e.SVGRenderer),e})})});var Du=qe((NT,Un)=>{"use strict";(function(o){typeof Un=="object"&&Un.exports?(o.default=o,Un.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],g.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(g=this.normalizedValue(h),x=E.length;x--&&!(g>E[x][0]););u=E[x]||E[x+1],g=1-((p=E[x+1]||u)[0]-g)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,g)}return b},r}),s(t,"Core/Axis/SolidGaugeAxis.js",[t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Utilities.js"]],function(e,i){let{extend:r}=i;return{init:function(n){r(n,e)}}}),s(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),s(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Extensions/BorderRadius.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{gauge:a,pie:h}=i.seriesTypes,{clamp:c,extend:g,isNumber:u,merge:p,pick:b,pInt:v}=l;class x extends a{translate(){let E=this.yAxis;r.init(E),!E.dataClasses&&E.options.dataClasses&&E.initDataClasses(E.options),E.initStops(),a.prototype.translate.call(this)}drawPoints(){let E,L=this.yAxis,S=L.center,w=this.options,R=this.chart.renderer,O=w.overshoot,I=w.rounded&&w.borderRadius===void 0,_=u(O)?O/180*Math.PI:0;for(let P of(u(w.threshold)&&(E=L.startAngleRad+L.translate(w.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=b(E,L.startAngleRad),this.points))if(!P.isNull){let F=v(b(P.options.radius,w.radius,100))*S[2]/200,A=v(b(P.options.innerRadius,w.innerRadius,60))*S[2]/200,D=Math.min(L.startAngleRad,L.endAngleRad),C=Math.max(L.startAngleRad,L.endAngleRad),d=P.graphic,f=L.startAngleRad+L.translate(P.y,void 0,void 0,void 0,!0),y,M,k=L.toColor(P.y,P);k==="none"&&(k=P.color||this.color||"none"),k!=="none"&&(P.color=k),f=c(f,D-_,C+_),w.wrap===!1&&(f=c(f,D,C));let T=I?(F-A)/2/F:0,z=Math.min(f,this.thresholdAngleRad)-T,N=Math.max(f,this.thresholdAngleRad)+T;N-z>2*Math.PI&&(N=z+2*Math.PI);let G=I?"50%":0;w.borderRadius&&(G=e.optionsToObject(w.borderRadius).radius),P.shapeArgs=y={x:S[0],y:S[1],r:F,innerR:A,start:z,end:N,borderRadius:G},P.startR=F,d?(M=y.d,d.animate(g({fill:k},y)),M&&(y.d=M)):P.graphic=d=R.arc(y).attr({fill:k,"sweep-flag":0}).add(this.group),this.chart.styledMode||(w.linecap!=="square"&&d.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),d.attr({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0})),d&&d.addClass(P.getClassName(),!0)}}animate(E){E||(this.startAngleRad=this.thresholdAngleRad,h.prototype.animate.call(this,E))}}return x.defaultOptions=p(a.defaultOptions,n),i.registerSeriesType("solidgauge",x),x}),s(t,"masters/modules/solid-gauge.src.js",[t["Core/Globals.js"]],function(e){return e})})});var Qn=qt(ys());var _h="Oxygen",wh="mdx2json.emptyportlet",Sh="DSW.Addons.";var ye=(()=>{let t=class t{constructor(){this.model={},this.el=$t(ah),this.cd=$t(dh),this.ds=$t(gh),this.ss=$t(xh),this.bs=$t(yh),this.us=$t(mh),this.i18n=$t(fh),this.route=$t(ph),this.fs=$t(vh),this.dbs=$t(bh),this.isSpinner=!0,this.drills=[],this.drillFilterWidgets=[],this.customDataSource="",this.preventColFilteringBasedOnDataProperties=!1,this.drillFilter="",this.drillFilterDrills=[],this.customColSpec="",this.customRowSpec="",this.linkedMdx="",this.canDoDrillthrough=!1,this.firstRun=!0,this.baseType="",this.hasDatasourceChooser=!1,this.oneItemDrillApplied=!1}get inline(){return this.widget.inline}ngOnInit(){this.baseType=this.widget?.type,this.override=this.getOverride(),this.extendPropsWithOverrides(),this.loadWidgetSettings(),this.initializeDrills(),this.initializeTile(),this.initializeActionAndPvItems(),this.initializeDataSourceChooser(),this.initializeDrillthrough(),this.initializeLiveDataUpdate(),this.subscribe(),this.initializeLinkedWidgets(),this.initializeDependants(),this.initializeDrillFilter(),this.initializeChoseDataSource(),this.initializeInputControls(),this.initializeActions(),this.requestPivotData(),this.initializeDataRequest()}ngOnDestroy(){clearInterval(this.liveUpdateInterval),this.subDrilldown?.unsubscribe(),this.subDrillthrough?.unsubscribe(),this.subLinkedMdx?.unsubscribe(),this.subRefreshDependants?.unsubscribe(),this.subDrillFilter?.unsubscribe(),this.subDrillFilterAll?.unsubscribe(),this.subPivotVar?.unsubscribe(),this.subPivotVarAll?.unsubscribe(),this.subDataSourceChange?.unsubscribe(),this.subColSpec?.unsubscribe(),this.subColSpecAll?.unsubscribe(),this.subChartType?.unsubscribe()}getDataProp(e){if(this.widget.dataProperties)return this.widget.dataProperties.find(i=>i.name===e)}getDataPropByDataValue(e){if(!this.widget.dataProperties||!e)return;let i=e.split("/");return this.widget.dataProperties.find(r=>{let n=r.dataValue?.toString().split("/");return i.some(l=>n.includes(l))})}getDataPropValue(e){let i=this.getDataProp(e);if(i&&i.dataValue!==null&&i.dataValue!==void 0)return i.dataValue.toString()}initializeActions(){if(!this.widget.controls||this.widget.controls.length===0)return;let e=["chooserowspec","setrowspec","choosedatasource","choosecharttype","applyfilter","setfilter","refresh","reloaddashboard","showlisting","showgeolisting","showbreakdown","setdatasource","applyvariable","setrowcount","setrowsort","setcolumncount","setcolumnsort","choosecolumnspec"],i=this.widget.controls.filter(r=>e.indexOf(r.action.toLowerCase())===-1&&r.type!=="hidden");i.length!==0&&(this.widget.acItems=i)}initializeChoseDataSource(){return Yt(this,null,function*(){if(!this.widget)return;let e=n=>n.action==="chooseDataSource"||n.action==="chooseRowSpec"||n.action==="setRowSpec"||n.action==="chooseColumnSpec",i=this.widget.type===wh;if(!i&&(!this.widget.controls||this.widget.controls.length===0))return;let r=[];if(this.widget.controls&&(r=this.widget.controls.filter(e).filter(n=>n.location!=="dashboard")),i){let n=this.dbs.getWidgets();for(let l=0;la.location==="dashboard")))}if(r.length!==0){this.hasDatasourceChooser=!0,this.widget.dsItems=[];for(let n=0;n{h[b]=p[v]})}}let g={action:r[n].action,label:r[n].label||this.i18n.get("dataSource"),dsSelected:r[n].value,control:r[n],labels:[],values:[],field:"select"};this.widget.dsItems.push(g);let u=null;if(c?u=yield this.ds.getTermList(c):u=h,u&&typeof u=="object"){for(let b in u)u[b]===this.widget.dataSource&&(this.widget.dsSelected=b);g.labels=[],g.values=[],(g.control?.action==="chooseRowSpec"||g.control?.action==="setRowSpec")&&(g.labels.push(""),g.values.push(""));for(let b in u)g.labels.push(b),g.values.push(u[b]);let p=-1;this.customDataSource?p=g.values.findIndex(b=>b===this.customDataSource):p=g.values.findIndex(b=>b.split("/").pop()===g.dsSelected),p===-1?g.dsSelected=g.labels[0]:g.dsSelected=g.labels[p],this.parent?.filters.detectChanges()}}}})}onVariableChange(e){let i=e.target;this.bs.broadcast(`updatePivotVar:${i}`)}onPivotVarChanged(){this.requestData()}getDataByColumnName(e,i,r,n=""){if(!e||!e.Data||!e.Cols||!e.Cols[0]||!e.Cols[0].tuples)return;let l=e.Cols[0].tuples.filter(g=>g.caption.toLowerCase()===i.toLowerCase());if(l.length===0)return;let a=e.Cols[0].tuples.indexOf(l[0]),h=e.Cols[0].tuples[a].originalIndex;h!==void 0&&(a=h);let c=e.Data[r+a];return n&&(c=this.formatNumber(c,n)),c}initializeDrillFilter(){let e=this.fs.getClickFilterTarget(this.widget.name);e?.length&&(this.drillFilterWidgets=e)}resetClickFilter(){if(this.widget.clickFilterActive=!1,!(!this.drillFilterWidgets||!this.drillFilterWidgets.length))for(let e=0;e{this.bs.broadcast("drillFilter:"+r,{path:"",drills:[]})})}}doDrillFilter(e,i=[]){if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let r=i.slice();e||r.pop(),this.widget.clickFilterActive=!!e;for(let n=0;n{this.bs.broadcast("drillFilter:"+a,{path:e,drills:r})})}this.parent?.header?.cd.detectChanges()}onDrillFilter(e,i){this.drillFilter=e,this.drillFilterDrills=i,this.requestData()}actionNavigate(e,i=!1){let r=e.targetProperty,n=r.toUpperCase().indexOf("DASHBOARD=");if(n!==-1){let l=r.substring(n+10,r.length);l.indexOf("?")===-1&&(l=l.replace("&","?"));let a=location.href;a.indexOf("#")!==-1?r=a.split("#")[0]+"#/"+xs+"/"+l:r+="#/"+xs+"/"+l}if(r=r.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=l.dataArray[(this.lpt.getSelectedRows()[0]-1)*l.columnProps.length],h=r.toLowerCase().indexOf("$$$currvalue");h!==-1&&(r=r.substring(0,h)+a+r.substring(h+12,r.length))}if(this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=this.lpt.getSelectedRows(),h=[];for(let g=0;gthis.requestData())}getDrillTitle(e){if(!e)return this.widget.baseTitle||"";let i=e.path.split(".");return i.pop(),(this.widget.baseTitle?this.widget.baseTitle+" - ":"")+(e.name?i[i.length-1]+" - ":"")+(e.name||e.category)}isEmptyData(e){return!e||!e.Cols||!e.Cols[1]||!e.Cols[1]||!e.Cols[1].tuples||e.Cols[1].tuples.length===0||!e.Data||e.Data.length===0||e.Data[0]==="@NOPROPERTY"}doDrillUp(){this.widget.isDrillthrough?(this.restoreWidgetType(),this.widget.isDrillthrough=!1,this.widget.backButton=!!this.drills?.length,this.parent.header?.cd.detectChanges()):this.doDrillOnly()}restoreWidgetType(){delete this.widget.pivotMdx,delete this.widget.pivotData,this.widget?.oldType&&(this.widget.type=this.widget.oldType,this.parent?.updateComponent())}changeWidgetType(e){this.widget.oldType=this.widget.type,this.widget.type=e,this.parent?.updateComponent()}getDrillthroughMdx(e){let i=e.toLowerCase(),r="select non empty",n=i.lastIndexOf(r);n===-1&&(r="select",n=i.lastIndexOf(r));let l=i.lastIndexOf("from");if(n===-1){console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");return}if(l===-1){console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");return}let a="";if(this.pivotData?.listingRows){let c=parseInt(this.pivotData.listingRows,10);c&&(a=` MAXROWS ${c} `)}let h=this.widget.controls.find(c=>c.action==="showListing");if(h){let c=h.targetPropertyDisplay;if(c)return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)+` %LISTING [${c}]`}return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)}doDrill(e,i,r,n,l=!1,a,h){return new Promise((c,g)=>{this.clearError(),l||this.doDrillFilter(e,this.drills);let u=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading();let b=()=>{if(n){n();return}if(!this.canDoDrillthrough)return;let v=this.getDrillthroughMdx(p)||"";this.ds.execMDX(v).then(x=>{!x||!x.children||x.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=x,this._currentData=x,this.displayAsPivot(v))}).catch(x=>{h&&h(x)})};this.showLoading(),this.ds.execMDX(p).catch(v=>{l?h&&h(v):b()}).then(v=>{if(v){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(v)&&e){b();return}this.isEmptyData(v)||(e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(p),this.retrieveData(v),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),this._currentData=v,a&&a())}}).finally(()=>{this.hideLoading(),c()})})}doDrillthrough(e,i,r,n,l=!1,a,h){return new Promise((c,g)=>{if(!this.canDoDrillthrough){c();return}if(this.clearError(),this.widget.kpitype&&i){this.doKPIDrillthrough(i);return}let u=this.drills.slice();e?Array.isArray(e)?e.forEach(v=>{this.drills.push({path:v,name:i||"",category:r})}):this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading();let b=this.getDrillthroughMdx(p)||"";this.ds.execMDX(b).then(v=>{!v||!v.children||v.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=v,this.displayAsPivot(b))}).catch(v=>{h&&h(v)}).finally(()=>{this.hideLoading()})})}doDrillOnly(e,i,r,n,l=!1,a,h){return new Promise((c,g)=>{this.clearError();let u=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading(),this.ds.execMDX(p).catch(b=>{h&&h(b)}).then(b=>{b&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(b)&&(this._currentData=b,e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(p),this.retrieveData(b),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),a&&a()))}).finally(()=>{this.hideLoading(),c()})})}checkForAutoDrill(e){return Yt(this,null,function*(){let i=!1;return e?.Cols[1]?.tuples?.length===1&&(this.oneItemDrillApplied=!0,yield this.doDrill(e.Cols[1].tuples[0].path,e.Cols[1].tuples[0].caption,void 0,void 0,!0,()=>{this.widget.backButton=!1,this.parent?.header?.cd.detectChanges(),i=!0},()=>{this.oneItemDrillApplied=!1})),i})}showLoading(){this.isSpinner||(this.isSpinner=!0,this.parent.cd.detectChanges(),this.cd.detectChanges())}hideLoading(){this.isSpinner&&(this.isSpinner=!1,this.parent.cd.detectChanges(),this.cd.detectChanges())}applyDrill(e){let i=this.route.snapshot.queryParamMap.get("filter");i&&(e=e+" %FILTER "+i);let r=this.drills;if(r.length===0&&(r=this.drillFilterDrills),r.length===0)return e;let n=[];this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(n=this.pivotData.rowAxisOptions.drilldownSpec.split("^"));for(let g=0;gthis._retriveDataSource(i)).catch(i=>{this.showError(i.error?.Error||i.message)})}convertKPIToMDXData(e,i=!1){let r=e,n=e.Result,l={Info:{cubeName:r.Info.KpiName},Cols:[],Data:[]},a=[];for(let c=0;cthis.broadcastDependents(),0),e.indexOf("$")!==-1&&!this.pivotVariables&&this.ds.getPivotVariables(this.widget.cube).then(i=>{this.pivotVariables=i}).catch(i=>{this.showError(i.message)}),this.showLoading(),this.ds.execMDX(e).then(i=>{this.removeColsThatNotExistInDataProperties(i),this._currentData=i,this.retrieveData(i)}).catch(i=>this._onRequestError(i)).finally(()=>{this.hideLoading()})}broadcastDependents(e){if(this.hasDependents())for(let i=0;in.action==="applyVariable");if(this.widget.shared){let n=this.route.snapshot.queryParamMap.get("variables");n&&n.split("~").forEach(a=>{let h=a.split("."),c=h[0],g=h[1],u=r.findIndex(p=>p.targetProperty==="$variable."+c);u!==-1?r[u].value=g:r.push({targetProperty:"$variable."+c,value:g})})}if(!r.length)return e;for(let n=0;nu+b+(g?".%NOT":"")).join(",")||"",e+="})"}else e+=" %FILTER "+c}}return e}dateToHorolog(e){let i=new Date("12/31/1840Z"),n=this.us.toDate(e).getTime()-i.getTime();return Math.ceil(n/(1e3*3600*24)).toString()}getMDX(){let e=!1;if(this.widget.kpitype)return"";let i=this.fs.getWidgetFilters(this.widget.name);if(this.isLinked()){let l=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",i);return l=this.checkColSpec(l),this.applyDrill(l)}if(this.drillFilter){let l=this.drillFilter.indexOf("&");l!==-1&&i.push({targetProperty:this.drillFilter.substring(0,l-1),value:"&"+this.drillFilter.substring(l+1,this.drillFilter.length)})}for(let l=0;l{this.onResize()},0))}displayAsPivot(e){this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=e||this.getMDX(),this.changeWidgetType("pivot")),this.parent?.cd&&this.parent.cd.detectChanges()}formatNumber(e,i=""){let r="";if(e==null&&(e=""),i?r=(0,Qn.default)(e).format(i.replace(/;/g,""))||"":r=e.toString(),this.dataInfo){let n=this.dataInfo.numericGroupSeparator,l=this.dataInfo.numericGroupSize||3;if(n){let a=r.split(".");a[0]=a[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),r=a.join(".")}this.dataInfo.decimalSeparator&&(r=r.replace(/\./g,this.dataInfo.decimalSeparator))}return r}getDrillsAsParameter(){let e=this.drills;return e?.length?encodeURIComponent(e.map(i=>i.path).join("~")):""}getFormat(e,i,r){let n="";return this.widget?.format&&(n=this.widget.format),i.Cols[0].tuples[e].format&&(n=i.Cols[0].tuples[e].format),r?.format&&(n=r?.format),n}getDataValue(e,i,r){let n=i.Data[e],l=this.getFormat(e,i,r);return l&&(n=(0,Qn.default)(n).format(l)),n}_requestKPIData(e,i=!1){let r=this.customDataSource||this.widget.dataSource;if(!r)return;let n=this.fs.getWidgetFilters(this.widget.name)?.filter(a=>!!a.value).map(a=>a.value.toString().split("|").map(c=>({name:a.targetProperty,value:c,exclude:!!a.isExclude}))).flat();e&&n.push(...e);let l=!!e||i;return this.showLoading(),this.ds.getKPIData(r,n,l).then(a=>this._retriveKPI(a,l)).finally(()=>{this.hideLoading()})}removeColsThatNotExistInDataProperties(e){if(this.preventColFilteringBasedOnDataProperties||!this.widget.dataProperties?.length||!e?.Cols[0]?.tuples?.length)return;let i=[],r=e.Cols[0]?.tuples?.length||0;r&&(e.Cols[0].tuples=e?.Cols[0]?.tuples.filter((n,l)=>{let a=n.dimension.toString().split("/"),h=this.widget.dataProperties.some(c=>c.dataValue.toString().split("/").some(u=>a.includes(u)));return h||i.push(l),h}),e.Data=e.Data?.filter((n,l)=>!i.some(a=>l%r===a)))}subscribe(){this.subDrillFilter=this.bs.subscribe("drillFilter:"+this.widget.name,({path:e,drills:i})=>{this.onDrillFilter(e,i)}),this.subDrillFilterAll=this.bs.subscribe("drillFilter:*",({path:e,drills:i})=>{this.onDrillFilter(e,i)}),this.subDrilldown=this.bs.subscribe("drilldown:"+this.widget.name,({path:e,title:i})=>{this.doDrillOnly(e,i,i)}),this.subDrillthrough=this.bs.subscribe("drillthrough:"+this.widget.name,({path:e,title:i})=>{this.doDrillthrough(e,i,i)}),this.subPivotVar=this.bs.subscribe("updatePivotVar:"+this.widget.name,e=>this.onPivotVarChanged()),this.subPivotVarAll=this.bs.subscribe("updatePivotVar:*",e=>this.onPivotVarChanged()),this.subColSpec=this.bs.subscribe("setColSpec:"+this.widget.name,e=>this.onColSpecChanged(e)),this.subColSpecAll=this.bs.subscribe("setColSpec:*",e=>this.onColSpecChanged(e)),this.subDataSourceChange=this.bs.subscribe("changeDataSource:"+this.widget.name,e=>this.changeDataSource(e)),this.subChartType=this.bs.subscribe("setWidgetType:"+this.widget.name,e=>{this.changeWidgetType(e)})}getOverride(){let e=this.baseType;return e==="lineChartMarkers"&&(e="lineChart"),e==="regular"&&(e="scoreCard"),this.widget?.overrides?.find(i=>i._type===e)}updateLocationDrillParameters(){if(!this.widget?.shared)return;let e=location.hash,i=this.getDrillsAsParameter();this.ds.router.navigate([],{relativeTo:this.route,queryParams:{drilldown:i},queryParamsHandling:"merge"});let r={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(r,"*");try{window.parent.dsw?.onDrill&&window.parent.dsw.onDrill(r)}catch(n){console.error(n)}}updateDatasourceParameterInURL(){if(!this.widget?.shared)return;this.ds.router.navigate([],{relativeTo:this.route,queryParams:{datasource:this.customDataSource},queryParamsHandling:"merge"});let e={type:"datasource",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,datasource:this.customDataSource};window.parent&&window.parent.postMessage(e,"*");try{window.parent.dsw?.onDataSource&&window.parent.dsw.onDataSource(e)}catch(i){console.error(i)}}navigateDashboard(e){this.ds.router.navigateByUrl(xs+"/"+e)}initializeInputControls(){let e="setRowCount";this.widget.controls.filter(r=>e.includes(r.action)).forEach(r=>{this.widget.dsItems.push({action:r.action,label:r.label||"Row count",field:"input",type:"number",_value:r.value||void 0})})}applyRowCount(e){let i=this.widget.dsItems.find(h=>h.action==="setRowCount");if(!i||!i._value)return e;let r=/(HEAD\(.*),(.*)(\))/i;if(e.match(r))return e.replace(r,`$1,${i._value}$3`);let l=e.match(/ON 0,(.*)ON 1/)?.[1];if(!l)return e;l=l.replace("NON EMPTY","");let a=" HEAD("+l.trim()+`, ${i._value}) `;return e.replace(l,a)}extendPropsWithOverrides(){this.override&&this.override.columns?.forEach((e,i)=>{let r=this.widget.dataProperties[i];r&&(e.showAs&&(r.showAs=e.showAs),e.format&&(r.format=e.format),e.display&&(r.display=e.display),e.label&&(r.label=e.label),e.summary&&(r.summary=e.summary),e.rangeLower&&(r.rangeLower=e.rangeLower),e.rangeUpper&&(r.rangeUpper=e.rangeUpper),e.targetValue&&(r.targetValue=e.targetValue),e.thresholdLower&&(r.thresholdLower=e.thresholdLower),e.thresholdUpper&&(r.thresholdUpper=e.thresholdUpper))})}initializeDataSourceChooser(){this.widget.dsItems=[],this.widget.dsLabel="",this.widget.dsSelected="",this.widget&&this.widget.dataSource&&(this.widget.dsSelected=this.us.removeExt(this.widget.dataSource.split("/").pop()))}initializeLiveDataUpdate(){if(!(this.widget&&this.widget.controls))return;let e=this.widget.controls.filter(r=>r.action==="setColumnSpec");e.length!==0&&(this.customColSpec=e[0].targetProperty);let i=this.widget.controls.filter(r=>r.action==="refresh"&&parseInt(r.timeout,10)>0);i.length!==0&&(this.liveUpdateInterval=setInterval(()=>this.requestData(),parseInt(i[0].timeout,10)*1e3))}initializeLinkedWidgets(){if(this.isLinked())if(this.widget.shared||this.widget.inline||this.widget.edKey){let i=this.dbs.getAllWidgets().find(r=>r.name===this.widget.dataLink);i&&(this.linkedMdx=i.mdx)}else this.subLinkedMdx=this.bs.subscribe("setLinkedMDX:"+this.widget.name,e=>this.onSetLinkedMdx(e))}loadWidgetSettings(){let e=this.ss.getAppSettings(),i=e.theme||"";this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.tc=e?.themeColors?.[i];let r=this.widgetsSettings?.[this.widget.name]?.themeColors?.[i];r&&(this.tc=r)}initializeDrills(){this.widget?.drills&&(this.drills=this.widget.drills)}initializeTile(){this.tile&&(this.widget={},this.us.mergeRecursive(this.widget,this.tile))}initializeActionAndPvItems(){this.widget.acItems=[],this.widget.pvItems=[]}initializeDrillthrough(){this.widget.controls&&this.widget.controls.length&&(this.canDoDrillthrough=!0)}initializeDependants(){this.hasDependents()&&(this.subRefreshDependants=this.bs.subscribe("widget:"+this.widget.name+":refreshDependents",e=>this.onRefreshDependents()))}initializeDataRequest(){this.widget.initialData||(this.widget?.properties?.chartToggle==="table"&&this.widget.type!=="pivot"&&!this.widget.oldType?this.requestData():this.customDataSource||this.requestData())}doKPIDrillthrough(e){if(!this._kpiData)return;let i=this._kpiData.Result.Series.find(a=>a.seriesName===e);if(!i)return;let r=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i[a.name],path:""})),n=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i.seriesName,path:""})),l=this._requestKPIData([...r,...n]);l&&l.then(a=>{this._kpiData&&(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.initialData=this.convertKPIToMDXData(this._kpiData,!0),this.changeWidgetType("pivot"),setTimeout(()=>{delete this.widget.initialData}))})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(i,r){i&2&&je("inline",r.inline)},inputs:{model:"model",parent:"parent",widget:"widget"},standalone:!0,features:[bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var ep=["images"];function ip(o,t){if(o&1){let s=hh();Lt(0,"div",2),ch("click",function(){let i=sh(s).$implicit,r=Nt();return rh(r.onClick(i))}),nh(),Lt(1,"svg",3,0)(3,"text"),ie(4),Lt(5,"tspan",4),ie(6),kt(),Lt(7,"tspan",5),ie(8),kt()()(),oh(),Lt(9,"label"),ie(10),kt()()}if(o&2){let s=t.$implicit,e=Nt();je("clickable",e.canDrillthrough),Dt(3),Ee("fill",s.valueColor),Dt(),ms("",s.value," "),Dt(2),Te(s.deltaNeg),Dt(2),Te(s.delta),Dt(2),Te(s.label)}}var Mh=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.images=[],this.widget={},this.textData=[]}get flexDirection(){let e=this.el?.nativeElement;if(e)return e.offsetWidth>e.offsetHeight?"row":"column"}get canDrillthrough(){return this.canDoDrillthrough}ngOnInit(){this.textData=[],super.ngOnInit()}ngAfterViewInit(){}findDataPropByName(e){if(this.widget.dataProperties){for(let i=0;i{let i=e.nativeElement,n=i.firstChild.getBBox();i.setAttribute("viewBox",[n.x,n.y,n.width,n.height].join(" "))})}retrieveData(e){if(this.textData=[],this.hideLoading(),e)for(let i=0;iu){let b=this.widget.properties?.highRangeColor;p.highStyle&&(b=this.getCss(p.highStyle).fill),b&&(c=b)}}this.textData.push({label:a,value:n,color:l,valueColor:c,dimension:e.Cols[0].tuples[i].dimension})}}this.cd.detectChanges(),setTimeout(()=>this.adjustSize())}onClick(e){this.doDrillthrough("",e.label)}getCss(e){let i={};return e.split(";").filter(r=>r).forEach(r=>{let n=r.split(":");i[n[0]]=n[1]}),i}getNumber(e){return typeof e=="string"?parseFloat(e.replace(/,/g,"").replace(/ /g,"")):e}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-wtext"]],viewQuery:function(i,r){if(i&1&&$i(ep,5),i&2){let n;Ji(n=Qi())&&(r.images=n)}},hostVars:2,hostBindings:function(i,r){i&2&&Ee("flex-direction",r.flexDirection)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[["images",""],[1,"item2",3,"clickable"],[1,"item2",3,"click"],[1,"text-widget"],[2,"font-size","4px","fill","red"],[2,"font-size","4px","fill","green"]],template:function(i,r){i&1&&oe(0,ip,11,8,"div",1,ne),i&2&&ae(r.textData)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-display:row;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial}.inline[_nghost-%COMP%] label[_ngcontent-%COMP%]{background-color:transparent;background-image:none}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0}label[_ngcontent-%COMP%]{display:block;flex-shrink:0;height:16px;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8);width:100%;text-align:center;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item2[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;margin:10px;background-color:#fafafa;padding:10px;min-height:0;min-width:0}.item2.clickable[_ngcontent-%COMP%]{cursor:pointer}.item2[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{height:auto;background:transparent;color:gray;font-size:19px}.item2[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:50%;width:100%;display:block}.text-widget[_ngcontent-%COMP%]{height:100%}"]});let o=t;return o})();var to=(()=>{let t=class t extends ye{constructor(){super(),this.widget={},this.isSpinner=!1,this._oldMdx=""}ngAfterViewInit(){this.createPivotTable()}ngOnDestroy(){super.ngOnDestroy()}createPivotTable(){let e=this,i={initialData:this.widget.pivotData,container:this.el.nativeElement,pivotProperties:{},enableListingSelect:!1,enableSearch:!1,dataSource:{pivot:this.widget.dataSource,MDX2JSONSource:this.ds.url.substring(0,this.ds.url.length-1),basicMDX:this.widget.pivotMdx||this.getMDX(),namespace:xs,sendCookies:!0},triggers:{drillDown:r=>this.onDrillDown(r),rowClick:(r,n,l)=>e.drillFilterWidgets?.length?(e.doDrillFilter(l.source.path,e.drills),e.parent?.header?.cd.detectChanges(),!1):!this.widget.kpitype,back:r=>this.onDrillDown(r),cellDrillThrough:(...r)=>this.onDrillThrough(...r),responseHandler:r=>{r.status!==200&&this.showError(r.xhr.responseText)}},loadingMessageHTML:'',columnResizeAnimation:!0,locale:this.i18n.current,hideButtons:!0,formatNumbers:"#,###.##",controls:this.widget.controls};if(delete this.widget.pivotMdx,this.lpt=new LightPivotTable(i),this.widget.edKey&&this.lpt?.pivotView.displayMessage(""),this.lpt&&this.widget.initialData){let r=this.widget.initialData;setTimeout(()=>{this.lpt?.dataController.setData(this.lpt.dataSource._convert(r))})}}doDrillUp(){this.widget.isDrillthrough&&this.restoreWidgetType?(this.widget.isDrillthrough=!1,this.restoreWidgetType(),this.widget.kpitype&&this.requestData()):this.lpt?.CONTROLS.back(),this.widget.backButton=this.lpt?.DRILL_LEVEL!==0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}onDrillThrough(...e){if(!this.canDoDrillthrough)return!1;if(this.widget.kpitype){let{cellData:i,x:r,y:n}=e[0],{info:l,dimensions:a}=e[1];if(!a[0])return;let h=a[0][r-l.leftHeaderColumnsNumber]?.dimension||"",c=a[0][0]?.dimension||"",g=a[1][n-l.topHeaderRowsNumber]?.title||"";if(!h||!c)return;let u=[{name:h,value:i.value,path:""},{name:c,value:g,path:""}];return this._requestKPIData(u)?.then(()=>{this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}),!1}return this._oldMdx=this.lpt?.getActualMDX()||"",this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),!0}onDrillDown(e){e.path?(this.doDrillFilter(e.path,this.drills),this.drills.push({path:e.path,name:"",category:""}),this.widget.backButton=!0):(this.drills.pop(),this.doDrillFilter(e.path,this.drills)),this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),this.broadcastDependents(e.mdx)}requestData(){let e=this.customDataSource||this.widget.dataSource;if(this.widget.kpitype){this._requestKPIData();return}if(this.lpt){let i=this.getMDX();if(this.lpt.isListing()&&(delete this.lpt.CONFIG.initialData,i.toLowerCase().substr(0,12)!=="drillthrough"&&(i=this.getDrillthroughMdx(i)||"")),i==="")return;this.drillFilter&&(i=i+" %FILTER "+this.drillFilter),this.broadcastDependents(),this.clearError(),this.lpt.changeBasicMDX(i)}}onResize(){this.lpt&&setTimeout(()=>this.lpt?.updateSizes(),100)}print(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=yt({type:t,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},styles:["[_nghost-%COMP%]{height:100%}"]});let o=t;return o})();var eo=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};var Jt=eo;var Be={PROPERTYCHANGE:"propertychange"};var io=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}},bs=io;function $e(o,t){return o>t?1:o0?i-1:i}return e-1}if(s>0){for(let i=1;i0||s&&n===0)})}function xi(){return!0}function yi(){return!1}function Ge(){}function Ah(o){let t=!1,s,e,i;return function(){let r=Array.prototype.slice.call(arguments);return(!t||this!==i||!he(r,e))&&(t=!0,i=this,e=r,s=o.apply(this,arguments)),s}}function Je(o){for(let t in o)delete o[t]}function bi(o){let t;for(t in o)return!1;return!t}var so=class extends bs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,s){if(!t||!s)return;let e=this.listeners_||(this.listeners_={}),i=e[t]||(e[t]=[]);i.includes(s)||i.push(s)}dispatchEvent(t){let s=typeof t=="string",e=s?t:t.type,i=this.listeners_&&this.listeners_[e];if(!i)return;let r=s?new Jt(t):t;r.target||(r.target=this.eventTarget_||this);let n=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});e in n||(n[e]=0,l[e]=0),++n[e];let a;for(let h=0,c=i.length;h0:!1}removeEventListener(t,s){let e=this.listeners_&&this.listeners_[t];if(e){let i=e.indexOf(s);i!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(e[i]=Ge,++this.pendingRemovals_[t]):(e.splice(i,1),e.length===0&&delete this.listeners_[t]))}}},Li=so;var ut={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Mt(o,t,s,e,i){if(e&&e!==o&&(s=s.bind(e)),i){let n=s;s=function(){o.removeEventListener(t,s),n.apply(this,arguments)}}let r={target:o,type:t,listener:s};return o.addEventListener(t,s),r}function Cs(o,t,s,e){return Mt(o,t,s,e,!0)}function At(o){o&&o.target&&(o.target.removeEventListener(o.type,o.listener),Je(o))}var _s=class extends Li{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(ut.CHANGE)}getRevision(){return this.revision_}onInternal(t,s){if(Array.isArray(t)){let e=t.length,i=new Array(e);for(let r=0;r0;)this.pop()}extend(t){for(let s=0,e=t.length;sthis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(s),this.array_.splice(t,0,s),this.updateLength_(),this.dispatchEvent(new ws(Qt.ADD,s,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let s=this.getLength();return this.insertAt(s,t),this.getLength()}remove(t){let s=this.array_;for(let e=0,i=s.length;e=this.getLength())return;let s=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new ws(Qt.REMOVE,s,t)),s}setAt(t,s){let e=this.getLength();if(t>=e){this.insertAt(t,s);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(s,t);let i=this.array_[t];this.array_[t]=s,this.dispatchEvent(new ws(Qt.REMOVE,i,t)),this.dispatchEvent(new ws(Qt.ADD,s,t))}updateLength_(){this.set(Ph.LENGTH,this.array_.length)}assertUnique_(t,s){for(let e=0,i=this.array_.length;ei&&(a=a|Ht.RIGHT),lr&&(a=a|Ht.ABOVE),a===Ht.UNKNOWN&&(a=Ht.INTERSECTING),a}function Vt(){return[1/0,1/0,-1/0,-1/0]}function Pe(o,t,s,e,i){return i?(i[0]=o,i[1]=t,i[2]=s,i[3]=e,i):[o,t,s,e]}function ts(o){return Pe(1/0,1/0,-1/0,-1/0,o)}function Fh(o,t){let s=o[0],e=o[1];return Pe(s,e,s,e,t)}function Hr(o,t,s,e,i){let r=ts(i);return ho(r,o,t,s,e)}function Ci(o,t){return o[0]==t[0]&&o[2]==t[2]&&o[1]==t[1]&&o[3]==t[3]}function zh(o,t){return t[0]o[2]&&(o[2]=t[2]),t[1]o[3]&&(o[3]=t[3]),o}function es(o,t){t[0]o[2]&&(o[2]=t[0]),t[1]o[3]&&(o[3]=t[1])}function ho(o,t,s,e,i){for(;st[0]?e[0]=o[0]:e[0]=t[0],o[1]>t[1]?e[1]=o[1]:e[1]=t[1],o[2]=t[0]&&o[1]<=t[3]&&o[3]>=t[1]}function Fi(o){return o[2]=n&&v<=a),!e&&r&Ht.RIGHT&&!(i&Ht.RIGHT)&&(x=p-(u-a)*b,e=x>=l&&x<=h),!e&&r&Ht.BELOW&&!(i&Ht.BELOW)&&(v=u-(p-l)/b,e=v>=n&&v<=a),!e&&r&Ht.LEFT&&!(i&Ht.LEFT)&&(x=p-(u-n)*b,e=x>=l&&x<=h)}return e}function Gh(o,t,s,e){if(Fi(o))return ts(s);let i=[];if(e>1){let l=o[2]-o[0],a=o[3]-o[1];for(let h=0;h=s[2])){let i=Pt(s),n=Math.floor((e[0]-s[0])/i)*i;o[0]-=n,o[2]-=n}return o}function Xh(o,t){if(t.canWrapX()){let s=t.getExtent();if(!isFinite(o[0])||!isFinite(o[2]))return[[s[0],o[1],s[2],o[3]]];co(o,t);let e=Pt(s);if(Pt(o)>e)return[[s[0],o[1],s[2],o[3]]];if(o[0]s[2])return[[o[0],o[1],s[2],o[3]],[s[0],o[1],o[2]-e,o[3]]]}return[o]}function Rt(o,t,s){return Math.min(Math.max(o,t),s)}function Wh(o,t,s,e,i,r){let n=i-s,l=r-e;if(n!==0||l!==0){let a=((o-s)*n+(t-e)*l)/(n*n+l*l);a>1?(s=i,e=r):a>0&&(s+=n*a,e+=l*a)}return Xe(o,t,s,e)}function Xe(o,t,s,e){let i=s-o,r=e-t;return i*i+r*r}function Yh(o){let t=o.length;for(let e=0;er&&(r=a,i=l)}if(r===0)return null;let n=o[i];o[i]=o[e],o[e]=n;for(let l=e+1;l=0;e--){s[e]=o[e][t]/o[e][e];for(let i=e-1;i>=0;i--)o[i][t]-=o[i][e]*s[e]}return s}function Ds(o){return o*Math.PI/180}function _i(o,t){let s=o%t;return s*t<0?s+t:s}function be(o,t,s){return o+s*(t-o)}function qr(o,t){let s=Math.pow(10,t);return Math.round(o*s)/s}function ir(o,t){return Math.floor(qr(o,t))}function sr(o,t){return Math.ceil(qr(o,t))}var dp=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,up=/^([a-z]*)$|^hsla?\(.*\)$/i;function $r(o){return typeof o=="string"?o:uo(o)}function pp(o){let t=document.createElement("div");if(t.style.color=o,t.style.color!==""){document.body.appendChild(t);let s=getComputedStyle(t).color;return document.body.removeChild(t),s}return""}var fp=function(){let t={},s=0;return function(e){let i;if(t.hasOwnProperty(e))i=t[e];else{if(s>=1024){let r=0;for(let n in t)r++&3||(delete t[n],--s)}i=gp(e),t[e]=i,++s}return i}}();function is(o){return Array.isArray(o)?o:fp(o)}function gp(o){let t,s,e,i,r;if(up.exec(o)&&(o=pp(o)),dp.exec(o)){let n=o.length-1,l;n<=4?l=1:l=2;let a=n===4||n===8;t=parseInt(o.substr(1+0*l,l),16),s=parseInt(o.substr(1+1*l,l),16),e=parseInt(o.substr(1+2*l,l),16),a?i=parseInt(o.substr(1+3*l,l),16):i=255,l==1&&(t=(t<<4)+t,s=(s<<4)+s,e=(e<<4)+e,a&&(i=(i<<4)+i)),r=[t,s,e,i/255]}else o.startsWith("rgba(")?(r=o.slice(5,-1).split(",").map(Number),Vh(r)):o.startsWith("rgb(")?(r=o.slice(4,-1).split(",").map(Number),r.push(1),Vh(r)):gt(!1,14);return r}function Vh(o){return o[0]=Rt(o[0]+.5|0,0,255),o[1]=Rt(o[1]+.5|0,0,255),o[2]=Rt(o[2]+.5|0,0,255),o[3]=Rt(o[3],0,1),o}function uo(o){let t=o[0];t!=(t|0)&&(t=t+.5|0);let s=o[1];s!=(s|0)&&(s=s+.5|0);let e=o[2];e!=(e|0)&&(e=e+.5|0);let i=o[3]===void 0?1:Math.round(o[3]*100)/100;return"rgba("+t+","+s+","+e+","+i+")"}var po=class{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(let s in this.cache_){let e=this.cache_[s];!(t++&3)&&!e.hasListener()&&(delete this.cache_[s],--this.cacheSize_)}}}get(t,s,e){let i=Uh(t,s,e);return i in this.cache_?this.cache_[i]:null}set(t,s,e,i){let r=Uh(t,s,e);this.cache_[r]=i,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function Uh(o,t,s){let e=s?$r(s):"null";return t+":"+o+":"+e}var Ls=new po;var It={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var fo=class extends Ut{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;let s=Object.assign({},t);typeof t.properties=="object"&&(delete s.properties,Object.assign(s,t.properties)),s[It.OPACITY]=t.opacity!==void 0?t.opacity:1,gt(typeof s[It.OPACITY]=="number",64),s[It.VISIBLE]=t.visible!==void 0?t.visible:!0,s[It.Z_INDEX]=t.zIndex,s[It.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,s[It.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,s[It.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,s[It.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=s.className!==void 0?s.className:"ol-layer",delete s.className,this.setProperties(s),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let s=this.state_||{layer:this,managed:t===void 0?!0:t},e=this.getZIndex();return s.opacity=Rt(Math.round(this.getOpacity()*100)/100,0,1),s.visible=this.getVisible(),s.extent=this.getExtent(),s.zIndex=e===void 0&&!s.managed?1/0:e,s.maxResolution=this.getMaxResolution(),s.minResolution=Math.max(this.getMinResolution(),0),s.minZoom=this.getMinZoom(),s.maxZoom=this.getMaxZoom(),this.state_=s,s}getLayersArray(t){return Et()}getLayerStatesArray(t){return Et()}getExtent(){return this.get(It.EXTENT)}getMaxResolution(){return this.get(It.MAX_RESOLUTION)}getMinResolution(){return this.get(It.MIN_RESOLUTION)}getMinZoom(){return this.get(It.MIN_ZOOM)}getMaxZoom(){return this.get(It.MAX_ZOOM)}getOpacity(){return this.get(It.OPACITY)}getSourceState(){return Et()}getVisible(){return this.get(It.VISIBLE)}getZIndex(){return this.get(It.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(It.EXTENT,t)}setMaxResolution(t){this.set(It.MAX_RESOLUTION,t)}setMinResolution(t){this.set(It.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(It.MAX_ZOOM,t)}setMinZoom(t){this.set(It.MIN_ZOOM,t)}setOpacity(t){gt(typeof t=="number",64),this.set(It.OPACITY,t)}setVisible(t){this.set(It.VISIBLE,t)}setZIndex(t){this.set(It.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},Jr=fo;var ge={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var Zt={ANIMATING:0,INTERACTING:1};var Oe={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var We={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var go=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||We[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Qr=go;var rr=6378137,Is=Math.PI*rr,mp=[-Is,-Is,Is,Is],xp=[-180,-85,180,85],tn=rr*Math.log(Math.tan(Math.PI/2)),zi=class extends Qr{constructor(t){super({code:t,units:"m",extent:mp,global:!0,worldExtent:xp,getPointResolution:function(s,e){return s/Math.cosh(e[1]/rr)}})}},mo=[new zi("EPSG:3857"),new zi("EPSG:102100"),new zi("EPSG:102113"),new zi("EPSG:900913"),new zi("http://www.opengis.net/def/crs/EPSG/0/3857"),new zi("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Hh(o,t,s){let e=o.length;s=s>1?s:2,t===void 0&&(s>2?t=o.slice():t=new Array(e));for(let i=0;itn?r=tn:r<-tn&&(r=-tn),t[i+1]=r}return t}function Zh(o,t,s){let e=o.length;s=s>1?s:2,t===void 0&&(s>2?t=o.slice():t=new Array(e));for(let i=0;i=0;--e)if(o[e]!=t[e]){s=!1;break}return s}function ks(o,t){let s=Math.cos(t),e=Math.sin(t),i=o[0]*s-o[1]*e,r=o[1]*s+o[0]*e;return o[0]=i,o[1]=r,o}function tc(o,t){return o[0]*=t,o[1]*=t,o}function en(o,t){if(t.canWrapX()){let s=Pt(t.getExtent()),e=ec(o,t,s);e&&(o[0]-=e*s)}return o}function ec(o,t,s){let e=t.getExtent(),i=0;return t.canWrapX()&&(o[0]e[2])&&(s=s||Pt(e),i=Math.floor((o[0]-e[0])/s)),i}var vp=63710088e-1;function bo(o,t,s){s=s||vp;let e=Ds(o[1]),i=Ds(t[1]),r=(i-e)/2,n=Ds(t[0]-o[0])/2,l=Math.sin(r)*Math.sin(r)+Math.sin(n)*Math.sin(n)*Math.cos(e)*Math.cos(i);return 2*s*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var ic={info:1,warn:2,error:3,none:4},Cp=ic.info;function sn(...o){Cp>ic.warn||console.warn(...o)}var vo=!0;function rc(o){vo=!(o===void 0?!0:o)}function Co(o,t){if(t!==void 0){for(let s=0,e=o.length;s=-180&&o[0]<=180&&o[1]>=-90&&o[1]<=90&&(vo=!1,sn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),o)}function Os(o,t){return Ye?oc(o,t,Ye):o}function Ue(o,t){return Ye?oc(o,Ye,t):o}function ac(o,t){if(!Ye)return o;let s=ue(t).getUnits(),e=Ye.getUnits();return s&&e?o*We[s]/We[e]:o}function Mp(){sc(mo),sc(xo),Sp(xo,mo,Hh,Zh)}Mp();function wo(o,t,s){return function(e,i,r,n,l){if(!e)return;if(!i&&!t)return e;let a=t?0:r[0]*i,h=t?0:r[1]*i,c=l?l[0]:0,g=l?l[1]:0,u=o[0]+a/2+c,p=o[2]-a/2+c,b=o[1]+h/2+g,v=o[3]-h/2+g;u>p&&(u=(p+u)/2,p=u),b>v&&(b=(v+b)/2,v=b);let x=Rt(e[0],u,p),m=Rt(e[1],b,v);if(n&&s&&i){let E=30*i;x+=-E*Math.log(1+Math.max(0,u-e[0])/E)+E*Math.log(1+Math.max(0,e[0]-p)/E),m+=-E*Math.log(1+Math.max(0,b-e[1])/E)+E*Math.log(1+Math.max(0,e[1]-v)/E)}return[x,m]}}function lc(o){return o}function So(o,t,s,e){let i=Pt(t)/s[0],r=de(t)/s[1];return e?Math.min(o,Math.max(i,r)):Math.min(o,Math.min(i,r))}function Mo(o,t,s){let e=Math.min(o,t),i=50;return e*=Math.log(1+i*Math.max(0,o/t-1))/i+1,s&&(e=Math.max(e,s),e/=Math.log(1+i*Math.max(0,s/o-1))/i+1),Rt(e,s/2,t*2)}function hc(o,t,s,e){return t=t!==void 0?t:!0,function(i,r,n,l){if(i!==void 0){let a=o[0],h=o[o.length-1],c=s?So(a,s,n,e):a;if(l)return t?Mo(i,c,h):Rt(i,h,c);let g=Math.min(c,i),u=Math.floor(vs(o,g,r));return o[u]>c&&u1)g=s;else if(u>0){for(let p=0;pi&&(i=h),r=l,n=a}return i}function Io(o,t,s,e,i){for(let r=0,n=s.length;r0;){let g=h.pop(),u=h.pop(),p=0,b=o[u],v=o[u+1],x=o[g],m=o[g+1];for(let E=u+e;Ep&&(c=E,p=w)}p>i&&(a[(c-t)/e]=1,u+e0&&v>p)&&(b<0&&x0&&x>b)){h=g,c=u;continue}r[n++]=h,r[n++]=c,l=h,a=c,h=g,c=u}return r[n++]=h,r[n++]=c,n}function Fo(o,t,s,e,i,r,n,l){for(let a=0,h=s.length;ar&&(h-l)*(r-a)-(i-l)*(c-a)>0&&n++:c<=r&&(h-l)*(r-a)-(i-l)*(c-a)<0&&n--,l=h,a=c}return n!==0}function cr(o,t,s,e,i,r){if(s.length===0||!Gi(o,t,s[0],e,i,r))return!1;for(let n=1,l=s.length;nm&&(h=(c+g)/2,cr(o,t,s,e,h,b)&&(x=h,m=E)),c=g}return isNaN(x)&&(x=i[r]),n?(n.push(x,b,m),n):[x,b,m]}function Lc(o,t,s,e,i){let r=[];for(let n=0,l=s.length;n=i[0]&&r[2]<=i[2]||r[1]>=i[1]&&r[3]<=i[3]?!0:Ic(o,t,s,e,function(n,l){return Bh(i,n,l)}):!1}function Wo(o,t,s,e,i){return!!(Rc(o,t,s,e,i)||Gi(o,t,s,e,i[0],i[1])||Gi(o,t,s,e,i[0],i[3])||Gi(o,t,s,e,i[2],i[1])||Gi(o,t,s,e,i[2],i[3]))}function Yo(o,t,s,e,i){if(!Wo(o,t,s[0],e,i))return!1;if(s.length===1)return!0;for(let r=1,n=s.length;r0}function Vo(o,t,s,e,i){i=i!==void 0?i:!1;for(let r=0,n=s.length;r1&&typeof arguments[s-1]=="function"&&(e=arguments[s-1],--s);let i=0;for(;i0}getInteracting(){return this.hints_[Zt.INTERACTING]>0}cancelAnimations(){this.setHint(Zt.ANIMATING,-this.hints_[Zt.ANIMATING]);let t;for(let s=0,e=this.animations_.length;s=0;--e){let i=this.animations_[e],r=!0;for(let n=0,l=i.length;n0?h/a.duration:1;c>=1?(a.complete=!0,c=1):r=!1;let g=a.easing(c);if(a.sourceCenter){let u=a.sourceCenter[0],p=a.sourceCenter[1],b=a.targetCenter[0],v=a.targetCenter[1];this.nextCenter_=a.targetCenter;let x=u+g*(b-u),m=p+g*(v-p);this.targetCenter_=[x,m]}if(a.sourceResolution&&a.targetResolution){let u=g===1?a.targetResolution:a.sourceResolution+g*(a.targetResolution-a.sourceResolution);if(a.anchor){let p=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(u,0,p,!0);this.targetCenter_=this.calculateCenterZoom(b,a.anchor)}this.nextResolution_=a.targetResolution,this.targetResolution_=u,this.applyTargetState_(!0)}if(a.sourceRotation!==void 0&&a.targetRotation!==void 0){let u=g===1?_i(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+g*(a.targetRotation-a.sourceRotation);if(a.anchor){let p=this.constraints_.rotation(u,!0);this.targetCenter_=this.calculateCenterRotate(p,a.anchor)}this.nextRotation_=a.targetRotation,this.targetRotation_=u}if(this.applyTargetState_(!0),s=!0,!a.complete)break}if(r){this.animations_[e]=null,this.setHint(Zt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let n=i[0].callback;n&&hn(n,!0)}}this.animations_=this.animations_.filter(Boolean),s&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,s){let e,i=this.getCenterInternal();return i!==void 0&&(e=[i[0]-s[0],i[1]-s[1]],ks(e,t-this.getRotation()),Qh(e,s)),e}calculateCenterZoom(t,s){let e,i=this.getCenterInternal(),r=this.getResolution();if(i!==void 0&&r!==void 0){let n=s[0]-t*(s[0]-i[0])/r,l=s[1]-t*(s[1]-i[1])/r;e=[n,l]}return e}getViewportSize_(t){let s=this.viewportSize_;if(t){let e=s[0],i=s[1];return[Math.abs(e*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(e*Math.sin(t))+Math.abs(i*Math.cos(t))]}return s}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t&&ar(t,this.getProjection())}getCenterInternal(){return this.get(Oe.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){let s=this.calculateExtentInternal(t);return Os(s,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let s=this.getCenterInternal();gt(s,1);let e=this.getResolution();gt(e!==void 0,2);let i=this.getRotation();return gt(i!==void 0,3),er(s,e,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Oe.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,s){return this.getResolutionForExtentInternal(Ue(t,this.getProjection()),s)}getResolutionForExtentInternal(t,s){s=s||this.getViewportSizeMinusPadding_();let e=Pt(t)/s[0],i=de(t)/s[1];return Math.max(e,i)}getResolutionForValueFunction(t){t=t||2;let s=this.getConstrainedResolution(this.maxResolution_),e=this.minResolution_,i=Math.log(s/e)/Math.log(t);return function(r){return s/Math.pow(t,r*i)}}getRotation(){return this.get(Oe.ROTATION)}getValueForResolutionFunction(t){let s=Math.log(t||2),e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(e/i)/s;return function(n){return Math.log(e/n)/s/r}}getViewportSizeMinusPadding_(t){let s=this.getViewportSize_(t),e=this.padding_;return e&&(s=[s[0]-e[1]-e[3],s[1]-e[0]-e[2]]),s}getState(){let t=this.getProjection(),s=this.getResolution(),e=this.getRotation(),i=this.getCenterInternal(),r=this.padding_;if(r){let n=this.getViewportSizeMinusPadding_();i=Ko(i,this.getViewportSize_(),[n[0]/2+r[3],n[1]/2+r[0]],s,e)}return{center:i.slice(0),projection:t!==void 0?t:null,resolution:s,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:e,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,s=this.getResolution();return s!==void 0&&(t=this.getZoomForResolution(s)),t}getZoomForResolution(t){let s=this.minZoom_||0,e,i;if(this.resolutions_){let r=vs(this.resolutions_,t,1);s=r,e=this.resolutions_[r],r==this.resolutions_.length-1?i=2:i=e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return s+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let s=Rt(Math.floor(t),0,this.resolutions_.length-2),e=this.resolutions_[s]/this.resolutions_[s+1];return this.resolutions_[s]/Math.pow(e,Rt(t-s,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,s){let e;if(gt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){gt(!Fi(t),25);let i=Ue(t,this.getProjection());e=Ho(i)}else if(t.getType()==="Circle"){let i=Ue(t.getExtent(),this.getProjection());e=Ho(i),e.rotate(this.getRotation(),Qe(i))}else{let i=nn();i?e=t.clone().transform(i,this.getProjection()):e=t}this.fitInternal(e,s)}rotatedExtentForGeometry(t){let s=this.getRotation(),e=Math.cos(s),i=Math.sin(-s),r=t.getFlatCoordinates(),n=t.getStride(),l=1/0,a=1/0,h=-1/0,c=-1/0;for(let g=0,u=r.length;g{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let s,e=this.getMapInternal();!t&&e&&(t=e.getView()),t instanceof De?s={viewState:t.getState(),extent:t.calculateExtent()}:s=t,!s.layerStatesArray&&e&&(s.layerStatesArray=e.getLayerGroup().getLayerStatesArray());let i;s.layerStatesArray?i=s.layerStatesArray.find(n=>n.layer===this):i=this.getLayerState();let r=this.getExtent();return dr(i,s.viewState)&&(!r||Wt(r,s.extent))}getAttributions(t){if(!this.isVisible(t))return[];let s,e=this.getSource();if(e&&(s=e.getAttributions()),!s)return[];let i=t instanceof De?t.getViewStateAndExtent():t,r=s(i);return Array.isArray(r)||(r=[r]),r}render(t,s){let e=this.getRenderer();return e.prepareFrame(t)?(this.rendered=!0,e.renderFrame(t,s)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(It.MAP,t)}getMapInternal(){return this.get(It.MAP)}setMap(t){this.mapPrecomposeKey_&&(At(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(At(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Mt(t,ge.PRECOMPOSE,function(s){let i=s.frameState.layerStatesArray,r=this.getLayerState(!1);gt(!i.some(function(n){return n.layer===r.layer}),67),i.push(r)},this),this.mapRenderKey_=Mt(this,ut.CHANGE,t.render,t),this.changed())}setSource(t){this.set(It.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};function dr(o,t){if(!o.visible)return!1;let s=t.resolution;if(s=o.maxResolution)return!1;let e=t.zoom;return e>o.minZoom&&e<=o.maxZoom}var ns=$o;var Jo=class extends bs{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,s){Et()}calculateMatrices2D(t){let s=t.viewState,e=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;fe(e,t.size[0]/2,t.size[1]/2,1/s.resolution,-1/s.resolution,-s.rotation,-s.center[0],-s.center[1]),Ms(i,e)}forEachFeatureAtCoordinate(t,s,e,i,r,n,l,a){let h,c=s.viewState;function g(S,w,R,O){return r.call(n,w,S?R:null,O)}let u=c.projection,p=en(t.slice(),u),b=[[0,0]];if(u.canWrapX()&&i){let S=u.getExtent(),w=Pt(S);b.push([-w,0],[w,0])}let v=s.layerStatesArray,x=v.length,m=[],E=[];for(let S=0;S=0;--w){let R=v[w],O=R.layer;if(O.hasRenderer()&&dr(R,c)&&l.call(a,O)){let I=O.getRenderer(),_=O.getSource();if(I&&_){let P=_.getWrapX()?p:t,F=g.bind(null,R.managed);E[0]=P[0]+b[S][0],E[1]=P[1]+b[S][1],h=I.forEachFeatureAtCoordinate(E,s,e,F,m)}if(h)return h}}if(m.length===0)return;let L=1/m.length;return m.forEach((S,w)=>S.distanceSq+=w*L),m.sort((S,w)=>S.distanceSq-w.distanceSq),m.some(S=>h=S.callback(S.feature,S.layer,S.geometry)),h}hasFeatureAtCoordinate(t,s,e,i,r,n){return this.forEachFeatureAtCoordinate(t,s,e,i,xi,this,r,n)!==void 0}getMap(){return this.map_}renderFrame(t){Et()}flushDeclutterItems(t){}scheduleExpireIconCache(t){Ls.canExpireCache()&&t.postRenderFunctions.push(Ip)}};function Ip(o,t){Ls.expire()}var jc=Jo;var Qo=class extends Jt{constructor(t,s,e,i){super(t),this.inversePixelTransform=s,this.frameState=e,this.context=i}},cn=Qo;var ur="ol-hidden";var Wi="ol-unselectable";var Ns="ol-control",ta="ol-collapsed",Rp=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),Bc=["style","variant","weight","size","lineHeight","family"],ea=function(o){let t=o.match(Rp);if(!t)return null;let s={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,i=Bc.length;e{"use strict";(function(o,t){typeof define=="function"&&define.amd?define(t):typeof Nr=="object"&&Nr.exports?Nr.exports=t():o.numeral=t()})(Ch,function(){var o,t,s="2.0.6",e={},i={},r={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},n={currentLocale:r.currentLocale,zeroFormat:r.zeroFormat,nullFormat:r.nullFormat,defaultFormat:r.defaultFormat,scalePercentBy100:r.scalePercentBy100};function l(a,h){this._input=a,this._value=h}return o=function(a){var h,c,m,p;if(o.isNumeral(a))h=a.value();else if(a===0||typeof a>"u")h=0;else if(a===null||t.isNaN(a))h=null;else if(typeof a=="string")if(n.zeroFormat&&a===n.zeroFormat)h=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)h=null;else{for(c in e)if(p=typeof e[c].regexps.unformat=="function"?e[c].regexps.unformat():e[c].regexps.unformat,p&&a.match(p)){m=e[c].unformat;break}m=m||o._.stringToNumber,h=m(a)}else h=Number(a)||null;return new l(a,h)},o.version=s,o.isNumeral=function(a){return a instanceof l},o._=t={numberToFormat:function(a,h,c){var m=i[o.options.currentLocale],p=!1,u=!1,b=0,v="",x=1e12,f=1e9,A=1e6,L=1e3,S="",w=!1,R,O,I,_,P,F,T,D,C,d;if(a=a||0,O=Math.abs(a),o._.includes(h,"(")?(p=!0,h=h.replace(/[\(|\)]/g,"")):(o._.includes(h,"+")||o._.includes(h,"-"))&&(D=o._.includes(h,"+")?h.indexOf("+"):a<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),o._.includes(h,"a")&&(R=h.match(/a(k|m|b|t)?/),R=R?R[1]:!1,o._.includes(h," a")&&(v=" "),h=h.replace(new RegExp(v+"a[kmbt]?"),""),O>=x&&!R||R==="t"?(v+=m.abbreviations.trillion,a=a/x):O=f&&!R||R==="b"?(v+=m.abbreviations.billion,a=a/f):O=A&&!R||R==="m"?(v+=m.abbreviations.million,a=a/A):(O=L&&!R||R==="k")&&(v+=m.abbreviations.thousand,a=a/L)),o._.includes(h,"[.]")&&(u=!0,h=h.replace("[.]",".")),F=a.toString().split(".")[0],T=h.split(".")[1],C=h.indexOf(","),b=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,T?(o._.includes(T,"[")?(T=T.replace("]",""),T=T.split("["),S=o._.toFixed(a,T[0].length+T[1].length,c,T[1].length)):S=o._.toFixed(a,T.length,c),F=S.split(".")[0],o._.includes(S,".")?S=m.delimiters.decimal+S.split(".")[1]:S="",u&&Number(S.slice(1))===0&&(S="")):F=o._.toFixed(a,0,c),v&&!R&&Number(F)>=1e3&&v!==m.abbreviations.trillion)switch(F=String(Number(F)/1e3),v){case m.abbreviations.thousand:v=m.abbreviations.million;break;case m.abbreviations.million:v=m.abbreviations.billion;break;case m.abbreviations.billion:v=m.abbreviations.trillion;break}if(o._.includes(F,"-")&&(F=F.slice(1),w=!0),F.length0;g--)F="0"+F;return C>-1&&(F=F.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+m.delimiters.thousands)),h.indexOf(".")===0&&(F=""),d=F+S+(v||""),p?d=(p&&w?"(":"")+d+(p&&w?")":""):D>=0?d=D===0?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(a){var h=i[n.currentLocale],c=a,m={thousand:3,million:6,billion:9,trillion:12},p,u,b,v;if(n.zeroFormat&&a===n.zeroFormat)u=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)u=null;else{u=1,h.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(p in m)if(v=new RegExp("[^a-zA-Z]"+h.abbreviations[p]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(v)){u*=Math.pow(10,m[p]);break}u*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),u*=Number(a)}return u},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,h){return a.indexOf(h)!==-1},insert:function(a,h,c){return a.slice(0,c)+h+a.slice(c)},reduce:function(a,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var c=Object(a),m=c.length>>>0,p=0,u;if(arguments.length===3)u=arguments[2];else{for(;p=m)throw new TypeError("Reduce of empty array with no initial value");u=c[p++]}for(;pm?h:m},1)},toFixed:function(a,h,c,m){var p=a.toString().split("."),u=h-(m||0),b,v,x,f;return p.length===2?b=Math.min(Math.max(p[1].length,u),h):b=u,x=Math.pow(10,b),f=(c(a+"e+"+b)/x).toFixed(b),m>h-b&&(v=new RegExp("\\.?0{1,"+(m-(h-b))+"}$"),f=f.replace(v,"")),f}},o.options=n,o.formats=e,o.locales=i,o.locale=function(a){return a&&(n.currentLocale=a.toLowerCase()),n.currentLocale},o.localeData=function(a){if(!a)return i[n.currentLocale];if(a=a.toLowerCase(),!i[a])throw new Error("Unknown locale : "+a);return i[a]},o.reset=function(){for(var a in r)n[a]=r[a]},o.zeroFormat=function(a){n.zeroFormat=typeof a=="string"?a:null},o.nullFormat=function(a){n.nullFormat=typeof a=="string"?a:null},o.defaultFormat=function(a){n.defaultFormat=typeof a=="string"?a:"0.0"},o.register=function(a,h,c){if(h=h.toLowerCase(),this[a+"s"][h])throw new TypeError(h+" "+a+" already registered.");return this[a+"s"][h]=c,c},o.validate=function(a,h){var c,m,p,u,b,v,x,f;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{x=o.localeData(h)}catch{x=o.localeData(o.locale())}return p=x.currency.symbol,b=x.abbreviations,c=x.delimiters.decimal,x.delimiters.thousands==="."?m="\\.":m=x.delimiters.thousands,f=a.match(/^[^\d]+/),f!==null&&(a=a.substr(1),f[0]!==p)||(f=a.match(/[^\d]+$/),f!==null&&(a=a.slice(0,-1),f[0]!==b.thousand&&f[0]!==b.million&&f[0]!==b.billion&&f[0]!==b.trillion))?!1:(v=new RegExp(m+"{2}"),a.match(/[^\d.,]/g)?!1:(u=a.split(c),u.length>2?!1:u.length<2?!!u[0].match(/^\d+.*\d$/)&&!u[0].match(v):u[0].length===1?!!u[0].match(/^\d+$/)&&!u[0].match(v)&&!!u[1].match(/^\d+$/):!!u[0].match(/^\d+.*\d$/)&&!u[0].match(v)&&!!u[1].match(/^\d+$/)))},o.fn=l.prototype={clone:function(){return o(this)},format:function(a,h){var c=this._value,m=a||n.defaultFormat,p,u,b;if(h=h||Math.round,c===0&&n.zeroFormat!==null)u=n.zeroFormat;else if(c===null&&n.nullFormat!==null)u=n.nullFormat;else{for(p in e)if(m.match(e[p].regexps.format)){b=e[p].format;break}b=b||o._.numberToFormat,u=b(c,m,h)}return u},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(m,p,u,b){return m+Math.round(h*p)}return this._value=t.reduce([this._value,a],c,0)/h,this},subtract:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(m,p,u,b){return m-Math.round(h*p)}return this._value=t.reduce([a],c,Math.round(this._value*h))/h,this},multiply:function(a){function h(c,m,p,u){var b=t.correctionFactor(c,m);return Math.round(c*b)*Math.round(m*b)/Math.round(b*b)}return this._value=t.reduce([this._value,a],h,1),this},divide:function(a){function h(c,m,p,u){var b=t.correctionFactor(c,m);return Math.round(c*b)/Math.round(m*b)}return this._value=t.reduce([this._value,a],h),this},difference:function(a){return Math.abs(o(this._value).subtract(a).value())}},o.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var h=a%10;return~~(a%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){o.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,h,c){var m=o._.includes(h," BPS")?" ":"",p;return a=a*1e4,h=h.replace(/\s?BPS/,""),p=o._.numberToFormat(a,h,c),o._.includes(p,")")?(p=p.split(""),p.splice(-1,0,m+"BPS"),p=p.join("")):p=p+m+"BPS",p},unformat:function(a){return+(o._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},c=a.suffixes.concat(h.suffixes.filter(function(p){return a.suffixes.indexOf(p)<0})),m=c.join("|");m="("+m.replace("B","B(?!PS)")+")",o.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(m)},format:function(p,u,b){var v,x=o._.includes(u,"ib")?h:a,f=o._.includes(u," b")||o._.includes(u," ib")?" ":"",A,L,S;for(u=u.replace(/\s?i?b/,""),A=0;A<=x.suffixes.length;A++)if(L=Math.pow(x.base,A),S=Math.pow(x.base,A+1),p===null||p===0||p>=L&&p0&&(p=p/L);break}return v=o._.numberToFormat(p,u,b),v+f},unformat:function(p){var u=o._.stringToNumber(p),b,v;if(u){for(b=a.suffixes.length-1;b>=0;b--){if(o._.includes(p,a.suffixes[b])){v=Math.pow(a.base,b);break}if(o._.includes(p,h.suffixes[b])){v=Math.pow(h.base,b);break}}u*=v||1}return u}})}(),function(){o.register("format","currency",{regexps:{format:/(\$)/},format:function(a,h,c){var m=o.locales[o.options.currentLocale],p={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},u,b,v;for(h=h.replace(/\s?\$\s?/,""),u=o._.numberToFormat(a,h,c),a>=0?(p.before=p.before.replace(/[\-\(]/,""),p.after=p.after.replace(/[\-\)]/,"")):a<0&&!o._.includes(p.before,"-")&&!o._.includes(p.before,"(")&&(p.before="-"+p.before),v=0;v=0;v--)switch(b=p.after[v],b){case"$":u=v===p.after.length-1?u+m.currency.symbol:o._.insert(u,m.currency.symbol,-(p.after.length-(1+v)));break;case" ":u=v===p.after.length-1?u+" ":o._.insert(u," ",-(p.after.length-(1+v)+m.currency.symbol.length-1));break}return u}})}(),function(){o.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,h,c){var m,p=typeof a=="number"&&!o._.isNaN(a)?a.toExponential():"0e+0",u=p.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),m=o._.numberToFormat(Number(u[0]),h,c),m+"e"+u[1]},unformat:function(a){var h=o._.includes(a,"e+")?a.split("e+"):a.split("e-"),c=Number(h[0]),m=Number(h[1]);m=o._.includes(a,"e-")?m*=-1:m;function p(u,b,v,x){var f=o._.correctionFactor(u,b),A=u*f*(b*f)/(f*f);return A}return o._.reduce([c,Math.pow(10,m)],p,1)}})}(),function(){o.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,h,c){var m=o.locales[o.options.currentLocale],p,u=o._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),u+=m.ordinal(a),p=o._.numberToFormat(a,h,c),p+u}})}(),function(){o.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,h,c){var m=o._.includes(h," %")?" ":"",p;return o.options.scalePercentBy100&&(a=a*100),h=h.replace(/\s?\%/,""),p=o._.numberToFormat(a,h,c),o._.includes(p,")")?(p=p.split(""),p.splice(-1,0,m+"%"),p=p.join("")):p=p+m+"%",p},unformat:function(a){var h=o._.stringToNumber(a);return o.options.scalePercentBy100?h*.01:h}})}(),function(){o.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,h,c){var m=Math.floor(a/60/60),p=Math.floor((a-m*60*60)/60),u=Math.round(a-m*60*60-p*60);return m+":"+(p<10?"0"+p:p)+":"+(u<10?"0"+u:u)},unformat:function(a){var h=a.split(":"),c=0;return h.length===3?(c=c+Number(h[0])*60*60,c=c+Number(h[1])*60,c=c+Number(h[2])):h.length===2&&(c=c+Number(h[0])*60,c=c+Number(h[1])),Number(c)}})}(),o})});var Ua=qe((Ya,Va)=>{"use strict";(function(o,t){typeof Ya=="object"&&typeof Va<"u"?Va.exports=t():typeof define=="function"&&define.amd?define(t):(o=o||self).RBush=t()})(Ya,function(){"use strict";function o(x,f,A,L,S){(function w(R,O,I,_,P){for(;_>I;){if(_-I>600){var F=_-I+1,T=O-I+1,D=Math.log(F),C=.5*Math.exp(2*D/3),d=.5*Math.sqrt(D*C*(F-C)/F)*(T-F/2<0?-1:1),g=Math.max(I,Math.floor(O-T*C/F+d)),y=Math.min(_,Math.floor(O+(F-T)*C/F+d));w(R,O,g,y,P)}var M=R[O],k=I,E=_;for(t(R,I,O),P(R[_],M)>0&&t(R,I,_);k0;)E--}P(R[I],M)===0?t(R,I,E):t(R,++E,_),E<=O&&(I=E+1),O<=E&&(_=E-1)}})(x,f,A||0,L||x.length-1,S||s)}function t(x,f,A){var L=x[f];x[f]=x[A],x[A]=L}function s(x,f){return xf?1:0}var e=function(x){x===void 0&&(x=9),this._maxEntries=Math.max(4,x),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function i(x,f,A){if(!A)return f.indexOf(x);for(var L=0;L=x.minX&&f.maxY>=x.minY}function b(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(x,f,A,L,S){for(var w=[f,A];w.length;)if(!((A=w.pop())-(f=w.pop())<=L)){var R=f+Math.ceil((A-f)/L/2)*L;o(x,R,f,A,S),w.push(f,R,R,A)}}return e.prototype.all=function(){return this._all(this.data,[])},e.prototype.search=function(x){var f=this.data,A=[];if(!u(x,f))return A;for(var L=this.toBBox,S=[];f;){for(var w=0;w=0&&S[f].children.length>this._maxEntries;)this._split(S,f),f--;this._adjustParentBBoxes(L,S,f)},e.prototype._split=function(x,f){var A=x[f],L=A.children.length,S=this._minEntries;this._chooseSplitAxis(A,S,L);var w=this._chooseSplitIndex(A,S,L),R=b(A.children.splice(w,A.children.length-w));R.height=A.height,R.leaf=A.leaf,r(A,this.toBBox),r(R,this.toBBox),f?x[f-1].children.push(R):this._splitRoot(A,R)},e.prototype._splitRoot=function(x,f){this.data=b([x,f]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},e.prototype._chooseSplitIndex=function(x,f,A){for(var L,S,w,R,O,I,_,P=1/0,F=1/0,T=f;T<=A-f;T++){var D=n(x,0,T,this.toBBox),C=n(x,T,A,this.toBBox),d=(S=D,w=C,R=void 0,O=void 0,I=void 0,_=void 0,R=Math.max(S.minX,w.minX),O=Math.max(S.minY,w.minY),I=Math.min(S.maxX,w.maxX),_=Math.min(S.maxY,w.maxY),Math.max(0,I-R)*Math.max(0,_-O)),g=c(D)+c(C);d=f;P--){var F=x.children[P];l(R,x.leaf?S(F):F),O+=m(R)}return O},e.prototype._adjustParentBBoxes=function(x,f,A){for(var L=A;L>=0;L--)l(f[L],x)},e.prototype._condense=function(x){for(var f=x.length-1,A=void 0;f>=0;f--)x[f].children.length===0?f>0?(A=x[f-1].children).splice(A.indexOf(x[f]),1):this.clear():r(x[f],this.toBBox)},e})});var wu=qe((cT,jn)=>{"use strict";(function(o){typeof jn=="object"&&jn.exports?(o.default=o,jn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/map",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:m}=i;return function(p){let u;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=m(I.colorAxis),I.colorAxis.map(_=>new u(this,_)))}function v(I){let _=this.chart.colorAxis||[],P=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],T,D;for(_.forEach(function(C){(T=C.options)&&T.showInLegend&&(T.dataClasses&&T.visible?F=F.concat(C.getDataClassLegendSymbols()):T.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||T.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(g){P(g)}):P(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function f(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function A(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,P=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][P]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,P=this.options.nullColor,F=this.colorAxis,T=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(T),d=D.options.color||(D.isNull||D.value===null?P:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}p.compose=function(I,_,P,F,T){let D=_.prototype,C=P.prototype,d=T.prototype;D.collectionsWithUpdate.includes("colorAxis")||(u=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(g){let y=g.prototype.createAxis;g.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let E=new u(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),E}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",f),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(T,"afterTranslate",A,{order:1}),l(T,"bindAxes",L))},p.pointSetVisible=S}(r||(r={})),r}),s(t,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,m=this.legendItem=this.legendItem||{},p=this.options,u=h.dataClasses||[],b,v,x=c.options.chart.colorCount,f=0,A;this.dataClasses=v=[],m.labels=[];for(let L=0,S=u.length;L=p)&&(u===void 0||h<=u)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(m=this.normalizedValue(h),x=A.length;x--&&!(m>A[x][0]););p=A[x]||A[x+1],m=1-((u=A[x+1]||p)[0]-m)/(u[0]-p[0]||1),b=p.color.tweenTo(u.color,m)}return b},r}),s(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:m}=l,{series:p}=h,{defined:u,extend:b,fireEvent:v,isArray:x,isNumber:f,merge:A,pick:L,relativeLength:S}=c;m.colorAxis=A(m.xAxis,r);class w extends e{static compose(O,I,_,P){i.compose(w,O,I,_,P)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},P=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||P?2:1,this.reversed=I.reversed||!P,this.opposite=!P,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=P,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=A(m.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:P}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=P=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-P,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:P)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(P){P instanceof w&&P.drawLegendSymbol(_,P)}),_.render(),this.chart.getMargins(!0),this.chart.series.some(P=>P.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,P=I?0:1,F=O?[_,0,P,0]:[0,P,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},P=O.padding,F=O.options,T=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:g}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:g}),_.labelWidth=d+P+(C?D:L(T.x,T.distance)+(this.maxLabelLength||0)),_.labelHeight=g+P+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,P,F,T,D,C=O.length,d,g;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,T=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],P=F.indexOf(_),d=D.yData,P>=0&&d)for(g=0;gD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=T,this.cross&&!this.cross.addedToColorAxis&&P.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(P.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(O){let I=this.left,_=O.translatedValue,P=this.top;return f(_)?this.horiz?[["M",_-4,P-6],["L",_+4,P-6],["L",_,P],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(P=>{P.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,P=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,T=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((g,y)=>(g.push(...y.points.filter(M=>M.dataClass===d)),g),[]);return P.length||I.dataClasses.forEach((d,g)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,E=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,T)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,T)+D),P.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(g))N.setState(z)},setVisible:function(){this.visible=E=I.visible=!E;let z=[];for(let N of C(g))N.setVisible(E),N.hiddenInDataClass=!E,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,E),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),P}getSize(){let{chart:O,horiz:I}=this,{height:_,width:P}=this.options,{legend:F}=O.options;return{width:L(u(P)?S(P,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(u(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),s(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,i){return e.ColorAxis=e.ColorAxis||i,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),s(t,"Maps/MapNavigationDefaults.js",[],function(){return{lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}}}),s(t,"Maps/MapPointer.js",[t["Core/Utilities.js"]],function(e){var i;let{defined:r,extend:n,pick:l,wrap:a}=e;return function(h){let c,m=0;function p(x){let f=this.chart;x=this.normalize(x),f.options.mapNavigation.enableDoubleClickZoomTo?f.pointer.inClass(x.target,"highcharts-tracker")&&f.hoverPoint&&f.hoverPoint.zoomTo():f.isInsidePlot(x.chartX-f.plotLeft,x.chartY-f.plotTop)&&f.mapZoom(.5,void 0,void 0,x.chartX,x.chartY)}function u(x){let f=this.chart,A=r((x=this.normalize(x)).wheelDelta)&&-x.wheelDelta/120||x.deltaY||x.detail;Math.abs(A)>=1&&(m+=Math.abs(A),c&&clearTimeout(c),c=setTimeout(()=>{m=0},50)),m<10&&f.isInsidePlot(x.chartX-f.plotLeft,x.chartY-f.plotTop)&&f.mapView&&f.mapView.zoomBy(-((f.options.mapNavigation.mouseWheelSensitivity-1)*A),void 0,[x.chartX,x.chartY],!(1>Math.abs(A))&&void 0)}function b(x,f,A){let L=this.chart;if(f=x.call(this,f,A),L&&L.mapView){let S=L.mapView.pixelsToLonLat({x:f.chartX-L.plotLeft,y:f.chartY-L.plotTop});S&&n(f,S)}return f}function v(x){let f=this.chart.options.mapNavigation;f&&l(f.enableTouchZoom,f.enabled)&&(this.chart.zooming.pinchType="xy"),x.apply(this,[].slice.call(arguments,1))}h.compose=function(x){let f=x.prototype;f.onContainerDblClick||(n(f,{onContainerDblClick:p,onContainerMouseWheel:u}),a(f,"normalize",b),a(f,"zoomOption",v))}}(i||(i={})),i}),s(t,"Maps/MapSymbols.js",[],function(){let e;function i(n,l,a,h,c){if(c){let m=c?.r||0;c.brBoxY=l-m,c.brBoxHeight=h+m}return e.roundedRect(n,l,a,h,c)}function r(n,l,a,h,c){if(c){let m=c?.r||0;c.brBoxHeight=h+m}return e.roundedRect(n,l,a,h,c)}return{compose:function(n){(e=n.prototype.symbols).bottombutton=i,e.topbutton=r}}}),s(t,"Maps/MapNavigation.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Maps/MapNavigationDefaults.js"],t["Maps/MapPointer.js"],t["Maps/MapSymbols.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{setOptions:h}=e,{composed:c}=i,{addEvent:m,extend:p,merge:u,objectEach:b,pick:v,pushUnique:x}=a;function f(L){L&&(L.preventDefault&&L.preventDefault(),L.stopPropagation&&L.stopPropagation(),L.cancelBubble=!0)}class A{static compose(S,w,R){n.compose(w),l.compose(R),x(c,"Map.Navigation")&&(m(S,"beforeRender",function(){this.mapNavigation=new A(this),this.mapNavigation.update()}),h(r))}constructor(S){this.chart=S,this.navButtons=[]}update(S){let w=this,R=w.chart,O=w.navButtons,I=function(P){this.handler.call(R,P),f(P)},_=R.options.mapNavigation;for(S&&(_=R.options.mapNavigation=u(R.options.mapNavigation,S));O.length;)O.pop().destroy();if(!R.renderer.forExport&&v(_.enableButtons,_.enabled)){w.navButtonsGroup||(w.navButtonsGroup=R.renderer.g().attr({zIndex:7}).add()),b(_.buttons,(F,T)=>{let D={padding:(F=u(_.buttonOptions,F)).padding};!R.styledMode&&F.theme&&(p(D,F.theme),D.style=u(F.theme.style,F.style));let{text:C,width:d=0,height:g=0,padding:y=0}=F,M=R.renderer.button(C!=="+"&&C!=="-"&&C||"",0,0,I,D,void 0,void 0,void 0,T==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[T]).attr({width:d,height:g,title:R.options.lang[T],zIndex:5}).add(w.navButtonsGroup);if(C==="+"||C==="-"){let k=d+1,E=[["M",y+3,y+g/2],["L",y+k-3,y+g/2]];C==="+"&&E.push(["M",y+k/2,y+3],["L",y+k/2,y+g-3]),R.renderer.path(E).addClass("highcharts-button-symbol").attr(R.styledMode?{}:{stroke:F.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(M)}if(M.handler=F.onclick,m(M.element,"dblclick",f),O.push(M),p(F,{width:M.width,height:2*(M.height||0)}),R.hasLoaded)M.align(F,!1,F.alignTo);else{let k=m(R,"load",()=>{M.element&&M.align(F,!1,F.alignTo),k()})}});let P=(F,T)=>!(T.x>=F.x+F.width||T.x+T.width<=F.x||T.y>=F.y+F.height||T.y+T.height<=F.y);R.hasLoaded||m(R,"render",function(){let F=R.exportingGroup&&R.exportingGroup.getBBox();if(F){let T=w.navButtonsGroup.getBBox();if(P(F,T)){let D=-T.y-T.height+F.y-5,C=F.y+F.height-T.y+5,d=_.buttonOptions&&_.buttonOptions.verticalAlign;w.navButtonsGroup.attr({translateY:d==="bottom"?D:C})}}})}this.updateEvents(_)}updateEvents(S){let w=this.chart;v(S.enableDoubleClickZoom,S.enabled)||S.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||m(w.container,"dblclick",function(R){w.pointer.onContainerDblClick(R)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),v(S.enableMouseWheelZoom,S.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||m(w.container,"wheel",function(R){return w.pointer.inClass(R.target,"highcharts-no-mousewheel")||(w.pointer.onContainerMouseWheel(R),f(R)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return A}),s(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function m(p){let u=this.series,b=u.chart.renderer;this.moveToTopOnHover&&this.graphic&&(u.stateMarkerGraphic||(u.stateMarkerGraphic=new i(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),p?.state==="hover"?(this.graphic.attr({id:this.id}),u.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):u.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(p){let u={};return h(p.color)&&(!p.state||p.state==="normal")&&(u[this.colorProp||"fill"]=p.color),u},pointAttribs:l.pointAttribs},c.compose=function(p){return a(p.prototype.pointClass,"afterSetState",m),p}}(n||(n={})),n}),s(t,"Core/Chart/MapChart.js",[t["Core/Chart/Chart.js"],t["Core/Defaults.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{getOptions:a}=i,{isNumber:h,merge:c,pick:m}=n;class p extends e{init(b,v){let x=a().credits,f=c({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:m(x.mapText,' \xA9 {geojson.copyrightShort}'),mapTextFull:m(x.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},b);super.init(f,v)}mapZoom(b,v,x,f,A){this.mapView&&(h(b)&&(b=Math.log(b)/Math.log(.5)),this.mapView.zoomBy(b,h(v)&&h(x)?this.mapView.projection.inverse([v,x]):void 0,h(f)&&h(A)?[f,A]:void 0))}update(b){b.chart&&"map"in b.chart&&this.mapView?.recommendMapView(this,[b.chart.map,...(this.options.series||[]).map(v=>v.mapData)],!0),super.update.apply(this,arguments)}}return(l=p||(p={})).maps={},l.mapChart=function(u,b,v){return new l(u,b,v)},l.splitPath=function(u){let b;return b=typeof u=="string"?(u=u.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(v=>/[A-Za-z]/.test(v)?v:parseFloat(v)):u,r.prototype.pathToSegments(b)},p}),s(t,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(e){let i=-Number.MAX_VALUE,r=Number.MAX_VALUE,n=-Number.MAX_VALUE,l=Number.MAX_VALUE,a;if(e.forEach(h=>{let c=h[h.length-2],m=h[h.length-1];typeof c=="number"&&typeof m=="number"&&(r=Math.min(r,c),i=Math.max(i,c),l=Math.min(l,m),n=Math.max(n,m),a=!0)}),a)return{x1:r,y1:l,x2:i,y2:n}},pointInPolygon:function({x:e,y:i},r){let n,l,a=!1;for(n=0,l=r.length-1;ni!=r[l][1]>i&&e<(r[l][0]-r[n][0])*(i-r[n][1])/(r[l][1]-r[n][1])+r[n][0]&&(a=!a);return a}}}),s(t,"Series/Map/MapPoint.js",[t["Series/ColorMapComposition.js"],t["Maps/MapUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{boundsFromPath:l}=i,a=r.seriesTypes.scatter.prototype.pointClass,{extend:h,isNumber:c,pick:m}=n;class p extends a{static getProjectedPath(b,v){return b.projectedPath||(v&&b.geometry?(v.hasCoordinates=!0,b.projectedPath=v.path(b.geometry)):b.projectedPath=b.path),b.projectedPath||[]}applyOptions(b,v){let x=this.series,f=super.applyOptions(b,v),A=x.joinBy;if(x.mapData&&x.mapMap){let L=A[1],S=super.getNestedProperty(L),w=S!==void 0&&x.mapMap[S];w?h(f,qi(xe({},w),{name:f.name??w.name})):x.pointArrayMap.indexOf("value")!==-1&&(f.value=f.value||null)}return f}getProjectedBounds(b){let v=l(p.getProjectedPath(this,b)),x=this.properties,f=this.series.chart.mapView;if(v){let A=x&&x["hc-middle-lon"],L=x&&x["hc-middle-lat"];if(f&&c(A)&&c(L)){let S=b.forward([A,L]);v.midX=S[0],v.midY=S[1]}else{let S=x&&x["hc-middle-x"],w=x&&x["hc-middle-y"];v.midX=v.x1+(v.x2-v.x1)*m(this.middleX,c(S)?S:.5);let R=m(this.middleY,c(w)?w:.5);this.geometry||(R=1-R),v.midY=v.y2-(v.y2-v.y1)*R}return v}}onMouseOver(b){n.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,b):this.series.onMouseOut()}setVisible(b){this.visible=this.options.visible=!!b,this.dataLabel&&this.dataLabel[b?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(b){let v=this.series.chart,x=v.mapView,f=this.bounds;if(x&&f){let A=c(this.insetIndex)&&x.insets[this.insetIndex];if(A){let L=A.projectedUnitsToPixels({x:f.x1,y:f.y1}),S=A.projectedUnitsToPixels({x:f.x2,y:f.y2}),w=x.pixelsToProjectedUnits({x:L.x,y:L.y}),R=x.pixelsToProjectedUnits({x:S.x,y:S.y});f={x1:w.x,y1:w.y,x2:R.x,y2:R.y}}x.fitToBounds(f,void 0,!1),this.series.isDirty=!0,v.redraw(b)}}}return h(p.prototype,{dataLabelOnNull:e.pointMembers.dataLabelOnNull,moveToTopOnHover:e.pointMembers.moveToTopOnHover,isValid:e.pointMembers.isValid}),p}),s(t,"Series/Map/MapSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:i}=e;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return i(n)?r(n,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),s(t,"Maps/MapViewDefaults.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}}),s(t,"Maps/GeoJSONComposition.js",[t["Core/Globals.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{win:l}=e,{format:a}=i,{error:h,extend:c,merge:m,wrap:p}=r;return function(u){function b(S){return this.mapView&&this.mapView.lonLatToProjectedUnits(S)}function v(S){return this.mapView&&this.mapView.projectedUnitsToLonLat(S)}function x(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:P=1,xoffset:F=0,xpan:T=0,yoffset:D=0,ypan:C=0}=w,d=R(w.crs,[S.lon,S.lat]),g=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=w.rotation?[d[0]*g+d[1]*y,-d[0]*y+d[1]*g]:d;return{x:((M[0]-F)*P+T)*_+O,y:-(((D-M[1])*P+C)*_-I)}}function f(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}if(S.y===null)return;let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:P=1,xoffset:F=0,xpan:T=0,yoffset:D=0,ypan:C=0}=w,d={x:((S.x-O)/_-T)/P+F,y:((S.y-I)/_+C)/P+D},g=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=R(w.crs,"WGS84",w.rotation?{x:d.x*g+-(d.y*y),y:d.x*y+d.y*g}:d);return{lat:M.y,lon:M.x}}function A(S,w){w||(w=Object.keys(S.objects)[0]);let R=S.objects[w];if(R["hc-decoded-geojson"]&&R["hc-decoded-geojson"].title===S.title)return R["hc-decoded-geojson"];let O=S.arcs;if(S.transform){let T,D,C,d=S.arcs,{scale:g,translate:y}=S.transform;O=[];for(let M=0,k=d.length;Mtypeof T[0]=="number"?T.reduce((D,C,d)=>{let g=C<0?O[~C]:O[C];return C<0?(g=g.slice(0,d===0?g.length:g.length-1)).reverse():d&&(g=g.slice(1)),D.concat(g)},[]):T.map(I),_=R.geometries,P=[];for(let T=0,D=_.length;T(l[1]-n[1])*(a[0]-n[0])}function r(n,l,a,h){let c=[n[0]-l[0],n[1]-l[1]],m=[a[0]-h[0],a[1]-h[1]],p=n[0]*l[1]-n[1]*l[0],u=a[0]*h[1]-a[1]*h[0],b=1/(c[0]*m[1]-c[1]*m[0]),v=[(p*m[0]-u*c[0])*b,(p*m[1]-u*c[1])*b];return v.isIntersection=!0,v}return{clipLineString:function(n,l){let a=[],h=e(n,l,!1);for(let c=1;cl===0?0:l>0?1:-1),i=Math.PI/180,r=Math.PI/2,n=l=>Math.tan((r+l)/2);return class{constructor(l){let a=(l.parallels||[]).map(u=>u*i),h=a[0]||0,c=a[1]??h,m=Math.cos(h);typeof l.projectedBounds=="object"&&(this.projectedBounds=l.projectedBounds);let p=h===c?Math.sin(h):Math.log(m/Math.cos(c))/Math.log(n(c)/n(h));1e-10>Math.abs(p)&&(p=1e-10*(e(p)||1)),this.n=p,this.c=m*Math.pow(n(h),p)/p}forward(l){let{c:a,n:h,projectedBounds:c}=this,m=l[0]*i,p=l[1]*i;a>0?p<-r+1e-6&&(p=-r+1e-6):p>r-1e-6&&(p=r-1e-6);let u=a/Math.pow(n(p),h),b=u*Math.sin(h*m)*63.78137,v=(a-u*Math.cos(h*m))*63.78137,x=[b,v];return c&&(bc.x2||vc.y2)&&(x.outside=!0),x}inverse(l){let{c:a,n:h}=this,c=l[0]/63.78137,m=a-l[1]/63.78137,p=e(h)*Math.sqrt(c*c+m*m),u=Math.atan2(c,Math.abs(m))*e(m);return m*h<0&&(u-=Math.PI*e(c)*e(m)),[u/h/i,(2*Math.atan(Math.pow(a/p,1/h))-r)/i]}}}),s(t,"Maps/Projections/EqualEarth.js",[],function(){let e=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(i){let r=Math.PI/180,n=Math.asin(e*Math.sin(i[1]*r)),l=n*n,a=l*l*l;return[i[0]*r*Math.cos(n)*74.03120656864502/(e*(1.340264+-.24331799999999998*l+a*(.0062510000000000005+.034164*l))),74.03120656864502*n*(1.340264+-.081106*l+a*(893e-6+.003796*l))]}inverse(i){let r=i[0]/74.03120656864502,n=i[1]/74.03120656864502,l=180/Math.PI,a=n,h,c,m,p;for(let v=0;v<12&&(c=(h=a*a)*h*h,m=a*(1.340264+-.081106*h+c*(893e-6+.003796*h))-n,a-=p=m/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(p)));++v);c=(h=a*a)*h*h;let u=l*e*r*(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h))/Math.cos(a),b=l*Math.asin(Math.sin(a)/e);return Math.abs(u)>180?[NaN,NaN]:[u,b]}}}),s(t,"Maps/Projections/Miller.js",[],function(){let e=Math.PI/4,i=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}forward(r){return[r[0]*i*63.78137,79.7267125*Math.log(Math.tan(e+.4*r[1]*i))]}inverse(r){return[r[0]/63.78137/i,2.5*(Math.atan(Math.exp(r[1]/63.78137*.8))-e)/i]}}}),s(t,"Maps/Projections/Orthographic.js",[],function(){let e=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(i){let r=i[0],n=i[1]*e,l=[Math.cos(n)*Math.sin(r*e)*63.78460826781007,63.78460826781007*Math.sin(n)];return(r<-90||r>90)&&(l.outside=!0),l}inverse(i){let r=i[0]/63.78460826781007,n=i[1]/63.78460826781007,l=Math.sqrt(r*r+n*n),a=Math.asin(l),h=Math.sin(a);return[Math.atan2(r*h,l*Math.cos(a))/e,Math.asin(l&&n*h/l)/e]}}}),s(t,"Maps/Projections/WebMercator.js",[],function(){let e=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(i){let r=Math.sin(i[1]*e),n=[63.78137*i[0]*e,63.78137*Math.log((1+r)/(1-r))/2];return Math.abs(i[1])>this.maxLatitude&&(n.outside=!0),n}inverse(i){return[i[0]/(63.78137*e),(2*Math.atan(Math.exp(i[1]/63.78137))-Math.PI/2)/e]}}}),s(t,"Maps/Projections/ProjectionRegistry.js",[t["Maps/Projections/LambertConformalConic.js"],t["Maps/Projections/EqualEarth.js"],t["Maps/Projections/Miller.js"],t["Maps/Projections/Orthographic.js"],t["Maps/Projections/WebMercator.js"]],function(e,i,r,n,l){return{EqualEarth:i,LambertConformalConic:e,Miller:r,Orthographic:n,WebMercator:l}}),s(t,"Maps/Projection.js",[t["Core/Geometry/PolygonClip.js"],t["Maps/Projections/ProjectionRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{clipLineString:n,clipPolygon:l}=e,{clamp:a,erase:h}=r,c=2*Math.PI/360,m=v=>(v<-180&&(v+=360),v>180&&(v-=360),v),p=v=>(1-Math.cos(v))/2,u=(v,x)=>{let f=Math.cos,A=v[1]*c,L=v[0]*c,S=x[1]*c,w=x[0]*c;return p(S-A)+f(A)*f(S)*p(w-L)};class b{static add(x,f){b.registry[x]=f}static distance(x,f){let{atan2:A,sqrt:L}=Math,S=u(x,f);return 2*A(L(S),L(1-S))*6371e3}static geodesic(x,f,A,L=5e5){let{atan2:S,cos:w,sin:R,sqrt:O}=Math,I=b.distance,_=x[1]*c,P=x[0]*c,F=f[1]*c,T=f[0]*c,D=w(_)*w(P),C=w(F)*w(T),d=w(_)*R(P),g=w(F)*R(T),y=R(_),M=R(F),k=I(x,f),E=k/6371e3,z=R(E),N=Math.round(k/L),G=[];if(A&&G.push(x),N>1){let X=1/N;for(let j=X;j<.999;j+=X){let B=R((1-j)*E)/z,W=R(j*E)/z,Y=B*D+W*C,U=B*d+W*g,q=S(B*y+W*M,O(Y*Y+U*U)),H=S(U,Y);G.push([H/c,q/c])}}return A&&G.push(f),G}static insertGeodesics(x){let f=x.length-1;for(;f--;)if(Math.max(Math.abs(x[f][0]-x[f+1][0]),Math.abs(x[f][1]-x[f+1][1]))>10){let A=b.geodesic(x[f],x[f+1]);A.length&&x.splice(f+1,0,...A)}}static toString(x){let{name:f,rotation:A}=x||{};return[f,A&&A.join(",")].join(";")}constructor(x={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=x;let{name:f,projectedBounds:A,rotation:L}=x;this.rotator=L?this.getRotator(L):void 0;let S=f?b.registry[f]:void 0;S&&(this.def=new S(x));let{def:w,rotator:R}=this;w&&(this.maxLatitude=w.maxLatitude||90,this.hasGeoProjection=!0),R&&w?(this.forward=O=>w.forward(R.forward(O)),this.inverse=O=>R.inverse(w.inverse(O))):w?(this.forward=O=>w.forward(O),this.inverse=O=>w.inverse(O)):R&&(this.forward=R.forward,this.inverse=R.inverse),this.bounds=A==="world"?w&&w.bounds:A}lineIntersectsBounds(x){let{x1:f,x2:A,y1:L,y2:S}=this.bounds||{},w=(I,_,P)=>{let[F,T]=I,D=_?0:1;if(typeof P=="number"&&F[_]>=P!=T[_]>=P){let C=(P-F[_])/(T[_]-F[_]),d=F[D]+C*(T[D]-F[D]);return _?[d,P]:[P,d]}},R,O=x[0];return((R=w(x,0,f))||(R=w(x,0,A)))&&(O=R,x[1]=R),((R=w(x,1,L))||(R=w(x,1,S)))&&(O=R),O}getRotator(x){let f=x[0]*c,A=(x[1]||0)*c,L=(x[2]||0)*c,S=Math.cos(A),w=Math.sin(A),R=Math.cos(L),O=Math.sin(L);if(f!==0||A!==0||L!==0)return{forward:I=>{let _=I[0]*c+f,P=I[1]*c,F=Math.cos(P),T=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(P),d=C*S+T*w;return[Math.atan2(D*R-d*O,T*S-C*w)/c,Math.asin(d*R+D*O)/c]},inverse:I=>{let _=I[0]*c,P=I[1]*c,F=Math.cos(P),T=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(P),d=C*R-D*O;return[(Math.atan2(D*R+C*O,T*S+d*w)-f)/c,Math.asin(d*S-T*w)/c]}}}forward(x){return x}inverse(x){return x}cutOnAntimeridian(x,f){let A,L=[],S=[x];for(let w=0,R=x.length;w90)&&(P<-90||P>90)&&_>0!=P>0){let F=a((180-(_+360)%360)/((P+360)%360-(_+360)%360),0,1),T=I[1]+F*(O[1]-I[1]);L.push({i:w,lat:T,direction:_<0?1:-1,previousLonLat:I,lonLat:O})}}if(L.length)if(f){L.length%2==1&&(A=L.slice().sort((R,O)=>Math.abs(O.lat)-Math.abs(R.lat))[0],h(L,A));let w=L.length-2;for(;w>=0;){let R=L[w].i,O=m(180+1e-6*L[w].direction),I=m(180-1e-6*L[w].direction),_=x.splice(R,L[w+1].i-R,...b.geodesic([O,L[w].lat],[O,L[w+1].lat],!0));_.push(...b.geodesic([I,L[w+1].lat],[I,L[w].lat],!0)),S.push(_),w-=2}if(A)for(let R=0;R-1){let F=(I<0?-1:1)*this.maxLatitude,T=m(180+1e-6*O),D=m(180-1e-6*O),C=b.geodesic([T,I],[T,F],!0);for(let d=T+120*O;d>-180&&d<180;d+=120*O)C.push([d,F]);C.push(...b.geodesic([D,F],[D,A.lat],!0)),_.splice(P,0,...C);break}}}else{let w=L.length;for(;w--;){let R=L[w].i,O=x.splice(R,x.length,[m(180+1e-6*L[w].direction),L[w].lat]);O.unshift([m(180-1e-6*L[w].direction),L[w].lat]),S.push(O)}}return S}path(x){let f,{bounds:A,def:L,rotator:S}=this,w=[],R=x.type==="Polygon"||x.type==="MultiPolygon",O=this.hasGeoProjection,I=!L||L.antimeridianCutting!==!1,_=I?S:void 0,P=I&&L||this;A&&(f=[[A.x1,A.y1],[A.x2,A.y1],[A.x2,A.y2],[A.x1,A.y2]]);let F=T=>{let D=T.map(d=>{if(I){_&&(d=_.forward(d));let g=d[0];1e-6>Math.abs(g-180)&&(g=g<180?179.999999:180.000001),d=[g,d[1]]}return d}),C=[D];O&&(b.insertGeodesics(D),I&&(C=this.cutOnAntimeridian(D,R))),C.forEach(d=>{let g,y;if(d.length<2)return;let M=!1,k=!1,E=X=>{M?w.push(["L",X[0],X[1]]):(w.push(["M",X[0],X[1]]),M=!0)},z=!1,N=!1,G=d.map(X=>{let j=P.forward(X);return j.outside?z=!0:N=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(I){if(R&&G.push(G[0]),z){if(!N)return;if(f){if(R)G=l(G,f);else if(A){n(G,f).forEach(X=>{M=!1,X.forEach(E)});return}}}G.forEach(E)}else for(let X=0;XE(P.forward(W))):M=!1),E(B),y=j,k=!1)}})};return x.type==="LineString"?F(x.coordinates):x.type==="MultiLineString"?x.coordinates.forEach(T=>F(T)):x.type==="Polygon"?(x.coordinates.forEach(T=>F(T)),w.length&&w.push(["Z"])):x.type==="MultiPolygon"&&(x.coordinates.forEach(T=>{T.forEach(D=>F(D))}),w.length&&w.push(["Z"])),w}}return b.registry=i,b}),s(t,"Maps/MapView.js",[t["Core/Globals.js"],t["Maps/MapViewDefaults.js"],t["Maps/GeoJSONComposition.js"],t["Maps/MapUtilities.js"],t["Maps/Projection.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{composed:h}=e,{topo2geo:c}=r,{boundsFromPath:m,pointInPolygon:p}=n,{addEvent:u,clamp:b,crisp:v,fireEvent:x,isArray:f,isNumber:A,isObject:L,isString:S,merge:w,pick:R,pushUnique:O,relativeLength:I}=a,_={};function P(C,d){let{width:g,height:y}=d;return Math.log(400.979322/Math.max((C.x2-C.x1)/(g/256),(C.y2-C.y1)/(y/256)))/Math.log(2)}function F(C){C.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,C.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class T{static compose(d){O(h,"MapView")&&(_=d.maps,u(d,"afterInit",function(){this.mapView=new T(this,this.options.mapView)},{order:0}),u(d,"addSeriesAsDrilldown",F),u(d,"afterDrillUp",F))}static compositeBounds(d){if(d.length)return d.slice(1).reduce((g,y)=>(g.x1=Math.min(g.x1,y.x1),g.y1=Math.min(g.y1,y.y1),g.x2=Math.max(g.x2,y.x2),g.y2=Math.max(g.y2,y.y2),g),w(d[0]))}static mergeInsets(d,g){let y=k=>{let E={};return k.forEach((z,N)=>{E[z&&z.id||`i${N}`]=z}),E},M=w(y(d),y(g));return Object.keys(M).map(k=>M[k])}constructor(d,g){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof D||this.recommendMapView(d,[d.options.chart.map,...(d.options.series||[]).map(E=>E.mapData)]),this.userOptions=g||{};let y=w(i,this.recommendedMapView,g),M=this.recommendedMapView?.insets,k=g&&g.insets;M&&k&&(y.insets=T.mergeInsets(M,k)),this.chart=d,this.center=y.center,this.options=y,this.projection=new l(y.projection),this.playingField=d.plotBox,this.zoom=y.zoom||0,this.minZoom=y.minZoom,this.createInsets(),this.eventsToUnbind.push(u(d,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&A(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&w(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let d=this.options,g=d.insets;g&&g.forEach(y=>{let M=new D(this,w(d.insetOptions,y));this.insets.push(M)})}fitToBounds(d,g,y=!0,M){let k=d||this.getProjectedBounds();if(k){let E=R(g,d?0:this.options.padding),z=this.getField(!1),N=f(E)?E:[E,E,E,E];this.padding=[I(N[0],z.height),I(N[1],z.width),I(N[2],z.height),I(N[3],z.width)],this.playingField=this.getField();let G=P(k,this.playingField);d||(this.minZoom=G);let X=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(X,G,y,M)}}getField(d=!0){let g=d?this.padding:[0,0,0,0];return{x:g[3],y:g[0],width:this.chart.plotWidth-g[1]-g[3],height:this.chart.plotHeight-g[0]-g[2]}}getGeoMap(d){if(S(d))return _[d]&&_[d].type==="Topology"?c(_[d]):_[d];if(L(d,!0)){if(d.type==="FeatureCollection")return d;if(d.type==="Topology")return c(d)}}getMapBBox(){let d=this.getProjectedBounds(),g=this.getScale();if(d){let y=this.padding,M=this.projectedUnitsToPixels({x:d.x1,y:d.y2});return{width:(d.x2-d.x1)*g+y[1]+y[3],height:(d.y2-d.y1)*g+y[0]+y[2],x:M.x-y[3],y:M.y-y[0]}}}getProjectedBounds(){let d=this.projection,g=this.chart.series.reduce((M,k)=>{let E=k.getProjectedBounds&&k.getProjectedBounds();return E&&k.options.affectsMapView!==!1&&M.push(E),M},[]),y=this.options.fitToGeometry;if(y){if(!this.fitToGeometryCache)if(y.type==="MultiPoint"){let M=y.coordinates.map(z=>d.forward(z)),k=M.map(z=>z[0]),E=M.map(z=>z[1]);this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,E),y2:Math.max.apply(0,E)}}else this.fitToGeometryCache=m(d.path(y));return this.fitToGeometryCache}return this.projection.bounds||T.compositeBounds(g)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:d,y:g,width:y,height:M}=this.playingField,k=this.projection.forward(this.center),E=this.projection.hasCoordinates?-1:1,z=this.getScale(),N=z*E,G=d+y/2-k[0]*z,X=g+M/2-k[1]*N;return{scaleX:z,scaleY:N,translateX:G,translateY:X}}lonLatToPixels(d){let g=this.lonLatToProjectedUnits(d);if(g)return this.projectedUnitsToPixels(g)}lonLatToProjectedUnits(d){let g=this.chart,y=g.mapTransforms;if(y){for(let k in y)if(Object.hasOwnProperty.call(y,k)&&y[k].hitZone){let E=g.transformFromLatLon(d,y[k]);if(E&&p(E,y[k].hitZone.coordinates[0]))return E}return g.transformFromLatLon(d,y.default)}for(let k of this.insets)if(k.options.geoBounds&&p({x:d.lon,y:d.lat},k.options.geoBounds.coordinates[0])){let E=k.projection.forward([d.lon,d.lat]),z=k.projectedUnitsToPixels({x:E[0],y:E[1]});return this.pixelsToProjectedUnits(z)}let M=this.projection.forward([d.lon,d.lat]);if(!M.outside)return{x:M[0],y:M[1]}}projectedUnitsToLonLat(d){let g=this.chart,y=g.mapTransforms;if(y){for(let E in y)if(Object.hasOwnProperty.call(y,E)&&y[E].hitZone&&p(d,y[E].hitZone.coordinates[0]))return g.transformToLatLon(d,y[E]);return g.transformToLatLon(d,y.default)}let M=this.projectedUnitsToPixels(d);for(let E of this.insets)if(E.hitZone&&p(M,E.hitZone.coordinates[0])){let z=E.pixelsToProjectedUnits(M),N=E.projection.inverse([z.x,z.y]);return{lon:N[0],lat:N[1]}}let k=this.projection.inverse([d.x,d.y]);return{lon:k[0],lat:k[1]}}recommendMapView(d,g,y=!1){this.recommendedMapView={};let M=g.map(z=>this.getGeoMap(z)),k=[];M.forEach(z=>{if(z&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=z["hc-recommended-mapview"]||{}),z.bbox)){let[N,G,X,j]=z.bbox;k.push({x1:N,y1:G,x2:X,y2:j})}});let E=k.length&&T.compositeBounds(k);x(this,"onRecommendMapView",{geoBounds:E,chart:d},function(){if(E&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:z,y1:N,x2:G,y2:X}=E;this.recommendedMapView.projection=G-z>180&&X-N>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[N,X],rotation:[-(z+G)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=M[0],y&&d.hasRendered&&!d.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(d){this.chart.series.forEach(g=>{g.useMapGeometry&&(g.isDirty=!0)}),this.chart.redraw(d)}setView(d,g,y=!0,M){d&&(this.center=d),typeof g=="number"&&(typeof this.minZoom=="number"&&(g=Math.max(g,this.minZoom)),typeof this.options.maxZoom=="number"&&(g=Math.min(g,this.options.maxZoom)),A(g)&&(this.zoom=g));let k=this.getProjectedBounds();if(k){let E=this.projection.forward(this.center),{x:z,y:N,width:G,height:X}=this.playingField,j=this.getScale(),B=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),W=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),Y=[(k.x1+k.x2)/2,(k.y1+k.y2)/2];if(!this.chart.series.some(U=>U.isDrilling)){let U=B.x,q=W.y,H=W.x,V=B.y;H-Uz+G&&U>z&&(E[0]+=Math.min(H-G-z,U-z)/j),V-qN+X&&q>N&&(E[1]-=Math.min(V-X-N,q-N)/j),this.center=this.projection.inverse(E)}this.insets.forEach(U=>{U.options.field&&(U.hitZone=U.getHitZone(),U.playingField=U.getField())}),this.render()}x(this,"afterSetView"),y&&this.redraw(M)}projectedUnitsToPixels(d){let g=this.getScale(),y=this.projection.forward(this.center),M=this.playingField,k=M.x+M.width/2,E=M.y+M.height/2;return{x:k-g*(y[0]-d.x),y:E+g*(y[1]-d.y)}}pixelsToLonLat(d){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(d))}pixelsToProjectedUnits(d){let{x:g,y}=d,M=this.getScale(),k=this.projection.forward(this.center),E=this.playingField,z=E.x+E.width/2,N=E.y+E.height/2;return{x:k[0]+(g-z)/M,y:k[1]-(y-N)/M}}setUpEvents(){let d,g,y,{chart:M}=this,k=E=>{let{lastTouches:z,pinchDown:N}=M.pointer,G=this.projection,X=E.touches,{mouseDownX:j,mouseDownY:B}=M,W=0;if(N?.length===1?(j=N[0].chartX,B=N[0].chartY):N?.length===2&&(j=(N[0].chartX+N[1].chartX)/2,B=(N[0].chartY+N[1].chartY)/2),X?.length===2&&z&&(W=Math.log(Math.sqrt(Math.pow(z[0].chartX-z[1].chartX,2)+Math.pow(z[0].chartY-z[1].chartY,2))/Math.sqrt(Math.pow(X[0].chartX-X[1].chartX,2)+Math.pow(X[0].chartY-X[1].chartY,2)))/Math.log(.5)),A(j)&&A(B)){let Y=`${j},${B}`,{chartX:U,chartY:q}=E.originalEvent;X?.length===2&&(U=(X[0].chartX+X[1].chartX)/2,q=(X[0].chartY+X[1].chartY)/2),Y!==g&&(g=Y,d=this.projection.forward(this.center),y=(this.projection.options.rotation||[0,0]).slice());let H=G.def&&G.def.bounds,V=H&&P(H,this.playingField)||-1/0;if(G.options.name==="Orthographic"&&2>(X?.length||0)&&(this.minZoom||1/0)<1.3*V){let Z=440/(this.getScale()*Math.min(M.plotWidth,M.plotHeight));if(y){let K=(j-U)*Z-y[0],J=b(-y[1]-(B-q)*Z,-80,80),tt=this.zoom;this.update({projection:{rotation:[-K,-J]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=tt,M.redraw(!1)}}else if(A(U)&&A(q)){let Z=this.getScale(),K=this.projection.hasCoordinates?1:-1,J=this.projection.inverse([d[0]+(j-U)/Z,d[1]-(B-q)/Z*K]);isNaN(J[0]+J[1])||this.zoomBy(W,J,void 0,!1)}E.preventDefault()}};u(M,"pan",k),u(M,"touchpan",k),u(M,"selection",E=>{if(E.resetSelection)this.zoomBy();else{let z=E.x-M.plotLeft,N=E.y-M.plotTop,{y:G,x:X}=this.pixelsToProjectedUnits({x:z,y:N}),{y:j,x:B}=this.pixelsToProjectedUnits({x:z+E.width,y:N+E.height});this.fitToBounds({x1:X,y1:G,x2:B,y2:j},void 0,!0,!E.originalEvent.touches&&void 0),/^touch/.test(E.originalEvent.type)||M.showResetZoom(),E.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(d,g=!0,y){let M=d.projection,k=M&&l.toString(M)!==l.toString(this.options.projection),E=!1;w(!0,this.userOptions,d),w(!0,this.options,d),"insets"in d&&(this.insets.forEach(z=>z.destroy()),this.insets.length=0,E=!0),(k||"fitToGeometry"in d)&&delete this.fitToGeometryCache,(k||E)&&(this.chart.series.forEach(z=>{let N=z.transformGroups;if(z.clearBounds&&z.clearBounds(),z.isDirty=!0,z.isDirtyData=!0,E&&N)for(;N.length>1;){let G=N.pop();G&&G.destroy()}}),k&&(this.projection=new l(this.options.projection)),E&&this.createInsets(),!d.center&&Object.hasOwnProperty.call(d,"zoom")&&!A(d.zoom)&&this.fitToBounds(void 0,void 0,!1)),d.center||A(d.zoom)?this.setView(this.options.center,d.zoom,!1):"fitToGeometry"in d&&this.fitToBounds(void 0,void 0,!1),g&&this.chart.redraw(y)}zoomBy(d,g,y,M){let k=this.chart,E=this.projection.forward(this.center);if(typeof d=="number"){let z,N,G,X=this.zoom+d;if(y){let[j,B]=y,W=this.getScale(),Y=j-k.plotLeft-k.plotWidth/2,U=B-k.plotTop-k.plotHeight/2;N=E[0]+Y/W,G=E[1]+U/W}if(typeof N=="number"&&typeof G=="number"){let j=1-Math.pow(2,this.zoom)/Math.pow(2,X),B=E[0]-N,W=E[1]-G;E[0]-=B*j,E[1]+=W*j,z=this.projection.inverse(E)}this.setView(g||z,X,void 0,M)}else this.fitToBounds(void 0,void 0,void 0,M)}}class D extends T{constructor(d,g){if(super(d.chart,g),this.id=g.id,this.mapView=d,this.options=w({center:[0,0]},d.options.insetOptions,g),this.allBounds=[],this.options.geoBounds){let y=d.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=m(y),this.geoBoundsProjectedPolygon=y.map(M=>[M[1]||0,M[2]||0])}}getField(d=!0){let g=this.hitZone;if(g){let y=d?this.padding:[0,0,0,0],M=g.coordinates[0],k=M.map(j=>j[0]),E=M.map(j=>j[1]),z=Math.min.apply(0,k)+y[3],N=Math.max.apply(0,k)-y[1],G=Math.min.apply(0,E)+y[0],X=Math.max.apply(0,E)-y[2];if(A(z)&&A(G))return{x:z,y:G,width:N-z,height:X-G}}return super.getField.call(this,d)}getHitZone(){let{chart:d,mapView:g,options:y}=this,{coordinates:M}=y.field||{};if(M){let k=M[0];if(y.units==="percent"){let E=y.relativeTo==="mapBoundingBox"&&g.getMapBBox()||w(d.plotBox,{x:0,y:0});k=k.map(z=>[I(`${z[0]}%`,E.width,E.x),I(`${z[1]}%`,E.height,E.y)])}return{type:"Polygon",coordinates:[k]}}}getProjectedBounds(){return T.compositeBounds(this.allBounds)}isInside(d){let{geoBoundsProjectedBox:g,geoBoundsProjectedPolygon:y}=this;return!!(g&&d.x>=g.x1&&d.x<=g.x2&&d.y>=g.y1&&d.y<=g.y2&&y&&p(d,y))}render(){let{chart:d,mapView:g,options:y}=this,M=y.borderPath||y.field;if(M&&g.group){let k=!0;this.border||(this.border=d.renderer.path().addClass("highcharts-mapview-inset-border").add(g.group),k=!1),d.styledMode||this.border.attr({stroke:y.borderColor,"stroke-width":y.borderWidth});let E=this.border.strokeWidth(),z=y.relativeTo==="mapBoundingBox"&&g.getMapBBox()||g.playingField,N=(M.coordinates||[]).reduce((G,X)=>X.reduce((j,B,W)=>{let[Y,U]=B;return y.units==="percent"&&(Y=d.plotLeft+I(`${Y}%`,z.width,z.x),U=d.plotTop+I(`${U}%`,z.height,z.y)),Y=v(Y,E),U=v(U,E),j.push(W===0?["M",Y,U]:["L",Y,U]),j},G),[]);this.border[k?"animate":"attr"]({d:N})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(d=>d())}setUpEvents(){}}return T}),s(t,"Series/Map/MapSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Series/ColorMapComposition.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Chart/MapChart.js"],t["Series/Map/MapPoint.js"],t["Series/Map/MapSeriesDefaults.js"],t["Maps/MapView.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,m,p){let{animObject:u,stop:b}=e,{noop:v}=n,{splitPath:x}=l,{column:f,scatter:A}=m.seriesTypes,{extend:L,find:S,fireEvent:w,getNestedProperty:R,isArray:O,defined:I,isNumber:_,isObject:P,merge:F,objectEach:T,pick:D,splat:C}=p;class d extends A{constructor(){super(...arguments),this.processedData=[]}animate(y){let{chart:M,group:k}=this,E=u(this.options.animation);y?k.attr({translateX:M.plotLeft+M.plotWidth/2,translateY:M.plotTop+M.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:M.plotLeft,translateY:M.plotTop,scaleX:1,scaleY:1},E)}clearBounds(){this.points.forEach(y=>{delete y.bounds,delete y.insetIndex,delete y.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let y=this,{chart:M,group:k,transformGroups:E=[]}=this,{mapView:z,renderer:N}=M;if(z){this.transformGroups=E,E[0]||(E[0]=N.g().add(k));for(let G=0,X=z.insets.length;G{let{graphic:X}=G;G.group=E[typeof G.insetIndex=="number"?G.insetIndex+1:0],X&&X.parentGroup!==G.group&&X.add(G.group)}),f.prototype.drawPoints.apply(this),this.points.forEach(G=>{let X=G.graphic;if(X){let j=X.animate,B="";G.name&&(B+="highcharts-name-"+G.name.replace(/ /g,"-").toLowerCase()),G.properties&&G.properties["hc-key"]&&(B+=" highcharts-key-"+G.properties["hc-key"].toString().toLowerCase()),B&&X.addClass(B),M.styledMode&&X.css(this.pointAttribs(G,G.selected&&"select"||void 0)),X.attr({visibility:!G.visible&&(G.visible||G.isNull)?"hidden":"inherit"}),X.animate=function(W,Y,U){let q=_(W["stroke-width"])&&!_(X["stroke-width"]),H=_(X["stroke-width"])&&!_(W["stroke-width"]);if(q||H){let V=D(y.getStrokeWidth(y.options),1)/(M.mapView&&M.mapView.getScale()||1);q&&(X["stroke-width"]=V),H&&(W["stroke-width"]=V)}return j.call(X,W,Y,H?function(){X.element.removeAttribute("stroke-width"),delete X["stroke-width"],U&&U.apply(this,arguments)}:U)}}})),E.forEach((G,X)=>{let j=(X===0?z:z.insets[X-1]).getSVGTransform(),B=D(this.getStrokeWidth(this.options),1),W=j.scaleX,Y=j.scaleY>0?1:-1,U=q=>{(y.points||[]).forEach(H=>{let V,Z=H.graphic;Z&&Z["stroke-width"]&&(V=this.getStrokeWidth(H.options))&&Z.attr({"stroke-width":V/q})})};if(N.globalAnimation&&M.hasRendered&&z.allowTransformAnimation){let q=Number(G.attr("translateX")),H=Number(G.attr("translateY")),V=Number(G.attr("scaleX")),Z=(tt,$)=>{let Q=V+(W-V)*$.pos;G.attr({translateX:q+(j.translateX-q)*$.pos,translateY:H+(j.translateY-H)*$.pos,scaleX:Q,scaleY:Q*Y,"stroke-width":B/Q}),U(Q)},K=F(u(N.globalAnimation)),J=K.step;K.step=function(){J&&J.apply(this,arguments),Z.apply(this,arguments)},G.attr({animator:0}).animate({animator:1},K,(function(){typeof N.globalAnimation!="boolean"&&N.globalAnimation.complete&&N.globalAnimation.complete({applyDrilldown:!0}),w(this,"mapZoomComplete")}).bind(this))}else b(G),G.attr(F(j,{"stroke-width":B/W})),U(W)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:y,projection:M}=this.chart.mapView,k=[];(this.points||[]).forEach(E=>{if(E.path||E.geometry){if(typeof E.path=="string"?E.path=x(E.path):O(E.path)&&E.path[0]==="M"&&(E.path=this.chart.renderer.pathToSegments(E.path)),!E.bounds){let z=E.getProjectedBounds(M);if(z){E.labelrank=D(E.labelrank,(z.x2-z.x1)*(z.y2-z.y1));let{midX:N,midY:G}=z;if(y&&_(N)&&_(G)){let X=S(y,j=>j.isInside({x:N,y:G}));X&&(delete E.projectedPath,(z=E.getProjectedBounds(X.projection))&&X.allBounds.push(z),E.insetIndex=y.indexOf(X))}E.bounds=z}}E.bounds&&E.insetIndex===void 0&&k.push(E.bounds)}}),this.bounds=c.compositeBounds(k)}return this.bounds}getStrokeWidth(y){let M=this.pointAttrToOptions;return y[M&&M["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(y,M){let{mapView:k,styledMode:E}=y.series.chart,z=E?this.colorAttribs(y):f.prototype.pointAttribs.call(this,y,M),N=this.getStrokeWidth(y.options);if(M){let X=F(this.options.states&&this.options.states[M],y.options.states&&y.options.states[M]||{}),j=this.getStrokeWidth(X);I(j)&&(N=j),z.stroke=X.borderColor??y.color}N&&k&&(N/=k.getScale());let G=this.getStrokeWidth(this.options);return z.dashstyle&&k&&_(G)&&(N=G/k.getScale()),y.visible||(z.fill=this.options.nullColor),I(N)?z["stroke-width"]=N:delete z["stroke-width"],z["stroke-linecap"]=z["stroke-linejoin"]=this.options.linecap,z}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(y,M=!0,k,E){delete this.bounds,super.setData(y,!1,void 0,E),this.processData(),this.generatePoints(),M&&this.chart.redraw(k)}processData(){let y,M,k,E=this.options,z=E.data,N=this.chart,G=N.options.chart,X=this.joinBy,j=E.keys||this.pointArrayMap,B=[],W={},Y=this.chart.mapView,U=Y&&(P(E.mapData,!0)?Y.getGeoMap(E.mapData):Y.geoMap),q=N.mapTransforms=G.mapTransforms||U&&U["hc-transform"]||N.mapTransforms;q&&T(q,V=>{V.rotation&&(V.cosAngle=Math.cos(V.rotation),V.sinAngle=Math.sin(V.rotation))}),O(E.mapData)?k=E.mapData:U&&U.type==="FeatureCollection"&&(this.mapTitle=U.title,k=n.geojson(U,this.type,this)),this.processedData=[];let H=this.processedData;if(z){let V;for(let Z=0,K=z.length;Zj.length&&typeof V[0]=="string"&&(H[Z]["hc-key"]=V[0],++J);for(let tt=0;tt0?a.prototype.setNestedProperty(H[Z],V[J],j[tt]):H[Z][j[tt]]=V[J])}else H[Z]=z[Z];X&&X[0]==="_i"&&(H[Z]._i=Z)}}if(k){this.mapData=k,this.mapMap={};for(let V=0;V{let K=R(V,Z);W[K]&&B.push(W[K])})}if(E.allAreas){if(X[1]){let Z=X[1];H.forEach(K=>{B.push(R(Z,K))})}let V="|"+B.map(function(Z){return Z&&Z[X[0]]}).join("|")+"|";k.forEach(Z=>{X[0]&&V.indexOf("|"+Z[X[0]]+"|")!==-1||H.push(F(Z,{value:null}))})}}this.processedXData=Array(H.length)}setOptions(y){let M=super.setOptions(y),k=M.joinBy;return M.joinBy===null&&(k="_i"),(k=this.joinBy=C(k))[1]||(k[1]=k[0]),M}translate(){let y=this.doFullTranslate(),M=this.chart.mapView,k=M&&M.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!M||M.userOptions.center||_(M.userOptions.zoom)||M.zoom!==M.minZoom?this.getProjectedBounds():M.fitToBounds(void 0,void 0,!1)),M){let E=M.getSVGTransform();this.points.forEach(z=>{let N=_(z.insetIndex)&&M.insets[z.insetIndex].getSVGTransform()||E;N&&z.bounds&&_(z.bounds.midX)&&_(z.bounds.midY)&&(z.plotX=z.bounds.midX*N.scaleX+N.translateX,z.plotY=z.bounds.midY*N.scaleY+N.translateY),y&&(z.shapeType="path",z.shapeArgs={d:a.getProjectedPath(z,k)}),z.hiddenInDataClass||(z.projectedPath&&!z.projectedPath.length?z.setVisible(!1):z.visible||z.setVisible(!0))})}w(this,"afterTranslate")}update(y){y.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((M,k)=>k===this._i?y.mapData:M.mapData)],!0),super.update.apply(this,arguments)}}return d.defaultOptions=F(A.defaultOptions,h),L(d.prototype,{type:"map",axisTypes:i.seriesMembers.axisTypes,colorAttribs:i.seriesMembers.colorAttribs,colorKey:i.seriesMembers.colorKey,directTouch:!0,drawDataLabels:v,drawGraph:v,forceDL:!0,getCenter:r.getCenter,getExtremesFromAll:!0,getSymbol:v,isCartesian:!1,parallelArrays:i.seriesMembers.parallelArrays,pointArrayMap:i.seriesMembers.pointArrayMap,pointClass:a,preserveAspectRatio:!0,searchPoint:v,trackerGroups:i.seriesMembers.trackerGroups,useMapGeometry:!0}),i.compose(d),m.registerSeriesType("map",d),d}),s(t,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),s(t,"Series/MapLine/MapLineSeries.js",[t["Series/MapLine/MapLineSeriesDefaults.js"],t["Series/Map/MapSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{extend:l,merge:a}=n;class h extends i{pointAttribs(m,p){let u=super.pointAttribs(m,p);return u.fill=this.options.fillColor,u}}return h.defaultOptions=a(i.defaultOptions,e),l(h.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),r.registerSeriesType("mapline",h),h}),s(t,"Series/MapPoint/MapPointPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:r}=e.seriesTypes,{isNumber:n}=i;class l extends r.prototype.pointClass{isValid(){return!!(this.options.geometry||n(this.x)&&n(this.y)||n(this.options.lon)&&n(this.options.lat))}}return l}),s(t,"Series/MapPoint/MapPointSeriesDefaults.js",[],function(){return{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"}}),s(t,"Series/MapPoint/MapPointSeries.js",[t["Core/Globals.js"],t["Series/MapPoint/MapPointPoint.js"],t["Series/MapPoint/MapPointSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{noop:h}=e,{map:c,scatter:m}=n.seriesTypes,{extend:p,fireEvent:u,isNumber:b,merge:v}=a;class x extends m{constructor(){super(...arguments),this.clearBounds=c.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(A){let L=this.chart.mapView;if(L){let{geometry:S,lon:w,lat:R}=A,O=S&&S.type==="Point"&&S.coordinates;if(b(w)&&b(R)&&(O=[w,R]),O)return L.lonLatToProjectedUnits({lon:O[0],lat:O[1]})}}translate(){let A=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),A){let L=A.getSVGTransform(),{hasCoordinates:S}=A.projection;this.points.forEach(w=>{let R,{x:O,y:I}=w,_=b(w.insetIndex)&&A.insets[w.insetIndex].getSVGTransform()||L,P=this.projectPoint(w.options)||w.properties&&this.projectPoint(w.properties);if(P?(O=P.x,I=P.y):w.bounds&&(O=w.bounds.midX,I=w.bounds.midY,_&&b(O)&&b(I)&&(w.plotX=O*_.scaleX+_.translateX,w.plotY=I*_.scaleY+_.translateY,R=!0)),b(O)&&b(I)){if(!R){let F=A.projectedUnitsToPixels({x:O,y:I});w.plotX=F.x,w.plotY=S?F.y:this.chart.plotHeight-F.y}}else w.y=w.plotX=w.plotY=void 0;w.isInside=this.isPointInside(w),w.zone=this.zones.length?w.getZone():void 0})}u(this,"afterTranslate")}}return x.defaultOptions=v(m.defaultOptions,r),l.prototype.symbols.mapmarker=(f,A,L,S,w)=>{let R,O,I=w&&w.context==="legend";I?(R=f+L/2,O=A+S):w&&typeof w.anchorX=="number"&&typeof w.anchorY=="number"?(R=w.anchorX,O=w.anchorY):(R=f+L/2,O=A+S/2,A-=S);let _=I?S/3:S/2;return[["M",R,O],["C",R,O,R-_,A+1.5*_,R-_,A+_],["A",_,_,1,1,1,R+_,A+_],["C",R+_,A+1.5*_,R,O,R,O],["Z"]]},p(x.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:i,searchPoint:h,useMapGeometry:!0}),n.registerSeriesType("mappoint",x),x}),s(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),s(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:m,merge:p,pick:u,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,f=u(v.options.itemDistance,20),A=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!m(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,P){return P.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,A.labelWidth=I+x+f,A.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],A=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=f.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=u(I.borderColor,x.borderColor,f.color),L.fill=u(I.color,x.color,R!==1?l(f.color).setOpacity(R).get("rgba"):f.color),S.stroke=u(I.connectorColor,x.connectorColor,f.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=p(v[_],{center:v[0].radius-v[_].radius+A}),O||p(!0,v[_],{bubbleAttribs:p(L),connectorAttribs:p(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,f=this.options.seriesIndex,A=this.chart.series[f],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return A.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let A of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))A.value>=f&&this.renderRange(A);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],f=this.legend,A=this.options,L=A.labels,S=this.chart,w=S.series[A.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,P=Math.abs(v.radius),F=A.connectorDistance||0,T=L.align,D=f.options.rtl,C=A.borderWidth,d=A.connectorWidth,g=x.radius||0,y=_-P-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,E=D||T==="left"?-F:F;T==="center"&&(E=0,A.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(g,_+M,P).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(A.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",g,y],["L",g+E,y]],A.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(A.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(A.labels.className||"")).add(this.legendItem.symbol),N={x:g+E+A.labels.x,y:y+A.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,f=x.labels.formatter,A=x.labels.format,{numberFormatter:L}=this.chart;return A?i.format(A,v):f?f.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(v.hideOverlappingLabels(f.labels),f.labels.forEach(function(A,L){A.newOpacity?A.newOpacity!==A.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,f=v.options.ranges,A,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(m)).length&&(S=u(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=u(R.options.zMax,Math.max(w,h(L))))}),A=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&A.reverse(),A.forEach(function(R,O){f&&f[O]&&(A[O]=p(f[O],R))}),A}predictBubbleSizes(){let v=this.chart,x=v.legend.options,f=x.floating,A=x.layout==="horizontal",L=A?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),P,F=R.options.maxSize;return f||!/%$/.test(F)?P=_:(P=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(A&&w-P>=S||!A&&S-P>=w)&&(P=_)),[I,Math.ceil(P)]}updateRanges(v,x){let f=this.legend.options.bubbleLegend;f.minSize=v,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),s(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:m,pushUnique:p,wrap:u}=l;function b(S,w,R){let O,I,_,P=this.legend,F=v(this)>=0;P&&P.options.enabled&&P.bubbleLegend&&P.options.bubbleLegend.autoRanges&&F?(O=P.bubbleLegend.options,I=P.bubbleLegend.predictBubbleSizes(),P.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(P.group.placed=!1,P.allItems.forEach(T=>{(_=T.legendItem||{}).group&&(_.group.translateY=void 0)})),P.render(),O.placed||(this.getMargins(),this.axes.forEach(function(T){T.visible&&T.render(),O.placed||(T.setScale(),T.updateNames(),m(T.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),P.bubbleLegend.correctSizes(),L(P,x(P))):(S.call(this,w,R),P&&P.options.enabled&&P.bubbleLegend&&(P.render(),L(P,x(P))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[T].itemHeight);I.step=F}return R}function f(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new i(O,this),this.bubbleLegend.addToLegend(S.allItems))}function A(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,P,F,T=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((P=D.movementX)||O&&D.ranges)&&(P=O?I-D.options.maxSize/2:I+P,F.group.attr({translateX:P})),C>w[T].step&&T++,F.group.attr({translateY:Math.round(_+w[T].height/2)}),F.y=_+w[T].height/2)})}return{compose:function(S,w,R){p(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),u(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",f),c(R,"legendItemClick",A))}}}),s(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=i,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),s(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{parse:h}=r,{composed:c,noop:m}=n,{series:p,seriesTypes:{column:{prototype:u},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:f,clamp:A,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let P=this.len,{coll:F,isXAxis:T,min:D}=this,C=T?"xData":"yData",d=(this.max||0)-(D||0),g=0,y=P,M=P/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=E[C];if(T&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=E.radii&&E.radii[N]||0;g=Math.min((z[N]-D)*M-G,g),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=P,M*=(P+Math.max(0,g)-Math.min(y,P))/P,[["min","userMin",g],["max","userMax",y]].forEach(E=>{R(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/M)})))}class _ extends b{static compose(F,T,D,C){e.compose(T,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),E=!0)}}),E?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/E)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,T){let D=super.markerAttribs(F,T),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,T){let D=this.options.marker.fillOpacity,C=p.prototype.pointAttribs.call(this,F,T);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:T,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let g=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(g.negative=(g.z||0)<(T.zThreshold||0)),S(y)&&y>=C/2?(g.marker=L(g.marker,{radius:y,width:2*y,height:2*y}),g.dlBox={x:g.plotX-y,y:g.plotY-y,width:2*y,height:2*y}):(g.shapeArgs=g.plotY=g.dlBox=void 0,g.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),T=d=>{let g;return typeof d=="string"&&(g=/%$/.test(d),d=parseInt(d,10)),g?F*d/100:d},D=T(R(this.options.minSize,8)),C=Math.max(T(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,T=(this.zData||[]).filter(S);if(T.length){let D=R(F.zMin,A(f(T),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(T));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:P}=this.series.chart,{z:F}=this.point;return S(F)?P(F,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),L(_.prototype,{alignDataLabel:u.alignDataLabel,applyZones:m,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:i,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",P=>{delete P.target.chart.bubbleZExtremes}),v(_,"remove",P=>{delete P.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),s(t,"Series/MapBubble/MapBubblePoint.js",[t["Series/Bubble/BubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{map:{prototype:{pointClass:{prototype:n}}}}}=i,{extend:l}=r;class a extends e{isValid(){return typeof this.z=="number"}}return l(a.prototype,{applyOptions:n.applyOptions,getProjectedBounds:n.getProjectedBounds}),a}),s(t,"Series/MapBubble/MapBubbleSeries.js",[t["Series/Bubble/BubbleSeries.js"],t["Series/MapBubble/MapBubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{seriesTypes:{map:{prototype:l},mappoint:{prototype:a}}}=r,{extend:h,merge:c}=n;class m extends e{constructor(){super(...arguments),this.clearBounds=l.clearBounds}searchPoint(u,b){return this.searchKDTree({plotX:u.chartX-this.chart.plotLeft,plotY:u.chartY-this.chart.plotTop},b,u)}translate(){a.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(u,b,v){super.updateParallelArrays.call(this,u,b,v);let x=this.processedXData,f=this.xData;x&&f&&(x.length=f.length)}}return m.defaultOptions=c(e.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h(m.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:l.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:i,processData:l.processData,projectPoint:a.projectPoint,kdAxisArray:["plotX","plotY"],setData:l.setData,setOptions:l.setOptions,updateData:l.updateData,useMapGeometry:!0,xyFromShape:!0}),r.registerSeriesType("mapbubble",m),m}),s(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=i;class c extends r{applyOptions(p,u){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(p,u),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let p=this.series,u=p.options,b=(u.colsize||1)/2,v=(u.rowsize||1)/2,x=p.xAxis,f=p.yAxis,A=this.options.marker||p.options.marker,L=p.pointPlacementToXValue(),S=h(this.pointPadding,u.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(f.translate(this.y-v,!1,!0,!1,!0)),-f.len,2*f.len),y2:n(Math.round(f.translate(this.y+v,!1,!0,!1,!0)),-f.len,2*f.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",P=I+"2",F=Math.abs(w[_]-w[P]),T=A&&A.lineWidth||0,D=Math.abs(w[_]+w[P])/2,C=A&&A[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),s(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{doc:r}=e,{defined:n,pick:l}=i;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let m=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(p=>l(parseFloat(p),parseInt(p,10)));return m[3]=255*l(m[3],1),n(a)&&h.visible||(m[3]=0),m}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),s(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,i,r,n,l,a,h,c){let{series:m,seriesTypes:{column:p,scatter:u}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:f,isNumber:A,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends u{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,P=_.options,F=P.interpolation,T=P.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:g}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:E}=g,z={width:M,height:E};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,Y=C.colorAxis&&C.colorAxis[0];if(G&&N&&Y){let{min:U,max:q}=d.getExtremes(),{min:H,max:V}=g.getExtremes(),Z=q-U,K=V-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:P}=m.prototype.getExtremes.call(this,this.valueData);return A(_)&&(this.valueMin=_),A(P)&&(this.valueMax=P),m.prototype.getExtremes.call(this)}getValidPoints(_,P){return m.prototype.getValidPoints.call(this,_,P,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&A(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,P){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(P&&P!=="normal"){let T=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[P]||{},d=T.states&&T.states[P]||{},g=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-g)/2,y:(F.y||0)+((F.height||0)-y)/2,width:g,height:y}}return F}pointAttribs(_,P){let F=m.prototype.pointAttribs.call(this,_,P),T=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},g=_&&_.options.borderColor||T.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||T.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||T.marker&&T.marker.lineColor||g||this.color,F["stroke-width"]=y,P&&P!=="normal"){let M=L(T.states&&T.states[P],T.marker&&T.marker.states&&T.marker.states[P],_&&_.options.states&&_.options.states[P]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:P}=this.options,F=P&&P.symbol||"rect",T=b[F]?F:"rect",D=["circle","square"].indexOf(T)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),g=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let E=Math.abs(M-k);g=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof Bn=="object"&&Bn.exports?(o.default=o,Bn.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Extensions/Pane/PaneComposition.js",[t["Core/Utilities.js"]],function(e){let{addEvent:i,correctFloat:r,defined:n,pick:l}=e;function a(u){let b,v=this;return u&&v.pane.forEach(x=>{h(u.chartX-v.plotLeft,u.chartY-v.plotTop,x.center)&&(b=x)}),b}function h(u,b,v,x,f){let A=!0,L=v[0],S=v[1];if(n(x)&&n(f)){let w=Math.atan2(r(b-S,8),r(u-L,8));f!==x&&(A=x>f?w>=x&&w<=Math.PI||w<=f&&w>=-Math.PI:w>=x&&w<=r(f,8))}return Math.sqrt(Math.pow(u-L,2)+Math.pow(b-S,2))<=Math.ceil(v[2]/2)&&A}function c(u){this.polar&&(u.options.inverted&&([u.x,u.y]=[u.y,u.x]),u.isInsidePlot=this.pane.some(b=>h(u.x,u.y,b.center,b.axis&&b.axis.normalizedStartAngleRad,b.axis&&b.axis.normalizedEndAngleRad)))}function m(u){let b=this.chart;u.hoverPoint&&u.hoverPoint.plotX&&u.hoverPoint.plotY&&b.hoverPane&&!h(u.hoverPoint.plotX,u.hoverPoint.plotY,b.hoverPane.center)&&(u.hoverPoint=void 0)}function p(u){let b=this.chart;b.polar?(b.hoverPane=b.getHoverPane(u),u.filter=function(v){return v.visible&&!(!u.shared&&v.directTouch)&&l(v.options.enableMouseTracking,!0)&&(!b.hoverPane||v.xAxis.pane===b.hoverPane)}):b.hoverPane=void 0}return{compose:function(u,b){let v=u.prototype;v.getHoverPane||(v.collectionsWithUpdate.push("pane"),v.getHoverPane=a,i(u,"afterIsInsidePlot",c),i(b,"afterGetHoverData",m),i(b,"beforeGetHoverData",p))}}}),s(t,"Extensions/Pane/PaneDefaults.js",[],function(){return{pane:{center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},background:{shape:"circle",borderRadius:0,borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}}}),s(t,"Extensions/Pane/Pane.js",[t["Series/CenteredUtilities.js"],t["Extensions/Pane/PaneComposition.js"],t["Extensions/Pane/PaneDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{extend:l,merge:a,splat:h}=n;class c{constructor(p,u){this.coll="pane",this.init(p,u)}init(p,u){this.chart=u,this.background=[],u.pane.push(this),this.setOptions(p)}setOptions(p){this.options=p=a(r.pane,this.chart.angular?{background:{}}:void 0,p)}render(){let p=this.options,u=this.chart.renderer;this.group||(this.group=u.g("pane-group").attr({zIndex:p.zIndex||0}).add()),this.updateCenter();let b=this.options.background;if(b){let v=Math.max((b=h(b)).length,this.background.length||0);for(let x=0;xd,w.y=w.high,w._plotY=w.plotY,w.plotY=C,F[S]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=R,D?O.align||(O.align=R?"right":"left"):O.verticalAlign||(O.verticalAlign=R?"top":"bottom")}for(this.options.dataLabels=O,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),S=P;S--;)(w=_[S])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=F[S],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(I.enabled||this.hasDataLabels?.()){for(S=P;S--;)if(w=_[S]){let{plotHigh:C=0,plotLow:d=0}=w;R=I.inside?Cd,w.below=!R,D?I.align||(I.align=R?"left":"right"):I.verticalAlign||(I.verticalAlign=R?"bottom":"top")}this.options.dataLabels=I,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(O.enabled)for(S=P;S--;)(w=_[S])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(C){return!!C}));this.options.dataLabels=T}}alignDataLabel(){c.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let S={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:w,lowMarker:R}}=this;this.options.marker=f(w,R),R.symbol&&(this.symbol=R.symbol)}return S}restoreMarkerSettings(S){this.options.marker=S.marker,this.symbol=S.symbol}drawPoints(){let S,w,R=this.points.length,O=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(O),S=0;S=0&&w.plotY<=this.yAxis.len&&w.plotX>=0&&w.plotX<=this.xAxis.len),S++;for(h.drawPoints.apply(this,arguments),S=0;S\u25CF {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),m(A,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(L=>{let S=L.high,w=L.plotY;L.isNull?L.plotY=void 0:(L.plotLow=w,L.plotHigh=v(S)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(S):S,!1,!0,void 0,!0):void 0,this.dataModify&&(L.yBottom=L.plotHigh))})},{order:0}),m(A,"afterTranslate",function(){this.points.forEach(L=>{if(this.chart.polar)this.highToXY(L),L.plotLow=L.plotY,L.tooltipPos=[((L.plotHighX||0)+(L.plotLowX||0))/2,((L.plotHigh||0)+(L.plotLow||0))/2];else{let S=L.pos(!1,L.plotLow),w=L.pos(!1,L.plotHigh);S&&w&&(S[0]=(S[0]+w[0])/2,S[1]=(S[1]+w[1])/2),L.tooltipPos=S}})},{order:3}),u(A.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:e,pointValKey:"low",setStackedPoints:l}),r.registerSeriesType("arearange",A),A}),s(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{spline:{prototype:n}}=i.seriesTypes,{merge:l,extend:a}=r;class h extends e{}return h.defaultOptions=l(e.defaultOptions),a(h.prototype,{getPointSpline:n.getPointSpline}),i.registerSeriesType("areasplinerange",h),h}),s(t,"Series/BoxPlot/BoxPlotSeriesDefaults.js",[],function(){return{threshold:null,tooltip:{pointFormat:'\u25CF {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}}),s(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/BoxPlot/BoxPlotSeriesDefaults.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{noop:a}=r,{crisp:h,extend:c,merge:m,pick:p}=l;class u extends i{pointAttribs(){return{}}translate(){let v=this.yAxis,x=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(f){x.forEach(function(A){f[A]!==null&&(f[A+"Plot"]=v.translate(f[A],0,1,0,1))}),f.plotHigh=f.highPlot})}drawPoints(){let v,x,f,A,L,S,w,R,O,I,_,P,F,T=this.points,D=this.options,C=this.chart,d=C.renderer,g=this.doQuartiles!==!1,y=this.options.whiskerLength;for(let M of T){let k=(R=M.graphic)?"animate":"attr",E=M.shapeArgs,z={},N={},G={},X={},j=M.color||this.color;if(M.plotY!==void 0){let B;O=E.width,_=(I=E.x)+O,P=O/2,v=g?M.q1Plot:M.lowPlot,x=g?M.q3Plot:M.lowPlot,f=M.highPlot,A=M.lowPlot,R||(M.graphic=R=d.g("point").add(this.group),M.stem=d.path().addClass("highcharts-boxplot-stem").add(R),y&&(M.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(R)),g&&(M.box=d.path(w).addClass("highcharts-boxplot-box").add(R)),M.medianShape=d.path(S).addClass("highcharts-boxplot-median").add(R)),C.styledMode||(N.stroke=M.stemColor||D.stemColor||j,N["stroke-width"]=p(M.stemWidth,D.stemWidth,D.lineWidth),N.dashstyle=M.stemDashStyle||D.stemDashStyle||D.dashStyle,M.stem.attr(N),y&&(G.stroke=M.whiskerColor||D.whiskerColor||j,G["stroke-width"]=p(M.whiskerWidth,D.whiskerWidth,D.lineWidth),G.dashstyle=M.whiskerDashStyle||D.whiskerDashStyle||D.dashStyle,M.whiskers.attr(G)),g&&(z.fill=M.fillColor||D.fillColor||j,z.stroke=D.lineColor||j,z["stroke-width"]=D.lineWidth||0,z.dashstyle=M.boxDashStyle||D.boxDashStyle||D.dashStyle,M.box.attr(z)),X.stroke=M.medianColor||D.medianColor||j,X["stroke-width"]=p(M.medianWidth,D.medianWidth,D.lineWidth),X.dashstyle=M.medianDashStyle||D.medianDashStyle||D.dashStyle,M.medianShape.attr(X));let W=h(M.plotX||0,M.stem.strokeWidth());if(B=[["M",W,x],["L",W,f],["M",W,v],["L",W,A]],M.stem[k]({d:B}),g){let Y=M.box.strokeWidth();v=h(v,Y),x=h(x,Y),B=[["M",I=h(I,Y),x],["L",I,v],["L",_=h(_,Y),v],["L",_,x],["L",I,x],["Z"]],M.box[k]({d:B})}if(y){let Y=M.whiskers.strokeWidth();f=h(M.highPlot,Y),A=h(M.lowPlot,Y),B=[["M",h(W-(F=typeof y=="string"&&/%$/.test(y)?P*parseFloat(y)/100:Number(y)/2)),f],["L",h(W+F),f],["M",h(W-F),A],["L",h(W+F),A]],M.whiskers[k]({d:B})}B=[["M",I,L=h(M.medianPlot,M.medianShape.strokeWidth())],["L",_,L]],M.medianShape[k]({d:B})}}}toYData(v){return[v.low,v.q1,v.median,v.q3,v.high]}}return u.defaultOptions=m(i.defaultOptions,e),c(u.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:a,setStackedPoints:a}),n.registerSeriesType("boxplot",u),u}),s(t,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"#000000"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}),s(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:m,merge:p,pick:u,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,f=u(v.options.itemDistance,20),A=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!m(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,P){return P.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,A.labelWidth=I+x+f,A.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],A=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=f.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=u(I.borderColor,x.borderColor,f.color),L.fill=u(I.color,x.color,R!==1?l(f.color).setOpacity(R).get("rgba"):f.color),S.stroke=u(I.connectorColor,x.connectorColor,f.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=p(v[_],{center:v[0].radius-v[_].radius+A}),O||p(!0,v[_],{bubbleAttribs:p(L),connectorAttribs:p(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,f=this.options.seriesIndex,A=this.chart.series[f],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return A.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let A of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))A.value>=f&&this.renderRange(A);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],f=this.legend,A=this.options,L=A.labels,S=this.chart,w=S.series[A.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,P=Math.abs(v.radius),F=A.connectorDistance||0,T=L.align,D=f.options.rtl,C=A.borderWidth,d=A.connectorWidth,g=x.radius||0,y=_-P-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,E=D||T==="left"?-F:F;T==="center"&&(E=0,A.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(g,_+M,P).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(A.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",g,y],["L",g+E,y]],A.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(A.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(A.labels.className||"")).add(this.legendItem.symbol),N={x:g+E+A.labels.x,y:y+A.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,f=x.labels.formatter,A=x.labels.format,{numberFormatter:L}=this.chart;return A?i.format(A,v):f?f.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(v.hideOverlappingLabels(f.labels),f.labels.forEach(function(A,L){A.newOpacity?A.newOpacity!==A.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,f=v.options.ranges,A,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(m)).length&&(S=u(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=u(R.options.zMax,Math.max(w,h(L))))}),A=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&A.reverse(),A.forEach(function(R,O){f&&f[O]&&(A[O]=p(f[O],R))}),A}predictBubbleSizes(){let v=this.chart,x=v.legend.options,f=x.floating,A=x.layout==="horizontal",L=A?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),P,F=R.options.maxSize;return f||!/%$/.test(F)?P=_:(P=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(A&&w-P>=S||!A&&S-P>=w)&&(P=_)),[I,Math.ceil(P)]}updateRanges(v,x){let f=this.legend.options.bubbleLegend;f.minSize=v,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),s(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:m,pushUnique:p,wrap:u}=l;function b(S,w,R){let O,I,_,P=this.legend,F=v(this)>=0;P&&P.options.enabled&&P.bubbleLegend&&P.options.bubbleLegend.autoRanges&&F?(O=P.bubbleLegend.options,I=P.bubbleLegend.predictBubbleSizes(),P.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(P.group.placed=!1,P.allItems.forEach(T=>{(_=T.legendItem||{}).group&&(_.group.translateY=void 0)})),P.render(),O.placed||(this.getMargins(),this.axes.forEach(function(T){T.visible&&T.render(),O.placed||(T.setScale(),T.updateNames(),m(T.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),P.bubbleLegend.correctSizes(),L(P,x(P))):(S.call(this,w,R),P&&P.options.enabled&&P.bubbleLegend&&(P.render(),L(P,x(P))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[T].itemHeight);I.step=F}return R}function f(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new i(O,this),this.bubbleLegend.addToLegend(S.allItems))}function A(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,P,F,T=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((P=D.movementX)||O&&D.ranges)&&(P=O?I-D.options.maxSize/2:I+P,F.group.attr({translateX:P})),C>w[T].step&&T++,F.group.attr({translateY:Math.round(_+w[T].height/2)}),F.y=_+w[T].height/2)})}return{compose:function(S,w,R){p(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),u(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",f),c(R,"legendItemClick",A))}}}),s(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=i,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),s(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{parse:h}=r,{composed:c,noop:m}=n,{series:p,seriesTypes:{column:{prototype:u},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:f,clamp:A,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let P=this.len,{coll:F,isXAxis:T,min:D}=this,C=T?"xData":"yData",d=(this.max||0)-(D||0),g=0,y=P,M=P/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=E[C];if(T&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=E.radii&&E.radii[N]||0;g=Math.min((z[N]-D)*M-G,g),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=P,M*=(P+Math.max(0,g)-Math.min(y,P))/P,[["min","userMin",g],["max","userMax",y]].forEach(E=>{R(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/M)})))}class _ extends b{static compose(F,T,D,C){e.compose(T,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),E=!0)}}),E?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/E)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,T){let D=super.markerAttribs(F,T),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,T){let D=this.options.marker.fillOpacity,C=p.prototype.pointAttribs.call(this,F,T);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:T,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let g=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(g.negative=(g.z||0)<(T.zThreshold||0)),S(y)&&y>=C/2?(g.marker=L(g.marker,{radius:y,width:2*y,height:2*y}),g.dlBox={x:g.plotX-y,y:g.plotY-y,width:2*y,height:2*y}):(g.shapeArgs=g.plotY=g.dlBox=void 0,g.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),T=d=>{let g;return typeof d=="string"&&(g=/%$/.test(d),d=parseInt(d,10)),g?F*d/100:d},D=T(R(this.options.minSize,8)),C=Math.max(T(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,T=(this.zData||[]).filter(S);if(T.length){let D=R(F.zMin,A(f(T),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(T));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:P}=this.series.chart,{z:F}=this.point;return S(F)?P(F,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),L(_.prototype,{alignDataLabel:u.alignDataLabel,applyZones:m,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:i,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",P=>{delete P.target.chart.bubbleZExtremes}),v(_,"remove",P=>{delete P.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),s(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{seriesTypes:{column:{prototype:{pointClass:{prototype:r}}},arearange:{prototype:{pointClass:n}}}}=e,{extend:l,isNumber:a}=i;class h extends n{isValid(){return a(this.low)}}return l(h.prototype,{setState:r.setState}),h}),s(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=i,{seriesTypes:{arearange:a,column:h,column:{prototype:c}}}=r,{addEvent:m,clamp:p,extend:u,isNumber:b,merge:v,pick:x}=n;class f extends a{setOptions(){return v(!0,arguments[0],{stacking:void 0}),a.prototype.setOptions.apply(this,arguments)}translate(){return c.translate.apply(this)}pointAttribs(){return c.pointAttribs.apply(this,arguments)}translate3dPoints(){return c.translate3dPoints.apply(this,arguments)}translate3dShapes(){return c.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let L,S,w,R,O=this.yAxis,I=this.xAxis,_=I.startAngleRad,P=this.chart,F=this.xAxis.isRadial,T=Math.max(P.chartWidth,P.chartHeight)+999;this.points.forEach(D=>{let C=D.shapeArgs||{},d=this.options.minPointLength,g=D.plotY,y=O.translate(D.high,0,1,0,1);if(b(y)&&b(g))if(D.plotHigh=p(y,-T,T),D.plotLow=p(g,-T,T),R=D.plotHigh,Math.abs(L=x(D.rectPlotY,D.plotY)-D.plotHigh)\u25CF {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),s(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{arearange:a}=n.seriesTypes,{addEvent:h,merge:c,extend:m}=l;class p extends e{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||i.prototype.getColumnMetrics.call(this)}drawDataLabels(){let b=this.pointValKey;if(a)for(let v of(a.prototype.drawDataLabels.call(this),this.points))v.y=v[b]}toYData(b){return[b.low,b.high]}}return p.defaultOptions=c(e.defaultOptions,r),h(p,"afterTranslate",function(){for(let u of this.points)u.plotLow=u.plotY},{order:0}),m(p.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),n.registerSeriesType("errorbar",p),p}),s(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{series:{prototype:{pointClass:i}}}=e;return class extends i{setState(r){this.state=r}}}),s(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=i,{series:a,seriesTypes:{column:h}}=r,{clamp:c,isNumber:m,extend:p,merge:u,pick:b,pInt:v,defined:x}=n;class f extends a{translate(){let L=this.yAxis,S=this.options,w=L.center;this.generatePoints(),this.points.forEach(R=>{let O=u(S.dial,R.dial),I=v(O.radius)*w[2]/200,_=v(O.baseLength)*I/100,P=v(O.rearLength)*I/100,F=O.baseWidth,T=O.topWidth,D=S.overshoot,C=L.startAngleRad+L.translate(R.y,void 0,void 0,void 0,!0);(m(D)||S.wrap===!1)&&(D=m(D)?D/180*Math.PI:0,C=c(C,L.startAngleRad-D,L.endAngleRad+D)),C=180*C/Math.PI,R.shapeType="path";let d=O.path||[["M",-P,-F/2],["L",_,-F/2],["L",I,-T/2],["L",I,T/2],["L",_,F/2],["L",-P,F/2],["Z"]];R.shapeArgs={d,translateX:w[0],translateY:w[1],rotation:C},R.plotX=w[0],R.plotY=w[1],x(R.y)&&L.max-L.min&&(R.percentage=(R.y-L.min)/(L.max-L.min)*100)})}drawPoints(){let L=this,S=L.chart,w=L.yAxis.center,R=L.pivot,O=L.options,I=O.pivot,_=S.renderer;L.points.forEach(P=>{let F=P.graphic,T=P.shapeArgs,D=T.d,C=u(O.dial,P.dial);F?(F.animate(T),T.d=D):P.graphic=_[P.shapeType](T).addClass("highcharts-dial").add(L.group),S.styledMode||P.graphic[F?"animate":"attr"]({stroke:C.borderColor,"stroke-width":C.borderWidth,fill:C.backgroundColor})}),R?R.animate({translateX:w[0],translateY:w[1]}):I&&(L.pivot=_.circle(0,0,I.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(w[0],w[1]).add(L.group),S.styledMode||L.pivot.attr({fill:I.backgroundColor,stroke:I.borderColor,"stroke-width":I.borderWidth}))}animate(L){let S=this;L||S.points.forEach(w=>{let R=w.graphic;R&&(R.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),R.animate({rotation:w.shapeArgs.rotation},S.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),a.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(L,S){a.prototype.setData.call(this,L,!1),this.processData(),this.generatePoints(),b(S,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return f.defaultOptions=u(a.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),p(f.prototype,{angular:!0,directTouch:!0,drawGraph:l,drawTracker:h.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:e,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",f),f}),s(t,"Series/DragNodesComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{composed:r}=e,{addEvent:n,pushUnique:l}=i;function a(){let h,c,m,p=this;p.container&&(h=n(p.container,"mousedown",u=>{let b=p.hoverPoint;b&&b.series&&b.series.hasDraggableNodes&&b.series.options.draggable&&(b.series.onMouseDown(b,u),c=n(p.container,"mousemove",v=>b&&b.series&&b.series.onMouseMove(b,v)),m=n(p.container.ownerDocument,"mouseup",v=>(c(),m(),b&&b.series&&b.series.onMouseUp(b,v))))})),n(p,"destroy",function(){h()})}return{compose:function(h){l(r,"DragNodes")&&n(h,"load",a)},onMouseDown:function(h,c){let m=this.chart.pointer?.normalize(c)||c;h.fixedPosition={chartX:m.chartX,chartY:m.chartY,plotX:h.plotX,plotY:h.plotY},h.inDragMode=!0},onMouseMove:function(h,c){if(h.fixedPosition&&h.inDragMode){let m,p,u=this.chart,b=u.pointer?.normalize(c)||c,v=h.fixedPosition.chartX-b.chartX,x=h.fixedPosition.chartY-b.chartY,f=u.graphLayoutsLookup;(Math.abs(v)>5||Math.abs(x)>5)&&(m=h.fixedPosition.plotX-v,p=h.fixedPosition.plotY-x,u.isInsidePlot(m,p)&&(h.plotX=m,h.plotY=p,h.hasDragged=!0,this.redrawHalo(h),f.forEach(A=>{A.restartSimulation()})))}},onMouseUp:function(h){h.fixedPosition&&(h.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),h.inDragMode=h.hasDragged=!1,this.options.fixedDraggable||delete h.fixedPosition)},redrawHalo:function(h){h&&this.halo&&this.halo.attr({d:h.haloPath(this.options.states.hover.halo.size)})}}}),s(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r){let{setAnimation:n}=e,{composed:l}=i,{addEvent:a,pushUnique:h}=r;function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation()}),this.redraw())}function m(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation(!1)}),this.redraw())}function p(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(b=>{b.stop()})}function u(){let b,v=!1,x=f=>{f.maxIterations--&&isFinite(f.temperature)&&!f.isStable()&&!f.enableSimulation&&(f.beforeStep&&f.beforeStep(),f.step(),b=!1,v=!0)};if(this.graphLayoutsLookup){for(n(!1,this),this.graphLayoutsLookup.forEach(f=>f.start());!b;)b=!0,this.graphLayoutsLookup.forEach(x);v&&this.series.forEach(f=>{f&&f.layout&&f.render()})}}return{compose:function(b){h(l,"GraphLayout")&&(a(b,"afterPrint",c),a(b,"beforePrint",m),a(b,"predraw",p),a(b,"render",u))},integrations:{},layouts:{}}}),s(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(e,i,r){let{seriesTypes:{bubble:{prototype:{pointClass:n}}}}=r;return class extends n{destroy(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),i.prototype.destroy.apply(this,arguments)}firePointEvent(){let l=this.series.options;if(this.isParentNode&&l.parentNode){let a=l.allowPointSelect;l.allowPointSelect=l.parentNode.allowPointSelect,i.prototype.firePointEvent.apply(this,arguments),l.allowPointSelect=a}else i.prototype.firePointEvent.apply(this,arguments)}select(){let l=this.series.chart;this.isParentNode?(l.getSelectedPoints=l.getSelectedParentNodes,i.prototype.select.apply(this,arguments),l.getSelectedPoints=e.prototype.getSelectedPoints):i.prototype.select.apply(this,arguments)}}}),s(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:i}=e;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return i(n)?r(n,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),s(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(e,i,r){let n=e.getMass(),l=-r.x*i*this.diffTemperature,a=-r.y*i*this.diffTemperature;e.fromNode.fixedPosition||(e.fromNode.plotX-=l*n.fromNode/e.fromNode.degree,e.fromNode.plotY-=a*n.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.plotX+=l*n.toNode/e.toNode.degree,e.toNode.plotY+=a*n.toNode/e.toNode.degree)},attractiveForceFunction:function(e,i){return(i-e)/e},barycenter:function(){let e=this.options.gravitationalConstant||0,i=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*e,r=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*e;this.nodes.forEach(function(n){n.fixedPosition||(n.plotX-=i/n.mass/n.degree,n.plotY-=r/n.mass/n.degree)})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.5)},integrate:function(e,i){let r=-e.options.friction,n=e.options.maxSpeed,l=i.prevX,a=i.prevY,h=(i.plotX+i.dispX-l)*r,c=(i.plotY+i.dispY-a)*r,m=Math.abs,p=m(h)/(h||1),u=m(c)/(c||1),b=p*Math.min(n,Math.abs(h)),v=u*Math.min(n,Math.abs(c));i.prevX=i.plotX+i.dispX,i.prevY=i.plotY+i.dispY,i.plotX+=b,i.plotY+=v,i.temperature=e.vectorLength({x:b,y:v})},repulsive:function(e,i,r){let n=i*this.diffTemperature/e.mass/e.degree;e.fixedPosition||(e.plotX+=r.x*n,e.plotY+=r.y*n)},repulsiveForceFunction:function(e,i){return(i-e)/e*(i>e?1:0)}}}),s(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(e,i){let{noop:r}=e;return{barycenter:function(){let n,l,a=this.options.gravitationalConstant,h=this.box,c=this.nodes;for(let m of c)this.options.splitSeries&&!m.isParentNode?(n=m.series.parentNode.plotX,l=m.series.parentNode.plotY):(n=h.width/2,l=h.height/2),m.fixedPosition||(m.plotX-=(m.plotX-n)*a/(m.mass*Math.sqrt(c.length)),m.plotY-=(m.plotY-l)*a/(m.mass*Math.sqrt(c.length)))},getK:r,integrate:i.integrate,repulsive:function(n,l,a,h){let c=l*this.diffTemperature/n.mass/n.degree,m=a.x*c,p=a.y*c;n.fixedPosition||(n.plotX+=m,n.plotY+=p),h.fixedPosition||(h.plotX-=m,h.plotY-=p)},repulsiveForceFunction:function(n,l,a,h){return Math.min(n,(a.marker.radius+h.marker.radius)/2)}}}),s(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(e,i,r,n){let l=e.getMass(),a=r.x/n*i,h=r.y/n*i;e.fromNode.fixedPosition||(e.fromNode.dispX-=a*l.fromNode/e.fromNode.degree,e.fromNode.dispY-=h*l.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.dispX+=a*l.toNode/e.toNode.degree,e.toNode.dispY+=h*l.toNode/e.toNode.degree)},attractiveForceFunction:function(e,i){return e*e/i},barycenter:function(){let e=this.options.gravitationalConstant,i=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(n){if(!n.fixedPosition){let l=n.getDegree(),a=l*(1+l/2);n.dispX+=(i-n.plotX)*e*a/n.degree,n.dispY+=(r-n.plotY)*e*a/n.degree}})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.3)},integrate:function(e,i){i.dispX+=i.dispX*e.options.friction,i.dispY+=i.dispY*e.options.friction;let r=i.temperature=e.vectorLength({x:i.dispX,y:i.dispY});r!==0&&(i.plotX+=i.dispX/r*Math.min(Math.abs(i.dispX),e.temperature),i.plotY+=i.dispY/r*Math.min(Math.abs(i.dispY),e.temperature))},repulsive:function(e,i,r,n){e.dispX+=r.x/n*i/e.degree,e.dispY+=r.y/n*i/e.degree},repulsiveForceFunction:function(e,i){return i*i/e}}}),s(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){class e{constructor(r){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=r,this.boxSize=Math.min(r.width,r.height)}divideBox(){let r=this.box.width/2,n=this.box.height/2;this.nodes[0]=new e({left:this.box.left,top:this.box.top,width:r,height:n}),this.nodes[1]=new e({left:this.box.left+r,top:this.box.top,width:r,height:n}),this.nodes[2]=new e({left:this.box.left+r,top:this.box.top+n,width:r,height:n}),this.nodes[3]=new e({left:this.box.left,top:this.box.top+n,width:r,height:n})}getBoxPosition(r){let n=r.plotXthis.step())):(this.simulation=!1,this.series.forEach(A=>{u(A,"afterSimulation")}))}}stop(){this.simulation&&h.cancelAnimationFrame(this.simulation)}setArea(f,A,L,S){this.box={left:f,top:A,width:L,height:S}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(f,A){for(let L of f)A.indexOf(L)===-1&&A.push(L)}removeElementFromCollection(f,A){let L=A.indexOf(f);L!==-1&&A.splice(L,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(f){this.maxIterations=b(f,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(f){this.initialRendering=f}createQuadTree(){this.quadTree=new n(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let f=this.options.initialPositions;if(p(f))for(let A of(f.call(this),this.nodes))m(A.prevX)||(A.prevX=A.plotX),m(A.prevY)||(A.prevY=A.plotY),A.dispX=0,A.dispY=0;else f==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let f,A=this.box,L=this.nodes,S=2*Math.PI/(L.length+1),w=L.filter(function(P){return P.linksTo.length===0}),R={},O=this.options.initialPositionRadius,I=P=>{for(let F of P.linksFrom||[])R[F.toNode.id]||(R[F.toNode.id]=!0,_.push(F.toNode),I(F.toNode))},_=[];for(let P of w)_.push(P),I(P);if(_.length)for(let P of L)_.indexOf(P)===-1&&_.push(P);else _=L;for(let P=0,F=_.length;P{let O=R*R/Math.PI;return O-Math.floor(O)};for(let R=0,O=L.length;Rthis.barnesHutApproximation(f,A));else{let f,A,L;for(let S of this.nodes)for(let w of this.nodes)S===w||S.fixedPosition||(L=this.getDistXY(S,w),(A=this.vectorLength(L))!==0&&(f=this.repulsiveForce(A,this.k),this.force("repulsive",S,f*w.mass,L,A)))}}attractiveForces(){let f,A,L;for(let S of this.links)S.fromNode&&S.toNode&&(f=this.getDistXY(S.fromNode,S.toNode),(A=this.vectorLength(f))!==0&&(L=this.attractiveForce(A,this.k),this.force("attractive",S,L,f,A)))}applyLimits(){for(let f of this.nodes)f.fixedPosition||(this.integration.integrate(this,f),this.applyLimitBox(f,this.box),f.dispX=0,f.dispY=0)}applyLimitBox(f,A){let L=f.radius;f.plotX=c(f.plotX,A.left+L,A.width-L),f.plotY=c(f.plotY,A.top+L,A.height-L)}coolDown(f,A,L){return f-A*L}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let f=0;for(let A of this.nodes)f+=A.temperature;return f}vectorLength(f){return Math.sqrt(f.x*f.x+f.y*f.y)}getDistR(f,A){let L=this.getDistXY(f,A);return this.vectorLength(L)}getDistXY(f,A){let L=f.plotX-A.plotX,S=f.plotY-A.plotY;return{x:L,y:S,absX:Math.abs(L),absY:Math.abs(S)}}}return v}),s(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{addEvent:l,pick:a}=n;function h(){let p=this.series,u=[];return p.forEach(b=>{b.parentNode&&b.parentNode.selected&&u.push(b.parentNode)}),u}function c(){this.allDataPoints&&delete this.allDataPoints}class m extends r{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(u){r.compose(u),e.integrations.packedbubble=i,e.layouts.packedbubble=m;let b=u.prototype;b.getSelectedParentNodes||(l(u,"beforeRedraw",c),b.getSelectedParentNodes=h)}beforeStep(){this.options.marker&&this.series.forEach(u=>{u&&u.calculateParentRadius()})}isStable(){let u=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&u<1e-5||this.temperature<=0}setCircularPositions(){let u=this.box,b=this.nodes,v=2*Math.PI/(b.length+1),x=this.options.initialPositionRadius,f,A,L=0;for(let S of b)this.options.splitSeries&&!S.isParentNode?(f=S.series.parentNode.plotX,A=S.series.parentNode.plotY):(f=u.width/2,A=u.height/2),S.plotX=S.prevX=a(S.plotX,f+x*Math.cos(S.index||L*v)),S.plotY=S.prevY=a(S.plotY,A+x*Math.sin(S.index||L*v)),S.dispX=0,S.dispY=0,L++}repulsiveForces(){let u,b,v,x=this,f=x.options.bubblePadding,A=x.nodes;A.forEach(L=>{L.degree=L.mass,L.neighbours=0,A.forEach(S=>{u=0,L!==S&&!L.fixedPosition&&(x.options.seriesInteraction||L.series===S.series)&&(v=x.getDistXY(L,S),(b=x.vectorLength(v)-(L.marker.radius+S.marker.radius+f))<0&&(L.degree+=.01,L.neighbours++,u=x.repulsiveForce(-b/Math.sqrt(L.neighbours),x.k,L,S)),x.force("repulsive",L,u*S.mass,v,S,b))})})}applyLimitBox(u,b){let v,x;this.options.splitSeries&&!u.isParentNode&&this.options.parentNodeLimit&&(v=this.getDistXY(u,u.series.parentNode),(x=u.series.parentNodeRadius-u.marker.radius-this.vectorLength(v))<0&&x>-2*u.marker.radius&&(u.plotX-=.01*v.x,u.plotY-=.01*v.y)),super.applyLimitBox(u,b)}}return e.layouts.packedbubble=m,m}),s(t,"Series/SimulationSeriesUtilities.js",[t["Core/Utilities.js"],t["Core/Animation/AnimationUtilities.js"]],function(e,i){let{merge:r,syncTimeout:n}=e,{animObject:l}=i;return{initDataLabels:function(){let a=this.options.dataLabels;if(!this.dataLabelsGroup){let h=this.initDataLabelsGroup();return!this.chart.styledMode&&a?.style&&h.css(a.style),h.attr({opacity:0}),this.visible&&h.show(),h}return this.dataLabelsGroup.attr(r({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let a=this.options.dataLabels;a?.defer&&this.options.layoutAlgorithm?.enableSimulation?n(()=>{this.deferDataLabels=!1},a?l(a.animation).defer:0):this.deferDataLabels=!1}}}),s(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Series/SimulationSeriesUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,m,p){let{parse:u}=e,{noop:b}=n,{series:{prototype:v},seriesTypes:{bubble:x}}=c,{initDataLabels:f,initDataLabelsDefer:A}=m,{addEvent:L,clamp:S,defined:w,extend:R,fireEvent:O,isArray:I,isNumber:_,merge:P,pick:F}=p;class T extends x{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(C,d,g,y){x.compose(C,d,g,y),i.compose(d),h.compose(d)}accumulateAllPoints(){let C,d=this.chart,g=[];for(let y of d.series)if(y.is("packedbubble")&&y.reserveSpace()){C=y.yData||[];for(let M=0;M{E.mass=2,E.degree=1,E.collisionNmb=1}),k.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),k.addElementsToCollection([this],k.series),k.addElementsToCollection(this.points,k.nodes)}addSeriesLayout(){let C=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},d=C.type||"packedbubble",g=this.chart.graphLayoutsStorage,y=this.chart.graphLayoutsLookup,M=P(C,C.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),k=g[d+"-series"];k||(g[d+"-series"]=k=new r.layouts[d],k.init(M),y.splice(k.index,0,k)),this.parentNodeLayout=k,this.createParentNodes()}calculateParentRadius(){let C=this.seriesBox();this.parentNodeRadius=S(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,C?Math.max(Math.sqrt(Math.pow(C.width,2)+Math.pow(C.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let C=this.chart.series,d=this.options.zMin,g=this.options.zMax,y=1/0,M=-1/0;return d&&g?[d,g]:(C.forEach(k=>{k.yData.forEach(E=>{w(E)&&(E>M&&(M=E),E{this.parentNodeMass+=Math.PI*Math.pow(z.marker.radius,2)}),this.calculateParentRadius(),g.nodes.forEach(z=>{z.seriesIndex===this.index&&(M=!0)}),g.setArea(0,0,d.plotWidth,d.plotHeight),M||(k||(k=new C(this,{mass:this.parentNodeRadius/2,marker:E,dataLabels:{inside:!1},states:{normal:{marker:E},hover:{marker:E}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,g.addElementsToCollection([this],g.series),g.addElementsToCollection([k],g.nodes))}deferLayout(){let C=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),C.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(C=>{C.removeElementFromCollection(this,C.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),v.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(v.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",v.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let C=this.chart,d=this.layout.options.parentNodeOptions.marker,g={fill:d.fillColor||u(this.color).brighten(.4).get(),opacity:d.fillOpacity,stroke:d.lineColor||this.color,"stroke-width":F(d.lineWidth,this.options.lineWidth)},y={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,C.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&w(this.parentNode.plotX)&&w(this.parentNode.plotY)&&w(this.parentNodeRadius)&&(y=P({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},g),this.parentNode.graphic||(this.graph=this.parentNode.graphic=C.renderer.symbol(g.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(y))}drawTracker(){let C,d=this.parentNode;super.drawTracker(),d&&(C=I(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),C.forEach(g=>{(g.div||g.element).point=d}))}getPointRadius(){let C,d,g,y,M=this.chart,k=M.plotWidth,E=M.plotHeight,z=this.options,N=z.useSimulation,G=Math.min(k,E),X={},j=[],B=M.allDataPoints||[],W=B.length;["minSize","maxSize"].forEach(U=>{let q=parseInt(z[U],10),H=/%$/.test(z[U]);X[U]=H?G*q/100:q*Math.sqrt(W)}),M.minRadius=C=X.minSize/Math.sqrt(W),M.maxRadius=d=X.maxSize/Math.sqrt(W);let Y=N?this.calculateZExtremes():[C,d];B.forEach((U,q)=>{g=N?S(U[2],Y[0],Y[1]):U[2],(y=this.getRadius(Y[0],Y[1],C,d,g))===0&&(y=null),B[q][2]=y,j.push(y)}),this.radii=j}init(){return v.init.apply(this,arguments),A.call(this),this.eventsToUnbind.push(L(this,"updatedData",function(){this.chart.series.forEach(C=>{C.type===this.type&&(C.isDirty=!0)},this)})),this}onMouseUp(C){if(C.fixedPosition&&!C.removed){let d,g=this.layout,y=this.parentNodeLayout;y&&g.options.dragBetweenSeries&&y.nodes.forEach(M=>{C&&C.marker&&M!==C.series.parentNode&&(d=g.getDistXY(C,M),g.vectorLength(d)-M.marker.radius-C.marker.radius<0&&(M.series.addPoint(P(C.options,{plotX:C.plotX,plotY:C.plotY}),!1),g.removeElementFromCollection(C,g.nodes),C.remove()))}),i.onMouseUp.apply(this,arguments)}}placeBubbles(C){let d=this.checkOverlap,g=this.positionBubble,y=[],M=1,k=0,E=0,z,N=[],G,X=C.sort((j,B)=>B[2]-j[2]);if(X.length){if(y.push([[0,0,X[0][2],X[0][3],X[0][4]]]),X.length>1)for(y.push([[0,0-X[1][2]-X[0][2],X[1][2],X[1][3],X[1][4]]]),G=2;G1&&y[M-1][E+1]&&d(z,y[M-1][E+1])?(E++,y[M].push(g(y[M][k],y[M-1][E],X[G])),k++):(k++,y[M].push(z));this.chart.stages=y,this.chart.rawPositions=[].concat.apply([],y),this.resizeRadius(),N=this.chart.rawPositions}return N}pointAttribs(C,d){let g=this.options,y=C&&C.isParentNode,M=g.marker;y&&g.layoutAlgorithm&&g.layoutAlgorithm.parentNodeOptions&&(M=g.layoutAlgorithm.parentNodeOptions.marker);let k=M.fillOpacity,E=v.pointAttribs.call(this,C,d);return k!==1&&(E["fill-opacity"]=k),E}positionBubble(C,d,g){let y=Math.pow,M=(0,Math.sqrt)(y(C[0]-d[0],2)+y(C[1]-d[1],2)),k=(0,Math.acos)((y(M,2)+y(g[2]+d[2],2)-y(g[2]+C[2],2))/(2*(g[2]+d[2])*M)),E=(0,Math.asin)((0,Math.abs)(C[0]-d[0])/M),z=(C[1]-d[1]<0?0:Math.PI)+k+E*((C[0]-d[0])*(C[1]-d[1])<0?1:-1);return[d[0]+(d[2]+g[2])*Math.sin(z),d[1]-(d[2]+g[2])*Math.cos(z),g[2],g[3],g[4]]}render(){let C=[];v.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(d=>{I(d.dataLabels)&&d.dataLabels.forEach(g=>{C.push(g)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(C))}resizeRadius(){let C,d,g,y,M,k=this.chart,E=k.rawPositions,z=Math.min,N=Math.max,G=k.plotLeft,X=k.plotTop,j=k.plotHeight,B=k.plotWidth;for(let q of(C=g=Number.POSITIVE_INFINITY,d=y=Number.NEGATIVE_INFINITY,E))M=q[2],C=z(C,q[0]-M),d=N(d,q[0]+M),g=z(g,q[1]-M),y=N(y,q[1]+M);let W=[d-C,y-g],Y=[(B-G)/W[0],(j-X)/W[1]],U=z.apply([],Y);if(Math.abs(U-1)>1e-10){for(let q of E)q[2]*=U;this.placeBubbles(E)}else k.diffY=j/2+X-g-(y-g)/2,k.diffX=B/2+G-C-(d-C)/2}seriesBox(){let C,d=this.chart,g=this.data,y=Math.max,M=Math.min,k=[d.plotLeft,d.plotLeft+d.plotWidth,d.plotTop,d.plotTop+d.plotHeight];return g.forEach(E=>{w(E.plotX)&&w(E.plotY)&&E.marker.radius&&(C=E.marker.radius,k[0]=M(k[0],E.plotX-C),k[1]=y(k[1],E.plotX+C),k[2]=M(k[2],E.plotY-C),k[3]=y(k[3],E.plotY+C))}),_(k.width/k.height)?k:null}setVisible(){let C=this;v.setVisible.apply(C,arguments),C.parentNodeLayout&&C.graph?C.visible?(C.graph.show(),C.parentNode.dataLabel&&C.parentNode.dataLabel.show()):(C.graph.hide(),C.parentNodeLayout.removeElementFromCollection(C.parentNode,C.parentNodeLayout.nodes),C.parentNode.dataLabel&&C.parentNode.dataLabel.hide()):C.layout&&(C.visible?C.layout.addElementsToCollection(C.points,C.layout.nodes):C.points.forEach(d=>{C.layout.removeElementFromCollection(d,C.layout.nodes)}))}translate(){let C,d,g,y=this.chart,M=this.data,k=this.index,E=this.options.useSimulation;for(let z of(this.processedXData=this.xData,this.generatePoints(),w(y.allDataPoints)||(y.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),E?g=y.allDataPoints:(g=this.placeBubbles(y.allDataPoints),this.options.draggable=!1),g))z[3]===k&&(C=M[z[4]],d=F(z[2],void 0),E||(C.plotX=z[0]-y.plotLeft+y.diffX,C.plotY=z[1]-y.plotTop+y.diffY),_(d)&&(C.marker=R(C.marker,{radius:d,width:2*d,height:2*d}),C.radius=d));E&&this.deferLayout(),O(this,"afterTranslate")}}return T.defaultOptions=P(x.defaultOptions,a),R(T.prototype,{pointClass:l,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:f,alignDataLabel:v.alignDataLabel,indexateNodes:b,onMouseDown:i.onMouseDown,onMouseMove:i.onMouseMove,redrawHalo:i.redrawHalo,searchPoint:b}),c.registerSeriesType("packedbubble",T),T}),s(t,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),s(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Series/Polygon/PolygonSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{noop:l}=e,{area:a,line:h,scatter:c}=r.seriesTypes,{extend:m,merge:p}=n;class u extends c{getGraphPath(){let v=h.prototype.getGraphPath.call(this),x=v.length+1;for(;x--;)(x===v.length||v[x][0]==="M")&&x>0&&v.splice(x,0,["Z"]);return this.areaPath=v,v}drawGraph(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)}}return u.defaultOptions=p(c.defaultOptions,i),m(u.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:l}),r.registerSeriesType("polygon",u),u}),s(t,"Core/Axis/RadialAxisDefaults.js",[],function(){return{circular:{gridLineWidth:1,labels:{align:void 0,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},radial:{gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",padding:5,x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},radialGauge:{endOnTick:!1,gridLineWidth:0,labels:{align:"center",distance:-25,x:0,y:void 0},lineWidth:1,minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickPosition:"inside",tickWidth:2,title:{rotation:0,text:""},zIndex:2}}}),s(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/RadialAxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{defaultOptions:a}=i,{composed:h,noop:c}=r,{addEvent:m,correctFloat:p,defined:u,extend:b,fireEvent:v,isObject:x,merge:f,pick:A,pushUnique:L,relativeLength:S,wrap:w}=n;return function(R){function O(){this.autoConnect=this.isCircular&&A(this.userMax,this.options.max)===void 0&&p(this.endAngleRad-this.startAngleRad)===p(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function I(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(V=>this.ticks[V]&&this.ticks[V].label).filter(V=>!!V)}}function _(){return c}function P(V,Z,K){let J=this.pane.center,tt=V.value,$,Q,et;return this.isCircular?(u(tt)?V.point&&(V.point.shapeArgs||{}).start&&(tt=this.chart.inverted?this.translate(V.point.rectPlotY,!0):V.point.x):(Q=V.chartX||0,et=V.chartY||0,tt=this.translate(Math.atan2(et-K,Q-Z)-this.startAngleRad,!0)),Q=($=this.getPosition(tt)).x,et=$.y):(u(tt)||(Q=V.chartX,et=V.chartY),u(Q)&&u(et)&&(K=J[1]+this.chart.plotTop,tt=this.translate(Math.min(Math.sqrt(Math.pow(Q-Z,2)+Math.pow(et-K,2)),J[2]/2)-J[3]/2,!0))),[tt,Q||0,et||0]}function F(V,Z,K){let J=this.pane.center,tt=this.chart,$=this.left||0,Q=this.top||0,et,it=A(Z,J[2]/2-this.offset),st;return K===void 0&&(K=this.horiz?0:this.center&&-this.center[3]/2),K&&(it+=K),this.isCircular||Z!==void 0?((st=this.chart.renderer.symbols.arc($+J[0],Q+J[1],it,it,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[$+J[0]],st.yBounds=[Q+J[1]-it]):(et=this.postTranslate(this.angleRad,it),st=[["M",this.center[0]+tt.plotLeft,this.center[1]+tt.plotTop],["L",et.x,et.y]]),st}function T(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function D(V,Z,K){let J=this.chart,tt=Tt=>{if(typeof Tt=="string"){let zt=parseInt(Tt,10);return nt.test(Tt)&&(zt=zt*et/100),zt}return Tt},$=this.center,Q=this.startAngleRad,et=$[2]/2,it=Math.min(this.offset,0),st=this.left||0,rt=this.top||0,nt=/%$/,ot=this.isCircular,at,ct,ht,lt,xt,wt,dt=A(tt(K.outerRadius),et),Ct=tt(K.innerRadius),ft=A(tt(K.thickness),10);if(this.options.gridLineInterpolation==="polygon")wt=this.getPlotLinePath({value:V}).concat(this.getPlotLinePath({value:Z,reverse:!0}));else{V=Math.max(V,this.min),Z=Math.min(Z,this.max);let Tt=this.translate(V),zt=this.translate(Z);ot||(dt=Tt||0,Ct=zt||0),K.shape!=="circle"&&ot?(at=Q+(Tt||0),ct=Q+(zt||0)):(at=-Math.PI/2,ct=1.5*Math.PI,xt=!0),dt-=it,ft-=it,wt=J.renderer.symbols.arc(st+$[0],rt+$[1],dt,dt,{start:Math.min(at,ct),end:Math.max(at,ct),innerR:A(Ct,dt-ft),open:xt,borderRadius:K.borderRadius}),ot&&(ht=(ct+at)/2,lt=st+$[0]+$[2]/2*Math.cos(ht),wt.xBounds=ht>-Math.PI/2&&ht-Math.PI&&ht<0||ht>Math.PI?-10:10)}return wt}function C(V){let Z=this.pane.center,K=this.chart,J=K.inverted,tt=V.reverse,$=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},Q=$.innerRadius||"0%",et=$.outerRadius||"100%",it=Z[0]+K.plotLeft,st=Z[1]+K.plotTop,rt=this.height,nt=V.isCrosshair,ot=Z[3]/2,at=V.value,ct,ht,lt,xt,wt,dt,Ct,ft,Tt,zt=this.getPosition(at),pe=zt.x,ee=zt.y;if(nt&&(at=(ft=this.getCrosshairPosition(V,it,st))[0],pe=ft[1],ee=ft[2]),this.isCircular)ht=Math.sqrt(Math.pow(pe-it,2)+Math.pow(ee-st,2)),lt=typeof Q=="string"?S(Q,1):Q/ht,xt=typeof et=="string"?S(et,1):et/ht,Z&&ot&&(lt<(ct=ot/ht)&&(lt=ct),xtrt)&&(at=0),this.options.gridLineInterpolation==="circle")Tt=this.getLinePath(0,at,ot);else if(Tt=[],K[J?"yAxis":"xAxis"].forEach(we=>{we.pane===this.pane&&(wt=we)}),wt){Ct=wt.tickPositions,wt.autoConnect&&(Ct=Ct.concat([Ct[0]])),tt&&(Ct=Ct.slice().reverse()),at&&(at+=ot);for(let we=0;weMath.PI&&(it-=$),st>Math.PI&&(st-=$),this.normalizedStartAngleRad=it,this.normalizedEndAngleRad=st}}function k(V){this.isRadial&&(V.align=void 0,V.preventDefault())}function E(){if(this.chart&&this.chart.labelCollectors){let V=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;V>=0&&this.chart.labelCollectors.splice(V,1)}}function z(V){let Z,K=this.chart,J=K.angular,tt=K.polar,$=this.isXAxis,Q=this.coll,et=V.userOptions.pane||0,it=this.pane=K.pane&&K.pane[et];if(Q==="colorAxis"){this.isRadial=!1;return}J?(J&&$?(this.isHidden=!0,this.createLabelCollector=_,this.getOffset=c,this.redraw=W,this.render=W,this.setScale=c,this.setCategories=c,this.setTitle=c):y(this),Z=!$):tt&&(y(this),Z=this.horiz),J||tt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&K.labelCollectors.push(this.labelCollector)):this.isRadial=!1,it&&Z&&(it.axis=this),this.isCircular=Z}function N(){this.isRadial&&this.beforeSetTickPositions()}function G(V){let Z=this.label;if(!Z)return;let K=this.axis,J=Z.getBBox(),tt=K.options.labels,$=(K.translate(this.pos)+K.startAngleRad+Math.PI/2)/Math.PI*180%360,Q=Math.round($),et=u(tt.y)?0:-(.3*J.height),it=tt.y,st,rt=20,nt=tt.align,ot="end",at=Q<0?Q+360:Q,ct=at,ht=0,lt=0;K.isRadial&&(st=K.getPosition(this.pos,K.center[2]/2+S(A(tt.distance,-25),K.center[2]/2,-K.center[2]/2)),tt.rotation==="auto"?Z.attr({rotation:$}):u(it)||(it=K.chart.renderer.fontMetrics(Z).b-J.height/2),u(nt)||(K.isCircular?(J.width>K.len*K.tickInterval/(K.max-K.min)&&(rt=0),nt=$>rt&&$<180-rt?"left":$>180+rt&&$<360-rt?"right":"center"):nt="center",Z.attr({align:nt})),nt==="auto"&&K.tickPositions.length===2&&K.isCircular&&(at>90&&at<180?at=180-at:at>270&&at<=360&&(at=540-at),ct>180&&ct<=360&&(ct=360-ct),(K.pane.options.startAngle===Q||K.pane.options.startAngle===Q+360||K.pane.options.startAngle===Q-360)&&(ot="start"),nt=Q>=-90&&Q<=90||Q>=-360&&Q<=-270||Q>=270&&Q<=360?ot==="start"?"right":"left":ot==="start"?"left":"right",ct>70&&ct<110&&(nt="center"),at<15||at>=180&&at<195?ht=.3*J.height:at>=15&&at<=35?ht=ot==="start"?0:.75*J.height:at>=195&&at<=215?ht=ot==="start"?.75*J.height:0:at>35&&at<=90?ht=ot==="start"?-(.25*J.height):J.height:at>215&&at<=270&&(ht=ot==="start"?J.height:-(.25*J.height)),ct<15?lt=ot==="start"?-(.15*J.height):.15*J.height:ct>165&&ct<=180&&(lt=ot==="start"?.15*J.height:-(.15*J.height)),Z.attr({align:nt}),Z.translate(lt,ht+et)),V.pos.x=st.x+(tt.x||0),V.pos.y=st.y+(it||0))}function X(V){this.axis.getPosition&&b(V.pos,this.axis.getPosition(this.pos))}function j({options:V}){V.xAxis&&f(!0,R.radialDefaultOptions.circular,V.xAxis),V.yAxis&&f(!0,R.radialDefaultOptions.radialGauge,V.yAxis)}function B(V,Z){let K=this.chart,J=this.center;return V=this.startAngleRad+V,{x:K.plotLeft+J[0]+Math.cos(V)*Z,y:K.plotTop+J[1]+Math.sin(V)*Z}}function W(){this.isDirty=!1}function Y(){let V,Z;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),V=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(Z=this.postTranslate(this.angleRad,V[3]/2),V[0]=Z.x-this.chart.plotLeft,V[1]=Z.y-this.chart.plotTop),this.len=this.width=this.height=(V[2]-V[3])*A(this.sector,1)/2)}function U(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function q(V){let{coll:Z}=this,{angular:K,inverted:J,polar:tt}=this.chart,$={};K?this.isXAxis||($=f(a.yAxis,R.radialDefaultOptions.radialGauge)):tt&&($=this.horiz?f(a.xAxis,R.radialDefaultOptions.circular):f(Z==="xAxis"?a.xAxis:a.yAxis,R.radialDefaultOptions.radial)),J&&Z==="yAxis"&&($.stackLabels=x(a.yAxis,!0)?a.yAxis.stackLabels:{},$.reversedStacks=!0);let Q=this.options=f($,V);Q.plotBands||(Q.plotBands=[]),v(this,"afterSetOptions")}function H(V,Z,K,J,tt,$,Q){let et,it=this.axis;return it.isRadial?["M",Z,K,"L",(et=it.getPosition(this.pos,it.center[2]/2+J)).x,et.y]:V.call(this,Z,K,J,tt,$,Q)}R.radialDefaultOptions=f(e),R.compose=function(V,Z){return L(h,"Axis.Radial")&&(m(V,"afterInit",M),m(V,"autoLabelAlign",k),m(V,"destroy",E),m(V,"init",z),m(V,"initialAxisTranslation",N),m(Z,"afterGetLabelPosition",G),m(Z,"afterGetPosition",X),m(r,"setOptions",j),w(Z.prototype,"getMarkPath",H)),V}}(l||(l={})),l}),s(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Extensions/Pane/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{animObject:h}=e,{composed:c}=i,{addEvent:m,defined:p,find:u,isNumber:b,merge:v,pick:x,pushUnique:f,relativeLength:A,splat:L,uniqueKey:S,wrap:w}=a;function R(){(this.pane||[]).forEach(j=>{j.render()})}function O(j){let B=j.args[0].xAxis,W=j.args[0].yAxis,Y=j.args[0].chart;B&&W&&(W.gridLineInterpolation==="polygon"?(B.startOnTick=!0,B.endOnTick=!0):B.gridLineInterpolation==="polygon"&&Y.inverted&&(W.startOnTick=!0,W.endOnTick=!0))}function I(){this.pane||(this.pane=[]),this.options.pane=L(this.options.pane),this.options.pane.forEach(j=>{new n(j,this)},this)}function _(j){let B=j.args.marker,W=this.chart.xAxis[0],Y=this.chart.yAxis[0],U=this.chart.inverted,q=U?Y:W,H=U?W:Y;if(this.chart.polar){j.preventDefault();let V=(B.attr?B.attr("start"):B.start)-q.startAngleRad,Z=B.attr?B.attr("r"):B.r,K=(B.attr?B.attr("end"):B.end)-q.startAngleRad,J=B.attr?B.attr("innerR"):B.innerR;j.result.x=V+q.pos,j.result.width=K-V,j.result.y=H.len+H.pos-Z,j.result.height=Z-J}}function P(j){let B=this.chart;if(B.polar&&B.hoverPane&&B.hoverPane.axis){j.preventDefault();let W=B.hoverPane.center,Y=B.mouseDownX||0,U=B.mouseDownY||0,q=j.args.chartY,H=j.args.chartX,V=2*Math.PI,Z=B.hoverPane.axis.startAngleRad,K=B.hoverPane.axis.endAngleRad,J=B.inverted?B.xAxis[0]:B.yAxis[0],tt={},$="arc";if(tt.x=W[0]+B.plotLeft,tt.y=W[1]+B.plotTop,this.zoomHor){let Q=Z>0?K-Z:Math.abs(Z)+Math.abs(K),et=Math.atan2(U-B.plotTop-W[1],Y-B.plotLeft-W[0])-Z,it=Math.atan2(q-B.plotTop-W[1],H-B.plotLeft-W[0])-Z;tt.r=W[2]/2,tt.innerR=W[3]/2,et<=0&&(et+=V),it<=0&&(it+=V),itK+(V-Q)/2&&(it=et,et=Z<=0?Z:0);let st=tt.start=Math.max(et+Z,Z),rt=tt.end=Math.min(it+Z,K);if(J.options.gridLineInterpolation==="polygon"){let nt=B.hoverPane.axis,ot=st-nt.startAngleRad+nt.pos,at=J.getPlotLinePath({value:J.max}),ct=nt.toValue(ot),ht=nt.toValue(ot+(rt-st));if(ctW[2]/2&&(it=W[2]/2),etj.max?(Y[U].isNull=!0,Y[U].plotY=NaN):Y[U].isNull=Y[U].isValid&&!Y[U].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(m(this,"afterRender",function(){let q;W.polar&&this.options.clip!==!1&&(q=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:q[0],y:q[1],r:q[2]/2,innerR:q[3]/2}):this.clipCircle=function(H,V,Z,K,J){let tt=S(),$=H.createElement("clipPath").attr({id:tt}).add(H.defs),Q=J?H.arc(V,Z,K,J,0,2*Math.PI).add($):H.circle(V,Z,K).add($);return Q.id=tt,Q.clipPath=$,Q}(W.renderer,q[0],q[1],q[2]/2,q[3]/2),this.group.clip(this.clipCircle),this.setClip=i.noop)})))}}function D(j){let B=this.chart,W=this.xAxis,Y=this.yAxis,U=W.pane&&W.pane.center,q=j.chartX-(U&&U[0]||0)-B.plotLeft,H=j.chartY-(U&&U[1]||0)-B.plotTop,V=B.inverted?{clientX:j.chartX-Y.pos,plotY:j.chartY-W.pos}:{clientX:180+-180/Math.PI*Math.atan2(q,H)};return this.searchKDTree(V)}function C(j,B,W,Y){let U=Y.tickInterval,q=Y.tickPositions,H=u(q,Z=>Z>=W),V=u([...q].reverse(),Z=>Z<=B);return p(H)||(H=q[q.length-1]),p(V)||(V=q[0],H+=U,j[0][0]="L",j.unshift(j[j.length-3])),(j=j.slice(q.indexOf(V),q.indexOf(H)+1))[0][0]="M",j}function d(j,B){return u(this.pane||[],W=>W.options.id===B)||j.call(this,B)}function g(j,B,W,Y,U,q){let H,V,Z,K=this.chart,J=x(Y.inside,!!this.options.stacking);if(K.polar){if(H=B.rectPlotX/Math.PI*180,K.inverted)this.forceDL=K.isInsidePlot(B.plotX,B.plotY),J&&B.shapeArgs?(V=B.shapeArgs,U=v(U,{x:(Z=this.yAxis.postTranslate(((V.start||0)+(V.end||0))/2-this.xAxis.startAngleRad,B.barX+B.pointWidth/2)).x-K.plotLeft,y:Z.y-K.plotTop})):B.tooltipPos&&(U=v(U,{x:B.tooltipPos[0],y:B.tooltipPos[1]})),Y.align=x(Y.align,"center"),Y.verticalAlign=x(Y.verticalAlign,"middle");else{var tt;let $,Q;(tt=Y).align===null&&($=H>20&&H<160?"left":H>200&&H<340?"right":"center",tt.align=$),tt.verticalAlign===null&&(Q=H<45||H>315?"bottom":H>135&&H<225?"top":"middle",tt.verticalAlign=Q),Y=tt}r.prototype.alignDataLabel.call(this,B,W,Y,U,q),this.isRadialBar&&B.shapeArgs&&B.shapeArgs.start===B.shapeArgs.end?W.hide():W.show()}else j.call(this,B,W,Y,U,q)}function y(){let j=this.options,B=j.stacking,W=this.chart,Y=this.xAxis,U=this.yAxis,q=U.reversed,H=U.center,V=Y.startAngleRad,Z=Y.endAngleRad-V,K=j.threshold,J=0,tt,$,Q,et,it,st=0,rt=0,nt,ot,at,ct,ht,lt,xt,wt;if(Y.isRadial)for(Q=(tt=this.points).length,et=U.translate(U.min),it=U.translate(U.max),K=j.threshold||0,W.inverted&&b(K)&&p(J=U.translate(K))&&(J<0?J=0:J>Z&&(J=Z),this.translatedThreshold=J+V);Q--;){if(lt=($=tt[Q]).barX,ot=$.x,at=$.y,$.shapeType="arc",W.inverted){$.plotY=U.translate(at),B&&U.stacking?(ht=U.stacking.stacks[(at<0?"-":"")+this.stackKey],this.visible&&ht&&ht[ot]&&!$.isNull&&(ct=ht[ot].points[this.getStackIndicator(void 0,ot,this.index).key],st=U.translate(ct[0]),rt=U.translate(ct[1]),p(st)&&(st=a.clamp(st,0,Z)))):(st=J,rt=$.plotY),st>rt&&(rt=[st,st=rt][0]),q?rt>et?rt=et:stet||rtit?rt=it:(rtit)&&(st=rt=0),U.min>U.max&&(st=rt=q?Z:0),st+=V,rt+=V,H&&($.barX=lt+=H[3]/2),xt=Math.max(lt,0),wt=Math.max(lt+$.pointWidth,0);let dt=j.borderRadius,Ct=A((typeof dt=="object"?dt.radius:dt)||0,wt-xt);$.shapeArgs={x:H[0],y:H[1],r:wt,innerR:xt,start:st,end:rt,borderRadius:Ct},$.opacity=st===rt?0:void 0,$.plotY=(p(this.translatedThreshold)&&(stH[1])}}function M(j,B){let W,Y,U=this;if(this.chart.polar){B=B||this.points;for(let H=0;H{H.polarPlotY===void 0&&U.polar.toXY(H)})}let q=j.apply(this,[].slice.call(arguments,1));return Y&&B.pop(),q}function k(j,B){let W=this.chart,Y={xAxis:[],yAxis:[]};return W.polar?W.axes.forEach(U=>{if(U.coll==="colorAxis")return;let q=U.isXAxis,H=U.center,V=B.chartX-H[0]-W.plotLeft,Z=B.chartY-H[1]-W.plotTop;Y[q?"xAxis":"yAxis"].push({axis:U,value:U.translate(q?Math.PI-Math.atan2(V,Z):Math.sqrt(Math.pow(V,2)+Math.pow(Z,2)),!0)})}):Y=j.call(this,B),Y}function E(j,B){this.chart.polar||j.call(this,B)}function z(j,B){let W=this,Y=this.chart,U=this.group,q=this.markerGroup,H=this.xAxis&&this.xAxis.center,V=Y.plotLeft,Z=Y.plotTop,K=this.options.animation,J,tt,$,Q,et,it;Y.polar?W.isRadialBar?B||(W.startAngleRad=x(W.translatedThreshold,W.xAxis.startAngleRad),i.seriesTypes.pie.prototype.animate.call(W,B)):(K=h(K),W.is("column")?B||(tt=H[3]/2,W.points.forEach(st=>{$=st.graphic,et=(Q=st.shapeArgs)&&Q.r,it=Q&&Q.innerR,$&&Q&&($.attr({r:tt,innerR:tt}),$.animate({r:et,innerR:it},W.options.animation))})):B?(J={translateX:H[0]+V,translateY:H[1]+Z,scaleX:.001,scaleY:.001},U.attr(J),q&&q.attr(J)):(J={translateX:V,translateY:Z,scaleX:1,scaleY:1},U.animate(J,K),q&&q.animate(J,K))):j.call(this,B)}function N(j,B,W,Y){let U,q;if(this.chart.polar)if(Y){let H=(q=function Z(K,J,tt,$){let Q,et,it,st,rt,nt,ot=$?1:0,at=(Q=J>=0&&J<=K.length-1?J:J<0?K.length-1+J:0)-1<0?K.length-(1+ot):Q-1,ct=Q+1>K.length-1?ot:Q+1,ht=K[at],lt=K[ct],xt=ht.plotX,wt=ht.plotY,dt=lt.plotX,Ct=lt.plotY,ft=K[Q].plotX,Tt=K[Q].plotY;et=(1.5*ft+xt)/2.5,it=(1.5*Tt+wt)/2.5,st=(1.5*ft+dt)/2.5,rt=(1.5*Tt+Ct)/2.5;let zt=Math.sqrt(Math.pow(et-ft,2)+Math.pow(it-Tt,2)),pe=Math.sqrt(Math.pow(st-ft,2)+Math.pow(rt-Tt,2)),ee=Math.atan2(it-Tt,et-ft);nt=Math.PI/2+(ee+Math.atan2(rt-Tt,st-ft))/2,Math.abs(ee-nt)>Math.PI/2&&(nt-=Math.PI),et=ft+Math.cos(nt)*zt,it=Tt+Math.sin(nt)*zt;let we={rightContX:st=ft+Math.cos(Math.PI+nt)*pe,rightContY:rt=Tt+Math.sin(Math.PI+nt)*pe,leftContX:et,leftContY:it,plotX:ft,plotY:Tt};return tt&&(we.prevPointCont=Z(K,at,!1,$)),we}(B,Y,!0,this.connectEnds)).prevPointCont&&q.prevPointCont.rightContX,V=q.prevPointCont&&q.prevPointCont.rightContY;U=["C",b(H)?H:q.plotX,b(V)?V:q.plotY,b(q.leftContX)?q.leftContX:q.plotX,b(q.leftContY)?q.leftContY:q.plotY,q.plotX,q.plotY]}else U=["M",W.plotX,W.plotY];else U=j.call(this,B,W,Y);return U}function G(j,B,W=this.plotY){if(!this.destroyed){let{plotX:Y,series:U}=this,{chart:q}=U;return q.polar&&b(Y)&&b(W)?[Y+(B?q.plotLeft:0),W+(B?q.plotTop:0)]:j.call(this,B,W)}}class X{static compose(B,W,Y,U,q,H,V,Z,K,J){if(n.compose(W,Y),l.compose(B,q),f(c,"Polar")){let tt=W.prototype,$=H.prototype,Q=Y.prototype,et=U.prototype;if(m(W,"afterDrawChartBox",R),m(W,"getAxes",I),m(W,"init",O),w(tt,"get",d),w(Q,"getCoordinates",k),w(Q,"pinch",E),m(Y,"getSelectionMarkerAttrs",P),m(Y,"getSelectionBox",_),m(U,"afterInit",F),m(U,"afterTranslate",T,{order:2}),m(U,"afterColumnTranslate",y,{order:4}),w(et,"animate",z),w($,"pos",G),Z){let it=Z.prototype;w(it,"alignDataLabel",g),w(it,"animate",z)}if(K&&w(K.prototype,"getGraphPath",M),J){let it=J.prototype;w(it,"getPointSpline",N),V&&(V.prototype.getPointSpline=it.getPointSpline)}}}constructor(B){this.series=B}arc(B,W,Y,U){let q=this.series,H=q.xAxis.center,V=q.yAxis.len,Z=H[3]/2,K=V-W+Z,J=V-x(B,V)+Z;return q.yAxis.reversed&&(K<0&&(K=Z),J<0&&(J=Z)),{x:H[0],y:H[1],r:K,innerR:J,start:Y,end:U}}toXY(B){let W=this.series,Y=W.chart,U=W.xAxis,q=W.yAxis,H=B.plotX,V=Y.inverted,Z=B.y,K=B.plotY,J=V?H:q.len-K,tt;if(V&&W&&!W.isRadialBar&&(B.plotY=K=b(Z)?q.translate(Z):0),B.rectPlotX=H,B.rectPlotY=K,q.center&&(J+=q.center[3]/2),b(K)){let $=V?q.postTranslate(K,J):U.postTranslate(H,J);B.plotX=B.polarPlotX=$.x-Y.plotLeft,B.plotY=B.polarPlotY=$.y-Y.plotTop}W.kdByAngle?((tt=(H/Math.PI*180+U.pane.options.startAngle)%360)<0&&(tt+=360),B.clientX=tt):B.clientX=B.plotX}}return X}),s(t,"Core/Axis/WaterfallAxis.js",[t["Core/Globals.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{composed:l}=e,{addEvent:a,objectEach:h,pushUnique:c}=r;return function(m){function p(){let f=this.waterfall.stacks;f&&(f.changed=!1,delete f.alreadyChanged)}function u(){let f=this.options.stackLabels;f&&f.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function b(){this.waterfall||(this.waterfall=new x(this))}function v(){let f=this.axes;for(let A of this.series)if(A.options.stacking){for(let L of f)L.isXAxis||(L.waterfall.stacks.changed=!0);break}}m.compose=function(f,A){c(l,"Axis.Waterfall")&&(a(f,"init",b),a(f,"afterBuildStacks",p),a(f,"afterRender",u),a(A,"beforeRedraw",v))};class x{constructor(A){this.axis=A,this.stacks={changed:!1}}renderStackTotals(){let A=this.axis,L=A.waterfall.stacks,S=A.stacking&&A.stacking.stackTotalGroup,w=new i(A,A.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=w,S&&h(L,R=>{h(R,(O,I)=>{w.total=O.stackTotal,w.x=+I,O.label&&(w.label=O.label),i.prototype.render.call(w,S),O.label=w.label,delete w.label})}),w.total=null}}m.Composition=x}(n||(n={})),n}),s(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(e,i,r){let{isNumber:n}=r;class l extends e.prototype.pointClass{getClassName(){let h=i.prototype.getClassName.call(this);return this.isSum?h+=" highcharts-sum":this.isIntermediateSum&&(h+=" highcharts-intermediate-sum"),h}isValid(){return n(this.y)||this.isSum||!!this.isIntermediateSum}}return l}),s(t,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),s(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"],t["Series/Waterfall/WaterfallSeriesDefaults.js"]],function(e,i,r,n,l){let{column:a,line:h}=e.seriesTypes,{addEvent:c,arrayMax:m,arrayMin:p,correctFloat:u,crisp:b,extend:v,isNumber:x,merge:f,objectEach:A,pick:L}=i;function S(R,O){return Object.hasOwnProperty.call(R,O)}class w extends a{generatePoints(){a.prototype.generatePoints.apply(this);for(let O=0,I=this.points.length;O0?_:void 0);let P=a.prototype.pointAttribs.call(this,O,I);return delete P.dashstyle,P}getGraphPath(){return[["M",0,0]]}getCrispPath(){let O=this.data.filter(d=>x(d.y)),I=this.yAxis,_=O.length,P=this.graph?.strokeWidth()||0,F=this.xAxis.reversed,T=this.yAxis.reversed,D=this.options.stacking,C=[];for(let d=1;d<_;d++){if(!(this.options.connectNulls||x(this.data[O[d].index-1].y)))continue;let g=O[d].box,y=O[d-1],M=y.y||0,k=O[d-1].box;if(!g||!k)continue;let E=I.waterfall.stacks[this.stackKey],z=M>0?-k.height:0;if(E&&k&&g){let N,G=E[d-1];if(D){let X=G.connectorThreshold;N=b(I.translate(X,!1,!0,!1,!0)+(T?z:0),P)}else N=b(k.y+(y.minPointLengthOffset||0),P);C.push(["M",(k.x||0)+(F?0:k.width||0),N],["L",(g.x||0)+(F&&g.width||0),N])}if(k&&C.length&&(!D&&M<0&&!T||M>0&&T)){let N=C[C.length-2];N&&typeof N[2]=="number"&&(N[2]+=k.height||0);let G=C[C.length-1];G&&typeof G[2]=="number"&&(G[2]+=k.height||0)}}return C}drawGraph(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(O){let I=this.options,_=O.waterfall?.stacks,P=I.threshold||0,F=this.stackKey,T=this.xData,D=T.length,C=P,d=C,g,y=0,M=0,k=0,E,z,N,G,X,j,B,W,Y=(U,q,H,V)=>{if(g){if(E)for(;HB.indexOf(F)&&(W=!0),_[F]||(_[F]={});let U=_[F];if(U)for(let q=0;q=0?g.posTotal+=X:g.negTotal+=X,G=I.data[q],z=g.absolutePos=g.posTotal,N=g.absoluteNeg=g.negTotal,g.stackTotal=z+N,E=g.stackState.length,G&&G.isIntermediateSum?(Y(k,M,0,k),k=M,M=P,C^=d,d^=C,C^=d):G&&G.isSum?(Y(P,y,E,0),C=P):(Y(C,X,0,y),G&&(y+=X,M+=X)),g.stateIndex++,g.threshold=C,C+=g.stackTotal;_.changed=!1,_.alreadyChanged||(_.alreadyChanged=[]),_.alreadyChanged.push(F)}}getExtremes(){let O,I,_,P=this.options.stacking;return P?(O=this.yAxis.waterfall.stacks,I=this.stackedYNeg=[],_=this.stackedYPos=[],P==="overlap"?A(O[this.stackKey],function(F){I.push(p(F.stackState)),_.push(m(F.stackState))}):A(O[this.stackKey],function(F){I.push(F.negTotal+F.threshold),_.push(F.posTotal+F.threshold)}),{dataMin:p(I),dataMax:m(_)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return w.defaultOptions=f(a.defaultOptions,l),w.compose=r.compose,v(w.prototype,{pointValKey:"y",showLine:!0,pointClass:n}),c(w,"afterColumnTranslate",function(){let{options:R,points:O,yAxis:I}=this,_=L(R.minPointLength,5),P=_/2,F=R.threshold||0,T=R.stacking,D=I.waterfall.stacks[this.stackKey],C=F,d=F,g,y,M,k;for(let E=0;E=0?y:y-j,S(Y,"absolutePos")&&delete Y.absolutePos,S(Y,"absoluteNeg")&&delete Y.absoluteNeg):(j>=0?(y=Y.threshold+Y.posTotal,Y.posTotal-=j,g=y):(y=Y.threshold+Y.negTotal,Y.negTotal-=j,g=y-j),!Y.posTotal&&x(Y.absolutePos)&&S(Y,"absolutePos")&&(Y.posTotal=Y.absolutePos,delete Y.absolutePos),!Y.negTotal&&x(Y.absoluteNeg)&&S(Y,"absoluteNeg")&&(Y.negTotal=Y.absoluteNeg,delete Y.absoluteNeg)),z.isSum||(Y.connectorThreshold=Y.threshold+Y.stackTotal),I.reversed?(M=j>=0?g-j:g+j,k=g):(M=g,k=g-j),z.below=M<=F,G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-I.translate(k,!1,!0,!1,!0));let U=I.waterfall.dummyStackItem;U&&(U.x=E,U.label=D[E].label,U.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[E],this.stackedYPos[E],void 0,this.xAxis))}}else g=Math.max(d,d+j)+X[0],G.y=I.translate(g,!1,!0,!1,!0),z.isSum?(G.y=I.translate(X[1],!1,!0,!1,!0),G.height=Math.min(I.translate(X[0],!1,!0,!1,!0),I.len)-G.y,z.below=X[1]<=F):z.isIntermediateSum?(j>=0?(M=X[1]+C,k=C):(M=C,k=X[1]+C),I.reversed&&(M^=k,k^=M,M^=k),G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-Math.min(I.translate(k,!1,!0,!1,!0),I.len)),C+=X[1],z.below=M<=F):(G.height=N>0?I.translate(d,!1,!0,!1,!0)-G.y:I.translate(d,!1,!0,!1,!0)-I.translate(d-N,!1,!0,!1,!0),d+=N,z.below=d{"use strict";(function(o){typeof Gn=="object"&&Gn.exports?(o.default=o,Gn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Extensions/Breadcrumbs/BreadcrumbsDefaults.js",[],function(){return{lang:{mainBreadcrumb:"Main"},options:{buttonTheme:{fill:"none",height:18,padding:2,"stroke-width":0,zIndex:7,states:{select:{fill:"none"}},style:{color:"#334eff"}},buttonSpacing:5,floating:!1,format:void 0,relativeTo:"plotBox",rtl:!1,position:{align:"left",verticalAlign:"top",x:0,y:void 0},separator:{text:"/",style:{color:"#666666",fontSize:"0.8em"}},showFullPath:!0,style:{},useHTML:!1,zIndex:7}}}),s(t,"Extensions/Breadcrumbs/Breadcrumbs.js",[t["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{format:l}=i,{composed:a}=r,{addEvent:h,defined:c,extend:m,fireEvent:p,isString:u,merge:b,objectEach:v,pick:x,pushUnique:f}=n;function A(){if(this.breadcrumbs){let I=this.resetZoomButton&&this.resetZoomButton.getBBox(),_=this.breadcrumbs.options;I&&_.position.align==="right"&&_.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-I.width-_.buttonSpacing)}}function L(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function S(){let I=this.breadcrumbs;if(I&&!I.options.floating&&I.level){let _=I.options,P=_.buttonTheme,F=(P.height||0)+2*(P.padding||0)+_.buttonSpacing,T=_.position.verticalAlign;T==="bottom"?(this.marginBottom=(this.marginBottom||0)+F,I.yOffset=F):T!=="middle"?(this.plotTop+=F,I.yOffset=-F):I.yOffset=void 0}}function w(){this.breadcrumbs&&this.breadcrumbs.redraw()}function R(I){I.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class O{static compose(_,P){f(a,"Breadcrumbs")&&(h(_,"destroy",L),h(_,"afterShowResetZoom",A),h(_,"getMargins",S),h(_,"redraw",w),h(_,"selection",R),m(P.lang,e.lang))}constructor(_,P){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let F=b(_.options.drilldown&&_.options.drilldown.drillUpButton,O.defaultOptions,_.options.navigation&&_.options.navigation.breadcrumbs,P);this.chart=_,this.options=F||{}}updateProperties(_){this.setList(_),this.setLevel(),this.isDirty=!0}setList(_){this.list=_}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(_){let P=this.chart,F=this.options,T=P.options.lang,D=x(F.format,F.showFullPath?"{level.name}":"\u2190 {level.name}"),C=T&&x(T.drillUpText,T.mainBreadcrumb),d=F.formatter&&F.formatter(_)||l(D,{level:_.levelOptions},P)||"";return(u(d)&&!d.length||d==="\u2190 ")&&c(C)&&(d=F.showFullPath?C:"\u2190 "+C),d}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let _=this.chart,P=this.options;!this.group&&P&&(this.group=_.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:P.zIndex}).add()),P.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let _=this.chart,P=this.list,F=this.options.buttonSpacing;this.destroyListElements();let T=this.group?this.group.getBBox().width:F,D=P[P.length-2];!_.drillUpButton&&this.level>0?_.drillUpButton=this.renderButton(D,T,F):_.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(_){if(this.group){let P=this.options,F=P.buttonTheme,T=P.position,D=P.relativeTo==="chart"||P.relativeTo==="spacingBox"?void 0:"plotBox",C=this.group.getBBox(),d=2*(F.padding||0)+P.buttonSpacing;T.width=C.width+d,T.height=C.height+d;let g=b(T);_&&(g.x+=_),this.options.rtl&&(g.x+=T.width),g.y=x(g.y,this.yOffset,0),this.group.align(g,!0,D)}}renderButton(_,P,F){let T=this,D=this.chart,C=T.options,d=b(C.buttonTheme),g=D.renderer.button(T.getButtonText(_),P,F,function(y){let M,k=C.events&&C.events.click;k&&(M=k.call(T,y,_)),M!==!1&&(C.showFullPath?y.newLevel=_.level:y.newLevel=T.level-1,p(T,"up",y))},d).addClass("highcharts-breadcrumbs-button").add(T.group);return D.styledMode||g.attr(C.style),g}renderSeparator(_,P){let F=this.chart,T=this.options.separator,D=F.renderer.label(T.text,_,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return F.styledMode||D.css(T.style),D}update(_){b(!0,this.options,_),this.destroy(),this.isDirty=!0}updateSingleButton(){let _=this.chart,P=this.list[this.level-1];_.drillUpButton&&_.drillUpButton.attr({text:this.getButtonText(P)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(_){let P=this.elementList;v(P,(F,T)=>{(_||!P[T].updated)&&((F=P[T]).button&&F.button.destroy(),F.separator&&F.separator.destroy(),delete F.button,delete F.separator,delete P[T])}),_&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){v(this.elementList,_=>{_.updated=!1})}updateListElements(){let _=this.elementList,P=this.options.buttonSpacing,F=this.list,T=this.options.rtl,D=T?-1:1,C=function(k,E){return D*k.getBBox().width+D*E},d=function(k,E,z){k.translate(E-k.getBBox().width,z)},g=this.group?C(this.group,P):P,y,M;for(let k=0,E=F.length;k{e.graphic=c=c&&c.destroy(),typeof n=="function"&&n()};Object.keys(r).length?c.animate(r,void 0,()=>m()):m()}}}}),s(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{pie:{prototype:{pointClass:n}},scatter:{prototype:{pointClass:l}}}=i.seriesTypes,{extend:a,isNumber:h,pick:c}=r;class m extends l{constructor(){super(...arguments),this.shapeType="rect"}draw(u){e.draw(this,u)}getClassName(){let u=this.series,b=u.options,v=super.getClassName();return this.node.level<=u.nodeMap[u.rootNode].level?v+=" highcharts-above-level":this.node.isLeaf||c(b.interactByLeaf,!b.allowTraversingTree)?this.node.isLeaf||(v+=" highcharts-internal-node"):v+=" highcharts-internal-node-interactive",v}isValid(){return!!(this.id||h(this.value))}setState(u){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:u==="hover"?1:0})}shouldDraw(){return h(this.plotY)&&this.y!==null}}return a(m.prototype,{setVisible:n.prototype.setVisible}),m}),s(t,"Series/Treemap/TreemapSeriesDefaults.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{isString:r}=i;return{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){let n=this&&this.point?this.point:{};return r(n.name)?n.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:e.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle"}}),s(t,"Series/Treemap/TreemapUtilities.js",[],function(){var e;return(e||(e={})).recursive=function i(r,n,l){let a=n.call(l||this,r);a!==!1&&i(a,n,l)},e}),s(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){let{extend:r,isArray:n,isNumber:l,isObject:a,merge:h,pick:c,relativeLength:m}=i;return{getColor:function(p,u){let b,v,x,f,A,L,S=u.index,w=u.mapOptionsToLevel,R=u.parentColor,O=u.parentColorIndex,I=u.series,_=u.colors,P=u.siblings,F=I.points,T=I.chart.options.chart;return p&&(b=F[p.i],v=w[p.level]||{},b&&v.colorByPoint&&(f=b.index%(_?_.length:T.colorCount),x=_&&_[f]),I.chart.styledMode||(A=c(b&&b.options.color,v&&v.color,x,R&&(D=>{let C=v&&v.colorVariation;return C&&C.key==="brightness"&&S&&P?e.parse(D).brighten(C.to*(S/P)).get():D})(R),I.color)),L=c(b&&b.options.colorIndex,v&&v.colorIndex,f,O,u.colorIndex)),{color:A,colorIndex:L}},getLevelOptions:function(p){let u,b,v,x,f,A,L={};if(a(p))for(x=l(p.from)?p.from:1,A=p.levels,b={},u=a(p.defaults)?p.defaults:{},n(A)&&(b=A.reduce((S,w)=>{let R,O,I;return a(w)&&l(w.level)&&(O=c((I=h({},w)).levelIsConstant,u.levelIsConstant),delete I.levelIsConstant,delete I.level,a(S[R=w.level+(O?0:x-1)])?h(!0,S[R],I):S[R]=I),S},{})),f=l(p.to)?p.to:1,v=0;v<=f;v++)L[v]=h({},u,a(b[v])?b[v]:{});return L},getNodeWidth:function(p,u){let{chart:b,options:v}=p,{nodeDistance:x=0,nodeWidth:f=0}=v,{plotSizeX:A=1}=b;if(f==="auto"){if(typeof x=="string"&&/%$/.test(x))return A/(u+parseFloat(x)/100*(u-1));let L=Number(x);return(A+L)/(u||1)-L}return m(f,A)},setTreeValues:function p(u,b){let v=b.before,x=b.idRoot,f=b.mapIdToNode[x],A=b.levelIsConstant!==!1,L=b.points[u.i],S=L&&L.options||{},w=[],R=0;u.levelDynamic=u.level-(A?0:f.level),u.name=c(L&&L.name,""),u.visible=x===u.id||b.visible===!0,typeof v=="function"&&(u=v(u,b)),u.children.forEach((I,_)=>{let P=r({},b);r(P,{index:_,siblings:u.children.length,visible:u.visible}),I=p(I,P),w.push(I),I.visible&&(R+=I.val)});let O=c(S.value,R);return u.visible=O>=0&&(R>0||u.visible),u.children=w,u.childrenTotal=R,u.isLeaf=u.visible&&!R,u.val=O,u},updateRootId:function(p){let u,b;return a(p)&&(b=a(p.options)?p.options:{},u=c(p.rootNode,b.rootId,""),a(p.userOptions)&&(p.userOptions.rootId=u),p.rootNode=u),u}}}),s(t,"Series/Treemap/TreemapSeries.js",[t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Treemap/TreemapAlgorithmGroup.js"],t["Series/Treemap/TreemapNode.js"],t["Series/Treemap/TreemapPoint.js"],t["Series/Treemap/TreemapSeriesDefaults.js"],t["Series/Treemap/TreemapUtilities.js"],t["Series/TreeUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,m,p,u,b){let{parse:v}=i,{composed:x,noop:f}=n,{column:A,scatter:L}=l.seriesTypes,{getColor:S,getLevelOptions:w,updateRootId:R}=u,{addEvent:O,correctFloat:I,crisp:_,defined:P,error:F,extend:T,fireEvent:D,isArray:C,isObject:d,isString:g,merge:y,pick:M,pushUnique:k,stableSort:E}=b,z=!1;function N(){let X,j=this.xAxis,B=this.yAxis;j&&B&&(this.is("treemap")?(X={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},T(B.options,X),T(j.options,X),z=!0):z&&(B.setOptions(B.userOptions),j.setOptions(j.userOptions),z=!1))}class G extends L{static compose(j){k(x,"TreemapSeries")&&O(j,"afterBindAxes",N)}algorithmCalcPoints(j,B,W,Y){let U=W.plot,q=W.elArr.length-1,H,V,Z,K,J=W.lW,tt=W.lH,$,Q=0;for(let et of(B?(J=W.nW,tt=W.nH):$=W.elArr[q],W.elArr))(B||QV.lP.lR&&this.algorithmCalcPoints(j,!1,V,Y,U),K===H&&this.algorithmCalcPoints(j,!0,V,Y,U),++K;return Y}alignDataLabel(j,B,W){let Y=W.style;Y&&!P(Y.textOverflow)&&B.text&&B.getBBox().width>(B.text.textWidth||0)&&B.css({textOverflow:"ellipsis",width:Y.width+="px"}),A.prototype.alignDataLabel.apply(this,arguments),j.dataLabel&&j.dataLabel.attr({zIndex:(j.node.zIndex||0)+1})}calculateChildrenAreas(j,B){let W=this.options,Y=this.mapOptionsToLevel[j.level+1],U=M(this[Y&&Y.layoutAlgorithm]&&Y.layoutAlgorithm,W.layoutAlgorithm),q=W.alternateStartingDirection,H=j.children.filter(K=>!K.ignore),V=[];Y&&Y.layoutStartingDirection&&(B.direction=Y.layoutStartingDirection==="vertical"?0:1),V=this[U](B,H);let Z=-1;for(let K of H){let J=V[++Z];K.values=y(J,{val:K.childrenTotal,direction:q?1-B.direction:B.direction}),K.pointValues=y(J,{x:J.x/this.axisRatio,y:100-J.y-J.height,width:J.width/this.axisRatio}),K.children.length&&this.calculateChildrenAreas(K,K.values)}}createList(j){let B=this.chart,W=B.breadcrumbs,Y=[];if(W){let U=0;Y.push({level:U,levelOptions:B.series[0]});let q=j.target.nodeMap[j.newRootId],H=[];for(;q.parent||q.parent==="";)H.push(q),q=j.target.nodeMap[q.parent];for(let V of H.reverse())Y.push({level:++U,levelOptions:V});Y.length<=1&&(Y.length=0)}return Y}drawDataLabels(){let j,B,W=this.mapOptionsToLevel;for(let Y of this.points.filter(function(U){return U.node.visible}))B=W[Y.node.level],j={style:{}},Y.node.isLeaf||(j.enabled=!1),B&&B.dataLabels&&(j=y(j,B.dataLabels),this.hasDataLabels=()=>!0),Y.shapeArgs&&(j.style.width=Y.shapeArgs.width,Y.dataLabel&&Y.dataLabel.css({width:Y.shapeArgs.width+"px"})),Y.dlOptions=y(j,Y.options.dataLabels);super.drawDataLabels()}drawPoints(j=this.points){let B=this.chart,W=B.renderer,Y=B.styledMode,U=this.options,q=Y?{}:U.shadow,H=U.borderRadius,V=B.pointCount{let H=q.userOptions;P(H.allowDrillToNode)&&!P(H.allowTraversingTree)&&(H.allowTraversingTree=H.allowDrillToNode,delete H.allowDrillToNode),P(H.drillUpButton)&&!P(H.traverseUpButton)&&(H.traverseUpButton=H.drillUpButton,delete H.drillUpButton)});super.init(j,B),delete W.opacity,W.eventsToUnbind.push(U),W.options.allowTraversingTree&&(W.eventsToUnbind.push(O(W,"click",W.onClickDrillToNode)),W.eventsToUnbind.push(O(W,"setRootNode",function(q){let H=W.chart;H.breadcrumbs&&H.breadcrumbs.updateProperties(W.createList(q))})),W.eventsToUnbind.push(O(W,"update",function(q,H){let V=this.chart.breadcrumbs;V&&q.options.breadcrumbs&&V.update(q.options.breadcrumbs)})),W.eventsToUnbind.push(O(W,"destroy",function(q){let H=this.chart;H.breadcrumbs&&!q.keepEventsForUpdate&&(H.breadcrumbs.destroy(),H.breadcrumbs=void 0)}))),j.breadcrumbs||(j.breadcrumbs=new e(j,Y)),W.eventsToUnbind.push(O(j.breadcrumbs,"up",function(q){let H=this.level-q.newLevel;for(let V=0;VU?0:j.pointAttribs(H)["stroke-width"]||0;for(let H of B){let{pointValues:V,visible:Z}=H.node;if(V&&Z){let{height:K,width:J,x:tt,y:$}=V,Q=q(H),et=_(W.toPixels(tt,!0),Q,!0),it=_(W.toPixels(tt+J,!0),Q,!0),st=_(Y.toPixels($,!0),Q,!0),rt=_(Y.toPixels($+K,!0),Q,!0),nt={x:Math.min(et,it),y:Math.min(st,rt),width:Math.abs(it-et),height:Math.abs(rt-st)};H.plotX=nt.x+nt.width/2,H.plotY=nt.y+nt.height/2,H.shapeArgs=nt}else delete H.plotX,delete H.plotY}}setRootNode(j,B,W){D(this,"setRootNode",T({newRootId:j,previousRootId:this.rootNode,redraw:M(B,!0),series:this},W),function(Y){let U=Y.series;U.idPreviousRoot=Y.previousRootId,U.rootNode=Y.newRootId,U.isDirty=!0,Y.redraw&&U.chart.redraw()})}setState(j){this.options.inactiveOtherPoints=!0,super.setState(j,!1),this.options.inactiveOtherPoints=!1}setTreeValues(j){let B=this.options,W=this.rootNode,Y=this.nodeMap[W],U=typeof B.levelIsConstant!="boolean"||B.levelIsConstant,q=[],H=this.points[j.i],V=0;for(let K of j.children)K=this.setTreeValues(K),q.push(K),K.ignore||(V+=K.val);E(q,(K,J)=>(K.sortIndex||0)-(J.sortIndex||0));let Z=M(H&&H.options.value,V);return H&&(H.value=Z),T(j,{children:q,childrenTotal:V,ignore:!(M(H&&H.visible,!0)&&Z>0),isLeaf:j.visible&&!V,levelDynamic:j.level-(U?0:Y.level),name:M(H&&H.name,""),sortIndex:M(H&&H.sortIndex,-Z),val:Z}),j}sliceAndDice(j,B){return this.algorithmFill(!0,j,B)}squarified(j,B){return this.algorithmLowAspectRatio(!0,j,B)}strip(j,B){return this.algorithmLowAspectRatio(!1,j,B)}stripes(j,B){return this.algorithmFill(!1,j,B)}translate(){let j=this,B=j.options,W=R(j),Y,U,q,H;super.translate();let V=j.tree=j.getTree();Y=j.nodeMap[W],W===""||Y&&Y.children.length||(j.setRootNode("",!1),W=j.rootNode,Y=j.nodeMap[W]),j.mapOptionsToLevel=w({from:Y.level+1,levels:B.levels,to:V.height,defaults:{levelIsConstant:j.options.levelIsConstant,colorByPoint:B.colorByPoint}}),p.recursive(j.nodeMap[j.rootNode],Z=>{let K=Z.parent,J=!1;return Z.visible=!0,(K||K==="")&&(J=j.nodeMap[K]),J}),p.recursive(j.nodeMap[j.rootNode].children,Z=>{let K=!1;for(let J of Z)J.visible=!0,J.children.length&&(K=(K||[]).concat(J.children));return K}),j.setTreeValues(V),j.axisRatio=j.xAxis.len/j.yAxis.len,j.nodeMap[""].pointValues=U={x:0,y:0,width:100,height:100},j.nodeMap[""].values=q=y(U,{width:U.width*j.axisRatio,direction:B.layoutStartingDirection==="vertical"?0:1,val:V.val}),j.calculateChildrenAreas(V,q),j.colorAxis||B.colorByPoint||j.setColorRecursive(j.tree),B.allowTraversingTree&&(H=Y.pointValues,j.xAxis.setExtremes(H.x,H.x+H.width,!1),j.yAxis.setExtremes(H.y,H.y+H.height,!1),j.xAxis.setScale(),j.yAxis.setScale()),j.setPointValues()}}return G.defaultOptions=y(L.defaultOptions,m),T(G.prototype,{buildKDTree:f,colorAttribs:r.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:f,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:c,NodeClass:h,trackerGroups:["group","dataLabelsGroup"],utils:p}),r.compose(G),l.registerSeriesType("treemap",G),G}),s(t,"masters/modules/treemap.src.js",[t["Core/Globals.js"],t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Series/Treemap/TreemapSeries.js"]],function(e,i,r){return e.Breadcrumbs=e.Breadcrumbs||i,e.Breadcrumbs.compose(e.Chart,e.defaultOptions),r.compose(e.Series),e})})});var Eu=qe((AT,Xn)=>{"use strict";(function(o){typeof Xn=="object"&&Xn.exports?(o.default=o,Xn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:m}=i;return function(p){let u;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=m(I.colorAxis),I.colorAxis.map(_=>new u(this,_)))}function v(I){let _=this.chart.colorAxis||[],P=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],T,D;for(_.forEach(function(C){(T=C.options)&&T.showInLegend&&(T.dataClasses&&T.visible?F=F.concat(C.getDataClassLegendSymbols()):T.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||T.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(g){P(g)}):P(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function f(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function A(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,P=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][P]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,P=this.options.nullColor,F=this.colorAxis,T=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(T),d=D.options.color||(D.isNull||D.value===null?P:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}p.compose=function(I,_,P,F,T){let D=_.prototype,C=P.prototype,d=T.prototype;D.collectionsWithUpdate.includes("colorAxis")||(u=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(g){let y=g.prototype.createAxis;g.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let E=new u(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),E}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",f),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(T,"afterTranslate",A,{order:1}),l(T,"bindAxes",L))},p.pointSetVisible=S}(r||(r={})),r}),s(t,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,m=this.legendItem=this.legendItem||{},p=this.options,u=h.dataClasses||[],b,v,x=c.options.chart.colorCount,f=0,A;this.dataClasses=v=[],m.labels=[];for(let L=0,S=u.length;L=p)&&(u===void 0||h<=u)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(m=this.normalizedValue(h),x=A.length;x--&&!(m>A[x][0]););p=A[x]||A[x+1],m=1-((u=A[x+1]||p)[0]-m)/(u[0]-p[0]||1),b=p.color.tweenTo(u.color,m)}return b},r}),s(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:m}=l,{series:p}=h,{defined:u,extend:b,fireEvent:v,isArray:x,isNumber:f,merge:A,pick:L,relativeLength:S}=c;m.colorAxis=A(m.xAxis,r);class w extends e{static compose(O,I,_,P){i.compose(w,O,I,_,P)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},P=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||P?2:1,this.reversed=I.reversed||!P,this.opposite=!P,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=P,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=A(m.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:P}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=P=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-P,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:P)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(P){P instanceof w&&P.drawLegendSymbol(_,P)}),_.render(),this.chart.getMargins(!0),this.chart.series.some(P=>P.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,P=I?0:1,F=O?[_,0,P,0]:[0,P,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},P=O.padding,F=O.options,T=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:g}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:g}),_.labelWidth=d+P+(C?D:L(T.x,T.distance)+(this.maxLabelLength||0)),_.labelHeight=g+P+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,P,F,T,D,C=O.length,d,g;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,T=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],P=F.indexOf(_),d=D.yData,P>=0&&d)for(g=0;gD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=T,this.cross&&!this.cross.addedToColorAxis&&P.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(P.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(O){let I=this.left,_=O.translatedValue,P=this.top;return f(_)?this.horiz?[["M",_-4,P-6],["L",_+4,P-6],["L",_,P],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(P=>{P.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,P=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,T=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((g,y)=>(g.push(...y.points.filter(M=>M.dataClass===d)),g),[]);return P.length||I.dataClasses.forEach((d,g)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,E=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,T)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,T)+D),P.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(g))N.setState(z)},setVisible:function(){this.visible=E=I.visible=!E;let z=[];for(let N of C(g))N.setVisible(E),N.hiddenInDataClass=!E,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,E),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),P}getSize(){let{chart:O,horiz:I}=this,{height:_,width:P}=this.options,{legend:F}=O.options;return{width:L(u(P)?S(P,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(u(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),s(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,i){return e.ColorAxis=e.ColorAxis||i,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),s(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function m(p){let u=this.series,b=u.chart.renderer;this.moveToTopOnHover&&this.graphic&&(u.stateMarkerGraphic||(u.stateMarkerGraphic=new i(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),p?.state==="hover"?(this.graphic.attr({id:this.id}),u.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):u.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(p){let u={};return h(p.color)&&(!p.state||p.state==="normal")&&(u[this.colorProp||"fill"]=p.color),u},pointAttribs:l.pointAttribs},c.compose=function(p){return a(p.prototype.pointClass,"afterSetState",m),p}}(n||(n={})),n}),s(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=i;class c extends r{applyOptions(p,u){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(p,u),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let p=this.series,u=p.options,b=(u.colsize||1)/2,v=(u.rowsize||1)/2,x=p.xAxis,f=p.yAxis,A=this.options.marker||p.options.marker,L=p.pointPlacementToXValue(),S=h(this.pointPadding,u.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(f.translate(this.y-v,!1,!0,!1,!0)),-f.len,2*f.len),y2:n(Math.round(f.translate(this.y+v,!1,!0,!1,!0)),-f.len,2*f.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",P=I+"2",F=Math.abs(w[_]-w[P]),T=A&&A.lineWidth||0,D=Math.abs(w[_]+w[P])/2,C=A&&A[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),s(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{doc:r}=e,{defined:n,pick:l}=i;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let m=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(p=>l(parseFloat(p),parseInt(p,10)));return m[3]=255*l(m[3],1),n(a)&&h.visible||(m[3]=0),m}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),s(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,i,r,n,l,a,h,c){let{series:m,seriesTypes:{column:p,scatter:u}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:f,isNumber:A,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends u{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,P=_.options,F=P.interpolation,T=P.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:g}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:E}=g,z={width:M,height:E};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,Y=C.colorAxis&&C.colorAxis[0];if(G&&N&&Y){let{min:U,max:q}=d.getExtremes(),{min:H,max:V}=g.getExtremes(),Z=q-U,K=V-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:P}=m.prototype.getExtremes.call(this,this.valueData);return A(_)&&(this.valueMin=_),A(P)&&(this.valueMax=P),m.prototype.getExtremes.call(this)}getValidPoints(_,P){return m.prototype.getValidPoints.call(this,_,P,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&A(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,P){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(P&&P!=="normal"){let T=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[P]||{},d=T.states&&T.states[P]||{},g=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-g)/2,y:(F.y||0)+((F.height||0)-y)/2,width:g,height:y}}return F}pointAttribs(_,P){let F=m.prototype.pointAttribs.call(this,_,P),T=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},g=_&&_.options.borderColor||T.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||T.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||T.marker&&T.marker.lineColor||g||this.color,F["stroke-width"]=y,P&&P!=="normal"){let M=L(T.states&&T.states[P],T.marker&&T.marker.states&&T.marker.states[P],_&&_.options.states&&_.options.states[P]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:P}=this.options,F=P&&P.symbol||"rect",T=b[F]?F:"rect",D=["circle","square"].indexOf(T)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),g=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let E=Math.abs(M-k);g=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof Wn=="object"&&Wn.exports?(o.default=o,Wn.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Math3D.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{deg2rad:r}=e,{pick:n}=i;function l(c,m,p,u){let b=m.options.chart.options3d,v=n(u,!!p&&m.inverted),x={x:m.plotWidth/2,y:m.plotHeight/2,z:b.depth/2,vd:n(b.depth,1)*n(b.viewDistance,0)},f=m.scale3d||1,A=r*b.beta*(v?-1:1),L=r*b.alpha*(v?-1:1),S={cosA:Math.cos(L),cosB:Math.cos(-A),sinA:Math.sin(L),sinB:Math.sin(-A)};return p||(x.x+=m.plotLeft,x.y+=m.plotTop),c.map(function(w){var R,O,I;let _=(R=(v?w.y:w.x)-x.x,O=(v?w.x:w.y)-x.y,I=(w.z||0)-x.z,{x:S.cosB*R-S.sinB*I,y:-S.sinA*S.sinB*R+S.cosA*O-S.cosB*S.sinA*I,z:S.cosA*S.sinB*R+S.sinA*O+S.cosA*S.cosB*I}),P=a(_,x,x.vd);return P.x=P.x*f+x.x,P.y=P.y*f+x.y,P.z=_.z*f+x.z,{x:v?P.y:P.x,y:v?P.x:P.y,z:P.z}})}function a(c,m,p){let u=p>0&&p=0?0:360),C.beta=C.beta%360+(C.beta>=0?0:360));let d=this.inverted,g=this.clipBox,y=this.margin;g[d?"y":"x"]=-(y[3]||0),g[d?"x":"y"]=-(y[0]||0),g[d?"height":"width"]=this.chartWidth+(y[3]||0)+(y[1]||0),g[d?"width":"height"]=this.chartHeight+(y[0]||0)+(y[2]||0),this.scale3d=1,C.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(C.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function O(){this.is3d()&&(this.isDirtyBox=!0)}function I(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function _(){this.chart3d||(this.chart3d=new D(this))}function P(C){return this.is3d()||C.apply(this,[].slice.call(arguments,1))}function F(C){let d,g=this.series.length;if(this.is3d())for(;g--;)(d=this.series[g]).translate(),d.render();else C.call(this)}function T(C){C.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}f.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},f.compose=function(C,d){let g=C.prototype,y=d.prototype;g.is3d=function(){return!!this.options.chart.options3d?.enabled},g.propsRequireDirtyBox.push("chart.options3d"),g.propsRequireUpdateSeries.push("chart.options3d"),y.matrixSetter=function(){let M;if(this.pos<1&&(u(this.start)||u(this.end))){let k=this.start||[1,0,0,1,0,0],E=this.end||[1,0,0,1,0,0];M=[];for(let z=0;z<6;z++)M.push(this.pos*E[z]+(1-this.pos)*k[z])}else M=this.end;this.elem.attr(this.prop,M,null,!0)},b(!0,h,f.defaultOptions),p(C,"init",_),p(C,"addSeries",A),p(C,"afterDrawChartBox",L),p(C,"afterGetContainer",S),p(C,"afterInit",w),p(C,"afterSetChartSize",R),p(C,"beforeRedraw",O),p(C,"beforeRender",I),x(g,"isInsidePlot",P),x(g,"renderSeries",F),x(g,"setClassName",T)};class D{constructor(d){this.chart=d}get3dFrame(){let d=this.chart,g=d.options.chart.options3d,y=g.frame,M=d.plotLeft,k=d.plotLeft+d.plotWidth,E=d.plotTop,z=d.plotTop+d.plotHeight,N=g.depth,G=function(tt){let $=m(tt,d);return $>.5?1:$<-.5?-1:0},X=G([{x:M,y:z,z:N},{x:k,y:z,z:N},{x:k,y:z,z:0},{x:M,y:z,z:0}]),j=G([{x:M,y:E,z:0},{x:k,y:E,z:0},{x:k,y:E,z:N},{x:M,y:E,z:N}]),B=G([{x:M,y:E,z:0},{x:M,y:E,z:N},{x:M,y:z,z:N},{x:M,y:z,z:0}]),W=G([{x:k,y:E,z:N},{x:k,y:E,z:0},{x:k,y:z,z:0},{x:k,y:z,z:N}]),Y=G([{x:M,y:z,z:0},{x:k,y:z,z:0},{x:k,y:E,z:0},{x:M,y:E,z:0}]),U=G([{x:M,y:E,z:N},{x:k,y:E,z:N},{x:k,y:z,z:N},{x:M,y:z,z:N}]),q=!1,H=!1,V=!1,Z=!1;[].concat(d.xAxis,d.yAxis,d.zAxis).forEach(function(tt){tt&&(tt.horiz?tt.opposite?H=!0:q=!0:tt.opposite?Z=!0:V=!0)});let K=function(tt,$,Q){let et=["size","color","visible"],it={};for(let rt=0;rt0),{size:v(it.size,1),color:v(it.color,"none"),frontFacing:$>0,visible:st}},J={axes:{},bottom:K([y.bottom,y.top,y],X,q),top:K([y.top,y.bottom,y],j,H),left:K([y.left,y.right,y.side,y],B,V),right:K([y.right,y.left,y.side,y],W,Z),back:K([y.back,y.front,y],U,!0),front:K([y.front,y.back,y],Y,!1)};if(g.axisLabelPosition==="auto"){let tt=function(nt,ot){return nt.visible!==ot.visible||nt.visible&&ot.visible&&nt.frontFacing!==ot.frontFacing},$=[];tt(J.left,J.front)&&$.push({y:(E+z)/2,x:M,z:0,xDir:{x:1,y:0,z:0}}),tt(J.left,J.back)&&$.push({y:(E+z)/2,x:M,z:N,xDir:{x:0,y:0,z:-1}}),tt(J.right,J.front)&&$.push({y:(E+z)/2,x:k,z:0,xDir:{x:0,y:0,z:1}}),tt(J.right,J.back)&&$.push({y:(E+z)/2,x:k,z:N,xDir:{x:-1,y:0,z:0}});let Q=[];tt(J.bottom,J.front)&&Q.push({x:(M+k)/2,y:z,z:0,xDir:{x:1,y:0,z:0}}),tt(J.bottom,J.back)&&Q.push({x:(M+k)/2,y:z,z:N,xDir:{x:-1,y:0,z:0}});let et=[];tt(J.top,J.front)&&et.push({x:(M+k)/2,y:E,z:0,xDir:{x:1,y:0,z:0}}),tt(J.top,J.back)&&et.push({x:(M+k)/2,y:E,z:N,xDir:{x:-1,y:0,z:0}});let it=[];tt(J.bottom,J.left)&&it.push({z:(0+N)/2,y:z,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.bottom,J.right)&&it.push({z:(0+N)/2,y:z,x:k,xDir:{x:0,y:0,z:1}});let st=[];tt(J.top,J.left)&&st.push({z:(0+N)/2,y:E,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.top,J.right)&&st.push({z:(0+N)/2,y:E,x:k,xDir:{x:0,y:0,z:1}});let rt=function(nt,ot,at){if(nt.length===0)return null;if(nt.length===1)return nt[0];let ct=c(nt,d,!1),ht=0;for(let lt=1;ltat*ct[ht][ot]||at*ct[lt][ot]==at*ct[ht][ot]&&ct[lt].zG.minX&&(j=Math.min(j,1-Math.abs((y+z)/(G.minX+z))%1)),MG.minY&&(j=G.minY<0?Math.min(j,(k+N)/(-G.minY+k+N)):Math.min(j,1-(k+N)/(G.minY+N)%1)),E({plotX:w.x,plotY:w.y,plotZ:w.z})),this.group&&L&&L.depth&&L.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,L.beta>270||L.beta<90?L.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),A.reversed=!0;let S=v.call(this,A,!0,!0);if(S[0]&&S[0][0]==="M"&&(S[0]=["L",S[0][1],S[0][2]]),this.areaPath){let w=this.areaPath.splice(0,this.areaPath.length/2).concat(S);w.xMap=this.areaPath.xMap,this.areaPath=w}return this.graphPath=b,b}return{compose:function(u){c(l,"Area3DSeries")&&m(u.prototype,"getGraphPath",p)}}}),s(t,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),s(t,"Core/Axis/Tick3DComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{composed:r}=e,{addEvent:n,extend:l,pushUnique:a,wrap:h}=i;function c(p){let u=this.axis.axis3D;u&&l(p.pos,u.fix3dPosition(p.pos))}function m(p){let u=this.axis.axis3D,b=p.apply(this,[].slice.call(arguments,1));if(u){let v=b[0],x=b[1];if(v[0]==="M"&&x[0]==="L"){let f=[u.fix3dPosition({x:v[1],y:v[2],z:0}),u.fix3dPosition({x:x[1],y:x[2],z:0})];return this.axis.chart.renderer.toLineSegments(f)}}return b}return{compose:function(p){a(r,"Axis.Tick3D")&&(n(p,"afterGetLabelPosition",c),h(p.prototype,"getMarkPath",m))}}}),s(t,"Core/Axis/Axis3DComposition.js",[t["Core/Axis/Axis3DDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Axis/Tick3DComposition.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{defaultOptions:h}=i,{deg2rad:c}=r,{perspective:m,perspective3D:p,shapeArea:u}=n,{addEvent:b,merge:v,pick:x,wrap:f}=a;function A(){let F=this.chart,T=this.options;F.is3d&&F.is3d()&&this.coll!=="colorAxis"&&(T.tickWidth=x(T.tickWidth,0),T.gridLineWidth=x(T.gridLineWidth,1))}function L(F){this.chart.is3d()&&this.coll!=="colorAxis"&&F.point&&(F.point.crosshairPos=this.isXAxis?F.point.axisXpos:this.len-F.point.axisYpos)}function S(){this.axis3D||(this.axis3D=new P(this))}function w(F){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:F.apply(this,[].slice.call(arguments,1))}function R(F){if(!this.chart.is3d()||this.coll==="colorAxis")return F.apply(this,[].slice.call(arguments,1));let T=arguments,D=T[1],C=T[2],d=[],g=this.getPlotLinePath({value:D}),y=this.getPlotLinePath({value:C});if(g&&y)for(let M=0;Mu(m([T,{x:T.x+W.x,y:T.y+W.y,z:T.z+W.z},{x:T.x+Y.x,y:T.y+Y.y,z:T.z+Y.z}],C.chart))&&(W={x:-W.x,y:-W.y,z:-W.z});let H=m([{x:T.x,y:T.y,z:T.z},{x:T.x+W.x,y:T.y+W.y,z:T.z+W.z},{x:T.x+Y.x,y:T.y+Y.y,z:T.z+Y.z}],C.chart);q.matrix=[H[1].x-H[0].x,H[1].y-H[0].y,H[2].x-H[0].x,H[2].y-H[0].y,q.x,q.y],q.matrix[4]-=q.x*q.matrix[0]+q.y*q.matrix[2],q.matrix[5]-=q.x*q.matrix[1]+q.y*q.matrix[3]}return q}swapZ(T,D){let C=this.axis;if(C.isZAxis){let d=D?0:C.chart.plotLeft;return{x:d+T.z,y:T.y,z:T.x-d}}return T}}return P}),s(t,"Core/Series/Series3D.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{composed:l}=e,{perspective:a}=i,{addEvent:h,extend:c,isNumber:m,merge:p,pick:u,pushUnique:b}=n;class v extends r{static compose(f){b(l,"Core.Series3D")&&(h(f,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),c(f.prototype,{translate3dPoints:v.prototype.translate3dPoints}))}translate3dPoints(){let f,A,L=this,S=L.options,w=L.chart,R=u(L.zAxis,w.options.zAxis[0]),O=[],I=[],_=S.stacking?m(S.stack)?S.stack:0:L.index||0;L.zPadding=_*(S.depth||0+(S.groupZPadding||1)),L.data.forEach(F=>{R&&R.translate?(A=R.logarithmic&&R.val2lin?R.val2lin(F.z):F.z,F.plotZ=R.translate(A),F.isInside=!!F.isInside&&A>=R.min&&A<=R.max):F.plotZ=L.zPadding,F.axisXpos=F.plotX,F.axisYpos=F.plotY,F.axisZpos=F.plotZ,O.push({x:F.plotX,y:F.plotY,z:F.plotZ}),I.push(F.plotX||0)}),L.rawPointsX=I;let P=a(O,w,!0);L.data.forEach((F,T)=>{f=P[T],F.plotX=f.x,F.plotY=f.y,F.plotZ=f.z})}}return v.defaultOptions=p(r.defaultOptions),v}),s(t,"Core/Renderer/SVG/SVGElement3D.js",[t["Core/Color/Color.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(e,i,r){let{parse:n}=e,{Element:l}=i.getRendererType().prototype,{defined:a,pick:h}=r;class c extends l{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(p){let u=this.renderer,b=u[this.pathType+"Path"](p),v=b.zIndexes;for(let x of this.parts){let f={class:"highcharts-3d-"+x,zIndex:v[x]||0};u.styledMode&&(x==="top"?f.filter="url(#highcharts-brighter)":x==="side"&&(f.filter="url(#highcharts-darker)")),this[x]=u.path(b[x]).attr(f).add(this)}this.attr({"stroke-linejoin":"round",zIndex:v.group}),this.forcedSides=b.forcedSides}singleSetterForParts(p,u,b,v,x,f){let A={},L=[null,null,v||"attr",x,f],S=b&&b.zIndexes;if(b){for(let w of(S&&S.group&&this.attr({zIndex:S.group}),Object.keys(b)))A[w]={},A[w][p]=b[w],S&&(A[w].zIndex=b.zIndexes[w]||0);L[1]=A}else A[p]=u,L[0]=A;return this.processParts.apply(this,L)}processParts(p,u,b,v,x){for(let f of this.parts)u&&(p=h(u[f],!1)),p!==!1&&this[f][b](p,v,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(p,u,b,v){if(typeof p=="string"&&u!==void 0){let x=p;(p={})[x]=u}return p.shapeArgs||a(p.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](p.shapeArgs||p)):super.attr(p,void 0,b,v)}animate(p,u,b){if(a(p.x)&&a(p.y)){let v=this.renderer[this.pathType+"Path"](p),x=v.forcedSides;this.singleSetterForParts("d",null,v,"animate",u,b),this.attr({zIndex:v.zIndexes.group}),x===this.forcedSides||(this.forcedSides=x,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(p,u,b);return this}fillSetter(p){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:p,top:n(p).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:n(p).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=p,this}}return c.types={base:c,cuboid:c},c}),s(t,"Core/Renderer/SVG/SVGRenderer3D.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Renderer/SVG/SVGElement3D.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){var h;let{animObject:c}=e,{parse:m}=i,{charts:p,deg2rad:u}=r,{perspective:b,shapeArea:v}=n,{defined:x,extend:f,merge:A,pick:L}=a,S=Math.cos,w=Math.sin,R=Math.PI,O=4*(Math.sqrt(2)-1)/3/(R/2);function I(_,P,F,T,D,C,d,g){let y=C-D,M=[];return C>D&&C-D>Math.PI/2+1e-4?M=(M=M.concat(I(_,P,F,T,D,D+Math.PI/2,d,g))).concat(I(_,P,F,T,D+Math.PI/2,C,d,g)):CMath.PI/2+1e-4?M=(M=M.concat(I(_,P,F,T,D,D-Math.PI/2,d,g))).concat(I(_,P,F,T,D-Math.PI/2,C,d,g)):[["C",_+F*Math.cos(D)-F*O*y*Math.sin(D)+d,P+T*Math.sin(D)+T*O*y*Math.cos(D)+g,_+F*Math.cos(C)+F*O*y*Math.sin(C)+d,P+T*Math.sin(C)-T*O*y*Math.cos(C)+g,_+F*Math.cos(C)+d,P+T*Math.sin(C)+g]]}return function(_){function P(k,E){let z=[];for(let N of k)z.push(["L",N.x,N.y]);return k.length&&(z[0][0]="M",E&&z.push(["Z"])),z}function F(k){let E=[],z=!0;for(let N of k)E.push(z?["M",N.x,N.y]:["L",N.x,N.y]),z=!z;return E}function T(k){let E=this,z=E.Element.prototype,N=E.createElement("path");return N.vertexes=[],N.insidePlotArea=!1,N.enabled=!0,N.attr=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=p[E.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=E.toLinePath(j,!0),W=v(j);G.d=B,G.visibility=this.enabled&&W>0?"inherit":"hidden"}return z.attr.apply(this,arguments)},N.animate=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=p[E.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=E.toLinePath(j,!0),W=v(j),Y=this.enabled&&W>0?"visible":"hidden";G.d=B,this.attr("visibility",Y)}return z.animate.apply(this,arguments)},N.attr(k)}function D(k){let E=this,z=E.Element.prototype,N=E.g(),G=N.destroy;return this.styledMode||N.attr({"stroke-linejoin":"round"}),N.faces=[],N.destroy=function(){for(let X=0;XX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthG===0&&st>1&&st<6?{x:H[st].x,y:H[st].y+10,z:H[st].z}:H[0].x===H[7].x&&st>=4?{x:H[st].x+10,y:H[st].y,z:H[st].z}:j===0&&st<2||st>5?{x:H[st].x,y:H[st].y,z:H[st].z+10}:H[st],Z=st=>H[st],K=(st,rt,nt)=>{let ot=st.map(Z),at=rt.map(Z),ct=st.map(V),ht=rt.map(V),lt=[[],-1];return 0>v(ot)?lt=[ot,0]:0>v(at)?lt=[at,1]:nt&&(Y.push(nt),lt=0>v(ct)?[ot,0]:0>v(ht)?[at,1]:[ot,0]),lt},J=(U=K([3,2,1,0],[7,6,5,4],"front"))[0],tt=U[1],$=(U=K([1,6,7,0],[4,5,2,3],"top"))[0],Q=U[1],et=(U=K([1,2,5,6],[0,7,4,3],"side"))[0],it=U[1];return it===1?q+=1e6*(B.plotWidth-E):it||(q+=1e6*E),q+=10*(!Q||W>=0&&W<=180||W<360&&W>357.5?B.plotHeight-z:10+z),tt===1?q+=100*N:tt||(q+=100*(1e3-N)),{front:this.toLinePath(J,!0),top:this.toLinePath($,!0),side:this.toLinePath(et,!0),zIndexes:{group:Math.round(q)},forcedSides:Y,isFront:tt,isTop:Q}}function y(k){let E=this.g(),z=this.Element.prototype,N=["x","y","r","innerR","start","end","depth"];function G(X){let j={},B=!1,W;for(W in X=A(X))N.indexOf(W)!==-1&&(j[W]=X[W],delete X[W],B=!0);return!!B&&[j,X]}for(let X of((k=A(k)).alpha=(k.alpha||0)*u,k.beta=(k.beta||0)*u,E.top=this.path(),E.side1=this.path(),E.side2=this.path(),E.inn=this.path(),E.out=this.path(),E.onAdd=function(){let j=E.parentGroup,B=E.attr("class");for(let W of(E.top.add(E),["out","inn","side1","side2"]))E[W].attr({class:B+" highcharts-3d-side"}).add(j)},["addClass","removeClass"]))E[X]=function(){let j=arguments;for(let B of["top","out","inn","side1","side2"])E[B][X].apply(E[B],j)};for(let X of(E.setPaths=function(j){let B=E.renderer.arc3dPath(j),W=100*B.zTop;E.attribs=j,E.top.attr({d:B.top,zIndex:B.zTop}),E.inn.attr({d:B.inn,zIndex:B.zInn}),E.out.attr({d:B.out,zIndex:B.zOut}),E.side1.attr({d:B.side1,zIndex:B.zSide1}),E.side2.attr({d:B.side2,zIndex:B.zSide2}),E.zIndex=W,E.attr({zIndex:W}),j.center&&(E.top.setRadialReference(j.center),delete j.center)},E.setPaths(k),E.fillSetter=function(j){let B=m(j).brighten(-.1).get();return this.fill=j,this.side1.attr({fill:B}),this.side2.attr({fill:B}),this.inn.attr({fill:B}),this.out.attr({fill:B}),this.top.attr({fill:j}),this},["opacity","translateX","translateY","visibility"]))E[X+"Setter"]=function(j,B){for(let W of(E[B]=j,["out","inn","side1","side2","top"]))E[W].attr(B,j)};return E.attr=function(X){let j,B;return typeof X=="object"&&(B=G(X))&&(j=B[0],arguments[0]=B[1],f(E.attribs,j),E.setPaths(E.attribs)),z.attr.apply(E,arguments)},E.animate=function(X,j,B){let W,Y,U=this.attribs,q="data-"+Math.random().toString(26).substring(2,9);delete X.center,delete X.z,delete X.alpha,delete X.beta;let H=c(L(j,this.renderer.globalAnimation));return H.duration&&(W=G(X),E[q]=0,X[q]=1,E[q+"Setter"]=r.noop,W&&(Y=W[0],H.step=function(V,Z){let K=J=>U[J]+(L(Y[J],U[J])-U[J])*Z.pos;Z.prop===q&&Z.elem.setPaths(A(U,{x:K("x"),y:K("y"),r:K("r"),innerR:K("innerR"),start:K("start"),end:K("end"),depth:K("depth")}))}),j=H),z.animate.call(this,X,j,B)},E.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),z.destroy.call(this)},E.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},E.show=function(X){this.top.show(X),this.out.show(X),this.inn.show(X),this.side1.show(X),this.side2.show(X)},E}function M(k){let E=k.x||0,z=k.y||0,N=k.start||0,G=(k.end||0)-1e-5,X=k.r||0,j=k.innerR||0,B=k.depth||0,W=k.alpha||0,Y=k.beta||0,U=Math.cos(N),q=Math.sin(N),H=Math.cos(G),V=Math.sin(G),Z=X*Math.cos(Y),K=X*Math.cos(W),J=j*Math.cos(Y),tt=j*Math.cos(W),$=B*Math.sin(Y),Q=B*Math.sin(W),et=[["M",E+Z*U,z+K*q]];(et=et.concat(I(E,z,Z,K,N,G,0,0))).push(["L",E+J*H,z+tt*V]),(et=et.concat(I(E,z,J,tt,G,N,0,0))).push(["Z"]);let it=Y>0?Math.PI/2:0,st=W>0?0:Math.PI/2,rt=N>-it?N:G>-it?-it:N,nt=Got&&NR-st&&NMath.PI&&(ee=2*Math.PI-ee),ee}wt=ft(wt),dt=ft(dt);let Tt=1e5*(Ct=ft(Ct)),zt=1e5*dt,pe=1e5*wt;return{top:et,zTop:1e5*Math.PI+1,out:at,zOut:Math.max(Tt,zt,pe),inn:ct,zInn:Math.max(Tt,zt,pe),side1:ht,zSide1:.99*pe,side2:lt,zSide2:.99*zt}}_.compose=function(k){let E=k.prototype;E.element3d||f(E,{Element3D:l,arc3d:y,arc3dPath:M,cuboid:d,cuboidPath:g,element3d:C,face3d:T,polyhedron:D,toLinePath:P,toLineSegments:F})}}(h||(h={})),h}),s(t,"Core/Axis/ZAxis.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(e,i,r){let{defaultOptions:n}=i,{addEvent:l,merge:a,pick:h,splat:c}=r;function m(b){return new u(this,b)}function p(){let b=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],b.forEach(v=>{this.addZAxis(v).setScale()}))}class u extends e{constructor(){super(...arguments),this.isZAxis=!0}static compose(v){let x=v.prototype;x.addZAxis||(n.zAxis=a(n.xAxis,{offset:0,lineWidth:0}),x.addZAxis=m,x.collectionsWithInit.zAxis=[x.addZAxis],x.collectionsWithUpdate.push("zAxis"),l(v,"afterGetAxes",p))}init(v,x){this.isZAxis=!0,super.init(v,x,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(v=>{if(v.reserveSpace()){let x=v.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&x<=0&&(x=void 0);let f=v.zData;f.length&&(this.dataMin=Math.min(h(this.dataMin,f[0]),Math.min.apply(null,f)),this.dataMax=Math.max(h(this.dataMax,f[0]),Math.max.apply(null,f)))}})}setAxisSize(){let v=this.chart;super.setAxisSize(),this.width=this.len=v.options.chart.options3d&&v.options.chart.options3d.depth||0,this.right=v.chartWidth-this.width-this.left}}return u}),s(t,"Series/Column3D/Column3DComposition.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Utilities.js"]],function(e,i,r){let{composed:n}=e,{perspective:l}=i,{addEvent:a,extend:h,pick:c,pushUnique:m,wrap:p}=r;function u(){let _=this.chart,P=this.options,F=P.depth,T=(P.stacking?P.stack||0:this.index)*(F+(P.groupZPadding||1)),D=this.borderWidth%2?.5:0,C;for(let d of(_.inverted&&!this.yAxis.reversed&&(D*=-1),P.grouping!==!1&&(T=0),T+=P.groupZPadding||1,this.points))if(d.outside3dPlot=null,d.y!==null){let g,y=h({x:0,y:0,width:0,height:0},d.shapeArgs||{}),M=[["x","width"],["y","height"]],k=d.tooltipPos;for(let E of M)if((g=y[E[0]]-D)<0&&(y[E[1]]+=y[E[0]]+D,y[E[0]]=-D,g=0),g+y[E[1]]>this[E[0]+"Axis"].len&&y[E[1]]!==0&&(y[E[1]]=this[E[0]+"Axis"].len-y[E[0]]),y[E[1]]!==0&&(y[E[0]]>=this[E[0]+"Axis"].len||y[E[0]]+y[E[1]]<=D)){for(let z in y)y[z]=z==="y"?-9999:0;d.outside3dPlot=!0}if(d.shapeType==="roundedRect"&&(d.shapeType="cuboid"),d.shapeArgs=h(y,{z:T,depth:F,insidePlotArea:!0}),C={x:y.x+y.width/2,y:y.y,z:T+F/2},_.inverted&&(C.x=y.height,C.y=d.clientX||0),d.axisXpos=C.x,d.axisYpos=C.y,d.axisZpos=C.z,d.plot3d=l([C],_,!0,!1)[0],k){let E=l([{x:k[0],y:k[1],z:T+F/2}],_,!0,!1)[0];d.tooltipPos=[E.x,E.y]}}this.z=T}function b(){if(this.chart.is3d()){let _=this.options,P=_.grouping,F=_.stacking,T=this.yAxis.options.reversedStacks,D=0;if(!(P!==void 0&&!P)){let C,d=function(y,M){let k=y.series,E={totalStacks:0},z,N=1;return k.forEach(function(G){E[z=c(G.options.stack,M?0:k.length-1-G.index)]?E[z].series.push(G):(E[z]={series:[G],position:N},N++)}),E.totalStacks=N+1,E}(this.chart,F),g=_.stack||0;for(C=0;C=90&&y.alpha<=270&&(k.y+=P.shapeArgs.width)),k=l([k],C,!0,!1)[0],D.x=k.x-M,D.y=P.outside3dPlot?-9e9:k.y}_.apply(this,[].slice.call(arguments,1))}function O(_){return!arguments[2].outside3dPlot&&_.apply(this,[].slice.call(arguments,1))}function I(_,P){let F=_.apply(this,[].slice.call(arguments,1)),T=this.axis.chart,{width:D}=P;if(T.is3d()&&this.base){let C=+this.base.split(",")[0],d=T.series[C],g=T.options.chart.options3d;if(d&&d.type==="column"){let y={x:F.x+(T.inverted?F.height:D/2),y:F.y,z:d.options.depth/2};T.inverted&&(F.width=0,g.alpha>=90&&g.alpha<=270&&(y.y+=D)),y=l([y],T,!0,!1)[0],F.x=y.x-D/2,F.y=y.y}}return F}return{compose:function(_,P){if(m(n,"Column3D")){let F=_.prototype,T=P.prototype,{column:D,columnRange:C}=_.types;if(p(F,"alignDataLabel",R),p(F,"justifyDataLabel",O),p(T,"getStackBox",I),D){let d=D.prototype,g=d.pointClass.prototype;d.translate3dPoints=()=>{},d.translate3dShapes=u,a(d,"afterInit",b),p(g,"hasNewShapeType",v),p(d,"animate",x),p(d,"plotGroup",f),p(d,"pointAttribs",A),p(d,"setState",L),p(d,"setVisible",S),p(d,"translate",w)}if(C){let d=C.prototype;p(d.pointClass.prototype,"hasNewShapeType",v),p(d,"plotGroup",f),p(d,"pointAttribs",A),p(d,"setState",L),p(d,"setVisible",S)}}}}}),s(t,"Series/Pie3D/Pie3DPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{pie:{prototype:{pointClass:i}}}=e.seriesTypes;return class extends i{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),s(t,"Series/Pie3D/Pie3DSeries.js",[t["Core/Globals.js"],t["Series/Pie3D/Pie3DPoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{composed:l,deg2rad:a}=e,{pie:h}=r.seriesTypes,{extend:c,pick:m,pushUnique:p}=n;class u extends h{static compose(v){p(l,"Pie3D")&&(v.types.pie=u)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(v){if(this.chart.is3d()){let x=this.center,f=this.group,A=this.markerGroup,L=this.options.animation,S;L===!0&&(L={}),v?(f.oldtranslateX=m(f.oldtranslateX,f.translateX),f.oldtranslateY=m(f.oldtranslateY,f.translateY),S={translateX:x[0],translateY:x[1],scaleX:.001,scaleY:.001},f.attr(S),A&&(A.attrSetters=f.attrSetters,A.attr(S))):(S={translateX:f.oldtranslateX,translateY:f.oldtranslateY,scaleX:1,scaleY:1},f.animate(S,L),A&&A.animate(S,L))}else super.animate.apply(this,arguments)}getDataLabelPosition(v,x){let f=super.getDataLabelPosition(v,x);if(this.chart.is3d()){let A=this.chart.options.chart.options3d,L=v.shapeArgs,S=L.r,w=(L.alpha||A?.alpha)*a,R=(L.beta||A?.beta)*a,O=(L.start+L.end)/2,I=f.connectorPosition,_=-S*(1-Math.cos(w))*Math.sin(O),P=S*(Math.cos(R)-1)*Math.cos(O);for(let F of[f?.natural,I.breakAt,I.touchingSliceAt])F.x+=P,F.y+=_}return f}pointAttribs(v){let x=super.pointAttribs.apply(this,arguments),f=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(x.stroke=f.edgeColor||v.color||this.color,x["stroke-width"]=m(f.edgeWidth,1)),x}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let v=this.options,x=v.depth||0,f=this.chart.options.chart.options3d,A=f.alpha,L=f.beta,S=v.stacking?(v.stack||0)*x:this._i*x;for(let w of(S+=x/2,v.grouping!==!1&&(S=0),this.points)){let R=w.shapeArgs;w.shapeType="arc3d",R.z=S,R.depth=.75*x,R.alpha=A,R.beta=L,R.center=this.center;let O=(R.end+R.start)/2;w.slicedTranslation={translateX:Math.round(Math.cos(O)*v.slicedOffset*Math.cos(A*a)),translateY:Math.round(Math.sin(O)*v.slicedOffset*Math.cos(A*a))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let v of this.points)if(v.graphic)for(let x of["out","inn","side1","side2"])v.graphic&&(v.graphic[x].element.point=v)}}}return c(u.prototype,{pointClass:i}),u}),s(t,"Series/Scatter3D/Scatter3DPoint.js",[t["Series/Scatter/ScatterSeries.js"],t["Core/Utilities.js"]],function(e,i){let{pointClass:r}=e.prototype,{defined:n}=i;return class extends r{applyOptions(){return super.applyOptions.apply(this,arguments),n(this.z)||(this.z=0),this}}}),s(t,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),s(t,"Series/Scatter3D/Scatter3DSeries.js",[t["Core/Math3D.js"],t["Series/Scatter3D/Scatter3DPoint.js"],t["Series/Scatter3D/Scatter3DSeriesDefaults.js"],t["Series/Scatter/ScatterSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{pointCameraDistance:h}=e,{extend:c,merge:m}=a;class p extends n{pointAttribs(b){let v=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&b&&(v.zIndex=h(b,this.chart)),v}}return p.defaultOptions=m(n.defaultOptions,r),c(p.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:i}),l.registerSeriesType("scatter3d",p),p}),s(t,"masters/highcharts-3d.src.js",[t["Core/Globals.js"],t["Core/Chart/Chart3D.js"],t["Series/Area3D/Area3DSeries.js"],t["Core/Axis/Axis3DComposition.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series3D.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Renderer/SVG/SVGRenderer3D.js"],t["Core/Axis/ZAxis.js"],t["Series/Column3D/Column3DComposition.js"],t["Series/Pie3D/Pie3DSeries.js"]],function(e,i,r,n,l,a,h,c,m,p,u){return r.compose(e.seriesTypes.area),n.compose(e.Axis,e.Tick),i.compose(e.Chart,e.Fx),p.compose(e.Series,h),u.compose(e.Series),a.compose(e.Series),c.compose(l.getRendererType()),m.compose(e.Chart),e})})});var Au=qe((RT,Yn)=>{"use strict";(function(o){typeof Yn=="object"&&Yn.exports?(o.default=o,Yn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;return function(i){i.compose=function(n){return n.navigation||(n.navigation=new r(n)),n};class r{constructor(l){this.updates=[],this.chart=l}addUpdate(l){this.chart.navigation.updates.push(l)}update(l,a){this.updates.forEach(h=>{h.call(this.chart,l,a)})}}i.Additions=r}(e||(e={})),e}),s(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(e){let{isTouchDevice:i}=e;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:i?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),s(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var e;return function(i){let r=[];function n(a,h,c,m){return[["M",a,h+2.5],["L",a+c,h+2.5],["M",a,h+m/2+.5],["L",a+c,h+m/2+.5],["M",a,h+m-1.5],["L",a+c,h+m-1.5]]}function l(a,h,c,m){let p=m/3-2;return[].concat(this.circle(c-p,h,p,p),this.circle(c-p,h+p+4,p,p),this.circle(c-p,h+2*(p+4),p,p))}i.compose=function(a){if(r.indexOf(a)===-1){r.push(a);let h=a.prototype.symbols;h.menu=n,h.menuball=l.bind(h)}}}(e||(e={})),e}),s(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i,r){let{composed:n}=i,{addEvent:l,fireEvent:a,pushUnique:h}=r;function c(){this.fullscreen=new m(this)}class m{static compose(u){h(n,"Fullscreen")&&l(u,"beforeRender",c)}constructor(u){this.chart=u,this.isOpen=!1;let b=u.renderTo;!this.browserProps&&(typeof b.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:b.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:b.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:b.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let u=this,b=u.chart,v=b.options.chart;a(b,"fullscreenClose",null,function(){u.isOpen&&u.browserProps&&b.container.ownerDocument instanceof Document&&b.container.ownerDocument[u.browserProps.exitFullscreen](),u.unbindFullscreenEvent&&(u.unbindFullscreenEvent=u.unbindFullscreenEvent()),b.setSize(u.origWidth,u.origHeight,!1),u.origWidth=void 0,u.origHeight=void 0,v.width=u.origWidthOption,v.height=u.origHeightOption,u.origWidthOption=void 0,u.origHeightOption=void 0,u.isOpen=!1,u.setButtonText()})}open(){let u=this,b=u.chart,v=b.options.chart;a(b,"fullscreenOpen",null,function(){if(v&&(u.origWidthOption=v.width,u.origHeightOption=v.height),u.origWidth=b.chartWidth,u.origHeight=b.chartHeight,u.browserProps){let x=l(b.container.ownerDocument,u.browserProps.fullscreenChange,function(){u.isOpen?(u.isOpen=!1,u.close()):(b.setSize(null,null,!1),u.isOpen=!0,u.setButtonText())}),f=l(b,"destroy",x);u.unbindFullscreenEvent=()=>{x(),f()};let A=b.renderTo[u.browserProps.requestFullscreen]();A&&A.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let u=this.chart,b=u.exportDivElements,v=u.options.exporting,x=v&&v.buttons&&v.buttons.contextButton.menuItems,f=u.options.lang;if(v&&v.menuItemDefinitions&&f&&f.exitFullscreen&&f.viewFullscreen&&x&&b){let A=b[x.indexOf("viewFullscreen")];A&&e.setElementHTML(A,this.isOpen?f.exitFullscreen:v.menuItemDefinitions.viewFullscreen.text||f.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return m}),s(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{win:r}=e,{discardElement:n,objectEach:l}=i,a={ajax:function(h){let c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},m=new XMLHttpRequest;function p(u,b){h.error&&h.error(u,b)}if(!h.url)return!1;m.open((h.type||"get").toUpperCase(),h.url,!0),h.headers&&h.headers["Content-Type"]||m.setRequestHeader("Content-Type",c[h.dataType||"json"]||c.text),l(h.headers,function(u,b){m.setRequestHeader(b,u)}),h.responseType&&(m.responseType=h.responseType),m.onreadystatechange=function(){let u;if(m.readyState===4){if(m.status===200){if(h.responseType!=="blob"&&(u=m.responseText,h.dataType==="json"))try{u=JSON.parse(u)}catch(b){if(b instanceof Error)return p(m,b)}return h.success&&h.success(u,m)}p(m,m.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),m.send(h.data)},getJSON:function(h,c){a.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,m){let p=new r.FormData;l(c,function(v,x){p.append(x,v)}),p.append("b64","true");let{filename:u,type:b}=c;return r.fetch(h,xe({method:"POST",body:p},m)).then(v=>{v.ok&&v.text().then(x=>{let f=document.createElement("a");f.href=`data:${b};base64,${x}`,f.download=u,f.click(),n(f)})})}};return a}),s(t,"Extensions/Exporting/Exporting.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/Defaults.js"],t["Extensions/Exporting/ExportingDefaults.js"],t["Extensions/Exporting/ExportingSymbols.js"],t["Extensions/Exporting/Fullscreen.js"],t["Core/Globals.js"],t["Core/HttpUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,m,p){var u;let{defaultOptions:b}=n,{doc:v,SVG_NS:x,win:f}=c,{addEvent:A,css:L,createElement:S,discardElement:w,extend:R,find:O,fireEvent:I,isObject:_,merge:P,objectEach:F,pick:T,removeEvent:D,uniqueKey:C}=p;return function(d){let g,y=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^[0-9]+$/],M=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];d.inlineAllowlist=[];let k=["clipPath","defs","desc"];function E($){let Q,et,it=this,st=it.renderer,rt=P(it.options.navigation.buttonOptions,$),nt=rt.onclick,ot=rt.menuItems,at=rt.symbolSize||12;if(it.btnCount||(it.btnCount=0),it.exportDivElements||(it.exportDivElements=[],it.exportSVGElements=[]),rt.enabled===!1||!rt.theme)return;let ct=it.styledMode?{}:rt.theme;nt?et=function(lt){lt&<.stopPropagation(),nt.call(it,lt)}:ot&&(et=function(lt){lt&<.stopPropagation(),it.contextMenu(ht.menuClassName,ot,ht.translateX||0,ht.translateY||0,ht.width||0,ht.height||0,ht),ht.setState(2)}),rt.text&&rt.symbol?ct.paddingLeft=T(ct.paddingLeft,30):rt.text||R(ct,{width:rt.width,height:rt.height,padding:0});let ht=st.button(rt.text,0,0,et,ct,void 0,void 0,void 0,void 0,rt.useHTML).addClass($.className).attr({title:T(it.options.lang[rt._titleKey||rt.titleKey],"")});ht.menuClassName=$.menuClassName||"highcharts-menu-"+it.btnCount++,rt.symbol&&(Q=st.symbol(rt.symbol,Math.round((rt.symbolX||0)-at/2),Math.round((rt.symbolY||0)-at/2),at,at,{width:at,height:at}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(ht),it.styledMode||Q.attr({stroke:rt.symbolStroke,fill:rt.symbolFill,"stroke-width":rt.symbolStrokeWidth||1})),ht.add(it.exportingGroup).align(R(rt,{width:ht.width,x:T(rt.x,it.buttonOffset)}),!0,"spacingBox"),it.buttonOffset+=((ht.width||0)+rt.buttonSpacing)*(rt.align==="right"?-1:1),it.exportSVGElements.push(ht,Q)}function z(){if(!this.printReverseInfo)return;let{childNodes:$,origDisplay:Q,resetParams:et}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call($,function(it,st){it.nodeType===1&&(it.style.display=Q[st]||"")}),this.isPrinting=!1,et&&this.setSize.apply(this,et),delete this.printReverseInfo,g=void 0,I(this,"afterPrint")}function N(){let $=v.body,Q=this.options.exporting.printMaxWidth,et={childNodes:$.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),I(this,"beforePrint"),Q&&this.chartWidth>Q&&(et.resetParams=[this.options.chart.width,void 0,!1],this.setSize(Q,void 0,!1)),[].forEach.call(et.childNodes,function(it,st){it.nodeType===1&&(et.origDisplay[st]=it.style.display,it.style.display="none")}),this.moveContainers($),this.printReverseInfo=et}function G($){$.renderExporting(),A($,"redraw",$.renderExporting),A($,"destroy",$.destroyExport)}function X($,Q,et,it,st,rt,nt){let ot=this,at=ot.options.navigation,ct=ot.chartWidth,ht=ot.chartHeight,lt="cache-"+$,xt=Math.max(st,rt),wt,dt=ot[lt];dt||(ot.exportContextMenu=ot[lt]=dt=S("div",{className:$},xe({position:"absolute",zIndex:1e3,padding:xt+"px",pointerEvents:"auto"},ot.renderer.style),ot.scrollablePlotArea?.fixedDiv||ot.container),wt=S("ul",{className:"highcharts-menu"},ot.styledMode?{}:{listStyle:"none",margin:0,padding:0},dt),ot.styledMode||L(wt,R({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},at.menuStyle)),dt.hideMenu=function(){L(dt,{display:"none"}),nt&&nt.setState(0),ot.openMenu=!1,L(ot.renderTo,{overflow:"hidden"}),L(ot.container,{overflow:"hidden"}),p.clearTimeout(dt.hideTimer),I(ot,"exportMenuHidden")},ot.exportEvents.push(A(dt,"mouseleave",function(){dt.hideTimer=f.setTimeout(dt.hideMenu,500)}),A(dt,"mouseenter",function(){p.clearTimeout(dt.hideTimer)}),A(v,"mouseup",function(ft){ot.pointer?.inClass(ft.target,$)||dt.hideMenu()}),A(dt,"click",function(){ot.openMenu&&dt.hideMenu()})),Q.forEach(function(ft){if(typeof ft=="string"&&(ft=ot.options.exporting.menuItemDefinitions[ft]),_(ft,!0)){let Tt;ft.separator?Tt=S("hr",void 0,void 0,wt):(ft.textKey==="viewData"&&ot.isDataTableVisible&&(ft.textKey="hideData"),Tt=S("li",{className:"highcharts-menu-item",onclick:function(zt){zt&&zt.stopPropagation(),dt.hideMenu(),typeof ft!="string"&&ft.onclick&&ft.onclick.apply(ot,arguments)}},void 0,wt),e.setElementHTML(Tt,ft.text||ot.options.lang[ft.textKey]),ot.styledMode||(Tt.onmouseover=function(){L(this,at.menuItemHoverStyle)},Tt.onmouseout=function(){L(this,at.menuItemStyle)},L(Tt,R({cursor:"pointer"},at.menuItemStyle||{})))),ot.exportDivElements.push(Tt)}}),ot.exportDivElements.push(wt,dt),ot.exportMenuWidth=dt.offsetWidth,ot.exportMenuHeight=dt.offsetHeight);let Ct={display:"block"};et+(ot.exportMenuWidth||0)>ct?Ct.right=ct-et-st-xt+"px":Ct.left=et-xt+"px",it+rt+(ot.exportMenuHeight||0)>ht&&nt.alignOptions?.verticalAlign!=="top"?Ct.bottom=ht-it-xt+"px":Ct.top=it+rt-xt+"px",L(dt,Ct),L(ot.renderTo,{overflow:""}),L(ot.container,{overflow:""}),ot.openMenu=!0,I(ot,"exportMenuShown")}function j($){let Q,et=$?$.target:this,it=et.exportSVGElements,st=et.exportDivElements,rt=et.exportEvents;it&&(it.forEach((nt,ot)=>{nt&&(nt.onclick=nt.ontouchstart=null,et[Q="cache-"+nt.menuClassName]&&delete et[Q],it[ot]=nt.destroy())}),it.length=0),et.exportingGroup&&(et.exportingGroup.destroy(),delete et.exportingGroup),st&&(st.forEach(function(nt,ot){nt&&(p.clearTimeout(nt.hideTimer),D(nt,"mouseleave"),st[ot]=nt.onmouseout=nt.onmouseover=nt.ontouchstart=nt.onclick=null,w(nt))}),st.length=0),rt&&(rt.forEach(function(nt){nt()}),rt.length=0)}function B($,Q){let et=this.getSVGForExport($,Q);$=P(this.options.exporting,$),m.post($.url,{filename:$.filename?$.filename.replace(/\//g,"-"):this.getFilename(),type:$.type,width:$.width,scale:$.scale,svg:et},$.fetchOptions)}function W(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function Y(){let $=this.userOptions.title&&this.userOptions.title.text,Q=this.options.exporting.filename;return Q?Q.replace(/\//g,"-"):(typeof $=="string"&&(Q=$.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!Q||Q.length<5)&&(Q="chart"),Q)}function U($){let Q,et,it=P(this.options,$);it.plotOptions=P(this.userOptions.plotOptions,$&&$.plotOptions),it.time=P(this.userOptions.time,$&&$.time);let st=S("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},v.body),rt=this.renderTo.style.width,nt=this.renderTo.style.height,ot=it.exporting.sourceWidth||it.chart.width||/px$/.test(rt)&&parseInt(rt,10)||(it.isGantt?800:600),at=it.exporting.sourceHeight||it.chart.height||/px$/.test(nt)&&parseInt(nt,10)||400;R(it.chart,{animation:!1,renderTo:st,forExport:!0,renderer:"SVGRenderer",width:ot,height:at}),it.exporting.enabled=!1,delete it.data,it.series=[],this.series.forEach(function(lt){(et=P(lt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:lt.visible})).isInternal||it.series.push(et)});let ct={};this.axes.forEach(function(lt){lt.userOptions.internalKey||(lt.userOptions.internalKey=C()),lt.options.isInternal||(ct[lt.coll]||(ct[lt.coll]=!0,it[lt.coll]=[]),it[lt.coll].push(P(lt.userOptions,{visible:lt.visible})))}),it.colorAxis=this.userOptions.colorAxis;let ht=new this.constructor(it,this.callback);return $&&["xAxis","yAxis","series"].forEach(function(lt){let xt={};$[lt]&&(xt[lt]=$[lt],ht.update(xt))}),this.axes.forEach(function(lt){let xt=O(ht.axes,function(ft){return ft.options.internalKey===lt.userOptions.internalKey}),wt=lt.getExtremes(),dt=wt.userMin,Ct=wt.userMax;xt&&(dt!==void 0&&dt!==xt.min||Ct!==void 0&&Ct!==xt.max)&&xt.setExtremes(dt,Ct,!0,!1)}),Q=ht.getChartHTML(),I(this,"getSVG",{chartCopy:ht}),Q=this.sanitizeSVG(Q,it),it=null,ht.destroy(),w(st),Q}function q($,Q){let et=this.options.exporting;return this.getSVG(P({chart:{borderRadius:0}},et.chartOptions,Q,{exporting:{sourceWidth:$&&$.sourceWidth||et.sourceWidth,sourceHeight:$&&$.sourceHeight||et.sourceHeight}}))}function H(){let $,Q=d.inlineAllowlist,et={},it=v.createElement("iframe");L(it,{width:"1px",height:"1px",visibility:"hidden"}),v.body.appendChild(it);let st=it.contentWindow&&it.contentWindow.document;st&&st.body.appendChild(st.createElementNS(x,"svg")),function rt(nt){let ot,at,ct,ht,lt,xt,wt={};if(st&&nt.nodeType===1&&k.indexOf(nt.nodeName)===-1){if(ot=f.getComputedStyle(nt,null),at=nt.nodeName==="svg"?{}:f.getComputedStyle(nt.parentNode,null),!et[nt.nodeName]){$=st.getElementsByTagName("svg")[0],ct=st.createElementNS(nt.namespaceURI,nt.nodeName),$.appendChild(ct);let dt=f.getComputedStyle(ct,null),Ct={};for(let ft in dt)ft.length<1e3&&typeof dt[ft]=="string"&&!/^[0-9]+$/.test(ft)&&(Ct[ft]=dt[ft]);et[nt.nodeName]=Ct,nt.nodeName==="text"&&delete et.text.fill,$.removeChild(ct)}for(let dt in ot)(c.isFirefox||c.isMS||c.isSafari||Object.hasOwnProperty.call(ot,dt))&&function(Ct,ft){if(ht=lt=!1,Q.length){for(xt=Q.length;xt--&&!lt;)lt=Q[xt].test(ft);ht=!lt}for(ft==="transform"&&Ct==="none"&&(ht=!0),xt=y.length;xt--&&!ht;){if(ft.length>1e3)throw Error("Input too long");ht=y[xt].test(ft)||typeof Ct=="function"}!ht&&(at[ft]!==Ct||nt.nodeName==="svg")&&et[nt.nodeName][ft]!==Ct&&(M&&M.indexOf(ft)===-1?wt[ft]=Ct:Ct&&nt.setAttribute(ft.replace(/([A-Z])/g,function(Tt,zt){return"-"+zt.toLowerCase()}),Ct))}(ot[dt],dt);if(L(nt,wt),nt.nodeName==="svg"&&nt.setAttribute("stroke-width","1px"),nt.nodeName==="text")return;[].forEach.call(nt.children||nt.childNodes,rt)}}(this.container.querySelector("svg")),$.parentNode.removeChild($),it.parentNode.removeChild(it)}function V($){let{scrollablePlotArea:Q}=this;(Q?[Q.fixedDiv,Q.scrollingContainer]:[this.container]).forEach(function(et){$.appendChild(et)})}function Z(){let $=this,Q=(et,it,st)=>{$.isDirtyExporting=!0,P(!0,$.options[et],it),T(st,!0)&&$.redraw()};$.exporting={update:function(et,it){Q("exporting",et,it)}},r.compose($).navigation.addUpdate((et,it)=>{Q("navigation",et,it)})}function K(){let $=this;$.isPrinting||(g=$,c.isSafari||$.beforePrint(),setTimeout(()=>{f.focus(),f.print(),c.isSafari||setTimeout(()=>{$.afterPrint()},1e3)},1))}function J(){let $=this,Q=$.options.exporting,et=Q.buttons,it=$.isDirtyExporting||!$.exportSVGElements;$.buttonOffset=0,$.isDirtyExporting&&$.destroyExport(),it&&Q.enabled!==!1&&($.exportEvents=[],$.exportingGroup=$.exportingGroup||$.renderer.g("exporting-group").attr({zIndex:3}).add(),F(et,function(st){$.addButton(st)}),$.isDirtyExporting=!1)}function tt($,Q){let et=$.indexOf("")+6,it=$.substr(et);return $=$.substr(0,et),Q&&Q.exporting&&Q.exporting.allowHTML&&it&&(it=''+it.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",$=$.replace("",it+"")),$=$.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{"use strict";(function(o){typeof Vn=="object"&&Vn.exports?(o.default=o,Vn.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/stock",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{tooltipFormatter:a}=i.prototype,{addEvent:h,arrayMax:c,arrayMin:m,correctFloat:p,defined:u,isArray:b,isNumber:v,isString:x,pick:f}=n;return function(A){function L(D,C,d){!this.isXAxis&&(this.series.forEach(function(g){D==="compare"&&typeof C!="boolean"?g.setCompare(C,!1):D!=="cumulative"||x(C)||g.setCumulative(C,!1)}),f(d,!0)&&this.chart.redraw())}function S(D){let C=this,{numberFormatter:d}=C.series.chart,g=function(y){D=D.replace("{point."+y+"}",(C[y]>0&&y==="change"?"+":"")+d(C[y],f(C.series.tooltipOptions.changeDecimals,2)))};return u(C.change)&&g("change"),u(C.cumulativeSum)&&g("cumulativeSum"),a.apply(this,[D])}function w(){let D,C=this.options.compare;(C==="percent"||C==="value"||this.options.cumulative)&&(D=new T(this),C==="percent"||C==="value"?D.initCompare(C):D.initCumulative()),this.dataModify=D}function R(D){let C=D.dataExtremes,d=C.activeYData;if(this.dataModify&&C){let g;this.options.compare?g=[this.dataModify.modifyValue(C.dataMin),this.dataModify.modifyValue(C.dataMax)]:this.options.cumulative&&b(d)&&d.length>=2&&(g=T.getCumulativeExtremes(d)),g&&(C.dataMin=m(g),C.dataMax=c(g))}}function O(D,C){this.options.compare=this.userOptions.compare=D,this.update({},f(C,!0)),this.dataModify&&(D==="value"||D==="percent")?this.dataModify.initCompare(D):this.points.forEach(d=>{delete d.change})}function I(){if(this.xAxis&&this.processedYData&&this.dataModify){let D=this.processedXData,C=this.processedYData,d=C.length,g=this.options.compareStart===!0?0:1,y=-1,M;for(this.pointArrayMap&&(y=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),M=0;M-1?C[M][y]:C[M];if(v(k)&&k!==0&&D[M+g]>=(this.xAxis.min||0)){this.dataModify.compareValue=k;break}}}}function _(D,C){this.setModifier("compare",D,C)}function P(D,C){D=f(D,!1),this.options.cumulative=this.userOptions.cumulative=D,this.update({},f(C,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(d=>{delete d.cumulativeSum})}function F(D,C){this.setModifier("cumulative",D,C)}A.compose=function(D,C,d){let g=C.prototype,y=d.prototype,M=D.prototype;return M.setCompare||(M.setCompare=O,M.setCumulative=P,h(D,"afterInit",w),h(D,"afterGetExtremes",R),h(D,"afterProcessData",I)),g.setCompare||(g.setCompare=_,g.setModifier=L,g.setCumulative=F,y.tooltipFormatter=S),D};class T{constructor(C){this.series=C}modifyValue(){return 0}static getCumulativeExtremes(C){let d=1/0,g=-1/0;return C.reduce((y,M)=>{let k=y+M;return d=Math.min(d,k,y),g=Math.max(g,k,y),k}),[d,g]}initCompare(C){this.modifyValue=function(d,g){d===null&&(d=0);let y=this.compareValue;if(d!==void 0&&y!==void 0){if(C==="value"?d-=y:d=d/y*100-(this.series.options.compareBase===100?0:100),g!==void 0){let M=this.series.points[g];M&&(M.change=d)}return d}return 0}}initCumulative(){this.modifyValue=function(C,d){if(C===null&&(C=0),C!==void 0&&d!==void 0){let g=d>0?this.series.points[d-1]:null;g&&g.cumulativeSum&&(C=p(g.cumulativeSum+C));let y=this.series.points[d],M=y.series.options.cumulativeStart,k=y.x<=this.series.xAxis.max&&y.x>=this.series.xAxis.min;return y&&(!M||k?y.cumulativeSum=C:y.cumulativeSum=void 0),C}return 0}}}A.Additions=T}(l||(l={})),l}),s(t,"Stock/Navigator/ChartNavigatorComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let r,{isTouchDevice:n}=e,{addEvent:l,merge:a,pick:h}=i,c=[];function m(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function p(){let A,L,S,w=this.legend,R=this.navigator;if(R){A=w&&w.options,L=R.xAxis,S=R.yAxis;let{scrollbarHeight:O,scrollButtonSize:I}=R;this.inverted?(R.left=R.opposite?this.chartWidth-O-R.height:this.spacing[3]+O,R.top=this.plotTop+I):(R.left=h(L.left,this.plotLeft+I),R.top=R.navigatorOptions.top||this.chartHeight-R.height-O-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(A&&A.verticalAlign==="bottom"&&A.layout!=="proximate"&&A.enabled&&!A.floating?w.legendHeight+h(A.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),L&&S&&(this.inverted?L.options.left=S.options.left=R.left:L.options.top=S.options.top=R.top,L.setAxisSize(),S.setAxisSize())}}function u(A){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this),h(A.redraw,!0)&&this.redraw(A.animation))}function b(){let A=this.options;(A.navigator.enabled||A.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this))}function v(){let A=this.options,L=A.navigator,S=A.rangeSelector;if((L&&L.enabled||S&&S.enabled)&&(!n&&this.zooming.type==="x"||n&&this.zooming.pinchType==="x"))return!1}function x(A){let L=A.navigator;if(L&&A.xAxis[0]){let S=A.xAxis[0].getExtremes();L.render(S.min,S.max)}}function f(A){let L=A.options.navigator||{},S=A.options.scrollbar||{};!this.navigator&&!this.scroller&&(L.enabled||S.enabled)&&(a(!0,this.options.navigator,L),a(!0,this.options.scrollbar,S),delete A.options.navigator,delete A.options.scrollbar)}return{compose:function(A,L){if(i.pushUnique(c,A)){let S=A.prototype;r=L,S.callbacks.push(x),l(A,"afterAddSeries",m),l(A,"afterSetChartSize",p),l(A,"afterUpdate",u),l(A,"beforeRender",b),l(A,"beforeShowResetZoom",v),l(A,"update",f)}}}}),s(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){let{isTouchDevice:r}=e,{addEvent:n,correctFloat:l,defined:a,isNumber:h,pick:c}=i;function m(){this.navigatorAxis||(this.navigatorAxis=new u(this))}function p(b){let v,x=this.chart,f=x.options,A=f.navigator,L=this.navigatorAxis,S=x.zooming.pinchType,w=f.rangeSelector,R=x.zooming.type;if(this.isXAxis&&(A?.enabled||w?.enabled)){if(R==="y"&&b.trigger==="zoom")v=!1;else if((b.trigger==="zoom"&&R==="xy"||r&&S==="xy")&&this.options.range){let O=L.previousZoom;a(b.min)?L.previousZoom=[this.min,this.max]:O&&(b.min=O[0],b.max=O[1],L.previousZoom=void 0)}}v!==void 0&&b.preventDefault()}class u{static compose(v){v.keepProps.includes("navigatorAxis")||(v.keepProps.push("navigatorAxis"),n(v,"init",m),n(v,"setExtremes",p))}constructor(v){this.axis=v}destroy(){this.axis=void 0}toFixedRange(v,x,f,A){let L=this.axis,S=(L.pointRange||0)/2,w=c(f,L.translate(v,!0,!L.horiz)),R=c(A,L.translate(x,!0,!L.horiz));return a(f)||(w=l(w+S)),a(A)||(R=l(R-S)),h(w)&&h(R)||(w=R=void 0),{min:w,max:R}}}return u}),s(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(e,i){let{parse:r}=e,{seriesTypes:n}=i;return{height:40,margin:25,maskInside:!0,handles:{width:7,borderRadius:0,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:r("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:n.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),s(t,"Stock/Navigator/NavigatorSymbols.js",[t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(e,i){let{relativeLength:r}=i;return{"navigator-handle":function(n,l,a,h,c={}){let m=c.width?c.width/2:a,p=r(c.borderRadius||0,Math.min(2*m,h));return[["M",-1.5,(h=c.height||h)/2-3.5],["L",-1.5,h/2+4.5],["M",.5,h/2-3.5],["L",.5,h/2+4.5],...e.rect(-m-1,.5,2*m+1,h,{r:p})]}}}),s(t,"Stock/Utilities/StockUtilities.js",[t["Core/Utilities.js"]],function(e){let{defined:i}=e;return{setFixedRange:function(r){let n=this.xAxis[0];i(n.dataMax)&&i(n.dataMin)&&r?this.fixedRange=Math.min(r,n.dataMax-n.dataMin):this.fixedRange=r}}}),s(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{setOptions:m}=e,{composed:p}=i,{getRendererType:u}=a,{setFixedRange:b}=h,{addEvent:v,extend:x,pushUnique:f}=c;function A(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(L,S,w){r.compose(S),f(p,"Navigator")&&(L.prototype.setFixedRange=b,x(u().prototype.symbols,l),v(w,"afterUpdate",A),m({navigator:n}))}}}),s(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,i){var r;let{composed:n}=e,{addEvent:l,defined:a,pick:h,pushUnique:c}=i;return function(m){let p;function u(f){let A=h(f.options&&f.options.min,f.min),L=h(f.options&&f.options.max,f.max);return{axisMin:A,axisMax:L,scrollMin:a(f.dataMin)?Math.min(A,f.min,f.dataMin,h(f.threshold,1/0)):A,scrollMax:a(f.dataMax)?Math.max(L,f.max,f.dataMax,h(f.threshold,-1/0)):L}}function b(){let f=this.scrollbar,A=f&&!f.options.opposite,L=this.horiz?2:A?3:1;f&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[L]+=f.size+(f.options.margin||0))}function v(){let f=this;f.options&&f.options.scrollbar&&f.options.scrollbar.enabled&&(f.options.scrollbar.vertical=!f.horiz,f.options.startOnTick=f.options.endOnTick=!1,f.scrollbar=new p(f.chart.renderer,f.options.scrollbar,f.chart),l(f.scrollbar,"changed",function(A){let L,S,{axisMin:w,axisMax:R,scrollMin:O,scrollMax:I}=u(f),_=I-O;if(a(w)&&a(R))if(f.horiz&&!f.reversed||!f.horiz&&f.reversed?(L=O+_*this.to,S=O+_*this.from):(L=O+_*(1-this.from),S=O+_*(1-this.to)),this.shouldUpdateExtremes(A.DOMType)){let P=A.DOMType!=="mousemove"&&A.DOMType!=="touchmove"&&void 0;f.setExtremes(S,L,!0,P,A)}else this.setRange(this.from,this.to)}))}function x(){let f,A,L,{scrollMin:S,scrollMax:w}=u(this),R=this.scrollbar,O=this.axisTitleMargin+(this.titleOffset||0),I=this.chart.scrollbarsOffsets,_=this.options.margin||0;if(R&&I){if(this.horiz)this.opposite||(I[1]+=O),R.position(this.left,this.top+this.height+2+I[1]-(this.opposite?_:0),this.width,this.height),this.opposite||(I[1]+=_),f=1;else{let P;this.opposite&&(I[0]+=O),P=R.options.opposite?this.left+this.width+2+I[0]-(this.opposite?0:_):this.opposite?0:_,R.position(P,this.top,this.width,this.height),this.opposite&&(I[0]+=_),f=0}I[f]+=R.size+(R.options.margin||0),isNaN(S)||isNaN(w)||!a(this.min)||!a(this.max)||this.min===this.max?R.setRange(0,1):(A=(this.min-S)/(w-S),L=(this.max-S)/(w-S),this.horiz&&!this.reversed||!this.horiz&&this.reversed?R.setRange(A,L):R.setRange(1-L,1-A))}}m.compose=function(f,A){c(n,"Axis.Scrollbar")&&(p=A,l(f,"afterGetOffset",b),l(f,"afterInit",v),l(f,"afterRender",x))}}(r||(r={})),r}),s(t,"Stock/Scrollbar/ScrollbarDefaults.js",[],function(){return{height:10,barBorderRadius:5,buttonBorderRadius:0,buttonsEnabled:!1,liveRedraw:void 0,margin:void 0,minWidth:6,opposite:!0,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:0,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"none",trackBackgroundColor:"rgba(255, 255, 255, 0.001)",trackBorderColor:"#cccccc",trackBorderRadius:5,trackBorderWidth:1}}),s(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{defaultOptions:a}=e,{addEvent:h,correctFloat:c,crisp:m,defined:p,destroyObjectProperties:u,fireEvent:b,merge:v,pick:x,removeEvent:f}=l;class A{static compose(S){r.compose(S,A)}static swapXY(S,w){return w&&S.forEach(R=>{let O,I=R.length;for(let _=0;_this.calculatedWidth?w.minWidth:0;return{chartX:(S.chartX-this.x-this.xOffset)/(this.barWidth-R),chartY:(S.chartY-this.y-this.yOffset)/(this.barWidth-R)}}destroy(){let S=this,w=S.chart.scroller;S.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(R){S[R]&&S[R].destroy&&(S[R]=S[R].destroy())}),w&&S===w.scrollbar&&(w.scrollbar=null,u(w.scrollbarButtons))}drawScrollbarButton(S){let w=this.renderer,R=this.scrollbarButtons,O=this.options,I=this.size,_=w.g().add(this.group);if(R.push(_),O.buttonsEnabled){let P=w.rect().addClass("highcharts-scrollbar-button").add(_);this.chart.styledMode||P.attr({stroke:O.buttonBorderColor,"stroke-width":O.buttonBorderWidth,fill:O.buttonBackgroundColor}),P.attr(P.crisp({x:-.5,y:-.5,width:I,height:I,r:O.buttonBorderRadius},P.strokeWidth()));let F=w.path(A.swapXY([["M",I/2+(S?-1:1),I/2-3],["L",I/2+(S?-1:1),I/2+3],["L",I/2+(S?2:-2),I/2]],O.vertical)).addClass("highcharts-scrollbar-arrow").add(R[S]);this.chart.styledMode||F.attr({fill:O.buttonArrowColor})}}init(S,w,R){this.scrollbarButtons=[],this.renderer=S,this.userOptions=w,this.options=v(n,a.scrollbar,w),this.options.margin=x(this.options.margin,10),this.chart=R,this.size=x(this.options.size,this.options.height),w.enabled&&(this.render(),this.addEvents())}mouseDownHandler(S){let w=this.chart.pointer?.normalize(S)||S,R=this.cursorToScrollbarPosition(w);this.chartX=R.chartX,this.chartY=R.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(S){let w,R=this.chart.pointer?.normalize(S)||S,O=this.options.vertical?"chartY":"chartX",I=this.initPositions||[];this.grabbedCenter&&(!S.touches||S.touches[0][O]!==0)&&(w=this.cursorToScrollbarPosition(R)[O]-this[O],this.hasDragged=!0,this.updatePosition(I[0]+w,I[1]+w),this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}))}mouseUpHandler(S){this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(S,w,R,O){let{buttonsEnabled:I,margin:_=0,vertical:P}=this.options,F=this.rendered?"animate":"attr",T=O,D=0;this.group.show(),this.x=S,this.y=w+this.trackBorderWidth,this.width=R,this.height=O,this.xOffset=T,this.yOffset=D,P?(this.width=this.yOffset=R=D=this.size,this.xOffset=T=0,this.yOffset=D=I?this.size:0,this.barWidth=O-(I?2*R:0),this.x=S+=_):(this.height=O=this.size,this.xOffset=T=I?this.size:0,this.barWidth=R-(I?2*O:0),this.y=this.y+_),this.group[F]({translateX:S,translateY:this.y}),this.track[F]({width:R,height:O}),this.scrollbarButtons[1][F]({translateX:P?0:R-T,translateY:P?O-D:0})}removeEvents(){this._events.forEach(function(S){f.apply(null,S)}),this._events.length=0}render(){let S=this.renderer,w=this.options,R=this.size,O=this.chart.styledMode,I=S.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();this.group=I,this.track=S.rect().addClass("highcharts-scrollbar-track").attr({r:w.trackBorderRadius||0,height:R,width:R}).add(I),O||this.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth});let _=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-m(0,_),y:-m(0,_)}),this.scrollbarGroup=S.g().add(I),this.scrollbar=S.rect().addClass("highcharts-scrollbar-thumb").attr({height:R-_,width:R-_,r:w.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=S.path(A.swapXY([["M",-3,R/4],["L",-3,2*R/3],["M",0,R/4],["L",0,2*R/3],["M",3,R/4],["L",3,2*R/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),O||(this.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),this.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-m(0,this.scrollbarStrokeWidth),-m(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(S,w){let R,O,I=this.options,_=I.vertical,P=I.minWidth,F=this.barWidth,T=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!p(F))return;let D=F*Math.min(w,1);R=Math.ceil(F*(S=Math.max(S,0))),this.calculatedWidth=O=c(D-R),O=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(S){return x(this.options.liveRedraw,i.svg&&!i.isTouchDevice&&!this.chart.boosted)||S==="mouseup"||S==="touchend"||!p(S)}trackClick(S){let w=this.chart.pointer?.normalize(S)||S,R=this.to-this.from,O=this.y+this.scrollbarTop,I=this.x+this.scrollbarLeft;this.options.vertical&&w.chartY>O||!this.options.vertical&&w.chartX>I?this.updatePosition(this.from+R,this.to+R):this.updatePosition(this.from-R,this.to-R),b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:S})}update(S){this.destroy(),this.init(this.chart.renderer,v(!0,this.options,S),this.chart)}updatePosition(S,w){w>1&&(S=c(1-c(w-S)),w=1),S<0&&(w=c(w-S),S=0),this.from=S,this.to=w}}return A.defaultOptions=n,a.scrollbar=v(!0,A.defaultOptions,a.scrollbar),A}),s(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Stock/Navigator/ChartNavigatorComposition.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{defaultOptions:m}=r,{isTouchDevice:p}=n,{addEvent:u,clamp:b,correctFloat:v,defined:x,destroyObjectProperties:f,erase:A,extend:L,find:S,fireEvent:w,isArray:R,isNumber:O,merge:I,pick:_,removeEvent:P,splat:F}=c;function T(C,...d){let g=[].filter.call(d,O);if(g.length)return Math[C].apply(0,g)}class D{static compose(d,g,y){i.compose(d,D),a.compose(d,g,y)}constructor(d){this.scrollbarHeight=0,this.init(d)}drawHandle(d,g,y,M){let k=this.navigatorOptions.handles.height;this.handles[g][M](y?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(d,10)+.5-k)}:{translateX:Math.round(this.left+parseInt(d,10)),translateY:Math.round(this.top+this.height/2-k/2-1)})}drawOutline(d,g,y,M){let k=this.navigatorOptions.maskInside,E=this.outline.strokeWidth(),z=E/2,N=E%2/2,G=this.scrollButtonSize,X=this.size,j=this.top,B=this.height,W=j-z,Y=j+B,U=this.left,q,H;y?(q=j+g+N,g=j+d+N,H=[["M",U+B,j-G-N],["L",U+B,q],["L",U,q],["M",U,g],["L",U+B,g],["L",U+B,j+X+G]],k&&H.push(["M",U+B,q-z],["L",U+B,g+z])):(U-=G,d+=U+G-N,g+=U+G-N,H=[["M",U,W],["L",d,W],["L",d,Y],["M",g,Y],["L",g,W],["L",U+X+2*G,j+z]],k&&H.push(["M",d-z,W],["L",g+z,W])),this.outline[M]({d:H})}drawMasks(d,g,y,M){let k,E,z,N,G=this.left,X=this.top,j=this.height;y?(z=[G,G,G],N=[X,X+d,X+g],E=[j,j,j],k=[d,g-d,this.size-g]):(z=[G,G+d,G+g],N=[X,X,X],E=[d,g-d,this.size-g],k=[j,j,j]),this.shades.forEach((B,W)=>{B[M]({x:z[W],y:N[W],width:E[W],height:k[W]})})}renderElements(){let d=this,g=d.navigatorOptions,y=g.maskInside,M=d.chart,k=M.inverted,E=M.renderer,z={cursor:k?"ns-resize":"ew-resize"},N=d.navigatorGroup=E.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!y,y,!y].forEach((G,X)=>{let j=E.rect().addClass("highcharts-navigator-mask"+(X===1?"-inside":"-outside")).add(N);M.styledMode||(j.attr({fill:G?g.maskFill:"rgba(0,0,0,0)"}),X===1&&j.css(z)),d.shades[X]=j}),d.outline=E.path().addClass("highcharts-navigator-outline").add(N),M.styledMode||d.outline.attr({"stroke-width":g.outlineWidth,stroke:g.outlineColor}),g.handles&&g.handles.enabled){let G=g.handles,{height:X,width:j}=G;[0,1].forEach(B=>{d.handles[B]=E.symbol(G.symbols[B],-j/2-1,0,j,X,G),M.inverted&&d.handles[B].attr({rotation:90,rotationOriginX:Math.floor(-j/2),rotationOriginY:(X+j)/2}),d.handles[B].attr({zIndex:7-B}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][B]).add(N),M.styledMode||d.handles[B].attr({fill:G.backgroundColor,stroke:G.borderColor,"stroke-width":G.lineWidth}).css(z)})}}update(d){(this.series||[]).forEach(g=>{g.baseSeries&&delete g.baseSeries.navigatorSeries}),this.destroy(),I(!0,this.chart.options.navigator,d),this.init(this.chart)}render(d,g,y,M){let k=this.chart,E=this.xAxis,z=E.pointRange||0,N=E.navigatorAxis.fake?k.xAxis[0]:E,G=this.navigatorEnabled,X=this.rendered,j=k.inverted,B=k.xAxis[0].minRange,W=k.xAxis[0].options.maxRange,Y=this.scrollButtonSize,U,q,H,V=this.scrollbarHeight,Z,K;if(this.hasDragged&&!x(y))return;if(d=v(d-z/2),g=v(g+z/2),!O(d)||!O(g)){if(!X)return;y=0,M=_(E.width,N.width)}this.left=_(E.left,k.plotLeft+Y+(j?k.plotWidth:0));let J=this.size=Z=_(E.len,(j?k.plotHeight:k.plotWidth)-2*Y);U=j?V:Z+2*Y,y=_(y,E.toPixels(d,!0)),M=_(M,E.toPixels(g,!0)),O(y)&&Math.abs(y)!==1/0||(y=0,M=U);let tt=E.toValue(y,!0),$=E.toValue(M,!0),Q=Math.abs(v($-tt));QW&&(this.grabbedLeft?y=E.toPixels($-W-z,!0):this.grabbedRight&&(M=E.toPixels(tt+W+z,!0))),this.zoomedMax=b(Math.max(y,M),0,J),this.zoomedMin=b(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(y,M),0,J),this.range=this.zoomedMax-this.zoomedMin,J=Math.round(this.zoomedMax);let et=Math.round(this.zoomedMin);G&&(this.navigatorGroup.attr({visibility:"inherit"}),K=X&&!this.hasDragged?"animate":"attr",this.drawMasks(et,J,j,K),this.drawOutline(et,J,j,K),this.navigatorOptions.handles.enabled&&(this.drawHandle(et,0,j,K),this.drawHandle(J,1,j,K))),this.scrollbar&&(j?(H=this.top-Y,q=this.left-V+(G||!N.opposite?0:(N.titleOffset||0)+N.axisTitleMargin),V=Z+2*Y):(H=this.top+(G?this.height:-V),q=this.left-Y),this.scrollbar.position(q,H,U,V),this.scrollbar.setRange(this.zoomedMin/(Z||1),this.zoomedMax/(Z||1))),this.rendered=!0,w(this,"afterRender")}addMouseEvents(){let d=this,g=d.chart,y=g.container,M=[],k,E;d.mouseMoveHandler=k=function(z){d.onMouseMove(z)},d.mouseUpHandler=E=function(z){d.onMouseUp(z)},(M=d.getPartsEvents("mousedown")).push(u(g.renderTo,"mousemove",k),u(y.ownerDocument,"mouseup",E),u(g.renderTo,"touchmove",k),u(y.ownerDocument,"touchend",E)),M.concat(d.getPartsEvents("touchstart")),d.eventsToUnbind=M,d.series&&d.series[0]&&M.push(u(d.series[0].xAxis,"foundExtremes",function(){g.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(d){let g=this,y=[];return["shades","handles"].forEach(function(M){g[M].forEach(function(k,E){y.push(u(k.element,d,function(z){g[M+"Mousedown"](z,E)}))})}),y}shadesMousedown(d,g){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=this.xAxis,k=this.zoomedMin,E=this.size,z=this.range,N=this.left,G=d.chartX,X,j,B,W;y.inverted&&(G=d.chartY,N=this.top),g===1?(this.grabbedCenter=G,this.fixedWidth=z,this.dragOffset=G-k):(W=G-N-z/2,g===0?W=Math.max(0,W):g===2&&W+z>=E&&(W=E-z,this.reversedExtremes?(W-=z,j=this.getUnionExtremes().dataMin):X=this.getUnionExtremes().dataMax),W!==k&&(this.fixedWidth=z,x((B=M.navigatorAxis.toFixedRange(W,W+z,j,X)).min)&&w(this,"setRange",{min:Math.min(B.min,B.max),max:Math.max(B.min,B.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(d,g){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=y.xAxis[0],k=this.reversedExtremes;g===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=k?M.min:M.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=k?M.max:M.min),y.setFixedRange(void 0)}onMouseMove(d){let g=this,y=g.chart,M=g.navigatorSize,k=g.range,E=g.dragOffset,z=y.inverted,N=g.left,G;(!d.touches||d.touches[0].pageX!==0)&&(G=(d=y.pointer?.normalize(d)||d).chartX,z&&(N=g.top,G=d.chartY),g.grabbedLeft?(g.hasDragged=!0,g.render(0,0,G-N,g.otherHandlePos)):g.grabbedRight?(g.hasDragged=!0,g.render(0,0,g.otherHandlePos,G-N)):g.grabbedCenter&&(g.hasDragged=!0,GM+E-k&&(G=M+E-k),g.render(0,0,G-E,G-E+k)),g.hasDragged&&g.scrollbar&&_(g.scrollbar.options.liveRedraw,!p&&!this.chart.boosted)&&(d.DOMType=d.type,setTimeout(function(){g.onMouseUp(d)},0)))}onMouseUp(d){let g,y,M,k,E,z,N=this.chart,G=this.xAxis,X=this.scrollbar,j=d.DOMEvent||d,B=N.inverted,W=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!X||!X.hasDragged)||d.trigger==="scrollbar")&&(M=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?k=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(E=this.fixedExtreme),this.zoomedMax===this.size&&(E=this.reversedExtremes?M.dataMin:M.dataMax),this.zoomedMin===0&&(k=this.reversedExtremes?M.dataMax:M.dataMin),x((z=G.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,E)).min)&&w(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:j}})),d.DOMType!=="mousemove"&&d.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&O(this.zoomedMin)&&O(this.zoomedMax)&&(y=Math.round(this.zoomedMin),g=Math.round(this.zoomedMax),this.shades&&this.drawMasks(y,g,B,W),this.outline&&this.drawOutline(y,g,B,W),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(y,0,B,W),this.drawHandle(g,1,B,W)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(d){d()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let d=this.baseSeries||[];this.navigatorEnabled&&d[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&d.forEach(function(g){P(g,"updatedData",this.updatedDataHandler)},this),d[0].xAxis&&P(d[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(d){let g=d.options,y=g.navigator||{},M=y.enabled,k=g.scrollbar||{},E=k.enabled,z=M&&y.height||0,N=E&&k.height||0,G=k.buttonsEnabled&&N||0;this.handles=[],this.shades=[],this.chart=d,this.setBaseSeries(),this.height=z,this.scrollbarHeight=N,this.scrollButtonSize=G,this.scrollbarEnabled=E,this.navigatorEnabled=M,this.navigatorOptions=y,this.scrollbarOptions=k,this.opposite=_(y.opposite,!!(!M&&d.inverted));let X=this,j=X.baseSeries,B=d.xAxis.length,W=d.yAxis.length,Y=j&&j[0]&&j[0].xAxis||d.xAxis[0]||{options:{}};if(d.isDirtyBox=!0,X.navigatorEnabled?(X.xAxis=new e(d,I({breaks:Y.options.breaks,ordinal:Y.options.ordinal,overscroll:Y.options.overscroll},y.xAxis,{type:"datetime",index:B,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},d.inverted?{offsets:[G,0,-G,0],width:z}:{offsets:[0,-G,0,G],height:z}),"xAxis"),X.yAxis=new e(d,I(y.yAxis,{alignTicks:!1,offset:0,index:W,isInternal:!0,reversed:_(y.yAxis&&y.yAxis.reversed,d.yAxis[0]&&d.yAxis[0].reversed,!1),zoomEnabled:!1},d.inverted?{width:z}:{height:z}),"yAxis"),j||y.series.data?X.updateNavigatorSeries(!1):d.series.length===0&&(X.unbindRedraw=u(d,"beforeRedraw",function(){d.series.length>0&&!X.series&&(X.setBaseSeries(),X.unbindRedraw())})),X.reversedExtremes=d.inverted&&!X.xAxis.reversed||!d.inverted&&X.xAxis.reversed,X.renderElements(),X.addMouseEvents()):(X.xAxis={chart:d,navigatorAxis:{fake:!0},translate:function(U,q){let H=d.xAxis[0],V=H.getExtremes(),Z=H.len-2*G,K=T("min",H.options.min,V.dataMin),J=T("max",H.options.max,V.dataMax)-K;return q?U*J/Z+K:Z*(U-K)/J},toPixels:function(U){return this.translate(U)},toValue:function(U){return this.translate(U,!0)}},X.xAxis.navigatorAxis.axis=X.xAxis,X.xAxis.navigatorAxis.toFixedRange=l.prototype.toFixedRange.bind(X.xAxis.navigatorAxis)),d.options.scrollbar.enabled){let U=I(d.options.scrollbar,{vertical:d.inverted});!O(U.margin)&&X.navigatorEnabled&&(U.margin=d.inverted?-3:3),d.scrollbar=X.scrollbar=new h(d.renderer,U,d),u(X.scrollbar,"changed",function(q){let H=X.size,V=H*this.to,Z=H*this.from;X.hasDragged=X.scrollbar.hasDragged,X.render(0,0,Z,V),this.shouldUpdateExtremes(q.DOMType)&&setTimeout(function(){X.onMouseUp(q)})})}X.addBaseSeriesEvents(),X.addChartEvents()}getUnionExtremes(d){let g,y=this.chart.xAxis[0],M=this.xAxis,k=M.options,E=y.options;return d&&y.dataMin===null||(g={dataMin:_(k&&k.min,T("min",E.min,y.dataMin,M.dataMin,M.min)),dataMax:_(k&&k.max,T("max",E.max,y.dataMax,M.dataMax,M.max))}),g}setBaseSeries(d,g){let y=this.chart,M=this.baseSeries=[];d=d||y.options&&y.options.navigator.baseSeries||(y.series.length?S(y.series,k=>!k.options.isInternal).index:0),(y.series||[]).forEach((k,E)=>{!k.options.isInternal&&(k.options.showInNavigator||(E===d||k.options.id===d)&&k.options.showInNavigator!==!1)&&M.push(k)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,g)}updateNavigatorSeries(d,g){let y=this,M=y.chart,k=y.baseSeries,E={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},z=y.series=(y.series||[]).filter(B=>{let W=B.baseSeries;return!(0>k.indexOf(W))||(W&&(P(W,"updatedData",y.updatedDataHandler),delete W.navigatorSeries),B.chart&&B.destroy(),!1)}),N,G,X=y.navigatorOptions.series,j;k&&k.length&&k.forEach(B=>{let W=B.navigatorSeries,Y=L({color:B.color,visible:B.visible},R(X)?m.navigator.series:X);if(W&&y.navigatorOptions.adaptToUpdatedData===!1)return;E.name="Navigator "+k.length,j=(N=B.options||{}).navigatorOptions||{},Y.dataLabels=F(Y.dataLabels),(G=I(N,E,Y,j)).pointRange=_(Y.pointRange,j.pointRange,m.plotOptions[G.type||"line"].pointRange);let U=j.data||Y.data;y.hasNavigatorData=y.hasNavigatorData||!!U,G.data=U||N.data&&N.data.slice(0),W&&W.options?W.update(G,g):(B.navigatorSeries=M.initSeries(G),M.setSortedData(),B.navigatorSeries.baseSeries=B,z.push(B.navigatorSeries))}),(X.data&&!(k&&k.length)||R(X))&&(y.hasNavigatorData=!1,(X=F(X)).forEach((B,W)=>{E.name="Navigator "+(z.length+1),(G=I(m.navigator.series,{color:M.series[W]&&!M.series[W].options.isInternal&&M.series[W].color||M.options.colors[W]||M.options.colors[0]},E,B)).data=B.data,G.data&&(y.hasNavigatorData=!0,z.push(M.initSeries(G)))})),d&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let d=this,g=d.baseSeries||[];g[0]&&g[0].xAxis&&g[0].eventsToUnbind.push(u(g[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),g.forEach(y=>{y.eventsToUnbind.push(u(y,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),y.eventsToUnbind.push(u(y,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&y.xAxis&&y.eventsToUnbind.push(u(y,"updatedData",this.updatedDataHandler)),y.eventsToUnbind.push(u(y,"remove",function(){this.navigatorSeries&&(A(d.series,this.navigatorSeries),x(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(d){return this.baseSeries.reduce(function(g,y){return Math.min(g,y.xData&&y.xData.length?y.xData[0]:g)},d)}modifyNavigatorAxisExtremes(){let d=this.xAxis;if(d.getExtremes!==void 0){let g=this.getUnionExtremes(!0);g&&(g.dataMin!==d.min||g.dataMax!==d.max)&&(d.min=g.dataMin,d.max=g.dataMax)}}modifyBaseAxisExtremes(){let d,g,y=this.chart.navigator,M=this.getExtremes(),k=M.min,E=M.max,z=M.dataMin,N=M.dataMax,G=E-k,X=y.stickToMin,j=y.stickToMax,B=_(this.ordinal?.convertOverscroll(this.options.overscroll),0),W=y.series&&y.series[0],Y=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(X&&(d=(g=z)+G),j&&(d=N+B,X||(g=Math.max(z,d-G,y.getBaseSeriesMin(W&&W.xData?W.xData[0]:-Number.MAX_VALUE)))),Y&&(X||j)&&O(g)&&(this.min=this.userMin=g,this.max=this.userMax=d)),y.stickToMin=y.stickToMax=null}updatedDataHandler(){let d=this.chart.navigator,g=this.navigatorSeries,y=d.reversedExtremes?Math.round(d.zoomedMin)===0:Math.round(d.zoomedMax)>=Math.round(d.size);d.stickToMax=_(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,y),d.stickToMin=d.shouldStickToMin(this,d),g&&!d.hasNavigatorData&&(g.options.pointStart=this.xData[0],g.setData(this.options.data,!1,null,!1))}shouldStickToMin(d,g){let y=g.getBaseSeriesMin(d.xData[0]),M=d.xAxis,k=M.max,E=M.min,z=M.options.range;return!!(O(k)&&O(E))&&(z&&k-y>0?k-y{d.destroy&&d.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(d=>{this[d]&&this[d].destroy&&this[d].destroy(),this[d]=null}),[this.handles].forEach(d=>{f(d)})}}return D}),s(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{addEvent:a,correctFloat:h,css:c,defined:m,error:p,isNumber:u,pick:b,timeUnits:v,isString:x}=n;return function(f){function A(C,d,g,y,M=[],k=0,E){let z={},N=this.options.tickPixelInterval,G=this.chart.time,X=[],j,B,W,Y,U,q=0,H=[],V=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!M||M.length<3||d===void 0)return G.getTimeTicks.apply(G,arguments);let Z=M.length;for(j=0;jg,M[j]5*k||U){if(M[j]>V){for(B=G.getTimeTicks(C,M[q],M[j],y);B.length&&B[0]<=V;)B.shift();B.length&&(V=B[B.length-1]),X.push(H.length),H=H.concat(B)}q=j+1}if(U)break}if(B){if(Y=B.info,E&&Y.unitRange<=v.hour){for(q=1,j=H.length-1;qnt-ot),(it=tt[Math.floor(tt.length/2)])<.6*N&&(it=null),rt=H[K-1]>g?K-1:K,et=void 0;rt--;)st=Math.abs(et-(Q=J[rt])),et&&st<.8*N&&(it===null||st<.8*it)?(z[H[rt]]&&!z[H[rt+1]]?($=rt+1,et=Q):$=rt,H.splice($,1)):et=Q}return H}function L(C){let d=this.ordinal.positions;if(!d)return C;let g=d.length-1,y;return C<0?C=d[0]:C>g?C=d[g]:(g=Math.floor(C),y=C-g),y!==void 0&&d[g]!==void 0?d[g]+(y?y*(d[g+1]-d[g]):0):C}function S(C){let d=this.ordinal,g=this.old?this.old.min:this.min,y=this.old?this.old.transA:this.transA,M=d.getExtendedPositions();if(M&&M.length){let k=h((C-g)*y+this.minPixelPadding),E=h(d.getIndexOfPoint(k,M)),z=h(E%1);if(E>=0&&E<=M.length-1){let N=M[Math.floor(E)],G=M[Math.ceil(E)];return M[Math.floor(E)]+z*(G-N)}}return C}function w(C,d){let g=f.Additions.findIndexOf(C,d,!0);if(C[g]===d)return g;let y=(d-C[g])/(C[g+1]-C[g]);return g+y}function R(){this.ordinal||(this.ordinal=new f.Additions(this))}function O(){let{eventArgs:C,options:d}=this;if(this.isXAxis&&m(d.overscroll)&&d.overscroll!==0&&u(this.max)&&u(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(C?.trigger!=="pan"||this.isInternal)&&C?.trigger!=="navigator")){let g=this.ordinal.convertOverscroll(d.overscroll);this.max+=g,!this.isInternal&&m(this.userMin)&&C?.trigger!=="mousewheel"&&(this.min+=g)}}function I(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function _(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function P(C){let d=this.xAxis[0],g=d.ordinal.convertOverscroll(d.options.overscroll),y=C.originalEvent.chartX,M=this.options.chart.panning,k=!1;if(M&&M.type!=="y"&&d.options.ordinal&&d.series.length){let E,z,N=this.mouseDownX,G=d.getExtremes(),X=G.dataMin,j=G.dataMax,B=G.min,W=G.max,Y=this.hoverPoints,U=d.closestPointRange||d.ordinal&&d.ordinal.overscrollPointsRange,q=Math.round((N-y)/(d.translationSlope*(d.ordinal.slope||U))),H=d.ordinal.getExtendedPositions(),V={ordinal:{positions:H,extendedOrdinalPositions:H}},Z=d.index2val,K=d.val2lin;if(B<=X&&q<0||W+g>=j&&q>0)return;V.ordinal.positions?Math.abs(q)>1&&(Y&&Y.forEach(function(J){J.setState()}),j>(z=V.ordinal.positions)[z.length-1]&&z.push(j),this.setFixedRange(W-B),(E=d.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(V,[K.apply(V,[B,!0])+q]),Z.apply(V,[K.apply(V,[W,!0])+q]))).min>=Math.min(G.dataMin,B)&&E.max<=Math.max(j,W)+g&&d.setExtremes(E.min,E.max,!0,!1,{trigger:"pan"}),this.mouseDownX=y,c(this.container,{cursor:"move"})):k=!0}else k=!0;k||M&&/y/.test(M.type)?g&&(d.max=d.dataMax+g):C.preventDefault()}function F(){let C=this.xAxis;C&&C.options.ordinal&&(delete C.ordinal.index,delete C.ordinal.originalOrdinalRange)}function T(C,d){let g,y=this.ordinal,M=y.positions,k=y.slope,E;if(!M)return C;let z=M.length;if(M[0]<=C&&M[z-1]>=C)g=w(M,C);else{if(!((E=y.getExtendedPositions&&y.getExtendedPositions())&&E.length))return C;let N=E.length;k||(k=(E[N-1]-E[0])/N);let G=w(E,M[0]);if(C>=E[0]&&C<=E[N-1])g=w(E,C)-G;else{if(!d)return C;g=C0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(V=K!==J.processedXData[1]-J.processedXData[0]),K=J.processedXData[1]-J.processedXData[0],J.boosted&&(Z=J.boosted),J.reserveSpace()&&(J.takeOrdinalPosition!==!1||E)&&(N=(U=U.concat(J.processedXData)).length,U.sort(function($,Q){return $-Q}),q=Math.min(q,b(J.closestPointRange,q)),N)){for(tt=0;tt2){for(X=U[1]-U[0],Y=N-1;Y--&&!H;)U[Y+1]-U[Y]!==X&&(H=!0);!d.options.keepOrdinalPadding&&(U[0]-M>X||k-U[U.length-1]>X)&&(H=!0)}else d.options.overscroll&&(N===2?q=U[1]-U[0]:N===1?(q=d.ordinal.convertOverscroll(d.options.overscroll),U=[U[0],U[0]+q]):q=g.overscrollPointsRange);H||d.forceOrdinal?(d.options.overscroll&&(g.overscrollPointsRange=q,U=U.concat(g.getOverscrollPositions())),g.positions=U,j=d.ordinal2lin(Math.max(M,U[0]),!0),B=Math.max(d.ordinal2lin(Math.min(k,U[U.length-1]),!0),1),g.slope=W=(k-M)/(B-j),g.offset=M-j*W):(g.overscrollPointsRange=b(d.closestPointRange,g.overscrollPointsRange),g.positions=d.ordinal.slope=g.offset=void 0)}d.isOrdinal=z&&H,g.groupIntervalFactor=null}static findIndexOf(d,g,y){let M=0,k=d.length-1,E;for(;MB.x>=X&&B.x<=j)};M.series.forEach(G=>{let X=G.points?.[0];m(X?.plotX)&&(X.plotXT()),f.splice(_,1);return}}}function O(){let _=this.rangeSelector;if(_){let P=_.getHeight();this.extraTopMargin&&(this.plotTop+=P),this.extraBottomMargin&&(this.marginBottom+=P)}}function I(_){let P=_.options.rangeSelector,F=this.extraBottomMargin,T=this.extraTopMargin,D=this.rangeSelector;if(P&&P.enabled&&!m(D)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=D=new l(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,D){let C=P&&P.verticalAlign||D.options&&D.options.verticalAlign;D.options.floating||(C==="bottom"?this.extraBottomMargin=!0:C==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==F||this.extraTopMargin!==T)&&(this.isDirtyBox=!0)}}return{compose:function(_,P,F){if(l=F,x(h,"RangeSelector")){let T=P.prototype;_.prototype.minFromRange=A,c(P,"afterGetContainer",L),c(P,"beforeRender",S),c(P,"destroy",R),c(P,"getMargins",O),c(P,"redraw",w),c(P,"update",I),T.callbacks.push(w),p(a,{rangeSelector:r.rangeSelector}),p(a.lang,r.lang)}}}}),s(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"],t["Core/Axis/OrdinalAxis.js"]],function(e,i,r,n,l,a,h){let{defaultOptions:c}=i,{addEvent:m,createElement:p,css:u,defined:b,destroyObjectProperties:v,discardElement:x,extend:f,fireEvent:A,isNumber:L,merge:S,objectEach:w,pad:R,pick:O,pInt:I,splat:_}=a;class P{static compose(T,D){n.compose(T,D,P)}constructor(T){this.buttonOptions=P.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(T)}clickButton(T,D){let C=this.chart,d=this.buttonOptions[T],g=C.xAxis[0],y=C.scroller&&C.scroller.getUnionExtremes()||g||{},M=d.type,k=d.dataGrouping,E=y.dataMin,z=y.dataMax,N,G=g&&Math.round(Math.min(g.max,O(z,g.max))),X,j=d._range,B,W,Y,U=!0;if(E!==null&&z!==null){if(this.setSelected(T),k&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(g||{chart:this.chart},k,!1),this.frozenStates=d.preserveDataGrouping),M==="month"||M==="year")g?(W={range:d,max:G,chart:C,dataMin:E,dataMax:z},N=g.minFromRange.call(W),L(W.newMax)&&(G=W.newMax),U=!1):j=d;else if(j)G=Math.min((N=Math.max(G-j,E))+j,z),U=!1;else if(M==="ytd")if(g)(z===void 0||E===void 0)&&(E=Number.MAX_VALUE,z=Number.MIN_VALUE,C.series.forEach(q=>{let H=q.xData;H&&(E=Math.min(H[0],E),z=Math.max(H[H.length-1],z))}),D=!1),N=B=(Y=this.getYTDExtremes(z,E,C.time.useUTC)).min,G=Y.max;else{this.deferredYTDClick=T;return}else M==="all"&&g&&(C.navigator&&C.navigator.baseSeries[0]&&(C.navigator.baseSeries[0].xAxis.options.range=void 0),N=E,G=z);if(U&&d._offsetMin&&b(N)&&(N+=d._offsetMin),d._offsetMax&&b(G)&&(G+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=T+1),g)g.setExtremes(N,G,O(D,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}),C.setFixedRange(d._range);else{X=_(C.options.xAxis)[0];let q=m(C,"afterGetAxes",function(){let H=C.xAxis[0];H.range=H.options.range=j,H.min=H.options.min=B});m(C,"load",function(){let H=C.xAxis[0];C.setFixedRange(d._range),H.options.range=X.range,H.options.min=X.min,q()})}A(this,"afterBtnClick")}}setSelected(T){this.selected=this.options.selected=T}init(T){let D=this,C=T.options.rangeSelector,d=C.buttons||D.defaultButtons.slice(),g=C.selected,y=function(){let M=D.minInput,k=D.maxInput;M&&M.blur&&A(M,"blur"),k&&k.blur&&A(k,"blur")};D.chart=T,D.options=C,D.buttons=[],D.buttonOptions=d,this.eventsToUnbind=[],this.eventsToUnbind.push(m(T.container,"mousedown",y)),this.eventsToUnbind.push(m(T,"resize",y)),d.forEach(D.computeButtonRange),g!==void 0&&d[g]&&this.clickButton(g,!1),this.eventsToUnbind.push(m(T,"load",function(){T.xAxis&&T.xAxis[0]&&m(T.xAxis[0],"setExtremes",function(M){L(this.max)&&L(this.min)&&this.max-this.min!==T.fixedRange&&M.trigger!=="rangeSelectorButton"&&M.trigger!=="updatedData"&&D.forcedDataGrouping&&!D.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let T=this,D=this.chart,C=this.dropdown,d=this.dropdownLabel,g=D.xAxis[0],y=Math.round(g.max-g.min),M=!g.hasVisibleSeries,k=24*36e5,E=D.scroller&&D.scroller.getUnionExtremes()||g,z=E.dataMin,N=E.dataMax,G=T.getYTDExtremes(N,z,D.time.useUTC),X=G.min,j=G.max,B=T.selected,W=T.options.allButtonsEnabled,Y=Array(T.buttonOptions.length).fill(0),U=L(B),q=T.buttons,H=!1,V=null;T.buttonOptions.forEach((Z,K)=>{let J=Z._range,tt=Z.type,$=Z.count||1,Q=Z._offsetMax-Z._offsetMin,et=K===B,it=J>N-z,st=JJ&&(nt=!0)}else(tt==="month"||tt==="year")&&y+36e5>={month:28,year:365}[tt]*k*$-Q&&y-36e5<={month:31,year:366}[tt]*k*$+Q?nt=!0:tt==="ytd"?(nt=j-X+Q===y,rt=!et):tt==="all"&&(nt=g.max-g.min>=N-z);let ot=!W&&!(H&&tt==="all")&&(it||st||M),at=H&&tt==="all"||!rt&&nt||et&&T.frozenStates;ot?Y[K]=3:at&&(!U||K===B)&&(V=K)}),V!==null?(Y[V]=2,T.setSelected(V)):(T.setSelected(),d&&(d.setState(0),d.attr({text:(c.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let Z=0;Z6&&(y.lastIndexOf("-")===y.length-6||y.lastIndexOf("+")===y.length-6))){let M=new Date(d).getTimezoneOffset()/60;d+=M<=0?`+${R(-M)}:00`:`-${R(M)}:00`}}let g=Date.parse(d);if(!L(g)){let y=T.split("-");g=Date.UTC(I(y[0]),I(y[1])-1,I(y[2]))}return C&&D&&L(g)&&(g+=C.getTimezoneOffset(g)),g}drawInput(T){let{chart:D,div:C,inputGroup:d}=this,g=this,y=D.renderer.style||{},M=D.renderer,k=D.options.rangeSelector,E=c.lang,z=T==="min";function N(Y){let{maxInput:U,minInput:q}=g,H=D.xAxis[0],V=D.scroller?.getUnionExtremes()||H,Z=V.dataMin,K=V.dataMax,J=D.xAxis[0].getExtremes()[Y],tt=g.getInputValue(Y);L(tt)&&tt!==J&&(z&&U&&L(Z)?tt>Number(U.getAttribute("data-hc-time"))?tt=void 0:ttK&&(tt=K)),tt!==void 0&&H.setExtremes(z?tt:H.min,z?H.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}let G=E[z?"rangeSelectorFrom":"rangeSelectorTo"]||"",X=M.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?k.inputBoxHeight:0}).add(d),j=M.label("",0).addClass("highcharts-range-input").attr({padding:2,width:k.inputBoxWidth,height:k.inputBoxHeight,"text-align":"center"}).on("click",function(){g.showInput(T),g[T+"Input"].focus()});D.styledMode||j.attr({stroke:k.inputBoxBorderColor,"stroke-width":1}),j.add(d);let B=p("input",{name:T,className:"highcharts-range-selector"},void 0,C);B.setAttribute("type",function(Y){if(Y.indexOf("%L")!==-1)return"text";let U=["a","A","d","e","w","b","B","m","o","y","Y"].some(H=>Y.indexOf("%"+H)!==-1),q=["H","k","I","l","M","S"].some(H=>Y.indexOf("%"+H)!==-1);return U&&q?"datetime-local":U?"date":q?"time":"text"}(k.inputDateFormat||"%e %b %Y")),D.styledMode||(X.css(S(y,k.labelStyle)),j.css(S({color:"#333333"},y,k.inputStyle)),u(B,f({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:y.fontSize,fontFamily:y.fontFamily,top:"-9999em"},k.inputStyle))),B.onfocus=()=>{g.showInput(T)},B.onblur=()=>{B===r.doc.activeElement&&N(T),g.hideInput(T),g.setInputValue(T),B.blur()};let W=!1;return B.onchange=()=>{W||(N(T),g.hideInput(T),B.blur())},B.onkeypress=Y=>{Y.keyCode===13&&N(T)},B.onkeydown=Y=>{W=!0,(Y.key==="ArrowUp"||Y.key==="ArrowDown"||Y.key==="Tab")&&N(T)},B.onkeyup=()=>{W=!1},{dateBox:j,input:B,label:X}}getPosition(){let T=this.chart,D=T.options.rangeSelector,C=D.verticalAlign==="top"?T.plotTop-T.axisOffset[0]:0;return{buttonTop:C+D.buttonPosition.y,inputTop:C+D.inputPosition.y-10}}getYTDExtremes(T,D,C){let d=this.chart.time,g=new d.Date(T),y=d.get("FullYear",g),M=C?d.Date.UTC(y,0,1):+new d.Date(y,0,1),k=g.getTime();return{max:Math.min(T||k,k),min:Math.max(D,M)}}createElements(){let T=this.chart,D=T.renderer,C=T.container,d=T.options,g=d.rangeSelector,y=g.inputEnabled,M=O(d.chart.style?.zIndex,0)+1;if(g.enabled!==!1&&(this.group=D.g("range-selector-group").attr({zIndex:7}).add(),this.div=p("div",void 0,{position:"relative",height:0,zIndex:M}),this.buttonOptions.length&&this.renderButtons(),C.parentNode&&C.parentNode.insertBefore(this.div,C),y)){this.inputGroup=D.g("input-group").add(this.group);let k=this.drawInput("min");this.minDateBox=k.dateBox,this.minLabel=k.label,this.minInput=k.input;let E=this.drawInput("max");this.maxDateBox=E.dateBox,this.maxLabel=E.label,this.maxInput=E.input}}render(T,D){let C=this.chart,d=C.options.rangeSelector,g=d.inputEnabled;if(d.enabled!==!1){if(g){this.setInputValue("min",T),this.setInputValue("max",D);let y=C.scroller&&C.scroller.getUnionExtremes()||C.xAxis[0]||{};if(b(y.dataMin)&&b(y.dataMax)){let M=C.xAxis[0].minRange||0;this.setInputExtremes("min",y.dataMin,Math.min(y.dataMax,this.getInputValue("max"))-M),this.setInputExtremes("max",Math.max(y.dataMin,this.getInputValue("min"))+M,y.dataMax)}if(this.inputGroup){let M=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(k=>{if(k){let{width:E}=k.getBBox();E&&(k.attr({x:M}),M+=E+d.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:T,chart:D,options:C}=this,d=c.lang,g=D.renderer,y=S(C.buttonTheme),M=y&&y.states,k=y.width||28;delete y.width,delete y.states,this.buttonGroup=g.g("range-selector-buttons").add(this.group);let E=this.dropdown=p("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),z=D.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=g.button("",0,0,()=>{},S(y,{"stroke-width":O(y["stroke-width"],0),width:"auto",paddingLeft:O(C.buttonTheme.paddingLeft,z?.padding,8),paddingRight:O(C.buttonTheme.paddingRight,z?.padding,8)}),M&&M.hover,M&&M.select,M&&M.disabled).hide().add(this.group),m(E,"touchstart",()=>{E.style.fontSize="16px"});let N=r.isMS?"mouseover":"mouseenter",G=r.isMS?"mouseout":"mouseleave";m(E,N,()=>{A(this.dropdownLabel.element,N)}),m(E,G,()=>{A(this.dropdownLabel.element,G)}),m(E,"change",()=>{A(this.buttons[E.selectedIndex-1].element,"click")}),this.zoomText=g.label(d.rangeSelectorZoom||"",0).attr({padding:C.buttonTheme.padding,height:C.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(C.labelStyle),y["stroke-width"]=O(y["stroke-width"],0)),p("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,E),this.buttonOptions.forEach((X,j)=>{p("option",{textContent:X.title||X.text},void 0,E),T[j]=g.button(X.text,0,0,B=>{let W,Y=X.events&&X.events.click;Y&&(W=Y.call(X,B)),W!==!1&&this.clickButton(j),this.isActive=!0},y,M&&M.hover,M&&M.select,M&&M.disabled).attr({"text-align":"center",width:k}).add(this.buttonGroup),X.title&&T[j].attr("title",X.title)})}alignElements(){let{buttonGroup:T,buttons:D,chart:C,group:d,inputGroup:g,options:y,zoomText:M}=this,k=C.options,E=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,{buttonPosition:z,inputPosition:N,verticalAlign:G}=y,X=(B,W)=>E&&this.titleCollision(C)&&G==="top"&&W.align==="right"&&W.y-B.getBBox().height-12<(E.y||0)+(E.height||0)+C.spacing[0]?-40:0,j=C.plotLeft;if(d&&z&&N){let B=z.x-C.spacing[3];if(T){if(this.positionButtons(),!this.initialButtonGroupWidth){let J=0;M&&(J+=M.getBBox().width+5),D.forEach((tt,$)=>{J+=tt.width||0,$!==D.length-1&&(J+=y.buttonSpacing)}),this.initialButtonGroupWidth=J}j-=C.spacing[3];let K=X(T,z);this.alignButtonGroup(K),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),d.placed=T.placed=C.hasLoaded}let W=0;g&&(W=X(g,N),N.align==="left"?B=j:N.align==="right"&&(B=-Math.max(C.axisOffset[1],-W)),g.align({y:N.y,width:g.getBBox().width,align:N.align,x:N.x+B-2},!0,C.spacingBox),g.placed=C.hasLoaded),this.handleCollision(W),d.align({verticalAlign:G},!0,C.spacingBox);let Y=d.alignAttr.translateY,U=d.getBBox().height+20,q=0;if(G==="bottom"){let K=C.legend&&C.legend.options;q=Y-(U=U+(K&&K.verticalAlign==="bottom"&&K.enabled&&!K.floating?C.legend.legendHeight+O(K.margin,10):0)-20)-(y.floating?0:y.y)-(C.titleOffset?C.titleOffset[2]:0)-10}G==="top"?(y.floating&&(q=0),C.titleOffset&&C.titleOffset[0]&&(q=C.titleOffset[0]),q+=C.margin[0]-C.spacing[0]||0):G==="middle"&&(N.y===z.y?q=Y:(N.y||z.y)&&(N.y<0||z.y<0?q-=Math.min(N.y,z.y):q=Y-U)),d.translate(y.x,y.y+Math.floor(q));let{minInput:H,maxInput:V,dropdown:Z}=this;y.inputEnabled&&H&&V&&(H.style.marginTop=d.translateY+"px",V.style.marginTop=d.translateY+"px"),Z&&(Z.style.marginTop=d.translateY+"px")}}alignButtonGroup(T,D){let{chart:C,options:d,buttonGroup:g}=this,{buttonPosition:y}=d,M=C.plotLeft-C.spacing[3],k=y.x-C.spacing[3];y.align==="right"?k+=T-M:y.align==="center"&&(k-=M/2),g&&g.align({y:y.y,width:O(D,this.initialButtonGroupWidth),align:y.align,x:k},!0,C.spacingBox)}positionButtons(){let{buttons:T,chart:D,options:C,zoomText:d}=this,g=D.hasLoaded?"animate":"attr",{buttonPosition:y}=C,M=D.plotLeft,k=M;d&&d.visibility!=="hidden"&&(d[g]({x:O(M+y.x,M)}),k+=y.x+d.getBBox().width+5);for(let E=0,z=this.buttonOptions.length;E{let N=0;return this.buttons.forEach(G=>{let X=G.getBBox();X.width>N&&(N=X.width)}),N},E=N=>{if(d?.alignOptions&&C){let G=d.alignAttr.translateX+d.alignOptions.x-T+d.getBBox().x+2,X=d.alignOptions.width||0,j=C.alignAttr.translateX+C.getBBox().x;return j+N>G&&G+X>j&&g.y{d&&C&&d.attr({translateX:d.alignAttr.translateX+(D.axisOffset[1]>=-T?0:-T),translateY:d.alignAttr.translateY+C.getBBox().height+10})};if(C){if(y==="always"){this.collapseButtons(),E(k())&&z();return}y==="never"&&this.expandButtons()}d&&C?M.align===g.align||E(this.initialButtonGroupWidth+20)?y==="responsive"?(this.collapseButtons(),E(k())&&z()):z():y==="responsive"&&this.expandButtons():C&&y==="responsive"&&(this.initialButtonGroupWidth>D.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:T,zoomText:D}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,D.hide(),T.forEach(C=>void C.hide()),this.showDropdown())}expandButtons(){let{buttons:T,zoomText:D}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),D.show(),T.forEach(C=>void C.show()),this.positionButtons())}showDropdown(){let{buttonGroup:T,chart:D,dropdownLabel:C,dropdown:d}=this;if(T&&d){let{translateX:g=0,translateY:y=0}=T,M=D.plotLeft+g;C.attr({x:M,y}).show(),u(d,{left:M+"px",top:y+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:T}=this;T&&(this.dropdownLabel.hide(),u(T,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let T=this.options,D=this.group,C=T.inputPosition,d=T.buttonPosition,g=T.y,y=d.y,M=C.y,k=0;return T.height?T.height:(this.alignElements(),k=D?D.getBBox(!0).height+13+g:0,(M<0&&y<0||M>0&&y>0)&&(k+=Math.abs(Math.min(M,y))),k)}titleCollision(T){return!(T.options.title.text||T.options.subtitle.text)}update(T,D=!0){let C=this.chart;S(!0,C.options.rangeSelector,T),this.destroy(),this.init(C),D&&this.render()}destroy(){let T=this,D=T.minInput,C=T.maxInput;T.eventsToUnbind&&(T.eventsToUnbind.forEach(d=>d()),T.eventsToUnbind=void 0),v(T.buttons),D&&(D.onfocus=D.onblur=D.onchange=null),C&&(C.onfocus=C.onblur=C.onchange=null),w(T,function(d,g){d&&g!=="chart"&&(d instanceof l?d.destroy():d instanceof window.HTMLElement&&x(d)),d!==P.prototype[g]&&(T[g]=null)},this)}}return f(P.prototype,{defaultButtons:[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}],inputTypeFormats:{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"}}),P}),s(t,"Core/Chart/StockChart.js",[t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c){let{format:m}=i,{getOptions:p}=r,{setFixedRange:u}=h,{addEvent:b,clamp:v,crisp:x,defined:f,extend:A,find:L,isNumber:S,isString:w,merge:R,pick:O,splat:I}=c;function _(T,D,C){return T==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:T==="yAxis"?{labels:{y:-2},opposite:C.opposite??D.opposite??!0,showLastLabel:!!(D.categories||D.type==="category"),title:{text:C.title?.text!=="Values"?C.title?.text:null}}:{}}function P(T,D){if(T==="xAxis"){let C=O(D.navigator&&D.navigator.enabled,n.enabled,!0),d={type:"datetime",categories:void 0};return C&&(d.startOnTick=!1,d.endOnTick=!1),d}return{}}class F extends e{init(D,C){let d=p(),g=D.xAxis,y=D.yAxis,M=O(D.navigator&&D.navigator.enabled,n.enabled,!0);D.xAxis=D.yAxis=void 0;let k=R({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:M},scrollbar:{enabled:O(a.enabled,!0)},rangeSelector:{enabled:O(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:O(d.tooltip&&d.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},D,{isStock:!0});D.xAxis=g,D.yAxis=y,k.xAxis=I(D.xAxis||{}).map(E=>R(_("xAxis",E,d.xAxis),E,P("xAxis",D))),k.yAxis=I(D.yAxis||{}).map(E=>R(_("yAxis",E,d.yAxis),E)),super.init(k,C)}createAxis(D,C){return C.axis=R(_(D,C.axis,p()[D]),C.axis,P(D,this.userOptions)),super.createAxis(D,C)}}return b(e,"update",function(T){let D=T.options;"scrollbar"in D&&this.navigator&&(R(!0,this.options.scrollbar,D.scrollbar),this.navigator.update({}),delete D.scrollbar)}),function(T){function D(z){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!S(this.min)||!S(this.max))return;let N=this.chart,G=this.logarithmic,X=this.crosshair.label,j=this.horiz,B=this.opposite,W=this.left,Y=this.top,U=this.width,q=this.options.tickPosition==="inside",H=this.crosshair.snap!==!1,V=z.e||this.cross&&this.cross.e,Z=z.point,K=this.crossLabel,J,tt,$=X.format,Q="",et,it=0,st=this.min,rt=this.max;G&&(st=G.lin2log(this.min),rt=G.lin2log(this.max));let nt=j?"center":B?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";K||(K=this.crossLabel=N.renderer.label("",0,void 0,X.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Z&&Z.series?Z.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:X.align||nt,padding:O(X.padding,8),r:O(X.borderRadius,3),zIndex:2}).add(this.labelGroup),N.styledMode||K.attr({fill:X.backgroundColor||Z&&Z.series&&Z.series.color||"#666666",stroke:X.borderColor||"","stroke-width":X.borderWidth||0}).css(A({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},X.style||{}))),j?(J=H?(Z.plotX||0)+W:V.chartX,tt=Y+(B?0:this.height)):(J=W+this.offset+(B?U:0),tt=H?(Z.plotY||0)+Y:V.chartY),$||X.formatter||(this.dateTime&&(Q="%b %d, %Y"),$="{value"+(Q?":"+Q:"")+"}");let ot=H?this.isXAxis?Z.x:Z.y:this.toValue(j?V.chartX:V.chartY),at=Z&&Z.series?Z.series.isPointInside(Z):S(ot)&&ot>st&&ot=et.right&&(it=-(lt+ht.width-et.right)),K.attr({x:J+it,y:tt,anchorX:j?J:this.opposite?0:N.chartWidth,anchorY:j?this.opposite?N.chartHeight:0:tt+ht.height/2})}function C(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function d(z){let N=this.chart,G=this.options,X=N._labelPanes=N._labelPanes||{},j=G.labels;if(N.options.isStock&&this.coll==="yAxis"){let B=G.top+","+G.height;!X[B]&&j.enabled&&(j.distance===15&&this.side===1&&(j.distance=0),j.align===void 0&&(j.align="right"),X[B]=this,z.align="right",z.preventDefault())}}function g(){let z=this.chart,N=this.options&&this.options.top+","+this.options.height;N&&z._labelPanes&&z._labelPanes[N]===this&&delete z._labelPanes[N]}function y(z){let N=this,G=N.isLinked&&!N.series&&N.linkedParent?N.linkedParent.series:N.series,X=N.chart,j=X.renderer,B=N.left,W=N.top,Y=[],U=z.translatedValue,q=z.value,H=z.force,V,Z,K,J,tt=[],$,Q;if(X.options.isStock&&z.acrossPanes!==!1&&N.coll==="xAxis"||N.coll==="yAxis"){for(let et of(z.preventDefault(),tt=(it=>{let st=it==="xAxis"?"yAxis":"xAxis",rt=N.options[st];return S(rt)?[X[st][rt]]:w(rt)?[X.get(rt)]:G.map(nt=>nt[st])})(N.coll),N.isXAxis?X.yAxis:X.xAxis))if(!f(et.options.id)||et.options.id.indexOf("navigator")===-1){let it=et.isXAxis?"yAxis":"xAxis";N===(f(et.options[it])?X[it][et.options[it]]:X[it][0])&&tt.push(et)}for(let et of($=tt.length?[]:[N.isXAxis?X.yAxis[0]:X.xAxis[0]],tt))$.indexOf(et)!==-1||L($,it=>it.pos===et.pos&&it.len===et.len)||$.push(et);if(S(Q=O(U,N.translate(q||0,void 0,void 0,z.old))))if(N.horiz)for(let et of $){let it;J=(Z=et.pos)+et.len,V=K=Math.round(Q+N.transB),H!=="pass"&&(VB+N.width)&&(H?V=K=v(V,B,B+N.width):it=!0),it||Y.push(["M",V,Z],["L",K,J])}else for(let et of $){let it;K=(V=et.pos)+et.len,Z=J=Math.round(W+N.height-Q),H!=="pass"&&(ZW+N.height)&&(H?Z=J=v(Z,W,W+N.height):it=!0),it||Y.push(["M",V,Z],["L",K,J])}z.path=Y.length>0?j.crispPolyLine(Y,z.lineWidth||1):void 0}}function M(z){if(this.chart.options.isStock){let N;this.is("column")||this.is("columnrange")?N={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(N={marker:{enabled:!1,radius:2}}),N&&(z.plotOptions[this.type]=R(z.plotOptions[this.type],N))}}function k(){let z=this.chart,N=this.options.dataGrouping;return this.allowDG!==!1&&N&&O(N.enabled,z.options.isStock)}function E(z,N){for(let G=0;G\u25CF {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),s(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n){let{column:l}=r.seriesTypes,{crisp:a,extend:h,merge:c}=n;class m extends l{extendStem(u,b,v){let x=u[0],f=u[1];typeof x[2]=="number"&&(x[2]=Math.max(v+b,x[2])),typeof f[2]=="number"&&(f[2]=Math.min(v-b,f[2]))}getPointPath(u,b){let v=b.strokeWidth(),x=u.series,f=a(u.plotX||0,v),A=Math.round(u.shapeArgs.width/2),L=[["M",f,Math.round(u.yBottom)],["L",f,Math.round(u.plotHigh)]];if(u.close!==null){let S=a(u.plotClose,v);L.push(["M",f,S],["L",f+A,S]),x.extendStem(L,v/2,S)}return L}drawSinglePoint(u){let b=u.series,v=b.chart,x,f=u.graphic;u.plotY!==void 0&&(f||(u.graphic=f=v.renderer.path().add(b.group)),v.styledMode||f.attr(b.pointAttribs(u,u.selected&&"select")),x=b.getPointPath(u,f),f[f?"animate":"attr"]({d:x}).addClass(u.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(u,b){let v=super.pointAttribs.call(this,u,b);return delete v.fill,v}toYData(u){return[u.high,u.low,u.close]}translate(){let u=this,b=u.yAxis,v=this.pointArrayMap&&this.pointArrayMap.slice()||[],x=v.map(f=>`plot${f.charAt(0).toUpperCase()+f.slice(1)}`);x.push("yBottom"),v.push("low"),super.translate.apply(u),u.points.forEach(function(f){v.forEach(function(A,L){let S=f[A];S!==null&&(u.dataModify&&(S=u.dataModify.modifyValue(S)),f[x[L]]=b.toPixels(S,!0))}),f.tooltipPos[1]=f.plotHigh+b.pos-u.chart.plotTop})}}return m.defaultOptions=c(l.defaultOptions,i),h(m.prototype,{pointClass:e,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",m),m}),s(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{seriesTypes:{hlc:i}}=e;class r extends i.prototype.pointClass{getClassName(){return super.getClassName.call(this)+(this.open\u25CF {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'}}}),s(t,"Series/OHLC/OHLCSeries.js",[t["Core/Globals.js"],t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{composed:a}=e,{hlc:h}=n.seriesTypes,{addEvent:c,crisp:m,extend:p,merge:u,pushUnique:b}=l;function v(A){let L=A.options,S=L.dataGrouping;S&&L.useOhlcData&&L.id!=="highcharts-navigator-series"&&(S.approximation="ohlc")}function x(A){let L=A.options;L.useOhlcData&&L.id!=="highcharts-navigator-series"&&p(this,{pointValKey:f.prototype.pointValKey,pointArrayMap:f.prototype.pointArrayMap,toYData:f.prototype.toYData})}class f extends h{static compose(L,...S){b(a,"OHLCSeries")&&(c(L,"afterSetOptions",v),c(L,"init",x))}getPointPath(L,S){let w=super.getPointPath(L,S),R=S.strokeWidth(),O=m(L.plotX||0,R),I=Math.round(L.shapeArgs.width/2);if(L.open!==null){let _=m(L.plotOpen,R);w.push(["M",O,_],["L",O-I,_]),super.extendStem(w,R/2,_)}return w}pointAttribs(L,S){let w=super.pointAttribs.call(this,L,S),R=this.options;return delete w.fill,!L.options.color&&R.upColor&&L.openu&&(m-=Math.round((b-u)/2),u=b),x=h[c](m,p,u,b,v),f&&A){let L=f;if(c==="circle")L=m+u/2;else{let w=x[0],R=x[1];w[0]==="M"&&R[0]==="L"&&(L=(w[1]+R[1])/2)}let S=p>A?p:p+b;x.push(["M",L,S],["L",f,A]),x=x.concat(h.circle(f-1,A-1,2,2))}return x}}r.compose=function(h){if(n.indexOf(h)===-1){n.push(h);let m=h.prototype.symbols;m.flag=l,a(m,"circle"),a(m,"square")}let c=e.getRendererType();n.indexOf(c)&&n.push(c)}}(i||(i={})),i}),s(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,i,r,n){var l;let{composed:a}=i,{prototype:h}=e,{prototype:c}=r,{defined:m,pushUnique:p,stableSort:u}=n;return function(b){function v(f){return c.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,f)}function x(){h.translate.apply(this);let f=this,A=f.options,L=f.chart,S=f.points,w=A.onSeries,R=w&&L.get(w),O=R&&R.options.step,I=R&&R.points,_=L.inverted,P=f.xAxis,F=f.yAxis,T=S.length-1,D,C,d=A.onKey||"y",g=I&&I.length,y=0,M,k,E,z,N;if(R&&R.visible&&g){for(y=(R.pointXOffset||0)+(R.barW||0)/2,z=R.currentDataGrouping,k=I[g-1].x+(z?z.totalRange:0),u(S,(G,X)=>G.x-X.x),d="plot"+d[0].toUpperCase()+d.substr(1);g--&&S[T];)if(M=I[g],(D=S[T]).y=M.y,M.x<=D.x&&M[d]!==void 0){if(D.x<=k&&(D.plotY=M[d],M.xMath.pow(1-H,3)*G[V]+3*(1-H)*(1-H)*H*j[V]+3*(1-H)*H*H*B[V]+H*H*H*X[V],Y=0,U=1,q;for(let H=0;H<100;H++){let V=(Y+U)/2,Z=W(V,0);if(Z===null)break;if(.25>Math.abs(Z-D.plotX)){q=V;break}Z{let j;G.plotX+=y,(G.plotY===void 0||_)&&(G.plotX>=0&&G.plotX<=P.len?_?(G.plotY=P.translate(G.x,0,1,0,1),G.plotX=m(G.y)?F.translate(G.y,0,0,0,1):0):G.plotY=(P.opposite?0:f.yAxis.len)+P.offset:G.shapeArgs={}),(C=S[X-1])&&C.plotX===G.plotX&&(C.stackIndex===void 0&&(C.stackIndex=0),j=C.stackIndex+1),G.stackIndex=j}),this.onSeries=R}b.compose=function(f){if(p(a,"OnSeries")){let A=f.prototype;A.getPlotBox=v,A.translate=x}return f},b.getPlotBox=v,b.translate=x}(l||(l={})),l}),s(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a,h,c,m){let{noop:p}=n,{distribute:u}=a,{series:b,seriesTypes:{column:v}}=h,{addEvent:x,defined:f,extend:A,isNumber:L,merge:S,objectEach:w,wrap:R}=m;class O extends v{animate(_){_&&this.setClip()}drawPoints(){let _,P,F,T,D,C,d,g,y,M,k,E=this.points,z=this.chart,N=z.renderer,G=z.inverted,X=this.options,j=X.y,B=this.yAxis,W={},Y=[],U=L(X.borderRadius)?X.borderRadius:0;for(T=E.length;T--;)D=E[T],M=(G?D.plotY:D.plotX)>this.xAxis.len,_=D.plotX,d=D.stackIndex,F=D.options.shape||X.shape,(P=D.plotY)!==void 0&&(P=D.plotY+j-(d!==void 0&&d*X.stackDistance)),D.anchorX=d?void 0:D.plotX,g=d?void 0:D.plotY,k=F!=="flag",C=D.graphic,P!==void 0&&_>=0&&!M?(C&&D.hasNewShapeType()&&(C=C.destroy()),C||(C=D.graphic=N.label("",0,void 0,F,void 0,void 0,X.useHTML).addClass("highcharts-point").add(this.markerGroup),D.graphic.div&&(D.graphic.div.point=D),C.isNew=!0),C.attr({align:k?"center":"left",width:X.width,height:X.height,"text-align":X.textAlign,r:U}),z.styledMode||C.attr(this.pointAttribs(D)).css(S(X.style,D.style)).shadow(X.shadow),_>0&&(_-=C.strokeWidth()%2),y={y:P,anchorY:g},X.allowOverlapX&&(y.x=_,y.anchorX=D.anchorX),C.attr({text:D.options.title??X.title??"A"})[C.isNew?"attr":"animate"](y),X.allowOverlapX||(W[D.plotX]?W[D.plotX].size=Math.max(W[D.plotX].size,C.width||0):W[D.plotX]={align:k?.5:0,size:C.width||0,target:_,anchorX:_}),D.tooltipPos=[_,P+B.pos-z.plotTop]):C&&(D.graphic=C.destroy());if(!X.allowOverlapX){let q=100;for(let H of(w(W,function(V){V.plotX=V.anchorX,Y.push(V),q=Math.max(V.size,q)}),u(Y,G?B.len:this.xAxis.len,q),E)){let V=H.plotX,Z=H.graphic,K=Z&&W[V];K&&Z&&(f(K.pos)?Z[Z.isNew?"attr":"animate"]({x:K.pos+(K.align||0)*K.size,anchorX:H.anchorX}).show().isNew=!1:Z.hide().isNew=!0)}}X.useHTML&&this.markerGroup&&R(this.markerGroup,"on",function(q){return c.prototype.on.apply(q.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let _=this.points;for(let P of(super.drawTracker(),_)){let F=P.graphic;F&&(P.unbindMouseOver&&P.unbindMouseOver(),P.unbindMouseOver=x(F.element,"mouseover",function(){for(let T of(P.stackIndex>0&&!P.raised&&(P._y=F.y,F.attr({y:P._y-8}),P.raised=!0),_))T!==P&&T.raised&&T.graphic&&(T.graphic.attr({y:T._y}),T.raised=!1)}))}}pointAttribs(_,P){let F=this.options,T=_&&_.color||this.color,D=F.lineColor,C=_&&_.lineWidth,d=_&&_.fillColor||F.fillColor;return P&&(d=F.states[P].fillColor,D=F.states[P].lineColor,C=F.states[P].lineWidth),{fill:d||T,stroke:D||T,"stroke-width":C||F.lineWidth||0}}setClip(){b.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return O.compose=r.compose,O.defaultOptions=S(v.defaultOptions,i),l.compose(O),A(O.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:p,init:b.prototype.init}),h.registerSeriesType("flags",O),O}),s(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,i){var r;let{addEvent:n,find:l,fireEvent:a,isArray:h,isNumber:c,pick:m}=i;return function(p){function u(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function b(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function v(){let R=this.brokenAxis;if(R?.hasBreaks){let O=this.tickPositions,I=this.tickPositions.info,_=[];for(let P=0;Py.to||_>y.from&&Py.from&&Py.from&&P>y.to&&P0){let T,D;for(this.options.gapUnit!=="value"&&(P*=this.basePointRange),O&&O>P&&O>=this.basePointRange&&(P=O);F--;)if(D&&D.visible!==!1||(D=I[F+1]),T=I[F],D.visible!==!1&&T.visible!==!1){if(D.x-T.x>P){let C=(T.x+D.x)/2;I.splice(F+1,0,{isNull:!0,x:C}),_.stacking&&this.options.stacking&&((_.stacking.stacks[this.stackKey][C]=new e(_,_.options.stackLabels,!1,C,this.stack)).total=0)}D=T}}return this.getGraphPath(I)}p.compose=function(R,O){if(!R.keepProps.includes("brokenAxis")){R.keepProps.push("brokenAxis"),n(R,"init",x),n(R,"afterInit",u),n(R,"afterSetTickPositions",v),n(R,"afterSetOptions",b);let I=O.prototype;I.drawBreaks=L,I.gappedPath=S,n(O,"afterGeneratePoints",f),n(O,"afterRender",A)}return R};class w{static isInBreak(O,I){let _=O.repeat||1/0,P=O.from,F=O.to-O.from,T=I>=P?(I-P)%_:_-(P-I)%_;return O.inclusive?T<=F:T=P);T++)(F.to=O)break;if(w.isInBreak(F,O)){P-=O-F.from;break}}return P}constructor(O){this.hasBreaks=!1,this.axis=O}findBreakAt(O,I){return l(I,function(_){return _.fromk;)z-=M;for(;zthis.chart.plotSizeX/x||A&&L.forced)&&(f=!0));return f?x:0}function p(){this.series.forEach(function(b){b.hasProcessed=!1})}function u(b,v){let x;if(v=h(v,!0),b||(b={forced:!1,units:null}),this instanceof r)for(x=this.series.length;x--;)this.series[x].update({dataGrouping:b},!1);else this.chart.options.series.forEach(function(f){f.dataGrouping=typeof b=="boolean"?b:a(b,f.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),v&&this.chart.redraw()}return{compose:function(b){r=b;let v=b.prototype;v.applyGrouping||(n(b,"afterSetScale",p),n(b,"postProcessData",c),l(v,{applyGrouping:c,getGroupPixelWidth:m,setDataGrouping:u}))}}}),s(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,i,r,n,l,a){let{series:{prototype:h}}=l,{addEvent:c,defined:m,error:p,extend:u,isNumber:b,merge:v,pick:x}=a,f=h.generatePoints;function A(I){var _;let P,F,T=this.chart,D=this.options.dataGrouping,C=this.allowDG!==!1&&D&&x(D.enabled,T.options.isStock),d=this.reserveSpace(),g=this.currentDataGrouping,y,M,k=!1;C&&!this.requireSorting&&(this.requireSorting=k=!0);let E=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!I)||!C;if(k&&(this.requireSorting=!1),E)return;this.destroyGroupedData();let z=D.groupAll?this.xData:this.processedXData,N=D.groupAll?this.yData:this.processedYData,G=T.plotSizeX,X=this.xAxis,j=X.options.ordinal,B=this.groupPixelWidth;if(B&&z&&z.length&&G){F=!0,this.isDirty=!0,this.points=null;let W=X.getExtremes(),Y=W.min,U=W.max,q=j&&X.ordinal&&X.ordinal.getGroupIntervalFactor(Y,U,this)||1,H=B*(U-Y)/G*q,V=X.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(H,D.units||i.units),Math.min(Y,z[0]),Math.max(U,z[z.length-1]),X.options.startOfWeek,z,this.closestPointRange),Z=h.groupData.apply(this,[z,N,V,D.approximation]),K=Z.groupedXData,J=Z.groupedYData,tt=0;for(D&&D.smoothed&&K.length&&(D.firstAnchor="firstPoint",D.anchor="middle",D.lastAnchor="lastPoint",p(32,!1,T,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),P=1;P=Q[0]){let lt;ht++;let xt=$.groupMap[0].start,wt=$.groupMap[0].length;b(xt)&&b(wt)&&(lt=xt+(wt-1)),Q[0]={start:Q[0],middle:Q[0]+.5*st,end:Q[0]+st,firstPoint:$.xData[0],lastPoint:lt&&$.xData[lt]}[ot]}if(rt>0&&at&&st&&Q[rt]>=et-st){ct--;let lt=$.groupMap[$.groupMap.length-1].start;Q[rt]={start:Q[rt],middle:Q[rt]+.5*st,end:Q[rt]+st,firstPoint:lt&&$.xData[lt],lastPoint:$.xData[$.xData.length-1]}[at]}if(nt&&nt!=="start"){let lt=st*{middle:.5,end:1}[nt];for(;ct>=ht;)Q[ct]+=lt,ct--}}(this,K,U),d&&(m((_=K)[0])&&b(X.min)&&b(X.dataMin)&&_[0]X.max&&((!m(X.options.max)&&b(X.dataMax)&&X.max>=X.dataMax||X.max===X.dataMax)&&(X.max=Math.max(_[_.length-1],X.max)),X.dataMax=Math.max(_[_.length-1],X.dataMax))),D.groupAll&&(this.allGroupedData=J,K=(M=this.cropData(K,J,X.min,X.max)).xData,J=M.yData,this.cropStart=M.start),this.processedXData=K,this.processedYData=J}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=F,this.preventGraphAnimation=(g&&g.totalRange)!==(y&&y.totalRange)}function L(){this.groupedData&&(this.groupedData.forEach(function(I,_){I&&(this.groupedData[_]=I.destroy?I.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function S(){f.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function w(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function R(I,_,P,F){let T=this,D=T.data,C=T.options&&T.options.data,d=[],g=[],y=[],M=I.length,k=!!_,E=[],z=T.pointArrayMap,N=z&&z.length,G=["x"].concat(z||["y"]),X=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j,B,W,Y=0,U=0,q=typeof F=="function"?F:F&&e[F]?e[F]:e[T.getDGApproximation&&T.getDGApproximation()||"average"];if(N){let V=z.length;for(;V--;)E.push([])}else E.push([]);let H=N||1;for(let V=0;V<=M;V++)if(!(I[V]=P[Y+1]||V===M;){j=P[Y],T.dataGroupInfo={start:X?U:T.cropStart+U,length:E[0].length,groupStart:j},W=q.apply(T,E),T.pointClass&&!m(T.dataGroupInfo.options)&&(T.dataGroupInfo.options=v(T.pointClass.prototype.optionsToObject.call({series:T},T.options.data[T.cropStart+U])),G.forEach(function(Z){delete T.dataGroupInfo.options[Z]})),W!==void 0&&(d.push(j),g.push(W),y.push(T.dataGroupInfo)),U=V;for(let Z=0;Z{let c=h.axis.getExtremes(),m=c.min,p=c.max,u=n(h.axis.minPointOffset,0);return r(m)&&r(p)&&h.value>=m-u&&h.value<=p+u&&!h.axis.options.isInternal})[0]},getFieldType:function(a,h){let c=l[a],m=typeof h;return i(c)&&(m=c),{string:"text",number:"number",boolean:"checkbox"}[m]}}}),s(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(e,i){let r,{addEvent:n,isObject:l,pick:a,defined:h,merge:c}=e,{getAssignedAxis:m}=i,p=[],u={enabled:!0,sensitivity:1.1},b=f=>(l(f)||(f={enabled:f??!0}),c(u,f)),v=function(f,A,L,S,w,R,O){let I=a(O.type,f.zooming.type,""),_=[];I==="x"?_=L:I==="y"?_=S:I==="xy"&&(_=f.axes);let P=f.transform({axes:_,to:{x:w-5,y:R-5,width:10,height:10},from:{x:w-5*A,y:R-5*A,width:10*A,height:10*A},trigger:"mousewheel"});return P&&(h(r)&&clearTimeout(r),r=setTimeout(()=>{f.pointer?.drop()},400)),P};function x(){let f=b(this.zooming.mouseWheel);f.enabled&&n(this.container,"wheel",A=>{A=this.pointer?.normalize(A)||A;let{pointer:L}=this,S=L&&!L.inClass(A.target,"highcharts-no-mousewheel");if(this.isInsidePlot(A.chartX-this.plotLeft,A.chartY-this.plotTop)&&S){let w=f.sensitivity||1.1,R=A.detail||(A.deltaY||0)/120,O=m(L.getCoordinates(A).xAxis),I=m(L.getCoordinates(A).yAxis);v(this,Math.pow(w,R),O?[O.axis]:this.xAxis,I?[I.axis]:this.yAxis,A.chartX,A.chartY,f)&&A.preventDefault?.()}})}return{compose:function(f){p.indexOf(f)===-1&&(p.push(f),n(f,"afterGetContainer",x))}}}),s(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(e,i){return e.MouseWheelZoom=e.MouseWheelZoom||i,e.MouseWheelZoom.compose(e.Chart),e}),s(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Core/Axis/OrdinalAxis.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Chart/StockChart.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"]],function(e,i,r,n,l,a,h,c,m){return e.Navigator=e.Navigator||r,e.OrdinalAxis=e.OrdinalAxis||n,e.RangeSelector=e.RangeSelector||l,e.Scrollbar=e.Scrollbar||a,e.stockChart=e.stockChart||h.stockChart,e.StockChart=e.StockChart||e.stockChart,e.extend(e.StockChart,h),i.compose(e.Series,e.Axis,e.Point),m.compose(e.Renderer),c.compose(e.Series),e.Navigator.compose(e.Chart,e.Axis,e.Series),e.OrdinalAxis.compose(e.Axis,e.Series,e.Chart),e.RangeSelector.compose(e.Axis,e.Chart),e.Scrollbar.compose(e.Axis),e.StockChart.compose(e.Chart,e.Axis,e.Series,e.SVGRenderer),e})})});var Du=qe((NT,Un)=>{"use strict";(function(o){typeof Un=="object"&&Un.exports?(o.default=o,Un.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function s(e,i,r,n){e.hasOwnProperty(i)||(e[i]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}s(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,i){var r,n;let{parse:l}=e,{merge:a}=i;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,m=this.legendItem=this.legendItem||{},p=this.options,u=h.dataClasses||[],b,v,x=c.options.chart.colorCount,f=0,A;this.dataClasses=v=[],m.labels=[];for(let L=0,S=u.length;L=p)&&(u===void 0||h<=u)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(m=this.normalizedValue(h),x=A.length;x--&&!(m>A[x][0]););p=A[x]||A[x+1],m=1-((u=A[x+1]||p)[0]-m)/(u[0]-p[0]||1),b=p.color.tweenTo(u.color,m)}return b},r}),s(t,"Core/Axis/SolidGaugeAxis.js",[t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Utilities.js"]],function(e,i){let{extend:r}=i;return{init:function(n){r(n,e)}}}),s(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),s(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Extensions/BorderRadius.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],t["Core/Utilities.js"]],function(e,i,r,n,l){let{gauge:a,pie:h}=i.seriesTypes,{clamp:c,extend:m,isNumber:p,merge:u,pick:b,pInt:v}=l;class x extends a{translate(){let A=this.yAxis;r.init(A),!A.dataClasses&&A.options.dataClasses&&A.initDataClasses(A.options),A.initStops(),a.prototype.translate.call(this)}drawPoints(){let A,L=this.yAxis,S=L.center,w=this.options,R=this.chart.renderer,O=w.overshoot,I=w.rounded&&w.borderRadius===void 0,_=p(O)?O/180*Math.PI:0;for(let P of(p(w.threshold)&&(A=L.startAngleRad+L.translate(w.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=b(A,L.startAngleRad),this.points))if(!P.isNull){let F=v(b(P.options.radius,w.radius,100))*S[2]/200,T=v(b(P.options.innerRadius,w.innerRadius,60))*S[2]/200,D=Math.min(L.startAngleRad,L.endAngleRad),C=Math.max(L.startAngleRad,L.endAngleRad),d=P.graphic,g=L.startAngleRad+L.translate(P.y,void 0,void 0,void 0,!0),y,M,k=L.toColor(P.y,P);k==="none"&&(k=P.color||this.color||"none"),k!=="none"&&(P.color=k),g=c(g,D-_,C+_),w.wrap===!1&&(g=c(g,D,C));let E=I?(F-T)/2/F:0,z=Math.min(g,this.thresholdAngleRad)-E,N=Math.max(g,this.thresholdAngleRad)+E;N-z>2*Math.PI&&(N=z+2*Math.PI);let G=I?"50%":0;w.borderRadius&&(G=e.optionsToObject(w.borderRadius).radius),P.shapeArgs=y={x:S[0],y:S[1],r:F,innerR:T,start:z,end:N,borderRadius:G},P.startR=F,d?(M=y.d,d.animate(m({fill:k},y)),M&&(y.d=M)):P.graphic=d=R.arc(y).attr({fill:k,"sweep-flag":0}).add(this.group),this.chart.styledMode||(w.linecap!=="square"&&d.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),d.attr({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0})),d&&d.addClass(P.getClassName(),!0)}}animate(A){A||(this.startAngleRad=this.thresholdAngleRad,h.prototype.animate.call(this,A))}}return x.defaultOptions=u(a.defaultOptions,n),i.registerSeriesType("solidgauge",x),x}),s(t,"masters/modules/solid-gauge.src.js",[t["Core/Globals.js"]],function(e){return e})})});var Qn=qt(ys());var _h="Oxygen",wh="mdx2json.emptyportlet",Sh="DSW.Addons.";var ye=(()=>{let t=class t{constructor(){this.model={},this.el=$t(ah),this.cd=$t(dh),this.ds=$t(gh),this.ss=$t(xh),this.bs=$t(yh),this.us=$t(mh),this.i18n=$t(fh),this.route=$t(ph),this.fs=$t(vh),this.dbs=$t(bh),this.isSpinner=!0,this.drills=[],this.drillFilterWidgets=[],this.customDataSource="",this.preventColFilteringBasedOnDataProperties=!1,this.drillFilter="",this.drillFilterDrills=[],this.customColSpec="",this.customRowSpec="",this.linkedMdx="",this.canDoDrillthrough=!1,this.firstRun=!0,this.baseType="",this.hasDatasourceChooser=!1,this.oneItemDrillApplied=!1}get inline(){return this.widget.inline}ngOnInit(){this.baseType=this.widget?.type,this.override=this.getOverride(),this.extendPropsWithOverrides(),this.loadWidgetSettings(),this.initializeDrills(),this.initializeTile(),this.initializeActionAndPvItems(),this.initializeDataSourceChooser(),this.initializeDrillthrough(),this.initializeLiveDataUpdate(),this.subscribe(),this.initializeLinkedWidgets(),this.initializeDependants(),this.initializeDrillFilter(),this.initializeChoseDataSource(),this.initializeInputControls(),this.initializeActions(),this.requestPivotData(),this.initializeDataRequest()}ngOnDestroy(){clearInterval(this.liveUpdateInterval),this.subDrilldown?.unsubscribe(),this.subDrillthrough?.unsubscribe(),this.subLinkedMdx?.unsubscribe(),this.subRefreshDependants?.unsubscribe(),this.subDrillFilter?.unsubscribe(),this.subDrillFilterAll?.unsubscribe(),this.subPivotVar?.unsubscribe(),this.subPivotVarAll?.unsubscribe(),this.subDataSourceChange?.unsubscribe(),this.subColSpec?.unsubscribe(),this.subColSpecAll?.unsubscribe(),this.subChartType?.unsubscribe()}getDataProp(e){if(this.widget.dataProperties)return this.widget.dataProperties.find(i=>i.name===e)}getDataPropByDataValue(e){if(!this.widget.dataProperties||!e)return;let i=e.split("/");return this.widget.dataProperties.find(r=>{let n=r.dataValue?.toString().split("/");return i.some(l=>n.includes(l))})}getDataPropValue(e){let i=this.getDataProp(e);if(i&&i.dataValue!==null&&i.dataValue!==void 0)return i.dataValue.toString()}initializeActions(){if(!this.widget.controls||this.widget.controls.length===0)return;let e=["chooserowspec","setrowspec","choosedatasource","choosecharttype","applyfilter","setfilter","refresh","reloaddashboard","showlisting","showgeolisting","showbreakdown","setdatasource","applyvariable","setrowcount","setrowsort","setcolumncount","setcolumnsort","choosecolumnspec"],i=this.widget.controls.filter(r=>e.indexOf(r.action.toLowerCase())===-1&&r.type!=="hidden");i.length!==0&&(this.widget.acItems=i)}initializeChoseDataSource(){return Yt(this,null,function*(){if(!this.widget)return;let e=n=>n.action==="chooseDataSource"||n.action==="chooseRowSpec"||n.action==="setRowSpec"||n.action==="chooseColumnSpec",i=this.widget.type===wh;if(!i&&(!this.widget.controls||this.widget.controls.length===0))return;let r=[];if(this.widget.controls&&(r=this.widget.controls.filter(e).filter(n=>n.location!=="dashboard")),i){let n=this.dbs.getWidgets();for(let l=0;la.location==="dashboard")))}if(r.length!==0){this.hasDatasourceChooser=!0,this.widget.dsItems=[];for(let n=0;n{h[b]=u[v]})}}let m={action:r[n].action,label:r[n].label||this.i18n.get("dataSource"),dsSelected:r[n].value,control:r[n],labels:[],values:[],field:"select"};this.widget.dsItems.push(m);let p=null;if(c?p=yield this.ds.getTermList(c):p=h,p&&typeof p=="object"){for(let b in p)p[b]===this.widget.dataSource&&(this.widget.dsSelected=b);m.labels=[],m.values=[],(m.control?.action==="chooseRowSpec"||m.control?.action==="setRowSpec")&&(m.labels.push(""),m.values.push(""));for(let b in p)m.labels.push(b),m.values.push(p[b]);let u=-1;this.customDataSource?u=m.values.findIndex(b=>b===this.customDataSource):u=m.values.findIndex(b=>b.split("/").pop()===m.dsSelected),u===-1?m.dsSelected=m.labels[0]:m.dsSelected=m.labels[u],this.parent?.filters.detectChanges()}}}})}onVariableChange(e){let i=e.target;this.bs.broadcast(`updatePivotVar:${i}`)}onPivotVarChanged(){this.requestData()}getDataByColumnName(e,i,r,n=""){if(!e||!e.Data||!e.Cols||!e.Cols[0]||!e.Cols[0].tuples)return;let l=e.Cols[0].tuples.filter(m=>m.caption.toLowerCase()===i.toLowerCase());if(l.length===0)return;let a=e.Cols[0].tuples.indexOf(l[0]),h=e.Cols[0].tuples[a].originalIndex;h!==void 0&&(a=h);let c=e.Data[r+a];return n&&(c=this.formatNumber(c,n)),c}initializeDrillFilter(){let e=this.fs.getClickFilterTarget(this.widget.name);e?.length&&(this.drillFilterWidgets=e)}resetClickFilter(){if(this.widget.clickFilterActive=!1,!(!this.drillFilterWidgets||!this.drillFilterWidgets.length))for(let e=0;e{this.bs.broadcast("drillFilter:"+r,{path:"",drills:[]})})}}doDrillFilter(e,i=[]){if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let r=i.slice();e||r.pop(),this.widget.clickFilterActive=!!e;for(let n=0;n{this.bs.broadcast("drillFilter:"+a,{path:e,drills:r})})}this.parent?.header?.cd.detectChanges()}onDrillFilter(e,i){this.drillFilter=e,this.drillFilterDrills=i,this.requestData()}actionNavigate(e,i=!1){let r=e.targetProperty,n=r.toUpperCase().indexOf("DASHBOARD=");if(n!==-1){let l=r.substring(n+10,r.length);l.indexOf("?")===-1&&(l=l.replace("&","?"));let a=location.href;a.indexOf("#")!==-1?r=a.split("#")[0]+"#/"+xs+"/"+l:r+="#/"+xs+"/"+l}if(r=r.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=l.dataArray[(this.lpt.getSelectedRows()[0]-1)*l.columnProps.length],h=r.toLowerCase().indexOf("$$$currvalue");h!==-1&&(r=r.substring(0,h)+a+r.substring(h+12,r.length))}if(this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=this.lpt.getSelectedRows(),h=[];for(let m=0;mthis.requestData())}getDrillTitle(e){if(!e)return this.widget.baseTitle||"";let i=e.path.split(".");return i.pop(),(this.widget.baseTitle?this.widget.baseTitle+" - ":"")+(e.name?i[i.length-1]+" - ":"")+(e.name||e.category)}isEmptyData(e){return!e||!e.Cols||!e.Cols[1]||!e.Cols[1]||!e.Cols[1].tuples||e.Cols[1].tuples.length===0||!e.Data||e.Data.length===0||e.Data[0]==="@NOPROPERTY"}doDrillUp(){this.widget.isDrillthrough?(this.restoreWidgetType(),this.widget.isDrillthrough=!1,this.widget.backButton=!!this.drills?.length,this.parent.header?.cd.detectChanges()):this.doDrillOnly()}restoreWidgetType(){delete this.widget.pivotMdx,delete this.widget.pivotData,this.widget?.oldType&&(this.widget.type=this.widget.oldType,this.parent?.updateComponent())}changeWidgetType(e){this.widget.oldType=this.widget.type,this.widget.type=e,this.parent?.updateComponent()}getDrillthroughMdx(e){let i=e.toLowerCase(),r="select non empty",n=i.lastIndexOf(r);n===-1&&(r="select",n=i.lastIndexOf(r));let l=i.lastIndexOf("from");if(n===-1){console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");return}if(l===-1){console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");return}let a="";if(this.pivotData?.listingRows){let c=parseInt(this.pivotData.listingRows,10);c&&(a=` MAXROWS ${c} `)}let h=this.widget.controls.find(c=>c.action==="showListing");if(h){let c=h.targetPropertyDisplay;if(c)return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)+` %LISTING [${c}]`}return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)}doDrill(e,i,r,n,l=!1,a,h){return new Promise((c,m)=>{this.clearError(),l||this.doDrillFilter(e,this.drills);let p=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let u=this.getMDX();this.drills=p,this.showLoading();let b=()=>{if(n){n();return}if(!this.canDoDrillthrough)return;let v=this.getDrillthroughMdx(u)||"";this.ds.execMDX(v).then(x=>{!x||!x.children||x.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=x,this._currentData=x,this.displayAsPivot(v))}).catch(x=>{h&&h(x)})};this.showLoading(),this.ds.execMDX(u).catch(v=>{l?h&&h(v):b()}).then(v=>{if(v){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(v)&&e){b();return}this.isEmptyData(v)||(e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),this.retrieveData(v),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),this._currentData=v,a&&a())}}).finally(()=>{this.hideLoading(),c()})})}doDrillthrough(e,i,r,n,l=!1,a,h){return new Promise((c,m)=>{if(!this.canDoDrillthrough){c();return}if(this.clearError(),this.widget.kpitype&&i){this.doKPIDrillthrough(i);return}let p=this.drills.slice();e?Array.isArray(e)?e.forEach(v=>{this.drills.push({path:v,name:i||"",category:r})}):this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let u=this.getMDX();this.drills=p,this.showLoading();let b=this.getDrillthroughMdx(u)||"";this.ds.execMDX(b).then(v=>{!v||!v.children||v.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=v,this.displayAsPivot(b))}).catch(v=>{h&&h(v)}).finally(()=>{this.hideLoading()})})}doDrillOnly(e,i,r,n,l=!1,a,h){return new Promise((c,m)=>{this.clearError();let p=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop();let u=this.getMDX();this.drills=p,this.showLoading(),this.ds.execMDX(u).catch(b=>{h&&h(b)}).then(b=>{b&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(b)&&(this._currentData=b,e?this.drills.push({path:e,name:i||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),this.retrieveData(b),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),a&&a()))}).finally(()=>{this.hideLoading(),c()})})}checkForAutoDrill(e){return Yt(this,null,function*(){let i=!1;return e?.Cols[1]?.tuples?.length===1&&(this.oneItemDrillApplied=!0,yield this.doDrill(e.Cols[1].tuples[0].path,e.Cols[1].tuples[0].caption,void 0,void 0,!0,()=>{this.widget.backButton=!1,this.parent?.header?.cd.detectChanges(),i=!0},()=>{this.oneItemDrillApplied=!1})),i})}showLoading(){this.isSpinner||(this.isSpinner=!0,this.parent.cd.detectChanges(),this.cd.detectChanges())}hideLoading(){this.isSpinner&&(this.isSpinner=!1,this.parent.cd.detectChanges(),this.cd.detectChanges())}applyDrill(e){let i=this.route.snapshot.queryParamMap.get("filter");i&&(e=e+" %FILTER "+i);let r=this.drills;if(r.length===0&&(r=this.drillFilterDrills),r.length===0)return e;let n=[];this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(n=this.pivotData.rowAxisOptions.drilldownSpec.split("^"));for(let m=0;mthis._retriveDataSource(i)).catch(i=>{this.showError(i.error?.Error||i.message)})}convertKPIToMDXData(e,i=!1){let r=e,n=e.Result,l={Info:{cubeName:r.Info.KpiName},Cols:[],Data:[]},a=[];for(let c=0;cthis.broadcastDependents(),0),e.indexOf("$")!==-1&&!this.pivotVariables&&this.ds.getPivotVariables(this.widget.cube).then(i=>{this.pivotVariables=i}).catch(i=>{this.showError(i.message)}),this.showLoading(),this.ds.execMDX(e).then(i=>{this.removeColsThatNotExistInDataProperties(i),this._currentData=i,this.retrieveData(i)}).catch(i=>this._onRequestError(i)).finally(()=>{this.hideLoading()})}broadcastDependents(e){if(this.hasDependents())for(let i=0;in.action==="applyVariable");if(this.widget.shared){let n=this.route.snapshot.queryParamMap.get("variables");n&&n.split("~").forEach(a=>{let h=a.split("."),c=h[0],m=h[1],p=r.findIndex(u=>u.targetProperty==="$variable."+c);p!==-1?r[p].value=m:r.push({targetProperty:"$variable."+c,value:m})})}if(!r.length)return e;for(let n=0;np+b+(m?".%NOT":"")).join(",")||"",e+="})"}else e+=" %FILTER "+c}}return e}dateToHorolog(e){let i=new Date("12/31/1840Z"),n=this.us.toDate(e).getTime()-i.getTime();return Math.ceil(n/(1e3*3600*24)).toString()}getMDX(){let e=!1;if(this.widget.kpitype)return"";let i=this.fs.getWidgetFilters(this.widget.name);if(this.isLinked()){let l=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",i);return l=this.checkColSpec(l),this.applyDrill(l)}if(this.drillFilter){let l=this.drillFilter.indexOf("&");l!==-1&&i.push({targetProperty:this.drillFilter.substring(0,l-1),value:"&"+this.drillFilter.substring(l+1,this.drillFilter.length)})}for(let l=0;l{this.onResize()},0))}displayAsPivot(e){this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=e||this.getMDX(),this.changeWidgetType("pivot")),this.parent?.cd&&this.parent.cd.detectChanges()}formatNumber(e,i=""){let r="";if(e==null&&(e=""),i?r=(0,Qn.default)(e).format(i.replace(/;/g,""))||"":r=e.toString(),this.dataInfo){let n=this.dataInfo.numericGroupSeparator,l=this.dataInfo.numericGroupSize||3;if(n){let a=r.split(".");a[0]=a[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),r=a.join(".")}this.dataInfo.decimalSeparator&&(r=r.replace(/\./g,this.dataInfo.decimalSeparator))}return r}getDrillsAsParameter(){let e=this.drills;return e?.length?encodeURIComponent(e.map(i=>i.path).join("~")):""}getFormat(e,i,r){let n="";return this.widget?.format&&(n=this.widget.format),i.Cols[0].tuples[e].format&&(n=i.Cols[0].tuples[e].format),r?.format&&(n=r?.format),n}getDataValue(e,i,r){let n=i.Data[e],l=this.getFormat(e,i,r);return l&&(n=(0,Qn.default)(n).format(l)),n}_requestKPIData(e,i=!1){let r=this.customDataSource||this.widget.dataSource;if(!r)return;let n=this.fs.getWidgetFilters(this.widget.name)?.filter(a=>!!a.value).map(a=>a.value.toString().split("|").map(c=>({name:a.targetProperty,value:c,exclude:!!a.isExclude}))).flat();e&&n.push(...e);let l=!!e||i;return this.showLoading(),this.ds.getKPIData(r,n,l).then(a=>this._retriveKPI(a,l)).finally(()=>{this.hideLoading()})}removeColsThatNotExistInDataProperties(e){if(this.preventColFilteringBasedOnDataProperties||!this.widget.dataProperties?.length||!e?.Cols[0]?.tuples?.length)return;let i=[],r=e.Cols[0]?.tuples?.length||0;r&&(e.Cols[0].tuples=e?.Cols[0]?.tuples.filter((n,l)=>{let a=n.dimension.toString().split("/"),h=this.widget.dataProperties.some(c=>c.dataValue.toString().split("/").some(p=>a.includes(p)));return h||i.push(l),h}),e.Data=e.Data?.filter((n,l)=>!i.some(a=>l%r===a)))}subscribe(){this.subDrillFilter=this.bs.subscribe("drillFilter:"+this.widget.name,({path:e,drills:i})=>{this.onDrillFilter(e,i)}),this.subDrillFilterAll=this.bs.subscribe("drillFilter:*",({path:e,drills:i})=>{this.onDrillFilter(e,i)}),this.subDrilldown=this.bs.subscribe("drilldown:"+this.widget.name,({path:e,title:i})=>{this.doDrillOnly(e,i,i)}),this.subDrillthrough=this.bs.subscribe("drillthrough:"+this.widget.name,({path:e,title:i})=>{this.doDrillthrough(e,i,i)}),this.subPivotVar=this.bs.subscribe("updatePivotVar:"+this.widget.name,e=>this.onPivotVarChanged()),this.subPivotVarAll=this.bs.subscribe("updatePivotVar:*",e=>this.onPivotVarChanged()),this.subColSpec=this.bs.subscribe("setColSpec:"+this.widget.name,e=>this.onColSpecChanged(e)),this.subColSpecAll=this.bs.subscribe("setColSpec:*",e=>this.onColSpecChanged(e)),this.subDataSourceChange=this.bs.subscribe("changeDataSource:"+this.widget.name,e=>this.changeDataSource(e)),this.subChartType=this.bs.subscribe("setWidgetType:"+this.widget.name,e=>{this.changeWidgetType(e)})}getOverride(){let e=this.baseType;return e==="lineChartMarkers"&&(e="lineChart"),e==="regular"&&(e="scoreCard"),this.widget?.overrides?.find(i=>i._type===e)}updateLocationDrillParameters(){if(!this.widget?.shared)return;let e=location.hash,i=this.getDrillsAsParameter();this.ds.router.navigate([],{relativeTo:this.route,queryParams:{drilldown:i},queryParamsHandling:"merge"});let r={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(r,"*");try{window.parent.dsw?.onDrill&&window.parent.dsw.onDrill(r)}catch(n){console.error(n)}}updateDatasourceParameterInURL(){if(!this.widget?.shared)return;this.ds.router.navigate([],{relativeTo:this.route,queryParams:{datasource:this.customDataSource},queryParamsHandling:"merge"});let e={type:"datasource",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,datasource:this.customDataSource};window.parent&&window.parent.postMessage(e,"*");try{window.parent.dsw?.onDataSource&&window.parent.dsw.onDataSource(e)}catch(i){console.error(i)}}navigateDashboard(e){this.ds.router.navigateByUrl(xs+"/"+e)}initializeInputControls(){let e="setRowCount";this.widget.controls.filter(r=>e.includes(r.action)).forEach(r=>{this.widget.dsItems.push({action:r.action,label:r.label||"Row count",field:"input",type:"number",_value:r.value||void 0})})}applyRowCount(e){let i=this.widget.dsItems.find(h=>h.action==="setRowCount");if(!i||!i._value)return e;let r=/(HEAD\(.*),(.*)(\))/i;if(e.match(r))return e.replace(r,`$1,${i._value}$3`);let l=e.match(/ON 0,(.*)ON 1/)?.[1];if(!l)return e;l=l.replace("NON EMPTY","");let a=" HEAD("+l.trim()+`, ${i._value}) `;return e.replace(l,a)}extendPropsWithOverrides(){this.override&&this.override.columns?.forEach((e,i)=>{let r=this.widget.dataProperties[i];r&&(e.showAs&&(r.showAs=e.showAs),e.format&&(r.format=e.format),e.display&&(r.display=e.display),e.label&&(r.label=e.label),e.summary&&(r.summary=e.summary),e.rangeLower&&(r.rangeLower=e.rangeLower),e.rangeUpper&&(r.rangeUpper=e.rangeUpper),e.targetValue&&(r.targetValue=e.targetValue),e.thresholdLower&&(r.thresholdLower=e.thresholdLower),e.thresholdUpper&&(r.thresholdUpper=e.thresholdUpper))})}initializeDataSourceChooser(){this.widget.dsItems=[],this.widget.dsLabel="",this.widget.dsSelected="",this.widget&&this.widget.dataSource&&(this.widget.dsSelected=this.us.removeExt(this.widget.dataSource.split("/").pop()))}initializeLiveDataUpdate(){if(!(this.widget&&this.widget.controls))return;let e=this.widget.controls.filter(r=>r.action==="setColumnSpec");e.length!==0&&(this.customColSpec=e[0].targetProperty);let i=this.widget.controls.filter(r=>r.action==="refresh"&&parseInt(r.timeout,10)>0);i.length!==0&&(this.liveUpdateInterval=setInterval(()=>this.requestData(),parseInt(i[0].timeout,10)*1e3))}initializeLinkedWidgets(){if(this.isLinked())if(this.widget.shared||this.widget.inline||this.widget.edKey){let i=this.dbs.getAllWidgets().find(r=>r.name===this.widget.dataLink);i&&(this.linkedMdx=i.mdx)}else this.subLinkedMdx=this.bs.subscribe("setLinkedMDX:"+this.widget.name,e=>this.onSetLinkedMdx(e))}loadWidgetSettings(){let e=this.ss.getAppSettings(),i=e.theme||"";this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.tc=e?.themeColors?.[i];let r=this.widgetsSettings?.[this.widget.name]?.themeColors?.[i];r&&(this.tc=r)}initializeDrills(){this.widget?.drills&&(this.drills=this.widget.drills)}initializeTile(){this.tile&&(this.widget={},this.us.mergeRecursive(this.widget,this.tile))}initializeActionAndPvItems(){this.widget.acItems=[],this.widget.pvItems=[]}initializeDrillthrough(){this.widget.controls&&this.widget.controls.length&&(this.canDoDrillthrough=!0)}initializeDependants(){this.hasDependents()&&(this.subRefreshDependants=this.bs.subscribe("widget:"+this.widget.name+":refreshDependents",e=>this.onRefreshDependents()))}initializeDataRequest(){this.widget.initialData||(this.widget?.properties?.chartToggle==="table"&&this.widget.type!=="pivot"&&!this.widget.oldType?this.requestData():this.customDataSource||this.requestData())}doKPIDrillthrough(e){if(!this._kpiData)return;let i=this._kpiData.Result.Series.find(a=>a.seriesName===e);if(!i)return;let r=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i[a.name],path:""})),n=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i.seriesName,path:""})),l=this._requestKPIData([...r,...n]);l&&l.then(a=>{this._kpiData&&(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.initialData=this.convertKPIToMDXData(this._kpiData,!0),this.changeWidgetType("pivot"),setTimeout(()=>{delete this.widget.initialData}))})}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(i,r){i&2&&je("inline",r.inline)},inputs:{model:"model",parent:"parent",widget:"widget"},standalone:!0,features:[bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var ep=["images"];function ip(o,t){if(o&1){let s=hh();Lt(0,"div",2),ch("click",function(){let i=sh(s).$implicit,r=Nt();return rh(r.onClick(i))}),nh(),Lt(1,"svg",3,0)(3,"text"),ie(4),Lt(5,"tspan",4),ie(6),kt(),Lt(7,"tspan",5),ie(8),kt()()(),oh(),Lt(9,"label"),ie(10),kt()()}if(o&2){let s=t.$implicit,e=Nt();je("clickable",e.canDrillthrough),Dt(3),Ee("fill",s.valueColor),Dt(),ms("",s.value," "),Dt(2),Te(s.deltaNeg),Dt(2),Te(s.delta),Dt(2),Te(s.label)}}var Mh=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.images=[],this.widget={},this.textData=[]}get flexDirection(){let e=this.el?.nativeElement;if(e)return e.offsetWidth>e.offsetHeight?"row":"column"}get canDrillthrough(){return this.canDoDrillthrough}ngOnInit(){this.textData=[],super.ngOnInit()}ngAfterViewInit(){}findDataPropByName(e){if(this.widget.dataProperties){for(let i=0;i{let i=e.nativeElement,n=i.firstChild.getBBox();i.setAttribute("viewBox",[n.x,n.y,n.width,n.height].join(" "))})}retrieveData(e){if(this.textData=[],this.hideLoading(),e)for(let i=0;ip){let b=this.widget.properties?.highRangeColor;u.highStyle&&(b=this.getCss(u.highStyle).fill),b&&(c=b)}}this.textData.push({label:a,value:n,color:l,valueColor:c,dimension:e.Cols[0].tuples[i].dimension})}}this.cd.detectChanges(),setTimeout(()=>this.adjustSize())}onClick(e){this.doDrillthrough("",e.label)}getCss(e){let i={};return e.split(";").filter(r=>r).forEach(r=>{let n=r.split(":");i[n[0]]=n[1]}),i}getNumber(e){return typeof e=="string"?parseFloat(e.replace(/,/g,"").replace(/ /g,"")):e}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-wtext"]],viewQuery:function(i,r){if(i&1&&$i(ep,5),i&2){let n;Ji(n=Qi())&&(r.images=n)}},hostVars:2,hostBindings:function(i,r){i&2&&Ee("flex-direction",r.flexDirection)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[["images",""],[1,"item2",3,"clickable"],[1,"item2",3,"click"],[1,"text-widget"],[2,"font-size","4px","fill","red"],[2,"font-size","4px","fill","green"]],template:function(i,r){i&1&&oe(0,ip,11,8,"div",1,ne),i&2&&ae(r.textData)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-display:row;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial}.inline[_nghost-%COMP%] label[_ngcontent-%COMP%]{background-color:transparent;background-image:none}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0}label[_ngcontent-%COMP%]{display:block;flex-shrink:0;height:16px;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8);width:100%;text-align:center;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item2[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;margin:10px;background-color:#fafafa;padding:10px;min-height:0;min-width:0}.item2.clickable[_ngcontent-%COMP%]{cursor:pointer}.item2[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{height:auto;background:transparent;color:gray;font-size:19px}.item2[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:50%;width:100%;display:block}.text-widget[_ngcontent-%COMP%]{height:100%}"]});let o=t;return o})();var to=(()=>{let t=class t extends ye{constructor(){super(),this.widget={},this.isSpinner=!1,this._oldMdx=""}ngAfterViewInit(){this.createPivotTable()}ngOnDestroy(){super.ngOnDestroy()}createPivotTable(){let e=this,i={initialData:this.widget.pivotData,container:this.el.nativeElement,pivotProperties:{},enableListingSelect:!1,enableSearch:!1,dataSource:{pivot:this.widget.dataSource,MDX2JSONSource:this.ds.url.substring(0,this.ds.url.length-1),basicMDX:this.widget.pivotMdx||this.getMDX(),namespace:xs,sendCookies:!0},triggers:{drillDown:r=>this.onDrillDown(r),rowClick:(r,n,l)=>e.drillFilterWidgets?.length?(e.doDrillFilter(l.source.path,e.drills),e.parent?.header?.cd.detectChanges(),!1):!this.widget.kpitype,back:r=>this.onDrillDown(r),cellDrillThrough:(...r)=>this.onDrillThrough(...r),responseHandler:r=>{r.status!==200&&this.showError(r.xhr.responseText)}},loadingMessageHTML:'',columnResizeAnimation:!0,locale:this.i18n.current,hideButtons:!0,formatNumbers:"#,###.##",controls:this.widget.controls};if(delete this.widget.pivotMdx,this.lpt=new LightPivotTable(i),this.widget.edKey&&this.lpt?.pivotView.displayMessage(""),this.lpt&&this.widget.initialData){let r=this.widget.initialData;setTimeout(()=>{this.lpt?.dataController.setData(this.lpt.dataSource._convert(r))})}}doDrillUp(){this.widget.isDrillthrough&&this.restoreWidgetType?(this.widget.isDrillthrough=!1,this.restoreWidgetType(),this.widget.kpitype&&this.requestData()):this.lpt?.CONTROLS.back(),this.widget.backButton=this.lpt?.DRILL_LEVEL!==0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}onDrillThrough(...e){if(!this.canDoDrillthrough)return!1;if(this.widget.kpitype){let{cellData:i,x:r,y:n}=e[0],{info:l,dimensions:a}=e[1];if(!a[0])return;let h=a[0][r-l.leftHeaderColumnsNumber]?.dimension||"",c=a[0][0]?.dimension||"",m=a[1][n-l.topHeaderRowsNumber]?.title||"";if(!h||!c)return;let p=[{name:h,value:i.value,path:""},{name:c,value:m,path:""}];return this._requestKPIData(p)?.then(()=>{this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}),!1}return this._oldMdx=this.lpt?.getActualMDX()||"",this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),!0}onDrillDown(e){e.path?(this.doDrillFilter(e.path,this.drills),this.drills.push({path:e.path,name:"",category:""}),this.widget.backButton=!0):(this.drills.pop(),this.doDrillFilter(e.path,this.drills)),this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),this.broadcastDependents(e.mdx)}requestData(){let e=this.customDataSource||this.widget.dataSource;if(this.widget.kpitype){this._requestKPIData();return}if(this.lpt){let i=this.getMDX();if(this.lpt.isListing()&&(delete this.lpt.CONFIG.initialData,i.toLowerCase().substr(0,12)!=="drillthrough"&&(i=this.getDrillthroughMdx(i)||"")),i==="")return;this.drillFilter&&(i=i+" %FILTER "+this.drillFilter),this.broadcastDependents(),this.clearError(),this.lpt.changeBasicMDX(i)}}onResize(){this.lpt&&setTimeout(()=>this.lpt?.updateSizes(),100)}print(){}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=yt({type:t,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},styles:["[_nghost-%COMP%]{height:100%}"]});let o=t;return o})();var eo=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};var Jt=eo;var Be={PROPERTYCHANGE:"propertychange"};var io=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}},bs=io;function $e(o,t){return o>t?1:o0?i-1:i}return e-1}if(s>0){for(let i=1;i0||s&&n===0)})}function xi(){return!0}function yi(){return!1}function Ge(){}function Ah(o){let t=!1,s,e,i;return function(){let r=Array.prototype.slice.call(arguments);return(!t||this!==i||!he(r,e))&&(t=!0,i=this,e=r,s=o.apply(this,arguments)),s}}function Je(o){for(let t in o)delete o[t]}function bi(o){let t;for(t in o)return!1;return!t}var so=class extends bs{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,s){if(!t||!s)return;let e=this.listeners_||(this.listeners_={}),i=e[t]||(e[t]=[]);i.includes(s)||i.push(s)}dispatchEvent(t){let s=typeof t=="string",e=s?t:t.type,i=this.listeners_&&this.listeners_[e];if(!i)return;let r=s?new Jt(t):t;r.target||(r.target=this.eventTarget_||this);let n=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});e in n||(n[e]=0,l[e]=0),++n[e];let a;for(let h=0,c=i.length;h0:!1}removeEventListener(t,s){let e=this.listeners_&&this.listeners_[t];if(e){let i=e.indexOf(s);i!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(e[i]=Ge,++this.pendingRemovals_[t]):(e.splice(i,1),e.length===0&&delete this.listeners_[t]))}}},Li=so;var ut={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"};function Mt(o,t,s,e,i){if(e&&e!==o&&(s=s.bind(e)),i){let n=s;s=function(){o.removeEventListener(t,s),n.apply(this,arguments)}}let r={target:o,type:t,listener:s};return o.addEventListener(t,s),r}function Cs(o,t,s,e){return Mt(o,t,s,e,!0)}function At(o){o&&o.target&&(o.target.removeEventListener(o.type,o.listener),Je(o))}var _s=class extends Li{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(ut.CHANGE)}getRevision(){return this.revision_}onInternal(t,s){if(Array.isArray(t)){let e=t.length,i=new Array(e);for(let r=0;r0;)this.pop()}extend(t){for(let s=0,e=t.length;sthis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(s),this.array_.splice(t,0,s),this.updateLength_(),this.dispatchEvent(new ws(Qt.ADD,s,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let s=this.getLength();return this.insertAt(s,t),this.getLength()}remove(t){let s=this.array_;for(let e=0,i=s.length;e=this.getLength())return;let s=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new ws(Qt.REMOVE,s,t)),s}setAt(t,s){let e=this.getLength();if(t>=e){this.insertAt(t,s);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(s,t);let i=this.array_[t];this.array_[t]=s,this.dispatchEvent(new ws(Qt.REMOVE,i,t)),this.dispatchEvent(new ws(Qt.ADD,s,t))}updateLength_(){this.set(Ph.LENGTH,this.array_.length)}assertUnique_(t,s){for(let e=0,i=this.array_.length;ei&&(a=a|Ht.RIGHT),lr&&(a=a|Ht.ABOVE),a===Ht.UNKNOWN&&(a=Ht.INTERSECTING),a}function Vt(){return[1/0,1/0,-1/0,-1/0]}function Pe(o,t,s,e,i){return i?(i[0]=o,i[1]=t,i[2]=s,i[3]=e,i):[o,t,s,e]}function ts(o){return Pe(1/0,1/0,-1/0,-1/0,o)}function Fh(o,t){let s=o[0],e=o[1];return Pe(s,e,s,e,t)}function Hr(o,t,s,e,i){let r=ts(i);return ho(r,o,t,s,e)}function Ci(o,t){return o[0]==t[0]&&o[2]==t[2]&&o[1]==t[1]&&o[3]==t[3]}function zh(o,t){return t[0]o[2]&&(o[2]=t[2]),t[1]o[3]&&(o[3]=t[3]),o}function es(o,t){t[0]o[2]&&(o[2]=t[0]),t[1]o[3]&&(o[3]=t[1])}function ho(o,t,s,e,i){for(;st[0]?e[0]=o[0]:e[0]=t[0],o[1]>t[1]?e[1]=o[1]:e[1]=t[1],o[2]=t[0]&&o[1]<=t[3]&&o[3]>=t[1]}function Fi(o){return o[2]=n&&v<=a),!e&&r&Ht.RIGHT&&!(i&Ht.RIGHT)&&(x=u-(p-a)*b,e=x>=l&&x<=h),!e&&r&Ht.BELOW&&!(i&Ht.BELOW)&&(v=p-(u-l)/b,e=v>=n&&v<=a),!e&&r&Ht.LEFT&&!(i&Ht.LEFT)&&(x=u-(p-n)*b,e=x>=l&&x<=h)}return e}function Gh(o,t,s,e){if(Fi(o))return ts(s);let i=[];if(e>1){let l=o[2]-o[0],a=o[3]-o[1];for(let h=0;h=s[2])){let i=Pt(s),n=Math.floor((e[0]-s[0])/i)*i;o[0]-=n,o[2]-=n}return o}function Xh(o,t){if(t.canWrapX()){let s=t.getExtent();if(!isFinite(o[0])||!isFinite(o[2]))return[[s[0],o[1],s[2],o[3]]];co(o,t);let e=Pt(s);if(Pt(o)>e)return[[s[0],o[1],s[2],o[3]]];if(o[0]s[2])return[[o[0],o[1],s[2],o[3]],[s[0],o[1],o[2]-e,o[3]]]}return[o]}function Rt(o,t,s){return Math.min(Math.max(o,t),s)}function Wh(o,t,s,e,i,r){let n=i-s,l=r-e;if(n!==0||l!==0){let a=((o-s)*n+(t-e)*l)/(n*n+l*l);a>1?(s=i,e=r):a>0&&(s+=n*a,e+=l*a)}return Xe(o,t,s,e)}function Xe(o,t,s,e){let i=s-o,r=e-t;return i*i+r*r}function Yh(o){let t=o.length;for(let e=0;er&&(r=a,i=l)}if(r===0)return null;let n=o[i];o[i]=o[e],o[e]=n;for(let l=e+1;l=0;e--){s[e]=o[e][t]/o[e][e];for(let i=e-1;i>=0;i--)o[i][t]-=o[i][e]*s[e]}return s}function Ds(o){return o*Math.PI/180}function _i(o,t){let s=o%t;return s*t<0?s+t:s}function be(o,t,s){return o+s*(t-o)}function qr(o,t){let s=Math.pow(10,t);return Math.round(o*s)/s}function ir(o,t){return Math.floor(qr(o,t))}function sr(o,t){return Math.ceil(qr(o,t))}var dp=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,up=/^([a-z]*)$|^hsla?\(.*\)$/i;function $r(o){return typeof o=="string"?o:uo(o)}function pp(o){let t=document.createElement("div");if(t.style.color=o,t.style.color!==""){document.body.appendChild(t);let s=getComputedStyle(t).color;return document.body.removeChild(t),s}return""}var fp=function(){let t={},s=0;return function(e){let i;if(t.hasOwnProperty(e))i=t[e];else{if(s>=1024){let r=0;for(let n in t)r++&3||(delete t[n],--s)}i=gp(e),t[e]=i,++s}return i}}();function is(o){return Array.isArray(o)?o:fp(o)}function gp(o){let t,s,e,i,r;if(up.exec(o)&&(o=pp(o)),dp.exec(o)){let n=o.length-1,l;n<=4?l=1:l=2;let a=n===4||n===8;t=parseInt(o.substr(1+0*l,l),16),s=parseInt(o.substr(1+1*l,l),16),e=parseInt(o.substr(1+2*l,l),16),a?i=parseInt(o.substr(1+3*l,l),16):i=255,l==1&&(t=(t<<4)+t,s=(s<<4)+s,e=(e<<4)+e,a&&(i=(i<<4)+i)),r=[t,s,e,i/255]}else o.startsWith("rgba(")?(r=o.slice(5,-1).split(",").map(Number),Vh(r)):o.startsWith("rgb(")?(r=o.slice(4,-1).split(",").map(Number),r.push(1),Vh(r)):gt(!1,14);return r}function Vh(o){return o[0]=Rt(o[0]+.5|0,0,255),o[1]=Rt(o[1]+.5|0,0,255),o[2]=Rt(o[2]+.5|0,0,255),o[3]=Rt(o[3],0,1),o}function uo(o){let t=o[0];t!=(t|0)&&(t=t+.5|0);let s=o[1];s!=(s|0)&&(s=s+.5|0);let e=o[2];e!=(e|0)&&(e=e+.5|0);let i=o[3]===void 0?1:Math.round(o[3]*100)/100;return"rgba("+t+","+s+","+e+","+i+")"}var po=class{constructor(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(let s in this.cache_){let e=this.cache_[s];!(t++&3)&&!e.hasListener()&&(delete this.cache_[s],--this.cacheSize_)}}}get(t,s,e){let i=Uh(t,s,e);return i in this.cache_?this.cache_[i]:null}set(t,s,e,i){let r=Uh(t,s,e);this.cache_[r]=i,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function Uh(o,t,s){let e=s?$r(s):"null";return t+":"+o+":"+e}var Ls=new po;var It={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"};var fo=class extends Ut{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;let s=Object.assign({},t);typeof t.properties=="object"&&(delete s.properties,Object.assign(s,t.properties)),s[It.OPACITY]=t.opacity!==void 0?t.opacity:1,gt(typeof s[It.OPACITY]=="number",64),s[It.VISIBLE]=t.visible!==void 0?t.visible:!0,s[It.Z_INDEX]=t.zIndex,s[It.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,s[It.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,s[It.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,s[It.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=s.className!==void 0?s.className:"ol-layer",delete s.className,this.setProperties(s),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let s=this.state_||{layer:this,managed:t===void 0?!0:t},e=this.getZIndex();return s.opacity=Rt(Math.round(this.getOpacity()*100)/100,0,1),s.visible=this.getVisible(),s.extent=this.getExtent(),s.zIndex=e===void 0&&!s.managed?1/0:e,s.maxResolution=this.getMaxResolution(),s.minResolution=Math.max(this.getMinResolution(),0),s.minZoom=this.getMinZoom(),s.maxZoom=this.getMaxZoom(),this.state_=s,s}getLayersArray(t){return Et()}getLayerStatesArray(t){return Et()}getExtent(){return this.get(It.EXTENT)}getMaxResolution(){return this.get(It.MAX_RESOLUTION)}getMinResolution(){return this.get(It.MIN_RESOLUTION)}getMinZoom(){return this.get(It.MIN_ZOOM)}getMaxZoom(){return this.get(It.MAX_ZOOM)}getOpacity(){return this.get(It.OPACITY)}getSourceState(){return Et()}getVisible(){return this.get(It.VISIBLE)}getZIndex(){return this.get(It.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(It.EXTENT,t)}setMaxResolution(t){this.set(It.MAX_RESOLUTION,t)}setMinResolution(t){this.set(It.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(It.MAX_ZOOM,t)}setMinZoom(t){this.set(It.MIN_ZOOM,t)}setOpacity(t){gt(typeof t=="number",64),this.set(It.OPACITY,t)}setVisible(t){this.set(It.VISIBLE,t)}setZIndex(t){this.set(It.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},Jr=fo;var ge={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var Zt={ANIMATING:0,INTERACTING:1};var Oe={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var We={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var go=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=t.extent!==void 0?t.extent:null,this.worldExtent_=t.worldExtent!==void 0?t.worldExtent:null,this.axisOrientation_=t.axisOrientation!==void 0?t.axisOrientation:"enu",this.global_=t.global!==void 0?t.global:!1,this.canWrapX_=!!(this.global_&&this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||We[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!!(t&&this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!!(this.global_&&t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},Qr=go;var rr=6378137,Is=Math.PI*rr,mp=[-Is,-Is,Is,Is],xp=[-180,-85,180,85],tn=rr*Math.log(Math.tan(Math.PI/2)),zi=class extends Qr{constructor(t){super({code:t,units:"m",extent:mp,global:!0,worldExtent:xp,getPointResolution:function(s,e){return s/Math.cosh(e[1]/rr)}})}},mo=[new zi("EPSG:3857"),new zi("EPSG:102100"),new zi("EPSG:102113"),new zi("EPSG:900913"),new zi("http://www.opengis.net/def/crs/EPSG/0/3857"),new zi("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Hh(o,t,s){let e=o.length;s=s>1?s:2,t===void 0&&(s>2?t=o.slice():t=new Array(e));for(let i=0;itn?r=tn:r<-tn&&(r=-tn),t[i+1]=r}return t}function Zh(o,t,s){let e=o.length;s=s>1?s:2,t===void 0&&(s>2?t=o.slice():t=new Array(e));for(let i=0;i=0;--e)if(o[e]!=t[e]){s=!1;break}return s}function ks(o,t){let s=Math.cos(t),e=Math.sin(t),i=o[0]*s-o[1]*e,r=o[1]*s+o[0]*e;return o[0]=i,o[1]=r,o}function tc(o,t){return o[0]*=t,o[1]*=t,o}function en(o,t){if(t.canWrapX()){let s=Pt(t.getExtent()),e=ec(o,t,s);e&&(o[0]-=e*s)}return o}function ec(o,t,s){let e=t.getExtent(),i=0;return t.canWrapX()&&(o[0]e[2])&&(s=s||Pt(e),i=Math.floor((o[0]-e[0])/s)),i}var vp=63710088e-1;function bo(o,t,s){s=s||vp;let e=Ds(o[1]),i=Ds(t[1]),r=(i-e)/2,n=Ds(t[0]-o[0])/2,l=Math.sin(r)*Math.sin(r)+Math.sin(n)*Math.sin(n)*Math.cos(e)*Math.cos(i);return 2*s*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var ic={info:1,warn:2,error:3,none:4},Cp=ic.info;function sn(...o){Cp>ic.warn||console.warn(...o)}var vo=!0;function rc(o){vo=!(o===void 0?!0:o)}function Co(o,t){if(t!==void 0){for(let s=0,e=o.length;s=-180&&o[0]<=180&&o[1]>=-90&&o[1]<=90&&(vo=!1,sn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),o)}function Os(o,t){return Ye?oc(o,t,Ye):o}function Ue(o,t){return Ye?oc(o,Ye,t):o}function ac(o,t){if(!Ye)return o;let s=ue(t).getUnits(),e=Ye.getUnits();return s&&e?o*We[s]/We[e]:o}function Mp(){sc(mo),sc(xo),Sp(xo,mo,Hh,Zh)}Mp();function wo(o,t,s){return function(e,i,r,n,l){if(!e)return;if(!i&&!t)return e;let a=t?0:r[0]*i,h=t?0:r[1]*i,c=l?l[0]:0,m=l?l[1]:0,p=o[0]+a/2+c,u=o[2]-a/2+c,b=o[1]+h/2+m,v=o[3]-h/2+m;p>u&&(p=(u+p)/2,u=p),b>v&&(b=(v+b)/2,v=b);let x=Rt(e[0],p,u),f=Rt(e[1],b,v);if(n&&s&&i){let A=30*i;x+=-A*Math.log(1+Math.max(0,p-e[0])/A)+A*Math.log(1+Math.max(0,e[0]-u)/A),f+=-A*Math.log(1+Math.max(0,b-e[1])/A)+A*Math.log(1+Math.max(0,e[1]-v)/A)}return[x,f]}}function lc(o){return o}function So(o,t,s,e){let i=Pt(t)/s[0],r=de(t)/s[1];return e?Math.min(o,Math.max(i,r)):Math.min(o,Math.min(i,r))}function Mo(o,t,s){let e=Math.min(o,t),i=50;return e*=Math.log(1+i*Math.max(0,o/t-1))/i+1,s&&(e=Math.max(e,s),e/=Math.log(1+i*Math.max(0,s/o-1))/i+1),Rt(e,s/2,t*2)}function hc(o,t,s,e){return t=t!==void 0?t:!0,function(i,r,n,l){if(i!==void 0){let a=o[0],h=o[o.length-1],c=s?So(a,s,n,e):a;if(l)return t?Mo(i,c,h):Rt(i,h,c);let m=Math.min(c,i),p=Math.floor(vs(o,m,r));return o[p]>c&&p1)m=s;else if(p>0){for(let u=0;ui&&(i=h),r=l,n=a}return i}function Io(o,t,s,e,i){for(let r=0,n=s.length;r0;){let m=h.pop(),p=h.pop(),u=0,b=o[p],v=o[p+1],x=o[m],f=o[m+1];for(let A=p+e;Au&&(c=A,u=w)}u>i&&(a[(c-t)/e]=1,p+e0&&v>u)&&(b<0&&x0&&x>b)){h=m,c=p;continue}r[n++]=h,r[n++]=c,l=h,a=c,h=m,c=p}return r[n++]=h,r[n++]=c,n}function Fo(o,t,s,e,i,r,n,l){for(let a=0,h=s.length;ar&&(h-l)*(r-a)-(i-l)*(c-a)>0&&n++:c<=r&&(h-l)*(r-a)-(i-l)*(c-a)<0&&n--,l=h,a=c}return n!==0}function cr(o,t,s,e,i,r){if(s.length===0||!Gi(o,t,s[0],e,i,r))return!1;for(let n=1,l=s.length;nf&&(h=(c+m)/2,cr(o,t,s,e,h,b)&&(x=h,f=A)),c=m}return isNaN(x)&&(x=i[r]),n?(n.push(x,b,f),n):[x,b,f]}function Lc(o,t,s,e,i){let r=[];for(let n=0,l=s.length;n=i[0]&&r[2]<=i[2]||r[1]>=i[1]&&r[3]<=i[3]?!0:Ic(o,t,s,e,function(n,l){return Bh(i,n,l)}):!1}function Wo(o,t,s,e,i){return!!(Rc(o,t,s,e,i)||Gi(o,t,s,e,i[0],i[1])||Gi(o,t,s,e,i[0],i[3])||Gi(o,t,s,e,i[2],i[1])||Gi(o,t,s,e,i[2],i[3]))}function Yo(o,t,s,e,i){if(!Wo(o,t,s[0],e,i))return!1;if(s.length===1)return!0;for(let r=1,n=s.length;r0}function Vo(o,t,s,e,i){i=i!==void 0?i:!1;for(let r=0,n=s.length;r1&&typeof arguments[s-1]=="function"&&(e=arguments[s-1],--s);let i=0;for(;i0}getInteracting(){return this.hints_[Zt.INTERACTING]>0}cancelAnimations(){this.setHint(Zt.ANIMATING,-this.hints_[Zt.ANIMATING]);let t;for(let s=0,e=this.animations_.length;s=0;--e){let i=this.animations_[e],r=!0;for(let n=0,l=i.length;n0?h/a.duration:1;c>=1?(a.complete=!0,c=1):r=!1;let m=a.easing(c);if(a.sourceCenter){let p=a.sourceCenter[0],u=a.sourceCenter[1],b=a.targetCenter[0],v=a.targetCenter[1];this.nextCenter_=a.targetCenter;let x=p+m*(b-p),f=u+m*(v-u);this.targetCenter_=[x,f]}if(a.sourceResolution&&a.targetResolution){let p=m===1?a.targetResolution:a.sourceResolution+m*(a.targetResolution-a.sourceResolution);if(a.anchor){let u=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(p,0,u,!0);this.targetCenter_=this.calculateCenterZoom(b,a.anchor)}this.nextResolution_=a.targetResolution,this.targetResolution_=p,this.applyTargetState_(!0)}if(a.sourceRotation!==void 0&&a.targetRotation!==void 0){let p=m===1?_i(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+m*(a.targetRotation-a.sourceRotation);if(a.anchor){let u=this.constraints_.rotation(p,!0);this.targetCenter_=this.calculateCenterRotate(u,a.anchor)}this.nextRotation_=a.targetRotation,this.targetRotation_=p}if(this.applyTargetState_(!0),s=!0,!a.complete)break}if(r){this.animations_[e]=null,this.setHint(Zt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let n=i[0].callback;n&&hn(n,!0)}}this.animations_=this.animations_.filter(Boolean),s&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,s){let e,i=this.getCenterInternal();return i!==void 0&&(e=[i[0]-s[0],i[1]-s[1]],ks(e,t-this.getRotation()),Qh(e,s)),e}calculateCenterZoom(t,s){let e,i=this.getCenterInternal(),r=this.getResolution();if(i!==void 0&&r!==void 0){let n=s[0]-t*(s[0]-i[0])/r,l=s[1]-t*(s[1]-i[1])/r;e=[n,l]}return e}getViewportSize_(t){let s=this.viewportSize_;if(t){let e=s[0],i=s[1];return[Math.abs(e*Math.cos(t))+Math.abs(i*Math.sin(t)),Math.abs(e*Math.sin(t))+Math.abs(i*Math.cos(t))]}return s}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t&&ar(t,this.getProjection())}getCenterInternal(){return this.get(Oe.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return t!==void 0?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){let s=this.calculateExtentInternal(t);return Os(s,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let s=this.getCenterInternal();gt(s,1);let e=this.getResolution();gt(e!==void 0,2);let i=this.getRotation();return gt(i!==void 0,3),er(s,e,i,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(Oe.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,s){return this.getResolutionForExtentInternal(Ue(t,this.getProjection()),s)}getResolutionForExtentInternal(t,s){s=s||this.getViewportSizeMinusPadding_();let e=Pt(t)/s[0],i=de(t)/s[1];return Math.max(e,i)}getResolutionForValueFunction(t){t=t||2;let s=this.getConstrainedResolution(this.maxResolution_),e=this.minResolution_,i=Math.log(s/e)/Math.log(t);return function(r){return s/Math.pow(t,r*i)}}getRotation(){return this.get(Oe.ROTATION)}getValueForResolutionFunction(t){let s=Math.log(t||2),e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,r=Math.log(e/i)/s;return function(n){return Math.log(e/n)/s/r}}getViewportSizeMinusPadding_(t){let s=this.getViewportSize_(t),e=this.padding_;return e&&(s=[s[0]-e[1]-e[3],s[1]-e[0]-e[2]]),s}getState(){let t=this.getProjection(),s=this.getResolution(),e=this.getRotation(),i=this.getCenterInternal(),r=this.padding_;if(r){let n=this.getViewportSizeMinusPadding_();i=Ko(i,this.getViewportSize_(),[n[0]/2+r[3],n[1]/2+r[0]],s,e)}return{center:i.slice(0),projection:t!==void 0?t:null,resolution:s,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:e,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,s=this.getResolution();return s!==void 0&&(t=this.getZoomForResolution(s)),t}getZoomForResolution(t){let s=this.minZoom_||0,e,i;if(this.resolutions_){let r=vs(this.resolutions_,t,1);s=r,e=this.resolutions_[r],r==this.resolutions_.length-1?i=2:i=e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return s+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let s=Rt(Math.floor(t),0,this.resolutions_.length-2),e=this.resolutions_[s]/this.resolutions_[s+1];return this.resolutions_[s]/Math.pow(e,Rt(t-s,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,s){let e;if(gt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){gt(!Fi(t),25);let i=Ue(t,this.getProjection());e=Ho(i)}else if(t.getType()==="Circle"){let i=Ue(t.getExtent(),this.getProjection());e=Ho(i),e.rotate(this.getRotation(),Qe(i))}else{let i=nn();i?e=t.clone().transform(i,this.getProjection()):e=t}this.fitInternal(e,s)}rotatedExtentForGeometry(t){let s=this.getRotation(),e=Math.cos(s),i=Math.sin(-s),r=t.getFlatCoordinates(),n=t.getStride(),l=1/0,a=1/0,h=-1/0,c=-1/0;for(let m=0,p=r.length;m{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let s,e=this.getMapInternal();!t&&e&&(t=e.getView()),t instanceof De?s={viewState:t.getState(),extent:t.calculateExtent()}:s=t,!s.layerStatesArray&&e&&(s.layerStatesArray=e.getLayerGroup().getLayerStatesArray());let i;s.layerStatesArray?i=s.layerStatesArray.find(n=>n.layer===this):i=this.getLayerState();let r=this.getExtent();return dr(i,s.viewState)&&(!r||Wt(r,s.extent))}getAttributions(t){if(!this.isVisible(t))return[];let s,e=this.getSource();if(e&&(s=e.getAttributions()),!s)return[];let i=t instanceof De?t.getViewStateAndExtent():t,r=s(i);return Array.isArray(r)||(r=[r]),r}render(t,s){let e=this.getRenderer();return e.prepareFrame(t)?(this.rendered=!0,e.renderFrame(t,s)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(It.MAP,t)}getMapInternal(){return this.get(It.MAP)}setMap(t){this.mapPrecomposeKey_&&(At(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(At(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Mt(t,ge.PRECOMPOSE,function(s){let i=s.frameState.layerStatesArray,r=this.getLayerState(!1);gt(!i.some(function(n){return n.layer===r.layer}),67),i.push(r)},this),this.mapRenderKey_=Mt(this,ut.CHANGE,t.render,t),this.changed())}setSource(t){this.set(It.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}};function dr(o,t){if(!o.visible)return!1;let s=t.resolution;if(s=o.maxResolution)return!1;let e=t.zoom;return e>o.minZoom&&e<=o.maxZoom}var ns=$o;var Jo=class extends bs{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,s){Et()}calculateMatrices2D(t){let s=t.viewState,e=t.coordinateToPixelTransform,i=t.pixelToCoordinateTransform;fe(e,t.size[0]/2,t.size[1]/2,1/s.resolution,-1/s.resolution,-s.rotation,-s.center[0],-s.center[1]),Ms(i,e)}forEachFeatureAtCoordinate(t,s,e,i,r,n,l,a){let h,c=s.viewState;function m(S,w,R,O){return r.call(n,w,S?R:null,O)}let p=c.projection,u=en(t.slice(),p),b=[[0,0]];if(p.canWrapX()&&i){let S=p.getExtent(),w=Pt(S);b.push([-w,0],[w,0])}let v=s.layerStatesArray,x=v.length,f=[],A=[];for(let S=0;S=0;--w){let R=v[w],O=R.layer;if(O.hasRenderer()&&dr(R,c)&&l.call(a,O)){let I=O.getRenderer(),_=O.getSource();if(I&&_){let P=_.getWrapX()?u:t,F=m.bind(null,R.managed);A[0]=P[0]+b[S][0],A[1]=P[1]+b[S][1],h=I.forEachFeatureAtCoordinate(A,s,e,F,f)}if(h)return h}}if(f.length===0)return;let L=1/f.length;return f.forEach((S,w)=>S.distanceSq+=w*L),f.sort((S,w)=>S.distanceSq-w.distanceSq),f.some(S=>h=S.callback(S.feature,S.layer,S.geometry)),h}hasFeatureAtCoordinate(t,s,e,i,r,n){return this.forEachFeatureAtCoordinate(t,s,e,i,xi,this,r,n)!==void 0}getMap(){return this.map_}renderFrame(t){Et()}flushDeclutterItems(t){}scheduleExpireIconCache(t){Ls.canExpireCache()&&t.postRenderFunctions.push(Ip)}};function Ip(o,t){Ls.expire()}var jc=Jo;var Qo=class extends Jt{constructor(t,s,e,i){super(t),this.inversePixelTransform=s,this.frameState=e,this.context=i}},cn=Qo;var ur="ol-hidden";var Wi="ol-unselectable";var Ns="ol-control",ta="ol-collapsed",Rp=new RegExp(["^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)","(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)","(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?","(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))","(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))",`?\\s*([-,\\"\\'\\sa-z]+?)\\s*$`].join(""),"i"),Bc=["style","variant","weight","size","lineHeight","family"],ea=function(o){let t=o.match(Rp);if(!t)return null;let s={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,i=Bc.length;eMath.max(i,dn(o,r)),0);return s[t]=e,e}function Vc(o,t){let s=[],e=[],i=[],r=0,n=0,l=0,a=0;for(let h=0,c=t.length;h<=c;h+=2){let g=t[h];if(g===` -`||h===c){r=Math.max(r,n),i.push(n),n=0,l+=a;continue}let u=t[h+1]||o.font,p=dn(u,g);s.push(p),n+=p;let b=kp(u);e.push(b),a=Math.max(a,b)}return{width:r,height:l,widths:s,heights:e,lineWidths:i}}function Uc(o,t,s,e,i,r,n,l,a,h,c){o.save(),s!==1&&(o.globalAlpha*=s),t&&o.setTransform.apply(o,t),e.contextInstructions?(o.translate(a,h),o.scale(c[0],c[1]),Op(e,o)):c[0]<0||c[1]<0?(o.translate(a,h),o.scale(c[0],c[1]),o.drawImage(e,i,r,n,l,0,0,n,l)):o.drawImage(e,i,r,n,l,a,h,n*c[0],l*c[1]),o.restore()}function Op(o,t){let s=o.contextInstructions;for(let e=0,i=s.length;e=0;--e)s[e].renderDeclutter(t);s.length=0}},Hc=oa;var He=class extends Jt{constructor(t,s){super(t),this.layer=s}},aa={LAYERS:"layers"},la=class o extends Jr{constructor(t){t=t||{};let s=Object.assign({},t);delete s.layers;let e=t.layers;super(s),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(aa.LAYERS,this.handleLayersChanged_),e?Array.isArray(e)?e=new se(e.slice(),{unique:!0}):gt(typeof e.getArray=="function",43):e=new se(void 0,{unique:!0}),this.setLayers(e)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(At),this.layersListenerKeys_.length=0;let t=this.getLayers();this.layersListenerKeys_.push(Mt(t,Qt.ADD,this.handleLayersAdd_,this),Mt(t,Qt.REMOVE,this.handleLayersRemove_,this));for(let e in this.listenerKeys_)this.listenerKeys_[e].forEach(At);Je(this.listenerKeys_);let s=t.getArray();for(let e=0,i=s.length;e{this.clickTimeoutId_=void 0;let e=new ni(Ft.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){let s=t,e=s.pointerId;if(s.type==Ft.POINTERUP||s.type==Ft.POINTERCANCEL){delete this.trackedTouches_[e];for(let i in this.trackedTouches_)if(this.trackedTouches_[i].target!==s.target){delete this.trackedTouches_[i];break}}else(s.type==Ft.POINTERDOWN||s.type==Ft.POINTERMOVE)&&(this.trackedTouches_[e]=s);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let s=new ni(Ft.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(s),this.emulateClicks_&&!s.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(At),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);let s=new ni(Ft.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(s),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){let e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Mt(e,Ft.POINTERMOVE,this.handlePointerMove_,this),Mt(e,Ft.POINTERUP,this.handlePointerUp_,this),Mt(this.element_,Ft.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(Mt(this.element_.getRootNode(),Ft.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let s=new ni(Ft.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(s)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let s=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new ni(Ft.POINTERMOVE,this.map_,t,s))}handleTouchMove_(t){let s=this.originalPointerMoveEvent_;(!s||s.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(At(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ut.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(At(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(At),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},Zc=da;var oi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"};var re={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var mr=1/0,ua=class{constructor(t,s){this.priorityFunction_=t,this.keyFunction_=s,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Je(this.queuedElements_)}dequeue(){let t=this.elements_,s=this.priorities_,e=t[0];t.length==1?(t.length=0,s.length=0):(t[0]=t.pop(),s[0]=s.pop(),this.siftUp_(0));let i=this.keyFunction_(e);return delete this.queuedElements_[i],e}enqueue(t){gt(!(this.keyFunction_(t)in this.queuedElements_),31);let s=this.priorityFunction_(t);return s!=mr?(this.elements_.push(t),this.priorities_.push(s),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){let s=this.elements_,e=this.priorities_,i=s.length,r=s[t],n=e[t],l=t;for(;t>1;){let a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){let l=this.getParentIndex_(s);if(i[l]>n)e[s]=e[l],i[s]=i[l],s=l;else break}e[s]=r,i[s]=n}reprioritize(){let t=this.priorityFunction_,s=this.elements_,e=this.priorities_,i=0,r=s.length,n,l,a;for(l=0;l0;)r=this.dequeue()[0],n=r.getKey(),i=r.getState(),i===pt.IDLE&&!(n in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++e,r.load())}},qc=pa;function $c(o,t,s,e,i){if(!o||!(s in o.wantedTiles))return mr;if(!o.wantedTiles[s][t.getKey()])return mr;let r=o.viewState.center,n=e[0]-r[0],l=e[1]-r[1];return 65536*Math.log(i)+Math.sqrt(n*n+l*l)/i}var fa=class extends Ut{constructor(t){super();let s=t.element;s&&!t.target&&!s.style.pointerEvents&&(s.style.pointerEvents="auto"),this.element=s||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){pr(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&pr(this.element);for(let s=0,e=this.listenerKeys.length;si.getAttributions(t)))),e=!this.getMap().getAllLayers().some(i=>i.getSource()&&i.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(e),s}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let s=this.collectSourceAttributions_(t),e=s.length>0;if(this.renderedVisible_!=e&&(this.element.style.display=e?"":"none",this.renderedVisible_=e),!he(s,this.renderedAttributions_)){Gc(this.ulElement_);for(let i=0,r=s.length;i0&&e%(2*Math.PI)!==0?s.animate({rotation:0,duration:this.duration_,easing:Fe}):s.setRotation(0))}render(t){let s=t.frameState;if(!s)return;let e=s.viewState.rotation;if(e!=this.rotation_){let i="rotate("+e+"rad)";if(this.autoHide_){let r=this.element.classList.contains(ur);!r&&e===0?this.element.classList.add(ur):r&&e!==0&&this.element.classList.remove(ur)}this.label_.style.transform=i}this.rotation_=e}},Qc=ma;var xa=class extends Bs{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});let s=t.className!==void 0?t.className:"ol-zoom",e=t.delta!==void 0?t.delta:1,i=t.zoomInClassName!==void 0?t.zoomInClassName:s+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:s+"-out",n=t.zoomInLabel!==void 0?t.zoomInLabel:"+",l=t.zoomOutLabel!==void 0?t.zoomOutLabel:"\u2013",a=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=i,c.setAttribute("type","button"),c.title=a,c.appendChild(typeof n=="string"?document.createTextNode(n):n),c.addEventListener(ut.CLICK,this.handleClick_.bind(this,e),!1);let g=document.createElement("button");g.className=r,g.setAttribute("type","button"),g.title=h,g.appendChild(typeof l=="string"?document.createTextNode(l):l),g.addEventListener(ut.CLICK,this.handleClick_.bind(this,-e),!1);let u=s+" "+Wi+" "+Ns,p=this.element;p.className=u,p.appendChild(c),p.appendChild(g),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,s){s.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let e=this.getMap().getView();if(!e)return;let i=e.getZoom();if(i!==void 0){let r=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:Fe})):e.setZoom(r)}}},td=xa;function xr(o){o=o||{};let t=new se;return(o.zoom!==void 0?o.zoom:!0)&&t.push(new td(o.zoomOptions)),(o.rotate!==void 0?o.rotate:!0)&&t.push(new Qc(o.rotateOptions)),(o.attribution!==void 0?o.attribution:!0)&&t.push(new Jc(o.attributionOptions)),t}var ya={ACTIVE:"active"};var ba=class extends Ut{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(ya.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(ya.ACTIVE,t)}setMap(t){this.map_=t}};function ed(o,t,s){let e=o.getCenterInternal();if(e){let i=[e[0]+t[0],e[1]+t[1]];o.animateInternal({duration:s!==void 0?s:250,easing:fc,center:o.getConstrainedCenter(i)})}}function Gs(o,t,s,e){let i=o.getZoom();if(i===void 0)return;let r=o.getConstrainedZoom(i+t),n=o.getResolutionForZoom(r);o.getAnimating()&&o.cancelAnimations(),o.animate({resolution:n,anchor:s,duration:e!==void 0?e:250,easing:Fe})}var ai=ba;var va=class extends ai{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let s=!1;if(t.type==Ft.DBLCLICK){let e=t.originalEvent,i=t.map,r=t.coordinate,n=e.shiftKey?-this.delta_:this.delta_,l=i.getView();Gs(l,n,r,this.duration_),e.preventDefault(),s=!0}return!s}},id=va;var Ca=class extends ai{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let s=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Ft.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Ft.POINTERUP){let e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==Ft.POINTERDOWN){let e=this.handleDownEvent(t);this.handlingDownUpSequence=e,s=this.stopDown(e)}else t.type==Ft.POINTERMOVE&&this.handleMoveEvent(t);return!s}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function Xs(o){let t=o.length,s=0,e=0;for(let i=0;i0&&this.condition_(t)){let e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},ld=_a;var wa=class extends li{constructor(t){t=t||{},super({stopDown:yi}),this.condition_=t.condition?t.condition:sd,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!xn(t))return;let s=t.map,e=s.getView();if(e.getConstraints().rotation===Fs)return;let i=s.getSize(),r=t.pixel,n=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(this.lastAngle_!==void 0){let l=n-this.lastAngle_;e.adjustRotationInternal(-l)}this.lastAngle_=n}handleUpEvent(t){return xn(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return xn(t)&&fn(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}},hd=wa;var Sa=class extends bs{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){let t=this.startPixel_,s=this.endPixel_,e="px",i=this.element_.style;i.left=Math.min(t[0],s[0])+e,i.top=Math.min(t[1],s[1])+e,i.width=Math.abs(s[0]-t[0])+e,i.height=Math.abs(s[1]-t[1])+e}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let s=this.element_.style;s.left="inherit",s.top="inherit",s.width="inherit",s.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,s){this.startPixel_=t,this.endPixel_=s,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){let t=this.startPixel_,s=this.endPixel_,i=[t,[t[0],s[1]],s,[s[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Xi([i])}getGeometry(){return this.geometry_}},cd=Sa;var yn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},br=class extends Jt{constructor(t,s,e){super(t),this.coordinate=s,this.mapBrowserEvent=e}},Ma=class extends li{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new cd(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:fn,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,s,e){let i=e[0]-s[0],r=e[1]-s[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new br(yn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);let s=this.boxEndCondition_(t,this.startPixel_,t.pixel);return s&&this.onBoxEnd(t),this.dispatchEvent(new br(s?yn.BOXEND:yn.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new br(yn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}},dd=Ma;var Ea=class extends dd{constructor(t){t=t||{};let s=t.condition?t.condition:od;super({condition:s,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){let e=this.getMap().getView(),i=this.getGeometry();if(this.out_){let r=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(r),l=e.getResolution()/n;i=i.clone(),i.scale(l*l)}e.fitInternal(i,{duration:this.duration_,easing:Fe})}},ud=Ea;var Ui={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};var Ta=class extends ai{constructor(t){super(),t=t||{},this.defaultCondition_=function(s){return gn(s)&&mn(s)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let s=!1;if(t.type==ut.KEYDOWN){let e=t.originalEvent,i=e.key;if(this.condition_(t)&&(i==Ui.DOWN||i==Ui.LEFT||i==Ui.RIGHT||i==Ui.UP)){let n=t.map.getView(),l=n.getResolution()*this.pixelDelta_,a=0,h=0;i==Ui.DOWN?h=-l:i==Ui.LEFT?a=-l:i==Ui.RIGHT?a=l:h=l;let c=[a,h];ks(c,n.getRotation()),ed(n,c,this.duration_),e.preventDefault(),s=!0}}return!s}},pd=Ta;var Aa=class extends ai{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(s){return!nd(s)&&mn(s)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let s=!1;if(t.type==ut.KEYDOWN||t.type==ut.KEYPRESS){let e=t.originalEvent,i=e.key;if(this.condition_(t)&&(i==="+"||i==="-")){let r=t.map,n=i==="+"?this.delta_:-this.delta_,l=r.getView();Gs(l,n,void 0,this.duration_),e.preventDefault(),s=!0}}return!s}},fd=Aa;var Pa=class{constructor(t,s,e){this.decay_=t,this.minVelocity_=s,this.delay_=e,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,s){this.points_.push(t,s,Date.now())}end(){if(this.points_.length<6)return!1;let t=Date.now()-this.delay_,s=this.points_.length-3;if(this.points_[s+2]0&&this.points_[e+2]>t;)e-=3;let i=this.points_[s+2]-this.points_[e+2];if(i<1e3/60)return!1;let r=this.points_[s]-this.points_[e],n=this.points_[s+1]-this.points_[e+1];return this.angle_=Math.atan2(n,r),this.initialVelocity_=Math.sqrt(r*r+n*n)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},gd=Pa;var Da=class extends ai{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;let s=t.condition?t.condition:rd;this.condition_=t.onFocusOnly?yr(pn,s):s,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;let t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==ut.WHEEL)return!0;let e=t.map,i=t.originalEvent;i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==ut.WHEEL&&(r=i.deltaY,Dh&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Xr),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;let n=Date.now();this.startTime_===void 0&&(this.startTime_=n),(!this.mode_||n-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");let l=e.getView();if(this.mode_==="trackpad"&&!(l.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=n,!1;this.totalDelta_+=r;let a=Math.max(this.timeout_-(n-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){let s=t.getView();s.getAnimating()&&s.cancelAnimations();let e=-Rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(s.getConstrainResolution()||this.constrainResolution_)&&(e=e?e>0?1:-1:0),Gs(s,e,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},md=Da;var La=class extends li{constructor(t){t=t||{};let s=t;s.stopDown||(s.stopDown=yi),super(s),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let s=0,e=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-e.clientY,i.clientX-e.clientX);if(this.lastAngle_!==void 0){let a=r-this.lastAngle_;this.rotationDelta_+=a,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),s=a}this.lastAngle_=r;let n=t.map,l=n.getView();l.getConstraints().rotation!==Fs&&(this.anchor_=n.getCoordinateFromPixelInternal(n.getEventPixel(Xs(this.targetPointers))),this.rotating_&&(n.render(),l.adjustRotationInternal(s,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){let s=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||s.getView().beginInteraction(),!0}return!1}},xd=La;var Ia=class extends li{constructor(t){t=t||{};let s=t;s.stopDown||(s.stopDown=yi),super(s),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let s=1,e=this.targetPointers[0],i=this.targetPointers[1],r=e.clientX-i.clientX,n=e.clientY-i.clientY,l=Math.sqrt(r*r+n*n);this.lastDistance_!==void 0&&(s=this.lastDistance_/l),this.lastDistance_=l;let a=t.map,h=a.getView();s!=1&&(this.lastScaleDelta_=s),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Xs(this.targetPointers))),a.render(),h.adjustResolutionInternal(s,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let s=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||s.getView().beginInteraction(),!0}return!1}},yd=Ia;function bd(o){o=o||{};let t=new se,s=new gd(-.005,.05,100);return(o.altShiftDragRotate!==void 0?o.altShiftDragRotate:!0)&&t.push(new hd),(o.doubleClickZoom!==void 0?o.doubleClickZoom:!0)&&t.push(new id({delta:o.zoomDelta,duration:o.zoomDuration})),(o.dragPan!==void 0?o.dragPan:!0)&&t.push(new ld({onFocusOnly:o.onFocusOnly,kinetic:s})),(o.pinchRotate!==void 0?o.pinchRotate:!0)&&t.push(new xd),(o.pinchZoom!==void 0?o.pinchZoom:!0)&&t.push(new yd({duration:o.zoomDuration})),(o.keyboard!==void 0?o.keyboard:!0)&&(t.push(new pd),t.push(new fd({delta:o.zoomDelta,duration:o.zoomDuration}))),(o.mouseWheelZoom!==void 0?o.mouseWheelZoom:!0)&&t.push(new md({onFocusOnly:o.onFocusOnly,duration:o.zoomDuration})),(o.shiftDragZoom!==void 0?o.shiftDragZoom:!0)&&t.push(new ud({duration:o.zoomDuration})),t}function Ra(o){return o[0]>0&&o[1]>0}function vd(o,t,s){return s===void 0&&(s=[0,0]),s[0]=o[0]*t+.5|0,s[1]=o[1]*t+.5|0,s}function te(o,t){return Array.isArray(o)?o:(t===void 0?t=[o,o]:(t[0]=o,t[1]=o),t)}function Cd(o){if(o instanceof ns){o.setMapInternal(null);return}o instanceof fr&&o.getLayers().forEach(Cd)}function _d(o,t){if(o instanceof ns){o.setMapInternal(t);return}if(o instanceof fr){let s=o.getLayers().getArray();for(let e=0,i=s.length;ethis.updateSize()),this.controls=s.controls||xr(),this.interactions=s.interactions||bd({onFocusOnly:!0}),this.overlays_=s.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new qc(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(re.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(re.VIEW,this.handleViewChanged_),this.addChangeListener(re.SIZE,this.handleSizeChanged_),this.addChangeListener(re.TARGET,this.handleTargetChanged_),this.setProperties(s.values);let e=this;t.view&&!(t.view instanceof De)&&t.view.then(function(i){e.setView(new De(i))}),this.controls.addEventListener(Qt.ADD,i=>{i.element.setMap(this)}),this.controls.addEventListener(Qt.REMOVE,i=>{i.element.setMap(null)}),this.interactions.addEventListener(Qt.ADD,i=>{i.element.setMap(this)}),this.interactions.addEventListener(Qt.REMOVE,i=>{i.element.setMap(null)}),this.overlays_.addEventListener(Qt.ADD,i=>{this.addOverlayInternal_(i.element)}),this.overlays_.addEventListener(Qt.REMOVE,i=>{let r=i.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],i.element.setMap(null)}),this.controls.forEach(i=>{i.setMap(this)}),this.interactions.forEach(i=>{i.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){_d(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let s=t.getId();s!==void 0&&(this.overlayIdIndex_[s.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,s,e){if(!this.frameState_||!this.renderer_)return;let i=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};let r=e.hitTolerance!==void 0?e.hitTolerance:0,n=e.layerFilter!==void 0?e.layerFilter:xi,l=e.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,l,s,null,n,null)}getFeaturesAtPixel(t,s){let e=[];return this.forEachFeatureAtPixel(t,function(i){e.push(i)},s),e}getAllLayers(){let t=[];function s(e){e.forEach(function(i){i instanceof fr?s(i.getLayers()):t.push(i)})}return s(this.getLayers()),t}hasFeatureAtPixel(t,s){if(!this.frameState_||!this.renderer_)return!1;let e=this.getCoordinateFromPixelInternal(t);s=s!==void 0?s:{};let i=s.layerFilter!==void 0?s.layerFilter:xi,r=s.hitTolerance!==void 0?s.hitTolerance:0,n=s.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(e,this.frameState_,r,n,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let e=this.viewport_.getBoundingClientRect(),i=this.getSize(),r=e.width/i[0],n=e.height/i[1],l="changedTouches"in t?t.changedTouches[0]:t;return[(l.clientX-e.left)/r,(l.clientY-e.top)/n]}getTarget(){return this.get(re.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return ar(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let s=this.frameState_;return s?Xt(s.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let s=this.overlayIdIndex_[t.toString()];return s!==void 0?s:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(re.LAYERGROUP)}setLayers(t){let s=this.getLayerGroup();if(t instanceof se){s.setLayers(t);return}let e=s.getLayers();e.clear(),e.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let s=0,e=t.length;s=0;r--){let n=i[r];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;if(!n.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){let t=this.frameState_,s=this.tileQueue_;if(!s.isEmpty()){let i=this.maxTilesLoading_,r=i;if(t){let n=t.viewHints;if(n[Zt.ANIMATING]||n[Zt.INTERACTING]){let l=Date.now()-t.time>8;i=l?0:8,r=l?0:2}}s.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let s=this.getLayerGroup();s&&this.handleLayerRemove_(new He("removelayer",s)),this.set(re.LAYERGROUP,t)}setSize(t){this.set(re.SIZE,t)}setTarget(t){this.set(re.TARGET,t)}setView(t){if(!t||t instanceof De){this.set(re.VIEW,t);return}this.set(re.VIEW,new De);let s=this;t.then(function(e){s.setView(new De(e))})}updateSize(){let t=this.getTargetElement(),s;if(t){let i=getComputedStyle(t),r=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),n=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(r)&&!isNaN(n)&&(s=[r,n],!Ra(s)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&sn("No map visible because the map container's width or height are 0."))}let e=this.getSize();s&&(!e||!he(s,e))&&(this.setSize(s),this.updateViewportSize_())}updateViewportSize_(){let t=this.getView();if(t){let s,e=getComputedStyle(this.viewport_);e.width&&e.height&&(s=[parseInt(e.width,10),parseInt(e.height,10)]),t.setViewportSize(s)}}};function zp(o){let t=null;o.keyboardEventTarget!==void 0&&(t=typeof o.keyboardEventTarget=="string"?document.getElementById(o.keyboardEventTarget):o.keyboardEventTarget);let s={},e=o.layers&&typeof o.layers.getLayers=="function"?o.layers:new fr({layers:o.layers});s[re.LAYERGROUP]=e,s[re.TARGET]=o.target,s[re.VIEW]=o.view instanceof De?o.view:new De;let i;o.controls!==void 0&&(Array.isArray(o.controls)?i=new se(o.controls.slice()):(gt(typeof o.controls.getArray=="function",47),i=o.controls));let r;o.interactions!==void 0&&(Array.isArray(o.interactions)?r=new se(o.interactions.slice()):(gt(typeof o.interactions.getArray=="function",48),r=o.interactions));let n;return o.overlays!==void 0?Array.isArray(o.overlays)?n=new se(o.overlays.slice()):(gt(typeof o.overlays.getArray=="function",49),n=o.overlays):n=new se,{controls:i,interactions:r,keyboardEventTarget:t,overlays:n,values:s}}var wd=ka;var Oa=class o extends Ut{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){let s=t;this.setGeometry(s)}else{let s=t;this.setProperties(s)}}clone(){let t=new o(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());let s=this.getGeometry();s&&t.setGeometry(s.clone());let e=this.getStyle();return e&&t.setStyle(e),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(At(this.geometryChangeKey_),this.geometryChangeKey_=null);let t=this.getGeometry();t&&(this.geometryChangeKey_=Mt(t,ut.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?Np(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}};function Np(o){if(typeof o=="function")return o;let t;return Array.isArray(o)?t=o:(gt(typeof o.getZIndex=="function",41),t=[o]),function(){return t}}var Fa=Oa;var za=class o{constructor(t){t=t||{},this.color_=t.color!==void 0?t.color:null}clone(){let t=this.getColor();return new o({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}},hi=za;function Sd(o,t,s,e){let i=o[t],r=o[t+1],n=0;for(let l=t+e;l0,6),gt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),69);let a=t.src!==void 0?Ot.IDLE:Ot.LOADED;if(this.color_=t.color!==void 0?is(t.color):null,this.iconImage_=Ad(n,l,this.imgSize_!==void 0?this.imgSize_:null,this.crossOrigin_,a,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{let g=this.getImage(1);if(g instanceof HTMLCanvasElement||g.src&&g.complete)h=g.width,c=g.height;else{this.initialOptions_=t;let u=()=>{if(this.unlistenImageChange(u),!this.initialOptions_)return;let p=this.iconImage_.getSize();this.setScale(Pd(p[0],p[1],t.width,t.height))};this.listenImageChange(u);return}}h!==void 0&&this.setScale(Pd(h,c,t.width,t.height))}}clone(){let t,s,e;return this.initialOptions_?(s=this.initialOptions_.width,e=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new o({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:s,height:e,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;let i=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!i)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=i[0]),this.anchorYUnits_=="fraction"&&(t[1]*=i[1])}if(this.anchorOrigin_!="top-left"){if(!i)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+i[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+i[1])}this.normalizedAnchor_=t}let s=this.getDisplacement(),e=this.getScaleArray();return[t[0]-s[0]/e[0],t[1]+s[1]/e[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){let s=this.getSize(),e=this.iconImage_.getSize();if(!s||!e)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=e[0]-s[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=e[1]-s[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){let t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(ut.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(ut.CHANGE,t)}},hs=Za;function Ka(o){return new Ze({fill:_r(o,""),stroke:wr(o,""),text:Bp(o),image:Gp(o)})}function _r(o,t){let s=o[t+"fill-color"];if(s)return s==="none"?null:new hi({color:s})}function wr(o,t){let s=o[t+"stroke-width"],e=o[t+"stroke-color"];if(!(!s&&!e))return new ci({width:s,color:e,lineCap:o[t+"stroke-line-cap"],lineJoin:o[t+"stroke-line-join"],lineDash:o[t+"stroke-line-dash"],lineDashOffset:o[t+"stroke-line-dash-offset"],miterLimit:o[t+"stroke-miter-limit"]})}function Bp(o){let t=o["text-value"];return t?new vr({text:t,font:o["text-font"],maxAngle:o["text-max-angle"],offsetX:o["text-offset-x"],offsetY:o["text-offset-y"],overflow:o["text-overflow"],placement:o["text-placement"],repeat:o["text-repeat"],scale:o["text-scale"],rotateWithView:o["text-rotate-with-view"],rotation:o["text-rotation"],textAlign:o["text-align"],justify:o["text-justify"],textBaseline:o["text-baseline"],padding:o["text-padding"],fill:_r(o,"text-"),backgroundFill:_r(o,"text-background-"),stroke:wr(o,"text-"),backgroundStroke:wr(o,"text-background-")}):void 0}function Gp(o){let t=o["icon-src"],s=o["icon-img"];if(t||s)return new hs({src:t,img:s,imgSize:o["icon-img-size"],anchor:o["icon-anchor"],anchorOrigin:o["icon-anchor-origin"],anchorXUnits:o["icon-anchor-x-units"],anchorYUnits:o["icon-anchor-y-units"],color:o["icon-color"],crossOrigin:o["icon-cross-origin"],offset:o["icon-offset"],displacement:o["icon-displacement"],opacity:o["icon-opacity"],scale:o["icon-scale"],width:o["icon-width"],height:o["icon-height"],rotation:o["icon-rotation"],rotateWithView:o["icon-rotate-with-view"],size:o["icon-size"],declutterMode:o["icon-declutter-mode"]});let e=o["shape-points"];if(e){let r="shape-";return new vn({points:e,fill:_r(o,r),stroke:wr(o,r),radius:o["shape-radius"],radius1:o["shape-radius1"],radius2:o["shape-radius2"],angle:o["shape-angle"],displacement:o["shape-displacement"],rotation:o["shape-rotation"],rotateWithView:o["shape-rotate-with-view"],scale:o["shape-scale"],declutterMode:o["shape-declutter-mode"]})}let i=o["circle-radius"];if(i){let r="circle-";return new Cn({radius:i,fill:_r(o,r),stroke:wr(o,r),displacement:o["circle-displacement"],scale:o["circle-scale"],rotation:o["circle-rotation"],rotateWithView:o["circle-rotate-with-view"],declutterMode:o["circle-declutter-mode"]})}}var Dd={RENDER_ORDER:"renderOrder"},qa=class extends ns{constructor(t){t=t||{};let s=Object.assign({},t);delete s.style,delete s.renderBuffer,delete s.updateWhileAnimating,delete s.updateWhileInteracting,super(s),this.declutter_=t.declutter!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(Dd.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new Ld.default(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(Dd.RENDER_ORDER,t)}setStyle(t){let s;if(t===void 0)s=Td;else if(t===null)s=null;else if(typeof t=="function")s=t;else if(t instanceof Ze)s=t;else if(Array.isArray(t)){let e=t.length,i=new Array(e);for(let r=0;rl&&(this.instructions.push([mt.CUSTOM,l,h,t,e,ei]),this.hitDetectionInstructions.push([mt.CUSTOM,l,h,t,i||e,ei]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),h=this.coordinates.length,this.instructions.push([mt.CUSTOM,l,h,t,e]),this.hitDetectionInstructions.push([mt.CUSTOM,l,h,t,i||e]);break;default:}this.endGeometry(s)}beginGeometry(t,s){this.beginGeometryInstruction1_=[mt.BEGIN_GEOMETRY,s,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[mt.BEGIN_GEOMETRY,s,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){let t=this.hitDetectionInstructions;t.reverse();let s,e=t.length,i,r,n=-1;for(s=0;sthis.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0}createFill(t){let s=t.fillStyle,e=[mt.SET_FILL_STYLE,s];return typeof s!="string"&&e.push(!0),e}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[mt.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,s){let e=t.fillStyle;(typeof e!="string"||t.currentFillStyle!=e)&&(e!==void 0&&this.instructions.push(s.call(this,t)),t.currentFillStyle=e)}updateStrokeStyle(t,s){let e=t.strokeStyle,i=t.lineCap,r=t.lineDash,n=t.lineDashOffset,l=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=e||t.currentLineCap!=i||r!=t.currentLineDash&&!he(t.currentLineDash,r)||t.currentLineDashOffset!=n||t.currentLineJoin!=l||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(e!==void 0&&s.call(this,t),t.currentStrokeStyle=e,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=n,t.currentLineJoin=l,t.currentLineWidth=a,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;let s=[mt.END_GEOMETRY,t];this.instructions.push(s),this.hitDetectionInstructions.push(s)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Ur(this.maxExtent),this.maxLineWidth>0)){let t=this.resolution*(this.maxLineWidth+1)/2;Es(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},ui=Qa;var tl=class extends ui{constructor(t,s,e,i){super(t,s,e,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,s){if(!this.image_)return;this.beginGeometry(t,s);let e=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,i);this.instructions.push([mt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(s)}drawMultiPoint(t,s){if(!this.image_)return;this.beginGeometry(t,s);let e=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,i);this.instructions.push([mt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(s)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,s){let e=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=e[0],this.anchorY_=e[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=s}},Rd=tl;var el=class extends ui{constructor(t,s,e,i){super(t,s,e,i)}drawFlatCoordinates_(t,s,e,i){let r=this.coordinates.length,n=this.appendFlatLineCoordinates(t,s,e,i,!1,!1),l=[mt.MOVE_TO_LINE_TO,r,n];return this.instructions.push(l),this.hitDetectionInstructions.push(l),e}drawLineString(t,s){let e=this.state,i=e.strokeStyle,r=e.lineWidth;if(i===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,s),this.hitDetectionInstructions.push([mt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,ve,Ce],Ai);let n=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(n,0,n.length,l),this.hitDetectionInstructions.push(di),this.endGeometry(s)}drawMultiLineString(t,s){let e=this.state,i=e.strokeStyle,r=e.lineWidth;if(i===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,s),this.hitDetectionInstructions.push([mt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,ve,Ce],Ai);let n=t.getEnds(),l=t.getFlatCoordinates(),a=t.getStride(),h=0;for(let c=0,g=n.length;c=o){let b=(o-l+p)/p,v=be(h,g,b),x=be(c,u,b);a.push(v,x),r.push(a),a=[v,x],l==o&&(n+=i),l=0}else if(l0&&r.push(a),r}function Fd(o,t,s,e,i){let r=s,n=s,l=0,a=0,h=s,c,g,u,p,b,v,x,m,E,L;for(g=s;go&&(a>l&&(l=a,r=h,n=g),a=0,h=g-i)),u=p,x=E,m=L),b=S,v=w}return a+=p,a>l?[h,g]:[r,n]}var Er={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},rl=class extends ui{constructor(t,s,e,i){super(t,s,e,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Kt]={fillStyle:Kt},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){let t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,s){let e=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!e&&!i)return;let n=this.coordinates,l=n.length,a=t.getType(),h=null,c=t.getStride();if(r.placement==="line"&&(a=="LineString"||a=="MultiLineString"||a=="Polygon"||a=="MultiPolygon")){if(!Wt(this.getBufferedMaxExtent(),t.getExtent()))return;let g;if(h=t.getFlatCoordinates(),a=="LineString")g=[h.length];else if(a=="MultiLineString")g=t.getEnds();else if(a=="Polygon")g=t.getEnds().slice(0,1);else if(a=="MultiPolygon"){let v=t.getEndss();g=[];for(let x=0,m=v.length;x{let S=n[(m+L)*2]===h[L*c]&&n[(m+L)*2+1]===h[L*c+1];return S||--m,S})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,s);let p=r.padding;if(p!=Ei&&(r.scale[0]<0||r.scale[1]<0)){let m=r.padding[0],E=r.padding[1],L=r.padding[2],S=r.padding[3];r.scale[0]<0&&(E=-E,S=-S),r.scale[1]<0&&(m=-m,L=-L),p=[m,E,L,S]}let b=this.pixelRatio;this.instructions.push([mt.DRAW_IMAGE,l,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,p==Ei?Ei:p.map(function(m){return m*b}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]);let v=1/b,x=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=Kt,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,l,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[v,v],NaN,void 0,this.declutterImageWithText_,p,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Kt:this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]),r.backgroundFill&&(this.state.fillStyle=x,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(s)}}saveTextStates_(){let t=this.textStrokeState_,s=this.textState_,e=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));let r=this.textKey_;r in this.textStates||(this.textStates[r]={font:s.font,textAlign:s.textAlign||Yi,justify:s.justify,textBaseline:s.textBaseline||ls,scale:s.scale});let n=this.fillKey_;e&&(n in this.fillStates||(this.fillStates[n]={fillStyle:e.fillStyle}))}drawChars_(t,s){let e=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,n=this.textKey_,l=this.fillKey_;this.saveTextStates_();let a=this.pixelRatio,h=Er[i.textBaseline],c=this.textOffsetY_*a,g=this.text_,u=e?e.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([mt.DRAW_CHARS,t,s,h,i.overflow,l,i.maxAngle,a,c,r,u*a,g,n,1]),this.hitDetectionInstructions.push([mt.DRAW_CHARS,t,s,h,i.overflow,l&&Kt,i.maxAngle,1,c,r,u,g,n,1/a])}setTextStyle(t,s){let e,i,r;if(!t)this.text_="";else{let n=t.getFill();n?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=_e(n.getColor()||Kt)):(i=null,this.textFillState_=i);let l=t.getStroke();if(!l)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);let b=l.getLineDash(),v=l.getLineDashOffset(),x=l.getWidth(),m=l.getMiterLimit();r.lineCap=l.getLineCap()||as,r.lineDash=b?b.slice():ve,r.lineDashOffset=v===void 0?Ce:v,r.lineJoin=l.getLineJoin()||ri,r.lineWidth=x===void 0?Ti:x,r.miterLimit=m===void 0?Si:m,r.strokeStyle=_e(l.getColor()||Mi)}e=this.textState_;let a=t.getFont()||un;Wc(a);let h=t.getScaleArray();e.overflow=t.getOverflow(),e.font=a,e.maxAngle=t.getMaxAngle(),e.placement=t.getPlacement(),e.textAlign=t.getTextAlign(),e.repeat=t.getRepeat(),e.justify=t.getJustify(),e.textBaseline=t.getTextBaseline()||ls,e.backgroundFill=t.getBackgroundFill(),e.backgroundStroke=t.getBackgroundStroke(),e.padding=t.getPadding()||Ei,e.scale=h===void 0?[1,1]:h;let c=t.getOffsetX(),g=t.getOffsetY(),u=t.getRotateWithView(),p=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=g===void 0?0:g,this.textRotateWithView_=u===void 0?!1:u,this.textRotation_=p===void 0?0:p,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:_t(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=e.font+e.scale+(e.textAlign||"?")+(e.repeat||"?")+(e.justify||"?")+(e.textBaseline||"?"),this.fillKey_=i?typeof i.fillStyle=="string"?i.fillStyle:"|"+_t(i.fillStyle):""}this.declutterImageWithText_=s}},zd=rl;var Xp={Circle:sl,Default:ui,Image:Rd,LineString:kd,Polygon:sl,Text:zd},nl=class{constructor(t,s,e,i){this.tolerance_=t,this.maxExtent_=s,this.pixelRatio_=i,this.resolution_=e,this.buildersByZIndex_={}}finish(){let t={};for(let s in this.buildersByZIndex_){t[s]=t[s]||{};let e=this.buildersByZIndex_[s];for(let i in e){let r=e[i].finish();t[s][i]=r}}return t}getBuilder(t,s){let e=t!==void 0?t.toString():"0",i=this.buildersByZIndex_[e];i===void 0&&(i={},this.buildersByZIndex_[e]=i);let r=i[s];if(r===void 0){let n=Xp[s];r=new n(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[s]=r}return r}},ol=nl;var al=class extends jr{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Et()}getData(t){return null}prepareFrame(t){return Et()}renderFrame(t,s){return Et()}loadedTileCallback(t,s,e){t[s]||(t[s]={}),t[s][e.tileCoord.toString()]=e}createLoadedTileFinder(t,s,e){return(i,r)=>{let n=this.loadedTileCallback.bind(this,e,i);return t.forEachLoadedTile(s,i,r,n)}}forEachFeatureAtCoordinate(t,s,e,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let s=t.target;(s.getState()===Ot.LOADED||s.getState()===Ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let s=t.getState();return s!=Ot.LOADED&&s!=Ot.ERROR&&t.addEventListener(ut.CHANGE,this.boundHandleImageChange_),s==Ot.IDLE&&(t.load(),s=t.getState()),s==Ot.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},Nd=al;var hl=[],Ws=null;function Wp(){Ws=jt(1,1,void 0,{willReadFrequently:!0})}var ll=class extends Nd{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=ce(),this.pixelTransform=ce(),this.inversePixelTransform=ce(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,s,e){Ws||Wp(),Ws.clearRect(0,0,1,1);let i;try{Ws.drawImage(t,s,e,1,1,0,0,1,1),i=Ws.getImageData(0,0,1,1).data}catch{return Ws=null,null}return i}getBackground(t){let e=this.getLayer().getBackground();return typeof e=="function"&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,s,e){let i=this.getLayer().getClassName(),r,n;if(t&&t.className===i&&(!e||t&&t.style.backgroundColor&&he(is(t.style.backgroundColor),is(e)))){let l=t.firstElementChild;l instanceof HTMLCanvasElement&&(n=l.getContext("2d"))}if(n&&n.canvas.style.transform===s?(this.container=t,this.context=n,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=i;let l=r.style;l.position="absolute",l.width="100%",l.height="100%",n=jt();let a=n.canvas;r.appendChild(a),l=a.style,l.position="absolute",l.left="0",l.transformOrigin="top left",this.container=r,this.context=n}!this.containerReused&&e&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=e)}clipUnrotated(t,s,e){let i=ke(e),r=Ps(e),n=As(e),l=Ts(e);Xt(s.coordinateToPixelTransform,i),Xt(s.coordinateToPixelTransform,r),Xt(s.coordinateToPixelTransform,n),Xt(s.coordinateToPixelTransform,l);let a=this.inversePixelTransform;Xt(a,i),Xt(a,r),Xt(a,n),Xt(a,l),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(l[0]),Math.round(l[1])),t.clip()}dispatchRenderEvent_(t,s,e){let i=this.getLayer();if(i.hasListener(t)){let r=new cn(t,this.inversePixelTransform,e,s);i.dispatchEvent(r)}}preRender(t,s){this.frameState=s,this.dispatchRenderEvent_(ge.PRERENDER,t,s)}postRender(t,s){this.dispatchRenderEvent_(ge.POSTRENDER,t,s)}getRenderTransform(t,s,e,i,r,n,l){let a=r/2,h=n/2,c=i/s,g=-c,u=-t[0]+l,p=-t[1];return fe(this.tempTransform,a,h,c,g,-e,u,p)}disposeInternal(){delete this.frameState,super.disposeInternal()}},Mn=ll;function jd(o,t,s,e,i,r,n,l,a,h,c,g){let u=o[t],p=o[t+1],b=0,v=0,x=0,m=0;function E(){b=u,v=p,t+=e,u=o[t],p=o[t+1],m+=x,x=Math.sqrt((u-b)*(u-b)+(p-v)*(p-v))}do E();while(tf[2]}else F=S>_;let A=Math.PI,D=[],C=R+e===t;t=R,x=0,m=O,u=o[t],p=o[t+1];let d;if(C){E(),d=Math.atan2(p-v,u-b),F&&(d+=d>0?-A:A);let f=(_+S)/2,y=(P+w)/2;return D[0]=[f,y,(I-r)/2,d,i],D}i=i.replace(/\n/g," ");for(let f=0,y=i.length;f0?-A:A),d!==void 0){let X=M-d;if(X+=X>A?-2*A:X<-A?2*A:0,Math.abs(X)>n)return null}d=M;let k=f,T=0;for(;f0&&o.push(` -`,""),o.push(t,""),o}var dl=class{constructor(t,s,e,i){this.overlaps=e,this.pixelRatio=s,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=ce(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}createLabel(t,s,e,i){let r=t+s+e+i;if(this.labels_[r])return this.labels_[r];let n=i?this.strokeStates[i]:null,l=e?this.fillStates[e]:null,a=this.textStates[s],h=this.pixelRatio,c=[a.scale[0]*h,a.scale[1]*h],g=Array.isArray(t),u=a.justify?Er[a.justify]:cl(Array.isArray(t)?t[0]:t,a.textAlign||Yi),p=i&&n.lineWidth?n.lineWidth:0,b=g?t:t.split(` -`).reduce(Yp,[]),{width:v,height:x,widths:m,heights:E,lineWidths:L}=Vc(a,b),S=v+p,w=[],R=(S+2)*c[0],O=(x+p)*c[1],I={width:R<0?Math.floor(R):Math.ceil(R),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:w};(c[0]!=1||c[1]!=1)&&w.push("scale",c),i&&(w.push("strokeStyle",n.strokeStyle),w.push("lineWidth",p),w.push("lineCap",n.lineCap),w.push("lineJoin",n.lineJoin),w.push("miterLimit",n.miterLimit),w.push("setLineDash",[n.lineDash]),w.push("lineDashOffset",n.lineDashOffset)),e&&w.push("fillStyle",l.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");let _=.5-u,P=u*S+_*p,F=[],A=[],D=0,C=0,d=0,f=0,y;for(let M=0,k=b.length;Mt?t-h:r,S=n+c>s?s-c:n,w=b[3]+L*u[0]+b[1],R=b[0]+S*u[1]+b[2],O=m-b[3],I=E-b[0];(v||g!==0)&&(Hi[0]=O,Zi[0]=O,Hi[1]=I,Pi[1]=I,Pi[0]=O+w,Di[0]=Pi[0],Di[1]=I+R,Zi[1]=Di[1]);let _;return g!==0?(_=fe(ce(),e,i,1,1,g,-e,-i),Xt(_,Hi),Xt(_,Pi),Xt(_,Di),Xt(_,Zi),Pe(Math.min(Hi[0],Pi[0],Di[0],Zi[0]),Math.min(Hi[1],Pi[1],Di[1],Zi[1]),Math.max(Hi[0],Pi[0],Di[0],Zi[0]),Math.max(Hi[1],Pi[1],Di[1],Zi[1]),Ys)):Pe(Math.min(O,O+w),Math.min(I,I+R),Math.max(O,O+w),Math.max(I,I+R),Ys),p&&(m=Math.round(m),E=Math.round(E)),{drawImageX:m,drawImageY:E,drawImageW:L,drawImageH:S,originX:h,originY:c,declutterBox:{minX:Ys[0],minY:Ys[1],maxX:Ys[2],maxY:Ys[3],value:x},canvasTransform:_,scale:u}}replayImageOrLabel_(t,s,e,i,r,n,l){let a=!!(n||l),h=i.declutterBox,c=t.canvas,g=l?l[2]*i.scale[0]/2:0;return h.minX-g<=c.width/s&&h.maxX+g>=0&&h.minY-g<=c.height/s&&h.maxY+g>=0&&(a&&this.replayTextBackground_(t,Hi,Pi,Di,Zi,n,l),Uc(t,i.canvasTransform,r,e,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){if(this.alignFill_){let s=Xt(this.renderedTransform_,[0,0]),e=512*this.pixelRatio;t.save(),t.translate(s[0]%e,s[1]%e),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,s){t.strokeStyle=s[1],t.lineWidth=s[2],t.lineCap=s[3],t.lineJoin=s[4],t.miterLimit=s[5],t.lineDashOffset=s[7],t.setLineDash(s[6])}drawLabelWithPointPlacement_(t,s,e,i){let r=this.textStates[s],n=this.createLabel(t,s,i,e),l=this.strokeStates[e],a=this.pixelRatio,h=cl(Array.isArray(t)?t[0]:t,r.textAlign||Yi),c=Er[r.textBaseline||ls],g=l&&l.lineWidth?l.lineWidth:0,u=n.width/a-2*r.scale[0],p=h*u+2*(.5-h)*g,b=c*n.height/a+2*(.5-c)*g;return{label:n,anchorX:p,anchorY:b}}execute_(t,s,e,i,r,n,l,a){let h;this.pixelCoordinates_&&he(e,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=ze(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),kh(this.renderedTransform_,e));let c=0,g=i.length,u=0,p,b,v,x,m,E,L,S,w,R,O,I,_=0,P=0,F=null,A=null,D=this.coordinateCache_,C=this.viewRotation_,d=Math.round(Math.atan2(-e[1],e[0])*1e12)/1e12,f={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:C},y=this.instructions!=i||this.overlaps?0:200,M,k,T,z;for(;cy&&(this.fill_(t),_=0),P>y&&(t.stroke(),P=0),!_&&!P&&(t.beginPath(),x=NaN,m=NaN),++c;break;case mt.CIRCLE:u=N[1];let X=h[u],j=h[u+1],B=h[u+2],W=h[u+3],Y=B-X,U=W-j,q=Math.sqrt(Y*Y+U*U);t.moveTo(X+q,j),t.arc(X,j,q,0,2*Math.PI,!0),++c;break;case mt.CLOSE_PATH:t.closePath(),++c;break;case mt.CUSTOM:u=N[1],p=N[2];let H=N[3],V=N[4],Z=N.length==6?N[5]:void 0;f.geometry=H,f.feature=M,c in D||(D[c]=[]);let K=D[c];Z?Z(h,u,p,2,K):(K[0]=h[u],K[1]=h[u+1],K.length=2),V(K,f),++c;break;case mt.DRAW_IMAGE:u=N[1],p=N[2],S=N[3],b=N[4],v=N[5];let J=N[6],tt=N[7],$=N[8],Q=N[9],et=N[10],it=N[11],st=N[12],rt=N[13],nt=N[14],ot=N[15];if(!S&&N.length>=20){w=N[19],R=N[20],O=N[21],I=N[22];let Se=this.drawLabelWithPointPlacement_(w,R,O,I);S=Se.label,N[3]=S;let ps=N[23];b=(Se.anchorX-ps)*this.pixelRatio,N[4]=b;let Ie=N[24];v=(Se.anchorY-Ie)*this.pixelRatio,N[5]=v,J=S.height,N[6]=J,rt=S.width,N[13]=rt}let at;N.length>25&&(at=N[25]);let ct,ht,lt;N.length>17?(ct=N[16],ht=N[17],lt=N[18]):(ct=Ei,ht=!1,lt=!1),et&&d?it+=C:!et&&!d&&(it-=C);let xt=0;for(;u0){if(!n||p!=="Image"&&p!=="Text"||n.includes(w)){let P=(u[I]-3)/4,F=i-P%l,A=i-(P/l|0),D=r(w,R,F*F+A*A);if(D)return D}c.clearRect(0,0,l,l);break}}let v=Object.keys(this.executorsByZIndex_).map(Number);v.sort($e);let x,m,E,L,S;for(x=v.length-1;x>=0;--x){let w=v[x].toString();for(E=this.executorsByZIndex_[w],m=ul.length-1;m>=0;--m)if(p=ul[m],L=E[p],L!==void 0&&(S=L.executeHitDetection(c,a,e,b,g),S))return S}}getClipCoords(t){let s=this.maxExtent_;if(!s)return null;let e=s[0],i=s[1],r=s[2],n=s[3],l=[e,i,e,n,r,n,r,i];return ze(l,0,8,2,t,l),l}isEmpty(){return bi(this.executorsByZIndex_)}execute(t,s,e,i,r,n,l){let a=Object.keys(this.executorsByZIndex_).map(Number);a.sort($e),this.maxExtent_&&(t.save(),this.clip(t,e)),n=n||ul;let h,c,g,u,p,b;for(l&&a.reverse(),h=0,c=a.length;hs)break;let a=e[l];a||(a=[],e[l]=a),a.push(((o+r)*t+(o+n))*4+3),r>0&&a.push(((o-r)*t+(o+n))*4+3),n>0&&(a.push(((o+r)*t+(o-n))*4+3),r>0&&a.push(((o-r)*t+(o-n))*4+3))}let i=[];for(let r=0,n=e.length;rg*this.pixelRatio_),lineDashOffset:(n||Ce)*this.pixelRatio_,lineJoin:l!==void 0?l:ri,lineWidth:(a!==void 0?a:Ti)*this.pixelRatio_,miterLimit:h!==void 0?h:Si,strokeStyle:_e(e||Mi)}}}setImageStyle(t){let s;if(!t||!(s=t.getSize())){this.image_=null;return}let e=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*e,this.imageAnchorY_=i[1]*e,this.imageHeight_=s[1]*e,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();let n=t.getScaleArray();this.imageScale_=[n[0]*this.pixelRatio_/e,n[1]*this.pixelRatio_/e],this.imageWidth_=s[0]*e}setTextStyle(t){if(!t)this.text_="";else{let s=t.getFill();if(!s)this.textFillState_=null;else{let p=s.getColor();this.textFillState_={fillStyle:_e(p||Kt)}}let e=t.getStroke();if(!e)this.textStrokeState_=null;else{let p=e.getColor(),b=e.getLineCap(),v=e.getLineDash(),x=e.getLineDashOffset(),m=e.getLineJoin(),E=e.getWidth(),L=e.getMiterLimit();this.textStrokeState_={lineCap:b!==void 0?b:as,lineDash:v||ve,lineDashOffset:x||Ce,lineJoin:m!==void 0?m:ri,lineWidth:E!==void 0?E:Ti,miterLimit:L!==void 0?L:Si,strokeStyle:_e(p||Mi)}}let i=t.getFont(),r=t.getOffsetX(),n=t.getOffsetY(),l=t.getRotateWithView(),a=t.getRotation(),h=t.getScaleArray(),c=t.getText(),g=t.getTextAlign(),u=t.getTextBaseline();this.textState_={font:i!==void 0?i:un,textAlign:g!==void 0?g:Yi,textBaseline:u!==void 0?u:ls},this.text_=c!==void 0?Array.isArray(c)?c.reduce((p,b,v)=>p+=v%2?" ":b,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=n!==void 0?this.pixelRatio_*n:0,this.textRotateWithView_=l!==void 0?l:!1,this.textRotation_=a!==void 0?a:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}},Wd=ml;var Ke=.5;function Yd(o,t,s,e,i,r,n){let l=o[0]*Ke,a=o[1]*Ke,h=jt(l,a);h.imageSmoothingEnabled=!1;let c=h.canvas,g=new Wd(h,Ke,i,null,n),u=s.length,p=Math.floor((256*256*256-1)/u),b={};for(let x=1;x<=u;++x){let m=s[x-1],E=m.getStyleFunction()||e;if(!E)continue;let L=E(m,r);if(!L)continue;Array.isArray(L)||(L=[L]);let w=(x*p).toString(16).padStart(7,"#00000");for(let R=0,O=L.length;R{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let e=[this.context.canvas.width,this.context.canvas.height];Xt(this.pixelTransform,e);let i=this.renderedCenter_,r=this.renderedResolution_,n=this.renderedRotation_,l=this.renderedProjection_,a=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],g=e[0]*Ke,u=e[1]*Ke;c.push(this.getRenderTransform(i,r,n,Ke,g,u,0).slice());let p=h.getSource(),b=l.getExtent();if(p.getWrapX()&&l.canWrapX()&&!vi(b,a)){let v=a[0],x=Pt(b),m=0,E;for(;vb[2];)++m,E=x*m,c.push(this.getRenderTransform(i,r,n,Ke,g,u,E).slice()),v-=x}this.hitDetectionImageData_=Yd(e,c,this.renderedFeatures_,h.getStyleFunction(),a,r,n)}s(Vd(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,s,e,i,r){if(!this.replayGroup_)return;let n=s.viewState.resolution,l=s.viewState.rotation,a=this.getLayer(),h={},c=function(p,b,v){let x=_t(p),m=h[x];if(m){if(m!==!0&&vg=p.forEachFeatureAtCoordinate(t,n,l,e,c,p===this.declutterExecutorGroup&&s.declutterTree?s.declutterTree.all().map(b=>b.value):null)),g}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let s=this.getLayer(),e=s.getSource();if(!e)return!1;let i=t.viewHints[Zt.ANIMATING],r=t.viewHints[Zt.INTERACTING],n=s.getUpdateWhileAnimating(),l=s.getUpdateWhileInteracting();if(this.ready&&!n&&i||!l&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let a=t.extent,h=t.viewState,c=h.projection,g=h.resolution,u=t.pixelRatio,p=s.getRevision(),b=s.getRenderBuffer(),v=s.getRenderOrder();v===void 0&&(v=Hd);let x=h.center.slice(),m=Es(a,b*g),E=m.slice(),L=[m.slice()],S=c.getExtent();if(e.getWrapX()&&c.canWrapX()&&!vi(S,t.extent)){let f=Pt(S),y=Math.max(Pt(m)/2,f);m[0]=S[0]-y,m[2]=S[2]+y,en(x,c);let M=co(L[0],c);M[0]S[0]&&M[2]>S[2]&&L.push([M[0]-f,M[1],M[2]-f,M[3]])}if(this.ready&&this.renderedResolution_==g&&this.renderedRevision_==p&&this.renderedRenderOrder_==v&&vi(this.wrappedRenderedExtent_,m))return he(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let w=new ol(En(g,u),m,g,u),R;this.getLayer().getDeclutter()&&(R=new ol(En(g,u),m,g,u));let O=nn(),I;if(O){for(let f=0,y=L.length;f{let y,M=f.getStyleFunction()||s.getStyleFunction();if(M&&(y=M(f,g)),y){let k=this.renderFeature(f,_,y,w,I,R);P=P&&!k}},A=Os(m,c),D=e.getFeaturesInExtent(A);v&&D.sort(v);for(let f=0,y=D.length;f=200&&l.status<300){let h=t.getType(),c;h=="json"||h=="text"?c=l.responseText:h=="xml"?(c=l.responseXML,c||(c=new DOMParser().parseFromString(l.responseText,"application/xml"))):h=="arraybuffer"&&(c=l.response),c?r(t.readFeatures(c,{extent:s,featureProjection:i}),t.readProjection(c)):n()}else n()},l.onerror=n,l.send()}function wl(o,t){return function(s,e,i,r,n){let l=this;rf(o,t,s,e,i,function(a,h){l.addFeatures(a),r!==void 0&&r(a)},n||Ge)}}var pi=class extends Jt{constructor(t,s,e){super(t),this.feature=s,this.features=e}},Sl=class extends Tn{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=Ge,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(gt(this.format_,7),this.loader_=wl(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:Qd;let s=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=s?new Cl:null,this.loadedExtentsRtree_=new Cl,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let e,i;Array.isArray(t.features)?i=t.features:t.features&&(e=t.features,i=e.getArray()),!s&&e===void 0&&(e=new se(i)),i!==void 0&&this.addFeaturesInternal(i),e!==void 0&&this.bindFeaturesCollection_(e)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){let s=_t(t);if(!this.addToIndex_(s,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(s,t);let e=t.getGeometry();if(e){let i=e.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[s]=t;this.dispatchEvent(new pi(Ne.ADDFEATURE,t))}setupChangeEvents_(t,s){this.featureChangeKeys_[t]=[Mt(s,ut.CHANGE,this.handleFeatureChange_,this),Mt(s,Be.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,s){let e=!0,i=s.getId();return i!==void 0&&(i.toString()in this.idIndex_?e=!1:this.idIndex_[i.toString()]=s),e&&(gt(!(t in this.uidIndex_),30),this.uidIndex_[t]=s),e}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){let s=[],e=[],i=[];for(let r=0,n=t.length;r{s||(s=!0,this.addFeature(e.element),s=!1)}),t.addEventListener(Qt.REMOVE,e=>{s||(s=!0,this.removeFeature(e.element),s=!1)}),this.featuresCollection_=t}clear(t){if(t){for(let e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(At);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){let e=i=>{this.removeFeatureInternal(i)};this.featuresRtree_.forEach(e);for(let i in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};let s=new pi(Ne.CLEAR);this.dispatchEvent(s),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,s){let e=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(e,function(i){if(i.getGeometry().intersectsCoordinate(t))return s(i)})}forEachFeatureInExtent(t,s){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,s);this.featuresCollection_&&this.featuresCollection_.forEach(s)}forEachFeatureIntersectingExtent(t,s){return this.forEachFeatureInExtent(t,function(e){if(e.getGeometry().intersectsExtent(t)){let r=s(e);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),bi(this.nullGeometryFeatures_)||mi(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){let s=[];return this.forEachFeatureAtCoordinateDirect(t,function(e){s.push(e)}),s}getFeaturesInExtent(t,s){if(this.featuresRtree_){if(!(s&&s.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);let i=Xh(t,s);return[].concat(...i.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,s){let e=t[0],i=t[1],r=null,n=[NaN,NaN],l=1/0,a=[-1/0,-1/0,1/0,1/0];return s=s||xi,this.featuresRtree_.forEachInExtent(a,function(h){if(s(h)){let c=h.getGeometry(),g=l;if(l=c.closestPointXY(e,i,n,l),l{--this.loadingExtentsCount_,this.dispatchEvent(new pi(Ne.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new pi(Ne.FEATURESLOADERROR))}),i.insert(a,{extent:a.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){let s=this.loadedExtentsRtree_,e;s.forEachInExtent(t,function(i){if(Ci(i.extent,t))return e=i,!0}),e&&s.remove(e)}removeFeature(t){if(!t)return;let s=_t(t);s in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[s]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){let s=_t(t),e=this.featureChangeKeys_[s];if(!e)return;e.forEach(At),delete this.featureChangeKeys_[s];let i=t.getId();return i!==void 0&&delete this.idIndex_[i.toString()],delete this.uidIndex_[s],this.dispatchEvent(new pi(Ne.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let s=!1;for(let e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e],s=!0;break}return s}setLoader(t){this.loader_=t}setUrl(t){gt(this.format_,7),this.url_=t,this.setLoader(wl(t,this.format_))}},Ar=Sl;var Ml=class o extends ti{constructor(t,s){super(),s&&!Array.isArray(t[0])?this.setFlatCoordinates(s,t):this.setCoordinates(t,s)}appendPoint(t){this.flatCoordinates?mi(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()}clone(){let t=new o(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,s,e,i){if(it)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Et()}getAlpha(t,s){if(!this.transition_)return 1;let e=this.transitionStarts_[t];if(!e)e=s,this.transitionStarts_[t]=e;else if(e===-1)return 1;let i=s-e+1e3/60;return i>=this.transition_?1:Ao(i/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}},An=Al;var Pl=class extends An{constructor(t,s,e,i,r,n){super(t,s,n),this.crossOrigin_=i,this.src_=e,this.key=e,this.image_=new Image,i!==null&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=pt.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=pt.ERROR,this.unlistenImage_(),this.image_=nf(),this.changed()}handleImageLoad_(){let t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=pt.LOADED:this.state=pt.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==pt.ERROR&&(this.state=pt.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==pt.IDLE&&(this.state=pt.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=wn(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};function nf(){let o=jt(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var Pn=Pl;var of=10,iu=.25,Dl=class{constructor(t,s,e,i,r,n){this.sourceProj_=t,this.targetProj_=s;let l={},a=rs(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){let L=E[0]+"/"+E[1];return l[L]||(l[L]=a(E)),l[L]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Pt(i)>=Pt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Pt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Pt(this.targetProj_.getExtent()):null;let h=ke(e),c=Ps(e),g=As(e),u=Ts(e),p=this.transformInv_(h),b=this.transformInv_(c),v=this.transformInv_(g),x=this.transformInv_(u),m=of+(n?Math.max(0,Math.ceil(Math.log2(tr(e)/(n*n*256*256)))):0);if(this.addQuad_(h,c,g,u,p,b,v,x,m),this.wrapsXInSource_){let E=1/0;this.triangles_.forEach(function(L,S,w){E=Math.min(E,L.source[0][0],L.source[1][0],L.source[2][0])}),this.triangles_.forEach(L=>{if(Math.max(L.source[0][0],L.source[1][0],L.source[2][0])-E>this.sourceWorldWidth_/2){let S=[[L.source[0][0],L.source[0][1]],[L.source[1][0],L.source[1][1]],[L.source[2][0],L.source[2][1]]];S[0][0]-E>this.sourceWorldWidth_/2&&(S[0][0]-=this.sourceWorldWidth_),S[1][0]-E>this.sourceWorldWidth_/2&&(S[1][0]-=this.sourceWorldWidth_),S[2][0]-E>this.sourceWorldWidth_/2&&(S[2][0]-=this.sourceWorldWidth_);let w=Math.min(S[0][0],S[1][0],S[2][0]);Math.max(S[0][0],S[1][0],S[2][0])-w.5&&g<1,b=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let x=lo([t,s,e,i]);b=Pt(x)/this.targetWorldWidth_>iu||b}!p&&this.sourceProj_.isGlobal()&&g&&(b=g>iu||b)}if(!b&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Wt(c,this.maxSourceExtent_))return;let v=0;if(!b&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(n[0])||!isFinite(n[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(a[0])||!isFinite(a[1]))){if(h>0)b=!0;else if(v=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(n[0])||!isFinite(n[1])?4:0)+(!isFinite(l[0])||!isFinite(l[1])?2:0)+(!isFinite(a[0])||!isFinite(a[1])?1:0),v!=1&&v!=2&&v!=4&&v!=8)return}if(h>0){if(!b){let x=[(t[0]+e[0])/2,(t[1]+e[1])/2],m=this.transformInv_(x),E;p?E=(_i(r[0],u)+_i(l[0],u))/2-_i(m[0],u):E=(r[0]+l[0])/2-m[0];let L=(r[1]+l[1])/2-m[1];b=E*E+L*L>this.errorThresholdSquared_}if(b){if(Math.abs(t[0]-e[0])<=Math.abs(t[1]-e[1])){let x=[(s[0]+e[0])/2,(s[1]+e[1])/2],m=this.transformInv_(x),E=[(i[0]+t[0])/2,(i[1]+t[1])/2],L=this.transformInv_(E);this.addQuad_(t,s,x,E,r,n,m,L,h-1),this.addQuad_(E,x,e,i,L,m,l,a,h-1)}else{let x=[(t[0]+s[0])/2,(t[1]+s[1])/2],m=this.transformInv_(x),E=[(e[0]+i[0])/2,(e[1]+i[1])/2],L=this.transformInv_(E);this.addQuad_(t,x,E,i,r,m,L,a,h-1),this.addQuad_(x,s,e,E,m,n,l,L,h-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}v&11||this.addTriangle_(t,e,i,r,l,a),v&14||this.addTriangle_(t,e,s,r,l,n),v&&(v&13||this.addTriangle_(s,i,t,n,a,r),v&7||this.addTriangle_(s,i,e,n,a,l))}calculateSourceExtent(){let t=Vt();return this.triangles_.forEach(function(s,e,i){let r=s.source;es(t,r[0]),es(t,r[1]),es(t,r[2])}),t}getTriangles(){return this.triangles_}},su=Dl;var Ll,cs=[];function ru(o,t,s,e,i){o.beginPath(),o.moveTo(0,0),o.lineTo(t,s),o.lineTo(e,i),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(t,e)+1,Math.max(s,i)),o.restore()}function Il(o,t){return Math.abs(o[t*4]-210)>2||Math.abs(o[t*4+3]-.75*255)>2}function af(){if(Ll===void 0){let o=jt(6,6,cs);o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",ru(o,4,5,4,0),ru(o,4,5,0,5);let t=o.getImageData(0,0,3,3).data;Ll=Il(t,0)||Il(t,4)||Il(t,8),os(o),cs.push(o.canvas)}return Ll}function nu(o,t,s,e){let i=ji(s,t,o),r=_o(t,e,s),n=t.getMetersPerUnit();n!==void 0&&(r*=n);let l=o.getMetersPerUnit();l!==void 0&&(r/=l);let a=o.getExtent();if(!a||ki(a,i)){let h=_o(o,r,i)/r;isFinite(h)&&h>0&&(r/=h)}return r}function ou(o,t,s,e){let i=Qe(s),r=nu(o,t,i,e);return(!isFinite(r)||r<=0)&&Zr(s,function(n){return r=nu(o,t,n,e),isFinite(r)&&r>0}),r}function au(o,t,s,e,i,r,n,l,a,h,c,g){let u=jt(Math.round(s*o),Math.round(s*t),cs);if(g||(u.imageSmoothingEnabled=!1),a.length===0)return u.canvas;u.scale(s,s);function p(S){return Math.round(S*s)/s}u.globalCompositeOperation="lighter";let b=Vt();a.forEach(function(S,w,R){zh(b,S.extent)});let v=Pt(b),x=de(b),m=jt(Math.round(s*v/e),Math.round(s*x/e),cs);g||(m.imageSmoothingEnabled=!1);let E=s/e;a.forEach(function(S,w,R){let O=S.extent[0]-b[0],I=-(S.extent[3]-b[3]),_=Pt(S.extent),P=de(S.extent);S.image.width>0&&S.image.height>0&&m.drawImage(S.image,h,h,S.image.width-2*h,S.image.height-2*h,O*E,I*E,_*E,P*E)});let L=ke(n);return l.getTriangles().forEach(function(S,w,R){let O=S.source,I=S.target,_=O[0][0],P=O[0][1],F=O[1][0],A=O[1][1],D=O[2][0],C=O[2][1],d=p((I[0][0]-L[0])/r),f=p(-(I[0][1]-L[1])/r),y=p((I[1][0]-L[0])/r),M=p(-(I[1][1]-L[1])/r),k=p((I[2][0]-L[0])/r),T=p(-(I[2][1]-L[1])/r),z=_,N=P;_=0,P=0,F-=z,A-=N,D-=z,C-=N;let G=[[F,A,0,0,y-d],[D,C,0,0,k-d],[0,0,F,A,M-f],[0,0,D,C,T-f]],X=Yh(G);if(X){if(u.save(),u.beginPath(),af()||!g){u.moveTo(y,M);let j=4,B=d-y,W=f-M;for(let Y=0;Y{s&&s.getState()==pt.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(s.tileCoord),image:s.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=pt.ERROR;else{let s=this.wrappedTileCoord_[0],e=this.targetTileGrid_.getTileSize(s),i=typeof e=="number"?e:e[0],r=typeof e=="number"?e:e[1],n=this.targetTileGrid_.getResolution(s),l=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=au(i,r,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),n,a,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=pt.LOADED}this.changed()}load(){if(this.state==pt.IDLE){this.state=pt.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(s=>{let e=s.getState();if(e==pt.IDLE||e==pt.LOADING){t++;let i=Mt(s,ut.CHANGE,function(r){let n=s.getState();(n==pt.LOADED||n==pt.ERROR||n==pt.EMPTY)&&(At(i),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(i)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(s,e,i){s.getState()==pt.IDLE&&s.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(At),this.sourcesListenerKeys_=null}release(){this.canvas_&&(os(this.canvas_.getContext("2d")),cs.push(this.canvas_),this.canvas_=null),super.release()}},Pr=Rl;var Dn=class{constructor(t,s,e,i){this.minX=t,this.maxX=s,this.minY=e,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,s){return this.minX<=t&&t<=this.maxX&&this.minY<=s&&s<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}};function ds(o,t,s,e,i){return i!==void 0?(i.minX=o,i.maxX=t,i.minY=s,i.maxY=e,i):new Dn(o,t,s,e)}var Ln=Dn;var kl=class extends Mn{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Vt(),this.tmpTileRange_=new Ln(0,0,0,0)}isDrawableTile(t){let s=this.getLayer(),e=t.getState(),i=s.getUseInterimTilesOnError();return e==pt.LOADED||e==pt.EMPTY||e==pt.ERROR&&!i}getTile(t,s,e,i){let r=i.pixelRatio,n=i.viewState.projection,l=this.getLayer(),h=l.getSource().getTile(t,s,e,r,n);return h.getState()==pt.ERROR&&l.getUseInterimTilesOnError()&&l.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(h)||(h=h.getInterimTile()),h}getData(t){let s=this.frameState;if(!s)return null;let e=this.getLayer(),i=Xt(s.pixelToCoordinateTransform,t.slice()),r=e.getExtent();if(r&&!ki(r,i))return null;let n=s.pixelRatio,l=s.viewState.projection,a=s.viewState,h=e.getRenderSource(),c=h.getTileGridForProjection(a.projection),g=h.getTilePixelRatio(s.pixelRatio);for(let u=c.getZForResolution(a.resolution);u>=c.getMinZoom();--u){let p=c.getTileCoordForCoordAndZ(i,u),b=h.getTile(u,p[1],p[2],n,l);if(!(b instanceof Pn||b instanceof Pr)||b instanceof Pr&&b.getState()===pt.EMPTY)return null;if(b.getState()!==pt.LOADED)continue;let v=c.getOrigin(u),x=te(c.getTileSize(u)),m=c.getResolution(u),E=Math.floor(g*((i[0]-v[0])/m-p[1]*x[0])),L=Math.floor(g*((v[1]-i[1])/m-p[2]*x[1])),S=Math.round(g*h.getGutterForProjection(a.projection));return this.getImageData(b.getImage(),E+S,L+S)}return null}loadedTileCallback(t,s,e){return this.isDrawableTile(e)?super.loadedTileCallback(t,s,e):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,s){let e=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,n=i.resolution,l=i.center,a=i.rotation,h=t.pixelRatio,c=this.getLayer(),g=c.getSource(),u=g.getRevision(),p=g.getTileGridForProjection(r),b=p.getZForResolution(n,g.zDirection),v=p.getResolution(b),x=t.extent,m=t.viewState.resolution,E=g.getTilePixelRatio(h),L=Math.round(Pt(x)/m*h),S=Math.round(de(x)/m*h),w=e.extent&&Ue(e.extent,r);w&&(x=Oi(x,Ue(e.extent,r)));let R=v*L/2/E,O=v*S/2/E,I=[l[0]-R,l[1]-O,l[0]+R,l[1]+O],_=p.getTileRangeForExtentAndZ(x,b),P={};P[b]={};let F=this.createLoadedTileFinder(g,r,P),A=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;let C=a?Kr(i.center,m,a,t.size):void 0;for(let G=_.minX;G<=_.maxX;++G)for(let X=_.minY;X<=_.maxY;++X){if(a&&!p.tileCoordIntersectsViewport([b,G,X],C))continue;let j=this.getTile(b,G,X,t);if(this.isDrawableTile(j)){let Y=_t(this);if(j.getState()==pt.LOADED){P[b][j.tileCoord.toString()]=j;let U=j.inTransition(Y);U&&e.opacity!==1&&(j.endTransition(Y),U=!1),!this.newTiles_&&(U||!this.renderedTiles.includes(j))&&(this.newTiles_=!0)}if(j.getAlpha(Y,t.time)===1)continue}let B=p.getTileCoordChildTileRange(j.tileCoord,D,A),W=!1;B&&(W=F(b+1,B)),W||p.forEachTileCoordParentTileRange(j.tileCoord,F,D,A)}let d=v/n*h/E;fe(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,a,-L/2,-S/2);let f=Yr(this.pixelTransform);this.useContainer(s,f,this.getBackground(t));let y=this.context,M=y.canvas;Ms(this.inversePixelTransform,this.pixelTransform),fe(this.tempTransform,L/2,S/2,d,d,0,-L/2,-S/2),M.width!=L||M.height!=S?(M.width=L,M.height=S):this.containerReused||y.clearRect(0,0,L,S),w&&this.clipUnrotated(y,t,w),g.getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,t),this.renderedTiles.length=0;let k=Object.keys(P).map(Number);k.sort($e);let T,z,N;e.opacity===1&&(!this.containerReused||g.getOpaque(t.viewState.projection))?k=k.reverse():(T=[],z=[]);for(let G=k.length-1;G>=0;--G){let X=k[G],j=g.getTilePixelSize(X,h,r),W=p.getResolution(X)/v,Y=j[0]*W*d,U=j[1]*W*d,q=p.getTileCoordForCoordAndZ(ke(I),X),H=p.getTileCoordExtent(q),V=Xt(this.tempTransform,[E*(H[0]-I[0])/v,E*(I[3]-H[3])/v]),Z=E*g.getGutterForProjection(r),K=P[X];for(let J in K){let tt=K[J],$=tt.tileCoord,Q=q[1]-$[1],et=Math.round(V[0]-(Q-1)*Y),it=q[2]-$[2],st=Math.round(V[1]-(it-1)*U),rt=Math.round(V[0]-Q*Y),nt=Math.round(V[1]-it*U),ot=et-rt,at=st-nt,ct=b===X,ht=ct&&tt.getAlpha(_t(this),t.time)!==1,lt=!1;if(!ht)if(T){N=[rt,nt,rt+ot,nt,rt+ot,nt+at,rt,nt+at];for(let xt=0,wt=T.length;xt0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let s=this.oldest_;for(;s;)t(s.value_,s.key_,this),s=s.newer}get(t,s){let e=this.entries_[t];return gt(e!==void 0,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_}remove(t){let s=this.entries_[t];return gt(s!==void 0,15),s===this.newest_?(this.newest_=s.older,this.newest_&&(this.newest_.newer=null)):s===this.oldest_?(this.oldest_=s.newer,this.oldest_&&(this.oldest_.older=null)):(s.newer.older=s.older,s.older.newer=s.newer),delete this.entries_[t],--this.count_,s.value_}getCount(){return this.count_}getKeys(){let t=new Array(this.count_),s=0,e;for(e=this.newest_;e;e=e.older)t[s++]=e.key_;return t}getValues(){let t=new Array(this.count_),s=0,e;for(e=this.newest_;e;e=e.older)t[s++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){let t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,s){this.get(t),this.entries_[t].value_=s}set(t,s){gt(!(t in this.entries_),16);let e={key_:t,newer:null,older:this.newest_,value_:s};this.newest_?this.newest_.newer=e:this.oldest_=e,this.newest_=e,this.entries_[t]=e,++this.count_}setSize(t){this.highWaterMark=t}},hu=Ol;function Fl(o,t,s,e){return e!==void 0?(e[0]=o,e[1]=t,e[2]=s,e):[o,t,s]}function us(o,t,s){return o+"/"+t+"/"+s}function In(o){return us(o[0],o[1],o[2])}function cu(o){return o.split("/").map(Number)}function du(o){return(o[1]<s||s>t.getMaxZoom())return!1;let r=t.getFullTileRange(s);return r?r.containsXY(e,i):!0}var zl=class extends hu{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;let t=this.peekFirstKey(),e=cu(t)[0];this.forEach(i=>{i.tileCoord[0]!==e&&(this.remove(In(i.tileCoord)),i.release())})}},Rn=zl;var Vs=[0,0,0],Ki=5,Nl=class{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,gt(Th(this.resolutions_,function(i,r){return r-i},!0),17);let s;if(!t.origins){for(let i=0,r=this.resolutions_.length-1;i=this.minZoom;){if(this.zoomFactor_===2?(n=Math.floor(n/2),l=Math.floor(l/2),r=ds(n,n,l,l,e)):r=this.getTileRangeForExtentAndZ(a,h,e),s(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,s,e){if(t[0]this.maxZoom||s0?e:Math.max(r/s[0],i/s[1]);let n=t+1,l=new Array(n);for(let a=0;ae.highWaterMark&&(e.highWaterMark=t)}useTile(t,s,e,i){}},zn=class extends Jt{constructor(t,s){super(t),this.tile=s}},mu=Bl;function cf(o,t){let s=/\{z\}/g,e=/\{x\}/g,i=/\{y\}/g,r=/\{-y\}/g;return function(n,l,a){if(n)return o.replace(s,n[0].toString()).replace(e,n[1].toString()).replace(i,n[2].toString()).replace(r,function(){let h=n[0],c=t.getFullTileRange(h);return gt(c,55),(c.getHeight()-n[2]-1).toString()})}}function xu(o,t){let s=o.length,e=new Array(s);for(let i=0;ithis.getTileInternal(x,m,E,L,n),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=g,h?(v.interimTile=h,v.refreshInterimChain(),l.replace(c,v)):l.set(c,v),v}getTileInternal(t,s,e,i,r){let n=null,l=us(t,s,e),a=this.getKey();if(!this.tileCache.containsKey(l))n=this.createTile_(t,s,e,i,r,a),this.tileCache.set(l,n);else if(n=this.tileCache.get(l),n.key!=a){let h=n;n=this.createTile_(t,s,e,i,r,a),h.getState()==pt.IDLE?n.interimTile=h.interimTile:n.interimTile=h,n.refreshInterimChain(),this.tileCache.replace(l,n)}return n}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(let s in this.tileCacheForProjection)this.tileCacheForProjection[s].clear();this.changed()}}setTileGridForProjection(t,s){let e=ue(t);if(e){let i=_t(e);i in this.tileGridForProjection||(this.tileGridForProjection[i]=s)}}clear(){super.clear();for(let t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};function uf(o,t){o.getImage().src=t}var Cu=Vl;var Ul=class extends Cu{constructor(t){t=t||{};let s=t.projection!==void 0?t.projection:"EPSG:3857",e=t.tileGrid!==void 0?t.tileGrid:fu({extent:Fn(s),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:s,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:e,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}},_u=Ul;var pf='© OpenStreetMap contributors.',Hl=class extends _u{constructor(t){t=t||{};let s;t.attributions!==void 0?s=t.attributions:s=[pf];let e=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",i=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:s,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:e,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:i,wrapX:t.wrapX,zDirection:t.zDirection})}},Zl=Hl;var ff=["popup"],gf=["tooltip"],Nn=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.tooltipData={visible:!1,content:"",name:"",items:[]},this.preventColFilteringBasedOnDataProperties=!0,this.CLUSTER_RANGE=1,this.isRGBColor=!1,this._selectedFeature=null,this.featureOverlay=null,this.mapData=null,this.hintTimeout=null,this.popupElement=null,this.polyData=null,this.isGeoJSON=!1}ngOnInit(){super.ngOnInit(),this.popupElement=this.popupEl.nativeElement,this.tooltipData.name="",this.tooltipData.items=[],this.widget.isMap=!0,this.requestPolygons(),this.us.isEmbedded()&&(this.onMessage=e=>{let i=e.data;switch(i.type){case"map.applyStyle":this.applyStyle(i);break}},window.addEventListener("message",this.onMessage))}applyStyle(e){let{selector:i,style:r,value:n}=e,l=this.map?.getTargetElement();(l&&l.querySelectorAll(i))?.forEach(h=>{h.style[r]=n})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){this.us.isEmbedded()&&window.removeEventListener("message",this.onMessage),this.tooltip?.nativeElement?.remove(),super.ngOnDestroy()}createMap(){let e=this.ss.getAppSettings(),i;i=this.getDataPropValue("tileUrl");let r=new Zl({wrapX:!0,url:i}),n=new wd({layers:[new Yl({source:r})],controls:xr({attributionOptions:{collapsible:!1}}),target:this.el.nativeElement,view:new De({center:[0,0],zoom:2})});n.getViewport().addEventListener("mouseout",l=>{this.hideTooltip()},!1),this.map=n,this.initialize()}hideTooltip(){this.hintTimeout&&clearTimeout(this.hintTimeout),this.tooltip&&(this.tooltip.nativeElement.style.display="none")}rejectTooltipCreation(){clearTimeout(this.hintTimeout)}showTooltip(e,i,r){this.hintTimeout&&clearTimeout(this.hintTimeout),this.hintTimeout=setTimeout(()=>{let n=this.tooltip?.nativeElement,l=this.getDataPropValue("tooltipStyles");if(l){let a=JSON.parse(l);for(let h in a)n.style.setProperty(h,a[h])}n.innerHTML=e,n.style.left=i.toString()+"px",n.style.top=r.toString()+"px",n.style.display="block"},600)}showPopup(){let e=this.popupElement,i=this.getDataPropValue("popupStyles");if(i){let r=JSON.parse(i);for(let n in r)e.style.setProperty(n,r[n])}this.popupElement&&(this.popupElement.style.visibility="hidden"),setTimeout(()=>{this.popupElement&&(this.popupElement.style.visibility="visible"),this.map?.render()},0)}hidePopup(){this.popupElement&&(this.popupElement.style.visibility="hidden")}doDrillUp(){this.hideTooltip(),this.hidePopup(),this.doDrill()}displayAsPivot(e){this.hideTooltip(),this.rejectTooltipCreation(),this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=e||this.getMDX(),this.changeWidgetType("pivot"))}requestPolygons(){let e=this.widget.name;this.widget.name.indexOf(".")===-1&&(e+=".js"),e=this.getDataPropValue("coordsJsFile")||e;let r=(this.ss.serverSettings.DefaultApp||"/csp")+"/"+e;this.ds.getFile(r).then(n=>this.onPolyFileLoaded(n)).finally(()=>this.hideLoading())}onPolyFileLoaded(e){this.isGeoJSON=!1;try{let n=JSON.parse(e);this.polyData=n,this.isGeoJSON=!0,this.buildPolygons();return}catch{}var i={};e="("+e+")(polys)",window["eval"](e),this.polyData=i,this.buildPolygons()}onPolyJSONFileLoaded(e){this.polyData=e,this.buildPolygons()}getFeatureColor(e,i){let r=this.mapData.Cols[1].tuples.filter(b=>b.caption===e);if(r.length===0)return;r=r[0];let n,l=this.mapData.Cols[1].tuples.indexOf(r),a=this.mapData.Cols[0].tuples.length,h="ColorExplicitValue";h=this.getDataPropValue("colorProperty")||h;let c;isNaN(parseInt(h,10))?c=this.mapData.Cols[0].tuples.filter(b=>b.caption===h):c=this.mapData.Cols[0].tuples.slice(h,1),c=c[0];let g=this.mapData.Cols[0].tuples.indexOf(c),u=this.mapData.Data[l*a+g];if(isNaN(parseFloat(u)))return u.toString().indexOf("rgb")!==-1&&u.toString().indexOf("rgba")===-1&&(u=u.replace("rgb","rgba"),u=u.substr(0,u.length-1)+", 0)"),n=u.split(","),n[3]="0.4)",n.join(",");{let b=this.getDataPropValue("colorFormula")||"hsl((255-x)/255 * 120, 100%, 50%)";this.isRGBColor&&(b="rgb(x, 255-x, 0)");let v=b.indexOf("("),x=b.substring(0,v).toLowerCase();b=b.substring(v+1,b.length-1),n=b.split(",");let m=i||0;var p;for(let E=0;E255&&(p=255),p<0&&(p=0),n[E]=Math.floor(p).toString()}return x.indexOf("a")===-1?x+"a("+n.join(",")+", 0.45)":x+"("+n.join(",")+")"}}centerView(e,i){let r,n,l;if(this.widget.properties&&(r=parseFloat(this.widget.properties.latitude),n=parseFloat(this.widget.properties.longitude),l=parseFloat(this.widget.properties.zoom)),this.drills.length===0&&!isNaN(r)&&!isNaN(n)&&!isNaN(l)&&r!==void 0&&n!==void 0&&l!==void 0)this.map?.getView().setCenter(ji([n,r],"EPSG:4326","EPSG:900913")),this.map?.getView().setZoom(l);else{if(Math.abs(e[0]-i[0])<1e-8&&Math.abs(e[1]-i[1])<1e-8)return;let a=ji([e[0],e[1]],"EPSG:4326","EPSG:900913"),h=ji([i[0],i[1]],"EPSG:4326","EPSG:900913");this.map?.getView().fit([a[0],a[1],h[0],h[1]],this.map?.getSize())}this.getDataPropValue("fixMaxZoom")==="1"&&this.map?.getView().setMaxZoom(this.map?.getView().getZoom()||1),this.getDataPropValue("fixMinZoom")==="1"&&this.map?.getView().setMinZoom(this.map?.getView().getZoom()||1),this.getDataPropValue("maxZoom")&&this.map?.getView().setMaxZoom(parseFloat(this.getDataPropValue("maxZoom")||"1"))}buildPolygons(){let e,i,r,n,l,a,h,c,g,u,p,b;this.isRGBColor=!1;let v=this.getDataPropValue("colorProperty")||"ColorHSLValue",x=this.getDataPropValue("coordsProperty")||"CoordKeyValue";if(!this.polyData||!this.map||!this.mapData)return;let m=[];h=this.mapData.Cols[0].tuples.length;let E=Number.MAX_VALUE,L=Number.MIN_VALUE,S=0;for(isNaN(parseInt(v))?(b=this.mapData.Cols[0].tuples.filter(I=>I.caption===v),S=this.mapData.Cols[0].tuples.indexOf(b[0]),S===-1&&(this.isRGBColor=!0,v="ColorRGBValue",b=this.mapData.Cols[0].tuples.filter(I=>I.caption===v),S=this.mapData.Cols[0].tuples.indexOf(b[0]))):S=parseInt(this.widget.properties.colorProperty,10)||0,c=0;cL&&(L=g);let w=[99999999,99999999],R=[-99999999,-99999999],O=0;for(p=-1,b=this.mapData.Cols[0].tuples.filter(I=>I.caption===x),b.length===0&&(b=this.mapData.Cols[0].tuples.filter(I=>I.caption==="Key")),b.length!==0&&(p=this.mapData.Cols[0].tuples.indexOf(b[0])),c=0;cR[0]&&(R[0]=parseFloat(N)),parseFloat(i)>R[1]&&(R[1]=parseFloat(i)),k.push(z.getCoordinates())}if(y.push(k),y.length>300){let T=[];for(n=0;nM.caption===D);if(y.length!==0){let M=this.mapData.Cols[0].tuples.indexOf(y[0]);M!==-1&&(A=this.mapData.Data[c*h+M])}}let C=Xi;if(this.isGeoJSON){switch(u.type.toLowerCase()){}C=Tl}let d=new Fa({geometry:new C(P),key:I,title:A,dataIdx:c*h,path:this.mapData.Cols[1].tuples[c].path,desc:this.mapData.Cols[1].tuples[c].title}),f;if(isNaN(parseFloat(A))||(A=this.formatNumber(A,"")),F){let y=JSON.parse(F),M=y.size||12,k=y.font||"Calibri,Arial,sans-serif",T=y.color||"#000",z=y.stroke||"#fff",N=y.strokeWidth||2;f=new vr({font:`${M}px ${k}`,fill:new hi({color:T}),stroke:new ci({color:z,width:N}),text:A+""})}g=this.mapData.Data[c*h+S],d.setStyle(new Ze({zIndex:0,fill:new hi({color:this.getFeatureColor(I,(g-E)*255/(L-E))||"none"}),stroke:new ci({color:"rgba(0, 0, 0, 0.3)",width:1}),text:f})),m.push(d)}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(m),setTimeout(()=>{this.centerView(w,R)})}retrieveData(e){if(setTimeout(()=>{this.map?.updateSize()},0),e.Error){this.showError(e.Error);return}e.Info&&(this.dataInfo=e.Info),this.hideTooltip(),this.markers.clear(),this.mapData=e,this.buildPolygons();let i=[Number.MAX_VALUE,Number.MAX_VALUE],r=[-Number.MAX_VALUE,-Number.MAX_VALUE];if(e&&this.map){let n=e.Cols[0].tuples.length,l=0,a=[],h="latitude";this.widget.properties&&this.widget.properties.latitudeProperty&&(h=this.widget.properties.latitudeProperty);let c="longitude";this.widget.properties&&this.widget.properties.longitudeProperty&&(c=this.widget.properties.longitudeProperty);let g=-1,u=-1,p=e.Cols[0].tuples.filter(v=>v.caption.toLowerCase()===h);if(p.length!==0&&(u=e.Cols[0].tuples.indexOf(p[0])),p=e.Cols[0].tuples.filter(v=>v.caption.toLowerCase()===c),p.length!==0&&(g=e.Cols[0].tuples.indexOf(p[0])),u===-1||g===-1)return;let b=e.Cols[1].tuples;b[0]?.children&&(b=b[0]?.children);for(let v=0;vr[1]&&(r[1]=parseFloat(m.toString())),parseFloat(x.toString())>r[0]&&(r[0]=parseFloat(x.toString())),i[0]==r[0]&&(i[0]-=.25,r[0]+=.25),i[1]==r[1]&&(i[1]-=.25,r[1]+=.25),a.push(R),l+=n}a.length!==0&&(this.markers.addFeatures(a),this.centerView(i,r)),this.centerView(i,r)}}initialize(){this.iconStyle=new Ze({zIndex:100,image:new hs({anchor:[.5,40],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-marker-red.png"})});let e=this.map,i=new Ze({zIndex:0,stroke:new ci({color:"rgba(0, 0, 0, 0.5)",width:1})});this.polyStyle=i,this.hoverStyle=new Ze({zIndex:1,stroke:new ci({color:"blue",width:2})}),this.polys=new Ar({features:[]});let r=new Tr({source:this.polys,style:this.polyStyle});r.setZIndex(1),this.map?.addLayer(r),this.markers=new Ar({features:[]});let n=new se;this.featureOverlay=new Tr({map:this.map,source:new Ar({features:n,useSpatialIndex:!1}),style:this.hoverStyle,updateWhileAnimating:!0,updateWhileInteracting:!0}),this.featureOverlay.setZIndex(10),this.featureOverlay.setMap(this.map),this.markers&&(r=new Tr({source:this.markers,style:this.iconStyle}),r.setZIndex(100),this.map?.addLayer(r)),this.map?.on("click",l=>this.onMapClick(l)),this.map?.on("pointermove",l=>this.onPointerMove(l))}onPointerMove(e){if(Ae.mobile&&e.originalEvent.touches&&e.originalEvent.touches.length!==1)return;this.hideTooltip();let i=this.map?.forEachFeatureAtPixel(e.pixel,(n,l)=>n);if(i){let n=i.get("dataIdx"),l,a="TooltipValue",h="",c=this.getDataProp("tooltipProperty");c&&(a=c.dataValue,h=c.format),l=this.getDataByColumnName(this.mapData,a||"Name",n,h),!l&&this.widget.properties?.polygonTitleProperty&&i.get("title")&&(l=i.get("title")),l||(l=this.getDataByColumnName(this.mapData,"Name",n)),l||(l=(this.mapData.Cols[1].tuples[0]?.children||this.mapData.Cols[1].tuples)[Math.floor(n/this.mapData.Cols[0].tuples.length)].caption||""),l&&this.showTooltip(l,e.pixel[0],e.pixel[1])}if(e.dragging){this.hideTooltip();return}let r=this.map?.getEventPixel(e.originalEvent);if(r){let n=this.map?.hasFeatureAtPixel(r);(this.map?.getTarget()).style.cursor=n?"pointer":""}this.featureOverlay?.getSource().clear(),i&&this.featureOverlay?.getSource().addFeature(i)}getTooltipData(e){if(!this.mapData)return;let i=[],r=this.mapData.Cols[1].tuples.filter(c=>c.caption===e);if(r.length===0)return;r=r[0];let n=this.mapData.Cols[1].tuples.indexOf(r),l=this.mapData.Cols[0].tuples.length,a=this.mapData.Cols[0].tuples.filter(c=>c.caption==="tooltip");if(a.length===0)return;a=a[0];let h=this.mapData.Cols[0].tuples.indexOf(a);return i.push({label:"",value:this.mapData?.Data[n*l+h].split(":")[1]||""}),i}onMapClick(e){if(this.hidePopup(),Ae.mobile&&e.originalEvent.touches&&e.originalEvent.touches.length!==1)return;let i=this.map?.forEachFeatureAtPixel(e.pixel,(n,l)=>n);if(i){if(this.hideTooltip(),Ae.mobile&&this._selectedFeature!==i){this._selectedFeature=i,this.onPointerMove(e);return}this.doDrill(i.get("path"),i.get("name")||i.get("title"),void 0,()=>{r(i)})}else this.hideTooltip();let r=n=>{let l=n.get("dataIdx"),a,h,c="PopupValue",g="",u=this.getDataProp("popupProperty");if(u&&(c=u.dataValue,g=u.format),c?(h=""+(n.get("key")||n.values_.title)+"
",h+=c+": ",h+=this.getDataByColumnName(this.mapData,c,l,g)):h=this.mapData?.Cols[1].tuples[Math.floor(l/this.mapData?.Cols[0].tuples.length)].caption||this.mapData?.Cols[1].tuples[Math.floor(l/this.mapData?.Cols[0].tuples.length)].desc||"",!h)if(h=""+(n.get("name")||n.values_.title)+"
",this.mapData?.Cols[0].tuples.length)for(let p=0;p${v}`,p!==this.mapData?.Cols[0].tuples.length-1&&(h+="
")}else h=this.getDataByColumnName(this.mapData,"Name",l);h&&(this.tooltipData.content=h,this.popupElement&&(this.popupElement.style.left=e.pixel[0]+"px",this.popupElement.style.top=e.pixel[1]-10+"px",this.popupElement.innerHTML=h),this.showPopup())}}onResize(){this.map&&this.map.updateSize()}buildGeoJSON(e){}getPartsByKey(e,i="Key"){if(this.isGeoJSON){let r=this.polyData?.features.find(n=>n.properties[i]===e);return r?r.geometry:void 0}else if(this.polyData?.[e])return this.polyData[e]?.split(";")}convertCoordinatesOfGEOJson(e,i,r){let n=JSON.parse(JSON.stringify(e.coordinates));for(let l=0;lr[0]&&(r[0]=parseFloat(p)),parseFloat(g)>r[1]&&(r[1]=parseFloat(g))}return{poly:n,min:i,max:r}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-map-widget"]],viewQuery:function(i,r){if(i&1&&($i(ff,7),$i(gf,7)),i&2){let n;Ji(n=Qi())&&(r.popupEl=n.first),Ji(n=Qi())&&(r.tooltip=n.first)}},standalone:!0,features:[vt,bt],decls:7,vars:0,consts:[["popup",""],["tooltip",""],[1,"panel","panel-default","map-popup",2,"visibility","hidden"],["ng-bind-html","model.tooltip.content | sanitize"],[1,"arrow_box"],[1,"tooltip",2,"display","none"]],template:function(i,r){i&1&&(Lt(0,"div",2,0)(2,"div"),le(3,"div",3),kt(),le(4,"div",4),kt(),le(5,"div",5,1))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative}.tooltip[_ngcontent-%COMP%]{margin-top:24px;z-index:1000;position:absolute;border:solid 1px #000000;color:#000;background-color:#ffffe1;white-space:nowrap;font-family:Tahoma,sans-serif;font-size:13px;-moz-box-shadow:2px 2px 4px #7f7f7f;box-shadow:2px 2px 4px #7f7f7f;padding:2px 3px}.map-popup[_ngcontent-%COMP%]{transform:translateY(-100%) translate(-50%);z-index:1;position:absolute;background-color:var(--cl-widget-filter-bg);margin-bottom:0;border-color:#b0b0b0;padding:4px;-webkit-box-shadow:1px 1px 9px 0px rgba(50,50,50,.5);-moz-box-shadow:1px 1px 9px 0px rgba(50,50,50,.5);box-shadow:1px 1px 9px #32323280;color:var(--cl-widget-header-txt)}.map-popup[_ngcontent-%COMP%]:after{content:" ";display:block;width:0;height:0;border-style:solid;border-width:8px 4px 0 4px;bottom:-8px;left:calc(50% - 4px);position:absolute;border-color:var(--cl-widget-filter-bg) transparent transparent transparent}']});let o=t;return o})();var Le=qt(Jn()),Iu=qt(wu()),Ru=qt(Su()),ku=qt(Mu()),Ou=qt(Eu()),Fu=qt(Tu()),zu=qt(Au()),Nu=qt(Pu()),ju=qt(Du());(0,Ru.default)(Le.default);(0,ju.default)(Le.default);(0,Iu.default)(Le.default);(0,ku.default)(Le.default);(0,Ou.default)(Le.default);(0,Fu.default)(Le.default);(0,zu.default)(Le.default);(0,Nu.default)(Le.default);var Ir=20;var Lr={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}},Bt=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.widgetData=null,this.seriesTypes=[],this.firstRun=!0,this.baseSeriesType="bar",this.sbs=$t(zr),this.wts=$t(Lu),this.zone=$t(lh),this.axisLabelListeners=[],this.seriesVisibility=[]}ngOnInit(){super.ngOnInit(),this.widget.isChart=!0,this.setupHeaderButtons(),this.override?.seriesTypes&&(this.seriesTypes=this.override?.seriesTypes.split(",")),this.subPrint=this.bs.subscribe("print:"+this.widget.name,()=>{if(this.chart){let e=new Blob([this.chart.getSVG()],{type:"image/svg+xml"}),i=window.open(URL.createObjectURL(e),"_blank");i&&(i.onload=()=>{let r=i?.document.querySelector("svg");r?.setAttribute("width","100%"),r?.setAttribute("height","100%"),r&&(r.style.height="auto"),i?.print()},i.onafterprint=()=>{i?.close()})}}),this.setupChart(),this.widget.inline&&this.setupInline(),this.subColorsConfig=this.bs.subscribe("charts:update-colors",e=>this.updateColors(e))}ngAfterViewInit(){this.createChart(),setTimeout(()=>{this.chart?.reflow()})}createChart(){this.chartConfig.chart&&(this.chartConfig.chart.renderTo=this.el.nativeElement),this.chartConfig?.chart?.type==="map"?this.chart=Le.default.mapChart(this.chartConfig):this.widget.type.toLowerCase()==="timechart"?this.chart=Le.default.stockChart(this.chartConfig):this.chart=Le.default.chart(this.chartConfig)}clearSeries(e){let i=e||this.chart;if(i)for(;i.series.length>0;)i.series[0].remove(!1)}onHeaderButton(e){switch(super.onHeaderButton(e),e.name){case"isLegend":this.toggleLegend(e.state);break;case"showValues":{(this.chartConfig?.plotOptions?.series?.dataLabels).enabled=e.state,this.chartConfig.plotOptions?.pie?.dataLabels&&(this.chartConfig.plotOptions.pie.dataLabels.enabled=e.state),this.updateChart(),this.chart?.legend.update({enabled:this.widget.isLegend},!0);break}case"showZero":this.showZeroOnAxis();break;case"isTop":this.limitSeriesAndData();break;case"chartConfig":this.showChartConfig();break}}updateChart(e=!1,i=!1){this.chart&&this.chart.update(this.chartConfig,e,!1,i)}hasOption(e){let i=this.ss.getWidgetsSettings(this.widget.dashboard);return!(!i[this.widget.name]||i[this.widget.name][e]===void 0||i[this.widget.name][e]===!1)}setYAxisMinToZero(){if(this.chartConfig.yAxis instanceof Array)for(let e=0;e{if(!n||!n.Info)return"";let l="";for(let a=0;ai.visible)??[],this.clearSeries(),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){let i=this.getMinValue(e.Data);if(i>0&&i<=10&&(this.chartConfig.yAxis.min=-10),!e.Cols)return;if(e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e),this.widget.showZero&&this.setYAxisMinToZero(),this.firstRun){let r=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){let n=this.route.snapshot.queryParamMap.get("hiddenSeries"),l=[];n&&(l=n.split(",")),l.forEach(a=>{this.chartConfig?.series?.[a]&&(this.chartConfig.series[a].visible=!1)})}else if(r[this.widget.name]&&r[this.widget.name].series)for(let n=0;n<(this.chartConfig?.series?.length||0);n++)r[this.widget.name].series[n]===!1&&this.chartConfig.series&&(this.chartConfig.series[n].visible=!1);this.firstRun=!1,this.onResize()}}(this.chart?.series?.length??0)<2&&!this.hasOption("isLegend")&&(this.widget.isLegend=!1,this.parent?.header?.cd?.detectChanges(),this.chart?.legend.update({enabled:!1}))}buildAxisTitles(e){if(this.chartConfig?.chart?.type!=="column")return;let i=!1,r=!1,n=this.getMDX(),l=n.indexOf("ON"),a=-1;l!==-1&&(a=n.indexOf("FROM",l),a!==-1&&(r=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1)),a!==-1&&(l=a,a=n.indexOf("FROM",l),i=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1),this.chartConfig.yAxis&&e.Cols[0]&&e.Cols[0].tuples&&e.Cols[0].tuples.length&&(this.chartConfig.yAxis.title={text:e.Cols[0].tuples.map(h=>h.caption||"").join(" & ")}),this.chartConfig.xAxis&&e.Cols[1]&&e.Cols[1].tuples&&e.Cols[1].tuples.length&&(this.chartConfig.xAxis.title={text:e.Cols[1].tuples.map(h=>h.caption||"").join(" & ")})}addSeries(e,i,r,n=!1){let l=i||this.chart;if(!l)return;let a=(l.options||this.chartConfig).series?.length??-1;if(e&&e.data&&e.data.length!==0){let u=!0,p=!1;for(let b=0;bparseInt(b,10)));let p=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=u[p]||0}e.showInLegend=!0,l.addSeries(e,n,!1);let g=this.seriesVisibility[l.series.length-1];g!==void 0&&(l.series[l.series.length-1].visible=g)}enableStacking(){let e={plotOptions:{series:{stacking:"normal"}}};this.us.mergeRecursive(this.chartConfig,e)}getMinValue(e){let i=1/0;for(let r=0;rc.action==="setRowCount")[0],h=a&&parseInt(a.value.toString())||Ir;if(this.chartConfig?.plotOptions?.series?.stacking==="normal"||!this.chartConfig?.plotOptions?.series?.stacking){let c=e.Cols[1].tuples,g=e.Cols[0].tuples;if(this.widget.isTop)if(g.length===1){let u=!0;for(;u;){u=!1;let p;for(p=0;pthis.setElColor(n,i))}updateColors(e){this.zone.runOutsideAngular(()=>{let i=this.chart;if(!i)return;let r=i.options?.chart?.type;if(e.hcColors)if(r==="treemap"||r==="pie"){let l=i.options.plotOptions?.[r];l&&(l.colors=e.hcColors);for(let a=0;a{u.color=h,this.setElColor(u.graphic?.element,h)});let g=i.legend.allItems[l];g&&g.legendSymbol&&[g.legendSymbol.element,g.legendLine.element].forEach(u=>{u&&(u.setAttribute("fill",h),u.setAttribute("stroke",h))}),i.series[l].color=h}if(e.hcBorderColor&&Lr[r||""]?.showBorder!==!1)for(let l=0;l{let c=h.graphic?.element;c&&c.setAttribute("stroke",e.hcBorderColor)});if(e.hcBackground&&Lr[r||""]?.showBackground!==!1){let l=i.chartBackground.element;l.setAttribute("fill",e.hcBackground),l.setAttribute("stroke",e.hcBackground),i.options.chart&&(i.options.chart.backgroundColor=e.hcBackground)}if(e.hcLineColor&&Lr[r||""]?.showLines!==!1){let l=e.hcLineColor;i.yAxis.forEach(a=>{i.yAxis[0].options.minorGridLineColor=l,a.gridGroup.element.setAttribute("stroke",l),a.gridGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})}),i?.xAxis.forEach(a=>{a.axisGroup.element.setAttribute("stroke",l),a.axisGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})})}let n=e.hcTextColor;if(n&&Lr[r||""]?.showText!==!1){let l=a=>{if(a.labelGroup){a.labelGroup.element.setAttribute("fill",n);for(let h=0;h{a.options.color=n,a.legendItem&&(a.legendItem?.group?.element?.setAttribute("color",n),a.legendItem?.group?.element?.setAttribute("fill",n),a.legendItem?.label?.element?.setAttribute("color",n),a.legendItem?.label?.element?.setAttribute("fill",n))}),i?.series.forEach(a=>a.data.forEach(h=>{let c=h.dataLabel?.element?.children[0]?.style;c&&(c.color=n,c.fill=n)}))}})}fixData(e){for(let i=0;i{i&&l>i-1||((n.children?.length??0)>1?n.children?.forEach(a=>{a.caption=n.caption+"/"+a.caption,r.push(a)}):r.push(n))}),r}buildSeries(e){this.chartConfig.series=[];let i=this.widget.controls.find(a=>a.action.toLowerCase()==="setcolumncount"),r=this.buildAxis(e.Cols[1],i?.value||0),n=this.buildAxis(e.Cols[0]);n.forEach((a,h)=>{let c=[];r.forEach((g,u)=>{c.push({y:+e.Data[u*n.length+h],drilldown:!0,cube:e.Info?.cubeName||"",path:g.path,name:g.caption,title:g.title})}),this.fixData(c),this.addSeries({data:c,name:a.caption,format:a.format,path:a.path})});let l=this.chartConfig.xAxis;l.categories=r.map(a=>a.caption)}removeAxisListeners(){this.axisLabelListeners.forEach(e=>{e.element.removeEventListener(e.event,e.func)})}saveSeriesVisiblilityState(e,i){let r=this.ss.getWidgetsSettings(this.widget.dashboard);r[this.widget.name]||(r[this.widget.name]={});let n=r[this.widget.name];n.series||(n.series={}),n.series[e]=i,this.ss.setWidgetsSettings(r,this.widget.dashboard)}setupChart(){let e=this,i=this.wts.getDesc(this.widget.type);function r(){let n=this.value,l=e.override,a=l?.valueLabelFormat,h=e.baseType;return(l?.yAxisList[0]?.axisType==="percent"||l?.xAxis.axisType==="percent"&&(h==="barChart"||h==="barChartStacked"))&&(n=e.formatNumber(n,"#%")),n}if(this.chartConfig={accessibility:{enabled:!1},drilldown:{activeAxisLabelStyle:{color:this.tc?.hcTextColor||void 0},activeDataLabelStyle:{color:this.tc?.hcTextColor||void 0}},legend:xe({enabled:this.widget.isLegend,align:"left"},this.tc?.hcTextColor?{itemStyle:{color:this.tc?.hcTextColor}}:{}),navigation:{buttonOptions:{align:"center"}},chart:{type:i?.chart||"column",backgroundColor:this.tc?.hcBackground||"transparent",events:{redraw:n=>{e.removeAxisListeners(),n.target?.series?.forEach(l=>{e.chartConfig.chart?.type==="pie"&&e.chart?.legend.allItems.forEach(a=>{let h=u=>{this.onLegendItemHover({series:a.series,index:a.index})},c=u=>{this.onLegendItemOut({series:a.series,index:a.index})},g=a.legendItem?.group.element;g&&(g.addEventListener("mouseover",h),e.axisLabelListeners.push({event:"mouseover",element:g,func:h}),g.addEventListener("mouseout",c),e.axisLabelListeners.push({event:"out",element:g,func:c}))}),l.data.forEach((a,h)=>{let c="contextmenu",g=a.graphic?.element;if(!g)return;let u=p=>{p.preventDefault(),p.stopImmediatePropagation();let b=e._currentData?.Cols[1]?.tuples;if(!b||!b[h])return;let v=l.userOptions.path,x=b[h].path;v&&(x=v),this.bs.broadcast("contextmenu",{widget:this.widget,event:p,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:x,drillTitle:b[h].caption||b[h].title}})};a.graphic?.element?.addEventListener(c,u),this.axisLabelListeners.push({event:c,element:g,func:u})})}),e.chartConfig?.chart?.type==="pie"?e.chart?.legend?.allItems.forEach(l=>{let a=l.dataLabel?.element;if(!a)return;let h=()=>{e.showLoading(),e.doDrillOnly(l.options.path,l.name.toString(),l.name.toString()).finally(()=>{e.hideLoading()})};a.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:a,func:h})}):e.chart?.xAxis[0]?.labelGroup?.element?.childNodes?.forEach((l,a)=>{let h=()=>{let c=e._currentData?.Cols[1]?.tuples,g=e._currentData?.Cols[1]?.tuples[0]?.children;g?.length&&(a=Math.floor(a/g?.length)),!(!c||!c[a])&&(e.showLoading(),e.doDrillOnly(c[a].path,c[a].caption||c[a].title,c[a].caption||c[a].title).finally(()=>{e.hideLoading()}))};l.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:l,func:h})})}}},credits:{enabled:!1},tooltip:{formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;h=e.formatNumber(h,a);let c=l.point.title;c===l.point.name&&(c="");let g=(l.point.name||l.x||"")+"
"+(c?c+"
":"")+l.series.name+": "+h+"
";return l.point.percentage&&(g+=e.formatNumber(this.point.percentage,e.getDataPropByDataValue(this.series?.userOptions?.name||"")?.format||"#.##")+"%"),g}},exporting:{enabled:!1},plotOptions:{column:{borderColor:this.tc?.hcBorderColor||void 0},bar:{borderColor:this.tc?.hcBorderColor||void 0},pie:{borderColor:this.tc?.hcBorderColor,colors:this.tc?.hcColors},treemap:{colors:this.tc?.hcColors},series:{opacity:this.tc?.hcOpacity,cursor:"pointer",point:{events:{click(n){if(e.drillFilterWidgets?.length){e.doDrillFilter(n.point.path,e.drills),e.parent?.header?.cd.detectChanges();return}if(!n.point)return;if(Ae.mobile&&e._selectedPoint!==n.point){e._selectedPoint=n.point;return}let l=n.point.series.userOptions.path,a=[n.point.path];l&&a.push(l),e.showLoading(),e.doDrillthrough(a,n.point.name,n.point.category).finally(()=>{e.hideLoading()})}}},dataLabels:{color:this.tc?.hcTextColor||void 0,enabled:this.widget.showValues===!0,formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;return h=e.formatNumber(h,a),h}},events:{hide:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible),show:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible)}}},yAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none"},formatter:r},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},xAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none",cursor:"pointer"}},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},series:[],title:{text:""}},this.setup3DChart(),this.chartConfig.navigator={outlineColor:this.tc?.hcLineColor,xAxis:{gridLineColor:this.tc?.hcLineColor},yAxis:{gridLineColor:this.tc?.hcLineColor}},this.widget.type.toLowerCase()==="combochart"&&(this.chartConfig.yAxis=[{events:{},gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}},{events:{},opposite:!0,gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}}],this.widget.overrides&&this.widget.overrides[0]&&this.widget.overrides[0]._type==="comboChart")){let l=this.widget.overrides.find(a=>a._type.toLowerCase()==="combochart")?.yAxisList;if(l&&l.length)for(let a=0;a{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={});let n=Lr[this.chart?.options?.chart?.type||""]||{};this.sbs.showComponent({component:import("./chunk-XKBPBU2N.js"),inputs:{widgetSettings:i[e],appearance:n,onSave:r,onUpdate:l=>this.updateColors(l),chart:this.chart}})}setupAxisMinMax(e){let i=this.override,r=this.chartConfig.yAxis,n=this.chartConfig.xAxis,l=i?.yAxisList[0];e.some(a=>a<0)||(r.min=0),(this.baseType==="barChart"||this.baseType==="barChartStacked")&&(l=i?.xAxis),l?.minValue!==void 0&&(r.min=l.minValue),l?.maxValue!==void 0&&(r.max=l.maxValue)}removeUndefinedColors(e){let i=(r,n)=>{r[n]===void 0&&delete r[n]};i(e.plotOptions?.column,"borderColor"),i(e.plotOptions?.bar,"borderColor"),i(e.plotOptions?.pie,"borderColor"),i(e.plotOptions?.treemap,"borderColor"),i(e.plotOptions?.treemap,"borderColor"),i(e.drilldown?.activeAxisLabelStyle,"color"),i(e.drilldown?.activeDataLabelStyle,"color"),i(e.legend?.itemStyle,"color"),i(e.chart,"backgroundColor"),i(e.plotOptions?.series,"opacity"),i(e.plotOptions?.series?.dataLabels,"color"),i(e.yAxis?.labels?.style,"color"),i(e.yAxis,"minorGridLineColor"),i(e.yAxis,"gridLineColor"),i(e.yAxis,"lineColor"),i(e.yAxis,"tickColor"),i(e.xAxis?.labels?.style,"color"),i(e.xAxis,"minorGridLineColor"),i(e.xAxis,"gridLineColor"),i(e.xAxis,"lineColor"),i(e.xAxis,"tickColor"),this.removeEmptyObjects(e)}removeEmptyObjects(e){let i=!0;for(;i;)i=!1,Object.keys(e).forEach(r=>{typeof e[r]=="object"&&!Array.isArray(e[r])&&(Object.keys(e[r]).length===0?(i=!0,delete e[r]):this.removeEmptyObjects(e[r]))})}setup3DChart(){this.widget?.type.toLowerCase().includes("3d")&&(this.chartConfig.chart&&(this.chartConfig.chart.options3d={enabled:!0,alpha:0,beta:8,depth:50,viewDistance:8}),this.chartConfig.plotOptions?.column&&(this.chartConfig.plotOptions.column.depth=25),this.chartConfig.plotOptions?.bar&&(this.chartConfig.plotOptions.bar.depth=25),this.chartConfig.plotOptions?.pie&&(this.chartConfig.plotOptions.pie.depth=25))}sortTuplesArray(e,i){let r=new Map;i.forEach((n,l)=>{r.set(n,l)}),e.forEach((n,l)=>{n.originalIndex=l}),e.sort((n,l)=>{let a=r.get(n.dimension),h=r.get(l.dimension);return a!==void 0&&h!==void 0?a-h:a!==void 0?-1:h!==void 0?1:0})}sortTuplesBasedOnLabels(e){if(!e.Cols[0].tuples?.length)return;let i=this.widget.overrides?.find(n=>n._type==="chartLegend");if(!i)return;let r=i.legendLabels?.split(",");r&&this.sortTuplesArray(e.Cols[0].tuples,r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Hn=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="columnchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-column-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Zn=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.isSpinner=!1}ngOnInit(){this.widget.title=this.i18n.get("filters"),this.widget.toolbar=!0,this.widget.viewSize=this.getViewSize()}requestData(){}onHeaderButton(e){switch(e.name){case"setDefault":this.setFiltersToDefaults();break;case"byRows":this.setViewSize(0);break;case"by2columns":this.setViewSize(1);break;case"by3columns":this.setViewSize(2);break;case"by4columns":this.setViewSize(3);break;case"by5columns":this.setViewSize(4);break;case"by6columns":this.setViewSize(5);break}}setFiltersToDefaults(){for(let e=0;e{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-empty-widget"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Bu=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.isPercent=!0,this.totalSum=0,this.prevData=null,this.baseSeriesType="treemap"}ngOnInit(){super.ngOnInit(),this.totalSum=0,this.widget.overrides&&this.widget.overrides[0]&&this.widget.overrides[0].showPercentage===0&&(this.isPercent=!1);let e=this,i={levels:[{level:1,layoutAlgorithm:"sliceAndDice",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"15px",fontWeight:"bold"}}}],legend:{enabled:this.widget.isLegend},plotOptions:{series:{animation:!1,colorByPoint:!0,legendType:"point"},treemap:{dataLabels:{enabled:!0,formatter(){if(e.totalSum){let r=this.point.value/e.totalSum*100;return r=e.formatNumber(r,e.getDataPropByDataValue(this.series?.userOptions?.dimension)?.format||"#.##"),`${this.point.caption}
${r}%`}else return`${this.point.caption}`}}}},tooltip:{formatter(){let r=this.series.userOptions.caption,n=this.series.userOptions.format,l=this.point.value;return l=e.formatNumber(l,n),this.point.caption+"
"+r+": "+l+""}}};this.us.mergeRecursive(this.chartConfig,i),delete this.chartConfig.plotOptions?.series?.dataLabels}parseData(e){return Yt(this,null,function*(){this.prevData=e,e&&e.Info&&(this.dataInfo=e.Info);let i=[];if(e.Cols[0].tuples.length){if(e.Cols[0].tuples[0].children)console.error("Data converter for this treemap chart not implemented!");else{if(yield this.checkForAutoDrill(e))return;i=[];let r=0;for(let a=0;a"+parseFloat(parseFloat(e.Data[a])/r*100).toFixed(2).toString()+"%",value:parseFloat(e.Data[a]),y:parseFloat(e.Data[a]),path:e.Cols[1].tuples[a].path,name:e.Cols[1].tuples[a].caption});let n="",l="";e.Cols[0].tuples[0]&&(n=e.Cols[0].tuples[0].caption,l=e.Cols[0].tuples[0].format),this.totalSum=e.Data.map(a=>parseFloat(a)||0).reduce((a,h)=>a+h,0),this.addSeries({data:i,name:"",layoutAlgorithm:"squarified",caption:n,dimension:e.Cols[0].tuples[0].dimension,format:l,dataLabels:{enabled:!0}},void 0,void 0,!0)}this.toggleLegend(this.widget.isLegend)}})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-tree-map"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Kn=qt(ys());var Gu=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.thirdTitle=""}ngOnInit(){super.ngOnInit();let e=this,i={plotOptions:{bubble:{minSize:"5%",maxSize:"35%",sizeBy:"width"},series:{cursor:null,point:{events:{click:null}}}},chart:{zoomType:"xy"},xAxis:{tickWidth:10,title:{enabled:!0}},tooltip:{formatter:function(){let r=this.series.userOptions.format1,n=this.series.userOptions.format2,l=this.series.userOptions.format3,a=this.x,h=this.y,c=this.point.z;r&&(a=(0,Kn.default)(a).format(r)),n&&(h=(0,Kn.default)(h).format(n)),l&&(c=(0,Kn.default)(c).format(l));let g=e.thirdTitle||"radius";return this.series.name+"
"+e.chartConfig.xAxis.title.text+":"+a+"
"+e.chartConfig.yAxis.title.text+":"+h+""+(c?"
"+g+": "+c.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,i)}getSeriesNames(e){let i={};if(e.Cols[0].tuples.length==4)for(let r=3;r=1&&(this.chartConfig.xAxis.title.text=e.Cols[0].tuples[0].caption),e.Cols[0].tuples.length>=2&&(this.chartConfig.yAxis.title.text=e.Cols[0].tuples[1].caption),e.Cols[0].tuples.length>=3&&(this.thirdTitle=e.Cols[0].tuples[2].caption);let r=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{let n=e.Cols[0].tuples.length,l="",a="",h="";e.Cols[0].tuples[0]&&(l=e.Cols[0].tuples[0].format),e.Cols[0].tuples[1]&&(a=e.Cols[0].tuples[1].format),e.Cols[0].tuples[2]&&(h=e.Cols[0].tuples[2].format);let c={},g=!1,u;if(this.hasOption("isTop")){g=!0;let v=(this.widget.controls||[]).filter(function(x){return x.action==="setRowCount"})[0];u=v?v.value||Ir:Ir}let p=g?u:e.Data.length;p>e.Data.length&&(p=e.Data.length);for(let b=0;b{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-bubble-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var qn=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={};this.widget.type.toLowerCase()!=="combochart"&&(e={plotOptions:{series:{lineWidth:3,marker:{enabled:!1}}}}),this.widget.type.toLowerCase()==="linechartmarkers"&&(e={series:{marker:{enabled:!0}}}),this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Kl=qt(ys());var Xu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit();let e={series:{fillColor:"#dddddF"},plotOptions:{boxplot:{fillColor:"#fafafF",whiskerLength:0,colorByPoint:!0,lineWidth:3,stemWidth:0}},tooltip:{formatter:function(){let i=this.series.userOptions.caption1||"Minimum",r=this.series.userOptions.caption2||"Maximum",n=this.series.userOptions.format1,l=this.series.userOptions.format2,a=this.point.low,h=this.point.high;return n&&(a=(0,Kl.default)(a).format(n)),l&&(h=(0,Kl.default)(h).format(l)),this.key+"
"+r+":"+h+"
"+i+":"+a+""}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Yt(this,null,function*(){let i=this.chartConfig.xAxis;i.categories=[];for(let n=0;n{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-hi-low-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Wu=qt(ys()),Yu=qt(Jn());var mf=["charts"];function xf(o,t){o&1&&le(0,"div",null,0)}var ql=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.confs=[],this.charts=[]}ngOnInit(){super.ngOnInit();let e={title:{verticalAlign:"bottom",style:{fontFamily:_h}},tooltip:{enabled:!1},legend:{enabled:!1},chart:{plotBackgroundColor:null,plotBackgroundImage:null,plotBorderWidth:0,plotShadow:!1},plotOptions:{series:{dataLabels:{enabled:!0,formatter:function(){let i=this.point.y,r=this.series.userOptions.format||"#.##";return r&&(i=(0,Wu.default)(i).format(r.replace(",","."))),i}}}},pane:{startAngle:-150,endAngle:150,background:[{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#333"]]},borderWidth:0,outerRadius:"109%"},{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#333"],[1,"#FFF"]]},borderWidth:1,outerRadius:"107%"},{},{backgroundColor:"#DDD",borderWidth:0,outerRadius:"105%",innerRadius:"103%"}]}};this.chartConfig.yAxis={minorTickInterval:"auto",minorTickWidth:1,minorTickLength:10,minorTickPosition:"inside",minorTickColor:"#666",tickWidth:2,tickPosition:"inside",tickLength:10,tickColor:"#666"},this.chartConfig.chart?.type==="solidgauge"&&(e.pane={center:["50%","85%"],size:"140%",startAngle:-90,endAngle:90,background:[{backgroundColor:"#EEE",innerRadius:"60%",outerRadius:"100%",shape:"arc"}]}),this.us.mergeRecursive(this.chartConfig,e)}ngAfterViewInit(){}createChart(){let e=this.chartsEl?.toArray().map(i=>i.nativeElement);this.charts=[],this.confs.forEach((i,r)=>{i.chart&&(i.chart.renderTo=e?.[r]),this.charts.push(Yu.default.chart(i))})}retrieveData(e){let i;if(this.hideLoading(),this.charts.forEach(r=>{for(;r.series.length>0;)r.series[0].remove()}),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){if(!e.Cols)return;e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e)}}parseData(e){return Yt(this,null,function*(){if(this.confs.length===0){for(let i=0;ia.dataValue===e.Cols[0].tuples[i].dimension);n&&n.label&&n.label!=="$auto"&&(r=n.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig));let l=this.confs[this.confs.length-1];l.title&&(l.title.text=r)}this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{this.createChart(),this.parseData(e)});return}for(let i=0;in.max&&(p=n.max),n.plotBands=[],u!==n.min&&n.plotBands.push({from:n.min,to:u,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),p!==n.max&&n.plotBands.push({from:p,to:n.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),l.targetValue){let b=parseFloat(l.targetValue);n.plotLines=[{value:b,color:"rgba(0, 180, 0, 0.4)",width:3,zIndex:5}]}}let a="";this.widget.properties&&this.widget.properties.format&&(a=this.widget.properties.format),e.Cols[0].tuples[i].format&&(a=e.Cols[0].tuples[i].format);let h=e.Cols[0].tuples[i].caption;l&&l.label&&l.label!=="$auto"&&(h=l.label),this.addSeries({data:[e.Data[i]||0],name:h,format:a},this.charts[i],this.confs[i]),this.charts[i]&&this.charts[i].update(this.confs[i])}})}onResize(){super.onResize(),this.charts.forEach(e=>e.reflow())}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-speedometer-chart"]],viewQuery:function(i,r){if(i&1&&$i(mf,5),i&2){let n;Ji(n=Qi())&&(r.chartsEl=n)}},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[["charts",""]],template:function(i,r){i&1&&oe(0,xf,2,0,"div",null,ne),i&2&&ae(r.confs)},styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]});let o=t;return o})();var Vu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={plotOptions:{series:{colorByPoint:!1},area:{stacking:"normal",marker:{enabled:!1}}}};this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Uu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={plotOptions:{series:{cursor:null,point:{events:{click:null}}},pie:{allowPointSelect:!1,dataLabels:{enabled:!0,color:"#000000",connectorColor:"#000000",formatter:function(){return""+this.point.name+": "+this.series.options.size}}}},tooltip:{formatter:function(){return this.key+": "+this.y+"
"}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Yt(this,null,function*(){let i=[];this.clearSeries();let r=Math.max.apply(null,e.Data);for(let n=0;n{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Rr=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e={series:{allowPointSelect:!0,stickyTracking:!1}};this.chartConfig.plotOptions||(this.chartConfig.plotOptions={}),this.us.mergeRecursive(this.chartConfig.plotOptions,e),(this.widget.type==="donutChart"||this.widget.type==="donutChart3D")&&(e={plotOptions:{pie:{innerSize:"20%"}}},this.us.mergeRecursive(this.chartConfig,e)),(this.widget.type==="pieChart3D"||this.widget.type==="donutChart3D")&&(e={chart:{options3d:{enabled:!0,alpha:55,beta:0}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",depth:35}}},this.us.mergeRecursive(this.chartConfig,e));let i=this,r={plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,formatter:function(){let n=i.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=this.point.name,c=i.formatNumber(this.y,a);i.widget.showValues||(c=""),i.widget["btn.ShowAnnotations"]===!1&&(h="");let g=i.formatNumber(this.point.percentage,i.getDataPropByDataValue(this.series?.userOptions?.name)?.format||"#.##")+"%";return i.widget["btn.ShowPercents"]||(g=""),[h,c,g].filter(u=>u).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){let n=this,l=n.series.options.format,a=n.y;return l&&(a=i.formatNumber(a,l)),n.key+", "+a}},point:{events:{legendItemClick:function(){let n=this.path,l=this.name,a=this.visible;i.chart?.series.forEach(h=>{h.data.forEach(c=>{(n&&c.path===n||l&&c.name===l)&&(c!==this&&c.update({visible:!a}),a&&c.setState("normal"))})})},mouseOut:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("")})},mouseOver:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,r),this.chartConfig?.plotOptions?.series?.dataLabels||(this.chartConfig.plotOptions.series.dataLabels={}),(this.chartConfig?.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.widget.showValues,this.updateChart(!0,!0)}isValuesVisible(){return this.widget.showValues||this.widget["btn.ShowAnnotations"]}onHeaderButton(e){(e.name==="ShowValues"||e.name==="btn.ShowAnnotations"||e.name==="btn.ShowPercents")&&((this.chartConfig.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.updateChart(!0),this.chart?.series.forEach((i,r)=>{r!==0&&(i.options.showInLegend=!1)}),(this.chart?.series.length??0)>1&&this.chartConfig.legend&&this.chart?.legend.update(this.chartConfig.legend,!0)),super.onHeaderButton(e)}addSeries(e,i,r,n=!1){let l=this._currentData?.Cols[0]?.tuples?.length||1,a=this._currentData?.Cols[1]?.tuples?.length||1;if(l!==1){let h=100/l,c=this.chart?.series.length||0;e.center=[(h/2+c*h).toString()+"%","50%"],c>a&&(e.showInLegend=!1)}super.addSeries(e,i,r,n),this.chart&&this.chart.series.length>1&&(this.chart.series[this.chart.series.length-1].options.showInLegend=!1)}updateSeriesVisibilityAndPositionForMultiplePies(){this.chart?.series.forEach((e,i)=>{e.options.showInLegend=i===0})}onLegendItemHover(e){super.onLegendItemHover(e),(this.chart?.series?.length??0)>1&&this.chart?.series.forEach(i=>{i!==e.series&&i.setState("inactive",!0)}),this.chartConfig.plotOptions.series.point.events.mouseOver.call(e)}onLegendItemOut(e){super.onLegendItemOut(e),(this.chart?.series?.length??0)>1&&this.chart?.series.forEach(i=>{i!==e.series&&i.setState("normal",!0)}),this.chartConfig.plotOptions.series.point.events.mouseOut.call(e)}parseData(e){return Yt(this,null,function*(){yield eh(t.prototype,this,"parseData").call(this,e),this.toggleLegend(this.widget.isLegend)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var $l=qt(ys());var Hu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};let e=this;this.chartConfig.tooltip={formatter(){let i=this.series.userOptions,r=i.format1,n=i.format2,l=this.y,a=this.x;r&&(l=(0,$l.default)(l).format(r)),n&&(a=(0,$l.default)(a).format(n));let h=e.chartConfig.yAxis,c=e.chartConfig.xAxis;return h.title?.text+":"+l+"
"+c.title?.text+":"+a+""}},this.updateChart()}parseData(e){return Yt(this,null,function*(){let i="",r="";if(e.Cols[0].tuples.length>=1){let l=this.chartConfig.xAxis;l?.title&&(l.title.text=e.Cols[0].tuples[0].caption),i=e.Cols[0].tuples[0].format}if(e.Cols[0].tuples.length>=2){let l=this.chartConfig.yAxis;l?.title!==void 0&&(l.title.text=e.Cols[0]?.tuples[1]?.caption),i=e.Cols[0].tuples[1].format}this.chartConfig.series=[];let n=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let l=0;l{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Zu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e=this;function i(){let n,l,a,h=this,c=new Date(h.x),g=c.toLocaleDateString();if(c.getHours()!==0&&c.getMinutes()!==0&&c.getSeconds()!==0&&(g+=" "+c.toLocaleTimeString()),h.series)return l=h.series.options.format,a=h.y,a=e.formatNumber(a,l),n=""+g+'
\u25CF'+h.series.name+": "+a,n;n=""+g+"
";for(let u=h.points.length-1;u>-1;u--)l=h.points[u].series.options.format,a=h.points[u].y,a=e.formatNumber(a,l),n+='\u25CF'+h.points[u].series.name+": "+a+"
";return n}let r={options:{chart:{zoomType:"x"},tooltip:{formatter:i},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,r)}parseData(e){return Yt(this,null,function*(){e&&e.Info&&(this.dataInfo=e.Info),this.chartConfig.yAxis.min=this.getMinValue(e.Data),this.clearSeries();let i=[],r,n;if(e.Cols[0].tuples[0].children){let l=0;for(let a=0;a=0;l--){for(i=[],n=0;n1&&(h=parseInt(a[1])),l=this.addDays(l,parseInt(r)),h&&l.setSeconds(h),Date.parse(l)}else return this.getDate(e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Jl=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="barchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-bar-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Ku=qt(Jn());function yf(o,t){if(o&1&&(Lt(0,"div",2)(1,"div",4),ie(2),kt(),le(3,"span")(4,"span")(5,"span")(6,"span"),Lt(7,"div",4),ie(8),kt()()),o&2){let s=Nt().$implicit;Dt(2),Te(s.rangeLower||"0"),Dt(6),Te(s.rangeUpper||"0")}}function bf(o,t){if(o&1&&(Lt(0,"div"),ie(1),kt()),o&2){let s=Nt().$implicit;je("align-left",s.display==="label"),Dt(),ms(" ",s.label," ")}}function vf(o,t){if(o&1&&(Lt(0,"td"),$s(1,yf,9,2,"div",2)(2,bf,2,3,"div",3),kt()),o&2){let s,e=t.$implicit;je("plotbox-cell",e.display==="plotBox"),Dt(),Js((s=e.display)==="plotBox"?1:2)}}function Cf(o,t){if(o&1&&(Lt(0,"div"),le(1,"img",7),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Dt(),gs("src",i.data[e][s],fs)}}function _f(o,t){if(o&1&&le(0,"span",10),o&2){let s=Nt(2).$index,e=Nt().$index,i=Nt();Ee("left",i.targets[e][s],"%")}}function wf(o,t){if(o&1&&(Lt(0,"div",8),$s(1,_f,1,2,"span",9),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Ee("background-color",i.color)("width",i.data[e][s],"%"),Dt(),Js(i.targets[e][s]?1:-1)}}function Sf(o,t){if(o&1&&(Lt(0,"div"),ie(1),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Dt(),ms(" ",i.data[e]?i.data[e][s]:""," ")}}function Mf(o,t){if(o&1&&(Lt(0,"td"),$s(1,Cf,2,1,"div")(2,wf,2,5,"div",6)(3,Sf,2,1,"div"),kt()),o&2){let s,e=t.$implicit,i=Nt(2);Ee("width",e.display==="plotBox"?100/i.props.length*2:null,"%"),je("align-left",e.display==="label")("align-center",e.display==="itemNo"),Dt(),Js((s=e.display)==="trendLine"?1:s==="plotBox"?2:3)}}function Ef(o,t){if(o&1&&(Lt(0,"tr"),oe(1,Mf,4,7,"td",5,ne),kt()),o&2){let s=Nt();Dt(),ae(s.props)}}function Tf(o,t){if(o&1&&(Lt(0,"td"),ie(1),kt()),o&2){let s=t.$implicit;Dt(),ms(" ",s," ")}}function Af(o,t){if(o&1&&(Lt(0,"tr",1),oe(1,Tf,2,1,"td",null,ne),kt()),o&2){let s=Nt();Dt(),ae(s.footerValues)}}var qu=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.widget={},this.columns=[],this.rows=[],this.data=[],this.targets=[],this.color="",this.props=[],this.hasFooter=!1,this.footerValues=[],this.san=$t(uh),this.sbs=$t(zr),this.totalByColumn={},this.originalData=[]}ngOnInit(){super.ngOnInit(),this.color=Ku.default.getOptions().colors?.[0],this.tc&&this.tc.hcColors&&(this.color=this.tc.hcColors[0]),this.subColorsConfig=this.bs.subscribe("charts:update-colors",e=>this.updateColors(e)),this.prepareProps(),this.props?.length||this.override?.columns?.length&&(this.props=this.override.columns)}ngOnDestroy(){this.subColorsConfig?.unsubscribe(),super.ngOnDestroy()}retrieveData(e){super.retrieveData(e),!e.Error&&(this.originalData=e.Data,this.columns=e.Cols[0].tuples,this.rows=e.Cols[1]?.tuples||[{}],this.prepareData(e.Data),this.cd.detectChanges())}prepareProps(){this.props=this.widget.dataProperties,this.props&&this.props.forEach(e=>e.label=e.label.replace("\\n",` -`))}onHeaderButton(e){switch(super.onHeaderButton(e),e.name){case"chartConfig":this.showChartConfig();break}}getValue(e,i,r,n,l){switch(r.display||""){case"itemNo":return(i+1).toString();case"label":return this.rows[i].caption;case"":case"value":case"plotBox":{let a=r.format,h=this.getPropValue(e,i,r);if(r.display==="plotBox"){let c=r.rangeLower||0,g=r.rangeUpper||0;return n!==void 0&&(c=n),l!==void 0&&(g=l),r.showAs==="target%"?parseFloat(h)/parseFloat(this.getPropValue(e,i,r,"targetValue"))*100:g-c===0?0:(h-c)/(g-c)*100}else{if(h==="")return"";if(r.showAs==="target%"){let c=this.getPropValue(e,i,r,"targetValue");return this.formatNumber(h/c,a)}return r.showAs==="sum%"?this.formatNumber(h/this.totalByColumn[r.dataValue],a||"#.##%"):this.formatNumber(h,a)}}case"trendLine":{let a=this.getColumnIndex(r.dataValue),h="";return a!==-1&&(h=e[i*this.columns.length+a]),this.getSvgForTrendLine(r,h)}}return 0}prepareFooter(){if(this.hasFooter=this.props.some(e=>e.summary==="sum"),this.footerValues=[],!!this.hasFooter)for(let e=0;e{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={}),this.sbs.showComponent({component:import("./chunk-XKBPBU2N.js"),inputs:{appearance:{showSeries:[!0,!1,!1,!1,!1,!1,!1,!1,!1,!1],showBackground:!1,showLines:!1,showText:!1,showBorder:!1},widgetSettings:i[e],onSave:r,onUpdate:n=>this.updateColors(n)}})}getPropValue(e,i,r,n="dataValue"){let l=!isNaN(parseFloat(r[n])),a=r[n];if(!l){let h=this.getColumnIndex(r[n]);h===-1?a=0:a=e[i*this.columns.length+h]}return a}getColumnIndex(e){return this.columns.findIndex(r=>r.dimension?e.split("/").includes(r.dimension):/^Properties\(\"([^)]+)\"\)/.exec(r.valueID)?.[1]===e)}prepareData(e){let i=[];for(let r=0;r(g+a)%this.columns.length===0);l=Math.max(...h),n=Math.min(...h)}n=0,i.push({min:n,max:l}),this.props[r].rangeLower||(this.props[r].rangeLower=n),this.props[r].rangeUpper||(this.props[r].rangeUpper=l)}this.preparePercentageSums(e),this.data=[],this.targets=[];for(let r=0;r{if(!u)return 0;let p=parseFloat(u);return isNaN(p)?0:p}):typeof i=="number"?n=[i]:Array.isArray(i);let l=Math.max(...n),a=Math.min(...n),h=(n.length-1)*4,c=` - r.showAs==="sum%");i?.length&&i.forEach(r=>{let n=this.columns.findIndex(l=>l.dimension===r.dataValue);this.totalByColumn[r.dataValue]=e.reduce((l,a,h)=>{if(h%this.columns.length!==n||a==="")return l;let c=parseFloat(a);return isNaN(c)?l:l+c},0)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-scorecard"]],inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:9,vars:1,consts:[[3,"plotbox-cell"],[1,"footer"],[1,"axis"],[3,"align-left"],[1,"label"],[3,"width","align-left","align-center"],[1,"box",3,"background-color","width"],[3,"src"],[1,"box"],[1,"target",3,"left"],[1,"target"]],template:function(i,r){i&1&&(Lt(0,"table")(1,"thead")(2,"tr"),oe(3,vf,3,3,"td",0,ne),kt()(),Lt(5,"tbody"),oe(6,Ef,3,0,"tr",null,ne),$s(8,Af,3,0,"tr",1),kt()()),i&2&&(Dt(3),ae(r.props),Dt(3),ae(r.rows),Dt(2),Js(r.hasFooter?8:-1))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{overflow-y:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0;width:100%}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{color:#686868}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{position:relative;z-index:2}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{white-space:pre;text-align:right;position:sticky;top:0;padding:0 10px;height:40px;background-color:var(--cl-widget-filter-bg);border-bottom:1px solid var(--cl-header-border)}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:6px 10px;text-align:right}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:30px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#00000003}.box[_ngcontent-%COMP%]{height:18px;flex-shrink:0;flex-grow:0;position:relative}.boxes-container[_ngcontent-%COMP%]{display:flex}.boxes-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:40px;flex-shrink:0;flex-grow:0;margin-right:10px}.axis[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:10px;border-bottom:1px solid gray;height:6px;border-left:1px solid gray;margin-top:28px;position:relative}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{position:absolute;text-align:center;top:-14px}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:first-child{left:0;transform:translate(-50%)}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:last-child{right:0;transform:translate(50%)}.axis[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:100%;border-right:1px solid gray}.footer[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{color:var(--cl-txt);background-color:var(--cl-widget-filter-bg);border-top:1px solid var(--cl-header-border);position:sticky;bottom:0}.target[_ngcontent-%COMP%]{display:inline-block;width:2px;transform:translate(-1);background-color:#1c1d20;height:calc(100% + 4px);position:absolute;top:-2px}.plotbox-cell[_ngcontent-%COMP%]{z-index:1}"]});let o=t;return o})();var Us=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.data=[]}retrieveData(e){this.hideLoading(),this.prepareMeterData(e),this.cd.markForCheck(),this.cd.detectChanges()}prepareMeterData(e){if(this.data=[],!e)return;let i=!!this.widget?.dataProperties?.length,r=i?this.widget?.dataProperties:e.Cols[0].tuples;for(let n=0;nx.dimension===l.dataValue);h=e.Cols[0].tuples[v].caption,a=e.Data[v]}else h=r[n].caption,a=e.Data[n];let c=1,g=parseFloat(l.rangeLower.toString()),u=parseFloat(l.rangeUpper.toString());isNaN(g)&&(g=0),isNaN(u)&&(u=100);let p=g,b=u;isNaN(p)&&(p=33.33333),isNaN(b)&&(b=66.66666),a=b&&(c=2),this.data.push({caption:h,state:c,value:a,min:g,max:u})}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();function Pf(o,t){if(o&1&&(Lt(0,"div",0),le(1,"img",1),Lt(2,"label"),ie(3),kt()()),o&2){let s=t.$implicit;Dt(),gs("src","assets/img/smiley/"+(s.state===1?"smile-yellow.svg":s.state===0?"smile-red.svg":"smile-green.svg"),fs),Dt(2),Te(s.caption)}}var $u=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-wsmiley"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,r){i&1&&oe(0,Pf,4,2,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();function Df(o,t){if(o&1&&le(0,"div",3),o&2){let s=t.$implicit,e=Nt().$implicit;je("filled",e.progress>=s+1)}}function Lf(o,t){if(o&1&&(Lt(0,"div",0)(1,"div",1),oe(2,Df,1,2,"div",2,ne),kt(),Lt(4,"label"),ie(5),kt()()),o&2){let s=t.$implicit,e=Nt();Dt(),je("high",s.state===2)("low",s.state===0),Dt(),ae(e.dots),Dt(3),Te(s.caption)}}var Ju=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={},this.data=[],this.dots=[0,1,2,3,4,5,6,7,8,9]}get gridColumns(){return"repeat("+(this.data?.length>=5?2:1).toString()+", 1fr)"}prepareMeterData(e){super.prepareMeterData(e),this.data.forEach(i=>{i.progress=(i.value-i.min)/(i.max-i.min)*10,isNaN(i.progress)&&(i.progress=0)}),console.log(this.data)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-light-bar"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"holder"],[1,"bar"],[1,"dot",3,"filled"],[1,"dot"]],template:function(i,r){i&1&&oe(0,Lf,6,5,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}.holder[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[_ngcontent-%COMP%]{display:flex;width:100%;height:24px;border:1px solid var(--cl-accent);border-radius:1000px;padding-left:3px;padding-right:3px;gap:4px;justify-content:space-between;align-items:center}.dot[_ngcontent-%COMP%]{background:var(--cl-hover);border-radius:1000px;width:100%;height:100%;max-width:18px;max-height:18px}.dot.filled[_ngcontent-%COMP%]{background:var(--cl-accent)}.bar.high[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:last-child{background-color:#e07d86}.bar.low[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:first-child{background-color:#175ab8}"],changeDetection:0});let o=t;return o})();function If(o,t){if(o&1&&(Lt(0,"div",0),le(1,"img",1),Lt(2,"label"),ie(3),kt()()),o&2){let s=t.$implicit;Dt(),gs("src","assets/img/traffic-light/"+(s.state===1?"yellow.svg":s.state===0?"red.svg":"green.svg"),fs),Dt(2),Te(s.caption)}}var Qu=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-traffic-light"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,r){i&1&&oe(0,If,4,2,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();var kr=[{id:"btn.ShowAnnotations",text:"Show annotations",tooltip:"Show annotations",icon:"assets/img/icons/text.svg",defValue:!0},{id:"btn.ShowPercents",text:"Show percents",tooltip:"Show percents",icon:"assets/img/icons/percent.svg"}],Hs={regular:{label:"Scorecard chart",class:qu,allowShowAsPivot:!0},fuelGauge:{class:ql,type:"chart",chart:"solidgauge",allowShowAsPivot:!0},bullseyeChart:{label:"Bullseye chart",class:Uu,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},speedometer:{class:ql,type:"chart",chart:"gauge",allowShowAsPivot:!0,disableLegend:!0},bubbleChart:{label:"Bubble chart",class:Gu,type:"chart",chart:"bubble",allowShowAsPivot:!0},treeMapChart:{label:"Tree map chart",class:Bu,type:"chart",chart:"treemap",allowShowAsPivot:!0},hilowChart:{label:"Hi-low chart",class:Xu,type:"chart",chart:"boxplot",allowShowAsPivot:!0},pieChart3D:{label:"Pie chart 3D",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},donutChart3D:{label:"Donut chart 3D",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},donutChart:{label:"Donut chart",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},pieChart:{label:"Pie chart",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},areaChart:{label:"Area chart",class:Vu,type:"chart",chart:"area",allowShowAsPivot:!0},barChart:{label:"Bar chart",class:Jl,type:"chart",chart:"bar",allowShowAsPivot:!0},barChartStacked:{label:"Bar chart stacked",class:Jl,type:"chart",chart:"bar",allowShowAsPivot:!0},lineChart:{label:"Linear chart",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},lineChartMarkers:{label:"Linear chart with markers",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},comboChart:{label:"Combo chart",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},columnChart:{label:"Column chart",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},columnChart3D:{label:"Column chart 3D",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},columnChartStacked:{label:"Column chart stacked",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},xyChart:{label:"XY chart",class:Hu,type:"chart",chart:"scatter",allowShowAsPivot:!0},timeChart:{label:"Time chart",class:Zu,type:"chart",allowShowAsPivot:!0},pivot:{label:"Table",class:to,type:"pivot"},"deepsee.lightpivottable":{class:to,type:"pivot"},textMeter:{label:"Text meter",class:Mh,type:"text",allowShowAsPivot:!0},map:{label:"World map",class:Nn,type:"map",allowShowAsPivot:!0},"deepsee.enhancedmapportlet":{class:Nn,type:"map",allowShowAsPivot:!0},"rf.mapportlet":{class:Nn,type:"map",allowShowAsPivot:!0},horizontalControls:{class:Zn,type:"empty"},verticalControls:{class:Zn,type:"empty"},smiley:{class:$u,allowShowAsPivot:!1},lightBar:{class:Ju,allowShowAsPivot:!1},trafficLight:{class:Qu,allowShowAsPivot:!1}};Hs[Ae.const.emptyWidgetClass]={class:Zn,type:"empty"};var Lu=(()=>{let t=class t{constructor(){}initialize(){let e=Ae.addons;if(e&&e&&e.length)for(let i=0;iMath.max(i,dn(o,r)),0);return s[t]=e,e}function Vc(o,t){let s=[],e=[],i=[],r=0,n=0,l=0,a=0;for(let h=0,c=t.length;h<=c;h+=2){let m=t[h];if(m===` +`||h===c){r=Math.max(r,n),i.push(n),n=0,l+=a;continue}let p=t[h+1]||o.font,u=dn(p,m);s.push(u),n+=u;let b=kp(p);e.push(b),a=Math.max(a,b)}return{width:r,height:l,widths:s,heights:e,lineWidths:i}}function Uc(o,t,s,e,i,r,n,l,a,h,c){o.save(),s!==1&&(o.globalAlpha*=s),t&&o.setTransform.apply(o,t),e.contextInstructions?(o.translate(a,h),o.scale(c[0],c[1]),Op(e,o)):c[0]<0||c[1]<0?(o.translate(a,h),o.scale(c[0],c[1]),o.drawImage(e,i,r,n,l,0,0,n,l)):o.drawImage(e,i,r,n,l,a,h,n*c[0],l*c[1]),o.restore()}function Op(o,t){let s=o.contextInstructions;for(let e=0,i=s.length;e=0;--e)s[e].renderDeclutter(t);s.length=0}},Hc=oa;var He=class extends Jt{constructor(t,s){super(t),this.layer=s}},aa={LAYERS:"layers"},la=class o extends Jr{constructor(t){t=t||{};let s=Object.assign({},t);delete s.layers;let e=t.layers;super(s),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(aa.LAYERS,this.handleLayersChanged_),e?Array.isArray(e)?e=new se(e.slice(),{unique:!0}):gt(typeof e.getArray=="function",43):e=new se(void 0,{unique:!0}),this.setLayers(e)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(At),this.layersListenerKeys_.length=0;let t=this.getLayers();this.layersListenerKeys_.push(Mt(t,Qt.ADD,this.handleLayersAdd_,this),Mt(t,Qt.REMOVE,this.handleLayersRemove_,this));for(let e in this.listenerKeys_)this.listenerKeys_[e].forEach(At);Je(this.listenerKeys_);let s=t.getArray();for(let e=0,i=s.length;e{this.clickTimeoutId_=void 0;let e=new ni(Ft.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){let s=t,e=s.pointerId;if(s.type==Ft.POINTERUP||s.type==Ft.POINTERCANCEL){delete this.trackedTouches_[e];for(let i in this.trackedTouches_)if(this.trackedTouches_[i].target!==s.target){delete this.trackedTouches_[i];break}}else(s.type==Ft.POINTERDOWN||s.type==Ft.POINTERMOVE)&&(this.trackedTouches_[e]=s);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let s=new ni(Ft.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(s),this.emulateClicks_&&!s.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(At),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);let s=new ni(Ft.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(s),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){let e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(Mt(e,Ft.POINTERMOVE,this.handlePointerMove_,this),Mt(e,Ft.POINTERUP,this.handlePointerUp_,this),Mt(this.element_,Ft.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(Mt(this.element_.getRootNode(),Ft.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let s=new ni(Ft.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(s)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let s=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new ni(Ft.POINTERMOVE,this.map_,t,s))}handleTouchMove_(t){let s=this.originalPointerMoveEvent_;(!s||s.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(At(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ut.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(At(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(At),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},Zc=da;var oi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"};var re={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var mr=1/0,ua=class{constructor(t,s){this.priorityFunction_=t,this.keyFunction_=s,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,Je(this.queuedElements_)}dequeue(){let t=this.elements_,s=this.priorities_,e=t[0];t.length==1?(t.length=0,s.length=0):(t[0]=t.pop(),s[0]=s.pop(),this.siftUp_(0));let i=this.keyFunction_(e);return delete this.queuedElements_[i],e}enqueue(t){gt(!(this.keyFunction_(t)in this.queuedElements_),31);let s=this.priorityFunction_(t);return s!=mr?(this.elements_.push(t),this.priorities_.push(s),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){let s=this.elements_,e=this.priorities_,i=s.length,r=s[t],n=e[t],l=t;for(;t>1;){let a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){let l=this.getParentIndex_(s);if(i[l]>n)e[s]=e[l],i[s]=i[l],s=l;else break}e[s]=r,i[s]=n}reprioritize(){let t=this.priorityFunction_,s=this.elements_,e=this.priorities_,i=0,r=s.length,n,l,a;for(l=0;l0;)r=this.dequeue()[0],n=r.getKey(),i=r.getState(),i===pt.IDLE&&!(n in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++e,r.load())}},qc=pa;function $c(o,t,s,e,i){if(!o||!(s in o.wantedTiles))return mr;if(!o.wantedTiles[s][t.getKey()])return mr;let r=o.viewState.center,n=e[0]-r[0],l=e[1]-r[1];return 65536*Math.log(i)+Math.sqrt(n*n+l*l)/i}var fa=class extends Ut{constructor(t){super();let s=t.element;s&&!t.target&&!s.style.pointerEvents&&(s.style.pointerEvents="auto"),this.element=s||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){pr(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&pr(this.element);for(let s=0,e=this.listenerKeys.length;si.getAttributions(t)))),e=!this.getMap().getAllLayers().some(i=>i.getSource()&&i.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(e),s}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let s=this.collectSourceAttributions_(t),e=s.length>0;if(this.renderedVisible_!=e&&(this.element.style.display=e?"":"none",this.renderedVisible_=e),!he(s,this.renderedAttributions_)){Gc(this.ulElement_);for(let i=0,r=s.length;i0&&e%(2*Math.PI)!==0?s.animate({rotation:0,duration:this.duration_,easing:Fe}):s.setRotation(0))}render(t){let s=t.frameState;if(!s)return;let e=s.viewState.rotation;if(e!=this.rotation_){let i="rotate("+e+"rad)";if(this.autoHide_){let r=this.element.classList.contains(ur);!r&&e===0?this.element.classList.add(ur):r&&e!==0&&this.element.classList.remove(ur)}this.label_.style.transform=i}this.rotation_=e}},Qc=ma;var xa=class extends Bs{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});let s=t.className!==void 0?t.className:"ol-zoom",e=t.delta!==void 0?t.delta:1,i=t.zoomInClassName!==void 0?t.zoomInClassName:s+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:s+"-out",n=t.zoomInLabel!==void 0?t.zoomInLabel:"+",l=t.zoomOutLabel!==void 0?t.zoomOutLabel:"\u2013",a=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=i,c.setAttribute("type","button"),c.title=a,c.appendChild(typeof n=="string"?document.createTextNode(n):n),c.addEventListener(ut.CLICK,this.handleClick_.bind(this,e),!1);let m=document.createElement("button");m.className=r,m.setAttribute("type","button"),m.title=h,m.appendChild(typeof l=="string"?document.createTextNode(l):l),m.addEventListener(ut.CLICK,this.handleClick_.bind(this,-e),!1);let p=s+" "+Wi+" "+Ns,u=this.element;u.className=p,u.appendChild(c),u.appendChild(m),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,s){s.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let e=this.getMap().getView();if(!e)return;let i=e.getZoom();if(i!==void 0){let r=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:Fe})):e.setZoom(r)}}},td=xa;function xr(o){o=o||{};let t=new se;return(o.zoom!==void 0?o.zoom:!0)&&t.push(new td(o.zoomOptions)),(o.rotate!==void 0?o.rotate:!0)&&t.push(new Qc(o.rotateOptions)),(o.attribution!==void 0?o.attribution:!0)&&t.push(new Jc(o.attributionOptions)),t}var ya={ACTIVE:"active"};var ba=class extends Ut{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(ya.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(ya.ACTIVE,t)}setMap(t){this.map_=t}};function ed(o,t,s){let e=o.getCenterInternal();if(e){let i=[e[0]+t[0],e[1]+t[1]];o.animateInternal({duration:s!==void 0?s:250,easing:fc,center:o.getConstrainedCenter(i)})}}function Gs(o,t,s,e){let i=o.getZoom();if(i===void 0)return;let r=o.getConstrainedZoom(i+t),n=o.getResolutionForZoom(r);o.getAnimating()&&o.cancelAnimations(),o.animate({resolution:n,anchor:s,duration:e!==void 0?e:250,easing:Fe})}var ai=ba;var va=class extends ai{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let s=!1;if(t.type==Ft.DBLCLICK){let e=t.originalEvent,i=t.map,r=t.coordinate,n=e.shiftKey?-this.delta_:this.delta_,l=i.getView();Gs(l,n,r,this.duration_),e.preventDefault(),s=!0}return!s}},id=va;var Ca=class extends ai{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let s=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Ft.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Ft.POINTERUP){let e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==Ft.POINTERDOWN){let e=this.handleDownEvent(t);this.handlingDownUpSequence=e,s=this.stopDown(e)}else t.type==Ft.POINTERMOVE&&this.handleMoveEvent(t);return!s}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function Xs(o){let t=o.length,s=0,e=0;for(let i=0;i0&&this.condition_(t)){let e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},ld=_a;var wa=class extends li{constructor(t){t=t||{},super({stopDown:yi}),this.condition_=t.condition?t.condition:sd,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!xn(t))return;let s=t.map,e=s.getView();if(e.getConstraints().rotation===Fs)return;let i=s.getSize(),r=t.pixel,n=Math.atan2(i[1]/2-r[1],r[0]-i[0]/2);if(this.lastAngle_!==void 0){let l=n-this.lastAngle_;e.adjustRotationInternal(-l)}this.lastAngle_=n}handleUpEvent(t){return xn(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return xn(t)&&fn(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}},hd=wa;var Sa=class extends bs{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){let t=this.startPixel_,s=this.endPixel_,e="px",i=this.element_.style;i.left=Math.min(t[0],s[0])+e,i.top=Math.min(t[1],s[1])+e,i.width=Math.abs(s[0]-t[0])+e,i.height=Math.abs(s[1]-t[1])+e}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let s=this.element_.style;s.left="inherit",s.top="inherit",s.width="inherit",s.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,s){this.startPixel_=t,this.endPixel_=s,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){let t=this.startPixel_,s=this.endPixel_,i=[t,[t[0],s[1]],s,[s[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Xi([i])}getGeometry(){return this.geometry_}},cd=Sa;var yn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},br=class extends Jt{constructor(t,s,e){super(t),this.coordinate=s,this.mapBrowserEvent=e}},Ma=class extends li{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new cd(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:fn,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,s,e){let i=e[0]-s[0],r=e[1]-s[1];return i*i+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new br(yn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);let s=this.boxEndCondition_(t,this.startPixel_,t.pixel);return s&&this.onBoxEnd(t),this.dispatchEvent(new br(s?yn.BOXEND:yn.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new br(yn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}},dd=Ma;var Ea=class extends dd{constructor(t){t=t||{};let s=t.condition?t.condition:od;super({condition:s,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){let e=this.getMap().getView(),i=this.getGeometry();if(this.out_){let r=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(r),l=e.getResolution()/n;i=i.clone(),i.scale(l*l)}e.fitInternal(i,{duration:this.duration_,easing:Fe})}},ud=Ea;var Ui={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};var Ta=class extends ai{constructor(t){super(),t=t||{},this.defaultCondition_=function(s){return gn(s)&&mn(s)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let s=!1;if(t.type==ut.KEYDOWN){let e=t.originalEvent,i=e.key;if(this.condition_(t)&&(i==Ui.DOWN||i==Ui.LEFT||i==Ui.RIGHT||i==Ui.UP)){let n=t.map.getView(),l=n.getResolution()*this.pixelDelta_,a=0,h=0;i==Ui.DOWN?h=-l:i==Ui.LEFT?a=-l:i==Ui.RIGHT?a=l:h=l;let c=[a,h];ks(c,n.getRotation()),ed(n,c,this.duration_),e.preventDefault(),s=!0}}return!s}},pd=Ta;var Aa=class extends ai{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(s){return!nd(s)&&mn(s)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let s=!1;if(t.type==ut.KEYDOWN||t.type==ut.KEYPRESS){let e=t.originalEvent,i=e.key;if(this.condition_(t)&&(i==="+"||i==="-")){let r=t.map,n=i==="+"?this.delta_:-this.delta_,l=r.getView();Gs(l,n,void 0,this.duration_),e.preventDefault(),s=!0}}return!s}},fd=Aa;var Pa=class{constructor(t,s,e){this.decay_=t,this.minVelocity_=s,this.delay_=e,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,s){this.points_.push(t,s,Date.now())}end(){if(this.points_.length<6)return!1;let t=Date.now()-this.delay_,s=this.points_.length-3;if(this.points_[s+2]0&&this.points_[e+2]>t;)e-=3;let i=this.points_[s+2]-this.points_[e+2];if(i<1e3/60)return!1;let r=this.points_[s]-this.points_[e],n=this.points_[s+1]-this.points_[e+1];return this.angle_=Math.atan2(n,r),this.initialVelocity_=Math.sqrt(r*r+n*n)/i,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},gd=Pa;var Da=class extends ai{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;let s=t.condition?t.condition:rd;this.condition_=t.onFocusOnly?yr(pn,s):s,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;let t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==ut.WHEEL)return!0;let e=t.map,i=t.originalEvent;i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==ut.WHEEL&&(r=i.deltaY,Dh&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=Xr),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;let n=Date.now();this.startTime_===void 0&&(this.startTime_=n),(!this.mode_||n-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");let l=e.getView();if(this.mode_==="trackpad"&&!(l.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=n,!1;this.totalDelta_+=r;let a=Math.max(this.timeout_-(n-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){let s=t.getView();s.getAnimating()&&s.cancelAnimations();let e=-Rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(s.getConstrainResolution()||this.constrainResolution_)&&(e=e?e>0?1:-1:0),Gs(s,e,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},md=Da;var La=class extends li{constructor(t){t=t||{};let s=t;s.stopDown||(s.stopDown=yi),super(s),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let s=0,e=this.targetPointers[0],i=this.targetPointers[1],r=Math.atan2(i.clientY-e.clientY,i.clientX-e.clientX);if(this.lastAngle_!==void 0){let a=r-this.lastAngle_;this.rotationDelta_+=a,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),s=a}this.lastAngle_=r;let n=t.map,l=n.getView();l.getConstraints().rotation!==Fs&&(this.anchor_=n.getCoordinateFromPixelInternal(n.getEventPixel(Xs(this.targetPointers))),this.rotating_&&(n.render(),l.adjustRotationInternal(s,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){let s=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||s.getView().beginInteraction(),!0}return!1}},xd=La;var Ia=class extends li{constructor(t){t=t||{};let s=t;s.stopDown||(s.stopDown=yi),super(s),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let s=1,e=this.targetPointers[0],i=this.targetPointers[1],r=e.clientX-i.clientX,n=e.clientY-i.clientY,l=Math.sqrt(r*r+n*n);this.lastDistance_!==void 0&&(s=this.lastDistance_/l),this.lastDistance_=l;let a=t.map,h=a.getView();s!=1&&(this.lastScaleDelta_=s),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Xs(this.targetPointers))),a.render(),h.adjustResolutionInternal(s,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let s=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||s.getView().beginInteraction(),!0}return!1}},yd=Ia;function bd(o){o=o||{};let t=new se,s=new gd(-.005,.05,100);return(o.altShiftDragRotate!==void 0?o.altShiftDragRotate:!0)&&t.push(new hd),(o.doubleClickZoom!==void 0?o.doubleClickZoom:!0)&&t.push(new id({delta:o.zoomDelta,duration:o.zoomDuration})),(o.dragPan!==void 0?o.dragPan:!0)&&t.push(new ld({onFocusOnly:o.onFocusOnly,kinetic:s})),(o.pinchRotate!==void 0?o.pinchRotate:!0)&&t.push(new xd),(o.pinchZoom!==void 0?o.pinchZoom:!0)&&t.push(new yd({duration:o.zoomDuration})),(o.keyboard!==void 0?o.keyboard:!0)&&(t.push(new pd),t.push(new fd({delta:o.zoomDelta,duration:o.zoomDuration}))),(o.mouseWheelZoom!==void 0?o.mouseWheelZoom:!0)&&t.push(new md({onFocusOnly:o.onFocusOnly,duration:o.zoomDuration})),(o.shiftDragZoom!==void 0?o.shiftDragZoom:!0)&&t.push(new ud({duration:o.zoomDuration})),t}function Ra(o){return o[0]>0&&o[1]>0}function vd(o,t,s){return s===void 0&&(s=[0,0]),s[0]=o[0]*t+.5|0,s[1]=o[1]*t+.5|0,s}function te(o,t){return Array.isArray(o)?o:(t===void 0?t=[o,o]:(t[0]=o,t[1]=o),t)}function Cd(o){if(o instanceof ns){o.setMapInternal(null);return}o instanceof fr&&o.getLayers().forEach(Cd)}function _d(o,t){if(o instanceof ns){o.setMapInternal(t);return}if(o instanceof fr){let s=o.getLayers().getArray();for(let e=0,i=s.length;ethis.updateSize()),this.controls=s.controls||xr(),this.interactions=s.interactions||bd({onFocusOnly:!0}),this.overlays_=s.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new qc(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(re.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(re.VIEW,this.handleViewChanged_),this.addChangeListener(re.SIZE,this.handleSizeChanged_),this.addChangeListener(re.TARGET,this.handleTargetChanged_),this.setProperties(s.values);let e=this;t.view&&!(t.view instanceof De)&&t.view.then(function(i){e.setView(new De(i))}),this.controls.addEventListener(Qt.ADD,i=>{i.element.setMap(this)}),this.controls.addEventListener(Qt.REMOVE,i=>{i.element.setMap(null)}),this.interactions.addEventListener(Qt.ADD,i=>{i.element.setMap(this)}),this.interactions.addEventListener(Qt.REMOVE,i=>{i.element.setMap(null)}),this.overlays_.addEventListener(Qt.ADD,i=>{this.addOverlayInternal_(i.element)}),this.overlays_.addEventListener(Qt.REMOVE,i=>{let r=i.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],i.element.setMap(null)}),this.controls.forEach(i=>{i.setMap(this)}),this.interactions.forEach(i=>{i.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){_d(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let s=t.getId();s!==void 0&&(this.overlayIdIndex_[s.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,s,e){if(!this.frameState_||!this.renderer_)return;let i=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};let r=e.hitTolerance!==void 0?e.hitTolerance:0,n=e.layerFilter!==void 0?e.layerFilter:xi,l=e.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(i,this.frameState_,r,l,s,null,n,null)}getFeaturesAtPixel(t,s){let e=[];return this.forEachFeatureAtPixel(t,function(i){e.push(i)},s),e}getAllLayers(){let t=[];function s(e){e.forEach(function(i){i instanceof fr?s(i.getLayers()):t.push(i)})}return s(this.getLayers()),t}hasFeatureAtPixel(t,s){if(!this.frameState_||!this.renderer_)return!1;let e=this.getCoordinateFromPixelInternal(t);s=s!==void 0?s:{};let i=s.layerFilter!==void 0?s.layerFilter:xi,r=s.hitTolerance!==void 0?s.hitTolerance:0,n=s.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(e,this.frameState_,r,n,i,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let e=this.viewport_.getBoundingClientRect(),i=this.getSize(),r=e.width/i[0],n=e.height/i[1],l="changedTouches"in t?t.changedTouches[0]:t;return[(l.clientX-e.left)/r,(l.clientY-e.top)/n]}getTarget(){return this.get(re.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return ar(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let s=this.frameState_;return s?Xt(s.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let s=this.overlayIdIndex_[t.toString()];return s!==void 0?s:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(re.LAYERGROUP)}setLayers(t){let s=this.getLayerGroup();if(t instanceof se){s.setLayers(t);return}let e=s.getLayers();e.clear(),e.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let s=0,e=t.length;s=0;r--){let n=i[r];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;if(!n.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){let t=this.frameState_,s=this.tileQueue_;if(!s.isEmpty()){let i=this.maxTilesLoading_,r=i;if(t){let n=t.viewHints;if(n[Zt.ANIMATING]||n[Zt.INTERACTING]){let l=Date.now()-t.time>8;i=l?0:8,r=l?0:2}}s.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let s=this.getLayerGroup();s&&this.handleLayerRemove_(new He("removelayer",s)),this.set(re.LAYERGROUP,t)}setSize(t){this.set(re.SIZE,t)}setTarget(t){this.set(re.TARGET,t)}setView(t){if(!t||t instanceof De){this.set(re.VIEW,t);return}this.set(re.VIEW,new De);let s=this;t.then(function(e){s.setView(new De(e))})}updateSize(){let t=this.getTargetElement(),s;if(t){let i=getComputedStyle(t),r=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),n=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);!isNaN(r)&&!isNaN(n)&&(s=[r,n],!Ra(s)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&sn("No map visible because the map container's width or height are 0."))}let e=this.getSize();s&&(!e||!he(s,e))&&(this.setSize(s),this.updateViewportSize_())}updateViewportSize_(){let t=this.getView();if(t){let s,e=getComputedStyle(this.viewport_);e.width&&e.height&&(s=[parseInt(e.width,10),parseInt(e.height,10)]),t.setViewportSize(s)}}};function zp(o){let t=null;o.keyboardEventTarget!==void 0&&(t=typeof o.keyboardEventTarget=="string"?document.getElementById(o.keyboardEventTarget):o.keyboardEventTarget);let s={},e=o.layers&&typeof o.layers.getLayers=="function"?o.layers:new fr({layers:o.layers});s[re.LAYERGROUP]=e,s[re.TARGET]=o.target,s[re.VIEW]=o.view instanceof De?o.view:new De;let i;o.controls!==void 0&&(Array.isArray(o.controls)?i=new se(o.controls.slice()):(gt(typeof o.controls.getArray=="function",47),i=o.controls));let r;o.interactions!==void 0&&(Array.isArray(o.interactions)?r=new se(o.interactions.slice()):(gt(typeof o.interactions.getArray=="function",48),r=o.interactions));let n;return o.overlays!==void 0?Array.isArray(o.overlays)?n=new se(o.overlays.slice()):(gt(typeof o.overlays.getArray=="function",49),n=o.overlays):n=new se,{controls:i,interactions:r,keyboardEventTarget:t,overlays:n,values:s}}var wd=ka;var Oa=class o extends Ut{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){let s=t;this.setGeometry(s)}else{let s=t;this.setProperties(s)}}clone(){let t=new o(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());let s=this.getGeometry();s&&t.setGeometry(s.clone());let e=this.getStyle();return e&&t.setStyle(e),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(At(this.geometryChangeKey_),this.geometryChangeKey_=null);let t=this.getGeometry();t&&(this.geometryChangeKey_=Mt(t,ut.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?Np(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}};function Np(o){if(typeof o=="function")return o;let t;return Array.isArray(o)?t=o:(gt(typeof o.getZIndex=="function",41),t=[o]),function(){return t}}var Fa=Oa;var za=class o{constructor(t){t=t||{},this.color_=t.color!==void 0?t.color:null}clone(){let t=this.getColor();return new o({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){this.color_=t}},hi=za;function Sd(o,t,s,e){let i=o[t],r=o[t+1],n=0;for(let l=t+e;l0,6),gt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),69);let a=t.src!==void 0?Ot.IDLE:Ot.LOADED;if(this.color_=t.color!==void 0?is(t.color):null,this.iconImage_=Ad(n,l,this.imgSize_!==void 0?this.imgSize_:null,this.crossOrigin_,a,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{let m=this.getImage(1);if(m instanceof HTMLCanvasElement||m.src&&m.complete)h=m.width,c=m.height;else{this.initialOptions_=t;let p=()=>{if(this.unlistenImageChange(p),!this.initialOptions_)return;let u=this.iconImage_.getSize();this.setScale(Pd(u[0],u[1],t.width,t.height))};this.listenImageChange(p);return}}h!==void 0&&this.setScale(Pd(h,c,t.width,t.height))}}clone(){let t,s,e;return this.initialOptions_?(s=this.initialOptions_.width,e=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new o({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:s,height:e,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;let i=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!i)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=i[0]),this.anchorYUnits_=="fraction"&&(t[1]*=i[1])}if(this.anchorOrigin_!="top-left"){if(!i)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+i[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+i[1])}this.normalizedAnchor_=t}let s=this.getDisplacement(),e=this.getScaleArray();return[t[0]-s[0]/e[0],t[1]+s[1]/e[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){let s=this.getSize(),e=this.iconImage_.getSize();if(!s||!e)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=e[0]-s[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=e[1]-s[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){let t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(ut.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(ut.CHANGE,t)}},hs=Za;function Ka(o){return new Ze({fill:_r(o,""),stroke:wr(o,""),text:Bp(o),image:Gp(o)})}function _r(o,t){let s=o[t+"fill-color"];if(s)return s==="none"?null:new hi({color:s})}function wr(o,t){let s=o[t+"stroke-width"],e=o[t+"stroke-color"];if(!(!s&&!e))return new ci({width:s,color:e,lineCap:o[t+"stroke-line-cap"],lineJoin:o[t+"stroke-line-join"],lineDash:o[t+"stroke-line-dash"],lineDashOffset:o[t+"stroke-line-dash-offset"],miterLimit:o[t+"stroke-miter-limit"]})}function Bp(o){let t=o["text-value"];return t?new vr({text:t,font:o["text-font"],maxAngle:o["text-max-angle"],offsetX:o["text-offset-x"],offsetY:o["text-offset-y"],overflow:o["text-overflow"],placement:o["text-placement"],repeat:o["text-repeat"],scale:o["text-scale"],rotateWithView:o["text-rotate-with-view"],rotation:o["text-rotation"],textAlign:o["text-align"],justify:o["text-justify"],textBaseline:o["text-baseline"],padding:o["text-padding"],fill:_r(o,"text-"),backgroundFill:_r(o,"text-background-"),stroke:wr(o,"text-"),backgroundStroke:wr(o,"text-background-")}):void 0}function Gp(o){let t=o["icon-src"],s=o["icon-img"];if(t||s)return new hs({src:t,img:s,imgSize:o["icon-img-size"],anchor:o["icon-anchor"],anchorOrigin:o["icon-anchor-origin"],anchorXUnits:o["icon-anchor-x-units"],anchorYUnits:o["icon-anchor-y-units"],color:o["icon-color"],crossOrigin:o["icon-cross-origin"],offset:o["icon-offset"],displacement:o["icon-displacement"],opacity:o["icon-opacity"],scale:o["icon-scale"],width:o["icon-width"],height:o["icon-height"],rotation:o["icon-rotation"],rotateWithView:o["icon-rotate-with-view"],size:o["icon-size"],declutterMode:o["icon-declutter-mode"]});let e=o["shape-points"];if(e){let r="shape-";return new vn({points:e,fill:_r(o,r),stroke:wr(o,r),radius:o["shape-radius"],radius1:o["shape-radius1"],radius2:o["shape-radius2"],angle:o["shape-angle"],displacement:o["shape-displacement"],rotation:o["shape-rotation"],rotateWithView:o["shape-rotate-with-view"],scale:o["shape-scale"],declutterMode:o["shape-declutter-mode"]})}let i=o["circle-radius"];if(i){let r="circle-";return new Cn({radius:i,fill:_r(o,r),stroke:wr(o,r),displacement:o["circle-displacement"],scale:o["circle-scale"],rotation:o["circle-rotation"],rotateWithView:o["circle-rotate-with-view"],declutterMode:o["circle-declutter-mode"]})}}var Dd={RENDER_ORDER:"renderOrder"},qa=class extends ns{constructor(t){t=t||{};let s=Object.assign({},t);delete s.style,delete s.renderBuffer,delete s.updateWhileAnimating,delete s.updateWhileInteracting,super(s),this.declutter_=t.declutter!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(Dd.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new Ld.default(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(Dd.RENDER_ORDER,t)}setStyle(t){let s;if(t===void 0)s=Td;else if(t===null)s=null;else if(typeof t=="function")s=t;else if(t instanceof Ze)s=t;else if(Array.isArray(t)){let e=t.length,i=new Array(e);for(let r=0;rl&&(this.instructions.push([mt.CUSTOM,l,h,t,e,ei]),this.hitDetectionInstructions.push([mt.CUSTOM,l,h,t,i||e,ei]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),h=this.coordinates.length,this.instructions.push([mt.CUSTOM,l,h,t,e]),this.hitDetectionInstructions.push([mt.CUSTOM,l,h,t,i||e]);break;default:}this.endGeometry(s)}beginGeometry(t,s){this.beginGeometryInstruction1_=[mt.BEGIN_GEOMETRY,s,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[mt.BEGIN_GEOMETRY,s,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){let t=this.hitDetectionInstructions;t.reverse();let s,e=t.length,i,r,n=-1;for(s=0;sthis.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0}createFill(t){let s=t.fillStyle,e=[mt.SET_FILL_STYLE,s];return typeof s!="string"&&e.push(!0),e}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[mt.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,s){let e=t.fillStyle;(typeof e!="string"||t.currentFillStyle!=e)&&(e!==void 0&&this.instructions.push(s.call(this,t)),t.currentFillStyle=e)}updateStrokeStyle(t,s){let e=t.strokeStyle,i=t.lineCap,r=t.lineDash,n=t.lineDashOffset,l=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=e||t.currentLineCap!=i||r!=t.currentLineDash&&!he(t.currentLineDash,r)||t.currentLineDashOffset!=n||t.currentLineJoin!=l||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(e!==void 0&&s.call(this,t),t.currentStrokeStyle=e,t.currentLineCap=i,t.currentLineDash=r,t.currentLineDashOffset=n,t.currentLineJoin=l,t.currentLineWidth=a,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;let s=[mt.END_GEOMETRY,t];this.instructions.push(s),this.hitDetectionInstructions.push(s)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=Ur(this.maxExtent),this.maxLineWidth>0)){let t=this.resolution*(this.maxLineWidth+1)/2;Es(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},ui=Qa;var tl=class extends ui{constructor(t,s,e,i){super(t,s,e,i),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,s){if(!this.image_)return;this.beginGeometry(t,s);let e=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,i);this.instructions.push([mt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(s)}drawMultiPoint(t,s){if(!this.image_)return;this.beginGeometry(t,s);let e=t.getFlatCoordinates(),i=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,i);this.instructions.push([mt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(s)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,s){let e=t.getAnchor(),i=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=e[0],this.anchorY_=e[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=i[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=i[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=s}},Rd=tl;var el=class extends ui{constructor(t,s,e,i){super(t,s,e,i)}drawFlatCoordinates_(t,s,e,i){let r=this.coordinates.length,n=this.appendFlatLineCoordinates(t,s,e,i,!1,!1),l=[mt.MOVE_TO_LINE_TO,r,n];return this.instructions.push(l),this.hitDetectionInstructions.push(l),e}drawLineString(t,s){let e=this.state,i=e.strokeStyle,r=e.lineWidth;if(i===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,s),this.hitDetectionInstructions.push([mt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,ve,Ce],Ai);let n=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(n,0,n.length,l),this.hitDetectionInstructions.push(di),this.endGeometry(s)}drawMultiLineString(t,s){let e=this.state,i=e.strokeStyle,r=e.lineWidth;if(i===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,s),this.hitDetectionInstructions.push([mt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,ve,Ce],Ai);let n=t.getEnds(),l=t.getFlatCoordinates(),a=t.getStride(),h=0;for(let c=0,m=n.length;c=o){let b=(o-l+u)/u,v=be(h,m,b),x=be(c,p,b);a.push(v,x),r.push(a),a=[v,x],l==o&&(n+=i),l=0}else if(l0&&r.push(a),r}function Fd(o,t,s,e,i){let r=s,n=s,l=0,a=0,h=s,c,m,p,u,b,v,x,f,A,L;for(m=s;mo&&(a>l&&(l=a,r=h,n=m),a=0,h=m-i)),p=u,x=A,f=L),b=S,v=w}return a+=u,a>l?[h,m]:[r,n]}var Er={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},rl=class extends ui{constructor(t,s,e,i){super(t,s,e,i),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[Kt]={fillStyle:Kt},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){let t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,s){let e=this.textFillState_,i=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!e&&!i)return;let n=this.coordinates,l=n.length,a=t.getType(),h=null,c=t.getStride();if(r.placement==="line"&&(a=="LineString"||a=="MultiLineString"||a=="Polygon"||a=="MultiPolygon")){if(!Wt(this.getBufferedMaxExtent(),t.getExtent()))return;let m;if(h=t.getFlatCoordinates(),a=="LineString")m=[h.length];else if(a=="MultiLineString")m=t.getEnds();else if(a=="Polygon")m=t.getEnds().slice(0,1);else if(a=="MultiPolygon"){let v=t.getEndss();m=[];for(let x=0,f=v.length;x{let S=n[(f+L)*2]===h[L*c]&&n[(f+L)*2+1]===h[L*c+1];return S||--f,S})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,s);let u=r.padding;if(u!=Ei&&(r.scale[0]<0||r.scale[1]<0)){let f=r.padding[0],A=r.padding[1],L=r.padding[2],S=r.padding[3];r.scale[0]<0&&(A=-A,S=-S),r.scale[1]<0&&(f=-f,L=-L),u=[f,A,L,S]}let b=this.pixelRatio;this.instructions.push([mt.DRAW_IMAGE,l,p,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,u==Ei?Ei:u.map(function(f){return f*b}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,m]);let v=1/b,x=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=Kt,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([mt.DRAW_IMAGE,l,p,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[v,v],NaN,void 0,this.declutterImageWithText_,u,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?Kt:this.fillKey_,this.textOffsetX_,this.textOffsetY_,m]),r.backgroundFill&&(this.state.fillStyle=x,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(s)}}saveTextStates_(){let t=this.textStrokeState_,s=this.textState_,e=this.textFillState_,i=this.strokeKey_;t&&(i in this.strokeStates||(this.strokeStates[i]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));let r=this.textKey_;r in this.textStates||(this.textStates[r]={font:s.font,textAlign:s.textAlign||Yi,justify:s.justify,textBaseline:s.textBaseline||ls,scale:s.scale});let n=this.fillKey_;e&&(n in this.fillStates||(this.fillStates[n]={fillStyle:e.fillStyle}))}drawChars_(t,s){let e=this.textStrokeState_,i=this.textState_,r=this.strokeKey_,n=this.textKey_,l=this.fillKey_;this.saveTextStates_();let a=this.pixelRatio,h=Er[i.textBaseline],c=this.textOffsetY_*a,m=this.text_,p=e?e.lineWidth*Math.abs(i.scale[0])/2:0;this.instructions.push([mt.DRAW_CHARS,t,s,h,i.overflow,l,i.maxAngle,a,c,r,p*a,m,n,1]),this.hitDetectionInstructions.push([mt.DRAW_CHARS,t,s,h,i.overflow,l&&Kt,i.maxAngle,1,c,r,p,m,n,1/a])}setTextStyle(t,s){let e,i,r;if(!t)this.text_="";else{let n=t.getFill();n?(i=this.textFillState_,i||(i={},this.textFillState_=i),i.fillStyle=_e(n.getColor()||Kt)):(i=null,this.textFillState_=i);let l=t.getStroke();if(!l)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);let b=l.getLineDash(),v=l.getLineDashOffset(),x=l.getWidth(),f=l.getMiterLimit();r.lineCap=l.getLineCap()||as,r.lineDash=b?b.slice():ve,r.lineDashOffset=v===void 0?Ce:v,r.lineJoin=l.getLineJoin()||ri,r.lineWidth=x===void 0?Ti:x,r.miterLimit=f===void 0?Si:f,r.strokeStyle=_e(l.getColor()||Mi)}e=this.textState_;let a=t.getFont()||un;Wc(a);let h=t.getScaleArray();e.overflow=t.getOverflow(),e.font=a,e.maxAngle=t.getMaxAngle(),e.placement=t.getPlacement(),e.textAlign=t.getTextAlign(),e.repeat=t.getRepeat(),e.justify=t.getJustify(),e.textBaseline=t.getTextBaseline()||ls,e.backgroundFill=t.getBackgroundFill(),e.backgroundStroke=t.getBackgroundStroke(),e.padding=t.getPadding()||Ei,e.scale=h===void 0?[1,1]:h;let c=t.getOffsetX(),m=t.getOffsetY(),p=t.getRotateWithView(),u=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=m===void 0?0:m,this.textRotateWithView_=p===void 0?!1:p,this.textRotation_=u===void 0?0:u,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:_t(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=e.font+e.scale+(e.textAlign||"?")+(e.repeat||"?")+(e.justify||"?")+(e.textBaseline||"?"),this.fillKey_=i?typeof i.fillStyle=="string"?i.fillStyle:"|"+_t(i.fillStyle):""}this.declutterImageWithText_=s}},zd=rl;var Xp={Circle:sl,Default:ui,Image:Rd,LineString:kd,Polygon:sl,Text:zd},nl=class{constructor(t,s,e,i){this.tolerance_=t,this.maxExtent_=s,this.pixelRatio_=i,this.resolution_=e,this.buildersByZIndex_={}}finish(){let t={};for(let s in this.buildersByZIndex_){t[s]=t[s]||{};let e=this.buildersByZIndex_[s];for(let i in e){let r=e[i].finish();t[s][i]=r}}return t}getBuilder(t,s){let e=t!==void 0?t.toString():"0",i=this.buildersByZIndex_[e];i===void 0&&(i={},this.buildersByZIndex_[e]=i);let r=i[s];if(r===void 0){let n=Xp[s];r=new n(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),i[s]=r}return r}},ol=nl;var al=class extends jr{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return Et()}getData(t){return null}prepareFrame(t){return Et()}renderFrame(t,s){return Et()}loadedTileCallback(t,s,e){t[s]||(t[s]={}),t[s][e.tileCoord.toString()]=e}createLoadedTileFinder(t,s,e){return(i,r)=>{let n=this.loadedTileCallback.bind(this,e,i);return t.forEachLoadedTile(s,i,r,n)}}forEachFeatureAtCoordinate(t,s,e,i,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let s=t.target;(s.getState()===Ot.LOADED||s.getState()===Ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let s=t.getState();return s!=Ot.LOADED&&s!=Ot.ERROR&&t.addEventListener(ut.CHANGE,this.boundHandleImageChange_),s==Ot.IDLE&&(t.load(),s=t.getState()),s==Ot.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},Nd=al;var hl=[],Ws=null;function Wp(){Ws=jt(1,1,void 0,{willReadFrequently:!0})}var ll=class extends Nd{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=ce(),this.pixelTransform=ce(),this.inversePixelTransform=ce(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,s,e){Ws||Wp(),Ws.clearRect(0,0,1,1);let i;try{Ws.drawImage(t,s,e,1,1,0,0,1,1),i=Ws.getImageData(0,0,1,1).data}catch{return Ws=null,null}return i}getBackground(t){let e=this.getLayer().getBackground();return typeof e=="function"&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,s,e){let i=this.getLayer().getClassName(),r,n;if(t&&t.className===i&&(!e||t&&t.style.backgroundColor&&he(is(t.style.backgroundColor),is(e)))){let l=t.firstElementChild;l instanceof HTMLCanvasElement&&(n=l.getContext("2d"))}if(n&&n.canvas.style.transform===s?(this.container=t,this.context=n,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=i;let l=r.style;l.position="absolute",l.width="100%",l.height="100%",n=jt();let a=n.canvas;r.appendChild(a),l=a.style,l.position="absolute",l.left="0",l.transformOrigin="top left",this.container=r,this.context=n}!this.containerReused&&e&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=e)}clipUnrotated(t,s,e){let i=ke(e),r=Ps(e),n=As(e),l=Ts(e);Xt(s.coordinateToPixelTransform,i),Xt(s.coordinateToPixelTransform,r),Xt(s.coordinateToPixelTransform,n),Xt(s.coordinateToPixelTransform,l);let a=this.inversePixelTransform;Xt(a,i),Xt(a,r),Xt(a,n),Xt(a,l),t.save(),t.beginPath(),t.moveTo(Math.round(i[0]),Math.round(i[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(l[0]),Math.round(l[1])),t.clip()}dispatchRenderEvent_(t,s,e){let i=this.getLayer();if(i.hasListener(t)){let r=new cn(t,this.inversePixelTransform,e,s);i.dispatchEvent(r)}}preRender(t,s){this.frameState=s,this.dispatchRenderEvent_(ge.PRERENDER,t,s)}postRender(t,s){this.dispatchRenderEvent_(ge.POSTRENDER,t,s)}getRenderTransform(t,s,e,i,r,n,l){let a=r/2,h=n/2,c=i/s,m=-c,p=-t[0]+l,u=-t[1];return fe(this.tempTransform,a,h,c,m,-e,p,u)}disposeInternal(){delete this.frameState,super.disposeInternal()}},Mn=ll;function jd(o,t,s,e,i,r,n,l,a,h,c,m){let p=o[t],u=o[t+1],b=0,v=0,x=0,f=0;function A(){b=p,v=u,t+=e,p=o[t],u=o[t+1],f+=x,x=Math.sqrt((p-b)*(p-b)+(u-v)*(u-v))}do A();while(tg[2]}else F=S>_;let T=Math.PI,D=[],C=R+e===t;t=R,x=0,f=O,p=o[t],u=o[t+1];let d;if(C){A(),d=Math.atan2(u-v,p-b),F&&(d+=d>0?-T:T);let g=(_+S)/2,y=(P+w)/2;return D[0]=[g,y,(I-r)/2,d,i],D}i=i.replace(/\n/g," ");for(let g=0,y=i.length;g0?-T:T),d!==void 0){let X=M-d;if(X+=X>T?-2*T:X<-T?2*T:0,Math.abs(X)>n)return null}d=M;let k=g,E=0;for(;g0&&o.push(` +`,""),o.push(t,""),o}var dl=class{constructor(t,s,e,i){this.overlaps=e,this.pixelRatio=s,this.resolution=t,this.alignFill_,this.instructions=i.instructions,this.coordinates=i.coordinates,this.coordinateCache_={},this.renderedTransform_=ce(),this.hitDetectionInstructions=i.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=i.fillStates||{},this.strokeStates=i.strokeStates||{},this.textStates=i.textStates||{},this.widths_={},this.labels_={}}createLabel(t,s,e,i){let r=t+s+e+i;if(this.labels_[r])return this.labels_[r];let n=i?this.strokeStates[i]:null,l=e?this.fillStates[e]:null,a=this.textStates[s],h=this.pixelRatio,c=[a.scale[0]*h,a.scale[1]*h],m=Array.isArray(t),p=a.justify?Er[a.justify]:cl(Array.isArray(t)?t[0]:t,a.textAlign||Yi),u=i&&n.lineWidth?n.lineWidth:0,b=m?t:t.split(` +`).reduce(Yp,[]),{width:v,height:x,widths:f,heights:A,lineWidths:L}=Vc(a,b),S=v+u,w=[],R=(S+2)*c[0],O=(x+u)*c[1],I={width:R<0?Math.floor(R):Math.ceil(R),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:w};(c[0]!=1||c[1]!=1)&&w.push("scale",c),i&&(w.push("strokeStyle",n.strokeStyle),w.push("lineWidth",u),w.push("lineCap",n.lineCap),w.push("lineJoin",n.lineJoin),w.push("miterLimit",n.miterLimit),w.push("setLineDash",[n.lineDash]),w.push("lineDashOffset",n.lineDashOffset)),e&&w.push("fillStyle",l.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");let _=.5-p,P=p*S+_*u,F=[],T=[],D=0,C=0,d=0,g=0,y;for(let M=0,k=b.length;Mt?t-h:r,S=n+c>s?s-c:n,w=b[3]+L*p[0]+b[1],R=b[0]+S*p[1]+b[2],O=f-b[3],I=A-b[0];(v||m!==0)&&(Hi[0]=O,Zi[0]=O,Hi[1]=I,Pi[1]=I,Pi[0]=O+w,Di[0]=Pi[0],Di[1]=I+R,Zi[1]=Di[1]);let _;return m!==0?(_=fe(ce(),e,i,1,1,m,-e,-i),Xt(_,Hi),Xt(_,Pi),Xt(_,Di),Xt(_,Zi),Pe(Math.min(Hi[0],Pi[0],Di[0],Zi[0]),Math.min(Hi[1],Pi[1],Di[1],Zi[1]),Math.max(Hi[0],Pi[0],Di[0],Zi[0]),Math.max(Hi[1],Pi[1],Di[1],Zi[1]),Ys)):Pe(Math.min(O,O+w),Math.min(I,I+R),Math.max(O,O+w),Math.max(I,I+R),Ys),u&&(f=Math.round(f),A=Math.round(A)),{drawImageX:f,drawImageY:A,drawImageW:L,drawImageH:S,originX:h,originY:c,declutterBox:{minX:Ys[0],minY:Ys[1],maxX:Ys[2],maxY:Ys[3],value:x},canvasTransform:_,scale:p}}replayImageOrLabel_(t,s,e,i,r,n,l){let a=!!(n||l),h=i.declutterBox,c=t.canvas,m=l?l[2]*i.scale[0]/2:0;return h.minX-m<=c.width/s&&h.maxX+m>=0&&h.minY-m<=c.height/s&&h.maxY+m>=0&&(a&&this.replayTextBackground_(t,Hi,Pi,Di,Zi,n,l),Uc(t,i.canvasTransform,r,e,i.originX,i.originY,i.drawImageW,i.drawImageH,i.drawImageX,i.drawImageY,i.scale)),!0}fill_(t){if(this.alignFill_){let s=Xt(this.renderedTransform_,[0,0]),e=512*this.pixelRatio;t.save(),t.translate(s[0]%e,s[1]%e),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,s){t.strokeStyle=s[1],t.lineWidth=s[2],t.lineCap=s[3],t.lineJoin=s[4],t.miterLimit=s[5],t.lineDashOffset=s[7],t.setLineDash(s[6])}drawLabelWithPointPlacement_(t,s,e,i){let r=this.textStates[s],n=this.createLabel(t,s,i,e),l=this.strokeStates[e],a=this.pixelRatio,h=cl(Array.isArray(t)?t[0]:t,r.textAlign||Yi),c=Er[r.textBaseline||ls],m=l&&l.lineWidth?l.lineWidth:0,p=n.width/a-2*r.scale[0],u=h*p+2*(.5-h)*m,b=c*n.height/a+2*(.5-c)*m;return{label:n,anchorX:u,anchorY:b}}execute_(t,s,e,i,r,n,l,a){let h;this.pixelCoordinates_&&he(e,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=ze(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),kh(this.renderedTransform_,e));let c=0,m=i.length,p=0,u,b,v,x,f,A,L,S,w,R,O,I,_=0,P=0,F=null,T=null,D=this.coordinateCache_,C=this.viewRotation_,d=Math.round(Math.atan2(-e[1],e[0])*1e12)/1e12,g={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:C},y=this.instructions!=i||this.overlaps?0:200,M,k,E,z;for(;cy&&(this.fill_(t),_=0),P>y&&(t.stroke(),P=0),!_&&!P&&(t.beginPath(),x=NaN,f=NaN),++c;break;case mt.CIRCLE:p=N[1];let X=h[p],j=h[p+1],B=h[p+2],W=h[p+3],Y=B-X,U=W-j,q=Math.sqrt(Y*Y+U*U);t.moveTo(X+q,j),t.arc(X,j,q,0,2*Math.PI,!0),++c;break;case mt.CLOSE_PATH:t.closePath(),++c;break;case mt.CUSTOM:p=N[1],u=N[2];let H=N[3],V=N[4],Z=N.length==6?N[5]:void 0;g.geometry=H,g.feature=M,c in D||(D[c]=[]);let K=D[c];Z?Z(h,p,u,2,K):(K[0]=h[p],K[1]=h[p+1],K.length=2),V(K,g),++c;break;case mt.DRAW_IMAGE:p=N[1],u=N[2],S=N[3],b=N[4],v=N[5];let J=N[6],tt=N[7],$=N[8],Q=N[9],et=N[10],it=N[11],st=N[12],rt=N[13],nt=N[14],ot=N[15];if(!S&&N.length>=20){w=N[19],R=N[20],O=N[21],I=N[22];let Se=this.drawLabelWithPointPlacement_(w,R,O,I);S=Se.label,N[3]=S;let ps=N[23];b=(Se.anchorX-ps)*this.pixelRatio,N[4]=b;let Ie=N[24];v=(Se.anchorY-Ie)*this.pixelRatio,N[5]=v,J=S.height,N[6]=J,rt=S.width,N[13]=rt}let at;N.length>25&&(at=N[25]);let ct,ht,lt;N.length>17?(ct=N[16],ht=N[17],lt=N[18]):(ct=Ei,ht=!1,lt=!1),et&&d?it+=C:!et&&!d&&(it-=C);let xt=0;for(;p0){if(!n||u!=="Image"&&u!=="Text"||n.includes(w)){let P=(p[I]-3)/4,F=i-P%l,T=i-(P/l|0),D=r(w,R,F*F+T*T);if(D)return D}c.clearRect(0,0,l,l);break}}let v=Object.keys(this.executorsByZIndex_).map(Number);v.sort($e);let x,f,A,L,S;for(x=v.length-1;x>=0;--x){let w=v[x].toString();for(A=this.executorsByZIndex_[w],f=ul.length-1;f>=0;--f)if(u=ul[f],L=A[u],L!==void 0&&(S=L.executeHitDetection(c,a,e,b,m),S))return S}}getClipCoords(t){let s=this.maxExtent_;if(!s)return null;let e=s[0],i=s[1],r=s[2],n=s[3],l=[e,i,e,n,r,n,r,i];return ze(l,0,8,2,t,l),l}isEmpty(){return bi(this.executorsByZIndex_)}execute(t,s,e,i,r,n,l){let a=Object.keys(this.executorsByZIndex_).map(Number);a.sort($e),this.maxExtent_&&(t.save(),this.clip(t,e)),n=n||ul;let h,c,m,p,u,b;for(l&&a.reverse(),h=0,c=a.length;hs)break;let a=e[l];a||(a=[],e[l]=a),a.push(((o+r)*t+(o+n))*4+3),r>0&&a.push(((o-r)*t+(o+n))*4+3),n>0&&(a.push(((o+r)*t+(o-n))*4+3),r>0&&a.push(((o-r)*t+(o-n))*4+3))}let i=[];for(let r=0,n=e.length;rm*this.pixelRatio_),lineDashOffset:(n||Ce)*this.pixelRatio_,lineJoin:l!==void 0?l:ri,lineWidth:(a!==void 0?a:Ti)*this.pixelRatio_,miterLimit:h!==void 0?h:Si,strokeStyle:_e(e||Mi)}}}setImageStyle(t){let s;if(!t||!(s=t.getSize())){this.image_=null;return}let e=t.getPixelRatio(this.pixelRatio_),i=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=i[0]*e,this.imageAnchorY_=i[1]*e,this.imageHeight_=s[1]*e,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();let n=t.getScaleArray();this.imageScale_=[n[0]*this.pixelRatio_/e,n[1]*this.pixelRatio_/e],this.imageWidth_=s[0]*e}setTextStyle(t){if(!t)this.text_="";else{let s=t.getFill();if(!s)this.textFillState_=null;else{let u=s.getColor();this.textFillState_={fillStyle:_e(u||Kt)}}let e=t.getStroke();if(!e)this.textStrokeState_=null;else{let u=e.getColor(),b=e.getLineCap(),v=e.getLineDash(),x=e.getLineDashOffset(),f=e.getLineJoin(),A=e.getWidth(),L=e.getMiterLimit();this.textStrokeState_={lineCap:b!==void 0?b:as,lineDash:v||ve,lineDashOffset:x||Ce,lineJoin:f!==void 0?f:ri,lineWidth:A!==void 0?A:Ti,miterLimit:L!==void 0?L:Si,strokeStyle:_e(u||Mi)}}let i=t.getFont(),r=t.getOffsetX(),n=t.getOffsetY(),l=t.getRotateWithView(),a=t.getRotation(),h=t.getScaleArray(),c=t.getText(),m=t.getTextAlign(),p=t.getTextBaseline();this.textState_={font:i!==void 0?i:un,textAlign:m!==void 0?m:Yi,textBaseline:p!==void 0?p:ls},this.text_=c!==void 0?Array.isArray(c)?c.reduce((u,b,v)=>u+=v%2?" ":b,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=n!==void 0?this.pixelRatio_*n:0,this.textRotateWithView_=l!==void 0?l:!1,this.textRotation_=a!==void 0?a:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}},Wd=ml;var Ke=.5;function Yd(o,t,s,e,i,r,n){let l=o[0]*Ke,a=o[1]*Ke,h=jt(l,a);h.imageSmoothingEnabled=!1;let c=h.canvas,m=new Wd(h,Ke,i,null,n),p=s.length,u=Math.floor((256*256*256-1)/p),b={};for(let x=1;x<=p;++x){let f=s[x-1],A=f.getStyleFunction()||e;if(!A)continue;let L=A(f,r);if(!L)continue;Array.isArray(L)||(L=[L]);let w=(x*u).toString(16).padStart(7,"#00000");for(let R=0,O=L.length;R{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let e=[this.context.canvas.width,this.context.canvas.height];Xt(this.pixelTransform,e);let i=this.renderedCenter_,r=this.renderedResolution_,n=this.renderedRotation_,l=this.renderedProjection_,a=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],m=e[0]*Ke,p=e[1]*Ke;c.push(this.getRenderTransform(i,r,n,Ke,m,p,0).slice());let u=h.getSource(),b=l.getExtent();if(u.getWrapX()&&l.canWrapX()&&!vi(b,a)){let v=a[0],x=Pt(b),f=0,A;for(;vb[2];)++f,A=x*f,c.push(this.getRenderTransform(i,r,n,Ke,m,p,A).slice()),v-=x}this.hitDetectionImageData_=Yd(e,c,this.renderedFeatures_,h.getStyleFunction(),a,r,n)}s(Vd(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,s,e,i,r){if(!this.replayGroup_)return;let n=s.viewState.resolution,l=s.viewState.rotation,a=this.getLayer(),h={},c=function(u,b,v){let x=_t(u),f=h[x];if(f){if(f!==!0&&vm=u.forEachFeatureAtCoordinate(t,n,l,e,c,u===this.declutterExecutorGroup&&s.declutterTree?s.declutterTree.all().map(b=>b.value):null)),m}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let s=this.getLayer(),e=s.getSource();if(!e)return!1;let i=t.viewHints[Zt.ANIMATING],r=t.viewHints[Zt.INTERACTING],n=s.getUpdateWhileAnimating(),l=s.getUpdateWhileInteracting();if(this.ready&&!n&&i||!l&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let a=t.extent,h=t.viewState,c=h.projection,m=h.resolution,p=t.pixelRatio,u=s.getRevision(),b=s.getRenderBuffer(),v=s.getRenderOrder();v===void 0&&(v=Hd);let x=h.center.slice(),f=Es(a,b*m),A=f.slice(),L=[f.slice()],S=c.getExtent();if(e.getWrapX()&&c.canWrapX()&&!vi(S,t.extent)){let g=Pt(S),y=Math.max(Pt(f)/2,g);f[0]=S[0]-y,f[2]=S[2]+y,en(x,c);let M=co(L[0],c);M[0]S[0]&&M[2]>S[2]&&L.push([M[0]-g,M[1],M[2]-g,M[3]])}if(this.ready&&this.renderedResolution_==m&&this.renderedRevision_==u&&this.renderedRenderOrder_==v&&vi(this.wrappedRenderedExtent_,f))return he(this.renderedExtent_,A)||(this.hitDetectionImageData_=null,this.renderedExtent_=A),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let w=new ol(En(m,p),f,m,p),R;this.getLayer().getDeclutter()&&(R=new ol(En(m,p),f,m,p));let O=nn(),I;if(O){for(let g=0,y=L.length;g{let y,M=g.getStyleFunction()||s.getStyleFunction();if(M&&(y=M(g,m)),y){let k=this.renderFeature(g,_,y,w,I,R);P=P&&!k}},T=Os(f,c),D=e.getFeaturesInExtent(T);v&&D.sort(v);for(let g=0,y=D.length;g=200&&l.status<300){let h=t.getType(),c;h=="json"||h=="text"?c=l.responseText:h=="xml"?(c=l.responseXML,c||(c=new DOMParser().parseFromString(l.responseText,"application/xml"))):h=="arraybuffer"&&(c=l.response),c?r(t.readFeatures(c,{extent:s,featureProjection:i}),t.readProjection(c)):n()}else n()},l.onerror=n,l.send()}function wl(o,t){return function(s,e,i,r,n){let l=this;rf(o,t,s,e,i,function(a,h){l.addFeatures(a),r!==void 0&&r(a)},n||Ge)}}var pi=class extends Jt{constructor(t,s,e){super(t),this.feature=s,this.features=e}},Sl=class extends Tn{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=Ge,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(gt(this.format_,7),this.loader_=wl(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:Qd;let s=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=s?new Cl:null,this.loadedExtentsRtree_=new Cl,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let e,i;Array.isArray(t.features)?i=t.features:t.features&&(e=t.features,i=e.getArray()),!s&&e===void 0&&(e=new se(i)),i!==void 0&&this.addFeaturesInternal(i),e!==void 0&&this.bindFeaturesCollection_(e)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){let s=_t(t);if(!this.addToIndex_(s,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(s,t);let e=t.getGeometry();if(e){let i=e.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(i,t)}else this.nullGeometryFeatures_[s]=t;this.dispatchEvent(new pi(Ne.ADDFEATURE,t))}setupChangeEvents_(t,s){this.featureChangeKeys_[t]=[Mt(s,ut.CHANGE,this.handleFeatureChange_,this),Mt(s,Be.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,s){let e=!0,i=s.getId();return i!==void 0&&(i.toString()in this.idIndex_?e=!1:this.idIndex_[i.toString()]=s),e&&(gt(!(t in this.uidIndex_),30),this.uidIndex_[t]=s),e}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){let s=[],e=[],i=[];for(let r=0,n=t.length;r{s||(s=!0,this.addFeature(e.element),s=!1)}),t.addEventListener(Qt.REMOVE,e=>{s||(s=!0,this.removeFeature(e.element),s=!1)}),this.featuresCollection_=t}clear(t){if(t){for(let e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(At);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){let e=i=>{this.removeFeatureInternal(i)};this.featuresRtree_.forEach(e);for(let i in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};let s=new pi(Ne.CLEAR);this.dispatchEvent(s),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,s){let e=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(e,function(i){if(i.getGeometry().intersectsCoordinate(t))return s(i)})}forEachFeatureInExtent(t,s){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,s);this.featuresCollection_&&this.featuresCollection_.forEach(s)}forEachFeatureIntersectingExtent(t,s){return this.forEachFeatureInExtent(t,function(e){if(e.getGeometry().intersectsExtent(t)){let r=s(e);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),bi(this.nullGeometryFeatures_)||mi(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){let s=[];return this.forEachFeatureAtCoordinateDirect(t,function(e){s.push(e)}),s}getFeaturesInExtent(t,s){if(this.featuresRtree_){if(!(s&&s.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);let i=Xh(t,s);return[].concat(...i.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,s){let e=t[0],i=t[1],r=null,n=[NaN,NaN],l=1/0,a=[-1/0,-1/0,1/0,1/0];return s=s||xi,this.featuresRtree_.forEachInExtent(a,function(h){if(s(h)){let c=h.getGeometry(),m=l;if(l=c.closestPointXY(e,i,n,l),l{--this.loadingExtentsCount_,this.dispatchEvent(new pi(Ne.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new pi(Ne.FEATURESLOADERROR))}),i.insert(a,{extent:a.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){let s=this.loadedExtentsRtree_,e;s.forEachInExtent(t,function(i){if(Ci(i.extent,t))return e=i,!0}),e&&s.remove(e)}removeFeature(t){if(!t)return;let s=_t(t);s in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[s]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){let s=_t(t),e=this.featureChangeKeys_[s];if(!e)return;e.forEach(At),delete this.featureChangeKeys_[s];let i=t.getId();return i!==void 0&&delete this.idIndex_[i.toString()],delete this.uidIndex_[s],this.dispatchEvent(new pi(Ne.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let s=!1;for(let e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e],s=!0;break}return s}setLoader(t){this.loader_=t}setUrl(t){gt(this.format_,7),this.url_=t,this.setLoader(wl(t,this.format_))}},Ar=Sl;var Ml=class o extends ti{constructor(t,s){super(),s&&!Array.isArray(t[0])?this.setFlatCoordinates(s,t):this.setCoordinates(t,s)}appendPoint(t){this.flatCoordinates?mi(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()}clone(){let t=new o(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,s,e,i){if(it)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){Et()}getAlpha(t,s){if(!this.transition_)return 1;let e=this.transitionStarts_[t];if(!e)e=s,this.transitionStarts_[t]=e;else if(e===-1)return 1;let i=s-e+1e3/60;return i>=this.transition_?1:Ao(i/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}},An=Al;var Pl=class extends An{constructor(t,s,e,i,r,n){super(t,s,n),this.crossOrigin_=i,this.src_=e,this.key=e,this.image_=new Image,i!==null&&(this.image_.crossOrigin=i),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=pt.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=pt.ERROR,this.unlistenImage_(),this.image_=nf(),this.changed()}handleImageLoad_(){let t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=pt.LOADED:this.state=pt.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==pt.ERROR&&(this.state=pt.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==pt.IDLE&&(this.state=pt.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=wn(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};function nf(){let o=jt(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var Pn=Pl;var of=10,iu=.25,Dl=class{constructor(t,s,e,i,r,n){this.sourceProj_=t,this.targetProj_=s;let l={},a=rs(this.targetProj_,this.sourceProj_);this.transformInv_=function(A){let L=A[0]+"/"+A[1];return l[L]||(l[L]=a(A)),l[L]},this.maxSourceExtent_=i,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!i&&!!this.sourceProj_.getExtent()&&Pt(i)>=Pt(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?Pt(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?Pt(this.targetProj_.getExtent()):null;let h=ke(e),c=Ps(e),m=As(e),p=Ts(e),u=this.transformInv_(h),b=this.transformInv_(c),v=this.transformInv_(m),x=this.transformInv_(p),f=of+(n?Math.max(0,Math.ceil(Math.log2(tr(e)/(n*n*256*256)))):0);if(this.addQuad_(h,c,m,p,u,b,v,x,f),this.wrapsXInSource_){let A=1/0;this.triangles_.forEach(function(L,S,w){A=Math.min(A,L.source[0][0],L.source[1][0],L.source[2][0])}),this.triangles_.forEach(L=>{if(Math.max(L.source[0][0],L.source[1][0],L.source[2][0])-A>this.sourceWorldWidth_/2){let S=[[L.source[0][0],L.source[0][1]],[L.source[1][0],L.source[1][1]],[L.source[2][0],L.source[2][1]]];S[0][0]-A>this.sourceWorldWidth_/2&&(S[0][0]-=this.sourceWorldWidth_),S[1][0]-A>this.sourceWorldWidth_/2&&(S[1][0]-=this.sourceWorldWidth_),S[2][0]-A>this.sourceWorldWidth_/2&&(S[2][0]-=this.sourceWorldWidth_);let w=Math.min(S[0][0],S[1][0],S[2][0]);Math.max(S[0][0],S[1][0],S[2][0])-w.5&&m<1,b=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let x=lo([t,s,e,i]);b=Pt(x)/this.targetWorldWidth_>iu||b}!u&&this.sourceProj_.isGlobal()&&m&&(b=m>iu||b)}if(!b&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Wt(c,this.maxSourceExtent_))return;let v=0;if(!b&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(n[0])||!isFinite(n[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(a[0])||!isFinite(a[1]))){if(h>0)b=!0;else if(v=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(n[0])||!isFinite(n[1])?4:0)+(!isFinite(l[0])||!isFinite(l[1])?2:0)+(!isFinite(a[0])||!isFinite(a[1])?1:0),v!=1&&v!=2&&v!=4&&v!=8)return}if(h>0){if(!b){let x=[(t[0]+e[0])/2,(t[1]+e[1])/2],f=this.transformInv_(x),A;u?A=(_i(r[0],p)+_i(l[0],p))/2-_i(f[0],p):A=(r[0]+l[0])/2-f[0];let L=(r[1]+l[1])/2-f[1];b=A*A+L*L>this.errorThresholdSquared_}if(b){if(Math.abs(t[0]-e[0])<=Math.abs(t[1]-e[1])){let x=[(s[0]+e[0])/2,(s[1]+e[1])/2],f=this.transformInv_(x),A=[(i[0]+t[0])/2,(i[1]+t[1])/2],L=this.transformInv_(A);this.addQuad_(t,s,x,A,r,n,f,L,h-1),this.addQuad_(A,x,e,i,L,f,l,a,h-1)}else{let x=[(t[0]+s[0])/2,(t[1]+s[1])/2],f=this.transformInv_(x),A=[(e[0]+i[0])/2,(e[1]+i[1])/2],L=this.transformInv_(A);this.addQuad_(t,x,A,i,r,f,L,a,h-1),this.addQuad_(x,s,e,A,f,n,l,L,h-1)}return}}if(u){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}v&11||this.addTriangle_(t,e,i,r,l,a),v&14||this.addTriangle_(t,e,s,r,l,n),v&&(v&13||this.addTriangle_(s,i,t,n,a,r),v&7||this.addTriangle_(s,i,e,n,a,l))}calculateSourceExtent(){let t=Vt();return this.triangles_.forEach(function(s,e,i){let r=s.source;es(t,r[0]),es(t,r[1]),es(t,r[2])}),t}getTriangles(){return this.triangles_}},su=Dl;var Ll,cs=[];function ru(o,t,s,e,i){o.beginPath(),o.moveTo(0,0),o.lineTo(t,s),o.lineTo(e,i),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(t,e)+1,Math.max(s,i)),o.restore()}function Il(o,t){return Math.abs(o[t*4]-210)>2||Math.abs(o[t*4+3]-.75*255)>2}function af(){if(Ll===void 0){let o=jt(6,6,cs);o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",ru(o,4,5,4,0),ru(o,4,5,0,5);let t=o.getImageData(0,0,3,3).data;Ll=Il(t,0)||Il(t,4)||Il(t,8),os(o),cs.push(o.canvas)}return Ll}function nu(o,t,s,e){let i=ji(s,t,o),r=_o(t,e,s),n=t.getMetersPerUnit();n!==void 0&&(r*=n);let l=o.getMetersPerUnit();l!==void 0&&(r/=l);let a=o.getExtent();if(!a||ki(a,i)){let h=_o(o,r,i)/r;isFinite(h)&&h>0&&(r/=h)}return r}function ou(o,t,s,e){let i=Qe(s),r=nu(o,t,i,e);return(!isFinite(r)||r<=0)&&Zr(s,function(n){return r=nu(o,t,n,e),isFinite(r)&&r>0}),r}function au(o,t,s,e,i,r,n,l,a,h,c,m){let p=jt(Math.round(s*o),Math.round(s*t),cs);if(m||(p.imageSmoothingEnabled=!1),a.length===0)return p.canvas;p.scale(s,s);function u(S){return Math.round(S*s)/s}p.globalCompositeOperation="lighter";let b=Vt();a.forEach(function(S,w,R){zh(b,S.extent)});let v=Pt(b),x=de(b),f=jt(Math.round(s*v/e),Math.round(s*x/e),cs);m||(f.imageSmoothingEnabled=!1);let A=s/e;a.forEach(function(S,w,R){let O=S.extent[0]-b[0],I=-(S.extent[3]-b[3]),_=Pt(S.extent),P=de(S.extent);S.image.width>0&&S.image.height>0&&f.drawImage(S.image,h,h,S.image.width-2*h,S.image.height-2*h,O*A,I*A,_*A,P*A)});let L=ke(n);return l.getTriangles().forEach(function(S,w,R){let O=S.source,I=S.target,_=O[0][0],P=O[0][1],F=O[1][0],T=O[1][1],D=O[2][0],C=O[2][1],d=u((I[0][0]-L[0])/r),g=u(-(I[0][1]-L[1])/r),y=u((I[1][0]-L[0])/r),M=u(-(I[1][1]-L[1])/r),k=u((I[2][0]-L[0])/r),E=u(-(I[2][1]-L[1])/r),z=_,N=P;_=0,P=0,F-=z,T-=N,D-=z,C-=N;let G=[[F,T,0,0,y-d],[D,C,0,0,k-d],[0,0,F,T,M-g],[0,0,D,C,E-g]],X=Yh(G);if(X){if(p.save(),p.beginPath(),af()||!m){p.moveTo(y,M);let j=4,B=d-y,W=g-M;for(let Y=0;Y{s&&s.getState()==pt.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(s.tileCoord),image:s.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=pt.ERROR;else{let s=this.wrappedTileCoord_[0],e=this.targetTileGrid_.getTileSize(s),i=typeof e=="number"?e:e[0],r=typeof e=="number"?e:e[1],n=this.targetTileGrid_.getResolution(s),l=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=au(i,r,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),n,a,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=pt.LOADED}this.changed()}load(){if(this.state==pt.IDLE){this.state=pt.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(s=>{let e=s.getState();if(e==pt.IDLE||e==pt.LOADING){t++;let i=Mt(s,ut.CHANGE,function(r){let n=s.getState();(n==pt.LOADED||n==pt.ERROR||n==pt.EMPTY)&&(At(i),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(i)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(s,e,i){s.getState()==pt.IDLE&&s.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(At),this.sourcesListenerKeys_=null}release(){this.canvas_&&(os(this.canvas_.getContext("2d")),cs.push(this.canvas_),this.canvas_=null),super.release()}},Pr=Rl;var Dn=class{constructor(t,s,e,i){this.minX=t,this.maxX=s,this.minY=e,this.maxY=i}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,s){return this.minX<=t&&t<=this.maxX&&this.minY<=s&&s<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}};function ds(o,t,s,e,i){return i!==void 0?(i.minX=o,i.maxX=t,i.minY=s,i.maxY=e,i):new Dn(o,t,s,e)}var Ln=Dn;var kl=class extends Mn{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Vt(),this.tmpTileRange_=new Ln(0,0,0,0)}isDrawableTile(t){let s=this.getLayer(),e=t.getState(),i=s.getUseInterimTilesOnError();return e==pt.LOADED||e==pt.EMPTY||e==pt.ERROR&&!i}getTile(t,s,e,i){let r=i.pixelRatio,n=i.viewState.projection,l=this.getLayer(),h=l.getSource().getTile(t,s,e,r,n);return h.getState()==pt.ERROR&&l.getUseInterimTilesOnError()&&l.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(h)||(h=h.getInterimTile()),h}getData(t){let s=this.frameState;if(!s)return null;let e=this.getLayer(),i=Xt(s.pixelToCoordinateTransform,t.slice()),r=e.getExtent();if(r&&!ki(r,i))return null;let n=s.pixelRatio,l=s.viewState.projection,a=s.viewState,h=e.getRenderSource(),c=h.getTileGridForProjection(a.projection),m=h.getTilePixelRatio(s.pixelRatio);for(let p=c.getZForResolution(a.resolution);p>=c.getMinZoom();--p){let u=c.getTileCoordForCoordAndZ(i,p),b=h.getTile(p,u[1],u[2],n,l);if(!(b instanceof Pn||b instanceof Pr)||b instanceof Pr&&b.getState()===pt.EMPTY)return null;if(b.getState()!==pt.LOADED)continue;let v=c.getOrigin(p),x=te(c.getTileSize(p)),f=c.getResolution(p),A=Math.floor(m*((i[0]-v[0])/f-u[1]*x[0])),L=Math.floor(m*((v[1]-i[1])/f-u[2]*x[1])),S=Math.round(m*h.getGutterForProjection(a.projection));return this.getImageData(b.getImage(),A+S,L+S)}return null}loadedTileCallback(t,s,e){return this.isDrawableTile(e)?super.loadedTileCallback(t,s,e):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,s){let e=t.layerStatesArray[t.layerIndex],i=t.viewState,r=i.projection,n=i.resolution,l=i.center,a=i.rotation,h=t.pixelRatio,c=this.getLayer(),m=c.getSource(),p=m.getRevision(),u=m.getTileGridForProjection(r),b=u.getZForResolution(n,m.zDirection),v=u.getResolution(b),x=t.extent,f=t.viewState.resolution,A=m.getTilePixelRatio(h),L=Math.round(Pt(x)/f*h),S=Math.round(de(x)/f*h),w=e.extent&&Ue(e.extent,r);w&&(x=Oi(x,Ue(e.extent,r)));let R=v*L/2/A,O=v*S/2/A,I=[l[0]-R,l[1]-O,l[0]+R,l[1]+O],_=u.getTileRangeForExtentAndZ(x,b),P={};P[b]={};let F=this.createLoadedTileFinder(m,r,P),T=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;let C=a?Kr(i.center,f,a,t.size):void 0;for(let G=_.minX;G<=_.maxX;++G)for(let X=_.minY;X<=_.maxY;++X){if(a&&!u.tileCoordIntersectsViewport([b,G,X],C))continue;let j=this.getTile(b,G,X,t);if(this.isDrawableTile(j)){let Y=_t(this);if(j.getState()==pt.LOADED){P[b][j.tileCoord.toString()]=j;let U=j.inTransition(Y);U&&e.opacity!==1&&(j.endTransition(Y),U=!1),!this.newTiles_&&(U||!this.renderedTiles.includes(j))&&(this.newTiles_=!0)}if(j.getAlpha(Y,t.time)===1)continue}let B=u.getTileCoordChildTileRange(j.tileCoord,D,T),W=!1;B&&(W=F(b+1,B)),W||u.forEachTileCoordParentTileRange(j.tileCoord,F,D,T)}let d=v/n*h/A;fe(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,a,-L/2,-S/2);let g=Yr(this.pixelTransform);this.useContainer(s,g,this.getBackground(t));let y=this.context,M=y.canvas;Ms(this.inversePixelTransform,this.pixelTransform),fe(this.tempTransform,L/2,S/2,d,d,0,-L/2,-S/2),M.width!=L||M.height!=S?(M.width=L,M.height=S):this.containerReused||y.clearRect(0,0,L,S),w&&this.clipUnrotated(y,t,w),m.getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,t),this.renderedTiles.length=0;let k=Object.keys(P).map(Number);k.sort($e);let E,z,N;e.opacity===1&&(!this.containerReused||m.getOpaque(t.viewState.projection))?k=k.reverse():(E=[],z=[]);for(let G=k.length-1;G>=0;--G){let X=k[G],j=m.getTilePixelSize(X,h,r),W=u.getResolution(X)/v,Y=j[0]*W*d,U=j[1]*W*d,q=u.getTileCoordForCoordAndZ(ke(I),X),H=u.getTileCoordExtent(q),V=Xt(this.tempTransform,[A*(H[0]-I[0])/v,A*(I[3]-H[3])/v]),Z=A*m.getGutterForProjection(r),K=P[X];for(let J in K){let tt=K[J],$=tt.tileCoord,Q=q[1]-$[1],et=Math.round(V[0]-(Q-1)*Y),it=q[2]-$[2],st=Math.round(V[1]-(it-1)*U),rt=Math.round(V[0]-Q*Y),nt=Math.round(V[1]-it*U),ot=et-rt,at=st-nt,ct=b===X,ht=ct&&tt.getAlpha(_t(this),t.time)!==1,lt=!1;if(!ht)if(E){N=[rt,nt,rt+ot,nt,rt+ot,nt+at,rt,nt+at];for(let xt=0,wt=E.length;xt0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let s=this.oldest_;for(;s;)t(s.value_,s.key_,this),s=s.newer}get(t,s){let e=this.entries_[t];return gt(e!==void 0,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_}remove(t){let s=this.entries_[t];return gt(s!==void 0,15),s===this.newest_?(this.newest_=s.older,this.newest_&&(this.newest_.newer=null)):s===this.oldest_?(this.oldest_=s.newer,this.oldest_&&(this.oldest_.older=null)):(s.newer.older=s.older,s.older.newer=s.newer),delete this.entries_[t],--this.count_,s.value_}getCount(){return this.count_}getKeys(){let t=new Array(this.count_),s=0,e;for(e=this.newest_;e;e=e.older)t[s++]=e.key_;return t}getValues(){let t=new Array(this.count_),s=0,e;for(e=this.newest_;e;e=e.older)t[s++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){let t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,s){this.get(t),this.entries_[t].value_=s}set(t,s){gt(!(t in this.entries_),16);let e={key_:t,newer:null,older:this.newest_,value_:s};this.newest_?this.newest_.newer=e:this.oldest_=e,this.newest_=e,this.entries_[t]=e,++this.count_}setSize(t){this.highWaterMark=t}},hu=Ol;function Fl(o,t,s,e){return e!==void 0?(e[0]=o,e[1]=t,e[2]=s,e):[o,t,s]}function us(o,t,s){return o+"/"+t+"/"+s}function In(o){return us(o[0],o[1],o[2])}function cu(o){return o.split("/").map(Number)}function du(o){return(o[1]<s||s>t.getMaxZoom())return!1;let r=t.getFullTileRange(s);return r?r.containsXY(e,i):!0}var zl=class extends hu{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;let t=this.peekFirstKey(),e=cu(t)[0];this.forEach(i=>{i.tileCoord[0]!==e&&(this.remove(In(i.tileCoord)),i.release())})}},Rn=zl;var Vs=[0,0,0],Ki=5,Nl=class{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,gt(Th(this.resolutions_,function(i,r){return r-i},!0),17);let s;if(!t.origins){for(let i=0,r=this.resolutions_.length-1;i=this.minZoom;){if(this.zoomFactor_===2?(n=Math.floor(n/2),l=Math.floor(l/2),r=ds(n,n,l,l,e)):r=this.getTileRangeForExtentAndZ(a,h,e),s(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,s,e){if(t[0]this.maxZoom||s0?e:Math.max(r/s[0],i/s[1]);let n=t+1,l=new Array(n);for(let a=0;ae.highWaterMark&&(e.highWaterMark=t)}useTile(t,s,e,i){}},zn=class extends Jt{constructor(t,s){super(t),this.tile=s}},mu=Bl;function cf(o,t){let s=/\{z\}/g,e=/\{x\}/g,i=/\{y\}/g,r=/\{-y\}/g;return function(n,l,a){if(n)return o.replace(s,n[0].toString()).replace(e,n[1].toString()).replace(i,n[2].toString()).replace(r,function(){let h=n[0],c=t.getFullTileRange(h);return gt(c,55),(c.getHeight()-n[2]-1).toString()})}}function xu(o,t){let s=o.length,e=new Array(s);for(let i=0;ithis.getTileInternal(x,f,A,L,n),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=m,h?(v.interimTile=h,v.refreshInterimChain(),l.replace(c,v)):l.set(c,v),v}getTileInternal(t,s,e,i,r){let n=null,l=us(t,s,e),a=this.getKey();if(!this.tileCache.containsKey(l))n=this.createTile_(t,s,e,i,r,a),this.tileCache.set(l,n);else if(n=this.tileCache.get(l),n.key!=a){let h=n;n=this.createTile_(t,s,e,i,r,a),h.getState()==pt.IDLE?n.interimTile=h.interimTile:n.interimTile=h,n.refreshInterimChain(),this.tileCache.replace(l,n)}return n}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(let s in this.tileCacheForProjection)this.tileCacheForProjection[s].clear();this.changed()}}setTileGridForProjection(t,s){let e=ue(t);if(e){let i=_t(e);i in this.tileGridForProjection||(this.tileGridForProjection[i]=s)}}clear(){super.clear();for(let t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};function uf(o,t){o.getImage().src=t}var Cu=Vl;var Ul=class extends Cu{constructor(t){t=t||{};let s=t.projection!==void 0?t.projection:"EPSG:3857",e=t.tileGrid!==void 0?t.tileGrid:fu({extent:Fn(s),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:s,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:e,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}},_u=Ul;var pf='© OpenStreetMap contributors.',Hl=class extends _u{constructor(t){t=t||{};let s;t.attributions!==void 0?s=t.attributions:s=[pf];let e=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",i=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:s,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:e,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:i,wrapX:t.wrapX,zDirection:t.zDirection})}},Zl=Hl;var ff=["popup"],gf=["tooltip"],Nn=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.tooltipData={visible:!1,content:"",name:"",items:[]},this.preventColFilteringBasedOnDataProperties=!0,this.CLUSTER_RANGE=1,this.isRGBColor=!1,this._selectedFeature=null,this.featureOverlay=null,this.mapData=null,this.hintTimeout=null,this.popupElement=null,this.polyData=null,this.isGeoJSON=!1}ngOnInit(){super.ngOnInit(),this.popupElement=this.popupEl.nativeElement,this.tooltipData.name="",this.tooltipData.items=[],this.widget.isMap=!0,this.requestPolygons(),this.us.isEmbedded()&&(this.onMessage=e=>{let i=e.data;switch(i.type){case"map.applyStyle":this.applyStyle(i);break}},window.addEventListener("message",this.onMessage))}applyStyle(e){let{selector:i,style:r,value:n}=e,l=this.map?.getTargetElement();(l&&l.querySelectorAll(i))?.forEach(h=>{h.style[r]=n})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){this.us.isEmbedded()&&window.removeEventListener("message",this.onMessage),this.tooltip?.nativeElement?.remove(),super.ngOnDestroy()}createMap(){let e=this.ss.getAppSettings(),i;i=this.getDataPropValue("tileUrl");let r=new Zl({wrapX:!0,url:i}),n=new wd({layers:[new Yl({source:r})],controls:xr({attributionOptions:{collapsible:!1}}),target:this.el.nativeElement,view:new De({center:[0,0],zoom:2})});n.getViewport().addEventListener("mouseout",l=>{this.hideTooltip()},!1),this.map=n,this.initialize()}hideTooltip(){this.hintTimeout&&clearTimeout(this.hintTimeout),this.tooltip&&(this.tooltip.nativeElement.style.display="none")}rejectTooltipCreation(){clearTimeout(this.hintTimeout)}showTooltip(e,i,r){this.hintTimeout&&clearTimeout(this.hintTimeout),this.hintTimeout=setTimeout(()=>{let n=this.tooltip?.nativeElement,l=this.getDataPropValue("tooltipStyles");if(l){let a=JSON.parse(l);for(let h in a)n.style.setProperty(h,a[h])}n.innerHTML=e,n.style.left=i.toString()+"px",n.style.top=r.toString()+"px",n.style.display="block"},600)}showPopup(){let e=this.popupElement,i=this.getDataPropValue("popupStyles");if(i){let r=JSON.parse(i);for(let n in r)e.style.setProperty(n,r[n])}this.popupElement&&(this.popupElement.style.visibility="hidden"),setTimeout(()=>{this.popupElement&&(this.popupElement.style.visibility="visible"),this.map?.render()},0)}hidePopup(){this.popupElement&&(this.popupElement.style.visibility="hidden")}doDrillUp(){this.hideTooltip(),this.hidePopup(),this.doDrill()}displayAsPivot(e){this.hideTooltip(),this.rejectTooltipCreation(),this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=e||this.getMDX(),this.changeWidgetType("pivot"))}requestPolygons(){let e=this.widget.name;this.widget.name.indexOf(".")===-1&&(e+=".js"),e=this.getDataPropValue("coordsJsFile")||e;let r=(this.ss.serverSettings.DefaultApp||"/csp")+"/"+e;this.ds.getFile(r).then(n=>this.onPolyFileLoaded(n)).finally(()=>this.hideLoading())}onPolyFileLoaded(e){this.isGeoJSON=!1;try{let n=JSON.parse(e);this.polyData=n,this.isGeoJSON=!0,this.buildPolygons();return}catch{}var i={};e="("+e+")(polys)",window["eval"](e),this.polyData=i,this.buildPolygons()}onPolyJSONFileLoaded(e){this.polyData=e,this.buildPolygons()}getFeatureColor(e,i){let r=this.mapData.Cols[1].tuples.filter(u=>u.caption===e);if(r.length===0)return;r=r[0];let n,l=this.mapData.Cols[1].tuples.indexOf(r),a=this.mapData.Cols[0].tuples.length,h="ColorExplicitValue";h=this.getDataPropValue("colorProperty")||h;let c;isNaN(parseInt(h,10))?c=this.mapData.Cols[0].tuples.filter(u=>u.caption===h):c=this.mapData.Cols[0].tuples.slice(h,1),c=c[0];let m=this.mapData.Cols[0].tuples.indexOf(c),p=this.mapData.Data[l*a+m];if(isNaN(parseFloat(p)))return p.toString().indexOf("rgb")!==-1&&p.toString().indexOf("rgba")===-1&&(p=p.replace("rgb","rgba"),p=p.substr(0,p.length-1)+", 0)"),n=p.split(","),n[3]="0.4)",n.join(",");{let u=this.getDataPropValue("colorFormula")||"hsl((255-x)/255 * 120, 100%, 50%)";this.isRGBColor&&(u="rgb(x, 255-x, 0)");let b=u.indexOf("("),v=u.substring(0,b).toLowerCase();u=u.substring(b+1,u.length-1),n=u.split(",");let x=i||0;for(let f=0;f255&&(L=255),L<0&&(L=0),n[f]=Math.floor(L).toString()}return v.indexOf("a")===-1?v+"a("+n.join(",")+", 0.45)":v+"("+n.join(",")+")"}}centerView(e,i){let r,n,l;if(this.widget.properties&&(r=parseFloat(this.widget.properties.latitude),n=parseFloat(this.widget.properties.longitude),l=parseFloat(this.widget.properties.zoom)),this.drills.length===0&&!isNaN(r)&&!isNaN(n)&&!isNaN(l)&&r!==void 0&&n!==void 0&&l!==void 0)this.map?.getView().setCenter(ji([n,r],"EPSG:4326","EPSG:900913")),this.map?.getView().setZoom(l);else{if(Math.abs(e[0]-i[0])<1e-8&&Math.abs(e[1]-i[1])<1e-8)return;let a=ji([e[0],e[1]],"EPSG:4326","EPSG:900913"),h=ji([i[0],i[1]],"EPSG:4326","EPSG:900913");this.map?.getView().fit([a[0],a[1],h[0],h[1]],this.map?.getSize())}this.getDataPropValue("fixMaxZoom")==="1"&&this.map?.getView().setMaxZoom(this.map?.getView().getZoom()||1),this.getDataPropValue("fixMinZoom")==="1"&&this.map?.getView().setMinZoom(this.map?.getView().getZoom()||1),this.getDataPropValue("maxZoom")&&this.map?.getView().setMaxZoom(parseFloat(this.getDataPropValue("maxZoom")||"1"))}buildPolygons(){let e,i,r,n,l,a,h,c,m,p,u,b;this.isRGBColor=!1;let v=this.getDataPropValue("colorProperty")||"ColorHSLValue",x=this.getDataPropValue("coordsProperty")||"CoordKeyValue";if(!this.polyData||!this.map||!this.mapData)return;let f=[];h=this.mapData.Cols[0].tuples.length;let A=Number.MAX_VALUE,L=Number.MIN_VALUE,S=0;for(isNaN(parseInt(v))?(b=this.mapData.Cols[0].tuples.filter(I=>I.caption===v),S=this.mapData.Cols[0].tuples.indexOf(b[0]),S===-1&&(this.isRGBColor=!0,v="ColorRGBValue",b=this.mapData.Cols[0].tuples.filter(I=>I.caption===v),S=this.mapData.Cols[0].tuples.indexOf(b[0]))):S=parseInt(this.widget.properties.colorProperty,10)||0,c=0;cL&&(L=m);let w=[99999999,99999999],R=[-99999999,-99999999],O=0;for(u=-1,b=this.mapData.Cols[0].tuples.filter(I=>I.caption===x),b.length===0&&(b=this.mapData.Cols[0].tuples.filter(I=>I.caption==="Key")),b.length!==0&&(u=this.mapData.Cols[0].tuples.indexOf(b[0])),c=0;cR[0]&&(R[0]=parseFloat(N)),parseFloat(i)>R[1]&&(R[1]=parseFloat(i)),k.push(z.getCoordinates())}if(y.push(k),y.length>300){let E=[];for(n=0;nM.caption===D);if(y.length!==0){let M=this.mapData.Cols[0].tuples.indexOf(y[0]);M!==-1&&(T=this.mapData.Data[c*h+M])}}let C=Xi;if(this.isGeoJSON){switch(p.type.toLowerCase()){}C=Tl}let d=new Fa({geometry:new C(P),key:I,title:T,dataIdx:c*h,path:this.mapData.Cols[1].tuples[c].path,desc:this.mapData.Cols[1].tuples[c].title}),g;if(isNaN(parseFloat(T))||(T=this.formatNumber(T,"")),F){let y=JSON.parse(F),M=y.size||12,k=y.font||"Calibri,Arial,sans-serif",E=y.color||"#000",z=y.stroke||"#fff",N=y.strokeWidth||2;g=new vr({font:`${M}px ${k}`,fill:new hi({color:E}),stroke:new ci({color:z,width:N}),text:T+""})}m=this.mapData.Data[c*h+S],d.setStyle(new Ze({zIndex:0,fill:new hi({color:this.getFeatureColor(I,(m-A)*255/(L-A))||"none"}),stroke:new ci({color:"rgba(0, 0, 0, 0.3)",width:1}),text:g})),f.push(d)}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(f),setTimeout(()=>{this.centerView(w,R)})}retrieveData(e){if(setTimeout(()=>{this.map?.updateSize()},0),e.Error){this.showError(e.Error);return}e.Info&&(this.dataInfo=e.Info),this.hideTooltip(),this.markers.clear(),this.mapData=e,this.buildPolygons();let i=[Number.MAX_VALUE,Number.MAX_VALUE],r=[-Number.MAX_VALUE,-Number.MAX_VALUE];if(e&&this.map){let n=e.Cols[0].tuples.length,l=0,a=[],h="latitude";this.widget.properties&&this.widget.properties.latitudeProperty&&(h=this.widget.properties.latitudeProperty);let c="longitude";this.widget.properties&&this.widget.properties.longitudeProperty&&(c=this.widget.properties.longitudeProperty);let m=-1,p=-1,u=e.Cols[0].tuples.filter(v=>v.caption.toLowerCase()===h);if(u.length!==0&&(p=e.Cols[0].tuples.indexOf(u[0])),u=e.Cols[0].tuples.filter(v=>v.caption.toLowerCase()===c),u.length!==0&&(m=e.Cols[0].tuples.indexOf(u[0])),p===-1||m===-1)return;let b=e.Cols[1].tuples;b[0]?.children&&(b=b[0]?.children);for(let v=0;vr[1]&&(r[1]=parseFloat(f.toString())),parseFloat(x.toString())>r[0]&&(r[0]=parseFloat(x.toString())),i[0]==r[0]&&(i[0]-=.25,r[0]+=.25),i[1]==r[1]&&(i[1]-=.25,r[1]+=.25),a.push(R),l+=n}a.length!==0&&(this.markers.addFeatures(a),this.centerView(i,r)),this.centerView(i,r)}}initialize(){this.iconStyle=new Ze({zIndex:100,image:new hs({anchor:[.5,40],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-marker-red.png"})});let e=this.map,i=new Ze({zIndex:0,stroke:new ci({color:"rgba(0, 0, 0, 0.5)",width:1})});this.polyStyle=i,this.hoverStyle=new Ze({zIndex:1,stroke:new ci({color:"blue",width:2})}),this.polys=new Ar({features:[]});let r=new Tr({source:this.polys,style:this.polyStyle});r.setZIndex(1),this.map?.addLayer(r),this.markers=new Ar({features:[]});let n=new se;this.featureOverlay=new Tr({map:this.map,source:new Ar({features:n,useSpatialIndex:!1}),style:this.hoverStyle,updateWhileAnimating:!0,updateWhileInteracting:!0}),this.featureOverlay.setZIndex(10),this.featureOverlay.setMap(this.map),this.markers&&(r=new Tr({source:this.markers,style:this.iconStyle}),r.setZIndex(100),this.map?.addLayer(r)),this.map?.on("click",l=>this.onMapClick(l)),this.map?.on("pointermove",l=>this.onPointerMove(l))}onPointerMove(e){if(Ae.mobile&&e.originalEvent.touches&&e.originalEvent.touches.length!==1)return;this.hideTooltip();let i=this.map?.forEachFeatureAtPixel(e.pixel,(n,l)=>n);if(i){let n=i.get("dataIdx"),l,a="TooltipValue",h="",c=this.getDataProp("tooltipProperty");c&&(a=c.dataValue,h=c.format),l=this.getDataByColumnName(this.mapData,a||"Name",n,h),!l&&this.widget.properties?.polygonTitleProperty&&i.get("title")&&(l=i.get("title")),l||(l=this.getDataByColumnName(this.mapData,"Name",n)),l||(l=(this.mapData.Cols[1].tuples[0]?.children||this.mapData.Cols[1].tuples)[Math.floor(n/this.mapData.Cols[0].tuples.length)].caption||""),l&&this.showTooltip(l,e.pixel[0],e.pixel[1])}if(e.dragging){this.hideTooltip();return}let r=this.map?.getEventPixel(e.originalEvent);if(r){let n=this.map?.hasFeatureAtPixel(r);(this.map?.getTarget()).style.cursor=n?"pointer":""}this.featureOverlay?.getSource().clear(),i&&this.featureOverlay?.getSource().addFeature(i)}getTooltipData(e){if(!this.mapData)return;let i=[],r=this.mapData.Cols[1].tuples.filter(c=>c.caption===e);if(r.length===0)return;r=r[0];let n=this.mapData.Cols[1].tuples.indexOf(r),l=this.mapData.Cols[0].tuples.length,a=this.mapData.Cols[0].tuples.filter(c=>c.caption==="tooltip");if(a.length===0)return;a=a[0];let h=this.mapData.Cols[0].tuples.indexOf(a);return i.push({label:"",value:this.mapData?.Data[n*l+h].split(":")[1]||""}),i}onMapClick(e){if(this.hidePopup(),Ae.mobile&&e.originalEvent.touches&&e.originalEvent.touches.length!==1)return;let i=this.map?.forEachFeatureAtPixel(e.pixel,(n,l)=>n);if(i){if(this.hideTooltip(),Ae.mobile&&this._selectedFeature!==i){this._selectedFeature=i,this.onPointerMove(e);return}this.doDrill(i.get("path"),i.get("name")||i.get("title"),void 0,()=>{r(i)})}else this.hideTooltip();let r=n=>{let l=n.get("dataIdx"),a,h,c="PopupValue",m="",p=this.getDataProp("popupProperty");if(p&&(c=p.dataValue,m=p.format),c?(h=""+(n.get("key")||n.values_.title)+"
",h+=c+": ",h+=this.getDataByColumnName(this.mapData,c,l,m)):h=this.mapData?.Cols[1].tuples[Math.floor(l/this.mapData?.Cols[0].tuples.length)].caption||this.mapData?.Cols[1].tuples[Math.floor(l/this.mapData?.Cols[0].tuples.length)].desc||"",!h)if(h=""+(n.get("name")||n.values_.title)+"
",this.mapData?.Cols[0].tuples.length)for(let u=0;u${v}`,u!==this.mapData?.Cols[0].tuples.length-1&&(h+="
")}else h=this.getDataByColumnName(this.mapData,"Name",l);h&&(this.tooltipData.content=h,this.popupElement&&(this.popupElement.style.left=e.pixel[0]+"px",this.popupElement.style.top=e.pixel[1]-10+"px",this.popupElement.innerHTML=h),this.showPopup())}}onResize(){this.map&&this.map.updateSize()}buildGeoJSON(e){}getPartsByKey(e,i="Key"){if(this.isGeoJSON){let r=this.polyData?.features.find(n=>n.properties[i]===e);return r?r.geometry:void 0}else if(this.polyData?.[e])return this.polyData[e]?.split(";")}convertCoordinatesOfGEOJson(e,i,r){let n=JSON.parse(JSON.stringify(e.coordinates));for(let l=0;lr[0]&&(r[0]=parseFloat(u)),parseFloat(m)>r[1]&&(r[1]=parseFloat(m))}return{poly:n,min:i,max:r}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-map-widget"]],viewQuery:function(i,r){if(i&1&&($i(ff,7),$i(gf,7)),i&2){let n;Ji(n=Qi())&&(r.popupEl=n.first),Ji(n=Qi())&&(r.tooltip=n.first)}},standalone:!0,features:[vt,bt],decls:7,vars:0,consts:[["popup",""],["tooltip",""],[1,"panel","panel-default","map-popup",2,"visibility","hidden"],["ng-bind-html","model.tooltip.content | sanitize"],[1,"arrow_box"],[1,"tooltip",2,"display","none"]],template:function(i,r){i&1&&(Lt(0,"div",2,0)(2,"div"),le(3,"div",3),kt(),le(4,"div",4),kt(),le(5,"div",5,1))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative}.tooltip[_ngcontent-%COMP%]{margin-top:24px;z-index:1000;position:absolute;border:solid 1px #000000;color:#000;background-color:#ffffe1;white-space:nowrap;font-family:Tahoma,sans-serif;font-size:13px;-moz-box-shadow:2px 2px 4px #7f7f7f;box-shadow:2px 2px 4px #7f7f7f;padding:2px 3px}.map-popup[_ngcontent-%COMP%]{transform:translateY(-100%) translate(-50%);z-index:1;position:absolute;background-color:var(--cl-widget-filter-bg);margin-bottom:0;border-color:#b0b0b0;padding:4px;-webkit-box-shadow:1px 1px 9px 0px rgba(50,50,50,.5);-moz-box-shadow:1px 1px 9px 0px rgba(50,50,50,.5);box-shadow:1px 1px 9px #32323280;color:var(--cl-widget-header-txt)}.map-popup[_ngcontent-%COMP%]:after{content:" ";display:block;width:0;height:0;border-style:solid;border-width:8px 4px 0 4px;bottom:-8px;left:calc(50% - 4px);position:absolute;border-color:var(--cl-widget-filter-bg) transparent transparent transparent}']});let o=t;return o})();var Le=qt(Jn()),Iu=qt(wu()),Ru=qt(Su()),ku=qt(Mu()),Ou=qt(Eu()),Fu=qt(Tu()),zu=qt(Au()),Nu=qt(Pu()),ju=qt(Du());(0,Ru.default)(Le.default);(0,ju.default)(Le.default);(0,Iu.default)(Le.default);(0,ku.default)(Le.default);(0,Ou.default)(Le.default);(0,Fu.default)(Le.default);(0,zu.default)(Le.default);(0,Nu.default)(Le.default);var Ir=20;var Lr={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}},Bt=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.widgetData=null,this.seriesTypes=[],this.firstRun=!0,this.baseSeriesType="bar",this.sbs=$t(zr),this.wts=$t(Lu),this.zone=$t(lh),this.axisLabelListeners=[],this.seriesVisibility=[]}ngOnInit(){super.ngOnInit(),this.widget.isChart=!0,this.setupHeaderButtons(),this.override?.seriesTypes&&(this.seriesTypes=this.override?.seriesTypes.split(",")),this.subPrint=this.bs.subscribe("print:"+this.widget.name,()=>{if(this.chart){let e=new Blob([this.chart.getSVG()],{type:"image/svg+xml"}),i=window.open(URL.createObjectURL(e),"_blank");i&&(i.onload=()=>{let r=i?.document.querySelector("svg");r?.setAttribute("width","100%"),r?.setAttribute("height","100%"),r&&(r.style.height="auto"),i?.print()},i.onafterprint=()=>{i?.close()})}}),this.setupChart(),this.widget.inline&&this.setupInline(),this.subColorsConfig=this.bs.subscribe("charts:update-colors",e=>this.updateColors(e))}ngAfterViewInit(){this.createChart(),setTimeout(()=>{this.chart?.reflow()})}createChart(){this.chartConfig.chart&&(this.chartConfig.chart.renderTo=this.el.nativeElement),this.chartConfig?.chart?.type==="map"?this.chart=Le.default.mapChart(this.chartConfig):this.widget.type.toLowerCase()==="timechart"?this.chart=Le.default.stockChart(this.chartConfig):this.chart=Le.default.chart(this.chartConfig)}clearSeries(e){let i=e||this.chart;if(i)for(;i.series.length>0;)i.series[0].remove(!1)}onHeaderButton(e){switch(super.onHeaderButton(e),e.name){case"isLegend":this.toggleLegend(e.state);break;case"showValues":{(this.chartConfig?.plotOptions?.series?.dataLabels).enabled=e.state,this.chartConfig.plotOptions?.pie?.dataLabels&&(this.chartConfig.plotOptions.pie.dataLabels.enabled=e.state),this.updateChart(),this.chart?.legend.update({enabled:this.widget.isLegend},!0);break}case"showZero":this.showZeroOnAxis();break;case"isTop":this.limitSeriesAndData();break;case"chartConfig":this.showChartConfig();break}}updateChart(e=!1,i=!1){this.chart&&this.chart.update(this.chartConfig,e,!1,i)}hasOption(e){let i=this.ss.getWidgetsSettings(this.widget.dashboard);return!(!i[this.widget.name]||i[this.widget.name][e]===void 0||i[this.widget.name][e]===!1)}setYAxisMinToZero(){if(this.chartConfig.yAxis instanceof Array)for(let e=0;e{if(!n||!n.Info)return"";let l="";for(let a=0;ai.visible)??[],this.clearSeries(),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){let i=this.getMinValue(e.Data);if(i>0&&i<=10&&(this.chartConfig.yAxis.min=-10),!e.Cols)return;if(e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e),this.widget.showZero&&this.setYAxisMinToZero(),this.firstRun){let r=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){let n=this.route.snapshot.queryParamMap.get("hiddenSeries"),l=[];n&&(l=n.split(",")),l.forEach(a=>{this.chartConfig?.series?.[a]&&(this.chartConfig.series[a].visible=!1)})}else if(r[this.widget.name]&&r[this.widget.name].series)for(let n=0;n<(this.chartConfig?.series?.length||0);n++)r[this.widget.name].series[n]===!1&&this.chartConfig.series&&(this.chartConfig.series[n].visible=!1);this.firstRun=!1,this.onResize()}}(this.chart?.series?.length??0)<2&&!this.hasOption("isLegend")&&(this.widget.isLegend=!1,this.parent?.header?.cd?.detectChanges(),this.chart?.legend.update({enabled:!1}))}buildAxisTitles(e){if(this.chartConfig?.chart?.type!=="column")return;let i=!1,r=!1,n=this.getMDX(),l=n.indexOf("ON"),a=-1;l!==-1&&(a=n.indexOf("FROM",l),a!==-1&&(r=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1)),a!==-1&&(l=a,a=n.indexOf("FROM",l),i=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1),this.chartConfig.yAxis&&e.Cols[0]&&e.Cols[0].tuples&&e.Cols[0].tuples.length&&(this.chartConfig.yAxis.title={text:e.Cols[0].tuples.map(h=>h.caption||"").join(" & ")}),this.chartConfig.xAxis&&e.Cols[1]&&e.Cols[1].tuples&&e.Cols[1].tuples.length&&(this.chartConfig.xAxis.title={text:e.Cols[1].tuples.map(h=>h.caption||"").join(" & ")})}addSeries(e,i,r,n=!1){let l=i||this.chart;if(!l)return;let a=(l.options||this.chartConfig).series?.length??-1;if(e&&e.data&&e.data.length!==0){let p=!0,u=!1;for(let b=0;bparseInt(b,10)));let u=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=p[u]||0}e.showInLegend=!0,l.addSeries(e,n,!1);let m=this.seriesVisibility[l.series.length-1];m!==void 0&&(l.series[l.series.length-1].visible=m)}enableStacking(){let e={plotOptions:{series:{stacking:"normal"}}};this.us.mergeRecursive(this.chartConfig,e)}getMinValue(e){let i=1/0;for(let r=0;rc.action==="setRowCount")[0],h=a&&parseInt(a.value.toString())||Ir;if(this.chartConfig?.plotOptions?.series?.stacking==="normal"||!this.chartConfig?.plotOptions?.series?.stacking){let c=e.Cols[1].tuples,m=e.Cols[0].tuples;if(this.widget.isTop)if(m.length===1){let p=!0;for(;p;){p=!1;let u;for(u=0;uthis.setElColor(n,i))}updateColors(e){this.zone.runOutsideAngular(()=>{let i=this.chart;if(!i)return;let r=i.options?.chart?.type;if(e.hcColors)if(r==="treemap"||r==="pie"){let l=i.options.plotOptions?.[r];l&&(l.colors=e.hcColors);for(let a=0;a{p.color=h,this.setElColor(p.graphic?.element,h)});let m=i.legend.allItems[l];m&&m.legendSymbol&&[m.legendSymbol.element,m.legendLine.element].forEach(p=>{p&&(p.setAttribute("fill",h),p.setAttribute("stroke",h))}),i.series[l].color=h}if(e.hcBorderColor&&Lr[r||""]?.showBorder!==!1)for(let l=0;l{let c=h.graphic?.element;c&&c.setAttribute("stroke",e.hcBorderColor)});if(e.hcBackground&&Lr[r||""]?.showBackground!==!1){let l=i.chartBackground.element;l.setAttribute("fill",e.hcBackground),l.setAttribute("stroke",e.hcBackground),i.options.chart&&(i.options.chart.backgroundColor=e.hcBackground)}if(e.hcLineColor&&Lr[r||""]?.showLines!==!1){let l=e.hcLineColor;i.yAxis.forEach(a=>{i.yAxis[0].options.minorGridLineColor=l,a.gridGroup.element.setAttribute("stroke",l),a.gridGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})}),i?.xAxis.forEach(a=>{a.axisGroup.element.setAttribute("stroke",l),a.axisGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})})}let n=e.hcTextColor;if(n&&Lr[r||""]?.showText!==!1){let l=a=>{if(a.labelGroup){a.labelGroup.element.setAttribute("fill",n);for(let h=0;h{a.options.color=n,a.legendItem&&(a.legendItem?.group?.element?.setAttribute("color",n),a.legendItem?.group?.element?.setAttribute("fill",n),a.legendItem?.label?.element?.setAttribute("color",n),a.legendItem?.label?.element?.setAttribute("fill",n))}),i?.series.forEach(a=>a.data.forEach(h=>{let c=h.dataLabel?.element?.children[0]?.style;c&&(c.color=n,c.fill=n)}))}})}fixData(e){for(let i=0;i{i&&l>i-1||((n.children?.length??0)>1?n.children?.forEach(a=>{a.caption=n.caption+"/"+a.caption,r.push(a)}):r.push(n))}),r}buildSeries(e){this.chartConfig.series=[];let i=this.widget.controls.find(a=>a.action.toLowerCase()==="setcolumncount"),r=this.buildAxis(e.Cols[1],i?.value||0),n=this.buildAxis(e.Cols[0]);n.forEach((a,h)=>{let c=[];r.forEach((m,p)=>{c.push({y:+e.Data[p*n.length+h],drilldown:!0,cube:e.Info?.cubeName||"",path:m.path,name:m.caption,title:m.title})}),this.fixData(c),this.addSeries({data:c,name:a.caption,format:a.format,path:a.path})});let l=this.chartConfig.xAxis;l.categories=r.map(a=>a.caption)}removeAxisListeners(){this.axisLabelListeners.forEach(e=>{e.element.removeEventListener(e.event,e.func)})}saveSeriesVisiblilityState(e,i){let r=this.ss.getWidgetsSettings(this.widget.dashboard);r[this.widget.name]||(r[this.widget.name]={});let n=r[this.widget.name];n.series||(n.series={}),n.series[e]=i,this.ss.setWidgetsSettings(r,this.widget.dashboard)}setupChart(){let e=this,i=this.wts.getDesc(this.widget.type);function r(){let n=this.value,l=e.override,a=l?.valueLabelFormat,h=e.baseType;return(l?.yAxisList[0]?.axisType==="percent"||l?.xAxis.axisType==="percent"&&(h==="barChart"||h==="barChartStacked"))&&(n=e.formatNumber(n,"#%")),n}if(this.chartConfig={accessibility:{enabled:!1},drilldown:{activeAxisLabelStyle:{color:this.tc?.hcTextColor||void 0},activeDataLabelStyle:{color:this.tc?.hcTextColor||void 0}},legend:xe({enabled:this.widget.isLegend,align:"left"},this.tc?.hcTextColor?{itemStyle:{color:this.tc?.hcTextColor}}:{}),navigation:{buttonOptions:{align:"center"}},chart:{type:i?.chart||"column",backgroundColor:this.tc?.hcBackground||"transparent",events:{redraw:n=>{e.removeAxisListeners(),n.target?.series?.forEach(l=>{e.chartConfig.chart?.type==="pie"&&e.chart?.legend.allItems.forEach(a=>{let h=p=>{this.onLegendItemHover({series:a.series,index:a.index})},c=p=>{this.onLegendItemOut({series:a.series,index:a.index})},m=a.legendItem?.group.element;m&&(m.addEventListener("mouseover",h),e.axisLabelListeners.push({event:"mouseover",element:m,func:h}),m.addEventListener("mouseout",c),e.axisLabelListeners.push({event:"out",element:m,func:c}))}),l.data.forEach((a,h)=>{let c="contextmenu",m=a.graphic?.element;if(!m)return;let p=u=>{u.preventDefault(),u.stopImmediatePropagation();let b=e._currentData?.Cols[1]?.tuples;if(!b||!b[h])return;let v=l.userOptions.path,x=b[h].path;v&&(x=v),this.bs.broadcast("contextmenu",{widget:this.widget,event:u,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:x,drillTitle:b[h].caption||b[h].title}})};a.graphic?.element?.addEventListener(c,p),this.axisLabelListeners.push({event:c,element:m,func:p})})}),e.chartConfig?.chart?.type==="pie"?e.chart?.legend?.allItems.forEach(l=>{let a=l.dataLabel?.element;if(!a)return;let h=()=>{e.showLoading(),e.doDrillOnly(l.options.path,l.name.toString(),l.name.toString()).finally(()=>{e.hideLoading()})};a.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:a,func:h})}):e.chart?.xAxis[0]?.labelGroup?.element?.childNodes?.forEach((l,a)=>{let h=()=>{let c=e._currentData?.Cols[1]?.tuples,m=e._currentData?.Cols[1]?.tuples[0]?.children;m?.length&&(a=Math.floor(a/m?.length)),!(!c||!c[a])&&(e.showLoading(),e.doDrillOnly(c[a].path,c[a].caption||c[a].title,c[a].caption||c[a].title).finally(()=>{e.hideLoading()}))};l.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:l,func:h})})}}},credits:{enabled:!1},tooltip:{formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;h=e.formatNumber(h,a);let c=l.point.title;c===l.point.name&&(c="");let m=(l.point.name||l.x||"")+"
"+(c?c+"
":"")+l.series.name+": "+h+"
";return l.point.percentage&&(m+=e.formatNumber(this.point.percentage,e.getDataPropByDataValue(this.series?.userOptions?.name||"")?.format||"#.##")+"%"),m}},exporting:{enabled:!1},plotOptions:{column:{borderColor:this.tc?.hcBorderColor||void 0},bar:{borderColor:this.tc?.hcBorderColor||void 0},pie:{borderColor:this.tc?.hcBorderColor,colors:this.tc?.hcColors},treemap:{colors:this.tc?.hcColors},series:{opacity:this.tc?.hcOpacity,cursor:"pointer",point:{events:{click(n){if(e.drillFilterWidgets?.length){e.doDrillFilter(n.point.path,e.drills),e.parent?.header?.cd.detectChanges();return}if(!n.point)return;if(Ae.mobile&&e._selectedPoint!==n.point){e._selectedPoint=n.point;return}let l=n.point.series.userOptions.path,a=[n.point.path];l&&a.push(l),e.showLoading(),e.doDrillthrough(a,n.point.name,n.point.category).finally(()=>{e.hideLoading()})}}},dataLabels:{color:this.tc?.hcTextColor||void 0,enabled:this.widget.showValues===!0,formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;return h=e.formatNumber(h,a),h}},events:{hide:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible),show:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible)}}},yAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none"},formatter:r},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},xAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none",cursor:"pointer"}},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},series:[],title:{text:""}},this.setup3DChart(),this.chartConfig.navigator={outlineColor:this.tc?.hcLineColor,xAxis:{gridLineColor:this.tc?.hcLineColor},yAxis:{gridLineColor:this.tc?.hcLineColor}},this.widget.type.toLowerCase()==="combochart"&&(this.chartConfig.yAxis=[{events:{},gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}},{events:{},opposite:!0,gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}}],this.widget.overrides&&this.widget.overrides[0]&&this.widget.overrides[0]._type==="comboChart")){let l=this.widget.overrides.find(a=>a._type.toLowerCase()==="combochart")?.yAxisList;if(l&&l.length)for(let a=0;a{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={});let n=Lr[this.chart?.options?.chart?.type||""]||{};this.sbs.showComponent({component:import("./chunk-F2EOB5ZN.js"),inputs:{widgetSettings:i[e],appearance:n,onSave:r,onUpdate:l=>this.updateColors(l),chart:this.chart}})}setupAxisMinMax(e){let i=this.override,r=this.chartConfig.yAxis,n=this.chartConfig.xAxis,l=i?.yAxisList[0];e.some(a=>a<0)||(r.min=0),(this.baseType==="barChart"||this.baseType==="barChartStacked")&&(l=i?.xAxis),l?.minValue!==void 0&&(r.min=l.minValue),l?.maxValue!==void 0&&(r.max=l.maxValue)}removeUndefinedColors(e){let i=(r,n)=>{r[n]===void 0&&delete r[n]};i(e.plotOptions?.column,"borderColor"),i(e.plotOptions?.bar,"borderColor"),i(e.plotOptions?.pie,"borderColor"),i(e.plotOptions?.treemap,"borderColor"),i(e.plotOptions?.treemap,"borderColor"),i(e.drilldown?.activeAxisLabelStyle,"color"),i(e.drilldown?.activeDataLabelStyle,"color"),i(e.legend?.itemStyle,"color"),i(e.chart,"backgroundColor"),i(e.plotOptions?.series,"opacity"),i(e.plotOptions?.series?.dataLabels,"color"),i(e.yAxis?.labels?.style,"color"),i(e.yAxis,"minorGridLineColor"),i(e.yAxis,"gridLineColor"),i(e.yAxis,"lineColor"),i(e.yAxis,"tickColor"),i(e.xAxis?.labels?.style,"color"),i(e.xAxis,"minorGridLineColor"),i(e.xAxis,"gridLineColor"),i(e.xAxis,"lineColor"),i(e.xAxis,"tickColor"),this.removeEmptyObjects(e)}removeEmptyObjects(e){let i=!0;for(;i;)i=!1,Object.keys(e).forEach(r=>{typeof e[r]=="object"&&!Array.isArray(e[r])&&(Object.keys(e[r]).length===0?(i=!0,delete e[r]):this.removeEmptyObjects(e[r]))})}setup3DChart(){this.widget?.type.toLowerCase().includes("3d")&&(this.chartConfig.chart&&(this.chartConfig.chart.options3d={enabled:!0,alpha:0,beta:8,depth:50,viewDistance:8}),this.chartConfig.plotOptions?.column&&(this.chartConfig.plotOptions.column.depth=25),this.chartConfig.plotOptions?.bar&&(this.chartConfig.plotOptions.bar.depth=25),this.chartConfig.plotOptions?.pie&&(this.chartConfig.plotOptions.pie.depth=25))}sortTuplesArray(e,i){let r=new Map;i.forEach((n,l)=>{r.set(n,l)}),e.forEach((n,l)=>{n.originalIndex=l}),e.sort((n,l)=>{let a=r.get(n.dimension),h=r.get(l.dimension);return a!==void 0&&h!==void 0?a-h:a!==void 0?-1:h!==void 0?1:0})}sortTuplesBasedOnLabels(e){if(!e.Cols[0].tuples?.length)return;let i=this.widget.overrides?.find(n=>n._type==="chartLegend");if(!i)return;let r=i.legendLabels?.split(",");r&&this.sortTuplesArray(e.Cols[0].tuples,r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Hn=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="columnchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-column-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Zn=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.isSpinner=!1}ngOnInit(){this.widget.title=this.i18n.get("filters"),this.widget.toolbar=!0,this.widget.viewSize=this.getViewSize()}requestData(){}onHeaderButton(e){switch(e.name){case"setDefault":this.setFiltersToDefaults();break;case"byRows":this.setViewSize(0);break;case"by2columns":this.setViewSize(1);break;case"by3columns":this.setViewSize(2);break;case"by4columns":this.setViewSize(3);break;case"by5columns":this.setViewSize(4);break;case"by6columns":this.setViewSize(5);break}}setFiltersToDefaults(){for(let e=0;e{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-empty-widget"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Bu=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.isPercent=!0,this.totalSum=0,this.prevData=null,this.baseSeriesType="treemap"}ngOnInit(){super.ngOnInit(),this.totalSum=0,this.widget.overrides&&this.widget.overrides[0]&&this.widget.overrides[0].showPercentage===0&&(this.isPercent=!1);let e=this,i={levels:[{level:1,layoutAlgorithm:"sliceAndDice",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"15px",fontWeight:"bold"}}}],legend:{enabled:this.widget.isLegend},plotOptions:{series:{animation:!1,colorByPoint:!0,legendType:"point"},treemap:{dataLabels:{enabled:!0,formatter(){if(e.totalSum){let r=this.point.value/e.totalSum*100;return r=e.formatNumber(r,e.getDataPropByDataValue(this.series?.userOptions?.dimension)?.format||"#.##"),`${this.point.caption}
${r}%`}else return`${this.point.caption}`}}}},tooltip:{formatter(){let r=this.series.userOptions.caption,n=this.series.userOptions.format,l=this.point.value;return l=e.formatNumber(l,n),this.point.caption+"
"+r+": "+l+""}}};this.us.mergeRecursive(this.chartConfig,i),delete this.chartConfig.plotOptions?.series?.dataLabels}parseData(e){return Yt(this,null,function*(){this.prevData=e,e&&e.Info&&(this.dataInfo=e.Info);let i=[];if(e.Cols[0].tuples.length){if(e.Cols[0].tuples[0].children)console.error("Data converter for this treemap chart not implemented!");else{if(yield this.checkForAutoDrill(e))return;i=[];let r=0;for(let a=0;a"+parseFloat(parseFloat(e.Data[a])/r*100).toFixed(2).toString()+"%",value:parseFloat(e.Data[a]),y:parseFloat(e.Data[a]),path:e.Cols[1].tuples[a].path,name:e.Cols[1].tuples[a].caption});let n="",l="";e.Cols[0].tuples[0]&&(n=e.Cols[0].tuples[0].caption,l=e.Cols[0].tuples[0].format),this.totalSum=e.Data.map(a=>parseFloat(a)||0).reduce((a,h)=>a+h,0),this.addSeries({data:i,name:"",layoutAlgorithm:"squarified",caption:n,dimension:e.Cols[0].tuples[0].dimension,format:l,dataLabels:{enabled:!0}},void 0,void 0,!0)}this.toggleLegend(this.widget.isLegend)}})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-tree-map"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Kn=qt(ys());var Gu=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.thirdTitle=""}ngOnInit(){super.ngOnInit();let e=this,i={plotOptions:{bubble:{minSize:"5%",maxSize:"35%",sizeBy:"width"},series:{cursor:null,point:{events:{click:null}}}},chart:{zoomType:"xy"},xAxis:{tickWidth:10,title:{enabled:!0}},tooltip:{formatter:function(){let r=this.series.userOptions.format1,n=this.series.userOptions.format2,l=this.series.userOptions.format3,a=this.x,h=this.y,c=this.point.z;r&&(a=(0,Kn.default)(a).format(r)),n&&(h=(0,Kn.default)(h).format(n)),l&&(c=(0,Kn.default)(c).format(l));let m=e.thirdTitle||"radius";return this.series.name+"
"+e.chartConfig.xAxis.title.text+":"+a+"
"+e.chartConfig.yAxis.title.text+":"+h+""+(c?"
"+m+": "+c.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,i)}getSeriesNames(e){let i={};if(e.Cols[0].tuples.length==4)for(let r=3;r=1&&(this.chartConfig.xAxis.title.text=e.Cols[0].tuples[0].caption),e.Cols[0].tuples.length>=2&&(this.chartConfig.yAxis.title.text=e.Cols[0].tuples[1].caption),e.Cols[0].tuples.length>=3&&(this.thirdTitle=e.Cols[0].tuples[2].caption);let r=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{let n=e.Cols[0].tuples.length,l="",a="",h="";e.Cols[0].tuples[0]&&(l=e.Cols[0].tuples[0].format),e.Cols[0].tuples[1]&&(a=e.Cols[0].tuples[1].format),e.Cols[0].tuples[2]&&(h=e.Cols[0].tuples[2].format);let c={},m=!1,p;if(this.hasOption("isTop")){m=!0;let v=(this.widget.controls||[]).filter(function(x){return x.action==="setRowCount"})[0];p=v?v.value||Ir:Ir}let u=m?p:e.Data.length;u>e.Data.length&&(u=e.Data.length);for(let b=0;b{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-bubble-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var qn=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={};this.widget.type.toLowerCase()!=="combochart"&&(e={plotOptions:{series:{lineWidth:3,marker:{enabled:!1}}}}),this.widget.type.toLowerCase()==="linechartmarkers"&&(e={series:{marker:{enabled:!0}}}),this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Kl=qt(ys());var Xu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit();let e={series:{fillColor:"#dddddF"},plotOptions:{boxplot:{fillColor:"#fafafF",whiskerLength:0,colorByPoint:!0,lineWidth:3,stemWidth:0}},tooltip:{formatter:function(){let i=this.series.userOptions.caption1||"Minimum",r=this.series.userOptions.caption2||"Maximum",n=this.series.userOptions.format1,l=this.series.userOptions.format2,a=this.point.low,h=this.point.high;return n&&(a=(0,Kl.default)(a).format(n)),l&&(h=(0,Kl.default)(h).format(l)),this.key+"
"+r+":"+h+"
"+i+":"+a+""}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Yt(this,null,function*(){let i=this.chartConfig.xAxis;i.categories=[];for(let n=0;n{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-hi-low-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Wu=qt(ys()),Yu=qt(Jn());var mf=["charts"];function xf(o,t){o&1&&le(0,"div",null,0)}var ql=(()=>{let t=class t extends Bt{constructor(){super(...arguments),this.confs=[],this.charts=[]}ngOnInit(){super.ngOnInit();let e={title:{verticalAlign:"bottom",style:{fontFamily:_h}},tooltip:{enabled:!1},legend:{enabled:!1},chart:{plotBackgroundColor:null,plotBackgroundImage:null,plotBorderWidth:0,plotShadow:!1},plotOptions:{series:{dataLabels:{enabled:!0,formatter:function(){let i=this.point.y,r=this.series.userOptions.format||"#.##";return r&&(i=(0,Wu.default)(i).format(r.replace(",","."))),i}}}},pane:{startAngle:-150,endAngle:150,background:[{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#333"]]},borderWidth:0,outerRadius:"109%"},{backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#333"],[1,"#FFF"]]},borderWidth:1,outerRadius:"107%"},{},{backgroundColor:"#DDD",borderWidth:0,outerRadius:"105%",innerRadius:"103%"}]}};this.chartConfig.yAxis={minorTickInterval:"auto",minorTickWidth:1,minorTickLength:10,minorTickPosition:"inside",minorTickColor:"#666",tickWidth:2,tickPosition:"inside",tickLength:10,tickColor:"#666"},this.chartConfig.chart?.type==="solidgauge"&&(e.pane={center:["50%","85%"],size:"140%",startAngle:-90,endAngle:90,background:[{backgroundColor:"#EEE",innerRadius:"60%",outerRadius:"100%",shape:"arc"}]}),this.us.mergeRecursive(this.chartConfig,e)}ngAfterViewInit(){}createChart(){let e=this.chartsEl?.toArray().map(i=>i.nativeElement);this.charts=[],this.confs.forEach((i,r)=>{i.chart&&(i.chart.renderTo=e?.[r]),this.charts.push(Yu.default.chart(i))})}retrieveData(e){let i;if(this.hideLoading(),this.charts.forEach(r=>{for(;r.series.length>0;)r.series[0].remove()}),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){if(!e.Cols)return;e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e)}}parseData(e){return Yt(this,null,function*(){if(this.confs.length===0){for(let i=0;ia.dataValue===e.Cols[0].tuples[i].dimension);n&&n.label&&n.label!=="$auto"&&(r=n.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig));let l=this.confs[this.confs.length-1];l.title&&(l.title.text=r)}this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{this.createChart(),this.parseData(e)});return}for(let i=0;in.max&&(u=n.max),n.plotBands=[],p!==n.min&&n.plotBands.push({from:n.min,to:p,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),u!==n.max&&n.plotBands.push({from:u,to:n.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),l.targetValue){let b=parseFloat(l.targetValue);n.plotLines=[{value:b,color:"rgba(0, 180, 0, 0.4)",width:3,zIndex:5}]}}let a="";this.widget.properties&&this.widget.properties.format&&(a=this.widget.properties.format),e.Cols[0].tuples[i].format&&(a=e.Cols[0].tuples[i].format);let h=e.Cols[0].tuples[i].caption;l&&l.label&&l.label!=="$auto"&&(h=l.label),this.addSeries({data:[e.Data[i]||0],name:h,format:a},this.charts[i],this.confs[i]),this.charts[i]&&this.charts[i].update(this.confs[i])}})}onResize(){super.onResize(),this.charts.forEach(e=>e.reflow())}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-speedometer-chart"]],viewQuery:function(i,r){if(i&1&&$i(mf,5),i&2){let n;Ji(n=Qi())&&(r.chartsEl=n)}},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[["charts",""]],template:function(i,r){i&1&&oe(0,xf,2,0,"div",null,ne),i&2&&ae(r.confs)},styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]});let o=t;return o})();var Vu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={plotOptions:{series:{colorByPoint:!1},area:{stacking:"normal",marker:{enabled:!1}}}};this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Uu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={plotOptions:{series:{cursor:null,point:{events:{click:null}}},pie:{allowPointSelect:!1,dataLabels:{enabled:!0,color:"#000000",connectorColor:"#000000",formatter:function(){return""+this.point.name+": "+this.series.options.size}}}},tooltip:{formatter:function(){return this.key+": "+this.y+"
"}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Yt(this,null,function*(){let i=[];this.clearSeries();let r=Math.max.apply(null,e.Data);for(let n=0;n{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Rr=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e={series:{allowPointSelect:!0,stickyTracking:!1}};this.chartConfig.plotOptions||(this.chartConfig.plotOptions={}),this.us.mergeRecursive(this.chartConfig.plotOptions,e),(this.widget.type==="donutChart"||this.widget.type==="donutChart3D")&&(e={plotOptions:{pie:{innerSize:"20%"}}},this.us.mergeRecursive(this.chartConfig,e)),(this.widget.type==="pieChart3D"||this.widget.type==="donutChart3D")&&(e={chart:{options3d:{enabled:!0,alpha:55,beta:0}},plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",depth:35}}},this.us.mergeRecursive(this.chartConfig,e));let i=this,r={plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,formatter:function(){let n=i.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=this.point.name,c=i.formatNumber(this.y,a);i.widget.showValues||(c=""),i.widget["btn.ShowAnnotations"]===!1&&(h="");let m=i.formatNumber(this.point.percentage,i.getDataPropByDataValue(this.series?.userOptions?.name)?.format||"#.##")+"%";return i.widget["btn.ShowPercents"]||(m=""),[h,c,m].filter(p=>p).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){let n=this,l=n.series.options.format,a=n.y;return l&&(a=i.formatNumber(a,l)),n.key+", "+a}},point:{events:{legendItemClick:function(){let n=this.path,l=this.name,a=this.visible;i.chart?.series.forEach(h=>{h.data.forEach(c=>{(n&&c.path===n||l&&c.name===l)&&(c!==this&&c.update({visible:!a}),a&&c.setState("normal"))})})},mouseOut:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("")})},mouseOver:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,r),this.chartConfig?.plotOptions?.series?.dataLabels||(this.chartConfig.plotOptions.series.dataLabels={}),(this.chartConfig?.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.widget.showValues,this.updateChart(!0,!0)}isValuesVisible(){return this.widget.showValues||this.widget["btn.ShowAnnotations"]}onHeaderButton(e){(e.name==="ShowValues"||e.name==="btn.ShowAnnotations"||e.name==="btn.ShowPercents")&&((this.chartConfig.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.updateChart(!0),this.chart?.series.forEach((i,r)=>{r!==0&&(i.options.showInLegend=!1)}),(this.chart?.series.length??0)>1&&this.chartConfig.legend&&this.chart?.legend.update(this.chartConfig.legend,!0)),super.onHeaderButton(e)}addSeries(e,i,r,n=!1){let l=this._currentData?.Cols[0]?.tuples?.length||1,a=this._currentData?.Cols[1]?.tuples?.length||1;if(l!==1){let h=100/l,c=this.chart?.series.length||0;e.center=[(h/2+c*h).toString()+"%","50%"],c>a&&(e.showInLegend=!1)}super.addSeries(e,i,r,n),this.chart&&this.chart.series.length>1&&(this.chart.series[this.chart.series.length-1].options.showInLegend=!1)}updateSeriesVisibilityAndPositionForMultiplePies(){this.chart?.series.forEach((e,i)=>{e.options.showInLegend=i===0})}onLegendItemHover(e){super.onLegendItemHover(e),(this.chart?.series?.length??0)>1&&this.chart?.series.forEach(i=>{i!==e.series&&i.setState("inactive",!0)}),this.chartConfig.plotOptions.series.point.events.mouseOver.call(e)}onLegendItemOut(e){super.onLegendItemOut(e),(this.chart?.series?.length??0)>1&&this.chart?.series.forEach(i=>{i!==e.series&&i.setState("normal",!0)}),this.chartConfig.plotOptions.series.point.events.mouseOut.call(e)}parseData(e){return Yt(this,null,function*(){yield eh(t.prototype,this,"parseData").call(this,e),this.toggleLegend(this.widget.isLegend)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var $l=qt(ys());var Hu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};let e=this;this.chartConfig.tooltip={formatter(){let i=this.series.userOptions,r=i.format1,n=i.format2,l=this.y,a=this.x;r&&(l=(0,$l.default)(l).format(r)),n&&(a=(0,$l.default)(a).format(n));let h=e.chartConfig.yAxis,c=e.chartConfig.xAxis;return h.title?.text+":"+l+"
"+c.title?.text+":"+a+""}},this.updateChart()}parseData(e){return Yt(this,null,function*(){let i="",r="";if(e.Cols[0].tuples.length>=1){let l=this.chartConfig.xAxis;l?.title&&(l.title.text=e.Cols[0].tuples[0].caption),i=e.Cols[0].tuples[0].format}if(e.Cols[0].tuples.length>=2){let l=this.chartConfig.yAxis;l?.title!==void 0&&(l.title.text=e.Cols[0]?.tuples[1]?.caption),i=e.Cols[0].tuples[1].format}this.chartConfig.series=[];let n=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let l=0;l{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Zu=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e=this;function i(){let n,l,a,h=this,c=new Date(h.x),m=c.toLocaleDateString();if(c.getHours()!==0&&c.getMinutes()!==0&&c.getSeconds()!==0&&(m+=" "+c.toLocaleTimeString()),h.series)return l=h.series.options.format,a=h.y,a=e.formatNumber(a,l),n=""+m+'
\u25CF'+h.series.name+": "+a,n;n=""+m+"
";for(let p=h.points.length-1;p>-1;p--)l=h.points[p].series.options.format,a=h.points[p].y,a=e.formatNumber(a,l),n+='\u25CF'+h.points[p].series.name+": "+a+"
";return n}let r={options:{chart:{zoomType:"x"},tooltip:{formatter:i},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,r)}parseData(e){return Yt(this,null,function*(){e&&e.Info&&(this.dataInfo=e.Info),this.chartConfig.yAxis.min=this.getMinValue(e.Data),this.clearSeries();let i=[],r,n;if(e.Cols[0].tuples[0].children){let l=0;for(let a=0;a=0;l--){for(i=[],n=0;n1&&(h=parseInt(a[1])),l=this.addDays(l,parseInt(r)),h&&l.setSeconds(h),Date.parse(l)}else return this.getDate(e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Jl=(()=>{let t=class t extends Bt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="barchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-bar-chart"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();var Ku=qt(Jn());function yf(o,t){if(o&1&&(Lt(0,"div",2)(1,"div",4),ie(2),kt(),le(3,"span")(4,"span")(5,"span")(6,"span"),Lt(7,"div",4),ie(8),kt()()),o&2){let s=Nt().$implicit;Dt(2),Te(s.rangeLower||"0"),Dt(6),Te(s.rangeUpper||"0")}}function bf(o,t){if(o&1&&(Lt(0,"div"),ie(1),kt()),o&2){let s=Nt().$implicit;je("align-left",s.display==="label"),Dt(),ms(" ",s.label," ")}}function vf(o,t){if(o&1&&(Lt(0,"td"),$s(1,yf,9,2,"div",2)(2,bf,2,3,"div",3),kt()),o&2){let s,e=t.$implicit;je("plotbox-cell",e.display==="plotBox"),Dt(),Js((s=e.display)==="plotBox"?1:2)}}function Cf(o,t){if(o&1&&(Lt(0,"div"),le(1,"img",7),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Dt(),gs("src",i.data[e][s],fs)}}function _f(o,t){if(o&1&&le(0,"span",10),o&2){let s=Nt(2).$index,e=Nt().$index,i=Nt();Ee("left",i.targets[e][s],"%")}}function wf(o,t){if(o&1&&(Lt(0,"div",8),$s(1,_f,1,2,"span",9),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Ee("background-color",i.color)("width",i.data[e][s],"%"),Dt(),Js(i.targets[e][s]?1:-1)}}function Sf(o,t){if(o&1&&(Lt(0,"div"),ie(1),kt()),o&2){let s=Nt().$index,e=Nt().$index,i=Nt();Dt(),ms(" ",i.data[e]?i.data[e][s]:""," ")}}function Mf(o,t){if(o&1&&(Lt(0,"td"),$s(1,Cf,2,1,"div")(2,wf,2,5,"div",6)(3,Sf,2,1,"div"),kt()),o&2){let s,e=t.$implicit,i=Nt(2);Ee("width",e.display==="plotBox"?100/i.props.length*2:null,"%"),je("align-left",e.display==="label")("align-center",e.display==="itemNo"),Dt(),Js((s=e.display)==="trendLine"?1:s==="plotBox"?2:3)}}function Ef(o,t){if(o&1&&(Lt(0,"tr"),oe(1,Mf,4,7,"td",5,ne),kt()),o&2){let s=Nt();Dt(),ae(s.props)}}function Tf(o,t){if(o&1&&(Lt(0,"td"),ie(1),kt()),o&2){let s=t.$implicit;Dt(),ms(" ",s," ")}}function Af(o,t){if(o&1&&(Lt(0,"tr",1),oe(1,Tf,2,1,"td",null,ne),kt()),o&2){let s=Nt();Dt(),ae(s.footerValues)}}var qu=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.widget={},this.columns=[],this.rows=[],this.data=[],this.targets=[],this.color="",this.props=[],this.hasFooter=!1,this.footerValues=[],this.san=$t(uh),this.sbs=$t(zr),this.totalByColumn={},this.originalData=[]}ngOnInit(){super.ngOnInit(),this.color=Ku.default.getOptions().colors?.[0],this.tc&&this.tc.hcColors&&(this.color=this.tc.hcColors[0]),this.subColorsConfig=this.bs.subscribe("charts:update-colors",e=>this.updateColors(e)),this.prepareProps(),this.props?.length||this.override?.columns?.length&&(this.props=this.override.columns)}ngOnDestroy(){this.subColorsConfig?.unsubscribe(),super.ngOnDestroy()}retrieveData(e){super.retrieveData(e),!e.Error&&(this.originalData=e.Data,this.columns=e.Cols[0].tuples,this.rows=e.Cols[1]?.tuples||[{}],this.prepareData(e.Data),this.cd.detectChanges())}prepareProps(){this.props=this.widget.dataProperties,this.props&&this.props.forEach(e=>e.label=e.label.replace("\\n",` +`))}onHeaderButton(e){switch(super.onHeaderButton(e),e.name){case"chartConfig":this.showChartConfig();break}}getValue(e,i,r,n,l){switch(r.display||""){case"itemNo":return(i+1).toString();case"label":return this.rows[i].caption;case"":case"value":case"plotBox":{let a=r.format,h=this.getPropValue(e,i,r);if(r.display==="plotBox"){let c=r.rangeLower||0,m=r.rangeUpper||0;return n!==void 0&&(c=n),l!==void 0&&(m=l),r.showAs==="target%"?parseFloat(h)/parseFloat(this.getPropValue(e,i,r,"targetValue"))*100:m-c===0?0:(h-c)/(m-c)*100}else{if(h==="")return"";if(r.showAs==="target%"){let c=this.getPropValue(e,i,r,"targetValue");return this.formatNumber(h/c,a)}return r.showAs==="sum%"?this.formatNumber(h/this.totalByColumn[r.dataValue],a||"#.##%"):this.formatNumber(h,a)}}case"trendLine":{let a=this.getColumnIndex(r.dataValue),h="";return a!==-1&&(h=e[i*this.columns.length+a]),this.getSvgForTrendLine(r,h)}}return 0}prepareFooter(){if(this.hasFooter=this.props.some(e=>e.summary==="sum"),this.footerValues=[],!!this.hasFooter)for(let e=0;e{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={}),this.sbs.showComponent({component:import("./chunk-F2EOB5ZN.js"),inputs:{appearance:{showSeries:[!0,!1,!1,!1,!1,!1,!1,!1,!1,!1],showBackground:!1,showLines:!1,showText:!1,showBorder:!1},widgetSettings:i[e],onSave:r,onUpdate:n=>this.updateColors(n)}})}getPropValue(e,i,r,n="dataValue"){let l=!isNaN(parseFloat(r[n])),a=r[n];if(!l){let h=this.getColumnIndex(r[n]);h===-1?a=0:a=e[i*this.columns.length+h]}return a}getColumnIndex(e){return this.columns.findIndex(r=>r.dimension?e.split("/").includes(r.dimension):/^Properties\(\"([^)]+)\"\)/.exec(r.valueID)?.[1]===e)}prepareData(e){let i=[];for(let r=0;r(m+a)%this.columns.length===0);l=Math.max(...h),n=Math.min(...h)}n=0,i.push({min:n,max:l}),this.props[r].rangeLower||(this.props[r].rangeLower=n),this.props[r].rangeUpper||(this.props[r].rangeUpper=l)}this.preparePercentageSums(e),this.data=[],this.targets=[];for(let r=0;r{if(!p)return 0;let u=parseFloat(p);return isNaN(u)?0:u}):typeof i=="number"?n=[i]:Array.isArray(i);let l=Math.max(...n),a=Math.min(...n),h=(n.length-1)*4,c=` + r.showAs==="sum%");i?.length&&i.forEach(r=>{let n=this.columns.findIndex(l=>l.dimension===r.dataValue);this.totalByColumn[r.dataValue]=e.reduce((l,a,h)=>{if(h%this.columns.length!==n||a==="")return l;let c=parseFloat(a);return isNaN(c)?l:l+c},0)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-scorecard"]],inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:9,vars:1,consts:[[3,"plotbox-cell"],[1,"footer"],[1,"axis"],[3,"align-left"],[1,"label"],[3,"width","align-left","align-center"],[1,"box",3,"background-color","width"],[3,"src"],[1,"box"],[1,"target",3,"left"],[1,"target"]],template:function(i,r){i&1&&(Lt(0,"table")(1,"thead")(2,"tr"),oe(3,vf,3,3,"td",0,ne),kt()(),Lt(5,"tbody"),oe(6,Ef,3,0,"tr",null,ne),$s(8,Af,3,0,"tr",1),kt()()),i&2&&(Dt(3),ae(r.props),Dt(3),ae(r.rows),Dt(2),Js(r.hasFooter?8:-1))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{overflow-y:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0;width:100%}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{color:#686868}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{position:relative;z-index:2}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{white-space:pre;text-align:right;position:sticky;top:0;padding:0 10px;height:40px;background-color:var(--cl-widget-filter-bg);border-bottom:1px solid var(--cl-header-border)}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:6px 10px;text-align:right}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:30px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#00000003}.box[_ngcontent-%COMP%]{height:18px;flex-shrink:0;flex-grow:0;position:relative}.boxes-container[_ngcontent-%COMP%]{display:flex}.boxes-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:40px;flex-shrink:0;flex-grow:0;margin-right:10px}.axis[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:10px;border-bottom:1px solid gray;height:6px;border-left:1px solid gray;margin-top:28px;position:relative}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{position:absolute;text-align:center;top:-14px}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:first-child{left:0;transform:translate(-50%)}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:last-child{right:0;transform:translate(50%)}.axis[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:100%;border-right:1px solid gray}.footer[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{color:var(--cl-txt);background-color:var(--cl-widget-filter-bg);border-top:1px solid var(--cl-header-border);position:sticky;bottom:0}.target[_ngcontent-%COMP%]{display:inline-block;width:2px;transform:translate(-1);background-color:#1c1d20;height:calc(100% + 4px);position:absolute;top:-2px}.plotbox-cell[_ngcontent-%COMP%]{z-index:1}"]});let o=t;return o})();var Us=(()=>{let t=class t extends ye{constructor(){super(...arguments),this.data=[]}retrieveData(e){this.hideLoading(),this.prepareMeterData(e),this.cd.markForCheck(),this.cd.detectChanges()}prepareMeterData(e){if(this.data=[],!e)return;let i=!!this.widget?.dataProperties?.length,r=i?this.widget?.dataProperties:e.Cols[0].tuples;for(let n=0;nx.dimension===l.dataValue);h=e.Cols[0].tuples[v].caption,a=e.Data[v]}else h=r[n].caption,a=e.Data[n];let c=1,m=parseFloat(l.rangeLower.toString()),p=parseFloat(l.rangeUpper.toString());isNaN(m)&&(m=0),isNaN(p)&&(p=100);let u=m,b=p;isNaN(u)&&(u=33.33333),isNaN(b)&&(b=66.66666),a=b&&(c=2),this.data.push({caption:h,state:c,value:a,min:m,max:p})}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["ng-component"]],standalone:!0,features:[vt,bt],decls:0,vars:0,template:function(i,r){},encapsulation:2});let o=t;return o})();function Pf(o,t){if(o&1&&(Lt(0,"div",0),le(1,"img",1),Lt(2,"label"),ie(3),kt()()),o&2){let s=t.$implicit;Dt(),gs("src","assets/img/smiley/"+(s.state===1?"smile-yellow.svg":s.state===0?"smile-red.svg":"smile-green.svg"),fs),Dt(2),Te(s.caption)}}var $u=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-wsmiley"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,r){i&1&&oe(0,Pf,4,2,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();function Df(o,t){if(o&1&&le(0,"div",3),o&2){let s=t.$implicit,e=Nt().$implicit;je("filled",e.progress>=s+1)}}function Lf(o,t){if(o&1&&(Lt(0,"div",0)(1,"div",1),oe(2,Df,1,2,"div",2,ne),kt(),Lt(4,"label"),ie(5),kt()()),o&2){let s=t.$implicit,e=Nt();Dt(),je("high",s.state===2)("low",s.state===0),Dt(),ae(e.dots),Dt(3),Te(s.caption)}}var Ju=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={},this.data=[],this.dots=[0,1,2,3,4,5,6,7,8,9]}get gridColumns(){return"repeat("+(this.data?.length>=5?2:1).toString()+", 1fr)"}prepareMeterData(e){super.prepareMeterData(e),this.data.forEach(i=>{i.progress=(i.value-i.min)/(i.max-i.min)*10,isNaN(i.progress)&&(i.progress=0)}),console.log(this.data)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-light-bar"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"holder"],[1,"bar"],[1,"dot",3,"filled"],[1,"dot"]],template:function(i,r){i&1&&oe(0,Lf,6,5,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}.holder[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[_ngcontent-%COMP%]{display:flex;width:100%;height:24px;border:1px solid var(--cl-accent);border-radius:1000px;padding-left:3px;padding-right:3px;gap:4px;justify-content:space-between;align-items:center}.dot[_ngcontent-%COMP%]{background:var(--cl-hover);border-radius:1000px;width:100%;height:100%;max-width:18px;max-height:18px}.dot.filled[_ngcontent-%COMP%]{background:var(--cl-accent)}.bar.high[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:last-child{background-color:#e07d86}.bar.low[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:first-child{background-color:#175ab8}"],changeDetection:0});let o=t;return o})();function If(o,t){if(o&1&&(Lt(0,"div",0),le(1,"img",1),Lt(2,"label"),ie(3),kt()()),o&2){let s=t.$implicit;Dt(),gs("src","assets/img/traffic-light/"+(s.state===1?"yellow.svg":s.state===0?"red.svg":"green.svg"),fs),Dt(2),Te(s.caption)}}var Qu=(()=>{let t=class t extends Us{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=St(t)))(r||t)}})(),t.\u0275cmp=yt({type:t,selectors:[["dsw-traffic-light"]],hostVars:2,hostBindings:function(i,r){i&2&&Ee("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[vt,bt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,r){i&1&&oe(0,If,4,2,"div",0,ne),i&2&&ae(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();var kr=[{id:"btn.ShowAnnotations",text:"Show annotations",tooltip:"Show annotations",icon:"assets/img/icons/text.svg",defValue:!0},{id:"btn.ShowPercents",text:"Show percents",tooltip:"Show percents",icon:"assets/img/icons/percent.svg"}],Hs={regular:{label:"Scorecard chart",class:qu,allowShowAsPivot:!0},fuelGauge:{class:ql,type:"chart",chart:"solidgauge",allowShowAsPivot:!0},bullseyeChart:{label:"Bullseye chart",class:Uu,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},speedometer:{class:ql,type:"chart",chart:"gauge",allowShowAsPivot:!0,disableLegend:!0},bubbleChart:{label:"Bubble chart",class:Gu,type:"chart",chart:"bubble",allowShowAsPivot:!0},treeMapChart:{label:"Tree map chart",class:Bu,type:"chart",chart:"treemap",allowShowAsPivot:!0},hilowChart:{label:"Hi-low chart",class:Xu,type:"chart",chart:"boxplot",allowShowAsPivot:!0},pieChart3D:{label:"Pie chart 3D",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},donutChart3D:{label:"Donut chart 3D",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},donutChart:{label:"Donut chart",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},pieChart:{label:"Pie chart",class:Rr,type:"chart",chart:"pie",headerButtons:kr,allowShowAsPivot:!0},areaChart:{label:"Area chart",class:Vu,type:"chart",chart:"area",allowShowAsPivot:!0},barChart:{label:"Bar chart",class:Jl,type:"chart",chart:"bar",allowShowAsPivot:!0},barChartStacked:{label:"Bar chart stacked",class:Jl,type:"chart",chart:"bar",allowShowAsPivot:!0},lineChart:{label:"Linear chart",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},lineChartMarkers:{label:"Linear chart with markers",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},comboChart:{label:"Combo chart",class:qn,type:"chart",chart:"line",allowShowAsPivot:!0},columnChart:{label:"Column chart",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},columnChart3D:{label:"Column chart 3D",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},columnChartStacked:{label:"Column chart stacked",class:Hn,type:"chart",chart:"column",allowShowAsPivot:!0},xyChart:{label:"XY chart",class:Hu,type:"chart",chart:"scatter",allowShowAsPivot:!0},timeChart:{label:"Time chart",class:Zu,type:"chart",allowShowAsPivot:!0},pivot:{label:"Table",class:to,type:"pivot"},"deepsee.lightpivottable":{class:to,type:"pivot"},textMeter:{label:"Text meter",class:Mh,type:"text",allowShowAsPivot:!0},map:{label:"World map",class:Nn,type:"map",allowShowAsPivot:!0},"deepsee.enhancedmapportlet":{class:Nn,type:"map",allowShowAsPivot:!0},"rf.mapportlet":{class:Nn,type:"map",allowShowAsPivot:!0},horizontalControls:{class:Zn,type:"empty"},verticalControls:{class:Zn,type:"empty"},smiley:{class:$u,allowShowAsPivot:!1},lightBar:{class:Ju,allowShowAsPivot:!1},trafficLight:{class:Qu,allowShowAsPivot:!1}};Hs[Ae.const.emptyWidgetClass]={class:Zn,type:"empty"};var Lu=(()=>{let t=class t{constructor(){}initialize(){let e=Ae.addons;if(e&&e&&e.length)for(let i=0;i{let n=class n{constructor(e,t,r){this.i18n=e,this.storage=t,this.ss=r,this.languages=this.i18n.getLanguages()}selectLanguage(e){let t=this.storage.getAppSettings();this.i18n.current=e,t.language=e,this.storage.setAppSettings(t),window.location.reload(),this.ss.hide()}isSelected(e){return this.i18n.current===e}};n.\u0275fac=function(t){return new(t||n)(o(M),o(O),o(k))},n.\u0275cmp=g({type:n,selectors:[["dsw-language-selector"]],standalone:!0,features:[y],decls:3,vars:0,consts:[[3,"click"],[3,"src"]],template:function(t,r){t&1&&(l(0,"ul"),u(1,P,3,2,"li",null,m),s()),t&2&&(a(),x(r.languages))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let i=n;return i})();export{L as LanguageSelectorComponent}; +import{a as k}from"./chunk-SUAWKU6Z.js";import{E as M,J as O}from"./chunk-LT3W5FMN.js";import{$a as a,Ab as m,Bb as u,Cb as x,Db as l,Eb as s,Fb as v,Jb as _,Nb as w,Ob as d,Xa as h,Xb as F,Zb as C,ab as o,cc as y,fa as g,qa as p,ra as b,tb as f}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function P(i,n){if(i&1){let c=_();l(0,"li",0),w("click",function(){let t=p(c).$implicit,r=d();return b(r.selectLanguage(t))}),v(1,"img",1),F(2),s()}if(i&2){let c=n.$implicit,e=d();a(),f("src",e.isSelected(c)?"assets/img/icons/check-black-18dp.svg":"",h),a(),C(" ",e.i18n.getLanguageName(c)," ")}}var L=(()=>{let n=class n{constructor(e,t,r){this.i18n=e,this.storage=t,this.ss=r,this.languages=this.i18n.getLanguages()}selectLanguage(e){let t=this.storage.getAppSettings();this.i18n.current=e,t.language=e,this.storage.setAppSettings(t),window.location.reload(),this.ss.hide()}isSelected(e){return this.i18n.current===e}};n.\u0275fac=function(t){return new(t||n)(o(M),o(O),o(k))},n.\u0275cmp=g({type:n,selectors:[["dsw-language-selector"]],standalone:!0,features:[y],decls:3,vars:0,consts:[[3,"click"],[3,"src"]],template:function(t,r){t&1&&(l(0,"ul"),u(1,P,3,2,"li",null,m),s()),t&2&&(a(),x(r.languages))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let i=n;return i})();export{L as LanguageSelectorComponent}; diff --git a/dist/chunk-B2BNZRWN.js b/dist/chunk-LT3W5FMN.js similarity index 99% rename from dist/chunk-B2BNZRWN.js rename to dist/chunk-LT3W5FMN.js index 5c13f61..758eb9d 100644 --- a/dist/chunk-B2BNZRWN.js +++ b/dist/chunk-LT3W5FMN.js @@ -1,3 +1,3 @@ import{$ as fr,B as St,Ba as Kt,Bc as ti,Ca as cs,Cc as Fo,D as At,Da as yt,E as Nt,Ea as lo,Ec as No,Fa as ds,Fb as ko,Fc as jo,G as ur,Ga as ho,Gc as Mt,H as oi,Ha as vt,Hc as Ar,I as Qn,Ic as Er,Ja as br,Ka as co,Kc as Bo,L as ai,La as uo,Lb as ut,M as jt,Ma as Ut,Mb as $e,N as pr,Na as li,Nb as Ro,O as eo,Oa as po,P as to,Pa as fo,Q as io,Qa as go,R as nt,Ra as mo,S as so,Sa as yo,T as Ge,Ta as vo,U as Ne,Ua as bo,V as Bt,Va as Jt,X as Ce,Y as Yt,Ya as xo,Z as ro,_ as Te,_a as Qt,a as Yn,aa as De,ab as _e,b as qn,ba as xe,bb as wo,c as Ci,ca as gr,cc as Oo,d as lr,da as no,db as Do,e as hr,ea as Ai,eb as ei,f as Lt,fa as oo,fb as xr,g as tt,ga as qt,gb as it,ha as Et,hb as Co,ia as Ei,ib as wr,j as Ft,ja as Mi,jb as ki,l as Qe,la as ao,m as Se,ma as zt,mb as us,mc as ps,n as Si,na as dt,nb as So,nc as Po,o as Zn,ob as Ao,oc as fs,p as Kn,pa as Zt,pb as Eo,pc as gs,q as ct,qb as Dr,qc as Cr,r as ke,rc as ms,s as hs,sb as Mo,sc as Io,t as rt,tc as Sr,u as cr,ua as mr,ub as To,uc as ys,v as Jn,va as yr,vc as vs,w as dr,wa as Ti,wc as bs,xa as vr,zc as Lo}from"./chunk-ZKAUCJHV.js";import{a as we,b as Ue,d as Tl,f as kl,h as st}from"./chunk-DEPBX7UX.js";var vl=Tl((yl,rr)=>{"use strict";(function(s,e){typeof rr=="object"&&rr.exports?(e.default=e,rr.exports=s&&s.document?e(s):e):typeof define=="function"&&define.amd?define("highcharts/highcharts",function(){return e(s)}):(s.Highcharts&&s.Highcharts.error(16,!0),s.Highcharts=e(s))})(typeof window<"u"?window:yl,function(s){"use strict";var e={};function r(t,i,n,h){t.hasOwnProperty(i)||(t[i]=h.apply(null,n),typeof CustomEvent=="function"&&s.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:t[i]}})))}return r(e,"Core/Globals.js",[],function(){var t,i;return(i=t||(t={})).SVG_NS="http://www.w3.org/2000/svg",i.product="Highcharts",i.version="11.4.3",i.win=s!==void 0?s:{},i.doc=i.win.document,i.svg=i.doc&&i.doc.createElementNS&&!!i.doc.createElementNS(i.SVG_NS,"svg").createSVGRect,i.userAgent=i.win.navigator&&i.win.navigator.userAgent||"",i.isChrome=i.userAgent.indexOf("Chrome")!==-1,i.isFirefox=i.userAgent.indexOf("Firefox")!==-1,i.isMS=/(edge|msie|trident)/i.test(i.userAgent)&&!i.win.opera,i.isSafari=!i.isChrome&&i.userAgent.indexOf("Safari")!==-1,i.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(i.userAgent),i.isWebKit=i.userAgent.indexOf("AppleWebKit")!==-1,i.deg2rad=2*Math.PI/360,i.hasBidiBug=i.isFirefox&&4>parseInt(i.userAgent.split("Firefox/")[1],10),i.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],i.noop=function(){},i.supportsPassiveEvents=function(){let n=!1;if(!i.isMS){let h=Object.defineProperty({},"passive",{get:function(){n=!0}});i.win.addEventListener&&i.win.removeEventListener&&(i.win.addEventListener("testPassive",i.noop,h),i.win.removeEventListener("testPassive",i.noop,h))}return n}(),i.charts=[],i.composed=[],i.dateFormats={},i.seriesTypes={},i.symbolSizes={},i.chartCount=0,t}),r(e,"Core/Utilities.js",[e["Core/Globals.js"]],function(t){let i,{charts:n,doc:h,win:v}=t;function q(a,o,d,l){let p=o?"Highcharts error":"Highcharts warning";a===32&&(a=`${p}: Deprecated member`);let m=z(a),O=m?`${p} #${a}: www.highcharts.com/errors/${a}/`:a.toString();if(l!==void 0){let j="";m&&(O+="?"),F(l,function(se,A){j+=` - ${A}: ${se}`,m&&(O+=encodeURI(A)+"="+encodeURI(se))}),O+=j}w(t,"displayError",{chart:d,code:a,message:O,params:l},function(){if(o)throw Error(O);v.console&&q.messages.indexOf(O)===-1&&console.warn(O)}),q.messages.push(O)}function B(a,o){return parseInt(a,o||10)}function Y(a){return typeof a=="string"}function _(a){let o=Object.prototype.toString.call(a);return o==="[object Array]"||o==="[object Array Iterator]"}function H(a,o){return!!a&&typeof a=="object"&&(!o||!_(a))}function E(a){return H(a)&&typeof a.nodeType=="number"}function N(a){let o=a&&a.constructor;return!!(H(a,!0)&&!E(a)&&o&&o.name&&o.name!=="Object")}function z(a){return typeof a=="number"&&!isNaN(a)&&a<1/0&&a>-1/0}function k(a){return a!=null}function x(a,o,d){let l,p=Y(o)&&!k(d),m=(O,j)=>{k(O)?a.setAttribute(j,O):p?(l=a.getAttribute(j))||j!=="class"||(l=a.getAttribute(j+"Name")):a.removeAttribute(j)};return Y(o)?m(d,o):F(o,m),l}function P(a){return _(a)?a:[a]}function L(a,o){let d;for(d in a||(a={}),o)a[d]=o[d];return a}function T(){let a=arguments,o=a.length;for(let d=0;d1e14?a:parseFloat(a.toPrecision(o||14))}(q||(q={})).messages=[],Math.easeInOutSine=function(a){return-.5*(Math.cos(Math.PI*a)-1)};let W=Array.prototype.find?function(a,o){return a.find(o)}:function(a,o){let d,l=a.length;for(d=0;dj.order-se.order),p.forEach(j=>{j.fn.call(a,d)===!1&&d.preventDefault()})}l&&!d.defaultPrevented&&l.call(a,d)}F({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(a,o){t[o]=function(d){return q(32,!1,void 0,{[`Highcharts.${o}`]:`use Array.${a}`}),Array.prototype[a].apply(d,[].slice.call(arguments,1))}});let u=function(){let a=Math.random().toString(36).substring(2,9)+"-",o=0;return function(){return"highcharts-"+(i?"":a)+o++}}();return v.jQuery&&(v.jQuery.fn.highcharts=function(){let a=[].slice.call(arguments);if(this[0])return a[0]?(new t[Y(a[0])?a.shift():"Chart"](this[0],a[0],a[1]),this):n[x(this[0],"data-highcharts-chart")]}),{addEvent:function(a,o,d,l={}){let p=typeof a=="function"&&a.prototype||a;Object.hasOwnProperty.call(p,"hcEvents")||(p.hcEvents={});let m=p.hcEvents;t.Point&&a instanceof t.Point&&a.series&&a.series.chart&&(a.series.chart.runTrackerClick=!0);let O=a.addEventListener;O&&O.call(a,o,d,!!t.supportsPassiveEvents&&{passive:l.passive===void 0?o.indexOf("touch")!==-1:l.passive,capture:!1}),m[o]||(m[o]=[]);let j={fn:d,order:typeof l.order=="number"?l.order:1/0};return m[o].push(j),m[o].sort((se,A)=>se.order-A.order),function(){f(a,o,d)}},arrayMax:function(a){let o=a.length,d=a[0];for(;o--;)a[o]>d&&(d=a[o]);return d},arrayMin:function(a){let o=a.length,d=a[0];for(;o--;)a[o]o?a{let l=o%2/2,p=d?-1:1;return(Math.round(a*p-l)+l)*p},css:g,defined:k,destroyObjectProperties:function(a,o,d){F(a,function(l,p){l!==o&&l?.destroy&&l.destroy(),(l?.destroy||!d)&&delete a[p]})},diffObjects:function(a,o,d,l){let p={};return function m(O,j,se,A){let $=d?j:O;F(O,function(K,Z){if(!A&&l&&l.indexOf(Z)>-1&&j[Z]){K=P(K),se[Z]=[];for(let re=0;re{if(j.length>1)for(m=l=j.length-1;m>0;m--)(p=j[m]-j[m-1])<0&&!O?(o?.(),o=void 0):p&&(d===void 0||p=O-1&&(O=Math.floor(j)),Math.max(0,O-(a(o,"padding-left",!0)||0)-(a(o,"padding-right",!0)||0))}if(d==="height")return Math.max(0,Math.min(o.offsetHeight,o.scrollHeight)-(a(o,"padding-top",!0)||0)-(a(o,"padding-bottom",!0)||0));let m=v.getComputedStyle(o,void 0);return m&&(p=m.getPropertyValue(d),T(l,d!=="opacity")&&(p=B(p))),p},inArray:function(a,o,d){return q(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),o.indexOf(a,d)},insertItem:function(a,o){let d,l=a.options.index,p=o.length;for(d=a.options.isInternal?p:0;d=a))&&(p||!(j<=(o[m]+(o[m+1]||o[m]))/2)));m++);return Q(O*d,-Math.round(Math.log(.001)/Math.LN10))},objectEach:F,offset:function(a){let o=h.documentElement,d=a.parentElement||a.parentNode?a.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:d.top+(v.pageYOffset||o.scrollTop)-(o.clientTop||0),left:d.left+(v.pageXOffset||o.scrollLeft)-(o.clientLeft||0),width:d.width,height:d.height}},pad:function(a,o,d){return Array((o||2)+1-String(a).replace("-","").length).join(d||"0")+a},pick:T,pInt:B,pushUnique:function(a,o){return 0>a.indexOf(o)&&!!a.push(o)},relativeLength:function(a,o,d){return/%$/.test(a)?o*parseFloat(a)/100+(d||0):parseFloat(a)},removeEvent:f,replaceNested:function(a,...o){let d,l;do for(l of(d=a,o))a=a.replace(l[0],l[1]);while(a!==d);return a},splat:P,stableSort:function(a,o){let d,l,p=a.length;for(l=0;l0?setTimeout(a,o,d):(a.call(0,d),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:u,useSerialIds:function(a){return i=T(a,i)},wrap:function(a,o,d){let l=a[o];a[o]=function(){let p=arguments,m=this;return d.apply(this,[function(){return l.apply(m,arguments.length?arguments:p)}].concat([].slice.call(arguments)))}}}}),r(e,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}}),r(e,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),r(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i){let{win:n}=t,{defined:h,error:v,extend:q,isNumber:B,isObject:Y,merge:_,objectEach:H,pad:E,pick:N,splat:z,timeUnits:k}=i,x=t.isSafari&&n.Intl&&n.Intl.DateTimeFormat.prototype.formatRange,P=t.isSafari&&n.Intl&&!n.Intl.DateTimeFormat.prototype.formatRange;class L{constructor(g){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=n.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(g)}get(g,M){if(this.variableTimezone||this.timezoneOffset){let Q=M.getTime(),W=Q-this.getTimezoneOffset(M);M.setTime(W);let F=M["getUTC"+g]();return M.setTime(Q),F}return this.useUTC?M["getUTC"+g]():M["get"+g]()}set(g,M,Q){if(this.variableTimezone||this.timezoneOffset){if(g==="Milliseconds"||g==="Seconds"||g==="Minutes"&&this.getTimezoneOffset(M)%36e5==0)return M["setUTC"+g](Q);let W=this.getTimezoneOffset(M),F=M.getTime()-W;M.setTime(F),M["setUTC"+g](Q);let f=this.getTimezoneOffset(M);return F=M.getTime()+f,M.setTime(F)}return this.useUTC||x&&g==="FullYear"?M["setUTC"+g](Q):M["set"+g](Q)}update(g={}){let M=N(g.useUTC,!0);this.options=g=_(!0,this.options,g),this.Date=g.Date||n.Date||Date,this.useUTC=M,this.timezoneOffset=M&&g.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=M&&!!(g.getTimezoneOffset||g.timezone)}makeTime(g,M,Q,W,F,f){let w,u,a;return this.useUTC?(w=this.Date.UTC.apply(0,arguments),u=this.getTimezoneOffset(w),w+=u,u!==(a=this.getTimezoneOffset(w))?w+=a-u:u-36e5!==this.getTimezoneOffset(w-36e5)||P||(w-=36e5)):w=new this.Date(g,M,N(Q,1),N(W,0),N(F,0),N(f,0)).getTime(),w}timezoneOffsetFunction(){let g=this,M=this.options,Q=M.getTimezoneOffset;return this.useUTC?M.timezone?W=>{try{let F=`shortOffset,${M.timezone||""}`,[f,w,u,a,o=0]=(L.formatCache[F]=L.formatCache[F]||Intl.DateTimeFormat("en",{timeZone:M.timezone,timeZoneName:"shortOffset"})).format(W).split(/(GMT|:)/).map(Number),d=-(36e5*(u+o/60));if(B(d))return d}catch{v(34)}return 0}:this.useUTC&&Q?W=>6e4*Q(W.valueOf()):()=>6e4*(g.timezoneOffset||0):W=>6e4*new Date(W.toString()).getTimezoneOffset()}dateFormat(g,M,Q){if(!h(M)||isNaN(M))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";g=N(g,"%Y-%m-%d %H:%M:%S");let W=this,F=new this.Date(M),f=this.get("Hours",F),w=this.get("Day",F),u=this.get("Date",F),a=this.get("Month",F),o=this.get("FullYear",F),d=t.defaultOptions.lang,l=d&&d.weekdays,p=d&&d.shortWeekdays;return H(q({a:p?p[w]:l[w].substr(0,3),A:l[w],d:E(u),e:E(u,2," "),w,b:d.shortMonths[a],B:d.months[a],m:E(a+1),o:a+1,y:o.toString().substr(2,2),Y:o,H:E(f),k:f,I:E(f%12||12),l:f%12||12,M:E(this.get("Minutes",F)),p:f<12?"AM":"PM",P:f<12?"am":"pm",S:E(this.get("Seconds",F)),L:E(Math.floor(M%1e3),3)},t.dateFormats),function(m,O){for(;g.indexOf("%"+O)!==-1;)g=g.replace("%"+O,typeof m=="function"?m.call(W,M):m)}),Q?g.substr(0,1).toUpperCase()+g.substr(1):g}resolveDTLFormat(g){return Y(g,!0)?g:{main:(g=z(g))[0],from:g[1],to:g[2]}}getTimeTicks(g,M,Q,W){let F,f,w,u,a=this,o=a.Date,d=[],l={},p=new o(M),m=g.unitRange,O=g.count||1;if(W=N(W,1),h(M)){a.set("Milliseconds",p,m>=k.second?0:O*Math.floor(a.get("Milliseconds",p)/O)),m>=k.second&&a.set("Seconds",p,m>=k.minute?0:O*Math.floor(a.get("Seconds",p)/O)),m>=k.minute&&a.set("Minutes",p,m>=k.hour?0:O*Math.floor(a.get("Minutes",p)/O)),m>=k.hour&&a.set("Hours",p,m>=k.day?0:O*Math.floor(a.get("Hours",p)/O)),m>=k.day&&a.set("Date",p,m>=k.month?1:Math.max(1,O*Math.floor(a.get("Date",p)/O))),m>=k.month&&(a.set("Month",p,m>=k.year?0:O*Math.floor(a.get("Month",p)/O)),f=a.get("FullYear",p)),m>=k.year&&(f-=f%O,a.set("FullYear",p,f)),m===k.week&&(u=a.get("Day",p),a.set("Date",p,a.get("Date",p)-u+W+(u4*k.month||a.getTimezoneOffset(M)!==a.getTimezoneOffset(Q));let $=p.getTime();for(F=1;$1?$=a.makeTime(f,j,se,A+F*O):$+=m*O,F++;d.push($),m<=k.hour&&d.length<1e4&&d.forEach(function(K){K%18e5==0&&a.dateFormat("%H%M%S%L",K)==="000000000"&&(l[K]="day")})}return d.info=q(g,{higherRanks:l,totalRange:m*O}),d}getDateFormat(g,M,Q,W){let F=this.dateFormat("%m-%d %H:%M:%S.%L",M),f="01-01 00:00:00.000",w={millisecond:15,second:12,minute:9,hour:6,day:3},u="millisecond",a=u;for(u in k){if(g===k.week&&+this.dateFormat("%w",M)===Q&&F.substr(6)===f.substr(6)){u="week";break}if(k[u]>g){u=a;break}if(w[u]&&F.substr(w[u])!==f.substr(w[u]))break;u!=="week"&&(a=u)}return this.resolveDTLFormat(W[u]).main}}return L.formatCache={},L}),r(e,"Core/Defaults.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],function(t,i,n,h,v){let{isTouchDevice:q}=i,{fireEvent:B,merge:Y}=v,_={colors:n.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:E=>Math.sqrt(1-Math.pow(E-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:q?25:10,headerFormat:'{point.key}
',pointFormat:'\u25CF {series.name}: {point.y}
',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"0.6em"},text:"Highcharts.com"}};_.chart.styledMode=!1;let H=new h(_.time);return{defaultOptions:_,defaultTime:H,getOptions:function(){return _},setOptions:function(E){return B(i,"setOptions",{options:E}),Y(!0,_,E),(E.time||E.global)&&(i.time?i.time.update(Y(_.global,_.time,E.global,E.time)):i.time=H),_}}}),r(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i){let{isNumber:n,merge:h,pInt:v}=i;class q{static parse(Y){return Y?new q(Y):q.None}constructor(Y){let _,H,E,N;this.rgba=[NaN,NaN,NaN,NaN],this.input=Y;let z=t.Color;if(z&&z!==q)return new z(Y);if(typeof Y=="object"&&Y.stops!==void 0)this.stops=Y.stops.map(k=>new q(k[1]));else if(typeof Y=="string"){if(this.input=Y=q.names[Y.toLowerCase()]||Y,Y.charAt(0)==="#"){let k=Y.length,x=parseInt(Y.substr(1),16);k===7?H=[(16711680&x)>>16,(65280&x)>>8,255&x,1]:k===4&&(H=[(3840&x)>>4|(3840&x)>>8,(240&x)>>4|240&x,(15&x)<<4|15&x,1])}if(!H)for(E=q.parsers.length;E--&&!H;)(_=(N=q.parsers[E]).regex.exec(Y))&&(H=N.parse(_))}H&&(this.rgba=H)}get(Y){let _=this.input,H=this.rgba;if(typeof _=="object"&&this.stops!==void 0){let E=h(_);return E.stops=[].slice.call(E.stops),this.stops.forEach((N,z)=>{E.stops[z]=[E.stops[z][0],N.get(Y)]}),E}return H&&n(H[0])?Y!=="rgb"&&(Y||H[3]!==1)?Y==="a"?`${H[3]}`:"rgba("+H.join(",")+")":"rgb("+H[0]+","+H[1]+","+H[2]+")":_}brighten(Y){let _=this.rgba;if(this.stops)this.stops.forEach(function(H){H.brighten(Y)});else if(n(Y)&&Y!==0)for(let H=0;H<3;H++)_[H]+=v(255*Y),_[H]<0&&(_[H]=0),_[H]>255&&(_[H]=255);return this}setOpacity(Y){return this.rgba[3]=Y,this}tweenTo(Y,_){let H=this.rgba,E=Y.rgba;if(!n(H[0])||!n(E[0]))return Y.input||"none";let N=E[3]!==1||H[3]!==1;return(N?"rgba(":"rgb(")+Math.round(E[0]+(H[0]-E[0])*(1-_))+","+Math.round(E[1]+(H[1]-E[1])*(1-_))+","+Math.round(E[2]+(H[2]-E[2])*(1-_))+(N?","+(E[3]+(H[3]-E[3])*(1-_)):"")+")"}}return q.names={white:"#ffffff",black:"#000000"},q.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(B){return[v(B[1]),v(B[2]),v(B[3]),parseFloat(B[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(B){return[v(B[1]),v(B[2]),v(B[3]),1]}}],q.None=new q(""),q}),r(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n){let{parse:h}=t,{win:v}=i,{isNumber:q,objectEach:B}=n;class Y{constructor(H,E,N){this.pos=NaN,this.options=E,this.elem=H,this.prop=N}dSetter(){let H=this.paths,E=H&&H[0],N=H&&H[1],z=this.now||0,k=[];if(z!==1&&E&&N)if(E.length===N.length&&z<1)for(let x=0;x=L+this.startTime?(this.now=this.end,this.pos=1,this.update(),T[this.prop]=!0,N=!0,B(T,function(g){g!==!0&&(N=!1)}),N&&P&&P.call(x),E=!1):(this.pos=k.easing((z-this.startTime)/L),this.now=this.start+(this.end-this.start)*this.pos,this.update(),E=!0),E}initPath(H,E,N){let z=H.startX,k=H.endX,x=N.slice(),P=H.isArea,L=P?2:1,T,g,M,Q,W=E&&E.slice();if(!W)return[x,x];function F(w,u){for(;w.length{let Q=E(M.options.animation);T=B(k)&&n(k.defer)?P.defer:Math.max(T,Q.duration+Q.defer),g=Math.min(P.duration,Q.duration)}),z.renderer.forExport&&(T=0),{defer:Math.max(0,T-g),duration:Math.min(T,g)}},setAnimation:function(z,k){k.renderer.globalAnimation=H(z,k.options.chart.animation,!0)},stop:N}}),r(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i){let{SVG_NS:n,win:h}=t,{attr:v,createElement:q,css:B,error:Y,isFunction:_,isString:H,objectEach:E,splat:N}=i,{trustedTypes:z}=h,k=z&&_(z.createPolicy)&&z.createPolicy("highcharts",{createHTML:T=>T}),x=k?k.createHTML(""):"",P=function(){try{return!!new DOMParser().parseFromString(x,"text/html")}catch{return!1}}();class L{static filterUserAttributes(g){return E(g,(M,Q)=>{let W=!0;L.allowedAttributes.indexOf(Q)===-1&&(W=!1),["background","dynsrc","href","lowsrc","src"].indexOf(Q)!==-1&&(W=H(M)&&L.allowedReferences.some(F=>M.indexOf(F)===0)),W||(Y(33,!1,void 0,{"Invalid attribute in config":`${Q}`}),delete g[Q]),H(M)&&g[Q]&&(g[Q]=M.replace(/{let W=Q.split(":").map(f=>f.trim()),F=W.shift();return F&&W.length&&(M[F.replace(/-([a-z])/g,f=>f[1].toUpperCase())]=W.join(":")),M},{})}static setElementHTML(g,M){g.innerHTML=L.emptyHTML,M&&new L(M).addToDOM(g)}constructor(g){this.nodes=typeof g=="string"?this.parseMarkup(g):g}addToDOM(g){return function M(Q,W){let F;return N(Q).forEach(function(f){let w,u=f.tagName,a=f.textContent?t.doc.createTextNode(f.textContent):void 0,o=L.bypassHTMLFiltering;if(u)if(u==="#text")w=a;else if(L.allowedTags.indexOf(u)!==-1||o){let d=u==="svg"?n:W.namespaceURI||n,l=t.doc.createElementNS(d,u),p=f.attributes||{};E(f,function(m,O){O!=="tagName"&&O!=="attributes"&&O!=="children"&&O!=="style"&&O!=="textContent"&&(p[O]=m)}),v(l,o?p:L.filterUserAttributes(p)),f.style&&B(l,f.style),a&&l.appendChild(a),M(f.children||[],l),w=l}else Y(33,!1,void 0,{"Invalid tagName in config":u});w&&W.appendChild(w),F=w}),F}(this.nodes,g)}parseMarkup(g){let M,Q=[];if(g=g.trim().replace(/ style=(["'])/g," data-style=$1"),P)M=new DOMParser().parseFromString(k?k.createHTML(g):g,"text/html");else{let F=q("div");F.innerHTML=g,M={body:F}}let W=(F,f)=>{let w=F.nodeName.toLowerCase(),u={tagName:w};w==="#text"&&(u.textContent=F.textContent||"");let a=F.attributes;if(a){let o={};[].forEach.call(a,d=>{d.name==="data-style"?u.style=L.parseStyle(d.value):o[d.name]=d.value}),u.attributes=o}if(F.childNodes.length){let o=[];[].forEach.call(F.childNodes,d=>{W(d,o)}),o.length&&(u.children=o)}f.push(u)};return[].forEach.call(M.body.childNodes,F=>W(F,Q)),Q}}return L.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],L.allowedReferences=["https://","http://","mailto:","/","../","./","#"],L.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],L.emptyHTML=x,L.bypassHTMLFiltering=!1,L}),r(e,"Core/Templating.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],function(t,i){let{defaultOptions:n,defaultTime:h}=t,{extend:v,getNestedProperty:q,isArray:B,isNumber:Y,isObject:_,pick:H,pInt:E}=i,N={add:(x,P)=>x+P,divide:(x,P)=>P!==0?x/P:"",eq:(x,P)=>x==P,each:function(x){let P=arguments[arguments.length-1];return!!B(x)&&x.map((L,T)=>z(P.body,v(_(L)?L:{"@this":L},{"@index":T,"@first":T===0,"@last":T===x.length-1}))).join("")},ge:(x,P)=>x>=P,gt:(x,P)=>x>P,if:x=>!!x,le:(x,P)=>x<=P,lt:(x,P)=>xx*P,ne:(x,P)=>x!=P,subtract:(x,P)=>x-P,unless:x=>!x};function z(x="",P,L){let T=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,g=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,M=[],Q=/f$/,W=/\.([0-9])/,F=n.lang,f=L&&L.time||h,w=L&&L.numberFormatter||k,u=(p="")=>{let m;return p==="true"||p!=="false"&&((m=Number(p)).toString()===p?m:q(p,P))},a,o,d=0,l;for(;(a=T.exec(x))!==null;){let p=g.exec(a[1]);p&&(a=p,l=!0),o&&o.isBlock||(o={ctx:P,expression:a[1],find:a[0],isBlock:a[1].charAt(0)==="#",start:a.index,startInner:a.index+a[0].length,length:a[0].length});let m=a[1].split(" ")[0].replace("#","");N[m]&&(o.isBlock&&m===o.fn&&d++,o.fn||(o.fn=m));let O=a[1]==="else";if(o.isBlock&&o.fn&&(a[1]===`/${o.fn}`||O))if(d)!O&&d--;else{let j=o.startInner,se=x.substr(j,a.index-j);o.body===void 0?(o.body=se,o.startInner=a.index+a[0].length):o.elseBody=se,o.find+=se+a[0],O||(M.push(o),o=void 0)}else o.isBlock||M.push(o);if(p&&!o?.isBlock)break}return M.forEach(p=>{let m,O,{body:j,elseBody:se,expression:A,fn:$}=p;if($){let K=[p],Z=A.split(" ");for(O=N[$].length;O--;)K.unshift(u(Z[O+1]));m=N[$].apply(P,K),p.isBlock&&typeof m=="boolean"&&(m=z(m?j:se,P,L))}else{let K=A.split(":");if(m=u(K.shift()||""),K.length&&typeof m=="number"){let Z=K.join(":");if(Q.test(Z)){let re=parseInt((Z.match(W)||["","-1"])[1],10);m!==null&&(m=w(m,re,F.decimalPoint,Z.indexOf(",")>-1?F.thousandsSep:""))}else m=f.dateFormat(Z,m)}}x=x.replace(p.find,H(m,""))}),l?z(x,P,L):x}function k(x,P,L,T){let g,M;x=+x||0,P=+P;let Q=n.lang,W=(x.toString().split(".")[1]||"").split("e")[0].length,F=x.toString().split("e"),f=P;P===-1?P=Math.min(W,20):Y(P)?P&&F[1]&&F[1]<0&&((M=P+ +F[1])>=0?(F[0]=(+F[0]).toExponential(M).split("e")[0],P=M):(F[0]=F[0].split(".")[0]||0,x=P<20?(F[0]*Math.pow(10,F[1])).toFixed(P):0,F[1]=0)):P=2;let w=(Math.abs(F[1]?F[0]:x)+Math.pow(10,-Math.max(P,W)-1)).toFixed(P),u=String(E(w)),a=u.length>3?u.length%3:0;return L=H(L,Q.decimalPoint),T=H(T,Q.thousandsSep),g=(x<0?"-":"")+(a?u.substr(0,a)+T:""),0>+F[1]&&!f?g="0":g+=u.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+T),P?g+=L+w.slice(-P):+g==0&&(g="0"),F[1]&&+g!=0&&(g+="e"+F[1]),g}return{dateFormat:function(x,P,L){return h.dateFormat(x,P,L)},format:z,helpers:N,numberFormat:k}}),r(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],function(t){var i,n;let h;return(n=i||(i={})).rendererTypes={},n.getRendererType=function(v=h){return n.rendererTypes[v]||n.rendererTypes[h]},n.registerRendererType=function(v,q,B){n.rendererTypes[v]=q,(!h||B)&&(h=v,t.Renderer=q)},i}),r(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],function(t){var i;let{clamp:n,pick:h,pushUnique:v,stableSort:q}=t;return(i||(i={})).distribute=function B(Y,_,H){let E=Y,N=E.reducedLen||_,z=(u,a)=>u.target-a.target,k=[],x=Y.length,P=[],L=k.push,T,g,M,Q=!0,W,F,f=0,w;for(T=x;T--;)f+=Y[T].size;if(f>N){for(q(Y,(u,a)=>(a.rank||0)-(u.rank||0)),M=(w=Y[0].rank===Y[Y.length-1].rank)?x/2:-1,g=w?M:x-1;M&&f>N;)W=Y[T=Math.floor(g)],v(P,T)&&(f-=W.size),g+=M,w&&g>=Y.length&&(M/=2,g=M);P.sort((u,a)=>a-u).forEach(u=>L.apply(k,Y.splice(u,1)))}for(q(Y,z),Y=Y.map(u=>({size:u.size,targets:[u.target],align:h(u.align,.5)}));Q;){for(T=Y.length;T--;)W=Y[T],F=(Math.min.apply(0,W.targets)+Math.max.apply(0,W.targets))/2,W.pos=n(F-W.size*W.align,0,_-W.size);for(T=Y.length,Q=!1;T--;)T>0&&Y[T-1].pos+Y[T-1].size>Y[T].pos&&(Y[T-1].size+=Y[T].size,Y[T-1].targets=Y[T-1].targets.concat(Y[T].targets),Y[T-1].align=.5,Y[T-1].pos+Y[T-1].size>_&&(Y[T-1].pos=_-Y[T-1].size),Y.splice(T,1),Q=!0)}return L.apply(E,k),T=0,Y.some(u=>{let a=0;return(u.targets||[]).some(()=>(E[T].pos=u.pos+a,H!==void 0&&Math.abs(E[T].pos-E[T].target)>H?(E.slice(0,T+1).forEach(o=>delete o.pos),E.reducedLen=(E.reducedLen||_)-.1*_,E.reducedLen>.1*_&&B(E,_,H),!0):(a+=E[T].size,T++,!1)))}),q(E,z),E},i}),r(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n,h){let{animate:v,animObject:q,stop:B}=t,{deg2rad:Y,doc:_,svg:H,SVG_NS:E,win:N}=n,{addEvent:z,attr:k,createElement:x,crisp:P,css:L,defined:T,erase:g,extend:M,fireEvent:Q,isArray:W,isFunction:F,isObject:f,isString:w,merge:u,objectEach:a,pick:o,pInt:d,pushUnique:l,replaceNested:p,syncTimeout:m,uniqueKey:O}=h;class j{_defaultGetter(A){let $=o(this[A+"Value"],this[A],this.element?this.element.getAttribute(A):null,0);return/^[\-0-9\.]+$/.test($)&&($=parseFloat($)),$}_defaultSetter(A,$,K){K.setAttribute($,A)}add(A){let $,K=this.renderer,Z=this.element;return A&&(this.parentGroup=A),this.textStr!==void 0&&this.element.nodeName==="text"&&K.buildText(this),this.added=!0,(!A||A.handleZ||this.zIndex)&&($=this.zIndexSetter()),$||(A?A.element:K.box).appendChild(Z),this.onAdd&&this.onAdd(),this}addClass(A,$){let K=$?"":this.attr("class")||"";return(A=(A||"").split(/ /g).reduce(function(Z,re){return K.indexOf(re)===-1&&Z.push(re),Z},K?[K]:[]).join(" "))!==K&&this.attr("class",A),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(A,$,K,Z=!0){let re,y,b,D,U={},c=this.renderer,S=c.alignedObjects,C=!!A;A?(this.alignOptions=A,this.alignByTranslate=$,this.alignTo=K):(A=this.alignOptions||{},$=this.alignByTranslate,K=this.alignTo);let R=!K||w(K)?K||"renderer":void 0;R&&(C&&l(S,this),K=void 0);let I=o(K,c[R],c),X=A.align,ie=A.verticalAlign;return re=(I.x||0)+(A.x||0),y=(I.y||0)+(A.y||0),X==="right"?b=1:X==="center"&&(b=2),b&&(re+=((I.width||0)-(A.width||0))/b),U[$?"translateX":"x"]=Math.round(re),ie==="bottom"?D=1:ie==="middle"&&(D=2),D&&(y+=((I.height||0)-(A.height||0))/D),U[$?"translateY":"y"]=Math.round(y),Z&&(this[this.placed?"animate":"attr"](U),this.placed=!0),this.alignAttr=U,this}alignSetter(A){let $={left:"start",center:"middle",right:"end"};$[A]&&(this.alignValue=A,this.element.setAttribute("text-anchor",$[A]))}animate(A,$,K){let Z=q(o($,this.renderer.globalAnimation,!0)),re=Z.defer;return _.hidden&&(Z.duration=0),Z.duration!==0?(K&&(Z.complete=K),m(()=>{this.element&&v(this,A,Z)},re)):(this.attr(A,void 0,K||Z.complete),a(A,function(y,b){Z.step&&Z.step.call(this,y,{prop:b,pos:1,elem:this})},this)),this}applyTextOutline(A){let $=this.element;A.indexOf("contrast")!==-1&&(A=A.replace(/contrast/g,this.renderer.getContrast($.style.fill)));let K=A.split(" "),Z=K[K.length-1],re=K[0];if(re&&re!=="none"&&n.svg){this.fakeTS=!0,re=re.replace(/(^[\d\.]+)(.*?)$/g,function(c,S,C){return 2*Number(S)+C}),this.removeTextOutline();let y=_.createElementNS(E,"tspan");k(y,{class:"highcharts-text-outline",fill:Z,stroke:Z,"stroke-width":re,"stroke-linejoin":"round"});let b=$.querySelector("textPath")||$;[].forEach.call(b.childNodes,c=>{let S=c.cloneNode(!0);S.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(C=>S.removeAttribute(C)),y.appendChild(S)});let D=0;[].forEach.call(b.querySelectorAll("text tspan"),c=>{D+=Number(c.getAttribute("dy"))});let U=_.createElementNS(E,"tspan");U.textContent="\u200B",k(U,{x:Number($.getAttribute("x")),dy:-D}),y.appendChild(U),b.insertBefore(y,b.firstChild)}}attr(A,$,K,Z){let{element:re}=this,y=j.symbolCustomAttribs,b,D,U=this,c;return typeof A=="string"&&$!==void 0&&(b=A,(A={})[b]=$),typeof A=="string"?U=(this[A+"Getter"]||this._defaultGetter).call(this,A,re):(a(A,function(S,C){c=!1,Z||B(this,C),this.symbolName&&y.indexOf(C)!==-1&&(D||(this.symbolAttr(A),D=!0),c=!0),this.rotation&&(C==="x"||C==="y")&&(this.doTransform=!0),c||(this[C+"Setter"]||this._defaultSetter).call(this,S,C,re)},this),this.afterSetters()),K&&K.call(this),U}clip(A){if(A&&!A.clipPath){let $=O()+"-",K=this.renderer.createElement("clipPath").attr({id:$}).add(this.renderer.defs);M(A,{clipPath:K,id:$,count:0}),A.add(K)}return this.attr("clip-path",A?`url(${this.renderer.url}#${A.id})`:"none")}crisp(A,$){$=Math.round($||A.strokeWidth||0);let K=A.x||this.x||0,Z=A.y||this.y||0,re=(A.width||this.width||0)+K,y=(A.height||this.height||0)+Z,b=P(K,$),D=P(Z,$);return M(A,{x:b,y:D,width:P(re,$)-b,height:P(y,$)-D}),T(A.strokeWidth)&&(A.strokeWidth=$),A}complexColor(A,$,K){let Z=this.renderer,re,y,b,D,U,c,S,C,R,I,X=[],ie;Q(this.renderer,"complexColor",{args:arguments},function(){if(A.radialGradient?y="radialGradient":A.linearGradient&&(y="linearGradient"),y){if(b=A[y],U=Z.gradients,c=A.stops,R=K.radialReference,W(b)&&(A[y]=b={x1:b[0],y1:b[1],x2:b[2],y2:b[3],gradientUnits:"userSpaceOnUse"}),y==="radialGradient"&&R&&!T(b.gradientUnits)&&(D=b,b=u(b,Z.getRadialAttr(R,D),{gradientUnits:"userSpaceOnUse"})),a(b,function(ee,oe){oe!=="id"&&X.push(oe,ee)}),a(c,function(ee){X.push(ee)}),U[X=X.join(",")])I=U[X].attr("id");else{b.id=I=O();let ee=U[X]=Z.createElement(y).attr(b).add(Z.defs);ee.radAttr=D,ee.stops=[],c.forEach(function(oe){oe[1].indexOf("rgba")===0?(S=(re=i.parse(oe[1])).get("rgb"),C=re.get("a")):(S=oe[1],C=1);let ce=Z.createElement("stop").attr({offset:oe[0],"stop-color":S,"stop-opacity":C}).add(ee);ee.stops.push(ce)})}ie="url("+Z.url+"#"+I+")",K.setAttribute($,ie),K.gradient=X,A.toString=function(){return ie}}})}css(A){let $=this.styles,K={},Z=this.element,re,y=!$;if($&&a(A,function(b,D){$&&$[D]!==b&&(K[D]=b,y=!0)}),y){$&&(A=M($,K)),A.width===null||A.width==="auto"?delete this.textWidth:Z.nodeName.toLowerCase()==="text"&&A.width&&(re=this.textWidth=d(A.width)),M(this.styles,A),re&&!H&&this.renderer.forExport&&delete A.width;let b=u(A);Z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(D=>b&&delete b[D]),b.color&&(b.fill=b.color)),L(Z,b)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),A.textOutline&&this.applyTextOutline(A.textOutline)),this}dashstyleSetter(A){let $,K=this["stroke-width"];if(K==="inherit"&&(K=1),A=A&&A.toLowerCase()){let Z=A.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for($=Z.length;$--;)Z[$]=""+d(Z[$])*o(K,NaN);A=Z.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",A)}}destroy(){let A=this,$=A.element||{},K=A.renderer,Z=$.ownerSVGElement,re=$.nodeName==="SPAN"&&A.parentGroup||void 0,y,b;if($.onclick=$.onmouseout=$.onmouseover=$.onmousemove=$.point=null,B(A),A.clipPath&&Z){let D=A.clipPath;[].forEach.call(Z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(U){U.getAttribute("clip-path").indexOf(D.element.id)>-1&&U.removeAttribute("clip-path")}),A.clipPath=D.destroy()}if(A.connector=A.connector?.destroy(),A.stops){for(b=0;bre&&re.join?(y?Z+" ":"")+re.join(" "):(re||"").toString(),"")),/(NaN| {2}|^$)/.test(A)&&(A="M 0 0"),this[$]!==A&&(K.setAttribute($,A),this[$]=A)}fillSetter(A,$,K){typeof A=="string"?K.setAttribute($,A):A&&this.complexColor(A,$,K)}hrefSetter(A,$,K){K.setAttributeNS("http://www.w3.org/1999/xlink",$,A)}getBBox(A,$){let K,Z,re,y,{alignValue:b,element:D,renderer:U,styles:c,textStr:S}=this,{cache:C,cacheKeys:R}=U,I=D.namespaceURI===this.SVG_NS,X=o($,this.rotation,0),ie=U.styledMode?D&&j.prototype.getStyle.call(D,"font-size"):c.fontSize;if(T(S)&&((y=S.toString()).indexOf("<")===-1&&(y=y.replace(/[0-9]/g,"0")),y+=["",U.rootFontSize,ie,X,this.textWidth,b,c.textOverflow,c.fontWeight].join(",")),y&&!A&&(K=C[y]),!K){if(I||U.forExport){try{re=this.fakeTS&&function(ee){let oe=D.querySelector(".highcharts-text-outline");oe&&L(oe,{display:ee})},F(re)&&re("none"),K=D.getBBox?M({},D.getBBox()):{width:D.offsetWidth,height:D.offsetHeight,x:0,y:0},F(re)&&re("")}catch{}(!K||K.width<0)&&(K={x:0,y:0,width:0,height:0})}else K=this.htmlGetBBox();Z=K.height,I&&(K.height=Z={"11px,17":14,"13px,20":16}[`${ie||""},${Math.round(Z)}`]||Z),X&&(K=this.getRotatedBox(K,X))}if(y&&(S===""||K.height>0)){for(;R.length>250;)delete C[R.shift()];C[y]||R.push(y),C[y]=K}return K}getRotatedBox(A,$){let{x:K,y:Z,width:re,height:y}=A,{alignValue:b,translateY:D,rotationOriginX:U=0,rotationOriginY:c=0}=this,S={right:1,center:.5}[b||0]||0,C=Number(this.element.getAttribute("y")||0)-(D?0:Z),R=$*Y,I=($-90)*Y,X=Math.cos(R),ie=Math.sin(R),ee=re*X,oe=re*ie,ce=Math.cos(I),de=Math.sin(I),[[V,G],[J,te]]=[U,c].map(Ee=>[Ee-Ee*X,Ee*ie]),ae=K+S*(re-ee)+V+te+C*ce,ne=ae+ee,he=ne-y*ce,le=he-ee,ue=Z+C-S*oe-G+J+C*de,fe=ue+oe,ge=fe-y*de,pe=ge-oe,ye=Math.min(ae,ne,he,le),be=Math.min(ue,fe,ge,pe),ve=Math.max(ae,ne,he,le)-ye,me=Math.max(ue,fe,ge,pe)-be;return{x:ye,y:be,width:ve,height:me}}getStyle(A){return N.getComputedStyle(this.element||this,"").getPropertyValue(A)}hasClass(A){return(""+this.attr("class")).split(" ").indexOf(A)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(A,$){this.onEvents={},this.opacity=1,this.SVG_NS=E,this.element=$==="span"||$==="body"?x($):_.createElementNS(this.SVG_NS,$),this.renderer=A,this.styles={},Q(this,"afterInit")}on(A,$){let{onEvents:K}=this;return K[A]&&K[A](),K[A]=z(this.element,A,$),this}opacitySetter(A,$,K){let Z=Number(Number(A).toFixed(3));this.opacity=Z,K.setAttribute($,Z)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(A){return this.attr("class",(""+this.attr("class")).replace(w(A)?RegExp(`(^| )${A}( |$)`):A," ").replace(/ +/g," ").trim())}removeTextOutline(){let A=this.element.querySelector("tspan.highcharts-text-outline");A&&this.safeRemoveChild(A)}safeRemoveChild(A){let $=A.parentNode;$&&$.removeChild(A)}setRadialReference(A){let $=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=A,$&&$.radAttr&&$.animate(this.renderer.getRadialAttr(A,$.radAttr)),this}setTextPath(A,$){$=u(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},$);let K=this.renderer.url,Z=this.text||this,re=Z.textPath,{attributes:y,enabled:b}=$;if(A=A||re&&re.path,re&&re.undo(),A&&b){let D=z(Z,"afterModifyTree",U=>{if(A&&b){let c=A.attr("id");c||A.attr("id",c=O());let S={x:0,y:0};T(y.dx)&&(S.dx=y.dx,delete y.dx),T(y.dy)&&(S.dy=y.dy,delete y.dy),Z.attr(S),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let C=U.nodes.slice(0);U.nodes.length=0,U.nodes[0]={tagName:"textPath",attributes:M(y,{"text-anchor":y.textAnchor,href:`${K}#${c}`}),children:C}}});Z.textPath={path:A,undo:D}}else Z.attr({dx:0,dy:0}),delete Z.textPath;return this.added&&(Z.textCache="",this.renderer.buildText(Z)),this}shadow(A){let{renderer:$}=this,K=u(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},f(A)?A:{}),Z=$.shadowDefinition(K);return this.attr({filter:A?`url(${$.url}#${Z})`:"none"})}show(A=!0){return this.attr({visibility:A?"inherit":"visible"})}"stroke-widthSetter"(A,$,K){this[$]=A,K.setAttribute($,A)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let A=this.getStyle("stroke-width"),$=0,K;return/px$/.test(A)?$=d(A):A!==""&&(k(K=_.createElementNS(E,"rect"),{width:A,"stroke-width":0}),this.element.parentNode.appendChild(K),$=K.getBBox().width,K.parentNode.removeChild(K)),$}symbolAttr(A){let $=this;j.symbolCustomAttribs.forEach(function(K){$[K]=o(A[K],$[K])}),$.attr({d:$.renderer.symbols[$.symbolName]($.x,$.y,$.width,$.height,$)})}textSetter(A){A!==this.textStr&&(delete this.textPxLength,this.textStr=A,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(A){let $=this.element,K=$.getElementsByTagName("title")[0]||_.createElementNS(this.SVG_NS,"title");$.insertBefore?$.insertBefore(K,$.firstChild):$.appendChild(K),K.textContent=p(o(A,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let A=this.element;return A.parentNode.appendChild(A),this}translate(A,$){return this.attr({translateX:A,translateY:$})}updateTransform(A="transform"){let{element:$,matrix:K,rotation:Z=0,rotationOriginX:re,rotationOriginY:y,scaleX:b,scaleY:D,translateX:U=0,translateY:c=0}=this,S=["translate("+U+","+c+")"];T(K)&&S.push("matrix("+K.join(",")+")"),Z&&(S.push("rotate("+Z+" "+o(re,$.getAttribute("x"),0)+" "+o(y,$.getAttribute("y")||0)+")"),this.text?.element.tagName==="SPAN"&&this.text.attr({rotation:Z,rotationOriginX:(re||0)-this.padding,rotationOriginY:(y||0)-this.padding})),(T(b)||T(D))&&S.push("scale("+o(b,1)+" "+o(D,1)+")"),S.length&&!(this.text||this).textPath&&$.setAttribute(A,S.join(" "))}visibilitySetter(A,$,K){A==="inherit"?K.removeAttribute($):this[$]!==A&&K.setAttribute($,A),this[$]=A}xGetter(A){return this.element.nodeName==="circle"&&(A==="x"?A="cx":A==="y"&&(A="cy")),this._defaultGetter(A)}zIndexSetter(A,$){let K=this.renderer,Z=this.parentGroup,re=(Z||K).element||K.box,y=this.element,b=re===K.box,D,U,c,S=!1,C,R=this.added,I;if(T(A)?(y.setAttribute("data-z-index",A),A=+A,this[$]===A&&(R=!1)):T(this[$])&&y.removeAttribute("data-z-index"),this[$]=A,R){for((A=this.zIndex)&&Z&&(Z.handleZ=!0),I=(D=re.childNodes).length-1;I>=0&&!S;I--)C=!T(c=(U=D[I]).getAttribute("data-z-index")),U!==y&&(A<0&&C&&!b&&!I?(re.insertBefore(y,D[I]),S=!0):(d(c)<=A||C&&(!T(A)||A>=0))&&(re.insertBefore(y,D[I+1]),S=!0));S||(re.insertBefore(y,D[b?3:0]),S=!0)}return S}}return j.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],j.prototype.strokeSetter=j.prototype.fillSetter,j.prototype.yGetter=j.prototype.xGetter,j.prototype.matrixSetter=j.prototype.rotationOriginXSetter=j.prototype.rotationOriginYSetter=j.prototype.rotationSetter=j.prototype.scaleXSetter=j.prototype.scaleYSetter=j.prototype.translateXSetter=j.prototype.translateYSetter=j.prototype.verticalAlignSetter=function(se,A){this[A]=se,this.doTransform=!0},j}),r(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,i){let{defined:n,extend:h,isNumber:v,merge:q,pick:B,removeEvent:Y}=i;class _ extends t{constructor(E,N,z,k,x,P,L,T,g,M){let Q;super(E,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.textStr=N,this.x=z,this.y=k,this.anchorX=P,this.anchorY=L,this.baseline=g,this.className=M,this.addClass(M==="button"?"highcharts-no-tooltip":"highcharts-label"),M&&this.addClass("highcharts-"+M),this.text=E.text(void 0,0,0,T).attr({zIndex:1}),typeof x=="string"&&((Q=/^url\((.*?)\)$/.test(x))||this.renderer.symbols[x])&&(this.symbolKey=x),this.bBox=_.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=E.styledMode||Q,this.deferredAttr={},this.alignFactor=0}alignSetter(E){let N={left:0,center:.5,right:1}[E];N!==this.alignFactor&&(this.alignFactor=N,this.bBox&&v(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(E,N){this.anchorX=E,this.boxAttr(N,Math.round(E)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(E,N){this.anchorY=E,this.boxAttr(N,E-this.ySetting)}boxAttr(E,N){this.box?this.box.attr(E,N):this.deferredAttr[E]=N}css(E){if(E){let N={};E=q(E),_.textProps.forEach(z=>{E[z]!==void 0&&(N[z]=E[z],delete E[z])}),this.text.css(N),"fontSize"in N||"fontWeight"in N?this.updateTextPadding():("width"in N||"textOverflow"in N)&&this.updateBoxSize()}return t.prototype.css.call(this,E)}destroy(){Y(this.element,"mouseenter"),Y(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)}fillSetter(E,N){E&&(this.needsBox=!0),this.fill=E,this.boxAttr(N,E)}getBBox(E,N){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:z,height:k=0,translateX:x=0,translateY:P=0,width:L=0}=this,T=B(this.paddingLeft,z),g=N??(this.rotation||0),M={width:L,height:k,x:x+this.bBox.x-T,y:P+this.bBox.y-z+this.baselineOffset};return g&&(M=this.getRotatedBox(M,g)),M}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(E){this.heightSetting=E}onAdd(){this.text.add(this),this.attr({text:B(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&n(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(E,N){v(E)?E!==this[N]&&(this[N]=E,this.updateTextPadding()):this[N]=void 0}rSetter(E,N){this.boxAttr(N,E)}strokeSetter(E,N){this.stroke=E,this.boxAttr(N,E)}"stroke-widthSetter"(E,N){E&&(this.needsBox=!0),this["stroke-width"]=E,this.boxAttr(N,E)}"text-alignSetter"(E){this.textAlign=E}textSetter(E){E!==void 0&&this.text.attr({text:E}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let E,N=this.text,z={},k=this.padding,x=this.bBox=(!v(this.widthSetting)||!v(this.heightSetting)||this.textAlign)&&n(N.textStr)?N.getBBox(void 0,0):_.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||x.height||0)+2*k;let P=this.renderer.fontMetrics(N);if(this.baselineOffset=k+Math.min((this.text.firstLineMetrics||P).b,x.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-P.h)/2),this.needsBox&&!N.textPath){if(!this.box){let L=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();L.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),L.add(this)}E=this.getCrispAdjust(),z.x=E,z.y=(this.baseline?-this.baselineOffset:0)+E,z.width=Math.round(this.width),z.height=Math.round(this.height),this.box.attr(h(z,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let E=this.text;if(!E.textPath){this.updateBoxSize();let N=this.baseline?0:this.baselineOffset,z=B(this.paddingLeft,this.padding);n(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(z+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(z!==E.x||N!==E.y)&&(E.attr("x",z),E.hasBoxWidthChanged&&(this.bBox=E.getBBox(!0)),N!==void 0&&E.attr("y",N)),E.x=z,E.y=N}}widthSetter(E){this.widthSetting=v(E)?E:void 0}getPaddedWidth(){let E=this.padding,N=B(this.paddingLeft,E),z=B(this.paddingRight,E);return(this.widthSetting||this.bBox.width||0)+N+z}xSetter(E){this.x=E,this.alignFactor&&(E-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(E),this.attr("translateX",this.xSetting)}ySetter(E){this.ySetting=this.y=Math.round(E),this.attr("translateY",this.ySetting)}}return _.emptyBBox={width:0,height:0,x:0,y:0},_.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],_}),r(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],function(t){let{defined:i,isNumber:n,pick:h}=t;function v(Y,_,H,E,N){let z=[];if(N){let k=N.start||0,x=h(N.r,H),P=h(N.r,E||H),L=2e-4/Math.max(x,1),T=Math.abs((N.end||0)-k-2*Math.PI)0&&P0)return L;if(Y+x>H-k)if(P>_+k&&P<_+E-k)L.splice(3,1,["L",Y+H,P-6],["L",Y+H+6,P],["L",Y+H,P+6],["L",Y+H,_+E-z]);else if(x_+k&&P<_+E-k)L.splice(7,1,["L",Y,P+6],["L",Y-6,P],["L",Y,P-6],["L",Y,_+z]);else if(x>0){let T=P<_+k,g=T?_:_+E;L.splice(T?1:6,0,["L",x,P],["L",Y+z,g])}else L.splice(7,1,["L",Y,E/2],["L",x,P],["L",Y,E/2],["L",Y,_+z]);else P>E&&xk&&L.splice(1,1,["L",x-6,_],["L",x,_-6],["L",x+6,_],["L",H-z,_]);return L},circle:function(Y,_,H,E){return v(Y+H/2,_+E/2,H/2,E/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(Y,_,H,E){return[["M",Y+H/2,_],["L",Y+H,_+E/2],["L",Y+H/2,_+E],["L",Y,_+E/2],["Z"]]},rect:q,roundedRect:B,square:q,triangle:function(Y,_,H,E){return[["M",Y+H/2,_],["L",Y+H,_+E],["L",Y,_+E],["Z"]]},"triangle-down":function(Y,_,H,E){return[["M",Y,_],["L",Y+H,_],["L",Y+H/2,_+E],["Z"]]}}}),r(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n){let{doc:h,SVG_NS:v,win:q}=i,{attr:B,extend:Y,fireEvent:_,isString:H,objectEach:E,pick:N}=n;return class{constructor(z){let k=z.styles;this.renderer=z.renderer,this.svgElement=z,this.width=z.textWidth,this.textLineHeight=k&&k.lineHeight,this.textOutline=k&&k.textOutline,this.ellipsis=!!(k&&k.textOverflow==="ellipsis"),this.noWrap=!!(k&&k.whiteSpace==="nowrap")}buildSVG(){let z=this.svgElement,k=z.element,x=z.renderer,P=N(z.textStr,"").toString(),L=P.indexOf("<")!==-1,T=k.childNodes,g=!z.added&&x.box,M=[P,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,z.getStyle("font-size"),this.width].join(",");if(M!==z.textCache){z.textCache=M,delete z.actualWidth;for(let Q=T.length;Q--;)k.removeChild(T[Q]);if(L||this.ellipsis||this.width||z.textPath||P.indexOf(" ")!==-1&&(!this.noWrap||//g.test(P))){if(P!==""){g&&g.appendChild(k);let Q=new t(P);this.modifyTree(Q.nodes),Q.addToDOM(k),this.modifyDOM(),this.ellipsis&&(k.textContent||"").indexOf("\u2026")!==-1&&z.attr("title",this.unescapeEntities(z.textStr||"",["<",">"])),g&&g.removeChild(k)}}else k.appendChild(h.createTextNode(this.unescapeEntities(P)));H(this.textOutline)&&z.applyTextOutline&&z.applyTextOutline(this.textOutline)}}modifyDOM(){let z,k=this.svgElement,x=B(k.element,"x");for(k.firstLineMetrics=void 0;(z=k.element.firstChild)&&/^[\s\u200B]*$/.test(z.textContent||" ");)k.element.removeChild(z);[].forEach.call(k.element.querySelectorAll("tspan.highcharts-br"),(g,M)=>{g.nextSibling&&g.previousSibling&&(M===0&&g.previousSibling.nodeType===1&&(k.firstLineMetrics=k.renderer.fontMetrics(g.previousSibling)),B(g,{dy:this.getLineHeight(g.nextSibling),x}))});let P=this.width||0;if(!P)return;let L=(g,M)=>{let Q=g.textContent||"",W=Q.replace(/([^\^])-/g,"$1- ").split(" "),F=!this.noWrap&&(W.length>1||k.element.childNodes.length>1),f=this.getLineHeight(M),w=0,u=k.actualWidth;if(this.ellipsis)Q&&this.truncate(g,Q,void 0,0,Math.max(0,P-.8*f),(a,o)=>a.substring(0,o)+"\u2026");else if(F){let a=[],o=[];for(;M.firstChild&&M.firstChild!==g;)o.push(M.firstChild),M.removeChild(M.firstChild);for(;W.length;)W.length&&!this.noWrap&&w>0&&(a.push(g.textContent||""),g.textContent=W.join(" ").replace(/- /g,"-")),this.truncate(g,void 0,W,w===0&&u||0,P,(d,l)=>W.slice(0,l).join(" ").replace(/- /g,"-")),u=k.actualWidth,w++;o.forEach(d=>{M.insertBefore(d,g)}),a.forEach(d=>{M.insertBefore(h.createTextNode(d),g);let l=h.createElementNS(v,"tspan");l.textContent="\u200B",B(l,{dy:f,x}),M.insertBefore(l,g)})}},T=g=>{[].slice.call(g.childNodes).forEach(M=>{M.nodeType===q.Node.TEXT_NODE?L(M,g):(M.className.baseVal.indexOf("highcharts-br")!==-1&&(k.actualWidth=0),T(M))})};T(k.element)}getLineHeight(z){let k=z.nodeType===q.Node.TEXT_NODE?z.parentElement:z;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(k||this.svgElement.element).h}modifyTree(z){let k=(x,P)=>{let{attributes:L={},children:T,style:g={},tagName:M}=x,Q=this.renderer.styledMode;if(M==="b"||M==="strong"?Q?L.class="highcharts-strong":g.fontWeight="bold":(M==="i"||M==="em")&&(Q?L.class="highcharts-emphasized":g.fontStyle="italic"),g&&g.color&&(g.fill=g.color),M==="br"){L.class="highcharts-br",x.textContent="\u200B";let W=z[P+1];W&&W.textContent&&(W.textContent=W.textContent.replace(/^ +/gm,""))}else M==="a"&&T&&T.some(W=>W.tagName==="#text")&&(x.children=[{children:T,tagName:"tspan"}]);M!=="#text"&&M!=="a"&&(x.tagName="tspan"),Y(x,{attributes:L,style:g}),T&&T.filter(W=>W.tagName!=="#text").forEach(k)};z.forEach(k),_(this.svgElement,"afterModifyTree",{nodes:z})}truncate(z,k,x,P,L,T){let g,M,Q=this.svgElement,{rotation:W}=Q,F=[],f=x?1:0,w=(k||x||"").length,u=w,a=function(o,d){let l=d||o,p=z.parentNode;if(p&&F[l]===void 0&&p.getSubStringLength)try{F[l]=P+p.getSubStringLength(0,x?l+1:l)}catch{}return F[l]};if(Q.rotation=0,P+(M=a(z.textContent.length))>L){for(;f<=w;)u=Math.ceil((f+w)/2),x&&(g=T(x,u)),M=a(u,g&&g.length-1),f===w?f=w+1:M>L?w=u-1:f=u;w===0?z.textContent="":k&&w===k.length-1||(z.textContent=g||T(k||x,u))}x&&x.splice(0,u),Q.actualWidth=M,Q.rotation=W}unescapeEntities(z,k){return E(this.renderer.escapes,function(x,P){k&&k.indexOf(x)!==-1||(z=z.toString().replace(RegExp(x,"g"),P))}),z}}}),r(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Defaults.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q,B,Y,_,H){let E,{defaultOptions:N}=i,{charts:z,deg2rad:k,doc:x,isFirefox:P,isMS:L,isWebKit:T,noop:g,SVG_NS:M,symbolSizes:Q,win:W}=h,{addEvent:F,attr:f,createElement:w,crisp:u,css:a,defined:o,destroyObjectProperties:d,extend:l,isArray:p,isNumber:m,isObject:O,isString:j,merge:se,pick:A,pInt:$,replaceNested:K,uniqueKey:Z}=H;class re{constructor(b,D,U,c,S,C,R){let I,X,ie=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),ee=ie.element;R||ie.css(this.getStyle(c||{})),b.appendChild(ee),f(b,"dir","ltr"),b.innerHTML.indexOf("xmlns")===-1&&f(ee,"xmlns",this.SVG_NS),this.box=ee,this.boxWrapper=ie,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(x.createTextNode("Created with Highcharts 11.4.3")),this.defs=this.createElement("defs").add(),this.allowHTML=C,this.forExport=S,this.styledMode=R,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=ie.getStyle("font-size"),this.setSize(D,U,!1),P&&b.getBoundingClientRect&&((I=function(){a(b,{left:0,top:0}),X=b.getBoundingClientRect(),a(b,{left:Math.ceil(X.left)-X.left+"px",top:Math.ceil(X.top)-X.top+"px"})})(),this.unSubPixelFix=F(W,"resize",I))}definition(b){return new t([b]).addToDOM(this.defs.element)}getReferenceURL(){if((P||T)&&x.getElementsByTagName("base").length){if(!o(E)){let b=Z(),D=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:b},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${b})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(x.body);a(D,{position:"fixed",top:0,left:0,zIndex:9e5});let U=x.elementFromPoint(6,6);E=(U&&U.id)==="hitme",x.body.removeChild(D)}if(E)return K(W.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(b){return this.style=l({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},b),this.style}setStyle(b){this.boxWrapper.css(this.getStyle(b))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let b=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,this.defs=b.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(b){return new this.Element(this,b)}getRadialAttr(b,D){return{cx:b[0]-b[2]/2+(D.cx||0)*b[2],cy:b[1]-b[2]/2+(D.cy||0)*b[2],r:(D.r||0)*b[2]}}shadowDefinition(b){let D=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(b).map(c=>`${c}-${b[c]}`)].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),U=se({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},b);return this.defs.element.querySelector(`#${D}`)||this.definition({tagName:"filter",attributes:{id:D,filterUnits:U.filterUnits},children:[{tagName:"feDropShadow",attributes:{dx:U.offsetX,dy:U.offsetY,"flood-color":U.color,"flood-opacity":Math.min(5*U.opacity,1),stdDeviation:U.width/2}}]}),D}buildText(b){new _(b).buildSVG()}getContrast(b){let D=n.parse(b).rgba.map(c=>{let S=c/255;return S<=.03928?S/12.92:Math.pow((S+.055)/1.055,2.4)}),U=.2126*D[0]+.7152*D[1]+.0722*D[2];return 1.05/(U+.05)>(U+.05)/.05?"#FFFFFF":"#000000"}button(b,D,U,c,S={},C,R,I,X,ie){let ee=this.label(b,D,U,X,void 0,void 0,ie,void 0,"button"),oe=this.styledMode,ce=arguments,de=0;S=se(N.global.buttonTheme,S),oe&&(delete S.fill,delete S.stroke,delete S["stroke-width"]);let V=S.states||{},G=S.style||{};delete S.states,delete S.style;let J=[t.filterUserAttributes(S)],te=[G];return oe||["hover","select","disabled"].forEach((ae,ne)=>{J.push(se(J[0],t.filterUserAttributes(ce[ne+5]||V[ae]||{}))),te.push(J[ne+1].style),delete J[ne+1].style}),F(ee.element,L?"mouseover":"mouseenter",function(){de!==3&&ee.setState(1)}),F(ee.element,L?"mouseout":"mouseleave",function(){de!==3&&ee.setState(de)}),ee.setState=(ae=0)=>{if(ae!==1&&(ee.state=de=ae),ee.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][ae]),!oe){ee.attr(J[ae]);let ne=te[ae];O(ne)&&ee.css(ne)}},ee.attr(J[0]),!oe&&(ee.css(l({cursor:"default"},G)),ie&&ee.text.css({pointerEvents:"none"})),ee.on("touchstart",ae=>ae.stopPropagation()).on("click",function(ae){de!==3&&c.call(ee,ae)})}crispLine(b,D){let[U,c]=b;return o(U[1])&&U[1]===c[1]&&(U[1]=c[1]=u(U[1],D)),o(U[2])&&U[2]===c[2]&&(U[2]=c[2]=u(U[2],D)),b}path(b){let D=this.styledMode?{}:{fill:"none"};return p(b)?D.d=b:O(b)&&l(D,b),this.createElement("path").attr(D)}circle(b,D,U){let c=O(b)?b:b===void 0?{}:{x:b,y:D,r:U},S=this.createElement("circle");return S.xSetter=S.ySetter=function(C,R,I){I.setAttribute("c"+R,C)},S.attr(c)}arc(b,D,U,c,S,C){let R;O(b)?(D=(R=b).y,U=R.r,c=R.innerR,S=R.start,C=R.end,b=R.x):R={innerR:c,start:S,end:C};let I=this.symbol("arc",b,D,U,U,R);return I.r=U,I}rect(b,D,U,c,S,C){let R=O(b)?b:b===void 0?{}:{x:b,y:D,r:S,width:Math.max(U||0,0),height:Math.max(c||0,0)},I=this.createElement("rect");return this.styledMode||(C!==void 0&&(R["stroke-width"]=C,l(R,I.crisp(R))),R.fill="none"),I.rSetter=function(X,ie,ee){I.r=X,f(ee,{rx:X,ry:X})},I.rGetter=function(){return I.r||0},I.attr(R)}roundedRect(b){return this.symbol("roundedRect").attr(b)}setSize(b,D,U){this.width=b,this.height=D,this.boxWrapper.animate({width:b,height:D},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:A(U,!0)?void 0:0}),this.alignElements()}g(b){let D=this.createElement("g");return b?D.attr({class:"highcharts-"+b}):D}image(b,D,U,c,S,C){let R={preserveAspectRatio:"none"};m(D)&&(R.x=D),m(U)&&(R.y=U),m(c)&&(R.width=c),m(S)&&(R.height=S);let I=this.createElement("image").attr(R),X=function(ie){I.attr({href:b}),C.call(I,ie)};if(C){I.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let ie=new W.Image;F(ie,"load",X),ie.src=b,ie.complete&&X({})}else I.attr({href:b});return I}symbol(b,D,U,c,S,C){let R,I,X,ie,ee=this,oe=/^url\((.*?)\)$/,ce=oe.test(b),de=!ce&&(this.symbols[b]?b:"circle"),V=de&&this.symbols[de];if(V)typeof D=="number"&&(I=V.call(this.symbols,D||0,U||0,c||0,S||0,C)),R=this.path(I),ee.styledMode||R.attr("fill","none"),l(R,{symbolName:de||void 0,x:D,y:U,width:c,height:S}),C&&l(R,C);else if(ce){X=b.match(oe)[1];let G=R=this.image(X);G.imgwidth=A(C&&C.width,Q[X]&&Q[X].width),G.imgheight=A(C&&C.height,Q[X]&&Q[X].height),ie=J=>J.attr({width:J.width,height:J.height}),["width","height"].forEach(J=>{G[`${J}Setter`]=function(te,ae){this[ae]=te;let{alignByTranslate:ne,element:he,width:le,height:ue,imgwidth:fe,imgheight:ge}=this,pe=ae==="width"?fe:ge,ye=1;C&&C.backgroundSize==="within"&&le&&ue&&fe&&ge?(ye=Math.min(le/fe,ue/ge),f(he,{width:Math.round(fe*ye),height:Math.round(ge*ye)})):he&&pe&&he.setAttribute(ae,pe),!ne&&fe&&ge&&this.translate(((le||0)-fe*ye)/2,((ue||0)-ge*ye)/2)}}),o(D)&&G.attr({x:D,y:U}),G.isImg=!0,o(G.imgwidth)&&o(G.imgheight)?ie(G):(G.attr({width:0,height:0}),w("img",{onload:function(){let J=z[ee.chartIndex];this.width===0&&(a(this,{position:"absolute",top:"-999em"}),x.body.appendChild(this)),Q[X]={width:this.width,height:this.height},G.imgwidth=this.width,G.imgheight=this.height,G.element&&ie(G),this.parentNode&&this.parentNode.removeChild(this),ee.imgCount--,ee.imgCount||!J||J.hasLoaded||J.onload()},src:X}),this.imgCount++)}return R}clipRect(b,D,U,c){return this.rect(b,D,U,c,0)}text(b,D,U,c){let S={};if(c&&(this.allowHTML||!this.forExport))return this.html(b,D,U);S.x=Math.round(D||0),U&&(S.y=Math.round(U)),o(b)&&(S.text=b);let C=this.createElement("text").attr(S);return c&&(!this.forExport||this.allowHTML)||(C.xSetter=function(R,I,X){let ie=X.getElementsByTagName("tspan"),ee=X.getAttribute(I);for(let oe=0,ce;oeb.align())}}return l(re.prototype,{Element:q,SVG_NS:M,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:g}),v.registerRendererType("svg",re,!0),re}),r(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,i,n,h){let{composed:v}=i,{attr:q,css:B,createElement:Y,defined:_,extend:H,pInt:E,pushUnique:N}=h;function z(L,T,g){let M=this.div?.style||g.style;n.prototype[`${T}Setter`].call(this,L,T,g),M&&(M[T]=L)}let k=(L,T)=>{if(!L.div){let g=q(L.element,"class"),M=L.css,Q=Y("div",g?{className:g}:void 0,Ue(we({position:"absolute",left:`${L.translateX||0}px`,top:`${L.translateY||0}px`},L.styles),{display:L.display,opacity:L.opacity,visibility:L.visibility}),L.parentGroup?.div||T);L.classSetter=(W,F,f)=>{f.setAttribute("class",W),Q.className=W},L.translateXSetter=L.translateYSetter=(W,F)=>{L[F]=W,Q.style[F==="translateX"?"left":"top"]=`${W}px`,L.doTransform=!0},L.opacitySetter=L.visibilitySetter=z,L.css=W=>(M.call(L,W),W.cursor&&(Q.style.cursor=W.cursor),W.pointerEvents&&(Q.style.pointerEvents=W.pointerEvents),L),L.on=function(){return n.prototype.on.apply({element:Q,onEvents:L.onEvents},arguments),L},L.div=Q}return L.div};class x extends n{static compose(T){N(v,this.compose)&&(T.prototype.html=function(g,M,Q){return new x(this,"span").attr({text:g,x:Math.round(M),y:Math.round(Q)})})}constructor(T,g){super(T,g),this.css(we({position:"absolute"},T.styledMode?{}:{fontFamily:T.style.fontFamily,fontSize:T.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(T,g,M){this.xCorr=-T*M,this.yCorr=-g}css(T){let g,{element:M}=this,Q=M.tagName==="SPAN"&&T&&"width"in T,W=Q&&T.width;return Q&&(delete T.width,this.textWidth=E(W)||void 0,g=!0),T?.textOverflow==="ellipsis"&&(T.whiteSpace="nowrap",T.overflow="hidden"),H(this.styles,T),B(M,T),g&&this.updateTransform(),this}htmlGetBBox(){let{element:T}=this;return{x:T.offsetLeft,y:T.offsetTop,width:T.offsetWidth,height:T.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:T,renderer:g,rotation:M,rotationOriginX:Q,rotationOriginY:W,styles:F,textAlign:f="left",textWidth:w,translateX:u=0,translateY:a=0,x:o=0,y:d=0}=this,l=F.whiteSpace;if(B(T,{marginLeft:`${u}px`,marginTop:`${a}px`}),T.tagName==="SPAN"){let p=[M,f,T.innerHTML,w,this.textAlign].join(","),m=-(this.parentGroup?.padding*1)||0,O,j=!1;if(w!==this.oldTextWidth){let Z=this.textPxLength?this.textPxLength:(B(T,{width:"",whiteSpace:l||"nowrap"}),T.offsetWidth),re=w||0;(re>this.oldTextWidth||Z>re)&&(/[ \-]/.test(T.textContent||T.innerText)||T.style.textOverflow==="ellipsis")&&(B(T,{width:Z>re||M?w+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=w,j=!0)}this.hasBoxWidthChanged=j,p!==this.cTT&&(O=g.fontMetrics(T).b,_(M)&&(M!==(this.oldRotation||0)||f!==this.oldAlign)&&this.setSpanRotation(M,m,m),this.getSpanCorrection(!_(M)&&this.textPxLength||T.offsetWidth,O,{left:0,center:.5,right:1}[f]));let{xCorr:se=0,yCorr:A=0}=this,$=(Q??o)-se-o-m,K=(W??d)-A-d-m;B(T,{left:`${o+se}px`,top:`${d+A}px`,transformOrigin:`${$}px ${K}px`}),this.cTT=p,this.oldRotation=M,this.oldAlign=f}}setSpanRotation(T,g,M){B(this.element,{transform:`rotate(${T}deg)`,transformOrigin:`${g}% ${M}px`})}add(T){let g,M=this.renderer.box.parentNode,Q=[];if(this.parentGroup=T,T&&!(g=T.div)){let W=T;for(;W;)Q.push(W),W=W.parentGroup;for(let F of Q.reverse())g=k(F,M)}return(g||M).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(T){T!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,T??""),this.textStr=T,this.doTransform=!0)}alignSetter(T){this.alignValue=this.textAlign=T,this.doTransform=!0}xSetter(T,g){this[g]=T,this.doTransform=!0}}let P=x.prototype;return P.visibilitySetter=P.opacitySetter=z,P.ySetter=P.rotationSetter=P.rotationOriginXSetter=P.rotationOriginYSetter=P.xSetter,x}),r(e,"Core/Axis/AxisDefaults.js",[],function(){var t,i;return(i=t||(t={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},i.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:n}=this.axis.chart;return n(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t}),r(e,"Core/Foundation.js",[e["Core/Utilities.js"]],function(t){var i;let{addEvent:n,isFunction:h,objectEach:v,removeEvent:q}=t;return(i||(i={})).registerEventOptions=function(B,Y){B.eventOptions=B.eventOptions||{},v(Y.events,function(_,H){B.eventOptions[H]!==_&&(B.eventOptions[H]&&(q(B,H,B.eventOptions[H]),delete B.eventOptions[H]),h(_)&&(B.eventOptions[H]=_,n(B,H,_,{order:0})))})},i}),r(e,"Core/Axis/Tick.js",[e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n){let{deg2rad:h}=i,{clamp:v,correctFloat:q,defined:B,destroyObjectProperties:Y,extend:_,fireEvent:H,isNumber:E,merge:N,objectEach:z,pick:k}=n;return class{constructor(x,P,L,T,g){this.isNew=!0,this.isNewLabel=!0,this.axis=x,this.pos=P,this.type=L||"",this.parameters=g||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,H(this,"init"),L||T||this.addLabel()}addLabel(){let x=this,P=x.axis,L=P.options,T=P.chart,g=P.categories,M=P.logarithmic,Q=P.names,W=x.pos,F=k(x.options&&x.options.labels,L.labels),f=P.tickPositions,w=W===f[0],u=W===f[f.length-1],a=(!F.step||F.step===1)&&P.tickInterval===1,o=f.info,d=x.label,l,p,m,O=this.parameters.category||(g?k(g[W],Q[W],W):W);M&&E(O)&&(O=q(M.lin2log(O))),P.dateTime&&(o?l=(p=T.time.resolveDTLFormat(L.dateTimeLabelFormats[!L.grid&&o.higherRanks[W]||o.unitName])).main:E(O)&&(l=P.dateTime.getXDateFormat(O,L.dateTimeLabelFormats||{}))),x.isFirst=w,x.isLast=u;let j={axis:P,chart:T,dateTimeLabelFormat:l,isFirst:w,isLast:u,pos:W,tick:x,tickPositionInfo:o,value:O};H(this,"labelFormat",j);let se=K=>F.formatter?F.formatter.call(K,K):F.format?(K.text=P.defaultLabelFormatter.call(K),t.format(F.format,K,T)):P.defaultLabelFormatter.call(K),A=se.call(j,j),$=p&&p.list;$?x.shortenLabel=function(){for(m=0;m<$.length;m++)if(_(j,{dateTimeLabelFormat:$[m]}),d.attr({text:se.call(j,j)}),d.getBBox().width0&&T+w*u>W&&(O=Math.round((g-T)/Math.cos(f*h))):(p=T-w*u,m=T+(1-w)*u,pW&&(d=W-x.x+d*w,l=-1),(d=Math.min(a,d))d||P.autoRotation&&(F.styles||{}).width)&&(O=d)),O&&(this.shortenLabel?this.shortenLabel():(o.width=Math.floor(O)+"px",(L.style||{}).textOverflow||(o.textOverflow="ellipsis"),F.css(o)))}moveLabel(x,P){let L=this,T=L.label,g=L.axis,M=!1,Q;T&&T.textStr===x?(L.movedLabel=T,M=!0,delete L.label):z(g.ticks,function(W){M||W.isNew||W===L||!W.label||W.label.textStr!==x||(L.movedLabel=W.label,M=!0,W.labelPos=L.movedLabel.xy,delete W.label)}),!M&&(L.labelPos||T)&&(Q=L.labelPos||T.xy,L.movedLabel=L.createLabel(x,P,Q),L.movedLabel&&L.movedLabel.attr({opacity:0}))}render(x,P,L){let T=this.axis,g=T.horiz,M=this.pos,Q=k(this.tickmarkOffset,T.tickmarkOffset),W=this.getPosition(g,M,Q,P),F=W.x,f=W.y,w=T.pos,u=w+T.len,a=g?F:f;!T.chart.polar&&this.isNew&&(q(a)u)&&(L=0);let o=k(L,this.label&&this.label.newOpacity,1);L=k(L,1),this.isActive=!0,this.renderGridLine(P,L),this.renderMark(W,L),this.renderLabel(W,P,o,x),this.isNew=!1,H(this,"afterRender")}renderGridLine(x,P){let L=this.axis,T=L.options,g={},M=this.pos,Q=this.type,W=k(this.tickmarkOffset,L.tickmarkOffset),F=L.chart.renderer,f=this.gridLine,w,u=T.gridLineWidth,a=T.gridLineColor,o=T.gridLineDashStyle;this.type==="minor"&&(u=T.minorGridLineWidth,a=T.minorGridLineColor,o=T.minorGridLineDashStyle),f||(L.chart.styledMode||(g.stroke=a,g["stroke-width"]=u||0,g.dashstyle=o),Q||(g.zIndex=1),x&&(P=0),this.gridLine=f=F.path().attr(g).addClass("highcharts-"+(Q?Q+"-":"")+"grid-line").add(L.gridGroup)),f&&(w=L.getPlotLinePath({value:M+W,lineWidth:f.strokeWidth(),force:"pass",old:x,acrossPanes:!1}))&&f[x||this.isNew?"attr":"animate"]({d:w,opacity:P})}renderMark(x,P){let L=this.axis,T=L.options,g=L.chart.renderer,M=this.type,Q=L.tickSize(M?M+"Tick":"tick"),W=x.x,F=x.y,f=k(T[M!=="minor"?"tickWidth":"minorTickWidth"],!M&&L.isXAxis?1:0),w=T[M!=="minor"?"tickColor":"minorTickColor"],u=this.mark,a=!u;Q&&(L.opposite&&(Q[0]=-Q[0]),u||(this.mark=u=g.path().addClass("highcharts-"+(M?M+"-":"")+"tick").add(L.axisGroup),L.chart.styledMode||u.attr({stroke:w,"stroke-width":f})),u[a?"attr":"animate"]({d:this.getMarkPath(W,F,Q[0],u.strokeWidth(),L.horiz,g),opacity:P}))}renderLabel(x,P,L,T){let g=this.axis,M=g.horiz,Q=g.options,W=this.label,F=Q.labels,f=F.step,w=k(this.tickmarkOffset,g.tickmarkOffset),u=x.x,a=x.y,o=!0;W&&E(u)&&(W.xy=x=this.getLabelPosition(u,a,W,M,F,w,T,f),(!this.isFirst||this.isLast||Q.showFirstLabel)&&(!this.isLast||this.isFirst||Q.showLastLabel)?!M||F.step||F.rotation||P||L===0||this.handleOverflow(x):o=!1,f&&T%f&&(o=!1),o&&E(x.y)?(x.opacity=L,W[this.isNewLabel?"attr":"animate"](x).show(!0),this.isNewLabel=!1):(W.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let x=this.label,P=this.axis;x&&!this.isNew&&(x.animate({opacity:0},void 0,x.destroy),delete this.label),P.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),r(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q,B,Y){let{animObject:_}=t,{xAxis:H,yAxis:E}=i,{defaultOptions:N}=h,{registerEventOptions:z}=v,{deg2rad:k}=q,{arrayMax:x,arrayMin:P,clamp:L,correctFloat:T,defined:g,destroyObjectProperties:M,erase:Q,error:W,extend:F,fireEvent:f,getClosestDistance:w,insertItem:u,isArray:a,isNumber:o,isString:d,merge:l,normalizeTickInterval:p,objectEach:m,pick:O,relativeLength:j,removeEvent:se,splat:A,syncTimeout:$}=Y,K=(re,y)=>p(y,void 0,void 0,O(re.options.allowDecimals,y<.5||re.tickAmount!==void 0),!!re.tickAmount);F(N,{xAxis:H,yAxis:l(H,E)});class Z{constructor(y,b,D){this.init(y,b,D)}init(y,b,D=this.coll){let U=D==="xAxis",c=this.isZAxis||(y.inverted?!U:U);this.chart=y,this.horiz=c,this.isXAxis=U,this.coll=D,f(this,"init",{userOptions:b}),this.opposite=O(b.opposite,this.opposite),this.side=O(b.side,this.side,c?this.opposite?0:2:this.opposite?1:3),this.setOptions(b);let S=this.options,C=S.labels,R=S.type;this.userOptions=b,this.minPixelPadding=0,this.reversed=O(S.reversed,this.reversed),this.visible=S.visible,this.zoomEnabled=S.zoomEnabled,this.hasNames=R==="category"||S.categories===!0,this.categories=a(S.categories)&&S.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=g(S.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=S.minRange||S.maxZoom,this.range=S.range,this.offset=S.offset||0,this.max=void 0,this.min=void 0;let I=O(S.crosshair,A(y.options.tooltip.crosshairs)[U?0:1]);this.crosshair=I===!0?{}:I,y.axes.indexOf(this)===-1&&(U?y.axes.splice(y.xAxis.length,0,this):y.axes.push(this),u(this,y[this.coll])),y.orderItems(this.coll),this.series=this.series||[],y.inverted&&!this.isZAxis&&U&&!g(this.reversed)&&(this.reversed=!0),this.labelRotation=o(C.rotation)?C.rotation:void 0,z(this,S),f(this,"afterInit")}setOptions(y){let b=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=l(b,N[this.coll],y),f(this,"afterSetOptions",{userOptions:y})}defaultLabelFormatter(){let y=this.axis,{numberFormatter:b}=this.chart,D=o(this.value)?this.value:NaN,U=y.chart.time,c=y.categories,S=this.dateTimeLabelFormat,C=N.lang,R=C.numericSymbols,I=C.numericSymbolMagnitude||1e3,X=y.logarithmic?Math.abs(D):y.tickInterval,ie=R&&R.length,ee,oe;if(c)oe=`${this.value}`;else if(S)oe=U.dateFormat(S,D);else if(ie&&R&&X>=1e3)for(;ie--&&oe===void 0;)X>=(ee=Math.pow(I,ie+1))&&10*D%ee==0&&R[ie]!==null&&D!==0&&(oe=b(D/ee,-1)+R[ie]);return oe===void 0&&(oe=Math.abs(D)>=1e4?b(D,-1):b(D,-1,void 0,"")),oe}getSeriesExtremes(){let y,b=this;f(this,"getSeriesExtremes",null,function(){b.hasVisibleSeries=!1,b.dataMin=b.dataMax=b.threshold=void 0,b.softThreshold=!b.isXAxis,b.series.forEach(D=>{if(D.reserveSpace()){let U=D.options,c,S=U.threshold,C,R;if(b.hasVisibleSeries=!0,b.positiveValuesOnly&&0>=(S||0)&&(S=void 0),b.isXAxis)(c=D.xData)&&c.length&&(c=b.logarithmic?c.filter(I=>I>0):c,C=(y=D.getXExtremes(c)).min,R=y.max,o(C)||C instanceof Date||(c=c.filter(o),C=(y=D.getXExtremes(c)).min,R=y.max),c.length&&(b.dataMin=Math.min(O(b.dataMin,C),C),b.dataMax=Math.max(O(b.dataMax,R),R)));else{let I=D.applyExtremes();o(I.dataMin)&&(C=I.dataMin,b.dataMin=Math.min(O(b.dataMin,C),C)),o(I.dataMax)&&(R=I.dataMax,b.dataMax=Math.max(O(b.dataMax,R),R)),g(S)&&(b.threshold=S),(!U.softThreshold||b.positiveValuesOnly)&&(b.softThreshold=!1)}}})}),f(this,"afterGetSeriesExtremes")}translate(y,b,D,U,c,S){let C=this.linkedParent||this,R=U&&C.old?C.old.min:C.min;if(!o(R))return NaN;let I=C.minPixelPadding,X=(C.isOrdinal||C.brokenAxis?.hasBreaks||C.logarithmic&&c)&&C.lin2val,ie=1,ee=0,oe=U&&C.old?C.old.transA:C.transA,ce=0;return oe||(oe=C.transA),D&&(ie*=-1,ee=C.len),C.reversed&&(ie*=-1,ee-=ie*(C.sector||C.len)),b?(ce=(y=y*ie+ee-I)/oe+R,X&&(ce=C.lin2val(ce))):(X&&(y=C.val2lin(y)),ce=ie*(y-R)*oe+ee+ie*I+(o(S)?oe*S:0),C.isRadial||(ce=T(ce))),ce}toPixels(y,b){return this.translate(y,!1,!this.horiz,void 0,!0)+(b?0:this.pos)}toValue(y,b){return this.translate(y-(b?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(y){let b=this,D=b.chart,U=b.left,c=b.top,S=y.old,C=y.value,R=y.lineWidth,I=S&&D.oldChartHeight||D.chartHeight,X=S&&D.oldChartWidth||D.chartWidth,ie=b.transB,ee=y.translatedValue,oe=y.force,ce,de,V,G,J;function te(ne,he,le){return oe!=="pass"&&(nele)&&(oe?ne=L(ne,he,le):J=!0),ne}let ae={value:C,lineWidth:R,old:S,force:oe,acrossPanes:y.acrossPanes,translatedValue:ee};return f(this,"getPlotLinePath",ae,function(ne){ce=V=(ee=L(ee=O(ee,b.translate(C,void 0,void 0,S)),-1e5,1e5))+ie,de=G=I-ee-ie,o(ee)?b.horiz?(de=c,G=I-b.bottom+(D.scrollablePixelsY||0),ce=V=te(ce,U,U+b.width)):(ce=U,V=X-b.right+(D.scrollablePixelsX||0),de=G=te(de,c,c+b.height)):(J=!0,oe=!1),ne.path=J&&!oe?void 0:D.renderer.crispLine([["M",ce,de],["L",V,G]],R||1)}),ae.path}getLinearTickPositions(y,b,D){let U,c,S,C=T(Math.floor(b/y)*y),R=T(Math.ceil(D/y)*y),I=[];if(T(C+y)===C&&(S=20),this.single)return[b];for(U=C;U<=R&&(I.push(U),(U=T(U+y,S))!==c);)c=U;return I}getMinorTickInterval(){let{minorTicks:y,minorTickInterval:b}=this.options;return y===!0?O(b,"auto"):y!==!1?b:void 0}getMinorTickPositions(){let y=this.options,b=this.tickPositions,D=this.minorTickInterval,U=this.pointRangePadding||0,c=(this.min||0)-U,S=(this.max||0)+U,C=S-c,R=[],I;if(C&&C/D(X.xIncrement?X.xData?.slice(0,2):X.xData)||[]))||0),this.dataMax-this.dataMin)),o(D)&&o(U)&&o(c)&&D-U=c,S=(c-D+U)/2,R=[U-S,O(y.min,U-S)],C&&(R[2]=b?b.log2lin(this.dataMin):this.dataMin),I=[(U=x(R))+c,O(y.max,U+c)],C&&(I[2]=b?b.log2lin(this.dataMax):this.dataMax),(D=P(I))-UU-c),y=w([D]))}return y&&b?Math.min(y,b):y||b}nameToX(y){let b=a(this.options.categories),D=b?this.categories:this.names,U=y.options.x,c;return y.series.requireSorting=!1,g(U)||(U=this.options.uniqueNames&&D?b?D.indexOf(y.name):O(D.keys[y.name],-1):y.series.autoIncrement()),U===-1?!b&&D&&(c=D.length):c=U,c!==void 0?(this.names[c]=y.name,this.names.keys[y.name]=c):y.x&&(c=y.x),c}updateNames(){let y=this,b=this.names;b.length>0&&(Object.keys(b.keys).forEach(function(D){delete b.keys[D]}),b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(D=>{D.xIncrement=null,(!D.points||D.isDirtyData)&&(y.max=Math.max(y.max,D.xData.length-1),D.processData(),D.generatePoints()),D.data.forEach(function(U,c){let S;U?.options&&U.name!==void 0&&(S=y.nameToX(U))!==void 0&&S!==U.x&&(U.x=S,D.xData[c]=S)})}))}setAxisTranslation(){let y=this,b=y.max-y.min,D=y.linkedParent,U=!!y.categories,c=y.isXAxis,S=y.axisPointRange||0,C,R=0,I=0,X,ie=y.transA;(c||U||S)&&(C=y.getClosest(),D?(R=D.minPointOffset,I=D.pointRangePadding):y.series.forEach(function(ee){let oe=U?1:c?O(ee.options.pointRange,C,0):y.axisPointRange||0,ce=ee.options.pointPlacement;if(S=Math.max(S,oe),!y.single||U){let de=ee.is("xrange")?!c:c;R=Math.max(R,de&&d(ce)?0:oe/2),I=Math.max(I,de&&ce==="on"?0:oe)}}),X=y.ordinal&&y.ordinal.slope&&C?y.ordinal.slope/C:1,y.minPointOffset=R*=X,y.pointRangePadding=I*=X,y.pointRange=Math.min(S,y.single&&U?1:b),c&&C&&(y.closestPointRange=C)),y.translationSlope=y.transA=ie=y.staticScale||y.len/(b+I||1),y.transB=y.horiz?y.left:y.bottom,y.minPixelPadding=ie*R,f(this,"afterSetAxisTranslation")}minFromRange(){let{max:y,min:b}=this;return o(y)&&o(b)&&y-b||void 0}setTickInterval(y){let{categories:b,chart:D,dataMax:U,dataMin:c,dateTime:S,isXAxis:C,logarithmic:R,options:I,softThreshold:X}=this,ie=o(this.threshold)?this.threshold:void 0,ee=this.minRange||0,{ceiling:oe,floor:ce,linkedTo:de,softMax:V,softMin:G}=I,J=o(de)&&D[this.coll]?.[de],te=I.tickPixelInterval,ae=I.maxPadding,ne=I.minPadding,he=0,le,ue=o(I.tickInterval)&&I.tickInterval>=0?I.tickInterval:void 0,fe,ge,pe,ye;if(S||b||J||this.getTickAmount(),pe=O(this.userMin,I.min),ye=O(this.userMax,I.max),J?(this.linkedParent=J,le=J.getExtremes(),this.min=O(le.min,le.dataMin),this.max=O(le.max,le.dataMax),I.type!==J.options.type&&W(11,!0,D)):(X&&g(ie)&&o(U)&&o(c)&&(c>=ie?(fe=ie,ne=0):U<=ie&&(ge=ie,ae=0)),this.min=O(pe,fe,c),this.max=O(ye,ge,U)),o(this.max)&&o(this.min)&&(R&&(this.positiveValuesOnly&&!y&&0>=Math.min(this.min,O(c,this.min))&&W(10,!0,D),this.min=T(R.log2lin(this.min),16),this.max=T(R.log2lin(this.max),16)),this.range&&o(c)&&(this.userMin=this.min=pe=Math.max(c,this.minFromRange()||0),this.userMax=ye=this.max,this.range=void 0)),f(this,"foundExtremes"),this.adjustForMinRange(),o(this.min)&&o(this.max)){if(!o(this.userMin)&&o(G)&&Gthis.max&&(this.max=ye=V),b||this.axisPointRange||this.stacking?.usePercentage||J||!(he=this.max-this.min)||(!g(pe)&&ne&&(this.min-=he*ne),g(ye)||!ae||(this.max+=he*ae)),!o(this.userMin)&&o(ce)&&(this.min=Math.max(this.min,ce)),!o(this.userMax)&&o(oe)&&(this.max=Math.min(this.max,oe)),X&&o(c)&&o(U)){let ve=ie||0;!g(pe)&&this.min=ve?this.min=I.minRange?Math.min(ve,this.max-ee):ve:!g(ye)&&this.max>ve&&U<=ve&&(this.max=I.minRange?Math.max(ve,this.min+ee):ve)}!D.polar&&this.min>this.max&&(g(I.min)?this.max=this.min:g(I.max)&&(this.min=this.max)),he=this.max-this.min}if(this.min!==this.max&&o(this.min)&&o(this.max)?J&&!ue&&te===J.options.tickPixelInterval?this.tickInterval=ue=J.tickInterval:this.tickInterval=O(ue,this.tickAmount?he/Math.max(this.tickAmount-1,1):void 0,b?1:he*te/Math.max(this.len,te)):this.tickInterval=1,C&&!y){let ve=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(me){me.forceCrop=me.forceCropping?.(),me.processData(ve)}),f(this,"postProcessData",{hasExtremesChanged:ve})}this.setAxisTranslation(),f(this,"initialAxisTranslation"),this.pointRange&&!ue&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let be=O(I.minTickInterval,S&&!this.series.some(ve=>ve.noSharedTooltip)?this.closestPointRange:0);!ue&&this.tickIntervalMath.max(2*this.len,200))R=[this.min,this.max],W(19,!1,this.chart);else if(this.dateTime)R=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,y.units),this.min,this.max,y.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)R=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let X=this.tickInterval,ie=X;for(;ie<=2*X&&(R=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&R.length>this.tickAmount);)this.tickInterval=K(this,ie*=1.1)}R.length>this.len&&(R=[R[0],R[R.length-1]])[0]===R[1]&&(R.length=1),D&&(this.tickPositions=R,(I=D.apply(this,[this.min,this.max]))&&(R=I))}this.tickPositions=R,this.paddedTicks=R.slice(0),this.trimTicks(R,S,C),!this.isLinked&&o(this.min)&&o(this.max)&&(this.single&&R.length<2&&!this.categories&&!this.series.some(X=>X.is("heatmap")&&X.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),b||I||this.adjustTickAmount()),f(this,"afterSetTickPositions")}trimTicks(y,b,D){let U=y[0],c=y[y.length-1],S=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(b&&U!==-1/0)this.min=U;else for(;this.min-S>y[0];)y.shift();if(D)this.max=c;else for(;this.max+S{let{horiz:ee,options:oe}=ie;return[ee?oe.left:oe.top,oe.width,oe.height,oe.pane].join(",")},X=I(this);D[this.coll].forEach(function(ie){let{series:ee}=ie;ee.length&&ee.some(oe=>oe.visible)&&ie!==b&&I(ie)===X&&(y=!0,U.push(ie))})}if(y&&C){U.forEach(X=>{let ie=X.getThresholdAlignment(b);o(ie)&&R.push(ie)});let I=R.length>1?R.reduce((X,ie)=>X+=ie,0)/R.length:void 0;U.forEach(X=>{X.thresholdAlignment=I})}return y}getThresholdAlignment(y){if((!o(this.dataMin)||this!==y&&this.series.some(b=>b.isDirty||b.isDirtyData))&&this.getSeriesExtremes(),o(this.threshold)){let b=L((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(b=1-b),b}}getTickAmount(){let y=this.options,b=y.tickPixelInterval,D=y.tickAmount;g(y.tickInterval)||D||!(this.lenS.push(T(S[S.length-1]+oe)),V=()=>S.unshift(T(S[0]-oe));if(o(R)&&(ce=R<.5?Math.ceil(R*(C-1)):Math.floor(R*(C-1)),c.reversed&&(ce=C-1-ce)),y.hasData()&&o(U)&&o(D)){let G=()=>{y.transA*=(I-1)/(C-1),y.min=c.startOnTick?S[0]:Math.min(U,S[0]),y.max=c.endOnTick?S[S.length-1]:Math.max(D,S[S.length-1])};if(o(ce)&&o(y.threshold)){for(;S[ce]!==X||S.length!==C||S[0]>U||S[S.length-1]y.threshold?V():de();if(oe>8*y.tickInterval)break;oe*=2}G()}else if(I0&&ee{D=D||S.isDirtyData||S.isDirty,U=U||S.xAxis&&S.xAxis.isDirty||!1}),this.setAxisSize();let c=this.len!==(this.old&&this.old.len);c||D||U||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(b&&y==="yAxis"&&b.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),b&&y==="xAxis"&&b.buildStacks(),this.isDirty||(this.isDirty=c||this.min!==this.old?.min||this.max!==this.old?.max)):b&&b.cleanStacks(),D&&delete this.allExtremes,f(this,"afterSetScale")}setExtremes(y,b,D=!0,U,c){this.series.forEach(S=>{delete S.kdTree}),f(this,"setExtremes",c=F(c,{min:y,max:b}),S=>{this.userMin=S.min,this.userMax=S.max,this.eventArgs=S,D&&this.chart.redraw(U)})}setAxisSize(){let y=this.chart,b=this.options,D=b.offsets||[0,0,0,0],U=this.horiz,c=this.width=Math.round(j(O(b.width,y.plotWidth-D[3]+D[1]),y.plotWidth)),S=this.height=Math.round(j(O(b.height,y.plotHeight-D[0]+D[2]),y.plotHeight)),C=this.top=Math.round(j(O(b.top,y.plotTop+D[0]),y.plotHeight,y.plotTop)),R=this.left=Math.round(j(O(b.left,y.plotLeft+D[3]),y.plotWidth,y.plotLeft));this.bottom=y.chartHeight-S-C,this.right=y.chartWidth-c-R,this.len=Math.max(U?c:S,0),this.pos=U?R:C}getExtremes(){let y=this.logarithmic;return{min:y?T(y.lin2log(this.min)):this.min,max:y?T(y.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(y){let b=this.logarithmic,D=b?b.lin2log(this.min):this.min,U=b?b.lin2log(this.max):this.max;return y===null||y===-1/0?y=D:y===1/0?y=U:D>y?y=D:U15&&b<165?U.align="right":b>195&&b<345&&(U.align="left")}),D.align}tickSize(y){let b=this.options,D=O(b[y==="tick"?"tickWidth":"minorTickWidth"],y==="tick"&&this.isXAxis&&!this.categories?1:0),U=b[y==="tick"?"tickLength":"minorTickLength"],c;D&&U&&(b[y+"Position"]==="inside"&&(U=-U),c=[U,D]);let S={tickSize:c};return f(this,"afterTickSize",S),S.tickSize}labelMetrics(){let y=this.chart.renderer,b=this.ticks,D=b[Object.keys(b)[0]]||{};return this.chart.renderer.fontMetrics(D.label||D.movedLabel||y.box)}unsquish(){let y=this.options.labels,b=y.padding||0,D=this.horiz,U=this.tickInterval,c=this.len/(((this.categories?1:0)+this.max-this.min)/U),S=y.rotation,C=T(.8*this.labelMetrics().h),R=Math.max(this.max-this.min,0),I=function(ce){let de=(ce+2*b)/(c||1);return(de=de>1?Math.ceil(de):1)*U>R&&ce!==1/0&&c!==1/0&&R&&(de=Math.ceil(R/U)),T(de*U)},X=U,ie,ee=Number.MAX_VALUE,oe;if(D){if(!y.staggerLines&&(o(S)?oe=[S]:c=-90&&V<=90)&&(de=(ce=I(Math.abs(C/Math.sin(k*V))))+Math.abs(V/360))de&&(de=te.label.textPxLength)}),this.maxLabelLength=de,this.autoRotation)de>I&&de>ie.h?X.rotation=this.labelRotation:this.labelRotation=0;else if(R&&(oe=I,!ee))for(ce="clip",G=D.length;!C&&G--;)(V=U[D[G]].label)&&(V.styles.textOverflow==="ellipsis"?V.css({textOverflow:"clip"}):V.textPxLength>R&&V.css({width:R+"px"}),V.getBBox().height>this.len/D.length-(ie.h-ie.f)&&(V.specificTextOverflow="ellipsis"));X.rotation&&(oe=de>.5*y.chartHeight?.33*y.chartHeight:de,ee||(ce="ellipsis")),this.labelAlign=c.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(X.align=this.labelAlign),D.forEach(function(J){let te=U[J],ae=te&&te.label,ne=S.width,he={};ae&&(ae.attr(X),te.shortenLabel?te.shortenLabel():oe&&!ne&&S.whiteSpace!=="nowrap"&&(oec.g(C).attr({zIndex:I}).addClass(`highcharts-${D.toLowerCase()}${R} `+(this.isRadial?`highcharts-radial-axis${R} `:"")+(U.className||"")).add(y);this.axisGroup||(this.gridGroup=S("grid","-grid",U.gridZIndex),this.axisGroup=S("axis","",U.zIndex),this.labelGroup=S("axis-labels","-labels",U.labels.zIndex))}getOffset(){let y=this,{chart:b,horiz:D,options:U,side:c,ticks:S,tickPositions:C,coll:R}=y,I=b.inverted&&!y.isZAxis?[1,0,3,2][c]:c,X=y.hasData(),ie=U.title,ee=U.labels,oe=o(U.crossing),ce=b.axisOffset,de=b.clipOffset,V=[-1,1,1,-1][c],G,J=0,te,ae=0,ne=0,he,le;if(y.showAxis=G=X||U.showEmpty,y.staggerLines=y.horiz&&ee.staggerLines||void 0,y.createGroups(),X||y.isLinked?(C.forEach(function(ue){y.generateTick(ue)}),y.renderUnsquish(),y.reserveSpaceDefault=c===0||c===2||{1:"left",3:"right"}[c]===y.labelAlign,O(ee.reserveSpace,!oe&&null,y.labelAlign==="center"||null,y.reserveSpaceDefault)&&C.forEach(function(ue){ne=Math.max(S[ue].getLabelSize(),ne)}),y.staggerLines&&(ne*=y.staggerLines),y.labelOffset=ne*(y.opposite?-1:1)):m(S,function(ue,fe){ue.destroy(),delete S[fe]}),ie?.text&&ie.enabled!==!1&&(y.addTitle(G),G&&!oe&&ie.reserveSpace!==!1&&(y.titleOffset=J=y.axisTitle.getBBox()[D?"height":"width"],ae=g(te=ie.offset)?0:O(ie.margin,D?5:10))),y.renderLine(),y.offset=V*O(U.offset,ce[c]?ce[c]+(U.margin||0):0),y.tickRotCorr=y.tickRotCorr||{x:0,y:0},le=c===0?-y.labelMetrics().h:c===2?y.tickRotCorr.y:0,he=Math.abs(ne)+ae,ne&&(he-=le,he+=V*(D?O(ee.y,y.tickRotCorr.y+V*ee.distance):O(ee.x,V*ee.distance))),y.axisTitleMargin=O(te,he),y.getMaxLabelDimensions&&(y.maxLabelDimensions=y.getMaxLabelDimensions(S,C)),R!=="colorAxis"&&de){let ue=this.tickSize("tick");ce[c]=Math.max(ce[c],(y.axisTitleMargin||0)+J+V*y.offset,he,C&&C.length&&ue?ue[0]+V*y.offset:0);let fe=!y.axisLine||U.offset?0:y.axisLine.strokeWidth()/2;de[I]=Math.max(de[I],fe)}f(this,"afterGetOffset")}getLinePath(y){let b=this.chart,D=this.opposite,U=this.offset,c=this.horiz,S=this.left+(D?this.width:0)+U,C=b.chartHeight-this.bottom-(D?this.height:0)+U;return D&&(y*=-1),b.renderer.crispLine([["M",c?this.left:S,c?C:this.top],["L",c?b.chartWidth-this.right:S,c?C:b.chartHeight-this.bottom]],y)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(y){let b=this.horiz,D=this.left,U=this.top,c=this.len,S=this.options.title,C=b?D:U,R=this.opposite,I=this.offset,X=S.x,ie=S.y,ee=this.chart.renderer.fontMetrics(y),oe=y?Math.max(y.getBBox(!1,0).height-ee.h-1,0):0,ce={low:C+(b?0:c),middle:C+c/2,high:C+(b?c:0)}[S.align],de=(b?U+this.height:D)+(b?1:-1)*(R?-1:1)*(this.axisTitleMargin||0)+[-oe,oe,ee.f,-oe][this.side],V={x:b?ce+X:de+(R?this.width:0)+I+X,y:b?de+ie-(R?this.height:0)+I:ce+ie};return f(this,"afterGetTitlePosition",{titlePosition:V}),V}renderMinorTick(y,b){let D=this.minorTicks;D[y]||(D[y]=new B(this,y,"minor")),b&&D[y].isNew&&D[y].render(null,!0),D[y].render(null,!1,1)}renderTick(y,b,D){let U=this.isLinked,c=this.ticks;(!U||y>=this.min&&y<=this.max||this.grid&&this.grid.isColumn)&&(c[y]||(c[y]=new B(this,y)),D&&c[y].isNew&&c[y].render(b,!0,-1),c[y].render(b))}render(){let y,b,D=this,U=D.chart,c=D.logarithmic,S=U.renderer,C=D.options,R=D.isLinked,I=D.tickPositions,X=D.axisTitle,ie=D.ticks,ee=D.minorTicks,oe=D.alternateBands,ce=C.stackLabels,de=C.alternateGridColor,V=C.crossing,G=D.tickmarkOffset,J=D.axisLine,te=D.showAxis,ae=_(S.globalAnimation);if(D.labelEdge.length=0,D.overlap=!1,[ie,ee,oe].forEach(function(ne){m(ne,function(he){he.isActive=!1})}),o(V)){let ne=this.isXAxis?U.yAxis[0]:U.xAxis[0],he=[1,-1,-1,1][this.side];if(ne){let le=ne.toPixels(V,!0);D.horiz&&(le=ne.len-le),D.offset=he*le}}if(D.hasData()||R){let ne=D.chart.hasRendered&&D.old&&o(D.old.min);D.minorTickInterval&&!D.categories&&D.getMinorTickPositions().forEach(function(he){D.renderMinorTick(he,ne)}),I.length&&(I.forEach(function(he,le){D.renderTick(he,le,ne)}),G&&(D.min===0||D.single)&&(ie[-1]||(ie[-1]=new B(D,-1,null,!0)),ie[-1].render(-1))),de&&I.forEach(function(he,le){b=I[le+1]!==void 0?I[le+1]+G:D.max-G,le%2==0&&he=.5)E=Math.round(E),T=x.getLinearTickPositions(E,N,z);else if(E>=.08){let g,M,Q,W,F,f,w,u=Math.floor(N);for(g=E>.3?[1,2,4]:E>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],M=u;MN&&(!k||f<=z)&&f!==void 0&&T.push(f),f>z&&(w=!0),f=F}else{let g=this.lin2log(N),M=this.lin2log(z),Q=k?x.getMinorTickInterval():L.tickInterval,W=L.tickPixelInterval/(k?5:1),F=k?P/x.tickPositions.length:P;E=h(E=v(Q==="auto"?null:Q,this.minorAutoInterval,(M-g)*W/(F||1))),T=x.getLinearTickPositions(E,g,M).map(this.log2lin),k||(this.minorAutoInterval=E/5)}return k||(x.tickInterval=E),T}lin2log(E){return Math.pow(10,E)}log2lin(E){return Math.log(E)/Math.LN10}}q.Additions=_}(i||(i={})),i}),r(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Utilities.js"]],function(t){var i;let{erase:n,extend:h,isNumber:v}=t;return function(q){let B;function Y(x){return this.addPlotBandOrLine(x,"plotBands")}function _(x,P){let L=this.userOptions,T=new B(this,x);if(this.visible&&(T=T.render()),T){if(this._addedPlotLB||(this._addedPlotLB=!0,(L.plotLines||[]).concat(L.plotBands||[]).forEach(g=>{this.addPlotBandOrLine(g)})),P){let g=L[P]||[];g.push(x),L[P]=g}this.plotLinesAndBands.push(T)}return T}function H(x){return this.addPlotBandOrLine(x,"plotLines")}function E(x,P,L){L=L||this.options;let T=this.getPlotLinePath({value:P,force:!0,acrossPanes:L.acrossPanes}),g=[],M=this.horiz,Q=!v(this.min)||!v(this.max)||xthis.max&&P>this.max,W=this.getPlotLinePath({value:x,force:!0,acrossPanes:L.acrossPanes}),F,f=1,w;if(W&&T)for(Q&&(w=W.toString()===T.toString(),f=0),F=0;F{d?.on(K,Z=>{g[K].apply(this,[Z])})}),this.eventsAdded=!0),(j||!d.d)&&l?.length?d.attr({d:l}):d&&(l?(d.show(),d.animate({d:l})):d.d&&(d.hide(),o&&(this.label=o=o.destroy()))),a&&(v(a.text)||v(a.formatter))&&l?.length&&k.width>0&&k.height>0&&!l.isFlat?(a=_({align:P&&m?"center":void 0,x:P?!m&&4:10,verticalAlign:!P&&m?"middle":void 0,y:P?m?16:10:m?6:-4,rotation:P&&!m?90:0},a),this.renderLabel(a,l,m,M)):o&&o.hide(),this}renderLabel(k,x,P,L){let T=this.axis,g=T.chart.renderer,M=this.label;M||(this.label=M=g.text(this.getLabelText(k),0,0,k.useHTML).attr({align:k.textAlign||k.align,rotation:k.rotation,class:"highcharts-plot-"+(P?"band":"line")+"-label "+(k.className||""),zIndex:L}),T.chart.styledMode||M.css(_({fontSize:"0.8em",textOverflow:"ellipsis"},k.style)),M.add());let Q=x.xBounds||[x[0][1],x[1][1],P?x[2][1]:x[0][1]],W=x.yBounds||[x[0][2],x[1][2],P?x[2][2]:x[0][2]],F=h(Q),f=h(W);if(M.align(k,!1,{x:F,y:f,width:n(Q)-F,height:n(W)-f}),!M.alignValue||M.alignValue==="left"){let w=k.clip?T.width:T.chart.chartWidth;M.css({width:(M.rotation===90?T.height-(M.alignAttr.y-T.top):w-(M.alignAttr.x-T.left))+"px"})}M.show(!0)}getLabelText(k){return v(k.formatter)?k.formatter.call(this):k.text}destroy(){B(this.axis.plotLinesAndBands,this),delete this.axis,q(this)}}return N}),r(e,"Core/Tooltip.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q){var B;let{animObject:Y}=t,{format:_}=i,{composed:H,doc:E,isSafari:N}=n,{distribute:z}=h,{addEvent:k,clamp:x,css:P,discardElement:L,extend:T,fireEvent:g,isArray:M,isNumber:Q,isString:W,merge:F,pick:f,pushUnique:w,splat:u,syncTimeout:a}=q;class o{constructor(l,p,m){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=l,this.init(l,p),this.pointer=m}bodyFormatter(l){return l.map(function(p){let m=p.series.tooltipOptions;return(m[(p.point.formatPrefix||"point")+"Formatter"]||p.point.tooltipFormatter).call(p.point,m[(p.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(l){this.chart.series.forEach(function(p){let m=p&&p.tt;m&&(!m.isActive||l?p.tt=m.destroy():m.isActive=!1)})}defaultFormatter(l){let p,m=this.points||u(this);return(p=(p=[l.tooltipFooterHeaderFormatter(m[0])]).concat(l.bodyFormatter(m))).push(l.tooltipFooterHeaderFormatter(m[0],!0)),p}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),L(this.container)),q.clearTimeout(this.hideTimer)}getAnchor(l,p){let m,{chart:O,pointer:j}=this,se=O.inverted,A=O.plotTop,$=O.plotLeft;if((l=u(l))[0].series&&l[0].series.yAxis&&!l[0].series.yAxis.options.reversedStacks&&(l=l.slice().reverse()),this.followPointer&&p)p.chartX===void 0&&(p=j.normalize(p)),m=[p.chartX-$,p.chartY-A];else if(l[0].tooltipPos)m=l[0].tooltipPos;else{let K=0,Z=0;l.forEach(function(re){let y=re.pos(!0);y&&(K+=y[0],Z+=y[1])}),K/=l.length,Z/=l.length,this.shared&&l.length>1&&p&&(se?K=p.chartX:Z=p.chartY),m=[K-$,Z-A]}return m.map(Math.round)}getClassName(l,p,m){let O=this.options,j=l.series,se=j.options;return[O.className,"highcharts-label",m&&"highcharts-tooltip-header",p?"highcharts-tooltip-box":"highcharts-tooltip",!m&&"highcharts-color-"+f(l.colorIndex,j.colorIndex),se&&se.className].filter(W).join(" ")}getLabel(){let l=this,p=this.chart.styledMode,m=this.options,O=this.split&&this.allowShared,j=this.container,se=this.chart.renderer;if(this.label){let A=!this.label.hasClass("highcharts-label");(!O&&A||O&&!A)&&this.destroy()}if(!this.label){if(this.outside){let A=this.chart.options.chart.style,$=v.getRendererType();this.container=j=n.doc.createElement("div"),j.className="highcharts-tooltip-container",P(j,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(A&&A.zIndex||0)+3)}),this.renderer=se=new $(j,0,0,A,void 0,void 0,se.styledMode)}if(O?this.label=se.g("tooltip"):(this.label=se.label("",0,0,m.shape,void 0,void 0,m.useHTML,void 0,"tooltip").attr({padding:m.padding,r:m.borderRadius}),p||this.label.attr({fill:m.backgroundColor,"stroke-width":m.borderWidth||0}).css(m.style).css({pointerEvents:m.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),l.outside){let A=this.label;[A.xSetter,A.ySetter].forEach(($,K)=>{A[K?"ySetter":"xSetter"]=Z=>{$.call(A,l.distance),A[K?"y":"x"]=Z,j&&(j.style[K?"top":"left"]=`${Z}px`)}})}this.label.attr({zIndex:8}).shadow(m.shadow).add()}return j&&!j.parentElement&&n.doc.body.appendChild(j),this.label}getPlayingField(){let{body:l,documentElement:p}=E,{chart:m,distance:O,outside:j}=this;return{width:j?Math.max(l.scrollWidth,p.scrollWidth,l.offsetWidth,p.offsetWidth,p.clientWidth)-2*O:m.chartWidth,height:j?Math.max(l.scrollHeight,p.scrollHeight,l.offsetHeight,p.offsetHeight,p.clientHeight):m.chartHeight}}getPosition(l,p,m){let{distance:O,chart:j,outside:se,pointer:A}=this,{inverted:$,plotLeft:K,plotTop:Z,polar:re}=j,{plotX:y=0,plotY:b=0}=m,D={},U=$&&m.h||0,{height:c,width:S}=this.getPlayingField(),C=A.getChartPosition(),R=ae=>ae*C.scaleX,I=ae=>ae*C.scaleY,X=ae=>{let ne=ae==="x";return[ae,ne?S:c,ne?l:p].concat(se?[ne?R(l):I(p),ne?C.left-O+R(y+K):C.top-O+I(b+Z),0,ne?S:c]:[ne?l:p,ne?y+K:b+Z,ne?K:Z,ne?K+j.plotWidth:Z+j.plotHeight])},ie=X("y"),ee=X("x"),oe,ce=!!m.negative;!re&&j.hoverSeries?.yAxis?.reversed&&(ce=!ce);let de=!this.followPointer&&f(m.ttBelow,!re&&!$===ce),V=function(ae,ne,he,le,ue,fe,ge){let pe=se?ae==="y"?I(O):R(O):O,ye=(he-le)/2,be=lene?Ee:Ee+U)}},G=function(ae,ne,he,le,ue){if(uene-O)return!1;uene-le/2?D[ae]=ne-le-2:D[ae]=ue-he/2},J=function(ae){[ie,ee]=[ee,ie],oe=ae},te=()=>{V.apply(0,ie)!==!1?G.apply(0,ee)!==!1||oe||(J(!0),te()):oe?D.x=D.y=0:(J(!0),te())};return($&&!re||this.len>1)&&J(),te(),D}hide(l){let p=this;q.clearTimeout(this.hideTimer),l=f(l,this.options.hideDelay),this.isHidden||(this.hideTimer=a(function(){let m=p.getLabel();p.getLabel().animate({opacity:0},{duration:l&&150,complete:()=>{m.hide(),p.container&&p.container.remove()}}),p.isHidden=!0},l))}init(l,p){this.chart=l,this.options=p,this.crosshairs=[],this.isHidden=!0,this.split=p.split&&!l.inverted&&!l.polar,this.shared=p.shared||this.split,this.outside=f(p.outside,!!(l.scrollablePixelsX||l.scrollablePixelsY))}shouldStickOnContact(l){return!!(!this.followPointer&&this.options.stickOnContact&&(!l||this.pointer.inClass(l.target,"highcharts-tooltip")))}move(l,p,m,O){let j=this,se=Y(!j.isHidden&&j.options.animation),A=j.followPointer||(j.len||0)>1,$={x:l,y:p};A||($.anchorX=m,$.anchorY=O),se.step=()=>j.drawTracker(),j.getLabel().animate($,se)}refresh(l,p){let{chart:m,options:O,pointer:j,shared:se}=this,A=u(l),$=A[0],K=[],Z=O.format,re=O.formatter||this.defaultFormatter,y=m.styledMode,b={};if(!O.enabled||!$.series)return;q.clearTimeout(this.hideTimer),this.allowShared=!(!M(l)&&l.series&&l.series.noSharedTooltip),this.followPointer=!this.split&&$.series.tooltipOptions.followPointer;let D=this.getAnchor(l,p),U=D[0],c=D[1];se&&this.allowShared?(j.applyInactiveState(A),A.forEach(function(R){R.setState("hover"),K.push(R.getLabelConfig())}),(b=$.getLabelConfig()).points=K):b=$.getLabelConfig(),this.len=K.length;let S=W(Z)?_(Z,b,m):re.call(b,this),C=$.series;if(this.distance=f(C.tooltipOptions.distance,16),S===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(S,A);else{let R=U,I=c;if(p&&j.isDirectTouch&&(R=p.chartX-m.plotLeft,I=p.chartY-m.plotTop),m.polar||C.options.clip===!1||A.some(X=>j.isDirectTouch||X.series.shouldShowTooltip(R,I))){let X=this.getLabel();(!O.style.width||y)&&X.css({width:(this.outside?this.getPlayingField():m.spacingBox).width+"px"}),X.attr({text:S&&S.join?S.join(""):S}),X.addClass(this.getClassName($),!0),y||X.attr({stroke:O.borderColor||$.color||C.color||"#666666"}),this.updatePosition({plotX:U,plotY:c,negative:$.negative,ttBelow:$.ttBelow,h:D[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}g(this,"refresh")}renderSplit(l,p){let m=this,{chart:O,chart:{chartWidth:j,chartHeight:se,plotHeight:A,plotLeft:$,plotTop:K,scrollablePixelsY:Z=0,scrollablePixelsX:re,styledMode:y},distance:b,options:D,options:{positioner:U},pointer:c}=m,{scrollLeft:S=0,scrollTop:C=0}=O.scrollablePlotArea?.scrollingContainer||{},R=m.outside&&typeof re!="number"?E.documentElement.getBoundingClientRect():{left:S,right:S+j,top:C,bottom:C+se},I=m.getLabel(),X=this.renderer||O.renderer,ie=!!(O.xAxis[0]&&O.xAxis[0].opposite),{left:ee,top:oe}=c.getChartPosition(),ce=K+C,de=0,V=A-Z;function G(le,ue,fe,ge,pe=!0){let ye,be;return fe?(ye=ie?0:V,be=x(le-ge/2,R.left,R.right-ge-(m.outside?ee:0))):(ye=ue-ce,be=x(be=pe?le-ge-b:le+b,pe?be:R.left,R.right)),{x:be,y:ye}}W(l)&&(l=[!1,l]);let J=l.slice(0,p.length+1).reduce(function(le,ue,fe){if(ue!==!1&&ue!==""){let ge=p[fe-1]||{isHeader:!0,plotX:p[0].plotX,plotY:A,series:{}},pe=ge.isHeader,ye=pe?m:ge.series,be=ye.tt=function(Le,Fe,Je){let ze=Le,{isHeader:He,series:It}=Fe;if(!ze){let Dt={padding:D.padding,r:D.borderRadius};y||(Dt.fill=D.backgroundColor,Dt["stroke-width"]=D.borderWidth??1),ze=X.label("",0,0,D[He?"headerShape":"shape"],void 0,void 0,D.useHTML).addClass(m.getClassName(Fe,!0,He)).attr(Dt).add(I)}return ze.isActive=!0,ze.attr({text:Je}),y||ze.css(D.style).attr({stroke:D.borderColor||Fe.color||It.color||"#333333"}),ze}(ye.tt,ge,ue.toString()),ve=be.getBBox(),me=ve.width+be.strokeWidth();pe&&(de=ve.height,V+=de,ie&&(ce-=de));let{anchorX:Ee,anchorY:Me}=function(Le){let Fe,Je,{isHeader:ze,plotX:He=0,plotY:It=0,series:Dt}=Le;if(ze)Fe=Math.max($+He,$),Je=K+A/2;else{let{xAxis:qe,yAxis:Ze}=Dt;Fe=qe.pos+x(He,-b,qe.len+b),Dt.shouldShowTooltip(0,Ze.pos-K+It,{ignoreX:!0})&&(Je=Ze.pos+It)}return{anchorX:Fe=x(Fe,R.left-b,R.right+b),anchorY:Je}}(ge);if(typeof Me=="number"){let Le=ve.height+1,Fe=U?U.call(m,me,Le,ge):G(Ee,Me,pe,me);le.push({align:U?0:void 0,anchorX:Ee,anchorY:Me,boxWidth:me,point:ge,rank:f(Fe.rank,pe?1:0),size:Le,target:Fe.y,tt:be,x:Fe.x})}else be.isActive=!1}return le},[]);!U&&J.some(le=>{let{outside:ue}=m,fe=(ue?ee:0)+le.anchorX;return fefe})&&(J=J.map(le=>{let{x:ue,y:fe}=G(le.anchorX,le.anchorY,le.point.isHeader,le.boxWidth,!1);return T(le,{target:fe,x:ue})})),m.cleanSplit(),z(J,V);let te={left:ee,right:ee};J.forEach(function(le){let{x:ue,boxWidth:fe,isHeader:ge}=le;!ge&&(m.outside&&ee+uete.right&&(te.right=ee+ue))}),J.forEach(function(le){let{x:ue,anchorX:fe,anchorY:ge,pos:pe,point:{isHeader:ye}}=le,be={visibility:pe===void 0?"hidden":"inherit",x:ue,y:(pe||0)+ce,anchorX:fe,anchorY:ge};if(m.outside&&ue0&&(ye||(be.x=ue+ve,be.anchorX=fe+ve),ye&&(be.x=(te.right-te.left)/2,be.anchorX=fe+ve))}le.tt.attr(be)});let{container:ae,outside:ne,renderer:he}=m;if(ne&&ae&&he){let{width:le,height:ue,x:fe,y:ge}=I.getBBox();he.setSize(le+fe,ue+ge,!1),ae.style.left=te.left+"px",ae.style.top=oe+"px"}N&&I.attr({opacity:I.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let l=this.chart,p=this.label,m=this.shared?l.hoverPoints:l.hoverPoint;if(!p||!m)return;let O={x:0,y:0,width:0,height:0},j=this.getAnchor(m),se=p.getBBox();j[0]+=l.plotLeft-(p.translateX||0),j[1]+=l.plotTop-(p.translateY||0),O.x=Math.min(0,j[0]),O.y=Math.min(0,j[1]),O.width=j[0]<0?Math.max(Math.abs(j[0]),se.width-j[0]):Math.max(Math.abs(j[0]),se.width),O.height=j[1]<0?Math.max(Math.abs(j[1]),se.height-Math.abs(j[1])):Math.max(Math.abs(j[1]),se.height),this.tracker?this.tracker.attr(O):(this.tracker=p.renderer.rect(O).addClass("highcharts-tracker").add(p),l.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(l){return l.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(l,p){let m=l.series,O=m.tooltipOptions,j=m.xAxis,se=j&&j.dateTime,A={isFooter:p,labelConfig:l},$=O.xDateFormat,K=O[p?"footerFormat":"headerFormat"];return g(this,"headerFormatter",A,function(Z){se&&!$&&Q(l.key)&&($=se.getXDateFormat(l.key,O.dateTimeLabelFormats)),se&&$&&(l.point&&l.point.tooltipDateKeys||["key"]).forEach(function(re){K=K.replace("{point."+re+"}","{point."+re+":"+$+"}")}),m.chart.styledMode&&(K=this.styledModeFormat(K)),Z.text=_(K,{point:l,series:m},this.chart)}),A.text}update(l){this.destroy(),this.init(this.chart,F(!0,this.options,l))}updatePosition(l){let{chart:p,container:m,distance:O,options:j,pointer:se,renderer:A}=this,{height:$=0,width:K=0}=this.getLabel(),{left:Z,top:re,scaleX:y,scaleY:b}=se.getChartPosition(),D=(j.positioner||this.getPosition).call(this,K,$,l),U=(l.plotX||0)+p.plotLeft,c=(l.plotY||0)+p.plotTop,S;A&&m&&(j.positioner&&(D.x+=Z-O,D.y+=re-O),S=(j.borderWidth||0)+2*O+2,A.setSize(K+S,$+S,!1),(y!==1||b!==1)&&(P(m,{transform:`scale(${y}, ${b})`}),U*=y,c*=b),U+=Z-D.x,c+=re-D.y),this.move(Math.round(D.x),Math.round(D.y||0),U,c)}}return(B=o||(o={})).compose=function(d){w(H,"Core.Tooltip")&&k(d,"afterInit",function(){let l=this.chart;l.options.tooltip&&(l.tooltip=new B(l,l.options.tooltip,this))})},o}),r(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,i,n,h,v){let{animObject:q}=i,{defaultOptions:B}=n,{format:Y}=h,{addEvent:_,crisp:H,erase:E,extend:N,fireEvent:z,getNestedProperty:k,isArray:x,isFunction:P,isNumber:L,isObject:T,merge:g,pick:M,syncTimeout:Q,removeEvent:W,uniqueKey:F}=v;class f{animateBeforeDestroy(){let u=this,a={x:u.startXPos,opacity:0},o=u.getGraphicalProps();o.singular.forEach(function(d){u[d]=u[d].animate(d==="dataLabel"?{x:u[d].startXPos,y:u[d].startYPos,opacity:0}:a)}),o.plural.forEach(function(d){u[d].forEach(function(l){l.element&&l.animate(N({x:u.startXPos},l.startYPos?{x:l.startXPos,y:l.startYPos}:{}))})})}applyOptions(u,a){let o=this.series,d=o.options.pointValKey||o.pointValKey;return N(this,u=f.prototype.optionsToObject.call(this,u)),this.options=this.options?N(this.options,u):u,u.group&&delete this.group,u.dataLabels&&delete this.dataLabels,d&&(this.y=f.prototype.getNestedProperty.call(this,d)),this.selected&&(this.state="select"),"name"in this&&a===void 0&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),this.x===void 0&&o?a===void 0?this.x=o.autoIncrement():this.x=a:L(u.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(u.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let u=this,a=u.series,o=a.chart,d=a.options.dataSorting,l=o.hoverPoints,p=q(u.series.chart.renderer.globalAnimation),m=()=>{for(let O in(u.graphic||u.graphics||u.dataLabel||u.dataLabels)&&(W(u),u.destroyElements()),u)delete u[O]};u.legendItem&&o.legend.destroyItem(u),l&&(u.setState(),E(l,u),l.length||(o.hoverPoints=null)),u===o.hoverPoint&&u.onMouseOut(),d&&d.enabled?(this.animateBeforeDestroy(),Q(m,p.duration)):m(),o.pointCount--}this.destroyed=!0}destroyElements(u){let a=this,o=a.getGraphicalProps(u);o.singular.forEach(function(d){a[d]=a[d].destroy()}),o.plural.forEach(function(d){a[d].forEach(function(l){l&&l.element&&l.destroy()}),delete a[d]})}firePointEvent(u,a,o){let d=this,l=this.series.options;d.manageEvent(u),u==="click"&&l.allowPointSelect&&(o=function(p){!d.destroyed&&d.select&&d.select(null,p.ctrlKey||p.metaKey||p.shiftKey)}),z(d,u,a,o)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(u){let a,o,d=this,l=[],p={singular:[],plural:[]};for((u=u||{graphic:1,dataLabel:1}).graphic&&l.push("graphic","connector"),u.dataLabel&&l.push("dataLabel","dataLabelPath","dataLabelUpper"),o=l.length;o--;)d[a=l[o]]&&p.singular.push(a);return["graphic","dataLabel"].forEach(function(m){let O=m+"s";u[m]&&d[O]&&p.plural.push(O)}),p}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(u){return u?u.indexOf("custom.")===0?k(u,this.options):this[u]:void 0}getZone(){let u=this.series,a=u.zones,o=u.zoneAxis||"y",d,l=0;for(d=a[0];this[o]>=d.value;)d=a[++l];return this.nonZonedColor||(this.nonZonedColor=this.color),d&&d.color&&!this.options.color?this.color=d.color:this.color=this.nonZonedColor,d}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(u,a,o){this.formatPrefix="point",this.visible=!0,this.series=u,this.applyOptions(a,o),this.id??(this.id=F()),this.resolveColor(),u.chart.pointCount++,z(this,"afterInit")}isValid(){return(L(this.x)||this.x instanceof Date)&&L(this.y)}optionsToObject(u){let a=this.series,o=a.options.keys,d=o||a.pointArrayMap||["y"],l=d.length,p={},m,O=0,j=0;if(L(u)||u===null)p[d[0]]=u;else if(x(u))for(!o&&u.length>l&&((m=typeof u[0])=="string"?p.name=u[0]:m==="number"&&(p.x=u[0]),O++);j0?f.prototype.setNestedProperty(p,u[O],d[j]):p[d[j]]=u[O]),O++,j++;else typeof u=="object"&&(p=u,u.dataLabels&&(a.hasDataLabels=()=>!0),u.marker&&(a._hasPointMarkers=!0));return p}pos(u,a=this.plotY){if(!this.destroyed){let{plotX:o,series:d}=this,{chart:l,xAxis:p,yAxis:m}=d,O=0,j=0;if(L(o)&&L(a))return u&&(O=p?p.pos:l.plotLeft,j=m?m.pos:l.plotTop),l.inverted&&p&&m?[m.len-a+j,p.len-o+O]:[o+O,a+j]}}resolveColor(){let u=this.series,a=u.chart.options.chart,o=u.chart.styledMode,d,l,p=a.colorCount,m;delete this.nonZonedColor,u.options.colorByPoint?(o||(d=(l=u.options.colors||u.chart.options.colors)[u.colorCounter],p=l.length),m=u.colorCounter,u.colorCounter++,u.colorCounter===p&&(u.colorCounter=0)):(o||(d=u.color),m=u.colorIndex),this.colorIndex=M(this.options.colorIndex,m),this.color=M(this.options.color,d)}setNestedProperty(u,a,o){return o.split(".").reduce(function(d,l,p,m){let O=m.length-1===p;return d[l]=O?a:T(d[l],!0)?d[l]:{},d[l]},u),u}shouldDraw(){return!this.isNull}tooltipFormatter(u){let a=this.series,o=a.tooltipOptions,d=M(o.valueDecimals,""),l=o.valuePrefix||"",p=o.valueSuffix||"";return a.chart.styledMode&&(u=a.chart.tooltip.styledModeFormat(u)),(a.pointArrayMap||["y"]).forEach(function(m){m="{point."+m,(l||p)&&(u=u.replace(RegExp(m+"}","g"),l+m+"}"+p)),u=u.replace(RegExp(m+"}","g"),m+":,."+d+"f}")}),Y(u,{point:this,series:this.series},a.chart)}update(u,a,o,d){let l,p=this,m=p.series,O=p.graphic,j=m.chart,se=m.options;function A(){p.applyOptions(u);let $=O&&p.hasMockGraphic,K=p.y===null?!$:$;O&&K&&(p.graphic=O.destroy(),delete p.hasMockGraphic),T(u,!0)&&(O&&O.element&&u&&u.marker&&u.marker.symbol!==void 0&&(p.graphic=O.destroy()),u?.dataLabels&&p.dataLabel&&(p.dataLabel=p.dataLabel.destroy())),l=p.index,m.updateParallelArrays(p,l),se.data[l]=T(se.data[l],!0)||T(u,!0)?p.options:M(u,se.data[l]),m.isDirty=m.isDirtyData=!0,!m.fixedBox&&m.hasCartesianSeries&&(j.isDirtyBox=!0),se.legendType==="point"&&(j.isDirtyLegend=!0),a&&j.redraw(o)}a=M(a,!0),d===!1?A():p.firePointEvent("update",{options:u},A)}remove(u,a){this.series.removePoint(this.series.data.indexOf(this),u,a)}select(u,a){let o=this,d=o.series,l=d.chart;u=M(u,!o.selected),this.selectedStaging=u,o.firePointEvent(u?"select":"unselect",{accumulate:a},function(){o.selected=o.options.selected=u,d.options.data[d.data.indexOf(o)]=o.options,o.setState(u&&"select"),a||l.getSelectedPoints().forEach(function(p){let m=p.series;p.selected&&p!==o&&(p.selected=p.options.selected=!1,m.options.data[m.data.indexOf(p)]=p.options,p.setState(l.hoverPoints&&m.options.inactiveOtherPoints?"inactive":""),p.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(u){let{inverted:a,pointer:o}=this.series.chart;o&&(u=u?o.normalize(u):o.getChartCoordinatesFromPoint(this,a),o.runPointActions(u,this))}onMouseOut(){let u=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(u.hoverPoints||[]).forEach(function(a){a.setState()}),u.hoverPoints=u.hoverPoint=null}manageEvent(u){let a=g(this.series.options.point,this.options),o=a.events?.[u];P(o)&&(!this.hcEvents?.[u]||this.hcEvents?.[u]?.map(d=>d.fn).indexOf(o)===-1)?(_(this,u,o),this.hasImportedEvents=!0):this.hasImportedEvents&&!o&&this.hcEvents?.[u]&&(W(this,u),delete this.hcEvents[u],Object.keys(this.hcEvents)||(this.hasImportedEvents=!1))}setState(u,a){let o=this.series,d=this.state,l=o.options.states[u||"normal"]||{},p=B.plotOptions[o.type].marker&&o.options.marker,m=p&&p.enabled===!1,O=p&&p.states&&p.states[u||"normal"]||{},j=O.enabled===!1,se=this.marker||{},A=o.chart,$=p&&o.markerAttribs,K=o.halo,Z,re,y,b=o.stateMarkerGraphic,D;if((u=u||"")===this.state&&!a||this.selected&&u!=="select"||l.enabled===!1||u&&(j||m&&O.enabled===!1)||u&&se.states&&se.states[u]&&se.states[u].enabled===!1)return;if(this.state=u,$&&(Z=o.markerAttribs(this,u)),this.graphic&&!this.hasMockGraphic){if(d&&this.graphic.removeClass("highcharts-point-"+d),u&&this.graphic.addClass("highcharts-point-"+u),!A.styledMode){re=o.pointAttribs(this,u),y=M(A.options.chart.animation,l.animation);let C=re.opacity;o.options.inactiveOtherPoints&&L(C)&&(this.dataLabels||[]).forEach(function(R){R&&!R.hasClass("highcharts-data-label-hidden")&&(R.animate({opacity:C},y),R.connector&&R.connector.animate({opacity:C},y))}),this.graphic.animate(re,y)}Z&&this.graphic.animate(Z,M(A.options.chart.animation,O.animation,p.animation)),b&&b.hide()}else u&&O&&(D=se.symbol||o.symbol,b&&b.currentSymbol!==D&&(b=b.destroy()),Z&&(b?b[a?"animate":"attr"]({x:Z.x,y:Z.y}):D&&(o.stateMarkerGraphic=b=A.renderer.symbol(D,Z.x,Z.y,Z.width,Z.height).add(o.markerGroup),b.currentSymbol=D)),!A.styledMode&&b&&this.state!=="inactive"&&b.attr(o.pointAttribs(this,u))),b&&(b[u&&this.isInside?"show":"hide"](),b.element.point=this,b.addClass(this.getClassName(),!0));let U=l.halo,c=this.graphic||b,S=c&&c.visibility||"inherit";U&&U.size&&c&&S!=="hidden"&&!this.isCluster?(K||(o.halo=K=A.renderer.path().add(c.parentGroup)),K.show()[a?"animate":"attr"]({d:this.haloPath(U.size)}),K.attr({class:"highcharts-halo highcharts-color-"+M(this.colorIndex,o.colorIndex)+(this.className?" "+this.className:""),visibility:S,zIndex:-1}),K.point=this,A.styledMode||K.attr(N({fill:this.color||o.color,"fill-opacity":U.opacity},t.filterUserAttributes(U.attributes||{})))):K?.point?.haloPath&&!K.point.destroyed&&K.animate({d:K.point.haloPath(0)},null,K.hide),z(this,"afterSetState",{state:u})}haloPath(u){let a=this.pos();return a?this.series.chart.renderer.symbols.circle(H(a[0],1)-u,a[1]-u,2*u,2*u):[]}}return f}),r(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n){var h;let{parse:v}=t,{charts:q,composed:B,isTouchDevice:Y}=i,{addEvent:_,attr:H,css:E,extend:N,find:z,fireEvent:k,isNumber:x,isObject:P,objectEach:L,offset:T,pick:g,pushUnique:M,splat:Q}=n;class W{applyInactiveState(f){let w=[],u;(f||[]).forEach(function(a){u=a.series,w.push(u),u.linkedParent&&w.push(u.linkedParent),u.linkedSeries&&(w=w.concat(u.linkedSeries)),u.navigatorSeries&&w.push(u.navigatorSeries)}),this.chart.series.forEach(function(a){w.indexOf(a)===-1?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})}destroy(){let f=this;this.eventsToUnbind.forEach(w=>w()),this.eventsToUnbind=[],!i.chartCount&&(W.unbindDocumentMouseUp&&(W.unbindDocumentMouseUp=W.unbindDocumentMouseUp()),W.unbindDocumentTouchEnd&&(W.unbindDocumentTouchEnd=W.unbindDocumentTouchEnd())),clearInterval(f.tooltipTimeout),L(f,function(w,u){f[u]=void 0})}getSelectionMarkerAttrs(f,w){let u={args:{chartX:f,chartY:w},attrs:{},shapeType:"rect"};return k(this,"getSelectionMarkerAttrs",u,a=>{let o,{chart:d,zoomHor:l,zoomVert:p}=this,{mouseDownX:m=0,mouseDownY:O=0}=d,j=a.attrs;j.x=d.plotLeft,j.y=d.plotTop,j.width=l?1:d.plotWidth,j.height=p?1:d.plotHeight,l&&(o=f-m,j.width=Math.max(1,Math.abs(o)),j.x=(o>0?0:o)+m),p&&(o=w-O,j.height=Math.max(1,Math.abs(o)),j.y=(o>0?0:o)+O)}),u}drag(f){let{chart:w}=this,{mouseDownX:u=0,mouseDownY:a=0}=w,{panning:o,panKey:d,selectionMarkerFill:l}=w.options.chart,p=w.plotLeft,m=w.plotTop,O=w.plotWidth,j=w.plotHeight,se=P(o)?o.enabled:o,A=d&&f[`${d}Key`],$=f.chartX,K=f.chartY,Z,re=this.selectionMarker;if((!re||!re.touch)&&($p+O&&($=p+O),Km+j&&(K=m+j),this.hasDragged=Math.sqrt(Math.pow(u-$,2)+Math.pow(a-K,2)),this.hasDragged>10)){Z=w.isInsidePlot(u-p,a-m,{visiblePlotOnly:!0});let{shapeType:y,attrs:b}=this.getSelectionMarkerAttrs($,K);(w.hasCartesianSeries||w.mapView)&&this.hasZoom&&Z&&!A&&!re&&(this.selectionMarker=re=w.renderer[y](),re.attr({class:"highcharts-selection-marker",zIndex:7}).add(),w.styledMode||re.attr({fill:l||v("#334eff").setOpacity(.25).get()})),re&&re.attr(b),Z&&!re&&se&&w.pan(f,o)}}dragStart(f){let w=this.chart;w.mouseIsDown=f.type,w.cancelClick=!1,w.mouseDownX=f.chartX,w.mouseDownY=f.chartY}getSelectionBox(f){let w={args:{marker:f},result:f.getBBox()};return k(this,"getSelectionBox",w),w.result}drop(f){let w,{chart:u,selectionMarker:a}=this;for(let o of u.axes)o.isPanning&&(o.isPanning=!1,(o.options.startOnTick||o.options.endOnTick||o.series.some(d=>d.boosted))&&(o.forceRedraw=!0,o.setExtremes(o.userMin,o.userMax,!1),w=!0));if(w&&u.redraw(),a&&f){if(this.hasDragged){let o=this.getSelectionBox(a);u.transform({axes:u.axes.filter(d=>d.zoomEnabled&&(d.coll==="xAxis"&&this.zoomX||d.coll==="yAxis"&&this.zoomY)),selection:we({originalEvent:f,xAxis:[],yAxis:[]},o),from:o})}x(u.index)&&(this.selectionMarker=a.destroy())}u&&x(u.index)&&(E(u.container,{cursor:u._cursor}),u.cancelClick=this.hasDragged>10,u.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(f,w,u){let a;return f.forEach(function(o){let d=!(o.noSharedTooltip&&w)&&0>o.options.findNearestPointBy.indexOf("y"),l=o.searchPoint(u,d);P(l,!0)&&l.series&&(!P(a,!0)||function(p,m){let O=p.distX-m.distX,j=p.dist-m.dist,se=m.series.group?.zIndex-p.series.group?.zIndex;return O!==0&&w?O:j!==0?j:se!==0?se:p.series.index>m.series.index?-1:1}(a,l)>0)&&(a=l)}),a}getChartCoordinatesFromPoint(f,w){let{xAxis:u,yAxis:a}=f.series,o=f.shapeArgs;if(u&&a){let d=f.clientX??f.plotX??0,l=f.plotY||0;return f.isNode&&o&&x(o.x)&&x(o.y)&&(d=o.x,l=o.y),w?{chartX:a.len+a.pos-l,chartY:u.len+u.pos-d}:{chartX:d+u.pos,chartY:l+a.pos}}if(o&&o.x&&o.y)return{chartX:o.x,chartY:o.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:f}=this.chart,w=T(f);this.chartPosition={left:w.left,top:w.top,scaleX:1,scaleY:1};let{offsetHeight:u,offsetWidth:a}=f;return a>2&&u>2&&(this.chartPosition.scaleX=w.width/a,this.chartPosition.scaleY=w.height/u),this.chartPosition}getCoordinates(f){let w={xAxis:[],yAxis:[]};for(let u of this.chart.axes)w[u.isXAxis?"xAxis":"yAxis"].push({axis:u,value:u.toValue(f[u.horiz?"chartX":"chartY"])});return w}getHoverData(f,w,u,a,o,d){let l=[],p=function(A){return A.visible&&!(!o&&A.directTouch)&&g(A.options.enableMouseTracking,!0)},m=w,O,j={chartX:d?d.chartX:void 0,chartY:d?d.chartY:void 0,shared:o};k(this,"beforeGetHoverData",j),O=m&&!m.stickyTracking?[m]:u.filter(A=>A.stickyTracking&&(j.filter||p)(A));let se=a&&f||!d?f:this.findNearestKDPoint(O,o,d);return m=se&&se.series,se&&(o&&!m.noSharedTooltip?(O=u.filter(function(A){return j.filter?j.filter(A):p(A)&&!A.noSharedTooltip})).forEach(function(A){let $=z(A.points,function(K){return K.x===se.x&&!K.isNull});P($)&&(A.boosted&&A.boost&&($=A.boost.getPoint($)),l.push($))}):l.push(se)),k(this,"afterGetHoverData",j={hoverPoint:se}),{hoverPoint:j.hoverPoint,hoverSeries:m,hoverPoints:l}}getPointFromEvent(f){let w=f.target,u;for(;w&&!u;)u=w.point,w=w.parentNode;return u}onTrackerMouseOut(f){let w=this.chart,u=f.relatedTarget,a=w.hoverSeries;this.isDirectTouch=!1,!a||!u||a.stickyTracking||this.inClass(u,"highcharts-tooltip")||this.inClass(u,"highcharts-series-"+a.index)&&this.inClass(u,"highcharts-tracker")||a.onMouseOut()}inClass(f,w){let u=f,a;for(;u;){if(a=H(u,"class")){if(a.indexOf(w)!==-1)return!0;if(a.indexOf("highcharts-container")!==-1)return!1}u=u.parentElement}}constructor(f,w){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=w,this.chart=f,this.runChartClick=!!w.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),k(this,"afterInit")}normalize(f,w){let u=f.touches,a=u?u.length?u.item(0):g(u.changedTouches,f.changedTouches)[0]:f;w||(w=this.getChartPosition());let o=a.pageX-w.left,d=a.pageY-w.top;return N(f,{chartX:Math.round(o/=w.scaleX),chartY:Math.round(d/=w.scaleY)})}onContainerClick(f){let w=this.chart,u=w.hoverPoint,a=this.normalize(f),o=w.plotLeft,d=w.plotTop;!w.cancelClick&&(u&&this.inClass(a.target,"highcharts-tracker")?(k(u.series,"click",N(a,{point:u})),w.hoverPoint&&u.firePointEvent("click",a)):(N(a,this.getCoordinates(a)),w.isInsidePlot(a.chartX-o,a.chartY-d,{visiblePlotOnly:!0})&&k(w,"click",a)))}onContainerMouseDown(f){let w=(1&(f.buttons||f.button))==1;f=this.normalize(f),i.isFirefox&&f.button!==0&&this.onContainerMouseMove(f),(f.button===void 0||w)&&(this.zoomOption(f),w&&f.preventDefault?.(),this.dragStart(f))}onContainerMouseLeave(f){let{pointer:w}=q[g(W.hoverChartIndex,-1)]||{};f=this.normalize(f),this.onContainerMouseMove(f),w&&f.relatedTarget&&!this.inClass(f.relatedTarget,"highcharts-tooltip")&&(w.reset(),w.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(f){let w=this.chart,u=w.tooltip,a=this.normalize(f);this.setHoverChartIndex(f),(w.mouseIsDown==="mousedown"||this.touchSelect(a))&&this.drag(a),!w.openMenu&&(this.inClass(a.target,"highcharts-tracker")||w.isInsidePlot(a.chartX-w.plotLeft,a.chartY-w.plotTop,{visiblePlotOnly:!0}))&&!(u&&u.shouldStickOnContact(a))&&(this.inClass(a.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(a))}onDocumentTouchEnd(f){this.onDocumentMouseUp(f)}onContainerTouchMove(f){this.touchSelect(f)?this.onContainerMouseMove(f):this.touch(f)}onContainerTouchStart(f){this.touchSelect(f)?this.onContainerMouseDown(f):(this.zoomOption(f),this.touch(f,!0))}onDocumentMouseMove(f){let w=this.chart,u=w.tooltip,a=this.chartPosition,o=this.normalize(f,a);!a||w.isInsidePlot(o.chartX-w.plotLeft,o.chartY-w.plotTop,{visiblePlotOnly:!0})||u&&u.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(f){q[g(W.hoverChartIndex,-1)]?.pointer?.drop(f)}pinch(f){let w=this,{chart:u,hasZoom:a,lastTouches:o}=w,d=[].map.call(f.touches||[],j=>w.normalize(j)),l=d.length,p=l===1&&(w.inClass(f.target,"highcharts-tracker")&&u.runTrackerClick||w.runChartClick),m=u.tooltip,O=l===1&&g(m?.options.followTouchMove,!0);l>1?w.initiated=!0:O&&(w.initiated=!1),a&&w.initiated&&!p&&f.cancelable!==!1&&f.preventDefault(),f.type==="touchstart"?(w.pinchDown=d,w.res=!0):O?this.runPointActions(w.normalize(f)):o&&(k(u,"touchpan",{originalEvent:f,touches:d},()=>{let j=se=>{let A=se[0],$=se[1]||A;return{x:A.chartX,y:A.chartY,width:$.chartX-A.chartX,height:$.chartY-A.chartY}};u.transform({axes:u.axes.filter(se=>se.zoomEnabled&&(this.zoomHor&&se.horiz||this.zoomVert&&!se.horiz)),to:j(d),from:j(o),trigger:f.type})}),w.res&&(w.res=!1,this.reset(!1,0))),w.lastTouches=d}reset(f,w){let u=this.chart,a=u.hoverSeries,o=u.hoverPoint,d=u.hoverPoints,l=u.tooltip,p=l&&l.shared?d:o;f&&p&&Q(p).forEach(function(m){m.series.isCartesian&&m.plotX===void 0&&(f=!1)}),f?l&&p&&Q(p).length&&(l.refresh(p),l.shared&&d?d.forEach(function(m){m.setState(m.state,!0),m.series.isCartesian&&(m.series.xAxis.crosshair&&m.series.xAxis.drawCrosshair(null,m),m.series.yAxis.crosshair&&m.series.yAxis.drawCrosshair(null,m))}):o&&(o.setState(o.state,!0),u.axes.forEach(function(m){m.crosshair&&o.series[m.coll]===m&&m.drawCrosshair(null,o)}))):(o&&o.onMouseOut(),d&&d.forEach(function(m){m.setState()}),a&&a.onMouseOut(),l&&l.hide(w),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),u.axes.forEach(function(m){m.hideCrosshair()}),u.hoverPoints=u.hoverPoint=void 0)}runPointActions(f,w,u){let a=this.chart,o=a.series,d=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,l=!!d&&d.shared,p=w||a.hoverPoint,m=p&&p.series||a.hoverSeries,O=(!f||f.type!=="touchmove")&&(!!w||m&&m.directTouch&&this.isDirectTouch),j=this.getHoverData(p,m,o,O,l,f);p=j.hoverPoint,m=j.hoverSeries;let se=j.hoverPoints,A=m&&m.tooltipOptions.followPointer&&!m.tooltipOptions.split,$=l&&m&&!m.noSharedTooltip;if(p&&(u||p!==a.hoverPoint||d&&d.isHidden)){if((a.hoverPoints||[]).forEach(function(K){se.indexOf(K)===-1&&K.setState()}),a.hoverSeries!==m&&m.onMouseOver(),this.applyInactiveState(se),(se||[]).forEach(function(K){K.setState("hover")}),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!p.series)return;a.hoverPoints=se,a.hoverPoint=p,p.firePointEvent("mouseOver",void 0,()=>{d&&p&&d.refresh($?se:p,f)})}else if(A&&d&&!d.isHidden){let K=d.getAnchor([{}],f);a.isInsidePlot(K[0],K[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:K[0],plotY:K[1]})}this.unDocMouseMove||(this.unDocMouseMove=_(a.container.ownerDocument,"mousemove",K=>q[W.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(K)),this.eventsToUnbind.push(this.unDocMouseMove)),a.axes.forEach(function(K){let Z,re=g((K.crosshair||{}).snap,!0);!re||(Z=a.hoverPoint)&&Z.series[K.coll]===K||(Z=z(se,y=>y.series&&y.series[K.coll]===K)),Z||!re?K.drawCrosshair(f,Z):K.hideCrosshair()})}setDOMEvents(){let f=this.chart.container,w=f.ownerDocument;f.onmousedown=this.onContainerMouseDown.bind(this),f.onmousemove=this.onContainerMouseMove.bind(this),f.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(_(f,"mouseenter",this.onContainerMouseEnter.bind(this)),_(f,"mouseleave",this.onContainerMouseLeave.bind(this))),W.unbindDocumentMouseUp||(W.unbindDocumentMouseUp=_(w,"mouseup",this.onDocumentMouseUp.bind(this)));let u=this.chart.renderTo.parentElement;for(;u&&u.tagName!=="BODY";)this.eventsToUnbind.push(_(u,"scroll",()=>{delete this.chartPosition})),u=u.parentElement;this.eventsToUnbind.push(_(f,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),_(f,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),W.unbindDocumentTouchEnd||(W.unbindDocumentTouchEnd=_(w,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),_(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Y)return;let f=this.pointerCaptureEventsToUnbind,w=this.chart,u=w.container,a=g(w.options.tooltip?.followTouchMove,!0)&&w.series.some(o=>o.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&a?(f.push(_(u,"pointerdown",o=>{o.target?.hasPointerCapture(o.pointerId)&&o.target?.releasePointerCapture(o.pointerId)}),_(u,"pointermove",o=>{w.pointer?.getPointFromEvent(o)?.onMouseOver(o)})),w.styledMode||E(u,{"touch-action":"none"}),u.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!a&&(f.forEach(o=>o()),f.length=0,w.styledMode||E(u,{"touch-action":g(w.options.chart.style?.["touch-action"],"manipulation")}),u.className=u.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(f){let w=this.chart,u=i.charts[g(W.hoverChartIndex,-1)];u&&u!==w&&u.pointer?.onContainerMouseLeave(f||{relatedTarget:w.container}),u&&u.mouseIsDown||(W.hoverChartIndex=w.index)}touch(f,w){let u,{chart:a,pinchDown:o=[]}=this;this.setHoverChartIndex(),f.touches.length===1?(f=this.normalize(f),a.isInsidePlot(f.chartX-a.plotLeft,f.chartY-a.plotTop,{visiblePlotOnly:!0})&&!a.openMenu?(w&&this.runPointActions(f),f.type==="touchmove"&&(u=!!o[0]&&Math.pow(o[0].chartX-f.chartX,2)+Math.pow(o[0].chartY-f.chartY,2)>=16),g(u,!0)&&this.pinch(f)):w&&this.reset()):f.touches.length===2&&this.pinch(f)}touchSelect(f){return!!(this.chart.zooming.singleTouch&&f.touches&&f.touches.length===1)}zoomOption(f){let w=this.chart,u=w.inverted,a=w.zooming.type||"",o,d;/touch/.test(f.type)&&(a=g(w.zooming.pinchType,a)),this.zoomX=o=/x/.test(a),this.zoomY=d=/y/.test(a),this.zoomHor=o&&!u||d&&u,this.zoomVert=d&&!u||o&&u,this.hasZoom=o||d}}return(h=W||(W={})).compose=function(F){M(B,"Core.Pointer")&&_(F,"beforeRender",function(){this.pointer=new h(this,this.options)})},W}),r(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q){var B;let{animObject:Y,setAnimation:_}=t,{format:H}=i,{composed:E,marginNames:N}=n,{distribute:z}=v,{addEvent:k,createElement:x,css:P,defined:L,discardElement:T,find:g,fireEvent:M,isNumber:Q,merge:W,pick:F,pushUnique:f,relativeLength:w,stableSort:u,syncTimeout:a}=q;class o{constructor(l,p){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=l,this.setOptions(p),p.enabled&&(this.render(),k(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),k(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(l){let p=F(l.padding,8);this.options=l,this.chart.styledMode||(this.itemStyle=l.itemStyle,this.itemHiddenStyle=W(this.itemStyle,l.itemHiddenStyle)),this.itemMarginTop=l.itemMarginTop,this.itemMarginBottom=l.itemMarginBottom,this.padding=p,this.initialItemY=p-5,this.symbolWidth=F(l.symbolWidth,16),this.pages=[],this.proximate=l.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(l,p){let m=this.chart;this.setOptions(W(!0,this.options,l)),this.destroy(),m.isDirtyLegend=m.isDirtyBox=!0,F(p,!0)&&m.redraw(),M(this,"afterUpdate",{redraw:p})}colorizeItem(l,p){let{area:m,group:O,label:j,line:se,symbol:A}=l.legendItem||{};if(O?.[p?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:$={}}=this,K=$.color,{fillColor:Z,fillOpacity:re,lineColor:y,marker:b}=l.options,D=U=>(!p&&(U.fill&&(U.fill=K),U.stroke&&(U.stroke=K)),U);j?.css(W(p?this.itemStyle:$)),se?.attr(D({stroke:y||l.color})),A&&A.attr(D(b&&A.isMarker?l.pointAttribs():{fill:l.color})),m?.attr(D({fill:Z||l.color,"fill-opacity":Z?1:re??.75}))}M(this,"afterColorizeItem",{item:l,visible:p})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(l){let{group:p,x:m=0,y:O=0}=l.legendItem||{},j=this.options,se=j.symbolPadding,A=!j.rtl,$=l.checkbox;if(p&&p.element){let K={translateX:A?m:this.legendWidth-m-2*se-4,translateY:O};p[L(p.translateY)?"animate":"attr"](K,void 0,()=>{M(this,"afterPositionItem",{item:l})})}$&&($.x=m,$.y=O)}destroyItem(l){let p=l.checkbox,m=l.legendItem||{};for(let O of["group","label","line","symbol"])m[O]&&(m[O]=m[O].destroy());p&&T(p),l.legendItem=void 0}destroy(){for(let l of this.getAllItems())this.destroyItem(l);for(let l of["clipRect","up","down","pager","nav","box","title","group"])this[l]&&(this[l]=this[l].destroy());this.display=null}positionCheckboxes(){let l,p=this.group&&this.group.alignAttr,m=this.clipHeight||this.legendHeight,O=this.titleHeight;p&&(l=p.translateY,this.allItems.forEach(function(j){let se,A=j.checkbox;A&&(se=l+O+A.y+(this.scrollOffset||0)+3,P(A,{left:p.translateX+j.checkboxOffset+A.x-20+"px",top:se+"px",display:this.proximate||se>l-6&&se1.5*ie?X.height:ie))}layoutItem(l){let p=this.options,m=this.padding,O=p.layout==="horizontal",j=l.itemHeight,se=this.itemMarginBottom,A=this.itemMarginTop,$=O?F(p.itemDistance,20):0,K=this.maxLegendWidth,Z=p.alignColumns&&this.totalItemWidth>K?this.maxItemWidth:l.itemWidth,re=l.legendItem||{};O&&this.itemX-m+Z>K&&(this.itemX=m,this.lastLineHeight&&(this.itemY+=A+this.lastLineHeight+se),this.lastLineHeight=0),this.lastItemY=A+this.itemY+se,this.lastLineHeight=Math.max(j,this.lastLineHeight),re.x=this.itemX,re.y=this.itemY,O?this.itemX+=Z:(this.itemY+=A+j+se,this.lastLineHeight=j),this.offsetWidth=this.widthOption||Math.max((O?this.itemX-m-(l.checkbox?0:$):Z)+m,this.offsetWidth)}getAllItems(){let l=[];return this.chart.series.forEach(function(p){let m=p&&p.options;p&&F(m.showInLegend,!L(m.linkedTo)&&void 0,!0)&&(l=l.concat((p.legendItem||{}).labels||(m.legendType==="point"?p.data:p)))}),M(this,"afterGetAllItems",{allItems:l}),l}getAlignment(){let l=this.options;return this.proximate?l.align.charAt(0)+"tv":l.floating?"":l.align.charAt(0)+l.verticalAlign.charAt(0)+l.layout.charAt(0)}adjustMargins(l,p){let m=this.chart,O=this.options,j=this.getAlignment();j&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(se,A){se.test(j)&&!L(l[A])&&(m[N[A]]=Math.max(m[N[A]],m.legend[(A+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][A]*O[A%2?"x":"y"]+F(O.margin,12)+p[A]+(m.titleOffset[A]||0)))})}proximatePositions(){let l,p=this.chart,m=[],O=this.options.align==="left";for(let j of(this.allItems.forEach(function(se){let A,$,K=O,Z,re;se.yAxis&&(se.xAxis.options.reversed&&(K=!K),se.points&&(A=g(K?se.points:se.points.slice(0).reverse(),function(y){return Q(y.plotY)})),$=this.itemMarginTop+se.legendItem.label.getBBox().height+this.itemMarginBottom,re=se.yAxis.top-p.plotTop,Z=se.visible?(A?A.plotY:se.yAxis.height)+(re-.3*$):re+se.yAxis.height,m.push({target:Z,size:$,item:se}))},this),z(m,p.plotHeight)))l=j.item.legendItem||{},Q(j.pos)&&(l.y=p.plotTop-p.spacing[0]+j.pos)}render(){let l=this.chart,p=l.renderer,m=this.options,O=this.padding,j=this.getAllItems(),se,A,$,K=this.group,Z,re=this.box;this.itemX=O,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=w(m.width,l.spacingBox.width-O),Z=l.spacingBox.width-2*O-m.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(Z/=2),this.maxLegendWidth=this.widthOption||Z,K||(this.group=K=p.g("legend").addClass(m.className||"").attr({zIndex:7}).add(),this.contentGroup=p.g().attr({zIndex:1}).add(K),this.scrollGroup=p.g().add(this.contentGroup)),this.renderTitle(),u(j,(y,b)=>(y.options&&y.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)),m.reversed&&j.reverse(),this.allItems=j,this.display=se=!!j.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,j.forEach(this.renderItem,this),j.forEach(this.layoutItem,this),A=(this.widthOption||this.offsetWidth)+O,$=this.lastItemY+this.lastLineHeight+this.titleHeight,$=this.handleOverflow($)+O,re||(this.box=re=p.rect().addClass("highcharts-legend-box").attr({r:m.borderRadius}).add(K)),l.styledMode||re.attr({stroke:m.borderColor,"stroke-width":m.borderWidth||0,fill:m.backgroundColor||"none"}).shadow(m.shadow),A>0&&$>0&&re[re.placed?"animate":"attr"](re.crisp.call({},{x:0,y:0,width:A,height:$},re.strokeWidth())),K[se?"show":"hide"](),l.styledMode&&K.getStyle("display")==="none"&&(A=$=0),this.legendWidth=A,this.legendHeight=$,se&&this.align(),this.proximate||this.positionItems(),M(this,"afterRender")}align(l=this.chart.spacingBox){let p=this.chart,m=this.options,O=l.y;/(lth|ct|rth)/.test(this.getAlignment())&&p.titleOffset[0]>0?O+=p.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&p.titleOffset[2]>0&&(O-=p.titleOffset[2]),O!==l.y&&(l=W(l,{y:O})),p.hasRendered||(this.group.placed=!1),this.group.align(W(m,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":m.verticalAlign}),!0,l)}handleOverflow(l){let p=this,m=this.chart,O=m.renderer,j=this.options,se=j.y,A=j.verticalAlign==="top",$=this.padding,K=j.maxHeight,Z=j.navigation,re=F(Z.animation,!0),y=Z.arrowSize||12,b=this.pages,D=this.allItems,U=function(ee){typeof ee=="number"?ie.attr({height:ee}):ie&&(p.clipRect=ie.destroy(),p.contentGroup.clip()),p.contentGroup.div&&(p.contentGroup.div.style.clip=ee?"rect("+$+"px,9999px,"+($+ee)+"px,0)":"auto")},c=function(ee){return p[ee]=O.circle(0,0,1.3*y).translate(y/2,y/2).add(X),m.styledMode||p[ee].attr("fill","rgba(0,0,0,0.0001)"),p[ee]},S,C,R,I=m.spacingBox.height+(A?-se:se)-$,X=this.nav,ie=this.clipRect;return j.layout!=="horizontal"||j.verticalAlign==="middle"||j.floating||(I/=2),K&&(I=Math.min(I,K)),b.length=0,l&&I>0&&l>I&&Z.enabled!==!1?(this.clipHeight=S=Math.max(I-20-this.titleHeight-$,0),this.currentPage=F(this.currentPage,1),this.fullHeight=l,D.forEach((ee,oe)=>{let ce=(R=ee.legendItem||{}).y||0,de=Math.round(R.label.getBBox().height),V=b.length;(!V||ce-b[V-1]>S&&(C||ce)!==b[V-1])&&(b.push(C||ce),V++),R.pageIx=V-1,C&&((D[oe-1].legendItem||{}).pageIx=V-1),oe===D.length-1&&ce+de-b[V-1]>S&&ce>b[V-1]&&(b.push(ce),R.pageIx=V),ce!==C&&(C=ce)}),ie||(ie=p.clipRect=O.clipRect(0,$-2,9999,0),p.contentGroup.clip(ie)),U(S),X||(this.nav=X=O.g().attr({zIndex:1}).add(this.group),this.up=O.symbol("triangle",0,0,y,y).add(X),c("upTracker").on("click",function(){p.scroll(-1,re)}),this.pager=O.text("",15,10).addClass("highcharts-legend-navigation"),!m.styledMode&&Z.style&&this.pager.css(Z.style),this.pager.add(X),this.down=O.symbol("triangle-down",0,0,y,y).add(X),c("downTracker").on("click",function(){p.scroll(1,re)})),p.scroll(0),l=I):X&&(U(),this.nav=X.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),l}scroll(l,p){let m=this.chart,O=this.pages,j=O.length,se=this.clipHeight,A=this.options.navigation,$=this.pager,K=this.padding,Z=this.currentPage+l;Z>j&&(Z=j),Z>0&&(p!==void 0&&_(p,m),this.nav.attr({translateX:K,translateY:se+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(re){re.attr({class:Z===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),$.attr({text:Z+"/"+j}),[this.down,this.downTracker].forEach(function(re){re.attr({x:18+this.pager.getBBox().width,class:Z===j?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),m.styledMode||(this.up.attr({fill:Z===1?A.inactiveColor:A.activeColor}),this.upTracker.css({cursor:Z===1?"default":"pointer"}),this.down.attr({fill:Z===j?A.inactiveColor:A.activeColor}),this.downTracker.css({cursor:Z===j?"default":"pointer"})),this.scrollOffset=-O[Z-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=Z,this.positionCheckboxes(),a(()=>{M(this,"afterScroll",{currentPage:Z})},Y(F(p,m.renderer.globalAnimation,!0)).duration))}setItemEvents(l,p,m){let O=this,j=l.legendItem||{},se=O.chart.renderer.boxWrapper,A=l instanceof h,$="highcharts-legend-"+(A?"point":"series")+"-active",K=O.chart.styledMode,Z=m?[p,j.symbol]:[j.group],re=y=>{O.allItems.forEach(b=>{l!==b&&[b].concat(b.linkedSeries||[]).forEach(D=>{D.setState(y,!A)})})};for(let y of Z)y&&y.on("mouseover",function(){l.visible&&re("inactive"),l.setState("hover"),l.visible&&se.addClass($),K||p.css(O.options.itemHoverStyle)}).on("mouseout",function(){O.chart.styledMode||p.css(W(l.visible?O.itemStyle:O.itemHiddenStyle)),re(""),se.removeClass($),l.setState()}).on("click",function(b){let D="legendItemClick",U=function(){l.setVisible&&l.setVisible(),re(l.visible?"inactive":"")};se.removeClass($),b={browserEvent:b},l.firePointEvent?l.firePointEvent(D,b,U):M(l,D,b,U)})}createCheckboxForItem(l){l.checkbox=x("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:l.selected,defaultChecked:l.selected},this.options.itemCheckboxStyle,this.chart.container),k(l.checkbox,"click",function(p){let m=p.target;M(l.series||l,"checkboxClick",{checked:m.checked,item:l},function(){l.select()})})}}return(B=o||(o={})).compose=function(d){f(E,"Core.Legend")&&k(d,"beforeMargins",function(){this.legend=new B(this,this.options.legend)})},o}),r(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],function(t){var i;let{extend:n,merge:h,pick:v}=t;return function(q){function B(Y,_,H){let E=this.legendItem=this.legendItem||{},{chart:N,options:z}=this,{baseline:k=0,symbolWidth:x,symbolHeight:P}=Y,L=this.symbol||"circle",T=P/2,g=N.renderer,M=E.group,Q=k-Math.round(P*(H?.4:.3)),W={},F,f=z.marker,w=0;if(N.styledMode||(W["stroke-width"]=Math.min(z.lineWidth||0,24),z.dashStyle?W.dashstyle=z.dashStyle:z.linecap==="square"||(W["stroke-linecap"]="round")),E.line=g.path().addClass("highcharts-graph").attr(W).add(M),H&&(E.area=g.path().addClass("highcharts-area").add(M)),W["stroke-linecap"]&&(w=Math.min(E.line.strokeWidth(),x)/2),x){let u=[["M",w,Q],["L",x-w,Q]];E.line.attr({d:u}),E.area?.attr({d:[...u,["L",x-w,k],["L",w,k]]})}if(f&&f.enabled!==!1&&x){let u=Math.min(v(f.radius,T),T);L.indexOf("url")===0&&(f=h(f,{width:P,height:P}),u=0),E.symbol=F=g.symbol(L,x/2-u,Q-u,2*u,2*u,n({context:"legend"},f)).addClass("highcharts-point").add(M),F.isMarker=!0}}q.areaMarker=function(Y,_){B.call(this,Y,_,!0)},q.lineMarker=B,q.rectangle=function(Y,_){let H=_.legendItem||{},E=Y.options,N=Y.symbolHeight,z=E.squareSymbol,k=z?N:Y.symbolWidth;H.symbol=this.chart.renderer.rect(z?(Y.symbolWidth-N)/2:0,Y.baseline-N+1,k,N,v(Y.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(H.group)}}(i||(i={})),i}),r(e,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:t}=this.series.chart;return typeof this.y!="number"?"":t(this.y,-1)},padding:5,style:{fontSize:"0.7em",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}}),r(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Defaults.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,i,n,h){var v;let{defaultOptions:q}=i,{extend:B,extendClass:Y,merge:_}=h;return function(H){function E(N,z){let k=q.plotOptions||{},x=z.defaultOptions,P=z.prototype;return P.type=N,P.pointClass||(P.pointClass=n),!H.seriesTypes[N]&&(x&&(k[N]=x),H.seriesTypes[N]=z,!0)}H.seriesTypes=t.seriesTypes,H.registerSeriesType=E,H.seriesType=function(N,z,k,x,P){let L=q.plotOptions||{};if(z=z||"",L[N]=_(L[z],k),delete H.seriesTypes[N],E(N,Y(H.seriesTypes[z]||function(){},x)),H.seriesTypes[N].prototype.type=N,P){class T extends n{}B(T.prototype,P),H.seriesTypes[N].prototype.pointClass=T}return H.seriesTypes[N]}}(v||(v={})),v}),r(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q,B,Y,_,H){let{animObject:E,setAnimation:N}=t,{defaultOptions:z}=i,{registerEventOptions:k}=n,{svg:x,win:P}=h,{seriesTypes:L}=Y,{arrayMax:T,arrayMin:g,clamp:M,correctFloat:Q,crisp:W,defined:F,destroyObjectProperties:f,diffObjects:w,erase:u,error:a,extend:o,find:d,fireEvent:l,getClosestDistance:p,getNestedProperty:m,insertItem:O,isArray:j,isNumber:se,isString:A,merge:$,objectEach:K,pick:Z,removeEvent:re,splat:y,syncTimeout:b}=H;class D{constructor(){this.zoneAxis="y"}init(c,S){let C;l(this,"init",{options:S});let R=this,I=c.series;this.eventsToUnbind=[],R.chart=c,R.options=R.setOptions(S);let X=R.options,ie=X.visible!==!1;R.linkedSeries=[],R.bindAxes(),o(R,{name:X.name,state:"",visible:ie,selected:X.selected===!0}),k(this,X);let ee=X.events;(ee&&ee.click||X.point&&X.point.events&&X.point.events.click||X.allowPointSelect)&&(c.runTrackerClick=!0),R.getColor(),R.getSymbol(),R.parallelArrays.forEach(function(oe){R[oe+"Data"]||(R[oe+"Data"]=[])}),R.isCartesian&&(c.hasCartesianSeries=!0),I.length&&(C=I[I.length-1]),R._i=Z(C&&C._i,-1)+1,R.opacity=R.options.opacity,c.orderItems("series",O(this,I)),X.dataSorting&&X.dataSorting.enabled?R.setDataSortingOptions():R.points||R.data||R.setData(X.data,!1),l(this,"afterInit")}is(c){return L[c]&&this instanceof L[c]}bindAxes(){let c,S=this,C=S.options,R=S.chart;l(this,"bindAxes",null,function(){(S.axisTypes||[]).forEach(function(I){(R[I]||[]).forEach(function(X){c=X.options,(Z(C[I],0)===X.index||C[I]!==void 0&&C[I]===c.id)&&(O(S,X.series),S[I]=X,X.isDirty=!0)}),S[I]||S.optionalAxis===I||a(18,!0,R)})}),l(this,"afterBindAxes")}updateParallelArrays(c,S,C){let R=c.series,I=se(S)?function(X){let ie=X==="y"&&R.toYData?R.toYData(c):c[X];R[X+"Data"][S]=ie}:function(X){Array.prototype[S].apply(R[X+"Data"],C)};R.parallelArrays.forEach(I)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(c,S){let C=c.marker,R=S.marker||{};return C&&(R.enabled&&!C.enabled||R.symbol!==C.symbol||R.height!==C.height||R.width!==C.width)}autoIncrement(c){let S=this.options,C=S.pointIntervalUnit,R=S.relativeXValue,I=this.chart.time,X=this.xIncrement,ie,ee;return X=Z(X,S.pointStart,0),this.pointInterval=ee=Z(this.pointInterval,S.pointInterval,1),R&&se(c)&&(ee*=c),C&&(ie=new I.Date(X),C==="day"?I.set("Date",ie,I.get("Date",ie)+ee):C==="month"?I.set("Month",ie,I.get("Month",ie)+ee):C==="year"&&I.set("FullYear",ie,I.get("FullYear",ie)+ee),ee=ie.getTime()-X),R&&se(c)?X+ee:(this.xIncrement=X+ee,X)}setDataSortingOptions(){let c=this.options;o(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),F(c.pointRange)||(c.pointRange=1)}setOptions(c){let S,C=this.chart,R=C.options.plotOptions,I=C.userOptions||{},X=$(c),ie=C.styledMode,ee={plotOptions:R,userOptions:X};l(this,"setOptions",ee);let oe=ee.plotOptions[this.type],ce=I.plotOptions||{},de=ce.series||{},V=z.plotOptions[this.type]||{},G=ce[this.type]||{};this.userOptions=ee.userOptions;let J=$(oe,R.series,G,X);this.tooltipOptions=$(z.tooltip,z.plotOptions.series?.tooltip,V?.tooltip,C.userOptions.tooltip,ce.series?.tooltip,G.tooltip,X.tooltip),this.stickyTracking=Z(X.stickyTracking,G.stickyTracking,de.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||J.stickyTracking),oe.marker===null&&delete J.marker,this.zoneAxis=J.zoneAxis||"y";let te=this.zones=(J.zones||[]).map(ae=>we({},ae));return(J.negativeColor||J.negativeFillColor)&&!J.zones&&(S={value:J[this.zoneAxis+"Threshold"]||J.threshold||0,className:"highcharts-negative"},ie||(S.color=J.negativeColor,S.fillColor=J.negativeFillColor),te.push(S)),te.length&&F(te[te.length-1].value)&&te.push(ie?{}:{color:this.color,fillColor:this.fillColor}),l(this,"afterSetOptions",{options:J}),J}getName(){return Z(this.options.name,"Series "+(this.index+1))}getCyclic(c,S,C){let R,I,X=this.chart,ie=`${c}Index`,ee=`${c}Counter`,oe=C?.length||X.options.chart.colorCount;!S&&(F(I=Z(c==="color"?this.options.colorIndex:void 0,this[ie]))?R=I:(X.series.length||(X[ee]=0),R=X[ee]%oe,X[ee]+=1),C&&(S=C[R])),R!==void 0&&(this[ie]=R),this[c]=S}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||z.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let c=this.options.marker;this.getCyclic("symbol",c.symbol,this.chart.options.symbols)}findPointIndex(c,S){let C,R,I,X=c.id,ie=c.x,ee=this.points,oe=this.options.dataSorting;if(X){let ce=this.chart.get(X);ce instanceof q&&(C=ce)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ce=de=>!de.touched&&de.index===c.index;if(oe&&oe.matchByName?ce=de=>!de.touched&&de.name===c.name:this.options.relativeXValue&&(ce=de=>!de.touched&&de.options.x===c.x),!(C=d(ee,ce)))return}return C&&(I=C&&C.index)!==void 0&&(R=!0),I===void 0&&se(ie)&&(I=this.xData.indexOf(ie,S)),I!==-1&&I!==void 0&&this.cropped&&(I=I>=this.cropStart?I-this.cropStart:I),!R&&se(I)&&ee[I]&&ee[I].touched&&(I=void 0),I}updateData(c,S){let C=this.options,R=C.dataSorting,I=this.points,X=[],ie=this.requireSorting,ee=c.length===I.length,oe,ce,de,V,G=!0;if(this.xIncrement=null,c.forEach(function(J,te){let ae,ne=F(J)&&this.pointClass.prototype.optionsToObject.call({series:this},J)||{},he=ne.x;ne.id||se(he)?((ae=this.findPointIndex(ne,V))===-1||ae===void 0?X.push(J):I[ae]&&J!==C.data[ae]?(I[ae].update(J,!1,null,!1),I[ae].touched=!0,ie&&(V=ae+1)):I[ae]&&(I[ae].touched=!0),(!ee||te!==ae||R&&R.enabled||this.hasDerivedData)&&(oe=!0)):X.push(J)},this),oe)for(ce=I.length;ce--;)(de=I[ce])&&!de.touched&&de.remove&&de.remove(!1,S);else!ee||R&&R.enabled?G=!1:(c.forEach(function(J,te){J===I[te].y||I[te].destroyed||I[te].update(J,!1,null,!1)}),X.length=0);return I.forEach(function(J){J&&(J.touched=!1)}),!!G&&(X.forEach(function(J){this.addPoint(J,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=T(this.xData),this.autoIncrement()),!0)}setData(c,S=!0,C,R){let I=this,X=I.points,ie=X&&X.length||0,ee=I.options,oe=I.chart,ce=ee.dataSorting,de=I.xAxis,V=ee.turboThreshold,G=this.xData,J=this.yData,te=I.pointArrayMap,ae=te&&te.length,ne=ee.keys,he,le,ue,fe=0,ge=1,pe=null,ye;oe.options.chart.allowMutatingData||(ee.data&&delete I.options.data,I.userOptions.data&&delete I.userOptions.data,ye=$(!0,c));let be=(c=ye||c||[]).length;if(ce&&ce.enabled&&(c=this.sortData(c)),oe.options.chart.allowMutatingData&&R!==!1&&be&&ie&&!I.cropped&&!I.hasGroupedData&&I.visible&&!I.boosted&&(ue=this.updateData(c,C)),!ue){if(I.xIncrement=null,I.colorCounter=0,this.parallelArrays.forEach(function(ve){I[ve+"Data"].length=0}),V&&be>V)if(se(pe=I.getFirstValidPoint(c)))for(he=0;he=0?fe:0,ge=ge>=0?ge:1),pe.length===1&&(ge=0),fe===ge)for(he=0;he{let ie=m(C,I),ee=m(C,X);return eeie?1:0}).forEach(function(I,X){I.x=X},this),S.linkedSeries&&S.linkedSeries.forEach(function(I){let X=I.options,ie=X.data;X.dataSorting&&X.dataSorting.enabled||!ie||(ie.forEach(function(ee,oe){ie[oe]=R(I,ee),c[oe]&&(ie[oe].x=c[oe].x,ie[oe].index=oe)}),I.setData(ie,!1))}),c}getProcessedData(c){let S=this,C=S.xAxis,R=S.options.cropThreshold,I=C?.logarithmic,X=S.isCartesian,ie,ee,oe=0,ce,de,V,G=S.xData,J=S.yData,te=!1,ae=G.length;C&&(de=(ce=C.getExtremes()).min,V=ce.max,te=!!(C.categories&&!C.names.length)),X&&S.sorted&&!c&&(!R||ae>R||S.forceCrop)&&(G[ae-1]V?(G=[],J=[]):S.yData&&(G[0]V)&&(G=(ie=this.cropData(S.xData,S.yData,de,V)).xData,J=ie.yData,oe=ie.start,ee=!0));let ne=p([I?G.map(I.log2lin):G],()=>S.requireSorting&&!te&&a(15,!1,S.chart));return{xData:G,yData:J,cropped:ee,cropStart:oe,closestPointRange:ne}}processData(c){let S=this.xAxis;if(this.isCartesian&&!this.isDirty&&!S.isDirty&&!this.yAxis.isDirty&&!c)return!1;let C=this.getProcessedData();this.cropped=C.cropped,this.cropStart=C.cropStart,this.processedXData=C.xData,this.processedYData=C.yData,this.closestPointRange=this.basePointRange=C.closestPointRange,l(this,"afterProcessData")}cropData(c,S,C,R){let I=c.length,X,ie,ee=0,oe=I;for(X=0;X=C){ee=Math.max(0,X-1);break}for(ie=X;ieR){oe=ie+1;break}return{xData:c.slice(ee,oe),yData:S.slice(ee,oe),start:ee,end:oe}}generatePoints(){let c=this.options,S=this.processedData||c.data,C=this.processedXData,R=this.processedYData,I=this.pointClass,X=C.length,ie=this.cropStart||0,ee=this.hasGroupedData,oe=c.keys,ce=[],de=c.dataGrouping&&c.dataGrouping.groupAll?ie:0,V,G,J,te,ae=this.data;if(!ae&&!ee){let ne=[];ne.length=S.length,ae=this.data=ne}for(oe&&ee&&(this.options.keys=!1),te=0;te0:te.length)||!ie),G=S||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!C||(ge[ae+X]||J)>=he&&(ge[ae-X]||J)<=le,V&&G)if(ne=te.length)for(;ne--;)se(te[ne])&&(I[ue++]=te[ne]);else I[ue++]=te;let pe={activeYData:I,dataMin:g(I),dataMax:T(I)};return l(this,"afterGetExtremes",{dataExtremes:pe}),pe}applyExtremes(){let c=this.getExtremes();return this.dataMin=c.dataMin,this.dataMax=c.dataMax,c}getFirstValidPoint(c){let S=c.length,C=0,R=null;for(;R===null&&C1)&&(X.step=function(V,G){de&&de.apply(G,arguments),G.prop==="width"&&oe?.element&&oe.attr(I?"height":"width",V+99)}),ee.addClass("highcharts-animating").animate(ce,X)}}afterAnimate(){this.setClip(),K(this.chart.sharedClips,(c,S,C)=>{c&&!this.chart.container.querySelector(`[clip-path="url(#${c.id})"]`)&&(c.destroy(),delete C[S])}),this.finishedAnimating=!0,l(this,"afterAnimate")}drawPoints(c=this.points){let S,C,R,I,X,ie,ee,oe=this.chart,ce=oe.styledMode,{colorAxis:de,options:V}=this,G=V.marker,J=this[this.specialGroup||"markerGroup"],te=this.xAxis,ae=Z(G.enabled,!te||!!te.isRadial||null,this.closestPointRangePx>=G.enabledThreshold*G.radius);if(G.enabled!==!1||this._hasPointMarkers)for(S=0;S0||C.hasImage)&&(C.graphic=R=oe.renderer.symbol(ne,ee.x,ee.y,ee.width,ee.height,ie?X:G).add(J),this.enabledDataSorting&&oe.hasRendered&&(R.attr({x:C.startXPos}),I="animate")),R&&I==="animate"&&R[he?"show":"hide"](he).animate(ee),R){let le=this.pointAttribs(C,ce||!C.selected?void 0:"select");ce?de&&R.css({fill:le.fill}):R[I](le)}R&&R.addClass(C.getClassName(),!0)}else R&&(C.graphic=R.destroy())}markerAttribs(c,S){let C=this.options,R=C.marker,I=c.marker||{},X=I.symbol||R.symbol,ie={},ee,oe,ce=Z(I.radius,R&&R.radius);S&&(ee=R.states[S],ce=Z((oe=I.states&&I.states[S])&&oe.radius,ee&&ee.radius,ce&&ce+(ee&&ee.radiusPlus||0))),c.hasImage=X&&X.indexOf("url")===0,c.hasImage&&(ce=0);let de=c.pos();return se(ce)&&de&&(C.crisp&&(de[0]=W(de[0],c.hasImage?0:X==="rect"?R?.lineWidth||0:1)),ie.x=de[0]-ce,ie.y=de[1]-ce),ce&&(ie.width=ie.height=2*ce),ie}pointAttribs(c,S){let C=this.options.marker,R=c&&c.options,I=R&&R.marker||{},X=R&&R.color,ie=c&&c.color,ee=c&&c.zone&&c.zone.color,oe,ce,de=this.color,V,G,J=Z(I.lineWidth,C.lineWidth),te=1;return de=X||ee||ie||de,V=I.fillColor||C.fillColor||de,G=I.lineColor||C.lineColor||de,S=S||"normal",oe=C.states[S]||{},J=Z((ce=I.states&&I.states[S]||{}).lineWidth,oe.lineWidth,J+Z(ce.lineWidthPlus,oe.lineWidthPlus,0)),V=ce.fillColor||oe.fillColor||V,{stroke:G=ce.lineColor||oe.lineColor||G,"stroke-width":J,fill:V,opacity:te=Z(ce.opacity,oe.opacity,te)}}destroy(c){let S,C,R,I=this,X=I.chart,ie=/AppleWebKit\/533/.test(P.navigator.userAgent),ee=I.data||[];for(l(I,"destroy",{keepEventsForUpdate:c}),this.removeEvents(c),(I.axisTypes||[]).forEach(function(oe){(R=I[oe])&&R.series&&(u(R.series,I),R.isDirty=R.forceRedraw=!0)}),I.legendItem&&I.chart.legend.destroyItem(I),S=ee.length;S--;)(C=ee[S])&&C.destroy&&C.destroy();for(let oe of I.zones)f(oe,void 0,!0);H.clearTimeout(I.animationTimeout),K(I,function(oe,ce){oe instanceof _&&!oe.survive&&oe[ie&&ce==="group"?"hide":"destroy"]()}),X.hoverSeries===I&&(X.hoverSeries=void 0),u(X.series,I),X.orderItems("series"),K(I,function(oe,ce){c&&ce==="hcEvents"||delete I[ce]})}applyZones(){let{area:c,chart:S,graph:C,zones:R,points:I,xAxis:X,yAxis:ie,zoneAxis:ee}=this,{inverted:oe,renderer:ce}=S,de=this[`${ee}Axis`],{isXAxis:V,len:G=0}=de||{},J=(C?.strokeWidth()||0)/2+1,te=(ae,ne=0,he=0)=>{oe&&(he=G-he);let{translated:le=0,lineClip:ue}=ae,fe=he-le;ue?.push(["L",ne,Math.abs(fe){ue.forEach((fe,ge)=>{(fe[0]==="M"||fe[0]==="L")&&(ue[ge]=[fe[0],V?G-fe[1]:fe[1],V?fe[2]:G-fe[2]])})};if(R.forEach(ue=>{ue.lineClip=[],ue.translated=M(de.toPixels(Z(ue.value,ae),!0)||0,0,G)}),C&&!this.showLine&&C.hide(),c&&c.hide(),ee==="y"&&I.length{let fe=ue.lineClip||[],ge=Math.round(ue.translated||0);X.reversed&&fe.reverse();let{clip:pe,simpleClip:ye}=ue,be=0,ve=0,me=X.len,Ee=ie.len;V?(be=ge,me=le):(ve=ge,Ee=le);let Me=[["M",be,ve],["L",me,ve],["L",me,Ee],["L",be,Ee],["Z"]],Le=[Me[0],...fe,Me[1],Me[2],...he,Me[3],Me[4]];he=fe.reverse(),le=ge,oe&&(ne(Le),c&&ne(Me)),pe?(pe.animate({d:Le}),ye?.animate({d:Me})):(pe=ue.clip=ce.path(Le),c&&(ye=ue.simpleClip=ce.path(Me))),C&&ue.graph?.clip(pe),c&&ue.area?.clip(ye)})}else this.visible&&(C&&C.show(),c&&c.show())}plotGroup(c,S,C,R,I){let X=this[c],ie=!X,ee={visibility:C,zIndex:R||.1};return F(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(ee.opacity=this.opacity),X||(this[c]=X=this.chart.renderer.g().add(I)),X.addClass("highcharts-"+S+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(F(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(X.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),X.attr(ee)[ie?"attr":"animate"](this.getPlotBox(S)),X}getPlotBox(c){let S=this.xAxis,C=this.yAxis,R=this.chart,I=R.inverted&&!R.polar&&S&&this.invertible&&c==="series";return R.inverted&&(S=C,C=this.xAxis),{translateX:S?S.left:R.plotLeft,translateY:C?C.top:R.plotTop,rotation:I?90:0,rotationOriginX:I?(S.len-C.len)/2:0,rotationOriginY:I?(S.len+C.len)/2:0,scaleX:I?-1:1,scaleY:1}}removeEvents(c){let{eventsToUnbind:S}=this;c||re(this),S.length&&(S.forEach(C=>{C()}),S.length=0)}render(){let c=this,{chart:S,options:C,hasRendered:R}=c,I=E(C.animation),X=c.visible?"inherit":"hidden",ie=C.zIndex,ee=S.seriesGroup,oe=c.finishedAnimating?0:I.duration;l(this,"render"),c.plotGroup("group","series",X,ie,ee),c.markerGroup=c.plotGroup("markerGroup","markers",X,ie,ee),C.clip!==!1&&c.setClip(),oe&&c.animate?.(!0),c.drawGraph&&(c.drawGraph(),c.applyZones()),c.visible&&c.drawPoints(),c.drawDataLabels?.(),c.redrawPoints?.(),C.enableMouseTracking&&c.drawTracker?.(),oe&&c.animate?.(),R||(oe&&I.defer&&(oe+=I.defer),c.animationTimeout=b(()=>{c.afterAnimate()},oe||0)),c.isDirty=!1,c.hasRendered=!0,l(c,"afterRender")}redraw(){let c=this.isDirty||this.isDirtyData;this.translate(),this.render(),c&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(c,S){let{xAxis:C,yAxis:R}=this,I=this.chart.inverted;return this.searchKDTree({clientX:I?C.len-c.chartY+C.pos:c.chartX-C.pos,plotY:I?R.len-c.chartX+R.pos:c.chartY-R.pos},S,c)}buildKDTree(c){this.buildingKdTree=!0;let S=this,C=S.options.findNearestPointBy.indexOf("y")>-1?2:1;delete S.kdTree,b(function(){S.kdTree=function R(I,X,ie){let ee,oe,ce=I?.length;if(ce)return ee=S.kdAxisArray[X%ie],I.sort((de,V)=>(de[ee]||0)-(V[ee]||0)),{point:I[oe=Math.floor(ce/2)],left:R(I.slice(0,oe),X+1,ie),right:R(I.slice(oe+1),X+1,ie)}}(S.getValidPoints(void 0,!S.directTouch),C,C),S.buildingKdTree=!1},S.options.kdNow||c?.type==="touchstart"?0:1)}searchKDTree(c,S,C){let R=this,[I,X]=this.kdAxisArray,ie=S?"distX":"dist",ee=(R.options.findNearestPointBy||"").indexOf("y")>-1?2:1,oe=!!R.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(C),this.kdTree)return function ce(de,V,G,J){let te=V.point,ae=R.kdAxisArray[G%J],ne,he,le=te;(function(pe,ye){let be=pe[I],ve=ye[I],me=F(be)&&F(ve)?be-ve:null,Ee=pe[X],Me=ye[X],Le=F(Ee)&&F(Me)?Ee-Me:0,Fe=oe&&ye.marker?.radius||0;ye.dist=Math.sqrt((me&&me*me||0)+Le*Le)-Fe,ye.distX=F(me)?Math.abs(me)-Fe:Number.MAX_VALUE})(de,te);let ue=(de[ae]||0)-(te[ae]||0)+(oe&&te.marker?.radius||0),fe=ue<0?"left":"right",ge=ue<0?"right":"left";return V[fe]&&(le=(ne=ce(de,V[fe],G+1,J))[ie]=0&&X<=(R?R.len:S.plotHeight)&&I>=0&&I<=(C?C.len:S.plotWidth)}drawTracker(){let c=this,S=c.options,C=S.trackByArea,R=[].concat((C?c.areaPath:c.graphPath)||[]),I=c.chart,X=I.pointer,ie=I.renderer,ee=I.options.tooltip?.snap||0,oe=()=>{S.enableMouseTracking&&I.hoverSeries!==c&&c.onMouseOver()},ce="rgba(192,192,192,"+(x?1e-4:.002)+")",de=c.tracker;de?de.attr({d:R}):c.graph&&(c.tracker=de=ie.path(R).attr({visibility:c.visible?"inherit":"hidden",zIndex:2}).addClass(C?"highcharts-tracker-area":"highcharts-tracker-line").add(c.group),I.styledMode||de.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ce,fill:C?ce:"none","stroke-width":c.graph.strokeWidth()+(C?0:2*ee)}),[c.tracker,c.markerGroup,c.dataLabelsGroup].forEach(V=>{V&&(V.addClass("highcharts-tracker").on("mouseover",oe).on("mouseout",G=>{X?.onTrackerMouseOut(G)}),S.cursor&&!I.styledMode&&V.css({cursor:S.cursor}),V.on("touchstart",oe))})),l(this,"afterDrawTracker")}addPoint(c,S,C,R,I){let X,ie,ee=this.options,oe=this.data,ce=this.chart,de=this.xAxis,V=de&&de.hasNames&&de.names,G=ee.data,J=this.xData;S=Z(S,!0);let te={series:this};this.pointClass.prototype.applyOptions.apply(te,[c]);let ae=te.x;if(ie=J.length,this.requireSorting&&aeae;)ie--;this.updateParallelArrays(te,"splice",[ie,0,0]),this.updateParallelArrays(te,ie),V&&te.name&&(V[ae]=te.name),G.splice(ie,0,c),(X||this.processedData)&&(this.data.splice(ie,0,null),this.processData()),ee.legendType==="point"&&this.generatePoints(),C&&(oe[0]&&oe[0].remove?oe[0].remove(!1):(oe.shift(),this.updateParallelArrays(te,"shift"),G.shift())),I!==!1&&l(this,"addPoint",{point:te}),this.isDirty=!0,this.isDirtyData=!0,S&&ce.redraw(R)}removePoint(c,S,C){let R=this,I=R.data,X=I[c],ie=R.points,ee=R.chart,oe=function(){ie&&ie.length===I.length&&ie.splice(c,1),I.splice(c,1),R.options.data.splice(c,1),R.updateParallelArrays(X||{series:R},"splice",[c,1]),X&&X.destroy(),R.isDirty=!0,R.isDirtyData=!0,S&&ee.redraw()};N(C,ee),S=Z(S,!0),X?X.firePointEvent("remove",null,oe):oe()}remove(c,S,C,R){let I=this,X=I.chart;function ie(){I.destroy(R),X.isDirtyLegend=X.isDirtyBox=!0,X.linkSeries(R),Z(c,!0)&&X.redraw(S)}C!==!1?l(I,"remove",null,ie):ie()}update(c,S){l(this,"update",{options:c=w(c,this.userOptions)});let C=this,R=C.chart,I=C.userOptions,X=C.initialType||C.type,ie=R.options.plotOptions,ee=L[X].prototype,oe=C.finishedAnimating&&{animation:!1},ce={},de,V,G=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],J=c.type||I.type||R.options.chart.type,te=!(this.hasDerivedData||J&&J!==this.type||c.pointStart!==void 0||c.pointInterval!==void 0||c.relativeXValue!==void 0||c.joinBy||c.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(ne=>C.hasOptionChanged(ne)));J=J||X,te&&(G.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),c.visible!==!1&&G.push("area","graph"),C.parallelArrays.forEach(function(ne){G.push(ne+"Data")}),c.data&&(c.dataSorting&&o(C.options.dataSorting,c.dataSorting),this.setData(c.data,!1))),c=$(I,{index:I.index===void 0?C.index:I.index,pointStart:ie?.series?.pointStart??I.pointStart??C.xData?.[0]},!te&&{data:C.options.data},c,oe),te&&c.data&&(c.data=C.options.data),(G=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(G)).forEach(function(ne){G[ne]=C[ne],delete C[ne]});let ae=!1;if(L[J]){if(ae=J!==C.type,C.remove(!1,!1,!1,!0),ae)if(R.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(C,L[J].prototype);else{let ne=Object.hasOwnProperty.call(C,"hcEvents")&&C.hcEvents;for(V in ee)C[V]=void 0;o(C,L[J].prototype),ne?C.hcEvents=ne:delete C.hcEvents}}else a(17,!0,R,{missingModuleFor:J});if(G.forEach(function(ne){C[ne]=G[ne]}),C.init(R,c),te&&this.points)for(let ne of((de=C.options).visible===!1?(ce.graphic=1,ce.dataLabel=1):(this.hasMarkerChanged(de,I)&&(ce.graphic=1),C.hasDataLabels?.()||(ce.dataLabel=1)),this.points))ne&&ne.series&&(ne.resolveColor(),Object.keys(ce).length&&ne.destroyElements(ce),de.showInLegend===!1&&ne.legendItem&&R.legend.destroyItem(ne));C.initialType=X,R.linkSeries(),R.setSortedData(),ae&&C.linkedSeries.length&&(C.isDirtyData=!0),l(this,"afterUpdate"),Z(S,!0)&&R.redraw(!!te&&void 0)}setName(c){this.name=this.options.name=this.userOptions.name=c,this.chart.isDirtyLegend=!0}hasOptionChanged(c){let S=this.chart,C=this.options[c],R=S.options.plotOptions,I=this.userOptions[c],X=Z(R?.[this.type]?.[c],R?.series?.[c]);return I&&!F(X)?C!==I:C!==Z(X,C)}onMouseOver(){let c=this.chart,S=c.hoverSeries;c.pointer?.setHoverChartIndex(),S&&S!==this&&S.onMouseOut(),this.options.events.mouseOver&&l(this,"mouseOver"),this.setState("hover"),c.hoverSeries=this}onMouseOut(){let c=this.options,S=this.chart,C=S.tooltip,R=S.hoverPoint;S.hoverSeries=null,R&&R.onMouseOut(),this&&c.events.mouseOut&&l(this,"mouseOut"),C&&!this.stickyTracking&&(!C.shared||this.noSharedTooltip)&&C.hide(),S.series.forEach(function(I){I.setState("",!0)})}setState(c,S){let C=this,R=C.options,I=C.graph,X=R.inactiveOtherPoints,ie=R.states,ee=Z(ie[c||"normal"]&&ie[c||"normal"].animation,C.chart.options.chart.animation),oe=R.lineWidth,ce=R.opacity;if(c=c||"",C.state!==c&&([C.group,C.markerGroup,C.dataLabelsGroup].forEach(function(de){de&&(C.state&&de.removeClass("highcharts-series-"+C.state),c&&de.addClass("highcharts-series-"+c))}),C.state=c,!C.chart.styledMode)){if(ie[c]&&ie[c].enabled===!1)return;if(c&&(oe=ie[c].lineWidth||oe+(ie[c].lineWidthPlus||0),ce=Z(ie[c].opacity,ce)),I&&!I.dashstyle&&se(oe))for(let de of[I,...this.zones.map(V=>V.graph)])de?.animate({"stroke-width":oe},ee);X||[C.group,C.markerGroup,C.dataLabelsGroup,C.labelBySeries].forEach(function(de){de&&de.animate({opacity:ce},ee)})}S&&X&&C.points&&C.setAllPointsToState(c||void 0)}setAllPointsToState(c){this.points.forEach(function(S){S.setState&&S.setState(c)})}setVisible(c,S){let C=this,R=C.chart,I=R.options.chart.ignoreHiddenSeries,X=C.visible;C.visible=c=C.options.visible=C.userOptions.visible=c===void 0?!X:c;let ie=c?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(ee=>{C[ee]?.[ie]()}),(R.hoverSeries===C||R.hoverPoint?.series===C)&&C.onMouseOut(),C.legendItem&&R.legend.colorizeItem(C,c),C.isDirty=!0,C.options.stacking&&R.series.forEach(ee=>{ee.options.stacking&&ee.visible&&(ee.isDirty=!0)}),C.linkedSeries.forEach(ee=>{ee.setVisible(c,!1)}),I&&(R.isDirtyBox=!0),l(C,ie),S!==!1&&R.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(c){this.selected=c=this.options.selected=c===void 0?!this.selected:c,this.checkbox&&(this.checkbox.checked=c),l(this,c?"select":"unselect")}shouldShowTooltip(c,S,C={}){return C.series=this,C.visiblePlotOnly=!0,this.chart.isInsidePlot(c,S,C)}drawLegendSymbol(c,S){v[this.options.legendSymbol||"rectangle"]?.call(this,c,S)}}return D.defaultOptions=B,D.types=Y.seriesTypes,D.registerType=Y.registerSeriesType,o(D.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:q,requireSorting:!0,sorted:!0}),Y.series=D,D}),r(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Axis/Tick.js"]],function(t,i,n,h,v,q,B,Y,_,H,E,N,z,k){let{animate:x,animObject:P,setAnimation:L}=t,{defaultOptions:T,defaultTime:g}=n,{numberFormat:M}=h,{registerEventOptions:Q}=v,{charts:W,doc:F,marginNames:f,svg:w,win:u}=q,{seriesTypes:a}=_,{addEvent:o,attr:d,createElement:l,css:p,defined:m,diffObjects:O,discardElement:j,erase:se,error:A,extend:$,find:K,fireEvent:Z,getStyle:re,isArray:y,isNumber:b,isObject:D,isString:U,merge:c,objectEach:S,pick:C,pInt:R,relativeLength:I,removeEvent:X,splat:ie,syncTimeout:ee,uniqueKey:oe}=N;class ce{static chart(V,G,J){return new ce(V,G,J)}constructor(V,G,J){this.sharedClips={};let te=[...arguments];(U(V)||V.nodeName)&&(this.renderTo=te.shift()),this.init(te[0],te[1])}setZoomOptions(){let V=this.options.chart,G=V.zooming;this.zooming=Ue(we({},G),{type:C(V.zoomType,G.type),key:C(V.zoomKey,G.key),pinchType:C(V.pinchType,G.pinchType),singleTouch:C(V.zoomBySingleTouch,G.singleTouch,!1),resetButton:c(G.resetButton,V.resetZoomButton)})}init(V,G){Z(this,"init",{args:arguments},function(){let J=c(T,V),te=J.chart;this.userOptions=$({},V),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=G,this.isResizing=0,this.options=J,this.axes=[],this.series=[],this.time=V.time&&Object.keys(V.time).length?new E(V.time):q.time,this.numberFormatter=te.numberFormatter||M,this.styledMode=te.styledMode,this.hasCartesianSeries=te.showAxes,this.index=W.length,W.push(this),q.chartCount++,Q(this,te),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Z(this,"afterInit"),this.firstRender()})}initSeries(V){let G=this.options.chart,J=V.type||G.type,te=a[J];te||A(17,!0,this,{missingModuleFor:J});let ae=new te;return typeof ae.init=="function"&&ae.init(this,V),ae}setSortedData(){this.getSeriesOrderByLinks().forEach(function(V){V.points||V.data||!V.enabledDataSorting||V.setData(V.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(V,G){return V.linkedSeries.length||G.linkedSeries.length?G.linkedSeries.length-V.linkedSeries.length:0})}orderItems(V,G=0){let J=this[V],te=this.options[V]=ie(this.options[V]).slice(),ae=this.userOptions[V]=this.userOptions[V]?ie(this.userOptions[V]).slice():[];if(this.hasRendered&&(te.splice(G),ae.splice(G)),J)for(let ne=G,he=J.length;ne=Math.max(ue+ne,me.pos)&&Ee<=Math.min(ue+ne+pe.width,me.pos+me.len)||(ve.isInsidePlot=!1)}if(!J.ignoreY&&ve.isInsidePlot){let me=!te&&J.axis&&!J.axis.isXAxis&&J.axis||ge&&(te?ge.xAxis:ge.yAxis)||{pos:he,len:1/0},Ee=J.paneCoordinates?me.pos+be:he+be;Ee>=Math.max(fe+he,me.pos)&&Ee<=Math.min(fe+he+pe.height,me.pos+me.len)||(ve.isInsidePlot=!1)}return Z(this,"afterIsInsidePlot",ve),ve.isInsidePlot}redraw(V){Z(this,"beforeRedraw");let G=this.hasCartesianSeries?this.axes:this.colorAxis||[],J=this.series,te=this.pointer,ae=this.legend,ne=this.userOptions.legend,he=this.renderer,le=he.isHidden(),ue=[],fe,ge,pe,ye=this.isDirtyBox,be=this.isDirtyLegend,ve;for(he.rootFontSize=he.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),L(!!this.hasRendered&&V,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),pe=J.length;pe--;)if(((ve=J[pe]).options.stacking||ve.options.centerInCategory)&&(ge=!0,ve.isDirty)){fe=!0;break}if(fe)for(pe=J.length;pe--;)(ve=J[pe]).options.stacking&&(ve.isDirty=!0);J.forEach(function(me){me.isDirty&&(me.options.legendType==="point"?(typeof me.updateTotals=="function"&&me.updateTotals(),be=!0):ne&&(ne.labelFormatter||ne.labelFormat)&&(be=!0)),me.isDirtyData&&Z(me,"updatedData")}),be&&ae&&ae.options.enabled&&(ae.render(),this.isDirtyLegend=!1),ge&&this.getStacks(),G.forEach(function(me){me.updateNames(),me.setScale()}),this.getMargins(),G.forEach(function(me){me.isDirty&&(ye=!0)}),G.forEach(function(me){let Ee=me.min+","+me.max;me.extKey!==Ee&&(me.extKey=Ee,ue.push(function(){Z(me,"afterSetExtremes",$(me.eventArgs,me.getExtremes())),delete me.eventArgs})),(ye||ge)&&me.redraw()}),ye&&this.drawChartBox(),Z(this,"predraw"),J.forEach(function(me){(ye||me.isDirty)&&me.visible&&me.redraw(),me.isDirtyData=!1}),te&&te.reset(!0),he.draw(),Z(this,"redraw"),Z(this,"render"),le&&this.temporaryDisplay(!0),ue.forEach(function(me){me.call()})}get(V){let G=this.series;function J(ae){return ae.id===V||ae.options&&ae.options.id===V}let te=K(this.axes,J)||K(this.series,J);for(let ae=0;!te&&ae(G.getPointsCollection().forEach(J=>{C(J.selectedStaging,J.selected)&&V.push(J)}),V),[])}getSelectedSeries(){return this.series.filter(function(V){return V.selected})}setTitle(V,G,J){this.applyDescription("title",V),this.applyDescription("subtitle",G),this.applyDescription("caption",void 0),this.layOutTitles(J)}applyDescription(V,G){let J=this,te=this.options[V]=c(this.options[V],G),ae=this[V];ae&&G&&(this[V]=ae=ae.destroy()),te&&!ae&&((ae=this.renderer.text(te.text,0,0,te.useHTML).attr({align:te.align,class:"highcharts-"+V,zIndex:te.zIndex||4}).add()).update=function(ne,he){J.applyDescription(V,ne),J.layOutTitles(he)},this.styledMode||ae.css($(V==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},te.style)),this[V]=ae)}layOutTitles(V=!0){let G=[0,0,0],J=this.renderer,te=this.spacingBox;["title","subtitle","caption"].forEach(function(ne){let he=this[ne],le=this.options[ne],ue=le.verticalAlign||"top",fe=ne==="title"?ue==="top"?-3:0:ue==="top"?G[0]+2:0;if(he){he.css({width:(le.width||te.width+(le.widthAdjust||0))+"px"});let ge=J.fontMetrics(he).b,pe=Math.round(he.getBBox(le.useHTML).height);he.align($({y:ue==="bottom"?ge:fe+ge,height:pe},le),!1,"spacingBox"),le.floating||(ue==="top"?G[0]=Math.ceil(G[0]+pe):ue==="bottom"&&(G[2]=Math.ceil(G[2]+pe)))}},this),G[0]&&(this.options.title.verticalAlign||"top")==="top"&&(G[0]+=this.options.title.margin),G[2]&&this.options.caption.verticalAlign==="bottom"&&(G[2]+=this.options.caption.margin);let ae=!this.titleOffset||this.titleOffset.join(",")!==G.join(",");this.titleOffset=G,Z(this,"afterLayOutTitles"),!this.isDirtyBox&&ae&&(this.isDirtyBox=this.isDirtyLegend=ae,this.hasRendered&&V&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:re(this.renderTo,"width",!0)||0,height:re(this.renderTo,"height",!0)||0}}getChartSize(){let V=this.options.chart,G=V.width,J=V.height,te=this.getContainerBox();this.chartWidth=Math.max(0,G||te.width||600),this.chartHeight=Math.max(0,I(J,this.chartWidth)||(te.height>1?te.height:400)),this.containerBox=te}temporaryDisplay(V){let G=this.renderTo,J;if(V)for(;G&&G.style;)G.hcOrigStyle&&(p(G,G.hcOrigStyle),delete G.hcOrigStyle),G.hcOrigDetached&&(F.body.removeChild(G),G.hcOrigDetached=!1),G=G.parentNode;else for(;G&&G.style&&(F.body.contains(G)||G.parentNode||(G.hcOrigDetached=!0,F.body.appendChild(G)),(re(G,"display",!1)==="none"||G.hcOricDetached)&&(G.hcOrigStyle={display:G.style.display,height:G.style.height,overflow:G.style.overflow},J={display:"block",overflow:"hidden"},G!==this.renderTo&&(J.height=0),p(G,J),G.offsetWidth||G.style.setProperty("display","block","important")),(G=G.parentNode)!==F.body););}setClassName(V){this.container.className="highcharts-container "+(V||"")}getContainer(){let V=this.options,G=V.chart,J="data-highcharts-chart",te=oe(),ae,ne=this.renderTo;ne||(this.renderTo=ne=G.renderTo),U(ne)&&(this.renderTo=ne=F.getElementById(ne)),ne||A(13,!0,this);let he=R(d(ne,J));b(he)&&W[he]&&W[he].hasRendered&&W[he].destroy(),d(ne,J,this.index),ne.innerHTML=z.emptyHTML,G.skipClone||ne.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,ue=this.chartWidth;p(ne,{overflow:"hidden"}),this.styledMode||(ae=$({position:"relative",overflow:"hidden",width:ue+"px",height:le+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},G.style||{}));let fe=l("div",{id:te},ae,ne);this.container=fe,this.getChartSize(),ue===this.chartWidth||(ue=this.chartWidth,this.styledMode||p(fe,{width:C(G.style?.width,ue+"px")})),this.containerBox=this.getContainerBox(),this._cursor=fe.style.cursor;let ge=G.renderer||!w?B.getRendererType(G.renderer):H;if(this.renderer=new ge(fe,ue,le,void 0,G.forExport,V.exporting&&V.exporting.allowHTML,this.styledMode),L(void 0,this),this.setClassName(G.className),this.styledMode)for(let pe in V.defs)this.renderer.definition(V.defs[pe]);else this.renderer.setStyle(G.style);this.renderer.chartIndex=this.index,Z(this,"afterGetContainer")}getMargins(V){let{spacing:G,margin:J,titleOffset:te}=this;this.resetMargins(),te[0]&&!m(J[0])&&(this.plotTop=Math.max(this.plotTop,te[0]+G[0])),te[2]&&!m(J[2])&&(this.marginBottom=Math.max(this.marginBottom,te[2]+G[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(J,G),Z(this,"getMargins"),V||this.getAxisMargins()}getAxisMargins(){let V=this,G=V.axisOffset=[0,0,0,0],J=V.colorAxis,te=V.margin,ae=function(ne){ne.forEach(function(he){he.visible&&he.getOffset()})};V.hasCartesianSeries?ae(V.axes):J&&J.length&&ae(J),f.forEach(function(ne,he){m(te[he])||(V[ne]+=G[he])}),V.setChartSize()}getOptions(){return O(this.userOptions,T)}reflow(V){let G=this,J=G.containerBox,te=G.getContainerBox();delete G.pointer?.chartPosition,!G.isPrinting&&!G.isResizing&&J&&te.width&&((te.width!==J.width||te.height!==J.height)&&(N.clearTimeout(G.reflowTimeout),G.reflowTimeout=ee(function(){G.container&&G.setSize(void 0,void 0,!1)},V?100:0)),G.containerBox=te)}setReflow(){let V=this,G=J=>{V.options?.chart.reflow&&V.hasLoaded&&V.reflow(J)};if(typeof ResizeObserver=="function")new ResizeObserver(G).observe(V.renderTo);else{let J=o(u,"resize",G);o(this,"destroy",J)}}setSize(V,G,J){let te=this,ae=te.renderer;te.isResizing+=1,L(J,te);let ne=ae.globalAnimation;te.oldChartHeight=te.chartHeight,te.oldChartWidth=te.chartWidth,V!==void 0&&(te.options.chart.width=V),G!==void 0&&(te.options.chart.height=G),te.getChartSize();let{chartWidth:he,chartHeight:le,scrollablePixelsX:ue=0,scrollablePixelsY:fe=0}=te;(te.isDirtyBox||he!==te.oldChartWidth||le!==te.oldChartHeight)&&(te.styledMode||(ne?x:p)(te.container,{width:`${he+ue}px`,height:`${le+fe}px`},ne),te.setChartSize(!0),ae.setSize(he,le,ne),te.axes.forEach(function(ge){ge.isDirty=!0,ge.setScale()}),te.isDirtyLegend=!0,te.isDirtyBox=!0,te.layOutTitles(),te.getMargins(),te.redraw(ne),te.oldChartHeight=void 0,Z(te,"resize"),setTimeout(()=>{te&&Z(te,"endResize")},P(ne).duration)),te.isResizing-=1}setChartSize(V){let G,J,te,ae,{chartHeight:ne,chartWidth:he,inverted:le,spacing:ue,renderer:fe}=this,ge=this.clipOffset,pe=Math[le?"floor":"round"];this.plotLeft=G=Math.round(this.plotLeft),this.plotTop=J=Math.round(this.plotTop),this.plotWidth=te=Math.max(0,Math.round(he-G-this.marginRight)),this.plotHeight=ae=Math.max(0,Math.round(ne-J-this.marginBottom)),this.plotSizeX=le?ae:te,this.plotSizeY=le?te:ae,this.spacingBox=fe.spacingBox={x:ue[3],y:ue[0],width:he-ue[3]-ue[1],height:ne-ue[0]-ue[2]},this.plotBox=fe.plotBox={x:G,y:J,width:te,height:ae},ge&&(this.clipBox={x:pe(ge[3]),y:pe(ge[0]),width:pe(this.plotSizeX-ge[1]-ge[3]),height:pe(this.plotSizeY-ge[0]-ge[2])}),V||(this.axes.forEach(function(ye){ye.setAxisSize(),ye.setAxisTranslation()}),fe.alignElements()),Z(this,"afterSetChartSize",{skipAxes:V})}resetMargins(){Z(this,"resetMargins");let V=this,G=V.options.chart,J=G.plotBorderWidth||0,te=J/2;["margin","spacing"].forEach(function(ae){let ne=G[ae],he=D(ne)?ne:[ne,ne,ne,ne];["Top","Right","Bottom","Left"].forEach(function(le,ue){V[ae][ue]=C(G[ae+le],he[ue])})}),f.forEach(function(ae,ne){V[ae]=C(V.margin[ne],V.spacing[ne])}),V.axisOffset=[0,0,0,0],V.clipOffset=[te,te,te,te],V.plotBorderWidth=J}drawChartBox(){let V=this.options.chart,G=this.renderer,J=this.chartWidth,te=this.chartHeight,ae=this.styledMode,ne=this.plotBGImage,he=V.backgroundColor,le=V.plotBackgroundColor,ue=V.plotBackgroundImage,fe=this.plotLeft,ge=this.plotTop,pe=this.plotWidth,ye=this.plotHeight,be=this.plotBox,ve=this.clipRect,me=this.clipBox,Ee=this.chartBackground,Me=this.plotBackground,Le=this.plotBorder,Fe,Je,ze,He="animate";Ee||(this.chartBackground=Ee=G.rect().addClass("highcharts-background").add(),He="attr"),ae?Fe=Je=Ee.strokeWidth():(Je=(Fe=V.borderWidth||0)+(V.shadow?8:0),ze={fill:he||"none"},(Fe||Ee["stroke-width"])&&(ze.stroke=V.borderColor,ze["stroke-width"]=Fe),Ee.attr(ze).shadow(V.shadow)),Ee[He]({x:Je/2,y:Je/2,width:J-Je-Fe%2,height:te-Je-Fe%2,r:V.borderRadius}),He="animate",Me||(He="attr",this.plotBackground=Me=G.rect().addClass("highcharts-plot-background").add()),Me[He](be),!ae&&(Me.attr({fill:le||"none"}).shadow(V.plotShadow),ue&&(ne?(ue!==ne.attr("href")&&ne.attr("href",ue),ne.animate(be)):this.plotBGImage=G.image(ue,fe,ge,pe,ye).add())),ve?ve.animate({width:me.width,height:me.height}):this.clipRect=G.clipRect(me),He="animate",Le||(He="attr",this.plotBorder=Le=G.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),ae||Le.attr({stroke:V.plotBorderColor,"stroke-width":V.plotBorderWidth||0,fill:"none"}),Le[He](Le.crisp({x:fe,y:ge,width:pe,height:ye},-Le.strokeWidth())),this.isDirtyBox=!1,Z(this,"afterDrawChartBox")}propFromSeries(){let V,G,J,te=this,ae=te.options.chart,ne=te.options.series;["inverted","angular","polar"].forEach(function(he){for(G=a[ae.type],J=ae[he]||G&&G.prototype[he],V=ne&&ne.length;!J&&V--;)(G=a[ne[V].type])&&G.prototype[he]&&(J=!0);te[he]=J})}linkSeries(V){let G=this,J=G.series;J.forEach(function(te){te.linkedSeries.length=0}),J.forEach(function(te){let{linkedTo:ae}=te.options;if(U(ae)){let ne;(ne=ae===":previous"?G.series[te.index-1]:G.get(ae))&&ne.linkedParent!==te&&(ne.linkedSeries.push(te),te.linkedParent=ne,ne.enabledDataSorting&&te.setDataSortingOptions(),te.visible=C(te.options.visible,ne.options.visible,te.visible))}}),Z(this,"afterLinkSeries",{isUpdating:V})}renderSeries(){this.series.forEach(function(V){V.translate(),V.render()})}render(){let V=this.axes,G=this.colorAxis,J=this.renderer,te=this.options.chart.axisLayoutRuns||2,ae=fe=>{fe.forEach(ge=>{ge.visible&&ge.render()})},ne=0,he=!0,le,ue=0;for(let fe of(this.setTitle(),Z(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),V)){let{options:ge}=fe,{labels:pe}=ge;if(this.hasCartesianSeries&&fe.horiz&&fe.visible&&pe.enabled&&fe.series.length&&fe.coll!=="colorAxis"&&!this.polar){ne=ge.tickLength,fe.createGroups();let ye=new k(fe,0,"",!0),be=ye.createLabel("x",pe);if(ye.destroy(),be&&C(pe.reserveSpace,!b(ge.crossing))&&(ne=be.getBBox().height+pe.distance+Math.max(ge.offset||0,0)),ne){be?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ne,0);(he||le||te>1)&&ue(ue?1:1.1),le=ge/this.plotHeight>(ue?1:1.05),ue++}this.drawChartBox(),this.hasCartesianSeries?ae(V):G&&G.length&&ae(G),this.seriesGroup||(this.seriesGroup=J.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(V){let G=this,J=c(!0,this.options.credits,V);J.enabled&&!this.credits&&(this.credits=this.renderer.text(J.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){J.href&&(u.location.href=J.href)}).attr({align:J.position.align,zIndex:8}),G.styledMode||this.credits.css(J.style),this.credits.add().align(J.position),this.credits.update=function(te){G.credits=G.credits.destroy(),G.addCredits(te)})}destroy(){let V,G=this,J=G.axes,te=G.series,ae=G.container,ne=ae&&ae.parentNode;for(Z(G,"destroy"),G.renderer.forExport?se(W,G):W[G.index]=void 0,q.chartCount--,G.renderTo.removeAttribute("data-highcharts-chart"),X(G),V=J.length;V--;)J[V]=J[V].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),V=te.length;V--;)te[V]=te[V].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(he){let le=G[he];le&&le.destroy&&(G[he]=le.destroy())}),ae&&(ae.innerHTML=z.emptyHTML,X(ae),ne&&j(ae)),S(G,function(he,le){delete G[le]})}firstRender(){let V=this,G=V.options;V.getContainer(),V.resetMargins(),V.setChartSize(),V.propFromSeries(),V.getAxes();let J=y(G.series)?G.series:[];G.series=[],J.forEach(function(te){V.initSeries(te)}),V.linkSeries(),V.setSortedData(),Z(V,"beforeRender"),V.render(),V.pointer?.getChartPosition(),V.renderer.imgCount||V.hasLoaded||V.onload(),V.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(V){V&&this.index!==void 0&&V.apply(this,[this])},this),Z(this,"load"),Z(this,"render"),m(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:V,title:G}=this;!V||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(G&&G.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(V,G){let J=this,te=typeof G=="object"?G:{enabled:G,type:"x"},ae=te.type,ne=ae&&J[{x:"xAxis",xy:"axes",y:"yAxis"}[ae]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),he=J.options.chart;he?.panning&&(he.panning=te),Z(this,"pan",{originalEvent:V},()=>{J.transform({axes:ne,event:V,to:{x:V.chartX-(J.mouseDownX||0),y:V.chartY-(J.mouseDownY||0)},trigger:"pan"}),p(J.container,{cursor:"move"})})}transform(V){let{axes:G=this.axes,event:J,from:te={},reset:ae,selection:ne,to:he={},trigger:le}=V,{inverted:ue}=this,fe=!1,ge;for(let pe of(this.hoverPoints?.forEach(ye=>ye.setState()),G)){let{horiz:ye,len:be,minPointOffset:ve=0,options:me,reversed:Ee}=pe,Me=ye?"width":"height",Le=ye?"x":"y",Fe=C(he[Me],pe.len),Je=C(te[Me],pe.len),ze=10>Math.abs(Fe)?1:Fe/Je,He=(te[Le]||0)+Je/2-pe.pos,It=He-((he[Le]??pe.pos)+Fe/2-pe.pos)/ze,Dt=Ee&&!ue||!Ee&&ue?-1:1;if(!ae&&(He<0||He>pe.len))continue;let qe=pe.toValue(It,!0)+(ne?0:ve*Dt),Ze=pe.toValue(It+be/ze,!0)-(ne?0:ve*Dt||0),Ct=pe.allExtremes;if(qe>Ze&&([qe,Ze]=[Ze,qe]),ze===1&&!ae&&pe.coll==="yAxis"&&!Ct){for(let Xn of pe.series){let ls=Xn.getExtremes(Xn.getProcessedData(!0).yData,!0);Ct??(Ct={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),b(ls.dataMin)&&b(ls.dataMax)&&(Ct.dataMin=Math.min(ls.dataMin,Ct.dataMin),Ct.dataMax=Math.max(ls.dataMax,Ct.dataMax))}pe.allExtremes=Ct}let{dataMin:El,dataMax:Ml,min:_n,max:$n}=$(pe.getExtremes(),Ct||{}),Wn=El??me.min,Gn=Ml??me.max,nr=Ze-qe,Hn=pe.categories?0:Math.min(nr,Gn-Wn),or=Wn-Hn*(m(me.min)?0:me.minPadding),ar=Gn+Hn*(m(me.max)?0:me.maxPadding),Vn=pe.allowZoomOutside||ze===1||le!=="zoom"&&ze>1,os=Math.min(me.min??or,or,Vn?_n:or),as=Math.max(me.max??ar,ar,Vn?$n:ar);(!pe.isOrdinal||ze!==1||ae)&&(qe=1&&(Ze=qe+nr)),Ze>as&&(Ze=as,ze>=1&&(qe=Ze-nr)),(ae||pe.series.length&&(qe!==_n||Ze!==$n)&&qe>=os&&Ze<=as)&&(ne?ne[pe.coll].push({axis:pe,min:qe,max:Ze}):(pe.isPanning=le!=="zoom",pe.setExtremes(ae?void 0:qe,ae?void 0:Ze,!1,!1,{move:It,trigger:le,scale:ze}),!ae&&(qe>os||Ze{delete V.selection,V.trigger="zoom",this.transform(V)}):(ge&&!this.resetZoomButton?this.showResetZoom():!ge&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw(le==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),fe}}return $(ce.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ce.prototype.addAxis,[!0]],yAxis:[ce.prototype.addAxis,[!1]],series:[ce.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),ce}),r(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],function(t,i,n,h){let{stop:v}=t,{composed:q}=i,{addEvent:B,createElement:Y,css:_,defined:H,merge:E,pushUnique:N}=h;function z(){let P=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!P&&(this.scrollablePlotArea=P=new x(this)),P?.applyFixed()}function k(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class x{static compose(L,T,g){N(q,this.compose)&&(B(L,"afterInit",k),B(T,"afterSetChartSize",M=>this.afterSetSize(M.target,M)),B(T,"render",z),B(g,"show",k))}static afterSetSize(L,T){let g,M,Q,{minWidth:W,minHeight:F}=L.options.chart.scrollablePlotArea||{},{clipBox:f,plotBox:w,inverted:u,renderer:a}=L;if(!a.forExport&&(W?(L.scrollablePixelsX=g=Math.max(0,W-L.chartWidth),g&&(L.scrollablePlotBox=E(L.plotBox),w.width=L.plotWidth+=g,f[u?"height":"width"]+=g,Q=!0)):F&&(L.scrollablePixelsY=M=Math.max(0,F-L.chartHeight),H(M)&&(L.scrollablePlotBox=E(L.plotBox),w.height=L.plotHeight+=M,f[u?"width":"height"]+=M,Q=!1)),H(Q)&&!T.skipAxes))for(let o of L.axes)o.horiz===Q&&(o.setAxisSize(),o.setAxisTranslation())}constructor(L){let T,g=L.options.chart,M=n.getRendererType(),Q=g.scrollablePlotArea||{},W=this.moveFixedElements.bind(this),F={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};L.scrollablePixelsX&&(F.overflowX="auto"),L.scrollablePixelsY&&(F.overflowY="auto"),this.chart=L;let f=this.parentDiv=Y("div",{className:"highcharts-scrolling-parent"},{position:"relative"},L.renderTo),w=this.scrollingContainer=Y("div",{className:"highcharts-scrolling"},F,f),u=this.innerContainer=Y("div",{className:"highcharts-inner-container"},void 0,w),a=this.fixedDiv=Y("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(g.style?.zIndex||0)+2,top:0},void 0,!0),o=this.fixedRenderer=new M(a,L.chartWidth,L.chartHeight,g.style);this.mask=o.path().attr({fill:g.backgroundColor||"#fff","fill-opacity":Q.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),w.parentNode.insertBefore(a,w),_(L.renderTo,{overflow:"visible"}),B(L,"afterShowResetZoom",W),B(L,"afterApplyDrilldown",W),B(L,"afterLayOutTitles",W),B(w,"scroll",()=>{let{pointer:d,hoverPoint:l}=L;d&&(delete d.chartPosition,l&&(T=l),d.runPointActions(void 0,T,!0))}),u.appendChild(L.container)}applyFixed(){let{chart:L,fixedRenderer:T,isDirty:g,scrollingContainer:M}=this,{axisOffset:Q,chartWidth:W,chartHeight:F,container:f,plotHeight:w,plotLeft:u,plotTop:a,plotWidth:o,scrollablePixelsX:d=0,scrollablePixelsY:l=0}=L,{scrollPositionX:p=0,scrollPositionY:m=0}=L.options.chart.scrollablePlotArea||{},O=W+d,j=F+l;T.setSize(W,F),(g??!0)&&(this.isDirty=!1,this.moveFixedElements()),v(L.container),_(f,{width:`${O}px`,height:`${j}px`}),L.renderer.boxWrapper.attr({width:O,height:j,viewBox:[0,0,O,j].join(" ")}),L.chartBackground?.attr({width:O,height:j}),_(M,{width:`${W}px`,height:`${F}px`}),H(g)||(M.scrollLeft=d*p,M.scrollTop=l*m);let se=a-Q[0]-1,A=u-Q[3]-1,$=a+w+Q[2]+1,K=u+o+Q[1]+1,Z=u+o-d,re=a+w-l,y=[["M",0,0]];d?y=[["M",0,se],["L",u-1,se],["L",u-1,$],["L",0,$],["Z"],["M",Z,se],["L",W,se],["L",W,$],["L",Z,$],["Z"]]:l&&(y=[["M",A,0],["L",A,a-1],["L",K,a-1],["L",K,0],["Z"],["M",A,re],["L",A,F],["L",K,F],["L",K,re],["Z"]]),L.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:y})}moveFixedElements(){let L,{container:T,inverted:g,scrollablePixelsX:M,scrollablePixelsY:Q}=this.chart,W=this.fixedRenderer,F=x.fixedSelectors;for(let f of(M&&!g?L=".highcharts-yaxis":M&&g||Q&&!g?L=".highcharts-xaxis":Q&&g&&(L=".highcharts-yaxis"),L&&F.push(`${L}:not(.highcharts-radial-axis)`,`${L}-labels:not(.highcharts-radial-axis-labels)`),F))[].forEach.call(T.querySelectorAll(f),w=>{(w.namespaceURI===W.SVG_NS?W.box:W.box.parentNode).appendChild(w),w.style.pointerEvents="auto"})}}return x.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"],x}),r(e,"Core/Axis/Stacking/StackItem.js",[e["Core/Templating.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n){let{format:h}=t,{series:v}=i,{destroyObjectProperties:q,fireEvent:B,isNumber:Y,pick:_}=n;return class{constructor(H,E,N,z,k){let x=H.chart.inverted,P=H.reversed;this.axis=H;let L=this.isNegative=!!N!=!!P;this.options=E=E||{},this.x=z,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=k,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:E.align||(x?L?"left":"right":"center"),verticalAlign:E.verticalAlign||(x?"middle":L?"bottom":"top"),y:E.y,x:E.x},this.textAlign=E.textAlign||(x?L?"right":"left":"center")}destroy(){q(this,this.axis)}render(H){let E=this.axis.chart,N=this.options,z=N.format,k=z?h(z,this,E):N.formatter.call(this);if(this.label)this.label.attr({text:k,visibility:"hidden"});else{this.label=E.renderer.label(k,null,void 0,N.shape,void 0,void 0,N.useHTML,!1,"stack-labels");let x={r:N.borderRadius||0,text:k,padding:_(N.padding,5),visibility:"hidden"};E.styledMode||(x.fill=N.backgroundColor,x.stroke=N.borderColor,x["stroke-width"]=N.borderWidth,this.label.css(N.style||{})),this.label.attr(x),this.label.added||this.label.add(H)}this.label.labelrank=E.plotSizeY,B(this,"afterRender")}setOffset(H,E,N,z,k,x){let{alignOptions:P,axis:L,label:T,options:g,textAlign:M}=this,Q=L.chart,W=this.getStackBox({xOffset:H,width:E,boxBottom:N,boxTop:z,defaultX:k,xAxis:x}),{verticalAlign:F}=P;if(T&&W){let f=T.getBBox(void 0,0),w=T.padding,u=_(g.overflow,"justify")==="justify",a;P.x=g.x||0,P.y=g.y||0;let{x:o,y:d}=this.adjustStackPosition({labelBox:f,verticalAlign:F,textAlign:M});W.x-=o,W.y-=d,T.align(P,!1,W),(a=Q.isInsidePlot(T.alignAttr.x+P.x+o,T.alignAttr.y+P.y+d))||(u=!1),u&&v.prototype.justifyDataLabel.call(L,T,P,T.alignAttr,f,W),T.attr({x:T.alignAttr.x,y:T.alignAttr.y,rotation:g.rotation,rotationOriginX:f.width*{left:0,center:.5,right:1}[g.textAlign||"center"],rotationOriginY:f.height/2}),_(!u&&g.crop,!0)&&(a=Y(T.x)&&Y(T.y)&&Q.isInsidePlot(T.x-w+(T.width||0),T.y)&&Q.isInsidePlot(T.x+w,T.y)),T[a?"show":"hide"]()}B(this,"afterSetOffset",{xOffset:H,width:E})}adjustStackPosition({labelBox:H,verticalAlign:E,textAlign:N}){let z={bottom:0,middle:1,top:2,right:1,center:0,left:-1},k=z[E],x=z[N];return{x:H.width/2+H.width/2*x,y:H.height/2*k}}getStackBox(H){let E=this.axis,N=E.chart,{boxTop:z,defaultX:k,xOffset:x,width:P,boxBottom:L}=H,T=E.stacking.usePercentage?100:_(z,this.total,0),g=E.toPixels(T),M=H.xAxis||N.xAxis[0],Q=_(k,M.translate(this.x))+x,W=Math.abs(g-E.toPixels(L||Y(E.min)&&E.logarithmic&&E.logarithmic.lin2log(E.min)||0)),F=N.inverted,f=this.isNegative;return F?{x:(f?g:g-W)-N.plotLeft,y:M.height-Q-P,width:W,height:P}:{x:Q+M.transB-N.plotLeft,y:(f?g-W:g)-N.plotTop,width:P,height:W}}}}),r(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(t,i,n,h,v){var q;let{getDeferredAnimation:B}=t,{series:{prototype:Y}}=n,{addEvent:_,correctFloat:H,defined:E,destroyObjectProperties:N,fireEvent:z,isArray:k,isNumber:x,objectEach:P,pick:L}=v;function T(){let a=this.inverted;this.axes.forEach(o=>{o.stacking&&o.stacking.stacks&&o.hasVisibleSeries&&(o.stacking.oldStacks=o.stacking.stacks)}),this.series.forEach(o=>{let d=o.xAxis&&o.xAxis.options||{};o.options.stacking&&o.reserveSpace()&&(o.stackKey=[o.type,L(o.options.stack,""),a?d.top:d.left,a?d.height:d.width].join(","))})}function g(){let a=this.stacking;if(a){let o=a.stacks;P(o,(d,l)=>{N(d),delete o[l]}),a.stackTotalGroup?.destroy()}}function M(){this.stacking||(this.stacking=new u(this))}function Q(a,o,d,l){return!E(a)||a.x!==o||l&&a.stackKey!==l?a={x:o,index:0,key:l,stackKey:l}:a.index++,a.key=[d,o,a.index].join(","),a}function W(){let a,o=this,d=o.yAxis,l=o.stackKey||"",p=d.stacking.stacks,m=o.processedXData,O=o.options.stacking,j=o[O+"Stacker"];j&&[l,"-"+l].forEach(se=>{let A=m.length,$,K,Z;for(;A--;)$=m[A],a=o.getStackIndicator(a,$,o.index,se),K=p[se]?.[$],(Z=K?.points[a.key||""])&&j.call(o,Z,K,A)})}function F(a,o,d){let l=o.total?100/o.total:0;a[0]=H(a[0]*l),a[1]=H(a[1]*l),this.stackedYData[d]=a[1]}function f(a){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?Y.setStackedPoints.call(this,a,"group"):a.stacking.resetStacks())}function w(a,o){let d,l,p,m,O,j,se,A,$,K=o||this.options.stacking;if(!K||!this.reserveSpace()||({group:"xAxis"}[K]||"yAxis")!==a.coll)return;let Z=this.processedXData,re=this.processedYData,y=[],b=re.length,D=this.options,U=D.threshold||0,c=D.startFromThreshold?U:0,S=D.stack,C=o?`${this.type},${K}`:this.stackKey||"",R="-"+C,I=this.negStacks,X=a.stacking,ie=X.stacks,ee=X.oldStacks;for(X.stacksTouched+=1,se=0;se0&&this.singleStacks===!1&&(p.points[j][0]=p.points[this.index+","+A+",0"][0])):(delete p.points[j],delete p.points[this.index]);let oe=p.total||0;K==="percent"?(m=l?C:R,oe=I&&ie[m]?.[A]?(m=ie[m][A]).total=Math.max(m.total||0,oe)+Math.abs($)||0:H(oe+(Math.abs($)||0))):K==="group"?(k($)&&($=$[0]),$!==null&&oe++):oe=H(oe+($||0)),K==="group"?p.cumulative=(oe||1)-1:p.cumulative=H(L(p.cumulative,c)+($||0)),p.total=oe,$!==null&&(p.points[j].push(p.cumulative),y[se]=p.cumulative,p.hasValidPoints=!0)}K==="percent"&&(X.usePercentage=!0),K!=="group"&&(this.stackedYData=y),X.oldStacks={}}class u{constructor(o){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=o}buildStacks(){let o,d,l=this.axis,p=l.series,m=l.coll==="xAxis",O=l.options.reversedStacks,j=p.length;for(this.resetStacks(),this.usePercentage=!1,d=j;d--;)o=p[O?d:j-d-1],m&&o.setGroupedPoints(l),o.setStackedPoints(l);if(!m)for(d=0;d{P(o,d=>{d.cumulative=d.total})}))}resetStacks(){P(this.stacks,o=>{P(o,(d,l)=>{x(d.touched)&&d.touched{P(j,se=>{se.render(O)})}),O.animate({opacity:1},m)}}return(q||(q={})).compose=function(a,o,d){let l=o.prototype,p=d.prototype;l.getStacks||(_(a,"init",M),_(a,"destroy",g),l.getStacks=T,p.getStackIndicator=Q,p.modifyStacks=W,p.percentStacker=F,p.setGroupedPoints=f,p.setStackedPoints=w)},q}),r(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n){let{defined:h,merge:v,isObject:q}=n;class B extends t{drawGraph(){let _=this.options,H=(this.gappedPath||this.getGraphPath).call(this),E=this.chart.styledMode;[this,...this.zones].forEach((N,z)=>{let k,x=N.graph,P=x?"animate":"attr",L=N.dashStyle||_.dashStyle;x?(x.endX=this.preventGraphAnimation?null:H.xMap,x.animate({d:H})):H.length&&(N.graph=x=this.chart.renderer.path(H).addClass("highcharts-graph"+(z?` highcharts-zone-graph-${z-1} `:" ")+(z&&N.className||"")).attr({zIndex:1}).add(this.group)),x&&!E&&(k={stroke:!z&&_.lineColor||N.color||this.color||"#cccccc","stroke-width":_.lineWidth||0,fill:this.fillGraph&&this.color||"none"},L?k.dashstyle=L:_.linecap!=="square"&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),x[P](k).shadow(z<2&&_.shadow&&v({filterUnits:"userSpaceOnUse"},q(_.shadow)?_.shadow:{}))),x&&(x.startX=H.xMap,x.isArea=H.isArea)})}getGraphPath(_,H,E){let N=this,z=N.options,k=[],x=[],P,L=z.step,T=(_=_||N.points).reversed;return T&&_.reverse(),(L={right:1,center:2}[L]||L&&3)&&T&&(L=4-L),(_=this.getValidPoints(_,!1,!(z.connectNulls&&!H&&!E))).forEach(function(g,M){let Q,W=g.plotX,F=g.plotY,f=_[M-1],w=g.isNull||typeof F!="number";(g.leftCliff||f&&f.rightCliff)&&!E&&(P=!0),w&&!h(H)&&M>0?P=!z.connectNulls:w&&!H?P=!0:(M===0||P?Q=[["M",g.plotX,g.plotY]]:N.getPointSpline?Q=[N.getPointSpline(_,g,M)]:L?(Q=L===1?[["L",f.plotX,F]]:L===2?[["L",(f.plotX+W)/2,f.plotY],["L",(f.plotX+W)/2,F]]:[["L",W,f.plotY]]).push(["L",W,F]):Q=[["L",W,F]],x.push(g.x),L&&(x.push(g.x),L===2&&x.push(g.x)),k.push.apply(k,Q),P=!1)}),k.xMap=x,N.graphPath=k,k}}return B.defaultOptions=v(t.defaultOptions,{legendSymbol:"lineMarker"}),i.registerSeriesType("line",B),B}),r(e,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),r(e,"Series/Area/AreaSeries.js",[e["Series/Area/AreaSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n){let{seriesTypes:{line:h}}=i,{extend:v,merge:q,objectEach:B,pick:Y}=n;class _ extends h{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:E,options:N}=this;[this,...this.zones].forEach((z,k)=>{let x={},P=z.fillColor||N.fillColor,L=z.area,T=L?"animate":"attr";L?(L.endX=this.preventGraphAnimation?null:E.xMap,L.animate({d:E})):(x.zIndex=0,(L=z.area=this.chart.renderer.path(E).addClass("highcharts-area"+(k?` highcharts-zone-area-${k-1} `:" ")+(k&&z.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(x.fill=P||z.color||this.color,x["fill-opacity"]=P?1:N.fillOpacity??.75,L.css({pointerEvents:this.stickyTracking?"none":"auto"})),L[T](x),L.startX=E.xMap,L.shiftUnit=N.step?2:1})}getGraphPath(E){let N,z,k,x=h.prototype.getGraphPath,P=this.options,L=P.stacking,T=this.yAxis,g=[],M=[],Q=this.index,W=T.stacking.stacks[this.stackKey],F=P.threshold,f=Math.round(T.getThreshold(P.threshold)),w=Y(P.connectNulls,L==="percent"),u=function(m,O,j){let se=E[m],A=L&&W[se.x].points[Q],$=se[j+"Null"]||0,K=se[j+"Cliff"]||0,Z,re,y=!0;K||$?(Z=($?A[0]:A[1])+K,re=A[0]+K,y=!!$):!L&&E[O]&&E[O].isNull&&(Z=re=F),Z!==void 0&&(M.push({plotX:N,plotY:Z===null?f:T.getThreshold(Z),isNull:y,isCliff:!0}),g.push({plotX:N,plotY:re===null?f:T.getThreshold(re),doCurve:!1}))};E=E||this.points,L&&(E=this.getStackPoints(E));for(let m=0,O=E.length;mf.visible);k.forEach(function(f,w){let u=0,a,o;if(T[f]&&!T[f].isNull)z.push(T[f]),[-1,1].forEach(function(d){let l=d===1?"rightNull":"leftNull",p=L[k[w+d]],m=0;if(p){let O=W;for(;O>=0&&O=0&&dW&&N>P?(N=Math.max(W,P),k=2*P-N):Nf&&k>P?(k=Math.max(f,P),N=2*P-k):k1){let a=this.xAxis.series.filter(p=>p.visible).map(p=>p.index),o=0,d=0;M(this.xAxis.stacking?.stacks,p=>{if(typeof w.x=="number"){let m=p[w.x.toString()];if(m&&P(m.points[this.index])){let O=Object.keys(m.points).filter(j=>!j.match(",")&&m.points[j]&&m.points[j].length>1).map(parseFloat).filter(j=>a.indexOf(j)!==-1).sort((j,se)=>se-j);o=O.indexOf(this.index),d=O.length}}}),o=this.xAxis.reversed?d-1-o:o;let l=(d-1)*u.paddedWidth+f;F=(w.plotX||0)+l/2-f-o*u.paddedWidth}return F}translate(){let F=this,f=F.chart,w=F.options,u=F.dense=F.closestPointRange*F.xAxis.transA<2,a=F.borderWidth=g(w.borderWidth,u?0:1),o=F.xAxis,d=F.yAxis,l=w.threshold,p=g(w.minPointLength,5),m=F.getColumnMetrics(),O=m.width,j=F.pointXOffset=m.offset,se=F.dataMin,A=F.dataMax,$=F.translatedThreshold=d.getThreshold(l),K=F.barW=Math.max(O,1+2*a);w.pointPadding&&(K=Math.ceil(K)),v.prototype.translate.apply(F),F.points.forEach(function(Z){let re=g(Z.yBottom,$),y=999+Math.abs(re),b=Z.plotX||0,D=E(Z.plotY,-y,d.len+y),U,c=Math.min(D,re),S=Math.max(D,re)-c,C=O,R=b+j,I=K;p&&Math.abs(S)p?re-p:$-(U?p:0)),z(Z.options.pointWidth)&&(R-=Math.round(((C=I=Math.ceil(Z.options.pointWidth))-O)/2)),w.centerInCategory&&!w.stacking&&(R=F.adjustForMissingColumns(R,C,Z,m)),Z.barX=R,Z.pointWidth=C,Z.tooltipPos=f.inverted?[E(d.len+d.pos-f.plotLeft-D,d.pos-f.plotLeft,d.len+d.pos-f.plotLeft),o.len+o.pos-f.plotTop-R-I/2,S]:[o.left-f.plotLeft+R+I/2,E(D+d.pos-f.plotTop,d.pos-f.plotTop,d.len+d.pos-f.plotTop),S],Z.shapeType=F.pointClass.prototype.shapeType||"roundedRect",Z.shapeArgs=F.crispCol(R,Z.isNull?$:c,I,Z.isNull?0:S)}),x(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(F,f){let w=this.options,u=this.pointAttrToOptions||{},a=u.stroke||"borderColor",o=u["stroke-width"]||"borderWidth",d,l,p,m=F&&F.color||this.color,O=F&&F[a]||w[a]||m,j=F&&F.options.dashStyle||w.dashStyle,se=F&&F[o]||w[o]||this[o]||0,A=g(F&&F.opacity,w.opacity,1);F&&this.zones.length&&(l=F.getZone(),m=F.options.color||l&&(l.color||F.nonZonedColor)||this.color,l&&(O=l.borderColor||O,j=l.dashStyle||j,se=l.borderWidth||se)),f&&F&&(p=(d=T(w.states[f],F.options.states&&F.options.states[f]||{})).brightness,m=d.color||p!==void 0&&_(m).brighten(d.brightness).get()||m,O=d[a]||O,se=d[o]||se,j=d.dashStyle||j,A=g(d.opacity,A));let $={fill:m,stroke:O,"stroke-width":se,opacity:A};return j&&($.dashstyle=j),$}drawPoints(F=this.points){let f,w=this,u=this.chart,a=w.options,o=u.renderer,d=a.animationLimit||250;F.forEach(function(l){let p=l.plotY,m=l.graphic,O=!!m,j=m&&u.pointCounta?.enabled)}function g(a,o,d,l,p){let{chart:m,enabledDataSorting:O}=this,j=this.isCartesian&&m.inverted,se=a.plotX,A=a.plotY,$=d.rotation||0,K=B(se)&&B(A)&&m.isInsidePlot(se,Math.round(A),{inverted:j,paneCoordinates:!0,series:this}),Z=$===0&&k(d.overflow,O?"none":"justify")==="justify",re=this.visible&&a.visible!==!1&&B(se)&&(a.series.forceDL||O&&!Z||K||k(d.inside,!!this.options.stacking)&&l&&m.isInsidePlot(se,j?l.x+1:l.y+l.height-1,{inverted:j,paneCoordinates:!0,series:this})),y=a.pos();if(re&&y){var b;let D=o.getBBox(),U=o.getBBox(void 0,0),c={right:1,center:.5}[d.align||0]||0,S={bottom:1,middle:.5}[d.verticalAlign||0]||0;if(l=Y({x:y[0],y:Math.round(y[1]),width:0,height:0},l||{}),d.alignTo==="plotEdges"&&this.isCartesian&&(l[j?"x":"y"]=0,l[j?"width":"height"]=this.yAxis?.len||0),Y(d,{width:D.width,height:D.height}),b=l,O&&this.xAxis&&!Z&&this.setDataLabelStartPos(a,o,p,K,b),o.align(N(d,{width:U.width,height:U.height}),!1,l,!1),o.alignAttr.x+=c*(U.width-D.width),o.alignAttr.y+=S*(U.height-D.height),o[o.placed?"animate":"attr"]({x:o.alignAttr.x+(D.width-U.width)/2,y:o.alignAttr.y+(D.height-U.height)/2,rotationOriginX:(o.width||0)/2,rotationOriginY:(o.height||0)/2}),Z&&l.height>=0)this.justifyDataLabel(o,d,o.alignAttr,D,l,p);else if(k(d.crop,!0)){let{x:C,y:R}=o.alignAttr;re=m.isInsidePlot(C,R,{paneCoordinates:!0,series:this})&&m.isInsidePlot(C+D.width-1,R+D.height-1,{paneCoordinates:!0,series:this})}d.shape&&!$&&o[p?"attr":"animate"]({anchorX:y[0],anchorY:y[1]})}p&&O&&(o.placed=!1),re||O&&!Z?(o.show(),o.placed=!0):(o.hide(),o.placed=!1)}function M(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function Q(a){let o=this.hasRendered||0,d=this.initDataLabelsGroup().attr({opacity:+o});return!o&&d&&(this.visible&&d.show(),this.options.animation?d.animate({opacity:1},a):d.attr({opacity:1})),d}function W(a){let o;a=a||this.points;let d=this,l=d.chart,p=d.options,m=l.renderer,{backgroundColor:O,plotBackgroundColor:j}=l.options.chart,se=m.getContrast(E(j)&&j||E(O)&&O||"#000000"),A=w(d),{animation:$,defer:K}=A[0],Z=K?v(l,$,d):{defer:0,duration:0};_(this,"drawDataLabels"),d.hasDataLabels?.()&&(o=this.initDataLabels(Z),a.forEach(re=>{let y=re.dataLabels||[];P(f(A,re.dlOptions||re.options?.dataLabels)).forEach((D,U)=>{let c=D.enabled&&(re.visible||re.dataLabelOnHidden)&&(!re.isNull||re.dataLabelOnNull)&&function(J,te){let ae=te.filter;if(ae){let ne=ae.operator,he=J[ae.property],le=ae.value;return ne===">"&&he>le||ne==="<"&&he="&&he>=le||ne==="<="&&he<=le||ne==="=="&&he==le||ne==="==="&&he===le||ne==="!="&&he!=le||ne==="!=="&&he!==le}return!0}(re,D),{backgroundColor:S,borderColor:C,distance:R,style:I={}}=D,X,ie,ee,oe,ce={},de=y[U],V=!de,G;if(c&&(ie=k(D[re.formatPrefix+"Format"],D.format),X=re.getLabelConfig(),ee=B(ie)?q(ie,X,l):(D[re.formatPrefix+"Formatter"]||D.formatter).call(X,D),oe=D.rotation,!l.styledMode&&(I.color=k(D.color,I.color,E(d.color)?d.color:void 0,"#000000"),I.color==="contrast"?(S!=="none"&&(G=S),re.contrastColor=m.getContrast(G!=="auto"&&G||re.color||d.color),I.color=G||!B(R)&&D.inside||0>x(R||0)||p.stacking?re.contrastColor:se):delete re.contrastColor,p.cursor&&(I.cursor=p.cursor)),ce={r:D.borderRadius||0,rotation:oe,padding:D.padding,zIndex:1},l.styledMode||(ce.fill=S==="auto"?re.color:S,ce.stroke=C==="auto"?re.color:C,ce["stroke-width"]=D.borderWidth),z(ce,(J,te)=>{J===void 0&&delete ce[te]})),!de||c&&B(ee)&&!!de.div==!!D.useHTML&&(de.rotation&&D.rotation||de.rotation===D.rotation)||(de=void 0,V=!0),c&&B(ee)&&(de?ce.text=ee:(de=m.label(ee,0,0,D.shape,void 0,void 0,D.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+re.colorIndex+" "+(D.className||"")+(D.useHTML?" highcharts-tracker":"")),de)){de.options=D,de.attr(ce),l.styledMode||de.css(I).shadow(D.shadow);let J=D[re.formatPrefix+"TextPath"]||D.textPath;J&&!D.useHTML&&(de.setTextPath(re.getDataLabelPath?.(de)||re.graphic,J),re.dataLabelPath&&!J.enabled&&(re.dataLabelPath=re.dataLabelPath.destroy())),de.added||de.add(o),d.alignDataLabel(re,de,D,void 0,V),de.isActive=!0,y[U]&&y[U]!==de&&y[U].destroy(),y[U]=de}});let b=y.length;for(;b--;)y[b]&&y[b].isActive?y[b].isActive=!1:(y[b]?.destroy(),y.splice(b,1));re.dataLabel=y[0],re.dataLabels=y})),_(this,"afterDrawDataLabels")}function F(a,o,d,l,p,m){let O=this.chart,j=o.align,se=o.verticalAlign,A=a.box?0:a.padding||0,$=O.inverted?this.yAxis:this.xAxis,K=$?$.left-O.plotLeft:0,Z=O.inverted?this.xAxis:this.yAxis,re=Z?Z.top-O.plotTop:0,{x:y=0,y:b=0}=o,D,U;return(D=(d.x||0)+A+K)<0&&(j==="right"&&y>=0?(o.align="left",o.inside=!0):y-=D,U=!0),(D=(d.x||0)+l.width-A+K)>O.plotWidth&&(j==="left"&&y<=0?(o.align="right",o.inside=!0):y+=O.plotWidth-D,U=!0),(D=d.y+A+re)<0&&(se==="bottom"&&b>=0?(o.verticalAlign="top",o.inside=!0):b-=D,U=!0),(D=(d.y||0)+l.height-A+re)>O.plotHeight&&(se==="top"&&b<=0?(o.verticalAlign="bottom",o.inside=!0):b+=O.plotHeight-D,U=!0),U&&(o.x=y,o.y=b,a.placed=!m,a.align(o,void 0,p)),U}function f(a,o){let d=[],l;if(H(a)&&!H(o))d=a.map(function(p){return N(p,o)});else if(H(o)&&!H(a))d=o.map(function(p){return N(a,p)});else if(H(a)||H(o)){if(H(a)&&H(o))for(l=Math.max(a.length,o.length);l--;)d[l]=N(a[l],o[l])}else d=N(a,o);return d}function w(a){let o=a.chart.options.plotOptions;return P(f(f(o?.series?.dataLabels,o?.[a.type]?.dataLabels),a.options.dataLabels))}function u(a,o,d,l,p){let m=this.chart,O=m.inverted,j=this.xAxis,se=j.reversed,A=((O?o.height:o.width)||0)/2,$=a.pointWidth,K=$?$/2:0;o.startXPos=O?p.x:se?-A-K:j.width-A+K,o.startYPos=O?se?this.yAxis.height-A+K:-A-K:p.y,l?o.visibility==="hidden"&&(o.show(),o.attr({opacity:0}).animate({opacity:1})):o.attr({opacity:1}).animate({opacity:0},void 0,o.hide),m.hasRendered&&(d&&o.attr({x:o.startXPos,y:o.startYPos}),o.placed=!0)}L.compose=function(a){let o=a.prototype;o.initDataLabels||(o.initDataLabels=Q,o.initDataLabelsGroup=M,o.alignDataLabel=g,o.drawDataLabels=W,o.justifyDataLabel=F,o.setDataLabelStartPos=u,o.hasDataLabels=T)}}(h||(h={})),h}),r(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n,h){var v;let{composed:q}=i,{series:B}=n,{merge:Y,pick:_,pushUnique:H}=h;return function(E){function N(z,k,x,P,L){let T=this.chart.inverted,g=z.series,M=(g.xAxis?g.xAxis.len:this.chart.plotSizeX)||0,Q=(g.yAxis?g.yAxis.len:this.chart.plotSizeY)||0,W=z.dlBox||z.shapeArgs,F=_(z.below,z.plotY>_(this.translatedThreshold,Q)),f=_(x.inside,!!this.options.stacking);if(W){if(P=Y(W),!(x.overflow==="allow"&&x.crop===!1)){P.y<0&&(P.height+=P.y,P.y=0);let w=P.y+P.height-Q;w>0&&w\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),r(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n){let{column:h,line:v}=i.seriesTypes,{addEvent:q,extend:B,merge:Y}=n;class _ extends v{applyJitter(){let E=this,N=this.options.jitter,z=this.points.length;N&&this.points.forEach(function(k,x){["x","y"].forEach(function(P,L){if(N[P]&&!k.isNull){let T=`plot${P.toUpperCase()}`,g=E[`${P}Axis`],M=N[P]*g.transA;if(g&&!g.logarithmic){let Q=Math.max(0,(k[T]||0)-M),W=Math.min(g.len,(k[T]||0)+M);k[T]=Q+(W-Q)*function(F){let f=1e4*Math.sin(F);return f-Math.floor(f)}(x+L*z),P==="x"&&(k.clientX=k.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return _.defaultOptions=Y(v.defaultOptions,t),B(_.prototype,{drawTracker:h.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),q(_,"afterTranslate",function(){this.applyJitter()}),i.registerSeriesType("scatter",_),_}),r(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],function(t,i,n){var h,v;let{deg2rad:q}=t,{fireEvent:B,isNumber:Y,pick:_,relativeLength:H}=n;return(v=h||(h={})).getCenter=function(){let E=this.options,N=this.chart,z=2*(E.slicedOffset||0),k=N.plotWidth-2*z,x=N.plotHeight-2*z,P=E.center,L=Math.min(k,x),T=E.thickness,g,M=E.size,Q=E.innerSize||0,W,F;typeof M=="string"&&(M=parseFloat(M)),typeof Q=="string"&&(Q=parseFloat(Q));let f=[_(P[0],"50%"),_(P[1],"50%"),_(M&&M<0?void 0:E.size,"100%"),_(Q&&Q<0?void 0:E.innerSize||0,"0%")];for(!N.angular||this instanceof i||(f[3]=0),W=0;W<4;++W)F=f[W],g=W<2||W===2&&/%$/.test(F),f[W]=H(F,[k,x,L,f[2]][W])+(g?z:0);return f[3]>f[2]&&(f[3]=f[2]),Y(T)&&2*T0&&(f[3]=f[2]-2*T),B(this,"afterGetCenter",{positions:f}),f},v.getStartAndEndRadians=function(E,N){let z=Y(E)?E:0,k=Y(N)&&N>z&&N-z<360?N:z+360;return{start:q*(z+-90),end:q*(k+-90)}},h}),r(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(t,i,n){let{setAnimation:h}=t,{addEvent:v,defined:q,extend:B,isNumber:Y,pick:_,relativeLength:H}=n;class E extends i{getConnectorPath(z){let k=z.dataLabelPosition,x=z.options||{},P=x.connectorShape,L=this.connectorShapes[P]||P;return k&&L.call(this,Ue(we({},k.computed),{alignment:k.alignment}),k.connectorPosition,x)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(z){let k=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(k.x,k.y,k.r+z,k.r+z,{innerR:k.r-1,start:k.start,end:k.end,borderRadius:k.borderRadius})}constructor(z,k,x){super(z,k,x),this.half=0,this.name??(this.name="Slice");let P=L=>{this.slice(L.type==="select")};v(this,"select",P),v(this,"unselect",P)}isValid(){return Y(this.y)&&this.y>=0}setVisible(z,k=!0){z!==this.visible&&this.update({visible:z??!this.visible},k,void 0,!1)}slice(z,k,x){let P=this.series;h(x,P.chart),k=_(k,!0),this.sliced=this.options.sliced=z=q(z)?z:!this.sliced,P.options.data[P.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return B(E.prototype,{connectorShapes:{fixedOffset:function(N,z,k){let x=z.breakAt,P=z.touchingSliceAt,L=k.softConnector?["C",N.x+(N.alignment==="left"?-5:5),N.y,2*x.x-P.x,2*x.y-P.y,x.x,x.y]:["L",x.x,x.y];return[["M",N.x,N.y],L,["L",P.x,P.y]]},straight:function(N,z){let k=z.touchingSliceAt;return[["M",N.x,N.y],["L",k.x,k.y]]},crookedLine:function(N,z,k){let{breakAt:x,touchingSliceAt:P}=z,{series:L}=this,[T,g,M]=L.center,Q=M/2,{plotLeft:W,plotWidth:F}=L.chart,f=N.alignment==="left",{x:w,y:u}=N,a=x.x;if(k.crookDistance){let d=H(k.crookDistance,1);a=f?T+Q+(F+W-T-Q)*(1-d):W+(T-Q)*d}else a=T+(g-u)*Math.tan((this.angle||0)-Math.PI/2);let o=[["M",w,u]];return(f?a<=w&&a>=x.x:a>=w&&a<=x.x)&&o.push(["L",a,u]),o.push(["L",x.x,x.y],["L",P.x,P.y]),o}}}),E}),r(e,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),r(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],function(t,i,n,h,v,q,B,Y,_){let{getStartAndEndRadians:H}=t,{noop:E}=n,{clamp:N,extend:z,fireEvent:k,merge:x,pick:P}=_;class L extends q{animate(g){let M=this,Q=M.points,W=M.startAngleRad;g||Q.forEach(function(F){let f=F.graphic,w=F.shapeArgs;f&&w&&(f.attr({r:P(F.startR,M.center&&M.center[3]/2),start:W,end:W}),f.animate({r:w.r,start:w.start,end:w.end},M.options.animation))})}drawEmpty(){let g,M,Q=this.startAngleRad,W=this.endAngleRad,F=this.options;this.total===0&&this.center?(g=this.center[0],M=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(g,M,this.center[1]/2,0,Q,W).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Y.arc(g,M,this.center[2]/2,0,{start:Q,end:W,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":F.borderWidth,fill:F.fillColor||"none",stroke:F.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let g=this.chart.renderer;this.points.forEach(function(M){M.graphic&&M.hasNewShapeType()&&(M.graphic=M.graphic.destroy()),M.graphic||(M.graphic=g[M.shapeType](M.shapeArgs).add(M.series.group),M.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(g,M,Q,W){let F=this.center,f=this.radii?this.radii[Q.index]||0:F[2]/2,w=W.dataLabelPosition,u=w?.distance||0,a=Math.asin(N((g-F[1])/(f+u),-1,1));return F[0]+Math.cos(a)*(f+u)*(M?-1:1)+(u>0?(M?-1:1)*(W.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let g,M,Q,W,F=this,f=F.chart;this.drawEmpty(),F.group&&!f.styledMode&&F.group.shadow(F.options.shadow),F.points.forEach(function(w){let u={};M=w.graphic,!w.isNull&&M?(W=w.shapeArgs,g=w.getTranslate(),f.styledMode||(Q=F.pointAttribs(w,w.selected&&"select")),w.delayedRendering?(M.setRadialReference(F.center).attr(W).attr(g),f.styledMode||M.attr(Q).attr({"stroke-linejoin":"round"}),w.delayedRendering=!1):(M.setRadialReference(F.center),f.styledMode||x(!0,u,Q),x(!0,u,W,g),M.animate(u)),M.attr({visibility:w.visible?"inherit":"hidden"}),M.addClass(w.getClassName(),!0)):M&&(w.graphic=M.destroy())})}sortByAngle(g,M){g.sort(function(Q,W){return Q.angle!==void 0&&(W.angle-Q.angle)*M})}translate(g){k(this,"translate"),this.generatePoints();let M=this.options,Q=M.slicedOffset,W=H(M.startAngle,M.endAngle),F=this.startAngleRad=W.start,f=(this.endAngleRad=W.end)-F,w=this.points,u=M.ignoreHiddenPoint,a=w.length,o,d,l,p,m,O,j,se=0;for(g||(this.center=g=this.getCenter()),O=0;O1.5*Math.PI?l-=2*Math.PI:l<-Math.PI/2&&(l+=2*Math.PI),j.slicedTranslation={translateX:Math.round(Math.cos(l)*Q),translateY:Math.round(Math.sin(l)*Q)},p=Math.cos(l)*g[2]/2,m=Math.sin(l)*g[2]/2,j.tooltipPos=[g[0]+.7*p,g[1]+.7*m],j.half=l<-Math.PI/2||l>Math.PI/2?1:0,j.angle=l}k(this,"afterTranslate")}updateTotals(){let g=this.points,M=g.length,Q=this.options.ignoreHiddenPoint,W,F,f=0;for(W=0;W0&&(F.visible||!Q)?F.y/f*100:0,F.total=f}}return L.defaultOptions=x(q.defaultOptions,v),z(L.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:i.prototype.drawTracker,getCenter:t.getCenter,getSymbol:E,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:i.prototype.pointAttribs,pointClass:h,requireSorting:!1,searchPoint:E,trackerGroups:["group","dataLabelsGroup"]}),B.registerSeriesType("pie",L),L}),r(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,i,n,h,v){var q;let{composed:B,noop:Y}=i,{distribute:_}=n,{series:H}=h,{arrayMax:E,clamp:N,defined:z,pick:k,pushUnique:x,relativeLength:P}=v;return function(L){let T={radialDistributionY:function(F,f){return(f.dataLabelPosition?.top||0)+F.distributeBox.pos},radialDistributionX:function(F,f,w,u,a){let o=a.dataLabelPosition;return F.getX(w<(o?.top||0)+2||w>(o?.bottom||0)-2?u:w,f.half,f,a)},justify:function(F,f,w,u){return u[0]+(F.half?-1:1)*(w+(f.dataLabelPosition?.distance||0))},alignToPlotEdges:function(F,f,w,u){let a=F.getBBox().width;return f?a+u:w-a-u},alignToConnectors:function(F,f,w,u){let a=0,o;return F.forEach(function(d){(o=d.dataLabel.getBBox().width)>a&&(a=o)}),f?a+u:w-a-u}};function g(F,f){let{center:w,options:u}=this,a=w[2]/2,o=F.angle||0,d=Math.cos(o),l=Math.sin(o),p=w[0]+d*a,m=w[1]+l*a,O=Math.min((u.slicedOffset||0)+(u.borderWidth||0),f/5);return{natural:{x:p+d*f,y:m+l*f},computed:{},alignment:f<0?"center":F.half?"right":"left",connectorPosition:{breakAt:{x:p+d*O,y:m+l*O},touchingSliceAt:{x:p,y:m}},distance:f}}function M(){let F=this,f=F.points,w=F.chart,u=w.plotWidth,a=w.plotHeight,o=w.plotLeft,d=Math.round(w.chartWidth/3),l=F.center,p=l[2]/2,m=l[1],O=[[],[]],j=[0,0,0,0],se=F.dataLabelPositioners,A,$,K,Z=0;F.visible&&F.hasDataLabels?.()&&(f.forEach(re=>{(re.dataLabels||[]).forEach(y=>{y.shortened&&(y.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),y.shortened=!1)})}),H.prototype.drawDataLabels.apply(F),f.forEach(re=>{(re.dataLabels||[]).forEach((y,b)=>{let D=l[2]/2,U=y.options,c=P(U?.distance||0,D);b===0&&O[re.half].push(re),!z(U?.style?.width)&&y.getBBox().width>d&&(y.css({width:Math.round(.7*d)+"px"}),y.shortened=!0),y.dataLabelPosition=this.getDataLabelPosition(re,c),Z=Math.max(Z,c)})}),O.forEach((re,y)=>{let b=re.length,D=[],U,c,S=0,C;b&&(F.sortByAngle(re,y-.5),Z>0&&(U=Math.max(0,m-p-Z),c=Math.min(m+p+Z,w.plotHeight),re.forEach(R=>{(R.dataLabels||[]).forEach(I=>{let X=I.dataLabelPosition;X&&X.distance>0&&(X.top=Math.max(0,m-p-X.distance),X.bottom=Math.min(m+p+X.distance,w.plotHeight),S=I.getBBox().height||21,R.distributeBox={target:(I.dataLabelPosition?.natural.y||0)-X.top+S/2,size:S,rank:R.y},D.push(R.distributeBox))})}),_(D,C=c+S-U,C/5)),re.forEach(R=>{(R.dataLabels||[]).forEach(I=>{let X=I.options||{},ie=R.distributeBox,ee=I.dataLabelPosition,oe=ee?.natural.y||0,ce=X.connectorPadding||0,de=0,V=oe,G="inherit";if(ee){if(D&&z(ie)&&ee.distance>0&&(ie.pos===void 0?G="hidden":(K=ie.size,V=se.radialDistributionY(R,I))),X.justify)de=se.justify(R,I,p,l);else switch(X.alignTo){case"connectors":de=se.alignToConnectors(re,y,u,o);break;case"plotEdges":de=se.alignToPlotEdges(I,y,u,o);break;default:de=se.radialDistributionX(F,R,V,oe,I)}if(ee.attribs={visibility:G,align:ee.alignment},ee.posAttribs={x:de+(X.x||0)+({left:ce,right:-ce}[ee.alignment]||0),y:V+(X.y||0)-I.getBBox().height/2},ee.computed.x=de,ee.computed.y=V,k(X.crop,!0)){let J;de-($=I.getBBox().width)u-ce&&y===0&&(J=Math.round(de+$-u+ce),j[1]=Math.max(J,j[1])),V-K/2<0?j[0]=Math.max(Math.round(-V+K/2),j[0]):V+K/2>a&&(j[2]=Math.max(Math.round(V+K/2-a),j[2])),ee.sideOverflow=J}}})}))}),(E(j)===0||this.verifyDataLabelOverflow(j))&&(this.placeDataLabels(),this.points.forEach(re=>{(re.dataLabels||[]).forEach(y=>{let{connectorColor:b,connectorWidth:D=1}=y.options||{},U=y.dataLabelPosition;if(D){let c;A=y.connector,U&&U.distance>0?(c=!A,A||(y.connector=A=w.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+re.colorIndex+(re.className?" "+re.className:"")).add(F.dataLabelsGroup)),w.styledMode||A.attr({"stroke-width":D,stroke:b||re.color||"#666666"}),A[c?"attr":"animate"]({d:re.getConnectorPath(y)}),A.attr({visibility:U.attribs?.visibility})):A&&(y.connector=A.destroy())}})})))}function Q(){this.points.forEach(F=>{(F.dataLabels||[]).forEach(f=>{let w=f.dataLabelPosition;w?(w.sideOverflow&&(f.css({width:Math.max(f.getBBox().width-w.sideOverflow,0)+"px",textOverflow:(f.options?.style||{}).textOverflow||"ellipsis"}),f.shortened=!0),f.attr(w.attribs),f[f.moved?"animate":"attr"](w.posAttribs),f.moved=!0):f&&f.attr({y:-9999})}),delete F.distributeBox},this)}function W(F){let f=this.center,w=this.options,u=w.center,a=w.minSize||80,o=a,d=w.size!==null;return!d&&(u[0]!==null?o=Math.max(f[2]-Math.max(F[1],F[3]),a):(o=Math.max(f[2]-F[1]-F[3],a),f[0]+=(F[3]-F[1])/2),u[1]!==null?o=N(o,a,f[2]-Math.max(F[0],F[2])):(o=N(o,a,f[2]-F[0]-F[2]),f[1]+=(F[0]-F[2])/2),o!(g.x>=T.x+T.width||g.x+g.width<=T.x||g.y>=T.y+T.height||g.y+g.height<=T.y),N,z,k,x,P,L=!1;for(let T=0;T(g.labelrank||0)-(T.labelrank||0));for(let T=0;T{h(N,z=>{z.label&&H.push(z.label)})});for(let E of _.series||[])if(E.visible&&E.hasDataLabels?.()){let N=z=>{for(let k of z)k.visible&&(k.dataLabels||[]).forEach(x=>{let P=x.options||{};x.labelrank=v(P.labelrank,k.labelrank,k.shapeArgs?.height),P.allowOverlap??Number(P.distance)>0?(x.oldOpacity=x.opacity,x.newOpacity=1,B(x,_)):H.push(x)})};N(E.nodes||[]),N(E.points)}this.hideOverlappingLabels(H)}return{compose:function(_){let H=_.prototype;H.hideOverlappingLabels||(H.hideOverlappingLabels=q,i(_,"render",Y))}}}),r(e,"Extensions/BorderRadius.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,i,n){let{defaultOptions:h}=t,{noop:v}=i,{addEvent:q,extend:B,isObject:Y,merge:_,relativeLength:H}=n,E={radius:0,scope:"stack",where:void 0},N=v,z=v;function k(g,M,Q,W,F={}){let f=N(g,M,Q,W,F),{innerR:w=0,r:u=Q,start:a=0,end:o=0}=F;if(F.open||!F.borderRadius)return f;let d=o-a,l=Math.sin(d/2),p=Math.max(Math.min(H(F.borderRadius||0,u-w),(u-w)/2,u*l/(1+l)),0),m=Math.min(p,d/Math.PI*2*w),O=f.length-1;for(;O--;)(function(j,se,A){let $,K,Z,re=j[se],y=j[se+1];if(y[0]==="Z"&&(y=j[0]),(re[0]==="M"||re[0]==="L")&&y[0]==="A"?($=re,K=y,Z=!0):re[0]==="A"&&(y[0]==="M"||y[0]==="L")&&($=y,K=re),$&&K&&K.params){let b=K[1],D=K[5],U=K.params,{start:c,end:S,cx:C,cy:R}=U,I=D?b-A:b+A,X=I?Math.asin(A/I):0,ie=D?X:-X,ee=Math.cos(X)*I;Z?(U.start=c+ie,$[1]=C+ee*Math.cos(c),$[2]=R+ee*Math.sin(c),j.splice(se+1,0,["A",A,A,0,0,1,C+b*Math.cos(U.start),R+b*Math.sin(U.start)])):(U.end=S-ie,K[6]=C+b*Math.cos(U.end),K[7]=R+b*Math.sin(U.end),j.splice(se+1,0,["A",A,A,0,0,1,C+ee*Math.cos(S),R+ee*Math.sin(S)])),K[4]=Math.abs(U.end-U.start)1?m:p);return f}function x(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:g,yAxis:M}=this,Q=g.stacking==="percent",W=h.plotOptions?.[this.type]?.borderRadius,F=P(g.borderRadius,Y(W)?W:{}),f=M.options.reversed;for(let w of this.points){let{shapeArgs:u}=w;if(w.shapeType==="roundedRect"&&u){let{width:a=0,height:o=0,y:d=0}=u,l=d,p=o;if(F.scope==="stack"&&w.stackTotal){let se=M.translate(Q?100:w.stackTotal,!1,!0,!1,!0),A=M.translate(g.threshold||0,!1,!0,!1,!0),$=this.crispCol(0,Math.min(se,A),0,Math.abs(se-A));l=$.y,p=$.height}let m=(w.negative?-1:1)*(f?-1:1)==-1,O=F.where;!O&&this.is("waterfall")&&Math.abs((w.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(O="all"),O||(O="end");let j=Math.min(H(F.radius,a),a/2,O==="all"?o/2:1/0)||0;O==="end"&&(m&&(l-=j),p+=j),B(u,{brBoxHeight:p,brBoxY:l,r:j})}}}}function P(g,M){return Y(g)||(g={radius:g||0}),_(E,M,g)}function L(){let g=P(this.options.borderRadius);for(let M of this.points){let Q=M.shapeArgs;Q&&(Q.borderRadius=H(g.radius,(Q.r||0)-(Q.innerR||0)))}}function T(g,M,Q,W,F={}){let f=z(g,M,Q,W,F),{r:w=0,brBoxHeight:u=W,brBoxY:a=M}=F,o=M-a,d=a+u-(M+W),l=o-w>-.1?0:w,p=d-w>-.1?0:w,m=Math.max(l&&o,0),O=Math.max(p&&d,0),j=[g+l,M],se=[g+Q-l,M],A=[g+Q,M+l],$=[g+Q,M+W-p],K=[g+Q-p,M+W],Z=[g+p,M+W],re=[g,M+W-p],y=[g,M+l],b=(D,U)=>Math.sqrt(Math.pow(D,2)-Math.pow(U,2));if(m){let D=b(l,l-m);j[0]-=D,se[0]+=D,A[1]=y[1]=M+l-m}if(W=B(k.minWidth,0)&&this.chartHeight>=B(k.minHeight,0)}).call(this)&&z.push(N._id)}function E(N,z){let k=this.options.responsive,x=this.currentResponsive,P=[],L;!z&&k&&k.rules&&k.rules.forEach(M=>{M._id===void 0&&(M._id=Y()),this.matchResponsiveRule(M,P)},this);let T=q(...P.map(M=>v((k||{}).rules||[],Q=>Q._id===M)).map(M=>M&&M.chartOptions));T.isResponsiveOptions=!0,P=P.toString()||void 0;let g=x&&x.ruleIds;P!==g&&(x&&this.update(x.undoOptions,N,!0),P?((L=n(T,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:P,mergedOptions:T,undoOptions:L},this.update(T,N,!0)):this.currentResponsive=void 0)}_.compose=function(N){let z=N.prototype;return z.matchResponsiveRule||h(z,{matchResponsiveRule:H,setResponsive:E}),N}}(i||(i={})),i}),r(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Templating.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/Legend/Legend.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Chart/Chart.js"],e["Extensions/ScrollablePlotArea.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Extensions/OverlappingDataLabels.js"],e["Extensions/BorderRadius.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],function(t,i,n,h,v,q,B,Y,_,H,E,N,z,k,x,P,L,T,g,M,Q,W,F,f,w,u,a,o,d,l,p,m,O,j,se,A){return t.AST=q,t.Axis=z,t.Chart=F,t.Color=se,t.DataLabel=p,t.Fx=h,t.HTMLElement=N,t.Legend=Q,t.LegendSymbol=W,t.OverlappingDataLabels=t.OverlappingDataLabels||m,t.PlotLineOrBand=P,t.Point=g,t.Pointer=M,t.RendererRegistry=Y,t.Series=a,t.SeriesRegistry=o,t.StackItem=u,t.SVGElement=H,t.SVGRenderer=E,t.Templating=B,t.Tick=L,t.Time=A,t.Tooltip=T,t.animate=v.animate,t.animObject=v.animObject,t.chart=F.chart,t.color=se.parse,t.dateFormat=B.dateFormat,t.defaultOptions=n.defaultOptions,t.distribute=_.distribute,t.format=B.format,t.getDeferredAnimation=v.getDeferredAnimation,t.getOptions=n.getOptions,t.numberFormat=B.numberFormat,t.seriesType=o.seriesType,t.setAnimation=v.setAnimation,t.setOptions=n.setOptions,t.stop=v.stop,t.time=n.defaultTime,t.timers=h.timers,O.compose(t.Series,t.SVGElement,t.SVGRenderer),d.compose(t.Series.types.column),p.compose(t.Series),k.compose(t.Axis),N.compose(t.SVGRenderer),Q.compose(t.Chart),x.compose(t.Axis),m.compose(t.Chart),l.compose(t.Series.types.pie),P.compose(t.Axis),M.compose(t.Chart),j.compose(t.Chart),f.compose(t.Axis,t.Chart,t.Series),w.compose(t.Axis,t.Chart,t.Series),T.compose(t.Pointer),i.extend(t,i),t}),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]})});var Vo=null;function ii(){return Vo}function Xo(s){Vo??=s}var Ts=class{};var Ve=new Te(""),Fr=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Rl),providedIn:"platform"});let s=e;return s})(),Yo=new Te(""),Rl=(()=>{let e=class e extends Fr{constructor(){super(),this._doc=xe(Ve),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ii().getBaseHref(this._doc)}onPopState(t){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){let i=ii().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,i,n){this._history.pushState(t,i,n)}replaceState(t,i,n){this._history.replaceState(t,i,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>new e,providedIn:"platform"});let s=e;return s})();function Nr(s,e){if(s.length==0)return e;if(e.length==0)return s;let r=0;return s.endsWith("/")&&r++,e.startsWith("/")&&r++,r==2?s+e.substring(1):r==1?s+e:s+"/"+e}function zo(s){let e=s.match(/#|\?|$/),r=e&&e.index||s.length,t=r-(s[r-1]==="/"?1:0);return s.slice(0,t)+s.slice(r)}function kt(s){return s&&s[0]!=="?"?"?"+s:s}var bt=(()=>{let e=class e{historyGo(t){throw new Error("")}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(jr),providedIn:"root"});let s=e;return s})(),qo=new Te(""),jr=(()=>{let e=class e extends bt{constructor(t,i){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??xe(Ve).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Nr(this._baseHref,t)}path(t=!1){let i=this._platformLocation.pathname+kt(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${i}${n}`:i}pushState(t,i,n,h){let v=this.prepareExternalUrl(n+kt(h));this._platformLocation.pushState(t,i,v)}replaceState(t,i,n,h){let v=this.prepareExternalUrl(n+kt(h));this._platformLocation.replaceState(t,i,v)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(i){return new(i||e)(De(Fr),De(qo,8))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Br=(()=>{let e=class e extends bt{constructor(t,i){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],i!=null&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let i=this._platformLocation.hash??"#";return i.length>0?i.substring(1):i}prepareExternalUrl(t){let i=Nr(this._baseHref,t);return i.length>0?"#"+i:i}pushState(t,i,n,h){let v=this.prepareExternalUrl(n+kt(h));v.length==0&&(v=this._platformLocation.pathname),this._platformLocation.pushState(t,i,v)}replaceState(t,i,n,h){let v=this.prepareExternalUrl(n+kt(h));v.length==0&&(v=this._platformLocation.pathname),this._platformLocation.replaceState(t,i,v)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}};e.\u0275fac=function(i){return new(i||e)(De(Fr),De(qo,8))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),ci=(()=>{let e=class e{constructor(t){this._subject=new yt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;let i=this._locationStrategy.getBaseHref();this._basePath=Il(zo(Uo(i))),this._locationStrategy.onPopState(n=>{this._subject.emit({url:this.path(!0),pop:!0,state:n.state,type:n.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+kt(i))}normalize(t){return e.stripTrailingSlash(Pl(this._basePath,Uo(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,i="",n=null){this._locationStrategy.pushState(n,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kt(i)),n)}replaceState(t,i="",n=null){this._locationStrategy.replaceState(n,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+kt(i)),n)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(n=>n(t,i))}subscribe(t,i,n){return this._subject.subscribe({next:t,error:i,complete:n})}};e.normalizeQueryParams=kt,e.joinWithSlash=Nr,e.stripTrailingSlash=zo,e.\u0275fac=function(i){return new(i||e)(De(bt))},e.\u0275prov=Ce({token:e,factory:()=>Ol(),providedIn:"root"});let s=e;return s})();function Ol(){return new ci(De(bt))}function Pl(s,e){if(!s||!e.startsWith(s))return e;let r=e.substring(s.length);return r===""||["/",";","?","#"].includes(r[0])?r:e}function Uo(s){return s.replace(/\/index.html$/,"")}function Il(s){if(new RegExp("^(https?:)?//").test(s)){let[,r]=s.split(/\/\/[^\/]+/);return r}return s}var et=function(s){return s[s.Format=0]="Format",s[s.Standalone=1]="Standalone",s}(et||{}),Ie=function(s){return s[s.Narrow=0]="Narrow",s[s.Abbreviated=1]="Abbreviated",s[s.Wide=2]="Wide",s[s.Short=3]="Short",s}(Ie||{}),ot=function(s){return s[s.Short=0]="Short",s[s.Medium=1]="Medium",s[s.Long=2]="Long",s[s.Full=3]="Full",s}(ot||{}),_t={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ll(s){return ut(s)[$e.LocaleId]}function Fl(s,e,r){let t=ut(s),i=[t[$e.DayPeriodsFormat],t[$e.DayPeriodsStandalone]],n=pt(i,e);return pt(n,r)}function Nl(s,e,r){let t=ut(s),i=[t[$e.DaysFormat],t[$e.DaysStandalone]],n=pt(i,e);return pt(n,r)}function jl(s,e,r){let t=ut(s),i=[t[$e.MonthsFormat],t[$e.MonthsStandalone]],n=pt(i,e);return pt(n,r)}function Bl(s,e){let t=ut(s)[$e.Eras];return pt(t,e)}function xs(s,e){let r=ut(s);return pt(r[$e.DateFormat],e)}function ws(s,e){let r=ut(s);return pt(r[$e.TimeFormat],e)}function Ds(s,e){let t=ut(s)[$e.DateTimeFormat];return pt(t,e)}function Rs(s,e){let r=ut(s),t=r[$e.NumberSymbols][e];if(typeof t>"u"){if(e===_t.CurrencyDecimal)return r[$e.NumberSymbols][_t.Decimal];if(e===_t.CurrencyGroup)return r[$e.NumberSymbols][_t.Group]}return t}function Zo(s){if(!s[$e.ExtraData])throw new Error(`Missing extra locale data for the locale "${s[$e.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zl(s){let e=ut(s);return Zo(e),(e[$e.ExtraData][2]||[]).map(t=>typeof t=="string"?Mr(t):[Mr(t[0]),Mr(t[1])])}function Ul(s,e,r){let t=ut(s);Zo(t);let i=[t[$e.ExtraData][0],t[$e.ExtraData][1]],n=pt(i,e)||[];return pt(n,r)||[]}function pt(s,e){for(let r=e;r>-1;r--)if(typeof s[r]<"u")return s[r];throw new Error("Locale data API: locale data undefined")}function Mr(s){let[e,r]=s.split(":");return{hours:+e,minutes:+r}}var _l=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cs={},$l=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Rt=function(s){return s[s.Short=0]="Short",s[s.ShortGMT=1]="ShortGMT",s[s.Long=2]="Long",s[s.Extended=3]="Extended",s}(Rt||{}),Oe=function(s){return s[s.FullYear=0]="FullYear",s[s.Month=1]="Month",s[s.Date=2]="Date",s[s.Hours=3]="Hours",s[s.Minutes=4]="Minutes",s[s.Seconds=5]="Seconds",s[s.FractionalSeconds=6]="FractionalSeconds",s[s.Day=7]="Day",s}(Oe||{}),Re=function(s){return s[s.DayPeriods=0]="DayPeriods",s[s.Days=1]="Days",s[s.Months=2]="Months",s[s.Eras=3]="Eras",s}(Re||{});function Wl(s,e,r,t){let i=Jl(s);e=Tt(r,e)||e;let h=[],v;for(;e;)if(v=$l.exec(e),v){h=h.concat(v.slice(1));let Y=h.pop();if(!Y)break;e=Y}else{h.push(e);break}let q=i.getTimezoneOffset();t&&(q=Jo(t,q),i=Kl(i,t,!0));let B="";return h.forEach(Y=>{let _=ql(Y);B+=_?_(i,r,q):Y==="''"?"'":Y.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),B}function ks(s,e,r){let t=new Date(0);return t.setFullYear(s,e,r),t.setHours(0,0,0),t}function Tt(s,e){let r=Ll(s);if(Cs[r]??={},Cs[r][e])return Cs[r][e];let t="";switch(e){case"shortDate":t=xs(s,ot.Short);break;case"mediumDate":t=xs(s,ot.Medium);break;case"longDate":t=xs(s,ot.Long);break;case"fullDate":t=xs(s,ot.Full);break;case"shortTime":t=ws(s,ot.Short);break;case"mediumTime":t=ws(s,ot.Medium);break;case"longTime":t=ws(s,ot.Long);break;case"fullTime":t=ws(s,ot.Full);break;case"short":let i=Tt(s,"shortTime"),n=Tt(s,"shortDate");t=Ss(Ds(s,ot.Short),[i,n]);break;case"medium":let h=Tt(s,"mediumTime"),v=Tt(s,"mediumDate");t=Ss(Ds(s,ot.Medium),[h,v]);break;case"long":let q=Tt(s,"longTime"),B=Tt(s,"longDate");t=Ss(Ds(s,ot.Long),[q,B]);break;case"full":let Y=Tt(s,"fullTime"),_=Tt(s,"fullDate");t=Ss(Ds(s,ot.Full),[Y,_]);break}return t&&(Cs[r][e]=t),t}function Ss(s,e){return e&&(s=s.replace(/\{([^}]+)}/g,function(r,t){return e!=null&&t in e?e[t]:r})),s}function gt(s,e,r="-",t,i){let n="";(s<0||i&&s<=0)&&(i?s=-s+1:(s=-s,n=r));let h=String(s);for(;h.length0||v>-r)&&(v+=r),s===Oe.Hours)v===0&&r===-12&&(v=12);else if(s===Oe.FractionalSeconds)return Gl(v,e);let q=Rs(h,_t.MinusSign);return gt(v,e,q,t,i)}}function Hl(s,e){switch(s){case Oe.FullYear:return e.getFullYear();case Oe.Month:return e.getMonth();case Oe.Date:return e.getDate();case Oe.Hours:return e.getHours();case Oe.Minutes:return e.getMinutes();case Oe.Seconds:return e.getSeconds();case Oe.FractionalSeconds:return e.getMilliseconds();case Oe.Day:return e.getDay();default:throw new Error(`Unknown DateType value "${s}".`)}}function je(s,e,r=et.Format,t=!1){return function(i,n){return Vl(i,n,s,e,r,t)}}function Vl(s,e,r,t,i,n){switch(r){case Re.Months:return jl(e,i,t)[s.getMonth()];case Re.Days:return Nl(e,i,t)[s.getDay()];case Re.DayPeriods:let h=s.getHours(),v=s.getMinutes();if(n){let B=zl(e),Y=Ul(e,i,t),_=B.findIndex(H=>{if(Array.isArray(H)){let[E,N]=H,z=h>=E.hours&&v>=E.minutes,k=h0?Math.floor(i/60):Math.ceil(i/60);switch(s){case Rt.Short:return(i>=0?"+":"")+gt(h,2,n)+gt(Math.abs(i%60),2,n);case Rt.ShortGMT:return"GMT"+(i>=0?"+":"")+gt(h,1,n);case Rt.Long:return"GMT"+(i>=0?"+":"")+gt(h,2,n)+":"+gt(Math.abs(i%60),2,n);case Rt.Extended:return t===0?"Z":(i>=0?"+":"")+gt(h,2,n)+":"+gt(Math.abs(i%60),2,n);default:throw new Error(`Unknown zone width "${s}"`)}}}var Xl=0,Ms=4;function Yl(s){let e=ks(s,Xl,1).getDay();return ks(s,0,1+(e<=Ms?Ms:Ms+7)-e)}function Ko(s){let e=s.getDay(),r=e===0?-3:Ms-e;return ks(s.getFullYear(),s.getMonth(),s.getDate()+r)}function Tr(s,e=!1){return function(r,t){let i;if(e){let n=new Date(r.getFullYear(),r.getMonth(),1).getDay()-1,h=r.getDate();i=1+Math.floor((h+n)/7)}else{let n=Ko(r),h=Yl(n.getFullYear()),v=n.getTime()-h.getTime();i=1+Math.round(v/6048e5)}return gt(i,s,Rs(t,_t.MinusSign))}}function Es(s,e=!1){return function(r,t){let n=Ko(r).getFullYear();return gt(n,s,Rs(t,_t.MinusSign),e)}}var kr={};function ql(s){if(kr[s])return kr[s];let e;switch(s){case"G":case"GG":case"GGG":e=je(Re.Eras,Ie.Abbreviated);break;case"GGGG":e=je(Re.Eras,Ie.Wide);break;case"GGGGG":e=je(Re.Eras,Ie.Narrow);break;case"y":e=We(Oe.FullYear,1,0,!1,!0);break;case"yy":e=We(Oe.FullYear,2,0,!0,!0);break;case"yyy":e=We(Oe.FullYear,3,0,!1,!0);break;case"yyyy":e=We(Oe.FullYear,4,0,!1,!0);break;case"Y":e=Es(1);break;case"YY":e=Es(2,!0);break;case"YYY":e=Es(3);break;case"YYYY":e=Es(4);break;case"M":case"L":e=We(Oe.Month,1,1);break;case"MM":case"LL":e=We(Oe.Month,2,1);break;case"MMM":e=je(Re.Months,Ie.Abbreviated);break;case"MMMM":e=je(Re.Months,Ie.Wide);break;case"MMMMM":e=je(Re.Months,Ie.Narrow);break;case"LLL":e=je(Re.Months,Ie.Abbreviated,et.Standalone);break;case"LLLL":e=je(Re.Months,Ie.Wide,et.Standalone);break;case"LLLLL":e=je(Re.Months,Ie.Narrow,et.Standalone);break;case"w":e=Tr(1);break;case"ww":e=Tr(2);break;case"W":e=Tr(1,!0);break;case"d":e=We(Oe.Date,1);break;case"dd":e=We(Oe.Date,2);break;case"c":case"cc":e=We(Oe.Day,1);break;case"ccc":e=je(Re.Days,Ie.Abbreviated,et.Standalone);break;case"cccc":e=je(Re.Days,Ie.Wide,et.Standalone);break;case"ccccc":e=je(Re.Days,Ie.Narrow,et.Standalone);break;case"cccccc":e=je(Re.Days,Ie.Short,et.Standalone);break;case"E":case"EE":case"EEE":e=je(Re.Days,Ie.Abbreviated);break;case"EEEE":e=je(Re.Days,Ie.Wide);break;case"EEEEE":e=je(Re.Days,Ie.Narrow);break;case"EEEEEE":e=je(Re.Days,Ie.Short);break;case"a":case"aa":case"aaa":e=je(Re.DayPeriods,Ie.Abbreviated);break;case"aaaa":e=je(Re.DayPeriods,Ie.Wide);break;case"aaaaa":e=je(Re.DayPeriods,Ie.Narrow);break;case"b":case"bb":case"bbb":e=je(Re.DayPeriods,Ie.Abbreviated,et.Standalone,!0);break;case"bbbb":e=je(Re.DayPeriods,Ie.Wide,et.Standalone,!0);break;case"bbbbb":e=je(Re.DayPeriods,Ie.Narrow,et.Standalone,!0);break;case"B":case"BB":case"BBB":e=je(Re.DayPeriods,Ie.Abbreviated,et.Format,!0);break;case"BBBB":e=je(Re.DayPeriods,Ie.Wide,et.Format,!0);break;case"BBBBB":e=je(Re.DayPeriods,Ie.Narrow,et.Format,!0);break;case"h":e=We(Oe.Hours,1,-12);break;case"hh":e=We(Oe.Hours,2,-12);break;case"H":e=We(Oe.Hours,1);break;case"HH":e=We(Oe.Hours,2);break;case"m":e=We(Oe.Minutes,1);break;case"mm":e=We(Oe.Minutes,2);break;case"s":e=We(Oe.Seconds,1);break;case"ss":e=We(Oe.Seconds,2);break;case"S":e=We(Oe.FractionalSeconds,1);break;case"SS":e=We(Oe.FractionalSeconds,2);break;case"SSS":e=We(Oe.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=As(Rt.Short);break;case"ZZZZZ":e=As(Rt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=As(Rt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=As(Rt.Long);break;default:return null}return kr[s]=e,e}function Jo(s,e){s=s.replace(/:/g,"");let r=Date.parse("Jan 01, 1970 00:00:00 "+s)/6e4;return isNaN(r)?e:r}function Zl(s,e){return s=new Date(s.getTime()),s.setMinutes(s.getMinutes()+e),s}function Kl(s,e,r){let t=r?-1:1,i=s.getTimezoneOffset(),n=Jo(e,i);return Zl(s,t*(n-i))}function Jl(s){if(_o(s))return s;if(typeof s=="number"&&!isNaN(s))return new Date(s);if(typeof s=="string"){if(s=s.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(s)){let[i,n=1,h=1]=s.split("-").map(v=>+v);return ks(i,n-1,h)}let r=parseFloat(s);if(!isNaN(s-r))return new Date(r);let t;if(t=s.match(_l))return Ql(t)}let e=new Date(s);if(!_o(e))throw new Error(`Unable to convert "${s}" into a date`);return e}function Ql(s){let e=new Date(0),r=0,t=0,i=s[8]?e.setUTCFullYear:e.setFullYear,n=s[8]?e.setUTCHours:e.setHours;s[9]&&(r=Number(s[9]+s[10]),t=Number(s[9]+s[11])),i.call(e,Number(s[1]),Number(s[2])-1,Number(s[3]));let h=Number(s[4]||0)-r,v=Number(s[5]||0)-t,q=Number(s[6]||0),B=Math.floor(parseFloat("0."+(s[7]||0))*1e3);return n.call(e,h,v,q,B),e}function _o(s){return s instanceof Date&&!isNaN(s.valueOf())}function Os(s,e){e=encodeURIComponent(e);for(let r of s.split(";")){let t=r.indexOf("="),[i,n]=t==-1?[r,""]:[r.slice(0,t),r.slice(t+1)];if(i.trim()===e)return decodeURIComponent(n)}return null}var Rr=/\s+/,$o=[],Fu=(()=>{let e=class e{constructor(t,i){this._ngEl=t,this._renderer=i,this.initialClasses=$o,this.stateMap=new Map}set klass(t){this.initialClasses=t!=null?t.trim().split(Rr):$o}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(Rr):t}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let i of t)this._updateState(i,!0);else if(t!=null)for(let i of Object.keys(t))this._updateState(i,!!t[i]);this._applyStateDiff()}_updateState(t,i){let n=this.stateMap.get(t);n!==void 0?(n.enabled!==i&&(n.changed=!0,n.enabled=i),n.touched=!0):this.stateMap.set(t,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let i=t[0],n=t[1];n.changed?(this._toggleClass(i,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),n.touched=!1}}_toggleClass(t,i){t=t.trim(),t.length>0&&t.split(Rr).forEach(n=>{i?this._renderer.addClass(this._ngEl.nativeElement,n):this._renderer.removeClass(this._ngEl.nativeElement,n)})}};e.\u0275fac=function(i){return new(i||e)(_e(Kt),_e(ei))},e.\u0275dir=Et({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0});let s=e;return s})(),Nu=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let i=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=Eo(this.ngComponentOutletNgModule,Wo(i)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Wo(i)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:i,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[i,n]of this._inputsUsed)n?(t.setInput(i,this.ngComponentOutletInputs[i]),this._inputsUsed.set(i,!1)):(t.setInput(i,void 0),this._inputsUsed.delete(i))}};e.\u0275fac=function(i){return new(i||e)(_e(ki))},e.\u0275dir=Et({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Zt]});let s=e;return s})();function Wo(s){return s.get(So).injector}var ju=(()=>{let e=class e{constructor(t,i,n){this._ngEl=t,this._differs=i,this._renderer=n,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){let[n,h]=t.split("."),v=n.indexOf("-")===-1?void 0:Qt.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,n,h?`${i}${h}`:i,v):this._renderer.removeStyle(this._ngEl.nativeElement,n,v)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}};e.\u0275fac=function(i){return new(i||e)(_e(Kt),_e(Fo),_e(ei))},e.\u0275dir=Et({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0});let s=e;return s})(),Bu=(()=>{let e=class e{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(this._shouldRecreateView(t)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let n=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,n,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,i,n)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,n):!1,get:(t,i,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,n)}})}};e.\u0275fac=function(i){return new(i||e)(_e(ki))},e.\u0275dir=Et({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zt]});let s=e;return s})();function Qo(s,e){return new Ne(2100,!1)}var Or=class{createSubscription(e,r){return Er(()=>e.subscribe({next:r,error:t=>{throw t}}))}dispose(e){Er(()=>e.unsubscribe())}},Pr=class{createSubscription(e,r){return e.then(r,t=>{throw t})}dispose(e){}},eh=new Pr,th=new Or,zu=(()=>{let e=class e{constructor(t){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,i=>this._updateLatestValue(t,i))}_selectStrategy(t){if(ms(t))return eh;if(Io(t))return th;throw Qo(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,i){t===this._obj&&(this._latestValue=i,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}};e.\u0275fac=function(i){return new(i||e)(_e(ti,16))},e.\u0275pipe=Ei({name:"async",type:e,pure:!1,standalone:!0});let s=e;return s})();var ih="mediumDate",sh=new Te(""),rh=new Te(""),Uu=(()=>{let e=class e{constructor(t,i,n){this.locale=t,this.defaultTimezone=i,this.defaultOptions=n}transform(t,i,n,h){if(t==null||t===""||t!==t)return null;try{let v=i??this.defaultOptions?.dateFormat??ih,q=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Wl(t,v,h||this.locale,q)}catch(v){throw Qo(e,v.message)}}};e.\u0275fac=function(i){return new(i||e)(_e(Lo,16),_e(sh,24),_e(rh,24))},e.\u0275pipe=Ei({name:"date",type:e,pure:!0,standalone:!0});let s=e;return s})();var ea=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=qt({type:e}),e.\u0275inj=Yt({});let s=e;return s})(),zr="browser",nh="server";function oh(s){return s===zr}function Ri(s){return s===nh}var ta=(()=>{let e=class e{};e.\u0275prov=Ce({token:e,providedIn:"root",factory:()=>oh(xe(vt))?new Ir(xe(Ve),window):new Lr});let s=e;return s})(),Ir=class{constructor(e,r){this.document=e,this.window=r,this.offset=()=>[0,0]}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e){this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){let r=ah(this.document,e);r&&(this.scrollToElement(r),r.focus())}setHistoryScrollRestoration(e){this.window.history.scrollRestoration=e}scrollToElement(e){let r=e.getBoundingClientRect(),t=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,n=this.offset();this.window.scrollTo(t-n[0],i-n[1])}};function ah(s,e){let r=s.getElementById(e)||s.getElementsByName(e)[0];if(r)return r;if(typeof s.createTreeWalker=="function"&&s.body&&typeof s.body.attachShadow=="function"){let t=s.createTreeWalker(s.body,NodeFilter.SHOW_ELEMENT),i=t.currentNode;for(;i;){let n=i.shadowRoot;if(n){let h=n.getElementById(e)||n.querySelector(`[name="${e}"]`);if(h)return h}i=t.nextNode()}}return null}var Lr=class{setOffset(e){}getScrollPosition(){return[0,0]}scrollToPosition(e){}scrollToAnchor(e){}setHistoryScrollRestoration(e){}},hi=class{};var ia=s=>s.src,lh=new Te("",{providedIn:"root",factory:()=>ia});var hh=new Te("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),ch=(()=>{let e=class e{constructor(){this.preloadedImages=xe(hh),this.document=xe(Ve)}createPreloadLinkTag(t,i,n,h){if(this.preloadedImages.has(i))return;this.preloadedImages.add(i);let v=t.createElement("link");t.setAttribute(v,"as","image"),t.setAttribute(v,"href",i),t.setAttribute(v,"rel","preload"),t.setAttribute(v,"fetchpriority","high"),h&&t.setAttribute(v,"imageSizes",h),n&&t.setAttribute(v,"imageSrcset",n),t.appendChild(this.document.head,v)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var dh=/^((\s*\d+w\s*(,|$)){1,})$/;var uh=[1,2],ph=640;var fh=1920,gh=1080;var _u=(()=>{let e=class e{constructor(){this.imageLoader=xe(lh),this.config=mh(xe(uo)),this.renderer=xe(ei),this.imgElement=xe(Kt).nativeElement,this.injector=xe(Ti),this.isServer=Ri(xe(vt)),this.preloadLinkCreator=xe(ch),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){xr("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),t,this.sizes)}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let i=this._renderedSrc;this.updateSrcAndSrcset(!0);let n=this._renderedSrc;this.lcpObserver!==null&&i&&n&&i!==n&&this.injector.get(it).runOutsideAngular(()=>{this.lcpObserver?.updateImage(i,n)})}}callImageLoader(t){let i=t;return this.loaderParams&&(i.loaderParams=this.loaderParams),this.imageLoader(i)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=dh.test(this.ngSrcset);return this.ngSrcset.split(",").filter(n=>n!=="").map(n=>{n=n.trim();let h=t?parseFloat(n):parseFloat(n)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:h})} ${n}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,i=t;return this.sizes?.trim()==="100vw"&&(i=t.filter(h=>h>=ph)),i.map(h=>`${this.callImageLoader({src:this.ngSrc,width:h})} ${h}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let i=this.getRewrittenSrc();this.setHostAttribute("src",i);let n;return this.ngSrcset?n=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(n=this.getAutomaticSrcset()),n&&this.setHostAttribute("srcset",n),n}getFixedSrcset(){return uh.map(i=>`${this.callImageLoader({src:this.ngSrc,width:this.width*i})} ${i}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>fh||this.height>gh),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==ia&&!t}generatePlaceholder(t){let{placeholderResolution:i}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:i,isPlaceholder:!0})})`:typeof t=="string"&&t.startsWith("data:")?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let i=()=>{let v=this.injector.get(ti);n(),h(),this.placeholder=!1,v.markForCheck()},n=this.renderer.listen(t,"load",i),h=this.renderer.listen(t,"error",i)}ngOnDestroy(){}setHostAttribute(t,i){this.renderer.setAttribute(this.imgElement,t,i)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Et({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(i,n){i&2&&To("position",n.fill?"absolute":null)("width",n.fill?"100%":null)("height",n.fill?"100%":null)("inset",n.fill?"0":null)("background-size",n.placeholder?"cover":null)("background-position",n.placeholder?"50% 50%":null)("background-repeat",n.placeholder?"no-repeat":null)("background-image",n.placeholder?n.generatePlaceholder(n.placeholder):null)("filter",n.placeholder&&n.shouldBlurPlaceholder(n.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",yh],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",Ar],height:[2,"height","height",Ar],loading:"loading",priority:[2,"priority","priority",Mt],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",Mt],fill:[2,"fill","fill",Mt],placeholder:[2,"placeholder","placeholder",vh],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[us,Zt]});let s=e;return s})();function mh(s){let e={};return s.breakpoints&&(e.breakpoints=s.breakpoints.sort((r,t)=>r-t)),Object.assign({},co,s,e)}function yh(s){return typeof s=="string"?s:Ut(s)}function vh(s){return typeof s=="string"&&s.startsWith("data:")?s:Mt(s)}var Pi=class{},Ii=class{},Ye=class s{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` -`).forEach(r=>{let t=r.indexOf(":");if(t>0){let i=r.slice(0,t),n=i.toLowerCase(),h=r.slice(t+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(h):this.headers.set(n,[h])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new s;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...t),this.headers.set(r,i);break;case"d":let n=e.value;if(!n)this.headers.delete(r),this.normalizedNames.delete(r);else{let h=this.headers.get(r);if(!h)return;h=h.filter(v=>n.indexOf(v)===-1),h.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,h)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(n=>n.toString()),i=e.toLowerCase();this.headers.set(i,t),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var _r=class{encodeKey(e){return ra(e)}encodeValue(e){return ra(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function bh(s,e){let r=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(i=>{let n=i.indexOf("="),[h,v]=n==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,n)),e.decodeValue(i.slice(n+1))],q=r.get(h)||[];q.push(v),r.set(h,q)}),r}var xh=/%(\d[a-f0-9])/gi,wh={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ra(s){return encodeURIComponent(s).replace(xh,(e,r)=>wh[r]??e)}function Ps(s){return`${s}`}var Wt=class s{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new _r,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bh(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],i=Array.isArray(t)?t.map(Ps):[Ps(t)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let i=e[t];Array.isArray(i)?i.forEach(n=>{r.push({param:t,value:n,op:"a"})}):r.push({param:t,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new s({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Ps(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],i=t.indexOf(Ps(e.value));i!==-1&&t.splice(i,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var $r=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Dh(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function na(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function oa(s){return typeof Blob<"u"&&s instanceof Blob}function aa(s){return typeof FormData<"u"&&s instanceof FormData}function Ch(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var Oi=class s{constructor(e,r,t,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let n;if(Dh(this.method)||i?(this.body=t!==void 0?t:null,n=i):n=t,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params),this.transferCache=n.transferCache),this.headers??=new Ye,this.context??=new $r,!this.params)this.params=new Wt,this.urlWithParams=r;else{let h=this.params.toString();if(h.length===0)this.urlWithParams=r;else{let v=r.indexOf("?"),q=v===-1?"?":vH.set(E,e.setHeaders[E]),B)),e.setParams&&(Y=Object.keys(e.setParams).reduce((H,E)=>H.set(E,e.setParams[E]),Y)),new s(r,t,h,{params:Y,headers:B,context:_,reportProgress:q,responseType:i,withCredentials:v,transferCache:n})}},Gt=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(Gt||{}),Li=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new Ye,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Is=class s extends Li{constructor(e={}){super(e),this.type=Gt.ResponseHeader}clone(e={}){return new s({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Fi=class s extends Li{constructor(e={}){super(e),this.type=Gt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new s({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},$t=class extends Li{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},da=200,Sh=204;function Ur(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var Vr=(()=>{let e=class e{constructor(t){this.handler=t}request(t,i,n={}){let h;if(t instanceof Oi)h=t;else{let B;n.headers instanceof Ye?B=n.headers:B=new Ye(n.headers);let Y;n.params&&(n.params instanceof Wt?Y=n.params:Y=new Wt({fromObject:n.params})),h=new Oi(t,i,n.body!==void 0?n.body:null,{headers:B,context:n.context,params:Y,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let v=Se(h).pipe(Nt(B=>this.handler.handle(B)));if(t instanceof Oi||n.observe==="events")return v;let q=v.pipe(St(B=>B instanceof Fi));switch(n.observe||"body"){case"body":switch(h.responseType){case"arraybuffer":return q.pipe(ke(B=>{if(B.body!==null&&!(B.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return B.body}));case"blob":return q.pipe(ke(B=>{if(B.body!==null&&!(B.body instanceof Blob))throw new Error("Response is not a Blob.");return B.body}));case"text":return q.pipe(ke(B=>{if(B.body!==null&&typeof B.body!="string")throw new Error("Response is not a string.");return B.body}));case"json":default:return q.pipe(ke(B=>B.body))}case"response":return q;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:new Wt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,n={}){return this.request("PATCH",t,Ur(n,i))}post(t,i,n={}){return this.request("POST",t,Ur(n,i))}put(t,i,n={}){return this.request("PUT",t,Ur(n,i))}};e.\u0275fac=function(i){return new(i||e)(De(Pi))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Ah=/^\)\]\}',?\n/,Eh="X-Request-URL";function la(s){if(s.url)return s.url;let e=Eh.toLocaleLowerCase();return s.headers.get(e)}var Wr=(()=>{let e=class e{constructor(){this.fetchImpl=xe(Gr,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=xe(it)}handle(t){return new Ci(i=>{let n=new AbortController;return this.doRequest(t,n.signal,i).then(Hr,h=>i.error(new $t({error:h}))),()=>n.abort()})}doRequest(t,i,n){return st(this,null,function*(){let h=this.createRequestInit(t),v;try{let N=this.fetchImpl(t.urlWithParams,we({signal:i},h));Mh(N),n.next({type:Gt.Sent}),v=yield N}catch(N){n.error(new $t({error:N,status:N.status??0,statusText:N.statusText,url:t.urlWithParams,headers:N.headers}));return}let q=new Ye(v.headers),B=v.statusText,Y=la(v)??t.urlWithParams,_=v.status,H=null;if(t.reportProgress&&n.next(new Is({headers:q,status:_,statusText:B,url:Y})),v.body){let N=v.headers.get("content-length"),z=[],k=v.body.getReader(),x=0,P,L,T=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>st(this,null,function*(){for(;;){let{done:M,value:Q}=yield k.read();if(M)break;if(z.push(Q),x+=Q.length,t.reportProgress){L=t.responseType==="text"?(L??"")+(P??=new TextDecoder).decode(Q,{stream:!0}):void 0;let W=()=>n.next({type:Gt.DownloadProgress,total:N?+N:void 0,loaded:x,partialText:L});T?T.run(W):W()}}}));let g=this.concatChunks(z,x);try{let M=v.headers.get("Content-Type")??"";H=this.parseBody(t,g,M)}catch(M){n.error(new $t({error:M,headers:new Ye(v.headers),status:v.status,statusText:v.statusText,url:la(v)??t.urlWithParams}));return}}_===0&&(_=H?da:0),_>=200&&_<300?(n.next(new Fi({body:H,headers:q,status:_,statusText:B,url:Y})),n.complete()):n.error(new $t({error:H,headers:q,status:_,statusText:B,url:Y}))})}parseBody(t,i,n){switch(t.responseType){case"json":let h=new TextDecoder().decode(i).replace(Ah,"");return h===""?null:JSON.parse(h);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:n});case"arraybuffer":return i.buffer}}createRequestInit(t){let i={},n=t.withCredentials?"include":void 0;if(t.headers.forEach((h,v)=>i[h]=v.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let h=t.detectContentTypeHeader();h!==null&&(i["Content-Type"]=h)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:n}}concatChunks(t,i){let n=new Uint8Array(i),h=0;for(let v of t)n.set(v,h),h+=v.length;return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Gr=class{};function Hr(){}function Mh(s){s.then(Hr,Hr)}function Th(s,e){return e(s)}function kh(s,e,r){return(t,i)=>dt(r,()=>e(t,n=>s(n,i)))}var ua=new Te(""),Rh=new Te(""),Oh=new Te("",{providedIn:"root",factory:()=>!0});var ha=(()=>{let e=class e extends Pi{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=xe(cs),this.contributeToStability=xe(Oh)}handle(t){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(ua),...this.injector.get(Rh,[])]));this.chain=i.reduceRight((n,h)=>kh(n,h,this.injector),Th)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(t,n=>this.backend.handle(n)).pipe(ai(()=>this.pendingTasks.remove(i)))}else return this.chain(t,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(De(Ii),De(zt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();var Ph=/^\)\]\}',?\n/;function Ih(s){return"responseURL"in s&&s.responseURL?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null}var ca=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new Ne(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Qe(i.\u0275loadImpl()):Se(null)).pipe(nt(()=>new Ci(h=>{let v=i.build();if(v.open(t.method,t.urlWithParams),t.withCredentials&&(v.withCredentials=!0),t.headers.forEach((k,x)=>v.setRequestHeader(k,x.join(","))),t.headers.has("Accept")||v.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let k=t.detectContentTypeHeader();k!==null&&v.setRequestHeader("Content-Type",k)}if(t.responseType){let k=t.responseType.toLowerCase();v.responseType=k!=="json"?k:"text"}let q=t.serializeBody(),B=null,Y=()=>{if(B!==null)return B;let k=v.statusText||"OK",x=new Ye(v.getAllResponseHeaders()),P=Ih(v)||t.url;return B=new Is({headers:x,status:v.status,statusText:k,url:P}),B},_=()=>{let{headers:k,status:x,statusText:P,url:L}=Y(),T=null;x!==Sh&&(T=typeof v.response>"u"?v.responseText:v.response),x===0&&(x=T?da:0);let g=x>=200&&x<300;if(t.responseType==="json"&&typeof T=="string"){let M=T;T=T.replace(Ph,"");try{T=T!==""?JSON.parse(T):null}catch(Q){T=M,g&&(g=!1,T={error:Q,text:T})}}g?(h.next(new Fi({body:T,headers:k,status:x,statusText:P,url:L||void 0})),h.complete()):h.error(new $t({error:T,headers:k,status:x,statusText:P,url:L||void 0}))},H=k=>{let{url:x}=Y(),P=new $t({error:k,status:v.status||0,statusText:v.statusText||"Unknown Error",url:x||void 0});h.error(P)},E=!1,N=k=>{E||(h.next(Y()),E=!0);let x={type:Gt.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(x.total=k.total),t.responseType==="text"&&v.responseText&&(x.partialText=v.responseText),h.next(x)},z=k=>{let x={type:Gt.UploadProgress,loaded:k.loaded};k.lengthComputable&&(x.total=k.total),h.next(x)};return v.addEventListener("load",_),v.addEventListener("error",H),v.addEventListener("timeout",H),v.addEventListener("abort",H),t.reportProgress&&(v.addEventListener("progress",N),q!==null&&v.upload&&v.upload.addEventListener("progress",z)),v.send(q),h.next({type:Gt.Sent}),()=>{v.removeEventListener("error",H),v.removeEventListener("abort",H),v.removeEventListener("load",_),v.removeEventListener("timeout",H),t.reportProgress&&(v.removeEventListener("progress",N),q!==null&&v.upload&&v.upload.removeEventListener("progress",z)),v.readyState!==v.DONE&&v.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(De(hi))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),pa=new Te(""),Lh="XSRF-TOKEN",Fh=new Te("",{providedIn:"root",factory:()=>Lh}),Nh="X-XSRF-TOKEN",jh=new Te("",{providedIn:"root",factory:()=>Nh}),Ls=class{},Bh=(()=>{let e=class e{constructor(t,i,n){this.doc=t,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Os(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(De(Ve),De(vt),De(Fh))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function zh(s,e){let r=s.url.toLowerCase();if(!xe(pa)||s.method==="GET"||s.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(s);let t=xe(Ls).getToken(),i=xe(jh);return t!=null&&!s.headers.has(i)&&(s=s.clone({headers:s.headers.set(i,t)})),e(s)}var fa=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(fa||{});function Uh(s,e){return{\u0275kind:s,\u0275providers:e}}function ip(...s){let e=[Vr,ca,ha,{provide:Pi,useExisting:ha},{provide:Ii,useFactory:()=>xe(Wr,{optional:!0})??xe(ca)},{provide:ua,useValue:zh,multi:!0},{provide:pa,useValue:!0},{provide:Ls,useClass:Bh}];for(let r of s)e.push(...r.\u0275providers);return Mi(e)}function sp(){return Uh(fa.Fetch,[Wr,{provide:Ii,useExisting:Wr}])}var qr=class extends Ts{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zr=class s extends qr{static makeCurrent(){Xo(new s)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Wh();return r==null?null:Gh(r)}resetBaseElement(){Ni=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Os(document.cookie,e)}},Ni=null;function Wh(){return Ni=Ni||document.querySelector("base"),Ni?Ni.getAttribute("href"):null}function Gh(s){return new URL(s,document.baseURI).pathname}var Kr=class{addToWindow(e){Bt.getAngularTestability=(t,i=!0)=>{let n=e.findTestabilityInTree(t,i);if(n==null)throw new Ne(5103,!1);return n},Bt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Bt.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let i=Bt.getAllAngularTestabilities(),n=i.length,h=function(){n--,n==0&&t()};i.forEach(v=>{v.whenStable(h)})};Bt.frameworkStabilizers||(Bt.frameworkStabilizers=[]),Bt.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let i=e.getTestability(r);return i??(t?ii().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},Hh=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Jr=new Te(""),va=(()=>{let e=class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(n=>{n.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,n){return this._findPluginFor(i).addEventListener(t,i,n)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(h=>h.supports(t)),!i)throw new Ne(5101,!1);return this._eventNameToPlugin.set(t,i),i}};e.\u0275fac=function(i){return new(i||e)(De(Jr),De(it))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Fs=class{constructor(e){this._doc=e}},Xr="ng-app-id",ba=(()=>{let e=class e{constructor(t,i,n,h={}){this.doc=t,this.appId=i,this.nonce=n,this.platformId=h,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ri(h),this.resetHostNodes()}addStyles(t){for(let i of t)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(t){for(let i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){let i=this.styleRef;i.get(t)?.elements?.forEach(n=>n.remove()),i.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Xr}="${this.appId}"]`);if(t?.length){let i=new Map;return t.forEach(n=>{n.textContent!=null&&i.set(n.textContent,n)}),i}return null}changeUsageCount(t,i){let n=this.styleRef;if(n.has(t)){let h=n.get(t);return h.usage+=i,h.usage}return n.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){let n=this.styleNodesInDOM,h=n?.get(i);if(h?.parentNode===t)return n.delete(i),h.removeAttribute(Xr),h;{let v=this.doc.createElement("style");return this.nonce&&v.setAttribute("nonce",this.nonce),v.textContent=i,this.platformIsServer&&v.setAttribute(Xr,this.appId),t.appendChild(v),v}}addStyleToHost(t,i){let n=this.getStyleElement(t,i),h=this.styleRef,v=h.get(i)?.elements;v?v.push(n):h.set(i,{elements:[n],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(De(Ve),De(ds),De(br,8),De(vt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Yr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},en=/%COMP%/g,xa="%COMP%",Vh=`_nghost-${xa}`,Xh=`_ngcontent-${xa}`,Yh=!0,qh=new Te("",{providedIn:"root",factory:()=>Yh});function Zh(s){return Xh.replace(en,s)}function Kh(s){return Vh.replace(en,s)}function wa(s,e){return e.map(r=>r.replace(en,s))}var ga=(()=>{let e=class e{constructor(t,i,n,h,v,q,B,Y=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=n,this.removeStylesOnCompDestroy=h,this.doc=v,this.platformId=q,this.ngZone=B,this.nonce=Y,this.rendererByCompId=new Map,this.platformIsServer=Ri(q),this.defaultRenderer=new ji(t,v,B,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ai.ShadowDom&&(i=Ue(we({},i),{encapsulation:Ai.Emulated}));let n=this.getOrCreateRenderer(t,i);return n instanceof Ns?n.applyToHost(t):n instanceof Bi&&n.applyStyles(),n}getOrCreateRenderer(t,i){let n=this.rendererByCompId,h=n.get(i.id);if(!h){let v=this.doc,q=this.ngZone,B=this.eventManager,Y=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,H=this.platformIsServer;switch(i.encapsulation){case Ai.Emulated:h=new Ns(B,Y,i,this.appId,_,v,q,H);break;case Ai.ShadowDom:return new Qr(B,Y,t,i,v,q,this.nonce,H);default:h=new Bi(B,Y,i,_,v,q,H);break}n.set(i.id,h)}return h}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(De(va),De(ba),De(ds),De(qh),De(Ve),De(vt),De(it),De(br))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),ji=class{constructor(e,r,t,i){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Yr[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(ma(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(ma(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new Ne(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,i){if(i){r=i+":"+r;let n=Yr[i];n?e.setAttributeNS(n,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let i=Yr[t];i?e.removeAttributeNS(i,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,i){i&(Qt.DashCase|Qt.Important)?e.style.setProperty(r,t,i&Qt.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Qt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=ii().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function ma(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var Qr=class extends ji{constructor(e,r,t,i,n,h,v,q){super(e,n,h,q),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let B=wa(i.id,i.styles);for(let Y of B){let _=document.createElement("style");v&&_.setAttribute("nonce",v),_.textContent=Y,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Bi=class extends ji{constructor(e,r,t,i,n,h,v,q){super(e,n,h,v),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=q?wa(q,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ns=class extends Bi{constructor(e,r,t,i,n,h,v,q){let B=i+"-"+t.id;super(e,r,t,n,h,v,q,B),this.contentAttr=Zh(B),this.hostAttr=Kh(B)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},Jh=(()=>{let e=class e extends Fs{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,n){return t.addEventListener(i,n,!1),()=>this.removeEventListener(t,i,n)}removeEventListener(t,i,n){return t.removeEventListener(i,n)}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),ya=["alt","control","meta","shift"],Qh={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ec={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},tc=(()=>{let e=class e extends Fs{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,i,n){let h=e.parseEventName(i),v=e.eventCallback(h.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(t,h.domEventName,v))}static parseEventName(t){let i=t.toLowerCase().split("."),n=i.shift();if(i.length===0||!(n==="keydown"||n==="keyup"))return null;let h=e._normalizeKey(i.pop()),v="",q=i.indexOf("code");if(q>-1&&(i.splice(q,1),v="code."),ya.forEach(Y=>{let _=i.indexOf(Y);_>-1&&(i.splice(_,1),v+=Y+".")}),v+=h,i.length!=0||h.length===0)return null;let B={};return B.domEventName=n,B.fullKey=v,B}static matchEventFullKeyCode(t,i){let n=Qh[t.key]||t.key,h="";return i.indexOf("code.")>-1&&(n=t.code,h="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),ya.forEach(v=>{if(v!==n){let q=ec[v];q(t)&&(h+=v+".")}}),h+=n,h===i)}static eventCallback(t,i,n){return h=>{e.matchEventFullKeyCode(h,t)&&n.runGuarded(()=>i(h))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function vp(s,e){return jo(we({rootComponent:s},ic(e)))}function ic(s){return{appProviders:[...Da,...s?.providers??[]],platformProviders:oc}}function sc(){Zr.makeCurrent()}function rc(){return new vr}function nc(){return lo(document),document}var oc=[{provide:vt,useValue:zr},{provide:ho,useValue:sc,multi:!0},{provide:Ve,useFactory:nc,deps:[]}];var ac=new Te(""),lc=[{provide:fs,useClass:Kr,deps:[]},{provide:Po,useClass:gs,deps:[it,Cr,fs]},{provide:gs,useClass:gs,deps:[it,Cr,fs]}],Da=[{provide:ao,useValue:"root"},{provide:vr,useFactory:rc,deps:[]},{provide:Jr,useClass:Jh,multi:!0,deps:[Ve,it,vt]},{provide:Jr,useClass:tc,multi:!0,deps:[Ve]},ga,ba,va,{provide:Do,useExisting:ga},{provide:hi,useClass:Hh,deps:[]},[]],bp=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ds,useValue:t.appId}]}}};e.\u0275fac=function(i){return new(i||e)(De(ac,12))},e.\u0275mod=qt({type:e}),e.\u0275inj=Yt({providers:[...Da,...lc],imports:[ea,No]});let s=e;return s})();var Ca=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var hc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:function(i){let n=null;return i?n=new(i||e):n=De(cc),n},providedIn:"root"});let s=e;return s})(),cc=(()=>{let e=class e extends hc{constructor(t){super(),this._doc=t}sanitize(t,i){if(i==null)return null;switch(t){case Jt.NONE:return i;case Jt.HTML:return li(i,"HTML")?Ut(i):bo(this._doc,String(i)).toString();case Jt.STYLE:return li(i,"Style")?Ut(i):i;case Jt.SCRIPT:if(li(i,"Script"))return Ut(i);throw new Ne(5200,!1);case Jt.URL:return li(i,"URL")?Ut(i):vo(String(i));case Jt.RESOURCE_URL:if(li(i,"ResourceURL"))return Ut(i);throw new Ne(5201,!1);default:throw new Ne(5202,!1)}}bypassSecurityTrustHtml(t){return po(t)}bypassSecurityTrustStyle(t){return fo(t)}bypassSecurityTrustScript(t){return go(t)}bypassSecurityTrustUrl(t){return mo(t)}bypassSecurityTrustResourceUrl(t){return yo(t)}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Ae="primary",es=Symbol("RouteTitle"),on=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function mi(s){return new on(s)}function uc(s,e,r){let t=r.path.split("/");if(t.length>s.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[n]===i)}else return s===e}function Fa(s){return s.length>0?s[s.length-1]:null}function Xt(s){return Zn(s)?s:ms(s)?Qe(Promise.resolve(s)):Se(s)}var fc={exact:ja,subset:Ba},Na={exact:gc,subset:mc,ignored:()=>!0};function Sa(s,e,r){return fc[r.paths](s.root,e.root,r.matrixParams)&&Na[r.queryParams](s.queryParams,e.queryParams)&&!(r.fragment==="exact"&&s.fragment!==e.fragment)}function gc(s,e){return xt(s,e)}function ja(s,e,r){if(!ri(s.segments,e.segments)||!zs(s.segments,e.segments,r)||s.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!s.children[t]||!ja(s.children[t],e.children[t],r))return!1;return!0}function mc(s,e){return Object.keys(e).length<=Object.keys(s).length&&Object.keys(e).every(r=>La(s[r],e[r]))}function Ba(s,e,r){return za(s,e,e.segments,r)}function za(s,e,r,t){if(s.segments.length>r.length){let i=s.segments.slice(0,r.length);return!(!ri(i,r)||e.hasChildren()||!zs(i,r,t))}else if(s.segments.length===r.length){if(!ri(s.segments,r)||!zs(s.segments,r,t))return!1;for(let i in e.children)if(!s.children[i]||!Ba(s.children[i],e.children[i],t))return!1;return!0}else{let i=r.slice(0,s.segments.length),n=r.slice(s.segments.length);return!ri(s.segments,i)||!zs(s.segments,i,t)||!s.children[Ae]?!1:za(s.children[Ae],e,n,t)}}function zs(s,e,r){return e.every((t,i)=>Na[r](s[i].parameters,t.parameters))}var Ht=class{constructor(e=new Pe([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=mi(this.queryParams),this._queryParamMap}toString(){return bc.serialize(this)}},Pe=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Us(this)}},si=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=mi(this.parameters),this._parameterMap}toString(){return _a(this)}};function yc(s,e){return ri(s,e)&&s.every((r,t)=>xt(r.parameters,e[t].parameters))}function ri(s,e){return s.length!==e.length?!1:s.every((r,t)=>r.path===e[t].path)}function vc(s,e){let r=[];return Object.entries(s.children).forEach(([t,i])=>{t===Ae&&(r=r.concat(e(i,t)))}),Object.entries(s.children).forEach(([t,i])=>{t!==Ae&&(r=r.concat(e(i,t)))}),r}var ts=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>new yi,providedIn:"root"});let s=e;return s})(),yi=class{parse(e){let r=new hn(e);return new Ht(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${zi(e.root,!0)}`,t=Dc(e.queryParams),i=typeof e.fragment=="string"?`#${xc(e.fragment)}`:"";return`${r}${t}${i}`}},bc=new yi;function Us(s){return s.segments.map(e=>_a(e)).join("/")}function zi(s,e){if(!s.hasChildren())return Us(s);if(e){let r=s.children[Ae]?zi(s.children[Ae],!1):"",t=[];return Object.entries(s.children).forEach(([i,n])=>{i!==Ae&&t.push(`${i}:${zi(n,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=vc(s,(t,i)=>i===Ae?[zi(s.children[Ae],!1)]:[`${i}:${zi(t,!1)}`]);return Object.keys(s.children).length===1&&s.children[Ae]!=null?`${Us(s)}/${r[0]}`:`${Us(s)}/(${r.join("//")})`}}function Ua(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(s){return Ua(s).replace(/%3B/gi,";")}function xc(s){return encodeURI(s)}function ln(s){return Ua(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _s(s){return decodeURIComponent(s)}function Aa(s){return _s(s.replace(/\+/g,"%20"))}function _a(s){return`${ln(s.path)}${wc(s.parameters)}`}function wc(s){return Object.entries(s).map(([e,r])=>`;${ln(e)}=${ln(r)}`).join("")}function Dc(s){let e=Object.entries(s).map(([r,t])=>Array.isArray(t)?t.map(i=>`${js(r)}=${js(i)}`).join("&"):`${js(r)}=${js(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Cc=/^[^\/()?;#]+/;function tn(s){let e=s.match(Cc);return e?e[0]:""}var Sc=/^[^\/()?;=#]+/;function Ac(s){let e=s.match(Sc);return e?e[0]:""}var Ec=/^[^=?&#]+/;function Mc(s){let e=s.match(Ec);return e?e[0]:""}var Tc=/^[^&#]+/;function kc(s){let e=s.match(Tc);return e?e[0]:""}var hn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pe([],{}):new Pe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[Ae]=new Pe(e,r)),t}parseSegment(){let e=tn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Ne(4009,!1);return this.capture(e),new si(_s(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Ac(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let i=tn(this.remaining);i&&(t=i,this.capture(t))}e[_s(r)]=_s(t)}parseQueryParam(e){let r=Mc(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let h=kc(this.remaining);h&&(t=h,this.capture(t))}let i=Aa(r),n=Aa(t);if(e.hasOwnProperty(i)){let h=e[i];Array.isArray(h)||(h=[h],e[i]=h),h.push(n)}else e[i]=n}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=tn(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new Ne(4010,!1);let n;t.indexOf(":")>-1?(n=t.slice(0,t.indexOf(":")),this.capture(n),this.capture(":")):e&&(n=Ae);let h=this.parseChildren();r[n]=Object.keys(h).length===1?h[Ae]:new Pe([],h),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Ne(4011,!1)}};function $a(s){return s.segments.length>0?new Pe([],{[Ae]:s}):s}function Wa(s){let e={};for(let[t,i]of Object.entries(s.children)){let n=Wa(i);if(t===Ae&&n.segments.length===0&&n.hasChildren())for(let[h,v]of Object.entries(n.children))e[h]=v;else(n.segments.length>0||n.hasChildren())&&(e[t]=n)}let r=new Pe(s.segments,e);return Rc(r)}function Rc(s){if(s.numberOfChildren===1&&s.children[Ae]){let e=s.children[Ae];return new Pe(s.segments.concat(e.segments),e.children)}return s}function Hi(s){return s instanceof Ht}function Oc(s,e,r=null,t=null){let i=Ga(s);return Ha(i,e,r,t)}function Ga(s){let e;function r(n){let h={};for(let q of n.children){let B=r(q);h[q.outlet]=B}let v=new Pe(n.url,h);return n===s&&(e=v),v}let t=r(s.root),i=$a(t);return e??i}function Ha(s,e,r,t){let i=s;for(;i.parent;)i=i.parent;if(e.length===0)return sn(i,i,i,r,t);let n=Pc(e);if(n.toRoot())return sn(i,i,new Pe([],{}),r,t);let h=Ic(n,i,s),v=h.processChildren?$i(h.segmentGroup,h.index,n.commands):Xa(h.segmentGroup,h.index,n.commands);return sn(i,h.segmentGroup,v,r,t)}function $s(s){return typeof s=="object"&&s!=null&&!s.outlets&&!s.segmentPath}function Vi(s){return typeof s=="object"&&s!=null&&s.outlets}function sn(s,e,r,t,i){let n={};t&&Object.entries(t).forEach(([q,B])=>{n[q]=Array.isArray(B)?B.map(Y=>`${Y}`):`${B}`});let h;s===e?h=r:h=Va(s,e,r);let v=$a(Wa(h));return new Ht(v,n,i)}function Va(s,e,r){let t={};return Object.entries(s.children).forEach(([i,n])=>{n===e?t[i]=r:t[i]=Va(n,e,r)}),new Pe(s.segments,t)}var Ws=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&$s(t[0]))throw new Ne(4003,!1);let i=t.find(Vi);if(i&&i!==Fa(t))throw new Ne(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Pc(s){if(typeof s[0]=="string"&&s.length===1&&s[0]==="/")return new Ws(!0,0,s);let e=0,r=!1,t=s.reduce((i,n,h)=>{if(typeof n=="object"&&n!=null){if(n.outlets){let v={};return Object.entries(n.outlets).forEach(([q,B])=>{v[q]=typeof B=="string"?B.split("/"):B}),[...i,{outlets:v}]}if(n.segmentPath)return[...i,n.segmentPath]}return typeof n!="string"?[...i,n]:h===0?(n.split("/").forEach((v,q)=>{q==0&&v==="."||(q==0&&v===""?r=!0:v===".."?e++:v!=""&&i.push(v))}),i):[...i,n]},[]);return new Ws(r,e,t)}var pi=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function Ic(s,e,r){if(s.isAbsolute)return new pi(e,!0,0);if(!r)return new pi(e,!1,NaN);if(r.parent===null)return new pi(r,!0,0);let t=$s(s.commands[0])?0:1,i=r.segments.length-1+t;return Lc(r,i,s.numberOfDoubleDots)}function Lc(s,e,r){let t=s,i=e,n=r;for(;n>i;){if(n-=i,t=t.parent,!t)throw new Ne(4005,!1);i=t.segments.length}return new pi(t,!1,i-n)}function Fc(s){return Vi(s[0])?s[0].outlets:{[Ae]:s}}function Xa(s,e,r){if(s??=new Pe([],{}),s.segments.length===0&&s.hasChildren())return $i(s,e,r);let t=Nc(s,e,r),i=r.slice(t.commandIndex);if(t.match&&t.pathIndexn!==Ae)&&s.children[Ae]&&s.numberOfChildren===1&&s.children[Ae].segments.length===0){let n=$i(s.children[Ae],e,r);return new Pe(s.segments,n.children)}return Object.entries(t).forEach(([n,h])=>{typeof h=="string"&&(h=[h]),h!==null&&(i[n]=Xa(s.children[n],e,h))}),Object.entries(s.children).forEach(([n,h])=>{t[n]===void 0&&(i[n]=h)}),new Pe(s.segments,i)}}function Nc(s,e,r){let t=0,i=e,n={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return n;let h=s.segments[i],v=r[t];if(Vi(v))break;let q=`${v}`,B=t0&&q===void 0)break;if(q&&B&&typeof B=="object"&&B.outlets===void 0){if(!Ma(q,B,h))return n;t+=2}else{if(!Ma(q,{},h))return n;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function cn(s,e,r){let t=s.segments.slice(0,e),i=0;for(;i{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=cn(new Pe([],{}),0,t))}),e}function Ea(s){let e={};return Object.entries(s).forEach(([r,t])=>e[r]=`${t}`),e}function Ma(s,e,r){return s==r.path&&xt(e,r.parameters)}var Wi="imperative",Xe=function(s){return s[s.NavigationStart=0]="NavigationStart",s[s.NavigationEnd=1]="NavigationEnd",s[s.NavigationCancel=2]="NavigationCancel",s[s.NavigationError=3]="NavigationError",s[s.RoutesRecognized=4]="RoutesRecognized",s[s.ResolveStart=5]="ResolveStart",s[s.ResolveEnd=6]="ResolveEnd",s[s.GuardsCheckStart=7]="GuardsCheckStart",s[s.GuardsCheckEnd=8]="GuardsCheckEnd",s[s.RouteConfigLoadStart=9]="RouteConfigLoadStart",s[s.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",s[s.ChildActivationStart=11]="ChildActivationStart",s[s.ChildActivationEnd=12]="ChildActivationEnd",s[s.ActivationStart=13]="ActivationStart",s[s.ActivationEnd=14]="ActivationEnd",s[s.Scroll=15]="Scroll",s[s.NavigationSkipped=16]="NavigationSkipped",s}(Xe||{}),ft=class{constructor(e,r){this.id=e,this.url=r}},vi=class extends ft{constructor(e,r,t="imperative",i=null){super(e,r),this.type=Xe.NavigationStart,this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},wt=class extends ft{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=Xe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},lt=function(s){return s[s.Redirect=0]="Redirect",s[s.SupersededByNewNavigation=1]="SupersededByNewNavigation",s[s.NoDataFromResolver=2]="NoDataFromResolver",s[s.GuardRejected=3]="GuardRejected",s}(lt||{}),Gs=function(s){return s[s.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",s[s.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",s}(Gs||{}),Pt=class extends ft{constructor(e,r,t,i){super(e,r),this.reason=t,this.code=i,this.type=Xe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vt=class extends ft{constructor(e,r,t,i){super(e,r),this.reason=t,this.code=i,this.type=Xe.NavigationSkipped}},Xi=class extends ft{constructor(e,r,t,i){super(e,r),this.error=t,this.target=i,this.type=Xe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hs=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},un=class extends ft{constructor(e,r,t,i,n){super(e,r),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=n,this.type=Xe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class{constructor(e){this.route=e,this.type=Xe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mn=class{constructor(e){this.route=e,this.type=Xe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yn=class{constructor(e){this.snapshot=e,this.type=Xe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{constructor(e){this.snapshot=e,this.type=Xe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bn=class{constructor(e){this.snapshot=e,this.type=Xe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xn=class{constructor(e){this.snapshot=e,this.type=Xe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vs=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=Xe.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Yi=class{},bi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var wn=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new is(this.injector),this.attachRef=null}},is=(()=>{let e=class e{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){let n=this.getOrCreateContext(t);n.outlet=i,this.contexts.set(t,n)}onChildOutletDestroyed(t){let i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new wn(this.parentInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(i){return new(i||e)(De(zt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Xs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Dn(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=Dn(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Cn(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Cn(e,this._root).map(r=>r.value)}};function Dn(s,e){if(s===e.value)return e;for(let r of e.children){let t=Dn(s,r);if(t)return t}return null}function Cn(s,e){if(s===e.value)return[e];for(let r of e.children){let t=Cn(s,r);if(t.length)return t.unshift(e),t}return[]}var at=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ui(s){let e={};return s&&s.children.forEach(r=>e[r.value.outlet]=r),e}var Ys=class extends Xs{constructor(e,r){super(e),this.snapshot=r,Pn(this,e)}toString(){return this.snapshot.toString()}};function Ya(s){let e=Bc(s),r=new tt([new si("",{})]),t=new tt({}),i=new tt({}),n=new tt({}),h=new tt(""),v=new Ke(r,t,n,h,i,Ae,s,e.root);return v.snapshot=e.root,new Ys(new at(v,[]),e)}function Bc(s){let e={},r={},t={},i="",n=new fi([],e,t,i,r,Ae,s,null,{});return new Zs("",new at(n,[]))}var Ke=class{constructor(e,r,t,i,n,h,v,q){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=n,this.outlet=h,this.component=v,this._futureSnapshot=q,this.title=this.dataSubject?.pipe(ke(B=>B[es]))??Se(void 0),this.url=e,this.params=r,this.queryParams=t,this.fragment=i,this.data=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ke(e=>mi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ke(e=>mi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qs(s,e,r="emptyOnly"){let t,{routeConfig:i}=s;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:we(we({},e.params),s.params),data:we(we({},e.data),s.data),resolve:we(we(we(we({},s.data),e.data),i?.data),s._resolvedData)}:t={params:we({},s.params),data:we({},s.data),resolve:we(we({},s.data),s._resolvedData??{})},i&&Za(i)&&(t.resolve[es]=i.title),t}var fi=class{get title(){return this.data?.[es]}constructor(e,r,t,i,n,h,v,q,B){this.url=e,this.params=r,this.queryParams=t,this.fragment=i,this.data=n,this.outlet=h,this.component=v,this.routeConfig=q,this._resolve=B}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=mi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=mi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Zs=class extends Xs{constructor(e,r){super(r),this.url=e,Pn(this,r)}toString(){return qa(this._root)}};function Pn(s,e){e.value._routerState=s,e.children.forEach(r=>Pn(s,r))}function qa(s){let e=s.children.length>0?` { ${s.children.map(qa).join(", ")} } `:"";return`${s.value}${e}`}function rn(s){if(s.snapshot){let e=s.snapshot,r=s._futureSnapshot;s.snapshot=r,xt(e.queryParams,r.queryParams)||s.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&s.fragmentSubject.next(r.fragment),xt(e.params,r.params)||s.paramsSubject.next(r.params),pc(e.url,r.url)||s.urlSubject.next(r.url),xt(e.data,r.data)||s.dataSubject.next(r.data)}else s.snapshot=s._futureSnapshot,s.dataSubject.next(s._futureSnapshot.data)}function Sn(s,e){let r=xt(s.params,e.params)&&yc(s.url,e.url),t=!s.parent!=!e.parent;return r&&!t&&(!s.parent||Sn(s.parent,e.parent))}function Za(s){return typeof s.title=="string"||s.title===null}var zc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ae,this.activateEvents=new yt,this.deactivateEvents=new yt,this.attachEvents=new yt,this.detachEvents=new yt,this.parentContexts=xe(is),this.location=xe(ki),this.changeDetector=xe(ti),this.inputBinder=xe(er,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:i,previousValue:n}=t.name;if(i)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ne(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ne(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ne(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Ne(4013,!1);this._activatedRoute=t;let n=this.location,v=t.snapshot.component,q=this.parentContexts.getOrCreateContext(this.name).children,B=new An(t,q,n.injector);this.activated=n.createComponent(v,{index:n.length,injector:B,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Et({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]});let s=e;return s})(),An=class s{__ngOutletInjector(e){return new s(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Ke?this.route:e===is?this.childContexts:this.parent.get(e,r)}},er=new Te(""),Ta=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:i}=t,n=hs([i.queryParams,i.params,i.data]).pipe(nt(([h,v,q],B)=>(q=we(we(we({},h),v),q),B===0?Se(q):Promise.resolve(q)))).subscribe(h=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(t);return}let v=Bo(i.component);if(!v){this.unsubscribeFromRouteData(t);return}for(let{templateName:q}of v.inputs)t.activatedComponentRef.setInput(q,h[q])});this.outletDataSubscriptions.set(t,n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function Uc(s,e,r){let t=qi(s,e._root,r?r._root:void 0);return new Ys(t,e)}function qi(s,e,r){if(r&&s.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let i=_c(s,e,r);return new at(t,i)}else{if(s.shouldAttach(e.value)){let n=s.retrieve(e.value);if(n!==null){let h=n.route;return h.value._futureSnapshot=e.value,h.children=e.children.map(v=>qi(s,v)),h}}let t=$c(e.value),i=e.children.map(n=>qi(s,n));return new at(t,i)}}function _c(s,e,r){return e.children.map(t=>{for(let i of r.children)if(s.shouldReuseRoute(t.value,i.value.snapshot))return qi(s,t,i);return qi(s,t)})}function $c(s){return new Ke(new tt(s.url),new tt(s.params),new tt(s.queryParams),new tt(s.fragment),new tt(s.data),s.outlet,s.component,s)}var Zi=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Ka="ngNavigationCancelingError";function Ks(s,e){let{redirectTo:r,navigationBehaviorOptions:t}=Hi(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Ja(!1,lt.Redirect);return i.url=r,i.navigationBehaviorOptions=t,i}function Ja(s,e){let r=new Error(`NavigationCancelingError: ${s||""}`);return r[Ka]=!0,r.cancellationCode=e,r}function Wc(s){return Qa(s)&&Hi(s.url)}function Qa(s){return!!s&&s[Ka]}var Gc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oo({type:e,selectors:[["ng-component"]],standalone:!0,features:[Oo],decls:1,vars:0,template:function(i,n){i&1&&ko(0,"router-outlet")},dependencies:[zc],encapsulation:2});let s=e;return s})();function Hc(s,e){return s.providers&&!s._injector&&(s._injector=Dr(s.providers,e,`Route: ${s.path}`)),s._injector??e}function In(s){let e=s.children&&s.children.map(In),r=e?Ue(we({},s),{children:e}):we({},s);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Ae&&(r.component=Gc),r}function mt(s){return s.outlet||Ae}function Vc(s,e){let r=s.filter(t=>mt(t)===e);return r.push(...s.filter(t=>mt(t)!==e)),r}function ss(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let e=s.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Xc=(s,e,r,t)=>ke(i=>(new En(e,i.targetRouterState,i.currentRouterState,r,t).activate(s),i)),En=class{constructor(e,r,t,i,n){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=n}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),rn(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let i=ui(r);e.children.forEach(n=>{let h=n.value.outlet;this.deactivateRoutes(n,i[h],t),delete i[h]}),Object.values(i).forEach(n=>{this.deactivateRouteAndItsChildren(n,t)})}deactivateRoutes(e,r,t){let i=e.value,n=r?r.value:null;if(i===n)if(i.component){let h=t.getContext(i.outlet);h&&this.deactivateChildRoutes(e,r,h.children)}else this.deactivateChildRoutes(e,r,t);else n&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),i=t&&e.value.component?t.children:r,n=ui(e);for(let h of Object.values(n))this.deactivateRouteAndItsChildren(h,i);if(t&&t.outlet){let h=t.outlet.detach(),v=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:v})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),i=t&&e.value.component?t.children:r,n=ui(e);for(let h of Object.values(n))this.deactivateRouteAndItsChildren(h,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,r,t){let i=ui(r);e.children.forEach(n=>{this.activateRoutes(n,i[n.value.outlet],t),this.forwardEvent(new xn(n.value.snapshot))}),e.children.length&&this.forwardEvent(new vn(e.value.snapshot))}activateRoutes(e,r,t){let i=e.value,n=r?r.value:null;if(rn(i),i===n)if(i.component){let h=t.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,h.children)}else this.activateChildRoutes(e,r,t);else if(i.component){let h=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let v=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),h.children.onOutletReAttached(v.contexts),h.attachRef=v.componentRef,h.route=v.route.value,h.outlet&&h.outlet.attach(v.componentRef,v.route.value),rn(v.route.value),this.activateChildRoutes(e,null,h.children)}else{let v=ss(i.snapshot);h.attachRef=null,h.route=i,h.injector=v??h.injector,h.outlet&&h.outlet.activateWith(i,h.injector),this.activateChildRoutes(e,null,h.children)}}else this.activateChildRoutes(e,null,t)}},Js=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},gi=class{constructor(e,r){this.component=e,this.route=r}};function Yc(s,e,r){let t=s._root,i=e?e._root:null;return Ui(t,i,r,[t.value])}function qc(s){let e=s.routeConfig?s.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:s,guards:e}}function wi(s,e){let r=Symbol(),t=e.get(s,r);return t===r?typeof s=="function"&&!ro(s)?s:e.get(s):t}function Ui(s,e,r,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let n=ui(e);return s.children.forEach(h=>{Zc(h,n[h.value.outlet],r,t.concat([h.value]),i),delete n[h.value.outlet]}),Object.entries(n).forEach(([h,v])=>Gi(v,r.getContext(h),i)),i}function Zc(s,e,r,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let n=s.value,h=e?e.value:null,v=r?r.getContext(s.value.outlet):null;if(h&&n.routeConfig===h.routeConfig){let q=Kc(h,n,n.routeConfig.runGuardsAndResolvers);q?i.canActivateChecks.push(new Js(t)):(n.data=h.data,n._resolvedData=h._resolvedData),n.component?Ui(s,e,v?v.children:null,t,i):Ui(s,e,r,t,i),q&&v&&v.outlet&&v.outlet.isActivated&&i.canDeactivateChecks.push(new gi(v.outlet.component,h))}else h&&Gi(e,v,i),i.canActivateChecks.push(new Js(t)),n.component?Ui(s,null,v?v.children:null,t,i):Ui(s,null,r,t,i);return i}function Kc(s,e,r){if(typeof r=="function")return r(s,e);switch(r){case"pathParamsChange":return!ri(s.url,e.url);case"pathParamsOrQueryParamsChange":return!ri(s.url,e.url)||!xt(s.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sn(s,e)||!xt(s.queryParams,e.queryParams);case"paramsChange":default:return!Sn(s,e)}}function Gi(s,e,r){let t=ui(s),i=s.value;Object.entries(t).forEach(([n,h])=>{i.component?e?Gi(h,e.children.getContext(n),r):Gi(h,null,r):Gi(h,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new gi(e.outlet.component,i)):r.canDeactivateChecks.push(new gi(null,i)):r.canDeactivateChecks.push(new gi(null,i))}function rs(s){return typeof s=="function"}function Jc(s){return typeof s=="boolean"}function Qc(s){return s&&rs(s.canLoad)}function ed(s){return s&&rs(s.canActivate)}function td(s){return s&&rs(s.canActivateChild)}function id(s){return s&&rs(s.canDeactivate)}function sd(s){return s&&rs(s.canMatch)}function el(s){return s instanceof Kn||s?.name==="EmptyError"}var Bs=Symbol("INITIAL_VALUE");function xi(){return nt(s=>hs(s.map(e=>e.pipe(oi(1),io(Bs)))).pipe(ke(e=>{for(let r of e)if(r!==!0){if(r===Bs)return Bs;if(r===!1||rd(r))return r}return!0}),St(e=>e!==Bs),oi(1)))}function rd(s){return Hi(s)||s instanceof Zi}function nd(s,e){return rt(r=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:n,canDeactivateChecks:h}}=r;return h.length===0&&n.length===0?Se(Ue(we({},r),{guardsResult:!0})):od(h,t,i,s).pipe(rt(v=>v&&Jc(v)?ad(t,n,s,e):Se(v)),ke(v=>Ue(we({},r),{guardsResult:v})))})}function od(s,e,r,t){return Qe(s).pipe(rt(i=>ud(i.component,i.route,r,e,t)),jt(i=>i!==!0,!0))}function ad(s,e,r,t){return Qe(e).pipe(Nt(i=>Jn(hd(i.route.parent,t),ld(i.route,t),dd(s,i.path,r),cd(s,i.route,r))),jt(i=>i!==!0,!0))}function ld(s,e){return s!==null&&e&&e(new bn(s)),Se(!0)}function hd(s,e){return s!==null&&e&&e(new yn(s)),Se(!0)}function cd(s,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return Se(!0);let i=t.map(n=>dr(()=>{let h=ss(e)??r,v=wi(n,h),q=ed(v)?v.canActivate(e,s):dt(h,()=>v(e,s));return Xt(q).pipe(jt())}));return Se(i).pipe(xi())}function dd(s,e,r){let t=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(h=>qc(h)).filter(h=>h!==null).map(h=>dr(()=>{let v=h.guards.map(q=>{let B=ss(h.node)??r,Y=wi(q,B),_=td(Y)?Y.canActivateChild(t,s):dt(B,()=>Y(t,s));return Xt(_).pipe(jt())});return Se(v).pipe(xi())}));return Se(n).pipe(xi())}function ud(s,e,r,t,i){let n=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!n||n.length===0)return Se(!0);let h=n.map(v=>{let q=ss(e)??i,B=wi(v,q),Y=id(B)?B.canDeactivate(s,e,r,t):dt(q,()=>B(s,e,r,t));return Xt(Y).pipe(jt())});return Se(h).pipe(xi())}function pd(s,e,r,t){let i=e.canLoad;if(i===void 0||i.length===0)return Se(!0);let n=i.map(h=>{let v=wi(h,s),q=Qc(v)?v.canLoad(e,r):dt(s,()=>v(e,r));return Xt(q)});return Se(n).pipe(xi(),tl(t))}function tl(s){return qn(Ge(e=>{if(typeof e!="boolean")throw Ks(s,e)}),ke(e=>e===!0))}function fd(s,e,r,t){let i=e.canMatch;if(!i||i.length===0)return Se(!0);let n=i.map(h=>{let v=wi(h,s),q=sd(v)?v.canMatch(e,r):dt(s,()=>v(e,r));return Xt(q)});return Se(n).pipe(xi(),tl(t))}var Ki=class{constructor(e){this.segmentGroup=e||null}},Ji=class extends Error{constructor(e){super(),this.urlTree=e}};function di(s){return Si(new Ki(s))}function gd(s){return Si(new Ne(4e3,!1))}function md(s){return Si(Ja(!1,lt.GuardRejected))}var Mn=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],i=r.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return Se(t);if(i.numberOfChildren>1||!i.children[Ae])return gd(`${e.redirectTo}`);i=i.children[Ae]}}applyRedirectCommands(e,r,t,i,n){if(typeof r!="string"){let v=r,{queryParams:q,fragment:B,routeConfig:Y,url:_,outlet:H,params:E,data:N,title:z}=i,k=dt(n,()=>v({params:E,data:N,queryParams:q,fragment:B,routeConfig:Y,url:_,outlet:H,title:z}));if(k instanceof Ht)throw new Ji(k);r=k}let h=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new Ji(h);return h}applyRedirectCreateUrlTree(e,r,t,i){let n=this.createSegmentGroup(e,r.root,t,i);return new Ht(n,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([i,n])=>{if(typeof n=="string"&&n[0]===":"){let v=n.substring(1);t[i]=r[v]}else t[i]=n}),t}createSegmentGroup(e,r,t,i){let n=this.createSegments(e,r.segments,t,i),h={};return Object.entries(r.children).forEach(([v,q])=>{h[v]=this.createSegmentGroup(e,q,t,i)}),new Pe(n,h)}createSegments(e,r,t,i){return r.map(n=>n.path[0]===":"?this.findPosParam(e,n,i):this.findOrReturn(n,t))}findPosParam(e,r,t){let i=t[r.path.substring(1)];if(!i)throw new Ne(4001,!1);return i}findOrReturn(e,r){let t=0;for(let i of r){if(i.path===e.path)return r.splice(t),i;t++}return e}},Tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function yd(s,e,r,t,i){let n=Ln(s,e,r);return n.matched?(t=Hc(e,t),fd(t,e,r,i).pipe(ke(h=>h===!0?n:we({},Tn)))):Se(n)}function Ln(s,e,r){if(e.path==="**")return vd(r);if(e.path==="")return e.pathMatch==="full"&&(s.hasChildren()||r.length>0)?we({},Tn):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||uc)(r,s,e);if(!i)return we({},Tn);let n={};Object.entries(i.posParams??{}).forEach(([v,q])=>{n[v]=q.path});let h=i.consumed.length>0?we(we({},n),i.consumed[i.consumed.length-1].parameters):n;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:h,positionalParamSegments:i.posParams??{}}}function vd(s){return{matched:!0,parameters:s.length>0?Fa(s).parameters:{},consumedSegments:s,remainingSegments:[],positionalParamSegments:{}}}function ka(s,e,r,t){return r.length>0&&wd(s,r,t)?{segmentGroup:new Pe(e,xd(t,new Pe(r,s.children))),slicedSegments:[]}:r.length===0&&Dd(s,r,t)?{segmentGroup:new Pe(s.segments,bd(s,r,t,s.children)),slicedSegments:r}:{segmentGroup:new Pe(s.segments,s.children),slicedSegments:r}}function bd(s,e,r,t){let i={};for(let n of r)if(tr(s,e,n)&&!t[mt(n)]){let h=new Pe([],{});i[mt(n)]=h}return we(we({},t),i)}function xd(s,e){let r={};r[Ae]=e;for(let t of s)if(t.path===""&&mt(t)!==Ae){let i=new Pe([],{});r[mt(t)]=i}return r}function wd(s,e,r){return r.some(t=>tr(s,e,t)&&mt(t)!==Ae)}function Dd(s,e,r){return r.some(t=>tr(s,e,t))}function tr(s,e,r){return(s.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function Cd(s,e,r,t){return mt(s)!==t&&(t===Ae||!tr(e,r,s))?!1:Ln(e,s,r).matched}function Sd(s,e,r){return e.length===0&&!s.children[r]}var kn=class{};function Ad(s,e,r,t,i,n,h="emptyOnly"){return new Rn(s,e,r,t,i,h,n).recognize()}var Ed=31,Rn=class{constructor(e,r,t,i,n,h,v){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=i,this.urlTree=n,this.paramsInheritanceStrategy=h,this.urlSerializer=v,this.applyRedirects=new Mn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Ne(4002,`'${e.segmentGroup}'`)}recognize(){let e=ka(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ke(({children:r,rootSnapshot:t})=>{let i=new at(t,r),n=new Zs("",i),h=Oc(t,[],this.urlTree.queryParams,this.urlTree.fragment);return h.queryParams=this.urlTree.queryParams,n.url=this.urlSerializer.serialize(h),{state:n,tree:h}}))}match(e){let r=new fi([],Object.freeze({}),Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ae,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ae,r).pipe(ke(t=>({children:t,rootSnapshot:r})),At(t=>{if(t instanceof Ji)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Ki?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,i,n){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,n):this.processSegment(e,r,t,t.segments,i,!0,n).pipe(ke(h=>h instanceof at?[h]:[]))}processChildren(e,r,t,i){let n=[];for(let h of Object.keys(t.children))h==="primary"?n.unshift(h):n.push(h);return Qe(n).pipe(Nt(h=>{let v=t.children[h],q=Vc(r,h);return this.processSegmentGroup(e,q,v,h,i)}),to((h,v)=>(h.push(...v),h)),ur(null),eo(),rt(h=>{if(h===null)return di(t);let v=il(h);return Md(v),Se(v)}))}processSegment(e,r,t,i,n,h,v){return Qe(r).pipe(Nt(q=>this.processSegmentAgainstRoute(q._injector??e,r,q,t,i,n,h,v).pipe(At(B=>{if(B instanceof Ki)return Se(null);throw B}))),jt(q=>!!q),At(q=>{if(el(q))return Sd(t,i,n)?Se(new kn):di(t);throw q}))}processSegmentAgainstRoute(e,r,t,i,n,h,v,q){return Cd(t,i,n,h)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,t,n,h,q):this.allowRedirects&&v?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,t,n,h,q):di(i):di(i)}expandSegmentAgainstRouteUsingRedirect(e,r,t,i,n,h,v){let{matched:q,parameters:B,consumedSegments:Y,positionalParamSegments:_,remainingSegments:H}=Ln(r,i,n);if(!q)return di(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ed&&(this.allowRedirects=!1));let E=new fi(n,B,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Ra(i),mt(i),i.component??i._loadedComponent??null,i,Oa(i)),N=qs(E,v,this.paramsInheritanceStrategy);E.params=Object.freeze(N.params),E.data=Object.freeze(N.data);let z=this.applyRedirects.applyRedirectCommands(Y,i.redirectTo,_,E,e);return this.applyRedirects.lineralizeSegments(i,z).pipe(rt(k=>this.processSegment(e,t,r,k.concat(H),h,!1,v)))}matchSegmentAgainstRoute(e,r,t,i,n,h){let v=yd(r,t,i,e,this.urlSerializer);return t.path==="**"&&(r.children={}),v.pipe(nt(q=>q.matched?(e=t._injector??e,this.getChildConfig(e,t,i).pipe(nt(({routes:B})=>{let Y=t._loadedInjector??e,{parameters:_,consumedSegments:H,remainingSegments:E}=q,N=new fi(H,_,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Ra(t),mt(t),t.component??t._loadedComponent??null,t,Oa(t)),z=qs(N,h,this.paramsInheritanceStrategy);N.params=Object.freeze(z.params),N.data=Object.freeze(z.data);let{segmentGroup:k,slicedSegments:x}=ka(r,H,E,B);if(x.length===0&&k.hasChildren())return this.processChildren(Y,B,k,N).pipe(ke(L=>new at(N,L)));if(B.length===0&&x.length===0)return Se(new at(N,[]));let P=mt(t)===n;return this.processSegment(Y,B,k,x,P?Ae:n,!0,N).pipe(ke(L=>new at(N,L instanceof at?[L]:[])))}))):di(r)))}getChildConfig(e,r,t){return r.children?Se({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?Se({routes:r._loadedRoutes,injector:r._loadedInjector}):pd(e,r,t,this.urlSerializer).pipe(rt(i=>i?this.configLoader.loadChildren(e,r).pipe(Ge(n=>{r._loadedRoutes=n.routes,r._loadedInjector=n.injector})):md(r))):Se({routes:[],injector:e})}};function Md(s){s.sort((e,r)=>e.value.outlet===Ae?-1:r.value.outlet===Ae?1:e.value.outlet.localeCompare(r.value.outlet))}function Td(s){let e=s.value.routeConfig;return e&&e.path===""}function il(s){let e=[],r=new Set;for(let t of s){if(!Td(t)){e.push(t);continue}let i=e.find(n=>t.value.routeConfig===n.value.routeConfig);i!==void 0?(i.children.push(...t.children),r.add(i)):e.push(t)}for(let t of r){let i=il(t.children);e.push(new at(t.value,i))}return e.filter(t=>!r.has(t))}function Ra(s){return s.data||{}}function Oa(s){return s.resolve||{}}function kd(s,e,r,t,i,n){return rt(h=>Ad(s,e,r,t,h.extractedUrl,i,n).pipe(ke(({state:v,tree:q})=>Ue(we({},h),{targetSnapshot:v,urlAfterRedirects:q}))))}function Rd(s,e){return rt(r=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=r;if(!i.length)return Se(r);let n=new Set(i.map(q=>q.route)),h=new Set;for(let q of n)if(!h.has(q))for(let B of sl(q))h.add(B);let v=0;return Qe(h).pipe(Nt(q=>n.has(q)?Od(q,t,s,e):(q.data=qs(q,q.parent,s).resolve,Se(void 0))),Ge(()=>v++),pr(1),rt(q=>v===h.size?Se(r):Ft))})}function sl(s){let e=s.children.map(r=>sl(r)).flat();return[s,...e]}function Od(s,e,r,t){let i=s.routeConfig,n=s._resolve;return i?.title!==void 0&&!Za(i)&&(n[es]=i.title),Pd(n,s,e,t).pipe(ke(h=>(s._resolvedData=h,s.data=qs(s,s.parent,r).resolve,null)))}function Pd(s,e,r,t){let i=an(s);if(i.length===0)return Se({});let n={};return Qe(i).pipe(rt(h=>Id(s[h],e,r,t).pipe(jt(),Ge(v=>{if(v instanceof Zi)throw Ks(new yi,v);n[h]=v}))),pr(1),Qn(n),At(h=>el(h)?Ft:Si(h)))}function Id(s,e,r,t){let i=ss(e)??t,n=wi(s,i),h=n.resolve?n.resolve(e,r):dt(i,()=>n(e,r));return Xt(h)}function nn(s){return nt(e=>{let r=s(e);return r?Qe(r).pipe(ke(()=>e)):Se(e)})}var rl=(()=>{let e=class e{buildTitle(t){let i,n=t.root;for(;n!==void 0;)i=this.getResolvedTitleForRoute(n)??i,n=n.children.find(h=>h.outlet===Ae);return i}getResolvedTitleForRoute(t){return t.data[es]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Ld),providedIn:"root"});let s=e;return s})(),Ld=(()=>{let e=class e extends rl{constructor(t){super(),this.title=t}updateTitle(t){let i=this.buildTitle(t);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(De(Ca))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ns=new Te("",{providedIn:"root",factory:()=>({})}),Qi=new Te(""),Fn=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=xe(bs)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Se(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=Xt(t.loadComponent()).pipe(ke(nl),Ge(h=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=h}),ai(()=>{this.componentLoaders.delete(t)})),n=new hr(i,()=>new Lt).pipe(lr());return this.componentLoaders.set(t,n),n}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Se({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let h=Fd(i,this.compiler,t,this.onLoadEndListener).pipe(ai(()=>{this.childrenLoaders.delete(i)})),v=new hr(h,()=>new Lt).pipe(lr());return this.childrenLoaders.set(i,v),v}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Fd(s,e,r,t){return Xt(s.loadChildren()).pipe(ke(nl),rt(i=>i instanceof Ao||Array.isArray(i)?Se(i):Qe(e.compileModuleAsync(i))),ke(i=>{t&&t(s);let n,h,v=!1;return Array.isArray(i)?(h=i,v=!0):(n=i.create(r).injector,h=n.get(Qi,[],{optional:!0,self:!0}).flat()),{routes:h.map(In),injector:n}}))}function Nd(s){return s&&typeof s=="object"&&"default"in s}function nl(s){return Nd(s)?s.default:s}var Nn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(jd),providedIn:"root"});let s=e;return s})(),jd=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ol=new Te(""),al=new Te("");function Bd(s,e,r){let t=s.get(al),i=s.get(Ve);return s.get(it).runOutsideAngular(()=>{if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(B=>setTimeout(B));let n,h=new Promise(B=>{n=B}),v=i.startViewTransition(()=>(n(),zd(s))),{onViewTransitionCreated:q}=t;return q&&dt(s,()=>q({transition:v,from:e,to:r})),h})}function zd(s){return new Promise(e=>{wr(()=>setTimeout(e),{injector:s,phase:Co.Read})})}var Ud=new Te(""),jn=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Lt,this.transitionAbortSubject=new Lt,this.configLoader=xe(Fn),this.environmentInjector=xe(zt),this.urlSerializer=xe(ts),this.rootContexts=xe(is),this.location=xe(ci),this.inputBindingEnabled=xe(er,{optional:!0})!==null,this.titleStrategy=xe(rl),this.options=xe(ns,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=xe(Nn),this.createViewTransition=xe(ol,{optional:!0}),this.navigationErrorHandler=xe(Ud,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Se(void 0),this.rootComponentType=null;let t=n=>this.events.next(new gn(n)),i=n=>this.events.next(new mn(n));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let i=++this.navigationId;this.transitions?.next(Ue(we(we({},this.transitions.value),t),{id:i}))}setupNavigations(t,i,n){return this.transitions=new tt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Wi,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(St(h=>h.id!==0),ke(h=>Ue(we({},h),{extractedUrl:this.urlHandlingStrategy.extract(h.rawUrl)})),nt(h=>{let v=!1,q=!1;return Se(h).pipe(nt(B=>{if(this.navigationId>h.id)return this.cancelNavigationTransition(h,"",lt.SupersededByNewNavigation),Ft;this.currentTransition=h,this.currentNavigation={id:B.id,initialUrl:B.rawUrl,extractedUrl:B.extractedUrl,trigger:B.source,extras:B.extras,previousNavigation:this.lastSuccessfulNavigation?Ue(we({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let Y=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=B.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!Y&&_!=="reload"){let H="";return this.events.next(new Vt(B.id,this.urlSerializer.serialize(B.rawUrl),H,Gs.IgnoredSameUrlNavigation)),B.resolve(!1),Ft}if(this.urlHandlingStrategy.shouldProcessUrl(B.rawUrl))return Se(B).pipe(nt(H=>{let E=this.transitions?.getValue();return this.events.next(new vi(H.id,this.urlSerializer.serialize(H.extractedUrl),H.source,H.restoredState)),E!==this.transitions?.getValue()?Ft:Promise.resolve(H)}),kd(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Ge(H=>{h.targetSnapshot=H.targetSnapshot,h.urlAfterRedirects=H.urlAfterRedirects,this.currentNavigation=Ue(we({},this.currentNavigation),{finalUrl:H.urlAfterRedirects});let E=new Hs(H.id,this.urlSerializer.serialize(H.extractedUrl),this.urlSerializer.serialize(H.urlAfterRedirects),H.targetSnapshot);this.events.next(E)}));if(Y&&this.urlHandlingStrategy.shouldProcessUrl(B.currentRawUrl)){let{id:H,extractedUrl:E,source:N,restoredState:z,extras:k}=B,x=new vi(H,this.urlSerializer.serialize(E),N,z);this.events.next(x);let P=Ya(this.rootComponentType).snapshot;return this.currentTransition=h=Ue(we({},B),{targetSnapshot:P,urlAfterRedirects:E,extras:Ue(we({},k),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=E,Se(h)}else{let H="";return this.events.next(new Vt(B.id,this.urlSerializer.serialize(B.extractedUrl),H,Gs.IgnoredByUrlHandlingStrategy)),B.resolve(!1),Ft}}),Ge(B=>{let Y=new dn(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects),B.targetSnapshot);this.events.next(Y)}),ke(B=>(this.currentTransition=h=Ue(we({},B),{guards:Yc(B.targetSnapshot,B.currentSnapshot,this.rootContexts)}),h)),nd(this.environmentInjector,B=>this.events.next(B)),Ge(B=>{if(h.guardsResult=B.guardsResult,B.guardsResult&&typeof B.guardsResult!="boolean")throw Ks(this.urlSerializer,B.guardsResult);let Y=new un(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects),B.targetSnapshot,!!B.guardsResult);this.events.next(Y)}),St(B=>B.guardsResult?!0:(this.cancelNavigationTransition(B,"",lt.GuardRejected),!1)),nn(B=>{if(B.guards.canActivateChecks.length)return Se(B).pipe(Ge(Y=>{let _=new pn(Y.id,this.urlSerializer.serialize(Y.extractedUrl),this.urlSerializer.serialize(Y.urlAfterRedirects),Y.targetSnapshot);this.events.next(_)}),nt(Y=>{let _=!1;return Se(Y).pipe(Rd(this.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>_=!0,complete:()=>{_||this.cancelNavigationTransition(Y,"",lt.NoDataFromResolver)}}))}),Ge(Y=>{let _=new fn(Y.id,this.urlSerializer.serialize(Y.extractedUrl),this.urlSerializer.serialize(Y.urlAfterRedirects),Y.targetSnapshot);this.events.next(_)}))}),nn(B=>{let Y=_=>{let H=[];_.routeConfig?.loadComponent&&!_.routeConfig._loadedComponent&&H.push(this.configLoader.loadComponent(_.routeConfig).pipe(Ge(E=>{_.component=E}),ke(()=>{})));for(let E of _.children)H.push(...Y(E));return H};return hs(Y(B.targetSnapshot.root)).pipe(ur(null),oi(1))}),nn(()=>this.afterPreactivation()),nt(()=>{let{currentSnapshot:B,targetSnapshot:Y}=h,_=this.createViewTransition?.(this.environmentInjector,B.root,Y.root);return _?Qe(_).pipe(ke(()=>h)):Se(h)}),ke(B=>{let Y=Uc(t.routeReuseStrategy,B.targetSnapshot,B.currentRouterState);return this.currentTransition=h=Ue(we({},B),{targetRouterState:Y}),this.currentNavigation.targetRouterState=Y,h}),Ge(()=>{this.events.next(new Yi)}),Xc(this.rootContexts,t.routeReuseStrategy,B=>this.events.next(B),this.inputBindingEnabled),oi(1),Ge({next:B=>{v=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wt(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects))),this.titleStrategy?.updateTitle(B.targetRouterState.snapshot),B.resolve(!0)},complete:()=>{v=!0}}),so(this.transitionAbortSubject.pipe(Ge(B=>{throw B}))),ai(()=>{!v&&!q&&this.cancelNavigationTransition(h,"",lt.SupersededByNewNavigation),this.currentTransition?.id===h.id&&(this.currentNavigation=null,this.currentTransition=null)}),At(B=>{if(q=!0,Qa(B))this.events.next(new Pt(h.id,this.urlSerializer.serialize(h.extractedUrl),B.message,B.cancellationCode)),Wc(B)?this.events.next(new bi(B.url,B.navigationBehaviorOptions)):h.resolve(!1);else{let Y=new Xi(h.id,this.urlSerializer.serialize(h.extractedUrl),B,h.targetSnapshot??void 0);try{let _=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(Y));if(_ instanceof Zi){let{message:H,cancellationCode:E}=Ks(this.urlSerializer,_);this.events.next(new Pt(h.id,this.urlSerializer.serialize(h.extractedUrl),H,E)),this.events.next(new bi(_.redirectTo,_.navigationBehaviorOptions))}else{this.events.next(Y);let H=t.errorHandler(B);h.resolve(!!H)}}catch(_){this.options.resolveNavigationPromiseOnError?h.resolve(!1):h.reject(_)}}return Ft}))}))}cancelNavigationTransition(t,i,n){let h=new Pt(t.id,this.urlSerializer.serialize(t.extractedUrl),i,n);this.events.next(h),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function _d(s){return s!==Wi}var $d=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Wd),providedIn:"root"});let s=e;return s})(),On=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Wd=(()=>{let e=class e extends On{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=mr(e)))(n||e)}})(),e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ll=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Gd),providedIn:"root"});let s=e;return s})(),Gd=(()=>{let e=class e extends ll{constructor(){super(...arguments),this.location=xe(ci),this.urlSerializer=xe(ts),this.options=xe(ns,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=xe(Nn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ht,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ya(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{i.type==="popstate"&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof vi)this.stateMemento=this.createStateMemento();else if(t instanceof Vt)this.rawUrlTree=i.initialUrl;else if(t instanceof Hs){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(n,i)}}else t instanceof Yi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):t instanceof Pt&&(t.code===lt.GuardRejected||t.code===lt.NoDataFromResolver)?this.restoreHistory(i):t instanceof Xi?this.restoreHistory(i,!0):t instanceof wt&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){let n=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(n)||i.extras.replaceUrl){let h=this.browserPageId,v=we(we({},i.extras.state),this.generateNgRouterState(i.id,h));this.location.replaceState(n,"",v)}else{let h=we(we({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(n,"",h)}}restoreHistory(t,i=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,h=this.currentPageId-n;h!==0?this.location.historyGo(h):this.currentUrlTree===t.finalUrl&&h===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=mr(e)))(n||e)}})(),e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),_i=function(s){return s[s.COMPLETE=0]="COMPLETE",s[s.FAILED=1]="FAILED",s[s.REDIRECTING=2]="REDIRECTING",s}(_i||{});function hl(s,e){s.events.pipe(St(r=>r instanceof wt||r instanceof Pt||r instanceof Xi||r instanceof Vt),ke(r=>r instanceof wt||r instanceof Vt?_i.COMPLETE:(r instanceof Pt?r.code===lt.Redirect||r.code===lt.SupersededByNewNavigation:!1)?_i.REDIRECTING:_i.FAILED),St(r=>r!==_i.REDIRECTING),oi(1)).subscribe(()=>{e()})}function Hd(s){throw s}var Vd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ht=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=xe(ps),this.stateManager=xe(ll),this.options=xe(ns,{optional:!0})||{},this.pendingTasks=xe(cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=xe(jn),this.urlSerializer=xe(ts),this.location=xe(ci),this.urlHandlingStrategy=xe(Nn),this._events=new Lt,this.errorHandler=this.options.errorHandler||Hd,this.navigated=!1,this.routeReuseStrategy=xe($d),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=xe(Qi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!xe(er,{optional:!0}),this.eventsSubscription=new Yn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(i=>{try{let n=this.navigationTransitions.currentTransition,h=this.navigationTransitions.currentNavigation;if(n!==null&&h!==null){if(this.stateManager.handleRouterEvent(i,h),i instanceof Pt&&i.code!==lt.Redirect&&i.code!==lt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof wt)this.navigated=!0;else if(i instanceof bi){let v=i.navigationBehaviorOptions,q=this.urlHandlingStrategy.merge(i.url,n.currentRawUrl),B=we({info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_d(n.source)},v);this.scheduleNavigation(q,Wi,null,B,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}qd(i)&&this._events.next(i)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Wi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,n){let h={replaceUrl:!0},v=n?.navigationId?n:null;if(n){let B=we({},n);delete B.navigationId,delete B.\u0275routerPageId,Object.keys(B).length!==0&&(h.state=B)}let q=this.parseUrl(t);this.scheduleNavigation(q,i,v,h)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(In),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){let{relativeTo:n,queryParams:h,fragment:v,queryParamsHandling:q,preserveFragment:B}=i,Y=B?this.currentUrlTree.fragment:v,_=null;switch(q){case"merge":_=we(we({},this.currentUrlTree.queryParams),h);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=h||null}_!==null&&(_=this.removeEmptyProps(_));let H;try{let E=n?n.snapshot:this.routerState.snapshot.root;H=Ga(E)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),H=this.currentUrlTree.root}return Ha(H,t,_,Y??null)}navigateByUrl(t,i={skipLocationChange:!1}){let n=Hi(t)?t:this.parseUrl(t),h=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(h,Wi,null,i)}navigate(t,i={skipLocationChange:!1}){return Yd(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,i){let n;if(i===!0?n=we({},Vd):i===!1?n=we({},Xd):n=i,Hi(t))return Sa(this.currentUrlTree,t,n);let h=this.parseUrl(t);return Sa(this.currentUrlTree,h,n)}removeEmptyProps(t){return Object.entries(t).reduce((i,[n,h])=>(h!=null&&(i[n]=h),i),{})}scheduleNavigation(t,i,n,h,v){if(this.disposed)return Promise.resolve(!1);let q,B,Y;v?(q=v.resolve,B=v.reject,Y=v.promise):Y=new Promise((H,E)=>{q=H,B=E});let _=this.pendingTasks.add();return hl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:h,resolve:q,reject:B,promise:Y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Y.catch(H=>Promise.reject(H))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Yd(s){for(let e=0;e{let e=class e{constructor(t,i,n,h,v,q){this.router=t,this.route=i,this.tabIndexAttribute=n,this.renderer=h,this.el=v,this.locationStrategy=q,this.href=null,this.commands=null,this.onChanges=new Lt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let B=v.nativeElement.tagName?.toLowerCase();this.isAnchorElement=B==="a"||B==="area",this.isAnchorElement?this.subscription=t.events.subscribe(Y=>{Y instanceof wt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,i,n,h,v){let q=this.urlTree;if(q===null||this.isAnchorElement&&(t!==0||i||n||h||v||typeof this.target=="string"&&this.target!="_self"))return!0;let B={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(q,B),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let i=this.href===null?null:xo(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){let n=this.renderer,h=this.el.nativeElement;i!==null?n.setAttribute(h,t,i):n.removeAttribute(h,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(_e(ht),_e(Ke),yr("tabindex"),_e(ei),_e(Kt),_e(bt))},e.\u0275dir=Et({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,n){i&1&&Ro("click",function(v){return n.onClick(v.button,v.ctrlKey,v.shiftKey,v.altKey,v.metaKey)}),i&2&&Mo("target",n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Mt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Mt],replaceUrl:[2,"replaceUrl","replaceUrl",Mt],routerLink:"routerLink"},standalone:!0,features:[us,Zt]});let s=e;return s})();var Qs=class{},$p=(()=>{let e=class e{preload(t,i){return i().pipe(At(()=>Se(null)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Zd=(()=>{let e=class e{constructor(t,i,n,h,v){this.router=t,this.injector=n,this.preloadingStrategy=h,this.loader=v}setUpPreloading(){this.subscription=this.router.events.pipe(St(t=>t instanceof wt),Nt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){let n=[];for(let h of i){h.providers&&!h._injector&&(h._injector=Dr(h.providers,t,`Route: ${h.path}`));let v=h._injector??t,q=h._loadedInjector??v;(h.loadChildren&&!h._loadedRoutes&&h.canLoad===void 0||h.loadComponent&&!h._loadedComponent)&&n.push(this.preloadConfig(v,h)),(h.children||h._loadedRoutes)&&n.push(this.processRoutes(q,h.children??h._loadedRoutes))}return Qe(n).pipe(cr())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let n;i.loadChildren&&i.canLoad===void 0?n=this.loader.loadChildren(t,i):n=Se(null);let h=n.pipe(rt(v=>v===null?Se(void 0):(i._loadedRoutes=v.routes,i._loadedInjector=v.injector,this.processRoutes(v.injector??t,v.routes))));if(i.loadComponent&&!i._loadedComponent){let v=this.loader.loadComponent(i);return Qe([h,v]).pipe(cr())}else return h})}};e.\u0275fac=function(i){return new(i||e)(De(ht),De(bs),De(zt),De(Qs),De(Fn))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),cl=new Te(""),Kd=(()=>{let e=class e{constructor(t,i,n,h,v={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=n,this.zone=h,this.options=v,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=xe(zt),v.scrollPositionRestoration||="disabled",v.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof vi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof wt?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Vt&&t.code===Gs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Vs&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>st(this,null,function*(){yield new Promise(n=>{setTimeout(()=>{n()}),wr(()=>{n()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Vs(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){wo()},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function Wp(s,...e){return Mi([{provide:Qi,multi:!0,useValue:s},[],{provide:Ke,useFactory:dl,deps:[ht]},{provide:ys,multi:!0,useFactory:ul},e.map(r=>r.\u0275providers)])}function dl(s){return s.routerState.root}function Di(s,e){return{\u0275kind:s,\u0275providers:e}}function ul(){let s=xe(Ti);return e=>{let r=s.get(vs);if(e!==r.components[0])return;let t=s.get(ht),i=s.get(pl);s.get(Bn)===1&&t.initialNavigation(),s.get(fl,null,fr.Optional)?.setUpPreloading(),s.get(cl,null,fr.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var pl=new Te("",{factory:()=>new Lt}),Bn=new Te("",{providedIn:"root",factory:()=>1});function Jd(){return Di(2,[{provide:Bn,useValue:0},{provide:Sr,multi:!0,deps:[Ti],useFactory:e=>{let r=e.get(Yo,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let i=e.get(ht),n=e.get(pl);hl(i,()=>{t(!0)}),e.get(jn).afterPreactivation=()=>(t(!0),n.closed?Se(void 0):n),i.initialNavigation()}))}}])}function Qd(){return Di(3,[{provide:Sr,multi:!0,useFactory:()=>{let e=xe(ht);return()=>{e.setUpLocationChangeListener()}}},{provide:Bn,useValue:2}])}var fl=new Te("");function eu(s){return Di(0,[{provide:fl,useExisting:Zd},{provide:Qs,useExisting:s}])}function Gp(){return Di(6,[{provide:bt,useClass:Br}])}function tu(){return Di(8,[Ta,{provide:er,useExisting:Ta}])}function iu(s){let e=[{provide:ol,useValue:Bd},{provide:al,useValue:we({skipNextTransition:!!s?.skipInitialTransition},s)}];return Di(9,e)}var Pa=new Te("ROUTER_FORROOT_GUARD"),su=[ci,{provide:ts,useClass:yi},ht,is,{provide:Ke,useFactory:dl,deps:[ht]},Fn,[]],Hp=(()=>{let e=class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[su,[],{provide:Qi,multi:!0,useValue:t},{provide:Pa,useFactory:au,deps:[[ht,new gr,new no]]},{provide:ns,useValue:i||{}},i?.useHash?nu():ou(),ru(),i?.preloadingStrategy?eu(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?lu(i):[],i?.bindToComponentInputs?tu().\u0275providers:[],i?.enableViewTransitions?iu().\u0275providers:[],hu()]}}static forChild(t){return{ngModule:e,providers:[{provide:Qi,multi:!0,useValue:t}]}}};e.\u0275fac=function(i){return new(i||e)(De(Pa,8))},e.\u0275mod=qt({type:e}),e.\u0275inj=Yt({});let s=e;return s})();function ru(){return{provide:cl,useFactory:()=>{let s=xe(ta),e=xe(it),r=xe(ns),t=xe(jn),i=xe(ts);return r.scrollOffset&&s.setOffset(r.scrollOffset),new Kd(i,t,s,e,r)}}}function nu(){return{provide:bt,useClass:Br}}function ou(){return{provide:bt,useClass:jr}}function au(s){return"guarded"}function lu(s){return[s.initialNavigation==="disabled"?Qd().\u0275providers:[],s.initialNavigation==="enabledBlocking"?Jd().\u0275providers:[]]}var Ia=new Te("");function hu(){return[{provide:Ia,useFactory:ul},{provide:ys,multi:!0,useExisting:Ia}]}var cu={en:"English",de:"German",cs:"Czech",ru:"Russian"},Xp=(()=>{let e=class e{constructor(t){this.i18n=t}transform(t){return this.i18n.get(t)}};e.\u0275fac=function(i){return new(i||e)(_e(zn,16))},e.\u0275pipe=Ei({name:"i18n",type:e,pure:!0,standalone:!0});let s=e;return s})(),zn=(()=>{let e=class e{constructor(){switch(this.current="en",window.navigator.language.toLowerCase()){case"en":this.current="ru";break;case"ru":this.current="ru";break;case"de":this.current="de";break;default:this.current="en";break}}getLanguageName(t){return cu[t]||""}get(t){return!sr[this.current]||!sr[this.current][t]?t:sr[this.current][t]}getLanguages(){return Object.keys(sr)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),sr={en:{settingsImported:"Settings has been imported successfully! Page will be reloaded.",settingsReset:"Settings has been reset successfully! Page will be reloaded.",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",theme:"Theme",showLog:"Show log",server:"Server",saveFilters:"Save filters",exportSettings:"Export settings",importSettings:"Import settings",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"About",cancel:"Cancel",save:"Save",load:"Load",share:"Share",title:"Title",curSettings:"Current settings",newView:"New",language:"Language",dashboard:"Dashboard",folder:"Folder",signin:"Sign in",signout:"Logout",login:"Login",signinOAuth:"OAuth sign in",password:"Password",namespace:"Namespace",loading:"Loading...",search:"Search",accept:"Apply",close:"Close",dismiss:"Reset",home:"Home",zoom:"Zoom",resetSettings:"Reset settings",addToFavorites:"Add to favorites",removeFromFav:"Remove from favorites",refresh:"Refresh",showFolders:"Show folders",showTop:"Show top records",viewAs:"View as",count:"Count",filters:"Filters",setDefault:"Reset to default",dashColumns:"Column count",widgetHeight:"Widget height(px)",widgetHeightDyn:"Default: fit to window",noData:"No data to display",byRows:"Display by rows",by2columns:"Display by two columns",by3columns:"Display by three columns",by4columns:"Display by four columns",by5columns:"Display by five columns",by6columns:"Display by six columns",print:"Print...",fav:"Favorites",options:"Settings",gotoDeepSee:"Iris BI",showLegend:"Toggle legend",showPivot:"Show as pivot table",back:"Back",exclude:"Exclude",all:"All",interval:"Interval",not:"Not",from:"From",to:"To",metroStyle:"Metro UI",bgColor:"Background color",fntColor:"Font color",icon:"Icon",done:"Done",widget:"Widget",showImages:"Show images",dataSource:"Data source",hideTitle:"Hide title",showZero:"Set axis minimum to zero",showValues:"Show values",err:"Error",errWidgetRequest:"Unable to load widget data",errLoginRequired:"Please enter login",errPassRequired:"Please enter password",errUnauth:"Unknown login and password pair. Please try again",errNotFound:"Requested url not fount on server",errTimeout:"Request timeout",errWidgetNotSupported:"Widget is not supported",errNoWidgets:"No widgets received from server",errNoDashboards:"No dashboards in this namespace",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],changeColors:"Change colors",fullscreen:"Toggle fullscreen",showKPI:"Show KPI",openAnalyzer:"Open analyzer",addWidget:"Add widget"},de:{settingsImported:"Einstellungen wurden erfolgreich importiert!",settingsReset:"Einstellungen wurden erfolgreich zur\xFCckgesetzt!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",theme:"Oberfl\xE4chendesign",showLog:"Log",server:"Server",saveFilters:"Filter speichern",exportSettings:"Export Einstellungen",importSettings:"Import Einstellungen",export:"Exportieren",pngImage:"als Bild (*.png)",svgImage:"als Bild (*.svg)",jpgImage:"als Bild (*.jpg)",pdfDoc:"als Dokument (*.pdf)",xlsDoc:"als Dokument (*.xls)",csvDoc:"als Dokument (*.csv)",about:"\xDCber",cancel:"Abbrechen",save:"Speichern",load:"Laden",share:"Teilen",title:"Title",curSettings:"Einstellungen",newView:"Neu",language:"Sprache",dashboard:"Dashboard",folder:"Ordner",signin:"Anmelden",signout:"Abmelden",login:"Benutzer",signinOAuth:"Mit OAuth einloggen",password:"Passwort",namespace:"Namespace",loading:"Laden...",search:"Suche",accept:"Start",close:"Schlie\xDFen",dismiss:"Leeren",home:"Startseite",zoom:"Zoom",resetSettings:"Kacheln einstellungen",addToFavorites:"Zu Favoriten hinzuf\xFCgen",removeFromFav:"Von Favoriten entfernen",refresh:"Neu laden",showFolders:"Ordner anzeigen",showTop:"Top Items",viewAs:"Anzeige wechseln",count:"Anzahl",filters:"Filter",setDefault:"Zur\xFCcksetzen",dashColumns:"Spaltenanzahl",widgetHeight:"Widget H\xF6he(px)",widgetHeightDyn:"Default: fit to window",noData:"Keine Daten vorhanden",byRows:"Anzeige nach Zeilen",by2columns:"Anzeige mit zwei Spalten",by3columns:"Anzeige mit drei Spalten",print:"Drucken...",fav:"Favoriten",options:"Einstellungen",gotoDeepSee:"DeepSee",showLegend:"Legende An/Aus",showPivot:"Als Tabelle anzeigen",back:"Zur\xFCck",exclude:"Au\xDFer",all:"Alle",interval:"Interval",not:"Nicht",from:"Von",to:"Bis",metroStyle:"Metro UI",bgColor:"Farbe Hintergrund",fntColor:"Farbe Schrift",icon:"Icon",done:"Fertig",widget:"Widget",showImages:"Bilder anzeigen",dataSource:"Datenquelle",hideTitle:"Titel verbergen",showZero:"Achsen auf Ursprung",showValues:"Werte anzeigen",err:"Fehler",errWidgetRequest:"Fehler beim Laden der Daten",errLoginRequired:"Bitte anmelden",errPassRequired:"Bitte Passwort eingeben",errUnauth:"Benutzer oder Passwort ung\xFCltig",errNotFound:"URL nicht gefunden",errTimeout:"Zeit\xFCberschreitung der Anfrage",errWidgetNotSupported:"Widget nicht unterst\xFCtzt",errNoWidgets:"Keine Widgets vom Server",errNoDashboards:"Keine Dashboards vorhanden",shortMonths:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],changeColors:"\xC4ndern Sie die Farben",fullscreen:"Vollbild umschalten",showKPI:"KPI anzeigen",openAnalyzer:"Analysator \xF6ffnen"},cs:{settingsImported:"Nastaven\xED bylo \xFAsp\u011B\u0161n\u011B importov\xE1no!",settingsReset:"Nastaven\xED bylo \xFAsp\u011B\u0161n\u011B resetov\xE1no!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",saveFilters:"Ulo\u017Eit filtry",exportSettings:"Export nastaven\xED",importSettings:"Import nastaven\xED",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"O m\u011B",cancel:"Zru\u0161it",save:"Ulo\u017Eit",load:"Na\u010D\xEDst",share:"Sd\xEDlet",title:"Title",curSettings:"Moment\xE1ln\xED nastaven\xED",newView:"Nov\xFD",language:"Jazyky",dashboard:"N\xE1st\u011Bnka",folder:"Slo\u017Eka",signin:"P\u0159ihl\xE1sit",signout:"Odhl\xE1sit",login:"U\u017Eivatelsk\xE9 jm\xE9no",signinOAuth:"OAuth sign in",password:"Heslo",namespace:"Namespace",loading:"Na\u010D\xEDt\xE1m...",search:"Hledat",accept:"P\u0159\xEDjmout",close:"Zav\u0159\xEDt",dismiss:"Zam\xEDtnout",home:"Dom\u016F",zoom:"P\u0159ibl\xED\u017Eit",resetSettings:"Reset Titulk\u016F",addToFavorites:"P\u0159idat do obl\xEDben\xFDch",removeFromFav:"Oddevrat z obl\xEDbench",refresh:"Obnovit",showFolders:"Zobrazit slo\u017Eku",showTop:"Zobrazit prvn\xED polo\u017Eky",viewAs:"Zobrazit jako",count:"Po\u010Det",filters:"Filtry",setDefault:"Obnovit v\xFDchoz\xED",dashColumns:"Po\u010Det slouc\u016F",widgetHeight:"V\xFD\u0161ka widgetu(px)",widgetHeightDyn:"Default: fit to window",noData:"Nejsou data k zobrazen\xED",byRows:"Zobrazit \u0159\xE1dky",by2columns:"Zobrazit podle dvou sloupc\u016F",by3columns:"Zobrazit podle t\u0159\xED sloupc\u016F",print:"Tisk...",fav:"Obl\xEDben\xE9",options:"Nastaven\xED",gotoDeepSee:"DeepSee",showLegend:"Zapnout/Vypnout Legendu",showPivot:"Zobrazit jako kontingen\u010Dn\xED tabulku",back:"Zp\u011Bt",exclude:"Vylou\u010Dit",all:"V\u0161e",interval:"Interval",not:"Not",from:"Od",to:"Do",metroStyle:"Metro UI",bgColor:"Barva pozad\xED",fntColor:"Barva p\xEDsma",icon:"Ikona",done:"Hotovo",widget:"Widget",showImages:"Zobrazit obr\xE1zky",dataSource:"Zdroje dat",hideTitle:"Skr\xFDt titulek",showZero:"Nastavt minimum osy na nulu",showValues:"Zobrazit hodnoty",err:"Error",errWidgetRequest:"Nelze na\u010D\xEDst data widgetu",errLoginRequired:"Pros\xEDm, zadejte p\u0159ihla\u0161ovac\xED jm\xE9no",errPassRequired:"Pros\xEDm zadejte heslo",errUnauth:"Nespr\xE1vn\xE9 u\u017Eivatelsk\xE9 jm\xE9no nebo heslo",errNotFound:"Po\u017Eadovan\xE1 adresa URL nbyla nalezena na serveru",errTimeout:"vypr\u0161el \u010Das Requestu",errWidgetNotSupported:"Widget nen\xED podporov\xE1n",errNoWidgets:"\u017D\xE1dn\xE9 p\u0159ijat\xE9 widgety ze serveru",errNoDashboards:"\u017D\xE1dn\xE9 n\xE1st\u011Bnky v namespace",shortMonths:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],changeColors:"Zm\u011Bnit barvy",fullscreen:"P\u0159epnout na celou obrazovku",showKPI:"Zobrazit KPI",openAnalyzer:"Otev\u0159ete analyz\xE1tor"},ru:{settingsImported:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u044B\u043B\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E!",settingsReset:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u044B\u043B\u0438 \u0441\u0431\u0440\u043E\u0448\u0435\u043D\u044B. \u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u0430.",resetClickFilter:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C click \u0444\u0438\u043B\u044C\u0442\u0440",copyMDX:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C MDX",seriesColor:"\u0426\u0432\u0435\u0442 \u0441\u0435\u0440\u0438\u0439",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",shareDashboard:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0434\u0435\u0448\u0431\u043E\u0440\u0434\u043E\u043C",relatedFilters:"\u0412\u0437\u0430\u0438\u043C\u043E\u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B",disableTilePush:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u044B\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u0442\u0430\u0439\u043B\u043E\u0432",theme:"\u0422\u0435\u043C\u0430",showLog:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0438",server:"\u0421\u0435\u0440\u0432\u0435\u0440",saveFilters:"\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B",exportSettings:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",importSettings:"\u0418\u043C\u043F\u043E\u0440\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",export:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442",pngImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.png)",svgImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.svg)",jpgImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.jpg)",pdfDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.pdf)",xlsDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.xls)",csvDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.csv)",about:"\u041E \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0435",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",load:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",share:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F",title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",curSettings:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",newView:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",language:"\u042F\u0437\u044B\u043A",dashboard:"\u0418\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440\u043D\u0430\u044F \u043F\u0430\u043D\u0435\u043B\u044C",folder:"\u041F\u0430\u043F\u043A\u0430",signin:"\u0412\u0445\u043E\u0434",signout:"\u0412\u044B\u0445\u043E\u0434",login:"\u041B\u043E\u0433\u0438\u043D",signinOAuth:"\u0412\u0445\u043E\u0434 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F OAuth",password:"\u041F\u0430\u0440\u043E\u043B\u044C",namespace:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",search:"\u041F\u043E\u0438\u0441\u043A",accept:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",dismiss:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",home:"\u0414\u043E\u043C\u043E\u0439",zoom:"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",resetSettings:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",addToFavorites:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0435",removeFromFav:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0433\u043E",showFolders:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0438",showTop:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0432\u0435\u0440\u0445\u043D\u0438\u0435",viewAs:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u043A\u0430\u043A",count:"\u041A\u043E\u043B-\u0432\u043E",filters:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",setDefault:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",dashColumns:"\u041A\u043E\u043B\u043E\u043D\u043A\u0438",widgetHeight:"\u0412\u044B\u0441\u043E\u0442\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u043E\u0432(px)",widgetHeightDyn:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u043F\u043E\u0434\u043E\u0433\u043D\u0430\u0442\u044C \u043A \u0432\u044B\u0441\u043E\u0442\u0435 \u043E\u043A\u043D\u0430",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",byRows:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u043F\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u043E",by2columns:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0434\u0432\u0443\u043C\u044F \u043A\u043E\u043B\u043E\u043D\u043A\u0430\u043C\u0438",by3columns:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0442\u0440\u0435\u043C\u044F \u043A\u043E\u043B\u043E\u043D\u043A\u0430\u043C\u0438",print:"\u041F\u0435\u0447\u0430\u0442\u044C...",fav:"\u0418\u0437\u0431\u0440\u0430\u043D\u043E\u0435",options:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",gotoDeepSee:"Iris BI",showLegend:"\u0412\u043A\u043B/\u0432\u044B\u043A\u043B \u043B\u0435\u0433\u0435\u043D\u0434\u0443",showPivot:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u043A \u0442\u0430\u0431\u043B\u0438\u0446\u0443",back:"\u041D\u0430\u0437\u0430\u0434",exclude:"\u0418\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u044C",all:"\u0412\u0441\u0435",not:"\u041D\u0435",interval:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B",from:"\u041E\u0442",to:"\u0414\u043E",metroStyle:"\u0421\u0442\u0438\u043B\u044C Metro",bgColor:"\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",fntColor:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",icon:"\u0417\u043D\u0430\u0447\u043E\u043A",done:"\u0413\u043E\u0442\u043E\u0432\u043E",widget:"\u0412\u0438\u0434\u0436\u0435\u0442",showImages:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438",dataSource:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0434\u0430\u043D\u043D\u044B\u0445",hideTitle:"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",showZero:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C 0 \u043D\u0430 \u043E\u0441\u0438",showValues:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",err:"\u041E\u0448\u0438\u0431\u043A\u0430",errWidgetRequest:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043E \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430",errLoginRequired:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043B\u043E\u0433\u0438\u043D",errPassRequired:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C",errUnauth:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043B\u043E\u0433\u0438\u043D \u0438\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C",errNotFound:"\u0417\u0430\u0434\u0430\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435",errTimeout:"\u041F\u0440\u0435\u0432\u044B\u0448\u0435\u043D \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430",errWidgetNotSupported:"\u0412\u0438\u0434\u0436\u0435\u0442 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F",errNoWidgets:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043F\u0443\u0441\u0442\u043E\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u0438\u0434\u0436\u0435\u0442\u043E\u0432",errNoDashboards:"\u0412 \u0434\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u043D\u0438 \u043D\u0435\u0442 \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u043E\u0432",shortMonths:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],changeColors:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u0430",fullscreen:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",showKPI:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C KPI",openAnalyzer:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C analyzer"}};var gl={name:"deep-see-web",version:"4.0.6",scripts:{ng:"ng",start:"ng serve --proxy-config=proxy.conf.samples-bi.js",covid:"ng serve --proxy-config=proxy.conf.covid.js",temp:"ng serve --proxy-config=proxy.conf.temp.js",ua:"ng serve --proxy-config=proxy.conf.ua.js",got:"ng serve --proxy-config=proxy.conf.got.js",local:"ng serve --proxy-config=proxy.conf.local.js",samples:"ng serve --proxy-config=proxy.conf.samples-bi.js",semen:"ng serve --proxy-config=proxy.conf.semen.js",community:"ng serve --proxy-config=proxy.conf.community.js",analytics:"ng serve --proxy-config=proxy.conf.analytics.js","analytics-pub":"ng serve --proxy-config=proxy.conf.analytics-pub.js",build:"ng build --configuration=production","build:addons":"tsc --project ./src/addons","build:addon-test":"tsc ./src/addons/simple-addon.component.ts --experimentalDecorators true --target es2015 --moduleResolution node --module CommonJS --resolveJsonModule true --outDir ./distAddons",test:"jest",lint:"ng lint",e2e:"ng e2e"},private:!0,dependencies:{"@angular/animations":"^18.0.5","@angular/common":"^18.0.5","@angular/compiler":"^18.0.5","@angular/core":"^18.0.5","@angular/forms":"^18.0.5","@angular/platform-browser":"^18.0.5","@angular/platform-browser-dynamic":"^18.0.5","@angular/router":"^18.0.5","@angular/service-worker":"~18.0.5","@highcharts/map-collection":"^2.0.1","@iplab/ngx-color-picker":"^18.0.1","@ng-select/ng-select":"^13.3.0","air-datepicker":"^3.3.5","angular-gridster2":"^18.0.1","font-awesome":"^4.7.0",highcharts:"^11.4.3","highcharts-angular":"^4.0.0","markdown-it":"^14.1.0",numeral:"^2.0.6",ol:"^7.2.2",rxjs:"~7.8.0",tslib:"^2.3.0","zone.js":"~0.14.4"},devDependencies:{"@angular/build":"^18.0.6","@angular/cli":"~18.0.6","@angular/compiler-cli":"^18.0.5","@types/node":"^12.11.1","@types/ol":"^6.4.2",jest:"^29.7.0",puppeteer:"^22.12.1","ts-node":"~8.3.0",tslint:"~6.1.0",typescript:"~5.4.3",xml2js:"^0.6.2"}};var ni={addons:[],mobile:!1,desktop:!0,const:{themes:[{text:"Default",file:""},{text:"Contrast",file:"contrast.css"}],bgColorClasses:["","cl1","cl2","cl3","cl4","cl5","cl6","cl7","cl8","cl9"],fontColors:["fc0","fc1","fc2","fc3","fc4","fc5"],icons:["","ico-widget-back","ico-widget-folder","ico-widget-1","ico-widget-dashboard","ico-widget-2","ico-widget-3","ico-widget-4"],timeout:6e4,ver:gl.version,emptyWidgetClass:"MDX2JSON.EmptyPortlet".toLowerCase()}};var pu=5e3,ml=(()=>{let e=class e{constructor(){this.errors$=new tt([]),this.lastId=0,this.errors=[]}getIndex(t){return this.errors.indexOf(t)}close(t){let i=this.errors.findIndex(n=>n===t);i!==-1&&(this.errors.splice(i,1),this.emit())}show(t,i=!1,n=pu){this.lastId++;let h={id:this.lastId,message:t,delay:n,isLeft:i};this.errors.push(h),n!==0&&setTimeout(()=>{this.close(h)},n),this.emit()}emit(){this.errors$.next([...this.errors])}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Un=kl(vl());var bl=(()=>{let e=class e{constructor(t){this.route=t}removeExt(t){if(!t)return"";let i=t.split(".");return i.length===1?t:(i.pop(),i.join("."))}replaceFilename(t,i){let n=t.split("/");return n[n.length-1]=i,n.join("/")}isEmbedded(){let t=window.location.hash.replace("?","").replace("#/","").split("&");for(let i=0;i{let e=class e{constructor(t,i,n,h){this.ds=t,this.i18n=i,this.route=n,this.us=h,this.serverSettings={},this.onSettingsChanged=new yt,this.onTilesChanged=new yt,this.settings={},this.configLoaded=!1,this.isLocalStorage=!1,this.checkForLocalStorage()}get storage(){return this.isLocalStorage?localStorage:sessionStorage}checkForLocalStorage(){let t="dws_ls_test";try{localStorage.setItem(t,"test")}catch{return}localStorage.removeItem(t),this.isLocalStorage=!0}saveUserSettings(){let t=JSON.parse(this.storage.getItem("userSettings")||"{}");t[Be.toLocaleLowerCase()]=this.settings,this.storage.setItem("userSettings",JSON.stringify(t))}loadConfig(t){if(this.settings={},this.configLoaded=!0,t)if(t.constructor===Object)this.settings=t;else{let v;try{v=JSON.parse(t)}catch{v={}}this.settings=v}let i=null;this.storage.getItem("userSettings")&&(i=JSON.parse(this.storage.getItem("userSettings")||"{}")[Be.toLocaleLowerCase()]),i&&this.us.mergeRecursive(this.settings,i);let n=this.getAppSettings();if(!ni.mobile&&n.theme){let v=document.getElementById("page-theme");v||(v=document.createElement("link")),v.id="page-theme",v.rel="stylesheet",v.type="text/css",v.href=n.theme,document.head.appendChild(v)}this.i18n.current=n.language||"en";let h=Un.default.getOptions().colors||[];for(let v=1;v<=h.length;v++){let q=document.querySelector(".hc"+v.toString());if(q){let B=window.getComputedStyle(q).getPropertyValue("background-color");B!=="rgba(0, 0, 0, 0)"&&B!=="transparent"&&(h[v-1]=B)}}if(n.theme){let v=n.themeColors?.[n.theme];v&&Un.default.setOptions({xAxis:{labels:{style:{color:v.hcTextColor}}},yAxis:{labels:{style:{color:v.hcTextColor}}},zAxis:{labels:{style:{color:v.hcTextColor}}},chart:{backgroundColor:v.hcBackground},colors:v.hcColors||h,time:{useUTC:!1},lang:{loading:"
",shortMonths:this.i18n.get("shortMonths"),rangeSelectorZoom:this.i18n.get("zoom"),rangeSelectorFrom:this.i18n.get("from"),rangeSelectorTo:this.i18n.get("to"),noData:this.i18n.get("noData")},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}}})}}getAppSettings(){let t=this.route.snapshot.queryParamMap.get("lang");this.settings.app||(this.settings.app={});let i=this.settings.app;t&&(i.language=t),i.themeColors||(i.themeColors={});let n=this.route.snapshot.queryParamMap.get("theme");if(n){let h=ni.const.themes.find(v=>v.text===n);h&&(i.theme=h.file)}return i}setAppSettings(t){this.settings.app=t,this.saveUserSettings()}getWidgetsSettings(t){return this.settings.ns?.widgets?this.settings.ns.widgets[t]||{}:{}}setWidgetsSettings(t,i){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.widgets||(this.settings.ns.widgets={}),this.settings.ns.widgets[i]=JSON.parse(JSON.stringify(t)),this.saveUserSettings()}getTilesSettings(){return this.settings&&this.settings.ns?this.settings.ns.tiles||{}:{}}setTilesSettings(t){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.tiles=JSON.parse(JSON.stringify(t)),this.saveUserSettings()}getAllSettings(){return this.settings}setAllSettings(t){this.settings=t,this.saveUserSettings()}loadServerSettings(t){this.serverSettings=t||{}}};e.\u0275fac=function(i){return new(i||e)(De(xl),De(zn),De(Ke),De(bl))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Dl="dsw.namespaces",Cl="dsw.namespace",Be="",lf=(()=>{let e=class e{constructor(t,i,n){this.ss=t,this.router=i,this.route=n,this.list=[],this.loadNamespaces()}get namespaces(){return this.list}resolve(t,i){return new Ci(n=>{let h=()=>{n.next(),n.complete()};if(Be){this.router.navigateByUrl(Be);return}this.router.navigateByUrl("/login")})}loadNamespaces(){try{Be=this.ss.storage.getItem(Cl)||"";let i=this.ss.storage.getItem(Dl)||"[]";this.list=JSON.parse(i)}catch{console.warn("Can't parse namespace list from storage")}}setNamespaces(t){this.list=t;try{this.ss.storage.setItem(Dl,JSON.stringify(t))}catch{console.warn("Can't set namespace list to storage")}}getNamespaces(){return this.list}setCurrent(t){this.ss.storage.setItem(Cl,t),Be=t}};e.\u0275fac=function(i){return new(i||e)(De(wl),De(ht),De(Ke))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Sl="MDX2JSON",Al="MDX2JSON",xl=(()=>{let e=class e{constructor(t,i,n,h){this.route=t,this.router=i,this.http=n,this.es=h,this.firstRun=!0,this.dashboardList=new Map,this.username="",this.withCredentialsHeaders={withCredentials:!0,headers:new Ye({"Accept-Language":"en-US"})},this.withoutCredentialsHeaders={headers:new Ye({"Accept-Language":"en-US"})},this.withCredentialsTimeoutHeaders={withCredentials:!0,headers:new Ye({timeout:ni.const.timeout.toString(),"Accept-Language":"en-US"})},this.withoutCredentialsTimeoutHeaders={headers:new Ye({timeout:ni.const.timeout.toString(),"Accept-Language":"en-US"})}}get url(){let t="",i=localStorage.getItem("connectorRedirect");return i&&(t=i),t+"../"+Sl+"/"}gotoLoginPage(){}getDashboards(){let t=Be.toLowerCase();return this.dashboardList.has(t)?Se(JSON.parse(this.dashboardList.get(t)||"{}")):this.http.post(this.url+"Dashboards?Namespace="+Be,{Folder:""},{withCredentials:!0}).pipe(Ge(i=>{this.dashboardList.set(Be.toLowerCase(),JSON.stringify(i))}),this.handleError())}getKPIData(t,i,n=!1){return ct(this.http.post(this.url+"KPI?Namespace="+Be,{KPI:t,FILTERS:i,Drillthrough:n?1:void 0},this.withCredentialsTimeoutHeaders))}getPivotData(t){return ct(this.http.post(this.url+"DataSource?Namespace="+Be,{DataSource:t},this.withCredentialsTimeoutHeaders))}getTermList(t){return this.http.post(this.url+"TermList?Namespace="+Be,{TermList:t},this.withCredentialsTimeoutHeaders).toPromise()}execMDX(t){return st(this,null,function*(){let i=t.split(" ");return i&&i.length!==0&&i[0].toUpperCase()==="DRILLTHROUGH"?this.execMDXDrillthrough(t,Be):ct(this.http.post(this.url+"MDX?Namespace="+Be,{MDX:t},this.withCredentialsTimeoutHeaders))})}execMDXDrillthrough(t,i){return st(this,null,function*(){return ct(this.http.post(this.url+"MDXDrillthrough?Namespace="+i,{MDX:t},this.withCredentialsTimeoutHeaders))})}getWidgets(t){return ct(this.http.post(this.url+"Dashboard?Namespace="+Be,{Dashboard:t},Ue(we({},this.withCredentialsTimeoutHeaders),{"Content-Type":"application/json"})).pipe(this.handleError()))}handleError(){return At(t=>{if(t.status===401||t.status===403)return this.router.navigateByUrl("/login?from="+encodeURIComponent(this.router.url)),Se();let i=t.message;throw t?.error?.summary&&(i=t?.error?.summary),this.es.show(i),t})}searchFilters(t,i,n,h){let v={DataSource:i,Values:1,Search:t};return n&&n.length&&(v.RelatedFilters=n),h&&h.length&&(v.RequestedFilters=h),ct(this.http.post(this.url+"Filters?Namespace="+Be,v,this.withCredentialsTimeoutHeaders))}getPivotVariables(t){return this.http.get(this.url+"PivotVariables/"+t+"?Namespace="+Be,this.withCredentialsTimeoutHeaders).toPromise()}getFile(t){return this.http.get(t,{responseType:"text"}).toPromise()}loadMainConfig(){return this.http.get("config.json",{headers:new Ye({withCredentials:"false"})}).toPromise().then(t=>{try{t&&t.endpoints&&t.endpoints.mdx2json&&(Sl=t.endpoints.mdx2json.replace(/\//ig,"").replace(/ /g,""),Al=t.namespace.replace(/\//ig,"").replace(/ /g,""))}catch{console.error('Incorrect config in file "config.json"')}})}loadConfig(t){return this.http.get("configs/"+t.toLowerCase()+".json",{headers:new Ye({withCredentials:"false"})}).toPromise()}loadAddons(){return st(this,null,function*(){return ct(this.http.get(this.url+"Addons",this.withCredentialsHeaders))})}loadNamespaceConfig(){return this.http.get(this.url+`Config/${Be}?Namespace=${Al}`,this.withCredentialsHeaders).toPromise()}loadOAuthConfig(){return this.http.get("dswoauth/check",this.withoutCredentialsHeaders).toPromise()}signIn(t,i,n,h){return this.username=t,this.http.get(h?h+"Test?Namespace="+n:this.url+"Test?Namespace="+n,{withCredentials:!0,headers:new Ye({timeout:ni.const.timeout.toString(),Authorization:"Basic "+btoa(t+":"+i)})}).toPromise()}signOut(){this.firstRun=!0;let t=h=>{document.cookie=h+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},i=(h,v,q)=>{let B=new Date;B.setTime(B.getTime()+24*60*60*1e3*q),document.cookie=h+"="+v+";path=/;expires="+B.toUTCString()};this.username="";try{localStorage.userName="",sessionStorage.userName=""}catch{}let n=()=>{i("CSPWSERVERID","",-1),i("CacheLoginToken","",-1),i("CSPSESSIONID-SP-80-UP-","",-1),i("CSPSESSIONID-SP-80-UP-MDX2JSON-","",-1),this.router.navigateByUrl("/login")};return this.http.get(this.url+`Logout?Namespace=${Be}`,this.withCredentialsHeaders).toPromise().then(()=>{n()}).catch(()=>{n()})}execAction(t,i){return this.http.post(this.url+"Action/"+i+"/"+t+"?Namespace="+Be,{},this.withCredentialsTimeoutHeaders).toPromise()}getSettings(t){return st(this,null,function*(){return ct(this.http.get(this.url+"Test?Namespace="+t,this.withCredentialsTimeoutHeaders))})}requestListOfDataSources(t){return st(this,null,function*(){return ct(this.http.post(this.url+`DataSourceList/${t}?Namespace=`+Be,{},this.withCredentialsTimeoutHeaders))})}saveWidget(t,i,n){return st(this,null,function*(){return ct(this.http.post(this.url+"saveWidget?Namespace="+Be,{key:n||"",Dashboard:t,WidgetData:i},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}deleteWidget(t,i){return st(this,null,function*(){return ct(this.http.post(this.url+"deleteWidget?Namespace="+Be,{key:i||"",Dashboard:t},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}};e.\u0275fac=function(i){return new(i||e)(De(Ke),De(ht),De(Vr),De(ml))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{ii as a,Ve as b,Fu as c,Nu as d,ju as e,Bu as f,zu as g,Uu as h,ea as i,zr as j,_u as k,ip as l,sp as m,ga as n,vp as o,oc as p,bp as q,hc as r,vi as s,wt as t,Ke as u,zc as v,ht as w,_p as x,$p as y,Wp as z,eu as A,Gp as B,Hp as C,Xp as D,zn as E,ni as F,ml as G,xl as H,bl as I,wl as J,Be as K,lf as L}; +`).forEach(r=>{let t=r.indexOf(":");if(t>0){let i=r.slice(0,t),n=i.toLowerCase(),h=r.slice(t+1).trim();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(h):this.headers.set(n,[h])}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((r,t)=>{this.setHeaderEntries(t,r)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([r,t])=>{this.setHeaderEntries(r,t)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let r=this.headers.get(e.toLowerCase());return r&&r.length>0?r[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,r){return this.clone({name:e,value:r,op:"a"})}set(e,r){return this.clone({name:e,value:r,op:"s"})}delete(e,r){return this.clone({name:e,value:r,op:"d"})}maybeSetNormalizedName(e,r){this.normalizedNames.has(r)||this.normalizedNames.set(r,e)}init(){this.lazyInit&&(this.lazyInit instanceof s?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(r=>{this.headers.set(r,e.headers.get(r)),this.normalizedNames.set(r,e.normalizedNames.get(r))})}clone(e){let r=new s;return r.lazyInit=this.lazyInit&&this.lazyInit instanceof s?this.lazyInit:this,r.lazyUpdate=(this.lazyUpdate||[]).concat([e]),r}applyUpdate(e){let r=e.name.toLowerCase();switch(e.op){case"a":case"s":let t=e.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(e.name,r);let i=(e.op==="a"?this.headers.get(r):void 0)||[];i.push(...t),this.headers.set(r,i);break;case"d":let n=e.value;if(!n)this.headers.delete(r),this.normalizedNames.delete(r);else{let h=this.headers.get(r);if(!h)return;h=h.filter(v=>n.indexOf(v)===-1),h.length===0?(this.headers.delete(r),this.normalizedNames.delete(r)):this.headers.set(r,h)}break}}setHeaderEntries(e,r){let t=(Array.isArray(r)?r:[r]).map(n=>n.toString()),i=e.toLowerCase();this.headers.set(i,t),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(r=>e(this.normalizedNames.get(r),this.headers.get(r)))}};var _r=class{encodeKey(e){return ra(e)}encodeValue(e){return ra(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function bh(s,e){let r=new Map;return s.length>0&&s.replace(/^\?/,"").split("&").forEach(i=>{let n=i.indexOf("="),[h,v]=n==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,n)),e.decodeValue(i.slice(n+1))],q=r.get(h)||[];q.push(v),r.set(h,q)}),r}var xh=/%(\d[a-f0-9])/gi,wh={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ra(s){return encodeURIComponent(s).replace(xh,(e,r)=>wh[r]??e)}function Ps(s){return`${s}`}var Wt=class s{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new _r,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=bh(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(r=>{let t=e.fromObject[r],i=Array.isArray(t)?t.map(Ps):[Ps(t)];this.map.set(r,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let r=this.map.get(e);return r?r[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,r){return this.clone({param:e,value:r,op:"a"})}appendAll(e){let r=[];return Object.keys(e).forEach(t=>{let i=e[t];Array.isArray(i)?i.forEach(n=>{r.push({param:t,value:n,op:"a"})}):r.push({param:t,value:i,op:"a"})}),this.clone(r)}set(e,r){return this.clone({param:e,value:r,op:"s"})}delete(e,r){return this.clone({param:e,value:r,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let r=this.encoder.encodeKey(e);return this.map.get(e).map(t=>r+"="+this.encoder.encodeValue(t)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let r=new s({encoder:this.encoder});return r.cloneFrom=this.cloneFrom||this,r.updates=(this.updates||[]).concat(e),r}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let r=(e.op==="a"?this.map.get(e.param):void 0)||[];r.push(Ps(e.value)),this.map.set(e.param,r);break;case"d":if(e.value!==void 0){let t=this.map.get(e.param)||[],i=t.indexOf(Ps(e.value));i!==-1&&t.splice(i,1),t.length>0?this.map.set(e.param,t):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var $r=class{constructor(){this.map=new Map}set(e,r){return this.map.set(e,r),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Dh(s){switch(s){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function na(s){return typeof ArrayBuffer<"u"&&s instanceof ArrayBuffer}function oa(s){return typeof Blob<"u"&&s instanceof Blob}function aa(s){return typeof FormData<"u"&&s instanceof FormData}function Ch(s){return typeof URLSearchParams<"u"&&s instanceof URLSearchParams}var Oi=class s{constructor(e,r,t,i){this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase();let n;if(Dh(this.method)||i?(this.body=t!==void 0?t:null,n=i):n=t,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.context&&(this.context=n.context),n.params&&(this.params=n.params),this.transferCache=n.transferCache),this.headers??=new Ye,this.context??=new $r,!this.params)this.params=new Wt,this.urlWithParams=r;else{let h=this.params.toString();if(h.length===0)this.urlWithParams=r;else{let v=r.indexOf("?"),q=v===-1?"?":vH.set(E,e.setHeaders[E]),B)),e.setParams&&(Y=Object.keys(e.setParams).reduce((H,E)=>H.set(E,e.setParams[E]),Y)),new s(r,t,h,{params:Y,headers:B,context:_,reportProgress:q,responseType:i,withCredentials:v,transferCache:n})}},Gt=function(s){return s[s.Sent=0]="Sent",s[s.UploadProgress=1]="UploadProgress",s[s.ResponseHeader=2]="ResponseHeader",s[s.DownloadProgress=3]="DownloadProgress",s[s.Response=4]="Response",s[s.User=5]="User",s}(Gt||{}),Li=class{constructor(e,r=200,t="OK"){this.headers=e.headers||new Ye,this.status=e.status!==void 0?e.status:r,this.statusText=e.statusText||t,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}},Is=class s extends Li{constructor(e={}){super(e),this.type=Gt.ResponseHeader}clone(e={}){return new s({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Fi=class s extends Li{constructor(e={}){super(e),this.type=Gt.Response,this.body=e.body!==void 0?e.body:null}clone(e={}){return new s({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},$t=class extends Li{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},da=200,Sh=204;function Ur(s,e){return{body:e,headers:s.headers,context:s.context,observe:s.observe,params:s.params,reportProgress:s.reportProgress,responseType:s.responseType,withCredentials:s.withCredentials,transferCache:s.transferCache}}var Vr=(()=>{let e=class e{constructor(t){this.handler=t}request(t,i,n={}){let h;if(t instanceof Oi)h=t;else{let B;n.headers instanceof Ye?B=n.headers:B=new Ye(n.headers);let Y;n.params&&(n.params instanceof Wt?Y=n.params:Y=new Wt({fromObject:n.params})),h=new Oi(t,i,n.body!==void 0?n.body:null,{headers:B,context:n.context,params:Y,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials,transferCache:n.transferCache})}let v=Se(h).pipe(Nt(B=>this.handler.handle(B)));if(t instanceof Oi||n.observe==="events")return v;let q=v.pipe(St(B=>B instanceof Fi));switch(n.observe||"body"){case"body":switch(h.responseType){case"arraybuffer":return q.pipe(ke(B=>{if(B.body!==null&&!(B.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return B.body}));case"blob":return q.pipe(ke(B=>{if(B.body!==null&&!(B.body instanceof Blob))throw new Error("Response is not a Blob.");return B.body}));case"text":return q.pipe(ke(B=>{if(B.body!==null&&typeof B.body!="string")throw new Error("Response is not a string.");return B.body}));case"json":default:return q.pipe(ke(B=>B.body))}case"response":return q;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,i={}){return this.request("DELETE",t,i)}get(t,i={}){return this.request("GET",t,i)}head(t,i={}){return this.request("HEAD",t,i)}jsonp(t,i){return this.request("JSONP",t,{params:new Wt().append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,i={}){return this.request("OPTIONS",t,i)}patch(t,i,n={}){return this.request("PATCH",t,Ur(n,i))}post(t,i,n={}){return this.request("POST",t,Ur(n,i))}put(t,i,n={}){return this.request("PUT",t,Ur(n,i))}};e.\u0275fac=function(i){return new(i||e)(De(Pi))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Ah=/^\)\]\}',?\n/,Eh="X-Request-URL";function la(s){if(s.url)return s.url;let e=Eh.toLocaleLowerCase();return s.headers.get(e)}var Wr=(()=>{let e=class e{constructor(){this.fetchImpl=xe(Gr,{optional:!0})?.fetch??fetch.bind(globalThis),this.ngZone=xe(it)}handle(t){return new Ci(i=>{let n=new AbortController;return this.doRequest(t,n.signal,i).then(Hr,h=>i.error(new $t({error:h}))),()=>n.abort()})}doRequest(t,i,n){return st(this,null,function*(){let h=this.createRequestInit(t),v;try{let N=this.fetchImpl(t.urlWithParams,we({signal:i},h));Mh(N),n.next({type:Gt.Sent}),v=yield N}catch(N){n.error(new $t({error:N,status:N.status??0,statusText:N.statusText,url:t.urlWithParams,headers:N.headers}));return}let q=new Ye(v.headers),B=v.statusText,Y=la(v)??t.urlWithParams,_=v.status,H=null;if(t.reportProgress&&n.next(new Is({headers:q,status:_,statusText:B,url:Y})),v.body){let N=v.headers.get("content-length"),z=[],k=v.body.getReader(),x=0,P,L,T=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>st(this,null,function*(){for(;;){let{done:M,value:Q}=yield k.read();if(M)break;if(z.push(Q),x+=Q.length,t.reportProgress){L=t.responseType==="text"?(L??"")+(P??=new TextDecoder).decode(Q,{stream:!0}):void 0;let W=()=>n.next({type:Gt.DownloadProgress,total:N?+N:void 0,loaded:x,partialText:L});T?T.run(W):W()}}}));let g=this.concatChunks(z,x);try{let M=v.headers.get("Content-Type")??"";H=this.parseBody(t,g,M)}catch(M){n.error(new $t({error:M,headers:new Ye(v.headers),status:v.status,statusText:v.statusText,url:la(v)??t.urlWithParams}));return}}_===0&&(_=H?da:0),_>=200&&_<300?(n.next(new Fi({body:H,headers:q,status:_,statusText:B,url:Y})),n.complete()):n.error(new $t({error:H,headers:q,status:_,statusText:B,url:Y}))})}parseBody(t,i,n){switch(t.responseType){case"json":let h=new TextDecoder().decode(i).replace(Ah,"");return h===""?null:JSON.parse(h);case"text":return new TextDecoder().decode(i);case"blob":return new Blob([i],{type:n});case"arraybuffer":return i.buffer}}createRequestInit(t){let i={},n=t.withCredentials?"include":void 0;if(t.headers.forEach((h,v)=>i[h]=v.join(",")),i.Accept??="application/json, text/plain, */*",!i["Content-Type"]){let h=t.detectContentTypeHeader();h!==null&&(i["Content-Type"]=h)}return{body:t.serializeBody(),method:t.method,headers:i,credentials:n}}concatChunks(t,i){let n=new Uint8Array(i),h=0;for(let v of t)n.set(v,h),h+=v.length;return n}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Gr=class{};function Hr(){}function Mh(s){s.then(Hr,Hr)}function Th(s,e){return e(s)}function kh(s,e,r){return(t,i)=>dt(r,()=>e(t,n=>s(n,i)))}var ua=new Te(""),Rh=new Te(""),Oh=new Te("",{providedIn:"root",factory:()=>!0});var ha=(()=>{let e=class e extends Pi{constructor(t,i){super(),this.backend=t,this.injector=i,this.chain=null,this.pendingTasks=xe(cs),this.contributeToStability=xe(Oh)}handle(t){if(this.chain===null){let i=Array.from(new Set([...this.injector.get(ua),...this.injector.get(Rh,[])]));this.chain=i.reduceRight((n,h)=>kh(n,h,this.injector),Th)}if(this.contributeToStability){let i=this.pendingTasks.add();return this.chain(t,n=>this.backend.handle(n)).pipe(ai(()=>this.pendingTasks.remove(i)))}else return this.chain(t,i=>this.backend.handle(i))}};e.\u0275fac=function(i){return new(i||e)(De(Ii),De(zt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();var Ph=/^\)\]\}',?\n/;function Ih(s){return"responseURL"in s&&s.responseURL?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):null}var ca=(()=>{let e=class e{constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new Ne(-2800,!1);let i=this.xhrFactory;return(i.\u0275loadImpl?Qe(i.\u0275loadImpl()):Se(null)).pipe(nt(()=>new Ci(h=>{let v=i.build();if(v.open(t.method,t.urlWithParams),t.withCredentials&&(v.withCredentials=!0),t.headers.forEach((k,x)=>v.setRequestHeader(k,x.join(","))),t.headers.has("Accept")||v.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){let k=t.detectContentTypeHeader();k!==null&&v.setRequestHeader("Content-Type",k)}if(t.responseType){let k=t.responseType.toLowerCase();v.responseType=k!=="json"?k:"text"}let q=t.serializeBody(),B=null,Y=()=>{if(B!==null)return B;let k=v.statusText||"OK",x=new Ye(v.getAllResponseHeaders()),P=Ih(v)||t.url;return B=new Is({headers:x,status:v.status,statusText:k,url:P}),B},_=()=>{let{headers:k,status:x,statusText:P,url:L}=Y(),T=null;x!==Sh&&(T=typeof v.response>"u"?v.responseText:v.response),x===0&&(x=T?da:0);let g=x>=200&&x<300;if(t.responseType==="json"&&typeof T=="string"){let M=T;T=T.replace(Ph,"");try{T=T!==""?JSON.parse(T):null}catch(Q){T=M,g&&(g=!1,T={error:Q,text:T})}}g?(h.next(new Fi({body:T,headers:k,status:x,statusText:P,url:L||void 0})),h.complete()):h.error(new $t({error:T,headers:k,status:x,statusText:P,url:L||void 0}))},H=k=>{let{url:x}=Y(),P=new $t({error:k,status:v.status||0,statusText:v.statusText||"Unknown Error",url:x||void 0});h.error(P)},E=!1,N=k=>{E||(h.next(Y()),E=!0);let x={type:Gt.DownloadProgress,loaded:k.loaded};k.lengthComputable&&(x.total=k.total),t.responseType==="text"&&v.responseText&&(x.partialText=v.responseText),h.next(x)},z=k=>{let x={type:Gt.UploadProgress,loaded:k.loaded};k.lengthComputable&&(x.total=k.total),h.next(x)};return v.addEventListener("load",_),v.addEventListener("error",H),v.addEventListener("timeout",H),v.addEventListener("abort",H),t.reportProgress&&(v.addEventListener("progress",N),q!==null&&v.upload&&v.upload.addEventListener("progress",z)),v.send(q),h.next({type:Gt.Sent}),()=>{v.removeEventListener("error",H),v.removeEventListener("abort",H),v.removeEventListener("load",_),v.removeEventListener("timeout",H),t.reportProgress&&(v.removeEventListener("progress",N),q!==null&&v.upload&&v.upload.removeEventListener("progress",z)),v.readyState!==v.DONE&&v.abort()}})))}};e.\u0275fac=function(i){return new(i||e)(De(hi))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),pa=new Te(""),Lh="XSRF-TOKEN",Fh=new Te("",{providedIn:"root",factory:()=>Lh}),Nh="X-XSRF-TOKEN",jh=new Te("",{providedIn:"root",factory:()=>Nh}),Ls=class{},Bh=(()=>{let e=class e{constructor(t,i,n){this.doc=t,this.platform=i,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Os(t,this.cookieName),this.lastCookieString=t),this.lastToken}};e.\u0275fac=function(i){return new(i||e)(De(Ve),De(vt),De(Fh))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function zh(s,e){let r=s.url.toLowerCase();if(!xe(pa)||s.method==="GET"||s.method==="HEAD"||r.startsWith("http://")||r.startsWith("https://"))return e(s);let t=xe(Ls).getToken(),i=xe(jh);return t!=null&&!s.headers.has(i)&&(s=s.clone({headers:s.headers.set(i,t)})),e(s)}var fa=function(s){return s[s.Interceptors=0]="Interceptors",s[s.LegacyInterceptors=1]="LegacyInterceptors",s[s.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",s[s.NoXsrfProtection=3]="NoXsrfProtection",s[s.JsonpSupport=4]="JsonpSupport",s[s.RequestsMadeViaParent=5]="RequestsMadeViaParent",s[s.Fetch=6]="Fetch",s}(fa||{});function Uh(s,e){return{\u0275kind:s,\u0275providers:e}}function ip(...s){let e=[Vr,ca,ha,{provide:Pi,useExisting:ha},{provide:Ii,useFactory:()=>xe(Wr,{optional:!0})??xe(ca)},{provide:ua,useValue:zh,multi:!0},{provide:pa,useValue:!0},{provide:Ls,useClass:Bh}];for(let r of s)e.push(...r.\u0275providers);return Mi(e)}function sp(){return Uh(fa.Fetch,[Wr,{provide:Ii,useExisting:Wr}])}var qr=class extends Ts{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zr=class s extends qr{static makeCurrent(){Xo(new s)}onAndCancel(e,r,t){return e.addEventListener(r,t),()=>{e.removeEventListener(r,t)}}dispatchEvent(e,r){e.dispatchEvent(r)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,r){return r=r||this.getDefaultDocument(),r.createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,r){return r==="window"?window:r==="document"?e:r==="body"?e.body:null}getBaseHref(e){let r=Wh();return r==null?null:Gh(r)}resetBaseElement(){Ni=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return Os(document.cookie,e)}},Ni=null;function Wh(){return Ni=Ni||document.querySelector("base"),Ni?Ni.getAttribute("href"):null}function Gh(s){return new URL(s,document.baseURI).pathname}var Kr=class{addToWindow(e){Bt.getAngularTestability=(t,i=!0)=>{let n=e.findTestabilityInTree(t,i);if(n==null)throw new Ne(5103,!1);return n},Bt.getAllAngularTestabilities=()=>e.getAllTestabilities(),Bt.getAllAngularRootElements=()=>e.getAllRootElements();let r=t=>{let i=Bt.getAllAngularTestabilities(),n=i.length,h=function(){n--,n==0&&t()};i.forEach(v=>{v.whenStable(h)})};Bt.frameworkStabilizers||(Bt.frameworkStabilizers=[]),Bt.frameworkStabilizers.push(r)}findTestabilityInTree(e,r,t){if(r==null)return null;let i=e.getTestability(r);return i??(t?ii().isShadowRoot(r)?this.findTestabilityInTree(e,r.host,!0):this.findTestabilityInTree(e,r.parentElement,!0):null)}},Hh=(()=>{let e=class e{build(){return new XMLHttpRequest}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Jr=new Te(""),va=(()=>{let e=class e{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(n=>{n.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,i,n){return this._findPluginFor(i).addEventListener(t,i,n)}getZone(){return this._zone}_findPluginFor(t){let i=this._eventNameToPlugin.get(t);if(i)return i;if(i=this._plugins.find(h=>h.supports(t)),!i)throw new Ne(5101,!1);return this._eventNameToPlugin.set(t,i),i}};e.\u0275fac=function(i){return new(i||e)(De(Jr),De(it))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Fs=class{constructor(e){this._doc=e}},Xr="ng-app-id",ba=(()=>{let e=class e{constructor(t,i,n,h={}){this.doc=t,this.appId=i,this.nonce=n,this.platformId=h,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Ri(h),this.resetHostNodes()}addStyles(t){for(let i of t)this.changeUsageCount(i,1)===1&&this.onStyleAdded(i)}removeStyles(t){for(let i of t)this.changeUsageCount(i,-1)<=0&&this.onStyleRemoved(i)}ngOnDestroy(){let t=this.styleNodesInDOM;t&&(t.forEach(i=>i.remove()),t.clear());for(let i of this.getAllStyles())this.onStyleRemoved(i);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(let i of this.getAllStyles())this.addStyleToHost(t,i)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(let i of this.hostNodes)this.addStyleToHost(i,t)}onStyleRemoved(t){let i=this.styleRef;i.get(t)?.elements?.forEach(n=>n.remove()),i.delete(t)}collectServerRenderedStyles(){let t=this.doc.head?.querySelectorAll(`style[${Xr}="${this.appId}"]`);if(t?.length){let i=new Map;return t.forEach(n=>{n.textContent!=null&&i.set(n.textContent,n)}),i}return null}changeUsageCount(t,i){let n=this.styleRef;if(n.has(t)){let h=n.get(t);return h.usage+=i,h.usage}return n.set(t,{usage:i,elements:[]}),i}getStyleElement(t,i){let n=this.styleNodesInDOM,h=n?.get(i);if(h?.parentNode===t)return n.delete(i),h.removeAttribute(Xr),h;{let v=this.doc.createElement("style");return this.nonce&&v.setAttribute("nonce",this.nonce),v.textContent=i,this.platformIsServer&&v.setAttribute(Xr,this.appId),t.appendChild(v),v}}addStyleToHost(t,i){let n=this.getStyleElement(t,i),h=this.styleRef,v=h.get(i)?.elements;v?v.push(n):h.set(i,{elements:[n],usage:1})}resetHostNodes(){let t=this.hostNodes;t.clear(),t.add(this.doc.head)}};e.\u0275fac=function(i){return new(i||e)(De(Ve),De(ds),De(br,8),De(vt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),Yr={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},en=/%COMP%/g,xa="%COMP%",Vh=`_nghost-${xa}`,Xh=`_ngcontent-${xa}`,Yh=!0,qh=new Te("",{providedIn:"root",factory:()=>Yh});function Zh(s){return Xh.replace(en,s)}function Kh(s){return Vh.replace(en,s)}function wa(s,e){return e.map(r=>r.replace(en,s))}var ga=(()=>{let e=class e{constructor(t,i,n,h,v,q,B,Y=null){this.eventManager=t,this.sharedStylesHost=i,this.appId=n,this.removeStylesOnCompDestroy=h,this.doc=v,this.platformId=q,this.ngZone=B,this.nonce=Y,this.rendererByCompId=new Map,this.platformIsServer=Ri(q),this.defaultRenderer=new ji(t,v,B,this.platformIsServer)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;this.platformIsServer&&i.encapsulation===Ai.ShadowDom&&(i=Ue(we({},i),{encapsulation:Ai.Emulated}));let n=this.getOrCreateRenderer(t,i);return n instanceof Ns?n.applyToHost(t):n instanceof Bi&&n.applyStyles(),n}getOrCreateRenderer(t,i){let n=this.rendererByCompId,h=n.get(i.id);if(!h){let v=this.doc,q=this.ngZone,B=this.eventManager,Y=this.sharedStylesHost,_=this.removeStylesOnCompDestroy,H=this.platformIsServer;switch(i.encapsulation){case Ai.Emulated:h=new Ns(B,Y,i,this.appId,_,v,q,H);break;case Ai.ShadowDom:return new Qr(B,Y,t,i,v,q,this.nonce,H);default:h=new Bi(B,Y,i,_,v,q,H);break}n.set(i.id,h)}return h}ngOnDestroy(){this.rendererByCompId.clear()}};e.\u0275fac=function(i){return new(i||e)(De(va),De(ba),De(ds),De(qh),De(Ve),De(vt),De(it),De(br))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),ji=class{constructor(e,r,t,i){this.eventManager=e,this.doc=r,this.ngZone=t,this.platformIsServer=i,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(e,r){return r?this.doc.createElementNS(Yr[r]||r,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,r){(ma(e)?e.content:e).appendChild(r)}insertBefore(e,r,t){e&&(ma(e)?e.content:e).insertBefore(r,t)}removeChild(e,r){e&&e.removeChild(r)}selectRootElement(e,r){let t=typeof e=="string"?this.doc.querySelector(e):e;if(!t)throw new Ne(-5104,!1);return r||(t.textContent=""),t}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,r,t,i){if(i){r=i+":"+r;let n=Yr[i];n?e.setAttributeNS(n,r,t):e.setAttribute(r,t)}else e.setAttribute(r,t)}removeAttribute(e,r,t){if(t){let i=Yr[t];i?e.removeAttributeNS(i,r):e.removeAttribute(`${t}:${r}`)}else e.removeAttribute(r)}addClass(e,r){e.classList.add(r)}removeClass(e,r){e.classList.remove(r)}setStyle(e,r,t,i){i&(Qt.DashCase|Qt.Important)?e.style.setProperty(r,t,i&Qt.Important?"important":""):e.style[r]=t}removeStyle(e,r,t){t&Qt.DashCase?e.style.removeProperty(r):e.style[r]=""}setProperty(e,r,t){e!=null&&(e[r]=t)}setValue(e,r){e.nodeValue=r}listen(e,r,t){if(typeof e=="string"&&(e=ii().getGlobalEventTarget(this.doc,e),!e))throw new Error(`Unsupported event target ${e} for event ${r}`);return this.eventManager.addEventListener(e,r,this.decoratePreventDefault(t))}decoratePreventDefault(e){return r=>{if(r==="__ngUnwrap__")return e;(this.platformIsServer?this.ngZone.runGuarded(()=>e(r)):e(r))===!1&&r.preventDefault()}}};function ma(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var Qr=class extends ji{constructor(e,r,t,i,n,h,v,q){super(e,n,h,q),this.sharedStylesHost=r,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let B=wa(i.id,i.styles);for(let Y of B){let _=document.createElement("style");v&&_.setAttribute("nonce",v),_.textContent=Y,this.shadowRoot.appendChild(_)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}appendChild(e,r){return super.appendChild(this.nodeOrShadowRoot(e),r)}insertBefore(e,r,t){return super.insertBefore(this.nodeOrShadowRoot(e),r,t)}removeChild(e,r){return super.removeChild(this.nodeOrShadowRoot(e),r)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Bi=class extends ji{constructor(e,r,t,i,n,h,v,q){super(e,n,h,v),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=i,this.styles=q?wa(q,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},Ns=class extends Bi{constructor(e,r,t,i,n,h,v,q){let B=i+"-"+t.id;super(e,r,t,n,h,v,q,B),this.contentAttr=Zh(B),this.hostAttr=Kh(B)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,r){let t=super.createElement(e,r);return super.setAttribute(t,this.contentAttr,""),t}},Jh=(()=>{let e=class e extends Fs{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,n){return t.addEventListener(i,n,!1),()=>this.removeEventListener(t,i,n)}removeEventListener(t,i,n){return t.removeEventListener(i,n)}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})(),ya=["alt","control","meta","shift"],Qh={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},ec={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},tc=(()=>{let e=class e extends Fs{constructor(t){super(t)}supports(t){return e.parseEventName(t)!=null}addEventListener(t,i,n){let h=e.parseEventName(i),v=e.eventCallback(h.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(t,h.domEventName,v))}static parseEventName(t){let i=t.toLowerCase().split("."),n=i.shift();if(i.length===0||!(n==="keydown"||n==="keyup"))return null;let h=e._normalizeKey(i.pop()),v="",q=i.indexOf("code");if(q>-1&&(i.splice(q,1),v="code."),ya.forEach(Y=>{let _=i.indexOf(Y);_>-1&&(i.splice(_,1),v+=Y+".")}),v+=h,i.length!=0||h.length===0)return null;let B={};return B.domEventName=n,B.fullKey=v,B}static matchEventFullKeyCode(t,i){let n=Qh[t.key]||t.key,h="";return i.indexOf("code.")>-1&&(n=t.code,h="code."),n==null||!n?!1:(n=n.toLowerCase(),n===" "?n="space":n==="."&&(n="dot"),ya.forEach(v=>{if(v!==n){let q=ec[v];q(t)&&(h+=v+".")}}),h+=n,h===i)}static eventCallback(t,i,n){return h=>{e.matchEventFullKeyCode(h,t)&&n.runGuarded(()=>i(h))}}static _normalizeKey(t){return t==="esc"?"escape":t}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function vp(s,e){return jo(we({rootComponent:s},ic(e)))}function ic(s){return{appProviders:[...Da,...s?.providers??[]],platformProviders:oc}}function sc(){Zr.makeCurrent()}function rc(){return new vr}function nc(){return lo(document),document}var oc=[{provide:vt,useValue:zr},{provide:ho,useValue:sc,multi:!0},{provide:Ve,useFactory:nc,deps:[]}];var ac=new Te(""),lc=[{provide:fs,useClass:Kr,deps:[]},{provide:Po,useClass:gs,deps:[it,Cr,fs]},{provide:gs,useClass:gs,deps:[it,Cr,fs]}],Da=[{provide:ao,useValue:"root"},{provide:vr,useFactory:rc,deps:[]},{provide:Jr,useClass:Jh,multi:!0,deps:[Ve,it,vt]},{provide:Jr,useClass:tc,multi:!0,deps:[Ve]},ga,ba,va,{provide:Do,useExisting:ga},{provide:hi,useClass:Hh,deps:[]},[]],bp=(()=>{let e=class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:ds,useValue:t.appId}]}}};e.\u0275fac=function(i){return new(i||e)(De(ac,12))},e.\u0275mod=qt({type:e}),e.\u0275inj=Yt({providers:[...Da,...lc],imports:[ea,No]});let s=e;return s})();var Ca=(()=>{let e=class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var hc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:function(i){let n=null;return i?n=new(i||e):n=De(cc),n},providedIn:"root"});let s=e;return s})(),cc=(()=>{let e=class e extends hc{constructor(t){super(),this._doc=t}sanitize(t,i){if(i==null)return null;switch(t){case Jt.NONE:return i;case Jt.HTML:return li(i,"HTML")?Ut(i):bo(this._doc,String(i)).toString();case Jt.STYLE:return li(i,"Style")?Ut(i):i;case Jt.SCRIPT:if(li(i,"Script"))return Ut(i);throw new Ne(5200,!1);case Jt.URL:return li(i,"URL")?Ut(i):vo(String(i));case Jt.RESOURCE_URL:if(li(i,"ResourceURL"))return Ut(i);throw new Ne(5201,!1);default:throw new Ne(5202,!1)}}bypassSecurityTrustHtml(t){return po(t)}bypassSecurityTrustStyle(t){return fo(t)}bypassSecurityTrustScript(t){return go(t)}bypassSecurityTrustUrl(t){return mo(t)}bypassSecurityTrustResourceUrl(t){return yo(t)}};e.\u0275fac=function(i){return new(i||e)(De(Ve))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Ae="primary",es=Symbol("RouteTitle"),on=class{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r[0]:r}return null}getAll(e){if(this.has(e)){let r=this.params[e];return Array.isArray(r)?r:[r]}return[]}get keys(){return Object.keys(this.params)}};function mi(s){return new on(s)}function uc(s,e,r){let t=r.path.split("/");if(t.length>s.length||r.pathMatch==="full"&&(e.hasChildren()||t.lengtht[n]===i)}else return s===e}function Fa(s){return s.length>0?s[s.length-1]:null}function Xt(s){return Zn(s)?s:ms(s)?Qe(Promise.resolve(s)):Se(s)}var fc={exact:ja,subset:Ba},Na={exact:gc,subset:mc,ignored:()=>!0};function Sa(s,e,r){return fc[r.paths](s.root,e.root,r.matrixParams)&&Na[r.queryParams](s.queryParams,e.queryParams)&&!(r.fragment==="exact"&&s.fragment!==e.fragment)}function gc(s,e){return xt(s,e)}function ja(s,e,r){if(!ri(s.segments,e.segments)||!zs(s.segments,e.segments,r)||s.numberOfChildren!==e.numberOfChildren)return!1;for(let t in e.children)if(!s.children[t]||!ja(s.children[t],e.children[t],r))return!1;return!0}function mc(s,e){return Object.keys(e).length<=Object.keys(s).length&&Object.keys(e).every(r=>La(s[r],e[r]))}function Ba(s,e,r){return za(s,e,e.segments,r)}function za(s,e,r,t){if(s.segments.length>r.length){let i=s.segments.slice(0,r.length);return!(!ri(i,r)||e.hasChildren()||!zs(i,r,t))}else if(s.segments.length===r.length){if(!ri(s.segments,r)||!zs(s.segments,r,t))return!1;for(let i in e.children)if(!s.children[i]||!Ba(s.children[i],e.children[i],t))return!1;return!0}else{let i=r.slice(0,s.segments.length),n=r.slice(s.segments.length);return!ri(s.segments,i)||!zs(s.segments,i,t)||!s.children[Ae]?!1:za(s.children[Ae],e,n,t)}}function zs(s,e,r){return e.every((t,i)=>Na[r](s[i].parameters,t.parameters))}var Ht=class{constructor(e=new Pe([],{}),r={},t=null){this.root=e,this.queryParams=r,this.fragment=t}get queryParamMap(){return this._queryParamMap??=mi(this.queryParams),this._queryParamMap}toString(){return bc.serialize(this)}},Pe=class{constructor(e,r){this.segments=e,this.children=r,this.parent=null,Object.values(r).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Us(this)}},si=class{constructor(e,r){this.path=e,this.parameters=r}get parameterMap(){return this._parameterMap??=mi(this.parameters),this._parameterMap}toString(){return _a(this)}};function yc(s,e){return ri(s,e)&&s.every((r,t)=>xt(r.parameters,e[t].parameters))}function ri(s,e){return s.length!==e.length?!1:s.every((r,t)=>r.path===e[t].path)}function vc(s,e){let r=[];return Object.entries(s.children).forEach(([t,i])=>{t===Ae&&(r=r.concat(e(i,t)))}),Object.entries(s.children).forEach(([t,i])=>{t!==Ae&&(r=r.concat(e(i,t)))}),r}var ts=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>new yi,providedIn:"root"});let s=e;return s})(),yi=class{parse(e){let r=new hn(e);return new Ht(r.parseRootSegment(),r.parseQueryParams(),r.parseFragment())}serialize(e){let r=`/${zi(e.root,!0)}`,t=Dc(e.queryParams),i=typeof e.fragment=="string"?`#${xc(e.fragment)}`:"";return`${r}${t}${i}`}},bc=new yi;function Us(s){return s.segments.map(e=>_a(e)).join("/")}function zi(s,e){if(!s.hasChildren())return Us(s);if(e){let r=s.children[Ae]?zi(s.children[Ae],!1):"",t=[];return Object.entries(s.children).forEach(([i,n])=>{i!==Ae&&t.push(`${i}:${zi(n,!1)}`)}),t.length>0?`${r}(${t.join("//")})`:r}else{let r=vc(s,(t,i)=>i===Ae?[zi(s.children[Ae],!1)]:[`${i}:${zi(t,!1)}`]);return Object.keys(s.children).length===1&&s.children[Ae]!=null?`${Us(s)}/${r[0]}`:`${Us(s)}/(${r.join("//")})`}}function Ua(s){return encodeURIComponent(s).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function js(s){return Ua(s).replace(/%3B/gi,";")}function xc(s){return encodeURI(s)}function ln(s){return Ua(s).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _s(s){return decodeURIComponent(s)}function Aa(s){return _s(s.replace(/\+/g,"%20"))}function _a(s){return`${ln(s.path)}${wc(s.parameters)}`}function wc(s){return Object.entries(s).map(([e,r])=>`;${ln(e)}=${ln(r)}`).join("")}function Dc(s){let e=Object.entries(s).map(([r,t])=>Array.isArray(t)?t.map(i=>`${js(r)}=${js(i)}`).join("&"):`${js(r)}=${js(t)}`).filter(r=>r);return e.length?`?${e.join("&")}`:""}var Cc=/^[^\/()?;#]+/;function tn(s){let e=s.match(Cc);return e?e[0]:""}var Sc=/^[^\/()?;=#]+/;function Ac(s){let e=s.match(Sc);return e?e[0]:""}var Ec=/^[^=?&#]+/;function Mc(s){let e=s.match(Ec);return e?e[0]:""}var Tc=/^[^&#]+/;function kc(s){let e=s.match(Tc);return e?e[0]:""}var hn=class{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Pe([],{}):new Pe([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(e.length>0||Object.keys(r).length>0)&&(t[Ae]=new Pe(e,r)),t}parseSegment(){let e=tn(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new Ne(4009,!1);return this.capture(e),new si(_s(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let r=Ac(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let i=tn(this.remaining);i&&(t=i,this.capture(t))}e[_s(r)]=_s(t)}parseQueryParam(e){let r=Mc(this.remaining);if(!r)return;this.capture(r);let t="";if(this.consumeOptional("=")){let h=kc(this.remaining);h&&(t=h,this.capture(t))}let i=Aa(r),n=Aa(t);if(e.hasOwnProperty(i)){let h=e[i];Array.isArray(h)||(h=[h],e[i]=h),h.push(n)}else e[i]=n}parseParens(e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=tn(this.remaining),i=this.remaining[t.length];if(i!=="/"&&i!==")"&&i!==";")throw new Ne(4010,!1);let n;t.indexOf(":")>-1?(n=t.slice(0,t.indexOf(":")),this.capture(n),this.capture(":")):e&&(n=Ae);let h=this.parseChildren();r[n]=Object.keys(h).length===1?h[Ae]:new Pe([],h),this.consumeOptional("//")}return r}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new Ne(4011,!1)}};function $a(s){return s.segments.length>0?new Pe([],{[Ae]:s}):s}function Wa(s){let e={};for(let[t,i]of Object.entries(s.children)){let n=Wa(i);if(t===Ae&&n.segments.length===0&&n.hasChildren())for(let[h,v]of Object.entries(n.children))e[h]=v;else(n.segments.length>0||n.hasChildren())&&(e[t]=n)}let r=new Pe(s.segments,e);return Rc(r)}function Rc(s){if(s.numberOfChildren===1&&s.children[Ae]){let e=s.children[Ae];return new Pe(s.segments.concat(e.segments),e.children)}return s}function Hi(s){return s instanceof Ht}function Oc(s,e,r=null,t=null){let i=Ga(s);return Ha(i,e,r,t)}function Ga(s){let e;function r(n){let h={};for(let q of n.children){let B=r(q);h[q.outlet]=B}let v=new Pe(n.url,h);return n===s&&(e=v),v}let t=r(s.root),i=$a(t);return e??i}function Ha(s,e,r,t){let i=s;for(;i.parent;)i=i.parent;if(e.length===0)return sn(i,i,i,r,t);let n=Pc(e);if(n.toRoot())return sn(i,i,new Pe([],{}),r,t);let h=Ic(n,i,s),v=h.processChildren?$i(h.segmentGroup,h.index,n.commands):Xa(h.segmentGroup,h.index,n.commands);return sn(i,h.segmentGroup,v,r,t)}function $s(s){return typeof s=="object"&&s!=null&&!s.outlets&&!s.segmentPath}function Vi(s){return typeof s=="object"&&s!=null&&s.outlets}function sn(s,e,r,t,i){let n={};t&&Object.entries(t).forEach(([q,B])=>{n[q]=Array.isArray(B)?B.map(Y=>`${Y}`):`${B}`});let h;s===e?h=r:h=Va(s,e,r);let v=$a(Wa(h));return new Ht(v,n,i)}function Va(s,e,r){let t={};return Object.entries(s.children).forEach(([i,n])=>{n===e?t[i]=r:t[i]=Va(n,e,r)}),new Pe(s.segments,t)}var Ws=class{constructor(e,r,t){if(this.isAbsolute=e,this.numberOfDoubleDots=r,this.commands=t,e&&t.length>0&&$s(t[0]))throw new Ne(4003,!1);let i=t.find(Vi);if(i&&i!==Fa(t))throw new Ne(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Pc(s){if(typeof s[0]=="string"&&s.length===1&&s[0]==="/")return new Ws(!0,0,s);let e=0,r=!1,t=s.reduce((i,n,h)=>{if(typeof n=="object"&&n!=null){if(n.outlets){let v={};return Object.entries(n.outlets).forEach(([q,B])=>{v[q]=typeof B=="string"?B.split("/"):B}),[...i,{outlets:v}]}if(n.segmentPath)return[...i,n.segmentPath]}return typeof n!="string"?[...i,n]:h===0?(n.split("/").forEach((v,q)=>{q==0&&v==="."||(q==0&&v===""?r=!0:v===".."?e++:v!=""&&i.push(v))}),i):[...i,n]},[]);return new Ws(r,e,t)}var pi=class{constructor(e,r,t){this.segmentGroup=e,this.processChildren=r,this.index=t}};function Ic(s,e,r){if(s.isAbsolute)return new pi(e,!0,0);if(!r)return new pi(e,!1,NaN);if(r.parent===null)return new pi(r,!0,0);let t=$s(s.commands[0])?0:1,i=r.segments.length-1+t;return Lc(r,i,s.numberOfDoubleDots)}function Lc(s,e,r){let t=s,i=e,n=r;for(;n>i;){if(n-=i,t=t.parent,!t)throw new Ne(4005,!1);i=t.segments.length}return new pi(t,!1,i-n)}function Fc(s){return Vi(s[0])?s[0].outlets:{[Ae]:s}}function Xa(s,e,r){if(s??=new Pe([],{}),s.segments.length===0&&s.hasChildren())return $i(s,e,r);let t=Nc(s,e,r),i=r.slice(t.commandIndex);if(t.match&&t.pathIndexn!==Ae)&&s.children[Ae]&&s.numberOfChildren===1&&s.children[Ae].segments.length===0){let n=$i(s.children[Ae],e,r);return new Pe(s.segments,n.children)}return Object.entries(t).forEach(([n,h])=>{typeof h=="string"&&(h=[h]),h!==null&&(i[n]=Xa(s.children[n],e,h))}),Object.entries(s.children).forEach(([n,h])=>{t[n]===void 0&&(i[n]=h)}),new Pe(s.segments,i)}}function Nc(s,e,r){let t=0,i=e,n={match:!1,pathIndex:0,commandIndex:0};for(;i=r.length)return n;let h=s.segments[i],v=r[t];if(Vi(v))break;let q=`${v}`,B=t0&&q===void 0)break;if(q&&B&&typeof B=="object"&&B.outlets===void 0){if(!Ma(q,B,h))return n;t+=2}else{if(!Ma(q,{},h))return n;t++}i++}return{match:!0,pathIndex:i,commandIndex:t}}function cn(s,e,r){let t=s.segments.slice(0,e),i=0;for(;i{typeof t=="string"&&(t=[t]),t!==null&&(e[r]=cn(new Pe([],{}),0,t))}),e}function Ea(s){let e={};return Object.entries(s).forEach(([r,t])=>e[r]=`${t}`),e}function Ma(s,e,r){return s==r.path&&xt(e,r.parameters)}var Wi="imperative",Xe=function(s){return s[s.NavigationStart=0]="NavigationStart",s[s.NavigationEnd=1]="NavigationEnd",s[s.NavigationCancel=2]="NavigationCancel",s[s.NavigationError=3]="NavigationError",s[s.RoutesRecognized=4]="RoutesRecognized",s[s.ResolveStart=5]="ResolveStart",s[s.ResolveEnd=6]="ResolveEnd",s[s.GuardsCheckStart=7]="GuardsCheckStart",s[s.GuardsCheckEnd=8]="GuardsCheckEnd",s[s.RouteConfigLoadStart=9]="RouteConfigLoadStart",s[s.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",s[s.ChildActivationStart=11]="ChildActivationStart",s[s.ChildActivationEnd=12]="ChildActivationEnd",s[s.ActivationStart=13]="ActivationStart",s[s.ActivationEnd=14]="ActivationEnd",s[s.Scroll=15]="Scroll",s[s.NavigationSkipped=16]="NavigationSkipped",s}(Xe||{}),ft=class{constructor(e,r){this.id=e,this.url=r}},vi=class extends ft{constructor(e,r,t="imperative",i=null){super(e,r),this.type=Xe.NavigationStart,this.navigationTrigger=t,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},wt=class extends ft{constructor(e,r,t){super(e,r),this.urlAfterRedirects=t,this.type=Xe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},lt=function(s){return s[s.Redirect=0]="Redirect",s[s.SupersededByNewNavigation=1]="SupersededByNewNavigation",s[s.NoDataFromResolver=2]="NoDataFromResolver",s[s.GuardRejected=3]="GuardRejected",s}(lt||{}),Gs=function(s){return s[s.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",s[s.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",s}(Gs||{}),Pt=class extends ft{constructor(e,r,t,i){super(e,r),this.reason=t,this.code=i,this.type=Xe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Vt=class extends ft{constructor(e,r,t,i){super(e,r),this.reason=t,this.code=i,this.type=Xe.NavigationSkipped}},Xi=class extends ft{constructor(e,r,t,i){super(e,r),this.error=t,this.target=i,this.type=Xe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Hs=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},un=class extends ft{constructor(e,r,t,i,n){super(e,r),this.urlAfterRedirects=t,this.state=i,this.shouldActivate=n,this.type=Xe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends ft{constructor(e,r,t,i){super(e,r),this.urlAfterRedirects=t,this.state=i,this.type=Xe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class{constructor(e){this.route=e,this.type=Xe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mn=class{constructor(e){this.route=e,this.type=Xe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yn=class{constructor(e){this.snapshot=e,this.type=Xe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{constructor(e){this.snapshot=e,this.type=Xe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bn=class{constructor(e){this.snapshot=e,this.type=Xe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xn=class{constructor(e){this.snapshot=e,this.type=Xe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vs=class{constructor(e,r,t){this.routerEvent=e,this.position=r,this.anchor=t,this.type=Xe.Scroll}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},Yi=class{},bi=class{constructor(e,r){this.url=e,this.navigationBehaviorOptions=r}};var wn=class{constructor(e){this.injector=e,this.outlet=null,this.route=null,this.children=new is(this.injector),this.attachRef=null}},is=(()=>{let e=class e{constructor(t){this.parentInjector=t,this.contexts=new Map}onChildOutletCreated(t,i){let n=this.getOrCreateContext(t);n.outlet=i,this.contexts.set(t,n)}onChildOutletDestroyed(t){let i=this.getContext(t);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let i=this.getContext(t);return i||(i=new wn(this.parentInjector),this.contexts.set(t,i)),i}getContext(t){return this.contexts.get(t)||null}};e.\u0275fac=function(i){return new(i||e)(De(zt))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),Xs=class{constructor(e){this._root=e}get root(){return this._root.value}parent(e){let r=this.pathFromRoot(e);return r.length>1?r[r.length-2]:null}children(e){let r=Dn(e,this._root);return r?r.children.map(t=>t.value):[]}firstChild(e){let r=Dn(e,this._root);return r&&r.children.length>0?r.children[0].value:null}siblings(e){let r=Cn(e,this._root);return r.length<2?[]:r[r.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Cn(e,this._root).map(r=>r.value)}};function Dn(s,e){if(s===e.value)return e;for(let r of e.children){let t=Dn(s,r);if(t)return t}return null}function Cn(s,e){if(s===e.value)return[e];for(let r of e.children){let t=Cn(s,r);if(t.length)return t.unshift(e),t}return[]}var at=class{constructor(e,r){this.value=e,this.children=r}toString(){return`TreeNode(${this.value})`}};function ui(s){let e={};return s&&s.children.forEach(r=>e[r.value.outlet]=r),e}var Ys=class extends Xs{constructor(e,r){super(e),this.snapshot=r,Pn(this,e)}toString(){return this.snapshot.toString()}};function Ya(s){let e=Bc(s),r=new tt([new si("",{})]),t=new tt({}),i=new tt({}),n=new tt({}),h=new tt(""),v=new Ke(r,t,n,h,i,Ae,s,e.root);return v.snapshot=e.root,new Ys(new at(v,[]),e)}function Bc(s){let e={},r={},t={},i="",n=new fi([],e,t,i,r,Ae,s,null,{});return new Zs("",new at(n,[]))}var Ke=class{constructor(e,r,t,i,n,h,v,q){this.urlSubject=e,this.paramsSubject=r,this.queryParamsSubject=t,this.fragmentSubject=i,this.dataSubject=n,this.outlet=h,this.component=v,this._futureSnapshot=q,this.title=this.dataSubject?.pipe(ke(B=>B[es]))??Se(void 0),this.url=e,this.params=r,this.queryParams=t,this.fragment=i,this.data=n}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ke(e=>mi(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ke(e=>mi(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function qs(s,e,r="emptyOnly"){let t,{routeConfig:i}=s;return e!==null&&(r==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?t={params:we(we({},e.params),s.params),data:we(we({},e.data),s.data),resolve:we(we(we(we({},s.data),e.data),i?.data),s._resolvedData)}:t={params:we({},s.params),data:we({},s.data),resolve:we(we({},s.data),s._resolvedData??{})},i&&Za(i)&&(t.resolve[es]=i.title),t}var fi=class{get title(){return this.data?.[es]}constructor(e,r,t,i,n,h,v,q,B){this.url=e,this.params=r,this.queryParams=t,this.fragment=i,this.data=n,this.outlet=h,this.component=v,this.routeConfig=q,this._resolve=B}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=mi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=mi(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(t=>t.toString()).join("/"),r=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${r}')`}},Zs=class extends Xs{constructor(e,r){super(r),this.url=e,Pn(this,r)}toString(){return qa(this._root)}};function Pn(s,e){e.value._routerState=s,e.children.forEach(r=>Pn(s,r))}function qa(s){let e=s.children.length>0?` { ${s.children.map(qa).join(", ")} } `:"";return`${s.value}${e}`}function rn(s){if(s.snapshot){let e=s.snapshot,r=s._futureSnapshot;s.snapshot=r,xt(e.queryParams,r.queryParams)||s.queryParamsSubject.next(r.queryParams),e.fragment!==r.fragment&&s.fragmentSubject.next(r.fragment),xt(e.params,r.params)||s.paramsSubject.next(r.params),pc(e.url,r.url)||s.urlSubject.next(r.url),xt(e.data,r.data)||s.dataSubject.next(r.data)}else s.snapshot=s._futureSnapshot,s.dataSubject.next(s._futureSnapshot.data)}function Sn(s,e){let r=xt(s.params,e.params)&&yc(s.url,e.url),t=!s.parent!=!e.parent;return r&&!t&&(!s.parent||Sn(s.parent,e.parent))}function Za(s){return typeof s.title=="string"||s.title===null}var zc=(()=>{let e=class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ae,this.activateEvents=new yt,this.deactivateEvents=new yt,this.attachEvents=new yt,this.detachEvents=new yt,this.parentContexts=xe(is),this.location=xe(ki),this.changeDetector=xe(ti),this.inputBinder=xe(er,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){let{firstChange:i,previousValue:n}=t.name;if(i)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Ne(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Ne(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Ne(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,i){this.activated=t,this._activatedRoute=i,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,i){if(this.isActivated)throw new Ne(4013,!1);this._activatedRoute=t;let n=this.location,v=t.snapshot.component,q=this.parentContexts.getOrCreateContext(this.name).children,B=new An(t,q,n.injector);this.activated=n.createComponent(v,{index:n.length,injector:B,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275dir=Et({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]});let s=e;return s})(),An=class s{__ngOutletInjector(e){return new s(this.route,this.childContexts,e)}constructor(e,r,t){this.route=e,this.childContexts=r,this.parent=t}get(e,r){return e===Ke?this.route:e===is?this.childContexts:this.parent.get(e,r)}},er=new Te(""),Ta=(()=>{let e=class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:i}=t,n=hs([i.queryParams,i.params,i.data]).pipe(nt(([h,v,q],B)=>(q=we(we(we({},h),v),q),B===0?Se(q):Promise.resolve(q)))).subscribe(h=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==i||i.component===null){this.unsubscribeFromRouteData(t);return}let v=Bo(i.component);if(!v){this.unsubscribeFromRouteData(t);return}for(let{templateName:q}of v.inputs)t.activatedComponentRef.setInput(q,h[q])});this.outletDataSubscriptions.set(t,n)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function Uc(s,e,r){let t=qi(s,e._root,r?r._root:void 0);return new Ys(t,e)}function qi(s,e,r){if(r&&s.shouldReuseRoute(e.value,r.value.snapshot)){let t=r.value;t._futureSnapshot=e.value;let i=_c(s,e,r);return new at(t,i)}else{if(s.shouldAttach(e.value)){let n=s.retrieve(e.value);if(n!==null){let h=n.route;return h.value._futureSnapshot=e.value,h.children=e.children.map(v=>qi(s,v)),h}}let t=$c(e.value),i=e.children.map(n=>qi(s,n));return new at(t,i)}}function _c(s,e,r){return e.children.map(t=>{for(let i of r.children)if(s.shouldReuseRoute(t.value,i.value.snapshot))return qi(s,t,i);return qi(s,t)})}function $c(s){return new Ke(new tt(s.url),new tt(s.params),new tt(s.queryParams),new tt(s.fragment),new tt(s.data),s.outlet,s.component,s)}var Zi=class{constructor(e,r){this.redirectTo=e,this.navigationBehaviorOptions=r}},Ka="ngNavigationCancelingError";function Ks(s,e){let{redirectTo:r,navigationBehaviorOptions:t}=Hi(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=Ja(!1,lt.Redirect);return i.url=r,i.navigationBehaviorOptions=t,i}function Ja(s,e){let r=new Error(`NavigationCancelingError: ${s||""}`);return r[Ka]=!0,r.cancellationCode=e,r}function Wc(s){return Qa(s)&&Hi(s.url)}function Qa(s){return!!s&&s[Ka]}var Gc=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275cmp=oo({type:e,selectors:[["ng-component"]],standalone:!0,features:[Oo],decls:1,vars:0,template:function(i,n){i&1&&ko(0,"router-outlet")},dependencies:[zc],encapsulation:2});let s=e;return s})();function Hc(s,e){return s.providers&&!s._injector&&(s._injector=Dr(s.providers,e,`Route: ${s.path}`)),s._injector??e}function In(s){let e=s.children&&s.children.map(In),r=e?Ue(we({},s),{children:e}):we({},s);return!r.component&&!r.loadComponent&&(e||r.loadChildren)&&r.outlet&&r.outlet!==Ae&&(r.component=Gc),r}function mt(s){return s.outlet||Ae}function Vc(s,e){let r=s.filter(t=>mt(t)===e);return r.push(...s.filter(t=>mt(t)!==e)),r}function ss(s){if(!s)return null;if(s.routeConfig?._injector)return s.routeConfig._injector;for(let e=s.parent;e;e=e.parent){let r=e.routeConfig;if(r?._loadedInjector)return r._loadedInjector;if(r?._injector)return r._injector}return null}var Xc=(s,e,r,t)=>ke(i=>(new En(e,i.targetRouterState,i.currentRouterState,r,t).activate(s),i)),En=class{constructor(e,r,t,i,n){this.routeReuseStrategy=e,this.futureState=r,this.currState=t,this.forwardEvent=i,this.inputBindingEnabled=n}activate(e){let r=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(r,t,e),rn(this.futureState.root),this.activateChildRoutes(r,t,e)}deactivateChildRoutes(e,r,t){let i=ui(r);e.children.forEach(n=>{let h=n.value.outlet;this.deactivateRoutes(n,i[h],t),delete i[h]}),Object.values(i).forEach(n=>{this.deactivateRouteAndItsChildren(n,t)})}deactivateRoutes(e,r,t){let i=e.value,n=r?r.value:null;if(i===n)if(i.component){let h=t.getContext(i.outlet);h&&this.deactivateChildRoutes(e,r,h.children)}else this.deactivateChildRoutes(e,r,t);else n&&this.deactivateRouteAndItsChildren(r,t)}deactivateRouteAndItsChildren(e,r){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,r):this.deactivateRouteAndOutlet(e,r)}detachAndStoreRouteSubtree(e,r){let t=r.getContext(e.value.outlet),i=t&&e.value.component?t.children:r,n=ui(e);for(let h of Object.values(n))this.deactivateRouteAndItsChildren(h,i);if(t&&t.outlet){let h=t.outlet.detach(),v=t.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:h,route:e,contexts:v})}}deactivateRouteAndOutlet(e,r){let t=r.getContext(e.value.outlet),i=t&&e.value.component?t.children:r,n=ui(e);for(let h of Object.values(n))this.deactivateRouteAndItsChildren(h,i);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(e,r,t){let i=ui(r);e.children.forEach(n=>{this.activateRoutes(n,i[n.value.outlet],t),this.forwardEvent(new xn(n.value.snapshot))}),e.children.length&&this.forwardEvent(new vn(e.value.snapshot))}activateRoutes(e,r,t){let i=e.value,n=r?r.value:null;if(rn(i),i===n)if(i.component){let h=t.getOrCreateContext(i.outlet);this.activateChildRoutes(e,r,h.children)}else this.activateChildRoutes(e,r,t);else if(i.component){let h=t.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let v=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),h.children.onOutletReAttached(v.contexts),h.attachRef=v.componentRef,h.route=v.route.value,h.outlet&&h.outlet.attach(v.componentRef,v.route.value),rn(v.route.value),this.activateChildRoutes(e,null,h.children)}else{let v=ss(i.snapshot);h.attachRef=null,h.route=i,h.injector=v??h.injector,h.outlet&&h.outlet.activateWith(i,h.injector),this.activateChildRoutes(e,null,h.children)}}else this.activateChildRoutes(e,null,t)}},Js=class{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},gi=class{constructor(e,r){this.component=e,this.route=r}};function Yc(s,e,r){let t=s._root,i=e?e._root:null;return Ui(t,i,r,[t.value])}function qc(s){let e=s.routeConfig?s.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:s,guards:e}}function wi(s,e){let r=Symbol(),t=e.get(s,r);return t===r?typeof s=="function"&&!ro(s)?s:e.get(s):t}function Ui(s,e,r,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let n=ui(e);return s.children.forEach(h=>{Zc(h,n[h.value.outlet],r,t.concat([h.value]),i),delete n[h.value.outlet]}),Object.entries(n).forEach(([h,v])=>Gi(v,r.getContext(h),i)),i}function Zc(s,e,r,t,i={canDeactivateChecks:[],canActivateChecks:[]}){let n=s.value,h=e?e.value:null,v=r?r.getContext(s.value.outlet):null;if(h&&n.routeConfig===h.routeConfig){let q=Kc(h,n,n.routeConfig.runGuardsAndResolvers);q?i.canActivateChecks.push(new Js(t)):(n.data=h.data,n._resolvedData=h._resolvedData),n.component?Ui(s,e,v?v.children:null,t,i):Ui(s,e,r,t,i),q&&v&&v.outlet&&v.outlet.isActivated&&i.canDeactivateChecks.push(new gi(v.outlet.component,h))}else h&&Gi(e,v,i),i.canActivateChecks.push(new Js(t)),n.component?Ui(s,null,v?v.children:null,t,i):Ui(s,null,r,t,i);return i}function Kc(s,e,r){if(typeof r=="function")return r(s,e);switch(r){case"pathParamsChange":return!ri(s.url,e.url);case"pathParamsOrQueryParamsChange":return!ri(s.url,e.url)||!xt(s.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sn(s,e)||!xt(s.queryParams,e.queryParams);case"paramsChange":default:return!Sn(s,e)}}function Gi(s,e,r){let t=ui(s),i=s.value;Object.entries(t).forEach(([n,h])=>{i.component?e?Gi(h,e.children.getContext(n),r):Gi(h,null,r):Gi(h,e,r)}),i.component?e&&e.outlet&&e.outlet.isActivated?r.canDeactivateChecks.push(new gi(e.outlet.component,i)):r.canDeactivateChecks.push(new gi(null,i)):r.canDeactivateChecks.push(new gi(null,i))}function rs(s){return typeof s=="function"}function Jc(s){return typeof s=="boolean"}function Qc(s){return s&&rs(s.canLoad)}function ed(s){return s&&rs(s.canActivate)}function td(s){return s&&rs(s.canActivateChild)}function id(s){return s&&rs(s.canDeactivate)}function sd(s){return s&&rs(s.canMatch)}function el(s){return s instanceof Kn||s?.name==="EmptyError"}var Bs=Symbol("INITIAL_VALUE");function xi(){return nt(s=>hs(s.map(e=>e.pipe(oi(1),io(Bs)))).pipe(ke(e=>{for(let r of e)if(r!==!0){if(r===Bs)return Bs;if(r===!1||rd(r))return r}return!0}),St(e=>e!==Bs),oi(1)))}function rd(s){return Hi(s)||s instanceof Zi}function nd(s,e){return rt(r=>{let{targetSnapshot:t,currentSnapshot:i,guards:{canActivateChecks:n,canDeactivateChecks:h}}=r;return h.length===0&&n.length===0?Se(Ue(we({},r),{guardsResult:!0})):od(h,t,i,s).pipe(rt(v=>v&&Jc(v)?ad(t,n,s,e):Se(v)),ke(v=>Ue(we({},r),{guardsResult:v})))})}function od(s,e,r,t){return Qe(s).pipe(rt(i=>ud(i.component,i.route,r,e,t)),jt(i=>i!==!0,!0))}function ad(s,e,r,t){return Qe(e).pipe(Nt(i=>Jn(hd(i.route.parent,t),ld(i.route,t),dd(s,i.path,r),cd(s,i.route,r))),jt(i=>i!==!0,!0))}function ld(s,e){return s!==null&&e&&e(new bn(s)),Se(!0)}function hd(s,e){return s!==null&&e&&e(new yn(s)),Se(!0)}function cd(s,e,r){let t=e.routeConfig?e.routeConfig.canActivate:null;if(!t||t.length===0)return Se(!0);let i=t.map(n=>dr(()=>{let h=ss(e)??r,v=wi(n,h),q=ed(v)?v.canActivate(e,s):dt(h,()=>v(e,s));return Xt(q).pipe(jt())}));return Se(i).pipe(xi())}function dd(s,e,r){let t=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(h=>qc(h)).filter(h=>h!==null).map(h=>dr(()=>{let v=h.guards.map(q=>{let B=ss(h.node)??r,Y=wi(q,B),_=td(Y)?Y.canActivateChild(t,s):dt(B,()=>Y(t,s));return Xt(_).pipe(jt())});return Se(v).pipe(xi())}));return Se(n).pipe(xi())}function ud(s,e,r,t,i){let n=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!n||n.length===0)return Se(!0);let h=n.map(v=>{let q=ss(e)??i,B=wi(v,q),Y=id(B)?B.canDeactivate(s,e,r,t):dt(q,()=>B(s,e,r,t));return Xt(Y).pipe(jt())});return Se(h).pipe(xi())}function pd(s,e,r,t){let i=e.canLoad;if(i===void 0||i.length===0)return Se(!0);let n=i.map(h=>{let v=wi(h,s),q=Qc(v)?v.canLoad(e,r):dt(s,()=>v(e,r));return Xt(q)});return Se(n).pipe(xi(),tl(t))}function tl(s){return qn(Ge(e=>{if(typeof e!="boolean")throw Ks(s,e)}),ke(e=>e===!0))}function fd(s,e,r,t){let i=e.canMatch;if(!i||i.length===0)return Se(!0);let n=i.map(h=>{let v=wi(h,s),q=sd(v)?v.canMatch(e,r):dt(s,()=>v(e,r));return Xt(q)});return Se(n).pipe(xi(),tl(t))}var Ki=class{constructor(e){this.segmentGroup=e||null}},Ji=class extends Error{constructor(e){super(),this.urlTree=e}};function di(s){return Si(new Ki(s))}function gd(s){return Si(new Ne(4e3,!1))}function md(s){return Si(Ja(!1,lt.GuardRejected))}var Mn=class{constructor(e,r){this.urlSerializer=e,this.urlTree=r}lineralizeSegments(e,r){let t=[],i=r.root;for(;;){if(t=t.concat(i.segments),i.numberOfChildren===0)return Se(t);if(i.numberOfChildren>1||!i.children[Ae])return gd(`${e.redirectTo}`);i=i.children[Ae]}}applyRedirectCommands(e,r,t,i,n){if(typeof r!="string"){let v=r,{queryParams:q,fragment:B,routeConfig:Y,url:_,outlet:H,params:E,data:N,title:z}=i,k=dt(n,()=>v({params:E,data:N,queryParams:q,fragment:B,routeConfig:Y,url:_,outlet:H,title:z}));if(k instanceof Ht)throw new Ji(k);r=k}let h=this.applyRedirectCreateUrlTree(r,this.urlSerializer.parse(r),e,t);if(r[0]==="/")throw new Ji(h);return h}applyRedirectCreateUrlTree(e,r,t,i){let n=this.createSegmentGroup(e,r.root,t,i);return new Ht(n,this.createQueryParams(r.queryParams,this.urlTree.queryParams),r.fragment)}createQueryParams(e,r){let t={};return Object.entries(e).forEach(([i,n])=>{if(typeof n=="string"&&n[0]===":"){let v=n.substring(1);t[i]=r[v]}else t[i]=n}),t}createSegmentGroup(e,r,t,i){let n=this.createSegments(e,r.segments,t,i),h={};return Object.entries(r.children).forEach(([v,q])=>{h[v]=this.createSegmentGroup(e,q,t,i)}),new Pe(n,h)}createSegments(e,r,t,i){return r.map(n=>n.path[0]===":"?this.findPosParam(e,n,i):this.findOrReturn(n,t))}findPosParam(e,r,t){let i=t[r.path.substring(1)];if(!i)throw new Ne(4001,!1);return i}findOrReturn(e,r){let t=0;for(let i of r){if(i.path===e.path)return r.splice(t),i;t++}return e}},Tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function yd(s,e,r,t,i){let n=Ln(s,e,r);return n.matched?(t=Hc(e,t),fd(t,e,r,i).pipe(ke(h=>h===!0?n:we({},Tn)))):Se(n)}function Ln(s,e,r){if(e.path==="**")return vd(r);if(e.path==="")return e.pathMatch==="full"&&(s.hasChildren()||r.length>0)?we({},Tn):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};let i=(e.matcher||uc)(r,s,e);if(!i)return we({},Tn);let n={};Object.entries(i.posParams??{}).forEach(([v,q])=>{n[v]=q.path});let h=i.consumed.length>0?we(we({},n),i.consumed[i.consumed.length-1].parameters):n;return{matched:!0,consumedSegments:i.consumed,remainingSegments:r.slice(i.consumed.length),parameters:h,positionalParamSegments:i.posParams??{}}}function vd(s){return{matched:!0,parameters:s.length>0?Fa(s).parameters:{},consumedSegments:s,remainingSegments:[],positionalParamSegments:{}}}function ka(s,e,r,t){return r.length>0&&wd(s,r,t)?{segmentGroup:new Pe(e,xd(t,new Pe(r,s.children))),slicedSegments:[]}:r.length===0&&Dd(s,r,t)?{segmentGroup:new Pe(s.segments,bd(s,r,t,s.children)),slicedSegments:r}:{segmentGroup:new Pe(s.segments,s.children),slicedSegments:r}}function bd(s,e,r,t){let i={};for(let n of r)if(tr(s,e,n)&&!t[mt(n)]){let h=new Pe([],{});i[mt(n)]=h}return we(we({},t),i)}function xd(s,e){let r={};r[Ae]=e;for(let t of s)if(t.path===""&&mt(t)!==Ae){let i=new Pe([],{});r[mt(t)]=i}return r}function wd(s,e,r){return r.some(t=>tr(s,e,t)&&mt(t)!==Ae)}function Dd(s,e,r){return r.some(t=>tr(s,e,t))}function tr(s,e,r){return(s.hasChildren()||e.length>0)&&r.pathMatch==="full"?!1:r.path===""}function Cd(s,e,r,t){return mt(s)!==t&&(t===Ae||!tr(e,r,s))?!1:Ln(e,s,r).matched}function Sd(s,e,r){return e.length===0&&!s.children[r]}var kn=class{};function Ad(s,e,r,t,i,n,h="emptyOnly"){return new Rn(s,e,r,t,i,h,n).recognize()}var Ed=31,Rn=class{constructor(e,r,t,i,n,h,v){this.injector=e,this.configLoader=r,this.rootComponentType=t,this.config=i,this.urlTree=n,this.paramsInheritanceStrategy=h,this.urlSerializer=v,this.applyRedirects=new Mn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(e){return new Ne(4002,`'${e.segmentGroup}'`)}recognize(){let e=ka(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ke(({children:r,rootSnapshot:t})=>{let i=new at(t,r),n=new Zs("",i),h=Oc(t,[],this.urlTree.queryParams,this.urlTree.fragment);return h.queryParams=this.urlTree.queryParams,n.url=this.urlSerializer.serialize(h),{state:n,tree:h}}))}match(e){let r=new fi([],Object.freeze({}),Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ae,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Ae,r).pipe(ke(t=>({children:t,rootSnapshot:r})),At(t=>{if(t instanceof Ji)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Ki?this.noMatchError(t):t}))}processSegmentGroup(e,r,t,i,n){return t.segments.length===0&&t.hasChildren()?this.processChildren(e,r,t,n):this.processSegment(e,r,t,t.segments,i,!0,n).pipe(ke(h=>h instanceof at?[h]:[]))}processChildren(e,r,t,i){let n=[];for(let h of Object.keys(t.children))h==="primary"?n.unshift(h):n.push(h);return Qe(n).pipe(Nt(h=>{let v=t.children[h],q=Vc(r,h);return this.processSegmentGroup(e,q,v,h,i)}),to((h,v)=>(h.push(...v),h)),ur(null),eo(),rt(h=>{if(h===null)return di(t);let v=il(h);return Md(v),Se(v)}))}processSegment(e,r,t,i,n,h,v){return Qe(r).pipe(Nt(q=>this.processSegmentAgainstRoute(q._injector??e,r,q,t,i,n,h,v).pipe(At(B=>{if(B instanceof Ki)return Se(null);throw B}))),jt(q=>!!q),At(q=>{if(el(q))return Sd(t,i,n)?Se(new kn):di(t);throw q}))}processSegmentAgainstRoute(e,r,t,i,n,h,v,q){return Cd(t,i,n,h)?t.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,t,n,h,q):this.allowRedirects&&v?this.expandSegmentAgainstRouteUsingRedirect(e,i,r,t,n,h,q):di(i):di(i)}expandSegmentAgainstRouteUsingRedirect(e,r,t,i,n,h,v){let{matched:q,parameters:B,consumedSegments:Y,positionalParamSegments:_,remainingSegments:H}=Ln(r,i,n);if(!q)return di(r);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ed&&(this.allowRedirects=!1));let E=new fi(n,B,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Ra(i),mt(i),i.component??i._loadedComponent??null,i,Oa(i)),N=qs(E,v,this.paramsInheritanceStrategy);E.params=Object.freeze(N.params),E.data=Object.freeze(N.data);let z=this.applyRedirects.applyRedirectCommands(Y,i.redirectTo,_,E,e);return this.applyRedirects.lineralizeSegments(i,z).pipe(rt(k=>this.processSegment(e,t,r,k.concat(H),h,!1,v)))}matchSegmentAgainstRoute(e,r,t,i,n,h){let v=yd(r,t,i,e,this.urlSerializer);return t.path==="**"&&(r.children={}),v.pipe(nt(q=>q.matched?(e=t._injector??e,this.getChildConfig(e,t,i).pipe(nt(({routes:B})=>{let Y=t._loadedInjector??e,{parameters:_,consumedSegments:H,remainingSegments:E}=q,N=new fi(H,_,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Ra(t),mt(t),t.component??t._loadedComponent??null,t,Oa(t)),z=qs(N,h,this.paramsInheritanceStrategy);N.params=Object.freeze(z.params),N.data=Object.freeze(z.data);let{segmentGroup:k,slicedSegments:x}=ka(r,H,E,B);if(x.length===0&&k.hasChildren())return this.processChildren(Y,B,k,N).pipe(ke(L=>new at(N,L)));if(B.length===0&&x.length===0)return Se(new at(N,[]));let P=mt(t)===n;return this.processSegment(Y,B,k,x,P?Ae:n,!0,N).pipe(ke(L=>new at(N,L instanceof at?[L]:[])))}))):di(r)))}getChildConfig(e,r,t){return r.children?Se({routes:r.children,injector:e}):r.loadChildren?r._loadedRoutes!==void 0?Se({routes:r._loadedRoutes,injector:r._loadedInjector}):pd(e,r,t,this.urlSerializer).pipe(rt(i=>i?this.configLoader.loadChildren(e,r).pipe(Ge(n=>{r._loadedRoutes=n.routes,r._loadedInjector=n.injector})):md(r))):Se({routes:[],injector:e})}};function Md(s){s.sort((e,r)=>e.value.outlet===Ae?-1:r.value.outlet===Ae?1:e.value.outlet.localeCompare(r.value.outlet))}function Td(s){let e=s.value.routeConfig;return e&&e.path===""}function il(s){let e=[],r=new Set;for(let t of s){if(!Td(t)){e.push(t);continue}let i=e.find(n=>t.value.routeConfig===n.value.routeConfig);i!==void 0?(i.children.push(...t.children),r.add(i)):e.push(t)}for(let t of r){let i=il(t.children);e.push(new at(t.value,i))}return e.filter(t=>!r.has(t))}function Ra(s){return s.data||{}}function Oa(s){return s.resolve||{}}function kd(s,e,r,t,i,n){return rt(h=>Ad(s,e,r,t,h.extractedUrl,i,n).pipe(ke(({state:v,tree:q})=>Ue(we({},h),{targetSnapshot:v,urlAfterRedirects:q}))))}function Rd(s,e){return rt(r=>{let{targetSnapshot:t,guards:{canActivateChecks:i}}=r;if(!i.length)return Se(r);let n=new Set(i.map(q=>q.route)),h=new Set;for(let q of n)if(!h.has(q))for(let B of sl(q))h.add(B);let v=0;return Qe(h).pipe(Nt(q=>n.has(q)?Od(q,t,s,e):(q.data=qs(q,q.parent,s).resolve,Se(void 0))),Ge(()=>v++),pr(1),rt(q=>v===h.size?Se(r):Ft))})}function sl(s){let e=s.children.map(r=>sl(r)).flat();return[s,...e]}function Od(s,e,r,t){let i=s.routeConfig,n=s._resolve;return i?.title!==void 0&&!Za(i)&&(n[es]=i.title),Pd(n,s,e,t).pipe(ke(h=>(s._resolvedData=h,s.data=qs(s,s.parent,r).resolve,null)))}function Pd(s,e,r,t){let i=an(s);if(i.length===0)return Se({});let n={};return Qe(i).pipe(rt(h=>Id(s[h],e,r,t).pipe(jt(),Ge(v=>{if(v instanceof Zi)throw Ks(new yi,v);n[h]=v}))),pr(1),Qn(n),At(h=>el(h)?Ft:Si(h)))}function Id(s,e,r,t){let i=ss(e)??t,n=wi(s,i),h=n.resolve?n.resolve(e,r):dt(i,()=>n(e,r));return Xt(h)}function nn(s){return nt(e=>{let r=s(e);return r?Qe(r).pipe(ke(()=>e)):Se(e)})}var rl=(()=>{let e=class e{buildTitle(t){let i,n=t.root;for(;n!==void 0;)i=this.getResolvedTitleForRoute(n)??i,n=n.children.find(h=>h.outlet===Ae);return i}getResolvedTitleForRoute(t){return t.data[es]}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Ld),providedIn:"root"});let s=e;return s})(),Ld=(()=>{let e=class e extends rl{constructor(t){super(),this.title=t}updateTitle(t){let i=this.buildTitle(t);i!==void 0&&this.title.setTitle(i)}};e.\u0275fac=function(i){return new(i||e)(De(Ca))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ns=new Te("",{providedIn:"root",factory:()=>({})}),Qi=new Te(""),Fn=(()=>{let e=class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=xe(bs)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Se(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);let i=Xt(t.loadComponent()).pipe(ke(nl),Ge(h=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=h}),ai(()=>{this.componentLoaders.delete(t)})),n=new hr(i,()=>new Lt).pipe(lr());return this.componentLoaders.set(t,n),n}loadChildren(t,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Se({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let h=Fd(i,this.compiler,t,this.onLoadEndListener).pipe(ai(()=>{this.childrenLoaders.delete(i)})),v=new hr(h,()=>new Lt).pipe(lr());return this.childrenLoaders.set(i,v),v}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Fd(s,e,r,t){return Xt(s.loadChildren()).pipe(ke(nl),rt(i=>i instanceof Ao||Array.isArray(i)?Se(i):Qe(e.compileModuleAsync(i))),ke(i=>{t&&t(s);let n,h,v=!1;return Array.isArray(i)?(h=i,v=!0):(n=i.create(r).injector,h=n.get(Qi,[],{optional:!0,self:!0}).flat()),{routes:h.map(In),injector:n}}))}function Nd(s){return s&&typeof s=="object"&&"default"in s}function nl(s){return Nd(s)?s.default:s}var Nn=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(jd),providedIn:"root"});let s=e;return s})(),jd=(()=>{let e=class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,i){return t}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ol=new Te(""),al=new Te("");function Bd(s,e,r){let t=s.get(al),i=s.get(Ve);return s.get(it).runOutsideAngular(()=>{if(!i.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(B=>setTimeout(B));let n,h=new Promise(B=>{n=B}),v=i.startViewTransition(()=>(n(),zd(s))),{onViewTransitionCreated:q}=t;return q&&dt(s,()=>q({transition:v,from:e,to:r})),h})}function zd(s){return new Promise(e=>{wr(()=>setTimeout(e),{injector:s,phase:Co.Read})})}var Ud=new Te(""),jn=(()=>{let e=class e{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Lt,this.transitionAbortSubject=new Lt,this.configLoader=xe(Fn),this.environmentInjector=xe(zt),this.urlSerializer=xe(ts),this.rootContexts=xe(is),this.location=xe(ci),this.inputBindingEnabled=xe(er,{optional:!0})!==null,this.titleStrategy=xe(rl),this.options=xe(ns,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=xe(Nn),this.createViewTransition=xe(ol,{optional:!0}),this.navigationErrorHandler=xe(Ud,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Se(void 0),this.rootComponentType=null;let t=n=>this.events.next(new gn(n)),i=n=>this.events.next(new mn(n));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=t}complete(){this.transitions?.complete()}handleNavigationRequest(t){let i=++this.navigationId;this.transitions?.next(Ue(we(we({},this.transitions.value),t),{id:i}))}setupNavigations(t,i,n){return this.transitions=new tt({id:0,currentUrlTree:i,currentRawUrl:i,extractedUrl:this.urlHandlingStrategy.extract(i),urlAfterRedirects:this.urlHandlingStrategy.extract(i),rawUrl:i,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Wi,restoredState:null,currentSnapshot:n.snapshot,targetSnapshot:null,currentRouterState:n,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(St(h=>h.id!==0),ke(h=>Ue(we({},h),{extractedUrl:this.urlHandlingStrategy.extract(h.rawUrl)})),nt(h=>{let v=!1,q=!1;return Se(h).pipe(nt(B=>{if(this.navigationId>h.id)return this.cancelNavigationTransition(h,"",lt.SupersededByNewNavigation),Ft;this.currentTransition=h,this.currentNavigation={id:B.id,initialUrl:B.rawUrl,extractedUrl:B.extractedUrl,trigger:B.source,extras:B.extras,previousNavigation:this.lastSuccessfulNavigation?Ue(we({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let Y=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),_=B.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!Y&&_!=="reload"){let H="";return this.events.next(new Vt(B.id,this.urlSerializer.serialize(B.rawUrl),H,Gs.IgnoredSameUrlNavigation)),B.resolve(!1),Ft}if(this.urlHandlingStrategy.shouldProcessUrl(B.rawUrl))return Se(B).pipe(nt(H=>{let E=this.transitions?.getValue();return this.events.next(new vi(H.id,this.urlSerializer.serialize(H.extractedUrl),H.source,H.restoredState)),E!==this.transitions?.getValue()?Ft:Promise.resolve(H)}),kd(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),Ge(H=>{h.targetSnapshot=H.targetSnapshot,h.urlAfterRedirects=H.urlAfterRedirects,this.currentNavigation=Ue(we({},this.currentNavigation),{finalUrl:H.urlAfterRedirects});let E=new Hs(H.id,this.urlSerializer.serialize(H.extractedUrl),this.urlSerializer.serialize(H.urlAfterRedirects),H.targetSnapshot);this.events.next(E)}));if(Y&&this.urlHandlingStrategy.shouldProcessUrl(B.currentRawUrl)){let{id:H,extractedUrl:E,source:N,restoredState:z,extras:k}=B,x=new vi(H,this.urlSerializer.serialize(E),N,z);this.events.next(x);let P=Ya(this.rootComponentType).snapshot;return this.currentTransition=h=Ue(we({},B),{targetSnapshot:P,urlAfterRedirects:E,extras:Ue(we({},k),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=E,Se(h)}else{let H="";return this.events.next(new Vt(B.id,this.urlSerializer.serialize(B.extractedUrl),H,Gs.IgnoredByUrlHandlingStrategy)),B.resolve(!1),Ft}}),Ge(B=>{let Y=new dn(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects),B.targetSnapshot);this.events.next(Y)}),ke(B=>(this.currentTransition=h=Ue(we({},B),{guards:Yc(B.targetSnapshot,B.currentSnapshot,this.rootContexts)}),h)),nd(this.environmentInjector,B=>this.events.next(B)),Ge(B=>{if(h.guardsResult=B.guardsResult,B.guardsResult&&typeof B.guardsResult!="boolean")throw Ks(this.urlSerializer,B.guardsResult);let Y=new un(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects),B.targetSnapshot,!!B.guardsResult);this.events.next(Y)}),St(B=>B.guardsResult?!0:(this.cancelNavigationTransition(B,"",lt.GuardRejected),!1)),nn(B=>{if(B.guards.canActivateChecks.length)return Se(B).pipe(Ge(Y=>{let _=new pn(Y.id,this.urlSerializer.serialize(Y.extractedUrl),this.urlSerializer.serialize(Y.urlAfterRedirects),Y.targetSnapshot);this.events.next(_)}),nt(Y=>{let _=!1;return Se(Y).pipe(Rd(this.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>_=!0,complete:()=>{_||this.cancelNavigationTransition(Y,"",lt.NoDataFromResolver)}}))}),Ge(Y=>{let _=new fn(Y.id,this.urlSerializer.serialize(Y.extractedUrl),this.urlSerializer.serialize(Y.urlAfterRedirects),Y.targetSnapshot);this.events.next(_)}))}),nn(B=>{let Y=_=>{let H=[];_.routeConfig?.loadComponent&&!_.routeConfig._loadedComponent&&H.push(this.configLoader.loadComponent(_.routeConfig).pipe(Ge(E=>{_.component=E}),ke(()=>{})));for(let E of _.children)H.push(...Y(E));return H};return hs(Y(B.targetSnapshot.root)).pipe(ur(null),oi(1))}),nn(()=>this.afterPreactivation()),nt(()=>{let{currentSnapshot:B,targetSnapshot:Y}=h,_=this.createViewTransition?.(this.environmentInjector,B.root,Y.root);return _?Qe(_).pipe(ke(()=>h)):Se(h)}),ke(B=>{let Y=Uc(t.routeReuseStrategy,B.targetSnapshot,B.currentRouterState);return this.currentTransition=h=Ue(we({},B),{targetRouterState:Y}),this.currentNavigation.targetRouterState=Y,h}),Ge(()=>{this.events.next(new Yi)}),Xc(this.rootContexts,t.routeReuseStrategy,B=>this.events.next(B),this.inputBindingEnabled),oi(1),Ge({next:B=>{v=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new wt(B.id,this.urlSerializer.serialize(B.extractedUrl),this.urlSerializer.serialize(B.urlAfterRedirects))),this.titleStrategy?.updateTitle(B.targetRouterState.snapshot),B.resolve(!0)},complete:()=>{v=!0}}),so(this.transitionAbortSubject.pipe(Ge(B=>{throw B}))),ai(()=>{!v&&!q&&this.cancelNavigationTransition(h,"",lt.SupersededByNewNavigation),this.currentTransition?.id===h.id&&(this.currentNavigation=null,this.currentTransition=null)}),At(B=>{if(q=!0,Qa(B))this.events.next(new Pt(h.id,this.urlSerializer.serialize(h.extractedUrl),B.message,B.cancellationCode)),Wc(B)?this.events.next(new bi(B.url,B.navigationBehaviorOptions)):h.resolve(!1);else{let Y=new Xi(h.id,this.urlSerializer.serialize(h.extractedUrl),B,h.targetSnapshot??void 0);try{let _=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(Y));if(_ instanceof Zi){let{message:H,cancellationCode:E}=Ks(this.urlSerializer,_);this.events.next(new Pt(h.id,this.urlSerializer.serialize(h.extractedUrl),H,E)),this.events.next(new bi(_.redirectTo,_.navigationBehaviorOptions))}else{this.events.next(Y);let H=t.errorHandler(B);h.resolve(!!H)}}catch(_){this.options.resolveNavigationPromiseOnError?h.resolve(!1):h.reject(_)}}return Ft}))}))}cancelNavigationTransition(t,i,n){let h=new Pt(t.id,this.urlSerializer.serialize(t.extractedUrl),i,n);this.events.next(h),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function _d(s){return s!==Wi}var $d=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Wd),providedIn:"root"});let s=e;return s})(),On=class{shouldDetach(e){return!1}store(e,r){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,r){return e.routeConfig===r.routeConfig}},Wd=(()=>{let e=class e extends On{};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=mr(e)))(n||e)}})(),e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),ll=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:()=>xe(Gd),providedIn:"root"});let s=e;return s})(),Gd=(()=>{let e=class e extends ll{constructor(){super(...arguments),this.location=xe(ci),this.urlSerializer=xe(ts),this.options=xe(ns,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=xe(Nn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Ht,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Ya(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(i=>{i.type==="popstate"&&t(i.url,i.state)})}handleRouterEvent(t,i){if(t instanceof vi)this.stateMemento=this.createStateMemento();else if(t instanceof Vt)this.rawUrlTree=i.initialUrl;else if(t instanceof Hs){if(this.urlUpdateStrategy==="eager"&&!i.extras.skipLocationChange){let n=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl);this.setBrowserUrl(n,i)}}else t instanceof Yi?(this.currentUrlTree=i.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(i.finalUrl,i.initialUrl),this.routerState=i.targetRouterState,this.urlUpdateStrategy==="deferred"&&(i.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,i))):t instanceof Pt&&(t.code===lt.GuardRejected||t.code===lt.NoDataFromResolver)?this.restoreHistory(i):t instanceof Xi?this.restoreHistory(i,!0):t instanceof wt&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,i){let n=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(n)||i.extras.replaceUrl){let h=this.browserPageId,v=we(we({},i.extras.state),this.generateNgRouterState(i.id,h));this.location.replaceState(n,"",v)}else{let h=we(we({},i.extras.state),this.generateNgRouterState(i.id,this.browserPageId+1));this.location.go(n,"",h)}}restoreHistory(t,i=!1){if(this.canceledNavigationResolution==="computed"){let n=this.browserPageId,h=this.currentPageId-n;h!==0?this.location.historyGo(h):this.currentUrlTree===t.finalUrl&&h===0&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(i&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,i){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:i}:{navigationId:t}}};e.\u0275fac=(()=>{let t;return function(n){return(t||(t=mr(e)))(n||e)}})(),e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),_i=function(s){return s[s.COMPLETE=0]="COMPLETE",s[s.FAILED=1]="FAILED",s[s.REDIRECTING=2]="REDIRECTING",s}(_i||{});function hl(s,e){s.events.pipe(St(r=>r instanceof wt||r instanceof Pt||r instanceof Xi||r instanceof Vt),ke(r=>r instanceof wt||r instanceof Vt?_i.COMPLETE:(r instanceof Pt?r.code===lt.Redirect||r.code===lt.SupersededByNewNavigation:!1)?_i.REDIRECTING:_i.FAILED),St(r=>r!==_i.REDIRECTING),oi(1)).subscribe(()=>{e()})}function Hd(s){throw s}var Vd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Xd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},ht=(()=>{let e=class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.console=xe(ps),this.stateManager=xe(ll),this.options=xe(ns,{optional:!0})||{},this.pendingTasks=xe(cs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=xe(jn),this.urlSerializer=xe(ts),this.location=xe(ci),this.urlHandlingStrategy=xe(Nn),this._events=new Lt,this.errorHandler=this.options.errorHandler||Hd,this.navigated=!1,this.routeReuseStrategy=xe($d),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=xe(Qi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!xe(er,{optional:!0}),this.eventsSubscription=new Yn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(i=>{try{let n=this.navigationTransitions.currentTransition,h=this.navigationTransitions.currentNavigation;if(n!==null&&h!==null){if(this.stateManager.handleRouterEvent(i,h),i instanceof Pt&&i.code!==lt.Redirect&&i.code!==lt.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof wt)this.navigated=!0;else if(i instanceof bi){let v=i.navigationBehaviorOptions,q=this.urlHandlingStrategy.merge(i.url,n.currentRawUrl),B=we({info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_d(n.source)},v);this.scheduleNavigation(q,Wi,null,B,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}qd(i)&&this._events.next(i)}catch(n){this.navigationTransitions.transitionAbortSubject.next(n)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Wi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,i)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",i)},0)})}navigateToSyncWithBrowser(t,i,n){let h={replaceUrl:!0},v=n?.navigationId?n:null;if(n){let B=we({},n);delete B.navigationId,delete B.\u0275routerPageId,Object.keys(B).length!==0&&(h.state=B)}let q=this.parseUrl(t);this.scheduleNavigation(q,i,v,h)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(In),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,i={}){let{relativeTo:n,queryParams:h,fragment:v,queryParamsHandling:q,preserveFragment:B}=i,Y=B?this.currentUrlTree.fragment:v,_=null;switch(q){case"merge":_=we(we({},this.currentUrlTree.queryParams),h);break;case"preserve":_=this.currentUrlTree.queryParams;break;default:_=h||null}_!==null&&(_=this.removeEmptyProps(_));let H;try{let E=n?n.snapshot:this.routerState.snapshot.root;H=Ga(E)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),H=this.currentUrlTree.root}return Ha(H,t,_,Y??null)}navigateByUrl(t,i={skipLocationChange:!1}){let n=Hi(t)?t:this.parseUrl(t),h=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(h,Wi,null,i)}navigate(t,i={skipLocationChange:!1}){return Yd(t),this.navigateByUrl(this.createUrlTree(t,i),i)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.urlSerializer.parse("/")}}isActive(t,i){let n;if(i===!0?n=we({},Vd):i===!1?n=we({},Xd):n=i,Hi(t))return Sa(this.currentUrlTree,t,n);let h=this.parseUrl(t);return Sa(this.currentUrlTree,h,n)}removeEmptyProps(t){return Object.entries(t).reduce((i,[n,h])=>(h!=null&&(i[n]=h),i),{})}scheduleNavigation(t,i,n,h,v){if(this.disposed)return Promise.resolve(!1);let q,B,Y;v?(q=v.resolve,B=v.reject,Y=v.promise):Y=new Promise((H,E)=>{q=H,B=E});let _=this.pendingTasks.add();return hl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(_))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:h,resolve:q,reject:B,promise:Y,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Y.catch(H=>Promise.reject(H))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();function Yd(s){for(let e=0;e{let e=class e{constructor(t,i,n,h,v,q){this.router=t,this.route=i,this.tabIndexAttribute=n,this.renderer=h,this.el=v,this.locationStrategy=q,this.href=null,this.commands=null,this.onChanges=new Lt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;let B=v.nativeElement.tagName?.toLowerCase();this.isAnchorElement=B==="a"||B==="area",this.isAnchorElement?this.subscription=t.events.subscribe(Y=>{Y instanceof wt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){t!=null?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,i,n,h,v){let q=this.urlTree;if(q===null||this.isAnchorElement&&(t!==0||i||n||h||v||typeof this.target=="string"&&this.target!="_self"))return!0;let B={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(q,B),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.href=t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;let i=this.href===null?null:xo(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",i)}applyAttributeValue(t,i){let n=this.renderer,h=this.el.nativeElement;i!==null?n.setAttribute(h,t,i):n.removeAttribute(h,t)}get urlTree(){return this.commands===null?null:this.router.createUrlTree(this.commands,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}};e.\u0275fac=function(i){return new(i||e)(_e(ht),_e(Ke),yr("tabindex"),_e(ei),_e(Kt),_e(bt))},e.\u0275dir=Et({type:e,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(i,n){i&1&&Ro("click",function(v){return n.onClick(v.button,v.ctrlKey,v.shiftKey,v.altKey,v.metaKey)}),i&2&&Mo("target",n.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",Mt],skipLocationChange:[2,"skipLocationChange","skipLocationChange",Mt],replaceUrl:[2,"replaceUrl","replaceUrl",Mt],routerLink:"routerLink"},standalone:!0,features:[us,Zt]});let s=e;return s})();var Qs=class{},$p=(()=>{let e=class e{preload(t,i){return i().pipe(At(()=>Se(null)))}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Zd=(()=>{let e=class e{constructor(t,i,n,h,v){this.router=t,this.injector=n,this.preloadingStrategy=h,this.loader=v}setUpPreloading(){this.subscription=this.router.events.pipe(St(t=>t instanceof wt),Nt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,i){let n=[];for(let h of i){h.providers&&!h._injector&&(h._injector=Dr(h.providers,t,`Route: ${h.path}`));let v=h._injector??t,q=h._loadedInjector??v;(h.loadChildren&&!h._loadedRoutes&&h.canLoad===void 0||h.loadComponent&&!h._loadedComponent)&&n.push(this.preloadConfig(v,h)),(h.children||h._loadedRoutes)&&n.push(this.processRoutes(q,h.children??h._loadedRoutes))}return Qe(n).pipe(cr())}preloadConfig(t,i){return this.preloadingStrategy.preload(i,()=>{let n;i.loadChildren&&i.canLoad===void 0?n=this.loader.loadChildren(t,i):n=Se(null);let h=n.pipe(rt(v=>v===null?Se(void 0):(i._loadedRoutes=v.routes,i._loadedInjector=v.injector,this.processRoutes(v.injector??t,v.routes))));if(i.loadComponent&&!i._loadedComponent){let v=this.loader.loadComponent(i);return Qe([h,v]).pipe(cr())}else return h})}};e.\u0275fac=function(i){return new(i||e)(De(ht),De(bs),De(zt),De(Qs),De(Fn))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),cl=new Te(""),Kd=(()=>{let e=class e{constructor(t,i,n,h,v={}){this.urlSerializer=t,this.transitions=i,this.viewportScroller=n,this.zone=h,this.options=v,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=xe(zt),v.scrollPositionRestoration||="disabled",v.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof vi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof wt?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Vt&&t.code===Gs.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof Vs&&(t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,i){this.zone.runOutsideAngular(()=>st(this,null,function*(){yield new Promise(n=>{setTimeout(()=>{n()}),wr(()=>{n()},{injector:this.environmentInjector})}),this.zone.run(()=>{this.transitions.events.next(new Vs(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,i))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}};e.\u0275fac=function(i){wo()},e.\u0275prov=Ce({token:e,factory:e.\u0275fac});let s=e;return s})();function Wp(s,...e){return Mi([{provide:Qi,multi:!0,useValue:s},[],{provide:Ke,useFactory:dl,deps:[ht]},{provide:ys,multi:!0,useFactory:ul},e.map(r=>r.\u0275providers)])}function dl(s){return s.routerState.root}function Di(s,e){return{\u0275kind:s,\u0275providers:e}}function ul(){let s=xe(Ti);return e=>{let r=s.get(vs);if(e!==r.components[0])return;let t=s.get(ht),i=s.get(pl);s.get(Bn)===1&&t.initialNavigation(),s.get(fl,null,fr.Optional)?.setUpPreloading(),s.get(cl,null,fr.Optional)?.init(),t.resetRootComponentType(r.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var pl=new Te("",{factory:()=>new Lt}),Bn=new Te("",{providedIn:"root",factory:()=>1});function Jd(){return Di(2,[{provide:Bn,useValue:0},{provide:Sr,multi:!0,deps:[Ti],useFactory:e=>{let r=e.get(Yo,Promise.resolve());return()=>r.then(()=>new Promise(t=>{let i=e.get(ht),n=e.get(pl);hl(i,()=>{t(!0)}),e.get(jn).afterPreactivation=()=>(t(!0),n.closed?Se(void 0):n),i.initialNavigation()}))}}])}function Qd(){return Di(3,[{provide:Sr,multi:!0,useFactory:()=>{let e=xe(ht);return()=>{e.setUpLocationChangeListener()}}},{provide:Bn,useValue:2}])}var fl=new Te("");function eu(s){return Di(0,[{provide:fl,useExisting:Zd},{provide:Qs,useExisting:s}])}function Gp(){return Di(6,[{provide:bt,useClass:Br}])}function tu(){return Di(8,[Ta,{provide:er,useExisting:Ta}])}function iu(s){let e=[{provide:ol,useValue:Bd},{provide:al,useValue:we({skipNextTransition:!!s?.skipInitialTransition},s)}];return Di(9,e)}var Pa=new Te("ROUTER_FORROOT_GUARD"),su=[ci,{provide:ts,useClass:yi},ht,is,{provide:Ke,useFactory:dl,deps:[ht]},Fn,[]],Hp=(()=>{let e=class e{constructor(t){}static forRoot(t,i){return{ngModule:e,providers:[su,[],{provide:Qi,multi:!0,useValue:t},{provide:Pa,useFactory:au,deps:[[ht,new gr,new no]]},{provide:ns,useValue:i||{}},i?.useHash?nu():ou(),ru(),i?.preloadingStrategy?eu(i.preloadingStrategy).\u0275providers:[],i?.initialNavigation?lu(i):[],i?.bindToComponentInputs?tu().\u0275providers:[],i?.enableViewTransitions?iu().\u0275providers:[],hu()]}}static forChild(t){return{ngModule:e,providers:[{provide:Qi,multi:!0,useValue:t}]}}};e.\u0275fac=function(i){return new(i||e)(De(Pa,8))},e.\u0275mod=qt({type:e}),e.\u0275inj=Yt({});let s=e;return s})();function ru(){return{provide:cl,useFactory:()=>{let s=xe(ta),e=xe(it),r=xe(ns),t=xe(jn),i=xe(ts);return r.scrollOffset&&s.setOffset(r.scrollOffset),new Kd(i,t,s,e,r)}}}function nu(){return{provide:bt,useClass:Br}}function ou(){return{provide:bt,useClass:jr}}function au(s){return"guarded"}function lu(s){return[s.initialNavigation==="disabled"?Qd().\u0275providers:[],s.initialNavigation==="enabledBlocking"?Jd().\u0275providers:[]]}var Ia=new Te("");function hu(){return[{provide:Ia,useFactory:ul},{provide:ys,multi:!0,useExisting:Ia}]}var cu={en:"English",de:"German",cs:"Czech",ru:"Russian"},Xp=(()=>{let e=class e{constructor(t){this.i18n=t}transform(t){return this.i18n.get(t)}};e.\u0275fac=function(i){return new(i||e)(_e(zn,16))},e.\u0275pipe=Ei({name:"i18n",type:e,pure:!0,standalone:!0});let s=e;return s})(),zn=(()=>{let e=class e{constructor(){switch(this.current="en",window.navigator.language.toLowerCase()){case"en":this.current="ru";break;case"ru":this.current="ru";break;case"de":this.current="de";break;default:this.current="en";break}}getLanguageName(t){return cu[t]||""}get(t){return!sr[this.current]||!sr[this.current][t]?t:sr[this.current][t]}getLanguages(){return Object.keys(sr)}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})(),sr={en:{settingsImported:"Settings has been imported successfully! Page will be reloaded.",settingsReset:"Settings has been reset successfully! Page will be reloaded.",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",theme:"Theme",showLog:"Show log",server:"Server",saveFilters:"Save filters",exportSettings:"Export settings",importSettings:"Import settings",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"About",cancel:"Cancel",save:"Save",load:"Load",share:"Share",title:"Title",curSettings:"Current settings",newView:"New",language:"Language",dashboard:"Dashboard",folder:"Folder",signin:"Sign in",signout:"Logout",login:"Login",signinOAuth:"OAuth sign in",password:"Password",namespace:"Namespace",loading:"Loading...",search:"Search",accept:"Apply",close:"Close",dismiss:"Reset",home:"Home",zoom:"Zoom",resetSettings:"Reset settings",addToFavorites:"Add to favorites",removeFromFav:"Remove from favorites",refresh:"Refresh",showFolders:"Show folders",showTop:"Show top records",viewAs:"View as",count:"Count",filters:"Filters",setDefault:"Reset to default",dashColumns:"Column count",widgetHeight:"Widget height(px)",widgetHeightDyn:"Default: fit to window",noData:"No data to display",byRows:"Display by rows",by2columns:"Display by two columns",by3columns:"Display by three columns",by4columns:"Display by four columns",by5columns:"Display by five columns",by6columns:"Display by six columns",print:"Print...",fav:"Favorites",options:"Settings",gotoDeepSee:"Iris BI",showLegend:"Toggle legend",showPivot:"Show as pivot table",back:"Back",exclude:"Exclude",all:"All",interval:"Interval",not:"Not",from:"From",to:"To",metroStyle:"Metro UI",bgColor:"Background color",fntColor:"Font color",icon:"Icon",done:"Done",widget:"Widget",showImages:"Show images",dataSource:"Data source",hideTitle:"Hide title",showZero:"Set axis minimum to zero",showValues:"Show values",err:"Error",errWidgetRequest:"Unable to load widget data",errLoginRequired:"Please enter login",errPassRequired:"Please enter password",errUnauth:"Unknown login and password pair. Please try again",errNotFound:"Requested url not fount on server",errTimeout:"Request timeout",errWidgetNotSupported:"Widget is not supported",errNoWidgets:"No widgets received from server",errNoDashboards:"No dashboards in this namespace",shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],changeColors:"Change colors",fullscreen:"Toggle fullscreen",showKPI:"Show KPI",openAnalyzer:"Open analyzer",addWidget:"Add widget"},de:{settingsImported:"Einstellungen wurden erfolgreich importiert!",settingsReset:"Einstellungen wurden erfolgreich zur\xFCckgesetzt!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",theme:"Oberfl\xE4chendesign",showLog:"Log",server:"Server",saveFilters:"Filter speichern",exportSettings:"Export Einstellungen",importSettings:"Import Einstellungen",export:"Exportieren",pngImage:"als Bild (*.png)",svgImage:"als Bild (*.svg)",jpgImage:"als Bild (*.jpg)",pdfDoc:"als Dokument (*.pdf)",xlsDoc:"als Dokument (*.xls)",csvDoc:"als Dokument (*.csv)",about:"\xDCber",cancel:"Abbrechen",save:"Speichern",load:"Laden",share:"Teilen",title:"Title",curSettings:"Einstellungen",newView:"Neu",language:"Sprache",dashboard:"Dashboard",folder:"Ordner",signin:"Anmelden",signout:"Abmelden",login:"Benutzer",signinOAuth:"Mit OAuth einloggen",password:"Passwort",namespace:"Namespace",loading:"Laden...",search:"Suche",accept:"Start",close:"Schlie\xDFen",dismiss:"Leeren",home:"Startseite",zoom:"Zoom",resetSettings:"Kacheln einstellungen",addToFavorites:"Zu Favoriten hinzuf\xFCgen",removeFromFav:"Von Favoriten entfernen",refresh:"Neu laden",showFolders:"Ordner anzeigen",showTop:"Top Items",viewAs:"Anzeige wechseln",count:"Anzahl",filters:"Filter",setDefault:"Zur\xFCcksetzen",dashColumns:"Spaltenanzahl",widgetHeight:"Widget H\xF6he(px)",widgetHeightDyn:"Default: fit to window",noData:"Keine Daten vorhanden",byRows:"Anzeige nach Zeilen",by2columns:"Anzeige mit zwei Spalten",by3columns:"Anzeige mit drei Spalten",print:"Drucken...",fav:"Favoriten",options:"Einstellungen",gotoDeepSee:"DeepSee",showLegend:"Legende An/Aus",showPivot:"Als Tabelle anzeigen",back:"Zur\xFCck",exclude:"Au\xDFer",all:"Alle",interval:"Interval",not:"Nicht",from:"Von",to:"Bis",metroStyle:"Metro UI",bgColor:"Farbe Hintergrund",fntColor:"Farbe Schrift",icon:"Icon",done:"Fertig",widget:"Widget",showImages:"Bilder anzeigen",dataSource:"Datenquelle",hideTitle:"Titel verbergen",showZero:"Achsen auf Ursprung",showValues:"Werte anzeigen",err:"Fehler",errWidgetRequest:"Fehler beim Laden der Daten",errLoginRequired:"Bitte anmelden",errPassRequired:"Bitte Passwort eingeben",errUnauth:"Benutzer oder Passwort ung\xFCltig",errNotFound:"URL nicht gefunden",errTimeout:"Zeit\xFCberschreitung der Anfrage",errWidgetNotSupported:"Widget nicht unterst\xFCtzt",errNoWidgets:"Keine Widgets vom Server",errNoDashboards:"Keine Dashboards vorhanden",shortMonths:["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],changeColors:"\xC4ndern Sie die Farben",fullscreen:"Vollbild umschalten",showKPI:"KPI anzeigen",openAnalyzer:"Analysator \xF6ffnen"},cs:{settingsImported:"Nastaven\xED bylo \xFAsp\u011B\u0161n\u011B importov\xE1no!",settingsReset:"Nastaven\xED bylo \xFAsp\u011B\u0161n\u011B resetov\xE1no!",resetClickFilter:"Reset click filter",copyMDX:"Copy MDX",seriesColor:"Series colors",copy:"Copy",shareDashboard:"Share dashboard",relatedFilters:"Related filters",disableTilePush:"Disable tile pushing when moving/resizing",saveFilters:"Ulo\u017Eit filtry",exportSettings:"Export nastaven\xED",importSettings:"Import nastaven\xED",export:"Export",pngImage:"Image (*.png)",svgImage:"Image (*.svg)",jpgImage:"Image (*.jpg)",pdfDoc:"Document (*.pdf)",xlsDoc:"Document (*.xls)",csvDoc:"Document (*.csv)",about:"O m\u011B",cancel:"Zru\u0161it",save:"Ulo\u017Eit",load:"Na\u010D\xEDst",share:"Sd\xEDlet",title:"Title",curSettings:"Moment\xE1ln\xED nastaven\xED",newView:"Nov\xFD",language:"Jazyky",dashboard:"N\xE1st\u011Bnka",folder:"Slo\u017Eka",signin:"P\u0159ihl\xE1sit",signout:"Odhl\xE1sit",login:"U\u017Eivatelsk\xE9 jm\xE9no",signinOAuth:"OAuth sign in",password:"Heslo",namespace:"Namespace",loading:"Na\u010D\xEDt\xE1m...",search:"Hledat",accept:"P\u0159\xEDjmout",close:"Zav\u0159\xEDt",dismiss:"Zam\xEDtnout",home:"Dom\u016F",zoom:"P\u0159ibl\xED\u017Eit",resetSettings:"Reset Titulk\u016F",addToFavorites:"P\u0159idat do obl\xEDben\xFDch",removeFromFav:"Oddevrat z obl\xEDbench",refresh:"Obnovit",showFolders:"Zobrazit slo\u017Eku",showTop:"Zobrazit prvn\xED polo\u017Eky",viewAs:"Zobrazit jako",count:"Po\u010Det",filters:"Filtry",setDefault:"Obnovit v\xFDchoz\xED",dashColumns:"Po\u010Det slouc\u016F",widgetHeight:"V\xFD\u0161ka widgetu(px)",widgetHeightDyn:"Default: fit to window",noData:"Nejsou data k zobrazen\xED",byRows:"Zobrazit \u0159\xE1dky",by2columns:"Zobrazit podle dvou sloupc\u016F",by3columns:"Zobrazit podle t\u0159\xED sloupc\u016F",print:"Tisk...",fav:"Obl\xEDben\xE9",options:"Nastaven\xED",gotoDeepSee:"DeepSee",showLegend:"Zapnout/Vypnout Legendu",showPivot:"Zobrazit jako kontingen\u010Dn\xED tabulku",back:"Zp\u011Bt",exclude:"Vylou\u010Dit",all:"V\u0161e",interval:"Interval",not:"Not",from:"Od",to:"Do",metroStyle:"Metro UI",bgColor:"Barva pozad\xED",fntColor:"Barva p\xEDsma",icon:"Ikona",done:"Hotovo",widget:"Widget",showImages:"Zobrazit obr\xE1zky",dataSource:"Zdroje dat",hideTitle:"Skr\xFDt titulek",showZero:"Nastavt minimum osy na nulu",showValues:"Zobrazit hodnoty",err:"Error",errWidgetRequest:"Nelze na\u010D\xEDst data widgetu",errLoginRequired:"Pros\xEDm, zadejte p\u0159ihla\u0161ovac\xED jm\xE9no",errPassRequired:"Pros\xEDm zadejte heslo",errUnauth:"Nespr\xE1vn\xE9 u\u017Eivatelsk\xE9 jm\xE9no nebo heslo",errNotFound:"Po\u017Eadovan\xE1 adresa URL nbyla nalezena na serveru",errTimeout:"vypr\u0161el \u010Das Requestu",errWidgetNotSupported:"Widget nen\xED podporov\xE1n",errNoWidgets:"\u017D\xE1dn\xE9 p\u0159ijat\xE9 widgety ze serveru",errNoDashboards:"\u017D\xE1dn\xE9 n\xE1st\u011Bnky v namespace",shortMonths:["Leden","\xDAnor","B\u0159ezen","Duben","Kv\u011Bten","\u010Cerven","\u010Cervenec","Srpen","Z\xE1\u0159\xED","\u0158\xEDjen","Listopad","Prosinec"],changeColors:"Zm\u011Bnit barvy",fullscreen:"P\u0159epnout na celou obrazovku",showKPI:"Zobrazit KPI",openAnalyzer:"Otev\u0159ete analyz\xE1tor"},ru:{settingsImported:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u044B\u043B\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043D\u044B \u0443\u0441\u043F\u0435\u0448\u043D\u043E!",settingsReset:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0431\u044B\u043B\u0438 \u0441\u0431\u0440\u043E\u0448\u0435\u043D\u044B. \u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430 \u0431\u0443\u0434\u0435\u0442 \u043F\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0435\u043D\u0430.",resetClickFilter:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C click \u0444\u0438\u043B\u044C\u0442\u0440",copyMDX:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C MDX",seriesColor:"\u0426\u0432\u0435\u0442 \u0441\u0435\u0440\u0438\u0439",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",shareDashboard:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F \u0434\u0435\u0448\u0431\u043E\u0440\u0434\u043E\u043C",relatedFilters:"\u0412\u0437\u0430\u0438\u043C\u043E\u0441\u0432\u044F\u0437\u0430\u043D\u043D\u044B\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B",disableTilePush:"\u041E\u0442\u043A\u043B\u044E\u0447\u0438\u0442\u044C \u0432\u044B\u0442\u0430\u043B\u043A\u0438\u0432\u0430\u043D\u0438\u0435 \u0442\u0430\u0439\u043B\u043E\u0432",theme:"\u0422\u0435\u043C\u0430",showLog:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0438",server:"\u0421\u0435\u0440\u0432\u0435\u0440",saveFilters:"\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B",exportSettings:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",importSettings:"\u0418\u043C\u043F\u043E\u0440\u0442 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043A",export:"\u042D\u043A\u0441\u043F\u043E\u0440\u0442",pngImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.png)",svgImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.svg)",jpgImage:"\u041A\u0430\u0440\u0442\u0438\u043D\u043A\u0430 (*.jpg)",pdfDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.pdf)",xlsDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.xls)",csvDoc:"\u0414\u043E\u043A\u0443\u043C\u0435\u043D\u0442 (*.csv)",about:"\u041E \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0435",cancel:"\u041E\u0442\u043C\u0435\u043D\u0430",save:"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C",load:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",share:"\u041F\u043E\u0434\u0435\u043B\u0438\u0442\u044C\u0441\u044F",title:"\u0417\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",curSettings:"\u0422\u0435\u043A\u0443\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",newView:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C",language:"\u042F\u0437\u044B\u043A",dashboard:"\u0418\u043D\u0434\u0438\u043A\u0430\u0442\u043E\u0440\u043D\u0430\u044F \u043F\u0430\u043D\u0435\u043B\u044C",folder:"\u041F\u0430\u043F\u043A\u0430",signin:"\u0412\u0445\u043E\u0434",signout:"\u0412\u044B\u0445\u043E\u0434",login:"\u041B\u043E\u0433\u0438\u043D",signinOAuth:"\u0412\u0445\u043E\u0434 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u044F OAuth",password:"\u041F\u0430\u0440\u043E\u043B\u044C",namespace:"\u041E\u0431\u043B\u0430\u0441\u0442\u044C",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",search:"\u041F\u043E\u0438\u0441\u043A",accept:"\u041F\u0440\u0438\u043C\u0435\u043D\u0438\u0442\u044C",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",dismiss:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",home:"\u0414\u043E\u043C\u043E\u0439",zoom:"\u0423\u0432\u0435\u043B\u0438\u0447\u0435\u043D\u0438\u0435",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",resetSettings:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",addToFavorites:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0435",removeFromFav:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043E\u0433\u043E",showFolders:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043F\u0430\u043F\u043A\u0438",showTop:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0432\u0435\u0440\u0445\u043D\u0438\u0435",viewAs:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u043A\u0430\u043A",count:"\u041A\u043E\u043B-\u0432\u043E",filters:"\u0424\u0438\u043B\u044C\u0442\u0440\u044B",setDefault:"\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E",dashColumns:"\u041A\u043E\u043B\u043E\u043D\u043A\u0438",widgetHeight:"\u0412\u044B\u0441\u043E\u0442\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u043E\u0432(px)",widgetHeightDyn:"\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E: \u043F\u043E\u0434\u043E\u0433\u043D\u0430\u0442\u044C \u043A \u0432\u044B\u0441\u043E\u0442\u0435 \u043E\u043A\u043D\u0430",noData:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",byRows:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u043F\u043E\u0441\u0442\u0440\u043E\u0447\u043D\u043E",by2columns:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0434\u0432\u0443\u043C\u044F \u043A\u043E\u043B\u043E\u043D\u043A\u0430\u043C\u0438",by3columns:"\u041E\u0442\u043E\u0431\u0440\u0430\u0437\u0438\u0442\u044C \u0442\u0440\u0435\u043C\u044F \u043A\u043E\u043B\u043E\u043D\u043A\u0430\u043C\u0438",print:"\u041F\u0435\u0447\u0430\u0442\u044C...",fav:"\u0418\u0437\u0431\u0440\u0430\u043D\u043E\u0435",options:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",gotoDeepSee:"Iris BI",showLegend:"\u0412\u043A\u043B/\u0432\u044B\u043A\u043B \u043B\u0435\u0433\u0435\u043D\u0434\u0443",showPivot:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043A\u0430\u043A \u0442\u0430\u0431\u043B\u0438\u0446\u0443",back:"\u041D\u0430\u0437\u0430\u0434",exclude:"\u0418\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u044C",all:"\u0412\u0441\u0435",not:"\u041D\u0435",interval:"\u0418\u043D\u0442\u0435\u0440\u0432\u0430\u043B",from:"\u041E\u0442",to:"\u0414\u043E",metroStyle:"\u0421\u0442\u0438\u043B\u044C Metro",bgColor:"\u0426\u0432\u0435\u0442 \u0444\u043E\u043D\u0430",fntColor:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",icon:"\u0417\u043D\u0430\u0447\u043E\u043A",done:"\u0413\u043E\u0442\u043E\u0432\u043E",widget:"\u0412\u0438\u0434\u0436\u0435\u0442",showImages:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438",dataSource:"\u0418\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0434\u0430\u043D\u043D\u044B\u0445",hideTitle:"\u0421\u043A\u0440\u044B\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A",showZero:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C 0 \u043D\u0430 \u043E\u0441\u0438",showValues:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0430\u0442\u044C \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u044F",err:"\u041E\u0448\u0438\u0431\u043A\u0430",errWidgetRequest:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043E \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0434\u0430\u043D\u043D\u044B\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u0430",errLoginRequired:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043B\u043E\u0433\u0438\u043D",errPassRequired:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u043F\u0430\u0440\u043E\u043B\u044C",errUnauth:"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043B\u043E\u0433\u0438\u043D \u0438\u043B\u0438 \u043F\u0430\u0440\u043E\u043B\u044C",errNotFound:"\u0417\u0430\u0434\u0430\u043D\u044B\u0439 \u0430\u0434\u0440\u0435\u0441 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D \u043D\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435",errTimeout:"\u041F\u0440\u0435\u0432\u044B\u0448\u0435\u043D \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B \u043E\u0436\u0438\u0434\u0430\u043D\u0438\u044F \u0437\u0430\u043F\u0440\u043E\u0441\u0430",errWidgetNotSupported:"\u0412\u0438\u0434\u0436\u0435\u0442 \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044F",errNoWidgets:"\u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u0435\u0440\u043D\u0443\u043B \u043F\u0443\u0441\u0442\u043E\u0439 \u0441\u043F\u0438\u0441\u043E\u043A \u0432\u0438\u0434\u0436\u0435\u0442\u043E\u0432",errNoDashboards:"\u0412 \u0434\u0430\u043D\u043D\u043E\u0439 \u043E\u0431\u043B\u0430\u0441\u043D\u0438 \u043D\u0435\u0442 \u0434\u0430\u0448\u0431\u043E\u0440\u0434\u043E\u0432",shortMonths:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],changeColors:"\u0418\u0437\u043C\u0435\u043D\u0438\u0442\u044C \u0446\u0432\u0435\u0442\u0430",fullscreen:"\u041D\u0430 \u0432\u0435\u0441\u044C \u044D\u043A\u0440\u0430\u043D",showKPI:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C KPI",openAnalyzer:"\u041E\u0442\u043A\u0440\u044B\u0442\u044C analyzer"}};var gl={name:"deep-see-web",version:"4.0.7",scripts:{ng:"ng",start:"ng serve --proxy-config=proxy.conf.samples-bi.js",covid:"ng serve --proxy-config=proxy.conf.covid.js",temp:"ng serve --proxy-config=proxy.conf.temp.js",ua:"ng serve --proxy-config=proxy.conf.ua.js",got:"ng serve --proxy-config=proxy.conf.got.js",local:"ng serve --proxy-config=proxy.conf.local.js",samples:"ng serve --proxy-config=proxy.conf.samples-bi.js",semen:"ng serve --proxy-config=proxy.conf.semen.js",community:"ng serve --proxy-config=proxy.conf.community.js",analytics:"ng serve --proxy-config=proxy.conf.analytics.js","analytics-pub":"ng serve --proxy-config=proxy.conf.analytics-pub.js",build:"ng build --configuration=production","build:addons":"tsc --project ./src/addons","build:addon-test":"tsc ./src/addons/simple-addon.component.ts --experimentalDecorators true --target es2015 --moduleResolution node --module CommonJS --resolveJsonModule true --outDir ./distAddons",test:"jest",lint:"ng lint",e2e:"ng e2e"},private:!0,dependencies:{"@angular/animations":"^18.0.5","@angular/common":"^18.0.5","@angular/compiler":"^18.0.5","@angular/core":"^18.0.5","@angular/forms":"^18.0.5","@angular/platform-browser":"^18.0.5","@angular/platform-browser-dynamic":"^18.0.5","@angular/router":"^18.0.5","@angular/service-worker":"~18.0.5","@highcharts/map-collection":"^2.0.1","@iplab/ngx-color-picker":"^18.0.1","@ng-select/ng-select":"^13.3.0","air-datepicker":"^3.3.5","angular-gridster2":"^18.0.1","font-awesome":"^4.7.0",highcharts:"^11.4.3","highcharts-angular":"^4.0.0","markdown-it":"^14.1.0",numeral:"^2.0.6",ol:"^7.2.2",rxjs:"~7.8.0",tslib:"^2.3.0","zone.js":"~0.14.4"},devDependencies:{"@angular/build":"^18.0.6","@angular/cli":"~18.0.6","@angular/compiler-cli":"^18.0.5","@types/node":"^12.11.1","@types/ol":"^6.4.2",jest:"^29.7.0",puppeteer:"^22.12.1","ts-node":"~8.3.0",tslint:"~6.1.0",typescript:"~5.4.3",xml2js:"^0.6.2"}};var ni={addons:[],mobile:!1,desktop:!0,const:{themes:[{text:"Default",file:""},{text:"Contrast",file:"contrast.css"}],bgColorClasses:["","cl1","cl2","cl3","cl4","cl5","cl6","cl7","cl8","cl9"],fontColors:["fc0","fc1","fc2","fc3","fc4","fc5"],icons:["","ico-widget-back","ico-widget-folder","ico-widget-1","ico-widget-dashboard","ico-widget-2","ico-widget-3","ico-widget-4"],timeout:6e4,ver:gl.version,emptyWidgetClass:"MDX2JSON.EmptyPortlet".toLowerCase()}};var pu=5e3,ml=(()=>{let e=class e{constructor(){this.errors$=new tt([]),this.lastId=0,this.errors=[]}getIndex(t){return this.errors.indexOf(t)}close(t){let i=this.errors.findIndex(n=>n===t);i!==-1&&(this.errors.splice(i,1),this.emit())}show(t,i=!1,n=pu){this.lastId++;let h={id:this.lastId,message:t,delay:n,isLeft:i};this.errors.push(h),n!==0&&setTimeout(()=>{this.close(h)},n),this.emit()}emit(){this.errors$.next([...this.errors])}};e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Un=kl(vl());var bl=(()=>{let e=class e{constructor(t){this.route=t}removeExt(t){if(!t)return"";let i=t.split(".");return i.length===1?t:(i.pop(),i.join("."))}replaceFilename(t,i){let n=t.split("/");return n[n.length-1]=i,n.join("/")}isEmbedded(){let t=window.location.hash.replace("?","").replace("#/","").split("&");for(let i=0;i{let e=class e{constructor(t,i,n,h){this.ds=t,this.i18n=i,this.route=n,this.us=h,this.serverSettings={},this.onSettingsChanged=new yt,this.onTilesChanged=new yt,this.settings={},this.configLoaded=!1,this.isLocalStorage=!1,this.checkForLocalStorage()}get storage(){return this.isLocalStorage?localStorage:sessionStorage}checkForLocalStorage(){let t="dws_ls_test";try{localStorage.setItem(t,"test")}catch{return}localStorage.removeItem(t),this.isLocalStorage=!0}saveUserSettings(){let t=JSON.parse(this.storage.getItem("userSettings")||"{}");t[Be.toLocaleLowerCase()]=this.settings,this.storage.setItem("userSettings",JSON.stringify(t))}loadConfig(t){if(this.settings={},this.configLoaded=!0,t)if(t.constructor===Object)this.settings=t;else{let v;try{v=JSON.parse(t)}catch{v={}}this.settings=v}let i=null;this.storage.getItem("userSettings")&&(i=JSON.parse(this.storage.getItem("userSettings")||"{}")[Be.toLocaleLowerCase()]),i&&this.us.mergeRecursive(this.settings,i);let n=this.getAppSettings();if(!ni.mobile&&n.theme){let v=document.getElementById("page-theme");v||(v=document.createElement("link")),v.id="page-theme",v.rel="stylesheet",v.type="text/css",v.href=n.theme,document.head.appendChild(v)}this.i18n.current=n.language||"en";let h=Un.default.getOptions().colors||[];for(let v=1;v<=h.length;v++){let q=document.querySelector(".hc"+v.toString());if(q){let B=window.getComputedStyle(q).getPropertyValue("background-color");B!=="rgba(0, 0, 0, 0)"&&B!=="transparent"&&(h[v-1]=B)}}if(n.theme){let v=n.themeColors?.[n.theme];v&&Un.default.setOptions({xAxis:{labels:{style:{color:v.hcTextColor}}},yAxis:{labels:{style:{color:v.hcTextColor}}},zAxis:{labels:{style:{color:v.hcTextColor}}},chart:{backgroundColor:v.hcBackground},colors:v.hcColors||h,time:{useUTC:!1},lang:{loading:"
",shortMonths:this.i18n.get("shortMonths"),rangeSelectorZoom:this.i18n.get("zoom"),rangeSelectorFrom:this.i18n.get("from"),rangeSelectorTo:this.i18n.get("to"),noData:this.i18n.get("noData")},noData:{style:{fontWeight:"bold",fontSize:"15px",color:"#303030"}}})}}getAppSettings(){let t=this.route.snapshot.queryParamMap.get("lang");this.settings.app||(this.settings.app={});let i=this.settings.app;t&&(i.language=t),i.themeColors||(i.themeColors={});let n=this.route.snapshot.queryParamMap.get("theme");if(n){let h=ni.const.themes.find(v=>v.text===n);h&&(i.theme=h.file)}return i}setAppSettings(t){this.settings.app=t,this.saveUserSettings()}getWidgetsSettings(t){return this.settings.ns?.widgets?this.settings.ns.widgets[t]||{}:{}}setWidgetsSettings(t,i){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.widgets||(this.settings.ns.widgets={}),this.settings.ns.widgets[i]=JSON.parse(JSON.stringify(t)),this.saveUserSettings()}getTilesSettings(){return this.settings&&this.settings.ns?this.settings.ns.tiles||{}:{}}setTilesSettings(t){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.tiles=JSON.parse(JSON.stringify(t)),this.saveUserSettings()}getAllSettings(){return this.settings}setAllSettings(t){this.settings=t,this.saveUserSettings()}loadServerSettings(t){this.serverSettings=t||{}}};e.\u0275fac=function(i){return new(i||e)(De(xl),De(zn),De(Ke),De(bl))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Dl="dsw.namespaces",Cl="dsw.namespace",Be="",lf=(()=>{let e=class e{constructor(t,i,n){this.ss=t,this.router=i,this.route=n,this.list=[],this.loadNamespaces()}get namespaces(){return this.list}resolve(t,i){return new Ci(n=>{let h=()=>{n.next(),n.complete()};if(Be){this.router.navigateByUrl(Be);return}this.router.navigateByUrl("/login")})}loadNamespaces(){try{Be=this.ss.storage.getItem(Cl)||"";let i=this.ss.storage.getItem(Dl)||"[]";this.list=JSON.parse(i)}catch{console.warn("Can't parse namespace list from storage")}}setNamespaces(t){this.list=t;try{this.ss.storage.setItem(Dl,JSON.stringify(t))}catch{console.warn("Can't set namespace list to storage")}}getNamespaces(){return this.list}setCurrent(t){this.ss.storage.setItem(Cl,t),Be=t}};e.\u0275fac=function(i){return new(i||e)(De(wl),De(ht),De(Ke))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();var Sl="MDX2JSON",Al="MDX2JSON",xl=(()=>{let e=class e{constructor(t,i,n,h){this.route=t,this.router=i,this.http=n,this.es=h,this.firstRun=!0,this.dashboardList=new Map,this.username="",this.withCredentialsHeaders={withCredentials:!0,headers:new Ye({"Accept-Language":"en-US"})},this.withoutCredentialsHeaders={headers:new Ye({"Accept-Language":"en-US"})},this.withCredentialsTimeoutHeaders={withCredentials:!0,headers:new Ye({timeout:ni.const.timeout.toString(),"Accept-Language":"en-US"})},this.withoutCredentialsTimeoutHeaders={headers:new Ye({timeout:ni.const.timeout.toString(),"Accept-Language":"en-US"})}}get url(){let t="",i=localStorage.getItem("connectorRedirect");return i&&(t=i),t+"../"+Sl+"/"}gotoLoginPage(){}getDashboards(){let t=Be.toLowerCase();return this.dashboardList.has(t)?Se(JSON.parse(this.dashboardList.get(t)||"{}")):this.http.post(this.url+"Dashboards?Namespace="+Be,{Folder:""},{withCredentials:!0}).pipe(Ge(i=>{this.dashboardList.set(Be.toLowerCase(),JSON.stringify(i))}),this.handleError())}getKPIData(t,i,n=!1){return ct(this.http.post(this.url+"KPI?Namespace="+Be,{KPI:t,FILTERS:i,Drillthrough:n?1:void 0},this.withCredentialsTimeoutHeaders))}getPivotData(t){return ct(this.http.post(this.url+"DataSource?Namespace="+Be,{DataSource:t},this.withCredentialsTimeoutHeaders))}getTermList(t){return this.http.post(this.url+"TermList?Namespace="+Be,{TermList:t},this.withCredentialsTimeoutHeaders).toPromise()}execMDX(t){return st(this,null,function*(){let i=t.split(" ");return i&&i.length!==0&&i[0].toUpperCase()==="DRILLTHROUGH"?this.execMDXDrillthrough(t,Be):ct(this.http.post(this.url+"MDX?Namespace="+Be,{MDX:t},this.withCredentialsTimeoutHeaders))})}execMDXDrillthrough(t,i){return st(this,null,function*(){return ct(this.http.post(this.url+"MDXDrillthrough?Namespace="+i,{MDX:t},this.withCredentialsTimeoutHeaders))})}getWidgets(t){return ct(this.http.post(this.url+"Dashboard?Namespace="+Be,{Dashboard:t},Ue(we({},this.withCredentialsTimeoutHeaders),{"Content-Type":"application/json"})).pipe(this.handleError()))}handleError(){return At(t=>{if(t.status===401||t.status===403)return this.router.navigateByUrl("/login?from="+encodeURIComponent(this.router.url)),Se();let i=t.message;throw t?.error?.summary&&(i=t?.error?.summary),this.es.show(i),t})}searchFilters(t,i,n,h){let v={DataSource:i,Values:1,Search:t};return n&&n.length&&(v.RelatedFilters=n),h&&h.length&&(v.RequestedFilters=h),ct(this.http.post(this.url+"Filters?Namespace="+Be,v,this.withCredentialsTimeoutHeaders))}getPivotVariables(t){return this.http.get(this.url+"PivotVariables/"+t+"?Namespace="+Be,this.withCredentialsTimeoutHeaders).toPromise()}getFile(t){return this.http.get(t,{responseType:"text"}).toPromise()}loadMainConfig(){return this.http.get("config.json",{headers:new Ye({withCredentials:"false"})}).toPromise().then(t=>{try{t&&t.endpoints&&t.endpoints.mdx2json&&(Sl=t.endpoints.mdx2json.replace(/\//ig,"").replace(/ /g,""),Al=t.namespace.replace(/\//ig,"").replace(/ /g,""))}catch{console.error('Incorrect config in file "config.json"')}})}loadConfig(t){return this.http.get("configs/"+t.toLowerCase()+".json",{headers:new Ye({withCredentials:"false"})}).toPromise()}loadAddons(){return st(this,null,function*(){return ct(this.http.get(this.url+"Addons",this.withCredentialsHeaders))})}loadNamespaceConfig(){return this.http.get(this.url+`Config/${Be}?Namespace=${Al}`,this.withCredentialsHeaders).toPromise()}loadOAuthConfig(){return this.http.get("dswoauth/check",this.withoutCredentialsHeaders).toPromise()}signIn(t,i,n,h){return this.username=t,this.http.get(h?h+"Test?Namespace="+n:this.url+"Test?Namespace="+n,{withCredentials:!0,headers:new Ye({timeout:ni.const.timeout.toString(),Authorization:"Basic "+btoa(t+":"+i)})}).toPromise()}signOut(){this.firstRun=!0;let t=h=>{document.cookie=h+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},i=(h,v,q)=>{let B=new Date;B.setTime(B.getTime()+24*60*60*1e3*q),document.cookie=h+"="+v+";path=/;expires="+B.toUTCString()};this.username="";try{localStorage.userName="",sessionStorage.userName=""}catch{}let n=()=>{i("CSPWSERVERID","",-1),i("CacheLoginToken","",-1),i("CSPSESSIONID-SP-80-UP-","",-1),i("CSPSESSIONID-SP-80-UP-MDX2JSON-","",-1),this.router.navigateByUrl("/login")};return this.http.get(this.url+`Logout?Namespace=${Be}`,this.withCredentialsHeaders).toPromise().then(()=>{n()}).catch(()=>{n()})}execAction(t,i){return this.http.post(this.url+"Action/"+i+"/"+t+"?Namespace="+Be,{},this.withCredentialsTimeoutHeaders).toPromise()}getSettings(t){return st(this,null,function*(){return ct(this.http.get(this.url+"Test?Namespace="+t,this.withCredentialsTimeoutHeaders))})}requestListOfDataSources(t){return st(this,null,function*(){return ct(this.http.post(this.url+`DataSourceList/${t}?Namespace=`+Be,{},this.withCredentialsTimeoutHeaders))})}saveWidget(t,i,n){return st(this,null,function*(){return ct(this.http.post(this.url+"saveWidget?Namespace="+Be,{key:n||"",Dashboard:t,WidgetData:i},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}deleteWidget(t,i){return st(this,null,function*(){return ct(this.http.post(this.url+"deleteWidget?Namespace="+Be,{key:i||"",Dashboard:t},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}};e.\u0275fac=function(i){return new(i||e)(De(Ke),De(ht),De(Vr),De(ml))},e.\u0275prov=Ce({token:e,factory:e.\u0275fac,providedIn:"root"});let s=e;return s})();export{ii as a,Ve as b,Fu as c,Nu as d,ju as e,Bu as f,zu as g,Uu as h,ea as i,zr as j,_u as k,ip as l,sp as m,ga as n,vp as o,oc as p,bp as q,hc as r,vi as s,wt as t,Ke as u,zc as v,ht as w,_p as x,$p as y,Wp as z,eu as A,Gp as B,Hp as C,Xp as D,zn as E,ni as F,ml as G,xl as H,bl as I,wl as J,Be as K,lf as L}; diff --git a/dist/chunk-FHZVEBZY.js b/dist/chunk-OK3AR2TD.js similarity index 99% rename from dist/chunk-FHZVEBZY.js rename to dist/chunk-OK3AR2TD.js index d03b40d..fb24c18 100644 --- a/dist/chunk-FHZVEBZY.js +++ b/dist/chunk-OK3AR2TD.js @@ -1,7 +1,7 @@ -import{a as Pt}from"./chunk-V6EVLSKF.js";import{a as Pe,c as Fe,e as ze,f as We}from"./chunk-L76GKDA2.js";import{c as De,d as Gt,f as wt,h as jt}from"./chunk-W7AFIDCE.js";import{a as st}from"./chunk-WYNQ5JHX.js";import{a as nt}from"./chunk-EB65ROO7.js";import{a as Ee}from"./chunk-EAEBZZLM.js";import{a as Et}from"./chunk-6QFXSLJK.js";import{a as Ft}from"./chunk-RNWIIYZZ.js";import{a as ke}from"./chunk-SUAWKU6Z.js";import{a as pt,b as Me}from"./chunk-7Z57W26K.js";import{c as ye,d as _e,e as ve,f as Ie,g as Se,h as Te,j as $e}from"./chunk-LPXDHCFD.js";import{D as $t,E as kt,F as tt,G as be,H as xe,I as dt,J as ct,K as ft,L as Mt,d as Yt,e as we,k as Ce,u as ht}from"./chunk-B2BNZRWN.js";import{$a as a,$b as Xt,Ab as G,Ba as J,Bb as B,Bc as K,Cb as H,Da as V,Db as d,Eb as g,F as le,Fb as I,Ib as fe,Jb as y,Nb as f,Ob as c,Pb as Bt,Qb as Ht,R as ae,Rb as Q,S as Rt,Tb as j,Ub as U,Vb as q,Wb as at,X as St,Xa as pe,Xb as b,Y as he,Yb as M,Zb as Tt,_b as At,ab as _,ac as Nt,ba as z,cc as X,eb as ot,f as It,fa as A,ga as de,gb as Vt,ha as ce,hc as S,ic as T,jb as me,lb as ge,pa as gt,qa as p,ra as m,rb as F,s as ne,tb as k,ub as ut,vb as E,xb as ue,y as re,yb as x,z as oe,zb as Lt}from"./chunk-ZKAUCJHV.js";import{a as it,b as Ot}from"./chunk-DEPBX7UX.js";var Ve=["*"];function si(o,i){if(o&1&&I(0,"div",0),o&2){let s=i.$index,t=c();k("ngStyle",t.gridRenderer.getGridColumnStyle(s))}}function ni(o,i){if(o&1&&I(0,"div",1),o&2){let s=i.$index,t=c();k("ngStyle",t.gridRenderer.getGridRowStyle(s))}}function ri(o,i){if(o&1){let s=y();d(0,"div",8),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function oi(o,i){if(o&1){let s=y();d(0,"div",9),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function li(o,i){if(o&1){let s=y();d(0,"div",10),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function ai(o,i){if(o&1){let s=y();d(0,"div",11),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function hi(o,i){if(o&1){let s=y();d(0,"div",12),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function di(o,i){if(o&1){let s=y();d(0,"div",13),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function ci(o,i){if(o&1){let s=y();d(0,"div",14),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function pi(o,i){if(o&1){let s=y();d(0,"div",15),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}var v=function(o){return o.Fit="fit",o.ScrollVertical="scrollVertical",o.ScrollHorizontal="scrollHorizontal",o.Fixed="fixed",o.VerticalFixed="verticalFixed",o.HorizontalFixed="horizontalFixed",o}(v||{}),zt=function(o){return o.Always="always",o.OnDragAndResize="onDrag&Resize",o.None="none",o}(zt||{}),P=function(o){return o.None="none",o.CompactUp="compactUp",o.CompactLeft="compactLeft",o.CompactUpAndLeft="compactUp&Left",o.CompactLeftAndUp="compactLeft&Up",o.CompactRight="compactRight",o.CompactUpAndRight="compactUp&Right",o.CompactRightAndUp="compactRight&Up",o.CompactDown="compactDown",o.CompactDownAndLeft="compactDown&Left",o.CompactLeftAndDown="compactLeft&Down",o.CompactDownAndRight="compactDown&Right",o.CompactRightAndDown="compactRight&Down",o}(P||{}),O=function(o){return o.LTR="ltr",o.RTL="rtl",o}(O||{}),Ut=class{constructor(i){this.gridster=i}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==P.None&&(this.gridster.$options.compactType===P.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===P.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===P.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===P.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===P.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===P.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===P.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===P.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===P.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===P.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===P.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===P.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(i){this.gridster.$options.compactType!==P.None&&(this.gridster.$options.compactType===P.CompactUp?this.moveTillCollision(i,"y",-1):this.gridster.$options.compactType===P.CompactLeft?this.moveTillCollision(i,"x",-1):this.gridster.$options.compactType===P.CompactUpAndLeft?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===P.CompactLeftAndUp?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",-1)):this.gridster.$options.compactType===P.CompactUpAndRight?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===P.CompactDown?this.moveTillCollision(i,"y",1):this.gridster.$options.compactType===P.CompactDownAndLeft?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===P.CompactLeftAndDown?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",1)):this.gridster.$options.compactType===P.CompactDownAndRight?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===P.CompactRightAndDown&&(this.moveTillCollision(i,"x",1),this.moveTillCollision(i,"y",1)))}checkCompactMovement(i,s){let t=!1;this.gridster.grid.forEach(e=>{e.$item.compactEnabled!==!1&&this.moveTillCollision(e.$item,i,s)&&(t=!0,e.item[i]=e.$item[i],e.itemChanged())}),t&&this.checkCompact()}moveTillCollision(i,s,t){return i[s]+=t,this.gridster.checkCollision(i)?(i[s]-=t,!1):(this.moveTillCollision(i,s,t),!0)}},mi={gridType:v.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:P.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:zt.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:O.LTR},L=class o{static merge(i,s,t){for(let e in s)s[e]!==void 0&&t.hasOwnProperty(e)&&(typeof s[e]=="object"?(e in i||(i[e]={}),i[e]=o.merge(i[e],s[e],t[e])):i[e]=s[e]);return i}static checkTouchEvent(i){i.clientX===void 0&&i.touches&&(i.touches&&i.touches.length?(i.clientX=i.touches[0].clientX,i.clientY=i.touches[0].clientY):i.changedTouches&&i.changedTouches.length&&(i.clientX=i.changedTouches[0].clientX,i.clientY=i.changedTouches[0].clientY))}static checkContentClassForEvent(i,s){if(i.$options.draggable.ignoreContent){if(!o.checkDragHandleClass(s.target,s.currentTarget,i.$options.draggable.dragHandleClass,i.$options.draggable.ignoreContentClass))return!0}else if(o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(i,s){return o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.ignoreContentClass)||o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.dragHandleClass)}static checkDragHandleClass(i,s,t,e){if(!i||i===s)return!1;if(i.hasAttribute("class")){let n=i.getAttribute("class").split(" ");if(n.indexOf(t)>-1)return!0;if(n.indexOf(e)>-1)return!1}return o.checkDragHandleClass(i.parentNode,s,t,e)}static checkContentClass(i,s,t){return!i||i===s?!1:i.hasAttribute("class")&&i.getAttribute("class").split(" ").indexOf(t)>-1?!0:o.checkContentClass(i.parentNode,s,t)}static compareItems(i,s){return i.y>s.y?-1:i.ys.x?-1:1}},qt=class{constructor(i){this.gridster=i,this.emptyCellClickCb=s=>{if(!this.gridster||this.gridster.movingItem||L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellContextMenuCb=s=>{if(this.gridster.movingItem||L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellDragDrop=s=>{let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellDragOver=s=>{s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);t?(s.dataTransfer&&(s.dataTransfer.dropEffect="move"),this.gridster.movingItem=t):(s.dataTransfer&&(s.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()},this.emptyCellMouseDown=s=>{if(L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);!t||s.buttons!==1&&!(s instanceof TouchEvent)||(this.initialItem=t,this.gridster.movingItem=t,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))},this.emptyCellMouseMove=s=>{s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s,this.initialItem);t&&(this.gridster.movingItem=t,this.gridster.previewStyle())},this.emptyCellMouseUp=s=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let t=this.getValidItemFromEvent(s,this.initialItem);t&&(this.gridster.movingItem=t),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(s,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()}}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}getPixelsX(i,s){let t=this.gridster.options.scale;return t?(i.clientX-s.left)/t+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():i.clientX+this.gridster.el.scrollLeft-s.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(i,s){let t=this.gridster.options.scale;return t?(i.clientY-s.top)/t+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():i.clientY+this.gridster.el.scrollTop-s.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(i,s){i.preventDefault(),i.stopPropagation(),L.checkTouchEvent(i);let t=this.gridster.el.getBoundingClientRect(),e=this.getPixelsX(i,t),n=this.getPixelsY(i,t),r={x:this.gridster.pixelsToPositionX(e,Math.floor,!0),y:this.gridster.pixelsToPositionY(n,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(s&&(r.cols=Math.min(Math.abs(s.x-r.x)+1,this.gridster.$options.emptyCellDragMaxCols),r.rows=Math.min(Math.abs(s.y-r.y)+1,this.gridster.$options.emptyCellDragMaxRows),s.xthis.gridster.$options.emptyCellDragMaxCols-1&&(r.x=this.gridster.movingItem?this.gridster.movingItem.x:0),s.ythis.gridster.$options.emptyCellDragMaxRows-1&&(r.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(r)))return r}},Qt=class{constructor(i){this.gridster=i,this.lastGridColumnStyles={},this.lastGridRowStyles={}}destroy(){this.gridster=null}updateItem(i,s,t){if(this.gridster.mobile)this.clearCellPosition(t,i),this.gridster.$options.keepFixedHeightInMobile?t.setStyle(i,"height",(s.rows-1)*this.gridster.$options.margin+s.rows*this.gridster.$options.fixedRowHeight+"px"):t.setStyle(i,"height",s.rows*this.gridster.curWidth/s.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?t.setStyle(i,"width",this.gridster.$options.fixedColWidth+"px"):t.setStyle(i,"width",""),t.setStyle(i,"margin-bottom",this.gridster.$options.margin+"px"),t.setStyle(i,O.LTR?"margin-right":"margin-left","");else{let e=Math.round(this.gridster.curColWidth*s.x),n=Math.round(this.gridster.curRowHeight*s.y),r=this.gridster.curColWidth*s.cols-this.gridster.$options.margin,l=this.gridster.curRowHeight*s.rows-this.gridster.$options.margin;this.setCellPosition(t,i,e,n),t.setStyle(i,"width",r+"px"),t.setStyle(i,"height",l+"px");let h=null,u=null;this.gridster.$options.outerMargin&&(this.gridster.rows===s.rows+s.y&&(this.gridster.$options.outerMarginBottom!==null?h=this.gridster.$options.outerMarginBottom+"px":h=this.gridster.$options.margin+"px"),this.gridster.columns===s.cols+s.x&&(this.gridster.$options.outerMarginBottom!==null?u=this.gridster.$options.outerMarginRight+"px":u=this.gridster.$options.margin+"px")),t.setStyle(i,"margin-bottom",h),t.setStyle(i,O.LTR?"margin-right":"margin-left",u)}}updateGridster(){let i="",s="",t="",e="";if(this.gridster.$options.gridType===v.Fit)i=v.Fit,s=v.ScrollVertical,t=v.ScrollHorizontal,e=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,i=v.ScrollVertical,s=v.Fit,t=v.ScrollHorizontal,e=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollHorizontal){let n=this.gridster.$options.rowHeightRatio,r=n>=1?n:n+1;this.gridster.curColWidth=this.gridster.curRowHeight*r,i=v.ScrollHorizontal,s=v.Fit,t=v.ScrollVertical,e=v.Fixed}else this.gridster.$options.gridType===v.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.Fixed,s=v.Fit,t=v.ScrollVertical,e=v.ScrollHorizontal):this.gridster.$options.gridType===v.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.ScrollVertical,s=v.Fit,t=v.ScrollHorizontal,e=v.Fixed):this.gridster.$options.gridType===v.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.ScrollHorizontal,s=v.Fit,t=v.ScrollVertical,e=v.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==v.Fit?this.gridster.renderer.removeClass(this.gridster.el,i):this.gridster.renderer.addClass(this.gridster.el,i),this.gridster.renderer.removeClass(this.gridster.el,s),this.gridster.renderer.removeClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,e)}getGridColumnStyle(i){let s={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};s.style=Ot(it({},this.getLeftPosition(s.left)),{width:s.width+"px",height:s.height+"px"});let t=this.lastGridColumnStyles[i];return t&&t.left===s.left&&t.width===s.width&&t.height===s.height?t.style:(this.lastGridColumnStyles[i]=s,s.style)}getGridRowStyle(i){let s={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};s.style=Ot(it({},this.getTopPosition(s.top)),{width:s.width+"px",height:s.height+"px"});let t=this.lastGridRowStyles[i];return t&&t.top===s.top&&t.width===s.width&&t.height===s.height?t.style:(this.lastGridRowStyles[i]=s,s.style)}getLeftPosition(i){let s=this.gridster.$options.dirType===O.RTL?-i:i;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+s+"px)"}:{left:this.getLeftMargin()+s+"px"}}getTopPosition(i){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+i+"px)"}:{top:this.getTopMargin()+i+"px"}}clearCellPosition(i,s){this.gridster.$options.useTransformPositioning?i.setStyle(s,"transform",""):(i.setStyle(s,"top",""),i.setStyle(s,"left",""))}setCellPosition(i,s,t,e){let n=this.gridster.$options.dirType===O.RTL?-t:t;if(this.gridster.$options.useTransformPositioning){let r="translate3d("+n+"px, "+e+"px, 0)";i.setStyle(s,"transform",r)}else i.setStyle(s,"left",this.getLeftMargin()+n+"px"),i.setStyle(s,"top",this.getTopMargin()+e+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},gi=(()=>{let i=class i{constructor(t,e){this.renderer=e,this.el=t.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(t=>this.previewStyle(t))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(t){t?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,t,this.renderer)):this.renderer.setStyle(this.el,"display","")}};i.\u0275fac=function(e){return new(e||i)(_(J),_(ot))},i.\u0275cmp=A({type:i,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},standalone:!0,features:[X],decls:0,vars:0,template:function(e,n){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026} +import{a as Pt}from"./chunk-V6EVLSKF.js";import{a as Pe,c as Fe,e as ze,f as We}from"./chunk-JE2DBAFS.js";import{c as De,d as Gt,f as wt,h as jt}from"./chunk-W7AFIDCE.js";import{a as st}from"./chunk-4E6RZBBM.js";import{a as nt}from"./chunk-EB65ROO7.js";import{a as Ee}from"./chunk-EAEBZZLM.js";import{a as Et}from"./chunk-QWH4BMSJ.js";import{a as Ft}from"./chunk-RNWIIYZZ.js";import{a as ke}from"./chunk-SUAWKU6Z.js";import{a as pt,b as Me}from"./chunk-ZXTET2VA.js";import{c as ye,d as _e,e as ve,f as Ie,g as Se,h as Te,j as $e}from"./chunk-6RK5MU4O.js";import{D as $t,E as kt,F as tt,G as be,H as xe,I as dt,J as ct,K as ft,L as Mt,d as Yt,e as we,k as Ce,u as ht}from"./chunk-LT3W5FMN.js";import{$a as a,$b as Xt,Ab as G,Ba as J,Bb as B,Bc as K,Cb as H,Da as V,Db as d,Eb as g,F as le,Fb as I,Ib as fe,Jb as y,Nb as f,Ob as c,Pb as Bt,Qb as Ht,R as ae,Rb as Q,S as Rt,Tb as j,Ub as U,Vb as q,Wb as at,X as St,Xa as pe,Xb as b,Y as he,Yb as M,Zb as Tt,_b as At,ab as _,ac as Nt,ba as z,cc as X,eb as ot,f as It,fa as A,ga as de,gb as Vt,ha as ce,hc as S,ic as T,jb as me,lb as ge,pa as gt,qa as p,ra as m,rb as F,s as ne,tb as k,ub as ut,vb as E,xb as ue,y as re,yb as x,z as oe,zb as Lt}from"./chunk-ZKAUCJHV.js";import{a as it,b as Ot}from"./chunk-DEPBX7UX.js";var Ve=["*"];function si(o,i){if(o&1&&I(0,"div",0),o&2){let s=i.$index,t=c();k("ngStyle",t.gridRenderer.getGridColumnStyle(s))}}function ni(o,i){if(o&1&&I(0,"div",1),o&2){let s=i.$index,t=c();k("ngStyle",t.gridRenderer.getGridRowStyle(s))}}function ri(o,i){if(o&1){let s=y();d(0,"div",8),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function oi(o,i){if(o&1){let s=y();d(0,"div",9),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function li(o,i){if(o&1){let s=y();d(0,"div",10),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function ai(o,i){if(o&1){let s=y();d(0,"div",11),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function hi(o,i){if(o&1){let s=y();d(0,"div",12),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function di(o,i){if(o&1){let s=y();d(0,"div",13),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function ci(o,i){if(o&1){let s=y();d(0,"div",14),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}function pi(o,i){if(o&1){let s=y();d(0,"div",15),f("mousedown",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))})("touchstart",function(e){p(s);let n=c();return m(n.resize.dragStartDelay(e))}),g()}}var v=function(o){return o.Fit="fit",o.ScrollVertical="scrollVertical",o.ScrollHorizontal="scrollHorizontal",o.Fixed="fixed",o.VerticalFixed="verticalFixed",o.HorizontalFixed="horizontalFixed",o}(v||{}),zt=function(o){return o.Always="always",o.OnDragAndResize="onDrag&Resize",o.None="none",o}(zt||{}),P=function(o){return o.None="none",o.CompactUp="compactUp",o.CompactLeft="compactLeft",o.CompactUpAndLeft="compactUp&Left",o.CompactLeftAndUp="compactLeft&Up",o.CompactRight="compactRight",o.CompactUpAndRight="compactUp&Right",o.CompactRightAndUp="compactRight&Up",o.CompactDown="compactDown",o.CompactDownAndLeft="compactDown&Left",o.CompactLeftAndDown="compactLeft&Down",o.CompactDownAndRight="compactDown&Right",o.CompactRightAndDown="compactRight&Down",o}(P||{}),O=function(o){return o.LTR="ltr",o.RTL="rtl",o}(O||{}),Ut=class{constructor(i){this.gridster=i}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==P.None&&(this.gridster.$options.compactType===P.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===P.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===P.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===P.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===P.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===P.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===P.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===P.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===P.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===P.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===P.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===P.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(i){this.gridster.$options.compactType!==P.None&&(this.gridster.$options.compactType===P.CompactUp?this.moveTillCollision(i,"y",-1):this.gridster.$options.compactType===P.CompactLeft?this.moveTillCollision(i,"x",-1):this.gridster.$options.compactType===P.CompactUpAndLeft?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===P.CompactLeftAndUp?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",-1)):this.gridster.$options.compactType===P.CompactUpAndRight?(this.moveTillCollision(i,"y",-1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===P.CompactDown?this.moveTillCollision(i,"y",1):this.gridster.$options.compactType===P.CompactDownAndLeft?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",-1)):this.gridster.$options.compactType===P.CompactLeftAndDown?(this.moveTillCollision(i,"x",-1),this.moveTillCollision(i,"y",1)):this.gridster.$options.compactType===P.CompactDownAndRight?(this.moveTillCollision(i,"y",1),this.moveTillCollision(i,"x",1)):this.gridster.$options.compactType===P.CompactRightAndDown&&(this.moveTillCollision(i,"x",1),this.moveTillCollision(i,"y",1)))}checkCompactMovement(i,s){let t=!1;this.gridster.grid.forEach(e=>{e.$item.compactEnabled!==!1&&this.moveTillCollision(e.$item,i,s)&&(t=!0,e.item[i]=e.$item[i],e.itemChanged())}),t&&this.checkCompact()}moveTillCollision(i,s,t){return i[s]+=t,this.gridster.checkCollision(i)?(i[s]-=t,!1):(this.moveTillCollision(i,s,t),!0)}},mi={gridType:v.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:P.None,mobileBreakpoint:640,useBodyForBreakpoint:!1,allowMultiLayer:!1,defaultLayerIndex:0,maxLayerIndex:2,baseLayerIndex:1,minCols:1,maxCols:100,minRows:1,maxRows:100,defaultItemCols:1,defaultItemRows:1,maxItemCols:50,maxItemRows:50,minItemCols:1,minItemRows:1,minItemArea:1,maxItemArea:2500,addEmptyRowsCount:0,rowHeightRatio:1,margin:10,outerMargin:!0,outerMarginTop:null,outerMarginRight:null,outerMarginBottom:null,outerMarginLeft:null,useTransformPositioning:!0,scrollSensitivity:10,scrollSpeed:20,initCallback:void 0,destroyCallback:void 0,gridSizeChangedCallback:void 0,itemChangeCallback:void 0,itemResizeCallback:void 0,itemInitCallback:void 0,itemRemovedCallback:void 0,itemValidateCallback:void 0,enableEmptyCellClick:!1,enableEmptyCellContextMenu:!1,enableEmptyCellDrop:!1,enableEmptyCellDrag:!1,enableOccupiedCellDrop:!1,emptyCellClickCallback:void 0,emptyCellContextMenuCallback:void 0,emptyCellDropCallback:void 0,emptyCellDragCallback:void 0,emptyCellDragMaxCols:50,emptyCellDragMaxRows:50,ignoreMarginInRow:!1,draggable:{delayStart:0,enabled:!1,ignoreContentClass:"gridster-item-content",ignoreContent:!1,dragHandleClass:"drag-handler",stop:void 0,start:void 0,dropOverItems:!1,dropOverItemsCallback:void 0},resizable:{delayStart:0,enabled:!1,handles:{s:!0,e:!0,n:!0,w:!0,se:!0,ne:!0,sw:!0,nw:!0},stop:void 0,start:void 0},swap:!0,swapWhileDragging:!1,pushItems:!1,disablePushOnDrag:!1,disablePushOnResize:!1,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushResizeItems:!1,displayGrid:zt.OnDragAndResize,disableWindowResize:!1,disableWarnings:!1,scrollToNewItems:!1,disableScrollHorizontal:!1,disableScrollVertical:!1,enableBoundaryControl:!1,disableAutoPositionOnConflict:!1,dirType:O.LTR},L=class o{static merge(i,s,t){for(let e in s)s[e]!==void 0&&t.hasOwnProperty(e)&&(typeof s[e]=="object"?(e in i||(i[e]={}),i[e]=o.merge(i[e],s[e],t[e])):i[e]=s[e]);return i}static checkTouchEvent(i){i.clientX===void 0&&i.touches&&(i.touches&&i.touches.length?(i.clientX=i.touches[0].clientX,i.clientY=i.touches[0].clientY):i.changedTouches&&i.changedTouches.length&&(i.clientX=i.changedTouches[0].clientX,i.clientY=i.changedTouches[0].clientY))}static checkContentClassForEvent(i,s){if(i.$options.draggable.ignoreContent){if(!o.checkDragHandleClass(s.target,s.currentTarget,i.$options.draggable.dragHandleClass,i.$options.draggable.ignoreContentClass))return!0}else if(o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(i,s){return o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.ignoreContentClass)||o.checkContentClass(s.target,s.currentTarget,i.$options.draggable.dragHandleClass)}static checkDragHandleClass(i,s,t,e){if(!i||i===s)return!1;if(i.hasAttribute("class")){let n=i.getAttribute("class").split(" ");if(n.indexOf(t)>-1)return!0;if(n.indexOf(e)>-1)return!1}return o.checkDragHandleClass(i.parentNode,s,t,e)}static checkContentClass(i,s,t){return!i||i===s?!1:i.hasAttribute("class")&&i.getAttribute("class").split(" ").indexOf(t)>-1?!0:o.checkContentClass(i.parentNode,s,t)}static compareItems(i,s){return i.y>s.y?-1:i.ys.x?-1:1}},qt=class{constructor(i){this.gridster=i,this.emptyCellClickCb=s=>{if(!this.gridster||this.gridster.movingItem||L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellContextMenuCb=s=>{if(this.gridster.movingItem||L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellDragDrop=s=>{let t=this.getValidItemFromEvent(s);t&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(s,t),this.gridster.cdRef.markForCheck())},this.emptyCellDragOver=s=>{s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);t?(s.dataTransfer&&(s.dataTransfer.dropEffect="move"),this.gridster.movingItem=t):(s.dataTransfer&&(s.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()},this.emptyCellMouseDown=s=>{if(L.checkContentClassForEmptyCellClickEvent(this.gridster,s))return;s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s);!t||s.buttons!==1&&!(s instanceof TouchEvent)||(this.initialItem=t,this.gridster.movingItem=t,this.gridster.previewStyle(),this.gridster.zone.runOutsideAngular(()=>{this.removeWindowMousemoveListenerFn=this.gridster.renderer.listen("window","mousemove",this.emptyCellMouseMove),this.removeWindowTouchmoveListenerFn=this.gridster.renderer.listen("window","touchmove",this.emptyCellMouseMove)}),this.removeWindowMouseupListenerFn=this.gridster.renderer.listen("window","mouseup",this.emptyCellMouseUp),this.removeWindowTouchendListenerFn=this.gridster.renderer.listen("window","touchend",this.emptyCellMouseUp))},this.emptyCellMouseMove=s=>{s.preventDefault(),s.stopPropagation();let t=this.getValidItemFromEvent(s,this.initialItem);t&&(this.gridster.movingItem=t,this.gridster.previewStyle())},this.emptyCellMouseUp=s=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let t=this.getValidItemFromEvent(s,this.initialItem);t&&(this.gridster.movingItem=t),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(s,this.gridster.movingItem),setTimeout(()=>{this.initialItem=null,this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())}),this.gridster.cdRef.markForCheck()}}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(),this.gridster.movingItem=null,this.initialItem=this.gridster=null,this.removeDocumentDragendListenerFn&&(this.removeDocumentDragendListenerFn(),this.removeDocumentDragendListenerFn=null)}updateOptions(){this.gridster.$options.enableEmptyCellClick&&!this.removeEmptyCellClickListenerFn&&this.gridster.options.emptyCellClickCallback?(this.removeEmptyCellClickListenerFn=this.gridster.renderer.listen(this.gridster.el,"click",this.emptyCellClickCb),this.removeEmptyCellTouchendListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchend",this.emptyCellClickCb)):!this.gridster.$options.enableEmptyCellClick&&this.removeEmptyCellClickListenerFn&&this.removeEmptyCellTouchendListenerFn&&(this.removeEmptyCellClickListenerFn(),this.removeEmptyCellTouchendListenerFn(),this.removeEmptyCellClickListenerFn=null,this.removeEmptyCellTouchendListenerFn=null),this.gridster.$options.enableEmptyCellContextMenu&&!this.removeEmptyCellContextMenuListenerFn&&this.gridster.options.emptyCellContextMenuCallback?this.removeEmptyCellContextMenuListenerFn=this.gridster.renderer.listen(this.gridster.el,"contextmenu",this.emptyCellContextMenuCb):!this.gridster.$options.enableEmptyCellContextMenu&&this.removeEmptyCellContextMenuListenerFn&&(this.removeEmptyCellContextMenuListenerFn(),this.removeEmptyCellContextMenuListenerFn=null),this.gridster.$options.enableEmptyCellDrop&&!this.removeEmptyCellDropListenerFn&&this.gridster.options.emptyCellDropCallback?(this.removeEmptyCellDropListenerFn=this.gridster.renderer.listen(this.gridster.el,"drop",this.emptyCellDragDrop),this.gridster.zone.runOutsideAngular(()=>{this.removeEmptyCellDragoverListenerFn=this.gridster.renderer.listen(this.gridster.el,"dragover",this.emptyCellDragOver)}),this.removeDocumentDragendListenerFn=this.gridster.renderer.listen("document","dragend",()=>{this.gridster.movingItem=null,this.gridster.previewStyle()})):!this.gridster.$options.enableEmptyCellDrop&&this.removeEmptyCellDropListenerFn&&this.removeEmptyCellDragoverListenerFn&&this.removeDocumentDragendListenerFn&&(this.removeEmptyCellDropListenerFn(),this.removeEmptyCellDragoverListenerFn(),this.removeDocumentDragendListenerFn(),this.removeEmptyCellDragoverListenerFn=null,this.removeEmptyCellDropListenerFn=null,this.removeDocumentDragendListenerFn=null),this.gridster.$options.enableEmptyCellDrag&&!this.removeEmptyCellMousedownListenerFn&&this.gridster.options.emptyCellDragCallback?(this.removeEmptyCellMousedownListenerFn=this.gridster.renderer.listen(this.gridster.el,"mousedown",this.emptyCellMouseDown),this.removeEmptyCellTouchstartListenerFn=this.gridster.renderer.listen(this.gridster.el,"touchstart",this.emptyCellMouseDown)):!this.gridster.$options.enableEmptyCellDrag&&this.removeEmptyCellMousedownListenerFn&&this.removeEmptyCellTouchstartListenerFn&&(this.removeEmptyCellMousedownListenerFn(),this.removeEmptyCellTouchstartListenerFn(),this.removeEmptyCellMousedownListenerFn=null,this.removeEmptyCellTouchstartListenerFn=null)}getPixelsX(i,s){let t=this.gridster.options.scale;return t?(i.clientX-s.left)/t+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():i.clientX+this.gridster.el.scrollLeft-s.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(i,s){let t=this.gridster.options.scale;return t?(i.clientY-s.top)/t+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():i.clientY+this.gridster.el.scrollTop-s.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(i,s){i.preventDefault(),i.stopPropagation(),L.checkTouchEvent(i);let t=this.gridster.el.getBoundingClientRect(),e=this.getPixelsX(i,t),n=this.getPixelsY(i,t),r={x:this.gridster.pixelsToPositionX(e,Math.floor,!0),y:this.gridster.pixelsToPositionY(n,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(s&&(r.cols=Math.min(Math.abs(s.x-r.x)+1,this.gridster.$options.emptyCellDragMaxCols),r.rows=Math.min(Math.abs(s.y-r.y)+1,this.gridster.$options.emptyCellDragMaxRows),s.xthis.gridster.$options.emptyCellDragMaxCols-1&&(r.x=this.gridster.movingItem?this.gridster.movingItem.x:0),s.ythis.gridster.$options.emptyCellDragMaxRows-1&&(r.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(r)))return r}},Qt=class{constructor(i){this.gridster=i,this.lastGridColumnStyles={},this.lastGridRowStyles={}}destroy(){this.gridster=null}updateItem(i,s,t){if(this.gridster.mobile)this.clearCellPosition(t,i),this.gridster.$options.keepFixedHeightInMobile?t.setStyle(i,"height",(s.rows-1)*this.gridster.$options.margin+s.rows*this.gridster.$options.fixedRowHeight+"px"):t.setStyle(i,"height",s.rows*this.gridster.curWidth/s.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?t.setStyle(i,"width",this.gridster.$options.fixedColWidth+"px"):t.setStyle(i,"width",""),t.setStyle(i,"margin-bottom",this.gridster.$options.margin+"px"),t.setStyle(i,O.LTR?"margin-right":"margin-left","");else{let e=Math.round(this.gridster.curColWidth*s.x),n=Math.round(this.gridster.curRowHeight*s.y),r=this.gridster.curColWidth*s.cols-this.gridster.$options.margin,l=this.gridster.curRowHeight*s.rows-this.gridster.$options.margin;this.setCellPosition(t,i,e,n),t.setStyle(i,"width",r+"px"),t.setStyle(i,"height",l+"px");let h=null,u=null;this.gridster.$options.outerMargin&&(this.gridster.rows===s.rows+s.y&&(this.gridster.$options.outerMarginBottom!==null?h=this.gridster.$options.outerMarginBottom+"px":h=this.gridster.$options.margin+"px"),this.gridster.columns===s.cols+s.x&&(this.gridster.$options.outerMarginBottom!==null?u=this.gridster.$options.outerMarginRight+"px":u=this.gridster.$options.margin+"px")),t.setStyle(i,"margin-bottom",h),t.setStyle(i,O.LTR?"margin-right":"margin-left",u)}}updateGridster(){let i="",s="",t="",e="";if(this.gridster.$options.gridType===v.Fit)i=v.Fit,s=v.ScrollVertical,t=v.ScrollHorizontal,e=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,i=v.ScrollVertical,s=v.Fit,t=v.ScrollHorizontal,e=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollHorizontal){let n=this.gridster.$options.rowHeightRatio,r=n>=1?n:n+1;this.gridster.curColWidth=this.gridster.curRowHeight*r,i=v.ScrollHorizontal,s=v.Fit,t=v.ScrollVertical,e=v.Fixed}else this.gridster.$options.gridType===v.Fixed?(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.Fixed,s=v.Fit,t=v.ScrollVertical,e=v.ScrollHorizontal):this.gridster.$options.gridType===v.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.ScrollVertical,s=v.Fit,t=v.ScrollHorizontal,e=v.Fixed):this.gridster.$options.gridType===v.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),i=v.ScrollHorizontal,s=v.Fit,t=v.ScrollVertical,e=v.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==v.Fit?this.gridster.renderer.removeClass(this.gridster.el,i):this.gridster.renderer.addClass(this.gridster.el,i),this.gridster.renderer.removeClass(this.gridster.el,s),this.gridster.renderer.removeClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,e)}getGridColumnStyle(i){let s={left:this.gridster.curColWidth*i,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};s.style=Ot(it({},this.getLeftPosition(s.left)),{width:s.width+"px",height:s.height+"px"});let t=this.lastGridColumnStyles[i];return t&&t.left===s.left&&t.width===s.width&&t.height===s.height?t.style:(this.lastGridColumnStyles[i]=s,s.style)}getGridRowStyle(i){let s={top:this.gridster.curRowHeight*i,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};s.style=Ot(it({},this.getTopPosition(s.top)),{width:s.width+"px",height:s.height+"px"});let t=this.lastGridRowStyles[i];return t&&t.top===s.top&&t.width===s.width&&t.height===s.height?t.style:(this.lastGridRowStyles[i]=s,s.style)}getLeftPosition(i){let s=this.gridster.$options.dirType===O.RTL?-i:i;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+s+"px)"}:{left:this.getLeftMargin()+s+"px"}}getTopPosition(i){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+i+"px)"}:{top:this.getTopMargin()+i+"px"}}clearCellPosition(i,s){this.gridster.$options.useTransformPositioning?i.setStyle(s,"transform",""):(i.setStyle(s,"top",""),i.setStyle(s,"left",""))}setCellPosition(i,s,t,e){let n=this.gridster.$options.dirType===O.RTL?-t:t;if(this.gridster.$options.useTransformPositioning){let r="translate3d("+n+"px, "+e+"px, 0)";i.setStyle(s,"transform",r)}else i.setStyle(s,"left",this.getLeftMargin()+n+"px"),i.setStyle(s,"top",this.getTopMargin()+e+"px")}getLeftMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginLeft!==null?this.gridster.$options.outerMarginLeft:this.gridster.$options.margin:0}getTopMargin(){return this.gridster.$options.outerMargin?this.gridster.$options.outerMarginTop!==null?this.gridster.$options.outerMarginTop:this.gridster.$options.margin:0}},gi=(()=>{let i=class i{constructor(t,e){this.renderer=e,this.el=t.nativeElement}ngOnInit(){this.sub=this.previewStyle$.subscribe(t=>this.previewStyle(t))}ngOnDestroy(){this.sub&&this.sub.unsubscribe()}previewStyle(t){t?(this.renderer.setStyle(this.el,"display","block"),this.gridRenderer.updateItem(this.el,t,this.renderer)):this.renderer.setStyle(this.el,"display","")}};i.\u0275fac=function(e){return new(e||i)(_(J),_(ot))},i.\u0275cmp=A({type:i,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},standalone:!0,features:[X],decls:0,vars:0,template:function(e,n){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026} `],encapsulation:2});let o=i;return o})(),ee=(()=>{let i=class i{constructor(t,e,n,r){this.renderer=e,this.cdRef=n,this.zone=r,this.columns=0,this.rows=0,this.gridColumns=[],this.gridRows=[],this.previewStyle$=new V,this.calculateLayout$=new It,this.resize$=new It,this.destroy$=new It,this.optionsChanged=()=>{this.setOptions();let l=this.grid.length-1,h;for(;l>=0;l--)h=this.grid[l],h.updateOptions();this.calculateLayout()},this.onResize=()=>{this.el.clientWidth&&(this.options.setGridSize&&(this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.setGridSize(),this.calculateLayout())},this.getNextPossiblePosition=(l,h={})=>{l.cols===-1&&(l.cols=this.$options.defaultItemCols),l.rows===-1&&(l.rows=this.$options.defaultItemRows),this.setGridDimensions();let u=h.y||0,w;for(;u=this.rows+l.rows,$=this.$options.maxCols>=this.columns+l.cols;return!(this.rows<=this.columns&&C)&&$?(l.x=this.columns,l.y=0,!0):C?(l.y=this.rows,l.x=0,!0):!1},this.getFirstPossiblePosition=l=>{let h=Object.assign({},l);return this.getNextPossiblePosition(h),h},this.getLastPossiblePosition=l=>{let h={y:0,x:0};h=this.grid.reduce((w,C)=>{let $={y:C.$item.y+C.$item.rows-1,x:C.$item.x+C.$item.cols-1};return L.compareItems(w,$)===1?$:w},h);let u=Object.assign({},l);return this.getNextPossiblePosition(u,h),u},this.el=t.nativeElement,this.$options=JSON.parse(JSON.stringify(mi)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new qt(this),this.compact=new Ut(this),this.gridRenderer=new Qt(this)}static checkCollisionTwoItemsForSwaping(t,e){let n=t.cols===1?0:1,r=e.cols===1?0:1,l=t.rows===1?0:1,h=e.rows===1?0:1;return t.x+ne.x+r&&t.y+le.y+h}checkCollisionTwoItems(t,e){if(!(t.xe.x&&t.ye.y))return!1;if(!this.$options.allowMultiLayer)return!0;let r=this.$options.defaultLayerIndex,l=t.layerIndex===void 0?r:t.layerIndex,h=e.layerIndex===void 0?r:e.layerIndex;return l===h}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe(le(0),Rt(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe(ae(()=>oe(100)),Rt(this.destroy$)).subscribe(()=>this.resize())}ngOnChanges(t){t.options&&(this.setOptions(),this.options.api={optionsChanged:this.optionsChanged,resize:this.onResize,getNextPossiblePosition:this.getNextPossiblePosition,getFirstPossiblePosition:this.getFirstPossiblePosition,getLastPossiblePosition:this.getLastPossiblePosition,getItemComponent:e=>this.getItemComponent(e)},this.columns=this.$options.minCols,this.rows=this.$options.minRows+this.$options.addEmptyRowsCount,this.setGridSize(),this.calculateLayout())}resize(){let t,e;this.$options.gridType==="fit"&&!this.mobile?(e=this.el.offsetWidth,t=this.el.offsetHeight):(e=this.el.clientWidth,t=this.el.clientHeight),(e!==this.curWidth||t!==this.curHeight)&&this.checkIfToResize()&&this.onResize()}setOptions(){this.$options=L.merge(this.$options,this.options,this.$options),!this.$options.disableWindowResize&&!this.windowResize?this.windowResize=this.renderer.listen("window","resize",this.onResize):this.$options.disableWindowResize&&this.windowResize&&(this.windowResize(),this.windowResize=null),this.emptyCell.updateOptions()}ngOnDestroy(){this.destroy$.next(),this.previewStyle$.complete(),this.windowResize&&this.windowResize(),this.options&&this.options.destroyCallback&&this.options.destroyCallback(this),this.options&&this.options.api&&(this.options.api.resize=void 0,this.options.api.optionsChanged=void 0,this.options.api.getNextPossiblePosition=void 0,this.options.api=void 0),this.emptyCell.destroy(),this.emptyCell=null,this.compact.destroy(),this.compact=null}checkIfToResize(){let t=this.el.clientWidth,e=this.el.offsetWidth,n=this.el.scrollWidth,r=this.el.clientHeight,l=this.el.offsetHeight,h=this.el.scrollHeight,u=tl&&h-le&&n-edocument.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){let t=this.el,e,n;this.$options.setGridSize||this.$options.gridType===v.Fit&&!this.mobile?(e=t.offsetWidth,n=t.offsetHeight):(e=t.clientWidth,n=t.clientHeight),this.curWidth=e,this.curHeight=n}setGridDimensions(){this.setGridSize(),!this.mobile&&this.checkIfMobile()?(this.mobile=!this.mobile,this.renderer.addClass(this.el,"mobile")):this.mobile&&!this.checkIfMobile()&&(this.mobile=!this.mobile,this.renderer.removeClass(this.el,"mobile"));let t=this.$options.minRows,e=this.$options.minCols,n=this.grid.length-1,r;for(;n>=0;n--)r=this.grid[n],r.notPlaced||(t=Math.max(t,r.$item.y+r.$item.rows),e=Math.max(e,r.$item.x+r.$item.cols));t+=this.$options.addEmptyRowsCount,(this.columns!==e||this.rows!==t)&&(this.columns=e,this.rows=t,this.options.gridSizeChangedCallback&&this.options.gridSizeChangedCallback(this))}calculateLayout(){if(this.compact&&this.compact.checkCompact(),this.setGridDimensions(),this.$options.outerMargin){let n=-this.$options.margin;this.$options.outerMarginLeft!==null?(n+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),this.$options.outerMarginRight!==null?(n+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-n)/this.columns;let r=-this.$options.margin;this.$options.outerMarginTop!==null?(r+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),this.$options.outerMarginBottom!==null?(r+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(r+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-r)/this.rows*this.$options.rowHeightRatio}else this.curColWidth=(this.curWidth+this.$options.margin)/this.columns,this.curRowHeight=(this.curHeight+this.$options.margin)/this.rows*this.$options.rowHeightRatio,this.renderer.setStyle(this.el,"padding-left","0px"),this.renderer.setStyle(this.el,"padding-right","0px"),this.renderer.setStyle(this.el,"padding-top","0px"),this.renderer.setStyle(this.el,"padding-bottom","0px");this.gridRenderer.updateGridster(),this.$options.setGridSize?(this.renderer.addClass(this.el,"gridSize"),this.mobile||(this.renderer.setStyle(this.el,"width",this.columns*this.curColWidth+this.$options.margin+"px"),this.renderer.setStyle(this.el,"height",this.rows*this.curRowHeight+this.$options.margin+"px"))):(this.renderer.removeClass(this.el,"gridSize"),this.renderer.setStyle(this.el,"width",""),this.renderer.setStyle(this.el,"height","")),this.updateGrid();let t=this.grid.length-1,e;for(;t>=0;t--)e=this.grid[t],e.setSize(),e.drag.toggle(),e.resize.toggle();this.resize$.next()}updateGrid(){this.$options.displayGrid==="always"&&!this.mobile?this.renderer.addClass(this.el,"display-grid"):this.$options.displayGrid==="onDrag&Resize"&&this.dragInProgress?this.renderer.addClass(this.el,"display-grid"):(this.$options.displayGrid==="none"||!this.dragInProgress||this.mobile)&&this.renderer.removeClass(this.el,"display-grid"),this.setGridDimensions(),this.gridColumns.length=i.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=i.getNewArrayLength(this.rows,this.curHeight,this.curRowHeight),this.cdRef.markForCheck()}addItem(t){t.$item.cols===void 0&&(t.$item.cols=this.$options.defaultItemCols,t.item.cols=t.$item.cols,t.itemChanged()),t.$item.rows===void 0&&(t.$item.rows=this.$options.defaultItemRows,t.item.rows=t.$item.rows,t.itemChanged()),t.$item.x===-1||t.$item.y===-1?this.autoPositionItem(t):this.checkCollision(t.$item)&&(this.$options.disableWarnings||(t.notPlaced=!0,console.warn("Can't be placed in the bounds of the dashboard, trying to auto position!/n"+JSON.stringify(t.item,["cols","rows","x","y"]))),this.$options.disableAutoPositionOnConflict?t.notPlaced=!0:this.autoPositionItem(t)),this.grid.push(t),this.calculateLayout$.next()}removeItem(t){this.grid.splice(this.grid.indexOf(t),1),this.calculateLayout$.next(),this.options.itemRemovedCallback&&this.options.itemRemovedCallback(t.item,t)}checkCollision(t){let e=!1;if(this.options.itemValidateCallback&&(e=!this.options.itemValidateCallback(t)),!e&&this.checkGridCollision(t)&&(e=!0),!e){let n=this.findItemWithItem(t);n&&(e=n)}return e}checkGridCollision(t){let e=t.y>-1&&t.x>-1,n=t.cols+t.x<=this.$options.maxCols,r=t.rows+t.y<=this.$options.maxRows,l=t.maxItemCols===void 0?this.$options.maxItemCols:t.maxItemCols,h=t.minItemCols===void 0?this.$options.minItemCols:t.minItemCols,u=t.maxItemRows===void 0?this.$options.maxItemRows:t.maxItemRows,w=t.minItemRows===void 0?this.$options.minItemRows:t.minItemRows,C=t.cols<=l&&t.cols>=h,$=t.rows<=u&&t.rows>=w,W=t.minItemArea===void 0?this.$options.minItemArea:t.minItemArea,R=t.maxItemArea===void 0?this.$options.maxItemArea:t.maxItemArea,D=t.cols*t.rows,Z=W<=D,mt=R>=D;return!(e&&n&&r&&C&&$&&Z&&mt)}findItemWithItem(t){let e=0,n;for(;ee.item===t)}checkCollisionForSwaping(t){let e=!1;if(this.options.itemValidateCallback&&(e=!this.options.itemValidateCallback(t)),!e&&this.checkGridCollision(t)&&(e=!0),!e){let n=this.findItemWithItemForSwapping(t);n&&(e=n)}return e}findItemWithItemForSwapping(t){let e=this.grid.length-1,n;for(;e>-1;e--)if(n=this.grid[e],n.$item!==t&&i.checkCollisionTwoItemsForSwaping(n.$item,t))return n;return!1}previewStyle(t=!1){this.movingItem?(this.compact&&t&&this.compact.checkCompactItem(this.movingItem),this.previewStyle$.next(this.movingItem)):this.previewStyle$.next(null)}static getNewArrayLength(t,e,n){let r=Math.max(t,Math.floor(e/n));return r<0?0:Number.isFinite(r)?Math.floor(r):0}};i.\u0275fac=function(e){return new(e||i)(_(J),_(ot),_(K),_(Vt))},i.\u0275cmp=A({type:i,selectors:[["gridster"]],inputs:{options:"options"},standalone:!0,features:[gt,X],ngContentSelectors:Ve,decls:6,vars:2,consts:[[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"]],template:function(e,n){e&1&&(Bt(),B(0,si,1,1,"div",0,Lt),B(2,ni,1,1,"div",1,Lt),Ht(4),I(5,"gridster-preview",2)),e&2&&(H(n.gridColumns),a(2),H(n.gridRows),a(3),k("gridRenderer",n.gridRenderer)("previewStyle$",n.previewStyle$))},dependencies:[we,gi],styles:[`gridster{position:relative;box-sizing:border-box;background:gray;width:100%;height:100%;-webkit-user-select:none;user-select:none;display:block}gridster.fit{overflow-x:hidden;overflow-y:hidden}gridster.scrollVertical{overflow-x:hidden;overflow-y:auto}gridster.scrollHorizontal{overflow-x:auto;overflow-y:hidden}gridster.fixed{overflow:auto}gridster.mobile{overflow-x:hidden;overflow-y:auto}gridster.mobile gridster-item{position:relative}gridster.gridSize{height:initial;width:initial}gridster.gridSize.fit{height:100%;width:100%}gridster .gridster-column,gridster .gridster-row{position:absolute;display:none;transition:.3s;box-sizing:border-box}gridster.display-grid .gridster-column,gridster.display-grid .gridster-row{display:block}gridster .gridster-column{border-left:1px solid white;border-right:1px solid white}gridster .gridster-row{border-top:1px solid white;border-bottom:1px solid white} `],encapsulation:2});let o=i;return o})(),Dt=class{constructor(i){this.iteration=0,this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:[this.tryWest,this.trySouth,this.tryNorth,this.tryEast],fromWest:[this.tryEast,this.trySouth,this.tryNorth,this.tryWest],fromNorth:[this.trySouth,this.tryEast,this.tryWest,this.tryNorth],fromSouth:[this.tryNorth,this.tryEast,this.tryWest,this.trySouth]},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i,s){if(this.gridster.$options.pushItems&&!s){this.pushedItemsOrder=[],this.iteration=0;let t=this.push(this.gridsterItem,i);return t||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],t}else return!1}restoreTempItems(){let i=this.pushedItemsTemp.length-1;for(;i>-1;i--)this.removeFromTempPushed(this.pushedItemsTemp[i])}restoreItems(){let i=0,s=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(s=!0);s&&this.checkPushBack()}push(i,s){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(i.$item)||s==="")return!1;let t=this.gridster.findItemsWithItem(i.$item),e=s===this.fromNorth||s===this.fromWest;t.sort((u,w)=>e?w.$item.y-u.$item.y||w.$item.x-u.$item.x:u.$item.y-w.$item.y||u.$item.x-w.$item.x);let n=0,r,l=!0,h=[];for(;n-1&&this.pushedItemsTempPath[u].length>10){l=!1;break}if(this.tryPattern[s][0].call(this,r,i))this.pushedItemsOrder.push(r),h.push(r);else if(this.tryPattern[s][1].call(this,r,i))this.pushedItemsOrder.push(r),h.push(r);else if(this.tryPattern[s][2].call(this,r,i))this.pushedItemsOrder.push(r),h.push(r);else if(this.tryPattern[s][3].call(this,r,i))this.pushedItemsOrder.push(r),h.push(r);else{l=!1;break}}if(!l&&(n=this.pushedItemsOrder.lastIndexOf(h[0]),n>-1)){let u=this.pushedItemsOrder.length-1;for(;u>=n;u--)r=this.pushedItemsOrder[u],this.pushedItemsOrder.pop(),this.removeFromTempPushed(r),this.removeFromPushedItem(r)}return this.iteration++,l}trySouth(i,s){return this.gridster.$options.pushDirections.south?(this.addToTempPushed(i),i.$item.y=s.$item.y+s.$item.rows,this.push(i,this.fromNorth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryNorth(i,s){return this.gridster.$options.pushDirections.north?(this.addToTempPushed(i),i.$item.y=s.$item.y-i.$item.rows,this.push(i,this.fromSouth)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryEast(i,s){return this.gridster.$options.pushDirections.east?(this.addToTempPushed(i),i.$item.x=s.$item.x+s.$item.cols,this.push(i,this.fromWest)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}tryWest(i,s){return this.gridster.$options.pushDirections.west?(this.addToTempPushed(i),i.$item.x=s.$item.x-i.$item.cols,this.push(i,this.fromEast)?(i.setSize(),this.addToPushed(i),!0):(this.removeFromTempPushed(i),!1)):!1}addToTempPushed(i){let s=this.pushedItemsTemp.indexOf(i);s===-1&&(s=this.pushedItemsTemp.push(i)-1,this.pushedItemsTempPath[s]=[]),this.pushedItemsTempPath[s].push({x:i.$item.x,y:i.$item.y})}removeFromTempPushed(i){let s=this.pushedItemsTemp.indexOf(i),t=this.pushedItemsTempPath[s].pop();t&&(i.$item.x=t.x,i.$item.y=t.y,i.setSize(),this.pushedItemsTempPath[s].length||(this.pushedItemsTemp.splice(s,1),this.pushedItemsTempPath.splice(s,1)))}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0},{x:i.$item.x,y:i.$item.y}]);else{let s=this.pushedItems.indexOf(i);this.pushedItemsPath[s].push({x:i.$item.x,y:i.$item.y})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}removeFromPushedItem(i){let s=this.pushedItems.indexOf(i);s>-1&&(this.pushedItemsPath[s].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(s,1),this.pushedItemsPath.splice(s,1)))}checkPushedItem(i,s){let t=this.pushedItemsPath[s],e=t.length-2,n,r,l,h=!1;for(;e>-1;e--)n=t[e],r=i.$item.x,l=i.$item.y,i.$item.x=n.x,i.$item.y=n.y,this.gridster.findItemWithItem(i.$item)?(i.$item.x=r,i.$item.y=l):(i.setSize(),t.splice(e+1,t.length-e-1),h=!0);return t.length<2&&this.removeFromPushed(s),h}},Ct,lt,Le=50,Y,bt,et,xt,yt,_t,vt;function Be(o,i,s,t,e,n,r,l,h,u){Ct=o.$options.scrollSensitivity,lt=o.$options.scrollSpeed,Y=o.el,bt=h,et=u;let w=Y.offsetWidth,C=Y.offsetHeight,$=Y.scrollLeft,W=Y.scrollTop,R=s-W,D=C+W-s-e,{clientX:Z,clientY:mt}=n;if(!o.$options.disableScrollVertical)if(r.clientYmt&&W>0&&RZ&&$>0&&ii{(!Y||o===-1&&Y.scrollTop-lt<0)&&se(),Y.scrollTop+=o*lt,t+=o*lt,i({clientX:s.clientX,clientY:t})},Le)}function Re(o,i,s){let t=s.clientX;return window.setInterval(()=>{(!Y||o===-1&&Y.scrollLeft-lt<0)&&ie(),Y.scrollLeft+=o*lt,t+=o*lt,i({clientX:t,clientY:s.clientY})},Le)}function He(){ie(),se(),Y=null}function ie(){Ae(),Xe()}function se(){Ye(),Ne()}function Ae(){xt&&(clearInterval(xt),xt=0)}function Xe(){yt&&(clearInterval(yt),yt=0)}function Ne(){vt&&(clearInterval(vt),vt=0)}function Ye(){_t&&(clearInterval(_t),_t=0)}var Kt=class{constructor(i){this.gridsterItem=i,this.gridster=i.gridster}destroy(){this.gridster=this.gridsterItem=this.swapedItem=null}swapItems(){this.gridster.$options.swap&&(this.checkSwapBack(),this.checkSwap(this.gridsterItem))}checkSwapBack(){if(this.swapedItem){let i=this.swapedItem.$item.x,s=this.swapedItem.$item.y;this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.gridster.checkCollision(this.swapedItem.$item)?(this.swapedItem.$item.x=i,this.swapedItem.$item.y=s):(this.swapedItem.setSize(),this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.swapedItem=void 0)}}restoreSwapItem(){this.swapedItem&&(this.swapedItem.$item.x=this.swapedItem.item.x||0,this.swapedItem.$item.y=this.swapedItem.item.y||0,this.swapedItem.setSize(),this.swapedItem=void 0)}setSwapItem(){this.swapedItem&&(this.swapedItem.checkItemChanges(this.swapedItem.$item,this.swapedItem.item),this.swapedItem=void 0)}checkSwap(i){let s;if(this.gridster.$options.swapWhileDragging?s=this.gridster.checkCollisionForSwaping(i.$item):s=this.gridster.checkCollision(i.$item),s&&s!==!0&&s.canBeDragged()){let t=s,e=t.$item.x,n=t.$item.y,r=i.$item.x,l=i.$item.y,h=r-e,u=l-n;t.$item.x=i.item.x-h,t.$item.y=i.item.y-u,i.$item.x=t.item.x+h,i.$item.y=t.item.y+u,this.gridster.checkCollision(t.$item)||this.gridster.checkCollision(i.$item)?(i.$item.x=r,i.$item.y=l,t.$item.x=e,t.$item.y=n):(t.setSize(),this.swapedItem=t,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}},ui="gridster-item-resizable-handler",N=function(o){return o.UP="UP",o.DOWN="DOWN",o.LEFT="LEFT",o.RIGHT="RIGHT",o}(N||{}),Zt=class{constructor(i,s,t){this.zone=t,this.collision=!1,this.dragMove=e=>{e.stopPropagation(),e.preventDefault(),L.checkTouchEvent(e);let n=this.getDirections(e);this.gridster.options.enableBoundaryControl&&(n.includes(N.UP)&&this.gridsterItem.el.getBoundingClientRect().topr!=N.UP),e=new MouseEvent(e.type,{clientX:e.clientX,clientY:this.lastMouse.clientY})),n.includes(N.LEFT)&&this.gridsterItem.el.getBoundingClientRect().leftr!=N.LEFT),e=new MouseEvent(e.type,{clientX:this.lastMouse.clientX,clientY:e.clientY})),n.includes(N.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(n=n.filter(r=>r!=N.RIGHT),e=new MouseEvent(e.type,{clientX:this.lastMouse.clientX,clientY:e.clientY})),n.includes(N.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(n=n.filter(r=>r!=N.DOWN),e=new MouseEvent(e.type,{clientX:e.clientX,clientY:this.lastMouse.clientY}))),n.length&&(this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,Be(this.gridster,this.left,this.top,this.width,this.height,e,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(e))},this.calculateItemPositionFromMousePosition=e=>{this.gridster.options.scale?this.calculateItemPositionWithScale(e,this.gridster.options.scale):this.calculateItemPositionWithoutScale(e),this.calculateItemPosition(),this.lastMouse.clientX=e.clientX,this.lastMouse.clientY=e.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=e=>{e.stopPropagation(),e.preventDefault(),He(),this.cancelOnBlur(),this.mousemove(),this.mouseup(),this.mouseleave(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-moving"),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.path=[],this.gridster.options.draggable&&this.gridster.options.draggable.stop?Promise.resolve(this.gridster.options.draggable.stop(this.gridsterItem.item,this.gridsterItem,e)).then(this.makeDrag,this.cancelDrag):this.makeDrag(),setTimeout(()=>{this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle(!0))})},this.cancelDrag=()=>{this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push&&this.push.restoreItems(),this.swap&&this.swap.restoreSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)},this.makeDrag=()=>{this.gridster.$options.draggable.dropOverItems&&this.gridster.options.draggable&&this.gridster.options.draggable.dropOverItemsCallback&&this.collision&&this.collision!==!0&&this.collision.$item&&this.gridster.options.draggable.dropOverItemsCallback(this.gridsterItem.item,this.collision.item,this.gridster),this.collision=!1,this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push&&this.push.setPushedItems(),this.swap&&this.swap.setSwapItem(),this.push&&(this.push.destroy(),this.push=null),this.swap&&(this.swap.destroy(),this.swap=null)},this.dragStartDelay=e=>{if(e.target.classList.contains(ui)||L.checkContentClassForEvent(this.gridster,e))return;if(L.checkTouchEvent(e),!this.gridster.$options.draggable.delayStart){this.dragStart(e);return}let r=setTimeout(()=>{this.dragStart(e),R()},this.gridster.$options.draggable.delayStart),l=this.gridsterItem.renderer.listen("document","mouseup",R),h=this.gridsterItem.renderer.listen("document","mouseleave",R),u=this.gridsterItem.renderer.listen("window","blur",R),w=this.gridsterItem.renderer.listen("document","touchmove",W),C=this.gridsterItem.renderer.listen("document","touchend",R),$=this.gridsterItem.renderer.listen("document","touchcancel",R);function W(D){L.checkTouchEvent(D),(Math.abs(D.clientX-e.clientX)>9||Math.abs(D.clientY-e.clientY)>9)&&R()}function R(){clearTimeout(r),u(),l(),h(),w(),C(),$()}},this.gridsterItem=i,this.gridster=s,this.lastMouse={clientX:0,clientY:0},this.path=[]}destroy(){this.gridster.previewStyle&&this.gridster.previewStyle(!0),this.gridsterItem=this.gridster=this.collision=null,this.mousedown&&(this.mousedown(),this.touchstart())}dragStart(i){i.which&&i.which!==1||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-moving"),this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.left=this.gridsterItem.left-this.margin,this.top=this.gridsterItem.top-this.margin,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===O.RTL?this.diffLeft=i.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=i.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=i.clientY+this.offsetTop-this.margin-this.top,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(!0),this.push=new Dt(this.gridsterItem),this.swap=new Kt(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid(),this.path.push({x:this.gridsterItem.item.x||0,y:this.gridsterItem.item.y||0}))}calculateItemPositionWithScale(i,s){this.gridster.$options.dirType===O.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(i.clientX-this.originalClientX)/s+this.diffLeft:this.left=this.originalClientX+(i.clientX-this.originalClientX)/s+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(i.clientY-this.originalClientY)/s+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(i){this.gridster.$options.dirType===O.RTL?this.left=this.gridster.el.scrollWidth-i.clientX+this.diffLeft:this.left=i.clientX+this.offsetLeft-this.diffLeft,this.top=i.clientY+this.offsetTop-this.diffTop}calculateItemPosition(){if(this.gridster.movingItem=this.gridsterItem.$item,this.positionX=this.gridster.pixelsToPositionX(this.left,Math.round),this.positionY=this.gridster.pixelsToPositionY(this.top,Math.round),this.positionXBackup=this.gridsterItem.$item.x,this.positionYBackup=this.gridsterItem.$item.y,this.gridsterItem.$item.x=this.positionX,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.x=this.positionXBackup),this.gridsterItem.$item.y=this.positionY,this.gridster.checkGridCollision(this.gridsterItem.$item)&&(this.gridsterItem.$item.y=this.positionYBackup),this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,this.top),this.positionXBackup!==this.gridsterItem.$item.x||this.positionYBackup!==this.gridsterItem.$item.y){let i=this.path[this.path.length-1],s="";i.xthis.gridsterItem.$item.x?s=this.push.fromEast:i.ythis.gridsterItem.$item.y&&(s=this.push.fromSouth),this.push.pushItems(s,this.gridster.$options.disablePushOnDrag),this.swap.swapItems(),this.collision=this.gridster.checkCollision(this.gridsterItem.$item),this.collision?(this.gridsterItem.$item.x=this.positionXBackup,this.gridsterItem.$item.y=this.positionYBackup,this.gridster.$options.draggable.dropOverItems&&this.collision!==!0&&this.collision.$item&&(this.gridster.movingItem=null)):this.path.push({x:this.gridsterItem.$item.x,y:this.gridsterItem.$item.y}),this.push.checkPushBack()}else this.collision=!1;this.gridster.previewStyle(!0)}toggle(){let i=this.gridsterItem.canBeDragged();!this.enabled&&i?(this.enabled=!this.enabled,this.mousedown=this.gridsterItem.renderer.listen(this.gridsterItem.el,"mousedown",this.dragStartDelay),this.touchstart=this.gridsterItem.renderer.listen(this.gridsterItem.el,"touchstart",this.dragStartDelay)):this.enabled&&!i&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}getDirections(i){let s=[];return this.lastMouse.clientX===0&&this.lastMouse.clientY===0&&(this.lastMouse.clientY=i.clientY,this.lastMouse.clientX=i.clientX),this.lastMouse.clientY>i.clientY&&s.push(N.UP),this.lastMouse.clientYi.clientX&&s.push(N.LEFT),s}},Jt=class{constructor(i){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=i,this.gridster=i.gridster,this.tryPattern={fromEast:this.tryWest,fromWest:this.tryEast,fromNorth:this.trySouth,fromSouth:this.tryNorth},this.fromSouth="fromSouth",this.fromNorth="fromNorth",this.fromEast="fromEast",this.fromWest="fromWest"}destroy(){this.gridster=this.gridsterItem=null}pushItems(i){return this.gridster.$options.pushResizeItems?this.push(this.gridsterItem,i):!1}restoreItems(){let i=0,s=this.pushedItems.length,t;for(;i-1;i--)this.checkPushedItem(this.pushedItems[i],i)&&(s=!0);s&&this.checkPushBack()}push(i,s){let t=this.gridster.checkCollision(i.$item);if(t&&t!==!0&&t!==this.gridsterItem&&t.canBeResized()){if(this.tryPattern[s].call(this,t,i,s))return!0}else if(t===!1)return!0;return!1}trySouth(i,s,t){let e=i.$item.y,n=i.$item.rows;return i.$item.y=s.$item.y+s.$item.rows,i.$item.rows=n+e-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,s.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(s,t),!0):(i.$item.y=e,i.$item.rows=n,!1)}tryNorth(i,s,t){let e=i.$item.rows;return i.$item.rows=s.$item.y-i.$item.y,!this.gridster.checkCollisionTwoItems(i.$item,s.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(s,t),!0):(i.$item.rows=e,!1)}tryEast(i,s,t){let e=i.$item.x,n=i.$item.cols;return i.$item.x=s.$item.x+s.$item.cols,i.$item.cols=n+e-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,s.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(s,t),!0):(i.$item.x=e,i.$item.cols=n,!1)}tryWest(i,s,t){let e=i.$item.cols;return i.$item.cols=s.$item.x-i.$item.x,!this.gridster.checkCollisionTwoItems(i.$item,s.$item)&&!this.gridster.checkGridCollision(i.$item)?(i.setSize(),this.addToPushed(i),this.push(s,t),!0):(i.$item.cols=e,!1)}addToPushed(i){if(this.pushedItems.indexOf(i)<0)this.pushedItems.push(i),this.pushedItemsPath.push([{x:i.item.x||0,y:i.item.y||0,cols:i.item.cols||0,rows:i.item.rows||0},{x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows}]);else{let s=this.pushedItems.indexOf(i);this.pushedItemsPath[s].push({x:i.$item.x,y:i.$item.y,cols:i.$item.cols,rows:i.$item.rows})}}removeFromPushed(i){i>-1&&(this.pushedItems.splice(i,1),this.pushedItemsPath.splice(i,1))}checkPushedItem(i,s){let t=this.pushedItemsPath[s],e=t.length-2,n,r,l,h,u;for(;e>-1;e--)n=t[e],r=i.$item.x,l=i.$item.y,h=i.$item.cols,u=i.$item.rows,i.$item.x=n.x,i.$item.y=n.y,i.$item.cols=n.cols,i.$item.rows=n.rows,this.gridster.findItemWithItem(i.$item)?(i.$item.x=r,i.$item.y=l,i.$item.cols=h,i.$item.rows=u):(i.setSize(),t.splice(e+1,t.length-1-e));return t.length<2?(this.removeFromPushed(s),!0):!1}},te=class{constructor(i,s,t){this.zone=t,this.directionFunction=null,this.dragMove=e=>{if(this.directionFunction===null)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");e.stopPropagation(),e.preventDefault(),L.checkTouchEvent(e),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,Be(this.gridster,this.left,this.top,this.width,this.height,e,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);let n=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(e.clientX-this.originalClientX)/n,clientY:this.originalClientY+(e.clientY-this.originalClientY)/n}),this.lastMouse.clientX=e.clientX,this.lastMouse.clientY=e.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=e=>{e.stopPropagation(),e.preventDefault(),He(),this.mousemove(),this.mouseup(),this.mouseleave(),this.cancelOnBlur(),this.touchmove(),this.touchend(),this.touchcancel(),this.gridster.dragInProgress=!1,this.gridster.updateGrid(),this.gridster.options.resizable&&this.gridster.options.resizable.stop?Promise.resolve(this.gridster.options.resizable.stop(this.gridsterItem.item,this.gridsterItem,e)).then(this.makeResize,this.cancelResize):this.makeResize(),setTimeout(()=>{this.gridsterItem.renderer.removeClass(this.gridsterItem.el,"gridster-item-resizing"),this.gridster&&(this.gridster.movingItem=null,this.gridster.previewStyle())})},this.cancelResize=()=>{this.gridsterItem.$item.cols=this.gridsterItem.item.cols||1,this.gridsterItem.$item.rows=this.gridsterItem.item.rows||1,this.gridsterItem.$item.x=this.gridsterItem.item.x||0,this.gridsterItem.$item.y=this.gridsterItem.item.y||0,this.gridsterItem.setSize(),this.push.restoreItems(),this.pushResize.restoreItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null},this.makeResize=()=>{this.gridsterItem.setSize(),this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.push.setPushedItems(),this.pushResize.setPushedItems(),this.push.destroy(),this.push=null,this.pushResize.destroy(),this.pushResize=null},this.handleNorth=e=>{this.top=e.clientY+this.offsetTop-this.diffTop,this.height=this.bottom-this.top,this.minHeight>this.height?(this.height=this.minHeight,this.top=this.bottom-this.minHeight):this.gridster.options.enableBoundaryControl&&(this.top=Math.max(0,this.top),this.height=this.bottom-this.top);let n=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionY(this.top+n,Math.floor),this.gridsterItem.$item.y!==this.newPosition){if(this.itemBackup[1]=this.gridsterItem.$item.y,this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows+=this.gridsterItem.$item.y-this.newPosition,this.gridsterItem.$item.y=this.newPosition,this.pushResize.pushItems(this.pushResize.fromSouth),this.push.pushItems(this.push.fromSouth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.y=this.itemBackup[1],this.gridsterItem.$item.rows=this.itemBackup[3],this.top=this.gridster.positionYToPixels(this.gridsterItem.$item.y),this.setItemTop(this.gridster.positionYToPixels(this.gridsterItem.$item.y)),this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemTop(this.top),this.setItemHeight(this.height)},this.handleWest=e=>{let n=this.gridster.$options.dirType===O.RTL?this.originalClientX+(this.originalClientX-e.clientX):e.clientX;this.left=n+this.offsetLeft-this.diffLeft,this.width=this.right-this.left,this.minWidth>this.width?(this.width=this.minWidth,this.left=this.right-this.minWidth):this.gridster.options.enableBoundaryControl&&(this.left=Math.max(0,this.left),this.width=this.right-this.left);let r=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+r,Math.floor),this.gridsterItem.$item.x!==this.newPosition){if(this.itemBackup[0]=this.gridsterItem.$item.x,this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols+=this.gridsterItem.$item.x-this.newPosition,this.gridsterItem.$item.x=this.newPosition,this.pushResize.pushItems(this.pushResize.fromEast),this.push.pushItems(this.push.fromEast,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.x=this.itemBackup[0],this.gridsterItem.$item.cols=this.itemBackup[2],this.left=this.gridster.positionXToPixels(this.gridsterItem.$item.x),this.setItemLeft(this.gridster.positionXToPixels(this.gridsterItem.$item.x)),this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemLeft(this.left),this.setItemWidth(this.width)},this.handleSouth=e=>{if(this.height=e.clientY+this.offsetTop-this.diffBottom-this.top,this.minHeight>this.height&&(this.height=this.minHeight),this.bottom=this.top+this.height,this.gridster.options.enableBoundaryControl){let r=this.outerMarginBottom??this.margin,l=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,l.bottom-l.top-2*r),this.height=this.bottom-this.top}let n=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionY(this.bottom+n,Math.ceil),this.gridsterItem.$item.y+this.gridsterItem.$item.rows!==this.newPosition){if(this.itemBackup[3]=this.gridsterItem.$item.rows,this.gridsterItem.$item.rows=this.newPosition-this.gridsterItem.$item.y,this.pushResize.pushItems(this.pushResize.fromNorth),this.push.pushItems(this.push.fromNorth,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.rows=this.itemBackup[3],this.setItemHeight(this.gridster.positionYToPixels(this.gridsterItem.$item.rows)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemHeight(this.height)},this.handleEast=e=>{let n=this.gridster.$options.dirType===O.RTL?this.originalClientX+(this.originalClientX-e.clientX):e.clientX;if(this.width=n+this.offsetLeft-this.diffRight-this.left,this.minWidth>this.width&&(this.width=this.minWidth),this.right=this.left+this.width,this.gridster.options.enableBoundaryControl){let l=this.outerMarginRight??this.margin,h=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,h.right-h.left-2*l),this.width=this.right-this.left}let r=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+r,Math.ceil),this.gridsterItem.$item.x+this.gridsterItem.$item.cols!==this.newPosition){if(this.itemBackup[2]=this.gridsterItem.$item.cols,this.gridsterItem.$item.cols=this.newPosition-this.gridsterItem.$item.x,this.pushResize.pushItems(this.pushResize.fromWest),this.push.pushItems(this.push.fromWest,this.gridster.$options.disablePushOnResize),this.gridster.checkCollision(this.gridsterItem.$item)){this.gridsterItem.$item.cols=this.itemBackup[2],this.setItemWidth(this.gridster.positionXToPixels(this.gridsterItem.$item.cols)-this.margin);return}else this.gridster.previewStyle();this.pushResize.checkPushBack(),this.push.checkPushBack()}this.setItemWidth(this.width)},this.handleNorthWest=e=>{this.handleNorth(e),this.handleWest(e)},this.handleNorthEast=e=>{this.handleNorth(e),this.handleEast(e)},this.handleSouthWest=e=>{this.handleSouth(e),this.handleWest(e)},this.handleSouthEast=e=>{this.handleSouth(e),this.handleEast(e)},this.gridsterItem=i,this.gridster=s,this.lastMouse={clientX:0,clientY:0},this.itemBackup=[0,0,0,0],this.resizeEventScrollType={west:!1,east:!1,north:!1,south:!1}}destroy(){this.gridster?.previewStyle(),this.gridster=this.gridsterItem=null}dragStart(i){if(i.which&&i.which!==1)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,i),i.stopPropagation(),i.preventDefault(),this.zone.runOutsideAngular(()=>{this.mousemove=this.gridsterItem.renderer.listen("document","mousemove",this.dragMove),this.touchmove=this.gridster.renderer.listen(this.gridster.el,"touchmove",this.dragMove)}),this.mouseup=this.gridsterItem.renderer.listen("document","mouseup",this.dragStop),this.mouseleave=this.gridsterItem.renderer.listen("document","mouseleave",this.dragStop),this.cancelOnBlur=this.gridsterItem.renderer.listen("window","blur",this.dragStop),this.touchend=this.gridsterItem.renderer.listen("document","touchend",this.dragStop),this.touchcancel=this.gridsterItem.renderer.listen("document","touchcancel",this.dragStop),this.gridsterItem.renderer.addClass(this.gridsterItem.el,"gridster-item-resizing"),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=i.clientX,this.originalClientY=i.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.bottom=this.gridsterItem.top+this.gridsterItem.height,this.right=this.gridsterItem.left+this.gridsterItem.width,this.margin=this.gridster.$options.margin,this.outerMarginTop=this.gridster.$options.outerMarginTop,this.outerMarginRight=this.gridster.$options.outerMarginRight,this.outerMarginBottom=this.gridster.$options.outerMarginBottom,this.outerMarginLeft=this.gridster.$options.outerMarginLeft,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.diffLeft=i.clientX+this.offsetLeft-this.left,this.diffRight=i.clientX+this.offsetLeft-this.right,this.diffTop=i.clientY+this.offsetTop-this.top,this.diffBottom=i.clientY+this.offsetTop-this.bottom,this.minHeight=this.gridster.positionYToPixels(this.gridsterItem.$item.minItemRows||this.gridster.$options.minItemRows)-this.margin,this.minWidth=this.gridster.positionXToPixels(this.gridsterItem.$item.minItemCols||this.gridster.$options.minItemCols)-this.margin,this.gridster.movingItem=this.gridsterItem.$item,this.gridster.previewStyle(),this.push=new Dt(this.gridsterItem),this.pushResize=new Jt(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();let{classList:s}=i.target;s.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):s.contains("handle-w")?this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):s.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):s.contains("handle-e")?this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):s.contains("handle-nw")?this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):s.contains("handle-ne")?this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleNorthWest):(this.resizeEventScrollType.north=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleNorthEast):s.contains("handle-sw")?this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):s.contains("handle-se")&&(this.gridster.$options.dirType===O.RTL?(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.west=!0,this.directionFunction=this.handleSouthWest):(this.resizeEventScrollType.south=!0,this.resizeEventScrollType.east=!0,this.directionFunction=this.handleSouthEast))}toggle(){this.resizeEnabled=this.gridsterItem.canBeResized(),this.resizableHandles=this.gridsterItem.getResizableHandles()}dragStartDelay(i){if(L.checkTouchEvent(i),!this.gridster.$options.resizable.delayStart){this.dragStart(i);return}let s=setTimeout(()=>{this.dragStart(i),w()},this.gridster.$options.resizable.delayStart),{cancelMouse:t,cancelMouseLeave:e,cancelOnBlur:n,cancelTouchMove:r,cancelTouchEnd:l,cancelTouchCancel:h}=this.zone.runOutsideAngular(()=>{let C=this.gridsterItem.renderer.listen("document","mouseup",w),$=this.gridsterItem.renderer.listen("document","mouseleave",w),W=this.gridsterItem.renderer.listen("window","blur",w),R=this.gridsterItem.renderer.listen("document","touchmove",u),D=this.gridsterItem.renderer.listen("document","touchend",w),Z=this.gridsterItem.renderer.listen("document","touchcancel",w);return{cancelMouse:C,cancelMouseLeave:$,cancelOnBlur:W,cancelTouchMove:R,cancelTouchEnd:D,cancelTouchCancel:Z}});function u(C){L.checkTouchEvent(C),(Math.abs(C.clientX-i.clientX)>9||Math.abs(C.clientY-i.clientY)>9)&&w()}function w(){clearTimeout(s),n(),t(),e(),r(),l(),h()}}setItemTop(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,i)}setItemLeft(i){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,i,this.top)}setItemHeight(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",i+"px")}setItemWidth(i){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",i+"px")}},Ge=(()=>{let i=class i{get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(t,e,n,r){this.renderer=n,this.zone=r,this.itemInit=new V,this.itemChange=new V,this.itemResize=new V,this.el=t.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=e,this.drag=new Zt(this,e,this.zone),this.resize=new te(this,e,this.zone)}ngOnInit(){this.gridster.addItem(this)}ngOnChanges(t){t.item&&(this.updateOptions(),this.init||this.gridster.calculateLayout$.next()),t.item&&t.item.previousValue&&this.setSize()}updateOptions(){this.$item=L.merge(this.$item,this.item,{cols:void 0,rows:void 0,x:void 0,y:void 0,layerIndex:void 0,dragEnabled:void 0,resizeEnabled:void 0,compactEnabled:void 0,maxItemRows:void 0,minItemRows:void 0,maxItemCols:void 0,minItemCols:void 0,maxItemArea:void 0,minItemArea:void 0,resizableHandles:{s:void 0,e:void 0,n:void 0,w:void 0,se:void 0,ne:void 0,sw:void 0,nw:void 0}})}ngOnDestroy(){this.gridster.removeItem(this),this.drag.destroy(),this.resize.destroy(),this.gridster=this.drag=this.resize=null}setSize(){this.renderer.setStyle(this.el,"display",this.notPlaced?"":"block"),this.gridster.gridRenderer.updateItem(this.el,this.$item,this.renderer),this.updateItemSize()}updateItemSize(){let t=this.$item.y*this.gridster.curRowHeight,e=this.$item.x*this.gridster.curColWidth,n=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,r=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=t,this.left=e,!this.init&&n>0&&r>0&&(this.init=!0,this.item.initCallback&&this.item.initCallback(this.item,this),this.gridster.options.itemInitCallback&&this.gridster.options.itemInitCallback(this.item,this),this.itemInit.next({item:this.item,itemComponent:this}),this.gridster.$options.scrollToNewItems&&this.el.scrollIntoView(!1)),(n!==this.width||r!==this.height)&&(this.width=n,this.height=r,this.gridster.options.itemResizeCallback&&this.gridster.options.itemResizeCallback(this.item,this),this.itemResize.next({item:this.item,itemComponent:this}))}itemChanged(){this.gridster.options.itemChangeCallback&&this.gridster.options.itemChangeCallback(this.item,this),this.itemChange.next({item:this.item,itemComponent:this})}checkItemChanges(t,e){t.rows===e.rows&&t.cols===e.cols&&t.x===e.x&&t.y===e.y||(this.gridster.checkCollision(this.$item)?(this.$item.x=e.x||0,this.$item.y=e.y||0,this.$item.cols=e.cols||1,this.$item.rows=e.rows||1,this.setSize()):(this.item.cols=this.$item.cols,this.item.rows=this.$item.rows,this.item.x=this.$item.x,this.item.y=this.$item.y,this.gridster.calculateLayout$.next(),this.itemChanged()))}canBeDragged(){let t=this.gridster.$options.draggable.enabled,e=this.$item.dragEnabled===void 0?t:this.$item.dragEnabled;return!this.gridster.mobile&&t&&e}canBeResized(){let t=this.gridster.$options.resizable.enabled,e=this.$item.resizeEnabled===void 0?t:this.$item.resizeEnabled;return!this.gridster.mobile&&t&&e}getResizableHandles(){let t=this.gridster.$options.resizable.handles,e=this.$item.resizableHandles;return e===void 0?t:it(it({},t),e)}bringToFront(t){if(t&&t<=0)return;let e=this.getLayerIndex(),n=this.gridster.$options.maxLayerIndex;if(en?n:r}}sendToBack(t){if(t&&t<=0)return;let e=this.getLayerIndex();if(e>0){let n=t?e-t:0;this.item.layerIndex=this.$item.layerIndex=n<0?0:n}}getLayerIndex(){return this.item.layerIndex!==void 0?this.item.layerIndex:this.gridster.$options.defaultLayerIndex!==void 0?this.gridster.$options.defaultLayerIndex:0}};i.\u0275fac=function(e){return new(e||i)(_(J),_(ee),_(ot),_(Vt))},i.\u0275cmp=A({type:i,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(e,n){e&2&&ut("z-index",n.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},standalone:!0,features:[gt,X],ngContentSelectors:Ve,decls:9,vars:8,consts:[[1,"gridster-item-resizable-handler","handle-s"],[1,"gridster-item-resizable-handler","handle-e"],[1,"gridster-item-resizable-handler","handle-n"],[1,"gridster-item-resizable-handler","handle-w"],[1,"gridster-item-resizable-handler","handle-se"],[1,"gridster-item-resizable-handler","handle-ne"],[1,"gridster-item-resizable-handler","handle-sw"],[1,"gridster-item-resizable-handler","handle-nw"],[1,"gridster-item-resizable-handler","handle-s",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-e",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-n",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-w",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-se",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-ne",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-sw",3,"mousedown","touchstart"],[1,"gridster-item-resizable-handler","handle-nw",3,"mousedown","touchstart"]],template:function(e,n){e&1&&(Bt(),Ht(0),F(1,ri,1,0,"div",0)(2,oi,1,0,"div",1)(3,li,1,0,"div",2)(4,ai,1,0,"div",3)(5,hi,1,0,"div",4)(6,di,1,0,"div",5)(7,ci,1,0,"div",6)(8,pi,1,0,"div",7)),e&2&&(a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.s&&n.resize.resizeEnabled?1:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.e&&n.resize.resizeEnabled?2:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.n&&n.resize.resizeEnabled?3:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.w&&n.resize.resizeEnabled?4:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.se&&n.resize.resizeEnabled?5:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.ne&&n.resize.resizeEnabled?6:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.sw&&n.resize.resizeEnabled?7:-1),a(),x(n.resize.resizableHandles!=null&&n.resize.resizableHandles.nw&&n.resize.resizeEnabled?8:-1))},styles:[`gridster-item{box-sizing:border-box;z-index:1;position:absolute;overflow:hidden;transition:.3s;display:none;background:#fff;-webkit-user-select:text;user-select:text}gridster-item.gridster-item-moving{cursor:move}gridster-item.gridster-item-resizing,gridster-item.gridster-item-moving{transition:0s;z-index:2;box-shadow:0 0 5px 5px #0003,0 6px 10px #00000024,0 1px 18px #0000001f}.gridster-item-resizable-handler{position:absolute;z-index:2}.gridster-item-resizable-handler.handle-n{cursor:ns-resize;height:10px;right:0;top:0;left:0}.gridster-item-resizable-handler.handle-e{cursor:ew-resize;width:10px;bottom:0;right:0;top:0}.gridster-item-resizable-handler.handle-s{cursor:ns-resize;height:10px;right:0;bottom:0;left:0}.gridster-item-resizable-handler.handle-w{cursor:ew-resize;width:10px;left:0;top:0;bottom:0}.gridster-item-resizable-handler.handle-ne{cursor:ne-resize;width:10px;height:10px;right:0;top:0}.gridster-item-resizable-handler.handle-nw{cursor:nw-resize;width:10px;height:10px;left:0;top:0}.gridster-item-resizable-handler.handle-se{cursor:se-resize;width:0;height:0;right:0;bottom:0;border-style:solid;border-width:0 0 10px 10px;border-color:transparent}.gridster-item-resizable-handler.handle-sw{cursor:sw-resize;width:10px;height:10px;left:0;bottom:0}gridster-item:hover .gridster-item-resizable-handler.handle-se{border-color:transparent transparent #ccc} `],encapsulation:2});let o=i;return o})();var Fs=(()=>{let i=class i{};i.\u0275fac=function(e){return new(e||i)},i.\u0275mod=de({type:i}),i.\u0275inj=he({});let o=i;return o})();var Wt=(()=>{let i=class i{constructor(){this.items=[],this.widgets=[]}init(t){if(this.items=[],this.widgets=[],!!t.widgets)for(let e=0;e{let i=class i{constructor(){this.list=[],this.dbs=z(Me),this.cd=z(K),this.eds=z(Et),this.route=z(ht),this.ss=z(ct),this.ns=z(Mt),this.ds=z(xe),this.sbs=z(ke),this.fs=z(st),this.bs=z(pt),this.ms=z(Ee),this.r2=z(ot),this.us=z(dt),this.hs=z(Pt),this.vs=z(Wt),this.i18n=z(kt),this.es=z(be),this.subOnEditedWidgetChanged=this.eds.onEditedWidgetChanged.pipe(nt()),this.subOnNewWidget=this.eds.onNewWidget.pipe(nt()),this.subOnSaveWidget=this.eds.onSave.pipe(nt()),this.subCancelEditing=this.eds.onCancelEditing.pipe(nt()),this.subOnDeleteWidget=this.eds.onDeleteWidget.pipe(nt())}ngOnDestroy(){clearTimeout(this.scrollToNewWidgetTimeout)}getWidgetByInfo(t){if(t)return this.widgets.find(e=>e.widget===t)}subscribeForEditing(){this.subOnEditedWidgetChanged.subscribe(t=>this.updateEditedWidget(t)),this.subOnNewWidget.subscribe(t=>this.newWidget(t)),this.subOnSaveWidget.subscribe(()=>this.onSaveWidget()),this.subCancelEditing.subscribe(()=>this.cancelEditing()),this.subOnDeleteWidget.subscribe(t=>this.deleteWidget(t))}updateEditedWidget(t){this.editedWidget||(this.editedWidget=t.widget);let e=this.getWidgetByInfo(this.editedWidget);e&&(e.header?.cd.detectChanges(),e.cd.detectChanges(),t.refreshData&&e.requestData()),this.detectChanges()}newWidget(t){let e=this.dbs.getWidgetsWithoutEmpty().pop();e&&(t.cols=e.cols,t.rows=e.rows),this.editedWidget=t,this.list.push(this.editedWidget);let n=this.gridster.getFirstPossiblePosition(this.editedWidget);this.editedWidget.x=n.x,this.editedWidget.y=n.y,this.editedWidget.cols=n.cols,this.editedWidget.rows=n.rows,this.detectChanges(),this.scrollNewWidgetIntoView()}onSaveWidget(){this.editedWidget&&(this.editedWidget.edKey=""),this.editedWidget=void 0,this.detectChanges()}cancelEditing(){if(!this.editedWidget)return;let t=this.list.indexOf(this.editedWidget);if(this.editedWidget?.oldWidget){this.editedWidget=this.editedWidget.oldWidget,this.editedWidget.edKey="ed"+new Date().getTime(),this.list[t]=this.editedWidget,this.cd.detectChanges(),this.editedWidget.edKey="",this.editedWidget=void 0,this.detectChanges();return}else t!==-1&&this.list.splice(t,1);this.editedWidget=void 0,this.detectChanges()}scrollNewWidgetIntoView(){clearTimeout(this.scrollToNewWidgetTimeout),this.scrollToNewWidgetTimeout=setTimeout(()=>{let t=document.getElementById("edited-widget");t&&t.scrollIntoView({behavior:"smooth",block:"nearest"})},300)}detectChanges(){let t=this.gridster.el.scrollLeft,e=this.gridster.el.scrollTop;this.cd.detectChanges(),this.gridster.onResize(),this.gridster.el.scrollLeft=t,this.gridster.el.scrollTop=e}deleteWidget(t){this.editedWidget=void 0;let e=this.list.indexOf(t);e!==-1&&this.list.splice(e,1),this.list=[...this.list],this.cd.detectChanges()}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=A({type:i,selectors:[["ng-component"]],viewQuery:function(e,n){if(e&1&&(j(wi,5),j(Ci,5)),e&2){let r;U(r=q())&&(n.gridster=r.first),U(r=q())&&(n.widgets=r)}},standalone:!0,features:[X],decls:0,vars:0,template:function(e,n){},encapsulation:2});let o=i;return o})();var Ue=(()=>{let i=class i{constructor(t){this.el=t,this.tooltip="",this.tooltipEl=null,this.onHover=e=>this.showTooltip(e),this.onOut=e=>this.removeTooltip()}ngAfterViewInit(){this.el.nativeElement.addEventListener("mouseover",this.onHover),this.el.nativeElement.addEventListener("mouseout",this.onOut)}ngOnDestroy(){this.el.nativeElement.removeEventListener("mouseover",this.onHover),this.el.nativeElement.removeEventListener("mouseout",this.onOut),this.removeTooltip()}showTooltip(t){if(this.tooltipEl||(this.createTooltip(),!this.tooltipEl))return;let e=t.clientX,n=t.clientY,r=this.tooltipEl.offsetWidth,l=this.tooltipEl.offsetHeight,h=window.innerWidth,u=window.innerHeight,w=e,C=n;e+r>h&&(w=e-r),n+l>u&&(C=n-l),this.tooltipEl&&(this.tooltipEl.style.left=w+"px",this.tooltipEl.style.top=C+"px")}removeTooltip(){this.tooltipEl&&(this.tooltipEl.parentNode?.removeChild(this.tooltipEl),this.tooltipEl=null)}createTooltip(){this.removeTooltip(),this.tooltipEl=document.createElement("div"),this.tooltipEl.classList.add("dsw-tooltip"),this.tooltipEl.innerHTML=this.tooltip,document.body.appendChild(this.tooltipEl)}};i.\u0275fac=function(e){return new(e||i)(_(J))},i.\u0275dir=ce({type:i,selectors:[["","tooltip",""]],inputs:{tooltip:"tooltip"},standalone:!0});let o=i;return o})();var qe=(()=>{let i=class i{constructor(){this.onToggleHeaderButton=new V}toggleButton(t){this.onToggleHeaderButton.emit(t)}};i.\u0275fac=function(e){return new(e||i)},i.\u0275prov=St({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();function vi(o,i){if(o&1&&I(0,"img",1),o&2){let s=c();k("tooltip",s.filtersTooltip)}}function Ii(o,i){if(o&1){let s=y();d(0,"button",6),f("click",function(){p(s);let e=c();return m(e.onBackClick())}),I(1,"img",7),d(2,"label"),b(3),S(4,"i18n"),g()()}o&2&&(a(3),M(T(4,1,"back")))}function Si(o,i){if(o&1){let s=y();d(0,"button",6),f("click",function(){p(s);let e=c();return m(e.onResetClickFilterHandler())}),I(1,"img",8),d(2,"label"),b(3),S(4,"i18n"),g()()}o&2&&(a(3),M(T(4,1,"resetClickFilter")))}function Ti(o,i){if(o&1){let s=y();d(0,"button",9),S(1,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("by6columns"))}),I(2,"img",10),g(),d(3,"button",9),S(4,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("by5columns"))}),I(5,"img",11),g(),d(6,"button",9),S(7,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("by4columns"))}),I(8,"img",12),g(),d(9,"button",9),S(10,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("by3columns"))}),I(11,"img",13),g(),d(12,"button",9),S(13,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("by2columns"))}),I(14,"img",14),g(),d(15,"button",9),S(16,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("byRows"))}),I(17,"img",15),g(),d(18,"button",16),S(19,"i18n"),f("click",function(){p(s);let e=c();return m(e.onClick("setDefault"))}),I(20,"img",17),d(21,"label"),b(22),S(23,"i18n"),g()(),d(24,"button",18),f("click",function(){p(s);let e=c();return m(e.closeMobileFilter())}),I(25,"img",8),d(26,"label"),b(27),S(28,"i18n"),g()()}if(o&2){let s=c();E("active",s.widget.viewSize===5),k("title",T(1,21,"by6columns")),a(3),E("active",s.widget.viewSize===4),k("title",T(4,23,"by5columns")),a(3),E("active",s.widget.viewSize===3),k("title",T(7,25,"by4columns")),a(3),E("active",s.widget.viewSize===2),k("title",T(10,27,"by3columns")),a(3),E("active",s.widget.viewSize===1),k("title",T(13,29,"by2columns")),a(3),E("active",s.widget.viewSize===0),k("title",T(16,31,"byRows")),a(3),k("title",T(19,33,"setDefault")),a(4),M(T(23,35,"refresh")),a(5),M(T(28,37,"close"))}}function $i(o,i){if(o&1){let s=y();d(0,"button",19),f("click",function(){p(s);let e=c();return m(e.deleteWidgetClick())}),I(1,"img",20),d(2,"label"),b(3,"Delete widget"),g()()}}function ki(o,i){if(o&1){let s=y();d(0,"button",16),f("click",function(){let e=p(s).$implicit,n=c(2);return m(n.onClick(e.id))}),I(1,"img",24),d(2,"label"),b(3),g()()}if(o&2){let s=i.$implicit,t=c(2);E("active",t.widget[s.id]),k("title",s.tooltip),a(),k("src",s.icon,pe),a(2),M(s.text)}}function Mi(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("isLegend"))}),I(2,"img",25),d(3,"label"),b(4,"Legend"),g()()}if(o&2){let s=c(2);E("active",s.widget.isLegend),Q("title",T(1,3,"showLegend"))}}function Pi(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("showValues"))}),I(2,"img",26),d(3,"label"),b(4,"Values"),g()()}if(o&2){let s=c(2);E("active",s.widget.showValues),Q("title",T(1,3,"showValues"))}}function Fi(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("isTop"))}),I(2,"img",27),d(3,"label"),b(4,"Top"),g()()}if(o&2){let s=c(2);E("active",s.widget.isTop),Q("title",T(1,3,"showTop"))}}function Ei(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("showZero"))}),I(2,"img",28),d(3,"label"),b(4,"Zero"),g()()}if(o&2){let s=c(2);E("active",s.widget.showZero),Q("title",T(1,3,"showZero"))}}function Di(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("displayAsPivot"))}),I(2,"img",29),d(3,"label"),b(4,"Pivot"),g()()}if(o&2){let s=c(2);E("active",s.widget.type==="pivot"),Q("title",T(1,3,"showPivot"))}}function zi(o,i){if(o&1){let s=y();d(0,"button",16),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("chartConfig"))}),I(2,"img",30),d(3,"label"),b(4,"Colors"),g()()}o&2&&Q("title",T(1,1,"changeColors"))}function Wi(o,i){if(o&1){let s=y();d(0,"button",31),S(1,"i18n"),f("click",function(){p(s);let e=c(2);return m(e.onClick("expand"))}),I(2,"img",32),g()}if(o&2){let s=c(2);E("active",s.widget.isExpanded),k("title",T(1,4,"fullscreen"))("hidden",s.isEmptyWidget()||!s.widget.isSupported)}}function Oi(o,i){if(o&1&&(B(0,ki,4,5,"button",21,G),F(2,Mi,5,5,"button",21)(3,Pi,5,5,"button",21)(4,Fi,5,5,"button",21)(5,Ei,5,5,"button",21)(6,Di,5,5,"button",21)(7,zi,5,3,"button",22)(8,Wi,3,6,"button",23)),o&2){let s=c();H(s.typeDesc==null?null:s.typeDesc.headerButtons),a(2),x(!(s.typeDesc!=null&&s.typeDesc.disableLegend)&&s.widget.isChart&&!s.widget.noToggleLegend?2:-1),a(),x(s.widget.isBtnValues?3:-1),a(),x(s.widget.isChart?4:-1),a(),x(s.widget.isBtnZero?5:-1),a(),x(s.widget.isChart||s.widget.isMap||s.widget.type==="regular"||s.widget.oldType==="regular"?6:-1),a(),x(s.widget.isChart||s.widget.type==="regular"?7:-1),a(),x(s.widget.shared?-1:8)}}var Ke=(()=>{let i=class i{constructor(t,e,n,r,l,h,u,w,C){this.ss=t,this.us=e,this.ws=n,this.cd=r,this.ns=l,this.fs=h,this.hs=u,this.eds=w,this.route=C,this.onButtonClick=new V,this.onBack=new V,this.onResetClickFilter=new V,this.hasFilters=!1,this.filtersTooltip="",this.noDrag=!1,this.noDrag=this.route.snapshot.queryParamMap.get("nodrag")==="1"}ngOnInit(){this.subFiltersChanged=this.fs.onFiltersChanged.subscribe(()=>{this.updateActiveFiltersInfo(),this.cd.detectChanges()}),this.updateActiveFiltersInfo()}updateActiveFiltersInfo(){if(!this.widget||this.widget.type===tt.const.emptyWidgetClass)return;let t=this.fs.getWidgetFilters(this.widget?.name).filter(e=>e.value!==""||e.isInterval);this.hasFilters=!!t.length,this.filtersTooltip=t.map(e=>e.label+': '+e.valueDisplay+"").join(` -`)}onClick(t){this.widget[t]=!this.widget[t];let e=this.ss.getWidgetsSettings(this.widget.dashboard);e[this.widget.name]||(e[this.widget.name]={}),e[this.widget.name][t]=this.widget[t],this.ss.setWidgetsSettings(e,this.widget.dashboard),this.onButtonClick.emit({widget:this.widget,name:t,state:this.widget[t]})}loadToolbarButton(t,e,n){if(this.us.isEmbedded()){let r=this.route.snapshot.queryParamMap.get(e);if(r){let l=!1;r.toLowerCase()==="true"?l=!0:r.toLowerCase()==="false"&&(l=!1),this.widget[e]=l;return}}t[this.widget.name]&&(t[this.widget.name][e]!==void 0?this.widget[e]=this.widgetsSettings[this.widget.name][e]:n!==void 0&&(this.widget[e]=n))}onBackClick(){this.onBack.emit()}onResetClickFilterHandler(){this.onResetClickFilter.emit()}isEmptyWidget(){if(!this.widget)return!1;let t=this.widget.type;return t===Pe||t==="horizontalControls"||t==="verticalControls"}closeMobileFilter(){this.hs.toggleMobileFilterDialog()}ngOnChanges(t){t.widget?.currentValue&&t.widget.currentValue!==t.widget.previousValue&&this.loadButtons()}ngOnDestroy(){this.subFiltersChanged?.unsubscribe()}onHeaderDoubleClick(){this.isEmptyWidget()||!this.widget.isSupported||this.onClick("expand")}deleteWidgetClick(){this.eds.deleteWidget(this.widget)}loadButtons(){this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.loadToolbarButton(this.widgetsSettings,"isLegend"),this.loadToolbarButton(this.widgetsSettings,"isTop"),this.loadToolbarButton(this.widgetsSettings,"showZero"),this.loadToolbarButton(this.widgetsSettings,"showValues");let t=this.typeDesc?.headerButtons;if(t)for(let e=0;e .drag-handle[_ngcontent-%COMP%]{position:absolute;inset:-20px -20px 0}[_nghost-%COMP%] button[_ngcontent-%COMP%]{z-index:1;flex:0 0 auto;cursor:pointer;background-color:transparent;border:none;padding-left:4px;padding-right:4px;margin:-3px 0 0;height:22px;display:flex;align-items:center;justify-content:center;transition:background-color .3s line-height;outline:none}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--cl-header-btn-hover-darken)}[_nghost-%COMP%] button.active[_ngcontent-%COMP%] > img[_ngcontent-%COMP%], [_nghost-%COMP%] button.active[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{opacity:1;filter:var(--widget-header-btn-active-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:none}@media (max-width: 576px){[_nghost-%COMP%] button[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;flex:1 1 100%}[_nghost-%COMP%] button[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;font-size:13px;opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5)}}@media (max-width: 576px){[_nghost-%COMP%]{order:3;height:var(--header-height);border-bottom:none;border-top:1px solid var(--cl-header-border)}}.drag-handle[_ngcontent-%COMP%]{cursor:move;flex:1 1 100%;display:flex;justify-content:center;align-items:center}.drag-handle.no-drag[_ngcontent-%COMP%], .drag-handle.expanded[_ngcontent-%COMP%]{cursor:default}button.btn-with-text[_ngcontent-%COMP%]{cursor:pointer;color:var(--cl-widget-header-txt);display:flex;align-items:center}button.btn-with-text[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:100%}button.btn-with-text[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:block;cursor:pointer}@media (max-width: 576px){button.btn-with-text[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;flex:1 1 100%}button.btn-with-text[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{display:inline-block;font-size:13px;opacity:var(--widget-header-btn-opacity);filter:var(--widget-header-btn-filter)}button.btn-with-text[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5)}}.title-text[_ngcontent-%COMP%]{pointer-events:none;margin-left:0;margin-right:4px;font-size:14px;font-weight:700;z-index:2}@media (max-width: 576px){.title-text[_ngcontent-%COMP%]{display:none!important}}.divider[_ngcontent-%COMP%]{margin-left:auto}.btn-filters[_ngcontent-%COMP%]{pointer-events:auto;vertical-align:top}"],changeDetection:0});let o=i;return o})();var Li=["filterPopup"];function Bi(o,i){if(o&1){let s=y();d(0,"span",1)(1,"label"),b(2),g(),d(3,"input",3),Nt("ngModelChange",function(e){let n=p(s).$implicit;return Xt(n.value,e)||(n.value=e),m(e)}),f("keydown.enter",function(){let e=p(s).$implicit,n=c();return m(n.emitVarChange(e))}),g()()}if(o&2){let s=i.$implicit;a(2),M(s.label),a(),At("ngModel",s.value)}}function Hi(o,i){if(o&1&&(d(0,"option",7),b(1),g()),o&2){let s=i.$implicit;k("ngValue",s),a(),M(s)}}function Ai(o,i){if(o&1){let s=y();d(0,"select",6),Nt("ngModelChange",function(e){p(s);let n=c().$implicit;return Xt(n.dsSelected,e)||(n.dsSelected=e),m(e)}),f("change",function(){p(s);let e=c().$implicit,n=c();return m(n.onDataSourceChangeHandler(e))}),B(1,Hi,2,2,"option",7,G),g()}if(o&2){let s=c().$implicit;At("ngModel",s.dsSelected),a(),H(s.labels)}}function Xi(o,i){if(o&1){let s=y();d(0,"input",8,0),f("keydown.enter",function(){p(s);let e=at(1);return m(e.blur())})("change",function(){p(s);let e=at(1),n=c().$implicit,r=c();return m(r.setControlValue(n,e.value,e))}),g()}if(o&2){let s=c().$implicit;k("type",s.type)("value",s._value)}}function Ni(o,i){if(o&1&&(d(0,"span",1)(1,"label"),b(2),g(),F(3,Ai,3,1,"select",4)(4,Xi,2,2,"input",5),g()),o&2){let s=i.$implicit;a(2),M(s.label),a(),x(s.field==="select"?3:-1),a(),x(s.field==="input"?4:-1)}}function Yi(o,i){if(o&1){let s=y();d(0,"span",1)(1,"button",9),f("click",function(){let e=p(s).$implicit,n=c();return m(n.performAction(e))}),b(2),g()()}if(o&2){let s=i.$implicit;a(2),M(s.label||s.action)}}function Gi(o,i){if(o&1){let s=y();d(0,"span",1)(1,"label"),b(2),g(),d(3,"input",10),f("click",function(e){let n=p(s).$implicit,r=c();return n.isOpen=!0,m(r.toggleFilter(n.idx,e))}),g()()}if(o&2){let s=i.$implicit,t=c();E("active",t.openedFilter===s.idx),a(2),M(s.label),a(),Q("value",s.text),Q("title",s.text)}}var Ze=(()=>{let i=class i{constructor(t,e,n,r,l,h){this.fs=t,this.ms=e,this.el=n,this.us=r,this.bs=l,this.cd=h,this.filters=[],this.onVariable=new V,this.onDataSource=new V,this.onAction=new V,this.onFilter=new V,this.openedFilter=-1}get isHorizontal(){return this.widget.type==="horizontalControls"}get colCount2(){return this.widget?.viewSize===1}get colCount3(){return this.widget?.viewSize===2}get colCount4(){return this.widget?.viewSize===3}get colCount5(){return this.widget?.viewSize===4}get colCount6(){return this.widget?.viewSize===5}get colCount1(){return this.widget?.viewSize===0}ngOnInit(){}emitVarChange(t){this.onVariable.emit(t)}onDataSourceChangeHandler(t){this.onDataSource.emit(t)}performAction(t){this.onAction.emit(t)}toggleFilter(t,e){let n=this.fs.getFilter(t);if(!n)return;this.openedFilter=t;let l=e.target.getBoundingClientRect(),h=l.x-4,u=l.y+l.height+4,w=n.isDate?420:340;h+w>window.innerWidth&&(h=l.x+l.width-w);let C=this.us.isMobile(),$;if(C){let W=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"),10);$=window.document.body.offsetHeight-W-this.el.nativeElement.offsetHeight}this.ms.show({component:import("./chunk-37UFIW5D.js"),hideBackdrop:!0,closeByEsc:!0,closeByBackdropClick:!0,buttons:[],noPadding:!0,componentStyles:{position:"absolute",left:h+"px",top:u+"px",height:C?`${$}px`:"auto"},onComponentInit:W=>{W.initialize(this.widget,n,this.widget.dataSource)},onClose:()=>{this.openedFilter=-1,this.cd.detectChanges()}})}setControlValue(t,e,n){let r=parseInt(e,10);isNaN(r)||r===0?(delete t._value,n.value=""):t._value=e,this.bs.broadcast("refresh:"+this.widget.name)}detectChanges(){this.cd.detectChanges()}};i.\u0275fac=function(e){return new(e||i)(_(st),_(Ft),_(J),_(dt),_(pt),_(K))},i.\u0275cmp=A({type:i,selectors:[["dsw-widget-filter"]],viewQuery:function(e,n){if(e&1&&j(Li,7,me),e&2){let r;U(r=q())&&(n.filterPopup=r.first)}},hostVars:14,hostBindings:function(e,n){e&2&&E("horizontal",n.isHorizontal)("col-2",n.colCount2)("col-3",n.colCount3)("col-4",n.colCount4)("col-5",n.colCount5)("col-6",n.colCount6)("col-1",n.colCount1)},inputs:{widget:"widget",filters:"filters"},outputs:{onVariable:"onVariable",onDataSource:"onDataSource",onAction:"onAction",onFilter:"onFilter"},standalone:!0,features:[X],decls:8,vars:0,consts:[["inp",""],[1,"flt-holder"],[1,"flt-holder",3,"active"],[3,"ngModelChange","keydown.enter","ngModel"],[3,"ngModel"],[3,"type","value"],[3,"ngModelChange","change","ngModel"],[3,"ngValue"],[3,"keydown.enter","change","type","value"],[1,"btn-round",3,"click"],["readonly","","type","text",3,"click","value","title"]],template:function(e,n){e&1&&(B(0,Bi,4,2,"span",1,G),B(2,Ni,5,3,"span",1,G),B(4,Yi,3,1,"span",1,G),B(6,Gi,4,5,"span",2,G)),e&2&&(H(n.widget.pvItems),a(2),H(n.widget.dsItems),a(2),H(n.widget.acItems),a(2),H(n.filters))},dependencies:[$e,Se,Te,ye,Ie,_e,ve],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:flex;flex-shrink:0;background:var(--cl-widget-filter-bg);height:auto;flex-wrap:wrap;margin-bottom:5px}.col-1[_nghost-%COMP%], .col-2[_nghost-%COMP%], .col-3[_nghost-%COMP%], .col-4[_nghost-%COMP%], .col-5[_nghost-%COMP%], .col-6[_nghost-%COMP%]{display:grid;gap:10px}.col-1[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-2[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-3[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-4[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-5[_nghost-%COMP%] > span[_ngcontent-%COMP%], .col-6[_nghost-%COMP%] > span[_ngcontent-%COMP%]{width:100%;padding:0}.col-1[_nghost-%COMP%]{grid-template-columns:1fr}.col-2[_nghost-%COMP%]{grid-template-columns:1fr 1fr}.col-3[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr}.col-4[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr}.col-5[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr 1fr}.col-6[_nghost-%COMP%]{grid-template-columns:1fr 1fr 1fr 1fr 1fr 1fr}.flt-holder[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;padding:2px 4px}.flt-holder[_ngcontent-%COMP%]:first-child{padding-left:0}.flt-holder[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{font-size:12px;color:var(--cl-widget-filter-txt);margin-bottom:4px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{cursor:pointer;height:26px;padding:0 10px;border:1px solid #EBEBEA;border-radius:13px;box-shadow:none}.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus, .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]:focus{outline:none;outline-offset:-1px}@media (max-width: 576px){.flt-holder[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{height:34px}}.flt-holder.active[_ngcontent-%COMP%]{background-color:var(--cl-widget-filter-bg)}.flt-holder.active[_ngcontent-%COMP%] > input[_ngcontent-%COMP%], .flt-holder.active[_ngcontent-%COMP%] > select[_ngcontent-%COMP%]{border-color:var(--cl-accent)}@media (max-width: 576px){.flt-holder[_ngcontent-%COMP%]{width:auto!important;flex:1 1 25%!important}}.input-group[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]});let o=i;return o})();var ji=["header"],Ui=["filters"];function qi(o,i){o&1&&fe(0)}function Qi(o,i){if(o&1&&F(0,qi,1,0,"ng-container",6),o&2){let s=c();k("ngComponentOutlet",s.widgetType.class)("ngComponentOutletInputs",s.widgetInputs)}}function Ki(o,i){if(o&1&&(d(0,"div",4),b(1),g()),o&2){let s=c();a(),M(s.model.error)}}function Zi(o,i){o&1&&(d(0,"div",5),I(1,"img",7),g()),o&2&&k("@fade-in-out",void 0)}var Je=(()=>{let i=class i{constructor(t,e,n,r,l,h,u,w,C){this.fs=t,this.ss=e,this.vs=n,this.i18n=r,this.wts=l,this.bs=h,this.ms=u,this.cd=w,this.route=C,this.widget={},this.model={error:""},this.hasDatasourceChooser=!1,this.hasActions=!1,this.isHeader=!0,this.isHeader=this.route.snapshot.queryParamMap.get("noheader")!=="1"}ngOnInit(){this.widgetInputs={widget:this.widget,model:this.model,parent:this},this.updateComponent(),this.initFilters(),this.setupPivotVariables(),this.checkToolbarVisibility(),this.subscribeFilters(),this.subscribeActions()}ngAfterViewInit(){this.component=this.ngComponentOutlet?._componentRef?.instance,this.initDataSourceFromParams(),this.initDrillsForSharedWidget()}onHeaderButton(t){if(t.name==="displayAsPivot"){this.component?.displayAsPivot();return}this.component?.onHeaderButton(t),this.header?.cd.detectChanges()}setupPivotVariables(){this.widget.pvItems=[];let t=this.widget.type==="mdx2json.emptyportlet",e=[];this.vs.isExists()&&(e=this.vs.items.filter(n=>t?n.location==="dashboard":n.location!=="dashboard"&&(n.location==="*"||n.location===this.widget.name)),this.widget.pvItems=e,this.showToolbar())}showLoading(){this.widget.isLoading=!0}hideLoading(){this.widget.isLoading=!1}ngOnDestroy(){this.subCopyMdx?.unsubscribe(),this.subRefresh?.unsubscribe(),this.subFilter?.unsubscribe(),this.subUpdateFilterText?.unsubscribe(),this.subFilterAll?.unsubscribe(),this.subShare?.unsubscribe(),this.subChangeType?.unsubscribe()}clearError(){this.model.error=""}showError(t){this.model.error=t}updateFiltersText(){if(this.widget.type==="mdx2json.emptyportlet")for(let t=0;t{n.onCopy=()=>{this.ms.close(e)}}};this.ms.show(e)}appendShareState(t,e){let n=this.widget[e];return n&&(t+="&"+e+"="+n),t}share(){let t=this.component?.chart,e=this.fs.getFiltersShareUrl(),n=e.split("#")[1],r=(this.widget.name||this.widget.idx).toString();if(n&&n.indexOf("?")===-1?e+="?widget="+r:e+="&widget="+r,e=this.appendShareState(e,"isLegend"),e=this.appendShareState(e,"isTop"),e=this.appendShareState(e,"showZero"),e=this.appendShareState(e,"showValues"),t&&t.series){let w=t.series.map((C,$)=>({v:C.visible,i:$})).filter(C=>!C.v);w.length&&(e+="&hiddenSeries="+w.map(C=>C.i).join(","))}let l=this.component?.getDrillsAsParameter();l&&(e+="&drilldown="+l);let h='";let u={title:"",component:import("./chunk-YQLISMDV.js"),inputs:{title:"Share widget",shareUrl:h,btnTitle:"Copy",hideOptions:!0},closeByEsc:!0,buttons:[],class:"modal-no-border",componentStyles:{padding:"0"},onComponentInit:w=>{w.onCopy=()=>{this.ms.close(u)}}};this.ms.show(u)}requestData(){this.component?.requestData()}applyFilter(t){this.updateFiltersText(),this.requestData()}changeStyle(t,e,n){}showToolbar(){this.widget.toolbar=!0}hideToolbar(){this.widget.toolbar=!1}onHeaderButtonBack(){this.component?.doDrillUp()}onResetClickFilter(){this.component?.resetClickFilter()}onFilterVariable(t){this.component?.onVariableChange(t)}onFilterDatasource(t){this.component?.onDataSourceChange(t)}onFilterAction(t){this.component?.performAction(t)}onFilter(t){}updateComponent(){this.widgetType=this.wts.getDesc(this.widget.type),this.widgetType?.class?(this.widget.isSupported=!0,this.cd.detectChanges()):(this.widget.isSupported=!1,this.showError(this.i18n.get("errWidgetNotSupported")+": "+this.widget.type),this.cd.detectChanges())}initDrillsForSharedWidget(){let t=this.route.snapshot.queryParamMap.get("drilldown")||"";t&&this.component&&this.widget&&(this.component.drills=decodeURIComponent(t).split("~").map(e=>({path:e,name:e})),this.widget.backButton=!!this.component?.drills.length,this.widget.title=this.component.getDrillTitle(this.component.drills[this.component.drills.length-1]),this.header?.cd.detectChanges())}initDataSourceFromParams(){if(!this.widget.shared)return;let t=this.route.snapshot.queryParamMap.get("datasource");t&&this.component&&(this.component.customDataSource=t)}updateFilterText(t){this.updateFiltersText()}initFilters(){this.model.filters=this.fs.getWidgetModelFilters(this.widget.name),this.updateFiltersText()}checkToolbarVisibility(){this.model.filters.length===0&&!this.hasDatasourceChooser&&!this.hasActions&&!this.widget.pvItems.length&&this.hideToolbar()}subscribeFilters(){this.subFilter=this.bs.subscribe("filter"+this.widget.name,t=>this.applyFilter(t)),this.subUpdateFilterText=this.bs.subscribe("updateFilterText"+this.widget.name,t=>this.updateFilterText(t)),this.subFilterAll=this.bs.subscribe("filterAll",t=>this.applyFilter(t))}subscribeActions(){this.subRefresh=this.bs.subscribe("refresh:"+this.widget.name,()=>this.requestData()),this.subCopyMdx=this.bs.subscribe(`copyMDX:${this.widget.name}`,()=>this.copyMDX()),this.subShare=this.bs.subscribe(`share:${this.widget.name}`,()=>this.share())}};i.\u0275fac=function(e){return new(e||i)(_(st),_(ct),_(Wt),_(kt),_(ze),_(pt),_(Ft),_(K),_(ht))},i.\u0275cmp=A({type:i,selectors:[["dsw-widget"]],viewQuery:function(e,n){if(e&1&&(j(Yt,5),j(ji,7),j(Ui,7)),e&2){let r;U(r=q())&&(n.ngComponentOutlet=r.first),U(r=q())&&(n.header=r.first),U(r=q())&&(n.filters=r.first)}},inputs:{widget:"widget"},standalone:!0,features:[X],decls:7,vars:9,consts:[["header",""],["filters",""],[3,"onButtonClick","onBack","onResetClickFilter","typeDesc","widget","hidden"],[3,"onVariable","onDataSource","onAction","hidden","widget","filters"],[1,"error"],[1,"spinner"],[4,"ngComponentOutlet","ngComponentOutletInputs"],["ngSrc","assets/img/spinner.svg","height","100","width","100","priority",""]],template:function(e,n){if(e&1){let r=y();d(0,"dsw-widget-header",2,0),f("onButtonClick",function(h){return p(r),m(n.onHeaderButton(h))})("onBack",function(){return p(r),m(n.onHeaderButtonBack())})("onResetClickFilter",function(){return p(r),m(n.onResetClickFilter())}),g(),d(2,"dsw-widget-filter",3,1),f("onVariable",function(h){return p(r),m(n.onFilterVariable(h))})("onDataSource",function(h){return p(r),m(n.onFilterDatasource(h))})("onAction",function(h){return p(r),m(n.onFilterAction(h))}),g(),F(4,Qi,1,2,"ng-container")(5,Ki,2,1,"div",4)(6,Zi,2,1,"div",5)}e&2&&(k("typeDesc",n.widgetType)("widget",n.widget)("hidden",n.widget.tile||!n.isHeader),a(2),k("hidden",n.widget.tile||!n.isHeader)("widget",n.widget)("filters",n.model.filters),a(2),x(n.widgetType&&n.widgetType.class?4:-1),a(),x(n.model.error?5:-1),a(),x(n.component!=null&&n.component.isSpinner&&!n.model.error?6:-1))},dependencies:[Ke,Ze,Yt,Ce],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;background-color:var(--cl-widget-bg);padding:20px}.error[_ngcontent-%COMP%]{font-family:Oxygen;position:absolute;inset:0;color:#d7070294;background-color:transparent;text-align:center;background:var(--cl-widget-bg);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}.spinner[_ngcontent-%COMP%]{position:absolute;inset:44px 0 0;z-index:3;display:flex;justify-content:center;align-items:center;background-color:#ffffffe6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:auto}dsw-widget-filter[_ngcontent-%COMP%]{z-index:4}"],data:{animation:[De("fade-in-out",[jt(":enter",[wt({opacity:0}),Gt("100ms",wt({opacity:1}))]),jt(":leave",[wt({opacity:1}),Gt("100ms",wt({opacity:0}))])])]},changeDetection:0});let o=i;return o})();var Ji=["ctxMenu"];function ts(o,i){if(o&1){let s=y();d(0,"gridster-item",18,3),f("transitionend",function(e){let n=p(s).$implicit,r=c(2);return m(r.onWidgetSizeChanged(n,e))})("contextmenu",function(e){let n=p(s).$implicit,r=c(2);return m(r.showContextMenu(n,e))}),I(2,"dsw-widget",19,4),g()}if(o&2){let s=i.$implicit,t=c(2);E("editing",s===t.editedWidget)("no-anim",t.isLoading||t.editedWidget)("expanded",s.isExpanded),k("id",s===t.editedWidget?"edited-widget":void 0)("item",s),a(2),k("widget",s)}}function es(o,i){if(o&1&&(d(0,"gridster",6,2),B(2,ts,4,9,"gridster-item",17,ue().trackByName,!0),g()),o&2){let s=c();k("options",s.tilesOptions),a(2),H(s.list)}}function is(o,i){if(o&1&&(d(0,"div",21),I(1,"dsw-widget",19,4),g()),o&2){let s=i.$implicit;a(),k("widget",s)}}function ss(o,i){if(o&1&&(d(0,"div",23),I(1,"dsw-widget",19),g()),o&2){let s=c(2);ut("transform","translateX(calc(-100vw * "+-s.page+"))"),a(),k("widget",s.mobileFilter)}}function ns(o,i){if(o&1&&(d(0,"div",20),B(1,is,3,1,"div",21,G),F(3,ss,2,3,"div",22),g()),o&2){let s=c();ut("transform","translateX(calc(100vw * "+-s.page+"))"),a(),H(s.list),a(2),x(s.isMobileFilterVisible?3:-1)}}function rs(o,i){if(o&1&&I(0,"span"),o&2){let s=i.$index,t=c();E("active",s===t.page)}}function os(o,i){o&1&&(d(0,"div",10),I(1,"img",24),g())}function ls(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxDrill())}),b(1,"Drilldown"),g()}}function as(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxDrillthrough())}),b(1,"Drillthrough"),g()}}function hs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.printItem())}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"print")))}function ds(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.gotoKPIPage(e.ctxItem))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"showKPI")))}function cs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.gotoAnalyzer(e.ctxItem))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"openAnalyzer")))}function ps(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("svg"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"svgImage")))}function ms(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("png"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"pngImage")))}function gs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("jpg"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"jpgImage")))}function us(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("pdf"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"pdfDoc")))}function fs(o,i){if(o&1){let s=y();d(0,"div",14),f("mouseover",function(e){p(s);let n=at(4),r=c();return m(r.showSubmenu(n,e))}),b(1),S(2,"i18n"),d(3,"div",15,5)(5,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("areaChart"))}),b(6,"Area chart"),g(),d(7,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("barChart"))}),b(8,"Bar chart"),g(),d(9,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("barChartStacked"))}),b(10,"Stacked bar chart"),g(),d(11,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("columnChart"))}),b(12,"Column chart"),g(),d(13,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("columnChartStacked"))}),b(14,"Stacked column chart"),g(),d(15,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("lineChart"))}),b(16,"Line chart"),g(),d(17,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("pieChart"))}),b(18,"Pie chart"),g()()()}o&2&&(a(),Tt(" ",T(2,1,"viewAs")," "))}function ws(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxEdit())}),b(1,"Edit widget"),g()}}var Cs=200,bs=100,xs=50,ti=12,Nn=(()=>{let i=class i extends je{constructor(){super(),this.page=0,this.model={items:[]},this.contextMenuData={canDrill:!1,canDrillthrough:!1},this.tilesOptions={disablePushOnResize:!1,displayGrid:zt.None,disableScrollHorizontal:!0,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushItems:!0,useTransformPositioning:!0,margin:20,gridType:v.VerticalFixed,draggable:{ignoreContent:!0,dragHandleClass:"drag-handle",enabled:!0},resizable:{enabled:!0}},this.isMobile=!1,this.isLoading=!0,this.itemsInitialized=0,this.isMobileFilterVisible=!1,this.sharedWidget="",this.path="",this.sidebarAnimEnd$=this.sbs.onAnimEnd.pipe(nt()),this.trackByName=(t,e)=>{let n=this.path+"-"+e.name.toString();return e===this.editedWidget&&this.editedWidget.edKey||n},this.subscribeForSidebarAnim(),this.checkRestrictions(),this.hs.resetSearch(),this.hs.hideMobileFilterButton(),this.sharedWidget=this.route.snapshot.queryParamMap.get("widget")??"",this.subscribeForGridsterEvents(),this.loadSettings(),this.subscribeForSettingsChanged(),this.subscribeForEditing(),this.setupSharedWidget(),this.isMobile=this.us.isMobile(),this.subReset=this.bs.subscribe("refresh-dashboard",()=>{this.requestData()}),this.subMobileFilterDialog=this.hs.mobileFilterDialogToggle.subscribe(()=>{this.isMobileFilterVisible=!this.isMobileFilterVisible,this.cd.detectChanges()}),this.subContextMenu=this.bs.subscribe("contextmenu",t=>{this.showContextMenu(t.widget,t.event,t.ctxData),this.cd.detectChanges()})}get canEdit(){return location.port==="4007"}ngOnInit(){this.subscribeForParamsChange()}ngAfterViewInit(){}ngOnDestroy(){super.ngOnDestroy(),clearTimeout(this.onLoadingTimeout),window.onafterprint=null,this.subParamsChange?.unsubscribe(),this.subContextMenu.unsubscribe(),this.subMobileFilterDialog.unsubscribe(),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subReset&&this.subReset.unsubscribe()}setType(t){this.ctxItem&&(this.bs.broadcast("setWidgetType:"+this.ctxItem.name,t),this.hideContextMenu())}hideContextMenu(){this.ctxItem=void 0,this.r2.setStyle(this.ctxMenu.nativeElement,"visibility","hidden")}shareItem(){this.ctxItem&&(this.bs.broadcast("share:"+this.ctxItem.name),this.hideContextMenu())}copyMDX(){this.ctxItem&&(this.bs.broadcast("copyMDX:"+this.ctxItem.name),this.hideContextMenu())}printItem(){this.ctxItem&&(this.bs.broadcast("print:"+this.ctxItem.name),this.hideContextMenu())}refreshItem(){this.ctxItem&&(this.bs.broadcast("refresh:"+this.ctxItem.name),this.hideContextMenu())}prepareData(t){let e;if(this.itemsInitialized=0,!t)return;if(t.Error){this.es.show(t.Error);return}if(!t.widgets){this.es.show(this.i18n.get("errNoWidgets"));return}if(t.displayInfo&&t.displayInfo.gridRows&&!this.settings.widgetHeight&&!this.sharedWidget){let l=t.displayInfo.gridRows,h=20,u=window.innerHeight;u<800&&(u=800),this.tilesOptions.fixedRowHeight=Math.floor((u-(63+h*(l+1)))/l)-1,this.gridster&&this.gridster.optionsChanged()}this.vs.init(t),t.filters&&this.fs.init(t.filters,this.path);let n=!1;if((this.fs.isFiltersOnToolbarExists||this.vs.isExists())&&!this.sharedWidget){for(e=0;ethis.tilesOptions.maxCols&&(r.cols=this.tilesOptions.maxCols)}if(t.widgets[e].autocreated&&(delete r.x,delete r.y),t.widgets[e].name&&this.setWidgetSizeAndPos(r,t.widgets[e].name.toString()),this.sharedWidget&&(r.x=0,r.y=0,r.idx=0,r.cols=1,r.rows=1,r.menuDisabled=!0,r.shared=!0),r=it(it({},JSON.parse(JSON.stringify(t.widgets[e]))),JSON.parse(JSON.stringify(r))),this.sharedWidget||this.fillDependentWidgets(r,t.widgets),this.isMobile&&r.type===tt.const.emptyWidgetClass){this.mobileFilter=r,this.hs.showMobileFilterButton();continue}this.list.push(r)}this.sharedWidget||setTimeout(()=>this.broadcastDependents(),0),this.fitEmptyWidget(),this.dbs.setWidgets(this.list),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page]?.title),setTimeout(()=>{})}broadcastDependents(){let t=[];for(let e=0;eC.name==="disableContextMenu");if(h&&(l=h.dataValue===1),t.type===tt.const.emptyWidgetClass||l||this.us.isPreventContextMenu())return;e.preventDefault(),this.ctxItem=t;let u=e.clientY,w=e.clientX;setTimeout(()=>{u+r.offsetHeight>window.innerHeight&&(u-=r.offsetHeight),w+r.offsetWidth>window.innerWidth&&(w-=r.offsetWidth),this.r2.setStyle(r,"left",w+"px"),this.r2.setStyle(r,"top",u+"px"),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subCtxClose=re(document,"mousedown").subscribe(C=>{this.subCtxClose?.unsubscribe(),!C.target.parentElement?.classList.contains("ctx-menu")&&(this.hideContextMenu(),this.cd.detectChanges())}),this.r2.setStyle(r,"visibility","visible")})}exportWidget(t){let e=this.getWidgetByInfo(this.ctxItem)?.component,n={sourceWidth:Math.floor(window.screen.width/2),sourceHeight:Math.floor(window.screen.height/2),filename:this.ctxItem?.tile||"chart",type:"image/svg+xml"};switch(t){case"png":n.type="image/png";break;case"svg":n.type="image/svg+xml";break;case"jpg":n.type="image/jpeg";break;case"pdf":n.type="application/pdf";break;case"xls":{let r=e?.getMDX();if(!r){console.warn(`Can't get MDX for widget: ${this.ctxItem}`);return}if(e?.lpt){let u=e.lpt;r=u._dataSourcesStack[u._dataSourcesStack.length-1].BASIC_MDX+u.dataSource.FILTERS}let h=(this.ss.serverSettings.DefaultApp||"/csp/"+ft)+"/_DeepSee.UI.MDXExcel.zen?MDX="+encodeURIComponent(r||"");window.open(h,"_blank"),this.hideContextMenu();return}case"csv":{this.exportToCsv(),this.hideContextMenu();return}}this.ctxItem?.isChart&&e?.chart?.exportChart(n,{}),this.hideContextMenu()}showSubmenu(t,e){e.target.classList.contains("ctx-sub")&&(this.r2.removeStyle(t,"transform"),this.r2.setStyle(t,"visibility","hidden"),setTimeout(()=>{let n=t.getBoundingClientRect(),r=0,l=0;n.top+n.height>window.innerHeight&&(l=n.top+n.height-window.innerHeight+10),n.left+n.width>window.innerWidth&&(r=n.width+(t.parentElement?.getBoundingClientRect()?.width||0)+2),this.r2.setStyle(t,"transform",`translateX(${-r}px) translateY(${-l}px)`),this.r2.setStyle(t,"visibility","visible")}))}onTouchStart(t){this.touchInfo={startTime:performance.now(),endTime:0,sx:t.changedTouches[0].screenX,sy:t.changedTouches[0].screenY,ex:0,ey:0}}onTouchEnd(t){if(this.isMobileFilterVisible)return;let e=this.touchInfo;if(!e||(e.endTime=performance.now(),e.ex=t.changedTouches[0].screenX,e.ey=t.changedTouches[0].screenY,e.endTime-e.startTime>Cs)||Math.abs(e.ey-e.sy)>bs||Math.abs(e.ex-e.sx)e.sx?-1:1;this.page+=n;let r=this.dbs.getWidgets().length;this.page<0&&(this.page=0),this.page>r-1&&(this.page=r-1),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page].title);let l=this.widgets.toArray()[this.page].component;if(l instanceof Fe){l.adjustSize();return}if(l instanceof We&&l.chartConfig.chart?.type!=="treemap"){l.updateChart(!0,!1);return}}ctxDrill(){this.contextMenuData&&(this.bs.broadcast("drilldown:"+(this.ctxItem?.name||""),{path:this.contextMenuData.drillPath,title:this.contextMenuData.drillTitle}),this.hideContextMenu())}ctxDrillthrough(){this.contextMenuData&&(this.bs.broadcast("drillthrough:"+(this.ctxItem?.name||""),{path:this.contextMenuData.drillPath,title:this.contextMenuData.drillTitle}),this.hideContextMenu())}gotoKPIPage(t){if(!t?.kpiclass)return;let n=(this.ss.serverSettings.DefaultApp||"/csp/"+ft)+"/"+t.kpiclass+".cls";window.open(n,"_blank")}gotoAnalyzer(t){if(!t?.dataSource)return;let e=this.ss.serverSettings.DefaultApp||"/csp/"+ft,n=this.fs.getFiltersUrlString(t.name,!1," ",` +`),r=e+"/_DeepSee.UI.Dialog.Analyzer.zen?&PIVOT="+encodeURIComponent(t.dataSource);n&&(r+="&FILTERSTATE="+n),window.open(r,"_blank")}ctxEdit(){this.ctxItem?.isExpanded&&this.getWidgetByInfo(this.ctxItem)?.header?.onClick("expand"),this.sbs.showComponent({component:import("./chunk-2IO2FDUA.js"),single:!0,inputs:{widget:this.ctxItem}}),this.hideContextMenu()}exportToCsv(){let t=this.getWidgetByInfo(this.ctxItem)?.component,e=t?._currentData;if(!t||!t.lpt||!e)return;let n,r,l;t.lpt?(r=t.lpt.dataController.getData().dimensions[0],n=t.lpt.dataController.getData().dimensions[1],l=t.lpt.dataController.getData().dataArray):(n=e.Cols[1].tuples,r=e.Cols[0].tuples,l=e.Data);let h=`\r `,u="|",w='"sep='+u+'"'+h,C,$;for(n[0]&&n[0].dimension&&(w+=n[0].dimension+u),$=0;${D.click(),document.body.removeChild(D)},10)}}}fitEmptyWidget(){let t,e=0,n=0;this.list.forEach(r=>{if(r.name==="emptyWidget"){t=r;return}let l=(r.x||0)+(r.cols||0),h=(r.y||0)+(r.rows||0);l>e&&(e=l),h>n&&(n=h)}),!(!t||t.rows)&&(t.rows=n||2)}requestData(){this.list=[],this.path.indexOf(".dashboard")!==-1&&(this.isLoading=!0,this.cd.detectChanges(),this.ds.getWidgets(this.path||"").then(t=>{this.dbs.dashboard.next(t),this.prepareData(t)}).finally(()=>{this.onDataLoaded()}))}subscribeForParamsChange(){this.subParamsChange=ne([this.route.url,this.route.params]).subscribe(([t,e])=>{this.switchNamespaceAndPath(t,e),this.requestData()})}switchNamespaceAndPath(t,e){e.ns&&e.ns.toLowerCase()!==ft.toLowerCase()&&this.ns.setCurrent(e.ns),this.path=[e.name,...t.map(n=>n.path)].join("/").slice(1),this.dbs.current.next(this.path)}onDataLoaded(){this.cd.detectChanges(),this.gridster.onResize(),clearTimeout(this.onLoadingTimeout),this.onLoadingTimeout=setTimeout(()=>{this.isLoading=!1,this.cd.detectChanges()},1)}subscribeForSettingsChanged(){this.subSettingsChanged=this.ss.onSettingsChanged.subscribe(t=>{this.tilesOptions.maxCols=t.colCount||ti,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.tilesOptions.pushItems=!t.isTilePushDisabled,this.tilesOptions.disablePushOnResize=!!t.isTilePushDisabled,this.gridster&&(this.gridster.optionsChanged(),setTimeout(()=>{this.gridster.onResize()},1e3))})}subscribeForGridsterEvents(){this.tilesOptions.itemResizeCallback=t=>{this.onWidgetSizeChanged(t)},this.tilesOptions.draggable&&(this.tilesOptions.draggable.start=()=>{this.cd.detach()},this.tilesOptions.draggable.stop=()=>{this.cd.reattach()}),this.tilesOptions.itemChangeCallback=(t,e)=>{this.isLoading||this.dbs.saveWidgetPositionAndSize(t)}}loadSettings(){this.settings=this.ss.getAppSettings(),this.tilesOptions.pushItems=!this.settings.isTilePushDisabled,this.tilesOptions.disablePushOnResize=!!this.settings.isTilePushDisabled,this.tilesOptions.maxCols=parseInt(this.settings.colCount,10)||ti,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.tilesOptions.fixedRowHeight=parseInt(this.settings.widgetHeight,10)||Math.floor((window.innerHeight-158)/10)-1}setupSharedWidget(){if(!this.sharedWidget)return;this.tilesOptions.maxCols=1,this.tilesOptions.minCols=1,this.tilesOptions.maxRows=1,this.tilesOptions.minRows=1,this.tilesOptions.gridType="fit";let e=this.route.snapshot.queryParamMap.get("height");e&&(this.tilesOptions.rowHeight=parseInt(e,10)),this.tilesOptions.draggable={enabled:!1,dragHandleClass:""},this.tilesOptions.resizable={enabled:!1}}checkRestrictions(){this.route.snapshot.queryParamMap.get("nodrag")==="1"&&this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!1),this.route.snapshot.queryParamMap.get("noresize")==="1"&&this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!1)}subscribeForSidebarAnim(){this.sidebarAnimEnd$.subscribe(()=>{this.gridster.onResize()})}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=A({type:i,selectors:[["dsw-dashboard-screen"]],viewQuery:function(e,n){if(e&1&&j(Ji,5),e&2){let r;U(r=q())&&(n.ctxMenu=r.first)}},hostBindings:function(e,n){e&1&&f("touchstart",function(l){return n.onTouchStart(l)})("touchend",function(l){return n.onTouchEnd(l)})},standalone:!0,features:[ge,X],decls:40,vars:30,consts:[["ctxMenu",""],["sub1",""],["gridster",""],["list",""],["widgets",""],["sub2",""],[3,"options"],[1,"mobile-widgets",3,"transform"],[1,"pager",3,"hidden"],[3,"active"],[1,"dsw-spinner"],[1,"ctx-menu",2,"visibility","hidden"],[3,"click"],[1,"divider"],[1,"ctx-sub",3,"mouseover"],[1,"ctx-menu"],[1,"ctx-sub"],[1,"tile",3,"id","editing","no-anim","expanded","item"],[1,"tile",3,"transitionend","contextmenu","id","item"],[3,"widget"],[1,"mobile-widgets"],[1,"tile"],[1,"tile","mobile-filter",3,"transform"],[1,"tile","mobile-filter"],["src","assets/img/spinner.svg"]],template:function(e,n){if(e&1){let r=y();F(0,es,4,1,"gridster",6)(1,ns,4,3,"div",7),d(2,"div",8)(3,"div"),B(4,rs,1,2,"span",9,G),g()(),F(6,os,2,0,"div",10),d(7,"div",11,0),F(9,ls,2,0,"div")(10,as,2,0,"div"),d(11,"div",12),f("click",function(){return p(r),m(n.refreshItem())}),b(12),S(13,"i18n"),g(),F(14,hs,3,3,"div"),d(15,"div",12),f("click",function(){return p(r),m(n.shareItem())}),b(16),S(17,"i18n"),g(),d(18,"div",12),f("click",function(){return p(r),m(n.copyMDX())}),b(19),S(20,"i18n"),g(),F(21,ds,3,3,"div")(22,cs,3,3,"div"),I(23,"div",13),d(24,"div",14),f("mouseover",function(h){p(r);let u=at(27);return m(n.showSubmenu(u,h))}),b(25," Export "),d(26,"div",15,1),F(28,ps,3,3,"div")(29,ms,3,3,"div")(30,gs,3,3,"div")(31,us,3,3,"div"),d(32,"div",12),f("click",function(){return p(r),m(n.exportWidget("xls"))}),b(33),S(34,"i18n"),g(),d(35,"div",12),f("click",function(){return p(r),m(n.exportWidget("csv"))}),b(36),S(37,"i18n"),g()()(),F(38,fs,19,3,"div",16)(39,ws,2,0,"div"),g()}e&2&&(x(n.isMobile?-1:0),a(),x(n.isMobile?1:-1),a(),k("hidden",n.isMobileFilterVisible||n.us.isEmbedded()),a(2),H(n.dbs.getWidgets()),a(2),x(n.isLoading?6:-1),a(3),x(n.contextMenuData!=null&&n.contextMenuData.canDrill?9:-1),a(),x(n.contextMenuData!=null&&n.contextMenuData.canDrillthrough?10:-1),a(2),M(T(13,20,"refresh")),a(2),x(n.ctxItem!=null&&n.ctxItem.isChart?14:-1),a(2),M(T(17,22,"share")),a(3),M(T(20,24,"copyMDX")),a(2),x(n.ctxItem!=null&&n.ctxItem.kpitype?21:-1),a(),x(n.ctxItem!=null&&n.ctxItem.dataSource?22:-1),a(6),x(n.ctxItem!=null&&n.ctxItem.isChart?28:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?29:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?30:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?31:-1),a(2),M(T(34,26,"xlsDoc")),a(3),M(T(37,28,"csvDoc")),a(2),x(n.ctxItem!=null&&n.ctxItem.isChart?38:-1),a(),x(n.ctxItem&&n.canEdit?39:-1))},dependencies:[ee,Ge,Je,$t],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;width:100%;height:100%;padding-bottom:20px}gridster[_ngcontent-%COMP%]{background:var(--cl-bg)}.mobile-widgets[_ngcontent-%COMP%]{display:flex;width:fit-content;transition:transform .2s linear;white-space:nowrap;height:100%}.tile[_ngcontent-%COMP%]{content-visibility:auto;overflow:visible;display:flex!important;flex-direction:column;position:absolute;border-radius:var(--tile-border-radius);border:1px solid var(--cl-header-border);user-select:none;-webkit-user-select:none}.tile.expanded[_ngcontent-%COMP%]{position:fixed;z-index:3!important;left:15px!important;top:calc(var(--header-height) + 15px)!important;right:15px!important;bottom:15px!important;width:auto!important;height:auto!important;transform:none!important;transition:none!important;margin:0!important;box-shadow:0 0 10px #0000001a;border:1px solid darkgray}.tile.expanded[_ngcontent-%COMP%] .gridster-item-resizable-handler.handle-se{display:none!important;pointer-events:none!important}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{position:static;margin-bottom:0!important;width:100vw;display:inline-flex!important;border:none}}.ctx-menu[_ngcontent-%COMP%]{font-family:Oxygen;position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:1px solid var(--cl-header-border);border-radius:4px;z-index:4;background-color:#fff;white-space:nowrap;box-shadow:0 0 5px #0000001f;min-width:140px}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;padding:10px 20px;cursor:pointer;-webkit-user-select:none;user-select:none}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover{background-color:#0000000d}.ctx-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{height:0;margin:0;padding:0;border-bottom:1px solid var(--cl-header-border)}.ctx-sub[_ngcontent-%COMP%]{position:relative}.ctx-sub[_ngcontent-%COMP%]:after{content:"";background-image:url(./assets/img/icons/next.svg);position:absolute;right:6px;display:block;z-index:1;top:14px;width:12px;height:12px;opacity:.4;transform:scaleX(.6)}.ctx-sub[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:none;position:absolute;left:calc(100% + 1px);top:0}.ctx-sub[_ngcontent-%COMP%]:hover > div[_ngcontent-%COMP%]{display:block}.pager[_ngcontent-%COMP%]{display:none;position:absolute;left:0;width:100vw;bottom:calc(var(--header-height) - 10px);z-index:1;align-items:center;justify-content:center}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2px;background-color:var(--cl-widget-bg);border-radius:20px;border:1px solid var(--cl-header-border);height:20px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:20px;background-color:var(--cl-header-bg);border:1px solid var(--cl-header-border);margin-left:4px;margin-right:4px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{width:14px;height:14px;position:relative}@media (max-width: 576px){.pager[_ngcontent-%COMP%]{display:flex}}.mobile-filter[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;z-index:10}.editing[_ngcontent-%COMP%]{border:2px solid var(--cl-accent)}gridster-item[_ngcontent-%COMP%]:not([style]){display:none}.dsw-spinner[_ngcontent-%COMP%]{top:var(--header-height)}'],changeDetection:0});let o=i;return o})();export{zt as a,mi as b,ee as c,Ge as d,Fs as e,Wt as f,Je as g,ti as h,Nn as i}; diff --git a/dist/chunk-6QFXSLJK.js b/dist/chunk-QWH4BMSJ.js similarity index 88% rename from dist/chunk-6QFXSLJK.js rename to dist/chunk-QWH4BMSJ.js index 9f5044b..1478368 100644 --- a/dist/chunk-6QFXSLJK.js +++ b/dist/chunk-QWH4BMSJ.js @@ -1 +1 @@ -import{a as b}from"./chunk-RNWIIYZZ.js";import{a as u}from"./chunk-SUAWKU6Z.js";import{a as p,b as f}from"./chunk-7Z57W26K.js";import{G as l,H as m}from"./chunk-B2BNZRWN.js";import{Da as n,X as c,aa as a,g as h}from"./chunk-ZKAUCJHV.js";import{h as d}from"./chunk-DEPBX7UX.js";var P=(()=>{let s=class s{constructor(e,t,o,i,g,v){this.dbs=e,this.ms=t,this.sbs=o,this.bs=i,this.es=g,this.ds=v,this.onCancelEditing=new n,this.onNewWidget=new n,this.onEditedWidgetChanged=new n,this.onSave=new n,this.onUnsavedChanged=new h(!1),this.onDeleteWidget=new n}resetSavedState(){this.onUnsavedChanged.next(!1)}unsaved(){this.onUnsavedChanged.next(!0)}getWidgetsList(e=[],t=!0){let o=this.dbs.getWidgetsWithoutEmpty(e).map(i=>({name:i.name,label:i.name+(i.title?` (${i.title})`:"")}));return t?[{label:"",name:""},...o]:o}updateEditedWidget(e){this.unsaved(),e.reCreate&&(e.widget.edKey="ed"+new Date().getTime()),this.onEditedWidgetChanged.emit(e)}cancelEditing(){this.onCancelEditing.emit(),this.resetSavedState()}save(e){if(this.validate(e)){if(this.dbs.generateDisplayInfo(e),!e.dashboard){console.error("no dashboard specified in widget:",e);return}this.ds.saveWidget(e.dashboard,e,e?.oldWidget?.name).then(t=>{this.dbs.saveWidgetPositionAndSize(e),this.onSave.emit(),this.sbs.hide(),this.resetSavedState(),this.bs.broadcast("refresh-dashboard")}).catch(t=>{})}}generateWidgetMdx(e){return d(this,null,function*(){if(e.mdx="",e.kpiclass="",e.kpitype="",!e.dataSource)return;let t=e.dataSource.split(".");if(t.pop()?.toLowerCase()==="kpi")e.kpiclass=t.join("."),e.kpitype="sql";else{let i=yield this.ds.getPivotData(e.dataSource);i&&(e.mdx=i.mdx||"")}})}deleteWidget(e){let t=()=>{this.onDeleteWidget.emit(e),this.sbs.hide()};this.askForWidgetDeletion(e,()=>{e.oldWidget?this.ds.deleteWidget(e.dashboard,e.oldWidget.name).then(()=>{t()}):t()})}navigateDataSourceAndType(e,t=[]){this.sbs.showComponent({component:import("./chunk-LJGOUF7S.js"),single:!0,inputs:{model:e,invalid:t}})}askForWidgetDeletion(e,t){this.ms.show({message:`Do you really want do delete widget "${e.name}"?`,buttons:[{label:"No",autoClose:!0},{label:"Yes",default:!0,autoClose:!0,click:t}]})}validate(e){if(!e.name){this.es.show("Please enter widget name",!0),this.sbs.showComponent({component:import("./chunk-R3MKZRT5.js"),single:!0,inputs:{invalid:["name"]}});return}if(!e.dataSource&&!e.dataLink){this.es.show('Please choose "Data source" or "Reference to"',!0),this.navigateDataSourceAndType(e,["datasource"]);return}return!0}};s.\u0275fac=function(t){return new(t||s)(a(f),a(b),a(u),a(p),a(l),a(m))},s.\u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"});let r=s;return r})();export{P as a}; +import{a as b}from"./chunk-RNWIIYZZ.js";import{a as u}from"./chunk-SUAWKU6Z.js";import{a as p,b as f}from"./chunk-ZXTET2VA.js";import{G as l,H as m}from"./chunk-LT3W5FMN.js";import{Da as n,X as c,aa as a,g as h}from"./chunk-ZKAUCJHV.js";import{h as d}from"./chunk-DEPBX7UX.js";var P=(()=>{let s=class s{constructor(e,t,o,i,g,v){this.dbs=e,this.ms=t,this.sbs=o,this.bs=i,this.es=g,this.ds=v,this.onCancelEditing=new n,this.onNewWidget=new n,this.onEditedWidgetChanged=new n,this.onSave=new n,this.onUnsavedChanged=new h(!1),this.onDeleteWidget=new n}resetSavedState(){this.onUnsavedChanged.next(!1)}unsaved(){this.onUnsavedChanged.next(!0)}getWidgetsList(e=[],t=!0){let o=this.dbs.getWidgetsWithoutEmpty(e).map(i=>({name:i.name,label:i.name+(i.title?` (${i.title})`:"")}));return t?[{label:"",name:""},...o]:o}updateEditedWidget(e){this.unsaved(),e.reCreate&&(e.widget.edKey="ed"+new Date().getTime()),this.onEditedWidgetChanged.emit(e)}cancelEditing(){this.onCancelEditing.emit(),this.resetSavedState()}save(e){if(this.validate(e)){if(this.dbs.generateDisplayInfo(e),!e.dashboard){console.error("no dashboard specified in widget:",e);return}this.ds.saveWidget(e.dashboard,e,e?.oldWidget?.name).then(t=>{this.dbs.saveWidgetPositionAndSize(e),this.onSave.emit(),this.sbs.hide(),this.resetSavedState(),this.bs.broadcast("refresh-dashboard")}).catch(t=>{})}}generateWidgetMdx(e){return d(this,null,function*(){if(e.mdx="",e.kpiclass="",e.kpitype="",!e.dataSource)return;let t=e.dataSource.split(".");if(t.pop()?.toLowerCase()==="kpi")e.kpiclass=t.join("."),e.kpitype="sql";else{let i=yield this.ds.getPivotData(e.dataSource);i&&(e.mdx=i.mdx||"")}})}deleteWidget(e){let t=()=>{this.onDeleteWidget.emit(e),this.sbs.hide()};this.askForWidgetDeletion(e,()=>{e.oldWidget?this.ds.deleteWidget(e.dashboard,e.oldWidget.name).then(()=>{t()}):t()})}navigateDataSourceAndType(e,t=[]){this.sbs.showComponent({component:import("./chunk-COTWOYRS.js"),single:!0,inputs:{model:e,invalid:t}})}askForWidgetDeletion(e,t){this.ms.show({message:`Do you really want do delete widget "${e.name}"?`,buttons:[{label:"No",autoClose:!0},{label:"Yes",default:!0,autoClose:!0,click:t}]})}validate(e){if(!e.name){this.es.show("Please enter widget name",!0),this.sbs.showComponent({component:import("./chunk-2IO2FDUA.js"),single:!0,inputs:{invalid:["name"]}});return}if(!e.dataSource&&!e.dataLink){this.es.show('Please choose "Data source" or "Reference to"',!0),this.navigateDataSourceAndType(e,["datasource"]);return}return!0}};s.\u0275fac=function(t){return new(t||s)(a(f),a(b),a(u),a(p),a(l),a(m))},s.\u0275prov=c({token:s,factory:s.\u0275fac,providedIn:"root"});let r=s;return r})();export{P as a}; diff --git a/dist/chunk-S6MPGTA6.js b/dist/chunk-SXKIVI4L.js similarity index 95% rename from dist/chunk-S6MPGTA6.js rename to dist/chunk-SXKIVI4L.js index 82f4492..7fb6adc 100644 --- a/dist/chunk-S6MPGTA6.js +++ b/dist/chunk-SXKIVI4L.js @@ -1 +1 @@ -import{a as Y}from"./chunk-PBNT6RE2.js";import{a as K}from"./chunk-QEASB5VU.js";import{a as Q}from"./chunk-EB65ROO7.js";import{a as U,b as X}from"./chunk-XEEYYVYF.js";import{a as G}from"./chunk-EAEBZZLM.js";import"./chunk-6QFXSLJK.js";import"./chunk-RNWIIYZZ.js";import{a as J}from"./chunk-SUAWKU6Z.js";import"./chunk-7Z57W26K.js";import{b as N,d as R,e as z,j as q}from"./chunk-LPXDHCFD.js";import{D as V,F as T,H as j,J as $,c as A,s as D,w as H}from"./chunk-B2BNZRWN.js";import{$a as l,$b as E,Ab as C,B as S,Bb as w,Bc as W,Cb as y,Db as r,Eb as c,Jb as F,Nb as _,Ob as h,Xb as g,Yb as m,Zb as B,_b as M,ab as p,ac as O,cc as L,fa as I,hc as b,ic as f,qa as x,ra as v,tb as P,vb as k,wb as u}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function ee(a,o){if(a&1){let s=F();r(0,"div",7),_("click",function(){let i=x(s).$index,e=h();return v(e.setTileColor(i))}),c()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("color-rect "+s),k("active",i.tile.color==t)}}function te(a,o){if(a&1){let s=F();r(0,"div",7),_("click",function(){let i=x(s).$index,e=h();return v(e.setFontColor(i))}),r(1,"span"),g(2,"A"),c()()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("color-rect "+s+" "+i.model.colors[i.tile.color]),k("active",i.tile.fontColor==t),l(),u(s)}}function ie(a,o){if(a&1){let s=F();r(0,"div",8),_("click",function(){let i=x(s).$index,e=h();return v(e.setIcon(i))}),c()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("cl"+i.tile.color+" "+(i.tile.icon==t?"active":"")),P("ngClass",s)}}var Ce=(()=>{let o=class o{constructor(t,i,e,d,n,Z){this.ds=t,this.ms=i,this.sbs=e,this.st=d,this.router=n,this.cdr=Z,this.tiles=[],this.folder="",this.model={colors:T.const.bgColorClasses,fontColors:T.const.fontColors,icons:T.const.icons,widgetList:[]},this.originalTiles="",this.subRouteChange=this.router.events.pipe(Q())}get tile(){return this._tile}set tile(t){let i=t!==this._tile;this._tile=t,i&&this.requestWidgetList()}ngOnInit(){this.subscribeForRouteChange(),this.saveOriginalTiles(),this.requestWidgetList()}ngOnDestroy(){this.ms.onEditDashboard.emit(!1)}saveTiles(){let t=this.st.getTilesSettings();for(let i=0;ithis.tiles.push(i))}requestWidgetList(){this.model.widgetList=[],this.tile&&!this.tile.isFolder&&this.ds.getWidgets(this.tile.fullPath).then(t=>this.fillWidgetList(t))}fillWidgetList(t){t&&(this.model.widgetList=t.widgets.map((i,e)=>({idx:e,name:i.title||i.name})),this.model.widgetList=[{idx:-1,name:""},...this.model.widgetList],this.cdr.detectChanges())}subscribeForRouteChange(){this.subRouteChange.pipe(S(t=>t instanceof D)).subscribe(()=>this.onCancelEditing())}};o.\u0275fac=function(i){return new(i||o)(p(j),p(G),p(J),p($),p(H),p(W))},o.\u0275cmp=I({type:o,selectors:[["dsw-home-editor"]],inputs:{tiles:"tiles",folder:"folder",tile:"tile"},standalone:!0,features:[L],decls:30,vars:23,consts:[[3,"apply","cancel"],[1,"container"],[3,"ngModelChange","ngModel"],[3,"active","class"],[1,"color-rect",3,"ngClass","class"],["bindLabel","name","bindValue","idx",1,"dsw",3,"ngModelChange","ngModel","clearable","items"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"click"],[1,"color-rect",3,"click","ngClass"]],template:function(i,e){i&1&&(r(0,"dsw-sidebar-actions",0),_("apply",function(){return e.onSaveTiles()})("cancel",function(){return e.onCancelEditing()}),g(1,"Edit dashboard"),c(),r(2,"div",1)(3,"label"),g(4),b(5,"i18n"),c(),r(6,"dsw-input",2),O("ngModelChange",function(n){return E(e.tile.customTitle,n)||(e.tile.customTitle=n),n}),c(),r(7,"label"),g(8),b(9,"i18n"),c(),w(10,ee,1,4,"div",3,C),r(12,"label"),g(13),b(14,"i18n"),c(),w(15,te,3,6,"div",3,C),r(17,"label"),g(18),b(19,"i18n"),c(),w(20,ie,1,3,"div",4,C),r(22,"label"),g(23),b(24,"i18n"),c(),r(25,"ng-select",5),O("ngModelChange",function(n){return E(e.tile.widget,n)||(e.tile.widget=n),n}),c(),r(26,"label"),g(27),b(28,"i18n"),r(29,"input",6),O("ngModelChange",function(n){return E(e.tile.hideTitle,n)||(e.tile.hideTitle=n),n}),c()()()),i&2&&(l(4),m(f(5,11,"title")),l(2),M("ngModel",e.tile.customTitle),l(2),m(f(9,13,"bgColor")),l(2),y(e.model.colors),l(3),m(f(14,15,"fntColor")),l(2),y(e.model.fontColors),l(3),m(f(19,17,"icon")),l(2),y(e.model.icons),l(3),m(f(24,19,"widget")),l(2),M("ngModel",e.tile.widget),P("clearable",!1)("items",e.model.widgetList),l(2),B("",f(28,21,"hideTitle")," "),l(2),M("ngModel",e.tile.hideTitle))},dependencies:[K,Y,q,N,R,z,X,U,V,A],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}input[type=checkbox][_ngcontent-%COMP%]{cursor:pointer;outline:none;display:inline}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=checkbox][_ngcontent-%COMP%]:active{outline:none}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}"],changeDetection:0});let a=o;return a})();export{Ce as HomeEditorComponent}; +import{a as Y}from"./chunk-EM2NUV7J.js";import{a as K}from"./chunk-BNUZIG4N.js";import{a as Q}from"./chunk-EB65ROO7.js";import{a as U,b as X}from"./chunk-VIPKQBAQ.js";import{a as G}from"./chunk-EAEBZZLM.js";import"./chunk-QWH4BMSJ.js";import"./chunk-RNWIIYZZ.js";import{a as J}from"./chunk-SUAWKU6Z.js";import"./chunk-ZXTET2VA.js";import{b as N,d as R,e as z,j as q}from"./chunk-6RK5MU4O.js";import{D as V,F as T,H as j,J as $,c as A,s as D,w as H}from"./chunk-LT3W5FMN.js";import{$a as l,$b as E,Ab as C,B as S,Bb as w,Bc as W,Cb as y,Db as r,Eb as c,Jb as F,Nb as _,Ob as h,Xb as g,Yb as m,Zb as B,_b as M,ab as p,ac as O,cc as L,fa as I,hc as b,ic as f,qa as x,ra as v,tb as P,vb as k,wb as u}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function ee(a,o){if(a&1){let s=F();r(0,"div",7),_("click",function(){let i=x(s).$index,e=h();return v(e.setTileColor(i))}),c()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("color-rect "+s),k("active",i.tile.color==t)}}function te(a,o){if(a&1){let s=F();r(0,"div",7),_("click",function(){let i=x(s).$index,e=h();return v(e.setFontColor(i))}),r(1,"span"),g(2,"A"),c()()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("color-rect "+s+" "+i.model.colors[i.tile.color]),k("active",i.tile.fontColor==t),l(),u(s)}}function ie(a,o){if(a&1){let s=F();r(0,"div",8),_("click",function(){let i=x(s).$index,e=h();return v(e.setIcon(i))}),c()}if(a&2){let s=o.$implicit,t=o.$index,i=h();u("cl"+i.tile.color+" "+(i.tile.icon==t?"active":"")),P("ngClass",s)}}var Ce=(()=>{let o=class o{constructor(t,i,e,d,n,Z){this.ds=t,this.ms=i,this.sbs=e,this.st=d,this.router=n,this.cdr=Z,this.tiles=[],this.folder="",this.model={colors:T.const.bgColorClasses,fontColors:T.const.fontColors,icons:T.const.icons,widgetList:[]},this.originalTiles="",this.subRouteChange=this.router.events.pipe(Q())}get tile(){return this._tile}set tile(t){let i=t!==this._tile;this._tile=t,i&&this.requestWidgetList()}ngOnInit(){this.subscribeForRouteChange(),this.saveOriginalTiles(),this.requestWidgetList()}ngOnDestroy(){this.ms.onEditDashboard.emit(!1)}saveTiles(){let t=this.st.getTilesSettings();for(let i=0;ithis.tiles.push(i))}requestWidgetList(){this.model.widgetList=[],this.tile&&!this.tile.isFolder&&this.ds.getWidgets(this.tile.fullPath).then(t=>this.fillWidgetList(t))}fillWidgetList(t){t&&(this.model.widgetList=t.widgets.map((i,e)=>({idx:e,name:i.title||i.name})),this.model.widgetList=[{idx:-1,name:""},...this.model.widgetList],this.cdr.detectChanges())}subscribeForRouteChange(){this.subRouteChange.pipe(S(t=>t instanceof D)).subscribe(()=>this.onCancelEditing())}};o.\u0275fac=function(i){return new(i||o)(p(j),p(G),p(J),p($),p(H),p(W))},o.\u0275cmp=I({type:o,selectors:[["dsw-home-editor"]],inputs:{tiles:"tiles",folder:"folder",tile:"tile"},standalone:!0,features:[L],decls:30,vars:23,consts:[[3,"apply","cancel"],[1,"container"],[3,"ngModelChange","ngModel"],[3,"active","class"],[1,"color-rect",3,"ngClass","class"],["bindLabel","name","bindValue","idx",1,"dsw",3,"ngModelChange","ngModel","clearable","items"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"click"],[1,"color-rect",3,"click","ngClass"]],template:function(i,e){i&1&&(r(0,"dsw-sidebar-actions",0),_("apply",function(){return e.onSaveTiles()})("cancel",function(){return e.onCancelEditing()}),g(1,"Edit dashboard"),c(),r(2,"div",1)(3,"label"),g(4),b(5,"i18n"),c(),r(6,"dsw-input",2),O("ngModelChange",function(n){return E(e.tile.customTitle,n)||(e.tile.customTitle=n),n}),c(),r(7,"label"),g(8),b(9,"i18n"),c(),w(10,ee,1,4,"div",3,C),r(12,"label"),g(13),b(14,"i18n"),c(),w(15,te,3,6,"div",3,C),r(17,"label"),g(18),b(19,"i18n"),c(),w(20,ie,1,3,"div",4,C),r(22,"label"),g(23),b(24,"i18n"),c(),r(25,"ng-select",5),O("ngModelChange",function(n){return E(e.tile.widget,n)||(e.tile.widget=n),n}),c(),r(26,"label"),g(27),b(28,"i18n"),r(29,"input",6),O("ngModelChange",function(n){return E(e.tile.hideTitle,n)||(e.tile.hideTitle=n),n}),c()()()),i&2&&(l(4),m(f(5,11,"title")),l(2),M("ngModel",e.tile.customTitle),l(2),m(f(9,13,"bgColor")),l(2),y(e.model.colors),l(3),m(f(14,15,"fntColor")),l(2),y(e.model.fontColors),l(3),m(f(19,17,"icon")),l(2),y(e.model.icons),l(3),m(f(24,19,"widget")),l(2),M("ngModel",e.tile.widget),P("clearable",!1)("items",e.model.widgetList),l(2),B("",f(28,21,"hideTitle")," "),l(2),M("ngModel",e.tile.hideTitle))},dependencies:[K,Y,q,N,R,z,X,U,V,A],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}input[type=checkbox][_ngcontent-%COMP%]{cursor:pointer;outline:none;display:inline}input[type=checkbox][_ngcontent-%COMP%]:focus, input[type=checkbox][_ngcontent-%COMP%]:active{outline:none}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}"],changeDetection:0});let a=o;return a})();export{Ce as HomeEditorComponent}; diff --git a/dist/chunk-4JGIKPPC.js b/dist/chunk-TDEEXQXM.js similarity index 99% rename from dist/chunk-4JGIKPPC.js rename to dist/chunk-TDEEXQXM.js index 6fb1d31..4e894e2 100644 --- a/dist/chunk-4JGIKPPC.js +++ b/dist/chunk-TDEEXQXM.js @@ -1,4 +1,4 @@ -import{H as H0,r as O0}from"./chunk-B2BNZRWN.js";import{$a as z0,Db as wu,Eb as Su,Fb as Tu,Wa as I0,Xb as eu,ab as vu,cc as N0,fa as R0,tb as P0}from"./chunk-ZKAUCJHV.js";import{e as iu}from"./chunk-DEPBX7UX.js";var Nu={};iu(Nu,{arrayReplaceAt:()=>Pu,assign:()=>X,escapeHtml:()=>I,escapeRE:()=>wr,fromCodePoint:()=>nu,has:()=>xr,isMdAsciiPunct:()=>V,isPunctChar:()=>j,isSpace:()=>k,isString:()=>gu,isValidEntityCode:()=>ku,isWhiteSpace:()=>U,lib:()=>Sr,normalizeReference:()=>Z,unescapeAll:()=>R,unescapeMd:()=>Cr});var du={};iu(du,{decode:()=>ru,encode:()=>lu,format:()=>W,parse:()=>tu});var U0={};function $e(u){let e=U0[u];if(e)return e;e=U0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);e.push(n)}for(let r=0;r=55296&&l<=57343?t+="\uFFFD\uFFFD\uFFFD":t+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?t+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,t+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}}t+="\uFFFD"}return t})}au.defaultChars=";/?:@&=+$,#";au.componentChars="";var ru=au;var j0={};function Ge(u){let e=j0[u];if(e)return e;e=j0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);let n=Ge(e),t="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){t+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}t+="%EF%BF%BD";continue}t+=encodeURIComponent(u[c])}return t}su.defaultChars=";/?:@&=+$,-_.!~*'()#";su.componentChars="-_.!~*'()";var lu=su;function W(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function fu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var We=/^([a-z0-9.+-]+:)/i,Je=/:[0-9]*$/,Xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Qe=["<",">",'"',"`"," ","\r",` +import{H as H0,r as O0}from"./chunk-LT3W5FMN.js";import{$a as z0,Db as wu,Eb as Su,Fb as Tu,Wa as I0,Xb as eu,ab as vu,cc as N0,fa as R0,tb as P0}from"./chunk-ZKAUCJHV.js";import{e as iu}from"./chunk-DEPBX7UX.js";var Nu={};iu(Nu,{arrayReplaceAt:()=>Pu,assign:()=>X,escapeHtml:()=>I,escapeRE:()=>wr,fromCodePoint:()=>nu,has:()=>xr,isMdAsciiPunct:()=>V,isPunctChar:()=>j,isSpace:()=>k,isString:()=>gu,isValidEntityCode:()=>ku,isWhiteSpace:()=>U,lib:()=>Sr,normalizeReference:()=>Z,unescapeAll:()=>R,unescapeMd:()=>Cr});var du={};iu(du,{decode:()=>ru,encode:()=>lu,format:()=>W,parse:()=>tu});var U0={};function $e(u){let e=U0[u];if(e)return e;e=U0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);e.push(n)}for(let r=0;r=55296&&l<=57343?t+="\uFFFD\uFFFD\uFFFD":t+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?t+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,t+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}}t+="\uFFFD"}return t})}au.defaultChars=";/?:@&=+$,#";au.componentChars="";var ru=au;var j0={};function Ge(u){let e=j0[u];if(e)return e;e=j0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);let n=Ge(e),t="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){t+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}t+="%EF%BF%BD";continue}t+=encodeURIComponent(u[c])}return t}su.defaultChars=";/?:@&=+$,-_.!~*'()#";su.componentChars="-_.!~*'()";var lu=su;function W(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function fu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var We=/^([a-z0-9.+-]+:)/i,Je=/:[0-9]*$/,Xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Qe=["<",">",'"',"`"," ","\r",` `," "],Ye=["{","}","|","\\","^","`"].concat(Qe),Ke=["'"].concat(Ye),V0=["%","/","?",";","#"].concat(Ke),Z0=["/","?","#"],ur=255,$0=/^[+a-z0-9A-Z_-]{0,63}$/,er=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G0={javascript:!0,"javascript:":!0},W0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function rr(u,e){if(u&&u instanceof fu)return u;let r=new fu;return r.parse(u,e),r}fu.prototype.parse=function(u,e){let r,n,t,c=u;if(c=c.trim(),!e&&u.split("#").length===1){let s=Xe.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=We.exec(c);if(i&&(i=i[0],r=i.toLowerCase(),this.protocol=i,c=c.substr(i.length)),(e||i||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(t=c.substr(0,2)==="//",t&&!(i&&G0[i])&&(c=c.substr(2),this.slashes=!0)),!G0[i]&&(t||i&&!W0[i])){let s=-1;for(let f=0;f127?h+="x":h+=E[x];if(!h.match($0)){let x=f.slice(0,g),m=f.slice(g+1),_=E.match(er);_&&(x.push(_[1]),m.unshift(_[2])),m.length&&(c=m.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>ur&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let o=c.indexOf("#");o!==-1&&(this.hash=c.substr(o),c=c.slice(0,o));let a=c.indexOf("?");return a!==-1&&(this.search=c.substr(a),c=c.slice(0,a)),c&&(this.pathname=c),W0[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};fu.prototype.parseHost=function(u){let e=Je.exec(u);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),u=u.substr(0,u.length-e.length)),u&&(this.hostname=u)};var tu=rr;var Lu={};iu(Lu,{Any:()=>pu,Cc:()=>bu,Cf:()=>J0,P:()=>J,S:()=>hu,Z:()=>mu});var pu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var bu=/[\0-\x1F\x7F-\x9F]/;var J0=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var J=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var hu=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var mu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var X0=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(u=>u.charCodeAt(0)));var Q0=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(u=>u.charCodeAt(0)));var qu,tr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Mu=(qu=String.fromCodePoint)!==null&&qu!==void 0?qu:function(u){let e="";return u>65535&&(u-=65536,e+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),e+=String.fromCharCode(u),e};function Bu(u){var e;return u>=55296&&u<=57343||u>1114111?65533:(e=tr.get(u))!==null&&e!==void 0?e:u}var F=function(u){return u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z",u}(F||{}),nr=32,H=function(u){return u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE",u}(H||{});function Ru(u){return u>=F.ZERO&&u<=F.NINE}function cr(u){return u>=F.UPPER_A&&u<=F.UPPER_F||u>=F.LOWER_A&&u<=F.LOWER_F}function or(u){return u>=F.UPPER_A&&u<=F.UPPER_Z||u>=F.LOWER_A&&u<=F.LOWER_Z||Ru(u)}function ir(u){return u===F.EQUALS||or(u)}var A=function(u){return u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity",u}(A||{}),B=function(u){return u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute",u}(B||{}),xu=class{constructor(e,r,n){this.decodeTree=e,this.emitCodePoint=r,this.errors=n,this.state=A.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=B.Strict}startEntity(e){this.decodeMode=e,this.state=A.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,r){switch(this.state){case A.EntityStart:return e.charCodeAt(r)===F.NUM?(this.state=A.NumericStart,this.consumed+=1,this.stateNumericStart(e,r+1)):(this.state=A.NamedEntity,this.stateNamedEntity(e,r));case A.NumericStart:return this.stateNumericStart(e,r);case A.NumericDecimal:return this.stateNumericDecimal(e,r);case A.NumericHex:return this.stateNumericHex(e,r);case A.NamedEntity:return this.stateNamedEntity(e,r)}}stateNumericStart(e,r){return r>=e.length?-1:(e.charCodeAt(r)|nr)===F.LOWER_X?(this.state=A.NumericHex,this.consumed+=1,this.stateNumericHex(e,r+1)):(this.state=A.NumericDecimal,this.stateNumericDecimal(e,r))}addToNumericResult(e,r,n,t){if(r!==n){let c=n-r;this.result=this.result*Math.pow(t,c)+parseInt(e.substr(r,c),t),this.consumed+=c}}stateNumericHex(e,r){let n=r;for(;r>14;for(;r>14,c!==0){if(i===F.SEMI)return this.emitNamedEntityData(this.treeIndex,c,this.consumed+this.excess);this.decodeMode!==B.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:r,decodeTree:n}=this,t=(n[r]&H.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,t,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,r,n){let{decodeTree:t}=this;return this.emitCodePoint(r===1?t[e]&~H.VALUE_LENGTH:t[e+1],n),r===3&&this.emitCodePoint(t[e+2],n),n}end(){var e;switch(this.state){case A.NamedEntity:return this.result!==0&&(this.decodeMode!==B.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case A.NumericDecimal:return this.emitNumericEntity(0,2);case A.NumericHex:return this.emitNumericEntity(0,3);case A.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case A.EntityStart:return 0}}};function Y0(u){let e="",r=new xu(u,n=>e+=Mu(n));return function(t,c){let i=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(i,o),r.startEntity(c);let s=r.write(t,o+1);if(s<0){i=o+r.end();break}i=o+s,o=s===0?i+1:i}let a=e+t.slice(i);return e="",a}}function ar(u,e,r,n){let t=(e&H.BRANCH_LENGTH)>>7,c=e&H.JUMP_TABLE;if(t===0)return c!==0&&n===c?r:-1;if(c){let a=n-c;return a<0||a>=t?-1:u[r+a]-1}let i=r,o=i+t-1;for(;i<=o;){let a=i+o>>>1,s=u[a];if(sn)o=a-1;else return u[a+t]}return-1}var sr=Y0(X0),bn=Y0(Q0);function N(u,e=B.Legacy){return sr(u,e)}function _u(u){for(let e=1;eu.codePointAt(e):(u,e)=>(u.charCodeAt(e)&64512)===55296?(u.charCodeAt(e)-55296)*1024+u.charCodeAt(e+1)-56320+65536:u.charCodeAt(e);function Iu(u,e){return function(n){let t,c=0,i="";for(;t=u.exec(n);)c!==t.index&&(i+=n.substring(c,t.index)),i+=e.get(t[0].charCodeAt(0)),c=t.index+1;return i+n.substring(c)}}var K0=Iu(/[&<>'"]/g,fr),ue=Iu(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ee=Iu(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));function hr(u){return Object.prototype.toString.call(u)}function gu(u){return hr(u)==="[object String]"}var mr=Object.prototype.hasOwnProperty;function xr(u,e){return mr.call(u,e)}function X(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){u[n]=r[n]})}}),u}function Pu(u,e,r){return[].concat(u.slice(0,e),r,u.slice(e+1))}function ku(u){return!(u>=55296&&u<=57343||u>=64976&&u<=65007||(u&65535)===65535||(u&65535)===65534||u>=0&&u<=8||u===11||u>=14&&u<=31||u>=127&&u<=159||u>1114111)}function nu(u){if(u>65535){u-=65536;let e=55296+(u>>10),r=56320+(u&1023);return String.fromCharCode(e,r)}return String.fromCharCode(u)}var ne=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,_r=/&([a-z#][a-z0-9]{1,31});/gi,gr=new RegExp(ne.source+"|"+_r.source,"gi"),kr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Dr(u,e){if(e.charCodeAt(0)===35&&kr.test(e)){let n=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return ku(n)?nu(n):u}let r=N(u);return r!==u?r:u}function Cr(u){return u.indexOf("\\")<0?u:u.replace(ne,"$1")}function R(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(gr,function(e,r,n){return r||Dr(e,n)})}var Er=/[&<>"]/,yr=/[&<>"]/g,Ar={"&":"&","<":"<",">":">",'"':"""};function Fr(u){return Ar[u]}function I(u){return Er.test(u)?u.replace(yr,Fr):u}var vr=/[.?*+^$[\]\\(){}|-]/g;function wr(u){return u.replace(vr,"\\$&")}function k(u){switch(u){case 9:case 32:return!0}return!1}function U(u){if(u>=8192&&u<=8202)return!0;switch(u){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function j(u){return J.test(u)||hu.test(u)}function V(u){switch(u){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Z(u){return u=u.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(u=u.replace(/ẞ/g,"\xDF")),u.toLowerCase().toUpperCase()}var Sr={mdurl:du,ucmicro:Lu};var ju={};iu(ju,{parseLinkDestination:()=>Hu,parseLinkLabel:()=>Ou,parseLinkTitle:()=>Uu});function Ou(u,e,r){let n,t,c,i,o=u.posMax,a=u.pos;for(u.pos=e+1,n=1;u.pos32))return c;if(n===41){if(i===0)break;i--}t++}return e===t||i!==0||(c.str=R(u.slice(e,t)),c.pos=t,c.ok=!0),c}function Uu(u,e,r,n){let t,c=e,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)i.str=n.str,i.marker=n.marker;else{if(c>=r)return i;let o=u.charCodeAt(c);if(o!==34&&o!==39&&o!==40)return i;e++,c++,o===40&&(o=41),i.marker=o}for(;c"+I(c.content)+""};L.code_block=function(u,e,r,n,t){let c=u[e];return""+I(u[e].content)+` `};L.fence=function(u,e,r,n,t){let c=u[e],i=c.info?R(c.info).trim():"",o="",a="";if(i){let l=i.split(/(\s+)/g);o=l[0],a=l.slice(2).join("")}let s;if(r.highlight?s=r.highlight(c.content,o,a)||I(c.content):s=I(c.content),s.indexOf("${s} diff --git a/dist/chunk-XEEYYVYF.js b/dist/chunk-VIPKQBAQ.js similarity index 99% rename from dist/chunk-XEEYYVYF.js rename to dist/chunk-VIPKQBAQ.js index 02451b6..73d4f6f 100644 --- a/dist/chunk-XEEYYVYF.js +++ b/dist/chunk-VIPKQBAQ.js @@ -1,2 +1,2 @@ -import{a as ze}from"./chunk-LPXDHCFD.js";import{b as He,c as je,f as he,i as Ue}from"./chunk-B2BNZRWN.js";import{$a as u,A as J,B as Ce,Ba as L,Bb as re,Bc as Re,C as be,Cb as ae,Da as v,Db as m,Eb as E,F as Te,Fb as j,Gb as Oe,Gc as _,Hb as ke,Hc as $,Ib as ue,Jb as U,Nb as P,Ob as c,Pb as ce,Q as ve,Qb as de,Rb as Le,S as N,Sb as I,T as we,Tb as R,Ub as g,Vb as f,W as ye,Wb as D,X,Xb as V,Y as Se,Yb as z,Zb as Be,_ as Fe,ab as d,bc as Ve,cb as h,dc as Q,eb as Ae,ec as Pe,f as W,fa as ee,fc as Me,ga as Ie,gb as xe,gc as Ne,h as fe,ha as F,i as _e,kc as M,mb as te,pa as q,qa as b,r as Ee,ra as T,rb as w,sb as ie,tb as y,va as le,vb as B,wb as De,xb as oe,y as G,yb as A}from"./chunk-ZKAUCJHV.js";import{a as ge}from"./chunk-DEPBX7UX.js";var Ze=["content"],Je=["scroll"],Xe=["padding"],Ge=["*"],K=n=>({searchTerm:n});function et(n,t){if(n&1&&(m(0,"div",3),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}function tt(n,t){if(n&1&&(m(0,"div",5),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}var it=["searchInput"],nt=["clearButton"],st=(n,t,s)=>({item:n,clear:t,label:s}),lt=(n,t)=>({items:n,clear:t}),ot=(n,t,s,e)=>({item:n,item$:t,index:s,searchTerm:e});function rt(n,t){if(n&1){let s=U();m(0,"span",21),P("click",function(){b(s);let i=c().$implicit,l=c(2);return T(l.unselect(i))}),V(1,"\xD7"),E(),j(2,"span",22)}if(n&2){let s=c().$implicit,e=c(2);u(2),y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function at(n,t){}function ut(n,t){if(n&1&&(m(0,"div",20),w(1,rt,3,2,"ng-template",null,1,M)(3,at,0,0,"ng-template",12),E()),n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-value-disabled",s.disabled),u(3),y("ngTemplateOutlet",i.labelTemplate||e)("ngTemplateOutletContext",Me(4,st,s.value,i.clearItem,s.label))}}function ct(n,t){if(n&1&&re(0,ut,4,8,"div",19,oe().trackByOption,!0),n&2){let s=c();ae(s.selectedItems)}}function dt(n,t){}function ht(n,t){if(n&1&&w(0,dt,0,0,"ng-template",12),n&2){let s=c();y("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",Pe(2,lt,s.selectedValues,s.clearItem))}}function pt(n,t){n&1&&j(0,"div",24)}function mt(n,t){}function gt(n,t){if(n&1&&w(0,pt,1,0,"ng-template",null,2,M)(2,mt,0,0,"ng-template",23),n&2){let s=D(1),e=c();u(2),y("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function ft(n,t){if(n&1&&(m(0,"span",15,3)(2,"span",25),V(3,"\xD7"),E()()),n&2){let s=c();Le("title",s.clearAllText)}}function _t(n,t){if(n&1&&j(0,"span",30),n&2){let s=c().$implicit,e=c(2);y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Et(n,t){}function Ct(n,t){if(n&1){let s=U();m(0,"div",29),P("click",function(){let i=b(s).$implicit,l=c(2);return T(l.toggleItem(i))})("mouseover",function(){let i=b(s).$implicit,l=c(2);return T(l.onItemHover(i))}),w(1,_t,1,2,"ng-template",null,4,M)(3,Et,0,0,"ng-template",12),E()}if(n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),ie("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),u(3),y("ngTemplateOutlet",s.children?i.optgroupTemplate||e:i.optionTemplate||e)("ngTemplateOutletContext",Ne(17,ot,s.value,s,s.index,i.searchTerm))}}function bt(n,t){if(n&1&&(m(0,"span")(1,"span",32),V(2),E(),V(3),E()),n&2){let s=c(3);u(2),z(s.addTagText),u(),Be('"',s.searchTerm,'"')}}function Tt(n,t){}function vt(n,t){if(n&1){let s=U();m(0,"div",31),P("mouseover",function(){b(s);let i=c(2);return T(i.itemsList.unmarkItem())})("click",function(){b(s);let i=c(2);return T(i.selectTag())}),w(1,bt,4,2,"ng-template",null,5,M)(3,Tt,0,0,"ng-template",12),E()}if(n&2){let s=D(2),e=c(2);B("ng-option-marked",!e.itemsList.markedItem),u(3),y("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",Q(4,K,e.searchTerm))}}function wt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.notFoundText)}}function yt(n,t){}function St(n,t){if(n&1&&w(0,wt,2,1,"ng-template",null,6,M)(2,yt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function Ft(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.typeToSearchText)}}function It(n,t){}function At(n,t){if(n&1&&w(0,Ft,2,1,"ng-template",null,7,M)(2,It,0,0,"ng-template",23),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function xt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.loadingText)}}function Dt(n,t){}function Ot(n,t){if(n&1&&w(0,xt,2,1,"ng-template",null,8,M)(2,Dt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function kt(n,t){if(n&1){let s=U();m(0,"ng-dropdown-panel",26),P("update",function(i){b(s);let l=c();return T(l.viewPortItems=i)})("scroll",function(i){b(s);let l=c();return T(l.scroll.emit(i))})("scrollToEnd",function(i){b(s);let l=c();return T(l.scrollToEnd.emit(i))})("outsideClick",function(){b(s);let i=c();return T(i.close())}),Oe(1),re(2,Ct,4,22,"div",27,oe().trackByOption,!0),w(4,vt,4,6,"div",28),ke(),w(5,St,3,4)(6,At,3,1)(7,Ot,3,4),E()}if(n&2){let s=c();De(s.dropdownPanelStaticClasses),B("ng-select-multiple",s.multiple),y("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.ngClass:null)("id",s.dropdownId),u(2),ae(s.viewPortItems),u(2),A(s.showAddTag?4:-1),u(),A(s.showNoItemsFound()?5:-1),u(),A(s.showTypeToSearch()?6:-1),u(),A(s.loading&&s.itemsList.filteredItems.length===0?7:-1)}}var qe=/[&<>"']/g,Lt=RegExp(qe.source),Bt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(n){return n&&Lt.test(n)?n.replace(qe,t=>Bt[t]):n}function p(n){return n!=null}function Y(n){return typeof n=="object"&&p(n)}function Pt(n){return n instanceof Promise}function se(n){return n instanceof Function}var Mt=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275dir=F({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[q]});let n=t;return n})(),Nt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-option-tmp",""]]});let n=t;return n})(),Rt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-optgroup-tmp",""]]});let n=t;return n})(),Ht=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-label-tmp",""]]});let n=t;return n})(),jt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-multi-label-tmp",""]]});let n=t;return n})(),Ut=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-header-tmp",""]]});let n=t;return n})(),zt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-footer-tmp",""]]});let n=t;return n})(),Qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-notfound-tmp",""]]});let n=t;return n})(),Wt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let n=t;return n})(),Gt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let n=t;return n})(),qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-tag-tmp",""]]});let n=t;return n})(),$t=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let n=t;return n})();function $e(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Yt={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function ne(n){let t=s=>Yt[s]||s;return n.replace(/[^\u0000-\u007E]/g,t)}var pe=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&p(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=ne(t).toLocaleLowerCase(),this.filteredItems.find(s=>ne(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:ne(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let i of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(i)){if(e&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;s(t,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(a=>a===o.parent);this._filteredItems.push(r)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!Y(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),i=t;for(let l=0,o=e.length;lthis.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return ne(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let o of t){let r=(o.value[s]||[]).map((a,x)=>this.mapItem(a,x));e.set(o,r)}return e}let i=se(this._ngSelect.groupBy),l=o=>{let r=i?s(o.value):o.value[s];return p(r)?r:void 0};for(let o of t){let r=l(o),a=e.get(r);a?a.push(o):e.set(r,[o])}return e}_flatten(t){let s=se(this._ngSelect.groupBy),e=[];for(let i of Array.from(t.keys())){let l=e.length;if(i===void 0){let S=t.get(void 0)||[];e.push(...S.map(H=>(H.index=l++,H)));continue}let o=Y(i),r={label:o?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:$e()},a=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,x=this._ngSelect.groupValue||(()=>o?i.value:{[a]:i}),C=t.get(i).map(S=>(S.parent=r,S.children=void 0,S.index=l++,S));r.children=C,r.value=x(i,C.map(S=>S.value)),e.push(r),e.push(...C)}return e}},O=function(n){return n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Esc=27]="Esc",n[n.Space=32]="Space",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowDown=40]="ArrowDown",n[n.Backspace=8]="Backspace",n}(O||{}),Ye=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){let o=this._dimensions,r=o.itemHeight*i,x=Math.max(0,e)/r*i,C=Math.min(i,Math.ceil(x)+(o.itemsPerViewport+1)),H=Math.max(0,C-o.itemsPerViewport),k=Math.min(H,Math.floor(x)),Z=o.itemHeight*Math.ceil(k)-o.itemHeight*Math.min(k,l);return Z=isNaN(Z)?0:Z,k=isNaN(k)?-1:k,C=isNaN(C)?-1:C,k-=l,k=Math.max(0,k),C+=l,C=Math.min(i,C),{topPadding:Z,scrollHeight:r,start:k,end:C}}setDimensions(e,i){let l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){let{panelHeight:o}=this.dimensions,r=e+i,a=l,x=a+o;return o>=r&&l===e?null:r>x?a+r-x:e<=a?e:null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac});let n=t;return n})(),Qe=["top","right","bottom","left"],Kt=typeof requestAnimationFrame<"u"?_e:fe,We=(()=>{let t=class t{constructor(e,i,l,o,r){this._renderer=e,this._zone=i,this._panelService=l,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new v,this.scroll=new v,this.scrollToEnd=new v,this.outsideClick=new v,this._destroy$=new W,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem.index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let l=this.items.indexOf(e);if(l<0||l>=this.itemsLength)return;let o;if(this.virtualScroll){let r=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(l*r,r,this._lastScrollPosition)}else{let r=this._dropdown.querySelector(`#${e.htmlId}`),a=i?r.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(r.offsetTop,r.clientHeight,a)}p(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Qe.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Qe.forEach(l=>{let o=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{G(this.scrollElementRef.nativeElement,"scroll").pipe(N(this._destroy$),be(0,Kt)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let l=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(l)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{J(G(this._document,"touchstart",{capture:!0}),G(this._document,"click",{capture:!0})).pipe(N(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),p(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${l*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(l,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),l=document.documentElement.scrollTop||document.body.scrollTop,o=i.top+window.pageYOffset,r=i.height,a=e.getBoundingClientRect().height;return o+r+a>l+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.left-i.left;this._dropdown.style.left=l+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.height;if(this._currentPosition==="top"){let o=i.bottom-e.bottom;this._dropdown.style.bottom=o+l+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-i.top;this._dropdown.style.top=o+l+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{G(this._dropdown,"mousedown").pipe(N(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(i){return new(i||t)(d(Ae),d(xe),d(Ye),d(L),d(He,8))},t.\u0275cmp=ee({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){if(i&1&&(R(Ze,7,L),R(Je,7,L),R(Xe,7,L)),i&2){let o;g(o=f())&&(l.contentElementRef=o.first),g(o=f())&&(l.scrollElementRef=o.first),g(o=f())&&(l.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",_],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[te,q],ngContentSelectors:Ge,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,l){i&1&&(ce(),w(0,et,2,4,"div",3),m(1,"div",4,0),j(3,"div",null,1),m(5,"div",null,2),de(7),E()(),w(8,tt,2,4,"div",5)),i&2&&(A(l.headerTemplate?0:-1),u(3),B("total-padding",l.virtualScroll),u(2),B("scrollable-content",l.virtualScroll&&l.items.length),u(3),A(l.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0});let n=t;return n})(),Zt=(()=>{let t=class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new W}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275cmp=ee({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",_]},features:[te,q],ngContentSelectors:Ge,decls:1,vars:0,template:function(i,l){i&1&&(ce(),de(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),Jt=(()=>{let t=class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xt=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ke=new Fe("ng-select-selection-model"),yi=(()=>{let t=class t{get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!se(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return p(this._clearSearchOnAdd)?this._clearSearchOnAdd:p(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return p(this._deselectOnClick)?this._deselectOnClick:p(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get dropdownPanelStaticClasses(){return this.appendTo&&this.classes?`ng-dropdown-panel ${this.classes}`:"ng-dropdown-panel"}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,l,o,r,a,x){this.classes=e,this.autoFocus=i,this.config=l,this._cd=a,this._console=x,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=C=>!0,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new v,this.focusEvent=new v,this.changeEvent=new v,this.openEvent=new v,this.closeEvent=new v,this.searchEvent=new v,this.clearEvent=new v,this.addEvent=new v,this.removeEvent=new v,this.scroll=new v,this.scrollToEnd=new v,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=$e(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new W,this._keyPress$=new W,this._onChange=C=>{},this._onTouched=()=>{},this.clearItem=C=>{let S=this.selectedItems.find(H=>H.value===C);this.unselect(S)},this.trackByOption=(C,S)=>this.trackByFn?this.trackByFn(S.value):S,this._mergeGlobalConfig(l),this.itemsList=new pe(this,o()),this.element=r.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=p(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),p(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(O[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case O.ArrowDown:this._handleArrowDown(e);break;case O.ArrowUp:this._handleArrowUp(e);break;case O.Space:this._handleSpace(e);break;case O.Enter:this._handleEnter(e);break;case O.Tab:this._handleTab(e);break;case O.Esc:this.close(),e.preventDefault();break;case O.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case O.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=l=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);Pt(e)?e.then(l=>this.select(i(l))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=p(i)?!Y(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&p(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=l=>{this.items=l.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let l=J(this.ngOptions.changes,this._destroy$);J(...this.ngOptions.map(o=>o.stateChange$)).pipe(N(l)).subscribe(o=>{let r=this.itemsList.findItem(o.value);r.disabled=o.disabled,r.label=o.label||r.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(ve(this.ngOptions),N(this._destroy$)).subscribe(l=>{this.bindLabel=this._defaultLabel,e(l),i()})}_isValidWriteValue(e){if(!p(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=l=>!p(this.compareWith)&&Y(l)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=l=>{let o=this.itemsList.findItem(l);if(o)this.itemsList.select(o);else{let r=Y(l),a=!r&&!this.bindValue;r||a?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:l},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(N(this._destroy$),we(e=>this._pressedKeys.push(e)),Te(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let l of Object.keys(i))e.setAttribute(l,i[l])}_updateNgModel(){let e=[];for(let l of this.selectedItems)if(this.bindValue){let o=null;if(l.children){let r=this.groupValue?this.bindValue:this.groupBy;o=l.value[r||this.groupBy]}else o=this.itemsList.resolveNested(l.value,this.bindValue);e.push(o)}else e.push(l.value);let i=this.selectedItems.map(l=>l.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(p(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=p(this.virtualScroll)?this.virtualScroll:p(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=p(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}};t.\u0275fac=function(i){return new(i||t)(le("class"),le("autofocus"),d(Jt),d(Ke),d(L),d(Re),d(Xt))},t.\u0275cmp=ee({type:t,selectors:[["ng-select"]],contentQueries:function(i,l,o){if(i&1&&(I(o,Nt,5,h),I(o,Rt,5,h),I(o,Ht,5,h),I(o,jt,5,h),I(o,Ut,5,h),I(o,zt,5,h),I(o,Qt,5,h),I(o,Wt,5,h),I(o,Gt,5,h),I(o,qt,5,h),I(o,$t,5,h),I(o,Zt,5)),i&2){let r;g(r=f())&&(l.optionTemplate=r.first),g(r=f())&&(l.optgroupTemplate=r.first),g(r=f())&&(l.labelTemplate=r.first),g(r=f())&&(l.multiLabelTemplate=r.first),g(r=f())&&(l.headerTemplate=r.first),g(r=f())&&(l.footerTemplate=r.first),g(r=f())&&(l.notFoundTemplate=r.first),g(r=f())&&(l.typeToSearchTemplate=r.first),g(r=f())&&(l.loadingTextTemplate=r.first),g(r=f())&&(l.tagTemplate=r.first),g(r=f())&&(l.loadingSpinnerTemplate=r.first),g(r=f())&&(l.ngOptions=r)}},viewQuery:function(i,l){if(i&1&&(R(We,5),R(it,7),R(nt,5)),i&2){let o;g(o=f())&&(l.dropdownPanel=o.first),g(o=f())&&(l.searchInput=o.first),g(o=f())&&(l.clearButton=o.first)}},hostVars:20,hostBindings:function(i,l){i&1&&P("keydown",function(r){return l.handleKeyDown(r)}),i&2&&B("ng-select-typeahead",l.typeahead)("ng-select-multiple",l.multiple)("ng-select-taggable",l.addTag)("ng-select-searchable",l.searchable)("ng-select-clearable",l.clearable)("ng-select-opened",l.isOpen)("ng-select",l.useDefaultClass)("ng-select-disabled",l.disabled)("ng-select-filtered",l.filtered)("ng-select-single",l.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",_],placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",_],closeOnSelect:[2,"closeOnSelect","closeOnSelect",_],hideSelected:[2,"hideSelected","hideSelected",_],selectOnTab:[2,"selectOnTab","selectOnTab",_],openOnEnter:[2,"openOnEnter","openOnEnter",_],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",$],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",$],virtualScroll:[2,"virtualScroll","virtualScroll",_],selectableGroup:[2,"selectableGroup","selectableGroup",_],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",_],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",_],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",$],readonly:[2,"readonly","readonly",_],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",_],minTermLength:[2,"minTermLength","minTermLength",$],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",_],keyDownFn:"keyDownFn",ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",_],addTag:"addTag",searchable:[2,"searchable","searchable",_],clearable:[2,"clearable","clearable",_],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Ve([{provide:ze,useExisting:ye(()=>t),multi:!0},Ye]),te,q],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",3,"class","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,l){if(i&1){let o=U();m(0,"div",9),P("mousedown",function(a){return b(o),T(l.handleMousedown(a))}),m(1,"div",10)(2,"div",11),V(3),E(),w(4,ct,2,0)(5,ht,1,5,null,12),m(6,"div",13)(7,"input",14,0),P("input",function(){b(o);let a=D(8);return T(l.filter(a.value))})("compositionstart",function(){return b(o),T(l.onCompositionStart())})("compositionend",function(){b(o);let a=D(8);return T(l.onCompositionEnd(a.value))})("focus",function(a){return b(o),T(l.onInputFocus(a))})("blur",function(a){return b(o),T(l.onInputBlur(a))})("change",function(a){return b(o),T(a.stopPropagation())}),E()()(),w(9,gt,3,1)(10,ft,4,1,"span",15),m(11,"span",16),j(12,"span",17),E()(),w(13,kt,8,19,"ng-dropdown-panel",18)}i&2&&(B("ng-appearance-outline",l.appearance==="outline")("ng-has-value",l.hasValue),u(3),z(l.placeholder),u(),A((!l.multiLabelTemplate||!l.multiple)&&l.selectedItems.length>0?4:-1),u(),A(l.multiple&&l.multiLabelTemplate&&l.selectedValues.length>0?5:-1),u(),ie("aria-expanded",l.isOpen)("aria-owns",l.isOpen?l.dropdownId:null),u(),y("readOnly",!l.searchable||l.itemsList.maxItemsSelected)("disabled",l.disabled)("value",l.searchTerm?l.searchTerm:""),ie("id",l.labelForId)("tabindex",l.tabIndex)("aria-activedescendant",l.isOpen?l.itemsList==null||l.itemsList.markedItem==null?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen?l.dropdownId:null),u(2),A(l.loading?9:-1),u(),A(l.showClear()?10:-1),u(3),A(l.isOpen?13:-1))},dependencies:[je,he,We,Mt],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0} +import{a as ze}from"./chunk-6RK5MU4O.js";import{b as He,c as je,f as he,i as Ue}from"./chunk-LT3W5FMN.js";import{$a as u,A as J,B as Ce,Ba as L,Bb as re,Bc as Re,C as be,Cb as ae,Da as v,Db as m,Eb as E,F as Te,Fb as j,Gb as Oe,Gc as _,Hb as ke,Hc as $,Ib as ue,Jb as U,Nb as P,Ob as c,Pb as ce,Q as ve,Qb as de,Rb as Le,S as N,Sb as I,T as we,Tb as R,Ub as g,Vb as f,W as ye,Wb as D,X,Xb as V,Y as Se,Yb as z,Zb as Be,_ as Fe,ab as d,bc as Ve,cb as h,dc as Q,eb as Ae,ec as Pe,f as W,fa as ee,fc as Me,ga as Ie,gb as xe,gc as Ne,h as fe,ha as F,i as _e,kc as M,mb as te,pa as q,qa as b,r as Ee,ra as T,rb as w,sb as ie,tb as y,va as le,vb as B,wb as De,xb as oe,y as G,yb as A}from"./chunk-ZKAUCJHV.js";import{a as ge}from"./chunk-DEPBX7UX.js";var Ze=["content"],Je=["scroll"],Xe=["padding"],Ge=["*"],K=n=>({searchTerm:n});function et(n,t){if(n&1&&(m(0,"div",3),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}function tt(n,t){if(n&1&&(m(0,"div",5),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}var it=["searchInput"],nt=["clearButton"],st=(n,t,s)=>({item:n,clear:t,label:s}),lt=(n,t)=>({items:n,clear:t}),ot=(n,t,s,e)=>({item:n,item$:t,index:s,searchTerm:e});function rt(n,t){if(n&1){let s=U();m(0,"span",21),P("click",function(){b(s);let i=c().$implicit,l=c(2);return T(l.unselect(i))}),V(1,"\xD7"),E(),j(2,"span",22)}if(n&2){let s=c().$implicit,e=c(2);u(2),y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function at(n,t){}function ut(n,t){if(n&1&&(m(0,"div",20),w(1,rt,3,2,"ng-template",null,1,M)(3,at,0,0,"ng-template",12),E()),n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-value-disabled",s.disabled),u(3),y("ngTemplateOutlet",i.labelTemplate||e)("ngTemplateOutletContext",Me(4,st,s.value,i.clearItem,s.label))}}function ct(n,t){if(n&1&&re(0,ut,4,8,"div",19,oe().trackByOption,!0),n&2){let s=c();ae(s.selectedItems)}}function dt(n,t){}function ht(n,t){if(n&1&&w(0,dt,0,0,"ng-template",12),n&2){let s=c();y("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",Pe(2,lt,s.selectedValues,s.clearItem))}}function pt(n,t){n&1&&j(0,"div",24)}function mt(n,t){}function gt(n,t){if(n&1&&w(0,pt,1,0,"ng-template",null,2,M)(2,mt,0,0,"ng-template",23),n&2){let s=D(1),e=c();u(2),y("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function ft(n,t){if(n&1&&(m(0,"span",15,3)(2,"span",25),V(3,"\xD7"),E()()),n&2){let s=c();Le("title",s.clearAllText)}}function _t(n,t){if(n&1&&j(0,"span",30),n&2){let s=c().$implicit,e=c(2);y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Et(n,t){}function Ct(n,t){if(n&1){let s=U();m(0,"div",29),P("click",function(){let i=b(s).$implicit,l=c(2);return T(l.toggleItem(i))})("mouseover",function(){let i=b(s).$implicit,l=c(2);return T(l.onItemHover(i))}),w(1,_t,1,2,"ng-template",null,4,M)(3,Et,0,0,"ng-template",12),E()}if(n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),ie("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),u(3),y("ngTemplateOutlet",s.children?i.optgroupTemplate||e:i.optionTemplate||e)("ngTemplateOutletContext",Ne(17,ot,s.value,s,s.index,i.searchTerm))}}function bt(n,t){if(n&1&&(m(0,"span")(1,"span",32),V(2),E(),V(3),E()),n&2){let s=c(3);u(2),z(s.addTagText),u(),Be('"',s.searchTerm,'"')}}function Tt(n,t){}function vt(n,t){if(n&1){let s=U();m(0,"div",31),P("mouseover",function(){b(s);let i=c(2);return T(i.itemsList.unmarkItem())})("click",function(){b(s);let i=c(2);return T(i.selectTag())}),w(1,bt,4,2,"ng-template",null,5,M)(3,Tt,0,0,"ng-template",12),E()}if(n&2){let s=D(2),e=c(2);B("ng-option-marked",!e.itemsList.markedItem),u(3),y("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",Q(4,K,e.searchTerm))}}function wt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.notFoundText)}}function yt(n,t){}function St(n,t){if(n&1&&w(0,wt,2,1,"ng-template",null,6,M)(2,yt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function Ft(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.typeToSearchText)}}function It(n,t){}function At(n,t){if(n&1&&w(0,Ft,2,1,"ng-template",null,7,M)(2,It,0,0,"ng-template",23),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function xt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.loadingText)}}function Dt(n,t){}function Ot(n,t){if(n&1&&w(0,xt,2,1,"ng-template",null,8,M)(2,Dt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function kt(n,t){if(n&1){let s=U();m(0,"ng-dropdown-panel",26),P("update",function(i){b(s);let l=c();return T(l.viewPortItems=i)})("scroll",function(i){b(s);let l=c();return T(l.scroll.emit(i))})("scrollToEnd",function(i){b(s);let l=c();return T(l.scrollToEnd.emit(i))})("outsideClick",function(){b(s);let i=c();return T(i.close())}),Oe(1),re(2,Ct,4,22,"div",27,oe().trackByOption,!0),w(4,vt,4,6,"div",28),ke(),w(5,St,3,4)(6,At,3,1)(7,Ot,3,4),E()}if(n&2){let s=c();De(s.dropdownPanelStaticClasses),B("ng-select-multiple",s.multiple),y("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.ngClass:null)("id",s.dropdownId),u(2),ae(s.viewPortItems),u(2),A(s.showAddTag?4:-1),u(),A(s.showNoItemsFound()?5:-1),u(),A(s.showTypeToSearch()?6:-1),u(),A(s.loading&&s.itemsList.filteredItems.length===0?7:-1)}}var qe=/[&<>"']/g,Lt=RegExp(qe.source),Bt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(n){return n&&Lt.test(n)?n.replace(qe,t=>Bt[t]):n}function p(n){return n!=null}function Y(n){return typeof n=="object"&&p(n)}function Pt(n){return n instanceof Promise}function se(n){return n instanceof Function}var Mt=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275dir=F({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[q]});let n=t;return n})(),Nt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-option-tmp",""]]});let n=t;return n})(),Rt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-optgroup-tmp",""]]});let n=t;return n})(),Ht=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-label-tmp",""]]});let n=t;return n})(),jt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-multi-label-tmp",""]]});let n=t;return n})(),Ut=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-header-tmp",""]]});let n=t;return n})(),zt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-footer-tmp",""]]});let n=t;return n})(),Qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-notfound-tmp",""]]});let n=t;return n})(),Wt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let n=t;return n})(),Gt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let n=t;return n})(),qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-tag-tmp",""]]});let n=t;return n})(),$t=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let n=t;return n})();function $e(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Yt={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function ne(n){let t=s=>Yt[s]||s;return n.replace(/[^\u0000-\u007E]/g,t)}var pe=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&p(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=ne(t).toLocaleLowerCase(),this.filteredItems.find(s=>ne(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:ne(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let i of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(i)){if(e&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;s(t,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(a=>a===o.parent);this._filteredItems.push(r)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!Y(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),i=t;for(let l=0,o=e.length;lthis.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return ne(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let o of t){let r=(o.value[s]||[]).map((a,x)=>this.mapItem(a,x));e.set(o,r)}return e}let i=se(this._ngSelect.groupBy),l=o=>{let r=i?s(o.value):o.value[s];return p(r)?r:void 0};for(let o of t){let r=l(o),a=e.get(r);a?a.push(o):e.set(r,[o])}return e}_flatten(t){let s=se(this._ngSelect.groupBy),e=[];for(let i of Array.from(t.keys())){let l=e.length;if(i===void 0){let S=t.get(void 0)||[];e.push(...S.map(H=>(H.index=l++,H)));continue}let o=Y(i),r={label:o?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:$e()},a=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,x=this._ngSelect.groupValue||(()=>o?i.value:{[a]:i}),C=t.get(i).map(S=>(S.parent=r,S.children=void 0,S.index=l++,S));r.children=C,r.value=x(i,C.map(S=>S.value)),e.push(r),e.push(...C)}return e}},O=function(n){return n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Esc=27]="Esc",n[n.Space=32]="Space",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowDown=40]="ArrowDown",n[n.Backspace=8]="Backspace",n}(O||{}),Ye=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){let o=this._dimensions,r=o.itemHeight*i,x=Math.max(0,e)/r*i,C=Math.min(i,Math.ceil(x)+(o.itemsPerViewport+1)),H=Math.max(0,C-o.itemsPerViewport),k=Math.min(H,Math.floor(x)),Z=o.itemHeight*Math.ceil(k)-o.itemHeight*Math.min(k,l);return Z=isNaN(Z)?0:Z,k=isNaN(k)?-1:k,C=isNaN(C)?-1:C,k-=l,k=Math.max(0,k),C+=l,C=Math.min(i,C),{topPadding:Z,scrollHeight:r,start:k,end:C}}setDimensions(e,i){let l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){let{panelHeight:o}=this.dimensions,r=e+i,a=l,x=a+o;return o>=r&&l===e?null:r>x?a+r-x:e<=a?e:null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac});let n=t;return n})(),Qe=["top","right","bottom","left"],Kt=typeof requestAnimationFrame<"u"?_e:fe,We=(()=>{let t=class t{constructor(e,i,l,o,r){this._renderer=e,this._zone=i,this._panelService=l,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new v,this.scroll=new v,this.scrollToEnd=new v,this.outsideClick=new v,this._destroy$=new W,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem.index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let l=this.items.indexOf(e);if(l<0||l>=this.itemsLength)return;let o;if(this.virtualScroll){let r=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(l*r,r,this._lastScrollPosition)}else{let r=this._dropdown.querySelector(`#${e.htmlId}`),a=i?r.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(r.offsetTop,r.clientHeight,a)}p(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Qe.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Qe.forEach(l=>{let o=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{G(this.scrollElementRef.nativeElement,"scroll").pipe(N(this._destroy$),be(0,Kt)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let l=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(l)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{J(G(this._document,"touchstart",{capture:!0}),G(this._document,"click",{capture:!0})).pipe(N(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),p(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${l*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(l,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),l=document.documentElement.scrollTop||document.body.scrollTop,o=i.top+window.pageYOffset,r=i.height,a=e.getBoundingClientRect().height;return o+r+a>l+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.left-i.left;this._dropdown.style.left=l+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.height;if(this._currentPosition==="top"){let o=i.bottom-e.bottom;this._dropdown.style.bottom=o+l+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-i.top;this._dropdown.style.top=o+l+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{G(this._dropdown,"mousedown").pipe(N(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(i){return new(i||t)(d(Ae),d(xe),d(Ye),d(L),d(He,8))},t.\u0275cmp=ee({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){if(i&1&&(R(Ze,7,L),R(Je,7,L),R(Xe,7,L)),i&2){let o;g(o=f())&&(l.contentElementRef=o.first),g(o=f())&&(l.scrollElementRef=o.first),g(o=f())&&(l.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",_],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[te,q],ngContentSelectors:Ge,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,l){i&1&&(ce(),w(0,et,2,4,"div",3),m(1,"div",4,0),j(3,"div",null,1),m(5,"div",null,2),de(7),E()(),w(8,tt,2,4,"div",5)),i&2&&(A(l.headerTemplate?0:-1),u(3),B("total-padding",l.virtualScroll),u(2),B("scrollable-content",l.virtualScroll&&l.items.length),u(3),A(l.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0});let n=t;return n})(),Zt=(()=>{let t=class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new W}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275cmp=ee({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",_]},features:[te,q],ngContentSelectors:Ge,decls:1,vars:0,template:function(i,l){i&1&&(ce(),de(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),Jt=(()=>{let t=class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xt=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ke=new Fe("ng-select-selection-model"),yi=(()=>{let t=class t{get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!se(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return p(this._clearSearchOnAdd)?this._clearSearchOnAdd:p(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return p(this._deselectOnClick)?this._deselectOnClick:p(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get dropdownPanelStaticClasses(){return this.appendTo&&this.classes?`ng-dropdown-panel ${this.classes}`:"ng-dropdown-panel"}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,l,o,r,a,x){this.classes=e,this.autoFocus=i,this.config=l,this._cd=a,this._console=x,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=C=>!0,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new v,this.focusEvent=new v,this.changeEvent=new v,this.openEvent=new v,this.closeEvent=new v,this.searchEvent=new v,this.clearEvent=new v,this.addEvent=new v,this.removeEvent=new v,this.scroll=new v,this.scrollToEnd=new v,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=$e(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new W,this._keyPress$=new W,this._onChange=C=>{},this._onTouched=()=>{},this.clearItem=C=>{let S=this.selectedItems.find(H=>H.value===C);this.unselect(S)},this.trackByOption=(C,S)=>this.trackByFn?this.trackByFn(S.value):S,this._mergeGlobalConfig(l),this.itemsList=new pe(this,o()),this.element=r.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=p(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),p(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(O[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case O.ArrowDown:this._handleArrowDown(e);break;case O.ArrowUp:this._handleArrowUp(e);break;case O.Space:this._handleSpace(e);break;case O.Enter:this._handleEnter(e);break;case O.Tab:this._handleTab(e);break;case O.Esc:this.close(),e.preventDefault();break;case O.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case O.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=l=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);Pt(e)?e.then(l=>this.select(i(l))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=p(i)?!Y(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&p(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=l=>{this.items=l.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let l=J(this.ngOptions.changes,this._destroy$);J(...this.ngOptions.map(o=>o.stateChange$)).pipe(N(l)).subscribe(o=>{let r=this.itemsList.findItem(o.value);r.disabled=o.disabled,r.label=o.label||r.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(ve(this.ngOptions),N(this._destroy$)).subscribe(l=>{this.bindLabel=this._defaultLabel,e(l),i()})}_isValidWriteValue(e){if(!p(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=l=>!p(this.compareWith)&&Y(l)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=l=>{let o=this.itemsList.findItem(l);if(o)this.itemsList.select(o);else{let r=Y(l),a=!r&&!this.bindValue;r||a?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:l},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(N(this._destroy$),we(e=>this._pressedKeys.push(e)),Te(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let l of Object.keys(i))e.setAttribute(l,i[l])}_updateNgModel(){let e=[];for(let l of this.selectedItems)if(this.bindValue){let o=null;if(l.children){let r=this.groupValue?this.bindValue:this.groupBy;o=l.value[r||this.groupBy]}else o=this.itemsList.resolveNested(l.value,this.bindValue);e.push(o)}else e.push(l.value);let i=this.selectedItems.map(l=>l.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(p(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=p(this.virtualScroll)?this.virtualScroll:p(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=p(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}};t.\u0275fac=function(i){return new(i||t)(le("class"),le("autofocus"),d(Jt),d(Ke),d(L),d(Re),d(Xt))},t.\u0275cmp=ee({type:t,selectors:[["ng-select"]],contentQueries:function(i,l,o){if(i&1&&(I(o,Nt,5,h),I(o,Rt,5,h),I(o,Ht,5,h),I(o,jt,5,h),I(o,Ut,5,h),I(o,zt,5,h),I(o,Qt,5,h),I(o,Wt,5,h),I(o,Gt,5,h),I(o,qt,5,h),I(o,$t,5,h),I(o,Zt,5)),i&2){let r;g(r=f())&&(l.optionTemplate=r.first),g(r=f())&&(l.optgroupTemplate=r.first),g(r=f())&&(l.labelTemplate=r.first),g(r=f())&&(l.multiLabelTemplate=r.first),g(r=f())&&(l.headerTemplate=r.first),g(r=f())&&(l.footerTemplate=r.first),g(r=f())&&(l.notFoundTemplate=r.first),g(r=f())&&(l.typeToSearchTemplate=r.first),g(r=f())&&(l.loadingTextTemplate=r.first),g(r=f())&&(l.tagTemplate=r.first),g(r=f())&&(l.loadingSpinnerTemplate=r.first),g(r=f())&&(l.ngOptions=r)}},viewQuery:function(i,l){if(i&1&&(R(We,5),R(it,7),R(nt,5)),i&2){let o;g(o=f())&&(l.dropdownPanel=o.first),g(o=f())&&(l.searchInput=o.first),g(o=f())&&(l.clearButton=o.first)}},hostVars:20,hostBindings:function(i,l){i&1&&P("keydown",function(r){return l.handleKeyDown(r)}),i&2&&B("ng-select-typeahead",l.typeahead)("ng-select-multiple",l.multiple)("ng-select-taggable",l.addTag)("ng-select-searchable",l.searchable)("ng-select-clearable",l.clearable)("ng-select-opened",l.isOpen)("ng-select",l.useDefaultClass)("ng-select-disabled",l.disabled)("ng-select-filtered",l.filtered)("ng-select-single",l.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",_],placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",_],closeOnSelect:[2,"closeOnSelect","closeOnSelect",_],hideSelected:[2,"hideSelected","hideSelected",_],selectOnTab:[2,"selectOnTab","selectOnTab",_],openOnEnter:[2,"openOnEnter","openOnEnter",_],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",$],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",$],virtualScroll:[2,"virtualScroll","virtualScroll",_],selectableGroup:[2,"selectableGroup","selectableGroup",_],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",_],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",_],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",$],readonly:[2,"readonly","readonly",_],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",_],minTermLength:[2,"minTermLength","minTermLength",$],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",_],keyDownFn:"keyDownFn",ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",_],addTag:"addTag",searchable:[2,"searchable","searchable",_],clearable:[2,"clearable","clearable",_],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Ve([{provide:ze,useExisting:ye(()=>t),multi:!0},Ye]),te,q],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",3,"class","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,l){if(i&1){let o=U();m(0,"div",9),P("mousedown",function(a){return b(o),T(l.handleMousedown(a))}),m(1,"div",10)(2,"div",11),V(3),E(),w(4,ct,2,0)(5,ht,1,5,null,12),m(6,"div",13)(7,"input",14,0),P("input",function(){b(o);let a=D(8);return T(l.filter(a.value))})("compositionstart",function(){return b(o),T(l.onCompositionStart())})("compositionend",function(){b(o);let a=D(8);return T(l.onCompositionEnd(a.value))})("focus",function(a){return b(o),T(l.onInputFocus(a))})("blur",function(a){return b(o),T(l.onInputBlur(a))})("change",function(a){return b(o),T(a.stopPropagation())}),E()()(),w(9,gt,3,1)(10,ft,4,1,"span",15),m(11,"span",16),j(12,"span",17),E()(),w(13,kt,8,19,"ng-dropdown-panel",18)}i&2&&(B("ng-appearance-outline",l.appearance==="outline")("ng-has-value",l.hasValue),u(3),z(l.placeholder),u(),A((!l.multiLabelTemplate||!l.multiple)&&l.selectedItems.length>0?4:-1),u(),A(l.multiple&&l.multiLabelTemplate&&l.selectedValues.length>0?5:-1),u(),ie("aria-expanded",l.isOpen)("aria-owns",l.isOpen?l.dropdownId:null),u(),y("readOnly",!l.searchable||l.itemsList.maxItemsSelected)("disabled",l.disabled)("value",l.searchTerm?l.searchTerm:""),ie("id",l.labelForId)("tabindex",l.tabIndex)("aria-activedescendant",l.isOpen?l.itemsList==null||l.itemsList.markedItem==null?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen?l.dropdownId:null),u(2),A(l.loading?9:-1),u(),A(l.showClear()?10:-1),u(3),A(l.isOpen?13:-1))},dependencies:[je,he,We,Mt],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0} `],encapsulation:2,changeDetection:0});let n=t;return n})();function ei(){return new me}var me=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,s,e){if(t.selected=!0,(!t.children||!s&&e)&&this._selected.push(t),s)if(t.parent){let i=t.parent.children.length,l=t.parent.children.filter(o=>o.selected).length;t.parent.selected=i===l}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),e&&this._activeChildren(t)?this._selected=[...this._selected.filter(i=>i.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(i=>!i.disabled)])}unselect(t,s){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,s)if(t.parent&&t.parent.selected){let e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(i=>i!==t&&!i.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(t,s){for(let e of t)e.disabled||(e.selected=s)}_removeChildren(t){this._selected=[...this._selected.filter(s=>s.parent!==t),...t.children.filter(s=>s.parent===t&&s.disabled&&s.selected)]}_removeParent(t){this._selected=this._selected.filter(s=>s!==t)}_activeChildren(t){return t.children.every(s=>!s.disabled||s.selected)}},Si=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=Se({providers:[{provide:Ke,useValue:ei}],imports:[Ue]});let n=t;return n})();export{yi as a,Si as b}; diff --git a/dist/chunk-7JDU6VT7.js b/dist/chunk-VLXUGY6P.js similarity index 98% rename from dist/chunk-7JDU6VT7.js rename to dist/chunk-VLXUGY6P.js index 0142f7a..f13d8ef 100644 --- a/dist/chunk-7JDU6VT7.js +++ b/dist/chunk-VLXUGY6P.js @@ -1 +1 @@ -import{b as I,d as P,e as V,j as z}from"./chunk-LPXDHCFD.js";import{I as D,J as E}from"./chunk-B2BNZRWN.js";import{$a as o,$b as u,Db as p,Eb as n,Fb as O,Jb as T,Nb as b,Ob as s,Xb as g,Yb as x,_b as f,ab as C,ac as _,cc as k,fa as v,pa as w,qa as d,ra as h,rb as y,tb as F,vb as M,yb as S}from"./chunk-ZKAUCJHV.js";function B(m,l){if(m&1){let r=T();p(0,"label")(1,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.denyResize,e)||(t.denyResize=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(2,"Deny widget resizing"),n(),p(3,"label")(4,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.denyMove,e)||(t.denyMove=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(5,"Deny widget moving"),n(),p(6,"label")(7,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.preventFilters,e)||(t.preventFilters=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(8,"Ignore filters"),n()}if(m&2){let r=s();o(),f("ngModel",r.denyResize),o(3),f("ngModel",r.denyMove),o(3),f("ngModel",r.preventFilters)}}var A=(()=>{let l=class l{constructor(i,e){this.us=i,this.ss=e,this.title="Share dashboard",this.btnTitle="Copy link",this.shareUrl="",this.isSmall=!1,this.hideOptions=!1,this.isCopied=!1,this.asBase64=!1,this.denyResize=!1,this.denyMove=!1,this.preventFilters=!1,this.url="",this.onCopy=()=>{},this.asBase64=this.ss.storage.getItem("dsw-share-format-base64")==="1",this.denyResize=this.ss.storage.getItem("dsw-share-format-denyResize")==="1",this.denyMove=this.ss.storage.getItem("dsw-share-format-denyMove")==="1",this.preventFilters=this.ss.storage.getItem("dsw-share-format-preventFilters")==="1"}ngOnInit(){this.convertLink()}ngOnChanges(i){i.shareUrl&&i.shareUrl.previousValue!==i.shareUrl.currentValue&&this.convertLink()}onCopyClick(){this.us.copyToClipboard(this.url),this.isCopied=!0,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isCopied=!1},2e3),this.onCopy()}ngOnDestroy(){clearTimeout(this.timeout)}onFormatChange(){this.ss.storage.setItem("dsw-share-format-base64",this.asBase64?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyMove",this.denyMove?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyResize",this.denyResize?"1":"0"),this.ss.storage.setItem("dsw-share-format-preventFilters",this.preventFilters?"1":"0"),this.convertLink()}convertLink(){this.url=this.shareUrl;let i=this.shareUrl.split("?"),e=i[1];if(!e)return;let t=e.split("&");t=t.map(c=>{let a=c.split("=");return a[0]==="FILTERS"?(this.asBase64&&(a[1]=encodeURIComponent(btoa(a[1]))),this.preventFilters?"":a.join("=")):c}),this.denyMove&&t.push("nodrag=1"),this.denyResize&&t.push("noresize=1"),this.preventFilters&&t.push("nofilters=1"),i[1]=t.filter(c=>!!c).join("&"),this.url=i.join("?")}};l.\u0275fac=function(e){return new(e||l)(C(D),C(E))},l.\u0275cmp=v({type:l,selectors:[["dsw-share-dashboard"]],inputs:{title:"title",btnTitle:"btnTitle",shareUrl:"shareUrl",isSmall:"isSmall",hideOptions:"hideOptions",_modal:"_modal"},standalone:!0,features:[w,k],decls:10,vars:7,consts:[["type","text",3,"value"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"btn",3,"click"]],template:function(e,t){e&1&&(p(0,"div")(1,"p"),g(2),n(),O(3,"textarea",0),p(4,"label")(5,"input",1),_("ngModelChange",function(a){return u(t.asBase64,a)||(t.asBase64=a),a}),b("change",function(){return t.onFormatChange()}),n(),g(6,"Filters as Base64"),n(),y(7,B,9,3),p(8,"button",2),b("click",function(){return t.onCopyClick()}),g(9),n()()),e&2&&(o(2),x(t.title),o(),M("small",t.isSmall),F("value",t.url),o(2),f("ngModel",t.asBase64),o(2),S(t.hideOptions?-1:7),o(2),x(t.isCopied?"Copied!":t.btnTitle))},dependencies:[z,I,P,V],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{z-index:4;text-align:left;padding:20px}div[_ngcontent-%COMP%]{background:#fff;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}p[_ngcontent-%COMP%]{font-family:Oxygen;font-weight:500;font-size:14px;line-height:16px;color:var(--cl-header-txt);margin-top:0;margin-bottom:20px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin-bottom:10px;min-width:200px;color:var(--cl-header-txt);font-size:12px;line-height:14px}textarea[_ngcontent-%COMP%]{min-height:120px}textarea.small[_ngcontent-%COMP%]{min-height:80px}button[_ngcontent-%COMP%]{width:100%}input[_ngcontent-%COMP%]{min-width:16px;width:16px;display:inline-block;margin:0 4px 0 0;vertical-align:bottom}label[_ngcontent-%COMP%]{display:block;margin-bottom:10px;font-weight:400}"],changeDetection:0});let m=l;return m})();export{A as a}; +import{b as I,d as P,e as V,j as z}from"./chunk-6RK5MU4O.js";import{I as D,J as E}from"./chunk-LT3W5FMN.js";import{$a as o,$b as u,Db as p,Eb as n,Fb as O,Jb as T,Nb as b,Ob as s,Xb as g,Yb as x,_b as f,ab as C,ac as _,cc as k,fa as v,pa as w,qa as d,ra as h,rb as y,tb as F,vb as M,yb as S}from"./chunk-ZKAUCJHV.js";function B(m,l){if(m&1){let r=T();p(0,"label")(1,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.denyResize,e)||(t.denyResize=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(2,"Deny widget resizing"),n(),p(3,"label")(4,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.denyMove,e)||(t.denyMove=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(5,"Deny widget moving"),n(),p(6,"label")(7,"input",1),_("ngModelChange",function(e){d(r);let t=s();return u(t.preventFilters,e)||(t.preventFilters=e),h(e)}),b("change",function(){d(r);let e=s();return h(e.onFormatChange())}),n(),g(8,"Ignore filters"),n()}if(m&2){let r=s();o(),f("ngModel",r.denyResize),o(3),f("ngModel",r.denyMove),o(3),f("ngModel",r.preventFilters)}}var A=(()=>{let l=class l{constructor(i,e){this.us=i,this.ss=e,this.title="Share dashboard",this.btnTitle="Copy link",this.shareUrl="",this.isSmall=!1,this.hideOptions=!1,this.isCopied=!1,this.asBase64=!1,this.denyResize=!1,this.denyMove=!1,this.preventFilters=!1,this.url="",this.onCopy=()=>{},this.asBase64=this.ss.storage.getItem("dsw-share-format-base64")==="1",this.denyResize=this.ss.storage.getItem("dsw-share-format-denyResize")==="1",this.denyMove=this.ss.storage.getItem("dsw-share-format-denyMove")==="1",this.preventFilters=this.ss.storage.getItem("dsw-share-format-preventFilters")==="1"}ngOnInit(){this.convertLink()}ngOnChanges(i){i.shareUrl&&i.shareUrl.previousValue!==i.shareUrl.currentValue&&this.convertLink()}onCopyClick(){this.us.copyToClipboard(this.url),this.isCopied=!0,clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.isCopied=!1},2e3),this.onCopy()}ngOnDestroy(){clearTimeout(this.timeout)}onFormatChange(){this.ss.storage.setItem("dsw-share-format-base64",this.asBase64?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyMove",this.denyMove?"1":"0"),this.ss.storage.setItem("dsw-share-format-denyResize",this.denyResize?"1":"0"),this.ss.storage.setItem("dsw-share-format-preventFilters",this.preventFilters?"1":"0"),this.convertLink()}convertLink(){this.url=this.shareUrl;let i=this.shareUrl.split("?"),e=i[1];if(!e)return;let t=e.split("&");t=t.map(c=>{let a=c.split("=");return a[0]==="FILTERS"?(this.asBase64&&(a[1]=encodeURIComponent(btoa(a[1]))),this.preventFilters?"":a.join("=")):c}),this.denyMove&&t.push("nodrag=1"),this.denyResize&&t.push("noresize=1"),this.preventFilters&&t.push("nofilters=1"),i[1]=t.filter(c=>!!c).join("&"),this.url=i.join("?")}};l.\u0275fac=function(e){return new(e||l)(C(D),C(E))},l.\u0275cmp=v({type:l,selectors:[["dsw-share-dashboard"]],inputs:{title:"title",btnTitle:"btnTitle",shareUrl:"shareUrl",isSmall:"isSmall",hideOptions:"hideOptions",_modal:"_modal"},standalone:!0,features:[w,k],decls:10,vars:7,consts:[["type","text",3,"value"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"btn",3,"click"]],template:function(e,t){e&1&&(p(0,"div")(1,"p"),g(2),n(),O(3,"textarea",0),p(4,"label")(5,"input",1),_("ngModelChange",function(a){return u(t.asBase64,a)||(t.asBase64=a),a}),b("change",function(){return t.onFormatChange()}),n(),g(6,"Filters as Base64"),n(),y(7,B,9,3),p(8,"button",2),b("click",function(){return t.onCopyClick()}),g(9),n()()),e&2&&(o(2),x(t.title),o(),M("small",t.isSmall),F("value",t.url),o(2),f("ngModel",t.asBase64),o(2),S(t.hideOptions?-1:7),o(2),x(t.isCopied?"Copied!":t.btnTitle))},dependencies:[z,I,P,V],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{z-index:4;text-align:left;padding:20px}div[_ngcontent-%COMP%]{background:#fff;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}p[_ngcontent-%COMP%]{font-family:Oxygen;font-weight:500;font-size:14px;line-height:16px;color:var(--cl-header-txt);margin-top:0;margin-bottom:20px}input[_ngcontent-%COMP%], textarea[_ngcontent-%COMP%]{margin-bottom:10px;min-width:200px;color:var(--cl-header-txt);font-size:12px;line-height:14px}textarea[_ngcontent-%COMP%]{min-height:120px}textarea.small[_ngcontent-%COMP%]{min-height:80px}button[_ngcontent-%COMP%]{width:100%}input[_ngcontent-%COMP%]{min-width:16px;width:16px;display:inline-block;margin:0 4px 0 0;vertical-align:bottom}label[_ngcontent-%COMP%]{display:block;margin-bottom:10px;font-weight:400}"],changeDetection:0});let m=l;return m})();export{A as a}; diff --git a/dist/chunk-74DGA4QX.js b/dist/chunk-X265IDBJ.js similarity index 94% rename from dist/chunk-74DGA4QX.js rename to dist/chunk-X265IDBJ.js index d038a24..b453295 100644 --- a/dist/chunk-74DGA4QX.js +++ b/dist/chunk-X265IDBJ.js @@ -1 +1 @@ -import{a as B}from"./chunk-PBNT6RE2.js";import{a as I}from"./chunk-QEASB5VU.js";import{h as R}from"./chunk-FHZVEBZY.js";import"./chunk-V6EVLSKF.js";import"./chunk-L76GKDA2.js";import"./chunk-W7AFIDCE.js";import"./chunk-54YLOEMX.js";import"./chunk-WYNQ5JHX.js";import"./chunk-EB65ROO7.js";import"./chunk-EAEBZZLM.js";import"./chunk-6QFXSLJK.js";import{a as T}from"./chunk-RNWIIYZZ.js";import{a as E}from"./chunk-SUAWKU6Z.js";import"./chunk-7Z57W26K.js";import{b as F,d as O,e as A,j as k}from"./chunk-LPXDHCFD.js";import{D as v,E as x,I as y,J as M,K as P}from"./chunk-B2BNZRWN.js";import{$a as l,$b as u,Db as o,Eb as a,Nb as h,Xb as s,Yb as b,Zb as _,_b as m,ab as g,ac as f,cc as w,fa as S,hc as c,ic as d}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";var Q=(()=>{let p=class p{constructor(r,n,e,i,t){this.sbs=r,this.ss=n,this.us=e,this.modal=i,this.i18n=t,this.settings=this.ss.getAppSettings(),this.model={isSaveFilters:this.settings.isSaveFilters===void 0?!0:this.settings.isSaveFilters,isRelatedFilters:this.settings.isRelatedFilters===void 0?!0:this.settings.isRelatedFilters,isTilePushDisabled:!!this.settings.isTilePushDisabled,colCount:this.settings.colCount||R}}ngOnInit(){}onCancel(){this.sbs.hide()}onApply(){this.applySettings(),this.sbs.hide()}readSettings(r){let n=r.target.files[0];if(!n)return;let e=new FileReader;e.onload=i=>{let t=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(i.target.result)));this.ss.setAllSettings(t),this.ss.onSettingsChanged.emit(this.ss.getAppSettings()),this.sbs.hide(),this.modal.show(this.i18n.get("settingsImported"),()=>{window.location.reload()})},e.readAsArrayBuffer(n)}exportSettings(){let r=P+"."+new Date().toLocaleDateString()+".json",n=JSON.stringify(this.ss.getAllSettings());this.downloadFile(r,n)}resetSettings(){let r=n=>{delete n.userSettings,this.modal.show(this.i18n.get("settingsReset"),()=>{window.location.reload()})};r(sessionStorage);try{r(localStorage)}catch{}}applySettings(){this.settings.isSaveFilters=!!this.model.isSaveFilters,this.settings.isRelatedFilters=!!this.model.isRelatedFilters,this.settings.isTilePushDisabled=!!this.model.isTilePushDisabled,this.settings.colCount=this.model.colCount,this.ss.onSettingsChanged.emit(this.settings),this.ss.setAppSettings(this.settings)}downloadFile(r,n){let e=document.createElement("a");e.style.setProperty("display","none"),e.download=r;let i=new Blob([n],{type:"application/octet-stream"}),t=window.URL.createObjectURL(i);e.href=t,document.body.appendChild(e),e.click(),setTimeout(D=>{document.body.removeChild(e),window.URL.revokeObjectURL(t)},100)}};p.\u0275fac=function(n){return new(n||p)(g(E),g(M),g(y),g(T),g(x))},p.\u0275cmp=S({type:p,selectors:[["dsw-app-settings"]],standalone:!0,features:[w],decls:30,vars:25,consts:[[3,"cancel","apply"],[1,"container"],["type","number",3,"ngModelChange","ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],["type","file","enctype","multipart/form-data",3,"change"],[1,"actions"],[1,"btn",3,"click"]],template:function(n,e){n&1&&(o(0,"dsw-sidebar-actions",0),h("cancel",function(){return e.onCancel()})("apply",function(){return e.onApply()}),s(1,"Settings"),a(),o(2,"div",1)(3,"label"),s(4),c(5,"i18n"),a(),o(6,"dsw-input",2),f("ngModelChange",function(t){return u(e.model.colCount,t)||(e.model.colCount=t),t}),a(),o(7,"label"),s(8),c(9,"i18n"),o(10,"input",3),f("ngModelChange",function(t){return u(e.model.isSaveFilters,t)||(e.model.isSaveFilters=t),t}),a()(),o(11,"label"),s(12),c(13,"i18n"),o(14,"input",3),f("ngModelChange",function(t){return u(e.model.isRelatedFilters,t)||(e.model.isRelatedFilters=t),t}),a()(),o(15,"label"),s(16),c(17,"i18n"),o(18,"input",3),f("ngModelChange",function(t){return u(e.model.isTilePushDisabled,t)||(e.model.isTilePushDisabled=t),t}),a()(),o(19,"label"),s(20),c(21,"i18n"),a(),o(22,"input",4),h("change",function(t){return e.readSettings(t)}),a(),o(23,"div",5)(24,"button",6),h("click",function(){return e.resetSettings()}),s(25),c(26,"i18n"),a(),o(27,"button",6),h("click",function(){return e.exportSettings()}),s(28),c(29,"i18n"),a()()()),n&2&&(l(4),b(d(5,11,"dashColumns")),l(2),m("ngModel",e.model.colCount),l(2),_("",d(9,13,"saveFilters")," "),l(2),m("ngModel",e.model.isSaveFilters),l(2),_("",d(13,15,"relatedFilters")," "),l(2),m("ngModel",e.model.isRelatedFilters),l(2),_("",d(17,17,"disableTilePush")," "),l(2),m("ngModel",e.model.isTilePushDisabled),l(2),b(d(21,19,"importSettings")),l(5),b(d(26,21,"resetSettings")),l(3),b(d(29,23,"exportSettings")))},dependencies:[I,B,k,F,O,A,v],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}",".actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px;margin-bottom:10px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-right:5px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:last-child{margin-left:5px}"]});let C=p;return C})();export{Q as AppSettingsComponent}; +import{a as B}from"./chunk-EM2NUV7J.js";import{a as I}from"./chunk-BNUZIG4N.js";import{h as R}from"./chunk-OK3AR2TD.js";import"./chunk-V6EVLSKF.js";import"./chunk-JE2DBAFS.js";import"./chunk-W7AFIDCE.js";import"./chunk-54YLOEMX.js";import"./chunk-4E6RZBBM.js";import"./chunk-EB65ROO7.js";import"./chunk-EAEBZZLM.js";import"./chunk-QWH4BMSJ.js";import{a as T}from"./chunk-RNWIIYZZ.js";import{a as E}from"./chunk-SUAWKU6Z.js";import"./chunk-ZXTET2VA.js";import{b as F,d as O,e as A,j as k}from"./chunk-6RK5MU4O.js";import{D as v,E as x,I as y,J as M,K as P}from"./chunk-LT3W5FMN.js";import{$a as l,$b as u,Db as o,Eb as a,Nb as h,Xb as s,Yb as b,Zb as _,_b as m,ab as g,ac as f,cc as w,fa as S,hc as c,ic as d}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";var Q=(()=>{let p=class p{constructor(r,n,e,i,t){this.sbs=r,this.ss=n,this.us=e,this.modal=i,this.i18n=t,this.settings=this.ss.getAppSettings(),this.model={isSaveFilters:this.settings.isSaveFilters===void 0?!0:this.settings.isSaveFilters,isRelatedFilters:this.settings.isRelatedFilters===void 0?!0:this.settings.isRelatedFilters,isTilePushDisabled:!!this.settings.isTilePushDisabled,colCount:this.settings.colCount||R}}ngOnInit(){}onCancel(){this.sbs.hide()}onApply(){this.applySettings(),this.sbs.hide()}readSettings(r){let n=r.target.files[0];if(!n)return;let e=new FileReader;e.onload=i=>{let t=JSON.parse(String.fromCharCode.apply(null,new Uint8Array(i.target.result)));this.ss.setAllSettings(t),this.ss.onSettingsChanged.emit(this.ss.getAppSettings()),this.sbs.hide(),this.modal.show(this.i18n.get("settingsImported"),()=>{window.location.reload()})},e.readAsArrayBuffer(n)}exportSettings(){let r=P+"."+new Date().toLocaleDateString()+".json",n=JSON.stringify(this.ss.getAllSettings());this.downloadFile(r,n)}resetSettings(){let r=n=>{delete n.userSettings,this.modal.show(this.i18n.get("settingsReset"),()=>{window.location.reload()})};r(sessionStorage);try{r(localStorage)}catch{}}applySettings(){this.settings.isSaveFilters=!!this.model.isSaveFilters,this.settings.isRelatedFilters=!!this.model.isRelatedFilters,this.settings.isTilePushDisabled=!!this.model.isTilePushDisabled,this.settings.colCount=this.model.colCount,this.ss.onSettingsChanged.emit(this.settings),this.ss.setAppSettings(this.settings)}downloadFile(r,n){let e=document.createElement("a");e.style.setProperty("display","none"),e.download=r;let i=new Blob([n],{type:"application/octet-stream"}),t=window.URL.createObjectURL(i);e.href=t,document.body.appendChild(e),e.click(),setTimeout(D=>{document.body.removeChild(e),window.URL.revokeObjectURL(t)},100)}};p.\u0275fac=function(n){return new(n||p)(g(E),g(M),g(y),g(T),g(x))},p.\u0275cmp=S({type:p,selectors:[["dsw-app-settings"]],standalone:!0,features:[w],decls:30,vars:25,consts:[[3,"cancel","apply"],[1,"container"],["type","number",3,"ngModelChange","ngModel"],["type","checkbox",3,"ngModelChange","ngModel"],["type","file","enctype","multipart/form-data",3,"change"],[1,"actions"],[1,"btn",3,"click"]],template:function(n,e){n&1&&(o(0,"dsw-sidebar-actions",0),h("cancel",function(){return e.onCancel()})("apply",function(){return e.onApply()}),s(1,"Settings"),a(),o(2,"div",1)(3,"label"),s(4),c(5,"i18n"),a(),o(6,"dsw-input",2),f("ngModelChange",function(t){return u(e.model.colCount,t)||(e.model.colCount=t),t}),a(),o(7,"label"),s(8),c(9,"i18n"),o(10,"input",3),f("ngModelChange",function(t){return u(e.model.isSaveFilters,t)||(e.model.isSaveFilters=t),t}),a()(),o(11,"label"),s(12),c(13,"i18n"),o(14,"input",3),f("ngModelChange",function(t){return u(e.model.isRelatedFilters,t)||(e.model.isRelatedFilters=t),t}),a()(),o(15,"label"),s(16),c(17,"i18n"),o(18,"input",3),f("ngModelChange",function(t){return u(e.model.isTilePushDisabled,t)||(e.model.isTilePushDisabled=t),t}),a()(),o(19,"label"),s(20),c(21,"i18n"),a(),o(22,"input",4),h("change",function(t){return e.readSettings(t)}),a(),o(23,"div",5)(24,"button",6),h("click",function(){return e.resetSettings()}),s(25),c(26,"i18n"),a(),o(27,"button",6),h("click",function(){return e.exportSettings()}),s(28),c(29,"i18n"),a()()()),n&2&&(l(4),b(d(5,11,"dashColumns")),l(2),m("ngModel",e.model.colCount),l(2),_("",d(9,13,"saveFilters")," "),l(2),m("ngModel",e.model.isSaveFilters),l(2),_("",d(13,15,"relatedFilters")," "),l(2),m("ngModel",e.model.isRelatedFilters),l(2),_("",d(17,17,"disableTilePush")," "),l(2),m("ngModel",e.model.isTilePushDisabled),l(2),b(d(21,19,"importSettings")),l(5),b(d(26,21,"resetSettings")),l(3),b(d(29,23,"exportSettings")))},dependencies:[I,B,k,F,O,A,v],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}",".actions[_ngcontent-%COMP%]{display:flex;justify-content:space-between;margin-top:20px;margin-bottom:10px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:first-child{margin-right:5px}.actions[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]:last-child{margin-left:5px}"]});let C=p;return C})();export{Q as AppSettingsComponent}; diff --git a/dist/chunk-G2SG73M6.js b/dist/chunk-XMI7PNZQ.js similarity index 94% rename from dist/chunk-G2SG73M6.js rename to dist/chunk-XMI7PNZQ.js index cc642a2..1af0a45 100644 --- a/dist/chunk-G2SG73M6.js +++ b/dist/chunk-XMI7PNZQ.js @@ -1 +1 @@ -import{a as h}from"./chunk-SUAWKU6Z.js";import{Db as t,Eb as n,Fb as i,Nb as r,Xb as c,ab as p,cc as b,fa as g}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";var u=(()=>{let e=class e{constructor(l){this.sbs=l}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:import("./chunk-2Q4ZQRSR.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-74DGA4QX.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-XKBPBU2N.js")})}};e.\u0275fac=function(a){return new(a||e)(p(h))},e.\u0275cmp=g({type:e,selectors:[["dsw-menu-settings"]],standalone:!0,features:[b],decls:10,vars:0,consts:[[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/palette-icon.svg"],["src","assets/img/icons/top-records.svg"]],template:function(a,s){a&1&&(t(0,"ul")(1,"li",0),r("click",function(){return s.showAppSettings()}),i(2,"img",1),c(3," Application "),n(),t(4,"li",0),r("click",function(){return s.showThemeSettings()}),i(5,"img",2),c(6," Theme "),n(),t(7,"li",0),r("click",function(){return s.showChartsSettings()}),i(8,"img",3),c(9," Charts "),n()())},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let o=e;return o})();export{u as MenuSettingsComponent}; +import{a as h}from"./chunk-SUAWKU6Z.js";import{Db as t,Eb as n,Fb as i,Nb as r,Xb as c,ab as p,cc as b,fa as g}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";var u=(()=>{let e=class e{constructor(l){this.sbs=l}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:import("./chunk-5IGE6P55.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-X265IDBJ.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-F2EOB5ZN.js")})}};e.\u0275fac=function(a){return new(a||e)(p(h))},e.\u0275cmp=g({type:e,selectors:[["dsw-menu-settings"]],standalone:!0,features:[b],decls:10,vars:0,consts:[[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/palette-icon.svg"],["src","assets/img/icons/top-records.svg"]],template:function(a,s){a&1&&(t(0,"ul")(1,"li",0),r("click",function(){return s.showAppSettings()}),i(2,"img",1),c(3," Application "),n(),t(4,"li",0),r("click",function(){return s.showThemeSettings()}),i(5,"img",2),c(6," Theme "),n(),t(7,"li",0),r("click",function(){return s.showChartsSettings()}),i(8,"img",3),c(9," Charts "),n()())},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let o=e;return o})();export{u as MenuSettingsComponent}; diff --git a/dist/chunk-YQLISMDV.js b/dist/chunk-YQLISMDV.js new file mode 100644 index 0000000..6e11870 --- /dev/null +++ b/dist/chunk-YQLISMDV.js @@ -0,0 +1 @@ +import{a}from"./chunk-VLXUGY6P.js";import"./chunk-6RK5MU4O.js";import"./chunk-LT3W5FMN.js";import"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";export{a as ShareDashboardComponent}; diff --git a/dist/chunk-7Z57W26K.js b/dist/chunk-ZXTET2VA.js similarity index 95% rename from dist/chunk-7Z57W26K.js rename to dist/chunk-ZXTET2VA.js index 51e1dd1..62753ab 100644 --- a/dist/chunk-7Z57W26K.js +++ b/dist/chunk-ZXTET2VA.js @@ -1 +1 @@ -import{F as f,J as h}from"./chunk-B2BNZRWN.js";import{Da as c,X as r,aa as l,g as a}from"./chunk-ZKAUCJHV.js";var y=(()=>{let i=class i{constructor(){this.emitter=new c}broadcast(t,s){this.emitter.emit({message:t,value:s})}subscribe(t,s){return this.emitter.subscribe(e=>{e.message===t&&s(e.value)})}};i.\u0275fac=function(s){return new(s||i)},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var v=(()=>{let i=class i{constructor(t){this.ss=t,this.current=new a(""),this.dashboard=new a(null),this.widgets=[],this.allWidgets=[]}setWidgets(t){this.widgets=t}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(t=[]){return this.widgets.filter(s=>s.type!==f.const.emptyWidgetClass&&!t.includes(s.name))}setAllWidgets(t){this.allWidgets=t}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(t){let s=this.ss.getWidgetsSettings(t.dashboard),e=t.name;s[e]||(s[e]={}),isNaN(t.x)||(s[e].col=t.x),isNaN(t.y)||(s[e].row=t.y),isNaN(t.cols)||(s[e].sizeX=t.cols),isNaN(t.rows)||(s[e].sizeY=t.rows),this.ss.setWidgetsSettings(s,t.dashboard)}generateDisplayInfo(t){if(t.displayInfo)return;let s=1,e=1,n=this.dashboard.value;n&&(s=Math.floor(12/n.displayInfo.gridCols),s<1&&(s=1),e<1&&(e=1));let d={topCol:Math.floor((t.x||0)/s),leftRow:Math.floor((t.y||0)/e),colWidth:Math.floor((t.cols||1)/s),rowHeight:Math.floor(t.rows||1)};t.displayInfo=d}};i.\u0275fac=function(s){return new(s||i)(l(h))},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();export{y as a,v as b}; +import{F as f,J as h}from"./chunk-LT3W5FMN.js";import{Da as c,X as r,aa as l,g as a}from"./chunk-ZKAUCJHV.js";var y=(()=>{let i=class i{constructor(){this.emitter=new c}broadcast(t,s){this.emitter.emit({message:t,value:s})}subscribe(t,s){return this.emitter.subscribe(e=>{e.message===t&&s(e.value)})}};i.\u0275fac=function(s){return new(s||i)},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var v=(()=>{let i=class i{constructor(t){this.ss=t,this.current=new a(""),this.dashboard=new a(null),this.widgets=[],this.allWidgets=[]}setWidgets(t){this.widgets=t}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(t=[]){return this.widgets.filter(s=>s.type!==f.const.emptyWidgetClass&&!t.includes(s.name))}setAllWidgets(t){this.allWidgets=t}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(t){let s=this.ss.getWidgetsSettings(t.dashboard),e=t.name;s[e]||(s[e]={}),isNaN(t.x)||(s[e].col=t.x),isNaN(t.y)||(s[e].row=t.y),isNaN(t.cols)||(s[e].sizeX=t.cols),isNaN(t.rows)||(s[e].sizeY=t.rows),this.ss.setWidgetsSettings(s,t.dashboard)}generateDisplayInfo(t){if(t.displayInfo)return;let s=1,e=1,n=this.dashboard.value;n&&(s=Math.floor(12/n.displayInfo.gridCols),s<1&&(s=1),e<1&&(e=1));let d={topCol:Math.floor((t.x||0)/s),leftRow:Math.floor((t.y||0)/e),colWidth:Math.floor((t.cols||1)/s),rowHeight:Math.floor(t.rows||1)};t.displayInfo=d}};i.\u0275fac=function(s){return new(s||i)(l(h))},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();export{y as a,v as b}; diff --git a/dist/index.html b/dist/index.html index 41f67d6..d7284d1 100644 --- a/dist/index.html +++ b/dist/index.html @@ -41,5 +41,5 @@ - + diff --git a/dist/main-DSROMZL7.js b/dist/main-RORSWP7B.js similarity index 99% rename from dist/main-DSROMZL7.js rename to dist/main-RORSWP7B.js index 3c859b3..9abee8d 100644 --- a/dist/main-DSROMZL7.js +++ b/dist/main-RORSWP7B.js @@ -1,4 +1,4 @@ -import{a as td,b as Ne,c as nd,d as sd,e as rd,f as hd,g as Yl,i as dd}from"./chunk-FHZVEBZY.js";import{a as pn}from"./chunk-V6EVLSKF.js";import{b as ad,e as or,f as ud}from"./chunk-L76GKDA2.js";import{a as G,b as dn,c as oi,d as Yn,e as cd,f as Re,h as Kn,k as ir,l as Xl,m as qo}from"./chunk-W7AFIDCE.js";import{a as Fv}from"./chunk-54YLOEMX.js";import{a as Qp}from"./chunk-7NWZDKAS.js";import{a as sr}from"./chunk-WYNQ5JHX.js";import{a as pd}from"./chunk-7JDU6VT7.js";import{a as ai}from"./chunk-EB65ROO7.js";import{b as ld}from"./chunk-XEEYYVYF.js";import{a as Vo}from"./chunk-EAEBZZLM.js";import"./chunk-6QFXSLJK.js";import{a as rr}from"./chunk-RNWIIYZZ.js";import{a as Tt}from"./chunk-SUAWKU6Z.js";import{a as id,b as od}from"./chunk-7Z57W26K.js";import{a as Xp,c as $o,d as Qn,e as Xn,f as Yp,g as Kp,h as Zp,i as Jp,j as hn,k as ed}from"./chunk-LPXDHCFD.js";import{A as zp,B as Ql,C as Gp,D as Ro,E as Gn,F as _e,G as tr,H as At,I as nr,J as cn,K as dt,L as un,b as Mp,c as Bo,d as Js,g as er,i as Lp,j as Fp,k as Oo,l as Bp,m as Op,n as Rp,o as $p,p as Vp,q as ii,s as qp,t as Up,u as an,v as Hp,w as ln,x as jp,y as Wp,z as Gl}from"./chunk-B2BNZRWN.js";import{$a as D,$b as Tn,A as pp,Ab as rn,Ac as zl,B as dp,Ba as sn,Bb as zt,Bc as Fo,Cb as Gt,Da as si,Db as B,Dc as Np,Eb as O,F as Ao,Fb as me,Ha as Cp,Ia as jl,Ib as Do,Jb as Ce,K as To,Lc as Oe,Nb as ee,Ob as ne,Q as fp,R as mp,Rb as ri,T as gp,Tb as ut,U as J,Ub as ht,Vb as pt,W as vp,Wb as No,X as nn,Xb as ge,Yb as Qt,Za as ko,Zb as on,_b as An,aa as Ze,ab as M,ac as kn,bc as kp,c as cp,cc as De,db as _p,ea as wp,eb as Io,fa as Pe,fb as Ap,gb as Tp,ha as yp,hc as ye,ic as Ee,k as up,ka as Ep,lc as Ip,m as hp,pa as Sp,qa as ce,r as xo,ra as ue,rb as we,s as Co,tb as te,tc as Pp,ua as bp,ub as Po,vb as Je,wa as xp,wb as Wl,wc as Mo,xc as Lo,y as _o,yb as pe,yc as Dp}from"./chunk-ZKAUCJHV.js";import{a as E,b as xe,c as lp,e as Mv,f as Lv,h as Zs}from"./chunk-DEPBX7UX.js";var fd=(()=>{let e=class e{constructor(s){this.el=s}onReturnPressed(s){s.preventDefault();let r=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);r&&r.focus()}};e.\u0275fac=function(r){return new(r||e)(M(sn))},e.\u0275dir=yp({type:e,selectors:[["","dswFocusNext",""]],hostBindings:function(r,i){r&1&&ee("keydown.enter",function(a){return i.onReturnPressed(a)})},standalone:!0});let n=e;return n})();function Bv(n,e){if(n&1){let t=Ce();B(0,"button",14),ee("click",function(){ce(t);let r=ne();return ue(r.onLoginOAuthClick())}),ge(1),ye(2,"i18n"),O()}n&2&&(D(),on("",Ee(2,1,"signinOAuth")," "))}var Jl=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u){this.ds=s,this.i18n=r,this.hs=i,this.ss=o,this.ns=a,this.st=l,this.route=c,this.router=u,this.startTime=-1,this.hs.visible$.next(!1),this.ss.hide(),delete sessionStorage.dashboarList,_e.desktop&&delete localStorage.DSWMobileServer,this.initModel(),_e.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let p=this.route.snapshot.queryParamMap.get("ns"),f=this.route.snapshot.queryParamMap.get("from");f&&(p=f.split("/").filter(g=>g)[0]),this.model.namespace=p||dt||""}initModel(){this.model={isDesktop:_e.desktop,ver:_e.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:"",oAuthUrl:""}}initNamespace(){let s=this.route.snapshot.queryParamMap.get("from");if(s){let r=decodeURIComponent(s),i=this.getParameterByName("ns",r);i&&(this.model.namespace=i)}else{let r=this.route.snapshot.queryParamMap.get("ns");r&&(this.model.namespace=r)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(s=>{try{if(typeof s=="string"){let r=JSON.parse(s);this.model.oAuthUrl=r.url||""}else this.model.oAuthUrl=s.url||""}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let s=localStorage.selectedServer;if(!s||(s=parseInt(s,10),isNaN(s)))return;let r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(o){console.error(o)}let i=r[s];i&&(this.model.server=i.server||"",this.model.login=i.login||"",this.model.password=i.password||"",this.model.namespace=i.namespace||"")}saveServer(){let s=prompt("Please enter server name",this.model.server),r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(i){console.error(i)}r.push({name:s,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(r),localStorage.selectedServer=r.length-1}showServers(){}getParameterByName(s,r){s=s.replace(/[\[\]]/g,"\\$&");let o=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(r);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.model.oAuthUrl}onLoginClick(){this.clearError();let s=this.getMobileUrl();this.startTime=new Date().getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,_e.mobile&&!_e.desktop?s:"").catch(r=>this.onError(r)).then(r=>this.onSuccess(r,this.model.namespace))}getMobileUrl(){let s=this.model.server,r=s.replace("://","").indexOf("/")!==-1;return s.toLowerCase().indexOf("http")===-1&&(s="http://"+s),r||(s+="/MDX2JSON/"),s.charAt(s.length-1)!=="/"&&(s+="/"),s}onSuccess(s,r){if(!s)return;_e.mobile&&_e.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username,this.ns.setNamespaces(s.Mappings.Mapped),this.ns.setCurrent(r),this.st.loadServerSettings(s);let i=this.route.snapshot.queryParamMap.get("from");i?this.router.navigateByUrl(i):this.router.navigateByUrl("/"+r)}onError(s){let{error:r,status:i}=s;if(new Date().getTime()-this.startTime>=_e.const.timeout){this.showError(this.i18n.get("errTimeout"));return}switch(i){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(r.Error||s.message);break;default:this.showError(s.message);break}}clearError(){this.model.error=""}showError(s){this.model.error=s}scanSettings(){cordova.plugins.barcodeScanner.scan(s=>{let i=s.text.split("|");if(i[0].toLowerCase()!=="dsw"){alert("Incorrect QR code");return}this.model.server=i[1],this.model.login=i[2],this.model.password=i[3],this.model.namespace=i[4],this.onLoginClick()},s=>{alert("Scanning failed: "+s)})}};e.\u0275fac=function(r){return new(r||e)(M(At),M(Gn),M(pn),M(Tt),M(un),M(cn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-login-screen"]],standalone:!0,features:[De],decls:24,vars:26,consts:[[1,"ver"],["desktop-hidden","",1,"qr-scanner-btn",3,"click"],[1,"fa","fa-camera"],[1,"login-form"],[1,"logo"],["type","text","name","server","focus-next","dswLogin",3,"ngModelChange","hidden","ngModel","placeholder"],["id","dswLogin","type","text","name","dswLogin","dswAutoFocus","","dswFocusNext","dswPasword",3,"ngModelChange","ngModel","placeholder"],["id","dswPasword","name","dswPasword","type","password","dswFocusNext","ns",3,"ngModelChange","ngModel","placeholder"],["id","ns","type","text","dswFocusNext","login","required","",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"button-row"],["desktop-hidden","",1,"btn","btn-success",3,"click","hidden"],["id","login",1,"btn",3,"click"],["id","btnLoginOAuth",1,"btn","btn-link"],[1,"msg-error",3,"hidden"],["id","btnLoginOAuth",1,"btn","btn-link",3,"click"]],template:function(r,i){r&1&&(B(0,"span",0),ge(1),O(),B(2,"span",1),ee("click",function(){return i.scanSettings()}),me(3,"i",2),O(),B(4,"div",3)(5,"div",4),ge(6," IRIS Analytics "),O(),B(7,"input",5),ye(8,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.server,a)||(i.model.server=a),a}),O(),B(9,"input",6),ye(10,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.login,a)||(i.model.login=a),a}),O(),B(11,"input",7),ye(12,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.password,a)||(i.model.password=a),a}),O(),B(13,"input",8),ye(14,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.namespace,a)||(i.model.namespace=a),a}),O(),B(15,"div",9)(16,"button",10),ee("click",function(){return i.showServers()}),O(),B(17,"button",10),ee("click",function(){return i.saveServer()}),O(),B(18,"button",11),ee("click",function(){return i.onLoginClick()}),ge(19),ye(20,"i18n"),O(),we(21,Bv,3,3,"button",12),O(),B(22,"div",13),ge(23),O()()),r&2&&(D(),Qt(i.model.ver),D(6),ri("placeholder",Ee(8,16,"server")),te("hidden",i.model.isDesktop),An("ngModel",i.model.server),D(2),ri("placeholder",Ee(10,18,"login")),An("ngModel",i.model.login),D(2),ri("placeholder",Ee(12,20,"password")),An("ngModel",i.model.password),D(2),ri("placeholder",Ee(14,22,"namespace")),An("ngModel",i.model.namespace),D(3),te("hidden",i.model.isDesktop),D(),te("hidden",i.model.isDesktop),D(2),Qt(Ee(20,24,"signin")),D(2),pe(i.model.oAuthUrl?21:-1),D(),te("hidden",!i.model.error),D(),on(" ",i.model.error," "))},dependencies:[hn,$o,Qn,Jp,Xn,Qp,fd,Ro],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:url(./assets/img/bg.jpg);background-size:cover}.login-form[_ngcontent-%COMP%]{position:relative;width:300px;padding:25px;margin-bottom:20vh;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 10px #0000001a;border-radius:10px;background-color:#ffffff80}.login-form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%;display:flex;justify-content:center;align-items:center}.ver[_ngcontent-%COMP%]{position:absolute;right:2px;top:0;font-size:8px}.msg-error[_ngcontent-%COMP%]{text-align:center;padding-top:16px;word-break:break-word;position:absolute;width:100%;font-size:14px;color:#d11818;margin-left:-25px;margin-top:25px;font-weight:500}img[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{margin-bottom:24px;width:100%}@media (max-width: 576px){input[_ngcontent-%COMP%]{margin-bottom:16px;height:40px}}.btn[_ngcontent-%COMP%]{width:100%;display:block;margin-top:30px;margin-bottom:4px;height:40px}.btn-link[_ngcontent-%COMP%]{margin-bottom:-15px}.logo[_ngcontent-%COMP%]{font-size:26px;font-weight:700;margin-bottom:30px;color:#1c1d20}"]});let n=e;return n})();var vd=["gridster"],$v=["widgets"];function Vv(n,e){if(n&1&&me(0,"dsw-widget",9,1),n&2){let t=ne().$implicit,s=ne();Je("transparent",s.itemDesc[t.idx].inline),te("widget",s.itemDesc[t.idx])}}function qv(n,e){n&1&&me(0,"div",7),n&2&&te("ngClass",e)}function Uv(n,e){if(n&1&&(B(0,"label",8)(1,"span"),ge(2),O()()),n&2){let t=ne().$implicit,s=ne();te("title",t.customTitle||t.title),D(),Wl(s.model.fontColors[t.fontColor]),D(),Qt(t.customTitle||t.title)}}function Hv(n,e){if(n&1){let t=Ce();B(0,"gridster-item",5),ee("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),we(1,Vv,2,3,"dsw-widget",6)(2,qv,1,1,"div",7)(3,Uv,3,4,"label",8),O()}if(n&2){let t,s=e.$implicit,r=ne();Wl("tile cl"+s.color+" "+(s.template?"tile-with-widget":"")),Po("background-image","url("+s.Cover+")"),Je("selected",r.model.edItem==s)("editing",r.model.edItem),te("item",s),D(),pe(r.itemDesc[s.idx]?1:-1),D(),pe((t=!r.itemDesc[s.idx]&&r.model.icons[s.icon])?2:-1,t),D(),pe(s.hideTitle?-1:3)}}var yd=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.st=s,this.route=r,this.router=i,this.ss=o,this.hs=a,this.ms=l,this.ds=c,this.es=u,this.i18n=p,this.fs=f,this.ns=g,this.itemDesc=[],this.isResizing=!1,this.model={tiles:[],widgetList:[],fontColors:_e.const.fontColors,icons:_e.const.icons},this.tilesOptions={maxCols:8,minCols:8,fixedRowHeight:122,gridType:"verticalFixed",mobileBreakpoint:576,margin:20,draggable:{enabled:!1},resizable:{enabled:!1}},this.isSpinner=!0,this.folder="",this.isLoading=!1,this.subEditDashboard=this.ms.onEditDashboard.pipe(ai()),this.subSidebarAnimEnd=this.ss.onAnimEnd.pipe(ai()),this.settings=s.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear()}ngOnInit(){this.subscribeForData(),this.subscribeForEditingMode(),this.subscribeForGridsterAnimations(),this.subscribeForGridsterResize()}getDesc(s){return this.itemDesc[s]}startEditing(s){this.model.edItem=s,this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!0),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!0),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.ss.showComponent({component:import("./chunk-S6MPGTA6.js"),single:!0,inputs:{tiles:this.model.tiles,tile:this.model.edItem,folder:this.folder}})}stopEditing(){this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!1),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!1),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.model.edItem=void 0}onItemClicked(s){if(this.model.edItem){this.startEditing(s);return}let r=s.fullPath;s.isFolder&&(r=s.title===""?"..":s.title),this.router.navigate([r],{relativeTo:s.isFolder?this.route:this.route.root.children[0]})}retrieveData(s,r){if(s){if(s&&s.Error){this.es.show(s.data.Error);return}if(s){if(!s.children||s.children.length===0){this.es.show(this.i18n.get("errNoDashboards"));return}this.model.tiles=this.getTiles(s,r)}return this.model.tiles}}setupList(s){for(let r=0;r{this.retriveWidgetData(i,s[r])}))}createDataCallback(s){return function(r){this.retriveWidgetData(r,s)}}getTiles(s,r){let i=s.children,o=this.st.getTilesSettings();if(o=o[this.folder]||{},i.forEach(a=>{a.fullPath||(a.fullPath=a.path)}),r)i=i.filter(a=>a.title.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())!==-1);else{this.folder&&(i=i.filter(l=>l.fullPath.startsWith(this.folder+"/")));let a=[];i.forEach(l=>{l.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(l.path=l.fullPath.slice(this.folder.length!==0?this.folder.length+1:0,l.fullPath.length));let c=l.path.split("/");c.length!==1&&(a.some(u=>u===c[0])||a.push(c[0]))}),i=i.filter(l=>l.path.split("/").length===1),i=[...i,...a.map(l=>({isFolder:!0,title:l}))]}i.forEach(a=>{!a.isFolder&&!a.title&&(a.title=a.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!r&&i.push({isFolder:!0,title:""}),i=i.sort((a,l)=>a.isFolder&&!l.isFolder?-1:l.isFolder&&!a.isFolder||a.title>l.title?1:-1);for(let a=0;a{!this.widgets||s.propertyName!=="width"&&s.propertyName!=="height"||this.widgets.toArray().forEach(r=>{r.component&&r.component.onResize()})})}subscribeForGridsterAnimations(){this.subSidebarAnimEnd.subscribe(()=>{this.tilesOptions?.api?.resize&&this.tilesOptions.api.resize()})}subscribeForEditingMode(){this.ms.onEditDashboard.subscribe(s=>{s?this.startEditing(this.model.tiles[0]):this.stopEditing()})}subscribeForData(){this.data$=Co([this.st.onTilesChanged.pipe(fp("")),this.route.url,this.route.params.pipe(mp(s=>(s.ns?.toLowerCase()!==dt.toLowerCase()&&this.ns.setCurrent(s.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(To())]).pipe(xo(([s,r,i,o])=>{this.folder=decodeURIComponent(r.map(l=>l.path).join("/")||""),this.isLoading=!1;let a=this.retrieveData(JSON.parse(JSON.stringify(i)),o||"");return this.isSpinner=!1,a}))}};e.\u0275fac=function(r){return new(r||e)(M(cn),M(an),M(ln),M(Tt),M(pn),M(Vo),M(At),M(tr),M(Gn),M(sr),M(un))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-folder-screen"]],viewQuery:function(r,i){if(r&1&&(ut(vd,7,sn),ut(vd,7),ut($v,5,Yl)),r&2){let o;ht(o=pt())&&(i.gridster=o.first),ht(o=pt())&&(i.gridsterComp=o.first),ht(o=pt())&&(i.widgets=o)}},standalone:!0,features:[De],decls:6,vars:6,consts:[["gridster",""],["widgets",""],[1,"gridster",3,"options"],[3,"selected","editing","class","item","backgroundImage"],["ngSrc","assets/img/spinner.svg","height","100","width","100","priority","",3,"hidden"],[3,"click","item"],[3,"widget","transparent"],[1,"tile-icon",3,"ngClass"],[3,"title"],[3,"widget"]],template:function(r,i){r&1&&(B(0,"gridster",2,0),zt(2,Hv,4,12,"gridster-item",3,rn),ye(4,"async"),O(),me(5,"img",4)),r&2&&(Je("no-anim",i.isResizing),te("options",i.tilesOptions),D(2),Gt(Ee(4,4,i.data$)),D(3),te("hidden",!i.isSpinner))},dependencies:[nd,sd,Yl,er,Oo,Bo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;width:100%;height:100%}gridster[_ngcontent-%COMP%]{background:var(--cl-bg);overflow-y:overlay!important}.tile[_ngcontent-%COMP%]{border-radius:var(--tile-border-radius);cursor:pointer;overflow:hidden;user-select:none;-webkit-user-select:none;background-size:cover;background:transparent no-repeat 50% 50%;padding:20px}.tile[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #0000001a}.tile.editing[_ngcontent-%COMP%]{opacity:.5}.tile.selected[_ngcontent-%COMP%]{opacity:1;border:2px solid var(--cl-accent)}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{border:none;border-bottom:var(--tile-border);display:flex!important;justify-content:flex-start;align-items:center}}.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Oxygen;font-style:normal;outline-color:#1c5ec7;position:absolute;inset:auto 20px 20px;text-align:left;font-weight:400;font-size:14px;line-height:16px;color:var(--cl-header-txt);max-height:2.3em;display:inline-block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 576px){.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:static;font-size:14px}}.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-family:FontAwesome;height:50%;width:50%;margin-top:10%;margin-left:25%;margin-right:25%}@media (max-width: 576px){.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:80%;width:80%;margin:0}}dsw-widget[_ngcontent-%COMP%]{pointer-events:none}dsw-widget.transparent[_ngcontent-%COMP%]{background-color:transparent}"]});let n=e;return n})();function jv(n,e){n&1&&me(0,"dsw-folder-screen")}function Wv(n,e){n&1&&me(0,"dsw-dashboard-screen")}var Ed=(()=>{let e=class e{constructor(s,r){this.route=s,this.hs=r,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=Co([this.route.url,this.route.params]).subscribe(([i,o])=>{let a=[o.name,...i.map(l=>l.path)].join("/");this.isFolder=a.indexOf(".dashboard")===-1})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(M(an),M(pn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-main-screen"]],standalone:!0,features:[De],decls:2,vars:2,template:function(r,i){r&1&&we(0,jv,1,0,"dsw-folder-screen")(1,Wv,1,0,"dsw-dashboard-screen"),r&2&&(pe(i.isFolder?0:-1),D(),pe(i.isFolder?-1:1))},dependencies:[yd,dd],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});let n=e;return n})();var ec=(()=>{let e=class e{constructor(s,r,i,o,a,l){this.router=s,this.ds=r,this.route=i,this.st=o,this.ns=a,this.wt=l,this.previousNS="",this.model={},this.isLoaded=!1}checkEmbed(s){let r=this.st.serverSettings?.Embed;return r&&s.url.split("?")[0]!==r?(this.router.navigateByUrl(r),!0):!1}resolve(s,r){let i=s.params.ns;return new cp(o=>{let a=()=>{this.isLoaded=!0,o.next(this.model),o.complete()};if(this.checkEmbed(r))return;if(!dt){if(!i){this.router.navigateByUrl("/login"),a();return}this.ns.setCurrent(i)}if(this.previousNS===dt){a();return}let l=this.ds.loadConfig(dt).then(u=>this.st.loadConfig(u)).catch(u=>this.st.loadConfig(null)),c=this.loadServerSettings();Promise.all([l,c]).finally(()=>{this.checkEmbed(r)||(this.previousNS=dt,a())})})}loadServerSettings(){return new Promise(s=>{this.ds.getSettings(dt).then(r=>{this.st.loadServerSettings(r)}).finally(()=>s())})}};e.\u0275fac=function(r){return new(r||e)(Ze(ln),Ze(At),Ze(an),Ze(cn),Ze(un),Ze(or))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var tc=[{path:"",component:Jl,resolve:{model:un}},{path:"login",component:Jl},{path:":ns",resolve:{model:ec},runGuardsAndResolvers:"always",children:[{path:"**",component:Ed,data:{isDashboard:!0},resolve:{model:ec},runGuardsAndResolvers:"always"}]}];function Sd(n){return new J(3e3,!1)}function Gv(){return new J(3100,!1)}function Qv(){return new J(3101,!1)}function Xv(n){return new J(3001,!1)}function Yv(n){return new J(3003,!1)}function Kv(n){return new J(3004,!1)}function Zv(n,e){return new J(3005,!1)}function Jv(){return new J(3006,!1)}function ew(){return new J(3007,!1)}function tw(n,e){return new J(3008,!1)}function nw(n){return new J(3002,!1)}function sw(n,e,t,s,r){return new J(3010,!1)}function rw(){return new J(3011,!1)}function iw(){return new J(3012,!1)}function ow(){return new J(3200,!1)}function aw(){return new J(3202,!1)}function lw(){return new J(3013,!1)}function cw(n){return new J(3014,!1)}function uw(n){return new J(3015,!1)}function hw(n){return new J(3016,!1)}function pw(n,e){return new J(3404,!1)}function dw(n){return new J(3502,!1)}function fw(n){return new J(3503,!1)}function mw(){return new J(3300,!1)}function gw(n){return new J(3504,!1)}function vw(n){return new J(3301,!1)}function ww(n,e){return new J(3302,!1)}function yw(n){return new J(3303,!1)}function Ew(n,e){return new J(3400,!1)}function Sw(n){return new J(3401,!1)}function bw(n){return new J(3402,!1)}function xw(n,e){return new J(3505,!1)}function Zn(n){switch(n.length){case 0:return new ir;case 1:return n[0];default:return new Xl(n)}}function Fd(n,e,t=new Map,s=new Map){let r=[],i=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,p=u&&a||new Map;l.forEach((f,g)=>{let w=g,y=f;if(g!=="offset")switch(w=n.normalizePropertyName(w,r),y){case qo:y=t.get(g);break;case dn:y=s.get(g);break;default:y=n.normalizeStyleValue(g,w,y,r);break}p.set(w,y)}),u||i.push(p),a=p,o=c}),r.length)throw dw(r);return i}function Cc(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&nc(t,"start",n)));break;case"done":n.onDone(()=>s(t&&nc(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&nc(t,"destroy",n)));break}}function nc(n,e,t){let s=t.totalTime,r=!!t.disabled,i=_c(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,r),o=n._data;return o!=null&&(i._data=o),i}function _c(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function mt(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function bd(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Cw=typeof document>"u"?null:document.documentElement;function Ac(n){let e=n.parentNode||n.host||null;return e===Cw?null:e}function _w(n){return n.substring(1,6)=="ebkit"}var Es=null,xd=!1;function Aw(n){Es||(Es=Tw()||{},xd=Es.style?"WebkitAppearance"in Es.style:!1);let e=!0;return Es.style&&!_w(n)&&(e=n in Es.style,!e&&xd&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Es.style)),e}function Tw(){return typeof document<"u"?document.body:null}function Bd(n,e){for(;e;){if(e===n)return!0;e=Ac(e)}return!1}function Od(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Tc=(()=>{let e=class e{validateStyleProperty(s){return Aw(s)}containsElement(s,r){return Bd(s,r)}getParentElement(s){return Ac(s)}query(s,r,i){return Od(s,r,i)}computeStyle(s,r,i){return i||""}animate(s,r,i,o,a,l=[],c){return new ir(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})(),Dc=class Dc{};Dc.NOOP=new Tc;var xs=Dc,Cs=class{};var kw=1e3,Rd="{{",Iw="}}",$d="ng-enter",lc="ng-leave",Wo="ng-trigger",Yo=".ng-trigger",Cd="ng-animating",cc=".ng-animating";function In(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:uc(parseFloat(e[1]),e[2])}function uc(n,e){switch(e){case"s":return n*kw;default:return n}}function Ko(n,e,t){return n.hasOwnProperty("duration")?n:Pw(n,e,t)}function Pw(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(Sd(n)),{duration:0,delay:0,easing:""};r=uc(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=uc(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Gv()),a=!0),i<0&&(e.push(Qv()),a=!0),a&&e.splice(l,0,Sd(n))}return{duration:r,delay:i,easing:o}}function Dw(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function fn(n,e,t){e.forEach((s,r)=>{let i=kc(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function bs(n,e){e.forEach((t,s)=>{let r=kc(s);n.style[r]=""})}function ci(n){return Array.isArray(n)?n.length==1?n[0]:cd(n):n}function Nw(n,e,t){let s=e.params||{},r=Vd(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(Xv(i))})}var hc=new RegExp(`${Rd}\\s*(.+?)\\s*${Iw}`,"g");function Vd(n){let e=[];if(typeof n=="string"){let t;for(;t=hc.exec(n);)e.push(t[1]);hc.lastIndex=0}return e}function hi(n,e,t){let s=`${n}`,r=s.replace(hc,(i,o)=>{let a=e[o];return a==null&&(t.push(Yv(o)),a=""),a.toString()});return r==s?n:r}var Mw=/-+([a-z0-9])/g;function kc(n){return n.replace(Mw,(...e)=>e[1].toUpperCase())}function Lw(n,e){return n===0||e===0}function Fw(n,e,t){if(t.size&&e.length){let s=e[0],r=[];if(t.forEach((i,o)=>{s.has(o)||r.push(o),s.set(o,i)}),r.length)for(let i=1;io.set(a,Ic(n,a)))}}return e}function ft(n,e,t){switch(e.type){case G.Trigger:return n.visitTrigger(e,t);case G.State:return n.visitState(e,t);case G.Transition:return n.visitTransition(e,t);case G.Sequence:return n.visitSequence(e,t);case G.Group:return n.visitGroup(e,t);case G.Animate:return n.visitAnimate(e,t);case G.Keyframes:return n.visitKeyframes(e,t);case G.Style:return n.visitStyle(e,t);case G.Reference:return n.visitReference(e,t);case G.AnimateChild:return n.visitAnimateChild(e,t);case G.AnimateRef:return n.visitAnimateRef(e,t);case G.Query:return n.visitQuery(e,t);case G.Stagger:return n.visitStagger(e,t);default:throw Kv(e.type)}}function Ic(n,e){return window.getComputedStyle(n)[e]}var Bw=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Zo=class extends Cs{normalizePropertyName(e,t){return kc(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(Bw.has(t)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Zv(e,s))}return o+i}};var Jo="*";function Ow(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Rw(s,t,e)):t.push(n),t}function Rw(n,e,t){if(n[0]==":"){let l=$w(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(uw(n)),e;let r=s[1],i=s[2],o=s[3];e.push(_d(r,o));let a=r==Jo&&o==Jo;i[0]=="<"&&!a&&e.push(_d(o,r))}function $w(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var zo=new Set(["true","1"]),Go=new Set(["false","0"]);function _d(n,e){let t=zo.has(n)||Go.has(n),s=zo.has(e)||Go.has(e);return(r,i)=>{let o=n==Jo||n==r,a=e==Jo||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?zo.has(n):Go.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?zo.has(e):Go.has(e)),o&&a}}var qd=":self",Vw=new RegExp(`s*${qd}s*,?`,"g");function Ud(n,e,t,s){return new pc(n).build(e,t,s)}var Ad="",pc=class{constructor(e){this._driver=e}build(e,t,s){let r=new dc(t);return this._resetContextStyleTimingState(r),ft(this,ci(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ad,e.collectedStyles=new Map,e.collectedStyles.set(Ad,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,r=t.depCount=0,i=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Jv()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,i.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(ew())}),{type:G.Trigger,name:e.name,states:i,transitions:o,queryCount:s,depCount:r,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(s.containsDynamicStyles){let i=new Set,o=r||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Vd(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(tw(e.name,[...i.values()]))}return{type:G.State,name:e.name,style:s,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=ft(this,ci(e.animation),t),r=Ow(e.expr,t.errors);return{type:G.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Ss(e.options)}}visitSequence(e,t){return{type:G.Sequence,steps:e.steps.map(s=>ft(this,s,t)),options:Ss(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=ft(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:i,options:Ss(e.options)}}visitAnimate(e,t){let s=jw(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:Re({});if(i.type==G.Keyframes)r=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=Re(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:s,style:r,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===dn?s.push(a):t.errors.push(nw(a)):s.push(new Map(Object.entries(a)));let i=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!i)){for(let l of a.values())if(l.toString().indexOf(Rd)>=0){i=!0;break}}}),{type:G.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,r=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),p=!0;u&&(i!=r&&i>=u.startTime&&r<=u.endTime&&(t.errors.push(sw(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&Nw(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rw()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(x=>{let N=this._makeStyleAst(x,t),X=N.offset!=null?N.offset:Hw(N.styles),K=0;return X!=null&&(i++,K=N.offset=X),l=l||K<0||K>1,a=a||K0&&i{let X=f>0?N==g?1:f*N:o[N],K=X*b;t.currentTime=w+y.delay+K,y.duration=K,this._validateStyleAst(x,t),x.offset=X,s.styles.push(x)}),s}visitReference(e,t){return{type:G.Reference,animation:ft(this,ci(e.animation),t),options:Ss(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:G.AnimateChild,options:Ss(e.options)}}visitAnimateRef(e,t){return{type:G.AnimateRef,animation:this.visitReference(e.animation,t),options:Ss(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=qw(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,mt(t.collectedStyles,t.currentQuerySelector,new Map);let a=ft(this,ci(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:G.Query,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ss(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(lw());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ko(e.timings,t.errors,!0);return{type:G.Stagger,animation:ft(this,ci(e.animation),t),timings:s,options:null}}};function qw(n){let e=!!n.split(/\s*,\s*/).find(t=>t==qd);return e&&(n=n.replace(Vw,"")),n=n.replace(/@\*/g,Yo).replace(/@\w+/g,t=>Yo+"-"+t.slice(1)).replace(/:animating/g,cc),[n,e]}function Uw(n){return n?E({},n):null}var dc=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Hw(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function jw(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=Ko(n,e).duration;return sc(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=sc(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=Ko(t,e);return sc(r.duration,r.delay,r.easing)}function Ss(n){return n?(n=E({},n),n.params&&(n.params=Uw(n.params))):n={},n}function sc(n,e,t){return{duration:n,delay:e,easing:t}}function Pc(n,e,t,s,r,i,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}var pi=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ww=1,zw=":enter",Gw=new RegExp(zw,"g"),Qw=":leave",Xw=new RegExp(Qw,"g");function Hd(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new fc().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var fc=class{buildKeyframes(e,t,s,r,i,o,a,l,c,u=[]){c=c||new pi;let p=new mc(e,t,c,r,i,u,[]);p.options=l;let f=l.delay?In(l.delay):0;p.currentTimeline.delayNextStep(f),p.currentTimeline.setStyles([o],null,p.errors,l),ft(this,s,p);let g=p.timelines.filter(w=>w.containsAnimation());if(g.length&&a.size){let w;for(let y=g.length-1;y>=0;y--){let b=g[y];if(b.element===t){w=b;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,p.errors,l)}return g.length?g.map(w=>w.buildKeyframes()):[Pc(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let r of e){let i=r?.delay;if(i){let o=typeof i=="number"?i:In(hi(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?In(s.duration):null,a=s.delay!=null?In(s.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);i=Math.max(i,c.duration+c.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),ft(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,r=t,i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),i.delay!=null)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ea);let o=In(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>ft(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>s&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],r=t.currentTimeline.currentTime,i=e.options&&e.options.delay?In(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),ft(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,r=t.params?hi(s,t.params,t.errors):s;return Ko(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),r.snapshotCurrentStyles());let i=e.style;i.type==G.Keyframes?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,r=t.currentAnimateTimings;!r&&s.hasCurrentStyleProperties()&&s.forwardFrame();let i=r&&r.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,r=t.currentTimeline.duration,i=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*i),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?In(r.delay):0;i&&(t.previousNode.type===G.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ea);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;let p=t.createSubContext(e.options,c);i&&p.delayNextStep(i),c===t.element&&(l=p.currentTimeline),ft(this,e.animation,p),p.currentTimeline.applyStylesToKeyframe();let f=p.currentTimeline.currentTime;o=Math.max(o,f)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let p=u.currentTime;ft(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-p+(r.startTime-s.currentTimeline.startTime)}},ea={},mc=class n{constructor(e,t,s,r,i,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ea,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ta(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,r=this.options;s.duration!=null&&(r.duration=In(s.duration)),s.delay!=null&&(r.delay=In(s.delay));let i=s.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=hi(i[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(r=>{s[r]=t[r]})}}return e}createSubContext(e=null,t,s){let r=t||this.element,i=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ea,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},i=new gc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,r,i,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Gw,"."+this._enterClassName),e=e.replace(Xw,"."+this._leaveClassName);let l=s!=1,c=this._driver.query(this.element,e,l);s!==0&&(c=s<0?c.slice(c.length+s,c.length):c.slice(0,s)),a.push(...c)}return!i&&a.length==0&&o.push(cw(t)),a}},ta=class n{constructor(e,t,s,r){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ww,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||dn),this._currentKeyframe.set(t,dn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=Yw(e,this._globalTimelineStyles);for(let[a,l]of o){let c=hi(l,i,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??dn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let r=this._styleSummary.get(s);(!r||t.time>r.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,p)=>{u===qo?e.add(p):u===dn&&t.add(p)}),s||c.set("offset",l/this.duration),r.push(c)});let i=[...e.values()],o=[...t.values()];if(s){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Pc(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},gc=class extends ta{constructor(e,t,s,r,i,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let i=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),i.push(l);let c=new Map(e[0]);c.set("offset",Td(a)),i.push(c);let u=e.length-1;for(let p=1;p<=u;p++){let f=new Map(e[p]),g=f.get("offset"),w=t+g*s;f.set("offset",Td(w/o)),i.push(f)}s=o,t=0,r="",e=i}return Pc(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Td(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Yw(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,dn)}else for(let[i,o]of r)t.set(i,o)}),t}function kd(n,e,t,s,r,i,o,a,l,c,u,p,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:f}}var rc={},na=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return Kw(this.ast.matchers,e,t,s,r)}buildStyles(e,t,s){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,s):new Map}build(e,t,s,r,i,o,a,l,c,u){let p=[],f=this.ast.options&&this.ast.options.params||rc,g=a&&a.params||rc,w=this.buildStyles(s,g,p),y=l&&l.params||rc,b=this.buildStyles(r,y,p),x=new Set,N=new Map,X=new Map,K=r==="void",We={params:jd(y,f),delay:this.ast.options?.delay},Ke=u?[]:Hd(e,t,this.ast.animation,i,o,w,b,We,c,p),Be=0;return Ke.forEach(be=>{Be=Math.max(be.duration+be.delay,Be)}),p.length?kd(t,this._triggerName,s,r,K,w,b,[],[],N,X,Be,p):(Ke.forEach(be=>{let vs=be.element,Ks=mt(N,vs,new Set);be.preStyleProps.forEach(ws=>Ks.add(ws));let rp=mt(X,vs,new Set);be.postStyleProps.forEach(ws=>rp.add(ws)),vs!==t&&x.add(vs)}),kd(t,this._triggerName,s,r,K,w,b,Ke,[...x.values()],N,X,Be))}};function Kw(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function jd(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var vc=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=jd(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=hi(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function Zw(n,e,t){return new wc(n,e,t)}var wc=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let i=r.options&&r.options.params||{};this.states.set(r.name,new vc(r.style,i,s))}),Id(this.states,"true","1"),Id(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new na(e,r,this.states))}),this.fallbackTransition=Jw(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,r){return this.transitionFactories.find(o=>o.match(e,t,s,r))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function Jw(n,e,t){let s=[(o,a)=>!0],r={type:G.Sequence,steps:[],options:null},i={type:G.Transition,animation:r,matchers:s,options:null,queryCount:0,depCount:0};return new na(n,i,e)}function Id(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ey=new pi,yc=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],r=[],i=Ud(this._driver,t,s,r);if(s.length)throw fw(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=Fd(this._normalizer,e.keyframes,t,s);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let r=[],i=this._animations.get(e),o,a=new Map;if(i?(o=Hd(this._driver,t,i,$d,lc,new Map,new Map,s,ey,r),o.forEach(u=>{let p=mt(a,u.element,new Map);u.postStyleProps.forEach(f=>p.set(f,null))})):(r.push(mw()),o=[]),r.length)throw gw(r);a.forEach((u,p)=>{u.forEach((f,g)=>{u.set(g,this._driver.computeStyle(p,g,dn))})});let l=o.map(u=>{let p=a.get(u.element);return this._buildPlayer(u,new Map,p)}),c=Zn(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw vw(e);return t}listen(e,t,s,r){let i=_c(t,"","","");return Cc(this._getPlayer(e),s,i,r),()=>{}}command(e,t,s,r){if(s=="register"){this.register(e,r[0]);return}if(s=="create"){let o=r[0]||{};this.create(e,t,o);return}let i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Pd="ng-animate-queued",ty=".ng-animate-queued",ic="ng-animate-disabled",ny=".ng-animate-disabled",sy="ng-star-inserted",ry=".ng-star-inserted",iy=[],Wd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xt="__ng_removed",di=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),r=s?e.value:e;if(this.value=ly(r),s){let i=e,{value:o}=i,a=lp(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(r=>{s[r]==null&&(s[r]=t[r])})}}},ui="void",oc=new di(ui),Ec=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,kt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw ww(s,t);if(s==null||s.length==0)throw yw(t);if(!cy(s))throw Ew(s,t);let i=mt(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=mt(this._engine.statesByElement,e,new Map);return a.has(t)||(kt(e,Wo),kt(e,Wo+"-"+t),a.set(t,oc)),()=>{this._engine.afterFlush(()=>{let l=i.indexOf(o);l>=0&&i.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Sw(e);return t}trigger(e,t,s,r=!0){let i=this._getTrigger(t),o=new fi(this.id,t,e),a=this._engine.statesByElement.get(e);a||(kt(e,Wo),kt(e,Wo+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new di(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=oc),!(c.value===ui)&&l.value===c.value){if(!py(l.params,c.params)){let y=[],b=i.matchStyles(l.value,l.params,y),x=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{bs(e,b),fn(e,x)})}return}let f=mt(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let g=i.matchTransition(l.value,c.value,e,c.params),w=!1;if(!g){if(!r)return;g=i.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:w}),w||(kt(e,Pd),o.onStart(()=>{ar(e,Pd)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let b=this._engine.playersByElement.get(e);if(b){let x=b.indexOf(o);x>=0&&b.splice(x,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,Yo,!0);s.forEach(r=>{if(r[Xt])return;let i=this._engine.fetchNamespacesByElement(r);i.size?i.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,s,r){let i=this._engine.statesByElement.get(e),o=new Map;if(i){let a=[];if(i.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,ui,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&Zn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let r=new Set;t.forEach(i=>{let o=i.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=s.get(o)||oc,u=new di(ui),p=new fi(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(s.totalAnimations){let i=s.players.length?s.playersByQueriedElement.get(e):[];if(i&&i.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)s.markElementAsRemoved(this.id,e,!1,t);else{let i=e[Xt];(!i||i===Wd)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){kt(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let r=s.player;if(r.destroyed)return;let i=s.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=_c(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Cc(s.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(s)}),this._queue=[],t.sort((s,r)=>{let i=s.transition.ast.depCount,o=r.transition.ast.depCount;return i==0||o==0?i-o:this._engine.driver.containsElement(s.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Sc=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,i)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ec(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,r=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=s.indexOf(l);s.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return r.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let r=this._namespaceLookup[e];r&&r.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let r=this._namespaceList.indexOf(s);r>=0&&this._namespaceList.splice(r,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let r of s.values())if(r.namespaceId){let i=this._fetchNamespace(r.namespaceId);i&&t.add(i)}}return t}trigger(e,t,s,r){if(Qo(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!Qo(t))return;let i=t[Xt];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),kt(e,ic)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ar(e,ic))}removeNode(e,t,s){if(Qo(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,r,i){this.collectedLeaveElements.push(t),t[Xt]={namespaceId:e,setForRemoval:r,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,r,i){return Qo(t)?this._fetchNamespace(e).listen(t,s,r,i):()=>{}}_buildInstruction(e,t,s,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Yo,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,cc,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Xt];if(t&&t.setForRemoval){if(e[Xt]=Wd,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ic)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ny,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,r)=>this._balanceNamespaceList(s,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?Zn(t).onDone(()=>{s.forEach(r=>r())}):s.forEach(r=>r())}}reportError(e){throw bw(e)}_flushAnimations(e,t){let s=new pi,r=[],i=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);let L=this.driver.query(P,ty,!0);for(let F=0;F{let F=$d+y++;w.set(L,F),P.forEach(Z=>kt(Z,F))});let b=[],x=new Set,N=new Set;for(let P=0;Px.add(Z)):N.add(L))}let X=new Map,K=Md(f,Array.from(x));K.forEach((P,L)=>{let F=lc+y++;X.set(L,F),P.forEach(Z=>kt(Z,F))}),e.push(()=>{g.forEach((P,L)=>{let F=w.get(L);P.forEach(Z=>ar(Z,F))}),K.forEach((P,L)=>{let F=X.get(L);P.forEach(Z=>ar(Z,F))}),b.forEach(P=>{this.processLeaveNode(P)})});let We=[],Ke=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(F=>{let Z=F.player,Ie=F.element;if(We.push(Z),this.collectedEnterElements.length){let ze=Ie[Xt];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(F.triggerName)){let ys=ze.previousTriggersValues.get(F.triggerName),_t=this.statesByElement.get(F.element);if(_t&&_t.has(F.triggerName)){let bo=_t.get(F.triggerName);bo.value=ys,_t.set(F.triggerName,bo)}}Z.destroy();return}}let tn=!p||!this.driver.containsElement(p,Ie),ct=X.get(Ie),zn=w.get(Ie),fe=this._buildInstruction(F,s,zn,ct,tn);if(fe.errors&&fe.errors.length){Ke.push(fe);return}if(tn){Z.onStart(()=>bs(Ie,fe.fromStyles)),Z.onDestroy(()=>fn(Ie,fe.toStyles)),r.push(Z);return}if(F.isFallbackTransition){Z.onStart(()=>bs(Ie,fe.fromStyles)),Z.onDestroy(()=>fn(Ie,fe.toStyles)),r.push(Z);return}let ap=[];fe.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||ap.push(ze)}),fe.timelines=ap,s.append(Ie,fe.timelines);let Nv={instruction:fe,player:Z,element:Ie};o.push(Nv),fe.queriedElements.forEach(ze=>mt(a,ze,[]).push(Z)),fe.preStyleProps.forEach((ze,ys)=>{if(ze.size){let _t=l.get(ys);_t||l.set(ys,_t=new Set),ze.forEach((bo,Hl)=>_t.add(Hl))}}),fe.postStyleProps.forEach((ze,ys)=>{let _t=c.get(ys);_t||c.set(ys,_t=new Set),ze.forEach((bo,Hl)=>_t.add(Hl))})});if(Ke.length){let P=[];Ke.forEach(L=>{P.push(xw(L.triggerName,L.errors))}),We.forEach(L=>L.destroy()),this.reportError(P)}let Be=new Map,be=new Map;o.forEach(P=>{let L=P.element;s.has(L)&&(be.set(L,L),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Be))}),r.forEach(P=>{let L=P.element;this._getPreviousPlayers(L,!1,P.namespaceId,P.triggerName,null).forEach(Z=>{mt(Be,L,[]).push(Z),Z.destroy()})});let vs=b.filter(P=>Ld(P,l,c)),Ks=new Map;Nd(Ks,this.driver,N,c,dn).forEach(P=>{Ld(P,l,c)&&vs.push(P)});let ws=new Map;g.forEach((P,L)=>{Nd(ws,this.driver,new Set(P),l,qo)}),vs.forEach(P=>{let L=Ks.get(P),F=ws.get(P);Ks.set(P,new Map([...L?.entries()??[],...F?.entries()??[]]))});let Ul=[],ip=[],op={};o.forEach(P=>{let{element:L,player:F,instruction:Z}=P;if(s.has(L)){if(u.has(L)){F.onDestroy(()=>fn(L,Z.toStyles)),F.disabled=!0,F.overrideTotalTime(Z.totalTime),r.push(F);return}let Ie=op;if(be.size>1){let ct=L,zn=[];for(;ct=ct.parentNode;){let fe=be.get(ct);if(fe){Ie=fe;break}zn.push(ct)}zn.forEach(fe=>be.set(fe,Ie))}let tn=this._buildAnimation(F.namespaceId,Z,Be,i,ws,Ks);if(F.setRealPlayer(tn),Ie===op)Ul.push(F);else{let ct=this.playersByElement.get(Ie);ct&&ct.length&&(F.parentPlayer=Zn(ct)),r.push(F)}}else bs(L,Z.fromStyles),F.onDestroy(()=>fn(L,Z.toStyles)),ip.push(F),u.has(L)&&r.push(F)}),ip.forEach(P=>{let L=i.get(P.element);if(L&&L.length){let F=Zn(L);P.setRealPlayer(F)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!tn.destroyed);Ie.length?uy(this,L,Ie):this.processLeaveNode(L)}return b.length=0,Ul.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let L=this.players.indexOf(P);this.players.splice(L,1)}),P.play()}),Ul}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,r,i){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!i||i==ui;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(s||r)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let r=t.triggerName,i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,u=c!==i,p=mt(s,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(g=>{let w=g.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),g.destroy(),p.push(g)})}bs(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],u=new Set,p=new Set,f=t.timelines.map(w=>{let y=w.element;u.add(y);let b=y[Xt];if(b&&b.removedBeforeQueried)return new ir(w.duration,w.delay);let x=y!==l,N=hy((s.get(y)||iy).map(Be=>Be.getRealPlayer())).filter(Be=>{let be=Be;return be.element?be.element===y:!1}),X=i.get(y),K=o.get(y),We=Fd(this._normalizer,w.keyframes,X,K),Ke=this._buildPlayer(w,We,N);if(w.subTimeline&&r&&p.add(y),x){let Be=new fi(e,a,y);Be.setRealPlayer(Ke),c.push(Be)}return Ke});c.forEach(w=>{mt(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>ay(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>kt(w,Cd));let g=Zn(f);return g.onDestroy(()=>{u.forEach(w=>ar(w,Cd)),fn(l,t.toStyles)}),p.forEach(w=>{mt(r,w,[]).push(g)}),g}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new ir(e.duration,e.delay)}},fi=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ir,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(r=>Cc(e,s,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){mt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ay(n,e,t){let s=n.get(e);if(s){if(s.length){let r=s.indexOf(t);s.splice(r,1)}s.length==0&&n.delete(e)}return s}function ly(n){return n??null}function Qo(n){return n&&n.nodeType===1}function cy(n){return n=="start"||n=="done"}function Dd(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Nd(n,e,t,s,r){let i=[];t.forEach(l=>i.push(Dd(l)));let o=[];s.forEach((l,c)=>{let u=new Map;l.forEach(p=>{let f=e.computeStyle(c,p,r);u.set(p,f),(!f||f.length==0)&&(c[Xt]=oy,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Dd(l,i[a++])),o}function Md(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,r=new Set(e),i=new Map;function o(a){if(!a)return s;let l=i.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=s:l=o(c),i.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function kt(n,e){n.classList?.add(e)}function ar(n,e){n.classList?.remove(e)}function uy(n,e,t){Zn(t).onDone(()=>n.processLeaveNode(e))}function hy(n){let e=[];return zd(n,e),e}function zd(n,e){for(let t=0;tr.add(i)):e.set(n,s),t.delete(n),!0}var cr=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,i)=>{},this._transitionEngine=new Sc(e.body,t,s),this._timelineEngine=new yc(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,i)=>this.onRemovalComplete(r,i)}registerTrigger(e,t,s,r,i){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=Ud(this._driver,i,l,c);if(l.length)throw pw(r,l);c.length&&void 0,a=Zw(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,r){this._transitionEngine.insertNode(e,t,s,r)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,r){if(s.charAt(0)=="@"){let[i,o]=bd(s),a=r;this._timelineEngine.command(i,t,o,a)}else this._transitionEngine.trigger(e,t,s,r)}listen(e,t,s,r,i){if(s.charAt(0)=="@"){let[o,a]=bd(s);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,s,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function dy(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=ac(e[0]),e.length>1&&(s=ac(e[e.length-1]))):e instanceof Map&&(t=ac(e)),t||s?new bc(n,t,s):null}var lr=class lr{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let r=lr.initialStylesByElement.get(e);r||lr.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fn(this._element,this._initialStyles),this._endStyles&&(fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(lr.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),fn(this._element,this._initialStyles),this._state=3)}};lr.initialStylesByElement=new WeakMap;var bc=lr;function ac(n){let e=null;return n.forEach((t,s)=>{fy(s)&&(e=e||new Map,e.set(s,t))}),e}function fy(n){return n==="display"||n==="position"}var sa=class{constructor(e,t,s,r){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,r)=>{r!=="offset"&&e.set(r,this._finished?s:Ic(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ra=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Bd(e,t)}getParentElement(e){return Ac(e)}query(e,t,s){return Od(e,t,s)}computeStyle(e,t,s){return Ic(e,t)}animate(e,t,s,r,i,o=[]){let a=r==0?"both":"forwards",l={duration:s,delay:r,fill:a};i&&(l.easing=i);let c=new Map,u=o.filter(g=>g instanceof sa);Lw(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=Dw(t).map(g=>new Map(g));p=Fw(e,p,c);let f=dy(e,p);return new sa(e,p,l,f)}};var Xo="@",Gd="@.disabled",ia=class{constructor(e,t,s,r){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,r=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,r){this.delegate.setAttribute(e,t,s,r)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,r){this.delegate.setStyle(e,t,s,r)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Xo&&t==Gd?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xc=class extends ia{constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Xo?t.charAt(1)=="."&&t==Gd?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==Xo){let r=my(e),i=t.slice(1),o="";return i.charAt(0)!=Xo&&([i,o]=gy(i)),this.engine.listen(this.namespaceId,r,i,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function my(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function gy(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var oa=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,i)=>{let o=i?.parentNode(r);o&&i.removeChild(o,r)}}createRenderer(e,t){let s="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let p=()=>c.delete(r);u=new ia(s,r,this.engine,p),c.set(r,u)}return u}let i=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(i,o,e,c.name,c)};return t.data.animation.forEach(a),new xc(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(i=>{let[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var wy=(()=>{let e=class e extends cr{constructor(s,r,i){super(s,r,i)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(Ze(Mp),Ze(xs),Ze(Cs))},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})();function yy(){return new Zo}function Ey(n,e,t){return new oa(n,e,t)}var Qd=[{provide:Cs,useFactory:yy},{provide:cr,useClass:wy},{provide:_p,useFactory:Ey,deps:[Rp,cr,Tp]}],Sy=[{provide:xs,useFactory:()=>new ra},{provide:jl,useValue:"BrowserAnimations"},...Qd],PT=[{provide:xs,useClass:Tc},{provide:jl,useValue:"NoopAnimations"},...Qd];function Xd(){return Ap("NgEagerAnimations"),[...Sy]}var pA=Lv(Fv());var sp={};Mv(sp,{JitCompilerFactory:()=>Vl,VERSION:()=>cA,platformBrowserDynamic:()=>uA,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>Ev,\u0275platformCoreDynamic:()=>yv});var Yd=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Ar=class n{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let t=[],s=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},r=new n,i,o=r,a=!1;for(Yd.lastIndex=0;i=Yd.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new n,r.notSelectors.push(o)}let l=i[2];if(l){let u=i[3];u==="#"?o.addAttribute("id",l.slice(1)):u==="."?o.addClassName(l.slice(1)):o.setElement(l)}let c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=r),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=o=new n}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let r=0;r0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;te+=`:not(${t})`),e}},ma=class n{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){let t=new n;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new eu(e),this._listContexts.push(s));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!ma.createNotMatcher(this.notSelectors).match(e,null)),s&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}};var ss=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(ss||{}),Dh=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Dh||{}),wi=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(wi||{}),Kd={name:"custom-elements"},Zd={name:"no-errors-schema"};var le=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(le||{});function by(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function xy(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}function Cy(n){let e=by(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>xy(s)):[];return e.concat(...t)}function Nh(n){return n?Ar.parse(n).map(Cy):[]}var ga;function _y(n){return Iy(ky(n.nodes).join("")+`[${n.meaning}]`)}function Ay(n){return n.id||jm(n)}function jm(n){let e=new nu,t=n.nodes.map(s=>s.visit(e,null));return Wm(t.join(""),n.meaning)}var va=class{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?``:`${e.children.map(s=>s.visit(this)).join(", ")}`}visitPlaceholder(e,t){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,t){return`${e.value.visit(this)}`}visitBlockPlaceholder(e,t){return`${e.children.map(s=>s.visit(this)).join(", ")}`}},Ty=new va;function ky(n){return n.map(e=>e.visit(Ty,null))}var nu=class extends va{visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${s.join(", ")}}`}};function Iy(n){ga??=new TextEncoder;let e=[...ga.encode(n)],t=Ny(e,Mh.Big),s=e.length*8,r=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;t[s>>5]|=128<<24-s%32,t[(s+64>>9<<4)+15]=s;for(let u=0;u>>0).toString(16).padStart(8,"0")}function Py(n,e,t,s){return n<20?[e&t|~e&s,1518500249]:n<40?[e^t^s,1859775393]:n<60?[e&t|e&s|t&s,2400959708]:[e^t^s,3395469782]}function Jd(n){ga??=new TextEncoder;let e=ga.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=ef(t,e.length,0),r=ef(t,e.length,102072);return s==0&&(r==0||r==1)&&(s=s^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(s))<>BigInt(63)&BigInt(1),t+=Jd(e)),BigInt.asUintN(63,t).toString()}function ef(n,e,t){let s=2654435769,r=2654435769,i=0,o=e-12;for(;i<=o;i+=12){s+=n.getUint32(i,!0),r+=n.getUint32(i+4,!0),t+=n.getUint32(i+8,!0);let l=tf(s,r,t);s=l[0],r=l[1],t=l[2]}let a=e-i;return t+=e,a>=4?(s+=n.getUint32(i,!0),i+=4,a>=8?(r+=n.getUint32(i,!0),i+=4,a>=9&&(t+=n.getUint8(i++)<<8),a>=10&&(t+=n.getUint8(i++)<<16),a===11&&(t+=n.getUint8(i++)<<24)):(a>=5&&(r+=n.getUint8(i++)),a>=6&&(r+=n.getUint8(i++)<<8),a===7&&(r+=n.getUint8(i++)<<16))):(a>=1&&(s+=n.getUint8(i++)),a>=2&&(s+=n.getUint8(i++)<<8),a===3&&(s+=n.getUint8(i++)<<16)),tf(s,r,t)[2]}function tf(n,e,t){return n-=e,n-=t,n^=t>>>13,e-=t,e-=n,e^=n<<8,t-=n,t-=e,t^=e>>>13,n-=e,n-=t,n^=t>>>12,e-=t,e-=n,e^=n<<16,t-=n,t-=e,t^=e>>>5,n-=e,n-=t,n^=t>>>3,e-=t,e-=n,e^=n<<10,t-=n,t-=e,t^=e>>>15,[n,e,t]}var Mh=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(Mh||{});function ur(n,e){return Dy(n,e)[1]}function Dy(n,e){let t=(n&65535)+(e&65535),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|t&65535]}function Nc(n,e){return n<>>32-e}function Ny(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function My(n,e,t){let s=0;if(t===Mh.Big)for(let r=0;r<4;r++)s+=nf(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=nf(n,e+r)<<8*r;return s}var zm=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(zm||{}),wa=class{constructor(e=zm.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Wn=function(n){return n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None",n}(Wn||{}),En=class extends wa{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},$t=class extends wa{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}};var wo=new En(Wn.Dynamic),Ot=new En(Wn.Inferred),Ly=new En(Wn.Bool),NT=new En(Wn.Int),Lh=new En(Wn.Number),Gm=new En(Wn.String),MT=new En(Wn.Function),Sn=new En(Wn.None),Ni=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(Ni||{}),A=function(n){return n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseOr=11]="BitwiseOr",n[n.BitwiseAnd=12]="BitwiseAnd",n[n.Lower=13]="Lower",n[n.LowerEquals=14]="LowerEquals",n[n.Bigger=15]="Bigger",n[n.BiggerEquals=16]="BiggerEquals",n[n.NullishCoalesce=17]="NullishCoalesce",n}(A||{});function Fy(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function Qm(n,e,t){let s=n.length;if(s!==e.length)return!1;for(let r=0;rt.isEquivalent(s))}var re=class{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new bt(this,e,null,t)}key(e,t,s){return new Vn(this,e,t,s)}callFn(e,t,s){return new nt(this,e,null,t,s)}instantiate(e,t,s){return new Li(this,e,t,s)}conditional(e,t=null,s){return new $n(this,e,t,null,s)}equals(e,t){return new Q(A.Equals,this,e,null,t)}notEquals(e,t){return new Q(A.NotEquals,this,e,null,t)}identical(e,t){return new Q(A.Identical,this,e,null,t)}notIdentical(e,t){return new Q(A.NotIdentical,this,e,null,t)}minus(e,t){return new Q(A.Minus,this,e,null,t)}plus(e,t){return new Q(A.Plus,this,e,null,t)}divide(e,t){return new Q(A.Divide,this,e,null,t)}multiply(e,t){return new Q(A.Multiply,this,e,null,t)}modulo(e,t){return new Q(A.Modulo,this,e,null,t)}and(e,t){return new Q(A.And,this,e,null,t)}bitwiseOr(e,t,s=!0){return new Q(A.BitwiseOr,this,e,null,t,s)}bitwiseAnd(e,t,s=!0){return new Q(A.BitwiseAnd,this,e,null,t,s)}or(e,t){return new Q(A.Or,this,e,null,t)}lower(e,t){return new Q(A.Lower,this,e,null,t)}lowerEquals(e,t){return new Q(A.LowerEquals,this,e,null,t)}bigger(e,t){return new Q(A.Bigger,this,e,null,t)}biggerEquals(e,t){return new Q(A.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(Vy,e)}nullishCoalesce(e,t){return new Q(A.NullishCoalesce,this,e,null,t)}toStmt(){return new Ht(this,null)}},qt=class n extends re{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof n&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new n(this.name,this.type,this.sourceSpan)}set(e){return new ya(this.name,e,null,this.sourceSpan)}},Tr=class n extends re{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},j=class n extends re{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof n&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new n(this.node,this.type,this.sourceSpan)}},ya=class n extends re{constructor(e,t,s,r){super(s||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof n&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new n(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Xe(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Ot,Ue.Final)}},Mi=class n extends re{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},kr=class n extends re{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new n(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},nt=class n extends re{constructor(e,t,s,r,i=!1){super(s,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof n&&this.fn.isEquivalent(e.fn)&&St(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new n(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},Ea=class n extends re{constructor(e,t,s,r){super(s,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof n&&this.tag.isEquivalent(e.tag)&&Qm(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&St(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}clone(){return new n(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Li=class n extends re{constructor(e,t,s,r){super(s,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof n&&this.classExpr.isEquivalent(e.classExpr)&&St(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new n(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},je=class n extends re{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new n(this.value,this.type,this.sourceSpan)}},su=class n{constructor(e,t){this.elements=e,this.expressions=t}clone(){return new n(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},ru=class n{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??iu(da(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Ms=class{constructor(e,t){this.text=e,this.sourceSpan=t}},xr=class{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},By="|",sf="@@",Oy="\u241F",Sa=class n extends re{constructor(e,t,s,r,i){super(Gm,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new n(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${By}${e}`),this.metaBlock.customId&&(e=`${e}${sf}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Oy}${t}`}),rf(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let t=this.placeHolderNames[e-1],s=this.messageParts[e],r=t.text;return t.associatedMessage?.legacyIds.length===0&&(r+=`${sf}${Wm(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),rf(r,s.text,this.getMessagePartSourceSpan(e))}},da=n=>n.replace(/\\/g,"\\\\"),Ry=n=>n.replace(/^:/,"\\:"),$y=n=>n.replace(/:/g,"\\:"),iu=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function rf(n,e,t){return n===""?{cooked:e,raw:iu(Ry(da(e))),range:t}:{cooked:`:${n}:${e}`,raw:iu(`:${$y(da(n))}:${da(e)}`),range:t}}var $s=class n extends re{constructor(e,t,s=null,r){super(t,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof n&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new n(this.value,this.type,this.typeParams,this.sourceSpan)}};var $n=class n extends re{constructor(e,t,s=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Fy(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new n(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var Fi=class n extends re{constructor(e,t){super(Ly,t),this.condition=e}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},Fe=class n{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new n(this.name,this.type)}},Fn=class n extends re{constructor(e,t,s,r,i){super(s,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return(e instanceof n||e instanceof Oi)&&St(this.params,e.params)&&St(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Oi(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new n(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Vs=class n extends re{constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof n)||!St(this.params,e.params)?!1:this.body instanceof re&&e.body instanceof re?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?St(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,t){return e.visitArrowFunctionExpr(this,t)}clone(){return new n(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Xe(e,this,Ot,t,this.sourceSpan)}},Ir=class n extends re{constructor(e,t,s,r,i=!0){super(s||Lh,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},Q=class n extends re{constructor(e,t,s,r,i,o=!0){super(r||t.type,i),this.operator=e,this.rhs=s,this.parens=o,this.lhs=t}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},bt=class n extends re{constructor(e,t,s,r){super(s,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new kr(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Vn=class n extends re{constructor(e,t,s,r){super(s,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new Mi(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},Ut=class n extends re{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof n&&St(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new n(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Pr=class n{constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new n(this.key,this.value.clone(),this.quoted)}},Kt=class n extends re{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof n&&St(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let e=this.entries.map(t=>t.clone());return new n(e,this.type,this.sourceSpan)}};var Bi=new je(null,null,null),Vy=new je(null,Ot,null),Ue=function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n}(Ue||{}),ou=class{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},ba=class extends ou{constructor(e){super("",!0,!0),this.tags=e}toString(){return Wy(this.tags)}},qs=class{constructor(e=Ue.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Xe=class n extends qs{constructor(e,t,s,r,i,o){super(r,i,o),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof n&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},Oi=class n extends qs{constructor(e,t,s,r,i,o,a){super(i,o,a),this.name=e,this.params=t,this.statements=s,this.type=r||null}isEquivalent(e){return e instanceof n&&St(this.params,e.params)&&St(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},Ht=class n extends qs{constructor(e,t,s){super(Ue.None,t,s),this.expr=e}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}},ot=class n extends qs{constructor(e,t=null,s){super(Ue.None,t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}},xa=class n extends qs{constructor(e,t,s=[],r,i){super(Ue.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&St(this.trueCase,e.trueCase)&&St(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function qy(n=[]){return new ba(n)}function H(n,e,t){return new qt(n,e,t)}function T(n,e=null,t){return new $s(n,null,e,t)}function He(n,e,t){return new $t(n,e,t)}function Pl(n){return new Tr(n)}function se(n,e,t){return new Ut(n,e,t)}function st(n,e=null){return new Kt(n.map(t=>new Pr(t.key,t.value,t.quoted)),e,null)}function Uy(n,e){return new Fi(n,e)}function Xr(n,e,t,s,r){return new Fn(n,e,t,s,r)}function bn(n,e,t,s){return new Vs(n,e,t,s)}function Dl(n,e,t,s,r){return new xa(n,e,t,s,r)}function Hy(n,e,t,s){return new Ea(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function jy(n,e,t,s,r){return new Sa(n,e,t,s,r)}function of(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}function Wy(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${of(n[0])} `;let e=`* +import{a as td,b as Ne,c as nd,d as sd,e as rd,f as hd,g as Yl,i as dd}from"./chunk-OK3AR2TD.js";import{a as pn}from"./chunk-V6EVLSKF.js";import{b as ad,e as or,f as ud}from"./chunk-JE2DBAFS.js";import{a as G,b as dn,c as oi,d as Yn,e as cd,f as Re,h as Kn,k as ir,l as Xl,m as qo}from"./chunk-W7AFIDCE.js";import{a as Fv}from"./chunk-54YLOEMX.js";import{a as Qp}from"./chunk-B5EPJNTD.js";import{a as sr}from"./chunk-4E6RZBBM.js";import{a as pd}from"./chunk-VLXUGY6P.js";import{a as ai}from"./chunk-EB65ROO7.js";import{b as ld}from"./chunk-VIPKQBAQ.js";import{a as Vo}from"./chunk-EAEBZZLM.js";import"./chunk-QWH4BMSJ.js";import{a as rr}from"./chunk-RNWIIYZZ.js";import{a as Tt}from"./chunk-SUAWKU6Z.js";import{a as id,b as od}from"./chunk-ZXTET2VA.js";import{a as Xp,c as $o,d as Qn,e as Xn,f as Yp,g as Kp,h as Zp,i as Jp,j as hn,k as ed}from"./chunk-6RK5MU4O.js";import{A as zp,B as Ql,C as Gp,D as Ro,E as Gn,F as _e,G as tr,H as At,I as nr,J as cn,K as dt,L as un,b as Mp,c as Bo,d as Js,g as er,i as Lp,j as Fp,k as Oo,l as Bp,m as Op,n as Rp,o as $p,p as Vp,q as ii,s as qp,t as Up,u as an,v as Hp,w as ln,x as jp,y as Wp,z as Gl}from"./chunk-LT3W5FMN.js";import{$a as D,$b as Tn,A as pp,Ab as rn,Ac as zl,B as dp,Ba as sn,Bb as zt,Bc as Fo,Cb as Gt,Da as si,Db as B,Dc as Np,Eb as O,F as Ao,Fb as me,Ha as Cp,Ia as jl,Ib as Do,Jb as Ce,K as To,Lc as Oe,Nb as ee,Ob as ne,Q as fp,R as mp,Rb as ri,T as gp,Tb as ut,U as J,Ub as ht,Vb as pt,W as vp,Wb as No,X as nn,Xb as ge,Yb as Qt,Za as ko,Zb as on,_b as An,aa as Ze,ab as M,ac as kn,bc as kp,c as cp,cc as De,db as _p,ea as wp,eb as Io,fa as Pe,fb as Ap,gb as Tp,ha as yp,hc as ye,ic as Ee,k as up,ka as Ep,lc as Ip,m as hp,pa as Sp,qa as ce,r as xo,ra as ue,rb as we,s as Co,tb as te,tc as Pp,ua as bp,ub as Po,vb as Je,wa as xp,wb as Wl,wc as Mo,xc as Lo,y as _o,yb as pe,yc as Dp}from"./chunk-ZKAUCJHV.js";import{a as E,b as xe,c as lp,e as Mv,f as Lv,h as Zs}from"./chunk-DEPBX7UX.js";var fd=(()=>{let e=class e{constructor(s){this.el=s}onReturnPressed(s){s.preventDefault();let r=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);r&&r.focus()}};e.\u0275fac=function(r){return new(r||e)(M(sn))},e.\u0275dir=yp({type:e,selectors:[["","dswFocusNext",""]],hostBindings:function(r,i){r&1&&ee("keydown.enter",function(a){return i.onReturnPressed(a)})},standalone:!0});let n=e;return n})();function Bv(n,e){if(n&1){let t=Ce();B(0,"button",14),ee("click",function(){ce(t);let r=ne();return ue(r.onLoginOAuthClick())}),ge(1),ye(2,"i18n"),O()}n&2&&(D(),on("",Ee(2,1,"signinOAuth")," "))}var Jl=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u){this.ds=s,this.i18n=r,this.hs=i,this.ss=o,this.ns=a,this.st=l,this.route=c,this.router=u,this.startTime=-1,this.hs.visible$.next(!1),this.ss.hide(),delete sessionStorage.dashboarList,_e.desktop&&delete localStorage.DSWMobileServer,this.initModel(),_e.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let p=this.route.snapshot.queryParamMap.get("ns"),f=this.route.snapshot.queryParamMap.get("from");f&&(p=f.split("/").filter(g=>g)[0]),this.model.namespace=p||dt||""}initModel(){this.model={isDesktop:_e.desktop,ver:_e.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:"",oAuthUrl:""}}initNamespace(){let s=this.route.snapshot.queryParamMap.get("from");if(s){let r=decodeURIComponent(s),i=this.getParameterByName("ns",r);i&&(this.model.namespace=i)}else{let r=this.route.snapshot.queryParamMap.get("ns");r&&(this.model.namespace=r)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(s=>{try{if(typeof s=="string"){let r=JSON.parse(s);this.model.oAuthUrl=r.url||""}else this.model.oAuthUrl=s.url||""}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let s=localStorage.selectedServer;if(!s||(s=parseInt(s,10),isNaN(s)))return;let r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(o){console.error(o)}let i=r[s];i&&(this.model.server=i.server||"",this.model.login=i.login||"",this.model.password=i.password||"",this.model.namespace=i.namespace||"")}saveServer(){let s=prompt("Please enter server name",this.model.server),r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(i){console.error(i)}r.push({name:s,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(r),localStorage.selectedServer=r.length-1}showServers(){}getParameterByName(s,r){s=s.replace(/[\[\]]/g,"\\$&");let o=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(r);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.model.oAuthUrl}onLoginClick(){this.clearError();let s=this.getMobileUrl();this.startTime=new Date().getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,_e.mobile&&!_e.desktop?s:"").catch(r=>this.onError(r)).then(r=>this.onSuccess(r,this.model.namespace))}getMobileUrl(){let s=this.model.server,r=s.replace("://","").indexOf("/")!==-1;return s.toLowerCase().indexOf("http")===-1&&(s="http://"+s),r||(s+="/MDX2JSON/"),s.charAt(s.length-1)!=="/"&&(s+="/"),s}onSuccess(s,r){if(!s)return;_e.mobile&&_e.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username,this.ns.setNamespaces(s.Mappings.Mapped),this.ns.setCurrent(r),this.st.loadServerSettings(s);let i=this.route.snapshot.queryParamMap.get("from");i?this.router.navigateByUrl(i):this.router.navigateByUrl("/"+r)}onError(s){let{error:r,status:i}=s;if(new Date().getTime()-this.startTime>=_e.const.timeout){this.showError(this.i18n.get("errTimeout"));return}switch(i){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(r.Error||s.message);break;default:this.showError(s.message);break}}clearError(){this.model.error=""}showError(s){this.model.error=s}scanSettings(){cordova.plugins.barcodeScanner.scan(s=>{let i=s.text.split("|");if(i[0].toLowerCase()!=="dsw"){alert("Incorrect QR code");return}this.model.server=i[1],this.model.login=i[2],this.model.password=i[3],this.model.namespace=i[4],this.onLoginClick()},s=>{alert("Scanning failed: "+s)})}};e.\u0275fac=function(r){return new(r||e)(M(At),M(Gn),M(pn),M(Tt),M(un),M(cn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-login-screen"]],standalone:!0,features:[De],decls:24,vars:26,consts:[[1,"ver"],["desktop-hidden","",1,"qr-scanner-btn",3,"click"],[1,"fa","fa-camera"],[1,"login-form"],[1,"logo"],["type","text","name","server","focus-next","dswLogin",3,"ngModelChange","hidden","ngModel","placeholder"],["id","dswLogin","type","text","name","dswLogin","dswAutoFocus","","dswFocusNext","dswPasword",3,"ngModelChange","ngModel","placeholder"],["id","dswPasword","name","dswPasword","type","password","dswFocusNext","ns",3,"ngModelChange","ngModel","placeholder"],["id","ns","type","text","dswFocusNext","login","required","",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"button-row"],["desktop-hidden","",1,"btn","btn-success",3,"click","hidden"],["id","login",1,"btn",3,"click"],["id","btnLoginOAuth",1,"btn","btn-link"],[1,"msg-error",3,"hidden"],["id","btnLoginOAuth",1,"btn","btn-link",3,"click"]],template:function(r,i){r&1&&(B(0,"span",0),ge(1),O(),B(2,"span",1),ee("click",function(){return i.scanSettings()}),me(3,"i",2),O(),B(4,"div",3)(5,"div",4),ge(6," IRIS Analytics "),O(),B(7,"input",5),ye(8,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.server,a)||(i.model.server=a),a}),O(),B(9,"input",6),ye(10,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.login,a)||(i.model.login=a),a}),O(),B(11,"input",7),ye(12,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.password,a)||(i.model.password=a),a}),O(),B(13,"input",8),ye(14,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.namespace,a)||(i.model.namespace=a),a}),O(),B(15,"div",9)(16,"button",10),ee("click",function(){return i.showServers()}),O(),B(17,"button",10),ee("click",function(){return i.saveServer()}),O(),B(18,"button",11),ee("click",function(){return i.onLoginClick()}),ge(19),ye(20,"i18n"),O(),we(21,Bv,3,3,"button",12),O(),B(22,"div",13),ge(23),O()()),r&2&&(D(),Qt(i.model.ver),D(6),ri("placeholder",Ee(8,16,"server")),te("hidden",i.model.isDesktop),An("ngModel",i.model.server),D(2),ri("placeholder",Ee(10,18,"login")),An("ngModel",i.model.login),D(2),ri("placeholder",Ee(12,20,"password")),An("ngModel",i.model.password),D(2),ri("placeholder",Ee(14,22,"namespace")),An("ngModel",i.model.namespace),D(3),te("hidden",i.model.isDesktop),D(),te("hidden",i.model.isDesktop),D(2),Qt(Ee(20,24,"signin")),D(2),pe(i.model.oAuthUrl?21:-1),D(),te("hidden",!i.model.error),D(),on(" ",i.model.error," "))},dependencies:[hn,$o,Qn,Jp,Xn,Qp,fd,Ro],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:url(./assets/img/bg.jpg);background-size:cover}.login-form[_ngcontent-%COMP%]{position:relative;width:300px;padding:25px;margin-bottom:20vh;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 10px #0000001a;border-radius:10px;background-color:#ffffff80}.login-form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%;display:flex;justify-content:center;align-items:center}.ver[_ngcontent-%COMP%]{position:absolute;right:2px;top:0;font-size:8px}.msg-error[_ngcontent-%COMP%]{text-align:center;padding-top:16px;word-break:break-word;position:absolute;width:100%;font-size:14px;color:#d11818;margin-left:-25px;margin-top:25px;font-weight:500}img[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{margin-bottom:24px;width:100%}@media (max-width: 576px){input[_ngcontent-%COMP%]{margin-bottom:16px;height:40px}}.btn[_ngcontent-%COMP%]{width:100%;display:block;margin-top:30px;margin-bottom:4px;height:40px}.btn-link[_ngcontent-%COMP%]{margin-bottom:-15px}.logo[_ngcontent-%COMP%]{font-size:26px;font-weight:700;margin-bottom:30px;color:#1c1d20}"]});let n=e;return n})();var vd=["gridster"],$v=["widgets"];function Vv(n,e){if(n&1&&me(0,"dsw-widget",9,1),n&2){let t=ne().$implicit,s=ne();Je("transparent",s.itemDesc[t.idx].inline),te("widget",s.itemDesc[t.idx])}}function qv(n,e){n&1&&me(0,"div",7),n&2&&te("ngClass",e)}function Uv(n,e){if(n&1&&(B(0,"label",8)(1,"span"),ge(2),O()()),n&2){let t=ne().$implicit,s=ne();te("title",t.customTitle||t.title),D(),Wl(s.model.fontColors[t.fontColor]),D(),Qt(t.customTitle||t.title)}}function Hv(n,e){if(n&1){let t=Ce();B(0,"gridster-item",5),ee("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),we(1,Vv,2,3,"dsw-widget",6)(2,qv,1,1,"div",7)(3,Uv,3,4,"label",8),O()}if(n&2){let t,s=e.$implicit,r=ne();Wl("tile cl"+s.color+" "+(s.template?"tile-with-widget":"")),Po("background-image","url("+s.Cover+")"),Je("selected",r.model.edItem==s)("editing",r.model.edItem),te("item",s),D(),pe(r.itemDesc[s.idx]?1:-1),D(),pe((t=!r.itemDesc[s.idx]&&r.model.icons[s.icon])?2:-1,t),D(),pe(s.hideTitle?-1:3)}}var yd=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.st=s,this.route=r,this.router=i,this.ss=o,this.hs=a,this.ms=l,this.ds=c,this.es=u,this.i18n=p,this.fs=f,this.ns=g,this.itemDesc=[],this.isResizing=!1,this.model={tiles:[],widgetList:[],fontColors:_e.const.fontColors,icons:_e.const.icons},this.tilesOptions={maxCols:8,minCols:8,fixedRowHeight:122,gridType:"verticalFixed",mobileBreakpoint:576,margin:20,draggable:{enabled:!1},resizable:{enabled:!1}},this.isSpinner=!0,this.folder="",this.isLoading=!1,this.subEditDashboard=this.ms.onEditDashboard.pipe(ai()),this.subSidebarAnimEnd=this.ss.onAnimEnd.pipe(ai()),this.settings=s.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear()}ngOnInit(){this.subscribeForData(),this.subscribeForEditingMode(),this.subscribeForGridsterAnimations(),this.subscribeForGridsterResize()}getDesc(s){return this.itemDesc[s]}startEditing(s){this.model.edItem=s,this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!0),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!0),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.ss.showComponent({component:import("./chunk-SXKIVI4L.js"),single:!0,inputs:{tiles:this.model.tiles,tile:this.model.edItem,folder:this.folder}})}stopEditing(){this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!1),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!1),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.model.edItem=void 0}onItemClicked(s){if(this.model.edItem){this.startEditing(s);return}let r=s.fullPath;s.isFolder&&(r=s.title===""?"..":s.title),this.router.navigate([r],{relativeTo:s.isFolder?this.route:this.route.root.children[0]})}retrieveData(s,r){if(s){if(s&&s.Error){this.es.show(s.data.Error);return}if(s){if(!s.children||s.children.length===0){this.es.show(this.i18n.get("errNoDashboards"));return}this.model.tiles=this.getTiles(s,r)}return this.model.tiles}}setupList(s){for(let r=0;r{this.retriveWidgetData(i,s[r])}))}createDataCallback(s){return function(r){this.retriveWidgetData(r,s)}}getTiles(s,r){let i=s.children,o=this.st.getTilesSettings();if(o=o[this.folder]||{},i.forEach(a=>{a.fullPath||(a.fullPath=a.path)}),r)i=i.filter(a=>a.title.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())!==-1);else{this.folder&&(i=i.filter(l=>l.fullPath.startsWith(this.folder+"/")));let a=[];i.forEach(l=>{l.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(l.path=l.fullPath.slice(this.folder.length!==0?this.folder.length+1:0,l.fullPath.length));let c=l.path.split("/");c.length!==1&&(a.some(u=>u===c[0])||a.push(c[0]))}),i=i.filter(l=>l.path.split("/").length===1),i=[...i,...a.map(l=>({isFolder:!0,title:l}))]}i.forEach(a=>{!a.isFolder&&!a.title&&(a.title=a.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!r&&i.push({isFolder:!0,title:""}),i=i.sort((a,l)=>a.isFolder&&!l.isFolder?-1:l.isFolder&&!a.isFolder||a.title>l.title?1:-1);for(let a=0;a{!this.widgets||s.propertyName!=="width"&&s.propertyName!=="height"||this.widgets.toArray().forEach(r=>{r.component&&r.component.onResize()})})}subscribeForGridsterAnimations(){this.subSidebarAnimEnd.subscribe(()=>{this.tilesOptions?.api?.resize&&this.tilesOptions.api.resize()})}subscribeForEditingMode(){this.ms.onEditDashboard.subscribe(s=>{s?this.startEditing(this.model.tiles[0]):this.stopEditing()})}subscribeForData(){this.data$=Co([this.st.onTilesChanged.pipe(fp("")),this.route.url,this.route.params.pipe(mp(s=>(s.ns?.toLowerCase()!==dt.toLowerCase()&&this.ns.setCurrent(s.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(To())]).pipe(xo(([s,r,i,o])=>{this.folder=decodeURIComponent(r.map(l=>l.path).join("/")||""),this.isLoading=!1;let a=this.retrieveData(JSON.parse(JSON.stringify(i)),o||"");return this.isSpinner=!1,a}))}};e.\u0275fac=function(r){return new(r||e)(M(cn),M(an),M(ln),M(Tt),M(pn),M(Vo),M(At),M(tr),M(Gn),M(sr),M(un))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-folder-screen"]],viewQuery:function(r,i){if(r&1&&(ut(vd,7,sn),ut(vd,7),ut($v,5,Yl)),r&2){let o;ht(o=pt())&&(i.gridster=o.first),ht(o=pt())&&(i.gridsterComp=o.first),ht(o=pt())&&(i.widgets=o)}},standalone:!0,features:[De],decls:6,vars:6,consts:[["gridster",""],["widgets",""],[1,"gridster",3,"options"],[3,"selected","editing","class","item","backgroundImage"],["ngSrc","assets/img/spinner.svg","height","100","width","100","priority","",3,"hidden"],[3,"click","item"],[3,"widget","transparent"],[1,"tile-icon",3,"ngClass"],[3,"title"],[3,"widget"]],template:function(r,i){r&1&&(B(0,"gridster",2,0),zt(2,Hv,4,12,"gridster-item",3,rn),ye(4,"async"),O(),me(5,"img",4)),r&2&&(Je("no-anim",i.isResizing),te("options",i.tilesOptions),D(2),Gt(Ee(4,4,i.data$)),D(3),te("hidden",!i.isSpinner))},dependencies:[nd,sd,Yl,er,Oo,Bo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;width:100%;height:100%}gridster[_ngcontent-%COMP%]{background:var(--cl-bg);overflow-y:overlay!important}.tile[_ngcontent-%COMP%]{border-radius:var(--tile-border-radius);cursor:pointer;overflow:hidden;user-select:none;-webkit-user-select:none;background-size:cover;background:transparent no-repeat 50% 50%;padding:20px}.tile[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #0000001a}.tile.editing[_ngcontent-%COMP%]{opacity:.5}.tile.selected[_ngcontent-%COMP%]{opacity:1;border:2px solid var(--cl-accent)}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{border:none;border-bottom:var(--tile-border);display:flex!important;justify-content:flex-start;align-items:center}}.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Oxygen;font-style:normal;outline-color:#1c5ec7;position:absolute;inset:auto 20px 20px;text-align:left;font-weight:400;font-size:14px;line-height:16px;color:var(--cl-header-txt);max-height:2.3em;display:inline-block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 576px){.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:static;font-size:14px}}.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-family:FontAwesome;height:50%;width:50%;margin-top:10%;margin-left:25%;margin-right:25%}@media (max-width: 576px){.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:80%;width:80%;margin:0}}dsw-widget[_ngcontent-%COMP%]{pointer-events:none}dsw-widget.transparent[_ngcontent-%COMP%]{background-color:transparent}"]});let n=e;return n})();function jv(n,e){n&1&&me(0,"dsw-folder-screen")}function Wv(n,e){n&1&&me(0,"dsw-dashboard-screen")}var Ed=(()=>{let e=class e{constructor(s,r){this.route=s,this.hs=r,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=Co([this.route.url,this.route.params]).subscribe(([i,o])=>{let a=[o.name,...i.map(l=>l.path)].join("/");this.isFolder=a.indexOf(".dashboard")===-1})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(M(an),M(pn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-main-screen"]],standalone:!0,features:[De],decls:2,vars:2,template:function(r,i){r&1&&we(0,jv,1,0,"dsw-folder-screen")(1,Wv,1,0,"dsw-dashboard-screen"),r&2&&(pe(i.isFolder?0:-1),D(),pe(i.isFolder?-1:1))},dependencies:[yd,dd],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});let n=e;return n})();var ec=(()=>{let e=class e{constructor(s,r,i,o,a,l){this.router=s,this.ds=r,this.route=i,this.st=o,this.ns=a,this.wt=l,this.previousNS="",this.model={},this.isLoaded=!1}checkEmbed(s){let r=this.st.serverSettings?.Embed;return r&&s.url.split("?")[0]!==r?(this.router.navigateByUrl(r),!0):!1}resolve(s,r){let i=s.params.ns;return new cp(o=>{let a=()=>{this.isLoaded=!0,o.next(this.model),o.complete()};if(this.checkEmbed(r))return;if(!dt){if(!i){this.router.navigateByUrl("/login"),a();return}this.ns.setCurrent(i)}if(this.previousNS===dt){a();return}let l=this.ds.loadConfig(dt).then(u=>this.st.loadConfig(u)).catch(u=>this.st.loadConfig(null)),c=this.loadServerSettings();Promise.all([l,c]).finally(()=>{this.checkEmbed(r)||(this.previousNS=dt,a())})})}loadServerSettings(){return new Promise(s=>{this.ds.getSettings(dt).then(r=>{this.st.loadServerSettings(r)}).finally(()=>s())})}};e.\u0275fac=function(r){return new(r||e)(Ze(ln),Ze(At),Ze(an),Ze(cn),Ze(un),Ze(or))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var tc=[{path:"",component:Jl,resolve:{model:un}},{path:"login",component:Jl},{path:":ns",resolve:{model:ec},runGuardsAndResolvers:"always",children:[{path:"**",component:Ed,data:{isDashboard:!0},resolve:{model:ec},runGuardsAndResolvers:"always"}]}];function Sd(n){return new J(3e3,!1)}function Gv(){return new J(3100,!1)}function Qv(){return new J(3101,!1)}function Xv(n){return new J(3001,!1)}function Yv(n){return new J(3003,!1)}function Kv(n){return new J(3004,!1)}function Zv(n,e){return new J(3005,!1)}function Jv(){return new J(3006,!1)}function ew(){return new J(3007,!1)}function tw(n,e){return new J(3008,!1)}function nw(n){return new J(3002,!1)}function sw(n,e,t,s,r){return new J(3010,!1)}function rw(){return new J(3011,!1)}function iw(){return new J(3012,!1)}function ow(){return new J(3200,!1)}function aw(){return new J(3202,!1)}function lw(){return new J(3013,!1)}function cw(n){return new J(3014,!1)}function uw(n){return new J(3015,!1)}function hw(n){return new J(3016,!1)}function pw(n,e){return new J(3404,!1)}function dw(n){return new J(3502,!1)}function fw(n){return new J(3503,!1)}function mw(){return new J(3300,!1)}function gw(n){return new J(3504,!1)}function vw(n){return new J(3301,!1)}function ww(n,e){return new J(3302,!1)}function yw(n){return new J(3303,!1)}function Ew(n,e){return new J(3400,!1)}function Sw(n){return new J(3401,!1)}function bw(n){return new J(3402,!1)}function xw(n,e){return new J(3505,!1)}function Zn(n){switch(n.length){case 0:return new ir;case 1:return n[0];default:return new Xl(n)}}function Fd(n,e,t=new Map,s=new Map){let r=[],i=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,p=u&&a||new Map;l.forEach((f,g)=>{let w=g,y=f;if(g!=="offset")switch(w=n.normalizePropertyName(w,r),y){case qo:y=t.get(g);break;case dn:y=s.get(g);break;default:y=n.normalizeStyleValue(g,w,y,r);break}p.set(w,y)}),u||i.push(p),a=p,o=c}),r.length)throw dw(r);return i}function Cc(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&nc(t,"start",n)));break;case"done":n.onDone(()=>s(t&&nc(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&nc(t,"destroy",n)));break}}function nc(n,e,t){let s=t.totalTime,r=!!t.disabled,i=_c(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,r),o=n._data;return o!=null&&(i._data=o),i}function _c(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function mt(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function bd(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Cw=typeof document>"u"?null:document.documentElement;function Ac(n){let e=n.parentNode||n.host||null;return e===Cw?null:e}function _w(n){return n.substring(1,6)=="ebkit"}var Es=null,xd=!1;function Aw(n){Es||(Es=Tw()||{},xd=Es.style?"WebkitAppearance"in Es.style:!1);let e=!0;return Es.style&&!_w(n)&&(e=n in Es.style,!e&&xd&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Es.style)),e}function Tw(){return typeof document<"u"?document.body:null}function Bd(n,e){for(;e;){if(e===n)return!0;e=Ac(e)}return!1}function Od(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Tc=(()=>{let e=class e{validateStyleProperty(s){return Aw(s)}containsElement(s,r){return Bd(s,r)}getParentElement(s){return Ac(s)}query(s,r,i){return Od(s,r,i)}computeStyle(s,r,i){return i||""}animate(s,r,i,o,a,l=[],c){return new ir(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})(),Dc=class Dc{};Dc.NOOP=new Tc;var xs=Dc,Cs=class{};var kw=1e3,Rd="{{",Iw="}}",$d="ng-enter",lc="ng-leave",Wo="ng-trigger",Yo=".ng-trigger",Cd="ng-animating",cc=".ng-animating";function In(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:uc(parseFloat(e[1]),e[2])}function uc(n,e){switch(e){case"s":return n*kw;default:return n}}function Ko(n,e,t){return n.hasOwnProperty("duration")?n:Pw(n,e,t)}function Pw(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,i=0,o="";if(typeof n=="string"){let a=n.match(s);if(a===null)return e.push(Sd(n)),{duration:0,delay:0,easing:""};r=uc(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=uc(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(Gv()),a=!0),i<0&&(e.push(Qv()),a=!0),a&&e.splice(l,0,Sd(n))}return{duration:r,delay:i,easing:o}}function Dw(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function fn(n,e,t){e.forEach((s,r)=>{let i=kc(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function bs(n,e){e.forEach((t,s)=>{let r=kc(s);n.style[r]=""})}function ci(n){return Array.isArray(n)?n.length==1?n[0]:cd(n):n}function Nw(n,e,t){let s=e.params||{},r=Vd(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(Xv(i))})}var hc=new RegExp(`${Rd}\\s*(.+?)\\s*${Iw}`,"g");function Vd(n){let e=[];if(typeof n=="string"){let t;for(;t=hc.exec(n);)e.push(t[1]);hc.lastIndex=0}return e}function hi(n,e,t){let s=`${n}`,r=s.replace(hc,(i,o)=>{let a=e[o];return a==null&&(t.push(Yv(o)),a=""),a.toString()});return r==s?n:r}var Mw=/-+([a-z0-9])/g;function kc(n){return n.replace(Mw,(...e)=>e[1].toUpperCase())}function Lw(n,e){return n===0||e===0}function Fw(n,e,t){if(t.size&&e.length){let s=e[0],r=[];if(t.forEach((i,o)=>{s.has(o)||r.push(o),s.set(o,i)}),r.length)for(let i=1;io.set(a,Ic(n,a)))}}return e}function ft(n,e,t){switch(e.type){case G.Trigger:return n.visitTrigger(e,t);case G.State:return n.visitState(e,t);case G.Transition:return n.visitTransition(e,t);case G.Sequence:return n.visitSequence(e,t);case G.Group:return n.visitGroup(e,t);case G.Animate:return n.visitAnimate(e,t);case G.Keyframes:return n.visitKeyframes(e,t);case G.Style:return n.visitStyle(e,t);case G.Reference:return n.visitReference(e,t);case G.AnimateChild:return n.visitAnimateChild(e,t);case G.AnimateRef:return n.visitAnimateRef(e,t);case G.Query:return n.visitQuery(e,t);case G.Stagger:return n.visitStagger(e,t);default:throw Kv(e.type)}}function Ic(n,e){return window.getComputedStyle(n)[e]}var Bw=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Zo=class extends Cs{normalizePropertyName(e,t){return kc(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(Bw.has(t)&&s!==0&&s!=="0")if(typeof s=="number")i="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(Zv(e,s))}return o+i}};var Jo="*";function Ow(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Rw(s,t,e)):t.push(n),t}function Rw(n,e,t){if(n[0]==":"){let l=$w(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(uw(n)),e;let r=s[1],i=s[2],o=s[3];e.push(_d(r,o));let a=r==Jo&&o==Jo;i[0]=="<"&&!a&&e.push(_d(o,r))}function $w(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var zo=new Set(["true","1"]),Go=new Set(["false","0"]);function _d(n,e){let t=zo.has(n)||Go.has(n),s=zo.has(e)||Go.has(e);return(r,i)=>{let o=n==Jo||n==r,a=e==Jo||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?zo.has(n):Go.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?zo.has(e):Go.has(e)),o&&a}}var qd=":self",Vw=new RegExp(`s*${qd}s*,?`,"g");function Ud(n,e,t,s){return new pc(n).build(e,t,s)}var Ad="",pc=class{constructor(e){this._driver=e}build(e,t,s){let r=new dc(t);return this._resetContextStyleTimingState(r),ft(this,ci(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Ad,e.collectedStyles=new Map,e.collectedStyles.set(Ad,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,r=t.depCount=0,i=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(Jv()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==G.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,i.push(this.visitState(l,t))}),l.name=c}else if(a.type==G.Transition){let l=this.visitTransition(a,t);s+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(ew())}),{type:G.Trigger,name:e.name,states:i,transitions:o,queryCount:s,depCount:r,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(s.containsDynamicStyles){let i=new Set,o=r||{};s.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{Vd(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(tw(e.name,[...i.values()]))}return{type:G.State,name:e.name,style:s,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=ft(this,ci(e.animation),t),r=Ow(e.expr,t.errors);return{type:G.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Ss(e.options)}}visitSequence(e,t){return{type:G.Sequence,steps:e.steps.map(s=>ft(this,s,t)),options:Ss(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=ft(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:i,options:Ss(e.options)}}visitAnimate(e,t){let s=jw(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:Re({});if(i.type==G.Keyframes)r=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=Re(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:s,style:r,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===dn?s.push(a):t.errors.push(nw(a)):s.push(new Map(Object.entries(a)));let i=!1,o=null;return s.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!i)){for(let l of a.values())if(l.toString().indexOf(Rd)>=0){i=!0;break}}}),{type:G.Style,styles:s,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,r=t.currentTime,i=t.currentTime;s&&i>0&&(i-=s.duration+s.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),u=c.get(l),p=!0;u&&(i!=r&&i>=u.startTime&&r<=u.endTime&&(t.errors.push(sw(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&Nw(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(rw()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(x=>{let N=this._makeStyleAst(x,t),X=N.offset!=null?N.offset:Hw(N.styles),K=0;return X!=null&&(i++,K=N.offset=X),l=l||K<0||K>1,a=a||K0&&i{let X=f>0?N==g?1:f*N:o[N],K=X*b;t.currentTime=w+y.delay+K,y.duration=K,this._validateStyleAst(x,t),x.offset=X,s.styles.push(x)}),s}visitReference(e,t){return{type:G.Reference,animation:ft(this,ci(e.animation),t),options:Ss(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:G.AnimateChild,options:Ss(e.options)}}visitAnimateRef(e,t){return{type:G.AnimateRef,animation:this.visitReference(e.animation,t),options:Ss(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=qw(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,mt(t.collectedStyles,t.currentQuerySelector,new Map);let a=ft(this,ci(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:G.Query,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Ss(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(lw());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ko(e.timings,t.errors,!0);return{type:G.Stagger,animation:ft(this,ci(e.animation),t),timings:s,options:null}}};function qw(n){let e=!!n.split(/\s*,\s*/).find(t=>t==qd);return e&&(n=n.replace(Vw,"")),n=n.replace(/@\*/g,Yo).replace(/@\w+/g,t=>Yo+"-"+t.slice(1)).replace(/:animating/g,cc),[n,e]}function Uw(n){return n?E({},n):null}var dc=class{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}};function Hw(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function jw(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=Ko(n,e).duration;return sc(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=sc(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=Ko(t,e);return sc(r.duration,r.delay,r.easing)}function Ss(n){return n?(n=E({},n),n.params&&(n.params=Uw(n.params))):n={},n}function sc(n,e,t){return{duration:n,delay:e,easing:t}}function Pc(n,e,t,s,r,i,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:r,delay:i,totalTime:r+i,easing:o,subTimeline:a}}var pi=class{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Ww=1,zw=":enter",Gw=new RegExp(zw,"g"),Qw=":leave",Xw=new RegExp(Qw,"g");function Hd(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new fc().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var fc=class{buildKeyframes(e,t,s,r,i,o,a,l,c,u=[]){c=c||new pi;let p=new mc(e,t,c,r,i,u,[]);p.options=l;let f=l.delay?In(l.delay):0;p.currentTimeline.delayNextStep(f),p.currentTimeline.setStyles([o],null,p.errors,l),ft(this,s,p);let g=p.timelines.filter(w=>w.containsAnimation());if(g.length&&a.size){let w;for(let y=g.length-1;y>=0;y--){let b=g[y];if(b.element===t){w=b;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([a],null,p.errors,l)}return g.length?g.map(w=>w.buildKeyframes()):[Pc(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let r of e){let i=r?.delay;if(i){let o=typeof i=="number"?i:In(hi(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?In(s.duration):null,a=s.delay!=null?In(s.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);i=Math.max(i,c.duration+c.delay)}),i}visitReference(e,t){t.updateOptions(e.options,!0),ft(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,r=t,i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),i.delay!=null)){r.previousNode.type==G.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=ea);let o=In(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>ft(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>s&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],r=t.currentTimeline.currentTime,i=e.options&&e.options.delay?In(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),ft(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),s.push(a.currentTimeline)}),s.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,r=t.params?hi(s,t.params,t.errors):s;return Ko(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),r.snapshotCurrentStyles());let i=e.style;i.type==G.Keyframes?this.visitKeyframes(i,t):(t.incrementTime(s.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,r=t.currentAnimateTimings;!r&&s.hasCurrentStyleProperties()&&s.forwardFrame();let i=r&&r.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(i):s.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,r=t.currentTimeline.duration,i=s.duration,a=t.createSubContext().currentTimeline;a.easing=s.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*i),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?In(r.delay):0;i&&(t.previousNode.type===G.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ea);let o=s,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;let p=t.createSubContext(e.options,c);i&&p.delayNextStep(i),c===t.element&&(l=p.currentTimeline),ft(this,e.animation,p),p.currentTimeline.applyStylesToKeyframe();let f=p.currentTimeline.currentTime;o=Math.max(o,f)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let p=u.currentTime;ft(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-p+(r.startTime-s.currentTimeline.startTime)}},ea={},mc=class n{constructor(e,t,s,r,i,o,a,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ea,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new ta(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,r=this.options;s.duration!=null&&(r.duration=In(s.duration)),s.delay!=null&&(r.delay=In(s.delay));let i=s.params;if(i){let o=r.params;o||(o=this.options.params={}),Object.keys(i).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=hi(i[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(r=>{s[r]=t[r]})}}return e}createSubContext(e=null,t,s){let r=t||this.element,i=new n(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,s||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=ea,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},i=new gc(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,r,i,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(Gw,"."+this._enterClassName),e=e.replace(Xw,"."+this._leaveClassName);let l=s!=1,c=this._driver.query(this.element,e,l);s!==0&&(c=s<0?c.slice(c.length+s,c.length):c.slice(0,s)),a.push(...c)}return!i&&a.length==0&&o.push(cw(t)),a}},ta=class n{constructor(e,t,s,r){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=r,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ww,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||dn),this._currentKeyframe.set(t,dn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=Yw(e,this._globalTimelineStyles);for(let[a,l]of o){let c=hi(l,i,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??dn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let r=this._styleSummary.get(s);(!r||t.time>r.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,p)=>{u===qo?e.add(p):u===dn&&t.add(p)}),s||c.set("offset",l/this.duration),r.push(c)});let i=[...e.values()],o=[...t.values()];if(s){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Pc(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},gc=class extends ta{constructor(e,t,s,r,i,o,a=!1){super(e,t,o.delay),this.keyframes=s,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let i=[],o=s+t,a=t/o,l=new Map(e[0]);l.set("offset",0),i.push(l);let c=new Map(e[0]);c.set("offset",Td(a)),i.push(c);let u=e.length-1;for(let p=1;p<=u;p++){let f=new Map(e[p]),g=f.get("offset"),w=t+g*s;f.set("offset",Td(w/o)),i.push(f)}s=o,t=0,r="",e=i}return Pc(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Td(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Yw(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,dn)}else for(let[i,o]of r)t.set(i,o)}),t}function kd(n,e,t,s,r,i,o,a,l,c,u,p,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:f}}var rc={},na=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return Kw(this.ast.matchers,e,t,s,r)}buildStyles(e,t,s){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,s):new Map}build(e,t,s,r,i,o,a,l,c,u){let p=[],f=this.ast.options&&this.ast.options.params||rc,g=a&&a.params||rc,w=this.buildStyles(s,g,p),y=l&&l.params||rc,b=this.buildStyles(r,y,p),x=new Set,N=new Map,X=new Map,K=r==="void",We={params:jd(y,f),delay:this.ast.options?.delay},Ke=u?[]:Hd(e,t,this.ast.animation,i,o,w,b,We,c,p),Be=0;return Ke.forEach(be=>{Be=Math.max(be.duration+be.delay,Be)}),p.length?kd(t,this._triggerName,s,r,K,w,b,[],[],N,X,Be,p):(Ke.forEach(be=>{let vs=be.element,Ks=mt(N,vs,new Set);be.preStyleProps.forEach(ws=>Ks.add(ws));let rp=mt(X,vs,new Set);be.postStyleProps.forEach(ws=>rp.add(ws)),vs!==t&&x.add(vs)}),kd(t,this._triggerName,s,r,K,w,b,Ke,[...x.values()],N,X,Be))}};function Kw(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function jd(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var vc=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=jd(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=hi(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function Zw(n,e,t){return new wc(n,e,t)}var wc=class{constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,this.transitionFactories=[],this.states=new Map,t.states.forEach(r=>{let i=r.options&&r.options.params||{};this.states.set(r.name,new vc(r.style,i,s))}),Id(this.states,"true","1"),Id(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new na(e,r,this.states))}),this.fallbackTransition=Jw(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,r){return this.transitionFactories.find(o=>o.match(e,t,s,r))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function Jw(n,e,t){let s=[(o,a)=>!0],r={type:G.Sequence,steps:[],options:null},i={type:G.Transition,animation:r,matchers:s,options:null,queryCount:0,depCount:0};return new na(n,i,e)}function Id(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ey=new pi,yc=class{constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s,this._animations=new Map,this._playersById=new Map,this.players=[]}register(e,t){let s=[],r=[],i=Ud(this._driver,t,s,r);if(s.length)throw fw(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=Fd(this._normalizer,e.keyframes,t,s);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let r=[],i=this._animations.get(e),o,a=new Map;if(i?(o=Hd(this._driver,t,i,$d,lc,new Map,new Map,s,ey,r),o.forEach(u=>{let p=mt(a,u.element,new Map);u.postStyleProps.forEach(f=>p.set(f,null))})):(r.push(mw()),o=[]),r.length)throw gw(r);a.forEach((u,p)=>{u.forEach((f,g)=>{u.set(g,this._driver.computeStyle(p,g,dn))})});let l=o.map(u=>{let p=a.get(u.element);return this._buildPlayer(u,new Map,p)}),c=Zn(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw vw(e);return t}listen(e,t,s,r){let i=_c(t,"","","");return Cc(this._getPlayer(e),s,i,r),()=>{}}command(e,t,s,r){if(s=="register"){this.register(e,r[0]);return}if(s=="create"){let o=r[0]||{};this.create(e,t,o);return}let i=this._getPlayer(e);switch(s){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Pd="ng-animate-queued",ty=".ng-animate-queued",ic="ng-animate-disabled",ny=".ng-animate-disabled",sy="ng-star-inserted",ry=".ng-star-inserted",iy=[],Wd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oy={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Xt="__ng_removed",di=class{get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),r=s?e.value:e;if(this.value=ly(r),s){let i=e,{value:o}=i,a=lp(i,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(r=>{s[r]==null&&(s[r]=t[r])})}}},ui="void",oc=new di(ui),Ec=class{constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,kt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw ww(s,t);if(s==null||s.length==0)throw yw(t);if(!cy(s))throw Ew(s,t);let i=mt(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=mt(this._engine.statesByElement,e,new Map);return a.has(t)||(kt(e,Wo),kt(e,Wo+"-"+t),a.set(t,oc)),()=>{this._engine.afterFlush(()=>{let l=i.indexOf(o);l>=0&&i.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Sw(e);return t}trigger(e,t,s,r=!0){let i=this._getTrigger(t),o=new fi(this.id,t,e),a=this._engine.statesByElement.get(e);a||(kt(e,Wo),kt(e,Wo+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new di(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=oc),!(c.value===ui)&&l.value===c.value){if(!py(l.params,c.params)){let y=[],b=i.matchStyles(l.value,l.params,y),x=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{bs(e,b),fn(e,x)})}return}let f=mt(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let g=i.matchTransition(l.value,c.value,e,c.params),w=!1;if(!g){if(!r)return;g=i.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:w}),w||(kt(e,Pd),o.onStart(()=>{ar(e,Pd)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let b=this._engine.playersByElement.get(e);if(b){let x=b.indexOf(o);x>=0&&b.splice(x,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,Yo,!0);s.forEach(r=>{if(r[Xt])return;let i=this._engine.fetchNamespacesByElement(r);i.size?i.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,s,r){let i=this._engine.statesByElement.get(e),o=new Map;if(i){let a=[];if(i.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let u=this.trigger(e,c,ui,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&Zn(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let r=new Set;t.forEach(i=>{let o=i.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=s.get(o)||oc,u=new di(ui),p=new fi(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:p,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(s.totalAnimations){let i=s.players.length?s.playersByQueriedElement.get(e):[];if(i&&i.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(s.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)s.markElementAsRemoved(this.id,e,!1,t);else{let i=e[Xt];(!i||i===Wd)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){kt(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let r=s.player;if(r.destroyed)return;let i=s.element,o=this._elementListeners.get(i);o&&o.forEach(a=>{if(a.name==s.triggerName){let l=_c(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Cc(s.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(s)}),this._queue=[],t.sort((s,r)=>{let i=s.transition.ast.depCount,o=r.transition.ast.depCount;return i==0||o==0?i-o:this._engine.driver.containsElement(s.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Sc=class{_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,i)=>{}}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new Ec(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,r=this.namespacesByHostElement;if(s.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=s.indexOf(l);s.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||s.unshift(e)}else s.push(e);return r.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let r=this._namespaceLookup[e];r&&r.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let r=this._namespaceList.indexOf(s);r>=0&&this._namespaceList.splice(r,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let r of s.values())if(r.namespaceId){let i=this._fetchNamespace(r.namespaceId);i&&t.add(i)}}return t}trigger(e,t,s,r){if(Qo(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!Qo(t))return;let i=t[Xt];if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,s)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),kt(e,ic)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ar(e,ic))}removeNode(e,t,s){if(Qo(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let i=this.namespacesByHostElement.get(t);i&&i.id!==e&&i.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,r,i){this.collectedLeaveElements.push(t),t[Xt]={namespaceId:e,setForRemoval:r,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,r,i){return Qo(t)?this._fetchNamespace(e).listen(t,s,r,i):()=>{}}_buildInstruction(e,t,s,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Yo,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,cc,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Zn(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[Xt];if(t&&t.setForRemoval){if(e[Xt]=Wd,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(ic)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ny,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,r)=>this._balanceNamespaceList(s,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?Zn(t).onDone(()=>{s.forEach(r=>r())}):s.forEach(r=>r())}}reportError(e){throw bw(e)}_flushAnimations(e,t){let s=new pi,r=[],i=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(P=>{u.add(P);let L=this.driver.query(P,ty,!0);for(let F=0;F{let F=$d+y++;w.set(L,F),P.forEach(Z=>kt(Z,F))});let b=[],x=new Set,N=new Set;for(let P=0;Px.add(Z)):N.add(L))}let X=new Map,K=Md(f,Array.from(x));K.forEach((P,L)=>{let F=lc+y++;X.set(L,F),P.forEach(Z=>kt(Z,F))}),e.push(()=>{g.forEach((P,L)=>{let F=w.get(L);P.forEach(Z=>ar(Z,F))}),K.forEach((P,L)=>{let F=X.get(L);P.forEach(Z=>ar(Z,F))}),b.forEach(P=>{this.processLeaveNode(P)})});let We=[],Ke=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(F=>{let Z=F.player,Ie=F.element;if(We.push(Z),this.collectedEnterElements.length){let ze=Ie[Xt];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(F.triggerName)){let ys=ze.previousTriggersValues.get(F.triggerName),_t=this.statesByElement.get(F.element);if(_t&&_t.has(F.triggerName)){let bo=_t.get(F.triggerName);bo.value=ys,_t.set(F.triggerName,bo)}}Z.destroy();return}}let tn=!p||!this.driver.containsElement(p,Ie),ct=X.get(Ie),zn=w.get(Ie),fe=this._buildInstruction(F,s,zn,ct,tn);if(fe.errors&&fe.errors.length){Ke.push(fe);return}if(tn){Z.onStart(()=>bs(Ie,fe.fromStyles)),Z.onDestroy(()=>fn(Ie,fe.toStyles)),r.push(Z);return}if(F.isFallbackTransition){Z.onStart(()=>bs(Ie,fe.fromStyles)),Z.onDestroy(()=>fn(Ie,fe.toStyles)),r.push(Z);return}let ap=[];fe.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||ap.push(ze)}),fe.timelines=ap,s.append(Ie,fe.timelines);let Nv={instruction:fe,player:Z,element:Ie};o.push(Nv),fe.queriedElements.forEach(ze=>mt(a,ze,[]).push(Z)),fe.preStyleProps.forEach((ze,ys)=>{if(ze.size){let _t=l.get(ys);_t||l.set(ys,_t=new Set),ze.forEach((bo,Hl)=>_t.add(Hl))}}),fe.postStyleProps.forEach((ze,ys)=>{let _t=c.get(ys);_t||c.set(ys,_t=new Set),ze.forEach((bo,Hl)=>_t.add(Hl))})});if(Ke.length){let P=[];Ke.forEach(L=>{P.push(xw(L.triggerName,L.errors))}),We.forEach(L=>L.destroy()),this.reportError(P)}let Be=new Map,be=new Map;o.forEach(P=>{let L=P.element;s.has(L)&&(be.set(L,L),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Be))}),r.forEach(P=>{let L=P.element;this._getPreviousPlayers(L,!1,P.namespaceId,P.triggerName,null).forEach(Z=>{mt(Be,L,[]).push(Z),Z.destroy()})});let vs=b.filter(P=>Ld(P,l,c)),Ks=new Map;Nd(Ks,this.driver,N,c,dn).forEach(P=>{Ld(P,l,c)&&vs.push(P)});let ws=new Map;g.forEach((P,L)=>{Nd(ws,this.driver,new Set(P),l,qo)}),vs.forEach(P=>{let L=Ks.get(P),F=ws.get(P);Ks.set(P,new Map([...L?.entries()??[],...F?.entries()??[]]))});let Ul=[],ip=[],op={};o.forEach(P=>{let{element:L,player:F,instruction:Z}=P;if(s.has(L)){if(u.has(L)){F.onDestroy(()=>fn(L,Z.toStyles)),F.disabled=!0,F.overrideTotalTime(Z.totalTime),r.push(F);return}let Ie=op;if(be.size>1){let ct=L,zn=[];for(;ct=ct.parentNode;){let fe=be.get(ct);if(fe){Ie=fe;break}zn.push(ct)}zn.forEach(fe=>be.set(fe,Ie))}let tn=this._buildAnimation(F.namespaceId,Z,Be,i,ws,Ks);if(F.setRealPlayer(tn),Ie===op)Ul.push(F);else{let ct=this.playersByElement.get(Ie);ct&&ct.length&&(F.parentPlayer=Zn(ct)),r.push(F)}}else bs(L,Z.fromStyles),F.onDestroy(()=>fn(L,Z.toStyles)),ip.push(F),u.has(L)&&r.push(F)}),ip.forEach(P=>{let L=i.get(P.element);if(L&&L.length){let F=Zn(L);P.setRealPlayer(F)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!tn.destroyed);Ie.length?uy(this,L,Ie):this.processLeaveNode(L)}return b.length=0,Ul.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let L=this.players.indexOf(P);this.players.splice(L,1)}),P.play()}),Ul}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,r,i){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!i||i==ui;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(s||r)&&(o=o.filter(a=>!(s&&s!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,s){let r=t.triggerName,i=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,u=c!==i,p=mt(s,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(g=>{let w=g.getRealPlayer();w.beforeDestroy&&w.beforeDestroy(),g.destroy(),p.push(g)})}bs(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],u=new Set,p=new Set,f=t.timelines.map(w=>{let y=w.element;u.add(y);let b=y[Xt];if(b&&b.removedBeforeQueried)return new ir(w.duration,w.delay);let x=y!==l,N=hy((s.get(y)||iy).map(Be=>Be.getRealPlayer())).filter(Be=>{let be=Be;return be.element?be.element===y:!1}),X=i.get(y),K=o.get(y),We=Fd(this._normalizer,w.keyframes,X,K),Ke=this._buildPlayer(w,We,N);if(w.subTimeline&&r&&p.add(y),x){let Be=new fi(e,a,y);Be.setRealPlayer(Ke),c.push(Be)}return Ke});c.forEach(w=>{mt(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>ay(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>kt(w,Cd));let g=Zn(f);return g.onDestroy(()=>{u.forEach(w=>ar(w,Cd)),fn(l,t.toStyles)}),p.forEach(w=>{mt(r,w,[]).push(g)}),g}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new ir(e.duration,e.delay)}},fi=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ir,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(r=>Cc(e,s,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){mt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function ay(n,e,t){let s=n.get(e);if(s){if(s.length){let r=s.indexOf(t);s.splice(r,1)}s.length==0&&n.delete(e)}return s}function ly(n){return n??null}function Qo(n){return n&&n.nodeType===1}function cy(n){return n=="start"||n=="done"}function Dd(n,e){let t=n.style.display;return n.style.display=e??"none",t}function Nd(n,e,t,s,r){let i=[];t.forEach(l=>i.push(Dd(l)));let o=[];s.forEach((l,c)=>{let u=new Map;l.forEach(p=>{let f=e.computeStyle(c,p,r);u.set(p,f),(!f||f.length==0)&&(c[Xt]=oy,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Dd(l,i[a++])),o}function Md(n,e){let t=new Map;if(n.forEach(a=>t.set(a,[])),e.length==0)return t;let s=1,r=new Set(e),i=new Map;function o(a){if(!a)return s;let l=i.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=s:l=o(c),i.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==s&&t.get(l).push(a)}),t}function kt(n,e){n.classList?.add(e)}function ar(n,e){n.classList?.remove(e)}function uy(n,e,t){Zn(t).onDone(()=>n.processLeaveNode(e))}function hy(n){let e=[];return zd(n,e),e}function zd(n,e){for(let t=0;tr.add(i)):e.set(n,s),t.delete(n),!0}var cr=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,i)=>{},this._transitionEngine=new Sc(e.body,t,s),this._timelineEngine=new yc(e.body,t,s),this._transitionEngine.onRemovalComplete=(r,i)=>this.onRemovalComplete(r,i)}registerTrigger(e,t,s,r,i){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],u=Ud(this._driver,i,l,c);if(l.length)throw pw(r,l);c.length&&void 0,a=Zw(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,r){this._transitionEngine.insertNode(e,t,s,r)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,r){if(s.charAt(0)=="@"){let[i,o]=bd(s),a=r;this._timelineEngine.command(i,t,o,a)}else this._transitionEngine.trigger(e,t,s,r)}listen(e,t,s,r,i){if(s.charAt(0)=="@"){let[o,a]=bd(s);return this._timelineEngine.listen(o,t,a,i)}return this._transitionEngine.listen(e,t,s,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function dy(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=ac(e[0]),e.length>1&&(s=ac(e[e.length-1]))):e instanceof Map&&(t=ac(e)),t||s?new bc(n,t,s):null}var lr=class lr{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let r=lr.initialStylesByElement.get(e);r||lr.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&fn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(fn(this._element,this._initialStyles),this._endStyles&&(fn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(lr.initialStylesByElement.delete(this._element),this._startStyles&&(bs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(bs(this._element,this._endStyles),this._endStyles=null),fn(this._element,this._initialStyles),this._state=3)}};lr.initialStylesByElement=new WeakMap;var bc=lr;function ac(n){let e=null;return n.forEach((t,s)=>{fy(s)&&(e=e||new Map,e.set(s,t))}),e}function fy(n){return n==="display"||n==="position"}var sa=class{constructor(e,t,s,r){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,r)=>{r!=="offset"&&e.set(r,this._finished?s:Ic(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ra=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Bd(e,t)}getParentElement(e){return Ac(e)}query(e,t,s){return Od(e,t,s)}computeStyle(e,t,s){return Ic(e,t)}animate(e,t,s,r,i,o=[]){let a=r==0?"both":"forwards",l={duration:s,delay:r,fill:a};i&&(l.easing=i);let c=new Map,u=o.filter(g=>g instanceof sa);Lw(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=Dw(t).map(g=>new Map(g));p=Fw(e,p,c);let f=dy(e,p);return new sa(e,p,l,f)}};var Xo="@",Gd="@.disabled",ia=class{constructor(e,t,s,r){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,r=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,r){this.delegate.setAttribute(e,t,s,r)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,r){this.delegate.setStyle(e,t,s,r)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Xo&&t==Gd?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s){return this.delegate.listen(e,t,s)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},xc=class extends ia{constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Xo?t.charAt(1)=="."&&t==Gd?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s){if(t.charAt(0)==Xo){let r=my(e),i=t.slice(1),o="";return i.charAt(0)!=Xo&&([i,o]=gy(i)),this.engine.listen(this.namespaceId,r,i,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,s,a)})}return this.delegate.listen(e,t,s)}};function my(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function gy(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var oa=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,i)=>{let o=i?.parentNode(r);o&&i.removeChild(o,r)}}createRenderer(e,t){let s="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let p=()=>c.delete(r);u=new ia(s,r,this.engine,p),c.set(r,u)}return u}let i=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(i,o,e,c.name,c)};return t.data.animation.forEach(a),new xc(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(i=>{let[o,a]=i;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var wy=(()=>{let e=class e extends cr{constructor(s,r,i){super(s,r,i)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(Ze(Mp),Ze(xs),Ze(Cs))},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})();function yy(){return new Zo}function Ey(n,e,t){return new oa(n,e,t)}var Qd=[{provide:Cs,useFactory:yy},{provide:cr,useClass:wy},{provide:_p,useFactory:Ey,deps:[Rp,cr,Tp]}],Sy=[{provide:xs,useFactory:()=>new ra},{provide:jl,useValue:"BrowserAnimations"},...Qd],PT=[{provide:xs,useClass:Tc},{provide:jl,useValue:"NoopAnimations"},...Qd];function Xd(){return Ap("NgEagerAnimations"),[...Sy]}var pA=Lv(Fv());var sp={};Mv(sp,{JitCompilerFactory:()=>Vl,VERSION:()=>cA,platformBrowserDynamic:()=>uA,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>Ev,\u0275platformCoreDynamic:()=>yv});var Yd=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Ar=class n{constructor(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}static parse(e){let t=[],s=(l,c)=>{c.notSelectors.length>0&&!c.element&&c.classNames.length==0&&c.attrs.length==0&&(c.element="*"),l.push(c)},r=new n,i,o=r,a=!1;for(Yd.lastIndex=0;i=Yd.exec(e);){if(i[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new n,r.notSelectors.push(o)}let l=i[2];if(l){let u=i[3];u==="#"?o.addAttribute("id",l.slice(1)):u==="."?o.addClassName(l.slice(1)):o.setElement(l)}let c=i[4];if(c&&o.addAttribute(o.unescapeAttribute(c),i[6]),i[7]&&(a=!1,o=r),i[8]){if(a)throw new Error("Multiple selectors in :not are not supported");s(t,r),r=o=new n}}return s(t,r),t}unescapeAttribute(e){let t="",s=!1;for(let r=0;r0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)}addAttribute(e,t=""){this.attrs.push(e,t&&t.toLowerCase()||"")}addClassName(e){this.classNames.push(e.toLowerCase())}toString(){let e=this.element||"";if(this.classNames&&this.classNames.forEach(t=>e+=`.${t}`),this.attrs)for(let t=0;te+=`:not(${t})`),e}},ma=class n{constructor(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}static createNotMatcher(e){let t=new n;return t.addSelectables(e,null),t}addSelectables(e,t){let s=null;e.length>1&&(s=new eu(e),this._listContexts.push(s));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!ma.createNotMatcher(this.notSelectors).match(e,null)),s&&t&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),s}};var ss=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(ss||{}),Dh=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Dh||{}),wi=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(wi||{}),Kd={name:"custom-elements"},Zd={name:"no-errors-schema"};var le=function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n}(le||{});function by(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function xy(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...e]:n.attrs.length?[3,...n.attrs,...e]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}function Cy(n){let e=by(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>xy(s)):[];return e.concat(...t)}function Nh(n){return n?Ar.parse(n).map(Cy):[]}var ga;function _y(n){return Iy(ky(n.nodes).join("")+`[${n.meaning}]`)}function Ay(n){return n.id||jm(n)}function jm(n){let e=new nu,t=n.nodes.map(s=>s.visit(e,null));return Wm(t.join(""),n.meaning)}var va=class{visitText(e,t){return e.value}visitContainer(e,t){return`[${e.children.map(s=>s.visit(this)).join(", ")}]`}visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expression}, ${e.type}, ${s.join(", ")}}`}visitTagPlaceholder(e,t){return e.isVoid?``:`${e.children.map(s=>s.visit(this)).join(", ")}`}visitPlaceholder(e,t){return e.value?`${e.value}`:``}visitIcuPlaceholder(e,t){return`${e.value.visit(this)}`}visitBlockPlaceholder(e,t){return`${e.children.map(s=>s.visit(this)).join(", ")}`}},Ty=new va;function ky(n){return n.map(e=>e.visit(Ty,null))}var nu=class extends va{visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${s.join(", ")}}`}};function Iy(n){ga??=new TextEncoder;let e=[...ga.encode(n)],t=Ny(e,Mh.Big),s=e.length*8,r=new Uint32Array(80),i=1732584193,o=4023233417,a=2562383102,l=271733878,c=3285377520;t[s>>5]|=128<<24-s%32,t[(s+64>>9<<4)+15]=s;for(let u=0;u>>0).toString(16).padStart(8,"0")}function Py(n,e,t,s){return n<20?[e&t|~e&s,1518500249]:n<40?[e^t^s,1859775393]:n<60?[e&t|e&s|t&s,2400959708]:[e^t^s,3395469782]}function Jd(n){ga??=new TextEncoder;let e=ga.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=ef(t,e.length,0),r=ef(t,e.length,102072);return s==0&&(r==0||r==1)&&(s=s^319790063,r=r^-1801410264),BigInt.asUintN(32,BigInt(s))<>BigInt(63)&BigInt(1),t+=Jd(e)),BigInt.asUintN(63,t).toString()}function ef(n,e,t){let s=2654435769,r=2654435769,i=0,o=e-12;for(;i<=o;i+=12){s+=n.getUint32(i,!0),r+=n.getUint32(i+4,!0),t+=n.getUint32(i+8,!0);let l=tf(s,r,t);s=l[0],r=l[1],t=l[2]}let a=e-i;return t+=e,a>=4?(s+=n.getUint32(i,!0),i+=4,a>=8?(r+=n.getUint32(i,!0),i+=4,a>=9&&(t+=n.getUint8(i++)<<8),a>=10&&(t+=n.getUint8(i++)<<16),a===11&&(t+=n.getUint8(i++)<<24)):(a>=5&&(r+=n.getUint8(i++)),a>=6&&(r+=n.getUint8(i++)<<8),a===7&&(r+=n.getUint8(i++)<<16))):(a>=1&&(s+=n.getUint8(i++)),a>=2&&(s+=n.getUint8(i++)<<8),a===3&&(s+=n.getUint8(i++)<<16)),tf(s,r,t)[2]}function tf(n,e,t){return n-=e,n-=t,n^=t>>>13,e-=t,e-=n,e^=n<<8,t-=n,t-=e,t^=e>>>13,n-=e,n-=t,n^=t>>>12,e-=t,e-=n,e^=n<<16,t-=n,t-=e,t^=e>>>5,n-=e,n-=t,n^=t>>>3,e-=t,e-=n,e^=n<<10,t-=n,t-=e,t^=e>>>15,[n,e,t]}var Mh=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(Mh||{});function ur(n,e){return Dy(n,e)[1]}function Dy(n,e){let t=(n&65535)+(e&65535),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|t&65535]}function Nc(n,e){return n<>>32-e}function Ny(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function My(n,e,t){let s=0;if(t===Mh.Big)for(let r=0;r<4;r++)s+=nf(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=nf(n,e+r)<<8*r;return s}var zm=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(zm||{}),wa=class{constructor(e=zm.None){this.modifiers=e}hasModifier(e){return(this.modifiers&e)!==0}},Wn=function(n){return n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None",n}(Wn||{}),En=class extends wa{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},$t=class extends wa{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}};var wo=new En(Wn.Dynamic),Ot=new En(Wn.Inferred),Ly=new En(Wn.Bool),NT=new En(Wn.Int),Lh=new En(Wn.Number),Gm=new En(Wn.String),MT=new En(Wn.Function),Sn=new En(Wn.None),Ni=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(Ni||{}),A=function(n){return n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Identical=2]="Identical",n[n.NotIdentical=3]="NotIdentical",n[n.Minus=4]="Minus",n[n.Plus=5]="Plus",n[n.Divide=6]="Divide",n[n.Multiply=7]="Multiply",n[n.Modulo=8]="Modulo",n[n.And=9]="And",n[n.Or=10]="Or",n[n.BitwiseOr=11]="BitwiseOr",n[n.BitwiseAnd=12]="BitwiseAnd",n[n.Lower=13]="Lower",n[n.LowerEquals=14]="LowerEquals",n[n.Bigger=15]="Bigger",n[n.BiggerEquals=16]="BiggerEquals",n[n.NullishCoalesce=17]="NullishCoalesce",n}(A||{});function Fy(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function Qm(n,e,t){let s=n.length;if(s!==e.length)return!1;for(let r=0;rt.isEquivalent(s))}var re=class{constructor(e,t){this.type=e||null,this.sourceSpan=t||null}prop(e,t){return new bt(this,e,null,t)}key(e,t,s){return new Vn(this,e,t,s)}callFn(e,t,s){return new nt(this,e,null,t,s)}instantiate(e,t,s){return new Li(this,e,t,s)}conditional(e,t=null,s){return new $n(this,e,t,null,s)}equals(e,t){return new Q(A.Equals,this,e,null,t)}notEquals(e,t){return new Q(A.NotEquals,this,e,null,t)}identical(e,t){return new Q(A.Identical,this,e,null,t)}notIdentical(e,t){return new Q(A.NotIdentical,this,e,null,t)}minus(e,t){return new Q(A.Minus,this,e,null,t)}plus(e,t){return new Q(A.Plus,this,e,null,t)}divide(e,t){return new Q(A.Divide,this,e,null,t)}multiply(e,t){return new Q(A.Multiply,this,e,null,t)}modulo(e,t){return new Q(A.Modulo,this,e,null,t)}and(e,t){return new Q(A.And,this,e,null,t)}bitwiseOr(e,t,s=!0){return new Q(A.BitwiseOr,this,e,null,t,s)}bitwiseAnd(e,t,s=!0){return new Q(A.BitwiseAnd,this,e,null,t,s)}or(e,t){return new Q(A.Or,this,e,null,t)}lower(e,t){return new Q(A.Lower,this,e,null,t)}lowerEquals(e,t){return new Q(A.LowerEquals,this,e,null,t)}bigger(e,t){return new Q(A.Bigger,this,e,null,t)}biggerEquals(e,t){return new Q(A.BiggerEquals,this,e,null,t)}isBlank(e){return this.equals(Vy,e)}nullishCoalesce(e,t){return new Q(A.NullishCoalesce,this,e,null,t)}toStmt(){return new Ht(this,null)}},qt=class n extends re{constructor(e,t,s){super(t,s),this.name=e}isEquivalent(e){return e instanceof n&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadVarExpr(this,t)}clone(){return new n(this.name,this.type,this.sourceSpan)}set(e){return new ya(this.name,e,null,this.sourceSpan)}},Tr=class n extends re{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},j=class n extends re{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof n&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new n(this.node,this.type,this.sourceSpan)}},ya=class n extends re{constructor(e,t,s,r){super(s||t.type,r),this.name=e,this.value=t}isEquivalent(e){return e instanceof n&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteVarExpr(this,t)}clone(){return new n(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Xe(this.name,this.value,e,t,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Ot,Ue.Final)}},Mi=class n extends re{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.index=t,this.value=s}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWriteKeyExpr(this,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.value.clone(),this.type,this.sourceSpan)}},kr=class n extends re{constructor(e,t,s,r,i){super(r||s.type,i),this.receiver=e,this.name=t,this.value=s}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,t){return e.visitWritePropExpr(this,t)}clone(){return new n(this.receiver.clone(),this.name,this.value.clone(),this.type,this.sourceSpan)}},nt=class n extends re{constructor(e,t,s,r,i=!1){super(s,r),this.fn=e,this.args=t,this.pure=i}get receiver(){return this.fn}isEquivalent(e){return e instanceof n&&this.fn.isEquivalent(e.fn)&&St(this.args,e.args)&&this.pure===e.pure}isConstant(){return!1}visitExpression(e,t){return e.visitInvokeFunctionExpr(this,t)}clone(){return new n(this.fn.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan,this.pure)}},Ea=class n extends re{constructor(e,t,s,r){super(s,r),this.tag=e,this.template=t}isEquivalent(e){return e instanceof n&&this.tag.isEquivalent(e.tag)&&Qm(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&St(this.template.expressions,e.template.expressions)}isConstant(){return!1}visitExpression(e,t){return e.visitTaggedTemplateExpr(this,t)}clone(){return new n(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Li=class n extends re{constructor(e,t,s,r){super(s,r),this.classExpr=e,this.args=t}isEquivalent(e){return e instanceof n&&this.classExpr.isEquivalent(e.classExpr)&&St(this.args,e.args)}isConstant(){return!1}visitExpression(e,t){return e.visitInstantiateExpr(this,t)}clone(){return new n(this.classExpr.clone(),this.args.map(e=>e.clone()),this.type,this.sourceSpan)}},je=class n extends re{constructor(e,t,s){super(t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value===e.value}isConstant(){return!0}visitExpression(e,t){return e.visitLiteralExpr(this,t)}clone(){return new n(this.value,this.type,this.sourceSpan)}},su=class n{constructor(e,t){this.elements=e,this.expressions=t}clone(){return new n(this.elements.map(e=>e.clone()),this.expressions.map(e=>e.clone()))}},ru=class n{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??iu(da(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Ms=class{constructor(e,t){this.text=e,this.sourceSpan=t}},xr=class{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},By="|",sf="@@",Oy="\u241F",Sa=class n extends re{constructor(e,t,s,r,i){super(Gm,i),this.metaBlock=e,this.messageParts=t,this.placeHolderNames=s,this.expressions=r}isEquivalent(e){return!1}isConstant(){return!1}visitExpression(e,t){return e.visitLocalizedString(this,t)}clone(){return new n(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(e=>e.clone()),this.sourceSpan)}serializeI18nHead(){let e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=`${this.metaBlock.meaning}${By}${e}`),this.metaBlock.customId&&(e=`${e}${sf}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Oy}${t}`}),rf(e,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(e){return this.messageParts[e]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(e){return this.placeHolderNames[e]?.sourceSpan??this.expressions[e]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(e){let t=this.placeHolderNames[e-1],s=this.messageParts[e],r=t.text;return t.associatedMessage?.legacyIds.length===0&&(r+=`${sf}${Wm(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),rf(r,s.text,this.getMessagePartSourceSpan(e))}},da=n=>n.replace(/\\/g,"\\\\"),Ry=n=>n.replace(/^:/,"\\:"),$y=n=>n.replace(/:/g,"\\:"),iu=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function rf(n,e,t){return n===""?{cooked:e,raw:iu(Ry(da(e))),range:t}:{cooked:`:${n}:${e}`,raw:iu(`:${$y(da(n))}:${da(e)}`),range:t}}var $s=class n extends re{constructor(e,t,s=null,r){super(t,r),this.value=e,this.typeParams=s}isEquivalent(e){return e instanceof n&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime}isConstant(){return!1}visitExpression(e,t){return e.visitExternalExpr(this,t)}clone(){return new n(this.value,this.type,this.typeParams,this.sourceSpan)}};var $n=class n extends re{constructor(e,t,s=null,r,i){super(r||t.type,i),this.condition=e,this.falseCase=s,this.trueCase=t}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&Fy(this.falseCase,e.falseCase)}isConstant(){return!1}visitExpression(e,t){return e.visitConditionalExpr(this,t)}clone(){return new n(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var Fi=class n extends re{constructor(e,t){super(Ly,t),this.condition=e}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},Fe=class n{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new n(this.name,this.type)}},Fn=class n extends re{constructor(e,t,s,r,i){super(s,r),this.params=e,this.statements=t,this.name=i}isEquivalent(e){return(e instanceof n||e instanceof Oi)&&St(this.params,e.params)&&St(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Oi(e,this.params,this.statements,this.type,t,this.sourceSpan)}clone(){return new n(this.params.map(e=>e.clone()),this.statements,this.type,this.sourceSpan,this.name)}},Vs=class n extends re{constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof n)||!St(this.params,e.params)?!1:this.body instanceof re&&e.body instanceof re?this.body.isEquivalent(e.body):Array.isArray(this.body)&&Array.isArray(e.body)?St(this.body,e.body):!1}isConstant(){return!1}visitExpression(e,t){return e.visitArrowFunctionExpr(this,t)}clone(){return new n(this.params.map(e=>e.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(e,t){return new Xe(e,this,Ot,t,this.sourceSpan)}},Ir=class n extends re{constructor(e,t,s,r,i=!0){super(s||Lh,r),this.operator=e,this.expr=t,this.parens=i}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.expr.isEquivalent(e.expr)}isConstant(){return!1}visitExpression(e,t){return e.visitUnaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},Q=class n extends re{constructor(e,t,s,r,i,o=!0){super(r||t.type,i),this.operator=e,this.rhs=s,this.parens=o,this.lhs=t}isEquivalent(e){return e instanceof n&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)}isConstant(){return!1}visitExpression(e,t){return e.visitBinaryOperatorExpr(this,t)}clone(){return new n(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan,this.parens)}},bt=class n extends re{constructor(e,t,s,r){super(s,r),this.receiver=e,this.name=t}get index(){return this.name}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name}isConstant(){return!1}visitExpression(e,t){return e.visitReadPropExpr(this,t)}set(e){return new kr(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Vn=class n extends re{constructor(e,t,s,r){super(s,r),this.receiver=e,this.index=t}isEquivalent(e){return e instanceof n&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)}isConstant(){return!1}visitExpression(e,t){return e.visitReadKeyExpr(this,t)}set(e){return new Mi(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},Ut=class n extends re{constructor(e,t,s){super(t,s),this.entries=e}isConstant(){return this.entries.every(e=>e.isConstant())}isEquivalent(e){return e instanceof n&&St(this.entries,e.entries)}visitExpression(e,t){return e.visitLiteralArrayExpr(this,t)}clone(){return new n(this.entries.map(e=>e.clone()),this.type,this.sourceSpan)}},Pr=class n{constructor(e,t,s){this.key=e,this.value=t,this.quoted=s}isEquivalent(e){return this.key===e.key&&this.value.isEquivalent(e.value)}clone(){return new n(this.key,this.value.clone(),this.quoted)}},Kt=class n extends re{constructor(e,t,s){super(t,s),this.entries=e,this.valueType=null,t&&(this.valueType=t.valueType)}isEquivalent(e){return e instanceof n&&St(this.entries,e.entries)}isConstant(){return this.entries.every(e=>e.value.isConstant())}visitExpression(e,t){return e.visitLiteralMapExpr(this,t)}clone(){let e=this.entries.map(t=>t.clone());return new n(e,this.type,this.sourceSpan)}};var Bi=new je(null,null,null),Vy=new je(null,Ot,null),Ue=function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n}(Ue||{}),ou=class{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},ba=class extends ou{constructor(e){super("",!0,!0),this.tags=e}toString(){return Wy(this.tags)}},qs=class{constructor(e=Ue.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Xe=class n extends qs{constructor(e,t,s,r,i,o){super(r,i,o),this.name=e,this.value=t,this.type=s||t&&t.type||null}isEquivalent(e){return e instanceof n&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)}visitStatement(e,t){return e.visitDeclareVarStmt(this,t)}},Oi=class n extends qs{constructor(e,t,s,r,i,o,a){super(i,o,a),this.name=e,this.params=t,this.statements=s,this.type=r||null}isEquivalent(e){return e instanceof n&&St(this.params,e.params)&&St(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},Ht=class n extends qs{constructor(e,t,s){super(Ue.None,t,s),this.expr=e}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}},ot=class n extends qs{constructor(e,t=null,s){super(Ue.None,t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}},xa=class n extends qs{constructor(e,t,s=[],r,i){super(Ue.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&St(this.trueCase,e.trueCase)&&St(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function qy(n=[]){return new ba(n)}function H(n,e,t){return new qt(n,e,t)}function T(n,e=null,t){return new $s(n,null,e,t)}function He(n,e,t){return new $t(n,e,t)}function Pl(n){return new Tr(n)}function se(n,e,t){return new Ut(n,e,t)}function st(n,e=null){return new Kt(n.map(t=>new Pr(t.key,t.value,t.quoted)),e,null)}function Uy(n,e){return new Fi(n,e)}function Xr(n,e,t,s,r){return new Fn(n,e,t,s,r)}function bn(n,e,t,s){return new Vs(n,e,t,s)}function Dl(n,e,t,s,r){return new xa(n,e,t,s,r)}function Hy(n,e,t,s){return new Ea(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function jy(n,e,t,s,r){return new Sa(n,e,t,s,r)}function of(n){let e="";if(n.tagName&&(e+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');e+=" "+n.text.replace(/@/g,"\\@")}return e}function Wy(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${of(n[0])} `;let e=`* `;for(let t of n)e+=" *",e+=of(t).replace(/\n/g,` * `),e+=` `;return e+=" ",e}var zy="_c",af=H(""),Gy={},Qy=50,Ca=class n extends re{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,t){return t===Gy?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&this.resolved.isEquivalent(e.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(e){this.resolved=e,this.shared=!0}},_a=class{constructor(e=!1){this.isClosureCompilerEnabled=e,this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.sharedConstants=new Map,this._claimedNames=new Map,this.nextNameIndex=0}getConstLiteral(e,t){if(e instanceof je&&!lf(e)||e instanceof Ca)return e;let s=Cr.INSTANCE.keyOf(e),r=this.literals.get(s),i=!1;if(r||(r=new Ca(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&t){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&lf(e)?(a=H(o).set(new Fn([],[new ot(e)])),l=H(o).callFn([])):(a=H(o).set(e),l=H(o)),this.statements.push(a.toDeclStmt(Ot,Ue.Final)),r.fixup(l)}return r}getSharedConstant(e,t){let s=e.keyOf(t);if(!this.sharedConstants.has(s)){let r=this.freshName();this.sharedConstants.set(s,H(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(s)}getLiteralFactory(e){if(e instanceof Ut){let t=e.entries.map(r=>r.isConstant()?r:af),s=Cr.INSTANCE.keyOf(se(t));return this._getLiteralFactory(s,e.entries,r=>se(r))}else{let t=st(e.entries.map(r=>({key:r.key,value:r.value.isConstant()?r.value:af,quoted:r.quoted}))),s=Cr.INSTANCE.keyOf(t);return this._getLiteralFactory(s,e.entries.map(r=>r.value),r=>st(r.map((i,o)=>({key:e.entries[o].key,value:i,quoted:e.entries[o].quoted}))))}}getSharedFunctionReference(e,t,s=!0){let r=e instanceof Vs;for(let o of this.statements)if(r&&o instanceof Xe&&o.value?.isEquivalent(e)||!r&&o instanceof Oi&&e instanceof Fn&&e.isEquivalent(o))return H(o.name);let i=s?this.uniqueName(t):t;return this.statements.push(e instanceof Fn?e.toDeclStmt(i,Ue.Final):new Xe(i,e,Ot,Ue.Final,e.sourceSpan)),H(i)}_getLiteralFactory(e,t,s){let r=this.literalFactories.get(e),i=t.filter(o=>!o.isConstant());if(!r){let o=t.map((u,p)=>u.isConstant()?this.getConstLiteral(u,!0):H(`a${p}`)),a=o.filter(Xy).map(u=>new Fe(u.name,wo)),l=bn(a,s(o),Ot),c=this.freshName();this.statements.push(H(c).set(l).toDeclStmt(Ot,Ue.Final)),r=H(c),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:i}}uniqueName(e,t=!0){let s=this._claimedNames.get(e)??0,r=s===0&&!t?`${e}`:`${e}${s}`;return this._claimedNames.set(e,s+1),r}freshName(){return this.uniqueName(zy)}},Tl=class Tl{keyOf(e){if(e instanceof je&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof je)return String(e.value);if(e instanceof Ut){let t=[];for(let s of e.entries)t.push(this.keyOf(s));return`[${t.join(",")}]`}else if(e instanceof Kt){let t=[];for(let s of e.entries){let r=s.key;s.quoted&&(r=`"${r}"`),t.push(r+":"+this.keyOf(s.value))}return`{${t.join(",")}}`}else{if(e instanceof $s)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof qt)return`read(${e.name})`;if(e instanceof Tr)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};Tl.INSTANCE=new Tl;var Cr=Tl;function Xy(n){return n instanceof qt}function lf(n){return n instanceof je&&typeof n.value=="string"&&n.value.length>=Qy}var m="@angular/core",d=(()=>{let e=class e{};e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.core={name:null,moduleName:m},e.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:m},e.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:m},e.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:m},e.element={name:"\u0275\u0275element",moduleName:m},e.elementStart={name:"\u0275\u0275elementStart",moduleName:m},e.elementEnd={name:"\u0275\u0275elementEnd",moduleName:m},e.advance={name:"\u0275\u0275advance",moduleName:m},e.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:m},e.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:m},e.attribute={name:"\u0275\u0275attribute",moduleName:m},e.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:m},e.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:m},e.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:m},e.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:m},e.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:m},e.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:m},e.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:m},e.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:m},e.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:m},e.classProp={name:"\u0275\u0275classProp",moduleName:m},e.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:m},e.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:m},e.elementContainer={name:"\u0275\u0275elementContainer",moduleName:m},e.styleMap={name:"\u0275\u0275styleMap",moduleName:m},e.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:m},e.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:m},e.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:m},e.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:m},e.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:m},e.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:m},e.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:m},e.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:m},e.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:m},e.classMap={name:"\u0275\u0275classMap",moduleName:m},e.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:m},e.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:m},e.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:m},e.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:m},e.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:m},e.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:m},e.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:m},e.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:m},e.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:m},e.styleProp={name:"\u0275\u0275styleProp",moduleName:m},e.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:m},e.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:m},e.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:m},e.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:m},e.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:m},e.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:m},e.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:m},e.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:m},e.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:m},e.nextContext={name:"\u0275\u0275nextContext",moduleName:m},e.resetView={name:"\u0275\u0275resetView",moduleName:m},e.templateCreate={name:"\u0275\u0275template",moduleName:m},e.defer={name:"\u0275\u0275defer",moduleName:m},e.deferWhen={name:"\u0275\u0275deferWhen",moduleName:m},e.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:m},e.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:m},e.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:m},e.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:m},e.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:m},e.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:m},e.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:m},e.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:m},e.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:m},e.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:m},e.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:m},e.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:m},e.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:m},e.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:m},e.conditional={name:"\u0275\u0275conditional",moduleName:m},e.repeater={name:"\u0275\u0275repeater",moduleName:m},e.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:m},e.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:m},e.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:m},e.componentInstance={name:"\u0275\u0275componentInstance",moduleName:m},e.text={name:"\u0275\u0275text",moduleName:m},e.enableBindings={name:"\u0275\u0275enableBindings",moduleName:m},e.disableBindings={name:"\u0275\u0275disableBindings",moduleName:m},e.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:m},e.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:m},e.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:m},e.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:m},e.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:m},e.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:m},e.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:m},e.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:m},e.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:m},e.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:m},e.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:m},e.restoreView={name:"\u0275\u0275restoreView",moduleName:m},e.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:m},e.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:m},e.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:m},e.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:m},e.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:m},e.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:m},e.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:m},e.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:m},e.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:m},e.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:m},e.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:m},e.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:m},e.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:m},e.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:m},e.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:m},e.hostProperty={name:"\u0275\u0275hostProperty",moduleName:m},e.property={name:"\u0275\u0275property",moduleName:m},e.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:m},e.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:m},e.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:m},e.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:m},e.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:m},e.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:m},e.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:m},e.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:m},e.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:m},e.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:m},e.i18n={name:"\u0275\u0275i18n",moduleName:m},e.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:m},e.i18nExp={name:"\u0275\u0275i18nExp",moduleName:m},e.i18nStart={name:"\u0275\u0275i18nStart",moduleName:m},e.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:m},e.i18nApply={name:"\u0275\u0275i18nApply",moduleName:m},e.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:m},e.pipe={name:"\u0275\u0275pipe",moduleName:m},e.projection={name:"\u0275\u0275projection",moduleName:m},e.projectionDef={name:"\u0275\u0275projectionDef",moduleName:m},e.reference={name:"\u0275\u0275reference",moduleName:m},e.inject={name:"\u0275\u0275inject",moduleName:m},e.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:m},e.directiveInject={name:"\u0275\u0275directiveInject",moduleName:m},e.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:m},e.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:m},e.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:m},e.forwardRef={name:"forwardRef",moduleName:m},e.resolveForwardRef={name:"resolveForwardRef",moduleName:m},e.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:m},e.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:m},e.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:m},e.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:m},e.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:m},e.resolveBody={name:"\u0275\u0275resolveBody",moduleName:m},e.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:m},e.defineComponent={name:"\u0275\u0275defineComponent",moduleName:m},e.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:m},e.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:m},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:m},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:m},e.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:m},e.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:m},e.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:m},e.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:m},e.defineDirective={name:"\u0275\u0275defineDirective",moduleName:m},e.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:m},e.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:m},e.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:m},e.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:m},e.defineInjector={name:"\u0275\u0275defineInjector",moduleName:m},e.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:m},e.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:m},e.ModuleWithProviders={name:"ModuleWithProviders",moduleName:m},e.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:m},e.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:m},e.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:m},e.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:m},e.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:m},e.definePipe={name:"\u0275\u0275definePipe",moduleName:m},e.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:m},e.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:m},e.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:m},e.setClassMetadata={name:"\u0275setClassMetadata",moduleName:m},e.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:m},e.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:m},e.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:m},e.viewQuery={name:"\u0275\u0275viewQuery",moduleName:m},e.loadQuery={name:"\u0275\u0275loadQuery",moduleName:m},e.contentQuery={name:"\u0275\u0275contentQuery",moduleName:m},e.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:m},e.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:m},e.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:m},e.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:m},e.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:m},e.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:m},e.declareLet={name:"\u0275\u0275declareLet",moduleName:m},e.storeLet={name:"\u0275\u0275storeLet",moduleName:m},e.readContextLet={name:"\u0275\u0275readContextLet",moduleName:m},e.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:m},e.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:m},e.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:m},e.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:m},e.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:m},e.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:m},e.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:m},e.listener={name:"\u0275\u0275listener",moduleName:m},e.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:m},e.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:m},e.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:m},e.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:m},e.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:m},e.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:m},e.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:m},e.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:m},e.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:m},e.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:m},e.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:m},e.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:m},e.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:m};let n=e;return n})(),Yy=/-+([a-z0-9])/g;function Ky(n){return n.replace(Yy,(...e)=>e[1].toUpperCase())}function Zy(n,e){return Xm(n,":",e)}function Jy(n,e){return Xm(n,".",e)}function Xm(n,e,t){let s=n.indexOf(e);return s==-1?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function eE(n){return n===void 0?null:n}function tE(n){let e=[];for(let t=0;t=55296&&s<=56319&&n.length>t+1){let r=n.charCodeAt(t+1);r>=56320&&r<=57343&&(t++,s=(s-55296<<10)+r-56320+65536)}s<=127?e.push(s):s<=2047?e.push(s>>6&31|192,s&63|128):s<=65535?e.push(s>>12|224,s>>6&63|128,s&63|128):s<=2097151&&e.push(s>>18&7|240,s>>12&63|128,s>>6&63|128,s&63|128)}return e}function Ym(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(Ym).join(", ")+"]";if(n==null)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;if(!n.toString)return"object";let e=n.toString();if(e==null)return""+e;let t=e.indexOf(` @@ -26,4 +26,4 @@ If '${e}' is a directive input, make sure the directive is imported by the curre \r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,v_=new RegExp(`[^${Jg}]`),w_=new RegExp(`[${Jg}]{2,}`,"g");function y_(n){return n.some(e=>e.name===Zg)}function ev(n){return n.replace(new RegExp(Ng,"g")," ")}var fh=class{visitElement(e,t){return g_.has(e.name)||y_(e.attrs)?new Pt(e.name,de(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Pt(e.name,e.attrs,Sm(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==Zg?e:null}visitText(e,t){let s=e.value.match(v_),r=t&&(t.prev instanceof Wr||t.next instanceof Wr);if(s||r){let i=e.tokens.map(a=>a.type===5?E_(a):a),o=tv(e.value);return new Ys(o,e.sourceSpan,i,e.i18n)}return null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}visitBlock(e,t){return new Mt(e.name,e.parameters,Sm(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan)}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}};function E_({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[tv(e[0])],sourceSpan:t}}function tv(n){return ev(n).replace(w_," ")}function Sm(n,e){let t=[];return e.forEach((s,r)=>{let i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}var bm=".",S_="attr",b_="class",x_="style",C_="*",Xc="animate-",mh=class{constructor(e,t,s,r,i=!1){this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=s,this.errors=r,this._allowInvalidAssignmentEvents=i}get interpolationConfig(){return this._interpolationConfig}createBoundHostProperties(e,t){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parsePropertyBinding(r,i,!0,!1,t,t.start.offset,void 0,[],s,t):this._reportError(`Value of the host property binding "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}createDirectiveHostEventAsts(e,t){let s=[];for(let r of Object.keys(e)){let i=e[r];typeof i=="string"?this.parseEvent(r,i,!1,t,t,[],s,t):this._reportError(`Value of the host listener "${r}" needs to be a string representing an expression but got "${i}" (${typeof i})`,t)}return s}parseInterpolation(e,t,s){let r=t.start.toString(),i=t.fullStart.offset;try{let o=this._exprParser.parseInterpolation(e,r,i,s,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,t),o}catch(o){return this._reportError(`${o}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",r,i)}}parseInterpolationExpression(e,t){let s=t.start.toString(),r=t.start.offset;try{let i=this._exprParser.parseInterpolationExpression(e,s,r);return i&&this._reportExpressionParserErrors(i.errors,t),i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}parseInlineTemplateBinding(e,t,s,r,i,o,a,l){let c=s.start.offset+C_.length,u=this._parseTemplateBindings(e,t,s,c,r);for(let p of u){let f=Jn(s,p.sourceSpan),g=p.key.source,w=Jn(s,p.key.span);if(p instanceof Hi){let y=p.value?p.value.source:"$implicit",b=p.value?Jn(s,p.value.span):void 0;a.push(new du(g,y,f,w,b))}else if(p.value){let y=l?f:s,b=Jn(s,p.value.ast.sourceSpan);this._parsePropertyAst(g,p.value,!1,y,w,b,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,w,r,void 0,i,o,w)}}_parseTemplateBindings(e,t,s,r,i){let o=s.start.toString();try{let a=this._exprParser.parseTemplateBindings(e,t,o,r,i);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEach(l=>{this._reportError(l,s,as.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){Yc(e)?(e=e.substring(1),l!==void 0&&(l=Jn(l,new wt(l.start.offset+1,l.end.offset))),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',s,as.ERROR),this._parseAnimation(e,t,s,r,l,i,o,a)):a.push(new Ci(e,this._exprParser.wrapLiteralPrimitive(t,"",r),rs.LITERAL_ATTR,s,l,i))}parsePropertyBinding(e,t,s,r,i,o,a,l,c,u){e.length===0&&this._reportError("Property name is missing in binding",i);let p=!1;e.startsWith(Xc)?(p=!0,e=e.substring(Xc.length),u!==void 0&&(u=Jn(u,new wt(u.start.offset+Xc.length,u.end.offset)))):Yc(e)&&(p=!0,e=e.substring(1),u!==void 0&&(u=Jn(u,new wt(u.start.offset+1,u.end.offset)))),p?this._parseAnimation(e,t,i,o,u,a,l,c):this._parsePropertyAst(e,this.parseBinding(t,s,a||i,o),r,i,u,a,l,c)}parsePropertyInterpolation(e,t,s,r,i,o,a,l){let c=this.parseInterpolation(t,r||s,l);return c?(this._parsePropertyAst(e,c,!1,s,a,r,i,o),!0):!1}_parsePropertyAst(e,t,s,r,i,o,a,l){a.push([e,t.source]),l.push(new Ci(e,t,s?rs.TWO_WAY:rs.DEFAULT,r,i,o))}_parseAnimation(e,t,s,r,i,o,a,l){e.length===0&&this._reportError("Animation trigger is missing",s);let c=this.parseBinding(t||"undefined",!1,o||s,r);a.push([e,c.source]),l.push(new Ci(e,c,rs.ANIMATION,s,i,o))}parseBinding(e,t,s,r){let i=(s&&s.start||"(unknown)").toString();try{let o=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,s),o}catch(o){return this._reportError(`${o}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}createBoundElementProperty(e,t,s=!1,r=!0){if(t.isAnimation)return new $a(t.name,ae.Animation,le.NONE,t.expression,null,t.sourceSpan,t.keySpan,t.valueSpan);let i=null,o,a=null,l=t.name.split(bm),c;if(l.length>1)if(l[0]==S_){a=l.slice(1).join(bm),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=Kc(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let p=a.substring(0,u),f=a.substring(u+1);a=gu(p,f)}o=ae.Attribute}else l[0]==b_?(a=l[1],o=ae.Class,c=[le.NONE]):l[0]==x_&&(i=l.length>2?l[2]:null,a=l[1],o=ae.Style,c=[le.STYLE]);if(a===null){let u=this._schemaRegistry.getMappedPropName(t.name);a=r?u:t.name,c=Kc(this._schemaRegistry,e,u,!1),o=t.type===rs.TWO_WAY?ae.TwoWay:ae.Property,s||this._validatePropertyOrAttributeName(u,t.sourceSpan,!1)}return new $a(a,o,c[0],t.expression,i,t.sourceSpan,t.keySpan,t.valueSpan)}parseEvent(e,t,s,r,i,o,a,l){e.length===0&&this._reportError("Event name is missing in binding",r),Yc(e)?(e=e.slice(1),l!==void 0&&(l=Jn(l,new wt(l.start.offset+1,l.end.offset))),this._parseAnimationEvent(e,t,r,i,a,l)):this._parseRegularEvent(e,t,s,r,i,o,a,l)}calcPossibleSecurityContexts(e,t,s){let r=this._schemaRegistry.getMappedPropName(t);return Kc(this._schemaRegistry,e,r,s)}_parseAnimationEvent(e,t,s,r,i,o){let a=Jy(e,[e,""]),l=a[0],c=a[1].toLowerCase(),u=this._parseAction(t,r);i.push(new Ra(l,c,Vt.Animation,u,s,r,o)),l.length===0&&this._reportError("Animation event name is missing in binding",s),c?c!=="start"&&c!=="done"&&this._reportError(`The provided animation output phase value "${c}" for "@${l}" is not supported (use start or done)`,s):this._reportError(`The animation trigger output event (@${l}) is missing its phase value name (start or done are currently supported)`,s)}_parseRegularEvent(e,t,s,r,i,o,a,l){let[c,u]=Zy(e,[null,e]),p=this.errors.length,f=this._parseAction(t,i),g=this.errors.length===p;o.push([e,f.source]),s&&g&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",r),a.push(new Ra(u,c,s?Vt.TwoWay:Vt.Regular,f,r,i,l))}_parseAction(e,t){let s=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{let i=this._exprParser.parseAction(e,s,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof et?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)):i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}_reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}_reportExpressionParserErrors(e,t){for(let s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){let r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,as.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Lt?this._isAllowedAssignmentEvent(e.ast):e instanceof Ui?this._isAllowedAssignmentEvent(e.expression):e instanceof Hs||e instanceof Mr?!0:this._allowInvalidAssignmentEvents?e instanceof Dt?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof Hs||e.right instanceof Mr):e instanceof $i||e instanceof qi:!1}};function Yc(n){return n[0]=="@"}function Kc(n,e,t,s){let r=[];return Ar.parse(e).forEach(i=>{let o=i.element?[i.element]:n.allKnownElementNames(),a=new Set(i.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),l=o.filter(c=>!a.has(c));r.push(...l.map(c=>n.securityContext(c,t,s)))}),r.length===0?[le.NONE]:Array.from(new Set(r)).sort()}function Jn(n,e){let t=e.start-n.start.offset,s=e.end-n.end.offset;return new $(n.start.moveBy(t),n.end.moveBy(s),n.fullStart.moveBy(t),n.details)}function __(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(A_);return e===null||e[1]=="package"||e[1]=="asset"}var A_=/^([^:/?#]+):/,T_="select",k_="link",I_="rel",P_="href",D_="stylesheet",N_="style",M_="script",L_="ngNonBindable",F_="ngProjectAs";function nv(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{let c=l.name.toLowerCase();c==T_?e=l.value:c==P_?t=l.value:c==I_?s=l.value:l.name==L_?r=!0:l.name==F_&&l.value.length>0&&(i=l.value)}),e=B_(e);let o=n.name.toLowerCase(),a=vt.OTHER;return fu(o)?a=vt.NG_CONTENT:o==N_?a=vt.STYLE:o==M_?a=vt.SCRIPT:o==k_&&s==D_&&(a=vt.STYLESHEET),new gh(a,e,t,r,i)}var vt=function(n){return n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER",n}(vt||{}),gh=class{constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}};function B_(n){return n===null||n.length===0?"*":n}var O_=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,R_=/^track\s+([\S\s]*)/,$_=/^(as\s)+(.*)/,Jh=/^else[^\S\r\n]+if/,V_=/^let\s+([\S\s]*)/,xm=/(\s*)(\S+)(\s*)/,Di=new Set(["$index","$first","$last","$even","$odd","$count"]);function Cm(n){return n==="empty"}function _m(n){return n==="else"||Jh.test(n)}function q_(n,e,t,s){let r=z_(e),i=[],o=Am(n,r,s);o!==null&&i.push(new Fs(o.expression,de(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let p of e)if(Jh.test(p.name)){let f=Am(p,r,s);if(f!==null){let g=de(t,p.children,p.children);i.push(new Fs(f.expression,g,f.expressionAlias,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}}else if(p.name==="else"){let f=de(t,p.children,p.children);i.push(new Fs(null,f,null,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}let a=i.length>0?i[0].startSourceSpan:n.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:n.endSourceSpan,c=n.sourceSpan,u=i[i.length-1];return u!==void 0&&(c=new $(a.start,u.sourceSpan.end)),{node:new ja(i,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function U_(n,e,t,s){let r=[],i=j_(n,r,s),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?r.push(new R(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new R(l.sourceSpan,"@empty block cannot have parameters")):a=new Qi(de(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new R(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)r.push(new R(n.sourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??n.endSourceSpan,c=new $(n.sourceSpan.start,l?.end??n.sourceSpan.end);o=new Or(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,de(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function H_(n,e,t){let s=G_(n),r=n.parameters.length>0?mo(n.parameters[0],t):t.parseBinding("",!1,n.sourceSpan,0),i=[],o=[],a=null;for(let l of n.children){if(!(l instanceof Mt))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new Wa(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?mo(l.parameters[0],t):null,u=new Gi(c,de(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?a=u:i.push(u)}return a!==null&&i.push(a),{node:new Ha(r,i,o,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:s}}function j_(n,e,t){if(n.parameters.length===0)return e.push(new R(n.sourceSpan,"@for loop does not have an expression")),null;let[s,...r]=n.parameters,i=Q_(s,e)?.match(O_);if(!i||i[2].trim().length===0)return e.push(new R(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;let[,o,a]=i;Di.has(o)&&e.push(new R(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(Di).join(", ")}.`));let l=s.expression.split(" ")[0],c=new $(s.sourceSpan.start,s.sourceSpan.start.moveBy(l.length)),u={itemName:new cs(o,"$implicit",c,c),trackBy:null,expression:mo(s,t,a),context:Array.from(Di,p=>{let f=new $(n.startSourceSpan.end,n.startSourceSpan.end);return new cs(p,p,f,f)})};for(let p of r){let f=p.expression.match(V_);if(f!==null){let w=new $(p.sourceSpan.start.moveBy(f[0].length-f[1].length),p.sourceSpan.end);W_(p.sourceSpan,f[1],w,o,u.context,e);continue}let g=p.expression.match(R_);if(g!==null){if(u.trackBy!==null)e.push(new R(p.sourceSpan,'@for loop can only have one "track" expression'));else{let w=mo(p,t,g[1]);w.ast instanceof et&&e.push(new R(p.sourceSpan,'@for loop must have a "track" expression'));let y=new $(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));u.trackBy={expression:w,keywordSpan:y}}continue}e.push(new R(p.sourceSpan,`Unrecognized @for loop paramater "${p.expression}"`))}return u}function W_(n,e,t,s,r,i){let o=e.split(","),a=t.start;for(let l of o){let c=l.split("="),u=c.length===2?c[0].trim():"",p=c.length===2?c[1].trim():"";if(u.length===0||p.length===0)i.push(new R(n,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(!Di.has(p))i.push(new R(n,`Unknown "let" parameter variable "${p}". The allowed variables are: ${Array.from(Di).join(", ")}`));else if(u===s)i.push(new R(n,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(f=>f.name===u))i.push(new R(n,`Duplicate "let" parameter variable "${p}"`));else{let[,f,g]=c[0].match(xm)??[],w=f!==void 0&&c.length===2?new $(a.moveBy(f.length),a.moveBy(f.length+g.length)):t,y;if(c.length===2){let[,x,N]=c[1].match(xm)??[];y=x!==void 0?new $(a.moveBy(c[0].length+1+x.length),a.moveBy(c[0].length+1+x.length+N.length)):void 0}let b=new $(w.start,y?.end??w.end);r.push(new cs(u,p,b,w,y))}a=a.moveBy(l.length+1)}}function z_(n){let e=[],t=!1;for(let s=0;s1&&s0&&e.push(new R(r.sourceSpan,"@else block cannot have parameters")),t=!0):Jh.test(r.name)||e.push(new R(r.sourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function G_(n){let e=[],t=!1;if(n.parameters.length!==1)return e.push(new R(n.sourceSpan,"@switch block must have exactly one parameter")),e;for(let s of n.children)if(!(s instanceof ho||s instanceof Ys&&s.value.trim().length===0)){if(!(s instanceof Mt)||s.name!=="case"&&s.name!=="default"){e.push(new R(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}s.name==="default"?(t?e.push(new R(s.sourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new R(s.sourceSpan,"@default block cannot have parameters")),t=!0):s.name==="case"&&s.parameters.length!==1&&e.push(new R(s.sourceSpan,"@case block must have exactly one parameter"))}return e}function mo(n,e,t){let s,r;return typeof t=="string"?(s=Math.max(0,n.expression.lastIndexOf(t)),r=s+t.length):(s=0,r=n.expression.length),e.parseBinding(n.expression.slice(s,r),!1,n.sourceSpan,n.sourceSpan.start.offset+s)}function Am(n,e,t){if(n.parameters.length===0)return e.push(new R(n.sourceSpan,"Conditional block does not have an expression")),null;let s=mo(n.parameters[0],t),r=null;for(let i=1;i-1;a--){let l=t[a];if(l===")"){if(o=a,r--,r===0)break}else{if(s.test(l))continue;break}}return r!==0?(e.push(new R(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(i,o)}var X_=/^\d+\.?\d*(ms|s)?$/,Y_=/^\s$/,Tm=new Map([[wn,rt],[_r,Er],[Rn,Yt]]),it=function(n){return n.IDLE="idle",n.TIMER="timer",n.INTERACTION="interaction",n.IMMEDIATE="immediate",n.HOVER="hover",n.VIEWPORT="viewport",n}(it||{});function km({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("when"),o=new $(e.start.moveBy(i),e.start.moveBy(i+4)),a=sv(n,e);if(i===-1)r.push(new R(e,'Could not find "when" keyword in expression'));else{let l=go(n,i+1),c=t.parseBinding(n.slice(l),!1,e,e.start.offset+l);rv("when",s,r,new yu(c,e,a,o))}}function Im({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("on"),o=new $(e.start.moveBy(i),e.start.moveBy(i+2)),a=sv(n,e);if(i===-1)s.push(new R(e,'Could not find "on" keyword in expression'));else{let l=go(n,i+1);new vh(n,l,e,t,s,r,a,o).parse()}}function sv(n,e){return n.startsWith("prefetch")?new $(e.start,e.start.moveBy(8)):null}var vh=class{constructor(e,t,s,r,i,o,a,l){this.expression=e,this.start=t,this.span=s,this.triggers=r,this.errors=i,this.placeholder=o,this.prefetchSpan=a,this.onSourceSpan=l,this.index=0,this.tokens=new uo().tokenize(e.slice(t))}parse(){for(;this.tokens.length>0&&this.index0&&r.isCharacter(t[t.length-1])&&t.pop(),t.length===0&&r.isCharacter(Rt)&&s.length>0){e.push(s),s="",this.advance();continue}s+=this.tokenText(),this.advance()}return(!this.token().isCharacter(Yt)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index0)throw new Error(`"${it.IDLE}" trigger cannot have parameters`);return new Eu(e,t,s,r)}function Z_(n,e,t,s,r){if(n.length!==1)throw new Error(`"${it.TIMER}" trigger must have exactly one parameter`);let i=_l(n[0]);if(i===null)throw new Error(`Could not parse time value of trigger "${it.TIMER}"`);return new bu(i,e,t,s,r)}function J_(n,e,t,s,r){if(n.length>0)throw new Error(`"${it.IMMEDIATE}" trigger cannot have parameters`);return new Su(e,t,s,r)}function e1(n,e,t,s,r,i){return ep(it.HOVER,n,i),new Va(n[0]??null,e,t,s,r)}function t1(n,e,t,s,r,i){return ep(it.INTERACTION,n,i),new qa(n[0]??null,e,t,s,r)}function n1(n,e,t,s,r,i){return ep(it.VIEWPORT,n,i),new Ua(n[0]??null,e,t,s,r)}function ep(n,e,t){if(e.length>1)throw new Error(`"${n}" trigger can only have zero or one parameters`);if(e.length===0){if(t===null)throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block`);if(t.children.length!==1||!(t.children[0]instanceof jt))throw new Error(`"${n}" trigger with no parameters can only be placed on an @defer that has a @placeholder block with exactly one root element node`)}}function go(n,e=0){let t=!1;for(let s=e;s0){let w=e[e.length-1];u=w.endSourceSpan,p=w.sourceSpan.end}let f=new $(n.sourceSpan.start,p);return{node:new Ws(de(t,n.children,n.children),l,c,i,o,a,n.nameSpan,f,n.sourceSpan,n.startSourceSpan,u,n.i18n),errors:r}}function c1(n,e,t){let s=null,r=null,i=null;for(let o of n)try{if(!wh(o.name)){e.push(new R(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":s!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @placeholder block")):s=u1(o,t);break;case"loading":r!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @loading block")):r=h1(o,t);break;case"error":i!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @error block")):i=p1(o,t);break}}catch(a){e.push(new R(o.startSourceSpan,a.message))}return{placeholder:s,loading:r,error:i}}function u1(n,e){let t=null;for(let s of n.parameters)if(iv.test(s.expression)){if(t!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=_l(s.expression.slice(go(s.expression)));if(r===null)throw new Error('Could not parse time value of parameter "minimum"');t=r}else throw new Error(`Unrecognized parameter in @placeholder block: "${s.expression}"`);return new ji(de(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function h1(n,e){let t=null,s=null;for(let r of n.parameters)if(i1.test(r.expression)){if(t!=null)throw new Error('@loading block can only have one "after" parameter');let i=_l(r.expression.slice(go(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');t=i}else if(iv.test(r.expression)){if(s!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=_l(r.expression.slice(go(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');s=i}else throw new Error(`Unrecognized parameter in @loading block: "${r.expression}"`);return new Wi(de(e,n.children,n.children),t,s,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function p1(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new zi(de(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function d1(n,e,t,s){let r={},i={};for(let o of n)o1.test(o.expression)?km(o,e,r,t):a1.test(o.expression)?Im(o,r,t,s):s1.test(o.expression)?km(o,e,i,t):r1.test(o.expression)?Im(o,i,t,s):t.push(new R(o.sourceSpan,"Unrecognized trigger"));return{triggers:r,prefetchTriggers:i}}var f1=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Pm=1,Dm=2,Nm=3,Mm=4,Lm=5,m1=6,vi=7,es={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Fm="*";function g1(n,e,t){let s=new yh(e,t),r=de(s,n,n),i=e.errors.concat(s.errors),o={nodes:r,errors:i,styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}var yh=class{constructor(e,t){this.bindingParser=e,this.options=t,this.errors=[],this.styles=[],this.styleUrls=[],this.ngContentSelectors=[],this.commentNodes=[],this.inI18nBlock=!1,this.processedNodes=new Set}visitElement(e){let t=hh(e.i18n);t&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);let s=nv(e);if(s.type===vt.SCRIPT)return null;if(s.type===vt.STYLE){let b=w1(e);return b!==null&&this.styles.push(b),null}else if(s.type===vt.STYLESHEET&&__(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=yE(e.name),i=[],o=[],a=[],l=[],c=[],u={},p=[],f=[],g=!1;for(let b of e.attrs){let x=!1,N=Bm(b.name),X=!1;if(b.i18n&&(u[b.name]=b.i18n),N.startsWith(Fm)){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",b.sourceSpan),X=!0,g=!0;let K=b.value,We=N.substring(Fm.length),Ke=[],Be=b.valueSpan?b.valueSpan.start.offset:b.sourceSpan.start.offset+b.name.length;this.bindingParser.parseInlineTemplateBinding(We,K,b.sourceSpan,Be,[],p,Ke,!0),f.push(...Ke.map(be=>new cs(be.name,be.value,be.sourceSpan,be.keySpan,be.valueSpan)))}else x=this.parseAttribute(r,b,[],i,o,a,l);!x&&!X&&c.push(this.visitAttribute(b))}let w;s.nonBindable?w=de(v1,e.children).flat(1/0):w=de(this,e.children,e.children);let y;if(s.type===vt.NG_CONTENT){let b=s.selectAttr,x=e.attrs.map(N=>this.visitAttribute(N));y=new Rr(b,x,w,e.sourceSpan,e.i18n),this.ngContentSelectors.push(b)}else if(r){let b=this.extractAttributes(e.name,i,u);y=new yt(e.name,c,b.bound,o,[],w,l,a,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{let b=this.extractAttributes(e.name,i,u);y=new jt(e.name,c,b.bound,o,w,l,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(g){let b=this.extractAttributes("ng-template",p,u),x=[];b.literal.forEach(We=>x.push(We)),b.bound.forEach(We=>x.push(We));let N=y instanceof jt?{attributes:y.attributes,inputs:y.inputs,outputs:y.outputs}:{attributes:[],inputs:[],outputs:[]},X=r&&t?void 0:e.i18n,K=y instanceof yt?null:y.name;y=new yt(K,N.attributes,N.inputs,N.outputs,x,[y],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,X)}return t&&(this.inI18nBlock=!1),y}visitAttribute(e){return new Br(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return this.processedNodes.has(e)?null:this._visitTextWithInterpolation(e.value,e.sourceSpan,e.tokens,e.i18n)}visitExpansion(e){if(!e.i18n)return null;if(!hh(e.i18n))throw new Error(`Invalid type "${e.i18n.constructor}" for "i18n" property of ${e.sourceSpan.toString()}. Expected a "Message"`);let t=e.i18n,s={},r={};return Object.keys(t.placeholders).forEach(i=>{let o=t.placeholders[i];if(i.startsWith(bE)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new Fr(l,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new za(s,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Lr(e.value||"",e.sourceSpan)),null}visitLetDeclaration(e,t){let s=this.bindingParser.parseBinding(e.value,!1,e.valueSpan,e.valueSpan.start.offset);return s.errors.length===0&&s.ast instanceof et&&this.reportError("@let declaration value cannot be empty",e.valueSpan),new Xi(e.name,s,e.sourceSpan,e.nameSpan,e.valueSpan)}visitBlockParameter(){return null}visitBlock(e,t){let s=Array.isArray(t)?t.indexOf(e):-1;if(s===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(e))return null;let r=null;switch(e.name){case"defer":r=l1(e,this.findConnectedBlocks(s,t,wh),this,this.bindingParser);break;case"switch":r=H_(e,this,this.bindingParser);break;case"for":r=U_(e,this.findConnectedBlocks(s,t,Cm),this,this.bindingParser);break;case"if":r=q_(e,this.findConnectedBlocks(s,t,_m),this,this.bindingParser);break;default:let i;wh(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Cm(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):_m(e.name)?(i=`@${e.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(e)):i=`Unrecognized block @${e.name}.`,r={node:new Wa(e.name,e.sourceSpan,e.nameSpan),errors:[new R(e.sourceSpan,i)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,s){let r=[];for(let i=e+1;i{let a=s[o.name];if(o.isLiteral)i.push(new Br(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(vu.fromBoundElementProperty(l,a))}}),{bound:r,literal:i}}parseAttribute(e,t,s,r,i,o,a){let l=Bm(t.name),c=t.value,u=t.sourceSpan,p=t.valueSpan?t.valueSpan.start.offset:u.start.offset;function f(x,N,X){let K=t.name.length-l.length,We=x.start.moveBy(N.length+K),Ke=We.moveBy(X.length);return new $(We,Ke,We,X)}let g=l.match(f1);if(g){if(g[Pm]!=null){let x=g[vi],N=f(u,g[Pm],x);this.bindingParser.parsePropertyBinding(x,c,!1,!1,u,p,t.valueSpan,s,r,N)}else if(g[Dm])if(e){let x=g[vi],N=f(u,g[Dm],x);this.parseVariable(x,c,u,N,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(g[Nm]){let x=g[vi],N=f(u,g[Nm],x);this.parseReference(x,c,u,N,t.valueSpan,a)}else if(g[Mm]){let x=[],N=g[vi],X=f(u,g[Mm],N);this.bindingParser.parseEvent(N,c,!1,u,t.valueSpan||u,s,x,X),Zc(x,i)}else if(g[Lm]){let x=g[vi],N=f(u,g[Lm],x);this.bindingParser.parsePropertyBinding(x,c,!1,!0,u,p,t.valueSpan,s,r,N),this.parseAssignmentEvent(x,c,u,t.valueSpan,s,i,N)}else if(g[m1]){let x=f(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,p,t.valueSpan,s,r,x)}return!0}let w=null;if(l.startsWith(es.BANANA_BOX.start)?w=es.BANANA_BOX:l.startsWith(es.PROPERTY.start)?w=es.PROPERTY:l.startsWith(es.EVENT.start)&&(w=es.EVENT),w!==null&&l.endsWith(w.end)&&l.length>w.start.length+w.end.length){let x=l.substring(w.start.length,l.length-w.end.length),N=f(u,w.start,x);if(w.start===es.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(x,c,!1,!0,u,p,t.valueSpan,s,r,N),this.parseAssignmentEvent(x,c,u,t.valueSpan,s,i,N);else if(w.start===es.PROPERTY.start)this.bindingParser.parsePropertyBinding(x,c,!1,!1,u,p,t.valueSpan,s,r,N);else{let X=[];this.bindingParser.parseEvent(x,c,!1,u,t.valueSpan||u,s,X,N),Zc(X,i)}return!0}let y=f(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,t.valueSpan,s,r,y,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,r){let i=ev(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new Fr(o,t,r):new Mn(i,t)}parseVariable(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):e.length===0&&this.reportError("Variable does not have a name",s),o.push(new cs(e,t,s,r,i))}parseReference(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):e.length===0?this.reportError("Reference does not have a name",s):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new Yi(e,t,s,r,i))}parseAssignmentEvent(e,t,s,r,i,o,a){let l=[];this.bindingParser.parseEvent(`${e}Change`,t,!0,s,r||s,i,l,a),Zc(l,o)}reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}},Eh=class{visitElement(e){let t=nv(e);if(t.type===vt.SCRIPT||t.type===vt.STYLE||t.type===vt.STYLESHEET)return null;let s=de(this,e.children,null);return new jt(e.name,de(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Br(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Mn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let s=[new Mn(e.startSourceSpan.toString(),e.startSourceSpan),...de(this,e.children)];return e.endSourceSpan!==null&&s.push(new Mn(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Mn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},v1=new Eh;function Bm(n){return/^data-/i.test(n)?n.substring(5):n}function Zc(n,e){e.push(...n.map(t=>wu.fromParsedEvent(t)))}function w1(n){return n.children.length!==1||!(n.children[0]instanceof Ys)?null:n.children[0].value}var y1=[" ",` `,"\r"," "];function E1(n,e,t={}){let{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=t,a=Al(s,o),c=new dh().parse(n,e,xe(E({leadingTriviaChars:y1},t),{tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!1}));if(!t.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let K={interpolationConfig:s,preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(K.commentNodes=[]),K}let u=c.rootNodes,p=new El(s,!r,i),f=p.visitAllWithErrors(u);if(!t.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let K={interpolationConfig:s,preserveWhitespaces:r,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(K.commentNodes=[]),K}u=f.rootNodes,r||(u=de(new fh,u),p.hasI18nMeta&&(u=de(new El(s,!1),u)));let{nodes:g,errors:w,styleUrls:y,styles:b,ngContentSelectors:x,commentNodes:N}=g1(u,a,{collectCommentNodes:!!t.collectCommentNodes});w.push(...c.errors,...f.errors);let X={interpolationConfig:s,preserveWhitespaces:r,errors:w.length>0?w:null,nodes:g,styleUrls:y,styles:b,ngContentSelectors:x};return t.collectCommentNodes&&(X.commentNodes=N),X}var S1=new zr;function Al(n=vn,e=!1){return new mh(new fl(new uo),n,S1,[],e)}var ov="%COMP%",b1=`_nghost-${ov}`,x1=`_ngcontent-${ov}`;function av(n,e,t){let s=new ps,r=Nh(n.selector);return s.set("type",n.type.value),r.length>0&&s.set("selectors",wr(r)),n.queries.length>0&&s.set("contentQueries",m_(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",f_(n.viewQueries,e,n.name)),s.set("hostBindings",D1(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",df(n.inputs,!0)),s.set("outputs",df(n.outputs)),n.exportAs!==null&&s.set("exportAs",se(n.exportAs.map(i=>v(i)))),n.isStandalone&&s.set("standalone",v(!0)),n.isSignal&&s.set("signals",v(!0)),s}function lv(n,e){let t=[],s=e.providers,r=e.viewProviders,i=Object.keys(e.inputs);if(s||r){let o=[s||new Ut([])];r&&o.push(r),t.push(T(d.ProvidersFeature).callFn(o))}for(let o of i)if(e.inputs[o].transformFunction!==null){t.push(T(d.InputTransformsFeatureFeature));break}e.hostDirectives?.length&&t.push(T(d.HostDirectivesFeature).callFn([B1(e.hostDirectives)])),e.usesInheritance&&t.push(T(d.InheritDefinitionFeature)),e.fullInheritance&&t.push(T(d.CopyDefinitionFeature)),e.lifecycle.usesOnChanges&&t.push(T(d.NgOnChangesFeature)),e.hasOwnProperty("template")&&e.isStandalone&&t.push(T(d.StandaloneFeature)),t.length&&n.set("features",se(t))}function C1(n,e,t){let s=av(n,e,t);lv(s,n);let r=T(d.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=P1(n);return{expression:r,type:i,statements:[]}}function _1(n,e,t){let s=av(n,e,t);lv(s,n);let r=n.selector&&Ar.parse(n.selector),i=r&&r[0];if(i){let f=i.getAttrs();f.length&&s.set("attrs",e.getConstLiteral(se(f.map(g=>g!=null?v(g):v(void 0))),!0))}let o=n.name,a=null;if(n.defer.mode===1&&n.defer.dependenciesFn!==null){let f=`${o}_DeferFn`;e.statements.push(new Xe(f,n.defer.dependenciesFn,void 0,Ue.Final)),a=H(f)}let l=GC(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);qg(l,C.Tmpl);let c=jC(l,e);if(l.contentSelectors!==null&&s.set("ngContentSelectors",l.contentSelectors),s.set("decls",v(l.root.decls)),s.set("vars",v(l.root.vars)),l.consts.length>0&&(l.constsInitializers.length>0?s.set("consts",bn([],[...l.constsInitializers,new ot(se(l.consts))])):s.set("consts",se(l.consts))),s.set("template",c),n.declarationListEmitMode!==3&&n.declarations.length>0)s.set("dependencies",T1(se(n.declarations.map(f=>f.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let f=[n.type.value];n.rawImports&&f.push(n.rawImports),s.set("dependencies",T(d.getComponentDepsFactory).callFn(f))}if(n.encapsulation===null&&(n.encapsulation=ss.Emulated),n.styles&&n.styles.length){let g=(n.encapsulation==ss.Emulated?F1(n.styles,x1,b1):n.styles).reduce((w,y)=>(y.trim().length>0&&w.push(e.getConstLiteral(v(y))),w),[]);g.length>0&&s.set("styles",se(g))}else n.encapsulation===ss.Emulated&&(n.encapsulation=ss.None);n.encapsulation!==ss.Emulated&&s.set("encapsulation",v(n.encapsulation)),n.animations!==null&&s.set("data",st([{key:"animation",value:n.animations,quoted:!1}])),n.changeDetection!==null&&(typeof n.changeDetection=="number"&&n.changeDetection!==Dh.Default?s.set("changeDetection",v(n.changeDetection)):typeof n.changeDetection=="object"&&s.set("changeDetection",n.changeDetection));let u=T(d.defineComponent).callFn([s.toLiteralMap()],void 0,!0),p=A1(n);return{expression:u,type:p,statements:[]}}function A1(n){let e=cv(n);return e.push(bh(n.template.ngContentSelectors)),e.push(He(v(n.isStandalone))),e.push(uv(n)),n.isSignal&&e.push(He(v(n.isSignal))),He(T(d.ComponentDeclaration,e))}function T1(n,e){switch(e){case 0:return n;case 1:return bn([],n);case 2:let t=n.prop("map").callFn([T(d.resolveForwardRef)]);return bn([],t);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function k1(n){return He(v(n))}function Sh(n){let e=Object.keys(n).map(t=>{let s=Array.isArray(n[t])?n[t][0]:n[t];return{key:t,value:v(s),quoted:!0}});return st(e)}function bh(n){return n.length>0?He(se(n.map(e=>v(e)))):Sn}function cv(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[Nl(n.type.type,n.typeArgumentCount),e!==null?k1(e):Sn,n.exportAs!==null?bh(n.exportAs):Sn,He(I1(n)),He(Sh(n.outputs)),bh(n.queries.map(t=>t.propertyName))]}function I1(n){return st(Object.keys(n.inputs).map(e=>{let t=n.inputs[e],s=[{key:"alias",value:v(t.bindingPropertyName),quoted:!0},{key:"required",value:v(t.required),quoted:!0}];return t.isSignal&&s.push({key:"isSignal",value:v(t.isSignal),quoted:!0}),{key:e,value:st(s),quoted:!0}}))}function P1(n){let e=cv(n);return e.push(Sn),e.push(He(v(n.isStandalone))),e.push(uv(n)),n.isSignal&&e.push(He(v(n.isSignal))),He(T(d.DirectiveDeclaration,e))}function D1(n,e,t,s,r,i,o){let a=t.createBoundHostProperties(n.properties,e),l=t.createDirectiveHostEventAsts(n.listeners,e);n.specialAttributes.styleAttr&&(n.attributes.style=v(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&(n.attributes.class=v(n.specialAttributes.classAttr));let c=QC({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);qg(c,C.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",v(u)),WC(c)}var N1=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function M1(n){let e={},t={},s={},r={};for(let i of Object.keys(n)){let o=n[i],a=i.match(N1);if(a===null)switch(i){case"class":if(typeof o!="string")throw new Error("Class binding must be string");r.classAttr=o;break;case"style":if(typeof o!="string")throw new Error("Style binding must be string");r.styleAttr=o;break;default:typeof o=="string"?e[i]=v(o):e[i]=o}else if(a[1]!=null){if(typeof o!="string")throw new Error("Property binding must be string");s[a[1]]=o}else if(a[2]!=null){if(typeof o!="string")throw new Error("Event binding must be string");t[a[2]]=o}}return{attributes:e,listeners:t,properties:s,specialAttributes:r}}function L1(n,e){let t=Al();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function F1(n,e,t){let s=new Du;return n.map(r=>s.shimCssText(r,e,t))}function uv(n){return n.hostDirectives?.length?He(se(n.hostDirectives.map(e=>st([{key:"directive",value:Pl(e.directive.type),quoted:!1},{key:"inputs",value:Sh(e.inputs||{}),quoted:!1},{key:"outputs",value:Sh(e.outputs||{}),quoted:!1}])))):Sn}function B1(n){let e=[],t=!1;for(let s of n){if(!s.inputs&&!s.outputs)e.push(s.directive.type);else{let r=[{key:"directive",value:s.directive.type,quoted:!1}];if(s.inputs){let i=Om(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=Om(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(st(r))}s.isForwardReference&&(t=!0)}return t?new Fn([],[new ot(se(e))]):se(e)}function Om(n){let e=[];for(let t in n)n.hasOwnProperty(t)&&e.push(v(t),v(n[t]));return e.length>0?se(e):null}var xh=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let t=Ch.apply(e.template),s=O1(t),{directives:r,eagerDirectives:i,bindings:o,references:a}=_h.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:u,usedPipes:p,eagerPipes:f,deferBlocks:g}=Ah.applyWithScope(e.template,t);return new Th(e,r,i,o,a,l,c,u,s,p,f,g)}},Ch=class n{constructor(e,t){this.parentScope=e,this.rootNode=t,this.namedEntities=new Map,this.elementsInScope=new Set,this.childScopes=new Map,this.isDeferred=e!==null&&e.isDeferred?!0:t instanceof Ws}static newRootScope(){return new n(null,null)}static apply(e){let t=n.newRootScope();return t.ingest(e),t}ingest(e){e instanceof yt?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof Fs?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(t=>t.visit(this))):e instanceof Or?(this.visitVariable(e.item),e.contextVariables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof Gi||e instanceof Qi||e instanceof Ws||e instanceof zi||e instanceof ji||e instanceof Wi||e instanceof Rr?e.children.forEach(t=>t.visit(this)):e.forEach(t=>t.visit(this))}visitElement(e){e.references.forEach(t=>this.visitReference(t)),e.children.forEach(t=>t.visit(this)),this.elementsInScope.add(e)}visitTemplate(e){e.references.forEach(t=>this.visitReference(t)),this.ingestScopedNode(e)}visitVariable(e){this.maybeDeclare(e)}visitReference(e){this.maybeDeclare(e)}visitDeferredBlock(e){this.ingestScopedNode(e),e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){this.ingestScopedNode(e)}visitForLoopBlock(e){this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitLetDeclaration(e){this.maybeDeclare(e)}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundText(e){}visitText(e){}visitTextAttribute(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}maybeDeclare(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)}lookup(e){return this.namedEntities.has(e)?this.namedEntities.get(e):this.parentScope!==null?this.parentScope.lookup(e):null}getChildScope(e){let t=this.childScopes.get(e);if(t===void 0)throw new Error(`Assertion error: child scope for ${e} not found`);return t}ingestScopedNode(e){let t=new n(this,e);t.ingest(e),this.childScopes.set(e,t)}},_h=class n{constructor(e,t,s,r,i){this.matcher=e,this.directives=t,this.eagerDirectives=s,this.bindings=r,this.references=i,this.isInDeferBlock=!1}static apply(e,t){let s=new Map,r=new Map,i=new Map,o=[];return new n(t,s,o,r,i).ingest(e),{directives:s,eagerDirectives:o,bindings:r,references:i}}ingest(e){e.forEach(t=>t.visit(this))}visitElement(e){this.visitElementOrTemplate(e)}visitTemplate(e){this.visitElementOrTemplate(e)}visitElementOrTemplate(e){let t=_E(e),s=[];this.matcher.match(t,(i,o)=>s.push(...o)),s.length>0&&(this.directives.set(e,s),this.isInDeferBlock||this.eagerDirectives.push(...s)),e.references.forEach(i=>{let o=null;if(i.value.trim()==="")o=s.find(a=>a.isComponent)||null;else if(o=s.find(a=>a.exportAs!==null&&a.exportAs.some(l=>l===i.value))||null,o===null)return;o!==null?this.references.set(i,{directive:o,node:e}):this.references.set(i,e)});let r=(i,o)=>{let a=s.find(c=>c[o].hasBindingPropertyName(i.name)),l=a!==void 0?a:e;this.bindings.set(i,l)};e.inputs.forEach(i=>r(i,"inputs")),e.attributes.forEach(i=>r(i,"inputs")),e instanceof yt&&e.templateAttrs.forEach(i=>r(i,"inputs")),e.outputs.forEach(i=>r(i,"outputs")),e.children.forEach(i=>i.visit(this))}visitDeferredBlock(e){let t=this.isInDeferBlock;this.isInDeferBlock=!0,e.children.forEach(s=>s.visit(this)),this.isInDeferBlock=t,e.placeholder?.visit(this),e.loading?.visit(this),e.error?.visit(this)}visitDeferredBlockPlaceholder(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockError(e){e.children.forEach(t=>t.visit(this))}visitDeferredBlockLoading(e){e.children.forEach(t=>t.visit(this))}visitSwitchBlock(e){e.cases.forEach(t=>t.visit(this))}visitSwitchBlockCase(e){e.children.forEach(t=>t.visit(this))}visitForLoopBlock(e){e.item.visit(this),e.contextVariables.forEach(t=>t.visit(this)),e.children.forEach(t=>t.visit(this)),e.empty?.visit(this)}visitForLoopBlockEmpty(e){e.children.forEach(t=>t.visit(this))}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expressionAlias?.visit(this),e.children.forEach(t=>t.visit(this))}visitContent(e){e.children.forEach(t=>t.visit(this))}visitVariable(e){}visitReference(e){}visitTextAttribute(e){}visitBoundAttribute(e){}visitBoundEvent(e){}visitBoundAttributeOrEvent(e){}visitText(e){}visitBoundText(e){}visitIcu(e){}visitDeferredTrigger(e){}visitUnknownBlock(e){}visitLetDeclaration(e){}},Ah=class n extends Oa{constructor(e,t,s,r,i,o,a,l,c){super(),this.bindings=e,this.symbols=t,this.usedPipes=s,this.eagerPipes=r,this.deferBlocks=i,this.nestingLevel=o,this.scope=a,this.rootNode=l,this.level=c,this.visitNode=u=>u.visit(this)}visit(e,t){e instanceof ve?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){let s=new Map,r=new Map,i=new Map,o=new Set,a=new Set,l=e instanceof yt?e:null,c=[];return new n(s,r,o,a,c,i,t,l,0).ingest(e),{expressions:s,symbols:r,nestingLevel:i,usedPipes:o,eagerPipes:a,deferBlocks:c}}ingest(e){if(e instanceof yt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Fs)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Or)this.visitNode(e.item),e.contextVariables.forEach(t=>this.visitNode(t)),e.trackBy.visit(this),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Ws){if(this.scope.rootNode!==e)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${e}`);this.deferBlocks.push([e,this.scope]),e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)}else e instanceof Gi||e instanceof Qi||e instanceof zi||e instanceof ji||e instanceof Wi||e instanceof Rr?(e.children.forEach(t=>t.visit(this)),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)}visitElement(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode),e.references.forEach(this.visitNode)}visitTemplate(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode),this.ingestScopedNode(e)}visitVariable(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitReference(e){this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitText(e){}visitTextAttribute(e){}visitUnknownBlock(e){}visitDeferredTrigger(){}visitIcu(e){Object.keys(e.vars).forEach(t=>e.vars[t].visit(this)),Object.keys(e.placeholders).forEach(t=>e.placeholders[t].visit(this))}visitBoundAttribute(e){e.value.visit(this)}visitBoundEvent(e){e.handler.visit(this)}visitDeferredBlock(e){this.ingestScopedNode(e),e.triggers.when?.value.visit(this),e.prefetchTriggers.when?.value.visit(this),e.placeholder&&this.visitNode(e.placeholder),e.loading&&this.visitNode(e.loading),e.error&&this.visitNode(e.error)}visitDeferredBlockPlaceholder(e){this.ingestScopedNode(e)}visitDeferredBlockError(e){this.ingestScopedNode(e)}visitDeferredBlockLoading(e){this.ingestScopedNode(e)}visitSwitchBlock(e){e.expression.visit(this),e.cases.forEach(this.visitNode)}visitSwitchBlockCase(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitForLoopBlock(e){e.expression.visit(this),this.ingestScopedNode(e),e.empty?.visit(this)}visitForLoopBlockEmpty(e){this.ingestScopedNode(e)}visitIfBlock(e){e.branches.forEach(t=>t.visit(this))}visitIfBlockBranch(e){e.expression?.visit(this),this.ingestScopedNode(e)}visitContent(e){this.ingestScopedNode(e)}visitBoundText(e){e.value.visit(this)}visitLetDeclaration(e){e.value.visit(this),this.rootNode!==null&&this.symbols.set(e,this.rootNode)}visitPipe(e,t){return this.usedPipes.add(e.name),this.scope.isDeferred||this.eagerPipes.add(e.name),super.visitPipe(e,t)}visitPropertyRead(e,t){return this.maybeMap(e,e.name),super.visitPropertyRead(e,t)}visitSafePropertyRead(e,t){return this.maybeMap(e,e.name),super.visitSafePropertyRead(e,t)}visitPropertyWrite(e,t){return this.maybeMap(e,e.name),super.visitPropertyWrite(e,t)}ingestScopedNode(e){let t=this.scope.getChildScope(e);new n(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,t,e,this.level+1).ingest(e)}maybeMap(e,t){if(!(e.receiver instanceof Bn))return;let s=this.scope.lookup(t);s instanceof Xi&&e.receiver instanceof Ls||s!==null&&this.bindings.set(e,s)}},Th=class{constructor(e,t,s,r,i,o,a,l,c,u,p,f){this.target=e,this.directives=t,this.eagerDirectives=s,this.bindings=r,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=u,this.eagerPipes=p,this.deferredBlocks=f.map(g=>g[0]),this.deferredScopes=new Map(f)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(t=>t.forEach(s=>e.add(s))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof qa)&&!(t instanceof Ua)&&!(t instanceof Va))return null;let s=t.reference;if(s===null){let i=null;if(e.placeholder!==null){for(let o of e.placeholder.children)if(!(o instanceof Lr)){if(i!==null)return null;o instanceof jt&&(i=o)}}return i}let r=this.findEntityInScope(e,s);if(r instanceof Yi&&this.getDefinitionNodeOfSymbol(r)!==e){let i=this.getReferenceTarget(r);if(i!==null)return this.referenceTargetToElement(i)}if(e.placeholder!==null){let i=this.findEntityInScope(e.placeholder,s),o=i instanceof Yi?this.getReferenceTarget(i):null;if(o!==null)return this.referenceTargetToElement(o)}return null}isDeferred(e){for(let t of this.deferredBlocks){if(!this.deferredScopes.has(t))continue;let s=[this.deferredScopes.get(t)];for(;s.length>0;){let r=s.pop();if(r.elementsInScope.has(e))return!0;s.push(...r.childScopes.values())}}return!1}findEntityInScope(e,t){let s=this.getEntitiesInScope(e);for(let r of s)if(r.name===t)return r;return null}referenceTargetToElement(e){return e instanceof jt?e:e instanceof yt?null:this.referenceTargetToElement(e.node)}};function O1(n){let e=new Map;function t(i){if(e.has(i.rootNode))return e.get(i.rootNode);let o=i.namedEntities,a;return i.parentScope!==null?a=new Map([...t(i.parentScope),...o]):a=new Map(o),e.set(i.rootNode,a),a}let s=[n];for(;s.length>0;){let i=s.pop();for(let o of i.childScopes.values())s.push(o);t(i)}let r=new Map;for(let[i,o]of e)r.set(i,new Set(o.values()));return r}var Qr=class{},R1=!1;var kh=class{constructor(e=new ku){this.jitEvaluator=e,this.FactoryTarget=Pn,this.ResourceLoader=Qr,this.elementSchemaRegistry=new zr}compilePipe(e,t,s){let r={name:s.name,type:Me(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone},i=xf(r);return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){let r=tA(s),i=xf(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){let{expression:r,statements:i}=ff({name:s.name,type:Me(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:Um(s.providedIn),useClass:fr(s,"useClass"),useFactory:qm(s,"useFactory"),useValue:fr(s,"useValue"),useExisting:fr(s,"useExisting"),deps:s.deps?.map(mv)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){let{expression:r,statements:i}=ff({name:s.type.name,type:Me(s.type),typeArgumentCount:0,providedIn:Um(s.providedIn),useClass:fr(s,"useClass"),useFactory:qm(s,"useFactory"),useValue:fr(s,"useValue"),useExisting:fr(s,"useExisting"),deps:s.deps?.map(Hm)},!0);return this.jitExpression(r,e,t,i)}compileInjector(e,t,s){let r={name:s.name,type:Me(s.type),providers:s.providers&&s.providers.length>0?new j(s.providers):null,imports:s.imports.map(o=>new j(o))},i=bf(r);return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){let r=nA(s),i=bf(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){let r={kind:ls.Global,type:Me(s.type),bootstrap:s.bootstrap.map(Me),declarations:s.declarations.map(Me),publicDeclarationTypes:null,imports:s.imports.map(Me),includeImportTypes:!0,exports:s.exports.map(Me),selectorScopeMode:Ja.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(Me):null,id:s.id?new j(s.id):null},i=YE(r);return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){let r=KE(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){let r=Vm(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){let r=this.createParseSourceSpan("Directive",s.type.name,t),i=pv(s,r);return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){let r=new _a,i=Al(),o=C1(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){let{template:r,interpolation:i,defer:o}=fv(s.template,s.name,t,s.preserveWhitespaces,s.interpolation,void 0),a=xe(E(E({},s),Vm(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(U1),declarationListEmitMode:0,defer:o,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:i,changeDetection:s.changeDetection??null,animations:s.animations!=null?new j(s.animations):null,viewProviders:s.viewProviders!=null?new j(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),l=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,t,s){let r=this.createParseSourceSpan("Component",s.type.name,t),i=q1(s,r,t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){let r=new _a,i=Al(s.interpolation),o=_1(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){let r=Ts({name:s.name,type:Me(s.type),typeArgumentCount:s.typeArgumentCount,deps:W1(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){let r=Ts({name:s.type.name,type:Me(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(Hm):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return HE(e,t,s)}jitExpression(e,t,s,r){let i=[...r,new Xe("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Pu(t),!0).$def}};function Rm(n){return xe(E({},n),{isSignal:n.isSignal,predicate:hv(n.predicate),read:n.read?new j(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function $m(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:hv(n.predicate),descendants:n.descendants??!1,read:n.read?new j(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function hv(n){return Array.isArray(n)?n:Fh(new j(n),1)}function Vm(n){let e=eA(n.inputs||[]),t=Ih(n.outputs||[]),s=n.propMetadata,r={},i={};for(let o in s)s.hasOwnProperty(o)&&s[o].forEach(a=>{Y1(a)?r[o]={bindingPropertyName:a.alias||o,classPropertyName:o,required:a.required||!1,isSignal:!!a.isSignal,transformFunction:a.transform!=null?new j(a.transform):null}:K1(a)&&(i[o]=a.alias||o)});return xe(E({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Me(n.type),deps:null,host:E({},G1(n.propMetadata,n.typeSourceSpan,n.host)),inputs:E(E({},e),r),outputs:E(E({},t),i),queries:n.queries.map(Rm),providers:n.providers!=null?new j(n.providers):null,viewQueries:n.viewQueries.map(Rm),fullInheritance:!1,hostDirectives:dv(n)})}function pv(n,e){return{name:n.type.name,type:Me(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?Z1(n.inputs):{},outputs:n.outputs??{},host:$1(n.host),queries:(n.queries??[]).map($m),viewQueries:(n.viewQueries??[]).map($m),providers:n.providers!==void 0?new j(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:n.isStandalone??!1,isSignal:n.isSignal??!1,hostDirectives:dv(n)}}function $1(n={}){return{attributes:V1(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function dv(n){return n.hostDirectives?.length?n.hostDirectives.map(e=>typeof e=="function"?{directive:Me(e),inputs:null,outputs:null,isForwardReference:!1}:{directive:Me(e.directive),isForwardReference:!1,inputs:e.inputs?Ih(e.inputs):null,outputs:e.outputs?Ih(e.outputs):null}):null}function V1(n){let e={};for(let t of Object.keys(n))e[t]=new j(n[t]);return e}function q1(n,e,t){let{template:s,interpolation:r,defer:i}=fv(n.template,n.type.name,t,n.preserveWhitespaces??!1,n.interpolation,n.deferBlockDependencies),o=[];if(n.dependencies)for(let a of n.dependencies)switch(a.kind){case"directive":case"component":o.push(Jc(a));break;case"pipe":o.push(j1(a));break}else(n.components||n.directives||n.pipes)&&(n.components&&o.push(...n.components.map(a=>Jc(a,!0))),n.directives&&o.push(...n.directives.map(a=>Jc(a))),n.pipes&&o.push(...H1(n.pipes)));return xe(E({},pv(n,e)),{template:s,styles:n.styles??[],declarations:o,viewProviders:n.viewProviders!==void 0?new j(n.viewProviders):null,animations:n.animations!==void 0?new j(n.animations):null,defer:i,changeDetection:n.changeDetection??Dh.Default,encapsulation:n.encapsulation??ss.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}function U1(n){return xe(E({},n),{type:new j(n.type)})}function Jc(n,e=null){return{kind:Ll.Directive,isComponent:e||n.kind==="component",selector:n.selector,type:new j(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function H1(n){return n?Object.keys(n).map(e=>({kind:Ll.Pipe,name:e,type:new j(n[e])})):[]}function j1(n){return{kind:Ll.Pipe,name:n.name,type:new j(n.type)}}function fv(n,e,t,s,r,i){let o=r?Xa.fromArray(r):vn,a=E1(n,t,{preserveWhitespaces:s,interpolationConfig:o,enableLetSyntax:R1});if(a.errors!==null){let u=a.errors.map(p=>p.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${e}: ${u}`)}let c=new xh(new ma).bind({template:a.nodes});return{template:a,interpolation:o,defer:z1(c,i)}}function fr(n,e){if(n.hasOwnProperty(e))return Fh(new j(n[e]),0)}function qm(n,e){if(n.hasOwnProperty(e))return new j(n[e])}function Um(n){let e=typeof n=="function"?new j(n):new je(n??null);return Fh(e,0)}function W1(n){return n==null?null:n.map(mv)}function mv(n){let e=n.attribute!=null,t=n.token===null?null:new j(n.token),s=e?new j(n.attribute):t;return gv(s,e,n.host,n.optional,n.self,n.skipSelf)}function Hm(n){let e=n.attribute??!1,t=n.token===null?null:new j(n.token);return gv(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function gv(n,e,t,s,r,i){let o=e?v("unknown"):null;return{token:n,attributeNameType:o,host:t,optional:s,self:r,skipSelf:i}}function z1(n,e){let t=n.getDeferBlocks(),s=new Map;for(let r=0;ri.msg).join(` `));for(let i in n)n.hasOwnProperty(i)&&n[i].forEach(o=>{Q1(o)?s.properties[o.hostPropertyName||i]=lE("this",i):X1(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function Q1(n){return n.ngMetadataName==="HostBinding"}function X1(n){return n.ngMetadataName==="HostListener"}function Y1(n){return n.ngMetadataName==="Input"}function K1(n){return n.ngMetadataName==="Output"}function Z1(n){return Object.keys(n).reduce((e,t)=>{let s=n[t];return typeof s=="string"||Array.isArray(s)?e[t]=J1(s):e[t]={bindingPropertyName:s.publicName,classPropertyName:t,transformFunction:s.transformFunction!==null?new j(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function J1(n){return typeof n=="string"?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new j(n[2]):null,required:!1,isSignal:!1}}function eA(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[s,r]=vv(t);e[r]={bindingPropertyName:s,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,isSignal:!1,transformFunction:t.transform!=null?new j(t.transform):null};return e},{})}function Ih(n){return n.reduce((e,t)=>{let[s,r]=vv(t);return e[r]=s,e},{})}function vv(n){let[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}function tA(n){return{name:n.type.name,type:Me(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??!1}}function nA(n){return{name:n.type.name,type:Me(n.type),providers:n.providers!==void 0&&n.providers.length>0?new j(n.providers):null,imports:n.imports!==void 0?n.imports.map(e=>new j(e)):[]}}function sA(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new kh}var BT=new au("18.0.5"),vo=class{constructor({defaultEncapsulation:e=ss.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=rA(eE(t)),this.strictInjectionParameters=s===!0}};function rA(n,e=!1){return n===null?e:n}var Ph=class{constructor(){this.closedByParent=!1,this.implicitNamespacePrefix=null,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0,this.preventNamespaceInheritance=!1}requireExtraParent(e){return!1}isClosedByChild(e){return!1}getContentType(){return gn.PARSABLE_DATA}},OT=new Ph;sA(xi);var iA=[{provide:Mo,useFactory:()=>new Mo}],Vl=class{constructor(e){let t={defaultEncapsulation:wp.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){let t=oA(this._defaultOptions.concat(e));return xp.create({providers:[iA,{provide:vo,useFactory:()=>new vo({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(Mo)}};function oA(n){return{defaultEncapsulation:wv(n.map(e=>e.defaultEncapsulation)),providers:aA(n.map(e=>e.providers)),preserveWhitespaces:wv(n.map(e=>e.preserveWhitespaces))}}function wv(n){for(let e=n.length-1;e>=0;e--)if(n[e]!==void 0)return n[e]}function aA(n){let e=[];return n.forEach(t=>t&&e.push(...t)),e}var yv=zl(Np,"coreDynamic",[{provide:Lo,useValue:{},multi:!0},{provide:Dp,useClass:Vl,deps:[Lo]}]),lA=(()=>{let e=class e extends Qr{get(s){let r,i,o=new Promise((l,c)=>{r=l,i=c}),a=new XMLHttpRequest;return a.open("GET",s,!0),a.responseType="text",a.onload=function(){let l=a.response,c=a.status;c===0&&(c=l?200:0),200<=c&&c<=300?r(l):i(`Failed to load ${s}`)},a.onerror=function(){i(`Failed to load ${s}`)},a.send(),o}};e.\u0275fac=(()=>{let s;return function(i){return(s||(s=bp(e)))(i||e)}})(),e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})(),Ev=[Vp,{provide:Lo,useValue:{providers:[{provide:Qr,useClass:lA,deps:[]}]},multi:!0},{provide:Cp,useValue:Fp}],cA=new Ip("18.0.5"),uA=zl(yv,"browserDynamic",Ev);var ni={production:!1};var Sv=(()=>{let e=class e{constructor(s,r,i){this.ds=s,this.wt=r,this.us=i}initialize(){return Zs(this,null,function*(){_e.mobile=screen.availWidth<=576,this.setupGridster(),this.us.isMobile()&&this.setupMobile();try{yield Promise.all([this.ds.loadMainConfig(),this.loadAddons()].map(s=>s.catch(()=>{})))}catch{}})}loadAddons(){return Zs(this,null,function*(){try{let s=yield this.ds.loadAddons();if(localStorage.devAddons)try{s=JSON.parse(localStorage.devAddons)}catch{}let r=[];if(s&&s.length){_e.addons=[...s];for(let i=0;i<_e.addons.length;i++){let o=_e.addons[i].split("/").pop()?.replace(".js","");r.push(this.loadAddon(_e.addons[i],o||"").catch(()=>{}))}}yield Promise.all(r)}catch(s){console.log(`Can't load addons: ${s}`)}})}setupGridster(){Ne.displayGrid=td.None,Ne.draggable&&(Ne.draggable.dragHandleClass=".drag-handle"),Ne.resizable&&(Ne.resizable.handles={s:!1,e:!1,n:!1,w:!1,se:!0,ne:!1,sw:!1,nw:!1}),Ne.gridType="scrollVertical",Ne.minCols=12,Ne.maxCols=12,Ne.floating=!0,Ne.pushItems=!0,Ne.resizable&&(Ne.resizable.enabled=!1),Ne.draggable&&(Ne.draggable.enabled=!1),Ne.margin=5,Ne.mobileBreakPoint=576,window.location.href.split("#").pop()?.indexOf("widget=")!==-1&&(Ne.mobileBreakPoint=0)}loadAddon(s,r){return Zs(this,null,function*(){let i;try{i=yield fetch(s)}catch{return}if(!i)return;let o=yield i.text();window.exports={};let a={tslib:up,"@angular/core":Oe,"@angular/platform-browser":ii,"highcharts/highstock":pA,"@angular/platform-browser-dynamic":sp,"@angular/common":Lp,"@angular/router":Gp,"../app/services/util.service":{UtilService:nr},"../app/services/variables.service":{VariablesService:hd},"../app/services/storage.service":{StorageService:cn},"../app/services/data.service":{DataService:At},"../app/services/filter.service":{FilterService:sr},"../app/services/widget-type.service":{WidgetTypeService:or},"../app/services/dashboard.service":{DashboardService:od},"../app/services/namespace.service":{NamespaceService:un},"../app/services/i18n.service":{I18nService:Gn},"../app/services/broadcast.service":{BroadcastService:id},"../app/services/sidebar.service":{SidebarService:Tt},"../app/components/widgets/base-widget.class":{BaseWidget:ad},"../app/components/widgets/charts/base-chart.class":{BaseChartClass:ud}};window.require=p=>(a[p]||console.error(`Can't find module ${p} in required shim.`),a[p]),ni.production||(o+=`\r -//# sourceURL=`+s),window["eval"](o);let c,u="";for(let p in exports)if(exports[p].toString().startsWith("class")){c=exports[p],u=p;break}if(c){let p=s.split("/").pop().replace(/dsw.addons./ig,"").split(".").slice(0,-1).join("."),f=c.AddonInfo;f.overrideBaseType?this.wt.register(f.overrideBaseType,f?.type||"custom",c,f):this.wt.register(p,f?.type||"custom",c,f)}else console.warn(`Can't load addon for file: ${s}. Exported class not found.`)})}setupMobile(){window.addEventListener("resize",()=>{let s=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${s}px`)})}};e.\u0275fac=function(r){return new(r||e)(Ze(At),Ze(or),Ze(nr))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var dA=n=>()=>Zs(void 0,null,function*(){yield n.initialize()}),bv={providers:[Ep(rd,ii,ld,hn,ed),Bp(Op()),Xd(),ni.production?Gl(tc,Ql()):Gl(tc,Ql(),zp(Wp)),{provide:Pp,useFactory:dA,multi:!0,deps:[Sv]}]};function fA(n,e){n&1&&Do(0)}var xv=oi("toggle",[Kn(":enter",[Re({maxWidth:"0"}),Yn("100ms",Re({maxWidth:"*"}))]),Kn(":leave",[Re({maxWidth:""}),Yn("100ms",Re({maxWidth:"0"}))])]),Cv=(()=>{let e=class e{constructor(s,r,i){this.ss=s,this.r2=r,this.cd=i,this.sidebarToggle$=this.ss.sidebarToggle.pipe(ai())}ngOnInit(){this.sidebarToggle$.subscribe(s=>{this.info=s,this.cd.detectChanges()})}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(Io),M(Fo))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-sidebar"]],standalone:!0,features:[De],decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(r,i){r&1&&we(0,fA,1,0,"ng-container",0),r&2&&te("ngComponentOutlet",i.info==null?null:i.info.component)("ngComponentOutletInputs",i.info==null?null:i.info.inputs)},dependencies:[Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;height:100%;width:var(--sidebar-width);max-width:var(--sidebar-width);background-color:var(--cl-sidebar-bg);color:var(--cl-sidebar-txt);flex:0 0 var(--sidebar-width);border-right:1px solid var(--cl-sidebar-border);z-index:3;position:relative;overflow:hidden}"],changeDetection:0});let n=e;return n})();var _v=oi("toggleError",[Kn(":enter",[Re({transform:"translateX(100%)"}),Yn("100ms",Re({transform:"translateX(0)"}))]),Kn(":leave",[Re({transform:"translateX(0)"}),Yn("100ms",Re({transform:"translateX(100%)"}))])]),Av=oi("toggleErrorLeft",[Kn(":enter",[Re({transform:"translateX(-100%)"}),Yn("100ms",Re({transform:"translateX(0)"}))]),Kn(":leave",[Re({transform:"translateX(0)"}),Yn("100ms",Re({transform:"translateX(-100%)"}))])]),Tv=(()=>{let e=class e{constructor(s,r){this.es=s,this.el=r,this.height=32}get isLeft(){return this.error.isLeft}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}ngOnInit(){}ngAfterViewInit(){}onClick(s){this.es.close(this.error)}};e.\u0275fac=function(r){return new(r||e)(M(tr),M(sn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(r,i){r&1&&ee("click",function(a){return i.onClick(a)}),r&2&&(Po("bottom",i.getOffset,"px"),Je("left",i.isLeft))},inputs:{error:"error"},standalone:!0,features:[De],decls:2,vars:1,template:function(r,i){r&1&&(B(0,"span"),ge(1),O()),r&2&&(D(),Qt(i.error.message))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;cursor:pointer;position:absolute;padding:4px 10px;height:32px;color:#fff;background-color:red;display:flex;justify-content:flex-start;align-items:center;border-radius:4px;right:10px;white-space:nowrap;max-width:50%;transition:bottom .1s linear;z-index:100}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:ellipsis}.left[_nghost-%COMP%]{right:auto;left:10px}"]});let n=e;return n})();var mA=["inp"],ql=(()=>{let e=class e{constructor(){this.search=new si,this.value="",this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=_o(this.inp.nativeElement,"input").pipe(Ao(200),To()).subscribe(()=>{this.search.emit(this.value)})}writeValue(s){this.value=s}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){}onModelChange(s){this.writeValue(s),this.onChange(s)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Pe({type:e,selectors:[["dsw-search-input"]],viewQuery:function(r,i){if(r&1&&ut(mA,7),r&2){let o;ht(o=pt())&&(i.inp=o.first)}},outputs:{search:"search"},standalone:!0,features:[kp([{provide:Xp,useExisting:vp(()=>e),multi:!0}]),De],decls:3,vars:1,consts:[["inp",""],["ngSrc","assets/img/icons/icon-search.svg","height","12","width","12","priority",""],["type","text","placeholder","Search",3,"keydown.enter","ngModelChange","ngModel"]],template:function(r,i){if(r&1){let o=Ce();me(0,"img",1),B(1,"input",2,0),ee("keydown.enter",function(){ce(o);let l=No(2);return ue(l.blur())}),kn("ngModelChange",function(l){return ce(o),Tn(i.value,l)||(i.value=l),ue(l)}),ee("ngModelChange",function(l){return ce(o),ue(i.onModelChange(l))}),O()}r&2&&(D(),An("ngModel",i.value))},dependencies:[hn,$o,Qn,Xn,Oo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}input[_ngcontent-%COMP%]{border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}input[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}input[_ngcontent-%COMP%]::placeholder{color:var(--cl-header-txt);opacity:.5}img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}"]});let n=e;return n})();function gA(n,e){if(n&1&&(B(0,"div",1),ge(1),O()),n&2){let t=ne();D(),on(" ",t.data.title," ")}}function vA(n,e){n&1&&Do(0)}function wA(n,e){if(n&1&&we(0,vA,1,0,"ng-container",4),n&2){let t=ne();te("ngComponentOutlet",t.data==null?null:t.data.component)("ngComponentOutletInputs",t.data==null?null:t.data.inputs)}}function yA(n,e){if(n&1){let t=Ce();B(0,"dsw-search-input",7),ee("search",function(r){ce(t);let i=ne(2);return ue(i.onSearch(r))}),O()}if(n&2){let t=ne(2);te("ngModel",t.data.search)}}function EA(n,e){if(n&1){let t=Ce();B(0,"button",8),ee("click",function(){let r=ce(t).$implicit,i=ne(2);return ue(i.onButtonClick(r))}),ge(1),O()}if(n&2){let t=e.$implicit;Je("btn-white",!t.default),D(),on(" ",t.label," ")}}function SA(n,e){if(n&1&&(B(0,"div",3),we(1,yA,1,1,"dsw-search-input",5),zt(2,EA,2,3,"button",6,rn),O()),n&2){let t=ne();D(),pe(t.data.search!==void 0?1:-1),D(),Gt(t.data.buttons)}}var Iv=(()=>{let e=class e{constructor(s,r,i,o){this.ms=s,this.cd=r,this.el=i,this.r2=o,this.search=new si,this.isInitialized=!1,this.subscriptions=[]}get noBackdrop(){return!!this.data.hideBackdrop}ngOnInit(){this.data.inputs._modal=this,this.isInitialized=!0}ngAfterViewInit(){this.initDynamicComponent(),this.updateHostStyles()}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getPath(s){let r=[],i=s.target;for(;i;)r.push(i),i=i.parentElement;return r.indexOf(window)===-1&&r.indexOf(document)===-1&&r.push(document),r.indexOf(window)===-1&&r.push(window),r}onClick(s){if(!this.data.closeByBackdropClick)return;this.getPath(s).some(i=>!!i.classList?.contains("modal"))||(this.close(),s.preventDefault())}onGlobalKeyPressed(s){if(this.isTopmost())switch(s.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey();break}}close(){this.ms.close(this.data)}onButtonClick(s){s.click&&s.click(this,this.data,s),s.autoClose&&this.close()}onSearch(s){this.search.emit(s)}ngOnChanges(s){s.data?.currentValue&&s.data.currentValue!==s.data.previousValue&&this.cd.detectChanges()}processEnterKey(){if(!this.data.buttons?.length)return;let s=this.data.buttons.find(r=>r.default);s&&(s.click&&s.click(this,this.data,s),s.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){let s=this.ms.modals.getValue();return s[s.length-1]===this.data}subscribeForOutputs(s){if(this.data.outputs)for(let r in this.data.outputs){let i=s[r];if(!i||!(i instanceof si))return;this.subscriptions.push(i.subscribe((...o)=>this.data.outputs?.[r](...o)))}}updateHostStyles(){let s=this.data.componentStyles,r=this.dynCompEl?.nativeElement;if(r&&(r.nodeName==="#comment"&&(r=r.previousElementSibling),s))for(let i in s)this.r2.setStyle(r,i,s[i])}initDynamicComponent(){let s;this.ngComponentOutlet?._componentRef?.instance&&(s=this.ngComponentOutlet._componentRef.instance),s&&(this.data.onComponentInit&&this.data.onComponentInit(s),this.subscribeForOutputs(s))}};e.\u0275fac=function(r){return new(r||e)(M(rr),M(Fo),M(sn),M(Io))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-modal"]],viewQuery:function(r,i){if(r&1&&(ut(Js,5,sn),ut(Js,5)),r&2){let o;ht(o=pt())&&(i.dynCompEl=o.first),ht(o=pt())&&(i.ngComponentOutlet=o.first)}},hostVars:2,hostBindings:function(r,i){r&1&&ee("mousedown",function(a){return i.onClick(a)})("keydown",function(a){return i.onGlobalKeyPressed(a)},!1,ko),r&2&&Je("no-backdrop",i.noBackdrop)},inputs:{data:"data"},standalone:!0,features:[Sp,De],decls:6,vars:8,consts:[[1,"modal"],[1,"title"],[1,"content"],[1,"footer"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"ngModel"],[1,"btn",3,"btn-white"],[3,"search","ngModel"],[1,"btn",3,"click"]],template:function(r,i){r&1&&(B(0,"div",0),we(1,gA,2,1,"div",1),B(2,"div",2),ge(3),we(4,wA,1,2,"ng-container"),O(),we(5,SA,4,1,"div",3),O()),r&2&&(Je("no-padding",i.data.noPadding)("min-height",i.data.minHeight),D(),pe(i.data.title?1:-1),D(2),on(" ",i.data.message," "),D(),pe(i.isInitialized?4:-1),D(),pe(i.data.buttons!=null&&i.data.buttons.length?5:-1))},dependencies:[ql,hn,Qn,Xn,Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;display:flex;justify-content:center;align-items:center;background-color:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;position:fixed;inset:0}.no-backdrop[_nghost-%COMP%]{background:none;background-color:none;-webkit-backdrop-filter:none;backdrop-filter:none}.modal[_ngcontent-%COMP%]{background-color:var(--cl-modal-bg);color:var(--cl-sidebar-txt);max-height:90vh;display:flex;flex-direction:column;min-width:320px;max-width:calc(100vw - 100px);font-family:Oxygen;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}.modal.min-height[_ngcontent-%COMP%]{height:min(500px,90vh)}.modal.no-padding[_ngcontent-%COMP%]{padding:0}.title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400;color:#000}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-top:20px;flex-shrink:0}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:10px;min-width:80px}.content[_ngcontent-%COMP%]{overflow:auto;display:flex;flex-direction:column;margin-bottom:auto}.content[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:24px}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--cl-scrollbar);border-left:20px solid white}dsw-search-input[_ngcontent-%COMP%]{margin-right:auto}"]});let n=e;return n})();var bA=["inpSearch"];function xA(n,e){if(n&1&&(B(0,"div",5),ge(1),O()),n&2){let t=ne();D(),Qt(t.title)}}function CA(n,e){if(n&1){let t=Ce();B(0,"span",20),ee("click",function(){ce(t);let r=ne(2);return ue(r.isMorePressed=!r.isMorePressed)}),ge(1," ... "),O()}if(n&2){let t=ne(2);Je("pressed",t.isMorePressed)}}function _A(n,e){if(n&1&&(B(0,"a",21),ge(1),O()),n&2){let t=e.$implicit;te("routerLink",t.url)("title",t.title),D(),Qt(t.title)}}function AA(n,e){if(n&1&&(B(0,"div",19),zt(1,_A,2,3,"a",21,rn),O()),n&2){let t=ne().$implicit;D(),Gt(t.moreList)}}function TA(n,e){if(n&1){let t=Ce();B(0,"a",17),ee("click",function(r){let i=ce(t).$implicit,o=ne();return ue(o.hideMoreDropdown(r,i.isMoreButton))}),ge(1),we(2,CA,2,2,"span",18)(3,AA,3,0,"div",19),O()}if(n&2){let t=e.$implicit,s=ne();Je("show-only-last",s.isSearch),te("routerLink",t.url)("title",t.title),D(),on(" ",t.title," "),D(),pe(t.isMoreButton?2:-1),D(),pe(t.isMoreButton&&s.isMorePressed?3:-1)}}function kA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.gotoZenDeepSee())}),me(2,"img",23),O()}n&2&&te("title",Ee(1,1,"gotoDeepSee"))}function IA(n,e){if(n&1){let t=Ce();B(0,"div",24),ye(1,"i18n"),ee("mouseover",function(){ce(t);let r=ne();return ue(r.showShareDashboard())}),me(2,"img",25)(3,"dsw-share-dashboard",26),O()}if(n&2){let t=ne();te("title",Ee(1,3,"shareDashboard")),D(3),te("shareUrl",t.shareUrl)("isSmall",!0)}}function PA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.onAddClick())}),B(2,"span",27),ge(3,"+"),O()()}n&2&&te("title",Ee(1,1,"addWidget"))}function DA(n,e){if(n&1){let t=Ce();B(0,"div",28),ee("click",function(){ce(t);let r=ne();return ue(r.toggleMobileFilter())}),me(1,"img",29),O()}}function NA(n,e){if(n&1&&(B(0,"option",14),ge(1),O()),n&2){let t=e.$implicit;te("value",t),D(),Qt(t)}}var Pv=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.ss=s,this.hs=r,this.ds=i,this.ms=o,this.us=a,this.modal=l,this.fs=c,this.storage=u,this.i18n=p,this.route=f,this.router=g,this.namespace="",this.isSearch=!1,this.title="",this.path=[],this.isMobileFilterButton=!1,this.selectedLanguage=this.i18n.current.toUpperCase(),this.isMorePressed=!1,this.shareUrl="",this.search="",this.pathSegments=[],this.languages=this.i18n.getLanguages().map(w=>w.toUpperCase()),this.path$=this.getNavigationEndStream(),(this.storage.serverSettings?.Embed||this.us.isEmbedded())&&this.hs.visible$.next(!1),this.subOnSearchReset=this.hs.onSearchReset.subscribe(()=>{this.inpSearch.value="",this.inpSearch.emitValueChanged()})}get canEdit(){return location.port==="4007"}static processPath(s,r,i){let o=decodeURIComponent(r);return o.indexOf("?")!==-1&&(o=o.split("?")[0]),{title:o,url:decodeURIComponent(s.slice(0,i+1).join("/"))}}ngOnInit(){this.namespace=dt,this.subTitle=this.ms.onSetTitle.subscribe(s=>{this.title=s||this.path[this.path?.length-1]?.title||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(s=>{this.isMobileFilterButton=s})}ngOnDestroy(){this.subOnSearchReset.unsubscribe(),this.subToggleMobileFilter?.unsubscribe(),this.subGotoDSZ?.unsubscribe(),this.subTitle?.unsubscribe()}ngAfterViewInit(){}toggleMenu(){this.ss.sidebarToggle.value?this.ss.hide():this.ss.showComponent({component:import("./chunk-F5IDLFZU.js")})}gotoZenDeepSee(){let s=this.storage.serverSettings.DefaultApp||"/csp/"+dt,r=this.path[this.path.length-1]?.url?.split("/").slice(1).join("/"),o=(location.pathname.split("/").slice(0,-2).join("/")||"")+s+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(r||""));window.open(o)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(s){let r=s.toLowerCase(),i=this.storage.getAppSettings();this.i18n.current=r,i.language=r,this.storage.setAppSettings(i),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(s,r=!1){r||s?.target?.classList?.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent({component:import("./chunk-R3MKZRT5.js"),single:!0})}onSearch(s){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(s)}getPathFromLocation(){let s=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(s),this.pathSegments=s.map((r,i)=>e.processPath(s,r,i)),this.buildMoreDropdown(),this.pathSegments}getPathFromNavigation(s){let i=this.router.parseUrl(this.router.url).root.children.primary?.segments?.map(o=>o.path)||[];return this.initSearch(i),this.pathSegments=i.map((o,a)=>e.processPath(i,o,a)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){let s=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:s})}}initSearch(s){this.isSearch=!s[s.length-1]?.split("?")[0]?.endsWith(".dashboard")}getNavigationEndStream(){return pp(hp(this.getPathFromLocation()),this.router.events.pipe(dp(s=>s instanceof Up),xo(s=>this.getPathFromNavigation(s)))).pipe(gp(s=>(this.path=s,s)))}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(At),M(Vo),M(nr),M(rr),M(sr),M(cn),M(Gn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-header"]],viewQuery:function(r,i){if(r&1&&ut(bA,5),r&2){let o;ht(o=pt())&&(i.inpSearch=o.first)}},hostBindings:function(r,i){r&1&&ee("click",function(a){return i.hideMoreDropdown(a)},!1,ko)},standalone:!0,features:[De],decls:26,vars:21,consts:[["inpSearch",""],["lang",""],[1,"btn","square","btn-side-menu",3,"click"],["src","assets/img/icons/menu.svg"],[1,"breadcrumbs"],[1,"only-sm"],[1,"items"],[1,"path",3,"routerLink","title","show-only-last"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"title"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"title"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm"],[1,"search-block"],[3,"search","hidden"],[1,"lang-selector","only-desktop",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"btn","btn-icon","only-desktop",3,"click","title"],["src","assets/img/icons/icon-logout.svg"],[1,"path",3,"click","routerLink","title"],[1,"btn-more",3,"pressed"],[1,"dropdown-more"],[1,"btn-more",3,"click"],[1,"path",3,"routerLink","title"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"click","title"],["src","assets/img/icons/icon-navigate.svg",1,"flip"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"mouseover","title"],["src","assets/img/icons/icon-share.svg"],[3,"shareUrl","isSmall"],[1,"icon-plus"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm",3,"click"],["src","assets/img/icons/filter_alt-black-18dp.svg"]],template:function(r,i){if(r&1){let o=Ce();B(0,"div")(1,"button",2),ye(2,"async"),ee("click",function(){return ce(o),ue(i.toggleMenu())}),me(3,"img",3),O(),B(4,"h2",4),we(5,xA,2,1,"div",5),B(6,"div",6),zt(7,TA,4,7,"a",7,rn),ye(9,"async"),O()(),we(10,kA,3,3,"button",8)(11,IA,4,5,"div",9)(12,PA,4,3,"button",8)(13,DA,2,0,"div",10),O(),B(14,"div",11)(15,"dsw-search-input",12,0),ee("search",function(l){return ce(o),ue(i.onSearch(l))}),O(),B(17,"select",13,1),kn("ngModelChange",function(l){return ce(o),Tn(i.selectedLanguage,l)||(i.selectedLanguage=l),ue(l)}),ee("change",function(){ce(o);let l=No(18);return ue(i.selectLanguage(l.value))}),zt(19,NA,2,2,"option",14,rn),O(),B(21,"button",15),ye(22,"i18n"),ee("click",function(){return ce(o),ue(i.logout())}),me(23,"img",16),ge(24),ye(25,"i18n"),O()()}if(r&2){let o;D(),Je("active",!!((o=Ee(2,13,i.ss.sidebarToggle))!=null&&o.component)),D(4),pe(i.isSearch?-1:5),D(),Je("no-opacity",i.isSearch),D(),Gt(Ee(9,15,i.path$)),D(3),pe(i.isSearch?-1:10),D(),pe(i.isSearch?-1:11),D(),pe(!i.isSearch&&i.canEdit?12:-1),D(),pe(!i.isSearch&&i.isMobileFilterButton?13:-1),D(2),te("hidden",!i.isSearch),D(2),An("ngModel",i.selectedLanguage),D(2),Gt(i.languages),D(2),te("title",Ee(22,17,"signout")),D(3),on(" ",Ee(25,19,"signout")," ")}},dependencies:[jp,pd,ql,hn,Kp,Zp,Yp,Qn,Xn,er,Ro],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex:0 0 var(--header-height);justify-content:space-between;background-color:var(--cl-header-bg);height:var(--header-height);width:100%;border-bottom:1px solid var(--cl-header-border)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex-shrink:1;min-width:0;width:100%}@media (max-width: 576px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%}}.btn-side-menu[_ngcontent-%COMP%]{flex-shrink:0}.breadcrumbs[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:1;min-width:0;max-width:60%;overflow:visible}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%]{display:flex;max-height:17px}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:relative}@media (max-width: 576px){.breadcrumbs[_ngcontent-%COMP%]{max-width:100%;width:100%}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{opacity:.6}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]{display:none}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]:last-child{opacity:1;display:block;font-size:18px}}label[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);opacity:.7;flex:0 0 auto;margin-left:10px;margin-right:10px}label[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:4px}h2[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);font-size:18px;margin-left:16px;-webkit-user-select:none;user-select:none}@media (max-width: 576px){h2[_ngcontent-%COMP%]{margin-left:8px}}.btn[_ngcontent-%COMP%]{position:relative;height:100%;border:none;background-color:transparent;outline:none;box-shadow:none;transition:background-color .3s linear;color:var(--cl-header-ico);padding-left:8px;padding-right:8px}.btn[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:24px}.btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}.btn.square[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;width:var(--header-height)}.btn.square.s60[_ngcontent-%COMP%]{height:26px;width:calc(var(--header-height) * .4)}.btn.square[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:0}.btn.active[_ngcontent-%COMP%]{background-color:var(--cl-sidebar-bg);height:calc(100% + 1px)}.btn[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}.path[_ngcontent-%COMP%]{cursor:pointer;outline:none;text-decoration:none;font-weight:700;font-size:14px;color:#1c1d20;font-family:Oxygen}.path[_ngcontent-%COMP%]:hover{text-decoration:underline}.path[_ngcontent-%COMP%]:not(:last-child){color:var(--cl-header-txt)}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child){opacity:1}}.path[_ngcontent-%COMP%]:last-child{cursor:default;pointer-events:none;text-overflow:ellipsis;overflow:hidden}.path[_ngcontent-%COMP%]:not(:last-child):after{content:"/";font-family:Oxygen;opacity:.7;display:inline-block;margin-left:8px;margin-right:8px}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child):after{margin-left:4px;margin-right:4px}}@media (max-width: 576px){.path[_ngcontent-%COMP%]{font-size:13px}}.btn-goto[_ngcontent-%COMP%]{margin-left:8px}.search-block[_ngcontent-%COMP%]{padding-right:20px}@media (max-width: 576px){.no-opacity[_ngcontent-%COMP%]{opacity:1!important}}.btn-mobile-filter[_ngcontent-%COMP%]{flex-shrink:0;height:100%;min-width:var(--header-height)}.btn-mobile-filter[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5);opacity:.6}.lang-selector[_ngcontent-%COMP%]{border:none;width:50px;padding:0;margin-right:10px}.lang-selector[_ngcontent-%COMP%]:focus, .lang-selector[_ngcontent-%COMP%]:active{outline:none;border:none}.btn-more[_ngcontent-%COMP%]{width:20px;height:20px;display:inline-flex;justify-content:center;border-radius:2px}.btn-more.pressed[_ngcontent-%COMP%]{background:var(--cl-hover)}.btn-more[_ngcontent-%COMP%]:after{display:none}.dropdown-more[_ngcontent-%COMP%]{position:absolute;left:-10px;top:30px;padding:20px;background-color:var(--cl-header-bg);box-shadow:0 0 10px #0000001a;border-radius:5px;z-index:4}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:last-child{cursor:pointer;color:var(--cl-header-txt);pointer-events:auto}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:after{display:none}.btn-share[_ngcontent-%COMP%] > dsw-share-dashboard[_ngcontent-%COMP%]{display:none}.btn-share[_ngcontent-%COMP%]:hover, .btn-share[_ngcontent-%COMP%]:active{transform:none}.btn-share[_ngcontent-%COMP%]:hover > dsw-share-dashboard[_ngcontent-%COMP%], .btn-share[_ngcontent-%COMP%]:active > dsw-share-dashboard[_ngcontent-%COMP%]{display:block}dsw-share-dashboard[_ngcontent-%COMP%]{position:absolute;top:17px;left:-20px}.icon-plus[_ngcontent-%COMP%]{font-weight:600;font-family:serif;font-size:23px}dsw-search-input[_ngcontent-%COMP%]{width:min(15vw,300px);margin-right:20px}@media (max-width: 576px){dsw-search-input[_ngcontent-%COMP%]{transition:width .2s linear;width:0;overflow:hidden}dsw-search-input.active[_ngcontent-%COMP%]{width:120px}}']});let n=e;return n})();var MA=["sidebar"];function LA(n,e){n&1&&me(0,"dsw-header")}function FA(n,e){if(n&1){let t=Ce();B(0,"dsw-sidebar",null,0),ee("@toggle.done",function(){ce(t);let r=ne();return ue(r.onAnimDone())})("@toggle.start",function(){ce(t);let r=ne();return ue(r.onAnimStart())}),O()}n&2&&te("@toggle",void 0)}function BA(n,e){if(n&1&&me(0,"dsw-modal",2),n&2){let t=e.$implicit;te("data",t)("ngClass",t.class)}}function OA(n,e){if(n&1&&me(0,"dsw-error",3),n&2){let t=e.$implicit;te("@toggleError",!t.isLeft)("@toggleErrorLeft",t.isLeft)("error",t)}}var Dv=(()=>{let e=class e{constructor(s,r,i,o,a){this.sbs=s,this.hs=r,this.es=i,this.ms=o,this.router=a,this.title="DeepSeeWeb",this.isSidebar=!1,this.errors=[]}ngOnInit(){this.router.events.subscribe(s=>{s instanceof qp&&this.sbs.hide()}),this.sbs.sidebarToggle.subscribe(s=>{this.isSidebar=!!s})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(s,r){return r.id}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(tr),M(rr),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-root"]],viewQuery:function(r,i){if(r&1&&ut(MA,5),r&2){let o;ht(o=pt())&&(i.sidebar=o.first)}},standalone:!0,features:[De],decls:11,vars:8,consts:[["sidebar",""],[1,"content"],[3,"data","ngClass"],[3,"error"]],template:function(r,i){r&1&&(we(0,LA,1,0,"dsw-header"),ye(1,"async"),B(2,"div",1),we(3,FA,2,1,"dsw-sidebar"),me(4,"router-outlet"),O(),zt(5,BA,1,2,"dsw-modal",2,rn),ye(7,"async"),zt(8,OA,1,3,"dsw-error",3,i.trackError,!0),ye(10,"async")),r&2&&(pe(Ee(1,2,i.hs.visible$)?0:-1),D(3),pe(i.isSidebar?3:-1),D(2),Gt(Ee(7,4,i.ms.modals)),D(3),Gt(Ee(10,6,i.es.errors$)))},dependencies:[Pv,Cv,Hp,Iv,Bo,Tv,er],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.content[_ngcontent-%COMP%]{display:flex;flex:1 1 100%;height:100%;min-height:0}"],data:{animation:[xv,_v,Av]}});let n=e;return n})();ni.production&&void 0;$p(Dv,bv).catch(n=>console.error(n)); +//# sourceURL=`+s),window["eval"](o);let c,u="";for(let p in exports)if(exports[p].toString().startsWith("class")){c=exports[p],u=p;break}if(c){let p=s.split("/").pop().replace(/dsw.addons./ig,"").split(".").slice(0,-1).join("."),f=c.AddonInfo;f.overrideBaseType?this.wt.register(f.overrideBaseType,f?.type||"custom",c,f):this.wt.register(p,f?.type||"custom",c,f)}else console.warn(`Can't load addon for file: ${s}. Exported class not found.`)})}setupMobile(){window.addEventListener("resize",()=>{let s=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${s}px`)})}};e.\u0275fac=function(r){return new(r||e)(Ze(At),Ze(or),Ze(nr))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var dA=n=>()=>Zs(void 0,null,function*(){yield n.initialize()}),bv={providers:[Ep(rd,ii,ld,hn,ed),Bp(Op()),Xd(),ni.production?Gl(tc,Ql()):Gl(tc,Ql(),zp(Wp)),{provide:Pp,useFactory:dA,multi:!0,deps:[Sv]}]};function fA(n,e){n&1&&Do(0)}var xv=oi("toggle",[Kn(":enter",[Re({maxWidth:"0"}),Yn("100ms",Re({maxWidth:"*"}))]),Kn(":leave",[Re({maxWidth:""}),Yn("100ms",Re({maxWidth:"0"}))])]),Cv=(()=>{let e=class e{constructor(s,r,i){this.ss=s,this.r2=r,this.cd=i,this.sidebarToggle$=this.ss.sidebarToggle.pipe(ai())}ngOnInit(){this.sidebarToggle$.subscribe(s=>{this.info=s,this.cd.detectChanges()})}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(Io),M(Fo))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-sidebar"]],standalone:!0,features:[De],decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(r,i){r&1&&we(0,fA,1,0,"ng-container",0),r&2&&te("ngComponentOutlet",i.info==null?null:i.info.component)("ngComponentOutletInputs",i.info==null?null:i.info.inputs)},dependencies:[Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;height:100%;width:var(--sidebar-width);max-width:var(--sidebar-width);background-color:var(--cl-sidebar-bg);color:var(--cl-sidebar-txt);flex:0 0 var(--sidebar-width);border-right:1px solid var(--cl-sidebar-border);z-index:3;position:relative;overflow:hidden}"],changeDetection:0});let n=e;return n})();var _v=oi("toggleError",[Kn(":enter",[Re({transform:"translateX(100%)"}),Yn("100ms",Re({transform:"translateX(0)"}))]),Kn(":leave",[Re({transform:"translateX(0)"}),Yn("100ms",Re({transform:"translateX(100%)"}))])]),Av=oi("toggleErrorLeft",[Kn(":enter",[Re({transform:"translateX(-100%)"}),Yn("100ms",Re({transform:"translateX(0)"}))]),Kn(":leave",[Re({transform:"translateX(0)"}),Yn("100ms",Re({transform:"translateX(-100%)"}))])]),Tv=(()=>{let e=class e{constructor(s,r){this.es=s,this.el=r,this.height=32}get isLeft(){return this.error.isLeft}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}ngOnInit(){}ngAfterViewInit(){}onClick(s){this.es.close(this.error)}};e.\u0275fac=function(r){return new(r||e)(M(tr),M(sn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(r,i){r&1&&ee("click",function(a){return i.onClick(a)}),r&2&&(Po("bottom",i.getOffset,"px"),Je("left",i.isLeft))},inputs:{error:"error"},standalone:!0,features:[De],decls:2,vars:1,template:function(r,i){r&1&&(B(0,"span"),ge(1),O()),r&2&&(D(),Qt(i.error.message))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;cursor:pointer;position:absolute;padding:4px 10px;height:32px;color:#fff;background-color:red;display:flex;justify-content:flex-start;align-items:center;border-radius:4px;right:10px;white-space:nowrap;max-width:50%;transition:bottom .1s linear;z-index:100}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:ellipsis}.left[_nghost-%COMP%]{right:auto;left:10px}"]});let n=e;return n})();var mA=["inp"],ql=(()=>{let e=class e{constructor(){this.search=new si,this.value="",this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=_o(this.inp.nativeElement,"input").pipe(Ao(200),To()).subscribe(()=>{this.search.emit(this.value)})}writeValue(s){this.value=s}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){}onModelChange(s){this.writeValue(s),this.onChange(s)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Pe({type:e,selectors:[["dsw-search-input"]],viewQuery:function(r,i){if(r&1&&ut(mA,7),r&2){let o;ht(o=pt())&&(i.inp=o.first)}},outputs:{search:"search"},standalone:!0,features:[kp([{provide:Xp,useExisting:vp(()=>e),multi:!0}]),De],decls:3,vars:1,consts:[["inp",""],["ngSrc","assets/img/icons/icon-search.svg","height","12","width","12","priority",""],["type","text","placeholder","Search",3,"keydown.enter","ngModelChange","ngModel"]],template:function(r,i){if(r&1){let o=Ce();me(0,"img",1),B(1,"input",2,0),ee("keydown.enter",function(){ce(o);let l=No(2);return ue(l.blur())}),kn("ngModelChange",function(l){return ce(o),Tn(i.value,l)||(i.value=l),ue(l)}),ee("ngModelChange",function(l){return ce(o),ue(i.onModelChange(l))}),O()}r&2&&(D(),An("ngModel",i.value))},dependencies:[hn,$o,Qn,Xn,Oo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}input[_ngcontent-%COMP%]{border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}input[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}input[_ngcontent-%COMP%]::placeholder{color:var(--cl-header-txt);opacity:.5}img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}"]});let n=e;return n})();function gA(n,e){if(n&1&&(B(0,"div",1),ge(1),O()),n&2){let t=ne();D(),on(" ",t.data.title," ")}}function vA(n,e){n&1&&Do(0)}function wA(n,e){if(n&1&&we(0,vA,1,0,"ng-container",4),n&2){let t=ne();te("ngComponentOutlet",t.data==null?null:t.data.component)("ngComponentOutletInputs",t.data==null?null:t.data.inputs)}}function yA(n,e){if(n&1){let t=Ce();B(0,"dsw-search-input",7),ee("search",function(r){ce(t);let i=ne(2);return ue(i.onSearch(r))}),O()}if(n&2){let t=ne(2);te("ngModel",t.data.search)}}function EA(n,e){if(n&1){let t=Ce();B(0,"button",8),ee("click",function(){let r=ce(t).$implicit,i=ne(2);return ue(i.onButtonClick(r))}),ge(1),O()}if(n&2){let t=e.$implicit;Je("btn-white",!t.default),D(),on(" ",t.label," ")}}function SA(n,e){if(n&1&&(B(0,"div",3),we(1,yA,1,1,"dsw-search-input",5),zt(2,EA,2,3,"button",6,rn),O()),n&2){let t=ne();D(),pe(t.data.search!==void 0?1:-1),D(),Gt(t.data.buttons)}}var Iv=(()=>{let e=class e{constructor(s,r,i,o){this.ms=s,this.cd=r,this.el=i,this.r2=o,this.search=new si,this.isInitialized=!1,this.subscriptions=[]}get noBackdrop(){return!!this.data.hideBackdrop}ngOnInit(){this.data.inputs._modal=this,this.isInitialized=!0}ngAfterViewInit(){this.initDynamicComponent(),this.updateHostStyles()}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getPath(s){let r=[],i=s.target;for(;i;)r.push(i),i=i.parentElement;return r.indexOf(window)===-1&&r.indexOf(document)===-1&&r.push(document),r.indexOf(window)===-1&&r.push(window),r}onClick(s){if(!this.data.closeByBackdropClick)return;this.getPath(s).some(i=>!!i.classList?.contains("modal"))||(this.close(),s.preventDefault())}onGlobalKeyPressed(s){if(this.isTopmost())switch(s.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey();break}}close(){this.ms.close(this.data)}onButtonClick(s){s.click&&s.click(this,this.data,s),s.autoClose&&this.close()}onSearch(s){this.search.emit(s)}ngOnChanges(s){s.data?.currentValue&&s.data.currentValue!==s.data.previousValue&&this.cd.detectChanges()}processEnterKey(){if(!this.data.buttons?.length)return;let s=this.data.buttons.find(r=>r.default);s&&(s.click&&s.click(this,this.data,s),s.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){let s=this.ms.modals.getValue();return s[s.length-1]===this.data}subscribeForOutputs(s){if(this.data.outputs)for(let r in this.data.outputs){let i=s[r];if(!i||!(i instanceof si))return;this.subscriptions.push(i.subscribe((...o)=>this.data.outputs?.[r](...o)))}}updateHostStyles(){let s=this.data.componentStyles,r=this.dynCompEl?.nativeElement;if(r&&(r.nodeName==="#comment"&&(r=r.previousElementSibling),s))for(let i in s)this.r2.setStyle(r,i,s[i])}initDynamicComponent(){let s;this.ngComponentOutlet?._componentRef?.instance&&(s=this.ngComponentOutlet._componentRef.instance),s&&(this.data.onComponentInit&&this.data.onComponentInit(s),this.subscribeForOutputs(s))}};e.\u0275fac=function(r){return new(r||e)(M(rr),M(Fo),M(sn),M(Io))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-modal"]],viewQuery:function(r,i){if(r&1&&(ut(Js,5,sn),ut(Js,5)),r&2){let o;ht(o=pt())&&(i.dynCompEl=o.first),ht(o=pt())&&(i.ngComponentOutlet=o.first)}},hostVars:2,hostBindings:function(r,i){r&1&&ee("mousedown",function(a){return i.onClick(a)})("keydown",function(a){return i.onGlobalKeyPressed(a)},!1,ko),r&2&&Je("no-backdrop",i.noBackdrop)},inputs:{data:"data"},standalone:!0,features:[Sp,De],decls:6,vars:8,consts:[[1,"modal"],[1,"title"],[1,"content"],[1,"footer"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"ngModel"],[1,"btn",3,"btn-white"],[3,"search","ngModel"],[1,"btn",3,"click"]],template:function(r,i){r&1&&(B(0,"div",0),we(1,gA,2,1,"div",1),B(2,"div",2),ge(3),we(4,wA,1,2,"ng-container"),O(),we(5,SA,4,1,"div",3),O()),r&2&&(Je("no-padding",i.data.noPadding)("min-height",i.data.minHeight),D(),pe(i.data.title?1:-1),D(2),on(" ",i.data.message," "),D(),pe(i.isInitialized?4:-1),D(),pe(i.data.buttons!=null&&i.data.buttons.length?5:-1))},dependencies:[ql,hn,Qn,Xn,Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;display:flex;justify-content:center;align-items:center;background-color:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;position:fixed;inset:0}.no-backdrop[_nghost-%COMP%]{background:none;background-color:none;-webkit-backdrop-filter:none;backdrop-filter:none}.modal[_ngcontent-%COMP%]{background-color:var(--cl-modal-bg);color:var(--cl-sidebar-txt);max-height:90vh;display:flex;flex-direction:column;min-width:320px;max-width:calc(100vw - 100px);font-family:Oxygen;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}.modal.min-height[_ngcontent-%COMP%]{height:min(500px,90vh)}.modal.no-padding[_ngcontent-%COMP%]{padding:0}.title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400;color:#000}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-top:20px;flex-shrink:0}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:10px;min-width:80px}.content[_ngcontent-%COMP%]{overflow:auto;display:flex;flex-direction:column;margin-bottom:auto}.content[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:24px}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--cl-scrollbar);border-left:20px solid white}dsw-search-input[_ngcontent-%COMP%]{margin-right:auto}"]});let n=e;return n})();var bA=["inpSearch"];function xA(n,e){if(n&1&&(B(0,"div",5),ge(1),O()),n&2){let t=ne();D(),Qt(t.title)}}function CA(n,e){if(n&1){let t=Ce();B(0,"span",20),ee("click",function(){ce(t);let r=ne(2);return ue(r.isMorePressed=!r.isMorePressed)}),ge(1," ... "),O()}if(n&2){let t=ne(2);Je("pressed",t.isMorePressed)}}function _A(n,e){if(n&1&&(B(0,"a",21),ge(1),O()),n&2){let t=e.$implicit;te("routerLink",t.url)("title",t.title),D(),Qt(t.title)}}function AA(n,e){if(n&1&&(B(0,"div",19),zt(1,_A,2,3,"a",21,rn),O()),n&2){let t=ne().$implicit;D(),Gt(t.moreList)}}function TA(n,e){if(n&1){let t=Ce();B(0,"a",17),ee("click",function(r){let i=ce(t).$implicit,o=ne();return ue(o.hideMoreDropdown(r,i.isMoreButton))}),ge(1),we(2,CA,2,2,"span",18)(3,AA,3,0,"div",19),O()}if(n&2){let t=e.$implicit,s=ne();Je("show-only-last",s.isSearch),te("routerLink",t.url)("title",t.title),D(),on(" ",t.title," "),D(),pe(t.isMoreButton?2:-1),D(),pe(t.isMoreButton&&s.isMorePressed?3:-1)}}function kA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.gotoZenDeepSee())}),me(2,"img",23),O()}n&2&&te("title",Ee(1,1,"gotoDeepSee"))}function IA(n,e){if(n&1){let t=Ce();B(0,"div",24),ye(1,"i18n"),ee("mouseover",function(){ce(t);let r=ne();return ue(r.showShareDashboard())}),me(2,"img",25)(3,"dsw-share-dashboard",26),O()}if(n&2){let t=ne();te("title",Ee(1,3,"shareDashboard")),D(3),te("shareUrl",t.shareUrl)("isSmall",!0)}}function PA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.onAddClick())}),B(2,"span",27),ge(3,"+"),O()()}n&2&&te("title",Ee(1,1,"addWidget"))}function DA(n,e){if(n&1){let t=Ce();B(0,"div",28),ee("click",function(){ce(t);let r=ne();return ue(r.toggleMobileFilter())}),me(1,"img",29),O()}}function NA(n,e){if(n&1&&(B(0,"option",14),ge(1),O()),n&2){let t=e.$implicit;te("value",t),D(),Qt(t)}}var Pv=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.ss=s,this.hs=r,this.ds=i,this.ms=o,this.us=a,this.modal=l,this.fs=c,this.storage=u,this.i18n=p,this.route=f,this.router=g,this.namespace="",this.isSearch=!1,this.title="",this.path=[],this.isMobileFilterButton=!1,this.selectedLanguage=this.i18n.current.toUpperCase(),this.isMorePressed=!1,this.shareUrl="",this.search="",this.pathSegments=[],this.languages=this.i18n.getLanguages().map(w=>w.toUpperCase()),this.path$=this.getNavigationEndStream(),(this.storage.serverSettings?.Embed||this.us.isEmbedded())&&this.hs.visible$.next(!1),this.subOnSearchReset=this.hs.onSearchReset.subscribe(()=>{this.inpSearch.value="",this.inpSearch.emitValueChanged()})}get canEdit(){return location.port==="4007"}static processPath(s,r,i){let o=decodeURIComponent(r);return o.indexOf("?")!==-1&&(o=o.split("?")[0]),{title:o,url:decodeURIComponent(s.slice(0,i+1).join("/"))}}ngOnInit(){this.namespace=dt,this.subTitle=this.ms.onSetTitle.subscribe(s=>{this.title=s||this.path[this.path?.length-1]?.title||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(s=>{this.isMobileFilterButton=s})}ngOnDestroy(){this.subOnSearchReset.unsubscribe(),this.subToggleMobileFilter?.unsubscribe(),this.subGotoDSZ?.unsubscribe(),this.subTitle?.unsubscribe()}ngAfterViewInit(){}toggleMenu(){this.ss.sidebarToggle.value?this.ss.hide():this.ss.showComponent({component:import("./chunk-2JNMJA37.js")})}gotoZenDeepSee(){let s=this.storage.serverSettings.DefaultApp||"/csp/"+dt,r=this.path[this.path.length-1]?.url?.split("/").slice(1).join("/"),o=(location.pathname.split("/").slice(0,-2).join("/")||"")+s+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(r||""));window.open(o)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(s){let r=s.toLowerCase(),i=this.storage.getAppSettings();this.i18n.current=r,i.language=r,this.storage.setAppSettings(i),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(s,r=!1){r||s?.target?.classList?.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent({component:import("./chunk-2IO2FDUA.js"),single:!0})}onSearch(s){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(s)}getPathFromLocation(){let s=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(s),this.pathSegments=s.map((r,i)=>e.processPath(s,r,i)),this.buildMoreDropdown(),this.pathSegments}getPathFromNavigation(s){let i=this.router.parseUrl(this.router.url).root.children.primary?.segments?.map(o=>o.path)||[];return this.initSearch(i),this.pathSegments=i.map((o,a)=>e.processPath(i,o,a)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){let s=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:s})}}initSearch(s){this.isSearch=!s[s.length-1]?.split("?")[0]?.endsWith(".dashboard")}getNavigationEndStream(){return pp(hp(this.getPathFromLocation()),this.router.events.pipe(dp(s=>s instanceof Up),xo(s=>this.getPathFromNavigation(s)))).pipe(gp(s=>(this.path=s,s)))}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(At),M(Vo),M(nr),M(rr),M(sr),M(cn),M(Gn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-header"]],viewQuery:function(r,i){if(r&1&&ut(bA,5),r&2){let o;ht(o=pt())&&(i.inpSearch=o.first)}},hostBindings:function(r,i){r&1&&ee("click",function(a){return i.hideMoreDropdown(a)},!1,ko)},standalone:!0,features:[De],decls:26,vars:21,consts:[["inpSearch",""],["lang",""],[1,"btn","square","btn-side-menu",3,"click"],["src","assets/img/icons/menu.svg"],[1,"breadcrumbs"],[1,"only-sm"],[1,"items"],[1,"path",3,"routerLink","title","show-only-last"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"title"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"title"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm"],[1,"search-block"],[3,"search","hidden"],[1,"lang-selector","only-desktop",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"btn","btn-icon","only-desktop",3,"click","title"],["src","assets/img/icons/icon-logout.svg"],[1,"path",3,"click","routerLink","title"],[1,"btn-more",3,"pressed"],[1,"dropdown-more"],[1,"btn-more",3,"click"],[1,"path",3,"routerLink","title"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"click","title"],["src","assets/img/icons/icon-navigate.svg",1,"flip"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"mouseover","title"],["src","assets/img/icons/icon-share.svg"],[3,"shareUrl","isSmall"],[1,"icon-plus"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm",3,"click"],["src","assets/img/icons/filter_alt-black-18dp.svg"]],template:function(r,i){if(r&1){let o=Ce();B(0,"div")(1,"button",2),ye(2,"async"),ee("click",function(){return ce(o),ue(i.toggleMenu())}),me(3,"img",3),O(),B(4,"h2",4),we(5,xA,2,1,"div",5),B(6,"div",6),zt(7,TA,4,7,"a",7,rn),ye(9,"async"),O()(),we(10,kA,3,3,"button",8)(11,IA,4,5,"div",9)(12,PA,4,3,"button",8)(13,DA,2,0,"div",10),O(),B(14,"div",11)(15,"dsw-search-input",12,0),ee("search",function(l){return ce(o),ue(i.onSearch(l))}),O(),B(17,"select",13,1),kn("ngModelChange",function(l){return ce(o),Tn(i.selectedLanguage,l)||(i.selectedLanguage=l),ue(l)}),ee("change",function(){ce(o);let l=No(18);return ue(i.selectLanguage(l.value))}),zt(19,NA,2,2,"option",14,rn),O(),B(21,"button",15),ye(22,"i18n"),ee("click",function(){return ce(o),ue(i.logout())}),me(23,"img",16),ge(24),ye(25,"i18n"),O()()}if(r&2){let o;D(),Je("active",!!((o=Ee(2,13,i.ss.sidebarToggle))!=null&&o.component)),D(4),pe(i.isSearch?-1:5),D(),Je("no-opacity",i.isSearch),D(),Gt(Ee(9,15,i.path$)),D(3),pe(i.isSearch?-1:10),D(),pe(i.isSearch?-1:11),D(),pe(!i.isSearch&&i.canEdit?12:-1),D(),pe(!i.isSearch&&i.isMobileFilterButton?13:-1),D(2),te("hidden",!i.isSearch),D(2),An("ngModel",i.selectedLanguage),D(2),Gt(i.languages),D(2),te("title",Ee(22,17,"signout")),D(3),on(" ",Ee(25,19,"signout")," ")}},dependencies:[jp,pd,ql,hn,Kp,Zp,Yp,Qn,Xn,er,Ro],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex:0 0 var(--header-height);justify-content:space-between;background-color:var(--cl-header-bg);height:var(--header-height);width:100%;border-bottom:1px solid var(--cl-header-border)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex-shrink:1;min-width:0;width:100%}@media (max-width: 576px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%}}.btn-side-menu[_ngcontent-%COMP%]{flex-shrink:0}.breadcrumbs[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:1;min-width:0;max-width:60%;overflow:visible}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%]{display:flex;max-height:17px}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:relative}@media (max-width: 576px){.breadcrumbs[_ngcontent-%COMP%]{max-width:100%;width:100%}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{opacity:.6}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]{display:none}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]:last-child{opacity:1;display:block;font-size:18px}}label[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);opacity:.7;flex:0 0 auto;margin-left:10px;margin-right:10px}label[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:4px}h2[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);font-size:18px;margin-left:16px;-webkit-user-select:none;user-select:none}@media (max-width: 576px){h2[_ngcontent-%COMP%]{margin-left:8px}}.btn[_ngcontent-%COMP%]{position:relative;height:100%;border:none;background-color:transparent;outline:none;box-shadow:none;transition:background-color .3s linear;color:var(--cl-header-ico);padding-left:8px;padding-right:8px}.btn[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:24px}.btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}.btn.square[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;width:var(--header-height)}.btn.square.s60[_ngcontent-%COMP%]{height:26px;width:calc(var(--header-height) * .4)}.btn.square[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:0}.btn.active[_ngcontent-%COMP%]{background-color:var(--cl-sidebar-bg);height:calc(100% + 1px)}.btn[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}.path[_ngcontent-%COMP%]{cursor:pointer;outline:none;text-decoration:none;font-weight:700;font-size:14px;color:#1c1d20;font-family:Oxygen}.path[_ngcontent-%COMP%]:hover{text-decoration:underline}.path[_ngcontent-%COMP%]:not(:last-child){color:var(--cl-header-txt)}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child){opacity:1}}.path[_ngcontent-%COMP%]:last-child{cursor:default;pointer-events:none;text-overflow:ellipsis;overflow:hidden}.path[_ngcontent-%COMP%]:not(:last-child):after{content:"/";font-family:Oxygen;opacity:.7;display:inline-block;margin-left:8px;margin-right:8px}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child):after{margin-left:4px;margin-right:4px}}@media (max-width: 576px){.path[_ngcontent-%COMP%]{font-size:13px}}.btn-goto[_ngcontent-%COMP%]{margin-left:8px}.search-block[_ngcontent-%COMP%]{padding-right:20px}@media (max-width: 576px){.no-opacity[_ngcontent-%COMP%]{opacity:1!important}}.btn-mobile-filter[_ngcontent-%COMP%]{flex-shrink:0;height:100%;min-width:var(--header-height)}.btn-mobile-filter[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5);opacity:.6}.lang-selector[_ngcontent-%COMP%]{border:none;width:50px;padding:0;margin-right:10px}.lang-selector[_ngcontent-%COMP%]:focus, .lang-selector[_ngcontent-%COMP%]:active{outline:none;border:none}.btn-more[_ngcontent-%COMP%]{width:20px;height:20px;display:inline-flex;justify-content:center;border-radius:2px}.btn-more.pressed[_ngcontent-%COMP%]{background:var(--cl-hover)}.btn-more[_ngcontent-%COMP%]:after{display:none}.dropdown-more[_ngcontent-%COMP%]{position:absolute;left:-10px;top:30px;padding:20px;background-color:var(--cl-header-bg);box-shadow:0 0 10px #0000001a;border-radius:5px;z-index:4}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:last-child{cursor:pointer;color:var(--cl-header-txt);pointer-events:auto}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:after{display:none}.btn-share[_ngcontent-%COMP%] > dsw-share-dashboard[_ngcontent-%COMP%]{display:none}.btn-share[_ngcontent-%COMP%]:hover, .btn-share[_ngcontent-%COMP%]:active{transform:none}.btn-share[_ngcontent-%COMP%]:hover > dsw-share-dashboard[_ngcontent-%COMP%], .btn-share[_ngcontent-%COMP%]:active > dsw-share-dashboard[_ngcontent-%COMP%]{display:block}dsw-share-dashboard[_ngcontent-%COMP%]{position:absolute;top:17px;left:-20px}.icon-plus[_ngcontent-%COMP%]{font-weight:600;font-family:serif;font-size:23px}dsw-search-input[_ngcontent-%COMP%]{width:min(15vw,300px);margin-right:20px}@media (max-width: 576px){dsw-search-input[_ngcontent-%COMP%]{transition:width .2s linear;width:0;overflow:hidden}dsw-search-input.active[_ngcontent-%COMP%]{width:120px}}']});let n=e;return n})();var MA=["sidebar"];function LA(n,e){n&1&&me(0,"dsw-header")}function FA(n,e){if(n&1){let t=Ce();B(0,"dsw-sidebar",null,0),ee("@toggle.done",function(){ce(t);let r=ne();return ue(r.onAnimDone())})("@toggle.start",function(){ce(t);let r=ne();return ue(r.onAnimStart())}),O()}n&2&&te("@toggle",void 0)}function BA(n,e){if(n&1&&me(0,"dsw-modal",2),n&2){let t=e.$implicit;te("data",t)("ngClass",t.class)}}function OA(n,e){if(n&1&&me(0,"dsw-error",3),n&2){let t=e.$implicit;te("@toggleError",!t.isLeft)("@toggleErrorLeft",t.isLeft)("error",t)}}var Dv=(()=>{let e=class e{constructor(s,r,i,o,a){this.sbs=s,this.hs=r,this.es=i,this.ms=o,this.router=a,this.title="DeepSeeWeb",this.isSidebar=!1,this.errors=[]}ngOnInit(){this.router.events.subscribe(s=>{s instanceof qp&&this.sbs.hide()}),this.sbs.sidebarToggle.subscribe(s=>{this.isSidebar=!!s})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(s,r){return r.id}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(tr),M(rr),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-root"]],viewQuery:function(r,i){if(r&1&&ut(MA,5),r&2){let o;ht(o=pt())&&(i.sidebar=o.first)}},standalone:!0,features:[De],decls:11,vars:8,consts:[["sidebar",""],[1,"content"],[3,"data","ngClass"],[3,"error"]],template:function(r,i){r&1&&(we(0,LA,1,0,"dsw-header"),ye(1,"async"),B(2,"div",1),we(3,FA,2,1,"dsw-sidebar"),me(4,"router-outlet"),O(),zt(5,BA,1,2,"dsw-modal",2,rn),ye(7,"async"),zt(8,OA,1,3,"dsw-error",3,i.trackError,!0),ye(10,"async")),r&2&&(pe(Ee(1,2,i.hs.visible$)?0:-1),D(3),pe(i.isSidebar?3:-1),D(2),Gt(Ee(7,4,i.ms.modals)),D(3),Gt(Ee(10,6,i.es.errors$)))},dependencies:[Pv,Cv,Hp,Iv,Bo,Tv,er],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.content[_ngcontent-%COMP%]{display:flex;flex:1 1 100%;height:100%;min-height:0}"],data:{animation:[xv,_v,Av]}});let n=e;return n})();ni.production&&void 0;$p(Dv,bv).catch(n=>console.error(n)); diff --git a/module.xml b/module.xml index 2dea1e4..95259f7 100644 --- a/module.xml +++ b/module.xml @@ -3,7 +3,7 @@ dsw - 4.0.6 + 4.0.7 module DeepSeeWeb (DSW) is an Angular UI layer for IRIS BI (DeepSee) dashboards diff --git a/package-lock.json b/package-lock.json index 6b8fd52..9b52cb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "deep-see-web", - "version": "4.0.6", + "version": "4.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deep-see-web", - "version": "4.0.6", + "version": "4.0.7", "dependencies": { "@angular/animations": "^18.0.5", "@angular/common": "^18.0.5",