diff --git a/dist/changelog.md b/dist/changelog.md index 96e33533..03f90dc9 100644 --- a/dist/changelog.md +++ b/dist/changelog.md @@ -1,3 +1,6 @@ +#### 4.0.28 +* added tooltip support for widget title (#474) + #### 4.0.27 * fixed issue with OAuth "Sing in" button diff --git a/dist/chunk-MGBUQL4E.js b/dist/chunk-2ODAR4M4.js similarity index 95% rename from dist/chunk-MGBUQL4E.js rename to dist/chunk-2ODAR4M4.js index 25924c34..1abffe9c 100644 --- a/dist/chunk-MGBUQL4E.js +++ b/dist/chunk-2ODAR4M4.js @@ -1 +1 @@ -import{F as c,J as f}from"./chunk-5MYX3VUL.js";import{X as o,aa as n,g as r,za as l}from"./chunk-ZEAAPN4P.js";var p=(()=>{class e{constructor(){this.emitter=new l}broadcast(t,s){this.emitter.emit({message:t,value:s})}subscribe(t,s){return this.emitter.subscribe(i=>{i.message===t&&s(i.value)})}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var v=(()=>{class e{constructor(t){this.ss=t,this.current=new r(""),this.dashboard=new r(null),this.widgets=[],this.allWidgets=[]}setWidgets(t){this.widgets=t}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(t=[]){return this.widgets.filter(s=>s.type!==c.const.emptyWidgetClass&&!t.includes(s.name))}setAllWidgets(t){this.allWidgets=t}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(t){let s=this.ss.getWidgetsSettings(t.dashboard),i=t.name;s[i]||(s[i]={}),isNaN(t.x)||(s[i].col=t.x),isNaN(t.y)||(s[i].row=t.y),isNaN(t.cols)||(s[i].sizeX=t.cols),isNaN(t.rows)||(s[i].sizeY=t.rows),this.ss.setWidgetsSettings(s,t.dashboard)}generateDisplayInfo(t){if(t.displayInfo)return;let s=1,i=1,a=this.dashboard.value;a&&(s=Math.floor(12/a.displayInfo.gridCols),s<1&&(s=1),i<1&&(i=1));let h={topCol:Math.floor((t.x||0)/s),leftRow:Math.floor((t.y||0)/i),colWidth:Math.floor((t.cols||1)/s),rowHeight:Math.floor(t.rows||1)};t.displayInfo=h}static{this.\u0275fac=function(s){return new(s||e)(n(f))}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{p as a,v as b}; +import{F as c,J as f}from"./chunk-ZHVSJD4N.js";import{X as o,aa as n,g as r,za as l}from"./chunk-ZEAAPN4P.js";var p=(()=>{class e{constructor(){this.emitter=new l}broadcast(t,s){this.emitter.emit({message:t,value:s})}subscribe(t,s){return this.emitter.subscribe(i=>{i.message===t&&s(i.value)})}static{this.\u0275fac=function(s){return new(s||e)}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var v=(()=>{class e{constructor(t){this.ss=t,this.current=new r(""),this.dashboard=new r(null),this.widgets=[],this.allWidgets=[]}setWidgets(t){this.widgets=t}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(t=[]){return this.widgets.filter(s=>s.type!==c.const.emptyWidgetClass&&!t.includes(s.name))}setAllWidgets(t){this.allWidgets=t}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(t){let s=this.ss.getWidgetsSettings(t.dashboard),i=t.name;s[i]||(s[i]={}),isNaN(t.x)||(s[i].col=t.x),isNaN(t.y)||(s[i].row=t.y),isNaN(t.cols)||(s[i].sizeX=t.cols),isNaN(t.rows)||(s[i].sizeY=t.rows),this.ss.setWidgetsSettings(s,t.dashboard)}generateDisplayInfo(t){if(t.displayInfo)return;let s=1,i=1,a=this.dashboard.value;a&&(s=Math.floor(12/a.displayInfo.gridCols),s<1&&(s=1),i<1&&(i=1));let h={topCol:Math.floor((t.x||0)/s),leftRow:Math.floor((t.y||0)/i),colWidth:Math.floor((t.cols||1)/s),rowHeight:Math.floor(t.rows||1)};t.displayInfo=h}static{this.\u0275fac=function(s){return new(s||e)(n(f))}}static{this.\u0275prov=o({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{p as a,v as b}; diff --git a/dist/chunk-GPIDYIDO.js b/dist/chunk-3X2IJ3CK.js similarity index 96% rename from dist/chunk-GPIDYIDO.js rename to dist/chunk-3X2IJ3CK.js index 0e0f08e6..e8cfe30e 100644 --- a/dist/chunk-GPIDYIDO.js +++ b/dist/chunk-3X2IJ3CK.js @@ -1,2 +1,2 @@ -import{a as D}from"./chunk-TDYUGGZI.js";import{a as j}from"./chunk-VYCTNPPE.js";import{a as A}from"./chunk-NHWJ6QQD.js";import{a as N}from"./chunk-3TBNLEJ6.js";import{a as T}from"./chunk-MDOQS4TE.js";import{a as k}from"./chunk-G7BOERRR.js";import{b as F}from"./chunk-MGBUQL4E.js";import{d as S,e as W,i as O,j as P}from"./chunk-BCYEWSDA.js";import{F as M}from"./chunk-5MYX3VUL.js";import{Cb as x,Hb as t,Ib as i,Jb as a,Nb as C,Rb as g,Sb as y,ab as m,bb as s,bc as n,ec as b,fa as f,fc as h,gc as u,lc as E,qa as _,ra as w,rb as v,xb as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function I(c,z){if(c&1){let l=C();t(0,"button",11),g("click",function(){_(l);let e=y();return w(e.deleteWidgetClick())}),n(1,"Delete widget"),i()}}var Q=(()=>{class c{constructor(l,o,e,d,r){this.ms=l,this.dbs=o,this.eds=e,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 l=this.dbs.getWidgets().filter(o=>o.type!==M.const.emptyWidgetClass).length+1;this.model.name=`Widget${l}`,this.eds.onNewWidget.emit(this.model)}static{this.\u0275fac=function(o){return new(o||c)(s(A),s(F),s(N),s(T),s(k))}}static{this.\u0275cmp=f({type:c,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,e){o&1&&(t(0,"dsw-sidebar-actions",0),g("cancel",function(){return e.onCancelEditing()})("apply",function(){return e.onSave()}),n(1,` Add widget +import{a as D}from"./chunk-WSLAUSJ3.js";import{a as j}from"./chunk-EXZFHSK3.js";import{a as A}from"./chunk-NHWJ6QQD.js";import{a as N}from"./chunk-OM7B3BIS.js";import{a as T}from"./chunk-MDOQS4TE.js";import{a as k}from"./chunk-G7BOERRR.js";import{b as F}from"./chunk-2ODAR4M4.js";import{d as S,e as W,i as O,j as P}from"./chunk-VUYLTOWP.js";import{F as M}from"./chunk-ZHVSJD4N.js";import{Cb as x,Hb as t,Ib as i,Jb as a,Nb as C,Rb as g,Sb as y,ab as m,bb as s,bc as n,ec as b,fa as f,fc as h,gc as u,lc as E,qa as _,ra as w,rb as v,xb as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function I(c,z){if(c&1){let l=C();t(0,"button",11),g("click",function(){_(l);let e=y();return w(e.deleteWidgetClick())}),n(1,"Delete widget"),i()}}var Q=(()=>{class c{constructor(l,o,e,d,r){this.ms=l,this.dbs=o,this.eds=e,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 l=this.dbs.getWidgets().filter(o=>o.type!==M.const.emptyWidgetClass).length+1;this.model.name=`Widget${l}`,this.eds.onNewWidget.emit(this.model)}static{this.\u0275fac=function(o){return new(o||c)(s(A),s(F),s(N),s(T),s(k))}}static{this.\u0275cmp=f({type:c,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,e){o&1&&(t(0,"dsw-sidebar-actions",0),g("cancel",function(){return e.onCancelEditing()})("apply",function(){return e.onSave()}),n(1,` Add widget `),i(),t(2,"div",1)(3,"div",2),n(4," General settings "),i(),t(5,"label"),n(6,"Name"),i(),t(7,"dsw-input",3),u("ngModelChange",function(r){return h(e.model.name,r)||(e.model.name=r),r}),g("change",function(){return e.updateWidget()}),i(),t(8,"label"),n(9,"Title"),i(),t(10,"dsw-input",4),u("ngModelChange",function(r){return h(e.model.title,r)||(e.model.title=r),r}),g("change",function(){return e.updateWidget()}),i(),t(11,"div",5)(12,"button",6),g("click",function(){return e.onTypeAndDataSourceClick()}),n(13," Type and data source "),a(14,"img",7),i(),t(15,"button",8),n(16," Widget settings "),a(17,"img",7),i(),t(18,"button",8),n(19," Controls "),a(20,"img",7),i(),t(21,"button",8),n(22," Data properties "),a(23,"img",7),i(),t(24,"div",2),n(25," Diagram and pivot table "),i(),t(26,"button",8),n(27," Table settings "),a(28,"img",7),i(),t(29,"button",8),n(30," Diagram settings "),a(31,"img",7),i(),t(32,"button",8),n(33," Diagram legend "),a(34,"img",7),i()()(),t(35,"div",9),v(36,I,2,0,"button",10),i()),o&2&&(p("isWidgetEditorWarning",!0),m(7),p("required",e.invalid.includes("name")),b("ngModel",e.model.name),m(3),b("ngModel",e.model.title),m(26),x(e.widget?36:-1))},dependencies:[j,D,P,S,O,W],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})}}return c})();export{Q as WidgetEditorComponent}; diff --git a/dist/chunk-QY4ELVI2.js b/dist/chunk-BHI45ZQG.js similarity index 97% rename from dist/chunk-QY4ELVI2.js rename to dist/chunk-BHI45ZQG.js index 63067afd..4649101e 100644 --- a/dist/chunk-QY4ELVI2.js +++ b/dist/chunk-BHI45ZQG.js @@ -1 +1 @@ -import{a as D}from"./chunk-B64EGU7W.js";import{a as W}from"./chunk-VYCTNPPE.js";import"./chunk-GOV7BL6D.js";import{a as J}from"./chunk-HCCYM72S.js";import"./chunk-3TBNLEJ6.js";import"./chunk-MDOQS4TE.js";import{a as L}from"./chunk-G7BOERRR.js";import{a as I}from"./chunk-MGBUQL4E.js";import{D as E,J as A}from"./chunk-5MYX3VUL.js";import{Cb as m,Db as v,Fb as S,Gb as O,Hb as l,Ib as s,Jb as P,Kc as V,Nb as _,Rb as h,Sb as r,ab as c,bb as u,bc as C,cc as M,ec as f,fa as k,fc as b,gc as x,lc as T,qa as a,qc as B,ra as d,rb as y,rc as F,xb as g}from"./chunk-ZEAAPN4P.js";import{f as j}from"./chunk-MG3ERZGY.js";var U=j(J());function N(n,p){if(n&1){let e=_();l(0,"span",5)(1,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r().$index,w=r();return b(w.model.themeColors.hcColors[i],t)||(w.model.themeColors.hcColors[i]=t),d(t)}),h("colorChange",function(){a(e);let t=r(2);return d(t.update())}),s()()}if(n&2){let e=r().$index,o=r();c(),g("isImmediate",!0),f("color",o.model.themeColors.hcColors[e])}}function z(n,p){if(n&1&&y(0,N,2,2,"span",5),n&2){let e=p.$index,o=r();m((o.appearance==null||o.appearance.showSeries==null?null:o.appearance.showSeries[e])!==!1?0:-1)}}function H(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Chart background"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcBackground,t)||(i.model.themeColors.hcBackground=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcBackground)}}function R(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Lines color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcLineColor,t)||(i.model.themeColors.hcLineColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcLineColor)}}function Y(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Text color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcTextColor,t)||(i.model.themeColors.hcTextColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcTextColor)}}function q(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Series border color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcBorderColor,t)||(i.model.themeColors.hcBorderColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcBorderColor)}}var te=(()=>{class n{constructor(e,o,t,i){this.sbs=e,this.ss=o,this.cd=t,this.bs=i,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 o=this.widgetSettings.themeColors[this.key];o&&(this.model.themeColors=JSON.parse(JSON.stringify(o)))}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 o=e.themeColors[this.key];o&&(this.model.themeColors=o)}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,o=this.getDefaultColors();(!e.hcColors||e.hcColors.length===0)&&(e.hcColors=o.hcColors),e.hcTextColor||(e.hcTextColor=o.hcTextColor),e.hcBackground||(e.hcBackground=o.hcBackground),e.hcBorderColor||(e.hcBorderColor=o.hcBorderColor),e.hcLineColor||(e.hcLineColor=o.hcLineColor),this.originalColors=JSON.parse(JSON.stringify(e))}byIndex(e,o){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(),o=(e.colors??[]).filter(w=>typeof w=="string"),t=this.generateHSLColors(10);return{hcColors:Array.from(new Set([...o,...t])).slice(0,20),hcBackground:String(e.chart?.backgroundColor??""),hcTextColor:String(e.labels?.style?.color??""),hcBorderColor:"",hcLineColor:"#e6e6e6"}}generateHSLColors(e){return Array.from({length:e},(o,t)=>`hsl(${Math.round(270/(e-1)*t)}, 100%, 50%)`)}static{this.\u0275fac=function(o){return new(o||n)(u(L),u(A),u(V),u(I))}}static{this.\u0275cmp=k({type:n,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(o,t){o&1&&(l(0,"dsw-sidebar-actions",0),h("cancel",function(){return t.onCancel()})("apply",function(){return t.onApply()}),C(1,"Chart colors"),s(),l(2,"div",1)(3,"label"),C(4),B(5,"i18n"),s(),l(6,"div",2),S(7,z,1,1,null,null,v),s(),y(9,H,3,2)(10,R,3,2)(11,Y,3,2)(12,q,3,2),P(13,"div",3),l(14,"button",4),h("click",function(){return t.resetToDefault()}),C(15,"Reset to default"),s()()),o&2&&(c(4),M(F(5,5,"seriesColor")),c(3),O(t.model.themeColors.hcColors),c(2),m((t.appearance==null?null:t.appearance.showBackground)!==!1?9:-1),c(),m((t.appearance==null?null:t.appearance.showLines)!==!1?10:-1),c(),m((t.appearance==null?null:t.appearance.showText)!==!1?11:-1),c(),m((t.appearance==null?null:t.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}"]})}}return n})();export{te as ChartColorsConfigComponent}; +import{a as D}from"./chunk-JG7KQKR6.js";import{a as W}from"./chunk-EXZFHSK3.js";import"./chunk-GOV7BL6D.js";import{a as J}from"./chunk-HCCYM72S.js";import"./chunk-OM7B3BIS.js";import"./chunk-MDOQS4TE.js";import{a as L}from"./chunk-G7BOERRR.js";import{a as I}from"./chunk-2ODAR4M4.js";import{D as E,J as A}from"./chunk-ZHVSJD4N.js";import{Cb as m,Db as v,Fb as S,Gb as O,Hb as l,Ib as s,Jb as P,Kc as V,Nb as _,Rb as h,Sb as r,ab as c,bb as u,bc as C,cc as M,ec as f,fa as k,fc as b,gc as x,lc as T,qa as a,qc as B,ra as d,rb as y,rc as F,xb as g}from"./chunk-ZEAAPN4P.js";import{f as j}from"./chunk-MG3ERZGY.js";var U=j(J());function N(n,p){if(n&1){let e=_();l(0,"span",5)(1,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r().$index,w=r();return b(w.model.themeColors.hcColors[i],t)||(w.model.themeColors.hcColors[i]=t),d(t)}),h("colorChange",function(){a(e);let t=r(2);return d(t.update())}),s()()}if(n&2){let e=r().$index,o=r();c(),g("isImmediate",!0),f("color",o.model.themeColors.hcColors[e])}}function z(n,p){if(n&1&&y(0,N,2,2,"span",5),n&2){let e=p.$index,o=r();m((o.appearance==null||o.appearance.showSeries==null?null:o.appearance.showSeries[e])!==!1?0:-1)}}function H(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Chart background"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcBackground,t)||(i.model.themeColors.hcBackground=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcBackground)}}function R(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Lines color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcLineColor,t)||(i.model.themeColors.hcLineColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcLineColor)}}function Y(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Text color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcTextColor,t)||(i.model.themeColors.hcTextColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcTextColor)}}function q(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Series border color"),s(),l(2,"dsw-color-picker",6),x("colorChange",function(t){a(e);let i=r();return b(i.model.themeColors.hcBorderColor,t)||(i.model.themeColors.hcBorderColor=t),d(t)}),h("colorChange",function(){a(e);let t=r();return d(t.update())}),s()}if(n&2){let e=r();c(2),g("isImmediate",!0),f("color",e.model.themeColors.hcBorderColor)}}var te=(()=>{class n{constructor(e,o,t,i){this.sbs=e,this.ss=o,this.cd=t,this.bs=i,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 o=this.widgetSettings.themeColors[this.key];o&&(this.model.themeColors=JSON.parse(JSON.stringify(o)))}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 o=e.themeColors[this.key];o&&(this.model.themeColors=o)}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,o=this.getDefaultColors();(!e.hcColors||e.hcColors.length===0)&&(e.hcColors=o.hcColors),e.hcTextColor||(e.hcTextColor=o.hcTextColor),e.hcBackground||(e.hcBackground=o.hcBackground),e.hcBorderColor||(e.hcBorderColor=o.hcBorderColor),e.hcLineColor||(e.hcLineColor=o.hcLineColor),this.originalColors=JSON.parse(JSON.stringify(e))}byIndex(e,o){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(),o=(e.colors??[]).filter(w=>typeof w=="string"),t=this.generateHSLColors(10);return{hcColors:Array.from(new Set([...o,...t])).slice(0,20),hcBackground:String(e.chart?.backgroundColor??""),hcTextColor:String(e.labels?.style?.color??""),hcBorderColor:"",hcLineColor:"#e6e6e6"}}generateHSLColors(e){return Array.from({length:e},(o,t)=>`hsl(${Math.round(270/(e-1)*t)}, 100%, 50%)`)}static{this.\u0275fac=function(o){return new(o||n)(u(L),u(A),u(V),u(I))}}static{this.\u0275cmp=k({type:n,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(o,t){o&1&&(l(0,"dsw-sidebar-actions",0),h("cancel",function(){return t.onCancel()})("apply",function(){return t.onApply()}),C(1,"Chart colors"),s(),l(2,"div",1)(3,"label"),C(4),B(5,"i18n"),s(),l(6,"div",2),S(7,z,1,1,null,null,v),s(),y(9,H,3,2)(10,R,3,2)(11,Y,3,2)(12,q,3,2),P(13,"div",3),l(14,"button",4),h("click",function(){return t.resetToDefault()}),C(15,"Reset to default"),s()()),o&2&&(c(4),M(F(5,5,"seriesColor")),c(3),O(t.model.themeColors.hcColors),c(2),m((t.appearance==null?null:t.appearance.showBackground)!==!1?9:-1),c(),m((t.appearance==null?null:t.appearance.showLines)!==!1?10:-1),c(),m((t.appearance==null?null:t.appearance.showText)!==!1?11:-1),c(),m((t.appearance==null?null:t.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}"]})}}return n})();export{te as ChartColorsConfigComponent}; diff --git a/dist/chunk-C4FRQTLO.js b/dist/chunk-C4FRQTLO.js new file mode 100644 index 00000000..d07c2857 --- /dev/null +++ b/dist/chunk-C4FRQTLO.js @@ -0,0 +1 @@ +import{a}from"./chunk-V3PSYXBK.js";import"./chunk-VUYLTOWP.js";import"./chunk-ZHVSJD4N.js";import"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";export{a as ShareDashboardComponent}; diff --git a/dist/chunk-M4JSR4XG.js b/dist/chunk-D7UFXRMJ.js similarity index 99% rename from dist/chunk-M4JSR4XG.js rename to dist/chunk-D7UFXRMJ.js index c0ee13f1..25070e23 100644 --- a/dist/chunk-M4JSR4XG.js +++ b/dist/chunk-D7UFXRMJ.js @@ -1,4 +1,4 @@ -import{a as Co}from"./chunk-HCCYM72S.js";import{a as qr}from"./chunk-G7BOERRR.js";import{a as Wh}from"./chunk-UJWY6PMO.js";import{a as Gh,b as Xh}from"./chunk-MGBUQL4E.js";import{E as zh,F as ue,H as jh,I as Nh,J as Bh,K as Ss,r as Oh,u as Fh}from"./chunk-5MYX3VUL.js";import{Aa as Dh,Cb as rr,Ea as Lh,Eb as he,Fb as ce,Gb as de,Hb as Dt,Ib as It,Jb as Ht,Kc as Rh,Nb as Ih,Rb as kh,Sb as Nt,X as Mh,Xb as Si,Ya as Cs,Yb as Mi,Zb as Ei,ab as Lt,ba as Qt,bc as ne,cc as Fe,dc as ws,fa as bt,lb as Ct,lc as vt,qa as Eh,ra as Ph,rb as sr,sa as Th,ta as Ah,ua as _t,xb as _s,yb as Oe,zb as Ze}from"./chunk-ZEAAPN4P.js";import{a as re,b as oi,d as ai,f as Jt,g as Sh,h as Ft}from"./chunk-MG3ERZGY.js";var Ms=ai((Vh,$r)=>{"use strict";(function(n,t){typeof define=="function"&&define.amd?define(t):typeof $r=="object"&&$r.exports?$r.exports=t():n.numeral=t()})(Vh,function(){var n,t,e="2.0.6",i={},s={},r={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:r.currentLocale,zeroFormat:r.zeroFormat,nullFormat:r.nullFormat,defaultFormat:r.defaultFormat,scalePercentBy100:r.scalePercentBy100};function a(l,h){this._input=l,this._value=h}return n=function(l){var h,c,g,d;if(n.isNumeral(l))h=l.value();else if(l===0||typeof l>"u")h=0;else if(l===null||t.isNaN(l))h=null;else if(typeof l=="string")if(o.zeroFormat&&l===o.zeroFormat)h=0;else if(o.nullFormat&&l===o.nullFormat||!l.replace(/[^0-9]+/g,"").length)h=null;else{for(c in i)if(d=typeof i[c].regexps.unformat=="function"?i[c].regexps.unformat():i[c].regexps.unformat,d&&l.match(d)){g=i[c].unformat;break}g=g||n._.stringToNumber,h=g(l)}else h=Number(l)||null;return new a(l,h)},n.version=e,n.isNumeral=function(l){return l instanceof a},n._=t={numberToFormat:function(l,h,c){var g=s[n.options.currentLocale],d=!1,p=!1,y=0,b="",x=1e12,f=1e9,M=1e6,L=1e3,_="",w=!1,k,z,O,C,A,F,S,T,D,P;if(l=l||0,z=Math.abs(l),n._.includes(h,"(")?(d=!0,h=h.replace(/[\(|\)]/g,"")):(n._.includes(h,"+")||n._.includes(h,"-"))&&(T=n._.includes(h,"+")?h.indexOf("+"):l<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),n._.includes(h,"a")&&(k=h.match(/a(k|m|b|t)?/),k=k?k[1]:!1,n._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),z>=x&&!k||k==="t"?(b+=g.abbreviations.trillion,l=l/x):z=f&&!k||k==="b"?(b+=g.abbreviations.billion,l=l/f):z=M&&!k||k==="m"?(b+=g.abbreviations.million,l=l/M):(z=L&&!k||k==="k")&&(b+=g.abbreviations.thousand,l=l/L)),n._.includes(h,"[.]")&&(p=!0,h=h.replace("[.]",".")),F=l.toString().split(".")[0],S=h.split(".")[1],D=h.indexOf(","),y=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(n._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),_=n._.toFixed(l,S[0].length+S[1].length,c,S[1].length)):_=n._.toFixed(l,S.length,c),F=_.split(".")[0],n._.includes(_,".")?_=g.delimiters.decimal+_.split(".")[1]:_="",p&&Number(_.slice(1))===0&&(_="")):F=n._.toFixed(l,0,c),b&&!k&&Number(F)>=1e3&&b!==g.abbreviations.trillion)switch(F=String(Number(F)/1e3),b){case g.abbreviations.thousand:b=g.abbreviations.million;break;case g.abbreviations.million:b=g.abbreviations.billion;break;case g.abbreviations.billion:b=g.abbreviations.trillion;break}if(n._.includes(F,"-")&&(F=F.slice(1),w=!0),F.length0;m--)F="0"+F;return D>-1&&(F=F.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g.delimiters.thousands)),h.indexOf(".")===0&&(F=""),P=F+_+(b||""),d?P=(d&&w?"(":"")+P+(d&&w?")":""):T>=0?P=T===0?(w?"-":"+")+P:P+(w?"-":"+"):w&&(P="-"+P),P},stringToNumber:function(l){var h=s[o.currentLocale],c=l,g={thousand:3,million:6,billion:9,trillion:12},d,p,y,b;if(o.zeroFormat&&l===o.zeroFormat)p=0;else if(o.nullFormat&&l===o.nullFormat||!l.replace(/[^0-9]+/g,"").length)p=null;else{p=1,h.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(d in g)if(b=new RegExp("[^a-zA-Z]"+h.abbreviations[d]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(b)){p*=Math.pow(10,g[d]);break}p*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),p*=Number(l)}return p},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,h){return l.indexOf(h)!==-1},insert:function(l,h,c){return l.slice(0,c)+h+l.slice(c)},reduce:function(l,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(l),g=c.length>>>0,d=0,p;if(arguments.length===3)p=arguments[2];else{for(;d=g)throw new TypeError("Reduce of empty array with no initial value");p=c[d++]}for(;dg?h:g},1)},toFixed:function(l,h,c,g){var d=l.toString().split("."),p=h-(g||0),y,b,x,f;return d.length===2?y=Math.min(Math.max(d[1].length,p),h):y=p,x=Math.pow(10,y),f=(c(l+"e+"+y)/x).toFixed(y),g>h-y&&(b=new RegExp("\\.?0{1,"+(g-(h-y))+"}$"),f=f.replace(b,"")),f}},n.options=o,n.formats=i,n.locales=s,n.locale=function(l){return l&&(o.currentLocale=l.toLowerCase()),o.currentLocale},n.localeData=function(l){if(!l)return s[o.currentLocale];if(l=l.toLowerCase(),!s[l])throw new Error("Unknown locale : "+l);return s[l]},n.reset=function(){for(var l in r)o[l]=r[l]},n.zeroFormat=function(l){o.zeroFormat=typeof l=="string"?l:null},n.nullFormat=function(l){o.nullFormat=typeof l=="string"?l:null},n.defaultFormat=function(l){o.defaultFormat=typeof l=="string"?l:"0.0"},n.register=function(l,h,c){if(h=h.toLowerCase(),this[l+"s"][h])throw new TypeError(h+" "+l+" already registered.");return this[l+"s"][h]=c,c},n.validate=function(l,h){var c,g,d,p,y,b,x,f;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=n.localeData(h)}catch{x=n.localeData(n.locale())}return d=x.currency.symbol,y=x.abbreviations,c=x.delimiters.decimal,x.delimiters.thousands==="."?g="\\.":g=x.delimiters.thousands,f=l.match(/^[^\d]+/),f!==null&&(l=l.substr(1),f[0]!==d)||(f=l.match(/[^\d]+$/),f!==null&&(l=l.slice(0,-1),f[0]!==y.thousand&&f[0]!==y.million&&f[0]!==y.billion&&f[0]!==y.trillion))?!1:(b=new RegExp(g+"{2}"),l.match(/[^\d.,]/g)?!1:(p=l.split(c),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/)))},n.fn=a.prototype={clone:function(){return n(this)},format:function(l,h){var c=this._value,g=l||o.defaultFormat,d,p,y;if(h=h||Math.round,c===0&&o.zeroFormat!==null)p=o.zeroFormat;else if(c===null&&o.nullFormat!==null)p=o.nullFormat;else{for(d in i)if(g.match(i[d].regexps.format)){y=i[d].format;break}y=y||n._.numberToFormat,p=y(c,g,h)}return p},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var h=t.correctionFactor.call(null,this._value,l);function c(g,d,p,y){return g+Math.round(h*d)}return this._value=t.reduce([this._value,l],c,0)/h,this},subtract:function(l){var h=t.correctionFactor.call(null,this._value,l);function c(g,d,p,y){return g-Math.round(h*d)}return this._value=t.reduce([l],c,Math.round(this._value*h))/h,this},multiply:function(l){function h(c,g,d,p){var y=t.correctionFactor(c,g);return Math.round(c*y)*Math.round(g*y)/Math.round(y*y)}return this._value=t.reduce([this._value,l],h,1),this},divide:function(l){function h(c,g,d,p){var y=t.correctionFactor(c,g);return Math.round(c*y)/Math.round(g*y)}return this._value=t.reduce([this._value,l],h),this},difference:function(l){return Math.abs(n(this._value).subtract(l).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var h=l%10;return~~(l%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,h,c){var g=n._.includes(h," BPS")?" ":"",d;return l=l*1e4,h=h.replace(/\s?BPS/,""),d=n._.numberToFormat(l,h,c),n._.includes(d,")")?(d=d.split(""),d.splice(-1,0,g+"BPS"),d=d.join("")):d=d+g+"BPS",d},unformat:function(l){return+(n._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={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=l.suffixes.concat(h.suffixes.filter(function(d){return l.suffixes.indexOf(d)<0})),g=c.join("|");g="("+g.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(g)},format:function(d,p,y){var b,x=n._.includes(p,"ib")?h:l,f=n._.includes(p," b")||n._.includes(p," ib")?" ":"",M,L,_;for(p=p.replace(/\s?i?b/,""),M=0;M<=x.suffixes.length;M++)if(L=Math.pow(x.base,M),_=Math.pow(x.base,M+1),d===null||d===0||d>=L&&d<_){f+=x.suffixes[M],L>0&&(d=d/L);break}return b=n._.numberToFormat(d,p,y),b+f},unformat:function(d){var p=n._.stringToNumber(d),y,b;if(p){for(y=l.suffixes.length-1;y>=0;y--){if(n._.includes(d,l.suffixes[y])){b=Math.pow(l.base,y);break}if(n._.includes(d,h.suffixes[y])){b=Math.pow(h.base,y);break}}p*=b||1}return p}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(l,h,c){var g=n.locales[n.options.currentLocale],d={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,y,b;for(h=h.replace(/\s?\$\s?/,""),p=n._.numberToFormat(l,h,c),l>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):l<0&&!n._.includes(d.before,"-")&&!n._.includes(d.before,"(")&&(d.before="-"+d.before),b=0;b=0;b--)switch(y=d.after[b],y){case"$":p=b===d.after.length-1?p+g.currency.symbol:n._.insert(p,g.currency.symbol,-(d.after.length-(1+b)));break;case" ":p=b===d.after.length-1?p+" ":n._.insert(p," ",-(d.after.length-(1+b)+g.currency.symbol.length-1));break}return p}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,h,c){var g,d=typeof l=="number"&&!n._.isNaN(l)?l.toExponential():"0e+0",p=d.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),g=n._.numberToFormat(Number(p[0]),h,c),g+"e"+p[1]},unformat:function(l){var h=n._.includes(l,"e+")?l.split("e+"):l.split("e-"),c=Number(h[0]),g=Number(h[1]);g=n._.includes(l,"e-")?g*=-1:g;function d(p,y,b,x){var f=n._.correctionFactor(p,y),M=p*f*(y*f)/(f*f);return M}return n._.reduce([c,Math.pow(10,g)],d,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,h,c){var g=n.locales[n.options.currentLocale],d,p=n._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),p+=g.ordinal(l),d=n._.numberToFormat(l,h,c),d+p}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,h,c){var g=n._.includes(h," %")?" ":"",d;return n.options.scalePercentBy100&&(l=l*100),h=h.replace(/\s?\%/,""),d=n._.numberToFormat(l,h,c),n._.includes(d,")")?(d=d.split(""),d.splice(-1,0,g+"%"),d=d.join("")):d=d+g+"%",d},unformat:function(l){var h=n._.stringToNumber(l);return n.options.scalePercentBy100?h*.01:h}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,h,c){var g=Math.floor(l/60/60),d=Math.floor((l-g*60*60)/60),p=Math.round(l-g*60*60-d*60);return g+":"+(d<10?"0"+d:d)+":"+(p<10?"0"+p:p)},unformat:function(l){var h=l.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)}})}(),n})});var yl=ai((ml,xl)=>{"use strict";(function(n,t){typeof ml=="object"&&typeof xl<"u"?xl.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self).RBush=t()})(ml,function(){"use strict";function n(x,f,M,L,_){(function w(k,z,O,C,A){for(;C>O;){if(C-O>600){var F=C-O+1,S=z-O+1,T=Math.log(F),D=.5*Math.exp(2*T/3),P=.5*Math.sqrt(T*D*(F-D)/F)*(S-F/2<0?-1:1),m=Math.max(O,Math.floor(z-S*D/F+P)),u=Math.min(C,Math.floor(z+(F-S)*D/F+P));w(k,z,m,u,A)}var v=k[z],I=O,E=C;for(t(k,O,z),A(k[C],v)>0&&t(k,O,C);I0;)E--}A(k[O],v)===0?t(k,O,E):t(k,++E,C),E<=z&&(O=E+1),z<=E&&(C=E-1)}})(x,f,M||0,L||x.length-1,_||e)}function t(x,f,M){var L=x[f];x[f]=x[M],x[M]=L}function e(x,f){return xf?1:0}var i=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 s(x,f,M){if(!M)return f.indexOf(x);for(var L=0;L=x.minX&&f.maxY>=x.minY}function y(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(x,f,M,L,_){for(var w=[f,M];w.length;)if(!((M=w.pop())-(f=w.pop())<=L)){var k=f+Math.ceil((M-f)/L/2)*L;n(x,k,f,M,_),w.push(f,k,k,M)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(x){var f=this.data,M=[];if(!p(x,f))return M;for(var L=this.toBBox,_=[];f;){for(var w=0;w=0&&_[f].children.length>this._maxEntries;)this._split(_,f),f--;this._adjustParentBBoxes(L,_,f)},i.prototype._split=function(x,f){var M=x[f],L=M.children.length,_=this._minEntries;this._chooseSplitAxis(M,_,L);var w=this._chooseSplitIndex(M,_,L),k=y(M.children.splice(w,M.children.length-w));k.height=M.height,k.leaf=M.leaf,r(M,this.toBBox),r(k,this.toBBox),f?x[f-1].children.push(k):this._splitRoot(M,k)},i.prototype._splitRoot=function(x,f){this.data=y([x,f]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(x,f,M){for(var L,_,w,k,z,O,C,A=1/0,F=1/0,S=f;S<=M-f;S++){var T=o(x,0,S,this.toBBox),D=o(x,S,M,this.toBBox),P=(_=T,w=D,k=void 0,z=void 0,O=void 0,C=void 0,k=Math.max(_.minX,w.minX),z=Math.max(_.minY,w.minY),O=Math.min(_.maxX,w.maxX),C=Math.min(_.maxY,w.maxY),Math.max(0,O-k)*Math.max(0,C-z)),m=c(T)+c(D);P=f;A--){var F=x.children[A];a(k,x.leaf?_(F):F),z+=g(k)}return z},i.prototype._adjustParentBBoxes=function(x,f,M){for(var L=M;L>=0;L--)a(f[L],x)},i.prototype._condense=function(x){for(var f=x.length-1,M=void 0;f>=0;f--)x[f].children.length===0?f>0?(M=x[f-1].children).splice(M.indexOf(x[f]),1):this.clear():r(x[f],this.toBBox)},i})});var Uu=ai((ZT,ao)=>{"use strict";(function(n){typeof ao=="object"&&ao.exports?(n.default=n,ao.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/map",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r;let{parse:o}=i,{addEvent:a,extend:l,merge:h,pick:c,splat:g}=s;return function(d){let p;function y(){let{userOptions:O}=this;this.colorAxis=[],O.colorAxis&&(O.colorAxis=g(O.colorAxis),O.colorAxis.map(C=>new p(this,C)))}function b(O){let C=this.chart.colorAxis||[],A=D=>{let P=O.allItems.indexOf(D);P!==-1&&(this.destroyItem(O.allItems[P]),O.allItems.splice(P,1))},F=[],S,T;for(C.forEach(function(D){(S=D.options)&&S.showInLegend&&(S.dataClasses&&S.visible?F=F.concat(D.getDataClassLegendSymbols()):S.visible&&F.push(D),D.series.forEach(function(P){(!P.options.showInLegend||S.dataClasses)&&(P.options.legendType==="point"?P.points.forEach(function(m){A(m)}):A(P))}))}),T=F.length;T--;)O.allItems.unshift(F[T])}function x(O){O.visible&&O.item.legendColor&&O.item.legendItem.symbol.attr({fill:O.item.legendColor})}function f(O){this.chart.colorAxis?.forEach(C=>{C.update({},O.redraw)})}function M(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let O=this.axisTypes;O?O.indexOf("colorAxis")===-1&&O.push("colorAxis"):this.axisTypes=["colorAxis"]}function _(O){let C=this,A=O?"show":"hide";C.visible=C.options.visible=!!O,["graphic","dataLabel"].forEach(function(F){C[F]&&C[F][A]()}),this.series.buildKDTree()}function w(){let O=this,C=this.getPointsCollection(),A=this.options.nullColor,F=this.colorAxis,S=this.colorKey;C.forEach(T=>{let D=T.getNestedProperty(S),P=T.options.color||(T.isNull||T.value===null?A:F&&D!==void 0?F.toColor(D,T):T.color||O.color);P&&T.color!==P&&(T.color=P,O.options.legendType==="point"&&T.legendItem&&T.legendItem.label&&O.chart.legend.colorizeItem(T,T.visible))})}function k(){this.elem.attr("fill",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}function z(){this.elem.attr("stroke",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}d.compose=function(O,C,A,F,S){let T=C.prototype,D=A.prototype,P=S.prototype;T.collectionsWithUpdate.includes("colorAxis")||(p=O,T.collectionsWithUpdate.push("colorAxis"),T.collectionsWithInit.colorAxis=[T.addColorAxis],a(C,"afterGetAxes",y),function(m){let u=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return u.apply(this,arguments);let E=new p(this,h(I.axis,{index:this[v].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(R=>{R.series=[]}),this.series.forEach(R=>{R.bindAxes(),R.isDirtyData=!0}),c(I.redraw,!0)&&this.redraw(I.animation),E}}(C),D.fillSetter=k,D.strokeSetter=z,a(F,"afterGetAllItems",b),a(F,"afterColorizeItem",x),a(F,"afterUpdate",f),l(P,{optionalAxis:"colorAxis",translateColors:w}),l(P.pointClass.prototype,{setVisible:_}),a(S,"afterTranslate",M,{order:1}),a(S,"bindAxes",L))},d.pointSetVisible=_}(r||(r={})),r}),e(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}}),e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(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(i,s,r,o,a,l,h,c){let{defaultOptions:g}=a,{series:d}=h,{defined:p,extend:y,fireEvent:b,isArray:x,isNumber:f,merge:M,pick:L,relativeLength:_}=c;g.colorAxis=M(g.xAxis,r);class w extends i{static compose(z,O,C,A){s.compose(w,z,O,C,A)}constructor(z,O){super(z,O),this.coll="colorAxis",this.visible=!0,this.init(z,O)}init(z,O){let C=z.options.legend||{},A=O.layout?O.layout!=="vertical":C.layout!=="vertical";this.side=O.side||A?2:1,this.reversed=O.reversed||!A,this.opposite=!A,super.init(z,O,"colorAxis"),this.userOptions=O,x(z.userOptions.colorAxis)&&(z.userOptions.colorAxis[this.index]=O),O.dataClasses&&this.initDataClasses(O),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(z){let O=M(g.colorAxis,z,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&z.visible!==!1});super.setOptions(O),this.options.crosshair=this.options.marker}setAxisSize(){let z=this.chart,O=this.legendItem?.symbol,{width:C,height:A}=this.getSize();O&&(this.left=+O.attr("x"),this.top=+O.attr("y"),this.width=C=+O.attr("width"),this.height=A=+O.attr("height"),this.right=z.chartWidth-this.left-C,this.bottom=z.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?C:A)||w.defaultLegendLength}getOffset(){let z=this.legendItem?.group,O=this.chart.axisOffset[this.side];if(z){this.axisParent=z,super.getOffset();let C=this.chart.legend;C.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(C,A)}),C.render(),this.chart.getMargins(!0),this.chart.series.some(A=>A.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=O}}setLegendColor(){let z=this.horiz,O=this.reversed,C=O?1:0,A=O?0:1,F=z?[C,0,A,0]:[0,A,0,C];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(z,O){let C=O.legendItem||{},A=z.padding,F=z.options,S=this.options.labels,T=L(F.itemDistance,10),D=this.horiz,{width:P,height:m}=this.getSize(),u=L(F.labelPadding,D?16:30);this.setLegendColor(),C.symbol||(C.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(C.group)),C.symbol.attr({x:0,y:(z.baseline||0)-11,width:P,height:m}),C.labelWidth=P+A+(D?T:L(S.x,S.distance)+(this.maxLabelLength||0)),C.labelHeight=m+A+(D?u:0)}setState(z){this.series.forEach(function(O){O.setState(z)})}setVisible(){}getSeriesExtremes(){let z=this.series,O,C,A,F,S,T,D=z.length,P,m;for(this.dataMin=1/0,this.dataMax=-1/0;D--;){if(C=(T=z[D]).colorKey=L(T.options.colorKey,T.colorKey,T.pointValKey,T.zoneAxis,"y"),F=T.pointArrayMap,S=T[C+"Min"]&&T[C+"Max"],T[C+"Data"])O=T[C+"Data"];else if(F){if(O=[],A=F.indexOf(C),P=T.yData,A>=0&&P)for(m=0;mT+D&&(C=T+D+2),O.plotX=C,O.plotY=this.len-C,super.drawCrosshair(z,O),O.plotX=F,O.plotY=S,this.cross&&!this.cross.addedToColorAxis&&A.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(A.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(z){let O=this.left,C=z.translatedValue,A=this.top;return f(C)?this.horiz?[["M",C-4,A-6],["L",C+4,A-6],["L",C,A],["Z"]]:[["M",O,C],["L",O-6,C+6],["L",O-6,C-6],["Z"]]:super.getPlotLinePath(z)}update(z,O){let C=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(z.dataClasses&&C.allItems||this.dataClasses)&&this.destroyItems(),super.update(z,O),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),C.colorizeItem(this,!0))}destroyItems(){let z=this.chart,O=this.legendItem||{};if(O.label)z.legend.destroyItem(this);else if(O.labels)for(let C of O.labels)z.legend.destroyItem(C);z.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(z){this.destroyItems(),super.remove(z)}getDataClassLegendSymbols(){let z,O=this,C=O.chart,A=O.legendItem&&O.legendItem.labels||[],F=C.options.legend,S=L(F.valueDecimals,-1),T=L(F.valueSuffix,""),D=P=>O.series.reduce((m,u)=>(m.push(...u.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let u=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",u===void 0?z="< ":v===void 0&&(z="> "),u!==void 0&&(z+=I(u,S)+T),u!==void 0&&v!==void 0&&(z+=" - "),v!==void 0&&(z+=I(v,S)+T),A.push(y({chart:C,name:z,options:{},drawLegendSymbol:l.rectangle,visible:!0,isDataClass:!0,setState:R=>{for(let j of D(m))j.setState(R)},setVisible:function(){this.visible=E=O.visible=!E;let R=[];for(let j of D(m))j.setVisible(E),j.hiddenInDataClass=!E,R.indexOf(j.series)===-1&&R.push(j.series);C.legend.colorizeItem(this,E),R.forEach(j=>{b(j,"afterDataClassLegendClick")})}},P))}),A}getSize(){let{chart:z,horiz:O}=this,{height:C,width:A}=this.options,{legend:F}=z.options;return{width:L(p(A)?_(A,z.chartWidth):void 0,F?.symbolWidth,O?w.defaultLegendLength:12),height:L(p(C)?_(C,z.chartHeight):void 0,F?.symbolHeight,O?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],y(w.prototype,o),Array.prototype.push.apply(i.keepProps,w.keepProps),w}),e(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(i,s){return i.ColorAxis=i.ColorAxis||s,i.ColorAxis.compose(i.Chart,i.Fx,i.Legend,i.Series),i}),e(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}}}),e(t,"Maps/MapPointer.js",[t["Core/Utilities.js"]],function(i){var s;let{defined:r,extend:o,pick:a,wrap:l}=i;return function(h){let c,g=0;function d(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 p(x){let f=this.chart,M=r((x=this.normalize(x)).wheelDelta)&&-x.wheelDelta/120||x.deltaY||x.detail;Math.abs(M)>=1&&(g+=Math.abs(M),c&&clearTimeout(c),c=setTimeout(()=>{g=0},50)),g<10&&f.isInsidePlot(x.chartX-f.plotLeft,x.chartY-f.plotTop)&&f.mapView&&f.mapView.zoomBy(-((f.options.mapNavigation.mouseWheelSensitivity-1)*M),void 0,[x.chartX,x.chartY],!(1>Math.abs(M))&&void 0)}function y(x,f,M){let L=this.chart;if(f=x.call(this,f,M),L&&L.mapView){let _=L.mapView.pixelsToLonLat({x:f.chartX-L.plotLeft,y:f.chartY-L.plotTop});_&&o(f,_)}return f}function b(x){let f=this.chart.options.mapNavigation;f&&a(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||(o(f,{onContainerDblClick:d,onContainerMouseWheel:p}),l(f,"normalize",y),l(f,"zoomOption",b))}}(s||(s={})),s}),e(t,"Maps/MapSymbols.js",[],function(){let i;function s(o,a,l,h,c){if(c){let g=c?.r||0;c.brBoxY=a-g,c.brBoxHeight=h+g}return i.roundedRect(o,a,l,h,c)}function r(o,a,l,h,c){if(c){let g=c?.r||0;c.brBoxHeight=h+g}return i.roundedRect(o,a,l,h,c)}return{compose:function(o){(i=o.prototype.symbols).bottombutton=s,i.topbutton=r}}}),e(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(i,s,r,o,a,l){let{setOptions:h}=i,{composed:c}=s,{addEvent:g,extend:d,merge:p,objectEach:y,pick:b,pushUnique:x}=l;function f(L){L&&(L.preventDefault&&L.preventDefault(),L.stopPropagation&&L.stopPropagation(),L.cancelBubble=!0)}class M{static compose(_,w,k){o.compose(w),a.compose(k),x(c,"Map.Navigation")&&(g(_,"beforeRender",function(){this.mapNavigation=new M(this),this.mapNavigation.update()}),h(r))}constructor(_){this.chart=_,this.navButtons=[]}update(_){let w=this,k=w.chart,z=w.navButtons,O=function(A){this.handler.call(k,A),f(A)},C=k.options.mapNavigation;for(_&&(C=k.options.mapNavigation=p(k.options.mapNavigation,_));z.length;)z.pop().destroy();if(!k.renderer.forExport&&b(C.enableButtons,C.enabled)){w.navButtonsGroup||(w.navButtonsGroup=k.renderer.g().attr({zIndex:7}).add()),y(C.buttons,(F,S)=>{let T={padding:(F=p(C.buttonOptions,F)).padding};!k.styledMode&&F.theme&&(d(T,F.theme),T.style=p(F.theme.style,F.style));let{text:D,width:P=0,height:m=0,padding:u=0}=F,v=k.renderer.button(D!=="+"&&D!=="-"&&D||"",0,0,O,T,void 0,void 0,void 0,S==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[S]).attr({width:P,height:m,title:k.options.lang[S],zIndex:5}).add(w.navButtonsGroup);if(D==="+"||D==="-"){let I=P+1,E=[["M",u+3,u+m/2],["L",u+I-3,u+m/2]];D==="+"&&E.push(["M",u+I/2,u+3],["L",u+I/2,u+m-3]),k.renderer.path(E).addClass("highcharts-button-symbol").attr(k.styledMode?{}:{stroke:F.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(v)}if(v.handler=F.onclick,g(v.element,"dblclick",f),z.push(v),d(F,{width:v.width,height:2*(v.height||0)}),k.hasLoaded)v.align(F,!1,F.alignTo);else{let I=g(k,"load",()=>{v.element&&v.align(F,!1,F.alignTo),I()})}});let A=(F,S)=>!(S.x>=F.x+F.width||S.x+S.width<=F.x||S.y>=F.y+F.height||S.y+S.height<=F.y);k.hasLoaded||g(k,"render",function(){let F=k.exportingGroup&&k.exportingGroup.getBBox();if(F){let S=w.navButtonsGroup.getBBox();if(A(F,S)){let T=-S.y-S.height+F.y-5,D=F.y+F.height-S.y+5,P=C.buttonOptions&&C.buttonOptions.verticalAlign;w.navButtonsGroup.attr({translateY:P==="bottom"?T:D})}}})}this.updateEvents(C)}updateEvents(_){let w=this.chart;b(_.enableDoubleClickZoom,_.enabled)||_.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||g(w.container,"dblclick",function(k){w.pointer.onContainerDblClick(k)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),b(_.enableMouseWheelZoom,_.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||g(w.container,"wheel",function(k){return w.pointer.inClass(k.target,"highcharts-no-mousewheel")||(w.pointer.onContainerMouseWheel(k),f(k)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return M}),e(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{column:{prototype:a}}=i.seriesTypes,{addEvent:l,defined:h}=r;return function(c){function g(d){let p=this.series,y=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(y,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),d?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${y.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(d){let p={};return h(d.color)&&(!d.state||d.state==="normal")&&(p[this.colorProp||"fill"]=d.color),p},pointAttribs:a.pointAttribs},c.compose=function(d){return l(d.prototype.pointClass,"afterSetState",g),d}}(o||(o={})),o}),e(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(i,s,r,o){var a;let{getOptions:l}=s,{isNumber:h,merge:c,pick:g}=o;class d extends i{init(y,b){let x=l().credits,f=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}},y);super.init(f,b)}mapZoom(y,b,x,f,M){this.mapView&&(h(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,h(b)&&h(x)?this.mapView.projection.inverse([b,x]):void 0,h(f)&&h(M)?[f,M]:void 0))}update(y){y.chart&&"map"in y.chart&&this.mapView?.recommendMapView(this,[y.chart.map,...(this.options.series||[]).map(b=>b.mapData)],!0),super.update.apply(this,arguments)}}return(a=d||(d={})).maps={},a.mapChart=function(p,y,b){return new a(p,y,b)},a.splitPath=function(p){let y;return y=typeof p=="string"?(p=p.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(b=>/[A-Z]/i.test(b)?b:parseFloat(b)):p,r.prototype.pathToSegments(y)},d}),e(t,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(i){let s=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,a=Number.MAX_VALUE,l;if(i.forEach(h=>{let c=h[h.length-2],g=h[h.length-1];typeof c=="number"&&typeof g=="number"&&(r=Math.min(r,c),s=Math.max(s,c),a=Math.min(a,g),o=Math.max(o,g),l=!0)}),l)return{x1:r,y1:a,x2:s,y2:o}}}}),e(t,"Series/Map/MapPoint.js",[t["Series/ColorMapComposition.js"],t["Maps/MapUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{boundsFromPath:a}=s,l=r.seriesTypes.scatter.prototype.pointClass,{extend:h,isNumber:c,pick:g}=o;class d extends l{static getProjectedPath(y,b){return y.projectedPath||(b&&y.geometry?(b.hasCoordinates=!0,y.projectedPath=b.path(y.geometry)):y.projectedPath=y.path),y.projectedPath||[]}applyOptions(y,b){let x=this.series,f=super.applyOptions(y,b),M=x.joinBy;if(x.mapData&&x.mapMap){let L=M[1],_=super.getNestedProperty(L),w=_!==void 0&&x.mapMap[_];w?h(f,oi(re({},w),{name:f.name??w.name})):x.pointArrayMap.indexOf("value")!==-1&&(f.value=f.value||null)}return f}getProjectedBounds(y){let b=a(d.getProjectedPath(this,y)),x=this.properties,f=this.series.chart.mapView;if(b){let M=x&&x["hc-middle-lon"],L=x&&x["hc-middle-lat"];if(f&&c(M)&&c(L)){let _=y.forward([M,L]);b.midX=_[0],b.midY=_[1]}else{let _=x&&x["hc-middle-x"],w=x&&x["hc-middle-y"];b.midX=b.x1+(b.x2-b.x1)*g(this.middleX,c(_)?_:.5);let k=g(this.middleY,c(w)?w:.5);this.geometry||(k=1-k),b.midY=b.y2-(b.y2-b.y1)*k}return b}}onMouseOver(y){o.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,y):this.series.onMouseOut()}setVisible(y){this.visible=this.options.visible=!!y,this.dataLabel&&this.dataLabel[y?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(y){let b=this.series.chart,x=b.mapView,f=this.bounds;if(x&&f){let M=c(this.insetIndex)&&x.insets[this.insetIndex];if(M){let L=M.projectedUnitsToPixels({x:f.x1,y:f.y1}),_=M.projectedUnitsToPixels({x:f.x2,y:f.y2}),w=x.pixelsToProjectedUnits({x:L.x,y:L.y}),k=x.pixelsToProjectedUnits({x:_.x,y:_.y});f={x1:w.x,y1:w.y,x2:k.x,y2:k.y}}x.fitToBounds(f,void 0,!1),this.series.isDirty=!0,b.redraw(y)}}}return h(d.prototype,{dataLabelOnNull:i.pointMembers.dataLabelOnNull,moveToTopOnHover:i.pointMembers.moveToTopOnHover,isValid:i.pointMembers.isValid}),d}),e(t,"Series/Map/MapSeriesDefaults.js",[t["Core/Utilities.js"]],function(i){let{isNumber:s}=i;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:r}=this.series.chart,{value:o}=this.point;return s(o)?r(o,-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"}}),e(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"}}}),e(t,"Maps/GeoJSONComposition.js",[t["Core/Globals.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{win:a}=i,{format:l}=s,{error:h,extend:c,merge:g,wrap:d}=r;return function(p){function y(_){return this.mapView&&this.mapView.lonLatToProjectedUnits(_)}function b(_){return this.mapView&&this.mapView.projectedUnitsToLonLat(_)}function x(_,w){let k=this.options.chart.proj4||a.proj4;if(!k){h(21,!1,this);return}let{jsonmarginX:z=0,jsonmarginY:O=0,jsonres:C=1,scale:A=1,xoffset:F=0,xpan:S=0,yoffset:T=0,ypan:D=0}=w,P=k(w.crs,[_.lon,_.lat]),m=w.cosAngle||w.rotation&&Math.cos(w.rotation),u=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=w.rotation?[P[0]*m+P[1]*u,-P[0]*u+P[1]*m]:P;return{x:((v[0]-F)*A+S)*C+z,y:-(((T-v[1])*A+D)*C-O)}}function f(_,w){let k=this.options.chart.proj4||a.proj4;if(!k){h(21,!1,this);return}if(_.y===null)return;let{jsonmarginX:z=0,jsonmarginY:O=0,jsonres:C=1,scale:A=1,xoffset:F=0,xpan:S=0,yoffset:T=0,ypan:D=0}=w,P={x:((_.x-z)/C-S)/A+F,y:((_.y-O)/C+D)/A+T},m=w.cosAngle||w.rotation&&Math.cos(w.rotation),u=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=k(w.crs,"WGS84",w.rotation?{x:P.x*m+-(P.y*u),y:P.x*u+P.y*m}:P);return{lat:v.y,lon:v.x}}function M(_,w){w||(w=Object.keys(_.objects)[0]);let k=_.objects[w];if(k["hc-decoded-geojson"]&&k["hc-decoded-geojson"].title===_.title)return k["hc-decoded-geojson"];let z=_.arcs;if(_.transform){let S,T,D,P=_.arcs,{scale:m,translate:u}=_.transform;z=[];for(let v=0,I=P.length;vtypeof S[0]=="number"?S.reduce((T,D,P)=>{let m=D<0?z[~D]:z[D];return D<0?(m=m.slice(0,P===0?m.length:m.length-1)).reverse():P&&(m=m.slice(1)),T.concat(m)},[]):S.map(O),C=k.geometries,A=[];for(let S=0,T=C.length;S(a[1]-o[1])*(l[0]-o[0])}function r(o,a,l,h){let c=[o[0]-a[0],o[1]-a[1]],g=[l[0]-h[0],l[1]-h[1]],d=o[0]*a[1]-o[1]*a[0],p=l[0]*h[1]-l[1]*h[0],y=1/(c[0]*g[1]-c[1]*g[0]),b=[(d*g[0]-p*c[0])*y,(d*g[1]-p*c[1])*y];return b.isIntersection=!0,b}return{clipLineString:function(o,a){let l=[],h=i(o,a,!1);for(let c=1;ca===0?0:a>0?1:-1),s=Math.PI/180,r=Math.PI/2,o=a=>Math.tan((r+a)/2);return class{constructor(a){let l=(a.parallels||[]).map(p=>p*s),h=l[0]||0,c=l[1]??h,g=Math.cos(h);typeof a.projectedBounds=="object"&&(this.projectedBounds=a.projectedBounds);let d=h===c?Math.sin(h):Math.log(g/Math.cos(c))/Math.log(o(c)/o(h));1e-10>Math.abs(d)&&(d=1e-10*(i(d)||1)),this.n=d,this.c=g*Math.pow(o(h),d)/d}forward(a){let{c:l,n:h,projectedBounds:c}=this,g=a[0]*s,d=a[1]*s;l>0?d<-r+1e-6&&(d=-r+1e-6):d>r-1e-6&&(d=r-1e-6);let p=l/Math.pow(o(d),h),y=p*Math.sin(h*g)*63.78137,b=(l-p*Math.cos(h*g))*63.78137,x=[y,b];return c&&(yc.x2||bc.y2)&&(x.outside=!0),x}inverse(a){let{c:l,n:h}=this,c=a[0]/63.78137,g=l-a[1]/63.78137,d=i(h)*Math.sqrt(c*c+g*g),p=Math.atan2(c,Math.abs(g))*i(g);return g*h<0&&(p-=Math.PI*i(c)*i(g)),[p/h/s,(2*Math.atan(Math.pow(l/d,1/h))-r)/s]}}}),e(t,"Maps/Projections/EqualEarth.js",[],function(){let i=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(s){let r=Math.PI/180,o=Math.asin(i*Math.sin(s[1]*r)),a=o*o,l=a*a*a;return[s[0]*r*Math.cos(o)*74.03120656864502/(i*(1.340264+-.24331799999999998*a+l*(.0062510000000000005+.034164*a))),74.03120656864502*o*(1.340264+-.081106*a+l*(893e-6+.003796*a))]}inverse(s){let r=s[0]/74.03120656864502,o=s[1]/74.03120656864502,a=180/Math.PI,l=o,h,c,g,d;for(let b=0;b<12&&(c=(h=l*l)*h*h,g=l*(1.340264+-.081106*h+c*(893e-6+.003796*h))-o,l-=d=g/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(d)));++b);c=(h=l*l)*h*h;let p=a*i*r*(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h))/Math.cos(l),y=a*Math.asin(Math.sin(l)/i);return Math.abs(p)>180?[NaN,NaN]:[p,y]}}}),e(t,"Maps/Projections/Miller.js",[],function(){let i=Math.PI/4,s=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]*s*63.78137,79.7267125*Math.log(Math.tan(i+.4*r[1]*s))]}inverse(r){return[r[0]/63.78137/s,2.5*(Math.atan(Math.exp(.8*(r[1]/63.78137)))-i)/s]}}}),e(t,"Maps/Projections/Orthographic.js",[],function(){let i=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(s){let r=s[0],o=s[1]*i,a=[Math.cos(o)*Math.sin(r*i)*63.78460826781007,63.78460826781007*Math.sin(o)];return(r<-90||r>90)&&(a.outside=!0),a}inverse(s){let r=s[0]/63.78460826781007,o=s[1]/63.78460826781007,a=Math.sqrt(r*r+o*o),l=Math.asin(a),h=Math.sin(l);return[Math.atan2(r*h,a*Math.cos(l))/i,Math.asin(a&&o*h/a)/i]}}}),e(t,"Maps/Projections/WebMercator.js",[],function(){let i=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(s){let r=Math.sin(s[1]*i),o=[63.78137*s[0]*i,63.78137*Math.log((1+r)/(1-r))/2];return Math.abs(s[1])>this.maxLatitude&&(o.outside=!0),o}inverse(s){return[s[0]/(63.78137*i),(2*Math.atan(Math.exp(s[1]/63.78137))-Math.PI/2)/i]}}}),e(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(i,s,r,o,a){return{EqualEarth:s,LambertConformalConic:i,Miller:r,Orthographic:o,WebMercator:a}}),e(t,"Maps/Projection.js",[t["Core/Geometry/PolygonClip.js"],t["Maps/Projections/ProjectionRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{clipLineString:o,clipPolygon:a}=i,{clamp:l,erase:h}=r,c=2*Math.PI/360,g=b=>(b<-180&&(b+=360),b>180&&(b-=360),b),d=b=>(1-Math.cos(b))/2,p=(b,x)=>{let f=Math.cos,M=b[1]*c,L=b[0]*c,_=x[1]*c,w=x[0]*c;return d(_-M)+f(M)*f(_)*d(w-L)};class y{static add(x,f){y.registry[x]=f}static distance(x,f){let{atan2:M,sqrt:L}=Math,_=p(x,f);return 6371e3*(2*M(L(_),L(1-_)))}static geodesic(x,f,M,L=5e5){let{atan2:_,cos:w,sin:k,sqrt:z}=Math,O=y.distance,C=x[1]*c,A=x[0]*c,F=f[1]*c,S=f[0]*c,T=w(C)*w(A),D=w(F)*w(S),P=w(C)*k(A),m=w(F)*k(S),u=k(C),v=k(F),I=O(x,f),E=I/6371e3,R=k(E),j=Math.round(I/L),G=[];if(M&&G.push(x),j>1){let W=1/j;for(let N=W;N<.999;N+=W){let B=k((1-N)*E)/R,X=k(N*E)/R,V=B*T+X*D,H=B*P+X*m,K=_(B*u+X*v,z(V*V+H*H)),U=_(H,V);G.push([U/c,K/c])}}return M&&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 M=y.geodesic(x[f],x[f+1]);M.length&&x.splice(f+1,0,...M)}}static toString(x){let{name:f,rotation:M}=x||{};return[f,M&&M.join(",")].join(";")}constructor(x={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=x;let{name:f,projectedBounds:M,rotation:L}=x;this.rotator=L?this.getRotator(L):void 0;let _=f?y.registry[f]:void 0;_&&(this.def=new _(x));let{def:w,rotator:k}=this;w&&(this.maxLatitude=w.maxLatitude||90,this.hasGeoProjection=!0),k&&w?(this.forward=z=>w.forward(k.forward(z)),this.inverse=z=>k.inverse(w.inverse(z))):w?(this.forward=z=>w.forward(z),this.inverse=z=>w.inverse(z)):k&&(this.forward=k.forward,this.inverse=k.inverse),this.bounds=M==="world"?w&&w.bounds:M}lineIntersectsBounds(x){let{x1:f,x2:M,y1:L,y2:_}=this.bounds||{},w=(O,C,A)=>{let[F,S]=O,T=C?0:1;if(typeof A=="number"&&F[C]>=A!=S[C]>=A){let D=(A-F[C])/(S[C]-F[C]),P=F[T]+D*(S[T]-F[T]);return C?[P,A]:[A,P]}},k,z=x[0];return((k=w(x,0,f))||(k=w(x,0,M)))&&(z=k,x[1]=k),((k=w(x,1,L))||(k=w(x,1,_)))&&(z=k),z}getRotator(x){let f=x[0]*c,M=(x[1]||0)*c,L=(x[2]||0)*c,_=Math.cos(M),w=Math.sin(M),k=Math.cos(L),z=Math.sin(L);if(f!==0||M!==0||L!==0)return{forward:O=>{let C=O[0]*c+f,A=O[1]*c,F=Math.cos(A),S=Math.cos(C)*F,T=Math.sin(C)*F,D=Math.sin(A),P=D*_+S*w;return[Math.atan2(T*k-P*z,S*_-D*w)/c,Math.asin(P*k+T*z)/c]},inverse:O=>{let C=O[0]*c,A=O[1]*c,F=Math.cos(A),S=Math.cos(C)*F,T=Math.sin(C)*F,D=Math.sin(A),P=D*k-T*z;return[(Math.atan2(T*k+D*z,S*_+P*w)-f)/c,Math.asin(P*_-S*w)/c]}}}forward(x){return x}inverse(x){return x}cutOnAntimeridian(x,f){let M,L=[],_=[x];for(let w=0,k=x.length;w90)&&(A<-90||A>90)&&C>0!=A>0){let F=l((180-(C+360)%360)/((A+360)%360-(C+360)%360),0,1),S=O[1]+F*(z[1]-O[1]);L.push({i:w,lat:S,direction:C<0?1:-1,previousLonLat:O,lonLat:z})}}if(L.length)if(f){L.length%2==1&&(M=L.slice().sort((k,z)=>Math.abs(z.lat)-Math.abs(k.lat))[0],h(L,M));let w=L.length-2;for(;w>=0;){let k=L[w].i,z=g(180+1e-6*L[w].direction),O=g(180-1e-6*L[w].direction),C=x.splice(k,L[w+1].i-k,...y.geodesic([z,L[w].lat],[z,L[w+1].lat],!0));C.push(...y.geodesic([O,L[w+1].lat],[O,L[w].lat],!0)),_.push(C),w-=2}if(M)for(let k=0;k<_.length;k++){let{direction:z,lat:O}=M,C=_[k],A=C.indexOf(M.lonLat);if(A>-1){let F=(O<0?-1:1)*this.maxLatitude,S=g(180+1e-6*z),T=g(180-1e-6*z),D=y.geodesic([S,O],[S,F],!0);for(let P=S+120*z;P>-180&&P<180;P+=120*z)D.push([P,F]);D.push(...y.geodesic([T,F],[T,M.lat],!0)),C.splice(A,0,...D);break}}}else{let w=L.length;for(;w--;){let k=L[w].i,z=x.splice(k,x.length,[g(180+1e-6*L[w].direction),L[w].lat]);z.unshift([g(180-1e-6*L[w].direction),L[w].lat]),_.push(z)}}return _}path(x){let f,{bounds:M,def:L,rotator:_}=this,w=[],k=x.type==="Polygon"||x.type==="MultiPolygon",z=this.hasGeoProjection,O=!L||L.antimeridianCutting!==!1,C=O?_:void 0,A=O&&L||this;M&&(f=[[M.x1,M.y1],[M.x2,M.y1],[M.x2,M.y2],[M.x1,M.y2]]);let F=S=>{let T=S.map(P=>{if(O){C&&(P=C.forward(P));let m=P[0];1e-6>Math.abs(m-180)&&(m=m<180?179.999999:180.000001),P=[m,P[1]]}return P}),D=[T];z&&(y.insertGeodesics(T),O&&(D=this.cutOnAntimeridian(T,k))),D.forEach(P=>{let m,u;if(P.length<2)return;let v=!1,I=!1,E=W=>{v?w.push(["L",W[0],W[1]]):(w.push(["M",W[0],W[1]]),v=!0)},R=!1,j=!1,G=P.map(W=>{let N=A.forward(W);return N.outside?R=!0:j=!0,N[1]===1/0?N[1]=1e10:N[1]===-1/0&&(N[1]=-1e10),N});if(O){if(k&&G.push(G[0]),R){if(!j)return;if(f){if(k)G=a(G,f);else if(M){o(G,f).forEach(W=>{v=!1,W.forEach(E)});return}}}G.forEach(E)}else for(let W=0;WE(A.forward(X))):v=!1),E(B),u=N,I=!1)}})};return x.type==="LineString"?F(x.coordinates):x.type==="MultiLineString"?x.coordinates.forEach(S=>F(S)):x.type==="Polygon"?(x.coordinates.forEach(S=>F(S)),w.length&&w.push(["Z"])):x.type==="MultiPolygon"&&(x.coordinates.forEach(S=>{S.forEach(T=>F(T))}),w.length&&w.push(["Z"])),w}}return y.registry=s,y}),e(t,"Maps/MapView.js",[t["Core/Globals.js"],t["Maps/MapViewDefaults.js"],t["Maps/GeoJSONComposition.js"],t["Core/Geometry/GeometryUtilities.js"],t["Maps/MapUtilities.js"],t["Maps/Projection.js"],t["Core/Utilities.js"]],function(i,s,r,o,a,l,h){let{composed:c}=i,{pointInPolygon:g}=o,{topo2geo:d}=r,{boundsFromPath:p}=a,{addEvent:y,clamp:b,crisp:x,fireEvent:f,isArray:M,isNumber:L,isObject:_,isString:w,merge:k,pick:z,pushUnique:O,relativeLength:C}=h,A={};function F(P,m){let{width:u,height:v}=m;return Math.log(400.979322/Math.max((P.x2-P.x1)/(u/256),(P.y2-P.y1)/(v/256)))/Math.log(2)}function S(P){P.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,P.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class T{static compose(m){O(c,"MapView")&&(A=m.maps,y(m,"afterInit",function(){this.mapView=new T(this,this.options.mapView)},{order:0}),y(m,"addSeriesAsDrilldown",S),y(m,"afterDrillUp",S))}static compositeBounds(m){if(m.length)return m.slice(1).reduce((u,v)=>(u.x1=Math.min(u.x1,v.x1),u.y1=Math.min(u.y1,v.y1),u.x2=Math.max(u.x2,v.x2),u.y2=Math.max(u.y2,v.y2),u),k(m[0]))}static mergeInsets(m,u){let v=E=>{let R={};return E.forEach((j,G)=>{R[j&&j.id||`i${G}`]=j}),R},I=k(v(m),v(u));return Object.keys(I).map(E=>I[E])}constructor(m,u){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof D||this.recommendMapView(m,[m.options.chart.map,...(m.options.series||[]).map(R=>R.mapData)]),this.userOptions=u||{};let v=k(s,this.recommendedMapView,u),I=this.recommendedMapView?.insets,E=u&&u.insets;I&&E&&(v.insets=T.mergeInsets(I,E)),this.chart=m,this.center=v.center,this.options=v,this.projection=new l(v.projection),this.playingField=m.plotBox,this.zoom=v.zoom||0,this.minZoom=v.minZoom,this.createInsets(),this.eventsToUnbind.push(y(m,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&L(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&k(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let m=this.options,u=m.insets;u&&u.forEach(v=>{let I=new D(this,k(m.insetOptions,v));this.insets.push(I)})}fitToBounds(m,u,v=!0,I){let E=m||this.getProjectedBounds();if(E){let R=z(u,m?0:this.options.padding),j=this.getField(!1),G=M(R)?R:[R,R,R,R];this.padding=[C(G[0],j.height),C(G[1],j.width),C(G[2],j.height),C(G[3],j.width)],this.playingField=this.getField();let W=F(E,this.playingField);m||(this.minZoom=W);let N=this.projection.inverse([(E.x2+E.x1)/2,(E.y2+E.y1)/2]);this.setView(N,W,v,I)}}getField(m=!0){let u=m?this.padding:[0,0,0,0];return{x:u[3],y:u[0],width:this.chart.plotWidth-u[1]-u[3],height:this.chart.plotHeight-u[0]-u[2]}}getGeoMap(m){if(w(m))return A[m]&&A[m].type==="Topology"?d(A[m]):A[m];if(_(m,!0)){if(m.type==="FeatureCollection")return m;if(m.type==="Topology")return d(m)}}getMapBBox(){let m=this.getProjectedBounds(),u=this.getScale();if(m){let v=this.padding,I=this.projectedUnitsToPixels({x:m.x1,y:m.y2});return{width:(m.x2-m.x1)*u+v[1]+v[3],height:(m.y2-m.y1)*u+v[0]+v[2],x:I.x-v[3],y:I.y-v[0]}}}getProjectedBounds(){let m=this.projection,u=this.chart.series.reduce((I,E)=>{let R=E.getProjectedBounds&&E.getProjectedBounds();return R&&E.options.affectsMapView!==!1&&I.push(R),I},[]),v=this.options.fitToGeometry;if(v){if(!this.fitToGeometryCache)if(v.type==="MultiPoint"){let I=v.coordinates.map(j=>m.forward(j)),E=I.map(j=>j[0]),R=I.map(j=>j[1]);this.fitToGeometryCache={x1:Math.min.apply(0,E),x2:Math.max.apply(0,E),y1:Math.min.apply(0,R),y2:Math.max.apply(0,R)}}else this.fitToGeometryCache=p(m.path(v));return this.fitToGeometryCache}return this.projection.bounds||T.compositeBounds(u)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:m,y:u,width:v,height:I}=this.playingField,E=this.projection.forward(this.center),R=this.projection.hasCoordinates?-1:1,j=this.getScale(),G=j*R,W=m+v/2-E[0]*j,N=u+I/2-E[1]*G;return{scaleX:j,scaleY:G,translateX:W,translateY:N}}lonLatToPixels(m){let u=this.lonLatToProjectedUnits(m);if(u)return this.projectedUnitsToPixels(u)}lonLatToProjectedUnits(m){let u=this.chart,v=u.mapTransforms;if(v){for(let E in v)if(Object.hasOwnProperty.call(v,E)&&v[E].hitZone){let R=u.transformFromLatLon(m,v[E]);if(R&&g(R,v[E].hitZone.coordinates[0]))return R}return u.transformFromLatLon(m,v.default)}for(let E of this.insets)if(E.options.geoBounds&&g({x:m.lon,y:m.lat},E.options.geoBounds.coordinates[0])){let R=E.projection.forward([m.lon,m.lat]),j=E.projectedUnitsToPixels({x:R[0],y:R[1]});return this.pixelsToProjectedUnits(j)}let I=this.projection.forward([m.lon,m.lat]);if(!I.outside)return{x:I[0],y:I[1]}}projectedUnitsToLonLat(m){let u=this.chart,v=u.mapTransforms;if(v){for(let R in v)if(Object.hasOwnProperty.call(v,R)&&v[R].hitZone&&g(m,v[R].hitZone.coordinates[0]))return u.transformToLatLon(m,v[R]);return u.transformToLatLon(m,v.default)}let I=this.projectedUnitsToPixels(m);for(let R of this.insets)if(R.hitZone&&g(I,R.hitZone.coordinates[0])){let j=R.pixelsToProjectedUnits(I),G=R.projection.inverse([j.x,j.y]);return{lon:G[0],lat:G[1]}}let E=this.projection.inverse([m.x,m.y]);return{lon:E[0],lat:E[1]}}recommendMapView(m,u,v=!1){this.recommendedMapView={};let I=u.map(j=>this.getGeoMap(j)),E=[];I.forEach(j=>{if(j&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=j["hc-recommended-mapview"]||{}),j.bbox)){let[G,W,N,B]=j.bbox;E.push({x1:G,y1:W,x2:N,y2:B})}});let R=E.length&&T.compositeBounds(E);f(this,"onRecommendMapView",{geoBounds:R,chart:m},function(){if(R&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:j,y1:G,x2:W,y2:N}=R;this.recommendedMapView.projection=W-j>180&&N-G>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[G,N],rotation:[-(j+W)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=I[0],v&&m.hasRendered&&!m.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(m){this.chart.series.forEach(u=>{u.useMapGeometry&&(u.isDirty=!0)}),this.chart.redraw(m)}setView(m,u,v=!0,I){m&&(this.center=m),typeof u=="number"&&(typeof this.minZoom=="number"&&(u=Math.max(u,this.minZoom)),typeof this.options.maxZoom=="number"&&(u=Math.min(u,this.options.maxZoom)),L(u)&&(this.zoom=u));let E=this.getProjectedBounds();if(E){let R=this.projection.forward(this.center),{x:j,y:G,width:W,height:N}=this.playingField,B=this.getScale(),X=this.projectedUnitsToPixels({x:E.x1,y:E.y1}),V=this.projectedUnitsToPixels({x:E.x2,y:E.y2}),H=[(E.x1+E.x2)/2,(E.y1+E.y2)/2];if(!this.chart.series.some(K=>K.isDrilling)){let K=X.x,U=V.y,Y=V.x,Z=X.y;Y-Kj+W&&K>j&&(R[0]+=Math.min(Y-W-j,K-j)/B),Z-UG+N&&U>G&&(R[1]-=Math.min(Z-N-G,U-G)/B),this.center=this.projection.inverse(R)}this.insets.forEach(K=>{K.options.field&&(K.hitZone=K.getHitZone(),K.playingField=K.getField())}),this.render()}f(this,"afterSetView"),v&&this.redraw(I)}projectedUnitsToPixels(m){let u=this.getScale(),v=this.projection.forward(this.center),I=this.playingField,E=I.x+I.width/2,R=I.y+I.height/2;return{x:E-u*(v[0]-m.x),y:R+u*(v[1]-m.y)}}pixelsToLonLat(m){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(m))}pixelsToProjectedUnits(m){let{x:u,y:v}=m,I=this.getScale(),E=this.projection.forward(this.center),R=this.playingField,j=R.x+R.width/2,G=R.y+R.height/2;return{x:E[0]+(u-j)/I,y:E[1]-(v-G)/I}}setUpEvents(){let m,u,v,{chart:I}=this,E=R=>{let{lastTouches:j,pinchDown:G}=I.pointer,W=this.projection,N=R.touches,{mouseDownX:B,mouseDownY:X}=I,V=0;if(G?.length===1?(B=G[0].chartX,X=G[0].chartY):G?.length===2&&(B=(G[0].chartX+G[1].chartX)/2,X=(G[0].chartY+G[1].chartY)/2),N?.length===2&&j&&(V=Math.log(Math.sqrt(Math.pow(j[0].chartX-j[1].chartX,2)+Math.pow(j[0].chartY-j[1].chartY,2))/Math.sqrt(Math.pow(N[0].chartX-N[1].chartX,2)+Math.pow(N[0].chartY-N[1].chartY,2)))/Math.log(.5)),L(B)&&L(X)){let H=`${B},${X}`,{chartX:K,chartY:U}=R.originalEvent;N?.length===2&&(K=(N[0].chartX+N[1].chartX)/2,U=(N[0].chartY+N[1].chartY)/2),H!==u&&(u=H,m=this.projection.forward(this.center),v=(this.projection.options.rotation||[0,0]).slice());let Y=W.def&&W.def.bounds,Z=Y&&F(Y,this.playingField)||-1/0;if(W.options.name==="Orthographic"&&2>(N?.length||0)&&(this.minZoom||1/0)<1.3*Z){let q=440/(this.getScale()*Math.min(I.plotWidth,I.plotHeight));if(v){let J=(B-K)*q-v[0],Q=b(-v[1]-(X-U)*q,-80,80),$=this.zoom;this.update({projection:{rotation:[-J,-Q]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=$,I.redraw(!1)}}else if(L(K)&&L(U)){let q=this.getScale(),J=this.projection.hasCoordinates?1:-1,Q=this.projection.inverse([m[0]+(B-K)/q,m[1]-(X-U)/q*J]);isNaN(Q[0]+Q[1])||this.zoomBy(V,Q,void 0,!1)}R.preventDefault()}};y(I,"pan",E),y(I,"touchpan",E),y(I,"selection",R=>{if(R.resetSelection)this.zoomBy();else{let j=R.x-I.plotLeft,G=R.y-I.plotTop,{y:W,x:N}=this.pixelsToProjectedUnits({x:j,y:G}),{y:B,x:X}=this.pixelsToProjectedUnits({x:j+R.width,y:G+R.height});this.fitToBounds({x1:N,y1:W,x2:X,y2:B},void 0,!0,!R.originalEvent.touches&&void 0),/^touch/.test(R.originalEvent.type)||I.showResetZoom(),R.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(m,u=!0,v){let I=m.projection,E=I&&l.toString(I)!==l.toString(this.options.projection),R=!1;k(!0,this.userOptions,m),k(!0,this.options,m),"insets"in m&&(this.insets.forEach(j=>j.destroy()),this.insets.length=0,R=!0),(E||"fitToGeometry"in m)&&delete this.fitToGeometryCache,(E||R)&&(this.chart.series.forEach(j=>{let G=j.transformGroups;if(j.clearBounds&&j.clearBounds(),j.isDirty=!0,j.isDirtyData=!0,R&&G)for(;G.length>1;){let W=G.pop();W&&W.destroy()}}),E&&(this.projection=new l(this.options.projection)),R&&this.createInsets(),!m.center&&Object.hasOwnProperty.call(m,"zoom")&&!L(m.zoom)&&this.fitToBounds(void 0,void 0,!1)),m.center||L(m.zoom)?this.setView(this.options.center,m.zoom,!1):"fitToGeometry"in m&&this.fitToBounds(void 0,void 0,!1),u&&this.chart.redraw(v)}zoomBy(m,u,v,I){let E=this.chart,R=this.projection.forward(this.center);if(typeof m=="number"){let j,G,W,N=this.zoom+m;if(v){let[B,X]=v,V=this.getScale(),H=B-E.plotLeft-E.plotWidth/2,K=X-E.plotTop-E.plotHeight/2;G=R[0]+H/V,W=R[1]+K/V}if(typeof G=="number"&&typeof W=="number"){let B=1-Math.pow(2,this.zoom)/Math.pow(2,N),X=R[0]-G,V=R[1]-W;R[0]-=X*B,R[1]+=V*B,j=this.projection.inverse(R)}this.setView(u||j,N,void 0,I)}else this.fitToBounds(void 0,void 0,void 0,I)}}class D extends T{constructor(m,u){if(super(m.chart,u),this.id=u.id,this.mapView=m,this.options=k({center:[0,0]},m.options.insetOptions,u),this.allBounds=[],this.options.geoBounds){let v=m.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=p(v),this.geoBoundsProjectedPolygon=v.map(I=>[I[1]||0,I[2]||0])}}getField(m=!0){let u=this.hitZone;if(u){let v=m?this.padding:[0,0,0,0],I=u.coordinates[0],E=I.map(B=>B[0]),R=I.map(B=>B[1]),j=Math.min.apply(0,E)+v[3],G=Math.max.apply(0,E)-v[1],W=Math.min.apply(0,R)+v[0],N=Math.max.apply(0,R)-v[2];if(L(j)&&L(W))return{x:j,y:W,width:G-j,height:N-W}}return super.getField.call(this,m)}getHitZone(){let{chart:m,mapView:u,options:v}=this,{coordinates:I}=v.field||{};if(I){let E=I[0];if(v.units==="percent"){let R=v.relativeTo==="mapBoundingBox"&&u.getMapBBox()||k(m.plotBox,{x:0,y:0});E=E.map(j=>[C(`${j[0]}%`,R.width,R.x),C(`${j[1]}%`,R.height,R.y)])}return{type:"Polygon",coordinates:[E]}}}getProjectedBounds(){return T.compositeBounds(this.allBounds)}isInside(m){let{geoBoundsProjectedBox:u,geoBoundsProjectedPolygon:v}=this;return!!(u&&m.x>=u.x1&&m.x<=u.x2&&m.y>=u.y1&&m.y<=u.y2&&v&&g(m,v))}render(){let{chart:m,mapView:u,options:v}=this,I=v.borderPath||v.field;if(I&&u.group){let E=!0;this.border||(this.border=m.renderer.path().addClass("highcharts-mapview-inset-border").add(u.group),E=!1),m.styledMode||this.border.attr({stroke:v.borderColor,"stroke-width":v.borderWidth});let R=this.border.strokeWidth(),j=v.relativeTo==="mapBoundingBox"&&u.getMapBBox()||u.playingField,G=(I.coordinates||[]).reduce((W,N)=>N.reduce((B,X,V)=>{let[H,K]=X;return v.units==="percent"&&(H=m.plotLeft+C(`${H}%`,j.width,j.x),K=m.plotTop+C(`${K}%`,j.height,j.y)),H=x(H,R),K=x(K,R),B.push(V===0?["M",H,K]:["L",H,K]),B},W),[]);this.border[E?"animate":"attr"]({d:G})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(m=>m())}setUpEvents(){}}return T}),e(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(i,s,r,o,a,l,h,c,g,d){let{animObject:p,stop:y}=i,{noop:b}=o,{splitPath:x}=a,{column:f,scatter:M}=g.seriesTypes,{extend:L,find:_,fireEvent:w,getNestedProperty:k,isArray:z,defined:O,isNumber:C,isObject:A,merge:F,objectEach:S,pick:T,splat:D}=d;class P extends M{constructor(){super(...arguments),this.processedData=[]}animate(u){let{chart:v,group:I}=this,E=p(this.options.animation);u?I.attr({translateX:v.plotLeft+v.plotWidth/2,translateY:v.plotTop+v.plotHeight/2,scaleX:.001,scaleY:.001}):I.animate({translateX:v.plotLeft,translateY:v.plotTop,scaleX:1,scaleY:1},E)}clearBounds(){this.points.forEach(u=>{delete u.bounds,delete u.insetIndex,delete u.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 u=this,{chart:v,group:I,transformGroups:E=[]}=this,{mapView:R,renderer:j}=v;if(R){this.transformGroups=E,E[0]||(E[0]=j.g().add(I));for(let G=0,W=R.insets.length;G{let{graphic:W}=G;G.group=E[typeof G.insetIndex=="number"?G.insetIndex+1:0],W&&W.parentGroup!==G.group&&W.add(G.group)}),f.prototype.drawPoints.apply(this),this.points.forEach(G=>{let W=G.graphic;if(W){let N=W.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&&W.addClass(B),v.styledMode&&W.css(this.pointAttribs(G,G.selected&&"select"||void 0)),W.attr({visibility:!G.visible&&(G.visible||G.isNull)?"hidden":"inherit"}),W.animate=function(X,V,H){let K=C(X["stroke-width"])&&!C(W["stroke-width"]),U=C(W["stroke-width"])&&!C(X["stroke-width"]);if(K||U){let Y=T(u.getStrokeWidth(u.options),1)/(v.mapView&&v.mapView.getScale()||1);K&&(W["stroke-width"]=Y),U&&(X["stroke-width"]=Y)}return N.call(W,X,V,U?function(){W.element.removeAttribute("stroke-width"),delete W["stroke-width"],H&&H.apply(this,arguments)}:H)}}})),E.forEach((G,W)=>{let N=(W===0?R:R.insets[W-1]).getSVGTransform(),B=T(this.getStrokeWidth(this.options),1),X=N.scaleX,V=N.scaleY>0?1:-1,H=K=>{(u.points||[]).forEach(U=>{let Y,Z=U.graphic;Z&&Z["stroke-width"]&&(Y=this.getStrokeWidth(U.options))&&Z.attr({"stroke-width":Y/K})})};if(j.globalAnimation&&v.hasRendered&&R.allowTransformAnimation){let K=Number(G.attr("translateX")),U=Number(G.attr("translateY")),Y=Number(G.attr("scaleX")),Z=(Q,$)=>{let tt=Y+(X-Y)*$.pos;G.attr({translateX:K+(N.translateX-K)*$.pos,translateY:U+(N.translateY-U)*$.pos,scaleX:tt,scaleY:tt*V,"stroke-width":B/tt}),H(tt)},q=F(p(j.globalAnimation)),J=q.step;q.step=function(){J&&J.apply(this,arguments),Z.apply(this,arguments)},G.attr({animator:0}).animate({animator:1},q,function(){typeof j.globalAnimation!="boolean"&&j.globalAnimation.complete&&j.globalAnimation.complete({applyDrilldown:!0}),w(this,"mapZoomComplete")}.bind(this))}else y(G),G.attr(F(N,{"stroke-width":B/X})),H(X)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:u,projection:v}=this.chart.mapView,I=[];(this.points||[]).forEach(E=>{if(E.path||E.geometry){if(typeof E.path=="string"?E.path=x(E.path):z(E.path)&&E.path[0]==="M"&&(E.path=this.chart.renderer.pathToSegments(E.path)),!E.bounds){let R=E.getProjectedBounds(v);if(R){E.labelrank=T(E.labelrank,(R.x2-R.x1)*(R.y2-R.y1));let{midX:j,midY:G}=R;if(u&&C(j)&&C(G)){let W=_(u,N=>N.isInside({x:j,y:G}));W&&(delete E.projectedPath,(R=E.getProjectedBounds(W.projection))&&W.allBounds.push(R),E.insetIndex=u.indexOf(W))}E.bounds=R}}E.bounds&&E.insetIndex===void 0&&I.push(E.bounds)}}),this.bounds=c.compositeBounds(I)}return this.bounds}getStrokeWidth(u){let v=this.pointAttrToOptions;return u[v&&v["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(u,v){let{mapView:I,styledMode:E}=u.series.chart,R=E?this.colorAttribs(u):f.prototype.pointAttribs.call(this,u,v),j=this.getStrokeWidth(u.options);if(v){let W=F(this.options.states&&this.options.states[v],u.options.states&&u.options.states[v]||{}),N=this.getStrokeWidth(W);O(N)&&(j=N),R.stroke=W.borderColor??u.color}j&&I&&(j/=I.getScale());let G=this.getStrokeWidth(this.options);return R.dashstyle&&I&&C(G)&&(j=G/I.getScale()),u.visible||(R.fill=this.options.nullColor),O(j)?R["stroke-width"]=j:delete R["stroke-width"],R["stroke-linecap"]=R["stroke-linejoin"]=this.options.linecap,R}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(u,v=!0,I,E){delete this.bounds,super.setData(u,!1,void 0,E),this.processData(),this.generatePoints(),v&&this.chart.redraw(I)}processData(){let u,v,I,E=this.options,R=E.data,j=this.chart,G=j.options.chart,W=this.joinBy,N=E.keys||this.pointArrayMap,B=[],X={},V=this.chart.mapView,H=V&&(A(E.mapData,!0)?V.getGeoMap(E.mapData):V.geoMap),K=j.mapTransforms=G.mapTransforms||H&&H["hc-transform"]||j.mapTransforms;K&&S(K,Y=>{Y.rotation&&(Y.cosAngle=Math.cos(Y.rotation),Y.sinAngle=Math.sin(Y.rotation))}),z(E.mapData)?I=E.mapData:H&&H.type==="FeatureCollection"&&(this.mapTitle=H.title,I=o.geojson(H,this.type,this)),this.processedData=[];let U=this.processedData;if(R){let Y;for(let Z=0,q=R.length;ZN.length&&typeof Y[0]=="string"&&(U[Z]["hc-key"]=Y[0],++J);for(let Q=0;Q0?l.prototype.setNestedProperty(U[Z],Y[J],N[Q]):U[Z][N[Q]]=Y[J])}else U[Z]=R[Z];W&&W[0]==="_i"&&(U[Z]._i=Z)}}if(I){this.mapData=I,this.mapMap={};for(let Y=0;Y{let q=k(Y,Z);X[q]&&B.push(X[q])})}if(E.allAreas){if(W[1]){let Z=W[1];U.forEach(q=>{B.push(k(Z,q))})}let Y="|"+B.map(function(Z){return Z&&Z[W[0]]}).join("|")+"|";I.forEach(Z=>{W[0]&&Y.indexOf("|"+Z[W[0]]+"|")!==-1||U.push(F(Z,{value:null}))})}}this.processedXData=Array(U.length)}setOptions(u){let v=super.setOptions(u),I=v.joinBy;return v.joinBy===null&&(I="_i"),(I=this.joinBy=D(I))[1]||(I[1]=I[0]),v}translate(){let u=this.doFullTranslate(),v=this.chart.mapView,I=v&&v.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!v||v.userOptions.center||C(v.userOptions.zoom)||v.zoom!==v.minZoom?this.getProjectedBounds():v.fitToBounds(void 0,void 0,!1)),v){let E=v.getSVGTransform();this.points.forEach(R=>{let j=C(R.insetIndex)&&v.insets[R.insetIndex].getSVGTransform()||E;j&&R.bounds&&C(R.bounds.midX)&&C(R.bounds.midY)&&(R.plotX=R.bounds.midX*j.scaleX+j.translateX,R.plotY=R.bounds.midY*j.scaleY+j.translateY),u&&(R.shapeType="path",R.shapeArgs={d:l.getProjectedPath(R,I)}),R.hiddenInDataClass||(R.projectedPath&&!R.projectedPath.length?R.setVisible(!1):R.visible||R.setVisible(!0))})}w(this,"afterTranslate")}update(u){u.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((v,I)=>I===this._i?u.mapData:v.mapData)],!0),super.update.apply(this,arguments)}}return P.defaultOptions=F(M.defaultOptions,h),L(P.prototype,{type:"map",axisTypes:s.seriesMembers.axisTypes,colorAttribs:s.seriesMembers.colorAttribs,colorKey:s.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,forceDL:!0,getCenter:r.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:s.seriesMembers.parallelArrays,pointArrayMap:s.seriesMembers.pointArrayMap,pointClass:l,preserveAspectRatio:!0,searchPoint:b,trackerGroups:s.seriesMembers.trackerGroups,useMapGeometry:!0}),s.compose(P),g.registerSeriesType("map",P),P}),e(t,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),e(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(i,s,r,o){let{extend:a,merge:l}=o;class h extends s{pointAttribs(g,d){let p=super.pointAttribs(g,d);return p.fill=this.options.fillColor,p}}return h.defaultOptions=l(s.defaultOptions,i),a(h.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),r.registerSeriesType("mapline",h),h}),e(t,"Series/MapPoint/MapPointPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:r}=i.seriesTypes,{isNumber:o}=s;class a extends r.prototype.pointClass{isValid(){return!!(this.options.geometry||o(this.x)&&o(this.y)||o(this.options.lon)&&o(this.options.lat))}}return a}),e(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"}}),e(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(i,s,r,o,a,l){let{noop:h}=i,{map:c,scatter:g}=o.seriesTypes,{extend:d,fireEvent:p,isNumber:y,merge:b}=l;class x extends g{constructor(){super(...arguments),this.clearBounds=c.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(M){let L=this.chart.mapView;if(L){let{geometry:_,lon:w,lat:k}=M,z=_&&_.type==="Point"&&_.coordinates;if(y(w)&&y(k)&&(z=[w,k]),z)return L.lonLatToProjectedUnits({lon:z[0],lat:z[1]})}}translate(){let M=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),M){let L=M.getSVGTransform(),{hasCoordinates:_}=M.projection;this.points.forEach(w=>{let k,{x:z,y:O}=w,C=y(w.insetIndex)&&M.insets[w.insetIndex].getSVGTransform()||L,A=this.projectPoint(w.options)||w.properties&&this.projectPoint(w.properties);if(A?(z=A.x,O=A.y):w.bounds&&(z=w.bounds.midX,O=w.bounds.midY,C&&y(z)&&y(O)&&(w.plotX=z*C.scaleX+C.translateX,w.plotY=O*C.scaleY+C.translateY,k=!0)),y(z)&&y(O)){if(!k){let F=M.projectedUnitsToPixels({x:z,y:O});w.plotX=F.x,w.plotY=_?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=b(g.defaultOptions,r),a.prototype.symbols.mapmarker=(f,M,L,_,w)=>{let k,z,O=w&&w.context==="legend";O?(k=f+L/2,z=M+_):w&&typeof w.anchorX=="number"&&typeof w.anchorY=="number"?(k=w.anchorX,z=w.anchorY):(k=f+L/2,z=M+_/2,M-=_);let C=O?_/3:_/2;return[["M",k,z],["C",k,z,k-C,M+1.5*C,k-C,M+C],["A",C,C,1,1,1,k+C,M+C],["C",k+C,M+1.5*C,k,z,k,z],["Z"]]},d(x.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:s,searchPoint:h,useMapGeometry:!0}),o.registerSeriesType("mappoint",x),x}),e(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}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{parse:a}=i,{noop:l}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:d,pick:p,stableSort:y}=o;return class{constructor(b,x){this.setState=l,this.init(b,x)}init(b,x){this.options=b,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(b){b.splice(this.options.legendIndex,0,this)}drawLegendSymbol(b){let x,f=p(b.options.itemDistance,20),M=this.legendItem||{},L=this.options,_=L.ranges,w=L.connectorDistance;if(!_||!_.length||!g(_[0].value)){b.options.bubbleLegend.autoRanges=!0;return}y(_,function(C,A){return A.value-C.value}),this.ranges=_,this.setOptions(),this.render();let k=this.getMaxLabelSize(),z=this.ranges[0].radius,O=2*z;x=(x=w-z+k.width)>0?x:0,this.maxLabel=k,this.movementX=L.labels.align==="left"?x:0,M.labelWidth=O+x+f,M.labelHeight=O+k.height/2}setOptions(){let b=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],M=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},_={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},k=f.options.marker.fillOpacity,z=this.chart.styledMode;b.forEach(function(O,C){z||(L.stroke=p(O.borderColor,x.borderColor,f.color),L.fill=p(O.color,x.color,k!==1?a(f.color).setOpacity(k).get("rgba"):f.color),_.stroke=p(O.connectorColor,x.connectorColor,f.color)),b[C].radius=this.getRangeRadius(O.value),b[C]=d(b[C],{center:b[0].radius-b[C].radius+M}),z||d(!0,b[C],{bubbleAttribs:d(L),connectorAttribs:d(_),labelAttribs:w})},this)}getRangeRadius(b){let x=this.options,f=this.options.seriesIndex,M=this.chart.series[f],L=x.ranges[0].value,_=x.ranges[x.ranges.length-1].value,w=x.minSize,k=x.maxSize;return M.getRadius.call(this,_,L,w,k,b)}render(){let b=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let M of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),b.symbol=x.g("bubble-legend"),b.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),b.symbol.translateX=0,b.symbol.translateY=0,b.symbol.add(b.label),b.label.add(b.group),this.ranges))M.value>=f&&this.renderRange(M);this.hideOverlappingLabels()}renderRange(b){let x=this.ranges[0],f=this.legend,M=this.options,L=M.labels,_=this.chart,w=_.series[M.seriesIndex],k=_.renderer,z=this.symbols,O=z.labels,C=b.center,A=Math.abs(b.radius),F=M.connectorDistance||0,S=L.align,T=f.options.rtl,D=M.borderWidth,P=M.connectorWidth,m=x.radius||0,u=C-A-D/2+P/2,v=(u%1?1:.5)-(P%2?0:.5),I=k.styledMode,E=T||S==="left"?-F:F;S==="center"&&(E=0,M.connectorDistance=0,b.labelAttribs.align="center"),z.bubbleItems.push(k.circle(m,C+v,A).attr(I?{}:b.bubbleAttribs).addClass((I?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(M.className||"")).add(this.legendItem.symbol)),z.connectors.push(k.path(k.crispLine([["M",m,u],["L",m+E,u]],M.connectorWidth)).attr(I?{}:b.connectorAttribs).addClass((I?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(M.connectorClassName||"")).add(this.legendItem.symbol));let R=k.text(this.formatLabel(b)).attr(I?{}:b.labelAttribs).css(I?{}:L.style).addClass("highcharts-bubble-legend-labels "+(M.labels.className||"")).add(this.legendItem.symbol),j={x:m+E+M.labels.x,y:u+M.labels.y+.4*R.getBBox().height};R.attr(j),O.push(R),R.placed=!0,R.alignAttr=j}getMaxLabelSize(){let b,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),b=b?x.width>b.width?x:b:x}),b||{}}formatLabel(b){let x=this.options,f=x.labels.formatter,M=x.labels.format,{numberFormatter:L}=this.chart;return M?s.format(M,b):f?f.call(b):L(b.value,1)}hideOverlappingLabels(){let b=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(b.hideOverlappingLabels(f.labels),f.labels.forEach(function(M,L){M.newOpacity?M.newOpacity!==M.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let b=this.legend.bubbleLegend,x=b.chart.series,f=b.options.ranges,M,L,_=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(k){k.isBubble&&!k.ignoreSeries&&(L=k.zData.filter(g)).length&&(_=p(k.options.zMin,Math.min(_,Math.max(c(L),k.options.displayNegative===!1?k.options.zThreshold:-Number.MAX_VALUE))),w=p(k.options.zMax,Math.max(w,h(L))))}),M=_===w?[{value:w}]:[{value:_},{value:(_+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&M.reverse(),M.forEach(function(k,z){f&&f[z]&&(M[z]=d(f[z],k))}),M}predictBubbleSizes(){let b=this.chart,x=b.legend.options,f=x.floating,M=x.layout==="horizontal",L=M?b.legend.lastLineHeight:0,_=b.plotSizeX,w=b.plotSizeY,k=b.series[this.options.seriesIndex],z=k.getPxExtremes(),O=Math.ceil(z.minPxSize),C=Math.ceil(z.maxPxSize),A=Math.min(w,_),F,S=k.options.maxSize;return f||!/%$/.test(S)?F=C:(F=(A+L)*(S=parseFloat(S))/100/(S/100+1),(M&&w-F>=_||!M&&_-F>=w)&&(F=C)),[O,Math.ceil(F)]}updateRanges(b,x){let f=this.legend.options.bubbleLegend;f.minSize=b,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let b=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),b.render())}}}),e(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(i,s,r,o,a){let{setOptions:l}=r,{composed:h}=o,{addEvent:c,objectEach:g,pushUnique:d,wrap:p}=a;function y(_,w,k){let z,O,C,A=this.legend,F=b(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(z=A.bubbleLegend.options,O=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(O[0],O[1]),z.placed||(A.group.placed=!1,A.allItems.forEach(S=>{(C=S.legendItem||{}).group&&(C.group.translateY=void 0)})),A.render(),z.placed||(this.getMargins(),this.axes.forEach(function(S){S.visible&&S.render(),z.placed||(S.setScale(),S.updateNames(),g(S.ticks,function(T){T.isNew=!0,T.isNewLabel=!0}))}),this.getMargins()),z.placed=!0,_.call(this,w,k),A.bubbleLegend.correctSizes(),L(A,x(A))):(_.call(this,w,k),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function b(_){let w=_.series,k=0;for(;kO.height&&(O.height=w[S].itemHeight);O.step=F}return k}function f(_){let w=this.bubbleLegend,k=this.options,z=k.bubbleLegend,O=b(this.chart);w&&w.ranges&&w.ranges.length&&(z.ranges.length&&(z.autoRanges=!!z.ranges[0].autoRanges),this.destroyItem(w)),O>=0&&k.enabled&&z.enabled&&(z.seriesIndex=O,this.bubbleLegend=new s(z,this),this.bubbleLegend.addToLegend(_.allItems))}function M(_){let w;if(_.defaultPrevented)return!1;let k=_.legendItem,z=this.chart,O=k.visible;this&&this.bubbleLegend&&(k.visible=!O,k.ignoreSeries=O,w=b(z)>=0,this.bubbleLegend.visible!==w&&(this.update({bubbleLegend:{enabled:w}}),this.bubbleLegend.visible=w),k.visible=O)}function L(_,w){let k=_.allItems,z=_.options.rtl,O,C,A,F,S=0;k.forEach((T,D)=>{(F=T.legendItem||{}).group&&(O=F.group.translateX||0,C=F.y||0,((A=T.movementX)||z&&T.ranges)&&(A=z?O-T.options.maxSize/2:O+A,F.group.attr({translateX:A})),D>w[S].step&&S++,F.group.attr({translateY:Math.round(C+w[S].height/2)}),F.y=C+w[S].height/2)})}return{compose:function(_,w){d(h,"Series.BubbleLegend")&&(l({legend:{bubbleLegend:i}}),p(_.prototype,"drawChartBox",y),c(w,"afterGetAllItems",f),c(w,"itemClick",M))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:o}}}}=s,{extend:a}=r;class l extends o{haloPath(c){let g=(c&&this.marker&&this.marker.radius||0)+c;if(this.series.chart.inverted){let d=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-d[1]-g,y.len-d[0]-g,2*g,2*g)}return i.prototype.haloPath.call(this,g)}}return a(l.prototype,{ttBelow:!1}),l}),e(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(i,s,r,o,a,l){let{parse:h}=r,{composed:c,noop:g}=o,{series:d,seriesTypes:{column:{prototype:p},scatter:y}}=a,{addEvent:b,arrayMax:x,arrayMin:f,clamp:M,extend:L,isNumber:_,merge:w,pick:k,pushUnique:z}=l;function O(){let A=this.len,{coll:F,isXAxis:S,min:T}=this,D=S?"xData":"yData",P=(this.max||0)-(T||0),m=0,u=A,v=A/P,I;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,I=!0;let R=E[D];if(S&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),P>0){let j=R.length;for(;j--;)if(_(R[j])&&this.dataMin<=R[j]&&R[j]<=this.max){let G=E.radii&&E.radii[j]||0;m=Math.min((R[j]-T)*v-G,m),u=Math.max((R[j]-T)*v+G,u)}}}}),I&&P>0&&!this.logarithmic&&(u-=A,v*=(A+Math.max(0,m)-Math.min(u,A))/A,[["min","userMin",m],["max","userMax",u]].forEach(E=>{k(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/v)})))}class C extends y{static compose(F,S,T){i.compose(S,T),z(c,"Series.Bubble")&&b(F,"foundExtremes",O)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let W=(G.onPoint||G).getZExtremes();W&&(R=Math.min(k(R,W.zMin),W.zMin),j=Math.max(k(j,W.zMax),W.zMax),E=!0)}}),E?(u={zMin:R,zMax:j},this.chart.bubbleZExtremes=u):u={zMin:0,zMax:0}}for(P=0,D=F.length;P0&&(R=(P-F)/E)}return v&&R>=0&&(R=Math.sqrt(R)),Math.ceil(T+R*(D-T))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,S){let T=super.markerAttribs(F,S),{height:D=0,width:P=0}=T;return this.chart.inverted?L(T,{x:(F.plotX||0)-P/2,y:(F.plotY||0)-D/2}):T}pointAttribs(F,S){let T=this.options.marker.fillOpacity,D=d.prototype.pointAttribs.call(this,F,S);return T!==1&&(D.fill=h(D.fill).setOpacity(T).get("rgba")),D}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:S,radii:T}=this,{minPxSize:D}=this.getPxExtremes(),P=F.length;for(;P--;){let m=F[P],u=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(u)&&u>=D/2?(m.marker=L(m.marker,{radius:u,width:2*u,height:2*u}),m.dlBox={x:m.plotX-u,y:m.plotY-u,width:2*u,height:2*u}):(m.shapeArgs=m.plotY=m.dlBox=void 0,m.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),S=P=>{let m;return typeof P=="string"&&(m=/%$/.test(P),P=parseInt(P,10)),m?F*P/100:P},T=S(k(this.options.minSize,8)),D=Math.max(S(k(this.options.maxSize,"20%")),T);return{minPxSize:T,maxPxSize:D}}getZExtremes(){let F=this.options,S=(this.zData||[]).filter(_);if(S.length){let T=k(F.zMin,M(f(S),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),D=k(F.zMax,x(S));if(_(T)&&_(D))return{zMin:T,zMax:D}}}}return C.defaultOptions=w(y.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return _(F)?A(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(C.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),b(C,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),b(C,"remove",A=>{delete A.target.chart.bubbleZExtremes}),a.registerSeriesType("bubble",C),C}),e(t,"Series/MapBubble/MapBubblePoint.js",[t["Series/Bubble/BubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{map:{prototype:{pointClass:{prototype:o}}}}}=s,{extend:a}=r;class l extends i{isValid(){return typeof this.z=="number"}}return a(l.prototype,{applyOptions:o.applyOptions,getProjectedBounds:o.getProjectedBounds}),l}),e(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(i,s,r,o){let{seriesTypes:{map:{prototype:a},mappoint:{prototype:l}}}=r,{extend:h,merge:c}=o;class g extends i{constructor(){super(...arguments),this.clearBounds=a.clearBounds}searchPoint(p,y){return this.searchKDTree({plotX:p.chartX-this.chart.plotLeft,plotY:p.chartY-this.chart.plotTop},y,p)}translate(){l.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(p,y,b){super.updateParallelArrays.call(this,p,y,b);let x=this.processedXData,f=this.xData;x&&f&&(x.length=f.length)}}return g.defaultOptions=c(i.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h(g.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:a.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:s,processData:a.processData,projectPoint:l.projectPoint,kdAxisArray:["plotX","plotY"],setData:a.setData,setOptions:a.setOptions,updateData:a.updateData,useMapGeometry:!0,xyFromShape:!0}),r.registerSeriesType("mapbubble",g),g}),e(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:{prototype:{pointClass:r}}}=i.seriesTypes,{clamp:o,defined:a,extend:l,pick:h}=s;class c extends r{applyOptions(d,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(d,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let d=this.series,p=d.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=d.xAxis,f=d.yAxis,M=this.options.marker||d.options.marker,L=d.pointPlacementToXValue(),_=h(this.pointPadding,p.pointPadding,0),w={x1:o(Math.round(x.len-x.translate(this.x-y,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:o(Math.round(x.len-x.translate(this.x+y,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:o(Math.round(f.translate(this.y-b,!1,!0,!1,!0)),-f.len,2*f.len),y2:o(Math.round(f.translate(this.y+b,!1,!0,!1,!0)),-f.len,2*f.len)};for(let k of[["width","x"],["height","y"]]){let z=k[0],O=k[1],C=O+"1",A=O+"2",F=Math.abs(w[C]-w[A]),S=M&&M.lineWidth||0,T=Math.abs(w[C]+w[A])/2,D=M&&M[z];if(a(D)&&D"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),e(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{doc:r}=i,{defined:o,pick:a}=s;return{colorFromPoint:function(l,h){let c=h.series.colorAxis;if(c){let g=c.toColor(l||0,h).split(")")[0].split("(")[1].split(",").map(d=>a(parseFloat(d),parseInt(d,10)));return g[3]=255*a(g[3],1),o(l)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(l){let{canvas:h,context:c}=l;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(l.canvas=r.createElement("canvas"),l.context=l.canvas.getContext("2d",{willReadFrequently:!0})||void 0,l.context)}}}),e(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(i,s,r,o,a,l,h,c){let{series:g,seriesTypes:{column:d,scatter:p}}=a,{prototype:{symbols:y}}=l,{addEvent:b,extend:x,fireEvent:f,isNumber:M,merge:L,pick:_}=h,{colorFromPoint:w,getContext:k}=c;class z extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let C=this,A=C.options,F=A.interpolation,S=A.marker||{};if(F){let{image:T,chart:D,xAxis:P,yAxis:m}=C,{reversed:u=!1,len:v}=P,{reversed:I=!1,len:E}=m,R={width:v,height:E};if(!T||C.isDirtyData||C.isDirtyCanvas){let j=k(C),{canvas:G,options:{colsize:W=1,rowsize:N=1},points:B,points:{length:X}}=C,V=D.colorAxis&&D.colorAxis[0];if(G&&j&&V){let{min:H,max:K}=P.getExtremes(),{min:U,max:Y}=m.getExtremes(),Z=K-H,q=Y-U,J=Math.round(Z/W/8*8),Q=Math.round(q/N/8*8),[$,tt]=[[J,J/Z,u,"ceil"],[Q,Q/q,!I,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),it=G.width=J+1,et=it*(G.height=Q+1),st=(X-1)/et,rt=new Uint8ClampedArray(4*et),nt=(ot,at)=>4*Math.ceil(it*tt(at-U)+$(ot-H));C.buildKDTree();for(let ot=0;ot{T.graphic&&(T.graphic[C.chart.styledMode?"css":"animate"](C.colorAttribs(T)),T.value===null&&T.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:C,dataMax:A}=g.prototype.getExtremes.call(this,this.valueData);return M(C)&&(this.valueMin=C),M(A)&&(this.valueMax=A),g.prototype.getExtremes.call(this)}getValidPoints(C,A){return g.prototype.getValidPoints.call(this,C,A,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let C=this.options;C.pointRange=_(C.pointRange,C.colsize||1),this.yAxis.axisPointRange=C.rowsize||1,y.ellipse=y.circle,C.marker&&M(C.borderRadius)&&(C.marker.r=C.borderRadius)}markerAttribs(C,A){let F=C.shapeArgs||{};if(C.hasImage)return{x:C.plotX,y:C.plotY};if(A&&A!=="normal"){let S=C.options.marker||{},T=this.options.marker||{},D=T.states&&T.states[A]||{},P=S.states&&S.states[A]||{},m=(P.width||D.width||F.width||0)+(P.widthPlus||D.widthPlus||0),u=(P.height||D.height||F.height||0)+(P.heightPlus||D.heightPlus||0);return{x:(F.x||0)+((F.width||0)-m)/2,y:(F.y||0)+((F.height||0)-u)/2,width:m,height:u}}return F}pointAttribs(C,A){let F=g.prototype.pointAttribs.call(this,C,A),S=this.options||{},T=this.chart.options.plotOptions||{},D=T.series||{},P=T.heatmap||{},m=C&&C.options.borderColor||S.borderColor||P.borderColor||D.borderColor,u=C&&C.options.borderWidth||S.borderWidth||P.borderWidth||D.borderWidth||F["stroke-width"];if(F.stroke=C&&C.marker&&C.marker.lineColor||S.marker&&S.marker.lineColor||m||this.color,F["stroke-width"]=u,A&&A!=="normal"){let v=L(S.states&&S.states[A],S.marker&&S.marker.states&&S.marker.states[A],C&&C.options.states&&C.options.states[A]||{});F.fill=v.color||i.parse(F.fill).brighten(v.brightness||0).get(),F.stroke=v.lineColor||F.stroke}return F}translate(){let{borderRadius:C,marker:A}=this.options,F=A&&A.symbol||"rect",S=y[F]?F:"rect",T=["circle","square"].indexOf(S)!==-1;if(!this.processedXData){let{xData:D,yData:P}=this.getProcessedData();this.processedXData=D,this.processedYData=P}for(let D of(this.generatePoints(),this.points)){let P=D.getCellAttributes(),m=Math.min(P.x1,P.x2),u=Math.min(P.y1,P.y2),v=Math.max(Math.abs(P.x2-P.x1),0),I=Math.max(Math.abs(P.y2-P.y1),0);if(D.hasImage=(D.marker&&D.marker.symbol||F||"").indexOf("url")===0,T){let E=Math.abs(v-I);m=Math.min(P.x1,P.x2)+(v{"use strict";(function(n){typeof lo=="object"&&lo.exports?(n.default=n,lo.exports=n):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Extensions/Pane/PaneComposition.js",[t["Core/Utilities.js"]],function(i){let{addEvent:s,correctFloat:r,defined:o,pick:a}=i;function l(p){let y,b=this;return p&&b.pane.forEach(x=>{h(p.chartX-b.plotLeft,p.chartY-b.plotTop,x.center)&&(y=x)}),y}function h(p,y,b,x,f){let M=!0,L=b[0],_=b[1],w=Math.sqrt(Math.pow(p-L,2)+Math.pow(y-_,2));if(o(x)&&o(f)){let k=Math.atan2(r(y-_,8),r(p-L,8));f!==x&&(M=x>f?k>=x&&k<=Math.PI||k<=f&&k>=-Math.PI:k>=x&&k<=r(f,8))}return w<=Math.ceil(b[2]/2)&&M}function c(p){this.polar&&(p.options.inverted&&([p.x,p.y]=[p.y,p.x]),p.isInsidePlot=this.pane.some(y=>h(p.x,p.y,y.center,y.axis&&y.axis.normalizedStartAngleRad,y.axis&&y.axis.normalizedEndAngleRad)))}function g(p){let y=this.chart;p.hoverPoint&&p.hoverPoint.plotX&&p.hoverPoint.plotY&&y.hoverPane&&!h(p.hoverPoint.plotX,p.hoverPoint.plotY,y.hoverPane.center)&&(p.hoverPoint=void 0)}function d(p){let y=this.chart;y.polar?(y.hoverPane=y.getHoverPane(p),p.filter=function(b){return b.visible&&!(!p.shared&&b.directTouch)&&a(b.options.enableMouseTracking,!0)&&(!y.hoverPane||b.xAxis.pane===y.hoverPane)}):y.hoverPane=void 0}return{compose:function(p,y){let b=p.prototype;b.getHoverPane||(b.collectionsWithUpdate.push("pane"),b.getHoverPane=l,s(p,"afterIsInsidePlot",c),s(y,"afterGetHoverData",g),s(y,"beforeGetHoverData",d))}}}),e(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%"}}}),e(t,"Extensions/Pane/Pane.js",[t["Series/CenteredUtilities.js"],t["Extensions/Pane/PaneComposition.js"],t["Extensions/Pane/PaneDefaults.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{extend:a,merge:l,splat:h}=o;class c{constructor(d,p){this.coll="pane",this.init(d,p)}init(d,p){this.chart=p,this.background=[],p.pane.push(this),this.setOptions(d)}setOptions(d){this.options=d=l(r.pane,this.chart.angular?{background:{}}:void 0,d)}render(){let d=this.options,p=this.chart.renderer;this.group||(this.group=p.g("pane-group").attr({zIndex:d.zIndex||0}).add()),this.updateCenter();let y=this.options.background;if(y){let b=Math.max((y=h(y)).length,this.background.length||0);for(let x=0;xP,w.y=w.high,w._plotY=w.plotY,w.plotY=D,F[_]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=k,T?z.align||(z.align=k?"right":"left"):z.verticalAlign||(z.verticalAlign=k?"top":"bottom")}for(this.options.dataLabels=z,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),_=A;_--;)(w=C[_])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=F[_],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(O.enabled||this.hasDataLabels?.()){for(_=A;_--;)if(w=C[_]){let{plotHigh:D=0,plotLow:P=0}=w;k=O.inside?DP,w.below=!k,T?O.align||(O.align=k?"left":"right"):O.verticalAlign||(O.verticalAlign=k?"bottom":"top")}this.options.dataLabels=O,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(z.enabled)for(_=A;_--;)(w=C[_])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(D){return!!D}));this.options.dataLabels=S}}alignDataLabel(){c.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let _={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:w,lowMarker:k}}=this;this.options.marker=f(w,k),k.symbol&&(this.symbol=k.symbol)}return _}restoreMarkerSettings(_){this.options.marker=_.marker,this.symbol=_.symbol}drawPoints(){let _,w,k=this.points.length,z=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(z),_=0;_=0&&w.plotY<=this.yAxis.len&&w.plotX>=0&&w.plotX<=this.xAxis.len),_++;for(h.drawPoints.apply(this,arguments),_=0;_\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(M,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(L=>{let _=L.high,w=L.plotY;L.isNull?L.plotY=void 0:(L.plotLow=w,L.plotHigh=b(_)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(_):_,!1,!0,void 0,!0):void 0,this.dataModify&&(L.yBottom=L.plotHigh))})},{order:0}),g(M,"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 _=L.pos(!1,L.plotLow),w=L.pos(!1,L.plotHigh);_&&w&&(_[0]=(_[0]+w[0])/2,_[1]=(_[1]+w[1])/2),L.tooltipPos=_}})},{order:3}),p(M.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:i,pointValKey:"low",setStackedPoints:a}),r.registerSeriesType("arearange",M),M}),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{spline:{prototype:o}}=s.seriesTypes,{merge:a,extend:l}=r;class h extends i{}return h.defaultOptions=a(i.defaultOptions),l(h.prototype,{getPointSpline:o.getPointSpline}),s.registerSeriesType("areasplinerange",h),h}),e(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}}),e(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(i,s,r,o,a){let{noop:l}=r,{crisp:h,extend:c,merge:g,pick:d}=a;class p extends s{pointAttribs(){return{}}translate(){let b=this.yAxis,x=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(f){x.forEach(function(M){f[M]!==null&&(f[M+"Plot"]=b.translate(f[M],0,1,0,1))}),f.plotHigh=f.highPlot})}drawPoints(){let b,x,f,M,L,_,w,k,z,O,C,A,F,S=this.points,T=this.options,D=this.chart,P=D.renderer,m=this.doQuartiles!==!1,u=this.options.whiskerLength;for(let v of S){let I=(k=v.graphic)?"animate":"attr",E=v.shapeArgs,R={},j={},G={},W={},N=v.color||this.color;if(v.plotY!==void 0){let B;z=E.width,C=(O=E.x)+z,A=z/2,b=m?v.q1Plot:v.lowPlot,x=m?v.q3Plot:v.lowPlot,f=v.highPlot,M=v.lowPlot,k||(v.graphic=k=P.g("point").add(this.group),v.stem=P.path().addClass("highcharts-boxplot-stem").add(k),u&&(v.whiskers=P.path().addClass("highcharts-boxplot-whisker").add(k)),m&&(v.box=P.path(w).addClass("highcharts-boxplot-box").add(k)),v.medianShape=P.path(_).addClass("highcharts-boxplot-median").add(k)),D.styledMode||(j.stroke=v.stemColor||T.stemColor||N,j["stroke-width"]=d(v.stemWidth,T.stemWidth,T.lineWidth),j.dashstyle=v.stemDashStyle||T.stemDashStyle||T.dashStyle,v.stem.attr(j),u&&(G.stroke=v.whiskerColor||T.whiskerColor||N,G["stroke-width"]=d(v.whiskerWidth,T.whiskerWidth,T.lineWidth),G.dashstyle=v.whiskerDashStyle||T.whiskerDashStyle||T.dashStyle,v.whiskers.attr(G)),m&&(R.fill=v.fillColor||T.fillColor||N,R.stroke=T.lineColor||N,R["stroke-width"]=T.lineWidth||0,R.dashstyle=v.boxDashStyle||T.boxDashStyle||T.dashStyle,v.box.attr(R)),W.stroke=v.medianColor||T.medianColor||N,W["stroke-width"]=d(v.medianWidth,T.medianWidth,T.lineWidth),W.dashstyle=v.medianDashStyle||T.medianDashStyle||T.dashStyle,v.medianShape.attr(W));let X=h((v.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,v.stem.strokeWidth());if(B=[["M",X,x],["L",X,f],["M",X,b],["L",X,M]],v.stem[I]({d:B}),m){let V=v.box.strokeWidth();b=h(b,V),x=h(x,V),B=[["M",O=h(O,V),x],["L",O,b],["L",C=h(C,V),b],["L",C,x],["L",O,x],["Z"]],v.box[I]({d:B})}if(u){let V=v.whiskers.strokeWidth();f=h(v.highPlot,V),M=h(v.lowPlot,V),B=[["M",h(X-(F=typeof u=="string"&&/%$/.test(u)?A*parseFloat(u)/100:Number(u)/2)),f],["L",h(X+F),f],["M",h(X-F),M],["L",h(X+F),M]],v.whiskers[I]({d:B})}B=[["M",O,L=h(v.medianPlot,v.medianShape.strokeWidth())],["L",C,L]],v.medianShape[I]({d:B})}}}toYData(b){return[b.low,b.q1,b.median,b.q3,b.high]}}return p.defaultOptions=g(s.defaultOptions,i),c(p.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:l,setStackedPoints:l}),o.registerSeriesType("boxplot",p),p}),e(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}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{parse:a}=i,{noop:l}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:d,pick:p,stableSort:y}=o;return class{constructor(b,x){this.setState=l,this.init(b,x)}init(b,x){this.options=b,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(b){b.splice(this.options.legendIndex,0,this)}drawLegendSymbol(b){let x,f=p(b.options.itemDistance,20),M=this.legendItem||{},L=this.options,_=L.ranges,w=L.connectorDistance;if(!_||!_.length||!g(_[0].value)){b.options.bubbleLegend.autoRanges=!0;return}y(_,function(C,A){return A.value-C.value}),this.ranges=_,this.setOptions(),this.render();let k=this.getMaxLabelSize(),z=this.ranges[0].radius,O=2*z;x=(x=w-z+k.width)>0?x:0,this.maxLabel=k,this.movementX=L.labels.align==="left"?x:0,M.labelWidth=O+x+f,M.labelHeight=O+k.height/2}setOptions(){let b=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],M=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},_={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},k=f.options.marker.fillOpacity,z=this.chart.styledMode;b.forEach(function(O,C){z||(L.stroke=p(O.borderColor,x.borderColor,f.color),L.fill=p(O.color,x.color,k!==1?a(f.color).setOpacity(k).get("rgba"):f.color),_.stroke=p(O.connectorColor,x.connectorColor,f.color)),b[C].radius=this.getRangeRadius(O.value),b[C]=d(b[C],{center:b[0].radius-b[C].radius+M}),z||d(!0,b[C],{bubbleAttribs:d(L),connectorAttribs:d(_),labelAttribs:w})},this)}getRangeRadius(b){let x=this.options,f=this.options.seriesIndex,M=this.chart.series[f],L=x.ranges[0].value,_=x.ranges[x.ranges.length-1].value,w=x.minSize,k=x.maxSize;return M.getRadius.call(this,_,L,w,k,b)}render(){let b=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let M of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),b.symbol=x.g("bubble-legend"),b.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),b.symbol.translateX=0,b.symbol.translateY=0,b.symbol.add(b.label),b.label.add(b.group),this.ranges))M.value>=f&&this.renderRange(M);this.hideOverlappingLabels()}renderRange(b){let x=this.ranges[0],f=this.legend,M=this.options,L=M.labels,_=this.chart,w=_.series[M.seriesIndex],k=_.renderer,z=this.symbols,O=z.labels,C=b.center,A=Math.abs(b.radius),F=M.connectorDistance||0,S=L.align,T=f.options.rtl,D=M.borderWidth,P=M.connectorWidth,m=x.radius||0,u=C-A-D/2+P/2,v=(u%1?1:.5)-(P%2?0:.5),I=k.styledMode,E=T||S==="left"?-F:F;S==="center"&&(E=0,M.connectorDistance=0,b.labelAttribs.align="center"),z.bubbleItems.push(k.circle(m,C+v,A).attr(I?{}:b.bubbleAttribs).addClass((I?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(M.className||"")).add(this.legendItem.symbol)),z.connectors.push(k.path(k.crispLine([["M",m,u],["L",m+E,u]],M.connectorWidth)).attr(I?{}:b.connectorAttribs).addClass((I?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(M.connectorClassName||"")).add(this.legendItem.symbol));let R=k.text(this.formatLabel(b)).attr(I?{}:b.labelAttribs).css(I?{}:L.style).addClass("highcharts-bubble-legend-labels "+(M.labels.className||"")).add(this.legendItem.symbol),j={x:m+E+M.labels.x,y:u+M.labels.y+.4*R.getBBox().height};R.attr(j),O.push(R),R.placed=!0,R.alignAttr=j}getMaxLabelSize(){let b,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),b=b?x.width>b.width?x:b:x}),b||{}}formatLabel(b){let x=this.options,f=x.labels.formatter,M=x.labels.format,{numberFormatter:L}=this.chart;return M?s.format(M,b):f?f.call(b):L(b.value,1)}hideOverlappingLabels(){let b=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(b.hideOverlappingLabels(f.labels),f.labels.forEach(function(M,L){M.newOpacity?M.newOpacity!==M.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let b=this.legend.bubbleLegend,x=b.chart.series,f=b.options.ranges,M,L,_=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(k){k.isBubble&&!k.ignoreSeries&&(L=k.zData.filter(g)).length&&(_=p(k.options.zMin,Math.min(_,Math.max(c(L),k.options.displayNegative===!1?k.options.zThreshold:-Number.MAX_VALUE))),w=p(k.options.zMax,Math.max(w,h(L))))}),M=_===w?[{value:w}]:[{value:_},{value:(_+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&M.reverse(),M.forEach(function(k,z){f&&f[z]&&(M[z]=d(f[z],k))}),M}predictBubbleSizes(){let b=this.chart,x=b.legend.options,f=x.floating,M=x.layout==="horizontal",L=M?b.legend.lastLineHeight:0,_=b.plotSizeX,w=b.plotSizeY,k=b.series[this.options.seriesIndex],z=k.getPxExtremes(),O=Math.ceil(z.minPxSize),C=Math.ceil(z.maxPxSize),A=Math.min(w,_),F,S=k.options.maxSize;return f||!/%$/.test(S)?F=C:(F=(A+L)*(S=parseFloat(S))/100/(S/100+1),(M&&w-F>=_||!M&&_-F>=w)&&(F=C)),[O,Math.ceil(F)]}updateRanges(b,x){let f=this.legend.options.bubbleLegend;f.minSize=b,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let b=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),b.render())}}}),e(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(i,s,r,o,a){let{setOptions:l}=r,{composed:h}=o,{addEvent:c,objectEach:g,pushUnique:d,wrap:p}=a;function y(_,w,k){let z,O,C,A=this.legend,F=b(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(z=A.bubbleLegend.options,O=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(O[0],O[1]),z.placed||(A.group.placed=!1,A.allItems.forEach(S=>{(C=S.legendItem||{}).group&&(C.group.translateY=void 0)})),A.render(),z.placed||(this.getMargins(),this.axes.forEach(function(S){S.visible&&S.render(),z.placed||(S.setScale(),S.updateNames(),g(S.ticks,function(T){T.isNew=!0,T.isNewLabel=!0}))}),this.getMargins()),z.placed=!0,_.call(this,w,k),A.bubbleLegend.correctSizes(),L(A,x(A))):(_.call(this,w,k),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function b(_){let w=_.series,k=0;for(;kO.height&&(O.height=w[S].itemHeight);O.step=F}return k}function f(_){let w=this.bubbleLegend,k=this.options,z=k.bubbleLegend,O=b(this.chart);w&&w.ranges&&w.ranges.length&&(z.ranges.length&&(z.autoRanges=!!z.ranges[0].autoRanges),this.destroyItem(w)),O>=0&&k.enabled&&z.enabled&&(z.seriesIndex=O,this.bubbleLegend=new s(z,this),this.bubbleLegend.addToLegend(_.allItems))}function M(_){let w;if(_.defaultPrevented)return!1;let k=_.legendItem,z=this.chart,O=k.visible;this&&this.bubbleLegend&&(k.visible=!O,k.ignoreSeries=O,w=b(z)>=0,this.bubbleLegend.visible!==w&&(this.update({bubbleLegend:{enabled:w}}),this.bubbleLegend.visible=w),k.visible=O)}function L(_,w){let k=_.allItems,z=_.options.rtl,O,C,A,F,S=0;k.forEach((T,D)=>{(F=T.legendItem||{}).group&&(O=F.group.translateX||0,C=F.y||0,((A=T.movementX)||z&&T.ranges)&&(A=z?O-T.options.maxSize/2:O+A,F.group.attr({translateX:A})),D>w[S].step&&S++,F.group.attr({translateY:Math.round(C+w[S].height/2)}),F.y=C+w[S].height/2)})}return{compose:function(_,w){d(h,"Series.BubbleLegend")&&(l({legend:{bubbleLegend:i}}),p(_.prototype,"drawChartBox",y),c(w,"afterGetAllItems",f),c(w,"itemClick",M))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:o}}}}=s,{extend:a}=r;class l extends o{haloPath(c){let g=(c&&this.marker&&this.marker.radius||0)+c;if(this.series.chart.inverted){let d=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-d[1]-g,y.len-d[0]-g,2*g,2*g)}return i.prototype.haloPath.call(this,g)}}return a(l.prototype,{ttBelow:!1}),l}),e(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(i,s,r,o,a,l){let{parse:h}=r,{composed:c,noop:g}=o,{series:d,seriesTypes:{column:{prototype:p},scatter:y}}=a,{addEvent:b,arrayMax:x,arrayMin:f,clamp:M,extend:L,isNumber:_,merge:w,pick:k,pushUnique:z}=l;function O(){let A=this.len,{coll:F,isXAxis:S,min:T}=this,D=S?"xData":"yData",P=(this.max||0)-(T||0),m=0,u=A,v=A/P,I;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,I=!0;let R=E[D];if(S&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),P>0){let j=R.length;for(;j--;)if(_(R[j])&&this.dataMin<=R[j]&&R[j]<=this.max){let G=E.radii&&E.radii[j]||0;m=Math.min((R[j]-T)*v-G,m),u=Math.max((R[j]-T)*v+G,u)}}}}),I&&P>0&&!this.logarithmic&&(u-=A,v*=(A+Math.max(0,m)-Math.min(u,A))/A,[["min","userMin",m],["max","userMax",u]].forEach(E=>{k(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/v)})))}class C extends y{static compose(F,S,T){i.compose(S,T),z(c,"Series.Bubble")&&b(F,"foundExtremes",O)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let W=(G.onPoint||G).getZExtremes();W&&(R=Math.min(k(R,W.zMin),W.zMin),j=Math.max(k(j,W.zMax),W.zMax),E=!0)}}),E?(u={zMin:R,zMax:j},this.chart.bubbleZExtremes=u):u={zMin:0,zMax:0}}for(P=0,D=F.length;P0&&(R=(P-F)/E)}return v&&R>=0&&(R=Math.sqrt(R)),Math.ceil(T+R*(D-T))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,S){let T=super.markerAttribs(F,S),{height:D=0,width:P=0}=T;return this.chart.inverted?L(T,{x:(F.plotX||0)-P/2,y:(F.plotY||0)-D/2}):T}pointAttribs(F,S){let T=this.options.marker.fillOpacity,D=d.prototype.pointAttribs.call(this,F,S);return T!==1&&(D.fill=h(D.fill).setOpacity(T).get("rgba")),D}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:S,radii:T}=this,{minPxSize:D}=this.getPxExtremes(),P=F.length;for(;P--;){let m=F[P],u=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(u)&&u>=D/2?(m.marker=L(m.marker,{radius:u,width:2*u,height:2*u}),m.dlBox={x:m.plotX-u,y:m.plotY-u,width:2*u,height:2*u}):(m.shapeArgs=m.plotY=m.dlBox=void 0,m.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),S=P=>{let m;return typeof P=="string"&&(m=/%$/.test(P),P=parseInt(P,10)),m?F*P/100:P},T=S(k(this.options.minSize,8)),D=Math.max(S(k(this.options.maxSize,"20%")),T);return{minPxSize:T,maxPxSize:D}}getZExtremes(){let F=this.options,S=(this.zData||[]).filter(_);if(S.length){let T=k(F.zMin,M(f(S),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),D=k(F.zMax,x(S));if(_(T)&&_(D))return{zMin:T,zMax:D}}}}return C.defaultOptions=w(y.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return _(F)?A(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(C.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),b(C,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),b(C,"remove",A=>{delete A.target.chart.bubbleZExtremes}),a.registerSeriesType("bubble",C),C}),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{seriesTypes:{column:{prototype:{pointClass:{prototype:r}}},arearange:{prototype:{pointClass:o}}}}=i,{extend:a,isNumber:l}=s;class h extends o{isValid(){return l(this.low)}}return a(h.prototype,{setState:r.setState}),h}),e(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=s,{seriesTypes:{arearange:l,column:h,column:{prototype:c}}}=r,{addEvent:g,clamp:d,extend:p,isNumber:y,merge:b,pick:x}=o;class f extends l{setOptions(){return b(!0,arguments[0],{stacking:void 0}),l.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,_,w,k,z=this.yAxis,O=this.xAxis,C=O.startAngleRad,A=this.chart,F=this.xAxis.isRadial,S=Math.max(A.chartWidth,A.chartHeight)+999;this.points.forEach(T=>{let D=T.shapeArgs||{},P=this.options.minPointLength,m=T.plotY,u=z.translate(T.high,0,1,0,1);if(y(u)&&y(m))if(T.plotHigh=d(u,-S,S),T.plotLow=d(m,-S,S),k=T.plotHigh,Math.abs(L=x(T.rectPlotY,T.plotY)-T.plotHigh)\u25CF {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),e(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(i,s,r,o,a){let{arearange:l}=o.seriesTypes,{addEvent:h,merge:c,extend:g}=a;class d extends i{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||s.prototype.getColumnMetrics.call(this)}drawDataLabels(){let y=this.pointValKey;if(l)for(let b of(l.prototype.drawDataLabels.call(this),this.points))b.y=b[y]}toYData(y){return[y.low,y.high]}}return d.defaultOptions=c(i.defaultOptions,r),h(d,"afterTranslate",function(){for(let p of this.points)p.plotLow=p.plotY},{order:0}),g(d.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),o.registerSeriesType("errorbar",d),d}),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{series:{prototype:{pointClass:s}}}=i;return class extends s{setState(r){this.state=r}}}),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=s,{series:l,seriesTypes:{column:h}}=r,{clamp:c,isNumber:g,extend:d,merge:p,pick:y,pInt:b,defined:x}=o;class f extends l{translate(){let L=this.yAxis,_=this.options,w=L.center;this.generatePoints(),this.points.forEach(k=>{let z=p(_.dial,k.dial),O=b(z.radius)*w[2]/200,C=b(z.baseLength)*O/100,A=b(z.rearLength)*O/100,F=z.baseWidth,S=z.topWidth,T=_.overshoot,D=L.startAngleRad+L.translate(k.y,void 0,void 0,void 0,!0);(g(T)||_.wrap===!1)&&(T=g(T)?T/180*Math.PI:0,D=c(D,L.startAngleRad-T,L.endAngleRad+T)),D=180*D/Math.PI,k.shapeType="path";let P=z.path||[["M",-A,-F/2],["L",C,-F/2],["L",O,-S/2],["L",O,S/2],["L",C,F/2],["L",-A,F/2],["Z"]];k.shapeArgs={d:P,translateX:w[0],translateY:w[1],rotation:D},k.plotX=w[0],k.plotY=w[1],x(k.y)&&L.max-L.min&&(k.percentage=(k.y-L.min)/(L.max-L.min)*100)})}drawPoints(){let L=this,_=L.chart,w=L.yAxis.center,k=L.pivot,z=L.options,O=z.pivot,C=_.renderer;L.points.forEach(A=>{let F=A.graphic,S=A.shapeArgs,T=S.d,D=p(z.dial,A.dial);F?(F.animate(S),S.d=T):A.graphic=C[A.shapeType](S).addClass("highcharts-dial").add(L.group),_.styledMode||A.graphic[F?"animate":"attr"]({stroke:D.borderColor,"stroke-width":D.borderWidth,fill:D.backgroundColor})}),k?k.animate({translateX:w[0],translateY:w[1]}):O&&(L.pivot=C.circle(0,0,O.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(w[0],w[1]).add(L.group),_.styledMode||L.pivot.attr({fill:O.backgroundColor,stroke:O.borderColor,"stroke-width":O.borderWidth}))}animate(L){let _=this;L||_.points.forEach(w=>{let k=w.graphic;k&&(k.attr({rotation:180*_.yAxis.startAngleRad/Math.PI}),k.animate({rotation:w.shapeArgs.rotation},_.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),l.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(L,_){l.prototype.setData.call(this,L,!1),this.processData(),this.generatePoints(),y(_,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return f.defaultOptions=p(l.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}),d(f.prototype,{angular:!0,directTouch:!0,drawGraph:a,drawTracker:h.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:i,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",f),f}),e(t,"Series/DragNodesComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{composed:r}=i,{addEvent:o,pushUnique:a}=s;function l(){let h,c,g,d=this;d.container&&(h=o(d.container,"mousedown",p=>{let y=d.hoverPoint;y&&y.series&&y.series.hasDraggableNodes&&y.series.options.draggable&&(y.series.onMouseDown(y,p),c=o(d.container,"mousemove",b=>y&&y.series&&y.series.onMouseMove(y,b)),g=o(d.container.ownerDocument,"mouseup",b=>(c(),g(),y&&y.series&&y.series.onMouseUp(y,b))))})),o(d,"destroy",function(){h()})}return{compose:function(h){a(r,"DragNodes")&&o(h,"load",l)},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,d,p=this.chart,y=p.pointer?.normalize(c)||c,b=h.fixedPosition.chartX-y.chartX,x=h.fixedPosition.chartY-y.chartY,f=p.graphLayoutsLookup;(Math.abs(b)>5||Math.abs(x)>5)&&(g=h.fixedPosition.plotX-b,d=h.fixedPosition.plotY-x,p.isInsidePlot(g,d)&&(h.plotX=g,h.plotY=d,h.hasDragged=!0,this.redrawHalo(h),f.forEach(M=>{M.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)})}}}),e(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r){let{setAnimation:o}=i,{composed:a}=s,{addEvent:l,pushUnique:h}=r;function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(y=>{y.updateSimulation()}),this.redraw())}function g(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(y=>{y.updateSimulation(!1)}),this.redraw())}function d(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(y=>{y.stop()})}function p(){let y,b=!1,x=f=>{f.maxIterations--&&isFinite(f.temperature)&&!f.isStable()&&!f.enableSimulation&&(f.beforeStep&&f.beforeStep(),f.step(),y=!1,b=!0)};if(this.graphLayoutsLookup){for(o(!1,this),this.graphLayoutsLookup.forEach(f=>f.start());!y;)y=!0,this.graphLayoutsLookup.forEach(x);b&&this.series.forEach(f=>{f&&f.layout&&f.render()})}}return{compose:function(y){h(a,"GraphLayout")&&(l(y,"afterPrint",c),l(y,"beforePrint",g),l(y,"predraw",d),l(y,"render",p))},integrations:{},layouts:{}}}),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s,r){let{seriesTypes:{bubble:{prototype:{pointClass:o}}}}=r;return class extends o{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),s.prototype.destroy.apply(this,arguments)}firePointEvent(){let a=this.series.options;if(this.isParentNode&&a.parentNode){let l=a.allowPointSelect;a.allowPointSelect=a.parentNode.allowPointSelect,s.prototype.firePointEvent.apply(this,arguments),a.allowPointSelect=l}else s.prototype.firePointEvent.apply(this,arguments)}select(){let a=this.series.chart;this.isParentNode?(a.getSelectedPoints=a.getSelectedParentNodes,s.prototype.select.apply(this,arguments),a.getSelectedPoints=i.prototype.getSelectedPoints):s.prototype.select.apply(this,arguments)}}}),e(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(i){let{isNumber:s}=i;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:o}=this.point;return s(o)?r(o,-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}}}),e(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(i,s,r){let o=i.getMass(),a=-r.x*s*this.diffTemperature,l=-r.y*s*this.diffTemperature;i.fromNode.fixedPosition||(i.fromNode.plotX-=a*o.fromNode/i.fromNode.degree,i.fromNode.plotY-=l*o.fromNode/i.fromNode.degree),i.toNode.fixedPosition||(i.toNode.plotX+=a*o.toNode/i.toNode.degree,i.toNode.plotY+=l*o.toNode/i.toNode.degree)},attractiveForceFunction:function(i,s){return(s-i)/i},barycenter:function(){let i=this.options.gravitationalConstant||0,s=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*i,r=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*i;this.nodes.forEach(function(o){o.fixedPosition||(o.plotX-=s/o.mass/o.degree,o.plotY-=r/o.mass/o.degree)})},getK:function(i){return Math.pow(i.box.width*i.box.height/i.nodes.length,.5)},integrate:function(i,s){let r=-i.options.friction,o=i.options.maxSpeed,a=s.prevX,l=s.prevY,h=(s.plotX+s.dispX-a)*r,c=(s.plotY+s.dispY-l)*r,g=Math.abs,d=g(h)/(h||1),p=g(c)/(c||1),y=d*Math.min(o,Math.abs(h)),b=p*Math.min(o,Math.abs(c));s.prevX=s.plotX+s.dispX,s.prevY=s.plotY+s.dispY,s.plotX+=y,s.plotY+=b,s.temperature=i.vectorLength({x:y,y:b})},repulsive:function(i,s,r){let o=s*this.diffTemperature/i.mass/i.degree;i.fixedPosition||(i.plotX+=r.x*o,i.plotY+=r.y*o)},repulsiveForceFunction:function(i,s){return(s-i)/i*(s>i?1:0)}}}),e(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(i,s){let{noop:r}=i;return{barycenter:function(){let o,a,l=this.options.gravitationalConstant,h=this.box,c=this.nodes;for(let g of c)this.options.splitSeries&&!g.isParentNode?(o=g.series.parentNode.plotX,a=g.series.parentNode.plotY):(o=h.width/2,a=h.height/2),g.fixedPosition||(g.plotX-=(g.plotX-o)*l/(g.mass*Math.sqrt(c.length)),g.plotY-=(g.plotY-a)*l/(g.mass*Math.sqrt(c.length)))},getK:r,integrate:s.integrate,repulsive:function(o,a,l,h){let c=a*this.diffTemperature/o.mass/o.degree,g=l.x*c,d=l.y*c;o.fixedPosition||(o.plotX+=g,o.plotY+=d),h.fixedPosition||(h.plotX-=g,h.plotY-=d)},repulsiveForceFunction:function(o,a,l,h){return Math.min(o,(l.marker.radius+h.marker.radius)/2)}}}),e(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(i,s,r,o){let a=i.getMass(),l=r.x/o*s,h=r.y/o*s;i.fromNode.fixedPosition||(i.fromNode.dispX-=l*a.fromNode/i.fromNode.degree,i.fromNode.dispY-=h*a.fromNode/i.fromNode.degree),i.toNode.fixedPosition||(i.toNode.dispX+=l*a.toNode/i.toNode.degree,i.toNode.dispY+=h*a.toNode/i.toNode.degree)},attractiveForceFunction:function(i,s){return i*i/s},barycenter:function(){let i=this.options.gravitationalConstant,s=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(o){if(!o.fixedPosition){let a=o.getDegree(),l=a*(1+a/2);o.dispX+=(s-o.plotX)*i*l/o.degree,o.dispY+=(r-o.plotY)*i*l/o.degree}})},getK:function(i){return Math.pow(i.box.width*i.box.height/i.nodes.length,.3)},integrate:function(i,s){s.dispX+=s.dispX*i.options.friction,s.dispY+=s.dispY*i.options.friction;let r=s.temperature=i.vectorLength({x:s.dispX,y:s.dispY});r!==0&&(s.plotX+=s.dispX/r*Math.min(Math.abs(s.dispX),i.temperature),s.plotY+=s.dispY/r*Math.min(Math.abs(s.dispY),i.temperature))},repulsive:function(i,s,r,o){i.dispX+=r.x/o*s/i.degree,i.dispY+=r.y/o*s/i.degree},repulsiveForceFunction:function(i,s){return s*s/i}}}),e(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){class i{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,o=this.box.height/2;this.nodes[0]=new i({left:this.box.left,top:this.box.top,width:r,height:o}),this.nodes[1]=new i({left:this.box.left+r,top:this.box.top,width:r,height:o}),this.nodes[2]=new i({left:this.box.left+r,top:this.box.top+o,width:r,height:o}),this.nodes[3]=new i({left:this.box.left,top:this.box.top+o,width:r,height:o})}getBoxPosition(r){let o=r.plotXthis.step())):(this.simulation=!1,this.series.forEach(M=>{p(M,"afterSimulation")}))}}stop(){this.simulation&&h.cancelAnimationFrame(this.simulation)}setArea(f,M,L,_){this.box={left:f,top:M,width:L,height:_}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(f,M){for(let L of f)M.indexOf(L)===-1&&M.push(L)}removeElementFromCollection(f,M){let L=M.indexOf(f);L!==-1&&M.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=y(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 o(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let f=this.options.initialPositions;if(d(f))for(let M of(f.call(this),this.nodes))g(M.prevX)||(M.prevX=M.plotX),g(M.prevY)||(M.prevY=M.plotY),M.dispX=0,M.dispY=0;else f==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let f,M=this.box,L=this.nodes,_=2*Math.PI/(L.length+1),w=L.filter(function(A){return A.linksTo.length===0}),k={},z=this.options.initialPositionRadius,O=A=>{for(let F of A.linksFrom||[])k[F.toNode.id]||(k[F.toNode.id]=!0,C.push(F.toNode),O(F.toNode))},C=[];for(let A of w)C.push(A),O(A);if(C.length)for(let A of L)C.indexOf(A)===-1&&C.push(A);else C=L;for(let A=0,F=C.length;A{let z=k*k/Math.PI;return z-Math.floor(z)};for(let k=0,z=L.length;kthis.barnesHutApproximation(f,M));else{let f,M,L;for(let _ of this.nodes)for(let w of this.nodes)_===w||_.fixedPosition||(L=this.getDistXY(_,w),(M=this.vectorLength(L))!==0&&(f=this.repulsiveForce(M,this.k),this.force("repulsive",_,f*w.mass,L,M)))}}attractiveForces(){let f,M,L;for(let _ of this.links)_.fromNode&&_.toNode&&(f=this.getDistXY(_.fromNode,_.toNode),(M=this.vectorLength(f))!==0&&(L=this.attractiveForce(M,this.k),this.force("attractive",_,L,f,M)))}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,M){let L=f.radius;f.plotX=c(f.plotX,M.left+L,M.width-L),f.plotY=c(f.plotY,M.top+L,M.height-L)}coolDown(f,M,L){return f-M*L}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let f=0;for(let M of this.nodes)f+=M.temperature;return f}vectorLength(f){return Math.sqrt(f.x*f.x+f.y*f.y)}getDistR(f,M){let L=this.getDistXY(f,M);return this.vectorLength(L)}getDistXY(f,M){let L=f.plotX-M.plotX,_=f.plotY-M.plotY;return{x:L,y:_,absX:Math.abs(L),absY:Math.abs(_)}}}return b}),e(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{addEvent:a,pick:l}=o;function h(){let d=this.series,p=[];return d.forEach(y=>{y.parentNode&&y.parentNode.selected&&p.push(y.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),i.integrations.packedbubble=s,i.layouts.packedbubble=g;let y=p.prototype;y.getSelectedParentNodes||(a(p,"beforeRedraw",c),y.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,y=this.nodes,b=2*Math.PI/(y.length+1),x=this.options.initialPositionRadius,f,M,L=0;for(let _ of y)this.options.splitSeries&&!_.isParentNode?(f=_.series.parentNode.plotX,M=_.series.parentNode.plotY):(f=p.width/2,M=p.height/2),_.plotX=_.prevX=l(_.plotX,f+x*Math.cos(_.index||L*b)),_.plotY=_.prevY=l(_.plotY,M+x*Math.sin(_.index||L*b)),_.dispX=0,_.dispY=0,L++}repulsiveForces(){let p,y,b,x=this,f=x.options.bubblePadding,M=x.nodes;M.forEach(L=>{L.degree=L.mass,L.neighbours=0,M.forEach(_=>{p=0,L!==_&&!L.fixedPosition&&(x.options.seriesInteraction||L.series===_.series)&&(b=x.getDistXY(L,_),(y=x.vectorLength(b)-(L.marker.radius+_.marker.radius+f))<0&&(L.degree+=.01,L.neighbours++,p=x.repulsiveForce(-y/Math.sqrt(L.neighbours),x.k,L,_)),x.force("repulsive",L,p*_.mass,b,_,y))})})}applyLimitBox(p,y){let b,x;this.options.splitSeries&&!p.isParentNode&&this.options.parentNodeLimit&&(b=this.getDistXY(p,p.series.parentNode),(x=p.series.parentNodeRadius-p.marker.radius-this.vectorLength(b))<0&&x>-2*p.marker.radius&&(p.plotX-=.01*b.x,p.plotY-=.01*b.y)),super.applyLimitBox(p,y)}}return i.layouts.packedbubble=g,g}),e(t,"Series/SimulationSeriesUtilities.js",[t["Core/Utilities.js"],t["Core/Animation/AnimationUtilities.js"]],function(i,s){let{merge:r,syncTimeout:o}=i,{animObject:a}=s;return{initDataLabels:function(){let l=this.options.dataLabels;if(!this.dataLabelsGroup){let h=this.initDataLabelsGroup();return!this.chart.styledMode&&l?.style&&h.css(l.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 l=this.options.dataLabels;l?.defer&&this.options.layoutAlgorithm?.enableSimulation?o(()=>{this.deferDataLabels=!1},l?a(l.animation).defer:0):this.deferDataLabels=!1}}}),e(t,"Extensions/TextPath.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{deg2rad:r}=i,{addEvent:o,merge:a,uniqueKey:l,defined:h,extend:c}=s;function g(y,b){b=a(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);let x=this.renderer.url,f=this.text||this,M=f.textPath,{attributes:L,enabled:_}=b;if(y=y||M&&M.path,M&&M.undo(),y&&_){let w=o(f,"afterModifyTree",k=>{if(y&&_){let z=y.attr("id");z||y.attr("id",z=l());let O={x:0,y:0};h(L.dx)&&(O.dx=L.dx,delete L.dx),h(L.dy)&&(O.dy=L.dy,delete L.dy),f.attr(O),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let C=k.nodes.slice(0);k.nodes.length=0,k.nodes[0]={tagName:"textPath",attributes:c(L,{"text-anchor":L.textAnchor,href:`${x}#${z}`}),children:C}}});f.textPath={path:y,undo:w}}else f.attr({dx:0,dy:0}),delete f.textPath;return this.added&&(f.textCache="",this.renderer.buildText(f)),this}function d(y){let b=y.bBox,x=this.element?.querySelector("textPath");if(x){let f=[],{b:M,h:L}=this.renderer.fontMetrics(this.element),_=L-M,w=RegExp('(|]*>|<\\/tspan>)',"g"),k=x.innerHTML.replace(w,"").split(/]*>/),z=k.length,O=(C,A)=>{let{x:F,y:S}=A,T=(x.getRotationOfChar(C)-90)*r,D=Math.cos(T),P=Math.sin(T);return[[F-_*D,S-_*P],[F+M*D,S+M*P]]};for(let C=0,A=0;A{j.mass=2,j.degree=1,j.collisionNmb=1}),R.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),R.addElementsToCollection([this],R.series),R.addElementsToCollection(this.points,R.nodes)}addSeriesLayout(){let m=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},u=m.type||"packedbubble",v=this.chart.graphLayoutsStorage,I=this.chart.graphLayoutsLookup,E=S(m,m.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),R=v[u+"-series"];R||(v[u+"-series"]=R=new r.layouts[u],R.init(E),I.splice(R.index,0,R)),this.parentNodeLayout=R,this.createParentNodes()}calculateParentRadius(){let m=this.seriesBox();this.parentNodeRadius=k(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,m?Math.max(Math.sqrt(Math.pow(m.width,2)+Math.pow(m.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 m=this.chart.series,u=this.options.zMin,v=this.options.zMax,I=1/0,E=-1/0;return u&&v?[u,v]:(m.forEach(R=>{R.yData.forEach(j=>{z(j)&&(j>E&&(E=j),j{this.parentNodeMass+=Math.PI*Math.pow(G.marker.radius,2)}),this.calculateParentRadius(),v.nodes.forEach(G=>{G.seriesIndex===this.index&&(E=!0)}),v.setArea(0,0,u.plotWidth,u.plotHeight),E||(R||(R=new m(this,{mass:this.parentNodeRadius/2,marker:j,dataLabels:{inside:!1},states:{normal:{marker:j},hover:{marker:j}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(R.plotX=this.parentNode.plotX,R.plotY=this.parentNode.plotY),this.parentNode=R,v.addElementsToCollection([this],v.series),v.addElementsToCollection([R],v.nodes))}deferLayout(){let m=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),m.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(m=>{m.removeElementFromCollection(this,m.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),f.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(f.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",f.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let m=this.chart,u=this.layout.options.parentNodeOptions.marker,v={fill:u.fillColor||b(this.color).brighten(.4).get(),opacity:u.fillOpacity,stroke:u.lineColor||this.color,"stroke-width":T(u.lineWidth,this.options.lineWidth)},I={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,m.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&z(this.parentNode.plotX)&&z(this.parentNode.plotY)&&z(this.parentNodeRadius)&&(I=S({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},v),this.parentNode.graphic||(this.graph=this.parentNode.graphic=m.renderer.symbol(v.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(I))}drawTracker(){let m,u=this.parentNode;super.drawTracker(),u&&(m=A(u.dataLabels)?u.dataLabels:u.dataLabel?[u.dataLabel]:[],u.graphic&&(u.graphic.element.point=u),m.forEach(v=>{(v.div||v.element).point=u}))}getPointRadius(){let m,u,v,I,E=this.chart,R=E.plotWidth,j=E.plotHeight,G=this.options,W=G.useSimulation,N=Math.min(R,j),B={},X=[],V=E.allDataPoints||[],H=V.length;["minSize","maxSize"].forEach(U=>{let Y=parseInt(G[U],10),Z=/%$/.test(G[U]);B[U]=Z?N*Y/100:Y*Math.sqrt(H)}),E.minRadius=m=B.minSize/Math.sqrt(H),E.maxRadius=u=B.maxSize/Math.sqrt(H);let K=W?this.calculateZExtremes():[m,u];V.forEach((U,Y)=>{v=W?k(U[2],K[0],K[1]):U[2],(I=this.getRadius(K[0],K[1],m,u,v))===0&&(I=null),V[Y][2]=I,X.push(I)}),this.radii=X}init(){return f.init.apply(this,arguments),_.call(this),this.eventsToUnbind.push(w(this,"updatedData",function(){this.chart.series.forEach(m=>{m.type===this.type&&(m.isDirty=!0)},this)})),this}onMouseUp(m){if(m.fixedPosition&&!m.removed){let u,v=this.layout,I=this.parentNodeLayout;I&&v.options.dragBetweenSeries&&I.nodes.forEach(E=>{m&&m.marker&&E!==m.series.parentNode&&(u=v.getDistXY(m,E),v.vectorLength(u)-E.marker.radius-m.marker.radius<0&&(E.series.addPoint(S(m.options,{plotX:m.plotX,plotY:m.plotY}),!1),v.removeElementFromCollection(m,v.nodes),m.remove()))}),s.onMouseUp.apply(this,arguments)}}placeBubbles(m){let u=this.checkOverlap,v=this.positionBubble,I=[],E=1,R=0,j=0,G,W=[],N,B=m.sort((X,V)=>V[2]-X[2]);if(B.length){if(I.push([[0,0,B[0][2],B[0][3],B[0][4]]]),B.length>1)for(I.push([[0,0-B[1][2]-B[0][2],B[1][2],B[1][3],B[1][4]]]),N=2;N1&&I[E-1][j+1]&&u(G,I[E-1][j+1])?(j++,I[E].push(v(I[E][R],I[E-1][j],B[N])),R++):(R++,I[E].push(G));this.chart.stages=I,this.chart.rawPositions=[].concat.apply([],I),this.resizeRadius(),W=this.chart.rawPositions}return W}pointAttribs(m,u){let v=this.options,I=m&&m.isParentNode,E=v.marker;I&&v.layoutAlgorithm&&v.layoutAlgorithm.parentNodeOptions&&(E=v.layoutAlgorithm.parentNodeOptions.marker);let R=E.fillOpacity,j=f.pointAttribs.call(this,m,u);return R!==1&&(j["fill-opacity"]=R),j}positionBubble(m,u,v){let I=Math.asin,E=Math.acos,R=Math.pow,j=Math.abs,G=(0,Math.sqrt)(R(m[0]-u[0],2)+R(m[1]-u[1],2)),W=E((R(G,2)+R(v[2]+u[2],2)-R(v[2]+m[2],2))/(2*(v[2]+u[2])*G)),N=I(j(m[0]-u[0])/G),B=(m[1]-u[1]<0?0:Math.PI)+W+N*((m[0]-u[0])*(m[1]-u[1])<0?1:-1),X=Math.cos(B),V=Math.sin(B);return[u[0]+(u[2]+v[2])*V,u[1]-(u[2]+v[2])*X,v[2],v[3],v[4]]}render(){let m=[];f.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(u=>{A(u.dataLabels)&&u.dataLabels.forEach(v=>{m.push(v)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(m))}resizeRadius(){let m,u,v,I,E,R=this.chart,j=R.rawPositions,G=Math.min,W=Math.max,N=R.plotLeft,B=R.plotTop,X=R.plotHeight,V=R.plotWidth;for(let Y of(m=v=Number.POSITIVE_INFINITY,u=I=Number.NEGATIVE_INFINITY,j))E=Y[2],m=G(m,Y[0]-E),u=W(u,Y[0]+E),v=G(v,Y[1]-E),I=W(I,Y[1]+E);let H=[u-m,I-v],K=[(V-N)/H[0],(X-B)/H[1]],U=G.apply([],K);if(Math.abs(U-1)>1e-10){for(let Y of j)Y[2]*=U;this.placeBubbles(j)}else R.diffY=X/2+B-v-(I-v)/2,R.diffX=V/2+N-m-(u-m)/2}seriesBox(){let m,u=this.chart,v=this.data,I=Math.max,E=Math.min,R=[u.plotLeft,u.plotLeft+u.plotWidth,u.plotTop,u.plotTop+u.plotHeight];return v.forEach(j=>{z(j.plotX)&&z(j.plotY)&&j.marker.radius&&(m=j.marker.radius,R[0]=E(R[0],j.plotX-m),R[1]=I(R[1],j.plotX+m),R[2]=E(R[2],j.plotY-m),R[3]=I(R[3],j.plotY+m))}),F(R.width/R.height)?R:null}setVisible(){let m=this;f.setVisible.apply(m,arguments),m.parentNodeLayout&&m.graph?m.visible?(m.graph.show(),m.parentNode.dataLabel&&m.parentNode.dataLabel.show()):(m.graph.hide(),m.parentNodeLayout.removeElementFromCollection(m.parentNode,m.parentNodeLayout.nodes),m.parentNode.dataLabel&&m.parentNode.dataLabel.hide()):m.layout&&(m.visible?m.layout.addElementsToCollection(m.points,m.layout.nodes):m.points.forEach(u=>{m.layout.removeElementFromCollection(u,m.layout.nodes)}))}translate(){let m,u,v,I=this.chart,E=this.data,R=this.index,j=this.options.useSimulation;for(let G of(this.processedXData=this.xData,this.generatePoints(),z(I.allDataPoints)||(I.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),j?v=I.allDataPoints:(v=this.placeBubbles(I.allDataPoints),this.options.draggable=!1),v))G[3]===R&&(m=E[G[4]],u=T(G[2],void 0),j||(m.plotX=G[0]-I.plotLeft+I.diffX,m.plotY=G[1]-I.plotTop+I.diffY),F(u)&&(m.marker=O(m.marker,{radius:u,width:2*u,height:2*u}),m.radius=u));j&&this.deferLayout(),C(this,"afterTranslate")}}return D.defaultOptions=S(M.defaultOptions,l),O(D.prototype,{pointClass:a,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:L,alignDataLabel:f.alignDataLabel,indexateNodes:x,onMouseDown:s.onMouseDown,onMouseMove:s.onMouseMove,redrawHalo:s.redrawHalo,searchPoint:x}),c.registerSeriesType("packedbubble",D),D}),e(t,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),e(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Series/Polygon/PolygonSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=i,{area:l,line:h,scatter:c}=r.seriesTypes,{extend:g,merge:d}=o;class p extends c{getGraphPath(){let b=h.prototype.getGraphPath.call(this),x=b.length+1;for(;x--;)(x===b.length||b[x][0]==="M")&&x>0&&b.splice(x,0,["Z"]);return this.areaPath=b,b}drawGraph(){this.options.fillColor=this.color,l.prototype.drawGraph.call(this)}}return p.defaultOptions=d(c.defaultOptions,s),g(p.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:a}),r.registerSeriesType("polygon",p),p}),e(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}}}),e(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/RadialAxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{defaultOptions:l}=s,{composed:h,noop:c}=r,{addEvent:g,correctFloat:d,defined:p,extend:y,fireEvent:b,isObject:x,merge:f,pick:M,pushUnique:L,relativeLength:_,wrap:w}=o;return function(k){function z(){this.autoConnect=this.isCircular&&M(this.userMax,this.options.max)===void 0&&d(this.endAngleRad-this.startAngleRad)===d(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function O(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(Y=>this.ticks[Y]&&this.ticks[Y].label).filter(Y=>!!Y)}}function C(){return c}function A(Y,Z,q){let J=this.pane.center,Q=Y.value,$,tt,it;return this.isCircular?(p(Q)?Y.point&&(Y.point.shapeArgs||{}).start&&(Q=this.chart.inverted?this.translate(Y.point.rectPlotY,!0):Y.point.x):(tt=Y.chartX||0,it=Y.chartY||0,Q=this.translate(Math.atan2(it-q,tt-Z)-this.startAngleRad,!0)),tt=($=this.getPosition(Q)).x,it=$.y):(p(Q)||(tt=Y.chartX,it=Y.chartY),p(tt)&&p(it)&&(q=J[1]+this.chart.plotTop,Q=this.translate(Math.min(Math.sqrt(Math.pow(tt-Z,2)+Math.pow(it-q,2)),J[2]/2)-J[3]/2,!0))),[Q,tt||0,it||0]}function F(Y,Z,q){let J=this.pane.center,Q=this.chart,$=this.left||0,tt=this.top||0,it,et=M(Z,J[2]/2-this.offset),st;return q===void 0&&(q=this.horiz?0:this.center&&-this.center[3]/2),q&&(et+=q),this.isCircular||Z!==void 0?((st=this.chart.renderer.symbols.arc($+J[0],tt+J[1],et,et,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[$+J[0]],st.yBounds=[tt+J[1]-et]):(it=this.postTranslate(this.angleRad,et),st=[["M",this.center[0]+Q.plotLeft,this.center[1]+Q.plotTop],["L",it.x,it.y]]),st}function S(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function T(Y,Z,q){let J=this.chart,Q=Pt=>{if(typeof Pt=="string"){let Yt=parseInt(Pt,10);return nt.test(Pt)&&(Yt=Yt*it/100),Yt}return Pt},$=this.center,tt=this.startAngleRad,it=$[2]/2,et=Math.min(this.offset,0),st=this.left||0,rt=this.top||0,nt=/%$/,ot=this.isCircular,at,ct,ht,lt,yt,Et,dt=M(Q(q.outerRadius),it),St=Q(q.innerRadius),mt=M(Q(q.thickness),10);if(this.options.gridLineInterpolation==="polygon")Et=this.getPlotLinePath({value:Y}).concat(this.getPlotLinePath({value:Z,reverse:!0}));else{Y=Math.max(Y,this.min),Z=Math.min(Z,this.max);let Pt=this.translate(Y),Yt=this.translate(Z);ot||(dt=Pt||0,St=Yt||0),q.shape!=="circle"&&ot?(at=tt+(Pt||0),ct=tt+(Yt||0)):(at=-Math.PI/2,ct=1.5*Math.PI,yt=!0),dt-=et,mt-=et,Et=J.renderer.symbols.arc(st+$[0],rt+$[1],dt,dt,{start:Math.min(at,ct),end:Math.max(at,ct),innerR:M(St,dt-mt),open:yt,borderRadius:q.borderRadius}),ot&&(ht=(ct+at)/2,lt=st+$[0]+$[2]/2*Math.cos(ht),Et.xBounds=ht>-Math.PI/2&&ht-Math.PI&&ht<0||ht>Math.PI?-10:10)}return Et}function D(Y){let Z=this.pane.center,q=this.chart,J=q.inverted,Q=Y.reverse,$=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},tt=$.innerRadius||"0%",it=$.outerRadius||"100%",et=Z[0]+q.plotLeft,st=Z[1]+q.plotTop,rt=this.height,nt=Y.isCrosshair,ot=Z[3]/2,at=Y.value,ct,ht,lt,yt,Et,dt,St,mt,Pt,Yt=this.getPosition(at),xe=Yt.x,se=Yt.y;if(nt&&(at=(mt=this.getCrosshairPosition(Y,et,st))[0],xe=mt[1],se=mt[2]),this.isCircular)ht=Math.sqrt(Math.pow(xe-et,2)+Math.pow(se-st,2)),lt=typeof tt=="string"?_(tt,1):tt/ht,yt=typeof it=="string"?_(it,1):it/ht,Z&&ot&&(lt<(ct=ot/ht)&&(lt=ct),ytrt)&&(at=0),this.options.gridLineInterpolation==="circle")Pt=this.getLinePath(0,at,ot);else if(Pt=[],q[J?"yAxis":"xAxis"].forEach(Ie=>{Ie.pane===this.pane&&(Et=Ie)}),Et){St=Et.tickPositions,Et.autoConnect&&(St=St.concat([St[0]])),Q&&(St=St.slice().reverse()),at&&(at+=ot);for(let Ie=0;IeMath.PI&&(et-=$),st>Math.PI&&(st-=$),this.normalizedStartAngleRad=et,this.normalizedEndAngleRad=st}}function I(Y){this.isRadial&&(Y.align=void 0,Y.preventDefault())}function E(){if(this.chart&&this.chart.labelCollectors){let Y=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;Y>=0&&this.chart.labelCollectors.splice(Y,1)}}function R(Y){let Z,q=this.chart,J=q.angular,Q=q.polar,$=this.isXAxis,tt=this.coll,it=Y.userOptions.pane||0,et=this.pane=q.pane&&q.pane[it];if(tt==="colorAxis"){this.isRadial=!1;return}J?(J&&$?(this.isHidden=!0,this.createLabelCollector=C,this.getOffset=c,this.redraw=X,this.render=X,this.setScale=c,this.setCategories=c,this.setTitle=c):u(this),Z=!$):Q&&(u(this),Z=this.horiz),J||Q?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&q.labelCollectors.push(this.labelCollector)):this.isRadial=!1,et&&Z&&(et.axis=this),this.isCircular=Z}function j(){this.isRadial&&this.beforeSetTickPositions()}function G(Y){let Z=this.label;if(!Z)return;let q=this.axis,J=Z.getBBox(),Q=q.options.labels,$=(q.translate(this.pos)+q.startAngleRad+Math.PI/2)/Math.PI*180%360,tt=Math.round($),it=p(Q.y)?0:-(.3*J.height),et=Q.y,st,rt=20,nt=Q.align,ot="end",at=tt<0?tt+360:tt,ct=at,ht=0,lt=0;q.isRadial&&(st=q.getPosition(this.pos,q.center[2]/2+_(M(Q.distance,-25),q.center[2]/2,-q.center[2]/2)),Q.rotation==="auto"?Z.attr({rotation:$}):p(et)||(et=q.chart.renderer.fontMetrics(Z).b-J.height/2),p(nt)||(q.isCircular?(J.width>q.len*q.tickInterval/(q.max-q.min)&&(rt=0),nt=$>rt&&$<180-rt?"left":$>180+rt&&$<360-rt?"right":"center"):nt="center",Z.attr({align:nt})),nt==="auto"&&q.tickPositions.length===2&&q.isCircular&&(at>90&&at<180?at=180-at:at>270&&at<=360&&(at=540-at),ct>180&&ct<=360&&(ct=360-ct),(q.pane.options.startAngle===tt||q.pane.options.startAngle===tt+360||q.pane.options.startAngle===tt-360)&&(ot="start"),nt=tt>=-90&&tt<=90||tt>=-360&&tt<=-270||tt>=270&&tt<=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+it)),Y.pos.x=st.x+(Q.x||0),Y.pos.y=st.y+(et||0))}function W(Y){this.axis.getPosition&&y(Y.pos,this.axis.getPosition(this.pos))}function N({options:Y}){Y.xAxis&&f(!0,k.radialDefaultOptions.circular,Y.xAxis),Y.yAxis&&f(!0,k.radialDefaultOptions.radialGauge,Y.yAxis)}function B(Y,Z){let q=this.chart,J=this.center;return Y=this.startAngleRad+Y,{x:q.plotLeft+J[0]+Math.cos(Y)*Z,y:q.plotTop+J[1]+Math.sin(Y)*Z}}function X(){this.isDirty=!1}function V(){let Y,Z;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),Y=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(Z=this.postTranslate(this.angleRad,Y[3]/2),Y[0]=Z.x-this.chart.plotLeft,Y[1]=Z.y-this.chart.plotTop),this.len=this.width=this.height=(Y[2]-Y[3])*M(this.sector,1)/2)}function H(){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 K(Y){let{coll:Z}=this,{angular:q,inverted:J,polar:Q}=this.chart,$={};q?this.isXAxis||($=f(l.yAxis,k.radialDefaultOptions.radialGauge)):Q&&($=this.horiz?f(l.xAxis,k.radialDefaultOptions.circular):f(Z==="xAxis"?l.xAxis:l.yAxis,k.radialDefaultOptions.radial)),J&&Z==="yAxis"&&($.stackLabels=x(l.yAxis,!0)?l.yAxis.stackLabels:{},$.reversedStacks=!0);let tt=this.options=f($,Y);tt.plotBands||(tt.plotBands=[]),b(this,"afterSetOptions")}function U(Y,Z,q,J,Q,$,tt){let it,et=this.axis;return et.isRadial?["M",Z,q,"L",(it=et.getPosition(this.pos,et.center[2]/2+J)).x,it.y]:Y.call(this,Z,q,J,Q,$,tt)}k.radialDefaultOptions=f(i),k.compose=function(Y,Z){return L(h,"Axis.Radial")&&(g(Y,"afterInit",v),g(Y,"autoLabelAlign",I),g(Y,"destroy",E),g(Y,"init",R),g(Y,"initialAxisTranslation",j),g(Z,"afterGetLabelPosition",G),g(Z,"afterGetPosition",W),g(r,"setOptions",N),w(Z.prototype,"getMarkPath",U)),Y}}(a||(a={})),a}),e(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(i,s,r,o,a,l){let{animObject:h}=i,{composed:c}=s,{addEvent:g,defined:d,find:p,isNumber:y,merge:b,pick:x,pushUnique:f,relativeLength:M,splat:L,uniqueKey:_,wrap:w}=l;function k(){(this.pane||[]).forEach(N=>{N.render()})}function z(N){let B=N.args[0].xAxis,X=N.args[0].yAxis,V=N.args[0].chart;B&&X&&(X.gridLineInterpolation==="polygon"?(B.startOnTick=!0,B.endOnTick=!0):B.gridLineInterpolation==="polygon"&&V.inverted&&(X.startOnTick=!0,X.endOnTick=!0))}function O(){this.pane||(this.pane=[]),this.options.pane=L(this.options.pane),this.options.pane.forEach(N=>{new o(N,this)},this)}function C(N){let B=N.args.marker,X=this.chart.xAxis[0],V=this.chart.yAxis[0],H=this.chart.inverted,K=H?V:X,U=H?X:V;if(this.chart.polar){N.preventDefault();let Y=(B.attr?B.attr("start"):B.start)-K.startAngleRad,Z=B.attr?B.attr("r"):B.r,q=(B.attr?B.attr("end"):B.end)-K.startAngleRad,J=B.attr?B.attr("innerR"):B.innerR;N.result.x=Y+K.pos,N.result.width=q-Y,N.result.y=U.len+U.pos-Z,N.result.height=Z-J}}function A(N){let B=this.chart;if(B.polar&&B.hoverPane&&B.hoverPane.axis){N.preventDefault();let X=B.hoverPane.center,V=B.mouseDownX||0,H=B.mouseDownY||0,K=N.args.chartY,U=N.args.chartX,Y=2*Math.PI,Z=B.hoverPane.axis.startAngleRad,q=B.hoverPane.axis.endAngleRad,J=B.inverted?B.xAxis[0]:B.yAxis[0],Q={},$="arc";if(Q.x=X[0]+B.plotLeft,Q.y=X[1]+B.plotTop,this.zoomHor){let tt=Z>0?q-Z:Math.abs(Z)+Math.abs(q),it=Math.atan2(H-B.plotTop-X[1],V-B.plotLeft-X[0])-Z,et=Math.atan2(K-B.plotTop-X[1],U-B.plotLeft-X[0])-Z;Q.r=X[2]/2,Q.innerR=X[3]/2,it<=0&&(it+=Y),et<=0&&(et+=Y),etq+(Y-tt)/2&&(et=it,it=Z<=0?Z:0);let st=Q.start=Math.max(it+Z,Z),rt=Q.end=Math.min(et+Z,q);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(ctX[2]/2&&(et=X[2]/2),itN.max?(V[H].isNull=!0,V[H].plotY=NaN):V[H].isNull=V[H].isValid&&!V[H].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(g(this,"afterRender",function(){let K;X.polar&&this.options.clip!==!1&&(K=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:K[0],y:K[1],r:K[2]/2,innerR:K[3]/2}):this.clipCircle=function(U,Y,Z,q,J){let Q=_(),$=U.createElement("clipPath").attr({id:Q}).add(U.defs),tt=J?U.arc(Y,Z,q,J,0,2*Math.PI).add($):U.circle(Y,Z,q).add($);return tt.id=Q,tt.clipPath=$,tt}(X.renderer,K[0],K[1],K[2]/2,K[3]/2),this.group.clip(this.clipCircle),this.setClip=s.noop)})))}}function T(N){let B=this.chart,X=this.xAxis,V=this.yAxis,H=X.pane&&X.pane.center,K=N.chartX-(H&&H[0]||0)-B.plotLeft,U=N.chartY-(H&&H[1]||0)-B.plotTop,Y=B.inverted?{clientX:N.chartX-V.pos,plotY:N.chartY-X.pos}:{clientX:180+-180/Math.PI*Math.atan2(K,U)};return this.searchKDTree(Y)}function D(N,B,X,V){let H=V.tickInterval,K=V.tickPositions,U=p(K,Z=>Z>=X),Y=p([...K].reverse(),Z=>Z<=B);return d(U)||(U=K[K.length-1]),d(Y)||(Y=K[0],U+=H,N[0][0]="L",N.unshift(N[N.length-3])),(N=N.slice(K.indexOf(Y),K.indexOf(U)+1))[0][0]="M",N}function P(N,B){return p(this.pane||[],X=>X.options.id===B)||N.call(this,B)}function m(N,B,X,V,H,K){let U,Y,Z,q=this.chart,J=x(V.inside,!!this.options.stacking);if(q.polar){if(U=B.rectPlotX/Math.PI*180,q.inverted)this.forceDL=q.isInsidePlot(B.plotX,B.plotY),J&&B.shapeArgs?(Y=B.shapeArgs,H=b(H,{x:(Z=this.yAxis.postTranslate(((Y.start||0)+(Y.end||0))/2-this.xAxis.startAngleRad,B.barX+B.pointWidth/2)).x-q.plotLeft,y:Z.y-q.plotTop})):B.tooltipPos&&(H=b(H,{x:B.tooltipPos[0],y:B.tooltipPos[1]})),V.align=x(V.align,"center"),V.verticalAlign=x(V.verticalAlign,"middle");else{var Q;let $,tt;(Q=V).align===null&&($=U>20&&U<160?"left":U>200&&U<340?"right":"center",Q.align=$),Q.verticalAlign===null&&(tt=U<45||U>315?"bottom":U>135&&U<225?"top":"middle",Q.verticalAlign=tt),V=Q}r.prototype.alignDataLabel.call(this,B,X,V,H,K),this.isRadialBar&&B.shapeArgs&&B.shapeArgs.start===B.shapeArgs.end?X.hide():X.show()}else N.call(this,B,X,V,H,K)}function u(){let N=this.options,B=N.stacking,X=this.chart,V=this.xAxis,H=this.yAxis,K=H.reversed,U=H.center,Y=V.startAngleRad,Z=V.endAngleRad-Y,q=N.threshold,J=0,Q,$,tt,it,et,st=0,rt=0,nt,ot,at,ct,ht,lt,yt,Et;if(V.isRadial)for(tt=(Q=this.points).length,it=H.translate(H.min),et=H.translate(H.max),q=N.threshold||0,X.inverted&&y(q)&&d(J=H.translate(q))&&(J<0?J=0:J>Z&&(J=Z),this.translatedThreshold=J+Y);tt--;){if(lt=($=Q[tt]).barX,ot=$.x,at=$.y,$.shapeType="arc",X.inverted){$.plotY=H.translate(at),B&&H.stacking?(ht=H.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=H.translate(ct[0]),rt=H.translate(ct[1]),d(st)&&(st=l.clamp(st,0,Z)))):(st=J,rt=$.plotY),st>rt&&(rt=[st,st=rt][0]),K?rt>it?rt=it:stit||rtet?rt=et:(rtet)&&(st=rt=0),H.min>H.max&&(st=rt=K?Z:0),st+=Y,rt+=Y,U&&($.barX=lt+=U[3]/2),yt=Math.max(lt,0),Et=Math.max(lt+$.pointWidth,0);let dt=N.borderRadius,St=M((typeof dt=="object"?dt.radius:dt)||0,Et-yt);$.shapeArgs={x:U[0],y:U[1],r:Et,innerR:yt,start:st,end:rt,borderRadius:St},$.opacity=st===rt?0:void 0,$.plotY=(d(this.translatedThreshold)&&(stU[1])}}function v(N,B){let X,V,H=this;if(this.chart.polar){B=B||this.points;for(let U=0;U{U.polarPlotY===void 0&&H.polar.toXY(U)})}let K=N.apply(this,[].slice.call(arguments,1));return V&&B.pop(),K}function I(N,B){let X=this.chart,V={xAxis:[],yAxis:[]};return X.polar?X.axes.forEach(H=>{if(H.coll==="colorAxis")return;let K=H.isXAxis,U=H.center,Y=B.chartX-U[0]-X.plotLeft,Z=B.chartY-U[1]-X.plotTop;V[K?"xAxis":"yAxis"].push({axis:H,value:H.translate(K?Math.PI-Math.atan2(Y,Z):Math.sqrt(Math.pow(Y,2)+Math.pow(Z,2)),!0)})}):V=N.call(this,B),V}function E(N,B){this.chart.polar||N.call(this,B)}function R(N,B){let X=this,V=this.chart,H=this.group,K=this.markerGroup,U=this.xAxis&&this.xAxis.center,Y=V.plotLeft,Z=V.plotTop,q=this.options.animation,J,Q,$,tt,it,et;V.polar?X.isRadialBar?B||(X.startAngleRad=x(X.translatedThreshold,X.xAxis.startAngleRad),s.seriesTypes.pie.prototype.animate.call(X,B)):(q=h(q),X.is("column")?B||(Q=U[3]/2,X.points.forEach(st=>{$=st.graphic,it=(tt=st.shapeArgs)&&tt.r,et=tt&&tt.innerR,$&&tt&&($.attr({r:Q,innerR:Q}),$.animate({r:it,innerR:et},X.options.animation))})):B?(J={translateX:U[0]+Y,translateY:U[1]+Z,scaleX:.001,scaleY:.001},H.attr(J),K&&K.attr(J)):(J={translateX:Y,translateY:Z,scaleX:1,scaleY:1},H.animate(J,q),K&&K.animate(J,q))):N.call(this,B)}function j(N,B,X,V){let H,K;if(this.chart.polar)if(V){let U=(K=function Z(q,J,Q,$){let tt,it,et,st,rt,nt,ot=$?1:0,at=(tt=J>=0&&J<=q.length-1?J:J<0?q.length-1+J:0)-1<0?q.length-(1+ot):tt-1,ct=tt+1>q.length-1?ot:tt+1,ht=q[at],lt=q[ct],yt=ht.plotX,Et=ht.plotY,dt=lt.plotX,St=lt.plotY,mt=q[tt].plotX,Pt=q[tt].plotY;it=(1.5*mt+yt)/2.5,et=(1.5*Pt+Et)/2.5,st=(1.5*mt+dt)/2.5,rt=(1.5*Pt+St)/2.5;let Yt=Math.sqrt(Math.pow(it-mt,2)+Math.pow(et-Pt,2)),xe=Math.sqrt(Math.pow(st-mt,2)+Math.pow(rt-Pt,2)),se=Math.atan2(et-Pt,it-mt);nt=Math.PI/2+(se+Math.atan2(rt-Pt,st-mt))/2,Math.abs(se-nt)>Math.PI/2&&(nt-=Math.PI),it=mt+Math.cos(nt)*Yt,et=Pt+Math.sin(nt)*Yt;let Ie={rightContX:st=mt+Math.cos(Math.PI+nt)*xe,rightContY:rt=Pt+Math.sin(Math.PI+nt)*xe,leftContX:it,leftContY:et,plotX:mt,plotY:Pt};return Q&&(Ie.prevPointCont=Z(q,at,!1,$)),Ie}(B,V,!0,this.connectEnds)).prevPointCont&&K.prevPointCont.rightContX,Y=K.prevPointCont&&K.prevPointCont.rightContY;H=["C",y(U)?U:K.plotX,y(Y)?Y:K.plotY,y(K.leftContX)?K.leftContX:K.plotX,y(K.leftContY)?K.leftContY:K.plotY,K.plotX,K.plotY]}else H=["M",X.plotX,X.plotY];else H=N.call(this,B,X,V);return H}function G(N,B,X=this.plotY){if(!this.destroyed){let{plotX:V,series:H}=this,{chart:K}=H;return K.polar&&y(V)&&y(X)?[V+(B?K.plotLeft:0),X+(B?K.plotTop:0)]:N.call(this,B,X)}}class W{static compose(B,X,V,H,K,U,Y,Z,q,J){if(o.compose(X,V),a.compose(B,K),f(c,"Polar")){let Q=X.prototype,$=U.prototype,tt=V.prototype,it=H.prototype;if(g(X,"afterDrawChartBox",k),g(X,"getAxes",O),g(X,"init",z),w(Q,"get",P),w(tt,"getCoordinates",I),w(tt,"pinch",E),g(V,"getSelectionMarkerAttrs",A),g(V,"getSelectionBox",C),g(H,"afterInit",F),g(H,"afterTranslate",S,{order:2}),g(H,"afterColumnTranslate",u,{order:4}),w(it,"animate",R),w($,"pos",G),Z){let et=Z.prototype;w(et,"alignDataLabel",m),w(et,"animate",R)}if(q&&w(q.prototype,"getGraphPath",v),J){let et=J.prototype;w(et,"getPointSpline",j),Y&&(Y.prototype.getPointSpline=et.getPointSpline)}}}constructor(B){this.series=B}arc(B,X,V,H){let K=this.series,U=K.xAxis.center,Y=K.yAxis.len,Z=U[3]/2,q=Y-X+Z,J=Y-x(B,Y)+Z;return K.yAxis.reversed&&(q<0&&(q=Z),J<0&&(J=Z)),{x:U[0],y:U[1],r:q,innerR:J,start:V,end:H}}toXY(B){let X=this.series,V=X.chart,H=X.xAxis,K=X.yAxis,U=B.plotX,Y=V.inverted,Z=B.y,q=B.plotY,J=Y?U:K.len-q,Q;if(Y&&X&&!X.isRadialBar&&(B.plotY=q=y(Z)?K.translate(Z):0),B.rectPlotX=U,B.rectPlotY=q,K.center&&(J+=K.center[3]/2),y(q)){let $=Y?K.postTranslate(q,J):H.postTranslate(U,J);B.plotX=B.polarPlotX=$.x-V.plotLeft,B.plotY=B.polarPlotY=$.y-V.plotTop}X.kdByAngle?((Q=(U/Math.PI*180+H.pane.options.startAngle)%360)<0&&(Q+=360),B.clientX=Q):B.clientX=B.plotX}}return W}),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Globals.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{composed:a}=i,{addEvent:l,objectEach:h,pushUnique:c}=r;return function(g){function d(){let f=this.waterfall.stacks;f&&(f.changed=!1,delete f.alreadyChanged)}function p(){let f=this.options.stackLabels;f&&f.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function y(){this.waterfall||(this.waterfall=new x(this))}function b(){let f=this.axes;for(let M of this.series)if(M.options.stacking){for(let L of f)L.isXAxis||(L.waterfall.stacks.changed=!0);break}}g.compose=function(f,M){c(a,"Axis.Waterfall")&&(l(f,"init",y),l(f,"afterBuildStacks",d),l(f,"afterRender",p),l(M,"beforeRedraw",b))};class x{constructor(M){this.axis=M,this.stacks={changed:!1}}renderStackTotals(){let M=this.axis,L=M.waterfall.stacks,_=M.stacking&&M.stacking.stackTotalGroup,w=new s(M,M.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=w,_&&h(L,k=>{h(k,(z,O)=>{w.total=z.stackTotal,w.x=+O,z.label&&(w.label=z.label),s.prototype.render.call(w,_),z.label=w.label,delete w.label})}),w.total=null}}g.Composition=x}(o||(o={})),o}),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(i,s,r){let{isNumber:o}=r;class a extends i.prototype.pointClass{getClassName(){let h=s.prototype.getClassName.call(this);return this.isSum?h+=" highcharts-sum":this.isIntermediateSum&&(h+=" highcharts-intermediate-sum"),h}isValid(){return o(this.y)||this.isSum||!!this.isIntermediateSum}}return a}),e(t,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),e(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(i,s,r,o,a){let{column:l,line:h}=i.seriesTypes,{addEvent:c,arrayMax:g,arrayMin:d,correctFloat:p,crisp:y,extend:b,isNumber:x,merge:f,objectEach:M,pick:L}=s;function _(k,z){return Object.hasOwnProperty.call(k,z)}class w extends l{generatePoints(){l.prototype.generatePoints.apply(this);for(let z=0,O=this.points.length;z0?C:void 0);let A=l.prototype.pointAttribs.call(this,z,O);return delete A.dashstyle,A}getGraphPath(){return[["M",0,0]]}getCrispPath(){let z=this.data.filter(P=>x(P.y)),O=this.yAxis,C=z.length,A=this.graph?.strokeWidth()||0,F=this.xAxis.reversed,S=this.yAxis.reversed,T=this.options.stacking,D=[];for(let P=1;P0?-I.height:0;if(E&&I&&m){let j,G=E[P-1];if(T){let W=G.connectorThreshold;j=y(O.translate(W,!1,!0,!1,!0)+(S?R:0),A)}else j=y(I.y+(u.minPointLengthOffset||0),A);D.push(["M",(I.x||0)+(F?0:I.width||0),j],["L",(m.x||0)+(F&&m.width||0),j])}if(I&&D.length&&(!T&&v<0&&!S||v>0&&S)){let j=D[D.length-2];j&&typeof j[2]=="number"&&(j[2]+=I.height||0);let G=D[D.length-1];G&&typeof G[2]=="number"&&(G[2]+=I.height||0)}}return D}drawGraph(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(z){let O=this.options,C=z.waterfall?.stacks,A=O.threshold||0,F=this.stackKey,S=this.xData,T=S.length,D=A,P=D,m,u=0,v=0,I=0,E,R,j,G,W,N,B,X,V=(H,K,U,Y)=>{if(m){if(E)for(;UB.indexOf(F)&&(X=!0),C[F]||(C[F]={});let H=C[F];if(H)for(let K=0;K=0?m.posTotal+=W:m.negTotal+=W,G=O.data[K],R=m.absolutePos=m.posTotal,j=m.absoluteNeg=m.negTotal,m.stackTotal=R+j,E=m.stackState.length,G&&G.isIntermediateSum?(V(I,v,0,I),I=v,v=A,D^=P,P^=D,D^=P):G&&G.isSum?(V(A,u,E,0),D=A):(V(D,W,0,u),G&&(u+=W,v+=W)),m.stateIndex++,m.threshold=D,D+=m.stackTotal;C.changed=!1,C.alreadyChanged||(C.alreadyChanged=[]),C.alreadyChanged.push(F)}}getExtremes(){let z,O,C,A=this.options.stacking;return A?(z=this.yAxis.waterfall.stacks,O=this.stackedYNeg=[],C=this.stackedYPos=[],A==="overlap"?M(z[this.stackKey],function(F){O.push(d(F.stackState)),C.push(g(F.stackState))}):M(z[this.stackKey],function(F){O.push(F.negTotal+F.threshold),C.push(F.posTotal+F.threshold)}),{dataMin:d(O),dataMax:g(C)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return w.defaultOptions=f(l.defaultOptions,a),w.compose=r.compose,b(w.prototype,{pointValKey:"y",showLine:!0,pointClass:o}),c(w,"afterColumnTranslate",function(){let{options:k,points:z,yAxis:O}=this,C=L(k.minPointLength,5),A=C/2,F=k.threshold||0,S=k.stacking,T=O.waterfall.stacks[this.stackKey],D=F,P=F,m,u,v,I;for(let E=0;E=0?u:u-N,_(V,"absolutePos")&&delete V.absolutePos,_(V,"absoluteNeg")&&delete V.absoluteNeg):(N>=0?(u=V.threshold+V.posTotal,V.posTotal-=N,m=u):(u=V.threshold+V.negTotal,V.negTotal-=N,m=u-N),!V.posTotal&&x(V.absolutePos)&&_(V,"absolutePos")&&(V.posTotal=V.absolutePos,delete V.absolutePos),!V.negTotal&&x(V.absoluteNeg)&&_(V,"absoluteNeg")&&(V.negTotal=V.absoluteNeg,delete V.absoluteNeg)),R.isSum||(V.connectorThreshold=V.threshold+V.stackTotal),O.reversed?(v=N>=0?m-N:m+N,I=m):(v=m,I=m-N),R.below=v<=F,G.y=O.translate(v,!1,!0,!1,!0),G.height=Math.abs(G.y-O.translate(I,!1,!0,!1,!0));let H=O.waterfall.dummyStackItem;H&&(H.x=E,H.label=T[E].label,H.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[E],this.stackedYPos[E],void 0,this.xAxis))}}else m=Math.max(P,P+N)+W[0],G.y=O.translate(m,!1,!0,!1,!0),R.isSum?(G.y=O.translate(W[1],!1,!0,!1,!0),G.height=Math.min(O.translate(W[0],!1,!0,!1,!0),O.len)-G.y,R.below=W[1]<=F):R.isIntermediateSum?(N>=0?(v=W[1]+D,I=D):(v=D,I=W[1]+D),O.reversed&&(v^=I,I^=v,v^=I),G.y=O.translate(v,!1,!0,!1,!0),G.height=Math.abs(G.y-Math.min(O.translate(I,!1,!0,!1,!0),O.len)),D+=W[1],R.below=v<=F):(G.height=j>0?O.translate(P,!1,!0,!1,!0)-G.y:O.translate(P,!1,!0,!1,!0)-O.translate(P-j,!1,!0,!1,!0),P+=j,R.below=P{"use strict";(function(n){typeof ho=="object"&&ho.exports?(n.default=n,ho.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(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}}}),e(t,"Extensions/Breadcrumbs/Breadcrumbs.js",[t["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{format:a}=s,{composed:l}=r,{addEvent:h,defined:c,extend:g,fireEvent:d,isString:p,merge:y,objectEach:b,pick:x,pushUnique:f}=o;function M(){if(this.breadcrumbs){let O=this.resetZoomButton&&this.resetZoomButton.getBBox(),C=this.breadcrumbs.options;O&&C.position.align==="right"&&C.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-O.width-C.buttonSpacing)}}function L(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function _(){let O=this.breadcrumbs;if(O&&!O.options.floating&&O.level){let C=O.options,A=C.buttonTheme,F=(A.height||0)+2*(A.padding||0)+C.buttonSpacing,S=C.position.verticalAlign;S==="bottom"?(this.marginBottom=(this.marginBottom||0)+F,O.yOffset=F):S!=="middle"?(this.plotTop+=F,O.yOffset=-F):O.yOffset=void 0}}function w(){this.breadcrumbs&&this.breadcrumbs.redraw()}function k(O){O.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class z{static compose(C,A){f(l,"Breadcrumbs")&&(h(C,"destroy",L),h(C,"afterShowResetZoom",M),h(C,"getMargins",_),h(C,"redraw",w),h(C,"selection",k),g(A.lang,i.lang))}constructor(C,A){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let F=y(C.options.drilldown&&C.options.drilldown.drillUpButton,z.defaultOptions,C.options.navigation&&C.options.navigation.breadcrumbs,A);this.chart=C,this.options=F||{}}updateProperties(C){this.setList(C),this.setLevel(),this.isDirty=!0}setList(C){this.list=C}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(C){let A=this.chart,F=this.options,S=A.options.lang,T=x(F.format,F.showFullPath?"{level.name}":"\u2190 {level.name}"),D=S&&x(S.drillUpText,S.mainBreadcrumb),P=F.formatter&&F.formatter(C)||a(T,{level:C.levelOptions},A)||"";return(p(P)&&!P.length||P==="\u2190 ")&&c(D)&&(P=F.showFullPath?D:"\u2190 "+D),P}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let C=this.chart,A=this.options;!this.group&&A&&(this.group=C.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:A.zIndex}).add()),A.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let C=this.chart,A=this.list,F=this.options.buttonSpacing;this.destroyListElements();let S=this.group?this.group.getBBox().width:F,T=A[A.length-2];!C.drillUpButton&&this.level>0?C.drillUpButton=this.renderButton(T,S,F):C.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(C){if(this.group){let A=this.options,F=A.buttonTheme,S=A.position,T=A.relativeTo==="chart"||A.relativeTo==="spacingBox"?void 0:"plotBox",D=this.group.getBBox(),P=2*(F.padding||0)+A.buttonSpacing;S.width=D.width+P,S.height=D.height+P;let m=y(S);C&&(m.x+=C),this.options.rtl&&(m.x+=S.width),m.y=x(m.y,this.yOffset,0),this.group.align(m,!0,T)}}renderButton(C,A,F){let S=this,T=this.chart,D=S.options,P=y(D.buttonTheme),m=T.renderer.button(S.getButtonText(C),A,F,function(u){let v,I=D.events&&D.events.click;I&&(v=I.call(S,u,C)),v!==!1&&(D.showFullPath?u.newLevel=C.level:u.newLevel=S.level-1,d(S,"up",u))},P).addClass("highcharts-breadcrumbs-button").add(S.group);return T.styledMode||m.attr(D.style),m}renderSeparator(C,A){let F=this.chart,S=this.options.separator,T=F.renderer.label(S.text,C,A,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return F.styledMode||T.css(S.style),T}update(C){y(!0,this.options,C),this.destroy(),this.isDirty=!0}updateSingleButton(){let C=this.chart,A=this.list[this.level-1];C.drillUpButton&&C.drillUpButton.attr({text:this.getButtonText(A)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(C){let A=this.elementList;b(A,(F,S)=>{(C||!A[S].updated)&&((F=A[S]).button&&F.button.destroy(),F.separator&&F.separator.destroy(),delete F.button,delete F.separator,delete A[S])}),C&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){b(this.elementList,C=>{C.updated=!1})}updateListElements(){let C=this.elementList,A=this.options.buttonSpacing,F=this.list,S=this.options.rtl,T=S?-1:1,D=function(I,E){return T*I.getBBox().width+T*E},P=function(I,E,R){I.translate(E-I.getBBox().width,R)},m=this.group?D(this.group,A):A,u,v;for(let I=0,E=F.length;I{i.graphic=c=c&&c.destroy(),typeof o=="function"&&o()};Object.keys(r).length?c.animate(r,void 0,()=>g()):g()}}}}),e(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{pie:{prototype:{pointClass:o}},scatter:{prototype:{pointClass:a}}}=s.seriesTypes,{extend:l,isNumber:h,pick:c}=r;class g extends a{constructor(){super(...arguments),this.shapeType="rect"}draw(p){i.draw(this,p)}getClassName(){let p=this.series,y=p.options,b=super.getClassName();return this.node.level<=p.nodeMap[p.rootNode].level&&this.node.children.length?b+=" highcharts-above-level":this.node.isLeaf||c(y.interactByLeaf,!y.allowTraversingTree)?this.node.isLeaf||(b+=" highcharts-internal-node"):b+=" highcharts-internal-node-interactive",b}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 l(g.prototype,{setVisible:o.prototype.setVisible}),g}),e(t,"Series/Treemap/TreemapSeriesDefaults.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{isString:r}=s;return{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){let o=this&&this.point?this.point:{};return r(o.name)?o.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:i.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1}}),e(t,"Series/Treemap/TreemapUtilities.js",[],function(){var i;return(i||(i={})).recursive=function s(r,o,a){let l=o.call(a||this,r);l!==!1&&s(l,o,a)},i}),e(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){let{extend:r,isArray:o,isNumber:a,isObject:l,merge:h,pick:c,relativeLength:g}=s;return{getColor:function(d,p){let y,b,x,f,M,L,_=p.index,w=p.mapOptionsToLevel,k=p.parentColor,z=p.parentColorIndex,O=p.series,C=p.colors,A=p.siblings,F=O.points,S=O.chart.options.chart;return d&&(y=F[d.i],b=w[d.level]||{},y&&b.colorByPoint&&(f=y.index%(C?C.length:S.colorCount),x=C&&C[f]),O.chart.styledMode||(M=c(y&&y.options.color,b&&b.color,x,k&&(T=>{let D=b&&b.colorVariation;return D&&D.key==="brightness"&&_&&A?i.parse(T).brighten(D.to*(_/A)).get():T})(k),O.color)),L=c(y&&y.options.colorIndex,b&&b.colorIndex,f,z,p.colorIndex)),{color:M,colorIndex:L}},getLevelOptions:function(d){let p,y,b,x,f,M,L={};if(l(d))for(x=a(d.from)?d.from:1,M=d.levels,y={},p=l(d.defaults)?d.defaults:{},o(M)&&(y=M.reduce((_,w)=>{let k,z,O;return l(w)&&a(w.level)&&(z=c((O=h({},w)).levelIsConstant,p.levelIsConstant),delete O.levelIsConstant,delete O.level,l(_[k=w.level+(z?0:x-1)])?h(!0,_[k],O):_[k]=O),_},{})),f=a(d.to)?d.to:1,b=0;b<=f;b++)L[b]=h({},p,l(y[b])?y[b]:{});return L},getNodeWidth:function(d,p){let{chart:y,options:b}=d,{nodeDistance:x=0,nodeWidth:f=0}=b,{plotSizeX:M=1}=y;if(f==="auto"){if(typeof x=="string"&&/%$/.test(x))return M/(p+parseFloat(x)/100*(p-1));let L=Number(x);return(M+L)/(p||1)-L}return g(f,M)},setTreeValues:function d(p,y){let b=y.before,x=y.idRoot,f=y.mapIdToNode[x],M=y.levelIsConstant!==!1,L=y.points[p.i],_=L&&L.options||{},w=[],k=0;p.levelDynamic=p.level-(M?0:f.level),p.name=c(L&&L.name,""),p.visible=x===p.id||y.visible===!0,typeof b=="function"&&(p=b(p,y)),p.children.forEach((O,C)=>{let A=r({},y);r(A,{index:C,siblings:p.children.length,visible:p.visible}),O=d(O,A),w.push(O),O.visible&&(k+=O.val)});let z=c(_.value,k);return p.visible=z>=0&&(k>0||p.visible),p.children=w,p.childrenTotal=k,p.isLeaf=p.visible&&!k,p.val=z,p},updateRootId:function(d){let p,y;return l(d)&&(y=l(d.options)?d.options:{},p=c(d.rootNode,y.rootId,""),l(d.userOptions)&&(d.userOptions.rootId=p),d.rootNode=p),p}}}),e(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(i,s,r,o,a,l,h,c,g,d,p,y){let{parse:b}=s,{composed:x,noop:f}=o,{column:M,scatter:L}=a.seriesTypes,{getColor:_,getLevelOptions:w,updateRootId:k}=p,{addEvent:z,correctFloat:O,crisp:C,defined:A,error:F,extend:S,fireEvent:T,isArray:D,isObject:P,isString:m,merge:u,pick:v,pushUnique:I,stableSort:E}=y,R=!1;function j(){let W,N=this.xAxis,B=this.yAxis;N&&B&&(this.is("treemap")?(W={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},S(B.options,W),S(N.options,W),R=!0):R&&(B.setOptions(B.userOptions),N.setOptions(N.userOptions),R=!1))}class G extends L{static compose(N){I(x,"TreemapSeries")&&z(N,"afterBindAxes",j)}algorithmCalcPoints(N,B,X,V){let H=X.plot,K=X.elArr.length-1,U,Y,Z,q,J=X.lW,Q=X.lH,$,tt=0;for(let it of(B?(J=X.nW,Q=X.nH):$=X.elArr[K],X.elArr))(B||ttY.lP.lR&&this.algorithmCalcPoints(N,!1,Y,V,H),q===U&&this.algorithmCalcPoints(N,!0,Y,V,H),++q;return V}alignDataLabel(N,B,X){let V=X.style;V&&!A(V.textOverflow)&&B.text&&B.getBBox().width>(B.text.textWidth||0)&&B.css({textOverflow:"ellipsis",width:V.width+="px"}),M.prototype.alignDataLabel.apply(this,arguments),N.dataLabel&&N.dataLabel.attr({zIndex:(N.node.zIndex||0)+1})}calculateChildrenAreas(N,B){let X=this.options,V=this.mapOptionsToLevel[N.level+1],H=v(this[V&&V.layoutAlgorithm]&&V.layoutAlgorithm,X.layoutAlgorithm),K=X.alternateStartingDirection,U=N.children.filter(q=>!q.ignore),Y=[];V&&V.layoutStartingDirection&&(B.direction=V.layoutStartingDirection==="vertical"?0:1),Y=this[H](B,U);let Z=-1;for(let q of U){let J=Y[++Z];q.values=u(J,{val:q.childrenTotal,direction:K?1-B.direction:B.direction}),q.pointValues=u(J,{x:J.x/this.axisRatio,y:100-J.y-J.height,width:J.width/this.axisRatio}),q.children.length&&this.calculateChildrenAreas(q,q.values)}}createList(N){let B=this.chart,X=B.breadcrumbs,V=[];if(X){let H=0;V.push({level:H,levelOptions:B.series[0]});let K=N.target.nodeMap[N.newRootId],U=[];for(;K.parent||K.parent==="";)U.push(K),K=N.target.nodeMap[K.parent];for(let Y of U.reverse())V.push({level:++H,levelOptions:Y});V.length<=1&&(V.length=0)}return V}drawDataLabels(){let N,B,X=this.mapOptionsToLevel;for(let V of this.points.filter(function(H){return H.node.visible}))B=X[V.node.level],N={style:{}},V.node.isLeaf||(N.enabled=!1),B&&B.dataLabels&&(N=u(N,B.dataLabels),this.hasDataLabels=()=>!0),V.shapeArgs&&(N.style.width=V.shapeArgs.width,V.dataLabel&&V.dataLabel.css({width:V.shapeArgs.width+"px"})),V.dlOptions=u(N,V.options.dataLabels);super.drawDataLabels()}drawPoints(N=this.points){let B=this.chart,X=B.renderer,V=B.styledMode,H=this.options,K=V?{}:H.shadow,U=H.borderRadius,Y=B.pointCount{let U=K.userOptions;A(U.allowDrillToNode)&&!A(U.allowTraversingTree)&&(U.allowTraversingTree=U.allowDrillToNode,delete U.allowDrillToNode),A(U.drillUpButton)&&!A(U.traverseUpButton)&&(U.traverseUpButton=U.drillUpButton,delete U.drillUpButton)});super.init(N,B),delete X.opacity,X.eventsToUnbind.push(H),X.options.allowTraversingTree&&(X.eventsToUnbind.push(z(X,"click",X.onClickDrillToNode)),X.eventsToUnbind.push(z(X,"setRootNode",function(K){let U=X.chart;U.breadcrumbs&&U.breadcrumbs.updateProperties(X.createList(K))})),X.eventsToUnbind.push(z(X,"update",function(K,U){let Y=this.chart.breadcrumbs;Y&&K.options.breadcrumbs&&Y.update(K.options.breadcrumbs)})),X.eventsToUnbind.push(z(X,"destroy",function(K){let U=this.chart;U.breadcrumbs&&!K.keepEventsForUpdate&&(U.breadcrumbs.destroy(),U.breadcrumbs=void 0)}))),N.breadcrumbs||(N.breadcrumbs=new i(N,V)),X.eventsToUnbind.push(z(N.breadcrumbs,"up",function(K){let U=this.level-K.newLevel;for(let Y=0;YH?0:N.pointAttribs(U)["stroke-width"]||0;for(let U of B){let{pointValues:Y,visible:Z}=U.node;if(Y&&Z){let{height:q,width:J,x:Q,y:$}=Y,tt=K(U),it=C(X.toPixels(Q,!0),tt,!0),et=C(X.toPixels(Q+J,!0),tt,!0),st=C(V.toPixels($,!0),tt,!0),rt=C(V.toPixels($+q,!0),tt,!0),nt={x:Math.min(it,et),y:Math.min(st,rt),width:Math.abs(et-it),height:Math.abs(rt-st)};U.plotX=nt.x+nt.width/2,U.plotY=nt.y+nt.height/2,U.shapeArgs=nt}else delete U.plotX,delete U.plotY}}setRootNode(N,B,X){T(this,"setRootNode",S({newRootId:N,previousRootId:this.rootNode,redraw:v(B,!0),series:this},X),function(V){let H=V.series;H.idPreviousRoot=V.previousRootId,H.rootNode=V.newRootId,H.isDirty=!0,V.redraw&&H.chart.redraw()})}setState(N){this.options.inactiveOtherPoints=!0,super.setState(N,!1),this.options.inactiveOtherPoints=!1}setTreeValues(N){let B=this.options,X=this.rootNode,V=this.nodeMap[X],H=typeof B.levelIsConstant!="boolean"||B.levelIsConstant,K=[],U=this.points[N.i],Y=0;for(let q of N.children)q=this.setTreeValues(q),K.push(q),q.ignore||(Y+=q.val);E(K,(q,J)=>(q.sortIndex||0)-(J.sortIndex||0));let Z=v(U&&U.options.value,Y);return U&&(U.value=Z),S(N,{children:K,childrenTotal:Y,ignore:!(v(U&&U.visible,!0)&&Z>0),isLeaf:N.visible&&!Y,levelDynamic:N.level-(H?0:V.level),name:v(U&&U.name,""),sortIndex:v(U&&U.sortIndex,-Z),val:Z}),N}sliceAndDice(N,B){return this.algorithmFill(!0,N,B)}squarified(N,B){return this.algorithmLowAspectRatio(!0,N,B)}strip(N,B){return this.algorithmLowAspectRatio(!1,N,B)}stripes(N,B){return this.algorithmFill(!1,N,B)}translate(){let N=this,B=N.options,X=k(N),V,H,K,U;super.translate();let Y=N.tree=N.getTree();V=N.nodeMap[X],X===""||V||(N.setRootNode("",!1),X=N.rootNode,V=N.nodeMap[X]),N.mapOptionsToLevel=w({from:V.level+1,levels:B.levels,to:Y.height,defaults:{levelIsConstant:N.options.levelIsConstant,colorByPoint:B.colorByPoint}}),d.recursive(N.nodeMap[N.rootNode],Z=>{let q=Z.parent,J=!1;return Z.visible=!0,(q||q==="")&&(J=N.nodeMap[q]),J}),d.recursive(N.nodeMap[N.rootNode].children,Z=>{let q=!1;for(let J of Z)J.visible=!0,J.children.length&&(q=(q||[]).concat(J.children));return q}),N.setTreeValues(Y),N.axisRatio=N.xAxis.len/N.yAxis.len,N.nodeMap[""].pointValues=H={x:0,y:0,width:100,height:100},N.nodeMap[""].values=K=u(H,{width:H.width*N.axisRatio,direction:B.layoutStartingDirection==="vertical"?0:1,val:Y.val}),N.calculateChildrenAreas(Y,K),N.colorAxis||B.colorByPoint||N.setColorRecursive(N.tree),B.allowTraversingTree&&(U=V.pointValues,N.xAxis.setExtremes(U.x,U.x+U.width,!1),N.yAxis.setExtremes(U.y,U.y+U.height,!1),N.xAxis.setScale(),N.yAxis.setScale()),N.setPointValues()}}return G.defaultOptions=u(L.defaultOptions,g),S(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:d}),r.compose(G),a.registerSeriesType("treemap",G),G}),e(t,"masters/modules/treemap.src.js",[t["Core/Globals.js"],t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Series/Treemap/TreemapSeries.js"]],function(i,s,r){return i.Breadcrumbs=i.Breadcrumbs||s,i.Breadcrumbs.compose(i.Chart,i.defaultOptions),r.compose(i.Series),i})})});var Ku=ai((uA,co)=>{"use strict";(function(n){typeof co=="object"&&co.exports?(n.default=n,co.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r;let{parse:o}=i,{addEvent:a,extend:l,merge:h,pick:c,splat:g}=s;return function(d){let p;function y(){let{userOptions:O}=this;this.colorAxis=[],O.colorAxis&&(O.colorAxis=g(O.colorAxis),O.colorAxis.map(C=>new p(this,C)))}function b(O){let C=this.chart.colorAxis||[],A=D=>{let P=O.allItems.indexOf(D);P!==-1&&(this.destroyItem(O.allItems[P]),O.allItems.splice(P,1))},F=[],S,T;for(C.forEach(function(D){(S=D.options)&&S.showInLegend&&(S.dataClasses&&S.visible?F=F.concat(D.getDataClassLegendSymbols()):S.visible&&F.push(D),D.series.forEach(function(P){(!P.options.showInLegend||S.dataClasses)&&(P.options.legendType==="point"?P.points.forEach(function(m){A(m)}):A(P))}))}),T=F.length;T--;)O.allItems.unshift(F[T])}function x(O){O.visible&&O.item.legendColor&&O.item.legendItem.symbol.attr({fill:O.item.legendColor})}function f(O){this.chart.colorAxis?.forEach(C=>{C.update({},O.redraw)})}function M(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let O=this.axisTypes;O?O.indexOf("colorAxis")===-1&&O.push("colorAxis"):this.axisTypes=["colorAxis"]}function _(O){let C=this,A=O?"show":"hide";C.visible=C.options.visible=!!O,["graphic","dataLabel"].forEach(function(F){C[F]&&C[F][A]()}),this.series.buildKDTree()}function w(){let O=this,C=this.getPointsCollection(),A=this.options.nullColor,F=this.colorAxis,S=this.colorKey;C.forEach(T=>{let D=T.getNestedProperty(S),P=T.options.color||(T.isNull||T.value===null?A:F&&D!==void 0?F.toColor(D,T):T.color||O.color);P&&T.color!==P&&(T.color=P,O.options.legendType==="point"&&T.legendItem&&T.legendItem.label&&O.chart.legend.colorizeItem(T,T.visible))})}function k(){this.elem.attr("fill",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}function z(){this.elem.attr("stroke",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}d.compose=function(O,C,A,F,S){let T=C.prototype,D=A.prototype,P=S.prototype;T.collectionsWithUpdate.includes("colorAxis")||(p=O,T.collectionsWithUpdate.push("colorAxis"),T.collectionsWithInit.colorAxis=[T.addColorAxis],a(C,"afterGetAxes",y),function(m){let u=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return u.apply(this,arguments);let E=new p(this,h(I.axis,{index:this[v].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(R=>{R.series=[]}),this.series.forEach(R=>{R.bindAxes(),R.isDirtyData=!0}),c(I.redraw,!0)&&this.redraw(I.animation),E}}(C),D.fillSetter=k,D.strokeSetter=z,a(F,"afterGetAllItems",b),a(F,"afterColorizeItem",x),a(F,"afterUpdate",f),l(P,{optionalAxis:"colorAxis",translateColors:w}),l(P.pointClass.prototype,{setVisible:_}),a(S,"afterTranslate",M,{order:1}),a(S,"bindAxes",L))},d.pointSetVisible=_}(r||(r={})),r}),e(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}}),e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(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(i,s,r,o,a,l,h,c){let{defaultOptions:g}=a,{series:d}=h,{defined:p,extend:y,fireEvent:b,isArray:x,isNumber:f,merge:M,pick:L,relativeLength:_}=c;g.colorAxis=M(g.xAxis,r);class w extends i{static compose(z,O,C,A){s.compose(w,z,O,C,A)}constructor(z,O){super(z,O),this.coll="colorAxis",this.visible=!0,this.init(z,O)}init(z,O){let C=z.options.legend||{},A=O.layout?O.layout!=="vertical":C.layout!=="vertical";this.side=O.side||A?2:1,this.reversed=O.reversed||!A,this.opposite=!A,super.init(z,O,"colorAxis"),this.userOptions=O,x(z.userOptions.colorAxis)&&(z.userOptions.colorAxis[this.index]=O),O.dataClasses&&this.initDataClasses(O),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(z){let O=M(g.colorAxis,z,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&z.visible!==!1});super.setOptions(O),this.options.crosshair=this.options.marker}setAxisSize(){let z=this.chart,O=this.legendItem?.symbol,{width:C,height:A}=this.getSize();O&&(this.left=+O.attr("x"),this.top=+O.attr("y"),this.width=C=+O.attr("width"),this.height=A=+O.attr("height"),this.right=z.chartWidth-this.left-C,this.bottom=z.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?C:A)||w.defaultLegendLength}getOffset(){let z=this.legendItem?.group,O=this.chart.axisOffset[this.side];if(z){this.axisParent=z,super.getOffset();let C=this.chart.legend;C.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(C,A)}),C.render(),this.chart.getMargins(!0),this.chart.series.some(A=>A.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=O}}setLegendColor(){let z=this.horiz,O=this.reversed,C=O?1:0,A=O?0:1,F=z?[C,0,A,0]:[0,A,0,C];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(z,O){let C=O.legendItem||{},A=z.padding,F=z.options,S=this.options.labels,T=L(F.itemDistance,10),D=this.horiz,{width:P,height:m}=this.getSize(),u=L(F.labelPadding,D?16:30);this.setLegendColor(),C.symbol||(C.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(C.group)),C.symbol.attr({x:0,y:(z.baseline||0)-11,width:P,height:m}),C.labelWidth=P+A+(D?T:L(S.x,S.distance)+(this.maxLabelLength||0)),C.labelHeight=m+A+(D?u:0)}setState(z){this.series.forEach(function(O){O.setState(z)})}setVisible(){}getSeriesExtremes(){let z=this.series,O,C,A,F,S,T,D=z.length,P,m;for(this.dataMin=1/0,this.dataMax=-1/0;D--;){if(C=(T=z[D]).colorKey=L(T.options.colorKey,T.colorKey,T.pointValKey,T.zoneAxis,"y"),F=T.pointArrayMap,S=T[C+"Min"]&&T[C+"Max"],T[C+"Data"])O=T[C+"Data"];else if(F){if(O=[],A=F.indexOf(C),P=T.yData,A>=0&&P)for(m=0;mT+D&&(C=T+D+2),O.plotX=C,O.plotY=this.len-C,super.drawCrosshair(z,O),O.plotX=F,O.plotY=S,this.cross&&!this.cross.addedToColorAxis&&A.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(A.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(z){let O=this.left,C=z.translatedValue,A=this.top;return f(C)?this.horiz?[["M",C-4,A-6],["L",C+4,A-6],["L",C,A],["Z"]]:[["M",O,C],["L",O-6,C+6],["L",O-6,C-6],["Z"]]:super.getPlotLinePath(z)}update(z,O){let C=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(z.dataClasses&&C.allItems||this.dataClasses)&&this.destroyItems(),super.update(z,O),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),C.colorizeItem(this,!0))}destroyItems(){let z=this.chart,O=this.legendItem||{};if(O.label)z.legend.destroyItem(this);else if(O.labels)for(let C of O.labels)z.legend.destroyItem(C);z.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(z){this.destroyItems(),super.remove(z)}getDataClassLegendSymbols(){let z,O=this,C=O.chart,A=O.legendItem&&O.legendItem.labels||[],F=C.options.legend,S=L(F.valueDecimals,-1),T=L(F.valueSuffix,""),D=P=>O.series.reduce((m,u)=>(m.push(...u.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let u=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",u===void 0?z="< ":v===void 0&&(z="> "),u!==void 0&&(z+=I(u,S)+T),u!==void 0&&v!==void 0&&(z+=" - "),v!==void 0&&(z+=I(v,S)+T),A.push(y({chart:C,name:z,options:{},drawLegendSymbol:l.rectangle,visible:!0,isDataClass:!0,setState:R=>{for(let j of D(m))j.setState(R)},setVisible:function(){this.visible=E=O.visible=!E;let R=[];for(let j of D(m))j.setVisible(E),j.hiddenInDataClass=!E,R.indexOf(j.series)===-1&&R.push(j.series);C.legend.colorizeItem(this,E),R.forEach(j=>{b(j,"afterDataClassLegendClick")})}},P))}),A}getSize(){let{chart:z,horiz:O}=this,{height:C,width:A}=this.options,{legend:F}=z.options;return{width:L(p(A)?_(A,z.chartWidth):void 0,F?.symbolWidth,O?w.defaultLegendLength:12),height:L(p(C)?_(C,z.chartHeight):void 0,F?.symbolHeight,O?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],y(w.prototype,o),Array.prototype.push.apply(i.keepProps,w.keepProps),w}),e(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(i,s){return i.ColorAxis=i.ColorAxis||s,i.ColorAxis.compose(i.Chart,i.Fx,i.Legend,i.Series),i}),e(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{column:{prototype:a}}=i.seriesTypes,{addEvent:l,defined:h}=r;return function(c){function g(d){let p=this.series,y=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(y,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),d?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${y.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(d){let p={};return h(d.color)&&(!d.state||d.state==="normal")&&(p[this.colorProp||"fill"]=d.color),p},pointAttribs:a.pointAttribs},c.compose=function(d){return l(d.prototype.pointClass,"afterSetState",g),d}}(o||(o={})),o}),e(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:{prototype:{pointClass:r}}}=i.seriesTypes,{clamp:o,defined:a,extend:l,pick:h}=s;class c extends r{applyOptions(d,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(d,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let d=this.series,p=d.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=d.xAxis,f=d.yAxis,M=this.options.marker||d.options.marker,L=d.pointPlacementToXValue(),_=h(this.pointPadding,p.pointPadding,0),w={x1:o(Math.round(x.len-x.translate(this.x-y,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:o(Math.round(x.len-x.translate(this.x+y,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:o(Math.round(f.translate(this.y-b,!1,!0,!1,!0)),-f.len,2*f.len),y2:o(Math.round(f.translate(this.y+b,!1,!0,!1,!0)),-f.len,2*f.len)};for(let k of[["width","x"],["height","y"]]){let z=k[0],O=k[1],C=O+"1",A=O+"2",F=Math.abs(w[C]-w[A]),S=M&&M.lineWidth||0,T=Math.abs(w[C]+w[A])/2,D=M&&M[z];if(a(D)&&D"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),e(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{doc:r}=i,{defined:o,pick:a}=s;return{colorFromPoint:function(l,h){let c=h.series.colorAxis;if(c){let g=c.toColor(l||0,h).split(")")[0].split("(")[1].split(",").map(d=>a(parseFloat(d),parseInt(d,10)));return g[3]=255*a(g[3],1),o(l)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(l){let{canvas:h,context:c}=l;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(l.canvas=r.createElement("canvas"),l.context=l.canvas.getContext("2d",{willReadFrequently:!0})||void 0,l.context)}}}),e(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(i,s,r,o,a,l,h,c){let{series:g,seriesTypes:{column:d,scatter:p}}=a,{prototype:{symbols:y}}=l,{addEvent:b,extend:x,fireEvent:f,isNumber:M,merge:L,pick:_}=h,{colorFromPoint:w,getContext:k}=c;class z extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let C=this,A=C.options,F=A.interpolation,S=A.marker||{};if(F){let{image:T,chart:D,xAxis:P,yAxis:m}=C,{reversed:u=!1,len:v}=P,{reversed:I=!1,len:E}=m,R={width:v,height:E};if(!T||C.isDirtyData||C.isDirtyCanvas){let j=k(C),{canvas:G,options:{colsize:W=1,rowsize:N=1},points:B,points:{length:X}}=C,V=D.colorAxis&&D.colorAxis[0];if(G&&j&&V){let{min:H,max:K}=P.getExtremes(),{min:U,max:Y}=m.getExtremes(),Z=K-H,q=Y-U,J=Math.round(Z/W/8*8),Q=Math.round(q/N/8*8),[$,tt]=[[J,J/Z,u,"ceil"],[Q,Q/q,!I,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),it=G.width=J+1,et=it*(G.height=Q+1),st=(X-1)/et,rt=new Uint8ClampedArray(4*et),nt=(ot,at)=>4*Math.ceil(it*tt(at-U)+$(ot-H));C.buildKDTree();for(let ot=0;ot{T.graphic&&(T.graphic[C.chart.styledMode?"css":"animate"](C.colorAttribs(T)),T.value===null&&T.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:C,dataMax:A}=g.prototype.getExtremes.call(this,this.valueData);return M(C)&&(this.valueMin=C),M(A)&&(this.valueMax=A),g.prototype.getExtremes.call(this)}getValidPoints(C,A){return g.prototype.getValidPoints.call(this,C,A,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let C=this.options;C.pointRange=_(C.pointRange,C.colsize||1),this.yAxis.axisPointRange=C.rowsize||1,y.ellipse=y.circle,C.marker&&M(C.borderRadius)&&(C.marker.r=C.borderRadius)}markerAttribs(C,A){let F=C.shapeArgs||{};if(C.hasImage)return{x:C.plotX,y:C.plotY};if(A&&A!=="normal"){let S=C.options.marker||{},T=this.options.marker||{},D=T.states&&T.states[A]||{},P=S.states&&S.states[A]||{},m=(P.width||D.width||F.width||0)+(P.widthPlus||D.widthPlus||0),u=(P.height||D.height||F.height||0)+(P.heightPlus||D.heightPlus||0);return{x:(F.x||0)+((F.width||0)-m)/2,y:(F.y||0)+((F.height||0)-u)/2,width:m,height:u}}return F}pointAttribs(C,A){let F=g.prototype.pointAttribs.call(this,C,A),S=this.options||{},T=this.chart.options.plotOptions||{},D=T.series||{},P=T.heatmap||{},m=C&&C.options.borderColor||S.borderColor||P.borderColor||D.borderColor,u=C&&C.options.borderWidth||S.borderWidth||P.borderWidth||D.borderWidth||F["stroke-width"];if(F.stroke=C&&C.marker&&C.marker.lineColor||S.marker&&S.marker.lineColor||m||this.color,F["stroke-width"]=u,A&&A!=="normal"){let v=L(S.states&&S.states[A],S.marker&&S.marker.states&&S.marker.states[A],C&&C.options.states&&C.options.states[A]||{});F.fill=v.color||i.parse(F.fill).brighten(v.brightness||0).get(),F.stroke=v.lineColor||F.stroke}return F}translate(){let{borderRadius:C,marker:A}=this.options,F=A&&A.symbol||"rect",S=y[F]?F:"rect",T=["circle","square"].indexOf(S)!==-1;if(!this.processedXData){let{xData:D,yData:P}=this.getProcessedData();this.processedXData=D,this.processedYData=P}for(let D of(this.generatePoints(),this.points)){let P=D.getCellAttributes(),m=Math.min(P.x1,P.x2),u=Math.min(P.y1,P.y2),v=Math.max(Math.abs(P.x2-P.x1),0),I=Math.max(Math.abs(P.y2-P.y1),0);if(D.hasImage=(D.marker&&D.marker.symbol||F||"").indexOf("url")===0,T){let E=Math.abs(v-I);m=Math.min(P.x1,P.x2)+(v{"use strict";(function(n){typeof uo=="object"&&uo.exports?(n.default=n,uo.exports=n):typeof define=="function"&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Math3D.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{deg2rad:r}=i,{pick:o}=s;function a(c,g,d,p){let y=g.options.chart.options3d,b=o(p,!!d&&g.inverted),x={x:g.plotWidth/2,y:g.plotHeight/2,z:y.depth/2,vd:o(y.depth,1)*o(y.viewDistance,0)},f=g.scale3d||1,M=r*y.beta*(b?-1:1),L=r*y.alpha*(b?-1:1),_={cosA:Math.cos(L),cosB:Math.cos(-M),sinA:Math.sin(L),sinB:Math.sin(-M)};return d||(x.x+=g.plotLeft,x.y+=g.plotTop),c.map(function(w){var k,z,O;let C=(k=(b?w.y:w.x)-x.x,z=(b?w.x:w.y)-x.y,O=(w.z||0)-x.z,{x:_.cosB*k-_.sinB*O,y:-_.sinA*_.sinB*k+_.cosA*z-_.cosB*_.sinA*O,z:_.cosA*_.sinB*k+_.sinA*z+_.cosA*_.cosB*O}),A=l(C,x,x.vd);return A.x=A.x*f+x.x,A.y=A.y*f+x.y,A.z=C.z*f+x.z,{x:b?A.y:A.x,y:b?A.x:A.y,z:A.z}})}function l(c,g,d){let p=d>0&&d=0?0:360),D.beta=D.beta%360+(D.beta>=0?0:360));let P=this.inverted,m=this.clipBox,u=this.margin;m[P?"y":"x"]=-(u[3]||0),m[P?"x":"y"]=-(u[0]||0),m[P?"height":"width"]=this.chartWidth+(u[3]||0)+(u[1]||0),m[P?"width":"height"]=this.chartHeight+(u[0]||0)+(u[2]||0),this.scale3d=1,D.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(D.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function z(){this.is3d()&&(this.isDirtyBox=!0)}function O(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function C(){this.chart3d||(this.chart3d=new T(this))}function A(D){return this.is3d()||D.apply(this,[].slice.call(arguments,1))}function F(D){let P,m=this.series.length;if(this.is3d())for(;m--;)(P=this.series[m]).translate(),P.render();else D.call(this)}function S(D){D.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(D,P){let m=D.prototype,u=P.prototype;m.is3d=function(){return!!this.options.chart.options3d?.enabled},m.propsRequireDirtyBox.push("chart.options3d"),m.propsRequireUpdateSeries.push("chart.options3d"),u.matrixSetter=function(){let v;if(this.pos<1&&(p(this.start)||p(this.end))){let I=this.start||[1,0,0,1,0,0],E=this.end||[1,0,0,1,0,0];v=[];for(let R=0;R<6;R++)v.push(this.pos*E[R]+(1-this.pos)*I[R])}else v=this.end;this.elem.attr(this.prop,v,null,!0)},y(!0,h,f.defaultOptions),d(D,"init",C),d(D,"addSeries",M),d(D,"afterDrawChartBox",L),d(D,"afterGetContainer",_),d(D,"afterInit",w),d(D,"afterSetChartSize",k),d(D,"beforeRedraw",z),d(D,"beforeRender",O),x(m,"isInsidePlot",A),x(m,"renderSeries",F),x(m,"setClassName",S)};class T{constructor(P){this.chart=P}get3dFrame(){let P=this.chart,m=P.options.chart.options3d,u=m.frame,v=P.plotLeft,I=P.plotLeft+P.plotWidth,E=P.plotTop,R=P.plotTop+P.plotHeight,j=m.depth,G=function(Q){let $=g(Q,P);return $>.5?1:$<-.5?-1:0},W=G([{x:v,y:R,z:j},{x:I,y:R,z:j},{x:I,y:R,z:0},{x:v,y:R,z:0}]),N=G([{x:v,y:E,z:0},{x:I,y:E,z:0},{x:I,y:E,z:j},{x:v,y:E,z:j}]),B=G([{x:v,y:E,z:0},{x:v,y:E,z:j},{x:v,y:R,z:j},{x:v,y:R,z:0}]),X=G([{x:I,y:E,z:j},{x:I,y:E,z:0},{x:I,y:R,z:0},{x:I,y:R,z:j}]),V=G([{x:v,y:R,z:0},{x:I,y:R,z:0},{x:I,y:E,z:0},{x:v,y:E,z:0}]),H=G([{x:v,y:E,z:j},{x:I,y:E,z:j},{x:I,y:R,z:j},{x:v,y:R,z:j}]),K=!1,U=!1,Y=!1,Z=!1;[].concat(P.xAxis,P.yAxis,P.zAxis).forEach(function(Q){Q&&(Q.horiz?Q.opposite?U=!0:K=!0:Q.opposite?Z=!0:Y=!0)});let q=function(Q,$,tt){let it=["size","color","visible"],et={};for(let rt=0;rt0),{size:b(et.size,1),color:b(et.color,"none"),frontFacing:$>0,visible:st}},J={axes:{},bottom:q([u.bottom,u.top,u],W,K),top:q([u.top,u.bottom,u],N,U),left:q([u.left,u.right,u.side,u],B,Y),right:q([u.right,u.left,u.side,u],X,Z),back:q([u.back,u.front,u],H,!0),front:q([u.front,u.back,u],V,!1)};if(m.axisLabelPosition==="auto"){let Q=function(nt,ot){return nt.visible!==ot.visible||nt.visible&&ot.visible&&nt.frontFacing!==ot.frontFacing},$=[];Q(J.left,J.front)&&$.push({y:(E+R)/2,x:v,z:0,xDir:{x:1,y:0,z:0}}),Q(J.left,J.back)&&$.push({y:(E+R)/2,x:v,z:j,xDir:{x:0,y:0,z:-1}}),Q(J.right,J.front)&&$.push({y:(E+R)/2,x:I,z:0,xDir:{x:0,y:0,z:1}}),Q(J.right,J.back)&&$.push({y:(E+R)/2,x:I,z:j,xDir:{x:-1,y:0,z:0}});let tt=[];Q(J.bottom,J.front)&&tt.push({x:(v+I)/2,y:R,z:0,xDir:{x:1,y:0,z:0}}),Q(J.bottom,J.back)&&tt.push({x:(v+I)/2,y:R,z:j,xDir:{x:-1,y:0,z:0}});let it=[];Q(J.top,J.front)&&it.push({x:(v+I)/2,y:E,z:0,xDir:{x:1,y:0,z:0}}),Q(J.top,J.back)&&it.push({x:(v+I)/2,y:E,z:j,xDir:{x:-1,y:0,z:0}});let et=[];Q(J.bottom,J.left)&&et.push({z:(0+j)/2,y:R,x:v,xDir:{x:0,y:0,z:-1}}),Q(J.bottom,J.right)&&et.push({z:(0+j)/2,y:R,x:I,xDir:{x:0,y:0,z:1}});let st=[];Q(J.top,J.left)&&st.push({z:(0+j)/2,y:E,x:v,xDir:{x:0,y:0,z:-1}}),Q(J.top,J.right)&&st.push({z:(0+j)/2,y:E,x:I,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,P,!1),ht=0;for(let lt=1;ltat*ct[ht][ot]||at*ct[lt][ot]==at*ct[ht][ot]&&ct[lt].zG.minX&&(N=Math.min(N,1-Math.abs((u+R)/(G.minX+R))%1)),vG.minY&&(N=G.minY<0?Math.min(N,(I+j)/(-G.minY+I+j)):Math.min(N,1-(I+j)/(G.minY+j)%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))})),M.reversed=!0;let _=b.call(this,M,!0,!0);if(_[0]&&_[0][0]==="M"&&(_[0]=["L",_[0][1],_[0][2]]),this.areaPath){let w=this.areaPath.splice(0,this.areaPath.length/2).concat(_);w.xMap=this.areaPath.xMap,this.areaPath=w}return this.graphPath=y,y}return{compose:function(p){c(a,"Area3DSeries")&&g(p.prototype,"getGraphPath",d)}}}),e(t,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),e(t,"Core/Axis/Tick3DComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{composed:r}=i,{addEvent:o,extend:a,pushUnique:l,wrap:h}=s;function c(d){let p=this.axis.axis3D;p&&a(d.pos,p.fix3dPosition(d.pos))}function g(d){let p=this.axis.axis3D,y=d.apply(this,[].slice.call(arguments,1));if(p){let b=y[0],x=y[1];if(b[0]==="M"&&x[0]==="L"){let f=[p.fix3dPosition({x:b[1],y:b[2],z:0}),p.fix3dPosition({x:x[1],y:x[2],z:0})];return this.axis.chart.renderer.toLineSegments(f)}}return y}return{compose:function(d){l(r,"Axis.Tick3D")&&(o(d,"afterGetLabelPosition",c),h(d.prototype,"getMarkPath",g))}}}),e(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(i,s,r,o,a,l){let{defaultOptions:h}=s,{deg2rad:c}=r,{perspective:g,perspective3D:d,shapeArea:p}=o,{addEvent:y,merge:b,pick:x,wrap:f}=l;function M(){let F=this.chart,S=this.options;F.is3d&&F.is3d()&&this.coll!=="colorAxis"&&(S.tickWidth=x(S.tickWidth,0),S.gridLineWidth=x(S.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 _(){this.axis3D||(this.axis3D=new A(this))}function w(F){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:F.apply(this,[].slice.call(arguments,1))}function k(F){if(!this.chart.is3d()||this.coll==="colorAxis")return F.apply(this,[].slice.call(arguments,1));let S=arguments,T=S[1],D=S[2],P=[],m=this.getPlotLinePath({value:T}),u=this.getPlotLinePath({value:D});if(m&&u)for(let v=0;vp(g([S,{x:S.x+X.x,y:S.y+X.y,z:S.z+X.z},{x:S.x+V.x,y:S.y+V.y,z:S.z+V.z}],D.chart))&&(X={x:-X.x,y:-X.y,z:-X.z});let U=g([{x:S.x,y:S.y,z:S.z},{x:S.x+X.x,y:S.y+X.y,z:S.z+X.z},{x:S.x+V.x,y:S.y+V.y,z:S.z+V.z}],D.chart);K.matrix=[U[1].x-U[0].x,U[1].y-U[0].y,U[2].x-U[0].x,U[2].y-U[0].y,K.x,K.y],K.matrix[4]-=K.x*K.matrix[0]+K.y*K.matrix[2],K.matrix[5]-=K.x*K.matrix[1]+K.y*K.matrix[3]}return K}swapZ(S,T){let D=this.axis;if(D.isZAxis){let P=T?0:D.chart.plotLeft;return{x:P+S.z,y:S.y,z:S.x-P}}return S}}return A}),e(t,"Core/Series/Series3D.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{composed:a}=i,{perspective:l}=s,{addEvent:h,extend:c,isNumber:g,merge:d,pick:p,pushUnique:y}=o;class b extends r{static compose(f){y(a,"Core.Series3D")&&(h(f,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),c(f.prototype,{translate3dPoints:b.prototype.translate3dPoints}))}translate3dPoints(){let f,M,L=this,_=L.options,w=L.chart,k=p(L.zAxis,w.options.zAxis[0]),z=[],O=[],C=_.stacking?g(_.stack)?_.stack:0:L.index||0;L.zPadding=C*(_.depth||0+(_.groupZPadding||1)),L.data.forEach(F=>{k&&k.translate?(M=k.logarithmic&&k.val2lin?k.val2lin(F.z):F.z,F.plotZ=k.translate(M),F.isInside=!!F.isInside&&M>=k.min&&M<=k.max):F.plotZ=L.zPadding,F.axisXpos=F.plotX,F.axisYpos=F.plotY,F.axisZpos=F.plotZ,z.push({x:F.plotX,y:F.plotY,z:F.plotZ}),O.push(F.plotX||0)}),L.rawPointsX=O;let A=l(z,w,!0);L.data.forEach((F,S)=>{f=A[S],F.plotX=f.x,F.plotY=f.y,F.plotZ=f.z})}}return b.defaultOptions=d(r.defaultOptions),b}),e(t,"Core/Renderer/SVG/SVGElement3D.js",[t["Core/Color/Color.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{parse:o}=i,{Element:a}=s.getRendererType().prototype,{defined:l,pick:h}=r;class c extends a{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(d){let p=this.renderer,y=p[this.pathType+"Path"](d),b=y.zIndexes;for(let x of this.parts){let f={class:"highcharts-3d-"+x,zIndex:b[x]||0};p.styledMode&&(x==="top"?f.filter="url(#highcharts-brighter)":x==="side"&&(f.filter="url(#highcharts-darker)")),this[x]=p.path(y[x]).attr(f).add(this)}this.attr({"stroke-linejoin":"round",zIndex:b.group}),this.forcedSides=y.forcedSides}singleSetterForParts(d,p,y,b,x,f){let M={},L=[null,null,b||"attr",x,f],_=y&&y.zIndexes;if(y){for(let w of(_&&_.group&&this.attr({zIndex:_.group}),Object.keys(y)))M[w]={},M[w][d]=y[w],_&&(M[w].zIndex=y.zIndexes[w]||0);L[1]=M}else M[d]=p,L[0]=M;return this.processParts.apply(this,L)}processParts(d,p,y,b,x){for(let f of this.parts)p&&(d=h(p[f],!1)),d!==!1&&this[f][y](d,b,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(d,p,y,b){if(typeof d=="string"&&p!==void 0){let x=d;(d={})[x]=p}return d.shapeArgs||l(d.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](d.shapeArgs||d)):super.attr(d,void 0,y,b)}animate(d,p,y){if(l(d.x)&&l(d.y)){let b=this.renderer[this.pathType+"Path"](d),x=b.forcedSides;this.singleSetterForParts("d",null,b,"animate",p,y),this.attr({zIndex:b.zIndexes.group}),x===this.forcedSides||(this.forcedSides=x,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(d,p,y);return this}fillSetter(d){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:d,top:o(d).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:o(d).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=d,this}}return c.types={base:c,cuboid:c},c}),e(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(i,s,r,o,a,l){var h;let{animObject:c}=i,{parse:g}=s,{charts:d,deg2rad:p}=r,{perspective:y,shapeArea:b}=o,{defined:x,extend:f,merge:M,pick:L}=l,_=Math.cos,w=Math.sin,k=Math.PI,z=4*(Math.sqrt(2)-1)/3/(k/2);function O(C,A,F,S,T,D,P,m){let u=D-T,v=[];return D>T&&D-T>Math.PI/2+1e-4?v=(v=v.concat(O(C,A,F,S,T,T+Math.PI/2,P,m))).concat(O(C,A,F,S,T+Math.PI/2,D,P,m)):DMath.PI/2+1e-4?v=(v=v.concat(O(C,A,F,S,T,T-Math.PI/2,P,m))).concat(O(C,A,F,S,T-Math.PI/2,D,P,m)):[["C",C+F*Math.cos(T)-F*z*u*Math.sin(T)+P,A+S*Math.sin(T)+S*z*u*Math.cos(T)+m,C+F*Math.cos(D)+F*z*u*Math.sin(D)+P,A+S*Math.sin(D)-S*z*u*Math.cos(D)+m,C+F*Math.cos(D)+P,A+S*Math.sin(D)+m]]}return function(C){function A(I,E){let R=[];for(let j of I)R.push(["L",j.x,j.y]);return I.length&&(R[0][0]="M",E&&R.push(["Z"])),R}function F(I){let E=[],R=!0;for(let j of I)E.push(R?["M",j.x,j.y]:["L",j.x,j.y]),R=!R;return E}function S(I){let E=this,R=E.Element.prototype,j=E.createElement("path");return j.vertexes=[],j.insidePlotArea=!1,j.enabled=!0,j.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 W=d[E.chartIndex],N=y(this.vertexes,W,this.insidePlotArea),B=E.toLinePath(N,!0),X=b(N);G.d=B,G.visibility=this.enabled&&X>0?"inherit":"hidden"}return R.attr.apply(this,arguments)},j.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 W=d[E.chartIndex],N=y(this.vertexes,W,this.insidePlotArea),B=E.toLinePath(N,!0),X=b(N),V=this.enabled&&X>0?"visible":"hidden";G.d=B,this.attr("visibility",V)}return R.animate.apply(this,arguments)},j.attr(I)}function T(I){let E=this,R=E.Element.prototype,j=E.g(),G=j.destroy;return this.styledMode||j.attr({"stroke-linejoin":"round"}),j.faces=[],j.destroy=function(){for(let W=0;WW.faces.length;)j.faces.pop().destroy();for(;j.faces.lengthW.faces.length;)j.faces.pop().destroy();for(;j.faces.lengthG===0&&st>1&&st<6?{x:U[st].x,y:U[st].y+10,z:U[st].z}:U[0].x===U[7].x&&st>=4?{x:U[st].x+10,y:U[st].y,z:U[st].z}:N===0&&st<2||st>5?{x:U[st].x,y:U[st].y,z:U[st].z+10}:U[st],Z=st=>U[st],q=(st,rt,nt)=>{let ot=st.map(Z),at=rt.map(Z),ct=st.map(Y),ht=rt.map(Y),lt=[[],-1];return 0>b(ot)?lt=[ot,0]:0>b(at)?lt=[at,1]:nt&&(V.push(nt),lt=0>b(ct)?[ot,0]:0>b(ht)?[at,1]:[ot,0]),lt},J=(H=q([3,2,1,0],[7,6,5,4],"front"))[0],Q=H[1],$=(H=q([1,6,7,0],[4,5,2,3],"top"))[0],tt=H[1],it=(H=q([1,2,5,6],[0,7,4,3],"side"))[0],et=H[1];return et===1?K+=1e6*(B.plotWidth-E):et||(K+=1e6*E),K+=10*(!tt||X>=0&&X<=180||X<360&&X>357.5?B.plotHeight-R:10+R),Q===1?K+=100*j:Q||(K+=100*(1e3-j)),{front:this.toLinePath(J,!0),top:this.toLinePath($,!0),side:this.toLinePath(it,!0),zIndexes:{group:Math.round(K)},forcedSides:V,isFront:Q,isTop:tt}}function u(I){let E=this.g(),R=this.Element.prototype,j=["x","y","r","innerR","start","end","depth"];function G(W){let N={},B=!1,X;for(X in W=M(W))j.indexOf(X)!==-1&&(N[X]=W[X],delete W[X],B=!0);return!!B&&[N,W]}for(let W of((I=M(I)).alpha=(I.alpha||0)*p,I.beta=(I.beta||0)*p,E.top=this.path(),E.side1=this.path(),E.side2=this.path(),E.inn=this.path(),E.out=this.path(),E.onAdd=function(){let N=E.parentGroup,B=E.attr("class");for(let X of(E.top.add(E),["out","inn","side1","side2"]))E[X].attr({class:B+" highcharts-3d-side"}).add(N)},["addClass","removeClass"]))E[W]=function(){let N=arguments;for(let B of["top","out","inn","side1","side2"])E[B][W].apply(E[B],N)};for(let W of(E.setPaths=function(N){let B=E.renderer.arc3dPath(N),X=100*B.zTop;E.attribs=N,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=X,E.attr({zIndex:X}),N.center&&(E.top.setRadialReference(N.center),delete N.center)},E.setPaths(I),E.fillSetter=function(N){let B=g(N).brighten(-.1).get();return this.fill=N,this.side1.attr({fill:B}),this.side2.attr({fill:B}),this.inn.attr({fill:B}),this.out.attr({fill:B}),this.top.attr({fill:N}),this},["opacity","translateX","translateY","visibility"]))E[W+"Setter"]=function(N,B){for(let X of(E[B]=N,["out","inn","side1","side2","top"]))E[X].attr(B,N)};return E.attr=function(W){let N,B;return typeof W=="object"&&(B=G(W))&&(N=B[0],arguments[0]=B[1],f(E.attribs,N),E.setPaths(E.attribs)),R.attr.apply(E,arguments)},E.animate=function(W,N,B){let X,V,H=this.attribs,K="data-"+Math.random().toString(26).substring(2,9);delete W.center,delete W.z,delete W.alpha,delete W.beta;let U=c(L(N,this.renderer.globalAnimation));return U.duration&&(X=G(W),E[K]=0,W[K]=1,E[K+"Setter"]=r.noop,X&&(V=X[0],U.step=function(Y,Z){let q=J=>H[J]+(L(V[J],H[J])-H[J])*Z.pos;Z.prop===K&&Z.elem.setPaths(M(H,{x:q("x"),y:q("y"),r:q("r"),innerR:q("innerR"),start:q("start"),end:q("end"),depth:q("depth")}))}),N=U),R.animate.call(this,W,N,B)},E.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),R.destroy.call(this)},E.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},E.show=function(W){this.top.show(W),this.out.show(W),this.inn.show(W),this.side1.show(W),this.side2.show(W)},E}function v(I){let E=I.x||0,R=I.y||0,j=I.start||0,G=(I.end||0)-1e-5,W=I.r||0,N=I.innerR||0,B=I.depth||0,X=I.alpha||0,V=I.beta||0,H=Math.cos(j),K=Math.sin(j),U=Math.cos(G),Y=Math.sin(G),Z=W*Math.cos(V),q=W*Math.cos(X),J=N*Math.cos(V),Q=N*Math.cos(X),$=B*Math.sin(V),tt=B*Math.sin(X),it=[["M",E+Z*H,R+q*K]];(it=it.concat(O(E,R,Z,q,j,G,0,0))).push(["L",E+J*U,R+Q*Y]),(it=it.concat(O(E,R,J,Q,G,j,0,0))).push(["Z"]);let et=V>0?Math.PI/2:0,st=X>0?0:Math.PI/2,rt=j>-et?j:G>-et?-et:j,nt=Got&&jk-st&&jMath.PI&&(se=2*Math.PI-se),se}Et=mt(Et),dt=mt(dt);let Pt=1e5*(St=mt(St)),Yt=1e5*dt,xe=1e5*Et;return{top:it,zTop:1e5*Math.PI+1,out:at,zOut:Math.max(Pt,Yt,xe),inn:ct,zInn:Math.max(Pt,Yt,xe),side1:ht,zSide1:.99*xe,side2:lt,zSide2:.99*Yt}}C.compose=function(I){let E=I.prototype;E.element3d||f(E,{Element3D:a,arc3d:u,arc3dPath:v,cuboid:P,cuboidPath:m,element3d:D,face3d:S,polyhedron:T,toLinePath:A,toLineSegments:F})}}(h||(h={})),h}),e(t,"Core/Axis/ZAxis.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(i,s,r){let{defaultOptions:o}=s,{addEvent:a,merge:l,pick:h,splat:c}=r;function g(y){return new p(this,y)}function d(){let y=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],y.forEach(b=>{this.addZAxis(b).setScale()}))}class p extends i{constructor(){super(...arguments),this.isZAxis=!0}static compose(b){let x=b.prototype;x.addZAxis||(o.zAxis=l(o.xAxis,{offset:0,lineWidth:0}),x.addZAxis=g,x.collectionsWithInit.zAxis=[x.addZAxis],x.collectionsWithUpdate.push("zAxis"),a(b,"afterGetAxes",d))}init(b,x){this.isZAxis=!0,super.init(b,x,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(b=>{if(b.reserveSpace()){let x=b.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&x<=0&&(x=void 0);let f=b.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 b=this.chart;super.setAxisSize(),this.width=this.len=b.options.chart.options3d&&b.options.chart.options3d.depth||0,this.right=b.chartWidth-this.width-this.left}}return p}),e(t,"Series/Column3D/Column3DComposition.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Utilities.js"]],function(i,s,r){let{composed:o}=i,{perspective:a}=s,{addEvent:l,extend:h,pick:c,pushUnique:g,wrap:d}=r;function p(){let C=this.chart,A=this.options,F=A.depth,S=(A.stacking?A.stack||0:this.index)*(F+(A.groupZPadding||1)),T=this.borderWidth%2?.5:0,D;for(let P of(C.inverted&&!this.yAxis.reversed&&(T*=-1),A.grouping!==!1&&(S=0),S+=A.groupZPadding||1,this.points))if(P.outside3dPlot=null,P.y!==null){let m,u=h({x:0,y:0,width:0,height:0},P.shapeArgs||{}),v=[["x","width"],["y","height"]],I=P.tooltipPos;for(let E of v)if((m=u[E[0]]-T)<0&&(u[E[1]]+=u[E[0]]+T,u[E[0]]=-T,m=0),m+u[E[1]]>this[E[0]+"Axis"].len&&u[E[1]]!==0&&(u[E[1]]=this[E[0]+"Axis"].len-u[E[0]]),u[E[1]]!==0&&(u[E[0]]>=this[E[0]+"Axis"].len||u[E[0]]+u[E[1]]<=T)){for(let R in u)u[R]=R==="y"?-9999:0;P.outside3dPlot=!0}if(P.shapeType==="roundedRect"&&(P.shapeType="cuboid"),P.shapeArgs=h(u,{z:S,depth:F,insidePlotArea:!0}),D={x:u.x+u.width/2,y:u.y,z:S+F/2},C.inverted&&(D.x=u.height,D.y=P.clientX||0),P.axisXpos=D.x,P.axisYpos=D.y,P.axisZpos=D.z,P.plot3d=a([D],C,!0,!1)[0],I){let E=a([{x:I[0],y:I[1],z:S+F/2}],C,!0,!1)[0];P.tooltipPos=[E.x,E.y]}}this.z=S}function y(){if(this.chart.is3d()){let C=this.options,A=C.grouping,F=C.stacking,S=this.yAxis.options.reversedStacks,T=0;if(!(A!==void 0&&!A)){let D,P=function(u,v){let I=u.series,E={totalStacks:0},R,j=1;return I.forEach(function(G){E[R=c(G.options.stack,v?0:I.length-1-G.index)]?E[R].series.push(G):(E[R]={series:[G],position:j},j++)}),E.totalStacks=j+1,E}(this.chart,F),m=C.stack||0;for(D=0;D=90&&u.alpha<=270&&(I.y+=A.shapeArgs.width)),I=a([I],D,!0,!1)[0],T.x=I.x-v,T.y=A.outside3dPlot?-9e9:I.y}C.apply(this,[].slice.call(arguments,1))}function z(C){return!arguments[2].outside3dPlot&&C.apply(this,[].slice.call(arguments,1))}function O(C,A){let F=C.apply(this,[].slice.call(arguments,1)),S=this.axis.chart,{width:T}=A;if(S.is3d()&&this.base){let D=+this.base.split(",")[0],P=S.series[D],m=S.options.chart.options3d;if(P&&P.type==="column"){let u={x:F.x+(S.inverted?F.height:T/2),y:F.y,z:P.options.depth/2};S.inverted&&(F.width=0,m.alpha>=90&&m.alpha<=270&&(u.y+=T)),u=a([u],S,!0,!1)[0],F.x=u.x-T/2,F.y=u.y}}return F}return{compose:function(C,A){if(g(o,"Column3D")){let F=C.prototype,S=A.prototype,{column:T,columnRange:D}=C.types;if(d(F,"alignDataLabel",k),d(F,"justifyDataLabel",z),d(S,"getStackBox",O),T){let P=T.prototype,m=P.pointClass.prototype;P.translate3dPoints=()=>{},P.translate3dShapes=p,l(P,"afterInit",y),d(m,"hasNewShapeType",b),d(P,"animate",x),d(P,"plotGroup",f),d(P,"pointAttribs",M),d(P,"setState",L),d(P,"setVisible",_),d(P,"translate",w)}if(D){let P=D.prototype;d(P.pointClass.prototype,"hasNewShapeType",b),d(P,"plotGroup",f),d(P,"pointAttribs",M),d(P,"setState",L),d(P,"setVisible",_)}}}}}),e(t,"Series/Pie3D/Pie3DPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{pie:{prototype:{pointClass:s}}}=i.seriesTypes;return class extends s{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),e(t,"Series/Pie3D/Pie3DSeries.js",[t["Core/Globals.js"],t["Series/Pie3D/Pie3DPoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{composed:a,deg2rad:l}=i,{pie:h}=r.seriesTypes,{extend:c,pick:g,pushUnique:d}=o;class p extends h{static compose(b){d(a,"Pie3D")&&(b.types.pie=p)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(b){if(this.chart.is3d()){let x=this.center,f=this.group,M=this.markerGroup,L=this.options.animation,_;L===!0&&(L={}),b?(f.oldtranslateX=g(f.oldtranslateX,f.translateX),f.oldtranslateY=g(f.oldtranslateY,f.translateY),_={translateX:x[0],translateY:x[1],scaleX:.001,scaleY:.001},f.attr(_),M&&(M.attrSetters=f.attrSetters,M.attr(_))):(_={translateX:f.oldtranslateX,translateY:f.oldtranslateY,scaleX:1,scaleY:1},f.animate(_,L),M&&M.animate(_,L))}else super.animate.apply(this,arguments)}getDataLabelPosition(b,x){let f=super.getDataLabelPosition(b,x);if(this.chart.is3d()){let M=this.chart.options.chart.options3d,L=b.shapeArgs,_=L.r,w=(L.alpha||M?.alpha)*l,k=(L.beta||M?.beta)*l,z=(L.start+L.end)/2,O=f.connectorPosition,C=-_*(1-Math.cos(w))*Math.sin(z),A=_*(Math.cos(k)-1)*Math.cos(z);for(let F of[f?.natural,O.breakAt,O.touchingSliceAt])F.x+=A,F.y+=C}return f}pointAttribs(b){let x=super.pointAttribs.apply(this,arguments),f=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(x.stroke=f.edgeColor||b.color||this.color,x["stroke-width"]=g(f.edgeWidth,1)),x}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let b=this.options,x=b.depth||0,f=this.chart.options.chart.options3d,M=f.alpha,L=f.beta,_=b.stacking?(b.stack||0)*x:this._i*x;for(let w of(_+=x/2,b.grouping!==!1&&(_=0),this.points)){let k=w.shapeArgs;w.shapeType="arc3d",k.z=_,k.depth=.75*x,k.alpha=M,k.beta=L,k.center=this.center;let z=(k.end+k.start)/2;w.slicedTranslation={translateX:Math.round(Math.cos(z)*b.slicedOffset*Math.cos(M*l)),translateY:Math.round(Math.sin(z)*b.slicedOffset*Math.cos(M*l))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let b of this.points)if(b.graphic)for(let x of["out","inn","side1","side2"])b.graphic&&(b.graphic[x].element.point=b)}}}return c(p.prototype,{pointClass:s}),p}),e(t,"Series/Scatter3D/Scatter3DPoint.js",[t["Series/Scatter/ScatterSeries.js"],t["Core/Utilities.js"]],function(i,s){let{pointClass:r}=i.prototype,{defined:o}=s;return class extends r{applyOptions(){return super.applyOptions.apply(this,arguments),o(this.z)||(this.z=0),this}}}),e(t,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),e(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(i,s,r,o,a,l){let{pointCameraDistance:h}=i,{extend:c,merge:g}=l;class d extends o{pointAttribs(y){let b=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&y&&(b.zIndex=h(y,this.chart)),b}}return d.defaultOptions=g(o.defaultOptions,r),c(d.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:s}),a.registerSeriesType("scatter3d",d),d}),e(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(i,s,r,o,a,l,h,c,g,d,p){return r.compose(i.seriesTypes.area),o.compose(i.Axis,i.Tick),s.compose(i.Chart,i.Fx),d.compose(i.Series,h),p.compose(i.Series),l.compose(i.Series),c.compose(a.getRendererType()),g.compose(i.Chart),i})})});var $u=ai((xA,po)=>{"use strict";(function(n){typeof po=="object"&&po.exports?(n.default=n,po.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var i;return function(s){s.compose=function(o){return o.navigation||(o.navigation=new r(o)),o};class r{constructor(a){this.updates=[],this.chart=a}addUpdate(a){this.chart.navigation.updates.push(a)}update(a,l){this.updates.forEach(h=>{h.call(this.chart,a,l)})}}s.Additions=r}(i||(i={})),i}),e(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(i){let{isTouchDevice:s}=i;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:s?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),e(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var i;return function(s){let r=[];function o(l,h,c,g){return[["M",l,h+2.5],["L",l+c,h+2.5],["M",l,h+g/2+.5],["L",l+c,h+g/2+.5],["M",l,h+g-1.5],["L",l+c,h+g-1.5]]}function a(l,h,c,g){let d=g/3-2;return[].concat(this.circle(c-d,h,d,d),this.circle(c-d,h+d+4,d,d),this.circle(c-d,h+2*(d+4),d,d))}s.compose=function(l){if(r.indexOf(l)===-1){r.push(l);let h=l.prototype.symbols;h.menu=o,h.menuball=a.bind(h)}}}(i||(i={})),i}),e(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r){let{composed:o}=s,{addEvent:a,fireEvent:l,pushUnique:h}=r;function c(){this.fullscreen=new g(this)}class g{static compose(p){h(o,"Fullscreen")&&a(p,"beforeRender",c)}constructor(p){this.chart=p,this.isOpen=!1;let y=p.renderTo;!this.browserProps&&(typeof y.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:y.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:y.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:y.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let p=this,y=p.chart,b=y.options.chart;l(y,"fullscreenClose",null,function(){p.isOpen&&p.browserProps&&y.container.ownerDocument instanceof Document&&y.container.ownerDocument[p.browserProps.exitFullscreen](),p.unbindFullscreenEvent&&(p.unbindFullscreenEvent=p.unbindFullscreenEvent()),y.setSize(p.origWidth,p.origHeight,!1),p.origWidth=void 0,p.origHeight=void 0,b.width=p.origWidthOption,b.height=p.origHeightOption,p.origWidthOption=void 0,p.origHeightOption=void 0,p.isOpen=!1,p.setButtonText()})}open(){let p=this,y=p.chart,b=y.options.chart;l(y,"fullscreenOpen",null,function(){if(b&&(p.origWidthOption=b.width,p.origHeightOption=b.height),p.origWidth=y.chartWidth,p.origHeight=y.chartHeight,p.browserProps){let x=a(y.container.ownerDocument,p.browserProps.fullscreenChange,function(){p.isOpen?(p.isOpen=!1,p.close()):(y.setSize(null,null,!1),p.isOpen=!0,p.setButtonText())}),f=a(y,"destroy",x);p.unbindFullscreenEvent=()=>{x(),f()};let M=y.renderTo[p.browserProps.requestFullscreen]();M&&M.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let p=this.chart,y=p.exportDivElements,b=p.options.exporting,x=b&&b.buttons&&b.buttons.contextButton.menuItems,f=p.options.lang;if(b&&b.menuItemDefinitions&&f&&f.exitFullscreen&&f.viewFullscreen&&x&&y){let M=y[x.indexOf("viewFullscreen")];M&&i.setElementHTML(M,this.isOpen?f.exitFullscreen:b.menuItemDefinitions.viewFullscreen.text||f.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return g}),e(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{win:r}=i,{discardElement:o,objectEach:a}=s,l={ajax:function(h){let c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},g=new XMLHttpRequest;function d(p,y){h.error&&h.error(p,y)}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),a(h.headers,function(p,y){g.setRequestHeader(y,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(y){if(y instanceof Error)return d(g,y)}return h.success&&h.success(p,g)}d(g,g.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),g.send(h.data)},getJSON:function(h,c){l.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,g){let d=new r.FormData;a(c,function(b,x){d.append(x,b)}),d.append("b64","true");let{filename:p,type:y}=c;return r.fetch(h,re({method:"POST",body:d},g)).then(b=>{b.ok&&b.text().then(x=>{let f=document.createElement("a");f.href=`data:${y};base64,${x}`,f.download=p,f.click(),o(f)})})}};return l}),e(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(i,s,r,o,a,l,h,c,g,d){var p;let{defaultOptions:y}=o,{doc:b,SVG_NS:x,win:f}=c,{addEvent:M,css:L,createElement:_,discardElement:w,extend:k,find:z,fireEvent:O,isObject:C,merge:A,objectEach:F,pick:S,removeEvent:T,uniqueKey:D}=d;return function(P){let m,u=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],v=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];P.inlineAllowlist=[];let I=["clipPath","defs","desc"];function E($){let tt,it,et=this,st=et.renderer,rt=A(et.options.navigation.buttonOptions,$),nt=rt.onclick,ot=rt.menuItems,at=rt.symbolSize||12;if(et.btnCount||(et.btnCount=0),et.exportDivElements||(et.exportDivElements=[],et.exportSVGElements=[]),rt.enabled===!1||!rt.theme)return;let ct=et.styledMode?{}:rt.theme;nt?it=function(lt){lt&<.stopPropagation(),nt.call(et,lt)}:ot&&(it=function(lt){lt&<.stopPropagation(),et.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=S(ct.paddingLeft,30):rt.text||k(ct,{width:rt.width,height:rt.height,padding:0});let ht=st.button(rt.text,0,0,it,ct,void 0,void 0,void 0,void 0,rt.useHTML).addClass($.className).attr({title:S(et.options.lang[rt._titleKey||rt.titleKey],"")});ht.menuClassName=$.menuClassName||"highcharts-menu-"+et.btnCount++,rt.symbol&&(tt=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),et.styledMode||tt.attr({stroke:rt.symbolStroke,fill:rt.symbolFill,"stroke-width":rt.symbolStrokeWidth||1})),ht.add(et.exportingGroup).align(k(rt,{width:ht.width,x:S(rt.x,et.buttonOffset)}),!0,"spacingBox"),et.buttonOffset+=((ht.width||0)+rt.buttonSpacing)*(rt.align==="right"?-1:1),et.exportSVGElements.push(ht,tt)}function R(){if(!this.printReverseInfo)return;let{childNodes:$,origDisplay:tt,resetParams:it}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call($,function(et,st){et.nodeType===1&&(et.style.display=tt[st]||"")}),this.isPrinting=!1,it&&this.setSize.apply(this,it),delete this.printReverseInfo,m=void 0,O(this,"afterPrint")}function j(){let $=b.body,tt=this.options.exporting.printMaxWidth,it={childNodes:$.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),O(this,"beforePrint"),tt&&this.chartWidth>tt&&(it.resetParams=[this.options.chart.width,void 0,!1],this.setSize(tt,void 0,!1)),[].forEach.call(it.childNodes,function(et,st){et.nodeType===1&&(it.origDisplay[st]=et.style.display,et.style.display="none")}),this.moveContainers($),this.printReverseInfo=it}function G($){$.renderExporting(),M($,"redraw",$.renderExporting),M($,"destroy",$.destroyExport)}function W($,tt,it,et,st,rt,nt){let ot=this,at=ot.options.navigation,ct=ot.chartWidth,ht=ot.chartHeight,lt="cache-"+$,yt=Math.max(st,rt),Et,dt=ot[lt];dt||(ot.exportContextMenu=ot[lt]=dt=_("div",{className:$},re({position:"absolute",zIndex:1e3,padding:yt+"px",pointerEvents:"auto"},ot.renderer.style),ot.scrollablePlotArea?.fixedDiv||ot.container),Et=_("ul",{className:"highcharts-menu"},ot.styledMode?{}:{listStyle:"none",margin:0,padding:0},dt),ot.styledMode||L(Et,k({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"}),d.clearTimeout(dt.hideTimer),O(ot,"exportMenuHidden")},ot.exportEvents.push(M(dt,"mouseleave",function(){dt.hideTimer=f.setTimeout(dt.hideMenu,500)}),M(dt,"mouseenter",function(){d.clearTimeout(dt.hideTimer)}),M(b,"mouseup",function(mt){ot.pointer?.inClass(mt.target,$)||dt.hideMenu()}),M(dt,"click",function(){ot.openMenu&&dt.hideMenu()})),tt.forEach(function(mt){if(typeof mt=="string"&&(mt=ot.options.exporting.menuItemDefinitions[mt]),C(mt,!0)){let Pt;mt.separator?Pt=_("hr",void 0,void 0,Et):(mt.textKey==="viewData"&&ot.isDataTableVisible&&(mt.textKey="hideData"),Pt=_("li",{className:"highcharts-menu-item",onclick:function(Yt){Yt&&Yt.stopPropagation(),dt.hideMenu(),typeof mt!="string"&&mt.onclick&&mt.onclick.apply(ot,arguments)}},void 0,Et),i.setElementHTML(Pt,mt.text||ot.options.lang[mt.textKey]),ot.styledMode||(Pt.onmouseover=function(){L(this,at.menuItemHoverStyle)},Pt.onmouseout=function(){L(this,at.menuItemStyle)},L(Pt,k({cursor:"pointer"},at.menuItemStyle||{})))),ot.exportDivElements.push(Pt)}}),ot.exportDivElements.push(Et,dt),ot.exportMenuWidth=dt.offsetWidth,ot.exportMenuHeight=dt.offsetHeight);let St={display:"block"};it+(ot.exportMenuWidth||0)>ct?St.right=ct-it-st-yt+"px":St.left=it-yt+"px",et+rt+(ot.exportMenuHeight||0)>ht&&nt.alignOptions?.verticalAlign!=="top"?St.bottom=ht-et-yt+"px":St.top=et+rt-yt+"px",L(dt,St),L(ot.renderTo,{overflow:""}),L(ot.container,{overflow:""}),ot.openMenu=!0,O(ot,"exportMenuShown")}function N($){let tt,it=$?$.target:this,et=it.exportSVGElements,st=it.exportDivElements,rt=it.exportEvents;et&&(et.forEach((nt,ot)=>{nt&&(nt.onclick=nt.ontouchstart=null,it[tt="cache-"+nt.menuClassName]&&delete it[tt],et[ot]=nt.destroy())}),et.length=0),it.exportingGroup&&(it.exportingGroup.destroy(),delete it.exportingGroup),st&&(st.forEach(function(nt,ot){nt&&(d.clearTimeout(nt.hideTimer),T(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($,tt){let it=this.getSVGForExport($,tt);$=A(this.options.exporting,$),g.post($.url,{filename:$.filename?$.filename.replace(/\//g,"-"):this.getFilename(),type:$.type,width:$.width,scale:$.scale,svg:it},$.fetchOptions)}function X(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function V(){let $=this.userOptions.title&&this.userOptions.title.text,tt=this.options.exporting.filename;return tt?tt.replace(/\//g,"-"):(typeof $=="string"&&(tt=$.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!tt||tt.length<5)&&(tt="chart"),tt)}function H($){let tt,it,et=A(this.options,$);et.plotOptions=A(this.userOptions.plotOptions,$&&$.plotOptions),et.time=A(this.userOptions.time,$&&$.time);let st=_("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},b.body),rt=this.renderTo.style.width,nt=this.renderTo.style.height,ot=et.exporting.sourceWidth||et.chart.width||/px$/.test(rt)&&parseInt(rt,10)||(et.isGantt?800:600),at=et.exporting.sourceHeight||et.chart.height||/px$/.test(nt)&&parseInt(nt,10)||400;k(et.chart,{animation:!1,renderTo:st,forExport:!0,renderer:"SVGRenderer",width:ot,height:at}),et.exporting.enabled=!1,delete et.data,et.series=[],this.series.forEach(function(lt){(it=A(lt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:lt.visible})).isInternal||et.series.push(it)});let ct={};this.axes.forEach(function(lt){lt.userOptions.internalKey||(lt.userOptions.internalKey=D()),lt.options.isInternal||(ct[lt.coll]||(ct[lt.coll]=!0,et[lt.coll]=[]),et[lt.coll].push(A(lt.userOptions,{visible:lt.visible,type:lt.type,uniqueNames:lt.uniqueNames})))}),et.colorAxis=this.userOptions.colorAxis;let ht=new this.constructor(et,this.callback);return $&&["xAxis","yAxis","series"].forEach(function(lt){let yt={};$[lt]&&(yt[lt]=$[lt],ht.update(yt))}),this.axes.forEach(function(lt){let yt=z(ht.axes,function(mt){return mt.options.internalKey===lt.userOptions.internalKey}),Et=lt.getExtremes(),dt=Et.userMin,St=Et.userMax;yt&&(dt!==void 0&&dt!==yt.min||St!==void 0&&St!==yt.max)&&yt.setExtremes(dt,St,!0,!1)}),tt=ht.getChartHTML(),O(this,"getSVG",{chartCopy:ht}),tt=this.sanitizeSVG(tt,et),et=null,ht.destroy(),w(st),tt}function K($,tt){let it=this.options.exporting;return this.getSVG(A({chart:{borderRadius:0}},it.chartOptions,tt,{exporting:{sourceWidth:$&&$.sourceWidth||it.sourceWidth,sourceHeight:$&&$.sourceHeight||it.sourceHeight}}))}function U(){let $,tt=P.inlineAllowlist,it={},et=b.createElement("iframe");L(et,{width:"1px",height:"1px",visibility:"hidden"}),b.body.appendChild(et);let st=et.contentWindow&&et.contentWindow.document;st&&st.body.appendChild(st.createElementNS(x,"svg")),function rt(nt){let ot,at,ct,ht,lt,yt,Et={};if(st&&nt.nodeType===1&&I.indexOf(nt.nodeName)===-1){if(ot=f.getComputedStyle(nt,null),at=nt.nodeName==="svg"?{}:f.getComputedStyle(nt.parentNode,null),!it[nt.nodeName]){$=st.getElementsByTagName("svg")[0],ct=st.createElementNS(nt.namespaceURI,nt.nodeName),$.appendChild(ct);let dt=f.getComputedStyle(ct,null),St={};for(let mt in dt)mt.length<1e3&&typeof dt[mt]=="string"&&!/^\d+$/.test(mt)&&(St[mt]=dt[mt]);it[nt.nodeName]=St,nt.nodeName==="text"&&delete it.text.fill,$.removeChild(ct)}for(let dt in ot)(c.isFirefox||c.isMS||c.isSafari||Object.hasOwnProperty.call(ot,dt))&&function(St,mt){if(ht=lt=!1,tt.length){for(yt=tt.length;yt--&&!lt;)lt=tt[yt].test(mt);ht=!lt}for(mt==="transform"&&St==="none"&&(ht=!0),yt=u.length;yt--&&!ht;){if(mt.length>1e3)throw Error("Input too long");ht=u[yt].test(mt)||typeof St=="function"}!ht&&(at[mt]!==St||nt.nodeName==="svg")&&it[nt.nodeName][mt]!==St&&(v&&v.indexOf(mt)===-1?Et[mt]=St:St&&nt.setAttribute(mt.replace(/[A-Z]/g,function(Pt){return"-"+Pt.toLowerCase()}),St))}(ot[dt],dt);if(L(nt,Et),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($),et.parentNode.removeChild(et)}function Y($){let{scrollablePlotArea:tt}=this;(tt?[tt.fixedDiv,tt.scrollingContainer]:[this.container]).forEach(function(it){$.appendChild(it)})}function Z(){let $=this,tt=(it,et,st)=>{$.isDirtyExporting=!0,A(!0,$.options[it],et),S(st,!0)&&$.redraw()};$.exporting={update:function(it,et){tt("exporting",it,et)}},r.compose($).navigation.addUpdate((it,et)=>{tt("navigation",it,et)})}function q(){let $=this;$.isPrinting||(m=$,c.isSafari||$.beforePrint(),setTimeout(()=>{f.focus(),f.print(),c.isSafari||setTimeout(()=>{$.afterPrint()},1e3)},1))}function J(){let $=this,tt=$.options.exporting,it=tt.buttons,et=$.isDirtyExporting||!$.exportSVGElements;$.buttonOffset=0,$.isDirtyExporting&&$.destroyExport(),et&&tt.enabled!==!1&&($.exportEvents=[],$.exportingGroup=$.exportingGroup||$.renderer.g("exporting-group").attr({zIndex:3}).add(),F(it,function(st){$.addButton(st)}),$.isDirtyExporting=!1)}function Q($,tt){let it=$.indexOf("")+6,et=$.substr(it);return $=$.substr(0,it),tt&&tt.exporting&&tt.exporting.allowHTML&&et&&(et=''+et.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",$=$.replace("",et+"")),$=$.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{"use strict";(function(n){typeof fo=="object"&&fo.exports?(n.default=n,fo.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/stock",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{tooltipFormatter:l}=s.prototype,{addEvent:h,arrayMax:c,arrayMin:g,correctFloat:d,defined:p,isArray:y,isNumber:b,isString:x,pick:f}=o;return function(M){function L(T,D,P){!this.isXAxis&&(this.series.forEach(function(m){T==="compare"&&typeof D!="boolean"?m.setCompare(D,!1):T!=="cumulative"||x(D)||m.setCumulative(D,!1)}),f(P,!0)&&this.chart.redraw())}function _(T){let D=this,{numberFormatter:P}=D.series.chart,m=function(u){T=T.replace("{point."+u+"}",(D[u]>0&&u==="change"?"+":"")+P(D[u],f(D.series.tooltipOptions.changeDecimals,2)))};return p(D.change)&&m("change"),p(D.cumulativeSum)&&m("cumulativeSum"),l.apply(this,[T])}function w(){let T,D=this.options.compare;(D==="percent"||D==="value"||this.options.cumulative)&&(T=new S(this),D==="percent"||D==="value"?T.initCompare(D):T.initCumulative()),this.dataModify=T}function k(T){let D=T.dataExtremes,P=D.activeYData;if(this.dataModify&&D){let m;this.options.compare?m=[this.dataModify.modifyValue(D.dataMin),this.dataModify.modifyValue(D.dataMax)]:this.options.cumulative&&y(P)&&P.length>=2&&(m=S.getCumulativeExtremes(P)),m&&(D.dataMin=g(m),D.dataMax=c(m))}}function z(T,D){this.options.compare=this.userOptions.compare=T,this.update({},f(D,!0)),this.dataModify&&(T==="value"||T==="percent")?this.dataModify.initCompare(T):this.points.forEach(P=>{delete P.change})}function O(){if(this.xAxis&&this.processedYData&&this.dataModify){let T=this.processedXData,D=this.processedYData,P=D.length,m=this.options.compareStart===!0?0:1,u=-1,v;for(this.pointArrayMap&&(u=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),v=0;v-1?D[v][u]:D[v];if(b(I)&&I!==0&&T[v+m]>=(this.xAxis.min||0)){this.dataModify.compareValue=I;break}}}}function C(T,D){this.setModifier("compare",T,D)}function A(T,D){T=f(T,!1),this.options.cumulative=this.userOptions.cumulative=T,this.update({},f(D,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(P=>{delete P.cumulativeSum})}function F(T,D){this.setModifier("cumulative",T,D)}M.compose=function(T,D,P){let m=D.prototype,u=P.prototype,v=T.prototype;return v.setCompare||(v.setCompare=z,v.setCumulative=A,h(T,"afterInit",w),h(T,"afterGetExtremes",k),h(T,"afterProcessData",O)),m.setCompare||(m.setCompare=C,m.setModifier=L,m.setCumulative=F,u.tooltipFormatter=_),T};class S{constructor(D){this.series=D}modifyValue(){return 0}static getCumulativeExtremes(D){let P=1/0,m=-1/0;return D.reduce((u,v)=>{let I=u+v;return P=Math.min(P,I,u),m=Math.max(m,I,u),I}),[P,m]}initCompare(D){this.modifyValue=function(P,m){P===null&&(P=0);let u=this.compareValue;if(P!==void 0&&u!==void 0){if(D==="value"?P-=u:P=P/u*100-(this.series.options.compareBase===100?0:100),m!==void 0){let v=this.series.points[m];v&&(v.change=P)}return P}return 0}}initCumulative(){this.modifyValue=function(D,P){if(D===null&&(D=0),D!==void 0&&P!==void 0){let m=P>0?this.series.points[P-1]:null;m&&m.cumulativeSum&&(D=d(m.cumulativeSum+D));let u=this.series.points[P],v=u.series.options.cumulativeStart,I=u.x<=this.series.xAxis.max&&u.x>=this.series.xAxis.min;return u&&(!v||I?u.cumulativeSum=D:u.cumulativeSum=void 0),D}return 0}}}M.Additions=S}(a||(a={})),a}),e(t,"Stock/Navigator/ChartNavigatorComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let r,{isTouchDevice:o}=i,{addEvent:a,merge:l,pick:h}=s,c=[];function g(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function d(){let M,L,_,w=this.legend,k=this.navigator;if(k){M=w&&w.options,L=k.xAxis,_=k.yAxis;let{scrollbarHeight:z,scrollButtonSize:O}=k;this.inverted?(k.left=k.opposite?this.chartWidth-z-k.height:this.spacing[3]+z,k.top=this.plotTop+O):(k.left=h(L.left,this.plotLeft+O),k.top=k.navigatorOptions.top||this.chartHeight-k.height-z-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(M&&M.verticalAlign==="bottom"&&M.layout!=="proximate"&&M.enabled&&!M.floating?w.legendHeight+h(M.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),L&&_&&(this.inverted?L.options.left=_.options.left=k.left:L.options.top=_.options.top=k.top,L.setAxisSize(),_.setAxisSize())}}function p(M){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this),h(M.redraw,!0)&&this.redraw(M.animation))}function y(){let M=this.options;(M.navigator.enabled||M.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this))}function b(){let M=this.options,L=M.navigator,_=M.rangeSelector;if((L&&L.enabled||_&&_.enabled)&&(!o&&this.zooming.type==="x"||o&&this.zooming.pinchType==="x"))return!1}function x(M){let L=M.navigator;if(L&&M.xAxis[0]){let _=M.xAxis[0].getExtremes();L.render(_.min,_.max)}}function f(M){let L=M.options.navigator||{},_=M.options.scrollbar||{};!this.navigator&&!this.scroller&&(L.enabled||_.enabled)&&(l(!0,this.options.navigator,L),l(!0,this.options.scrollbar,_),delete M.options.navigator,delete M.options.scrollbar)}return{compose:function(M,L){if(s.pushUnique(c,M)){let _=M.prototype;r=L,_.callbacks.push(x),a(M,"afterAddSeries",g),a(M,"afterSetChartSize",d),a(M,"afterUpdate",p),a(M,"beforeRender",y),a(M,"beforeShowResetZoom",b),a(M,"update",f)}}}}),e(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{isTouchDevice:r}=i,{addEvent:o,correctFloat:a,defined:l,isNumber:h,pick:c}=s;function g(){this.navigatorAxis||(this.navigatorAxis=new p(this))}function d(y){let b,x=this.chart,f=x.options,M=f.navigator,L=this.navigatorAxis,_=x.zooming.pinchType,w=f.rangeSelector,k=x.zooming.type;if(this.isXAxis&&(M?.enabled||w?.enabled)){if(k==="y"&&y.trigger==="zoom")b=!1;else if((y.trigger==="zoom"&&k==="xy"||r&&_==="xy")&&this.options.range){let z=L.previousZoom;l(y.min)?L.previousZoom=[this.min,this.max]:z&&(y.min=z[0],y.max=z[1],L.previousZoom=void 0)}}b!==void 0&&y.preventDefault()}class p{static compose(b){b.keepProps.includes("navigatorAxis")||(b.keepProps.push("navigatorAxis"),o(b,"init",g),o(b,"setExtremes",d))}constructor(b){this.axis=b}destroy(){this.axis=void 0}toFixedRange(b,x,f,M){let L=this.axis,_=(L.pointRange||0)/2,w=c(f,L.translate(b,!0,!L.horiz)),k=c(M,L.translate(x,!0,!L.horiz));return l(f)||(w=a(w+_)),l(M)||(k=a(k-_)),h(w)&&h(k)||(w=k=void 0),{min:w,max:k}}}return p}),e(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s){let{parse:r}=i,{seriesTypes:o}=s;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:o.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}}}),e(t,"Stock/Navigator/NavigatorSymbols.js",[t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(i,s){let{relativeLength:r}=s;return{"navigator-handle":function(o,a,l,h,c={}){let g=c.width?c.width/2:l,d=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],...i.rect(-g-1,.5,2*g+1,h,{r:d})]}}}),e(t,"Stock/Utilities/StockUtilities.js",[t["Core/Utilities.js"]],function(i){let{defined:s}=i;return{setFixedRange:function(r){let o=this.xAxis[0];s(o.dataMax)&&s(o.dataMin)&&r?this.fixedRange=Math.min(r,o.dataMax-o.dataMin):this.fixedRange=r}}}),e(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(i,s,r,o,a,l,h,c){let{setOptions:g}=i,{composed:d}=s,{getRendererType:p}=l,{setFixedRange:y}=h,{addEvent:b,extend:x,pushUnique:f}=c;function M(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(L,_,w){r.compose(_),f(d,"Navigator")&&(L.prototype.setFixedRange=y,x(p().prototype.symbols,a),b(w,"afterUpdate",M),g({navigator:o}))}}}),e(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){var r;let{composed:o}=i,{addEvent:a,defined:l,pick:h,pushUnique:c}=s;return function(g){let d;function p(f){let M=h(f.options&&f.options.min,f.min),L=h(f.options&&f.options.max,f.max);return{axisMin:M,axisMax:L,scrollMin:l(f.dataMin)?Math.min(M,f.min,f.dataMin,h(f.threshold,1/0)):M,scrollMax:l(f.dataMax)?Math.max(L,f.max,f.dataMax,h(f.threshold,-1/0)):L}}function y(){let f=this.scrollbar,M=f&&!f.options.opposite,L=this.horiz?2:M?3:1;f&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[L]+=f.size+(f.options.margin||0))}function b(){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 d(f.chart.renderer,f.options.scrollbar,f.chart),a(f.scrollbar,"changed",function(M){let L,_,{axisMin:w,axisMax:k,scrollMin:z,scrollMax:O}=p(f),C=O-z;if(l(w)&&l(k))if(f.horiz&&!f.reversed||!f.horiz&&f.reversed?(L=z+C*this.to,_=z+C*this.from):(L=z+C*(1-this.from),_=z+C*(1-this.to)),this.shouldUpdateExtremes(M.DOMType)){let A=M.DOMType!=="mousemove"&&M.DOMType!=="touchmove"&&void 0;f.setExtremes(_,L,!0,A,M)}else this.setRange(this.from,this.to)}))}function x(){let f,M,L,{scrollMin:_,scrollMax:w}=p(this),k=this.scrollbar,z=this.axisTitleMargin+(this.titleOffset||0),O=this.chart.scrollbarsOffsets,C=this.options.margin||0;if(k&&O){if(this.horiz)this.opposite||(O[1]+=z),k.position(this.left,this.top+this.height+2+O[1]-(this.opposite?C:0),this.width,this.height),this.opposite||(O[1]+=C),f=1;else{let A;this.opposite&&(O[0]+=z),A=k.options.opposite?this.left+this.width+2+O[0]-(this.opposite?0:C):this.opposite?0:C,k.position(A,this.top,this.width,this.height),this.opposite&&(O[0]+=C),f=0}if(O[f]+=k.size+(k.options.margin||0),isNaN(_)||isNaN(w)||!l(this.min)||!l(this.max)||this.dataMin===this.dataMax)k.setRange(0,1);else if(this.min===this.max){let A=this.pointRange/(this.dataMax+1);M=A*this.min,L=A*(this.max+1),k.setRange(M,L)}else M=(this.min-_)/(w-_),L=(this.max-_)/(w-_),this.horiz&&!this.reversed||!this.horiz&&this.reversed?k.setRange(M,L):k.setRange(1-L,1-M)}}g.compose=function(f,M){c(o,"Axis.Scrollbar")&&(d=M,a(f,"afterGetOffset",y),a(f,"afterInit",b),a(f,"afterRender",x))}}(r||(r={})),r}),e(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}}),e(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(i,s,r,o,a){let{defaultOptions:l}=i,{addEvent:h,correctFloat:c,crisp:g,defined:d,destroyObjectProperties:p,fireEvent:y,merge:b,pick:x,removeEvent:f}=a;class M{static compose(_){r.compose(_,M)}static swapXY(_,w){return w&&_.forEach(k=>{let z,O=k.length;for(let C=0;Cthis.calculatedWidth?w.minWidth:0;return{chartX:(_.chartX-this.x-this.xOffset)/(this.barWidth-k),chartY:(_.chartY-this.y-this.yOffset)/(this.barWidth-k)}}destroy(){let _=this,w=_.chart.scroller;_.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(k){_[k]&&_[k].destroy&&(_[k]=_[k].destroy())}),w&&_===w.scrollbar&&(w.scrollbar=null,p(w.scrollbarButtons))}drawScrollbarButton(_){let w=this.renderer,k=this.scrollbarButtons,z=this.options,O=this.size,C=w.g().add(this.group);if(k.push(C),z.buttonsEnabled){let A=w.rect().addClass("highcharts-scrollbar-button").add(C);this.chart.styledMode||A.attr({stroke:z.buttonBorderColor,"stroke-width":z.buttonBorderWidth,fill:z.buttonBackgroundColor}),A.attr(A.crisp({x:-.5,y:-.5,width:O,height:O,r:z.buttonBorderRadius},A.strokeWidth()));let F=w.path(M.swapXY([["M",O/2+(_?-1:1),O/2-3],["L",O/2+(_?-1:1),O/2+3],["L",O/2+(_?2:-2),O/2]],z.vertical)).addClass("highcharts-scrollbar-arrow").add(k[_]);this.chart.styledMode||F.attr({fill:z.buttonArrowColor})}}init(_,w,k){this.scrollbarButtons=[],this.renderer=_,this.userOptions=w,this.options=b(o,l.scrollbar,w),this.options.margin=x(this.options.margin,10),this.chart=k,this.size=x(this.options.size,this.options.height),w.enabled&&(this.render(),this.addEvents())}mouseDownHandler(_){let w=this.chart.pointer?.normalize(_)||_,k=this.cursorToScrollbarPosition(w);this.chartX=k.chartX,this.chartY=k.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(_){let w,k=this.chart.pointer?.normalize(_)||_,z=this.options.vertical?"chartY":"chartX",O=this.initPositions||[];this.grabbedCenter&&(!_.touches||_.touches[0][z]!==0)&&(w=this.cursorToScrollbarPosition(k)[z]-this[z],this.hasDragged=!0,this.updatePosition(O[0]+w,O[1]+w),this.hasDragged&&y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:_.type,DOMEvent:_}))}mouseUpHandler(_){this.hasDragged&&y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:_.type,DOMEvent:_}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(_,w,k,z){let{buttonsEnabled:O,margin:C=0,vertical:A}=this.options,F=this.rendered?"animate":"attr",S=z,T=0;this.group.show(),this.x=_,this.y=w+this.trackBorderWidth,this.width=k,this.height=z,this.xOffset=S,this.yOffset=T,A?(this.width=this.yOffset=k=T=this.size,this.xOffset=S=0,this.yOffset=T=O?this.size:0,this.barWidth=z-(O?2*k:0),this.x=_+=C):(this.height=z=this.size,this.xOffset=S=O?this.size:0,this.barWidth=k-(O?2*z:0),this.y=this.y+C),this.group[F]({translateX:_,translateY:this.y}),this.track[F]({width:k,height:z}),this.scrollbarButtons[1][F]({translateX:A?0:k-S,translateY:A?z-T:0})}removeEvents(){this._events.forEach(function(_){f.apply(null,_)}),this._events.length=0}render(){let _=this.renderer,w=this.options,k=this.size,z=this.chart.styledMode,O=_.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();this.group=O,this.track=_.rect().addClass("highcharts-scrollbar-track").attr({r:w.trackBorderRadius||0,height:k,width:k}).add(O),z||this.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth});let C=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-g(0,C),y:-g(0,C)}),this.scrollbarGroup=_.g().add(O),this.scrollbar=_.rect().addClass("highcharts-scrollbar-thumb").attr({height:k-C,width:k-C,r:w.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=_.path(M.swapXY([["M",-3,k/4],["L",-3,2*k/3],["M",0,k/4],["L",0,2*k/3],["M",3,k/4],["L",3,2*k/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),z||(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(_,w){let k,z,O=this.options,C=O.vertical,A=O.minWidth,F=this.barWidth,S=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!d(F))return;let T=F*Math.min(w,1);k=Math.ceil(F*(_=Math.max(_,0))),this.calculatedWidth=z=c(T-k),z=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(_){return x(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||_==="mouseup"||_==="touchend"||!d(_)}trackClick(_){let w=this.chart.pointer?.normalize(_)||_,k=this.to-this.from,z=this.y+this.scrollbarTop,O=this.x+this.scrollbarLeft;this.options.vertical&&w.chartY>z||!this.options.vertical&&w.chartX>O?this.updatePosition(this.from+k,this.to+k):this.updatePosition(this.from-k,this.to-k),y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:_})}update(_){this.destroy(),this.init(this.chart.renderer,b(!0,this.options,_),this.chart)}updatePosition(_,w){w>1&&(_=c(1-c(w-_)),w=1),_<0&&(w=c(w-_),_=0),this.from=_,this.to=w}}return M.defaultOptions=o,l.scrollbar=b(!0,M.defaultOptions,l.scrollbar),M}),e(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/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,s,r,o,a,l,h,c,g){let{defaultOptions:d}=r,{isTouchDevice:p}=o,{prototype:{symbols:y}}=c,{addEvent:b,clamp:x,correctFloat:f,defined:M,destroyObjectProperties:L,erase:_,extend:w,find:k,fireEvent:z,isArray:O,isNumber:C,merge:A,pick:F,removeEvent:S,splat:T}=g;function D(m,...u){let v=[].filter.call(u,C);if(v.length)return Math[m].apply(0,v)}class P{static compose(u,v,I){s.compose(u,P),l.compose(u,v,I)}constructor(u){this.isDirty=!1,this.scrollbarHeight=0,this.init(u)}drawHandle(u,v,I,E){let R=this.navigatorOptions.handles.height;this.handles[v][E](I?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(u,10)+.5-R)}:{translateX:Math.round(this.left+parseInt(u,10)),translateY:Math.round(this.top+this.height/2-R/2-1)})}drawOutline(u,v,I,E){let R=this.navigatorOptions.maskInside,j=this.outline.strokeWidth(),G=j/2,W=j%2/2,N=this.scrollButtonSize,B=this.size,X=this.top,V=this.height,H=X-G,K=X+V,U=this.left,Y,Z;I?(Y=X+v+W,v=X+u+W,Z=[["M",U+V,X-N-W],["L",U+V,Y],["L",U,Y],["M",U,v],["L",U+V,v],["L",U+V,X+B+N]],R&&Z.push(["M",U+V,Y-G],["L",U+V,v+G])):(U-=N,u+=U+N-W,v+=U+N-W,Z=[["M",U,H],["L",u,H],["L",u,K],["M",v,K],["L",v,H],["L",U+B+2*N,H]],R&&Z.push(["M",u-G,H],["L",v+G,H])),this.outline[E]({d:Z})}drawMasks(u,v,I,E){let R,j,G,W,N=this.left,B=this.top,X=this.height;I?(G=[N,N,N],W=[B,B+u,B+v],j=[X,X,X],R=[u,v-u,this.size-v]):(G=[N,N+u,N+v],W=[B,B,B],j=[u,v-u,this.size-v],R=[X,X,X]),this.shades.forEach((V,H)=>{V[E]({x:G[H],y:W[H],width:j[H],height:R[H]})})}renderElements(){let u=this,v=u.navigatorOptions,I=v.maskInside,E=u.chart,R=E.inverted,j=E.renderer,G={cursor:R?"ns-resize":"ew-resize"},W=u.navigatorGroup??(u.navigatorGroup=j.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!I,I,!I].forEach((N,B)=>{let X=u.shades[B]??(u.shades[B]=j.rect().addClass("highcharts-navigator-mask"+(B===1?"-inside":"-outside")).add(W));E.styledMode||(X.attr({fill:N?v.maskFill:"rgba(0,0,0,0)"}),B===1&&X.css(G))}),u.outline||(u.outline=j.path().addClass("highcharts-navigator-outline").add(W)),E.styledMode||u.outline.attr({"stroke-width":v.outlineWidth,stroke:v.outlineColor}),v.handles?.enabled){let N=v.handles,{height:B,width:X}=N;[0,1].forEach(V=>{let H=N.symbols[V];if(u.handles[V]&&u.handles[V].symbolUrl===H){if(!u.handles[V].isImg&&u.handles[V].symbolName!==H){let K=y[H].call(y,-X/2-1,0,X,B);u.handles[V].attr({d:K}),u.handles[V].symbolName=H}}else u.handles[V]?.destroy(),u.handles[V]=j.symbol(H,-X/2-1,0,X,B,N),u.handles[V].attr({zIndex:7-V}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][V]).add(W),u.addMouseEvents();E.inverted&&u.handles[V].attr({rotation:90,rotationOriginX:Math.floor(-X/2),rotationOriginY:(B+X)/2}),E.styledMode||u.handles[V].attr({fill:N.backgroundColor,stroke:N.borderColor,"stroke-width":N.lineWidth,width:N.width,height:N.height,x:-X/2-1,y:0}).css(G)})}}update(u,v=!1){let I=this.chart,E=I.options.chart.inverted!==I.scrollbar?.options.vertical;if(A(!0,I.options.navigator,u),this.navigatorOptions=I.options.navigator||{},this.setOpposite(),M(u.enabled)||E)return this.destroy(),this.navigatorEnabled=u.enabled||this.navigatorEnabled,this.init(I);if(this.navigatorEnabled&&(this.isDirty=!0,u.adaptToUpdatedData===!1&&this.baseSeries.forEach(R=>{S(R,"updatedData",this.updatedDataHandler)},this),u.adaptToUpdatedData&&this.baseSeries.forEach(R=>{R.eventsToUnbind.push(b(R,"updatedData",this.updatedDataHandler))},this),(u.series||u.baseSeries)&&this.setBaseSeries(void 0,!1),u.height||u.xAxis||u.yAxis)){this.height=u.height??this.height;let R=this.getXAxisOffsets();this.xAxis.update(oi(re({},u.xAxis),{offsets:R,[I.inverted?"width":"height"]:this.height,[I.inverted?"height":"width"]:void 0}),!1),this.yAxis.update(oi(re({},u.yAxis),{[I.inverted?"width":"height"]:this.height}),!1)}v&&I.redraw()}render(u,v,I,E){let R=this.chart,j=this.xAxis,G=j.pointRange||0,W=j.navigatorAxis.fake?R.xAxis[0]:j,N=this.navigatorEnabled,B=this.rendered,X=R.inverted,V=R.xAxis[0].minRange,H=R.xAxis[0].options.maxRange,K=this.scrollButtonSize,U,Y,Z,q=this.scrollbarHeight,J,Q;if(this.hasDragged&&!M(I))return;if(this.isDirty&&this.renderElements(),u=f(u-G/2),v=f(v+G/2),!C(u)||!C(v)){if(!B)return;I=0,E=F(j.width,W.width)}this.left=F(j.left,R.plotLeft+K+(X?R.plotWidth:0));let $=this.size=J=F(j.len,(X?R.plotHeight:R.plotWidth)-2*K);U=X?q:J+2*K,I=F(I,j.toPixels(u,!0)),E=F(E,j.toPixels(v,!0)),C(I)&&Math.abs(I)!==1/0||(I=0,E=U);let tt=j.toValue(I,!0),it=j.toValue(E,!0),et=Math.abs(f(it-tt));etH&&(this.grabbedLeft?I=j.toPixels(it-H-G,!0):this.grabbedRight&&(E=j.toPixels(tt+H+G,!0))),this.zoomedMax=x(Math.max(I,E),0,$),this.zoomedMin=x(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(I,E),0,$),this.range=this.zoomedMax-this.zoomedMin,$=Math.round(this.zoomedMax);let st=Math.round(this.zoomedMin);N&&(this.navigatorGroup.attr({visibility:"inherit"}),Q=B&&!this.hasDragged?"animate":"attr",this.drawMasks(st,$,X,Q),this.drawOutline(st,$,X,Q),this.navigatorOptions.handles.enabled&&(this.drawHandle(st,0,X,Q),this.drawHandle($,1,X,Q))),this.scrollbar&&(X?(Z=this.top-K,Y=this.left-q+(N||!W.opposite?0:(W.titleOffset||0)+W.axisTitleMargin),q=J+2*K):(Z=this.top+(N?this.height:-q),Y=this.left-K),this.scrollbar.position(Y,Z,U,q),this.scrollbar.setRange(this.zoomedMin/(J||1),this.zoomedMax/(J||1))),this.rendered=!0,this.isDirty=!1,z(this,"afterRender")}addMouseEvents(){let u=this,v=u.chart,I=v.container,E=[],R,j;u.mouseMoveHandler=R=function(G){u.onMouseMove(G)},u.mouseUpHandler=j=function(G){u.onMouseUp(G)},(E=u.getPartsEvents("mousedown")).push(b(v.renderTo,"mousemove",R),b(I.ownerDocument,"mouseup",j),b(v.renderTo,"touchmove",R),b(I.ownerDocument,"touchend",j)),E.concat(u.getPartsEvents("touchstart")),u.eventsToUnbind=E,u.series&&u.series[0]&&E.push(b(u.series[0].xAxis,"foundExtremes",function(){v.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(u){let v=this,I=[];return["shades","handles"].forEach(function(E){v[E].forEach(function(R,j){I.push(b(R.element,u,function(G){v[E+"Mousedown"](G,j)}))})}),I}shadesMousedown(u,v){u=this.chart.pointer?.normalize(u)||u;let I=this.chart,E=this.xAxis,R=this.zoomedMin,j=this.size,G=this.range,W=this.left,N=u.chartX,B,X,V,H;I.inverted&&(N=u.chartY,W=this.top),v===1?(this.grabbedCenter=N,this.fixedWidth=G,this.dragOffset=N-R):(H=N-W-G/2,v===0?H=Math.max(0,H):v===2&&H+G>=j&&(H=j-G,this.reversedExtremes?(H-=G,X=this.getUnionExtremes().dataMin):B=this.getUnionExtremes().dataMax),H!==R&&(this.fixedWidth=G,M((V=E.navigatorAxis.toFixedRange(H,H+G,X,B)).min)&&z(this,"setRange",{min:Math.min(V.min,V.max),max:Math.max(V.min,V.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(u,v){u=this.chart.pointer?.normalize(u)||u;let I=this.chart,E=I.xAxis[0],R=this.reversedExtremes;v===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=R?E.min:E.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=R?E.max:E.min),I.setFixedRange(void 0)}onMouseMove(u){let v=this,I=v.chart,E=v.navigatorSize,R=v.range,j=v.dragOffset,G=I.inverted,W=v.left,N;(!u.touches||u.touches[0].pageX!==0)&&(N=(u=I.pointer?.normalize(u)||u).chartX,G&&(W=v.top,N=u.chartY),v.grabbedLeft?(v.hasDragged=!0,v.render(0,0,N-W,v.otherHandlePos)):v.grabbedRight?(v.hasDragged=!0,v.render(0,0,v.otherHandlePos,N-W)):v.grabbedCenter&&(v.hasDragged=!0,NE+j-R&&(N=E+j-R),v.render(0,0,N-j,N-j+R)),v.hasDragged&&v.scrollbar&&F(v.scrollbar.options.liveRedraw,!p&&!this.chart.boosted)&&(u.DOMType=u.type,setTimeout(function(){v.onMouseUp(u)},0)))}onMouseUp(u){let v,I,E,R,j,G,W=this.chart,N=this.xAxis,B=this.scrollbar,X=u.DOMEvent||u,V=W.inverted,H=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!B||!B.hasDragged)||u.trigger==="scrollbar")&&(E=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?R=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(j=this.fixedExtreme),this.zoomedMax===this.size&&(j=this.reversedExtremes?E.dataMin:E.dataMax),this.zoomedMin===0&&(R=this.reversedExtremes?E.dataMax:E.dataMin),M((G=N.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,R,j)).min)&&z(this,"setRange",{min:Math.min(G.min,G.max),max:Math.max(G.min,G.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:X}})),u.DOMType!=="mousemove"&&u.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&C(this.zoomedMin)&&C(this.zoomedMax)&&(I=Math.round(this.zoomedMin),v=Math.round(this.zoomedMax),this.shades&&this.drawMasks(I,v,V,H),this.outline&&this.drawOutline(I,v,V,H),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(I,0,V,H),this.drawHandle(v,1,V,H)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(u){u()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let u=this.baseSeries||[];this.navigatorEnabled&&u[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&u.forEach(function(v){S(v,"updatedData",this.updatedDataHandler)},this),u[0].xAxis&&S(u[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(u){let v=u.options,I=v.navigator||{},E=I.enabled,R=v.scrollbar||{},j=R.enabled,G=E&&I.height||0,W=j&&R.height||0,N=R.buttonsEnabled&&W||0;this.handles=[],this.shades=[],this.chart=u,this.setBaseSeries(),this.height=G,this.scrollbarHeight=W,this.scrollButtonSize=N,this.scrollbarEnabled=j,this.navigatorEnabled=E,this.navigatorOptions=I,this.scrollbarOptions=R,this.setOpposite();let B=this,X=B.baseSeries,V=u.xAxis.length,H=u.yAxis.length,K=X&&X[0]&&X[0].xAxis||u.xAxis[0]||{options:{}};if(u.isDirtyBox=!0,B.navigatorEnabled){let U=this.getXAxisOffsets();B.xAxis=new i(u,A({breaks:K.options.breaks,ordinal:K.options.ordinal,overscroll:K.options.overscroll},I.xAxis,{type:"datetime",yAxis:I.yAxis?.id,index:V,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:K.options.ordinal?0:K.options.minPadding,maxPadding:K.options.ordinal?0:K.options.maxPadding,zoomEnabled:!1},u.inverted?{offsets:U,width:G}:{offsets:U,height:G}),"xAxis"),B.yAxis=new i(u,A(I.yAxis,{alignTicks:!1,offset:0,index:H,isInternal:!0,reversed:F(I.yAxis&&I.yAxis.reversed,u.yAxis[0]&&u.yAxis[0].reversed,!1),zoomEnabled:!1},u.inverted?{width:G}:{height:G}),"yAxis"),X||I.series.data?B.updateNavigatorSeries(!1):u.series.length===0&&(B.unbindRedraw=b(u,"beforeRedraw",function(){u.series.length>0&&!B.series&&(B.setBaseSeries(),B.unbindRedraw())})),B.reversedExtremes=u.inverted&&!B.xAxis.reversed||!u.inverted&&B.xAxis.reversed,B.renderElements(),B.addMouseEvents()}else B.xAxis={chart:u,navigatorAxis:{fake:!0},translate:function(U,Y){let Z=u.xAxis[0],q=Z.getExtremes(),J=Z.len-2*N,Q=D("min",Z.options.min,q.dataMin),$=D("max",Z.options.max,q.dataMax)-Q;return Y?U*$/J+Q:J*(U-Q)/$},toPixels:function(U){return this.translate(U)},toValue:function(U){return this.translate(U,!0)}},B.xAxis.navigatorAxis.axis=B.xAxis,B.xAxis.navigatorAxis.toFixedRange=a.prototype.toFixedRange.bind(B.xAxis.navigatorAxis);if(u.options.scrollbar.enabled){let U=A(u.options.scrollbar,{vertical:u.inverted});!C(U.margin)&&B.navigatorEnabled&&(U.margin=u.inverted?-3:3),u.scrollbar=B.scrollbar=new h(u.renderer,U,u),b(B.scrollbar,"changed",function(Y){let Z=B.size,q=Z*this.to,J=Z*this.from;B.hasDragged=B.scrollbar.hasDragged,B.render(0,0,J,q),this.shouldUpdateExtremes(Y.DOMType)&&setTimeout(function(){B.onMouseUp(Y)})})}B.addBaseSeriesEvents(),B.addChartEvents()}setOpposite(){let u=this.navigatorOptions,v=this.navigatorEnabled,I=this.chart;this.opposite=F(u.opposite,!!(!v&&I.inverted))}getUnionExtremes(u){let v,I=this.chart.xAxis[0],E=this.xAxis,R=E.options,j=I.options;return u&&I.dataMin===null||(v={dataMin:F(R&&R.min,D("min",j.min,I.dataMin,E.dataMin,E.min)),dataMax:F(R&&R.max,D("max",j.max,I.dataMax,E.dataMax,E.max))}),v}setBaseSeries(u,v){let I=this.chart,E=this.baseSeries=[];u=u||I.options&&I.options.navigator.baseSeries||(I.series.length?k(I.series,R=>!R.options.isInternal).index:0),(I.series||[]).forEach((R,j)=>{!R.options.isInternal&&(R.options.showInNavigator||(j===u||R.options.id===u)&&R.options.showInNavigator!==!1)&&E.push(R)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,v)}updateNavigatorSeries(u,v){let I=this,E=I.chart,R=I.baseSeries,j={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}}},G=I.series=(I.series||[]).filter(V=>{let H=V.baseSeries;return!(0>R.indexOf(H))||(H&&(S(H,"updatedData",I.updatedDataHandler),delete H.navigatorSeries),V.chart&&V.destroy(),!1)}),W,N,B=I.navigatorOptions.series,X;R&&R.length&&R.forEach(V=>{let H=V.navigatorSeries,K=w({color:V.color,visible:V.visible},O(B)?d.navigator.series:B);if(H&&I.navigatorOptions.adaptToUpdatedData===!1)return;j.name="Navigator "+R.length,X=(W=V.options||{}).navigatorOptions||{},K.dataLabels=T(K.dataLabels),(N=A(W,j,K,X)).pointRange=F(K.pointRange,X.pointRange,d.plotOptions[N.type||"line"].pointRange);let U=X.data||K.data;I.hasNavigatorData=I.hasNavigatorData||!!U,N.data=U||W.data&&W.data.slice(0),H&&H.options?H.update(N,v):(V.navigatorSeries=E.initSeries(N),E.setSortedData(),V.navigatorSeries.baseSeries=V,G.push(V.navigatorSeries))}),(B.data&&!(R&&R.length)||O(B))&&(I.hasNavigatorData=!1,(B=T(B)).forEach((V,H)=>{j.name="Navigator "+(G.length+1),(N=A(d.navigator.series,{color:E.series[H]&&!E.series[H].options.isInternal&&E.series[H].color||E.options.colors[H]||E.options.colors[0]},j,V)).data=V.data,N.data&&(I.hasNavigatorData=!0,G.push(E.initSeries(N)))})),u&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let u=this,v=u.baseSeries||[];v[0]&&v[0].xAxis&&v[0].eventsToUnbind.push(b(v[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),v.forEach(I=>{I.eventsToUnbind.push(b(I,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),I.eventsToUnbind.push(b(I,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&I.xAxis&&I.eventsToUnbind.push(b(I,"updatedData",this.updatedDataHandler)),I.eventsToUnbind.push(b(I,"remove",function(){v&&_(v,I),this.navigatorSeries&&(_(u.series,this.navigatorSeries),M(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(u){return this.baseSeries.reduce(function(v,I){return Math.min(v,I.xData&&I.xData.length?I.xData[0]:v)},u)}modifyNavigatorAxisExtremes(){let u=this.xAxis;if(u.getExtremes!==void 0){let v=this.getUnionExtremes(!0);v&&(v.dataMin!==u.min||v.dataMax!==u.max)&&(u.min=v.dataMin,u.max=v.dataMax)}}modifyBaseAxisExtremes(){let u,v,I=this.chart.navigator,E=this.getExtremes(),R=E.min,j=E.max,G=E.dataMin,W=E.dataMax,N=j-R,B=I.stickToMin,X=I.stickToMax,V=F(this.ordinal?.convertOverscroll(this.options.overscroll),0),H=I.series&&I.series[0],K=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(B&&(u=(v=G)+N),X&&(u=W+V,B||(v=Math.max(G,u-N,I.getBaseSeriesMin(H&&H.xData?H.xData[0]:-Number.MAX_VALUE)))),K&&(B||X)&&C(v)&&(this.min=this.userMin=v,this.max=this.userMax=u)),I.stickToMin=I.stickToMax=null}updatedDataHandler(){let u=this.chart.navigator,v=this.navigatorSeries,I=u.reversedExtremes?Math.round(u.zoomedMin)===0:Math.round(u.zoomedMax)>=Math.round(u.size);u.stickToMax=F(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,I),u.stickToMin=u.shouldStickToMin(this,u),v&&!u.hasNavigatorData&&(v.options.pointStart=this.xData[0],v.setData(this.options.data,!1,null,!1))}shouldStickToMin(u,v){let I=v.getBaseSeriesMin(u.xData[0]),E=u.xAxis,R=E.max,j=E.min,G=E.options.range;return!!(C(R)&&C(j))&&(G&&R-I>0?R-I{u.destroy&&u.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(u=>{this[u]&&this[u].destroy&&this[u].destroy(),this[u]=null}),[this.handles].forEach(u=>{L(u)}),this.navigatorEnabled=!1}}return P}),e(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{addEvent:l,correctFloat:h,css:c,defined:g,error:d,isNumber:p,pick:y,timeUnits:b,isString:x}=o;return function(f){function M(D,P,m,u,v=[],I=0,E){let R={},j=this.options.tickPixelInterval,G=this.chart.time,W=[],N,B,X,V,H,K=0,U=[],Y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!v||v.length<3||P===void 0)return G.getTimeTicks.apply(G,arguments);let Z=v.length;for(N=0;Nm,v[N]5*I||H){if(v[N]>Y){for(B=G.getTimeTicks(D,v[K],v[N],u);B.length&&B[0]<=Y;)B.shift();B.length&&(Y=B[B.length-1]),W.push(U.length),U=U.concat(B)}K=N+1}if(H)break}if(B){if(V=B.info,E&&V.unitRange<=b.hour){for(K=1,N=U.length-1;Knt-ot),(et=Q[Math.floor(Q.length/2)])<.6*j&&(et=null),rt=U[q-1]>m?q-1:q,it=void 0;rt--;)st=Math.abs(it-(tt=J[rt])),it&&st<.8*j&&(et===null||st<.8*et)?(R[U[rt]]&&!R[U[rt+1]]?($=rt+1,it=tt):$=rt,U.splice($,1)):it=tt}return U}function L(D){let P=this.ordinal.positions;if(!P)return D;let m=P.length-1,u;return D<0?D=P[0]:D>m?D=P[m]:(m=Math.floor(D),u=D-m),u!==void 0&&P[m]!==void 0?P[m]+(u?u*(P[m+1]-P[m]):0):D}function _(D){let P=this.ordinal,m=this.old?this.old.min:this.min,u=this.old?this.old.transA:this.transA,v=P.getExtendedPositions();if(v&&v.length){let I=h((D-m)*u+this.minPixelPadding),E=h(P.getIndexOfPoint(I,v)),R=h(E%1);if(E>=0&&E<=v.length-1){let j=v[Math.floor(E)],G=v[Math.ceil(E)];return v[Math.floor(E)]+R*(G-j)}}return D}function w(D,P){let m=f.Additions.findIndexOf(D,P,!0);if(D[m]===P)return m;let u=(P-D[m])/(D[m+1]-D[m]);return m+u}function k(){this.ordinal||(this.ordinal=new f.Additions(this))}function z(){let{eventArgs:D,options:P}=this;if(this.isXAxis&&g(P.overscroll)&&P.overscroll!==0&&p(this.max)&&p(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(D?.trigger!=="pan"||this.isInternal)&&D?.trigger!=="navigator")){let m=this.ordinal.convertOverscroll(P.overscroll);this.max+=m,!this.isInternal&&g(this.userMin)&&D?.trigger!=="mousewheel"&&(this.min+=m)}}function O(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function C(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function A(D){let P=this.xAxis[0],m=P.ordinal.convertOverscroll(P.options.overscroll),u=D.originalEvent.chartX,v=this.options.chart.panning,I=!1;if(v&&v.type!=="y"&&P.options.ordinal&&P.series.length&&(!D.touches||D.touches.length<=1)){let E,R,j=this.mouseDownX,G=P.getExtremes(),W=G.dataMin,N=G.dataMax,B=G.min,X=G.max,V=this.hoverPoints,H=P.closestPointRange||P.ordinal&&P.ordinal.overscrollPointsRange,K=Math.round((j-u)/(P.translationSlope*(P.ordinal.slope||H))),U=P.ordinal.getExtendedPositions(),Y={ordinal:{positions:U,extendedOrdinalPositions:U}},Z=P.index2val,q=P.val2lin;if(B<=W&&K<0||X+m>=N&&K>0)return;Y.ordinal.positions?Math.abs(K)>1&&(V&&V.forEach(function(J){J.setState()}),N>(R=Y.ordinal.positions)[R.length-1]&&R.push(N),this.setFixedRange(X-B),(E=P.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(Y,[q.apply(Y,[B,!0])+K]),Z.apply(Y,[q.apply(Y,[X,!0])+K]))).min>=Math.min(G.dataMin,B)&&E.max<=Math.max(N,X)+m&&P.setExtremes(E.min,E.max,!0,!1,{trigger:"pan"}),this.mouseDownX=u,c(this.container,{cursor:"move"})):I=!0}else I=!0;I||v&&/y/.test(v.type)?m&&(P.max=P.dataMax+m):D.preventDefault()}function F(){let D=this.xAxis;D&&D.options.ordinal&&(delete D.ordinal.index,delete D.ordinal.originalOrdinalRange)}function S(D,P){let m,u=this.ordinal,v=u.positions,I=u.slope,E;if(!v)return D;let R=v.length;if(v[0]<=D&&v[R-1]>=D)m=w(v,D);else{if(!((E=u.getExtendedPositions&&u.getExtendedPositions())&&E.length))return D;let j=E.length;I||(I=(E[j-1]-E[0])/j);let G=w(E,v[0]);if(D>=E[0]&&D<=E[j-1])m=w(E,D)-G;else{if(!P)return D;m=D0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(Y=q!==J.processedXData[1]-J.processedXData[0]),q=J.processedXData[1]-J.processedXData[0],J.boosted&&(Z=J.boosted),J.reserveSpace()&&(J.takeOrdinalPosition!==!1||E)&&(j=(H=H.concat(J.processedXData)).length,H.sort(function($,tt){return $-tt}),K=Math.min(K,y(J.closestPointRange,K)),j)){for(Q=0;Q2){for(W=H[1]-H[0],V=j-1;V--&&!U;)H[V+1]-H[V]!==W&&(U=!0);!P.options.keepOrdinalPadding&&(H[0]-v>W||I-H[H.length-1]>W)&&(U=!0)}else P.options.overscroll&&(j===2?K=H[1]-H[0]:j===1?(K=P.ordinal.convertOverscroll(P.options.overscroll),H=[H[0],H[0]+K]):K=m.overscrollPointsRange);U||P.forceOrdinal?(P.options.overscroll&&(m.overscrollPointsRange=K,H=H.concat(m.getOverscrollPositions())),m.positions=H,N=P.ordinal2lin(Math.max(v,H[0]),!0),B=Math.max(P.ordinal2lin(Math.min(I,H[H.length-1]),!0),1),m.slope=X=(I-v)/(B-N),m.offset=v-N*X):(m.overscrollPointsRange=y(P.closestPointRange,m.overscrollPointsRange),m.positions=P.ordinal.slope=m.offset=void 0)}P.isOrdinal=R&&U,m.groupIntervalFactor=null}static findIndexOf(P,m,u){let v=0,I=P.length-1,E;for(;vB.x>=W&&B.x<=N)};v.series.forEach(G=>{let W=G.points?.[0];g(W?.plotX)&&(W.plotXS()),f.splice(C,1);return}}}function z(){let C=this.rangeSelector;if(C){let A=C.getHeight();this.extraTopMargin&&(this.plotTop+=A),this.extraBottomMargin&&(this.marginBottom+=A)}}function O(C){let A=C.options.rangeSelector,F=this.extraBottomMargin,S=this.extraTopMargin,T=this.rangeSelector;if(A&&A.enabled&&!g(T)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=T=new a(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,T){let D=A&&A.verticalAlign||T.options&&T.options.verticalAlign;T.options.floating||(D==="bottom"?this.extraBottomMargin=!0:D==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==F||this.extraTopMargin!==S)&&(this.isDirtyBox=!0)}}return{compose:function(C,A,F){if(a=F,x(h,"RangeSelector")){let S=A.prototype;C.prototype.minFromRange=M,c(A,"afterGetContainer",L),c(A,"beforeRender",_),c(A,"destroy",k),c(A,"getMargins",z),c(A,"redraw",w),c(A,"update",O),S.callbacks.push(w),d(l,{rangeSelector:r.rangeSelector}),d(l.lang,r.lang)}}}}),e(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(i,s,r,o,a,l,h){let{defaultOptions:c}=s,{addEvent:g,createElement:d,css:p,defined:y,destroyObjectProperties:b,discardElement:x,extend:f,fireEvent:M,isNumber:L,merge:_,objectEach:w,pad:k,pick:z,pInt:O,splat:C}=l;class A{static compose(S,T){o.compose(S,T,A)}constructor(S){this.buttonOptions=A.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(S)}clickButton(S,T){let D=this.chart,P=this.buttonOptions[S],m=D.xAxis[0],u=D.scroller&&D.scroller.getUnionExtremes()||m||{},v=P.type,I=P.dataGrouping,E=u.dataMin,R=u.dataMax,j,G=m&&Math.round(Math.min(m.max,z(R,m.max))),W,N=P._range,B,X,V,H=!0;if(E!==null&&R!==null){if(this.setSelected(S),I&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(m||{chart:this.chart},I,!1),this.frozenStates=P.preserveDataGrouping),v==="month"||v==="year")m?(X={range:P,max:G,chart:D,dataMin:E,dataMax:R},j=m.minFromRange.call(X),L(X.newMax)&&(G=X.newMax),H=!1):N=P;else if(N)G=Math.min((j=Math.max(G-N,E))+N,R),H=!1;else if(v==="ytd")if(m)(R===void 0||E===void 0)&&(E=Number.MAX_VALUE,R=Number.MIN_VALUE,D.series.forEach(K=>{let U=K.xData;U&&(E=Math.min(U[0],E),R=Math.max(U[U.length-1],R))}),T=!1),j=B=(V=this.getYTDExtremes(R,E,D.time.useUTC)).min,G=V.max;else{this.deferredYTDClick=S;return}else v==="all"&&m&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),j=E,G=R);if(H&&P._offsetMin&&y(j)&&(j+=P._offsetMin),P._offsetMax&&y(G)&&(G+=P._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=S+1),m)m.setExtremes(j,G,z(T,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:P}),D.setFixedRange(P._range);else{W=C(D.options.xAxis)[0];let K=g(D,"afterGetAxes",function(){let U=D.xAxis[0];U.range=U.options.range=N,U.min=U.options.min=B});g(D,"load",function(){let U=D.xAxis[0];D.setFixedRange(P._range),U.options.range=W.range,U.options.min=W.min,K()})}M(this,"afterBtnClick")}}setSelected(S){this.selected=this.options.selected=S}init(S){let T=this,D=S.options.rangeSelector,P=D.buttons||T.defaultButtons.slice(),m=D.selected,u=function(){let v=T.minInput,I=T.maxInput;v&&v.blur&&M(v,"blur"),I&&I.blur&&M(I,"blur")};T.chart=S,T.options=D,T.buttons=[],T.buttonOptions=P,this.eventsToUnbind=[],this.eventsToUnbind.push(g(S.container,"mousedown",u)),this.eventsToUnbind.push(g(S,"resize",u)),P.forEach(T.computeButtonRange),m!==void 0&&P[m]&&this.clickButton(m,!1),this.eventsToUnbind.push(g(S,"load",function(){S.xAxis&&S.xAxis[0]&&g(S.xAxis[0],"setExtremes",function(v){L(this.max)&&L(this.min)&&this.max-this.min!==S.fixedRange&&v.trigger!=="rangeSelectorButton"&&v.trigger!=="updatedData"&&T.forcedDataGrouping&&!T.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let S=this,T=this.chart,D=this.dropdown,P=this.dropdownLabel,m=T.xAxis[0],u=Math.round(m.max-m.min),v=!m.hasVisibleSeries,I=24*36e5,E=T.scroller&&T.scroller.getUnionExtremes()||m,R=E.dataMin,j=E.dataMax,G=S.getYTDExtremes(j,R,T.time.useUTC),W=G.min,N=G.max,B=S.selected,X=S.options.allButtonsEnabled,V=Array(S.buttonOptions.length).fill(0),H=L(B),K=S.buttons,U=!1,Y=null;S.buttonOptions.forEach((Z,q)=>{let J=Z._range,Q=Z.type,$=Z.count||1,tt=Z._offsetMax-Z._offsetMin,it=q===B,et=J>j-R,st=JJ&&(nt=!0)}else(Q==="month"||Q==="year")&&u+36e5>={month:28,year:365}[Q]*I*$-tt&&u-36e5<={month:31,year:366}[Q]*I*$+tt?nt=!0:Q==="ytd"?(nt=N-W+tt===u,rt=!it):Q==="all"&&(nt=m.max-m.min>=j-R);let ot=!X&&!(U&&Q==="all")&&(et||st||v),at=U&&Q==="all"||!rt&&nt||it&&S.frozenStates;ot?V[q]=3:at&&(!H||q===B)&&(Y=q)}),Y!==null?(V[Y]=2,S.setSelected(Y)):(S.setSelected(),P&&(P.setState(0),P.attr({text:(c.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let Z=0;Z6&&(u.lastIndexOf("-")===u.length-6||u.lastIndexOf("+")===u.length-6))){let v=new Date(P).getTimezoneOffset()/60;P+=v<=0?`+${k(-v)}:00`:`-${k(v)}:00`}}let m=Date.parse(P);if(!L(m)){let u=S.split("-");m=Date.UTC(O(u[0]),O(u[1])-1,O(u[2]))}return D&&T&&L(m)&&(m+=D.getTimezoneOffset(m)),m}drawInput(S){let{chart:T,div:D,inputGroup:P}=this,m=this,u=T.renderer.style||{},v=T.renderer,I=T.options.rangeSelector,E=c.lang,R=S==="min";function j(V){let{maxInput:H,minInput:K}=m,U=T.xAxis[0],Y=T.scroller?.getUnionExtremes()||U,Z=Y.dataMin,q=Y.dataMax,J=T.xAxis[0].getExtremes()[V],Q=m.getInputValue(V);L(Q)&&Q!==J&&(R&&H&&L(Z)?Q>Number(H.getAttribute("data-hc-time"))?Q=void 0:Qq&&(Q=q)),Q!==void 0&&U.setExtremes(R?Q:U.min,R?U.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}let G=E[R?"rangeSelectorFrom":"rangeSelectorTo"]||"",W=v.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?I.inputBoxHeight:0}).add(P),N=v.label("",0).addClass("highcharts-range-input").attr({padding:2,width:I.inputBoxWidth,height:I.inputBoxHeight,"text-align":"center"}).on("click",function(){m.showInput(S),m[S+"Input"].focus()});T.styledMode||N.attr({stroke:I.inputBoxBorderColor,"stroke-width":1}),N.add(P);let B=d("input",{name:S,className:"highcharts-range-selector"},void 0,D);B.setAttribute("type",function(V){if(V.indexOf("%L")!==-1)return"text";let H=["a","A","d","e","w","b","B","m","o","y","Y"].some(U=>V.indexOf("%"+U)!==-1),K=["H","k","I","l","M","S"].some(U=>V.indexOf("%"+U)!==-1);return H&&K?"datetime-local":H?"date":K?"time":"text"}(I.inputDateFormat||"%e %b %Y")),T.styledMode||(W.css(_(u,I.labelStyle)),N.css(_({color:"#333333"},u,I.inputStyle)),p(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:u.fontSize,fontFamily:u.fontFamily,top:"-9999em"},I.inputStyle))),B.onfocus=()=>{m.showInput(S)},B.onblur=()=>{B===r.doc.activeElement&&j(S),m.hideInput(S),m.setInputValue(S),B.blur()};let X=!1;return B.onchange=()=>{X||(j(S),m.hideInput(S),B.blur())},B.onkeypress=V=>{V.keyCode===13&&j(S)},B.onkeydown=V=>{X=!0,(V.key==="ArrowUp"||V.key==="ArrowDown"||V.key==="Tab")&&j(S)},B.onkeyup=()=>{X=!1},{dateBox:N,input:B,label:W}}getPosition(){let S=this.chart,T=S.options.rangeSelector,D=T.verticalAlign==="top"?S.plotTop-S.axisOffset[0]:0;return{buttonTop:D+T.buttonPosition.y,inputTop:D+T.inputPosition.y-10}}getYTDExtremes(S,T,D){let P=this.chart.time,m=new P.Date(S),u=P.get("FullYear",m),v=Math.max(T,D?P.Date.UTC(u,0,1):+new P.Date(u,0,1)),I=m.getTime();return{max:Math.min(S||I,I),min:v}}createElements(){let S=this.chart,T=S.renderer,D=S.container,P=S.options,m=P.rangeSelector,u=m.inputEnabled,v=z(P.chart.style?.zIndex,0)+1;if(m.enabled!==!1&&(this.group=T.g("range-selector-group").attr({zIndex:7}).add(),this.div=d("div",void 0,{position:"relative",height:0,zIndex:v}),this.buttonOptions.length&&this.renderButtons(),D.parentNode&&D.parentNode.insertBefore(this.div,D),u)){this.inputGroup=T.g("input-group").add(this.group);let I=this.drawInput("min");this.minDateBox=I.dateBox,this.minLabel=I.label,this.minInput=I.input;let E=this.drawInput("max");this.maxDateBox=E.dateBox,this.maxLabel=E.label,this.maxInput=E.input}}render(S,T){let D=this.chart,P=D.options.rangeSelector,m=P.inputEnabled;if(P.enabled!==!1){if(m){this.setInputValue("min",S),this.setInputValue("max",T);let u=D.scroller&&D.scroller.getUnionExtremes()||D.xAxis[0]||{};if(y(u.dataMin)&&y(u.dataMax)){let v=D.xAxis[0].minRange||0;this.setInputExtremes("min",u.dataMin,Math.min(u.dataMax,this.getInputValue("max"))-v),this.setInputExtremes("max",Math.max(u.dataMin,this.getInputValue("min"))+v,u.dataMax)}if(this.inputGroup){let v=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(I=>{if(I){let{width:E}=I.getBBox();E&&(I.attr({x:v}),v+=E+P.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:S,chart:T,options:D}=this,P=c.lang,m=T.renderer,u=_(D.buttonTheme),v=u&&u.states,I=u.width||28;delete u.width,delete u.states,this.buttonGroup=m.g("range-selector-buttons").add(this.group);let E=this.dropdown=d("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),R=T.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=m.button("",0,0,()=>{},_(u,{"stroke-width":z(u["stroke-width"],0),width:"auto",paddingLeft:z(D.buttonTheme.paddingLeft,R?.padding,8),paddingRight:z(D.buttonTheme.paddingRight,R?.padding,8)}),v&&v.hover,v&&v.select,v&&v.disabled).hide().add(this.group),g(E,"touchstart",()=>{E.style.fontSize="16px"});let j=r.isMS?"mouseover":"mouseenter",G=r.isMS?"mouseout":"mouseleave";g(E,j,()=>{M(this.dropdownLabel.element,j)}),g(E,G,()=>{M(this.dropdownLabel.element,G)}),g(E,"change",()=>{M(this.buttons[E.selectedIndex-1].element,"click")}),this.zoomText=m.label(P.rangeSelectorZoom||"",0).attr({padding:D.buttonTheme.padding,height:D.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(D.labelStyle),u["stroke-width"]=z(u["stroke-width"],0)),d("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,E),this.buttonOptions.forEach((W,N)=>{d("option",{textContent:W.title||W.text},void 0,E),S[N]=m.button(W.text,0,0,B=>{let X,V=W.events&&W.events.click;V&&(X=V.call(W,B)),X!==!1&&this.clickButton(N),this.isActive=!0},u,v&&v.hover,v&&v.select,v&&v.disabled).attr({"text-align":"center",width:I}).add(this.buttonGroup),W.title&&S[N].attr("title",W.title)})}alignElements(){let{buttonGroup:S,buttons:T,chart:D,group:P,inputGroup:m,options:u,zoomText:v}=this,I=D.options,E=I.exporting&&I.exporting.enabled!==!1&&I.navigation&&I.navigation.buttonOptions,{buttonPosition:R,inputPosition:j,verticalAlign:G}=u,W=(B,X)=>E&&this.titleCollision(D)&&G==="top"&&X.align==="right"&&X.y-B.getBBox().height-12<(E.y||0)+(E.height||0)+D.spacing[0]?-40:0,N=D.plotLeft;if(P&&R&&j){let B=R.x-D.spacing[3];if(S){if(this.positionButtons(),!this.initialButtonGroupWidth){let J=0;v&&(J+=v.getBBox().width+5),T.forEach((Q,$)=>{J+=Q.width||0,$!==T.length-1&&(J+=u.buttonSpacing)}),this.initialButtonGroupWidth=J}N-=D.spacing[3];let q=W(S,R);this.alignButtonGroup(q),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),P.placed=S.placed=D.hasLoaded}let X=0;m&&(X=W(m,j),j.align==="left"?B=N:j.align==="right"&&(B=-Math.max(D.axisOffset[1],-X)),m.align({y:j.y,width:m.getBBox().width,align:j.align,x:j.x+B-2},!0,D.spacingBox),m.placed=D.hasLoaded),this.handleCollision(X),P.align({verticalAlign:G},!0,D.spacingBox);let V=P.alignAttr.translateY,H=P.getBBox().height+20,K=0;if(G==="bottom"){let q=D.legend&&D.legend.options;K=V-(H=H+(q&&q.verticalAlign==="bottom"&&q.enabled&&!q.floating?D.legend.legendHeight+z(q.margin,10):0)-20)-(u.floating?0:u.y)-(D.titleOffset?D.titleOffset[2]:0)-10}G==="top"?(u.floating&&(K=0),D.titleOffset&&D.titleOffset[0]&&(K=D.titleOffset[0]),K+=D.margin[0]-D.spacing[0]||0):G==="middle"&&(j.y===R.y?K=V:(j.y||R.y)&&(j.y<0||R.y<0?K-=Math.min(j.y,R.y):K=V-H)),P.translate(u.x,u.y+Math.floor(K));let{minInput:U,maxInput:Y,dropdown:Z}=this;u.inputEnabled&&U&&Y&&(U.style.marginTop=P.translateY+"px",Y.style.marginTop=P.translateY+"px"),Z&&(Z.style.marginTop=P.translateY+"px")}}alignButtonGroup(S,T){let{chart:D,options:P,buttonGroup:m}=this,{buttonPosition:u}=P,v=D.plotLeft-D.spacing[3],I=u.x-D.spacing[3];u.align==="right"?I+=S-v:u.align==="center"&&(I-=v/2),m&&m.align({y:u.y,width:z(T,this.initialButtonGroupWidth),align:u.align,x:I},!0,D.spacingBox)}positionButtons(){let{buttons:S,chart:T,options:D,zoomText:P}=this,m=T.hasLoaded?"animate":"attr",{buttonPosition:u}=D,v=T.plotLeft,I=v;P&&P.visibility!=="hidden"&&(P[m]({x:z(v+u.x,v)}),I+=u.x+P.getBBox().width+5);for(let E=0,R=this.buttonOptions.length;E{let j=0;return this.buttons.forEach(G=>{let W=G.getBBox();W.width>j&&(j=W.width)}),j},E=j=>{if(P?.alignOptions&&D){let G=P.alignAttr.translateX+P.alignOptions.x-S+P.getBBox().x+2,W=P.alignOptions.width||0,N=D.alignAttr.translateX+D.getBBox().x;return N+j>G&&G+W>N&&m.y{P&&D&&P.attr({translateX:P.alignAttr.translateX+(T.axisOffset[1]>=-S?0:-S),translateY:P.alignAttr.translateY+D.getBBox().height+10})};if(D){if(u==="always"){this.collapseButtons(),E(I())&&R();return}u==="never"&&this.expandButtons()}P&&D?v.align===m.align||E(this.initialButtonGroupWidth+20)?u==="responsive"?(this.collapseButtons(),E(I())&&R()):R():u==="responsive"&&this.expandButtons():D&&u==="responsive"&&(this.initialButtonGroupWidth>T.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:S,zoomText:T}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,T.hide(),S.forEach(D=>void D.hide()),this.showDropdown())}expandButtons(){let{buttons:S,zoomText:T}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),T.show(),S.forEach(D=>void D.show()),this.positionButtons())}showDropdown(){let{buttonGroup:S,chart:T,dropdownLabel:D,dropdown:P}=this;if(S&&P){let{translateX:m=0,translateY:u=0}=S,v=T.plotLeft+m;D.attr({x:v,y:u}).show(),p(P,{left:v+"px",top:u+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:S}=this;S&&(this.dropdownLabel.hide(),p(S,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let S=this.options,T=this.group,D=S.inputPosition,P=S.buttonPosition,m=S.y,u=P.y,v=D.y,I=0;if(S.height)return S.height;this.alignElements(),I=T?T.getBBox(!0).height+13+m:0;let E=Math.min(v,u);return(v<0&&u<0||v>0&&u>0)&&(I+=Math.abs(E)),I}titleCollision(S){return!(S.options.title.text||S.options.subtitle.text)}update(S,T=!0){let D=this.chart;_(!0,D.options.rangeSelector,S),this.destroy(),this.init(D),T&&this.render()}destroy(){let S=this,T=S.minInput,D=S.maxInput;S.eventsToUnbind&&(S.eventsToUnbind.forEach(P=>P()),S.eventsToUnbind=void 0),b(S.buttons),T&&(T.onfocus=T.onblur=T.onchange=null),D&&(D.onfocus=D.onblur=D.onchange=null),w(S,function(P,m){P&&m!=="chart"&&(P instanceof a?P.destroy():P instanceof window.HTMLElement&&x(P)),P!==A.prototype[m]&&(S[m]=null)},this)}}return f(A.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"}}),A}),e(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(i,s,r,o,a,l,h,c){let{format:g}=s,{getOptions:d}=r,{setFixedRange:p}=h,{addEvent:y,clamp:b,crisp:x,defined:f,extend:M,find:L,isNumber:_,isString:w,merge:k,pick:z,splat:O}=c;function C(S,T,D){return S==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:S==="yAxis"?{labels:{y:-2},opposite:D.opposite??T.opposite??!0,showLastLabel:!!(T.categories||T.type==="category"),title:{text:D.title?.text!=="Values"?D.title?.text:null}}:{}}function A(S,T){if(S==="xAxis"){let D=z(T.navigator&&T.navigator.enabled,o.enabled,!0),P={type:"datetime",categories:void 0};return D&&(P.startOnTick=!1,P.endOnTick=!1),P}return{}}class F extends i{init(T,D){let P=d(),m=T.xAxis,u=T.yAxis,v=z(T.navigator&&T.navigator.enabled,o.enabled,!0);T.xAxis=T.yAxis=void 0;let I=k({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:v},scrollbar:{enabled:z(l.enabled,!0)},rangeSelector:{enabled:z(a.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:z(P.tooltip&&P.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},T,{isStock:!0});T.xAxis=m,T.yAxis=u,I.xAxis=O(T.xAxis||{}).map(E=>k(C("xAxis",E,P.xAxis),E,A("xAxis",T))),I.yAxis=O(T.yAxis||{}).map(E=>k(C("yAxis",E,P.yAxis),E)),super.init(I,D)}createAxis(T,D){return D.axis=k(C(T,D.axis,d()[T]),D.axis,A(T,this.userOptions)),super.createAxis(T,D)}}return y(i,"update",function(S){let T=S.options;"scrollbar"in T&&this.navigator&&(k(!0,this.options.scrollbar,T.scrollbar),this.navigator.update({enabled:!!this.navigator.navigatorEnabled}),delete T.scrollbar)}),function(S){function T(R){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!_(this.min)||!_(this.max))return;let j=this.chart,G=this.logarithmic,W=this.crosshair.label,N=this.horiz,B=this.opposite,X=this.left,V=this.top,H=this.width,K=this.options.tickPosition==="inside",U=this.crosshair.snap!==!1,Y=R.e||this.cross&&this.cross.e,Z=R.point,q=this.crossLabel,J,Q,$=W.format,tt="",it,et=0,st=this.min,rt=this.max;G&&(st=G.lin2log(this.min),rt=G.lin2log(this.max));let nt=N?"center":B?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";q||(q=this.crossLabel=j.renderer.label("",0,void 0,W.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Z&&Z.series?Z.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:W.align||nt,padding:z(W.padding,8),r:z(W.borderRadius,3),zIndex:2}).add(this.labelGroup),j.styledMode||q.attr({fill:W.backgroundColor||Z&&Z.series&&Z.series.color||"#666666",stroke:W.borderColor||"","stroke-width":W.borderWidth||0}).css(M({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},W.style||{}))),N?(J=U?(Z.plotX||0)+X:Y.chartX,Q=V+(B?0:this.height)):(J=X+this.offset+(B?H:0),Q=U?(Z.plotY||0)+V:Y.chartY),$||W.formatter||(this.dateTime&&(tt="%b %d, %Y"),$="{value"+(tt?":"+tt:"")+"}");let ot=U?this.isXAxis?Z.x:Z.y:this.toValue(N?Y.chartX:Y.chartY),at=Z&&Z.series?Z.series.isPointInside(Z):_(ot)&&ot>st&&ot=it.right&&(et=-(lt+ht.width-it.right)),q.attr({x:J+et,y:Q,anchorX:N?J:this.opposite?0:j.chartWidth,anchorY:N?this.opposite?j.chartHeight:0:Q+ht.height/2})}function D(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function P(R){let j=this.chart,G=this.options,W=j._labelPanes=j._labelPanes||{},N=G.labels;if(j.options.isStock&&this.coll==="yAxis"){let B=G.top+","+G.height;!W[B]&&N.enabled&&(N.distance===15&&this.side===1&&(N.distance=0),N.align===void 0&&(N.align="right"),W[B]=this,R.align="right",R.preventDefault())}}function m(){let R=this.chart,j=this.options&&this.options.top+","+this.options.height;j&&R._labelPanes&&R._labelPanes[j]===this&&delete R._labelPanes[j]}function u(R){let j=this,G=j.isLinked&&!j.series&&j.linkedParent?j.linkedParent.series:j.series,W=j.chart,N=W.renderer,B=j.left,X=j.top,V=[],H=R.translatedValue,K=R.value,U=R.force,Y,Z,q,J,Q=[],$,tt;if(W.options.isStock&&R.acrossPanes!==!1&&j.coll==="xAxis"||j.coll==="yAxis"){for(let it of(R.preventDefault(),Q=(et=>{let st=et==="xAxis"?"yAxis":"xAxis",rt=j.options[st];return _(rt)?[W[st][rt]]:w(rt)?[W.get(rt)]:G.map(nt=>nt[st])})(j.coll),j.isXAxis?W.yAxis:W.xAxis))if(!it.options.isInternal){let et=it.isXAxis?"yAxis":"xAxis";j===(f(it.options[et])?W[et][it.options[et]]:W[et][0])&&Q.push(it)}for(let it of($=Q.length?[]:[j.isXAxis?W.yAxis[0]:W.xAxis[0]],Q))$.indexOf(it)!==-1||L($,et=>et.pos===it.pos&&et.len===it.len)||$.push(it);if(_(tt=z(H,j.translate(K||0,void 0,void 0,R.old))))if(j.horiz)for(let it of $){let et;J=(Z=it.pos)+it.len,Y=q=Math.round(tt+j.transB),U!=="pass"&&(YB+j.width)&&(U?Y=q=b(Y,B,B+j.width):et=!0),et||V.push(["M",Y,Z],["L",q,J])}else for(let it of $){let et;q=(Y=it.pos)+it.len,Z=J=Math.round(X+j.height-tt),U!=="pass"&&(ZX+j.height)&&(U?Z=J=b(Z,X,X+j.height):et=!0),et||V.push(["M",Y,Z],["L",q,J])}R.path=V.length>0?N.crispPolyLine(V,R.lineWidth||1):void 0}}function v(R){if(this.chart.options.isStock){let j;this.is("column")||this.is("columnrange")?j={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(j={marker:{enabled:!1,radius:2}}),j&&(R.plotOptions[this.type]=k(R.plotOptions[this.type],j))}}function I(){let R=this.chart,j=this.options.dataGrouping;return this.allowDG!==!1&&j&&z(j.enabled,R.options.isStock)}function E(R,j){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}}),e(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(i,s,r,o){let{column:a}=r.seriesTypes,{crisp:l,extend:h,merge:c}=o;class g extends a{extendStem(p,y,b){let x=p[0],f=p[1];typeof x[2]=="number"&&(x[2]=Math.max(b+y,x[2])),typeof f[2]=="number"&&(f[2]=Math.min(b-y,f[2]))}getPointPath(p,y){let b=y.strokeWidth(),x=p.series,f=l(p.plotX||0,b),M=Math.round(p.shapeArgs.width/2),L=[["M",f,Math.round(p.yBottom)],["L",f,Math.round(p.plotHigh)]];if(p.close!==null){let _=l(p.plotClose,b);L.push(["M",f,_],["L",f+M,_]),x.extendStem(L,b/2,_)}return L}drawSinglePoint(p){let y=p.series,b=y.chart,x,f=p.graphic;p.plotY!==void 0&&(f||(p.graphic=f=b.renderer.path().add(y.group)),b.styledMode||f.attr(y.pointAttribs(p,p.selected&&"select")),x=y.getPointPath(p,f),f[f?"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,y){let b=super.pointAttribs.call(this,p,y);return delete b.fill,b}toYData(p){return[p.high,p.low,p.close]}translate(){let p=this,y=p.yAxis,b=this.pointArrayMap&&this.pointArrayMap.slice()||[],x=b.map(f=>`plot${f.charAt(0).toUpperCase()+f.slice(1)}`);x.push("yBottom"),b.push("low"),super.translate.apply(p),p.points.forEach(function(f){b.forEach(function(M,L){let _=f[M];_!==null&&(p.dataModify&&(_=p.dataModify.modifyValue(_)),f[x[L]]=y.toPixels(_,!0))}),f.tooltipPos[1]=f.plotHigh+y.pos-p.chart.plotTop})}}return g.defaultOptions=c(a.defaultOptions,s),h(g.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",g),g}),e(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{seriesTypes:{hlc:s}}=i;class r extends s.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}
'}}}),e(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(i,s,r,o,a){let{composed:l}=i,{hlc:h}=o.seriesTypes,{addEvent:c,crisp:g,extend:d,merge:p,pushUnique:y}=a;function b(M){let L=M.options,_=L.dataGrouping;_&&L.useOhlcData&&L.id!=="highcharts-navigator-series"&&(_.approximation="ohlc")}function x(M){let L=M.options;L.useOhlcData&&L.id!=="highcharts-navigator-series"&&d(this,{pointValKey:f.prototype.pointValKey,pointArrayMap:f.prototype.pointArrayMap,toYData:f.prototype.toYData})}class f extends h{static compose(L,..._){y(l,"OHLCSeries")&&(c(L,"afterSetOptions",b),c(L,"init",x))}getPointPath(L,_){let w=super.getPointPath(L,_),k=_.strokeWidth(),z=g(L.plotX||0,k),O=Math.round(L.shapeArgs.width/2);if(L.open!==null){let C=g(L.plotOpen,k);w.push(["M",z,C],["L",z-O,C]),super.extendStem(w,k/2,C)}return w}pointAttribs(L,_){let w=super.pointAttribs.call(this,L,_),k=this.options;return delete w.fill,!L.options.color&&k.upColor&&L.openp&&(g-=Math.round((y-p)/2),p=y),x=h[c](g,d,p,y,b),f&&M){let L=f;if(c==="circle")L=g+p/2;else{let w=x[0],k=x[1];w[0]==="M"&&k[0]==="L"&&(L=(w[1]+k[1])/2)}let _=d>M?d:d+y;x.push(["M",L,_],["L",f,M]),x=x.concat(h.circle(f-1,M-1,2,2))}return x}}r.compose=function(h){if(o.indexOf(h)===-1){o.push(h);let g=h.prototype.symbols;g.flag=a,l(g,"circle"),l(g,"square")}let c=i.getRendererType();o.indexOf(c)&&o.push(c)}}(s||(s={})),s}),e(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{composed:l}=s,{prototype:h}=i,{prototype:c}=r,{defined:g,pushUnique:d,stableSort:p}=o;return function(y){function b(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,M=f.options,L=f.chart,_=f.points,w=M.onSeries,k=w&&L.get(w),z=k&&k.options.step,O=k&&k.points,C=L.inverted,A=f.xAxis,F=f.yAxis,S=_.length-1,T,D,P=M.onKey||"y",m=O&&O.length,u=0,v,I,E,R,j;if(k&&k.visible&&m){for(u=(k.pointXOffset||0)+(k.barW||0)/2,R=k.currentDataGrouping,I=O[m-1].x+(R?R.totalRange:0),p(_,(G,W)=>G.x-W.x),P="plot"+P[0].toUpperCase()+P.substr(1);m--&&_[S];)if(v=O[m],(T=_[S]).y=v.y,v.x<=T.x&&v[P]!==void 0){if(T.x<=I&&(T.plotY=v[P],v.xMath.pow(1-U,3)*G[Y]+3*(1-U)*(1-U)*U*N[Y]+3*(1-U)*U*U*B[Y]+U*U*U*W[Y],V=0,H=1,K;for(let U=0;U<100;U++){let Y=(V+H)/2,Z=X(Y,0);if(Z===null)break;if(.25>Math.abs(Z-T.plotX)){K=Y;break}Z{let N;G.plotX+=u,(G.plotY===void 0||C)&&(G.plotX>=0&&G.plotX<=A.len?C?(G.plotY=A.translate(G.x,0,1,0,1),G.plotX=g(G.y)?F.translate(G.y,0,0,0,1):0):G.plotY=(A.opposite?0:f.yAxis.len)+A.offset:G.shapeArgs={}),(D=_[W-1])&&D.plotX===G.plotX&&(D.stackIndex===void 0&&(D.stackIndex=0),N=D.stackIndex+1),G.stackIndex=N}),this.onSeries=k}y.compose=function(f){if(d(l,"OnSeries")){let M=f.prototype;M.getPlotBox=b,M.translate=x}return f},y.getPlotBox=b,y.translate=x}(a||(a={})),a}),e(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(i,s,r,o,a,l,h,c,g){let{noop:d}=o,{distribute:p}=l,{series:y,seriesTypes:{column:b}}=h,{addEvent:x,defined:f,extend:M,isNumber:L,merge:_,objectEach:w,wrap:k}=g;class z extends b{animate(C){C&&this.setClip()}drawPoints(){let C,A,F,S,T,D,P,m,u,v,I,E=this.points,R=this.chart,j=R.renderer,G=R.inverted,W=this.options,N=W.y,B=this.yAxis,X={},V=[],H=L(W.borderRadius)?W.borderRadius:0;for(S=E.length;S--;)T=E[S],v=(G?T.plotY:T.plotX)>this.xAxis.len,C=T.plotX,P=T.stackIndex,F=T.options.shape||W.shape,(A=T.plotY)!==void 0&&(A=T.plotY+N-(P!==void 0&&P*W.stackDistance)),T.anchorX=P?void 0:T.plotX,m=P?void 0:T.plotY,I=F!=="flag",D=T.graphic,A!==void 0&&C>=0&&!v?(D&&T.hasNewShapeType()&&(D=D.destroy()),D||(D=T.graphic=j.label("",0,void 0,F,void 0,void 0,W.useHTML).addClass("highcharts-point").add(this.markerGroup),T.graphic.div&&(T.graphic.div.point=T),D.isNew=!0),D.attr({align:I?"center":"left",width:W.width,height:W.height,"text-align":W.textAlign,r:H}),R.styledMode||D.attr(this.pointAttribs(T)).css(_(W.style,T.style)).shadow(W.shadow),C>0&&(C-=D.strokeWidth()%2),u={y:A,anchorY:m},W.allowOverlapX&&(u.x=C,u.anchorX=T.anchorX),D.attr({text:T.options.title??W.title??"A"})[D.isNew?"attr":"animate"](u),W.allowOverlapX||(X[T.plotX]?X[T.plotX].size=Math.max(X[T.plotX].size,D.width||0):X[T.plotX]={align:I?.5:0,size:D.width||0,target:C,anchorX:C}),T.tooltipPos=[C,A+B.pos-R.plotTop]):D&&(T.graphic=D.destroy());if(!W.allowOverlapX){let K=100;for(let U of(w(X,function(Y){Y.plotX=Y.anchorX,V.push(Y),K=Math.max(Y.size,K)}),p(V,G?B.len:this.xAxis.len,K),E)){let Y=U.plotX,Z=U.graphic,q=Z&&X[Y];q&&Z&&(f(q.pos)?Z[Z.isNew?"attr":"animate"]({x:q.pos+(q.align||0)*q.size,anchorX:U.anchorX}).show().isNew=!1:Z.hide().isNew=!0)}}W.useHTML&&this.markerGroup&&k(this.markerGroup,"on",function(K){return c.prototype.on.apply(K.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let C=this.points;for(let A of(super.drawTracker(),C)){let F=A.graphic;F&&(A.unbindMouseOver&&A.unbindMouseOver(),A.unbindMouseOver=x(F.element,"mouseover",function(){for(let S of(A.stackIndex>0&&!A.raised&&(A._y=F.y,F.attr({y:A._y-8}),A.raised=!0),C))S!==A&&S.raised&&S.graphic&&(S.graphic.attr({y:S._y}),S.raised=!1)}))}}pointAttribs(C,A){let F=this.options,S=C&&C.color||this.color,T=F.lineColor,D=C&&C.lineWidth,P=C&&C.fillColor||F.fillColor;return A&&(P=F.states[A].fillColor,T=F.states[A].lineColor,D=F.states[A].lineWidth),{fill:P||S,stroke:T||S,"stroke-width":D||F.lineWidth||0}}setClip(){y.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return z.compose=r.compose,z.defaultOptions=_(b.defaultOptions,s),a.compose(z),M(z.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:d,init:y.prototype.init}),h.registerSeriesType("flags",z),z}),e(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s){var r;let{addEvent:o,find:a,fireEvent:l,isArray:h,isNumber:c,pick:g}=s;return function(d){function p(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function b(){let k=this.brokenAxis;if(k?.hasBreaks){let z=this.tickPositions,O=this.tickPositions.info,C=[];for(let A=0;Au.to||C>u.from&&Au.from&&Au.from&&A>u.to&&A0){let S,T;for(this.options.gapUnit!=="value"&&(A*=this.basePointRange),z&&z>A&&z>=this.basePointRange&&(A=z);F--;)if(T&&T.visible!==!1||(T=O[F+1]),S=O[F],T.visible!==!1&&S.visible!==!1){if(T.x-S.x>A){let D=(S.x+T.x)/2;O.splice(F+1,0,{isNull:!0,x:D}),C.stacking&&this.options.stacking&&((C.stacking.stacks[this.stackKey][D]=new i(C,C.options.stackLabels,!1,D,this.stack)).total=0)}T=S}}return this.getGraphPath(O)}d.compose=function(k,z){if(!k.keepProps.includes("brokenAxis")){k.keepProps.push("brokenAxis"),o(k,"init",x),o(k,"afterInit",p),o(k,"afterSetTickPositions",b),o(k,"afterSetOptions",y);let O=z.prototype;O.drawBreaks=L,O.gappedPath=_,o(z,"afterGeneratePoints",f),o(z,"afterRender",M)}return k};class w{static isInBreak(z,O){let C=z.repeat||1/0,A=z.from,F=z.to-z.from,S=O>=A?(O-A)%C:C-(A-O)%C;return z.inclusive?S<=F:S=A);S++)(F.to=z)break;if(w.isInBreak(F,z)){A-=z-F.from;break}}return A}constructor(z){this.hasBreaks=!1,this.axis=z}findBreakAt(z,O){return a(O,function(C){return C.fromI;)R-=v;for(;Rthis.chart.plotSizeX/x||M&&L.forced)&&(f=!0));return f?x:0}function d(){this.series.forEach(function(y){y.hasProcessed=!1})}function p(y,b){let x;if(b=h(b,!0),y||(y={forced:!1,units:null}),this instanceof r)for(x=this.series.length;x--;)this.series[x].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(f){f.dataGrouping=typeof y=="boolean"?y:l(y,f.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),b&&this.chart.redraw()}return{compose:function(y){r=y;let b=y.prototype;b.applyGrouping||(o(y,"afterSetScale",d),o(y,"postProcessData",c),a(b,{applyGrouping:c,getGroupPixelWidth:g,setDataGrouping:p}))}}}),e(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(i,s,r,o,a,l){let{series:{prototype:h}}=a,{addEvent:c,defined:g,error:d,extend:p,isNumber:y,merge:b,pick:x}=l,f=h.generatePoints;function M(O){var C;let A,F,S=this.chart,T=this.options.dataGrouping,D=this.allowDG!==!1&&T&&x(T.enabled,S.options.isStock),P=this.reserveSpace(),m=this.currentDataGrouping,u,v,I=!1;D&&!this.requireSorting&&(this.requireSorting=I=!0);let E=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!O)||!D;if(I&&(this.requireSorting=!1),E)return;this.destroyGroupedData();let R=T.groupAll?this.xData:this.processedXData,j=T.groupAll?this.yData:this.processedYData,G=S.plotSizeX,W=this.xAxis,N=W.options.ordinal,B=this.groupPixelWidth;if(B&&R&&R.length&&G){F=!0,this.isDirty=!0,this.points=null;let X=W.getExtremes(),V=X.min,H=X.max,K=N&&W.ordinal&&W.ordinal.getGroupIntervalFactor(V,H,this)||1,U=B*(H-V)/G*K,Y=W.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(U,T.units||s.units),Math.min(V,R[0]),Math.max(H,R[R.length-1]),W.options.startOfWeek,R,this.closestPointRange),Z=h.groupData.apply(this,[R,j,Y,T.approximation]),q=Z.groupedXData,J=Z.groupedYData,Q=0;for(T&&T.smoothed&&q.length&&(T.firstAnchor="firstPoint",T.anchor="middle",T.lastAnchor="lastPoint",d(32,!1,S,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),A=1;A=tt[0]){let lt;ht++;let yt=$.groupMap[0].start,Et=$.groupMap[0].length;y(yt)&&y(Et)&&(lt=yt+(Et-1)),tt[0]={start:tt[0],middle:tt[0]+.5*st,end:tt[0]+st,firstPoint:$.xData[0],lastPoint:lt&&$.xData[lt]}[ot]}if(rt>0&&at&&st&&tt[rt]>=it-st){ct--;let lt=$.groupMap[$.groupMap.length-1].start;tt[rt]={start:tt[rt],middle:tt[rt]+.5*st,end:tt[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;)tt[ct]+=lt,ct--}}(this,q,H),P&&(g((C=q)[0])&&y(W.min)&&y(W.dataMin)&&C[0]W.max&&((!g(W.options.max)&&y(W.dataMax)&&W.max>=W.dataMax||W.max===W.dataMax)&&(W.max=Math.max(C[C.length-1],W.max)),W.dataMax=Math.max(C[C.length-1],W.dataMax))),T.groupAll&&(this.allGroupedData=J,q=(v=this.cropData(q,J,W.min,W.max)).xData,J=v.yData,this.cropStart=v.start),this.processedXData=q,this.processedYData=J}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=F,this.preventGraphAnimation=(m&&m.totalRange)!==(u&&u.totalRange)}function L(){this.groupedData&&(this.groupedData.forEach(function(O,C){O&&(this.groupedData[C]=O.destroy?O.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function _(){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 k(O,C,A,F){let S=this,T=S.data,D=S.options&&S.options.data,P=[],m=[],u=[],v=O.length,I=!!C,E=[],R=S.pointArrayMap,j=R&&R.length,G=["x"].concat(R||["y"]),W=this.options.dataGrouping&&this.options.dataGrouping.groupAll,N,B,X,V=0,H=0,K=typeof F=="function"?F:F&&i[F]?i[F]:i[S.getDGApproximation&&S.getDGApproximation()||"average"];if(j){let Y=R.length;for(;Y--;)E.push([])}else E.push([]);let U=j||1;for(let Y=0;Y<=v;Y++)if(!(O[Y]=A[V+1]||Y===v;){N=A[V],S.dataGroupInfo={start:W?H:S.cropStart+H,length:E[0].length,groupStart:N},X=K.apply(S,E),S.pointClass&&!g(S.dataGroupInfo.options)&&(S.dataGroupInfo.options=b(S.pointClass.prototype.optionsToObject.call({series:S},S.options.data[S.cropStart+H])),G.forEach(function(Z){delete S.dataGroupInfo.options[Z]})),X!==void 0&&(P.push(N),m.push(X),u.push(S.dataGroupInfo)),H=Y;for(let Z=0;Z{let c=h.axis.getExtremes(),g=c.min,d=c.max,p=o(h.axis.minPointOffset,0);return r(g)&&r(d)&&h.value>=g-p&&h.value<=d+p&&!h.axis.options.isInternal})[0]},getFieldType:function(l,h){let c=a[l],g=typeof h;return s(c)&&(g=c),{string:"text",number:"number",boolean:"checkbox"}[g]}}}),e(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(i,s){let r,{addEvent:o,isObject:a,pick:l,defined:h,merge:c}=i,{getAssignedAxis:g}=s,d=[],p={enabled:!0,sensitivity:1.1},y=f=>(a(f)||(f={enabled:f??!0}),c(p,f)),b=function(f,M,L,_,w,k,z){let O=l(z.type,f.zooming.type,""),C=[];O==="x"?C=L:O==="y"?C=_:O==="xy"&&(C=f.axes);let A=f.transform({axes:C,to:{x:w-5,y:k-5,width:10,height:10},from:{x:w-5*M,y:k-5*M,width:10*M,height:10*M},trigger:"mousewheel"});return A&&(h(r)&&clearTimeout(r),r=setTimeout(()=>{f.pointer?.drop()},400)),A};function x(){let f=y(this.zooming.mouseWheel);f.enabled&&o(this.container,"wheel",M=>{M=this.pointer?.normalize(M)||M;let{pointer:L}=this,_=L&&!L.inClass(M.target,"highcharts-no-mousewheel");if(this.isInsidePlot(M.chartX-this.plotLeft,M.chartY-this.plotTop)&&_){let w=f.sensitivity||1.1,k=M.detail||(M.deltaY||0)/120,z=g(L.getCoordinates(M).xAxis),O=g(L.getCoordinates(M).yAxis);b(this,Math.pow(w,k),z?[z.axis]:this.xAxis,O?[O.axis]:this.yAxis,M.chartX,M.chartY,f)&&M.preventDefault?.()}})}return{compose:function(f){d.indexOf(f)===-1&&(d.push(f),o(f,"afterGetContainer",x))}}}),e(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(i,s){return i.MouseWheelZoom=i.MouseWheelZoom||s,i.MouseWheelZoom.compose(i.Chart),i}),e(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(i,s,r,o,a,l,h,c,g){return i.Navigator=i.Navigator||r,i.OrdinalAxis=i.OrdinalAxis||o,i.RangeSelector=i.RangeSelector||a,i.Scrollbar=i.Scrollbar||l,i.stockChart=i.stockChart||h.stockChart,i.StockChart=i.StockChart||i.stockChart,i.extend(i.StockChart,h),s.compose(i.Series,i.Axis,i.Point),g.compose(i.Renderer),c.compose(i.Series),i.Navigator.compose(i.Chart,i.Axis,i.Series),i.OrdinalAxis.compose(i.Axis,i.Series,i.Chart),i.RangeSelector.compose(i.Axis,i.Chart),i.Scrollbar.compose(i.Axis),i.StockChart.compose(i.Chart,i.Axis,i.Series,i.SVGRenderer),i})})});var Qu=ai((wA,go)=>{"use strict";(function(n){typeof go=="object"&&go.exports?(n.default=n,go.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(t,"Core/Axis/SolidGaugeAxis.js",[t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Utilities.js"]],function(i,s){let{extend:r}=s;return{init:function(o){r(o,i)}}}),e(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),e(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(i,s,r,o,a){let{gauge:l,pie:h}=s.seriesTypes,{clamp:c,extend:g,isNumber:d,merge:p,pick:y,pInt:b}=a;class x extends l{translate(){let M=this.yAxis;r.init(M),!M.dataClasses&&M.options.dataClasses&&M.initDataClasses(M.options),M.initStops(),l.prototype.translate.call(this)}drawPoints(){let M,L=this.yAxis,_=L.center,w=this.options,k=this.chart.renderer,z=w.overshoot,O=w.rounded&&w.borderRadius===void 0,C=d(z)?z/180*Math.PI:0;for(let A of(d(w.threshold)&&(M=L.startAngleRad+L.translate(w.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=y(M,L.startAngleRad),this.points))if(!A.isNull){let F=b(y(A.options.radius,w.radius,100))*_[2]/200,S=b(y(A.options.innerRadius,w.innerRadius,60))*_[2]/200,T=Math.min(L.startAngleRad,L.endAngleRad),D=Math.max(L.startAngleRad,L.endAngleRad),P=A.graphic,m=L.startAngleRad+L.translate(A.y,void 0,void 0,void 0,!0),u,v,I=L.toColor(A.y,A);I==="none"&&(I=A.color||this.color||"none"),I!=="none"&&(A.color=I),m=c(m,T-C,D+C),w.wrap===!1&&(m=c(m,T,D));let E=O?(F-S)/2/F:0,R=Math.min(m,this.thresholdAngleRad)-E,j=Math.max(m,this.thresholdAngleRad)+E;j-R>2*Math.PI&&(j=R+2*Math.PI);let G=O?"50%":0;w.borderRadius&&(G=i.optionsToObject(w.borderRadius).radius),A.shapeArgs=u={x:_[0],y:_[1],r:F,innerR:S,start:R,end:j,borderRadius:G},A.startR=F,P?(v=u.d,P.animate(g({fill:I},u)),v&&(u.d=v)):A.graphic=P=k.arc(u).attr({fill:I,"sweep-flag":0}).add(this.group),this.chart.styledMode||(w.linecap!=="square"&&P.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),P.attr({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0})),P&&P.addClass(A.getClassName(),!0)}}animate(M){M||(this.startAngleRad=this.thresholdAngleRad,h.prototype.animate.call(this,M))}}return x.defaultOptions=p(l.defaultOptions,o),s.registerSeriesType("solidgauge",x),x}),e(t,"masters/modules/solid-gauge.src.js",[t["Core/Globals.js"]],function(i){return i})})});var _o=Jt(Ms());var Yh="Oxygen",Uh="mdx2json.emptyportlet",Hh="DSW.Addons.";var pe=(()=>{class n{constructor(){this.model={},this.el=Qt(Lh),this.cd=Qt(Rh),this.ds=Qt(jh),this.ss=Qt(Bh),this.bs=Qt(Gh),this.us=Qt(Nh),this.i18n=Qt(zh),this.route=Qt(Fh),this.fs=Qt(Wh),this.dbs=Qt(Xh),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(s=>{let r=s.dataValue?.toString().split("/");return i.some(o=>r.includes(o))})}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(s=>e.indexOf(s.action.toLowerCase())===-1&&s.type!=="hidden");i.length!==0&&(this.widget.acItems=i)}initializeChoseDataSource(){return Ft(this,null,function*(){if(!this.widget)return;let e=r=>r.action==="chooseDataSource"||r.action==="chooseRowSpec"||r.action==="setRowSpec"||r.action==="chooseColumnSpec",i=this.widget.type===Uh;if(!i&&(!this.widget.controls||this.widget.controls.length===0))return;let s=[];if(this.widget.controls&&(s=this.widget.controls.filter(e).filter(r=>r.location!=="dashboard")),i){let r=this.dbs.getWidgets();for(let o=0;oa.location==="dashboard")))}if(s.length!==0){this.hasDatasourceChooser=!0,this.widget.dsItems=[];for(let r=0;r{l[p]=d[y]})}}let c={action:s[r].action,label:s[r].label||this.i18n.get("dataSource"),dsSelected:s[r].value,control:s[r],labels:[],values:[],field:"select"};this.widget.dsItems.push(c);let g=null;if(h?g=yield this.ds.getTermList(h):g=l,g&&typeof g=="object"){for(let p in g)g[p]===this.widget.dataSource&&(this.widget.dsSelected=p);c.labels=[],c.values=[],(c.control?.action==="chooseRowSpec"||c.control?.action==="setRowSpec")&&(c.labels.push(""),c.values.push(""));for(let p in g)c.labels.push(p),c.values.push(g[p]);let d=-1;this.customDataSource?d=c.values.findIndex(p=>p===this.customDataSource):d=c.values.findIndex(p=>p.split("/").pop()===c.dsSelected),d===-1?c.dsSelected=c.labels[0]:c.dsSelected=c.labels[d],this.parent?.filters.detectChanges()}}}})}onVariableChange(e){let i=e.target;this.bs.broadcast(`updatePivotVar:${i}`)}onPivotVarChanged(){this.requestData()}getColumnIndexByName(e,i){return e.Cols[0].tuples.findIndex(s=>s.caption.toLowerCase()===i.toLowerCase())}getDataByColumnName(e,i,s,r=""){if(!e||!e.Data||!e.Cols||!e.Cols[0]||!e.Cols[0].tuples)return;let o=e.Cols[0].tuples.filter(c=>c.caption.toLowerCase()===i.toLowerCase());if(o.length===0)return;let a=e.Cols[0].tuples.indexOf(o[0]),l=e.Cols[0].tuples[a].originalIndex;l!==void 0&&(a=l);let h=e.Data[s+a];return r&&(h=this.formatNumber(h,r)),h}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:"+s,{path:"",drills:[]})})}}doDrillFilter(e,i=[]){if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let s=i.slice();e||s.pop(),this.widget.clickFilterActive=!!e;for(let r=0;r{this.bs.broadcast("drillFilter:"+a,{path:e,drills:s})})}this.parent?.header?.cd.detectChanges()}onDrillFilter(e,i){this.drillFilter=e,this.drillFilterDrills=i,this.requestData()}actionNavigate(e,i=!1){let s=e.targetProperty,r=s.toUpperCase().indexOf("DASHBOARD=");if(r!==-1){let o=s.substring(r+10,s.length);o.indexOf("?")===-1&&(o=o.replace("&","?"));let a=location.href;a.indexOf("#")!==-1?s=a.split("#")[0]+"#/"+Ss+"/"+o:s+="#/"+Ss+"/"+o}if(s=s.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){let o=this.lpt.dataController.getData(),a=o.dataArray[(this.lpt.getSelectedRows()[0]-1)*o.columnProps.length],l=s.toLowerCase().indexOf("$$$currvalue");l!==-1&&(s=s.substring(0,l)+a+s.substring(l+12,s.length))}if(this.lpt&&this.lpt.getSelectedRows().length){let o=this.lpt.dataController.getData(),a=this.lpt.getSelectedRows(),l=[];for(let c=0;cthis.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(),s="select non empty",r=i.lastIndexOf(s);r===-1&&(s="select",r=i.lastIndexOf(s));let o=i.lastIndexOf("from");if(r===-1){console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");return}if(o===-1){console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");return}let a="";if(this.pivotData?.listingRows){let h=parseInt(this.pivotData.listingRows,10);h&&(a=` MAXROWS ${h} `)}let l=this.widget.controls.find(h=>h.action==="showListing");if(l){let h=l.targetPropertyDisplay;if(h)return"DRILLTHROUGH "+a+e.substring(0,r+s.length)+" "+e.substring(o,e.length)+` %LISTING [${h}]`}return"DRILLTHROUGH "+a+e.substring(0,r+s.length)+" "+e.substring(o,e.length)}doDrill(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{this.clearError(),o||this.doDrillFilter(e,this.drills);let g=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading();let p=()=>{if(r){r();return}if(!this.canDoDrillthrough)return;let y=this.getDrillthroughMdx(d)||"";this.ds.execMDX(y).then(b=>{!b||!b.children||b.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=b,this._currentData=b,this.displayAsPivot(y))}).catch(b=>{l&&l(b)})};this.showLoading(),this.ds.execMDX(d).catch(y=>{o?l&&l(y):p()}).then(y=>{if(y){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(y)&&e){p();return}this.isEmptyData(y)||(e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.baseTitle||(this.widget.baseTitle=this.widget.title||""),this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(d),this.retrieveData(y),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),this._currentData=y,a&&a())}}).finally(()=>{this.hideLoading(),h()})})}doDrillthrough(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{if(!this.canDoDrillthrough){h();return}if(this.clearError(),this.widget.kpitype&&i){this.doKPIDrillthrough(i);return}let g=this.drills.slice();e?Array.isArray(e)?e.forEach(y=>{this.drills.push({path:y,name:i||"",category:s})}):this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading();let p=this.getDrillthroughMdx(d)||"";this.ds.execMDX(p).then(y=>{!y||!y.children||y.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=y,this.displayAsPivot(p))}).catch(y=>{l&&l(y)}).finally(()=>{this.hideLoading()})})}doDrillOnly(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{this.clearError();let g=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading(),this.ds.execMDX(d).catch(p=>{l&&l(p)}).then(p=>{p&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(p)&&(this.removeColsThatNotExistInDataProperties(p),this._currentData=p,e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.baseTitle||(this.widget.baseTitle=this.widget.title||""),this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(d),this.retrieveData(p),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),a&&a()))}).finally(()=>{this.hideLoading(),h()})})}checkForAutoDrill(e){return Ft(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 s=this.drills;if(s.length===0&&(s=this.drillFilterDrills),s.length===0)return e;let r=[];this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(r=this.pivotData.rowAxisOptions.drilldownSpec.split("^"));for(let c=0;cthis._retriveDataSource(i)).catch(i=>{this.showError(i.error?.Error||i.message)})}convertKPIToMDXData(e,i=!1){let s=e,r=e.Result,o={Info:{cubeName:s.Info.KpiName},Cols:[],Data:[]},a=[];for(let h=0;hthis.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;ir.action==="applyVariable");if(this.widget.shared){let r=this.route.snapshot.queryParamMap.get("variables");r&&r.split("~").forEach(a=>{let l=a.split("."),h=l[0],c=l[1],g=s.findIndex(d=>d.targetProperty==="$variable."+h);g!==-1?s[g].value=c:s.push({targetProperty:"$variable."+h,value:c})})}if(!s.length)return e;for(let r=0;rg+p+(c?".%NOT":"")).join(",")||"",e+="})"}else e+=" %FILTER "+h}}return e}dateToHorolog(e){let i=new Date("12/31/1840Z"),r=this.us.toDate(e).getTime()-i.getTime();return Math.ceil(r/(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 o=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",i);return o=this.checkColSpec(o),this.applyDrill(o)}if(this.drillFilter){let o=this.drillFilter.indexOf("&");o!==-1&&i.push({targetProperty:this.drillFilter.substring(0,o-1),value:"&"+this.drillFilter.substring(o+1,this.drillFilter.length)})}for(let o=0;o{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 s="";if(e==null&&(e=""),i?s=(0,_o.default)(e).format(i.replace(/;/g,""))||"":s=e.toString(),this.dataInfo){let r=this.dataInfo.numericGroupSeparator,o=this.dataInfo.numericGroupSize||3;if(r){let a=s.split(".");a[0]=a[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),s=a.join(".")}this.dataInfo.decimalSeparator&&(s=s.replace(/\./g,this.dataInfo.decimalSeparator))}return s}getDrillsAsParameter(){let e=this.drills;return e?.length?encodeURIComponent(e.map(i=>i.path).join("~")):""}getFormat(e,i,s){let r="";return this.widget?.format&&(r=this.widget.format),i.Cols[0].tuples[e].format&&(r=i.Cols[0].tuples[e].format),s?.format&&(r=s?.format),r}getDataValue(e,i,s){let r=i.Data[e],o=this.getFormat(e,i,s);return o&&(r=(0,_o.default)(r).format(o)),r}_requestKPIData(e,i=!1){let s=this.customDataSource||this.widget.dataSource;if(!s)return;let r=this.fs.getWidgetFilters(this.widget.name)?.filter(a=>!!a.value).map(a=>a.value.toString().split("|").map(h=>({name:a.targetProperty,value:h,exclude:!!a.isExclude}))).flat();e&&r.push(...e);let o=!!e||i;return this.showLoading(),this.ds.getKPIData(s,r,o).then(a=>this._retriveKPI(a,o)).finally(()=>{this.hideLoading()})}removeColsThatNotExistInDataProperties(e){if(this.widget.type==="map"||this.preventColFilteringBasedOnDataProperties||!this.widget.dataProperties?.length||!e?.Cols[0]?.tuples?.length)return;let i=[],s=e.Cols[0]?.tuples?.length||0;s&&(e.Cols[0].tuples=e?.Cols[0]?.tuples.filter((r,o)=>{let a=r.dimension.toString().split("/"),l=this.widget.dataProperties.some(h=>h.dataValue.toString().split("/").some(g=>a.includes(g)));return l||i.push(o),l}),e.Data=e.Data?.filter((r,o)=>!i.some(a=>o%s===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 s={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(s,"*");try{window.parent.dsw?.onDrill&&window.parent.dsw.onDrill(s)}catch(r){console.error(r)}}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(Ss+"/"+e)}initializeInputControls(){let e="setRowCount";this.widget.controls.filter(s=>e.includes(s.action)).forEach(s=>{this.widget.dsItems.push({action:s.action,label:s.label||"Row count",field:"input",type:"number",_value:s.value||void 0})})}applyRowCount(e){let i=this.widget.dsItems.find(l=>l.action==="setRowCount");if(!i||!i._value)return e;let s=/(HEAD\(.*),(.*)(\))/i;if(e.match(s))return e.replace(s,`$1,${i._value}$3`);let o=e.match(/ON 0,(.*)ON 1/)?.[1];if(!o)return e;o=o.replace("NON EMPTY","");let a=" HEAD("+o.trim()+`, ${i._value}) `;return e.replace(o,a)}extendPropsWithOverrides(){this.override&&this.override.columns?.forEach((e,i)=>{let s=this.widget.dataProperties[i];s&&(e.showAs&&(s.showAs=e.showAs),e.format&&(s.format=e.format),e.display&&(s.display=e.display),e.label&&(s.label=e.label),e.summary&&(s.summary=e.summary),e.rangeLower&&(s.rangeLower=e.rangeLower),e.rangeUpper&&(s.rangeUpper=e.rangeUpper),e.targetValue&&(s.targetValue=e.targetValue),e.thresholdLower&&(s.thresholdLower=e.thresholdLower),e.thresholdUpper&&(s.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(s=>s.action==="setColumnSpec");e.length!==0&&(this.customColSpec=e[0].targetProperty);let i=this.widget.controls.filter(s=>s.action==="refresh"&&parseInt(s.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(s=>s.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 s=this.widgetsSettings?.[this.widget.name]?.themeColors?.[i];s&&(this.tc=s)}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 s=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i[a.name],path:""})),r=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i.seriesName,path:""})),o=this._requestKPIData([...s,...r]);o&&o.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}))})}getFilterString(e){let i=[],s=e.value.toString().split("|"),r=e.targetProperty;if(e.isInterval){let l=e.values[e.fromIdx].path,h=e.values[e.toIdx].path;e.isDate&&(l=this.dateToHorolog(l.replace("&[","").replace("]","")),h=this.dateToHorolog(h.replace("&[","").replace("]","")),l=`&[${l}]`,h=`&[${h}]`),i.push("%OR("+r+"."+l+":"+h+")")}else for(let l=0;l1?o+i.join(",")+a:i}applyFilters(e){let i=e.filter(o=>o.action==="applyVariable"?!1:o.value!=="");if(i.length===0)return"";if(i.length===1)return" %FILTER "+this.getFilterString(i[0]);let s=i.map(o=>this.getFilterString(o)),r=s[0];for(let o=1;o{class n extends pe{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,r=i.firstChild.getBBox();i.setAttribute("viewBox",[r.x,r.y,r.width,r.height].join(" "))})}retrieveData(e){if(this.textData=[],this.hideLoading(),e)for(let i=0;ig){let p=this.widget.properties?.highRangeColor;d.highStyle&&(p=this.getCss(d.highStyle).fill),p&&(h=p)}}this.textData.push({label:a,value:r,color:o,valueColor:h,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(s=>s).forEach(s=>{let r=s.split(":");i[r[0]]=r[1]}),i}getNumber(e){return typeof e=="string"?parseFloat(e.replace(/,/g,"").replace(/ /g,"")):e}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-wtext"]],viewQuery:function(i,s){if(i&1&&Si(Mp,5),i&2){let r;Mi(r=Ei())&&(s.images=r)}},hostVars:2,hostBindings:function(i,s){i&2&&Oe("flex-direction",s.flexDirection)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],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,s){i&1&&ce(0,Ep,11,8,"div",1,he),i&2&&de(s.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%}"]})}}return n})();var wo=(()=>{class n extends pe{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:Ss,sendCookies:!0},triggers:{drillDown:s=>this.onDrillDown(s),rowClick:(s,r,o)=>e.drillFilterWidgets?.length?(e.doDrillFilter(o.source.path,e.drills),e.parent?.header?.cd.detectChanges(),!1):!this.widget.kpitype,back:s=>this.onDrillDown(s),cellDrillThrough:(...s)=>this.onDrillThrough(...s),responseHandler:s=>{s.status!==200&&this.showError(s.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 s=this.widget.initialData;setTimeout(()=>{this.lpt?.dataController.setData(this.lpt.dataSource._convert(s))})}}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:s,y:r}=e[0],{info:o,dimensions:a}=e[1];if(!a[0])return;let l=a[0][s-o.leftHeaderColumnsNumber]?.dimension||"",h=a[0][0]?.dimension||"",c=a[1][r-o.topHeaderRowsNumber]?.title||"";if(!l||!h)return;let g=[{name:l,value:i.value,path:""},{name:h,value:c,path:""}];return this._requestKPIData(g)?.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(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},styles:["[_nghost-%COMP%]{height:100%}"]})}}return n})();var So=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};var te=So;var Ke={PROPERTYCHANGE:"propertychange"};var Mo=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}},Es=Mo;function Kh(n,t,e){let i,s;e=e||qe;let r=0,o=n.length,a=!1;for(;r>1),s=+e(n[i],t),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function qe(n,t){return n>t?1:n0?s-1:s}return i-1}if(e>0){for(let s=1;s0||e&&o===0)})}function Pi(){return!0}function Ti(){return!1}function $e(){}function Jh(n){let t=!1,e,i,s;return function(){let r=Array.prototype.slice.call(arguments);return(!t||this!==s||!fe(r,i))&&(t=!0,s=this,i=r,e=n.apply(this,arguments)),e}}function li(n){for(let t in n)delete n[t]}function Je(n){let t;for(t in n)return!1;return!t}var Eo=class extends Es{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;let i=this.listeners_||(this.listeners_={}),s=i[t]||(i[t]=[]);s.includes(e)||s.push(e)}dispatchEvent(t){let e=typeof t=="string",i=e?t:t.type,s=this.listeners_&&this.listeners_[i];if(!s)return;let r=e?new te(t):t;r.target||(r.target=this.eventTarget_||this);let o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=s.length;h0:!1}removeEventListener(t,e){let i=this.listeners_&&this.listeners_[t];if(i){let s=i.indexOf(e);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[s]=$e,++this.pendingRemovals_[t]):(i.splice(s,1),i.length===0&&delete this.listeners_[t]))}}},Xi=Eo;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 wt(n,t,e,i,s){if(i&&i!==n&&(e=e.bind(i)),s){let o=e;e=function(){n.removeEventListener(t,e),o.apply(this,arguments)}}let r={target:n,type:t,listener:e};return n.addEventListener(t,e),r}function Ts(n,t,e,i){return wt(n,t,e,i,!0)}function Tt(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),li(n))}var As=class extends Xi{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,e){if(Array.isArray(t)){let i=t.length,s=new Array(i);for(let r=0;r0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new Ds(ee.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){let e=this.array_;for(let i=0,s=e.length;i=this.getLength())return;let e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Ds(ee.REMOVE,e,t)),e}setAt(t,e){let i=this.getLength();if(t>=i){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);let s=this.array_[t];this.array_[t]=e,this.dispatchEvent(new Ds(ee.REMOVE,s,t)),this.dispatchEvent(new Ds(ee.ADD,e,t))}updateLength_(){this.set(Qh.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;is&&(l=l|Kt.RIGHT),ar&&(l=l|Kt.ABOVE),l===Kt.UNKNOWN&&(l=Kt.INTERSECTING),l}function Ut(){return[1/0,1/0,-1/0,-1/0]}function ze(n,t,e,i,s){return s?(s[0]=n,s[1]=t,s[2]=e,s[3]=i,s):[n,t,e,i]}function Di(n){return ze(1/0,1/0,-1/0,-1/0,n)}function oc(n,t){let e=n[0],i=n[1];return ze(e,i,e,i,t)}function an(n,t,e,i,s){let r=Di(s);return Io(r,n,t,e,i)}function Li(n,t){return n[0]==t[0]&&n[2]==t[2]&&n[1]==t[1]&&n[3]==t[3]}function ln(n,t){return t[0]n[2]&&(n[2]=t[2]),t[1]n[3]&&(n[3]=t[3]),n}function os(n,t){t[0]n[2]&&(n[2]=t[0]),t[1]n[3]&&(n[3]=t[1])}function Io(n,t,e,i,s){for(;et[0]?i[0]=n[0]:i[0]=t[0],n[1]>t[1]?i[1]=n[1]:i[1]=t[1],n[2]=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function Ui(n){return n[2]=o&&b<=l),!i&&r&Kt.RIGHT&&!(s&Kt.RIGHT)&&(x=p-(d-l)*y,i=x>=a&&x<=h),!i&&r&Kt.BELOW&&!(s&Kt.BELOW)&&(b=d-(p-a)/y,i=b>=o&&b<=l),!i&&r&Kt.LEFT&&!(s&Kt.LEFT)&&(x=p-(d-o)*y,i=x>=a&&x<=h)}return i}function cc(n,t,e,i){if(Ui(n))return Di(e);let s=[];if(i>1){let a=n[2]-n[0],l=n[3]-n[1];for(let h=0;h=e[2])){let s=At(e),o=Math.floor((i[0]-e[0])/s)*s;n[0]-=o,n[2]-=o}return n}function dc(n,t){if(t.canWrapX()){let e=t.getExtent();if(!isFinite(n[0])||!isFinite(n[2]))return[[e[0],n[1],e[2],n[3]]];ko(n,t);let i=At(e);if(At(n)>i)return[[e[0],n[1],e[2],n[3]]];if(n[0]e[2])return[[n[0],n[1],e[2],n[3]],[e[0],n[1],n[2]-i,n[3]]]}return[n]}function Rt(n,t,e){return Math.min(Math.max(n,t),e)}function uc(n,t,e,i,s,r){let o=s-e,a=r-i;if(o!==0||a!==0){let l=((n-e)*o+(t-i)*a)/(o*o+a*a);l>1?(e=s,i=r):l>0&&(e+=o*l,i+=a*l)}return Qe(n,t,e,i)}function Qe(n,t,e,i){let s=e-n,r=i-t;return s*s+r*r}function pc(n){let t=n.length;for(let i=0;ir&&(r=l,s=a)}if(r===0)return null;let o=n[s];n[s]=n[i],n[i]=o;for(let a=i+1;a=0;i--){e[i]=n[i][t]/n[i][i];for(let s=i-1;s>=0;s--)n[s][t]-=n[s][i]*e[i]}return e}function zs(n){return n*Math.PI/180}function Ii(n,t){let e=n%t;return e*t<0?e+t:e}function ae(n,t,e){return n+e*(t-n)}function dn(n,t){let e=Math.pow(10,t);return Math.round(n*e)/e}function lr(n,t){return Math.floor(dn(n,t))}function hr(n,t){return Math.ceil(dn(n,t))}var Op=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,Fp=/^([a-z]*)$|^hsla?\(.*\)$/i;function un(n){return typeof n=="string"?n:Ro(n)}function zp(n){let t=document.createElement("div");if(t.style.color=n,t.style.color!==""){document.body.appendChild(t);let e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}var jp=function(){let t={},e=0;return function(i){let s;if(t.hasOwnProperty(i))s=t[i];else{if(e>=1024){let r=0;for(let o in t)r++&3||(delete t[o],--e)}s=Np(i),t[i]=s,++e}return s}}();function as(n){return Array.isArray(n)?n:jp(n)}function Np(n){let t,e,i,s,r;if(Fp.exec(n)&&(n=zp(n)),Op.exec(n)){let o=n.length-1,a;o<=4?a=1:a=2;let l=o===4||o===8;t=parseInt(n.substr(1+0*a,a),16),e=parseInt(n.substr(1+1*a,a),16),i=parseInt(n.substr(1+2*a,a),16),l?s=parseInt(n.substr(1+3*a,a),16):s=255,a==1&&(t=(t<<4)+t,e=(e<<4)+e,i=(i<<4)+i,l&&(s=(s<<4)+s)),r=[t,e,i,s/255]}else n.startsWith("rgba(")?(r=n.slice(5,-1).split(",").map(Number),fc(r)):n.startsWith("rgb(")?(r=n.slice(4,-1).split(",").map(Number),r.push(1),fc(r)):gt(!1,14);return r}function fc(n){return n[0]=Rt(n[0]+.5|0,0,255),n[1]=Rt(n[1]+.5|0,0,255),n[2]=Rt(n[2]+.5|0,0,255),n[3]=Rt(n[3],0,1),n}function Ro(n){let t=n[0];t!=(t|0)&&(t=t+.5|0);let e=n[1];e!=(e|0)&&(e=e+.5|0);let i=n[2];i!=(i|0)&&(i=i+.5|0);let s=n[3]===void 0?1:Math.round(n[3]*100)/100;return"rgba("+t+","+e+","+i+","+s+")"}var Oo=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 e in this.cache_){let i=this.cache_[e];!(t++&3)&&!i.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){let s=gc(t,e,i);return s in this.cache_?this.cache_[s]:null}set(t,e,i,s){let r=gc(t,e,i);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function gc(n,t,e){let i=e?un(e):"null";return t+":"+n+":"+i}var js=new Oo;var kt={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 Zt{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;let e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[kt.OPACITY]=t.opacity!==void 0?t.opacity:1,gt(typeof e[kt.OPACITY]=="number",64),e[kt.VISIBLE]=t.visible!==void 0?t.visible:!0,e[kt.Z_INDEX]=t.zIndex,e[kt.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[kt.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[kt.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[kt.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let e=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return e.opacity=Rt(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=i===void 0&&!e.managed?1/0:i,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return ft()}getLayerStatesArray(t){return ft()}getExtent(){return this.get(kt.EXTENT)}getMaxResolution(){return this.get(kt.MAX_RESOLUTION)}getMinResolution(){return this.get(kt.MIN_RESOLUTION)}getMinZoom(){return this.get(kt.MIN_ZOOM)}getMaxZoom(){return this.get(kt.MAX_ZOOM)}getOpacity(){return this.get(kt.OPACITY)}getSourceState(){return ft()}getVisible(){return this.get(kt.VISIBLE)}getZIndex(){return this.get(kt.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(kt.EXTENT,t)}setMaxResolution(t){this.set(kt.MAX_RESOLUTION,t)}setMinResolution(t){this.set(kt.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(kt.MAX_ZOOM,t)}setMinZoom(t){this.set(kt.MIN_ZOOM,t)}setOpacity(t){gt(typeof t=="number",64),this.set(kt.OPACITY,t)}setVisible(t){this.set(kt.VISIBLE,t)}setZIndex(t){this.set(kt.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},pn=Fo;var ve={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var qt={ANIMATING:0,INTERACTING:1};var We={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var ti={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var zo=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_||ti[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_}},fn=zo;var cr=6378137,Ns=Math.PI*cr,Bp=[-Ns,-Ns,Ns,Ns],Gp=[-180,-85,180,85],gn=cr*Math.log(Math.tan(Math.PI/2)),Hi=class extends fn{constructor(t){super({code:t,units:"m",extent:Bp,global:!0,worldExtent:Gp,getPointResolution:function(e,i){return e/Math.cosh(i[1]/cr)}})}},jo=[new Hi("EPSG:3857"),new Hi("EPSG:102100"),new Hi("EPSG:102113"),new Hi("EPSG:900913"),new Hi("http://www.opengis.net/def/crs/EPSG/0/3857"),new Hi("http://www.opengis.net/gml/srs/epsg.xml#3857")];function mc(n,t,e){let i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;sgn?r=gn:r<-gn&&(r=-gn),t[s+1]=r}return t}function xc(n,t,e){let i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;s=0;--i)if(n[i]!=t[i]){e=!1;break}return e}function Gs(n,t){let e=Math.cos(t),i=Math.sin(t),s=n[0]*e-n[1]*i,r=n[1]*e+n[0]*i;return n[0]=s,n[1]=r,n}function wc(n,t){return n[0]*=t,n[1]*=t,n}function mn(n,t){if(t.canWrapX()){let e=At(t.getExtent()),i=Sc(n,t,e);i&&(n[0]-=i*e)}return n}function Sc(n,t,e){let i=t.getExtent(),s=0;return t.canWrapX()&&(n[0]i[2])&&(e=e||At(i),s=Math.floor((n[0]-i[0])/e)),s}var Vp=63710088e-1;function Go(n,t,e){e=e||Vp;let i=zs(n[1]),s=zs(t[1]),r=(s-i)/2,o=zs(t[0]-n[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}var Mc={info:1,warn:2,error:3,none:4},Yp=Mc.info;function xn(...n){Yp>Mc.warn||console.warn(...n)}var Xo=!0;function Pc(n){Xo=!(n===void 0?!0:n)}function Wo(n,t){if(t!==void 0){for(let e=0,i=n.length;e=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(Xo=!1,xn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n)}function Xs(n,t){return ei?Yo(n,t,ei):n}function si(n,t){return ei?Yo(n,ei,t):n}function Ac(n,t){if(!ei)return n;let e=zt(t).getUnits(),i=ei.getUnits();return e&&i?n*ti[e]/ti[i]:n}function Kp(){Ec(jo),Ec(No),Zp(No,jo,mc,xc)}Kp();function Uo(n,t,e){return function(i,s,r,o,a){if(!i)return;if(!s&&!t)return i;let l=t?0:r[0]*s,h=t?0:r[1]*s,c=a?a[0]:0,g=a?a[1]:0,d=n[0]+l/2+c,p=n[2]-l/2+c,y=n[1]+h/2+g,b=n[3]-h/2+g;d>p&&(d=(p+d)/2,p=d),y>b&&(y=(b+y)/2,b=y);let x=Rt(i[0],d,p),f=Rt(i[1],y,b);if(o&&e&&s){let M=30*s;x+=-M*Math.log(1+Math.max(0,d-i[0])/M)+M*Math.log(1+Math.max(0,i[0]-p)/M),f+=-M*Math.log(1+Math.max(0,y-i[1])/M)+M*Math.log(1+Math.max(0,i[1]-b)/M)}return[x,f]}}function Dc(n){return n}function Ho(n,t,e,i){let s=At(t)/e[0],r=me(t)/e[1];return i?Math.min(n,Math.max(s,r)):Math.min(n,Math.min(s,r))}function Zo(n,t,e){let i=Math.min(n,t),s=50;return i*=Math.log(1+s*Math.max(0,n/t-1))/s+1,e&&(i=Math.max(i,e),i/=Math.log(1+s*Math.max(0,e/n-1))/s+1),Rt(i,e/2,t*2)}function Lc(n,t,e,i){return t=t!==void 0?t:!0,function(s,r,o,a){if(s!==void 0){let l=n[0],h=n[n.length-1],c=e?Ho(l,e,o,i):l;if(a)return t?Zo(s,c,h):Rt(s,h,c);let g=Math.min(c,s),d=Math.floor(Ps(n,g,r));return n[d]>c&&d1)g=e;else if(d>0){for(let p=0;ps&&(s=h),r=a,o=l}return s}function gr(n,t,e,i,s){for(let r=0,o=e.length;r0;){let g=h.pop(),d=h.pop(),p=0,y=n[d],b=n[d+1],x=n[g],f=n[g+1];for(let M=d+i;Mp&&(c=M,p=w)}p>s&&(l[(c-t)/i]=1,d+i0&&b>p)&&(y<0&&x0&&x>y)){h=g,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=g,c=d}return r[o++]=h,r[o++]=c,o}function ta(n,t,e,i,s,r,o,a){for(let l=0,h=e.length;lr&&(h-a)*(r-l)-(s-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(s-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function Cr(n,t,e,i,s,r){if(e.length===0||!$i(n,t,e[0],i,s,r))return!1;for(let o=1,a=e.length;of&&(h=(c+g)/2,Cr(n,t,e,i,h,y)&&(x=h,f=M)),c=g}return isNaN(x)&&(x=s[r]),o?(o.push(x,y,f),o):[x,y,f]}function Jc(n,t,e,i,s){let r=[];for(let o=0,a=e.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:_n(n,t,e,i,function(o,a){return hc(s,o,a)}):!1}function Qc(n,t,e,i,s){for(let r=0,o=e.length;r0}function ha(n,t,e,i,s){s=s!==void 0?s:!1;for(let r=0,o=e.length;r1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let s=0;for(;s0}getInteracting(){return this.hints_[qt.INTERACTING]>0}cancelAnimations(){this.setHint(qt.ANIMATING,-this.hints_[qt.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){let s=this.animations_[i],r=!0;for(let o=0,a=s.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;let g=l.easing(c);if(l.sourceCenter){let d=l.sourceCenter[0],p=l.sourceCenter[1],y=l.targetCenter[0],b=l.targetCenter[1];this.nextCenter_=l.targetCenter;let x=d+g*(y-d),f=p+g*(b-p);this.targetCenter_=[x,f]}if(l.sourceResolution&&l.targetResolution){let d=g===1?l.targetResolution:l.sourceResolution+g*(l.targetResolution-l.sourceResolution);if(l.anchor){let p=this.getViewportSize_(this.getRotation()),y=this.constraints_.resolution(d,0,p,!0);this.targetCenter_=this.calculateCenterZoom(y,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){let d=g===1?Ii(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+g*(l.targetRotation-l.sourceRotation);if(l.anchor){let p=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(p,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(qt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let o=s[0].callback;o&&Mn(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i,s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-e[0],s[1]-e[1]],Gs(i,t-this.getRotation()),_c(i,e)),i}calculateCenterZoom(t,e){let i,s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){let o=e[0]-t*(e[0]-s[0])/r,a=e[1]-t*(e[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(t){let e=this.viewportSize_;if(t){let i=e[0],s=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(s*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t&&pr(t,this.getProjection())}getCenterInternal(){return this.get(We.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 e=this.calculateExtentInternal(t);return Xs(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let e=this.getCenterInternal();gt(e,1);let i=this.getResolution();gt(i!==void 0,2);let s=this.getRotation();return gt(s!==void 0,3),ar(e,i,s,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(We.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(si(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();let i=At(t)/e[0],s=me(t)/e[1];return Math.max(i,s)}getResolutionForValueFunction(t){t=t||2;let e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*s)}}getRotation(){return this.get(We.ROTATION)}getValueForResolutionFunction(t){let e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t),i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){let t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),s=this.getCenterInternal(),r=this.padding_;if(r){let o=this.getViewportSizeMinusPadding_();s=pa(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,s;if(this.resolutions_){let r=Ps(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return e+Math.log(i/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let e=Rt(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Rt(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(gt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){gt(!Ui(t),25);let s=si(t,this.getProjection());i=da(s)}else if(t.getType()==="Circle"){let s=si(t.getExtent(),this.getProjection());i=da(s),i.rotate(this.getRotation(),Ge(s))}else{let s=bn();s?i=t.clone().transform(s,this.getProjection()):i=t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){let e=this.getRotation(),i=Math.cos(e),s=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride(),a=1/0,l=1/0,h=-1/0,c=-1/0;for(let g=0,d=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 e,i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof Ce?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;e.layerStatesArray?s=e.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();let r=this.getExtent();return wr(s,e.viewState)&&(!r||Vt(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e,i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];let s=t instanceof Ce?t.getViewStateAndExtent():t,r=e(s);return Array.isArray(r)||(r=[r]),r}render(t,e){let i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(kt.MAP,t)}getMapInternal(){return this.get(kt.MAP)}setMap(t){this.mapPrecomposeKey_&&(Tt(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Tt(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=wt(t,ve.PRECOMPOSE,function(e){let s=e.frameState.layerStatesArray,r=this.getLayerState(!1);gt(!s.some(function(o){return o.layer===r.layer}),67),s.push(r)},this),this.mapRenderKey_=wt(this,ut.CHANGE,t.render,t),this.changed())}setSource(t){this.set(kt.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 wr(n,t){if(!n.visible)return!1;let e=t.resolution;if(e=n.maxResolution)return!1;let i=t.zoom;return i>n.minZoom&&i<=n.maxZoom}var ds=ga;var ma=class extends Es{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){ft()}calculateMatrices2D(t){let e=t.viewState,i=t.coordinateToPixelTransform,s=t.pixelToCoordinateTransform;be(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Is(s,i)}forEachFeatureAtCoordinate(t,e,i,s,r,o,a,l){let h,c=e.viewState;function g(_,w,k,z){return r.call(o,w,_?k:null,z)}let d=c.projection,p=mn(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&s){let _=d.getExtent(),w=At(_);y.push([-w,0],[w,0])}let b=e.layerStatesArray,x=b.length,f=[],M=[];for(let _=0;_=0;--w){let k=b[w],z=k.layer;if(z.hasRenderer()&&wr(k,c)&&a.call(l,z)){let O=z.getRenderer(),C=z.getSource();if(O&&C){let A=C.getWrapX()?p:t,F=g.bind(null,k.managed);M[0]=A[0]+y[_][0],M[1]=A[1]+y[_][1],h=O.forEachFeatureAtCoordinate(M,e,i,F,f)}if(h)return h}}if(f.length===0)return;let L=1/f.length;return f.forEach((_,w)=>_.distanceSq+=w*L),f.sort((_,w)=>_.distanceSq-w.distanceSq),f.some(_=>h=_.callback(_.feature,_.layer,_.geometry)),h}hasFeatureAtCoordinate(t,e,i,s,r,o){return this.forEachFeatureAtCoordinate(t,e,i,s,Pi,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(t){ft()}flushDeclutterItems(t){}scheduleExpireIconCache(t){js.canExpireCache()&&t.postRenderFunctions.push(sf)}};function sf(n,t){js.expire()}var nd=ma;var xa=class extends te{constructor(t,e,i,s){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=s}},En=xa;var Sr="ol-hidden";var Ji="ol-unselectable";var Vs="ol-control",ya="ol-collapsed",rf=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"),od=["style","variant","weight","size","lineHeight","family"],ba=function(n){let t=n.match(rf);if(!t)return null;let e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=od.length;i{"use strict";(function(n,t){typeof define=="function"&&define.amd?define(t):typeof $r=="object"&&$r.exports?$r.exports=t():n.numeral=t()})(Vh,function(){var n,t,e="2.0.6",i={},s={},r={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:r.currentLocale,zeroFormat:r.zeroFormat,nullFormat:r.nullFormat,defaultFormat:r.defaultFormat,scalePercentBy100:r.scalePercentBy100};function a(l,h){this._input=l,this._value=h}return n=function(l){var h,c,g,d;if(n.isNumeral(l))h=l.value();else if(l===0||typeof l>"u")h=0;else if(l===null||t.isNaN(l))h=null;else if(typeof l=="string")if(o.zeroFormat&&l===o.zeroFormat)h=0;else if(o.nullFormat&&l===o.nullFormat||!l.replace(/[^0-9]+/g,"").length)h=null;else{for(c in i)if(d=typeof i[c].regexps.unformat=="function"?i[c].regexps.unformat():i[c].regexps.unformat,d&&l.match(d)){g=i[c].unformat;break}g=g||n._.stringToNumber,h=g(l)}else h=Number(l)||null;return new a(l,h)},n.version=e,n.isNumeral=function(l){return l instanceof a},n._=t={numberToFormat:function(l,h,c){var g=s[n.options.currentLocale],d=!1,p=!1,y=0,b="",x=1e12,f=1e9,M=1e6,L=1e3,_="",w=!1,k,z,O,C,A,F,S,T,D,P;if(l=l||0,z=Math.abs(l),n._.includes(h,"(")?(d=!0,h=h.replace(/[\(|\)]/g,"")):(n._.includes(h,"+")||n._.includes(h,"-"))&&(T=n._.includes(h,"+")?h.indexOf("+"):l<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),n._.includes(h,"a")&&(k=h.match(/a(k|m|b|t)?/),k=k?k[1]:!1,n._.includes(h," a")&&(b=" "),h=h.replace(new RegExp(b+"a[kmbt]?"),""),z>=x&&!k||k==="t"?(b+=g.abbreviations.trillion,l=l/x):z=f&&!k||k==="b"?(b+=g.abbreviations.billion,l=l/f):z=M&&!k||k==="m"?(b+=g.abbreviations.million,l=l/M):(z=L&&!k||k==="k")&&(b+=g.abbreviations.thousand,l=l/L)),n._.includes(h,"[.]")&&(p=!0,h=h.replace("[.]",".")),F=l.toString().split(".")[0],S=h.split(".")[1],D=h.indexOf(","),y=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,S?(n._.includes(S,"[")?(S=S.replace("]",""),S=S.split("["),_=n._.toFixed(l,S[0].length+S[1].length,c,S[1].length)):_=n._.toFixed(l,S.length,c),F=_.split(".")[0],n._.includes(_,".")?_=g.delimiters.decimal+_.split(".")[1]:_="",p&&Number(_.slice(1))===0&&(_="")):F=n._.toFixed(l,0,c),b&&!k&&Number(F)>=1e3&&b!==g.abbreviations.trillion)switch(F=String(Number(F)/1e3),b){case g.abbreviations.thousand:b=g.abbreviations.million;break;case g.abbreviations.million:b=g.abbreviations.billion;break;case g.abbreviations.billion:b=g.abbreviations.trillion;break}if(n._.includes(F,"-")&&(F=F.slice(1),w=!0),F.length0;m--)F="0"+F;return D>-1&&(F=F.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g.delimiters.thousands)),h.indexOf(".")===0&&(F=""),P=F+_+(b||""),d?P=(d&&w?"(":"")+P+(d&&w?")":""):T>=0?P=T===0?(w?"-":"+")+P:P+(w?"-":"+"):w&&(P="-"+P),P},stringToNumber:function(l){var h=s[o.currentLocale],c=l,g={thousand:3,million:6,billion:9,trillion:12},d,p,y,b;if(o.zeroFormat&&l===o.zeroFormat)p=0;else if(o.nullFormat&&l===o.nullFormat||!l.replace(/[^0-9]+/g,"").length)p=null;else{p=1,h.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(d in g)if(b=new RegExp("[^a-zA-Z]"+h.abbreviations[d]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(b)){p*=Math.pow(10,g[d]);break}p*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),p*=Number(l)}return p},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,h){return l.indexOf(h)!==-1},insert:function(l,h,c){return l.slice(0,c)+h+l.slice(c)},reduce:function(l,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(l),g=c.length>>>0,d=0,p;if(arguments.length===3)p=arguments[2];else{for(;d=g)throw new TypeError("Reduce of empty array with no initial value");p=c[d++]}for(;dg?h:g},1)},toFixed:function(l,h,c,g){var d=l.toString().split("."),p=h-(g||0),y,b,x,f;return d.length===2?y=Math.min(Math.max(d[1].length,p),h):y=p,x=Math.pow(10,y),f=(c(l+"e+"+y)/x).toFixed(y),g>h-y&&(b=new RegExp("\\.?0{1,"+(g-(h-y))+"}$"),f=f.replace(b,"")),f}},n.options=o,n.formats=i,n.locales=s,n.locale=function(l){return l&&(o.currentLocale=l.toLowerCase()),o.currentLocale},n.localeData=function(l){if(!l)return s[o.currentLocale];if(l=l.toLowerCase(),!s[l])throw new Error("Unknown locale : "+l);return s[l]},n.reset=function(){for(var l in r)o[l]=r[l]},n.zeroFormat=function(l){o.zeroFormat=typeof l=="string"?l:null},n.nullFormat=function(l){o.nullFormat=typeof l=="string"?l:null},n.defaultFormat=function(l){o.defaultFormat=typeof l=="string"?l:"0.0"},n.register=function(l,h,c){if(h=h.toLowerCase(),this[l+"s"][h])throw new TypeError(h+" "+l+" already registered.");return this[l+"s"][h]=c,c},n.validate=function(l,h){var c,g,d,p,y,b,x,f;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{x=n.localeData(h)}catch{x=n.localeData(n.locale())}return d=x.currency.symbol,y=x.abbreviations,c=x.delimiters.decimal,x.delimiters.thousands==="."?g="\\.":g=x.delimiters.thousands,f=l.match(/^[^\d]+/),f!==null&&(l=l.substr(1),f[0]!==d)||(f=l.match(/[^\d]+$/),f!==null&&(l=l.slice(0,-1),f[0]!==y.thousand&&f[0]!==y.million&&f[0]!==y.billion&&f[0]!==y.trillion))?!1:(b=new RegExp(g+"{2}"),l.match(/[^\d.,]/g)?!1:(p=l.split(c),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(b)&&!!p[1].match(/^\d+$/)))},n.fn=a.prototype={clone:function(){return n(this)},format:function(l,h){var c=this._value,g=l||o.defaultFormat,d,p,y;if(h=h||Math.round,c===0&&o.zeroFormat!==null)p=o.zeroFormat;else if(c===null&&o.nullFormat!==null)p=o.nullFormat;else{for(d in i)if(g.match(i[d].regexps.format)){y=i[d].format;break}y=y||n._.numberToFormat,p=y(c,g,h)}return p},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var h=t.correctionFactor.call(null,this._value,l);function c(g,d,p,y){return g+Math.round(h*d)}return this._value=t.reduce([this._value,l],c,0)/h,this},subtract:function(l){var h=t.correctionFactor.call(null,this._value,l);function c(g,d,p,y){return g-Math.round(h*d)}return this._value=t.reduce([l],c,Math.round(this._value*h))/h,this},multiply:function(l){function h(c,g,d,p){var y=t.correctionFactor(c,g);return Math.round(c*y)*Math.round(g*y)/Math.round(y*y)}return this._value=t.reduce([this._value,l],h,1),this},divide:function(l){function h(c,g,d,p){var y=t.correctionFactor(c,g);return Math.round(c*y)/Math.round(g*y)}return this._value=t.reduce([this._value,l],h),this},difference:function(l){return Math.abs(n(this._value).subtract(l).value())}},n.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var h=l%10;return~~(l%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){n.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,h,c){var g=n._.includes(h," BPS")?" ":"",d;return l=l*1e4,h=h.replace(/\s?BPS/,""),d=n._.numberToFormat(l,h,c),n._.includes(d,")")?(d=d.split(""),d.splice(-1,0,g+"BPS"),d=d.join("")):d=d+g+"BPS",d},unformat:function(l){return+(n._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={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=l.suffixes.concat(h.suffixes.filter(function(d){return l.suffixes.indexOf(d)<0})),g=c.join("|");g="("+g.replace("B","B(?!PS)")+")",n.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(g)},format:function(d,p,y){var b,x=n._.includes(p,"ib")?h:l,f=n._.includes(p," b")||n._.includes(p," ib")?" ":"",M,L,_;for(p=p.replace(/\s?i?b/,""),M=0;M<=x.suffixes.length;M++)if(L=Math.pow(x.base,M),_=Math.pow(x.base,M+1),d===null||d===0||d>=L&&d<_){f+=x.suffixes[M],L>0&&(d=d/L);break}return b=n._.numberToFormat(d,p,y),b+f},unformat:function(d){var p=n._.stringToNumber(d),y,b;if(p){for(y=l.suffixes.length-1;y>=0;y--){if(n._.includes(d,l.suffixes[y])){b=Math.pow(l.base,y);break}if(n._.includes(d,h.suffixes[y])){b=Math.pow(h.base,y);break}}p*=b||1}return p}})}(),function(){n.register("format","currency",{regexps:{format:/(\$)/},format:function(l,h,c){var g=n.locales[n.options.currentLocale],d={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,y,b;for(h=h.replace(/\s?\$\s?/,""),p=n._.numberToFormat(l,h,c),l>=0?(d.before=d.before.replace(/[\-\(]/,""),d.after=d.after.replace(/[\-\)]/,"")):l<0&&!n._.includes(d.before,"-")&&!n._.includes(d.before,"(")&&(d.before="-"+d.before),b=0;b=0;b--)switch(y=d.after[b],y){case"$":p=b===d.after.length-1?p+g.currency.symbol:n._.insert(p,g.currency.symbol,-(d.after.length-(1+b)));break;case" ":p=b===d.after.length-1?p+" ":n._.insert(p," ",-(d.after.length-(1+b)+g.currency.symbol.length-1));break}return p}})}(),function(){n.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,h,c){var g,d=typeof l=="number"&&!n._.isNaN(l)?l.toExponential():"0e+0",p=d.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),g=n._.numberToFormat(Number(p[0]),h,c),g+"e"+p[1]},unformat:function(l){var h=n._.includes(l,"e+")?l.split("e+"):l.split("e-"),c=Number(h[0]),g=Number(h[1]);g=n._.includes(l,"e-")?g*=-1:g;function d(p,y,b,x){var f=n._.correctionFactor(p,y),M=p*f*(y*f)/(f*f);return M}return n._.reduce([c,Math.pow(10,g)],d,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,h,c){var g=n.locales[n.options.currentLocale],d,p=n._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),p+=g.ordinal(l),d=n._.numberToFormat(l,h,c),d+p}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,h,c){var g=n._.includes(h," %")?" ":"",d;return n.options.scalePercentBy100&&(l=l*100),h=h.replace(/\s?\%/,""),d=n._.numberToFormat(l,h,c),n._.includes(d,")")?(d=d.split(""),d.splice(-1,0,g+"%"),d=d.join("")):d=d+g+"%",d},unformat:function(l){var h=n._.stringToNumber(l);return n.options.scalePercentBy100?h*.01:h}})}(),function(){n.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,h,c){var g=Math.floor(l/60/60),d=Math.floor((l-g*60*60)/60),p=Math.round(l-g*60*60-d*60);return g+":"+(d<10?"0"+d:d)+":"+(p<10?"0"+p:p)},unformat:function(l){var h=l.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)}})}(),n})});var yl=ai((ml,xl)=>{"use strict";(function(n,t){typeof ml=="object"&&typeof xl<"u"?xl.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self).RBush=t()})(ml,function(){"use strict";function n(x,f,M,L,_){(function w(k,z,O,C,A){for(;C>O;){if(C-O>600){var F=C-O+1,S=z-O+1,T=Math.log(F),D=.5*Math.exp(2*T/3),P=.5*Math.sqrt(T*D*(F-D)/F)*(S-F/2<0?-1:1),m=Math.max(O,Math.floor(z-S*D/F+P)),u=Math.min(C,Math.floor(z+(F-S)*D/F+P));w(k,z,m,u,A)}var v=k[z],I=O,E=C;for(t(k,O,z),A(k[C],v)>0&&t(k,O,C);I0;)E--}A(k[O],v)===0?t(k,O,E):t(k,++E,C),E<=z&&(O=E+1),z<=E&&(C=E-1)}})(x,f,M||0,L||x.length-1,_||e)}function t(x,f,M){var L=x[f];x[f]=x[M],x[M]=L}function e(x,f){return xf?1:0}var i=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 s(x,f,M){if(!M)return f.indexOf(x);for(var L=0;L=x.minX&&f.maxY>=x.minY}function y(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function b(x,f,M,L,_){for(var w=[f,M];w.length;)if(!((M=w.pop())-(f=w.pop())<=L)){var k=f+Math.ceil((M-f)/L/2)*L;n(x,k,f,M,_),w.push(f,k,k,M)}}return i.prototype.all=function(){return this._all(this.data,[])},i.prototype.search=function(x){var f=this.data,M=[];if(!p(x,f))return M;for(var L=this.toBBox,_=[];f;){for(var w=0;w=0&&_[f].children.length>this._maxEntries;)this._split(_,f),f--;this._adjustParentBBoxes(L,_,f)},i.prototype._split=function(x,f){var M=x[f],L=M.children.length,_=this._minEntries;this._chooseSplitAxis(M,_,L);var w=this._chooseSplitIndex(M,_,L),k=y(M.children.splice(w,M.children.length-w));k.height=M.height,k.leaf=M.leaf,r(M,this.toBBox),r(k,this.toBBox),f?x[f-1].children.push(k):this._splitRoot(M,k)},i.prototype._splitRoot=function(x,f){this.data=y([x,f]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},i.prototype._chooseSplitIndex=function(x,f,M){for(var L,_,w,k,z,O,C,A=1/0,F=1/0,S=f;S<=M-f;S++){var T=o(x,0,S,this.toBBox),D=o(x,S,M,this.toBBox),P=(_=T,w=D,k=void 0,z=void 0,O=void 0,C=void 0,k=Math.max(_.minX,w.minX),z=Math.max(_.minY,w.minY),O=Math.min(_.maxX,w.maxX),C=Math.min(_.maxY,w.maxY),Math.max(0,O-k)*Math.max(0,C-z)),m=c(T)+c(D);P=f;A--){var F=x.children[A];a(k,x.leaf?_(F):F),z+=g(k)}return z},i.prototype._adjustParentBBoxes=function(x,f,M){for(var L=M;L>=0;L--)a(f[L],x)},i.prototype._condense=function(x){for(var f=x.length-1,M=void 0;f>=0;f--)x[f].children.length===0?f>0?(M=x[f-1].children).splice(M.indexOf(x[f]),1):this.clear():r(x[f],this.toBBox)},i})});var Uu=ai((ZT,ao)=>{"use strict";(function(n){typeof ao=="object"&&ao.exports?(n.default=n,ao.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/map",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r;let{parse:o}=i,{addEvent:a,extend:l,merge:h,pick:c,splat:g}=s;return function(d){let p;function y(){let{userOptions:O}=this;this.colorAxis=[],O.colorAxis&&(O.colorAxis=g(O.colorAxis),O.colorAxis.map(C=>new p(this,C)))}function b(O){let C=this.chart.colorAxis||[],A=D=>{let P=O.allItems.indexOf(D);P!==-1&&(this.destroyItem(O.allItems[P]),O.allItems.splice(P,1))},F=[],S,T;for(C.forEach(function(D){(S=D.options)&&S.showInLegend&&(S.dataClasses&&S.visible?F=F.concat(D.getDataClassLegendSymbols()):S.visible&&F.push(D),D.series.forEach(function(P){(!P.options.showInLegend||S.dataClasses)&&(P.options.legendType==="point"?P.points.forEach(function(m){A(m)}):A(P))}))}),T=F.length;T--;)O.allItems.unshift(F[T])}function x(O){O.visible&&O.item.legendColor&&O.item.legendItem.symbol.attr({fill:O.item.legendColor})}function f(O){this.chart.colorAxis?.forEach(C=>{C.update({},O.redraw)})}function M(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let O=this.axisTypes;O?O.indexOf("colorAxis")===-1&&O.push("colorAxis"):this.axisTypes=["colorAxis"]}function _(O){let C=this,A=O?"show":"hide";C.visible=C.options.visible=!!O,["graphic","dataLabel"].forEach(function(F){C[F]&&C[F][A]()}),this.series.buildKDTree()}function w(){let O=this,C=this.getPointsCollection(),A=this.options.nullColor,F=this.colorAxis,S=this.colorKey;C.forEach(T=>{let D=T.getNestedProperty(S),P=T.options.color||(T.isNull||T.value===null?A:F&&D!==void 0?F.toColor(D,T):T.color||O.color);P&&T.color!==P&&(T.color=P,O.options.legendType==="point"&&T.legendItem&&T.legendItem.label&&O.chart.legend.colorizeItem(T,T.visible))})}function k(){this.elem.attr("fill",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}function z(){this.elem.attr("stroke",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}d.compose=function(O,C,A,F,S){let T=C.prototype,D=A.prototype,P=S.prototype;T.collectionsWithUpdate.includes("colorAxis")||(p=O,T.collectionsWithUpdate.push("colorAxis"),T.collectionsWithInit.colorAxis=[T.addColorAxis],a(C,"afterGetAxes",y),function(m){let u=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return u.apply(this,arguments);let E=new p(this,h(I.axis,{index:this[v].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(R=>{R.series=[]}),this.series.forEach(R=>{R.bindAxes(),R.isDirtyData=!0}),c(I.redraw,!0)&&this.redraw(I.animation),E}}(C),D.fillSetter=k,D.strokeSetter=z,a(F,"afterGetAllItems",b),a(F,"afterColorizeItem",x),a(F,"afterUpdate",f),l(P,{optionalAxis:"colorAxis",translateColors:w}),l(P.pointClass.prototype,{setVisible:_}),a(S,"afterTranslate",M,{order:1}),a(S,"bindAxes",L))},d.pointSetVisible=_}(r||(r={})),r}),e(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}}),e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(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(i,s,r,o,a,l,h,c){let{defaultOptions:g}=a,{series:d}=h,{defined:p,extend:y,fireEvent:b,isArray:x,isNumber:f,merge:M,pick:L,relativeLength:_}=c;g.colorAxis=M(g.xAxis,r);class w extends i{static compose(z,O,C,A){s.compose(w,z,O,C,A)}constructor(z,O){super(z,O),this.coll="colorAxis",this.visible=!0,this.init(z,O)}init(z,O){let C=z.options.legend||{},A=O.layout?O.layout!=="vertical":C.layout!=="vertical";this.side=O.side||A?2:1,this.reversed=O.reversed||!A,this.opposite=!A,super.init(z,O,"colorAxis"),this.userOptions=O,x(z.userOptions.colorAxis)&&(z.userOptions.colorAxis[this.index]=O),O.dataClasses&&this.initDataClasses(O),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(z){let O=M(g.colorAxis,z,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&z.visible!==!1});super.setOptions(O),this.options.crosshair=this.options.marker}setAxisSize(){let z=this.chart,O=this.legendItem?.symbol,{width:C,height:A}=this.getSize();O&&(this.left=+O.attr("x"),this.top=+O.attr("y"),this.width=C=+O.attr("width"),this.height=A=+O.attr("height"),this.right=z.chartWidth-this.left-C,this.bottom=z.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?C:A)||w.defaultLegendLength}getOffset(){let z=this.legendItem?.group,O=this.chart.axisOffset[this.side];if(z){this.axisParent=z,super.getOffset();let C=this.chart.legend;C.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(C,A)}),C.render(),this.chart.getMargins(!0),this.chart.series.some(A=>A.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=O}}setLegendColor(){let z=this.horiz,O=this.reversed,C=O?1:0,A=O?0:1,F=z?[C,0,A,0]:[0,A,0,C];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(z,O){let C=O.legendItem||{},A=z.padding,F=z.options,S=this.options.labels,T=L(F.itemDistance,10),D=this.horiz,{width:P,height:m}=this.getSize(),u=L(F.labelPadding,D?16:30);this.setLegendColor(),C.symbol||(C.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(C.group)),C.symbol.attr({x:0,y:(z.baseline||0)-11,width:P,height:m}),C.labelWidth=P+A+(D?T:L(S.x,S.distance)+(this.maxLabelLength||0)),C.labelHeight=m+A+(D?u:0)}setState(z){this.series.forEach(function(O){O.setState(z)})}setVisible(){}getSeriesExtremes(){let z=this.series,O,C,A,F,S,T,D=z.length,P,m;for(this.dataMin=1/0,this.dataMax=-1/0;D--;){if(C=(T=z[D]).colorKey=L(T.options.colorKey,T.colorKey,T.pointValKey,T.zoneAxis,"y"),F=T.pointArrayMap,S=T[C+"Min"]&&T[C+"Max"],T[C+"Data"])O=T[C+"Data"];else if(F){if(O=[],A=F.indexOf(C),P=T.yData,A>=0&&P)for(m=0;mT+D&&(C=T+D+2),O.plotX=C,O.plotY=this.len-C,super.drawCrosshair(z,O),O.plotX=F,O.plotY=S,this.cross&&!this.cross.addedToColorAxis&&A.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(A.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(z){let O=this.left,C=z.translatedValue,A=this.top;return f(C)?this.horiz?[["M",C-4,A-6],["L",C+4,A-6],["L",C,A],["Z"]]:[["M",O,C],["L",O-6,C+6],["L",O-6,C-6],["Z"]]:super.getPlotLinePath(z)}update(z,O){let C=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(z.dataClasses&&C.allItems||this.dataClasses)&&this.destroyItems(),super.update(z,O),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),C.colorizeItem(this,!0))}destroyItems(){let z=this.chart,O=this.legendItem||{};if(O.label)z.legend.destroyItem(this);else if(O.labels)for(let C of O.labels)z.legend.destroyItem(C);z.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(z){this.destroyItems(),super.remove(z)}getDataClassLegendSymbols(){let z,O=this,C=O.chart,A=O.legendItem&&O.legendItem.labels||[],F=C.options.legend,S=L(F.valueDecimals,-1),T=L(F.valueSuffix,""),D=P=>O.series.reduce((m,u)=>(m.push(...u.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let u=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",u===void 0?z="< ":v===void 0&&(z="> "),u!==void 0&&(z+=I(u,S)+T),u!==void 0&&v!==void 0&&(z+=" - "),v!==void 0&&(z+=I(v,S)+T),A.push(y({chart:C,name:z,options:{},drawLegendSymbol:l.rectangle,visible:!0,isDataClass:!0,setState:R=>{for(let j of D(m))j.setState(R)},setVisible:function(){this.visible=E=O.visible=!E;let R=[];for(let j of D(m))j.setVisible(E),j.hiddenInDataClass=!E,R.indexOf(j.series)===-1&&R.push(j.series);C.legend.colorizeItem(this,E),R.forEach(j=>{b(j,"afterDataClassLegendClick")})}},P))}),A}getSize(){let{chart:z,horiz:O}=this,{height:C,width:A}=this.options,{legend:F}=z.options;return{width:L(p(A)?_(A,z.chartWidth):void 0,F?.symbolWidth,O?w.defaultLegendLength:12),height:L(p(C)?_(C,z.chartHeight):void 0,F?.symbolHeight,O?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],y(w.prototype,o),Array.prototype.push.apply(i.keepProps,w.keepProps),w}),e(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(i,s){return i.ColorAxis=i.ColorAxis||s,i.ColorAxis.compose(i.Chart,i.Fx,i.Legend,i.Series),i}),e(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}}}),e(t,"Maps/MapPointer.js",[t["Core/Utilities.js"]],function(i){var s;let{defined:r,extend:o,pick:a,wrap:l}=i;return function(h){let c,g=0;function d(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 p(x){let f=this.chart,M=r((x=this.normalize(x)).wheelDelta)&&-x.wheelDelta/120||x.deltaY||x.detail;Math.abs(M)>=1&&(g+=Math.abs(M),c&&clearTimeout(c),c=setTimeout(()=>{g=0},50)),g<10&&f.isInsidePlot(x.chartX-f.plotLeft,x.chartY-f.plotTop)&&f.mapView&&f.mapView.zoomBy(-((f.options.mapNavigation.mouseWheelSensitivity-1)*M),void 0,[x.chartX,x.chartY],!(1>Math.abs(M))&&void 0)}function y(x,f,M){let L=this.chart;if(f=x.call(this,f,M),L&&L.mapView){let _=L.mapView.pixelsToLonLat({x:f.chartX-L.plotLeft,y:f.chartY-L.plotTop});_&&o(f,_)}return f}function b(x){let f=this.chart.options.mapNavigation;f&&a(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||(o(f,{onContainerDblClick:d,onContainerMouseWheel:p}),l(f,"normalize",y),l(f,"zoomOption",b))}}(s||(s={})),s}),e(t,"Maps/MapSymbols.js",[],function(){let i;function s(o,a,l,h,c){if(c){let g=c?.r||0;c.brBoxY=a-g,c.brBoxHeight=h+g}return i.roundedRect(o,a,l,h,c)}function r(o,a,l,h,c){if(c){let g=c?.r||0;c.brBoxHeight=h+g}return i.roundedRect(o,a,l,h,c)}return{compose:function(o){(i=o.prototype.symbols).bottombutton=s,i.topbutton=r}}}),e(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(i,s,r,o,a,l){let{setOptions:h}=i,{composed:c}=s,{addEvent:g,extend:d,merge:p,objectEach:y,pick:b,pushUnique:x}=l;function f(L){L&&(L.preventDefault&&L.preventDefault(),L.stopPropagation&&L.stopPropagation(),L.cancelBubble=!0)}class M{static compose(_,w,k){o.compose(w),a.compose(k),x(c,"Map.Navigation")&&(g(_,"beforeRender",function(){this.mapNavigation=new M(this),this.mapNavigation.update()}),h(r))}constructor(_){this.chart=_,this.navButtons=[]}update(_){let w=this,k=w.chart,z=w.navButtons,O=function(A){this.handler.call(k,A),f(A)},C=k.options.mapNavigation;for(_&&(C=k.options.mapNavigation=p(k.options.mapNavigation,_));z.length;)z.pop().destroy();if(!k.renderer.forExport&&b(C.enableButtons,C.enabled)){w.navButtonsGroup||(w.navButtonsGroup=k.renderer.g().attr({zIndex:7}).add()),y(C.buttons,(F,S)=>{let T={padding:(F=p(C.buttonOptions,F)).padding};!k.styledMode&&F.theme&&(d(T,F.theme),T.style=p(F.theme.style,F.style));let{text:D,width:P=0,height:m=0,padding:u=0}=F,v=k.renderer.button(D!=="+"&&D!=="-"&&D||"",0,0,O,T,void 0,void 0,void 0,S==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[S]).attr({width:P,height:m,title:k.options.lang[S],zIndex:5}).add(w.navButtonsGroup);if(D==="+"||D==="-"){let I=P+1,E=[["M",u+3,u+m/2],["L",u+I-3,u+m/2]];D==="+"&&E.push(["M",u+I/2,u+3],["L",u+I/2,u+m-3]),k.renderer.path(E).addClass("highcharts-button-symbol").attr(k.styledMode?{}:{stroke:F.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(v)}if(v.handler=F.onclick,g(v.element,"dblclick",f),z.push(v),d(F,{width:v.width,height:2*(v.height||0)}),k.hasLoaded)v.align(F,!1,F.alignTo);else{let I=g(k,"load",()=>{v.element&&v.align(F,!1,F.alignTo),I()})}});let A=(F,S)=>!(S.x>=F.x+F.width||S.x+S.width<=F.x||S.y>=F.y+F.height||S.y+S.height<=F.y);k.hasLoaded||g(k,"render",function(){let F=k.exportingGroup&&k.exportingGroup.getBBox();if(F){let S=w.navButtonsGroup.getBBox();if(A(F,S)){let T=-S.y-S.height+F.y-5,D=F.y+F.height-S.y+5,P=C.buttonOptions&&C.buttonOptions.verticalAlign;w.navButtonsGroup.attr({translateY:P==="bottom"?T:D})}}})}this.updateEvents(C)}updateEvents(_){let w=this.chart;b(_.enableDoubleClickZoom,_.enabled)||_.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||g(w.container,"dblclick",function(k){w.pointer.onContainerDblClick(k)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),b(_.enableMouseWheelZoom,_.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||g(w.container,"wheel",function(k){return w.pointer.inClass(k.target,"highcharts-no-mousewheel")||(w.pointer.onContainerMouseWheel(k),f(k)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return M}),e(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{column:{prototype:a}}=i.seriesTypes,{addEvent:l,defined:h}=r;return function(c){function g(d){let p=this.series,y=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(y,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),d?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${y.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(d){let p={};return h(d.color)&&(!d.state||d.state==="normal")&&(p[this.colorProp||"fill"]=d.color),p},pointAttribs:a.pointAttribs},c.compose=function(d){return l(d.prototype.pointClass,"afterSetState",g),d}}(o||(o={})),o}),e(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(i,s,r,o){var a;let{getOptions:l}=s,{isNumber:h,merge:c,pick:g}=o;class d extends i{init(y,b){let x=l().credits,f=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}},y);super.init(f,b)}mapZoom(y,b,x,f,M){this.mapView&&(h(y)&&(y=Math.log(y)/Math.log(.5)),this.mapView.zoomBy(y,h(b)&&h(x)?this.mapView.projection.inverse([b,x]):void 0,h(f)&&h(M)?[f,M]:void 0))}update(y){y.chart&&"map"in y.chart&&this.mapView?.recommendMapView(this,[y.chart.map,...(this.options.series||[]).map(b=>b.mapData)],!0),super.update.apply(this,arguments)}}return(a=d||(d={})).maps={},a.mapChart=function(p,y,b){return new a(p,y,b)},a.splitPath=function(p){let y;return y=typeof p=="string"?(p=p.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(b=>/[A-Z]/i.test(b)?b:parseFloat(b)):p,r.prototype.pathToSegments(y)},d}),e(t,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(i){let s=-Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,a=Number.MAX_VALUE,l;if(i.forEach(h=>{let c=h[h.length-2],g=h[h.length-1];typeof c=="number"&&typeof g=="number"&&(r=Math.min(r,c),s=Math.max(s,c),a=Math.min(a,g),o=Math.max(o,g),l=!0)}),l)return{x1:r,y1:a,x2:s,y2:o}}}}),e(t,"Series/Map/MapPoint.js",[t["Series/ColorMapComposition.js"],t["Maps/MapUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{boundsFromPath:a}=s,l=r.seriesTypes.scatter.prototype.pointClass,{extend:h,isNumber:c,pick:g}=o;class d extends l{static getProjectedPath(y,b){return y.projectedPath||(b&&y.geometry?(b.hasCoordinates=!0,y.projectedPath=b.path(y.geometry)):y.projectedPath=y.path),y.projectedPath||[]}applyOptions(y,b){let x=this.series,f=super.applyOptions(y,b),M=x.joinBy;if(x.mapData&&x.mapMap){let L=M[1],_=super.getNestedProperty(L),w=_!==void 0&&x.mapMap[_];w?h(f,oi(re({},w),{name:f.name??w.name})):x.pointArrayMap.indexOf("value")!==-1&&(f.value=f.value||null)}return f}getProjectedBounds(y){let b=a(d.getProjectedPath(this,y)),x=this.properties,f=this.series.chart.mapView;if(b){let M=x&&x["hc-middle-lon"],L=x&&x["hc-middle-lat"];if(f&&c(M)&&c(L)){let _=y.forward([M,L]);b.midX=_[0],b.midY=_[1]}else{let _=x&&x["hc-middle-x"],w=x&&x["hc-middle-y"];b.midX=b.x1+(b.x2-b.x1)*g(this.middleX,c(_)?_:.5);let k=g(this.middleY,c(w)?w:.5);this.geometry||(k=1-k),b.midY=b.y2-(b.y2-b.y1)*k}return b}}onMouseOver(y){o.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,y):this.series.onMouseOut()}setVisible(y){this.visible=this.options.visible=!!y,this.dataLabel&&this.dataLabel[y?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(y){let b=this.series.chart,x=b.mapView,f=this.bounds;if(x&&f){let M=c(this.insetIndex)&&x.insets[this.insetIndex];if(M){let L=M.projectedUnitsToPixels({x:f.x1,y:f.y1}),_=M.projectedUnitsToPixels({x:f.x2,y:f.y2}),w=x.pixelsToProjectedUnits({x:L.x,y:L.y}),k=x.pixelsToProjectedUnits({x:_.x,y:_.y});f={x1:w.x,y1:w.y,x2:k.x,y2:k.y}}x.fitToBounds(f,void 0,!1),this.series.isDirty=!0,b.redraw(y)}}}return h(d.prototype,{dataLabelOnNull:i.pointMembers.dataLabelOnNull,moveToTopOnHover:i.pointMembers.moveToTopOnHover,isValid:i.pointMembers.isValid}),d}),e(t,"Series/Map/MapSeriesDefaults.js",[t["Core/Utilities.js"]],function(i){let{isNumber:s}=i;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:r}=this.series.chart,{value:o}=this.point;return s(o)?r(o,-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"}}),e(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"}}}),e(t,"Maps/GeoJSONComposition.js",[t["Core/Globals.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{win:a}=i,{format:l}=s,{error:h,extend:c,merge:g,wrap:d}=r;return function(p){function y(_){return this.mapView&&this.mapView.lonLatToProjectedUnits(_)}function b(_){return this.mapView&&this.mapView.projectedUnitsToLonLat(_)}function x(_,w){let k=this.options.chart.proj4||a.proj4;if(!k){h(21,!1,this);return}let{jsonmarginX:z=0,jsonmarginY:O=0,jsonres:C=1,scale:A=1,xoffset:F=0,xpan:S=0,yoffset:T=0,ypan:D=0}=w,P=k(w.crs,[_.lon,_.lat]),m=w.cosAngle||w.rotation&&Math.cos(w.rotation),u=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=w.rotation?[P[0]*m+P[1]*u,-P[0]*u+P[1]*m]:P;return{x:((v[0]-F)*A+S)*C+z,y:-(((T-v[1])*A+D)*C-O)}}function f(_,w){let k=this.options.chart.proj4||a.proj4;if(!k){h(21,!1,this);return}if(_.y===null)return;let{jsonmarginX:z=0,jsonmarginY:O=0,jsonres:C=1,scale:A=1,xoffset:F=0,xpan:S=0,yoffset:T=0,ypan:D=0}=w,P={x:((_.x-z)/C-S)/A+F,y:((_.y-O)/C+D)/A+T},m=w.cosAngle||w.rotation&&Math.cos(w.rotation),u=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=k(w.crs,"WGS84",w.rotation?{x:P.x*m+-(P.y*u),y:P.x*u+P.y*m}:P);return{lat:v.y,lon:v.x}}function M(_,w){w||(w=Object.keys(_.objects)[0]);let k=_.objects[w];if(k["hc-decoded-geojson"]&&k["hc-decoded-geojson"].title===_.title)return k["hc-decoded-geojson"];let z=_.arcs;if(_.transform){let S,T,D,P=_.arcs,{scale:m,translate:u}=_.transform;z=[];for(let v=0,I=P.length;vtypeof S[0]=="number"?S.reduce((T,D,P)=>{let m=D<0?z[~D]:z[D];return D<0?(m=m.slice(0,P===0?m.length:m.length-1)).reverse():P&&(m=m.slice(1)),T.concat(m)},[]):S.map(O),C=k.geometries,A=[];for(let S=0,T=C.length;S(a[1]-o[1])*(l[0]-o[0])}function r(o,a,l,h){let c=[o[0]-a[0],o[1]-a[1]],g=[l[0]-h[0],l[1]-h[1]],d=o[0]*a[1]-o[1]*a[0],p=l[0]*h[1]-l[1]*h[0],y=1/(c[0]*g[1]-c[1]*g[0]),b=[(d*g[0]-p*c[0])*y,(d*g[1]-p*c[1])*y];return b.isIntersection=!0,b}return{clipLineString:function(o,a){let l=[],h=i(o,a,!1);for(let c=1;ca===0?0:a>0?1:-1),s=Math.PI/180,r=Math.PI/2,o=a=>Math.tan((r+a)/2);return class{constructor(a){let l=(a.parallels||[]).map(p=>p*s),h=l[0]||0,c=l[1]??h,g=Math.cos(h);typeof a.projectedBounds=="object"&&(this.projectedBounds=a.projectedBounds);let d=h===c?Math.sin(h):Math.log(g/Math.cos(c))/Math.log(o(c)/o(h));1e-10>Math.abs(d)&&(d=1e-10*(i(d)||1)),this.n=d,this.c=g*Math.pow(o(h),d)/d}forward(a){let{c:l,n:h,projectedBounds:c}=this,g=a[0]*s,d=a[1]*s;l>0?d<-r+1e-6&&(d=-r+1e-6):d>r-1e-6&&(d=r-1e-6);let p=l/Math.pow(o(d),h),y=p*Math.sin(h*g)*63.78137,b=(l-p*Math.cos(h*g))*63.78137,x=[y,b];return c&&(yc.x2||bc.y2)&&(x.outside=!0),x}inverse(a){let{c:l,n:h}=this,c=a[0]/63.78137,g=l-a[1]/63.78137,d=i(h)*Math.sqrt(c*c+g*g),p=Math.atan2(c,Math.abs(g))*i(g);return g*h<0&&(p-=Math.PI*i(c)*i(g)),[p/h/s,(2*Math.atan(Math.pow(l/d,1/h))-r)/s]}}}),e(t,"Maps/Projections/EqualEarth.js",[],function(){let i=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(s){let r=Math.PI/180,o=Math.asin(i*Math.sin(s[1]*r)),a=o*o,l=a*a*a;return[s[0]*r*Math.cos(o)*74.03120656864502/(i*(1.340264+-.24331799999999998*a+l*(.0062510000000000005+.034164*a))),74.03120656864502*o*(1.340264+-.081106*a+l*(893e-6+.003796*a))]}inverse(s){let r=s[0]/74.03120656864502,o=s[1]/74.03120656864502,a=180/Math.PI,l=o,h,c,g,d;for(let b=0;b<12&&(c=(h=l*l)*h*h,g=l*(1.340264+-.081106*h+c*(893e-6+.003796*h))-o,l-=d=g/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(d)));++b);c=(h=l*l)*h*h;let p=a*i*r*(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h))/Math.cos(l),y=a*Math.asin(Math.sin(l)/i);return Math.abs(p)>180?[NaN,NaN]:[p,y]}}}),e(t,"Maps/Projections/Miller.js",[],function(){let i=Math.PI/4,s=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]*s*63.78137,79.7267125*Math.log(Math.tan(i+.4*r[1]*s))]}inverse(r){return[r[0]/63.78137/s,2.5*(Math.atan(Math.exp(.8*(r[1]/63.78137)))-i)/s]}}}),e(t,"Maps/Projections/Orthographic.js",[],function(){let i=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(s){let r=s[0],o=s[1]*i,a=[Math.cos(o)*Math.sin(r*i)*63.78460826781007,63.78460826781007*Math.sin(o)];return(r<-90||r>90)&&(a.outside=!0),a}inverse(s){let r=s[0]/63.78460826781007,o=s[1]/63.78460826781007,a=Math.sqrt(r*r+o*o),l=Math.asin(a),h=Math.sin(l);return[Math.atan2(r*h,a*Math.cos(l))/i,Math.asin(a&&o*h/a)/i]}}}),e(t,"Maps/Projections/WebMercator.js",[],function(){let i=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(s){let r=Math.sin(s[1]*i),o=[63.78137*s[0]*i,63.78137*Math.log((1+r)/(1-r))/2];return Math.abs(s[1])>this.maxLatitude&&(o.outside=!0),o}inverse(s){return[s[0]/(63.78137*i),(2*Math.atan(Math.exp(s[1]/63.78137))-Math.PI/2)/i]}}}),e(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(i,s,r,o,a){return{EqualEarth:s,LambertConformalConic:i,Miller:r,Orthographic:o,WebMercator:a}}),e(t,"Maps/Projection.js",[t["Core/Geometry/PolygonClip.js"],t["Maps/Projections/ProjectionRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{clipLineString:o,clipPolygon:a}=i,{clamp:l,erase:h}=r,c=2*Math.PI/360,g=b=>(b<-180&&(b+=360),b>180&&(b-=360),b),d=b=>(1-Math.cos(b))/2,p=(b,x)=>{let f=Math.cos,M=b[1]*c,L=b[0]*c,_=x[1]*c,w=x[0]*c;return d(_-M)+f(M)*f(_)*d(w-L)};class y{static add(x,f){y.registry[x]=f}static distance(x,f){let{atan2:M,sqrt:L}=Math,_=p(x,f);return 6371e3*(2*M(L(_),L(1-_)))}static geodesic(x,f,M,L=5e5){let{atan2:_,cos:w,sin:k,sqrt:z}=Math,O=y.distance,C=x[1]*c,A=x[0]*c,F=f[1]*c,S=f[0]*c,T=w(C)*w(A),D=w(F)*w(S),P=w(C)*k(A),m=w(F)*k(S),u=k(C),v=k(F),I=O(x,f),E=I/6371e3,R=k(E),j=Math.round(I/L),G=[];if(M&&G.push(x),j>1){let W=1/j;for(let N=W;N<.999;N+=W){let B=k((1-N)*E)/R,X=k(N*E)/R,V=B*T+X*D,H=B*P+X*m,K=_(B*u+X*v,z(V*V+H*H)),U=_(H,V);G.push([U/c,K/c])}}return M&&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 M=y.geodesic(x[f],x[f+1]);M.length&&x.splice(f+1,0,...M)}}static toString(x){let{name:f,rotation:M}=x||{};return[f,M&&M.join(",")].join(";")}constructor(x={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=x;let{name:f,projectedBounds:M,rotation:L}=x;this.rotator=L?this.getRotator(L):void 0;let _=f?y.registry[f]:void 0;_&&(this.def=new _(x));let{def:w,rotator:k}=this;w&&(this.maxLatitude=w.maxLatitude||90,this.hasGeoProjection=!0),k&&w?(this.forward=z=>w.forward(k.forward(z)),this.inverse=z=>k.inverse(w.inverse(z))):w?(this.forward=z=>w.forward(z),this.inverse=z=>w.inverse(z)):k&&(this.forward=k.forward,this.inverse=k.inverse),this.bounds=M==="world"?w&&w.bounds:M}lineIntersectsBounds(x){let{x1:f,x2:M,y1:L,y2:_}=this.bounds||{},w=(O,C,A)=>{let[F,S]=O,T=C?0:1;if(typeof A=="number"&&F[C]>=A!=S[C]>=A){let D=(A-F[C])/(S[C]-F[C]),P=F[T]+D*(S[T]-F[T]);return C?[P,A]:[A,P]}},k,z=x[0];return((k=w(x,0,f))||(k=w(x,0,M)))&&(z=k,x[1]=k),((k=w(x,1,L))||(k=w(x,1,_)))&&(z=k),z}getRotator(x){let f=x[0]*c,M=(x[1]||0)*c,L=(x[2]||0)*c,_=Math.cos(M),w=Math.sin(M),k=Math.cos(L),z=Math.sin(L);if(f!==0||M!==0||L!==0)return{forward:O=>{let C=O[0]*c+f,A=O[1]*c,F=Math.cos(A),S=Math.cos(C)*F,T=Math.sin(C)*F,D=Math.sin(A),P=D*_+S*w;return[Math.atan2(T*k-P*z,S*_-D*w)/c,Math.asin(P*k+T*z)/c]},inverse:O=>{let C=O[0]*c,A=O[1]*c,F=Math.cos(A),S=Math.cos(C)*F,T=Math.sin(C)*F,D=Math.sin(A),P=D*k-T*z;return[(Math.atan2(T*k+D*z,S*_+P*w)-f)/c,Math.asin(P*_-S*w)/c]}}}forward(x){return x}inverse(x){return x}cutOnAntimeridian(x,f){let M,L=[],_=[x];for(let w=0,k=x.length;w90)&&(A<-90||A>90)&&C>0!=A>0){let F=l((180-(C+360)%360)/((A+360)%360-(C+360)%360),0,1),S=O[1]+F*(z[1]-O[1]);L.push({i:w,lat:S,direction:C<0?1:-1,previousLonLat:O,lonLat:z})}}if(L.length)if(f){L.length%2==1&&(M=L.slice().sort((k,z)=>Math.abs(z.lat)-Math.abs(k.lat))[0],h(L,M));let w=L.length-2;for(;w>=0;){let k=L[w].i,z=g(180+1e-6*L[w].direction),O=g(180-1e-6*L[w].direction),C=x.splice(k,L[w+1].i-k,...y.geodesic([z,L[w].lat],[z,L[w+1].lat],!0));C.push(...y.geodesic([O,L[w+1].lat],[O,L[w].lat],!0)),_.push(C),w-=2}if(M)for(let k=0;k<_.length;k++){let{direction:z,lat:O}=M,C=_[k],A=C.indexOf(M.lonLat);if(A>-1){let F=(O<0?-1:1)*this.maxLatitude,S=g(180+1e-6*z),T=g(180-1e-6*z),D=y.geodesic([S,O],[S,F],!0);for(let P=S+120*z;P>-180&&P<180;P+=120*z)D.push([P,F]);D.push(...y.geodesic([T,F],[T,M.lat],!0)),C.splice(A,0,...D);break}}}else{let w=L.length;for(;w--;){let k=L[w].i,z=x.splice(k,x.length,[g(180+1e-6*L[w].direction),L[w].lat]);z.unshift([g(180-1e-6*L[w].direction),L[w].lat]),_.push(z)}}return _}path(x){let f,{bounds:M,def:L,rotator:_}=this,w=[],k=x.type==="Polygon"||x.type==="MultiPolygon",z=this.hasGeoProjection,O=!L||L.antimeridianCutting!==!1,C=O?_:void 0,A=O&&L||this;M&&(f=[[M.x1,M.y1],[M.x2,M.y1],[M.x2,M.y2],[M.x1,M.y2]]);let F=S=>{let T=S.map(P=>{if(O){C&&(P=C.forward(P));let m=P[0];1e-6>Math.abs(m-180)&&(m=m<180?179.999999:180.000001),P=[m,P[1]]}return P}),D=[T];z&&(y.insertGeodesics(T),O&&(D=this.cutOnAntimeridian(T,k))),D.forEach(P=>{let m,u;if(P.length<2)return;let v=!1,I=!1,E=W=>{v?w.push(["L",W[0],W[1]]):(w.push(["M",W[0],W[1]]),v=!0)},R=!1,j=!1,G=P.map(W=>{let N=A.forward(W);return N.outside?R=!0:j=!0,N[1]===1/0?N[1]=1e10:N[1]===-1/0&&(N[1]=-1e10),N});if(O){if(k&&G.push(G[0]),R){if(!j)return;if(f){if(k)G=a(G,f);else if(M){o(G,f).forEach(W=>{v=!1,W.forEach(E)});return}}}G.forEach(E)}else for(let W=0;WE(A.forward(X))):v=!1),E(B),u=N,I=!1)}})};return x.type==="LineString"?F(x.coordinates):x.type==="MultiLineString"?x.coordinates.forEach(S=>F(S)):x.type==="Polygon"?(x.coordinates.forEach(S=>F(S)),w.length&&w.push(["Z"])):x.type==="MultiPolygon"&&(x.coordinates.forEach(S=>{S.forEach(T=>F(T))}),w.length&&w.push(["Z"])),w}}return y.registry=s,y}),e(t,"Maps/MapView.js",[t["Core/Globals.js"],t["Maps/MapViewDefaults.js"],t["Maps/GeoJSONComposition.js"],t["Core/Geometry/GeometryUtilities.js"],t["Maps/MapUtilities.js"],t["Maps/Projection.js"],t["Core/Utilities.js"]],function(i,s,r,o,a,l,h){let{composed:c}=i,{pointInPolygon:g}=o,{topo2geo:d}=r,{boundsFromPath:p}=a,{addEvent:y,clamp:b,crisp:x,fireEvent:f,isArray:M,isNumber:L,isObject:_,isString:w,merge:k,pick:z,pushUnique:O,relativeLength:C}=h,A={};function F(P,m){let{width:u,height:v}=m;return Math.log(400.979322/Math.max((P.x2-P.x1)/(u/256),(P.y2-P.y1)/(v/256)))/Math.log(2)}function S(P){P.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,P.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class T{static compose(m){O(c,"MapView")&&(A=m.maps,y(m,"afterInit",function(){this.mapView=new T(this,this.options.mapView)},{order:0}),y(m,"addSeriesAsDrilldown",S),y(m,"afterDrillUp",S))}static compositeBounds(m){if(m.length)return m.slice(1).reduce((u,v)=>(u.x1=Math.min(u.x1,v.x1),u.y1=Math.min(u.y1,v.y1),u.x2=Math.max(u.x2,v.x2),u.y2=Math.max(u.y2,v.y2),u),k(m[0]))}static mergeInsets(m,u){let v=E=>{let R={};return E.forEach((j,G)=>{R[j&&j.id||`i${G}`]=j}),R},I=k(v(m),v(u));return Object.keys(I).map(E=>I[E])}constructor(m,u){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof D||this.recommendMapView(m,[m.options.chart.map,...(m.options.series||[]).map(R=>R.mapData)]),this.userOptions=u||{};let v=k(s,this.recommendedMapView,u),I=this.recommendedMapView?.insets,E=u&&u.insets;I&&E&&(v.insets=T.mergeInsets(I,E)),this.chart=m,this.center=v.center,this.options=v,this.projection=new l(v.projection),this.playingField=m.plotBox,this.zoom=v.zoom||0,this.minZoom=v.minZoom,this.createInsets(),this.eventsToUnbind.push(y(m,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&L(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&k(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let m=this.options,u=m.insets;u&&u.forEach(v=>{let I=new D(this,k(m.insetOptions,v));this.insets.push(I)})}fitToBounds(m,u,v=!0,I){let E=m||this.getProjectedBounds();if(E){let R=z(u,m?0:this.options.padding),j=this.getField(!1),G=M(R)?R:[R,R,R,R];this.padding=[C(G[0],j.height),C(G[1],j.width),C(G[2],j.height),C(G[3],j.width)],this.playingField=this.getField();let W=F(E,this.playingField);m||(this.minZoom=W);let N=this.projection.inverse([(E.x2+E.x1)/2,(E.y2+E.y1)/2]);this.setView(N,W,v,I)}}getField(m=!0){let u=m?this.padding:[0,0,0,0];return{x:u[3],y:u[0],width:this.chart.plotWidth-u[1]-u[3],height:this.chart.plotHeight-u[0]-u[2]}}getGeoMap(m){if(w(m))return A[m]&&A[m].type==="Topology"?d(A[m]):A[m];if(_(m,!0)){if(m.type==="FeatureCollection")return m;if(m.type==="Topology")return d(m)}}getMapBBox(){let m=this.getProjectedBounds(),u=this.getScale();if(m){let v=this.padding,I=this.projectedUnitsToPixels({x:m.x1,y:m.y2});return{width:(m.x2-m.x1)*u+v[1]+v[3],height:(m.y2-m.y1)*u+v[0]+v[2],x:I.x-v[3],y:I.y-v[0]}}}getProjectedBounds(){let m=this.projection,u=this.chart.series.reduce((I,E)=>{let R=E.getProjectedBounds&&E.getProjectedBounds();return R&&E.options.affectsMapView!==!1&&I.push(R),I},[]),v=this.options.fitToGeometry;if(v){if(!this.fitToGeometryCache)if(v.type==="MultiPoint"){let I=v.coordinates.map(j=>m.forward(j)),E=I.map(j=>j[0]),R=I.map(j=>j[1]);this.fitToGeometryCache={x1:Math.min.apply(0,E),x2:Math.max.apply(0,E),y1:Math.min.apply(0,R),y2:Math.max.apply(0,R)}}else this.fitToGeometryCache=p(m.path(v));return this.fitToGeometryCache}return this.projection.bounds||T.compositeBounds(u)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:m,y:u,width:v,height:I}=this.playingField,E=this.projection.forward(this.center),R=this.projection.hasCoordinates?-1:1,j=this.getScale(),G=j*R,W=m+v/2-E[0]*j,N=u+I/2-E[1]*G;return{scaleX:j,scaleY:G,translateX:W,translateY:N}}lonLatToPixels(m){let u=this.lonLatToProjectedUnits(m);if(u)return this.projectedUnitsToPixels(u)}lonLatToProjectedUnits(m){let u=this.chart,v=u.mapTransforms;if(v){for(let E in v)if(Object.hasOwnProperty.call(v,E)&&v[E].hitZone){let R=u.transformFromLatLon(m,v[E]);if(R&&g(R,v[E].hitZone.coordinates[0]))return R}return u.transformFromLatLon(m,v.default)}for(let E of this.insets)if(E.options.geoBounds&&g({x:m.lon,y:m.lat},E.options.geoBounds.coordinates[0])){let R=E.projection.forward([m.lon,m.lat]),j=E.projectedUnitsToPixels({x:R[0],y:R[1]});return this.pixelsToProjectedUnits(j)}let I=this.projection.forward([m.lon,m.lat]);if(!I.outside)return{x:I[0],y:I[1]}}projectedUnitsToLonLat(m){let u=this.chart,v=u.mapTransforms;if(v){for(let R in v)if(Object.hasOwnProperty.call(v,R)&&v[R].hitZone&&g(m,v[R].hitZone.coordinates[0]))return u.transformToLatLon(m,v[R]);return u.transformToLatLon(m,v.default)}let I=this.projectedUnitsToPixels(m);for(let R of this.insets)if(R.hitZone&&g(I,R.hitZone.coordinates[0])){let j=R.pixelsToProjectedUnits(I),G=R.projection.inverse([j.x,j.y]);return{lon:G[0],lat:G[1]}}let E=this.projection.inverse([m.x,m.y]);return{lon:E[0],lat:E[1]}}recommendMapView(m,u,v=!1){this.recommendedMapView={};let I=u.map(j=>this.getGeoMap(j)),E=[];I.forEach(j=>{if(j&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=j["hc-recommended-mapview"]||{}),j.bbox)){let[G,W,N,B]=j.bbox;E.push({x1:G,y1:W,x2:N,y2:B})}});let R=E.length&&T.compositeBounds(E);f(this,"onRecommendMapView",{geoBounds:R,chart:m},function(){if(R&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:j,y1:G,x2:W,y2:N}=R;this.recommendedMapView.projection=W-j>180&&N-G>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[G,N],rotation:[-(j+W)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=I[0],v&&m.hasRendered&&!m.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(m){this.chart.series.forEach(u=>{u.useMapGeometry&&(u.isDirty=!0)}),this.chart.redraw(m)}setView(m,u,v=!0,I){m&&(this.center=m),typeof u=="number"&&(typeof this.minZoom=="number"&&(u=Math.max(u,this.minZoom)),typeof this.options.maxZoom=="number"&&(u=Math.min(u,this.options.maxZoom)),L(u)&&(this.zoom=u));let E=this.getProjectedBounds();if(E){let R=this.projection.forward(this.center),{x:j,y:G,width:W,height:N}=this.playingField,B=this.getScale(),X=this.projectedUnitsToPixels({x:E.x1,y:E.y1}),V=this.projectedUnitsToPixels({x:E.x2,y:E.y2}),H=[(E.x1+E.x2)/2,(E.y1+E.y2)/2];if(!this.chart.series.some(K=>K.isDrilling)){let K=X.x,U=V.y,Y=V.x,Z=X.y;Y-Kj+W&&K>j&&(R[0]+=Math.min(Y-W-j,K-j)/B),Z-UG+N&&U>G&&(R[1]-=Math.min(Z-N-G,U-G)/B),this.center=this.projection.inverse(R)}this.insets.forEach(K=>{K.options.field&&(K.hitZone=K.getHitZone(),K.playingField=K.getField())}),this.render()}f(this,"afterSetView"),v&&this.redraw(I)}projectedUnitsToPixels(m){let u=this.getScale(),v=this.projection.forward(this.center),I=this.playingField,E=I.x+I.width/2,R=I.y+I.height/2;return{x:E-u*(v[0]-m.x),y:R+u*(v[1]-m.y)}}pixelsToLonLat(m){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(m))}pixelsToProjectedUnits(m){let{x:u,y:v}=m,I=this.getScale(),E=this.projection.forward(this.center),R=this.playingField,j=R.x+R.width/2,G=R.y+R.height/2;return{x:E[0]+(u-j)/I,y:E[1]-(v-G)/I}}setUpEvents(){let m,u,v,{chart:I}=this,E=R=>{let{lastTouches:j,pinchDown:G}=I.pointer,W=this.projection,N=R.touches,{mouseDownX:B,mouseDownY:X}=I,V=0;if(G?.length===1?(B=G[0].chartX,X=G[0].chartY):G?.length===2&&(B=(G[0].chartX+G[1].chartX)/2,X=(G[0].chartY+G[1].chartY)/2),N?.length===2&&j&&(V=Math.log(Math.sqrt(Math.pow(j[0].chartX-j[1].chartX,2)+Math.pow(j[0].chartY-j[1].chartY,2))/Math.sqrt(Math.pow(N[0].chartX-N[1].chartX,2)+Math.pow(N[0].chartY-N[1].chartY,2)))/Math.log(.5)),L(B)&&L(X)){let H=`${B},${X}`,{chartX:K,chartY:U}=R.originalEvent;N?.length===2&&(K=(N[0].chartX+N[1].chartX)/2,U=(N[0].chartY+N[1].chartY)/2),H!==u&&(u=H,m=this.projection.forward(this.center),v=(this.projection.options.rotation||[0,0]).slice());let Y=W.def&&W.def.bounds,Z=Y&&F(Y,this.playingField)||-1/0;if(W.options.name==="Orthographic"&&2>(N?.length||0)&&(this.minZoom||1/0)<1.3*Z){let q=440/(this.getScale()*Math.min(I.plotWidth,I.plotHeight));if(v){let J=(B-K)*q-v[0],Q=b(-v[1]-(X-U)*q,-80,80),$=this.zoom;this.update({projection:{rotation:[-J,-Q]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=$,I.redraw(!1)}}else if(L(K)&&L(U)){let q=this.getScale(),J=this.projection.hasCoordinates?1:-1,Q=this.projection.inverse([m[0]+(B-K)/q,m[1]-(X-U)/q*J]);isNaN(Q[0]+Q[1])||this.zoomBy(V,Q,void 0,!1)}R.preventDefault()}};y(I,"pan",E),y(I,"touchpan",E),y(I,"selection",R=>{if(R.resetSelection)this.zoomBy();else{let j=R.x-I.plotLeft,G=R.y-I.plotTop,{y:W,x:N}=this.pixelsToProjectedUnits({x:j,y:G}),{y:B,x:X}=this.pixelsToProjectedUnits({x:j+R.width,y:G+R.height});this.fitToBounds({x1:N,y1:W,x2:X,y2:B},void 0,!0,!R.originalEvent.touches&&void 0),/^touch/.test(R.originalEvent.type)||I.showResetZoom(),R.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(m,u=!0,v){let I=m.projection,E=I&&l.toString(I)!==l.toString(this.options.projection),R=!1;k(!0,this.userOptions,m),k(!0,this.options,m),"insets"in m&&(this.insets.forEach(j=>j.destroy()),this.insets.length=0,R=!0),(E||"fitToGeometry"in m)&&delete this.fitToGeometryCache,(E||R)&&(this.chart.series.forEach(j=>{let G=j.transformGroups;if(j.clearBounds&&j.clearBounds(),j.isDirty=!0,j.isDirtyData=!0,R&&G)for(;G.length>1;){let W=G.pop();W&&W.destroy()}}),E&&(this.projection=new l(this.options.projection)),R&&this.createInsets(),!m.center&&Object.hasOwnProperty.call(m,"zoom")&&!L(m.zoom)&&this.fitToBounds(void 0,void 0,!1)),m.center||L(m.zoom)?this.setView(this.options.center,m.zoom,!1):"fitToGeometry"in m&&this.fitToBounds(void 0,void 0,!1),u&&this.chart.redraw(v)}zoomBy(m,u,v,I){let E=this.chart,R=this.projection.forward(this.center);if(typeof m=="number"){let j,G,W,N=this.zoom+m;if(v){let[B,X]=v,V=this.getScale(),H=B-E.plotLeft-E.plotWidth/2,K=X-E.plotTop-E.plotHeight/2;G=R[0]+H/V,W=R[1]+K/V}if(typeof G=="number"&&typeof W=="number"){let B=1-Math.pow(2,this.zoom)/Math.pow(2,N),X=R[0]-G,V=R[1]-W;R[0]-=X*B,R[1]+=V*B,j=this.projection.inverse(R)}this.setView(u||j,N,void 0,I)}else this.fitToBounds(void 0,void 0,void 0,I)}}class D extends T{constructor(m,u){if(super(m.chart,u),this.id=u.id,this.mapView=m,this.options=k({center:[0,0]},m.options.insetOptions,u),this.allBounds=[],this.options.geoBounds){let v=m.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=p(v),this.geoBoundsProjectedPolygon=v.map(I=>[I[1]||0,I[2]||0])}}getField(m=!0){let u=this.hitZone;if(u){let v=m?this.padding:[0,0,0,0],I=u.coordinates[0],E=I.map(B=>B[0]),R=I.map(B=>B[1]),j=Math.min.apply(0,E)+v[3],G=Math.max.apply(0,E)-v[1],W=Math.min.apply(0,R)+v[0],N=Math.max.apply(0,R)-v[2];if(L(j)&&L(W))return{x:j,y:W,width:G-j,height:N-W}}return super.getField.call(this,m)}getHitZone(){let{chart:m,mapView:u,options:v}=this,{coordinates:I}=v.field||{};if(I){let E=I[0];if(v.units==="percent"){let R=v.relativeTo==="mapBoundingBox"&&u.getMapBBox()||k(m.plotBox,{x:0,y:0});E=E.map(j=>[C(`${j[0]}%`,R.width,R.x),C(`${j[1]}%`,R.height,R.y)])}return{type:"Polygon",coordinates:[E]}}}getProjectedBounds(){return T.compositeBounds(this.allBounds)}isInside(m){let{geoBoundsProjectedBox:u,geoBoundsProjectedPolygon:v}=this;return!!(u&&m.x>=u.x1&&m.x<=u.x2&&m.y>=u.y1&&m.y<=u.y2&&v&&g(m,v))}render(){let{chart:m,mapView:u,options:v}=this,I=v.borderPath||v.field;if(I&&u.group){let E=!0;this.border||(this.border=m.renderer.path().addClass("highcharts-mapview-inset-border").add(u.group),E=!1),m.styledMode||this.border.attr({stroke:v.borderColor,"stroke-width":v.borderWidth});let R=this.border.strokeWidth(),j=v.relativeTo==="mapBoundingBox"&&u.getMapBBox()||u.playingField,G=(I.coordinates||[]).reduce((W,N)=>N.reduce((B,X,V)=>{let[H,K]=X;return v.units==="percent"&&(H=m.plotLeft+C(`${H}%`,j.width,j.x),K=m.plotTop+C(`${K}%`,j.height,j.y)),H=x(H,R),K=x(K,R),B.push(V===0?["M",H,K]:["L",H,K]),B},W),[]);this.border[E?"animate":"attr"]({d:G})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(m=>m())}setUpEvents(){}}return T}),e(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(i,s,r,o,a,l,h,c,g,d){let{animObject:p,stop:y}=i,{noop:b}=o,{splitPath:x}=a,{column:f,scatter:M}=g.seriesTypes,{extend:L,find:_,fireEvent:w,getNestedProperty:k,isArray:z,defined:O,isNumber:C,isObject:A,merge:F,objectEach:S,pick:T,splat:D}=d;class P extends M{constructor(){super(...arguments),this.processedData=[]}animate(u){let{chart:v,group:I}=this,E=p(this.options.animation);u?I.attr({translateX:v.plotLeft+v.plotWidth/2,translateY:v.plotTop+v.plotHeight/2,scaleX:.001,scaleY:.001}):I.animate({translateX:v.plotLeft,translateY:v.plotTop,scaleX:1,scaleY:1},E)}clearBounds(){this.points.forEach(u=>{delete u.bounds,delete u.insetIndex,delete u.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 u=this,{chart:v,group:I,transformGroups:E=[]}=this,{mapView:R,renderer:j}=v;if(R){this.transformGroups=E,E[0]||(E[0]=j.g().add(I));for(let G=0,W=R.insets.length;G{let{graphic:W}=G;G.group=E[typeof G.insetIndex=="number"?G.insetIndex+1:0],W&&W.parentGroup!==G.group&&W.add(G.group)}),f.prototype.drawPoints.apply(this),this.points.forEach(G=>{let W=G.graphic;if(W){let N=W.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&&W.addClass(B),v.styledMode&&W.css(this.pointAttribs(G,G.selected&&"select"||void 0)),W.attr({visibility:!G.visible&&(G.visible||G.isNull)?"hidden":"inherit"}),W.animate=function(X,V,H){let K=C(X["stroke-width"])&&!C(W["stroke-width"]),U=C(W["stroke-width"])&&!C(X["stroke-width"]);if(K||U){let Y=T(u.getStrokeWidth(u.options),1)/(v.mapView&&v.mapView.getScale()||1);K&&(W["stroke-width"]=Y),U&&(X["stroke-width"]=Y)}return N.call(W,X,V,U?function(){W.element.removeAttribute("stroke-width"),delete W["stroke-width"],H&&H.apply(this,arguments)}:H)}}})),E.forEach((G,W)=>{let N=(W===0?R:R.insets[W-1]).getSVGTransform(),B=T(this.getStrokeWidth(this.options),1),X=N.scaleX,V=N.scaleY>0?1:-1,H=K=>{(u.points||[]).forEach(U=>{let Y,Z=U.graphic;Z&&Z["stroke-width"]&&(Y=this.getStrokeWidth(U.options))&&Z.attr({"stroke-width":Y/K})})};if(j.globalAnimation&&v.hasRendered&&R.allowTransformAnimation){let K=Number(G.attr("translateX")),U=Number(G.attr("translateY")),Y=Number(G.attr("scaleX")),Z=(Q,$)=>{let tt=Y+(X-Y)*$.pos;G.attr({translateX:K+(N.translateX-K)*$.pos,translateY:U+(N.translateY-U)*$.pos,scaleX:tt,scaleY:tt*V,"stroke-width":B/tt}),H(tt)},q=F(p(j.globalAnimation)),J=q.step;q.step=function(){J&&J.apply(this,arguments),Z.apply(this,arguments)},G.attr({animator:0}).animate({animator:1},q,function(){typeof j.globalAnimation!="boolean"&&j.globalAnimation.complete&&j.globalAnimation.complete({applyDrilldown:!0}),w(this,"mapZoomComplete")}.bind(this))}else y(G),G.attr(F(N,{"stroke-width":B/X})),H(X)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:u,projection:v}=this.chart.mapView,I=[];(this.points||[]).forEach(E=>{if(E.path||E.geometry){if(typeof E.path=="string"?E.path=x(E.path):z(E.path)&&E.path[0]==="M"&&(E.path=this.chart.renderer.pathToSegments(E.path)),!E.bounds){let R=E.getProjectedBounds(v);if(R){E.labelrank=T(E.labelrank,(R.x2-R.x1)*(R.y2-R.y1));let{midX:j,midY:G}=R;if(u&&C(j)&&C(G)){let W=_(u,N=>N.isInside({x:j,y:G}));W&&(delete E.projectedPath,(R=E.getProjectedBounds(W.projection))&&W.allBounds.push(R),E.insetIndex=u.indexOf(W))}E.bounds=R}}E.bounds&&E.insetIndex===void 0&&I.push(E.bounds)}}),this.bounds=c.compositeBounds(I)}return this.bounds}getStrokeWidth(u){let v=this.pointAttrToOptions;return u[v&&v["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(u,v){let{mapView:I,styledMode:E}=u.series.chart,R=E?this.colorAttribs(u):f.prototype.pointAttribs.call(this,u,v),j=this.getStrokeWidth(u.options);if(v){let W=F(this.options.states&&this.options.states[v],u.options.states&&u.options.states[v]||{}),N=this.getStrokeWidth(W);O(N)&&(j=N),R.stroke=W.borderColor??u.color}j&&I&&(j/=I.getScale());let G=this.getStrokeWidth(this.options);return R.dashstyle&&I&&C(G)&&(j=G/I.getScale()),u.visible||(R.fill=this.options.nullColor),O(j)?R["stroke-width"]=j:delete R["stroke-width"],R["stroke-linecap"]=R["stroke-linejoin"]=this.options.linecap,R}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(u,v=!0,I,E){delete this.bounds,super.setData(u,!1,void 0,E),this.processData(),this.generatePoints(),v&&this.chart.redraw(I)}processData(){let u,v,I,E=this.options,R=E.data,j=this.chart,G=j.options.chart,W=this.joinBy,N=E.keys||this.pointArrayMap,B=[],X={},V=this.chart.mapView,H=V&&(A(E.mapData,!0)?V.getGeoMap(E.mapData):V.geoMap),K=j.mapTransforms=G.mapTransforms||H&&H["hc-transform"]||j.mapTransforms;K&&S(K,Y=>{Y.rotation&&(Y.cosAngle=Math.cos(Y.rotation),Y.sinAngle=Math.sin(Y.rotation))}),z(E.mapData)?I=E.mapData:H&&H.type==="FeatureCollection"&&(this.mapTitle=H.title,I=o.geojson(H,this.type,this)),this.processedData=[];let U=this.processedData;if(R){let Y;for(let Z=0,q=R.length;ZN.length&&typeof Y[0]=="string"&&(U[Z]["hc-key"]=Y[0],++J);for(let Q=0;Q0?l.prototype.setNestedProperty(U[Z],Y[J],N[Q]):U[Z][N[Q]]=Y[J])}else U[Z]=R[Z];W&&W[0]==="_i"&&(U[Z]._i=Z)}}if(I){this.mapData=I,this.mapMap={};for(let Y=0;Y{let q=k(Y,Z);X[q]&&B.push(X[q])})}if(E.allAreas){if(W[1]){let Z=W[1];U.forEach(q=>{B.push(k(Z,q))})}let Y="|"+B.map(function(Z){return Z&&Z[W[0]]}).join("|")+"|";I.forEach(Z=>{W[0]&&Y.indexOf("|"+Z[W[0]]+"|")!==-1||U.push(F(Z,{value:null}))})}}this.processedXData=Array(U.length)}setOptions(u){let v=super.setOptions(u),I=v.joinBy;return v.joinBy===null&&(I="_i"),(I=this.joinBy=D(I))[1]||(I[1]=I[0]),v}translate(){let u=this.doFullTranslate(),v=this.chart.mapView,I=v&&v.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!v||v.userOptions.center||C(v.userOptions.zoom)||v.zoom!==v.minZoom?this.getProjectedBounds():v.fitToBounds(void 0,void 0,!1)),v){let E=v.getSVGTransform();this.points.forEach(R=>{let j=C(R.insetIndex)&&v.insets[R.insetIndex].getSVGTransform()||E;j&&R.bounds&&C(R.bounds.midX)&&C(R.bounds.midY)&&(R.plotX=R.bounds.midX*j.scaleX+j.translateX,R.plotY=R.bounds.midY*j.scaleY+j.translateY),u&&(R.shapeType="path",R.shapeArgs={d:l.getProjectedPath(R,I)}),R.hiddenInDataClass||(R.projectedPath&&!R.projectedPath.length?R.setVisible(!1):R.visible||R.setVisible(!0))})}w(this,"afterTranslate")}update(u){u.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((v,I)=>I===this._i?u.mapData:v.mapData)],!0),super.update.apply(this,arguments)}}return P.defaultOptions=F(M.defaultOptions,h),L(P.prototype,{type:"map",axisTypes:s.seriesMembers.axisTypes,colorAttribs:s.seriesMembers.colorAttribs,colorKey:s.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,forceDL:!0,getCenter:r.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:s.seriesMembers.parallelArrays,pointArrayMap:s.seriesMembers.pointArrayMap,pointClass:l,preserveAspectRatio:!0,searchPoint:b,trackerGroups:s.seriesMembers.trackerGroups,useMapGeometry:!0}),s.compose(P),g.registerSeriesType("map",P),P}),e(t,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),e(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(i,s,r,o){let{extend:a,merge:l}=o;class h extends s{pointAttribs(g,d){let p=super.pointAttribs(g,d);return p.fill=this.options.fillColor,p}}return h.defaultOptions=l(s.defaultOptions,i),a(h.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),r.registerSeriesType("mapline",h),h}),e(t,"Series/MapPoint/MapPointPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:r}=i.seriesTypes,{isNumber:o}=s;class a extends r.prototype.pointClass{isValid(){return!!(this.options.geometry||o(this.x)&&o(this.y)||o(this.options.lon)&&o(this.options.lat))}}return a}),e(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"}}),e(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(i,s,r,o,a,l){let{noop:h}=i,{map:c,scatter:g}=o.seriesTypes,{extend:d,fireEvent:p,isNumber:y,merge:b}=l;class x extends g{constructor(){super(...arguments),this.clearBounds=c.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(M){let L=this.chart.mapView;if(L){let{geometry:_,lon:w,lat:k}=M,z=_&&_.type==="Point"&&_.coordinates;if(y(w)&&y(k)&&(z=[w,k]),z)return L.lonLatToProjectedUnits({lon:z[0],lat:z[1]})}}translate(){let M=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),M){let L=M.getSVGTransform(),{hasCoordinates:_}=M.projection;this.points.forEach(w=>{let k,{x:z,y:O}=w,C=y(w.insetIndex)&&M.insets[w.insetIndex].getSVGTransform()||L,A=this.projectPoint(w.options)||w.properties&&this.projectPoint(w.properties);if(A?(z=A.x,O=A.y):w.bounds&&(z=w.bounds.midX,O=w.bounds.midY,C&&y(z)&&y(O)&&(w.plotX=z*C.scaleX+C.translateX,w.plotY=O*C.scaleY+C.translateY,k=!0)),y(z)&&y(O)){if(!k){let F=M.projectedUnitsToPixels({x:z,y:O});w.plotX=F.x,w.plotY=_?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=b(g.defaultOptions,r),a.prototype.symbols.mapmarker=(f,M,L,_,w)=>{let k,z,O=w&&w.context==="legend";O?(k=f+L/2,z=M+_):w&&typeof w.anchorX=="number"&&typeof w.anchorY=="number"?(k=w.anchorX,z=w.anchorY):(k=f+L/2,z=M+_/2,M-=_);let C=O?_/3:_/2;return[["M",k,z],["C",k,z,k-C,M+1.5*C,k-C,M+C],["A",C,C,1,1,1,k+C,M+C],["C",k+C,M+1.5*C,k,z,k,z],["Z"]]},d(x.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:s,searchPoint:h,useMapGeometry:!0}),o.registerSeriesType("mappoint",x),x}),e(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}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{parse:a}=i,{noop:l}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:d,pick:p,stableSort:y}=o;return class{constructor(b,x){this.setState=l,this.init(b,x)}init(b,x){this.options=b,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(b){b.splice(this.options.legendIndex,0,this)}drawLegendSymbol(b){let x,f=p(b.options.itemDistance,20),M=this.legendItem||{},L=this.options,_=L.ranges,w=L.connectorDistance;if(!_||!_.length||!g(_[0].value)){b.options.bubbleLegend.autoRanges=!0;return}y(_,function(C,A){return A.value-C.value}),this.ranges=_,this.setOptions(),this.render();let k=this.getMaxLabelSize(),z=this.ranges[0].radius,O=2*z;x=(x=w-z+k.width)>0?x:0,this.maxLabel=k,this.movementX=L.labels.align==="left"?x:0,M.labelWidth=O+x+f,M.labelHeight=O+k.height/2}setOptions(){let b=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],M=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},_={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},k=f.options.marker.fillOpacity,z=this.chart.styledMode;b.forEach(function(O,C){z||(L.stroke=p(O.borderColor,x.borderColor,f.color),L.fill=p(O.color,x.color,k!==1?a(f.color).setOpacity(k).get("rgba"):f.color),_.stroke=p(O.connectorColor,x.connectorColor,f.color)),b[C].radius=this.getRangeRadius(O.value),b[C]=d(b[C],{center:b[0].radius-b[C].radius+M}),z||d(!0,b[C],{bubbleAttribs:d(L),connectorAttribs:d(_),labelAttribs:w})},this)}getRangeRadius(b){let x=this.options,f=this.options.seriesIndex,M=this.chart.series[f],L=x.ranges[0].value,_=x.ranges[x.ranges.length-1].value,w=x.minSize,k=x.maxSize;return M.getRadius.call(this,_,L,w,k,b)}render(){let b=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let M of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),b.symbol=x.g("bubble-legend"),b.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),b.symbol.translateX=0,b.symbol.translateY=0,b.symbol.add(b.label),b.label.add(b.group),this.ranges))M.value>=f&&this.renderRange(M);this.hideOverlappingLabels()}renderRange(b){let x=this.ranges[0],f=this.legend,M=this.options,L=M.labels,_=this.chart,w=_.series[M.seriesIndex],k=_.renderer,z=this.symbols,O=z.labels,C=b.center,A=Math.abs(b.radius),F=M.connectorDistance||0,S=L.align,T=f.options.rtl,D=M.borderWidth,P=M.connectorWidth,m=x.radius||0,u=C-A-D/2+P/2,v=(u%1?1:.5)-(P%2?0:.5),I=k.styledMode,E=T||S==="left"?-F:F;S==="center"&&(E=0,M.connectorDistance=0,b.labelAttribs.align="center"),z.bubbleItems.push(k.circle(m,C+v,A).attr(I?{}:b.bubbleAttribs).addClass((I?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(M.className||"")).add(this.legendItem.symbol)),z.connectors.push(k.path(k.crispLine([["M",m,u],["L",m+E,u]],M.connectorWidth)).attr(I?{}:b.connectorAttribs).addClass((I?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(M.connectorClassName||"")).add(this.legendItem.symbol));let R=k.text(this.formatLabel(b)).attr(I?{}:b.labelAttribs).css(I?{}:L.style).addClass("highcharts-bubble-legend-labels "+(M.labels.className||"")).add(this.legendItem.symbol),j={x:m+E+M.labels.x,y:u+M.labels.y+.4*R.getBBox().height};R.attr(j),O.push(R),R.placed=!0,R.alignAttr=j}getMaxLabelSize(){let b,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),b=b?x.width>b.width?x:b:x}),b||{}}formatLabel(b){let x=this.options,f=x.labels.formatter,M=x.labels.format,{numberFormatter:L}=this.chart;return M?s.format(M,b):f?f.call(b):L(b.value,1)}hideOverlappingLabels(){let b=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(b.hideOverlappingLabels(f.labels),f.labels.forEach(function(M,L){M.newOpacity?M.newOpacity!==M.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let b=this.legend.bubbleLegend,x=b.chart.series,f=b.options.ranges,M,L,_=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(k){k.isBubble&&!k.ignoreSeries&&(L=k.zData.filter(g)).length&&(_=p(k.options.zMin,Math.min(_,Math.max(c(L),k.options.displayNegative===!1?k.options.zThreshold:-Number.MAX_VALUE))),w=p(k.options.zMax,Math.max(w,h(L))))}),M=_===w?[{value:w}]:[{value:_},{value:(_+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&M.reverse(),M.forEach(function(k,z){f&&f[z]&&(M[z]=d(f[z],k))}),M}predictBubbleSizes(){let b=this.chart,x=b.legend.options,f=x.floating,M=x.layout==="horizontal",L=M?b.legend.lastLineHeight:0,_=b.plotSizeX,w=b.plotSizeY,k=b.series[this.options.seriesIndex],z=k.getPxExtremes(),O=Math.ceil(z.minPxSize),C=Math.ceil(z.maxPxSize),A=Math.min(w,_),F,S=k.options.maxSize;return f||!/%$/.test(S)?F=C:(F=(A+L)*(S=parseFloat(S))/100/(S/100+1),(M&&w-F>=_||!M&&_-F>=w)&&(F=C)),[O,Math.ceil(F)]}updateRanges(b,x){let f=this.legend.options.bubbleLegend;f.minSize=b,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let b=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),b.render())}}}),e(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(i,s,r,o,a){let{setOptions:l}=r,{composed:h}=o,{addEvent:c,objectEach:g,pushUnique:d,wrap:p}=a;function y(_,w,k){let z,O,C,A=this.legend,F=b(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(z=A.bubbleLegend.options,O=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(O[0],O[1]),z.placed||(A.group.placed=!1,A.allItems.forEach(S=>{(C=S.legendItem||{}).group&&(C.group.translateY=void 0)})),A.render(),z.placed||(this.getMargins(),this.axes.forEach(function(S){S.visible&&S.render(),z.placed||(S.setScale(),S.updateNames(),g(S.ticks,function(T){T.isNew=!0,T.isNewLabel=!0}))}),this.getMargins()),z.placed=!0,_.call(this,w,k),A.bubbleLegend.correctSizes(),L(A,x(A))):(_.call(this,w,k),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function b(_){let w=_.series,k=0;for(;kO.height&&(O.height=w[S].itemHeight);O.step=F}return k}function f(_){let w=this.bubbleLegend,k=this.options,z=k.bubbleLegend,O=b(this.chart);w&&w.ranges&&w.ranges.length&&(z.ranges.length&&(z.autoRanges=!!z.ranges[0].autoRanges),this.destroyItem(w)),O>=0&&k.enabled&&z.enabled&&(z.seriesIndex=O,this.bubbleLegend=new s(z,this),this.bubbleLegend.addToLegend(_.allItems))}function M(_){let w;if(_.defaultPrevented)return!1;let k=_.legendItem,z=this.chart,O=k.visible;this&&this.bubbleLegend&&(k.visible=!O,k.ignoreSeries=O,w=b(z)>=0,this.bubbleLegend.visible!==w&&(this.update({bubbleLegend:{enabled:w}}),this.bubbleLegend.visible=w),k.visible=O)}function L(_,w){let k=_.allItems,z=_.options.rtl,O,C,A,F,S=0;k.forEach((T,D)=>{(F=T.legendItem||{}).group&&(O=F.group.translateX||0,C=F.y||0,((A=T.movementX)||z&&T.ranges)&&(A=z?O-T.options.maxSize/2:O+A,F.group.attr({translateX:A})),D>w[S].step&&S++,F.group.attr({translateY:Math.round(C+w[S].height/2)}),F.y=C+w[S].height/2)})}return{compose:function(_,w){d(h,"Series.BubbleLegend")&&(l({legend:{bubbleLegend:i}}),p(_.prototype,"drawChartBox",y),c(w,"afterGetAllItems",f),c(w,"itemClick",M))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:o}}}}=s,{extend:a}=r;class l extends o{haloPath(c){let g=(c&&this.marker&&this.marker.radius||0)+c;if(this.series.chart.inverted){let d=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-d[1]-g,y.len-d[0]-g,2*g,2*g)}return i.prototype.haloPath.call(this,g)}}return a(l.prototype,{ttBelow:!1}),l}),e(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(i,s,r,o,a,l){let{parse:h}=r,{composed:c,noop:g}=o,{series:d,seriesTypes:{column:{prototype:p},scatter:y}}=a,{addEvent:b,arrayMax:x,arrayMin:f,clamp:M,extend:L,isNumber:_,merge:w,pick:k,pushUnique:z}=l;function O(){let A=this.len,{coll:F,isXAxis:S,min:T}=this,D=S?"xData":"yData",P=(this.max||0)-(T||0),m=0,u=A,v=A/P,I;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,I=!0;let R=E[D];if(S&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),P>0){let j=R.length;for(;j--;)if(_(R[j])&&this.dataMin<=R[j]&&R[j]<=this.max){let G=E.radii&&E.radii[j]||0;m=Math.min((R[j]-T)*v-G,m),u=Math.max((R[j]-T)*v+G,u)}}}}),I&&P>0&&!this.logarithmic&&(u-=A,v*=(A+Math.max(0,m)-Math.min(u,A))/A,[["min","userMin",m],["max","userMax",u]].forEach(E=>{k(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/v)})))}class C extends y{static compose(F,S,T){i.compose(S,T),z(c,"Series.Bubble")&&b(F,"foundExtremes",O)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let W=(G.onPoint||G).getZExtremes();W&&(R=Math.min(k(R,W.zMin),W.zMin),j=Math.max(k(j,W.zMax),W.zMax),E=!0)}}),E?(u={zMin:R,zMax:j},this.chart.bubbleZExtremes=u):u={zMin:0,zMax:0}}for(P=0,D=F.length;P0&&(R=(P-F)/E)}return v&&R>=0&&(R=Math.sqrt(R)),Math.ceil(T+R*(D-T))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,S){let T=super.markerAttribs(F,S),{height:D=0,width:P=0}=T;return this.chart.inverted?L(T,{x:(F.plotX||0)-P/2,y:(F.plotY||0)-D/2}):T}pointAttribs(F,S){let T=this.options.marker.fillOpacity,D=d.prototype.pointAttribs.call(this,F,S);return T!==1&&(D.fill=h(D.fill).setOpacity(T).get("rgba")),D}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:S,radii:T}=this,{minPxSize:D}=this.getPxExtremes(),P=F.length;for(;P--;){let m=F[P],u=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(u)&&u>=D/2?(m.marker=L(m.marker,{radius:u,width:2*u,height:2*u}),m.dlBox={x:m.plotX-u,y:m.plotY-u,width:2*u,height:2*u}):(m.shapeArgs=m.plotY=m.dlBox=void 0,m.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),S=P=>{let m;return typeof P=="string"&&(m=/%$/.test(P),P=parseInt(P,10)),m?F*P/100:P},T=S(k(this.options.minSize,8)),D=Math.max(S(k(this.options.maxSize,"20%")),T);return{minPxSize:T,maxPxSize:D}}getZExtremes(){let F=this.options,S=(this.zData||[]).filter(_);if(S.length){let T=k(F.zMin,M(f(S),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),D=k(F.zMax,x(S));if(_(T)&&_(D))return{zMin:T,zMax:D}}}}return C.defaultOptions=w(y.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return _(F)?A(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(C.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),b(C,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),b(C,"remove",A=>{delete A.target.chart.bubbleZExtremes}),a.registerSeriesType("bubble",C),C}),e(t,"Series/MapBubble/MapBubblePoint.js",[t["Series/Bubble/BubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{map:{prototype:{pointClass:{prototype:o}}}}}=s,{extend:a}=r;class l extends i{isValid(){return typeof this.z=="number"}}return a(l.prototype,{applyOptions:o.applyOptions,getProjectedBounds:o.getProjectedBounds}),l}),e(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(i,s,r,o){let{seriesTypes:{map:{prototype:a},mappoint:{prototype:l}}}=r,{extend:h,merge:c}=o;class g extends i{constructor(){super(...arguments),this.clearBounds=a.clearBounds}searchPoint(p,y){return this.searchKDTree({plotX:p.chartX-this.chart.plotLeft,plotY:p.chartY-this.chart.plotTop},y,p)}translate(){l.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(p,y,b){super.updateParallelArrays.call(this,p,y,b);let x=this.processedXData,f=this.xData;x&&f&&(x.length=f.length)}}return g.defaultOptions=c(i.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h(g.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:a.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:s,processData:a.processData,projectPoint:l.projectPoint,kdAxisArray:["plotX","plotY"],setData:a.setData,setOptions:a.setOptions,updateData:a.updateData,useMapGeometry:!0,xyFromShape:!0}),r.registerSeriesType("mapbubble",g),g}),e(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:{prototype:{pointClass:r}}}=i.seriesTypes,{clamp:o,defined:a,extend:l,pick:h}=s;class c extends r{applyOptions(d,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(d,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let d=this.series,p=d.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=d.xAxis,f=d.yAxis,M=this.options.marker||d.options.marker,L=d.pointPlacementToXValue(),_=h(this.pointPadding,p.pointPadding,0),w={x1:o(Math.round(x.len-x.translate(this.x-y,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:o(Math.round(x.len-x.translate(this.x+y,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:o(Math.round(f.translate(this.y-b,!1,!0,!1,!0)),-f.len,2*f.len),y2:o(Math.round(f.translate(this.y+b,!1,!0,!1,!0)),-f.len,2*f.len)};for(let k of[["width","x"],["height","y"]]){let z=k[0],O=k[1],C=O+"1",A=O+"2",F=Math.abs(w[C]-w[A]),S=M&&M.lineWidth||0,T=Math.abs(w[C]+w[A])/2,D=M&&M[z];if(a(D)&&D"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),e(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{doc:r}=i,{defined:o,pick:a}=s;return{colorFromPoint:function(l,h){let c=h.series.colorAxis;if(c){let g=c.toColor(l||0,h).split(")")[0].split("(")[1].split(",").map(d=>a(parseFloat(d),parseInt(d,10)));return g[3]=255*a(g[3],1),o(l)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(l){let{canvas:h,context:c}=l;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(l.canvas=r.createElement("canvas"),l.context=l.canvas.getContext("2d",{willReadFrequently:!0})||void 0,l.context)}}}),e(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(i,s,r,o,a,l,h,c){let{series:g,seriesTypes:{column:d,scatter:p}}=a,{prototype:{symbols:y}}=l,{addEvent:b,extend:x,fireEvent:f,isNumber:M,merge:L,pick:_}=h,{colorFromPoint:w,getContext:k}=c;class z extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let C=this,A=C.options,F=A.interpolation,S=A.marker||{};if(F){let{image:T,chart:D,xAxis:P,yAxis:m}=C,{reversed:u=!1,len:v}=P,{reversed:I=!1,len:E}=m,R={width:v,height:E};if(!T||C.isDirtyData||C.isDirtyCanvas){let j=k(C),{canvas:G,options:{colsize:W=1,rowsize:N=1},points:B,points:{length:X}}=C,V=D.colorAxis&&D.colorAxis[0];if(G&&j&&V){let{min:H,max:K}=P.getExtremes(),{min:U,max:Y}=m.getExtremes(),Z=K-H,q=Y-U,J=Math.round(Z/W/8*8),Q=Math.round(q/N/8*8),[$,tt]=[[J,J/Z,u,"ceil"],[Q,Q/q,!I,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),it=G.width=J+1,et=it*(G.height=Q+1),st=(X-1)/et,rt=new Uint8ClampedArray(4*et),nt=(ot,at)=>4*Math.ceil(it*tt(at-U)+$(ot-H));C.buildKDTree();for(let ot=0;ot{T.graphic&&(T.graphic[C.chart.styledMode?"css":"animate"](C.colorAttribs(T)),T.value===null&&T.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:C,dataMax:A}=g.prototype.getExtremes.call(this,this.valueData);return M(C)&&(this.valueMin=C),M(A)&&(this.valueMax=A),g.prototype.getExtremes.call(this)}getValidPoints(C,A){return g.prototype.getValidPoints.call(this,C,A,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let C=this.options;C.pointRange=_(C.pointRange,C.colsize||1),this.yAxis.axisPointRange=C.rowsize||1,y.ellipse=y.circle,C.marker&&M(C.borderRadius)&&(C.marker.r=C.borderRadius)}markerAttribs(C,A){let F=C.shapeArgs||{};if(C.hasImage)return{x:C.plotX,y:C.plotY};if(A&&A!=="normal"){let S=C.options.marker||{},T=this.options.marker||{},D=T.states&&T.states[A]||{},P=S.states&&S.states[A]||{},m=(P.width||D.width||F.width||0)+(P.widthPlus||D.widthPlus||0),u=(P.height||D.height||F.height||0)+(P.heightPlus||D.heightPlus||0);return{x:(F.x||0)+((F.width||0)-m)/2,y:(F.y||0)+((F.height||0)-u)/2,width:m,height:u}}return F}pointAttribs(C,A){let F=g.prototype.pointAttribs.call(this,C,A),S=this.options||{},T=this.chart.options.plotOptions||{},D=T.series||{},P=T.heatmap||{},m=C&&C.options.borderColor||S.borderColor||P.borderColor||D.borderColor,u=C&&C.options.borderWidth||S.borderWidth||P.borderWidth||D.borderWidth||F["stroke-width"];if(F.stroke=C&&C.marker&&C.marker.lineColor||S.marker&&S.marker.lineColor||m||this.color,F["stroke-width"]=u,A&&A!=="normal"){let v=L(S.states&&S.states[A],S.marker&&S.marker.states&&S.marker.states[A],C&&C.options.states&&C.options.states[A]||{});F.fill=v.color||i.parse(F.fill).brighten(v.brightness||0).get(),F.stroke=v.lineColor||F.stroke}return F}translate(){let{borderRadius:C,marker:A}=this.options,F=A&&A.symbol||"rect",S=y[F]?F:"rect",T=["circle","square"].indexOf(S)!==-1;if(!this.processedXData){let{xData:D,yData:P}=this.getProcessedData();this.processedXData=D,this.processedYData=P}for(let D of(this.generatePoints(),this.points)){let P=D.getCellAttributes(),m=Math.min(P.x1,P.x2),u=Math.min(P.y1,P.y2),v=Math.max(Math.abs(P.x2-P.x1),0),I=Math.max(Math.abs(P.y2-P.y1),0);if(D.hasImage=(D.marker&&D.marker.symbol||F||"").indexOf("url")===0,T){let E=Math.abs(v-I);m=Math.min(P.x1,P.x2)+(v{"use strict";(function(n){typeof lo=="object"&&lo.exports?(n.default=n,lo.exports=n):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Extensions/Pane/PaneComposition.js",[t["Core/Utilities.js"]],function(i){let{addEvent:s,correctFloat:r,defined:o,pick:a}=i;function l(p){let y,b=this;return p&&b.pane.forEach(x=>{h(p.chartX-b.plotLeft,p.chartY-b.plotTop,x.center)&&(y=x)}),y}function h(p,y,b,x,f){let M=!0,L=b[0],_=b[1],w=Math.sqrt(Math.pow(p-L,2)+Math.pow(y-_,2));if(o(x)&&o(f)){let k=Math.atan2(r(y-_,8),r(p-L,8));f!==x&&(M=x>f?k>=x&&k<=Math.PI||k<=f&&k>=-Math.PI:k>=x&&k<=r(f,8))}return w<=Math.ceil(b[2]/2)&&M}function c(p){this.polar&&(p.options.inverted&&([p.x,p.y]=[p.y,p.x]),p.isInsidePlot=this.pane.some(y=>h(p.x,p.y,y.center,y.axis&&y.axis.normalizedStartAngleRad,y.axis&&y.axis.normalizedEndAngleRad)))}function g(p){let y=this.chart;p.hoverPoint&&p.hoverPoint.plotX&&p.hoverPoint.plotY&&y.hoverPane&&!h(p.hoverPoint.plotX,p.hoverPoint.plotY,y.hoverPane.center)&&(p.hoverPoint=void 0)}function d(p){let y=this.chart;y.polar?(y.hoverPane=y.getHoverPane(p),p.filter=function(b){return b.visible&&!(!p.shared&&b.directTouch)&&a(b.options.enableMouseTracking,!0)&&(!y.hoverPane||b.xAxis.pane===y.hoverPane)}):y.hoverPane=void 0}return{compose:function(p,y){let b=p.prototype;b.getHoverPane||(b.collectionsWithUpdate.push("pane"),b.getHoverPane=l,s(p,"afterIsInsidePlot",c),s(y,"afterGetHoverData",g),s(y,"beforeGetHoverData",d))}}}),e(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%"}}}),e(t,"Extensions/Pane/Pane.js",[t["Series/CenteredUtilities.js"],t["Extensions/Pane/PaneComposition.js"],t["Extensions/Pane/PaneDefaults.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{extend:a,merge:l,splat:h}=o;class c{constructor(d,p){this.coll="pane",this.init(d,p)}init(d,p){this.chart=p,this.background=[],p.pane.push(this),this.setOptions(d)}setOptions(d){this.options=d=l(r.pane,this.chart.angular?{background:{}}:void 0,d)}render(){let d=this.options,p=this.chart.renderer;this.group||(this.group=p.g("pane-group").attr({zIndex:d.zIndex||0}).add()),this.updateCenter();let y=this.options.background;if(y){let b=Math.max((y=h(y)).length,this.background.length||0);for(let x=0;xP,w.y=w.high,w._plotY=w.plotY,w.plotY=D,F[_]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=k,T?z.align||(z.align=k?"right":"left"):z.verticalAlign||(z.verticalAlign=k?"top":"bottom")}for(this.options.dataLabels=z,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),_=A;_--;)(w=C[_])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=F[_],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(O.enabled||this.hasDataLabels?.()){for(_=A;_--;)if(w=C[_]){let{plotHigh:D=0,plotLow:P=0}=w;k=O.inside?DP,w.below=!k,T?O.align||(O.align=k?"left":"right"):O.verticalAlign||(O.verticalAlign=k?"bottom":"top")}this.options.dataLabels=O,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(z.enabled)for(_=A;_--;)(w=C[_])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(D){return!!D}));this.options.dataLabels=S}}alignDataLabel(){c.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let _={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:w,lowMarker:k}}=this;this.options.marker=f(w,k),k.symbol&&(this.symbol=k.symbol)}return _}restoreMarkerSettings(_){this.options.marker=_.marker,this.symbol=_.symbol}drawPoints(){let _,w,k=this.points.length,z=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(z),_=0;_=0&&w.plotY<=this.yAxis.len&&w.plotX>=0&&w.plotX<=this.xAxis.len),_++;for(h.drawPoints.apply(this,arguments),_=0;_\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(M,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(L=>{let _=L.high,w=L.plotY;L.isNull?L.plotY=void 0:(L.plotLow=w,L.plotHigh=b(_)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(_):_,!1,!0,void 0,!0):void 0,this.dataModify&&(L.yBottom=L.plotHigh))})},{order:0}),g(M,"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 _=L.pos(!1,L.plotLow),w=L.pos(!1,L.plotHigh);_&&w&&(_[0]=(_[0]+w[0])/2,_[1]=(_[1]+w[1])/2),L.tooltipPos=_}})},{order:3}),p(M.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:i,pointValKey:"low",setStackedPoints:a}),r.registerSeriesType("arearange",M),M}),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{spline:{prototype:o}}=s.seriesTypes,{merge:a,extend:l}=r;class h extends i{}return h.defaultOptions=a(i.defaultOptions),l(h.prototype,{getPointSpline:o.getPointSpline}),s.registerSeriesType("areasplinerange",h),h}),e(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}}),e(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(i,s,r,o,a){let{noop:l}=r,{crisp:h,extend:c,merge:g,pick:d}=a;class p extends s{pointAttribs(){return{}}translate(){let b=this.yAxis,x=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(f){x.forEach(function(M){f[M]!==null&&(f[M+"Plot"]=b.translate(f[M],0,1,0,1))}),f.plotHigh=f.highPlot})}drawPoints(){let b,x,f,M,L,_,w,k,z,O,C,A,F,S=this.points,T=this.options,D=this.chart,P=D.renderer,m=this.doQuartiles!==!1,u=this.options.whiskerLength;for(let v of S){let I=(k=v.graphic)?"animate":"attr",E=v.shapeArgs,R={},j={},G={},W={},N=v.color||this.color;if(v.plotY!==void 0){let B;z=E.width,C=(O=E.x)+z,A=z/2,b=m?v.q1Plot:v.lowPlot,x=m?v.q3Plot:v.lowPlot,f=v.highPlot,M=v.lowPlot,k||(v.graphic=k=P.g("point").add(this.group),v.stem=P.path().addClass("highcharts-boxplot-stem").add(k),u&&(v.whiskers=P.path().addClass("highcharts-boxplot-whisker").add(k)),m&&(v.box=P.path(w).addClass("highcharts-boxplot-box").add(k)),v.medianShape=P.path(_).addClass("highcharts-boxplot-median").add(k)),D.styledMode||(j.stroke=v.stemColor||T.stemColor||N,j["stroke-width"]=d(v.stemWidth,T.stemWidth,T.lineWidth),j.dashstyle=v.stemDashStyle||T.stemDashStyle||T.dashStyle,v.stem.attr(j),u&&(G.stroke=v.whiskerColor||T.whiskerColor||N,G["stroke-width"]=d(v.whiskerWidth,T.whiskerWidth,T.lineWidth),G.dashstyle=v.whiskerDashStyle||T.whiskerDashStyle||T.dashStyle,v.whiskers.attr(G)),m&&(R.fill=v.fillColor||T.fillColor||N,R.stroke=T.lineColor||N,R["stroke-width"]=T.lineWidth||0,R.dashstyle=v.boxDashStyle||T.boxDashStyle||T.dashStyle,v.box.attr(R)),W.stroke=v.medianColor||T.medianColor||N,W["stroke-width"]=d(v.medianWidth,T.medianWidth,T.lineWidth),W.dashstyle=v.medianDashStyle||T.medianDashStyle||T.dashStyle,v.medianShape.attr(W));let X=h((v.plotX||0)+(this.pointXOffset||0)+(this.barW||0)/2,v.stem.strokeWidth());if(B=[["M",X,x],["L",X,f],["M",X,b],["L",X,M]],v.stem[I]({d:B}),m){let V=v.box.strokeWidth();b=h(b,V),x=h(x,V),B=[["M",O=h(O,V),x],["L",O,b],["L",C=h(C,V),b],["L",C,x],["L",O,x],["Z"]],v.box[I]({d:B})}if(u){let V=v.whiskers.strokeWidth();f=h(v.highPlot,V),M=h(v.lowPlot,V),B=[["M",h(X-(F=typeof u=="string"&&/%$/.test(u)?A*parseFloat(u)/100:Number(u)/2)),f],["L",h(X+F),f],["M",h(X-F),M],["L",h(X+F),M]],v.whiskers[I]({d:B})}B=[["M",O,L=h(v.medianPlot,v.medianShape.strokeWidth())],["L",C,L]],v.medianShape[I]({d:B})}}}toYData(b){return[b.low,b.q1,b.median,b.q3,b.high]}}return p.defaultOptions=g(s.defaultOptions,i),c(p.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:l,setStackedPoints:l}),o.registerSeriesType("boxplot",p),p}),e(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}}),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{parse:a}=i,{noop:l}=r,{arrayMax:h,arrayMin:c,isNumber:g,merge:d,pick:p,stableSort:y}=o;return class{constructor(b,x){this.setState=l,this.init(b,x)}init(b,x){this.options=b,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(b){b.splice(this.options.legendIndex,0,this)}drawLegendSymbol(b){let x,f=p(b.options.itemDistance,20),M=this.legendItem||{},L=this.options,_=L.ranges,w=L.connectorDistance;if(!_||!_.length||!g(_[0].value)){b.options.bubbleLegend.autoRanges=!0;return}y(_,function(C,A){return A.value-C.value}),this.ranges=_,this.setOptions(),this.render();let k=this.getMaxLabelSize(),z=this.ranges[0].radius,O=2*z;x=(x=w-z+k.width)>0?x:0,this.maxLabel=k,this.movementX=L.labels.align==="left"?x:0,M.labelWidth=O+x+f,M.labelHeight=O+k.height/2}setOptions(){let b=this.ranges,x=this.options,f=this.chart.series[x.seriesIndex],M=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},_={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},k=f.options.marker.fillOpacity,z=this.chart.styledMode;b.forEach(function(O,C){z||(L.stroke=p(O.borderColor,x.borderColor,f.color),L.fill=p(O.color,x.color,k!==1?a(f.color).setOpacity(k).get("rgba"):f.color),_.stroke=p(O.connectorColor,x.connectorColor,f.color)),b[C].radius=this.getRangeRadius(O.value),b[C]=d(b[C],{center:b[0].radius-b[C].radius+M}),z||d(!0,b[C],{bubbleAttribs:d(L),connectorAttribs:d(_),labelAttribs:w})},this)}getRangeRadius(b){let x=this.options,f=this.options.seriesIndex,M=this.chart.series[f],L=x.ranges[0].value,_=x.ranges[x.ranges.length-1].value,w=x.minSize,k=x.maxSize;return M.getRadius.call(this,_,L,w,k,b)}render(){let b=this.legendItem||{},x=this.chart.renderer,f=this.options.zThreshold;for(let M of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),b.symbol=x.g("bubble-legend"),b.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),b.symbol.translateX=0,b.symbol.translateY=0,b.symbol.add(b.label),b.label.add(b.group),this.ranges))M.value>=f&&this.renderRange(M);this.hideOverlappingLabels()}renderRange(b){let x=this.ranges[0],f=this.legend,M=this.options,L=M.labels,_=this.chart,w=_.series[M.seriesIndex],k=_.renderer,z=this.symbols,O=z.labels,C=b.center,A=Math.abs(b.radius),F=M.connectorDistance||0,S=L.align,T=f.options.rtl,D=M.borderWidth,P=M.connectorWidth,m=x.radius||0,u=C-A-D/2+P/2,v=(u%1?1:.5)-(P%2?0:.5),I=k.styledMode,E=T||S==="left"?-F:F;S==="center"&&(E=0,M.connectorDistance=0,b.labelAttribs.align="center"),z.bubbleItems.push(k.circle(m,C+v,A).attr(I?{}:b.bubbleAttribs).addClass((I?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(M.className||"")).add(this.legendItem.symbol)),z.connectors.push(k.path(k.crispLine([["M",m,u],["L",m+E,u]],M.connectorWidth)).attr(I?{}:b.connectorAttribs).addClass((I?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(M.connectorClassName||"")).add(this.legendItem.symbol));let R=k.text(this.formatLabel(b)).attr(I?{}:b.labelAttribs).css(I?{}:L.style).addClass("highcharts-bubble-legend-labels "+(M.labels.className||"")).add(this.legendItem.symbol),j={x:m+E+M.labels.x,y:u+M.labels.y+.4*R.getBBox().height};R.attr(j),O.push(R),R.placed=!0,R.alignAttr=j}getMaxLabelSize(){let b,x;return this.symbols.labels.forEach(function(f){x=f.getBBox(!0),b=b?x.width>b.width?x:b:x}),b||{}}formatLabel(b){let x=this.options,f=x.labels.formatter,M=x.labels.format,{numberFormatter:L}=this.chart;return M?s.format(M,b):f?f.call(b):L(b.value,1)}hideOverlappingLabels(){let b=this.chart,x=this.options.labels.allowOverlap,f=this.symbols;!x&&f&&(b.hideOverlappingLabels(f.labels),f.labels.forEach(function(M,L){M.newOpacity?M.newOpacity!==M.oldOpacity&&f.connectors[L].show():f.connectors[L].hide()}))}getRanges(){let b=this.legend.bubbleLegend,x=b.chart.series,f=b.options.ranges,M,L,_=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(k){k.isBubble&&!k.ignoreSeries&&(L=k.zData.filter(g)).length&&(_=p(k.options.zMin,Math.min(_,Math.max(c(L),k.options.displayNegative===!1?k.options.zThreshold:-Number.MAX_VALUE))),w=p(k.options.zMax,Math.max(w,h(L))))}),M=_===w?[{value:w}]:[{value:_},{value:(_+w)/2},{value:w,autoRanges:!0}],f.length&&f[0].radius&&M.reverse(),M.forEach(function(k,z){f&&f[z]&&(M[z]=d(f[z],k))}),M}predictBubbleSizes(){let b=this.chart,x=b.legend.options,f=x.floating,M=x.layout==="horizontal",L=M?b.legend.lastLineHeight:0,_=b.plotSizeX,w=b.plotSizeY,k=b.series[this.options.seriesIndex],z=k.getPxExtremes(),O=Math.ceil(z.minPxSize),C=Math.ceil(z.maxPxSize),A=Math.min(w,_),F,S=k.options.maxSize;return f||!/%$/.test(S)?F=C:(F=(A+L)*(S=parseFloat(S))/100/(S/100+1),(M&&w-F>=_||!M&&_-F>=w)&&(F=C)),[O,Math.ceil(F)]}updateRanges(b,x){let f=this.legend.options.bubbleLegend;f.minSize=b,f.maxSize=x,f.ranges=this.getRanges()}correctSizes(){let b=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),b.render())}}}),e(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(i,s,r,o,a){let{setOptions:l}=r,{composed:h}=o,{addEvent:c,objectEach:g,pushUnique:d,wrap:p}=a;function y(_,w,k){let z,O,C,A=this.legend,F=b(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(z=A.bubbleLegend.options,O=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(O[0],O[1]),z.placed||(A.group.placed=!1,A.allItems.forEach(S=>{(C=S.legendItem||{}).group&&(C.group.translateY=void 0)})),A.render(),z.placed||(this.getMargins(),this.axes.forEach(function(S){S.visible&&S.render(),z.placed||(S.setScale(),S.updateNames(),g(S.ticks,function(T){T.isNew=!0,T.isNewLabel=!0}))}),this.getMargins()),z.placed=!0,_.call(this,w,k),A.bubbleLegend.correctSizes(),L(A,x(A))):(_.call(this,w,k),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function b(_){let w=_.series,k=0;for(;kO.height&&(O.height=w[S].itemHeight);O.step=F}return k}function f(_){let w=this.bubbleLegend,k=this.options,z=k.bubbleLegend,O=b(this.chart);w&&w.ranges&&w.ranges.length&&(z.ranges.length&&(z.autoRanges=!!z.ranges[0].autoRanges),this.destroyItem(w)),O>=0&&k.enabled&&z.enabled&&(z.seriesIndex=O,this.bubbleLegend=new s(z,this),this.bubbleLegend.addToLegend(_.allItems))}function M(_){let w;if(_.defaultPrevented)return!1;let k=_.legendItem,z=this.chart,O=k.visible;this&&this.bubbleLegend&&(k.visible=!O,k.ignoreSeries=O,w=b(z)>=0,this.bubbleLegend.visible!==w&&(this.update({bubbleLegend:{enabled:w}}),this.bubbleLegend.visible=w),k.visible=O)}function L(_,w){let k=_.allItems,z=_.options.rtl,O,C,A,F,S=0;k.forEach((T,D)=>{(F=T.legendItem||{}).group&&(O=F.group.translateX||0,C=F.y||0,((A=T.movementX)||z&&T.ranges)&&(A=z?O-T.options.maxSize/2:O+A,F.group.attr({translateX:A})),D>w[S].step&&S++,F.group.attr({translateY:Math.round(C+w[S].height/2)}),F.y=C+w[S].height/2)})}return{compose:function(_,w){d(h,"Series.BubbleLegend")&&(l({legend:{bubbleLegend:i}}),p(_.prototype,"drawChartBox",y),c(w,"afterGetAllItems",f),c(w,"itemClick",M))}}}),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:o}}}}=s,{extend:a}=r;class l extends o{haloPath(c){let g=(c&&this.marker&&this.marker.radius||0)+c;if(this.series.chart.inverted){let d=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-d[1]-g,y.len-d[0]-g,2*g,2*g)}return i.prototype.haloPath.call(this,g)}}return a(l.prototype,{ttBelow:!1}),l}),e(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(i,s,r,o,a,l){let{parse:h}=r,{composed:c,noop:g}=o,{series:d,seriesTypes:{column:{prototype:p},scatter:y}}=a,{addEvent:b,arrayMax:x,arrayMin:f,clamp:M,extend:L,isNumber:_,merge:w,pick:k,pushUnique:z}=l;function O(){let A=this.len,{coll:F,isXAxis:S,min:T}=this,D=S?"xData":"yData",P=(this.max||0)-(T||0),m=0,u=A,v=A/P,I;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(E=>{if(E.bubblePadding&&E.reserveSpace()){this.allowZoomOutside=!0,I=!0;let R=E[D];if(S&&((E.onPoint||E).getRadii(0,0,E),E.onPoint&&(E.radii=E.onPoint.radii)),P>0){let j=R.length;for(;j--;)if(_(R[j])&&this.dataMin<=R[j]&&R[j]<=this.max){let G=E.radii&&E.radii[j]||0;m=Math.min((R[j]-T)*v-G,m),u=Math.max((R[j]-T)*v+G,u)}}}}),I&&P>0&&!this.logarithmic&&(u-=A,v*=(A+Math.max(0,m)-Math.min(u,A))/A,[["min","userMin",m],["max","userMax",u]].forEach(E=>{k(this.options[E[0]],this[E[1]])===void 0&&(this[E[0]]+=E[2]/v)})))}class C extends y{static compose(F,S,T){i.compose(S,T),z(c,"Series.Bubble")&&b(F,"foundExtremes",O)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let W=(G.onPoint||G).getZExtremes();W&&(R=Math.min(k(R,W.zMin),W.zMin),j=Math.max(k(j,W.zMax),W.zMax),E=!0)}}),E?(u={zMin:R,zMax:j},this.chart.bubbleZExtremes=u):u={zMin:0,zMax:0}}for(P=0,D=F.length;P0&&(R=(P-F)/E)}return v&&R>=0&&(R=Math.sqrt(R)),Math.ceil(T+R*(D-T))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,S){let T=super.markerAttribs(F,S),{height:D=0,width:P=0}=T;return this.chart.inverted?L(T,{x:(F.plotX||0)-P/2,y:(F.plotY||0)-D/2}):T}pointAttribs(F,S){let T=this.options.marker.fillOpacity,D=d.prototype.pointAttribs.call(this,F,S);return T!==1&&(D.fill=h(D.fill).setOpacity(T).get("rgba")),D}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:S,radii:T}=this,{minPxSize:D}=this.getPxExtremes(),P=F.length;for(;P--;){let m=F[P],u=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(u)&&u>=D/2?(m.marker=L(m.marker,{radius:u,width:2*u,height:2*u}),m.dlBox={x:m.plotX-u,y:m.plotY-u,width:2*u,height:2*u}):(m.shapeArgs=m.plotY=m.dlBox=void 0,m.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),S=P=>{let m;return typeof P=="string"&&(m=/%$/.test(P),P=parseInt(P,10)),m?F*P/100:P},T=S(k(this.options.minSize,8)),D=Math.max(S(k(this.options.maxSize,"20%")),T);return{minPxSize:T,maxPxSize:D}}getZExtremes(){let F=this.options,S=(this.zData||[]).filter(_);if(S.length){let T=k(F.zMin,M(f(S),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),D=k(F.zMax,x(S));if(_(T)&&_(D))return{zMin:T,zMax:D}}}}return C.defaultOptions=w(y.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return _(F)?A(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(C.prototype,{alignDataLabel:p.alignDataLabel,applyZones:g,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),b(C,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),b(C,"remove",A=>{delete A.target.chart.bubbleZExtremes}),a.registerSeriesType("bubble",C),C}),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{seriesTypes:{column:{prototype:{pointClass:{prototype:r}}},arearange:{prototype:{pointClass:o}}}}=i,{extend:a,isNumber:l}=s;class h extends o{isValid(){return l(this.low)}}return a(h.prototype,{setState:r.setState}),h}),e(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=s,{seriesTypes:{arearange:l,column:h,column:{prototype:c}}}=r,{addEvent:g,clamp:d,extend:p,isNumber:y,merge:b,pick:x}=o;class f extends l{setOptions(){return b(!0,arguments[0],{stacking:void 0}),l.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,_,w,k,z=this.yAxis,O=this.xAxis,C=O.startAngleRad,A=this.chart,F=this.xAxis.isRadial,S=Math.max(A.chartWidth,A.chartHeight)+999;this.points.forEach(T=>{let D=T.shapeArgs||{},P=this.options.minPointLength,m=T.plotY,u=z.translate(T.high,0,1,0,1);if(y(u)&&y(m))if(T.plotHigh=d(u,-S,S),T.plotLow=d(m,-S,S),k=T.plotHigh,Math.abs(L=x(T.rectPlotY,T.plotY)-T.plotHigh)\u25CF {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),e(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(i,s,r,o,a){let{arearange:l}=o.seriesTypes,{addEvent:h,merge:c,extend:g}=a;class d extends i{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||s.prototype.getColumnMetrics.call(this)}drawDataLabels(){let y=this.pointValKey;if(l)for(let b of(l.prototype.drawDataLabels.call(this),this.points))b.y=b[y]}toYData(y){return[y.low,y.high]}}return d.defaultOptions=c(i.defaultOptions,r),h(d,"afterTranslate",function(){for(let p of this.points)p.plotLow=p.plotY},{order:0}),g(d.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),o.registerSeriesType("errorbar",d),d}),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{series:{prototype:{pointClass:s}}}=i;return class extends s{setState(r){this.state=r}}}),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=s,{series:l,seriesTypes:{column:h}}=r,{clamp:c,isNumber:g,extend:d,merge:p,pick:y,pInt:b,defined:x}=o;class f extends l{translate(){let L=this.yAxis,_=this.options,w=L.center;this.generatePoints(),this.points.forEach(k=>{let z=p(_.dial,k.dial),O=b(z.radius)*w[2]/200,C=b(z.baseLength)*O/100,A=b(z.rearLength)*O/100,F=z.baseWidth,S=z.topWidth,T=_.overshoot,D=L.startAngleRad+L.translate(k.y,void 0,void 0,void 0,!0);(g(T)||_.wrap===!1)&&(T=g(T)?T/180*Math.PI:0,D=c(D,L.startAngleRad-T,L.endAngleRad+T)),D=180*D/Math.PI,k.shapeType="path";let P=z.path||[["M",-A,-F/2],["L",C,-F/2],["L",O,-S/2],["L",O,S/2],["L",C,F/2],["L",-A,F/2],["Z"]];k.shapeArgs={d:P,translateX:w[0],translateY:w[1],rotation:D},k.plotX=w[0],k.plotY=w[1],x(k.y)&&L.max-L.min&&(k.percentage=(k.y-L.min)/(L.max-L.min)*100)})}drawPoints(){let L=this,_=L.chart,w=L.yAxis.center,k=L.pivot,z=L.options,O=z.pivot,C=_.renderer;L.points.forEach(A=>{let F=A.graphic,S=A.shapeArgs,T=S.d,D=p(z.dial,A.dial);F?(F.animate(S),S.d=T):A.graphic=C[A.shapeType](S).addClass("highcharts-dial").add(L.group),_.styledMode||A.graphic[F?"animate":"attr"]({stroke:D.borderColor,"stroke-width":D.borderWidth,fill:D.backgroundColor})}),k?k.animate({translateX:w[0],translateY:w[1]}):O&&(L.pivot=C.circle(0,0,O.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(w[0],w[1]).add(L.group),_.styledMode||L.pivot.attr({fill:O.backgroundColor,stroke:O.borderColor,"stroke-width":O.borderWidth}))}animate(L){let _=this;L||_.points.forEach(w=>{let k=w.graphic;k&&(k.attr({rotation:180*_.yAxis.startAngleRad/Math.PI}),k.animate({rotation:w.shapeArgs.rotation},_.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),l.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(L,_){l.prototype.setData.call(this,L,!1),this.processData(),this.generatePoints(),y(_,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return f.defaultOptions=p(l.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}),d(f.prototype,{angular:!0,directTouch:!0,drawGraph:a,drawTracker:h.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:i,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",f),f}),e(t,"Series/DragNodesComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{composed:r}=i,{addEvent:o,pushUnique:a}=s;function l(){let h,c,g,d=this;d.container&&(h=o(d.container,"mousedown",p=>{let y=d.hoverPoint;y&&y.series&&y.series.hasDraggableNodes&&y.series.options.draggable&&(y.series.onMouseDown(y,p),c=o(d.container,"mousemove",b=>y&&y.series&&y.series.onMouseMove(y,b)),g=o(d.container.ownerDocument,"mouseup",b=>(c(),g(),y&&y.series&&y.series.onMouseUp(y,b))))})),o(d,"destroy",function(){h()})}return{compose:function(h){a(r,"DragNodes")&&o(h,"load",l)},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,d,p=this.chart,y=p.pointer?.normalize(c)||c,b=h.fixedPosition.chartX-y.chartX,x=h.fixedPosition.chartY-y.chartY,f=p.graphLayoutsLookup;(Math.abs(b)>5||Math.abs(x)>5)&&(g=h.fixedPosition.plotX-b,d=h.fixedPosition.plotY-x,p.isInsidePlot(g,d)&&(h.plotX=g,h.plotY=d,h.hasDragged=!0,this.redrawHalo(h),f.forEach(M=>{M.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)})}}}),e(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r){let{setAnimation:o}=i,{composed:a}=s,{addEvent:l,pushUnique:h}=r;function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(y=>{y.updateSimulation()}),this.redraw())}function g(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(y=>{y.updateSimulation(!1)}),this.redraw())}function d(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(y=>{y.stop()})}function p(){let y,b=!1,x=f=>{f.maxIterations--&&isFinite(f.temperature)&&!f.isStable()&&!f.enableSimulation&&(f.beforeStep&&f.beforeStep(),f.step(),y=!1,b=!0)};if(this.graphLayoutsLookup){for(o(!1,this),this.graphLayoutsLookup.forEach(f=>f.start());!y;)y=!0,this.graphLayoutsLookup.forEach(x);b&&this.series.forEach(f=>{f&&f.layout&&f.render()})}}return{compose:function(y){h(a,"GraphLayout")&&(l(y,"afterPrint",c),l(y,"beforePrint",g),l(y,"predraw",d),l(y,"render",p))},integrations:{},layouts:{}}}),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s,r){let{seriesTypes:{bubble:{prototype:{pointClass:o}}}}=r;return class extends o{destroy(){return this.series?.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),s.prototype.destroy.apply(this,arguments)}firePointEvent(){let a=this.series.options;if(this.isParentNode&&a.parentNode){let l=a.allowPointSelect;a.allowPointSelect=a.parentNode.allowPointSelect,s.prototype.firePointEvent.apply(this,arguments),a.allowPointSelect=l}else s.prototype.firePointEvent.apply(this,arguments)}select(){let a=this.series.chart;this.isParentNode?(a.getSelectedPoints=a.getSelectedParentNodes,s.prototype.select.apply(this,arguments),a.getSelectedPoints=i.prototype.getSelectedPoints):s.prototype.select.apply(this,arguments)}}}),e(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(i){let{isNumber:s}=i;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:o}=this.point;return s(o)?r(o,-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}}}),e(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(i,s,r){let o=i.getMass(),a=-r.x*s*this.diffTemperature,l=-r.y*s*this.diffTemperature;i.fromNode.fixedPosition||(i.fromNode.plotX-=a*o.fromNode/i.fromNode.degree,i.fromNode.plotY-=l*o.fromNode/i.fromNode.degree),i.toNode.fixedPosition||(i.toNode.plotX+=a*o.toNode/i.toNode.degree,i.toNode.plotY+=l*o.toNode/i.toNode.degree)},attractiveForceFunction:function(i,s){return(s-i)/i},barycenter:function(){let i=this.options.gravitationalConstant||0,s=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*i,r=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*i;this.nodes.forEach(function(o){o.fixedPosition||(o.plotX-=s/o.mass/o.degree,o.plotY-=r/o.mass/o.degree)})},getK:function(i){return Math.pow(i.box.width*i.box.height/i.nodes.length,.5)},integrate:function(i,s){let r=-i.options.friction,o=i.options.maxSpeed,a=s.prevX,l=s.prevY,h=(s.plotX+s.dispX-a)*r,c=(s.plotY+s.dispY-l)*r,g=Math.abs,d=g(h)/(h||1),p=g(c)/(c||1),y=d*Math.min(o,Math.abs(h)),b=p*Math.min(o,Math.abs(c));s.prevX=s.plotX+s.dispX,s.prevY=s.plotY+s.dispY,s.plotX+=y,s.plotY+=b,s.temperature=i.vectorLength({x:y,y:b})},repulsive:function(i,s,r){let o=s*this.diffTemperature/i.mass/i.degree;i.fixedPosition||(i.plotX+=r.x*o,i.plotY+=r.y*o)},repulsiveForceFunction:function(i,s){return(s-i)/i*(s>i?1:0)}}}),e(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(i,s){let{noop:r}=i;return{barycenter:function(){let o,a,l=this.options.gravitationalConstant,h=this.box,c=this.nodes;for(let g of c)this.options.splitSeries&&!g.isParentNode?(o=g.series.parentNode.plotX,a=g.series.parentNode.plotY):(o=h.width/2,a=h.height/2),g.fixedPosition||(g.plotX-=(g.plotX-o)*l/(g.mass*Math.sqrt(c.length)),g.plotY-=(g.plotY-a)*l/(g.mass*Math.sqrt(c.length)))},getK:r,integrate:s.integrate,repulsive:function(o,a,l,h){let c=a*this.diffTemperature/o.mass/o.degree,g=l.x*c,d=l.y*c;o.fixedPosition||(o.plotX+=g,o.plotY+=d),h.fixedPosition||(h.plotX-=g,h.plotY-=d)},repulsiveForceFunction:function(o,a,l,h){return Math.min(o,(l.marker.radius+h.marker.radius)/2)}}}),e(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(i,s,r,o){let a=i.getMass(),l=r.x/o*s,h=r.y/o*s;i.fromNode.fixedPosition||(i.fromNode.dispX-=l*a.fromNode/i.fromNode.degree,i.fromNode.dispY-=h*a.fromNode/i.fromNode.degree),i.toNode.fixedPosition||(i.toNode.dispX+=l*a.toNode/i.toNode.degree,i.toNode.dispY+=h*a.toNode/i.toNode.degree)},attractiveForceFunction:function(i,s){return i*i/s},barycenter:function(){let i=this.options.gravitationalConstant,s=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(o){if(!o.fixedPosition){let a=o.getDegree(),l=a*(1+a/2);o.dispX+=(s-o.plotX)*i*l/o.degree,o.dispY+=(r-o.plotY)*i*l/o.degree}})},getK:function(i){return Math.pow(i.box.width*i.box.height/i.nodes.length,.3)},integrate:function(i,s){s.dispX+=s.dispX*i.options.friction,s.dispY+=s.dispY*i.options.friction;let r=s.temperature=i.vectorLength({x:s.dispX,y:s.dispY});r!==0&&(s.plotX+=s.dispX/r*Math.min(Math.abs(s.dispX),i.temperature),s.plotY+=s.dispY/r*Math.min(Math.abs(s.dispY),i.temperature))},repulsive:function(i,s,r,o){i.dispX+=r.x/o*s/i.degree,i.dispY+=r.y/o*s/i.degree},repulsiveForceFunction:function(i,s){return s*s/i}}}),e(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){class i{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,o=this.box.height/2;this.nodes[0]=new i({left:this.box.left,top:this.box.top,width:r,height:o}),this.nodes[1]=new i({left:this.box.left+r,top:this.box.top,width:r,height:o}),this.nodes[2]=new i({left:this.box.left+r,top:this.box.top+o,width:r,height:o}),this.nodes[3]=new i({left:this.box.left,top:this.box.top+o,width:r,height:o})}getBoxPosition(r){let o=r.plotXthis.step())):(this.simulation=!1,this.series.forEach(M=>{p(M,"afterSimulation")}))}}stop(){this.simulation&&h.cancelAnimationFrame(this.simulation)}setArea(f,M,L,_){this.box={left:f,top:M,width:L,height:_}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(f,M){for(let L of f)M.indexOf(L)===-1&&M.push(L)}removeElementFromCollection(f,M){let L=M.indexOf(f);L!==-1&&M.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=y(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 o(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let f=this.options.initialPositions;if(d(f))for(let M of(f.call(this),this.nodes))g(M.prevX)||(M.prevX=M.plotX),g(M.prevY)||(M.prevY=M.plotY),M.dispX=0,M.dispY=0;else f==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let f,M=this.box,L=this.nodes,_=2*Math.PI/(L.length+1),w=L.filter(function(A){return A.linksTo.length===0}),k={},z=this.options.initialPositionRadius,O=A=>{for(let F of A.linksFrom||[])k[F.toNode.id]||(k[F.toNode.id]=!0,C.push(F.toNode),O(F.toNode))},C=[];for(let A of w)C.push(A),O(A);if(C.length)for(let A of L)C.indexOf(A)===-1&&C.push(A);else C=L;for(let A=0,F=C.length;A{let z=k*k/Math.PI;return z-Math.floor(z)};for(let k=0,z=L.length;kthis.barnesHutApproximation(f,M));else{let f,M,L;for(let _ of this.nodes)for(let w of this.nodes)_===w||_.fixedPosition||(L=this.getDistXY(_,w),(M=this.vectorLength(L))!==0&&(f=this.repulsiveForce(M,this.k),this.force("repulsive",_,f*w.mass,L,M)))}}attractiveForces(){let f,M,L;for(let _ of this.links)_.fromNode&&_.toNode&&(f=this.getDistXY(_.fromNode,_.toNode),(M=this.vectorLength(f))!==0&&(L=this.attractiveForce(M,this.k),this.force("attractive",_,L,f,M)))}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,M){let L=f.radius;f.plotX=c(f.plotX,M.left+L,M.width-L),f.plotY=c(f.plotY,M.top+L,M.height-L)}coolDown(f,M,L){return f-M*L}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let f=0;for(let M of this.nodes)f+=M.temperature;return f}vectorLength(f){return Math.sqrt(f.x*f.x+f.y*f.y)}getDistR(f,M){let L=this.getDistXY(f,M);return this.vectorLength(L)}getDistXY(f,M){let L=f.plotX-M.plotX,_=f.plotY-M.plotY;return{x:L,y:_,absX:Math.abs(L),absY:Math.abs(_)}}}return b}),e(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{addEvent:a,pick:l}=o;function h(){let d=this.series,p=[];return d.forEach(y=>{y.parentNode&&y.parentNode.selected&&p.push(y.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),i.integrations.packedbubble=s,i.layouts.packedbubble=g;let y=p.prototype;y.getSelectedParentNodes||(a(p,"beforeRedraw",c),y.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,y=this.nodes,b=2*Math.PI/(y.length+1),x=this.options.initialPositionRadius,f,M,L=0;for(let _ of y)this.options.splitSeries&&!_.isParentNode?(f=_.series.parentNode.plotX,M=_.series.parentNode.plotY):(f=p.width/2,M=p.height/2),_.plotX=_.prevX=l(_.plotX,f+x*Math.cos(_.index||L*b)),_.plotY=_.prevY=l(_.plotY,M+x*Math.sin(_.index||L*b)),_.dispX=0,_.dispY=0,L++}repulsiveForces(){let p,y,b,x=this,f=x.options.bubblePadding,M=x.nodes;M.forEach(L=>{L.degree=L.mass,L.neighbours=0,M.forEach(_=>{p=0,L!==_&&!L.fixedPosition&&(x.options.seriesInteraction||L.series===_.series)&&(b=x.getDistXY(L,_),(y=x.vectorLength(b)-(L.marker.radius+_.marker.radius+f))<0&&(L.degree+=.01,L.neighbours++,p=x.repulsiveForce(-y/Math.sqrt(L.neighbours),x.k,L,_)),x.force("repulsive",L,p*_.mass,b,_,y))})})}applyLimitBox(p,y){let b,x;this.options.splitSeries&&!p.isParentNode&&this.options.parentNodeLimit&&(b=this.getDistXY(p,p.series.parentNode),(x=p.series.parentNodeRadius-p.marker.radius-this.vectorLength(b))<0&&x>-2*p.marker.radius&&(p.plotX-=.01*b.x,p.plotY-=.01*b.y)),super.applyLimitBox(p,y)}}return i.layouts.packedbubble=g,g}),e(t,"Series/SimulationSeriesUtilities.js",[t["Core/Utilities.js"],t["Core/Animation/AnimationUtilities.js"]],function(i,s){let{merge:r,syncTimeout:o}=i,{animObject:a}=s;return{initDataLabels:function(){let l=this.options.dataLabels;if(!this.dataLabelsGroup){let h=this.initDataLabelsGroup();return!this.chart.styledMode&&l?.style&&h.css(l.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 l=this.options.dataLabels;l?.defer&&this.options.layoutAlgorithm?.enableSimulation?o(()=>{this.deferDataLabels=!1},l?a(l.animation).defer:0):this.deferDataLabels=!1}}}),e(t,"Extensions/TextPath.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{deg2rad:r}=i,{addEvent:o,merge:a,uniqueKey:l,defined:h,extend:c}=s;function g(y,b){b=a(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);let x=this.renderer.url,f=this.text||this,M=f.textPath,{attributes:L,enabled:_}=b;if(y=y||M&&M.path,M&&M.undo(),y&&_){let w=o(f,"afterModifyTree",k=>{if(y&&_){let z=y.attr("id");z||y.attr("id",z=l());let O={x:0,y:0};h(L.dx)&&(O.dx=L.dx,delete L.dx),h(L.dy)&&(O.dy=L.dy,delete L.dy),f.attr(O),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let C=k.nodes.slice(0);k.nodes.length=0,k.nodes[0]={tagName:"textPath",attributes:c(L,{"text-anchor":L.textAnchor,href:`${x}#${z}`}),children:C}}});f.textPath={path:y,undo:w}}else f.attr({dx:0,dy:0}),delete f.textPath;return this.added&&(f.textCache="",this.renderer.buildText(f)),this}function d(y){let b=y.bBox,x=this.element?.querySelector("textPath");if(x){let f=[],{b:M,h:L}=this.renderer.fontMetrics(this.element),_=L-M,w=RegExp('(|]*>|<\\/tspan>)',"g"),k=x.innerHTML.replace(w,"").split(/]*>/),z=k.length,O=(C,A)=>{let{x:F,y:S}=A,T=(x.getRotationOfChar(C)-90)*r,D=Math.cos(T),P=Math.sin(T);return[[F-_*D,S-_*P],[F+M*D,S+M*P]]};for(let C=0,A=0;A{j.mass=2,j.degree=1,j.collisionNmb=1}),R.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),R.addElementsToCollection([this],R.series),R.addElementsToCollection(this.points,R.nodes)}addSeriesLayout(){let m=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},u=m.type||"packedbubble",v=this.chart.graphLayoutsStorage,I=this.chart.graphLayoutsLookup,E=S(m,m.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),R=v[u+"-series"];R||(v[u+"-series"]=R=new r.layouts[u],R.init(E),I.splice(R.index,0,R)),this.parentNodeLayout=R,this.createParentNodes()}calculateParentRadius(){let m=this.seriesBox();this.parentNodeRadius=k(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,m?Math.max(Math.sqrt(Math.pow(m.width,2)+Math.pow(m.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 m=this.chart.series,u=this.options.zMin,v=this.options.zMax,I=1/0,E=-1/0;return u&&v?[u,v]:(m.forEach(R=>{R.yData.forEach(j=>{z(j)&&(j>E&&(E=j),j{this.parentNodeMass+=Math.PI*Math.pow(G.marker.radius,2)}),this.calculateParentRadius(),v.nodes.forEach(G=>{G.seriesIndex===this.index&&(E=!0)}),v.setArea(0,0,u.plotWidth,u.plotHeight),E||(R||(R=new m(this,{mass:this.parentNodeRadius/2,marker:j,dataLabels:{inside:!1},states:{normal:{marker:j},hover:{marker:j}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(R.plotX=this.parentNode.plotX,R.plotY=this.parentNode.plotY),this.parentNode=R,v.addElementsToCollection([this],v.series),v.addElementsToCollection([R],v.nodes))}deferLayout(){let m=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),m.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(m=>{m.removeElementFromCollection(this,m.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),f.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(f.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",f.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let m=this.chart,u=this.layout.options.parentNodeOptions.marker,v={fill:u.fillColor||b(this.color).brighten(.4).get(),opacity:u.fillOpacity,stroke:u.lineColor||this.color,"stroke-width":T(u.lineWidth,this.options.lineWidth)},I={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,m.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&z(this.parentNode.plotX)&&z(this.parentNode.plotY)&&z(this.parentNodeRadius)&&(I=S({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},v),this.parentNode.graphic||(this.graph=this.parentNode.graphic=m.renderer.symbol(v.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(I))}drawTracker(){let m,u=this.parentNode;super.drawTracker(),u&&(m=A(u.dataLabels)?u.dataLabels:u.dataLabel?[u.dataLabel]:[],u.graphic&&(u.graphic.element.point=u),m.forEach(v=>{(v.div||v.element).point=u}))}getPointRadius(){let m,u,v,I,E=this.chart,R=E.plotWidth,j=E.plotHeight,G=this.options,W=G.useSimulation,N=Math.min(R,j),B={},X=[],V=E.allDataPoints||[],H=V.length;["minSize","maxSize"].forEach(U=>{let Y=parseInt(G[U],10),Z=/%$/.test(G[U]);B[U]=Z?N*Y/100:Y*Math.sqrt(H)}),E.minRadius=m=B.minSize/Math.sqrt(H),E.maxRadius=u=B.maxSize/Math.sqrt(H);let K=W?this.calculateZExtremes():[m,u];V.forEach((U,Y)=>{v=W?k(U[2],K[0],K[1]):U[2],(I=this.getRadius(K[0],K[1],m,u,v))===0&&(I=null),V[Y][2]=I,X.push(I)}),this.radii=X}init(){return f.init.apply(this,arguments),_.call(this),this.eventsToUnbind.push(w(this,"updatedData",function(){this.chart.series.forEach(m=>{m.type===this.type&&(m.isDirty=!0)},this)})),this}onMouseUp(m){if(m.fixedPosition&&!m.removed){let u,v=this.layout,I=this.parentNodeLayout;I&&v.options.dragBetweenSeries&&I.nodes.forEach(E=>{m&&m.marker&&E!==m.series.parentNode&&(u=v.getDistXY(m,E),v.vectorLength(u)-E.marker.radius-m.marker.radius<0&&(E.series.addPoint(S(m.options,{plotX:m.plotX,plotY:m.plotY}),!1),v.removeElementFromCollection(m,v.nodes),m.remove()))}),s.onMouseUp.apply(this,arguments)}}placeBubbles(m){let u=this.checkOverlap,v=this.positionBubble,I=[],E=1,R=0,j=0,G,W=[],N,B=m.sort((X,V)=>V[2]-X[2]);if(B.length){if(I.push([[0,0,B[0][2],B[0][3],B[0][4]]]),B.length>1)for(I.push([[0,0-B[1][2]-B[0][2],B[1][2],B[1][3],B[1][4]]]),N=2;N1&&I[E-1][j+1]&&u(G,I[E-1][j+1])?(j++,I[E].push(v(I[E][R],I[E-1][j],B[N])),R++):(R++,I[E].push(G));this.chart.stages=I,this.chart.rawPositions=[].concat.apply([],I),this.resizeRadius(),W=this.chart.rawPositions}return W}pointAttribs(m,u){let v=this.options,I=m&&m.isParentNode,E=v.marker;I&&v.layoutAlgorithm&&v.layoutAlgorithm.parentNodeOptions&&(E=v.layoutAlgorithm.parentNodeOptions.marker);let R=E.fillOpacity,j=f.pointAttribs.call(this,m,u);return R!==1&&(j["fill-opacity"]=R),j}positionBubble(m,u,v){let I=Math.asin,E=Math.acos,R=Math.pow,j=Math.abs,G=(0,Math.sqrt)(R(m[0]-u[0],2)+R(m[1]-u[1],2)),W=E((R(G,2)+R(v[2]+u[2],2)-R(v[2]+m[2],2))/(2*(v[2]+u[2])*G)),N=I(j(m[0]-u[0])/G),B=(m[1]-u[1]<0?0:Math.PI)+W+N*((m[0]-u[0])*(m[1]-u[1])<0?1:-1),X=Math.cos(B),V=Math.sin(B);return[u[0]+(u[2]+v[2])*V,u[1]-(u[2]+v[2])*X,v[2],v[3],v[4]]}render(){let m=[];f.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(u=>{A(u.dataLabels)&&u.dataLabels.forEach(v=>{m.push(v)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(m))}resizeRadius(){let m,u,v,I,E,R=this.chart,j=R.rawPositions,G=Math.min,W=Math.max,N=R.plotLeft,B=R.plotTop,X=R.plotHeight,V=R.plotWidth;for(let Y of(m=v=Number.POSITIVE_INFINITY,u=I=Number.NEGATIVE_INFINITY,j))E=Y[2],m=G(m,Y[0]-E),u=W(u,Y[0]+E),v=G(v,Y[1]-E),I=W(I,Y[1]+E);let H=[u-m,I-v],K=[(V-N)/H[0],(X-B)/H[1]],U=G.apply([],K);if(Math.abs(U-1)>1e-10){for(let Y of j)Y[2]*=U;this.placeBubbles(j)}else R.diffY=X/2+B-v-(I-v)/2,R.diffX=V/2+N-m-(u-m)/2}seriesBox(){let m,u=this.chart,v=this.data,I=Math.max,E=Math.min,R=[u.plotLeft,u.plotLeft+u.plotWidth,u.plotTop,u.plotTop+u.plotHeight];return v.forEach(j=>{z(j.plotX)&&z(j.plotY)&&j.marker.radius&&(m=j.marker.radius,R[0]=E(R[0],j.plotX-m),R[1]=I(R[1],j.plotX+m),R[2]=E(R[2],j.plotY-m),R[3]=I(R[3],j.plotY+m))}),F(R.width/R.height)?R:null}setVisible(){let m=this;f.setVisible.apply(m,arguments),m.parentNodeLayout&&m.graph?m.visible?(m.graph.show(),m.parentNode.dataLabel&&m.parentNode.dataLabel.show()):(m.graph.hide(),m.parentNodeLayout.removeElementFromCollection(m.parentNode,m.parentNodeLayout.nodes),m.parentNode.dataLabel&&m.parentNode.dataLabel.hide()):m.layout&&(m.visible?m.layout.addElementsToCollection(m.points,m.layout.nodes):m.points.forEach(u=>{m.layout.removeElementFromCollection(u,m.layout.nodes)}))}translate(){let m,u,v,I=this.chart,E=this.data,R=this.index,j=this.options.useSimulation;for(let G of(this.processedXData=this.xData,this.generatePoints(),z(I.allDataPoints)||(I.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),j?v=I.allDataPoints:(v=this.placeBubbles(I.allDataPoints),this.options.draggable=!1),v))G[3]===R&&(m=E[G[4]],u=T(G[2],void 0),j||(m.plotX=G[0]-I.plotLeft+I.diffX,m.plotY=G[1]-I.plotTop+I.diffY),F(u)&&(m.marker=O(m.marker,{radius:u,width:2*u,height:2*u}),m.radius=u));j&&this.deferLayout(),C(this,"afterTranslate")}}return D.defaultOptions=S(M.defaultOptions,l),O(D.prototype,{pointClass:a,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:L,alignDataLabel:f.alignDataLabel,indexateNodes:x,onMouseDown:s.onMouseDown,onMouseMove:s.onMouseMove,redrawHalo:s.redrawHalo,searchPoint:x}),c.registerSeriesType("packedbubble",D),D}),e(t,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),e(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Series/Polygon/PolygonSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{noop:a}=i,{area:l,line:h,scatter:c}=r.seriesTypes,{extend:g,merge:d}=o;class p extends c{getGraphPath(){let b=h.prototype.getGraphPath.call(this),x=b.length+1;for(;x--;)(x===b.length||b[x][0]==="M")&&x>0&&b.splice(x,0,["Z"]);return this.areaPath=b,b}drawGraph(){this.options.fillColor=this.color,l.prototype.drawGraph.call(this)}}return p.defaultOptions=d(c.defaultOptions,s),g(p.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:a}),r.registerSeriesType("polygon",p),p}),e(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}}}),e(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/RadialAxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{defaultOptions:l}=s,{composed:h,noop:c}=r,{addEvent:g,correctFloat:d,defined:p,extend:y,fireEvent:b,isObject:x,merge:f,pick:M,pushUnique:L,relativeLength:_,wrap:w}=o;return function(k){function z(){this.autoConnect=this.isCircular&&M(this.userMax,this.options.max)===void 0&&d(this.endAngleRad-this.startAngleRad)===d(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function O(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(Y=>this.ticks[Y]&&this.ticks[Y].label).filter(Y=>!!Y)}}function C(){return c}function A(Y,Z,q){let J=this.pane.center,Q=Y.value,$,tt,it;return this.isCircular?(p(Q)?Y.point&&(Y.point.shapeArgs||{}).start&&(Q=this.chart.inverted?this.translate(Y.point.rectPlotY,!0):Y.point.x):(tt=Y.chartX||0,it=Y.chartY||0,Q=this.translate(Math.atan2(it-q,tt-Z)-this.startAngleRad,!0)),tt=($=this.getPosition(Q)).x,it=$.y):(p(Q)||(tt=Y.chartX,it=Y.chartY),p(tt)&&p(it)&&(q=J[1]+this.chart.plotTop,Q=this.translate(Math.min(Math.sqrt(Math.pow(tt-Z,2)+Math.pow(it-q,2)),J[2]/2)-J[3]/2,!0))),[Q,tt||0,it||0]}function F(Y,Z,q){let J=this.pane.center,Q=this.chart,$=this.left||0,tt=this.top||0,it,et=M(Z,J[2]/2-this.offset),st;return q===void 0&&(q=this.horiz?0:this.center&&-this.center[3]/2),q&&(et+=q),this.isCircular||Z!==void 0?((st=this.chart.renderer.symbols.arc($+J[0],tt+J[1],et,et,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[$+J[0]],st.yBounds=[tt+J[1]-et]):(it=this.postTranslate(this.angleRad,et),st=[["M",this.center[0]+Q.plotLeft,this.center[1]+Q.plotTop],["L",it.x,it.y]]),st}function S(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function T(Y,Z,q){let J=this.chart,Q=Pt=>{if(typeof Pt=="string"){let Yt=parseInt(Pt,10);return nt.test(Pt)&&(Yt=Yt*it/100),Yt}return Pt},$=this.center,tt=this.startAngleRad,it=$[2]/2,et=Math.min(this.offset,0),st=this.left||0,rt=this.top||0,nt=/%$/,ot=this.isCircular,at,ct,ht,lt,yt,Et,dt=M(Q(q.outerRadius),it),St=Q(q.innerRadius),mt=M(Q(q.thickness),10);if(this.options.gridLineInterpolation==="polygon")Et=this.getPlotLinePath({value:Y}).concat(this.getPlotLinePath({value:Z,reverse:!0}));else{Y=Math.max(Y,this.min),Z=Math.min(Z,this.max);let Pt=this.translate(Y),Yt=this.translate(Z);ot||(dt=Pt||0,St=Yt||0),q.shape!=="circle"&&ot?(at=tt+(Pt||0),ct=tt+(Yt||0)):(at=-Math.PI/2,ct=1.5*Math.PI,yt=!0),dt-=et,mt-=et,Et=J.renderer.symbols.arc(st+$[0],rt+$[1],dt,dt,{start:Math.min(at,ct),end:Math.max(at,ct),innerR:M(St,dt-mt),open:yt,borderRadius:q.borderRadius}),ot&&(ht=(ct+at)/2,lt=st+$[0]+$[2]/2*Math.cos(ht),Et.xBounds=ht>-Math.PI/2&&ht-Math.PI&&ht<0||ht>Math.PI?-10:10)}return Et}function D(Y){let Z=this.pane.center,q=this.chart,J=q.inverted,Q=Y.reverse,$=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},tt=$.innerRadius||"0%",it=$.outerRadius||"100%",et=Z[0]+q.plotLeft,st=Z[1]+q.plotTop,rt=this.height,nt=Y.isCrosshair,ot=Z[3]/2,at=Y.value,ct,ht,lt,yt,Et,dt,St,mt,Pt,Yt=this.getPosition(at),xe=Yt.x,se=Yt.y;if(nt&&(at=(mt=this.getCrosshairPosition(Y,et,st))[0],xe=mt[1],se=mt[2]),this.isCircular)ht=Math.sqrt(Math.pow(xe-et,2)+Math.pow(se-st,2)),lt=typeof tt=="string"?_(tt,1):tt/ht,yt=typeof it=="string"?_(it,1):it/ht,Z&&ot&&(lt<(ct=ot/ht)&&(lt=ct),ytrt)&&(at=0),this.options.gridLineInterpolation==="circle")Pt=this.getLinePath(0,at,ot);else if(Pt=[],q[J?"yAxis":"xAxis"].forEach(Ie=>{Ie.pane===this.pane&&(Et=Ie)}),Et){St=Et.tickPositions,Et.autoConnect&&(St=St.concat([St[0]])),Q&&(St=St.slice().reverse()),at&&(at+=ot);for(let Ie=0;IeMath.PI&&(et-=$),st>Math.PI&&(st-=$),this.normalizedStartAngleRad=et,this.normalizedEndAngleRad=st}}function I(Y){this.isRadial&&(Y.align=void 0,Y.preventDefault())}function E(){if(this.chart&&this.chart.labelCollectors){let Y=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;Y>=0&&this.chart.labelCollectors.splice(Y,1)}}function R(Y){let Z,q=this.chart,J=q.angular,Q=q.polar,$=this.isXAxis,tt=this.coll,it=Y.userOptions.pane||0,et=this.pane=q.pane&&q.pane[it];if(tt==="colorAxis"){this.isRadial=!1;return}J?(J&&$?(this.isHidden=!0,this.createLabelCollector=C,this.getOffset=c,this.redraw=X,this.render=X,this.setScale=c,this.setCategories=c,this.setTitle=c):u(this),Z=!$):Q&&(u(this),Z=this.horiz),J||Q?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&q.labelCollectors.push(this.labelCollector)):this.isRadial=!1,et&&Z&&(et.axis=this),this.isCircular=Z}function j(){this.isRadial&&this.beforeSetTickPositions()}function G(Y){let Z=this.label;if(!Z)return;let q=this.axis,J=Z.getBBox(),Q=q.options.labels,$=(q.translate(this.pos)+q.startAngleRad+Math.PI/2)/Math.PI*180%360,tt=Math.round($),it=p(Q.y)?0:-(.3*J.height),et=Q.y,st,rt=20,nt=Q.align,ot="end",at=tt<0?tt+360:tt,ct=at,ht=0,lt=0;q.isRadial&&(st=q.getPosition(this.pos,q.center[2]/2+_(M(Q.distance,-25),q.center[2]/2,-q.center[2]/2)),Q.rotation==="auto"?Z.attr({rotation:$}):p(et)||(et=q.chart.renderer.fontMetrics(Z).b-J.height/2),p(nt)||(q.isCircular?(J.width>q.len*q.tickInterval/(q.max-q.min)&&(rt=0),nt=$>rt&&$<180-rt?"left":$>180+rt&&$<360-rt?"right":"center"):nt="center",Z.attr({align:nt})),nt==="auto"&&q.tickPositions.length===2&&q.isCircular&&(at>90&&at<180?at=180-at:at>270&&at<=360&&(at=540-at),ct>180&&ct<=360&&(ct=360-ct),(q.pane.options.startAngle===tt||q.pane.options.startAngle===tt+360||q.pane.options.startAngle===tt-360)&&(ot="start"),nt=tt>=-90&&tt<=90||tt>=-360&&tt<=-270||tt>=270&&tt<=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+it)),Y.pos.x=st.x+(Q.x||0),Y.pos.y=st.y+(et||0))}function W(Y){this.axis.getPosition&&y(Y.pos,this.axis.getPosition(this.pos))}function N({options:Y}){Y.xAxis&&f(!0,k.radialDefaultOptions.circular,Y.xAxis),Y.yAxis&&f(!0,k.radialDefaultOptions.radialGauge,Y.yAxis)}function B(Y,Z){let q=this.chart,J=this.center;return Y=this.startAngleRad+Y,{x:q.plotLeft+J[0]+Math.cos(Y)*Z,y:q.plotTop+J[1]+Math.sin(Y)*Z}}function X(){this.isDirty=!1}function V(){let Y,Z;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),Y=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(Z=this.postTranslate(this.angleRad,Y[3]/2),Y[0]=Z.x-this.chart.plotLeft,Y[1]=Z.y-this.chart.plotTop),this.len=this.width=this.height=(Y[2]-Y[3])*M(this.sector,1)/2)}function H(){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 K(Y){let{coll:Z}=this,{angular:q,inverted:J,polar:Q}=this.chart,$={};q?this.isXAxis||($=f(l.yAxis,k.radialDefaultOptions.radialGauge)):Q&&($=this.horiz?f(l.xAxis,k.radialDefaultOptions.circular):f(Z==="xAxis"?l.xAxis:l.yAxis,k.radialDefaultOptions.radial)),J&&Z==="yAxis"&&($.stackLabels=x(l.yAxis,!0)?l.yAxis.stackLabels:{},$.reversedStacks=!0);let tt=this.options=f($,Y);tt.plotBands||(tt.plotBands=[]),b(this,"afterSetOptions")}function U(Y,Z,q,J,Q,$,tt){let it,et=this.axis;return et.isRadial?["M",Z,q,"L",(it=et.getPosition(this.pos,et.center[2]/2+J)).x,it.y]:Y.call(this,Z,q,J,Q,$,tt)}k.radialDefaultOptions=f(i),k.compose=function(Y,Z){return L(h,"Axis.Radial")&&(g(Y,"afterInit",v),g(Y,"autoLabelAlign",I),g(Y,"destroy",E),g(Y,"init",R),g(Y,"initialAxisTranslation",j),g(Z,"afterGetLabelPosition",G),g(Z,"afterGetPosition",W),g(r,"setOptions",N),w(Z.prototype,"getMarkPath",U)),Y}}(a||(a={})),a}),e(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(i,s,r,o,a,l){let{animObject:h}=i,{composed:c}=s,{addEvent:g,defined:d,find:p,isNumber:y,merge:b,pick:x,pushUnique:f,relativeLength:M,splat:L,uniqueKey:_,wrap:w}=l;function k(){(this.pane||[]).forEach(N=>{N.render()})}function z(N){let B=N.args[0].xAxis,X=N.args[0].yAxis,V=N.args[0].chart;B&&X&&(X.gridLineInterpolation==="polygon"?(B.startOnTick=!0,B.endOnTick=!0):B.gridLineInterpolation==="polygon"&&V.inverted&&(X.startOnTick=!0,X.endOnTick=!0))}function O(){this.pane||(this.pane=[]),this.options.pane=L(this.options.pane),this.options.pane.forEach(N=>{new o(N,this)},this)}function C(N){let B=N.args.marker,X=this.chart.xAxis[0],V=this.chart.yAxis[0],H=this.chart.inverted,K=H?V:X,U=H?X:V;if(this.chart.polar){N.preventDefault();let Y=(B.attr?B.attr("start"):B.start)-K.startAngleRad,Z=B.attr?B.attr("r"):B.r,q=(B.attr?B.attr("end"):B.end)-K.startAngleRad,J=B.attr?B.attr("innerR"):B.innerR;N.result.x=Y+K.pos,N.result.width=q-Y,N.result.y=U.len+U.pos-Z,N.result.height=Z-J}}function A(N){let B=this.chart;if(B.polar&&B.hoverPane&&B.hoverPane.axis){N.preventDefault();let X=B.hoverPane.center,V=B.mouseDownX||0,H=B.mouseDownY||0,K=N.args.chartY,U=N.args.chartX,Y=2*Math.PI,Z=B.hoverPane.axis.startAngleRad,q=B.hoverPane.axis.endAngleRad,J=B.inverted?B.xAxis[0]:B.yAxis[0],Q={},$="arc";if(Q.x=X[0]+B.plotLeft,Q.y=X[1]+B.plotTop,this.zoomHor){let tt=Z>0?q-Z:Math.abs(Z)+Math.abs(q),it=Math.atan2(H-B.plotTop-X[1],V-B.plotLeft-X[0])-Z,et=Math.atan2(K-B.plotTop-X[1],U-B.plotLeft-X[0])-Z;Q.r=X[2]/2,Q.innerR=X[3]/2,it<=0&&(it+=Y),et<=0&&(et+=Y),etq+(Y-tt)/2&&(et=it,it=Z<=0?Z:0);let st=Q.start=Math.max(it+Z,Z),rt=Q.end=Math.min(et+Z,q);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(ctX[2]/2&&(et=X[2]/2),itN.max?(V[H].isNull=!0,V[H].plotY=NaN):V[H].isNull=V[H].isValid&&!V[H].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(g(this,"afterRender",function(){let K;X.polar&&this.options.clip!==!1&&(K=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:K[0],y:K[1],r:K[2]/2,innerR:K[3]/2}):this.clipCircle=function(U,Y,Z,q,J){let Q=_(),$=U.createElement("clipPath").attr({id:Q}).add(U.defs),tt=J?U.arc(Y,Z,q,J,0,2*Math.PI).add($):U.circle(Y,Z,q).add($);return tt.id=Q,tt.clipPath=$,tt}(X.renderer,K[0],K[1],K[2]/2,K[3]/2),this.group.clip(this.clipCircle),this.setClip=s.noop)})))}}function T(N){let B=this.chart,X=this.xAxis,V=this.yAxis,H=X.pane&&X.pane.center,K=N.chartX-(H&&H[0]||0)-B.plotLeft,U=N.chartY-(H&&H[1]||0)-B.plotTop,Y=B.inverted?{clientX:N.chartX-V.pos,plotY:N.chartY-X.pos}:{clientX:180+-180/Math.PI*Math.atan2(K,U)};return this.searchKDTree(Y)}function D(N,B,X,V){let H=V.tickInterval,K=V.tickPositions,U=p(K,Z=>Z>=X),Y=p([...K].reverse(),Z=>Z<=B);return d(U)||(U=K[K.length-1]),d(Y)||(Y=K[0],U+=H,N[0][0]="L",N.unshift(N[N.length-3])),(N=N.slice(K.indexOf(Y),K.indexOf(U)+1))[0][0]="M",N}function P(N,B){return p(this.pane||[],X=>X.options.id===B)||N.call(this,B)}function m(N,B,X,V,H,K){let U,Y,Z,q=this.chart,J=x(V.inside,!!this.options.stacking);if(q.polar){if(U=B.rectPlotX/Math.PI*180,q.inverted)this.forceDL=q.isInsidePlot(B.plotX,B.plotY),J&&B.shapeArgs?(Y=B.shapeArgs,H=b(H,{x:(Z=this.yAxis.postTranslate(((Y.start||0)+(Y.end||0))/2-this.xAxis.startAngleRad,B.barX+B.pointWidth/2)).x-q.plotLeft,y:Z.y-q.plotTop})):B.tooltipPos&&(H=b(H,{x:B.tooltipPos[0],y:B.tooltipPos[1]})),V.align=x(V.align,"center"),V.verticalAlign=x(V.verticalAlign,"middle");else{var Q;let $,tt;(Q=V).align===null&&($=U>20&&U<160?"left":U>200&&U<340?"right":"center",Q.align=$),Q.verticalAlign===null&&(tt=U<45||U>315?"bottom":U>135&&U<225?"top":"middle",Q.verticalAlign=tt),V=Q}r.prototype.alignDataLabel.call(this,B,X,V,H,K),this.isRadialBar&&B.shapeArgs&&B.shapeArgs.start===B.shapeArgs.end?X.hide():X.show()}else N.call(this,B,X,V,H,K)}function u(){let N=this.options,B=N.stacking,X=this.chart,V=this.xAxis,H=this.yAxis,K=H.reversed,U=H.center,Y=V.startAngleRad,Z=V.endAngleRad-Y,q=N.threshold,J=0,Q,$,tt,it,et,st=0,rt=0,nt,ot,at,ct,ht,lt,yt,Et;if(V.isRadial)for(tt=(Q=this.points).length,it=H.translate(H.min),et=H.translate(H.max),q=N.threshold||0,X.inverted&&y(q)&&d(J=H.translate(q))&&(J<0?J=0:J>Z&&(J=Z),this.translatedThreshold=J+Y);tt--;){if(lt=($=Q[tt]).barX,ot=$.x,at=$.y,$.shapeType="arc",X.inverted){$.plotY=H.translate(at),B&&H.stacking?(ht=H.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=H.translate(ct[0]),rt=H.translate(ct[1]),d(st)&&(st=l.clamp(st,0,Z)))):(st=J,rt=$.plotY),st>rt&&(rt=[st,st=rt][0]),K?rt>it?rt=it:stit||rtet?rt=et:(rtet)&&(st=rt=0),H.min>H.max&&(st=rt=K?Z:0),st+=Y,rt+=Y,U&&($.barX=lt+=U[3]/2),yt=Math.max(lt,0),Et=Math.max(lt+$.pointWidth,0);let dt=N.borderRadius,St=M((typeof dt=="object"?dt.radius:dt)||0,Et-yt);$.shapeArgs={x:U[0],y:U[1],r:Et,innerR:yt,start:st,end:rt,borderRadius:St},$.opacity=st===rt?0:void 0,$.plotY=(d(this.translatedThreshold)&&(stU[1])}}function v(N,B){let X,V,H=this;if(this.chart.polar){B=B||this.points;for(let U=0;U{U.polarPlotY===void 0&&H.polar.toXY(U)})}let K=N.apply(this,[].slice.call(arguments,1));return V&&B.pop(),K}function I(N,B){let X=this.chart,V={xAxis:[],yAxis:[]};return X.polar?X.axes.forEach(H=>{if(H.coll==="colorAxis")return;let K=H.isXAxis,U=H.center,Y=B.chartX-U[0]-X.plotLeft,Z=B.chartY-U[1]-X.plotTop;V[K?"xAxis":"yAxis"].push({axis:H,value:H.translate(K?Math.PI-Math.atan2(Y,Z):Math.sqrt(Math.pow(Y,2)+Math.pow(Z,2)),!0)})}):V=N.call(this,B),V}function E(N,B){this.chart.polar||N.call(this,B)}function R(N,B){let X=this,V=this.chart,H=this.group,K=this.markerGroup,U=this.xAxis&&this.xAxis.center,Y=V.plotLeft,Z=V.plotTop,q=this.options.animation,J,Q,$,tt,it,et;V.polar?X.isRadialBar?B||(X.startAngleRad=x(X.translatedThreshold,X.xAxis.startAngleRad),s.seriesTypes.pie.prototype.animate.call(X,B)):(q=h(q),X.is("column")?B||(Q=U[3]/2,X.points.forEach(st=>{$=st.graphic,it=(tt=st.shapeArgs)&&tt.r,et=tt&&tt.innerR,$&&tt&&($.attr({r:Q,innerR:Q}),$.animate({r:it,innerR:et},X.options.animation))})):B?(J={translateX:U[0]+Y,translateY:U[1]+Z,scaleX:.001,scaleY:.001},H.attr(J),K&&K.attr(J)):(J={translateX:Y,translateY:Z,scaleX:1,scaleY:1},H.animate(J,q),K&&K.animate(J,q))):N.call(this,B)}function j(N,B,X,V){let H,K;if(this.chart.polar)if(V){let U=(K=function Z(q,J,Q,$){let tt,it,et,st,rt,nt,ot=$?1:0,at=(tt=J>=0&&J<=q.length-1?J:J<0?q.length-1+J:0)-1<0?q.length-(1+ot):tt-1,ct=tt+1>q.length-1?ot:tt+1,ht=q[at],lt=q[ct],yt=ht.plotX,Et=ht.plotY,dt=lt.plotX,St=lt.plotY,mt=q[tt].plotX,Pt=q[tt].plotY;it=(1.5*mt+yt)/2.5,et=(1.5*Pt+Et)/2.5,st=(1.5*mt+dt)/2.5,rt=(1.5*Pt+St)/2.5;let Yt=Math.sqrt(Math.pow(it-mt,2)+Math.pow(et-Pt,2)),xe=Math.sqrt(Math.pow(st-mt,2)+Math.pow(rt-Pt,2)),se=Math.atan2(et-Pt,it-mt);nt=Math.PI/2+(se+Math.atan2(rt-Pt,st-mt))/2,Math.abs(se-nt)>Math.PI/2&&(nt-=Math.PI),it=mt+Math.cos(nt)*Yt,et=Pt+Math.sin(nt)*Yt;let Ie={rightContX:st=mt+Math.cos(Math.PI+nt)*xe,rightContY:rt=Pt+Math.sin(Math.PI+nt)*xe,leftContX:it,leftContY:et,plotX:mt,plotY:Pt};return Q&&(Ie.prevPointCont=Z(q,at,!1,$)),Ie}(B,V,!0,this.connectEnds)).prevPointCont&&K.prevPointCont.rightContX,Y=K.prevPointCont&&K.prevPointCont.rightContY;H=["C",y(U)?U:K.plotX,y(Y)?Y:K.plotY,y(K.leftContX)?K.leftContX:K.plotX,y(K.leftContY)?K.leftContY:K.plotY,K.plotX,K.plotY]}else H=["M",X.plotX,X.plotY];else H=N.call(this,B,X,V);return H}function G(N,B,X=this.plotY){if(!this.destroyed){let{plotX:V,series:H}=this,{chart:K}=H;return K.polar&&y(V)&&y(X)?[V+(B?K.plotLeft:0),X+(B?K.plotTop:0)]:N.call(this,B,X)}}class W{static compose(B,X,V,H,K,U,Y,Z,q,J){if(o.compose(X,V),a.compose(B,K),f(c,"Polar")){let Q=X.prototype,$=U.prototype,tt=V.prototype,it=H.prototype;if(g(X,"afterDrawChartBox",k),g(X,"getAxes",O),g(X,"init",z),w(Q,"get",P),w(tt,"getCoordinates",I),w(tt,"pinch",E),g(V,"getSelectionMarkerAttrs",A),g(V,"getSelectionBox",C),g(H,"afterInit",F),g(H,"afterTranslate",S,{order:2}),g(H,"afterColumnTranslate",u,{order:4}),w(it,"animate",R),w($,"pos",G),Z){let et=Z.prototype;w(et,"alignDataLabel",m),w(et,"animate",R)}if(q&&w(q.prototype,"getGraphPath",v),J){let et=J.prototype;w(et,"getPointSpline",j),Y&&(Y.prototype.getPointSpline=et.getPointSpline)}}}constructor(B){this.series=B}arc(B,X,V,H){let K=this.series,U=K.xAxis.center,Y=K.yAxis.len,Z=U[3]/2,q=Y-X+Z,J=Y-x(B,Y)+Z;return K.yAxis.reversed&&(q<0&&(q=Z),J<0&&(J=Z)),{x:U[0],y:U[1],r:q,innerR:J,start:V,end:H}}toXY(B){let X=this.series,V=X.chart,H=X.xAxis,K=X.yAxis,U=B.plotX,Y=V.inverted,Z=B.y,q=B.plotY,J=Y?U:K.len-q,Q;if(Y&&X&&!X.isRadialBar&&(B.plotY=q=y(Z)?K.translate(Z):0),B.rectPlotX=U,B.rectPlotY=q,K.center&&(J+=K.center[3]/2),y(q)){let $=Y?K.postTranslate(q,J):H.postTranslate(U,J);B.plotX=B.polarPlotX=$.x-V.plotLeft,B.plotY=B.polarPlotY=$.y-V.plotTop}X.kdByAngle?((Q=(U/Math.PI*180+H.pane.options.startAngle)%360)<0&&(Q+=360),B.clientX=Q):B.clientX=B.plotX}}return W}),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Globals.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{composed:a}=i,{addEvent:l,objectEach:h,pushUnique:c}=r;return function(g){function d(){let f=this.waterfall.stacks;f&&(f.changed=!1,delete f.alreadyChanged)}function p(){let f=this.options.stackLabels;f&&f.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function y(){this.waterfall||(this.waterfall=new x(this))}function b(){let f=this.axes;for(let M of this.series)if(M.options.stacking){for(let L of f)L.isXAxis||(L.waterfall.stacks.changed=!0);break}}g.compose=function(f,M){c(a,"Axis.Waterfall")&&(l(f,"init",y),l(f,"afterBuildStacks",d),l(f,"afterRender",p),l(M,"beforeRedraw",b))};class x{constructor(M){this.axis=M,this.stacks={changed:!1}}renderStackTotals(){let M=this.axis,L=M.waterfall.stacks,_=M.stacking&&M.stacking.stackTotalGroup,w=new s(M,M.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=w,_&&h(L,k=>{h(k,(z,O)=>{w.total=z.stackTotal,w.x=+O,z.label&&(w.label=z.label),s.prototype.render.call(w,_),z.label=w.label,delete w.label})}),w.total=null}}g.Composition=x}(o||(o={})),o}),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(i,s,r){let{isNumber:o}=r;class a extends i.prototype.pointClass{getClassName(){let h=s.prototype.getClassName.call(this);return this.isSum?h+=" highcharts-sum":this.isIntermediateSum&&(h+=" highcharts-intermediate-sum"),h}isValid(){return o(this.y)||this.isSum||!!this.isIntermediateSum}}return a}),e(t,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),e(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(i,s,r,o,a){let{column:l,line:h}=i.seriesTypes,{addEvent:c,arrayMax:g,arrayMin:d,correctFloat:p,crisp:y,extend:b,isNumber:x,merge:f,objectEach:M,pick:L}=s;function _(k,z){return Object.hasOwnProperty.call(k,z)}class w extends l{generatePoints(){l.prototype.generatePoints.apply(this);for(let z=0,O=this.points.length;z0?C:void 0);let A=l.prototype.pointAttribs.call(this,z,O);return delete A.dashstyle,A}getGraphPath(){return[["M",0,0]]}getCrispPath(){let z=this.data.filter(P=>x(P.y)),O=this.yAxis,C=z.length,A=this.graph?.strokeWidth()||0,F=this.xAxis.reversed,S=this.yAxis.reversed,T=this.options.stacking,D=[];for(let P=1;P0?-I.height:0;if(E&&I&&m){let j,G=E[P-1];if(T){let W=G.connectorThreshold;j=y(O.translate(W,!1,!0,!1,!0)+(S?R:0),A)}else j=y(I.y+(u.minPointLengthOffset||0),A);D.push(["M",(I.x||0)+(F?0:I.width||0),j],["L",(m.x||0)+(F&&m.width||0),j])}if(I&&D.length&&(!T&&v<0&&!S||v>0&&S)){let j=D[D.length-2];j&&typeof j[2]=="number"&&(j[2]+=I.height||0);let G=D[D.length-1];G&&typeof G[2]=="number"&&(G[2]+=I.height||0)}}return D}drawGraph(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(z){let O=this.options,C=z.waterfall?.stacks,A=O.threshold||0,F=this.stackKey,S=this.xData,T=S.length,D=A,P=D,m,u=0,v=0,I=0,E,R,j,G,W,N,B,X,V=(H,K,U,Y)=>{if(m){if(E)for(;UB.indexOf(F)&&(X=!0),C[F]||(C[F]={});let H=C[F];if(H)for(let K=0;K=0?m.posTotal+=W:m.negTotal+=W,G=O.data[K],R=m.absolutePos=m.posTotal,j=m.absoluteNeg=m.negTotal,m.stackTotal=R+j,E=m.stackState.length,G&&G.isIntermediateSum?(V(I,v,0,I),I=v,v=A,D^=P,P^=D,D^=P):G&&G.isSum?(V(A,u,E,0),D=A):(V(D,W,0,u),G&&(u+=W,v+=W)),m.stateIndex++,m.threshold=D,D+=m.stackTotal;C.changed=!1,C.alreadyChanged||(C.alreadyChanged=[]),C.alreadyChanged.push(F)}}getExtremes(){let z,O,C,A=this.options.stacking;return A?(z=this.yAxis.waterfall.stacks,O=this.stackedYNeg=[],C=this.stackedYPos=[],A==="overlap"?M(z[this.stackKey],function(F){O.push(d(F.stackState)),C.push(g(F.stackState))}):M(z[this.stackKey],function(F){O.push(F.negTotal+F.threshold),C.push(F.posTotal+F.threshold)}),{dataMin:d(O),dataMax:g(C)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return w.defaultOptions=f(l.defaultOptions,a),w.compose=r.compose,b(w.prototype,{pointValKey:"y",showLine:!0,pointClass:o}),c(w,"afterColumnTranslate",function(){let{options:k,points:z,yAxis:O}=this,C=L(k.minPointLength,5),A=C/2,F=k.threshold||0,S=k.stacking,T=O.waterfall.stacks[this.stackKey],D=F,P=F,m,u,v,I;for(let E=0;E=0?u:u-N,_(V,"absolutePos")&&delete V.absolutePos,_(V,"absoluteNeg")&&delete V.absoluteNeg):(N>=0?(u=V.threshold+V.posTotal,V.posTotal-=N,m=u):(u=V.threshold+V.negTotal,V.negTotal-=N,m=u-N),!V.posTotal&&x(V.absolutePos)&&_(V,"absolutePos")&&(V.posTotal=V.absolutePos,delete V.absolutePos),!V.negTotal&&x(V.absoluteNeg)&&_(V,"absoluteNeg")&&(V.negTotal=V.absoluteNeg,delete V.absoluteNeg)),R.isSum||(V.connectorThreshold=V.threshold+V.stackTotal),O.reversed?(v=N>=0?m-N:m+N,I=m):(v=m,I=m-N),R.below=v<=F,G.y=O.translate(v,!1,!0,!1,!0),G.height=Math.abs(G.y-O.translate(I,!1,!0,!1,!0));let H=O.waterfall.dummyStackItem;H&&(H.x=E,H.label=T[E].label,H.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[E],this.stackedYPos[E],void 0,this.xAxis))}}else m=Math.max(P,P+N)+W[0],G.y=O.translate(m,!1,!0,!1,!0),R.isSum?(G.y=O.translate(W[1],!1,!0,!1,!0),G.height=Math.min(O.translate(W[0],!1,!0,!1,!0),O.len)-G.y,R.below=W[1]<=F):R.isIntermediateSum?(N>=0?(v=W[1]+D,I=D):(v=D,I=W[1]+D),O.reversed&&(v^=I,I^=v,v^=I),G.y=O.translate(v,!1,!0,!1,!0),G.height=Math.abs(G.y-Math.min(O.translate(I,!1,!0,!1,!0),O.len)),D+=W[1],R.below=v<=F):(G.height=j>0?O.translate(P,!1,!0,!1,!0)-G.y:O.translate(P,!1,!0,!1,!0)-O.translate(P-j,!1,!0,!1,!0),P+=j,R.below=P{"use strict";(function(n){typeof ho=="object"&&ho.exports?(n.default=n,ho.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(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}}}),e(t,"Extensions/Breadcrumbs/Breadcrumbs.js",[t["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{format:a}=s,{composed:l}=r,{addEvent:h,defined:c,extend:g,fireEvent:d,isString:p,merge:y,objectEach:b,pick:x,pushUnique:f}=o;function M(){if(this.breadcrumbs){let O=this.resetZoomButton&&this.resetZoomButton.getBBox(),C=this.breadcrumbs.options;O&&C.position.align==="right"&&C.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-O.width-C.buttonSpacing)}}function L(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function _(){let O=this.breadcrumbs;if(O&&!O.options.floating&&O.level){let C=O.options,A=C.buttonTheme,F=(A.height||0)+2*(A.padding||0)+C.buttonSpacing,S=C.position.verticalAlign;S==="bottom"?(this.marginBottom=(this.marginBottom||0)+F,O.yOffset=F):S!=="middle"?(this.plotTop+=F,O.yOffset=-F):O.yOffset=void 0}}function w(){this.breadcrumbs&&this.breadcrumbs.redraw()}function k(O){O.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class z{static compose(C,A){f(l,"Breadcrumbs")&&(h(C,"destroy",L),h(C,"afterShowResetZoom",M),h(C,"getMargins",_),h(C,"redraw",w),h(C,"selection",k),g(A.lang,i.lang))}constructor(C,A){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let F=y(C.options.drilldown&&C.options.drilldown.drillUpButton,z.defaultOptions,C.options.navigation&&C.options.navigation.breadcrumbs,A);this.chart=C,this.options=F||{}}updateProperties(C){this.setList(C),this.setLevel(),this.isDirty=!0}setList(C){this.list=C}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(C){let A=this.chart,F=this.options,S=A.options.lang,T=x(F.format,F.showFullPath?"{level.name}":"\u2190 {level.name}"),D=S&&x(S.drillUpText,S.mainBreadcrumb),P=F.formatter&&F.formatter(C)||a(T,{level:C.levelOptions},A)||"";return(p(P)&&!P.length||P==="\u2190 ")&&c(D)&&(P=F.showFullPath?D:"\u2190 "+D),P}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let C=this.chart,A=this.options;!this.group&&A&&(this.group=C.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:A.zIndex}).add()),A.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()}renderFullPathButtons(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()}renderSingleButton(){let C=this.chart,A=this.list,F=this.options.buttonSpacing;this.destroyListElements();let S=this.group?this.group.getBBox().width:F,T=A[A.length-2];!C.drillUpButton&&this.level>0?C.drillUpButton=this.renderButton(T,S,F):C.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(C){if(this.group){let A=this.options,F=A.buttonTheme,S=A.position,T=A.relativeTo==="chart"||A.relativeTo==="spacingBox"?void 0:"plotBox",D=this.group.getBBox(),P=2*(F.padding||0)+A.buttonSpacing;S.width=D.width+P,S.height=D.height+P;let m=y(S);C&&(m.x+=C),this.options.rtl&&(m.x+=S.width),m.y=x(m.y,this.yOffset,0),this.group.align(m,!0,T)}}renderButton(C,A,F){let S=this,T=this.chart,D=S.options,P=y(D.buttonTheme),m=T.renderer.button(S.getButtonText(C),A,F,function(u){let v,I=D.events&&D.events.click;I&&(v=I.call(S,u,C)),v!==!1&&(D.showFullPath?u.newLevel=C.level:u.newLevel=S.level-1,d(S,"up",u))},P).addClass("highcharts-breadcrumbs-button").add(S.group);return T.styledMode||m.attr(D.style),m}renderSeparator(C,A){let F=this.chart,S=this.options.separator,T=F.renderer.label(S.text,C,A,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return F.styledMode||T.css(S.style),T}update(C){y(!0,this.options,C),this.destroy(),this.isDirty=!0}updateSingleButton(){let C=this.chart,A=this.list[this.level-1];C.drillUpButton&&C.drillUpButton.attr({text:this.getButtonText(A)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(C){let A=this.elementList;b(A,(F,S)=>{(C||!A[S].updated)&&((F=A[S]).button&&F.button.destroy(),F.separator&&F.separator.destroy(),delete F.button,delete F.separator,delete A[S])}),C&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){b(this.elementList,C=>{C.updated=!1})}updateListElements(){let C=this.elementList,A=this.options.buttonSpacing,F=this.list,S=this.options.rtl,T=S?-1:1,D=function(I,E){return T*I.getBBox().width+T*E},P=function(I,E,R){I.translate(E-I.getBBox().width,R)},m=this.group?D(this.group,A):A,u,v;for(let I=0,E=F.length;I{i.graphic=c=c&&c.destroy(),typeof o=="function"&&o()};Object.keys(r).length?c.animate(r,void 0,()=>g()):g()}}}}),e(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{pie:{prototype:{pointClass:o}},scatter:{prototype:{pointClass:a}}}=s.seriesTypes,{extend:l,isNumber:h,pick:c}=r;class g extends a{constructor(){super(...arguments),this.shapeType="rect"}draw(p){i.draw(this,p)}getClassName(){let p=this.series,y=p.options,b=super.getClassName();return this.node.level<=p.nodeMap[p.rootNode].level&&this.node.children.length?b+=" highcharts-above-level":this.node.isLeaf||c(y.interactByLeaf,!y.allowTraversingTree)?this.node.isLeaf||(b+=" highcharts-internal-node"):b+=" highcharts-internal-node-interactive",b}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 l(g.prototype,{setVisible:o.prototype.setVisible}),g}),e(t,"Series/Treemap/TreemapSeriesDefaults.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{isString:r}=s;return{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){let o=this&&this.point?this.point:{};return r(o.name)?o.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:i.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle",traverseToLeaf:!1}}),e(t,"Series/Treemap/TreemapUtilities.js",[],function(){var i;return(i||(i={})).recursive=function s(r,o,a){let l=o.call(a||this,r);l!==!1&&s(l,o,a)},i}),e(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){let{extend:r,isArray:o,isNumber:a,isObject:l,merge:h,pick:c,relativeLength:g}=s;return{getColor:function(d,p){let y,b,x,f,M,L,_=p.index,w=p.mapOptionsToLevel,k=p.parentColor,z=p.parentColorIndex,O=p.series,C=p.colors,A=p.siblings,F=O.points,S=O.chart.options.chart;return d&&(y=F[d.i],b=w[d.level]||{},y&&b.colorByPoint&&(f=y.index%(C?C.length:S.colorCount),x=C&&C[f]),O.chart.styledMode||(M=c(y&&y.options.color,b&&b.color,x,k&&(T=>{let D=b&&b.colorVariation;return D&&D.key==="brightness"&&_&&A?i.parse(T).brighten(D.to*(_/A)).get():T})(k),O.color)),L=c(y&&y.options.colorIndex,b&&b.colorIndex,f,z,p.colorIndex)),{color:M,colorIndex:L}},getLevelOptions:function(d){let p,y,b,x,f,M,L={};if(l(d))for(x=a(d.from)?d.from:1,M=d.levels,y={},p=l(d.defaults)?d.defaults:{},o(M)&&(y=M.reduce((_,w)=>{let k,z,O;return l(w)&&a(w.level)&&(z=c((O=h({},w)).levelIsConstant,p.levelIsConstant),delete O.levelIsConstant,delete O.level,l(_[k=w.level+(z?0:x-1)])?h(!0,_[k],O):_[k]=O),_},{})),f=a(d.to)?d.to:1,b=0;b<=f;b++)L[b]=h({},p,l(y[b])?y[b]:{});return L},getNodeWidth:function(d,p){let{chart:y,options:b}=d,{nodeDistance:x=0,nodeWidth:f=0}=b,{plotSizeX:M=1}=y;if(f==="auto"){if(typeof x=="string"&&/%$/.test(x))return M/(p+parseFloat(x)/100*(p-1));let L=Number(x);return(M+L)/(p||1)-L}return g(f,M)},setTreeValues:function d(p,y){let b=y.before,x=y.idRoot,f=y.mapIdToNode[x],M=y.levelIsConstant!==!1,L=y.points[p.i],_=L&&L.options||{},w=[],k=0;p.levelDynamic=p.level-(M?0:f.level),p.name=c(L&&L.name,""),p.visible=x===p.id||y.visible===!0,typeof b=="function"&&(p=b(p,y)),p.children.forEach((O,C)=>{let A=r({},y);r(A,{index:C,siblings:p.children.length,visible:p.visible}),O=d(O,A),w.push(O),O.visible&&(k+=O.val)});let z=c(_.value,k);return p.visible=z>=0&&(k>0||p.visible),p.children=w,p.childrenTotal=k,p.isLeaf=p.visible&&!k,p.val=z,p},updateRootId:function(d){let p,y;return l(d)&&(y=l(d.options)?d.options:{},p=c(d.rootNode,y.rootId,""),l(d.userOptions)&&(d.userOptions.rootId=p),d.rootNode=p),p}}}),e(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(i,s,r,o,a,l,h,c,g,d,p,y){let{parse:b}=s,{composed:x,noop:f}=o,{column:M,scatter:L}=a.seriesTypes,{getColor:_,getLevelOptions:w,updateRootId:k}=p,{addEvent:z,correctFloat:O,crisp:C,defined:A,error:F,extend:S,fireEvent:T,isArray:D,isObject:P,isString:m,merge:u,pick:v,pushUnique:I,stableSort:E}=y,R=!1;function j(){let W,N=this.xAxis,B=this.yAxis;N&&B&&(this.is("treemap")?(W={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},S(B.options,W),S(N.options,W),R=!0):R&&(B.setOptions(B.userOptions),N.setOptions(N.userOptions),R=!1))}class G extends L{static compose(N){I(x,"TreemapSeries")&&z(N,"afterBindAxes",j)}algorithmCalcPoints(N,B,X,V){let H=X.plot,K=X.elArr.length-1,U,Y,Z,q,J=X.lW,Q=X.lH,$,tt=0;for(let it of(B?(J=X.nW,Q=X.nH):$=X.elArr[K],X.elArr))(B||ttY.lP.lR&&this.algorithmCalcPoints(N,!1,Y,V,H),q===U&&this.algorithmCalcPoints(N,!0,Y,V,H),++q;return V}alignDataLabel(N,B,X){let V=X.style;V&&!A(V.textOverflow)&&B.text&&B.getBBox().width>(B.text.textWidth||0)&&B.css({textOverflow:"ellipsis",width:V.width+="px"}),M.prototype.alignDataLabel.apply(this,arguments),N.dataLabel&&N.dataLabel.attr({zIndex:(N.node.zIndex||0)+1})}calculateChildrenAreas(N,B){let X=this.options,V=this.mapOptionsToLevel[N.level+1],H=v(this[V&&V.layoutAlgorithm]&&V.layoutAlgorithm,X.layoutAlgorithm),K=X.alternateStartingDirection,U=N.children.filter(q=>!q.ignore),Y=[];V&&V.layoutStartingDirection&&(B.direction=V.layoutStartingDirection==="vertical"?0:1),Y=this[H](B,U);let Z=-1;for(let q of U){let J=Y[++Z];q.values=u(J,{val:q.childrenTotal,direction:K?1-B.direction:B.direction}),q.pointValues=u(J,{x:J.x/this.axisRatio,y:100-J.y-J.height,width:J.width/this.axisRatio}),q.children.length&&this.calculateChildrenAreas(q,q.values)}}createList(N){let B=this.chart,X=B.breadcrumbs,V=[];if(X){let H=0;V.push({level:H,levelOptions:B.series[0]});let K=N.target.nodeMap[N.newRootId],U=[];for(;K.parent||K.parent==="";)U.push(K),K=N.target.nodeMap[K.parent];for(let Y of U.reverse())V.push({level:++H,levelOptions:Y});V.length<=1&&(V.length=0)}return V}drawDataLabels(){let N,B,X=this.mapOptionsToLevel;for(let V of this.points.filter(function(H){return H.node.visible}))B=X[V.node.level],N={style:{}},V.node.isLeaf||(N.enabled=!1),B&&B.dataLabels&&(N=u(N,B.dataLabels),this.hasDataLabels=()=>!0),V.shapeArgs&&(N.style.width=V.shapeArgs.width,V.dataLabel&&V.dataLabel.css({width:V.shapeArgs.width+"px"})),V.dlOptions=u(N,V.options.dataLabels);super.drawDataLabels()}drawPoints(N=this.points){let B=this.chart,X=B.renderer,V=B.styledMode,H=this.options,K=V?{}:H.shadow,U=H.borderRadius,Y=B.pointCount{let U=K.userOptions;A(U.allowDrillToNode)&&!A(U.allowTraversingTree)&&(U.allowTraversingTree=U.allowDrillToNode,delete U.allowDrillToNode),A(U.drillUpButton)&&!A(U.traverseUpButton)&&(U.traverseUpButton=U.drillUpButton,delete U.drillUpButton)});super.init(N,B),delete X.opacity,X.eventsToUnbind.push(H),X.options.allowTraversingTree&&(X.eventsToUnbind.push(z(X,"click",X.onClickDrillToNode)),X.eventsToUnbind.push(z(X,"setRootNode",function(K){let U=X.chart;U.breadcrumbs&&U.breadcrumbs.updateProperties(X.createList(K))})),X.eventsToUnbind.push(z(X,"update",function(K,U){let Y=this.chart.breadcrumbs;Y&&K.options.breadcrumbs&&Y.update(K.options.breadcrumbs)})),X.eventsToUnbind.push(z(X,"destroy",function(K){let U=this.chart;U.breadcrumbs&&!K.keepEventsForUpdate&&(U.breadcrumbs.destroy(),U.breadcrumbs=void 0)}))),N.breadcrumbs||(N.breadcrumbs=new i(N,V)),X.eventsToUnbind.push(z(N.breadcrumbs,"up",function(K){let U=this.level-K.newLevel;for(let Y=0;YH?0:N.pointAttribs(U)["stroke-width"]||0;for(let U of B){let{pointValues:Y,visible:Z}=U.node;if(Y&&Z){let{height:q,width:J,x:Q,y:$}=Y,tt=K(U),it=C(X.toPixels(Q,!0),tt,!0),et=C(X.toPixels(Q+J,!0),tt,!0),st=C(V.toPixels($,!0),tt,!0),rt=C(V.toPixels($+q,!0),tt,!0),nt={x:Math.min(it,et),y:Math.min(st,rt),width:Math.abs(et-it),height:Math.abs(rt-st)};U.plotX=nt.x+nt.width/2,U.plotY=nt.y+nt.height/2,U.shapeArgs=nt}else delete U.plotX,delete U.plotY}}setRootNode(N,B,X){T(this,"setRootNode",S({newRootId:N,previousRootId:this.rootNode,redraw:v(B,!0),series:this},X),function(V){let H=V.series;H.idPreviousRoot=V.previousRootId,H.rootNode=V.newRootId,H.isDirty=!0,V.redraw&&H.chart.redraw()})}setState(N){this.options.inactiveOtherPoints=!0,super.setState(N,!1),this.options.inactiveOtherPoints=!1}setTreeValues(N){let B=this.options,X=this.rootNode,V=this.nodeMap[X],H=typeof B.levelIsConstant!="boolean"||B.levelIsConstant,K=[],U=this.points[N.i],Y=0;for(let q of N.children)q=this.setTreeValues(q),K.push(q),q.ignore||(Y+=q.val);E(K,(q,J)=>(q.sortIndex||0)-(J.sortIndex||0));let Z=v(U&&U.options.value,Y);return U&&(U.value=Z),S(N,{children:K,childrenTotal:Y,ignore:!(v(U&&U.visible,!0)&&Z>0),isLeaf:N.visible&&!Y,levelDynamic:N.level-(H?0:V.level),name:v(U&&U.name,""),sortIndex:v(U&&U.sortIndex,-Z),val:Z}),N}sliceAndDice(N,B){return this.algorithmFill(!0,N,B)}squarified(N,B){return this.algorithmLowAspectRatio(!0,N,B)}strip(N,B){return this.algorithmLowAspectRatio(!1,N,B)}stripes(N,B){return this.algorithmFill(!1,N,B)}translate(){let N=this,B=N.options,X=k(N),V,H,K,U;super.translate();let Y=N.tree=N.getTree();V=N.nodeMap[X],X===""||V||(N.setRootNode("",!1),X=N.rootNode,V=N.nodeMap[X]),N.mapOptionsToLevel=w({from:V.level+1,levels:B.levels,to:Y.height,defaults:{levelIsConstant:N.options.levelIsConstant,colorByPoint:B.colorByPoint}}),d.recursive(N.nodeMap[N.rootNode],Z=>{let q=Z.parent,J=!1;return Z.visible=!0,(q||q==="")&&(J=N.nodeMap[q]),J}),d.recursive(N.nodeMap[N.rootNode].children,Z=>{let q=!1;for(let J of Z)J.visible=!0,J.children.length&&(q=(q||[]).concat(J.children));return q}),N.setTreeValues(Y),N.axisRatio=N.xAxis.len/N.yAxis.len,N.nodeMap[""].pointValues=H={x:0,y:0,width:100,height:100},N.nodeMap[""].values=K=u(H,{width:H.width*N.axisRatio,direction:B.layoutStartingDirection==="vertical"?0:1,val:Y.val}),N.calculateChildrenAreas(Y,K),N.colorAxis||B.colorByPoint||N.setColorRecursive(N.tree),B.allowTraversingTree&&(U=V.pointValues,N.xAxis.setExtremes(U.x,U.x+U.width,!1),N.yAxis.setExtremes(U.y,U.y+U.height,!1),N.xAxis.setScale(),N.yAxis.setScale()),N.setPointValues()}}return G.defaultOptions=u(L.defaultOptions,g),S(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:d}),r.compose(G),a.registerSeriesType("treemap",G),G}),e(t,"masters/modules/treemap.src.js",[t["Core/Globals.js"],t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Series/Treemap/TreemapSeries.js"]],function(i,s,r){return i.Breadcrumbs=i.Breadcrumbs||s,i.Breadcrumbs.compose(i.Chart,i.defaultOptions),r.compose(i.Series),i})})});var Ku=ai((uA,co)=>{"use strict";(function(n){typeof co=="object"&&co.exports?(n.default=n,co.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r;let{parse:o}=i,{addEvent:a,extend:l,merge:h,pick:c,splat:g}=s;return function(d){let p;function y(){let{userOptions:O}=this;this.colorAxis=[],O.colorAxis&&(O.colorAxis=g(O.colorAxis),O.colorAxis.map(C=>new p(this,C)))}function b(O){let C=this.chart.colorAxis||[],A=D=>{let P=O.allItems.indexOf(D);P!==-1&&(this.destroyItem(O.allItems[P]),O.allItems.splice(P,1))},F=[],S,T;for(C.forEach(function(D){(S=D.options)&&S.showInLegend&&(S.dataClasses&&S.visible?F=F.concat(D.getDataClassLegendSymbols()):S.visible&&F.push(D),D.series.forEach(function(P){(!P.options.showInLegend||S.dataClasses)&&(P.options.legendType==="point"?P.points.forEach(function(m){A(m)}):A(P))}))}),T=F.length;T--;)O.allItems.unshift(F[T])}function x(O){O.visible&&O.item.legendColor&&O.item.legendItem.symbol.attr({fill:O.item.legendColor})}function f(O){this.chart.colorAxis?.forEach(C=>{C.update({},O.redraw)})}function M(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let O=this.axisTypes;O?O.indexOf("colorAxis")===-1&&O.push("colorAxis"):this.axisTypes=["colorAxis"]}function _(O){let C=this,A=O?"show":"hide";C.visible=C.options.visible=!!O,["graphic","dataLabel"].forEach(function(F){C[F]&&C[F][A]()}),this.series.buildKDTree()}function w(){let O=this,C=this.getPointsCollection(),A=this.options.nullColor,F=this.colorAxis,S=this.colorKey;C.forEach(T=>{let D=T.getNestedProperty(S),P=T.options.color||(T.isNull||T.value===null?A:F&&D!==void 0?F.toColor(D,T):T.color||O.color);P&&T.color!==P&&(T.color=P,O.options.legendType==="point"&&T.legendItem&&T.legendItem.label&&O.chart.legend.colorizeItem(T,T.visible))})}function k(){this.elem.attr("fill",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}function z(){this.elem.attr("stroke",o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)}d.compose=function(O,C,A,F,S){let T=C.prototype,D=A.prototype,P=S.prototype;T.collectionsWithUpdate.includes("colorAxis")||(p=O,T.collectionsWithUpdate.push("colorAxis"),T.collectionsWithInit.colorAxis=[T.addColorAxis],a(C,"afterGetAxes",y),function(m){let u=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return u.apply(this,arguments);let E=new p(this,h(I.axis,{index:this[v].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(R=>{R.series=[]}),this.series.forEach(R=>{R.bindAxes(),R.isDirtyData=!0}),c(I.redraw,!0)&&this.redraw(I.animation),E}}(C),D.fillSetter=k,D.strokeSetter=z,a(F,"afterGetAllItems",b),a(F,"afterColorizeItem",x),a(F,"afterUpdate",f),l(P,{optionalAxis:"colorAxis",translateColors:w}),l(P.pointClass.prototype,{setVisible:_}),a(S,"afterTranslate",M,{order:1}),a(S,"bindAxes",L))},d.pointSetVisible=_}(r||(r={})),r}),e(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}}),e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(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(i,s,r,o,a,l,h,c){let{defaultOptions:g}=a,{series:d}=h,{defined:p,extend:y,fireEvent:b,isArray:x,isNumber:f,merge:M,pick:L,relativeLength:_}=c;g.colorAxis=M(g.xAxis,r);class w extends i{static compose(z,O,C,A){s.compose(w,z,O,C,A)}constructor(z,O){super(z,O),this.coll="colorAxis",this.visible=!0,this.init(z,O)}init(z,O){let C=z.options.legend||{},A=O.layout?O.layout!=="vertical":C.layout!=="vertical";this.side=O.side||A?2:1,this.reversed=O.reversed||!A,this.opposite=!A,super.init(z,O,"colorAxis"),this.userOptions=O,x(z.userOptions.colorAxis)&&(z.userOptions.colorAxis[this.index]=O),O.dataClasses&&this.initDataClasses(O),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(z){let O=M(g.colorAxis,z,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&z.visible!==!1});super.setOptions(O),this.options.crosshair=this.options.marker}setAxisSize(){let z=this.chart,O=this.legendItem?.symbol,{width:C,height:A}=this.getSize();O&&(this.left=+O.attr("x"),this.top=+O.attr("y"),this.width=C=+O.attr("width"),this.height=A=+O.attr("height"),this.right=z.chartWidth-this.left-C,this.bottom=z.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?C:A)||w.defaultLegendLength}getOffset(){let z=this.legendItem?.group,O=this.chart.axisOffset[this.side];if(z){this.axisParent=z,super.getOffset();let C=this.chart.legend;C.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(C,A)}),C.render(),this.chart.getMargins(!0),this.chart.series.some(A=>A.isDrilling)||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=O}}setLegendColor(){let z=this.horiz,O=this.reversed,C=O?1:0,A=O?0:1,F=z?[C,0,A,0]:[0,A,0,C];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(z,O){let C=O.legendItem||{},A=z.padding,F=z.options,S=this.options.labels,T=L(F.itemDistance,10),D=this.horiz,{width:P,height:m}=this.getSize(),u=L(F.labelPadding,D?16:30);this.setLegendColor(),C.symbol||(C.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(C.group)),C.symbol.attr({x:0,y:(z.baseline||0)-11,width:P,height:m}),C.labelWidth=P+A+(D?T:L(S.x,S.distance)+(this.maxLabelLength||0)),C.labelHeight=m+A+(D?u:0)}setState(z){this.series.forEach(function(O){O.setState(z)})}setVisible(){}getSeriesExtremes(){let z=this.series,O,C,A,F,S,T,D=z.length,P,m;for(this.dataMin=1/0,this.dataMax=-1/0;D--;){if(C=(T=z[D]).colorKey=L(T.options.colorKey,T.colorKey,T.pointValKey,T.zoneAxis,"y"),F=T.pointArrayMap,S=T[C+"Min"]&&T[C+"Max"],T[C+"Data"])O=T[C+"Data"];else if(F){if(O=[],A=F.indexOf(C),P=T.yData,A>=0&&P)for(m=0;mT+D&&(C=T+D+2),O.plotX=C,O.plotY=this.len-C,super.drawCrosshair(z,O),O.plotX=F,O.plotY=S,this.cross&&!this.cross.addedToColorAxis&&A.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(A.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||typeof this.crosshair!="object"||this.cross.attr({fill:this.crosshair.color})))}getPlotLinePath(z){let O=this.left,C=z.translatedValue,A=this.top;return f(C)?this.horiz?[["M",C-4,A-6],["L",C+4,A-6],["L",C,A],["Z"]]:[["M",O,C],["L",O-6,C+6],["L",O-6,C-6],["Z"]]:super.getPlotLinePath(z)}update(z,O){let C=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(z.dataClasses&&C.allItems||this.dataClasses)&&this.destroyItems(),super.update(z,O),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),C.colorizeItem(this,!0))}destroyItems(){let z=this.chart,O=this.legendItem||{};if(O.label)z.legend.destroyItem(this);else if(O.labels)for(let C of O.labels)z.legend.destroyItem(C);z.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(z){this.destroyItems(),super.remove(z)}getDataClassLegendSymbols(){let z,O=this,C=O.chart,A=O.legendItem&&O.legendItem.labels||[],F=C.options.legend,S=L(F.valueDecimals,-1),T=L(F.valueSuffix,""),D=P=>O.series.reduce((m,u)=>(m.push(...u.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let u=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",u===void 0?z="< ":v===void 0&&(z="> "),u!==void 0&&(z+=I(u,S)+T),u!==void 0&&v!==void 0&&(z+=" - "),v!==void 0&&(z+=I(v,S)+T),A.push(y({chart:C,name:z,options:{},drawLegendSymbol:l.rectangle,visible:!0,isDataClass:!0,setState:R=>{for(let j of D(m))j.setState(R)},setVisible:function(){this.visible=E=O.visible=!E;let R=[];for(let j of D(m))j.setVisible(E),j.hiddenInDataClass=!E,R.indexOf(j.series)===-1&&R.push(j.series);C.legend.colorizeItem(this,E),R.forEach(j=>{b(j,"afterDataClassLegendClick")})}},P))}),A}getSize(){let{chart:z,horiz:O}=this,{height:C,width:A}=this.options,{legend:F}=z.options;return{width:L(p(A)?_(A,z.chartWidth):void 0,F?.symbolWidth,O?w.defaultLegendLength:12),height:L(p(C)?_(C,z.chartHeight):void 0,F?.symbolHeight,O?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],y(w.prototype,o),Array.prototype.push.apply(i.keepProps,w.keepProps),w}),e(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(i,s){return i.ColorAxis=i.ColorAxis||s,i.ColorAxis.compose(i.Chart,i.Fx,i.Legend,i.Series),i}),e(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(i,s,r){var o;let{column:{prototype:a}}=i.seriesTypes,{addEvent:l,defined:h}=r;return function(c){function g(d){let p=this.series,y=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(y,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),d?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${y.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(d){let p={};return h(d.color)&&(!d.state||d.state==="normal")&&(p[this.colorProp||"fill"]=d.color),p},pointAttribs:a.pointAttribs},c.compose=function(d){return l(d.prototype.pointClass,"afterSetState",g),d}}(o||(o={})),o}),e(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s){let{scatter:{prototype:{pointClass:r}}}=i.seriesTypes,{clamp:o,defined:a,extend:l,pick:h}=s;class c extends r{applyOptions(d,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(d,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let d=this.series,p=d.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=d.xAxis,f=d.yAxis,M=this.options.marker||d.options.marker,L=d.pointPlacementToXValue(),_=h(this.pointPadding,p.pointPadding,0),w={x1:o(Math.round(x.len-x.translate(this.x-y,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:o(Math.round(x.len-x.translate(this.x+y,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:o(Math.round(f.translate(this.y-b,!1,!0,!1,!0)),-f.len,2*f.len),y2:o(Math.round(f.translate(this.y+b,!1,!0,!1,!0)),-f.len,2*f.len)};for(let k of[["width","x"],["height","y"]]){let z=k[0],O=k[1],C=O+"1",A=O+"2",F=Math.abs(w[C]-w[A]),S=M&&M.lineWidth||0,T=Math.abs(w[C]+w[A])/2,D=M&&M[z];if(a(D)&&D"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),e(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{doc:r}=i,{defined:o,pick:a}=s;return{colorFromPoint:function(l,h){let c=h.series.colorAxis;if(c){let g=c.toColor(l||0,h).split(")")[0].split("(")[1].split(",").map(d=>a(parseFloat(d),parseInt(d,10)));return g[3]=255*a(g[3],1),o(l)&&h.visible||(g[3]=0),g}return[0,0,0,0]},getContext:function(l){let{canvas:h,context:c}=l;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(l.canvas=r.createElement("canvas"),l.context=l.canvas.getContext("2d",{willReadFrequently:!0})||void 0,l.context)}}}),e(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(i,s,r,o,a,l,h,c){let{series:g,seriesTypes:{column:d,scatter:p}}=a,{prototype:{symbols:y}}=l,{addEvent:b,extend:x,fireEvent:f,isNumber:M,merge:L,pick:_}=h,{colorFromPoint:w,getContext:k}=c;class z extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let C=this,A=C.options,F=A.interpolation,S=A.marker||{};if(F){let{image:T,chart:D,xAxis:P,yAxis:m}=C,{reversed:u=!1,len:v}=P,{reversed:I=!1,len:E}=m,R={width:v,height:E};if(!T||C.isDirtyData||C.isDirtyCanvas){let j=k(C),{canvas:G,options:{colsize:W=1,rowsize:N=1},points:B,points:{length:X}}=C,V=D.colorAxis&&D.colorAxis[0];if(G&&j&&V){let{min:H,max:K}=P.getExtremes(),{min:U,max:Y}=m.getExtremes(),Z=K-H,q=Y-U,J=Math.round(Z/W/8*8),Q=Math.round(q/N/8*8),[$,tt]=[[J,J/Z,u,"ceil"],[Q,Q/q,!I,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),it=G.width=J+1,et=it*(G.height=Q+1),st=(X-1)/et,rt=new Uint8ClampedArray(4*et),nt=(ot,at)=>4*Math.ceil(it*tt(at-U)+$(ot-H));C.buildKDTree();for(let ot=0;ot{T.graphic&&(T.graphic[C.chart.styledMode?"css":"animate"](C.colorAttribs(T)),T.value===null&&T.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:C,dataMax:A}=g.prototype.getExtremes.call(this,this.valueData);return M(C)&&(this.valueMin=C),M(A)&&(this.valueMax=A),g.prototype.getExtremes.call(this)}getValidPoints(C,A){return g.prototype.getValidPoints.call(this,C,A,!0)}hasData(){return!!this.xData}init(){super.init.apply(this,arguments);let C=this.options;C.pointRange=_(C.pointRange,C.colsize||1),this.yAxis.axisPointRange=C.rowsize||1,y.ellipse=y.circle,C.marker&&M(C.borderRadius)&&(C.marker.r=C.borderRadius)}markerAttribs(C,A){let F=C.shapeArgs||{};if(C.hasImage)return{x:C.plotX,y:C.plotY};if(A&&A!=="normal"){let S=C.options.marker||{},T=this.options.marker||{},D=T.states&&T.states[A]||{},P=S.states&&S.states[A]||{},m=(P.width||D.width||F.width||0)+(P.widthPlus||D.widthPlus||0),u=(P.height||D.height||F.height||0)+(P.heightPlus||D.heightPlus||0);return{x:(F.x||0)+((F.width||0)-m)/2,y:(F.y||0)+((F.height||0)-u)/2,width:m,height:u}}return F}pointAttribs(C,A){let F=g.prototype.pointAttribs.call(this,C,A),S=this.options||{},T=this.chart.options.plotOptions||{},D=T.series||{},P=T.heatmap||{},m=C&&C.options.borderColor||S.borderColor||P.borderColor||D.borderColor,u=C&&C.options.borderWidth||S.borderWidth||P.borderWidth||D.borderWidth||F["stroke-width"];if(F.stroke=C&&C.marker&&C.marker.lineColor||S.marker&&S.marker.lineColor||m||this.color,F["stroke-width"]=u,A&&A!=="normal"){let v=L(S.states&&S.states[A],S.marker&&S.marker.states&&S.marker.states[A],C&&C.options.states&&C.options.states[A]||{});F.fill=v.color||i.parse(F.fill).brighten(v.brightness||0).get(),F.stroke=v.lineColor||F.stroke}return F}translate(){let{borderRadius:C,marker:A}=this.options,F=A&&A.symbol||"rect",S=y[F]?F:"rect",T=["circle","square"].indexOf(S)!==-1;if(!this.processedXData){let{xData:D,yData:P}=this.getProcessedData();this.processedXData=D,this.processedYData=P}for(let D of(this.generatePoints(),this.points)){let P=D.getCellAttributes(),m=Math.min(P.x1,P.x2),u=Math.min(P.y1,P.y2),v=Math.max(Math.abs(P.x2-P.x1),0),I=Math.max(Math.abs(P.y2-P.y1),0);if(D.hasImage=(D.marker&&D.marker.symbol||F||"").indexOf("url")===0,T){let E=Math.abs(v-I);m=Math.min(P.x1,P.x2)+(v{"use strict";(function(n){typeof uo=="object"&&uo.exports?(n.default=n,uo.exports=n):typeof define=="function"&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Math3D.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{deg2rad:r}=i,{pick:o}=s;function a(c,g,d,p){let y=g.options.chart.options3d,b=o(p,!!d&&g.inverted),x={x:g.plotWidth/2,y:g.plotHeight/2,z:y.depth/2,vd:o(y.depth,1)*o(y.viewDistance,0)},f=g.scale3d||1,M=r*y.beta*(b?-1:1),L=r*y.alpha*(b?-1:1),_={cosA:Math.cos(L),cosB:Math.cos(-M),sinA:Math.sin(L),sinB:Math.sin(-M)};return d||(x.x+=g.plotLeft,x.y+=g.plotTop),c.map(function(w){var k,z,O;let C=(k=(b?w.y:w.x)-x.x,z=(b?w.x:w.y)-x.y,O=(w.z||0)-x.z,{x:_.cosB*k-_.sinB*O,y:-_.sinA*_.sinB*k+_.cosA*z-_.cosB*_.sinA*O,z:_.cosA*_.sinB*k+_.sinA*z+_.cosA*_.cosB*O}),A=l(C,x,x.vd);return A.x=A.x*f+x.x,A.y=A.y*f+x.y,A.z=C.z*f+x.z,{x:b?A.y:A.x,y:b?A.x:A.y,z:A.z}})}function l(c,g,d){let p=d>0&&d=0?0:360),D.beta=D.beta%360+(D.beta>=0?0:360));let P=this.inverted,m=this.clipBox,u=this.margin;m[P?"y":"x"]=-(u[3]||0),m[P?"x":"y"]=-(u[0]||0),m[P?"height":"width"]=this.chartWidth+(u[3]||0)+(u[1]||0),m[P?"width":"height"]=this.chartHeight+(u[0]||0)+(u[2]||0),this.scale3d=1,D.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(D.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function z(){this.is3d()&&(this.isDirtyBox=!0)}function O(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function C(){this.chart3d||(this.chart3d=new T(this))}function A(D){return this.is3d()||D.apply(this,[].slice.call(arguments,1))}function F(D){let P,m=this.series.length;if(this.is3d())for(;m--;)(P=this.series[m]).translate(),P.render();else D.call(this)}function S(D){D.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(D,P){let m=D.prototype,u=P.prototype;m.is3d=function(){return!!this.options.chart.options3d?.enabled},m.propsRequireDirtyBox.push("chart.options3d"),m.propsRequireUpdateSeries.push("chart.options3d"),u.matrixSetter=function(){let v;if(this.pos<1&&(p(this.start)||p(this.end))){let I=this.start||[1,0,0,1,0,0],E=this.end||[1,0,0,1,0,0];v=[];for(let R=0;R<6;R++)v.push(this.pos*E[R]+(1-this.pos)*I[R])}else v=this.end;this.elem.attr(this.prop,v,null,!0)},y(!0,h,f.defaultOptions),d(D,"init",C),d(D,"addSeries",M),d(D,"afterDrawChartBox",L),d(D,"afterGetContainer",_),d(D,"afterInit",w),d(D,"afterSetChartSize",k),d(D,"beforeRedraw",z),d(D,"beforeRender",O),x(m,"isInsidePlot",A),x(m,"renderSeries",F),x(m,"setClassName",S)};class T{constructor(P){this.chart=P}get3dFrame(){let P=this.chart,m=P.options.chart.options3d,u=m.frame,v=P.plotLeft,I=P.plotLeft+P.plotWidth,E=P.plotTop,R=P.plotTop+P.plotHeight,j=m.depth,G=function(Q){let $=g(Q,P);return $>.5?1:$<-.5?-1:0},W=G([{x:v,y:R,z:j},{x:I,y:R,z:j},{x:I,y:R,z:0},{x:v,y:R,z:0}]),N=G([{x:v,y:E,z:0},{x:I,y:E,z:0},{x:I,y:E,z:j},{x:v,y:E,z:j}]),B=G([{x:v,y:E,z:0},{x:v,y:E,z:j},{x:v,y:R,z:j},{x:v,y:R,z:0}]),X=G([{x:I,y:E,z:j},{x:I,y:E,z:0},{x:I,y:R,z:0},{x:I,y:R,z:j}]),V=G([{x:v,y:R,z:0},{x:I,y:R,z:0},{x:I,y:E,z:0},{x:v,y:E,z:0}]),H=G([{x:v,y:E,z:j},{x:I,y:E,z:j},{x:I,y:R,z:j},{x:v,y:R,z:j}]),K=!1,U=!1,Y=!1,Z=!1;[].concat(P.xAxis,P.yAxis,P.zAxis).forEach(function(Q){Q&&(Q.horiz?Q.opposite?U=!0:K=!0:Q.opposite?Z=!0:Y=!0)});let q=function(Q,$,tt){let it=["size","color","visible"],et={};for(let rt=0;rt0),{size:b(et.size,1),color:b(et.color,"none"),frontFacing:$>0,visible:st}},J={axes:{},bottom:q([u.bottom,u.top,u],W,K),top:q([u.top,u.bottom,u],N,U),left:q([u.left,u.right,u.side,u],B,Y),right:q([u.right,u.left,u.side,u],X,Z),back:q([u.back,u.front,u],H,!0),front:q([u.front,u.back,u],V,!1)};if(m.axisLabelPosition==="auto"){let Q=function(nt,ot){return nt.visible!==ot.visible||nt.visible&&ot.visible&&nt.frontFacing!==ot.frontFacing},$=[];Q(J.left,J.front)&&$.push({y:(E+R)/2,x:v,z:0,xDir:{x:1,y:0,z:0}}),Q(J.left,J.back)&&$.push({y:(E+R)/2,x:v,z:j,xDir:{x:0,y:0,z:-1}}),Q(J.right,J.front)&&$.push({y:(E+R)/2,x:I,z:0,xDir:{x:0,y:0,z:1}}),Q(J.right,J.back)&&$.push({y:(E+R)/2,x:I,z:j,xDir:{x:-1,y:0,z:0}});let tt=[];Q(J.bottom,J.front)&&tt.push({x:(v+I)/2,y:R,z:0,xDir:{x:1,y:0,z:0}}),Q(J.bottom,J.back)&&tt.push({x:(v+I)/2,y:R,z:j,xDir:{x:-1,y:0,z:0}});let it=[];Q(J.top,J.front)&&it.push({x:(v+I)/2,y:E,z:0,xDir:{x:1,y:0,z:0}}),Q(J.top,J.back)&&it.push({x:(v+I)/2,y:E,z:j,xDir:{x:-1,y:0,z:0}});let et=[];Q(J.bottom,J.left)&&et.push({z:(0+j)/2,y:R,x:v,xDir:{x:0,y:0,z:-1}}),Q(J.bottom,J.right)&&et.push({z:(0+j)/2,y:R,x:I,xDir:{x:0,y:0,z:1}});let st=[];Q(J.top,J.left)&&st.push({z:(0+j)/2,y:E,x:v,xDir:{x:0,y:0,z:-1}}),Q(J.top,J.right)&&st.push({z:(0+j)/2,y:E,x:I,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,P,!1),ht=0;for(let lt=1;ltat*ct[ht][ot]||at*ct[lt][ot]==at*ct[ht][ot]&&ct[lt].zG.minX&&(N=Math.min(N,1-Math.abs((u+R)/(G.minX+R))%1)),vG.minY&&(N=G.minY<0?Math.min(N,(I+j)/(-G.minY+I+j)):Math.min(N,1-(I+j)/(G.minY+j)%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))})),M.reversed=!0;let _=b.call(this,M,!0,!0);if(_[0]&&_[0][0]==="M"&&(_[0]=["L",_[0][1],_[0][2]]),this.areaPath){let w=this.areaPath.splice(0,this.areaPath.length/2).concat(_);w.xMap=this.areaPath.xMap,this.areaPath=w}return this.graphPath=y,y}return{compose:function(p){c(a,"Area3DSeries")&&g(p.prototype,"getGraphPath",d)}}}),e(t,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),e(t,"Core/Axis/Tick3DComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{composed:r}=i,{addEvent:o,extend:a,pushUnique:l,wrap:h}=s;function c(d){let p=this.axis.axis3D;p&&a(d.pos,p.fix3dPosition(d.pos))}function g(d){let p=this.axis.axis3D,y=d.apply(this,[].slice.call(arguments,1));if(p){let b=y[0],x=y[1];if(b[0]==="M"&&x[0]==="L"){let f=[p.fix3dPosition({x:b[1],y:b[2],z:0}),p.fix3dPosition({x:x[1],y:x[2],z:0})];return this.axis.chart.renderer.toLineSegments(f)}}return y}return{compose:function(d){l(r,"Axis.Tick3D")&&(o(d,"afterGetLabelPosition",c),h(d.prototype,"getMarkPath",g))}}}),e(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(i,s,r,o,a,l){let{defaultOptions:h}=s,{deg2rad:c}=r,{perspective:g,perspective3D:d,shapeArea:p}=o,{addEvent:y,merge:b,pick:x,wrap:f}=l;function M(){let F=this.chart,S=this.options;F.is3d&&F.is3d()&&this.coll!=="colorAxis"&&(S.tickWidth=x(S.tickWidth,0),S.gridLineWidth=x(S.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 _(){this.axis3D||(this.axis3D=new A(this))}function w(F){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:F.apply(this,[].slice.call(arguments,1))}function k(F){if(!this.chart.is3d()||this.coll==="colorAxis")return F.apply(this,[].slice.call(arguments,1));let S=arguments,T=S[1],D=S[2],P=[],m=this.getPlotLinePath({value:T}),u=this.getPlotLinePath({value:D});if(m&&u)for(let v=0;vp(g([S,{x:S.x+X.x,y:S.y+X.y,z:S.z+X.z},{x:S.x+V.x,y:S.y+V.y,z:S.z+V.z}],D.chart))&&(X={x:-X.x,y:-X.y,z:-X.z});let U=g([{x:S.x,y:S.y,z:S.z},{x:S.x+X.x,y:S.y+X.y,z:S.z+X.z},{x:S.x+V.x,y:S.y+V.y,z:S.z+V.z}],D.chart);K.matrix=[U[1].x-U[0].x,U[1].y-U[0].y,U[2].x-U[0].x,U[2].y-U[0].y,K.x,K.y],K.matrix[4]-=K.x*K.matrix[0]+K.y*K.matrix[2],K.matrix[5]-=K.x*K.matrix[1]+K.y*K.matrix[3]}return K}swapZ(S,T){let D=this.axis;if(D.isZAxis){let P=T?0:D.chart.plotLeft;return{x:P+S.z,y:S.y,z:S.x-P}}return S}}return A}),e(t,"Core/Series/Series3D.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{composed:a}=i,{perspective:l}=s,{addEvent:h,extend:c,isNumber:g,merge:d,pick:p,pushUnique:y}=o;class b extends r{static compose(f){y(a,"Core.Series3D")&&(h(f,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),c(f.prototype,{translate3dPoints:b.prototype.translate3dPoints}))}translate3dPoints(){let f,M,L=this,_=L.options,w=L.chart,k=p(L.zAxis,w.options.zAxis[0]),z=[],O=[],C=_.stacking?g(_.stack)?_.stack:0:L.index||0;L.zPadding=C*(_.depth||0+(_.groupZPadding||1)),L.data.forEach(F=>{k&&k.translate?(M=k.logarithmic&&k.val2lin?k.val2lin(F.z):F.z,F.plotZ=k.translate(M),F.isInside=!!F.isInside&&M>=k.min&&M<=k.max):F.plotZ=L.zPadding,F.axisXpos=F.plotX,F.axisYpos=F.plotY,F.axisZpos=F.plotZ,z.push({x:F.plotX,y:F.plotY,z:F.plotZ}),O.push(F.plotX||0)}),L.rawPointsX=O;let A=l(z,w,!0);L.data.forEach((F,S)=>{f=A[S],F.plotX=f.x,F.plotY=f.y,F.plotZ=f.z})}}return b.defaultOptions=d(r.defaultOptions),b}),e(t,"Core/Renderer/SVG/SVGElement3D.js",[t["Core/Color/Color.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(i,s,r){let{parse:o}=i,{Element:a}=s.getRendererType().prototype,{defined:l,pick:h}=r;class c extends a{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(d){let p=this.renderer,y=p[this.pathType+"Path"](d),b=y.zIndexes;for(let x of this.parts){let f={class:"highcharts-3d-"+x,zIndex:b[x]||0};p.styledMode&&(x==="top"?f.filter="url(#highcharts-brighter)":x==="side"&&(f.filter="url(#highcharts-darker)")),this[x]=p.path(y[x]).attr(f).add(this)}this.attr({"stroke-linejoin":"round",zIndex:b.group}),this.forcedSides=y.forcedSides}singleSetterForParts(d,p,y,b,x,f){let M={},L=[null,null,b||"attr",x,f],_=y&&y.zIndexes;if(y){for(let w of(_&&_.group&&this.attr({zIndex:_.group}),Object.keys(y)))M[w]={},M[w][d]=y[w],_&&(M[w].zIndex=y.zIndexes[w]||0);L[1]=M}else M[d]=p,L[0]=M;return this.processParts.apply(this,L)}processParts(d,p,y,b,x){for(let f of this.parts)p&&(d=h(p[f],!1)),d!==!1&&this[f][y](d,b,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(d,p,y,b){if(typeof d=="string"&&p!==void 0){let x=d;(d={})[x]=p}return d.shapeArgs||l(d.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](d.shapeArgs||d)):super.attr(d,void 0,y,b)}animate(d,p,y){if(l(d.x)&&l(d.y)){let b=this.renderer[this.pathType+"Path"](d),x=b.forcedSides;this.singleSetterForParts("d",null,b,"animate",p,y),this.attr({zIndex:b.zIndexes.group}),x===this.forcedSides||(this.forcedSides=x,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(d,p,y);return this}fillSetter(d){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:d,top:o(d).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:o(d).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=d,this}}return c.types={base:c,cuboid:c},c}),e(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(i,s,r,o,a,l){var h;let{animObject:c}=i,{parse:g}=s,{charts:d,deg2rad:p}=r,{perspective:y,shapeArea:b}=o,{defined:x,extend:f,merge:M,pick:L}=l,_=Math.cos,w=Math.sin,k=Math.PI,z=4*(Math.sqrt(2)-1)/3/(k/2);function O(C,A,F,S,T,D,P,m){let u=D-T,v=[];return D>T&&D-T>Math.PI/2+1e-4?v=(v=v.concat(O(C,A,F,S,T,T+Math.PI/2,P,m))).concat(O(C,A,F,S,T+Math.PI/2,D,P,m)):DMath.PI/2+1e-4?v=(v=v.concat(O(C,A,F,S,T,T-Math.PI/2,P,m))).concat(O(C,A,F,S,T-Math.PI/2,D,P,m)):[["C",C+F*Math.cos(T)-F*z*u*Math.sin(T)+P,A+S*Math.sin(T)+S*z*u*Math.cos(T)+m,C+F*Math.cos(D)+F*z*u*Math.sin(D)+P,A+S*Math.sin(D)-S*z*u*Math.cos(D)+m,C+F*Math.cos(D)+P,A+S*Math.sin(D)+m]]}return function(C){function A(I,E){let R=[];for(let j of I)R.push(["L",j.x,j.y]);return I.length&&(R[0][0]="M",E&&R.push(["Z"])),R}function F(I){let E=[],R=!0;for(let j of I)E.push(R?["M",j.x,j.y]:["L",j.x,j.y]),R=!R;return E}function S(I){let E=this,R=E.Element.prototype,j=E.createElement("path");return j.vertexes=[],j.insidePlotArea=!1,j.enabled=!0,j.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 W=d[E.chartIndex],N=y(this.vertexes,W,this.insidePlotArea),B=E.toLinePath(N,!0),X=b(N);G.d=B,G.visibility=this.enabled&&X>0?"inherit":"hidden"}return R.attr.apply(this,arguments)},j.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 W=d[E.chartIndex],N=y(this.vertexes,W,this.insidePlotArea),B=E.toLinePath(N,!0),X=b(N),V=this.enabled&&X>0?"visible":"hidden";G.d=B,this.attr("visibility",V)}return R.animate.apply(this,arguments)},j.attr(I)}function T(I){let E=this,R=E.Element.prototype,j=E.g(),G=j.destroy;return this.styledMode||j.attr({"stroke-linejoin":"round"}),j.faces=[],j.destroy=function(){for(let W=0;WW.faces.length;)j.faces.pop().destroy();for(;j.faces.lengthW.faces.length;)j.faces.pop().destroy();for(;j.faces.lengthG===0&&st>1&&st<6?{x:U[st].x,y:U[st].y+10,z:U[st].z}:U[0].x===U[7].x&&st>=4?{x:U[st].x+10,y:U[st].y,z:U[st].z}:N===0&&st<2||st>5?{x:U[st].x,y:U[st].y,z:U[st].z+10}:U[st],Z=st=>U[st],q=(st,rt,nt)=>{let ot=st.map(Z),at=rt.map(Z),ct=st.map(Y),ht=rt.map(Y),lt=[[],-1];return 0>b(ot)?lt=[ot,0]:0>b(at)?lt=[at,1]:nt&&(V.push(nt),lt=0>b(ct)?[ot,0]:0>b(ht)?[at,1]:[ot,0]),lt},J=(H=q([3,2,1,0],[7,6,5,4],"front"))[0],Q=H[1],$=(H=q([1,6,7,0],[4,5,2,3],"top"))[0],tt=H[1],it=(H=q([1,2,5,6],[0,7,4,3],"side"))[0],et=H[1];return et===1?K+=1e6*(B.plotWidth-E):et||(K+=1e6*E),K+=10*(!tt||X>=0&&X<=180||X<360&&X>357.5?B.plotHeight-R:10+R),Q===1?K+=100*j:Q||(K+=100*(1e3-j)),{front:this.toLinePath(J,!0),top:this.toLinePath($,!0),side:this.toLinePath(it,!0),zIndexes:{group:Math.round(K)},forcedSides:V,isFront:Q,isTop:tt}}function u(I){let E=this.g(),R=this.Element.prototype,j=["x","y","r","innerR","start","end","depth"];function G(W){let N={},B=!1,X;for(X in W=M(W))j.indexOf(X)!==-1&&(N[X]=W[X],delete W[X],B=!0);return!!B&&[N,W]}for(let W of((I=M(I)).alpha=(I.alpha||0)*p,I.beta=(I.beta||0)*p,E.top=this.path(),E.side1=this.path(),E.side2=this.path(),E.inn=this.path(),E.out=this.path(),E.onAdd=function(){let N=E.parentGroup,B=E.attr("class");for(let X of(E.top.add(E),["out","inn","side1","side2"]))E[X].attr({class:B+" highcharts-3d-side"}).add(N)},["addClass","removeClass"]))E[W]=function(){let N=arguments;for(let B of["top","out","inn","side1","side2"])E[B][W].apply(E[B],N)};for(let W of(E.setPaths=function(N){let B=E.renderer.arc3dPath(N),X=100*B.zTop;E.attribs=N,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=X,E.attr({zIndex:X}),N.center&&(E.top.setRadialReference(N.center),delete N.center)},E.setPaths(I),E.fillSetter=function(N){let B=g(N).brighten(-.1).get();return this.fill=N,this.side1.attr({fill:B}),this.side2.attr({fill:B}),this.inn.attr({fill:B}),this.out.attr({fill:B}),this.top.attr({fill:N}),this},["opacity","translateX","translateY","visibility"]))E[W+"Setter"]=function(N,B){for(let X of(E[B]=N,["out","inn","side1","side2","top"]))E[X].attr(B,N)};return E.attr=function(W){let N,B;return typeof W=="object"&&(B=G(W))&&(N=B[0],arguments[0]=B[1],f(E.attribs,N),E.setPaths(E.attribs)),R.attr.apply(E,arguments)},E.animate=function(W,N,B){let X,V,H=this.attribs,K="data-"+Math.random().toString(26).substring(2,9);delete W.center,delete W.z,delete W.alpha,delete W.beta;let U=c(L(N,this.renderer.globalAnimation));return U.duration&&(X=G(W),E[K]=0,W[K]=1,E[K+"Setter"]=r.noop,X&&(V=X[0],U.step=function(Y,Z){let q=J=>H[J]+(L(V[J],H[J])-H[J])*Z.pos;Z.prop===K&&Z.elem.setPaths(M(H,{x:q("x"),y:q("y"),r:q("r"),innerR:q("innerR"),start:q("start"),end:q("end"),depth:q("depth")}))}),N=U),R.animate.call(this,W,N,B)},E.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),R.destroy.call(this)},E.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},E.show=function(W){this.top.show(W),this.out.show(W),this.inn.show(W),this.side1.show(W),this.side2.show(W)},E}function v(I){let E=I.x||0,R=I.y||0,j=I.start||0,G=(I.end||0)-1e-5,W=I.r||0,N=I.innerR||0,B=I.depth||0,X=I.alpha||0,V=I.beta||0,H=Math.cos(j),K=Math.sin(j),U=Math.cos(G),Y=Math.sin(G),Z=W*Math.cos(V),q=W*Math.cos(X),J=N*Math.cos(V),Q=N*Math.cos(X),$=B*Math.sin(V),tt=B*Math.sin(X),it=[["M",E+Z*H,R+q*K]];(it=it.concat(O(E,R,Z,q,j,G,0,0))).push(["L",E+J*U,R+Q*Y]),(it=it.concat(O(E,R,J,Q,G,j,0,0))).push(["Z"]);let et=V>0?Math.PI/2:0,st=X>0?0:Math.PI/2,rt=j>-et?j:G>-et?-et:j,nt=Got&&jk-st&&jMath.PI&&(se=2*Math.PI-se),se}Et=mt(Et),dt=mt(dt);let Pt=1e5*(St=mt(St)),Yt=1e5*dt,xe=1e5*Et;return{top:it,zTop:1e5*Math.PI+1,out:at,zOut:Math.max(Pt,Yt,xe),inn:ct,zInn:Math.max(Pt,Yt,xe),side1:ht,zSide1:.99*xe,side2:lt,zSide2:.99*Yt}}C.compose=function(I){let E=I.prototype;E.element3d||f(E,{Element3D:a,arc3d:u,arc3dPath:v,cuboid:P,cuboidPath:m,element3d:D,face3d:S,polyhedron:T,toLinePath:A,toLineSegments:F})}}(h||(h={})),h}),e(t,"Core/Axis/ZAxis.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(i,s,r){let{defaultOptions:o}=s,{addEvent:a,merge:l,pick:h,splat:c}=r;function g(y){return new p(this,y)}function d(){let y=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],y.forEach(b=>{this.addZAxis(b).setScale()}))}class p extends i{constructor(){super(...arguments),this.isZAxis=!0}static compose(b){let x=b.prototype;x.addZAxis||(o.zAxis=l(o.xAxis,{offset:0,lineWidth:0}),x.addZAxis=g,x.collectionsWithInit.zAxis=[x.addZAxis],x.collectionsWithUpdate.push("zAxis"),a(b,"afterGetAxes",d))}init(b,x){this.isZAxis=!0,super.init(b,x,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(b=>{if(b.reserveSpace()){let x=b.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&x<=0&&(x=void 0);let f=b.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 b=this.chart;super.setAxisSize(),this.width=this.len=b.options.chart.options3d&&b.options.chart.options3d.depth||0,this.right=b.chartWidth-this.width-this.left}}return p}),e(t,"Series/Column3D/Column3DComposition.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Utilities.js"]],function(i,s,r){let{composed:o}=i,{perspective:a}=s,{addEvent:l,extend:h,pick:c,pushUnique:g,wrap:d}=r;function p(){let C=this.chart,A=this.options,F=A.depth,S=(A.stacking?A.stack||0:this.index)*(F+(A.groupZPadding||1)),T=this.borderWidth%2?.5:0,D;for(let P of(C.inverted&&!this.yAxis.reversed&&(T*=-1),A.grouping!==!1&&(S=0),S+=A.groupZPadding||1,this.points))if(P.outside3dPlot=null,P.y!==null){let m,u=h({x:0,y:0,width:0,height:0},P.shapeArgs||{}),v=[["x","width"],["y","height"]],I=P.tooltipPos;for(let E of v)if((m=u[E[0]]-T)<0&&(u[E[1]]+=u[E[0]]+T,u[E[0]]=-T,m=0),m+u[E[1]]>this[E[0]+"Axis"].len&&u[E[1]]!==0&&(u[E[1]]=this[E[0]+"Axis"].len-u[E[0]]),u[E[1]]!==0&&(u[E[0]]>=this[E[0]+"Axis"].len||u[E[0]]+u[E[1]]<=T)){for(let R in u)u[R]=R==="y"?-9999:0;P.outside3dPlot=!0}if(P.shapeType==="roundedRect"&&(P.shapeType="cuboid"),P.shapeArgs=h(u,{z:S,depth:F,insidePlotArea:!0}),D={x:u.x+u.width/2,y:u.y,z:S+F/2},C.inverted&&(D.x=u.height,D.y=P.clientX||0),P.axisXpos=D.x,P.axisYpos=D.y,P.axisZpos=D.z,P.plot3d=a([D],C,!0,!1)[0],I){let E=a([{x:I[0],y:I[1],z:S+F/2}],C,!0,!1)[0];P.tooltipPos=[E.x,E.y]}}this.z=S}function y(){if(this.chart.is3d()){let C=this.options,A=C.grouping,F=C.stacking,S=this.yAxis.options.reversedStacks,T=0;if(!(A!==void 0&&!A)){let D,P=function(u,v){let I=u.series,E={totalStacks:0},R,j=1;return I.forEach(function(G){E[R=c(G.options.stack,v?0:I.length-1-G.index)]?E[R].series.push(G):(E[R]={series:[G],position:j},j++)}),E.totalStacks=j+1,E}(this.chart,F),m=C.stack||0;for(D=0;D=90&&u.alpha<=270&&(I.y+=A.shapeArgs.width)),I=a([I],D,!0,!1)[0],T.x=I.x-v,T.y=A.outside3dPlot?-9e9:I.y}C.apply(this,[].slice.call(arguments,1))}function z(C){return!arguments[2].outside3dPlot&&C.apply(this,[].slice.call(arguments,1))}function O(C,A){let F=C.apply(this,[].slice.call(arguments,1)),S=this.axis.chart,{width:T}=A;if(S.is3d()&&this.base){let D=+this.base.split(",")[0],P=S.series[D],m=S.options.chart.options3d;if(P&&P.type==="column"){let u={x:F.x+(S.inverted?F.height:T/2),y:F.y,z:P.options.depth/2};S.inverted&&(F.width=0,m.alpha>=90&&m.alpha<=270&&(u.y+=T)),u=a([u],S,!0,!1)[0],F.x=u.x-T/2,F.y=u.y}}return F}return{compose:function(C,A){if(g(o,"Column3D")){let F=C.prototype,S=A.prototype,{column:T,columnRange:D}=C.types;if(d(F,"alignDataLabel",k),d(F,"justifyDataLabel",z),d(S,"getStackBox",O),T){let P=T.prototype,m=P.pointClass.prototype;P.translate3dPoints=()=>{},P.translate3dShapes=p,l(P,"afterInit",y),d(m,"hasNewShapeType",b),d(P,"animate",x),d(P,"plotGroup",f),d(P,"pointAttribs",M),d(P,"setState",L),d(P,"setVisible",_),d(P,"translate",w)}if(D){let P=D.prototype;d(P.pointClass.prototype,"hasNewShapeType",b),d(P,"plotGroup",f),d(P,"pointAttribs",M),d(P,"setState",L),d(P,"setVisible",_)}}}}}),e(t,"Series/Pie3D/Pie3DPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{pie:{prototype:{pointClass:s}}}=i.seriesTypes;return class extends s{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),e(t,"Series/Pie3D/Pie3DSeries.js",[t["Core/Globals.js"],t["Series/Pie3D/Pie3DPoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(i,s,r,o){let{composed:a,deg2rad:l}=i,{pie:h}=r.seriesTypes,{extend:c,pick:g,pushUnique:d}=o;class p extends h{static compose(b){d(a,"Pie3D")&&(b.types.pie=p)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(b){if(this.chart.is3d()){let x=this.center,f=this.group,M=this.markerGroup,L=this.options.animation,_;L===!0&&(L={}),b?(f.oldtranslateX=g(f.oldtranslateX,f.translateX),f.oldtranslateY=g(f.oldtranslateY,f.translateY),_={translateX:x[0],translateY:x[1],scaleX:.001,scaleY:.001},f.attr(_),M&&(M.attrSetters=f.attrSetters,M.attr(_))):(_={translateX:f.oldtranslateX,translateY:f.oldtranslateY,scaleX:1,scaleY:1},f.animate(_,L),M&&M.animate(_,L))}else super.animate.apply(this,arguments)}getDataLabelPosition(b,x){let f=super.getDataLabelPosition(b,x);if(this.chart.is3d()){let M=this.chart.options.chart.options3d,L=b.shapeArgs,_=L.r,w=(L.alpha||M?.alpha)*l,k=(L.beta||M?.beta)*l,z=(L.start+L.end)/2,O=f.connectorPosition,C=-_*(1-Math.cos(w))*Math.sin(z),A=_*(Math.cos(k)-1)*Math.cos(z);for(let F of[f?.natural,O.breakAt,O.touchingSliceAt])F.x+=A,F.y+=C}return f}pointAttribs(b){let x=super.pointAttribs.apply(this,arguments),f=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(x.stroke=f.edgeColor||b.color||this.color,x["stroke-width"]=g(f.edgeWidth,1)),x}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let b=this.options,x=b.depth||0,f=this.chart.options.chart.options3d,M=f.alpha,L=f.beta,_=b.stacking?(b.stack||0)*x:this._i*x;for(let w of(_+=x/2,b.grouping!==!1&&(_=0),this.points)){let k=w.shapeArgs;w.shapeType="arc3d",k.z=_,k.depth=.75*x,k.alpha=M,k.beta=L,k.center=this.center;let z=(k.end+k.start)/2;w.slicedTranslation={translateX:Math.round(Math.cos(z)*b.slicedOffset*Math.cos(M*l)),translateY:Math.round(Math.sin(z)*b.slicedOffset*Math.cos(M*l))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let b of this.points)if(b.graphic)for(let x of["out","inn","side1","side2"])b.graphic&&(b.graphic[x].element.point=b)}}}return c(p.prototype,{pointClass:s}),p}),e(t,"Series/Scatter3D/Scatter3DPoint.js",[t["Series/Scatter/ScatterSeries.js"],t["Core/Utilities.js"]],function(i,s){let{pointClass:r}=i.prototype,{defined:o}=s;return class extends r{applyOptions(){return super.applyOptions.apply(this,arguments),o(this.z)||(this.z=0),this}}}),e(t,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),e(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(i,s,r,o,a,l){let{pointCameraDistance:h}=i,{extend:c,merge:g}=l;class d extends o{pointAttribs(y){let b=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&y&&(b.zIndex=h(y,this.chart)),b}}return d.defaultOptions=g(o.defaultOptions,r),c(d.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:s}),a.registerSeriesType("scatter3d",d),d}),e(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(i,s,r,o,a,l,h,c,g,d,p){return r.compose(i.seriesTypes.area),o.compose(i.Axis,i.Tick),s.compose(i.Chart,i.Fx),d.compose(i.Series,h),p.compose(i.Series),l.compose(i.Series),c.compose(a.getRendererType()),g.compose(i.Chart),i})})});var $u=ai((xA,po)=>{"use strict";(function(n){typeof po=="object"&&po.exports?(n.default=n,po.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var i;return function(s){s.compose=function(o){return o.navigation||(o.navigation=new r(o)),o};class r{constructor(a){this.updates=[],this.chart=a}addUpdate(a){this.chart.navigation.updates.push(a)}update(a,l){this.updates.forEach(h=>{h.call(this.chart,a,l)})}}s.Additions=r}(i||(i={})),i}),e(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(i){let{isTouchDevice:s}=i;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:s?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),e(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var i;return function(s){let r=[];function o(l,h,c,g){return[["M",l,h+2.5],["L",l+c,h+2.5],["M",l,h+g/2+.5],["L",l+c,h+g/2+.5],["M",l,h+g-1.5],["L",l+c,h+g-1.5]]}function a(l,h,c,g){let d=g/3-2;return[].concat(this.circle(c-d,h,d,d),this.circle(c-d,h+d+4,d,d),this.circle(c-d,h+2*(d+4),d,d))}s.compose=function(l){if(r.indexOf(l)===-1){r.push(l);let h=l.prototype.symbols;h.menu=o,h.menuball=a.bind(h)}}}(i||(i={})),i}),e(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s,r){let{composed:o}=s,{addEvent:a,fireEvent:l,pushUnique:h}=r;function c(){this.fullscreen=new g(this)}class g{static compose(p){h(o,"Fullscreen")&&a(p,"beforeRender",c)}constructor(p){this.chart=p,this.isOpen=!1;let y=p.renderTo;!this.browserProps&&(typeof y.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:y.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:y.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:y.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let p=this,y=p.chart,b=y.options.chart;l(y,"fullscreenClose",null,function(){p.isOpen&&p.browserProps&&y.container.ownerDocument instanceof Document&&y.container.ownerDocument[p.browserProps.exitFullscreen](),p.unbindFullscreenEvent&&(p.unbindFullscreenEvent=p.unbindFullscreenEvent()),y.setSize(p.origWidth,p.origHeight,!1),p.origWidth=void 0,p.origHeight=void 0,b.width=p.origWidthOption,b.height=p.origHeightOption,p.origWidthOption=void 0,p.origHeightOption=void 0,p.isOpen=!1,p.setButtonText()})}open(){let p=this,y=p.chart,b=y.options.chart;l(y,"fullscreenOpen",null,function(){if(b&&(p.origWidthOption=b.width,p.origHeightOption=b.height),p.origWidth=y.chartWidth,p.origHeight=y.chartHeight,p.browserProps){let x=a(y.container.ownerDocument,p.browserProps.fullscreenChange,function(){p.isOpen?(p.isOpen=!1,p.close()):(y.setSize(null,null,!1),p.isOpen=!0,p.setButtonText())}),f=a(y,"destroy",x);p.unbindFullscreenEvent=()=>{x(),f()};let M=y.renderTo[p.browserProps.requestFullscreen]();M&&M.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let p=this.chart,y=p.exportDivElements,b=p.options.exporting,x=b&&b.buttons&&b.buttons.contextButton.menuItems,f=p.options.lang;if(b&&b.menuItemDefinitions&&f&&f.exitFullscreen&&f.viewFullscreen&&x&&y){let M=y[x.indexOf("viewFullscreen")];M&&i.setElementHTML(M,this.isOpen?f.exitFullscreen:b.menuItemDefinitions.viewFullscreen.text||f.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return g}),e(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{win:r}=i,{discardElement:o,objectEach:a}=s,l={ajax:function(h){let c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},g=new XMLHttpRequest;function d(p,y){h.error&&h.error(p,y)}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),a(h.headers,function(p,y){g.setRequestHeader(y,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(y){if(y instanceof Error)return d(g,y)}return h.success&&h.success(p,g)}d(g,g.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),g.send(h.data)},getJSON:function(h,c){l.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,g){let d=new r.FormData;a(c,function(b,x){d.append(x,b)}),d.append("b64","true");let{filename:p,type:y}=c;return r.fetch(h,re({method:"POST",body:d},g)).then(b=>{b.ok&&b.text().then(x=>{let f=document.createElement("a");f.href=`data:${y};base64,${x}`,f.download=p,f.click(),o(f)})})}};return l}),e(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(i,s,r,o,a,l,h,c,g,d){var p;let{defaultOptions:y}=o,{doc:b,SVG_NS:x,win:f}=c,{addEvent:M,css:L,createElement:_,discardElement:w,extend:k,find:z,fireEvent:O,isObject:C,merge:A,objectEach:F,pick:S,removeEvent:T,uniqueKey:D}=d;return function(P){let m,u=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^\d+$/],v=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];P.inlineAllowlist=[];let I=["clipPath","defs","desc"];function E($){let tt,it,et=this,st=et.renderer,rt=A(et.options.navigation.buttonOptions,$),nt=rt.onclick,ot=rt.menuItems,at=rt.symbolSize||12;if(et.btnCount||(et.btnCount=0),et.exportDivElements||(et.exportDivElements=[],et.exportSVGElements=[]),rt.enabled===!1||!rt.theme)return;let ct=et.styledMode?{}:rt.theme;nt?it=function(lt){lt&<.stopPropagation(),nt.call(et,lt)}:ot&&(it=function(lt){lt&<.stopPropagation(),et.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=S(ct.paddingLeft,30):rt.text||k(ct,{width:rt.width,height:rt.height,padding:0});let ht=st.button(rt.text,0,0,it,ct,void 0,void 0,void 0,void 0,rt.useHTML).addClass($.className).attr({title:S(et.options.lang[rt._titleKey||rt.titleKey],"")});ht.menuClassName=$.menuClassName||"highcharts-menu-"+et.btnCount++,rt.symbol&&(tt=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),et.styledMode||tt.attr({stroke:rt.symbolStroke,fill:rt.symbolFill,"stroke-width":rt.symbolStrokeWidth||1})),ht.add(et.exportingGroup).align(k(rt,{width:ht.width,x:S(rt.x,et.buttonOffset)}),!0,"spacingBox"),et.buttonOffset+=((ht.width||0)+rt.buttonSpacing)*(rt.align==="right"?-1:1),et.exportSVGElements.push(ht,tt)}function R(){if(!this.printReverseInfo)return;let{childNodes:$,origDisplay:tt,resetParams:it}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call($,function(et,st){et.nodeType===1&&(et.style.display=tt[st]||"")}),this.isPrinting=!1,it&&this.setSize.apply(this,it),delete this.printReverseInfo,m=void 0,O(this,"afterPrint")}function j(){let $=b.body,tt=this.options.exporting.printMaxWidth,it={childNodes:$.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),O(this,"beforePrint"),tt&&this.chartWidth>tt&&(it.resetParams=[this.options.chart.width,void 0,!1],this.setSize(tt,void 0,!1)),[].forEach.call(it.childNodes,function(et,st){et.nodeType===1&&(it.origDisplay[st]=et.style.display,et.style.display="none")}),this.moveContainers($),this.printReverseInfo=it}function G($){$.renderExporting(),M($,"redraw",$.renderExporting),M($,"destroy",$.destroyExport)}function W($,tt,it,et,st,rt,nt){let ot=this,at=ot.options.navigation,ct=ot.chartWidth,ht=ot.chartHeight,lt="cache-"+$,yt=Math.max(st,rt),Et,dt=ot[lt];dt||(ot.exportContextMenu=ot[lt]=dt=_("div",{className:$},re({position:"absolute",zIndex:1e3,padding:yt+"px",pointerEvents:"auto"},ot.renderer.style),ot.scrollablePlotArea?.fixedDiv||ot.container),Et=_("ul",{className:"highcharts-menu"},ot.styledMode?{}:{listStyle:"none",margin:0,padding:0},dt),ot.styledMode||L(Et,k({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"}),d.clearTimeout(dt.hideTimer),O(ot,"exportMenuHidden")},ot.exportEvents.push(M(dt,"mouseleave",function(){dt.hideTimer=f.setTimeout(dt.hideMenu,500)}),M(dt,"mouseenter",function(){d.clearTimeout(dt.hideTimer)}),M(b,"mouseup",function(mt){ot.pointer?.inClass(mt.target,$)||dt.hideMenu()}),M(dt,"click",function(){ot.openMenu&&dt.hideMenu()})),tt.forEach(function(mt){if(typeof mt=="string"&&(mt=ot.options.exporting.menuItemDefinitions[mt]),C(mt,!0)){let Pt;mt.separator?Pt=_("hr",void 0,void 0,Et):(mt.textKey==="viewData"&&ot.isDataTableVisible&&(mt.textKey="hideData"),Pt=_("li",{className:"highcharts-menu-item",onclick:function(Yt){Yt&&Yt.stopPropagation(),dt.hideMenu(),typeof mt!="string"&&mt.onclick&&mt.onclick.apply(ot,arguments)}},void 0,Et),i.setElementHTML(Pt,mt.text||ot.options.lang[mt.textKey]),ot.styledMode||(Pt.onmouseover=function(){L(this,at.menuItemHoverStyle)},Pt.onmouseout=function(){L(this,at.menuItemStyle)},L(Pt,k({cursor:"pointer"},at.menuItemStyle||{})))),ot.exportDivElements.push(Pt)}}),ot.exportDivElements.push(Et,dt),ot.exportMenuWidth=dt.offsetWidth,ot.exportMenuHeight=dt.offsetHeight);let St={display:"block"};it+(ot.exportMenuWidth||0)>ct?St.right=ct-it-st-yt+"px":St.left=it-yt+"px",et+rt+(ot.exportMenuHeight||0)>ht&&nt.alignOptions?.verticalAlign!=="top"?St.bottom=ht-et-yt+"px":St.top=et+rt-yt+"px",L(dt,St),L(ot.renderTo,{overflow:""}),L(ot.container,{overflow:""}),ot.openMenu=!0,O(ot,"exportMenuShown")}function N($){let tt,it=$?$.target:this,et=it.exportSVGElements,st=it.exportDivElements,rt=it.exportEvents;et&&(et.forEach((nt,ot)=>{nt&&(nt.onclick=nt.ontouchstart=null,it[tt="cache-"+nt.menuClassName]&&delete it[tt],et[ot]=nt.destroy())}),et.length=0),it.exportingGroup&&(it.exportingGroup.destroy(),delete it.exportingGroup),st&&(st.forEach(function(nt,ot){nt&&(d.clearTimeout(nt.hideTimer),T(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($,tt){let it=this.getSVGForExport($,tt);$=A(this.options.exporting,$),g.post($.url,{filename:$.filename?$.filename.replace(/\//g,"-"):this.getFilename(),type:$.type,width:$.width,scale:$.scale,svg:it},$.fetchOptions)}function X(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function V(){let $=this.userOptions.title&&this.userOptions.title.text,tt=this.options.exporting.filename;return tt?tt.replace(/\//g,"-"):(typeof $=="string"&&(tt=$.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z\d\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!tt||tt.length<5)&&(tt="chart"),tt)}function H($){let tt,it,et=A(this.options,$);et.plotOptions=A(this.userOptions.plotOptions,$&&$.plotOptions),et.time=A(this.userOptions.time,$&&$.time);let st=_("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},b.body),rt=this.renderTo.style.width,nt=this.renderTo.style.height,ot=et.exporting.sourceWidth||et.chart.width||/px$/.test(rt)&&parseInt(rt,10)||(et.isGantt?800:600),at=et.exporting.sourceHeight||et.chart.height||/px$/.test(nt)&&parseInt(nt,10)||400;k(et.chart,{animation:!1,renderTo:st,forExport:!0,renderer:"SVGRenderer",width:ot,height:at}),et.exporting.enabled=!1,delete et.data,et.series=[],this.series.forEach(function(lt){(it=A(lt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:lt.visible})).isInternal||et.series.push(it)});let ct={};this.axes.forEach(function(lt){lt.userOptions.internalKey||(lt.userOptions.internalKey=D()),lt.options.isInternal||(ct[lt.coll]||(ct[lt.coll]=!0,et[lt.coll]=[]),et[lt.coll].push(A(lt.userOptions,{visible:lt.visible,type:lt.type,uniqueNames:lt.uniqueNames})))}),et.colorAxis=this.userOptions.colorAxis;let ht=new this.constructor(et,this.callback);return $&&["xAxis","yAxis","series"].forEach(function(lt){let yt={};$[lt]&&(yt[lt]=$[lt],ht.update(yt))}),this.axes.forEach(function(lt){let yt=z(ht.axes,function(mt){return mt.options.internalKey===lt.userOptions.internalKey}),Et=lt.getExtremes(),dt=Et.userMin,St=Et.userMax;yt&&(dt!==void 0&&dt!==yt.min||St!==void 0&&St!==yt.max)&&yt.setExtremes(dt,St,!0,!1)}),tt=ht.getChartHTML(),O(this,"getSVG",{chartCopy:ht}),tt=this.sanitizeSVG(tt,et),et=null,ht.destroy(),w(st),tt}function K($,tt){let it=this.options.exporting;return this.getSVG(A({chart:{borderRadius:0}},it.chartOptions,tt,{exporting:{sourceWidth:$&&$.sourceWidth||it.sourceWidth,sourceHeight:$&&$.sourceHeight||it.sourceHeight}}))}function U(){let $,tt=P.inlineAllowlist,it={},et=b.createElement("iframe");L(et,{width:"1px",height:"1px",visibility:"hidden"}),b.body.appendChild(et);let st=et.contentWindow&&et.contentWindow.document;st&&st.body.appendChild(st.createElementNS(x,"svg")),function rt(nt){let ot,at,ct,ht,lt,yt,Et={};if(st&&nt.nodeType===1&&I.indexOf(nt.nodeName)===-1){if(ot=f.getComputedStyle(nt,null),at=nt.nodeName==="svg"?{}:f.getComputedStyle(nt.parentNode,null),!it[nt.nodeName]){$=st.getElementsByTagName("svg")[0],ct=st.createElementNS(nt.namespaceURI,nt.nodeName),$.appendChild(ct);let dt=f.getComputedStyle(ct,null),St={};for(let mt in dt)mt.length<1e3&&typeof dt[mt]=="string"&&!/^\d+$/.test(mt)&&(St[mt]=dt[mt]);it[nt.nodeName]=St,nt.nodeName==="text"&&delete it.text.fill,$.removeChild(ct)}for(let dt in ot)(c.isFirefox||c.isMS||c.isSafari||Object.hasOwnProperty.call(ot,dt))&&function(St,mt){if(ht=lt=!1,tt.length){for(yt=tt.length;yt--&&!lt;)lt=tt[yt].test(mt);ht=!lt}for(mt==="transform"&&St==="none"&&(ht=!0),yt=u.length;yt--&&!ht;){if(mt.length>1e3)throw Error("Input too long");ht=u[yt].test(mt)||typeof St=="function"}!ht&&(at[mt]!==St||nt.nodeName==="svg")&&it[nt.nodeName][mt]!==St&&(v&&v.indexOf(mt)===-1?Et[mt]=St:St&&nt.setAttribute(mt.replace(/[A-Z]/g,function(Pt){return"-"+Pt.toLowerCase()}),St))}(ot[dt],dt);if(L(nt,Et),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($),et.parentNode.removeChild(et)}function Y($){let{scrollablePlotArea:tt}=this;(tt?[tt.fixedDiv,tt.scrollingContainer]:[this.container]).forEach(function(it){$.appendChild(it)})}function Z(){let $=this,tt=(it,et,st)=>{$.isDirtyExporting=!0,A(!0,$.options[it],et),S(st,!0)&&$.redraw()};$.exporting={update:function(it,et){tt("exporting",it,et)}},r.compose($).navigation.addUpdate((it,et)=>{tt("navigation",it,et)})}function q(){let $=this;$.isPrinting||(m=$,c.isSafari||$.beforePrint(),setTimeout(()=>{f.focus(),f.print(),c.isSafari||setTimeout(()=>{$.afterPrint()},1e3)},1))}function J(){let $=this,tt=$.options.exporting,it=tt.buttons,et=$.isDirtyExporting||!$.exportSVGElements;$.buttonOffset=0,$.isDirtyExporting&&$.destroyExport(),et&&tt.enabled!==!1&&($.exportEvents=[],$.exportingGroup=$.exportingGroup||$.renderer.g("exporting-group").attr({zIndex:3}).add(),F(it,function(st){$.addButton(st)}),$.isDirtyExporting=!1)}function Q($,tt){let it=$.indexOf("")+6,et=$.substr(it);return $=$.substr(0,it),tt&&tt.exporting&&tt.exporting.allowHTML&&et&&(et=''+et.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",$=$.replace("",et+"")),$=$.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery\d+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{"use strict";(function(n){typeof fo=="object"&&fo.exports?(n.default=n,fo.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/stock",["highcharts"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{tooltipFormatter:l}=s.prototype,{addEvent:h,arrayMax:c,arrayMin:g,correctFloat:d,defined:p,isArray:y,isNumber:b,isString:x,pick:f}=o;return function(M){function L(T,D,P){!this.isXAxis&&(this.series.forEach(function(m){T==="compare"&&typeof D!="boolean"?m.setCompare(D,!1):T!=="cumulative"||x(D)||m.setCumulative(D,!1)}),f(P,!0)&&this.chart.redraw())}function _(T){let D=this,{numberFormatter:P}=D.series.chart,m=function(u){T=T.replace("{point."+u+"}",(D[u]>0&&u==="change"?"+":"")+P(D[u],f(D.series.tooltipOptions.changeDecimals,2)))};return p(D.change)&&m("change"),p(D.cumulativeSum)&&m("cumulativeSum"),l.apply(this,[T])}function w(){let T,D=this.options.compare;(D==="percent"||D==="value"||this.options.cumulative)&&(T=new S(this),D==="percent"||D==="value"?T.initCompare(D):T.initCumulative()),this.dataModify=T}function k(T){let D=T.dataExtremes,P=D.activeYData;if(this.dataModify&&D){let m;this.options.compare?m=[this.dataModify.modifyValue(D.dataMin),this.dataModify.modifyValue(D.dataMax)]:this.options.cumulative&&y(P)&&P.length>=2&&(m=S.getCumulativeExtremes(P)),m&&(D.dataMin=g(m),D.dataMax=c(m))}}function z(T,D){this.options.compare=this.userOptions.compare=T,this.update({},f(D,!0)),this.dataModify&&(T==="value"||T==="percent")?this.dataModify.initCompare(T):this.points.forEach(P=>{delete P.change})}function O(){if(this.xAxis&&this.processedYData&&this.dataModify){let T=this.processedXData,D=this.processedYData,P=D.length,m=this.options.compareStart===!0?0:1,u=-1,v;for(this.pointArrayMap&&(u=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),v=0;v-1?D[v][u]:D[v];if(b(I)&&I!==0&&T[v+m]>=(this.xAxis.min||0)){this.dataModify.compareValue=I;break}}}}function C(T,D){this.setModifier("compare",T,D)}function A(T,D){T=f(T,!1),this.options.cumulative=this.userOptions.cumulative=T,this.update({},f(D,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(P=>{delete P.cumulativeSum})}function F(T,D){this.setModifier("cumulative",T,D)}M.compose=function(T,D,P){let m=D.prototype,u=P.prototype,v=T.prototype;return v.setCompare||(v.setCompare=z,v.setCumulative=A,h(T,"afterInit",w),h(T,"afterGetExtremes",k),h(T,"afterProcessData",O)),m.setCompare||(m.setCompare=C,m.setModifier=L,m.setCumulative=F,u.tooltipFormatter=_),T};class S{constructor(D){this.series=D}modifyValue(){return 0}static getCumulativeExtremes(D){let P=1/0,m=-1/0;return D.reduce((u,v)=>{let I=u+v;return P=Math.min(P,I,u),m=Math.max(m,I,u),I}),[P,m]}initCompare(D){this.modifyValue=function(P,m){P===null&&(P=0);let u=this.compareValue;if(P!==void 0&&u!==void 0){if(D==="value"?P-=u:P=P/u*100-(this.series.options.compareBase===100?0:100),m!==void 0){let v=this.series.points[m];v&&(v.change=P)}return P}return 0}}initCumulative(){this.modifyValue=function(D,P){if(D===null&&(D=0),D!==void 0&&P!==void 0){let m=P>0?this.series.points[P-1]:null;m&&m.cumulativeSum&&(D=d(m.cumulativeSum+D));let u=this.series.points[P],v=u.series.options.cumulativeStart,I=u.x<=this.series.xAxis.max&&u.x>=this.series.xAxis.min;return u&&(!v||I?u.cumulativeSum=D:u.cumulativeSum=void 0),D}return 0}}}M.Additions=S}(a||(a={})),a}),e(t,"Stock/Navigator/ChartNavigatorComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let r,{isTouchDevice:o}=i,{addEvent:a,merge:l,pick:h}=s,c=[];function g(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function d(){let M,L,_,w=this.legend,k=this.navigator;if(k){M=w&&w.options,L=k.xAxis,_=k.yAxis;let{scrollbarHeight:z,scrollButtonSize:O}=k;this.inverted?(k.left=k.opposite?this.chartWidth-z-k.height:this.spacing[3]+z,k.top=this.plotTop+O):(k.left=h(L.left,this.plotLeft+O),k.top=k.navigatorOptions.top||this.chartHeight-k.height-z-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(M&&M.verticalAlign==="bottom"&&M.layout!=="proximate"&&M.enabled&&!M.floating?w.legendHeight+h(M.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),L&&_&&(this.inverted?L.options.left=_.options.left=k.left:L.options.top=_.options.top=k.top,L.setAxisSize(),_.setAxisSize())}}function p(M){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this),h(M.redraw,!0)&&this.redraw(M.animation))}function y(){let M=this.options;(M.navigator.enabled||M.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this))}function b(){let M=this.options,L=M.navigator,_=M.rangeSelector;if((L&&L.enabled||_&&_.enabled)&&(!o&&this.zooming.type==="x"||o&&this.zooming.pinchType==="x"))return!1}function x(M){let L=M.navigator;if(L&&M.xAxis[0]){let _=M.xAxis[0].getExtremes();L.render(_.min,_.max)}}function f(M){let L=M.options.navigator||{},_=M.options.scrollbar||{};!this.navigator&&!this.scroller&&(L.enabled||_.enabled)&&(l(!0,this.options.navigator,L),l(!0,this.options.scrollbar,_),delete M.options.navigator,delete M.options.scrollbar)}return{compose:function(M,L){if(s.pushUnique(c,M)){let _=M.prototype;r=L,_.callbacks.push(x),a(M,"afterAddSeries",g),a(M,"afterSetChartSize",d),a(M,"afterUpdate",p),a(M,"beforeRender",y),a(M,"beforeShowResetZoom",b),a(M,"update",f)}}}}),e(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){let{isTouchDevice:r}=i,{addEvent:o,correctFloat:a,defined:l,isNumber:h,pick:c}=s;function g(){this.navigatorAxis||(this.navigatorAxis=new p(this))}function d(y){let b,x=this.chart,f=x.options,M=f.navigator,L=this.navigatorAxis,_=x.zooming.pinchType,w=f.rangeSelector,k=x.zooming.type;if(this.isXAxis&&(M?.enabled||w?.enabled)){if(k==="y"&&y.trigger==="zoom")b=!1;else if((y.trigger==="zoom"&&k==="xy"||r&&_==="xy")&&this.options.range){let z=L.previousZoom;l(y.min)?L.previousZoom=[this.min,this.max]:z&&(y.min=z[0],y.max=z[1],L.previousZoom=void 0)}}b!==void 0&&y.preventDefault()}class p{static compose(b){b.keepProps.includes("navigatorAxis")||(b.keepProps.push("navigatorAxis"),o(b,"init",g),o(b,"setExtremes",d))}constructor(b){this.axis=b}destroy(){this.axis=void 0}toFixedRange(b,x,f,M){let L=this.axis,_=(L.pointRange||0)/2,w=c(f,L.translate(b,!0,!L.horiz)),k=c(M,L.translate(x,!0,!L.horiz));return l(f)||(w=a(w+_)),l(M)||(k=a(k-_)),h(w)&&h(k)||(w=k=void 0),{min:w,max:k}}}return p}),e(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(i,s){let{parse:r}=i,{seriesTypes:o}=s;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:o.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}}}),e(t,"Stock/Navigator/NavigatorSymbols.js",[t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(i,s){let{relativeLength:r}=s;return{"navigator-handle":function(o,a,l,h,c={}){let g=c.width?c.width/2:l,d=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],...i.rect(-g-1,.5,2*g+1,h,{r:d})]}}}),e(t,"Stock/Utilities/StockUtilities.js",[t["Core/Utilities.js"]],function(i){let{defined:s}=i;return{setFixedRange:function(r){let o=this.xAxis[0];s(o.dataMax)&&s(o.dataMin)&&r?this.fixedRange=Math.min(r,o.dataMax-o.dataMin):this.fixedRange=r}}}),e(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(i,s,r,o,a,l,h,c){let{setOptions:g}=i,{composed:d}=s,{getRendererType:p}=l,{setFixedRange:y}=h,{addEvent:b,extend:x,pushUnique:f}=c;function M(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(L,_,w){r.compose(_),f(d,"Navigator")&&(L.prototype.setFixedRange=y,x(p().prototype.symbols,a),b(w,"afterUpdate",M),g({navigator:o}))}}}),e(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(i,s){var r;let{composed:o}=i,{addEvent:a,defined:l,pick:h,pushUnique:c}=s;return function(g){let d;function p(f){let M=h(f.options&&f.options.min,f.min),L=h(f.options&&f.options.max,f.max);return{axisMin:M,axisMax:L,scrollMin:l(f.dataMin)?Math.min(M,f.min,f.dataMin,h(f.threshold,1/0)):M,scrollMax:l(f.dataMax)?Math.max(L,f.max,f.dataMax,h(f.threshold,-1/0)):L}}function y(){let f=this.scrollbar,M=f&&!f.options.opposite,L=this.horiz?2:M?3:1;f&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[L]+=f.size+(f.options.margin||0))}function b(){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 d(f.chart.renderer,f.options.scrollbar,f.chart),a(f.scrollbar,"changed",function(M){let L,_,{axisMin:w,axisMax:k,scrollMin:z,scrollMax:O}=p(f),C=O-z;if(l(w)&&l(k))if(f.horiz&&!f.reversed||!f.horiz&&f.reversed?(L=z+C*this.to,_=z+C*this.from):(L=z+C*(1-this.from),_=z+C*(1-this.to)),this.shouldUpdateExtremes(M.DOMType)){let A=M.DOMType!=="mousemove"&&M.DOMType!=="touchmove"&&void 0;f.setExtremes(_,L,!0,A,M)}else this.setRange(this.from,this.to)}))}function x(){let f,M,L,{scrollMin:_,scrollMax:w}=p(this),k=this.scrollbar,z=this.axisTitleMargin+(this.titleOffset||0),O=this.chart.scrollbarsOffsets,C=this.options.margin||0;if(k&&O){if(this.horiz)this.opposite||(O[1]+=z),k.position(this.left,this.top+this.height+2+O[1]-(this.opposite?C:0),this.width,this.height),this.opposite||(O[1]+=C),f=1;else{let A;this.opposite&&(O[0]+=z),A=k.options.opposite?this.left+this.width+2+O[0]-(this.opposite?0:C):this.opposite?0:C,k.position(A,this.top,this.width,this.height),this.opposite&&(O[0]+=C),f=0}if(O[f]+=k.size+(k.options.margin||0),isNaN(_)||isNaN(w)||!l(this.min)||!l(this.max)||this.dataMin===this.dataMax)k.setRange(0,1);else if(this.min===this.max){let A=this.pointRange/(this.dataMax+1);M=A*this.min,L=A*(this.max+1),k.setRange(M,L)}else M=(this.min-_)/(w-_),L=(this.max-_)/(w-_),this.horiz&&!this.reversed||!this.horiz&&this.reversed?k.setRange(M,L):k.setRange(1-L,1-M)}}g.compose=function(f,M){c(o,"Axis.Scrollbar")&&(d=M,a(f,"afterGetOffset",y),a(f,"afterInit",b),a(f,"afterRender",x))}}(r||(r={})),r}),e(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}}),e(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(i,s,r,o,a){let{defaultOptions:l}=i,{addEvent:h,correctFloat:c,crisp:g,defined:d,destroyObjectProperties:p,fireEvent:y,merge:b,pick:x,removeEvent:f}=a;class M{static compose(_){r.compose(_,M)}static swapXY(_,w){return w&&_.forEach(k=>{let z,O=k.length;for(let C=0;Cthis.calculatedWidth?w.minWidth:0;return{chartX:(_.chartX-this.x-this.xOffset)/(this.barWidth-k),chartY:(_.chartY-this.y-this.yOffset)/(this.barWidth-k)}}destroy(){let _=this,w=_.chart.scroller;_.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(k){_[k]&&_[k].destroy&&(_[k]=_[k].destroy())}),w&&_===w.scrollbar&&(w.scrollbar=null,p(w.scrollbarButtons))}drawScrollbarButton(_){let w=this.renderer,k=this.scrollbarButtons,z=this.options,O=this.size,C=w.g().add(this.group);if(k.push(C),z.buttonsEnabled){let A=w.rect().addClass("highcharts-scrollbar-button").add(C);this.chart.styledMode||A.attr({stroke:z.buttonBorderColor,"stroke-width":z.buttonBorderWidth,fill:z.buttonBackgroundColor}),A.attr(A.crisp({x:-.5,y:-.5,width:O,height:O,r:z.buttonBorderRadius},A.strokeWidth()));let F=w.path(M.swapXY([["M",O/2+(_?-1:1),O/2-3],["L",O/2+(_?-1:1),O/2+3],["L",O/2+(_?2:-2),O/2]],z.vertical)).addClass("highcharts-scrollbar-arrow").add(k[_]);this.chart.styledMode||F.attr({fill:z.buttonArrowColor})}}init(_,w,k){this.scrollbarButtons=[],this.renderer=_,this.userOptions=w,this.options=b(o,l.scrollbar,w),this.options.margin=x(this.options.margin,10),this.chart=k,this.size=x(this.options.size,this.options.height),w.enabled&&(this.render(),this.addEvents())}mouseDownHandler(_){let w=this.chart.pointer?.normalize(_)||_,k=this.cursorToScrollbarPosition(w);this.chartX=k.chartX,this.chartY=k.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(_){let w,k=this.chart.pointer?.normalize(_)||_,z=this.options.vertical?"chartY":"chartX",O=this.initPositions||[];this.grabbedCenter&&(!_.touches||_.touches[0][z]!==0)&&(w=this.cursorToScrollbarPosition(k)[z]-this[z],this.hasDragged=!0,this.updatePosition(O[0]+w,O[1]+w),this.hasDragged&&y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:_.type,DOMEvent:_}))}mouseUpHandler(_){this.hasDragged&&y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:_.type,DOMEvent:_}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(_,w,k,z){let{buttonsEnabled:O,margin:C=0,vertical:A}=this.options,F=this.rendered?"animate":"attr",S=z,T=0;this.group.show(),this.x=_,this.y=w+this.trackBorderWidth,this.width=k,this.height=z,this.xOffset=S,this.yOffset=T,A?(this.width=this.yOffset=k=T=this.size,this.xOffset=S=0,this.yOffset=T=O?this.size:0,this.barWidth=z-(O?2*k:0),this.x=_+=C):(this.height=z=this.size,this.xOffset=S=O?this.size:0,this.barWidth=k-(O?2*z:0),this.y=this.y+C),this.group[F]({translateX:_,translateY:this.y}),this.track[F]({width:k,height:z}),this.scrollbarButtons[1][F]({translateX:A?0:k-S,translateY:A?z-T:0})}removeEvents(){this._events.forEach(function(_){f.apply(null,_)}),this._events.length=0}render(){let _=this.renderer,w=this.options,k=this.size,z=this.chart.styledMode,O=_.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();this.group=O,this.track=_.rect().addClass("highcharts-scrollbar-track").attr({r:w.trackBorderRadius||0,height:k,width:k}).add(O),z||this.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth});let C=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-g(0,C),y:-g(0,C)}),this.scrollbarGroup=_.g().add(O),this.scrollbar=_.rect().addClass("highcharts-scrollbar-thumb").attr({height:k-C,width:k-C,r:w.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=_.path(M.swapXY([["M",-3,k/4],["L",-3,2*k/3],["M",0,k/4],["L",0,2*k/3],["M",3,k/4],["L",3,2*k/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),z||(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(_,w){let k,z,O=this.options,C=O.vertical,A=O.minWidth,F=this.barWidth,S=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!d(F))return;let T=F*Math.min(w,1);k=Math.ceil(F*(_=Math.max(_,0))),this.calculatedWidth=z=c(T-k),z=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(_){return x(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||_==="mouseup"||_==="touchend"||!d(_)}trackClick(_){let w=this.chart.pointer?.normalize(_)||_,k=this.to-this.from,z=this.y+this.scrollbarTop,O=this.x+this.scrollbarLeft;this.options.vertical&&w.chartY>z||!this.options.vertical&&w.chartX>O?this.updatePosition(this.from+k,this.to+k):this.updatePosition(this.from-k,this.to-k),y(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:_})}update(_){this.destroy(),this.init(this.chart.renderer,b(!0,this.options,_),this.chart)}updatePosition(_,w){w>1&&(_=c(1-c(w-_)),w=1),_<0&&(w=c(w-_),_=0),this.from=_,this.to=w}}return M.defaultOptions=o,l.scrollbar=b(!0,M.defaultOptions,l.scrollbar),M}),e(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/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(i,s,r,o,a,l,h,c,g){let{defaultOptions:d}=r,{isTouchDevice:p}=o,{prototype:{symbols:y}}=c,{addEvent:b,clamp:x,correctFloat:f,defined:M,destroyObjectProperties:L,erase:_,extend:w,find:k,fireEvent:z,isArray:O,isNumber:C,merge:A,pick:F,removeEvent:S,splat:T}=g;function D(m,...u){let v=[].filter.call(u,C);if(v.length)return Math[m].apply(0,v)}class P{static compose(u,v,I){s.compose(u,P),l.compose(u,v,I)}constructor(u){this.isDirty=!1,this.scrollbarHeight=0,this.init(u)}drawHandle(u,v,I,E){let R=this.navigatorOptions.handles.height;this.handles[v][E](I?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(u,10)+.5-R)}:{translateX:Math.round(this.left+parseInt(u,10)),translateY:Math.round(this.top+this.height/2-R/2-1)})}drawOutline(u,v,I,E){let R=this.navigatorOptions.maskInside,j=this.outline.strokeWidth(),G=j/2,W=j%2/2,N=this.scrollButtonSize,B=this.size,X=this.top,V=this.height,H=X-G,K=X+V,U=this.left,Y,Z;I?(Y=X+v+W,v=X+u+W,Z=[["M",U+V,X-N-W],["L",U+V,Y],["L",U,Y],["M",U,v],["L",U+V,v],["L",U+V,X+B+N]],R&&Z.push(["M",U+V,Y-G],["L",U+V,v+G])):(U-=N,u+=U+N-W,v+=U+N-W,Z=[["M",U,H],["L",u,H],["L",u,K],["M",v,K],["L",v,H],["L",U+B+2*N,H]],R&&Z.push(["M",u-G,H],["L",v+G,H])),this.outline[E]({d:Z})}drawMasks(u,v,I,E){let R,j,G,W,N=this.left,B=this.top,X=this.height;I?(G=[N,N,N],W=[B,B+u,B+v],j=[X,X,X],R=[u,v-u,this.size-v]):(G=[N,N+u,N+v],W=[B,B,B],j=[u,v-u,this.size-v],R=[X,X,X]),this.shades.forEach((V,H)=>{V[E]({x:G[H],y:W[H],width:j[H],height:R[H]})})}renderElements(){let u=this,v=u.navigatorOptions,I=v.maskInside,E=u.chart,R=E.inverted,j=E.renderer,G={cursor:R?"ns-resize":"ew-resize"},W=u.navigatorGroup??(u.navigatorGroup=j.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!I,I,!I].forEach((N,B)=>{let X=u.shades[B]??(u.shades[B]=j.rect().addClass("highcharts-navigator-mask"+(B===1?"-inside":"-outside")).add(W));E.styledMode||(X.attr({fill:N?v.maskFill:"rgba(0,0,0,0)"}),B===1&&X.css(G))}),u.outline||(u.outline=j.path().addClass("highcharts-navigator-outline").add(W)),E.styledMode||u.outline.attr({"stroke-width":v.outlineWidth,stroke:v.outlineColor}),v.handles?.enabled){let N=v.handles,{height:B,width:X}=N;[0,1].forEach(V=>{let H=N.symbols[V];if(u.handles[V]&&u.handles[V].symbolUrl===H){if(!u.handles[V].isImg&&u.handles[V].symbolName!==H){let K=y[H].call(y,-X/2-1,0,X,B);u.handles[V].attr({d:K}),u.handles[V].symbolName=H}}else u.handles[V]?.destroy(),u.handles[V]=j.symbol(H,-X/2-1,0,X,B,N),u.handles[V].attr({zIndex:7-V}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][V]).add(W),u.addMouseEvents();E.inverted&&u.handles[V].attr({rotation:90,rotationOriginX:Math.floor(-X/2),rotationOriginY:(B+X)/2}),E.styledMode||u.handles[V].attr({fill:N.backgroundColor,stroke:N.borderColor,"stroke-width":N.lineWidth,width:N.width,height:N.height,x:-X/2-1,y:0}).css(G)})}}update(u,v=!1){let I=this.chart,E=I.options.chart.inverted!==I.scrollbar?.options.vertical;if(A(!0,I.options.navigator,u),this.navigatorOptions=I.options.navigator||{},this.setOpposite(),M(u.enabled)||E)return this.destroy(),this.navigatorEnabled=u.enabled||this.navigatorEnabled,this.init(I);if(this.navigatorEnabled&&(this.isDirty=!0,u.adaptToUpdatedData===!1&&this.baseSeries.forEach(R=>{S(R,"updatedData",this.updatedDataHandler)},this),u.adaptToUpdatedData&&this.baseSeries.forEach(R=>{R.eventsToUnbind.push(b(R,"updatedData",this.updatedDataHandler))},this),(u.series||u.baseSeries)&&this.setBaseSeries(void 0,!1),u.height||u.xAxis||u.yAxis)){this.height=u.height??this.height;let R=this.getXAxisOffsets();this.xAxis.update(oi(re({},u.xAxis),{offsets:R,[I.inverted?"width":"height"]:this.height,[I.inverted?"height":"width"]:void 0}),!1),this.yAxis.update(oi(re({},u.yAxis),{[I.inverted?"width":"height"]:this.height}),!1)}v&&I.redraw()}render(u,v,I,E){let R=this.chart,j=this.xAxis,G=j.pointRange||0,W=j.navigatorAxis.fake?R.xAxis[0]:j,N=this.navigatorEnabled,B=this.rendered,X=R.inverted,V=R.xAxis[0].minRange,H=R.xAxis[0].options.maxRange,K=this.scrollButtonSize,U,Y,Z,q=this.scrollbarHeight,J,Q;if(this.hasDragged&&!M(I))return;if(this.isDirty&&this.renderElements(),u=f(u-G/2),v=f(v+G/2),!C(u)||!C(v)){if(!B)return;I=0,E=F(j.width,W.width)}this.left=F(j.left,R.plotLeft+K+(X?R.plotWidth:0));let $=this.size=J=F(j.len,(X?R.plotHeight:R.plotWidth)-2*K);U=X?q:J+2*K,I=F(I,j.toPixels(u,!0)),E=F(E,j.toPixels(v,!0)),C(I)&&Math.abs(I)!==1/0||(I=0,E=U);let tt=j.toValue(I,!0),it=j.toValue(E,!0),et=Math.abs(f(it-tt));etH&&(this.grabbedLeft?I=j.toPixels(it-H-G,!0):this.grabbedRight&&(E=j.toPixels(tt+H+G,!0))),this.zoomedMax=x(Math.max(I,E),0,$),this.zoomedMin=x(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(I,E),0,$),this.range=this.zoomedMax-this.zoomedMin,$=Math.round(this.zoomedMax);let st=Math.round(this.zoomedMin);N&&(this.navigatorGroup.attr({visibility:"inherit"}),Q=B&&!this.hasDragged?"animate":"attr",this.drawMasks(st,$,X,Q),this.drawOutline(st,$,X,Q),this.navigatorOptions.handles.enabled&&(this.drawHandle(st,0,X,Q),this.drawHandle($,1,X,Q))),this.scrollbar&&(X?(Z=this.top-K,Y=this.left-q+(N||!W.opposite?0:(W.titleOffset||0)+W.axisTitleMargin),q=J+2*K):(Z=this.top+(N?this.height:-q),Y=this.left-K),this.scrollbar.position(Y,Z,U,q),this.scrollbar.setRange(this.zoomedMin/(J||1),this.zoomedMax/(J||1))),this.rendered=!0,this.isDirty=!1,z(this,"afterRender")}addMouseEvents(){let u=this,v=u.chart,I=v.container,E=[],R,j;u.mouseMoveHandler=R=function(G){u.onMouseMove(G)},u.mouseUpHandler=j=function(G){u.onMouseUp(G)},(E=u.getPartsEvents("mousedown")).push(b(v.renderTo,"mousemove",R),b(I.ownerDocument,"mouseup",j),b(v.renderTo,"touchmove",R),b(I.ownerDocument,"touchend",j)),E.concat(u.getPartsEvents("touchstart")),u.eventsToUnbind=E,u.series&&u.series[0]&&E.push(b(u.series[0].xAxis,"foundExtremes",function(){v.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(u){let v=this,I=[];return["shades","handles"].forEach(function(E){v[E].forEach(function(R,j){I.push(b(R.element,u,function(G){v[E+"Mousedown"](G,j)}))})}),I}shadesMousedown(u,v){u=this.chart.pointer?.normalize(u)||u;let I=this.chart,E=this.xAxis,R=this.zoomedMin,j=this.size,G=this.range,W=this.left,N=u.chartX,B,X,V,H;I.inverted&&(N=u.chartY,W=this.top),v===1?(this.grabbedCenter=N,this.fixedWidth=G,this.dragOffset=N-R):(H=N-W-G/2,v===0?H=Math.max(0,H):v===2&&H+G>=j&&(H=j-G,this.reversedExtremes?(H-=G,X=this.getUnionExtremes().dataMin):B=this.getUnionExtremes().dataMax),H!==R&&(this.fixedWidth=G,M((V=E.navigatorAxis.toFixedRange(H,H+G,X,B)).min)&&z(this,"setRange",{min:Math.min(V.min,V.max),max:Math.max(V.min,V.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(u,v){u=this.chart.pointer?.normalize(u)||u;let I=this.chart,E=I.xAxis[0],R=this.reversedExtremes;v===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=R?E.min:E.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=R?E.max:E.min),I.setFixedRange(void 0)}onMouseMove(u){let v=this,I=v.chart,E=v.navigatorSize,R=v.range,j=v.dragOffset,G=I.inverted,W=v.left,N;(!u.touches||u.touches[0].pageX!==0)&&(N=(u=I.pointer?.normalize(u)||u).chartX,G&&(W=v.top,N=u.chartY),v.grabbedLeft?(v.hasDragged=!0,v.render(0,0,N-W,v.otherHandlePos)):v.grabbedRight?(v.hasDragged=!0,v.render(0,0,v.otherHandlePos,N-W)):v.grabbedCenter&&(v.hasDragged=!0,NE+j-R&&(N=E+j-R),v.render(0,0,N-j,N-j+R)),v.hasDragged&&v.scrollbar&&F(v.scrollbar.options.liveRedraw,!p&&!this.chart.boosted)&&(u.DOMType=u.type,setTimeout(function(){v.onMouseUp(u)},0)))}onMouseUp(u){let v,I,E,R,j,G,W=this.chart,N=this.xAxis,B=this.scrollbar,X=u.DOMEvent||u,V=W.inverted,H=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!B||!B.hasDragged)||u.trigger==="scrollbar")&&(E=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?R=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(j=this.fixedExtreme),this.zoomedMax===this.size&&(j=this.reversedExtremes?E.dataMin:E.dataMax),this.zoomedMin===0&&(R=this.reversedExtremes?E.dataMax:E.dataMin),M((G=N.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,R,j)).min)&&z(this,"setRange",{min:Math.min(G.min,G.max),max:Math.max(G.min,G.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:X}})),u.DOMType!=="mousemove"&&u.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&C(this.zoomedMin)&&C(this.zoomedMax)&&(I=Math.round(this.zoomedMin),v=Math.round(this.zoomedMax),this.shades&&this.drawMasks(I,v,V,H),this.outline&&this.drawOutline(I,v,V,H),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(I,0,V,H),this.drawHandle(v,1,V,H)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(u){u()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let u=this.baseSeries||[];this.navigatorEnabled&&u[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&u.forEach(function(v){S(v,"updatedData",this.updatedDataHandler)},this),u[0].xAxis&&S(u[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(u){let v=u.options,I=v.navigator||{},E=I.enabled,R=v.scrollbar||{},j=R.enabled,G=E&&I.height||0,W=j&&R.height||0,N=R.buttonsEnabled&&W||0;this.handles=[],this.shades=[],this.chart=u,this.setBaseSeries(),this.height=G,this.scrollbarHeight=W,this.scrollButtonSize=N,this.scrollbarEnabled=j,this.navigatorEnabled=E,this.navigatorOptions=I,this.scrollbarOptions=R,this.setOpposite();let B=this,X=B.baseSeries,V=u.xAxis.length,H=u.yAxis.length,K=X&&X[0]&&X[0].xAxis||u.xAxis[0]||{options:{}};if(u.isDirtyBox=!0,B.navigatorEnabled){let U=this.getXAxisOffsets();B.xAxis=new i(u,A({breaks:K.options.breaks,ordinal:K.options.ordinal,overscroll:K.options.overscroll},I.xAxis,{type:"datetime",yAxis:I.yAxis?.id,index:V,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:K.options.ordinal?0:K.options.minPadding,maxPadding:K.options.ordinal?0:K.options.maxPadding,zoomEnabled:!1},u.inverted?{offsets:U,width:G}:{offsets:U,height:G}),"xAxis"),B.yAxis=new i(u,A(I.yAxis,{alignTicks:!1,offset:0,index:H,isInternal:!0,reversed:F(I.yAxis&&I.yAxis.reversed,u.yAxis[0]&&u.yAxis[0].reversed,!1),zoomEnabled:!1},u.inverted?{width:G}:{height:G}),"yAxis"),X||I.series.data?B.updateNavigatorSeries(!1):u.series.length===0&&(B.unbindRedraw=b(u,"beforeRedraw",function(){u.series.length>0&&!B.series&&(B.setBaseSeries(),B.unbindRedraw())})),B.reversedExtremes=u.inverted&&!B.xAxis.reversed||!u.inverted&&B.xAxis.reversed,B.renderElements(),B.addMouseEvents()}else B.xAxis={chart:u,navigatorAxis:{fake:!0},translate:function(U,Y){let Z=u.xAxis[0],q=Z.getExtremes(),J=Z.len-2*N,Q=D("min",Z.options.min,q.dataMin),$=D("max",Z.options.max,q.dataMax)-Q;return Y?U*$/J+Q:J*(U-Q)/$},toPixels:function(U){return this.translate(U)},toValue:function(U){return this.translate(U,!0)}},B.xAxis.navigatorAxis.axis=B.xAxis,B.xAxis.navigatorAxis.toFixedRange=a.prototype.toFixedRange.bind(B.xAxis.navigatorAxis);if(u.options.scrollbar.enabled){let U=A(u.options.scrollbar,{vertical:u.inverted});!C(U.margin)&&B.navigatorEnabled&&(U.margin=u.inverted?-3:3),u.scrollbar=B.scrollbar=new h(u.renderer,U,u),b(B.scrollbar,"changed",function(Y){let Z=B.size,q=Z*this.to,J=Z*this.from;B.hasDragged=B.scrollbar.hasDragged,B.render(0,0,J,q),this.shouldUpdateExtremes(Y.DOMType)&&setTimeout(function(){B.onMouseUp(Y)})})}B.addBaseSeriesEvents(),B.addChartEvents()}setOpposite(){let u=this.navigatorOptions,v=this.navigatorEnabled,I=this.chart;this.opposite=F(u.opposite,!!(!v&&I.inverted))}getUnionExtremes(u){let v,I=this.chart.xAxis[0],E=this.xAxis,R=E.options,j=I.options;return u&&I.dataMin===null||(v={dataMin:F(R&&R.min,D("min",j.min,I.dataMin,E.dataMin,E.min)),dataMax:F(R&&R.max,D("max",j.max,I.dataMax,E.dataMax,E.max))}),v}setBaseSeries(u,v){let I=this.chart,E=this.baseSeries=[];u=u||I.options&&I.options.navigator.baseSeries||(I.series.length?k(I.series,R=>!R.options.isInternal).index:0),(I.series||[]).forEach((R,j)=>{!R.options.isInternal&&(R.options.showInNavigator||(j===u||R.options.id===u)&&R.options.showInNavigator!==!1)&&E.push(R)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,v)}updateNavigatorSeries(u,v){let I=this,E=I.chart,R=I.baseSeries,j={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}}},G=I.series=(I.series||[]).filter(V=>{let H=V.baseSeries;return!(0>R.indexOf(H))||(H&&(S(H,"updatedData",I.updatedDataHandler),delete H.navigatorSeries),V.chart&&V.destroy(),!1)}),W,N,B=I.navigatorOptions.series,X;R&&R.length&&R.forEach(V=>{let H=V.navigatorSeries,K=w({color:V.color,visible:V.visible},O(B)?d.navigator.series:B);if(H&&I.navigatorOptions.adaptToUpdatedData===!1)return;j.name="Navigator "+R.length,X=(W=V.options||{}).navigatorOptions||{},K.dataLabels=T(K.dataLabels),(N=A(W,j,K,X)).pointRange=F(K.pointRange,X.pointRange,d.plotOptions[N.type||"line"].pointRange);let U=X.data||K.data;I.hasNavigatorData=I.hasNavigatorData||!!U,N.data=U||W.data&&W.data.slice(0),H&&H.options?H.update(N,v):(V.navigatorSeries=E.initSeries(N),E.setSortedData(),V.navigatorSeries.baseSeries=V,G.push(V.navigatorSeries))}),(B.data&&!(R&&R.length)||O(B))&&(I.hasNavigatorData=!1,(B=T(B)).forEach((V,H)=>{j.name="Navigator "+(G.length+1),(N=A(d.navigator.series,{color:E.series[H]&&!E.series[H].options.isInternal&&E.series[H].color||E.options.colors[H]||E.options.colors[0]},j,V)).data=V.data,N.data&&(I.hasNavigatorData=!0,G.push(E.initSeries(N)))})),u&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let u=this,v=u.baseSeries||[];v[0]&&v[0].xAxis&&v[0].eventsToUnbind.push(b(v[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),v.forEach(I=>{I.eventsToUnbind.push(b(I,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),I.eventsToUnbind.push(b(I,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&I.xAxis&&I.eventsToUnbind.push(b(I,"updatedData",this.updatedDataHandler)),I.eventsToUnbind.push(b(I,"remove",function(){v&&_(v,I),this.navigatorSeries&&(_(u.series,this.navigatorSeries),M(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(u){return this.baseSeries.reduce(function(v,I){return Math.min(v,I.xData&&I.xData.length?I.xData[0]:v)},u)}modifyNavigatorAxisExtremes(){let u=this.xAxis;if(u.getExtremes!==void 0){let v=this.getUnionExtremes(!0);v&&(v.dataMin!==u.min||v.dataMax!==u.max)&&(u.min=v.dataMin,u.max=v.dataMax)}}modifyBaseAxisExtremes(){let u,v,I=this.chart.navigator,E=this.getExtremes(),R=E.min,j=E.max,G=E.dataMin,W=E.dataMax,N=j-R,B=I.stickToMin,X=I.stickToMax,V=F(this.ordinal?.convertOverscroll(this.options.overscroll),0),H=I.series&&I.series[0],K=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(B&&(u=(v=G)+N),X&&(u=W+V,B||(v=Math.max(G,u-N,I.getBaseSeriesMin(H&&H.xData?H.xData[0]:-Number.MAX_VALUE)))),K&&(B||X)&&C(v)&&(this.min=this.userMin=v,this.max=this.userMax=u)),I.stickToMin=I.stickToMax=null}updatedDataHandler(){let u=this.chart.navigator,v=this.navigatorSeries,I=u.reversedExtremes?Math.round(u.zoomedMin)===0:Math.round(u.zoomedMax)>=Math.round(u.size);u.stickToMax=F(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,I),u.stickToMin=u.shouldStickToMin(this,u),v&&!u.hasNavigatorData&&(v.options.pointStart=this.xData[0],v.setData(this.options.data,!1,null,!1))}shouldStickToMin(u,v){let I=v.getBaseSeriesMin(u.xData[0]),E=u.xAxis,R=E.max,j=E.min,G=E.options.range;return!!(C(R)&&C(j))&&(G&&R-I>0?R-I{u.destroy&&u.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(u=>{this[u]&&this[u].destroy&&this[u].destroy(),this[u]=null}),[this.handles].forEach(u=>{L(u)}),this.navigatorEnabled=!1}}return P}),e(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{addEvent:l,correctFloat:h,css:c,defined:g,error:d,isNumber:p,pick:y,timeUnits:b,isString:x}=o;return function(f){function M(D,P,m,u,v=[],I=0,E){let R={},j=this.options.tickPixelInterval,G=this.chart.time,W=[],N,B,X,V,H,K=0,U=[],Y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!v||v.length<3||P===void 0)return G.getTimeTicks.apply(G,arguments);let Z=v.length;for(N=0;Nm,v[N]5*I||H){if(v[N]>Y){for(B=G.getTimeTicks(D,v[K],v[N],u);B.length&&B[0]<=Y;)B.shift();B.length&&(Y=B[B.length-1]),W.push(U.length),U=U.concat(B)}K=N+1}if(H)break}if(B){if(V=B.info,E&&V.unitRange<=b.hour){for(K=1,N=U.length-1;Knt-ot),(et=Q[Math.floor(Q.length/2)])<.6*j&&(et=null),rt=U[q-1]>m?q-1:q,it=void 0;rt--;)st=Math.abs(it-(tt=J[rt])),it&&st<.8*j&&(et===null||st<.8*et)?(R[U[rt]]&&!R[U[rt+1]]?($=rt+1,it=tt):$=rt,U.splice($,1)):it=tt}return U}function L(D){let P=this.ordinal.positions;if(!P)return D;let m=P.length-1,u;return D<0?D=P[0]:D>m?D=P[m]:(m=Math.floor(D),u=D-m),u!==void 0&&P[m]!==void 0?P[m]+(u?u*(P[m+1]-P[m]):0):D}function _(D){let P=this.ordinal,m=this.old?this.old.min:this.min,u=this.old?this.old.transA:this.transA,v=P.getExtendedPositions();if(v&&v.length){let I=h((D-m)*u+this.minPixelPadding),E=h(P.getIndexOfPoint(I,v)),R=h(E%1);if(E>=0&&E<=v.length-1){let j=v[Math.floor(E)],G=v[Math.ceil(E)];return v[Math.floor(E)]+R*(G-j)}}return D}function w(D,P){let m=f.Additions.findIndexOf(D,P,!0);if(D[m]===P)return m;let u=(P-D[m])/(D[m+1]-D[m]);return m+u}function k(){this.ordinal||(this.ordinal=new f.Additions(this))}function z(){let{eventArgs:D,options:P}=this;if(this.isXAxis&&g(P.overscroll)&&P.overscroll!==0&&p(this.max)&&p(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(D?.trigger!=="pan"||this.isInternal)&&D?.trigger!=="navigator")){let m=this.ordinal.convertOverscroll(P.overscroll);this.max+=m,!this.isInternal&&g(this.userMin)&&D?.trigger!=="mousewheel"&&(this.min+=m)}}function O(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function C(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function A(D){let P=this.xAxis[0],m=P.ordinal.convertOverscroll(P.options.overscroll),u=D.originalEvent.chartX,v=this.options.chart.panning,I=!1;if(v&&v.type!=="y"&&P.options.ordinal&&P.series.length&&(!D.touches||D.touches.length<=1)){let E,R,j=this.mouseDownX,G=P.getExtremes(),W=G.dataMin,N=G.dataMax,B=G.min,X=G.max,V=this.hoverPoints,H=P.closestPointRange||P.ordinal&&P.ordinal.overscrollPointsRange,K=Math.round((j-u)/(P.translationSlope*(P.ordinal.slope||H))),U=P.ordinal.getExtendedPositions(),Y={ordinal:{positions:U,extendedOrdinalPositions:U}},Z=P.index2val,q=P.val2lin;if(B<=W&&K<0||X+m>=N&&K>0)return;Y.ordinal.positions?Math.abs(K)>1&&(V&&V.forEach(function(J){J.setState()}),N>(R=Y.ordinal.positions)[R.length-1]&&R.push(N),this.setFixedRange(X-B),(E=P.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(Y,[q.apply(Y,[B,!0])+K]),Z.apply(Y,[q.apply(Y,[X,!0])+K]))).min>=Math.min(G.dataMin,B)&&E.max<=Math.max(N,X)+m&&P.setExtremes(E.min,E.max,!0,!1,{trigger:"pan"}),this.mouseDownX=u,c(this.container,{cursor:"move"})):I=!0}else I=!0;I||v&&/y/.test(v.type)?m&&(P.max=P.dataMax+m):D.preventDefault()}function F(){let D=this.xAxis;D&&D.options.ordinal&&(delete D.ordinal.index,delete D.ordinal.originalOrdinalRange)}function S(D,P){let m,u=this.ordinal,v=u.positions,I=u.slope,E;if(!v)return D;let R=v.length;if(v[0]<=D&&v[R-1]>=D)m=w(v,D);else{if(!((E=u.getExtendedPositions&&u.getExtendedPositions())&&E.length))return D;let j=E.length;I||(I=(E[j-1]-E[0])/j);let G=w(E,v[0]);if(D>=E[0]&&D<=E[j-1])m=w(E,D)-G;else{if(!P)return D;m=D0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(Y=q!==J.processedXData[1]-J.processedXData[0]),q=J.processedXData[1]-J.processedXData[0],J.boosted&&(Z=J.boosted),J.reserveSpace()&&(J.takeOrdinalPosition!==!1||E)&&(j=(H=H.concat(J.processedXData)).length,H.sort(function($,tt){return $-tt}),K=Math.min(K,y(J.closestPointRange,K)),j)){for(Q=0;Q2){for(W=H[1]-H[0],V=j-1;V--&&!U;)H[V+1]-H[V]!==W&&(U=!0);!P.options.keepOrdinalPadding&&(H[0]-v>W||I-H[H.length-1]>W)&&(U=!0)}else P.options.overscroll&&(j===2?K=H[1]-H[0]:j===1?(K=P.ordinal.convertOverscroll(P.options.overscroll),H=[H[0],H[0]+K]):K=m.overscrollPointsRange);U||P.forceOrdinal?(P.options.overscroll&&(m.overscrollPointsRange=K,H=H.concat(m.getOverscrollPositions())),m.positions=H,N=P.ordinal2lin(Math.max(v,H[0]),!0),B=Math.max(P.ordinal2lin(Math.min(I,H[H.length-1]),!0),1),m.slope=X=(I-v)/(B-N),m.offset=v-N*X):(m.overscrollPointsRange=y(P.closestPointRange,m.overscrollPointsRange),m.positions=P.ordinal.slope=m.offset=void 0)}P.isOrdinal=R&&U,m.groupIntervalFactor=null}static findIndexOf(P,m,u){let v=0,I=P.length-1,E;for(;vB.x>=W&&B.x<=N)};v.series.forEach(G=>{let W=G.points?.[0];g(W?.plotX)&&(W.plotXS()),f.splice(C,1);return}}}function z(){let C=this.rangeSelector;if(C){let A=C.getHeight();this.extraTopMargin&&(this.plotTop+=A),this.extraBottomMargin&&(this.marginBottom+=A)}}function O(C){let A=C.options.rangeSelector,F=this.extraBottomMargin,S=this.extraTopMargin,T=this.rangeSelector;if(A&&A.enabled&&!g(T)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=T=new a(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,T){let D=A&&A.verticalAlign||T.options&&T.options.verticalAlign;T.options.floating||(D==="bottom"?this.extraBottomMargin=!0:D==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==F||this.extraTopMargin!==S)&&(this.isDirtyBox=!0)}}return{compose:function(C,A,F){if(a=F,x(h,"RangeSelector")){let S=A.prototype;C.prototype.minFromRange=M,c(A,"afterGetContainer",L),c(A,"beforeRender",_),c(A,"destroy",k),c(A,"getMargins",z),c(A,"redraw",w),c(A,"update",O),S.callbacks.push(w),d(l,{rangeSelector:r.rangeSelector}),d(l.lang,r.lang)}}}}),e(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(i,s,r,o,a,l,h){let{defaultOptions:c}=s,{addEvent:g,createElement:d,css:p,defined:y,destroyObjectProperties:b,discardElement:x,extend:f,fireEvent:M,isNumber:L,merge:_,objectEach:w,pad:k,pick:z,pInt:O,splat:C}=l;class A{static compose(S,T){o.compose(S,T,A)}constructor(S){this.buttonOptions=A.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(S)}clickButton(S,T){let D=this.chart,P=this.buttonOptions[S],m=D.xAxis[0],u=D.scroller&&D.scroller.getUnionExtremes()||m||{},v=P.type,I=P.dataGrouping,E=u.dataMin,R=u.dataMax,j,G=m&&Math.round(Math.min(m.max,z(R,m.max))),W,N=P._range,B,X,V,H=!0;if(E!==null&&R!==null){if(this.setSelected(S),I&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(m||{chart:this.chart},I,!1),this.frozenStates=P.preserveDataGrouping),v==="month"||v==="year")m?(X={range:P,max:G,chart:D,dataMin:E,dataMax:R},j=m.minFromRange.call(X),L(X.newMax)&&(G=X.newMax),H=!1):N=P;else if(N)G=Math.min((j=Math.max(G-N,E))+N,R),H=!1;else if(v==="ytd")if(m)(R===void 0||E===void 0)&&(E=Number.MAX_VALUE,R=Number.MIN_VALUE,D.series.forEach(K=>{let U=K.xData;U&&(E=Math.min(U[0],E),R=Math.max(U[U.length-1],R))}),T=!1),j=B=(V=this.getYTDExtremes(R,E,D.time.useUTC)).min,G=V.max;else{this.deferredYTDClick=S;return}else v==="all"&&m&&(D.navigator&&D.navigator.baseSeries[0]&&(D.navigator.baseSeries[0].xAxis.options.range=void 0),j=E,G=R);if(H&&P._offsetMin&&y(j)&&(j+=P._offsetMin),P._offsetMax&&y(G)&&(G+=P._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=S+1),m)m.setExtremes(j,G,z(T,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:P}),D.setFixedRange(P._range);else{W=C(D.options.xAxis)[0];let K=g(D,"afterGetAxes",function(){let U=D.xAxis[0];U.range=U.options.range=N,U.min=U.options.min=B});g(D,"load",function(){let U=D.xAxis[0];D.setFixedRange(P._range),U.options.range=W.range,U.options.min=W.min,K()})}M(this,"afterBtnClick")}}setSelected(S){this.selected=this.options.selected=S}init(S){let T=this,D=S.options.rangeSelector,P=D.buttons||T.defaultButtons.slice(),m=D.selected,u=function(){let v=T.minInput,I=T.maxInput;v&&v.blur&&M(v,"blur"),I&&I.blur&&M(I,"blur")};T.chart=S,T.options=D,T.buttons=[],T.buttonOptions=P,this.eventsToUnbind=[],this.eventsToUnbind.push(g(S.container,"mousedown",u)),this.eventsToUnbind.push(g(S,"resize",u)),P.forEach(T.computeButtonRange),m!==void 0&&P[m]&&this.clickButton(m,!1),this.eventsToUnbind.push(g(S,"load",function(){S.xAxis&&S.xAxis[0]&&g(S.xAxis[0],"setExtremes",function(v){L(this.max)&&L(this.min)&&this.max-this.min!==S.fixedRange&&v.trigger!=="rangeSelectorButton"&&v.trigger!=="updatedData"&&T.forcedDataGrouping&&!T.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let S=this,T=this.chart,D=this.dropdown,P=this.dropdownLabel,m=T.xAxis[0],u=Math.round(m.max-m.min),v=!m.hasVisibleSeries,I=24*36e5,E=T.scroller&&T.scroller.getUnionExtremes()||m,R=E.dataMin,j=E.dataMax,G=S.getYTDExtremes(j,R,T.time.useUTC),W=G.min,N=G.max,B=S.selected,X=S.options.allButtonsEnabled,V=Array(S.buttonOptions.length).fill(0),H=L(B),K=S.buttons,U=!1,Y=null;S.buttonOptions.forEach((Z,q)=>{let J=Z._range,Q=Z.type,$=Z.count||1,tt=Z._offsetMax-Z._offsetMin,it=q===B,et=J>j-R,st=JJ&&(nt=!0)}else(Q==="month"||Q==="year")&&u+36e5>={month:28,year:365}[Q]*I*$-tt&&u-36e5<={month:31,year:366}[Q]*I*$+tt?nt=!0:Q==="ytd"?(nt=N-W+tt===u,rt=!it):Q==="all"&&(nt=m.max-m.min>=j-R);let ot=!X&&!(U&&Q==="all")&&(et||st||v),at=U&&Q==="all"||!rt&&nt||it&&S.frozenStates;ot?V[q]=3:at&&(!H||q===B)&&(Y=q)}),Y!==null?(V[Y]=2,S.setSelected(Y)):(S.setSelected(),P&&(P.setState(0),P.attr({text:(c.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let Z=0;Z6&&(u.lastIndexOf("-")===u.length-6||u.lastIndexOf("+")===u.length-6))){let v=new Date(P).getTimezoneOffset()/60;P+=v<=0?`+${k(-v)}:00`:`-${k(v)}:00`}}let m=Date.parse(P);if(!L(m)){let u=S.split("-");m=Date.UTC(O(u[0]),O(u[1])-1,O(u[2]))}return D&&T&&L(m)&&(m+=D.getTimezoneOffset(m)),m}drawInput(S){let{chart:T,div:D,inputGroup:P}=this,m=this,u=T.renderer.style||{},v=T.renderer,I=T.options.rangeSelector,E=c.lang,R=S==="min";function j(V){let{maxInput:H,minInput:K}=m,U=T.xAxis[0],Y=T.scroller?.getUnionExtremes()||U,Z=Y.dataMin,q=Y.dataMax,J=T.xAxis[0].getExtremes()[V],Q=m.getInputValue(V);L(Q)&&Q!==J&&(R&&H&&L(Z)?Q>Number(H.getAttribute("data-hc-time"))?Q=void 0:Qq&&(Q=q)),Q!==void 0&&U.setExtremes(R?Q:U.min,R?U.max:Q,void 0,void 0,{trigger:"rangeSelectorInput"}))}let G=E[R?"rangeSelectorFrom":"rangeSelectorTo"]||"",W=v.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?I.inputBoxHeight:0}).add(P),N=v.label("",0).addClass("highcharts-range-input").attr({padding:2,width:I.inputBoxWidth,height:I.inputBoxHeight,"text-align":"center"}).on("click",function(){m.showInput(S),m[S+"Input"].focus()});T.styledMode||N.attr({stroke:I.inputBoxBorderColor,"stroke-width":1}),N.add(P);let B=d("input",{name:S,className:"highcharts-range-selector"},void 0,D);B.setAttribute("type",function(V){if(V.indexOf("%L")!==-1)return"text";let H=["a","A","d","e","w","b","B","m","o","y","Y"].some(U=>V.indexOf("%"+U)!==-1),K=["H","k","I","l","M","S"].some(U=>V.indexOf("%"+U)!==-1);return H&&K?"datetime-local":H?"date":K?"time":"text"}(I.inputDateFormat||"%e %b %Y")),T.styledMode||(W.css(_(u,I.labelStyle)),N.css(_({color:"#333333"},u,I.inputStyle)),p(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:u.fontSize,fontFamily:u.fontFamily,top:"-9999em"},I.inputStyle))),B.onfocus=()=>{m.showInput(S)},B.onblur=()=>{B===r.doc.activeElement&&j(S),m.hideInput(S),m.setInputValue(S),B.blur()};let X=!1;return B.onchange=()=>{X||(j(S),m.hideInput(S),B.blur())},B.onkeypress=V=>{V.keyCode===13&&j(S)},B.onkeydown=V=>{X=!0,(V.key==="ArrowUp"||V.key==="ArrowDown"||V.key==="Tab")&&j(S)},B.onkeyup=()=>{X=!1},{dateBox:N,input:B,label:W}}getPosition(){let S=this.chart,T=S.options.rangeSelector,D=T.verticalAlign==="top"?S.plotTop-S.axisOffset[0]:0;return{buttonTop:D+T.buttonPosition.y,inputTop:D+T.inputPosition.y-10}}getYTDExtremes(S,T,D){let P=this.chart.time,m=new P.Date(S),u=P.get("FullYear",m),v=Math.max(T,D?P.Date.UTC(u,0,1):+new P.Date(u,0,1)),I=m.getTime();return{max:Math.min(S||I,I),min:v}}createElements(){let S=this.chart,T=S.renderer,D=S.container,P=S.options,m=P.rangeSelector,u=m.inputEnabled,v=z(P.chart.style?.zIndex,0)+1;if(m.enabled!==!1&&(this.group=T.g("range-selector-group").attr({zIndex:7}).add(),this.div=d("div",void 0,{position:"relative",height:0,zIndex:v}),this.buttonOptions.length&&this.renderButtons(),D.parentNode&&D.parentNode.insertBefore(this.div,D),u)){this.inputGroup=T.g("input-group").add(this.group);let I=this.drawInput("min");this.minDateBox=I.dateBox,this.minLabel=I.label,this.minInput=I.input;let E=this.drawInput("max");this.maxDateBox=E.dateBox,this.maxLabel=E.label,this.maxInput=E.input}}render(S,T){let D=this.chart,P=D.options.rangeSelector,m=P.inputEnabled;if(P.enabled!==!1){if(m){this.setInputValue("min",S),this.setInputValue("max",T);let u=D.scroller&&D.scroller.getUnionExtremes()||D.xAxis[0]||{};if(y(u.dataMin)&&y(u.dataMax)){let v=D.xAxis[0].minRange||0;this.setInputExtremes("min",u.dataMin,Math.min(u.dataMax,this.getInputValue("max"))-v),this.setInputExtremes("max",Math.max(u.dataMin,this.getInputValue("min"))+v,u.dataMax)}if(this.inputGroup){let v=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(I=>{if(I){let{width:E}=I.getBBox();E&&(I.attr({x:v}),v+=E+P.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:S,chart:T,options:D}=this,P=c.lang,m=T.renderer,u=_(D.buttonTheme),v=u&&u.states,I=u.width||28;delete u.width,delete u.states,this.buttonGroup=m.g("range-selector-buttons").add(this.group);let E=this.dropdown=d("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),R=T.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=m.button("",0,0,()=>{},_(u,{"stroke-width":z(u["stroke-width"],0),width:"auto",paddingLeft:z(D.buttonTheme.paddingLeft,R?.padding,8),paddingRight:z(D.buttonTheme.paddingRight,R?.padding,8)}),v&&v.hover,v&&v.select,v&&v.disabled).hide().add(this.group),g(E,"touchstart",()=>{E.style.fontSize="16px"});let j=r.isMS?"mouseover":"mouseenter",G=r.isMS?"mouseout":"mouseleave";g(E,j,()=>{M(this.dropdownLabel.element,j)}),g(E,G,()=>{M(this.dropdownLabel.element,G)}),g(E,"change",()=>{M(this.buttons[E.selectedIndex-1].element,"click")}),this.zoomText=m.label(P.rangeSelectorZoom||"",0).attr({padding:D.buttonTheme.padding,height:D.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(D.labelStyle),u["stroke-width"]=z(u["stroke-width"],0)),d("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,E),this.buttonOptions.forEach((W,N)=>{d("option",{textContent:W.title||W.text},void 0,E),S[N]=m.button(W.text,0,0,B=>{let X,V=W.events&&W.events.click;V&&(X=V.call(W,B)),X!==!1&&this.clickButton(N),this.isActive=!0},u,v&&v.hover,v&&v.select,v&&v.disabled).attr({"text-align":"center",width:I}).add(this.buttonGroup),W.title&&S[N].attr("title",W.title)})}alignElements(){let{buttonGroup:S,buttons:T,chart:D,group:P,inputGroup:m,options:u,zoomText:v}=this,I=D.options,E=I.exporting&&I.exporting.enabled!==!1&&I.navigation&&I.navigation.buttonOptions,{buttonPosition:R,inputPosition:j,verticalAlign:G}=u,W=(B,X)=>E&&this.titleCollision(D)&&G==="top"&&X.align==="right"&&X.y-B.getBBox().height-12<(E.y||0)+(E.height||0)+D.spacing[0]?-40:0,N=D.plotLeft;if(P&&R&&j){let B=R.x-D.spacing[3];if(S){if(this.positionButtons(),!this.initialButtonGroupWidth){let J=0;v&&(J+=v.getBBox().width+5),T.forEach((Q,$)=>{J+=Q.width||0,$!==T.length-1&&(J+=u.buttonSpacing)}),this.initialButtonGroupWidth=J}N-=D.spacing[3];let q=W(S,R);this.alignButtonGroup(q),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),P.placed=S.placed=D.hasLoaded}let X=0;m&&(X=W(m,j),j.align==="left"?B=N:j.align==="right"&&(B=-Math.max(D.axisOffset[1],-X)),m.align({y:j.y,width:m.getBBox().width,align:j.align,x:j.x+B-2},!0,D.spacingBox),m.placed=D.hasLoaded),this.handleCollision(X),P.align({verticalAlign:G},!0,D.spacingBox);let V=P.alignAttr.translateY,H=P.getBBox().height+20,K=0;if(G==="bottom"){let q=D.legend&&D.legend.options;K=V-(H=H+(q&&q.verticalAlign==="bottom"&&q.enabled&&!q.floating?D.legend.legendHeight+z(q.margin,10):0)-20)-(u.floating?0:u.y)-(D.titleOffset?D.titleOffset[2]:0)-10}G==="top"?(u.floating&&(K=0),D.titleOffset&&D.titleOffset[0]&&(K=D.titleOffset[0]),K+=D.margin[0]-D.spacing[0]||0):G==="middle"&&(j.y===R.y?K=V:(j.y||R.y)&&(j.y<0||R.y<0?K-=Math.min(j.y,R.y):K=V-H)),P.translate(u.x,u.y+Math.floor(K));let{minInput:U,maxInput:Y,dropdown:Z}=this;u.inputEnabled&&U&&Y&&(U.style.marginTop=P.translateY+"px",Y.style.marginTop=P.translateY+"px"),Z&&(Z.style.marginTop=P.translateY+"px")}}alignButtonGroup(S,T){let{chart:D,options:P,buttonGroup:m}=this,{buttonPosition:u}=P,v=D.plotLeft-D.spacing[3],I=u.x-D.spacing[3];u.align==="right"?I+=S-v:u.align==="center"&&(I-=v/2),m&&m.align({y:u.y,width:z(T,this.initialButtonGroupWidth),align:u.align,x:I},!0,D.spacingBox)}positionButtons(){let{buttons:S,chart:T,options:D,zoomText:P}=this,m=T.hasLoaded?"animate":"attr",{buttonPosition:u}=D,v=T.plotLeft,I=v;P&&P.visibility!=="hidden"&&(P[m]({x:z(v+u.x,v)}),I+=u.x+P.getBBox().width+5);for(let E=0,R=this.buttonOptions.length;E{let j=0;return this.buttons.forEach(G=>{let W=G.getBBox();W.width>j&&(j=W.width)}),j},E=j=>{if(P?.alignOptions&&D){let G=P.alignAttr.translateX+P.alignOptions.x-S+P.getBBox().x+2,W=P.alignOptions.width||0,N=D.alignAttr.translateX+D.getBBox().x;return N+j>G&&G+W>N&&m.y{P&&D&&P.attr({translateX:P.alignAttr.translateX+(T.axisOffset[1]>=-S?0:-S),translateY:P.alignAttr.translateY+D.getBBox().height+10})};if(D){if(u==="always"){this.collapseButtons(),E(I())&&R();return}u==="never"&&this.expandButtons()}P&&D?v.align===m.align||E(this.initialButtonGroupWidth+20)?u==="responsive"?(this.collapseButtons(),E(I())&&R()):R():u==="responsive"&&this.expandButtons():D&&u==="responsive"&&(this.initialButtonGroupWidth>T.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:S,zoomText:T}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,T.hide(),S.forEach(D=>void D.hide()),this.showDropdown())}expandButtons(){let{buttons:S,zoomText:T}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),T.show(),S.forEach(D=>void D.show()),this.positionButtons())}showDropdown(){let{buttonGroup:S,chart:T,dropdownLabel:D,dropdown:P}=this;if(S&&P){let{translateX:m=0,translateY:u=0}=S,v=T.plotLeft+m;D.attr({x:v,y:u}).show(),p(P,{left:v+"px",top:u+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:S}=this;S&&(this.dropdownLabel.hide(),p(S,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let S=this.options,T=this.group,D=S.inputPosition,P=S.buttonPosition,m=S.y,u=P.y,v=D.y,I=0;if(S.height)return S.height;this.alignElements(),I=T?T.getBBox(!0).height+13+m:0;let E=Math.min(v,u);return(v<0&&u<0||v>0&&u>0)&&(I+=Math.abs(E)),I}titleCollision(S){return!(S.options.title.text||S.options.subtitle.text)}update(S,T=!0){let D=this.chart;_(!0,D.options.rangeSelector,S),this.destroy(),this.init(D),T&&this.render()}destroy(){let S=this,T=S.minInput,D=S.maxInput;S.eventsToUnbind&&(S.eventsToUnbind.forEach(P=>P()),S.eventsToUnbind=void 0),b(S.buttons),T&&(T.onfocus=T.onblur=T.onchange=null),D&&(D.onfocus=D.onblur=D.onchange=null),w(S,function(P,m){P&&m!=="chart"&&(P instanceof a?P.destroy():P instanceof window.HTMLElement&&x(P)),P!==A.prototype[m]&&(S[m]=null)},this)}}return f(A.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"}}),A}),e(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(i,s,r,o,a,l,h,c){let{format:g}=s,{getOptions:d}=r,{setFixedRange:p}=h,{addEvent:y,clamp:b,crisp:x,defined:f,extend:M,find:L,isNumber:_,isString:w,merge:k,pick:z,splat:O}=c;function C(S,T,D){return S==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:S==="yAxis"?{labels:{y:-2},opposite:D.opposite??T.opposite??!0,showLastLabel:!!(T.categories||T.type==="category"),title:{text:D.title?.text!=="Values"?D.title?.text:null}}:{}}function A(S,T){if(S==="xAxis"){let D=z(T.navigator&&T.navigator.enabled,o.enabled,!0),P={type:"datetime",categories:void 0};return D&&(P.startOnTick=!1,P.endOnTick=!1),P}return{}}class F extends i{init(T,D){let P=d(),m=T.xAxis,u=T.yAxis,v=z(T.navigator&&T.navigator.enabled,o.enabled,!0);T.xAxis=T.yAxis=void 0;let I=k({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:v},scrollbar:{enabled:z(l.enabled,!0)},rangeSelector:{enabled:z(a.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:z(P.tooltip&&P.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},T,{isStock:!0});T.xAxis=m,T.yAxis=u,I.xAxis=O(T.xAxis||{}).map(E=>k(C("xAxis",E,P.xAxis),E,A("xAxis",T))),I.yAxis=O(T.yAxis||{}).map(E=>k(C("yAxis",E,P.yAxis),E)),super.init(I,D)}createAxis(T,D){return D.axis=k(C(T,D.axis,d()[T]),D.axis,A(T,this.userOptions)),super.createAxis(T,D)}}return y(i,"update",function(S){let T=S.options;"scrollbar"in T&&this.navigator&&(k(!0,this.options.scrollbar,T.scrollbar),this.navigator.update({enabled:!!this.navigator.navigatorEnabled}),delete T.scrollbar)}),function(S){function T(R){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!_(this.min)||!_(this.max))return;let j=this.chart,G=this.logarithmic,W=this.crosshair.label,N=this.horiz,B=this.opposite,X=this.left,V=this.top,H=this.width,K=this.options.tickPosition==="inside",U=this.crosshair.snap!==!1,Y=R.e||this.cross&&this.cross.e,Z=R.point,q=this.crossLabel,J,Q,$=W.format,tt="",it,et=0,st=this.min,rt=this.max;G&&(st=G.lin2log(this.min),rt=G.lin2log(this.max));let nt=N?"center":B?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";q||(q=this.crossLabel=j.renderer.label("",0,void 0,W.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Z&&Z.series?Z.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:W.align||nt,padding:z(W.padding,8),r:z(W.borderRadius,3),zIndex:2}).add(this.labelGroup),j.styledMode||q.attr({fill:W.backgroundColor||Z&&Z.series&&Z.series.color||"#666666",stroke:W.borderColor||"","stroke-width":W.borderWidth||0}).css(M({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},W.style||{}))),N?(J=U?(Z.plotX||0)+X:Y.chartX,Q=V+(B?0:this.height)):(J=X+this.offset+(B?H:0),Q=U?(Z.plotY||0)+V:Y.chartY),$||W.formatter||(this.dateTime&&(tt="%b %d, %Y"),$="{value"+(tt?":"+tt:"")+"}");let ot=U?this.isXAxis?Z.x:Z.y:this.toValue(N?Y.chartX:Y.chartY),at=Z&&Z.series?Z.series.isPointInside(Z):_(ot)&&ot>st&&ot=it.right&&(et=-(lt+ht.width-it.right)),q.attr({x:J+et,y:Q,anchorX:N?J:this.opposite?0:j.chartWidth,anchorY:N?this.opposite?j.chartHeight:0:Q+ht.height/2})}function D(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function P(R){let j=this.chart,G=this.options,W=j._labelPanes=j._labelPanes||{},N=G.labels;if(j.options.isStock&&this.coll==="yAxis"){let B=G.top+","+G.height;!W[B]&&N.enabled&&(N.distance===15&&this.side===1&&(N.distance=0),N.align===void 0&&(N.align="right"),W[B]=this,R.align="right",R.preventDefault())}}function m(){let R=this.chart,j=this.options&&this.options.top+","+this.options.height;j&&R._labelPanes&&R._labelPanes[j]===this&&delete R._labelPanes[j]}function u(R){let j=this,G=j.isLinked&&!j.series&&j.linkedParent?j.linkedParent.series:j.series,W=j.chart,N=W.renderer,B=j.left,X=j.top,V=[],H=R.translatedValue,K=R.value,U=R.force,Y,Z,q,J,Q=[],$,tt;if(W.options.isStock&&R.acrossPanes!==!1&&j.coll==="xAxis"||j.coll==="yAxis"){for(let it of(R.preventDefault(),Q=(et=>{let st=et==="xAxis"?"yAxis":"xAxis",rt=j.options[st];return _(rt)?[W[st][rt]]:w(rt)?[W.get(rt)]:G.map(nt=>nt[st])})(j.coll),j.isXAxis?W.yAxis:W.xAxis))if(!it.options.isInternal){let et=it.isXAxis?"yAxis":"xAxis";j===(f(it.options[et])?W[et][it.options[et]]:W[et][0])&&Q.push(it)}for(let it of($=Q.length?[]:[j.isXAxis?W.yAxis[0]:W.xAxis[0]],Q))$.indexOf(it)!==-1||L($,et=>et.pos===it.pos&&et.len===it.len)||$.push(it);if(_(tt=z(H,j.translate(K||0,void 0,void 0,R.old))))if(j.horiz)for(let it of $){let et;J=(Z=it.pos)+it.len,Y=q=Math.round(tt+j.transB),U!=="pass"&&(YB+j.width)&&(U?Y=q=b(Y,B,B+j.width):et=!0),et||V.push(["M",Y,Z],["L",q,J])}else for(let it of $){let et;q=(Y=it.pos)+it.len,Z=J=Math.round(X+j.height-tt),U!=="pass"&&(ZX+j.height)&&(U?Z=J=b(Z,X,X+j.height):et=!0),et||V.push(["M",Y,Z],["L",q,J])}R.path=V.length>0?N.crispPolyLine(V,R.lineWidth||1):void 0}}function v(R){if(this.chart.options.isStock){let j;this.is("column")||this.is("columnrange")?j={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(j={marker:{enabled:!1,radius:2}}),j&&(R.plotOptions[this.type]=k(R.plotOptions[this.type],j))}}function I(){let R=this.chart,j=this.options.dataGrouping;return this.allowDG!==!1&&j&&z(j.enabled,R.options.isStock)}function E(R,j){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}}),e(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(i,s,r,o){let{column:a}=r.seriesTypes,{crisp:l,extend:h,merge:c}=o;class g extends a{extendStem(p,y,b){let x=p[0],f=p[1];typeof x[2]=="number"&&(x[2]=Math.max(b+y,x[2])),typeof f[2]=="number"&&(f[2]=Math.min(b-y,f[2]))}getPointPath(p,y){let b=y.strokeWidth(),x=p.series,f=l(p.plotX||0,b),M=Math.round(p.shapeArgs.width/2),L=[["M",f,Math.round(p.yBottom)],["L",f,Math.round(p.plotHigh)]];if(p.close!==null){let _=l(p.plotClose,b);L.push(["M",f,_],["L",f+M,_]),x.extendStem(L,b/2,_)}return L}drawSinglePoint(p){let y=p.series,b=y.chart,x,f=p.graphic;p.plotY!==void 0&&(f||(p.graphic=f=b.renderer.path().add(y.group)),b.styledMode||f.attr(y.pointAttribs(p,p.selected&&"select")),x=y.getPointPath(p,f),f[f?"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,y){let b=super.pointAttribs.call(this,p,y);return delete b.fill,b}toYData(p){return[p.high,p.low,p.close]}translate(){let p=this,y=p.yAxis,b=this.pointArrayMap&&this.pointArrayMap.slice()||[],x=b.map(f=>`plot${f.charAt(0).toUpperCase()+f.slice(1)}`);x.push("yBottom"),b.push("low"),super.translate.apply(p),p.points.forEach(function(f){b.forEach(function(M,L){let _=f[M];_!==null&&(p.dataModify&&(_=p.dataModify.modifyValue(_)),f[x[L]]=y.toPixels(_,!0))}),f.tooltipPos[1]=f.plotHigh+y.pos-p.chart.plotTop})}}return g.defaultOptions=c(a.defaultOptions,s),h(g.prototype,{pointClass:i,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",g),g}),e(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(i){let{seriesTypes:{hlc:s}}=i;class r extends s.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}
'}}}),e(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(i,s,r,o,a){let{composed:l}=i,{hlc:h}=o.seriesTypes,{addEvent:c,crisp:g,extend:d,merge:p,pushUnique:y}=a;function b(M){let L=M.options,_=L.dataGrouping;_&&L.useOhlcData&&L.id!=="highcharts-navigator-series"&&(_.approximation="ohlc")}function x(M){let L=M.options;L.useOhlcData&&L.id!=="highcharts-navigator-series"&&d(this,{pointValKey:f.prototype.pointValKey,pointArrayMap:f.prototype.pointArrayMap,toYData:f.prototype.toYData})}class f extends h{static compose(L,..._){y(l,"OHLCSeries")&&(c(L,"afterSetOptions",b),c(L,"init",x))}getPointPath(L,_){let w=super.getPointPath(L,_),k=_.strokeWidth(),z=g(L.plotX||0,k),O=Math.round(L.shapeArgs.width/2);if(L.open!==null){let C=g(L.plotOpen,k);w.push(["M",z,C],["L",z-O,C]),super.extendStem(w,k/2,C)}return w}pointAttribs(L,_){let w=super.pointAttribs.call(this,L,_),k=this.options;return delete w.fill,!L.options.color&&k.upColor&&L.openp&&(g-=Math.round((y-p)/2),p=y),x=h[c](g,d,p,y,b),f&&M){let L=f;if(c==="circle")L=g+p/2;else{let w=x[0],k=x[1];w[0]==="M"&&k[0]==="L"&&(L=(w[1]+k[1])/2)}let _=d>M?d:d+y;x.push(["M",L,_],["L",f,M]),x=x.concat(h.circle(f-1,M-1,2,2))}return x}}r.compose=function(h){if(o.indexOf(h)===-1){o.push(h);let g=h.prototype.symbols;g.flag=a,l(g,"circle"),l(g,"square")}let c=i.getRendererType();o.indexOf(c)&&o.push(c)}}(s||(s={})),s}),e(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(i,s,r,o){var a;let{composed:l}=s,{prototype:h}=i,{prototype:c}=r,{defined:g,pushUnique:d,stableSort:p}=o;return function(y){function b(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,M=f.options,L=f.chart,_=f.points,w=M.onSeries,k=w&&L.get(w),z=k&&k.options.step,O=k&&k.points,C=L.inverted,A=f.xAxis,F=f.yAxis,S=_.length-1,T,D,P=M.onKey||"y",m=O&&O.length,u=0,v,I,E,R,j;if(k&&k.visible&&m){for(u=(k.pointXOffset||0)+(k.barW||0)/2,R=k.currentDataGrouping,I=O[m-1].x+(R?R.totalRange:0),p(_,(G,W)=>G.x-W.x),P="plot"+P[0].toUpperCase()+P.substr(1);m--&&_[S];)if(v=O[m],(T=_[S]).y=v.y,v.x<=T.x&&v[P]!==void 0){if(T.x<=I&&(T.plotY=v[P],v.xMath.pow(1-U,3)*G[Y]+3*(1-U)*(1-U)*U*N[Y]+3*(1-U)*U*U*B[Y]+U*U*U*W[Y],V=0,H=1,K;for(let U=0;U<100;U++){let Y=(V+H)/2,Z=X(Y,0);if(Z===null)break;if(.25>Math.abs(Z-T.plotX)){K=Y;break}Z{let N;G.plotX+=u,(G.plotY===void 0||C)&&(G.plotX>=0&&G.plotX<=A.len?C?(G.plotY=A.translate(G.x,0,1,0,1),G.plotX=g(G.y)?F.translate(G.y,0,0,0,1):0):G.plotY=(A.opposite?0:f.yAxis.len)+A.offset:G.shapeArgs={}),(D=_[W-1])&&D.plotX===G.plotX&&(D.stackIndex===void 0&&(D.stackIndex=0),N=D.stackIndex+1),G.stackIndex=N}),this.onSeries=k}y.compose=function(f){if(d(l,"OnSeries")){let M=f.prototype;M.getPlotBox=b,M.translate=x}return f},y.getPlotBox=b,y.translate=x}(a||(a={})),a}),e(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(i,s,r,o,a,l,h,c,g){let{noop:d}=o,{distribute:p}=l,{series:y,seriesTypes:{column:b}}=h,{addEvent:x,defined:f,extend:M,isNumber:L,merge:_,objectEach:w,wrap:k}=g;class z extends b{animate(C){C&&this.setClip()}drawPoints(){let C,A,F,S,T,D,P,m,u,v,I,E=this.points,R=this.chart,j=R.renderer,G=R.inverted,W=this.options,N=W.y,B=this.yAxis,X={},V=[],H=L(W.borderRadius)?W.borderRadius:0;for(S=E.length;S--;)T=E[S],v=(G?T.plotY:T.plotX)>this.xAxis.len,C=T.plotX,P=T.stackIndex,F=T.options.shape||W.shape,(A=T.plotY)!==void 0&&(A=T.plotY+N-(P!==void 0&&P*W.stackDistance)),T.anchorX=P?void 0:T.plotX,m=P?void 0:T.plotY,I=F!=="flag",D=T.graphic,A!==void 0&&C>=0&&!v?(D&&T.hasNewShapeType()&&(D=D.destroy()),D||(D=T.graphic=j.label("",0,void 0,F,void 0,void 0,W.useHTML).addClass("highcharts-point").add(this.markerGroup),T.graphic.div&&(T.graphic.div.point=T),D.isNew=!0),D.attr({align:I?"center":"left",width:W.width,height:W.height,"text-align":W.textAlign,r:H}),R.styledMode||D.attr(this.pointAttribs(T)).css(_(W.style,T.style)).shadow(W.shadow),C>0&&(C-=D.strokeWidth()%2),u={y:A,anchorY:m},W.allowOverlapX&&(u.x=C,u.anchorX=T.anchorX),D.attr({text:T.options.title??W.title??"A"})[D.isNew?"attr":"animate"](u),W.allowOverlapX||(X[T.plotX]?X[T.plotX].size=Math.max(X[T.plotX].size,D.width||0):X[T.plotX]={align:I?.5:0,size:D.width||0,target:C,anchorX:C}),T.tooltipPos=[C,A+B.pos-R.plotTop]):D&&(T.graphic=D.destroy());if(!W.allowOverlapX){let K=100;for(let U of(w(X,function(Y){Y.plotX=Y.anchorX,V.push(Y),K=Math.max(Y.size,K)}),p(V,G?B.len:this.xAxis.len,K),E)){let Y=U.plotX,Z=U.graphic,q=Z&&X[Y];q&&Z&&(f(q.pos)?Z[Z.isNew?"attr":"animate"]({x:q.pos+(q.align||0)*q.size,anchorX:U.anchorX}).show().isNew=!1:Z.hide().isNew=!0)}}W.useHTML&&this.markerGroup&&k(this.markerGroup,"on",function(K){return c.prototype.on.apply(K.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let C=this.points;for(let A of(super.drawTracker(),C)){let F=A.graphic;F&&(A.unbindMouseOver&&A.unbindMouseOver(),A.unbindMouseOver=x(F.element,"mouseover",function(){for(let S of(A.stackIndex>0&&!A.raised&&(A._y=F.y,F.attr({y:A._y-8}),A.raised=!0),C))S!==A&&S.raised&&S.graphic&&(S.graphic.attr({y:S._y}),S.raised=!1)}))}}pointAttribs(C,A){let F=this.options,S=C&&C.color||this.color,T=F.lineColor,D=C&&C.lineWidth,P=C&&C.fillColor||F.fillColor;return A&&(P=F.states[A].fillColor,T=F.states[A].lineColor,D=F.states[A].lineWidth),{fill:P||S,stroke:T||S,"stroke-width":D||F.lineWidth||0}}setClip(){y.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return z.compose=r.compose,z.defaultOptions=_(b.defaultOptions,s),a.compose(z),M(z.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:i,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:d,init:y.prototype.init}),h.registerSeriesType("flags",z),z}),e(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(i,s){var r;let{addEvent:o,find:a,fireEvent:l,isArray:h,isNumber:c,pick:g}=s;return function(d){function p(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function y(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function b(){let k=this.brokenAxis;if(k?.hasBreaks){let z=this.tickPositions,O=this.tickPositions.info,C=[];for(let A=0;Au.to||C>u.from&&Au.from&&Au.from&&A>u.to&&A0){let S,T;for(this.options.gapUnit!=="value"&&(A*=this.basePointRange),z&&z>A&&z>=this.basePointRange&&(A=z);F--;)if(T&&T.visible!==!1||(T=O[F+1]),S=O[F],T.visible!==!1&&S.visible!==!1){if(T.x-S.x>A){let D=(S.x+T.x)/2;O.splice(F+1,0,{isNull:!0,x:D}),C.stacking&&this.options.stacking&&((C.stacking.stacks[this.stackKey][D]=new i(C,C.options.stackLabels,!1,D,this.stack)).total=0)}T=S}}return this.getGraphPath(O)}d.compose=function(k,z){if(!k.keepProps.includes("brokenAxis")){k.keepProps.push("brokenAxis"),o(k,"init",x),o(k,"afterInit",p),o(k,"afterSetTickPositions",b),o(k,"afterSetOptions",y);let O=z.prototype;O.drawBreaks=L,O.gappedPath=_,o(z,"afterGeneratePoints",f),o(z,"afterRender",M)}return k};class w{static isInBreak(z,O){let C=z.repeat||1/0,A=z.from,F=z.to-z.from,S=O>=A?(O-A)%C:C-(A-O)%C;return z.inclusive?S<=F:S=A);S++)(F.to=z)break;if(w.isInBreak(F,z)){A-=z-F.from;break}}return A}constructor(z){this.hasBreaks=!1,this.axis=z}findBreakAt(z,O){return a(O,function(C){return C.fromI;)R-=v;for(;Rthis.chart.plotSizeX/x||M&&L.forced)&&(f=!0));return f?x:0}function d(){this.series.forEach(function(y){y.hasProcessed=!1})}function p(y,b){let x;if(b=h(b,!0),y||(y={forced:!1,units:null}),this instanceof r)for(x=this.series.length;x--;)this.series[x].update({dataGrouping:y},!1);else this.chart.options.series.forEach(function(f){f.dataGrouping=typeof y=="boolean"?y:l(y,f.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),b&&this.chart.redraw()}return{compose:function(y){r=y;let b=y.prototype;b.applyGrouping||(o(y,"afterSetScale",d),o(y,"postProcessData",c),a(b,{applyGrouping:c,getGroupPixelWidth:g,setDataGrouping:p}))}}}),e(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(i,s,r,o,a,l){let{series:{prototype:h}}=a,{addEvent:c,defined:g,error:d,extend:p,isNumber:y,merge:b,pick:x}=l,f=h.generatePoints;function M(O){var C;let A,F,S=this.chart,T=this.options.dataGrouping,D=this.allowDG!==!1&&T&&x(T.enabled,S.options.isStock),P=this.reserveSpace(),m=this.currentDataGrouping,u,v,I=!1;D&&!this.requireSorting&&(this.requireSorting=I=!0);let E=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!O)||!D;if(I&&(this.requireSorting=!1),E)return;this.destroyGroupedData();let R=T.groupAll?this.xData:this.processedXData,j=T.groupAll?this.yData:this.processedYData,G=S.plotSizeX,W=this.xAxis,N=W.options.ordinal,B=this.groupPixelWidth;if(B&&R&&R.length&&G){F=!0,this.isDirty=!0,this.points=null;let X=W.getExtremes(),V=X.min,H=X.max,K=N&&W.ordinal&&W.ordinal.getGroupIntervalFactor(V,H,this)||1,U=B*(H-V)/G*K,Y=W.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(U,T.units||s.units),Math.min(V,R[0]),Math.max(H,R[R.length-1]),W.options.startOfWeek,R,this.closestPointRange),Z=h.groupData.apply(this,[R,j,Y,T.approximation]),q=Z.groupedXData,J=Z.groupedYData,Q=0;for(T&&T.smoothed&&q.length&&(T.firstAnchor="firstPoint",T.anchor="middle",T.lastAnchor="lastPoint",d(32,!1,S,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),A=1;A=tt[0]){let lt;ht++;let yt=$.groupMap[0].start,Et=$.groupMap[0].length;y(yt)&&y(Et)&&(lt=yt+(Et-1)),tt[0]={start:tt[0],middle:tt[0]+.5*st,end:tt[0]+st,firstPoint:$.xData[0],lastPoint:lt&&$.xData[lt]}[ot]}if(rt>0&&at&&st&&tt[rt]>=it-st){ct--;let lt=$.groupMap[$.groupMap.length-1].start;tt[rt]={start:tt[rt],middle:tt[rt]+.5*st,end:tt[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;)tt[ct]+=lt,ct--}}(this,q,H),P&&(g((C=q)[0])&&y(W.min)&&y(W.dataMin)&&C[0]W.max&&((!g(W.options.max)&&y(W.dataMax)&&W.max>=W.dataMax||W.max===W.dataMax)&&(W.max=Math.max(C[C.length-1],W.max)),W.dataMax=Math.max(C[C.length-1],W.dataMax))),T.groupAll&&(this.allGroupedData=J,q=(v=this.cropData(q,J,W.min,W.max)).xData,J=v.yData,this.cropStart=v.start),this.processedXData=q,this.processedYData=J}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=F,this.preventGraphAnimation=(m&&m.totalRange)!==(u&&u.totalRange)}function L(){this.groupedData&&(this.groupedData.forEach(function(O,C){O&&(this.groupedData[C]=O.destroy?O.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function _(){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 k(O,C,A,F){let S=this,T=S.data,D=S.options&&S.options.data,P=[],m=[],u=[],v=O.length,I=!!C,E=[],R=S.pointArrayMap,j=R&&R.length,G=["x"].concat(R||["y"]),W=this.options.dataGrouping&&this.options.dataGrouping.groupAll,N,B,X,V=0,H=0,K=typeof F=="function"?F:F&&i[F]?i[F]:i[S.getDGApproximation&&S.getDGApproximation()||"average"];if(j){let Y=R.length;for(;Y--;)E.push([])}else E.push([]);let U=j||1;for(let Y=0;Y<=v;Y++)if(!(O[Y]=A[V+1]||Y===v;){N=A[V],S.dataGroupInfo={start:W?H:S.cropStart+H,length:E[0].length,groupStart:N},X=K.apply(S,E),S.pointClass&&!g(S.dataGroupInfo.options)&&(S.dataGroupInfo.options=b(S.pointClass.prototype.optionsToObject.call({series:S},S.options.data[S.cropStart+H])),G.forEach(function(Z){delete S.dataGroupInfo.options[Z]})),X!==void 0&&(P.push(N),m.push(X),u.push(S.dataGroupInfo)),H=Y;for(let Z=0;Z{let c=h.axis.getExtremes(),g=c.min,d=c.max,p=o(h.axis.minPointOffset,0);return r(g)&&r(d)&&h.value>=g-p&&h.value<=d+p&&!h.axis.options.isInternal})[0]},getFieldType:function(l,h){let c=a[l],g=typeof h;return s(c)&&(g=c),{string:"text",number:"number",boolean:"checkbox"}[g]}}}),e(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(i,s){let r,{addEvent:o,isObject:a,pick:l,defined:h,merge:c}=i,{getAssignedAxis:g}=s,d=[],p={enabled:!0,sensitivity:1.1},y=f=>(a(f)||(f={enabled:f??!0}),c(p,f)),b=function(f,M,L,_,w,k,z){let O=l(z.type,f.zooming.type,""),C=[];O==="x"?C=L:O==="y"?C=_:O==="xy"&&(C=f.axes);let A=f.transform({axes:C,to:{x:w-5,y:k-5,width:10,height:10},from:{x:w-5*M,y:k-5*M,width:10*M,height:10*M},trigger:"mousewheel"});return A&&(h(r)&&clearTimeout(r),r=setTimeout(()=>{f.pointer?.drop()},400)),A};function x(){let f=y(this.zooming.mouseWheel);f.enabled&&o(this.container,"wheel",M=>{M=this.pointer?.normalize(M)||M;let{pointer:L}=this,_=L&&!L.inClass(M.target,"highcharts-no-mousewheel");if(this.isInsidePlot(M.chartX-this.plotLeft,M.chartY-this.plotTop)&&_){let w=f.sensitivity||1.1,k=M.detail||(M.deltaY||0)/120,z=g(L.getCoordinates(M).xAxis),O=g(L.getCoordinates(M).yAxis);b(this,Math.pow(w,k),z?[z.axis]:this.xAxis,O?[O.axis]:this.yAxis,M.chartX,M.chartY,f)&&M.preventDefault?.()}})}return{compose:function(f){d.indexOf(f)===-1&&(d.push(f),o(f,"afterGetContainer",x))}}}),e(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(i,s){return i.MouseWheelZoom=i.MouseWheelZoom||s,i.MouseWheelZoom.compose(i.Chart),i}),e(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(i,s,r,o,a,l,h,c,g){return i.Navigator=i.Navigator||r,i.OrdinalAxis=i.OrdinalAxis||o,i.RangeSelector=i.RangeSelector||a,i.Scrollbar=i.Scrollbar||l,i.stockChart=i.stockChart||h.stockChart,i.StockChart=i.StockChart||i.stockChart,i.extend(i.StockChart,h),s.compose(i.Series,i.Axis,i.Point),g.compose(i.Renderer),c.compose(i.Series),i.Navigator.compose(i.Chart,i.Axis,i.Series),i.OrdinalAxis.compose(i.Axis,i.Series,i.Chart),i.RangeSelector.compose(i.Axis,i.Chart),i.Scrollbar.compose(i.Axis),i.StockChart.compose(i.Chart,i.Axis,i.Series,i.SVGRenderer),i})})});var Qu=ai((wA,go)=>{"use strict";(function(n){typeof go=="object"&&go.exports?(n.default=n,go.exports=n):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return n(t),n.Highcharts=t,n}):n(typeof Highcharts<"u"?Highcharts:void 0)})(function(n){"use strict";var t=n?n._modules:{};function e(i,s,r,o){i.hasOwnProperty(s)||(i[s]=o.apply(null,r),typeof CustomEvent=="function"&&n.win.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:i[s]}})))}e(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(i,s){var r,o;let{parse:a}=i,{merge:l}=s;return(o=r||(r={})).initDataClasses=function(h){let c=this.chart,g=this.legendItem=this.legendItem||{},d=this.options,p=h.dataClasses||[],y,b,x=c.options.chart.colorCount,f=0,M;this.dataClasses=b=[],g.labels=[];for(let L=0,_=p.length;L<_;++L)y=l(y=p[L]),b.push(y),(c.styledMode||!y.color)&&(d.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(d.minColor).tweenTo(a(d.maxColor),_<2?.5:L/(_-1)))},o.initStops=function(){let h=this.options,c=this.stops=h.stops||[[0,h.minColor||""],[1,h.maxColor||""]];for(let g=0,d=c.length;g=d)&&(p===void 0||h<=p)){y=b.color,c&&(c.dataClass=x,c.colorIndex=b.colorIndex);break}}else{for(g=this.normalizedValue(h),x=M.length;x--&&!(g>M[x][0]););d=M[x]||M[x+1],g=1-((p=M[x+1]||d)[0]-g)/(p[0]-d[0]||1),y=d.color.tweenTo(p.color,g)}return y},r}),e(t,"Core/Axis/SolidGaugeAxis.js",[t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Utilities.js"]],function(i,s){let{extend:r}=s;return{init:function(o){r(o,i)}}}),e(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),e(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(i,s,r,o,a){let{gauge:l,pie:h}=s.seriesTypes,{clamp:c,extend:g,isNumber:d,merge:p,pick:y,pInt:b}=a;class x extends l{translate(){let M=this.yAxis;r.init(M),!M.dataClasses&&M.options.dataClasses&&M.initDataClasses(M.options),M.initStops(),l.prototype.translate.call(this)}drawPoints(){let M,L=this.yAxis,_=L.center,w=this.options,k=this.chart.renderer,z=w.overshoot,O=w.rounded&&w.borderRadius===void 0,C=d(z)?z/180*Math.PI:0;for(let A of(d(w.threshold)&&(M=L.startAngleRad+L.translate(w.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=y(M,L.startAngleRad),this.points))if(!A.isNull){let F=b(y(A.options.radius,w.radius,100))*_[2]/200,S=b(y(A.options.innerRadius,w.innerRadius,60))*_[2]/200,T=Math.min(L.startAngleRad,L.endAngleRad),D=Math.max(L.startAngleRad,L.endAngleRad),P=A.graphic,m=L.startAngleRad+L.translate(A.y,void 0,void 0,void 0,!0),u,v,I=L.toColor(A.y,A);I==="none"&&(I=A.color||this.color||"none"),I!=="none"&&(A.color=I),m=c(m,T-C,D+C),w.wrap===!1&&(m=c(m,T,D));let E=O?(F-S)/2/F:0,R=Math.min(m,this.thresholdAngleRad)-E,j=Math.max(m,this.thresholdAngleRad)+E;j-R>2*Math.PI&&(j=R+2*Math.PI);let G=O?"50%":0;w.borderRadius&&(G=i.optionsToObject(w.borderRadius).radius),A.shapeArgs=u={x:_[0],y:_[1],r:F,innerR:S,start:R,end:j,borderRadius:G},A.startR=F,P?(v=u.d,P.animate(g({fill:I},u)),v&&(u.d=v)):A.graphic=P=k.arc(u).attr({fill:I,"sweep-flag":0}).add(this.group),this.chart.styledMode||(w.linecap!=="square"&&P.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),P.attr({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0})),P&&P.addClass(A.getClassName(),!0)}}animate(M){M||(this.startAngleRad=this.thresholdAngleRad,h.prototype.animate.call(this,M))}}return x.defaultOptions=p(l.defaultOptions,o),s.registerSeriesType("solidgauge",x),x}),e(t,"masters/modules/solid-gauge.src.js",[t["Core/Globals.js"]],function(i){return i})})});var _o=Jt(Ms());var Yh="Oxygen",Uh="mdx2json.emptyportlet",Hh="DSW.Addons.";var pe=(()=>{class n{constructor(){this.model={},this.el=Qt(Lh),this.cd=Qt(Rh),this.ds=Qt(jh),this.ss=Qt(Bh),this.bs=Qt(Gh),this.us=Qt(Nh),this.i18n=Qt(zh),this.route=Qt(Fh),this.fs=Qt(Wh),this.dbs=Qt(Xh),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(s=>{let r=s.dataValue?.toString().split("/");return i.some(o=>r.includes(o))})}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(s=>e.indexOf(s.action.toLowerCase())===-1&&s.type!=="hidden");i.length!==0&&(this.widget.acItems=i)}initializeChoseDataSource(){return Ft(this,null,function*(){if(!this.widget)return;let e=r=>r.action==="chooseDataSource"||r.action==="chooseRowSpec"||r.action==="setRowSpec"||r.action==="chooseColumnSpec",i=this.widget.type===Uh;if(!i&&(!this.widget.controls||this.widget.controls.length===0))return;let s=[];if(this.widget.controls&&(s=this.widget.controls.filter(e).filter(r=>r.location!=="dashboard")),i){let r=this.dbs.getWidgets();for(let o=0;oa.location==="dashboard")))}if(s.length!==0){this.hasDatasourceChooser=!0,this.widget.dsItems=[];for(let r=0;r{l[p]=d[y]})}}let c={action:s[r].action,label:s[r].label||this.i18n.get("dataSource"),dsSelected:s[r].value,control:s[r],labels:[],values:[],field:"select"};this.widget.dsItems.push(c);let g=null;if(h?g=yield this.ds.getTermList(h):g=l,g&&typeof g=="object"){for(let p in g)g[p]===this.widget.dataSource&&(this.widget.dsSelected=p);c.labels=[],c.values=[],(c.control?.action==="chooseRowSpec"||c.control?.action==="setRowSpec")&&(c.labels.push(""),c.values.push(""));for(let p in g)c.labels.push(p),c.values.push(g[p]);let d=-1;this.customDataSource?d=c.values.findIndex(p=>p===this.customDataSource):d=c.values.findIndex(p=>p.split("/").pop()===c.dsSelected),d===-1?c.dsSelected=c.labels[0]:c.dsSelected=c.labels[d],this.parent?.filters.detectChanges()}}}})}onVariableChange(e){let i=e.target;this.bs.broadcast(`updatePivotVar:${i}`)}onPivotVarChanged(){this.requestData()}getColumnIndexByName(e,i){return e.Cols[0].tuples.findIndex(s=>s.caption.toLowerCase()===i.toLowerCase())}getDataByColumnName(e,i,s,r=""){if(!e||!e.Data||!e.Cols||!e.Cols[0]||!e.Cols[0].tuples)return;let o=e.Cols[0].tuples.filter(c=>c.caption.toLowerCase()===i.toLowerCase());if(o.length===0)return;let a=e.Cols[0].tuples.indexOf(o[0]),l=e.Cols[0].tuples[a].originalIndex;l!==void 0&&(a=l);let h=e.Data[s+a];return r&&(h=this.formatNumber(h,r)),h}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:"+s,{path:"",drills:[]})})}}doDrillFilter(e,i=[]){if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let s=i.slice();e||s.pop(),this.widget.clickFilterActive=!!e;for(let r=0;r{this.bs.broadcast("drillFilter:"+a,{path:e,drills:s})})}this.parent?.header?.cd.detectChanges()}onDrillFilter(e,i){this.drillFilter=e,this.drillFilterDrills=i,this.requestData()}actionNavigate(e,i=!1){let s=e.targetProperty,r=s.toUpperCase().indexOf("DASHBOARD=");if(r!==-1){let o=s.substring(r+10,s.length);o.indexOf("?")===-1&&(o=o.replace("&","?"));let a=location.href;a.indexOf("#")!==-1?s=a.split("#")[0]+"#/"+Ss+"/"+o:s+="#/"+Ss+"/"+o}if(s=s.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){let o=this.lpt.dataController.getData(),a=o.dataArray[(this.lpt.getSelectedRows()[0]-1)*o.columnProps.length],l=s.toLowerCase().indexOf("$$$currvalue");l!==-1&&(s=s.substring(0,l)+a+s.substring(l+12,s.length))}if(this.lpt&&this.lpt.getSelectedRows().length){let o=this.lpt.dataController.getData(),a=this.lpt.getSelectedRows(),l=[];for(let c=0;cthis.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(),s="select non empty",r=i.lastIndexOf(s);r===-1&&(s="select",r=i.lastIndexOf(s));let o=i.lastIndexOf("from");if(r===-1){console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");return}if(o===-1){console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");return}let a="";if(this.pivotData?.listingRows){let h=parseInt(this.pivotData.listingRows,10);h&&(a=` MAXROWS ${h} `)}let l=this.widget.controls.find(h=>h.action==="showListing");if(l){let h=l.targetPropertyDisplay;if(h)return"DRILLTHROUGH "+a+e.substring(0,r+s.length)+" "+e.substring(o,e.length)+` %LISTING [${h}]`}return"DRILLTHROUGH "+a+e.substring(0,r+s.length)+" "+e.substring(o,e.length)}doDrill(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{this.clearError(),o||this.doDrillFilter(e,this.drills);let g=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading();let p=()=>{if(r){r();return}if(!this.canDoDrillthrough)return;let y=this.getDrillthroughMdx(d)||"";this.ds.execMDX(y).then(b=>{!b||!b.children||b.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=b,this._currentData=b,this.displayAsPivot(y))}).catch(b=>{l&&l(b)})};this.showLoading(),this.ds.execMDX(d).catch(y=>{o?l&&l(y):p()}).then(y=>{if(y){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(y)&&e){p();return}this.isEmptyData(y)||(e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.baseTitle||(this.widget.baseTitle=this.widget.title||""),this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(d),this.retrieveData(y),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),this._currentData=y,a&&a())}}).finally(()=>{this.hideLoading(),h()})})}doDrillthrough(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{if(!this.canDoDrillthrough){h();return}if(this.clearError(),this.widget.kpitype&&i){this.doKPIDrillthrough(i);return}let g=this.drills.slice();e?Array.isArray(e)?e.forEach(y=>{this.drills.push({path:y,name:i||"",category:s})}):this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading();let p=this.getDrillthroughMdx(d)||"";this.ds.execMDX(p).then(y=>{!y||!y.children||y.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=y,this.displayAsPivot(p))}).catch(y=>{l&&l(y)}).finally(()=>{this.hideLoading()})})}doDrillOnly(e,i,s,r,o=!1,a,l){return new Promise((h,c)=>{this.clearError();let g=this.drills.slice();e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop();let d=this.getMDX();this.drills=g,this.showLoading(),this.ds.execMDX(d).catch(p=>{l&&l(p)}).then(p=>{p&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(p)&&(this.removeColsThatNotExistInDataProperties(p),this._currentData=p,e?this.drills.push({path:e,name:i||"",category:s}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.baseTitle||(this.widget.baseTitle=this.widget.title||""),this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(d),this.retrieveData(p),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),a&&a()))}).finally(()=>{this.hideLoading(),h()})})}checkForAutoDrill(e){return Ft(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 s=this.drills;if(s.length===0&&(s=this.drillFilterDrills),s.length===0)return e;let r=[];this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(r=this.pivotData.rowAxisOptions.drilldownSpec.split("^"));for(let c=0;cthis._retriveDataSource(i)).catch(i=>{this.showError(i.error?.Error||i.message)})}convertKPIToMDXData(e,i=!1){let s=e,r=e.Result,o={Info:{cubeName:s.Info.KpiName},Cols:[],Data:[]},a=[];for(let h=0;hthis.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;ir.action==="applyVariable");if(this.widget.shared){let r=this.route.snapshot.queryParamMap.get("variables");r&&r.split("~").forEach(a=>{let l=a.split("."),h=l[0],c=l[1],g=s.findIndex(d=>d.targetProperty==="$variable."+h);g!==-1?s[g].value=c:s.push({targetProperty:"$variable."+h,value:c})})}if(!s.length)return e;for(let r=0;rg+p+(c?".%NOT":"")).join(",")||"",e+="})"}else e+=" %FILTER "+h}}return e}dateToHorolog(e){let i=new Date("12/31/1840Z"),r=this.us.toDate(e).getTime()-i.getTime();return Math.ceil(r/(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 o=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",i);return o=this.checkColSpec(o),this.applyDrill(o)}if(this.drillFilter){let o=this.drillFilter.indexOf("&");o!==-1&&i.push({targetProperty:this.drillFilter.substring(0,o-1),value:"&"+this.drillFilter.substring(o+1,this.drillFilter.length)})}for(let o=0;o{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 s="";if(e==null&&(e=""),i?s=(0,_o.default)(e).format(i.replace(/;/g,""))||"":s=e.toString(),this.dataInfo){let r=this.dataInfo.numericGroupSeparator,o=this.dataInfo.numericGroupSize||3;if(r){let a=s.split(".");a[0]=a[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),s=a.join(".")}this.dataInfo.decimalSeparator&&(s=s.replace(/\./g,this.dataInfo.decimalSeparator))}return s}getDrillsAsParameter(){let e=this.drills;return e?.length?encodeURIComponent(e.map(i=>i.path).join("~")):""}getFormat(e,i,s){let r="";return this.widget?.format&&(r=this.widget.format),i.Cols[0].tuples[e].format&&(r=i.Cols[0].tuples[e].format),s?.format&&(r=s?.format),r}getDataValue(e,i,s){let r=i.Data[e],o=this.getFormat(e,i,s);return o&&(r=(0,_o.default)(r).format(o)),r}_requestKPIData(e,i=!1){let s=this.customDataSource||this.widget.dataSource;if(!s)return;let r=this.fs.getWidgetFilters(this.widget.name)?.filter(a=>!!a.value).map(a=>a.value.toString().split("|").map(h=>({name:a.targetProperty,value:h,exclude:!!a.isExclude}))).flat();e&&r.push(...e);let o=!!e||i;return this.showLoading(),this.ds.getKPIData(s,r,o).then(a=>this._retriveKPI(a,o)).finally(()=>{this.hideLoading()})}removeColsThatNotExistInDataProperties(e){if(this.widget.type==="map"||this.preventColFilteringBasedOnDataProperties||!this.widget.dataProperties?.length||!e?.Cols[0]?.tuples?.length)return;let i=[],s=e.Cols[0]?.tuples?.length||0;s&&(e.Cols[0].tuples=e?.Cols[0]?.tuples.filter((r,o)=>{let a=r.dimension.toString().split("/"),l=this.widget.dataProperties.some(h=>h.dataValue.toString().split("/").some(g=>a.includes(g)));return l||i.push(o),l}),e.Data=e.Data?.filter((r,o)=>!i.some(a=>o%s===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 s={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(s,"*");try{window.parent.dsw?.onDrill&&window.parent.dsw.onDrill(s)}catch(r){console.error(r)}}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(Ss+"/"+e)}initializeInputControls(){let e="setRowCount";this.widget.controls.filter(s=>e.includes(s.action)).forEach(s=>{this.widget.dsItems.push({action:s.action,label:s.label||"Row count",field:"input",type:"number",_value:s.value||void 0})})}applyRowCount(e){let i=this.widget.dsItems.find(l=>l.action==="setRowCount");if(!i||!i._value)return e;let s=/(HEAD\(.*),(.*)(\))/i;if(e.match(s))return e.replace(s,`$1,${i._value}$3`);let o=e.match(/ON 0,(.*)ON 1/)?.[1];if(!o)return e;o=o.replace("NON EMPTY","");let a=" HEAD("+o.trim()+`, ${i._value}) `;return e.replace(o,a)}extendPropsWithOverrides(){this.override&&this.override.columns?.forEach((e,i)=>{let s=this.widget.dataProperties[i];s&&(e.showAs&&(s.showAs=e.showAs),e.format&&(s.format=e.format),e.display&&(s.display=e.display),e.label&&(s.label=e.label),e.summary&&(s.summary=e.summary),e.rangeLower&&(s.rangeLower=e.rangeLower),e.rangeUpper&&(s.rangeUpper=e.rangeUpper),e.targetValue&&(s.targetValue=e.targetValue),e.thresholdLower&&(s.thresholdLower=e.thresholdLower),e.thresholdUpper&&(s.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(s=>s.action==="setColumnSpec");e.length!==0&&(this.customColSpec=e[0].targetProperty);let i=this.widget.controls.filter(s=>s.action==="refresh"&&parseInt(s.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(s=>s.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 s=this.widgetsSettings?.[this.widget.name]?.themeColors?.[i];s&&(this.tc=s)}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 s=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i[a.name],path:""})),r=this._kpiData.Result.Properties.map(a=>({name:a.name,value:i.seriesName,path:""})),o=this._requestKPIData([...s,...r]);o&&o.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}))})}getFilterString(e){let i=[],s=e.value.toString().split("|"),r=e.targetProperty;if(e.isInterval){let l=e.values[e.fromIdx].path,h=e.values[e.toIdx].path;e.isDate&&(l=this.dateToHorolog(l.replace("&[","").replace("]","")),h=this.dateToHorolog(h.replace("&[","").replace("]","")),l=`&[${l}]`,h=`&[${h}]`),i.push("%OR("+r+"."+l+":"+h+")")}else for(let l=0;l1?o+i.join(",")+a:i}applyFilters(e){let i=e.filter(o=>o.action==="applyVariable"?!1:o.value!=="");if(i.length===0)return"";if(i.length===1)return" %FILTER "+this.getFilterString(i[0]);let s=i.map(o=>this.getFilterString(o)),r=s[0];for(let o=1;o{class n extends pe{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,r=i.firstChild.getBBox();i.setAttribute("viewBox",[r.x,r.y,r.width,r.height].join(" "))})}retrieveData(e){if(this.textData=[],this.hideLoading(),e)for(let i=0;ig){let p=this.widget.properties?.highRangeColor;d.highStyle&&(p=this.getCss(d.highStyle).fill),p&&(h=p)}}this.textData.push({label:a,value:r,color:o,valueColor:h,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(s=>s).forEach(s=>{let r=s.split(":");i[r[0]]=r[1]}),i}getNumber(e){return typeof e=="string"?parseFloat(e.replace(/,/g,"").replace(/ /g,"")):e}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-wtext"]],viewQuery:function(i,s){if(i&1&&Si(Mp,5),i&2){let r;Mi(r=Ei())&&(s.images=r)}},hostVars:2,hostBindings:function(i,s){i&2&&Oe("flex-direction",s.flexDirection)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],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,s){i&1&&ce(0,Ep,11,8,"div",1,he),i&2&&de(s.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%}"]})}}return n})();var wo=(()=>{class n extends pe{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:Ss,sendCookies:!0},triggers:{drillDown:s=>this.onDrillDown(s),rowClick:(s,r,o)=>e.drillFilterWidgets?.length?(e.doDrillFilter(o.source.path,e.drills),e.parent?.header?.cd.detectChanges(),!1):!this.widget.kpitype,back:s=>this.onDrillDown(s),cellDrillThrough:(...s)=>this.onDrillThrough(...s),responseHandler:s=>{s.status!==200&&this.showError(s.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 s=this.widget.initialData;setTimeout(()=>{this.lpt?.dataController.setData(this.lpt.dataSource._convert(s))})}}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:s,y:r}=e[0],{info:o,dimensions:a}=e[1];if(!a[0])return;let l=a[0][s-o.leftHeaderColumnsNumber]?.dimension||"",h=a[0][0]?.dimension||"",c=a[1][r-o.topHeaderRowsNumber]?.title||"";if(!l||!h)return;let g=[{name:l,value:i.value,path:""},{name:h,value:c,path:""}];return this._requestKPIData(g)?.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(){}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},styles:["[_nghost-%COMP%]{height:100%}"]})}}return n})();var So=class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}};var te=So;var Ke={PROPERTYCHANGE:"propertychange"};var Mo=class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}},Es=Mo;function Kh(n,t,e){let i,s;e=e||qe;let r=0,o=n.length,a=!1;for(;r>1),s=+e(n[i],t),s<0?r=i+1:(o=i,a=!s);return a?r:~r}function qe(n,t){return n>t?1:n0?s-1:s}return i-1}if(e>0){for(let s=1;s0||e&&o===0)})}function Pi(){return!0}function Ti(){return!1}function $e(){}function Jh(n){let t=!1,e,i,s;return function(){let r=Array.prototype.slice.call(arguments);return(!t||this!==s||!fe(r,i))&&(t=!0,s=this,i=r,e=n.apply(this,arguments)),e}}function li(n){for(let t in n)delete n[t]}function Je(n){let t;for(t in n)return!1;return!t}var Eo=class extends Es{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;let i=this.listeners_||(this.listeners_={}),s=i[t]||(i[t]=[]);s.includes(e)||s.push(e)}dispatchEvent(t){let e=typeof t=="string",i=e?t:t.type,s=this.listeners_&&this.listeners_[i];if(!s)return;let r=e?new te(t):t;r.target||(r.target=this.eventTarget_||this);let o=this.dispatching_||(this.dispatching_={}),a=this.pendingRemovals_||(this.pendingRemovals_={});i in o||(o[i]=0,a[i]=0),++o[i];let l;for(let h=0,c=s.length;h0:!1}removeEventListener(t,e){let i=this.listeners_&&this.listeners_[t];if(i){let s=i.indexOf(e);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[s]=$e,++this.pendingRemovals_[t]):(i.splice(s,1),i.length===0&&delete this.listeners_[t]))}}},Xi=Eo;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 wt(n,t,e,i,s){if(i&&i!==n&&(e=e.bind(i)),s){let o=e;e=function(){n.removeEventListener(t,e),o.apply(this,arguments)}}let r={target:n,type:t,listener:e};return n.addEventListener(t,e),r}function Ts(n,t,e,i){return wt(n,t,e,i,!0)}function Tt(n){n&&n.target&&(n.target.removeEventListener(n.type,n.listener),li(n))}var As=class extends Xi{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,e){if(Array.isArray(t)){let i=t.length,s=new Array(i);for(let r=0;r0;)this.pop()}extend(t){for(let e=0,i=t.length;ethis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new Ds(ee.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){let e=this.array_;for(let i=0,s=e.length;i=this.getLength())return;let e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Ds(ee.REMOVE,e,t)),e}setAt(t,e){let i=this.getLength();if(t>=i){this.insertAt(t,e);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);let s=this.array_[t];this.array_[t]=e,this.dispatchEvent(new Ds(ee.REMOVE,s,t)),this.dispatchEvent(new Ds(ee.ADD,e,t))}updateLength_(){this.set(Qh.LENGTH,this.array_.length)}assertUnique_(t,e){for(let i=0,s=this.array_.length;is&&(l=l|Kt.RIGHT),ar&&(l=l|Kt.ABOVE),l===Kt.UNKNOWN&&(l=Kt.INTERSECTING),l}function Ut(){return[1/0,1/0,-1/0,-1/0]}function ze(n,t,e,i,s){return s?(s[0]=n,s[1]=t,s[2]=e,s[3]=i,s):[n,t,e,i]}function Di(n){return ze(1/0,1/0,-1/0,-1/0,n)}function oc(n,t){let e=n[0],i=n[1];return ze(e,i,e,i,t)}function an(n,t,e,i,s){let r=Di(s);return Io(r,n,t,e,i)}function Li(n,t){return n[0]==t[0]&&n[2]==t[2]&&n[1]==t[1]&&n[3]==t[3]}function ln(n,t){return t[0]n[2]&&(n[2]=t[2]),t[1]n[3]&&(n[3]=t[3]),n}function os(n,t){t[0]n[2]&&(n[2]=t[0]),t[1]n[3]&&(n[3]=t[1])}function Io(n,t,e,i,s){for(;et[0]?i[0]=n[0]:i[0]=t[0],n[1]>t[1]?i[1]=n[1]:i[1]=t[1],n[2]=t[0]&&n[1]<=t[3]&&n[3]>=t[1]}function Ui(n){return n[2]=o&&b<=l),!i&&r&Kt.RIGHT&&!(s&Kt.RIGHT)&&(x=p-(d-l)*y,i=x>=a&&x<=h),!i&&r&Kt.BELOW&&!(s&Kt.BELOW)&&(b=d-(p-a)/y,i=b>=o&&b<=l),!i&&r&Kt.LEFT&&!(s&Kt.LEFT)&&(x=p-(d-o)*y,i=x>=a&&x<=h)}return i}function cc(n,t,e,i){if(Ui(n))return Di(e);let s=[];if(i>1){let a=n[2]-n[0],l=n[3]-n[1];for(let h=0;h=e[2])){let s=At(e),o=Math.floor((i[0]-e[0])/s)*s;n[0]-=o,n[2]-=o}return n}function dc(n,t){if(t.canWrapX()){let e=t.getExtent();if(!isFinite(n[0])||!isFinite(n[2]))return[[e[0],n[1],e[2],n[3]]];ko(n,t);let i=At(e);if(At(n)>i)return[[e[0],n[1],e[2],n[3]]];if(n[0]e[2])return[[n[0],n[1],e[2],n[3]],[e[0],n[1],n[2]-i,n[3]]]}return[n]}function Rt(n,t,e){return Math.min(Math.max(n,t),e)}function uc(n,t,e,i,s,r){let o=s-e,a=r-i;if(o!==0||a!==0){let l=((n-e)*o+(t-i)*a)/(o*o+a*a);l>1?(e=s,i=r):l>0&&(e+=o*l,i+=a*l)}return Qe(n,t,e,i)}function Qe(n,t,e,i){let s=e-n,r=i-t;return s*s+r*r}function pc(n){let t=n.length;for(let i=0;ir&&(r=l,s=a)}if(r===0)return null;let o=n[s];n[s]=n[i],n[i]=o;for(let a=i+1;a=0;i--){e[i]=n[i][t]/n[i][i];for(let s=i-1;s>=0;s--)n[s][t]-=n[s][i]*e[i]}return e}function zs(n){return n*Math.PI/180}function Ii(n,t){let e=n%t;return e*t<0?e+t:e}function ae(n,t,e){return n+e*(t-n)}function dn(n,t){let e=Math.pow(10,t);return Math.round(n*e)/e}function lr(n,t){return Math.floor(dn(n,t))}function hr(n,t){return Math.ceil(dn(n,t))}var Op=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,Fp=/^([a-z]*)$|^hsla?\(.*\)$/i;function un(n){return typeof n=="string"?n:Ro(n)}function zp(n){let t=document.createElement("div");if(t.style.color=n,t.style.color!==""){document.body.appendChild(t);let e=getComputedStyle(t).color;return document.body.removeChild(t),e}return""}var jp=function(){let t={},e=0;return function(i){let s;if(t.hasOwnProperty(i))s=t[i];else{if(e>=1024){let r=0;for(let o in t)r++&3||(delete t[o],--e)}s=Np(i),t[i]=s,++e}return s}}();function as(n){return Array.isArray(n)?n:jp(n)}function Np(n){let t,e,i,s,r;if(Fp.exec(n)&&(n=zp(n)),Op.exec(n)){let o=n.length-1,a;o<=4?a=1:a=2;let l=o===4||o===8;t=parseInt(n.substr(1+0*a,a),16),e=parseInt(n.substr(1+1*a,a),16),i=parseInt(n.substr(1+2*a,a),16),l?s=parseInt(n.substr(1+3*a,a),16):s=255,a==1&&(t=(t<<4)+t,e=(e<<4)+e,i=(i<<4)+i,l&&(s=(s<<4)+s)),r=[t,e,i,s/255]}else n.startsWith("rgba(")?(r=n.slice(5,-1).split(",").map(Number),fc(r)):n.startsWith("rgb(")?(r=n.slice(4,-1).split(",").map(Number),r.push(1),fc(r)):gt(!1,14);return r}function fc(n){return n[0]=Rt(n[0]+.5|0,0,255),n[1]=Rt(n[1]+.5|0,0,255),n[2]=Rt(n[2]+.5|0,0,255),n[3]=Rt(n[3],0,1),n}function Ro(n){let t=n[0];t!=(t|0)&&(t=t+.5|0);let e=n[1];e!=(e|0)&&(e=e+.5|0);let i=n[2];i!=(i|0)&&(i=i+.5|0);let s=n[3]===void 0?1:Math.round(n[3]*100)/100;return"rgba("+t+","+e+","+i+","+s+")"}var Oo=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 e in this.cache_){let i=this.cache_[e];!(t++&3)&&!i.hasListener()&&(delete this.cache_[e],--this.cacheSize_)}}}get(t,e,i){let s=gc(t,e,i);return s in this.cache_?this.cache_[s]:null}set(t,e,i,s){let r=gc(t,e,i);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function gc(n,t,e){let i=e?un(e):"null";return t+":"+n+":"+i}var js=new Oo;var kt={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 Zt{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;let e=Object.assign({},t);typeof t.properties=="object"&&(delete e.properties,Object.assign(e,t.properties)),e[kt.OPACITY]=t.opacity!==void 0?t.opacity:1,gt(typeof e[kt.OPACITY]=="number",64),e[kt.VISIBLE]=t.visible!==void 0?t.visible:!0,e[kt.Z_INDEX]=t.zIndex,e[kt.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,e[kt.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,e[kt.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,e[kt.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=e.className!==void 0?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let e=this.state_||{layer:this,managed:t===void 0?!0:t},i=this.getZIndex();return e.opacity=Rt(Math.round(this.getOpacity()*100)/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=i===void 0&&!e.managed?1/0:i,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return ft()}getLayerStatesArray(t){return ft()}getExtent(){return this.get(kt.EXTENT)}getMaxResolution(){return this.get(kt.MAX_RESOLUTION)}getMinResolution(){return this.get(kt.MIN_RESOLUTION)}getMinZoom(){return this.get(kt.MIN_ZOOM)}getMaxZoom(){return this.get(kt.MAX_ZOOM)}getOpacity(){return this.get(kt.OPACITY)}getSourceState(){return ft()}getVisible(){return this.get(kt.VISIBLE)}getZIndex(){return this.get(kt.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(kt.EXTENT,t)}setMaxResolution(t){this.set(kt.MAX_RESOLUTION,t)}setMinResolution(t){this.set(kt.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(kt.MAX_ZOOM,t)}setMinZoom(t){this.set(kt.MIN_ZOOM,t)}setOpacity(t){gt(typeof t=="number",64),this.set(kt.OPACITY,t)}setVisible(t){this.set(kt.VISIBLE,t)}setZIndex(t){this.set(kt.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}},pn=Fo;var ve={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"};var qt={ANIMATING:0,INTERACTING:1};var We={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var ti={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937};var zo=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_||ti[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_}},fn=zo;var cr=6378137,Ns=Math.PI*cr,Bp=[-Ns,-Ns,Ns,Ns],Gp=[-180,-85,180,85],gn=cr*Math.log(Math.tan(Math.PI/2)),Hi=class extends fn{constructor(t){super({code:t,units:"m",extent:Bp,global:!0,worldExtent:Gp,getPointResolution:function(e,i){return e/Math.cosh(i[1]/cr)}})}},jo=[new Hi("EPSG:3857"),new Hi("EPSG:102100"),new Hi("EPSG:102113"),new Hi("EPSG:900913"),new Hi("http://www.opengis.net/def/crs/EPSG/0/3857"),new Hi("http://www.opengis.net/gml/srs/epsg.xml#3857")];function mc(n,t,e){let i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;sgn?r=gn:r<-gn&&(r=-gn),t[s+1]=r}return t}function xc(n,t,e){let i=n.length;e=e>1?e:2,t===void 0&&(e>2?t=n.slice():t=new Array(i));for(let s=0;s=0;--i)if(n[i]!=t[i]){e=!1;break}return e}function Gs(n,t){let e=Math.cos(t),i=Math.sin(t),s=n[0]*e-n[1]*i,r=n[1]*e+n[0]*i;return n[0]=s,n[1]=r,n}function wc(n,t){return n[0]*=t,n[1]*=t,n}function mn(n,t){if(t.canWrapX()){let e=At(t.getExtent()),i=Sc(n,t,e);i&&(n[0]-=i*e)}return n}function Sc(n,t,e){let i=t.getExtent(),s=0;return t.canWrapX()&&(n[0]i[2])&&(e=e||At(i),s=Math.floor((n[0]-i[0])/e)),s}var Vp=63710088e-1;function Go(n,t,e){e=e||Vp;let i=zs(n[1]),s=zs(t[1]),r=(s-i)/2,o=zs(t[0]-n[0])/2,a=Math.sin(r)*Math.sin(r)+Math.sin(o)*Math.sin(o)*Math.cos(i)*Math.cos(s);return 2*e*Math.atan2(Math.sqrt(a),Math.sqrt(1-a))}var Mc={info:1,warn:2,error:3,none:4},Yp=Mc.info;function xn(...n){Yp>Mc.warn||console.warn(...n)}var Xo=!0;function Pc(n){Xo=!(n===void 0?!0:n)}function Wo(n,t){if(t!==void 0){for(let e=0,i=n.length;e=-180&&n[0]<=180&&n[1]>=-90&&n[1]<=90&&(Xo=!1,xn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),n)}function Xs(n,t){return ei?Yo(n,t,ei):n}function si(n,t){return ei?Yo(n,ei,t):n}function Ac(n,t){if(!ei)return n;let e=zt(t).getUnits(),i=ei.getUnits();return e&&i?n*ti[e]/ti[i]:n}function Kp(){Ec(jo),Ec(No),Zp(No,jo,mc,xc)}Kp();function Uo(n,t,e){return function(i,s,r,o,a){if(!i)return;if(!s&&!t)return i;let l=t?0:r[0]*s,h=t?0:r[1]*s,c=a?a[0]:0,g=a?a[1]:0,d=n[0]+l/2+c,p=n[2]-l/2+c,y=n[1]+h/2+g,b=n[3]-h/2+g;d>p&&(d=(p+d)/2,p=d),y>b&&(y=(b+y)/2,b=y);let x=Rt(i[0],d,p),f=Rt(i[1],y,b);if(o&&e&&s){let M=30*s;x+=-M*Math.log(1+Math.max(0,d-i[0])/M)+M*Math.log(1+Math.max(0,i[0]-p)/M),f+=-M*Math.log(1+Math.max(0,y-i[1])/M)+M*Math.log(1+Math.max(0,i[1]-b)/M)}return[x,f]}}function Dc(n){return n}function Ho(n,t,e,i){let s=At(t)/e[0],r=me(t)/e[1];return i?Math.min(n,Math.max(s,r)):Math.min(n,Math.min(s,r))}function Zo(n,t,e){let i=Math.min(n,t),s=50;return i*=Math.log(1+s*Math.max(0,n/t-1))/s+1,e&&(i=Math.max(i,e),i/=Math.log(1+s*Math.max(0,e/n-1))/s+1),Rt(i,e/2,t*2)}function Lc(n,t,e,i){return t=t!==void 0?t:!0,function(s,r,o,a){if(s!==void 0){let l=n[0],h=n[n.length-1],c=e?Ho(l,e,o,i):l;if(a)return t?Zo(s,c,h):Rt(s,h,c);let g=Math.min(c,s),d=Math.floor(Ps(n,g,r));return n[d]>c&&d1)g=e;else if(d>0){for(let p=0;ps&&(s=h),r=a,o=l}return s}function gr(n,t,e,i,s){for(let r=0,o=e.length;r0;){let g=h.pop(),d=h.pop(),p=0,y=n[d],b=n[d+1],x=n[g],f=n[g+1];for(let M=d+i;Mp&&(c=M,p=w)}p>s&&(l[(c-t)/i]=1,d+i0&&b>p)&&(y<0&&x0&&x>y)){h=g,c=d;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=g,c=d}return r[o++]=h,r[o++]=c,o}function ta(n,t,e,i,s,r,o,a){for(let l=0,h=e.length;lr&&(h-a)*(r-l)-(s-a)*(c-l)>0&&o++:c<=r&&(h-a)*(r-l)-(s-a)*(c-l)<0&&o--,a=h,l=c}return o!==0}function Cr(n,t,e,i,s,r){if(e.length===0||!$i(n,t,e[0],i,s,r))return!1;for(let o=1,a=e.length;of&&(h=(c+g)/2,Cr(n,t,e,i,h,y)&&(x=h,f=M)),c=g}return isNaN(x)&&(x=s[r]),o?(o.push(x,y,f),o):[x,y,f]}function Jc(n,t,e,i,s){let r=[];for(let o=0,a=e.length;o=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:_n(n,t,e,i,function(o,a){return hc(s,o,a)}):!1}function Qc(n,t,e,i,s){for(let r=0,o=e.length;r0}function ha(n,t,e,i,s){s=s!==void 0?s:!1;for(let r=0,o=e.length;r1&&typeof arguments[e-1]=="function"&&(i=arguments[e-1],--e);let s=0;for(;s0}getInteracting(){return this.hints_[qt.INTERACTING]>0}cancelAnimations(){this.setHint(qt.ANIMATING,-this.hints_[qt.ANIMATING]);let t;for(let e=0,i=this.animations_.length;e=0;--i){let s=this.animations_[i],r=!0;for(let o=0,a=s.length;o0?h/l.duration:1;c>=1?(l.complete=!0,c=1):r=!1;let g=l.easing(c);if(l.sourceCenter){let d=l.sourceCenter[0],p=l.sourceCenter[1],y=l.targetCenter[0],b=l.targetCenter[1];this.nextCenter_=l.targetCenter;let x=d+g*(y-d),f=p+g*(b-p);this.targetCenter_=[x,f]}if(l.sourceResolution&&l.targetResolution){let d=g===1?l.targetResolution:l.sourceResolution+g*(l.targetResolution-l.sourceResolution);if(l.anchor){let p=this.getViewportSize_(this.getRotation()),y=this.constraints_.resolution(d,0,p,!0);this.targetCenter_=this.calculateCenterZoom(y,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=d,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){let d=g===1?Ii(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+g*(l.targetRotation-l.sourceRotation);if(l.anchor){let p=this.constraints_.rotation(d,!0);this.targetCenter_=this.calculateCenterRotate(p,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=d}if(this.applyTargetState_(!0),e=!0,!l.complete)break}if(r){this.animations_[i]=null,this.setHint(qt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let o=s[0].callback;o&&Mn(o,!0)}}this.animations_=this.animations_.filter(Boolean),e&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i,s=this.getCenterInternal();return s!==void 0&&(i=[s[0]-e[0],s[1]-e[1]],Gs(i,t-this.getRotation()),_c(i,e)),i}calculateCenterZoom(t,e){let i,s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){let o=e[0]-t*(e[0]-s[0])/r,a=e[1]-t*(e[1]-s[1])/r;i=[o,a]}return i}getViewportSize_(t){let e=this.viewportSize_;if(t){let i=e[0],s=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(s*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){let t=this.getCenterInternal();return t&&pr(t,this.getProjection())}getCenterInternal(){return this.get(We.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 e=this.calculateExtentInternal(t);return Xs(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let e=this.getCenterInternal();gt(e,1);let i=this.getResolution();gt(i!==void 0,2);let s=this.getRotation();return gt(s!==void 0,3),ar(e,i,s,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(We.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal(si(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();let i=At(t)/e[0],s=me(t)/e[1];return Math.max(i,s)}getResolutionForValueFunction(t){t=t||2;let e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,s=Math.log(e/i)/Math.log(t);return function(r){return e/Math.pow(t,r*s)}}getRotation(){return this.get(We.ROTATION)}getValueForResolutionFunction(t){let e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(i/s)/e;return function(o){return Math.log(i/o)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t),i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){let t=this.getProjection(),e=this.getResolution(),i=this.getRotation(),s=this.getCenterInternal(),r=this.padding_;if(r){let o=this.getViewportSizeMinusPadding_();s=pa(s,this.getViewportSize_(),[o[0]/2+r[3],o[1]/2+r[0]],e,i)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,e=this.getResolution();return e!==void 0&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e=this.minZoom_||0,i,s;if(this.resolutions_){let r=Ps(this.resolutions_,t,1);e=r,i=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=i/this.resolutions_[r+1]}else i=this.maxResolution_,s=this.zoomFactor_;return e+Math.log(i/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let e=Rt(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,Rt(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,e){let i;if(gt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){gt(!Ui(t),25);let s=si(t,this.getProjection());i=da(s)}else if(t.getType()==="Circle"){let s=si(t.getExtent(),this.getProjection());i=da(s),i.rotate(this.getRotation(),Ge(s))}else{let s=bn();s?i=t.clone().transform(s,this.getProjection()):i=t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){let e=this.getRotation(),i=Math.cos(e),s=Math.sin(-e),r=t.getFlatCoordinates(),o=t.getStride(),a=1/0,l=1/0,h=-1/0,c=-1/0;for(let g=0,d=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 e,i=this.getMapInternal();!t&&i&&(t=i.getView()),t instanceof Ce?e={viewState:t.getState(),extent:t.calculateExtent()}:e=t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray());let s;e.layerStatesArray?s=e.layerStatesArray.find(o=>o.layer===this):s=this.getLayerState();let r=this.getExtent();return wr(s,e.viewState)&&(!r||Vt(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e,i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];let s=t instanceof Ce?t.getViewStateAndExtent():t,r=e(s);return Array.isArray(r)||(r=[r]),r}render(t,e){let i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}setMapInternal(t){t||this.unrender(),this.set(kt.MAP,t)}getMapInternal(){return this.get(kt.MAP)}setMap(t){this.mapPrecomposeKey_&&(Tt(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Tt(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=wt(t,ve.PRECOMPOSE,function(e){let s=e.frameState.layerStatesArray,r=this.getLayerState(!1);gt(!s.some(function(o){return o.layer===r.layer}),67),s.push(r)},this),this.mapRenderKey_=wt(this,ut.CHANGE,t.render,t),this.changed())}setSource(t){this.set(kt.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 wr(n,t){if(!n.visible)return!1;let e=t.resolution;if(e=n.maxResolution)return!1;let i=t.zoom;return i>n.minZoom&&i<=n.maxZoom}var ds=ga;var ma=class extends Es{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){ft()}calculateMatrices2D(t){let e=t.viewState,i=t.coordinateToPixelTransform,s=t.pixelToCoordinateTransform;be(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),Is(s,i)}forEachFeatureAtCoordinate(t,e,i,s,r,o,a,l){let h,c=e.viewState;function g(_,w,k,z){return r.call(o,w,_?k:null,z)}let d=c.projection,p=mn(t.slice(),d),y=[[0,0]];if(d.canWrapX()&&s){let _=d.getExtent(),w=At(_);y.push([-w,0],[w,0])}let b=e.layerStatesArray,x=b.length,f=[],M=[];for(let _=0;_=0;--w){let k=b[w],z=k.layer;if(z.hasRenderer()&&wr(k,c)&&a.call(l,z)){let O=z.getRenderer(),C=z.getSource();if(O&&C){let A=C.getWrapX()?p:t,F=g.bind(null,k.managed);M[0]=A[0]+y[_][0],M[1]=A[1]+y[_][1],h=O.forEachFeatureAtCoordinate(M,e,i,F,f)}if(h)return h}}if(f.length===0)return;let L=1/f.length;return f.forEach((_,w)=>_.distanceSq+=w*L),f.sort((_,w)=>_.distanceSq-w.distanceSq),f.some(_=>h=_.callback(_.feature,_.layer,_.geometry)),h}hasFeatureAtCoordinate(t,e,i,s,r,o){return this.forEachFeatureAtCoordinate(t,e,i,s,Pi,this,r,o)!==void 0}getMap(){return this.map_}renderFrame(t){ft()}flushDeclutterItems(t){}scheduleExpireIconCache(t){js.canExpireCache()&&t.postRenderFunctions.push(sf)}};function sf(n,t){js.expire()}var nd=ma;var xa=class extends te{constructor(t,e,i,s){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=s}},En=xa;var Sr="ol-hidden";var Ji="ol-unselectable";var Vs="ol-control",ya="ol-collapsed",rf=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"),od=["style","variant","weight","size","lineHeight","family"],ba=function(n){let t=n.match(rf);if(!t)return null;let e={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let i=0,s=od.length;it?t-h:r,_=o+c>e?e-c:o,w=y[3]+L*d[0]+y[1],k=y[0]+_*d[1]+y[2],z=f-y[3],O=M-y[0];(b||g!==0)&&(rs[0]=z,ns[0]=z,rs[1]=O,Bi[1]=O,Bi[0]=z+w,Gi[0]=Bi[0],Gi[1]=O+k,ns[1]=Gi[1]);let C;return g!==0?(C=be(ge(),i,s,1,1,g,-i,-s),Wt(C,rs),Wt(C,Bi),Wt(C,Gi),Wt(C,ns),ze(Math.min(rs[0],Bi[0],Gi[0],ns[0]),Math.min(rs[1],Bi[1],Gi[1],ns[1]),Math.max(rs[0],Bi[0],Gi[0],ns[0]),Math.max(rs[1],Bi[1],Gi[1],ns[1]),$s)):ze(Math.min(z,z+w),Math.min(O,O+k),Math.max(z,z+w),Math.max(O,O+k),$s),p&&(f=Math.round(f),M=Math.round(M)),{drawImageX:f,drawImageY:M,drawImageW:L,drawImageH:_,originX:h,originY:c,declutterBox:{minX:$s[0],minY:$s[1],maxX:$s[2],maxY:$s[3],value:x},canvasTransform:C,scale:d}}replayImageOrLabel_(t,e,i,s,r,o,a){let l=!!(o||a),h=s.declutterBox,c=t.canvas,g=a?a[2]*s.scale[0]/2:0;return h.minX-g<=c.width/e&&h.maxX+g>=0&&h.minY-g<=c.height/e&&h.maxY+g>=0&&(l&&this.replayTextBackground_(t,rs,Bi,Gi,ns,o,a),ud(t,s.canvasTransform,r,i,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(t){if(this.alignFill_){let e=Wt(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.save(),t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,s){let r=this.textStates[e],o=this.createLabel(t,e,s,i),a=this.strokeStates[i],l=this.pixelRatio,h=Jl(Array.isArray(t)?t[0]:t,r.textAlign||Qi),c=Gr[r.textBaseline||fs],g=a&&a.lineWidth?a.lineWidth:0,d=o.width/l-2*r.scale[0],p=h*d+2*(.5-h)*g,y=c*o.height/l+2*(.5-c)*g;return{label:o,anchorX:p,anchorY:y}}execute_(t,e,i,s,r,o,a,l){let h;this.pixelCoordinates_&&fe(i,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Ye(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),rc(this.renderedTransform_,i));let c=0,g=s.length,d=0,p,y,b,x,f,M,L,_,w,k,z,O,C=0,A=0,F=null,S=null,T=this.coordinateCache_,D=this.viewRotation_,P=Math.round(Math.atan2(-i[1],i[0])*1e12)/1e12,m={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:D},u=this.instructions!=s||this.overlaps?0:200,v,I,E,R;for(;cu&&(this.fill_(t),C=0),A>u&&(t.stroke(),A=0),!C&&!A&&(t.beginPath(),x=NaN,f=NaN),++c;break;case xt.CIRCLE:d=j[1];let W=h[d],N=h[d+1],B=h[d+2],X=h[d+3],V=B-W,H=X-N,K=Math.sqrt(V*V+H*H);t.moveTo(W+K,N),t.arc(W,N,K,0,2*Math.PI,!0),++c;break;case xt.CLOSE_PATH:t.closePath(),++c;break;case xt.CUSTOM:d=j[1],p=j[2];let U=j[3],Y=j[4],Z=j.length==6?j[5]:void 0;m.geometry=U,m.feature=v,c in T||(T[c]=[]);let q=T[c];Z?Z(h,d,p,2,q):(q[0]=h[d],q[1]=h[d+1],q.length=2),Y(q,m),++c;break;case xt.DRAW_IMAGE:d=j[1],p=j[2],_=j[3],y=j[4],b=j[5];let J=j[6],Q=j[7],$=j[8],tt=j[9],it=j[10],et=j[11],st=j[12],rt=j[13],nt=j[14],ot=j[15];if(!_&&j.length>=20){w=j[19],k=j[20],z=j[21],O=j[22];let ke=this.drawLabelWithPointPlacement_(w,k,z,O);_=ke.label,j[3]=_;let vs=j[23];y=(ke.anchorX-vs)*this.pixelRatio,j[4]=y;let Ne=j[24];b=(ke.anchorY-Ne)*this.pixelRatio,j[5]=b,J=_.height,j[6]=J,rt=_.width,j[13]=rt}let at;j.length>25&&(at=j[25]);let ct,ht,lt;j.length>17?(ct=j[16],ht=j[17],lt=j[18]):(ct=Fi,ht=!1,lt=!1),it&&P?et+=D:!it&&!P&&(et-=D);let yt=0;for(;d0){if(!o||p!=="Image"&&p!=="Text"||o.includes(w)){let A=(d[O]-3)/4,F=s-A%a,S=s-(A/a|0),T=r(w,k,F*F+S*S);if(T)return T}c.clearRect(0,0,a,a);break}}let b=Object.keys(this.executorsByZIndex_).map(Number);b.sort(qe);let x,f,M,L,_;for(x=b.length-1;x>=0;--x){let w=b[x].toString();for(M=this.executorsByZIndex_[w],f=th.length-1;f>=0;--f)if(p=th[f],L=M[p],L!==void 0&&(_=L.executeHitDetection(c,l,i,y,g),_))return _}}getClipCoords(t){let e=this.maxExtent_;if(!e)return null;let i=e[0],s=e[1],r=e[2],o=e[3],a=[i,s,i,o,r,o,r,s];return Ye(a,0,8,2,t,a),a}isEmpty(){return Je(this.executorsByZIndex_)}execute(t,e,i,s,r,o,a){let l=Object.keys(this.executorsByZIndex_).map(Number);l.sort(qe),this.maxExtent_&&(t.save(),this.clip(t,i)),o=o||th;let h,c,g,d,p,y;for(a&&l.reverse(),h=0,c=l.length;he)break;let l=i[a];l||(l=[],i[a]=l),l.push(((n+r)*t+(n+o))*4+3),r>0&&l.push(((n-r)*t+(n+o))*4+3),o>0&&(l.push(((n+r)*t+(n-o))*4+3),r>0&&l.push(((n-r)*t+(n-o))*4+3))}let s=[];for(let r=0,o=i.length;rg*this.pixelRatio_),lineDashOffset:(o||Ae)*this.pixelRatio_,lineJoin:a!==void 0?a:ui,lineWidth:(l!==void 0?l:zi)*this.pixelRatio_,miterLimit:h!==void 0?h:Ri,strokeStyle:Le(i||Oi)}}}setImageStyle(t){let e;if(!t||!(e=t.getSize())){this.image_=null;return}let i=t.getPixelRatio(this.pixelRatio_),s=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*i,this.imageAnchorY_=s[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();let o=t.getScaleArray();this.imageScale_=[o[0]*this.pixelRatio_/i,o[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(!t)this.text_="";else{let e=t.getFill();if(!e)this.textFillState_=null;else{let p=e.getColor();this.textFillState_={fillStyle:Le(p||$t)}}let i=t.getStroke();if(!i)this.textStrokeState_=null;else{let p=i.getColor(),y=i.getLineCap(),b=i.getLineDash(),x=i.getLineDashOffset(),f=i.getLineJoin(),M=i.getWidth(),L=i.getMiterLimit();this.textStrokeState_={lineCap:y!==void 0?y:ps,lineDash:b||Te,lineDashOffset:x||Ae,lineJoin:f!==void 0?f:ui,lineWidth:M!==void 0?M:zi,miterLimit:L!==void 0?L:Ri,strokeStyle:Le(p||Oi)}}let s=t.getFont(),r=t.getOffsetX(),o=t.getOffsetY(),a=t.getRotateWithView(),l=t.getRotation(),h=t.getScaleArray(),c=t.getText(),g=t.getTextAlign(),d=t.getTextBaseline();this.textState_={font:s!==void 0?s:Tn,textAlign:g!==void 0?g:Qi,textBaseline:d!==void 0?d:fs},this.text_=c!==void 0?Array.isArray(c)?c.reduce((p,y,b)=>p+=b%2?" ":y,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=o!==void 0?this.pixelRatio_*o:0,this.textRotateWithView_=a!==void 0?a:!1,this.textRotation_=l!==void 0?l:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}},Iu=rh;var ni=.5;function ku(n,t,e,i,s,r,o){let a=n[0]*ni,l=n[1]*ni,h=Gt(a,l);h.imageSmoothingEnabled=!1;let c=h.canvas,g=new Iu(h,ni,s,null,o),d=e.length,p=Math.floor((256*256*256-1)/d),y={};for(let x=1;x<=d;++x){let f=e[x-1],M=f.getStyleFunction()||i;if(!M)continue;let L=M(f,r);if(!L)continue;Array.isArray(L)||(L=[L]);let w=(x*p).toString(16).padStart(7,"#00000");for(let k=0,z=L.length;k{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let i=[this.context.canvas.width,this.context.canvas.height];Wt(this.pixelTransform,i);let s=this.renderedCenter_,r=this.renderedResolution_,o=this.renderedRotation_,a=this.renderedProjection_,l=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],g=i[0]*ni,d=i[1]*ni;c.push(this.getRenderTransform(s,r,o,ni,g,d,0).slice());let p=h.getSource(),y=a.getExtent();if(p.getWrapX()&&a.canWrapX()&&!Ai(y,l)){let b=l[0],x=At(y),f=0,M;for(;by[2];)++f,M=x*f,c.push(this.getRenderTransform(s,r,o,ni,g,d,M).slice()),b-=x}this.hitDetectionImageData_=ku(i,c,this.renderedFeatures_,h.getStyleFunction(),l,r,o)}e(Ru(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,e,i,s,r){if(!this.replayGroup_)return;let o=e.viewState.resolution,a=e.viewState.rotation,l=this.getLayer(),h={},c=function(p,y,b){let x=Mt(p),f=h[x];if(f){if(f!==!0&&bg=p.forEachFeatureAtCoordinate(t,o,a,i,c,p===this.declutterExecutorGroup&&e.declutterTree?e.declutterTree.all().map(y=>y.value):null)),g}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let e=this.getLayer(),i=e.getSource();if(!i)return!1;let s=t.viewHints[qt.ANIMATING],r=t.viewHints[qt.INTERACTING],o=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!o&&s||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let l=t.extent,h=t.viewState,c=h.projection,g=h.resolution,d=t.pixelRatio,p=e.getRevision(),y=e.getRenderBuffer(),b=e.getRenderOrder();b===void 0&&(b=Fu);let x=h.center.slice(),f=ks(l,y*g),M=f.slice(),L=[f.slice()],_=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!Ai(_,t.extent)){let m=At(_),u=Math.max(At(f)/2,m);f[0]=_[0]-u,f[2]=_[2]+u,mn(x,c);let v=ko(L[0],c);v[0]<_[0]&&v[2]<_[2]?L.push([v[0]+m,v[1],v[2]+m,v[3]]):v[0]>_[0]&&v[2]>_[2]&&L.push([v[0]-m,v[1],v[2]-m,v[3]])}if(this.ready&&this.renderedResolution_==g&&this.renderedRevision_==p&&this.renderedRenderOrder_==b&&Ai(this.wrappedRenderedExtent_,f))return fe(this.renderedExtent_,M)||(this.hitDetectionImageData_=null,this.renderedExtent_=M),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let w=new $l(so(g,d),f,g,d),k;this.getLayer().getDeclutter()&&(k=new $l(so(g,d),f,g,d));let z=bn(),O;if(z){for(let m=0,u=L.length;m{let u,v=m.getStyleFunction()||e.getStyleFunction();if(v&&(u=v(m,g)),u){let I=this.renderFeature(m,C,u,w,O,k);A=A&&!I}},S=Xs(f,c),T=i.getFeaturesInExtent(S);b&&T.sort(b);for(let m=0,u=T.length;m{class n extends pe{constructor(){super(...arguments),this.lastHoveredFeatures=[],this.iconStyle=new we({zIndex:100,image:new ji({anchor:[.5,25],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-pin-icon.svg"})}),this.defaultPolyStroke=new De({color:"rgba(0, 0, 0, 0.3)",width:1}),this.hoverPolyStroke=new De({color:"rgba(0, 0, 255, 0.5)",width:2}),this.mouseOut=e=>{this.onMouseOut(e)},this.mouseClick=e=>this.onMapClick(e),this.pointerMove=e=>this.onPointerMove(e)}ngOnInit(){super.ngOnInit(),this.widget.isMap=!0,this.requestPolygonData(),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:s,value:r}=e,o=this.map?.getTargetElement();(o&&o.querySelectorAll(i))?.forEach(l=>{l.style[s]=r})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){this.us.isEmbedded()&&this.onMessage&&window.removeEventListener("message",this.onMessage),this.unbindEvents(),super.ngOnDestroy()}retrieveData(e){return Ft(this,null,function*(){if(this.polygonsLoaded&&(yield this.polygonsLoaded),e.Error){this.showError(e.Error);return}e.Info&&(this.dataInfo=e.Info),this.hideTooltip(),this.markers?.clear(),this.polyVector?.clear(),this.data=e,this.buildMap(),this.fitPolygonsToScreen()})}buildMap(){let e="world";switch(this.isMarketsData()&&(e="markers"),e){case"markers":this.buildMarkers();break;case"world":this.buildWorldMapPolygons();break}}get lonLatNames(){return["latitude","longitude",this.getDataPropValue("latitude")?.toLowerCase(),this.getDataPropValue("longitude")?.toLowerCase()].filter(e=>!!e)}isMarketsData(){let e=this.lonLatNames;return this.data?.Cols[0]?.tuples?.some(i=>e.includes(i.caption?.toLowerCase())||e.includes(i.dimension?.toLowerCase()))}buildMarkers(){let e=this.data?.Cols[0].tuples.length;if(!e)return;let i=0,s=[],r=this.getDataPropValue("latitude")||"latitude",o=this.getDataPropValue("longitude")||"longitude",a=this.data?.Cols[0].tuples.findIndex(c=>c.caption.toLowerCase()===r)??-1,l=this.data?.Cols[0].tuples.findIndex(c=>c.caption.toLowerCase()===o)??-1;if(l===-1||a===-1){console.error("Can't find latitude/longitude columns. Check name of columns that contain latitude or longitude. Also if columns named differently, check latitude/longitude data properties on map widget.");return}let h=this.data?.Cols[1].tuples;if(h?.[0]?.children&&(h=h[0]?.children),!(!h||!this.data)){for(let c=0;cs);if(i){if(this.hideTooltip(),ue.mobile){this.onPointerMove(e);return}this.doDrill(i.get("path"),i.get("name")||i.get("title"),void 0)}}onPointerMove(e){this.updateHoverStyle(e),this.updateTooltip(e)}updateTooltip(e){if(e.dragging){this.hideTooltip(),this.tooltipFeature=void 0;return}let i=this.map?.getEventPixel(e.originalEvent);i&&this.displayFeatureInfo(i,e.originalEvent.target)}updateHoverStyle(e){this.lastHoveredFeatures.forEach(i=>{let s=i.getStyle();s.setStroke(this.defaultPolyStroke),i.setStyle(s)}),this.lastHoveredFeatures=[],this.map?.forEachFeatureAtPixel(e.pixel,i=>{let s=i.getGeometry()?.getType();if(s==="Polygon"||s==="MultiPolygon"){let r=i,o=r.getStyle();o.setStroke(this.hoverPolyStroke),r.setStyle(o),this.lastHoveredFeatures.push(r)}})}displayFeatureInfo(e,i){let s=i.closest(".ol-control")?void 0:this.map?.forEachFeatureAtPixel(e,function(r){return r});if(s){if(this.updateTooltipPosition(e[0],e[1]),s!==this.tooltipFeature){let r=this.getDataPropValue("tooltip")||this.getDataPropValue("tooltipProperty")||"TooltipValue",o=this.getDataByColumnName(this.data,r,s.get("dataIdx"));o||(o=this.getFeatureText(s)),o&&(this.tooltip.nativeElement.innerHTML=o.toString(),this.showTooltip())}}else this.hideTooltip();this.tooltipFeature=s}updateTooltipPosition(e,i){let s=this.tooltip.nativeElement;s.classList.remove("ol-tooltip-top"),s.classList.remove("ol-tooltip-left"),s.classList.remove("ol-tooltip-right"),s.style.left=e+"px",s.style.top=i+"px";let r=s.getBoundingClientRect(),o=this.el.nativeElement.getBoundingClientRect();(r.y+r.height>o.y+o.height+20||r.y+r.height>window.innerHeight-20)&&s.classList.add("ol-tooltip-top"),(r.x+r.width>o.x+o.width+20||r.x+r.width>window.innerWidth-20)&&s.classList.add("ol-tooltip-left"),(r.x{l.then(c=>this.onPolyFileLoaded(c)).catch(c=>this.loadDefaultGeoJSON()).finally(()=>{this.hideLoading(),h()})})}onPolyFileLoaded(e){e&&(typeof e=="string"?this.parsePlainJS(e):this.createGeoJSON(e))}parsePlainJS(e){let i=/function\s+\w+\s*\(([^)]*)\)\s*\{([\s\S]*)\}/,s=e.match(i);if(s){let r=s[1].trim(),o=s[2],a=new Function(r,o),l={};a(l),this.createGeoJSON(this.convertToGeoJSON(l))}}loadDefaultGeoJSON(){return Ft(this,null,function*(){let e;try{e=yield this.ds.getJSONFile("assets/countries.json")}catch{console.error(`Can't load default GeoJSON: "assets/countries.json"`);return}e&&this.createGeoJSON(e)})}convertToGeoJSON(e){return{type:"FeatureCollection",features:Object.keys(e).map(s=>{let r=e[s].split(";"),o=[];return r.forEach(a=>{o.push(a.split(" ").map(l=>{let[h,c]=l.split(",").map(Number);return[h,c]}))}),{type:"Feature",geometry:{type:o.length>1?"MultiPolygon":"Polygon",coordinates:o.length>1?[o]:[o[0]]},properties:{name:s}}})}}createGeoJSON(e){this.worldMap=new yi,this.worldMap.addFeatures(new Wr().readFeatures(e,{dataProjection:"EPSG:4326",featureProjection:this.map?.getView().getProjection()}))}fitPolygonsToScreen(){this.polyVector?.getFeatures()?.length&&this.map?.getView().fit(this.polyVector.getExtent(),{padding:[20,20,20,20]}),this.markers?.getFeatures()?.length&&this.map?.getView().fit(this.markers.getExtent(),{padding:[20,20,20,20]})}buildWorldMapPolygons(){let e=[],i=(this.data?.Cols[0]?.tuples?.length??0)<2,s=this.getColumnIndexByDataProp("Key");s===-1&&(s=this.getColumnIndexByDataProp("coordsProperty"));let r=this.getColumnIndexByDataProp("Value");r===-1&&(r=this.getColumnIndexByDataProp("colorProperty")),s===-1&&(s=0),r===-1&&(i?r=0:r=1);let o=this.data?.Cols[0]?.tuples?.length||2,a=Number.MAX_VALUE,l=Number.MIN_VALUE;for(let h=0;h<(this.data?.Cols[1]?.tuples?.length??-1);h++){let c=this.data?.Data[h*o+r];cl&&(l=c)}for(let h=0;h<(this.data?.Cols[1]?.tuples?.length??-1);h++){let c="";if(i?c=this.data?.Cols[1]?.tuples[h].caption??"":c=this.data?.Data[h*o+s].toString()??"",!c)continue;let g=this.getDataPropValue("geojsonKeyField")||"name",d=this.worldMap?.getFeatures().find(L=>L.get(g)===c.toString());if(!d)continue;d.set("dataIdx",h*o),d.set("title",this.data?.Cols[1].tuples[h].caption),d.set("path",this.data?.Cols[1].tuples[h].path),e.push(d);let p=this.data?.Data[h*o+r],y;l-a===0?y=255:y=(p-a)/(l-a)*255;let x=`hsla(${(255-y)/255*120}, 100%, 50%, 0.6)`,f=new ss({font:"8px Oxygen",fill:new _e({color:"black"}),text:`${this.data?.Cols[1].tuples[h].caption} -`+this.formatNumber(p,this.data?.Cols[1].tuples[h].format)}),M=this;d.setStyle(new we({zIndex:0,fill:new _e({color:x}),stroke:this.defaultPolyStroke,text:f}))}this.featureOverlay?.getSource().clear(),this.polyVector?.clear(),this.polyVector?.addFeatures(e),this.fitPolygonsToScreen()}getColumnIndexByDataProp(e){if(!this.data)return 0;let i=0,s=this.getDataPropValue(e)||e;return i=this.getColumnIndexByName(this.data,s),i}getFeatureText(e){let i=e.get("dataIdx");if(i===void 0)return;let s="",r=[],o="";e.get("title")&&(o=""+e.get("title")+"
");let a=this.lonLatNames;for(let l=0;l<(this.data?.Cols[0]?.tuples?.length??-1);l++){let h=this.data?.Cols[0]?.tuples[l],c=h?.caption?.toLowerCase();if(a.includes(c)||this.getDataPropValue("Key")===c||c==="key")continue;let g=this.data?.Data[i+l]?.toString()??"";h?.format&&(g=this.formatNumber(g,h.format)),g&&h&&r.push(`${h.caption}: ${g}`)}return s=o+r.join("
"),s}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-map-widget"]],viewQuery:function(i,s){if(i&1&&Si(Jf,7),i&2){let r;Mi(r=Ei())&&(s.tooltip=r.first)}},standalone:!0,features:[Ct,vt],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"]],template:function(i,s){i&1&&(Dt(0,"div",2,0)(2,"div"),Ht(3,"div",3),It(),Ht(4,"div",4),It(),Ht(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;color:#929292;background-color:#fff;white-space:nowrap;font-family:Oxygen;font-size:12px;box-shadow:1px 1px 4px #7f7f7f;padding:4px 10px;border-radius:4px;transform:translate(-50%);visibility:hidden}.ol-tooltip-top[_ngcontent-%COMP%]{transform:translate(-50%) translateY(calc(-100% - 8px));margin-top:0}.ol-tooltip-left[_ngcontent-%COMP%]{transform:translate(-100%)}.ol-tooltip-right[_ngcontent-%COMP%]{transform:translate(0)}.ol-tooltip-top.ol-tooltip-left[_ngcontent-%COMP%]{transform:translate(-100%) translateY(calc(-100% - 8px));margin-top:0}.ol-tooltip-top.ol-tooltip-right[_ngcontent-%COMP%]{transform:translate(0) translateY(calc(-100% - 8px));margin-top:0}.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}'],changeDetection:0})}}return n})();var je=Jt(Co()),tp=Jt(Uu()),ep=Jt(Hu()),ip=Jt(Zu()),sp=Jt(Ku()),rp=Jt(qu()),np=Jt($u()),op=Jt(Ju()),ap=Jt(Qu());(0,ep.default)(je.default);(0,ap.default)(je.default);(0,tp.default)(je.default);(0,ip.default)(je.default);(0,sp.default)(je.default);(0,rp.default)(je.default);(0,np.default)(je.default);(0,op.default)(je.default);var Yr=20;var Vr={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}},Xt=(()=>{class n extends pe{constructor(){super(...arguments),this.widgetData=null,this.seriesTypes=[],this.firstRun=!0,this.baseSeriesType="bar",this.sbs=Qt(qr),this.wts=Qt(lp),this.zone=Qt(Dh),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 s=i?.document.querySelector("svg");s?.setAttribute("width","100%"),s?.setAttribute("height","100%"),s&&(s.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=je.default.mapChart(this.chartConfig):this.widget.type.toLowerCase()==="timechart"?this.chart=je.default.stockChart(this.chartConfig):this.chart=je.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(!r||!r.Info)return"";let o="";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 s=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){let r=this.route.snapshot.queryParamMap.get("hiddenSeries"),o=[];r&&(o=r.split(",")),o.forEach(a=>{this.chartConfig?.series?.[a]&&(this.chartConfig.series[a].visible=!1)})}else if(s[this.widget.name]&&s[this.widget.name].series)for(let r=0;r<(this.chartConfig?.series?.length||0);r++)s[this.widget.name].series[r]===!1&&this.chartConfig.series&&(this.chartConfig.series[r].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,s=!1,r=this.getMDX(),o=r.indexOf("ON"),a=-1;o!==-1&&(a=r.indexOf("FROM",o),a!==-1&&(s=r.substring(o,a).toLowerCase().lastIndexOf(".members")!==-1)),a!==-1&&(o=a,a=r.indexOf("FROM",o),i=r.substring(o,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(l=>l.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(l=>l.caption||"").join(" & ")})}addSeries(e,i,s,r=!1){let o=i||this.chart;if(!o)return;let a=(o.options||this.chartConfig).series?.length??-1;if(e&&e.data&&e.data.length!==0){let g=!0,d=!1;for(let p=0;pparseInt(p,10)));let d=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=g[d]||0}e.showInLegend=!0,o.addSeries(e,r,!1);let c=this.seriesVisibility[o.series.length-1];c!==void 0&&(o.series[o.series.length-1].visible=c)}enableStacking(){let e={plotOptions:{series:{stacking:"normal"}}};this.us.mergeRecursive(this.chartConfig,e)}getMinValue(e){let i=1/0;for(let s=0;sh.action==="setRowCount")[0],l=a&&parseInt(a.value.toString())||Yr;if(this.chartConfig?.plotOptions?.series?.stacking==="normal"||!this.chartConfig?.plotOptions?.series?.stacking){let h=e.Cols[1].tuples,c=e.Cols[0].tuples;if(this.widget.isTop)if(c.length===1){let g=!0;for(;g;){g=!1;let d;for(d=0;dthis.setElColor(r,i))}updateColors(e){this.zone.runOutsideAngular(()=>{let i=this.chart;if(!i)return;let s=i.options?.chart?.type;if(e.hcColors)if(s==="treemap"||s==="pie"){let o=i.options.plotOptions?.[s];o&&(o.colors=e.hcColors);for(let a=0;a{g.color=l,this.setElColor(g.graphic?.element,l)});let c=i.legend.allItems[o];c&&c.legendSymbol&&[c.legendSymbol.element,c.legendLine.element].forEach(g=>{g&&(g.setAttribute("fill",l),g.setAttribute("stroke",l))}),i.series[o].color=l}if(e.hcBorderColor&&Vr[s||""]?.showBorder!==!1)for(let o=0;o{let h=l.graphic?.element;h&&h.setAttribute("stroke",e.hcBorderColor)});if(e.hcBackground&&Vr[s||""]?.showBackground!==!1){let o=i.chartBackground.element;o.setAttribute("fill",e.hcBackground),o.setAttribute("stroke",e.hcBackground),i.options.chart&&(i.options.chart.backgroundColor=e.hcBackground)}if(e.hcLineColor&&Vr[s||""]?.showLines!==!1){let o=e.hcLineColor;i.yAxis.forEach(a=>{i.yAxis[0].options.minorGridLineColor=o,a.gridGroup.element.setAttribute("stroke",o),a.gridGroup.element.childNodes.forEach(l=>{l.setAttribute("stroke",o)})}),i?.xAxis.forEach(a=>{a.axisGroup.element.setAttribute("stroke",o),a.axisGroup.element.childNodes.forEach(l=>{l.setAttribute("stroke",o)})})}let r=e.hcTextColor;if(r&&Vr[s||""]?.showText!==!1){let o=a=>{if(a.labelGroup){a.labelGroup.element.setAttribute("fill",r);for(let l=0;l{a.options.color=r,a.legendItem&&(a.legendItem?.group?.element?.setAttribute("color",r),a.legendItem?.group?.element?.setAttribute("fill",r),a.legendItem?.label?.element?.setAttribute("color",r),a.legendItem?.label?.element?.setAttribute("fill",r))}),i?.series.forEach(a=>a.data.forEach(l=>{let h=l.dataLabel?.element?.children[0]?.style;h&&(h.color=r,h.fill=r)}))}})}fixData(e){for(let i=0;i{i&&o>i-1||((r.children?.length??0)>1?r.children?.forEach(a=>{a.caption=r.caption+"/"+a.caption,s.push(a)}):s.push(r))}),s}buildSeries(e){this.chartConfig.series=[];let i=this.widget.controls.find(a=>a.action.toLowerCase()==="setcolumncount"),s=this.buildAxis(e.Cols[1],i?.value||0),r=this.buildAxis(e.Cols[0]);r.forEach((a,l)=>{let h=[];s.forEach((c,g)=>{h.push({y:+e.Data[g*r.length+l],drilldown:!0,cube:e.Info?.cubeName||"",path:c.path,name:c.caption,title:c.title})}),this.fixData(h),this.addSeries({data:h,name:a.caption,format:a.format,path:a.path})});let o=this.chartConfig.xAxis;o.categories=s.map(a=>a.caption)}removeAxisListeners(){this.axisLabelListeners.forEach(e=>{e.element.removeEventListener(e.event,e.func)})}saveSeriesVisiblilityState(e,i){let s=this.ss.getWidgetsSettings(this.widget.dashboard);s[this.widget.name]||(s[this.widget.name]={});let r=s[this.widget.name];r.series||(r.series={}),r.series[e]=i,this.ss.setWidgetsSettings(s,this.widget.dashboard)}setupChart(){let e=this,i=this.wts.getDesc(this.widget.type);function s(){let r=this.value,o=e.override,a=o?.valueLabelFormat,l=e.baseType;return(o?.yAxisList[0]?.axisType==="percent"||o?.xAxis.axisType==="percent"&&(l==="barChart"||l==="barChartStacked"))&&(r=e.formatNumber(r,"#%")),r}if(this.chartConfig={accessibility:{enabled:!1},drilldown:{activeAxisLabelStyle:{color:this.tc?.hcTextColor||void 0},activeDataLabelStyle:{color:this.tc?.hcTextColor||void 0}},legend:re({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:r=>{e.removeAxisListeners(),r.target?.series?.forEach(o=>{e.chartConfig.chart?.type==="pie"&&e.chart?.legend.allItems.forEach(a=>{let l=g=>{this.onLegendItemHover({series:a.series,index:a.index})},h=g=>{this.onLegendItemOut({series:a.series,index:a.index})},c=a.legendItem?.group.element;c&&(c.addEventListener("mouseover",l),e.axisLabelListeners.push({event:"mouseover",element:c,func:l}),c.addEventListener("mouseout",h),e.axisLabelListeners.push({event:"out",element:c,func:h}))}),o.data.forEach((a,l)=>{let h="contextmenu",c=a.graphic?.element;if(!c)return;let g=d=>{d.preventDefault(),d.stopImmediatePropagation();let p=e._currentData?.Cols[1]?.tuples;if(!p||!p[l])return;let y=o.userOptions.path,b=p[l].path;y&&(b=y),this.bs.broadcast("contextmenu",{widget:this.widget,event:d,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:b,drillTitle:p[l].caption||p[l].title}})};a.graphic?.element?.addEventListener(h,g),this.axisLabelListeners.push({event:h,element:c,func:g})})}),e.chartConfig?.chart?.type==="pie"?e.chart?.legend?.allItems.forEach(o=>{let a=o.dataLabel?.element;if(!a)return;let l=()=>{e.showLoading(),e.doDrillOnly(o.options.path,o.name.toString(),o.name.toString()).finally(()=>{e.hideLoading()})};a.addEventListener("click",l),this.axisLabelListeners.push({event:"click",element:a,func:l})}):e.chart?.xAxis[0]?.labelGroup?.element?.childNodes?.forEach((o,a)=>{let l=()=>{let h=e._currentData?.Cols[1]?.tuples,c=e._currentData?.Cols[1]?.tuples[0]?.children;c?.length&&(a=Math.floor(a/c?.length)),!(!h||!h[a])&&(e.showLoading(),e.doDrillOnly(h[a].path,h[a].caption||h[a].title,h[a].caption||h[a].title).finally(()=>{e.hideLoading()}))};o.addEventListener("click",l),this.axisLabelListeners.push({event:"click",element:o,func:l})})}}},credits:{enabled:!1},tooltip:{formatter(){let r=e.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=o.y;l=e.formatNumber(l,a);let h=o.point.title;h===o.point.name&&(h="");let c=(o.point.name||o.x||"")+"
"+(h?h+"
":"")+o.series.name+": "+l+"
";return o.point.percentage&&(c+=e.formatNumber(this.point.percentage,e.getDataPropByDataValue(this.series?.userOptions?.name||"")?.format||"#.##")+"%"),c}},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(r){if(e.drillFilterWidgets?.length){e.doDrillFilter(r.point.path,e.drills),e.parent?.header?.cd.detectChanges();return}if(!r.point)return;if(ue.mobile&&e._selectedPoint!==r.point){e._selectedPoint=r.point;return}let o=r.point.series.userOptions.path,a=[r.point.path];o&&a.push(o),e.showLoading(),e.doDrillthrough(a,r.point.name,r.point.category).finally(()=>{e.hideLoading()})}}},dataLabels:{color:this.tc?.hcTextColor||void 0,enabled:this.widget.showValues===!0,formatter(){let r=e.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=o.y;return l=e.formatNumber(l,a),l}},events:{hide:r=>this.saveSeriesVisiblilityState(r.target.name,r.target.visible),show:r=>this.saveSeriesVisiblilityState(r.target.name,r.target.visible)}}},yAxis:{events:{},title:{text:this.widget?.overrides?.[0]?.xAxis?.title||""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none"},formatter:s},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},xAxis:{events:{},title:{text:this.widget?.overrides?.[0]?.yAxisList?.[0]?.title||""},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 o=this.widget.overrides.find(a=>a._type.toLowerCase()==="combochart")?.yAxisList;if(o&&o.length)for(let a=0;a{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={});let r=Vr[this.chart?.options?.chart?.type||""]||{};this.sbs.showComponent({component:import("./chunk-QY4ELVI2.js"),inputs:{widgetSettings:i[e],appearance:r,onSave:s,onUpdate:o=>this.updateColors(o),chart:this.chart}})}setupAxisMinMax(e){let i=this.override,s=this.chartConfig.yAxis,r=this.chartConfig.xAxis,o=i?.yAxisList[0];e.some(a=>a<0)||(s.min=0),(this.baseType==="barChart"||this.baseType==="barChartStacked")&&(o=i?.xAxis),o?.minValue!==void 0&&(s.min=o.minValue),o?.maxValue!==void 0&&(s.max=o.maxValue)}removeUndefinedColors(e){let i=(s,r)=>{s[r]===void 0&&delete s[r]};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(s=>{typeof e[s]=="object"&&!Array.isArray(e[s])&&(Object.keys(e[s]).length===0?(i=!0,delete e[s]):this.removeEmptyObjects(e[s]))})}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 s=new Map;i.forEach((r,o)=>{s.set(r,o)}),e.forEach((r,o)=>{r.originalIndex=o}),e.sort((r,o)=>{let a=s.get(r.dimension),l=s.get(o.dimension);return a!==void 0&&l!==void 0?a-l:a!==void 0?-1:l!==void 0?1:0})}sortTuplesBasedOnLabels(e){if(!e.Cols[0].tuples?.length)return;let i=this.widget.overrides?.find(r=>r._type==="chartLegend");if(!i)return;let s=i.legendLabels?.split(",");s&&this.sortTuplesArray(e.Cols[0].tuples,s)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["ng-component"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var mo=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="columnchartstacked"&&this.enableStacking()}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-column-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var xo=(()=>{class n extends pe{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(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-empty-widget"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var hp=(()=>{class n extends Xt{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 s=this.point.value/e.totalSum*100;return s=e.formatNumber(s,e.getDataPropByDataValue(this.series?.userOptions?.dimension)?.format||"#.##"),`${this.point.caption}
${s}%`}else return`${this.point.caption}`}}}},tooltip:{formatter(){let s=this.series.userOptions.caption,r=this.series.userOptions.format,o=this.point.value;return o=e.formatNumber(o,r),this.point.caption+"
"+s+": "+o+""}}};this.us.mergeRecursive(this.chartConfig,i),delete this.chartConfig.plotOptions?.series?.dataLabels}parseData(e){return Ft(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 s=0;for(let a=0;a"+parseFloat(parseFloat(e.Data[a])/s*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 r="",o="";e.Cols[0].tuples[0]&&(r=e.Cols[0].tuples[0].caption,o=e.Cols[0].tuples[0].format),this.totalSum=e.Data.map(a=>parseFloat(a)||0).reduce((a,l)=>a+l,0),this.addSeries({data:i,name:"",layoutAlgorithm:"squarified",caption:r,dimension:e.Cols[0].tuples[0].dimension,format:o,dataLabels:{enabled:!0}},void 0,void 0,!0)}this.toggleLegend(this.widget.isLegend)}})}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-tree-map"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yo=Jt(Ms());var cp=(()=>{class n extends Xt{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 s=this.series.userOptions.format1,r=this.series.userOptions.format2,o=this.series.userOptions.format3,a=this.x,l=this.y,h=this.point.z;s&&(a=(0,yo.default)(a).format(s)),r&&(l=(0,yo.default)(l).format(r)),o&&(h=(0,yo.default)(h).format(o));let c=e.thirdTitle||"radius";return this.series.name+"
"+e.chartConfig.xAxis.title.text+":"+a+"
"+e.chartConfig.yAxis.title.text+":"+l+""+(h?"
"+c+": "+h.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,i)}getSeriesNames(e){let i={};if(e.Cols[0].tuples.length==4)for(let s=3;s=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 s=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{let r=e.Cols[0].tuples.length,o="",a="",l="";e.Cols[0].tuples[0]&&(o=e.Cols[0].tuples[0].format),e.Cols[0].tuples[1]&&(a=e.Cols[0].tuples[1].format),e.Cols[0].tuples[2]&&(l=e.Cols[0].tuples[2].format);let h={},c=!1,g;if(this.hasOption("isTop")){c=!0;let y=(this.widget.controls||[]).filter(function(b){return b.action==="setRowCount"})[0];g=y?y.value||Yr:Yr}let d=c?g:e.Data.length;d>e.Data.length&&(d=e.Data.length);for(let p=0;p{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-bubble-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var bo=(()=>{class n extends Xt{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)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yh=Jt(Ms());var dp=(()=>{class n extends Xt{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",s=this.series.userOptions.caption2||"Maximum",r=this.series.userOptions.format1,o=this.series.userOptions.format2,a=this.point.low,l=this.point.high;return r&&(a=(0,yh.default)(a).format(r)),o&&(l=(0,yh.default)(l).format(o)),this.key+"
"+s+":"+l+"
"+i+":"+a+""}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Ft(this,null,function*(){let i=this.chartConfig.xAxis;i.categories=[];for(let r=0;r{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-hi-low-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var up=Jt(Ms()),pp=Jt(Co());var Qf=["charts"];function tg(n,t){n&1&&Ht(0,"div",null,0)}var bh=(()=>{class n extends Xt{constructor(){super(...arguments),this.confs=[],this.charts=[]}ngOnInit(){super.ngOnInit();let e={title:{verticalAlign:"bottom",style:{fontFamily:Yh}},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,s=this.series.userOptions.format||"#.##";return s&&(i=(0,up.default)(i).format(s.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,s)=>{i.chart&&(i.chart.renderTo=e?.[s]),this.charts.push(pp.default.chart(i))})}retrieveData(e){let i;if(this.hideLoading(),this.charts.forEach(s=>{for(;s.series.length>0;)s.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 Ft(this,null,function*(){if(this.confs.length===0){for(let i=0;ia.dataValue===e.Cols[0].tuples[i].dimension);r&&r.label&&r.label!=="$auto"&&(s=r.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig));let o=this.confs[this.confs.length-1];o.title&&(o.title.text=s)}this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{this.createChart(),this.parseData(e)});return}for(let i=0;ir.max&&(d=r.max),r.plotBands=[],g!==r.min&&r.plotBands.push({from:r.min,to:g,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),d!==r.max&&r.plotBands.push({from:d,to:r.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),o.targetValue){let p=parseFloat(o.targetValue);r.plotLines=[{value:p,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 l=e.Cols[0].tuples[i].caption;o&&o.label&&o.label!=="$auto"&&(l=o.label),this.addSeries({data:[e.Data[i]||0],name:l,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())}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-speedometer-chart"]],viewQuery:function(i,s){if(i&1&&Si(Qf,5),i&2){let r;Mi(r=Ei())&&(s.chartsEl=r)}},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[["charts",""]],template:function(i,s){i&1&&ce(0,tg,2,0,"div",null,he),i&2&&de(s.confs)},styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]})}}return n})();var fp=(()=>{class n extends Xt{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)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var gp=(()=>{class n extends Xt{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 Ft(this,null,function*(){let i=[];this.clearSeries();let s=Math.max.apply(null,e.Data);for(let r=0;r{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Ur=(()=>{class n extends Xt{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,s={plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,formatter:function(){let r=i.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=this.point.name,h=i.formatNumber(this.y,a);i.widget.showValues||(h=""),i.widget["btn.ShowAnnotations"]===!1&&(l="");let c=i.formatNumber(this.point.percentage,i.getDataPropByDataValue(this.series?.userOptions?.name)?.format||"#.##")+"%";return i.widget["btn.ShowPercents"]||(c=""),[l,h,c].filter(g=>g).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){let r=this,o=r.series.options.format,a=r.y;return o&&(a=i.formatNumber(a,o)),r.key+", "+a}},point:{events:{legendItemClick:function(){let r=this.path,o=this.name,a=this.visible;i.chart?.series.forEach(l=>{l.data.forEach(h=>{(r&&h.path===r||o&&h.name===o)&&(h!==this&&h.update({visible:!a}),a&&h.setState("normal"))})})},mouseOut:function(){let r=[],o=this.series,a=this.index;o.chart.series.forEach(l=>{l!==o&&r.push(l.points[a])}),r.forEach(l=>{l.setState("")})},mouseOver:function(){let r=[],o=this.series,a=this.index;o.chart.series.forEach(l=>{l!==o&&r.push(l.points[a])}),r.forEach(l=>{l.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,s),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,s)=>{s!==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,s,r=!1){let o=this._currentData?.Cols[0]?.tuples?.length||1,a=this._currentData?.Cols[1]?.tuples?.length||1;if(o!==1){let l=100/o,h=this.chart?.series.length||0;e.center=[(l/2+h*l).toString()+"%","50%"],h>a&&(e.showInLegend=!1)}super.addSeries(e,i,s,r),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 Ft(this,null,function*(){yield Sh(n.prototype,this,"parseData").call(this,e),this.toggleLegend(this.widget.isLegend)})}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var vh=Jt(Ms());var mp=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};let e=this;this.chartConfig.tooltip={formatter(){let i=this.series.userOptions,s=i.format1,r=i.format2,o=this.y,a=this.x;s&&(o=(0,vh.default)(o).format(s)),r&&(a=(0,vh.default)(a).format(r));let l=e.chartConfig.yAxis,h=e.chartConfig.xAxis;return l.title?.text+":"+o+"
"+h.title?.text+":"+a+""}},this.updateChart()}parseData(e){return Ft(this,null,function*(){let i="",s="";if(e.Cols[0].tuples.length>=1){let o=this.chartConfig.xAxis;o?.title&&(o.title.text=e.Cols[0].tuples[0].caption),i=e.Cols[0].tuples[0].format}if(e.Cols[0].tuples.length>=2){let o=this.chartConfig.yAxis;o?.title!==void 0&&(o.title.text=e.Cols[0]?.tuples[1]?.caption),i=e.Cols[0].tuples[1].format}this.chartConfig.series=[];let r=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let o=0;o{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var xp=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e=this;function i(){let r,o,a,l=this,h=new Date(l.x),c=h.toLocaleDateString();if(h.getHours()!==0&&h.getMinutes()!==0&&h.getSeconds()!==0&&(c+=" "+h.toLocaleTimeString()),l.series)return o=l.series.options.format,a=l.y,a=e.formatNumber(a,o),r=""+c+'
\u25CF'+l.series.name+": "+a,r;r=""+c+"
";for(let g=l.points.length-1;g>-1;g--)o=l.points[g].series.options.format,a=l.points[g].y,a=e.formatNumber(a,o),r+='\u25CF'+l.points[g].series.name+": "+a+"
";return r}let s={options:{chart:{zoomType:"x"},tooltip:{formatter:i},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,s)}parseData(e){return Ft(this,null,function*(){e&&e.Info&&(this.dataInfo=e.Info),this.chartConfig.yAxis.min=this.getMinValue(e.Data),this.clearSeries();let i=[],s,r;if(e.Cols[0].tuples[0].children){let o=0;for(let a=0;a=0;o--){for(i=[],r=0;r1&&(l=parseInt(a[1])),o=this.addDays(o,parseInt(s)),l&&o.setSeconds(l),Date.parse(o)}else return this.getDate(e)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Ch=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="barchartstacked"&&this.enableStacking()}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-bar-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yp=Jt(Co());function eg(n,t){if(n&1&&(Dt(0,"div",2)(1,"div",4),ne(2),It(),Ht(3,"span")(4,"span")(5,"span")(6,"span"),Dt(7,"div",4),ne(8),It()()),n&2){let e=Nt().$implicit;Lt(2),Fe(e.rangeLower||"0"),Lt(6),Fe(e.rangeUpper||"0")}}function ig(n,t){if(n&1&&(Dt(0,"div"),ne(1),It()),n&2){let e=Nt().$implicit;Ze("align-left",e.display==="label"),Lt(),ws(" ",e.label," ")}}function sg(n,t){if(n&1&&(Dt(0,"td"),sr(1,eg,9,2,"div",2)(2,ig,2,3,"div",3),It()),n&2){let e,i=t.$implicit;Ze("plotbox-cell",i.display==="plotBox"),Lt(),rr((e=i.display)==="plotBox"?1:2)}}function rg(n,t){if(n&1&&(Dt(0,"div"),Ht(1,"img",7),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Lt(),_s("src",s.data[i][e],Cs)}}function ng(n,t){if(n&1&&Ht(0,"span",10),n&2){let e=Nt(2).$index,i=Nt().$index,s=Nt();Oe("left",s.targets[i][e],"%")}}function og(n,t){if(n&1&&(Dt(0,"div",8),sr(1,ng,1,2,"span",9),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Oe("background-color",s.color)("width",s.data[i][e],"%"),Lt(),rr(s.targets[i][e]?1:-1)}}function ag(n,t){if(n&1&&(Dt(0,"div"),ne(1),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Lt(),ws(" ",s.data[i]?s.data[i][e]:""," ")}}function lg(n,t){if(n&1&&(Dt(0,"td"),sr(1,rg,2,1,"div")(2,og,2,5,"div",6)(3,ag,2,1,"div"),It()),n&2){let e,i=t.$implicit,s=Nt(2);Oe("width",i.display==="plotBox"?100/s.props.length*2:null,"%"),Ze("align-left",i.display==="label")("align-center",i.display==="itemNo"),Lt(),rr((e=i.display)==="trendLine"?1:e==="plotBox"?2:3)}}function hg(n,t){if(n&1&&(Dt(0,"tr"),ce(1,lg,4,7,"td",5,he),It()),n&2){let e=Nt();Lt(),de(e.props)}}function cg(n,t){if(n&1&&(Dt(0,"td"),ne(1),It()),n&2){let e=t.$implicit;Lt(),ws(" ",e," ")}}function dg(n,t){if(n&1&&(Dt(0,"tr",1),ce(1,cg,2,1,"td",null,he),It()),n&2){let e=Nt();Lt(),de(e.footerValues)}}var bp=(()=>{class n extends pe{constructor(){super(...arguments),this.widget={},this.columns=[],this.rows=[],this.data=[],this.targets=[],this.color="",this.props=[],this.hasFooter=!1,this.footerValues=[],this.san=Qt(Oh),this.sbs=Qt(qr),this.totalByColumn={},this.originalData=[]}ngOnInit(){super.ngOnInit(),this.color=yp.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,s,r,o){switch(s.display||""){case"itemNo":return(i+1).toString();case"label":return this.rows[i].caption;case"":case"value":case"plotBox":{let a=s.format,l=this.getPropValue(e,i,s);if(s.display==="plotBox"){let h=s.rangeLower||0,c=s.rangeUpper||0;return r!==void 0&&(h=r),o!==void 0&&(c=o),s.showAs==="target%"?parseFloat(l)/parseFloat(this.getPropValue(e,i,s,"targetValue"))*100:c-h===0?0:(l-h)/(c-h)*100}else{if(l==="")return"";if(s.showAs==="target%"){let h=this.getPropValue(e,i,s,"targetValue");return this.formatNumber(l/h,a)}return s.showAs==="sum%"?this.formatNumber(l/this.totalByColumn[s.dataValue],a||"#.##%"):this.formatNumber(l,a)}}case"trendLine":{let a=this.getColumnIndex(s.dataValue),l="";return a!==-1&&(l=e[i*this.columns.length+a]),this.getSvgForTrendLine(s,l)}}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-QY4ELVI2.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:s,onUpdate:r=>this.updateColors(r)}})}getPropValue(e,i,s,r="dataValue"){let o=!isNaN(parseFloat(s[r])),a=s[r];if(!o){let l=this.getColumnIndex(s[r]);l===-1?a=0:a=e[i*this.columns.length+l]}return a}getColumnIndex(e){return this.columns.findIndex(s=>s.dimension?e.split("/").includes(s.dimension):/^Properties\(\"([^)]+)\"\)/.exec(s.valueID)?.[1]===e)}prepareData(e){let i=[];for(let s=0;s(c+a)%this.columns.length===0);o=Math.max(...l),r=Math.min(...l)}r=0,i.push({min:r,max:o}),this.props[s].rangeLower||(this.props[s].rangeLower=r),this.props[s].rangeUpper||(this.props[s].rangeUpper=o)}this.preparePercentageSums(e),this.data=[],this.targets=[];for(let s=0;s{if(!g)return 0;let d=parseFloat(g);return isNaN(d)?0:d}):typeof i=="number"?r=[i]:Array.isArray(i);let o=Math.max(...r),a=Math.min(...r),l=(r.length-1)*4,h=` +`+this.formatNumber(p,this.data?.Cols[1].tuples[h].format)}),M=this;d.setStyle(new we({zIndex:0,fill:new _e({color:x}),stroke:this.defaultPolyStroke,text:f}))}this.featureOverlay?.getSource().clear(),this.polyVector?.clear(),this.polyVector?.addFeatures(e),this.fitPolygonsToScreen()}getColumnIndexByDataProp(e){if(!this.data)return 0;let i=0,s=this.getDataPropValue(e)||e;return i=this.getColumnIndexByName(this.data,s),i}getFeatureText(e){let i=e.get("dataIdx");if(i===void 0)return;let s="",r=[],o="";e.get("title")&&(o=""+e.get("title")+"
");let a=this.lonLatNames;for(let l=0;l<(this.data?.Cols[0]?.tuples?.length??-1);l++){let h=this.data?.Cols[0]?.tuples[l],c=h?.caption?.toLowerCase();if(a.includes(c)||this.getDataPropValue("Key")===c||c==="key")continue;let g=this.data?.Data[i+l]?.toString()??"";h?.format&&(g=this.formatNumber(g,h.format)),g&&h&&r.push(`${h.caption}: ${g}`)}return s=o+r.join("
"),s}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-map-widget"]],viewQuery:function(i,s){if(i&1&&Si(Jf,7),i&2){let r;Mi(r=Ei())&&(s.tooltip=r.first)}},standalone:!0,features:[Ct,vt],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"]],template:function(i,s){i&1&&(Dt(0,"div",2,0)(2,"div"),Ht(3,"div",3),It(),Ht(4,"div",4),It(),Ht(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;color:#929292;background-color:#fff;white-space:nowrap;font-family:Oxygen;font-size:12px;box-shadow:1px 1px 4px #7f7f7f;padding:4px 10px;border-radius:4px;transform:translate(-50%);visibility:hidden}.ol-tooltip-top[_ngcontent-%COMP%]{transform:translate(-50%) translateY(calc(-100% - 8px));margin-top:0}.ol-tooltip-left[_ngcontent-%COMP%]{transform:translate(-100%)}.ol-tooltip-right[_ngcontent-%COMP%]{transform:translate(0)}.ol-tooltip-top.ol-tooltip-left[_ngcontent-%COMP%]{transform:translate(-100%) translateY(calc(-100% - 8px));margin-top:0}.ol-tooltip-top.ol-tooltip-right[_ngcontent-%COMP%]{transform:translate(0) translateY(calc(-100% - 8px));margin-top:0}.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}'],changeDetection:0})}}return n})();var je=Jt(Co()),tp=Jt(Uu()),ep=Jt(Hu()),ip=Jt(Zu()),sp=Jt(Ku()),rp=Jt(qu()),np=Jt($u()),op=Jt(Ju()),ap=Jt(Qu());(0,ep.default)(je.default);(0,ap.default)(je.default);(0,tp.default)(je.default);(0,ip.default)(je.default);(0,sp.default)(je.default);(0,rp.default)(je.default);(0,np.default)(je.default);(0,op.default)(je.default);var Yr=20;var Vr={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}},Xt=(()=>{class n extends pe{constructor(){super(...arguments),this.widgetData=null,this.seriesTypes=[],this.firstRun=!0,this.baseSeriesType="bar",this.sbs=Qt(qr),this.wts=Qt(lp),this.zone=Qt(Dh),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 s=i?.document.querySelector("svg");s?.setAttribute("width","100%"),s?.setAttribute("height","100%"),s&&(s.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=je.default.mapChart(this.chartConfig):this.widget.type.toLowerCase()==="timechart"?this.chart=je.default.stockChart(this.chartConfig):this.chart=je.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(!r||!r.Info)return"";let o="";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 s=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){let r=this.route.snapshot.queryParamMap.get("hiddenSeries"),o=[];r&&(o=r.split(",")),o.forEach(a=>{this.chartConfig?.series?.[a]&&(this.chartConfig.series[a].visible=!1)})}else if(s[this.widget.name]&&s[this.widget.name].series)for(let r=0;r<(this.chartConfig?.series?.length||0);r++)s[this.widget.name].series[r]===!1&&this.chartConfig.series&&(this.chartConfig.series[r].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,s=!1,r=this.getMDX(),o=r.indexOf("ON"),a=-1;o!==-1&&(a=r.indexOf("FROM",o),a!==-1&&(s=r.substring(o,a).toLowerCase().lastIndexOf(".members")!==-1)),a!==-1&&(o=a,a=r.indexOf("FROM",o),i=r.substring(o,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(l=>l.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(l=>l.caption||"").join(" & ")})}addSeries(e,i,s,r=!1){let o=i||this.chart;if(!o)return;let a=(o.options||this.chartConfig).series?.length??-1;if(e&&e.data&&e.data.length!==0){let g=!0,d=!1;for(let p=0;pparseInt(p,10)));let d=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=g[d]||0}e.showInLegend=!0,o.addSeries(e,r,!1);let c=this.seriesVisibility[o.series.length-1];c!==void 0&&(o.series[o.series.length-1].visible=c)}enableStacking(){let e={plotOptions:{series:{stacking:"normal"}}};this.us.mergeRecursive(this.chartConfig,e)}getMinValue(e){let i=1/0;for(let s=0;sh.action==="setRowCount")[0],l=a&&parseInt(a.value.toString())||Yr;if(this.chartConfig?.plotOptions?.series?.stacking==="normal"||!this.chartConfig?.plotOptions?.series?.stacking){let h=e.Cols[1].tuples,c=e.Cols[0].tuples;if(this.widget.isTop)if(c.length===1){let g=!0;for(;g;){g=!1;let d;for(d=0;dthis.setElColor(r,i))}updateColors(e){this.zone.runOutsideAngular(()=>{let i=this.chart;if(!i)return;let s=i.options?.chart?.type;if(e.hcColors)if(s==="treemap"||s==="pie"){let o=i.options.plotOptions?.[s];o&&(o.colors=e.hcColors);for(let a=0;a{g.color=l,this.setElColor(g.graphic?.element,l)});let c=i.legend.allItems[o];c&&c.legendSymbol&&[c.legendSymbol.element,c.legendLine.element].forEach(g=>{g&&(g.setAttribute("fill",l),g.setAttribute("stroke",l))}),i.series[o].color=l}if(e.hcBorderColor&&Vr[s||""]?.showBorder!==!1)for(let o=0;o{let h=l.graphic?.element;h&&h.setAttribute("stroke",e.hcBorderColor)});if(e.hcBackground&&Vr[s||""]?.showBackground!==!1){let o=i.chartBackground.element;o.setAttribute("fill",e.hcBackground),o.setAttribute("stroke",e.hcBackground),i.options.chart&&(i.options.chart.backgroundColor=e.hcBackground)}if(e.hcLineColor&&Vr[s||""]?.showLines!==!1){let o=e.hcLineColor;i.yAxis.forEach(a=>{i.yAxis[0].options.minorGridLineColor=o,a.gridGroup.element.setAttribute("stroke",o),a.gridGroup.element.childNodes.forEach(l=>{l.setAttribute("stroke",o)})}),i?.xAxis.forEach(a=>{a.axisGroup.element.setAttribute("stroke",o),a.axisGroup.element.childNodes.forEach(l=>{l.setAttribute("stroke",o)})})}let r=e.hcTextColor;if(r&&Vr[s||""]?.showText!==!1){let o=a=>{if(a.labelGroup){a.labelGroup.element.setAttribute("fill",r);for(let l=0;l{a.options.color=r,a.legendItem&&(a.legendItem?.group?.element?.setAttribute("color",r),a.legendItem?.group?.element?.setAttribute("fill",r),a.legendItem?.label?.element?.setAttribute("color",r),a.legendItem?.label?.element?.setAttribute("fill",r))}),i?.series.forEach(a=>a.data.forEach(l=>{let h=l.dataLabel?.element?.children[0]?.style;h&&(h.color=r,h.fill=r)}))}})}fixData(e){for(let i=0;i{i&&o>i-1||((r.children?.length??0)>1?r.children?.forEach(a=>{a.caption=r.caption+"/"+a.caption,s.push(a)}):s.push(r))}),s}buildSeries(e){this.chartConfig.series=[];let i=this.widget.controls.find(a=>a.action.toLowerCase()==="setcolumncount"),s=this.buildAxis(e.Cols[1],i?.value||0),r=this.buildAxis(e.Cols[0]);r.forEach((a,l)=>{let h=[];s.forEach((c,g)=>{h.push({y:+e.Data[g*r.length+l],drilldown:!0,cube:e.Info?.cubeName||"",path:c.path,name:c.caption,title:c.title})}),this.fixData(h),this.addSeries({data:h,name:a.caption,format:a.format,path:a.path})});let o=this.chartConfig.xAxis;o.categories=s.map(a=>a.caption)}removeAxisListeners(){this.axisLabelListeners.forEach(e=>{e.element.removeEventListener(e.event,e.func)})}saveSeriesVisiblilityState(e,i){let s=this.ss.getWidgetsSettings(this.widget.dashboard);s[this.widget.name]||(s[this.widget.name]={});let r=s[this.widget.name];r.series||(r.series={}),r.series[e]=i,this.ss.setWidgetsSettings(s,this.widget.dashboard)}setupChart(){let e=this,i=this.wts.getDesc(this.widget.type);function s(){let r=this.value,o=e.override,a=o?.valueLabelFormat,l=e.baseType;return(o?.yAxisList[0]?.axisType==="percent"||o?.xAxis.axisType==="percent"&&(l==="barChart"||l==="barChartStacked"))&&(r=e.formatNumber(r,"#%")),r}if(this.chartConfig={accessibility:{enabled:!1},drilldown:{activeAxisLabelStyle:{color:this.tc?.hcTextColor||void 0},activeDataLabelStyle:{color:this.tc?.hcTextColor||void 0}},legend:re({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:r=>{e.removeAxisListeners(),r.target?.series?.forEach(o=>{e.chartConfig.chart?.type==="pie"&&e.chart?.legend.allItems.forEach(a=>{let l=g=>{this.onLegendItemHover({series:a.series,index:a.index})},h=g=>{this.onLegendItemOut({series:a.series,index:a.index})},c=a.legendItem?.group.element;c&&(c.addEventListener("mouseover",l),e.axisLabelListeners.push({event:"mouseover",element:c,func:l}),c.addEventListener("mouseout",h),e.axisLabelListeners.push({event:"out",element:c,func:h}))}),o.data.forEach((a,l)=>{let h="contextmenu",c=a.graphic?.element;if(!c)return;let g=d=>{d.preventDefault(),d.stopImmediatePropagation();let p=e._currentData?.Cols[1]?.tuples;if(!p||!p[l])return;let y=o.userOptions.path,b=p[l].path;y&&(b=y),this.bs.broadcast("contextmenu",{widget:this.widget,event:d,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:b,drillTitle:p[l].caption||p[l].title}})};a.graphic?.element?.addEventListener(h,g),this.axisLabelListeners.push({event:h,element:c,func:g})})}),e.chartConfig?.chart?.type==="pie"?e.chart?.legend?.allItems.forEach(o=>{let a=o.dataLabel?.element;if(!a)return;let l=()=>{e.showLoading(),e.doDrillOnly(o.options.path,o.name.toString(),o.name.toString()).finally(()=>{e.hideLoading()})};a.addEventListener("click",l),this.axisLabelListeners.push({event:"click",element:a,func:l})}):e.chart?.xAxis[0]?.labelGroup?.element?.childNodes?.forEach((o,a)=>{let l=()=>{let h=e._currentData?.Cols[1]?.tuples,c=e._currentData?.Cols[1]?.tuples[0]?.children;c?.length&&(a=Math.floor(a/c?.length)),!(!h||!h[a])&&(e.showLoading(),e.doDrillOnly(h[a].path,h[a].caption||h[a].title,h[a].caption||h[a].title).finally(()=>{e.hideLoading()}))};o.addEventListener("click",l),this.axisLabelListeners.push({event:"click",element:o,func:l})})}}},credits:{enabled:!1},tooltip:{formatter(){let r=e.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=o.y;l=e.formatNumber(l,a);let h=o.point.title;h===o.point.name&&(h="");let c=(o.point.name||o.x||"")+"
"+(h?h+"
":"")+o.series.name+": "+l+"
";return o.point.percentage&&(c+=e.formatNumber(this.point.percentage,e.getDataPropByDataValue(this.series?.userOptions?.name||"")?.format||"#.##")+"%"),c}},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(r){if(e.drillFilterWidgets?.length){e.doDrillFilter(r.point.path,e.drills),e.parent?.header?.cd.detectChanges();return}if(!r.point)return;if(ue.mobile&&e._selectedPoint!==r.point){e._selectedPoint=r.point;return}let o=r.point.series.userOptions.path,a=[r.point.path];o&&a.push(o),e.showLoading(),e.doDrillthrough(a,r.point.name,r.point.category).finally(()=>{e.hideLoading()})}}},dataLabels:{color:this.tc?.hcTextColor||void 0,enabled:this.widget.showValues===!0,formatter(){let r=e.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=o.y;return l=e.formatNumber(l,a),l}},events:{hide:r=>this.saveSeriesVisiblilityState(r.target.name,r.target.visible),show:r=>this.saveSeriesVisiblilityState(r.target.name,r.target.visible)}}},yAxis:{events:{},title:{text:this.widget?.overrides?.[0]?.xAxis?.title||""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none"},formatter:s},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},xAxis:{events:{},title:{text:this.widget?.overrides?.[0]?.yAxisList?.[0]?.title||""},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 o=this.widget.overrides.find(a=>a._type.toLowerCase()==="combochart")?.yAxisList;if(o&&o.length)for(let a=0;a{this.ss.setWidgetsSettings(i,this.widget.dashboard)};i[e]||(i[e]={}),i[e].themeColors||(i[e].themeColors={});let r=Vr[this.chart?.options?.chart?.type||""]||{};this.sbs.showComponent({component:import("./chunk-BHI45ZQG.js"),inputs:{widgetSettings:i[e],appearance:r,onSave:s,onUpdate:o=>this.updateColors(o),chart:this.chart}})}setupAxisMinMax(e){let i=this.override,s=this.chartConfig.yAxis,r=this.chartConfig.xAxis,o=i?.yAxisList[0];e.some(a=>a<0)||(s.min=0),(this.baseType==="barChart"||this.baseType==="barChartStacked")&&(o=i?.xAxis),o?.minValue!==void 0&&(s.min=o.minValue),o?.maxValue!==void 0&&(s.max=o.maxValue)}removeUndefinedColors(e){let i=(s,r)=>{s[r]===void 0&&delete s[r]};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(s=>{typeof e[s]=="object"&&!Array.isArray(e[s])&&(Object.keys(e[s]).length===0?(i=!0,delete e[s]):this.removeEmptyObjects(e[s]))})}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 s=new Map;i.forEach((r,o)=>{s.set(r,o)}),e.forEach((r,o)=>{r.originalIndex=o}),e.sort((r,o)=>{let a=s.get(r.dimension),l=s.get(o.dimension);return a!==void 0&&l!==void 0?a-l:a!==void 0?-1:l!==void 0?1:0})}sortTuplesBasedOnLabels(e){if(!e.Cols[0].tuples?.length)return;let i=this.widget.overrides?.find(r=>r._type==="chartLegend");if(!i)return;let s=i.legendLabels?.split(",");s&&this.sortTuplesArray(e.Cols[0].tuples,s)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["ng-component"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var mo=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="columnchartstacked"&&this.enableStacking()}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-column-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var xo=(()=>{class n extends pe{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(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-empty-widget"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var hp=(()=>{class n extends Xt{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 s=this.point.value/e.totalSum*100;return s=e.formatNumber(s,e.getDataPropByDataValue(this.series?.userOptions?.dimension)?.format||"#.##"),`${this.point.caption}
${s}%`}else return`${this.point.caption}`}}}},tooltip:{formatter(){let s=this.series.userOptions.caption,r=this.series.userOptions.format,o=this.point.value;return o=e.formatNumber(o,r),this.point.caption+"
"+s+": "+o+""}}};this.us.mergeRecursive(this.chartConfig,i),delete this.chartConfig.plotOptions?.series?.dataLabels}parseData(e){return Ft(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 s=0;for(let a=0;a"+parseFloat(parseFloat(e.Data[a])/s*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 r="",o="";e.Cols[0].tuples[0]&&(r=e.Cols[0].tuples[0].caption,o=e.Cols[0].tuples[0].format),this.totalSum=e.Data.map(a=>parseFloat(a)||0).reduce((a,l)=>a+l,0),this.addSeries({data:i,name:"",layoutAlgorithm:"squarified",caption:r,dimension:e.Cols[0].tuples[0].dimension,format:o,dataLabels:{enabled:!0}},void 0,void 0,!0)}this.toggleLegend(this.widget.isLegend)}})}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-tree-map"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yo=Jt(Ms());var cp=(()=>{class n extends Xt{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 s=this.series.userOptions.format1,r=this.series.userOptions.format2,o=this.series.userOptions.format3,a=this.x,l=this.y,h=this.point.z;s&&(a=(0,yo.default)(a).format(s)),r&&(l=(0,yo.default)(l).format(r)),o&&(h=(0,yo.default)(h).format(o));let c=e.thirdTitle||"radius";return this.series.name+"
"+e.chartConfig.xAxis.title.text+":"+a+"
"+e.chartConfig.yAxis.title.text+":"+l+""+(h?"
"+c+": "+h.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,i)}getSeriesNames(e){let i={};if(e.Cols[0].tuples.length==4)for(let s=3;s=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 s=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{let r=e.Cols[0].tuples.length,o="",a="",l="";e.Cols[0].tuples[0]&&(o=e.Cols[0].tuples[0].format),e.Cols[0].tuples[1]&&(a=e.Cols[0].tuples[1].format),e.Cols[0].tuples[2]&&(l=e.Cols[0].tuples[2].format);let h={},c=!1,g;if(this.hasOption("isTop")){c=!0;let y=(this.widget.controls||[]).filter(function(b){return b.action==="setRowCount"})[0];g=y?y.value||Yr:Yr}let d=c?g:e.Data.length;d>e.Data.length&&(d=e.Data.length);for(let p=0;p{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-bubble-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var bo=(()=>{class n extends Xt{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)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yh=Jt(Ms());var dp=(()=>{class n extends Xt{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",s=this.series.userOptions.caption2||"Maximum",r=this.series.userOptions.format1,o=this.series.userOptions.format2,a=this.point.low,l=this.point.high;return r&&(a=(0,yh.default)(a).format(r)),o&&(l=(0,yh.default)(l).format(o)),this.key+"
"+s+":"+l+"
"+i+":"+a+""}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Ft(this,null,function*(){let i=this.chartConfig.xAxis;i.categories=[];for(let r=0;r{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-hi-low-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var up=Jt(Ms()),pp=Jt(Co());var Qf=["charts"];function tg(n,t){n&1&&Ht(0,"div",null,0)}var bh=(()=>{class n extends Xt{constructor(){super(...arguments),this.confs=[],this.charts=[]}ngOnInit(){super.ngOnInit();let e={title:{verticalAlign:"bottom",style:{fontFamily:Yh}},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,s=this.series.userOptions.format||"#.##";return s&&(i=(0,up.default)(i).format(s.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,s)=>{i.chart&&(i.chart.renderTo=e?.[s]),this.charts.push(pp.default.chart(i))})}retrieveData(e){let i;if(this.hideLoading(),this.charts.forEach(s=>{for(;s.series.length>0;)s.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 Ft(this,null,function*(){if(this.confs.length===0){for(let i=0;ia.dataValue===e.Cols[0].tuples[i].dimension);r&&r.label&&r.label!=="$auto"&&(s=r.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig));let o=this.confs[this.confs.length-1];o.title&&(o.title.text=s)}this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{this.createChart(),this.parseData(e)});return}for(let i=0;ir.max&&(d=r.max),r.plotBands=[],g!==r.min&&r.plotBands.push({from:r.min,to:g,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),d!==r.max&&r.plotBands.push({from:d,to:r.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),o.targetValue){let p=parseFloat(o.targetValue);r.plotLines=[{value:p,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 l=e.Cols[0].tuples[i].caption;o&&o.label&&o.label!=="$auto"&&(l=o.label),this.addSeries({data:[e.Data[i]||0],name:l,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())}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-speedometer-chart"]],viewQuery:function(i,s){if(i&1&&Si(Qf,5),i&2){let r;Mi(r=Ei())&&(s.chartsEl=r)}},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[["charts",""]],template:function(i,s){i&1&&ce(0,tg,2,0,"div",null,he),i&2&&de(s.confs)},styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]})}}return n})();var fp=(()=>{class n extends Xt{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)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var gp=(()=>{class n extends Xt{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 Ft(this,null,function*(){let i=[];this.clearSeries();let s=Math.max.apply(null,e.Data);for(let r=0;r{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Ur=(()=>{class n extends Xt{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,s={plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,formatter:function(){let r=i.override,o=this,a=r?.valueLabelFormat||o.series.options.format,l=this.point.name,h=i.formatNumber(this.y,a);i.widget.showValues||(h=""),i.widget["btn.ShowAnnotations"]===!1&&(l="");let c=i.formatNumber(this.point.percentage,i.getDataPropByDataValue(this.series?.userOptions?.name)?.format||"#.##")+"%";return i.widget["btn.ShowPercents"]||(c=""),[l,h,c].filter(g=>g).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){let r=this,o=r.series.options.format,a=r.y;return o&&(a=i.formatNumber(a,o)),r.key+", "+a}},point:{events:{legendItemClick:function(){let r=this.path,o=this.name,a=this.visible;i.chart?.series.forEach(l=>{l.data.forEach(h=>{(r&&h.path===r||o&&h.name===o)&&(h!==this&&h.update({visible:!a}),a&&h.setState("normal"))})})},mouseOut:function(){let r=[],o=this.series,a=this.index;o.chart.series.forEach(l=>{l!==o&&r.push(l.points[a])}),r.forEach(l=>{l.setState("")})},mouseOver:function(){let r=[],o=this.series,a=this.index;o.chart.series.forEach(l=>{l!==o&&r.push(l.points[a])}),r.forEach(l=>{l.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,s),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,s)=>{s!==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,s,r=!1){let o=this._currentData?.Cols[0]?.tuples?.length||1,a=this._currentData?.Cols[1]?.tuples?.length||1;if(o!==1){let l=100/o,h=this.chart?.series.length||0;e.center=[(l/2+h*l).toString()+"%","50%"],h>a&&(e.showInLegend=!1)}super.addSeries(e,i,s,r),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 Ft(this,null,function*(){yield Sh(n.prototype,this,"parseData").call(this,e),this.toggleLegend(this.widget.isLegend)})}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var vh=Jt(Ms());var mp=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};let e=this;this.chartConfig.tooltip={formatter(){let i=this.series.userOptions,s=i.format1,r=i.format2,o=this.y,a=this.x;s&&(o=(0,vh.default)(o).format(s)),r&&(a=(0,vh.default)(a).format(r));let l=e.chartConfig.yAxis,h=e.chartConfig.xAxis;return l.title?.text+":"+o+"
"+h.title?.text+":"+a+""}},this.updateChart()}parseData(e){return Ft(this,null,function*(){let i="",s="";if(e.Cols[0].tuples.length>=1){let o=this.chartConfig.xAxis;o?.title&&(o.title.text=e.Cols[0].tuples[0].caption),i=e.Cols[0].tuples[0].format}if(e.Cols[0].tuples.length>=2){let o=this.chartConfig.yAxis;o?.title!==void 0&&(o.title.text=e.Cols[0]?.tuples[1]?.caption),i=e.Cols[0].tuples[1].format}this.chartConfig.series=[];let r=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let o=0;o{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var xp=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e=this;function i(){let r,o,a,l=this,h=new Date(l.x),c=h.toLocaleDateString();if(h.getHours()!==0&&h.getMinutes()!==0&&h.getSeconds()!==0&&(c+=" "+h.toLocaleTimeString()),l.series)return o=l.series.options.format,a=l.y,a=e.formatNumber(a,o),r=""+c+'
\u25CF'+l.series.name+": "+a,r;r=""+c+"
";for(let g=l.points.length-1;g>-1;g--)o=l.points[g].series.options.format,a=l.points[g].y,a=e.formatNumber(a,o),r+='\u25CF'+l.points[g].series.name+": "+a+"
";return r}let s={options:{chart:{zoomType:"x"},tooltip:{formatter:i},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,s)}parseData(e){return Ft(this,null,function*(){e&&e.Info&&(this.dataInfo=e.Info),this.chartConfig.yAxis.min=this.getMinValue(e.Data),this.clearSeries();let i=[],s,r;if(e.Cols[0].tuples[0].children){let o=0;for(let a=0;a=0;o--){for(i=[],r=0;r1&&(l=parseInt(a[1])),o=this.addDays(o,parseInt(s)),l&&o.setSeconds(l),Date.parse(o)}else return this.getDate(e)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Ch=(()=>{class n extends Xt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="barchartstacked"&&this.enableStacking()}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-bar-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var yp=Jt(Co());function eg(n,t){if(n&1&&(Dt(0,"div",2)(1,"div",4),ne(2),It(),Ht(3,"span")(4,"span")(5,"span")(6,"span"),Dt(7,"div",4),ne(8),It()()),n&2){let e=Nt().$implicit;Lt(2),Fe(e.rangeLower||"0"),Lt(6),Fe(e.rangeUpper||"0")}}function ig(n,t){if(n&1&&(Dt(0,"div"),ne(1),It()),n&2){let e=Nt().$implicit;Ze("align-left",e.display==="label"),Lt(),ws(" ",e.label," ")}}function sg(n,t){if(n&1&&(Dt(0,"td"),sr(1,eg,9,2,"div",2)(2,ig,2,3,"div",3),It()),n&2){let e,i=t.$implicit;Ze("plotbox-cell",i.display==="plotBox"),Lt(),rr((e=i.display)==="plotBox"?1:2)}}function rg(n,t){if(n&1&&(Dt(0,"div"),Ht(1,"img",7),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Lt(),_s("src",s.data[i][e],Cs)}}function ng(n,t){if(n&1&&Ht(0,"span",10),n&2){let e=Nt(2).$index,i=Nt().$index,s=Nt();Oe("left",s.targets[i][e],"%")}}function og(n,t){if(n&1&&(Dt(0,"div",8),sr(1,ng,1,2,"span",9),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Oe("background-color",s.color)("width",s.data[i][e],"%"),Lt(),rr(s.targets[i][e]?1:-1)}}function ag(n,t){if(n&1&&(Dt(0,"div"),ne(1),It()),n&2){let e=Nt().$index,i=Nt().$index,s=Nt();Lt(),ws(" ",s.data[i]?s.data[i][e]:""," ")}}function lg(n,t){if(n&1&&(Dt(0,"td"),sr(1,rg,2,1,"div")(2,og,2,5,"div",6)(3,ag,2,1,"div"),It()),n&2){let e,i=t.$implicit,s=Nt(2);Oe("width",i.display==="plotBox"?100/s.props.length*2:null,"%"),Ze("align-left",i.display==="label")("align-center",i.display==="itemNo"),Lt(),rr((e=i.display)==="trendLine"?1:e==="plotBox"?2:3)}}function hg(n,t){if(n&1&&(Dt(0,"tr"),ce(1,lg,4,7,"td",5,he),It()),n&2){let e=Nt();Lt(),de(e.props)}}function cg(n,t){if(n&1&&(Dt(0,"td"),ne(1),It()),n&2){let e=t.$implicit;Lt(),ws(" ",e," ")}}function dg(n,t){if(n&1&&(Dt(0,"tr",1),ce(1,cg,2,1,"td",null,he),It()),n&2){let e=Nt();Lt(),de(e.footerValues)}}var bp=(()=>{class n extends pe{constructor(){super(...arguments),this.widget={},this.columns=[],this.rows=[],this.data=[],this.targets=[],this.color="",this.props=[],this.hasFooter=!1,this.footerValues=[],this.san=Qt(Oh),this.sbs=Qt(qr),this.totalByColumn={},this.originalData=[]}ngOnInit(){super.ngOnInit(),this.color=yp.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,s,r,o){switch(s.display||""){case"itemNo":return(i+1).toString();case"label":return this.rows[i].caption;case"":case"value":case"plotBox":{let a=s.format,l=this.getPropValue(e,i,s);if(s.display==="plotBox"){let h=s.rangeLower||0,c=s.rangeUpper||0;return r!==void 0&&(h=r),o!==void 0&&(c=o),s.showAs==="target%"?parseFloat(l)/parseFloat(this.getPropValue(e,i,s,"targetValue"))*100:c-h===0?0:(l-h)/(c-h)*100}else{if(l==="")return"";if(s.showAs==="target%"){let h=this.getPropValue(e,i,s,"targetValue");return this.formatNumber(l/h,a)}return s.showAs==="sum%"?this.formatNumber(l/this.totalByColumn[s.dataValue],a||"#.##%"):this.formatNumber(l,a)}}case"trendLine":{let a=this.getColumnIndex(s.dataValue),l="";return a!==-1&&(l=e[i*this.columns.length+a]),this.getSvgForTrendLine(s,l)}}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-BHI45ZQG.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:s,onUpdate:r=>this.updateColors(r)}})}getPropValue(e,i,s,r="dataValue"){let o=!isNaN(parseFloat(s[r])),a=s[r];if(!o){let l=this.getColumnIndex(s[r]);l===-1?a=0:a=e[i*this.columns.length+l]}return a}getColumnIndex(e){return this.columns.findIndex(s=>s.dimension?e.split("/").includes(s.dimension):/^Properties\(\"([^)]+)\"\)/.exec(s.valueID)?.[1]===e)}prepareData(e){let i=[];for(let s=0;s(c+a)%this.columns.length===0);o=Math.max(...l),r=Math.min(...l)}r=0,i.push({min:r,max:o}),this.props[s].rangeLower||(this.props[s].rangeLower=r),this.props[s].rangeUpper||(this.props[s].rangeUpper=o)}this.preparePercentageSums(e),this.data=[],this.targets=[];for(let s=0;s{if(!g)return 0;let d=parseFloat(g);return isNaN(d)?0:d}):typeof i=="number"?r=[i]:Array.isArray(i);let o=Math.max(...r),a=Math.min(...r),l=(r.length-1)*4,h=` s.showAs==="sum%");i?.length&&i.forEach(s=>{let r=this.columns.findIndex(o=>o.dimension===s.dataValue);this.totalByColumn[s.dataValue]=e.reduce((o,a,l)=>{if(l%this.columns.length!==r||a==="")return o;let h=parseFloat(a);return isNaN(h)?o:o+h},0)})}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-scorecard"]],inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],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,s){i&1&&(Dt(0,"table")(1,"thead")(2,"tr"),ce(3,sg,3,3,"td",0,he),It()(),Dt(5,"tbody"),ce(6,hg,3,0,"tr",null,he),sr(8,dg,3,0,"tr",1),It()()),i&2&&(Lt(3),de(s.props),Lt(3),de(s.rows),Lt(2),rr(s.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}"]})}}return n})();var Js=(()=>{class n extends pe{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,s=i?this.widget?.dataProperties:e.Cols[0].tuples;for(let r=0;rb.dimension===o.dataValue);l=e.Cols[0].tuples[y].caption,a=e.Data[y]}else l=s[r].caption,a=e.Data[r];let h=1,c=parseFloat(o.rangeLower.toString()),g=parseFloat(o.rangeUpper.toString());isNaN(c)&&(c=0),isNaN(g)&&(g=100);let d=c,p=g;isNaN(d)&&(d=33.33333),isNaN(p)&&(p=66.66666),a=p&&(h=2),this.data.push({caption:l,state:h,value:a,min:c,max:g})}}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["ng-component"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();function ug(n,t){if(n&1&&(Dt(0,"div",0),Ht(1,"img",1),Dt(2,"label"),ne(3),It()()),n&2){let e=t.$implicit;Lt(),_s("src","assets/img/smiley/"+(e.state===1?"smile-yellow.svg":e.state===0?"smile-red.svg":"smile-green.svg"),Cs),Lt(2),Fe(e.caption)}}var vp=(()=>{class n extends Js{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-wsmiley"]],hostVars:2,hostBindings:function(i,s){i&2&&Oe("grid-template-columns",s.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,s){i&1&&ce(0,ug,4,2,"div",0,he),i&2&&de(s.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})}}return n})();function pg(n,t){if(n&1&&Ht(0,"div",3),n&2){let e=t.$implicit,i=Nt().$implicit;Ze("filled",i.progress>=e+1)}}function fg(n,t){if(n&1&&(Dt(0,"div",0)(1,"div",1),ce(2,pg,1,2,"div",2,he),It(),Dt(4,"label"),ne(5),It()()),n&2){let e=t.$implicit,i=Nt();Lt(),Ze("high",e.state===2)("low",e.state===0),Lt(),de(i.dots),Lt(3),Fe(e.caption)}}var Cp=(()=>{class n extends Js{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)}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-light-bar"]],hostVars:2,hostBindings:function(i,s){i&2&&Oe("grid-template-columns",s.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[[1,"holder"],[1,"bar"],[1,"dot",3,"filled"],[1,"dot"]],template:function(i,s){i&1&&ce(0,fg,6,5,"div",0,he),i&2&&de(s.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})}}return n})();function gg(n,t){if(n&1&&(Dt(0,"div",0),Ht(1,"img",1),Dt(2,"label"),ne(3),It()()),n&2){let e=t.$implicit;Lt(),_s("src","assets/img/traffic-light/"+(e.state===1?"yellow.svg":e.state===0?"red.svg":"green.svg"),Cs),Lt(2),Fe(e.caption)}}var _p=(()=>{class n extends Js{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}static{this.\u0275fac=(()=>{let e;return function(s){return(e||(e=_t(n)))(s||n)}})()}static{this.\u0275cmp=bt({type:n,selectors:[["dsw-traffic-light"]],hostVars:2,hostBindings:function(i,s){i&2&&Oe("grid-template-columns",s.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(i,s){i&1&&ce(0,gg,4,2,"div",0,he),i&2&&de(s.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})}}return n})();var mg=["popup"],xg=["tooltip"],wp=(()=>{class MapWidgetOldComponent extends pe{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,this.isWorldMap=!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=n=>{let t=n.data;switch(t.type){case"map.applyStyle":this.applyStyle(t);break}},window.addEventListener("message",this.onMessage))}applyStyle(n){let{selector:t,style:e,value:i}=n,s=this.map?.getTargetElement();(s&&s.querySelectorAll(t))?.forEach(o=>{o.style[e]=i})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){this.us.isEmbedded()&&window.removeEventListener("message",this.onMessage),this.tooltip?.nativeElement?.remove(),super.ngOnDestroy()}createMap(){let n=this.ss.getAppSettings(),t;t=this.getDataPropValue("tileUrl");let e=new Ir({wrapX:!0,url:t}),i=new On({layers:[new Rr({source:e})],controls:gs({attributionOptions:{collapsible:!1}}),target:this.el.nativeElement,view:new Ce({center:[0,0],zoom:2})});i.getViewport().addEventListener("mouseout",s=>{this.hideTooltip()},!1),this.map=i,this.initialize()}hideTooltip(){this.hintTimeout&&clearTimeout(this.hintTimeout),this.tooltip&&(this.tooltip.nativeElement.style.display="none")}rejectTooltipCreation(){clearTimeout(this.hintTimeout)}showTooltip(n,t,e){this.hintTimeout&&clearTimeout(this.hintTimeout),this.hintTimeout=setTimeout(()=>{let i=this.tooltip?.nativeElement,s=this.getDataPropValue("tooltipStyles");if(s){let r=JSON.parse(s);for(let o in r)i.style.setProperty(o,r[o])}i.innerHTML=n,i.style.left=t.toString()+"px",i.style.top=e.toString()+"px",i.style.display="block"},600)}showPopup(){let n=this.popupElement,t=this.getDataPropValue("popupStyles");if(t){let e=JSON.parse(t);for(let i in e)n.style.setProperty(i,e[i])}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(n){this.hideTooltip(),this.rejectTooltipCreation(),this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=n||this.getMDX(),this.changeWidgetType("pivot"))}requestPolygons(){let n=this.widget.name;this.widget.name.indexOf(".")===-1&&(n+=".js"),n=this.getDataPropValue("coordsJsFile")||n;let e=(this.ss.serverSettings.DefaultApp||"/csp")+"/"+n;this.ds.getFile(e).then(i=>this.onPolyFileLoaded(i)).catch(i=>{this.loadDefaultGeoJSON()}).finally(()=>this.hideLoading())}onPolyFileLoaded(result){this.isGeoJSON=!1;try{let n=JSON.parse(result);this.polyData=n,this.isGeoJSON=!0,this.buildPolygons();return}catch(n){}var polys={};result="("+result+")(polys)",eval(result),this.polyData=polys,this.buildPolygons()}onPolyJSONFileLoaded(n){this.polyData=n,this.buildPolygons()}getFeatureColor(n,t){let e=this.mapData.Cols[1].tuples.filter(c=>c.caption===n);if(e.length===0)return;e=e[0];let i,s=this.mapData.Cols[1].tuples.indexOf(e),r=this.mapData.Cols[0].tuples.length,o="ColorExplicitValue";o=this.getDataPropValue("colorProperty")||o;let a;isNaN(parseInt(o,10))?a=this.mapData.Cols[0].tuples.filter(c=>c.caption===o):a=this.mapData.Cols[0].tuples.slice(o,1),a=a[0];let l=this.mapData.Cols[0].tuples.indexOf(a),h=this.mapData.Data[s*r+l];if(isNaN(parseFloat(h)))return h.toString().indexOf("rgb")!==-1&&h.toString().indexOf("rgba")===-1&&(h=h.replace("rgb","rgba"),h=h.substr(0,h.length-1)+", 0)"),i=h.split(","),i[3]="0.4)",i.join(",");{let c=this.getDataPropValue("colorFormula")||"hsl((255-x)/255 * 120, 100%, 50%)";this.isRGBColor&&(c="rgb(x, 255-x, 0)");let g=c.indexOf("("),d=c.substring(0,g).toLowerCase();c=c.substring(g+1,c.length-1),i=c.split(",");let p=t||0;for(let y=0;y255&&(x=255),x<0&&(x=0),i[y]=Math.floor(x).toString()}return d.indexOf("a")===-1?d+"a("+i.join(",")+", 0.45)":d+"("+i.join(",")+")"}}centerView(n,t){let e,i,s;if(this.widget.properties&&(e=parseFloat(this.widget.properties.latitude),i=parseFloat(this.widget.properties.longitude),s=parseFloat(this.widget.properties.zoom)),this.drills.length===0&&!isNaN(e)&&!isNaN(i)&&!isNaN(s)&&e!==void 0&&i!==void 0&&s!==void 0)this.map?.getView().setCenter(Zi([i,e],"EPSG:4326","EPSG:900913")),this.map?.getView().setZoom(s);else{if(Math.abs(n[0]-t[0])<1e-8&&Math.abs(n[1]-t[1])<1e-8)return;let r=Zi([n[0],n[1]],"EPSG:4326","EPSG:900913"),o=Zi([t[0],t[1]],"EPSG:4326","EPSG:900913");this.map?.getView().fit([r[0],r[1],o[0],o[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 n,t,e,i,s,r,o,a,l,h,c,g;this.isRGBColor=!1;let d=this.getDataPropValue("colorProperty")||"ColorHSLValue",p=this.getDataPropValue("coordsProperty")||"CoordKeyValue";if(!this.polyData||!this.map||!this.mapData)return;if(this.isWorldMap){this.buildWorldMapPolygons();return}let y=[];o=this.mapData.Cols[0].tuples.length;let b=Number.MAX_VALUE,x=Number.MIN_VALUE,f=0;for(isNaN(parseInt(d))?(g=this.mapData.Cols[0].tuples.filter(w=>w.caption===d),f=this.mapData.Cols[0].tuples.indexOf(g[0]),f===-1&&(this.isRGBColor=!0,d="ColorRGBValue",g=this.mapData.Cols[0].tuples.filter(w=>w.caption===d),f=this.mapData.Cols[0].tuples.indexOf(g[0]))):f=parseInt(this.widget.properties.colorProperty,10)||0,a=0;ax&&(x=l);let M=[99999999,99999999],L=[-99999999,-99999999],_=0;for(c=-1,g=this.mapData.Cols[0].tuples.filter(w=>w.caption===p),g.length===0&&(g=this.mapData.Cols[0].tuples.filter(w=>w.caption==="Key")),g.length!==0&&(c=this.mapData.Cols[0].tuples.indexOf(g[0])),a=0;aL[0]&&(L[0]=parseFloat(I)),parseFloat(t)>L[1]&&(L[1]=parseFloat(t)),m.push(v.getCoordinates())}if(D.push(m),D.length>300){let u=[];for(i=0;iP.caption===A);if(D.length!==0){let P=this.mapData.Cols[0].tuples.indexOf(D[0]);P!==-1&&(C=this.mapData.Data[a*o+P])}}let F=ci;if(this.isGeoJSON){switch(h.type.toLowerCase()){}F=Xr}let S=new bs({geometry:new F(z),key:w,title:C,dataIdx:a*o,path:this.mapData.Cols[1].tuples[a].path,desc:this.mapData.Cols[1].tuples[a].title}),T;if(isNaN(parseFloat(C))||(C=this.formatNumber(C,"")),O){let D=JSON.parse(O),P=D.size||12,m=D.font||"Calibri,Arial,sans-serif",u=D.color||"#000",v=D.stroke||"#fff",I=D.strokeWidth||2;T=new ss({font:`${P}px ${m}`,fill:new _e({color:u}),stroke:new De({color:v,width:I}),text:C+""})}l=this.mapData.Data[a*o+f],S.setStyle(new we({zIndex:0,fill:new _e({color:this.getFeatureColor(w,(l-b)*255/(x-b))||"none"}),stroke:new De({color:"rgba(0, 0, 0, 0.3)",width:1}),text:T})),y.push(S)}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(y),setTimeout(()=>{this.centerView(M,L)})}retrieveData(n){if(setTimeout(()=>{this.map?.updateSize()},0),n.Error){this.showError(n.Error);return}n.Info&&(this.dataInfo=n.Info),this.hideTooltip(),this.markers.clear(),this.mapData=n,this.buildPolygons();let t=[Number.MAX_VALUE,Number.MAX_VALUE],e=[-Number.MAX_VALUE,-Number.MAX_VALUE];if(n&&this.map){let i=n.Cols[0].tuples.length,s=0,r=[],o="latitude";this.widget.properties&&this.widget.properties.latitudeProperty&&(o=this.widget.properties.latitudeProperty);let a="longitude";this.widget.properties&&this.widget.properties.longitudeProperty&&(a=this.widget.properties.longitudeProperty);let l=-1,h=-1,c=n.Cols[0].tuples.filter(d=>d.caption.toLowerCase()===o);if(c.length!==0&&(h=n.Cols[0].tuples.indexOf(c[0])),c=n.Cols[0].tuples.filter(d=>d.caption.toLowerCase()===a),c.length!==0&&(l=n.Cols[0].tuples.indexOf(c[0])),h===-1||l===-1)return;let g=n.Cols[1].tuples;g[0]?.children&&(g=g[0]?.children);for(let d=0;de[1]&&(e[1]=parseFloat(y.toString())),parseFloat(p.toString())>e[0]&&(e[0]=parseFloat(p.toString())),t[0]==e[0]&&(t[0]-=.25,e[0]+=.25),t[1]==e[1]&&(t[1]-=.25,e[1]+=.25),r.push(L),s+=i}r.length!==0&&(this.markers.addFeatures(r),this.centerView(t,e)),this.centerView(t,e)}}initialize(){this.iconStyle=new we({zIndex:100,image:new ji({anchor:[.5,40],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-marker-red.png"})});let n=this.map,t=new we({zIndex:0,stroke:new De({color:"rgba(0, 0, 0, 0.5)",width:1})});this.polyStyle=t,this.hoverStyle=new we({zIndex:1,stroke:new De({color:"blue",width:2})}),this.polys=new yi({features:[]});let e=new Ci({source:this.polys,style:this.polyStyle});e.setZIndex(1),this.map?.addLayer(e),this.markers=new yi({features:[]});let i=new oe;this.featureOverlay=new Ci({map:this.map,source:new yi({features:i,useSpatialIndex:!1}),style:this.hoverStyle,updateWhileAnimating:!0,updateWhileInteracting:!0}),this.featureOverlay.setZIndex(10),this.featureOverlay.setMap(this.map),this.markers&&(e=new Ci({source:this.markers,style:this.iconStyle}),e.setZIndex(100),this.map?.addLayer(e)),this.map?.on("click",s=>this.onMapClick(s)),this.map?.on("pointermove",s=>this.onPointerMove(s))}onPointerMove(n){if(ue.mobile&&n.originalEvent.touches&&n.originalEvent.touches.length!==1)return;this.hideTooltip();let t=this.map?.forEachFeatureAtPixel(n.pixel,(i,s)=>i);if(t){let i=t.get("dataIdx"),s,r="TooltipValue",o="";if(this.isWorldMap){let a=[];for(let l=0;l${h.caption}:
${c}`)}s=a.join("
"),s?.toString()&&this.showTooltip(s.toString(),n.pixel[0],n.pixel[1])}else{let a=this.getDataProp("tooltipProperty");a&&(r=a.dataValue,o=a.format),s=this.getDataByColumnName(this.mapData,r||"Name",i,o),!s&&this.widget.properties?.polygonTitleProperty&&t.get("title")&&(s=t.get("title")),s||(s=this.getDataByColumnName(this.mapData,"Name",i)),s||(s=(this.mapData.Cols[1].tuples[0]?.children||this.mapData.Cols[1].tuples)[Math.floor(i/this.mapData.Cols[0].tuples.length)].caption||""),s?.toString()&&this.showTooltip(s.toString(),n.pixel[0],n.pixel[1])}}if(n.dragging){this.hideTooltip();return}let e=this.map?.getEventPixel(n.originalEvent);if(e){let i=this.map?.hasFeatureAtPixel(e);(this.map?.getTarget()).style.cursor=i?"pointer":""}this.featureOverlay?.getSource().clear(),t&&this.featureOverlay?.getSource().addFeature(t)}getTooltipData(n){if(!this.mapData)return;let t=[],e=this.mapData.Cols[1].tuples.filter(a=>a.caption===n);if(e.length===0)return;e=e[0];let i=this.mapData.Cols[1].tuples.indexOf(e),s=this.mapData.Cols[0].tuples.length,r=this.mapData.Cols[0].tuples.filter(a=>a.caption==="tooltip");if(r.length===0)return;r=r[0];let o=this.mapData.Cols[0].tuples.indexOf(r);return t.push({label:"",value:this.mapData?.Data[i*s+o].split(":")[1]||""}),t}onMapClick(n){if(this.hidePopup(),ue.mobile&&n.originalEvent.touches&&n.originalEvent.touches.length!==1)return;let t=this.map?.forEachFeatureAtPixel(n.pixel,(i,s)=>i);if(t){if(this.hideTooltip(),ue.mobile&&this._selectedFeature!==t){this._selectedFeature=t,this.onPointerMove(n);return}this.doDrill(t.get("path"),t.get("name")||t.get("title"),void 0,()=>{e(t)})}else this.hideTooltip();let e=i=>{let s=i.get("dataIdx"),r,o,a="PopupValue",l="",h=this.getDataProp("popupProperty");if(h&&(a=h.dataValue,l=h.format),a?(o=""+(i.get("key")||i.values_.title)+"
",o+=a+": ",o+=this.getDataByColumnName(this.mapData,a,s,l)):o=this.mapData?.Cols[1].tuples[Math.floor(s/this.mapData?.Cols[0].tuples.length)].caption||this.mapData?.Cols[1].tuples[Math.floor(s/this.mapData?.Cols[0].tuples.length)].desc||"",!o)if(o=""+(i.get("name")||i.values_.title)+"
",this.mapData?.Cols[0].tuples.length)for(let c=0;c${d}`,c!==this.mapData?.Cols[0].tuples.length-1&&(o+="
")}else o=this.getDataByColumnName(this.mapData,"Name",s);o&&(this.tooltipData.content=o,this.popupElement&&(this.popupElement.style.left=n.pixel[0]+"px",this.popupElement.style.top=n.pixel[1]-10+"px",this.popupElement.innerHTML=o),this.showPopup())}}onResize(){this.map&&this.map.updateSize()}buildGeoJSON(n){}getPartsByKey(n,t="Key"){if(this.isGeoJSON){let e=this.polyData?.features.find(i=>i.properties[t]===n);return e?e.geometry:void 0}else if(this.polyData?.[n])return this.polyData[n]?.split(";")}convertCoordinatesOfGEOJson(n,t,e){let i=JSON.parse(JSON.stringify(n.coordinates));for(let s=0;se[0]&&(e[0]=parseFloat(c)),parseFloat(l)>e[1]&&(e[1]=parseFloat(l))}return{poly:i,min:t,max:e}}loadDefaultGeoJSON(){return Ft(this,null,function*(){let n;try{n=yield this.ds.getJSONFile("assets/countries.json")}catch{console.error(`Can't load default GEOJSON: "assets/countries.json"`);return}if(!n)return;let t=new yi;t.addFeatures(new Wr().readFeatures(n,{dataProjection:"EPSG:4326",featureProjection:this.map?.getView().getProjection()})),this.worldMap=t;let e=new Ci({source:t});this.polyData=n,this.isWorldMap=!0,this.isGeoJSON=!0})}buildWorldMapPolygons(){let n=this.polyData.features,t=[],e=Number.MAX_VALUE,i=Number.MIN_VALUE;for(let s=0;si&&(i=r)}for(let s=0;sp.get("name")===r);if(!o)continue;o.set("dataIdx",s*2),o.set("title",r),o.set("path",this.mapData.Cols[1].tuples[s].path),t.push(o);let a=this.mapData.Data[s*2+1],c=`hsla(${(255-(a-e)/(i-e)*255)/255*120}, 100%, 50%, 0.6)`,g=new ss({font:"8px Oxygen",fill:new _e({color:"black"}),text:`${r} `+a.toString()}),d=this;o.setStyle(new we({zIndex:0,fill:new _e({color:c}),stroke:new De({color:"rgba(0, 0, 0, 0.3)",width:1}),text:g}))}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(t),this.fitPolygonsToScreen()}getMaxPoly(n){let t=[];for(let e=0;e{let n;return function(e){return(n||(n=_t(MapWidgetOldComponent)))(e||MapWidgetOldComponent)}})()}static{this.\u0275cmp=bt({type:MapWidgetOldComponent,selectors:[["dsw-map-widget"]],viewQuery:function(t,e){if(t&1&&(Si(mg,7),Si(xg,7)),t&2){let i;Mi(i=Ei())&&(e.popupEl=i.first),Mi(i=Ei())&&(e.tooltip=i.first)}},standalone:!0,features:[Ct,vt],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(t,e){t&1&&(Dt(0,"div",2,0)(2,"div"),Ht(3,"div",3),It(),Ht(4,"div",4),It(),Ht(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:Oxygen;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}']})}}return MapWidgetOldComponent})();var Hr=[{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"}],Qs={regular:{label:"Scorecard chart",class:bp,allowShowAsPivot:!0},fuelGauge:{class:bh,type:"chart",chart:"solidgauge",allowShowAsPivot:!0},bullseyeChart:{label:"Bullseye chart",class:gp,type:"chart",chart:"pie",headerButtons:Hr,allowShowAsPivot:!0},speedometer:{class:bh,type:"chart",chart:"gauge",allowShowAsPivot:!0,disableLegend:!0},bubbleChart:{label:"Bubble chart",class:cp,type:"chart",chart:"bubble",allowShowAsPivot:!0},treeMapChart:{label:"Tree map chart",class:hp,type:"chart",chart:"treemap",allowShowAsPivot:!0},hilowChart:{label:"Hi-low chart",class:dp,type:"chart",chart:"boxplot",allowShowAsPivot:!0},pieChart3D:{label:"Pie chart 3D",class:Ur,type:"chart",chart:"pie",headerButtons:Hr,allowShowAsPivot:!0},donutChart3D:{label:"Donut chart 3D",class:Ur,type:"chart",chart:"pie",headerButtons:Hr,allowShowAsPivot:!0},donutChart:{label:"Donut chart",class:Ur,type:"chart",chart:"pie",headerButtons:Hr,allowShowAsPivot:!0},pieChart:{label:"Pie chart",class:Ur,type:"chart",chart:"pie",headerButtons:Hr,allowShowAsPivot:!0},areaChart:{label:"Area chart",class:fp,type:"chart",chart:"area",allowShowAsPivot:!0},barChart:{label:"Bar chart",class:Ch,type:"chart",chart:"bar",allowShowAsPivot:!0},barChartStacked:{label:"Bar chart stacked",class:Ch,type:"chart",chart:"bar",allowShowAsPivot:!0},lineChart:{label:"Linear chart",class:bo,type:"chart",chart:"line",allowShowAsPivot:!0},lineChartMarkers:{label:"Linear chart with markers",class:bo,type:"chart",chart:"line",allowShowAsPivot:!0},comboChart:{label:"Combo chart",class:bo,type:"chart",chart:"line",allowShowAsPivot:!0},columnChart:{label:"Column chart",class:mo,type:"chart",chart:"column",allowShowAsPivot:!0},columnChart3D:{label:"Column chart 3D",class:mo,type:"chart",chart:"column",allowShowAsPivot:!0},columnChartStacked:{label:"Column chart stacked",class:mo,type:"chart",chart:"column",allowShowAsPivot:!0},xyChart:{label:"XY chart",class:mp,type:"chart",chart:"scatter",allowShowAsPivot:!0},timeChart:{label:"Time chart",class:xp,type:"chart",allowShowAsPivot:!0},pivot:{label:"Table",class:wo,type:"pivot"},"deepsee.lightpivottable":{class:wo,type:"pivot"},textMeter:{label:"Text meter",class:Zh,type:"text",allowShowAsPivot:!0},map:{label:"World map",class:location.hash.indexOf("oldmap=1")!==-1?wp:oo,type:"map",allowShowAsPivot:!0},"deepsee.enhancedmapportlet":{class:oo,type:"map",allowShowAsPivot:!0},"rf.mapportlet":{class:oo,type:"map",allowShowAsPivot:!0},horizontalControls:{class:xo,type:"empty"},verticalControls:{class:xo,type:"empty"},smiley:{class:vp,allowShowAsPivot:!1},lightBar:{class:Cp,allowShowAsPivot:!1},trafficLight:{class:_p,allowShowAsPivot:!1}};Qs[ue.const.emptyWidgetClass]={class:xo,type:"empty"};var lp=(()=>{class n{constructor(){}initialize(){let e=ue.addons;if(e&&e&&e.length)for(let i=0;i{class f{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||I}}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=M+"."+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(R=>{document.body.removeChild(e),window.URL.revokeObjectURL(t)},100)}static{this.\u0275fac=function(n){return new(n||f)(p(k),p(y),p(x),p(E),p(v))}}static{this.\u0275cmp=C({type:f,selectors:[["dsw-app-settings"]],standalone:!0,features:[S],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),g("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),u("ngModelChange",function(t){return b(e.model.colCount,t)||(e.model.colCount=t),t}),a(),o(7,"label"),s(8),c(9,"i18n"),o(10,"input",3),u("ngModelChange",function(t){return b(e.model.isSaveFilters,t)||(e.model.isSaveFilters=t),t}),a()(),o(11,"label"),s(12),c(13,"i18n"),o(14,"input",3),u("ngModelChange",function(t){return b(e.model.isRelatedFilters,t)||(e.model.isRelatedFilters=t),t}),a()(),o(15,"label"),s(16),c(17,"i18n"),o(18,"input",3),u("ngModelChange",function(t){return b(e.model.isTilePushDisabled,t)||(e.model.isTilePushDisabled=t),t}),a()(),o(19,"label"),s(20),c(21,"i18n"),a(),o(22,"input",4),g("change",function(t){return e.readSettings(t)}),a(),o(23,"div",5)(24,"button",6),g("click",function(){return e.resetSettings()}),s(25),c(26,"i18n"),a(),o(27,"button",6),g("click",function(){return e.exportSettings()}),s(28),c(29,"i18n"),a()()()),n&2&&(l(4),h(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),h(d(21,19,"importSettings")),l(5),h(d(26,21,"resetSettings")),l(3),h(d(29,23,"exportSettings")))},dependencies:[B,T,A,P,F,O,w],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}"]})}}return f})();export{K as AppSettingsComponent}; +import{a as T}from"./chunk-WSLAUSJ3.js";import{a as B}from"./chunk-EXZFHSK3.js";import{h as I}from"./chunk-Y3SGEOX4.js";import"./chunk-RU73HBGW.js";import"./chunk-23TAPEHU.js";import"./chunk-D7UFXRMJ.js";import"./chunk-NHWJ6QQD.js";import"./chunk-GOV7BL6D.js";import"./chunk-HCCYM72S.js";import"./chunk-OM7B3BIS.js";import{a as E}from"./chunk-MDOQS4TE.js";import{a as k}from"./chunk-G7BOERRR.js";import"./chunk-O73WWIXQ.js";import"./chunk-2ODAR4M4.js";import{b as P,d as F,e as O,j as A}from"./chunk-VUYLTOWP.js";import{D as w,E as v,I as x,J as y,K as M}from"./chunk-ZHVSJD4N.js";import{Hb as o,Ib as a,Rb as g,ab as l,bb as p,bc as s,cc as h,dc as _,ec as m,fa as C,fc as b,gc as u,lc as S,qc as c,rc as d}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";var K=(()=>{class f{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||I}}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=M+"."+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(R=>{document.body.removeChild(e),window.URL.revokeObjectURL(t)},100)}static{this.\u0275fac=function(n){return new(n||f)(p(k),p(y),p(x),p(E),p(v))}}static{this.\u0275cmp=C({type:f,selectors:[["dsw-app-settings"]],standalone:!0,features:[S],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),g("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),u("ngModelChange",function(t){return b(e.model.colCount,t)||(e.model.colCount=t),t}),a(),o(7,"label"),s(8),c(9,"i18n"),o(10,"input",3),u("ngModelChange",function(t){return b(e.model.isSaveFilters,t)||(e.model.isSaveFilters=t),t}),a()(),o(11,"label"),s(12),c(13,"i18n"),o(14,"input",3),u("ngModelChange",function(t){return b(e.model.isRelatedFilters,t)||(e.model.isRelatedFilters=t),t}),a()(),o(15,"label"),s(16),c(17,"i18n"),o(18,"input",3),u("ngModelChange",function(t){return b(e.model.isTilePushDisabled,t)||(e.model.isTilePushDisabled=t),t}),a()(),o(19,"label"),s(20),c(21,"i18n"),a(),o(22,"input",4),g("change",function(t){return e.readSettings(t)}),a(),o(23,"div",5)(24,"button",6),g("click",function(){return e.resetSettings()}),s(25),c(26,"i18n"),a(),o(27,"button",6),g("click",function(){return e.exportSettings()}),s(28),c(29,"i18n"),a()()()),n&2&&(l(4),h(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),h(d(21,19,"importSettings")),l(5),h(d(26,21,"resetSettings")),l(3),h(d(29,23,"exportSettings")))},dependencies:[B,T,A,P,F,O,w],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}"]})}}return f})();export{K as AppSettingsComponent}; diff --git a/dist/chunk-VYCTNPPE.js b/dist/chunk-EXZFHSK3.js similarity index 97% rename from dist/chunk-VYCTNPPE.js rename to dist/chunk-EXZFHSK3.js index 18b99015..54097df0 100644 --- a/dist/chunk-VYCTNPPE.js +++ b/dist/chunk-EXZFHSK3.js @@ -1,3 +1,3 @@ -import{a as O}from"./chunk-3TBNLEJ6.js";import{a as E}from"./chunk-G7BOERRR.js";import{D as F}from"./chunk-5MYX3VUL.js";import{Cb as u,Hb as c,Ib as n,Jb as v,Kc as _,Rb as b,Tb as x,Ub as C,ab as o,bb as a,bc as l,dc as w,fa as p,lc as y,qc as g,rb as f,rc as h,xb as s,za as d,zb as m}from"./chunk-ZEAAPN4P.js";var W=["*"];function M(t,P){t&1&&(c(0,"div",1),l(1,"You have unsaved changes"),n())}var U=(()=>{class t{constructor(r,i,e){this.sbs=r,this.eds=i,this.cd=e,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new d,this.apply=new d,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(r=>{this.isWidgetEditorWarningVisible=r,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(a(E),a(O),a(_))}}static{this.\u0275cmp=p({type:t,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},standalone:!0,features:[y],ngContentSelectors:W,decls:11,vars:10,consts:[[3,"click","title"],[1,"unsaved"],["src","assets/img/icons/icon-check.svg"]],template:function(i,e){i&1&&(x(),c(0,"button",0),g(1,"i18n"),b("click",function(){return e.onCloseClick()}),l(2),n(),c(3,"label")(4,"div"),C(5),n(),f(6,M,2,0,"div",1),n(),c(7,"button",0),g(8,"i18n"),b("click",function(){return e.apply.emit()}),v(9,"img",2),l(10,` Save +import{a as O}from"./chunk-OM7B3BIS.js";import{a as E}from"./chunk-G7BOERRR.js";import{D as F}from"./chunk-ZHVSJD4N.js";import{Cb as u,Hb as c,Ib as n,Jb as v,Kc as _,Rb as b,Tb as x,Ub as C,ab as o,bb as a,bc as l,dc as w,fa as p,lc as y,qc as g,rb as f,rc as h,xb as s,za as d,zb as m}from"./chunk-ZEAAPN4P.js";var W=["*"];function M(t,P){t&1&&(c(0,"div",1),l(1,"You have unsaved changes"),n())}var U=(()=>{class t{constructor(r,i,e){this.sbs=r,this.eds=i,this.cd=e,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new d,this.apply=new d,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(r=>{this.isWidgetEditorWarningVisible=r,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged?.unsubscribe()}static{this.\u0275fac=function(i){return new(i||t)(a(E),a(O),a(_))}}static{this.\u0275cmp=p({type:t,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},standalone:!0,features:[y],ngContentSelectors:W,decls:11,vars:10,consts:[[3,"click","title"],[1,"unsaved"],["src","assets/img/icons/icon-check.svg"]],template:function(i,e){i&1&&(x(),c(0,"button",0),g(1,"i18n"),b("click",function(){return e.onCloseClick()}),l(2),n(),c(3,"label")(4,"div"),C(5),n(),f(6,M,2,0,"div",1),n(),c(7,"button",0),g(8,"i18n"),b("click",function(){return e.apply.emit()}),v(9,"img",2),l(10,` Save `),n()),i&2&&(s("title",h(1,6,"cancel")),o(2),w(" ",e.isBack?"Back":"Close",` `),o(4),u(e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible?6:-1),o(),m("warning",e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible),s("title",h(8,8,"save")))},dependencies:[F],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})}}return t})();export{U as a}; diff --git a/dist/chunk-4BOB2ZIP.js b/dist/chunk-FQLYM4TH.js similarity index 94% rename from dist/chunk-4BOB2ZIP.js rename to dist/chunk-FQLYM4TH.js index 5df909aa..e50cf8ab 100644 --- a/dist/chunk-4BOB2ZIP.js +++ b/dist/chunk-FQLYM4TH.js @@ -1 +1 @@ -import{a as P}from"./chunk-23TAPEHU.js";import{a as T}from"./chunk-NHWJ6QQD.js";import{a as I}from"./chunk-MDOQS4TE.js";import{a as D}from"./chunk-G7BOERRR.js";import{D as F,F as O,H as E,t as k,u as S,w as y}from"./chunk-5MYX3VUL.js";import{Cb as b,Hb as i,Ib as o,Jb as r,Nb as u,Rb as a,Sb as f,ab as m,bb as l,bc as c,dc as v,fa as x,lc as w,qa as g,qc as C,ra as h,rb as p,rc as M}from"./chunk-ZEAAPN4P.js";import{h as _}from"./chunk-MG3ERZGY.js";function V(n,A){if(n&1){let e=u();i(0,"li",5),a("click",function(){g(e);let t=f();return h(t.gotoZenDeepSee())}),r(1,"img",10),c(2),C(3,"i18n"),o()}n&2&&(m(2),v(" ",M(3,1,"gotoDeepSee")," "))}function L(n,A){if(n&1){let e=u();i(0,"li",2),a("click",function(){g(e);let t=f();return h(t.editDashboard())}),r(1,"img",11),c(2," Edit dashboard "),o()}}var U=(()=>{class n{constructor(e,s,t,d,H,j,B){this.router=e,this.route=s,this.ds=t,this.ms=d,this.modal=H,this.sbs=j,this.hs=B,this.isHome=!1,this.version=O.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(e=>{e instanceof k&&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-D27EKMDY.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-WVVAFVNJ.js")})}showAboutDialog(){return _(this,null,function*(){let e=yield this.ds.getFile("changelog.md");this.modal.show({title:"DeepSeeWeb v."+this.version,component:import("./chunk-4FY4TWQQ.js"),inputs:{html:e},closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()})}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-6JJVZZLS.js")})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}static{this.\u0275fac=function(s){return new(s||n)(l(y),l(S),l(E),l(T),l(I),l(D),l(P))}}static{this.\u0275cmp=x({type:n,selectors:[["dsw-menu"]],standalone:!0,features:[w],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(s,t){s&1&&(i(0,"ul"),p(1,V,4,3,"li",0),r(2,"div",1),p(3,L,3,0,"li"),i(4,"li",2),a("click",function(){return t.showSettingsMenu()}),r(5,"img",3),c(6," Settings "),o(),i(7,"li",2),a("click",function(){return t.showNamespaceSelector()}),r(8,"img",4),c(9," Namespace "),o(),i(10,"li",5),a("click",function(){return t.showLanguageSelector()}),r(11,"img",6),c(12," Language "),o(),i(13,"li",2),a("click",function(){return t.showAboutDialog()}),r(14,"img",7),c(15," About "),o(),i(16,"li",5),a("click",function(){return t.logout()}),r(17,"img",8),c(18," Logout "),o()(),i(19,"span",9),c(20),o()),s&2&&(m(),b(t.isHome?-1:1),m(2),b(t.isHome?3:-1),m(17),v("v.",t.version,""))},dependencies:[F],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)}']})}}return n})();export{U as MenuComponent}; +import{a as P}from"./chunk-23TAPEHU.js";import{a as T}from"./chunk-NHWJ6QQD.js";import{a as I}from"./chunk-MDOQS4TE.js";import{a as D}from"./chunk-G7BOERRR.js";import{D as F,F as O,H as E,t as k,u as S,w as y}from"./chunk-ZHVSJD4N.js";import{Cb as b,Hb as i,Ib as o,Jb as r,Nb as u,Rb as a,Sb as f,ab as m,bb as l,bc as c,dc as v,fa as x,lc as w,qa as g,qc as C,ra as h,rb as p,rc as M}from"./chunk-ZEAAPN4P.js";import{h as _}from"./chunk-MG3ERZGY.js";function V(n,A){if(n&1){let e=u();i(0,"li",5),a("click",function(){g(e);let t=f();return h(t.gotoZenDeepSee())}),r(1,"img",10),c(2),C(3,"i18n"),o()}n&2&&(m(2),v(" ",M(3,1,"gotoDeepSee")," "))}function L(n,A){if(n&1){let e=u();i(0,"li",2),a("click",function(){g(e);let t=f();return h(t.editDashboard())}),r(1,"img",11),c(2," Edit dashboard "),o()}}var U=(()=>{class n{constructor(e,s,t,d,H,j,B){this.router=e,this.route=s,this.ds=t,this.ms=d,this.modal=H,this.sbs=j,this.hs=B,this.isHome=!1,this.version=O.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(e=>{e instanceof k&&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-SHT3CMKG.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-WYIOVHFW.js")})}showAboutDialog(){return _(this,null,function*(){let e=yield this.ds.getFile("changelog.md");this.modal.show({title:"DeepSeeWeb v."+this.version,component:import("./chunk-KWSVTJBX.js"),inputs:{html:e},closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()})}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-RWS3H5JL.js")})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}static{this.\u0275fac=function(s){return new(s||n)(l(y),l(S),l(E),l(T),l(I),l(D),l(P))}}static{this.\u0275cmp=x({type:n,selectors:[["dsw-menu"]],standalone:!0,features:[w],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(s,t){s&1&&(i(0,"ul"),p(1,V,4,3,"li",0),r(2,"div",1),p(3,L,3,0,"li"),i(4,"li",2),a("click",function(){return t.showSettingsMenu()}),r(5,"img",3),c(6," Settings "),o(),i(7,"li",2),a("click",function(){return t.showNamespaceSelector()}),r(8,"img",4),c(9," Namespace "),o(),i(10,"li",5),a("click",function(){return t.showLanguageSelector()}),r(11,"img",6),c(12," Language "),o(),i(13,"li",2),a("click",function(){return t.showAboutDialog()}),r(14,"img",7),c(15," About "),o(),i(16,"li",5),a("click",function(){return t.logout()}),r(17,"img",8),c(18," Logout "),o()(),i(19,"span",9),c(20),o()),s&2&&(m(),b(t.isHome?-1:1),m(2),b(t.isHome?3:-1),m(17),v("v.",t.version,""))},dependencies:[F],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)}']})}}return n})();export{U as MenuComponent}; diff --git a/dist/chunk-QTANEDSU.js b/dist/chunk-JBRBXPBH.js similarity index 86% rename from dist/chunk-QTANEDSU.js rename to dist/chunk-JBRBXPBH.js index 0cf6a418..a1f907fa 100644 --- a/dist/chunk-QTANEDSU.js +++ b/dist/chunk-JBRBXPBH.js @@ -1 +1 @@ -import{I as c}from"./chunk-5MYX3VUL.js";import{Ea as o,bb as i,ha as r}from"./chunk-ZEAAPN4P.js";var a=(()=>{class t{constructor(s,e){this.el=s,this.us=e}ngAfterViewInit(){this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value==="desktop"&&this.us.isMobile()||this.el.nativeElement.focus()}static{this.\u0275fac=function(e){return new(e||t)(i(o),i(c))}}static{this.\u0275dir=r({type:t,selectors:[["","dswAutoFocus",""]],standalone:!0})}}return t})();export{a}; +import{I as c}from"./chunk-ZHVSJD4N.js";import{Ea as o,bb as i,ha as r}from"./chunk-ZEAAPN4P.js";var a=(()=>{class t{constructor(s,e){this.el=s,this.us=e}ngAfterViewInit(){this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value==="desktop"&&this.us.isMobile()||this.el.nativeElement.focus()}static{this.\u0275fac=function(e){return new(e||t)(i(o),i(c))}}static{this.\u0275dir=r({type:t,selectors:[["","dswAutoFocus",""]],standalone:!0})}}return t})();export{a}; diff --git a/dist/chunk-B64EGU7W.js b/dist/chunk-JG7KQKR6.js similarity index 99% rename from dist/chunk-B64EGU7W.js rename to dist/chunk-JG7KQKR6.js index 570b139e..e252459d 100644 --- a/dist/chunk-B64EGU7W.js +++ b/dist/chunk-JG7KQKR6.js @@ -1 +1 @@ -import{c as Me,d as J,f as q,g as Ne,h as $,i as ne,j as oe}from"./chunk-GOV7BL6D.js";import{b as fe,c as ze,g as Ye}from"./chunk-5MYX3VUL.js";import{A as D,Ca as N,Cb as w,Da as m,Ea as H,Eb as he,Fb as pe,Gb as ue,Hb as p,Ib as h,J as Fe,Jb as K,K as Te,Kc as _e,Nb as V,Ob as Ge,Pc as F,Qc as ge,Rb as v,S as ae,Sb as g,Tb as Ze,Tc as U,Ub as Ae,X as Re,Xb as L,Yb as G,Zb as Z,_ as Ie,_a as Le,aa as We,ab as d,ac as je,ba as ve,bb as P,bc as B,ec as R,f as se,fa as O,fb as Q,fc as I,g as we,gc as W,ha as ye,ia as xe,kb as T,lb as ce,lc as S,m as qe,nc as de,pa as De,qa as _,qc as j,r as Ee,ra as M,rb as b,rc as te,sa as He,sc as Pe,xb as C,y as k,yb as X,za as Ke,zb as le}from"./chunk-ZEAAPN4P.js";var ke=["pointer"],et=["backgroundColorEl"],E="[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}";function tt(o,i){o&1&&(p(0,"span"),B(1,"R"),h())}function nt(o,i){o&1&&(p(0,"span"),B(1,"G"),h())}function ot(o,i){o&1&&(p(0,"span"),B(1,"B"),h())}function it(o,i){o&1&&(p(0,"span"),B(1,"A"),h())}function rt(o,i){if(o&1){let e=V();p(0,"div",0)(1,"input",2),v("inputChange",function(n){_(e);let s=g();return M(s.onInputChange(n,"A"))}),h(),b(2,it,2,0,"span"),h()}if(o&2){let e=g();d(),C("value",e.value==null?null:e.value.getAlpha().toString()),d(),w(e.labelVisible()?2:-1)}}function st(o,i){o&1&&(p(0,"span"),B(1,"H"),h())}function at(o,i){o&1&&(p(0,"span"),B(1,"S"),h())}function ct(o,i){o&1&&(p(0,"span"),B(1,"L"),h())}function lt(o,i){o&1&&(p(0,"span"),B(1,"A"),h())}function ht(o,i){if(o&1){let e=V();p(0,"div",0)(1,"input",3),v("inputChange",function(n){_(e);let s=g();return M(s.onInputChange(n,"A"))}),h(),b(2,lt,2,0,"span"),h()}if(o&2){let e=g();d(),C("value",e.value==null?null:e.value.getAlpha().toString()),d(),w(e.labelVisible()?2:-1)}}var Qe="[_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 pt(o,i){o&1&&(p(0,"span"),B(1,"HEX"),h())}function ut(o,i){if(o&1){let e=V();p(0,"color-preset",4),v("selectionChange",function(n){_(e);let s=g(2);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=i.$implicit,t=g(2);C("color",e)("activeColor",t.activeColor())}}function dt(o,i){if(o&1&&(p(0,"div",2),pe(1,ut,1,2,"color-preset",3,he),j(3,"reverse"),h()),o&2){let e=g();C("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),d(),ue(Pe(3,2,e.list(),e.direction()=="up"||e.direction()=="right"))}}var Oe=(o,i)=>({first:o,last:i});function gt(o,i){if(o&1){let e=V();p(0,"color-preset-sublist",3),v("selectionChange",function(n){_(e);let s=g(3);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=g(),t=e.$implicit,n=e.$index,s=e.$count,a=g(2);C("list",t)("direction",a.direction())("activeColor",a.color())("ngClass",de(4,Oe,n===0,n===s-1))}}function ft(o,i){if(o&1){let e=V();p(0,"color-preset",4),v("selectionChange",function(n){_(e);let s=g(3);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=g(),t=e.$implicit,n=e.$index,s=e.$count,a=g(2);C("ngClass",de(3,Oe,n===0,n===s-1))("color",t)("activeColor",a.color())}}function mt(o,i){if(o&1&&b(0,gt,1,7,"color-preset-sublist",1)(1,ft,1,6,"color-preset",2),o&2){let e=i.$implicit,t=g(2);w(t.isList(e)?0:1)}}function Ct(o,i){if(o&1&&(p(0,"div",0),pe(1,mt,2,1,null,null,he),h()),o&2){let e=i.$implicit,t=i.$index,n=i.$count;C("ngClass",de(1,Oe,t===0,t===n-1)),d(),ue(e)}}var bt=[[["","before",""]],"*"],wt=["[before]","*"];function vt(o,i){if(o&1){let e=V();p(0,"alpha-component",0),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value)}}function yt(o,i){if(o&1){let e=V();p(0,"rgba-input-component",12),j(1,"async"),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();C("alpha",te(1,2,e.control().alphaChannelVisibilityChanges)),R("color",e.control().value)}}function xt(o,i){if(o&1){let e=V();p(0,"hsla-input-component",12),j(1,"async"),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();C("alpha",te(1,2,e.control().alphaChannelVisibilityChanges)),R("color",e.control().value)}}function At(o,i){if(o&1){let e=V();p(0,"hex-input-component",13),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value)}}function Pt(o,i){if(o&1){let e=V();p(0,"color-presets-component",14),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value),C("colorPresets",e.control().presets)}}var ee=class{},ie=class extends ee{constructor(i,e,t,n){super(),this.cyan=i,this.magenta=e,this.yellow=t,this.black=n}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(i){return this===i?!0:this.cyan===i.cyan&&this.magenta===i.magenta&&this.yellow===i.yellow&&this.black===i.black}},z=class extends ee{constructor(i,e,t,n){super(),this.hue=i,this.saturation=e,this.lightness=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.hue===i.hue&&this.saturation===i.saturation&&this.lightness===i.lightness&&this.alpha===i.alpha}},Y=class extends ee{constructor(i,e,t,n){super(),this.hue=i,this.saturation=e,this.value=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.hue===i.hue&&this.saturation===i.saturation&&this.value===i.value&&this.alpha===i.alpha}},r=class extends ee{constructor(i,e,t,n){super(),this.red=i,this.green=e,this.blue=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.red===i.red&&this.green===i.green&&this.blue===i.blue&&this.alpha===i.alpha}},Ve=class o{static{this.transparent=new r(0,0,0,0)}static{this.aliceblue=new r(240,248,255,1)}static{this.antiquewhite=new r(250,235,215,1)}static{this.aqua=new r(0,255,255,1)}static{this.aquamarine=new r(127,255,212,1)}static{this.azure=new r(240,255,255,1)}static{this.beige=new r(245,245,220,1)}static{this.bisque=new r(255,228,196,1)}static{this.black=new r(0,0,0,1)}static{this.blanchedalmond=new r(255,235,205,1)}static{this.blue=new r(0,0,255,1)}static{this.blueviolet=new r(138,43,226,1)}static{this.brown=new r(165,42,42,1)}static{this.burlywood=new r(222,184,135,1)}static{this.cadetblue=new r(95,158,160,1)}static{this.chartreuse=new r(127,255,0,1)}static{this.chocolate=new r(210,105,30,1)}static{this.coral=new r(255,127,80,1)}static{this.cornflowerblue=new r(100,149,237,1)}static{this.cornsilk=new r(255,248,220,1)}static{this.crimson=new r(220,20,60,1)}static{this.cyan=new r(0,255,255,1)}static{this.darkblue=new r(0,0,139,1)}static{this.darkcyan=new r(0,139,139,1)}static{this.darkgoldenrod=new r(184,134,11,1)}static{this.darkgray=new r(169,169,169,1)}static{this.darkgreen=new r(0,100,0,1)}static{this.darkgrey=o.darkgray}static{this.darkkhaki=new r(189,183,107,1)}static{this.darkmagenta=new r(139,0,139,1)}static{this.darkolivegreen=new r(85,107,47,1)}static{this.darkorange=new r(255,140,0,1)}static{this.darkorchid=new r(153,50,204,1)}static{this.darkred=new r(139,0,0,1)}static{this.darksalmon=new r(233,150,122,1)}static{this.darkseagreen=new r(143,188,143,1)}static{this.darkslateblue=new r(72,61,139,1)}static{this.darkslategray=new r(47,79,79,1)}static{this.darkslategrey=o.darkslategray}static{this.darkturquoise=new r(0,206,209,1)}static{this.darkviolet=new r(148,0,211,1)}static{this.deeppink=new r(255,20,147,1)}static{this.deepskyblue=new r(0,191,255,1)}static{this.dimgray=new r(105,105,105,1)}static{this.dimgrey=o.dimgray}static{this.dodgerblue=new r(30,144,255,1)}static{this.firebrick=new r(178,34,34,1)}static{this.floralwhite=new r(255,250,240,1)}static{this.forestgreen=new r(34,139,34,1)}static{this.fuchsia=new r(255,0,255,1)}static{this.gainsboro=new r(220,220,220,1)}static{this.ghostwhite=new r(248,248,255,1)}static{this.gold=new r(255,215,0,1)}static{this.goldenrod=new r(218,165,32,1)}static{this.gray=new r(128,128,128,1)}static{this.grey=o.gray}static{this.green=new r(0,128,0,1)}static{this.greenyellow=new r(173,255,47,1)}static{this.honeydew=new r(240,255,240,1)}static{this.hotpink=new r(255,105,180,1)}static{this.indianred=new r(205,92,92,1)}static{this.indigo=new r(75,0,130,1)}static{this.ivory=new r(255,255,240,1)}static{this.khaki=new r(240,230,140,1)}static{this.lavender=new r(230,230,250,1)}static{this.lavenderblush=new r(255,240,245,1)}static{this.lawngreen=new r(124,252,0,1)}static{this.lemonchiffon=new r(255,250,205,1)}static{this.lightblue=new r(173,216,230,1)}static{this.lightcoral=new r(240,128,128,1)}static{this.lightcyan=new r(224,255,255,1)}static{this.lightgoldenrodyellow=new r(250,250,210,1)}static{this.lightgray=new r(211,211,211,1)}static{this.lightgreen=new r(144,238,144,1)}static{this.lightgrey=o.lightgray}static{this.lightpink=new r(255,182,193,1)}static{this.lightsalmon=new r(255,160,122,1)}static{this.lightseagreen=new r(32,178,170,1)}static{this.lightskyblue=new r(135,206,250,1)}static{this.lightslategray=new r(119,136,153,1)}static{this.lightslategrey=o.lightslategray}static{this.lightsteelblue=new r(176,196,222,1)}static{this.lightyellow=new r(255,255,224,1)}static{this.lime=new r(0,255,0,1)}static{this.limegreen=new r(50,205,50,1)}static{this.linen=new r(250,240,230,1)}static{this.magenta=new r(255,0,255,1)}static{this.maroon=new r(128,0,0,1)}static{this.mediumaquamarine=new r(102,205,170,1)}static{this.mediumblue=new r(0,0,205,1)}static{this.mediumorchid=new r(186,85,211,1)}static{this.mediumpurple=new r(147,112,219,1)}static{this.mediumseagreen=new r(60,179,113,1)}static{this.mediumslateblue=new r(123,104,238,1)}static{this.mediumspringgreen=new r(0,250,154,1)}static{this.mediumturquoise=new r(72,209,204,1)}static{this.mediumvioletred=new r(199,21,133,1)}static{this.midnightblue=new r(25,25,112,1)}static{this.mintcream=new r(245,255,250,1)}static{this.mistyrose=new r(255,228,225,1)}static{this.moccasin=new r(255,228,181,1)}static{this.navajowhite=new r(255,222,173,1)}static{this.navy=new r(0,0,128,1)}static{this.oldlace=new r(253,245,230,1)}static{this.olive=new r(128,128,0,1)}static{this.olivedrab=new r(107,142,35,1)}static{this.orange=new r(255,165,0,1)}static{this.orangered=new r(255,69,0,1)}static{this.orchid=new r(218,112,214,1)}static{this.palegoldenrod=new r(238,232,170,1)}static{this.palegreen=new r(152,251,152,1)}static{this.paleturquoise=new r(175,238,238,1)}static{this.palevioletred=new r(219,112,147,1)}static{this.papayawhip=new r(255,239,213,1)}static{this.peachpuff=new r(255,218,185,1)}static{this.peru=new r(205,133,63,1)}static{this.pink=new r(255,192,203,1)}static{this.plum=new r(221,160,221,1)}static{this.powderblue=new r(176,224,230,1)}static{this.purple=new r(128,0,128,1)}static{this.red=new r(255,0,0,1)}static{this.rosybrown=new r(188,143,143,1)}static{this.royalblue=new r(65,105,225,1)}static{this.saddlebrown=new r(139,69,19,1)}static{this.salmon=new r(250,128,114,1)}static{this.sandybrown=new r(244,164,96,1)}static{this.seagreen=new r(46,139,87,1)}static{this.seashell=new r(255,245,238,1)}static{this.sienna=new r(160,82,45,1)}static{this.silver=new r(192,192,192,1)}static{this.skyblue=new r(135,206,235,1)}static{this.slateblue=new r(106,90,205,1)}static{this.slategray=new r(112,128,144,1)}static{this.slategrey=o.slategray}static{this.snow=new r(255,250,250,1)}static{this.springgreen=new r(0,255,127,1)}static{this.steelblue=new r(70,130,180,1)}static{this.tan=new r(210,180,140,1)}static{this.teal=new r(0,128,128,1)}static{this.thistle=new r(216,191,216,1)}static{this.tomato=new r(255,99,71,1)}static{this.turquoise=new r(64,224,208,1)}static{this.violet=new r(238,130,238,1)}static{this.wheat=new r(245,222,179,1)}static{this.white=new r(255,255,255,1)}static{this.whitesmoke=new r(245,245,245,1)}static{this.yellow=new r(255,255,0,1)}static{this.yellowgreen=new r(154,205,50,1)}},x=class o{constructor(i){this.hsva=new Y(0,1,1,1),i&&this.stringToColor(i)}static from(i){return typeof i=="string"?new o(i):i instanceof o?i.clone():i instanceof r?new o().setRgba(i.red,i.green,i.blue,i.alpha):i instanceof Y?new o().setHsva(i.hue,i.saturation,i.value,i.alpha):i instanceof z?new o().setHsla(i.hue,i.saturation,i.lightness,i.alpha):null}clone(){return o.from(this.getRgba())}setFromString(i){return this.stringToColor(i)}setHsva(i=null,e=100,t=100,n=1){return i!=null&&(this.hsva.hue=i),e!=null&&(this.hsva.saturation=e),t!=null&&(this.hsva.value=t),n!=null&&(n=n>1?1:n<0?0:n,this.hsva.alpha=n),this}setRgba(i=null,e=null,t=null,n=1){return n!=null&&(n=n>1?1:n<0?0:n),this.hsva=this.rgbaToHsva(new r(i,e,t,n)),this}setHsla(i,e,t,n=1){n!=null&&(n=n>1?1:n<0?0:n);let s=new z(i,e,t,n);return this.hsva=this.hslaToHsva(s),this}toHexString(i=!1){let e=this.getRgba(),t="#"+(1<<24|e.getRed()<<16|e.getGreen()<<8|e.getBlue()).toString(16).substring(1);return i&&(t+=(256|Math.round(e.alpha*255)).toString(16).substring(1)),t.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 Y(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(i){return this.hsva.equal(i.getHsva())}hsvaToHsla(i){let e=i.hue,t=i.saturation/100,n=i.value/100,s=(2-t)*i.value/2,a=t*n/(s<=1?s:2-s)||0;return new z(e,s*100,a*100,i.alpha)}hslaToHsva(i){let e=i.hue,t=i.lightness/100*2,n=i.saturation/100*(t<=1?t:2-t),s=(t+n)/2,a=2*n/(t+n)||0;return new Y(e,a,s,i.alpha)}rgbaToHsva(i){let e=i.red/255,t=i.green/255,n=i.blue/255,s=i.alpha,a=Math.max(e,t,n),c=Math.min(e,t,n),l=a-c,u=0,f=a===0?0:l/a,A=a;if(a!==c){switch(a){case e:u=(t-n)/l+(t.5?A/(2-a-c):A/(a+c),a){case e:l=(t-n)/A+(t1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*(2/3-t)*6:i}cmykToRgba(i){let e=i.black/100,t=i.cyan/100,n=i.magenta/100,s=i.yellow/100,a=Math.min(1,(1-t)*(1-e)),c=Math.min(1,(1-n)*(1-e)),l=Math.min(1,(1-s)*(1-e));return a=a*255,c=c*255,l=l*255,new r(a,c,l,1)}rgbaToCmyk(i){let e=i.red/255,t=i.green/255,n=i.blue/255,s=1-e,a=1-t,c=1-n,l=Math.min(s,a,c);return l===1?new ie(0,0,0,100):(s=(s-l)/(1-l),a=(a-l)/(1-l),c=(c-l)/(1-l),l=l*100,s=s*100,a=a*100,c=c*100,new ie(s,a,c,l))}roundNumber(i){return Math.round(i*100)/100}stringToColor(i){let e=i.replace(/ /g,"").toLowerCase(),t=Ve[e]||null;if(e[0]==="#"){let a=e.substr(1),c=a.length,l=1,u=[];if(c===3)u=a.split("").map(f=>f+f);else if(c===6)u=a.match(/.{2}/g);else if(c===8){let f=a.substr(-2);a=a.substr(0,c-2),l=this.roundNumber(parseInt(f||"FF",16)/255),u=a.match(/.{2}/g)}u.length===3&&(t=new r(parseInt(u[0],16),parseInt(u[1],16),parseInt(u[2],16),l))}let n=e.indexOf("("),s=e.indexOf(")");if(n!==-1&&s+1===e.length){let a=e.substr(0,n),c=e.substr(n+1,s-(n+1)).split(","),l=1;switch(a){case"rgba":l=parseFloat(c.pop());case"rgb":t=new r(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),l);break;case"hsla":l=parseFloat(c.pop());case"hsl":let u=new z(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),l);t=this.hslaToRgba(u);break;case"cmyk":let f=new ie(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10));t=this.cmykToRgba(f);break}}return t&&(this.hsva=this.rgbaToHsva(t)),this}},Se=(()=>{class o{constructor(){this.subscriptions=[],this.window={pageXOffset:0,pageYOffset:0},this.mouseup=new se,this.document=ve(fe),this.elementRef=ve(H),this.window=document.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame(),this.addEventListeners()}addEventListeners(){this.subscriptions.push(D(k(this.elementRef.nativeElement,"touchstart",{passive:!0,capture:!0}),k(this.elementRef.nativeElement,"mousedown",{capture:!0})).subscribe(e=>this.onEventChange(e)))}onEventChange(e){this.calculate(e),D(k(this.document,"mouseup",{capture:!0}),k(this.document,"touchend",{capture:!0})).pipe(ae(this.mouseup)).subscribe(()=>this.mouseup.next()),D(k(this.document,"mousemove",{capture:!0}),k(this.document,"touchmove",{passive:!0,capture:!0})).pipe(ae(this.mouseup)).subscribe(t=>this.calculate(t))}calculateCoordinates(e){let{width:t,height:n,top:s,left:a}=this.elementRef.nativeElement.getBoundingClientRect(),c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=Math.max(0,Math.min(c-(a+this.window.pageXOffset),t)),f=Math.max(0,Math.min(l-(s+this.window.pageYOffset),n));this.movePointer({x:u,y:f,height:n,width:t})}calculate(e){if(e.stopPropagation(),e.type.includes("touch")||e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame.call(this.window,()=>this.calculateCoordinates(e))}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(e=>e.unsubscribe()),this.subscriptions.length=0}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275dir=ye({type:o})}}return o})(),_t=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=T.required(),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.saturation,t.value),this.updateBackgroundColor()})}movePointer({x:e,y:t,height:n,width:s}){let a=e*100/s,c=-(t*100/n)+100;a>10&&(c=c<1?1:c),this.changePointerPosition(a,c);let l=this.color().getHsva(),u=new x().setHsva(l.hue,a,c,l.alpha);this.color.set(u)}updateBackgroundColor(){let e=null;if(this.color()){let t=this.color().getHsva();e=new x().setHsva(t.hue,100,100).toRgbString()}this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",e)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["saturation-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"]},outputs:{color:"colorChange"},standalone:!0,features:[ce,S],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(t,n){t&1&&K(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})}}return o})(),Mt=new Ie("COLOR_PICKER_CONFIG",{providedIn:"root",factory:()=>new Be}),Be=(()=>{class o{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=Re({token:o,factory:function(t){let n=null;return t?n=new(t||o):n=We(Mt),n},providedIn:"root"})}}return o})(),Vt=(()=>{class o{constructor(e,t,n,s){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=s,this.color=m.required(),this.colorType=m("rgba"),this.subscriptions=[],this.renderTitle(),U(()=>{this.renderBackgroundColor()})}ngOnInit(){this.subscriptions.push(k(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 e=this.renderer.createElement("input");switch(this.renderer.setStyle(e,"position","absolute"),this.renderer.setStyle(e,"top","-100%"),this.renderer.setStyle(e,"left","-100%"),this.colorType()){case"hsla":e.value=this.color().toHslaString();break;case"hex":e.value=this.color().toHexString(this.color().getRgba().alpha<1);break;default:e.value=this.color().toRgbaString()}this.renderer.appendChild(this.elementRef.nativeElement,e),e.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,e)}static{this.\u0275fac=function(t){return new(t||o)(P(Be),P(Q),P(H),P(fe))}}static{this.\u0275cmp=O({type:o,selectors:[["indicator-component"]],viewQuery:function(t,n){if(t&1&&L(et,5),t&2){let s;G(s=Z())&&(n.backgroundColorEl=s.first)}},inputs:{color:[1,"color"],colorType:[1,"colorType"]},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",null,0),He(),p(2,"svg",1),K(3,"path",2)(4,"path",3),h()())},styles:[E,'@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})}}return o})(),kt=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=T.required(),this.isVertical=m(!1,{alias:"vertical",transform:F}),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.hue)})}movePointer({x:e,y:t,height:n,width:s}){let a=this.isVertical()?t/n*359:e/s*359;this.changePointerPosition(a);let c=this.color().getHsva(),l=new x().setHsva(a,c.saturation,c.value,c.alpha);this.color.set(l)}changePointerPosition(e){let t=e/360*100,n=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,n,`${t}%`)}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["hue-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{color:"colorChange"},standalone:!0,features:[ce,S],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(t,n){t&1&&K(0,"div",1,0)},styles:[E,"[_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})}}return o})(),Ot=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=m.required(),this.colorChange=N(),this.isVertical=m(!1,{alias:"vertical",transform:F}),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.alpha)})}movePointer({x:e,y:t,height:n,width:s}){let a=this.isVertical()?t/n:e/s;this.changePointerPosition(a);let c=this.color().getHsva(),l=new x().setHsva(c.hue,c.saturation,c.value,a);this.colorChange.emit(l)}changePointerPosition(e){let t=e*100,n=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,n,`${t}%`)}get gradient(){let e=this.color().getRgba();return`linear-gradient(to ${this.isVertical()?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["alpha-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{colorChange:"colorChange"},standalone:!0,features:[ce,S],decls:3,vars:2,consts:[["pointer",""],[1,"pointer"],[1,"gradient-color"]],template:function(t,n){t&1&&K(0,"div",1,0)(2,"div",2),t&2&&(d(2),X("background",n.gradient))},styles:[E,"[_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})}}return o})(),Xe=(()=>{class o{constructor(){this.min=m(0,{transform:ge}),this.max=m(255,{transform:ge}),this.inputChange=N()}inputChanges(e){let n=(e.target||e.srcElement).value,s=parseFloat(n);!isNaN(s)&&s>=this.min()&&s<=this.max()&&this.inputChange.emit(s)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275dir=ye({type:o,selectors:[["","inputChange",""]],hostBindings:function(t,n){t&1&&v("input",function(a){return n.inputChanges(a)})},inputs:{min:[1,"min"],max:[1,"max"]},outputs:{inputChange:"inputChange"},standalone:!0})}}return o})(),St=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.isAlphaVisible=m(!0,{alias:"alpha",transform:F})}get value(){return this.color()?.getRgba()}onInputChange(e,t){let n=this.value,s=t==="R"?e:n.red,a=t==="G"?e:n.green,c=t==="B"?e:n.blue,l=t==="A"?e:n.alpha,u=new x().setRgba(s,a,c,l);this.color.set(u)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["rgba-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",0)(1,"input",1),v("inputChange",function(a){return n.onInputChange(a,"R")}),h(),b(2,tt,2,0,"span"),h(),p(3,"div",0)(4,"input",1),v("inputChange",function(a){return n.onInputChange(a,"G")}),h(),b(5,nt,2,0,"span"),h(),p(6,"div",0)(7,"input",1),v("inputChange",function(a){return n.onInputChange(a,"B")}),h(),b(8,ot,2,0,"span"),h(),b(9,rt,3,2,"div",0)),t&2&&(d(),C("value",n.value==null?null:n.value.getRed().toString()),d(),w(n.labelVisible()?2:-1),d(2),C("value",n.value==null?null:n.value.getGreen().toString()),d(),w(n.labelVisible()?5:-1),d(2),C("value",n.value==null?null:n.value.getBlue().toString()),d(),w(n.labelVisible()?8:-1),d(),w(n.isAlphaVisible()?9:-1))},dependencies:[Xe],styles:[E,"[_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})}}return o})(),Bt=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.isAlphaVisible=m(!0,{alias:"alpha",transform:F})}get value(){return this.color()?.getHsla()}onInputChange(e,t){let n=this.value,s=t==="H"?e:n.hue,a=t==="S"?e:n.saturation,c=t==="L"?e:n.lightness,l=t==="A"?e:n.alpha,u=new x().setHsla(s,a,c,l);this.color.set(u)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["hsla-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",0)(1,"input",1),v("inputChange",function(a){return n.onInputChange(a,"H")}),h(),b(2,st,2,0,"span"),h(),p(3,"div",0)(4,"input",2),v("inputChange",function(a){return n.onInputChange(a,"S")}),h(),b(5,at,2,0,"span"),h(),p(6,"div",0)(7,"input",2),v("inputChange",function(a){return n.onInputChange(a,"L")}),h(),b(8,ct,2,0,"span"),h(),b(9,ht,3,2,"div",0)),t&2&&(d(),C("value",n.value==null?null:n.value.getHue().toString()),d(),w(n.labelVisible()?2:-1),d(2),C("value",(n.value==null?null:n.value.getSaturation())+"%"),d(),w(n.labelVisible()?5:-1),d(2),C("value",(n.value==null?null:n.value.getLightness())+"%"),d(),w(n.labelVisible()?8:-1),d(),w(n.isAlphaVisible()?9:-1))},dependencies:[Xe],styles:[E,Qe],changeDetection:0})}}return o})(),qt=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.prefixValue=m("",{alias:"prefix"})}get value(){return this.prefixValue()+(this.color()?this.color().toHexString(this.color().getRgba().alpha<1).replace("#",""):"")}onInputChange(e,t){let n=t.toLowerCase().replace("#","");if(((e.keyCode===13||e.key.toLowerCase()==="enter")&&n.length===3||n.length===6||n.length===8)&&parseInt(n,16).toString(16).padStart(n.length,"0")===n&&this.value!==n){let c=new x(`#${n}`);this.color.set(c)}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["hex-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],prefixValue:[1,"prefix","prefixValue"]},outputs:{color:"colorChange"},standalone:!0,features:[S],decls:4,vars:2,consts:[["elRef",""],[1,"column"],["type","text",3,"keyup","value"]],template:function(t,n){if(t&1){let s=V();p(0,"div",1)(1,"input",2,0),v("keyup",function(c){_(s);let l=je(2);return M(n.onInputChange(c,l.value))}),h(),b(3,pt,2,0,"span"),h()}t&2&&(d(),C("value",n.value),d(2),w(n.labelVisible()?3:-1))},styles:[E,Qe],changeDetection:0})}}return o})(),Et=Me("opacityAnimation",[Ne("true",q({opacity:1})),$("void => *",[q({opacity:0}),J(".08s ease-in")])]),Ft=Me("listAnimation",[$("* => up",[ne(":enter",[q({opacity:0,height:0}),oe(-10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => right",[ne(":enter",[q({opacity:0,height:0}),oe(-10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => down",[ne(":enter",[q({opacity:0,height:0}),oe(10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => left",[ne(":enter",[q({opacity:0,height:0}),oe(10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})])]),Ue=(()=>{class o{constructor(e,t,n){this.pickerConfig=e,this.elementRef=t,this.renderer=n,this.activeColor=m.required(),this.color=m.required(),this.showDepthText=m(!1,{alias:"show-depth-title",transform:F}),this.selectionChange=N(),this.longPress=N(),this.mouseup=new se,this.subscriptions=[],this.addEventListeners(),U(()=>{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 e=this.color()?this.color().toHexString():"";return this.showDepthText()?(this.pickerConfig?.presetsTitle||"").replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}addEventListeners(){this.subscriptions.push(D(k(this.elementRef.nativeElement,"mouseup"),k(this.elementRef.nativeElement,"touchend")).subscribe(()=>this.onTouchEnd())),this.subscriptions.push(D(k(this.elementRef.nativeElement,"mousedown"),k(this.elementRef.nativeElement,"touchstart",{passive:!0})).subscribe(e=>this.onTouch(e)))}removeEventListeners(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}onTouch(e){qe(e).pipe(Ee(t=>t.timeStamp||new Date().getTime()),Fe(350),ae(this.mouseup)).subscribe(()=>this.longPress.emit(!0)),this.selectionChange.emit(this.color())}onTouchEnd(){this.mouseup.next()}static{this.\u0275fac=function(t){return new(t||o)(P(Be),P(H),P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["color-preset"]],hostVars:2,hostBindings:function(t,n){t&2&&le("selected",n.className)},inputs:{activeColor:[1,"activeColor"],color:[1,"color"],showDepthText:[1,"show-depth-title","showDepthText"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},standalone:!0,features:[S],decls:0,vars:0,template:function(t,n){},styles:[E,"[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0})}}return o})(),Tt=(()=>{class o{transform(e,t=!0){return t?e.slice().reverse():e}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275pipe=xe({name:"reverse",type:o,pure:!0,standalone:!0})}}return o})(),Rt=(()=>{class o{constructor(e,t){this.document=e,this.cdr=t,this.list=m.required(),this.activeColor=m.required(),this.direction=m("up"),this.selectionChange=N(),this.showChildren=!1,this.subscriptions=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}get className(){return`direction-${this.direction()}`}onSelectionChange(e){this.selectionChange.emit(e)}onLongPress(){this.showChildren=!0,this.listenDocumentEvents()}removeListeners(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}listenDocumentEvents(){this.subscriptions.push(D(k(this.document,"mousedown"),k(this.document,"touchstart",{passive:!0})).subscribe(()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}static{this.\u0275fac=function(t){return new(t||o)(P(fe),P(_e))}}static{this.\u0275cmp=O({type:o,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(t,n){t&2&&Ge("className",n.className)},inputs:{list:[1,"list"],activeColor:[1,"activeColor"],direction:[1,"direction"]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"color-preset",0),v("longPress",function(){return n.onLongPress()})("selectionChange",function(a){return n.onSelectionChange(a)}),h(),K(1,"div",1)(2,"div",1),b(3,dt,4,5,"div",2)),t&2&&(C("show-depth-title",n.list().length>1)("color",n.list()[0])("activeColor",n.activeColor()),d(),X("background-color",n.list()[0].toRgbaString()),d(),X("background-color",n.list()[0].toRgbaString()),d(),w(n.showChildren?3:-1))},dependencies:[Ue,Tt],styles:[E,"[_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:[Et,Ft]},changeDetection:0})}}return o})(),It=(()=>{class o{transform(e,t){return e.reduce((n,s,a)=>a%t?n:n.concat([e.slice(a,a+t)]),[])}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275pipe=xe({name:"chunks",type:o,pure:!0,standalone:!0})}}return o})(),Wt=(()=>{class o{constructor(){this.columns=m(8,{transform:ge}),this.colorPresets=m.required(),this.color=T.required(),this.direction=m("up")}onSelectionChange(e){let t=e.getRgba(),n=new x().setRgba(t.red,t.green,t.blue,t.alpha);this.color.set(n)}isList(e){return Array.isArray(e)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["color-presets-component"]],inputs:{columns:[1,"columns"],colorPresets:[1,"colorPresets"],color:[1,"color"],direction:[1,"direction"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(pe(0,Ct,3,4,"div",0,he),j(2,"chunks")),t&2&&ue(Pe(2,0,n.colorPresets(),n.columns()))},dependencies:[Ue,Rt,ze,It],styles:[E,"[_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})}}return o})(),y=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}(y||{}),re=class{constructor(){this.modelValue=null,this.initValue=null,this.valueChanged=new se,this.presetsVisibilityChanges=new we(!0),this.initType=null,this.alphaChannelVisibilityChanges=new we(!0),this.valueChanges=this.valueChanged.asObservable().pipe(Te((e,t)=>e.toRgbaString()==t.toRgbaString())),this.colorPresets=[];let i=x.from(new r(255,0,0,1));this.setValue(i)}setValueFrom(i){let e=x.from(i);return this.initValue||(this.initValue=x.from(i)),typeof i=="string"&&!this.initType&&(this.initType=this.finOutInputType(i)),this.setValue(e),this}get value(){return this.modelValue}set value(i){this.setValue(i)}reset(){let i=this.initValue?this.initValue.clone():x.from(new r(255,0,0,1));return this.setValue(i),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}getColorType(i){return this.finOutInputType(i)}setColorPresets(i){return this.colorPresets=this.setPresets(i),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(i){return this.modelValue=i,this.valueChanged.next(i),this}finOutInputType(i){let e=i.replace(/ /g,"").toLowerCase();if(e[0]==="#")return e.length>7?y.hexa:y.hex;let t=e.indexOf("(");switch(e.substr(0,t)){case y.rgba:return y.rgba;case y.rgb:return y.rgb;case y.hsla:return y.hsla;case y.hsl:return y.hsl;case y.cmyk:return y.cmyk}return null}setPresets(i){let e=[];for(let t of i)Array.isArray(t)?e.push(this.setPresets(t)):e.push(new x(t));return e}};function me(o,i){switch(i){case y.hex:return o.toHexString();case y.hexa:return o.toHexString(!0);case y.rgb:return o.toRgbString();case y.rgba:return o.toRgbaString();case y.hsl:return o.toHslString();case y.hsla:return o.toHslaString();default:return o.toRgbaString()}}function Dt(o,i){return o instanceof x&&i instanceof x?o.equal(i):o===i}var Je=(()=>{class o{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.color=T(),this.control=m(new re),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(e=>{this.color.set(me(e,this.control().initType)),this.cdr.detectChanges()}))}ngOnChanges(e){let t=this.color(),n=this.control();t&&n&&!Dt(me(n.value,n.initType),t)&&n.setValueFrom(t)}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}static{this.\u0275fac=function(t){return new(t||o)(P(_e))}}static{this.\u0275cmp=O({type:o,selectors:[["chrome-picker"]],inputs:{color:[1,"color"],control:[1,"control"]},outputs:{color:"colorChange"},standalone:!0,features:[De,S],ngContentSelectors:wt,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(t,n){if(t&1&&(Ze(bt),Ae(0),p(1,"saturation-component",0),W("colorChange",function(a){return I(n.control().value,a)||(n.control().value=a),a}),h(),p(2,"div",1)(3,"div",2)(4,"div",3),K(5,"indicator-component",4),h(),p(6,"div",3)(7,"hue-component",0),W("colorChange",function(a){return I(n.control().value,a)||(n.control().value=a),a}),h(),b(8,vt,1,1,"alpha-component",5),j(9,"async"),h()(),p(10,"div",6)(11,"div",3),b(12,yt,2,4,"rgba-input-component",7)(13,xt,2,4,"hsla-input-component",7)(14,At,1,1,"hex-input-component",8),h(),p(15,"div",9)(16,"span",10),v("click",function(){return n.changePresentation()}),h()()()(),b(17,Pt,1,2,"color-presets-component",11),j(18,"async"),Ae(19,1)),t&2){let s;d(),R("color",n.control().value),d(4),C("colorType",n.presentations[n.selectedPresentation])("color",n.control().value),d(2),R("color",n.control().value),d(),w(te(9,7,n.control().alphaChannelVisibilityChanges)?8:-1),d(4),w((s=n.presentations[n.selectedPresentation])==="rgba"?12:s==="hsla"?13:s==="hex"?14:-1),d(5),w(te(18,9,n.control().presetsVisibilityChanges)?17:-1)}},dependencies:[_t,Vt,kt,Ot,St,Bt,qt,Wt,Ye],styles:[E,"[_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})}}return o})();var Ht=["pickerComponent"];function Kt(o,i){if(o&1){let e=V();p(0,"button",3),v("click",function(n){_(e);let s=g(2);return M(s.applyClick(n))}),B(1,"Apply"),h()}}function Lt(o,i){if(o&1){let e=V();p(0,"chrome-picker",1),v("colorChange",function(){_(e);let n=g();return M(n.onColorChanged())}),b(1,Kt,2,0,"button",2),h()}if(o&2){let e=g();le("top",e.isTop),C("control",e.colorControl),d(),w(e.isImmediate?-1:1)}}var wn=(()=>{class o{constructor(e){this.el=e,this.isImmediate=!1,this.colorChange=new Ke,this.colorControl=new re,this.isVisible=!1,this.isTop=!1,this.colorControl.hideAlphaChannel()}set color(e){this.colorControl.setValueFrom(e),this._color=this.colorControl.value}get background(){return this._color?this._color.toHexString():""}onWidowClick(e){e.composedPath().includes(this.el.nativeElement)||(this.isVisible=!1)}showColorPicker(e){if(!this.isVisible){let t=this.el.nativeElement.getBoundingClientRect();this.isTop=t.top+t.height+320>window.innerHeight&&t.top-320>0}this.isVisible=!0}applyClick(e){e.stopPropagation(),this._color=this.colorControl.value,this.triggerUpdate(),this.isVisible=!1}onColorChanged(){this.isImmediate&&this.triggerUpdate()}triggerUpdate(){this.colorChange.emit(me(this.colorControl.value,this.colorControl.initType))}static{this.\u0275fac=function(t){return new(t||o)(P(H))}}static{this.\u0275cmp=O({type:o,selectors:[["dsw-color-picker"]],viewQuery:function(t,n){if(t&1&&L(Ht,7),t&2){let s;G(s=Z())&&(n.pickerComponent=s.first)}},hostVars:2,hostBindings:function(t,n){t&1&&v("mousedown",function(a){return n.onWidowClick(a)},!1,Le)("click",function(a){return n.showColorPicker(a)}),t&2&&X("background-color",n.background)},inputs:{isImmediate:"isImmediate",color:"color"},outputs:{colorChange:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&b(0,Lt,2,4,"chrome-picker",0),t&2&&w(n.isVisible?0:-1)},dependencies:[Je],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})}}return o})();export{wn as a}; +import{c as Me,d as J,f as q,g as Ne,h as $,i as ne,j as oe}from"./chunk-GOV7BL6D.js";import{b as fe,c as ze,g as Ye}from"./chunk-ZHVSJD4N.js";import{A as D,Ca as N,Cb as w,Da as m,Ea as H,Eb as he,Fb as pe,Gb as ue,Hb as p,Ib as h,J as Fe,Jb as K,K as Te,Kc as _e,Nb as V,Ob as Ge,Pc as F,Qc as ge,Rb as v,S as ae,Sb as g,Tb as Ze,Tc as U,Ub as Ae,X as Re,Xb as L,Yb as G,Zb as Z,_ as Ie,_a as Le,aa as We,ab as d,ac as je,ba as ve,bb as P,bc as B,ec as R,f as se,fa as O,fb as Q,fc as I,g as we,gc as W,ha as ye,ia as xe,kb as T,lb as ce,lc as S,m as qe,nc as de,pa as De,qa as _,qc as j,r as Ee,ra as M,rb as b,rc as te,sa as He,sc as Pe,xb as C,y as k,yb as X,za as Ke,zb as le}from"./chunk-ZEAAPN4P.js";var ke=["pointer"],et=["backgroundColorEl"],E="[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}";function tt(o,i){o&1&&(p(0,"span"),B(1,"R"),h())}function nt(o,i){o&1&&(p(0,"span"),B(1,"G"),h())}function ot(o,i){o&1&&(p(0,"span"),B(1,"B"),h())}function it(o,i){o&1&&(p(0,"span"),B(1,"A"),h())}function rt(o,i){if(o&1){let e=V();p(0,"div",0)(1,"input",2),v("inputChange",function(n){_(e);let s=g();return M(s.onInputChange(n,"A"))}),h(),b(2,it,2,0,"span"),h()}if(o&2){let e=g();d(),C("value",e.value==null?null:e.value.getAlpha().toString()),d(),w(e.labelVisible()?2:-1)}}function st(o,i){o&1&&(p(0,"span"),B(1,"H"),h())}function at(o,i){o&1&&(p(0,"span"),B(1,"S"),h())}function ct(o,i){o&1&&(p(0,"span"),B(1,"L"),h())}function lt(o,i){o&1&&(p(0,"span"),B(1,"A"),h())}function ht(o,i){if(o&1){let e=V();p(0,"div",0)(1,"input",3),v("inputChange",function(n){_(e);let s=g();return M(s.onInputChange(n,"A"))}),h(),b(2,lt,2,0,"span"),h()}if(o&2){let e=g();d(),C("value",e.value==null?null:e.value.getAlpha().toString()),d(),w(e.labelVisible()?2:-1)}}var Qe="[_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 pt(o,i){o&1&&(p(0,"span"),B(1,"HEX"),h())}function ut(o,i){if(o&1){let e=V();p(0,"color-preset",4),v("selectionChange",function(n){_(e);let s=g(2);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=i.$implicit,t=g(2);C("color",e)("activeColor",t.activeColor())}}function dt(o,i){if(o&1&&(p(0,"div",2),pe(1,ut,1,2,"color-preset",3,he),j(3,"reverse"),h()),o&2){let e=g();C("@opacityAnimation",e.showChildren)("@listAnimation",e.direction),d(),ue(Pe(3,2,e.list(),e.direction()=="up"||e.direction()=="right"))}}var Oe=(o,i)=>({first:o,last:i});function gt(o,i){if(o&1){let e=V();p(0,"color-preset-sublist",3),v("selectionChange",function(n){_(e);let s=g(3);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=g(),t=e.$implicit,n=e.$index,s=e.$count,a=g(2);C("list",t)("direction",a.direction())("activeColor",a.color())("ngClass",de(4,Oe,n===0,n===s-1))}}function ft(o,i){if(o&1){let e=V();p(0,"color-preset",4),v("selectionChange",function(n){_(e);let s=g(3);return M(s.onSelectionChange(n))}),h()}if(o&2){let e=g(),t=e.$implicit,n=e.$index,s=e.$count,a=g(2);C("ngClass",de(3,Oe,n===0,n===s-1))("color",t)("activeColor",a.color())}}function mt(o,i){if(o&1&&b(0,gt,1,7,"color-preset-sublist",1)(1,ft,1,6,"color-preset",2),o&2){let e=i.$implicit,t=g(2);w(t.isList(e)?0:1)}}function Ct(o,i){if(o&1&&(p(0,"div",0),pe(1,mt,2,1,null,null,he),h()),o&2){let e=i.$implicit,t=i.$index,n=i.$count;C("ngClass",de(1,Oe,t===0,t===n-1)),d(),ue(e)}}var bt=[[["","before",""]],"*"],wt=["[before]","*"];function vt(o,i){if(o&1){let e=V();p(0,"alpha-component",0),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value)}}function yt(o,i){if(o&1){let e=V();p(0,"rgba-input-component",12),j(1,"async"),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();C("alpha",te(1,2,e.control().alphaChannelVisibilityChanges)),R("color",e.control().value)}}function xt(o,i){if(o&1){let e=V();p(0,"hsla-input-component",12),j(1,"async"),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();C("alpha",te(1,2,e.control().alphaChannelVisibilityChanges)),R("color",e.control().value)}}function At(o,i){if(o&1){let e=V();p(0,"hex-input-component",13),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value)}}function Pt(o,i){if(o&1){let e=V();p(0,"color-presets-component",14),W("colorChange",function(n){_(e);let s=g();return I(s.control().value,n)||(s.control().value=n),M(n)}),h()}if(o&2){let e=g();R("color",e.control().value),C("colorPresets",e.control().presets)}}var ee=class{},ie=class extends ee{constructor(i,e,t,n){super(),this.cyan=i,this.magenta=e,this.yellow=t,this.black=n}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(i){return this===i?!0:this.cyan===i.cyan&&this.magenta===i.magenta&&this.yellow===i.yellow&&this.black===i.black}},z=class extends ee{constructor(i,e,t,n){super(),this.hue=i,this.saturation=e,this.lightness=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.hue===i.hue&&this.saturation===i.saturation&&this.lightness===i.lightness&&this.alpha===i.alpha}},Y=class extends ee{constructor(i,e,t,n){super(),this.hue=i,this.saturation=e,this.value=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.hue===i.hue&&this.saturation===i.saturation&&this.value===i.value&&this.alpha===i.alpha}},r=class extends ee{constructor(i,e,t,n){super(),this.red=i,this.green=e,this.blue=t,this.alpha=n}toString(i=!0){return i?`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(i){return this===i?!0:this.red===i.red&&this.green===i.green&&this.blue===i.blue&&this.alpha===i.alpha}},Ve=class o{static{this.transparent=new r(0,0,0,0)}static{this.aliceblue=new r(240,248,255,1)}static{this.antiquewhite=new r(250,235,215,1)}static{this.aqua=new r(0,255,255,1)}static{this.aquamarine=new r(127,255,212,1)}static{this.azure=new r(240,255,255,1)}static{this.beige=new r(245,245,220,1)}static{this.bisque=new r(255,228,196,1)}static{this.black=new r(0,0,0,1)}static{this.blanchedalmond=new r(255,235,205,1)}static{this.blue=new r(0,0,255,1)}static{this.blueviolet=new r(138,43,226,1)}static{this.brown=new r(165,42,42,1)}static{this.burlywood=new r(222,184,135,1)}static{this.cadetblue=new r(95,158,160,1)}static{this.chartreuse=new r(127,255,0,1)}static{this.chocolate=new r(210,105,30,1)}static{this.coral=new r(255,127,80,1)}static{this.cornflowerblue=new r(100,149,237,1)}static{this.cornsilk=new r(255,248,220,1)}static{this.crimson=new r(220,20,60,1)}static{this.cyan=new r(0,255,255,1)}static{this.darkblue=new r(0,0,139,1)}static{this.darkcyan=new r(0,139,139,1)}static{this.darkgoldenrod=new r(184,134,11,1)}static{this.darkgray=new r(169,169,169,1)}static{this.darkgreen=new r(0,100,0,1)}static{this.darkgrey=o.darkgray}static{this.darkkhaki=new r(189,183,107,1)}static{this.darkmagenta=new r(139,0,139,1)}static{this.darkolivegreen=new r(85,107,47,1)}static{this.darkorange=new r(255,140,0,1)}static{this.darkorchid=new r(153,50,204,1)}static{this.darkred=new r(139,0,0,1)}static{this.darksalmon=new r(233,150,122,1)}static{this.darkseagreen=new r(143,188,143,1)}static{this.darkslateblue=new r(72,61,139,1)}static{this.darkslategray=new r(47,79,79,1)}static{this.darkslategrey=o.darkslategray}static{this.darkturquoise=new r(0,206,209,1)}static{this.darkviolet=new r(148,0,211,1)}static{this.deeppink=new r(255,20,147,1)}static{this.deepskyblue=new r(0,191,255,1)}static{this.dimgray=new r(105,105,105,1)}static{this.dimgrey=o.dimgray}static{this.dodgerblue=new r(30,144,255,1)}static{this.firebrick=new r(178,34,34,1)}static{this.floralwhite=new r(255,250,240,1)}static{this.forestgreen=new r(34,139,34,1)}static{this.fuchsia=new r(255,0,255,1)}static{this.gainsboro=new r(220,220,220,1)}static{this.ghostwhite=new r(248,248,255,1)}static{this.gold=new r(255,215,0,1)}static{this.goldenrod=new r(218,165,32,1)}static{this.gray=new r(128,128,128,1)}static{this.grey=o.gray}static{this.green=new r(0,128,0,1)}static{this.greenyellow=new r(173,255,47,1)}static{this.honeydew=new r(240,255,240,1)}static{this.hotpink=new r(255,105,180,1)}static{this.indianred=new r(205,92,92,1)}static{this.indigo=new r(75,0,130,1)}static{this.ivory=new r(255,255,240,1)}static{this.khaki=new r(240,230,140,1)}static{this.lavender=new r(230,230,250,1)}static{this.lavenderblush=new r(255,240,245,1)}static{this.lawngreen=new r(124,252,0,1)}static{this.lemonchiffon=new r(255,250,205,1)}static{this.lightblue=new r(173,216,230,1)}static{this.lightcoral=new r(240,128,128,1)}static{this.lightcyan=new r(224,255,255,1)}static{this.lightgoldenrodyellow=new r(250,250,210,1)}static{this.lightgray=new r(211,211,211,1)}static{this.lightgreen=new r(144,238,144,1)}static{this.lightgrey=o.lightgray}static{this.lightpink=new r(255,182,193,1)}static{this.lightsalmon=new r(255,160,122,1)}static{this.lightseagreen=new r(32,178,170,1)}static{this.lightskyblue=new r(135,206,250,1)}static{this.lightslategray=new r(119,136,153,1)}static{this.lightslategrey=o.lightslategray}static{this.lightsteelblue=new r(176,196,222,1)}static{this.lightyellow=new r(255,255,224,1)}static{this.lime=new r(0,255,0,1)}static{this.limegreen=new r(50,205,50,1)}static{this.linen=new r(250,240,230,1)}static{this.magenta=new r(255,0,255,1)}static{this.maroon=new r(128,0,0,1)}static{this.mediumaquamarine=new r(102,205,170,1)}static{this.mediumblue=new r(0,0,205,1)}static{this.mediumorchid=new r(186,85,211,1)}static{this.mediumpurple=new r(147,112,219,1)}static{this.mediumseagreen=new r(60,179,113,1)}static{this.mediumslateblue=new r(123,104,238,1)}static{this.mediumspringgreen=new r(0,250,154,1)}static{this.mediumturquoise=new r(72,209,204,1)}static{this.mediumvioletred=new r(199,21,133,1)}static{this.midnightblue=new r(25,25,112,1)}static{this.mintcream=new r(245,255,250,1)}static{this.mistyrose=new r(255,228,225,1)}static{this.moccasin=new r(255,228,181,1)}static{this.navajowhite=new r(255,222,173,1)}static{this.navy=new r(0,0,128,1)}static{this.oldlace=new r(253,245,230,1)}static{this.olive=new r(128,128,0,1)}static{this.olivedrab=new r(107,142,35,1)}static{this.orange=new r(255,165,0,1)}static{this.orangered=new r(255,69,0,1)}static{this.orchid=new r(218,112,214,1)}static{this.palegoldenrod=new r(238,232,170,1)}static{this.palegreen=new r(152,251,152,1)}static{this.paleturquoise=new r(175,238,238,1)}static{this.palevioletred=new r(219,112,147,1)}static{this.papayawhip=new r(255,239,213,1)}static{this.peachpuff=new r(255,218,185,1)}static{this.peru=new r(205,133,63,1)}static{this.pink=new r(255,192,203,1)}static{this.plum=new r(221,160,221,1)}static{this.powderblue=new r(176,224,230,1)}static{this.purple=new r(128,0,128,1)}static{this.red=new r(255,0,0,1)}static{this.rosybrown=new r(188,143,143,1)}static{this.royalblue=new r(65,105,225,1)}static{this.saddlebrown=new r(139,69,19,1)}static{this.salmon=new r(250,128,114,1)}static{this.sandybrown=new r(244,164,96,1)}static{this.seagreen=new r(46,139,87,1)}static{this.seashell=new r(255,245,238,1)}static{this.sienna=new r(160,82,45,1)}static{this.silver=new r(192,192,192,1)}static{this.skyblue=new r(135,206,235,1)}static{this.slateblue=new r(106,90,205,1)}static{this.slategray=new r(112,128,144,1)}static{this.slategrey=o.slategray}static{this.snow=new r(255,250,250,1)}static{this.springgreen=new r(0,255,127,1)}static{this.steelblue=new r(70,130,180,1)}static{this.tan=new r(210,180,140,1)}static{this.teal=new r(0,128,128,1)}static{this.thistle=new r(216,191,216,1)}static{this.tomato=new r(255,99,71,1)}static{this.turquoise=new r(64,224,208,1)}static{this.violet=new r(238,130,238,1)}static{this.wheat=new r(245,222,179,1)}static{this.white=new r(255,255,255,1)}static{this.whitesmoke=new r(245,245,245,1)}static{this.yellow=new r(255,255,0,1)}static{this.yellowgreen=new r(154,205,50,1)}},x=class o{constructor(i){this.hsva=new Y(0,1,1,1),i&&this.stringToColor(i)}static from(i){return typeof i=="string"?new o(i):i instanceof o?i.clone():i instanceof r?new o().setRgba(i.red,i.green,i.blue,i.alpha):i instanceof Y?new o().setHsva(i.hue,i.saturation,i.value,i.alpha):i instanceof z?new o().setHsla(i.hue,i.saturation,i.lightness,i.alpha):null}clone(){return o.from(this.getRgba())}setFromString(i){return this.stringToColor(i)}setHsva(i=null,e=100,t=100,n=1){return i!=null&&(this.hsva.hue=i),e!=null&&(this.hsva.saturation=e),t!=null&&(this.hsva.value=t),n!=null&&(n=n>1?1:n<0?0:n,this.hsva.alpha=n),this}setRgba(i=null,e=null,t=null,n=1){return n!=null&&(n=n>1?1:n<0?0:n),this.hsva=this.rgbaToHsva(new r(i,e,t,n)),this}setHsla(i,e,t,n=1){n!=null&&(n=n>1?1:n<0?0:n);let s=new z(i,e,t,n);return this.hsva=this.hslaToHsva(s),this}toHexString(i=!1){let e=this.getRgba(),t="#"+(1<<24|e.getRed()<<16|e.getGreen()<<8|e.getBlue()).toString(16).substring(1);return i&&(t+=(256|Math.round(e.alpha*255)).toString(16).substring(1)),t.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 Y(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(i){return this.hsva.equal(i.getHsva())}hsvaToHsla(i){let e=i.hue,t=i.saturation/100,n=i.value/100,s=(2-t)*i.value/2,a=t*n/(s<=1?s:2-s)||0;return new z(e,s*100,a*100,i.alpha)}hslaToHsva(i){let e=i.hue,t=i.lightness/100*2,n=i.saturation/100*(t<=1?t:2-t),s=(t+n)/2,a=2*n/(t+n)||0;return new Y(e,a,s,i.alpha)}rgbaToHsva(i){let e=i.red/255,t=i.green/255,n=i.blue/255,s=i.alpha,a=Math.max(e,t,n),c=Math.min(e,t,n),l=a-c,u=0,f=a===0?0:l/a,A=a;if(a!==c){switch(a){case e:u=(t-n)/l+(t.5?A/(2-a-c):A/(a+c),a){case e:l=(t-n)/A+(t1&&(t-=1),t<1/6?i+(e-i)*6*t:t<1/2?e:t<2/3?i+(e-i)*(2/3-t)*6:i}cmykToRgba(i){let e=i.black/100,t=i.cyan/100,n=i.magenta/100,s=i.yellow/100,a=Math.min(1,(1-t)*(1-e)),c=Math.min(1,(1-n)*(1-e)),l=Math.min(1,(1-s)*(1-e));return a=a*255,c=c*255,l=l*255,new r(a,c,l,1)}rgbaToCmyk(i){let e=i.red/255,t=i.green/255,n=i.blue/255,s=1-e,a=1-t,c=1-n,l=Math.min(s,a,c);return l===1?new ie(0,0,0,100):(s=(s-l)/(1-l),a=(a-l)/(1-l),c=(c-l)/(1-l),l=l*100,s=s*100,a=a*100,c=c*100,new ie(s,a,c,l))}roundNumber(i){return Math.round(i*100)/100}stringToColor(i){let e=i.replace(/ /g,"").toLowerCase(),t=Ve[e]||null;if(e[0]==="#"){let a=e.substr(1),c=a.length,l=1,u=[];if(c===3)u=a.split("").map(f=>f+f);else if(c===6)u=a.match(/.{2}/g);else if(c===8){let f=a.substr(-2);a=a.substr(0,c-2),l=this.roundNumber(parseInt(f||"FF",16)/255),u=a.match(/.{2}/g)}u.length===3&&(t=new r(parseInt(u[0],16),parseInt(u[1],16),parseInt(u[2],16),l))}let n=e.indexOf("("),s=e.indexOf(")");if(n!==-1&&s+1===e.length){let a=e.substr(0,n),c=e.substr(n+1,s-(n+1)).split(","),l=1;switch(a){case"rgba":l=parseFloat(c.pop());case"rgb":t=new r(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),l);break;case"hsla":l=parseFloat(c.pop());case"hsl":let u=new z(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),l);t=this.hslaToRgba(u);break;case"cmyk":let f=new ie(parseInt(c[0],10),parseInt(c[1],10),parseInt(c[2],10),parseInt(c[3],10));t=this.cmykToRgba(f);break}}return t&&(this.hsva=this.rgbaToHsva(t)),this}},Se=(()=>{class o{constructor(){this.subscriptions=[],this.window={pageXOffset:0,pageYOffset:0},this.mouseup=new se,this.document=ve(fe),this.elementRef=ve(H),this.window=document.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame(),this.addEventListeners()}addEventListeners(){this.subscriptions.push(D(k(this.elementRef.nativeElement,"touchstart",{passive:!0,capture:!0}),k(this.elementRef.nativeElement,"mousedown",{capture:!0})).subscribe(e=>this.onEventChange(e)))}onEventChange(e){this.calculate(e),D(k(this.document,"mouseup",{capture:!0}),k(this.document,"touchend",{capture:!0})).pipe(ae(this.mouseup)).subscribe(()=>this.mouseup.next()),D(k(this.document,"mousemove",{capture:!0}),k(this.document,"touchmove",{passive:!0,capture:!0})).pipe(ae(this.mouseup)).subscribe(t=>this.calculate(t))}calculateCoordinates(e){let{width:t,height:n,top:s,left:a}=this.elementRef.nativeElement.getBoundingClientRect(),c=typeof e.pageX=="number"?e.pageX:e.touches[0].pageX,l=typeof e.pageY=="number"?e.pageY:e.touches[0].pageY,u=Math.max(0,Math.min(c-(a+this.window.pageXOffset),t)),f=Math.max(0,Math.min(l-(s+this.window.pageYOffset),n));this.movePointer({x:u,y:f,height:n,width:t})}calculate(e){if(e.stopPropagation(),e.type.includes("touch")||e.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(e);this.requestAnimationFrame.call(this.window,()=>this.calculateCoordinates(e))}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(e=>e.unsubscribe()),this.subscriptions.length=0}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275dir=ye({type:o})}}return o})(),_t=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=T.required(),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.saturation,t.value),this.updateBackgroundColor()})}movePointer({x:e,y:t,height:n,width:s}){let a=e*100/s,c=-(t*100/n)+100;a>10&&(c=c<1?1:c),this.changePointerPosition(a,c);let l=this.color().getHsva(),u=new x().setHsva(l.hue,a,c,l.alpha);this.color.set(u)}updateBackgroundColor(){let e=null;if(this.color()){let t=this.color().getHsva();e=new x().setHsva(t.hue,100,100).toRgbString()}this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",e)}changePointerPosition(e,t){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-t}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${e}%`)}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["saturation-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"]},outputs:{color:"colorChange"},standalone:!0,features:[ce,S],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(t,n){t&1&&K(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})}}return o})(),Mt=new Ie("COLOR_PICKER_CONFIG",{providedIn:"root",factory:()=>new Be}),Be=(()=>{class o{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=Re({token:o,factory:function(t){let n=null;return t?n=new(t||o):n=We(Mt),n},providedIn:"root"})}}return o})(),Vt=(()=>{class o{constructor(e,t,n,s){this.pickerConfig=e,this.renderer=t,this.elementRef=n,this.document=s,this.color=m.required(),this.colorType=m("rgba"),this.subscriptions=[],this.renderTitle(),U(()=>{this.renderBackgroundColor()})}ngOnInit(){this.subscriptions.push(k(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 e=this.renderer.createElement("input");switch(this.renderer.setStyle(e,"position","absolute"),this.renderer.setStyle(e,"top","-100%"),this.renderer.setStyle(e,"left","-100%"),this.colorType()){case"hsla":e.value=this.color().toHslaString();break;case"hex":e.value=this.color().toHexString(this.color().getRgba().alpha<1);break;default:e.value=this.color().toRgbaString()}this.renderer.appendChild(this.elementRef.nativeElement,e),e.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,e)}static{this.\u0275fac=function(t){return new(t||o)(P(Be),P(Q),P(H),P(fe))}}static{this.\u0275cmp=O({type:o,selectors:[["indicator-component"]],viewQuery:function(t,n){if(t&1&&L(et,5),t&2){let s;G(s=Z())&&(n.backgroundColorEl=s.first)}},inputs:{color:[1,"color"],colorType:[1,"colorType"]},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",null,0),He(),p(2,"svg",1),K(3,"path",2)(4,"path",3),h()())},styles:[E,'@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})}}return o})(),kt=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=T.required(),this.isVertical=m(!1,{alias:"vertical",transform:F}),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.hue)})}movePointer({x:e,y:t,height:n,width:s}){let a=this.isVertical()?t/n*359:e/s*359;this.changePointerPosition(a);let c=this.color().getHsva(),l=new x().setHsva(a,c.saturation,c.value,c.alpha);this.color.set(l)}changePointerPosition(e){let t=e/360*100,n=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,n,`${t}%`)}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["hue-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{color:"colorChange"},standalone:!0,features:[ce,S],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(t,n){t&1&&K(0,"div",1,0)},styles:[E,"[_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})}}return o})(),Ot=(()=>{class o extends Se{constructor(e){super(),this.renderer=e,this.color=m.required(),this.colorChange=N(),this.isVertical=m(!1,{alias:"vertical",transform:F}),U(()=>{let t=this.color().getHsva();this.changePointerPosition(t.alpha)})}movePointer({x:e,y:t,height:n,width:s}){let a=this.isVertical()?t/n:e/s;this.changePointerPosition(a);let c=this.color().getHsva(),l=new x().setHsva(c.hue,c.saturation,c.value,a);this.colorChange.emit(l)}changePointerPosition(e){let t=e*100,n=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,n,`${t}%`)}get gradient(){let e=this.color().getRgba();return`linear-gradient(to ${this.isVertical()?"bottom":"right"}, rgba(${e.red}, ${e.green}, ${e.blue}, 0) 0%, rgb(${e.red}, ${e.green}, ${e.blue}) 100%)`}static{this.\u0275fac=function(t){return new(t||o)(P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["alpha-component"]],viewQuery:function(t,n){if(t&1&&L(ke,7),t&2){let s;G(s=Z())&&(n.pointer=s.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{colorChange:"colorChange"},standalone:!0,features:[ce,S],decls:3,vars:2,consts:[["pointer",""],[1,"pointer"],[1,"gradient-color"]],template:function(t,n){t&1&&K(0,"div",1,0)(2,"div",2),t&2&&(d(2),X("background",n.gradient))},styles:[E,"[_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})}}return o})(),Xe=(()=>{class o{constructor(){this.min=m(0,{transform:ge}),this.max=m(255,{transform:ge}),this.inputChange=N()}inputChanges(e){let n=(e.target||e.srcElement).value,s=parseFloat(n);!isNaN(s)&&s>=this.min()&&s<=this.max()&&this.inputChange.emit(s)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275dir=ye({type:o,selectors:[["","inputChange",""]],hostBindings:function(t,n){t&1&&v("input",function(a){return n.inputChanges(a)})},inputs:{min:[1,"min"],max:[1,"max"]},outputs:{inputChange:"inputChange"},standalone:!0})}}return o})(),St=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.isAlphaVisible=m(!0,{alias:"alpha",transform:F})}get value(){return this.color()?.getRgba()}onInputChange(e,t){let n=this.value,s=t==="R"?e:n.red,a=t==="G"?e:n.green,c=t==="B"?e:n.blue,l=t==="A"?e:n.alpha,u=new x().setRgba(s,a,c,l);this.color.set(u)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["rgba-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",0)(1,"input",1),v("inputChange",function(a){return n.onInputChange(a,"R")}),h(),b(2,tt,2,0,"span"),h(),p(3,"div",0)(4,"input",1),v("inputChange",function(a){return n.onInputChange(a,"G")}),h(),b(5,nt,2,0,"span"),h(),p(6,"div",0)(7,"input",1),v("inputChange",function(a){return n.onInputChange(a,"B")}),h(),b(8,ot,2,0,"span"),h(),b(9,rt,3,2,"div",0)),t&2&&(d(),C("value",n.value==null?null:n.value.getRed().toString()),d(),w(n.labelVisible()?2:-1),d(2),C("value",n.value==null?null:n.value.getGreen().toString()),d(),w(n.labelVisible()?5:-1),d(2),C("value",n.value==null?null:n.value.getBlue().toString()),d(),w(n.labelVisible()?8:-1),d(),w(n.isAlphaVisible()?9:-1))},dependencies:[Xe],styles:[E,"[_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})}}return o})(),Bt=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.isAlphaVisible=m(!0,{alias:"alpha",transform:F})}get value(){return this.color()?.getHsla()}onInputChange(e,t){let n=this.value,s=t==="H"?e:n.hue,a=t==="S"?e:n.saturation,c=t==="L"?e:n.lightness,l=t==="A"?e:n.alpha,u=new x().setHsla(s,a,c,l);this.color.set(u)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["hsla-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"div",0)(1,"input",1),v("inputChange",function(a){return n.onInputChange(a,"H")}),h(),b(2,st,2,0,"span"),h(),p(3,"div",0)(4,"input",2),v("inputChange",function(a){return n.onInputChange(a,"S")}),h(),b(5,at,2,0,"span"),h(),p(6,"div",0)(7,"input",2),v("inputChange",function(a){return n.onInputChange(a,"L")}),h(),b(8,ct,2,0,"span"),h(),b(9,ht,3,2,"div",0)),t&2&&(d(),C("value",n.value==null?null:n.value.getHue().toString()),d(),w(n.labelVisible()?2:-1),d(2),C("value",(n.value==null?null:n.value.getSaturation())+"%"),d(),w(n.labelVisible()?5:-1),d(2),C("value",(n.value==null?null:n.value.getLightness())+"%"),d(),w(n.labelVisible()?8:-1),d(),w(n.isAlphaVisible()?9:-1))},dependencies:[Xe],styles:[E,Qe],changeDetection:0})}}return o})(),qt=(()=>{class o{constructor(){this.color=T.required(),this.labelVisible=m(!1,{alias:"label",transform:F}),this.prefixValue=m("",{alias:"prefix"})}get value(){return this.prefixValue()+(this.color()?this.color().toHexString(this.color().getRgba().alpha<1).replace("#",""):"")}onInputChange(e,t){let n=t.toLowerCase().replace("#","");if(((e.keyCode===13||e.key.toLowerCase()==="enter")&&n.length===3||n.length===6||n.length===8)&&parseInt(n,16).toString(16).padStart(n.length,"0")===n&&this.value!==n){let c=new x(`#${n}`);this.color.set(c)}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["hex-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],prefixValue:[1,"prefix","prefixValue"]},outputs:{color:"colorChange"},standalone:!0,features:[S],decls:4,vars:2,consts:[["elRef",""],[1,"column"],["type","text",3,"keyup","value"]],template:function(t,n){if(t&1){let s=V();p(0,"div",1)(1,"input",2,0),v("keyup",function(c){_(s);let l=je(2);return M(n.onInputChange(c,l.value))}),h(),b(3,pt,2,0,"span"),h()}t&2&&(d(),C("value",n.value),d(2),w(n.labelVisible()?3:-1))},styles:[E,Qe],changeDetection:0})}}return o})(),Et=Me("opacityAnimation",[Ne("true",q({opacity:1})),$("void => *",[q({opacity:0}),J(".08s ease-in")])]),Ft=Me("listAnimation",[$("* => up",[ne(":enter",[q({opacity:0,height:0}),oe(-10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => right",[ne(":enter",[q({opacity:0,height:0}),oe(-10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => down",[ne(":enter",[q({opacity:0,height:0}),oe(10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})]),$("* => left",[ne(":enter",[q({opacity:0,height:0}),oe(10,[J(".08s",q({opacity:1,height:"*"}))])],{optional:!0})])]),Ue=(()=>{class o{constructor(e,t,n){this.pickerConfig=e,this.elementRef=t,this.renderer=n,this.activeColor=m.required(),this.color=m.required(),this.showDepthText=m(!1,{alias:"show-depth-title",transform:F}),this.selectionChange=N(),this.longPress=N(),this.mouseup=new se,this.subscriptions=[],this.addEventListeners(),U(()=>{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 e=this.color()?this.color().toHexString():"";return this.showDepthText()?(this.pickerConfig?.presetsTitle||"").replace(/\{\s*(.+?)\s*\}/g,(t,n)=>e):e}addEventListeners(){this.subscriptions.push(D(k(this.elementRef.nativeElement,"mouseup"),k(this.elementRef.nativeElement,"touchend")).subscribe(()=>this.onTouchEnd())),this.subscriptions.push(D(k(this.elementRef.nativeElement,"mousedown"),k(this.elementRef.nativeElement,"touchstart",{passive:!0})).subscribe(e=>this.onTouch(e)))}removeEventListeners(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}onTouch(e){qe(e).pipe(Ee(t=>t.timeStamp||new Date().getTime()),Fe(350),ae(this.mouseup)).subscribe(()=>this.longPress.emit(!0)),this.selectionChange.emit(this.color())}onTouchEnd(){this.mouseup.next()}static{this.\u0275fac=function(t){return new(t||o)(P(Be),P(H),P(Q))}}static{this.\u0275cmp=O({type:o,selectors:[["color-preset"]],hostVars:2,hostBindings:function(t,n){t&2&&le("selected",n.className)},inputs:{activeColor:[1,"activeColor"],color:[1,"color"],showDepthText:[1,"show-depth-title","showDepthText"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},standalone:!0,features:[S],decls:0,vars:0,template:function(t,n){},styles:[E,"[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0})}}return o})(),Tt=(()=>{class o{transform(e,t=!0){return t?e.slice().reverse():e}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275pipe=xe({name:"reverse",type:o,pure:!0,standalone:!0})}}return o})(),Rt=(()=>{class o{constructor(e,t){this.document=e,this.cdr=t,this.list=m.required(),this.activeColor=m.required(),this.direction=m("up"),this.selectionChange=N(),this.showChildren=!1,this.subscriptions=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}get className(){return`direction-${this.direction()}`}onSelectionChange(e){this.selectionChange.emit(e)}onLongPress(){this.showChildren=!0,this.listenDocumentEvents()}removeListeners(){this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}listenDocumentEvents(){this.subscriptions.push(D(k(this.document,"mousedown"),k(this.document,"touchstart",{passive:!0})).subscribe(()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}static{this.\u0275fac=function(t){return new(t||o)(P(fe),P(_e))}}static{this.\u0275cmp=O({type:o,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(t,n){t&2&&Ge("className",n.className)},inputs:{list:[1,"list"],activeColor:[1,"activeColor"],direction:[1,"direction"]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[S],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(t,n){t&1&&(p(0,"color-preset",0),v("longPress",function(){return n.onLongPress()})("selectionChange",function(a){return n.onSelectionChange(a)}),h(),K(1,"div",1)(2,"div",1),b(3,dt,4,5,"div",2)),t&2&&(C("show-depth-title",n.list().length>1)("color",n.list()[0])("activeColor",n.activeColor()),d(),X("background-color",n.list()[0].toRgbaString()),d(),X("background-color",n.list()[0].toRgbaString()),d(),w(n.showChildren?3:-1))},dependencies:[Ue,Tt],styles:[E,"[_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:[Et,Ft]},changeDetection:0})}}return o})(),It=(()=>{class o{transform(e,t){return e.reduce((n,s,a)=>a%t?n:n.concat([e.slice(a,a+t)]),[])}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275pipe=xe({name:"chunks",type:o,pure:!0,standalone:!0})}}return o})(),Wt=(()=>{class o{constructor(){this.columns=m(8,{transform:ge}),this.colorPresets=m.required(),this.color=T.required(),this.direction=m("up")}onSelectionChange(e){let t=e.getRgba(),n=new x().setRgba(t.red,t.green,t.blue,t.alpha);this.color.set(n)}isList(e){return Array.isArray(e)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=O({type:o,selectors:[["color-presets-component"]],inputs:{columns:[1,"columns"],colorPresets:[1,"colorPresets"],color:[1,"color"],direction:[1,"direction"]},outputs:{color:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&(pe(0,Ct,3,4,"div",0,he),j(2,"chunks")),t&2&&ue(Pe(2,0,n.colorPresets(),n.columns()))},dependencies:[Ue,Rt,ze,It],styles:[E,"[_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})}}return o})(),y=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}(y||{}),re=class{constructor(){this.modelValue=null,this.initValue=null,this.valueChanged=new se,this.presetsVisibilityChanges=new we(!0),this.initType=null,this.alphaChannelVisibilityChanges=new we(!0),this.valueChanges=this.valueChanged.asObservable().pipe(Te((e,t)=>e.toRgbaString()==t.toRgbaString())),this.colorPresets=[];let i=x.from(new r(255,0,0,1));this.setValue(i)}setValueFrom(i){let e=x.from(i);return this.initValue||(this.initValue=x.from(i)),typeof i=="string"&&!this.initType&&(this.initType=this.finOutInputType(i)),this.setValue(e),this}get value(){return this.modelValue}set value(i){this.setValue(i)}reset(){let i=this.initValue?this.initValue.clone():x.from(new r(255,0,0,1));return this.setValue(i),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}getColorType(i){return this.finOutInputType(i)}setColorPresets(i){return this.colorPresets=this.setPresets(i),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(i){return this.modelValue=i,this.valueChanged.next(i),this}finOutInputType(i){let e=i.replace(/ /g,"").toLowerCase();if(e[0]==="#")return e.length>7?y.hexa:y.hex;let t=e.indexOf("(");switch(e.substr(0,t)){case y.rgba:return y.rgba;case y.rgb:return y.rgb;case y.hsla:return y.hsla;case y.hsl:return y.hsl;case y.cmyk:return y.cmyk}return null}setPresets(i){let e=[];for(let t of i)Array.isArray(t)?e.push(this.setPresets(t)):e.push(new x(t));return e}};function me(o,i){switch(i){case y.hex:return o.toHexString();case y.hexa:return o.toHexString(!0);case y.rgb:return o.toRgbString();case y.rgba:return o.toRgbaString();case y.hsl:return o.toHslString();case y.hsla:return o.toHslaString();default:return o.toRgbaString()}}function Dt(o,i){return o instanceof x&&i instanceof x?o.equal(i):o===i}var Je=(()=>{class o{constructor(e){this.cdr=e,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.color=T(),this.control=m(new re),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(e=>{this.color.set(me(e,this.control().initType)),this.cdr.detectChanges()}))}ngOnChanges(e){let t=this.color(),n=this.control();t&&n&&!Dt(me(n.value,n.initType),t)&&n.setValueFrom(t)}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(e=>e.unsubscribe()),this.subscriptions.length=0}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}static{this.\u0275fac=function(t){return new(t||o)(P(_e))}}static{this.\u0275cmp=O({type:o,selectors:[["chrome-picker"]],inputs:{color:[1,"color"],control:[1,"control"]},outputs:{color:"colorChange"},standalone:!0,features:[De,S],ngContentSelectors:wt,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(t,n){if(t&1&&(Ze(bt),Ae(0),p(1,"saturation-component",0),W("colorChange",function(a){return I(n.control().value,a)||(n.control().value=a),a}),h(),p(2,"div",1)(3,"div",2)(4,"div",3),K(5,"indicator-component",4),h(),p(6,"div",3)(7,"hue-component",0),W("colorChange",function(a){return I(n.control().value,a)||(n.control().value=a),a}),h(),b(8,vt,1,1,"alpha-component",5),j(9,"async"),h()(),p(10,"div",6)(11,"div",3),b(12,yt,2,4,"rgba-input-component",7)(13,xt,2,4,"hsla-input-component",7)(14,At,1,1,"hex-input-component",8),h(),p(15,"div",9)(16,"span",10),v("click",function(){return n.changePresentation()}),h()()()(),b(17,Pt,1,2,"color-presets-component",11),j(18,"async"),Ae(19,1)),t&2){let s;d(),R("color",n.control().value),d(4),C("colorType",n.presentations[n.selectedPresentation])("color",n.control().value),d(2),R("color",n.control().value),d(),w(te(9,7,n.control().alphaChannelVisibilityChanges)?8:-1),d(4),w((s=n.presentations[n.selectedPresentation])==="rgba"?12:s==="hsla"?13:s==="hex"?14:-1),d(5),w(te(18,9,n.control().presetsVisibilityChanges)?17:-1)}},dependencies:[_t,Vt,kt,Ot,St,Bt,qt,Wt,Ye],styles:[E,"[_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})}}return o})();var Ht=["pickerComponent"];function Kt(o,i){if(o&1){let e=V();p(0,"button",3),v("click",function(n){_(e);let s=g(2);return M(s.applyClick(n))}),B(1,"Apply"),h()}}function Lt(o,i){if(o&1){let e=V();p(0,"chrome-picker",1),v("colorChange",function(){_(e);let n=g();return M(n.onColorChanged())}),b(1,Kt,2,0,"button",2),h()}if(o&2){let e=g();le("top",e.isTop),C("control",e.colorControl),d(),w(e.isImmediate?-1:1)}}var wn=(()=>{class o{constructor(e){this.el=e,this.isImmediate=!1,this.colorChange=new Ke,this.colorControl=new re,this.isVisible=!1,this.isTop=!1,this.colorControl.hideAlphaChannel()}set color(e){this.colorControl.setValueFrom(e),this._color=this.colorControl.value}get background(){return this._color?this._color.toHexString():""}onWidowClick(e){e.composedPath().includes(this.el.nativeElement)||(this.isVisible=!1)}showColorPicker(e){if(!this.isVisible){let t=this.el.nativeElement.getBoundingClientRect();this.isTop=t.top+t.height+320>window.innerHeight&&t.top-320>0}this.isVisible=!0}applyClick(e){e.stopPropagation(),this._color=this.colorControl.value,this.triggerUpdate(),this.isVisible=!1}onColorChanged(){this.isImmediate&&this.triggerUpdate()}triggerUpdate(){this.colorChange.emit(me(this.colorControl.value,this.colorControl.initType))}static{this.\u0275fac=function(t){return new(t||o)(P(H))}}static{this.\u0275cmp=O({type:o,selectors:[["dsw-color-picker"]],viewQuery:function(t,n){if(t&1&&L(Ht,7),t&2){let s;G(s=Z())&&(n.pickerComponent=s.first)}},hostVars:2,hostBindings:function(t,n){t&1&&v("mousedown",function(a){return n.onWidowClick(a)},!1,Le)("click",function(a){return n.showColorPicker(a)}),t&2&&X("background-color",n.background)},inputs:{isImmediate:"isImmediate",color:"color"},outputs:{colorChange:"colorChange"},standalone:!0,features:[S],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(t,n){t&1&&b(0,Lt,2,4,"chrome-picker",0),t&2&&w(n.isVisible?0:-1)},dependencies:[Je],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})}}return o})();export{wn as a}; diff --git a/dist/chunk-4FY4TWQQ.js b/dist/chunk-KWSVTJBX.js similarity index 99% rename from dist/chunk-4FY4TWQQ.js rename to dist/chunk-KWSVTJBX.js index fd5c5a9c..7f602577 100644 --- a/dist/chunk-4FY4TWQQ.js +++ b/dist/chunk-KWSVTJBX.js @@ -1,4 +1,4 @@ -import{H as U0,r as H0}from"./chunk-5MYX3VUL.js";import{Da as I0,Hb as wu,Ib as Su,Jb as Tu,Xa as z0,ab as P0,bb as vu,bc as eu,fa as R0,lc as O0,xb as N0}from"./chunk-ZEAAPN4P.js";import{e as iu}from"./chunk-MG3ERZGY.js";var Nu={};iu(Nu,{arrayReplaceAt:()=>Pu,assign:()=>X,escapeHtml:()=>I,escapeRE:()=>Sr,fromCodePoint:()=>nu,has:()=>_r,isMdAsciiPunct:()=>V,isPunctChar:()=>j,isSpace:()=>k,isString:()=>gu,isValidEntityCode:()=>ku,isWhiteSpace:()=>U,lib:()=>Tr,normalizeReference:()=>Z,unescapeAll:()=>R,unescapeMd:()=>Er});var du={};iu(du,{decode:()=>ru,encode:()=>lu,format:()=>W,parse:()=>tu});var j0={};function Ge(u){let e=j0[u];if(e)return e;e=j0[u]=[];for(let r=0;r<128;r++){let t=String.fromCharCode(r);e.push(t)}for(let r=0;r=55296&&l<=57343?n+="\uFFFD\uFFFD\uFFFD":n+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?n+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,n+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}}n+="\uFFFD"}return n})}au.defaultChars=";/?:@&=+$,#";au.componentChars="";var ru=au;var V0={};function We(u){let e=V0[u];if(e)return e;e=V0[u]=[];for(let r=0;r<128;r++){let t=String.fromCharCode(r);/^[0-9a-z]$/i.test(t)?e.push(t):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);let t=We(e),n="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){n+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}n+="%EF%BF%BD";continue}n+=encodeURIComponent(u[c])}return n}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 Je=/^([a-z0-9.+-]+:)/i,Xe=/:[0-9]*$/,Qe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ye=["<",">",'"',"`"," ","\r",` +import{H as U0,r as H0}from"./chunk-ZHVSJD4N.js";import{Da as I0,Hb as wu,Ib as Su,Jb as Tu,Xa as z0,ab as P0,bb as vu,bc as eu,fa as R0,lc as O0,xb as N0}from"./chunk-ZEAAPN4P.js";import{e as iu}from"./chunk-MG3ERZGY.js";var Nu={};iu(Nu,{arrayReplaceAt:()=>Pu,assign:()=>X,escapeHtml:()=>I,escapeRE:()=>Sr,fromCodePoint:()=>nu,has:()=>_r,isMdAsciiPunct:()=>V,isPunctChar:()=>j,isSpace:()=>k,isString:()=>gu,isValidEntityCode:()=>ku,isWhiteSpace:()=>U,lib:()=>Tr,normalizeReference:()=>Z,unescapeAll:()=>R,unescapeMd:()=>Er});var du={};iu(du,{decode:()=>ru,encode:()=>lu,format:()=>W,parse:()=>tu});var j0={};function Ge(u){let e=j0[u];if(e)return e;e=j0[u]=[];for(let r=0;r<128;r++){let t=String.fromCharCode(r);e.push(t)}for(let r=0;r=55296&&l<=57343?n+="\uFFFD\uFFFD\uFFFD":n+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?n+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,n+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}}n+="\uFFFD"}return n})}au.defaultChars=";/?:@&=+$,#";au.componentChars="";var ru=au;var V0={};function We(u){let e=V0[u];if(e)return e;e=V0[u]=[];for(let r=0;r<128;r++){let t=String.fromCharCode(r);/^[0-9a-z]$/i.test(t)?e.push(t):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);let t=We(e),n="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){n+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}n+="%EF%BF%BD";continue}n+=encodeURIComponent(u[c])}return n}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 Je=/^([a-z0-9.+-]+:)/i,Xe=/:[0-9]*$/,Qe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ye=["<",">",'"',"`"," ","\r",` `," "],Ke=["{","}","|","\\","^","`"].concat(Ye),ur=["'"].concat(Ke),Z0=["%","/","?",";","#"].concat(ur),$0=["/","?","#"],er=255,G0=/^[+a-z0-9A-Z_-]{0,63}$/,rr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,W0={javascript:!0,"javascript:":!0},J0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function tr(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,t,n,c=u;if(c=c.trim(),!e&&u.split("#").length===1){let s=Qe.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=Je.exec(c);if(i&&(i=i[0],r=i.toLowerCase(),this.protocol=i,c=c.substr(i.length)),(e||i||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(n=c.substr(0,2)==="//",n&&!(i&&W0[i])&&(c=c.substr(2),this.slashes=!0)),!W0[i]&&(n||i&&!J0[i])){let s=-1;for(let f=0;f<$0.length;f++)t=c.indexOf($0[f]),t!==-1&&(s===-1||t127?h+="x":h+=E[x];if(!h.match(G0)){let x=f.slice(0,g),m=f.slice(g+1),_=E.match(rr);_&&(x.push(_[1]),m.unshift(_[2])),m.length&&(c=m.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>er&&(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),J0[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};fu.prototype.parseHost=function(u){let e=Xe.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=tr;var Lu={};iu(Lu,{Any:()=>pu,Cc:()=>bu,Cf:()=>X0,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 X0=/[\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 Q0=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 Y0=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(u=>u.charCodeAt(0)));var qu,nr=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=nr.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||{}),cr=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 or(u){return u>=F.UPPER_A&&u<=F.UPPER_F||u>=F.LOWER_A&&u<=F.LOWER_F}function ir(u){return u>=F.UPPER_A&&u<=F.UPPER_Z||u>=F.LOWER_A&&u<=F.LOWER_Z||Ru(u)}function ar(u){return u===F.EQUALS||ir(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,t){this.decodeTree=e,this.emitCodePoint=r,this.errors=t,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)|cr)===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,t,n){if(r!==t){let c=t-r;this.result=this.result*Math.pow(n,c)+parseInt(e.substr(r,c),n),this.consumed+=c}}stateNumericHex(e,r){let t=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:t}=this,n=(t[r]&H.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,r,t){let{decodeTree:n}=this;return this.emitCodePoint(r===1?n[e]&~H.VALUE_LENGTH:n[e+1],t),r===3&&this.emitCodePoint(n[e+2],t),t}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 K0(u){let e="",r=new xu(u,t=>e+=Mu(t));return function(n,c){let i=0,o=0;for(;(o=n.indexOf("&",o))>=0;){e+=n.slice(i,o),r.startEntity(c);let s=r.write(n,o+1);if(s<0){i=o+r.end();break}i=o+s,o=s===0?i+1:i}let a=e+n.slice(i);return e="",a}}function sr(u,e,r,t){let n=(e&H.BRANCH_LENGTH)>>7,c=e&H.JUMP_TABLE;if(n===0)return c!==0&&t===c?r:-1;if(c){let a=t-c;return a<0||a>=n?-1:u[r+a]-1}let i=r,o=i+n-1;for(;i<=o;){let a=i+o>>>1,s=u[a];if(st)o=a-1;else return u[a+n]}return-1}var lr=K0(Q0),hn=K0(Y0);function N(u,e=B.Legacy){return lr(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(t){let n,c=0,i="";for(;n=u.exec(t);)c!==n.index&&(i+=t.substring(c,n.index)),i+=e.get(n[0].charCodeAt(0)),c=n.index+1;return i+t.substring(c)}}var ue=Iu(/[&<>'"]/g,dr),ee=Iu(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),re=Iu(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));function mr(u){return Object.prototype.toString.call(u)}function gu(u){return mr(u)==="[object String]"}var xr=Object.prototype.hasOwnProperty;function _r(u,e){return xr.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(t){u[t]=r[t]})}}),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 ce=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,gr=/&([a-z#][a-z0-9]{1,31});/gi,kr=new RegExp(ce.source+"|"+gr.source,"gi"),Dr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Cr(u,e){if(e.charCodeAt(0)===35&&Dr.test(e)){let t=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return ku(t)?nu(t):u}let r=N(u);return r!==u?r:u}function Er(u){return u.indexOf("\\")<0?u:u.replace(ce,"$1")}function R(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(kr,function(e,r,t){return r||Cr(e,t)})}var yr=/[&<>"]/,Ar=/[&<>"]/g,Fr={"&":"&","<":"<",">":">",'"':"""};function vr(u){return Fr[u]}function I(u){return yr.test(u)?u.replace(Ar,vr):u}var wr=/[.?*+^$[\]\\(){}|-]/g;function Sr(u){return u.replace(wr,"\\$&")}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 Tr={mdurl:du,ucmicro:Lu};var ju={};iu(ju,{parseLinkDestination:()=>Hu,parseLinkLabel:()=>Ou,parseLinkTitle:()=>Uu});function Ou(u,e,r){let t,n,c,i,o=u.posMax,a=u.pos;for(u.pos=e+1,t=1;u.pos32))return c;if(t===41){if(i===0)break;i--}n++}return e===n||i!==0||(c.str=R(u.slice(e,n)),c.pos=n,c.ok=!0),c}function Uu(u,e,r,t){let n,c=e,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(t)i.str=t.str,i.marker=t.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,t,n){let c=u[e];return""+I(u[e].content)+` `};L.fence=function(u,e,r,t,n){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-CT4GSBMF.js b/dist/chunk-NK2CIXN3.js similarity index 98% rename from dist/chunk-CT4GSBMF.js rename to dist/chunk-NK2CIXN3.js index b0333e47..e01de825 100644 --- a/dist/chunk-CT4GSBMF.js +++ b/dist/chunk-NK2CIXN3.js @@ -1 +1 @@ -import{a as re}from"./chunk-QTANEDSU.js";import{a as ge}from"./chunk-UJWY6PMO.js";import{b as fe}from"./chunk-MGBUQL4E.js";import{b as ae,c as se,d as ce,e as de,f as pe,g as he,h as me,j as ue}from"./chunk-BCYEWSDA.js";import{D as ee,F as te,G as ie,H as ne,I as oe,J as le,h as $}from"./chunk-5MYX3VUL.js";import{Ab as q,Cb as M,Db as z,Ea as j,Eb as R,Fb as T,Gb as A,Hb as r,Ib as s,Ic as X,Jb as b,Kc as Z,Nb as O,Rb as w,Sb as c,Vb as U,Xb as Y,Yb as G,Zb as J,ab as l,ac as B,bb as C,bc as u,cc as y,dc as V,ec as I,fa as W,fc as S,gc as k,ia as L,lc as K,qa as h,qc as x,ra as m,rb as F,rc as v,tb as N,ub as H,vb as Q,xb as P,zb as D}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";var _e=["dateFilter"],xe=()=>[import("./chunk-47WHPMM7.js").then(o=>o.DateFilterComponent)];function ve(o,p){o&1&&b(0,"dsw-date-filter",null,0)}function Ce(o,p){o&1&&b(0,"div",9)}function be(o,p){o&1&&(F(0,ve,2,0)(1,Ce,1,0),N(2,0,xe,null,1),Q(),H())}function we(o,p){if(o&1){let e=O();r(0,"div",13)(1,"span",18)(2,"input",19),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isAll,t)||(n.model.isAll=t),m(t)}),w("click",function(t){h(e);let n=c(2);return m(n.setAll(t))}),s(),r(3,"label",20),u(4),x(5,"i18n"),s()(),r(6,"span",18)(7,"input",21),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isExclude,t)||(n.model.isExclude=t),m(t)}),s(),r(8,"label",22),u(9),x(10,"i18n"),s()(),r(11,"span")(12,"input",23),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isInterval,t)||(n.model.isInterval=t),m(t)}),s(),r(13,"label",24),u(14),x(15,"i18n"),s()()()}if(o&2){let e=c(2);l(),P("hidden",e.model.isInterval),l(),I("ngModel",e.model.isAll),l(2),y(v(5,8,"all")),l(2),P("hidden",e.model.isInterval),l(),I("ngModel",e.model.isExclude),l(2),y(v(10,10,"exclude")),l(3),I("ngModel",e.model.isInterval),l(2),y(v(15,12,"interval"))}}function ye(o,p){if(o&1&&(r(0,"option",26),u(1),s()),o&2){let e=p.$implicit;P("ngValue",e.path),l(),y(e.name)}}function Pe(o,p){if(o&1&&(r(0,"option",26),u(1),s()),o&2){let e=p.$implicit;P("ngValue",e.path),l(),y(e.name)}}function Fe(o,p){if(o&1){let e=O();r(0,"div",14)(1,"div")(2,"label"),u(3),x(4,"i18n"),s(),r(5,"select",25),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.from,t)||(n.model.from=t),m(t)}),T(6,ye,2,2,"option",26,R),s()(),r(8,"div")(9,"label"),u(10),x(11,"i18n"),s(),r(12,"select",25),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.to,t)||(n.model.to=t),m(t)}),T(13,Pe,2,2,"option",26,R),s()()()}if(o&2){let e=c(2);l(3),y(v(4,4,"from")),l(2),I("ngModel",e.model.from),l(),A(e.model.values),l(4),y(v(11,6,"to")),l(2),I("ngModel",e.model.to),l(),A(e.model.values)}}function Me(o,p){if(o&1){let e=O();r(0,"div",27),w("click",function(t){h(e);let n=c(2);return m(n.setAll(t))}),b(1,"input",28),r(2,"div"),u(3,"Default"),s()()}if(o&2){let e=c(2);l(),P("checked",e.model.isAll)}}function Ie(o,p){if(o&1&&(r(0,"div"),u(1),s()),o&2){let e=c().$implicit;l(),y(e.info)}}function Se(o,p){if(o&1){let e=O();r(0,"div",27),w("click",function(t){let n=h(e).$implicit,_=c(2);return m(_.toggleRow(n,t))}),r(1,"input",29,2),w("click",function(t){let n=h(e).$implicit,_=B(2),d=c(2);return n.checked=_.checked,m(d.onItemSelect(t))}),s(),r(3,"div"),u(4),F(5,Ie,2,1,"div"),s()()}if(o&2){let e=p.$implicit,i=c(2);l(),D("readonly",i.isRadio),P("type",i.isRadio?"radio":"checkbox")("checked",e.checked),l(2),q(e.default?"bold":""),D("selected",e.checked),l(),V("",e.name," "),l(),M(e.info?5:-1)}}function ke(o,p){o&1&&(r(0,"div",17),b(1,"img",30),s())}function Oe(o,p){if(o&1){let e=O();r(0,"div",10),b(1,"img",11),r(2,"input",12,1),x(4,"i18n"),k("ngModelChange",function(t){h(e);let n=c();return S(n.model.search,t)||(n.model.search=t),m(t)}),w("search",function(){h(e);let t=B(3),n=c();return m(n.onSearch(t.value))})("keyup",function(){h(e);let t=B(3),n=c();return m(n.onSearch(t.value))})("keydown.enter",function(){h(e);let t=c();return m(t.searchFilters())}),s()(),F(5,we,16,14,"div",13)(6,Fe,15,8,"div",14),r(7,"div",15),F(8,Me,4,1,"div",16),T(9,Se,6,10,"div",16,z),x(11,"selectedFirst"),F(12,ke,2,0,"div",17),s()}if(o&2){let e=c();l(2),U("placeholder",v(4,7,"search")),I("ngModel",e.model.search),l(3),M(e.isRadio?-1:5),l(),M(e.model.isInterval?6:-1),l(),P("hidden",e.model.isInterval),l(),M(e.hasDefault?8:-1),l(),A(v(11,9,e.model.values)),l(3),M(e.model.isLoading?12:-1)}}var Ve=(()=>{class o{transform(e){return Array.isArray(e)?e.sort((i,t)=>i.checked===t.checked?0:i.checked?-1:1):e}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275pipe=L({name:"selectedFirst",type:o,pure:!0,standalone:!0})}}return o})(),$e=(()=>{class o{constructor(e,i,t,n,_,d,g,a,f){this.ss=e,this.el=i,this.ds=t,this.dbs=n,this.fs=_,this.es=d,this.us=g,this.cdr=a,this.locale=f,this.model={search:"",isLoading:!1,filter:void 0,values:[],isAll:!1,isExclude:!1,isInterval:!1,from:"",to:""},this.isRelatedFilters=!1,this.restoreValuesOnClose=!0,this.datePipe=new $(f);let E=this.ss.getAppSettings();this.isRelatedFilters=E.isRelatedFilters===void 0?!0:E.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(){this.fitFiltersIntoScreen(),this.initializeDateFilter()}fitFiltersIntoScreen(){let e=this.el?.nativeElement;if(!e)return;let i=e.getBoundingClientRect(),t=window.innerHeight;if(i.top+i.height>t){let n=t-i.top,_=i.top-26-4-4;if(t-i.top<200&&_>n){let d=t-i.top+30+4,g=t-d-i.height;e.style.maxHeight=i.height+g-20+"px",e.style.top="",e.style.bottom=d+"px"}else{let d=i.top+i.height-t;e.style.maxHeight=i.height-d-20+"px"}}}initialize(e,i,t){this.widget=e,this.model.filter=i,!i.isDate&&this.isRelatedFilters?this.requestRelatedFilters(i):this.prepareFilters(),this.model.isAll=!this.isAnyChecked(),this.model.isExclude=i.isExclude,this.model.isInterval=i.isInterval,this.model.filter.values?.length&&(this.originalValues=this.model.filter.values)}ngOnInit(){}requestRelatedFilters(e){let i=this.getDataSource();if(this.prepareFilters(),!i)return;let t=[],n=this.fs.items,_=n.filter(a=>!a.isInterval&&a.targetProperty!==this.model.filter?.targetProperty&&a.value!==""),d=[];_.forEach(a=>{let f=a.value.toString();a.isExclude&&(f=f.split("|").map(E=>E+=".%NOT").join("|")),a.isInterval&&(f=f.replace("|",":")),a.value.toString().indexOf("|")!==-1&&(f="{"+f.replace(/\|/g,",")+"}"),d.push({Filter:a.targetProperty,Value:f})}),n.find(a=>a.targetProperty===this.model?.filter?.targetProperty)?.values?.filter(a=>!a._saved)?.length&&(this.model.isLoading=!0,this.ds.searchFilters("",i,d,[this.model.filter?.targetProperty]).catch(a=>this.onError(a,a.status)).then(a=>{this.onFilterValuesReceived(a),this.onSearch("")}).finally(()=>{this.model.isLoading=!1,this.cdr.detectChanges()}))}getDataSource(){let e="";try{if(this.widget.type.toLowerCase()===te.const.emptyWidgetClass){let i=this.model.filter?.source||"";e=this.dbs.getWidgets().filter(n=>n.name===i)[0]?.dataSource||""}else e=this.widget.dataSource}catch{e=""}return e}prepareFilters(){this.fs.filtersChanged=!1,this.model.values=[];for(let e=0;e{this.fitFiltersIntoScreen()})}onSearch(e){if(e==="")this.model.values=this.model.filter?.values;else{let i=e.toLowerCase();this.model.values=[];for(let t=0;tthis.onError(t,t.status)).then(t=>{this.onFilterValuesReceived(t),this.onSearch(i)}))}onFilterValuesReceived(e,i=!1){if(this.model.isLoading=!1,!e)return;let t=e.children.filter(g=>g.path===this.model.filter?.targetProperty);if(t.length===0)return;let n=t[0];if(!n.children||n.children.length===0)return;let _=this.model.filter?.values.slice(),d=[];n.children.forEach(g=>{let a=_.find(f=>f?.path===g?.path||!isNaN(g?.path)&&parseInt(f?.path,10)===g?.path);a&&Object.assign(g,a),d.push(g)}),d.length&&this.model.filter&&(this.model.filter.values=[...d],this.originalValues=structuredClone(d))}onError(e,i){this.model.isLoading=!1,this.es.show(`Error ${i.toString()}`)}removeFilter(){this.model.filter&&(this.model.filter.isInterval=!1),delete this.model.filter?.fromIdx,delete this.model.filter?.toIdx,this.clearSelectedItems(),this.fs.applyFilter(this.model.filter),this.restoreValuesOnClose=!1,this.close()}clearSelectedItems(){for(let e=0;ee.path===this.model.from),this.model.filter.toIdx=this.model.values.findIndex(e=>e.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 e=this.dateFilter.getValues();this.model.filter.values=e.map(i=>{let t=i.getFullYear()+"-"+("0"+(i.getMonth()+1)).slice(-2)+"-"+("0"+i.getDate()).slice(-2);return{name:this.datePipe.transform(i,"dd MMM yyyy"),path:`&[${t}]`,checked:!0}}),e.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.restoreValuesOnClose=!1,this.close()}close(){this._modal?.close()}initializeDateFilter(){if(!this.model?.filter?.isDate||!this.dateFilter)return;let e=this.model?.filter?.value;if(!e)return;let i=e.split("|").map(t=>this.createDate(t));this.dateFilter.setDateRange(i[0],i[1])}createDate(e){return this.us.toDate(e.replace("&[","").replace("]",""))}ngOnDestroy(){this.restoreValuesOnClose&&this.restoreSelectionState()}static{this.\u0275fac=function(i){return new(i||o)(C(le),C(j),C(ne),C(fe),C(ge),C(ie),C(oe),C(Z),C(X))}}static{this.\u0275cmp=W({type:o,selectors:[["dsw-filter-popup"]],viewQuery:function(i,t){if(i&1&&Y(_e,5),i&2){let n;G(n=J())&&(t.dateFilter=n.first)}},hostVars:2,hostBindings:function(i,t){i&2&&D("date-filter",t.isDateFilter)},inputs:{_modal:"_modal"},standalone:!0,features:[K],decls:15,vars:10,consts:[["dateFilter",""],["sr",""],["inp",""],[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,"datepicker-placeholder"],[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(i,t){i&1&&(F(0,be,4,0)(1,Oe,13,11),r(2,"div",3)(3,"button",4),w("click",function(){return t.acceptFilter()}),b(4,"img",5),u(5),x(6,"i18n"),s(),r(7,"button",6),w("click",function(){return t.removeFilter()}),b(8,"img",7),u(9),x(10,"i18n"),s(),r(11,"button",6),w("click",function(){return t.close()}),b(12,"img",8),u(13),x(14,"i18n"),s()()),i&2&&(M(t.model.filter!=null&&t.model.filter.isDate?0:1),l(5),V(" ",v(6,4,"accept")," "),l(4),V(" ",v(10,6,"dismiss")," "),l(4),V(" ",v(14,8,"close")," "))},dependencies:[ue,he,me,se,ae,pe,ce,de,re,ee,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: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}.datepicker-placeholder[_ngcontent-%COMP%]{width:400px;height:268px}"],changeDetection:0})}}return o})();export{$e as FilterPopupComponent,Ve as SelectedFirstPipe}; +import{a as re}from"./chunk-JBRBXPBH.js";import{a as ge}from"./chunk-O73WWIXQ.js";import{b as fe}from"./chunk-2ODAR4M4.js";import{b as ae,c as se,d as ce,e as de,f as pe,g as he,h as me,j as ue}from"./chunk-VUYLTOWP.js";import{D as ee,F as te,G as ie,H as ne,I as oe,J as le,h as $}from"./chunk-ZHVSJD4N.js";import{Ab as q,Cb as M,Db as z,Ea as j,Eb as R,Fb as T,Gb as A,Hb as r,Ib as s,Ic as X,Jb as b,Kc as Z,Nb as O,Rb as w,Sb as c,Vb as U,Xb as Y,Yb as G,Zb as J,ab as l,ac as B,bb as C,bc as u,cc as y,dc as V,ec as I,fa as W,fc as S,gc as k,ia as L,lc as K,qa as h,qc as x,ra as m,rb as F,rc as v,tb as N,ub as H,vb as Q,xb as P,zb as D}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";var _e=["dateFilter"],xe=()=>[import("./chunk-47WHPMM7.js").then(o=>o.DateFilterComponent)];function ve(o,p){o&1&&b(0,"dsw-date-filter",null,0)}function Ce(o,p){o&1&&b(0,"div",9)}function be(o,p){o&1&&(F(0,ve,2,0)(1,Ce,1,0),N(2,0,xe,null,1),Q(),H())}function we(o,p){if(o&1){let e=O();r(0,"div",13)(1,"span",18)(2,"input",19),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isAll,t)||(n.model.isAll=t),m(t)}),w("click",function(t){h(e);let n=c(2);return m(n.setAll(t))}),s(),r(3,"label",20),u(4),x(5,"i18n"),s()(),r(6,"span",18)(7,"input",21),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isExclude,t)||(n.model.isExclude=t),m(t)}),s(),r(8,"label",22),u(9),x(10,"i18n"),s()(),r(11,"span")(12,"input",23),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.isInterval,t)||(n.model.isInterval=t),m(t)}),s(),r(13,"label",24),u(14),x(15,"i18n"),s()()()}if(o&2){let e=c(2);l(),P("hidden",e.model.isInterval),l(),I("ngModel",e.model.isAll),l(2),y(v(5,8,"all")),l(2),P("hidden",e.model.isInterval),l(),I("ngModel",e.model.isExclude),l(2),y(v(10,10,"exclude")),l(3),I("ngModel",e.model.isInterval),l(2),y(v(15,12,"interval"))}}function ye(o,p){if(o&1&&(r(0,"option",26),u(1),s()),o&2){let e=p.$implicit;P("ngValue",e.path),l(),y(e.name)}}function Pe(o,p){if(o&1&&(r(0,"option",26),u(1),s()),o&2){let e=p.$implicit;P("ngValue",e.path),l(),y(e.name)}}function Fe(o,p){if(o&1){let e=O();r(0,"div",14)(1,"div")(2,"label"),u(3),x(4,"i18n"),s(),r(5,"select",25),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.from,t)||(n.model.from=t),m(t)}),T(6,ye,2,2,"option",26,R),s()(),r(8,"div")(9,"label"),u(10),x(11,"i18n"),s(),r(12,"select",25),k("ngModelChange",function(t){h(e);let n=c(2);return S(n.model.to,t)||(n.model.to=t),m(t)}),T(13,Pe,2,2,"option",26,R),s()()()}if(o&2){let e=c(2);l(3),y(v(4,4,"from")),l(2),I("ngModel",e.model.from),l(),A(e.model.values),l(4),y(v(11,6,"to")),l(2),I("ngModel",e.model.to),l(),A(e.model.values)}}function Me(o,p){if(o&1){let e=O();r(0,"div",27),w("click",function(t){h(e);let n=c(2);return m(n.setAll(t))}),b(1,"input",28),r(2,"div"),u(3,"Default"),s()()}if(o&2){let e=c(2);l(),P("checked",e.model.isAll)}}function Ie(o,p){if(o&1&&(r(0,"div"),u(1),s()),o&2){let e=c().$implicit;l(),y(e.info)}}function Se(o,p){if(o&1){let e=O();r(0,"div",27),w("click",function(t){let n=h(e).$implicit,_=c(2);return m(_.toggleRow(n,t))}),r(1,"input",29,2),w("click",function(t){let n=h(e).$implicit,_=B(2),d=c(2);return n.checked=_.checked,m(d.onItemSelect(t))}),s(),r(3,"div"),u(4),F(5,Ie,2,1,"div"),s()()}if(o&2){let e=p.$implicit,i=c(2);l(),D("readonly",i.isRadio),P("type",i.isRadio?"radio":"checkbox")("checked",e.checked),l(2),q(e.default?"bold":""),D("selected",e.checked),l(),V("",e.name," "),l(),M(e.info?5:-1)}}function ke(o,p){o&1&&(r(0,"div",17),b(1,"img",30),s())}function Oe(o,p){if(o&1){let e=O();r(0,"div",10),b(1,"img",11),r(2,"input",12,1),x(4,"i18n"),k("ngModelChange",function(t){h(e);let n=c();return S(n.model.search,t)||(n.model.search=t),m(t)}),w("search",function(){h(e);let t=B(3),n=c();return m(n.onSearch(t.value))})("keyup",function(){h(e);let t=B(3),n=c();return m(n.onSearch(t.value))})("keydown.enter",function(){h(e);let t=c();return m(t.searchFilters())}),s()(),F(5,we,16,14,"div",13)(6,Fe,15,8,"div",14),r(7,"div",15),F(8,Me,4,1,"div",16),T(9,Se,6,10,"div",16,z),x(11,"selectedFirst"),F(12,ke,2,0,"div",17),s()}if(o&2){let e=c();l(2),U("placeholder",v(4,7,"search")),I("ngModel",e.model.search),l(3),M(e.isRadio?-1:5),l(),M(e.model.isInterval?6:-1),l(),P("hidden",e.model.isInterval),l(),M(e.hasDefault?8:-1),l(),A(v(11,9,e.model.values)),l(3),M(e.model.isLoading?12:-1)}}var Ve=(()=>{class o{transform(e){return Array.isArray(e)?e.sort((i,t)=>i.checked===t.checked?0:i.checked?-1:1):e}static{this.\u0275fac=function(i){return new(i||o)}}static{this.\u0275pipe=L({name:"selectedFirst",type:o,pure:!0,standalone:!0})}}return o})(),$e=(()=>{class o{constructor(e,i,t,n,_,d,g,a,f){this.ss=e,this.el=i,this.ds=t,this.dbs=n,this.fs=_,this.es=d,this.us=g,this.cdr=a,this.locale=f,this.model={search:"",isLoading:!1,filter:void 0,values:[],isAll:!1,isExclude:!1,isInterval:!1,from:"",to:""},this.isRelatedFilters=!1,this.restoreValuesOnClose=!0,this.datePipe=new $(f);let E=this.ss.getAppSettings();this.isRelatedFilters=E.isRelatedFilters===void 0?!0:E.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(){this.fitFiltersIntoScreen(),this.initializeDateFilter()}fitFiltersIntoScreen(){let e=this.el?.nativeElement;if(!e)return;let i=e.getBoundingClientRect(),t=window.innerHeight;if(i.top+i.height>t){let n=t-i.top,_=i.top-26-4-4;if(t-i.top<200&&_>n){let d=t-i.top+30+4,g=t-d-i.height;e.style.maxHeight=i.height+g-20+"px",e.style.top="",e.style.bottom=d+"px"}else{let d=i.top+i.height-t;e.style.maxHeight=i.height-d-20+"px"}}}initialize(e,i,t){this.widget=e,this.model.filter=i,!i.isDate&&this.isRelatedFilters?this.requestRelatedFilters(i):this.prepareFilters(),this.model.isAll=!this.isAnyChecked(),this.model.isExclude=i.isExclude,this.model.isInterval=i.isInterval,this.model.filter.values?.length&&(this.originalValues=this.model.filter.values)}ngOnInit(){}requestRelatedFilters(e){let i=this.getDataSource();if(this.prepareFilters(),!i)return;let t=[],n=this.fs.items,_=n.filter(a=>!a.isInterval&&a.targetProperty!==this.model.filter?.targetProperty&&a.value!==""),d=[];_.forEach(a=>{let f=a.value.toString();a.isExclude&&(f=f.split("|").map(E=>E+=".%NOT").join("|")),a.isInterval&&(f=f.replace("|",":")),a.value.toString().indexOf("|")!==-1&&(f="{"+f.replace(/\|/g,",")+"}"),d.push({Filter:a.targetProperty,Value:f})}),n.find(a=>a.targetProperty===this.model?.filter?.targetProperty)?.values?.filter(a=>!a._saved)?.length&&(this.model.isLoading=!0,this.ds.searchFilters("",i,d,[this.model.filter?.targetProperty]).catch(a=>this.onError(a,a.status)).then(a=>{this.onFilterValuesReceived(a),this.onSearch("")}).finally(()=>{this.model.isLoading=!1,this.cdr.detectChanges()}))}getDataSource(){let e="";try{if(this.widget.type.toLowerCase()===te.const.emptyWidgetClass){let i=this.model.filter?.source||"";e=this.dbs.getWidgets().filter(n=>n.name===i)[0]?.dataSource||""}else e=this.widget.dataSource}catch{e=""}return e}prepareFilters(){this.fs.filtersChanged=!1,this.model.values=[];for(let e=0;e{this.fitFiltersIntoScreen()})}onSearch(e){if(e==="")this.model.values=this.model.filter?.values;else{let i=e.toLowerCase();this.model.values=[];for(let t=0;tthis.onError(t,t.status)).then(t=>{this.onFilterValuesReceived(t),this.onSearch(i)}))}onFilterValuesReceived(e,i=!1){if(this.model.isLoading=!1,!e)return;let t=e.children.filter(g=>g.path===this.model.filter?.targetProperty);if(t.length===0)return;let n=t[0];if(!n.children||n.children.length===0)return;let _=this.model.filter?.values.slice(),d=[];n.children.forEach(g=>{let a=_.find(f=>f?.path===g?.path||!isNaN(g?.path)&&parseInt(f?.path,10)===g?.path);a&&Object.assign(g,a),d.push(g)}),d.length&&this.model.filter&&(this.model.filter.values=[...d],this.originalValues=structuredClone(d))}onError(e,i){this.model.isLoading=!1,this.es.show(`Error ${i.toString()}`)}removeFilter(){this.model.filter&&(this.model.filter.isInterval=!1),delete this.model.filter?.fromIdx,delete this.model.filter?.toIdx,this.clearSelectedItems(),this.fs.applyFilter(this.model.filter),this.restoreValuesOnClose=!1,this.close()}clearSelectedItems(){for(let e=0;ee.path===this.model.from),this.model.filter.toIdx=this.model.values.findIndex(e=>e.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 e=this.dateFilter.getValues();this.model.filter.values=e.map(i=>{let t=i.getFullYear()+"-"+("0"+(i.getMonth()+1)).slice(-2)+"-"+("0"+i.getDate()).slice(-2);return{name:this.datePipe.transform(i,"dd MMM yyyy"),path:`&[${t}]`,checked:!0}}),e.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.restoreValuesOnClose=!1,this.close()}close(){this._modal?.close()}initializeDateFilter(){if(!this.model?.filter?.isDate||!this.dateFilter)return;let e=this.model?.filter?.value;if(!e)return;let i=e.split("|").map(t=>this.createDate(t));this.dateFilter.setDateRange(i[0],i[1])}createDate(e){return this.us.toDate(e.replace("&[","").replace("]",""))}ngOnDestroy(){this.restoreValuesOnClose&&this.restoreSelectionState()}static{this.\u0275fac=function(i){return new(i||o)(C(le),C(j),C(ne),C(fe),C(ge),C(ie),C(oe),C(Z),C(X))}}static{this.\u0275cmp=W({type:o,selectors:[["dsw-filter-popup"]],viewQuery:function(i,t){if(i&1&&Y(_e,5),i&2){let n;G(n=J())&&(t.dateFilter=n.first)}},hostVars:2,hostBindings:function(i,t){i&2&&D("date-filter",t.isDateFilter)},inputs:{_modal:"_modal"},standalone:!0,features:[K],decls:15,vars:10,consts:[["dateFilter",""],["sr",""],["inp",""],[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,"datepicker-placeholder"],[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(i,t){i&1&&(F(0,be,4,0)(1,Oe,13,11),r(2,"div",3)(3,"button",4),w("click",function(){return t.acceptFilter()}),b(4,"img",5),u(5),x(6,"i18n"),s(),r(7,"button",6),w("click",function(){return t.removeFilter()}),b(8,"img",7),u(9),x(10,"i18n"),s(),r(11,"button",6),w("click",function(){return t.close()}),b(12,"img",8),u(13),x(14,"i18n"),s()()),i&2&&(M(t.model.filter!=null&&t.model.filter.isDate?0:1),l(5),V(" ",v(6,4,"accept")," "),l(4),V(" ",v(10,6,"dismiss")," "),l(4),V(" ",v(14,8,"close")," "))},dependencies:[ue,he,me,se,ae,pe,ce,de,re,ee,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: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}.datepicker-placeholder[_ngcontent-%COMP%]{width:400px;height:268px}"],changeDetection:0})}}return o})();export{$e as FilterPopupComponent,Ve as SelectedFirstPipe}; diff --git a/dist/chunk-UJWY6PMO.js b/dist/chunk-O73WWIXQ.js similarity index 98% rename from dist/chunk-UJWY6PMO.js rename to dist/chunk-O73WWIXQ.js index d7b32072..26ea780c 100644 --- a/dist/chunk-UJWY6PMO.js +++ b/dist/chunk-O73WWIXQ.js @@ -1 +1 @@ -import{a as D,b as E}from"./chunk-MGBUQL4E.js";import{E as I,H as F,I as S,J as b,u as y}from"./chunk-5MYX3VUL.js";import{X as x,aa as h,za as m}from"./chunk-ZEAAPN4P.js";var A="%ZEN.Component.calendar",N=(()=>{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 m,this.onFiltersChanged=new m,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;df.path===w),a.toIdx=a.values.findIndex(f=>f.path===T),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")}static{this.\u0275fac=function(r){return new(r||c)(h(y),h(S),h(b),h(F),h(D),h(E),h(I))}}static{this.\u0275prov=x({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{N as a}; +import{a as D,b as E}from"./chunk-2ODAR4M4.js";import{E as I,H as F,I as S,J as b,u as y}from"./chunk-ZHVSJD4N.js";import{X as x,aa as h,za as m}from"./chunk-ZEAAPN4P.js";var A="%ZEN.Component.calendar",N=(()=>{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 m,this.onFiltersChanged=new m,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;df.path===w),a.toIdx=a.values.findIndex(f=>f.path===T),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")}static{this.\u0275fac=function(r){return new(r||c)(h(y),h(S),h(b),h(F),h(D),h(E),h(I))}}static{this.\u0275prov=x({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{N as a}; diff --git a/dist/chunk-3TBNLEJ6.js b/dist/chunk-OM7B3BIS.js similarity index 90% rename from dist/chunk-3TBNLEJ6.js rename to dist/chunk-OM7B3BIS.js index b58b5195..9f1f5ade 100644 --- a/dist/chunk-3TBNLEJ6.js +++ b/dist/chunk-OM7B3BIS.js @@ -1 +1 @@ -import{a as f}from"./chunk-MDOQS4TE.js";import{a as m}from"./chunk-G7BOERRR.js";import{a as u,b as p}from"./chunk-MGBUQL4E.js";import{G as c,H as l}from"./chunk-5MYX3VUL.js";import{X as h,aa as s,g as d,za as a}from"./chunk-ZEAAPN4P.js";import{h as r}from"./chunk-MG3ERZGY.js";var I=(()=>{class o{constructor(e,t,n,i,v,b){this.dbs=e,this.ms=t,this.sbs=n,this.bs=i,this.es=v,this.ds=b,this.onCancelEditing=new a,this.onNewWidget=new a,this.onEditedWidgetChanged=new a,this.onSave=new a,this.onUnsavedChanged=new d(!1),this.onDeleteWidget=new a}resetSavedState(){this.onUnsavedChanged.next(!1)}unsaved(){this.onUnsavedChanged.next(!0)}getWidgetsList(e=[],t=!0){let n=this.dbs.getWidgetsWithoutEmpty(e).map(i=>({name:i.name,label:i.name+(i.title?` (${i.title})`:"")}));return t?[{label:"",name:""},...n]:n}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 r(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-PFIAJSKR.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-GPIDYIDO.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}static{this.\u0275fac=function(t){return new(t||o)(s(p),s(f),s(m),s(u),s(c),s(l))}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{I as a}; +import{a as f}from"./chunk-MDOQS4TE.js";import{a as m}from"./chunk-G7BOERRR.js";import{a as u,b as p}from"./chunk-2ODAR4M4.js";import{G as c,H as l}from"./chunk-ZHVSJD4N.js";import{X as h,aa as s,g as d,za as a}from"./chunk-ZEAAPN4P.js";import{h as r}from"./chunk-MG3ERZGY.js";var I=(()=>{class o{constructor(e,t,n,i,v,b){this.dbs=e,this.ms=t,this.sbs=n,this.bs=i,this.es=v,this.ds=b,this.onCancelEditing=new a,this.onNewWidget=new a,this.onEditedWidgetChanged=new a,this.onSave=new a,this.onUnsavedChanged=new d(!1),this.onDeleteWidget=new a}resetSavedState(){this.onUnsavedChanged.next(!1)}unsaved(){this.onUnsavedChanged.next(!0)}getWidgetsList(e=[],t=!0){let n=this.dbs.getWidgetsWithoutEmpty(e).map(i=>({name:i.name,label:i.name+(i.title?` (${i.title})`:"")}));return t?[{label:"",name:""},...n]:n}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 r(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-VXDT4VRR.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-3X2IJ3CK.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}static{this.\u0275fac=function(t){return new(t||o)(s(p),s(f),s(m),s(u),s(c),s(l))}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{I as a}; diff --git a/dist/chunk-WNOAMV4K.js b/dist/chunk-PUB2DBEU.js similarity index 99% rename from dist/chunk-WNOAMV4K.js rename to dist/chunk-PUB2DBEU.js index 6eb09d17..1de7272b 100644 --- a/dist/chunk-WNOAMV4K.js +++ b/dist/chunk-PUB2DBEU.js @@ -1,2 +1,2 @@ -import{a as je}from"./chunk-BCYEWSDA.js";import{b as Re,c as He,f as he}from"./chunk-5MYX3VUL.js";import{A as Z,Aa as Ae,B as Ce,Bb as oe,C as Te,Cb as I,Ea as L,F as ve,Fb as re,Gb as ae,Hb as p,Ib as _,Jb as H,Kb as De,Kc as Me,Lb as Oe,Mb as ue,Nb as j,Pc as f,Q as be,Qc as q,Rb as V,S as M,Sb as a,T as Se,Tb as ce,Ub as de,Vb as ke,W as ye,Wb as F,X as J,Xb as R,Y as we,Yb as m,Zb as g,_ as Fe,ab as u,ac as D,bb as d,bc as N,cc as U,db as c,dc as Le,f as Q,fa as X,fb as xe,ga as Ie,h as fe,ha as w,i as _e,kc as Be,lc as te,mb as ee,mc as z,nc as Ne,oc as Pe,pa as G,pc as Ve,qa as C,r as Ee,ra as T,rb as v,tc as P,va as se,wb as le,xb as y,y as W,za as S,zb as B}from"./chunk-ZEAAPN4P.js";import{a as ge}from"./chunk-MG3ERZGY.js";var Ke=["content"],Ze=["scroll"],Je=["padding"],Qe=["*"],$=i=>({searchTerm:i});function Xe(i,s){if(i&1&&(p(0,"div",3),ue(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}function et(i,s){if(i&1&&(p(0,"div",5),ue(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}var tt=["searchInput"],it=["clearButton"],nt=(i,s,e)=>({item:i,clear:s,label:e}),st=(i,s)=>({items:i,clear:s}),lt=(i,s,e,t)=>({item:i,item$:s,index:e,searchTerm:t});function ot(i,s){if(i&1&&(p(0,"div",20),N(1),_()),i&2){let e=a(2);u(),U(e.placeholder)}}function rt(i,s){}function at(i,s){if(i&1&&v(0,ot,2,1,"ng-template",null,1,P)(2,rt,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.placeholderTemplate||e)}}function ut(i,s){if(i&1){let e=j();p(0,"span",23),V("click",function(){C(e);let n=a().$implicit,l=a(2);return T(l.unselect(n))}),N(1,"\xD7"),_(),H(2,"span",24)}if(i&2){let e=a().$implicit,t=a(2);u(2),y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function ct(i,s){}function dt(i,s){if(i&1&&(p(0,"div",22),v(1,ut,3,2,"ng-template",null,2,P)(3,ct,0,0,"ng-template",12),_()),i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-value-disabled",e.disabled),u(3),y("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Pe(4,nt,e.value,n.clearItem,e.label))}}function ht(i,s){if(i&1&&re(0,dt,4,8,"div",21,oe().trackByOption,!0),i&2){let e=a();ae(e.selectedItems)}}function pt(i,s){}function mt(i,s){if(i&1&&v(0,pt,0,0,"ng-template",12),i&2){let e=a();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Ne(2,st,e.selectedValues,e.clearItem))}}function gt(i,s){i&1&&H(0,"div",25)}function ft(i,s){}function _t(i,s){if(i&1&&v(0,gt,1,0,"ng-template",null,3,P)(2,ft,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function Et(i,s){if(i&1&&(p(0,"span",15,4)(2,"span",26),N(3,"\xD7"),_()()),i&2){let e=a();ke("title",e.clearAllText)}}function Ct(i,s){if(i&1&&H(0,"span",31),i&2){let e=a().$implicit,t=a(2);y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function Tt(i,s){}function vt(i,s){if(i&1){let e=j();p(0,"div",30),V("click",function(){let n=C(e).$implicit,l=a(2);return T(l.toggleItem(n))})("mouseover",function(){let n=C(e).$implicit,l=a(2);return T(l.onItemHover(n))}),v(1,Ct,1,2,"ng-template",null,5,P)(3,Tt,0,0,"ng-template",12),_()}if(i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===n.itemsList.markedItem),le("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),u(3),y("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",Ve(17,lt,e.value,e,e.index,n.searchTerm))}}function bt(i,s){if(i&1&&(p(0,"span")(1,"span",33),N(2),_(),N(3),_()),i&2){let e=a(3);u(2),U(e.addTagText),u(),Le('"',e.searchTerm,'"')}}function St(i,s){}function yt(i,s){if(i&1){let e=j();p(0,"div",32),V("mouseover",function(){C(e);let n=a(2);return T(n.itemsList.unmarkItem())})("click",function(){C(e);let n=a(2);return T(n.selectTag())}),v(1,bt,4,2,"ng-template",null,6,P)(3,St,0,0,"ng-template",12),_()}if(i&2){let e=D(2),t=a(2);B("ng-option-marked",!t.itemsList.markedItem),u(3),y("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",z(4,$,t.searchTerm))}}function wt(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.notFoundText)}}function Ft(i,s){}function It(i,s){if(i&1&&v(0,wt,2,1,"ng-template",null,7,P)(2,Ft,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function At(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.typeToSearchText)}}function xt(i,s){}function Dt(i,s){if(i&1&&v(0,At,2,1,"ng-template",null,8,P)(2,xt,0,0,"ng-template",19),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function Ot(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.loadingText)}}function kt(i,s){}function Lt(i,s){if(i&1&&v(0,Ot,2,1,"ng-template",null,9,P)(2,kt,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function Bt(i,s){if(i&1){let e=j();p(0,"ng-dropdown-panel",27),V("update",function(n){C(e);let l=a();return T(l.viewPortItems=n)})("scroll",function(n){C(e);let l=a();return T(l.scroll.emit(n))})("scrollToEnd",function(n){C(e);let l=a();return T(l.scrollToEnd.emit(n))})("outsideClick",function(){C(e);let n=a();return T(n.close())}),De(1),re(2,vt,4,22,"div",28,oe().trackByOption,!0),v(4,yt,4,6,"div",29),Oe(),v(5,It,3,4)(6,Dt,3,1)(7,Lt,3,4),_()}if(i&2){let e=a();B("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),u(2),ae(e.viewPortItems),u(2),I(e.showAddTag?4:-1),u(),I(e.showNoItemsFound()?5:-1),u(),I(e.showTypeToSearch()?6:-1),u(),I(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var We=/[&<>"']/g,Nt=RegExp(We.source),Pt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(i){return i&&Nt.test(i)?i.replace(We,s=>Pt[s]):i}function h(i){return i!=null}function Y(i){return typeof i=="object"&&h(i)}function Mt(i){return i instanceof Promise}function ne(i){return i instanceof Function}var Rt=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275dir=w({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[G]})}}return i})(),Ht=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),jt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Ut=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Wt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Gt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Yt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),$t=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Kt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function Ge(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Jt={"\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 ie(i){let s=e=>Jt[e]||e;return i.replace(/[^\u0000-\u007E]/g,s)}var pe=class{constructor(s,e){this._ngSelect=s,this._selectionModel=e,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 s=this.selectedItems.length-1;for(;s>=0;s--){let e=this.selectedItems[s];if(!e.disabled)return e}return null}setItems(s){this._items=s.map((e,t)=>this.mapItem(e,t)),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(s){if(s.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(s,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&h(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,s):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===s:e=t=>t.value===s||!t.children&&t.label&&t.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(s){let e=this.mapItem(s,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(e=>{e.selected=s&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ie(s).toLocaleLowerCase(),this.filteredItems.find(e=>ie(e.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s){this.resetFilteredItems();return}this._filteredItems=[],s=this._ngSelect.searchFn?s:ie(s).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(n)){if(t&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;e(s,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(b=>b===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(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=s?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(s,e){if(!Y(s))return s;if(e.indexOf(".")===-1)return s[e];{let t=e.split("."),n=s;for(let l=0,o=t.length;lthis.selectedItems.indexOf(e)===-1))}_showSelected(s){if(this._filteredItems.push(s),s.parent){let e=s.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(s.children)for(let e of s.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(e=>e!==s),s.parent?s.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==s))}_defaultSearchFn(s,e){return ie(e.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,e){let t=new Map;if(s.length===0)return t;if(Array.isArray(s[0].value[e])){for(let o of s){let r=(o.value[e]||[]).map((b,E)=>this.mapItem(b,E));t.set(o,r)}return t}let n=ne(this._ngSelect.groupBy),l=o=>{let r=n?e(o.value):o.value[e];return h(r)?r:void 0};for(let o of s){let r=l(o),b=t.get(r);b?b.push(o):t.set(r,[o])}return t}_flatten(s){let e=ne(this._ngSelect.groupBy),t=[];for(let n of Array.from(s.keys())){let l=t.length;if(n===void 0){let A=s.get(void 0)||[];t.push(...A.map(x=>(x.index=l++,x)));continue}let o=Y(n),r={label:o?"":String(n),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:Ge()},b=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,E=this._ngSelect.groupValue||(()=>o?n.value:{[b]:n}),k=s.get(n).map(A=>(A.parent=r,A.children=void 0,A.index=l++,A));r.children=k,r.value=E(n,k.map(A=>A.value)),t.push(r),t.push(...k)}return t}},O=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(O||{}),qe=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let l=this._dimensions,o=l.itemHeight*t,b=Math.max(0,e)/o*t,E=Math.min(t,Math.ceil(b)+(l.itemsPerViewport+1)),A=Math.max(0,E-l.itemsPerViewport),x=Math.min(A,Math.floor(b)),K=l.itemHeight*Math.ceil(x)-l.itemHeight*Math.min(x,n);return K=isNaN(K)?0:K,x=isNaN(x)?-1:x,E=isNaN(E)?-1:E,x-=n,x=Math.max(0,x),E+=n,E=Math.min(t,E),{topPadding:K,scrollHeight:o,start:x,end:E}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:l}=this.dimensions,o=e+t,r=n,b=r+l;return l>=o&&n===e?null:o>b?r+o-b:e<=r?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac})}}return i})(),Ue=["top","right","bottom","left"],Xt=typeof requestAnimationFrame<"u"?_e:fe,ze=(()=>{class i{constructor(e,t,n,l,o){this._renderer=e,this._zone=t,this._panelService=n,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new S,this.scroll=new S,this.scrollToEnd=new S,this.outsideClick=new S,this._destroy$=new Q,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=l.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:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}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 t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let l;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;l=this._panelService.getScrollTo(n*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),r=t?o.offsetTop:this._lastScrollPosition;l=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,r)}h(l)&&(this._scrollablePanel.scrollTop=l)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ue.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ue.forEach(n=>{let l=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,l),this._renderer.removeClass(this._select,l)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{W(this.scrollElementRef.nativeElement,"scroll").pipe(M(this._destroy$),Te(0,Xt)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Z(W(this._document,"touchstart",{capture:!0}),W(this._document,"click",{capture:!0})).pipe(M(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),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 t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),h(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 n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let l=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,l),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,l=t.top+window.pageYOffset,o=t.height,r=e.getBoundingClientRect().height;return l+o+r>n+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(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let l=t.bottom-e.bottom;this._dropdown.style.bottom=l+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let l=e.top-t.top;this._dropdown.style.top=l+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{W(this._dropdown,"mousedown").pipe(M(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(d(xe),d(Ae),d(qe),d(L),d(Re,8))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(R(Ke,7,L),R(Ze,7,L),R(Je,7,L)),t&2){let l;m(l=g())&&(n.contentElementRef=l.first),m(l=g())&&(n.scrollElementRef=l.first),m(l=g())&&(n.paddingElementRef=l.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",f],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[ee,G,te],ngContentSelectors:Qe,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(t,n){t&1&&(ce(),v(0,Xe,2,4,"div",3),p(1,"div",4,0),H(3,"div",null,1),p(5,"div",null,2),de(7),_()(),v(8,et,2,4,"div",5)),t&2&&(I(n.headerTemplate?0:-1),u(3),B("total-padding",n.virtualScroll),u(2),B("scrollable-content",n.virtualScroll&&n.items.length),u(3),I(n.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0})}}return i})(),ei=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Q}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()}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",f]},standalone:!0,features:[ee,G,te],ngContentSelectors:Qe,decls:1,vars:0,template:function(t,n){t&1&&(ce(),de(0))},encapsulation:2,changeDetection:0})}}return i})();function Ye(){return new me}var me=class{constructor(){this._selected=[]}get value(){return this._selected}select(s,e,t){if(s.selected=!0,(!s.children||!e&&t)&&this._selected.push(s),e)if(s.parent){let n=s.parent.children.length,l=s.parent.children.filter(o=>o.selected).length;s.parent.selected=n===l}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),t&&this._activeChildren(s)?this._selected=[...this._selected.filter(n=>n.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(n=>!n.disabled)])}unselect(s,e){if(this._selected=this._selected.filter(t=>t!==s),s.selected=!1,e)if(s.parent&&s.parent.selected){let t=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...t.filter(n=>n!==s&&!n.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(s,e){for(let t of s)t.disabled||(t.selected=e)}_removeChildren(s){this._selected=[...this._selected.filter(e=>e.parent!==s),...s.children.filter(e=>e.parent===s&&e.disabled&&e.selected)]}_removeParent(s){this._selected=this._selected.filter(e=>e!==s)}_activeChildren(s){return s.children.every(e=>!e.disabled||e.selected)}},ti=(()=>{class i{constructor(){this.fixedPlaceholder=!0,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"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ii=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),$e=new Fe("ng-select-selection-model"),wi=(()=>{class i{constructor(e,t,n,l,o,r,b){this.classes=e,this.autoFocus=t,this.config=n,this._cd=r,this._console=b,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,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.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new S,this.focusEvent=new S,this.changeEvent=new S,this.openEvent=new S,this.closeEvent=new S,this.searchEvent=new S,this.clearEvent=new S,this.addEvent=new S,this.removeEvent=new S,this.scroll=new S,this.scrollToEnd=new S,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ge(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Q,this._keyPress$=new Q,this._items=[],this.keyDownFn=E=>!0,this.clearItem=E=>{let k=this.selectedItems.find(A=>A.value===E);this.unselect(k)},this.trackByOption=(E,k)=>this.trackByFn?this.trackByFn(k.value):k,this._onChange=E=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new pe(this,l?l():Ye()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!ne(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return h(this._clearSearchOnAdd)?this._clearSearchOnAdd:h(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return h(this._deselectOnClick)?this._deselectOnClick:h(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}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}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}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}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=h(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),h(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 t=e.target;this.clearButton&&this.clearButton.nativeElement===t?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){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.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())}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(),this._onSelectionChanged()}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),this._onSelectionChanged())}selectTag(){let e;ne(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Mt(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}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(t=>t.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 t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=h(t)?!Y(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&h(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(l=>({$ngOptionValue:l.value,$ngOptionLabel:l.elementRef.nativeElement.innerHTML,disabled:l.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=Z(this.ngOptions.changes,this._destroy$);Z(...this.ngOptions.map(l=>l.stateChange$)).pipe(M(n)).subscribe(l=>{let o=this.itemsList.findItem(l.value);o.disabled=l.disabled,o.label=l.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(be(this.ngOptions),M(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!h(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!h(this.compareWith)&&Y(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let l=this.itemsList.findItem(n);if(l)this.itemsList.select(l);else{let o=Y(n),r=!o&&!this.bindValue;o||r?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(l={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(l,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(M(this._destroy$),Se(e=>this._pressedKeys.push(e)),ve(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let l=null;if(n.children){let o=this.groupValue?this.bindValue:this.groupBy;l=n.value[o||this.groupBy]}else l=this.itemsList.resolveNested(n.value,this.bindValue);e.push(l)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(h(e[0])?e[0]:null),this.changeEvent.emit(t[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 t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,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=h(this.virtualScroll)?this.virtualScroll:h(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=h(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}static{this.\u0275fac=function(t){return new(t||i)(se("class"),se("autofocus"),d(ti),d($e,8),d(L),d(Me),d(ii))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,l){if(t&1&&(F(l,Ht,5,c),F(l,jt,5,c),F(l,Ut,5,c),F(l,zt,5,c),F(l,Qt,5,c),F(l,Wt,5,c),F(l,Gt,5,c),F(l,qt,5,c),F(l,Yt,5,c),F(l,$t,5,c),F(l,Kt,5,c),F(l,Zt,5,c),F(l,ei,5)),t&2){let o;m(o=g())&&(n.optionTemplate=o.first),m(o=g())&&(n.optgroupTemplate=o.first),m(o=g())&&(n.labelTemplate=o.first),m(o=g())&&(n.multiLabelTemplate=o.first),m(o=g())&&(n.headerTemplate=o.first),m(o=g())&&(n.footerTemplate=o.first),m(o=g())&&(n.notFoundTemplate=o.first),m(o=g())&&(n.placeholderTemplate=o.first),m(o=g())&&(n.typeToSearchTemplate=o.first),m(o=g())&&(n.loadingTextTemplate=o.first),m(o=g())&&(n.tagTemplate=o.first),m(o=g())&&(n.loadingSpinnerTemplate=o.first),m(o=g())&&(n.ngOptions=o)}},viewQuery:function(t,n){if(t&1&&(R(ze,5),R(tt,7),R(it,5)),t&2){let l;m(l=g())&&(n.dropdownPanel=l.first),m(l=g())&&(n.searchInput=l.first),m(l=g())&&(n.clearButton=l.first)}},hostVars:20,hostBindings:function(t,n){t&1&&V("keydown",function(o){return n.handleKeyDown(o)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",f],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",f],closeOnSelect:[2,"closeOnSelect","closeOnSelect",f],hideSelected:[2,"hideSelected","hideSelected",f],selectOnTab:[2,"selectOnTab","selectOnTab",f],openOnEnter:[2,"openOnEnter","openOnEnter",f],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",q],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",q],virtualScroll:[2,"virtualScroll","virtualScroll",f],selectableGroup:[2,"selectableGroup","selectableGroup",f],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",f],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",f],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",q],readonly:[2,"readonly","readonly",f],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",f],minTermLength:[2,"minTermLength","minTermLength",q],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",f],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",f],addTag:"addTag",searchable:[2,"searchable","searchable",f],clearable:[2,"clearable","clearable",f],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[Be([{provide:je,useExisting:ye(()=>i),multi:!0},qe]),ee,G,te],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[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"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",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(t,n){if(t&1){let l=j();p(0,"div",10),V("mousedown",function(r){return C(l),T(n.handleMousedown(r))}),p(1,"div",11),v(2,at,3,1)(3,ht,2,0)(4,mt,1,5,null,12),p(5,"div",13)(6,"input",14,0),V("blur",function(r){return C(l),T(n.onInputBlur(r))})("change",function(r){return C(l),T(r.stopPropagation())})("compositionend",function(){C(l);let r=D(7);return T(n.onCompositionEnd(r.value))})("compositionstart",function(){return C(l),T(n.onCompositionStart())})("focus",function(r){return C(l),T(n.onInputFocus(r))})("input",function(){C(l);let r=D(7);return T(n.filter(r.value))}),_()()(),v(8,_t,3,1)(9,Et,4,1,"span",15),p(10,"span",16),H(11,"span",17),_()(),v(12,Bt,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),u(2),I(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),u(),I((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),u(),I(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),u(2),y("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),le("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),u(2),I(n.loading?8:-1),u(),I(n.showClear()?9:-1),u(3),I(n.isOpen?12:-1))},dependencies:[he,Rt,ze,He],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:unset;user-select:unset;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 je}from"./chunk-VUYLTOWP.js";import{b as Re,c as He,f as he}from"./chunk-ZHVSJD4N.js";import{A as Z,Aa as Ae,B as Ce,Bb as oe,C as Te,Cb as I,Ea as L,F as ve,Fb as re,Gb as ae,Hb as p,Ib as _,Jb as H,Kb as De,Kc as Me,Lb as Oe,Mb as ue,Nb as j,Pc as f,Q as be,Qc as q,Rb as V,S as M,Sb as a,T as Se,Tb as ce,Ub as de,Vb as ke,W as ye,Wb as F,X as J,Xb as R,Y as we,Yb as m,Zb as g,_ as Fe,ab as u,ac as D,bb as d,bc as N,cc as U,db as c,dc as Le,f as Q,fa as X,fb as xe,ga as Ie,h as fe,ha as w,i as _e,kc as Be,lc as te,mb as ee,mc as z,nc as Ne,oc as Pe,pa as G,pc as Ve,qa as C,r as Ee,ra as T,rb as v,tc as P,va as se,wb as le,xb as y,y as W,za as S,zb as B}from"./chunk-ZEAAPN4P.js";import{a as ge}from"./chunk-MG3ERZGY.js";var Ke=["content"],Ze=["scroll"],Je=["padding"],Qe=["*"],$=i=>({searchTerm:i});function Xe(i,s){if(i&1&&(p(0,"div",3),ue(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.headerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}function et(i,s){if(i&1&&(p(0,"div",5),ue(1,6),_()),i&2){let e=a();u(),y("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",z(2,$,e.filterValue))}}var tt=["searchInput"],it=["clearButton"],nt=(i,s,e)=>({item:i,clear:s,label:e}),st=(i,s)=>({items:i,clear:s}),lt=(i,s,e,t)=>({item:i,item$:s,index:e,searchTerm:t});function ot(i,s){if(i&1&&(p(0,"div",20),N(1),_()),i&2){let e=a(2);u(),U(e.placeholder)}}function rt(i,s){}function at(i,s){if(i&1&&v(0,ot,2,1,"ng-template",null,1,P)(2,rt,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.placeholderTemplate||e)}}function ut(i,s){if(i&1){let e=j();p(0,"span",23),V("click",function(){C(e);let n=a().$implicit,l=a(2);return T(l.unselect(n))}),N(1,"\xD7"),_(),H(2,"span",24)}if(i&2){let e=a().$implicit,t=a(2);u(2),y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function ct(i,s){}function dt(i,s){if(i&1&&(p(0,"div",22),v(1,ut,3,2,"ng-template",null,2,P)(3,ct,0,0,"ng-template",12),_()),i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-value-disabled",e.disabled),u(3),y("ngTemplateOutlet",n.labelTemplate||t)("ngTemplateOutletContext",Pe(4,nt,e.value,n.clearItem,e.label))}}function ht(i,s){if(i&1&&re(0,dt,4,8,"div",21,oe().trackByOption,!0),i&2){let e=a();ae(e.selectedItems)}}function pt(i,s){}function mt(i,s){if(i&1&&v(0,pt,0,0,"ng-template",12),i&2){let e=a();y("ngTemplateOutlet",e.multiLabelTemplate)("ngTemplateOutletContext",Ne(2,st,e.selectedValues,e.clearItem))}}function gt(i,s){i&1&&H(0,"div",25)}function ft(i,s){}function _t(i,s){if(i&1&&v(0,gt,1,0,"ng-template",null,3,P)(2,ft,0,0,"ng-template",19),i&2){let e=D(1),t=a();u(2),y("ngTemplateOutlet",t.loadingSpinnerTemplate||e)}}function Et(i,s){if(i&1&&(p(0,"span",15,4)(2,"span",26),N(3,"\xD7"),_()()),i&2){let e=a();ke("title",e.clearAllText)}}function Ct(i,s){if(i&1&&H(0,"span",31),i&2){let e=a().$implicit,t=a(2);y("ngItemLabel",e.label)("escape",t.escapeHTML)}}function Tt(i,s){}function vt(i,s){if(i&1){let e=j();p(0,"div",30),V("click",function(){let n=C(e).$implicit,l=a(2);return T(l.toggleItem(n))})("mouseover",function(){let n=C(e).$implicit,l=a(2);return T(l.onItemHover(n))}),v(1,Ct,1,2,"ng-template",null,5,P)(3,Tt,0,0,"ng-template",12),_()}if(i&2){let e=s.$implicit,t=D(2),n=a(2);B("ng-option-disabled",e.disabled)("ng-option-selected",e.selected)("ng-optgroup",e.children)("ng-option",!e.children)("ng-option-child",!!e.parent)("ng-option-marked",e===n.itemsList.markedItem),le("role",e.children?"group":"option")("aria-selected",e.selected)("id",e==null?null:e.htmlId),u(3),y("ngTemplateOutlet",e.children?n.optgroupTemplate||t:n.optionTemplate||t)("ngTemplateOutletContext",Ve(17,lt,e.value,e,e.index,n.searchTerm))}}function bt(i,s){if(i&1&&(p(0,"span")(1,"span",33),N(2),_(),N(3),_()),i&2){let e=a(3);u(2),U(e.addTagText),u(),Le('"',e.searchTerm,'"')}}function St(i,s){}function yt(i,s){if(i&1){let e=j();p(0,"div",32),V("mouseover",function(){C(e);let n=a(2);return T(n.itemsList.unmarkItem())})("click",function(){C(e);let n=a(2);return T(n.selectTag())}),v(1,bt,4,2,"ng-template",null,6,P)(3,St,0,0,"ng-template",12),_()}if(i&2){let e=D(2),t=a(2);B("ng-option-marked",!t.itemsList.markedItem),u(3),y("ngTemplateOutlet",t.tagTemplate||e)("ngTemplateOutletContext",z(4,$,t.searchTerm))}}function wt(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.notFoundText)}}function Ft(i,s){}function It(i,s){if(i&1&&v(0,wt,2,1,"ng-template",null,7,P)(2,Ft,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.notFoundTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function At(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.typeToSearchText)}}function xt(i,s){}function Dt(i,s){if(i&1&&v(0,At,2,1,"ng-template",null,8,P)(2,xt,0,0,"ng-template",19),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.typeToSearchTemplate||e)}}function Ot(i,s){if(i&1&&(p(0,"div",34),N(1),_()),i&2){let e=a(3);u(),U(e.loadingText)}}function kt(i,s){}function Lt(i,s){if(i&1&&v(0,Ot,2,1,"ng-template",null,9,P)(2,kt,0,0,"ng-template",12),i&2){let e=D(1),t=a(2);u(2),y("ngTemplateOutlet",t.loadingTextTemplate||e)("ngTemplateOutletContext",z(2,$,t.searchTerm))}}function Bt(i,s){if(i&1){let e=j();p(0,"ng-dropdown-panel",27),V("update",function(n){C(e);let l=a();return T(l.viewPortItems=n)})("scroll",function(n){C(e);let l=a();return T(l.scroll.emit(n))})("scrollToEnd",function(n){C(e);let l=a();return T(l.scrollToEnd.emit(n))})("outsideClick",function(){C(e);let n=a();return T(n.close())}),De(1),re(2,vt,4,22,"div",28,oe().trackByOption,!0),v(4,yt,4,6,"div",29),Oe(),v(5,It,3,4)(6,Dt,3,1)(7,Lt,3,4),_()}if(i&2){let e=a();B("ng-select-multiple",e.multiple),y("virtualScroll",e.virtualScroll)("bufferAmount",e.bufferAmount)("appendTo",e.appendTo)("position",e.dropdownPosition)("headerTemplate",e.headerTemplate)("footerTemplate",e.footerTemplate)("filterValue",e.searchTerm)("items",e.itemsList.filteredItems)("markedItem",e.itemsList.markedItem)("ngClass",e.appendTo?e.ngClass?e.ngClass:e.classes:null)("id",e.dropdownId),u(2),ae(e.viewPortItems),u(2),I(e.showAddTag?4:-1),u(),I(e.showNoItemsFound()?5:-1),u(),I(e.showTypeToSearch()?6:-1),u(),I(e.loading&&e.itemsList.filteredItems.length===0?7:-1)}}var We=/[&<>"']/g,Nt=RegExp(We.source),Pt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(i){return i&&Nt.test(i)?i.replace(We,s=>Pt[s]):i}function h(i){return i!=null}function Y(i){return typeof i=="object"&&h(i)}function Mt(i){return i instanceof Promise}function ne(i){return i instanceof Function}var Rt=(()=>{class i{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275dir=w({type:i,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},standalone:!0,features:[G]})}}return i})(),Ht=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-option-tmp",""]],standalone:!0})}}return i})(),jt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-optgroup-tmp",""]],standalone:!0})}}return i})(),Ut=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-label-tmp",""]],standalone:!0})}}return i})(),zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-multi-label-tmp",""]],standalone:!0})}}return i})(),Qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-header-tmp",""]],standalone:!0})}}return i})(),Wt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-footer-tmp",""]],standalone:!0})}}return i})(),Gt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-notfound-tmp",""]],standalone:!0})}}return i})(),qt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-placeholder-tmp",""]],standalone:!0})}}return i})(),Yt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-typetosearch-tmp",""]],standalone:!0})}}return i})(),$t=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingtext-tmp",""]],standalone:!0})}}return i})(),Kt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-tag-tmp",""]],standalone:!0})}}return i})(),Zt=(()=>{class i{constructor(e){this.template=e}static{this.\u0275fac=function(t){return new(t||i)(d(c))}}static{this.\u0275dir=w({type:i,selectors:[["","ng-loadingspinner-tmp",""]],standalone:!0})}}return i})();function Ge(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Jt={"\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 ie(i){let s=e=>Jt[e]||e;return i.replace(/[^\u0000-\u007E]/g,s)}var pe=class{constructor(s,e){this._ngSelect=s,this._selectionModel=e,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 s=this.selectedItems.length-1;for(;s>=0;s--){let e=this.selectedItems[s];if(!e.disabled)return e}return null}setItems(s){this._items=s.map((e,t)=>this.mapItem(e,t)),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(s){if(s.selected||this.maxItemsSelected)return;let e=this._ngSelect.multiple;e||this.clearSelected(),this._selectionModel.select(s,e,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(s)}unselect(s){s.selected&&(this._selectionModel.unselect(s,this._ngSelect.multiple),this._ngSelect.hideSelected&&h(s.index)&&this._ngSelect.multiple&&this._showSelected(s))}findItem(s){let e;return this._ngSelect.compareWith?e=t=>this._ngSelect.compareWith(t.value,s):this._ngSelect.bindValue?e=t=>!t.children&&this.resolveNested(t.value,this._ngSelect.bindValue)===s:e=t=>t.value===s||!t.children&&t.label&&t.label===this.resolveNested(s,this._ngSelect.bindLabel),this._items.find(t=>e(t))}addItem(s){let e=this.mapItem(s,this._items.length);return this._items.push(e),this._filteredItems.push(e),e}clearSelected(s=!1){this._selectionModel.clear(s),this._items.forEach(e=>{e.selected=s&&e.selected&&e.disabled,e.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(s){return s=ie(s).toLocaleLowerCase(),this.filteredItems.find(e=>ie(e.label).toLocaleLowerCase().substr(0,s.length)===s)}filter(s){if(!s){this.resetFilteredItems();return}this._filteredItems=[],s=this._ngSelect.searchFn?s:ie(s).toLocaleLowerCase();let e=this._ngSelect.searchFn||this._defaultSearchFn,t=this._ngSelect.hideSelected;for(let n of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(n)){if(t&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;e(s,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(b=>b===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(s=>!s.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(s){this._markedIndex=this._filteredItems.indexOf(s)}markSelectedOrDefault(s){if(this._filteredItems.length===0)return;let e=this._getLastMarkedIndex();e>-1?this._markedIndex=e:this._markedIndex=s?this.filteredItems.findIndex(t=>!t.disabled):-1}resolveNested(s,e){if(!Y(s))return s;if(e.indexOf(".")===-1)return s[e];{let t=e.split("."),n=s;for(let l=0,o=t.length;lthis.selectedItems.indexOf(e)===-1))}_showSelected(s){if(this._filteredItems.push(s),s.parent){let e=s.parent;this._filteredItems.find(n=>n===e)||this._filteredItems.push(e)}else if(s.children)for(let e of s.children)e.selected=!1,this._filteredItems.push(e);this._filteredItems=[...this._filteredItems.sort((e,t)=>e.index-t.index)]}_hideSelected(s){this._filteredItems=this._filteredItems.filter(e=>e!==s),s.parent?s.parent.children.every(t=>t.selected)&&(this._filteredItems=this._filteredItems.filter(t=>t!==s.parent)):s.children&&(this._filteredItems=this.filteredItems.filter(e=>e.parent!==s))}_defaultSearchFn(s,e){return ie(e.label).toLocaleLowerCase().indexOf(s)>-1}_getNextItemIndex(s){return s>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(s){this._filteredItems.length===0||this._filteredItems.every(e=>e.disabled)||(this._markedIndex=this._getNextItemIndex(s),this.markedItem.disabled&&this._stepToItem(s))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let s=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&s<0?-1:Math.max(this.markedIndex,s)}_groupBy(s,e){let t=new Map;if(s.length===0)return t;if(Array.isArray(s[0].value[e])){for(let o of s){let r=(o.value[e]||[]).map((b,E)=>this.mapItem(b,E));t.set(o,r)}return t}let n=ne(this._ngSelect.groupBy),l=o=>{let r=n?e(o.value):o.value[e];return h(r)?r:void 0};for(let o of s){let r=l(o),b=t.get(r);b?b.push(o):t.set(r,[o])}return t}_flatten(s){let e=ne(this._ngSelect.groupBy),t=[];for(let n of Array.from(s.keys())){let l=t.length;if(n===void 0){let A=s.get(void 0)||[];t.push(...A.map(x=>(x.index=l++,x)));continue}let o=Y(n),r={label:o?"":String(n),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:Ge()},b=e?this._ngSelect.bindLabel:this._ngSelect.groupBy,E=this._ngSelect.groupValue||(()=>o?n.value:{[b]:n}),k=s.get(n).map(A=>(A.parent=r,A.children=void 0,A.index=l++,A));r.children=k,r.value=E(n,k.map(A=>A.value)),t.push(r),t.push(...k)}return t}},O=function(i){return i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Esc=27]="Esc",i[i.Space=32]="Space",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowDown=40]="ArrowDown",i[i.Backspace=8]="Backspace",i}(O||{}),qe=(()=>{class i{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,t,n){let l=this._dimensions,o=l.itemHeight*t,b=Math.max(0,e)/o*t,E=Math.min(t,Math.ceil(b)+(l.itemsPerViewport+1)),A=Math.max(0,E-l.itemsPerViewport),x=Math.min(A,Math.floor(b)),K=l.itemHeight*Math.ceil(x)-l.itemHeight*Math.min(x,n);return K=isNaN(K)?0:K,x=isNaN(x)?-1:x,E=isNaN(E)?-1:E,x-=n,x=Math.max(0,x),E+=n,E=Math.min(t,E),{topPadding:K,scrollHeight:o,start:x,end:E}}setDimensions(e,t){let n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}getScrollTo(e,t,n){let{panelHeight:l}=this.dimensions,o=e+t,r=n,b=r+l;return l>=o&&n===e?null:o>b?r+o-b:e<=r?e:null}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac})}}return i})(),Ue=["top","right","bottom","left"],Xt=typeof requestAnimationFrame<"u"?_e:fe,ze=(()=>{class i{constructor(e,t,n,l,o){this._renderer=e,this._zone=t,this._panelService=n,this._document=o,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new S,this.scroll=new S,this.scrollToEnd=new S,this.outsideClick=new S,this._destroy$=new Q,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=l.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:t}=this._panelService.dimensions,n=this.markedItem.index*e;return t>n?0:n}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 t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,t=!1){if(!e)return;let n=this.items.indexOf(e);if(n<0||n>=this.itemsLength)return;let l;if(this.virtualScroll){let o=this._panelService.dimensions.itemHeight;l=this._panelService.getScrollTo(n*o,o,this._lastScrollPosition)}else{let o=this._dropdown.querySelector(`#${e.htmlId}`),r=t?o.offsetTop:this._lastScrollPosition;l=this._panelService.getScrollTo(o.offsetTop,o.clientHeight,r)}h(l)&&(this._scrollablePanel.scrollTop=l)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Ue.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Ue.forEach(n=>{let l=`ng-select-${n}`;this._renderer.removeClass(this._dropdown,l),this._renderer.removeClass(this._select,l)});let t=`ng-select-${e}`;this._renderer.addClass(this._dropdown,t),this._renderer.addClass(this._select,t)}_handleScroll(){this._zone.runOutsideAngular(()=>{W(this.scrollElementRef.nativeElement,"scroll").pipe(M(this._destroy$),Te(0,Xt)).subscribe(e=>{let t=e.path||e.composedPath&&e.composedPath();if(!t||t.length===0&&!e.target)return;let n=!t||t.length===0?e.target.scrollTop:t[0].scrollTop;this._onContentScrolled(n)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{Z(W(this._document,"touchstart",{capture:!0}),W(this._document,"click",{capture:!0})).pipe(M(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let t=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&t&&t[0]&&this._select.contains(t[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let t=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,t),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 t=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(t.scrollHeight),this._contentPanel.style.transform=`translateY(${t.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(t.start,t.end)),this.scroll.emit({start:t.start,end:t.end})}),h(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 n=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${n*this.itemsLength}px`;let l=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(n,l),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let t=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=t.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop,l=t.top+window.pageYOffset,o=t.height,r=e.getBoundingClientRect().height;return l+o+r>n+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(),t=this._parent.getBoundingClientRect(),n=e.left-t.left;this._dropdown.style.left=n+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;if(this._currentPosition==="top"){let l=t.bottom-e.bottom;this._dropdown.style.bottom=l+n+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let l=e.top-t.top;this._dropdown.style.top=l+n+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{W(this._dropdown,"mousedown").pipe(M(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}static{this.\u0275fac=function(t){return new(t||i)(d(xe),d(Ae),d(qe),d(L),d(Re,8))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-dropdown-panel"]],viewQuery:function(t,n){if(t&1&&(R(Ke,7,L),R(Ze,7,L),R(Je,7,L)),t&2){let l;m(l=g())&&(n.contentElementRef=l.first),m(l=g())&&(n.scrollElementRef=l.first),m(l=g())&&(n.paddingElementRef=l.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",f],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},standalone:!0,features:[ee,G,te],ngContentSelectors:Qe,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(t,n){t&1&&(ce(),v(0,Xe,2,4,"div",3),p(1,"div",4,0),H(3,"div",null,1),p(5,"div",null,2),de(7),_()(),v(8,et,2,4,"div",5)),t&2&&(I(n.headerTemplate?0:-1),u(3),B("total-padding",n.virtualScroll),u(2),B("scrollable-content",n.virtualScroll&&n.items.length),u(3),I(n.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0})}}return i})(),ei=(()=>{class i{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new Q}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()}static{this.\u0275fac=function(t){return new(t||i)(d(L))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",f]},standalone:!0,features:[ee,G,te],ngContentSelectors:Qe,decls:1,vars:0,template:function(t,n){t&1&&(ce(),de(0))},encapsulation:2,changeDetection:0})}}return i})();function Ye(){return new me}var me=class{constructor(){this._selected=[]}get value(){return this._selected}select(s,e,t){if(s.selected=!0,(!s.children||!e&&t)&&this._selected.push(s),e)if(s.parent){let n=s.parent.children.length,l=s.parent.children.filter(o=>o.selected).length;s.parent.selected=n===l}else s.children&&(this._setChildrenSelectedState(s.children,!0),this._removeChildren(s),t&&this._activeChildren(s)?this._selected=[...this._selected.filter(n=>n.parent!==s),s]:this._selected=[...this._selected,...s.children.filter(n=>!n.disabled)])}unselect(s,e){if(this._selected=this._selected.filter(t=>t!==s),s.selected=!1,e)if(s.parent&&s.parent.selected){let t=s.parent.children;this._removeParent(s.parent),this._removeChildren(s.parent),this._selected.push(...t.filter(n=>n!==s&&!n.disabled)),s.parent.selected=!1}else s.children&&(this._setChildrenSelectedState(s.children,!1),this._removeChildren(s))}clear(s){this._selected=s?this._selected.filter(e=>e.disabled):[]}_setChildrenSelectedState(s,e){for(let t of s)t.disabled||(t.selected=e)}_removeChildren(s){this._selected=[...this._selected.filter(e=>e.parent!==s),...s.children.filter(e=>e.parent===s&&e.disabled&&e.selected)]}_removeParent(s){this._selected=this._selected.filter(e=>e!==s)}_activeChildren(s){return s.children.every(e=>!e.disabled||e.selected)}},ti=(()=>{class i{constructor(){this.fixedPlaceholder=!0,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"}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ii=(()=>{class i{warn(e){console.warn(e)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=J({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),$e=new Fe("ng-select-selection-model"),wi=(()=>{class i{constructor(e,t,n,l,o,r,b){this.classes=e,this.autoFocus=t,this.config=n,this._cd=r,this._console=b,this.markFirst=!0,this.fixedPlaceholder=!0,this.preventToggleOnRightClick=!1,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.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new S,this.focusEvent=new S,this.changeEvent=new S,this.openEvent=new S,this.closeEvent=new S,this.searchEvent=new S,this.clearEvent=new S,this.addEvent=new S,this.removeEvent=new S,this.scroll=new S,this.scrollToEnd=new S,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=Ge(),this.escapeHTML=!0,this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new Q,this._keyPress$=new Q,this._items=[],this.keyDownFn=E=>!0,this.clearItem=E=>{let k=this.selectedItems.find(A=>A.value===E);this.unselect(k)},this.trackByOption=(E,k)=>this.trackByFn?this.trackByFn(k.value):k,this._onChange=E=>{},this._onTouched=()=>{},this._mergeGlobalConfig(n),this.itemsList=new pe(this,l?l():Ye()),this.element=o.nativeElement}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get disabled(){return this.readonly||this._disabled}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!ne(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return h(this._clearSearchOnAdd)?this._clearSearchOnAdd:h(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return h(this._deselectOnClick)?this._deselectOnClick:h(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}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}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(t=>t.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(t=>t.label.toLowerCase()===e))&&!this.loading}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}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}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=h(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),h(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 t=e.target;this.clearButton&&this.clearButton.nativeElement===t?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){if(this.preventToggleOnRightClick&&e.button===2)return!1;let t=e.target;if(t.tagName!=="INPUT"&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(t.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}t.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())}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(),this._onSelectionChanged()}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),this._onSelectionChanged())}selectTag(){let e;ne(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let t=n=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(n,null):this.itemsList.addItem(n);Mt(e)?e.then(n=>this.select(t(n))).catch(()=>{}):e&&this.select(t(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}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(t=>t.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 t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=h(t)?!Y(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&h(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=n=>{this.items=n.map(l=>({$ngOptionValue:l.value,$ngOptionLabel:l.elementRef.nativeElement.innerHTML,disabled:l.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},t=()=>{let n=Z(this.ngOptions.changes,this._destroy$);Z(...this.ngOptions.map(l=>l.stateChange$)).pipe(M(n)).subscribe(l=>{let o=this.itemsList.findItem(l.value);o.disabled=l.disabled,o.label=l.label||o.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(be(this.ngOptions),M(this._destroy$)).subscribe(n=>{this.bindLabel=this._defaultLabel,e(n),t()})}_isValidWriteValue(e){if(!h(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let t=n=>!h(this.compareWith)&&Y(n)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(n)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(n=>t(n)):(this._console.warn("Multiple select ngModel should be array."),!1):t(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let t=n=>{let l=this.itemsList.findItem(n);if(l)this.itemsList.select(l);else{let o=Y(n),r=!o&&!this.bindValue;o||r?this.itemsList.select(this.itemsList.mapItem(n,null)):this.bindValue&&(l={[this.bindLabel]:null,[this.bindValue]:n},this.itemsList.select(this.itemsList.mapItem(l,null)))}};this.multiple?e.forEach(n=>t(n)):t(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(M(this._destroy$),Se(e=>this._pressedKeys.push(e)),ve(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let t=this.itemsList.findByLabel(e);t&&(this.isOpen?(this.itemsList.markItem(t),this._scrollToMarked(),this._cd.markForCheck()):this.select(t)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,t=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let n of Object.keys(t))e.setAttribute(n,t[n])}_updateNgModel(){let e=[];for(let n of this.selectedItems)if(this.bindValue){let l=null;if(n.children){let o=this.groupValue?this.bindValue:this.groupBy;l=n.value[o||this.groupBy]}else l=this.itemsList.resolveNested(n.value,this.bindValue);e.push(l)}else e.push(n.value);let t=this.selectedItems.map(n=>n.value);this.multiple?(this._onChange(e),this.changeEvent.emit(t)):(this._onChange(h(e[0])?e[0]:null),this.changeEvent.emit(t[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 t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.fixedPlaceholder=this.fixedPlaceholder||e.fixedPlaceholder,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=h(this.virtualScroll)?this.virtualScroll:h(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=h(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}static{this.\u0275fac=function(t){return new(t||i)(se("class"),se("autofocus"),d(ti),d($e,8),d(L),d(Me),d(ii))}}static{this.\u0275cmp=X({type:i,selectors:[["ng-select"]],contentQueries:function(t,n,l){if(t&1&&(F(l,Ht,5,c),F(l,jt,5,c),F(l,Ut,5,c),F(l,zt,5,c),F(l,Qt,5,c),F(l,Wt,5,c),F(l,Gt,5,c),F(l,qt,5,c),F(l,Yt,5,c),F(l,$t,5,c),F(l,Kt,5,c),F(l,Zt,5,c),F(l,ei,5)),t&2){let o;m(o=g())&&(n.optionTemplate=o.first),m(o=g())&&(n.optgroupTemplate=o.first),m(o=g())&&(n.labelTemplate=o.first),m(o=g())&&(n.multiLabelTemplate=o.first),m(o=g())&&(n.headerTemplate=o.first),m(o=g())&&(n.footerTemplate=o.first),m(o=g())&&(n.notFoundTemplate=o.first),m(o=g())&&(n.placeholderTemplate=o.first),m(o=g())&&(n.typeToSearchTemplate=o.first),m(o=g())&&(n.loadingTextTemplate=o.first),m(o=g())&&(n.tagTemplate=o.first),m(o=g())&&(n.loadingSpinnerTemplate=o.first),m(o=g())&&(n.ngOptions=o)}},viewQuery:function(t,n){if(t&1&&(R(ze,5),R(tt,7),R(it,5)),t&2){let l;m(l=g())&&(n.dropdownPanel=l.first),m(l=g())&&(n.searchInput=l.first),m(l=g())&&(n.clearButton=l.first)}},hostVars:20,hostBindings:function(t,n){t&1&&V("keydown",function(o){return n.handleKeyDown(o)}),t&2&&B("ng-select-typeahead",n.typeahead)("ng-select-multiple",n.multiple)("ng-select-taggable",n.addTag)("ng-select-searchable",n.searchable)("ng-select-clearable",n.clearable)("ng-select-opened",n.isOpen)("ng-select",n.useDefaultClass)("ng-select-filtered",n.filtered)("ng-select-single",n.single)("ng-select-disabled",n.disabled)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",ariaLabel:"ariaLabel",markFirst:[2,"markFirst","markFirst",f],placeholder:"placeholder",fixedPlaceholder:"fixedPlaceholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",preventToggleOnRightClick:"preventToggleOnRightClick",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",f],closeOnSelect:[2,"closeOnSelect","closeOnSelect",f],hideSelected:[2,"hideSelected","hideSelected",f],selectOnTab:[2,"selectOnTab","selectOnTab",f],openOnEnter:[2,"openOnEnter","openOnEnter",f],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",q],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",q],virtualScroll:[2,"virtualScroll","virtualScroll",f],selectableGroup:[2,"selectableGroup","selectableGroup",f],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",f],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",f],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",q],readonly:[2,"readonly","readonly",f],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",f],minTermLength:[2,"minTermLength","minTermLength",q],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",f],ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",f],addTag:"addTag",searchable:[2,"searchable","searchable",f],clearable:[2,"clearable","clearable",f],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick",keyDownFn:"keyDownFn"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},standalone:!0,features:[Be([{provide:je,useExisting:ye(()=>i),multi:!0},qe]),ee,G,te],decls:13,vars:19,consts:[["searchInput",""],["defaultPlaceholderTemplate",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-input"],["aria-autocomplete","list","role","combobox",3,"blur","change","compositionend","compositionstart","focus","input","disabled","readOnly","value"],["role","button","tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[3,"ngTemplateOutlet"],[1,"ng-placeholder"],[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"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",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(t,n){if(t&1){let l=j();p(0,"div",10),V("mousedown",function(r){return C(l),T(n.handleMousedown(r))}),p(1,"div",11),v(2,at,3,1)(3,ht,2,0)(4,mt,1,5,null,12),p(5,"div",13)(6,"input",14,0),V("blur",function(r){return C(l),T(n.onInputBlur(r))})("change",function(r){return C(l),T(r.stopPropagation())})("compositionend",function(){C(l);let r=D(7);return T(n.onCompositionEnd(r.value))})("compositionstart",function(){return C(l),T(n.onCompositionStart())})("focus",function(r){return C(l),T(n.onInputFocus(r))})("input",function(){C(l);let r=D(7);return T(n.filter(r.value))}),_()()(),v(8,_t,3,1)(9,Et,4,1,"span",15),p(10,"span",16),H(11,"span",17),_()(),v(12,Bt,8,17,"ng-dropdown-panel",18)}t&2&&(B("ng-appearance-outline",n.appearance==="outline")("ng-has-value",n.hasValue),u(2),I(n.selectedItems.length===0&&!n.searchTerm||n.fixedPlaceholder===!0?2:-1),u(),I((!n.multiLabelTemplate||!n.multiple)&&n.selectedItems.length>0?3:-1),u(),I(n.multiple&&n.multiLabelTemplate&&n.selectedValues.length>0?4:-1),u(2),y("disabled",n.disabled)("readOnly",!n.searchable||n.itemsList.maxItemsSelected)("value",n.searchTerm?n.searchTerm:""),le("aria-activedescendant",n.isOpen?n.itemsList==null||n.itemsList.markedItem==null?null:n.itemsList.markedItem.htmlId:null)("aria-controls",n.isOpen?n.dropdownId:null)("aria-expanded",n.isOpen)("aria-label",n.ariaLabel)("id",n.labelForId)("tabindex",n.tabIndex),u(2),I(n.loading?8:-1),u(),I(n.showClear()?9:-1),u(3),I(n.isOpen?12:-1))},dependencies:[he,Rt,ze,He],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:unset;user-select:unset;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})}}return i})(),Fi=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=Ie({type:i})}static{this.\u0275inj=we({providers:[{provide:$e,useValue:Ye}]})}}return i})();export{wi as a,Fi as b}; diff --git a/dist/chunk-G4AAKGAF.js b/dist/chunk-Q3VVOVWK.js similarity index 99% rename from dist/chunk-G4AAKGAF.js rename to dist/chunk-Q3VVOVWK.js index 6f5638f0..b341a3e8 100644 --- a/dist/chunk-G4AAKGAF.js +++ b/dist/chunk-Q3VVOVWK.js @@ -1 +1 @@ -import{H as J,f as W,x as H}from"./chunk-5MYX3VUL.js";import{Aa as z,Bb as D,Cb as v,Ea as $,F as q,Fb as _,Gb as x,Hb as d,Ib as s,Jb as y,Kc as I,Mb as L,Nb as g,Rb as f,Sb as l,Xb as M,Yb as P,Zb as S,ab as o,ac as R,bb as p,bc as T,dc as O,fa as k,lc as E,mc as V,nc as j,pa as A,qa as b,ra as u,rb as h,tc as N,xb as m,y as B,za as F,zb as C}from"./chunk-ZEAAPN4P.js";import{h as Q}from"./chunk-MG3ERZGY.js";var X=["elements"],Y=i=>({tab:i,edit:null});function ee(i,c){if(i&1){let e=g();d(0,"div",4,0),f("click",function(){let n=b(e).$implicit,r=l();return u(r.tabClick(n))}),T(2),s()}if(i&2){let e=c.$implicit,t=l();C("hidden-offscreen",e.hidden)("active",t.currentTab===e),o(2),O(" ",e.text," ")}}function te(i,c){if(i&1){let e=g();d(0,"div",5),f("click",function(n){b(e);let r=l();return u(r.onOpenTabsClick(n))}),y(1,"img",6),s()}}function ie(i,c){if(i&1){let e=g();d(0,"div",8),f("click",function(){let n=b(e).$implicit,r=l(2);return u(r.tabClick(n))}),T(1),s()}if(i&2){let e=c.$implicit,t=l(2);C("active",t.currentTab===e),m("routerLink","./")("queryParams",t.useQuery?V(5,Y,e.id):void 0),o(),O(" ",e.text," ")}}function ne(i,c){if(i&1&&(d(0,"div",3),_(1,ie,2,7,"div",7,D().trackByIdentity,!0),s()),i&2){let e=l();o(),x(e.hiddenTabs)}}var re=37;var K=(()=>{class i{constructor(e,t,n){this.el=e,this.cd=t,this.zone=n,this.tabs=[],this.useQuery=!1,this.currentTabChange=new F,this.isMoreButtonVisible=!1,this.isOpened=!1,this.trackByIdentity=(r,a)=>a.id,this.zone.runOutsideAngular(()=>{this.subClick=B(window,"click").subscribe(r=>{let a=r.target;for(;a;){if(a.classList.contains("btn-more"))return;if(!a.parentElement)break;a=a.parentElement}this.isOpened=!1}),this.subResize=B(window,"resize").pipe(q(50)).subscribe(r=>{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(a=>a.nativeElement),r=0;this.isMoreButtonVisible=!1,n.forEach((a,w)=>{let U=w===n.length-1,Z=a.getBoundingClientRect();r+=Z.width,r>t+8-(U?0:re)?(this.tabs[w].hidden=!0,this.isMoreButtonVisible=!0):this.tabs[w].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})}}return i})();var ce=["table"],ae=i=>({data:i,level:0}),oe=(i,c)=>({data:i,level:c});function le(i,c){i&1&&y(0,"img",9)}function se(i,c){if(i&1){let e=g();d(0,"div",8),f("click",function(){let n=b(e).$implicit,r=l().level,a=l();return u(a.selectRow(n,r))}),h(1,le,1,0,"img",9),T(2),s()}if(i&2){let e=c.$implicit,t=l().level,n=l();C("selected",n.selected[t]===e),o(),v(e.children!=null&&e.children.length?1:-1),o(),O(" ",e.name," ")}}function de(i,c){if(i&1&&_(0,se,3,4,"div",7,D().trackByIndex,!0),i&2){let e=c.data;x(e)}}function he(i,c){i&1&&L(0)}function be(i,c){i&1&&L(0)}function ue(i,c){if(i&1&&(d(0,"div"),h(1,be,1,0,"ng-container",5),s()),i&2){let e=c.$implicit,t=c.$index;l();let n=R(3);o(),m("ngTemplateOutlet",n)("ngTemplateOutletContext",j(2,oe,e.children,t+1))}}function pe(i,c){i&1&&(d(0,"div",6),y(1,"img",10),s())}var Ie=(()=>{class i{constructor(e,t){this.ds=e,this.cd=t,this.select=new F,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,r)=>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(r=>{if(!(r.children?.length&&this.filterItems(r.children,t))&&!r.name.toLowerCase().includes(t)){n.push(r);return}}),n.forEach(r=>{e.splice(e.indexOf(r),1)}),!!e.length}static{this.\u0275fac=function(t){return new(t||i)(p(J),p(I))}}static{this.\u0275cmp=k({type:i,selectors:[["dsw-ds-sel-dialog"]],viewQuery:function(t,n){if(t&1&&M(ce,5),t&2){let r;P(r=S())&&(n.table=r.first)}},inputs:{_modal:"_modal"},outputs:{select:"select"},standalone:!0,features:[E],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 r=g();d(0,"section",2)(1,"dsw-tabs",3),f("currentTabChange",function(w){return b(r),u(n.requestData(w))}),s()(),h(2,de,2,0,"ng-template",null,0,N),d(4,"section",4,1)(6,"div"),h(7,he,1,0,"ng-container",5),s(),_(8,ue,2,5,"div",null,n.trackByIndex,!0),h(10,pe,2,0,"div",6),s()}if(t&2){let r=R(3);o(),m("tabs",n.tabs)("currentTab",n.currentTab)("useQuery",!1),o(6),m("ngTemplateOutlet",r)("ngTemplateOutletContext",V(6,ae,n.filteredData)),o(),x(n.selected),o(2),v(n.isLoading?10:-1)}},dependencies:[K,W],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})}}return i})();export{Ie as DataSourceSelectorDialog}; +import{H as J,f as W,x as H}from"./chunk-ZHVSJD4N.js";import{Aa as z,Bb as D,Cb as v,Ea as $,F as q,Fb as _,Gb as x,Hb as d,Ib as s,Jb as y,Kc as I,Mb as L,Nb as g,Rb as f,Sb as l,Xb as M,Yb as P,Zb as S,ab as o,ac as R,bb as p,bc as T,dc as O,fa as k,lc as E,mc as V,nc as j,pa as A,qa as b,ra as u,rb as h,tc as N,xb as m,y as B,za as F,zb as C}from"./chunk-ZEAAPN4P.js";import{h as Q}from"./chunk-MG3ERZGY.js";var X=["elements"],Y=i=>({tab:i,edit:null});function ee(i,c){if(i&1){let e=g();d(0,"div",4,0),f("click",function(){let n=b(e).$implicit,r=l();return u(r.tabClick(n))}),T(2),s()}if(i&2){let e=c.$implicit,t=l();C("hidden-offscreen",e.hidden)("active",t.currentTab===e),o(2),O(" ",e.text," ")}}function te(i,c){if(i&1){let e=g();d(0,"div",5),f("click",function(n){b(e);let r=l();return u(r.onOpenTabsClick(n))}),y(1,"img",6),s()}}function ie(i,c){if(i&1){let e=g();d(0,"div",8),f("click",function(){let n=b(e).$implicit,r=l(2);return u(r.tabClick(n))}),T(1),s()}if(i&2){let e=c.$implicit,t=l(2);C("active",t.currentTab===e),m("routerLink","./")("queryParams",t.useQuery?V(5,Y,e.id):void 0),o(),O(" ",e.text," ")}}function ne(i,c){if(i&1&&(d(0,"div",3),_(1,ie,2,7,"div",7,D().trackByIdentity,!0),s()),i&2){let e=l();o(),x(e.hiddenTabs)}}var re=37;var K=(()=>{class i{constructor(e,t,n){this.el=e,this.cd=t,this.zone=n,this.tabs=[],this.useQuery=!1,this.currentTabChange=new F,this.isMoreButtonVisible=!1,this.isOpened=!1,this.trackByIdentity=(r,a)=>a.id,this.zone.runOutsideAngular(()=>{this.subClick=B(window,"click").subscribe(r=>{let a=r.target;for(;a;){if(a.classList.contains("btn-more"))return;if(!a.parentElement)break;a=a.parentElement}this.isOpened=!1}),this.subResize=B(window,"resize").pipe(q(50)).subscribe(r=>{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(a=>a.nativeElement),r=0;this.isMoreButtonVisible=!1,n.forEach((a,w)=>{let U=w===n.length-1,Z=a.getBoundingClientRect();r+=Z.width,r>t+8-(U?0:re)?(this.tabs[w].hidden=!0,this.isMoreButtonVisible=!0):this.tabs[w].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})}}return i})();var ce=["table"],ae=i=>({data:i,level:0}),oe=(i,c)=>({data:i,level:c});function le(i,c){i&1&&y(0,"img",9)}function se(i,c){if(i&1){let e=g();d(0,"div",8),f("click",function(){let n=b(e).$implicit,r=l().level,a=l();return u(a.selectRow(n,r))}),h(1,le,1,0,"img",9),T(2),s()}if(i&2){let e=c.$implicit,t=l().level,n=l();C("selected",n.selected[t]===e),o(),v(e.children!=null&&e.children.length?1:-1),o(),O(" ",e.name," ")}}function de(i,c){if(i&1&&_(0,se,3,4,"div",7,D().trackByIndex,!0),i&2){let e=c.data;x(e)}}function he(i,c){i&1&&L(0)}function be(i,c){i&1&&L(0)}function ue(i,c){if(i&1&&(d(0,"div"),h(1,be,1,0,"ng-container",5),s()),i&2){let e=c.$implicit,t=c.$index;l();let n=R(3);o(),m("ngTemplateOutlet",n)("ngTemplateOutletContext",j(2,oe,e.children,t+1))}}function pe(i,c){i&1&&(d(0,"div",6),y(1,"img",10),s())}var Ie=(()=>{class i{constructor(e,t){this.ds=e,this.cd=t,this.select=new F,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,r)=>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(r=>{if(!(r.children?.length&&this.filterItems(r.children,t))&&!r.name.toLowerCase().includes(t)){n.push(r);return}}),n.forEach(r=>{e.splice(e.indexOf(r),1)}),!!e.length}static{this.\u0275fac=function(t){return new(t||i)(p(J),p(I))}}static{this.\u0275cmp=k({type:i,selectors:[["dsw-ds-sel-dialog"]],viewQuery:function(t,n){if(t&1&&M(ce,5),t&2){let r;P(r=S())&&(n.table=r.first)}},inputs:{_modal:"_modal"},outputs:{select:"select"},standalone:!0,features:[E],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 r=g();d(0,"section",2)(1,"dsw-tabs",3),f("currentTabChange",function(w){return b(r),u(n.requestData(w))}),s()(),h(2,de,2,0,"ng-template",null,0,N),d(4,"section",4,1)(6,"div"),h(7,he,1,0,"ng-container",5),s(),_(8,ue,2,5,"div",null,n.trackByIndex,!0),h(10,pe,2,0,"div",6),s()}if(t&2){let r=R(3);o(),m("tabs",n.tabs)("currentTab",n.currentTab)("useQuery",!1),o(6),m("ngTemplateOutlet",r)("ngTemplateOutletContext",V(6,ae,n.filteredData)),o(),x(n.selected),o(2),v(n.isLoading?10:-1)}},dependencies:[K,W],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})}}return i})();export{Ie as DataSourceSelectorDialog}; diff --git a/dist/chunk-6JJVZZLS.js b/dist/chunk-RWS3H5JL.js similarity index 94% rename from dist/chunk-6JJVZZLS.js rename to dist/chunk-RWS3H5JL.js index 44f31f79..70094fe1 100644 --- a/dist/chunk-6JJVZZLS.js +++ b/dist/chunk-RWS3H5JL.js @@ -1 +1 @@ -import{a as b}from"./chunk-G7BOERRR.js";import{Hb as t,Ib as n,Jb as i,Rb as r,bb as g,bc as o,fa as d,lc as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";var f=(()=>{class e{constructor(c){this.sbs=c}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:import("./chunk-6NIJZNZF.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-KSUMICDA.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-QY4ELVI2.js")})}static{this.\u0275fac=function(l){return new(l||e)(g(b))}}static{this.\u0275cmp=d({type:e,selectors:[["dsw-menu-settings"]],standalone:!0,features:[p],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(l,a){l&1&&(t(0,"ul")(1,"li",0),r("click",function(){return a.showAppSettings()}),i(2,"img",1),o(3," Application "),n(),t(4,"li",0),r("click",function(){return a.showThemeSettings()}),i(5,"img",2),o(6," Theme "),n(),t(7,"li",0),r("click",function(){return a.showChartsSettings()}),i(8,"img",3),o(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)}']})}}return e})();export{f as MenuSettingsComponent}; +import{a as b}from"./chunk-G7BOERRR.js";import{Hb as t,Ib as n,Jb as i,Rb as r,bb as g,bc as o,fa as d,lc as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";var f=(()=>{class e{constructor(c){this.sbs=c}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:import("./chunk-XOAKZLUG.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-EH3IYH23.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-BHI45ZQG.js")})}static{this.\u0275fac=function(l){return new(l||e)(g(b))}}static{this.\u0275cmp=d({type:e,selectors:[["dsw-menu-settings"]],standalone:!0,features:[p],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(l,a){l&1&&(t(0,"ul")(1,"li",0),r("click",function(){return a.showAppSettings()}),i(2,"img",1),o(3," Application "),n(),t(4,"li",0),r("click",function(){return a.showThemeSettings()}),i(5,"img",2),o(6," Theme "),n(),t(7,"li",0),r("click",function(){return a.showChartsSettings()}),i(8,"img",3),o(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)}']})}}return e})();export{f as MenuSettingsComponent}; diff --git a/dist/chunk-D27EKMDY.js b/dist/chunk-SHT3CMKG.js similarity index 98% rename from dist/chunk-D27EKMDY.js rename to dist/chunk-SHT3CMKG.js index 930f3f12..6128ec4a 100644 --- a/dist/chunk-D27EKMDY.js +++ b/dist/chunk-SHT3CMKG.js @@ -1 +1 @@ -import{a as D}from"./chunk-G7BOERRR.js";import{H as N,K as p,L as E,w as S}from"./chunk-5MYX3VUL.js";import{Cb as u,Eb as _,Fb as C,Gb as w,Hb as a,Ib as l,Jb as s,Kc as k,Nb as y,Rb as F,Sb as d,Ya as f,ab as c,bb as r,bc as M,dc as O,fa as h,lc as P,qa as b,ra as m,rb as v,xb as x}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function A(t,g){t&1&&s(0,"img",0)}function T(t,g){if(t&1){let e=y();a(0,"li",1),F("click",function(){let n=b(e).$implicit,o=d();return m(o.selectNamespace(n))}),s(1,"img",2),M(2),l()}if(t&2){let e=g.$implicit,i=d();c(),x("src",i.isSelected(e)?"assets/img/icons/check-black-18dp.svg":"",f),c(),O(" ",e," ")}}var V=(()=>{class t{constructor(e,i,n,o,I){this.ss=e,this.ns=i,this.ds=n,this.cdr=o,this.router=I,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()===p.toLowerCase()}requestData(){this.ds.getSettings(p).then(e=>{this.ns.setNamespaces(e.Mappings.Mapped)}).finally(()=>{this.isLoading=!1,this.items=this.ns.getNamespaces(),this.cdr.detectChanges()})}static{this.\u0275fac=function(i){return new(i||t)(r(D),r(E),r(N),r(k),r(S))}}static{this.\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(i,n){i&1&&(v(0,A,1,0,"img",0),a(1,"ul"),C(2,T,3,2,"li",null,_),l()),i&2&&(u(n.isLoading?0:-1),c(2),w(n.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})}}return t})();export{V as NamespaceSelectorComponent}; +import{a as D}from"./chunk-G7BOERRR.js";import{H as N,K as p,L as E,w as S}from"./chunk-ZHVSJD4N.js";import{Cb as u,Eb as _,Fb as C,Gb as w,Hb as a,Ib as l,Jb as s,Kc as k,Nb as y,Rb as F,Sb as d,Ya as f,ab as c,bb as r,bc as M,dc as O,fa as h,lc as P,qa as b,ra as m,rb as v,xb as x}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function A(t,g){t&1&&s(0,"img",0)}function T(t,g){if(t&1){let e=y();a(0,"li",1),F("click",function(){let n=b(e).$implicit,o=d();return m(o.selectNamespace(n))}),s(1,"img",2),M(2),l()}if(t&2){let e=g.$implicit,i=d();c(),x("src",i.isSelected(e)?"assets/img/icons/check-black-18dp.svg":"",f),c(),O(" ",e," ")}}var V=(()=>{class t{constructor(e,i,n,o,I){this.ss=e,this.ns=i,this.ds=n,this.cdr=o,this.router=I,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()===p.toLowerCase()}requestData(){this.ds.getSettings(p).then(e=>{this.ns.setNamespaces(e.Mappings.Mapped)}).finally(()=>{this.isLoading=!1,this.items=this.ns.getNamespaces(),this.cdr.detectChanges()})}static{this.\u0275fac=function(i){return new(i||t)(r(D),r(E),r(N),r(k),r(S))}}static{this.\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(i,n){i&1&&(v(0,A,1,0,"img",0),a(1,"ul"),C(2,T,3,2,"li",null,_),l()),i&2&&(u(n.isLoading?0:-1),c(2),w(n.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})}}return t})();export{V as NamespaceSelectorComponent}; diff --git a/dist/chunk-Y7U4RJXJ.js b/dist/chunk-U2LZH63D.js similarity index 95% rename from dist/chunk-Y7U4RJXJ.js rename to dist/chunk-U2LZH63D.js index ae83c23b..2eb575a0 100644 --- a/dist/chunk-Y7U4RJXJ.js +++ b/dist/chunk-U2LZH63D.js @@ -1 +1 @@ -import{a as J}from"./chunk-TDYUGGZI.js";import{a as G}from"./chunk-VYCTNPPE.js";import{a as K}from"./chunk-RU73HBGW.js";import{a as Y,b as U}from"./chunk-WNOAMV4K.js";import{a as X}from"./chunk-NHWJ6QQD.js";import"./chunk-3TBNLEJ6.js";import"./chunk-MDOQS4TE.js";import{a as q}from"./chunk-G7BOERRR.js";import"./chunk-MGBUQL4E.js";import{b as $,d as N,e as R,j as z}from"./chunk-BCYEWSDA.js";import{D,F as O,H as V,J as j,c as W,s as H,w as A}from"./chunk-5MYX3VUL.js";import{Ab as f,B as k,Eb as v,Fb as C,Gb as w,Hb as r,Ib as a,Kc as L,Nb as y,Rb as u,Sb as g,ab as l,bb as p,bc as s,cc as m,dc as I,ec as F,fa as S,fc as M,gc as E,lc as B,qa as _,qc as h,ra as x,rc as b,xb as T,zb as P}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function Z(c,d){if(c&1){let t=y();r(0,"div",7),u("click",function(){let e=_(t).$index,o=g();return x(o.setTileColor(e))}),a()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("color-rect "+t),P("active",e.tile.color==i)}}function ee(c,d){if(c&1){let t=y();r(0,"div",7),u("click",function(){let e=_(t).$index,o=g();return x(o.setFontColor(e))}),r(1,"span"),s(2,"A"),a()()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("color-rect "+t+" "+e.model.colors[e.tile.color]),P("active",e.tile.fontColor==i),l(),f(t)}}function te(c,d){if(c&1){let t=y();r(0,"div",8),u("click",function(){let e=_(t).$index,o=g();return x(o.setIcon(e))}),a()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("cl"+e.tile.color+" "+(e.tile.icon==i?"active":"")),T("ngClass",t)}}var ve=(()=>{class c{constructor(t,i,e,o,n,Q){this.ds=t,this.ms=i,this.sbs=e,this.st=o,this.router=n,this.cdr=Q,this.tiles=[],this.folder="",this.model={colors:O.const.bgColorClasses,fontColors:O.const.fontColors,icons:O.const.icons,widgetList:[]},this.originalTiles="",this.subRouteChange=this.router.events.pipe(K())}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(k(t=>t instanceof H)).subscribe(()=>this.onCancelEditing())}static{this.\u0275fac=function(i){return new(i||c)(p(V),p(X),p(q),p(j),p(A),p(L))}}static{this.\u0275cmp=S({type:c,selectors:[["dsw-home-editor"]],inputs:{tiles:"tiles",folder:"folder",tile:"tile"},standalone:!0,features:[B],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),u("apply",function(){return e.onSaveTiles()})("cancel",function(){return e.onCancelEditing()}),s(1,"Edit dashboard"),a(),r(2,"div",1)(3,"label"),s(4),h(5,"i18n"),a(),r(6,"dsw-input",2),E("ngModelChange",function(n){return M(e.tile.customTitle,n)||(e.tile.customTitle=n),n}),a(),r(7,"label"),s(8),h(9,"i18n"),a(),C(10,Z,1,4,"div",3,v),r(12,"label"),s(13),h(14,"i18n"),a(),C(15,ee,3,6,"div",3,v),r(17,"label"),s(18),h(19,"i18n"),a(),C(20,te,1,3,"div",4,v),r(22,"label"),s(23),h(24,"i18n"),a(),r(25,"ng-select",5),E("ngModelChange",function(n){return M(e.tile.widget,n)||(e.tile.widget=n),n}),a(),r(26,"label"),s(27),h(28,"i18n"),r(29,"input",6),E("ngModelChange",function(n){return M(e.tile.hideTitle,n)||(e.tile.hideTitle=n),n}),a()()()),i&2&&(l(4),m(b(5,11,"title")),l(2),F("ngModel",e.tile.customTitle),l(2),m(b(9,13,"bgColor")),l(2),w(e.model.colors),l(3),m(b(14,15,"fntColor")),l(2),w(e.model.fontColors),l(3),m(b(19,17,"icon")),l(2),w(e.model.icons),l(3),m(b(24,19,"widget")),l(2),F("ngModel",e.tile.widget),T("clearable",!1)("items",e.model.widgetList),l(2),I("",b(28,21,"hideTitle")," "),l(2),F("ngModel",e.tile.hideTitle))},dependencies:[G,J,z,$,N,R,U,Y,D,W],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})}}return c})();export{ve as HomeEditorComponent}; +import{a as J}from"./chunk-WSLAUSJ3.js";import{a as G}from"./chunk-EXZFHSK3.js";import{a as K}from"./chunk-RU73HBGW.js";import{a as Y,b as U}from"./chunk-PUB2DBEU.js";import{a as X}from"./chunk-NHWJ6QQD.js";import"./chunk-OM7B3BIS.js";import"./chunk-MDOQS4TE.js";import{a as q}from"./chunk-G7BOERRR.js";import"./chunk-2ODAR4M4.js";import{b as $,d as N,e as R,j as z}from"./chunk-VUYLTOWP.js";import{D,F as O,H as V,J as j,c as W,s as H,w as A}from"./chunk-ZHVSJD4N.js";import{Ab as f,B as k,Eb as v,Fb as C,Gb as w,Hb as r,Ib as a,Kc as L,Nb as y,Rb as u,Sb as g,ab as l,bb as p,bc as s,cc as m,dc as I,ec as F,fa as S,fc as M,gc as E,lc as B,qa as _,qc as h,ra as x,rc as b,xb as T,zb as P}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function Z(c,d){if(c&1){let t=y();r(0,"div",7),u("click",function(){let e=_(t).$index,o=g();return x(o.setTileColor(e))}),a()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("color-rect "+t),P("active",e.tile.color==i)}}function ee(c,d){if(c&1){let t=y();r(0,"div",7),u("click",function(){let e=_(t).$index,o=g();return x(o.setFontColor(e))}),r(1,"span"),s(2,"A"),a()()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("color-rect "+t+" "+e.model.colors[e.tile.color]),P("active",e.tile.fontColor==i),l(),f(t)}}function te(c,d){if(c&1){let t=y();r(0,"div",8),u("click",function(){let e=_(t).$index,o=g();return x(o.setIcon(e))}),a()}if(c&2){let t=d.$implicit,i=d.$index,e=g();f("cl"+e.tile.color+" "+(e.tile.icon==i?"active":"")),T("ngClass",t)}}var ve=(()=>{class c{constructor(t,i,e,o,n,Q){this.ds=t,this.ms=i,this.sbs=e,this.st=o,this.router=n,this.cdr=Q,this.tiles=[],this.folder="",this.model={colors:O.const.bgColorClasses,fontColors:O.const.fontColors,icons:O.const.icons,widgetList:[]},this.originalTiles="",this.subRouteChange=this.router.events.pipe(K())}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(k(t=>t instanceof H)).subscribe(()=>this.onCancelEditing())}static{this.\u0275fac=function(i){return new(i||c)(p(V),p(X),p(q),p(j),p(A),p(L))}}static{this.\u0275cmp=S({type:c,selectors:[["dsw-home-editor"]],inputs:{tiles:"tiles",folder:"folder",tile:"tile"},standalone:!0,features:[B],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),u("apply",function(){return e.onSaveTiles()})("cancel",function(){return e.onCancelEditing()}),s(1,"Edit dashboard"),a(),r(2,"div",1)(3,"label"),s(4),h(5,"i18n"),a(),r(6,"dsw-input",2),E("ngModelChange",function(n){return M(e.tile.customTitle,n)||(e.tile.customTitle=n),n}),a(),r(7,"label"),s(8),h(9,"i18n"),a(),C(10,Z,1,4,"div",3,v),r(12,"label"),s(13),h(14,"i18n"),a(),C(15,ee,3,6,"div",3,v),r(17,"label"),s(18),h(19,"i18n"),a(),C(20,te,1,3,"div",4,v),r(22,"label"),s(23),h(24,"i18n"),a(),r(25,"ng-select",5),E("ngModelChange",function(n){return M(e.tile.widget,n)||(e.tile.widget=n),n}),a(),r(26,"label"),s(27),h(28,"i18n"),r(29,"input",6),E("ngModelChange",function(n){return M(e.tile.hideTitle,n)||(e.tile.hideTitle=n),n}),a()()()),i&2&&(l(4),m(b(5,11,"title")),l(2),F("ngModel",e.tile.customTitle),l(2),m(b(9,13,"bgColor")),l(2),w(e.model.colors),l(3),m(b(14,15,"fntColor")),l(2),w(e.model.fontColors),l(3),m(b(19,17,"icon")),l(2),w(e.model.icons),l(3),m(b(24,19,"widget")),l(2),F("ngModel",e.tile.widget),T("clearable",!1)("items",e.model.widgetList),l(2),I("",b(28,21,"hideTitle")," "),l(2),F("ngModel",e.tile.hideTitle))},dependencies:[G,J,z,$,N,R,U,Y,D,W],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})}}return c})();export{ve as HomeEditorComponent}; diff --git a/dist/chunk-UZ3CAOLQ.js b/dist/chunk-UZ3CAOLQ.js deleted file mode 100644 index 9e67e5eb..00000000 --- a/dist/chunk-UZ3CAOLQ.js +++ /dev/null @@ -1 +0,0 @@ -import{a}from"./chunk-S2V6X7EW.js";import"./chunk-BCYEWSDA.js";import"./chunk-5MYX3VUL.js";import"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";export{a as ShareDashboardComponent}; diff --git a/dist/chunk-S2V6X7EW.js b/dist/chunk-V3PSYXBK.js similarity index 98% rename from dist/chunk-S2V6X7EW.js rename to dist/chunk-V3PSYXBK.js index 14dcb91f..766c99a7 100644 --- a/dist/chunk-S2V6X7EW.js +++ b/dist/chunk-V3PSYXBK.js @@ -1 +1 @@ -import{b as k,d as E,e as I,j as P}from"./chunk-BCYEWSDA.js";import{I as O,J as T}from"./chunk-5MYX3VUL.js";import{Cb as F,Hb as h,Ib as r,Jb as M,Nb as S,Rb as g,Sb as s,ab as o,bb as u,bc as p,cc as _,ec as m,fa as C,fc as b,gc as f,lc as D,pa as x,qa as d,ra as c,rb as v,xb as w,zb as y}from"./chunk-ZEAAPN4P.js";function V(l,z){if(l&1){let t=S();h(0,"label")(1,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.denyResize,e)||(i.denyResize=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(2,"Deny widget resizing"),r(),h(3,"label")(4,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.denyMove,e)||(i.denyMove=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(5,"Deny widget moving"),r(),h(6,"label")(7,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.preventFilters,e)||(i.preventFilters=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(8,"Ignore filters"),r()}if(l&2){let t=s();o(),m("ngModel",t.denyResize),o(3),m("ngModel",t.denyMove),o(3),m("ngModel",t.preventFilters)}}var j=(()=>{class l{constructor(t,n){this.us=t,this.ss=n,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(t){t.shareUrl&&t.shareUrl.previousValue!==t.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 t=this.shareUrl.split("?"),n=t[1];if(!n)return;let e=n.split("&");e=e.map(i=>{let a=i.split("=");return a[0]==="FILTERS"?(this.asBase64&&(a[1]=encodeURIComponent(btoa(a[1]))),this.preventFilters?"":a.join("=")):i}),this.denyMove&&e.push("nodrag=1"),this.denyResize&&e.push("noresize=1"),this.preventFilters&&e.push("nofilters=1"),t[1]=e.filter(i=>!!i).join("&"),this.url=t.join("?")}static{this.\u0275fac=function(n){return new(n||l)(u(O),u(T))}}static{this.\u0275cmp=C({type:l,selectors:[["dsw-share-dashboard"]],inputs:{title:"title",btnTitle:"btnTitle",shareUrl:"shareUrl",isSmall:"isSmall",hideOptions:"hideOptions",_modal:"_modal"},standalone:!0,features:[x,D],decls:10,vars:7,consts:[["type","text",3,"value"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"btn",3,"click"]],template:function(n,e){n&1&&(h(0,"div")(1,"p"),p(2),r(),M(3,"textarea",0),h(4,"label")(5,"input",1),f("ngModelChange",function(a){return b(e.asBase64,a)||(e.asBase64=a),a}),g("change",function(){return e.onFormatChange()}),r(),p(6,"Filters as Base64"),r(),v(7,V,9,3),h(8,"button",2),g("click",function(){return e.onCopyClick()}),p(9),r()()),n&2&&(o(2),_(e.title),o(),y("small",e.isSmall),w("value",e.url),o(2),m("ngModel",e.asBase64),o(2),F(e.hideOptions?-1:7),o(2),_(e.isCopied?"Copied!":e.btnTitle))},dependencies:[P,k,E,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%]{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})}}return l})();export{j as a}; +import{b as k,d as E,e as I,j as P}from"./chunk-VUYLTOWP.js";import{I as O,J as T}from"./chunk-ZHVSJD4N.js";import{Cb as F,Hb as h,Ib as r,Jb as M,Nb as S,Rb as g,Sb as s,ab as o,bb as u,bc as p,cc as _,ec as m,fa as C,fc as b,gc as f,lc as D,pa as x,qa as d,ra as c,rb as v,xb as w,zb as y}from"./chunk-ZEAAPN4P.js";function V(l,z){if(l&1){let t=S();h(0,"label")(1,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.denyResize,e)||(i.denyResize=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(2,"Deny widget resizing"),r(),h(3,"label")(4,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.denyMove,e)||(i.denyMove=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(5,"Deny widget moving"),r(),h(6,"label")(7,"input",1),f("ngModelChange",function(e){d(t);let i=s();return b(i.preventFilters,e)||(i.preventFilters=e),c(e)}),g("change",function(){d(t);let e=s();return c(e.onFormatChange())}),r(),p(8,"Ignore filters"),r()}if(l&2){let t=s();o(),m("ngModel",t.denyResize),o(3),m("ngModel",t.denyMove),o(3),m("ngModel",t.preventFilters)}}var j=(()=>{class l{constructor(t,n){this.us=t,this.ss=n,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(t){t.shareUrl&&t.shareUrl.previousValue!==t.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 t=this.shareUrl.split("?"),n=t[1];if(!n)return;let e=n.split("&");e=e.map(i=>{let a=i.split("=");return a[0]==="FILTERS"?(this.asBase64&&(a[1]=encodeURIComponent(btoa(a[1]))),this.preventFilters?"":a.join("=")):i}),this.denyMove&&e.push("nodrag=1"),this.denyResize&&e.push("noresize=1"),this.preventFilters&&e.push("nofilters=1"),t[1]=e.filter(i=>!!i).join("&"),this.url=t.join("?")}static{this.\u0275fac=function(n){return new(n||l)(u(O),u(T))}}static{this.\u0275cmp=C({type:l,selectors:[["dsw-share-dashboard"]],inputs:{title:"title",btnTitle:"btnTitle",shareUrl:"shareUrl",isSmall:"isSmall",hideOptions:"hideOptions",_modal:"_modal"},standalone:!0,features:[x,D],decls:10,vars:7,consts:[["type","text",3,"value"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"btn",3,"click"]],template:function(n,e){n&1&&(h(0,"div")(1,"p"),p(2),r(),M(3,"textarea",0),h(4,"label")(5,"input",1),f("ngModelChange",function(a){return b(e.asBase64,a)||(e.asBase64=a),a}),g("change",function(){return e.onFormatChange()}),r(),p(6,"Filters as Base64"),r(),v(7,V,9,3),h(8,"button",2),g("click",function(){return e.onCopyClick()}),p(9),r()()),n&2&&(o(2),_(e.title),o(),y("small",e.isSmall),w("value",e.url),o(2),m("ngModel",e.asBase64),o(2),F(e.hideOptions?-1:7),o(2),_(e.isCopied?"Copied!":e.btnTitle))},dependencies:[P,k,E,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%]{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})}}return l})();export{j as a}; diff --git a/dist/chunk-BCYEWSDA.js b/dist/chunk-VUYLTOWP.js similarity index 99% rename from dist/chunk-BCYEWSDA.js rename to dist/chunk-VUYLTOWP.js index b184ea00..aa9e0a7e 100644 --- a/dist/chunk-BCYEWSDA.js +++ b/dist/chunk-VUYLTOWP.js @@ -1 +1 @@ -import{a as q}from"./chunk-5MYX3VUL.js";import{Ac as re,Ea as V,Kc as se,Pc as W,Rb as b,Rc as k,Sc as m,W as f,Y as N,_ as p,bb as a,f as J,fb as D,ga as O,ha as l,ib as P,kc as g,l as Q,lb as h,pa as $,r as ee,ua as _,wb as ie,x as te,za as x,zb as ne}from"./chunk-ZEAAPN4P.js";import{a as u,b as c}from"./chunk-MG3ERZGY.js";var ge=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(n){return new(n||i)(a(D),a(V))}}static{this.\u0275dir=l({type:i})}}return i})(),B=(()=>{class i extends ge{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[h]})}}return i})(),I=new p(""),Se={provide:I,useExisting:f(()=>Ne),multi:!0},Ne=(()=>{class i extends B{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[g([Se]),h]})}}return i})(),Oe={provide:I,useExisting:f(()=>me),multi:!0};function xe(){let i=q()?q().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Pe=new p(""),me=(()=>{class i extends ge{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!xe())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(n){return new(n||i)(a(D),a(V),a(Pe,8))}}static{this.\u0275dir=l({type:i,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(n,r){n&1&&b("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[g([Oe]),h]})}}return i})();function ke(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}var _e=new p(""),Ge=new p("");function Re(i){return ke(i.value)?{required:!0}:null}function oe(i){return null}function ve(i){return i!=null}function ye(i){return re(i)?Q(i):i}function Ce(i){let e={};return i.forEach(t=>{e=t!=null?u(u({},e),t):e}),Object.keys(e).length===0?null:e}function Ve(i,e){return e.map(t=>t(i))}function Te(i){return!i.validate}function De(i){return i.map(e=>Te(e)?e:t=>e.validate(t))}function je(i){if(!i)return null;let e=i.filter(ve);return e.length==0?null:function(t){return Ce(Ve(t,e))}}function be(i){return i!=null?je(De(i)):null}function Be(i){if(!i)return null;let e=i.filter(ve);return e.length==0?null:function(t){let n=Ve(t,e).map(ye);return te(n).pipe(ee(Ce))}}function Ae(i){return i!=null?Be(De(i)):null}function ae(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ue(i){return i._rawValidators}function He(i){return i._rawAsyncValidators}function z(i){return i?Array.isArray(i)?i:[i]:[]}function R(i,e){return Array.isArray(i)?i.includes(e):i===e}function le(i,e){let t=z(e);return z(i).forEach(r=>{R(t,r)||t.push(r)}),t}function ue(i,e){return z(e).filter(t=>!R(i,t))}var T=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=be(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ae(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,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Z=class extends T{get formDirective(){return null}get path(){return null}},w=class extends T{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},X=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Le={"[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"},Gt=c(u({},Le),{"[class.ng-submitted]":"isSubmitted"}),Rt=(()=>{class i extends X{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(a(w,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[h]})}}return i})();var A="VALID",G="INVALID",v="PENDING",M="DISABLED",C=class{},j=class extends C{constructor(e,t){super(),this.value=e,this.source=t}},E=class extends C{constructor(e,t){super(),this.pristine=e,this.source=t}},F=class extends C{constructor(e,t){super(),this.touched=e,this.source=t}},y=class extends C{constructor(e,t){super(),this.status=e,this.source=t}};function $e(i){return(U(i)?i.validators:i)||null}function We(i){return Array.isArray(i)?be(i):i||null}function qe(i,e){return(U(e)?e.asyncValidators:i)||null}function ze(i){return Array.isArray(i)?Ae(i):i||null}function U(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}var Y=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=k(()=>this.statusReactive()),this.statusReactive=P(void 0),this._pristine=k(()=>this.pristineReactive()),this.pristineReactive=P(!0),this._touched=k(()=>this.touchedReactive()),this.touchedReactive=P(!1),this._events=new J,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}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 status(){return m(this.statusReactive)}set status(e){m(()=>this.statusReactive.set(e))}get valid(){return this.status===A}get invalid(){return this.status===G}get pending(){return this.status==v}get disabled(){return this.status===M}get enabled(){return this.status!==M}get pristine(){return m(this.pristineReactive)}set pristine(e){m(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(e){m(()=>this.touchedReactive.set(e))}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(le(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(le(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ue(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ue(e,this._rawAsyncValidators))}hasValidator(e){return R(this._rawValidators,e)}hasAsyncValidator(e){return R(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(c(u({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new F(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new F(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(c(u({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new E(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new E(!0,n))}markAsPending(e={}){this.status=v;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new y(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(c(u({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable(c(u({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new j(this.value,n)),this._events.next(new y(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(c(u({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=A,this._forEachChild(n=>{n.enable(c(u({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(c(u({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===v)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new j(this.value,t)),this._events.next(new y(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(c(u({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._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,t){if(this.asyncValidator){this.status=v,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let n=ye(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new y(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new x,this.statusChanges=new x}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(v)?v:this._anyControlsHaveStatus(G)?G:A}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new E(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new F(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){U(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=We(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ze(this._rawAsyncValidators)}};var K=new p("CallSetDisabledState",{providedIn:"root",factory:()=>H}),H="always";function Ze(i,e){return[...e.path,i]}function Xe(i,e,t=H){Ke(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Je(i,e),et(i,e),Qe(i,e),Ye(i,e)}function ce(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ye(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function Ke(i,e){let t=Ue(i);e.validator!==null?i.setValidators(ae(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=He(i);e.asyncValidator!==null?i.setAsyncValidators(ae(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ce(e._rawValidators,r),ce(e._rawAsyncValidators,r)}function Je(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Me(i,e)})}function Qe(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Me(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Me(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function et(i,e){let t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function tt(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function it(i){return Object.getPrototypeOf(i.constructor)===B}function nt(i,e){if(!e)return null;Array.isArray(e);let t,n,r;return e.forEach(s=>{s.constructor===me?t=s:it(s)?n=s:r=s}),r||n||t||null}function de(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function he(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var rt=class extends Y{constructor(e=null,t,n){super($e(t),qe(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(t)&&(t.nonNullable||t.initialValueIsDefault)&&(he(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){de(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){de(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){he(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 st={provide:w,useExisting:f(()=>ot)},fe=Promise.resolve(),ot=(()=>{class i extends w{constructor(t,n,r,s,o,d){super(),this._changeDetectorRef=o,this.callSetDisabledState=d,this.control=new rt,this._registered=!1,this.name="",this.update=new x,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=nt(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),tt(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Xe(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(t){fe.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,r=n!==0&&W(n);fe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ze(t,this._parent):[t]}static{this.\u0275fac=function(n){return new(n||i)(a(Z,9),a(_e,10),a(Ge,10),a(I,10),a(se,8),a(K,8))}}static{this.\u0275dir=l({type:i,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:[g([st]),h,$]})}}return i})();var at=new p("");var lt={provide:I,useExisting:f(()=>Fe),multi:!0};function Ee(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function ut(i){return i.split(":")[0]}var Fe=(()=>{class i extends B{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),r=Ee(n,t);this.setProperty("value",r)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=ut(t);return this._optionMap.has(n)?this._optionMap.get(n):t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[g([lt]),h]})}}return i})(),jt=(()=>{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Ee(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(a(V),a(D),a(Fe,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),ct={provide:I,useExisting:f(()=>we),multi:!0};function pe(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function dt(i){return i.split(":")[0]}var we=(()=>{class i extends B{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let r=t.map(s=>this._getOptionId(s));n=(s,o)=>{s._setSelected(r.indexOf(o.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let o=s;for(let d=0;d{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[g([ct]),h]})}}return i})(),Bt=(()=>{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(pe(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(pe(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(a(V),a(D),a(we,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ht=(()=>{class i{constructor(){this._validator=oe}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):oe,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,features:[$]})}}return i})();var ft={provide:_e,useExisting:f(()=>pt),multi:!0};var pt=(()=>{class i extends ht{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=W,this.createValidator=t=>Re}enabled(t){return t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ie("required",r._enabled?"":null)},inputs:{required:"required"},features:[g([ft]),h]})}}return i})();var Ie=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({})}}return i})();var Ut=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:K,useValue:t.callSetDisabledState??H}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({imports:[Ie]})}}return i})(),Ht=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:at,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:K,useValue:t.callSetDisabledState??H}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({imports:[Ie]})}}return i})();export{I as a,Ne as b,me as c,Rt as d,ot as e,Fe as f,jt as g,Bt as h,pt as i,Ut as j,Ht as k}; +import{a as q}from"./chunk-ZHVSJD4N.js";import{Ac as re,Ea as V,Kc as se,Pc as W,Rb as b,Rc as k,Sc as m,W as f,Y as N,_ as p,bb as a,f as J,fb as D,ga as O,ha as l,ib as P,kc as g,l as Q,lb as h,pa as $,r as ee,ua as _,wb as ie,x as te,za as x,zb as ne}from"./chunk-ZEAAPN4P.js";import{a as u,b as c}from"./chunk-MG3ERZGY.js";var ge=(()=>{class i{constructor(t,n){this._renderer=t,this._elementRef=n,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(n){return new(n||i)(a(D),a(V))}}static{this.\u0275dir=l({type:i})}}return i})(),B=(()=>{class i extends ge{static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,features:[h]})}}return i})(),I=new p(""),Se={provide:I,useExisting:f(()=>Ne),multi:!0},Ne=(()=>{class i extends B{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target.checked)})("blur",function(){return r.onTouched()})},features:[g([Se]),h]})}}return i})(),Oe={provide:I,useExisting:f(()=>me),multi:!0};function xe(){let i=q()?q().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var Pe=new p(""),me=(()=>{class i extends ge{constructor(t,n,r){super(t,n),this._compositionMode=r,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!xe())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(n){return new(n||i)(a(D),a(V),a(Pe,8))}}static{this.\u0275dir=l({type:i,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(n,r){n&1&&b("input",function(o){return r._handleInput(o.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(o){return r._compositionEnd(o.target.value)})},features:[g([Oe]),h]})}}return i})();function ke(i){return i==null||(typeof i=="string"||Array.isArray(i))&&i.length===0}var _e=new p(""),Ge=new p("");function Re(i){return ke(i.value)?{required:!0}:null}function oe(i){return null}function ve(i){return i!=null}function ye(i){return re(i)?Q(i):i}function Ce(i){let e={};return i.forEach(t=>{e=t!=null?u(u({},e),t):e}),Object.keys(e).length===0?null:e}function Ve(i,e){return e.map(t=>t(i))}function Te(i){return!i.validate}function De(i){return i.map(e=>Te(e)?e:t=>e.validate(t))}function je(i){if(!i)return null;let e=i.filter(ve);return e.length==0?null:function(t){return Ce(Ve(t,e))}}function be(i){return i!=null?je(De(i)):null}function Be(i){if(!i)return null;let e=i.filter(ve);return e.length==0?null:function(t){let n=Ve(t,e).map(ye);return te(n).pipe(ee(Ce))}}function Ae(i){return i!=null?Be(De(i)):null}function ae(i,e){return i===null?[e]:Array.isArray(i)?[...i,e]:[i,e]}function Ue(i){return i._rawValidators}function He(i){return i._rawAsyncValidators}function z(i){return i?Array.isArray(i)?i:[i]:[]}function R(i,e){return Array.isArray(i)?i.includes(e):i===e}function le(i,e){let t=z(e);return z(i).forEach(r=>{R(t,r)||t.push(r)}),t}function ue(i,e){return z(e).filter(t=>!R(i,t))}var T=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=be(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Ae(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,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Z=class extends T{get formDirective(){return null}get path(){return null}},w=class extends T{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},X=class{constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Le={"[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"},Gt=c(u({},Le),{"[class.ng-submitted]":"isSubmitted"}),Rt=(()=>{class i extends X{constructor(t){super(t)}static{this.\u0275fac=function(n){return new(n||i)(a(w,2))}}static{this.\u0275dir=l({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){n&2&&ne("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[h]})}}return i})();var A="VALID",G="INVALID",v="PENDING",M="DISABLED",C=class{},j=class extends C{constructor(e,t){super(),this.value=e,this.source=t}},E=class extends C{constructor(e,t){super(),this.pristine=e,this.source=t}},F=class extends C{constructor(e,t){super(),this.touched=e,this.source=t}},y=class extends C{constructor(e,t){super(),this.status=e,this.source=t}};function $e(i){return(U(i)?i.validators:i)||null}function We(i){return Array.isArray(i)?be(i):i||null}function qe(i,e){return(U(e)?e.asyncValidators:i)||null}function ze(i){return Array.isArray(i)?Ae(i):i||null}function U(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}var Y=class{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this._status=k(()=>this.statusReactive()),this.statusReactive=P(void 0),this._pristine=k(()=>this.pristineReactive()),this.pristineReactive=P(!0),this._touched=k(()=>this.touchedReactive()),this.touchedReactive=P(!1),this._events=new J,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(t)}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 status(){return m(this.statusReactive)}set status(e){m(()=>this.statusReactive.set(e))}get valid(){return this.status===A}get invalid(){return this.status===G}get pending(){return this.status==v}get disabled(){return this.status===M}get enabled(){return this.status!==M}get pristine(){return m(this.pristineReactive)}set pristine(e){m(()=>this.pristineReactive.set(e))}get dirty(){return!this.pristine}get touched(){return m(this.touchedReactive)}set touched(e){m(()=>this.touchedReactive.set(e))}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(le(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(le(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ue(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ue(e,this._rawAsyncValidators))}hasValidator(e){return R(this._rawValidators,e)}hasAsyncValidator(e){return R(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(c(u({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new F(!0,n))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new F(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(c(u({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new E(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new E(!0,n))}markAsPending(e={}){this.status=v;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new y(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(c(u({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable(c(u({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new j(this.value,n)),this._events.next(new y(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(c(u({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=A,this._forEachChild(n=>{n.enable(c(u({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(c(u({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===v)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new j(this.value,t)),this._events.next(new y(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(c(u({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._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,t){if(this.asyncValidator){this.status=v,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1};let n=ye(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,r)=>n&&n._find(r),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new y(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new x,this.statusChanges=new x}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?G:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(v)?v:this._anyControlsHaveStatus(G)?G:A}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),r=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),r&&this._events.next(new E(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new F(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){U(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=We(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=ze(this._rawAsyncValidators)}};var K=new p("CallSetDisabledState",{providedIn:"root",factory:()=>H}),H="always";function Ze(i,e){return[...e.path,i]}function Xe(i,e,t=H){Ke(i,e),e.valueAccessor.writeValue(i.value),(i.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(i.disabled),Je(i,e),et(i,e),Qe(i,e),Ye(i,e)}function ce(i,e){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Ye(i,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};i.registerOnDisabledChange(t),e._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}function Ke(i,e){let t=Ue(i);e.validator!==null?i.setValidators(ae(t,e.validator)):typeof t=="function"&&i.setValidators([t]);let n=He(i);e.asyncValidator!==null?i.setAsyncValidators(ae(n,e.asyncValidator)):typeof n=="function"&&i.setAsyncValidators([n]);let r=()=>i.updateValueAndValidity();ce(e._rawValidators,r),ce(e._rawAsyncValidators,r)}function Je(i,e){e.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&Me(i,e)})}function Qe(i,e){e.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&Me(i,e),i.updateOn!=="submit"&&i.markAsTouched()})}function Me(i,e){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function et(i,e){let t=(n,r)=>{e.valueAccessor.writeValue(n),r&&e.viewToModelUpdate(n)};i.registerOnChange(t),e._registerOnDestroy(()=>{i._unregisterOnChange(t)})}function tt(i,e){if(!i.hasOwnProperty("model"))return!1;let t=i.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function it(i){return Object.getPrototypeOf(i.constructor)===B}function nt(i,e){if(!e)return null;Array.isArray(e);let t,n,r;return e.forEach(s=>{s.constructor===me?t=s:it(s)?n=s:r=s}),r||n||t||null}function de(i,e){let t=i.indexOf(e);t>-1&&i.splice(t,1)}function he(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var rt=class extends Y{constructor(e=null,t,n){super($e(t),qe(n,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),U(t)&&(t.nonNullable||t.initialValueIsDefault)&&(he(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){de(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){de(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){he(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 st={provide:w,useExisting:f(()=>ot)},fe=Promise.resolve(),ot=(()=>{class i extends w{constructor(t,n,r,s,o,d){super(),this._changeDetectorRef=o,this.callSetDisabledState=d,this.control=new rt,this._registered=!1,this.name="",this.update=new x,this._parent=t,this._setValidators(n),this._setAsyncValidators(r),this.valueAccessor=nt(this,s)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),tt(t,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(t){this.viewModel=t,this.update.emit(t)}_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(){Xe(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(t){fe.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,r=n!==0&&W(n);fe.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?Ze(t,this._parent):[t]}static{this.\u0275fac=function(n){return new(n||i)(a(Z,9),a(_e,10),a(Ge,10),a(I,10),a(se,8),a(K,8))}}static{this.\u0275dir=l({type:i,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:[g([st]),h,$]})}}return i})();var at=new p("");var lt={provide:I,useExisting:f(()=>Fe),multi:!0};function Ee(i,e){return i==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function ut(i){return i.split(":")[0]}var Fe=(()=>{class i extends B{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n=this._getOptionId(t),r=Ee(n,t);this.setProperty("value",r)}registerOnChange(t){this.onChange=n=>{this.value=this._getOptionValue(n),t(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(let n of this._optionMap.keys())if(this._compareWith(this._optionMap.get(n),t))return n;return null}_getOptionValue(t){let n=ut(t);return this._optionMap.has(n)?this._optionMap.get(n):t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[g([lt]),h]})}}return i})(),jt=(()=>{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}set ngValue(t){this._select!=null&&(this._select._optionMap.set(this.id,t),this._setElementValue(Ee(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(a(V),a(D),a(Fe,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})(),ct={provide:I,useExisting:f(()=>we),multi:!0};function pe(i,e){return i==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${i}: ${e}`.slice(0,50))}function dt(i){return i.split(":")[0]}var we=(()=>{class i extends B{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;let n;if(Array.isArray(t)){let r=t.map(s=>this._getOptionId(s));n=(s,o)=>{s._setSelected(r.indexOf(o.toString())>-1)}}else n=(r,s)=>{r._setSelected(!1)};this._optionMap.forEach(n)}registerOnChange(t){this.onChange=n=>{let r=[],s=n.selectedOptions;if(s!==void 0){let o=s;for(let d=0;d{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(n,r){n&1&&b("change",function(o){return r.onChange(o.target)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[g([ct]),h]})}}return i})(),Bt=(()=>{class i{constructor(t,n,r){this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){this._select!=null&&(this._value=t,this._setElementValue(pe(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue(pe(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static{this.\u0275fac=function(n){return new(n||i)(a(V),a(D),a(we,9))}}static{this.\u0275dir=l({type:i,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return i})();var ht=(()=>{class i{constructor(){this._validator=oe}ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):oe,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275dir=l({type:i,features:[$]})}}return i})();var ft={provide:_e,useExisting:f(()=>pt),multi:!0};var pt=(()=>{class i extends ht{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=W,this.createValidator=t=>Re}enabled(t){return t}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=_(i)))(r||i)}})()}static{this.\u0275dir=l({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){n&2&&ie("required",r._enabled?"":null)},inputs:{required:"required"},features:[g([ft]),h]})}}return i})();var Ie=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({})}}return i})();var Ut=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:K,useValue:t.callSetDisabledState??H}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({imports:[Ie]})}}return i})(),Ht=(()=>{class i{static withConfig(t){return{ngModule:i,providers:[{provide:at,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:K,useValue:t.callSetDisabledState??H}]}}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=O({type:i})}static{this.\u0275inj=N({imports:[Ie]})}}return i})();export{I as a,Ne as b,me as c,Rt as d,ot as e,Fe as f,jt as g,Bt as h,pt as i,Ut as j,Ht as k}; diff --git a/dist/chunk-PFIAJSKR.js b/dist/chunk-VXDT4VRR.js similarity index 92% rename from dist/chunk-PFIAJSKR.js rename to dist/chunk-VXDT4VRR.js index 14e44010..acf8d60e 100644 --- a/dist/chunk-PFIAJSKR.js +++ b/dist/chunk-VXDT4VRR.js @@ -1,2 +1,2 @@ -import{a as T}from"./chunk-TDYUGGZI.js";import{a as A}from"./chunk-VYCTNPPE.js";import{a as E,b as F}from"./chunk-WNOAMV4K.js";import{e}from"./chunk-M4JSR4XG.js";import"./chunk-HCCYM72S.js";import{a as W}from"./chunk-3TBNLEJ6.js";import{a as D}from"./chunk-MDOQS4TE.js";import"./chunk-G7BOERRR.js";import"./chunk-UJWY6PMO.js";import{b as k}from"./chunk-MGBUQL4E.js";import{d as M,e as O,i as S,j as P}from"./chunk-BCYEWSDA.js";import"./chunk-5MYX3VUL.js";import{Cb as w,Hb as l,Ib as d,Nb as y,Rb as h,Sb as r,ab as g,bb as b,bc as m,ec as u,fa as C,fc as f,gc as _,lc as v,qa as a,ra as c,rb as x,xb as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function V(s,L){if(s&1){let n=y();l(0,"div",1)(1,"label"),m(2,"Widget type"),d(),l(3,"ng-select",2),_("ngModelChange",function(t){a(n);let o=r();return f(o.type,t)||(o.type=t),c(t)}),h("change",function(){a(n);let t=r();return c(t.onTypeChange())}),d(),l(4,"label"),m(5,"Data source"),d(),l(6,"dsw-input",3),_("ngModelChange",function(t){a(n);let o=r();return f(o.model.dataSource,t)||(o.model.dataSource=t),c(t)}),h("keydown.enter",function(){a(n);let t=r();return c(t.onDatasourceChanged())})("choose",function(){a(n);let t=r();return c(t.onSelectDataSource())}),d(),l(7,"label"),m(8,"Reference to"),d(),l(9,"ng-select",4),_("ngModelChange",function(t){a(n);let o=r();return f(o.model.dataLink,t)||(o.model.dataLink=t),c(t)}),h("change",function(){a(n);let t=r();return c(t.onLinkChange())}),d()()}if(s&2){let n=r();g(3),u("ngModel",n.type),p("items",n.widgetTypes)("clearable",!1)("closeOnSelect",!0),g(3),p("required",n.invalid.includes("datasource")),u("ngModel",n.model.dataSource),p("chooseButton",!0),g(3),p("items",n.widgetList),u("ngModel",n.model.dataLink),p("clearable",!1)("closeOnSelect",!0)}}var J=(()=>{class s{constructor(n,i,t){this.ms=n,this.eds=i,this.ds=t,this.invalid=[],this.widgetList=[],this.widgetTypes=[e.pivot,e.columnChart,e.columnChartStacked,e.columnChart3D,e.barChart,e.barChartStacked,e.lineChart,e.lineChartMarkers,e.comboChart,e.hilowChart,e.areaChart,e.bubbleChart,e.xyChart,e.pieChart,e.pieChart3D,e.donutChart,e.donutChart3D,e.treeMapChart,e.bullseyeChart,e.timeChart,e.regular,e.textMeter,e.map]}ngOnInit(){this.widgetList=this.eds.getWidgetsList([this.model?.name??""]),this.type=e[this.model?.type?.toLowerCase()??""]}onSelectDataSource(){this.ms.show({title:"Choose data source",component:import("./chunk-G4AAKGAF.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(e).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)}static{this.\u0275fac=function(i){return new(i||s)(b(D),b(W),b(k))}}static{this.\u0275cmp=C({type:s,selectors:[["dsw-type-and-ds"]],inputs:{model:"model",invalid:"invalid"},standalone:!0,features:[v],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(i,t){i&1&&(l(0,"dsw-sidebar-actions",0),h("apply",function(){return t.onSave()}),m(1,` Type & Datasource +import{a as T}from"./chunk-WSLAUSJ3.js";import{a as A}from"./chunk-EXZFHSK3.js";import{a as E,b as F}from"./chunk-PUB2DBEU.js";import{e}from"./chunk-D7UFXRMJ.js";import"./chunk-HCCYM72S.js";import{a as W}from"./chunk-OM7B3BIS.js";import{a as D}from"./chunk-MDOQS4TE.js";import"./chunk-G7BOERRR.js";import"./chunk-O73WWIXQ.js";import{b as k}from"./chunk-2ODAR4M4.js";import{d as M,e as O,i as S,j as P}from"./chunk-VUYLTOWP.js";import"./chunk-ZHVSJD4N.js";import{Cb as w,Hb as l,Ib as d,Nb as y,Rb as h,Sb as r,ab as g,bb as b,bc as m,ec as u,fa as C,fc as f,gc as _,lc as v,qa as a,ra as c,rb as x,xb as p}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function V(s,L){if(s&1){let n=y();l(0,"div",1)(1,"label"),m(2,"Widget type"),d(),l(3,"ng-select",2),_("ngModelChange",function(t){a(n);let o=r();return f(o.type,t)||(o.type=t),c(t)}),h("change",function(){a(n);let t=r();return c(t.onTypeChange())}),d(),l(4,"label"),m(5,"Data source"),d(),l(6,"dsw-input",3),_("ngModelChange",function(t){a(n);let o=r();return f(o.model.dataSource,t)||(o.model.dataSource=t),c(t)}),h("keydown.enter",function(){a(n);let t=r();return c(t.onDatasourceChanged())})("choose",function(){a(n);let t=r();return c(t.onSelectDataSource())}),d(),l(7,"label"),m(8,"Reference to"),d(),l(9,"ng-select",4),_("ngModelChange",function(t){a(n);let o=r();return f(o.model.dataLink,t)||(o.model.dataLink=t),c(t)}),h("change",function(){a(n);let t=r();return c(t.onLinkChange())}),d()()}if(s&2){let n=r();g(3),u("ngModel",n.type),p("items",n.widgetTypes)("clearable",!1)("closeOnSelect",!0),g(3),p("required",n.invalid.includes("datasource")),u("ngModel",n.model.dataSource),p("chooseButton",!0),g(3),p("items",n.widgetList),u("ngModel",n.model.dataLink),p("clearable",!1)("closeOnSelect",!0)}}var J=(()=>{class s{constructor(n,i,t){this.ms=n,this.eds=i,this.ds=t,this.invalid=[],this.widgetList=[],this.widgetTypes=[e.pivot,e.columnChart,e.columnChartStacked,e.columnChart3D,e.barChart,e.barChartStacked,e.lineChart,e.lineChartMarkers,e.comboChart,e.hilowChart,e.areaChart,e.bubbleChart,e.xyChart,e.pieChart,e.pieChart3D,e.donutChart,e.donutChart3D,e.treeMapChart,e.bullseyeChart,e.timeChart,e.regular,e.textMeter,e.map]}ngOnInit(){this.widgetList=this.eds.getWidgetsList([this.model?.name??""]),this.type=e[this.model?.type?.toLowerCase()??""]}onSelectDataSource(){this.ms.show({title:"Choose data source",component:import("./chunk-Q3VVOVWK.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(e).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)}static{this.\u0275fac=function(i){return new(i||s)(b(D),b(W),b(k))}}static{this.\u0275cmp=C({type:s,selectors:[["dsw-type-and-ds"]],inputs:{model:"model",invalid:"invalid"},standalone:!0,features:[v],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(i,t){i&1&&(l(0,"dsw-sidebar-actions",0),h("apply",function(){return t.onSave()}),m(1,` Type & Datasource `),d(),x(2,V,10,11,"div",1)),i&2&&(p("isWidgetEditorWarning",!0)("isBack",!0),g(2),w(t.model?2:-1))},dependencies:[A,F,E,P,M,S,O,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}"]})}}return s})();export{J as TypeAndDatasourceComponent}; diff --git a/dist/chunk-TDYUGGZI.js b/dist/chunk-WSLAUSJ3.js similarity index 98% rename from dist/chunk-TDYUGGZI.js rename to dist/chunk-WSLAUSJ3.js index b12eb9d0..9565057c 100644 --- a/dist/chunk-TDYUGGZI.js +++ b/dist/chunk-WSLAUSJ3.js @@ -1 +1 @@ -import{a as B,c as E,d as P,e as I,j as S}from"./chunk-BCYEWSDA.js";import{Cb as w,Hb as a,Ib as d,Nb as s,Rb as h,Sb as C,W as p,ab as f,ac as x,bc as y,ec as F,fa as b,fc as M,gc as O,kc as k,lc as V,qa as r,ra as c,rb as m,xb as v,za as g,zb as _}from"./chunk-ZEAAPN4P.js";function T(n,A){if(n&1){let e=s();a(0,"button",2),h("click",function(){r(e);let t=C();return c(t.onSelectButtonClick())}),y(1,"..."),d()}}var G=(()=>{class n{constructor(){this.model="",this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new g,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)}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=b({type:n,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(o,t){o&2&&_("choose",t.chooseButton)("invalid",t.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},standalone:!0,features:[k([{provide:B,useExisting:p(()=>n),multi:!0}]),V],decls:3,vars:3,consts:[["inp",""],[3,"ngModelChange","keydown.enter","ngModel","type"],[3,"click"]],template:function(o,t){if(o&1){let l=s();a(0,"input",1,0),O("ngModelChange",function(i){return r(l),M(t.model,i)||(t.model=i),c(i)}),h("ngModelChange",function(i){return r(l),c(t.onModelChange(i))})("keydown.enter",function(){r(l);let i=x(1);return c(i.blur())}),d(),m(2,T,2,0,"button")}o&2&&(F("ngModel",t.model),v("type",t.type),f(2),w(t.chooseButton?2:-1))},dependencies:[S,E,P,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)}"]})}}return n})();export{G as a}; +import{a as B,c as E,d as P,e as I,j as S}from"./chunk-VUYLTOWP.js";import{Cb as w,Hb as a,Ib as d,Nb as s,Rb as h,Sb as C,W as p,ab as f,ac as x,bc as y,ec as F,fa as b,fc as M,gc as O,kc as k,lc as V,qa as r,ra as c,rb as m,xb as v,za as g,zb as _}from"./chunk-ZEAAPN4P.js";function T(n,A){if(n&1){let e=s();a(0,"button",2),h("click",function(){r(e);let t=C();return c(t.onSelectButtonClick())}),y(1,"..."),d()}}var G=(()=>{class n{constructor(){this.model="",this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new g,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)}static{this.\u0275fac=function(o){return new(o||n)}}static{this.\u0275cmp=b({type:n,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(o,t){o&2&&_("choose",t.chooseButton)("invalid",t.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},standalone:!0,features:[k([{provide:B,useExisting:p(()=>n),multi:!0}]),V],decls:3,vars:3,consts:[["inp",""],[3,"ngModelChange","keydown.enter","ngModel","type"],[3,"click"]],template:function(o,t){if(o&1){let l=s();a(0,"input",1,0),O("ngModelChange",function(i){return r(l),M(t.model,i)||(t.model=i),c(i)}),h("ngModelChange",function(i){return r(l),c(t.onModelChange(i))})("keydown.enter",function(){r(l);let i=x(1);return c(i.blur())}),d(),m(2,T,2,0,"button")}o&2&&(F("ngModel",t.model),v("type",t.type),f(2),w(t.chooseButton?2:-1))},dependencies:[S,E,P,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)}"]})}}return n})();export{G as a}; diff --git a/dist/chunk-WVVAFVNJ.js b/dist/chunk-WYIOVHFW.js similarity index 98% rename from dist/chunk-WVVAFVNJ.js rename to dist/chunk-WYIOVHFW.js index a49ec093..8c38e847 100644 --- a/dist/chunk-WVVAFVNJ.js +++ b/dist/chunk-WYIOVHFW.js @@ -1 +1 @@ -import{a as M}from"./chunk-G7BOERRR.js";import{E as F,J as y}from"./chunk-5MYX3VUL.js";import{Eb as h,Fb as f,Gb as m,Hb as o,Ib as a,Jb as u,Nb as x,Rb as v,Sb as l,Ya as p,ab as r,bb as c,bc as _,dc as w,fa as s,lc as C,qa as g,ra as d,xb as b}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function P(n,O){if(n&1){let e=x();o(0,"li",0),v("click",function(){let i=g(e).$implicit,k=l();return d(k.selectLanguage(i))}),u(1,"img",1),_(2),a()}if(n&2){let e=O.$implicit,t=l();r(),b("src",t.isSelected(e)?"assets/img/icons/check-black-18dp.svg":"",p),r(),w(" ",t.i18n.getLanguageName(e)," ")}}var I=(()=>{class n{constructor(e,t,i){this.i18n=e,this.storage=t,this.ss=i,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}static{this.\u0275fac=function(t){return new(t||n)(c(F),c(y),c(M))}}static{this.\u0275cmp=s({type:n,selectors:[["dsw-language-selector"]],standalone:!0,features:[C],decls:3,vars:0,consts:[[3,"click"],[3,"src"]],template:function(t,i){t&1&&(o(0,"ul"),f(1,P,3,2,"li",null,h),a()),t&2&&(r(),m(i.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)}']})}}return n})();export{I as LanguageSelectorComponent}; +import{a as M}from"./chunk-G7BOERRR.js";import{E as F,J as y}from"./chunk-ZHVSJD4N.js";import{Eb as h,Fb as f,Gb as m,Hb as o,Ib as a,Jb as u,Nb as x,Rb as v,Sb as l,Ya as p,ab as r,bb as c,bc as _,dc as w,fa as s,lc as C,qa as g,ra as d,xb as b}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function P(n,O){if(n&1){let e=x();o(0,"li",0),v("click",function(){let i=g(e).$implicit,k=l();return d(k.selectLanguage(i))}),u(1,"img",1),_(2),a()}if(n&2){let e=O.$implicit,t=l();r(),b("src",t.isSelected(e)?"assets/img/icons/check-black-18dp.svg":"",p),r(),w(" ",t.i18n.getLanguageName(e)," ")}}var I=(()=>{class n{constructor(e,t,i){this.i18n=e,this.storage=t,this.ss=i,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}static{this.\u0275fac=function(t){return new(t||n)(c(F),c(y),c(M))}}static{this.\u0275cmp=s({type:n,selectors:[["dsw-language-selector"]],standalone:!0,features:[C],decls:3,vars:0,consts:[[3,"click"],[3,"src"]],template:function(t,i){t&1&&(o(0,"ul"),f(1,P,3,2,"li",null,h),a()),t&2&&(r(),m(i.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)}']})}}return n})();export{I as LanguageSelectorComponent}; diff --git a/dist/chunk-6NIJZNZF.js b/dist/chunk-XOAKZLUG.js similarity index 97% rename from dist/chunk-6NIJZNZF.js rename to dist/chunk-XOAKZLUG.js index 95654b91..b148911e 100644 --- a/dist/chunk-6NIJZNZF.js +++ b/dist/chunk-XOAKZLUG.js @@ -1,3 +1,3 @@ -import{a as D}from"./chunk-B64EGU7W.js";import{a as I}from"./chunk-VYCTNPPE.js";import{a as B,b as z}from"./chunk-WNOAMV4K.js";import"./chunk-GOV7BL6D.js";import"./chunk-3TBNLEJ6.js";import"./chunk-MDOQS4TE.js";import{a as W}from"./chunk-G7BOERRR.js";import"./chunk-MGBUQL4E.js";import{c as T,d as k,e as A,j as V}from"./chunk-BCYEWSDA.js";import{F as O,J as E}from"./chunk-5MYX3VUL.js";import{Cb as C,Fb as F,Gb as M,Hb as o,Ib as l,Nb as v,Rb as m,Sb as c,ab as s,bb as _,bc as a,cc as P,ec as b,fa as w,fc as g,gc as f,lc as S,qa as h,ra as p,rb as y,xb as x}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function j(r,u){if(r&1){let e=v();o(0,"dsw-color-picker",7),f("colorChange",function(n){h(e);let i=c().$implicit;return g(i.value,n)||(i.value=n),p(n)}),m("colorChange",function(){h(e);let n=c().$implicit,i=c();return p(i.updateVariable(n))}),l()}if(r&2){let e=c().$implicit;b("color",e.value),x("isImmediate",!0)}}function N(r,u){if(r&1){let e=v();o(0,"input",8),f("ngModelChange",function(n){h(e);let i=c().$implicit;return g(i.value,n)||(i.value=n),p(n)}),m("change",function(){h(e);let n=c().$implicit,i=c();return p(i.updateVariable(n))}),l()}if(r&2){let e=c().$implicit;b("ngModel",e.value)}}function L(r,u){if(r&1&&(o(0,"tr")(1,"td"),a(2),l(),o(3,"td"),y(4,j,1,2,"dsw-color-picker",5)(5,N,1,1,"input",6),l()()),r&2){let e=u.$implicit;s(2),P(e.name),s(2),C(e.isColor?4:-1),s(),C(e.isColor?-1:5)}}var X=(()=>{class r{constructor(e,t){this.sbs=e,this.ss=t,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:O.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 D}from"./chunk-JG7KQKR6.js";import{a as I}from"./chunk-EXZFHSK3.js";import{a as B,b as z}from"./chunk-PUB2DBEU.js";import"./chunk-GOV7BL6D.js";import"./chunk-OM7B3BIS.js";import"./chunk-MDOQS4TE.js";import{a as W}from"./chunk-G7BOERRR.js";import"./chunk-2ODAR4M4.js";import{c as T,d as k,e as A,j as V}from"./chunk-VUYLTOWP.js";import{F as O,J as E}from"./chunk-ZHVSJD4N.js";import{Cb as C,Fb as F,Gb as M,Hb as o,Ib as l,Nb as v,Rb as m,Sb as c,ab as s,bb as _,bc as a,cc as P,ec as b,fa as w,fc as g,gc as f,lc as S,qa as h,ra as p,rb as y,xb as x}from"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";function j(r,u){if(r&1){let e=v();o(0,"dsw-color-picker",7),f("colorChange",function(n){h(e);let i=c().$implicit;return g(i.value,n)||(i.value=n),p(n)}),m("colorChange",function(){h(e);let n=c().$implicit,i=c();return p(i.updateVariable(n))}),l()}if(r&2){let e=c().$implicit;b("color",e.value),x("isImmediate",!0)}}function N(r,u){if(r&1){let e=v();o(0,"input",8),f("ngModelChange",function(n){h(e);let i=c().$implicit;return g(i.value,n)||(i.value=n),p(n)}),m("change",function(){h(e);let n=c().$implicit,i=c();return p(i.updateVariable(n))}),l()}if(r&2){let e=c().$implicit;b("ngModel",e.value)}}function L(r,u){if(r&1&&(o(0,"tr")(1,"td"),a(2),l(),o(3,"td"),y(4,j,1,2,"dsw-color-picker",5)(5,N,1,1,"input",6),l()()),r&2){let e=u.$implicit;s(2),P(e.name),s(2),C(e.isColor?4:-1),s(),C(e.isColor?-1:5)}}var X=(()=>{class r{constructor(e,t){this.sbs=e,this.ss=t,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:O.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,i)=>n=i.selectorText===":root"?[...n,...Array.from(i.style).filter(d=>d.startsWith("--"))]:n,[])],[])}static{this.\u0275fac=function(t){return new(t||r)(_(W),_(E))}}static{this.\u0275cmp=w({type:r,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&&(o(0,"dsw-sidebar-actions",0),m("cancel",function(){return n.onCancel()})("apply",function(){return n.onApply()}),a(1,"Theme settings"),l(),o(2,"div",1)(3,"label"),a(4,"Current theme"),l(),o(5,"ng-select",2),f("ngModelChange",function(d){return g(n.model.theme,d)||(n.model.theme=d),d}),l(),o(6,"label"),a(7,"Theme variables"),l(),o(8,"div",3)(9,"table")(10,"thead")(11,"tr")(12,"td"),a(13,"Name"),l(),o(14,"td"),a(15,"Value"),l()()(),o(16,"tbody"),F(17,L,6,3,"tr",null,n.trackVariable,!0),l()()(),o(19,"button",4),m("click",function(){return n.exportTheme()}),a(20,"Download theme"),l()()),t&2&&(s(5),b("ngModel",n.model.theme),x("clearable",!1)("items",n.model.themes),s(12),M(n.variables))},dependencies:[I,z,B,V,T,k,A,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}","[_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}"]})}}return r})();export{X as ThemeSettingsComponent}; diff --git a/dist/chunk-SAG3WZA7.js b/dist/chunk-Y3SGEOX4.js similarity index 64% rename from dist/chunk-SAG3WZA7.js rename to dist/chunk-Y3SGEOX4.js index 002ee168..01e1cbbb 100644 --- a/dist/chunk-SAG3WZA7.js +++ b/dist/chunk-Y3SGEOX4.js @@ -1,7 +1,7 @@ -import{a as st}from"./chunk-RU73HBGW.js";import{a as Pt}from"./chunk-23TAPEHU.js";import{a as We,c as Oe,d as Le,f as Be}from"./chunk-M4JSR4XG.js";import{a as Re}from"./chunk-NHWJ6QQD.js";import{c as Ve,d as Ut,f as wt,h as qt}from"./chunk-GOV7BL6D.js";import{a as Et}from"./chunk-3TBNLEJ6.js";import{a as Ft}from"./chunk-MDOQS4TE.js";import{a as De}from"./chunk-G7BOERRR.js";import{a as it}from"./chunk-UJWY6PMO.js";import{a as pt,b as ze}from"./chunk-MGBUQL4E.js";import{c as Te,d as $e,e as ke,f as Me,g as Pe,h as Fe,j as Ee}from"./chunk-BCYEWSDA.js";import{D as $t,E as kt,F as J,G as Ie,H as Se,I as dt,J as ct,K as ft,L as Mt,d as jt,e as ve,k as ye,u as ht}from"./chunk-5MYX3VUL.js";import{$b as _e,Aa as Lt,Bb as Ce,Ca as gt,Cb as b,Da as Bt,Db as Ht,Ea as q,Eb as G,F as he,Fb as R,Gb as V,Hb as h,Ib as m,Jb as y,Kc as U,Mb as be,Nb as x,R as de,Rb as f,S as Vt,Sb as d,Tb as At,Ub as Xt,Vb as j,X as St,Xb as Q,Y as ce,Ya as ge,Yb as K,Zb as Z,_b as xe,ab as a,ac as at,ba as D,bb as _,bc as C,cc as k,dc as Tt,ec as Nt,f as It,fa as L,fb as ot,fc as Yt,ga as pe,gc as Gt,ha as me,ib as ue,jb as fe,lb as we,lc as B,pa as mt,qa as c,qc as S,ra as p,rb as F,rc as T,s as oe,xb as $,y as le,yb as ut,z as ae,za as Y,zb as E}from"./chunk-ZEAAPN4P.js";import{a as et,b as Rt}from"./chunk-MG3ERZGY.js";var Xe=["*"];function ai(r,s){if(r&1&&y(0,"div",0),r&2){let t=s.$index,e=d();$("ngStyle",e.gridRenderer.getGridColumnStyle(t))}}function hi(r,s){if(r&1&&y(0,"div",1),r&2){let t=s.$index,e=d();$("ngStyle",e.gridRenderer.getGridRowStyle(t))}}function di(r,s){if(r&1){let t=x();h(0,"div",8),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function ci(r,s){if(r&1){let t=x();h(0,"div",9),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function pi(r,s){if(r&1){let t=x();h(0,"div",10),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function mi(r,s){if(r&1){let t=x();h(0,"div",11),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function gi(r,s){if(r&1){let t=x();h(0,"div",12),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function ui(r,s){if(r&1){let t=x();h(0,"div",13),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function fi(r,s){if(r&1){let t=x();h(0,"div",14),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}function wi(r,s){if(r&1){let t=x();h(0,"div",15),f("mousedown",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))})("touchstart",function(i){c(t);let n=d();return p(n.resize.dragStartDelay(i))}),m()}}var v=function(r){return r.Fit="fit",r.ScrollVertical="scrollVertical",r.ScrollHorizontal="scrollHorizontal",r.Fixed="fixed",r.VerticalFixed="verticalFixed",r.HorizontalFixed="horizontalFixed",r}(v||{}),zt=function(r){return r.Always="always",r.OnDragAndResize="onDrag&Resize",r.None="none",r}(zt||{}),M=function(r){return r.None="none",r.CompactUp="compactUp",r.CompactLeft="compactLeft",r.CompactUpAndLeft="compactUp&Left",r.CompactLeftAndUp="compactLeft&Up",r.CompactRight="compactRight",r.CompactUpAndRight="compactUp&Right",r.CompactRightAndUp="compactRight&Up",r.CompactDown="compactDown",r.CompactDownAndLeft="compactDown&Left",r.CompactLeftAndDown="compactLeft&Down",r.CompactDownAndRight="compactDown&Right",r.CompactRightAndDown="compactRight&Down",r}(M||{}),W=function(r){return r.LTR="ltr",r.RTL="rtl",r}(W||{}),Qt=class{constructor(s){this.gridster=s}destroy(){this.gridster=null}checkCompact(){this.gridster.$options.compactType!==M.None&&(this.gridster.$options.compactType===M.CompactUp?this.checkCompactMovement("y",-1):this.gridster.$options.compactType===M.CompactLeft?this.checkCompactMovement("x",-1):this.gridster.$options.compactType===M.CompactUpAndLeft?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===M.CompactLeftAndUp?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===M.CompactRight?this.checkCompactMovement("x",1):this.gridster.$options.compactType===M.CompactUpAndRight?(this.checkCompactMovement("y",-1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===M.CompactRightAndUp?(this.checkCompactMovement("x",1),this.checkCompactMovement("y",-1)):this.gridster.$options.compactType===M.CompactDown?this.checkCompactMovement("y",1):this.gridster.$options.compactType===M.CompactDownAndLeft?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",-1)):this.gridster.$options.compactType===M.CompactDownAndRight?(this.checkCompactMovement("y",1),this.checkCompactMovement("x",1)):this.gridster.$options.compactType===M.CompactLeftAndDown?(this.checkCompactMovement("x",-1),this.checkCompactMovement("y",1)):this.gridster.$options.compactType===M.CompactRightAndDown&&(this.checkCompactMovement("x",1),this.checkCompactMovement("y",1)))}checkCompactItem(s){this.gridster.$options.compactType!==M.None&&(this.gridster.$options.compactType===M.CompactUp?this.moveTillCollision(s,"y",-1):this.gridster.$options.compactType===M.CompactLeft?this.moveTillCollision(s,"x",-1):this.gridster.$options.compactType===M.CompactUpAndLeft?(this.moveTillCollision(s,"y",-1),this.moveTillCollision(s,"x",-1)):this.gridster.$options.compactType===M.CompactLeftAndUp?(this.moveTillCollision(s,"x",-1),this.moveTillCollision(s,"y",-1)):this.gridster.$options.compactType===M.CompactUpAndRight?(this.moveTillCollision(s,"y",-1),this.moveTillCollision(s,"x",1)):this.gridster.$options.compactType===M.CompactDown?this.moveTillCollision(s,"y",1):this.gridster.$options.compactType===M.CompactDownAndLeft?(this.moveTillCollision(s,"y",1),this.moveTillCollision(s,"x",-1)):this.gridster.$options.compactType===M.CompactLeftAndDown?(this.moveTillCollision(s,"x",-1),this.moveTillCollision(s,"y",1)):this.gridster.$options.compactType===M.CompactDownAndRight?(this.moveTillCollision(s,"y",1),this.moveTillCollision(s,"x",1)):this.gridster.$options.compactType===M.CompactRightAndDown&&(this.moveTillCollision(s,"x",1),this.moveTillCollision(s,"y",1)))}checkCompactMovement(s,t){let e=!1;this.gridster.grid.forEach(i=>{i.$item.compactEnabled!==!1&&this.moveTillCollision(i.$item,s,t)&&(e=!0,i.item[s]=i.$item[s],i.itemChanged())}),e&&this.checkCompact()}moveTillCollision(s,t,e){return s[t]+=e,this.gridster.checkCollision(s)?(s[t]-=e,!1):(this.moveTillCollision(s,t,e),!0)}},Ci={gridType:v.Fit,scale:1,fixedColWidth:250,fixedRowHeight:250,keepFixedHeightInMobile:!1,keepFixedWidthInMobile:!1,setGridSize:!1,compactType:M.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:W.LTR},O=class r{static merge(s,t,e){for(let i in t)t[i]!==void 0&&e.hasOwnProperty(i)&&(typeof t[i]=="object"?(i in s||(s[i]={}),s[i]=r.merge(s[i],t[i],e[i])):s[i]=t[i]);return s}static checkTouchEvent(s){s.clientX===void 0&&s.touches&&(s.touches&&s.touches.length?(s.clientX=s.touches[0].clientX,s.clientY=s.touches[0].clientY):s.changedTouches&&s.changedTouches.length&&(s.clientX=s.changedTouches[0].clientX,s.clientY=s.changedTouches[0].clientY))}static checkContentClassForEvent(s,t){if(s.$options.draggable.ignoreContent){if(!r.checkDragHandleClass(t.target,t.currentTarget,s.$options.draggable.dragHandleClass,s.$options.draggable.ignoreContentClass))return!0}else if(r.checkContentClass(t.target,t.currentTarget,s.$options.draggable.ignoreContentClass))return!0;return!1}static checkContentClassForEmptyCellClickEvent(s,t){return r.checkContentClass(t.target,t.currentTarget,s.$options.draggable.ignoreContentClass)||r.checkContentClass(t.target,t.currentTarget,s.$options.draggable.dragHandleClass)}static checkDragHandleClass(s,t,e,i){if(!s||s===t)return!1;if(s.hasAttribute("class")){let n=s.getAttribute("class").split(" ");if(n.indexOf(e)>-1)return!0;if(n.indexOf(i)>-1)return!1}return r.checkDragHandleClass(s.parentNode,t,e,i)}static checkContentClass(s,t,e){return!s||s===t?!1:s.hasAttribute("class")&&s.getAttribute("class").split(" ").indexOf(e)>-1?!0:r.checkContentClass(s.parentNode,t,e)}static compareItems(s,t){return s.y>t.y?-1:s.yt.x?-1:1}},Kt=class{constructor(s){this.gridster=s,this.emptyCellClickCb=t=>{if(!this.gridster||this.gridster.movingItem||O.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;let e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellClickCallback&&this.gridster.options.emptyCellClickCallback(t,e),this.gridster.cdRef.markForCheck())},this.emptyCellContextMenuCb=t=>{if(this.gridster.movingItem||O.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;t.preventDefault(),t.stopPropagation();let e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellContextMenuCallback&&this.gridster.options.emptyCellContextMenuCallback(t,e),this.gridster.cdRef.markForCheck())},this.emptyCellDragDrop=t=>{let e=this.getValidItemFromEvent(t);e&&(this.gridster.options.emptyCellDropCallback&&this.gridster.options.emptyCellDropCallback(t,e),this.gridster.cdRef.markForCheck())},this.emptyCellDragOver=t=>{t.preventDefault(),t.stopPropagation();let e=this.getValidItemFromEvent(t);e?(t.dataTransfer&&(t.dataTransfer.dropEffect="move"),this.gridster.movingItem=e):(t.dataTransfer&&(t.dataTransfer.dropEffect="none"),this.gridster.movingItem=null),this.gridster.previewStyle()},this.emptyCellMouseDown=t=>{if(O.checkContentClassForEmptyCellClickEvent(this.gridster,t))return;t.preventDefault(),t.stopPropagation();let e=this.getValidItemFromEvent(t);!e||t.buttons!==1&&!(t instanceof TouchEvent)||(this.initialItem=e,this.gridster.movingItem=e,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=t=>{t.preventDefault(),t.stopPropagation();let e=this.getValidItemFromEvent(t,this.initialItem);e&&(this.gridster.movingItem=e,this.gridster.previewStyle())},this.emptyCellMouseUp=t=>{this.removeWindowMousemoveListenerFn(),this.removeWindowTouchmoveListenerFn(),this.removeWindowMouseupListenerFn(),this.removeWindowTouchendListenerFn();let e=this.getValidItemFromEvent(t,this.initialItem);e&&(this.gridster.movingItem=e),this.gridster.options.emptyCellDragCallback&&this.gridster.movingItem&&this.gridster.options.emptyCellDragCallback(t,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(s,t){let e=this.gridster.options.scale;return e?(s.clientX-t.left)/e+this.gridster.el.scrollLeft-this.gridster.gridRenderer.getLeftMargin():s.clientX+this.gridster.el.scrollLeft-t.left-this.gridster.gridRenderer.getLeftMargin()}getPixelsY(s,t){let e=this.gridster.options.scale;return e?(s.clientY-t.top)/e+this.gridster.el.scrollTop-this.gridster.gridRenderer.getTopMargin():s.clientY+this.gridster.el.scrollTop-t.top-this.gridster.gridRenderer.getTopMargin()}getValidItemFromEvent(s,t){s.preventDefault(),s.stopPropagation(),O.checkTouchEvent(s);let e=this.gridster.el.getBoundingClientRect(),i=this.getPixelsX(s,e),n=this.getPixelsY(s,e),o={x:this.gridster.pixelsToPositionX(i,Math.floor,!0),y:this.gridster.pixelsToPositionY(n,Math.floor,!0),cols:this.gridster.$options.defaultItemCols,rows:this.gridster.$options.defaultItemRows};if(t&&(o.cols=Math.min(Math.abs(t.x-o.x)+1,this.gridster.$options.emptyCellDragMaxCols),o.rows=Math.min(Math.abs(t.y-o.y)+1,this.gridster.$options.emptyCellDragMaxRows),t.xthis.gridster.$options.emptyCellDragMaxCols-1&&(o.x=this.gridster.movingItem?this.gridster.movingItem.x:0),t.ythis.gridster.$options.emptyCellDragMaxRows-1&&(o.y=this.gridster.movingItem?this.gridster.movingItem.y:0)),!(!this.gridster.$options.enableOccupiedCellDrop&&this.gridster.checkCollision(o)))return o}},Zt=class{constructor(s){this.gridster=s,this.lastGridColumnStyles={},this.lastGridRowStyles={}}destroy(){this.gridster=null}updateItem(s,t,e){if(this.gridster.mobile)this.clearCellPosition(e,s),this.gridster.$options.keepFixedHeightInMobile?e.setStyle(s,"height",(t.rows-1)*this.gridster.$options.margin+t.rows*this.gridster.$options.fixedRowHeight+"px"):e.setStyle(s,"height",t.rows*this.gridster.curWidth/t.cols+"px"),this.gridster.$options.keepFixedWidthInMobile?e.setStyle(s,"width",this.gridster.$options.fixedColWidth+"px"):e.setStyle(s,"width",""),e.setStyle(s,"margin-bottom",this.gridster.$options.margin+"px"),e.setStyle(s,W.LTR?"margin-right":"margin-left","");else{let i=Math.round(this.gridster.curColWidth*t.x),n=Math.round(this.gridster.curRowHeight*t.y),o=this.gridster.curColWidth*t.cols-this.gridster.$options.margin,l=this.gridster.curRowHeight*t.rows-this.gridster.$options.margin;this.setCellPosition(e,s,i,n),e.setStyle(s,"width",o+"px"),e.setStyle(s,"height",l+"px");let u=null,g=null;this.gridster.$options.outerMargin&&(this.gridster.rows===t.rows+t.y&&(this.gridster.$options.outerMarginBottom!==null?u=this.gridster.$options.outerMarginBottom+"px":u=this.gridster.$options.margin+"px"),this.gridster.columns===t.cols+t.x&&(this.gridster.$options.outerMarginBottom!==null?g=this.gridster.$options.outerMarginRight+"px":g=this.gridster.$options.margin+"px")),e.setStyle(s,"margin-bottom",u),e.setStyle(s,W.LTR?"margin-right":"margin-left",g)}}updateGridster(){let s="",t="",e="",i="";if(this.gridster.$options.gridType===v.Fit)s=v.Fit,t=v.ScrollVertical,e=v.ScrollHorizontal,i=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollVertical)this.gridster.curRowHeight=this.gridster.curColWidth*this.gridster.$options.rowHeightRatio,s=v.ScrollVertical,t=v.Fit,e=v.ScrollHorizontal,i=v.Fixed;else if(this.gridster.$options.gridType===v.ScrollHorizontal){let n=this.gridster.$options.rowHeightRatio,o=n>=1?n:n+1;this.gridster.curColWidth=this.gridster.curRowHeight*o,s=v.ScrollHorizontal,t=v.Fit,e=v.ScrollVertical,i=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),s=v.Fixed,t=v.Fit,e=v.ScrollVertical,i=v.ScrollHorizontal):this.gridster.$options.gridType===v.VerticalFixed?(this.gridster.curRowHeight=this.gridster.$options.fixedRowHeight+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),s=v.ScrollVertical,t=v.Fit,e=v.ScrollHorizontal,i=v.Fixed):this.gridster.$options.gridType===v.HorizontalFixed&&(this.gridster.curColWidth=this.gridster.$options.fixedColWidth+(this.gridster.$options.ignoreMarginInRow?0:this.gridster.$options.margin),s=v.ScrollHorizontal,t=v.Fit,e=v.ScrollVertical,i=v.Fixed);this.gridster.mobile||this.gridster.$options.setGridSize&&this.gridster.$options.gridType!==v.Fit?this.gridster.renderer.removeClass(this.gridster.el,s):this.gridster.renderer.addClass(this.gridster.el,s),this.gridster.renderer.removeClass(this.gridster.el,t),this.gridster.renderer.removeClass(this.gridster.el,e),this.gridster.renderer.removeClass(this.gridster.el,i)}getGridColumnStyle(s){let t={left:this.gridster.curColWidth*s,width:this.gridster.curColWidth-this.gridster.$options.margin,height:this.gridster.gridRows.length*this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};t.style=Rt(et({},this.getLeftPosition(t.left)),{width:t.width+"px",height:t.height+"px"});let e=this.lastGridColumnStyles[s];return e&&e.left===t.left&&e.width===t.width&&e.height===t.height?e.style:(this.lastGridColumnStyles[s]=t,t.style)}getGridRowStyle(s){let t={top:this.gridster.curRowHeight*s,width:this.gridster.gridColumns.length*this.gridster.curColWidth+this.gridster.$options.margin,height:this.gridster.curRowHeight-this.gridster.$options.margin,style:{}};t.style=Rt(et({},this.getTopPosition(t.top)),{width:t.width+"px",height:t.height+"px"});let e=this.lastGridRowStyles[s];return e&&e.top===t.top&&e.width===t.width&&e.height===t.height?e.style:(this.lastGridRowStyles[s]=t,t.style)}getLeftPosition(s){let t=this.gridster.$options.dirType===W.RTL?-s:s;return this.gridster.$options.useTransformPositioning?{transform:"translateX("+t+"px)"}:{left:this.getLeftMargin()+t+"px"}}getTopPosition(s){return this.gridster.$options.useTransformPositioning?{transform:"translateY("+s+"px)"}:{top:this.getTopMargin()+s+"px"}}clearCellPosition(s,t){this.gridster.$options.useTransformPositioning?s.setStyle(t,"transform",""):(s.setStyle(t,"top",""),s.setStyle(t,"left",""))}setCellPosition(s,t,e,i){let n=this.gridster.$options.dirType===W.RTL?-e:e;if(this.gridster.$options.useTransformPositioning){let o="translate3d("+n+"px, "+i+"px, 0)";s.setStyle(t,"transform",o)}else s.setStyle(t,"left",this.getLeftMargin()+n+"px"),s.setStyle(t,"top",this.getTopMargin()+i+"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}},bi=(()=>{class r{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","")}static{this.\u0275fac=function(e){return new(e||r)(_(q),_(ot))}}static{this.\u0275cmp=L({type:r,selectors:[["gridster-preview"]],inputs:{previewStyle$:"previewStyle$",gridRenderer:"gridRenderer"},standalone:!0,features:[B],decls:0,vars:0,template:function(e,i){},styles:[`gridster-preview{position:absolute;display:none;background:#00000026} -`],encapsulation:2})}}return r})(),se=(()=>{class r{constructor(t,e,i,n){this.renderer=e,this.cdRef=i,this.zone=n,this.columns=0,this.rows=0,this.gridColumns=[],this.gridRows=[],this.previewStyle$=new Y,this.calculateLayout$=new It,this.resize$=new It,this.destroy$=new It,this.optionsChanged=()=>{this.setOptions();let o=this.grid.length-1,l;for(;o>=0;o--)l=this.grid[o],l.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=(o,l={})=>{o.cols===-1&&(o.cols=this.$options.defaultItemCols),o.rows===-1&&(o.rows=this.$options.defaultItemRows),this.setGridDimensions();let u=l.y||0,g;for(;u=this.rows+o.rows,I=this.$options.maxCols>=this.columns+o.cols;return!(this.rows<=this.columns&&w)&&I?(o.x=this.columns,o.y=0,!0):w?(o.y=this.rows,o.x=0,!0):!1},this.getFirstPossiblePosition=o=>{let l=Object.assign({},o);return this.getNextPossiblePosition(l),l},this.getLastPossiblePosition=o=>{let l={y:0,x:0};l=this.grid.reduce((g,w)=>{let I={y:w.$item.y+w.$item.rows-1,x:w.$item.x+w.$item.cols-1};return O.compareItems(g,I)===1?I:g},l);let u=Object.assign({},o);return this.getNextPossiblePosition(u,l),u},this.el=t.nativeElement,this.$options=JSON.parse(JSON.stringify(Ci)),this.mobile=!1,this.curWidth=0,this.curHeight=0,this.grid=[],this.curColWidth=0,this.curRowHeight=0,this.dragInProgress=!1,this.emptyCell=new Kt(this),this.compact=new Qt(this),this.gridRenderer=new Zt(this)}static checkCollisionTwoItemsForSwaping(t,e){let i=t.cols===1?0:1,n=e.cols===1?0:1,o=t.rows===1?0:1,l=e.rows===1?0:1;return t.x+ie.x+n&&t.y+oe.y+l}checkCollisionTwoItems(t,e){if(!(t.xe.x&&t.ye.y))return!1;if(!this.$options.allowMultiLayer)return!0;let n=this.$options.defaultLayerIndex,o=t.layerIndex===void 0?n:t.layerIndex,l=e.layerIndex===void 0?n:e.layerIndex;return o===l}ngOnInit(){this.options.initCallback&&this.options.initCallback(this),this.calculateLayout$.pipe(he(0),Vt(this.destroy$)).subscribe(()=>this.calculateLayout()),this.resize$.pipe(de(()=>ae(100)),Vt(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=O.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,i=this.el.scrollWidth,n=this.el.clientHeight,o=this.el.offsetHeight,l=this.el.scrollHeight,u=to&&l-oe&&i-edocument.body.clientWidth:this.$options.mobileBreakpoint>this.curWidth}setGridSize(){let t=this.el,e,i;this.$options.setGridSize||this.$options.gridType===v.Fit&&!this.mobile?(e=t.offsetWidth,i=t.offsetHeight):(e=t.clientWidth,i=t.clientHeight),this.curWidth=e,this.curHeight=i}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,i=this.grid.length-1,n;for(;i>=0;i--)n=this.grid[i],n.notPlaced||(t=Math.max(t,n.$item.y+n.$item.rows),e=Math.max(e,n.$item.x+n.$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 i=-this.$options.margin;this.$options.outerMarginLeft!==null?(i+=this.$options.outerMarginLeft,this.renderer.setStyle(this.el,"padding-left",this.$options.outerMarginLeft+"px")):(i+=this.$options.margin,this.renderer.setStyle(this.el,"padding-left",this.$options.margin+"px")),this.$options.outerMarginRight!==null?(i+=this.$options.outerMarginRight,this.renderer.setStyle(this.el,"padding-right",this.$options.outerMarginRight+"px")):(i+=this.$options.margin,this.renderer.setStyle(this.el,"padding-right",this.$options.margin+"px")),this.curColWidth=(this.curWidth-i)/this.columns;let n=-this.$options.margin;this.$options.outerMarginTop!==null?(n+=this.$options.outerMarginTop,this.renderer.setStyle(this.el,"padding-top",this.$options.outerMarginTop+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-top",this.$options.margin+"px")),this.$options.outerMarginBottom!==null?(n+=this.$options.outerMarginBottom,this.renderer.setStyle(this.el,"padding-bottom",this.$options.outerMarginBottom+"px")):(n+=this.$options.margin,this.renderer.setStyle(this.el,"padding-bottom",this.$options.margin+"px")),this.curRowHeight=(this.curHeight-n)/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=r.getNewArrayLength(this.columns,this.curWidth,this.curColWidth),this.gridRows.length=r.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 i=this.findItemWithItem(t);i&&(e=i)}return e}checkGridCollision(t){let e=t.y>-1&&t.x>-1,i=t.cols+t.x<=this.$options.maxCols,n=t.rows+t.y<=this.$options.maxRows,o=t.maxItemCols===void 0?this.$options.maxItemCols:t.maxItemCols,l=t.minItemCols===void 0?this.$options.minItemCols:t.minItemCols,u=t.maxItemRows===void 0?this.$options.maxItemRows:t.maxItemRows,g=t.minItemRows===void 0?this.$options.minItemRows:t.minItemRows,w=t.cols<=o&&t.cols>=l,I=t.rows<=u&&t.rows>=g,z=t.minItemArea===void 0?this.$options.minItemArea:t.minItemArea,A=t.maxItemArea===void 0?this.$options.maxItemArea:t.maxItemArea,P=t.cols*t.rows,N=z<=P,rt=A>=P;return!(e&&i&&n&&w&&I&&N&&rt)}findItemWithItem(t){let e=0,i;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 i=this.findItemWithItemForSwapping(t);i&&(e=i)}return e}findItemWithItemForSwapping(t){let e=this.grid.length-1,i;for(;e>-1;e--)if(i=this.grid[e],i.$item!==t&&r.checkCollisionTwoItemsForSwaping(i.$item,t))return i;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,i){let n=Math.max(t,Math.floor(e/i));return n<0?0:Number.isFinite(n)?Math.floor(n):0}static{this.\u0275fac=function(e){return new(e||r)(_(q),_(ot),_(U),_(Lt))}}static{this.\u0275cmp=L({type:r,selectors:[["gridster"]],inputs:{options:"options"},standalone:!0,features:[mt,B],ngContentSelectors:Xe,decls:6,vars:2,consts:[[1,"gridster-column",3,"ngStyle"],[1,"gridster-row",3,"ngStyle"],[1,"gridster-preview",3,"gridRenderer","previewStyle$"]],template:function(e,i){e&1&&(At(),R(0,ai,1,1,"div",0,Ht),R(2,hi,1,1,"div",1,Ht),Xt(4),y(5,"gridster-preview",2)),e&2&&(V(i.gridColumns),a(2),V(i.gridRows),a(3),$("gridRenderer",i.gridRenderer)("previewStyle$",i.previewStyle$))},dependencies:[ve,bi],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})}}return r})(),Dt=class{constructor(s){this.iteration=0,this.pushedItems=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],this.pushedItemsPath=[],this.gridsterItem=s,this.gridster=s.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(s,t){if(this.gridster.$options.pushItems&&!t){this.pushedItemsOrder=[],this.iteration=0;let e=this.push(this.gridsterItem,s);return e||this.restoreTempItems(),this.pushedItemsOrder=[],this.pushedItemsTemp=[],this.pushedItemsTempPath=[],e}else return!1}restoreTempItems(){let s=this.pushedItemsTemp.length-1;for(;s>-1;s--)this.removeFromTempPushed(this.pushedItemsTemp[s])}restoreItems(){let s=0,t=this.pushedItems.length,e;for(;s-1;s--)this.checkPushedItem(this.pushedItems[s],s)&&(t=!0);t&&this.checkPushBack()}push(s,t){if(this.iteration>100)return console.warn("max iteration reached"),!1;if(this.gridster.checkGridCollision(s.$item)||t==="")return!1;let e=this.gridster.findItemsWithItem(s.$item),i=t===this.fromNorth||t===this.fromWest;e.sort((g,w)=>i?w.$item.y-g.$item.y||w.$item.x-g.$item.x:g.$item.y-w.$item.y||g.$item.x-w.$item.x);let n=0,o,l=!0,u=[];for(;n-1&&this.pushedItemsTempPath[g].length>10){l=!1;break}if(this.tryPattern[t][0].call(this,o,s))this.pushedItemsOrder.push(o),u.push(o);else if(this.tryPattern[t][1].call(this,o,s))this.pushedItemsOrder.push(o),u.push(o);else if(this.tryPattern[t][2].call(this,o,s))this.pushedItemsOrder.push(o),u.push(o);else if(this.tryPattern[t][3].call(this,o,s))this.pushedItemsOrder.push(o),u.push(o);else{l=!1;break}}if(!l&&(n=this.pushedItemsOrder.lastIndexOf(u[0]),n>-1)){let g=this.pushedItemsOrder.length-1;for(;g>=n;g--)o=this.pushedItemsOrder[g],this.pushedItemsOrder.pop(),this.removeFromTempPushed(o),this.removeFromPushedItem(o)}return this.iteration++,l}trySouth(s,t){return this.gridster.$options.pushDirections.south?(this.addToTempPushed(s),s.$item.y=t.$item.y+t.$item.rows,this.push(s,this.fromNorth)?(s.setSize(),this.addToPushed(s),!0):(this.removeFromTempPushed(s),!1)):!1}tryNorth(s,t){return this.gridster.$options.pushDirections.north?(this.addToTempPushed(s),s.$item.y=t.$item.y-s.$item.rows,this.push(s,this.fromSouth)?(s.setSize(),this.addToPushed(s),!0):(this.removeFromTempPushed(s),!1)):!1}tryEast(s,t){return this.gridster.$options.pushDirections.east?(this.addToTempPushed(s),s.$item.x=t.$item.x+t.$item.cols,this.push(s,this.fromWest)?(s.setSize(),this.addToPushed(s),!0):(this.removeFromTempPushed(s),!1)):!1}tryWest(s,t){return this.gridster.$options.pushDirections.west?(this.addToTempPushed(s),s.$item.x=t.$item.x-s.$item.cols,this.push(s,this.fromEast)?(s.setSize(),this.addToPushed(s),!0):(this.removeFromTempPushed(s),!1)):!1}addToTempPushed(s){let t=this.pushedItemsTemp.indexOf(s);t===-1&&(t=this.pushedItemsTemp.push(s)-1,this.pushedItemsTempPath[t]=[]),this.pushedItemsTempPath[t].push({x:s.$item.x,y:s.$item.y})}removeFromTempPushed(s){let t=this.pushedItemsTemp.indexOf(s),e=this.pushedItemsTempPath[t].pop();e&&(s.$item.x=e.x,s.$item.y=e.y,s.setSize(),this.pushedItemsTempPath[t].length||(this.pushedItemsTemp.splice(t,1),this.pushedItemsTempPath.splice(t,1)))}addToPushed(s){if(this.pushedItems.indexOf(s)<0)this.pushedItems.push(s),this.pushedItemsPath.push([{x:s.item.x||0,y:s.item.y||0},{x:s.$item.x,y:s.$item.y}]);else{let t=this.pushedItems.indexOf(s);this.pushedItemsPath[t].push({x:s.$item.x,y:s.$item.y})}}removeFromPushed(s){s>-1&&(this.pushedItems.splice(s,1),this.pushedItemsPath.splice(s,1))}removeFromPushedItem(s){let t=this.pushedItems.indexOf(s);t>-1&&(this.pushedItemsPath[t].pop(),this.pushedItemsPath.length||(this.pushedItems.splice(t,1),this.pushedItemsPath.splice(t,1)))}checkPushedItem(s,t){let e=this.pushedItemsPath[t],i=e.length-2,n,o,l,u=!1;for(;i>-1;i--)n=e[i],o=s.$item.x,l=s.$item.y,s.$item.x=n.x,s.$item.y=n.y,this.gridster.findItemWithItem(s.$item)?(s.$item.x=o,s.$item.y=l):(s.setSize(),e.splice(i+1,e.length-i-1),u=!0);return e.length<2&&this.removeFromPushed(t),u}},Ct,lt,Ne=50,X,bt,tt,xt,_t,vt,yt;function Ye(r,s,t,e,i,n,o,l,u,g){Ct=r.$options.scrollSensitivity,lt=r.$options.scrollSpeed,X=r.el,bt=u,tt=g;let w=X.offsetWidth,I=X.offsetHeight,z=X.scrollLeft,A=X.scrollTop,P=t-A,N=I+A-t-i,{clientX:rt,clientY:Ot}=n;if(!r.$options.disableScrollVertical)if(o.clientYOt&&A>0&&Prt&&z>0&&li{(!X||r===-1&&X.scrollTop-lt<0)&&re(),X.scrollTop+=r*lt,e+=r*lt,s({clientX:t.clientX,clientY:e})},Ne)}function Ae(r,s,t){let e=t.clientX;return window.setInterval(()=>{(!X||r===-1&&X.scrollLeft-lt<0)&&ne(),X.scrollLeft+=r*lt,e+=r*lt,s({clientX:e,clientY:t.clientY})},Ne)}function Ge(){ne(),re(),X=null}function ne(){je(),Ue()}function re(){Qe(),qe()}function je(){xt&&(clearInterval(xt),xt=0)}function Ue(){_t&&(clearInterval(_t),_t=0)}function qe(){yt&&(clearInterval(yt),yt=0)}function Qe(){vt&&(clearInterval(vt),vt=0)}var Jt=class{constructor(s){this.gridsterItem=s,this.gridster=s.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 s=this.swapedItem.$item.x,t=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=s,this.swapedItem.$item.y=t):(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(s){let t;if(this.gridster.$options.swapWhileDragging?t=this.gridster.checkCollisionForSwaping(s.$item):t=this.gridster.checkCollision(s.$item),t&&t!==!0&&t.canBeDragged()){let e=t,i=e.$item.x,n=e.$item.y,o=s.$item.x,l=s.$item.y,u=o-i,g=l-n;e.$item.x=s.item.x-u,e.$item.y=s.item.y-g,s.$item.x=e.item.x+u,s.$item.y=e.item.y+g,this.gridster.checkCollision(e.$item)||this.gridster.checkCollision(s.$item)?(s.$item.x=o,s.$item.y=l,e.$item.x=i,e.$item.y=n):(e.setSize(),this.swapedItem=e,this.gridster.$options.swapWhileDragging&&(this.gridsterItem.checkItemChanges(this.gridsterItem.$item,this.gridsterItem.item),this.setSwapItem()))}}},xi="gridster-item-resizable-handler",H=function(r){return r.UP="UP",r.DOWN="DOWN",r.LEFT="LEFT",r.RIGHT="RIGHT",r}(H||{}),te=class{constructor(s,t,e){this.zone=e,this.collision=!1,this.dragMove=i=>{i.stopPropagation(),i.preventDefault(),O.checkTouchEvent(i);let n=this.getDirections(i);this.gridster.options.enableBoundaryControl&&(n.includes(H.UP)&&this.gridsterItem.el.getBoundingClientRect().topo!=H.UP),i=new MouseEvent(i.type,{clientX:i.clientX,clientY:this.lastMouse.clientY})),n.includes(H.LEFT)&&this.gridsterItem.el.getBoundingClientRect().lefto!=H.LEFT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),n.includes(H.RIGHT)&&this.gridsterItem.el.getBoundingClientRect().right>this.gridster.el.getBoundingClientRect().right-(this.outerMarginRight??this.margin)&&(n=n.filter(o=>o!=H.RIGHT),i=new MouseEvent(i.type,{clientX:this.lastMouse.clientX,clientY:i.clientY})),n.includes(H.DOWN)&&this.gridsterItem.el.getBoundingClientRect().bottom>this.gridster.el.getBoundingClientRect().bottom-(this.outerMarginBottom??this.margin)&&(n=n.filter(o=>o!=H.DOWN),i=new MouseEvent(i.type,{clientX:i.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,Ye(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.calculateItemPositionFromMousePosition),this.calculateItemPositionFromMousePosition(i))},this.calculateItemPositionFromMousePosition=i=>{this.gridster.options.scale?this.calculateItemPositionWithScale(i,this.gridster.options.scale):this.calculateItemPositionWithoutScale(i),this.calculateItemPosition(),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=i=>{i.stopPropagation(),i.preventDefault(),Ge(),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,i)).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=i=>{if(i.target.classList.contains(xi)||O.checkContentClassForEvent(this.gridster,i))return;if(O.checkTouchEvent(i),!this.gridster.$options.draggable.delayStart){this.dragStart(i);return}let o=setTimeout(()=>{this.dragStart(i),P()},this.gridster.$options.draggable.delayStart),l=this.gridsterItem.renderer.listen("document","mouseup",P),u=this.gridsterItem.renderer.listen("document","mouseleave",P),g=this.gridsterItem.renderer.listen("window","blur",P),w=this.gridsterItem.renderer.listen("document","touchmove",A),I=this.gridsterItem.renderer.listen("document","touchend",P),z=this.gridsterItem.renderer.listen("document","touchcancel",P);function A(N){O.checkTouchEvent(N),(Math.abs(N.clientX-i.clientX)>9||Math.abs(N.clientY-i.clientY)>9)&&P()}function P(){clearTimeout(o),g(),l(),u(),w(),I(),z()}},this.gridsterItem=s,this.gridster=t,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(s){s.which&&s.which!==1||(this.gridster.options.draggable&&this.gridster.options.draggable.start&&this.gridster.options.draggable.start(this.gridsterItem.item,this.gridsterItem,s),s.stopPropagation(),s.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=s.clientX,this.originalClientY=s.clientY,this.width=this.gridsterItem.width,this.height=this.gridsterItem.height,this.gridster.$options.dirType===W.RTL?this.diffLeft=s.clientX-this.gridster.el.scrollWidth+this.gridsterItem.left:this.diffLeft=s.clientX+this.offsetLeft-this.margin-this.left,this.diffTop=s.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 Jt(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(s,t){this.gridster.$options.dirType===W.RTL?this.left=this.gridster.el.scrollWidth-this.originalClientX+(s.clientX-this.originalClientX)/t+this.diffLeft:this.left=this.originalClientX+(s.clientX-this.originalClientX)/t+this.offsetLeft-this.diffLeft,this.top=this.originalClientY+(s.clientY-this.originalClientY)/t+this.offsetTop-this.diffTop}calculateItemPositionWithoutScale(s){this.gridster.$options.dirType===W.RTL?this.left=this.gridster.el.scrollWidth-s.clientX+this.diffLeft:this.left=s.clientX+this.offsetLeft-this.diffLeft,this.top=s.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 s=this.path[this.path.length-1],t="";s.xthis.gridsterItem.$item.x?t=this.push.fromEast:s.ythis.gridsterItem.$item.y&&(t=this.push.fromSouth),this.push.pushItems(t,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 s=this.gridsterItem.canBeDragged();!this.enabled&&s?(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&&!s&&(this.enabled=!this.enabled,this.mousedown(),this.touchstart())}getDirections(s){let t=[];return this.lastMouse.clientX===0&&this.lastMouse.clientY===0&&(this.lastMouse.clientY=s.clientY,this.lastMouse.clientX=s.clientX),this.lastMouse.clientY>s.clientY&&t.push(H.UP),this.lastMouse.clientYs.clientX&&t.push(H.LEFT),t}},ee=class{constructor(s){this.pushedItems=[],this.pushedItemsPath=[],this.gridsterItem=s,this.gridster=s.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(s){return this.gridster.$options.pushResizeItems?this.push(this.gridsterItem,s):!1}restoreItems(){let s=0,t=this.pushedItems.length,e;for(;s-1;s--)this.checkPushedItem(this.pushedItems[s],s)&&(t=!0);t&&this.checkPushBack()}push(s,t){let e=this.gridster.checkCollision(s.$item);if(e&&e!==!0&&e!==this.gridsterItem&&e.canBeResized()){if(this.tryPattern[t].call(this,e,s,t))return!0}else if(e===!1)return!0;return!1}trySouth(s,t,e){let i=s.$item.y,n=s.$item.rows;return s.$item.y=t.$item.y+t.$item.rows,s.$item.rows=n+i-s.$item.y,!this.gridster.checkCollisionTwoItems(s.$item,t.$item)&&!this.gridster.checkGridCollision(s.$item)?(s.setSize(),this.addToPushed(s),this.push(t,e),!0):(s.$item.y=i,s.$item.rows=n,!1)}tryNorth(s,t,e){let i=s.$item.rows;return s.$item.rows=t.$item.y-s.$item.y,!this.gridster.checkCollisionTwoItems(s.$item,t.$item)&&!this.gridster.checkGridCollision(s.$item)?(s.setSize(),this.addToPushed(s),this.push(t,e),!0):(s.$item.rows=i,!1)}tryEast(s,t,e){let i=s.$item.x,n=s.$item.cols;return s.$item.x=t.$item.x+t.$item.cols,s.$item.cols=n+i-s.$item.x,!this.gridster.checkCollisionTwoItems(s.$item,t.$item)&&!this.gridster.checkGridCollision(s.$item)?(s.setSize(),this.addToPushed(s),this.push(t,e),!0):(s.$item.x=i,s.$item.cols=n,!1)}tryWest(s,t,e){let i=s.$item.cols;return s.$item.cols=t.$item.x-s.$item.x,!this.gridster.checkCollisionTwoItems(s.$item,t.$item)&&!this.gridster.checkGridCollision(s.$item)?(s.setSize(),this.addToPushed(s),this.push(t,e),!0):(s.$item.cols=i,!1)}addToPushed(s){if(this.pushedItems.indexOf(s)<0)this.pushedItems.push(s),this.pushedItemsPath.push([{x:s.item.x||0,y:s.item.y||0,cols:s.item.cols||0,rows:s.item.rows||0},{x:s.$item.x,y:s.$item.y,cols:s.$item.cols,rows:s.$item.rows}]);else{let t=this.pushedItems.indexOf(s);this.pushedItemsPath[t].push({x:s.$item.x,y:s.$item.y,cols:s.$item.cols,rows:s.$item.rows})}}removeFromPushed(s){s>-1&&(this.pushedItems.splice(s,1),this.pushedItemsPath.splice(s,1))}checkPushedItem(s,t){let e=this.pushedItemsPath[t],i=e.length-2,n,o,l,u,g;for(;i>-1;i--)n=e[i],o=s.$item.x,l=s.$item.y,u=s.$item.cols,g=s.$item.rows,s.$item.x=n.x,s.$item.y=n.y,s.$item.cols=n.cols,s.$item.rows=n.rows,this.gridster.findItemWithItem(s.$item)?(s.$item.x=o,s.$item.y=l,s.$item.cols=u,s.$item.rows=g):(s.setSize(),e.splice(i+1,e.length-1-i));return e.length<2?(this.removeFromPushed(t),!0):!1}},ie=class{constructor(s,t,e){this.zone=e,this.directionFunction=null,this.dragMove=i=>{if(this.directionFunction===null)throw new Error("The `directionFunction` has not been set before calling `dragMove`.");i.stopPropagation(),i.preventDefault(),O.checkTouchEvent(i),this.offsetTop=this.gridster.el.scrollTop-this.gridster.el.offsetTop,this.offsetLeft=this.gridster.el.scrollLeft-this.gridster.el.offsetLeft,Ye(this.gridster,this.left,this.top,this.width,this.height,i,this.lastMouse,this.directionFunction,!0,this.resizeEventScrollType);let n=this.gridster.options.scale||1;this.directionFunction({clientX:this.originalClientX+(i.clientX-this.originalClientX)/n,clientY:this.originalClientY+(i.clientY-this.originalClientY)/n}),this.lastMouse.clientX=i.clientX,this.lastMouse.clientY=i.clientY,this.zone.run(()=>{this.gridster.updateGrid()})},this.dragStop=i=>{i.stopPropagation(),i.preventDefault(),Ge(),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,i)).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=i=>{this.top=i.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=i=>{let n=this.gridster.$options.dirType===W.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.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 o=this.gridster.options.pushItems?this.margin:0;if(this.newPosition=this.gridster.pixelsToPositionX(this.left+o,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=i=>{if(this.height=i.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 o=this.outerMarginBottom??this.margin,l=this.gridster.el.getBoundingClientRect();this.bottom=Math.min(this.bottom,l.bottom-l.top-2*o),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=i=>{let n=this.gridster.$options.dirType===W.RTL?this.originalClientX+(this.originalClientX-i.clientX):i.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,u=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,u.right-u.left-2*l),this.width=this.right-this.left}let o=this.gridster.options.pushItems?0:this.margin;if(this.newPosition=this.gridster.pixelsToPositionX(this.right+o,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=i=>{this.handleNorth(i),this.handleWest(i)},this.handleNorthEast=i=>{this.handleNorth(i),this.handleEast(i)},this.handleSouthWest=i=>{this.handleSouth(i),this.handleWest(i)},this.handleSouthEast=i=>{this.handleSouth(i),this.handleEast(i)},this.gridsterItem=s,this.gridster=t,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(s){if(s.which&&s.which!==1)return;this.gridster.options.resizable&&this.gridster.options.resizable.start&&this.gridster.options.resizable.start(this.gridsterItem.item,this.gridsterItem,s),s.stopPropagation(),s.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=s.clientX,this.lastMouse.clientY=s.clientY,this.left=this.gridsterItem.left,this.top=this.gridsterItem.top,this.originalClientX=s.clientX,this.originalClientY=s.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=s.clientX+this.offsetLeft-this.left,this.diffRight=s.clientX+this.offsetLeft-this.right,this.diffTop=s.clientY+this.offsetTop-this.top,this.diffBottom=s.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 ee(this.gridsterItem),this.gridster.dragInProgress=!0,this.gridster.updateGrid();let{classList:t}=s.target;t.contains("handle-n")?(this.resizeEventScrollType.north=!0,this.directionFunction=this.handleNorth):t.contains("handle-w")?this.gridster.$options.dirType===W.RTL?(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):t.contains("handle-s")?(this.resizeEventScrollType.south=!0,this.directionFunction=this.handleSouth):t.contains("handle-e")?this.gridster.$options.dirType===W.RTL?(this.resizeEventScrollType.west=!0,this.directionFunction=this.handleWest):(this.resizeEventScrollType.east=!0,this.directionFunction=this.handleEast):t.contains("handle-nw")?this.gridster.$options.dirType===W.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):t.contains("handle-ne")?this.gridster.$options.dirType===W.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):t.contains("handle-sw")?this.gridster.$options.dirType===W.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):t.contains("handle-se")&&(this.gridster.$options.dirType===W.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(s){if(O.checkTouchEvent(s),!this.gridster.$options.resizable.delayStart){this.dragStart(s);return}let t=setTimeout(()=>{this.dragStart(s),w()},this.gridster.$options.resizable.delayStart),{cancelMouse:e,cancelMouseLeave:i,cancelOnBlur:n,cancelTouchMove:o,cancelTouchEnd:l,cancelTouchCancel:u}=this.zone.runOutsideAngular(()=>{let I=this.gridsterItem.renderer.listen("document","mouseup",w),z=this.gridsterItem.renderer.listen("document","mouseleave",w),A=this.gridsterItem.renderer.listen("window","blur",w),P=this.gridsterItem.renderer.listen("document","touchmove",g),N=this.gridsterItem.renderer.listen("document","touchend",w),rt=this.gridsterItem.renderer.listen("document","touchcancel",w);return{cancelMouse:I,cancelMouseLeave:z,cancelOnBlur:A,cancelTouchMove:P,cancelTouchEnd:N,cancelTouchCancel:rt}});function g(I){O.checkTouchEvent(I),(Math.abs(I.clientX-s.clientX)>9||Math.abs(I.clientY-s.clientY)>9)&&w()}function w(){clearTimeout(t),n(),e(),i(),o(),l(),u()}}setItemTop(s){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,this.left,s)}setItemLeft(s){this.gridster.gridRenderer.setCellPosition(this.gridsterItem.renderer,this.gridsterItem.el,s,this.top)}setItemHeight(s){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"height",s+"px")}setItemWidth(s){this.gridsterItem.renderer.setStyle(this.gridsterItem.el,"width",s+"px")}},Ke=(()=>{class r{get zIndex(){return this.getLayerIndex()+this.gridster.$options.baseLayerIndex}constructor(t,e,i,n){this.renderer=i,this.zone=n,this.itemInit=new Y,this.itemChange=new Y,this.itemResize=new Y,this.el=t.nativeElement,this.$item={cols:-1,rows:-1,x:-1,y:-1},this.gridster=e,this.drag=new te(this,e,this.zone),this.resize=new ie(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=O.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,i=this.$item.cols*this.gridster.curColWidth-this.gridster.$options.margin,n=this.$item.rows*this.gridster.curRowHeight-this.gridster.$options.margin;this.top=t,this.left=e,!this.init&&i>0&&n>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)),(i!==this.width||n!==this.height)&&(this.width=i,this.height=n,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:et(et({},t),e)}bringToFront(t){if(t&&t<=0)return;let e=this.getLayerIndex(),i=this.gridster.$options.maxLayerIndex;if(ei?i:n}}sendToBack(t){if(t&&t<=0)return;let e=this.getLayerIndex();if(e>0){let i=t?e-t:0;this.item.layerIndex=this.$item.layerIndex=i<0?0:i}}getLayerIndex(){return this.item.layerIndex!==void 0?this.item.layerIndex:this.gridster.$options.defaultLayerIndex!==void 0?this.gridster.$options.defaultLayerIndex:0}static{this.\u0275fac=function(e){return new(e||r)(_(q),_(se),_(ot),_(Lt))}}static{this.\u0275cmp=L({type:r,selectors:[["gridster-item"]],hostVars:2,hostBindings:function(e,i){e&2&&ut("z-index",i.zIndex)},inputs:{item:"item"},outputs:{itemInit:"itemInit",itemChange:"itemChange",itemResize:"itemResize"},standalone:!0,features:[mt,B],ngContentSelectors:Xe,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,i){e&1&&(At(),Xt(0),F(1,di,1,0,"div",0)(2,ci,1,0,"div",1)(3,pi,1,0,"div",2)(4,mi,1,0,"div",3)(5,gi,1,0,"div",4)(6,ui,1,0,"div",5)(7,fi,1,0,"div",6)(8,wi,1,0,"div",7)),e&2&&(a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.s&&i.resize.resizeEnabled?1:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.e&&i.resize.resizeEnabled?2:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.n&&i.resize.resizeEnabled?3:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.w&&i.resize.resizeEnabled?4:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.se&&i.resize.resizeEnabled?5:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.ne&&i.resize.resizeEnabled?6:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.sw&&i.resize.resizeEnabled?7:-1),a(),b(i.resize.resizableHandles!=null&&i.resize.resizableHandles.nw&&i.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})}}return r})();var Os=(()=>{class r{static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275mod=pe({type:r})}static{this.\u0275inj=ce({})}}return r})();var Wt=(()=>{class r{constructor(){this.items=[],this.widgets=[]}init(t){if(this.items=[],this.widgets=[],!!t.widgets)for(let e=0;e{class r{constructor(){this.list=[],this.dbs=D(ze),this.cd=D(U),this.eds=D(Et),this.route=D(ht),this.ss=D(ct),this.ns=D(Mt),this.ds=D(Se),this.sbs=D(De),this.fs=D(it),this.bs=D(pt),this.ms=D(Re),this.r2=D(ot),this.us=D(dt),this.hs=D(Pt),this.vs=D(Wt),this.i18n=D(kt),this.es=D(Ie),this.subOnEditedWidgetChanged=this.eds.onEditedWidgetChanged.pipe(st()),this.subOnNewWidget=this.eds.onNewWidget.pipe(st()),this.subOnSaveWidget=this.eds.onSave.pipe(st()),this.subCancelEditing=this.eds.onCancelEditing.pipe(st()),this.subOnDeleteWidget=this.eds.onDeleteWidget.pipe(st())}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 i=this.gridster.getFirstPossiblePosition(this.editedWidget);this.editedWidget.x=i.x,this.editedWidget.y=i.y,this.editedWidget.cols=i.cols,this.editedWidget.rows=i.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()}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275cmp=L({type:r,selectors:[["ng-component"]],viewQuery:function(e,i){if(e&1&&(Q(vi,5),Q(yi,5)),e&2){let n;K(n=Z())&&(i.gridster=n.first),K(n=Z())&&(i.widgets=n)}},standalone:!0,features:[B],decls:0,vars:0,template:function(e,i){},encapsulation:2})}}return r})();var Je=(()=>{class r{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,i=t.clientY,n=this.tooltipEl.offsetWidth,o=this.tooltipEl.offsetHeight,l=window.innerWidth,u=window.innerHeight,g=e,w=i;e+n>l&&(g=e-n),i+o>u&&(w=i-o),this.tooltipEl&&(this.tooltipEl.style.left=g+"px",this.tooltipEl.style.top=w+"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)}static{this.\u0275fac=function(e){return new(e||r)(_(q))}}static{this.\u0275dir=me({type:r,selectors:[["","tooltip",""]],inputs:{tooltip:"tooltip"},standalone:!0})}}return r})();var ti=(()=>{class r{constructor(){this.onToggleHeaderButton=new Y}toggleButton(t){this.onToggleHeaderButton.emit(t)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=St({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function ki(r,s){if(r&1&&y(0,"img",1),r&2){let t=d();$("tooltip",t.filtersTooltip)}}function Mi(r,s){if(r&1){let t=x();h(0,"button",6),f("click",function(){c(t);let i=d();return p(i.onBackClick())}),y(1,"img",7),h(2,"label"),C(3),S(4,"i18n"),m()()}r&2&&(a(3),k(T(4,1,"back")))}function Pi(r,s){if(r&1){let t=x();h(0,"button",6),f("click",function(){c(t);let i=d();return p(i.onResetClickFilterHandler())}),y(1,"img",8),h(2,"label"),C(3),S(4,"i18n"),m()()}r&2&&(a(3),k(T(4,1,"resetClickFilter")))}function Fi(r,s){if(r&1){let t=x();h(0,"button",9),S(1,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("by6columns"))}),y(2,"img",10),m(),h(3,"button",9),S(4,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("by5columns"))}),y(5,"img",11),m(),h(6,"button",9),S(7,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("by4columns"))}),y(8,"img",12),m(),h(9,"button",9),S(10,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("by3columns"))}),y(11,"img",13),m(),h(12,"button",9),S(13,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("by2columns"))}),y(14,"img",14),m(),h(15,"button",9),S(16,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("byRows"))}),y(17,"img",15),m(),h(18,"button",16),S(19,"i18n"),f("click",function(){c(t);let i=d();return p(i.onClick("setDefault"))}),y(20,"img",17),h(21,"label"),C(22),S(23,"i18n"),m()(),h(24,"button",18),f("click",function(){c(t);let i=d();return p(i.closeMobileFilter())}),y(25,"img",8),h(26,"label"),C(27),S(28,"i18n"),m()()}if(r&2){let t=d();E("active",t.widget.viewSize===5),$("title",T(1,21,"by6columns")),a(3),E("active",t.widget.viewSize===4),$("title",T(4,23,"by5columns")),a(3),E("active",t.widget.viewSize===3),$("title",T(7,25,"by4columns")),a(3),E("active",t.widget.viewSize===2),$("title",T(10,27,"by3columns")),a(3),E("active",t.widget.viewSize===1),$("title",T(13,29,"by2columns")),a(3),E("active",t.widget.viewSize===0),$("title",T(16,31,"byRows")),a(3),$("title",T(19,33,"setDefault")),a(4),k(T(23,35,"refresh")),a(5),k(T(28,37,"close"))}}function Ei(r,s){if(r&1){let t=x();h(0,"button",19),f("click",function(){c(t);let i=d();return p(i.deleteWidgetClick())}),y(1,"img",20),h(2,"label"),C(3,"Delete widget"),m()()}}function Di(r,s){if(r&1){let t=x();h(0,"button",16),f("click",function(){let i=c(t).$implicit,n=d(2);return p(n.onClick(i.id))}),y(1,"img",24),h(2,"label"),C(3),m()()}if(r&2){let t=s.$implicit,e=d(2);E("active",e.widget[t.id]),$("title",t.tooltip),a(),$("src",t.icon,ge),a(2),k(t.text)}}function zi(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("isLegend"))}),y(2,"img",25),h(3,"label"),C(4,"Legend"),m()()}if(r&2){let t=d(2);E("active",t.widget.isLegend),j("title",T(1,3,"showLegend"))}}function Wi(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("showValues"))}),y(2,"img",26),h(3,"label"),C(4,"Values"),m()()}if(r&2){let t=d(2);E("active",t.widget.showValues),j("title",T(1,3,"showValues"))}}function Oi(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("isTop"))}),y(2,"img",27),h(3,"label"),C(4,"Top"),m()()}if(r&2){let t=d(2);E("active",t.widget.isTop),j("title",T(1,3,"showTop"))}}function Ri(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("showZero"))}),y(2,"img",28),h(3,"label"),C(4,"Zero"),m()()}if(r&2){let t=d(2);E("active",t.widget.showZero),j("title",T(1,3,"showZero"))}}function Vi(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("displayAsPivot"))}),y(2,"img",29),h(3,"label"),C(4,"Pivot"),m()()}if(r&2){let t=d(2);E("active",t.widget.type==="pivot"),j("title",T(1,3,"showPivot"))}}function Li(r,s){if(r&1){let t=x();h(0,"button",16),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("chartConfig"))}),y(2,"img",30),h(3,"label"),C(4,"Colors"),m()()}r&2&&j("title",T(1,1,"changeColors"))}function Bi(r,s){if(r&1){let t=x();h(0,"button",31),S(1,"i18n"),f("click",function(){c(t);let i=d(2);return p(i.onClick("expand"))}),y(2,"img",32),m()}if(r&2){let t=d(2);E("active",t.widget.isExpanded),$("title",T(1,4,"fullscreen"))("hidden",t.isEmptyWidget()||!t.widget.isSupported)}}function Hi(r,s){if(r&1&&(R(0,Di,4,5,"button",21,G),F(2,zi,5,5,"button",21)(3,Wi,5,5,"button",21)(4,Oi,5,5,"button",21)(5,Ri,5,5,"button",21)(6,Vi,5,5,"button",21)(7,Li,5,3,"button",22)(8,Bi,3,6,"button",23)),r&2){let t=d();V(t.typeDesc==null?null:t.typeDesc.headerButtons),a(2),b(!(t.typeDesc!=null&&t.typeDesc.disableLegend)&&t.widget.isChart&&!t.widget.noToggleLegend?2:-1),a(),b(t.widget.isBtnValues?3:-1),a(),b(t.widget.isChart?4:-1),a(),b(t.widget.isBtnZero?5:-1),a(),b(t.widget.isChart||t.widget.isMap||t.widget.type==="regular"||t.widget.oldType==="regular"?6:-1),a(),b(t.widget.isChart||t.widget.type==="regular"?7:-1),a(),b(t.widget.shared?-1:8)}}var ii=(()=>{class r{constructor(t,e,i,n,o,l,u,g,w){this.ss=t,this.us=e,this.ws=i,this.cd=n,this.ns=o,this.fs=l,this.hs=u,this.eds=g,this.route=w,this.onButtonClick=new Y,this.onBack=new Y,this.onResetClickFilter=new Y,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===J.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,i){if(this.us.isEmbedded()){let n=this.route.snapshot.queryParamMap.get(e);if(n){let o=!1;n.toLowerCase()==="true"?o=!0:n.toLowerCase()==="false"&&(o=!1),this.widget[e]=o;return}}t[this.widget.name]&&(t[this.widget.name][e]!==void 0?this.widget[e]=this.widgetsSettings[this.widget.name][e]:i!==void 0&&(this.widget[e]=i))}onBackClick(){this.onBack.emit()}onResetClickFilterHandler(){this.onResetClickFilter.emit()}isEmptyWidget(){if(!this.widget)return!1;let t=this.widget.type;return t===We||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})}}return r})();var Ni=["filterPopup"];function Yi(r,s){if(r&1){let t=x();h(0,"span",1)(1,"label"),C(2),m(),h(3,"input",3),Gt("ngModelChange",function(i){let n=c(t).$implicit;return Yt(n.value,i)||(n.value=i),p(i)}),f("keydown.enter",function(){let i=c(t).$implicit,n=d();return p(n.emitVarChange(i))}),m()()}if(r&2){let t=s.$implicit;a(2),k(t.label),a(),Nt("ngModel",t.value)}}function Gi(r,s){if(r&1&&(h(0,"option",7),C(1),m()),r&2){let t=s.$implicit;$("ngValue",t),a(),k(t)}}function ji(r,s){if(r&1){let t=x();h(0,"select",6),Gt("ngModelChange",function(i){c(t);let n=d().$implicit;return Yt(n.dsSelected,i)||(n.dsSelected=i),p(i)}),f("change",function(){c(t);let i=d().$implicit,n=d();return p(n.onDataSourceChangeHandler(i))}),R(1,Gi,2,2,"option",7,G),m()}if(r&2){let t=d().$implicit;Nt("ngModel",t.dsSelected),a(),V(t.labels)}}function Ui(r,s){if(r&1){let t=x();h(0,"input",8,0),f("keydown.enter",function(){c(t);let i=at(1);return p(i.blur())})("change",function(){c(t);let i=at(1),n=d().$implicit,o=d();return p(o.setControlValue(n,i.value,i))}),m()}if(r&2){let t=d().$implicit;$("type",t.type)("value",t._value)}}function qi(r,s){if(r&1&&(h(0,"span",1)(1,"label"),C(2),m(),F(3,ji,3,1,"select",4)(4,Ui,2,2,"input",5),m()),r&2){let t=s.$implicit;a(2),k(t.label),a(),b(t.field==="select"?3:-1),a(),b(t.field==="input"?4:-1)}}function Qi(r,s){if(r&1){let t=x();h(0,"span",1)(1,"button",9),f("click",function(){let i=c(t).$implicit,n=d();return p(n.performAction(i))}),C(2),m()()}if(r&2){let t=s.$implicit;a(2),k(t.label||t.action)}}function Ki(r,s){if(r&1){let t=x();h(0,"span",1)(1,"label"),C(2),m(),h(3,"input",10),f("click",function(i){let n=c(t).$implicit,o=d();return n.isOpen=!0,p(o.toggleFilter(n.idx,i))}),m()()}if(r&2){let t=s.$implicit,e=d();E("active",e.openedFilter()===t.idx),a(2),k(t.label),a(),j("value",t.text),j("title",t.text)}}var si=(()=>{class r{constructor(t,e,i,n,o,l){this.fs=t,this.ms=e,this.el=i,this.us=n,this.bs=o,this.cd=l,this.widget=Bt.required(),this.filters=Bt([]),this.onVariable=gt(),this.onDataSource=gt(),this.onAction=gt(),this.onFilter=gt(),this.openedFilter=ue(-1),this.filterPopup=fe("filterPopup")}emitVarChange(t){this.onVariable.emit(t)}onDataSourceChangeHandler(t){this.onDataSource.emit(t)}performAction(t){this.onAction.emit(t)}toggleFilter(t,e){let i=this.fs.getFilter(t);if(!i)return;this.openedFilter.set(t);let o=e.target.getBoundingClientRect(),l=o.x-4,u=o.y+o.height+4,g=i.isDate?420:340;l+g>window.innerWidth&&(l=o.x+o.width-g);let w=this.us.isMobile(),I=0;if(w){let z=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--header-height"),10);I=window.document.body.offsetHeight-z-this.el.nativeElement.offsetHeight}this.ms.show({component:import("./chunk-CT4GSBMF.js"),hideBackdrop:!0,closeByEsc:!0,closeByBackdropClick:!0,buttons:[],noPadding:!0,componentStyles:{position:"absolute",left:l+"px",top:u+"px",height:w?`${I}px`:"auto"},onComponentInit:z=>{z.initialize(this.widget(),i,this.widget().dataSource)},onClose:()=>{this.openedFilter.set(-1),this.cd.detectChanges()}})}setControlValue(t,e,i){let n=parseInt(e,10);isNaN(n)||n===0?(delete t._value,i.value=""):t._value=e,this.bs.broadcast("refresh:"+this.widget().name)}detectChanges(){this.cd.detectChanges()}static{this.\u0275fac=function(e){return new(e||r)(_(it),_(Ft),_(q),_(dt),_(pt),_(U))}}static{this.\u0275cmp=L({type:r,selectors:[["dsw-widget-filter"]],viewQuery:function(e,i){e&1&&xe(i.filterPopup,Ni,5),e&2&&_e()},hostVars:14,hostBindings:function(e,i){e&2&&E("horizontal",i.widget().type==="horizontalControls")("col-1",i.widget().viewSize===0)("col-2",i.widget().viewSize===1)("col-3",i.widget().viewSize===2)("col-4",i.widget().viewSize===3)("col-5",i.widget().viewSize===4)("col-6",i.widget().viewSize===5)},inputs:{widget:[1,"widget"],filters:[1,"filters"]},outputs:{onVariable:"onVariable",onDataSource:"onDataSource",onAction:"onAction",onFilter:"onFilter"},standalone:!0,features:[B],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,i){e&1&&(R(0,Yi,4,2,"span",1,G),R(2,qi,5,3,"span",1,G),R(4,Qi,3,1,"span",1,G),R(6,Ki,4,5,"span",2,G)),e&2&&(V(i.widget().pvItems),a(2),V(i.widget().dsItems),a(2),V(i.widget().acItems),a(2),V(i.filters()))},dependencies:[Ee,Pe,Fe,Te,Me,$e,ke],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}"],changeDetection:0})}}return r})();var Zi=["header"],Ji=["filters"];function ts(r,s){r&1&&be(0)}function es(r,s){if(r&1&&F(0,ts,1,0,"ng-container",6),r&2){let t=d();$("ngComponentOutlet",t.widgetType.class)("ngComponentOutletInputs",t.widgetInputs)}}function is(r,s){if(r&1&&(h(0,"div",4),C(1),m()),r&2){let t=d();a(),k(t.model.error)}}function ss(r,s){r&1&&(h(0,"div",5),y(1,"img",7),m()),r&2&&$("@fade-in-out",void 0)}var ni=(()=>{class r{constructor(t,e,i,n,o,l,u,g,w){this.fs=t,this.ss=e,this.vs=i,this.i18n=n,this.wts=o,this.bs=l,this.ms=u,this.cd=g,this.route=w,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(i=>t?i.location==="dashboard":i.location!=="dashboard"&&(i.location==="*"||i.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{i.onCopy=()=>{this.ms.close(e)}}};this.ms.show(e)}appendShareState(t,e){let i=this.widget[e];return i&&(t+="&"+e+"="+i),t}share(){let t=this.component?.chart,e=this.fs.getFiltersShareUrl(),i=e.split("#")[1],n=(this.widget.name||this.widget.idx).toString();if(i&&i.indexOf("?")===-1?e+="?widget="+n:e+="&widget="+n,e=this.appendShareState(e,"isLegend"),e=this.appendShareState(e,"isTop"),e=this.appendShareState(e,"showZero"),e=this.appendShareState(e,"showValues"),t&&t.series){let g=t.series.map((w,I)=>({v:w.visible,i:I})).filter(w=>!w.v);g.length&&(e+="&hiddenSeries="+g.map(w=>w.i).join(","))}let o=this.component?.getDrillsAsParameter();o&&(e+="&drilldown="+o);let l='";let u={title:"",component:import("./chunk-C4FRQTLO.js"),inputs:{title:"Share widget",shareUrl:a,btnTitle:"Copy",hideOptions:!0},closeByEsc:!0,buttons:[],class:"modal-no-border",componentStyles:{padding:"0"},onComponentInit:g=>{g.onCopy=()=>{this.ms.close(u)}}};this.ms.show(u)}requestData(){this.component?.requestData()}applyFilter(t){this.updateFiltersText(),this.requestData()}changeStyle(t,e,i){}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(),setTimeout(()=>{this.component=this.ngComponentOutlet?._componentRef?.instance})):(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())}static{this.\u0275fac=function(e){return new(e||r)(_(it),_(ct),_(Wt),_(kt),_(Be),_(pt),_(Ft),_(U),_(ht))}}static{this.\u0275cmp=L({type:r,selectors:[["dsw-widget"]],viewQuery:function(e,i){if(e&1&&(Q(jt,5),Q(ts,7),Q(es,7)),e&2){let n;K(n=Z())&&(i.ngComponentOutlet=n.first),K(n=Z())&&(i.header=n.first),K(n=Z())&&(i.filters=n.first)}},inputs:{widget:"widget"},standalone:!0,features:[B],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,i){if(e&1){let n=x();h(0,"dsw-widget-header",2,0),f("onButtonClick",function(a){return c(n),p(i.onHeaderButton(a))})("onBack",function(){return c(n),p(i.onHeaderButtonBack())})("onResetClickFilter",function(){return c(n),p(i.onResetClickFilter())}),m(),h(2,"dsw-widget-filter",3,1),f("onVariable",function(a){return c(n),p(i.onFilterVariable(a))})("onDataSource",function(a){return c(n),p(i.onFilterDatasource(a))})("onAction",function(a){return c(n),p(i.onFilterAction(a))}),m(),F(4,ss,1,2,"ng-container")(5,ns,2,1,"div",4)(6,rs,2,1,"div",5)}e&2&&($("typeDesc",i.widgetType)("widget",i.widget)("hidden",i.widget.tile||!i.isHeader),l(2),$("hidden",i.widget.tile||!i.isHeader)("widget",i.widget)("filters",i.model.filters),l(2),b(i.widgetType&&i.widgetType.class?4:-1),l(),b(i.model.error?5:-1),l(),b(i.component!=null&&i.component.isSpinner&&!i.model.error?6:-1))},dependencies:[ii,si,jt,ye],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:[Ve("fade-in-out",[qt(":enter",[wt({opacity:0}),Ut("100ms",wt({opacity:1}))]),qt(":leave",[wt({opacity:1}),Ut("100ms",wt({opacity:0}))])])]},changeDetection:0})}}return r})();var os=["ctxMenu"];function ls(r,s){if(r&1){let t=x();h(0,"gridster-item",18,3),f("transitionend",function(i){let n=c(t).$implicit,o=d(2);return p(o.onWidgetSizeChanged(n,i))})("contextmenu",function(i){let n=c(t).$implicit,o=d(2);return p(o.showContextMenu(n,i))}),y(2,"dsw-widget",19,4),m()}if(r&2){let t=s.$implicit,e=d(2);E("editing",t===e.editedWidget)("no-anim",e.isLoading||e.editedWidget)("expanded",t.isExpanded),$("id",t===e.editedWidget?"edited-widget":void 0)("item",t),l(2),$("widget",t)}}function as(r,s){if(r&1&&(h(0,"gridster",6,2),R(2,ls,4,9,"gridster-item",17,Ce().trackByName,!0),m()),r&2){let t=d();$("options",t.tilesOptions),l(2),V(t.list)}}function hs(r,s){if(r&1&&(h(0,"div",21),y(1,"dsw-widget",19,4),m()),r&2){let t=s.$implicit;l(),$("widget",t)}}function ds(r,s){if(r&1&&(h(0,"div",23),y(1,"dsw-widget",19),m()),r&2){let t=d(2);ut("transform","translateX(calc(-100vw * "+-t.page+"))"),l(),$("widget",t.mobileFilter)}}function cs(r,s){if(r&1&&(h(0,"div",20),R(1,hs,3,1,"div",21,G),F(3,ds,2,3,"div",22),m()),r&2){let t=d();ut("transform","translateX(calc(100vw * "+-t.page+"))"),l(),V(t.list),l(2),b(t.isMobileFilterVisible?3:-1)}}function ps(r,s){if(r&1&&y(0,"span"),r&2){let t=s.$index,e=d();E("active",t===e.page)}}function ms(r,s){r&1&&(h(0,"div",10),y(1,"img",24),m())}function gs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.ctxDrill())}),C(1,"Drilldown"),m()}}function us(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.ctxDrillthrough())}),C(1,"Drillthrough"),m()}}function fs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.printItem())}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"print")))}function ws(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.gotoKPIPage(i.ctxItem))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"showKPI")))}function Cs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.gotoAnalyzer(i.ctxItem))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"openAnalyzer")))}function bs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.exportWidget("svg"))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"svgImage")))}function xs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.exportWidget("png"))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"pngImage")))}function _s(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.exportWidget("jpg"))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"jpgImage")))}function vs(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.exportWidget("pdf"))}),C(1),S(2,"i18n"),m()}r&2&&(l(),k(T(2,1,"pdfDoc")))}function ys(r,s){if(r&1){let t=x();h(0,"div",14),f("mouseover",function(i){c(t);let n=at(4),o=d();return p(o.showSubmenu(n,i))}),C(1),S(2,"i18n"),h(3,"div",15,5)(5,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("areaChart"))}),C(6,"Area chart"),m(),h(7,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("barChart"))}),C(8,"Bar chart"),m(),h(9,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("barChartStacked"))}),C(10,"Stacked bar chart"),m(),h(11,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("columnChart"))}),C(12,"Column chart"),m(),h(13,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("columnChartStacked"))}),C(14,"Stacked column chart"),m(),h(15,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("lineChart"))}),C(16,"Line chart"),m(),h(17,"div",12),f("click",function(){c(t);let i=d();return p(i.setType("pieChart"))}),C(18,"Pie chart"),m()()()}r&2&&(l(),Tt(" ",T(2,1,"viewAs")," "))}function Is(r,s){if(r&1){let t=x();h(0,"div",12),f("click",function(){c(t);let i=d();return p(i.ctxEdit())}),C(1,"Edit widget"),m()}}var Ss=200,Ts=100,$s=50,ri=12,Un=(()=>{class r extends Ze{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(st()),this.trackByName=(t,e)=>{let i=this.path+"-"+e.name.toString();return e===this.editedWidget&&this.editedWidget.edKey||i},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 o=t.displayInfo.gridRows,a=20,u=window.innerHeight;u<800&&(u=800),this.tilesOptions.fixedRowHeight=Math.floor((u-(63+a*(o+1)))/o)-1,this.gridster&&this.gridster.optionsChanged()}this.vs.init(t),t.filters&&this.fs.init(t.filters,this.path);let i=!1;if((this.fs.isFiltersOnToolbarExists||this.vs.isExists())&&!this.sharedWidget){for(e=0;ethis.tilesOptions.maxCols&&(n.cols=this.tilesOptions.maxCols)}if(t.widgets[e].autocreated&&(delete n.x,delete n.y),t.widgets[e].name&&this.setWidgetSizeAndPos(n,t.widgets[e].name.toString()),this.sharedWidget&&(n.x=0,n.y=0,n.idx=0,n.cols=1,n.rows=1,n.menuDisabled=!0,n.shared=!0),n=et(et({},JSON.parse(JSON.stringify(t.widgets[e]))),JSON.parse(JSON.stringify(n))),this.sharedWidget||this.fillDependentWidgets(n,t.widgets),this.isMobile&&n.type===J.const.emptyWidgetClass){this.mobileFilter=n,this.hs.showMobileFilterButton();continue}this.list.push(n)}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;ew.name==="disableContextMenu");if(a&&(o=a.dataValue===1),t.type===J.const.emptyWidgetClass||o||this.us.isPreventContextMenu())return;e.preventDefault(),this.ctxItem=t;let u=e.clientY,g=e.clientX;setTimeout(()=>{u+n.offsetHeight>window.innerHeight&&(u-=n.offsetHeight),g+n.offsetWidth>window.innerWidth&&(g-=n.offsetWidth),this.r2.setStyle(n,"left",g+"px"),this.r2.setStyle(n,"top",u+"px"),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subCtxClose=le(document,"mousedown").subscribe(w=>{this.subCtxClose?.unsubscribe(),!w.target.parentElement?.classList.contains("ctx-menu")&&(this.hideContextMenu(),this.cd.detectChanges())}),this.r2.setStyle(n,"visibility","visible")})}exportWidget(t){let e=this.getWidgetByInfo(this.ctxItem)?.component,i={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":i.type="image/png";break;case"svg":i.type="image/svg+xml";break;case"jpg":i.type="image/jpeg";break;case"pdf":i.type="application/pdf";break;case"xls":{let n=e?.getMDX();if(!n){console.warn(`Can't get MDX for widget: ${this.ctxItem}`);return}if(e?.lpt){let g=e.lpt;n=g._dataSourcesStack[g._dataSourcesStack.length-1].BASIC_MDX+g.dataSource.FILTERS}let o=this.ss.serverSettings.DefaultApp||"/csp/"+ft,u=(this.ds.configDefaultApp||o)+"/_DeepSee.UI.MDXExcel.zen?MDX="+encodeURIComponent(n||"");window.open(u,"_blank"),this.hideContextMenu();return}case"csv":{this.exportToCsv(),this.hideContextMenu();return}}this.ctxItem?.isChart&&e?.chart?.exportChart(i,{}),this.hideContextMenu()}showSubmenu(t,e){e.target.classList.contains("ctx-sub")&&(this.r2.removeStyle(t,"transform"),this.r2.setStyle(t,"visibility","hidden"),setTimeout(()=>{let i=t.getBoundingClientRect(),n=0,o=0;i.top+i.height>window.innerHeight&&(o=i.top+i.height-window.innerHeight+10),i.left+i.width>window.innerWidth&&(n=i.width+(t.parentElement?.getBoundingClientRect()?.width||0)+2),this.r2.setStyle(t,"transform",`translateX(${-n}px) translateY(${-o}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>Ss)||Math.abs(e.ey-e.sy)>Ts||Math.abs(e.ex-e.sx)<$s)return;let i=e.ex>e.sx?-1:1;this.page+=i;let n=this.dbs.getWidgets().length;this.page<0&&(this.page=0),this.page>n-1&&(this.page=n-1),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page].title);let o=this.widgets.toArray()[this.page].component;if(o instanceof Oe){o.adjustSize();return}if(o instanceof Le&&o.chartConfig.chart?.type!=="treemap"){o.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 i=(this.ss.serverSettings.DefaultApp||"/csp/"+ft)+"/"+t.kpiclass+".cls";window.open(i,"_blank")}gotoAnalyzer(t){if(!t?.dataSource)return;let e=this.ss.serverSettings.DefaultApp||"/csp/"+ft,i=this.fs.getFiltersUrlString(t.name,!1," ",` +`),o=(this.ds.configDefaultApp||e)+"/_DeepSee.UI.Dialog.Analyzer.zen?&PIVOT="+encodeURIComponent(t.dataSource);i&&(o+="&FILTERSTATE="+i),window.open(o,"_blank")}ctxEdit(){this.ctxItem?.isExpanded&&this.getWidgetByInfo(this.ctxItem)?.header?.onClick("expand"),this.sbs.showComponent({component:import("./chunk-3X2IJ3CK.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 i,n,o;t.lpt?(n=t.lpt.dataController.getData().dimensions[0],i=t.lpt.dataController.getData().dimensions[1],o=t.lpt.dataController.getData().dataArray):(i=e.Cols[1].tuples,n=e.Cols[0].tuples,o=e.Data);let a=`\r +`,u="|",g='"sep='+u+'"'+a,w,I;for(i[0]&&i[0].dimension&&(g+=i[0].dimension+u),I=0;I{P.click(),document.body.removeChild(P)},10)}}}fitEmptyWidget(){let t,e=0,i=0;this.list.forEach(n=>{if(n.name==="emptyWidget"){t=n;return}let o=(n.x||0)+(n.cols||0),a=(n.y||0)+(n.rows||0);o>e&&(e=o),a>i&&(i=a)}),!(!t||t.rows)&&(t.rows=i||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=oe([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(i=>i.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||ri,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)||ri,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()})}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275cmp=L({type:r,selectors:[["dsw-dashboard-screen"]],viewQuery:function(e,i){if(e&1&&Q(os,5),e&2){let n;K(n=Z())&&(i.ctxMenu=n.first)}},hostBindings:function(e,i){e&1&&f("touchstart",function(o){return i.onTouchStart(o)})("touchend",function(o){return i.onTouchEnd(o)})},standalone:!0,features:[we,B],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,i){if(e&1){let n=x();F(0,as,4,1,"gridster",6)(1,cs,4,3,"div",7),h(2,"div",8)(3,"div"),R(4,ps,1,2,"span",9,G),m()(),F(6,ms,2,0,"div",10),h(7,"div",11,0),F(9,gs,2,0,"div")(10,us,2,0,"div"),h(11,"div",12),f("click",function(){return c(n),p(i.refreshItem())}),C(12),S(13,"i18n"),m(),F(14,fs,3,3,"div"),h(15,"div",12),f("click",function(){return c(n),p(i.shareItem())}),C(16),S(17,"i18n"),m(),h(18,"div",12),f("click",function(){return c(n),p(i.copyMDX())}),C(19),S(20,"i18n"),m(),F(21,ws,3,3,"div")(22,Cs,3,3,"div"),y(23,"div",13),h(24,"div",14),f("mouseover",function(a){c(n);let u=at(27);return p(i.showSubmenu(u,a))}),C(25," Export "),h(26,"div",15,1),F(28,bs,3,3,"div")(29,xs,3,3,"div")(30,_s,3,3,"div")(31,vs,3,3,"div"),h(32,"div",12),f("click",function(){return c(n),p(i.exportWidget("xls"))}),C(33),S(34,"i18n"),m(),h(35,"div",12),f("click",function(){return c(n),p(i.exportWidget("csv"))}),C(36),S(37,"i18n"),m()()(),F(38,ys,19,3,"div",16)(39,Is,2,0,"div"),m()}e&2&&(b(i.isMobile?-1:0),l(),b(i.isMobile?1:-1),l(),$("hidden",i.isMobileFilterVisible||i.us.isEmbedded()),l(2),V(i.dbs.getWidgets()),l(2),b(i.isLoading?6:-1),l(3),b(i.contextMenuData!=null&&i.contextMenuData.canDrill?9:-1),l(),b(i.contextMenuData!=null&&i.contextMenuData.canDrillthrough?10:-1),l(2),k(T(13,20,"refresh")),l(2),b(i.ctxItem!=null&&i.ctxItem.isChart?14:-1),l(2),k(T(17,22,"share")),l(3),k(T(20,24,"copyMDX")),l(2),b(i.ctxItem!=null&&i.ctxItem.kpitype?21:-1),l(),b(i.ctxItem!=null&&i.ctxItem.dataSource?22:-1),l(6),b(i.ctxItem!=null&&i.ctxItem.isChart?28:-1),l(),b(i.ctxItem!=null&&i.ctxItem.isChart?29:-1),l(),b(i.ctxItem!=null&&i.ctxItem.isChart?30:-1),l(),b(i.ctxItem!=null&&i.ctxItem.isChart?31:-1),l(2),k(T(34,26,"xlsDoc")),l(3),k(T(37,28,"csvDoc")),l(2),b(i.ctxItem!=null&&i.ctxItem.isChart?38:-1),l(),b(i.ctxItem&&i.canEdit?39:-1))},dependencies:[se,Ke,ni,$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})}}return r})();export{zt as a,Ci as b,se as c,Ke as d,Vs as e,Wt as f,ni as g,ri as h,Un as i}; diff --git a/dist/chunk-5MYX3VUL.js b/dist/chunk-ZHVSJD4N.js similarity index 99% rename from dist/chunk-5MYX3VUL.js rename to dist/chunk-ZHVSJD4N.js index 5087eac6..45bcee0b 100644 --- a/dist/chunk-5MYX3VUL.js +++ b/dist/chunk-ZHVSJD4N.js @@ -1,3 +1,3 @@ import{$ as gr,$a as Qt,Aa as tt,Ac as ys,B as St,Ba as br,Bc as Oo,Cc as Sr,D as At,Dc as vs,E as jt,Ea as Kt,Ec as bs,Fa as ao,Fc as xs,G as pr,Ga as us,H as ai,Ha as lo,I as Jn,Ia as bt,Ic as Io,Jb as To,Ka as xr,Kc as ti,L as li,La as ho,Lc as Lo,M as Bt,Ma as co,N as fr,Na as zt,Nc as Fo,O as Qn,Oa as hi,Oc as No,P as eo,Pa as uo,Pb as ut,Pc as Mt,Q as to,Qa as po,Qb as $e,Qc as Ar,R as rt,Ra as fo,Rb as ko,S as io,Sa as go,Sc as Er,T as Ge,Ta as mo,U as Fe,Ua as yo,Uc as jo,V as _t,Va as vo,Wa as Jt,X as De,Y as Xt,Z as so,Za as bo,_ as Te,a as Xn,aa as Ce,b as Yn,ba as xe,bb as Ue,c as Ai,ca as mr,cb as xo,d as hr,da as ro,e as cr,ea as Mi,eb as wo,f as Ft,fa as no,fb as ei,g as et,ga as Yt,gb as Ri,ha as Et,hb as wr,ia as Ti,j as Nt,ja as ki,l as Je,la as oo,lc as Po,m as Se,ma as qt,mb as ps,n as Ei,na as dt,nb as Co,o as qn,ob as Do,p as Zn,pa as Zt,pb as So,q as ct,qb as Cr,r as ke,s as cs,sb as Ao,t as st,u as dr,ua as yr,v as Kn,va as vr,vc as fs,w as ur,wa as Pi,wb as Eo,wc as Ro,xc as gs,ya as ds,yb as Mo,yc as ms,za as vt,zc as Dr}from"./chunk-ZEAAPN4P.js";import{a as we,b as ze,d as Tl,f as kl,h as ht}from"./chunk-MG3ERZGY.js";var vl=Tl((yl,nr)=>{"use strict";(function(i,s){typeof nr=="object"&&nr.exports?(s.default=s,nr.exports=i&&i.document?s(i):s):typeof define=="function"&&define.amd?define("highcharts/highcharts",function(){return s(i)}):(i.Highcharts&&i.Highcharts.error(16,!0),i.Highcharts=s(i))})(typeof window<"u"?window:yl,function(i){"use strict";var s={};function e(t,r,a,l){!t.hasOwnProperty(r)&&(t[r]=l.apply(null,a),i&&typeof CustomEvent=="function"&&i.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:r,module:t[r]}})))}return e(s,"Core/Globals.js",[],function(){var t,r;return(r=t||(t={})).SVG_NS="http://www.w3.org/2000/svg",r.product="Highcharts",r.version="11.4.8",r.win=i!==void 0?i:{},r.doc=r.win.document,r.svg=r.doc&&r.doc.createElementNS&&!!r.doc.createElementNS(r.SVG_NS,"svg").createSVGRect,r.userAgent=r.win.navigator&&r.win.navigator.userAgent||"",r.isChrome=r.win.chrome,r.isFirefox=r.userAgent.indexOf("Firefox")!==-1,r.isMS=/(edge|msie|trident)/i.test(r.userAgent)&&!r.win.opera,r.isSafari=!r.isChrome&&r.userAgent.indexOf("Safari")!==-1,r.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(r.userAgent),r.isWebKit=r.userAgent.indexOf("AppleWebKit")!==-1,r.deg2rad=2*Math.PI/360,r.hasBidiBug=r.isFirefox&&4>parseInt(r.userAgent.split("Firefox/")[1],10),r.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],r.noop=function(){},r.supportsPassiveEvents=function(){let a=!1;if(!r.isMS){let l=Object.defineProperty({},"passive",{get:function(){a=!0}});r.win.addEventListener&&r.win.removeEventListener&&(r.win.addEventListener("testPassive",r.noop,l),r.win.removeEventListener("testPassive",r.noop,l))}return a}(),r.charts=[],r.composed=[],r.dateFormats={},r.seriesTypes={},r.symbolSizes={},r.chartCount=0,t}),e(s,"Core/Utilities.js",[s["Core/Globals.js"]],function(t){let r,{charts:a,doc:l,win:_}=t;function O(o,n,d,f){let S=n?"Highcharts error":"Highcharts warning";o===32&&(o=`${S}: Deprecated member`);let T=j(o),m=T?`${S} #${o}: www.highcharts.com/errors/${o}/`:o.toString();if(f!==void 0){let N="";T&&(m+="?"),R(f,function(ie,D){N+=` - ${D}: ${ie}`,T&&(m+=encodeURI(D)+"="+encodeURI(ie))}),m+=N}x(t,"displayError",{chart:d,code:o,message:m,params:f},function(){if(n)throw Error(m);_.console&&O.messages.indexOf(m)===-1&&console.warn(m)}),O.messages.push(m)}function te(o,n){return parseInt(o,n||10)}function G(o){return typeof o=="string"}function X(o){let n=Object.prototype.toString.call(o);return n==="[object Array]"||n==="[object Array Iterator]"}function J(o,n){return!!o&&typeof o=="object"&&(!n||!X(o))}function A(o){return J(o)&&typeof o.nodeType=="number"}function $(o){let n=o&&o.constructor;return!!(J(o,!0)&&!A(o)&&n&&n.name&&n.name!=="Object")}function j(o){return typeof o=="number"&&!isNaN(o)&&o<1/0&&o>-1/0}function F(o){return o!=null}function C(o,n,d){let f,S=G(n)&&!F(d),T=(m,N)=>{F(m)?o.setAttribute(N,m):S?(f=o.getAttribute(N))||N!=="class"||(f=o.getAttribute(N+"Name")):o.removeAttribute(N)};return G(n)?T(d,n):R(n,T),f}function M(o){return X(o)?o:[o]}function E(o,n){let d;for(d in o||(o={}),n)o[d]=n[d];return o}function L(){let o=arguments,n=o.length;for(let d=0;d1e14?o:parseFloat(o.toPrecision(n||14))}(O||(O={})).messages=[],Math.easeInOutSine=function(o){return-.5*(Math.cos(Math.PI*o)-1)};let z=Array.prototype.find?function(o,n){return o.find(n)}:function(o,n){let d,f=o.length;for(d=0;dN.order-ie.order),S.forEach(N=>{N.fn.call(o,d)===!1&&d.preventDefault()})}f&&!d.defaultPrevented&&f.call(o,d)}R({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(o,n){t[n]=function(d){return O(32,!1,void 0,{[`Highcharts.${n}`]:`use Array.${o}`}),Array.prototype[o].apply(d,[].slice.call(arguments,1))}});let c=function(){let o=Math.random().toString(36).substring(2,9)+"-",n=0;return function(){return"highcharts-"+(r?"":o)+n++}}();return _.jQuery&&(_.jQuery.fn.highcharts=function(){let o=[].slice.call(arguments);if(this[0])return o[0]?(new t[G(o[0])?o.shift():"Chart"](this[0],o[0],o[1]),this):a[C(this[0],"data-highcharts-chart")]}),{addEvent:function(o,n,d,f={}){let S=typeof o=="function"&&o.prototype||o;Object.hasOwnProperty.call(S,"hcEvents")||(S.hcEvents={});let T=S.hcEvents;t.Point&&o instanceof t.Point&&o.series&&o.series.chart&&(o.series.chart.runTrackerClick=!0);let m=o.addEventListener;m&&m.call(o,n,d,!!t.supportsPassiveEvents&&{passive:f.passive===void 0?n.indexOf("touch")!==-1:f.passive,capture:!1}),T[n]||(T[n]=[]);let N={fn:d,order:typeof f.order=="number"?f.order:1/0};return T[n].push(N),T[n].sort((ie,D)=>ie.order-D.order),function(){u(o,n,d)}},arrayMax:function(o){let n=o.length,d=o[0];for(;n--;)o[n]>d&&(d=o[n]);return d},arrayMin:function(o){let n=o.length,d=o[0];for(;n--;)o[n]n?o{let f=n%2/2,S=d?-1:1;return(Math.round(o*S-f)+f)*S},css:y,defined:F,destroyObjectProperties:function(o,n,d){R(o,function(f,S){f!==n&&f?.destroy&&f.destroy(),(f?.destroy||!d)&&delete o[S]})},diffObjects:function(o,n,d,f){let S={};return function T(m,N,ie,D){let B=d?N:m;R(m,function(V,Z){if(!D&&f&&f.indexOf(Z)>-1&&N[Z]){V=M(V),ie[Z]=[];for(let re=0;re{if(N.length>1)for(T=f=N.length-1;T>0;T--)(S=N[T]-N[T-1])<0&&!m?(n?.(),n=void 0):S&&(d===void 0||S=m-1&&(m=Math.floor(N)),Math.max(0,m-(o(n,"padding-left",!0)||0)-(o(n,"padding-right",!0)||0))}if(d==="height")return Math.max(0,Math.min(n.offsetHeight,n.scrollHeight)-(o(n,"padding-top",!0)||0)-(o(n,"padding-bottom",!0)||0));let T=_.getComputedStyle(n,void 0);return T&&(S=T.getPropertyValue(d),L(f,d!=="opacity")&&(S=te(S))),S},inArray:function(o,n,d){return O(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(o,d)},insertItem:function(o,n){let d,f=o.options.index,S=n.length;for(d=o.options.isInternal?S:0;d=o))&&(S||!(N<=(n[T]+(n[T+1]||n[T]))/2)));T++);return q(m*d,-Math.round(Math.log(.001)/Math.LN10))},objectEach:R,offset:function(o){let n=l.documentElement,d=o.parentElement||o.parentNode?o.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:d.top+(_.pageYOffset||n.scrollTop)-(n.clientTop||0),left:d.left+(_.pageXOffset||n.scrollLeft)-(n.clientLeft||0),width:d.width,height:d.height}},pad:function(o,n,d){return Array((n||2)+1-String(o).replace("-","").length).join(d||"0")+o},pick:L,pInt:te,pushUnique:function(o,n){return 0>o.indexOf(n)&&!!o.push(n)},relativeLength:function(o,n,d){return/%$/.test(o)?n*parseFloat(o)/100+(d||0):parseFloat(o)},removeEvent:u,replaceNested:function(o,...n){let d,f;do for(f of(d=o,n))o=o.replace(f[0],f[1]);while(o!==d);return o},splat:M,stableSort:function(o,n){let d,f,S=o.length;for(f=0;f0?setTimeout(o,n,d):(o.call(0,d),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:c,useSerialIds:function(o){return r=L(o,r)},wrap:function(o,n,d){let f=o[n];o[n]=function(){let S=arguments,T=this;return d.apply(this,[function(){return f.apply(T,arguments.length?arguments:S)}].concat([].slice.call(arguments)))}}}}),e(s,"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"}}),e(s,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),e(s,"Core/Time.js",[s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r){let{win:a}=t,{defined:l,error:_,extend:O,isNumber:te,isObject:G,merge:X,objectEach:J,pad:A,pick:$,splat:j,timeUnits:F}=r,C=t.isSafari&&a.Intl&&a.Intl.DateTimeFormat.prototype.formatRange,M=t.isSafari&&a.Intl&&!a.Intl.DateTimeFormat.prototype.formatRange;class E{constructor(y){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=a.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(y)}get(y,P){if(this.variableTimezone||this.timezoneOffset){let q=P.getTime(),z=q-this.getTimezoneOffset(P);P.setTime(z);let R=P["getUTC"+y]();return P.setTime(q),R}return this.useUTC?P["getUTC"+y]():P["get"+y]()}set(y,P,q){if(this.variableTimezone||this.timezoneOffset){if(y==="Milliseconds"||y==="Seconds"||y==="Minutes"&&this.getTimezoneOffset(P)%36e5==0)return P["setUTC"+y](q);let z=this.getTimezoneOffset(P),R=P.getTime()-z;P.setTime(R),P["setUTC"+y](q);let u=this.getTimezoneOffset(P);return R=P.getTime()+u,P.setTime(R)}return this.useUTC||C&&y==="FullYear"?P["setUTC"+y](q):P["set"+y](q)}update(y={}){let P=$(y.useUTC,!0);this.options=y=X(!0,this.options,y),this.Date=y.Date||a.Date||Date,this.useUTC=P,this.timezoneOffset=P&&y.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=P&&!!(y.getTimezoneOffset||y.timezone)}makeTime(y,P,q,z,R,u){let x,c,o;return this.useUTC?(x=this.Date.UTC.apply(0,arguments),c=this.getTimezoneOffset(x),x+=c,c!==(o=this.getTimezoneOffset(x))?x+=o-c:c-36e5!==this.getTimezoneOffset(x-36e5)||M||(x-=36e5)):x=new this.Date(y,P,$(q,1),$(z,0),$(R,0),$(u,0)).getTime(),x}timezoneOffsetFunction(){let y=this,P=this.options,q=P.getTimezoneOffset;return this.useUTC?P.timezone?z=>{try{let R=`shortOffset,${P.timezone||""}`,[u,x,c,o,n=0]=(E.formatCache[R]=E.formatCache[R]||Intl.DateTimeFormat("en",{timeZone:P.timezone,timeZoneName:"shortOffset"})).format(z).split(/(GMT|:)/).map(Number),d=-(36e5*(c+n/60));if(te(d))return d}catch{_(34)}return 0}:this.useUTC&&q?z=>6e4*q(z.valueOf()):()=>6e4*(y.timezoneOffset||0):z=>6e4*new Date(z.toString()).getTimezoneOffset()}dateFormat(y,P,q){if(!l(P)||isNaN(P))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";y=$(y,"%Y-%m-%d %H:%M:%S");let z=this,R=new this.Date(P),u=this.get("Hours",R),x=this.get("Day",R),c=this.get("Date",R),o=this.get("Month",R),n=this.get("FullYear",R),d=t.defaultOptions.lang,f=d&&d.weekdays,S=d&&d.shortWeekdays;return J(O({a:S?S[x]:f[x].substr(0,3),A:f[x],d:A(c),e:A(c,2," "),w:x,b:d.shortMonths[o],B:d.months[o],m:A(o+1),o:o+1,y:n.toString().substr(2,2),Y:n,H:A(u),k:u,I:A(u%12||12),l:u%12||12,M:A(this.get("Minutes",R)),p:u<12?"AM":"PM",P:u<12?"am":"pm",S:A(this.get("Seconds",R)),L:A(Math.floor(P%1e3),3)},t.dateFormats),function(T,m){for(;y.indexOf("%"+m)!==-1;)y=y.replace("%"+m,typeof T=="function"?T.call(z,P):T)}),q?y.substr(0,1).toUpperCase()+y.substr(1):y}resolveDTLFormat(y){return G(y,!0)?y:{main:(y=j(y))[0],from:y[1],to:y[2]}}getTimeTicks(y,P,q,z){let R,u,x,c,o=this,n=o.Date,d=[],f={},S=new n(P),T=y.unitRange,m=y.count||1;if(z=$(z,1),l(P)){o.set("Milliseconds",S,T>=F.second?0:m*Math.floor(o.get("Milliseconds",S)/m)),T>=F.second&&o.set("Seconds",S,T>=F.minute?0:m*Math.floor(o.get("Seconds",S)/m)),T>=F.minute&&o.set("Minutes",S,T>=F.hour?0:m*Math.floor(o.get("Minutes",S)/m)),T>=F.hour&&o.set("Hours",S,T>=F.day?0:m*Math.floor(o.get("Hours",S)/m)),T>=F.day&&o.set("Date",S,T>=F.month?1:Math.max(1,m*Math.floor(o.get("Date",S)/m))),T>=F.month&&(o.set("Month",S,T>=F.year?0:m*Math.floor(o.get("Month",S)/m)),u=o.get("FullYear",S)),T>=F.year&&(u-=u%m,o.set("FullYear",S,u)),T===F.week&&(c=o.get("Day",S),o.set("Date",S,o.get("Date",S)-c+z+(c4*F.month||o.getTimezoneOffset(P)!==o.getTimezoneOffset(q));let B=S.getTime();for(R=1;B1?B=o.makeTime(u,N,ie,D+R*m):B+=T*m,R++;d.push(B),T<=F.hour&&d.length<1e4&&d.forEach(function(V){V%18e5==0&&o.dateFormat("%H%M%S%L",V)==="000000000"&&(f[V]="day")})}return d.info=O(y,{higherRanks:f,totalRange:T*m}),d}getDateFormat(y,P,q,z){let R=this.dateFormat("%m-%d %H:%M:%S.%L",P),u="01-01 00:00:00.000",x={millisecond:15,second:12,minute:9,hour:6,day:3},c="millisecond",o=c;for(c in F){if(y===F.week&&+this.dateFormat("%w",P)===q&&R.substr(6)===u.substr(6)){c="week";break}if(F[c]>y){c=o;break}if(x[c]&&R.substr(x[c])!==u.substr(x[c]))break;c!=="week"&&(o=c)}return this.resolveDTLFormat(z[c]).main}}return E.formatCache={},E}),e(s,"Core/Defaults.js",[s["Core/Chart/ChartDefaults.js"],s["Core/Globals.js"],s["Core/Color/Palettes.js"],s["Core/Time.js"],s["Core/Utilities.js"]],function(t,r,a,l,_){let{isTouchDevice:O}=r,{fireEvent:te,merge:G}=_,X={colors:a.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",events:{},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:A=>Math.sqrt(1-Math.pow(A-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:O?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"}};X.chart.styledMode=!1;let J=new l(X.time);return{defaultOptions:X,defaultTime:J,getOptions:function(){return X},setOptions:function(A){return te(r,"setOptions",{options:A}),G(!0,X,A),(A.time||A.global)&&(r.time?r.time.update(G(X.global,X.time,A.global,A.time)):r.time=J),X}}}),e(s,"Core/Color/Color.js",[s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r){let{isNumber:a,merge:l,pInt:_}=r;class O{static parse(G){return G?new O(G):O.None}constructor(G){let X,J,A,$;this.rgba=[NaN,NaN,NaN,NaN],this.input=G;let j=t.Color;if(j&&j!==O)return new j(G);if(typeof G=="object"&&G.stops!==void 0)this.stops=G.stops.map(F=>new O(F[1]));else if(typeof G=="string"){if(this.input=G=O.names[G.toLowerCase()]||G,G.charAt(0)==="#"){let F=G.length,C=parseInt(G.substr(1),16);F===7?J=[(16711680&C)>>16,(65280&C)>>8,255&C,1]:F===4&&(J=[(3840&C)>>4|(3840&C)>>8,(240&C)>>4|240&C,(15&C)<<4|15&C,1])}if(!J)for(A=O.parsers.length;A--&&!J;)(X=($=O.parsers[A]).regex.exec(G))&&(J=$.parse(X))}J&&(this.rgba=J)}get(G){let X=this.input,J=this.rgba;if(typeof X=="object"&&this.stops!==void 0){let A=l(X);return A.stops=[].slice.call(A.stops),this.stops.forEach(($,j)=>{A.stops[j]=[A.stops[j][0],$.get(G)]}),A}return J&&a(J[0])?G!=="rgb"&&(G||J[3]!==1)?G==="a"?`${J[3]}`:"rgba("+J.join(",")+")":"rgb("+J[0]+","+J[1]+","+J[2]+")":X}brighten(G){let X=this.rgba;if(this.stops)this.stops.forEach(function(J){J.brighten(G)});else if(a(G)&&G!==0)for(let J=0;J<3;J++)X[J]+=_(255*G),X[J]<0&&(X[J]=0),X[J]>255&&(X[J]=255);return this}setOpacity(G){return this.rgba[3]=G,this}tweenTo(G,X){let J=this.rgba,A=G.rgba;if(!a(J[0])||!a(A[0]))return G.input||"none";let $=A[3]!==1||J[3]!==1;return($?"rgba(":"rgb(")+Math.round(A[0]+(J[0]-A[0])*(1-X))+","+Math.round(A[1]+(J[1]-A[1])*(1-X))+","+Math.round(A[2]+(J[2]-A[2])*(1-X))+($?","+(A[3]+(J[3]-A[3])*(1-X)):"")+")"}}return O.names={white:"#ffffff",black:"#000000"},O.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(te){return[_(te[1]),_(te[2]),_(te[3]),parseFloat(te[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(te){return[_(te[1]),_(te[2]),_(te[3]),1]}}],O.None=new O(""),O}),e(s,"Core/Animation/Fx.js",[s["Core/Color/Color.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a){let{parse:l}=t,{win:_}=r,{isNumber:O,objectEach:te}=a;class G{constructor(J,A,$){this.pos=NaN,this.options=A,this.elem=J,this.prop=$}dSetter(){let J=this.paths,A=J&&J[0],$=J&&J[1],j=this.now||0,F=[];if(j!==1&&A&&$)if(A.length===$.length&&j<1)for(let C=0;C<$.length;C++){let M=A[C],E=$[C],L=[];for(let y=0;y=E+this.startTime?(this.now=this.end,this.pos=1,this.update(),L[this.prop]=!0,$=!0,te(L,function(y){y!==!0&&($=!1)}),$&&M&&M.call(C),A=!1):(this.pos=F.easing((j-this.startTime)/E),this.now=this.start+(this.end-this.start)*this.pos,this.update(),A=!0),A}initPath(J,A,$){let j=J.startX,F=J.endX,C=$.slice(),M=J.isArea,E=M?2:1,L=A&&$.length>A.length&&$.hasStackedCliffs,y,P,q,z,R=A&&A.slice();if(!R||L)return[C,C];function u(c,o){for(;c.length{let q=A(P.options.animation);L=te(F)&&a(F.defer)?M.defer:Math.max(L,q.duration+q.defer),y=Math.min(M.duration,q.duration)}),j.renderer.forExport&&(L=0),{defer:Math.max(0,L-y),duration:Math.min(L,y)}},setAnimation:function(j,F){F.renderer.globalAnimation=J(j,F.options.chart.animation,!0)},stop:$}}),e(s,"Core/Renderer/HTML/AST.js",[s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r){let{SVG_NS:a,win:l}=t,{attr:_,createElement:O,css:te,error:G,isFunction:X,isString:J,objectEach:A,splat:$}=r,{trustedTypes:j}=l,F=j&&X(j.createPolicy)&&j.createPolicy("highcharts",{createHTML:L=>L}),C=F?F.createHTML(""):"",M=function(){try{return!!new DOMParser().parseFromString(C,"text/html")}catch{return!1}}();class E{static filterUserAttributes(y){return A(y,(P,q)=>{let z=!0;E.allowedAttributes.indexOf(q)===-1&&(z=!1),["background","dynsrc","href","lowsrc","src"].indexOf(q)!==-1&&(z=J(P)&&E.allowedReferences.some(R=>P.indexOf(R)===0)),z||(G(33,!1,void 0,{"Invalid attribute in config":`${q}`}),delete y[q]),J(P)&&y[q]&&(y[q]=P.replace(/{let z=q.split(":").map(u=>u.trim()),R=z.shift();return R&&z.length&&(P[R.replace(/-([a-z])/g,u=>u[1].toUpperCase())]=z.join(":")),P},{})}static setElementHTML(y,P){y.innerHTML=E.emptyHTML,P&&new E(P).addToDOM(y)}constructor(y){this.nodes=typeof y=="string"?this.parseMarkup(y):y}addToDOM(y){return function P(q,z){let R;return $(q).forEach(function(u){let x,c=u.tagName,o=u.textContent?t.doc.createTextNode(u.textContent):void 0,n=E.bypassHTMLFiltering;if(c)if(c==="#text")x=o;else if(E.allowedTags.indexOf(c)!==-1||n){let d=c==="svg"?a:z.namespaceURI||a,f=t.doc.createElementNS(d,c),S=u.attributes||{};A(u,function(T,m){m!=="tagName"&&m!=="attributes"&&m!=="children"&&m!=="style"&&m!=="textContent"&&(S[m]=T)}),_(f,n?S:E.filterUserAttributes(S)),u.style&&te(f,u.style),o&&f.appendChild(o),P(u.children||[],f),x=f}else G(33,!1,void 0,{"Invalid tagName in config":c});x&&z.appendChild(x),R=x}),R}(this.nodes,y)}parseMarkup(y){let P,q=[];if(y=y.trim().replace(/ style=(["'])/g," data-style=$1"),M)P=new DOMParser().parseFromString(F?F.createHTML(y):y,"text/html");else{let R=O("div");R.innerHTML=y,P={body:R}}let z=(R,u)=>{let x=R.nodeName.toLowerCase(),c={tagName:x};x==="#text"&&(c.textContent=R.textContent||"");let o=R.attributes;if(o){let n={};[].forEach.call(o,d=>{d.name==="data-style"?c.style=E.parseStyle(d.value):n[d.name]=d.value}),c.attributes=n}if(R.childNodes.length){let n=[];[].forEach.call(R.childNodes,d=>{z(d,n)}),n.length&&(c.children=n)}u.push(c)};return[].forEach.call(P.body.childNodes,R=>z(R,q)),q}}return E.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","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","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"],E.allowedReferences=["https://","http://","mailto:","/","../","./","#"],E.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","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"],E.emptyHTML=C,E.bypassHTMLFiltering=!1,E}),e(s,"Core/Templating.js",[s["Core/Defaults.js"],s["Core/Utilities.js"]],function(t,r){let{defaultOptions:a,defaultTime:l}=t,{extend:_,getNestedProperty:O,isArray:te,isNumber:G,isObject:X,pick:J,pInt:A}=r,$={add:(C,M)=>C+M,divide:(C,M)=>M!==0?C/M:"",eq:(C,M)=>C==M,each:function(C){let M=arguments[arguments.length-1];return!!te(C)&&C.map((E,L)=>j(M.body,_(X(E)?E:{"@this":E},{"@index":L,"@first":L===0,"@last":L===C.length-1}))).join("")},ge:(C,M)=>C>=M,gt:(C,M)=>C>M,if:C=>!!C,le:(C,M)=>C<=M,lt:(C,M)=>CC*M,ne:(C,M)=>C!=M,subtract:(C,M)=>C-M,unless:C=>!C};function j(C="",M,E){let L=/\{([\w\:\.\,;\-\/<>%@"'’= #\(\)]+)\}/g,y=/\(([\w\:\.\,;\-\/<>%@"'= ]+)\)/g,P=[],q=/f$/,z=/\.(\d)/,R=a.lang,u=E&&E.time||l,x=E&&E.numberFormatter||F,c=(S="")=>{let T;return S==="true"||S!=="false"&&((T=Number(S)).toString()===S?T:O(S,M))},o,n,d=0,f;for(;(o=L.exec(C))!==null;){let S=y.exec(o[1]);S&&(o=S,f=!0),n&&n.isBlock||(n={ctx:M,expression:o[1],find:o[0],isBlock:o[1].charAt(0)==="#",start:o.index,startInner:o.index+o[0].length,length:o[0].length});let T=o[1].split(" ")[0].replace("#","");$[T]&&(n.isBlock&&T===n.fn&&d++,n.fn||(n.fn=T));let m=o[1]==="else";if(n.isBlock&&n.fn&&(o[1]===`/${n.fn}`||m))if(d)!m&&d--;else{let N=n.startInner,ie=C.substr(N,o.index-N);n.body===void 0?(n.body=ie,n.startInner=o.index+o[0].length):n.elseBody=ie,n.find+=ie+o[0],m||(P.push(n),n=void 0)}else n.isBlock||P.push(n);if(S&&!n?.isBlock)break}return P.forEach(S=>{let T,m,{body:N,elseBody:ie,expression:D,fn:B}=S;if(B){let V=[S],Z=D.split(" ");for(m=$[B].length;m--;)V.unshift(c(Z[m+1]));T=$[B].apply(M,V),S.isBlock&&typeof T=="boolean"&&(T=j(T?N:ie,M,E))}else{let V=D.split(":");if(T=c(V.shift()||""),V.length&&typeof T=="number"){let Z=V.join(":");if(q.test(Z)){let re=parseInt((Z.match(z)||["","-1"])[1],10);T!==null&&(T=x(T,re,R.decimalPoint,Z.indexOf(",")>-1?R.thousandsSep:""))}else T=u.dateFormat(Z,T)}}C=C.replace(S.find,J(T,""))}),f?j(C,M,E):C}function F(C,M,E,L){let y,P;C=+C||0,M=+M;let q=a.lang,z=(C.toString().split(".")[1]||"").split("e")[0].length,R=C.toString().split("e"),u=M;M===-1?M=Math.min(z,20):G(M)?M&&R[1]&&R[1]<0&&((P=M+ +R[1])>=0?(R[0]=(+R[0]).toExponential(P).split("e")[0],M=P):(R[0]=R[0].split(".")[0]||0,C=M<20?(R[0]*Math.pow(10,R[1])).toFixed(M):0,R[1]=0)):M=2;let x=(Math.abs(R[1]?R[0]:C)+Math.pow(10,-Math.max(M,z)-1)).toFixed(M),c=String(A(x)),o=c.length>3?c.length%3:0;return E=J(E,q.decimalPoint),L=J(L,q.thousandsSep),y=(C<0?"-":"")+(o?c.substr(0,o)+L:""),0>+R[1]&&!u?y="0":y+=c.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+L),M?y+=E+x.slice(-M):+y==0&&(y="0"),R[1]&&+y!=0&&(y+="e"+R[1]),y}return{dateFormat:function(C,M,E){return l.dateFormat(C,M,E)},format:j,helpers:$,numberFormat:F}}),e(s,"Core/Renderer/RendererRegistry.js",[s["Core/Globals.js"]],function(t){var r,a;let l;return(a=r||(r={})).rendererTypes={},a.getRendererType=function(_=l){return a.rendererTypes[_]||a.rendererTypes[l]},a.registerRendererType=function(_,O,te){a.rendererTypes[_]=O,(!l||te)&&(l=_,t.Renderer=O)},r}),e(s,"Core/Renderer/RendererUtilities.js",[s["Core/Utilities.js"]],function(t){var r;let{clamp:a,pick:l,pushUnique:_,stableSort:O}=t;return(r||(r={})).distribute=function te(G,X,J){let A=G,$=A.reducedLen||X,j=(c,o)=>c.target-o.target,F=[],C=G.length,M=[],E=F.push,L,y,P,q=!0,z,R,u=0,x;for(L=C;L--;)u+=G[L].size;if(u>$){for(O(G,(c,o)=>(o.rank||0)-(c.rank||0)),P=(x=G[0].rank===G[G.length-1].rank)?C/2:-1,y=x?P:C-1;P&&u>$;)z=G[L=Math.floor(y)],_(M,L)&&(u-=z.size),y+=P,x&&y>=G.length&&(P/=2,y=P);M.sort((c,o)=>o-c).forEach(c=>E.apply(F,G.splice(c,1)))}for(O(G,j),G=G.map(c=>({size:c.size,targets:[c.target],align:l(c.align,.5)}));q;){for(L=G.length;L--;)z=G[L],R=(Math.min.apply(0,z.targets)+Math.max.apply(0,z.targets))/2,z.pos=a(R-z.size*z.align,0,X-z.size);for(L=G.length,q=!1;L--;)L>0&&G[L-1].pos+G[L-1].size>G[L].pos&&(G[L-1].size+=G[L].size,G[L-1].targets=G[L-1].targets.concat(G[L].targets),G[L-1].align=.5,G[L-1].pos+G[L-1].size>X&&(G[L-1].pos=X-G[L-1].size),G.splice(L,1),q=!0)}return E.apply(A,F),L=0,G.some(c=>{let o=0;return(c.targets||[]).some(()=>(A[L].pos=c.pos+o,J!==void 0&&Math.abs(A[L].pos-A[L].target)>J?(A.slice(0,L+1).forEach(n=>delete n.pos),A.reducedLen=(A.reducedLen||X)-.1*X,A.reducedLen>.1*X&&te(A,X,J),!0):(o+=A[L].size,L++,!1)))}),O(A,j),A},r}),e(s,"Core/Renderer/SVG/SVGElement.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Color/Color.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a,l){let{animate:_,animObject:O,stop:te}=t,{deg2rad:G,doc:X,svg:J,SVG_NS:A,win:$}=a,{addEvent:j,attr:F,createElement:C,crisp:M,css:E,defined:L,erase:y,extend:P,fireEvent:q,isArray:z,isFunction:R,isObject:u,isString:x,merge:c,objectEach:o,pick:n,pInt:d,pushUnique:f,replaceNested:S,syncTimeout:T,uniqueKey:m}=l;class N{_defaultGetter(D){let B=n(this[D+"Value"],this[D],this.element?this.element.getAttribute(D):null,0);return/^-?[\d\.]+$/.test(B)&&(B=parseFloat(B)),B}_defaultSetter(D,B,V){V.setAttribute(B,D)}add(D){let B,V=this.renderer,Z=this.element;return D&&(this.parentGroup=D),this.textStr!==void 0&&this.element.nodeName==="text"&&V.buildText(this),this.added=!0,(!D||D.handleZ||this.zIndex)&&(B=this.zIndexSetter()),B||(D?D.element:V.box).appendChild(Z),this.onAdd&&this.onAdd(),this}addClass(D,B){let V=B?"":this.attr("class")||"";return(D=(D||"").split(/ /g).reduce(function(Z,re){return V.indexOf(re)===-1&&Z.push(re),Z},V?[V]:[]).join(" "))!==V&&this.attr("class",D),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(D,B,V,Z=!0){let re,p,g,v,H={},h=this.renderer,w=h.alignedObjects,b=!!D;D?(this.alignOptions=D,this.alignByTranslate=B,this.alignTo=V):(D=this.alignOptions||{},B=this.alignByTranslate,V=this.alignTo);let I=!V||x(V)?V||"renderer":void 0;I&&(b&&f(w,this),V=void 0);let k=n(V,h[I],h),W=D.align,ee=D.verticalAlign;return re=(k.x||0)+(D.x||0),p=(k.y||0)+(D.y||0),W==="right"?g=1:W==="center"&&(g=2),g&&(re+=((k.width||0)-(D.width||0))/g),H[B?"translateX":"x"]=Math.round(re),ee==="bottom"?v=1:ee==="middle"&&(v=2),v&&(p+=((k.height||0)-(D.height||0))/v),H[B?"translateY":"y"]=Math.round(p),Z&&(this[this.placed?"animate":"attr"](H),this.placed=!0),this.alignAttr=H,this}alignSetter(D){let B={left:"start",center:"middle",right:"end"};B[D]&&(this.alignValue=D,this.element.setAttribute("text-anchor",B[D]))}animate(D,B,V){let Z=O(n(B,this.renderer.globalAnimation,!0)),re=Z.defer;return X.hidden&&(Z.duration=0),Z.duration!==0?(V&&(Z.complete=V),T(()=>{this.element&&_(this,D,Z)},re)):(this.attr(D,void 0,V||Z.complete),o(D,function(p,g){Z.step&&Z.step.call(this,p,{prop:g,pos:1,elem:this})},this)),this}applyTextOutline(D){let B=this.element;D.indexOf("contrast")!==-1&&(D=D.replace(/contrast/g,this.renderer.getContrast(B.style.fill)));let V=D.split(" "),Z=V[V.length-1],re=V[0];if(re&&re!=="none"&&a.svg){this.fakeTS=!0,re=re.replace(/(^[\d\.]+)(.*?)$/g,function(h,w,b){return 2*Number(w)+b}),this.removeTextOutline();let p=X.createElementNS(A,"tspan");F(p,{class:"highcharts-text-outline",fill:Z,stroke:Z,"stroke-width":re,"stroke-linejoin":"round"});let g=B.querySelector("textPath")||B;[].forEach.call(g.childNodes,h=>{let w=h.cloneNode(!0);w.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(b=>w.removeAttribute(b)),p.appendChild(w)});let v=0;[].forEach.call(g.querySelectorAll("text tspan"),h=>{v+=Number(h.getAttribute("dy"))});let H=X.createElementNS(A,"tspan");H.textContent="\u200B",F(H,{x:Number(B.getAttribute("x")),dy:-v}),p.appendChild(H),g.insertBefore(p,g.firstChild)}}attr(D,B,V,Z){let{element:re}=this,p=N.symbolCustomAttribs,g,v,H=this,h;return typeof D=="string"&&B!==void 0&&(g=D,(D={})[g]=B),typeof D=="string"?H=(this[D+"Getter"]||this._defaultGetter).call(this,D,re):(o(D,function(w,b){h=!1,Z||te(this,b),this.symbolName&&p.indexOf(b)!==-1&&(v||(this.symbolAttr(D),v=!0),h=!0),this.rotation&&(b==="x"||b==="y")&&(this.doTransform=!0),h||(this[b+"Setter"]||this._defaultSetter).call(this,w,b,re)},this),this.afterSetters()),V&&V.call(this),H}clip(D){if(D&&!D.clipPath){let B=m()+"-",V=this.renderer.createElement("clipPath").attr({id:B}).add(this.renderer.defs);P(D,{clipPath:V,id:B,count:0}),D.add(V)}return this.attr("clip-path",D?`url(${this.renderer.url}#${D.id})`:"none")}crisp(D,B){B=Math.round(B||D.strokeWidth||0);let V=D.x||this.x||0,Z=D.y||this.y||0,re=(D.width||this.width||0)+V,p=(D.height||this.height||0)+Z,g=M(V,B),v=M(Z,B);return P(D,{x:g,y:v,width:M(re,B)-g,height:M(p,B)-v}),L(D.strokeWidth)&&(D.strokeWidth=B),D}complexColor(D,B,V){let Z=this.renderer,re,p,g,v,H,h,w,b,I,k,W=[],ee;q(this.renderer,"complexColor",{args:arguments},function(){if(D.radialGradient?p="radialGradient":D.linearGradient&&(p="linearGradient"),p){if(g=D[p],H=Z.gradients,h=D.stops,I=V.radialReference,z(g)&&(D[p]=g={x1:g[0],y1:g[1],x2:g[2],y2:g[3],gradientUnits:"userSpaceOnUse"}),p==="radialGradient"&&I&&!L(g.gradientUnits)&&(v=g,g=c(g,Z.getRadialAttr(I,v),{gradientUnits:"userSpaceOnUse"})),o(g,function(se,ne){ne!=="id"&&W.push(ne,se)}),o(h,function(se){W.push(se)}),H[W=W.join(",")])k=H[W].attr("id");else{g.id=k=m();let se=H[W]=Z.createElement(p).attr(g).add(Z.defs);se.radAttr=v,se.stops=[],h.forEach(function(ne){ne[1].indexOf("rgba")===0?(w=(re=r.parse(ne[1])).get("rgb"),b=re.get("a")):(w=ne[1],b=1);let ce=Z.createElement("stop").attr({offset:ne[0],"stop-color":w,"stop-opacity":b}).add(se);se.stops.push(ce)})}ee="url("+Z.url+"#"+k+")",V.setAttribute(B,ee),V.gradient=W,D.toString=function(){return ee}}})}css(D){let B=this.styles,V={},Z=this.element,re,p=!B;if(B&&o(D,function(g,v){B&&B[v]!==g&&(V[v]=g,p=!0)}),p){B&&(D=P(B,V)),D.width===null||D.width==="auto"?delete this.textWidth:Z.nodeName.toLowerCase()==="text"&&D.width&&(re=this.textWidth=d(D.width)),P(this.styles,D),re&&!J&&this.renderer.forExport&&delete D.width;let g=c(D);Z.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(v=>g&&delete g[v]),g.color&&(g.fill=g.color)),E(Z,g)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),D.textOutline&&this.applyTextOutline(D.textOutline)),this}dashstyleSetter(D){let B,V=this["stroke-width"];if(V==="inherit"&&(V=1),D=D&&D.toLowerCase()){let Z=D.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(B=Z.length;B--;)Z[B]=""+d(Z[B])*n(V,NaN);D=Z.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",D)}}destroy(){let D=this,B=D.element||{},V=D.renderer,Z=B.ownerSVGElement,re=B.nodeName==="SPAN"&&D.parentGroup||void 0,p,g;if(B.onclick=B.onmouseout=B.onmouseover=B.onmousemove=B.point=null,te(D),D.clipPath&&Z){let v=D.clipPath;[].forEach.call(Z.querySelectorAll("[clip-path],[CLIP-PATH]"),function(H){H.getAttribute("clip-path").indexOf(v.element.id)>-1&&H.removeAttribute("clip-path")}),D.clipPath=v.destroy()}if(D.connector=D.connector?.destroy(),D.stops){for(g=0;gre&&re.join?(p?Z+" ":"")+re.join(" "):(re||"").toString(),"")),/(NaN| {2}|^$)/.test(D)&&(D="M 0 0"),this[B]!==D&&(V.setAttribute(B,D),this[B]=D)}fillSetter(D,B,V){typeof D=="string"?V.setAttribute(B,D):D&&this.complexColor(D,B,V)}hrefSetter(D,B,V){V.setAttributeNS("http://www.w3.org/1999/xlink",B,D)}getBBox(D,B){let V,Z,re,p,{alignValue:g,element:v,renderer:H,styles:h,textStr:w}=this,{cache:b,cacheKeys:I}=H,k=v.namespaceURI===this.SVG_NS,W=n(B,this.rotation,0),ee=H.styledMode?v&&N.prototype.getStyle.call(v,"font-size"):h.fontSize;if(L(w)&&((p=w.toString()).indexOf("<")===-1&&(p=p.replace(/\d/g,"0")),p+=["",H.rootFontSize,ee,W,this.textWidth,g,h.textOverflow,h.fontWeight].join(",")),p&&!D&&(V=b[p]),!V||V.polygon){if(k||H.forExport){try{re=this.fakeTS&&function(ne){let ce=v.querySelector(".highcharts-text-outline");ce&&E(ce,{display:ne})},R(re)&&re("none"),V=v.getBBox?P({},v.getBBox()):{width:v.offsetWidth,height:v.offsetHeight,x:0,y:0},R(re)&&re("")}catch{}(!V||V.width<0)&&(V={x:0,y:0,width:0,height:0})}else V=this.htmlGetBBox();Z=V.height,k&&(V.height=Z={"11px,17":14,"13px,20":16}[`${ee||""},${Math.round(Z)}`]||Z),W&&(V=this.getRotatedBox(V,W));let se={bBox:V};q(this,"afterGetBBox",se),V=se.bBox}if(p&&(w===""||V.height>0)){for(;I.length>250;)delete b[I.shift()];b[p]||I.push(p),b[p]=V}return V}getRotatedBox(D,B){let{x:V,y:Z,width:re,height:p}=D,{alignValue:g,translateY:v,rotationOriginX:H=0,rotationOriginY:h=0}=this,w={right:1,center:.5}[g||0]||0,b=Number(this.element.getAttribute("y")||0)-(v?0:Z),I=B*G,k=(B-90)*G,W=Math.cos(I),ee=Math.sin(I),se=re*W,ne=re*ee,ce=Math.cos(k),de=Math.sin(k),[[Y,U],[K,Q]]=[H,h].map(Ae=>[Ae-Ae*W,Ae*ee]),oe=V+w*(re-se)+Y+Q+b*ce,ae=oe+se,he=ae-p*ce,le=he-se,ue=Z+b-w*ne-U+K+b*de,pe=ue+ne,fe=pe-p*de,me=fe-ne,ge=Math.min(oe,ae,he,le),be=Math.min(ue,pe,fe,me),ve=Math.max(oe,ae,he,le)-ge,ye=Math.max(ue,pe,fe,me)-be;return{x:ge,y:be,width:ve,height:ye,polygon:[[oe,ue],[ae,pe],[he,fe],[le,me]]}}getStyle(D){return $.getComputedStyle(this.element||this,"").getPropertyValue(D)}hasClass(D){return(""+this.attr("class")).split(" ").indexOf(D)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(D,B){this.onEvents={},this.opacity=1,this.SVG_NS=A,this.element=B==="span"||B==="body"?C(B):X.createElementNS(this.SVG_NS,B),this.renderer=D,this.styles={},q(this,"afterInit")}on(D,B){let{onEvents:V}=this;return V[D]&&V[D](),V[D]=j(this.element,D,B),this}opacitySetter(D,B,V){let Z=Number(Number(D).toFixed(3));this.opacity=Z,V.setAttribute(B,Z)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(D){return this.attr("class",(""+this.attr("class")).replace(x(D)?RegExp(`(^| )${D}( |$)`):D," ").replace(/ +/g," ").trim())}removeTextOutline(){let D=this.element.querySelector("tspan.highcharts-text-outline");D&&this.safeRemoveChild(D)}safeRemoveChild(D){let B=D.parentNode;B&&B.removeChild(D)}setRadialReference(D){let B=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=D,B&&B.radAttr&&B.animate(this.renderer.getRadialAttr(D,B.radAttr)),this}shadow(D){let{renderer:B}=this,V=c(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},u(D)?D:{}),Z=B.shadowDefinition(V);return this.attr({filter:D?`url(${B.url}#${Z})`:"none"})}show(D=!0){return this.attr({visibility:D?"inherit":"visible"})}"stroke-widthSetter"(D,B,V){this[B]=D,V.setAttribute(B,D)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let D=this.getStyle("stroke-width"),B=0,V;return/px$/.test(D)?B=d(D):D!==""&&(F(V=X.createElementNS(A,"rect"),{width:D,"stroke-width":0}),this.element.parentNode.appendChild(V),B=V.getBBox().width,V.parentNode.removeChild(V)),B}symbolAttr(D){let B=this;N.symbolCustomAttribs.forEach(function(V){B[V]=n(D[V],B[V])}),B.attr({d:B.renderer.symbols[B.symbolName](B.x,B.y,B.width,B.height,B)})}textSetter(D){D!==this.textStr&&(delete this.textPxLength,this.textStr=D,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(D){let B=this.element,V=B.getElementsByTagName("title")[0]||X.createElementNS(this.SVG_NS,"title");B.insertBefore?B.insertBefore(V,B.firstChild):B.appendChild(V),V.textContent=S(n(D,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let D=this.element;return D.parentNode.appendChild(D),this}translate(D,B){return this.attr({translateX:D,translateY:B})}updateTransform(D="transform"){let{element:B,matrix:V,rotation:Z=0,rotationOriginX:re,rotationOriginY:p,scaleX:g,scaleY:v,translateX:H=0,translateY:h=0}=this,w=["translate("+H+","+h+")"];L(V)&&w.push("matrix("+V.join(",")+")"),Z&&(w.push("rotate("+Z+" "+n(re,B.getAttribute("x"),0)+" "+n(p,B.getAttribute("y")||0)+")"),this.text?.element.tagName==="SPAN"&&this.text.attr({rotation:Z,rotationOriginX:(re||0)-this.padding,rotationOriginY:(p||0)-this.padding})),(L(g)||L(v))&&w.push("scale("+n(g,1)+" "+n(v,1)+")"),w.length&&!(this.text||this).textPath&&B.setAttribute(D,w.join(" "))}visibilitySetter(D,B,V){D==="inherit"?V.removeAttribute(B):this[B]!==D&&V.setAttribute(B,D),this[B]=D}xGetter(D){return this.element.nodeName==="circle"&&(D==="x"?D="cx":D==="y"&&(D="cy")),this._defaultGetter(D)}zIndexSetter(D,B){let V=this.renderer,Z=this.parentGroup,re=(Z||V).element||V.box,p=this.element,g=re===V.box,v,H,h,w=!1,b,I=this.added,k;if(L(D)?(p.setAttribute("data-z-index",D),D=+D,this[B]===D&&(I=!1)):L(this[B])&&p.removeAttribute("data-z-index"),this[B]=D,I){for((D=this.zIndex)&&Z&&(Z.handleZ=!0),k=(v=re.childNodes).length-1;k>=0&&!w;k--)b=!L(h=(H=v[k]).getAttribute("data-z-index")),H!==p&&(D<0&&b&&!g&&!k?(re.insertBefore(p,v[k]),w=!0):(d(h)<=D||b&&(!L(D)||D>=0))&&(re.insertBefore(p,v[k+1]),w=!0));w||(re.insertBefore(p,v[g?3:0]),w=!0)}return w}}return N.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],N.prototype.strokeSetter=N.prototype.fillSetter,N.prototype.yGetter=N.prototype.xGetter,N.prototype.matrixSetter=N.prototype.rotationOriginXSetter=N.prototype.rotationOriginYSetter=N.prototype.rotationSetter=N.prototype.scaleXSetter=N.prototype.scaleYSetter=N.prototype.translateXSetter=N.prototype.translateYSetter=N.prototype.verticalAlignSetter=function(ie,D){this[D]=ie,this.doTransform=!0},N}),e(s,"Core/Renderer/SVG/SVGLabel.js",[s["Core/Renderer/SVG/SVGElement.js"],s["Core/Utilities.js"]],function(t,r){let{defined:a,extend:l,isNumber:_,merge:O,pick:te,removeEvent:G}=r;class X extends t{constructor(A,$,j,F,C,M,E,L,y,P){let q;super(A,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=$,this.x=j,this.y=F,this.anchorX=M,this.anchorY=E,this.baseline=y,this.className=P,this.addClass(P==="button"?"highcharts-no-tooltip":"highcharts-label"),P&&this.addClass("highcharts-"+P),this.text=A.text(void 0,0,0,L).attr({zIndex:1}),typeof C=="string"&&((q=/^url\((.*?)\)$/.test(C))||this.renderer.symbols[C])&&(this.symbolKey=C),this.bBox=X.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=A.styledMode||q,this.deferredAttr={},this.alignFactor=0}alignSetter(A){let $={left:0,center:.5,right:1}[A];$!==this.alignFactor&&(this.alignFactor=$,this.bBox&&_(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(A,$){this.anchorX=A,this.boxAttr($,Math.round(A)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(A,$){this.anchorY=A,this.boxAttr($,A-this.ySetting)}boxAttr(A,$){this.box?this.box.attr(A,$):this.deferredAttr[A]=$}css(A){if(A){let $={};A=O(A),X.textProps.forEach(j=>{A[j]!==void 0&&($[j]=A[j],delete A[j])}),this.text.css($),"fontSize"in $||"fontWeight"in $?this.updateTextPadding():("width"in $||"textOverflow"in $)&&this.updateBoxSize()}return t.prototype.css.call(this,A)}destroy(){G(this.element,"mouseenter"),G(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)}fillSetter(A,$){A&&(this.needsBox=!0),this.fill=A,this.boxAttr($,A)}getBBox(A,$){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:j,height:F=0,translateX:C=0,translateY:M=0,width:E=0}=this,L=te(this.paddingLeft,j),y=$??(this.rotation||0),P={width:E,height:F,x:C+this.bBox.x-L,y:M+this.bBox.y-j+this.baselineOffset};return y&&(P=this.getRotatedBox(P,y)),P}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(A){this.heightSetting=A,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:te(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&a(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(A,$){_(A)?A!==this[$]&&(this[$]=A,this.updateTextPadding()):this[$]=void 0}rSetter(A,$){this.boxAttr($,A)}strokeSetter(A,$){this.stroke=A,this.boxAttr($,A)}"stroke-widthSetter"(A,$){A&&(this.needsBox=!0),this["stroke-width"]=A,this.boxAttr($,A)}"text-alignSetter"(A){this.textAlign=A}textSetter(A){A!==void 0&&this.text.attr({text:A}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let A,$=this.text,j={},F=this.padding,C=this.bBox=(!_(this.widthSetting)||!_(this.heightSetting)||this.textAlign)&&a($.textStr)?$.getBBox(void 0,0):X.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||C.height||0)+2*F;let M=this.renderer.fontMetrics($);if(this.baselineOffset=F+Math.min((this.text.firstLineMetrics||M).b,C.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-M.h)/2),this.needsBox&&!$.textPath){if(!this.box){let E=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();E.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),E.add(this)}A=this.getCrispAdjust(),j.x=A,j.y=(this.baseline?-this.baselineOffset:0)+A,j.width=Math.round(this.width),j.height=Math.round(this.height),this.box.attr(l(j,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let A=this.text;if(!A.textPath){this.updateBoxSize();let $=this.baseline?0:this.baselineOffset,j=te(this.paddingLeft,this.padding);a(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(j+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(j!==A.x||$!==A.y)&&(A.attr("x",j),A.hasBoxWidthChanged&&(this.bBox=A.getBBox(!0)),$!==void 0&&A.attr("y",$)),A.x=j,A.y=$}}widthSetter(A){this.widthSetting=_(A)?A:void 0,this.doUpdate=!0}getPaddedWidth(){let A=this.padding,$=te(this.paddingLeft,A),j=te(this.paddingRight,A);return(this.widthSetting||this.bBox.width||0)+$+j}xSetter(A){this.x=A,this.alignFactor&&(A-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(A),this.attr("translateX",this.xSetting)}ySetter(A){this.ySetting=this.y=Math.round(A),this.attr("translateY",this.ySetting)}}return X.emptyBBox={width:0,height:0,x:0,y:0},X.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],X}),e(s,"Core/Renderer/SVG/Symbols.js",[s["Core/Utilities.js"]],function(t){let{defined:r,isNumber:a,pick:l}=t;function _(G,X,J,A,$){let j=[];if($){let F=$.start||0,C=l($.r,J),M=l($.r,A||J),E=2e-4/($.borderRadius?1:Math.max(C,1)),L=Math.abs(($.end||0)-F-2*Math.PI)0&&M0)return E;if(G+C>J-F)if(M>X+F&&MX+F&&M0){let L=MA&&CF&&E.splice(1,1,["L",C-6,X],["L",C,X-6],["L",C+6,X],["L",J-j,X]);return E},circle:function(G,X,J,A){return _(G+J/2,X+A/2,J/2,A/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(G,X,J,A){return[["M",G+J/2,X],["L",G+J,X+A/2],["L",G+J/2,X+A],["L",G,X+A/2],["Z"]]},rect:O,roundedRect:te,square:O,triangle:function(G,X,J,A){return[["M",G+J/2,X],["L",G+J,X+A],["L",G,X+A],["Z"]]},"triangle-down":function(G,X,J,A){return[["M",G,X],["L",G+J,X],["L",G+J/2,X+A],["Z"]]}}}),e(s,"Core/Renderer/SVG/TextBuilder.js",[s["Core/Renderer/HTML/AST.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a){let{doc:l,SVG_NS:_,win:O}=r,{attr:te,extend:G,fireEvent:X,isString:J,objectEach:A,pick:$}=a;return class{constructor(j){let F=j.styles;this.renderer=j.renderer,this.svgElement=j,this.width=j.textWidth,this.textLineHeight=F&&F.lineHeight,this.textOutline=F&&F.textOutline,this.ellipsis=!!(F&&F.textOverflow==="ellipsis"),this.noWrap=!!(F&&F.whiteSpace==="nowrap")}buildSVG(){let j=this.svgElement,F=j.element,C=j.renderer,M=$(j.textStr,"").toString(),E=M.indexOf("<")!==-1,L=F.childNodes,y=!j.added&&C.box,P=[M,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,j.getStyle("font-size"),this.width].join(",");if(P!==j.textCache){j.textCache=P,delete j.actualWidth;for(let q=L.length;q--;)F.removeChild(L[q]);if(E||this.ellipsis||this.width||j.textPath||M.indexOf(" ")!==-1&&(!this.noWrap||//g.test(M))){if(M!==""){y&&y.appendChild(F);let q=new t(M);this.modifyTree(q.nodes),q.addToDOM(F),this.modifyDOM(),this.ellipsis&&(F.textContent||"").indexOf("\u2026")!==-1&&j.attr("title",this.unescapeEntities(j.textStr||"",["<",">"])),y&&y.removeChild(F)}}else F.appendChild(l.createTextNode(this.unescapeEntities(M)));J(this.textOutline)&&j.applyTextOutline&&j.applyTextOutline(this.textOutline)}}modifyDOM(){let j,F=this.svgElement,C=te(F.element,"x");for(F.firstLineMetrics=void 0;(j=F.element.firstChild)&&/^[\s\u200B]*$/.test(j.textContent||" ");)F.element.removeChild(j);[].forEach.call(F.element.querySelectorAll("tspan.highcharts-br"),(y,P)=>{y.nextSibling&&y.previousSibling&&(P===0&&y.previousSibling.nodeType===1&&(F.firstLineMetrics=F.renderer.fontMetrics(y.previousSibling)),te(y,{dy:this.getLineHeight(y.nextSibling),x:C}))});let M=this.width||0;if(!M)return;let E=(y,P)=>{let q=y.textContent||"",z=q.replace(/([^\^])-/g,"$1- ").split(" "),R=!this.noWrap&&(z.length>1||F.element.childNodes.length>1),u=this.getLineHeight(P),x=0,c=F.actualWidth;if(this.ellipsis)q&&this.truncate(y,q,void 0,0,Math.max(0,M-.8*u),(o,n)=>o.substring(0,n)+"\u2026");else if(R){let o=[],n=[];for(;P.firstChild&&P.firstChild!==y;)n.push(P.firstChild),P.removeChild(P.firstChild);for(;z.length;)z.length&&!this.noWrap&&x>0&&(o.push(y.textContent||""),y.textContent=z.join(" ").replace(/- /g,"-")),this.truncate(y,void 0,z,x===0&&c||0,M,(d,f)=>z.slice(0,f).join(" ").replace(/- /g,"-")),c=F.actualWidth,x++;n.forEach(d=>{P.insertBefore(d,y)}),o.forEach(d=>{P.insertBefore(l.createTextNode(d),y);let f=l.createElementNS(_,"tspan");f.textContent="\u200B",te(f,{dy:u,x:C}),P.insertBefore(f,y)})}},L=y=>{[].slice.call(y.childNodes).forEach(P=>{P.nodeType===O.Node.TEXT_NODE?E(P,y):(P.className.baseVal.indexOf("highcharts-br")!==-1&&(F.actualWidth=0),L(P))})};L(F.element)}getLineHeight(j){let F=j.nodeType===O.Node.TEXT_NODE?j.parentElement:j;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(F||this.svgElement.element).h}modifyTree(j){let F=(C,M)=>{let{attributes:E={},children:L,style:y={},tagName:P}=C,q=this.renderer.styledMode;if(P==="b"||P==="strong"?q?E.class="highcharts-strong":y.fontWeight="bold":(P==="i"||P==="em")&&(q?E.class="highcharts-emphasized":y.fontStyle="italic"),y&&y.color&&(y.fill=y.color),P==="br"){E.class="highcharts-br",C.textContent="\u200B";let z=j[M+1];z&&z.textContent&&(z.textContent=z.textContent.replace(/^ +/gm,""))}else P==="a"&&L&&L.some(z=>z.tagName==="#text")&&(C.children=[{children:L,tagName:"tspan"}]);P!=="#text"&&P!=="a"&&(C.tagName="tspan"),G(C,{attributes:E,style:y}),L&&L.filter(z=>z.tagName!=="#text").forEach(F)};j.forEach(F),X(this.svgElement,"afterModifyTree",{nodes:j})}truncate(j,F,C,M,E,L){let y,P,q=this.svgElement,{rotation:z}=q,R=[],u=C?1:0,x=(F||C||"").length,c=x,o=function(n,d){let f=d||n,S=j.parentNode;if(S&&R[f]===void 0&&S.getSubStringLength)try{R[f]=M+S.getSubStringLength(0,C?f+1:f)}catch{}return R[f]};if(q.rotation=0,M+(P=o(j.textContent.length))>E){for(;u<=x;)c=Math.ceil((u+x)/2),C&&(y=L(C,c)),P=o(c,y&&y.length-1),u===x?u=x+1:P>E?x=c-1:u=c;x===0?j.textContent="":F&&x===F.length-1||(j.textContent=y||L(F||C,c))}C&&C.splice(0,c),q.actualWidth=P,q.rotation=z}unescapeEntities(j,F){return A(this.renderer.escapes,function(C,M){F&&F.indexOf(C)!==-1||(j=j.toString().replace(RegExp(C,"g"),M))}),j}}}),e(s,"Core/Renderer/SVG/SVGRenderer.js",[s["Core/Renderer/HTML/AST.js"],s["Core/Defaults.js"],s["Core/Color/Color.js"],s["Core/Globals.js"],s["Core/Renderer/RendererRegistry.js"],s["Core/Renderer/SVG/SVGElement.js"],s["Core/Renderer/SVG/SVGLabel.js"],s["Core/Renderer/SVG/Symbols.js"],s["Core/Renderer/SVG/TextBuilder.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O,te,G,X,J){let A,{defaultOptions:$}=r,{charts:j,deg2rad:F,doc:C,isFirefox:M,isMS:E,isWebKit:L,noop:y,SVG_NS:P,symbolSizes:q,win:z}=l,{addEvent:R,attr:u,createElement:x,crisp:c,css:o,defined:n,destroyObjectProperties:d,extend:f,isArray:S,isNumber:T,isObject:m,isString:N,merge:ie,pick:D,pInt:B,replaceNested:V,uniqueKey:Z}=J;class re{constructor(g,v,H,h,w,b,I){let k,W,ee=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),se=ee.element;I||ee.css(this.getStyle(h||{})),g.appendChild(se),u(g,"dir","ltr"),g.innerHTML.indexOf("xmlns")===-1&&u(se,"xmlns",this.SVG_NS),this.box=se,this.boxWrapper=ee,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(C.createTextNode("Created with Highcharts 11.4.8")),this.defs=this.createElement("defs").add(),this.allowHTML=b,this.forExport=w,this.styledMode=I,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=ee.getStyle("font-size"),this.setSize(v,H,!1),M&&g.getBoundingClientRect&&((k=function(){o(g,{left:0,top:0}),W=g.getBoundingClientRect(),o(g,{left:Math.ceil(W.left)-W.left+"px",top:Math.ceil(W.top)-W.top+"px"})})(),this.unSubPixelFix=R(z,"resize",k))}definition(g){return new t([g]).addToDOM(this.defs.element)}getReferenceURL(){if((M||L)&&C.getElementsByTagName("base").length){if(!n(A)){let g=Z(),v=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:g},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${g})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(C.body);o(v,{position:"fixed",top:0,left:0,zIndex:9e5});let H=C.elementFromPoint(6,6);A=(H&&H.id)==="hitme",C.body.removeChild(v)}if(A)return V(z.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(g){return this.style=f({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},g),this.style}setStyle(g){this.boxWrapper.css(this.getStyle(g))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let g=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),d(this.gradients||{}),this.gradients=null,this.defs=g.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(g){return new this.Element(this,g)}getRadialAttr(g,v){return{cx:g[0]-g[2]/2+(v.cx||0)*g[2],cy:g[1]-g[2]/2+(v.cy||0)*g[2],r:(v.r||0)*g[2]}}shadowDefinition(g){let v=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(g).map(h=>`${h}-${g[h]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),H=ie({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},g);return this.defs.element.querySelector(`#${v}`)||this.definition({tagName:"filter",attributes:{id:v,filterUnits:H.filterUnits},children:this.getShadowFilterContent(H)}),v}getShadowFilterContent(g){return[{tagName:"feDropShadow",attributes:{dx:g.offsetX,dy:g.offsetY,"flood-color":g.color,"flood-opacity":Math.min(5*g.opacity,1),stdDeviation:g.width/2}}]}buildText(g){new X(g).buildSVG()}getContrast(g){let v=a.parse(g).rgba.map(h=>{let w=h/255;return w<=.03928?w/12.92:Math.pow((w+.055)/1.055,2.4)}),H=.2126*v[0]+.7152*v[1]+.0722*v[2];return 1.05/(H+.05)>(H+.05)/.05?"#FFFFFF":"#000000"}button(g,v,H,h,w={},b,I,k,W,ee){let se=this.label(g,v,H,W,void 0,void 0,ee,void 0,"button"),ne=this.styledMode,ce=arguments,de=0;w=ie($.global.buttonTheme,w),ne&&(delete w.fill,delete w.stroke,delete w["stroke-width"]);let Y=w.states||{},U=w.style||{};delete w.states,delete w.style;let K=[t.filterUserAttributes(w)],Q=[U];return ne||["hover","select","disabled"].forEach((oe,ae)=>{K.push(ie(K[0],t.filterUserAttributes(ce[ae+5]||Y[oe]||{}))),Q.push(K[ae+1].style),delete K[ae+1].style}),R(se.element,E?"mouseover":"mouseenter",function(){de!==3&&se.setState(1)}),R(se.element,E?"mouseout":"mouseleave",function(){de!==3&&se.setState(de)}),se.setState=(oe=0)=>{if(oe!==1&&(se.state=de=oe),se.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][oe]),!ne){se.attr(K[oe]);let ae=Q[oe];m(ae)&&se.css(ae)}},se.attr(K[0]),!ne&&(se.css(f({cursor:"default"},U)),ee&&se.text.css({pointerEvents:"none"})),se.on("touchstart",oe=>oe.stopPropagation()).on("click",function(oe){de!==3&&h.call(se,oe)})}crispLine(g,v){let[H,h]=g;return n(H[1])&&H[1]===h[1]&&(H[1]=h[1]=c(H[1],v)),n(H[2])&&H[2]===h[2]&&(H[2]=h[2]=c(H[2],v)),g}path(g){let v=this.styledMode?{}:{fill:"none"};return S(g)?v.d=g:m(g)&&f(v,g),this.createElement("path").attr(v)}circle(g,v,H){let h=m(g)?g:g===void 0?{}:{x:g,y:v,r:H},w=this.createElement("circle");return w.xSetter=w.ySetter=function(b,I,k){k.setAttribute("c"+I,b)},w.attr(h)}arc(g,v,H,h,w,b){let I;m(g)?(v=(I=g).y,H=I.r,h=I.innerR,w=I.start,b=I.end,g=I.x):I={innerR:h,start:w,end:b};let k=this.symbol("arc",g,v,H,H,I);return k.r=H,k}rect(g,v,H,h,w,b){let I=m(g)?g:g===void 0?{}:{x:g,y:v,r:w,width:Math.max(H||0,0),height:Math.max(h||0,0)},k=this.createElement("rect");return this.styledMode||(b!==void 0&&(I["stroke-width"]=b,f(I,k.crisp(I))),I.fill="none"),k.rSetter=function(W,ee,se){k.r=W,u(se,{rx:W,ry:W})},k.rGetter=function(){return k.r||0},k.attr(I)}roundedRect(g){return this.symbol("roundedRect").attr(g)}setSize(g,v,H){this.width=g,this.height=v,this.boxWrapper.animate({width:g,height:v},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:D(H,!0)?void 0:0}),this.alignElements()}g(g){let v=this.createElement("g");return g?v.attr({class:"highcharts-"+g}):v}image(g,v,H,h,w,b){let I={preserveAspectRatio:"none"};T(v)&&(I.x=v),T(H)&&(I.y=H),T(h)&&(I.width=h),T(w)&&(I.height=w);let k=this.createElement("image").attr(I),W=function(ee){k.attr({href:g}),b.call(k,ee)};if(b){k.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let ee=new z.Image;R(ee,"load",W),ee.src=g,ee.complete&&W({})}else k.attr({href:g});return k}symbol(g,v,H,h,w,b){let I,k,W,ee,se=this,ne=/^url\((.*?)\)$/,ce=ne.test(g),de=!ce&&(this.symbols[g]?g:"circle"),Y=de&&this.symbols[de];if(Y)typeof v=="number"&&(k=Y.call(this.symbols,v||0,H||0,h||0,w||0,b)),I=this.path(k),se.styledMode||I.attr("fill","none"),f(I,{symbolName:de||void 0,x:v,y:H,width:h,height:w}),b&&f(I,b);else if(ce){W=g.match(ne)[1];let U=I=this.image(W);U.imgwidth=D(b&&b.width,q[W]&&q[W].width),U.imgheight=D(b&&b.height,q[W]&&q[W].height),ee=K=>K.attr({width:K.width,height:K.height}),["width","height"].forEach(K=>{U[`${K}Setter`]=function(Q,oe){this[oe]=Q;let{alignByTranslate:ae,element:he,width:le,height:ue,imgwidth:pe,imgheight:fe}=this,me=oe==="width"?pe:fe,ge=1;b&&b.backgroundSize==="within"&&le&&ue&&pe&&fe?(ge=Math.min(le/pe,ue/fe),u(he,{width:Math.round(pe*ge),height:Math.round(fe*ge)})):he&&me&&he.setAttribute(oe,me),!ae&&pe&&fe&&this.translate(((le||0)-pe*ge)/2,((ue||0)-fe*ge)/2)}}),n(v)&&U.attr({x:v,y:H}),U.isImg=!0,U.symbolUrl=g,n(U.imgwidth)&&n(U.imgheight)?ee(U):(U.attr({width:0,height:0}),x("img",{onload:function(){let K=j[se.chartIndex];this.width===0&&(o(this,{position:"absolute",top:"-999em"}),C.body.appendChild(this)),q[W]={width:this.width,height:this.height},U.imgwidth=this.width,U.imgheight=this.height,U.element&&ee(U),this.parentNode&&this.parentNode.removeChild(this),se.imgCount--,se.imgCount||!K||K.hasLoaded||K.onload()},src:W}),this.imgCount++)}return I}clipRect(g,v,H,h){return this.rect(g,v,H,h,0)}text(g,v,H,h){let w={};if(h&&(this.allowHTML||!this.forExport))return this.html(g,v,H);w.x=Math.round(v||0),H&&(w.y=Math.round(H)),n(g)&&(w.text=g);let b=this.createElement("text").attr(w);return h&&(!this.forExport||this.allowHTML)||(b.xSetter=function(I,k,W){let ee=W.getElementsByTagName("tspan"),se=W.getAttribute(k);for(let ne=0,ce;neg.align())}}return f(re.prototype,{Element:O,SVG_NS:P,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:G,draw:y}),_.registerRendererType("svg",re,!0),re}),e(s,"Core/Renderer/HTML/HTMLElement.js",[s["Core/Renderer/HTML/AST.js"],s["Core/Globals.js"],s["Core/Renderer/SVG/SVGElement.js"],s["Core/Utilities.js"]],function(t,r,a,l){let{composed:_}=r,{attr:O,css:te,createElement:G,defined:X,extend:J,pInt:A,pushUnique:$}=l;function j(E,L,y){let P=this.div?.style||y.style;a.prototype[`${L}Setter`].call(this,E,L,y),P&&(P[L]=E)}let F=(E,L)=>{if(!E.div){let y=O(E.element,"class"),P=E.css,q=G("div",y?{className:y}:void 0,ze(we({position:"absolute",left:`${E.translateX||0}px`,top:`${E.translateY||0}px`},E.styles),{display:E.display,opacity:E.opacity,visibility:E.visibility}),E.parentGroup?.div||L);E.classSetter=(z,R,u)=>{u.setAttribute("class",z),q.className=z},E.translateXSetter=E.translateYSetter=(z,R)=>{E[R]=z,q.style[R==="translateX"?"left":"top"]=`${z}px`,E.doTransform=!0},E.opacitySetter=E.visibilitySetter=j,E.css=z=>(P.call(E,z),z.cursor&&(q.style.cursor=z.cursor),z.pointerEvents&&(q.style.pointerEvents=z.pointerEvents),E),E.on=function(){return a.prototype.on.apply({element:q,onEvents:E.onEvents},arguments),E},E.div=q}return E.div};class C extends a{static compose(L){$(_,this.compose)&&(L.prototype.html=function(y,P,q){return new C(this,"span").attr({text:y,x:Math.round(P),y:Math.round(q)})})}constructor(L,y){super(L,y),this.css(we({position:"absolute"},L.styledMode?{}:{fontFamily:L.style.fontFamily,fontSize:L.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(L,y,P){this.xCorr=-L*P,this.yCorr=-y}css(L){let y,{element:P}=this,q=P.tagName==="SPAN"&&L&&"width"in L,z=q&&L.width;return q&&(delete L.width,this.textWidth=A(z)||void 0,y=!0),L?.textOverflow==="ellipsis"&&(L.whiteSpace="nowrap",L.overflow="hidden"),J(this.styles,L),te(P,L),y&&this.updateTransform(),this}htmlGetBBox(){let{element:L}=this;return{x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:L,renderer:y,rotation:P,rotationOriginX:q,rotationOriginY:z,styles:R,textAlign:u="left",textWidth:x,translateX:c=0,translateY:o=0,x:n=0,y:d=0}=this,f={left:0,center:.5,right:1}[u],S=R.whiteSpace;if(te(L,{marginLeft:`${c}px`,marginTop:`${o}px`}),L.tagName==="SPAN"){let T=[P,u,L.innerHTML,x,this.textAlign].join(","),m=-(this.parentGroup?.padding*1)||0,N,ie=!1;if(x!==this.oldTextWidth){let re=this.textPxLength?this.textPxLength:(te(L,{width:"",whiteSpace:S||"nowrap"}),L.offsetWidth),p=x||0;(p>this.oldTextWidth||re>p)&&(/[ \-]/.test(L.textContent||L.innerText)||L.style.textOverflow==="ellipsis")&&(te(L,{width:re>p||P?x+"px":"auto",display:"block",whiteSpace:S||"normal"}),this.oldTextWidth=x,ie=!0)}this.hasBoxWidthChanged=ie,T!==this.cTT&&(N=y.fontMetrics(L).b,X(P)&&(P!==(this.oldRotation||0)||u!==this.oldAlign)&&this.setSpanRotation(P,m,m),this.getSpanCorrection(!X(P)&&this.textPxLength||L.offsetWidth,N,f));let{xCorr:D=0,yCorr:B=0}=this,V=(q??n)-D-n-m,Z=(z??d)-B-d-m;te(L,{left:`${n+D}px`,top:`${d+B}px`,transformOrigin:`${V}px ${Z}px`}),this.cTT=T,this.oldRotation=P,this.oldAlign=u}}setSpanRotation(L,y,P){te(this.element,{transform:`rotate(${L}deg)`,transformOrigin:`${y}% ${P}px`})}add(L){let y,P=this.renderer.box.parentNode,q=[];if(this.parentGroup=L,L&&!(y=L.div)){let z=L;for(;z;)q.push(z),z=z.parentGroup;for(let R of q.reverse())y=F(R,P)}return(y||P).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(L){L!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,L??""),this.textStr=L,this.doTransform=!0)}alignSetter(L){this.alignValue=this.textAlign=L,this.doTransform=!0}xSetter(L,y){this[y]=L,this.doTransform=!0}}let M=C.prototype;return M.visibilitySetter=M.opacitySetter=j,M.ySetter=M.rotationSetter=M.rotationOriginXSetter=M.rotationOriginYSetter=M.xSetter,C}),e(s,"Core/Axis/AxisDefaults.js",[],function(){var t,r;return(r=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"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},r.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:a}=this.axis.chart;return a(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t}),e(s,"Core/Foundation.js",[s["Core/Utilities.js"]],function(t){var r;let{addEvent:a,isFunction:l,objectEach:_,removeEvent:O}=t;return(r||(r={})).registerEventOptions=function(te,G){te.eventOptions=te.eventOptions||{},_(G.events,function(X,J){te.eventOptions[J]!==X&&(te.eventOptions[J]&&(O(te,J,te.eventOptions[J]),delete te.eventOptions[J]),l(X)&&(te.eventOptions[J]=X,a(te,J,X,{order:0})))})},r}),e(s,"Core/Axis/Tick.js",[s["Core/Templating.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a){let{deg2rad:l}=r,{clamp:_,correctFloat:O,defined:te,destroyObjectProperties:G,extend:X,fireEvent:J,isNumber:A,merge:$,objectEach:j,pick:F}=a;return class{constructor(C,M,E,L,y){this.isNew=!0,this.isNewLabel=!0,this.axis=C,this.pos=M,this.type=E||"",this.parameters=y||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,J(this,"init"),E||L||this.addLabel()}addLabel(){let C=this,M=C.axis,E=M.options,L=M.chart,y=M.categories,P=M.logarithmic,q=M.names,z=C.pos,R=F(C.options&&C.options.labels,E.labels),u=M.tickPositions,x=z===u[0],c=z===u[u.length-1],o=(!R.step||R.step===1)&&M.tickInterval===1,n=u.info,d=C.label,f,S,T,m=this.parameters.category||(y?F(y[z],q[z],z):z);P&&A(m)&&(m=O(P.lin2log(m))),M.dateTime&&(n?f=(S=L.time.resolveDTLFormat(E.dateTimeLabelFormats[!E.grid&&n.higherRanks[z]||n.unitName])).main:A(m)&&(f=M.dateTime.getXDateFormat(m,E.dateTimeLabelFormats||{}))),C.isFirst=x,C.isLast=c;let N={axis:M,chart:L,dateTimeLabelFormat:f,isFirst:x,isLast:c,pos:z,tick:C,tickPositionInfo:n,value:m};J(this,"labelFormat",N);let ie=V=>R.formatter?R.formatter.call(V,V):R.format?(V.text=M.defaultLabelFormatter.call(V),t.format(R.format,V,L)):M.defaultLabelFormatter.call(V),D=ie.call(N,N),B=S&&S.list;B?C.shortenLabel=function(){for(T=0;T0&&L+x*c>z&&(m=Math.round((y-L)/Math.cos(u*l))):(S=L-x*c,T=L+(1-x)*c,Sz&&(d=z-C.x+d*x,f=-1),(d=Math.min(o,d))d||M.autoRotation&&(R.styles||{}).width)&&(m=d)),m&&(this.shortenLabel?this.shortenLabel():(n.width=Math.floor(m)+"px",(E.style||{}).textOverflow||(n.textOverflow="ellipsis"),R.css(n)))}moveLabel(C,M){let E=this,L=E.label,y=E.axis,P=!1,q;L&&L.textStr===C?(E.movedLabel=L,P=!0,delete E.label):j(y.ticks,function(z){P||z.isNew||z===E||!z.label||z.label.textStr!==C||(E.movedLabel=z.label,P=!0,z.labelPos=E.movedLabel.xy,delete z.label)}),!P&&(E.labelPos||L)&&(q=E.labelPos||L.xy,E.movedLabel=E.createLabel(C,M,q),E.movedLabel&&E.movedLabel.attr({opacity:0}))}render(C,M,E){let L=this.axis,y=L.horiz,P=this.pos,q=F(this.tickmarkOffset,L.tickmarkOffset),z=this.getPosition(y,P,q,M),R=z.x,u=z.y,x=L.pos,c=x+L.len,o=y?R:u;!L.chart.polar&&this.isNew&&(O(o)c)&&(E=0);let n=F(E,this.label&&this.label.newOpacity,1);E=F(E,1),this.isActive=!0,this.renderGridLine(M,E),this.renderMark(z,E),this.renderLabel(z,M,n,C),this.isNew=!1,J(this,"afterRender")}renderGridLine(C,M){let E=this.axis,L=E.options,y={},P=this.pos,q=this.type,z=F(this.tickmarkOffset,E.tickmarkOffset),R=E.chart.renderer,u=this.gridLine,x,c=L.gridLineWidth,o=L.gridLineColor,n=L.gridLineDashStyle;this.type==="minor"&&(c=L.minorGridLineWidth,o=L.minorGridLineColor,n=L.minorGridLineDashStyle),u||(E.chart.styledMode||(y.stroke=o,y["stroke-width"]=c||0,y.dashstyle=n),q||(y.zIndex=1),C&&(M=0),this.gridLine=u=R.path().attr(y).addClass("highcharts-"+(q?q+"-":"")+"grid-line").add(E.gridGroup)),u&&(x=E.getPlotLinePath({value:P+z,lineWidth:u.strokeWidth(),force:"pass",old:C,acrossPanes:!1}))&&u[C||this.isNew?"attr":"animate"]({d:x,opacity:M})}renderMark(C,M){let E=this.axis,L=E.options,y=E.chart.renderer,P=this.type,q=E.tickSize(P?P+"Tick":"tick"),z=C.x,R=C.y,u=F(L[P!=="minor"?"tickWidth":"minorTickWidth"],!P&&E.isXAxis?1:0),x=L[P!=="minor"?"tickColor":"minorTickColor"],c=this.mark,o=!c;q&&(E.opposite&&(q[0]=-q[0]),c||(this.mark=c=y.path().addClass("highcharts-"+(P?P+"-":"")+"tick").add(E.axisGroup),E.chart.styledMode||c.attr({stroke:x,"stroke-width":u})),c[o?"attr":"animate"]({d:this.getMarkPath(z,R,q[0],c.strokeWidth(),E.horiz,y),opacity:M}))}renderLabel(C,M,E,L){let y=this.axis,P=y.horiz,q=y.options,z=this.label,R=q.labels,u=R.step,x=F(this.tickmarkOffset,y.tickmarkOffset),c=C.x,o=C.y,n=!0;z&&A(c)&&(z.xy=C=this.getLabelPosition(c,o,z,P,R,x,L,u),(!this.isFirst||this.isLast||q.showFirstLabel)&&(!this.isLast||this.isFirst||q.showLastLabel)?!P||R.step||R.rotation||M||E===0||this.handleOverflow(C):n=!1,u&&L%u&&(n=!1),n&&A(C.y)?(C.opacity=E,z[this.isNewLabel?"attr":"animate"](C).show(!0),this.isNewLabel=!1):(z.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let C=this.label,M=this.axis;C&&!this.isNew&&(C.animate({opacity:0},void 0,C.destroy),delete this.label),M.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),e(s,"Core/Axis/Axis.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Axis/AxisDefaults.js"],s["Core/Color/Color.js"],s["Core/Defaults.js"],s["Core/Foundation.js"],s["Core/Globals.js"],s["Core/Axis/Tick.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O,te,G){let{animObject:X}=t,{xAxis:J,yAxis:A}=r,{defaultOptions:$}=l,{registerEventOptions:j}=_,{deg2rad:F}=O,{arrayMax:C,arrayMin:M,clamp:E,correctFloat:L,defined:y,destroyObjectProperties:P,erase:q,error:z,extend:R,fireEvent:u,getClosestDistance:x,insertItem:c,isArray:o,isNumber:n,isString:d,merge:f,normalizeTickInterval:S,objectEach:T,pick:m,relativeLength:N,removeEvent:ie,splat:D,syncTimeout:B}=G,V=(re,p)=>S(p,void 0,void 0,m(re.options.allowDecimals,p<.5||re.tickAmount!==void 0),!!re.tickAmount);R($,{xAxis:J,yAxis:f(J,A)});class Z{constructor(p,g,v){this.init(p,g,v)}init(p,g,v=this.coll){let H=v==="xAxis",h=this.isZAxis||(p.inverted?!H:H);this.chart=p,this.horiz=h,this.isXAxis=H,this.coll=v,u(this,"init",{userOptions:g}),this.opposite=m(g.opposite,this.opposite),this.side=m(g.side,this.side,h?this.opposite?0:2:this.opposite?1:3),this.setOptions(g);let w=this.options,b=w.labels;this.type??(this.type=w.type||"linear"),this.uniqueNames??(this.uniqueNames=w.uniqueNames??!0),u(this,"afterSetType"),this.userOptions=g,this.minPixelPadding=0,this.reversed=m(w.reversed,this.reversed),this.visible=w.visible,this.zoomEnabled=w.zoomEnabled,this.hasNames=this.type==="category"||w.categories===!0,this.categories=o(w.categories)&&w.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=y(w.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=w.minRange||w.maxZoom,this.range=w.range,this.offset=w.offset||0,this.max=void 0,this.min=void 0;let I=m(w.crosshair,D(p.options.tooltip.crosshairs)[H?0:1]);this.crosshair=I===!0?{}:I,p.axes.indexOf(this)===-1&&(H?p.axes.splice(p.xAxis.length,0,this):p.axes.push(this),c(this,p[this.coll])),p.orderItems(this.coll),this.series=this.series||[],p.inverted&&!this.isZAxis&&H&&!y(this.reversed)&&(this.reversed=!0),this.labelRotation=n(b.rotation)?b.rotation:void 0,j(this,w),u(this,"afterInit")}setOptions(p){let g=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=f(g,$[this.coll],p),u(this,"afterSetOptions",{userOptions:p})}defaultLabelFormatter(){let p=this.axis,{numberFormatter:g}=this.chart,v=n(this.value)?this.value:NaN,H=p.chart.time,h=p.categories,w=this.dateTimeLabelFormat,b=$.lang,I=b.numericSymbols,k=b.numericSymbolMagnitude||1e3,W=p.logarithmic?Math.abs(v):p.tickInterval,ee=I&&I.length,se,ne;if(h)ne=`${this.value}`;else if(w)ne=H.dateFormat(w,v);else if(ee&&I&&W>=1e3)for(;ee--&&ne===void 0;)W>=(se=Math.pow(k,ee+1))&&10*v%se==0&&I[ee]!==null&&v!==0&&(ne=g(v/se,-1)+I[ee]);return ne===void 0&&(ne=Math.abs(v)>=1e4?g(v,-1):g(v,-1,void 0,"")),ne}getSeriesExtremes(){let p,g=this;u(this,"getSeriesExtremes",null,function(){g.hasVisibleSeries=!1,g.dataMin=g.dataMax=g.threshold=void 0,g.softThreshold=!g.isXAxis,g.series.forEach(v=>{if(v.reserveSpace()){let H=v.options,h,w=H.threshold,b,I;if(g.hasVisibleSeries=!0,g.positiveValuesOnly&&0>=(w||0)&&(w=void 0),g.isXAxis)(h=v.xData)&&h.length&&(h=g.logarithmic?h.filter(k=>k>0):h,b=(p=v.getXExtremes(h)).min,I=p.max,n(b)||b instanceof Date||(h=h.filter(n),b=(p=v.getXExtremes(h)).min,I=p.max),h.length&&(g.dataMin=Math.min(m(g.dataMin,b),b),g.dataMax=Math.max(m(g.dataMax,I),I)));else{let k=v.applyExtremes();n(k.dataMin)&&(b=k.dataMin,g.dataMin=Math.min(m(g.dataMin,b),b)),n(k.dataMax)&&(I=k.dataMax,g.dataMax=Math.max(m(g.dataMax,I),I)),y(w)&&(g.threshold=w),(!H.softThreshold||g.positiveValuesOnly)&&(g.softThreshold=!1)}}})}),u(this,"afterGetSeriesExtremes")}translate(p,g,v,H,h,w){let b=this.linkedParent||this,I=H&&b.old?b.old.min:b.min;if(!n(I))return NaN;let k=b.minPixelPadding,W=(b.isOrdinal||b.brokenAxis?.hasBreaks||b.logarithmic&&h)&&b.lin2val,ee=1,se=0,ne=H&&b.old?b.old.transA:b.transA,ce=0;return ne||(ne=b.transA),v&&(ee*=-1,se=b.len),b.reversed&&(ee*=-1,se-=ee*(b.sector||b.len)),g?(ce=(p=p*ee+se-k)/ne+I,W&&(ce=b.lin2val(ce))):(W&&(p=b.val2lin(p)),ce=ee*(p-I)*ne+se+ee*k+(n(w)?ne*w:0),b.isRadial||(ce=L(ce))),ce}toPixels(p,g){return this.translate(p,!1,!this.horiz,void 0,!0)+(g?0:this.pos)}toValue(p,g){return this.translate(p-(g?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(p){let g=this,v=g.chart,H=g.left,h=g.top,w=p.old,b=p.value,I=p.lineWidth,k=w&&v.oldChartHeight||v.chartHeight,W=w&&v.oldChartWidth||v.chartWidth,ee=g.transB,se=p.translatedValue,ne=p.force,ce,de,Y,U,K;function Q(ae,he,le){return ne!=="pass"&&(aele)&&(ne?ae=E(ae,he,le):K=!0),ae}let oe={value:b,lineWidth:I,old:w,force:ne,acrossPanes:p.acrossPanes,translatedValue:se};return u(this,"getPlotLinePath",oe,function(ae){ce=Y=(se=E(se=m(se,g.translate(b,void 0,void 0,w)),-1e9,1e9))+ee,de=U=k-se-ee,n(se)?g.horiz?(de=h,U=k-g.bottom+(g.options.isInternal?0:v.scrollablePixelsY||0),ce=Y=Q(ce,H,H+g.width)):(ce=H,Y=W-g.right+(v.scrollablePixelsX||0),de=U=Q(de,h,h+g.height)):(K=!0,ne=!1),ae.path=K&&!ne?void 0:v.renderer.crispLine([["M",ce,de],["L",Y,U]],I||1)}),oe.path}getLinearTickPositions(p,g,v){let H,h,w,b=L(Math.floor(g/p)*p),I=L(Math.ceil(v/p)*p),k=[];if(L(b+p)===b&&(w=20),this.single)return[g];for(H=b;H<=I&&(k.push(H),(H=L(H+p,w))!==h);)h=H;return k}getMinorTickInterval(){let{minorTicks:p,minorTickInterval:g}=this.options;return p===!0?m(g,"auto"):p!==!1?g:void 0}getMinorTickPositions(){let p=this.options,g=this.tickPositions,v=this.minorTickInterval,H=this.pointRangePadding||0,h=(this.min||0)-H,w=(this.max||0)+H,b=w-h,I=[],k;if(b&&b/v(W.xIncrement?W.xData?.slice(0,2):W.xData)||[]))||0),this.dataMax-this.dataMin)),n(v)&&n(H)&&n(h)&&v-H=h,w=(h-v+H)/2,I=[H-w,m(p.min,H-w)],b&&(I[2]=g?g.log2lin(this.dataMin):this.dataMin),k=[(H=C(I))+h,m(p.max,H+h)],b&&(k[2]=g?g.log2lin(this.dataMax):this.dataMax),(v=M(k))-HH-h),p=x([v]))}return p&&g?Math.min(p,g):p||g}nameToX(p){let g=o(this.options.categories),v=g?this.categories:this.names,H=p.options.x,h;return p.series.requireSorting=!1,y(H)||(H=this.uniqueNames&&v?g?v.indexOf(p.name):m(v.keys[p.name],-1):p.series.autoIncrement()),H===-1?!g&&v&&(h=v.length):h=H,h!==void 0?(this.names[h]=p.name,this.names.keys[p.name]=h):p.x&&(h=p.x),h}updateNames(){let p=this,g=this.names;g.length>0&&(Object.keys(g.keys).forEach(function(v){delete g.keys[v]}),g.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(v=>{v.xIncrement=null,(!v.points||v.isDirtyData)&&(p.max=Math.max(p.max,v.xData.length-1),v.processData(),v.generatePoints()),v.data.forEach(function(H,h){let w;H?.options&&H.name!==void 0&&(w=p.nameToX(H))!==void 0&&w!==H.x&&(H.x=w,v.xData[h]=w)})}))}setAxisTranslation(){let p=this,g=p.max-p.min,v=p.linkedParent,H=!!p.categories,h=p.isXAxis,w=p.axisPointRange||0,b,I=0,k=0,W,ee=p.transA;(h||H||w)&&(b=p.getClosest(),v?(I=v.minPointOffset,k=v.pointRangePadding):p.series.forEach(function(se){let ne=H?1:h?m(se.options.pointRange,b,0):p.axisPointRange||0,ce=se.options.pointPlacement;if(w=Math.max(w,ne),!p.single||H){let de=se.is("xrange")?!h:h;I=Math.max(I,de&&d(ce)?0:ne/2),k=Math.max(k,de&&ce==="on"?0:ne)}}),W=p.ordinal&&p.ordinal.slope&&b?p.ordinal.slope/b:1,p.minPointOffset=I*=W,p.pointRangePadding=k*=W,p.pointRange=Math.min(w,p.single&&H?1:g),h&&b&&(p.closestPointRange=b)),p.translationSlope=p.transA=ee=p.staticScale||p.len/(g+k||1),p.transB=p.horiz?p.left:p.bottom,p.minPixelPadding=ee*I,u(this,"afterSetAxisTranslation")}minFromRange(){let{max:p,min:g}=this;return n(p)&&n(g)&&p-g||void 0}setTickInterval(p){let{categories:g,chart:v,dataMax:H,dataMin:h,dateTime:w,isXAxis:b,logarithmic:I,options:k,softThreshold:W}=this,ee=n(this.threshold)?this.threshold:void 0,se=this.minRange||0,{ceiling:ne,floor:ce,linkedTo:de,softMax:Y,softMin:U}=k,K=n(de)&&v[this.coll]?.[de],Q=k.tickPixelInterval,oe=k.maxPadding,ae=k.minPadding,he=0,le,ue=n(k.tickInterval)&&k.tickInterval>=0?k.tickInterval:void 0,pe,fe,me,ge;if(w||g||K||this.getTickAmount(),me=m(this.userMin,k.min),ge=m(this.userMax,k.max),K?(this.linkedParent=K,le=K.getExtremes(),this.min=m(le.min,le.dataMin),this.max=m(le.max,le.dataMax),this.type!==K.type&&z(11,!0,v)):(W&&y(ee)&&n(H)&&n(h)&&(h>=ee?(pe=ee,ae=0):H<=ee&&(fe=ee,oe=0)),this.min=m(me,pe,h),this.max=m(ge,fe,H)),n(this.max)&&n(this.min)&&(I&&(this.positiveValuesOnly&&!p&&0>=Math.min(this.min,m(h,this.min))&&z(10,!0,v),this.min=L(I.log2lin(this.min),16),this.max=L(I.log2lin(this.max),16)),this.range&&n(h)&&(this.userMin=this.min=me=Math.max(h,this.minFromRange()||0),this.userMax=ge=this.max,this.range=void 0)),u(this,"foundExtremes"),this.adjustForMinRange(),n(this.min)&&n(this.max)){if(!n(this.userMin)&&n(U)&&Uthis.max&&(this.max=ge=Y),g||this.axisPointRange||this.stacking?.usePercentage||K||!(he=this.max-this.min)||(!y(me)&&ae&&(this.min-=he*ae),y(ge)||!oe||(this.max+=he*oe)),!n(this.userMin)&&n(ce)&&(this.min=Math.max(this.min,ce)),!n(this.userMax)&&n(ne)&&(this.max=Math.min(this.max,ne)),W&&n(h)&&n(H)){let ve=ee||0;!y(me)&&this.min=ve?this.min=k.minRange?Math.min(ve,this.max-se):ve:!y(ge)&&this.max>ve&&H<=ve&&(this.max=k.minRange?Math.max(ve,this.min+se):ve)}!v.polar&&this.min>this.max&&(y(k.min)?this.max=this.min:y(k.max)&&(this.min=this.max)),he=this.max-this.min}if(this.min!==this.max&&n(this.min)&&n(this.max)?K&&!ue&&Q===K.options.tickPixelInterval?this.tickInterval=ue=K.tickInterval:this.tickInterval=m(ue,this.tickAmount?he/Math.max(this.tickAmount-1,1):void 0,g?1:he*Q/Math.max(this.len,Q)):this.tickInterval=1,b&&!p){let ve=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(ye){ye.forceCrop=ye.forceCropping?.(),ye.processData(ve)}),u(this,"postProcessData",{hasExtremesChanged:ve})}this.setAxisTranslation(),u(this,"initialAxisTranslation"),this.pointRange&&!ue&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let be=m(k.minTickInterval,w&&!this.series.some(ve=>ve.noSharedTooltip)?this.closestPointRange:0);!ue&&this.tickIntervalMath.max(2*this.len,200))I=[this.min,this.max],z(19,!1,this.chart);else if(this.dateTime)I=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,p.units),this.min,this.max,p.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)I=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let W=this.tickInterval,ee=W;for(;ee<=2*W&&(I=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&I.length>this.tickAmount);)this.tickInterval=V(this,ee*=1.1)}I.length>this.len&&(I=[I[0],I[I.length-1]])[0]===I[1]&&(I.length=1),v&&(this.tickPositions=I,(k=v.apply(this,[this.min,this.max]))&&(I=k))}this.tickPositions=I,this.minorTickInterval=H==="auto"&&this.tickInterval?this.tickInterval/p.minorTicksPerMajor:H,this.paddedTicks=I.slice(0),this.trimTicks(I,w,b),!this.isLinked&&n(this.min)&&n(this.max)&&(this.single&&I.length<2&&!this.categories&&!this.series.some(W=>W.is("heatmap")&&W.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),g||k||this.adjustTickAmount()),u(this,"afterSetTickPositions")}trimTicks(p,g,v){let H=p[0],h=p[p.length-1],w=!this.isOrdinal&&this.minPointOffset||0;if(u(this,"trimTicks"),!this.isLinked){if(g&&H!==-1/0)this.min=H;else for(;this.min-w>p[0];)p.shift();if(v)this.max=h;else for(;this.max+w{let{horiz:se,options:ne}=ee;return[se?ne.left:ne.top,ne.width,ne.height,ne.pane].join(",")},W=k(this);v[this.coll].forEach(function(ee){let{series:se}=ee;se.length&&se.some(ne=>ne.visible)&&ee!==g&&k(ee)===W&&(p=!0,H.push(ee))})}if(p&&b){H.forEach(W=>{let ee=W.getThresholdAlignment(g);n(ee)&&I.push(ee)});let k=I.length>1?I.reduce((W,ee)=>W+=ee,0)/I.length:void 0;H.forEach(W=>{W.thresholdAlignment=k})}return p}getThresholdAlignment(p){if((!n(this.dataMin)||this!==p&&this.series.some(g=>g.isDirty||g.isDirtyData))&&this.getSeriesExtremes(),n(this.threshold)){let g=E((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(g=1-g),g}}getTickAmount(){let p=this.options,g=p.tickPixelInterval,v=p.tickAmount;y(p.tickInterval)||v||!(this.lenw.push(L(w[w.length-1]+ne)),Y=()=>w.unshift(L(w[0]-ne));if(n(I)&&(ce=I<.5?Math.ceil(I*(b-1)):Math.floor(I*(b-1)),h.reversed&&(ce=b-1-ce)),p.hasData()&&n(H)&&n(v)){let U=()=>{p.transA*=(k-1)/(b-1),p.min=h.startOnTick?w[0]:Math.min(H,w[0]),p.max=h.endOnTick?w[w.length-1]:Math.max(v,w[w.length-1])};if(n(ce)&&n(p.threshold)){for(;w[ce]!==W||w.length!==b||w[0]>H||w[w.length-1]p.threshold?Y():de();if(ne>8*p.tickInterval)break;ne*=2}U()}else if(k0&&se{v=v||w.isDirtyData||w.isDirty,H=H||w.xAxis&&w.xAxis.isDirty||!1}),this.setAxisSize();let h=this.len!==(this.old&&this.old.len);h||v||H||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(g&&p==="yAxis"&&g.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),g&&p==="xAxis"&&g.buildStacks(),this.isDirty||(this.isDirty=h||this.min!==this.old?.min||this.max!==this.old?.max)):g&&g.cleanStacks(),v&&delete this.allExtremes,u(this,"afterSetScale")}setExtremes(p,g,v=!0,H,h){this.series.forEach(w=>{delete w.kdTree}),u(this,"setExtremes",h=R(h,{min:p,max:g}),w=>{this.userMin=w.min,this.userMax=w.max,this.eventArgs=w,v&&this.chart.redraw(H)})}setAxisSize(){let p=this.chart,g=this.options,v=g.offsets||[0,0,0,0],H=this.horiz,h=this.width=Math.round(N(m(g.width,p.plotWidth-v[3]+v[1]),p.plotWidth)),w=this.height=Math.round(N(m(g.height,p.plotHeight-v[0]+v[2]),p.plotHeight)),b=this.top=Math.round(N(m(g.top,p.plotTop+v[0]),p.plotHeight,p.plotTop)),I=this.left=Math.round(N(m(g.left,p.plotLeft+v[3]),p.plotWidth,p.plotLeft));this.bottom=p.chartHeight-w-b,this.right=p.chartWidth-h-I,this.len=Math.max(H?h:w,0),this.pos=H?I:b}getExtremes(){let p=this.logarithmic;return{min:p?L(p.lin2log(this.min)):this.min,max:p?L(p.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(p){let g=this.logarithmic,v=g?g.lin2log(this.min):this.min,H=g?g.lin2log(this.max):this.max;return p===null||p===-1/0?p=v:p===1/0?p=H:v>p?p=v:H15&&g<165?H.align="right":g>195&&g<345&&(H.align="left")}),v.align}tickSize(p){let g=this.options,v=m(g[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),H=g[p==="tick"?"tickLength":"minorTickLength"],h;v&&H&&(g[p+"Position"]==="inside"&&(H=-H),h=[H,v]);let w={tickSize:h};return u(this,"afterTickSize",w),w.tickSize}labelMetrics(){let p=this.chart.renderer,g=this.ticks,v=g[Object.keys(g)[0]]||{};return this.chart.renderer.fontMetrics(v.label||v.movedLabel||p.box)}unsquish(){let p=this.options.labels,g=p.padding||0,v=this.horiz,H=this.tickInterval,h=this.len/(((this.categories?1:0)+this.max-this.min)/H),w=p.rotation,b=L(.8*this.labelMetrics().h),I=Math.max(this.max-this.min,0),k=function(ce){let de=(ce+2*g)/(h||1);return(de=de>1?Math.ceil(de):1)*H>I&&ce!==1/0&&h!==1/0&&I&&(de=Math.ceil(I/H)),L(de*H)},W=H,ee,se=Number.MAX_VALUE,ne;if(v){if(!p.staggerLines&&(n(w)?ne=[w]:h=-90&&Y<=90)&&(de=(ce=k(Math.abs(b/Math.sin(F*Y))))+Math.abs(Y/360))de&&(de=Q.label.textPxLength)}),this.maxLabelLength=de,this.autoRotation)de>k&&de>ee.h?W.rotation=this.labelRotation:this.labelRotation=0;else if(I&&(ne=k,!se))for(ce="clip",U=v.length;!b&&U--;)(Y=H[v[U]].label)&&(Y.styles.textOverflow==="ellipsis"?Y.css({textOverflow:"clip"}):Y.textPxLength>I&&Y.css({width:I+"px"}),Y.getBBox().height>this.len/v.length-(ee.h-ee.f)&&(Y.specificTextOverflow="ellipsis"));W.rotation&&(ne=de>.5*p.chartHeight?.33*p.chartHeight:de,se||(ce="ellipsis")),this.labelAlign=h.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(W.align=this.labelAlign),v.forEach(function(K){let Q=H[K],oe=Q&&Q.label,ae=w.width,he={};oe&&(oe.attr(W),Q.shortenLabel?Q.shortenLabel():ne&&!ae&&w.whiteSpace!=="nowrap"&&(neh.g(b).attr({zIndex:k}).addClass(`highcharts-${v.toLowerCase()}${I} `+(this.isRadial?`highcharts-radial-axis${I} `:"")+(H.className||"")).add(p);this.axisGroup||(this.gridGroup=w("grid","-grid",H.gridZIndex),this.axisGroup=w("axis","",H.zIndex),this.labelGroup=w("axis-labels","-labels",H.labels.zIndex))}getOffset(){let p=this,{chart:g,horiz:v,options:H,side:h,ticks:w,tickPositions:b,coll:I}=p,k=g.inverted&&!p.isZAxis?[1,0,3,2][h]:h,W=p.hasData(),ee=H.title,se=H.labels,ne=n(H.crossing),ce=g.axisOffset,de=g.clipOffset,Y=[-1,1,1,-1][h],U,K=0,Q,oe=0,ae=0,he,le;if(p.showAxis=U=W||H.showEmpty,p.staggerLines=p.horiz&&se.staggerLines||void 0,p.createGroups(),W||p.isLinked?(b.forEach(function(ue){p.generateTick(ue)}),p.renderUnsquish(),p.reserveSpaceDefault=h===0||h===2||{1:"left",3:"right"}[h]===p.labelAlign,m(se.reserveSpace,!ne&&null,p.labelAlign==="center"||null,p.reserveSpaceDefault)&&b.forEach(function(ue){ae=Math.max(w[ue].getLabelSize(),ae)}),p.staggerLines&&(ae*=p.staggerLines),p.labelOffset=ae*(p.opposite?-1:1)):T(w,function(ue,pe){ue.destroy(),delete w[pe]}),ee?.text&&ee.enabled!==!1&&(p.addTitle(U),U&&!ne&&ee.reserveSpace!==!1&&(p.titleOffset=K=p.axisTitle.getBBox()[v?"height":"width"],oe=y(Q=ee.offset)?0:m(ee.margin,v?5:10))),p.renderLine(),p.offset=Y*m(H.offset,ce[h]?ce[h]+(H.margin||0):0),p.tickRotCorr=p.tickRotCorr||{x:0,y:0},le=h===0?-p.labelMetrics().h:h===2?p.tickRotCorr.y:0,he=Math.abs(ae)+oe,ae&&(he-=le,he+=Y*(v?m(se.y,p.tickRotCorr.y+Y*se.distance):m(se.x,Y*se.distance))),p.axisTitleMargin=m(Q,he),p.getMaxLabelDimensions&&(p.maxLabelDimensions=p.getMaxLabelDimensions(w,b)),I!=="colorAxis"&&de){let ue=this.tickSize("tick");ce[h]=Math.max(ce[h],(p.axisTitleMargin||0)+K+Y*p.offset,he,b&&b.length&&ue?ue[0]+Y*p.offset:0);let pe=!p.axisLine||H.offset?0:p.axisLine.strokeWidth()/2;de[k]=Math.max(de[k],pe)}u(this,"afterGetOffset")}getLinePath(p){let g=this.chart,v=this.opposite,H=this.offset,h=this.horiz,w=this.left+(v?this.width:0)+H,b=g.chartHeight-this.bottom-(v?this.height:0)+H;return v&&(p*=-1),g.renderer.crispLine([["M",h?this.left:w,h?b:this.top],["L",h?g.chartWidth-this.right:w,h?b:g.chartHeight-this.bottom]],p)}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(p){let g=this.horiz,v=this.left,H=this.top,h=this.len,w=this.options.title,b=g?v:H,I=this.opposite,k=this.offset,W=w.x,ee=w.y,se=this.chart.renderer.fontMetrics(p),ne=p?Math.max(p.getBBox(!1,0).height-se.h-1,0):0,ce={low:b+(g?0:h),middle:b+h/2,high:b+(g?h:0)}[w.align],de=(g?H+this.height:v)+(g?1:-1)*(I?-1:1)*(this.axisTitleMargin||0)+[-ne,ne,se.f,-ne][this.side],Y={x:g?ce+W:de+(I?this.width:0)+k+W,y:g?de+ee-(I?this.height:0)+k:ce+ee};return u(this,"afterGetTitlePosition",{titlePosition:Y}),Y}renderMinorTick(p,g){let v=this.minorTicks;v[p]||(v[p]=new te(this,p,"minor")),g&&v[p].isNew&&v[p].render(null,!0),v[p].render(null,!1,1)}renderTick(p,g,v){let H=this.isLinked,h=this.ticks;(!H||p>=this.min&&p<=this.max||this.grid&&this.grid.isColumn)&&(h[p]||(h[p]=new te(this,p)),v&&h[p].isNew&&h[p].render(g,!0,-1),h[p].render(g))}render(){let p,g,v=this,H=v.chart,h=v.logarithmic,w=H.renderer,b=v.options,I=v.isLinked,k=v.tickPositions,W=v.axisTitle,ee=v.ticks,se=v.minorTicks,ne=v.alternateBands,ce=b.stackLabels,de=b.alternateGridColor,Y=b.crossing,U=v.tickmarkOffset,K=v.axisLine,Q=v.showAxis,oe=X(w.globalAnimation);if(v.labelEdge.length=0,v.overlap=!1,[ee,se,ne].forEach(function(ae){T(ae,function(he){he.isActive=!1})}),n(Y)){let ae=this.isXAxis?H.yAxis[0]:H.xAxis[0],he=[1,-1,-1,1][this.side];if(ae){let le=ae.toPixels(Y,!0);v.horiz&&(le=ae.len-le),v.offset=he*le}}if(v.hasData()||I){let ae=v.chart.hasRendered&&v.old&&n(v.old.min);v.minorTickInterval&&!v.categories&&v.getMinorTickPositions().forEach(function(he){v.renderMinorTick(he,ae)}),k.length&&(k.forEach(function(he,le){v.renderTick(he,le,ae)}),U&&(v.min===0||v.single)&&(ee[-1]||(ee[-1]=new te(v,-1,null,!0)),ee[-1].render(-1))),de&&k.forEach(function(he,le){g=k[le+1]!==void 0?k[le+1]+U:v.max-U,le%2==0&&he=.5)A=Math.round(A),L=C.getLinearTickPositions(A,$,j);else if(A>=.08){let y,P,q,z,R,u,x,c=Math.floor($);for(y=A>.3?[1,2,4]:A>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],P=c;P$&&(!F||u<=j)&&u!==void 0&&L.push(u),u>j&&(x=!0),u=R}else{let y=this.lin2log($),P=this.lin2log(j),q=F?C.getMinorTickInterval():E.tickInterval,z=E.tickPixelInterval/(F?5:1),R=F?M/C.tickPositions.length:M;A=l(A=_(q==="auto"?null:q,this.minorAutoInterval,(P-y)*z/(R||1))),L=C.getLinearTickPositions(A,y,P).map(this.log2lin),F||(this.minorAutoInterval=A/5)}return F||(C.tickInterval=A),L}lin2log(A){return Math.pow(10,A)}log2lin(A){return Math.log(A)/Math.LN10}}O.Additions=X}(r||(r={})),r}),e(s,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[s["Core/Utilities.js"]],function(t){var r;let{erase:a,extend:l,isNumber:_}=t;return function(O){let te;function G(C){return this.addPlotBandOrLine(C,"plotBands")}function X(C,M){let E=this.userOptions,L=new te(this,C);if(this.visible&&(L=L.render()),L){if(this._addedPlotLB||(this._addedPlotLB=!0,(E.plotLines||[]).concat(E.plotBands||[]).forEach(y=>{this.addPlotBandOrLine(y)})),M){let y=E[M]||[];y.push(C),E[M]=y}this.plotLinesAndBands.push(L)}return L}function J(C){return this.addPlotBandOrLine(C,"plotLines")}function A(C,M,E){E=E||this.options;let L=this.getPlotLinePath({value:M,force:!0,acrossPanes:E.acrossPanes}),y=[],P=this.horiz,q=!_(this.min)||!_(this.max)||Cthis.max&&M>this.max,z=this.getPlotLinePath({value:C,force:!0,acrossPanes:E.acrossPanes}),R,u=1,x;if(z&&L)for(q&&(x=z.toString()===L.toString(),u=0),R=0;R{let E=[];for(let L of this.axes)for(let{label:y,options:P}of L.plotLinesAndBands)y&&!P?.label?.allowOverlap&&E.push(y);return E})}),t.compose(j,M)}constructor(C,M){this.axis=C,this.options=M,this.id=M.id}render(){X(this,"render");let{axis:C,options:M}=this,{horiz:E,logarithmic:L}=C,{color:y,events:P,zIndex:q=0}=M,z={},R=C.chart.renderer,u=M.to,x=M.from,c=M.value,o=M.borderWidth,n=M.label,{label:d,svgElem:f}=this,S=[],T,m=O(x)&&O(u),N=O(c),ie=!f,D={class:"highcharts-plot-"+(m?"band ":"line ")+(M.className||"")},B=m?"bands":"lines";if(!C.chart.styledMode&&(N?(D.stroke=y||"#999999",D["stroke-width"]=$(M.width,1),M.dashStyle&&(D.dashstyle=M.dashStyle)):m&&(D.fill=y||"#e6e9ff",o&&(D.stroke=M.borderColor,D["stroke-width"]=o))),z.zIndex=q,B+="-"+q,(T=C.plotLinesAndBandsGroups[B])||(C.plotLinesAndBandsGroups[B]=T=R.g("plot-"+B).attr(z).add()),f||(this.svgElem=f=R.path().attr(D).add(T)),O(c))S=C.getPlotLinePath({value:L?.log2lin(c)??c,lineWidth:f.strokeWidth(),acrossPanes:M.acrossPanes});else{if(!(O(x)&&O(u)))return;S=C.getPlotBandPath(L?.log2lin(x)??x,L?.log2lin(u)??u,M)}return!this.eventsAdded&&P&&(A(P,(V,Z)=>{f?.on(Z,re=>{P[Z].apply(this,[re])})}),this.eventsAdded=!0),(ie||!f.d)&&S?.length?f.attr({d:S}):f&&(S?(f.show(),f.animate({d:S})):f.d&&(f.hide(),d&&(this.label=d=d.destroy()))),n&&(O(n.text)||O(n.formatter))&&S?.length&&C.width>0&&C.height>0&&!S.isFlat?(n=J(we({align:E&&m?"center":void 0,x:E?!m&&4:10,verticalAlign:!E&&m?"middle":void 0,y:E?m?16:10:m?6:-4,rotation:E&&!m?90:0},m?{inside:!0}:{}),n),this.renderLabel(n,S,m,q)):d&&d.hide(),this}renderLabel(C,M,E,L){let y=this.axis,P=y.chart.renderer,q=C.inside,z=this.label;z||(this.label=z=P.text(this.getLabelText(C),0,0,C.useHTML).attr({align:C.textAlign||C.align,rotation:C.rotation,class:"highcharts-plot-"+(E?"band":"line")+"-label "+(C.className||""),zIndex:L}),y.chart.styledMode||z.css(J({fontSize:"0.8em",textOverflow:E&&!q?"":"ellipsis"},C.style)),z.add());let R=M.xBounds||[M[0][1],M[1][1],E?M[2][1]:M[0][1]],u=M.yBounds||[M[0][2],M[1][2],E?M[2][2]:M[0][2]],x=_(R),c=_(u),o=l(R)-x;z.align(C,!1,{x,y:c,width:o,height:l(u)-c}),(!z.alignValue||z.alignValue==="left"||O(q))&&z.css({width:(C.style?.width||(E&&q?o:z.rotation===90?y.height-(z.alignAttr.y-y.top):(C.clip?y.width:y.chart.chartWidth)-(z.alignAttr.x-y.left)))+"px"}),z.show(!0)}getLabelText(C){return O(C.formatter)?C.formatter.call(this):C.text}destroy(){G(this.axis.plotLinesAndBands,this),delete this.axis,te(this)}}return j}),e(s,"Core/Tooltip.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Templating.js"],s["Core/Globals.js"],s["Core/Renderer/RendererUtilities.js"],s["Core/Renderer/RendererRegistry.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O){var te;let{animObject:G}=t,{format:X}=r,{composed:J,doc:A,isSafari:$}=a,{distribute:j}=l,{addEvent:F,clamp:C,css:M,discardElement:E,extend:L,fireEvent:y,isArray:P,isNumber:q,isString:z,merge:R,pick:u,pushUnique:x,splat:c,syncTimeout:o}=O;class n{constructor(f,S,T){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=f,this.init(f,S),this.pointer=T}bodyFormatter(f){return f.map(function(S){let T=S.series.tooltipOptions;return(T[(S.point.formatPrefix||"point")+"Formatter"]||S.point.tooltipFormatter).call(S.point,T[(S.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(f){this.chart.series.forEach(function(S){let T=S&&S.tt;T&&(!T.isActive||f?S.tt=T.destroy():T.isActive=!1)})}defaultFormatter(f){let S,T=this.points||c(this);return(S=(S=[f.tooltipFooterHeaderFormatter(T[0])]).concat(f.bodyFormatter(T))).push(f.tooltipFooterHeaderFormatter(T[0],!0)),S}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(),E(this.container)),O.clearTimeout(this.hideTimer)}getAnchor(f,S){let T,{chart:m,pointer:N}=this,ie=m.inverted,D=m.plotTop,B=m.plotLeft;if((f=c(f))[0].series&&f[0].series.yAxis&&!f[0].series.yAxis.options.reversedStacks&&(f=f.slice().reverse()),this.followPointer&&S)S.chartX===void 0&&(S=N.normalize(S)),T=[S.chartX-B,S.chartY-D];else if(f[0].tooltipPos)T=f[0].tooltipPos;else{let V=0,Z=0;f.forEach(function(re){let p=re.pos(!0);p&&(V+=p[0],Z+=p[1])}),V/=f.length,Z/=f.length,this.shared&&f.length>1&&S&&(ie?V=S.chartX:Z=S.chartY),T=[V-B,Z-D]}return T.map(Math.round)}getClassName(f,S,T){let m=this.options,N=f.series,ie=N.options;return[m.className,"highcharts-label",T&&"highcharts-tooltip-header",S?"highcharts-tooltip-box":"highcharts-tooltip",!T&&"highcharts-color-"+u(f.colorIndex,N.colorIndex),ie&&ie.className].filter(z).join(" ")}getLabel({anchorX:f,anchorY:S}={anchorX:0,anchorY:0}){let T=this,m=this.chart.styledMode,N=this.options,ie=this.split&&this.allowShared,D=this.container,B=this.chart.renderer;if(this.label){let V=!this.label.hasClass("highcharts-label");(!ie&&V||ie&&!V)&&this.destroy()}if(!this.label){if(this.outside){let V=this.chart.options.chart.style,Z=_.getRendererType();this.container=D=a.doc.createElement("div"),D.className="highcharts-tooltip-container",M(D,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(V&&V.zIndex||0)+3)}),this.renderer=B=new Z(D,0,0,V,void 0,void 0,B.styledMode)}if(ie?this.label=B.g("tooltip"):(this.label=B.label("",f,S,N.shape,void 0,void 0,N.useHTML,void 0,"tooltip").attr({padding:N.padding,r:N.borderRadius}),m||this.label.attr({fill:N.backgroundColor,"stroke-width":N.borderWidth||0}).css(N.style).css({pointerEvents:N.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),T.outside){let V=this.label;[V.xSetter,V.ySetter].forEach((Z,re)=>{V[re?"ySetter":"xSetter"]=p=>{Z.call(V,T.distance),V[re?"y":"x"]=p,D&&(D.style[re?"top":"left"]=`${p}px`)}})}this.label.attr({zIndex:8}).shadow(N.shadow).add()}return D&&!D.parentElement&&a.doc.body.appendChild(D),this.label}getPlayingField(){let{body:f,documentElement:S}=A,{chart:T,distance:m,outside:N}=this;return{width:N?Math.max(f.scrollWidth,S.scrollWidth,f.offsetWidth,S.offsetWidth,S.clientWidth)-2*m:T.chartWidth,height:N?Math.max(f.scrollHeight,S.scrollHeight,f.offsetHeight,S.offsetHeight,S.clientHeight):T.chartHeight}}getPosition(f,S,T){let{distance:m,chart:N,outside:ie,pointer:D}=this,{inverted:B,plotLeft:V,plotTop:Z,polar:re}=N,{plotX:p=0,plotY:g=0}=T,v={},H=B&&T.h||0,{height:h,width:w}=this.getPlayingField(),b=D.getChartPosition(),I=oe=>oe*b.scaleX,k=oe=>oe*b.scaleY,W=oe=>{let ae=oe==="x";return[oe,ae?w:h,ae?f:S].concat(ie?[ae?I(f):k(S),ae?b.left-m+I(p+V):b.top-m+k(g+Z),0,ae?w:h]:[ae?f:S,ae?p+V:g+Z,ae?V:Z,ae?V+N.plotWidth:Z+N.plotHeight])},ee=W("y"),se=W("x"),ne,ce=!!T.negative;!re&&N.hoverSeries?.yAxis?.reversed&&(ce=!ce);let de=!this.followPointer&&u(T.ttBelow,!re&&!B===ce),Y=function(oe,ae,he,le,ue,pe,fe){let me=ie?oe==="y"?k(m):I(m):m,ge=(he-le)/2,be=leae?Ae:Ae+H)}},U=function(oe,ae,he,le,ue){if(ueae-m)return!1;ueae-le/2?v[oe]=ae-le-2:v[oe]=ue-he/2},K=function(oe){[ee,se]=[se,ee],ne=oe},Q=()=>{Y.apply(0,ee)!==!1?U.apply(0,se)!==!1||ne||(K(!0),Q()):ne?v.x=v.y=0:(K(!0),Q())};return(B&&!re||this.len>1)&&K(),Q(),v}hide(f){let S=this;O.clearTimeout(this.hideTimer),f=u(f,this.options.hideDelay),this.isHidden||(this.hideTimer=o(function(){let T=S.getLabel();S.getLabel().animate({opacity:0},{duration:f&&150,complete:()=>{T.hide(),S.container&&S.container.remove()}}),S.isHidden=!0},f))}init(f,S){this.chart=f,this.options=S,this.crosshairs=[],this.isHidden=!0,this.split=S.split&&!f.inverted&&!f.polar,this.shared=S.shared||this.split,this.outside=u(S.outside,!!(f.scrollablePixelsX||f.scrollablePixelsY))}shouldStickOnContact(f){return!!(!this.followPointer&&this.options.stickOnContact&&(!f||this.pointer.inClass(f.target,"highcharts-tooltip")))}move(f,S,T,m){let N=this,ie=G(!N.isHidden&&N.options.animation),D=N.followPointer||(N.len||0)>1,B={x:f,y:S};D||(B.anchorX=T,B.anchorY=m),ie.step=()=>N.drawTracker(),N.getLabel().animate(B,ie)}refresh(f,S){let{chart:T,options:m,pointer:N,shared:ie}=this,D=c(f),B=D[0],V=[],Z=m.format,re=m.formatter||this.defaultFormatter,p=T.styledMode,g={},v=this.allowShared;if(!m.enabled||!B.series)return;O.clearTimeout(this.hideTimer),this.allowShared=!(!P(f)&&f.series&&f.series.noSharedTooltip),v=v&&!this.allowShared,this.followPointer=!this.split&&B.series.tooltipOptions.followPointer;let H=this.getAnchor(f,S),h=H[0],w=H[1];ie&&this.allowShared?(N.applyInactiveState(D),D.forEach(function(k){k.setState("hover"),V.push(k.getLabelConfig())}),(g=B.getLabelConfig()).points=V):g=B.getLabelConfig(),this.len=V.length;let b=z(Z)?X(Z,g,T):re.call(g,this),I=B.series;if(this.distance=u(I.tooltipOptions.distance,16),b===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(b,D);else{let k=h,W=w;if(S&&N.isDirectTouch&&(k=S.chartX-T.plotLeft,W=S.chartY-T.plotTop),T.polar||I.options.clip===!1||D.some(ee=>N.isDirectTouch||ee.series.shouldShowTooltip(k,W))){let ee=this.getLabel(v&&this.tt||{});(!m.style.width||p)&&ee.css({width:(this.outside?this.getPlayingField():T.spacingBox).width+"px"}),ee.attr({class:this.getClassName(B),text:b&&b.join?b.join(""):b}),this.outside&&ee.attr({x:C(ee.x||0,0,this.getPlayingField().width-(ee.width||0))}),p||ee.attr({stroke:m.borderColor||B.color||I.color||"#666666"}),this.updatePosition({plotX:h,plotY:w,negative:B.negative,ttBelow:B.ttBelow,h:H[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}y(this,"refresh")}renderSplit(f,S){let T=this,{chart:m,chart:{chartWidth:N,chartHeight:ie,plotHeight:D,plotLeft:B,plotTop:V,scrollablePixelsY:Z=0,scrollablePixelsX:re,styledMode:p},distance:g,options:v,options:{positioner:H},pointer:h}=T,{scrollLeft:w=0,scrollTop:b=0}=m.scrollablePlotArea?.scrollingContainer||{},I=T.outside&&typeof re!="number"?A.documentElement.getBoundingClientRect():{left:w,right:w+N,top:b,bottom:b+ie},k=T.getLabel(),W=this.renderer||m.renderer,ee=!!(m.xAxis[0]&&m.xAxis[0].opposite),{left:se,top:ne}=h.getChartPosition(),ce=V+b,de=0,Y=D-Z;function U(le,ue,pe,fe,me=!0){let ge,be;return pe?(ge=ee?0:Y,be=C(le-fe/2,I.left,I.right-fe-(T.outside?se:0))):(ge=ue-ce,be=C(be=me?le-fe-g:le+g,me?be:I.left,I.right)),{x:be,y:ge}}z(f)&&(f=[!1,f]);let K=f.slice(0,S.length+1).reduce(function(le,ue,pe){if(ue!==!1&&ue!==""){let fe=S[pe-1]||{isHeader:!0,plotX:S[0].plotX,plotY:D,series:{}},me=fe.isHeader,ge=me?T:fe.series,be=ge.tt=function(Le,je,Ye){let qe=Le,{isHeader:_e,series:Lt}=je;if(!qe){let yt={padding:v.padding,r:v.borderRadius};p||(yt.fill=v.backgroundColor,yt["stroke-width"]=v.borderWidth??1),qe=W.label("",0,0,v[_e?"headerShape":"shape"],void 0,void 0,v.useHTML).addClass(T.getClassName(je,!0,_e)).attr(yt).add(k)}return qe.isActive=!0,qe.attr({text:Ye}),p||qe.css(v.style).attr({stroke:v.borderColor||je.color||Lt.color||"#333333"}),qe}(ge.tt,fe,ue.toString()),ve=be.getBBox(),ye=ve.width+be.strokeWidth();me&&(de=ve.height,Y+=de,ee&&(ce-=de));let{anchorX:Ae,anchorY:Me}=function(Le){let je,Ye,{isHeader:qe,plotX:_e=0,plotY:Lt=0,series:yt}=Le;if(qe)je=Math.max(B+_e,B),Ye=V+D/2;else{let{xAxis:Si,yAxis:Ze}=yt;je=Si.pos+C(_e,-g,Si.len+g),yt.shouldShowTooltip(0,Ze.pos-V+Lt,{ignoreX:!0})&&(Ye=Ze.pos+Lt)}return{anchorX:je=C(je,I.left-g,I.right+g),anchorY:Ye}}(fe);if(typeof Me=="number"){let Le=ve.height+1,je=H?H.call(T,ye,Le,fe):U(Ae,Me,me,ye);le.push({align:H?0:void 0,anchorX:Ae,anchorY:Me,boxWidth:ye,point:fe,rank:u(je.rank,me?1:0),size:Le,target:je.y,tt:be,x:je.x})}else be.isActive=!1}return le},[]);!H&&K.some(le=>{let{outside:ue}=T,pe=(ue?se:0)+le.anchorX;return pepe})&&(K=K.map(le=>{let{x:ue,y:pe}=U(le.anchorX,le.anchorY,le.point.isHeader,le.boxWidth,!1);return L(le,{target:pe,x:ue})})),T.cleanSplit(),j(K,Y);let Q={left:se,right:se};K.forEach(function(le){let{x:ue,boxWidth:pe,isHeader:fe}=le;!fe&&(T.outside&&se+ueQ.right&&(Q.right=se+ue))}),K.forEach(function(le){let{x:ue,anchorX:pe,anchorY:fe,pos:me,point:{isHeader:ge}}=le,be={visibility:me===void 0?"hidden":"inherit",x:ue,y:(me||0)+ce,anchorX:pe,anchorY:fe};if(T.outside&&ue0&&(ge||(be.x=ue+ve,be.anchorX=pe+ve),ge&&(be.x=(Q.right-Q.left)/2,be.anchorX=pe+ve))}le.tt.attr(be)});let{container:oe,outside:ae,renderer:he}=T;if(ae&&oe&&he){let{width:le,height:ue,x:pe,y:fe}=k.getBBox();he.setSize(le+pe,ue+fe,!1),oe.style.left=Q.left+"px",oe.style.top=ne+"px"}$&&k.attr({opacity:k.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let f=this.chart,S=this.label,T=this.shared?f.hoverPoints:f.hoverPoint;if(!S||!T)return;let m={x:0,y:0,width:0,height:0},N=this.getAnchor(T),ie=S.getBBox();N[0]+=f.plotLeft-(S.translateX||0),N[1]+=f.plotTop-(S.translateY||0),m.x=Math.min(0,N[0]),m.y=Math.min(0,N[1]),m.width=N[0]<0?Math.max(Math.abs(N[0]),ie.width-N[0]):Math.max(Math.abs(N[0]),ie.width),m.height=N[1]<0?Math.max(Math.abs(N[1]),ie.height-Math.abs(N[1])):Math.max(Math.abs(N[1]),ie.height),this.tracker?this.tracker.attr(m):(this.tracker=S.renderer.rect(m).addClass("highcharts-tracker").add(S),f.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(f){return f.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(f,S){let T=f.series,m=T.tooltipOptions,N=T.xAxis,ie=N&&N.dateTime,D={isFooter:S,labelConfig:f},B=m.xDateFormat,V=m[S?"footerFormat":"headerFormat"];return y(this,"headerFormatter",D,function(Z){ie&&!B&&q(f.key)&&(B=ie.getXDateFormat(f.key,m.dateTimeLabelFormats)),ie&&B&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(re){V=V.replace("{point."+re+"}","{point."+re+":"+B+"}")}),T.chart.styledMode&&(V=this.styledModeFormat(V)),Z.text=X(V,{point:f,series:T},this.chart)}),D.text}update(f){this.destroy(),this.init(this.chart,R(!0,this.options,f))}updatePosition(f){let{chart:S,container:T,distance:m,options:N,pointer:ie,renderer:D}=this,{height:B=0,width:V=0}=this.getLabel(),{left:Z,top:re,scaleX:p,scaleY:g}=ie.getChartPosition(),v=(N.positioner||this.getPosition).call(this,V,B,f),H=(f.plotX||0)+S.plotLeft,h=(f.plotY||0)+S.plotTop,w;D&&T&&(N.positioner&&(v.x+=Z-m,v.y+=re-m),w=(N.borderWidth||0)+2*m+2,D.setSize(V+w,B+w,!1),(p!==1||g!==1)&&(M(T,{transform:`scale(${p}, ${g})`}),H*=p,h*=g),H+=Z-v.x,h+=re-v.y),this.move(Math.round(v.x),Math.round(v.y||0),H,h)}}return(te=n||(n={})).compose=function(d){x(J,"Core.Tooltip")&&F(d,"afterInit",function(){let f=this.chart;f.options.tooltip&&(f.tooltip=new te(f,f.options.tooltip,this))})},n}),e(s,"Core/Series/Point.js",[s["Core/Renderer/HTML/AST.js"],s["Core/Animation/AnimationUtilities.js"],s["Core/Defaults.js"],s["Core/Templating.js"],s["Core/Utilities.js"]],function(t,r,a,l,_){let{animObject:O}=r,{defaultOptions:te}=a,{format:G}=l,{addEvent:X,crisp:J,erase:A,extend:$,fireEvent:j,getNestedProperty:F,isArray:C,isFunction:M,isNumber:E,isObject:L,merge:y,pick:P,syncTimeout:q,removeEvent:z,uniqueKey:R}=_;class u{animateBeforeDestroy(){let c=this,o={x:c.startXPos,opacity:0},n=c.getGraphicalProps();n.singular.forEach(function(d){c[d]=c[d].animate(d==="dataLabel"?{x:c[d].startXPos,y:c[d].startYPos,opacity:0}:o)}),n.plural.forEach(function(d){c[d].forEach(function(f){f.element&&f.animate($({x:c.startXPos},f.startYPos?{x:f.startXPos,y:f.startYPos}:{}))})})}applyOptions(c,o){let n=this.series,d=n.options.pointValKey||n.pointValKey;return $(this,c=u.prototype.optionsToObject.call(this,c)),this.options=this.options?$(this.options,c):c,c.group&&delete this.group,c.dataLabels&&delete this.dataLabels,d&&(this.y=u.prototype.getNestedProperty.call(this,d)),this.selected&&(this.state="select"),"name"in this&&o===void 0&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),this.x===void 0&&n?this.x=o??n.autoIncrement():E(c.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(c.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let c=this,o=c.series,n=o.chart,d=o.options.dataSorting,f=n.hoverPoints,S=O(c.series.chart.renderer.globalAnimation),T=()=>{for(let m in(c.graphic||c.graphics||c.dataLabel||c.dataLabels)&&(z(c),c.destroyElements()),c)delete c[m]};c.legendItem&&n.legend.destroyItem(c),f&&(c.setState(),A(f,c),f.length||(n.hoverPoints=null)),c===n.hoverPoint&&c.onMouseOut(),d&&d.enabled?(this.animateBeforeDestroy(),q(T,S.duration)):T(),n.pointCount--}this.destroyed=!0}destroyElements(c){let o=this,n=o.getGraphicalProps(c);n.singular.forEach(function(d){o[d]=o[d].destroy()}),n.plural.forEach(function(d){o[d].forEach(function(f){f&&f.element&&f.destroy()}),delete o[d]})}firePointEvent(c,o,n){let d=this,f=this.series.options;d.manageEvent(c),c==="click"&&f.allowPointSelect&&(n=function(S){!d.destroyed&&d.select&&d.select(null,S.ctrlKey||S.metaKey||S.shiftKey)}),j(d,c,o,n)}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(c){let o,n,d=this,f=[],S={singular:[],plural:[]};for((c=c||{graphic:1,dataLabel:1}).graphic&&f.push("graphic","connector"),c.dataLabel&&f.push("dataLabel","dataLabelPath","dataLabelUpper"),n=f.length;n--;)d[o=f[n]]&&S.singular.push(o);return["graphic","dataLabel"].forEach(function(T){let m=T+"s";c[T]&&d[m]&&S.plural.push(m)}),S}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(c){return c?c.indexOf("custom.")===0?F(c,this.options):this[c]:void 0}getZone(){let c=this.series,o=c.zones,n=c.zoneAxis||"y",d,f=0;for(d=o[0];this[n]>=d.value;)d=o[++f];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(c,o,n){this.formatPrefix="point",this.visible=!0,this.series=c,this.applyOptions(o,n),this.id??(this.id=R()),this.resolveColor(),c.chart.pointCount++,j(this,"afterInit")}isValid(){return(E(this.x)||this.x instanceof Date)&&E(this.y)}optionsToObject(c){let o=this.series,n=o.options.keys,d=n||o.pointArrayMap||["y"],f=d.length,S={},T,m=0,N=0;if(E(c)||c===null)S[d[0]]=c;else if(C(c))for(!n&&c.length>f&&((T=typeof c[0])=="string"?S.name=c[0]:T==="number"&&(S.x=c[0]),m++);N0?u.prototype.setNestedProperty(S,c[m],d[N]):S[d[N]]=c[m]),m++,N++;else typeof c=="object"&&(S=c,c.dataLabels&&(o.hasDataLabels=()=>!0),c.marker&&(o._hasPointMarkers=!0));return S}pos(c,o=this.plotY){if(!this.destroyed){let{plotX:n,series:d}=this,{chart:f,xAxis:S,yAxis:T}=d,m=0,N=0;if(E(n)&&E(o))return c&&(m=S?S.pos:f.plotLeft,N=T?T.pos:f.plotTop),f.inverted&&S&&T?[T.len-o+N,S.len-n+m]:[n+m,o+N]}}resolveColor(){let c=this.series,o=c.chart.options.chart,n=c.chart.styledMode,d,f,S=o.colorCount,T;delete this.nonZonedColor,c.options.colorByPoint?(n||(d=(f=c.options.colors||c.chart.options.colors)[c.colorCounter],S=f.length),T=c.colorCounter,c.colorCounter++,c.colorCounter===S&&(c.colorCounter=0)):(n||(d=c.color),T=c.colorIndex),this.colorIndex=P(this.options.colorIndex,T),this.color=P(this.options.color,d)}setNestedProperty(c,o,n){return n.split(".").reduce(function(d,f,S,T){let m=T.length-1===S;return d[f]=m?o:L(d[f],!0)?d[f]:{},d[f]},c),c}shouldDraw(){return!this.isNull}tooltipFormatter(c){let o=this.series,n=o.tooltipOptions,d=P(n.valueDecimals,""),f=n.valuePrefix||"",S=n.valueSuffix||"";return o.chart.styledMode&&(c=o.chart.tooltip.styledModeFormat(c)),(o.pointArrayMap||["y"]).forEach(function(T){T="{point."+T,(f||S)&&(c=c.replace(RegExp(T+"}","g"),f+T+"}"+S)),c=c.replace(RegExp(T+"}","g"),T+":,."+d+"f}")}),G(c,{point:this,series:this.series},o.chart)}update(c,o,n,d){let f,S=this,T=S.series,m=S.graphic,N=T.chart,ie=T.options;function D(){S.applyOptions(c);let B=m&&S.hasMockGraphic,V=S.y===null?!B:B;m&&V&&(S.graphic=m.destroy(),delete S.hasMockGraphic),L(c,!0)&&(m&&m.element&&c&&c.marker&&c.marker.symbol!==void 0&&(S.graphic=m.destroy()),c?.dataLabels&&S.dataLabel&&(S.dataLabel=S.dataLabel.destroy())),f=S.index,T.updateParallelArrays(S,f),ie.data[f]=L(ie.data[f],!0)||L(c,!0)?S.options:P(c,ie.data[f]),T.isDirty=T.isDirtyData=!0,!T.fixedBox&&T.hasCartesianSeries&&(N.isDirtyBox=!0),ie.legendType==="point"&&(N.isDirtyLegend=!0),o&&N.redraw(n)}o=P(o,!0),d===!1?D():S.firePointEvent("update",{options:c},D)}remove(c,o){this.series.removePoint(this.series.data.indexOf(this),c,o)}select(c,o){let n=this,d=n.series,f=d.chart;c=P(c,!n.selected),this.selectedStaging=c,n.firePointEvent(c?"select":"unselect",{accumulate:o},function(){n.selected=n.options.selected=c,d.options.data[d.data.indexOf(n)]=n.options,n.setState(c&&"select"),o||f.getSelectedPoints().forEach(function(S){let T=S.series;S.selected&&S!==n&&(S.selected=S.options.selected=!1,T.options.data[T.data.indexOf(S)]=S.options,S.setState(f.hoverPoints&&T.options.inactiveOtherPoints?"inactive":""),S.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(c){let{inverted:o,pointer:n}=this.series.chart;n&&(c=c?n.normalize(c):n.getChartCoordinatesFromPoint(this,o),n.runPointActions(c,this))}onMouseOut(){let c=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(c.hoverPoints||[]).forEach(function(o){o.setState()}),c.hoverPoints=c.hoverPoint=null}manageEvent(c){let o=y(this.series.options.point,this.options),n=o.events?.[c];M(n)&&(!this.hcEvents?.[c]||this.hcEvents?.[c]?.map(d=>d.fn).indexOf(n)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=X(this,c,n)):this.importedUserEvent&&!n&&this.hcEvents?.[c]&&(z(this,c),delete this.hcEvents[c],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(c,o){let n=this.series,d=this.state,f=n.options.states[c||"normal"]||{},S=te.plotOptions[n.type].marker&&n.options.marker,T=S&&S.enabled===!1,m=S&&S.states&&S.states[c||"normal"]||{},N=m.enabled===!1,ie=this.marker||{},D=n.chart,B=S&&n.markerAttribs,V=n.halo,Z,re,p,g=n.stateMarkerGraphic,v;if((c=c||"")===this.state&&!o||this.selected&&c!=="select"||f.enabled===!1||c&&(N||T&&m.enabled===!1)||c&&ie.states&&ie.states[c]&&ie.states[c].enabled===!1)return;if(this.state=c,B&&(Z=n.markerAttribs(this,c)),this.graphic&&!this.hasMockGraphic){if(d&&this.graphic.removeClass("highcharts-point-"+d),c&&this.graphic.addClass("highcharts-point-"+c),!D.styledMode){re=n.pointAttribs(this,c),p=P(D.options.chart.animation,f.animation);let b=re.opacity;n.options.inactiveOtherPoints&&E(b)&&(this.dataLabels||[]).forEach(function(I){I&&!I.hasClass("highcharts-data-label-hidden")&&(I.animate({opacity:b},p),I.connector&&I.connector.animate({opacity:b},p))}),this.graphic.animate(re,p)}Z&&this.graphic.animate(Z,P(D.options.chart.animation,m.animation,S.animation)),g&&g.hide()}else c&&m&&(v=ie.symbol||n.symbol,g&&g.currentSymbol!==v&&(g=g.destroy()),Z&&(g?g[o?"animate":"attr"]({x:Z.x,y:Z.y}):v&&(n.stateMarkerGraphic=g=D.renderer.symbol(v,Z.x,Z.y,Z.width,Z.height).add(n.markerGroup),g.currentSymbol=v)),!D.styledMode&&g&&this.state!=="inactive"&&g.attr(n.pointAttribs(this,c))),g&&(g[c&&this.isInside?"show":"hide"](),g.element.point=this,g.addClass(this.getClassName(),!0));let H=f.halo,h=this.graphic||g,w=h&&h.visibility||"inherit";H&&H.size&&h&&w!=="hidden"&&!this.isCluster?(V||(n.halo=V=D.renderer.path().add(h.parentGroup)),V.show()[o?"animate":"attr"]({d:this.haloPath(H.size)}),V.attr({class:"highcharts-halo highcharts-color-"+P(this.colorIndex,n.colorIndex)+(this.className?" "+this.className:""),visibility:w,zIndex:-1}),V.point=this,D.styledMode||V.attr($({fill:this.color||n.color,"fill-opacity":H.opacity},t.filterUserAttributes(H.attributes||{})))):V?.point?.haloPath&&!V.point.destroyed&&V.animate({d:V.point.haloPath(0)},null,V.hide),j(this,"afterSetState",{state:c})}haloPath(c){let o=this.pos();return o?this.series.chart.renderer.symbols.circle(J(o[0],1)-c,o[1]-c,2*c,2*c):[]}}return u}),e(s,"Core/Pointer.js",[s["Core/Color/Color.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a){var l;let{parse:_}=t,{charts:O,composed:te,isTouchDevice:G}=r,{addEvent:X,attr:J,css:A,extend:$,find:j,fireEvent:F,isNumber:C,isObject:M,objectEach:E,offset:L,pick:y,pushUnique:P,splat:q}=a;class z{applyInactiveState(u){let x=[],c;(u||[]).forEach(function(o){c=o.series,x.push(c),c.linkedParent&&x.push(c.linkedParent),c.linkedSeries&&(x=x.concat(c.linkedSeries)),c.navigatorSeries&&x.push(c.navigatorSeries)}),this.chart.series.forEach(function(o){x.indexOf(o)===-1?o.setState("inactive",!0):o.options.inactiveOtherPoints&&o.setAllPointsToState("inactive")})}destroy(){let u=this;this.eventsToUnbind.forEach(x=>x()),this.eventsToUnbind=[],!r.chartCount&&(z.unbindDocumentMouseUp&&z.unbindDocumentMouseUp.forEach(x=>x()),z.unbindDocumentTouchEnd&&(z.unbindDocumentTouchEnd=z.unbindDocumentTouchEnd())),clearInterval(u.tooltipTimeout),E(u,function(x,c){u[c]=void 0})}getSelectionMarkerAttrs(u,x){let c={args:{chartX:u,chartY:x},attrs:{},shapeType:"rect"};return F(this,"getSelectionMarkerAttrs",c,o=>{let n,{chart:d,zoomHor:f,zoomVert:S}=this,{mouseDownX:T=0,mouseDownY:m=0}=d,N=o.attrs;N.x=d.plotLeft,N.y=d.plotTop,N.width=f?1:d.plotWidth,N.height=S?1:d.plotHeight,f&&(n=u-T,N.width=Math.max(1,Math.abs(n)),N.x=(n>0?0:n)+T),S&&(n=x-m,N.height=Math.max(1,Math.abs(n)),N.y=(n>0?0:n)+m)}),c}drag(u){let{chart:x}=this,{mouseDownX:c=0,mouseDownY:o=0}=x,{panning:n,panKey:d,selectionMarkerFill:f}=x.options.chart,S=x.plotLeft,T=x.plotTop,m=x.plotWidth,N=x.plotHeight,ie=M(n)?n.enabled:n,D=d&&u[`${d}Key`],B=u.chartX,V=u.chartY,Z,re=this.selectionMarker;if((!re||!re.touch)&&(BS+m&&(B=S+m),VT+N&&(V=T+N),this.hasDragged=Math.sqrt(Math.pow(c-B,2)+Math.pow(o-V,2)),this.hasDragged>10)){Z=x.isInsidePlot(c-S,o-T,{visiblePlotOnly:!0});let{shapeType:p,attrs:g}=this.getSelectionMarkerAttrs(B,V);(x.hasCartesianSeries||x.mapView)&&this.hasZoom&&Z&&!D&&!re&&(this.selectionMarker=re=x.renderer[p](),re.attr({class:"highcharts-selection-marker",zIndex:7}).add(),x.styledMode||re.attr({fill:f||_("#334eff").setOpacity(.25).get()})),re&&re.attr(g),Z&&!re&&ie&&x.pan(u,n)}}dragStart(u){let x=this.chart;x.mouseIsDown=u.type,x.cancelClick=!1,x.mouseDownX=u.chartX,x.mouseDownY=u.chartY}getSelectionBox(u){let x={args:{marker:u},result:u.getBBox()};return F(this,"getSelectionBox",x),x.result}drop(u){let x,{chart:c,selectionMarker:o}=this;for(let n of c.axes)n.isPanning&&(n.isPanning=!1,(n.options.startOnTick||n.options.endOnTick||n.series.some(d=>d.boosted))&&(n.forceRedraw=!0,n.setExtremes(n.userMin,n.userMax,!1),x=!0));if(x&&c.redraw(),o&&u){if(this.hasDragged){let n=this.getSelectionBox(o);c.transform({axes:c.axes.filter(d=>d.zoomEnabled&&(d.coll==="xAxis"&&this.zoomX||d.coll==="yAxis"&&this.zoomY)),selection:we({originalEvent:u,xAxis:[],yAxis:[]},n),from:n})}C(c.index)&&(this.selectionMarker=o.destroy())}c&&C(c.index)&&(A(c.container,{cursor:c._cursor}),c.cancelClick=this.hasDragged>10,c.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(u,x,c){let o;return u.forEach(function(n){let d=!(n.noSharedTooltip&&x)&&0>n.options.findNearestPointBy.indexOf("y"),f=n.searchPoint(c,d);M(f,!0)&&f.series&&(!M(o,!0)||function(S,T){let m=S.distX-T.distX,N=S.dist-T.dist,ie=T.series.group?.zIndex-S.series.group?.zIndex;return m!==0&&x?m:N!==0?N:ie!==0?ie:S.series.index>T.series.index?-1:1}(o,f)>0)&&(o=f)}),o}getChartCoordinatesFromPoint(u,x){let{xAxis:c,yAxis:o}=u.series,n=u.shapeArgs;if(c&&o){let d=u.clientX??u.plotX??0,f=u.plotY||0;return u.isNode&&n&&C(n.x)&&C(n.y)&&(d=n.x,f=n.y),x?{chartX:o.len+o.pos-f,chartY:c.len+c.pos-d}:{chartX:d+c.pos,chartY:f+o.pos}}if(n&&n.x&&n.y)return{chartX:n.x,chartY:n.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:u}=this.chart,x=L(u);this.chartPosition={left:x.left,top:x.top,scaleX:1,scaleY:1};let{offsetHeight:c,offsetWidth:o}=u;return o>2&&c>2&&(this.chartPosition.scaleX=x.width/o,this.chartPosition.scaleY=x.height/c),this.chartPosition}getCoordinates(u){let x={xAxis:[],yAxis:[]};for(let c of this.chart.axes)x[c.isXAxis?"xAxis":"yAxis"].push({axis:c,value:c.toValue(u[c.horiz?"chartX":"chartY"])});return x}getHoverData(u,x,c,o,n,d){let f=[],S=function(D){return D.visible&&!(!n&&D.directTouch)&&y(D.options.enableMouseTracking,!0)},T=x,m,N={chartX:d?d.chartX:void 0,chartY:d?d.chartY:void 0,shared:n};F(this,"beforeGetHoverData",N),m=T&&!T.stickyTracking?[T]:c.filter(D=>D.stickyTracking&&(N.filter||S)(D));let ie=o&&u||!d?u:this.findNearestKDPoint(m,n,d);return T=ie&&ie.series,ie&&(n&&!T.noSharedTooltip?(m=c.filter(function(D){return N.filter?N.filter(D):S(D)&&!D.noSharedTooltip})).forEach(function(D){let B=j(D.points,function(V){return V.x===ie.x&&!V.isNull});M(B)&&(D.boosted&&D.boost&&(B=D.boost.getPoint(B)),f.push(B))}):f.push(ie)),F(this,"afterGetHoverData",N={hoverPoint:ie}),{hoverPoint:N.hoverPoint,hoverSeries:T,hoverPoints:f}}getPointFromEvent(u){let x=u.target,c;for(;x&&!c;)c=x.point,x=x.parentNode;return c}onTrackerMouseOut(u){let x=this.chart,c=u.relatedTarget,o=x.hoverSeries;this.isDirectTouch=!1,!o||!c||o.stickyTracking||this.inClass(c,"highcharts-tooltip")||this.inClass(c,"highcharts-series-"+o.index)&&this.inClass(c,"highcharts-tracker")||o.onMouseOut()}inClass(u,x){let c=u,o;for(;c;){if(o=J(c,"class")){if(o.indexOf(x)!==-1)return!0;if(o.indexOf("highcharts-container")!==-1)return!1}c=c.parentElement}}constructor(u,x){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=x,this.chart=u,this.runChartClick=!!x.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),F(this,"afterInit")}normalize(u,x){let c=u.touches,o=c?c.length?c.item(0):y(c.changedTouches,u.changedTouches)[0]:u;x||(x=this.getChartPosition());let n=o.pageX-x.left,d=o.pageY-x.top;return $(u,{chartX:Math.round(n/=x.scaleX),chartY:Math.round(d/=x.scaleY)})}onContainerClick(u){let x=this.chart,c=x.hoverPoint,o=this.normalize(u),n=x.plotLeft,d=x.plotTop;!x.cancelClick&&(c&&this.inClass(o.target,"highcharts-tracker")?(F(c.series,"click",$(o,{point:c})),x.hoverPoint&&c.firePointEvent("click",o)):($(o,this.getCoordinates(o)),x.isInsidePlot(o.chartX-n,o.chartY-d,{visiblePlotOnly:!0})&&F(x,"click",o)))}onContainerMouseDown(u){let x=(1&(u.buttons||u.button))==1;u=this.normalize(u),r.isFirefox&&u.button!==0&&this.onContainerMouseMove(u),(u.button===void 0||x)&&(this.zoomOption(u),x&&u.preventDefault?.(),this.dragStart(u))}onContainerMouseLeave(u){let{pointer:x}=O[y(z.hoverChartIndex,-1)]||{};u=this.normalize(u),this.onContainerMouseMove(u),x&&!this.inClass(u.relatedTarget,"highcharts-tooltip")&&(x.reset(),x.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(u){let x=this.chart,c=x.tooltip,o=this.normalize(u);this.setHoverChartIndex(u),(x.mouseIsDown==="mousedown"||this.touchSelect(o))&&this.drag(o),!x.openMenu&&(this.inClass(o.target,"highcharts-tracker")||x.isInsidePlot(o.chartX-x.plotLeft,o.chartY-x.plotTop,{visiblePlotOnly:!0}))&&!(c&&c.shouldStickOnContact(o))&&(this.inClass(o.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(o))}onDocumentTouchEnd(u){this.onDocumentMouseUp(u)}onContainerTouchMove(u){this.touchSelect(u)?this.onContainerMouseMove(u):this.touch(u)}onContainerTouchStart(u){this.touchSelect(u)?this.onContainerMouseDown(u):(this.zoomOption(u),this.touch(u,!0))}onDocumentMouseMove(u){let x=this.chart,c=x.tooltip,o=this.chartPosition,n=this.normalize(u,o);!o||x.isInsidePlot(n.chartX-x.plotLeft,n.chartY-x.plotTop,{visiblePlotOnly:!0})||c&&c.shouldStickOnContact(n)||n.target!==x.container.ownerDocument&&this.inClass(n.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(u){O[y(z.hoverChartIndex,-1)]?.pointer?.drop(u)}pinch(u){let x=this,{chart:c,hasZoom:o,lastTouches:n}=x,d=[].map.call(u.touches||[],N=>x.normalize(N)),f=d.length,S=f===1&&(x.inClass(u.target,"highcharts-tracker")&&c.runTrackerClick||x.runChartClick),T=c.tooltip,m=f===1&&y(T?.options.followTouchMove,!0);f>1?x.initiated=!0:m&&(x.initiated=!1),o&&x.initiated&&!S&&u.cancelable!==!1&&u.preventDefault(),u.type==="touchstart"?(x.pinchDown=d,x.res=!0,c.mouseDownX=u.chartX):m?this.runPointActions(x.normalize(u)):n&&(F(c,"touchpan",{originalEvent:u,touches:d},()=>{let N=ie=>{let D=ie[0],B=ie[1]||D;return{x:D.chartX,y:D.chartY,width:B.chartX-D.chartX,height:B.chartY-D.chartY}};c.transform({axes:c.axes.filter(ie=>ie.zoomEnabled&&(this.zoomHor&&ie.horiz||this.zoomVert&&!ie.horiz)),to:N(d),from:N(n),trigger:u.type})}),x.res&&(x.res=!1,this.reset(!1,0))),x.lastTouches=d}reset(u,x){let c=this.chart,o=c.hoverSeries,n=c.hoverPoint,d=c.hoverPoints,f=c.tooltip,S=f&&f.shared?d:n;u&&S&&q(S).forEach(function(T){T.series.isCartesian&&T.plotX===void 0&&(u=!1)}),u?f&&S&&q(S).length&&(f.refresh(S),f.shared&&d?d.forEach(function(T){T.setState(T.state,!0),T.series.isCartesian&&(T.series.xAxis.crosshair&&T.series.xAxis.drawCrosshair(null,T),T.series.yAxis.crosshair&&T.series.yAxis.drawCrosshair(null,T))}):n&&(n.setState(n.state,!0),c.axes.forEach(function(T){T.crosshair&&n.series[T.coll]===T&&T.drawCrosshair(null,n)}))):(n&&n.onMouseOut(),d&&d.forEach(function(T){T.setState()}),o&&o.onMouseOut(),f&&f.hide(x),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),c.axes.forEach(function(T){T.hideCrosshair()}),c.hoverPoints=c.hoverPoint=void 0)}runPointActions(u,x,c){let o=this.chart,n=o.series,d=o.tooltip&&o.tooltip.options.enabled?o.tooltip:void 0,f=!!d&&d.shared,S=x||o.hoverPoint,T=S&&S.series||o.hoverSeries,m=(!u||u.type!=="touchmove")&&(!!x||T&&T.directTouch&&this.isDirectTouch),N=this.getHoverData(S,T,n,m,f,u);S=N.hoverPoint,T=N.hoverSeries;let ie=N.hoverPoints,D=T&&T.tooltipOptions.followPointer&&!T.tooltipOptions.split,B=f&&T&&!T.noSharedTooltip;if(S&&(c||S!==o.hoverPoint||d&&d.isHidden)){if((o.hoverPoints||[]).forEach(function(V){ie.indexOf(V)===-1&&V.setState()}),o.hoverSeries!==T&&T.onMouseOver(),this.applyInactiveState(ie),(ie||[]).forEach(function(V){V.setState("hover")}),o.hoverPoint&&o.hoverPoint.firePointEvent("mouseOut"),!S.series)return;o.hoverPoints=ie,o.hoverPoint=S,S.firePointEvent("mouseOver",void 0,()=>{d&&S&&d.refresh(B?ie:S,u)})}else if(D&&d&&!d.isHidden){let V=d.getAnchor([{}],u);o.isInsidePlot(V[0],V[1],{visiblePlotOnly:!0})&&d.updatePosition({plotX:V[0],plotY:V[1]})}this.unDocMouseMove||(this.unDocMouseMove=X(o.container.ownerDocument,"mousemove",V=>O[z.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(V)),this.eventsToUnbind.push(this.unDocMouseMove)),o.axes.forEach(function(V){let Z,re=y((V.crosshair||{}).snap,!0);!re||(Z=o.hoverPoint)&&Z.series[V.coll]===V||(Z=j(ie,p=>p.series&&p.series[V.coll]===V)),Z||!re?V.drawCrosshair(u,Z):V.hideCrosshair()})}setDOMEvents(){let u=this.chart.container,x=u.ownerDocument;u.onmousedown=this.onContainerMouseDown.bind(this),u.onmousemove=this.onContainerMouseMove.bind(this),u.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(X(u,"mouseenter",this.onContainerMouseEnter.bind(this)),X(u,"mouseleave",this.onContainerMouseLeave.bind(this))),z.unbindDocumentMouseUp||(z.unbindDocumentMouseUp=[]),z.unbindDocumentMouseUp.push(X(x,"mouseup",this.onDocumentMouseUp.bind(this)));let c=this.chart.renderTo.parentElement;for(;c&&c.tagName!=="BODY";)this.eventsToUnbind.push(X(c,"scroll",()=>{delete this.chartPosition})),c=c.parentElement;this.eventsToUnbind.push(X(u,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),X(u,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),z.unbindDocumentTouchEnd||(z.unbindDocumentTouchEnd=X(x,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),X(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!G)return;let u=this.pointerCaptureEventsToUnbind,x=this.chart,c=x.container,o=y(x.options.tooltip?.followTouchMove,!0)&&x.series.some(n=>n.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&o?(u.push(X(c,"pointerdown",n=>{n.target?.hasPointerCapture(n.pointerId)&&n.target?.releasePointerCapture(n.pointerId)}),X(c,"pointermove",n=>{x.pointer?.getPointFromEvent(n)?.onMouseOver(n)})),x.styledMode||A(c,{"touch-action":"none"}),c.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!o&&(u.forEach(n=>n()),u.length=0,x.styledMode||A(c,{"touch-action":y(x.options.chart.style?.["touch-action"],"manipulation")}),c.className=c.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(u){let x=this.chart,c=r.charts[y(z.hoverChartIndex,-1)];if(c&&c!==x){let o={relatedTarget:x.container};u&&!u?.relatedTarget&&(u=we(we({},o),u)),c.pointer?.onContainerMouseLeave(u||o)}c&&c.mouseIsDown||(z.hoverChartIndex=x.index)}touch(u,x){let c,{chart:o,pinchDown:n=[]}=this;this.setHoverChartIndex(),(u=this.normalize(u)).touches.length===1?o.isInsidePlot(u.chartX-o.plotLeft,u.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(x&&this.runPointActions(u),u.type==="touchmove"&&(c=!!n[0]&&Math.pow(n[0].chartX-u.chartX,2)+Math.pow(n[0].chartY-u.chartY,2)>=16),y(c,!0)&&this.pinch(u)):x&&this.reset():u.touches.length===2&&this.pinch(u)}touchSelect(u){return!!(this.chart.zooming.singleTouch&&u.touches&&u.touches.length===1)}zoomOption(u){let x=this.chart,c=x.inverted,o=x.zooming.type||"",n,d;/touch/.test(u.type)&&(o=y(x.zooming.pinchType,o)),this.zoomX=n=/x/.test(o),this.zoomY=d=/y/.test(o),this.zoomHor=n&&!c||d&&c,this.zoomVert=d&&!c||n&&c,this.hasZoom=n||d}}return(l=z||(z={})).compose=function(R){P(te,"Core.Pointer")&&X(R,"beforeRender",function(){this.pointer=new l(this,this.options)})},z}),e(s,"Core/Legend/LegendSymbol.js",[s["Core/Utilities.js"]],function(t){var r;let{extend:a,merge:l,pick:_}=t;return function(O){function te(G,X,J){let A=this.legendItem=this.legendItem||{},{chart:$,options:j}=this,{baseline:F=0,symbolWidth:C,symbolHeight:M}=G,E=this.symbol||"circle",L=M/2,y=$.renderer,P=A.group,q=F-Math.round((G.fontMetrics?.b||M)*(J?.4:.3)),z={},R,u=j.marker,x=0;if($.styledMode||(z["stroke-width"]=Math.min(j.lineWidth||0,24),j.dashStyle?z.dashstyle=j.dashStyle:j.linecap==="square"||(z["stroke-linecap"]="round")),A.line=y.path().addClass("highcharts-graph").attr(z).add(P),J&&(A.area=y.path().addClass("highcharts-area").add(P)),z["stroke-linecap"]&&(x=Math.min(A.line.strokeWidth(),C)/2),C){let c=[["M",x,q],["L",C-x,q]];A.line.attr({d:c}),A.area?.attr({d:[...c,["L",C-x,F],["L",x,F]]})}if(u&&u.enabled!==!1&&C){let c=Math.min(_(u.radius,L),L);E.indexOf("url")===0&&(u=l(u,{width:M,height:M}),c=0),A.symbol=R=y.symbol(E,C/2-c,q-c,2*c,2*c,a({context:"legend"},u)).addClass("highcharts-point").add(P),R.isMarker=!0}}O.areaMarker=function(G,X){te.call(this,G,X,!0)},O.lineMarker=te,O.rectangle=function(G,X){let J=X.legendItem||{},A=G.options,$=G.symbolHeight,j=A.squareSymbol,F=j?$:G.symbolWidth;J.symbol=this.chart.renderer.rect(j?(G.symbolWidth-$)/2:0,G.baseline-$+1,F,$,_(G.options.symbolRadius,$/2)).addClass("highcharts-point").attr({zIndex:3}).add(J.group)}}(r||(r={})),r}),e(s,"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"}}),e(s,"Core/Series/SeriesRegistry.js",[s["Core/Globals.js"],s["Core/Defaults.js"],s["Core/Series/Point.js"],s["Core/Utilities.js"]],function(t,r,a,l){var _;let{defaultOptions:O}=r,{extend:te,extendClass:G,merge:X}=l;return function(J){function A($,j){let F=O.plotOptions||{},C=j.defaultOptions,M=j.prototype;return M.type=$,M.pointClass||(M.pointClass=a),!J.seriesTypes[$]&&(C&&(F[$]=C),J.seriesTypes[$]=j,!0)}J.seriesTypes=t.seriesTypes,J.registerSeriesType=A,J.seriesType=function($,j,F,C,M){let E=O.plotOptions||{};if(j=j||"",E[$]=X(E[j],F),delete J.seriesTypes[$],A($,G(J.seriesTypes[j]||function(){},C)),J.seriesTypes[$].prototype.type=$,M){class L extends a{}te(L.prototype,M),J.seriesTypes[$].prototype.pointClass=L}return J.seriesTypes[$]}}(_||(_={})),_}),e(s,"Core/Series/Series.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Defaults.js"],s["Core/Foundation.js"],s["Core/Globals.js"],s["Core/Legend/LegendSymbol.js"],s["Core/Series/Point.js"],s["Core/Series/SeriesDefaults.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Renderer/SVG/SVGElement.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O,te,G,X,J){let{animObject:A,setAnimation:$}=t,{defaultOptions:j}=r,{registerEventOptions:F}=a,{svg:C,win:M}=l,{seriesTypes:E}=G,{arrayMax:L,arrayMin:y,clamp:P,correctFloat:q,crisp:z,defined:R,destroyObjectProperties:u,diffObjects:x,erase:c,error:o,extend:n,find:d,fireEvent:f,getClosestDistance:S,getNestedProperty:T,insertItem:m,isArray:N,isNumber:ie,isString:D,merge:B,objectEach:V,pick:Z,removeEvent:re,splat:p,syncTimeout:g}=J;class v{constructor(){this.zoneAxis="y"}init(h,w){let b;f(this,"init",{options:w});let I=this,k=h.series;this.eventsToUnbind=[],I.chart=h,I.options=I.setOptions(w);let W=I.options,ee=W.visible!==!1;I.linkedSeries=[],I.bindAxes(),n(I,{name:W.name,state:"",visible:ee,selected:W.selected===!0}),F(this,W);let se=W.events;(se&&se.click||W.point&&W.point.events&&W.point.events.click||W.allowPointSelect)&&(h.runTrackerClick=!0),I.getColor(),I.getSymbol(),I.parallelArrays.forEach(function(ne){I[ne+"Data"]||(I[ne+"Data"]=[])}),I.isCartesian&&(h.hasCartesianSeries=!0),k.length&&(b=k[k.length-1]),I._i=Z(b&&b._i,-1)+1,I.opacity=I.options.opacity,h.orderItems("series",m(this,k)),W.dataSorting&&W.dataSorting.enabled?I.setDataSortingOptions():I.points||I.data||I.setData(W.data,!1),f(this,"afterInit")}is(h){return E[h]&&this instanceof E[h]}bindAxes(){let h,w=this,b=w.options,I=w.chart;f(this,"bindAxes",null,function(){(w.axisTypes||[]).forEach(function(k){(I[k]||[]).forEach(function(W){h=W.options,(Z(b[k],0)===W.index||b[k]!==void 0&&b[k]===h.id)&&(m(w,W.series),w[k]=W,W.isDirty=!0)}),w[k]||w.optionalAxis===k||o(18,!0,I)})}),f(this,"afterBindAxes")}updateParallelArrays(h,w,b){let I=h.series,k=ie(w)?function(W){let ee=W==="y"&&I.toYData?I.toYData(h):h[W];I[W+"Data"][w]=ee}:function(W){Array.prototype[w].apply(I[W+"Data"],b)};I.parallelArrays.forEach(k)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(h,w){let b=h.marker,I=w.marker||{};return b&&(I.enabled&&!b.enabled||I.symbol!==b.symbol||I.height!==b.height||I.width!==b.width)}autoIncrement(h){let w=this.options,b=w.pointIntervalUnit,I=w.relativeXValue,k=this.chart.time,W=this.xIncrement,ee,se;return W=Z(W,w.pointStart,0),this.pointInterval=se=Z(this.pointInterval,w.pointInterval,1),I&&ie(h)&&(se*=h),b&&(ee=new k.Date(W),b==="day"?k.set("Date",ee,k.get("Date",ee)+se):b==="month"?k.set("Month",ee,k.get("Month",ee)+se):b==="year"&&k.set("FullYear",ee,k.get("FullYear",ee)+se),se=ee.getTime()-W),I&&ie(h)?W+se:(this.xIncrement=W+se,W)}setDataSortingOptions(){let h=this.options;n(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),R(h.pointRange)||(h.pointRange=1)}setOptions(h){let w,b=this.chart,I=b.options.plotOptions,k=b.userOptions||{},W=B(h),ee=b.styledMode,se={plotOptions:I,userOptions:W};f(this,"setOptions",se);let ne=se.plotOptions[this.type],ce=k.plotOptions||{},de=ce.series||{},Y=j.plotOptions[this.type]||{},U=ce[this.type]||{};this.userOptions=se.userOptions;let K=B(ne,I.series,U,W);this.tooltipOptions=B(j.tooltip,j.plotOptions.series?.tooltip,Y?.tooltip,b.userOptions.tooltip,ce.series?.tooltip,U.tooltip,W.tooltip),this.stickyTracking=Z(W.stickyTracking,U.stickyTracking,de.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||K.stickyTracking),ne.marker===null&&delete K.marker,this.zoneAxis=K.zoneAxis||"y";let Q=this.zones=(K.zones||[]).map(oe=>we({},oe));return(K.negativeColor||K.negativeFillColor)&&!K.zones&&(w={value:K[this.zoneAxis+"Threshold"]||K.threshold||0,className:"highcharts-negative"},ee||(w.color=K.negativeColor,w.fillColor=K.negativeFillColor),Q.push(w)),Q.length&&R(Q[Q.length-1].value)&&Q.push(ee?{}:{color:this.color,fillColor:this.fillColor}),f(this,"afterSetOptions",{options:K}),K}getName(){return Z(this.options.name,"Series "+(this.index+1))}getCyclic(h,w,b){let I,k,W=this.chart,ee=`${h}Index`,se=`${h}Counter`,ne=b?.length||W.options.chart.colorCount;!w&&(R(k=Z(h==="color"?this.options.colorIndex:void 0,this[ee]))?I=k:(W.series.length||(W[se]=0),I=W[se]%ne,W[se]+=1),b&&(w=b[I])),I!==void 0&&(this[ee]=I),this[h]=w}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||j.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let h=this.options.marker;this.getCyclic("symbol",h.symbol,this.chart.options.symbols)}findPointIndex(h,w){let b,I,k,W=h.id,ee=h.x,se=this.points,ne=this.options.dataSorting;if(W){let ce=this.chart.get(W);ce instanceof O&&(b=ce)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ce=de=>!de.touched&&de.index===h.index;if(ne&&ne.matchByName?ce=de=>!de.touched&&de.name===h.name:this.options.relativeXValue&&(ce=de=>!de.touched&&de.options.x===h.x),!(b=d(se,ce)))return}return b&&(k=b&&b.index)!==void 0&&(I=!0),k===void 0&&ie(ee)&&(k=this.xData.indexOf(ee,w)),k!==-1&&k!==void 0&&this.cropped&&(k=k>=this.cropStart?k-this.cropStart:k),!I&&ie(k)&&se[k]&&se[k].touched&&(k=void 0),k}updateData(h,w){let b=this.options,I=b.dataSorting,k=this.points,W=[],ee=this.requireSorting,se=h.length===k.length,ne,ce,de,Y,U=!0;if(this.xIncrement=null,h.forEach(function(K,Q){let oe,ae=R(K)&&this.pointClass.prototype.optionsToObject.call({series:this},K)||{},he=ae.x;ae.id||ie(he)?((oe=this.findPointIndex(ae,Y))===-1||oe===void 0?W.push(K):k[oe]&&K!==b.data[oe]?(k[oe].update(K,!1,null,!1),k[oe].touched=!0,ee&&(Y=oe+1)):k[oe]&&(k[oe].touched=!0),(!se||Q!==oe||I&&I.enabled||this.hasDerivedData)&&(ne=!0)):W.push(K)},this),ne)for(ce=k.length;ce--;)(de=k[ce])&&!de.touched&&de.remove&&de.remove(!1,w);else!se||I&&I.enabled?U=!1:(h.forEach(function(K,Q){K===k[Q].y||k[Q].destroyed||k[Q].update(K,!1,null,!1)}),W.length=0);return k.forEach(function(K){K&&(K.touched=!1)}),!!U&&(W.forEach(function(K){this.addPoint(K,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=L(this.xData),this.autoIncrement()),!0)}setData(h,w=!0,b,I){let k=this,W=k.points,ee=W&&W.length||0,se=k.options,ne=k.chart,ce=se.dataSorting,de=k.xAxis,Y=se.turboThreshold,U=this.xData,K=this.yData,Q=k.pointArrayMap,oe=Q&&Q.length,ae=se.keys,he,le,ue,pe=0,fe=1,me;ne.options.chart.allowMutatingData||(se.data&&delete k.options.data,k.userOptions.data&&delete k.userOptions.data,me=B(!0,h));let ge=(h=me||h||[]).length;if(ce&&ce.enabled&&(h=this.sortData(h)),ne.options.chart.allowMutatingData&&I!==!1&&ge&&ee&&!k.cropped&&!k.hasGroupedData&&k.visible&&!k.boosted&&(ue=this.updateData(h,b)),!ue){k.xIncrement=null,k.colorCounter=0,this.parallelArrays.forEach(function(ve){k[ve+"Data"].length=0});let be=Y&&ge>Y;if(be){let ve=k.getFirstValidPoint(h),ye=k.getFirstValidPoint(h,ge-1,-1),Ae=Me=>!!(N(Me)&&(ae||ie(Me[0])));if(ie(ve)&&ie(ye))for(he=0;he=0?pe:0,fe=fe>=0?fe:1),ve.length===1&&(fe=0),pe===fe)for(he=0;he{let ee=T(b,k),se=T(b,W);return seee?1:0}).forEach(function(k,W){k.x=W},this),w.linkedSeries&&w.linkedSeries.forEach(function(k){let W=k.options,ee=W.data;W.dataSorting&&W.dataSorting.enabled||!ee||(ee.forEach(function(se,ne){ee[ne]=I(k,se),h[ne]&&(ee[ne].x=h[ne].x,ee[ne].index=ne)}),k.setData(ee,!1))}),h}getProcessedData(h){let w=this,b=w.xAxis,I=w.options.cropThreshold,k=b?.logarithmic,W=w.isCartesian,ee,se,ne=0,ce,de,Y,U=w.xData,K=w.yData,Q=!1,oe=U.length;b&&(de=(ce=b.getExtremes()).min,Y=ce.max,Q=!!(b.categories&&!b.names.length)),W&&w.sorted&&!h&&(!I||oe>I||w.forceCrop)&&(U[oe-1]Y?(U=[],K=[]):w.yData&&(U[0]Y)&&(U=(ee=this.cropData(w.xData,w.yData,de,Y)).xData,K=ee.yData,ne=ee.start,se=!0));let ae=S([k?U.map(k.log2lin):U],()=>w.requireSorting&&!Q&&o(15,!1,w.chart));return{xData:U,yData:K,cropped:se,cropStart:ne,closestPointRange:ae}}processData(h){let w=this.xAxis;if(this.isCartesian&&!this.isDirty&&!w.isDirty&&!this.yAxis.isDirty&&!h)return!1;let b=this.getProcessedData();this.cropped=b.cropped,this.cropStart=b.cropStart,this.processedXData=b.xData,this.processedYData=b.yData,this.closestPointRange=this.basePointRange=b.closestPointRange,f(this,"afterProcessData")}cropData(h,w,b,I){let k=h.length,W,ee,se=0,ne=k;for(W=0;W=b){se=Math.max(0,W-1);break}for(ee=W;eeI){ne=ee+1;break}return{xData:h.slice(se,ne),yData:w.slice(se,ne),start:se,end:ne}}generatePoints(){let h=this.options,w=this.processedData||h.data,b=this.processedXData,I=this.processedYData,k=this.pointClass,W=b.length,ee=this.cropStart||0,se=this.hasGroupedData,ne=h.keys,ce=[],de=h.dataGrouping&&h.dataGrouping.groupAll?ee:0,Y,U,K,Q,oe=this.data;if(!oe&&!se){let ae=[];ae.length=w.length,oe=this.data=ae}for(ne&&se&&(this.options.keys=!1),Q=0;Q0:Q.length)||!ee),U=w||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(fe[oe+W]||K)>=he&&(fe[oe-W]||K)<=le,Y&&U)if(ae=Q.length)for(;ae--;)ie(Q[ae])&&(k[ue++]=Q[ae]);else k[ue++]=Q;let me={activeYData:k,dataMin:y(k),dataMax:L(k)};return f(this,"afterGetExtremes",{dataExtremes:me}),me}applyExtremes(){let h=this.getExtremes();return this.dataMin=h.dataMin,this.dataMax=h.dataMax,h}getFirstValidPoint(h,w=0,b=1){let I=h.length,k=w;for(;k>=0&&k1)&&(W.step=function(Y,U){de&&de.apply(U,arguments),U.prop==="width"&&ne?.element&&ne.attr(k?"height":"width",Y+99)}),se.addClass("highcharts-animating").animate(ce,W)}}afterAnimate(){this.setClip(),V(this.chart.sharedClips,(h,w,b)=>{h&&!this.chart.container.querySelector(`[clip-path="url(#${h.id})"]`)&&(h.destroy(),delete b[w])}),this.finishedAnimating=!0,f(this,"afterAnimate")}drawPoints(h=this.points){let w,b,I,k,W,ee,se,ne=this.chart,ce=ne.styledMode,{colorAxis:de,options:Y}=this,U=Y.marker,K=this[this.specialGroup||"markerGroup"],Q=this.xAxis,oe=Z(U.enabled,!Q||!!Q.isRadial||null,this.closestPointRangePx>=U.enabledThreshold*U.radius);if(U.enabled!==!1||this._hasPointMarkers)for(w=0;w0||b.hasImage)&&(b.graphic=I=ne.renderer.symbol(ae,se.x,se.y,se.width,se.height,ee?W:U).add(K),this.enabledDataSorting&&ne.hasRendered&&(I.attr({x:b.startXPos}),k="animate")),I&&k==="animate"&&I[he?"show":"hide"](he).animate(se),I){let le=this.pointAttribs(b,ce||!b.selected?void 0:"select");ce?de&&I.css({fill:le.fill}):I[k](le)}I&&I.addClass(b.getClassName(),!0)}else I&&(b.graphic=I.destroy())}markerAttribs(h,w){let b=this.options,I=b.marker,k=h.marker||{},W=k.symbol||I.symbol,ee={},se,ne,ce=Z(k.radius,I&&I.radius);w&&(se=I.states[w],ce=Z((ne=k.states&&k.states[w])&&ne.radius,se&&se.radius,ce&&ce+(se&&se.radiusPlus||0))),h.hasImage=W&&W.indexOf("url")===0,h.hasImage&&(ce=0);let de=h.pos();return ie(ce)&&de&&(b.crisp&&(de[0]=z(de[0],h.hasImage?0:W==="rect"?I?.lineWidth||0:1)),ee.x=de[0]-ce,ee.y=de[1]-ce),ce&&(ee.width=ee.height=2*ce),ee}pointAttribs(h,w){let b=this.options.marker,I=h&&h.options,k=I&&I.marker||{},W=I&&I.color,ee=h&&h.color,se=h&&h.zone&&h.zone.color,ne,ce,de=this.color,Y,U,K=Z(k.lineWidth,b.lineWidth),Q=1;return de=W||se||ee||de,Y=k.fillColor||b.fillColor||de,U=k.lineColor||b.lineColor||de,w=w||"normal",ne=b.states[w]||{},K=Z((ce=k.states&&k.states[w]||{}).lineWidth,ne.lineWidth,K+Z(ce.lineWidthPlus,ne.lineWidthPlus,0)),Y=ce.fillColor||ne.fillColor||Y,{stroke:U=ce.lineColor||ne.lineColor||U,"stroke-width":K,fill:Y,opacity:Q=Z(ce.opacity,ne.opacity,Q)}}destroy(h){let w,b,I,k=this,W=k.chart,ee=/AppleWebKit\/533/.test(M.navigator.userAgent),se=k.data||[];for(f(k,"destroy",{keepEventsForUpdate:h}),this.removeEvents(h),(k.axisTypes||[]).forEach(function(ne){(I=k[ne])&&I.series&&(c(I.series,k),I.isDirty=I.forceRedraw=!0)}),k.legendItem&&k.chart.legend.destroyItem(k),w=se.length;w--;)(b=se[w])&&b.destroy&&b.destroy();for(let ne of k.zones)u(ne,void 0,!0);J.clearTimeout(k.animationTimeout),V(k,function(ne,ce){ne instanceof X&&!ne.survive&&ne[ee&&ce==="group"?"hide":"destroy"]()}),W.hoverSeries===k&&(W.hoverSeries=void 0),c(W.series,k),W.orderItems("series"),V(k,function(ne,ce){h&&ce==="hcEvents"||delete k[ce]})}applyZones(){let{area:h,chart:w,graph:b,zones:I,points:k,xAxis:W,yAxis:ee,zoneAxis:se}=this,{inverted:ne,renderer:ce}=w,de=this[`${se}Axis`],{isXAxis:Y,len:U=0}=de||{},K=(b?.strokeWidth()||0)/2+1,Q=(oe,ae=0,he=0)=>{ne&&(he=U-he);let{translated:le=0,lineClip:ue}=oe,pe=he-le;ue?.push(["L",ae,Math.abs(pe){ue.forEach((pe,fe)=>{(pe[0]==="M"||pe[0]==="L")&&(ue[fe]=[pe[0],Y?U-pe[1]:pe[1],Y?pe[2]:U-pe[2]])})};if(I.forEach(ue=>{ue.lineClip=[],ue.translated=P(de.toPixels(Z(ue.value,oe),!0)||0,0,U)}),b&&!this.showLine&&b.hide(),h&&h.hide(),se==="y"&&k.length{let pe=ue.lineClip||[],fe=Math.round(ue.translated||0);W.reversed&&pe.reverse();let{clip:me,simpleClip:ge}=ue,be=0,ve=0,ye=W.len,Ae=ee.len;Y?(be=fe,ye=le):(ve=fe,Ae=le);let Me=[["M",be,ve],["L",ye,ve],["L",ye,Ae],["L",be,Ae],["Z"]],Le=[Me[0],...pe,Me[1],Me[2],...he,Me[3],Me[4]];he=pe.reverse(),le=fe,ne&&(ae(Le),h&&ae(Me)),me?(me.animate({d:Le}),ge?.animate({d:Me})):(me=ue.clip=ce.path(Le),h&&(ge=ue.simpleClip=ce.path(Me))),b&&ue.graph?.clip(me),h&&ue.area?.clip(ge)})}else this.visible&&(b&&b.show(),h&&h.show())}plotGroup(h,w,b,I,k){let W=this[h],ee=!W,se={visibility:b,zIndex:I||.1};return R(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(se.opacity=this.opacity),W||(this[h]=W=this.chart.renderer.g().add(k)),W.addClass("highcharts-"+w+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(R(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(W.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),W.attr(se)[ee?"attr":"animate"](this.getPlotBox(w)),W}getPlotBox(h){let w=this.xAxis,b=this.yAxis,I=this.chart,k=I.inverted&&!I.polar&&w&&this.invertible&&h==="series";return I.inverted&&(w=b,b=this.xAxis),{translateX:w?w.left:I.plotLeft,translateY:b?b.top:I.plotTop,rotation:k?90:0,rotationOriginX:k?(w.len-b.len)/2:0,rotationOriginY:k?(w.len+b.len)/2:0,scaleX:k?-1:1,scaleY:1}}removeEvents(h){let{eventsToUnbind:w}=this;h||re(this),w.length&&(w.forEach(b=>{b()}),w.length=0)}render(){let h=this,{chart:w,options:b,hasRendered:I}=h,k=A(b.animation),W=h.visible?"inherit":"hidden",ee=b.zIndex,se=w.seriesGroup,ne=h.finishedAnimating?0:k.duration;f(this,"render"),h.plotGroup("group","series",W,ee,se),h.markerGroup=h.plotGroup("markerGroup","markers",W,ee,se),b.clip!==!1&&h.setClip(),ne&&h.animate?.(!0),h.drawGraph&&(h.drawGraph(),h.applyZones()),h.visible&&h.drawPoints(),h.drawDataLabels?.(),h.redrawPoints?.(),b.enableMouseTracking&&h.drawTracker?.(),ne&&h.animate?.(),I||(ne&&k.defer&&(ne+=k.defer),h.animationTimeout=g(()=>{h.afterAnimate()},ne||0)),h.isDirty=!1,h.hasRendered=!0,f(h,"afterRender")}redraw(){let h=this.isDirty||this.isDirtyData;this.translate(),this.render(),h&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(h,w){let{xAxis:b,yAxis:I}=this,k=this.chart.inverted;return this.searchKDTree({clientX:k?b.len-h.chartY+b.pos:h.chartX-b.pos,plotY:k?I.len-h.chartX+I.pos:h.chartY-I.pos},w,h)}buildKDTree(h){this.buildingKdTree=!0;let w=this,b=w.options.findNearestPointBy.indexOf("y")>-1?2:1;delete w.kdTree,g(function(){w.kdTree=function I(k,W,ee){let se,ne,ce=k?.length;if(ce)return se=w.kdAxisArray[W%ee],k.sort((de,Y)=>(de[se]||0)-(Y[se]||0)),{point:k[ne=Math.floor(ce/2)],left:I(k.slice(0,ne),W+1,ee),right:I(k.slice(ne+1),W+1,ee)}}(w.getValidPoints(void 0,!w.directTouch),b,b),w.buildingKdTree=!1},w.options.kdNow||h?.type==="touchstart"?0:1)}searchKDTree(h,w,b){let I=this,[k,W]=this.kdAxisArray,ee=w?"distX":"dist",se=(I.options.findNearestPointBy||"").indexOf("y")>-1?2:1,ne=!!I.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(b),this.kdTree)return function ce(de,Y,U,K){let Q=Y.point,oe=I.kdAxisArray[U%K],ae,he,le=Q;(function(me,ge){let be=me[k],ve=ge[k],ye=R(be)&&R(ve)?be-ve:null,Ae=me[W],Me=ge[W],Le=R(Ae)&&R(Me)?Ae-Me:0,je=ne&&ge.marker?.radius||0;ge.dist=Math.sqrt((ye&&ye*ye||0)+Le*Le)-je,ge.distX=R(ye)?Math.abs(ye)-je:Number.MAX_VALUE})(de,Q);let ue=(de[oe]||0)-(Q[oe]||0)+(ne&&Q.marker?.radius||0),pe=ue<0?"left":"right",fe=ue<0?"right":"left";return Y[pe]&&(le=(ae=ce(de,Y[pe],U+1,K))[ee]=0&&W<=(I?I.len:w.plotHeight)&&k>=0&&k<=(b?b.len:w.plotWidth)}drawTracker(){let h=this,w=h.options,b=w.trackByArea,I=[].concat((b?h.areaPath:h.graphPath)||[]),k=h.chart,W=k.pointer,ee=k.renderer,se=k.options.tooltip?.snap||0,ne=()=>{w.enableMouseTracking&&k.hoverSeries!==h&&h.onMouseOver()},ce="rgba(192,192,192,"+(C?1e-4:.002)+")",de=h.tracker;de?de.attr({d:I}):h.graph&&(h.tracker=de=ee.path(I).attr({visibility:h.visible?"inherit":"hidden",zIndex:2}).addClass(b?"highcharts-tracker-area":"highcharts-tracker-line").add(h.group),k.styledMode||de.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ce,fill:b?ce:"none","stroke-width":h.graph.strokeWidth()+(b?0:2*se)}),[h.tracker,h.markerGroup,h.dataLabelsGroup].forEach(Y=>{Y&&(Y.addClass("highcharts-tracker").on("mouseover",ne).on("mouseout",U=>{W?.onTrackerMouseOut(U)}),w.cursor&&!k.styledMode&&Y.css({cursor:w.cursor}),Y.on("touchstart",ne))})),f(this,"afterDrawTracker")}addPoint(h,w,b,I,k){let W,ee,se=this.options,ne=this.data,ce=this.chart,de=this.xAxis,Y=de&&de.hasNames&&de.names,U=se.data,K=this.xData;w=Z(w,!0);let Q={series:this};this.pointClass.prototype.applyOptions.apply(Q,[h]);let oe=Q.x;if(ee=K.length,this.requireSorting&&oeoe;)ee--;this.updateParallelArrays(Q,"splice",[ee,0,0]),this.updateParallelArrays(Q,ee),Y&&Q.name&&(Y[oe]=Q.name),U.splice(ee,0,h),(W||this.processedData)&&(this.data.splice(ee,0,null),this.processData()),se.legendType==="point"&&this.generatePoints(),b&&(ne[0]&&ne[0].remove?ne[0].remove(!1):(ne.shift(),this.updateParallelArrays(Q,"shift"),U.shift())),k!==!1&&f(this,"addPoint",{point:Q}),this.isDirty=!0,this.isDirtyData=!0,w&&ce.redraw(I)}removePoint(h,w,b){let I=this,k=I.data,W=k[h],ee=I.points,se=I.chart,ne=function(){ee&&ee.length===k.length&&ee.splice(h,1),k.splice(h,1),I.options.data.splice(h,1),I.updateParallelArrays(W||{series:I},"splice",[h,1]),W&&W.destroy(),I.isDirty=!0,I.isDirtyData=!0,w&&se.redraw()};$(b,se),w=Z(w,!0),W?W.firePointEvent("remove",null,ne):ne()}remove(h,w,b,I){let k=this,W=k.chart;function ee(){k.destroy(I),W.isDirtyLegend=W.isDirtyBox=!0,W.linkSeries(I),Z(h,!0)&&W.redraw(w)}b!==!1?f(k,"remove",null,ee):ee()}update(h,w){f(this,"update",{options:h=x(h,this.userOptions)});let b=this,I=b.chart,k=b.userOptions,W=b.initialType||b.type,ee=I.options.plotOptions,se=E[W].prototype,ne=b.finishedAnimating&&{animation:!1},ce={},de,Y,U=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],K=h.type||k.type||I.options.chart.type,Q=!(this.hasDerivedData||K&&K!==this.type||h.pointStart!==void 0||h.pointInterval!==void 0||h.relativeXValue!==void 0||h.joinBy||h.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(ae=>b.hasOptionChanged(ae)));K=K||W,Q&&(U.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),h.visible!==!1&&U.push("area","graph"),b.parallelArrays.forEach(function(ae){U.push(ae+"Data")}),h.data&&(h.dataSorting&&n(b.options.dataSorting,h.dataSorting),this.setData(h.data,!1))),h=B(k,{index:k.index===void 0?b.index:k.index,pointStart:ee?.series?.pointStart??k.pointStart??b.xData?.[0]},!Q&&{data:b.options.data},h,ne),Q&&h.data&&(h.data=b.options.data),(U=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(U)).forEach(function(ae){U[ae]=b[ae],delete b[ae]});let oe=!1;if(E[K]){if(oe=K!==b.type,b.remove(!1,!1,!1,!0),oe)if(I.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(b,E[K].prototype);else{let ae=Object.hasOwnProperty.call(b,"hcEvents")&&b.hcEvents;for(Y in se)b[Y]=void 0;n(b,E[K].prototype),ae?b.hcEvents=ae:delete b.hcEvents}}else o(17,!0,I,{missingModuleFor:K});if(U.forEach(function(ae){b[ae]=U[ae]}),b.init(I,h),Q&&this.points)for(let ae of((de=b.options).visible===!1?(ce.graphic=1,ce.dataLabel=1):(this.hasMarkerChanged(de,k)&&(ce.graphic=1),b.hasDataLabels?.()||(ce.dataLabel=1)),this.points))ae&&ae.series&&(ae.resolveColor(),Object.keys(ce).length&&ae.destroyElements(ce),de.showInLegend===!1&&ae.legendItem&&I.legend.destroyItem(ae));b.initialType=W,I.linkSeries(),I.setSortedData(),oe&&b.linkedSeries.length&&(b.isDirtyData=!0),f(this,"afterUpdate"),Z(w,!0)&&I.redraw(!!Q&&void 0)}setName(h){this.name=this.options.name=this.userOptions.name=h,this.chart.isDirtyLegend=!0}hasOptionChanged(h){let w=this.chart,b=this.options[h],I=w.options.plotOptions,k=this.userOptions[h],W=Z(I?.[this.type]?.[h],I?.series?.[h]);return k&&!R(W)?b!==k:b!==Z(W,b)}onMouseOver(){let h=this.chart,w=h.hoverSeries;h.pointer?.setHoverChartIndex(),w&&w!==this&&w.onMouseOut(),this.options.events.mouseOver&&f(this,"mouseOver"),this.setState("hover"),h.hoverSeries=this}onMouseOut(){let h=this.options,w=this.chart,b=w.tooltip,I=w.hoverPoint;w.hoverSeries=null,I&&I.onMouseOut(),this&&h.events.mouseOut&&f(this,"mouseOut"),b&&!this.stickyTracking&&(!b.shared||this.noSharedTooltip)&&b.hide(),w.series.forEach(function(k){k.setState("",!0)})}setState(h,w){let b=this,I=b.options,k=b.graph,W=I.inactiveOtherPoints,ee=I.states,se=Z(ee[h||"normal"]&&ee[h||"normal"].animation,b.chart.options.chart.animation),ne=I.lineWidth,ce=I.opacity;if(h=h||"",b.state!==h&&([b.group,b.markerGroup,b.dataLabelsGroup].forEach(function(de){de&&(b.state&&de.removeClass("highcharts-series-"+b.state),h&&de.addClass("highcharts-series-"+h))}),b.state=h,!b.chart.styledMode)){if(ee[h]&&ee[h].enabled===!1)return;if(h&&(ne=ee[h].lineWidth||ne+(ee[h].lineWidthPlus||0),ce=Z(ee[h].opacity,ce)),k&&!k.dashstyle&&ie(ne))for(let de of[k,...this.zones.map(Y=>Y.graph)])de?.animate({"stroke-width":ne},se);W||[b.group,b.markerGroup,b.dataLabelsGroup,b.labelBySeries].forEach(function(de){de&&de.animate({opacity:ce},se)})}w&&W&&b.points&&b.setAllPointsToState(h||void 0)}setAllPointsToState(h){this.points.forEach(function(w){w.setState&&w.setState(h)})}setVisible(h,w){let b=this,I=b.chart,k=I.options.chart.ignoreHiddenSeries,W=b.visible;b.visible=h=b.options.visible=b.userOptions.visible=h===void 0?!W:h;let ee=h?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(se=>{b[se]?.[ee]()}),(I.hoverSeries===b||I.hoverPoint?.series===b)&&b.onMouseOut(),b.legendItem&&I.legend.colorizeItem(b,h),b.isDirty=!0,b.options.stacking&&I.series.forEach(se=>{se.options.stacking&&se.visible&&(se.isDirty=!0)}),b.linkedSeries.forEach(se=>{se.setVisible(h,!1)}),k&&(I.isDirtyBox=!0),f(b,ee),w!==!1&&I.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(h){this.selected=h=this.options.selected=h===void 0?!this.selected:h,this.checkbox&&(this.checkbox.checked=h),f(this,h?"select":"unselect")}shouldShowTooltip(h,w,b={}){return b.series=this,b.visiblePlotOnly=!0,this.chart.isInsidePlot(h,w,b)}drawLegendSymbol(h,w){_[this.options.legendSymbol||"rectangle"]?.call(this,h,w)}}return v.defaultOptions=te,v.types=G.seriesTypes,v.registerType=G.registerSeriesType,n(v.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:O,requireSorting:!0,sorted:!0}),G.series=v,v}),e(s,"Core/Legend/Legend.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Foundation.js"],s["Core/Globals.js"],s["Core/Series/Series.js"],s["Core/Series/Point.js"],s["Core/Renderer/RendererUtilities.js"],s["Core/Templating.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O,te,G){var X;let{animObject:J,setAnimation:A}=t,{registerEventOptions:$}=r,{composed:j,marginNames:F}=a,{distribute:C}=O,{format:M}=te,{addEvent:E,createElement:L,css:y,defined:P,discardElement:q,find:z,fireEvent:R,isNumber:u,merge:x,pick:c,pushUnique:o,relativeLength:n,stableSort:d,syncTimeout:f}=G;class S{constructor(m,N){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=m,this.setOptions(N),N.enabled&&(this.render(),$(this,N),E(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),E(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(m){let N=c(m.padding,8);this.options=m,this.chart.styledMode||(this.itemStyle=m.itemStyle,this.itemHiddenStyle=x(this.itemStyle,m.itemHiddenStyle)),this.itemMarginTop=m.itemMarginTop,this.itemMarginBottom=m.itemMarginBottom,this.padding=N,this.initialItemY=N-5,this.symbolWidth=c(m.symbolWidth,16),this.pages=[],this.proximate=m.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(m,N){let ie=this.chart;this.setOptions(x(!0,this.options,m)),"events"in this.options&&$(this,this.options),this.destroy(),ie.isDirtyLegend=ie.isDirtyBox=!0,c(N,!0)&&ie.redraw(),R(this,"afterUpdate",{redraw:N})}colorizeItem(m,N){let{area:ie,group:D,label:B,line:V,symbol:Z}=m.legendItem||{};if(D?.[N?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:re={}}=this,p=re.color,{fillColor:g,fillOpacity:v,lineColor:H,marker:h}=m.options,w=b=>(!N&&(b.fill&&(b.fill=p),b.stroke&&(b.stroke=p)),b);B?.css(x(N?this.itemStyle:re)),V?.attr(w({stroke:H||m.color})),Z&&Z.attr(w(h&&Z.isMarker?m.pointAttribs():{fill:m.color})),ie?.attr(w({fill:g||m.color,"fill-opacity":g?1:v??.75}))}R(this,"afterColorizeItem",{item:m,visible:N})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(m){let{group:N,x:ie=0,y:D=0}=m.legendItem||{},B=this.options,V=B.symbolPadding,Z=!B.rtl,re=m.checkbox;if(N&&N.element){let p={translateX:Z?ie:this.legendWidth-ie-2*V-4,translateY:D};N[P(N.translateY)?"animate":"attr"](p,void 0,()=>{R(this,"afterPositionItem",{item:m})})}re&&(re.x=ie,re.y=D)}destroyItem(m){let N=m.checkbox,ie=m.legendItem||{};for(let D of["group","label","line","symbol"])ie[D]&&(ie[D]=ie[D].destroy());N&&q(N),m.legendItem=void 0}destroy(){for(let m of this.getAllItems())this.destroyItem(m);for(let m of["clipRect","up","down","pager","nav","box","title","group"])this[m]&&(this[m]=this[m].destroy());this.display=null}positionCheckboxes(){let m,N=this.group&&this.group.alignAttr,ie=this.clipHeight||this.legendHeight,D=this.titleHeight;N&&(m=N.translateY,this.allItems.forEach(function(B){let V,Z=B.checkbox;Z&&(V=m+D+Z.y+(this.scrollOffset||0)+3,y(Z,{left:N.translateX+B.checkboxOffset+Z.x-20+"px",top:V+"px",display:this.proximate||V>m-6&&V1.5*ce?ne.height:ce))}layoutItem(m){let N=this.options,ie=this.padding,D=N.layout==="horizontal",B=m.itemHeight,V=this.itemMarginBottom,Z=this.itemMarginTop,re=D?c(N.itemDistance,20):0,p=this.maxLegendWidth,g=N.alignColumns&&this.totalItemWidth>p?this.maxItemWidth:m.itemWidth,v=m.legendItem||{};D&&this.itemX-ie+g>p&&(this.itemX=ie,this.lastLineHeight&&(this.itemY+=Z+this.lastLineHeight+V),this.lastLineHeight=0),this.lastItemY=Z+this.itemY+V,this.lastLineHeight=Math.max(B,this.lastLineHeight),v.x=this.itemX,v.y=this.itemY,D?this.itemX+=g:(this.itemY+=Z+B+V,this.lastLineHeight=B),this.offsetWidth=this.widthOption||Math.max((D?this.itemX-ie-(m.checkbox?0:re):g)+ie,this.offsetWidth)}getAllItems(){let m=[];return this.chart.series.forEach(function(N){let ie=N&&N.options;N&&c(ie.showInLegend,!P(ie.linkedTo)&&void 0,!0)&&(m=m.concat((N.legendItem||{}).labels||(ie.legendType==="point"?N.data:N)))}),R(this,"afterGetAllItems",{allItems:m}),m}getAlignment(){let m=this.options;return this.proximate?m.align.charAt(0)+"tv":m.floating?"":m.align.charAt(0)+m.verticalAlign.charAt(0)+m.layout.charAt(0)}adjustMargins(m,N){let ie=this.chart,D=this.options,B=this.getAlignment();B&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(V,Z){V.test(B)&&!P(m[Z])&&(ie[F[Z]]=Math.max(ie[F[Z]],ie.legend[(Z+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][Z]*D[Z%2?"x":"y"]+c(D.margin,12)+N[Z]+(ie.titleOffset[Z]||0)))})}proximatePositions(){let m,N=this.chart,ie=[],D=this.options.align==="left";for(let B of(this.allItems.forEach(function(V){let Z,re,p=D,g,v;V.yAxis&&(V.xAxis.options.reversed&&(p=!p),V.points&&(Z=z(p?V.points:V.points.slice(0).reverse(),function(H){return u(H.plotY)})),re=this.itemMarginTop+V.legendItem.label.getBBox().height+this.itemMarginBottom,v=V.yAxis.top-N.plotTop,g=V.visible?(Z?Z.plotY:V.yAxis.height)+(v-.3*re):v+V.yAxis.height,ie.push({target:g,size:re,item:V}))},this),C(ie,N.plotHeight)))m=B.item.legendItem||{},u(B.pos)&&(m.y=N.plotTop-N.spacing[0]+B.pos)}render(){let m=this.chart,N=m.renderer,ie=this.options,D=this.padding,B=this.getAllItems(),V,Z,re,p=this.group,g,v=this.box;this.itemX=D,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=n(ie.width,m.spacingBox.width-D),g=m.spacingBox.width-2*D-ie.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(g/=2),this.maxLegendWidth=this.widthOption||g,p||(this.group=p=N.g("legend").addClass(ie.className||"").attr({zIndex:7}).add(),this.contentGroup=N.g().attr({zIndex:1}).add(p),this.scrollGroup=N.g().add(this.contentGroup)),this.renderTitle(),d(B,(H,h)=>(H.options&&H.options.legendIndex||0)-(h.options&&h.options.legendIndex||0)),ie.reversed&&B.reverse(),this.allItems=B,this.display=V=!!B.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,B.forEach(this.renderItem,this),B.forEach(this.layoutItem,this),Z=(this.widthOption||this.offsetWidth)+D,re=this.lastItemY+this.lastLineHeight+this.titleHeight,re=this.handleOverflow(re)+D,v||(this.box=v=N.rect().addClass("highcharts-legend-box").attr({r:ie.borderRadius}).add(p)),m.styledMode||v.attr({stroke:ie.borderColor,"stroke-width":ie.borderWidth||0,fill:ie.backgroundColor||"none"}).shadow(ie.shadow),Z>0&&re>0&&v[v.placed?"animate":"attr"](v.crisp.call({},{x:0,y:0,width:Z,height:re},v.strokeWidth())),p[V?"show":"hide"](),m.styledMode&&p.getStyle("display")==="none"&&(Z=re=0),this.legendWidth=Z,this.legendHeight=re,V&&this.align(),this.proximate||this.positionItems(),R(this,"afterRender")}align(m=this.chart.spacingBox){let N=this.chart,ie=this.options,D=m.y;/(lth|ct|rth)/.test(this.getAlignment())&&N.titleOffset[0]>0?D+=N.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&N.titleOffset[2]>0&&(D-=N.titleOffset[2]),D!==m.y&&(m=x(m,{y:D})),N.hasRendered||(this.group.placed=!1),this.group.align(x(ie,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":ie.verticalAlign}),!0,m)}handleOverflow(m){let N=this,ie=this.chart,D=ie.renderer,B=this.options,V=B.y,Z=B.verticalAlign==="top",re=this.padding,p=B.maxHeight,g=B.navigation,v=c(g.animation,!0),H=g.arrowSize||12,h=this.pages,w=this.allItems,b=function(de){typeof de=="number"?ce.attr({height:de}):ce&&(N.clipRect=ce.destroy(),N.contentGroup.clip()),N.contentGroup.div&&(N.contentGroup.div.style.clip=de?"rect("+re+"px,9999px,"+(re+de)+"px,0)":"auto")},I=function(de){return N[de]=D.circle(0,0,1.3*H).translate(H/2,H/2).add(ne),ie.styledMode||N[de].attr("fill","rgba(0,0,0,0.0001)"),N[de]},k,W,ee,se=ie.spacingBox.height+(Z?-V:V)-re,ne=this.nav,ce=this.clipRect;return B.layout!=="horizontal"||B.verticalAlign==="middle"||B.floating||(se/=2),p&&(se=Math.min(se,p)),h.length=0,m&&se>0&&m>se&&g.enabled!==!1?(this.clipHeight=k=Math.max(se-20-this.titleHeight-re,0),this.currentPage=c(this.currentPage,1),this.fullHeight=m,w.forEach((de,Y)=>{let U=(ee=de.legendItem||{}).y||0,K=Math.round(ee.label.getBBox().height),Q=h.length;(!Q||U-h[Q-1]>k&&(W||U)!==h[Q-1])&&(h.push(W||U),Q++),ee.pageIx=Q-1,W&&((w[Y-1].legendItem||{}).pageIx=Q-1),Y===w.length-1&&U+K-h[Q-1]>k&&U>h[Q-1]&&(h.push(U),ee.pageIx=Q),U!==W&&(W=U)}),ce||(ce=N.clipRect=D.clipRect(0,re-2,9999,0),N.contentGroup.clip(ce)),b(k),ne||(this.nav=ne=D.g().attr({zIndex:1}).add(this.group),this.up=D.symbol("triangle",0,0,H,H).add(ne),I("upTracker").on("click",function(){N.scroll(-1,v)}),this.pager=D.text("",15,10).addClass("highcharts-legend-navigation"),!ie.styledMode&&g.style&&this.pager.css(g.style),this.pager.add(ne),this.down=D.symbol("triangle-down",0,0,H,H).add(ne),I("downTracker").on("click",function(){N.scroll(1,v)})),N.scroll(0),m=se):ne&&(b(),this.nav=ne.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),m}scroll(m,N){let ie=this.chart,D=this.pages,B=D.length,V=this.clipHeight,Z=this.options.navigation,re=this.pager,p=this.padding,g=this.currentPage+m;g>B&&(g=B),g>0&&(N!==void 0&&A(N,ie),this.nav.attr({translateX:p,translateY:V+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(v){v.attr({class:g===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),re.attr({text:g+"/"+B}),[this.down,this.downTracker].forEach(function(v){v.attr({x:18+this.pager.getBBox().width,class:g===B?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),ie.styledMode||(this.up.attr({fill:g===1?Z.inactiveColor:Z.activeColor}),this.upTracker.css({cursor:g===1?"default":"pointer"}),this.down.attr({fill:g===B?Z.inactiveColor:Z.activeColor}),this.downTracker.css({cursor:g===B?"default":"pointer"})),this.scrollOffset=-D[g-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=g,this.positionCheckboxes(),f(()=>{R(this,"afterScroll",{currentPage:g})},J(c(N,ie.renderer.globalAnimation,!0)).duration))}setItemEvents(m,N,ie){let D=this,B=m.legendItem||{},V=D.chart.renderer.boxWrapper,Z=m instanceof _,re=m instanceof l,p="highcharts-legend-"+(Z?"point":"series")+"-active",g=D.chart.styledMode,v=ie?[N,B.symbol]:[B.group],H=h=>{D.allItems.forEach(w=>{m!==w&&[w].concat(w.linkedSeries||[]).forEach(b=>{b.setState(h,!Z)})})};for(let h of v)h&&h.on("mouseover",function(){m.visible&&H("inactive"),m.setState("hover"),m.visible&&V.addClass(p),g||N.css(D.options.itemHoverStyle)}).on("mouseout",function(){D.chart.styledMode||N.css(x(m.visible?D.itemStyle:D.itemHiddenStyle)),H(""),V.removeClass(p),m.setState()}).on("click",function(w){let b=function(){m.setVisible&&m.setVisible(),H(m.visible?"inactive":"")};V.removeClass(p),R(D,"itemClick",{browserEvent:w,legendItem:m},b),Z?m.firePointEvent("legendItemClick",{browserEvent:w}):re&&R(m,"legendItemClick",{browserEvent:w})})}createCheckboxForItem(m){m.checkbox=L("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:m.selected,defaultChecked:m.selected},this.options.itemCheckboxStyle,this.chart.container),E(m.checkbox,"click",function(N){let ie=N.target;R(m.series||m,"checkboxClick",{checked:ie.checked,item:m},function(){m.select()})})}}return(X=S||(S={})).compose=function(T){o(j,"Core.Legend")&&E(T,"beforeMargins",function(){this.legend=new X(this,this.options.legend)})},S}),e(s,"Core/Chart/Chart.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Axis/Axis.js"],s["Core/Defaults.js"],s["Core/Templating.js"],s["Core/Foundation.js"],s["Core/Globals.js"],s["Core/Renderer/RendererRegistry.js"],s["Core/Series/Series.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Renderer/SVG/SVGRenderer.js"],s["Core/Time.js"],s["Core/Utilities.js"],s["Core/Renderer/HTML/AST.js"],s["Core/Axis/Tick.js"]],function(t,r,a,l,_,O,te,G,X,J,A,$,j,F){let{animate:C,animObject:M,setAnimation:E}=t,{defaultOptions:L,defaultTime:y}=a,{numberFormat:P}=l,{registerEventOptions:q}=_,{charts:z,doc:R,marginNames:u,svg:x,win:c}=O,{seriesTypes:o}=X,{addEvent:n,attr:d,createElement:f,css:S,defined:T,diffObjects:m,discardElement:N,erase:ie,error:D,extend:B,find:V,fireEvent:Z,getStyle:re,isArray:p,isNumber:g,isObject:v,isString:H,merge:h,objectEach:w,pick:b,pInt:I,relativeLength:k,removeEvent:W,splat:ee,syncTimeout:se,uniqueKey:ne}=$;class ce{static chart(Y,U,K){return new ce(Y,U,K)}constructor(Y,U,K){this.sharedClips={};let Q=[...arguments];(H(Y)||Y.nodeName)&&(this.renderTo=Q.shift()),this.init(Q[0],Q[1])}setZoomOptions(){let Y=this.options.chart,U=Y.zooming;this.zooming=ze(we({},U),{type:b(Y.zoomType,U.type),key:b(Y.zoomKey,U.key),pinchType:b(Y.pinchType,U.pinchType),singleTouch:b(Y.zoomBySingleTouch,U.singleTouch,!1),resetButton:h(U.resetButton,Y.resetZoomButton)})}init(Y,U){Z(this,"init",{args:arguments},function(){let K=h(L,Y),Q=K.chart;this.userOptions=B({},Y),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=U,this.isResizing=0,this.options=K,this.axes=[],this.series=[],this.time=Y.time&&Object.keys(Y.time).length?new A(Y.time):O.time,this.numberFormatter=Q.numberFormatter||P,this.styledMode=Q.styledMode,this.hasCartesianSeries=Q.showAxes,this.index=z.length,z.push(this),O.chartCount++,q(this,Q),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Z(this,"afterInit"),this.firstRender()})}initSeries(Y){let U=this.options.chart,K=Y.type||U.type,Q=o[K];Q||D(17,!0,this,{missingModuleFor:K});let oe=new Q;return typeof oe.init=="function"&&oe.init(this,Y),oe}setSortedData(){this.getSeriesOrderByLinks().forEach(function(Y){Y.points||Y.data||!Y.enabledDataSorting||Y.setData(Y.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(Y,U){return Y.linkedSeries.length||U.linkedSeries.length?U.linkedSeries.length-Y.linkedSeries.length:0})}orderItems(Y,U=0){let K=this[Y],Q=this.options[Y]=ee(this.options[Y]).slice(),oe=this.userOptions[Y]=this.userOptions[Y]?ee(this.userOptions[Y]).slice():[];if(this.hasRendered&&(Q.splice(U),oe.splice(U)),K)for(let ae=U,he=K.length;ae=Math.max(ue+ae,ye.pos)&&Ae<=Math.min(ue+ae+me.width,ye.pos+ye.len)||(ve.isInsidePlot=!1)}if(!K.ignoreY&&ve.isInsidePlot){let ye=!Q&&K.axis&&!K.axis.isXAxis&&K.axis||fe&&(Q?fe.xAxis:fe.yAxis)||{pos:he,len:1/0},Ae=K.paneCoordinates?ye.pos+be:he+be;Ae>=Math.max(pe+he,ye.pos)&&Ae<=Math.min(pe+he+me.height,ye.pos+ye.len)||(ve.isInsidePlot=!1)}return Z(this,"afterIsInsidePlot",ve),ve.isInsidePlot}redraw(Y){Z(this,"beforeRedraw");let U=this.hasCartesianSeries?this.axes:this.colorAxis||[],K=this.series,Q=this.pointer,oe=this.legend,ae=this.userOptions.legend,he=this.renderer,le=he.isHidden(),ue=[],pe,fe,me,ge=this.isDirtyBox,be=this.isDirtyLegend,ve;for(he.rootFontSize=he.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),E(!!this.hasRendered&&Y,this),le&&this.temporaryDisplay(),this.layOutTitles(!1),me=K.length;me--;)if(((ve=K[me]).options.stacking||ve.options.centerInCategory)&&(fe=!0,ve.isDirty)){pe=!0;break}if(pe)for(me=K.length;me--;)(ve=K[me]).options.stacking&&(ve.isDirty=!0);K.forEach(function(ye){ye.isDirty&&(ye.options.legendType==="point"?(typeof ye.updateTotals=="function"&&ye.updateTotals(),be=!0):ae&&(ae.labelFormatter||ae.labelFormat)&&(be=!0)),ye.isDirtyData&&Z(ye,"updatedData")}),be&&oe&&oe.options.enabled&&(oe.render(),this.isDirtyLegend=!1),fe&&this.getStacks(),U.forEach(function(ye){ye.updateNames(),ye.setScale()}),this.getMargins(),U.forEach(function(ye){ye.isDirty&&(ge=!0)}),U.forEach(function(ye){let Ae=ye.min+","+ye.max;ye.extKey!==Ae&&(ye.extKey=Ae,ue.push(function(){Z(ye,"afterSetExtremes",B(ye.eventArgs,ye.getExtremes())),delete ye.eventArgs})),(ge||fe)&&ye.redraw()}),ge&&this.drawChartBox(),Z(this,"predraw"),K.forEach(function(ye){(ge||ye.isDirty)&&ye.visible&&ye.redraw(),ye.isDirtyData=!1}),Q&&Q.reset(!0),he.draw(),Z(this,"redraw"),Z(this,"render"),le&&this.temporaryDisplay(!0),ue.forEach(function(ye){ye.call()})}get(Y){let U=this.series;function K(oe){return oe.id===Y||oe.options&&oe.options.id===Y}let Q=V(this.axes,K)||V(this.series,K);for(let oe=0;!Q&&oe(U.getPointsCollection().forEach(K=>{b(K.selectedStaging,K.selected)&&Y.push(K)}),Y),[])}getSelectedSeries(){return this.series.filter(function(Y){return Y.selected})}setTitle(Y,U,K){this.applyDescription("title",Y),this.applyDescription("subtitle",U),this.applyDescription("caption",void 0),this.layOutTitles(K)}applyDescription(Y,U){let K=this,Q=this.options[Y]=h(this.options[Y],U),oe=this[Y];oe&&U&&(this[Y]=oe=oe.destroy()),Q&&!oe&&((oe=this.renderer.text(Q.text,0,0,Q.useHTML).attr({align:Q.align,class:"highcharts-"+Y,zIndex:Q.zIndex||4}).add()).update=function(ae,he){K.applyDescription(Y,ae),K.layOutTitles(he)},this.styledMode||oe.css(B(Y==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},Q.style)),this[Y]=oe)}layOutTitles(Y=!0){let U=[0,0,0],K=this.renderer,Q=this.spacingBox;["title","subtitle","caption"].forEach(function(ae){let he=this[ae],le=this.options[ae],ue=le.verticalAlign||"top",pe=ae==="title"?ue==="top"?-3:0:ue==="top"?U[0]+2:0;if(he){he.css({width:(le.width||Q.width+(le.widthAdjust||0))+"px"});let fe=K.fontMetrics(he).b,me=Math.round(he.getBBox(le.useHTML).height);he.align(B({y:ue==="bottom"?fe:pe+fe,height:me},le),!1,"spacingBox"),le.floating||(ue==="top"?U[0]=Math.ceil(U[0]+me):ue==="bottom"&&(U[2]=Math.ceil(U[2]+me)))}},this),U[0]&&(this.options.title.verticalAlign||"top")==="top"&&(U[0]+=this.options.title.margin),U[2]&&this.options.caption.verticalAlign==="bottom"&&(U[2]+=this.options.caption.margin);let oe=!this.titleOffset||this.titleOffset.join(",")!==U.join(",");this.titleOffset=U,Z(this,"afterLayOutTitles"),!this.isDirtyBox&&oe&&(this.isDirtyBox=this.isDirtyLegend=oe,this.hasRendered&&Y&&this.isDirtyBox&&this.redraw())}getContainerBox(){let Y=[].map.call(this.renderTo.children,K=>{if(K!==this.container){let Q=K.style.display;return K.style.display="none",[K,Q]}}),U={width:re(this.renderTo,"width",!0)||0,height:re(this.renderTo,"height",!0)||0};return Y.filter(Boolean).forEach(([K,Q])=>{K.style.display=Q}),U}getChartSize(){let Y=this.options.chart,U=Y.width,K=Y.height,Q=this.getContainerBox(),oe=Q.height>1&&!(!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%");this.chartWidth=Math.max(0,U||Q.width||600),this.chartHeight=Math.max(0,k(K,this.chartWidth)||(oe?Q.height:400)),this.containerBox=Q}temporaryDisplay(Y){let U=this.renderTo,K;if(Y)for(;U&&U.style;)U.hcOrigStyle&&(S(U,U.hcOrigStyle),delete U.hcOrigStyle),U.hcOrigDetached&&(R.body.removeChild(U),U.hcOrigDetached=!1),U=U.parentNode;else for(;U&&U.style&&(R.body.contains(U)||U.parentNode||(U.hcOrigDetached=!0,R.body.appendChild(U)),(re(U,"display",!1)==="none"||U.hcOricDetached)&&(U.hcOrigStyle={display:U.style.display,height:U.style.height,overflow:U.style.overflow},K={display:"block",overflow:"hidden"},U!==this.renderTo&&(K.height=0),S(U,K),U.offsetWidth||U.style.setProperty("display","block","important")),(U=U.parentNode)!==R.body););}setClassName(Y){this.container.className="highcharts-container "+(Y||"")}getContainer(){let Y=this.options,U=Y.chart,K="data-highcharts-chart",Q=ne(),oe,ae=this.renderTo;ae||(this.renderTo=ae=U.renderTo),H(ae)&&(this.renderTo=ae=R.getElementById(ae)),ae||D(13,!0,this);let he=I(d(ae,K));g(he)&&z[he]&&z[he].hasRendered&&z[he].destroy(),d(ae,K,this.index),ae.innerHTML=j.emptyHTML,U.skipClone||ae.offsetWidth||this.temporaryDisplay(),this.getChartSize();let le=this.chartHeight,ue=this.chartWidth;S(ae,{overflow:"hidden"}),this.styledMode||(oe=B({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",padding:"0px"},U.style||{}));let pe=f("div",{id:Q},oe,ae);this.container=pe,this.getChartSize(),ue===this.chartWidth||(ue=this.chartWidth,this.styledMode||S(pe,{width:b(U.style?.width,ue+"px")})),this.containerBox=this.getContainerBox(),this._cursor=pe.style.cursor;let fe=U.renderer||!x?te.getRendererType(U.renderer):J;if(this.renderer=new fe(pe,ue,le,void 0,U.forExport,Y.exporting&&Y.exporting.allowHTML,this.styledMode),E(void 0,this),this.setClassName(U.className),this.styledMode)for(let me in Y.defs)this.renderer.definition(Y.defs[me]);else this.renderer.setStyle(U.style);this.renderer.chartIndex=this.index,Z(this,"afterGetContainer")}getMargins(Y){let{spacing:U,margin:K,titleOffset:Q}=this;this.resetMargins(),Q[0]&&!T(K[0])&&(this.plotTop=Math.max(this.plotTop,Q[0]+U[0])),Q[2]&&!T(K[2])&&(this.marginBottom=Math.max(this.marginBottom,Q[2]+U[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(K,U),Z(this,"getMargins"),Y||this.getAxisMargins()}getAxisMargins(){let Y=this,U=Y.axisOffset=[0,0,0,0],K=Y.colorAxis,Q=Y.margin,oe=function(ae){ae.forEach(function(he){he.visible&&he.getOffset()})};Y.hasCartesianSeries?oe(Y.axes):K&&K.length&&oe(K),u.forEach(function(ae,he){T(Q[he])||(Y[ae]+=U[he])}),Y.setChartSize()}getOptions(){return m(this.userOptions,L)}reflow(Y){let U=this,K=U.containerBox,Q=U.getContainerBox();delete U.pointer?.chartPosition,!U.isPrinting&&!U.isResizing&&K&&Q.width&&((Q.width!==K.width||Q.height!==K.height)&&($.clearTimeout(U.reflowTimeout),U.reflowTimeout=se(function(){U.container&&U.setSize(void 0,void 0,!1)},Y?100:0)),U.containerBox=Q)}setReflow(){let Y=this,U=K=>{Y.options?.chart.reflow&&Y.hasLoaded&&Y.reflow(K)};if(typeof ResizeObserver=="function")new ResizeObserver(U).observe(Y.renderTo);else{let K=n(c,"resize",U);n(this,"destroy",K)}}setSize(Y,U,K){let Q=this,oe=Q.renderer;Q.isResizing+=1,E(K,Q);let ae=oe.globalAnimation;Q.oldChartHeight=Q.chartHeight,Q.oldChartWidth=Q.chartWidth,Y!==void 0&&(Q.options.chart.width=Y),U!==void 0&&(Q.options.chart.height=U),Q.getChartSize();let{chartWidth:he,chartHeight:le,scrollablePixelsX:ue=0,scrollablePixelsY:pe=0}=Q;(Q.isDirtyBox||he!==Q.oldChartWidth||le!==Q.oldChartHeight)&&(Q.styledMode||(ae?C:S)(Q.container,{width:`${he+ue}px`,height:`${le+pe}px`},ae),Q.setChartSize(!0),oe.setSize(he,le,ae),Q.axes.forEach(function(fe){fe.isDirty=!0,fe.setScale()}),Q.isDirtyLegend=!0,Q.isDirtyBox=!0,Q.layOutTitles(),Q.getMargins(),Q.redraw(ae),Q.oldChartHeight=void 0,Z(Q,"resize"),setTimeout(()=>{Q&&Z(Q,"endResize")},M(ae).duration)),Q.isResizing-=1}setChartSize(Y){let U,K,Q,oe,{chartHeight:ae,chartWidth:he,inverted:le,spacing:ue,renderer:pe}=this,fe=this.clipOffset,me=Math[le?"floor":"round"];this.plotLeft=U=Math.round(this.plotLeft),this.plotTop=K=Math.round(this.plotTop),this.plotWidth=Q=Math.max(0,Math.round(he-U-this.marginRight)),this.plotHeight=oe=Math.max(0,Math.round(ae-K-this.marginBottom)),this.plotSizeX=le?oe:Q,this.plotSizeY=le?Q:oe,this.spacingBox=pe.spacingBox={x:ue[3],y:ue[0],width:he-ue[3]-ue[1],height:ae-ue[0]-ue[2]},this.plotBox=pe.plotBox={x:U,y:K,width:Q,height:oe},fe&&(this.clipBox={x:me(fe[3]),y:me(fe[0]),width:me(this.plotSizeX-fe[1]-fe[3]),height:me(this.plotSizeY-fe[0]-fe[2])}),Y||(this.axes.forEach(function(ge){ge.setAxisSize(),ge.setAxisTranslation()}),pe.alignElements()),Z(this,"afterSetChartSize",{skipAxes:Y})}resetMargins(){Z(this,"resetMargins");let Y=this,U=Y.options.chart,K=U.plotBorderWidth||0,Q=K/2;["margin","spacing"].forEach(function(oe){let ae=U[oe],he=v(ae)?ae:[ae,ae,ae,ae];["Top","Right","Bottom","Left"].forEach(function(le,ue){Y[oe][ue]=b(U[oe+le],he[ue])})}),u.forEach(function(oe,ae){Y[oe]=b(Y.margin[ae],Y.spacing[ae])}),Y.axisOffset=[0,0,0,0],Y.clipOffset=[Q,Q,Q,Q],Y.plotBorderWidth=K}drawChartBox(){let Y=this.options.chart,U=this.renderer,K=this.chartWidth,Q=this.chartHeight,oe=this.styledMode,ae=this.plotBGImage,he=Y.backgroundColor,le=Y.plotBackgroundColor,ue=Y.plotBackgroundImage,pe=this.plotLeft,fe=this.plotTop,me=this.plotWidth,ge=this.plotHeight,be=this.plotBox,ve=this.clipRect,ye=this.clipBox,Ae=this.chartBackground,Me=this.plotBackground,Le=this.plotBorder,je,Ye,qe,_e="animate";Ae||(this.chartBackground=Ae=U.rect().addClass("highcharts-background").add(),_e="attr"),oe?je=Ye=Ae.strokeWidth():(Ye=(je=Y.borderWidth||0)+(Y.shadow?8:0),qe={fill:he||"none"},(je||Ae["stroke-width"])&&(qe.stroke=Y.borderColor,qe["stroke-width"]=je),Ae.attr(qe).shadow(Y.shadow)),Ae[_e]({x:Ye/2,y:Ye/2,width:K-Ye-je%2,height:Q-Ye-je%2,r:Y.borderRadius}),_e="animate",Me||(_e="attr",this.plotBackground=Me=U.rect().addClass("highcharts-plot-background").add()),Me[_e](be),!oe&&(Me.attr({fill:le||"none"}).shadow(Y.plotShadow),ue&&(ae?(ue!==ae.attr("href")&&ae.attr("href",ue),ae.animate(be)):this.plotBGImage=U.image(ue,pe,fe,me,ge).add())),ve?ve.animate({width:ye.width,height:ye.height}):this.clipRect=U.clipRect(ye),_e="animate",Le||(_e="attr",this.plotBorder=Le=U.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),oe||Le.attr({stroke:Y.plotBorderColor,"stroke-width":Y.plotBorderWidth||0,fill:"none"}),Le[_e](Le.crisp({x:pe,y:fe,width:me,height:ge},-Le.strokeWidth())),this.isDirtyBox=!1,Z(this,"afterDrawChartBox")}propFromSeries(){let Y,U,K,Q=this,oe=Q.options.chart,ae=Q.options.series;["inverted","angular","polar"].forEach(function(he){for(U=o[oe.type],K=oe[he]||U&&U.prototype[he],Y=ae&&ae.length;!K&&Y--;)(U=o[ae[Y].type])&&U.prototype[he]&&(K=!0);Q[he]=K})}linkSeries(Y){let U=this,K=U.series;K.forEach(function(Q){Q.linkedSeries.length=0}),K.forEach(function(Q){let{linkedTo:oe}=Q.options;if(H(oe)){let ae;(ae=oe===":previous"?U.series[Q.index-1]:U.get(oe))&&ae.linkedParent!==Q&&(ae.linkedSeries.push(Q),Q.linkedParent=ae,ae.enabledDataSorting&&Q.setDataSortingOptions(),Q.visible=b(Q.options.visible,ae.options.visible,Q.visible))}}),Z(this,"afterLinkSeries",{isUpdating:Y})}renderSeries(){this.series.forEach(function(Y){Y.translate(),Y.render()})}render(){let Y=this.axes,U=this.colorAxis,K=this.renderer,Q=this.options.chart.axisLayoutRuns||2,oe=pe=>{pe.forEach(fe=>{fe.visible&&fe.render()})},ae=0,he=!0,le,ue=0;for(let pe of(this.setTitle(),Z(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),Y)){let{options:fe}=pe,{labels:me}=fe;if(this.hasCartesianSeries&&pe.horiz&&pe.visible&&me.enabled&&pe.series.length&&pe.coll!=="colorAxis"&&!this.polar){ae=fe.tickLength,pe.createGroups();let ge=new F(pe,0,"",!0),be=ge.createLabel("x",me);if(ge.destroy(),be&&b(me.reserveSpace,!g(fe.crossing))&&(ae=be.getBBox().height+me.distance+Math.max(fe.offset||0,0)),ae){be?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-ae,0);(he||le||Q>1)&&ue(ue?1:1.1),le=fe/this.plotHeight>(ue?1:1.05),ue++}this.drawChartBox(),this.hasCartesianSeries?oe(Y):U&&U.length&&oe(U),this.seriesGroup||(this.seriesGroup=K.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(Y){let U=this,K=h(!0,this.options.credits,Y);K.enabled&&!this.credits&&(this.credits=this.renderer.text(K.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){K.href&&(c.location.href=K.href)}).attr({align:K.position.align,zIndex:8}),U.styledMode||this.credits.css(K.style),this.credits.add().align(K.position),this.credits.update=function(Q){U.credits=U.credits.destroy(),U.addCredits(Q)})}destroy(){let Y,U=this,K=U.axes,Q=U.series,oe=U.container,ae=oe&&oe.parentNode;for(Z(U,"destroy"),U.renderer.forExport?ie(z,U):z[U.index]=void 0,O.chartCount--,U.renderTo.removeAttribute("data-highcharts-chart"),W(U),Y=K.length;Y--;)K[Y]=K[Y].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),Y=Q.length;Y--;)Q[Y]=Q[Y].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(he){let le=U[he];le&&le.destroy&&(U[he]=le.destroy())}),oe&&(oe.innerHTML=j.emptyHTML,W(oe),ae&&N(oe)),w(U,function(he,le){delete U[le]})}firstRender(){let Y=this,U=Y.options;Y.getContainer(),Y.resetMargins(),Y.setChartSize(),Y.propFromSeries(),Y.getAxes();let K=p(U.series)?U.series:[];U.series=[],K.forEach(function(Q){Y.initSeries(Q)}),Y.linkSeries(),Y.setSortedData(),Z(Y,"beforeRender"),Y.render(),Y.pointer?.getChartPosition(),Y.renderer.imgCount||Y.hasLoaded||Y.onload(),Y.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(Y){Y&&this.index!==void 0&&Y.apply(this,[this])},this),Z(this,"load"),Z(this,"render"),T(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:Y,title:U}=this;!Y||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(U&&U.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(Y,U){let K=this,Q=typeof U=="object"?U:{enabled:U,type:"x"},oe=Q.type,ae=oe&&K[{x:"xAxis",xy:"axes",y:"yAxis"}[oe]].filter(le=>le.options.panningEnabled&&!le.options.isInternal),he=K.options.chart;he?.panning&&(he.panning=Q),Z(this,"pan",{originalEvent:Y},()=>{K.transform({axes:ae,event:Y,to:{x:Y.chartX-(K.mouseDownX||0),y:Y.chartY-(K.mouseDownY||0)},trigger:"pan"}),S(K.container,{cursor:"move"})})}transform(Y){let{axes:U=this.axes,event:K,from:Q={},reset:oe,selection:ae,to:he={},trigger:le}=Y,{inverted:ue}=this,pe=!1,fe,me;for(let ge of(this.hoverPoints?.forEach(be=>be.setState()),U)){let{horiz:be,len:ve,minPointOffset:ye=0,options:Ae,reversed:Me}=ge,Le=be?"width":"height",je=be?"x":"y",Ye=b(he[Le],ge.len),qe=b(Q[Le],ge.len),_e=10>Math.abs(Ye)?1:Ye/qe,Lt=(Q[je]||0)+qe/2-ge.pos,yt=Lt-((he[je]??ge.pos)+Ye/2-ge.pos)/_e,Si=Me&&!ue||!Me&&ue?-1:1;if(!oe&&(Lt<0||Lt>ge.len))continue;let Ze=ge.toValue(yt,!0)+(ae||ge.isOrdinal?0:ye*Si),it=ge.toValue(yt+ve/_e,!0)-(ae||ge.isOrdinal?0:ye*Si||0),Dt=ge.allExtremes;if(Ze>it&&([Ze,it]=[it,Ze]),_e===1&&!oe&&ge.coll==="yAxis"&&!Dt){for(let Vn of ge.series){let hs=Vn.getExtremes(Vn.getProcessedData(!0).yData,!0);Dt??(Dt={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),g(hs.dataMin)&&g(hs.dataMax)&&(Dt.dataMin=Math.min(hs.dataMin,Dt.dataMin),Dt.dataMax=Math.max(hs.dataMax,Dt.dataMax))}ge.allExtremes=Dt}let{dataMin:El,dataMax:Ml,min:zn,max:Un}=B(ge.getExtremes(),Dt||{}),$n=El??Ae.min,Hn=Ml??Ae.max,or=it-Ze,Gn=ge.categories?0:Math.min(or,Hn-$n),ar=$n-Gn*(T(Ae.min)?0:Ae.minPadding),lr=Hn+Gn*(T(Ae.max)?0:Ae.maxPadding),Wn=ge.allowZoomOutside||_e===1||le!=="zoom"&&_e>1,as=Math.min(Ae.min??ar,ar,Wn?zn:ar),ls=Math.max(Ae.max??lr,lr,Wn?Un:lr);(!ge.isOrdinal||ge.options.overscroll||_e!==1||oe)&&(Ze=1&&(it=Ze+or)),it>ls&&(it=ls,_e>=1&&(Ze=it-or)),(oe||ge.series.length&&(Ze!==zn||it!==Un)&&Ze>=as&&it<=ls)&&(ae?ae[ge.coll].push({axis:ge,min:Ze,max:it}):(ge.isPanning=le!=="zoom",ge.isPanning&&(me=!0),ge.setExtremes(oe?void 0:Ze,oe?void 0:it,!1,!1,{move:yt,trigger:le,scale:_e}),!oe&&(Ze>as||it{delete Y.selection,Y.trigger="zoom",this.transform(Y)}):(!fe||me||this.resetZoomButton?!fe&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(le==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),pe}}return B(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}),e(s,"Extensions/ScrollablePlotArea.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Globals.js"],s["Core/Renderer/RendererRegistry.js"],s["Core/Utilities.js"]],function(t,r,a,l){let{stop:_}=t,{composed:O}=r,{addEvent:te,createElement:G,css:X,defined:J,merge:A,pushUnique:$}=l;function j(){let M=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!M&&(this.scrollablePlotArea=M=new C(this)),M?.applyFixed()}function F(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class C{static compose(E,L,y){$(O,this.compose)&&(te(E,"afterInit",F),te(L,"afterSetChartSize",P=>this.afterSetSize(P.target,P)),te(L,"render",j),te(y,"show",F))}static afterSetSize(E,L){let y,P,q,{minWidth:z,minHeight:R}=E.options.chart.scrollablePlotArea||{},{clipBox:u,plotBox:x,inverted:c,renderer:o}=E;if(!o.forExport&&(z?(E.scrollablePixelsX=y=Math.max(0,z-E.chartWidth),y&&(E.scrollablePlotBox=A(E.plotBox),x.width=E.plotWidth+=y,u[c?"height":"width"]+=y,q=!0)):R&&(E.scrollablePixelsY=P=Math.max(0,R-E.chartHeight),J(P)&&(E.scrollablePlotBox=A(E.plotBox),x.height=E.plotHeight+=P,u[c?"width":"height"]+=P,q=!1)),J(q)&&!L.skipAxes))for(let n of E.axes)n.horiz===q&&(n.setAxisSize(),n.setAxisTranslation())}constructor(E){let L,y=E.options.chart,P=a.getRendererType(),q=y.scrollablePlotArea||{},z=this.moveFixedElements.bind(this),R={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};E.scrollablePixelsX&&(R.overflowX="auto"),E.scrollablePixelsY&&(R.overflowY="auto"),this.chart=E;let u=this.parentDiv=G("div",{className:"highcharts-scrolling-parent"},{position:"relative"},E.renderTo),x=this.scrollingContainer=G("div",{className:"highcharts-scrolling"},R,u),c=this.innerContainer=G("div",{className:"highcharts-inner-container"},void 0,x),o=this.fixedDiv=G("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(y.style?.zIndex||0)+2,top:0},void 0,!0),n=this.fixedRenderer=new P(o,E.chartWidth,E.chartHeight,y.style);this.mask=n.path().attr({fill:y.backgroundColor||"#fff","fill-opacity":q.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),x.parentNode.insertBefore(o,x),X(E.renderTo,{overflow:"visible"}),te(E,"afterShowResetZoom",z),te(E,"afterApplyDrilldown",z),te(E,"afterLayOutTitles",z),te(x,"scroll",()=>{let{pointer:d,hoverPoint:f}=E;d&&(delete d.chartPosition,f&&(L=f),d.runPointActions(void 0,L,!0))}),c.appendChild(E.container)}applyFixed(){let{chart:E,fixedRenderer:L,isDirty:y,scrollingContainer:P}=this,{axisOffset:q,chartWidth:z,chartHeight:R,container:u,plotHeight:x,plotLeft:c,plotTop:o,plotWidth:n,scrollablePixelsX:d=0,scrollablePixelsY:f=0}=E,{scrollPositionX:S=0,scrollPositionY:T=0}=E.options.chart.scrollablePlotArea||{},m=z+d,N=R+f;L.setSize(z,R),(y??!0)&&(this.isDirty=!1,this.moveFixedElements()),_(E.container),X(u,{width:`${m}px`,height:`${N}px`}),E.renderer.boxWrapper.attr({width:m,height:N,viewBox:[0,0,m,N].join(" ")}),E.chartBackground?.attr({width:m,height:N}),X(P,{width:`${z}px`,height:`${R}px`}),J(y)||(P.scrollLeft=d*S,P.scrollTop=f*T);let ie=o-q[0]-1,D=c-q[3]-1,B=o+x+q[2]+1,V=c+n+q[1]+1,Z=c+n-d,re=o+x-f,p=[["M",0,0]];d?p=[["M",0,ie],["L",c-1,ie],["L",c-1,B],["L",0,B],["Z"],["M",Z,ie],["L",z,ie],["L",z,B],["L",Z,B],["Z"]]:f&&(p=[["M",D,0],["L",D,o-1],["L",V,o-1],["L",V,0],["Z"],["M",D,re],["L",D,R],["L",V,R],["L",V,re],["Z"]]),E.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:p})}moveFixedElements(){let E,{container:L,inverted:y,scrollablePixelsX:P,scrollablePixelsY:q}=this.chart,z=this.fixedRenderer,R=C.fixedSelectors;for(let u of(P&&!y?E=".highcharts-yaxis":P&&y||q&&!y?E=".highcharts-xaxis":q&&y&&(E=".highcharts-yaxis"),E&&R.push(`${E}:not(.highcharts-radial-axis)`,`${E}-labels:not(.highcharts-radial-axis-labels)`),R))[].forEach.call(L.querySelectorAll(u),x=>{(x.namespaceURI===z.SVG_NS?z.box:z.box.parentNode).appendChild(x),x.style.pointerEvents="auto"})}}return C.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"],C}),e(s,"Core/Axis/Stacking/StackItem.js",[s["Core/Templating.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a){let{format:l}=t,{series:_}=r,{destroyObjectProperties:O,fireEvent:te,isNumber:G,pick:X}=a;return class{constructor(J,A,$,j,F){let C=J.chart.inverted,M=J.reversed;this.axis=J;let E=this.isNegative=!!$!=!!M;this.options=A=A||{},this.x=j,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=F,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:A.align||(C?E?"left":"right":"center"),verticalAlign:A.verticalAlign||(C?"middle":E?"bottom":"top"),y:A.y,x:A.x},this.textAlign=A.textAlign||(C?E?"right":"left":"center")}destroy(){O(this,this.axis)}render(J){let A=this.axis.chart,$=this.options,j=$.format,F=j?l(j,this,A):$.formatter.call(this);if(this.label)this.label.attr({text:F,visibility:"hidden"});else{this.label=A.renderer.label(F,null,void 0,$.shape,void 0,void 0,$.useHTML,!1,"stack-labels");let C={r:$.borderRadius||0,text:F,padding:X($.padding,5),visibility:"hidden"};A.styledMode||(C.fill=$.backgroundColor,C.stroke=$.borderColor,C["stroke-width"]=$.borderWidth,this.label.css($.style||{})),this.label.attr(C),this.label.added||this.label.add(J)}this.label.labelrank=A.plotSizeY,te(this,"afterRender")}setOffset(J,A,$,j,F,C){let{alignOptions:M,axis:E,label:L,options:y,textAlign:P}=this,q=E.chart,z=this.getStackBox({xOffset:J,width:A,boxBottom:$,boxTop:j,defaultX:F,xAxis:C}),{verticalAlign:R}=M;if(L&&z){let u=L.getBBox(void 0,0),x=L.padding,c=X(y.overflow,"justify")==="justify",o;M.x=y.x||0,M.y=y.y||0;let{x:n,y:d}=this.adjustStackPosition({labelBox:u,verticalAlign:R,textAlign:P});z.x-=n,z.y-=d,L.align(M,!1,z),(o=q.isInsidePlot(L.alignAttr.x+M.x+n,L.alignAttr.y+M.y+d))||(c=!1),c&&_.prototype.justifyDataLabel.call(E,L,M,L.alignAttr,u,z),L.attr({x:L.alignAttr.x,y:L.alignAttr.y,rotation:y.rotation,rotationOriginX:u.width*{left:0,center:.5,right:1}[y.textAlign||"center"],rotationOriginY:u.height/2}),X(!c&&y.crop,!0)&&(o=G(L.x)&&G(L.y)&&q.isInsidePlot(L.x-x+(L.width||0),L.y)&&q.isInsidePlot(L.x+x,L.y)),L[o?"show":"hide"]()}te(this,"afterSetOffset",{xOffset:J,width:A})}adjustStackPosition({labelBox:J,verticalAlign:A,textAlign:$}){let j={bottom:0,middle:1,top:2,right:1,center:0,left:-1},F=j[A],C=j[$];return{x:J.width/2+J.width/2*C,y:J.height/2*F}}getStackBox(J){let A=this.axis,$=A.chart,{boxTop:j,defaultX:F,xOffset:C,width:M,boxBottom:E}=J,L=A.stacking.usePercentage?100:X(j,this.total,0),y=A.toPixels(L),P=J.xAxis||$.xAxis[0],q=X(F,P.translate(this.x))+C,z=Math.abs(y-A.toPixels(E||G(A.min)&&A.logarithmic&&A.logarithmic.lin2log(A.min)||0)),R=$.inverted,u=this.isNegative;return R?{x:(u?y:y-z)-$.plotLeft,y:P.height-q-M+P.top-$.plotTop,width:z,height:M}:{x:q+P.transB-$.plotLeft,y:(u?y-z:y)-$.plotTop,width:M,height:z}}}}),e(s,"Core/Axis/Stacking/StackingAxis.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Axis/Axis.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Axis/Stacking/StackItem.js"],s["Core/Utilities.js"]],function(t,r,a,l,_){var O;let{getDeferredAnimation:te}=t,{series:{prototype:G}}=a,{addEvent:X,correctFloat:J,defined:A,destroyObjectProperties:$,fireEvent:j,isArray:F,isNumber:C,objectEach:M,pick:E}=_;function L(){let o=this.inverted;this.axes.forEach(n=>{n.stacking&&n.stacking.stacks&&n.hasVisibleSeries&&(n.stacking.oldStacks=n.stacking.stacks)}),this.series.forEach(n=>{let d=n.xAxis&&n.xAxis.options||{};n.options.stacking&&n.reserveSpace()&&(n.stackKey=[n.type,E(n.options.stack,""),o?d.top:d.left,o?d.height:d.width].join(","))})}function y(){let o=this.stacking;if(o){let n=o.stacks;M(n,(d,f)=>{$(d),delete n[f]}),o.stackTotalGroup?.destroy()}}function P(){this.stacking||(this.stacking=new c(this))}function q(o,n,d,f){return!A(o)||o.x!==n||f&&o.stackKey!==f?o={x:n,index:0,key:f,stackKey:f}:o.index++,o.key=[d,n,o.index].join(","),o}function z(){let o,n=this,d=n.yAxis,f=n.stackKey||"",S=d.stacking.stacks,T=n.processedXData,m=n.options.stacking,N=n[m+"Stacker"];N&&[f,"-"+f].forEach(ie=>{let D=T.length,B,V,Z;for(;D--;)B=T[D],o=n.getStackIndicator(o,B,n.index,ie),V=S[ie]?.[B],(Z=V?.points[o.key||""])&&N.call(n,Z,V,D)})}function R(o,n,d){let f=n.total?100/n.total:0;o[0]=J(o[0]*f),o[1]=J(o[1]*f),this.stackedYData[d]=o[1]}function u(o){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?G.setStackedPoints.call(this,o,"group"):o.stacking.resetStacks())}function x(o,n){let d,f,S,T,m,N,ie,D,B,V=n||this.options.stacking;if(!V||!this.reserveSpace()||({group:"xAxis"}[V]||"yAxis")!==o.coll)return;let Z=this.processedXData,re=this.processedYData,p=[],g=re.length,v=this.options,H=v.threshold||0,h=v.startFromThreshold?H:0,w=v.stack,b=n?`${this.type},${V}`:this.stackKey||"",I="-"+b,k=this.negStacks,W=o.stacking,ee=W.stacks,se=W.oldStacks;for(W.stacksTouched+=1,ie=0;ie0&&this.singleStacks===!1&&(S.points[N][0]=S.points[this.index+","+D+",0"][0])):(delete S.points[N],delete S.points[this.index]);let ne=S.total||0;V==="percent"?(T=f?b:I,ne=k&&ee[T]?.[D]?(T=ee[T][D]).total=Math.max(T.total||0,ne)+Math.abs(B)||0:J(ne+(Math.abs(B)||0))):V==="group"?(F(B)&&(B=B[0]),B!==null&&ne++):ne=J(ne+(B||0)),V==="group"?S.cumulative=(ne||1)-1:S.cumulative=J(E(S.cumulative,h)+(B||0)),S.total=ne,B!==null&&(S.points[N].push(S.cumulative),p[ie]=S.cumulative,S.hasValidPoints=!0)}V==="percent"&&(W.usePercentage=!0),V!=="group"&&(this.stackedYData=p),W.oldStacks={}}class c{constructor(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}buildStacks(){let n,d,f=this.axis,S=f.series,T=f.coll==="xAxis",m=f.options.reversedStacks,N=S.length;for(this.resetStacks(),this.usePercentage=!1,d=N;d--;)n=S[m?d:N-d-1],T&&n.setGroupedPoints(f),n.setStackedPoints(f);if(!T)for(d=0;d{M(n,d=>{d.cumulative=d.total})}))}resetStacks(){M(this.stacks,n=>{M(n,(d,f)=>{C(d.touched)&&d.touched{M(N,ie=>{ie.render(m)})}),m.animate({opacity:1},T)}}return(O||(O={})).compose=function(o,n,d){let f=n.prototype,S=d.prototype;f.getStacks||(X(o,"init",P),X(o,"destroy",y),f.getStacks=L,S.getStackIndicator=q,S.modifyStacks=z,S.percentStacker=R,S.setGroupedPoints=u,S.setStackedPoints=x)},O}),e(s,"Series/Line/LineSeries.js",[s["Core/Series/Series.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a){let{defined:l,merge:_,isObject:O}=a;class te extends t{drawGraph(){let X=this.options,J=(this.gappedPath||this.getGraphPath).call(this),A=this.chart.styledMode;[this,...this.zones].forEach(($,j)=>{let F,C=$.graph,M=C?"animate":"attr",E=$.dashStyle||X.dashStyle;C?(C.endX=this.preventGraphAnimation?null:J.xMap,C.animate({d:J})):J.length&&($.graph=C=this.chart.renderer.path(J).addClass("highcharts-graph"+(j?` highcharts-zone-graph-${j-1} `:" ")+(j&&$.className||"")).attr({zIndex:1}).add(this.group)),C&&!A&&(F={stroke:!j&&X.lineColor||$.color||this.color||"#cccccc","stroke-width":X.lineWidth||0,fill:this.fillGraph&&this.color||"none"},E?F.dashstyle=E:X.linecap!=="square"&&(F["stroke-linecap"]=F["stroke-linejoin"]="round"),C[M](F).shadow(j<2&&X.shadow&&_({filterUnits:"userSpaceOnUse"},O(X.shadow)?X.shadow:{}))),C&&(C.startX=J.xMap,C.isArea=J.isArea)})}getGraphPath(X,J,A){let $=this,j=$.options,F=[],C=[],M,E=j.step,L=(X=X||$.points).reversed;return L&&X.reverse(),(E={right:1,center:2}[E]||E&&3)&&L&&(E=4-E),(X=this.getValidPoints(X,!1,!(j.connectNulls&&!J&&!A))).forEach(function(y,P){let q,z=y.plotX,R=y.plotY,u=X[P-1],x=y.isNull||typeof R!="number";(y.leftCliff||u&&u.rightCliff)&&!A&&(M=!0),x&&!l(J)&&P>0?M=!j.connectNulls:x&&!J?M=!0:(P===0||M?q=[["M",y.plotX,y.plotY]]:$.getPointSpline?q=[$.getPointSpline(X,y,P)]:E?(q=E===1?[["L",u.plotX,R]]:E===2?[["L",(u.plotX+z)/2,u.plotY],["L",(u.plotX+z)/2,R]]:[["L",z,u.plotY]]).push(["L",z,R]):q=[["L",z,R]],C.push(y.x),E&&(C.push(y.x),E===2&&C.push(y.x)),F.push.apply(F,q),M=!1)}),F.xMap=C,$.graphPath=F,F}}return te.defaultOptions=_(t.defaultOptions,{legendSymbol:"lineMarker"}),r.registerSeriesType("line",te),te}),e(s,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),e(s,"Series/Area/AreaSeries.js",[s["Series/Area/AreaSeriesDefaults.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a){let{seriesTypes:{line:l}}=r,{extend:_,merge:O,objectEach:te,pick:G}=a;class X extends l{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:A,options:$}=this;[this,...this.zones].forEach((j,F)=>{let C={},M=j.fillColor||$.fillColor,E=j.area,L=E?"animate":"attr";E?(E.endX=this.preventGraphAnimation?null:A.xMap,E.animate({d:A})):(C.zIndex=0,(E=j.area=this.chart.renderer.path(A).addClass("highcharts-area"+(F?` highcharts-zone-area-${F-1} `:" ")+(F&&j.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(C.fill=M||j.color||this.color,C["fill-opacity"]=M?1:$.fillOpacity??.75,E.css({pointerEvents:this.stickyTracking?"none":"auto"})),E[L](C),E.startX=A.xMap,E.shiftUnit=$.step?2:1})}getGraphPath(A){let $,j,F,C=l.prototype.getGraphPath,M=this.options,E=M.stacking,L=this.yAxis,y=[],P=[],q=this.index,z=L.stacking.stacks[this.stackKey],R=M.threshold,u=Math.round(L.getThreshold(M.threshold)),x=G(M.connectNulls,E==="percent"),c=function(T,m,N){let ie=A[T],D=E&&z[ie.x].points[q],B=ie[N+"Null"]||0,V=ie[N+"Cliff"]||0,Z,re,p=!0;V||B?(Z=(B?D[0]:D[1])+V,re=D[0]+V,p=!!B):!E&&A[m]&&A[m].isNull&&(Z=re=R),Z!==void 0&&(P.push({plotX:$,plotY:Z===null?u:L.getThreshold(Z),isNull:p,isCliff:!0}),y.push({plotX:$,plotY:re===null?u:L.getThreshold(re),doCurve:!1}))};A=A||this.points,E&&(A=this.getStackPoints(A));for(let T=0,m=A.length;T1&&E&&P.some(T=>T.isCliff)&&(f.hasStackedCliffs=S.hasStackedCliffs=!0),f.xMap=o.xMap,this.areaPath=f,S}getStackPoints(A){let $=this,j=[],F=[],C=this.xAxis,M=this.yAxis,E=M.stacking.stacks[this.stackKey],L={},y=M.series,P=y.length,q=M.options.reversedStacks?1:-1,z=y.indexOf($);if(A=A||this.points,this.options.stacking){for(let u=0;uu.visible);F.forEach(function(u,x){let c=0,o,n;if(L[u]&&!L[u].isNull)j.push(L[u]),[-1,1].forEach(function(d){let f=d===1?"rightNull":"leftNull",S=E[F[x+d]],T=0;if(S){let m=z;for(;m>=0&&m=0&&dz&&$>M?($=Math.max(z,M),F=2*M-$):$u&&F>M?(F=Math.max(u,M),$=2*M-F):F1){let o=this.xAxis.series.filter(S=>S.visible).map(S=>S.index),n=0,d=0;P(this.xAxis.stacking?.stacks,S=>{if(typeof x.x=="number"){let T=S[x.x.toString()];if(T&&M(T.points[this.index])){let m=Object.keys(T.points).filter(N=>!N.match(",")&&T.points[N]&&T.points[N].length>1).map(parseFloat).filter(N=>o.indexOf(N)!==-1).sort((N,ie)=>ie-N);n=m.indexOf(this.index),d=m.length}}}),n=this.xAxis.reversed?d-1-n:n;let f=(d-1)*c.paddedWidth+u;R=(x.plotX||0)+f/2-u-n*c.paddedWidth}return R}translate(){let R=this,u=R.chart,x=R.options,c=R.dense=R.closestPointRange*R.xAxis.transA<2,o=R.borderWidth=y(x.borderWidth,c?0:1),n=R.xAxis,d=R.yAxis,f=x.threshold,S=y(x.minPointLength,5),T=R.getColumnMetrics(),m=T.width,N=R.pointXOffset=T.offset,ie=R.dataMin,D=R.dataMax,B=R.translatedThreshold=d.getThreshold(f),V=R.barW=Math.max(m,1+2*o);x.pointPadding&&(V=Math.ceil(V)),_.prototype.translate.apply(R),R.points.forEach(function(Z){let re=y(Z.yBottom,B),p=999+Math.abs(re),g=Z.plotX||0,v=A(Z.plotY,-p,d.len+p),H,h=Math.min(v,re),w=Math.max(v,re)-h,b=m,I=g+N,k=V;S&&Math.abs(w)S?re-S:B-(H?S:0)),j(Z.options.pointWidth)&&(I-=Math.round(((b=k=Math.ceil(Z.options.pointWidth))-m)/2)),x.centerInCategory&&!x.stacking&&(I=R.adjustForMissingColumns(I,b,Z,T)),Z.barX=I,Z.pointWidth=b,Z.tooltipPos=u.inverted?[A(d.len+d.pos-u.plotLeft-v,d.pos-u.plotLeft,d.len+d.pos-u.plotLeft),n.len+n.pos-u.plotTop-I-k/2,w]:[n.left-u.plotLeft+I+k/2,A(v+d.pos-u.plotTop,d.pos-u.plotTop,d.len+d.pos-u.plotTop),w],Z.shapeType=R.pointClass.prototype.shapeType||"roundedRect",Z.shapeArgs=R.crispCol(I,Z.isNull?B:h,k,Z.isNull?0:w)}),C(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(R,u){let x=this.options,c=this.pointAttrToOptions||{},o=c.stroke||"borderColor",n=c["stroke-width"]||"borderWidth",d,f,S,T=R&&R.color||this.color,m=R&&R[o]||x[o]||T,N=R&&R.options.dashStyle||x.dashStyle,ie=R&&R[n]||x[n]||this[n]||0,D=y(R&&R.opacity,x.opacity,1);R&&this.zones.length&&(f=R.getZone(),T=R.options.color||f&&(f.color||R.nonZonedColor)||this.color,f&&(m=f.borderColor||m,N=f.dashStyle||N,ie=f.borderWidth||ie)),u&&R&&(S=(d=L(x.states[u],R.options.states&&R.options.states[u]||{})).brightness,T=d.color||S!==void 0&&X(T).brighten(d.brightness).get()||T,m=d[o]||m,ie=d[n]||ie,N=d.dashStyle||N,D=y(d.opacity,D));let B={fill:T,stroke:m,"stroke-width":ie,opacity:D};return N&&(B.dashstyle=N),B}drawPoints(R=this.points){let u,x=this,c=this.chart,o=x.options,n=c.renderer,d=o.animationLimit||250;R.forEach(function(f){let S=f.plotY,T=f.graphic,m=!!T,N=T&&c.pointCounto?.enabled)}function y(o,n,d,f,S){let{chart:T,enabledDataSorting:m}=this,N=this.isCartesian&&T.inverted,ie=o.plotX,D=o.plotY,B=d.rotation||0,V=te(ie)&&te(D)&&T.isInsidePlot(ie,Math.round(D),{inverted:N,paneCoordinates:!0,series:this}),Z=B===0&&F(d.overflow,m?"none":"justify")==="justify",re=this.visible&&o.visible!==!1&&te(ie)&&(o.series.forceDL||m&&!Z||V||F(d.inside,!!this.options.stacking)&&f&&T.isInsidePlot(ie,N?f.x+1:f.y+f.height-1,{inverted:N,paneCoordinates:!0,series:this})),p=o.pos();if(re&&p){var g;let v=n.getBBox(),H=n.getBBox(void 0,0),h={right:1,center:.5}[d.align||0]||0,w={bottom:1,middle:.5}[d.verticalAlign||0]||0;if(f=G({x:p[0],y:Math.round(p[1]),width:0,height:0},f||{}),d.alignTo==="plotEdges"&&this.isCartesian&&(f[N?"x":"y"]=0,f[N?"width":"height"]=this.yAxis?.len||0),G(d,{width:v.width,height:v.height}),g=f,m&&this.xAxis&&!Z&&this.setDataLabelStartPos(o,n,S,V,g),n.align($(d,{width:H.width,height:H.height}),!1,f,!1),n.alignAttr.x+=h*(H.width-v.width),n.alignAttr.y+=w*(H.height-v.height),n[n.placed?"animate":"attr"]({x:n.alignAttr.x+(v.width-H.width)/2,y:n.alignAttr.y+(v.height-H.height)/2,rotationOriginX:(n.width||0)/2,rotationOriginY:(n.height||0)/2}),Z&&f.height>=0)this.justifyDataLabel(n,d,n.alignAttr,v,f,S);else if(F(d.crop,!0)){let{x:b,y:I}=n.alignAttr;re=T.isInsidePlot(b,I,{paneCoordinates:!0,series:this})&&T.isInsidePlot(b+v.width-1,I+v.height-1,{paneCoordinates:!0,series:this})}d.shape&&!B&&n[S?"attr":"animate"]({anchorX:p[0],anchorY:p[1]})}S&&m&&(n.placed=!1),re||m&&!Z?(n.show(),n.placed=!0):(n.hide(),n.placed=!1)}function P(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function q(o){let n=this.hasRendered||0,d=this.initDataLabelsGroup().attr({opacity:+n});return!n&&d&&(this.visible&&d.show(),this.options.animation?d.animate({opacity:1},o):d.attr({opacity:1})),d}function z(o){let n;o=o||this.points;let d=this,f=d.chart,S=d.options,T=f.renderer,{backgroundColor:m,plotBackgroundColor:N}=f.options.chart,ie=T.getContrast(A(N)&&N||A(m)&&m||"#000000"),D=x(d),{animation:B,defer:V}=D[0],Z=V?_(f,B,d):{defer:0,duration:0};X(this,"drawDataLabels"),d.hasDataLabels?.()&&(n=this.initDataLabels(Z),o.forEach(re=>{let p=re.dataLabels||[];M(u(D,re.dlOptions||re.options?.dataLabels)).forEach((v,H)=>{let h=v.enabled&&(re.visible||re.dataLabelOnHidden)&&(!re.isNull||re.dataLabelOnNull)&&function(K,Q){let oe=Q.filter;if(oe){let ae=oe.operator,he=K[oe.property],le=oe.value;return ae===">"&&he>le||ae==="<"&&he="&&he>=le||ae==="<="&&he<=le||ae==="=="&&he==le||ae==="==="&&he===le||ae==="!="&&he!=le||ae==="!=="&&he!==le}return!0}(re,v),{backgroundColor:w,borderColor:b,distance:I,style:k={}}=v,W,ee,se,ne,ce={},de=p[H],Y=!de,U;h&&(ee=F(v[re.formatPrefix+"Format"],v.format),W=re.getLabelConfig(),se=te(ee)?O(ee,W,f):(v[re.formatPrefix+"Formatter"]||v.formatter).call(W,v),ne=v.rotation,!f.styledMode&&(k.color=F(v.color,k.color,A(d.color)?d.color:void 0,"#000000"),k.color==="contrast"?(w!=="none"&&(U=w),re.contrastColor=T.getContrast(U!=="auto"&&U||re.color||d.color),k.color=U||!te(I)&&v.inside||0>C(I||0)||S.stacking?re.contrastColor:ie):delete re.contrastColor,S.cursor&&(k.cursor=S.cursor)),ce={r:v.borderRadius||0,rotation:ne,padding:v.padding,zIndex:1},f.styledMode||(ce.fill=w==="auto"?re.color:w,ce.stroke=b==="auto"?re.color:b,ce["stroke-width"]=v.borderWidth),j(ce,(K,Q)=>{K===void 0&&delete ce[Q]})),!de||h&&te(se)&&!!de.div==!!v.useHTML&&(de.rotation&&v.rotation||de.rotation===v.rotation)||(de=void 0,Y=!0),h&&te(se)&&(de?ce.text=se:(de=T.label(se,0,0,v.shape,void 0,void 0,v.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+re.colorIndex+" "+(v.className||"")+(v.useHTML?" highcharts-tracker":"")),de&&(de.options=v,de.attr(ce),f.styledMode?k.width&&de.css({width:k.width,textOverflow:k.textOverflow}):de.css(k).shadow(v.shadow),X(de,"beforeAddingDataLabel",{labelOptions:v,point:re}),de.added||de.add(n),d.alignDataLabel(re,de,v,void 0,Y),de.isActive=!0,p[H]&&p[H]!==de&&p[H].destroy(),p[H]=de))});let g=p.length;for(;g--;)p[g]&&p[g].isActive?p[g].isActive=!1:(p[g]?.destroy(),p.splice(g,1));re.dataLabel=p[0],re.dataLabels=p})),X(this,"afterDrawDataLabels")}function R(o,n,d,f,S,T){let m=this.chart,N=n.align,ie=n.verticalAlign,D=o.box?0:o.padding||0,B=m.inverted?this.yAxis:this.xAxis,V=B?B.left-m.plotLeft:0,Z=m.inverted?this.xAxis:this.yAxis,re=Z?Z.top-m.plotTop:0,{x:p=0,y:g=0}=n,v,H;return(v=(d.x||0)+D+V)<0&&(N==="right"&&p>=0?(n.align="left",n.inside=!0):p-=v,H=!0),(v=(d.x||0)+f.width-D+V)>m.plotWidth&&(N==="left"&&p<=0?(n.align="right",n.inside=!0):p+=m.plotWidth-v,H=!0),(v=d.y+D+re)<0&&(ie==="bottom"&&g>=0?(n.verticalAlign="top",n.inside=!0):g-=v,H=!0),(v=(d.y||0)+f.height-D+re)>m.plotHeight&&(ie==="top"&&g<=0?(n.verticalAlign="bottom",n.inside=!0):g+=m.plotHeight-v,H=!0),H&&(n.x=p,n.y=g,o.placed=!T,o.align(n,void 0,S)),H}function u(o,n){let d=[],f;if(J(o)&&!J(n))d=o.map(function(S){return $(S,n)});else if(J(n)&&!J(o))d=n.map(function(S){return $(o,S)});else if(J(o)||J(n)){if(J(o)&&J(n))for(f=Math.max(o.length,n.length);f--;)d[f]=$(o[f],n[f])}else d=$(o,n);return d}function x(o){let n=o.chart.options.plotOptions;return M(u(u(n?.series?.dataLabels,n?.[o.type]?.dataLabels),o.options.dataLabels))}function c(o,n,d,f,S){let T=this.chart,m=T.inverted,N=this.xAxis,ie=N.reversed,D=((m?n.height:n.width)||0)/2,B=o.pointWidth,V=B?B/2:0;n.startXPos=m?S.x:ie?-D-V:N.width-D+V,n.startYPos=m?ie?this.yAxis.height-D+V:-D-V:S.y,f?n.visibility==="hidden"&&(n.show(),n.attr({opacity:0}).animate({opacity:1})):n.attr({opacity:1}).animate({opacity:0},void 0,n.hide),T.hasRendered&&(d&&n.attr({x:n.startXPos,y:n.startYPos}),n.placed=!0)}E.compose=function(o){let n=o.prototype;n.initDataLabels||(n.initDataLabels=q,n.initDataLabelsGroup=P,n.alignDataLabel=y,n.drawDataLabels=z,n.justifyDataLabel=R,n.setDataLabelStartPos=c,n.hasDataLabels=L)}}(l||(l={})),l}),e(s,"Series/Column/ColumnDataLabel.js",[s["Core/Series/DataLabel.js"],s["Core/Globals.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a,l){var _;let{composed:O}=r,{series:te}=a,{merge:G,pick:X,pushUnique:J}=l;return function(A){function $(j,F,C,M,E){let L=this.chart.inverted,y=j.series,P=(y.xAxis?y.xAxis.len:this.chart.plotSizeX)||0,q=(y.yAxis?y.yAxis.len:this.chart.plotSizeY)||0,z=j.dlBox||j.shapeArgs,R=X(j.below,j.plotY>X(this.translatedThreshold,q)),u=X(C.inside,!!this.options.stacking);if(z){if(M=G(z),!(C.overflow==="allow"&&C.crop===!1)){M.y<0&&(M.height+=M.y,M.y=0);let x=M.y+M.height-q;x>0&&x\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),e(s,"Series/Scatter/ScatterSeries.js",[s["Series/Scatter/ScatterSeriesDefaults.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a){let{column:l,line:_}=r.seriesTypes,{addEvent:O,extend:te,merge:G}=a;class X extends _{applyJitter(){let A=this,$=this.options.jitter,j=this.points.length;$&&this.points.forEach(function(F,C){["x","y"].forEach(function(M,E){if($[M]&&!F.isNull){let L=`plot${M.toUpperCase()}`,y=A[`${M}Axis`],P=$[M]*y.transA;if(y&&!y.logarithmic){let q=Math.max(0,(F[L]||0)-P),z=Math.min(y.len,(F[L]||0)+P);F[L]=q+(z-q)*function(R){let u=1e4*Math.sin(R);return u-Math.floor(u)}(C+E*j),M==="x"&&(F.clientX=F.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return X.defaultOptions=G(_.defaultOptions,t),te(X.prototype,{drawTracker:l.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),O(X,"afterTranslate",function(){this.applyJitter()}),r.registerSeriesType("scatter",X),X}),e(s,"Series/CenteredUtilities.js",[s["Core/Globals.js"],s["Core/Series/Series.js"],s["Core/Utilities.js"]],function(t,r,a){var l,_;let{deg2rad:O}=t,{fireEvent:te,isNumber:G,pick:X,relativeLength:J}=a;return(_=l||(l={})).getCenter=function(){let A=this.options,$=this.chart,j=2*(A.slicedOffset||0),F=$.plotWidth-2*j,C=$.plotHeight-2*j,M=A.center,E=Math.min(F,C),L=A.thickness,y,P=A.size,q=A.innerSize||0,z,R;typeof P=="string"&&(P=parseFloat(P)),typeof q=="string"&&(q=parseFloat(q));let u=[X(M[0],"50%"),X(M[1],"50%"),X(P&&P<0?void 0:A.size,"100%"),X(q&&q<0?void 0:A.innerSize||0,"0%")];for(!$.angular||this instanceof r||(u[3]=0),z=0;z<4;++z)R=u[z],y=z<2||z===2&&/%$/.test(R),u[z]=J(R,[F,C,E,u[2]][z])+(y?j:0);return u[3]>u[2]&&(u[3]=u[2]),G(L)&&2*L0&&(u[3]=u[2]-2*L),te(this,"afterGetCenter",{positions:u}),u},_.getStartAndEndRadians=function(A,$){let j=G(A)?A:0,F=G($)&&$>j&&$-j<360?$:j+360;return{start:O*(j+-90),end:O*(F+-90)}},l}),e(s,"Series/Pie/PiePoint.js",[s["Core/Animation/AnimationUtilities.js"],s["Core/Series/Point.js"],s["Core/Utilities.js"]],function(t,r,a){let{setAnimation:l}=t,{addEvent:_,defined:O,extend:te,isNumber:G,pick:X,relativeLength:J}=a;class A extends r{getConnectorPath(j){let F=j.dataLabelPosition,C=j.options||{},M=C.connectorShape,E=this.connectorShapes[M]||M;return F&&E.call(this,ze(we({},F.computed),{alignment:F.alignment}),F.connectorPosition,C)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(j){let F=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(F.x,F.y,F.r+j,F.r+j,{innerR:F.r-1,start:F.start,end:F.end,borderRadius:F.borderRadius})}constructor(j,F,C){super(j,F,C),this.half=0,this.name??(this.name="Slice");let M=E=>{this.slice(E.type==="select")};_(this,"select",M),_(this,"unselect",M)}isValid(){return G(this.y)&&this.y>=0}setVisible(j,F=!0){j!==this.visible&&this.update({visible:j??!this.visible},F,void 0,!1)}slice(j,F,C){let M=this.series;l(C,M.chart),F=X(F,!0),this.sliced=this.options.sliced=j=O(j)?j:!this.sliced,M.options.data[M.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return te(A.prototype,{connectorShapes:{fixedOffset:function($,j,F){let C=j.breakAt,M=j.touchingSliceAt,E=F.softConnector?["C",$.x+($.alignment==="left"?-5:5),$.y,2*C.x-M.x,2*C.y-M.y,C.x,C.y]:["L",C.x,C.y];return[["M",$.x,$.y],E,["L",M.x,M.y]]},straight:function($,j){let F=j.touchingSliceAt;return[["M",$.x,$.y],["L",F.x,F.y]]},crookedLine:function($,j,F){let{breakAt:C,touchingSliceAt:M}=j,{series:E}=this,[L,y,P]=E.center,q=P/2,{plotLeft:z,plotWidth:R}=E.chart,u=$.alignment==="left",{x,y:c}=$,o=C.x;if(F.crookDistance){let d=J(F.crookDistance,1);o=u?L+q+(R+z-L-q)*(1-d):z+(L-q)*d}else o=L+(y-c)*Math.tan((this.angle||0)-Math.PI/2);let n=[["M",x,c]];return(u?o<=x&&o>=C.x:o>=x&&o<=C.x)&&n.push(["L",o,c]),n.push(["L",C.x,C.y],["L",M.x,M.y]),n}}}),A}),e(s,"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}}}}),e(s,"Series/Pie/PieSeries.js",[s["Series/CenteredUtilities.js"],s["Series/Column/ColumnSeries.js"],s["Core/Globals.js"],s["Series/Pie/PiePoint.js"],s["Series/Pie/PieSeriesDefaults.js"],s["Core/Series/Series.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Renderer/SVG/Symbols.js"],s["Core/Utilities.js"]],function(t,r,a,l,_,O,te,G,X){let{getStartAndEndRadians:J}=t,{noop:A}=a,{clamp:$,extend:j,fireEvent:F,merge:C,pick:M}=X;class E extends O{animate(y){let P=this,q=P.points,z=P.startAngleRad;y||q.forEach(function(R){let u=R.graphic,x=R.shapeArgs;u&&x&&(u.attr({r:M(R.startR,P.center&&P.center[3]/2),start:z,end:z}),u.animate({r:x.r,start:x.start,end:x.end},P.options.animation))})}drawEmpty(){let y,P,q=this.startAngleRad,z=this.endAngleRad,R=this.options;this.total===0&&this.center?(y=this.center[0],P=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(y,P,this.center[1]/2,0,q,z).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:G.arc(y,P,this.center[2]/2,0,{start:q,end:z,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":R.borderWidth,fill:R.fillColor||"none",stroke:R.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let y=this.chart.renderer;this.points.forEach(function(P){P.graphic&&P.hasNewShapeType()&&(P.graphic=P.graphic.destroy()),P.graphic||(P.graphic=y[P.shapeType](P.shapeArgs).add(P.series.group),P.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(y,P,q,z){let R=this.center,u=this.radii?this.radii[q.index]||0:R[2]/2,x=z.dataLabelPosition,c=x?.distance||0,o=Math.asin($((y-R[1])/(u+c),-1,1));return R[0]+Math.cos(o)*(u+c)*(P?-1:1)+(c>0?(P?-1:1)*(z.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let y,P,q,z,R=this,u=R.chart;this.drawEmpty(),R.group&&!u.styledMode&&R.group.shadow(R.options.shadow),R.points.forEach(function(x){let c={};P=x.graphic,!x.isNull&&P?(z=x.shapeArgs,y=x.getTranslate(),u.styledMode||(q=R.pointAttribs(x,x.selected&&"select")),x.delayedRendering?(P.setRadialReference(R.center).attr(z).attr(y),u.styledMode||P.attr(q).attr({"stroke-linejoin":"round"}),x.delayedRendering=!1):(P.setRadialReference(R.center),u.styledMode||C(!0,c,q),C(!0,c,z,y),P.animate(c)),P.attr({visibility:x.visible?"inherit":"hidden"}),P.addClass(x.getClassName(),!0)):P&&(x.graphic=P.destroy())})}sortByAngle(y,P){y.sort(function(q,z){return q.angle!==void 0&&(z.angle-q.angle)*P})}translate(y){F(this,"translate"),this.generatePoints();let P=this.options,q=P.slicedOffset,z=J(P.startAngle,P.endAngle),R=this.startAngleRad=z.start,u=(this.endAngleRad=z.end)-R,x=this.points,c=P.ignoreHiddenPoint,o=x.length,n,d,f,S,T,m,N,ie=0;for(y||(this.center=y=this.getCenter()),m=0;m1.5*Math.PI?f-=2*Math.PI:f<-Math.PI/2&&(f+=2*Math.PI),N.slicedTranslation={translateX:Math.round(Math.cos(f)*q),translateY:Math.round(Math.sin(f)*q)},S=Math.cos(f)*y[2]/2,T=Math.sin(f)*y[2]/2,N.tooltipPos=[y[0]+.7*S,y[1]+.7*T],N.half=f<-Math.PI/2||f>Math.PI/2?1:0,N.angle=f}F(this,"afterTranslate")}updateTotals(){let y=this.points,P=y.length,q=this.options.ignoreHiddenPoint,z,R,u=0;for(z=0;z0&&(R.visible||!q)?R.y/u*100:0,R.total=u}}return E.defaultOptions=C(O.defaultOptions,_),j(E.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:r.prototype.drawTracker,getCenter:t.getCenter,getSymbol:A,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:r.prototype.pointAttribs,pointClass:l,requireSorting:!1,searchPoint:A,trackerGroups:["group","dataLabelsGroup"]}),te.registerSeriesType("pie",E),E}),e(s,"Series/Pie/PieDataLabel.js",[s["Core/Series/DataLabel.js"],s["Core/Globals.js"],s["Core/Renderer/RendererUtilities.js"],s["Core/Series/SeriesRegistry.js"],s["Core/Utilities.js"]],function(t,r,a,l,_){var O;let{composed:te,noop:G}=r,{distribute:X}=a,{series:J}=l,{arrayMax:A,clamp:$,defined:j,pick:F,pushUnique:C,relativeLength:M}=_;return function(E){let L={radialDistributionY:function(R,u){return(u.dataLabelPosition?.top||0)+R.distributeBox.pos},radialDistributionX:function(R,u,x,c,o){let n=o.dataLabelPosition;return R.getX(x<(n?.top||0)+2||x>(n?.bottom||0)-2?c:x,u.half,u,o)},justify:function(R,u,x,c){return c[0]+(R.half?-1:1)*(x+(u.dataLabelPosition?.distance||0))},alignToPlotEdges:function(R,u,x,c){let o=R.getBBox().width;return u?o+c:x-o-c},alignToConnectors:function(R,u,x,c){let o=0,n;return R.forEach(function(d){(n=d.dataLabel.getBBox().width)>o&&(o=n)}),u?o+c:x-o-c}};function y(R,u){let{center:x,options:c}=this,o=x[2]/2,n=R.angle||0,d=Math.cos(n),f=Math.sin(n),S=x[0]+d*o,T=x[1]+f*o,m=Math.min((c.slicedOffset||0)+(c.borderWidth||0),u/5);return{natural:{x:S+d*u,y:T+f*u},computed:{},alignment:u<0?"center":R.half?"right":"left",connectorPosition:{breakAt:{x:S+d*m,y:T+f*m},touchingSliceAt:{x:S,y:T}},distance:u}}function P(){let R=this,u=R.points,x=R.chart,c=x.plotWidth,o=x.plotHeight,n=x.plotLeft,d=Math.round(x.chartWidth/3),f=R.center,S=f[2]/2,T=f[1],m=[[],[]],N=[0,0,0,0],ie=R.dataLabelPositioners,D,B,V,Z=0;R.visible&&R.hasDataLabels?.()&&(u.forEach(re=>{(re.dataLabels||[]).forEach(p=>{p.shortened&&(p.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),p.shortened=!1)})}),J.prototype.drawDataLabels.apply(R),u.forEach(re=>{(re.dataLabels||[]).forEach((p,g)=>{let v=f[2]/2,H=p.options,h=M(H?.distance||0,v);g===0&&m[re.half].push(re),!j(H?.style?.width)&&p.getBBox().width>d&&(p.css({width:Math.round(.7*d)+"px"}),p.shortened=!0),p.dataLabelPosition=this.getDataLabelPosition(re,h),Z=Math.max(Z,h)})}),m.forEach((re,p)=>{let g=re.length,v=[],H,h,w=0,b;g&&(R.sortByAngle(re,p-.5),Z>0&&(H=Math.max(0,T-S-Z),h=Math.min(T+S+Z,x.plotHeight),re.forEach(I=>{(I.dataLabels||[]).forEach(k=>{let W=k.dataLabelPosition;W&&W.distance>0&&(W.top=Math.max(0,T-S-W.distance),W.bottom=Math.min(T+S+W.distance,x.plotHeight),w=k.getBBox().height||21,k.lineHeight=x.renderer.fontMetrics(k.text||k).h+2*k.padding,I.distributeBox={target:(k.dataLabelPosition?.natural.y||0)-W.top+k.lineHeight/2,size:w,rank:I.y},v.push(I.distributeBox))})}),X(v,b=h+w-H,b/5)),re.forEach(I=>{(I.dataLabels||[]).forEach(k=>{let W=k.options||{},ee=I.distributeBox,se=k.dataLabelPosition,ne=se?.natural.y||0,ce=W.connectorPadding||0,de=k.lineHeight||21,Y=(de-k.getBBox().height)/2,U=0,K=ne,Q="inherit";if(se){if(v&&j(ee)&&se.distance>0&&(ee.pos===void 0?Q="hidden":(V=ee.size,K=ie.radialDistributionY(I,k))),W.justify)U=ie.justify(I,k,S,f);else switch(W.alignTo){case"connectors":U=ie.alignToConnectors(re,p,c,n);break;case"plotEdges":U=ie.alignToPlotEdges(k,p,c,n);break;default:U=ie.radialDistributionX(R,I,K-Y,ne,k)}if(se.attribs={visibility:Q,align:se.alignment},se.posAttribs={x:U+(W.x||0)+({left:ce,right:-ce}[se.alignment]||0),y:K+(W.y||0)-de/2},se.computed.x=U,se.computed.y=K-Y,F(W.crop,!0)){let oe;U-(B=k.getBBox().width)c-ce&&p===0&&(oe=Math.round(U+B-c+ce),N[1]=Math.max(oe,N[1])),K-V/2<0?N[0]=Math.max(Math.round(-K+V/2),N[0]):K+V/2>o&&(N[2]=Math.max(Math.round(K+V/2-o),N[2])),se.sideOverflow=oe}}})}))}),(A(N)===0||this.verifyDataLabelOverflow(N))&&(this.placeDataLabels(),this.points.forEach(re=>{(re.dataLabels||[]).forEach(p=>{let{connectorColor:g,connectorWidth:v=1}=p.options||{},H=p.dataLabelPosition;if(v){let h;D=p.connector,H&&H.distance>0?(h=!D,D||(p.connector=D=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+re.colorIndex+(re.className?" "+re.className:"")).add(R.dataLabelsGroup)),x.styledMode||D.attr({"stroke-width":v,stroke:g||re.color||"#666666"}),D[h?"attr":"animate"]({d:re.getConnectorPath(p)}),D.attr({visibility:H.attribs?.visibility})):D&&(p.connector=D.destroy())}})})))}function q(){this.points.forEach(R=>{(R.dataLabels||[]).forEach(u=>{let x=u.dataLabelPosition;x?(x.sideOverflow&&(u.css({width:Math.max(u.getBBox().width-x.sideOverflow,0)+"px",textOverflow:(u.options?.style||{}).textOverflow||"ellipsis"}),u.shortened=!0),u.attr(x.attribs),u[u.moved?"animate":"attr"](x.posAttribs),u.moved=!0):u&&u.attr({y:-9999})}),delete R.distributeBox},this)}function z(R){let u=this.center,x=this.options,c=x.center,o=x.minSize||80,n=o,d=x.size!==null;return!d&&(c[0]!==null?n=Math.max(u[2]-Math.max(R[1],R[3]),o):(n=Math.max(u[2]-R[1]-R[3],o),u[0]+=(R[3]-R[1])/2),c[1]!==null?n=$(n,o,u[2]-Math.max(R[0],R[2])):(n=$(n,o,u[2]-R[0]-R[2]),u[1]+=(R[0]-R[2])/2),n(_.x+=O.x,_.y+=O.y,_),{x:0,y:0});return{x:l.x/a.length,y:l.y/a.length}},r.getDistanceBetweenPoints=function(a,l){return Math.sqrt(Math.pow(l.x-a.x,2)+Math.pow(l.y-a.y,2))},r.getAngleBetweenPoints=function(a,l){return Math.atan2(l.x-a.x,l.y-a.y)},r.pointInPolygon=function({x:a,y:l},_){let O=_.length,te,G,X=!1;for(te=0,G=O-1;tel!=j>l&&a<($-J)*(l-A)/(j-A)+J&&(X=!X)}return X},t}),e(s,"Extensions/OverlappingDataLabels.js",[s["Core/Geometry/GeometryUtilities.js"],s["Core/Utilities.js"]],function(t,r){let{pointInPolygon:a}=t,{addEvent:l,fireEvent:_,objectEach:O,pick:te}=r;function G(A){let $=A.length,j=(q,z)=>!(z.x>=q.x+q.width||z.x+z.width<=q.x||z.y>=q.y+q.height||z.y+z.height<=q.y),F=(q,z)=>{for(let R of q)if(a({x:R[0],y:R[1]},z))return!0;return!1},C,M,E,L,y,P=!1;for(let q=0;q<$;q++)(C=A[q])&&(C.oldOpacity=C.opacity,C.newOpacity=1,C.absoluteBox=function(z){if(z&&(!z.alignAttr||z.placed)){let R=z.box?0:z.padding||0,u=z.alignAttr||{x:z.attr("x"),y:z.attr("y")},x=z.getBBox();return z.width=x.width,z.height=x.height,{x:u.x+(z.parentGroup?.translateX||0)+R,y:u.y+(z.parentGroup?.translateY||0)+R,width:(z.width||0)-2*R,height:(z.height||0)-2*R,polygon:x?.polygon}}}(C));A.sort((q,z)=>(z.labelrank||0)-(q.labelrank||0));for(let q=0;q<$;++q){L=(M=A[q])&&M.absoluteBox;let z=L?.polygon;for(let R=q+1;R<$;++R){y=(E=A[R])&&E.absoluteBox;let u=!1;if(L&&y&&M!==E&&M.newOpacity!==0&&E.newOpacity!==0&&M.visibility!=="hidden"&&E.visibility!=="hidden"){let x=y.polygon;if(z&&x&&z!==x?F(z,x)&&(u=!0):j(L,y)&&(u=!0),u){let c=M.labelrank{O(F,C=>{C.label&&$.push(C.label)})});for(let j of A.series||[])if(j.visible&&j.hasDataLabels?.()){let F=C=>{for(let M of C)M.visible&&(M.dataLabels||[]).forEach(E=>{let L=E.options||{};E.labelrank=te(L.labelrank,M.labelrank,M.shapeArgs?.height),L.allowOverlap??Number(L.distance)>0?(E.oldOpacity=E.opacity,E.newOpacity=1,X(E,A)):$.push(E)})};F(j.nodes||[]),F(j.points)}this.hideOverlappingLabels($)}return{compose:function(A){let $=A.prototype;$.hideOverlappingLabels||($.hideOverlappingLabels=G,l(A,"render",J))}}}),e(s,"Extensions/BorderRadius.js",[s["Core/Defaults.js"],s["Core/Globals.js"],s["Core/Utilities.js"]],function(t,r,a){let{defaultOptions:l}=t,{noop:_}=r,{addEvent:O,extend:te,isObject:G,merge:X,relativeLength:J}=a,A={radius:0,scope:"stack",where:void 0},$=_,j=_;function F(y,P,q,z,R={}){let u=$(y,P,q,z,R),{innerR:x=0,r:c=q,start:o=0,end:n=0}=R;if(R.open||!R.borderRadius)return u;let d=n-o,f=Math.sin(d/2),S=Math.max(Math.min(J(R.borderRadius||0,c-x),(c-x)/2,c*f/(1+f)),0),T=Math.min(S,d/Math.PI*2*x),m=u.length-1;for(;m--;)(function(N,ie,D){let B,V,Z,re=N[ie],p=N[ie+1];if(p[0]==="Z"&&(p=N[0]),(re[0]==="M"||re[0]==="L")&&p[0]==="A"?(B=re,V=p,Z=!0):re[0]==="A"&&(p[0]==="M"||p[0]==="L")&&(B=p,V=re),B&&V&&V.params){let g=V[1],v=V[5],H=V.params,{start:h,end:w,cx:b,cy:I}=H,k=v?g-D:g+D,W=k?Math.asin(D/k):0,ee=v?W:-W,se=Math.cos(W)*k;Z?(H.start=h+ee,B[1]=b+se*Math.cos(h),B[2]=I+se*Math.sin(h),N.splice(ie+1,0,["A",D,D,0,0,1,b+g*Math.cos(H.start),I+g*Math.sin(H.start)])):(H.end=w-ee,V[6]=b+g*Math.cos(H.end),V[7]=I+g*Math.sin(H.end),N.splice(ie+1,0,["A",D,D,0,0,1,b+se*Math.cos(w),I+se*Math.sin(w)])),V[4]=Math.abs(H.end-H.start)1?T:S);return u}function C(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:y,yAxis:P}=this,q=y.stacking==="percent",z=l.plotOptions?.[this.type]?.borderRadius,R=M(y.borderRadius,G(z)?z:{}),u=P.options.reversed;for(let x of this.points){let{shapeArgs:c}=x;if(x.shapeType==="roundedRect"&&c){let{width:o=0,height:n=0,y:d=0}=c,f=d,S=n;if(R.scope==="stack"&&x.stackTotal){let ie=P.translate(q?100:x.stackTotal,!1,!0,!1,!0),D=P.translate(y.threshold||0,!1,!0,!1,!0),B=this.crispCol(0,Math.min(ie,D),0,Math.abs(ie-D));f=B.y,S=B.height}let T=(x.negative?-1:1)*(u?-1:1)==-1,m=R.where;!m&&this.is("waterfall")&&Math.abs((x.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(m="all"),m||(m="end");let N=Math.min(J(R.radius,o),o/2,m==="all"?n/2:1/0)||0;m==="end"&&(T&&(f-=N),S+=N),te(c,{brBoxHeight:S,brBoxY:f,r:N})}}}}function M(y,P){return G(y)||(y={radius:y||0}),X(A,P,y)}function E(){let y=M(this.options.borderRadius);for(let P of this.points){let q=P.shapeArgs;q&&(q.borderRadius=J(y.radius,(q.r||0)-(q.innerR||0)))}}function L(y,P,q,z,R={}){let u=j(y,P,q,z,R),{r:x=0,brBoxHeight:c=z,brBoxY:o=P}=R,n=P-o,d=o+c-(P+z),f=n-x>-.1?0:x,S=d-x>-.1?0:x,T=Math.max(f&&n,0),m=Math.max(S&&d,0),N=[y+f,P],ie=[y+q-f,P],D=[y+q,P+f],B=[y+q,P+z-S],V=[y+q-S,P+z],Z=[y+S,P+z],re=[y,P+z-S],p=[y,P+f],g=(v,H)=>Math.sqrt(Math.pow(v,2)-Math.pow(H,2));if(T){let v=g(f,f-T);N[0]-=v,ie[0]+=v,D[1]=p[1]=P+f-T}if(z=te(F.minWidth,0)&&this.chartHeight>=te(F.minHeight,0)}).call(this)&&j.push($._id)}function A($,j){let F=this.options.responsive,C=this.currentResponsive,M=[],E;!j&&F&&F.rules&&F.rules.forEach(P=>{P._id===void 0&&(P._id=G()),this.matchResponsiveRule(P,M)},this);let L=O(...M.map(P=>_((F||{}).rules||[],q=>q._id===P)).map(P=>P&&P.chartOptions));L.isResponsiveOptions=!0,M=M.toString()||void 0;let y=C&&C.ruleIds;M===y||(C&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(C.undoOptions,$,!0),this.updatingResponsive=!1),M?((E=a(L,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:M,mergedOptions:L,undoOptions:E},this.updatingResponsive||this.update(L,$,!0)):this.currentResponsive=void 0)}X.compose=function($){let j=$.prototype;return j.matchResponsiveRule||l(j,{matchResponsiveRule:J,setResponsive:A}),$}}(r||(r={})),r}),e(s,"masters/highcharts.src.js",[s["Core/Globals.js"],s["Core/Utilities.js"],s["Core/Defaults.js"],s["Core/Animation/Fx.js"],s["Core/Animation/AnimationUtilities.js"],s["Core/Renderer/HTML/AST.js"],s["Core/Templating.js"],s["Core/Renderer/RendererRegistry.js"],s["Core/Renderer/RendererUtilities.js"],s["Core/Renderer/SVG/SVGElement.js"],s["Core/Renderer/SVG/SVGRenderer.js"],s["Core/Renderer/HTML/HTMLElement.js"],s["Core/Axis/Axis.js"],s["Core/Axis/DateTimeAxis.js"],s["Core/Axis/LogarithmicAxis.js"],s["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],s["Core/Axis/Tick.js"],s["Core/Tooltip.js"],s["Core/Series/Point.js"],s["Core/Pointer.js"],s["Core/Legend/Legend.js"],s["Core/Legend/LegendSymbol.js"],s["Core/Chart/Chart.js"],s["Extensions/ScrollablePlotArea.js"],s["Core/Axis/Stacking/StackingAxis.js"],s["Core/Axis/Stacking/StackItem.js"],s["Core/Series/Series.js"],s["Core/Series/SeriesRegistry.js"],s["Series/Column/ColumnDataLabel.js"],s["Series/Pie/PieDataLabel.js"],s["Core/Series/DataLabel.js"],s["Extensions/OverlappingDataLabels.js"],s["Extensions/BorderRadius.js"],s["Core/Responsive.js"],s["Core/Color/Color.js"],s["Core/Time.js"]],function(t,r,a,l,_,O,te,G,X,J,A,$,j,F,C,M,E,L,y,P,q,z,R,u,x,c,o,n,d,f,S,T,m,N,ie,D){return t.AST=O,t.Axis=j,t.Chart=R,t.Color=ie,t.DataLabel=S,t.Fx=l,t.HTMLElement=$,t.Legend=q,t.LegendSymbol=z,t.OverlappingDataLabels=t.OverlappingDataLabels||T,t.PlotLineOrBand=M,t.Point=y,t.Pointer=P,t.RendererRegistry=G,t.Series=o,t.SeriesRegistry=n,t.StackItem=c,t.SVGElement=J,t.SVGRenderer=A,t.Templating=te,t.Tick=E,t.Time=D,t.Tooltip=L,t.animate=_.animate,t.animObject=_.animObject,t.chart=R.chart,t.color=ie.parse,t.dateFormat=te.dateFormat,t.defaultOptions=a.defaultOptions,t.distribute=X.distribute,t.format=te.format,t.getDeferredAnimation=_.getDeferredAnimation,t.getOptions=a.getOptions,t.numberFormat=te.numberFormat,t.seriesType=n.seriesType,t.setAnimation=_.setAnimation,t.setOptions=a.setOptions,t.stop=_.stop,t.time=a.defaultTime,t.timers=l.timers,m.compose(t.Series,t.SVGElement,t.SVGRenderer),d.compose(t.Series.types.column),S.compose(t.Series),F.compose(t.Axis),$.compose(t.SVGRenderer),q.compose(t.Chart),C.compose(t.Axis),T.compose(t.Chart),f.compose(t.Series.types.pie),M.compose(t.Chart,t.Axis),P.compose(t.Chart),N.compose(t.Chart),u.compose(t.Axis,t.Chart,t.Series),x.compose(t.Axis,t.Chart,t.Series),L.compose(t.Pointer),r.extend(t,r),t}),s["masters/highcharts.src.js"]._modules=s,s["masters/highcharts.src.js"]})});var Wo=null;function ii(){return Wo}function Vo(i){Wo??=i}var ks=class{};var We=new Te(""),Fr=(()=>{class i{historyGo(e){throw new Error("")}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Rl),providedIn:"platform"})}}return i})(),Xo=new Te(""),Rl=(()=>{class i extends Fr{constructor(){super(),this._doc=xe(We),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ii().getBaseHref(this._doc)}onPopState(e){let t=ii().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=ii().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,t,r){this._history.pushState(e,t,r)}replaceState(e,t,r){this._history.replaceState(e,t,r)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>new i,providedIn:"platform"})}}return i})();function Nr(i,s){if(i.length==0)return s;if(s.length==0)return i;let e=0;return i.endsWith("/")&&e++,s.startsWith("/")&&e++,e==2?i+s.substring(1):e==1?i+s:i+"/"+s}function Bo(i){let s=i.match(/#|\?|$/),e=s&&s.index||i.length,t=e-(i[e-1]==="/"?1:0);return i.slice(0,t)+i.slice(e)}function kt(i){return i&&i[0]!=="?"?"?"+i:i}var xt=(()=>{class i{historyGo(e){throw new Error("")}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(jr),providedIn:"root"})}}return i})(),Yo=new Te(""),jr=(()=>{class i extends xt{constructor(e,t){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??xe(We).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Nr(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+kt(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${t}${r}`:t}pushState(e,t,r,a){let l=this.prepareExternalUrl(r+kt(a));this._platformLocation.pushState(e,t,l)}replaceState(e,t,r,a){let l=this.prepareExternalUrl(r+kt(a));this._platformLocation.replaceState(e,t,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(t){return new(t||i)(Ce(Fr),Ce(Yo,8))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Br=(()=>{class i extends xt{constructor(e,t){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],t!=null&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){let t=Nr(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,r,a){let l=this.prepareExternalUrl(r+kt(a));l.length==0&&(l=this._platformLocation.pathname),this._platformLocation.pushState(e,t,l)}replaceState(e,t,r,a){let l=this.prepareExternalUrl(r+kt(a));l.length==0&&(l=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,l)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static{this.\u0275fac=function(t){return new(t||i)(Ce(Fr),Ce(Yo,8))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),di=(()=>{class i{constructor(e){this._subject=new vt,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=Ll(Bo(_o(t))),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+kt(t))}normalize(e){return i.stripTrailingSlash(Il(this._basePath,_o(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",r=null){this._locationStrategy.pushState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kt(t)),r)}replaceState(e,t="",r=null){this._locationStrategy.replaceState(r,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+kt(t)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(r=>r(e,t))}subscribe(e,t,r){return this._subject.subscribe({next:e,error:t,complete:r})}static{this.normalizeQueryParams=kt}static{this.joinWithSlash=Nr}static{this.stripTrailingSlash=Bo}static{this.\u0275fac=function(t){return new(t||i)(Ce(xt))}}static{this.\u0275prov=De({token:i,factory:()=>Ol(),providedIn:"root"})}}return i})();function Ol(){return new di(Ce(xt))}function Il(i,s){if(!i||!s.startsWith(i))return s;let e=s.substring(i.length);return e===""||["/",";","?","#"].includes(e[0])?e:s}function _o(i){return i.replace(/\/index.html$/,"")}function Ll(i){if(new RegExp("^(https?:)?//").test(i)){let[,e]=i.split(/\/\/[^\/]+/);return e}return i}var Qe=function(i){return i[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i}(Qe||{}),Ie=function(i){return i[i.Narrow=0]="Narrow",i[i.Abbreviated=1]="Abbreviated",i[i.Wide=2]="Wide",i[i.Short=3]="Short",i}(Ie||{}),nt=function(i){return i[i.Short=0]="Short",i[i.Medium=1]="Medium",i[i.Long=2]="Long",i[i.Full=3]="Full",i}(nt||{}),Ut={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 Fl(i){return ut(i)[$e.LocaleId]}function Nl(i,s,e){let t=ut(i),r=[t[$e.DayPeriodsFormat],t[$e.DayPeriodsStandalone]],a=pt(r,s);return pt(a,e)}function jl(i,s,e){let t=ut(i),r=[t[$e.DaysFormat],t[$e.DaysStandalone]],a=pt(r,s);return pt(a,e)}function Bl(i,s,e){let t=ut(i),r=[t[$e.MonthsFormat],t[$e.MonthsStandalone]],a=pt(r,s);return pt(a,e)}function _l(i,s){let t=ut(i)[$e.Eras];return pt(t,s)}function ws(i,s){let e=ut(i);return pt(e[$e.DateFormat],s)}function Cs(i,s){let e=ut(i);return pt(e[$e.TimeFormat],s)}function Ds(i,s){let t=ut(i)[$e.DateTimeFormat];return pt(t,s)}function Rs(i,s){let e=ut(i),t=e[$e.NumberSymbols][s];if(typeof t>"u"){if(s===Ut.CurrencyDecimal)return e[$e.NumberSymbols][Ut.Decimal];if(s===Ut.CurrencyGroup)return e[$e.NumberSymbols][Ut.Group]}return t}function qo(i){if(!i[$e.ExtraData])throw new Error(`Missing extra locale data for the locale "${i[$e.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function zl(i){let s=ut(i);return qo(s),(s[$e.ExtraData][2]||[]).map(t=>typeof t=="string"?Mr(t):[Mr(t[0]),Mr(t[1])])}function Ul(i,s,e){let t=ut(i);qo(t);let r=[t[$e.ExtraData][0],t[$e.ExtraData][1]],a=pt(r,s)||[];return pt(a,e)||[]}function pt(i,s){for(let e=s;e>-1;e--)if(typeof i[e]<"u")return i[e];throw new Error("Locale data API: locale data undefined")}function Mr(i){let[s,e]=i.split(":");return{hours:+s,minutes:+e}}var $l=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ss={},Hl=/((?:[^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]*)/,Pt=function(i){return i[i.Short=0]="Short",i[i.ShortGMT=1]="ShortGMT",i[i.Long=2]="Long",i[i.Extended=3]="Extended",i}(Pt||{}),Re=function(i){return i[i.FullYear=0]="FullYear",i[i.Month=1]="Month",i[i.Date=2]="Date",i[i.Hours=3]="Hours",i[i.Minutes=4]="Minutes",i[i.Seconds=5]="Seconds",i[i.FractionalSeconds=6]="FractionalSeconds",i[i.Day=7]="Day",i}(Re||{}),Pe=function(i){return i[i.DayPeriods=0]="DayPeriods",i[i.Days=1]="Days",i[i.Months=2]="Months",i[i.Eras=3]="Eras",i}(Pe||{});function Gl(i,s,e,t){let r=Ql(i);s=Tt(e,s)||s;let l=[],_;for(;s;)if(_=Hl.exec(s),_){l=l.concat(_.slice(1));let G=l.pop();if(!G)break;s=G}else{l.push(s);break}let O=r.getTimezoneOffset();t&&(O=Ko(t,O),r=Jl(r,t,!0));let te="";return l.forEach(G=>{let X=Zl(G);te+=X?X(r,e,O):G==="''"?"'":G.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),te}function Ps(i,s,e){let t=new Date(0);return t.setFullYear(i,s,e),t.setHours(0,0,0),t}function Tt(i,s){let e=Fl(i);if(Ss[e]??={},Ss[e][s])return Ss[e][s];let t="";switch(s){case"shortDate":t=ws(i,nt.Short);break;case"mediumDate":t=ws(i,nt.Medium);break;case"longDate":t=ws(i,nt.Long);break;case"fullDate":t=ws(i,nt.Full);break;case"shortTime":t=Cs(i,nt.Short);break;case"mediumTime":t=Cs(i,nt.Medium);break;case"longTime":t=Cs(i,nt.Long);break;case"fullTime":t=Cs(i,nt.Full);break;case"short":let r=Tt(i,"shortTime"),a=Tt(i,"shortDate");t=As(Ds(i,nt.Short),[r,a]);break;case"medium":let l=Tt(i,"mediumTime"),_=Tt(i,"mediumDate");t=As(Ds(i,nt.Medium),[l,_]);break;case"long":let O=Tt(i,"longTime"),te=Tt(i,"longDate");t=As(Ds(i,nt.Long),[O,te]);break;case"full":let G=Tt(i,"fullTime"),X=Tt(i,"fullDate");t=As(Ds(i,nt.Full),[G,X]);break}return t&&(Ss[e][s]=t),t}function As(i,s){return s&&(i=i.replace(/\{([^}]+)}/g,function(e,t){return s!=null&&t in s?s[t]:e})),i}function gt(i,s,e="-",t,r){let a="";(i<0||r&&i<=0)&&(r?i=-i+1:(i=-i,a=e));let l=String(i);for(;l.length0||_>-e)&&(_+=e),i===Re.Hours)_===0&&e===-12&&(_=12);else if(i===Re.FractionalSeconds)return Wl(_,s);let O=Rs(l,Ut.MinusSign);return gt(_,s,O,t,r)}}function Vl(i,s){switch(i){case Re.FullYear:return s.getFullYear();case Re.Month:return s.getMonth();case Re.Date:return s.getDate();case Re.Hours:return s.getHours();case Re.Minutes:return s.getMinutes();case Re.Seconds:return s.getSeconds();case Re.FractionalSeconds:return s.getMilliseconds();case Re.Day:return s.getDay();default:throw new Error(`Unknown DateType value "${i}".`)}}function Ne(i,s,e=Qe.Format,t=!1){return function(r,a){return Xl(r,a,i,s,e,t)}}function Xl(i,s,e,t,r,a){switch(e){case Pe.Months:return Bl(s,r,t)[i.getMonth()];case Pe.Days:return jl(s,r,t)[i.getDay()];case Pe.DayPeriods:let l=i.getHours(),_=i.getMinutes();if(a){let te=zl(s),G=Ul(s,r,t),X=te.findIndex(J=>{if(Array.isArray(J)){let[A,$]=J,j=l>=A.hours&&_>=A.minutes,F=l<$.hours||l===$.hours&&_<$.minutes;if(A.hours<$.hours){if(j&&F)return!0}else if(j||F)return!0}else if(J.hours===l&&J.minutes===_)return!0;return!1});if(X!==-1)return G[X]}return Nl(s,r,t)[l<12?0:1];case Pe.Eras:return _l(s,t)[i.getFullYear()<=0?0:1];default:let O=e;throw new Error(`unexpected translation type ${O}`)}}function Es(i){return function(s,e,t){let r=-1*t,a=Rs(e,Ut.MinusSign),l=r>0?Math.floor(r/60):Math.ceil(r/60);switch(i){case Pt.Short:return(r>=0?"+":"")+gt(l,2,a)+gt(Math.abs(r%60),2,a);case Pt.ShortGMT:return"GMT"+(r>=0?"+":"")+gt(l,1,a);case Pt.Long:return"GMT"+(r>=0?"+":"")+gt(l,2,a)+":"+gt(Math.abs(r%60),2,a);case Pt.Extended:return t===0?"Z":(r>=0?"+":"")+gt(l,2,a)+":"+gt(Math.abs(r%60),2,a);default:throw new Error(`Unknown zone width "${i}"`)}}}var Yl=0,Ts=4;function ql(i){let s=Ps(i,Yl,1).getDay();return Ps(i,0,1+(s<=Ts?Ts:Ts+7)-s)}function Zo(i){let s=i.getDay(),e=s===0?-3:Ts-s;return Ps(i.getFullYear(),i.getMonth(),i.getDate()+e)}function Tr(i,s=!1){return function(e,t){let r;if(s){let a=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,l=e.getDate();r=1+Math.floor((l+a)/7)}else{let a=Zo(e),l=ql(a.getFullYear()),_=a.getTime()-l.getTime();r=1+Math.round(_/6048e5)}return gt(r,i,Rs(t,Ut.MinusSign))}}function Ms(i,s=!1){return function(e,t){let a=Zo(e).getFullYear();return gt(a,i,Rs(t,Ut.MinusSign),s)}}var kr={};function Zl(i){if(kr[i])return kr[i];let s;switch(i){case"G":case"GG":case"GGG":s=Ne(Pe.Eras,Ie.Abbreviated);break;case"GGGG":s=Ne(Pe.Eras,Ie.Wide);break;case"GGGGG":s=Ne(Pe.Eras,Ie.Narrow);break;case"y":s=He(Re.FullYear,1,0,!1,!0);break;case"yy":s=He(Re.FullYear,2,0,!0,!0);break;case"yyy":s=He(Re.FullYear,3,0,!1,!0);break;case"yyyy":s=He(Re.FullYear,4,0,!1,!0);break;case"Y":s=Ms(1);break;case"YY":s=Ms(2,!0);break;case"YYY":s=Ms(3);break;case"YYYY":s=Ms(4);break;case"M":case"L":s=He(Re.Month,1,1);break;case"MM":case"LL":s=He(Re.Month,2,1);break;case"MMM":s=Ne(Pe.Months,Ie.Abbreviated);break;case"MMMM":s=Ne(Pe.Months,Ie.Wide);break;case"MMMMM":s=Ne(Pe.Months,Ie.Narrow);break;case"LLL":s=Ne(Pe.Months,Ie.Abbreviated,Qe.Standalone);break;case"LLLL":s=Ne(Pe.Months,Ie.Wide,Qe.Standalone);break;case"LLLLL":s=Ne(Pe.Months,Ie.Narrow,Qe.Standalone);break;case"w":s=Tr(1);break;case"ww":s=Tr(2);break;case"W":s=Tr(1,!0);break;case"d":s=He(Re.Date,1);break;case"dd":s=He(Re.Date,2);break;case"c":case"cc":s=He(Re.Day,1);break;case"ccc":s=Ne(Pe.Days,Ie.Abbreviated,Qe.Standalone);break;case"cccc":s=Ne(Pe.Days,Ie.Wide,Qe.Standalone);break;case"ccccc":s=Ne(Pe.Days,Ie.Narrow,Qe.Standalone);break;case"cccccc":s=Ne(Pe.Days,Ie.Short,Qe.Standalone);break;case"E":case"EE":case"EEE":s=Ne(Pe.Days,Ie.Abbreviated);break;case"EEEE":s=Ne(Pe.Days,Ie.Wide);break;case"EEEEE":s=Ne(Pe.Days,Ie.Narrow);break;case"EEEEEE":s=Ne(Pe.Days,Ie.Short);break;case"a":case"aa":case"aaa":s=Ne(Pe.DayPeriods,Ie.Abbreviated);break;case"aaaa":s=Ne(Pe.DayPeriods,Ie.Wide);break;case"aaaaa":s=Ne(Pe.DayPeriods,Ie.Narrow);break;case"b":case"bb":case"bbb":s=Ne(Pe.DayPeriods,Ie.Abbreviated,Qe.Standalone,!0);break;case"bbbb":s=Ne(Pe.DayPeriods,Ie.Wide,Qe.Standalone,!0);break;case"bbbbb":s=Ne(Pe.DayPeriods,Ie.Narrow,Qe.Standalone,!0);break;case"B":case"BB":case"BBB":s=Ne(Pe.DayPeriods,Ie.Abbreviated,Qe.Format,!0);break;case"BBBB":s=Ne(Pe.DayPeriods,Ie.Wide,Qe.Format,!0);break;case"BBBBB":s=Ne(Pe.DayPeriods,Ie.Narrow,Qe.Format,!0);break;case"h":s=He(Re.Hours,1,-12);break;case"hh":s=He(Re.Hours,2,-12);break;case"H":s=He(Re.Hours,1);break;case"HH":s=He(Re.Hours,2);break;case"m":s=He(Re.Minutes,1);break;case"mm":s=He(Re.Minutes,2);break;case"s":s=He(Re.Seconds,1);break;case"ss":s=He(Re.Seconds,2);break;case"S":s=He(Re.FractionalSeconds,1);break;case"SS":s=He(Re.FractionalSeconds,2);break;case"SSS":s=He(Re.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":s=Es(Pt.Short);break;case"ZZZZZ":s=Es(Pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":s=Es(Pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":s=Es(Pt.Long);break;default:return null}return kr[i]=s,s}function Ko(i,s){i=i.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(e)?s:e}function Kl(i,s){return i=new Date(i.getTime()),i.setMinutes(i.getMinutes()+s),i}function Jl(i,s,e){let t=e?-1:1,r=i.getTimezoneOffset(),a=Ko(s,r);return Kl(i,t*(a-r))}function Ql(i){if(zo(i))return i;if(typeof i=="number"&&!isNaN(i))return new Date(i);if(typeof i=="string"){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){let[r,a=1,l=1]=i.split("-").map(_=>+_);return Ps(r,a-1,l)}let e=parseFloat(i);if(!isNaN(i-e))return new Date(e);let t;if(t=i.match($l))return eh(t)}let s=new Date(i);if(!zo(s))throw new Error(`Unable to convert "${i}" into a date`);return s}function eh(i){let s=new Date(0),e=0,t=0,r=i[8]?s.setUTCFullYear:s.setFullYear,a=i[8]?s.setUTCHours:s.setHours;i[9]&&(e=Number(i[9]+i[10]),t=Number(i[9]+i[11])),r.call(s,Number(i[1]),Number(i[2])-1,Number(i[3]));let l=Number(i[4]||0)-e,_=Number(i[5]||0)-t,O=Number(i[6]||0),te=Math.floor(parseFloat("0."+(i[7]||0))*1e3);return a.call(s,l,_,O,te),s}function zo(i){return i instanceof Date&&!isNaN(i.valueOf())}function Os(i,s){s=encodeURIComponent(s);for(let e of i.split(";")){let t=e.indexOf("="),[r,a]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(r.trim()===s)return decodeURIComponent(a)}return null}var Pr=/\s+/,Uo=[],ju=(()=>{class i{constructor(e,t){this._ngEl=e,this._renderer=t,this.initialClasses=Uo,this.stateMap=new Map}set klass(e){this.initialClasses=e!=null?e.trim().split(Pr):Uo}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Pr):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let r=this.stateMap.get(e);r!==void 0?(r.enabled!==t&&(r.changed=!0,r.enabled=t),r.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],r=e[1];r.changed?(this._toggleClass(t,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),r.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(Pr).forEach(r=>{t?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}static{this.\u0275fac=function(t){return new(t||i)(Ue(Kt),Ue(ei))}}static{this.\u0275dir=Et({type:i,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return i})(),Bu=(()=>{class i{constructor(e){this._viewContainerRef=e,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(e){return e.ngComponentOutletNgModule!==void 0||e.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(e){return e.ngComponentOutlet!==void 0||e.ngComponentOutletContent!==void 0||e.ngComponentOutletInjector!==void 0||this._needToReCreateNgModuleInstance(e)}ngOnChanges(e){if(this._needToReCreateComponentInstance(e)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let t=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(e)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=So(this.ngComponentOutletNgModule,$o(t)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create($o(t)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:t,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let e of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(e,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(e){for(let[t,r]of this._inputsUsed)r?(e.setInput(t,this.ngComponentOutletInputs[t]),this._inputsUsed.set(t,!1)):(e.setInput(t,void 0),this._inputsUsed.delete(t))}static{this.\u0275fac=function(t){return new(t||i)(Ue(Ri))}}static{this.\u0275dir=Et({type:i,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[Zt]})}}return i})();function $o(i){return i.get(Co).injector}var _u=(()=>{class i{constructor(e,t,r){this._ngEl=e,this._differs=t,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,t){let[r,a]=e.split("."),l=r.indexOf("-")===-1?void 0:Qt.DashCase;t!=null?this._renderer.setStyle(this._ngEl.nativeElement,r,a?`${t}${a}`:t,l):this._renderer.removeStyle(this._ngEl.nativeElement,r,l)}_applyChanges(e){e.forEachRemovedItem(t=>this._setStyle(t.key,null)),e.forEachAddedItem(t=>this._setStyle(t.key,t.currentValue)),e.forEachChangedItem(t=>this._setStyle(t.key,t.currentValue))}static{this.\u0275fac=function(t){return new(t||i)(Ue(Kt),Ue(Lo),Ue(ei))}}static{this.\u0275dir=Et({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return i})(),zu=(()=>{class i{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let r=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,r,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,r)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,r):!1,get:(e,t,r)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,r)}})}static{this.\u0275fac=function(t){return new(t||i)(Ue(Ri))}}static{this.\u0275dir=Et({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zt]})}}return i})();function Jo(i,s){return new Fe(2100,!1)}var Rr=class{createSubscription(s,e){return Er(()=>s.subscribe({next:e,error:t=>{throw t}}))}dispose(s){Er(()=>s.unsubscribe())}},Or=class{createSubscription(s,e){return s.then(e,t=>{throw t})}dispose(s){}},th=new Or,ih=new Rr,Uu=(()=>{class i{constructor(e){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(ys(e))return th;if(Oo(e))return ih;throw Jo(i,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static{this.\u0275fac=function(t){return new(t||i)(Ue(ti,16))}}static{this.\u0275pipe=Ti({name:"async",type:i,pure:!1,standalone:!0})}}return i})();var sh="mediumDate",rh=new Te(""),nh=new Te(""),$u=(()=>{class i{constructor(e,t,r){this.locale=e,this.defaultTimezone=t,this.defaultOptions=r}transform(e,t,r,a){if(e==null||e===""||e!==e)return null;try{let l=t??this.defaultOptions?.dateFormat??sh,_=r??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return Gl(e,l,a||this.locale,_)}catch(l){throw Jo(i,l.message)}}static{this.\u0275fac=function(t){return new(t||i)(Ue(Io,16),Ue(rh,24),Ue(nh,24))}}static{this.\u0275pipe=Ti({name:"date",type:i,pure:!0,standalone:!0})}}return i})();var Qo=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=Yt({type:i})}static{this.\u0275inj=Xt({})}}return i})(),_r="browser",oh="server";function ah(i){return i===_r}function Oi(i){return i===oh}var ea=(()=>{class i{static{this.\u0275prov=De({token:i,providedIn:"root",factory:()=>ah(xe(bt))?new Ir(xe(We),window):new Lr})}}return i})(),Ir=class{constructor(s,e){this.document=s,this.window=e,this.offset=()=>[0,0]}setOffset(s){Array.isArray(s)?this.offset=()=>s:this.offset=s}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(s){this.window.scrollTo(s[0],s[1])}scrollToAnchor(s){let e=lh(this.document,s);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(s){this.window.history.scrollRestoration=s}scrollToElement(s){let e=s.getBoundingClientRect(),t=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(t-a[0],r-a[1])}};function lh(i,s){let e=i.getElementById(s)||i.getElementsByName(s)[0];if(e)return e;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),r=t.currentNode;for(;r;){let a=r.shadowRoot;if(a){let l=a.getElementById(s)||a.querySelector(`[name="${s}"]`);if(l)return l}r=t.nextNode()}}return null}var Lr=class{setOffset(s){}getScrollPosition(){return[0,0]}scrollToPosition(s){}scrollToAnchor(s){}setHistoryScrollRestoration(s){}},ci=class{};var ta=i=>i.src,hh=new Te("",{providedIn:"root",factory:()=>ta});var ch=new Te("NG_OPTIMIZED_PRELOADED_IMAGES",{providedIn:"root",factory:()=>new Set}),dh=(()=>{class i{constructor(){this.preloadedImages=xe(ch),this.document=xe(We)}createPreloadLinkTag(e,t,r,a){if(this.preloadedImages.has(t))return;this.preloadedImages.add(t);let l=e.createElement("link");e.setAttribute(l,"as","image"),e.setAttribute(l,"href",t),e.setAttribute(l,"rel","preload"),e.setAttribute(l,"fetchpriority","high"),a&&e.setAttribute(l,"imageSizes",a),r&&e.setAttribute(l,"imageSrcset",r),e.appendChild(this.document.head,l)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var uh=/^((\s*\d+w\s*(,|$)){1,})$/;var ph=[1,2],fh=640;var gh=1920,mh=1080;var Hu=(()=>{class i{constructor(){this.imageLoader=xe(hh),this.config=yh(xe(co)),this.renderer=xe(ei),this.imgElement=xe(Kt).nativeElement,this.injector=xe(Pi),this.isServer=Oi(xe(bt)),this.preloadLinkCreator=xe(dh),this.lcpObserver=null,this._renderedSrc=null,this.priority=!1,this.disableOptimizedSrcset=!1,this.fill=!1}ngOnInit(){wr("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 e=this.updateSrcAndSrcset();this.sizes&&this.setHostAttribute("sizes",this.sizes),this.isServer&&this.priority&&this.preloadLinkCreator.createPreloadLinkTag(this.renderer,this.getRewrittenSrc(),e,this.sizes)}ngOnChanges(e){if(e.ngSrc&&!e.ngSrc.isFirstChange()){let t=this._renderedSrc;this.updateSrcAndSrcset(!0);let r=this._renderedSrc;this.lcpObserver!==null&&t&&r&&t!==r&&this.injector.get(tt).runOutsideAngular(()=>{this.lcpObserver?.updateImage(t,r)})}}callImageLoader(e){let t=e;return this.loaderParams&&(t.loaderParams=this.loaderParams),this.imageLoader(t)}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 e={src:this.ngSrc};this._renderedSrc=this.callImageLoader(e)}return this._renderedSrc}getRewrittenSrcset(){let e=uh.test(this.ngSrcset);return this.ngSrcset.split(",").filter(r=>r!=="").map(r=>{r=r.trim();let a=e?parseFloat(r):parseFloat(r)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:a})} ${r}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:e}=this.config,t=e;return this.sizes?.trim()==="100vw"&&(t=e.filter(a=>a>=fh)),t.map(a=>`${this.callImageLoader({src:this.ngSrc,width:a})} ${a}w`).join(", ")}updateSrcAndSrcset(e=!1){e&&(this._renderedSrc=null);let t=this.getRewrittenSrc();this.setHostAttribute("src",t);let r;return this.ngSrcset?r=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(r=this.getAutomaticSrcset()),r&&this.setHostAttribute("srcset",r),r}getFixedSrcset(){return ph.map(t=>`${this.callImageLoader({src:this.ngSrc,width:this.width*t})} ${t}x`).join(", ")}shouldGenerateAutomaticSrcset(){let e=!1;return this.sizes||(e=this.width>gh||this.height>mh),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==ta&&!e}generatePlaceholder(e){let{placeholderResolution:t}=this.config;return e===!0?`url(${this.callImageLoader({src:this.ngSrc,width:t,isPlaceholder:!0})})`:typeof e=="string"?`url(${e})`:null}shouldBlurPlaceholder(e){return!e||!e.hasOwnProperty("blur")?!0:!!e.blur}removePlaceholderOnLoad(e){let t=()=>{let l=this.injector.get(ti);r(),a(),this.placeholder=!1,l.markForCheck()},r=this.renderer.listen(e,"load",t),a=this.renderer.listen(e,"error",t);vh(e,t)}ngOnDestroy(){}setHostAttribute(e,t){this.renderer.setAttribute(this.imgElement,e,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=Et({type:i,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(t,r){t&2&&Mo("position",r.fill?"absolute":null)("width",r.fill?"100%":null)("height",r.fill?"100%":null)("inset",r.fill?"0":null)("background-size",r.placeholder?"cover":null)("background-position",r.placeholder?"50% 50%":null)("background-repeat",r.placeholder?"no-repeat":null)("background-image",r.placeholder?r.generatePlaceholder(r.placeholder):null)("filter",r.placeholder&&r.shouldBlurPlaceholder(r.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",bh],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",xh],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},standalone:!0,features:[ps,Zt]})}}return i})();function yh(i){let s={};return i.breakpoints&&(s.breakpoints=i.breakpoints.sort((e,t)=>e-t)),Object.assign({},ho,i,s)}function vh(i,s){i.complete&&i.naturalWidth&&s()}function bh(i){return typeof i=="string"?i:zt(i)}function xh(i){return typeof i=="string"&&i!=="true"&&i!=="false"&&i!==""?i:Mt(i)}var Li=class{},Fi=class{},Xe=class i{constructor(s){this.normalizedNames=new Map,this.lazyUpdate=null,s?typeof s=="string"?this.lazyInit=()=>{this.headers=new Map,s.split(` -`).forEach(e=>{let t=e.indexOf(":");if(t>0){let r=e.slice(0,t),a=r.toLowerCase(),l=e.slice(t+1).trim();this.maybeSetNormalizedName(r,a),this.headers.has(a)?this.headers.get(a).push(l):this.headers.set(a,[l])}})}:typeof Headers<"u"&&s instanceof Headers?(this.headers=new Map,s.forEach((e,t)=>{this.setHeaderEntries(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(s).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(s){return this.init(),this.headers.has(s.toLowerCase())}get(s){this.init();let e=this.headers.get(s.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(s){return this.init(),this.headers.get(s.toLowerCase())||null}append(s,e){return this.clone({name:s,value:e,op:"a"})}set(s,e){return this.clone({name:s,value:e,op:"s"})}delete(s,e){return this.clone({name:s,value:e,op:"d"})}maybeSetNormalizedName(s,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,s)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(s=>this.applyUpdate(s)),this.lazyUpdate=null))}copyFrom(s){s.init(),Array.from(s.headers.keys()).forEach(e=>{this.headers.set(e,s.headers.get(e)),this.normalizedNames.set(e,s.normalizedNames.get(e))})}clone(s){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([s]),e}applyUpdate(s){let e=s.name.toLowerCase();switch(s.op){case"a":case"s":let t=s.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(s.name,e);let r=(s.op==="a"?this.headers.get(e):void 0)||[];r.push(...t),this.headers.set(e,r);break;case"d":let a=s.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let l=this.headers.get(e);if(!l)return;l=l.filter(_=>a.indexOf(_)===-1),l.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,l)}break}}setHeaderEntries(s,e){let t=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=s.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(s,r)}forEach(s){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>s(this.normalizedNames.get(e),this.headers.get(e)))}};var Ur=class{encodeKey(s){return sa(s)}encodeValue(s){return sa(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}};function wh(i,s){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[l,_]=a==-1?[s.decodeKey(r),""]:[s.decodeKey(r.slice(0,a)),s.decodeValue(r.slice(a+1))],O=e.get(l)||[];O.push(_),e.set(l,O)}),e}var Ch=/%(\d[a-f0-9])/gi,Dh={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sa(i){return encodeURIComponent(i).replace(Ch,(s,e)=>Dh[e]??s)}function Is(i){return`${i}`}var Ht=class i{constructor(s={}){if(this.updates=null,this.cloneFrom=null,this.encoder=s.encoder||new Ur,s.fromString){if(s.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=wh(s.fromString,this.encoder)}else s.fromObject?(this.map=new Map,Object.keys(s.fromObject).forEach(e=>{let t=s.fromObject[e],r=Array.isArray(t)?t.map(Is):[Is(t)];this.map.set(e,r)})):this.map=null}has(s){return this.init(),this.map.has(s)}get(s){this.init();let e=this.map.get(s);return e?e[0]:null}getAll(s){return this.init(),this.map.get(s)||null}keys(){return this.init(),Array.from(this.map.keys())}append(s,e){return this.clone({param:s,value:e,op:"a"})}appendAll(s){let e=[];return Object.keys(s).forEach(t=>{let r=s[t];Array.isArray(r)?r.forEach(a=>{e.push({param:t,value:a,op:"a"})}):e.push({param:t,value:r,op:"a"})}),this.clone(e)}set(s,e){return this.clone({param:s,value:e,op:"s"})}delete(s,e){return this.clone({param:s,value:e,op:"d"})}toString(){return this.init(),this.keys().map(s=>{let e=this.encoder.encodeKey(s);return this.map.get(s).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(s=>s!=="").join("&")}clone(s){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(s),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(s=>this.map.set(s,this.cloneFrom.map.get(s))),this.updates.forEach(s=>{switch(s.op){case"a":case"s":let e=(s.op==="a"?this.map.get(s.param):void 0)||[];e.push(Is(s.value)),this.map.set(s.param,e);break;case"d":if(s.value!==void 0){let t=this.map.get(s.param)||[],r=t.indexOf(Is(s.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(s.param,t):this.map.delete(s.param)}else{this.map.delete(s.param);break}}}),this.cloneFrom=this.updates=null)}};var $r=class{constructor(){this.map=new Map}set(s,e){return this.map.set(s,e),this}get(s){return this.map.has(s)||this.map.set(s,s.defaultValue()),this.map.get(s)}delete(s){return this.map.delete(s),this}has(s){return this.map.has(s)}keys(){return this.map.keys()}};function Sh(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ra(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function na(i){return typeof Blob<"u"&&i instanceof Blob}function oa(i){return typeof FormData<"u"&&i instanceof FormData}function Ah(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Ii=class i{constructor(s,e,t,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase();let a;if(Sh(this.method)||r?(this.body=t!==void 0?t:null,a=r):a=t,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new Xe,this.context??=new $r,!this.params)this.params=new Ht,this.urlWithParams=e;else{let l=this.params.toString();if(l.length===0)this.urlWithParams=e;else{let _=e.indexOf("?"),O=_===-1?"?":_J.set(A,s.setHeaders[A]),te)),s.setParams&&(G=Object.keys(s.setParams).reduce((J,A)=>J.set(A,s.setParams[A]),G)),new i(e,t,l,{params:G,headers:te,context:X,reportProgress:O,responseType:r,withCredentials:_,transferCache:a})}},Gt=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Gt||{}),Ni=class{constructor(s,e=200,t="OK"){this.headers=s.headers||new Xe,this.status=s.status!==void 0?s.status:e,this.statusText=s.statusText||t,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}},Ls=class i extends Ni{constructor(s={}){super(s),this.type=Gt.ResponseHeader}clone(s={}){return new i({headers:s.headers||this.headers,status:s.status!==void 0?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}},ji=class i extends Ni{constructor(s={}){super(s),this.type=Gt.Response,this.body=s.body!==void 0?s.body:null}clone(s={}){return new i({body:s.body!==void 0?s.body:this.body,headers:s.headers||this.headers,status:s.status!==void 0?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}},$t=class extends Ni{constructor(s){super(s,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${s.url||"(unknown url)"}`:this.message=`Http failure response for ${s.url||"(unknown url)"}: ${s.status} ${s.statusText}`,this.error=s.error||null}},ca=200,Eh=204;function zr(i,s){return{body:s,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var Vr=(()=>{class i{constructor(e){this.handler=e}request(e,t,r={}){let a;if(e instanceof Ii)a=e;else{let O;r.headers instanceof Xe?O=r.headers:O=new Xe(r.headers);let te;r.params&&(r.params instanceof Ht?te=r.params:te=new Ht({fromObject:r.params})),a=new Ii(e,t,r.body!==void 0?r.body:null,{headers:O,context:r.context,params:te,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let l=Se(a).pipe(jt(O=>this.handler.handle(O)));if(e instanceof Ii||r.observe==="events")return l;let _=l.pipe(St(O=>O instanceof ji));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return _.pipe(ke(O=>{if(O.body!==null&&!(O.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return O.body}));case"blob":return _.pipe(ke(O=>{if(O.body!==null&&!(O.body instanceof Blob))throw new Error("Response is not a Blob.");return O.body}));case"text":return _.pipe(ke(O=>{if(O.body!==null&&typeof O.body!="string")throw new Error("Response is not a string.");return O.body}));case"json":default:return _.pipe(ke(O=>O.body))}case"response":return _;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Ht().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,r={}){return this.request("PATCH",e,zr(r,t))}post(e,t,r={}){return this.request("POST",e,zr(r,t))}put(e,t,r={}){return this.request("PUT",e,zr(r,t))}static{this.\u0275fac=function(t){return new(t||i)(Ce(Li))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Mh=/^\)\]\}',?\n/,Th="X-Request-URL";function aa(i){if(i.url)return i.url;let s=Th.toLocaleLowerCase();return i.headers.get(s)}var Hr=(()=>{class i{constructor(){this.fetchImpl=xe(Gr,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=xe(tt)}handle(e){return new Ai(t=>{let r=new AbortController;return this.doRequest(e,r.signal,t).then(Wr,a=>t.error(new $t({error:a}))),()=>r.abort()})}doRequest(e,t,r){return ht(this,null,function*(){let a=this.createRequestInit(e),l;try{let A=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,we({signal:t},a)));kh(A),r.next({type:Gt.Sent}),l=yield A}catch(A){r.error(new $t({error:A,status:A.status??0,statusText:A.statusText,url:e.urlWithParams,headers:A.headers}));return}let _=new Xe(l.headers),O=l.statusText,te=aa(l)??e.urlWithParams,G=l.status,X=null;if(e.reportProgress&&r.next(new Ls({headers:_,status:G,statusText:O,url:te})),l.body){let A=l.headers.get("content-length"),$=[],j=l.body.getReader(),F=0,C,M,E=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ht(this,null,function*(){for(;;){let{done:y,value:P}=yield j.read();if(y)break;if($.push(P),F+=P.length,e.reportProgress){M=e.responseType==="text"?(M??"")+(C??=new TextDecoder).decode(P,{stream:!0}):void 0;let q=()=>r.next({type:Gt.DownloadProgress,total:A?+A:void 0,loaded:F,partialText:M});E?E.run(q):q()}}}));let L=this.concatChunks($,F);try{let y=l.headers.get("Content-Type")??"";X=this.parseBody(e,L,y)}catch(y){r.error(new $t({error:y,headers:new Xe(l.headers),status:l.status,statusText:l.statusText,url:aa(l)??e.urlWithParams}));return}}G===0&&(G=X?ca:0),G>=200&&G<300?(r.next(new ji({body:X,headers:_,status:G,statusText:O,url:te})),r.complete()):r.error(new $t({error:X,headers:_,status:G,statusText:O,url:te}))})}parseBody(e,t,r){switch(e.responseType){case"json":let a=new TextDecoder().decode(t).replace(Mh,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:r});case"arraybuffer":return t.buffer}}createRequestInit(e){let t={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((a,l)=>t[a]=l.join(",")),e.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let a=e.detectContentTypeHeader();a!==null&&(t["Content-Type"]=a)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:r}}concatChunks(e,t){let r=new Uint8Array(t),a=0;for(let l of e)r.set(l,a),a+=l.length;return r}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Gr=class{};function Wr(){}function kh(i){i.then(Wr,Wr)}function Ph(i,s){return s(i)}function Rh(i,s,e){return(t,r)=>dt(e,()=>s(t,a=>i(a,r)))}var da=new Te(""),Oh=new Te(""),Ih=new Te("",{providedIn:"root",factory:()=>!0});var la=(()=>{class i extends Li{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=xe(ds),this.contributeToStability=xe(Ih)}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(da),...this.injector.get(Oh,[])]));this.chain=t.reduceRight((r,a)=>Rh(r,a,this.injector),Ph)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(li(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static{this.\u0275fac=function(t){return new(t||i)(Ce(Fi),Ce(qt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();var Lh=/^\)\]\}',?\n/;function Fh(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var ha=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Fe(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Je(t.\u0275loadImpl()):Se(null)).pipe(rt(()=>new Ai(a=>{let l=t.build();if(l.open(e.method,e.urlWithParams),e.withCredentials&&(l.withCredentials=!0),e.headers.forEach((j,F)=>l.setRequestHeader(j,F.join(","))),e.headers.has("Accept")||l.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let j=e.detectContentTypeHeader();j!==null&&l.setRequestHeader("Content-Type",j)}if(e.responseType){let j=e.responseType.toLowerCase();l.responseType=j!=="json"?j:"text"}let _=e.serializeBody(),O=null,te=()=>{if(O!==null)return O;let j=l.statusText||"OK",F=new Xe(l.getAllResponseHeaders()),C=Fh(l)||e.url;return O=new Ls({headers:F,status:l.status,statusText:j,url:C}),O},G=()=>{let{headers:j,status:F,statusText:C,url:M}=te(),E=null;F!==Eh&&(E=typeof l.response>"u"?l.responseText:l.response),F===0&&(F=E?ca:0);let L=F>=200&&F<300;if(e.responseType==="json"&&typeof E=="string"){let y=E;E=E.replace(Lh,"");try{E=E!==""?JSON.parse(E):null}catch(P){E=y,L&&(L=!1,E={error:P,text:E})}}L?(a.next(new ji({body:E,headers:j,status:F,statusText:C,url:M||void 0})),a.complete()):a.error(new $t({error:E,headers:j,status:F,statusText:C,url:M||void 0}))},X=j=>{let{url:F}=te(),C=new $t({error:j,status:l.status||0,statusText:l.statusText||"Unknown Error",url:F||void 0});a.error(C)},J=!1,A=j=>{J||(a.next(te()),J=!0);let F={type:Gt.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&l.responseText&&(F.partialText=l.responseText),a.next(F)},$=j=>{let F={type:Gt.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),a.next(F)};return l.addEventListener("load",G),l.addEventListener("error",X),l.addEventListener("timeout",X),l.addEventListener("abort",X),e.reportProgress&&(l.addEventListener("progress",A),_!==null&&l.upload&&l.upload.addEventListener("progress",$)),l.send(_),a.next({type:Gt.Sent}),()=>{l.removeEventListener("error",X),l.removeEventListener("abort",X),l.removeEventListener("load",G),l.removeEventListener("timeout",X),e.reportProgress&&(l.removeEventListener("progress",A),_!==null&&l.upload&&l.upload.removeEventListener("progress",$)),l.readyState!==l.DONE&&l.abort()}})))}static{this.\u0275fac=function(t){return new(t||i)(Ce(ci))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),ua=new Te(""),Nh="XSRF-TOKEN",jh=new Te("",{providedIn:"root",factory:()=>Nh}),Bh="X-XSRF-TOKEN",_h=new Te("",{providedIn:"root",factory:()=>Bh}),Fs=class{},zh=(()=>{class i{constructor(e,t,r){this.doc=e,this.platform=t,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Os(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(t){return new(t||i)(Ce(We),Ce(bt),Ce(jh))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Uh(i,s){let e=i.url.toLowerCase();if(!xe(ua)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return s(i);let t=xe(Fs).getToken(),r=xe(_h);return t!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,t)})),s(i)}var pa=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(pa||{});function $h(i,s){return{\u0275kind:i,\u0275providers:s}}function sp(...i){let s=[Vr,ha,la,{provide:Li,useExisting:la},{provide:Fi,useFactory:()=>xe(Hr,{optional:!0})??xe(ha)},{provide:da,useValue:Uh,multi:!0},{provide:ua,useValue:!0},{provide:Fs,useClass:zh}];for(let e of i)s.push(...e.\u0275providers);return ki(s)}function rp(){return $h(pa.Fetch,[Hr,{provide:Fi,useExisting:Hr}])}var qr=class extends ks{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zr=class i extends qr{static makeCurrent(){Vo(new i)}onAndCancel(s,e,t){return s.addEventListener(e,t),()=>{s.removeEventListener(e,t)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.remove()}createElement(s,e){return e=e||this.getDefaultDocument(),e.createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return e==="window"?window:e==="document"?s:e==="body"?s.body:null}getBaseHref(s){let e=Wh();return e==null?null:Vh(e)}resetBaseElement(){Bi=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return Os(document.cookie,s)}},Bi=null;function Wh(){return Bi=Bi||document.querySelector("base"),Bi?Bi.getAttribute("href"):null}function Vh(i){return new URL(i,document.baseURI).pathname}var Kr=class{addToWindow(s){_t.getAngularTestability=(t,r=!0)=>{let a=s.findTestabilityInTree(t,r);if(a==null)throw new Fe(5103,!1);return a},_t.getAllAngularTestabilities=()=>s.getAllTestabilities(),_t.getAllAngularRootElements=()=>s.getAllRootElements();let e=t=>{let r=_t.getAllAngularTestabilities(),a=r.length,l=function(){a--,a==0&&t()};r.forEach(_=>{_.whenStable(l)})};_t.frameworkStabilizers||(_t.frameworkStabilizers=[]),_t.frameworkStabilizers.push(e)}findTestabilityInTree(s,e,t){if(e==null)return null;let r=s.getTestability(e);return r??(t?ii().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},Xh=(()=>{class i{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Jr=new Te(""),ya=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(a=>a.supports(e)),!t)throw new Fe(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||i)(Ce(Jr),Ce(tt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Ns=class{constructor(s){this._doc=s}},Xr="ng-app-id",va=(()=>{class i{constructor(e,t,r,a={}){this.doc=e,this.appId=t,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Oi(a),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(r=>r.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Xr}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(r=>{r.textContent!=null&&t.set(r.textContent,r)}),t}return null}changeUsageCount(e,t){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=t,a.usage}return r.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let r=this.styleNodesInDOM,a=r?.get(t);if(a?.parentNode===e)return r.delete(t),a.removeAttribute(Xr),a;{let l=this.doc.createElement("style");return this.nonce&&l.setAttribute("nonce",this.nonce),l.textContent=t,this.platformIsServer&&l.setAttribute(Xr,this.appId),e.appendChild(l),l}}addStyleToHost(e,t){let r=this.getStyleElement(e,t),a=this.styleRef,l=a.get(t)?.elements;l?l.push(r):a.set(t,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We),Ce(us),Ce(xr,8),Ce(bt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),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,ba="%COMP%",Yh=`_nghost-${ba}`,qh=`_ngcontent-${ba}`,Zh=!0,Kh=new Te("",{providedIn:"root",factory:()=>Zh});function Jh(i){return qh.replace(en,i)}function Qh(i){return Yh.replace(en,i)}function xa(i,s){return s.map(e=>e.replace(en,i))}var fa=(()=>{class i{constructor(e,t,r,a,l,_,O,te=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=l,this.platformId=_,this.ngZone=O,this.nonce=te,this.rendererByCompId=new Map,this.platformIsServer=Oi(_),this.defaultRenderer=new _i(e,l,O,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Mi.ShadowDom&&(t=ze(we({},t),{encapsulation:Mi.Emulated}));let r=this.getOrCreateRenderer(e,t);return r instanceof js?r.applyToHost(e):r instanceof zi&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,a=r.get(t.id);if(!a){let l=this.doc,_=this.ngZone,O=this.eventManager,te=this.sharedStylesHost,G=this.removeStylesOnCompDestroy,X=this.platformIsServer;switch(t.encapsulation){case Mi.Emulated:a=new js(O,te,t,this.appId,G,l,_,X);break;case Mi.ShadowDom:return new Qr(O,te,e,t,l,_,this.nonce,X);default:a=new zi(O,te,t,G,l,_,X);break}r.set(t.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||i)(Ce(ya),Ce(va),Ce(us),Ce(Kh),Ce(We),Ce(bt),Ce(tt),Ce(xr))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),_i=class{constructor(s,e,t,r){this.eventManager=s,this.doc=e,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(s,e){return e?this.doc.createElementNS(Yr[e]||e,s):this.doc.createElement(s)}createComment(s){return this.doc.createComment(s)}createText(s){return this.doc.createTextNode(s)}appendChild(s,e){(ga(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(ga(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){e.remove()}selectRootElement(s,e){let t=typeof s=="string"?this.doc.querySelector(s):s;if(!t)throw new Fe(-5104,!1);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;let a=Yr[r];a?s.setAttributeNS(a,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){let r=Yr[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(Qt.DashCase|Qt.Important)?s.style.setProperty(e,t,r&Qt.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&Qt.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s!=null&&(s[e]=t)}setValue(s,e){s.nodeValue=e}listen(s,e,t){if(typeof s=="string"&&(s=ii().getGlobalEventTarget(this.doc,s),!s))throw new Error(`Unsupported event target ${s} for event ${e}`);return this.eventManager.addEventListener(s,e,this.decoratePreventDefault(t))}decoratePreventDefault(s){return e=>{if(e==="__ngUnwrap__")return s;(this.platformIsServer?this.ngZone.runGuarded(()=>s(e)):s(e))===!1&&e.preventDefault()}}};function ga(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Qr=class extends _i{constructor(s,e,t,r,a,l,_,O){super(s,a,l,O),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let te=xa(r.id,r.styles);for(let G of te){let X=document.createElement("style");_&&X.setAttribute("nonce",_),X.textContent=G,this.shadowRoot.appendChild(X)}}nodeOrShadowRoot(s){return s===this.hostEl?this.shadowRoot:s}appendChild(s,e){return super.appendChild(this.nodeOrShadowRoot(s),e)}insertBefore(s,e,t){return super.insertBefore(this.nodeOrShadowRoot(s),e,t)}removeChild(s,e){return super.removeChild(null,e)}parentNode(s){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(s)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},zi=class extends _i{constructor(s,e,t,r,a,l,_,O){super(s,a,l,_),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=O?xa(O,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},js=class extends zi{constructor(s,e,t,r,a,l,_,O){let te=r+"-"+t.id;super(s,e,t,a,l,_,O,te),this.contentAttr=Jh(te),this.hostAttr=Qh(te)}applyToHost(s){this.applyStyles(),this.setAttribute(s,this.hostAttr,"")}createElement(s,e){let t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}},ec=(()=>{class i extends Ns{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),ma=["alt","control","meta","shift"],tc={"\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"},ic={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},sc=(()=>{class i extends Ns{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,r){let a=i.parseEventName(t),l=i.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(e,a.domEventName,l))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let a=i._normalizeKey(t.pop()),l="",_=t.indexOf("code");if(_>-1&&(t.splice(_,1),l="code."),ma.forEach(te=>{let G=t.indexOf(te);G>-1&&(t.splice(G,1),l+=te+".")}),l+=a,t.length!=0||a.length===0)return null;let O={};return O.domEventName=r,O.fullKey=l,O}static matchEventFullKeyCode(e,t){let r=tc[e.key]||e.key,a="";return t.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ma.forEach(l=>{if(l!==r){let _=ic[l];_(e)&&(a+=l+".")}}),a+=r,a===t)}static eventCallback(e,t,r){return a=>{i.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>t(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function xp(i,s){return No(we({rootComponent:i},rc(s)))}function rc(i){return{appProviders:[...wa,...i?.providers??[]],platformProviders:lc}}function nc(){Zr.makeCurrent()}function oc(){return new br}function ac(){return ao(document),document}var lc=[{provide:bt,useValue:_r},{provide:lo,useValue:nc,multi:!0},{provide:We,useFactory:ac,deps:[]}];var hc=new Te(""),cc=[{provide:gs,useClass:Kr,deps:[]},{provide:Ro,useClass:ms,deps:[tt,Dr,gs]},{provide:ms,useClass:ms,deps:[tt,Dr,gs]}],wa=[{provide:oo,useValue:"root"},{provide:br,useFactory:oc,deps:[]},{provide:Jr,useClass:ec,multi:!0,deps:[We,tt,bt]},{provide:Jr,useClass:sc,multi:!0,deps:[We]},fa,va,ya,{provide:wo,useExisting:fa},{provide:ci,useClass:Xh,deps:[]},[]],wp=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:us,useValue:e.appId}]}}static{this.\u0275fac=function(t){return new(t||i)(Ce(hc,12))}}static{this.\u0275mod=Yt({type:i})}static{this.\u0275inj=Xt({providers:[...wa,...cc],imports:[Qo,Fo]})}}return i})();var Ca=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:function(t){let r=null;return t?r=new(t||i):r=Ce(uc),r},providedIn:"root"})}}return i})(),uc=(()=>{class i extends dc{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case Jt.NONE:return t;case Jt.HTML:return hi(t,"HTML")?zt(t):vo(this._doc,String(t)).toString();case Jt.STYLE:return hi(t,"Style")?zt(t):t;case Jt.SCRIPT:if(hi(t,"Script"))return zt(t);throw new Fe(5200,!1);case Jt.URL:return hi(t,"URL")?zt(t):yo(String(t));case Jt.RESOURCE_URL:if(hi(t,"ResourceURL"))return zt(t);throw new Fe(5201,!1);default:throw new Fe(5202,!1)}}bypassSecurityTrustHtml(e){return uo(e)}bypassSecurityTrustStyle(e){return po(e)}bypassSecurityTrustScript(e){return fo(e)}bypassSecurityTrustUrl(e){return go(e)}bypassSecurityTrustResourceUrl(e){return mo(e)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ee="primary",ts=Symbol("RouteTitle"),on=class{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){let e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){let e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function yi(i){return new on(i)}function fc(i,s,e){let t=e.path.split("/");if(t.length>i.length||e.pathMatch==="full"&&(s.hasChildren()||t.lengtht[a]===r)}else return i===s}function La(i){return i.length>0?i[i.length-1]:null}function Vt(i){return qn(i)?i:ys(i)?Je(Promise.resolve(i)):Se(i)}var mc={exact:Na,subset:ja},Fa={exact:yc,subset:vc,ignored:()=>!0};function Da(i,s,e){return mc[e.paths](i.root,s.root,e.matrixParams)&&Fa[e.queryParams](i.queryParams,s.queryParams)&&!(e.fragment==="exact"&&i.fragment!==s.fragment)}function yc(i,s){return wt(i,s)}function Na(i,s,e){if(!ri(i.segments,s.segments)||!zs(i.segments,s.segments,e)||i.numberOfChildren!==s.numberOfChildren)return!1;for(let t in s.children)if(!i.children[t]||!Na(i.children[t],s.children[t],e))return!1;return!0}function vc(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(e=>Ia(i[e],s[e]))}function ja(i,s,e){return Ba(i,s,s.segments,e)}function Ba(i,s,e,t){if(i.segments.length>e.length){let r=i.segments.slice(0,e.length);return!(!ri(r,e)||s.hasChildren()||!zs(r,e,t))}else if(i.segments.length===e.length){if(!ri(i.segments,e)||!zs(i.segments,e,t))return!1;for(let r in s.children)if(!i.children[r]||!ja(i.children[r],s.children[r],t))return!1;return!0}else{let r=e.slice(0,i.segments.length),a=e.slice(i.segments.length);return!ri(i.segments,r)||!zs(i.segments,r,t)||!i.children[Ee]?!1:Ba(i.children[Ee],s,a,t)}}function zs(i,s,e){return s.every((t,r)=>Fa[e](i[r].parameters,t.parameters))}var It=class{constructor(s=new Oe([],{}),e={},t=null){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=yi(this.queryParams),this._queryParamMap}toString(){return wc.serialize(this)}},Oe=class{constructor(s,e){this.segments=s,this.children=e,this.parent=null,Object.values(e).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(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap??=yi(this.parameters),this._parameterMap}toString(){return za(this)}};function bc(i,s){return ri(i,s)&&i.every((e,t)=>wt(e.parameters,s[t].parameters))}function ri(i,s){return i.length!==s.length?!1:i.every((e,t)=>e.path===s[t].path)}function xc(i,s){let e=[];return Object.entries(i.children).forEach(([t,r])=>{t===Ee&&(e=e.concat(s(r,t)))}),Object.entries(i.children).forEach(([t,r])=>{t!==Ee&&(e=e.concat(s(r,t)))}),e}var is=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>new vi,providedIn:"root"})}}return i})(),vi=class{parse(s){let e=new hn(s);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){let e=`/${Ui(s.root,!0)}`,t=Sc(s.queryParams),r=typeof s.fragment=="string"?`#${Cc(s.fragment)}`:"";return`${e}${t}${r}`}},wc=new vi;function Us(i){return i.segments.map(s=>za(s)).join("/")}function Ui(i,s){if(!i.hasChildren())return Us(i);if(s){let e=i.children[Ee]?Ui(i.children[Ee],!1):"",t=[];return Object.entries(i.children).forEach(([r,a])=>{r!==Ee&&t.push(`${r}:${Ui(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=xc(i,(t,r)=>r===Ee?[Ui(i.children[Ee],!1)]:[`${r}:${Ui(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[Ee]!=null?`${Us(i)}/${e[0]}`:`${Us(i)}/(${e.join("//")})`}}function _a(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bs(i){return _a(i).replace(/%3B/gi,";")}function Cc(i){return encodeURI(i)}function ln(i){return _a(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $s(i){return decodeURIComponent(i)}function Sa(i){return $s(i.replace(/\+/g,"%20"))}function za(i){return`${ln(i.path)}${Dc(i.parameters)}`}function Dc(i){return Object.entries(i).map(([s,e])=>`;${ln(s)}=${ln(e)}`).join("")}function Sc(i){let s=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(r=>`${Bs(e)}=${Bs(r)}`).join("&"):`${Bs(e)}=${Bs(t)}`).filter(e=>e);return s.length?`?${s.join("&")}`:""}var Ac=/^[^\/()?;#]+/;function tn(i){let s=i.match(Ac);return s?s[0]:""}var Ec=/^[^\/()?;=#]+/;function Mc(i){let s=i.match(Ec);return s?s[0]:""}var Tc=/^[^=?&#]+/;function kc(i){let s=i.match(Tc);return s?s[0]:""}var Pc=/^[^&#]+/;function Rc(i){let s=i.match(Pc);return s?s[0]:""}var hn=class{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){let s={};if(this.consumeOptional("?"))do this.parseQueryParam(s);while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[Ee]=new Oe(s,e)),t}parseSegment(){let s=tn(this.remaining);if(s===""&&this.peekStartsWith(";"))throw new Fe(4009,!1);return this.capture(s),new si($s(s),this.parseMatrixParams())}parseMatrixParams(){let s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){let e=Mc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let r=tn(this.remaining);r&&(t=r,this.capture(t))}s[$s(e)]=$s(t)}parseQueryParam(s){let e=kc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let l=Rc(this.remaining);l&&(t=l,this.capture(t))}let r=Sa(e),a=Sa(t);if(s.hasOwnProperty(r)){let l=s[r];Array.isArray(l)||(l=[l],s[r]=l),l.push(a)}else s[r]=a}parseParens(s){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=tn(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new Fe(4010,!1);let a;t.indexOf(":")>-1?(a=t.slice(0,t.indexOf(":")),this.capture(a),this.capture(":")):s&&(a=Ee);let l=this.parseChildren();e[a]=Object.keys(l).length===1?l[Ee]:new Oe([],l),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return this.peekStartsWith(s)?(this.remaining=this.remaining.substring(s.length),!0):!1}capture(s){if(!this.consumeOptional(s))throw new Fe(4011,!1)}};function Ua(i){return i.segments.length>0?new Oe([],{[Ee]:i}):i}function $a(i){let s={};for(let[t,r]of Object.entries(i.children)){let a=$a(r);if(t===Ee&&a.segments.length===0&&a.hasChildren())for(let[l,_]of Object.entries(a.children))s[l]=_;else(a.segments.length>0||a.hasChildren())&&(s[t]=a)}let e=new Oe(i.segments,s);return Oc(e)}function Oc(i){if(i.numberOfChildren===1&&i.children[Ee]){let s=i.children[Ee];return new Oe(i.segments.concat(s.segments),s.children)}return i}function ni(i){return i instanceof It}function Ic(i,s,e=null,t=null){let r=Ha(i);return Ga(r,s,e,t)}function Ha(i){let s;function e(a){let l={};for(let O of a.children){let te=e(O);l[O.outlet]=te}let _=new Oe(a.url,l);return a===i&&(s=_),_}let t=e(i.root),r=Ua(t);return s??r}function Ga(i,s,e,t){let r=i;for(;r.parent;)r=r.parent;if(s.length===0)return sn(r,r,r,e,t);let a=Lc(s);if(a.toRoot())return sn(r,r,new Oe([],{}),e,t);let l=Fc(a,r,i),_=l.processChildren?Gi(l.segmentGroup,l.index,a.commands):Va(l.segmentGroup,l.index,a.commands);return sn(r,l.segmentGroup,_,e,t)}function Hs(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Xi(i){return typeof i=="object"&&i!=null&&i.outlets}function sn(i,s,e,t,r){let a={};t&&Object.entries(t).forEach(([O,te])=>{a[O]=Array.isArray(te)?te.map(G=>`${G}`):`${te}`});let l;i===s?l=e:l=Wa(i,s,e);let _=Ua($a(l));return new It(_,a,r)}function Wa(i,s,e){let t={};return Object.entries(i.children).forEach(([r,a])=>{a===s?t[r]=e:t[r]=Wa(a,s,e)}),new Oe(i.segments,t)}var Gs=class{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&Hs(t[0]))throw new Fe(4003,!1);let r=t.find(Xi);if(r&&r!==La(t))throw new Fe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Lc(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Gs(!0,0,i);let s=0,e=!1,t=i.reduce((r,a,l)=>{if(typeof a=="object"&&a!=null){if(a.outlets){let _={};return Object.entries(a.outlets).forEach(([O,te])=>{_[O]=typeof te=="string"?te.split("/"):te}),[...r,{outlets:_}]}if(a.segmentPath)return[...r,a.segmentPath]}return typeof a!="string"?[...r,a]:l===0?(a.split("/").forEach((_,O)=>{O==0&&_==="."||(O==0&&_===""?e=!0:_===".."?s++:_!=""&&r.push(_))}),r):[...r,a]},[]);return new Gs(e,s,t)}var fi=class{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}};function Fc(i,s,e){if(i.isAbsolute)return new fi(s,!0,0);if(!e)return new fi(s,!1,NaN);if(e.parent===null)return new fi(e,!0,0);let t=Hs(i.commands[0])?0:1,r=e.segments.length-1+t;return Nc(e,r,i.numberOfDoubleDots)}function Nc(i,s,e){let t=i,r=s,a=e;for(;a>r;){if(a-=r,t=t.parent,!t)throw new Fe(4005,!1);r=t.segments.length}return new fi(t,!1,r-a)}function jc(i){return Xi(i[0])?i[0].outlets:{[Ee]:i}}function Va(i,s,e){if(i??=new Oe([],{}),i.segments.length===0&&i.hasChildren())return Gi(i,s,e);let t=Bc(i,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndexa!==Ee)&&i.children[Ee]&&i.numberOfChildren===1&&i.children[Ee].segments.length===0){let a=Gi(i.children[Ee],s,e);return new Oe(i.segments,a.children)}return Object.entries(t).forEach(([a,l])=>{typeof l=="string"&&(l=[l]),l!==null&&(r[a]=Va(i.children[a],s,l))}),Object.entries(i.children).forEach(([a,l])=>{t[a]===void 0&&(r[a]=l)}),new Oe(i.segments,r)}}function Bc(i,s,e){let t=0,r=s,a={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return a;let l=i.segments[r],_=e[t];if(Xi(_))break;let O=`${_}`,te=t0&&O===void 0)break;if(O&&te&&typeof te=="object"&&te.outlets===void 0){if(!Ea(O,te,l))return a;t+=2}else{if(!Ea(O,{},l))return a;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function cn(i,s,e){let t=i.segments.slice(0,s),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(s[e]=cn(new Oe([],{}),0,t))}),s}function Aa(i){let s={};return Object.entries(i).forEach(([e,t])=>s[e]=`${t}`),s}function Ea(i,s,e){return i==e.path&&wt(s,e.parameters)}var Wi="imperative",Ve=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(Ve||{}),ft=class{constructor(s,e){this.id=s,this.url=e}},bi=class extends ft{constructor(s,e,t="imperative",r=null){super(s,e),this.type=Ve.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ct=class extends ft{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=Ve.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},at=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(at||{}),Ws=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Ws||{}),Ot=class extends ft{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=Ve.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Wt=class extends ft{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=Ve.NavigationSkipped}},Yi=class extends ft{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=Ve.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vs=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},un=class extends ft{constructor(s,e,t,r,a){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=a,this.type=Ve.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class{constructor(s){this.route=s,this.type=Ve.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mn=class{constructor(s){this.route=s,this.type=Ve.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yn=class{constructor(s){this.snapshot=s,this.type=Ve.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{constructor(s){this.snapshot=s,this.type=Ve.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bn=class{constructor(s){this.snapshot=s,this.type=Ve.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xn=class{constructor(s){this.snapshot=s,this.type=Ve.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xs=class{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=Ve.Scroll}toString(){let s=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${s}')`}},qi=class{},xi=class{constructor(s,e){this.url=s,this.navigationBehaviorOptions=e}};function zc(i,s){return i.providers&&!i._injector&&(i._injector=Cr(i.providers,s,`Route: ${i.path}`)),i._injector??s}function mt(i){return i.outlet||Ee}function Uc(i,s){let e=i.filter(t=>mt(t)===s);return e.push(...i.filter(t=>mt(t)!==s)),e}function ss(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let s=i.parent;s;s=s.parent){let e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var wn=class{get injector(){return ss(this.route?.snapshot)??this.rootInjector}set injector(s){}constructor(s){this.rootInjector=s,this.outlet=null,this.route=null,this.children=new rs(this.rootInjector),this.attachRef=null}},rs=(()=>{class i{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,t){let r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new wn(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(t){return new(t||i)(Ce(qt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ys=class{constructor(s){this._root=s}get root(){return this._root.value}parent(s){let e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){let e=Cn(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){let e=Cn(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){let e=Dn(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Dn(s,this._root).map(e=>e.value)}};function Cn(i,s){if(i===s.value)return s;for(let e of s.children){let t=Cn(i,e);if(t)return t}return null}function Dn(i,s){if(i===s.value)return[s];for(let e of s.children){let t=Dn(i,e);if(t.length)return t.unshift(s),t}return[]}var ot=class{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}};function pi(i){let s={};return i&&i.children.forEach(e=>s[e.value.outlet]=e),s}var qs=class extends Ys{constructor(s,e){super(s),this.snapshot=e,On(this,s)}toString(){return this.snapshot.toString()}};function Xa(i){let s=$c(i),e=new et([new si("",{})]),t=new et({}),r=new et({}),a=new et({}),l=new et(""),_=new Ke(e,t,a,l,r,Ee,i,s.root);return _.snapshot=s.root,new qs(new ot(_,[]),s)}function $c(i){let s={},e={},t={},r="",a=new gi([],s,t,r,e,Ee,i,null,{});return new Ks("",new ot(a,[]))}var Ke=class{constructor(s,e,t,r,a,l,_,O){this.urlSubject=s,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=a,this.outlet=l,this.component=_,this._futureSnapshot=O,this.title=this.dataSubject?.pipe(ke(te=>te[ts]))??Se(void 0),this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=a}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(s=>yi(s))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ke(s=>yi(s))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zs(i,s,e="emptyOnly"){let t,{routeConfig:r}=i;return s!==null&&(e==="always"||r?.path===""||!s.component&&!s.routeConfig?.loadComponent)?t={params:we(we({},s.params),i.params),data:we(we({},s.data),i.data),resolve:we(we(we(we({},i.data),s.data),r?.data),i._resolvedData)}:t={params:we({},i.params),data:we({},i.data),resolve:we(we({},i.data),i._resolvedData??{})},r&&qa(r)&&(t.resolve[ts]=r.title),t}var gi=class{get title(){return this.data?.[ts]}constructor(s,e,t,r,a,l,_,O,te){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=a,this.outlet=l,this.component=_,this.routeConfig=O,this._resolve=te}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??=yi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=yi(this.queryParams),this._queryParamMap}toString(){let s=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${s}', path:'${e}')`}},Ks=class extends Ys{constructor(s,e){super(e),this.url=s,On(this,e)}toString(){return Ya(this._root)}};function On(i,s){s.value._routerState=i,s.children.forEach(e=>On(i,e))}function Ya(i){let s=i.children.length>0?` { ${i.children.map(Ya).join(", ")} } `:"";return`${i.value}${s}`}function rn(i){if(i.snapshot){let s=i.snapshot,e=i._futureSnapshot;i.snapshot=e,wt(s.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),s.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),wt(s.params,e.params)||i.paramsSubject.next(e.params),gc(s.url,e.url)||i.urlSubject.next(e.url),wt(s.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Sn(i,s){let e=wt(i.params,s.params)&&bc(i.url,s.url),t=!i.parent!=!s.parent;return e&&!t&&(!i.parent||Sn(i.parent,s.parent))}function qa(i){return typeof i.title=="string"||i.title===null}var Hc=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ee,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=xe(rs),this.location=xe(Ri),this.changeDetector=xe(ti),this.inputBinder=xe(tr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:r}=e.name;if(t)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Fe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Fe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Fe(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Fe(4013,!1);this._activatedRoute=e;let r=this.location,l=e.snapshot.component,_=this.parentContexts.getOrCreateContext(this.name).children,O=new An(e,_,r.injector);this.activated=r.createComponent(l,{index:r.length,injector:O,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=Et({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]})}}return i})(),An=class i{__ngOutletInjector(s){return new i(this.route,this.childContexts,s)}constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Ke?this.route:s===rs?this.childContexts:this.parent.get(s,e)}},tr=new Te(""),Ma=(()=>{class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,r=cs([t.queryParams,t.params,t.data]).pipe(rt(([a,l,_],O)=>(_=we(we(we({},a),l),_),O===0?Se(_):Promise.resolve(_)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let l=jo(t.component);if(!l){this.unsubscribeFromRouteData(e);return}for(let{templateName:_}of l.inputs)e.activatedComponentRef.setInput(_,a[_])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Gc(i,s,e){let t=Zi(i,s._root,e?e._root:void 0);return new qs(t,s)}function Zi(i,s,e){if(e&&i.shouldReuseRoute(s.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=s.value;let r=Wc(i,s,e);return new ot(t,r)}else{if(i.shouldAttach(s.value)){let a=i.retrieve(s.value);if(a!==null){let l=a.route;return l.value._futureSnapshot=s.value,l.children=s.children.map(_=>Zi(i,_)),l}}let t=Vc(s.value),r=s.children.map(a=>Zi(i,a));return new ot(t,r)}}function Wc(i,s,e){return s.children.map(t=>{for(let r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return Zi(i,t,r);return Zi(i,t)})}function Vc(i){return new Ke(new et(i.url),new et(i.params),new et(i.queryParams),new et(i.fragment),new et(i.data),i.outlet,i.component,i)}var Ki=class{constructor(s,e){this.redirectTo=s,this.navigationBehaviorOptions=e}},Za="ngNavigationCancelingError";function Js(i,s){let{redirectTo:e,navigationBehaviorOptions:t}=ni(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=Ka(!1,at.Redirect);return r.url=e,r.navigationBehaviorOptions=t,r}function Ka(i,s){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[Za]=!0,e.cancellationCode=s,e}function Xc(i){return Ja(i)&&ni(i.url)}function Ja(i){return!!i&&i[Za]}var Yc=(i,s,e,t)=>ke(r=>(new En(s,r.targetRouterState,r.currentRouterState,e,t).activate(i),r)),En=class{constructor(s,e,t,r,a){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=a}activate(s){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),rn(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){let r=pi(e);s.children.forEach(a=>{let l=a.value.outlet;this.deactivateRoutes(a,r[l],t),delete r[l]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,t)})}deactivateRoutes(s,e,t){let r=s.value,a=e?e.value:null;if(r===a)if(r.component){let l=t.getContext(r.outlet);l&&this.deactivateChildRoutes(s,e,l.children)}else this.deactivateChildRoutes(s,e,t);else a&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){let t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,a=pi(s);for(let l of Object.values(a))this.deactivateRouteAndItsChildren(l,r);if(t&&t.outlet){let l=t.outlet.detach(),_=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:l,route:s,contexts:_})}}deactivateRouteAndOutlet(s,e){let t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,a=pi(s);for(let l of Object.values(a))this.deactivateRouteAndItsChildren(l,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(s,e,t){let r=pi(e);s.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],t),this.forwardEvent(new xn(a.value.snapshot))}),s.children.length&&this.forwardEvent(new vn(s.value.snapshot))}activateRoutes(s,e,t){let r=s.value,a=e?e.value:null;if(rn(r),r===a)if(r.component){let l=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,l.children)}else this.activateChildRoutes(s,e,t);else if(r.component){let l=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let _=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),l.children.onOutletReAttached(_.contexts),l.attachRef=_.componentRef,l.route=_.route.value,l.outlet&&l.outlet.attach(_.componentRef,_.route.value),rn(_.route.value),this.activateChildRoutes(s,null,l.children)}else l.attachRef=null,l.route=r,l.outlet&&l.outlet.activateWith(r,l.injector),this.activateChildRoutes(s,null,l.children)}else this.activateChildRoutes(s,null,t)}},Qs=class{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}},mi=class{constructor(s,e){this.component=s,this.route=e}};function qc(i,s,e){let t=i._root,r=s?s._root:null;return $i(t,r,e,[t.value])}function Zc(i){let s=i.routeConfig?i.routeConfig.canActivateChild:null;return!s||s.length===0?null:{node:i,guards:s}}function Ci(i,s){let e=Symbol(),t=s.get(i,e);return t===e?typeof i=="function"&&!so(i)?i:s.get(i):t}function $i(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let a=pi(s);return i.children.forEach(l=>{Kc(l,a[l.value.outlet],e,t.concat([l.value]),r),delete a[l.value.outlet]}),Object.entries(a).forEach(([l,_])=>Vi(_,e.getContext(l),r)),r}function Kc(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let a=i.value,l=s?s.value:null,_=e?e.getContext(i.value.outlet):null;if(l&&a.routeConfig===l.routeConfig){let O=Jc(l,a,a.routeConfig.runGuardsAndResolvers);O?r.canActivateChecks.push(new Qs(t)):(a.data=l.data,a._resolvedData=l._resolvedData),a.component?$i(i,s,_?_.children:null,t,r):$i(i,s,e,t,r),O&&_&&_.outlet&&_.outlet.isActivated&&r.canDeactivateChecks.push(new mi(_.outlet.component,l))}else l&&Vi(s,_,r),r.canActivateChecks.push(new Qs(t)),a.component?$i(i,null,_?_.children:null,t,r):$i(i,null,e,t,r);return r}function Jc(i,s,e){if(typeof e=="function")return e(i,s);switch(e){case"pathParamsChange":return!ri(i.url,s.url);case"pathParamsOrQueryParamsChange":return!ri(i.url,s.url)||!wt(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sn(i,s)||!wt(i.queryParams,s.queryParams);case"paramsChange":default:return!Sn(i,s)}}function Vi(i,s,e){let t=pi(i),r=i.value;Object.entries(t).forEach(([a,l])=>{r.component?s?Vi(l,s.children.getContext(a),e):Vi(l,null,e):Vi(l,s,e)}),r.component?s&&s.outlet&&s.outlet.isActivated?e.canDeactivateChecks.push(new mi(s.outlet.component,r)):e.canDeactivateChecks.push(new mi(null,r)):e.canDeactivateChecks.push(new mi(null,r))}function ns(i){return typeof i=="function"}function Qc(i){return typeof i=="boolean"}function ed(i){return i&&ns(i.canLoad)}function td(i){return i&&ns(i.canActivate)}function id(i){return i&&ns(i.canActivateChild)}function sd(i){return i&&ns(i.canDeactivate)}function rd(i){return i&&ns(i.canMatch)}function Qa(i){return i instanceof Zn||i?.name==="EmptyError"}var _s=Symbol("INITIAL_VALUE");function wi(){return rt(i=>cs(i.map(s=>s.pipe(ai(1),to(_s)))).pipe(ke(s=>{for(let e of s)if(e!==!0){if(e===_s)return _s;if(e===!1||nd(e))return e}return!0}),St(s=>s!==_s),ai(1)))}function nd(i){return ni(i)||i instanceof Ki}function od(i,s){return st(e=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=e;return l.length===0&&a.length===0?Se(ze(we({},e),{guardsResult:!0})):ad(l,t,r,i).pipe(st(_=>_&&Qc(_)?ld(t,a,i,s):Se(_)),ke(_=>ze(we({},e),{guardsResult:_})))})}function ad(i,s,e,t){return Je(i).pipe(st(r=>pd(r.component,r.route,e,s,t)),Bt(r=>r!==!0,!0))}function ld(i,s,e,t){return Je(s).pipe(jt(r=>Kn(cd(r.route.parent,t),hd(r.route,t),ud(i,r.path,e),dd(i,r.route,e))),Bt(r=>r!==!0,!0))}function hd(i,s){return i!==null&&s&&s(new bn(i)),Se(!0)}function cd(i,s){return i!==null&&s&&s(new yn(i)),Se(!0)}function dd(i,s,e){let t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||t.length===0)return Se(!0);let r=t.map(a=>ur(()=>{let l=ss(s)??e,_=Ci(a,l),O=td(_)?_.canActivate(s,i):dt(l,()=>_(s,i));return Vt(O).pipe(Bt())}));return Se(r).pipe(wi())}function ud(i,s,e){let t=s[s.length-1],a=s.slice(0,s.length-1).reverse().map(l=>Zc(l)).filter(l=>l!==null).map(l=>ur(()=>{let _=l.guards.map(O=>{let te=ss(l.node)??e,G=Ci(O,te),X=id(G)?G.canActivateChild(t,i):dt(te,()=>G(t,i));return Vt(X).pipe(Bt())});return Se(_).pipe(wi())}));return Se(a).pipe(wi())}function pd(i,s,e,t,r){let a=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!a||a.length===0)return Se(!0);let l=a.map(_=>{let O=ss(s)??r,te=Ci(_,O),G=sd(te)?te.canDeactivate(i,s,e,t):dt(O,()=>te(i,s,e,t));return Vt(G).pipe(Bt())});return Se(l).pipe(wi())}function fd(i,s,e,t){let r=s.canLoad;if(r===void 0||r.length===0)return Se(!0);let a=r.map(l=>{let _=Ci(l,i),O=ed(_)?_.canLoad(s,e):dt(i,()=>_(s,e));return Vt(O)});return Se(a).pipe(wi(),el(t))}function el(i){return Yn(Ge(s=>{if(typeof s!="boolean")throw Js(i,s)}),ke(s=>s===!0))}function gd(i,s,e,t){let r=s.canMatch;if(!r||r.length===0)return Se(!0);let a=r.map(l=>{let _=Ci(l,i),O=rd(_)?_.canMatch(s,e):dt(i,()=>_(s,e));return Vt(O)});return Se(a).pipe(wi(),el(t))}var Ji=class{constructor(s){this.segmentGroup=s||null}},Qi=class extends Error{constructor(s){super(),this.urlTree=s}};function ui(i){return Ei(new Ji(i))}function md(i){return Ei(new Fe(4e3,!1))}function yd(i){return Ei(Ka(!1,at.GuardRejected))}var Mn=class{constructor(s,e){this.urlSerializer=s,this.urlTree=e}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return Se(t);if(r.numberOfChildren>1||!r.children[Ee])return md(`${s.redirectTo}`);r=r.children[Ee]}}applyRedirectCommands(s,e,t,r,a){if(typeof e!="string"){let _=e,{queryParams:O,fragment:te,routeConfig:G,url:X,outlet:J,params:A,data:$,title:j}=r,F=dt(a,()=>_({params:A,data:$,queryParams:O,fragment:te,routeConfig:G,url:X,outlet:J,title:j}));if(F instanceof It)throw new Qi(F);e=F}let l=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t);if(e[0]==="/")throw new Qi(l);return l}applyRedirectCreateUrlTree(s,e,t,r){let a=this.createSegmentGroup(s,e.root,t,r);return new It(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){let t={};return Object.entries(s).forEach(([r,a])=>{if(typeof a=="string"&&a[0]===":"){let _=a.substring(1);t[r]=e[_]}else t[r]=a}),t}createSegmentGroup(s,e,t,r){let a=this.createSegments(s,e.segments,t,r),l={};return Object.entries(e.children).forEach(([_,O])=>{l[_]=this.createSegmentGroup(s,O,t,r)}),new Oe(a,l)}createSegments(s,e,t,r){return e.map(a=>a.path[0]===":"?this.findPosParam(s,a,r):this.findOrReturn(a,t))}findPosParam(s,e,t){let r=t[e.path.substring(1)];if(!r)throw new Fe(4001,!1);return r}findOrReturn(s,e){let t=0;for(let r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}},Tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vd(i,s,e,t,r){let a=tl(i,s,e);return a.matched?(t=zc(s,t),gd(t,s,e,r).pipe(ke(l=>l===!0?a:we({},Tn)))):Se(a)}function tl(i,s,e){if(s.path==="**")return bd(e);if(s.path==="")return s.pathMatch==="full"&&(i.hasChildren()||e.length>0)?we({},Tn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(s.matcher||fc)(e,i,s);if(!r)return we({},Tn);let a={};Object.entries(r.posParams??{}).forEach(([_,O])=>{a[_]=O.path});let l=r.consumed.length>0?we(we({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:l,positionalParamSegments:r.posParams??{}}}function bd(i){return{matched:!0,parameters:i.length>0?La(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function Ta(i,s,e,t){return e.length>0&&Cd(i,e,t)?{segmentGroup:new Oe(s,wd(t,new Oe(e,i.children))),slicedSegments:[]}:e.length===0&&Dd(i,e,t)?{segmentGroup:new Oe(i.segments,xd(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new Oe(i.segments,i.children),slicedSegments:e}}function xd(i,s,e,t){let r={};for(let a of e)if(ir(i,s,a)&&!t[mt(a)]){let l=new Oe([],{});r[mt(a)]=l}return we(we({},t),r)}function wd(i,s){let e={};e[Ee]=s;for(let t of i)if(t.path===""&&mt(t)!==Ee){let r=new Oe([],{});e[mt(t)]=r}return e}function Cd(i,s,e){return e.some(t=>ir(i,s,t)&&mt(t)!==Ee)}function Dd(i,s,e){return e.some(t=>ir(i,s,t))}function ir(i,s,e){return(i.hasChildren()||s.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Sd(i,s,e){return s.length===0&&!i.children[e]}var kn=class{};function Ad(i,s,e,t,r,a,l="emptyOnly"){return new Pn(i,s,e,t,r,l,a).recognize()}var Ed=31,Pn=class{constructor(s,e,t,r,a,l,_){this.injector=s,this.configLoader=e,this.rootComponentType=t,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=l,this.urlSerializer=_,this.applyRedirects=new Mn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(s){return new Fe(4002,`'${s.segmentGroup}'`)}recognize(){let s=Ta(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(s).pipe(ke(({children:e,rootSnapshot:t})=>{let r=new ot(t,e),a=new Ks("",r),l=Ic(t,[],this.urlTree.queryParams,this.urlTree.fragment);return l.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(l),{state:a,tree:l}}))}match(s){let e=new gi([],Object.freeze({}),Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ee,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,s,Ee,e).pipe(ke(t=>({children:t,rootSnapshot:e})),At(t=>{if(t instanceof Qi)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Ji?this.noMatchError(t):t}))}processSegmentGroup(s,e,t,r,a){return t.segments.length===0&&t.hasChildren()?this.processChildren(s,e,t,a):this.processSegment(s,e,t,t.segments,r,!0,a).pipe(ke(l=>l instanceof ot?[l]:[]))}processChildren(s,e,t,r){let a=[];for(let l of Object.keys(t.children))l==="primary"?a.unshift(l):a.push(l);return Je(a).pipe(jt(l=>{let _=t.children[l],O=Uc(e,l);return this.processSegmentGroup(s,O,_,l,r)}),eo((l,_)=>(l.push(..._),l)),pr(null),Qn(),st(l=>{if(l===null)return ui(t);let _=il(l);return Md(_),Se(_)}))}processSegment(s,e,t,r,a,l,_){return Je(e).pipe(jt(O=>this.processSegmentAgainstRoute(O._injector??s,e,O,t,r,a,l,_).pipe(At(te=>{if(te instanceof Ji)return Se(null);throw te}))),Bt(O=>!!O),At(O=>{if(Qa(O))return Sd(t,r,a)?Se(new kn):ui(t);throw O}))}processSegmentAgainstRoute(s,e,t,r,a,l,_,O){return mt(t)!==l&&(l===Ee||!ir(r,a,t))?ui(r):t.redirectTo===void 0?this.matchSegmentAgainstRoute(s,r,t,a,l,O):this.allowRedirects&&_?this.expandSegmentAgainstRouteUsingRedirect(s,r,e,t,a,l,O):ui(r)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,a,l,_){let{matched:O,parameters:te,consumedSegments:G,positionalParamSegments:X,remainingSegments:J}=tl(e,r,a);if(!O)return ui(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ed&&(this.allowRedirects=!1));let A=new gi(a,te,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,ka(r),mt(r),r.component??r._loadedComponent??null,r,Pa(r)),$=Zs(A,_,this.paramsInheritanceStrategy);A.params=Object.freeze($.params),A.data=Object.freeze($.data);let j=this.applyRedirects.applyRedirectCommands(G,r.redirectTo,X,A,s);return this.applyRedirects.lineralizeSegments(r,j).pipe(st(F=>this.processSegment(s,t,e,F.concat(J),l,!1,_)))}matchSegmentAgainstRoute(s,e,t,r,a,l){let _=vd(e,t,r,s,this.urlSerializer);return t.path==="**"&&(e.children={}),_.pipe(rt(O=>O.matched?(s=t._injector??s,this.getChildConfig(s,t,r).pipe(rt(({routes:te})=>{let G=t._loadedInjector??s,{parameters:X,consumedSegments:J,remainingSegments:A}=O,$=new gi(J,X,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,ka(t),mt(t),t.component??t._loadedComponent??null,t,Pa(t)),j=Zs($,l,this.paramsInheritanceStrategy);$.params=Object.freeze(j.params),$.data=Object.freeze(j.data);let{segmentGroup:F,slicedSegments:C}=Ta(e,J,A,te);if(C.length===0&&F.hasChildren())return this.processChildren(G,te,F,$).pipe(ke(E=>new ot($,E)));if(te.length===0&&C.length===0)return Se(new ot($,[]));let M=mt(t)===a;return this.processSegment(G,te,F,C,M?Ee:a,!0,$).pipe(ke(E=>new ot($,E instanceof ot?[E]:[])))}))):ui(e)))}getChildConfig(s,e,t){return e.children?Se({routes:e.children,injector:s}):e.loadChildren?e._loadedRoutes!==void 0?Se({routes:e._loadedRoutes,injector:e._loadedInjector}):fd(s,e,t,this.urlSerializer).pipe(st(r=>r?this.configLoader.loadChildren(s,e).pipe(Ge(a=>{e._loadedRoutes=a.routes,e._loadedInjector=a.injector})):yd(e))):Se({routes:[],injector:s})}};function Md(i){i.sort((s,e)=>s.value.outlet===Ee?-1:e.value.outlet===Ee?1:s.value.outlet.localeCompare(e.value.outlet))}function Td(i){let s=i.value.routeConfig;return s&&s.path===""}function il(i){let s=[],e=new Set;for(let t of i){if(!Td(t)){s.push(t);continue}let r=s.find(a=>t.value.routeConfig===a.value.routeConfig);r!==void 0?(r.children.push(...t.children),e.add(r)):s.push(t)}for(let t of e){let r=il(t.children);s.push(new ot(t.value,r))}return s.filter(t=>!e.has(t))}function ka(i){return i.data||{}}function Pa(i){return i.resolve||{}}function kd(i,s,e,t,r,a){return st(l=>Ad(i,s,e,t,l.extractedUrl,r,a).pipe(ke(({state:_,tree:O})=>ze(we({},l),{targetSnapshot:_,urlAfterRedirects:O}))))}function Pd(i,s){return st(e=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return Se(e);let a=new Set(r.map(O=>O.route)),l=new Set;for(let O of a)if(!l.has(O))for(let te of sl(O))l.add(te);let _=0;return Je(l).pipe(jt(O=>a.has(O)?Rd(O,t,i,s):(O.data=Zs(O,O.parent,i).resolve,Se(void 0))),Ge(()=>_++),fr(1),st(O=>_===l.size?Se(e):Nt))})}function sl(i){let s=i.children.map(e=>sl(e)).flat();return[i,...s]}function Rd(i,s,e,t){let r=i.routeConfig,a=i._resolve;return r?.title!==void 0&&!qa(r)&&(a[ts]=r.title),Od(a,i,s,t).pipe(ke(l=>(i._resolvedData=l,i.data=Zs(i,i.parent,e).resolve,null)))}function Od(i,s,e,t){let r=an(i);if(r.length===0)return Se({});let a={};return Je(r).pipe(st(l=>Id(i[l],s,e,t).pipe(Bt(),Ge(_=>{if(_ instanceof Ki)throw Js(new vi,_);a[l]=_}))),fr(1),Jn(a),At(l=>Qa(l)?Nt:Ei(l)))}function Id(i,s,e,t){let r=ss(s)??t,a=Ci(i,r),l=a.resolve?a.resolve(s,e):dt(r,()=>a(s,e));return Vt(l)}function nn(i){return rt(s=>{let e=i(s);return e?Je(e).pipe(ke(()=>s)):Se(s)})}var rl=(()=>{class i{buildTitle(e){let t,r=e.root;for(;r!==void 0;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(a=>a.outlet===Ee);return t}getResolvedTitleForRoute(e){return e.data[ts]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Ld),providedIn:"root"})}}return i})(),Ld=(()=>{class i extends rl{constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ca))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),os=new Te("",{providedIn:"root",factory:()=>({})}),Fd=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=no({type:i,selectors:[["ng-component"]],standalone:!0,features:[Po],decls:1,vars:0,template:function(t,r){t&1&&To(0,"router-outlet")},dependencies:[Hc],encapsulation:2})}}return i})();function In(i){let s=i.children&&i.children.map(In),e=s?ze(we({},i),{children:s}):we({},i);return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==Ee&&(e.component=Fd),e}var es=new Te(""),Ln=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=xe(xs)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Se(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Vt(e.loadComponent()).pipe(ke(nl),Ge(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),li(()=>{this.componentLoaders.delete(e)})),r=new cr(t,()=>new Ft).pipe(hr());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return Se({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let a=Nd(t,this.compiler,e,this.onLoadEndListener).pipe(li(()=>{this.childrenLoaders.delete(t)})),l=new cr(a,()=>new Ft).pipe(hr());return this.childrenLoaders.set(t,l),l}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Nd(i,s,e,t){return Vt(i.loadChildren()).pipe(ke(nl),st(r=>r instanceof Do||Array.isArray(r)?Se(r):Je(s.compileModuleAsync(r))),ke(r=>{t&&t(i);let a,l,_=!1;return Array.isArray(r)?(l=r,_=!0):(a=r.create(e).injector,l=a.get(es,[],{optional:!0,self:!0}).flat()),{routes:l.map(In),injector:a}}))}function jd(i){return i&&typeof i=="object"&&"default"in i}function nl(i){return jd(i)?i.default:i}var Fn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Bd),providedIn:"root"})}}return i})(),Bd=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ol=new Te(""),al=new Te("");function _d(i,s,e){let t=i.get(al),r=i.get(We);return i.get(tt).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(te=>setTimeout(te));let a,l=new Promise(te=>{a=te}),_=r.startViewTransition(()=>(a(),zd(i))),{onViewTransitionCreated:O}=t;return O&&dt(i,()=>O({transition:_,from:s,to:e})),l})}function zd(i){return new Promise(s=>{Ao({read:()=>setTimeout(s)},{injector:i})})}var Ud=new Te(""),Nn=(()=>{class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ft,this.transitionAbortSubject=new Ft,this.configLoader=xe(Ln),this.environmentInjector=xe(qt),this.urlSerializer=xe(is),this.rootContexts=xe(rs),this.location=xe(di),this.inputBindingEnabled=xe(tr,{optional:!0})!==null,this.titleStrategy=xe(rl),this.options=xe(os,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=xe(Fn),this.createViewTransition=xe(ol,{optional:!0}),this.navigationErrorHandler=xe(Ud,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Se(void 0),this.rootComponentType=null;let e=r=>this.events.next(new gn(r)),t=r=>this.events.next(new mn(r));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(ze(we(we({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,r){return this.transitions=new et({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Wi,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(St(a=>a.id!==0),ke(a=>ze(we({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),rt(a=>{let l=!1,_=!1;return Se(a).pipe(rt(O=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",at.SupersededByNewNavigation),Nt;this.currentTransition=a,this.currentNavigation={id:O.id,initialUrl:O.rawUrl,extractedUrl:O.extractedUrl,targetBrowserUrl:typeof O.extras.browserUrl=="string"?this.urlSerializer.parse(O.extras.browserUrl):O.extras.browserUrl,trigger:O.source,extras:O.extras,previousNavigation:this.lastSuccessfulNavigation?ze(we({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let te=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),G=O.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!te&&G!=="reload"){let X="";return this.events.next(new Wt(O.id,this.urlSerializer.serialize(O.rawUrl),X,Ws.IgnoredSameUrlNavigation)),O.resolve(!1),Nt}if(this.urlHandlingStrategy.shouldProcessUrl(O.rawUrl))return Se(O).pipe(rt(X=>{let J=this.transitions?.getValue();return this.events.next(new bi(X.id,this.urlSerializer.serialize(X.extractedUrl),X.source,X.restoredState)),J!==this.transitions?.getValue()?Nt:Promise.resolve(X)}),kd(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ge(X=>{a.targetSnapshot=X.targetSnapshot,a.urlAfterRedirects=X.urlAfterRedirects,this.currentNavigation=ze(we({},this.currentNavigation),{finalUrl:X.urlAfterRedirects});let J=new Vs(X.id,this.urlSerializer.serialize(X.extractedUrl),this.urlSerializer.serialize(X.urlAfterRedirects),X.targetSnapshot);this.events.next(J)}));if(te&&this.urlHandlingStrategy.shouldProcessUrl(O.currentRawUrl)){let{id:X,extractedUrl:J,source:A,restoredState:$,extras:j}=O,F=new bi(X,this.urlSerializer.serialize(J),A,$);this.events.next(F);let C=Xa(this.rootComponentType).snapshot;return this.currentTransition=a=ze(we({},O),{targetSnapshot:C,urlAfterRedirects:J,extras:ze(we({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=J,Se(a)}else{let X="";return this.events.next(new Wt(O.id,this.urlSerializer.serialize(O.extractedUrl),X,Ws.IgnoredByUrlHandlingStrategy)),O.resolve(!1),Nt}}),Ge(O=>{let te=new dn(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects),O.targetSnapshot);this.events.next(te)}),ke(O=>(this.currentTransition=a=ze(we({},O),{guards:qc(O.targetSnapshot,O.currentSnapshot,this.rootContexts)}),a)),od(this.environmentInjector,O=>this.events.next(O)),Ge(O=>{if(a.guardsResult=O.guardsResult,O.guardsResult&&typeof O.guardsResult!="boolean")throw Js(this.urlSerializer,O.guardsResult);let te=new un(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects),O.targetSnapshot,!!O.guardsResult);this.events.next(te)}),St(O=>O.guardsResult?!0:(this.cancelNavigationTransition(O,"",at.GuardRejected),!1)),nn(O=>{if(O.guards.canActivateChecks.length)return Se(O).pipe(Ge(te=>{let G=new pn(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(G)}),rt(te=>{let G=!1;return Se(te).pipe(Pd(this.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>G=!0,complete:()=>{G||this.cancelNavigationTransition(te,"",at.NoDataFromResolver)}}))}),Ge(te=>{let G=new fn(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(G)}))}),nn(O=>{let te=G=>{let X=[];G.routeConfig?.loadComponent&&!G.routeConfig._loadedComponent&&X.push(this.configLoader.loadComponent(G.routeConfig).pipe(Ge(J=>{G.component=J}),ke(()=>{})));for(let J of G.children)X.push(...te(J));return X};return cs(te(O.targetSnapshot.root)).pipe(pr(null),ai(1))}),nn(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:O,targetSnapshot:te}=a,G=this.createViewTransition?.(this.environmentInjector,O.root,te.root);return G?Je(G).pipe(ke(()=>a)):Se(a)}),ke(O=>{let te=Gc(e.routeReuseStrategy,O.targetSnapshot,O.currentRouterState);return this.currentTransition=a=ze(we({},O),{targetRouterState:te}),this.currentNavigation.targetRouterState=te,a}),Ge(()=>{this.events.next(new qi)}),Yc(this.rootContexts,e.routeReuseStrategy,O=>this.events.next(O),this.inputBindingEnabled),ai(1),Ge({next:O=>{l=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ct(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects))),this.titleStrategy?.updateTitle(O.targetRouterState.snapshot),O.resolve(!0)},complete:()=>{l=!0}}),io(this.transitionAbortSubject.pipe(Ge(O=>{throw O}))),li(()=>{!l&&!_&&this.cancelNavigationTransition(a,"",at.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),At(O=>{if(_=!0,Ja(O))this.events.next(new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),O.message,O.cancellationCode)),Xc(O)?this.events.next(new xi(O.url,O.navigationBehaviorOptions)):a.resolve(!1);else{let te=new Yi(a.id,this.urlSerializer.serialize(a.extractedUrl),O,a.targetSnapshot??void 0);try{let G=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(te));if(G instanceof Ki){let{message:X,cancellationCode:J}=Js(this.urlSerializer,G);this.events.next(new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),X,J)),this.events.next(new xi(G.redirectTo,G.navigationBehaviorOptions))}else{this.events.next(te);let X=e.errorHandler(O);a.resolve(!!X)}}catch(G){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(G)}}return Nt}))}))}cancelNavigationTransition(e,t,r){let a=new Ot(e.id,this.urlSerializer.serialize(e.extractedUrl),t,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function $d(i){return i!==Wi}var Hd=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Gd),providedIn:"root"})}}return i})(),Rn=class{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}},Gd=(()=>{class i extends Rn{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=yr(i)))(r||i)}})()}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ll=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Wd),providedIn:"root"})}}return i})(),Wd=(()=>{class i extends ll{constructor(){super(...arguments),this.location=xe(di),this.urlSerializer=xe(is),this.options=xe(os,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=xe(Fn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new It,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Xa(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(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof bi)this.stateMemento=this.createStateMemento();else if(e instanceof Wt)this.rawUrlTree=t.initialUrl;else if(e instanceof Vs){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??r,t)}}else e instanceof qi?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof Ot&&(e.code===at.GuardRejected||e.code===at.NoDataFromResolver)?this.restoreHistory(t):e instanceof Yi?this.restoreHistory(t,!0):e instanceof Ct&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let r=e instanceof It?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl){let a=this.browserPageId,l=we(we({},t.extras.state),this.generateNgRouterState(t.id,a));this.location.replaceState(r,"",l)}else{let a=we(we({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=yr(i)))(r||i)}})()}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Hi=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Hi||{});function hl(i,s){i.events.pipe(St(e=>e instanceof Ct||e instanceof Ot||e instanceof Yi||e instanceof Wt),ke(e=>e instanceof Ct||e instanceof Wt?Hi.COMPLETE:(e instanceof Ot?e.code===at.Redirect||e.code===at.SupersededByNewNavigation:!1)?Hi.REDIRECTING:Hi.FAILED),St(e=>e!==Hi.REDIRECTING),ai(1)).subscribe(()=>{s()})}function Vd(i){throw i}var Xd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Yd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lt=(()=>{class i{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(fs),this.stateManager=xe(ll),this.options=xe(os,{optional:!0})||{},this.pendingTasks=xe(ds),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=xe(Nn),this.urlSerializer=xe(is),this.location=xe(di),this.urlHandlingStrategy=xe(Fn),this._events=new Ft,this.errorHandler=this.options.errorHandler||Vd,this.navigated=!1,this.routeReuseStrategy=xe(Hd),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=xe(es,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!xe(tr,{optional:!0}),this.eventsSubscription=new Xn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(t,a),t instanceof Ot&&t.code!==at.Redirect&&t.code!==at.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Ct)this.navigated=!0;else if(t instanceof xi){let l=t.navigationBehaviorOptions,_=this.urlHandlingStrategy.merge(t.url,r.currentRawUrl),O=we({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$d(r.source)},l);this.scheduleNavigation(_,Wi,null,O,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}Zd(t)&&this._events.next(t)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Wi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,r){let a={replaceUrl:!0},l=r?.navigationId?r:null;if(r){let O=we({},r);delete O.navigationId,delete O.\u0275routerPageId,Object.keys(O).length!==0&&(a.state=O)}let _=this.parseUrl(e);this.scheduleNavigation(_,t,l,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.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(e,t={}){let{relativeTo:r,queryParams:a,fragment:l,queryParamsHandling:_,preserveFragment:O}=t,te=O?this.currentUrlTree.fragment:l,G=null;switch(_??this.options.defaultQueryParamsHandling){case"merge":G=we(we({},this.currentUrlTree.queryParams),a);break;case"preserve":G=this.currentUrlTree.queryParams;break;default:G=a||null}G!==null&&(G=this.removeEmptyProps(G));let X;try{let J=r?r.snapshot:this.routerState.snapshot.root;X=Ha(J)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),X=this.currentUrlTree.root}return Ga(X,e,G,te??null)}navigateByUrl(e,t={skipLocationChange:!1}){let r=ni(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Wi,null,t)}navigate(e,t={skipLocationChange:!1}){return qd(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let r;if(t===!0?r=we({},Xd):t===!1?r=we({},Yd):r=t,ni(e))return Da(this.currentUrlTree,e,r);let a=this.parseUrl(e);return Da(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((t,[r,a])=>(a!=null&&(t[r]=a),t),{})}scheduleNavigation(e,t,r,a,l){if(this.disposed)return Promise.resolve(!1);let _,O,te;l?(_=l.resolve,O=l.reject,te=l.promise):te=new Promise((X,J)=>{_=X,O=J});let G=this.pendingTasks.add();return hl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(G))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:_,reject:O,promise:te,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),te.catch(X=>Promise.reject(X))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function qd(i){for(let s=0;s{class i{constructor(e,t,r,a,l,_){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=a,this.el=l,this.locationStrategy=_,this.href=null,this.onChanges=new Ft,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let O=l.nativeElement.tagName?.toLowerCase();this.isAnchorElement=O==="a"||O==="area",this.isAnchorElement?this.subscription=e.events.subscribe(te=>{te instanceof Ct&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ni(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,r,a,l){let _=this.urlTree;if(_===null||this.isAnchorElement&&(e!==0||t||r||a||l||typeof this.target=="string"&&this.target!="_self"))return!0;let O={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(_,O),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let t=this.href===null?null:bo(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let r=this.renderer,a=this.el.nativeElement;t!==null?r.setAttribute(a,e,t):r.removeAttribute(a,e)}get urlTree(){return this.routerLinkInput===null?null:ni(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(t){return new(t||i)(Ue(lt),Ue(Ke),vr("tabindex"),Ue(ei),Ue(Kt),Ue(xt))}}static{this.\u0275dir=Et({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,r){t&1&&ko("click",function(l){return r.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),t&2&&Eo("target",r.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:[ps,Zt]})}}return i})();var er=class{},Gp=(()=>{class i{preload(e,t){return t().pipe(At(()=>Se(null)))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Kd=(()=>{class i{constructor(e,t,r,a,l){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=l}setUpPreloading(){this.subscription=this.router.events.pipe(St(e=>e instanceof Ct),jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let r=[];for(let a of t){a.providers&&!a._injector&&(a._injector=Cr(a.providers,e,`Route: ${a.path}`));let l=a._injector??e,_=a._loadedInjector??l;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(l,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(_,a.children??a._loadedRoutes))}return Je(r).pipe(dr())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;t.loadChildren&&t.canLoad===void 0?r=this.loader.loadChildren(e,t):r=Se(null);let a=r.pipe(st(l=>l===null?Se(void 0):(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,this.processRoutes(l.injector??e,l.routes))));if(t.loadComponent&&!t._loadedComponent){let l=this.loader.loadComponent(t);return Je([a,l]).pipe(dr())}else return a})}static{this.\u0275fac=function(t){return new(t||i)(Ce(lt),Ce(xs),Ce(qt),Ce(er),Ce(Ln))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),cl=new Te(""),Jd=(()=>{class i{constructor(e,t,r,a,l={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=r,this.zone=a,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration||="disabled",l.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(e=>{e instanceof bi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ct?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Wt&&e.code===Ws.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Xs&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xs(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(t){xo()}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Wp(i,...s){return ki([{provide:es,multi:!0,useValue:i},[],{provide:Ke,useFactory:dl,deps:[lt]},{provide:vs,multi:!0,useFactory:ul},s.map(e=>e.\u0275providers)])}function dl(i){return i.routerState.root}function Di(i,s){return{\u0275kind:i,\u0275providers:s}}function ul(){let i=xe(Pi);return s=>{let e=i.get(bs);if(s!==e.components[0])return;let t=i.get(lt),r=i.get(pl);i.get(jn)===1&&t.initialNavigation(),i.get(fl,null,gr.Optional)?.setUpPreloading(),i.get(cl,null,gr.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var pl=new Te("",{factory:()=>new Ft}),jn=new Te("",{providedIn:"root",factory:()=>1});function Qd(){return Di(2,[{provide:jn,useValue:0},{provide:Sr,multi:!0,deps:[Pi],useFactory:s=>{let e=s.get(Xo,Promise.resolve());return()=>e.then(()=>new Promise(t=>{let r=s.get(lt),a=s.get(pl);hl(r,()=>{t(!0)}),s.get(Nn).afterPreactivation=()=>(t(!0),a.closed?Se(void 0):a),r.initialNavigation()}))}}])}function eu(){return Di(3,[{provide:Sr,multi:!0,useFactory:()=>{let s=xe(lt);return()=>{s.setUpLocationChangeListener()}}},{provide:jn,useValue:2}])}var fl=new Te("");function tu(i){return Di(0,[{provide:fl,useExisting:Kd},{provide:er,useExisting:i}])}function Vp(){return Di(6,[{provide:xt,useClass:Br}])}function iu(){return Di(8,[Ma,{provide:tr,useExisting:Ma}])}function su(i){let s=[{provide:ol,useValue:_d},{provide:al,useValue:we({skipNextTransition:!!i?.skipInitialTransition},i)}];return Di(9,s)}var Ra=new Te("ROUTER_FORROOT_GUARD"),ru=[di,{provide:is,useClass:vi},lt,rs,{provide:Ke,useFactory:dl,deps:[lt]},Ln,[]],Xp=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[ru,[],{provide:es,multi:!0,useValue:e},{provide:Ra,useFactory:lu,deps:[[lt,new mr,new ro]]},{provide:os,useValue:t||{}},t?.useHash?ou():au(),nu(),t?.preloadingStrategy?tu(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?hu(t):[],t?.bindToComponentInputs?iu().\u0275providers:[],t?.enableViewTransitions?su().\u0275providers:[],cu()]}}static forChild(e){return{ngModule:i,providers:[{provide:es,multi:!0,useValue:e}]}}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ra,8))}}static{this.\u0275mod=Yt({type:i})}static{this.\u0275inj=Xt({})}}return i})();function nu(){return{provide:cl,useFactory:()=>{let i=xe(ea),s=xe(tt),e=xe(os),t=xe(Nn),r=xe(is);return e.scrollOffset&&i.setOffset(e.scrollOffset),new Jd(r,t,i,s,e)}}}function ou(){return{provide:xt,useClass:Br}}function au(){return{provide:xt,useClass:jr}}function lu(i){return"guarded"}function hu(i){return[i.initialNavigation==="disabled"?eu().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Qd().\u0275providers:[]]}var Oa=new Te("");function cu(){return[{provide:Oa,useFactory:ul},{provide:vs,multi:!0,useExisting:Oa}]}var du={en:"English",de:"German",cs:"Czech",ru:"Russian",pt:"Portuguese"},qp=(()=>{class i{constructor(e){this.i18n=e}transform(e){return this.i18n.get(e)}static{this.\u0275fac=function(t){return new(t||i)(Ue(Bn,16))}}static{this.\u0275pipe=Ti({name:"i18n",type:i,pure:!0,standalone:!0})}}return i})(),Bn=(()=>{class i{constructor(){switch(this.current="en",window.navigator.language.toLowerCase()){case"en":this.current="en";break;case"ru":this.current="ru";break;case"de":this.current="de";break;case"pt":this.current="pt";break;default:this.current="en";break}}getLanguageName(e){return du[e]||""}get(e){return!rr[this.current]||!rr[this.current][e]?e:rr[this.current][e]}getLanguages(){return Object.keys(rr)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),rr={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"},pt:{settingsImported:"As configura\xE7\xF5es foram importadas com sucesso! A p\xE1gina ser\xE1 recarregada.",settingsReset:"As configura\xE7\xF5es foram redefinidas com sucesso! A p\xE1gina ser\xE1 recarregada.",resetClickFilter:"Redefinir filtro de clique",copyMDX:"Copiar MDX",seriesColor:"Cores das S\xE9ries",copy:"Copiar",shareDashboard:"Compartilhar Painel",relatedFilters:"Filtros relacionados",disableTilePush:"Desative o recurso de empurrar blocos ao mover/redimensionar.",theme:"Tema",showLog:"Mostrar log",server:"Servidor",saveFilters:"Gravar filtros",exportSettings:"Exportar configura\xE7\xF5es",importSettings:"Importar configura\xE7\xF5es",export:"Importar",pngImage:"Imagem (*.png)",svgImage:"Imagem (*.svg)",jpgImage:"Imagem (*.jpg)",pdfDoc:"Documento (*.pdf)",xlsDoc:"Documento (*.xls)",csvDoc:"Documento (*.csv)",about:"Sobre",cancel:"Cancelar",save:"Gravar",load:"Carregar",share:"Compartilhar",title:"T\xEDtulo",curSettings:"Configura\xE7\xF5es atuais",newView:"Novo",language:"Idioma",dashboard:"Painel",folder:"Pasta",signin:"Entrar",signout:"Sair",login:"Autentica\xE7\xE3o",signinOAuth:"Entrar via OAuth",password:"Senha",namespace:"Namespace",loading:"Carregando...",search:"Procurar",accept:"Aplicar",close:"Fechar",dismiss:"Reiniciar",home:"Home",zoom:"Zoom",resetSettings:"Redefinir configura\xE7\xF5es",addToFavorites:"Adicionar aos favoritos",removeFromFav:"Remover dos favoritos",refresh:"Recarregar",showFolders:"Mostrar pastas",showTop:"Mostrar os registros Top",viewAs:"Ver como",count:"Contar",filters:"Filtros",setDefault:"Restaurar para as configura\xE7\xF5es padr\xE3o",dashColumns:"Contagem de colunas",widgetHeight:"Altura do widget (px)",widgetHeightDyn:"Padr\xE3o: ajustar \xE0 janela",noData:"N\xE3o h\xE1 dados para exibir.",byRows:"Exibir por linhas",by2columns:"Exibir em duas colunas",by3columns:"Exibir em tr\xEAs colunas",by4columns:"Exibir em quatro colunas",by5columns:"Exibir em cinco colunas",by6columns:"Exibir em seis colunas",print:"Imprimir...",fav:"Favoritos",options:"COnfigura\xE7\xF5es",gotoDeepSee:"Iris BI",showLegend:"Alternar legenda",showPivot:"Mostrar como pivot table",back:"Voltar",exclude:"Excluir",all:"Todos",interval:"Intervalo",not:"N\xE3o",from:"De",to:"Para",metroStyle:"Metro UI",bgColor:"Cor de fundo",fntColor:"Cor da fonte",icon:"\xCDcone",done:"Feito",widget:"Widget",showImages:"Mostrar imagens",dataSource:"Fonte de Dados",hideTitle:"Ocultar t\xEDtulo",showZero:"Defina o valor m\xEDnimo do eixo como zero.",showValues:"Mostrar valores",err:"Erro",errWidgetRequest:"N\xE3o foi poss\xEDvel carregar os dados do widget.",errLoginRequired:"Por favor, fa\xE7a login.",errPassRequired:"Por favor, digite a senha.",errUnauth:"Nome de usu\xE1rio e senha desconhecidos. Tente novamente.",errNotFound:"A URL solicitada n\xE3o foi encontrada no servidor.",errTimeout:"Tempo limite da solicita\xE7\xE3o",errWidgetNotSupported:"O widget n\xE3o \xE9 suportado.",errNoWidgets:"Nenhum widget recebido do servidor",errNoDashboards:"N\xE3o h\xE1 pain\xE9is de controle neste espa\xE7o de nomes.",shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],changeColors:"Alterar cores",fullscreen:"Alternar tela cheia",showKPI:"Mostrar KPI",openAnalyzer:"Abrir analisador",addWidget:"Adicionar widget"}};var gl={name:"deep-see-web",version:"4.0.27",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",maps:"ng serve --proxy-config=proxy.conf.maps.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.2.10","@angular/common":"^18.2.10","@angular/compiler":"^18.2.10","@angular/core":"^18.2.10","@angular/forms":"^18.2.10","@angular/platform-browser":"^18.2.10","@angular/platform-browser-dynamic":"^18.2.10","@angular/router":"^18.2.10","@angular/service-worker":"~18.2.10","@highcharts/map-collection":"^2.0.1","@iplab/ngx-color-picker":"^18.0.1","@ng-select/ng-select":"^13.9.1","air-datepicker":"^3.5.3","angular-gridster2":"^18.0.1","font-awesome":"^4.7.0",highcharts:"^11.4.8","highcharts-angular":"^4.0.1","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.2.11","@angular/cli":"~18.2.11","@angular/compiler-cli":"^18.2.10","@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 oi={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 fu=5e3,ml=(()=>{class i{constructor(){this.errors$=new et([]),this.lastId=0,this.errors=[]}getIndex(e){return this.errors.indexOf(e)}close(e){let t=this.errors.findIndex(r=>r===e);t!==-1&&(this.errors.splice(t,1),this.emit())}show(e,t=!1,r=fu){this.lastId++;let a={id:this.lastId,message:e,delay:r,isLeft:t};this.errors.push(a),r!==0&&setTimeout(()=>{this.close(a)},r),this.emit()}emit(){this.errors$.next([...this.errors])}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _n=kl(vl());var bl=(()=>{class i{constructor(e){this.route=e}removeExt(e){if(!e)return"";let t=e.split(".");return t.length===1?e:(t.pop(),t.join("."))}replaceFilename(e,t){let r=e.split("/");return r[r.length-1]=t,r.join("/")}isEmbedded(){let e=window.location.hash.replace("?","").replace("#/","").split("&");for(let t=0;t{class i{constructor(e,t,r,a){this.ds=e,this.i18n=t,this.route=r,this.us=a,this.serverSettings={},this.onSettingsChanged=new vt,this.onTilesChanged=new vt,this.settings={},this.configLoaded=!1,this.isLocalStorage=!1,this.checkForLocalStorage()}get storage(){return this.isLocalStorage?localStorage:sessionStorage}checkForLocalStorage(){let e="dws_ls_test";try{localStorage.setItem(e,"test")}catch{return}localStorage.removeItem(e),this.isLocalStorage=!0}saveUserSettings(){let e=JSON.parse(this.storage.getItem("userSettings")||"{}");e[Be.toLocaleLowerCase()]=this.settings,this.storage.setItem("userSettings",JSON.stringify(e))}loadConfig(e){if(this.settings={},this.configLoaded=!0,e)if(e.constructor===Object)this.settings=e;else{let l;try{l=JSON.parse(e)}catch{l={}}this.settings=l}let t=null;this.storage.getItem("userSettings")&&(t=JSON.parse(this.storage.getItem("userSettings")||"{}")[Be.toLocaleLowerCase()]),t&&this.us.mergeRecursive(this.settings,t);let r=this.getAppSettings();if(!oi.mobile&&r.theme){let l=document.getElementById("page-theme");l||(l=document.createElement("link")),l.id="page-theme",l.rel="stylesheet",l.type="text/css",l.href=r.theme,document.head.appendChild(l)}this.i18n.current=r.language||"en";let a=_n.default.getOptions().colors||[];for(let l=1;l<=a.length;l++){let _=document.querySelector(".hc"+l.toString());if(_){let O=window.getComputedStyle(_).getPropertyValue("background-color");O!=="rgba(0, 0, 0, 0)"&&O!=="transparent"&&(a[l-1]=O)}}if(r.theme){let l=r.themeColors?.[r.theme];l&&_n.default.setOptions({xAxis:{labels:{style:{color:l.hcTextColor}}},yAxis:{labels:{style:{color:l.hcTextColor}}},zAxis:{labels:{style:{color:l.hcTextColor}}},chart:{backgroundColor:l.hcBackground},colors:l.hcColors||a,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 e=this.route.snapshot.queryParamMap.get("lang");this.settings.app||(this.settings.app={});let t=this.settings.app;e&&(t.language=e),t.themeColors||(t.themeColors={});let r=this.route.snapshot.queryParamMap.get("theme");if(r){let a=oi.const.themes.find(l=>l.text===r);a&&(t.theme=a.file)}return t}setAppSettings(e){this.settings.app=e,this.saveUserSettings()}getWidgetsSettings(e){return this.settings.ns?.widgets?this.settings.ns.widgets[e]||{}:{}}setWidgetsSettings(e,t){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.widgets||(this.settings.ns.widgets={}),this.settings.ns.widgets[t]=JSON.parse(JSON.stringify(e)),this.saveUserSettings()}getTilesSettings(){return this.settings&&this.settings.ns?this.settings.ns.tiles||{}:{}}setTilesSettings(e){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.tiles=JSON.parse(JSON.stringify(e)),this.saveUserSettings()}getAllSettings(){return this.settings}setAllSettings(e){this.settings=e,this.saveUserSettings()}loadServerSettings(e){this.serverSettings=e||{}}static{this.\u0275fac=function(t){return new(t||i)(Ce(xl),Ce(Bn),Ce(Ke),Ce(bl))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Cl="dsw.namespaces",Dl="dsw.namespace",Be="",cf=(()=>{class i{constructor(e,t,r){this.ss=e,this.router=t,this.route=r,this.list=[],this.loadNamespaces()}get namespaces(){return this.list}resolve(e,t){return new Ai(r=>{let a=()=>{r.next(),r.complete()};if(Be){this.router.navigateByUrl(Be);return}this.router.navigateByUrl("/login")})}loadNamespaces(){try{Be=this.ss.storage.getItem(Dl)||"";let t=this.ss.storage.getItem(Cl)||"[]";this.list=JSON.parse(t)}catch{console.warn("Can't parse namespace list from storage")}}setNamespaces(e){this.list=e;try{this.ss.storage.setItem(Cl,JSON.stringify(e))}catch{console.warn("Can't set namespace list to storage")}}getNamespaces(){return this.list}setCurrent(e){this.ss.storage.setItem(Dl,e),Be=e}static{this.\u0275fac=function(t){return new(t||i)(Ce(wl),Ce(lt),Ce(Ke))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Sl="MDX2JSON",Al="MDX2JSON",xl=(()=>{class i{constructor(e,t,r,a){this.route=e,this.router=t,this.http=r,this.es=a,this.firstRun=!0,this.dashboardList=new Map,this.username="",this.withCredentialsHeaders={withCredentials:!0,headers:new Xe({"Accept-Language":"en-US"})},this.withoutCredentialsHeaders={headers:new Xe({"Accept-Language":"en-US"})},this.withCredentialsTimeoutHeaders={withCredentials:!0,headers:new Xe({timeout:oi.const.timeout.toString(),"Accept-Language":"en-US"})},this.withoutCredentialsTimeoutHeaders={headers:new Xe({timeout:oi.const.timeout.toString(),"Accept-Language":"en-US"})}}get configDefaultApp(){return this.mainConfig?.defaultApp||""}get url(){let e="",t=localStorage.getItem("connectorRedirect");return t&&(e=t),e+"../"+Sl+"/"}gotoLoginPage(){}getDashboards(){let e=Be.toLowerCase();return this.dashboardList.has(e)?Se(JSON.parse(this.dashboardList.get(e)||"{}")):this.http.post(this.url+"Dashboards?Namespace="+Be,{Folder:""},{withCredentials:!0}).pipe(Ge(t=>{this.dashboardList.set(Be.toLowerCase(),JSON.stringify(t))}),this.handleError())}getKPIData(e,t,r=!1){return ct(this.http.post(this.url+"KPI?Namespace="+Be,{KPI:e,FILTERS:t,Drillthrough:r?1:void 0},this.withCredentialsTimeoutHeaders))}getPivotData(e){return ct(this.http.post(this.url+"DataSource?Namespace="+Be,{DataSource:e},this.withCredentialsTimeoutHeaders))}getTermList(e){return this.http.post(this.url+"TermList?Namespace="+Be,{TermList:e},this.withCredentialsTimeoutHeaders).toPromise()}execMDX(e){return ht(this,null,function*(){let t=e.split(" ");return t&&t.length!==0&&t[0].toUpperCase()==="DRILLTHROUGH"?this.execMDXDrillthrough(e,Be):ct(this.http.post(this.url+"MDX?Namespace="+Be,{MDX:e},this.withCredentialsTimeoutHeaders))})}execMDXDrillthrough(e,t){return ht(this,null,function*(){return ct(this.http.post(this.url+"MDXDrillthrough?Namespace="+t,{MDX:e},this.withCredentialsTimeoutHeaders))})}getWidgets(e){return ct(this.http.post(this.url+"Dashboard?Namespace="+Be,{Dashboard:e},ze(we({},this.withCredentialsTimeoutHeaders),{"Content-Type":"application/json"})).pipe(this.handleError()))}handleError(){return At(e=>{if(e.status===401||e.status===403)return this.router.navigateByUrl("/login?from="+encodeURIComponent(this.router.url)),Se();let t=e.message;throw e?.error?.summary&&(t=e?.error?.summary),this.es.show(t),e})}searchFilters(e,t,r,a){let l={DataSource:t,Values:1,Search:e};return r&&r.length&&(l.RelatedFilters=r),a&&a.length&&(l.RequestedFilters=a),ct(this.http.post(this.url+"Filters?Namespace="+Be,l,this.withCredentialsTimeoutHeaders))}getPivotVariables(e){return this.http.get(this.url+"PivotVariables/"+e+"?Namespace="+Be,this.withCredentialsTimeoutHeaders).toPromise()}getFile(e){return this.http.get(e,{responseType:"text"}).toPromise()}getJSONFile(e){return this.http.get(e,{responseType:"json"}).toPromise()}loadMainConfig(){return this.http.get("config.json",{headers:new Xe({withCredentials:"false"})}).toPromise().then(e=>{this.mainConfig=e;try{e&&e.endpoints&&e.endpoints.mdx2json&&(Sl=e.endpoints.mdx2json.replace(/\//ig,"").replace(/ /g,""),Al=e.namespace.replace(/\//ig,"").replace(/ /g,""))}catch{console.error('Incorrect config in file "config.json"')}})}loadConfig(e){return this.http.get("configs/"+e.toLowerCase()+".json",{headers:new Xe({withCredentials:"false"})}).toPromise()}loadAddons(){return ht(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(){let e=location.hash.replace("#/","").split("?")[1];return this.http.get("dswoauth/check"+(e?`?${e}`:""),this.withoutCredentialsHeaders).toPromise()}signIn(e,t,r,a){return this.username=e,this.http.get(a?a+"Test?Namespace="+r:this.url+"Test?Namespace="+r,{withCredentials:!0,headers:new Xe({timeout:oi.const.timeout.toString(),Authorization:"Basic "+btoa(e+":"+t)})}).toPromise()}signOut(){this.firstRun=!0;let e=a=>{document.cookie=a+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},t=(a,l,_)=>{let O=new Date;O.setTime(O.getTime()+24*60*60*1e3*_),document.cookie=a+"="+l+";path=/;expires="+O.toUTCString()};this.username="";try{localStorage.userName="",sessionStorage.userName=""}catch{}let r=()=>{t("CSPWSERVERID","",-1),t("CacheLoginToken","",-1),t("CSPSESSIONID-SP-80-UP-","",-1),t("CSPSESSIONID-SP-80-UP-MDX2JSON-","",-1),this.router.navigateByUrl("/login")};return this.http.get(this.url+`Logout?Namespace=${Be}`,this.withCredentialsHeaders).toPromise().then(()=>{r()}).catch(()=>{r()})}execAction(e,t){return this.http.post(this.url+"Action/"+t+"/"+e+"?Namespace="+Be,{},this.withCredentialsTimeoutHeaders).toPromise()}getSettings(e){return ht(this,null,function*(){return ct(this.http.get(this.url+"Test?Namespace="+e,this.withCredentialsTimeoutHeaders))})}requestListOfDataSources(e){return ht(this,null,function*(){return ct(this.http.post(this.url+`DataSourceList/${e}?Namespace=`+Be,{},this.withCredentialsTimeoutHeaders))})}saveWidget(e,t,r){return ht(this,null,function*(){return ct(this.http.post(this.url+"saveWidget?Namespace="+Be,{key:r||"",Dashboard:e,WidgetData:t},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}deleteWidget(e,t){return ht(this,null,function*(){return ct(this.http.post(this.url+"deleteWidget?Namespace="+Be,{key:t||"",Dashboard:e},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ke),Ce(lt),Ce(Vr),Ce(ml))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{ii as a,We as b,ju as c,Bu as d,_u as e,zu as f,Uu as g,$u as h,Qo as i,_r as j,Hu as k,sp as l,rp as m,fa as n,xp as o,lc as p,wp as q,dc as r,bi as s,Ct as t,Ke as u,Hc as v,lt as w,Hp as x,Gp as y,Wp as z,tu as A,Vp as B,Xp as C,qp as D,Bn as E,oi as F,ml as G,xl as H,bl as I,wl as J,Be as K,cf as L}; +`).forEach(e=>{let t=e.indexOf(":");if(t>0){let r=e.slice(0,t),a=r.toLowerCase(),l=e.slice(t+1).trim();this.maybeSetNormalizedName(r,a),this.headers.has(a)?this.headers.get(a).push(l):this.headers.set(a,[l])}})}:typeof Headers<"u"&&s instanceof Headers?(this.headers=new Map,s.forEach((e,t)=>{this.setHeaderEntries(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(s).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(s){return this.init(),this.headers.has(s.toLowerCase())}get(s){this.init();let e=this.headers.get(s.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(s){return this.init(),this.headers.get(s.toLowerCase())||null}append(s,e){return this.clone({name:s,value:e,op:"a"})}set(s,e){return this.clone({name:s,value:e,op:"s"})}delete(s,e){return this.clone({name:s,value:e,op:"d"})}maybeSetNormalizedName(s,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,s)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(s=>this.applyUpdate(s)),this.lazyUpdate=null))}copyFrom(s){s.init(),Array.from(s.headers.keys()).forEach(e=>{this.headers.set(e,s.headers.get(e)),this.normalizedNames.set(e,s.normalizedNames.get(e))})}clone(s){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([s]),e}applyUpdate(s){let e=s.name.toLowerCase();switch(s.op){case"a":case"s":let t=s.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(s.name,e);let r=(s.op==="a"?this.headers.get(e):void 0)||[];r.push(...t),this.headers.set(e,r);break;case"d":let a=s.value;if(!a)this.headers.delete(e),this.normalizedNames.delete(e);else{let l=this.headers.get(e);if(!l)return;l=l.filter(_=>a.indexOf(_)===-1),l.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,l)}break}}setHeaderEntries(s,e){let t=(Array.isArray(e)?e:[e]).map(a=>a.toString()),r=s.toLowerCase();this.headers.set(r,t),this.maybeSetNormalizedName(s,r)}forEach(s){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>s(this.normalizedNames.get(e),this.headers.get(e)))}};var Ur=class{encodeKey(s){return sa(s)}encodeValue(s){return sa(s)}decodeKey(s){return decodeURIComponent(s)}decodeValue(s){return decodeURIComponent(s)}};function wh(i,s){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(r=>{let a=r.indexOf("="),[l,_]=a==-1?[s.decodeKey(r),""]:[s.decodeKey(r.slice(0,a)),s.decodeValue(r.slice(a+1))],O=e.get(l)||[];O.push(_),e.set(l,O)}),e}var Ch=/%(\d[a-f0-9])/gi,Dh={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function sa(i){return encodeURIComponent(i).replace(Ch,(s,e)=>Dh[e]??s)}function Is(i){return`${i}`}var Ht=class i{constructor(s={}){if(this.updates=null,this.cloneFrom=null,this.encoder=s.encoder||new Ur,s.fromString){if(s.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=wh(s.fromString,this.encoder)}else s.fromObject?(this.map=new Map,Object.keys(s.fromObject).forEach(e=>{let t=s.fromObject[e],r=Array.isArray(t)?t.map(Is):[Is(t)];this.map.set(e,r)})):this.map=null}has(s){return this.init(),this.map.has(s)}get(s){this.init();let e=this.map.get(s);return e?e[0]:null}getAll(s){return this.init(),this.map.get(s)||null}keys(){return this.init(),Array.from(this.map.keys())}append(s,e){return this.clone({param:s,value:e,op:"a"})}appendAll(s){let e=[];return Object.keys(s).forEach(t=>{let r=s[t];Array.isArray(r)?r.forEach(a=>{e.push({param:t,value:a,op:"a"})}):e.push({param:t,value:r,op:"a"})}),this.clone(e)}set(s,e){return this.clone({param:s,value:e,op:"s"})}delete(s,e){return this.clone({param:s,value:e,op:"d"})}toString(){return this.init(),this.keys().map(s=>{let e=this.encoder.encodeKey(s);return this.map.get(s).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(s=>s!=="").join("&")}clone(s){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(s),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(s=>this.map.set(s,this.cloneFrom.map.get(s))),this.updates.forEach(s=>{switch(s.op){case"a":case"s":let e=(s.op==="a"?this.map.get(s.param):void 0)||[];e.push(Is(s.value)),this.map.set(s.param,e);break;case"d":if(s.value!==void 0){let t=this.map.get(s.param)||[],r=t.indexOf(Is(s.value));r!==-1&&t.splice(r,1),t.length>0?this.map.set(s.param,t):this.map.delete(s.param)}else{this.map.delete(s.param);break}}}),this.cloneFrom=this.updates=null)}};var $r=class{constructor(){this.map=new Map}set(s,e){return this.map.set(s,e),this}get(s){return this.map.has(s)||this.map.set(s,s.defaultValue()),this.map.get(s)}delete(s){return this.map.delete(s),this}has(s){return this.map.has(s)}keys(){return this.map.keys()}};function Sh(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function ra(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function na(i){return typeof Blob<"u"&&i instanceof Blob}function oa(i){return typeof FormData<"u"&&i instanceof FormData}function Ah(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var Ii=class i{constructor(s,e,t,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase();let a;if(Sh(this.method)||r?(this.body=t!==void 0?t:null,a=r):a=t,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),this.transferCache=a.transferCache),this.headers??=new Xe,this.context??=new $r,!this.params)this.params=new Ht,this.urlWithParams=e;else{let l=this.params.toString();if(l.length===0)this.urlWithParams=e;else{let _=e.indexOf("?"),O=_===-1?"?":_J.set(A,s.setHeaders[A]),te)),s.setParams&&(G=Object.keys(s.setParams).reduce((J,A)=>J.set(A,s.setParams[A]),G)),new i(e,t,l,{params:G,headers:te,context:X,reportProgress:O,responseType:r,withCredentials:_,transferCache:a})}},Gt=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(Gt||{}),Ni=class{constructor(s,e=200,t="OK"){this.headers=s.headers||new Xe,this.status=s.status!==void 0?s.status:e,this.statusText=s.statusText||t,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}},Ls=class i extends Ni{constructor(s={}){super(s),this.type=Gt.ResponseHeader}clone(s={}){return new i({headers:s.headers||this.headers,status:s.status!==void 0?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}},ji=class i extends Ni{constructor(s={}){super(s),this.type=Gt.Response,this.body=s.body!==void 0?s.body:null}clone(s={}){return new i({body:s.body!==void 0?s.body:this.body,headers:s.headers||this.headers,status:s.status!==void 0?s.status:this.status,statusText:s.statusText||this.statusText,url:s.url||this.url||void 0})}},$t=class extends Ni{constructor(s){super(s,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${s.url||"(unknown url)"}`:this.message=`Http failure response for ${s.url||"(unknown url)"}: ${s.status} ${s.statusText}`,this.error=s.error||null}},ca=200,Eh=204;function zr(i,s){return{body:s,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var Vr=(()=>{class i{constructor(e){this.handler=e}request(e,t,r={}){let a;if(e instanceof Ii)a=e;else{let O;r.headers instanceof Xe?O=r.headers:O=new Xe(r.headers);let te;r.params&&(r.params instanceof Ht?te=r.params:te=new Ht({fromObject:r.params})),a=new Ii(e,t,r.body!==void 0?r.body:null,{headers:O,context:r.context,params:te,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials,transferCache:r.transferCache})}let l=Se(a).pipe(jt(O=>this.handler.handle(O)));if(e instanceof Ii||r.observe==="events")return l;let _=l.pipe(St(O=>O instanceof ji));switch(r.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return _.pipe(ke(O=>{if(O.body!==null&&!(O.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return O.body}));case"blob":return _.pipe(ke(O=>{if(O.body!==null&&!(O.body instanceof Blob))throw new Error("Response is not a Blob.");return O.body}));case"text":return _.pipe(ke(O=>{if(O.body!==null&&typeof O.body!="string")throw new Error("Response is not a string.");return O.body}));case"json":default:return _.pipe(ke(O=>O.body))}case"response":return _;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Ht().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,r={}){return this.request("PATCH",e,zr(r,t))}post(e,t,r={}){return this.request("POST",e,zr(r,t))}put(e,t,r={}){return this.request("PUT",e,zr(r,t))}static{this.\u0275fac=function(t){return new(t||i)(Ce(Li))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Mh=/^\)\]\}',?\n/,Th="X-Request-URL";function aa(i){if(i.url)return i.url;let s=Th.toLocaleLowerCase();return i.headers.get(s)}var Hr=(()=>{class i{constructor(){this.fetchImpl=xe(Gr,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e)),this.ngZone=xe(tt)}handle(e){return new Ai(t=>{let r=new AbortController;return this.doRequest(e,r.signal,t).then(Wr,a=>t.error(new $t({error:a}))),()=>r.abort()})}doRequest(e,t,r){return ht(this,null,function*(){let a=this.createRequestInit(e),l;try{let A=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,we({signal:t},a)));kh(A),r.next({type:Gt.Sent}),l=yield A}catch(A){r.error(new $t({error:A,status:A.status??0,statusText:A.statusText,url:e.urlWithParams,headers:A.headers}));return}let _=new Xe(l.headers),O=l.statusText,te=aa(l)??e.urlWithParams,G=l.status,X=null;if(e.reportProgress&&r.next(new Ls({headers:_,status:G,statusText:O,url:te})),l.body){let A=l.headers.get("content-length"),$=[],j=l.body.getReader(),F=0,C,M,E=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>ht(this,null,function*(){for(;;){let{done:y,value:P}=yield j.read();if(y)break;if($.push(P),F+=P.length,e.reportProgress){M=e.responseType==="text"?(M??"")+(C??=new TextDecoder).decode(P,{stream:!0}):void 0;let q=()=>r.next({type:Gt.DownloadProgress,total:A?+A:void 0,loaded:F,partialText:M});E?E.run(q):q()}}}));let L=this.concatChunks($,F);try{let y=l.headers.get("Content-Type")??"";X=this.parseBody(e,L,y)}catch(y){r.error(new $t({error:y,headers:new Xe(l.headers),status:l.status,statusText:l.statusText,url:aa(l)??e.urlWithParams}));return}}G===0&&(G=X?ca:0),G>=200&&G<300?(r.next(new ji({body:X,headers:_,status:G,statusText:O,url:te})),r.complete()):r.error(new $t({error:X,headers:_,status:G,statusText:O,url:te}))})}parseBody(e,t,r){switch(e.responseType){case"json":let a=new TextDecoder().decode(t).replace(Mh,"");return a===""?null:JSON.parse(a);case"text":return new TextDecoder().decode(t);case"blob":return new Blob([t],{type:r});case"arraybuffer":return t.buffer}}createRequestInit(e){let t={},r=e.withCredentials?"include":void 0;if(e.headers.forEach((a,l)=>t[a]=l.join(",")),e.headers.has("Accept")||(t.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let a=e.detectContentTypeHeader();a!==null&&(t["Content-Type"]=a)}return{body:e.serializeBody(),method:e.method,headers:t,credentials:r}}concatChunks(e,t){let r=new Uint8Array(t),a=0;for(let l of e)r.set(l,a),a+=l.length;return r}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Gr=class{};function Wr(){}function kh(i){i.then(Wr,Wr)}function Ph(i,s){return s(i)}function Rh(i,s,e){return(t,r)=>dt(e,()=>s(t,a=>i(a,r)))}var da=new Te(""),Oh=new Te(""),Ih=new Te("",{providedIn:"root",factory:()=>!0});var la=(()=>{class i extends Li{constructor(e,t){super(),this.backend=e,this.injector=t,this.chain=null,this.pendingTasks=xe(ds),this.contributeToStability=xe(Ih)}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(da),...this.injector.get(Oh,[])]));this.chain=t.reduceRight((r,a)=>Rh(r,a,this.injector),Ph)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,r=>this.backend.handle(r)).pipe(li(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static{this.\u0275fac=function(t){return new(t||i)(Ce(Fi),Ce(qt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();var Lh=/^\)\]\}',?\n/;function Fh(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}var ha=(()=>{class i{constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new Fe(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?Je(t.\u0275loadImpl()):Se(null)).pipe(rt(()=>new Ai(a=>{let l=t.build();if(l.open(e.method,e.urlWithParams),e.withCredentials&&(l.withCredentials=!0),e.headers.forEach((j,F)=>l.setRequestHeader(j,F.join(","))),e.headers.has("Accept")||l.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let j=e.detectContentTypeHeader();j!==null&&l.setRequestHeader("Content-Type",j)}if(e.responseType){let j=e.responseType.toLowerCase();l.responseType=j!=="json"?j:"text"}let _=e.serializeBody(),O=null,te=()=>{if(O!==null)return O;let j=l.statusText||"OK",F=new Xe(l.getAllResponseHeaders()),C=Fh(l)||e.url;return O=new Ls({headers:F,status:l.status,statusText:j,url:C}),O},G=()=>{let{headers:j,status:F,statusText:C,url:M}=te(),E=null;F!==Eh&&(E=typeof l.response>"u"?l.responseText:l.response),F===0&&(F=E?ca:0);let L=F>=200&&F<300;if(e.responseType==="json"&&typeof E=="string"){let y=E;E=E.replace(Lh,"");try{E=E!==""?JSON.parse(E):null}catch(P){E=y,L&&(L=!1,E={error:P,text:E})}}L?(a.next(new ji({body:E,headers:j,status:F,statusText:C,url:M||void 0})),a.complete()):a.error(new $t({error:E,headers:j,status:F,statusText:C,url:M||void 0}))},X=j=>{let{url:F}=te(),C=new $t({error:j,status:l.status||0,statusText:l.statusText||"Unknown Error",url:F||void 0});a.error(C)},J=!1,A=j=>{J||(a.next(te()),J=!0);let F={type:Gt.DownloadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),e.responseType==="text"&&l.responseText&&(F.partialText=l.responseText),a.next(F)},$=j=>{let F={type:Gt.UploadProgress,loaded:j.loaded};j.lengthComputable&&(F.total=j.total),a.next(F)};return l.addEventListener("load",G),l.addEventListener("error",X),l.addEventListener("timeout",X),l.addEventListener("abort",X),e.reportProgress&&(l.addEventListener("progress",A),_!==null&&l.upload&&l.upload.addEventListener("progress",$)),l.send(_),a.next({type:Gt.Sent}),()=>{l.removeEventListener("error",X),l.removeEventListener("abort",X),l.removeEventListener("load",G),l.removeEventListener("timeout",X),e.reportProgress&&(l.removeEventListener("progress",A),_!==null&&l.upload&&l.upload.removeEventListener("progress",$)),l.readyState!==l.DONE&&l.abort()}})))}static{this.\u0275fac=function(t){return new(t||i)(Ce(ci))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),ua=new Te(""),Nh="XSRF-TOKEN",jh=new Te("",{providedIn:"root",factory:()=>Nh}),Bh="X-XSRF-TOKEN",_h=new Te("",{providedIn:"root",factory:()=>Bh}),Fs=class{},zh=(()=>{class i{constructor(e,t,r){this.doc=e,this.platform=t,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Os(e,this.cookieName),this.lastCookieString=e),this.lastToken}static{this.\u0275fac=function(t){return new(t||i)(Ce(We),Ce(bt),Ce(jh))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Uh(i,s){let e=i.url.toLowerCase();if(!xe(ua)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return s(i);let t=xe(Fs).getToken(),r=xe(_h);return t!=null&&!i.headers.has(r)&&(i=i.clone({headers:i.headers.set(r,t)})),s(i)}var pa=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(pa||{});function $h(i,s){return{\u0275kind:i,\u0275providers:s}}function sp(...i){let s=[Vr,ha,la,{provide:Li,useExisting:la},{provide:Fi,useFactory:()=>xe(Hr,{optional:!0})??xe(ha)},{provide:da,useValue:Uh,multi:!0},{provide:ua,useValue:!0},{provide:Fs,useClass:zh}];for(let e of i)s.push(...e.\u0275providers);return ki(s)}function rp(){return $h(pa.Fetch,[Hr,{provide:Fi,useExisting:Hr}])}var qr=class extends ks{constructor(){super(...arguments),this.supportsDOMEvents=!0}},Zr=class i extends qr{static makeCurrent(){Vo(new i)}onAndCancel(s,e,t){return s.addEventListener(e,t),()=>{s.removeEventListener(e,t)}}dispatchEvent(s,e){s.dispatchEvent(e)}remove(s){s.remove()}createElement(s,e){return e=e||this.getDefaultDocument(),e.createElement(s)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(s){return s.nodeType===Node.ELEMENT_NODE}isShadowRoot(s){return s instanceof DocumentFragment}getGlobalEventTarget(s,e){return e==="window"?window:e==="document"?s:e==="body"?s.body:null}getBaseHref(s){let e=Wh();return e==null?null:Vh(e)}resetBaseElement(){Bi=null}getUserAgent(){return window.navigator.userAgent}getCookie(s){return Os(document.cookie,s)}},Bi=null;function Wh(){return Bi=Bi||document.querySelector("base"),Bi?Bi.getAttribute("href"):null}function Vh(i){return new URL(i,document.baseURI).pathname}var Kr=class{addToWindow(s){_t.getAngularTestability=(t,r=!0)=>{let a=s.findTestabilityInTree(t,r);if(a==null)throw new Fe(5103,!1);return a},_t.getAllAngularTestabilities=()=>s.getAllTestabilities(),_t.getAllAngularRootElements=()=>s.getAllRootElements();let e=t=>{let r=_t.getAllAngularTestabilities(),a=r.length,l=function(){a--,a==0&&t()};r.forEach(_=>{_.whenStable(l)})};_t.frameworkStabilizers||(_t.frameworkStabilizers=[]),_t.frameworkStabilizers.push(e)}findTestabilityInTree(s,e,t){if(e==null)return null;let r=s.getTestability(e);return r??(t?ii().isShadowRoot(e)?this.findTestabilityInTree(s,e.host,!0):this.findTestabilityInTree(s,e.parentElement,!0):null)}},Xh=(()=>{class i{build(){return new XMLHttpRequest}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Jr=new Te(""),ya=(()=>{class i{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(r=>{r.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,r){return this._findPluginFor(t).addEventListener(e,t,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(a=>a.supports(e)),!t)throw new Fe(5101,!1);return this._eventNameToPlugin.set(e,t),t}static{this.\u0275fac=function(t){return new(t||i)(Ce(Jr),Ce(tt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),Ns=class{constructor(s){this._doc=s}},Xr="ng-app-id",va=(()=>{class i{constructor(e,t,r,a={}){this.doc=e,this.appId=t,this.nonce=r,this.platformId=a,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=Oi(a),this.resetHostNodes()}addStyles(e){for(let t of e)this.changeUsageCount(t,1)===1&&this.onStyleAdded(t)}removeStyles(e){for(let t of e)this.changeUsageCount(t,-1)<=0&&this.onStyleRemoved(t)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(t=>t.remove()),e.clear());for(let t of this.getAllStyles())this.onStyleRemoved(t);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let t of this.getAllStyles())this.addStyleToHost(e,t)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let t of this.hostNodes)this.addStyleToHost(t,e)}onStyleRemoved(e){let t=this.styleRef;t.get(e)?.elements?.forEach(r=>r.remove()),t.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${Xr}="${this.appId}"]`);if(e?.length){let t=new Map;return e.forEach(r=>{r.textContent!=null&&t.set(r.textContent,r)}),t}return null}changeUsageCount(e,t){let r=this.styleRef;if(r.has(e)){let a=r.get(e);return a.usage+=t,a.usage}return r.set(e,{usage:t,elements:[]}),t}getStyleElement(e,t){let r=this.styleNodesInDOM,a=r?.get(t);if(a?.parentNode===e)return r.delete(t),a.removeAttribute(Xr),a;{let l=this.doc.createElement("style");return this.nonce&&l.setAttribute("nonce",this.nonce),l.textContent=t,this.platformIsServer&&l.setAttribute(Xr,this.appId),e.appendChild(l),l}}addStyleToHost(e,t){let r=this.getStyleElement(e,t),a=this.styleRef,l=a.get(t)?.elements;l?l.push(r):a.set(t,{elements:[r],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We),Ce(us),Ce(xr,8),Ce(bt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),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,ba="%COMP%",Yh=`_nghost-${ba}`,qh=`_ngcontent-${ba}`,Zh=!0,Kh=new Te("",{providedIn:"root",factory:()=>Zh});function Jh(i){return qh.replace(en,i)}function Qh(i){return Yh.replace(en,i)}function xa(i,s){return s.map(e=>e.replace(en,i))}var fa=(()=>{class i{constructor(e,t,r,a,l,_,O,te=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=r,this.removeStylesOnCompDestroy=a,this.doc=l,this.platformId=_,this.ngZone=O,this.nonce=te,this.rendererByCompId=new Map,this.platformIsServer=Oi(_),this.defaultRenderer=new _i(e,l,O,this.platformIsServer)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Mi.ShadowDom&&(t=ze(we({},t),{encapsulation:Mi.Emulated}));let r=this.getOrCreateRenderer(e,t);return r instanceof js?r.applyToHost(e):r instanceof zi&&r.applyStyles(),r}getOrCreateRenderer(e,t){let r=this.rendererByCompId,a=r.get(t.id);if(!a){let l=this.doc,_=this.ngZone,O=this.eventManager,te=this.sharedStylesHost,G=this.removeStylesOnCompDestroy,X=this.platformIsServer;switch(t.encapsulation){case Mi.Emulated:a=new js(O,te,t,this.appId,G,l,_,X);break;case Mi.ShadowDom:return new Qr(O,te,e,t,l,_,this.nonce,X);default:a=new zi(O,te,t,G,l,_,X);break}r.set(t.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(t){return new(t||i)(Ce(ya),Ce(va),Ce(us),Ce(Kh),Ce(We),Ce(bt),Ce(tt),Ce(xr))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),_i=class{constructor(s,e,t,r){this.eventManager=s,this.doc=e,this.ngZone=t,this.platformIsServer=r,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(s,e){return e?this.doc.createElementNS(Yr[e]||e,s):this.doc.createElement(s)}createComment(s){return this.doc.createComment(s)}createText(s){return this.doc.createTextNode(s)}appendChild(s,e){(ga(s)?s.content:s).appendChild(e)}insertBefore(s,e,t){s&&(ga(s)?s.content:s).insertBefore(e,t)}removeChild(s,e){e.remove()}selectRootElement(s,e){let t=typeof s=="string"?this.doc.querySelector(s):s;if(!t)throw new Fe(-5104,!1);return e||(t.textContent=""),t}parentNode(s){return s.parentNode}nextSibling(s){return s.nextSibling}setAttribute(s,e,t,r){if(r){e=r+":"+e;let a=Yr[r];a?s.setAttributeNS(a,e,t):s.setAttribute(e,t)}else s.setAttribute(e,t)}removeAttribute(s,e,t){if(t){let r=Yr[t];r?s.removeAttributeNS(r,e):s.removeAttribute(`${t}:${e}`)}else s.removeAttribute(e)}addClass(s,e){s.classList.add(e)}removeClass(s,e){s.classList.remove(e)}setStyle(s,e,t,r){r&(Qt.DashCase|Qt.Important)?s.style.setProperty(e,t,r&Qt.Important?"important":""):s.style[e]=t}removeStyle(s,e,t){t&Qt.DashCase?s.style.removeProperty(e):s.style[e]=""}setProperty(s,e,t){s!=null&&(s[e]=t)}setValue(s,e){s.nodeValue=e}listen(s,e,t){if(typeof s=="string"&&(s=ii().getGlobalEventTarget(this.doc,s),!s))throw new Error(`Unsupported event target ${s} for event ${e}`);return this.eventManager.addEventListener(s,e,this.decoratePreventDefault(t))}decoratePreventDefault(s){return e=>{if(e==="__ngUnwrap__")return s;(this.platformIsServer?this.ngZone.runGuarded(()=>s(e)):s(e))===!1&&e.preventDefault()}}};function ga(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var Qr=class extends _i{constructor(s,e,t,r,a,l,_,O){super(s,a,l,O),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let te=xa(r.id,r.styles);for(let G of te){let X=document.createElement("style");_&&X.setAttribute("nonce",_),X.textContent=G,this.shadowRoot.appendChild(X)}}nodeOrShadowRoot(s){return s===this.hostEl?this.shadowRoot:s}appendChild(s,e){return super.appendChild(this.nodeOrShadowRoot(s),e)}insertBefore(s,e,t){return super.insertBefore(this.nodeOrShadowRoot(s),e,t)}removeChild(s,e){return super.removeChild(null,e)}parentNode(s){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(s)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},zi=class extends _i{constructor(s,e,t,r,a,l,_,O){super(s,a,l,_),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=r,this.styles=O?xa(O,t.styles):t.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},js=class extends zi{constructor(s,e,t,r,a,l,_,O){let te=r+"-"+t.id;super(s,e,t,a,l,_,O,te),this.contentAttr=Jh(te),this.hostAttr=Qh(te)}applyToHost(s){this.applyStyles(),this.setAttribute(s,this.hostAttr,"")}createElement(s,e){let t=super.createElement(s,e);return super.setAttribute(t,this.contentAttr,""),t}},ec=(()=>{class i extends Ns{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,r){return e.addEventListener(t,r,!1),()=>this.removeEventListener(e,t,r)}removeEventListener(e,t,r){return e.removeEventListener(t,r)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})(),ma=["alt","control","meta","shift"],tc={"\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"},ic={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},sc=(()=>{class i extends Ns{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,r){let a=i.parseEventName(t),l=i.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>ii().onAndCancel(e,a.domEventName,l))}static parseEventName(e){let t=e.toLowerCase().split("."),r=t.shift();if(t.length===0||!(r==="keydown"||r==="keyup"))return null;let a=i._normalizeKey(t.pop()),l="",_=t.indexOf("code");if(_>-1&&(t.splice(_,1),l="code."),ma.forEach(te=>{let G=t.indexOf(te);G>-1&&(t.splice(G,1),l+=te+".")}),l+=a,t.length!=0||a.length===0)return null;let O={};return O.domEventName=r,O.fullKey=l,O}static matchEventFullKeyCode(e,t){let r=tc[e.key]||e.key,a="";return t.indexOf("code.")>-1&&(r=e.code,a="code."),r==null||!r?!1:(r=r.toLowerCase(),r===" "?r="space":r==="."&&(r="dot"),ma.forEach(l=>{if(l!==r){let _=ic[l];_(e)&&(a+=l+".")}}),a+=r,a===t)}static eventCallback(e,t,r){return a=>{i.matchEventFullKeyCode(a,e)&&r.runGuarded(()=>t(a))}}static _normalizeKey(e){return e==="esc"?"escape":e}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function xp(i,s){return No(we({rootComponent:i},rc(s)))}function rc(i){return{appProviders:[...wa,...i?.providers??[]],platformProviders:lc}}function nc(){Zr.makeCurrent()}function oc(){return new br}function ac(){return ao(document),document}var lc=[{provide:bt,useValue:_r},{provide:lo,useValue:nc,multi:!0},{provide:We,useFactory:ac,deps:[]}];var hc=new Te(""),cc=[{provide:gs,useClass:Kr,deps:[]},{provide:Ro,useClass:ms,deps:[tt,Dr,gs]},{provide:ms,useClass:ms,deps:[tt,Dr,gs]}],wa=[{provide:oo,useValue:"root"},{provide:br,useFactory:oc,deps:[]},{provide:Jr,useClass:ec,multi:!0,deps:[We,tt,bt]},{provide:Jr,useClass:sc,multi:!0,deps:[We]},fa,va,ya,{provide:wo,useExisting:fa},{provide:ci,useClass:Xh,deps:[]},[]],wp=(()=>{class i{constructor(e){}static withServerTransition(e){return{ngModule:i,providers:[{provide:us,useValue:e.appId}]}}static{this.\u0275fac=function(t){return new(t||i)(Ce(hc,12))}}static{this.\u0275mod=Yt({type:i})}static{this.\u0275inj=Xt({providers:[...wa,...cc],imports:[Qo,Fo]})}}return i})();var Ca=(()=>{class i{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var dc=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:function(t){let r=null;return t?r=new(t||i):r=Ce(uc),r},providedIn:"root"})}}return i})(),uc=(()=>{class i extends dc{constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case Jt.NONE:return t;case Jt.HTML:return hi(t,"HTML")?zt(t):vo(this._doc,String(t)).toString();case Jt.STYLE:return hi(t,"Style")?zt(t):t;case Jt.SCRIPT:if(hi(t,"Script"))return zt(t);throw new Fe(5200,!1);case Jt.URL:return hi(t,"URL")?zt(t):yo(String(t));case Jt.RESOURCE_URL:if(hi(t,"ResourceURL"))return zt(t);throw new Fe(5201,!1);default:throw new Fe(5202,!1)}}bypassSecurityTrustHtml(e){return uo(e)}bypassSecurityTrustStyle(e){return po(e)}bypassSecurityTrustScript(e){return fo(e)}bypassSecurityTrustUrl(e){return go(e)}bypassSecurityTrustResourceUrl(e){return mo(e)}static{this.\u0275fac=function(t){return new(t||i)(Ce(We))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Ee="primary",ts=Symbol("RouteTitle"),on=class{constructor(s){this.params=s||{}}has(s){return Object.prototype.hasOwnProperty.call(this.params,s)}get(s){if(this.has(s)){let e=this.params[s];return Array.isArray(e)?e[0]:e}return null}getAll(s){if(this.has(s)){let e=this.params[s];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function yi(i){return new on(i)}function fc(i,s,e){let t=e.path.split("/");if(t.length>i.length||e.pathMatch==="full"&&(s.hasChildren()||t.lengtht[a]===r)}else return i===s}function La(i){return i.length>0?i[i.length-1]:null}function Vt(i){return qn(i)?i:ys(i)?Je(Promise.resolve(i)):Se(i)}var mc={exact:Na,subset:ja},Fa={exact:yc,subset:vc,ignored:()=>!0};function Da(i,s,e){return mc[e.paths](i.root,s.root,e.matrixParams)&&Fa[e.queryParams](i.queryParams,s.queryParams)&&!(e.fragment==="exact"&&i.fragment!==s.fragment)}function yc(i,s){return wt(i,s)}function Na(i,s,e){if(!ri(i.segments,s.segments)||!zs(i.segments,s.segments,e)||i.numberOfChildren!==s.numberOfChildren)return!1;for(let t in s.children)if(!i.children[t]||!Na(i.children[t],s.children[t],e))return!1;return!0}function vc(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(e=>Ia(i[e],s[e]))}function ja(i,s,e){return Ba(i,s,s.segments,e)}function Ba(i,s,e,t){if(i.segments.length>e.length){let r=i.segments.slice(0,e.length);return!(!ri(r,e)||s.hasChildren()||!zs(r,e,t))}else if(i.segments.length===e.length){if(!ri(i.segments,e)||!zs(i.segments,e,t))return!1;for(let r in s.children)if(!i.children[r]||!ja(i.children[r],s.children[r],t))return!1;return!0}else{let r=e.slice(0,i.segments.length),a=e.slice(i.segments.length);return!ri(i.segments,r)||!zs(i.segments,r,t)||!i.children[Ee]?!1:Ba(i.children[Ee],s,a,t)}}function zs(i,s,e){return s.every((t,r)=>Fa[e](i[r].parameters,t.parameters))}var It=class{constructor(s=new Oe([],{}),e={},t=null){this.root=s,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=yi(this.queryParams),this._queryParamMap}toString(){return wc.serialize(this)}},Oe=class{constructor(s,e){this.segments=s,this.children=e,this.parent=null,Object.values(e).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(s,e){this.path=s,this.parameters=e}get parameterMap(){return this._parameterMap??=yi(this.parameters),this._parameterMap}toString(){return za(this)}};function bc(i,s){return ri(i,s)&&i.every((e,t)=>wt(e.parameters,s[t].parameters))}function ri(i,s){return i.length!==s.length?!1:i.every((e,t)=>e.path===s[t].path)}function xc(i,s){let e=[];return Object.entries(i.children).forEach(([t,r])=>{t===Ee&&(e=e.concat(s(r,t)))}),Object.entries(i.children).forEach(([t,r])=>{t!==Ee&&(e=e.concat(s(r,t)))}),e}var is=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>new vi,providedIn:"root"})}}return i})(),vi=class{parse(s){let e=new hn(s);return new It(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(s){let e=`/${Ui(s.root,!0)}`,t=Sc(s.queryParams),r=typeof s.fragment=="string"?`#${Cc(s.fragment)}`:"";return`${e}${t}${r}`}},wc=new vi;function Us(i){return i.segments.map(s=>za(s)).join("/")}function Ui(i,s){if(!i.hasChildren())return Us(i);if(s){let e=i.children[Ee]?Ui(i.children[Ee],!1):"",t=[];return Object.entries(i.children).forEach(([r,a])=>{r!==Ee&&t.push(`${r}:${Ui(a,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=xc(i,(t,r)=>r===Ee?[Ui(i.children[Ee],!1)]:[`${r}:${Ui(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[Ee]!=null?`${Us(i)}/${e[0]}`:`${Us(i)}/(${e.join("//")})`}}function _a(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bs(i){return _a(i).replace(/%3B/gi,";")}function Cc(i){return encodeURI(i)}function ln(i){return _a(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function $s(i){return decodeURIComponent(i)}function Sa(i){return $s(i.replace(/\+/g,"%20"))}function za(i){return`${ln(i.path)}${Dc(i.parameters)}`}function Dc(i){return Object.entries(i).map(([s,e])=>`;${ln(s)}=${ln(e)}`).join("")}function Sc(i){let s=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(r=>`${Bs(e)}=${Bs(r)}`).join("&"):`${Bs(e)}=${Bs(t)}`).filter(e=>e);return s.length?`?${s.join("&")}`:""}var Ac=/^[^\/()?;#]+/;function tn(i){let s=i.match(Ac);return s?s[0]:""}var Ec=/^[^\/()?;=#]+/;function Mc(i){let s=i.match(Ec);return s?s[0]:""}var Tc=/^[^=?&#]+/;function kc(i){let s=i.match(Tc);return s?s[0]:""}var Pc=/^[^&#]+/;function Rc(i){let s=i.match(Pc);return s?s[0]:""}var hn=class{constructor(s){this.url=s,this.remaining=s}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){let s={};if(this.consumeOptional("?"))do this.parseQueryParam(s);while(this.consumeOptional("&"));return s}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let s=[];for(this.peekStartsWith("(")||s.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),s.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(s.length>0||Object.keys(e).length>0)&&(t[Ee]=new Oe(s,e)),t}parseSegment(){let s=tn(this.remaining);if(s===""&&this.peekStartsWith(";"))throw new Fe(4009,!1);return this.capture(s),new si($s(s),this.parseMatrixParams())}parseMatrixParams(){let s={};for(;this.consumeOptional(";");)this.parseParam(s);return s}parseParam(s){let e=Mc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let r=tn(this.remaining);r&&(t=r,this.capture(t))}s[$s(e)]=$s(t)}parseQueryParam(s){let e=kc(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let l=Rc(this.remaining);l&&(t=l,this.capture(t))}let r=Sa(e),a=Sa(t);if(s.hasOwnProperty(r)){let l=s[r];Array.isArray(l)||(l=[l],s[r]=l),l.push(a)}else s[r]=a}parseParens(s){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=tn(this.remaining),r=this.remaining[t.length];if(r!=="/"&&r!==")"&&r!==";")throw new Fe(4010,!1);let a;t.indexOf(":")>-1?(a=t.slice(0,t.indexOf(":")),this.capture(a),this.capture(":")):s&&(a=Ee);let l=this.parseChildren();e[a]=Object.keys(l).length===1?l[Ee]:new Oe([],l),this.consumeOptional("//")}return e}peekStartsWith(s){return this.remaining.startsWith(s)}consumeOptional(s){return this.peekStartsWith(s)?(this.remaining=this.remaining.substring(s.length),!0):!1}capture(s){if(!this.consumeOptional(s))throw new Fe(4011,!1)}};function Ua(i){return i.segments.length>0?new Oe([],{[Ee]:i}):i}function $a(i){let s={};for(let[t,r]of Object.entries(i.children)){let a=$a(r);if(t===Ee&&a.segments.length===0&&a.hasChildren())for(let[l,_]of Object.entries(a.children))s[l]=_;else(a.segments.length>0||a.hasChildren())&&(s[t]=a)}let e=new Oe(i.segments,s);return Oc(e)}function Oc(i){if(i.numberOfChildren===1&&i.children[Ee]){let s=i.children[Ee];return new Oe(i.segments.concat(s.segments),s.children)}return i}function ni(i){return i instanceof It}function Ic(i,s,e=null,t=null){let r=Ha(i);return Ga(r,s,e,t)}function Ha(i){let s;function e(a){let l={};for(let O of a.children){let te=e(O);l[O.outlet]=te}let _=new Oe(a.url,l);return a===i&&(s=_),_}let t=e(i.root),r=Ua(t);return s??r}function Ga(i,s,e,t){let r=i;for(;r.parent;)r=r.parent;if(s.length===0)return sn(r,r,r,e,t);let a=Lc(s);if(a.toRoot())return sn(r,r,new Oe([],{}),e,t);let l=Fc(a,r,i),_=l.processChildren?Gi(l.segmentGroup,l.index,a.commands):Va(l.segmentGroup,l.index,a.commands);return sn(r,l.segmentGroup,_,e,t)}function Hs(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function Xi(i){return typeof i=="object"&&i!=null&&i.outlets}function sn(i,s,e,t,r){let a={};t&&Object.entries(t).forEach(([O,te])=>{a[O]=Array.isArray(te)?te.map(G=>`${G}`):`${te}`});let l;i===s?l=e:l=Wa(i,s,e);let _=Ua($a(l));return new It(_,a,r)}function Wa(i,s,e){let t={};return Object.entries(i.children).forEach(([r,a])=>{a===s?t[r]=e:t[r]=Wa(a,s,e)}),new Oe(i.segments,t)}var Gs=class{constructor(s,e,t){if(this.isAbsolute=s,this.numberOfDoubleDots=e,this.commands=t,s&&t.length>0&&Hs(t[0]))throw new Fe(4003,!1);let r=t.find(Xi);if(r&&r!==La(t))throw new Fe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Lc(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Gs(!0,0,i);let s=0,e=!1,t=i.reduce((r,a,l)=>{if(typeof a=="object"&&a!=null){if(a.outlets){let _={};return Object.entries(a.outlets).forEach(([O,te])=>{_[O]=typeof te=="string"?te.split("/"):te}),[...r,{outlets:_}]}if(a.segmentPath)return[...r,a.segmentPath]}return typeof a!="string"?[...r,a]:l===0?(a.split("/").forEach((_,O)=>{O==0&&_==="."||(O==0&&_===""?e=!0:_===".."?s++:_!=""&&r.push(_))}),r):[...r,a]},[]);return new Gs(e,s,t)}var fi=class{constructor(s,e,t){this.segmentGroup=s,this.processChildren=e,this.index=t}};function Fc(i,s,e){if(i.isAbsolute)return new fi(s,!0,0);if(!e)return new fi(s,!1,NaN);if(e.parent===null)return new fi(e,!0,0);let t=Hs(i.commands[0])?0:1,r=e.segments.length-1+t;return Nc(e,r,i.numberOfDoubleDots)}function Nc(i,s,e){let t=i,r=s,a=e;for(;a>r;){if(a-=r,t=t.parent,!t)throw new Fe(4005,!1);r=t.segments.length}return new fi(t,!1,r-a)}function jc(i){return Xi(i[0])?i[0].outlets:{[Ee]:i}}function Va(i,s,e){if(i??=new Oe([],{}),i.segments.length===0&&i.hasChildren())return Gi(i,s,e);let t=Bc(i,s,e),r=e.slice(t.commandIndex);if(t.match&&t.pathIndexa!==Ee)&&i.children[Ee]&&i.numberOfChildren===1&&i.children[Ee].segments.length===0){let a=Gi(i.children[Ee],s,e);return new Oe(i.segments,a.children)}return Object.entries(t).forEach(([a,l])=>{typeof l=="string"&&(l=[l]),l!==null&&(r[a]=Va(i.children[a],s,l))}),Object.entries(i.children).forEach(([a,l])=>{t[a]===void 0&&(r[a]=l)}),new Oe(i.segments,r)}}function Bc(i,s,e){let t=0,r=s,a={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return a;let l=i.segments[r],_=e[t];if(Xi(_))break;let O=`${_}`,te=t0&&O===void 0)break;if(O&&te&&typeof te=="object"&&te.outlets===void 0){if(!Ea(O,te,l))return a;t+=2}else{if(!Ea(O,{},l))return a;t++}r++}return{match:!0,pathIndex:r,commandIndex:t}}function cn(i,s,e){let t=i.segments.slice(0,s),r=0;for(;r{typeof t=="string"&&(t=[t]),t!==null&&(s[e]=cn(new Oe([],{}),0,t))}),s}function Aa(i){let s={};return Object.entries(i).forEach(([e,t])=>s[e]=`${t}`),s}function Ea(i,s,e){return i==e.path&&wt(s,e.parameters)}var Wi="imperative",Ve=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(Ve||{}),ft=class{constructor(s,e){this.id=s,this.url=e}},bi=class extends ft{constructor(s,e,t="imperative",r=null){super(s,e),this.type=Ve.NavigationStart,this.navigationTrigger=t,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Ct=class extends ft{constructor(s,e,t){super(s,e),this.urlAfterRedirects=t,this.type=Ve.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},at=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(at||{}),Ws=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Ws||{}),Ot=class extends ft{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=Ve.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Wt=class extends ft{constructor(s,e,t,r){super(s,e),this.reason=t,this.code=r,this.type=Ve.NavigationSkipped}},Yi=class extends ft{constructor(s,e,t,r){super(s,e),this.error=t,this.target=r,this.type=Ve.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Vs=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},dn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},un=class extends ft{constructor(s,e,t,r,a){super(s,e),this.urlAfterRedirects=t,this.state=r,this.shouldActivate=a,this.type=Ve.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},pn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},fn=class extends ft{constructor(s,e,t,r){super(s,e),this.urlAfterRedirects=t,this.state=r,this.type=Ve.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},gn=class{constructor(s){this.route=s,this.type=Ve.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},mn=class{constructor(s){this.route=s,this.type=Ve.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yn=class{constructor(s){this.snapshot=s,this.type=Ve.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vn=class{constructor(s){this.snapshot=s,this.type=Ve.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},bn=class{constructor(s){this.snapshot=s,this.type=Ve.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xn=class{constructor(s){this.snapshot=s,this.type=Ve.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Xs=class{constructor(s,e,t){this.routerEvent=s,this.position=e,this.anchor=t,this.type=Ve.Scroll}toString(){let s=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${s}')`}},qi=class{},xi=class{constructor(s,e){this.url=s,this.navigationBehaviorOptions=e}};function zc(i,s){return i.providers&&!i._injector&&(i._injector=Cr(i.providers,s,`Route: ${i.path}`)),i._injector??s}function mt(i){return i.outlet||Ee}function Uc(i,s){let e=i.filter(t=>mt(t)===s);return e.push(...i.filter(t=>mt(t)!==s)),e}function ss(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let s=i.parent;s;s=s.parent){let e=s.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var wn=class{get injector(){return ss(this.route?.snapshot)??this.rootInjector}set injector(s){}constructor(s){this.rootInjector=s,this.outlet=null,this.route=null,this.children=new rs(this.rootInjector),this.attachRef=null}},rs=(()=>{class i{constructor(e){this.rootInjector=e,this.contexts=new Map}onChildOutletCreated(e,t){let r=this.getOrCreateContext(e);r.outlet=t,this.contexts.set(e,r)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new wn(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static{this.\u0275fac=function(t){return new(t||i)(Ce(qt))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Ys=class{constructor(s){this._root=s}get root(){return this._root.value}parent(s){let e=this.pathFromRoot(s);return e.length>1?e[e.length-2]:null}children(s){let e=Cn(s,this._root);return e?e.children.map(t=>t.value):[]}firstChild(s){let e=Cn(s,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(s){let e=Dn(s,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==s)}pathFromRoot(s){return Dn(s,this._root).map(e=>e.value)}};function Cn(i,s){if(i===s.value)return s;for(let e of s.children){let t=Cn(i,e);if(t)return t}return null}function Dn(i,s){if(i===s.value)return[s];for(let e of s.children){let t=Dn(i,e);if(t.length)return t.unshift(s),t}return[]}var ot=class{constructor(s,e){this.value=s,this.children=e}toString(){return`TreeNode(${this.value})`}};function pi(i){let s={};return i&&i.children.forEach(e=>s[e.value.outlet]=e),s}var qs=class extends Ys{constructor(s,e){super(s),this.snapshot=e,On(this,s)}toString(){return this.snapshot.toString()}};function Xa(i){let s=$c(i),e=new et([new si("",{})]),t=new et({}),r=new et({}),a=new et({}),l=new et(""),_=new Ke(e,t,a,l,r,Ee,i,s.root);return _.snapshot=s.root,new qs(new ot(_,[]),s)}function $c(i){let s={},e={},t={},r="",a=new gi([],s,t,r,e,Ee,i,null,{});return new Ks("",new ot(a,[]))}var Ke=class{constructor(s,e,t,r,a,l,_,O){this.urlSubject=s,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=r,this.dataSubject=a,this.outlet=l,this.component=_,this._futureSnapshot=O,this.title=this.dataSubject?.pipe(ke(te=>te[ts]))??Se(void 0),this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=a}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(s=>yi(s))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ke(s=>yi(s))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Zs(i,s,e="emptyOnly"){let t,{routeConfig:r}=i;return s!==null&&(e==="always"||r?.path===""||!s.component&&!s.routeConfig?.loadComponent)?t={params:we(we({},s.params),i.params),data:we(we({},s.data),i.data),resolve:we(we(we(we({},i.data),s.data),r?.data),i._resolvedData)}:t={params:we({},i.params),data:we({},i.data),resolve:we(we({},i.data),i._resolvedData??{})},r&&qa(r)&&(t.resolve[ts]=r.title),t}var gi=class{get title(){return this.data?.[ts]}constructor(s,e,t,r,a,l,_,O,te){this.url=s,this.params=e,this.queryParams=t,this.fragment=r,this.data=a,this.outlet=l,this.component=_,this.routeConfig=O,this._resolve=te}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??=yi(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=yi(this.queryParams),this._queryParamMap}toString(){let s=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${s}', path:'${e}')`}},Ks=class extends Ys{constructor(s,e){super(e),this.url=s,On(this,e)}toString(){return Ya(this._root)}};function On(i,s){s.value._routerState=i,s.children.forEach(e=>On(i,e))}function Ya(i){let s=i.children.length>0?` { ${i.children.map(Ya).join(", ")} } `:"";return`${i.value}${s}`}function rn(i){if(i.snapshot){let s=i.snapshot,e=i._futureSnapshot;i.snapshot=e,wt(s.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),s.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),wt(s.params,e.params)||i.paramsSubject.next(e.params),gc(s.url,e.url)||i.urlSubject.next(e.url),wt(s.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Sn(i,s){let e=wt(i.params,s.params)&&bc(i.url,s.url),t=!i.parent!=!s.parent;return e&&!t&&(!i.parent||Sn(i.parent,s.parent))}function qa(i){return typeof i.title=="string"||i.title===null}var Hc=(()=>{class i{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ee,this.activateEvents=new vt,this.deactivateEvents=new vt,this.attachEvents=new vt,this.detachEvents=new vt,this.parentContexts=xe(rs),this.location=xe(Ri),this.changeDetector=xe(ti),this.inputBinder=xe(tr,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:r}=e.name;if(t)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Fe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Fe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Fe(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new Fe(4013,!1);this._activatedRoute=e;let r=this.location,l=e.snapshot.component,_=this.parentContexts.getOrCreateContext(this.name).children,O=new An(e,_,r.injector);this.activated=r.createComponent(l,{index:r.length,injector:O,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=Et({type:i,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]})}}return i})(),An=class i{__ngOutletInjector(s){return new i(this.route,this.childContexts,s)}constructor(s,e,t){this.route=s,this.childContexts=e,this.parent=t}get(s,e){return s===Ke?this.route:s===rs?this.childContexts:this.parent.get(s,e)}},tr=new Te(""),Ma=(()=>{class i{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,r=cs([t.queryParams,t.params,t.data]).pipe(rt(([a,l,_],O)=>(_=we(we(we({},a),l),_),O===0?Se(_):Promise.resolve(_)))).subscribe(a=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let l=jo(t.component);if(!l){this.unsubscribeFromRouteData(e);return}for(let{templateName:_}of l.inputs)e.activatedComponentRef.setInput(_,a[_])});this.outletDataSubscriptions.set(e,r)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Gc(i,s,e){let t=Zi(i,s._root,e?e._root:void 0);return new qs(t,s)}function Zi(i,s,e){if(e&&i.shouldReuseRoute(s.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=s.value;let r=Wc(i,s,e);return new ot(t,r)}else{if(i.shouldAttach(s.value)){let a=i.retrieve(s.value);if(a!==null){let l=a.route;return l.value._futureSnapshot=s.value,l.children=s.children.map(_=>Zi(i,_)),l}}let t=Vc(s.value),r=s.children.map(a=>Zi(i,a));return new ot(t,r)}}function Wc(i,s,e){return s.children.map(t=>{for(let r of e.children)if(i.shouldReuseRoute(t.value,r.value.snapshot))return Zi(i,t,r);return Zi(i,t)})}function Vc(i){return new Ke(new et(i.url),new et(i.params),new et(i.queryParams),new et(i.fragment),new et(i.data),i.outlet,i.component,i)}var Ki=class{constructor(s,e){this.redirectTo=s,this.navigationBehaviorOptions=e}},Za="ngNavigationCancelingError";function Js(i,s){let{redirectTo:e,navigationBehaviorOptions:t}=ni(s)?{redirectTo:s,navigationBehaviorOptions:void 0}:s,r=Ka(!1,at.Redirect);return r.url=e,r.navigationBehaviorOptions=t,r}function Ka(i,s){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[Za]=!0,e.cancellationCode=s,e}function Xc(i){return Ja(i)&&ni(i.url)}function Ja(i){return!!i&&i[Za]}var Yc=(i,s,e,t)=>ke(r=>(new En(s,r.targetRouterState,r.currentRouterState,e,t).activate(i),r)),En=class{constructor(s,e,t,r,a){this.routeReuseStrategy=s,this.futureState=e,this.currState=t,this.forwardEvent=r,this.inputBindingEnabled=a}activate(s){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,s),rn(this.futureState.root),this.activateChildRoutes(e,t,s)}deactivateChildRoutes(s,e,t){let r=pi(e);s.children.forEach(a=>{let l=a.value.outlet;this.deactivateRoutes(a,r[l],t),delete r[l]}),Object.values(r).forEach(a=>{this.deactivateRouteAndItsChildren(a,t)})}deactivateRoutes(s,e,t){let r=s.value,a=e?e.value:null;if(r===a)if(r.component){let l=t.getContext(r.outlet);l&&this.deactivateChildRoutes(s,e,l.children)}else this.deactivateChildRoutes(s,e,t);else a&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(s,e){s.value.component&&this.routeReuseStrategy.shouldDetach(s.value.snapshot)?this.detachAndStoreRouteSubtree(s,e):this.deactivateRouteAndOutlet(s,e)}detachAndStoreRouteSubtree(s,e){let t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,a=pi(s);for(let l of Object.values(a))this.deactivateRouteAndItsChildren(l,r);if(t&&t.outlet){let l=t.outlet.detach(),_=t.children.onOutletDeactivated();this.routeReuseStrategy.store(s.value.snapshot,{componentRef:l,route:s,contexts:_})}}deactivateRouteAndOutlet(s,e){let t=e.getContext(s.value.outlet),r=t&&s.value.component?t.children:e,a=pi(s);for(let l of Object.values(a))this.deactivateRouteAndItsChildren(l,r);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(s,e,t){let r=pi(e);s.children.forEach(a=>{this.activateRoutes(a,r[a.value.outlet],t),this.forwardEvent(new xn(a.value.snapshot))}),s.children.length&&this.forwardEvent(new vn(s.value.snapshot))}activateRoutes(s,e,t){let r=s.value,a=e?e.value:null;if(rn(r),r===a)if(r.component){let l=t.getOrCreateContext(r.outlet);this.activateChildRoutes(s,e,l.children)}else this.activateChildRoutes(s,e,t);else if(r.component){let l=t.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){let _=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),l.children.onOutletReAttached(_.contexts),l.attachRef=_.componentRef,l.route=_.route.value,l.outlet&&l.outlet.attach(_.componentRef,_.route.value),rn(_.route.value),this.activateChildRoutes(s,null,l.children)}else l.attachRef=null,l.route=r,l.outlet&&l.outlet.activateWith(r,l.injector),this.activateChildRoutes(s,null,l.children)}else this.activateChildRoutes(s,null,t)}},Qs=class{constructor(s){this.path=s,this.route=this.path[this.path.length-1]}},mi=class{constructor(s,e){this.component=s,this.route=e}};function qc(i,s,e){let t=i._root,r=s?s._root:null;return $i(t,r,e,[t.value])}function Zc(i){let s=i.routeConfig?i.routeConfig.canActivateChild:null;return!s||s.length===0?null:{node:i,guards:s}}function Ci(i,s){let e=Symbol(),t=s.get(i,e);return t===e?typeof i=="function"&&!so(i)?i:s.get(i):t}function $i(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let a=pi(s);return i.children.forEach(l=>{Kc(l,a[l.value.outlet],e,t.concat([l.value]),r),delete a[l.value.outlet]}),Object.entries(a).forEach(([l,_])=>Vi(_,e.getContext(l),r)),r}function Kc(i,s,e,t,r={canDeactivateChecks:[],canActivateChecks:[]}){let a=i.value,l=s?s.value:null,_=e?e.getContext(i.value.outlet):null;if(l&&a.routeConfig===l.routeConfig){let O=Jc(l,a,a.routeConfig.runGuardsAndResolvers);O?r.canActivateChecks.push(new Qs(t)):(a.data=l.data,a._resolvedData=l._resolvedData),a.component?$i(i,s,_?_.children:null,t,r):$i(i,s,e,t,r),O&&_&&_.outlet&&_.outlet.isActivated&&r.canDeactivateChecks.push(new mi(_.outlet.component,l))}else l&&Vi(s,_,r),r.canActivateChecks.push(new Qs(t)),a.component?$i(i,null,_?_.children:null,t,r):$i(i,null,e,t,r);return r}function Jc(i,s,e){if(typeof e=="function")return e(i,s);switch(e){case"pathParamsChange":return!ri(i.url,s.url);case"pathParamsOrQueryParamsChange":return!ri(i.url,s.url)||!wt(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Sn(i,s)||!wt(i.queryParams,s.queryParams);case"paramsChange":default:return!Sn(i,s)}}function Vi(i,s,e){let t=pi(i),r=i.value;Object.entries(t).forEach(([a,l])=>{r.component?s?Vi(l,s.children.getContext(a),e):Vi(l,null,e):Vi(l,s,e)}),r.component?s&&s.outlet&&s.outlet.isActivated?e.canDeactivateChecks.push(new mi(s.outlet.component,r)):e.canDeactivateChecks.push(new mi(null,r)):e.canDeactivateChecks.push(new mi(null,r))}function ns(i){return typeof i=="function"}function Qc(i){return typeof i=="boolean"}function ed(i){return i&&ns(i.canLoad)}function td(i){return i&&ns(i.canActivate)}function id(i){return i&&ns(i.canActivateChild)}function sd(i){return i&&ns(i.canDeactivate)}function rd(i){return i&&ns(i.canMatch)}function Qa(i){return i instanceof Zn||i?.name==="EmptyError"}var _s=Symbol("INITIAL_VALUE");function wi(){return rt(i=>cs(i.map(s=>s.pipe(ai(1),to(_s)))).pipe(ke(s=>{for(let e of s)if(e!==!0){if(e===_s)return _s;if(e===!1||nd(e))return e}return!0}),St(s=>s!==_s),ai(1)))}function nd(i){return ni(i)||i instanceof Ki}function od(i,s){return st(e=>{let{targetSnapshot:t,currentSnapshot:r,guards:{canActivateChecks:a,canDeactivateChecks:l}}=e;return l.length===0&&a.length===0?Se(ze(we({},e),{guardsResult:!0})):ad(l,t,r,i).pipe(st(_=>_&&Qc(_)?ld(t,a,i,s):Se(_)),ke(_=>ze(we({},e),{guardsResult:_})))})}function ad(i,s,e,t){return Je(i).pipe(st(r=>pd(r.component,r.route,e,s,t)),Bt(r=>r!==!0,!0))}function ld(i,s,e,t){return Je(s).pipe(jt(r=>Kn(cd(r.route.parent,t),hd(r.route,t),ud(i,r.path,e),dd(i,r.route,e))),Bt(r=>r!==!0,!0))}function hd(i,s){return i!==null&&s&&s(new bn(i)),Se(!0)}function cd(i,s){return i!==null&&s&&s(new yn(i)),Se(!0)}function dd(i,s,e){let t=s.routeConfig?s.routeConfig.canActivate:null;if(!t||t.length===0)return Se(!0);let r=t.map(a=>ur(()=>{let l=ss(s)??e,_=Ci(a,l),O=td(_)?_.canActivate(s,i):dt(l,()=>_(s,i));return Vt(O).pipe(Bt())}));return Se(r).pipe(wi())}function ud(i,s,e){let t=s[s.length-1],a=s.slice(0,s.length-1).reverse().map(l=>Zc(l)).filter(l=>l!==null).map(l=>ur(()=>{let _=l.guards.map(O=>{let te=ss(l.node)??e,G=Ci(O,te),X=id(G)?G.canActivateChild(t,i):dt(te,()=>G(t,i));return Vt(X).pipe(Bt())});return Se(_).pipe(wi())}));return Se(a).pipe(wi())}function pd(i,s,e,t,r){let a=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!a||a.length===0)return Se(!0);let l=a.map(_=>{let O=ss(s)??r,te=Ci(_,O),G=sd(te)?te.canDeactivate(i,s,e,t):dt(O,()=>te(i,s,e,t));return Vt(G).pipe(Bt())});return Se(l).pipe(wi())}function fd(i,s,e,t){let r=s.canLoad;if(r===void 0||r.length===0)return Se(!0);let a=r.map(l=>{let _=Ci(l,i),O=ed(_)?_.canLoad(s,e):dt(i,()=>_(s,e));return Vt(O)});return Se(a).pipe(wi(),el(t))}function el(i){return Yn(Ge(s=>{if(typeof s!="boolean")throw Js(i,s)}),ke(s=>s===!0))}function gd(i,s,e,t){let r=s.canMatch;if(!r||r.length===0)return Se(!0);let a=r.map(l=>{let _=Ci(l,i),O=rd(_)?_.canMatch(s,e):dt(i,()=>_(s,e));return Vt(O)});return Se(a).pipe(wi(),el(t))}var Ji=class{constructor(s){this.segmentGroup=s||null}},Qi=class extends Error{constructor(s){super(),this.urlTree=s}};function ui(i){return Ei(new Ji(i))}function md(i){return Ei(new Fe(4e3,!1))}function yd(i){return Ei(Ka(!1,at.GuardRejected))}var Mn=class{constructor(s,e){this.urlSerializer=s,this.urlTree=e}lineralizeSegments(s,e){let t=[],r=e.root;for(;;){if(t=t.concat(r.segments),r.numberOfChildren===0)return Se(t);if(r.numberOfChildren>1||!r.children[Ee])return md(`${s.redirectTo}`);r=r.children[Ee]}}applyRedirectCommands(s,e,t,r,a){if(typeof e!="string"){let _=e,{queryParams:O,fragment:te,routeConfig:G,url:X,outlet:J,params:A,data:$,title:j}=r,F=dt(a,()=>_({params:A,data:$,queryParams:O,fragment:te,routeConfig:G,url:X,outlet:J,title:j}));if(F instanceof It)throw new Qi(F);e=F}let l=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),s,t);if(e[0]==="/")throw new Qi(l);return l}applyRedirectCreateUrlTree(s,e,t,r){let a=this.createSegmentGroup(s,e.root,t,r);return new It(a,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(s,e){let t={};return Object.entries(s).forEach(([r,a])=>{if(typeof a=="string"&&a[0]===":"){let _=a.substring(1);t[r]=e[_]}else t[r]=a}),t}createSegmentGroup(s,e,t,r){let a=this.createSegments(s,e.segments,t,r),l={};return Object.entries(e.children).forEach(([_,O])=>{l[_]=this.createSegmentGroup(s,O,t,r)}),new Oe(a,l)}createSegments(s,e,t,r){return e.map(a=>a.path[0]===":"?this.findPosParam(s,a,r):this.findOrReturn(a,t))}findPosParam(s,e,t){let r=t[e.path.substring(1)];if(!r)throw new Fe(4001,!1);return r}findOrReturn(s,e){let t=0;for(let r of e){if(r.path===s.path)return e.splice(t),r;t++}return s}},Tn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function vd(i,s,e,t,r){let a=tl(i,s,e);return a.matched?(t=zc(s,t),gd(t,s,e,r).pipe(ke(l=>l===!0?a:we({},Tn)))):Se(a)}function tl(i,s,e){if(s.path==="**")return bd(e);if(s.path==="")return s.pathMatch==="full"&&(i.hasChildren()||e.length>0)?we({},Tn):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let r=(s.matcher||fc)(e,i,s);if(!r)return we({},Tn);let a={};Object.entries(r.posParams??{}).forEach(([_,O])=>{a[_]=O.path});let l=r.consumed.length>0?we(we({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:l,positionalParamSegments:r.posParams??{}}}function bd(i){return{matched:!0,parameters:i.length>0?La(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function Ta(i,s,e,t){return e.length>0&&Cd(i,e,t)?{segmentGroup:new Oe(s,wd(t,new Oe(e,i.children))),slicedSegments:[]}:e.length===0&&Dd(i,e,t)?{segmentGroup:new Oe(i.segments,xd(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new Oe(i.segments,i.children),slicedSegments:e}}function xd(i,s,e,t){let r={};for(let a of e)if(ir(i,s,a)&&!t[mt(a)]){let l=new Oe([],{});r[mt(a)]=l}return we(we({},t),r)}function wd(i,s){let e={};e[Ee]=s;for(let t of i)if(t.path===""&&mt(t)!==Ee){let r=new Oe([],{});e[mt(t)]=r}return e}function Cd(i,s,e){return e.some(t=>ir(i,s,t)&&mt(t)!==Ee)}function Dd(i,s,e){return e.some(t=>ir(i,s,t))}function ir(i,s,e){return(i.hasChildren()||s.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Sd(i,s,e){return s.length===0&&!i.children[e]}var kn=class{};function Ad(i,s,e,t,r,a,l="emptyOnly"){return new Pn(i,s,e,t,r,l,a).recognize()}var Ed=31,Pn=class{constructor(s,e,t,r,a,l,_){this.injector=s,this.configLoader=e,this.rootComponentType=t,this.config=r,this.urlTree=a,this.paramsInheritanceStrategy=l,this.urlSerializer=_,this.applyRedirects=new Mn(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(s){return new Fe(4002,`'${s.segmentGroup}'`)}recognize(){let s=Ta(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(s).pipe(ke(({children:e,rootSnapshot:t})=>{let r=new ot(t,e),a=new Ks("",r),l=Ic(t,[],this.urlTree.queryParams,this.urlTree.fragment);return l.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(l),{state:a,tree:l}}))}match(s){let e=new gi([],Object.freeze({}),Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Ee,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,s,Ee,e).pipe(ke(t=>({children:t,rootSnapshot:e})),At(t=>{if(t instanceof Qi)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof Ji?this.noMatchError(t):t}))}processSegmentGroup(s,e,t,r,a){return t.segments.length===0&&t.hasChildren()?this.processChildren(s,e,t,a):this.processSegment(s,e,t,t.segments,r,!0,a).pipe(ke(l=>l instanceof ot?[l]:[]))}processChildren(s,e,t,r){let a=[];for(let l of Object.keys(t.children))l==="primary"?a.unshift(l):a.push(l);return Je(a).pipe(jt(l=>{let _=t.children[l],O=Uc(e,l);return this.processSegmentGroup(s,O,_,l,r)}),eo((l,_)=>(l.push(..._),l)),pr(null),Qn(),st(l=>{if(l===null)return ui(t);let _=il(l);return Md(_),Se(_)}))}processSegment(s,e,t,r,a,l,_){return Je(e).pipe(jt(O=>this.processSegmentAgainstRoute(O._injector??s,e,O,t,r,a,l,_).pipe(At(te=>{if(te instanceof Ji)return Se(null);throw te}))),Bt(O=>!!O),At(O=>{if(Qa(O))return Sd(t,r,a)?Se(new kn):ui(t);throw O}))}processSegmentAgainstRoute(s,e,t,r,a,l,_,O){return mt(t)!==l&&(l===Ee||!ir(r,a,t))?ui(r):t.redirectTo===void 0?this.matchSegmentAgainstRoute(s,r,t,a,l,O):this.allowRedirects&&_?this.expandSegmentAgainstRouteUsingRedirect(s,r,e,t,a,l,O):ui(r)}expandSegmentAgainstRouteUsingRedirect(s,e,t,r,a,l,_){let{matched:O,parameters:te,consumedSegments:G,positionalParamSegments:X,remainingSegments:J}=tl(e,r,a);if(!O)return ui(e);typeof r.redirectTo=="string"&&r.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ed&&(this.allowRedirects=!1));let A=new gi(a,te,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,ka(r),mt(r),r.component??r._loadedComponent??null,r,Pa(r)),$=Zs(A,_,this.paramsInheritanceStrategy);A.params=Object.freeze($.params),A.data=Object.freeze($.data);let j=this.applyRedirects.applyRedirectCommands(G,r.redirectTo,X,A,s);return this.applyRedirects.lineralizeSegments(r,j).pipe(st(F=>this.processSegment(s,t,e,F.concat(J),l,!1,_)))}matchSegmentAgainstRoute(s,e,t,r,a,l){let _=vd(e,t,r,s,this.urlSerializer);return t.path==="**"&&(e.children={}),_.pipe(rt(O=>O.matched?(s=t._injector??s,this.getChildConfig(s,t,r).pipe(rt(({routes:te})=>{let G=t._loadedInjector??s,{parameters:X,consumedSegments:J,remainingSegments:A}=O,$=new gi(J,X,Object.freeze(we({},this.urlTree.queryParams)),this.urlTree.fragment,ka(t),mt(t),t.component??t._loadedComponent??null,t,Pa(t)),j=Zs($,l,this.paramsInheritanceStrategy);$.params=Object.freeze(j.params),$.data=Object.freeze(j.data);let{segmentGroup:F,slicedSegments:C}=Ta(e,J,A,te);if(C.length===0&&F.hasChildren())return this.processChildren(G,te,F,$).pipe(ke(E=>new ot($,E)));if(te.length===0&&C.length===0)return Se(new ot($,[]));let M=mt(t)===a;return this.processSegment(G,te,F,C,M?Ee:a,!0,$).pipe(ke(E=>new ot($,E instanceof ot?[E]:[])))}))):ui(e)))}getChildConfig(s,e,t){return e.children?Se({routes:e.children,injector:s}):e.loadChildren?e._loadedRoutes!==void 0?Se({routes:e._loadedRoutes,injector:e._loadedInjector}):fd(s,e,t,this.urlSerializer).pipe(st(r=>r?this.configLoader.loadChildren(s,e).pipe(Ge(a=>{e._loadedRoutes=a.routes,e._loadedInjector=a.injector})):yd(e))):Se({routes:[],injector:s})}};function Md(i){i.sort((s,e)=>s.value.outlet===Ee?-1:e.value.outlet===Ee?1:s.value.outlet.localeCompare(e.value.outlet))}function Td(i){let s=i.value.routeConfig;return s&&s.path===""}function il(i){let s=[],e=new Set;for(let t of i){if(!Td(t)){s.push(t);continue}let r=s.find(a=>t.value.routeConfig===a.value.routeConfig);r!==void 0?(r.children.push(...t.children),e.add(r)):s.push(t)}for(let t of e){let r=il(t.children);s.push(new ot(t.value,r))}return s.filter(t=>!e.has(t))}function ka(i){return i.data||{}}function Pa(i){return i.resolve||{}}function kd(i,s,e,t,r,a){return st(l=>Ad(i,s,e,t,l.extractedUrl,r,a).pipe(ke(({state:_,tree:O})=>ze(we({},l),{targetSnapshot:_,urlAfterRedirects:O}))))}function Pd(i,s){return st(e=>{let{targetSnapshot:t,guards:{canActivateChecks:r}}=e;if(!r.length)return Se(e);let a=new Set(r.map(O=>O.route)),l=new Set;for(let O of a)if(!l.has(O))for(let te of sl(O))l.add(te);let _=0;return Je(l).pipe(jt(O=>a.has(O)?Rd(O,t,i,s):(O.data=Zs(O,O.parent,i).resolve,Se(void 0))),Ge(()=>_++),fr(1),st(O=>_===l.size?Se(e):Nt))})}function sl(i){let s=i.children.map(e=>sl(e)).flat();return[i,...s]}function Rd(i,s,e,t){let r=i.routeConfig,a=i._resolve;return r?.title!==void 0&&!qa(r)&&(a[ts]=r.title),Od(a,i,s,t).pipe(ke(l=>(i._resolvedData=l,i.data=Zs(i,i.parent,e).resolve,null)))}function Od(i,s,e,t){let r=an(i);if(r.length===0)return Se({});let a={};return Je(r).pipe(st(l=>Id(i[l],s,e,t).pipe(Bt(),Ge(_=>{if(_ instanceof Ki)throw Js(new vi,_);a[l]=_}))),fr(1),Jn(a),At(l=>Qa(l)?Nt:Ei(l)))}function Id(i,s,e,t){let r=ss(s)??t,a=Ci(i,r),l=a.resolve?a.resolve(s,e):dt(r,()=>a(s,e));return Vt(l)}function nn(i){return rt(s=>{let e=i(s);return e?Je(e).pipe(ke(()=>s)):Se(s)})}var rl=(()=>{class i{buildTitle(e){let t,r=e.root;for(;r!==void 0;)t=this.getResolvedTitleForRoute(r)??t,r=r.children.find(a=>a.outlet===Ee);return t}getResolvedTitleForRoute(e){return e.data[ts]}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Ld),providedIn:"root"})}}return i})(),Ld=(()=>{class i extends rl{constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ca))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),os=new Te("",{providedIn:"root",factory:()=>({})}),Fd=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=no({type:i,selectors:[["ng-component"]],standalone:!0,features:[Po],decls:1,vars:0,template:function(t,r){t&1&&To(0,"router-outlet")},dependencies:[Hc],encapsulation:2})}}return i})();function In(i){let s=i.children&&i.children.map(In),e=s?ze(we({},i),{children:s}):we({},i);return!e.component&&!e.loadComponent&&(s||e.loadChildren)&&e.outlet&&e.outlet!==Ee&&(e.component=Fd),e}var es=new Te(""),Ln=(()=>{class i{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=xe(xs)}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return Se(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=Vt(e.loadComponent()).pipe(ke(nl),Ge(a=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=a}),li(()=>{this.componentLoaders.delete(e)})),r=new cr(t,()=>new Ft).pipe(hr());return this.componentLoaders.set(e,r),r}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return Se({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let a=Nd(t,this.compiler,e,this.onLoadEndListener).pipe(li(()=>{this.childrenLoaders.delete(t)})),l=new cr(a,()=>new Ft).pipe(hr());return this.childrenLoaders.set(t,l),l}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Nd(i,s,e,t){return Vt(i.loadChildren()).pipe(ke(nl),st(r=>r instanceof Do||Array.isArray(r)?Se(r):Je(s.compileModuleAsync(r))),ke(r=>{t&&t(i);let a,l,_=!1;return Array.isArray(r)?(l=r,_=!0):(a=r.create(e).injector,l=a.get(es,[],{optional:!0,self:!0}).flat()),{routes:l.map(In),injector:a}}))}function jd(i){return i&&typeof i=="object"&&"default"in i}function nl(i){return jd(i)?i.default:i}var Fn=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Bd),providedIn:"root"})}}return i})(),Bd=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ol=new Te(""),al=new Te("");function _d(i,s,e){let t=i.get(al),r=i.get(We);return i.get(tt).runOutsideAngular(()=>{if(!r.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(te=>setTimeout(te));let a,l=new Promise(te=>{a=te}),_=r.startViewTransition(()=>(a(),zd(i))),{onViewTransitionCreated:O}=t;return O&&dt(i,()=>O({transition:_,from:s,to:e})),l})}function zd(i){return new Promise(s=>{Ao({read:()=>setTimeout(s)},{injector:i})})}var Ud=new Te(""),Nn=(()=>{class i{get hasRequestedNavigation(){return this.navigationId!==0}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ft,this.transitionAbortSubject=new Ft,this.configLoader=xe(Ln),this.environmentInjector=xe(qt),this.urlSerializer=xe(is),this.rootContexts=xe(rs),this.location=xe(di),this.inputBindingEnabled=xe(tr,{optional:!0})!==null,this.titleStrategy=xe(rl),this.options=xe(os,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=xe(Fn),this.createViewTransition=xe(ol,{optional:!0}),this.navigationErrorHandler=xe(Ud,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>Se(void 0),this.rootComponentType=null;let e=r=>this.events.next(new gn(r)),t=r=>this.events.next(new mn(r));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(ze(we(we({},this.transitions.value),e),{id:t}))}setupNavigations(e,t,r){return this.transitions=new et({id:0,currentUrlTree:t,currentRawUrl:t,extractedUrl:this.urlHandlingStrategy.extract(t),urlAfterRedirects:this.urlHandlingStrategy.extract(t),rawUrl:t,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:Wi,restoredState:null,currentSnapshot:r.snapshot,targetSnapshot:null,currentRouterState:r,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(St(a=>a.id!==0),ke(a=>ze(we({},a),{extractedUrl:this.urlHandlingStrategy.extract(a.rawUrl)})),rt(a=>{let l=!1,_=!1;return Se(a).pipe(rt(O=>{if(this.navigationId>a.id)return this.cancelNavigationTransition(a,"",at.SupersededByNewNavigation),Nt;this.currentTransition=a,this.currentNavigation={id:O.id,initialUrl:O.rawUrl,extractedUrl:O.extractedUrl,targetBrowserUrl:typeof O.extras.browserUrl=="string"?this.urlSerializer.parse(O.extras.browserUrl):O.extras.browserUrl,trigger:O.source,extras:O.extras,previousNavigation:this.lastSuccessfulNavigation?ze(we({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let te=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),G=O.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!te&&G!=="reload"){let X="";return this.events.next(new Wt(O.id,this.urlSerializer.serialize(O.rawUrl),X,Ws.IgnoredSameUrlNavigation)),O.resolve(!1),Nt}if(this.urlHandlingStrategy.shouldProcessUrl(O.rawUrl))return Se(O).pipe(rt(X=>{let J=this.transitions?.getValue();return this.events.next(new bi(X.id,this.urlSerializer.serialize(X.extractedUrl),X.source,X.restoredState)),J!==this.transitions?.getValue()?Nt:Promise.resolve(X)}),kd(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ge(X=>{a.targetSnapshot=X.targetSnapshot,a.urlAfterRedirects=X.urlAfterRedirects,this.currentNavigation=ze(we({},this.currentNavigation),{finalUrl:X.urlAfterRedirects});let J=new Vs(X.id,this.urlSerializer.serialize(X.extractedUrl),this.urlSerializer.serialize(X.urlAfterRedirects),X.targetSnapshot);this.events.next(J)}));if(te&&this.urlHandlingStrategy.shouldProcessUrl(O.currentRawUrl)){let{id:X,extractedUrl:J,source:A,restoredState:$,extras:j}=O,F=new bi(X,this.urlSerializer.serialize(J),A,$);this.events.next(F);let C=Xa(this.rootComponentType).snapshot;return this.currentTransition=a=ze(we({},O),{targetSnapshot:C,urlAfterRedirects:J,extras:ze(we({},j),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=J,Se(a)}else{let X="";return this.events.next(new Wt(O.id,this.urlSerializer.serialize(O.extractedUrl),X,Ws.IgnoredByUrlHandlingStrategy)),O.resolve(!1),Nt}}),Ge(O=>{let te=new dn(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects),O.targetSnapshot);this.events.next(te)}),ke(O=>(this.currentTransition=a=ze(we({},O),{guards:qc(O.targetSnapshot,O.currentSnapshot,this.rootContexts)}),a)),od(this.environmentInjector,O=>this.events.next(O)),Ge(O=>{if(a.guardsResult=O.guardsResult,O.guardsResult&&typeof O.guardsResult!="boolean")throw Js(this.urlSerializer,O.guardsResult);let te=new un(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects),O.targetSnapshot,!!O.guardsResult);this.events.next(te)}),St(O=>O.guardsResult?!0:(this.cancelNavigationTransition(O,"",at.GuardRejected),!1)),nn(O=>{if(O.guards.canActivateChecks.length)return Se(O).pipe(Ge(te=>{let G=new pn(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(G)}),rt(te=>{let G=!1;return Se(te).pipe(Pd(this.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>G=!0,complete:()=>{G||this.cancelNavigationTransition(te,"",at.NoDataFromResolver)}}))}),Ge(te=>{let G=new fn(te.id,this.urlSerializer.serialize(te.extractedUrl),this.urlSerializer.serialize(te.urlAfterRedirects),te.targetSnapshot);this.events.next(G)}))}),nn(O=>{let te=G=>{let X=[];G.routeConfig?.loadComponent&&!G.routeConfig._loadedComponent&&X.push(this.configLoader.loadComponent(G.routeConfig).pipe(Ge(J=>{G.component=J}),ke(()=>{})));for(let J of G.children)X.push(...te(J));return X};return cs(te(O.targetSnapshot.root)).pipe(pr(null),ai(1))}),nn(()=>this.afterPreactivation()),rt(()=>{let{currentSnapshot:O,targetSnapshot:te}=a,G=this.createViewTransition?.(this.environmentInjector,O.root,te.root);return G?Je(G).pipe(ke(()=>a)):Se(a)}),ke(O=>{let te=Gc(e.routeReuseStrategy,O.targetSnapshot,O.currentRouterState);return this.currentTransition=a=ze(we({},O),{targetRouterState:te}),this.currentNavigation.targetRouterState=te,a}),Ge(()=>{this.events.next(new qi)}),Yc(this.rootContexts,e.routeReuseStrategy,O=>this.events.next(O),this.inputBindingEnabled),ai(1),Ge({next:O=>{l=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Ct(O.id,this.urlSerializer.serialize(O.extractedUrl),this.urlSerializer.serialize(O.urlAfterRedirects))),this.titleStrategy?.updateTitle(O.targetRouterState.snapshot),O.resolve(!0)},complete:()=>{l=!0}}),io(this.transitionAbortSubject.pipe(Ge(O=>{throw O}))),li(()=>{!l&&!_&&this.cancelNavigationTransition(a,"",at.SupersededByNewNavigation),this.currentTransition?.id===a.id&&(this.currentNavigation=null,this.currentTransition=null)}),At(O=>{if(_=!0,Ja(O))this.events.next(new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),O.message,O.cancellationCode)),Xc(O)?this.events.next(new xi(O.url,O.navigationBehaviorOptions)):a.resolve(!1);else{let te=new Yi(a.id,this.urlSerializer.serialize(a.extractedUrl),O,a.targetSnapshot??void 0);try{let G=dt(this.environmentInjector,()=>this.navigationErrorHandler?.(te));if(G instanceof Ki){let{message:X,cancellationCode:J}=Js(this.urlSerializer,G);this.events.next(new Ot(a.id,this.urlSerializer.serialize(a.extractedUrl),X,J)),this.events.next(new xi(G.redirectTo,G.navigationBehaviorOptions))}else{this.events.next(te);let X=e.errorHandler(O);a.resolve(!!X)}}catch(G){this.options.resolveNavigationPromiseOnError?a.resolve(!1):a.reject(G)}}return Nt}))}))}cancelNavigationTransition(e,t,r){let a=new Ot(e.id,this.urlSerializer.serialize(e.extractedUrl),t,r);this.events.next(a),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function $d(i){return i!==Wi}var Hd=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Gd),providedIn:"root"})}}return i})(),Rn=class{shouldDetach(s){return!1}store(s,e){}shouldAttach(s){return!1}retrieve(s){return null}shouldReuseRoute(s,e){return s.routeConfig===e.routeConfig}},Gd=(()=>{class i extends Rn{static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=yr(i)))(r||i)}})()}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),ll=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:()=>xe(Wd),providedIn:"root"})}}return i})(),Wd=(()=>{class i extends ll{constructor(){super(...arguments),this.location=xe(di),this.urlSerializer=xe(is),this.options=xe(os,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=xe(Fn),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new It,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Xa(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(e){return this.location.subscribe(t=>{t.type==="popstate"&&e(t.url,t.state)})}handleRouterEvent(e,t){if(e instanceof bi)this.stateMemento=this.createStateMemento();else if(e instanceof Wt)this.rawUrlTree=t.initialUrl;else if(e instanceof Vs){if(this.urlUpdateStrategy==="eager"&&!t.extras.skipLocationChange){let r=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl);this.setBrowserUrl(t.targetBrowserUrl??r,t)}}else e instanceof qi?(this.currentUrlTree=t.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(t.finalUrl,t.initialUrl),this.routerState=t.targetRouterState,this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(t.targetBrowserUrl??this.rawUrlTree,t)):e instanceof Ot&&(e.code===at.GuardRejected||e.code===at.NoDataFromResolver)?this.restoreHistory(t):e instanceof Yi?this.restoreHistory(t,!0):e instanceof Ct&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,t){let r=e instanceof It?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(r)||t.extras.replaceUrl){let a=this.browserPageId,l=we(we({},t.extras.state),this.generateNgRouterState(t.id,a));this.location.replaceState(r,"",l)}else{let a=we(we({},t.extras.state),this.generateNgRouterState(t.id,this.browserPageId+1));this.location.go(r,"",a)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let r=this.browserPageId,a=this.currentPageId-r;a!==0?this.location.historyGo(a):this.currentUrlTree===e.finalUrl&&a===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static{this.\u0275fac=(()=>{let e;return function(r){return(e||(e=yr(i)))(r||i)}})()}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),Hi=function(i){return i[i.COMPLETE=0]="COMPLETE",i[i.FAILED=1]="FAILED",i[i.REDIRECTING=2]="REDIRECTING",i}(Hi||{});function hl(i,s){i.events.pipe(St(e=>e instanceof Ct||e instanceof Ot||e instanceof Yi||e instanceof Wt),ke(e=>e instanceof Ct||e instanceof Wt?Hi.COMPLETE:(e instanceof Ot?e.code===at.Redirect||e.code===at.SupersededByNewNavigation:!1)?Hi.REDIRECTING:Hi.FAILED),St(e=>e!==Hi.REDIRECTING),ai(1)).subscribe(()=>{s()})}function Vd(i){throw i}var Xd={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Yd={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lt=(()=>{class i{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(fs),this.stateManager=xe(ll),this.options=xe(os,{optional:!0})||{},this.pendingTasks=xe(ds),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=xe(Nn),this.urlSerializer=xe(is),this.location=xe(di),this.urlHandlingStrategy=xe(Fn),this._events=new Ft,this.errorHandler=this.options.errorHandler||Vd,this.navigated=!1,this.routeReuseStrategy=xe(Hd),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=xe(es,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!xe(tr,{optional:!0}),this.eventsSubscription=new Xn,this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let r=this.navigationTransitions.currentTransition,a=this.navigationTransitions.currentNavigation;if(r!==null&&a!==null){if(this.stateManager.handleRouterEvent(t,a),t instanceof Ot&&t.code!==at.Redirect&&t.code!==at.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Ct)this.navigated=!0;else if(t instanceof xi){let l=t.navigationBehaviorOptions,_=this.urlHandlingStrategy.merge(t.url,r.currentRawUrl),O=we({browserUrl:r.extras.browserUrl,info:r.extras.info,skipLocationChange:r.extras.skipLocationChange,replaceUrl:r.extras.replaceUrl||this.urlUpdateStrategy==="eager"||$d(r.source)},l);this.scheduleNavigation(_,Wi,null,O,{resolve:r.resolve,reject:r.reject,promise:r.promise})}}Zd(t)&&this._events.next(t)}catch(r){this.navigationTransitions.transitionAbortSubject.next(r)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Wi,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",t)},0)})}navigateToSyncWithBrowser(e,t,r){let a={replaceUrl:!0},l=r?.navigationId?r:null;if(r){let O=we({},r);delete O.navigationId,delete O.\u0275routerPageId,Object.keys(O).length!==0&&(a.state=O)}let _=this.parseUrl(e);this.scheduleNavigation(_,t,l,a)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.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(e,t={}){let{relativeTo:r,queryParams:a,fragment:l,queryParamsHandling:_,preserveFragment:O}=t,te=O?this.currentUrlTree.fragment:l,G=null;switch(_??this.options.defaultQueryParamsHandling){case"merge":G=we(we({},this.currentUrlTree.queryParams),a);break;case"preserve":G=this.currentUrlTree.queryParams;break;default:G=a||null}G!==null&&(G=this.removeEmptyProps(G));let X;try{let J=r?r.snapshot:this.routerState.snapshot.root;X=Ha(J)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),X=this.currentUrlTree.root}return Ga(X,e,G,te??null)}navigateByUrl(e,t={skipLocationChange:!1}){let r=ni(e)?e:this.parseUrl(e),a=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(a,Wi,null,t)}navigate(e,t={skipLocationChange:!1}){return qd(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let r;if(t===!0?r=we({},Xd):t===!1?r=we({},Yd):r=t,ni(e))return Da(this.currentUrlTree,e,r);let a=this.parseUrl(e);return Da(this.currentUrlTree,a,r)}removeEmptyProps(e){return Object.entries(e).reduce((t,[r,a])=>(a!=null&&(t[r]=a),t),{})}scheduleNavigation(e,t,r,a,l){if(this.disposed)return Promise.resolve(!1);let _,O,te;l?(_=l.resolve,O=l.reject,te=l.promise):te=new Promise((X,J)=>{_=X,O=J});let G=this.pendingTasks.add();return hl(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(G))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:a,resolve:_,reject:O,promise:te,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),te.catch(X=>Promise.reject(X))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function qd(i){for(let s=0;s{class i{constructor(e,t,r,a,l,_){this.router=e,this.route=t,this.tabIndexAttribute=r,this.renderer=a,this.el=l,this.locationStrategy=_,this.href=null,this.onChanges=new Ft,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1,this.routerLinkInput=null;let O=l.nativeElement.tagName?.toLowerCase();this.isAnchorElement=O==="a"||O==="area",this.isAnchorElement?this.subscription=e.events.subscribe(te=>{te instanceof Ct&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(ni(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,r,a,l){let _=this.urlTree;if(_===null||this.isAnchorElement&&(e!==0||t||r||a||l||typeof this.target=="string"&&this.target!="_self"))return!0;let O={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(_,O),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let t=this.href===null?null:bo(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let r=this.renderer,a=this.el.nativeElement;t!==null?r.setAttribute(a,e,t):r.removeAttribute(a,e)}get urlTree(){return this.routerLinkInput===null?null:ni(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(t){return new(t||i)(Ue(lt),Ue(Ke),vr("tabindex"),Ue(ei),Ue(Kt),Ue(xt))}}static{this.\u0275dir=Et({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,r){t&1&&ko("click",function(l){return r.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),t&2&&Eo("target",r.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:[ps,Zt]})}}return i})();var er=class{},Gp=(()=>{class i{preload(e,t){return t().pipe(At(()=>Se(null)))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Kd=(()=>{class i{constructor(e,t,r,a,l){this.router=e,this.injector=r,this.preloadingStrategy=a,this.loader=l}setUpPreloading(){this.subscription=this.router.events.pipe(St(e=>e instanceof Ct),jt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let r=[];for(let a of t){a.providers&&!a._injector&&(a._injector=Cr(a.providers,e,`Route: ${a.path}`));let l=a._injector??e,_=a._loadedInjector??l;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&r.push(this.preloadConfig(l,a)),(a.children||a._loadedRoutes)&&r.push(this.processRoutes(_,a.children??a._loadedRoutes))}return Je(r).pipe(dr())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let r;t.loadChildren&&t.canLoad===void 0?r=this.loader.loadChildren(e,t):r=Se(null);let a=r.pipe(st(l=>l===null?Se(void 0):(t._loadedRoutes=l.routes,t._loadedInjector=l.injector,this.processRoutes(l.injector??e,l.routes))));if(t.loadComponent&&!t._loadedComponent){let l=this.loader.loadComponent(t);return Je([a,l]).pipe(dr())}else return a})}static{this.\u0275fac=function(t){return new(t||i)(Ce(lt),Ce(xs),Ce(qt),Ce(er),Ce(Ln))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),cl=new Te(""),Jd=(()=>{class i{constructor(e,t,r,a,l={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=r,this.zone=a,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration||="disabled",l.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(e=>{e instanceof bi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Ct?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Wt&&e.code===Ws.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Xs&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Xs(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(t){xo()}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac})}}return i})();function Wp(i,...s){return ki([{provide:es,multi:!0,useValue:i},[],{provide:Ke,useFactory:dl,deps:[lt]},{provide:vs,multi:!0,useFactory:ul},s.map(e=>e.\u0275providers)])}function dl(i){return i.routerState.root}function Di(i,s){return{\u0275kind:i,\u0275providers:s}}function ul(){let i=xe(Pi);return s=>{let e=i.get(bs);if(s!==e.components[0])return;let t=i.get(lt),r=i.get(pl);i.get(jn)===1&&t.initialNavigation(),i.get(fl,null,gr.Optional)?.setUpPreloading(),i.get(cl,null,gr.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.complete(),r.unsubscribe())}}var pl=new Te("",{factory:()=>new Ft}),jn=new Te("",{providedIn:"root",factory:()=>1});function Qd(){return Di(2,[{provide:jn,useValue:0},{provide:Sr,multi:!0,deps:[Pi],useFactory:s=>{let e=s.get(Xo,Promise.resolve());return()=>e.then(()=>new Promise(t=>{let r=s.get(lt),a=s.get(pl);hl(r,()=>{t(!0)}),s.get(Nn).afterPreactivation=()=>(t(!0),a.closed?Se(void 0):a),r.initialNavigation()}))}}])}function eu(){return Di(3,[{provide:Sr,multi:!0,useFactory:()=>{let s=xe(lt);return()=>{s.setUpLocationChangeListener()}}},{provide:jn,useValue:2}])}var fl=new Te("");function tu(i){return Di(0,[{provide:fl,useExisting:Kd},{provide:er,useExisting:i}])}function Vp(){return Di(6,[{provide:xt,useClass:Br}])}function iu(){return Di(8,[Ma,{provide:tr,useExisting:Ma}])}function su(i){let s=[{provide:ol,useValue:_d},{provide:al,useValue:we({skipNextTransition:!!i?.skipInitialTransition},i)}];return Di(9,s)}var Ra=new Te("ROUTER_FORROOT_GUARD"),ru=[di,{provide:is,useClass:vi},lt,rs,{provide:Ke,useFactory:dl,deps:[lt]},Ln,[]],Xp=(()=>{class i{constructor(e){}static forRoot(e,t){return{ngModule:i,providers:[ru,[],{provide:es,multi:!0,useValue:e},{provide:Ra,useFactory:lu,deps:[[lt,new mr,new ro]]},{provide:os,useValue:t||{}},t?.useHash?ou():au(),nu(),t?.preloadingStrategy?tu(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?hu(t):[],t?.bindToComponentInputs?iu().\u0275providers:[],t?.enableViewTransitions?su().\u0275providers:[],cu()]}}static forChild(e){return{ngModule:i,providers:[{provide:es,multi:!0,useValue:e}]}}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ra,8))}}static{this.\u0275mod=Yt({type:i})}static{this.\u0275inj=Xt({})}}return i})();function nu(){return{provide:cl,useFactory:()=>{let i=xe(ea),s=xe(tt),e=xe(os),t=xe(Nn),r=xe(is);return e.scrollOffset&&i.setOffset(e.scrollOffset),new Jd(r,t,i,s,e)}}}function ou(){return{provide:xt,useClass:Br}}function au(){return{provide:xt,useClass:jr}}function lu(i){return"guarded"}function hu(i){return[i.initialNavigation==="disabled"?eu().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Qd().\u0275providers:[]]}var Oa=new Te("");function cu(){return[{provide:Oa,useFactory:ul},{provide:vs,multi:!0,useExisting:Oa}]}var du={en:"English",de:"German",cs:"Czech",ru:"Russian",pt:"Portuguese"},qp=(()=>{class i{constructor(e){this.i18n=e}transform(e){return this.i18n.get(e)}static{this.\u0275fac=function(t){return new(t||i)(Ue(Bn,16))}}static{this.\u0275pipe=Ti({name:"i18n",type:i,pure:!0,standalone:!0})}}return i})(),Bn=(()=>{class i{constructor(){switch(this.current="en",window.navigator.language.toLowerCase()){case"en":this.current="en";break;case"ru":this.current="ru";break;case"de":this.current="de";break;case"pt":this.current="pt";break;default:this.current="en";break}}getLanguageName(e){return du[e]||""}get(e){return!rr[this.current]||!rr[this.current][e]?e:rr[this.current][e]}getLanguages(){return Object.keys(rr)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})(),rr={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"},pt:{settingsImported:"As configura\xE7\xF5es foram importadas com sucesso! A p\xE1gina ser\xE1 recarregada.",settingsReset:"As configura\xE7\xF5es foram redefinidas com sucesso! A p\xE1gina ser\xE1 recarregada.",resetClickFilter:"Redefinir filtro de clique",copyMDX:"Copiar MDX",seriesColor:"Cores das S\xE9ries",copy:"Copiar",shareDashboard:"Compartilhar Painel",relatedFilters:"Filtros relacionados",disableTilePush:"Desative o recurso de empurrar blocos ao mover/redimensionar.",theme:"Tema",showLog:"Mostrar log",server:"Servidor",saveFilters:"Gravar filtros",exportSettings:"Exportar configura\xE7\xF5es",importSettings:"Importar configura\xE7\xF5es",export:"Importar",pngImage:"Imagem (*.png)",svgImage:"Imagem (*.svg)",jpgImage:"Imagem (*.jpg)",pdfDoc:"Documento (*.pdf)",xlsDoc:"Documento (*.xls)",csvDoc:"Documento (*.csv)",about:"Sobre",cancel:"Cancelar",save:"Gravar",load:"Carregar",share:"Compartilhar",title:"T\xEDtulo",curSettings:"Configura\xE7\xF5es atuais",newView:"Novo",language:"Idioma",dashboard:"Painel",folder:"Pasta",signin:"Entrar",signout:"Sair",login:"Autentica\xE7\xE3o",signinOAuth:"Entrar via OAuth",password:"Senha",namespace:"Namespace",loading:"Carregando...",search:"Procurar",accept:"Aplicar",close:"Fechar",dismiss:"Reiniciar",home:"Home",zoom:"Zoom",resetSettings:"Redefinir configura\xE7\xF5es",addToFavorites:"Adicionar aos favoritos",removeFromFav:"Remover dos favoritos",refresh:"Recarregar",showFolders:"Mostrar pastas",showTop:"Mostrar os registros Top",viewAs:"Ver como",count:"Contar",filters:"Filtros",setDefault:"Restaurar para as configura\xE7\xF5es padr\xE3o",dashColumns:"Contagem de colunas",widgetHeight:"Altura do widget (px)",widgetHeightDyn:"Padr\xE3o: ajustar \xE0 janela",noData:"N\xE3o h\xE1 dados para exibir.",byRows:"Exibir por linhas",by2columns:"Exibir em duas colunas",by3columns:"Exibir em tr\xEAs colunas",by4columns:"Exibir em quatro colunas",by5columns:"Exibir em cinco colunas",by6columns:"Exibir em seis colunas",print:"Imprimir...",fav:"Favoritos",options:"COnfigura\xE7\xF5es",gotoDeepSee:"Iris BI",showLegend:"Alternar legenda",showPivot:"Mostrar como pivot table",back:"Voltar",exclude:"Excluir",all:"Todos",interval:"Intervalo",not:"N\xE3o",from:"De",to:"Para",metroStyle:"Metro UI",bgColor:"Cor de fundo",fntColor:"Cor da fonte",icon:"\xCDcone",done:"Feito",widget:"Widget",showImages:"Mostrar imagens",dataSource:"Fonte de Dados",hideTitle:"Ocultar t\xEDtulo",showZero:"Defina o valor m\xEDnimo do eixo como zero.",showValues:"Mostrar valores",err:"Erro",errWidgetRequest:"N\xE3o foi poss\xEDvel carregar os dados do widget.",errLoginRequired:"Por favor, fa\xE7a login.",errPassRequired:"Por favor, digite a senha.",errUnauth:"Nome de usu\xE1rio e senha desconhecidos. Tente novamente.",errNotFound:"A URL solicitada n\xE3o foi encontrada no servidor.",errTimeout:"Tempo limite da solicita\xE7\xE3o",errWidgetNotSupported:"O widget n\xE3o \xE9 suportado.",errNoWidgets:"Nenhum widget recebido do servidor",errNoDashboards:"N\xE3o h\xE1 pain\xE9is de controle neste espa\xE7o de nomes.",shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],changeColors:"Alterar cores",fullscreen:"Alternar tela cheia",showKPI:"Mostrar KPI",openAnalyzer:"Abrir analisador",addWidget:"Adicionar widget"}};var gl={name:"deep-see-web",version:"4.0.28",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",maps:"ng serve --proxy-config=proxy.conf.maps.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.2.10","@angular/common":"^18.2.10","@angular/compiler":"^18.2.10","@angular/core":"^18.2.10","@angular/forms":"^18.2.10","@angular/platform-browser":"^18.2.10","@angular/platform-browser-dynamic":"^18.2.10","@angular/router":"^18.2.10","@angular/service-worker":"~18.2.10","@highcharts/map-collection":"^2.0.1","@iplab/ngx-color-picker":"^18.0.1","@ng-select/ng-select":"^13.9.1","air-datepicker":"^3.5.3","angular-gridster2":"^18.0.1","font-awesome":"^4.7.0",highcharts:"^11.4.8","highcharts-angular":"^4.0.1","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.2.11","@angular/cli":"~18.2.11","@angular/compiler-cli":"^18.2.10","@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 oi={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 fu=5e3,ml=(()=>{class i{constructor(){this.errors$=new et([]),this.lastId=0,this.errors=[]}getIndex(e){return this.errors.indexOf(e)}close(e){let t=this.errors.findIndex(r=>r===e);t!==-1&&(this.errors.splice(t,1),this.emit())}show(e,t=!1,r=fu){this.lastId++;let a={id:this.lastId,message:e,delay:r,isLeft:t};this.errors.push(a),r!==0&&setTimeout(()=>{this.close(a)},r),this.emit()}emit(){this.errors$.next([...this.errors])}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var _n=kl(vl());var bl=(()=>{class i{constructor(e){this.route=e}removeExt(e){if(!e)return"";let t=e.split(".");return t.length===1?e:(t.pop(),t.join("."))}replaceFilename(e,t){let r=e.split("/");return r[r.length-1]=t,r.join("/")}isEmbedded(){let e=window.location.hash.replace("?","").replace("#/","").split("&");for(let t=0;t{class i{constructor(e,t,r,a){this.ds=e,this.i18n=t,this.route=r,this.us=a,this.serverSettings={},this.onSettingsChanged=new vt,this.onTilesChanged=new vt,this.settings={},this.configLoaded=!1,this.isLocalStorage=!1,this.checkForLocalStorage()}get storage(){return this.isLocalStorage?localStorage:sessionStorage}checkForLocalStorage(){let e="dws_ls_test";try{localStorage.setItem(e,"test")}catch{return}localStorage.removeItem(e),this.isLocalStorage=!0}saveUserSettings(){let e=JSON.parse(this.storage.getItem("userSettings")||"{}");e[Be.toLocaleLowerCase()]=this.settings,this.storage.setItem("userSettings",JSON.stringify(e))}loadConfig(e){if(this.settings={},this.configLoaded=!0,e)if(e.constructor===Object)this.settings=e;else{let l;try{l=JSON.parse(e)}catch{l={}}this.settings=l}let t=null;this.storage.getItem("userSettings")&&(t=JSON.parse(this.storage.getItem("userSettings")||"{}")[Be.toLocaleLowerCase()]),t&&this.us.mergeRecursive(this.settings,t);let r=this.getAppSettings();if(!oi.mobile&&r.theme){let l=document.getElementById("page-theme");l||(l=document.createElement("link")),l.id="page-theme",l.rel="stylesheet",l.type="text/css",l.href=r.theme,document.head.appendChild(l)}this.i18n.current=r.language||"en";let a=_n.default.getOptions().colors||[];for(let l=1;l<=a.length;l++){let _=document.querySelector(".hc"+l.toString());if(_){let O=window.getComputedStyle(_).getPropertyValue("background-color");O!=="rgba(0, 0, 0, 0)"&&O!=="transparent"&&(a[l-1]=O)}}if(r.theme){let l=r.themeColors?.[r.theme];l&&_n.default.setOptions({xAxis:{labels:{style:{color:l.hcTextColor}}},yAxis:{labels:{style:{color:l.hcTextColor}}},zAxis:{labels:{style:{color:l.hcTextColor}}},chart:{backgroundColor:l.hcBackground},colors:l.hcColors||a,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 e=this.route.snapshot.queryParamMap.get("lang");this.settings.app||(this.settings.app={});let t=this.settings.app;e&&(t.language=e),t.themeColors||(t.themeColors={});let r=this.route.snapshot.queryParamMap.get("theme");if(r){let a=oi.const.themes.find(l=>l.text===r);a&&(t.theme=a.file)}return t}setAppSettings(e){this.settings.app=e,this.saveUserSettings()}getWidgetsSettings(e){return this.settings.ns?.widgets?this.settings.ns.widgets[e]||{}:{}}setWidgetsSettings(e,t){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.widgets||(this.settings.ns.widgets={}),this.settings.ns.widgets[t]=JSON.parse(JSON.stringify(e)),this.saveUserSettings()}getTilesSettings(){return this.settings&&this.settings.ns?this.settings.ns.tiles||{}:{}}setTilesSettings(e){this.settings||(this.settings={}),this.settings.ns||(this.settings.ns={}),this.settings.ns.tiles=JSON.parse(JSON.stringify(e)),this.saveUserSettings()}getAllSettings(){return this.settings}setAllSettings(e){this.settings=e,this.saveUserSettings()}loadServerSettings(e){this.serverSettings=e||{}}static{this.\u0275fac=function(t){return new(t||i)(Ce(xl),Ce(Bn),Ce(Ke),Ce(bl))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Cl="dsw.namespaces",Dl="dsw.namespace",Be="",cf=(()=>{class i{constructor(e,t,r){this.ss=e,this.router=t,this.route=r,this.list=[],this.loadNamespaces()}get namespaces(){return this.list}resolve(e,t){return new Ai(r=>{let a=()=>{r.next(),r.complete()};if(Be){this.router.navigateByUrl(Be);return}this.router.navigateByUrl("/login")})}loadNamespaces(){try{Be=this.ss.storage.getItem(Dl)||"";let t=this.ss.storage.getItem(Cl)||"[]";this.list=JSON.parse(t)}catch{console.warn("Can't parse namespace list from storage")}}setNamespaces(e){this.list=e;try{this.ss.storage.setItem(Cl,JSON.stringify(e))}catch{console.warn("Can't set namespace list to storage")}}getNamespaces(){return this.list}setCurrent(e){this.ss.storage.setItem(Dl,e),Be=e}static{this.\u0275fac=function(t){return new(t||i)(Ce(wl),Ce(lt),Ce(Ke))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var Sl="MDX2JSON",Al="MDX2JSON",xl=(()=>{class i{constructor(e,t,r,a){this.route=e,this.router=t,this.http=r,this.es=a,this.firstRun=!0,this.dashboardList=new Map,this.username="",this.withCredentialsHeaders={withCredentials:!0,headers:new Xe({"Accept-Language":"en-US"})},this.withoutCredentialsHeaders={headers:new Xe({"Accept-Language":"en-US"})},this.withCredentialsTimeoutHeaders={withCredentials:!0,headers:new Xe({timeout:oi.const.timeout.toString(),"Accept-Language":"en-US"})},this.withoutCredentialsTimeoutHeaders={headers:new Xe({timeout:oi.const.timeout.toString(),"Accept-Language":"en-US"})}}get configDefaultApp(){return this.mainConfig?.defaultApp||""}get url(){let e="",t=localStorage.getItem("connectorRedirect");return t&&(e=t),e+"../"+Sl+"/"}gotoLoginPage(){}getDashboards(){let e=Be.toLowerCase();return this.dashboardList.has(e)?Se(JSON.parse(this.dashboardList.get(e)||"{}")):this.http.post(this.url+"Dashboards?Namespace="+Be,{Folder:""},{withCredentials:!0}).pipe(Ge(t=>{this.dashboardList.set(Be.toLowerCase(),JSON.stringify(t))}),this.handleError())}getKPIData(e,t,r=!1){return ct(this.http.post(this.url+"KPI?Namespace="+Be,{KPI:e,FILTERS:t,Drillthrough:r?1:void 0},this.withCredentialsTimeoutHeaders))}getPivotData(e){return ct(this.http.post(this.url+"DataSource?Namespace="+Be,{DataSource:e},this.withCredentialsTimeoutHeaders))}getTermList(e){return this.http.post(this.url+"TermList?Namespace="+Be,{TermList:e},this.withCredentialsTimeoutHeaders).toPromise()}execMDX(e){return ht(this,null,function*(){let t=e.split(" ");return t&&t.length!==0&&t[0].toUpperCase()==="DRILLTHROUGH"?this.execMDXDrillthrough(e,Be):ct(this.http.post(this.url+"MDX?Namespace="+Be,{MDX:e},this.withCredentialsTimeoutHeaders))})}execMDXDrillthrough(e,t){return ht(this,null,function*(){return ct(this.http.post(this.url+"MDXDrillthrough?Namespace="+t,{MDX:e},this.withCredentialsTimeoutHeaders))})}getWidgets(e){return ct(this.http.post(this.url+"Dashboard?Namespace="+Be,{Dashboard:e},ze(we({},this.withCredentialsTimeoutHeaders),{"Content-Type":"application/json"})).pipe(this.handleError()))}handleError(){return At(e=>{if(e.status===401||e.status===403)return this.router.navigateByUrl("/login?from="+encodeURIComponent(this.router.url)),Se();let t=e.message;throw e?.error?.summary&&(t=e?.error?.summary),this.es.show(t),e})}searchFilters(e,t,r,a){let l={DataSource:t,Values:1,Search:e};return r&&r.length&&(l.RelatedFilters=r),a&&a.length&&(l.RequestedFilters=a),ct(this.http.post(this.url+"Filters?Namespace="+Be,l,this.withCredentialsTimeoutHeaders))}getPivotVariables(e){return this.http.get(this.url+"PivotVariables/"+e+"?Namespace="+Be,this.withCredentialsTimeoutHeaders).toPromise()}getFile(e){return this.http.get(e,{responseType:"text"}).toPromise()}getJSONFile(e){return this.http.get(e,{responseType:"json"}).toPromise()}loadMainConfig(){return this.http.get("config.json",{headers:new Xe({withCredentials:"false"})}).toPromise().then(e=>{this.mainConfig=e;try{e&&e.endpoints&&e.endpoints.mdx2json&&(Sl=e.endpoints.mdx2json.replace(/\//ig,"").replace(/ /g,""),Al=e.namespace.replace(/\//ig,"").replace(/ /g,""))}catch{console.error('Incorrect config in file "config.json"')}})}loadConfig(e){return this.http.get("configs/"+e.toLowerCase()+".json",{headers:new Xe({withCredentials:"false"})}).toPromise()}loadAddons(){return ht(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(){let e=location.hash.replace("#/","").split("?")[1];return this.http.get("dswoauth/check"+(e?`?${e}`:""),this.withoutCredentialsHeaders).toPromise()}signIn(e,t,r,a){return this.username=e,this.http.get(a?a+"Test?Namespace="+r:this.url+"Test?Namespace="+r,{withCredentials:!0,headers:new Xe({timeout:oi.const.timeout.toString(),Authorization:"Basic "+btoa(e+":"+t)})}).toPromise()}signOut(){this.firstRun=!0;let e=a=>{document.cookie=a+"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;"},t=(a,l,_)=>{let O=new Date;O.setTime(O.getTime()+24*60*60*1e3*_),document.cookie=a+"="+l+";path=/;expires="+O.toUTCString()};this.username="";try{localStorage.userName="",sessionStorage.userName=""}catch{}let r=()=>{t("CSPWSERVERID","",-1),t("CacheLoginToken","",-1),t("CSPSESSIONID-SP-80-UP-","",-1),t("CSPSESSIONID-SP-80-UP-MDX2JSON-","",-1),this.router.navigateByUrl("/login")};return this.http.get(this.url+`Logout?Namespace=${Be}`,this.withCredentialsHeaders).toPromise().then(()=>{r()}).catch(()=>{r()})}execAction(e,t){return this.http.post(this.url+"Action/"+t+"/"+e+"?Namespace="+Be,{},this.withCredentialsTimeoutHeaders).toPromise()}getSettings(e){return ht(this,null,function*(){return ct(this.http.get(this.url+"Test?Namespace="+e,this.withCredentialsTimeoutHeaders))})}requestListOfDataSources(e){return ht(this,null,function*(){return ct(this.http.post(this.url+`DataSourceList/${e}?Namespace=`+Be,{},this.withCredentialsTimeoutHeaders))})}saveWidget(e,t,r){return ht(this,null,function*(){return ct(this.http.post(this.url+"saveWidget?Namespace="+Be,{key:r||"",Dashboard:e,WidgetData:t},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}deleteWidget(e,t){return ht(this,null,function*(){return ct(this.http.post(this.url+"deleteWidget?Namespace="+Be,{key:t||"",Dashboard:e},this.withCredentialsTimeoutHeaders).pipe(this.handleError()))})}static{this.\u0275fac=function(t){return new(t||i)(Ce(Ke),Ce(lt),Ce(Vr),Ce(ml))}}static{this.\u0275prov=De({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{ii as a,We as b,ju as c,Bu as d,_u as e,zu as f,Uu as g,$u as h,Qo as i,_r as j,Hu as k,sp as l,rp as m,fa as n,xp as o,lc as p,wp as q,dc as r,bi as s,Ct as t,Ke as u,Hc as v,lt as w,Hp as x,Gp as y,Wp as z,tu as A,Vp as B,Xp as C,qp as D,Bn as E,oi as F,ml as G,xl as H,bl as I,wl as J,Be as K,cf as L}; diff --git a/dist/index.html b/dist/index.html index 36f0f96c..878eb949 100644 --- a/dist/index.html +++ b/dist/index.html @@ -41,5 +41,5 @@ - + diff --git a/dist/main-NBRBJX77.js b/dist/main-IIXP357H.js similarity index 99% rename from dist/main-NBRBJX77.js rename to dist/main-IIXP357H.js index 807897ef..e47ad628 100644 --- a/dist/main-NBRBJX77.js +++ b/dist/main-IIXP357H.js @@ -1,4 +1,4 @@ -import{a as nd,b as Le,c as sd,d as rd,e as id,f as pd,g as Yl,i as fd}from"./chunk-SAG3WZA7.js";import{a as ai}from"./chunk-RU73HBGW.js";import{a as hn}from"./chunk-23TAPEHU.js";import{b as cd}from"./chunk-WNOAMV4K.js";import{b as ld,d as hd,f as lr}from"./chunk-M4JSR4XG.js";import{a as Vo}from"./chunk-NHWJ6QQD.js";import{a as G,b as pn,c as oi,d as Zn,e as ud,f as $e,h as Jn,k as ar,l as Xl,m as qo}from"./chunk-GOV7BL6D.js";import{a as Lv}from"./chunk-HCCYM72S.js";import"./chunk-3TBNLEJ6.js";import{a as or}from"./chunk-MDOQS4TE.js";import{a as Tt}from"./chunk-G7BOERRR.js";import{a as Xp}from"./chunk-QTANEDSU.js";import{a as ir}from"./chunk-UJWY6PMO.js";import{a as od,b as ad}from"./chunk-MGBUQL4E.js";import{a as dd}from"./chunk-S2V6X7EW.js";import{a as Yp,c as $o,d as Yn,e as Kn,f as Kp,g as Zp,h as Jp,i as ed,j as un,k as td}from"./chunk-BCYEWSDA.js";import{A as Gp,B as Ql,C as Qp,D as Oo,E as Xn,F as Ae,G as sr,H as At,I as rr,J as ln,K as dt,L as cn,b as Lp,c as Bo,d as tr,g as nr,i as Fp,j as Bp,k as Ro,l as Rp,m as Op,n as $p,o as Vp,p as qp,q as ii,s as Up,t as Hp,u as on,v as Wp,w as an,x as jp,y as zp,z as Gl}from"./chunk-5MYX3VUL.js";import{A as lp,Aa as Ep,Ab as jl,B as cp,Cb as pe,Cc as Pp,Db as Cp,Ea as sn,Eb as Qn,F as Ao,Fb as zt,Fc as Mo,Gb as Gt,Gc as Lo,Hb as B,Hc as Dp,Ia as Sp,Ib as R,Ja as Wl,Jb as ge,Jc as zl,K as To,Kc as Fo,Mb as Po,Mc as Mp,Nb as Ce,Q as up,R as hp,Rb as J,Sb as ne,T as pp,U as Z,Vb as ri,Vc as Oe,W as dp,X as nn,Xb as ut,Yb as ht,Zb as pt,_a as ko,aa as Ze,ab as k,ac as Do,bb as M,bc as ve,c as ip,cc as Qt,dc as rn,ea as fp,eb as bp,ec as Cn,fa as De,fb as Io,fc as An,gc as Tn,ha as mp,hb as _p,hc as Ap,ib as xp,ic as Tp,jc as kp,k as op,ka as gp,kc as Ip,lc as Me,m as ap,pa as vp,qa as ce,qc as _e,r as _o,ra as ue,rb as ye,rc as xe,s as xo,ua as wp,uc as Np,wa as yp,xb as ee,y as Co,yb as No,za as si,zb as Je}from"./chunk-ZEAAPN4P.js";import{a as E,b as be,c as rp,e as Dv,f as Mv,h as Gn}from"./chunk-MG3ERZGY.js";var md=(()=>{class n{constructor(t){this.el=t}onReturnPressed(t){t.preventDefault();let s=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);s&&s.focus()}static{this.\u0275fac=function(s){return new(s||n)(M(sn))}}static{this.\u0275dir=mp({type:n,selectors:[["","dswFocusNext",""]],hostBindings:function(s,r){s&1&&J("keydown.enter",function(o){return r.onReturnPressed(o)})},standalone:!0})}}return n})();var IC=Mv(Lv());var yh={};Dv(yh,{JitCompilerFactory:()=>El,VERSION:()=>CC,platformBrowserDynamic:()=>AC,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>$g,\u0275platformCoreDynamic:()=>Og});var gd=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Cr=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(gd.lastIndex=0;i=gd.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}},Yo=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 Ec(e),this._listContexts.push(s));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!Yo.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 rs=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(rs||{}),Qu=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Qu||{}),hi=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(hi||{}),vd={name:"custom-elements"},wd={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 Fv(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function Bv(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 Rv(n){let e=Fv(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>Bv(s)):[];return e.concat(...t)}function Xu(n){return n?Cr.parse(n).map(Rv):[]}var Ko;function Ov(n){return Uv(qv(n.nodes).join("")+`[${n.meaning}]`)}function $v(n,e){return n.id||um(n,e)}function um(n,e){let t=new bc(e),s=n.nodes.map(r=>r.visit(t,null));return hm(s.join(""),n.meaning)}var Zo=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(", ")}`}},Vv=new Zo;function qv(n){return n.map(e=>e.visit(Vv,null))}var bc=class extends Zo{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,t){return this.preservePlaceholders?super.visitPlaceholder(e,t):``}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}};function Uv(n){Ko??=new TextEncoder;let e=[...Ko.encode(n)],t=jv(e,Yu.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 Hv(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 yd(n){Ko??=new TextEncoder;let e=Ko.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=Ed(t,e.length,0),r=Ed(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+=yd(e)),BigInt.asUintN(63,t).toString()}function Ed(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=Sd(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)),Sd(s,r,t)[2]}function Sd(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 Yu=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(Yu||{});function cr(n,e){return Wv(n,e)[1]}function Wv(n,e){let t=(n&65535)+(e&65535),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|t&65535]}function Kl(n,e){return n<>>32-e}function jv(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function zv(n,e,t){let s=0;if(t===Yu.Big)for(let r=0;r<4;r++)s+=bd(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=bd(n,e+r)<<8*r;return s}var pm=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(pm||{}),Jo=class{constructor(e=pm.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||{}),wn=class extends Jo{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},Ot=class extends Jo{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}};var uo=new wn(Wn.Dynamic),Bt=new wn(Wn.Inferred),Gv=new wn(Wn.Bool),UA=new wn(Wn.Int),Ku=new wn(Wn.Number),dm=new wn(Wn.String),HA=new wn(Wn.Function),yn=new wn(Wn.None),Ci=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(Ci||{}),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 Qv(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function fm(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 Et(this,e,null,t)}key(e,t,s){return new $n(this,e,t,s)}callFn(e,t,s){return new nt(this,e,null,t,s)}instantiate(e,t,s){return new Ti(this,e,t,s)}conditional(e,t=null,s){return new On(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(Jv,e)}nullishCoalesce(e,t){return new Q(A.NullishCoalesce,this,e,null,t)}toStmt(){return new Ut(this,null)}},Vt=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 ea(this.name,e,null,this.sourceSpan)}},Ar=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())}},W=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)}},ea=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(Bt,He.Final)}},Ai=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)}},Tr=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)&&yt(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)}},ta=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)&&fm(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&yt(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)}},Ti=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)&&yt(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)}},_c=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()))}},xc=class n{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??Cc(Qo(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Ns=class{constructor(e,t){this.text=e,this.sourceSpan=t}},br=class{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},Xv="|",_d="@@",Yv="\u241F",na=class n extends re{constructor(e,t,s,r,i){super(dm,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}${Xv}${e}`),this.metaBlock.customId&&(e=`${e}${_d}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Yv}${t}`}),xd(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+=`${_d}${hm(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),xd(r,s.text,this.getMessagePartSourceSpan(e))}},Qo=n=>n.replace(/\\/g,"\\\\"),Kv=n=>n.replace(/^:/,"\\:"),Zv=n=>n.replace(/:/g,"\\:"),Cc=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function xd(n,e,t){return n===""?{cooked:e,raw:Cc(Kv(Qo(e))),range:t}:{cooked:`:${n}:${e}`,raw:Cc(`:${Zv(Qo(n))}:${Qo(e)}`),range:t}}var Rs=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 On=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)&&Qv(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 ki=class n extends re{constructor(e,t){super(Gv,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)}},Be=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)}},Mn=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 Ni)&&yt(this.params,e.params)&&yt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Ni(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)}},Os=class n extends re{constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof n)||!yt(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)?yt(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,Bt,t,this.sourceSpan)}},kr=class n extends re{constructor(e,t,s,r,i=!0){super(s||Ku,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)}},Et=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 Tr(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},$n=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 Ai(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},qt=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&&yt(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)}},Ir=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)}},Yt=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&&yt(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 Ii=new je(null,null,null),Jv=new je(null,Bt,null),He=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}(He||{}),Ac=class{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},sa=class extends Ac{constructor(e){super("",!0,!0),this.tags=e}toString(){return rw(this.tags)}},$s=class{constructor(e=He.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 $s{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)}},Ni=class n extends $s{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&&yt(this.params,e.params)&&yt(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},Ut=class n extends $s{constructor(e,t,s){super(He.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 $s{constructor(e,t=null,s){super(He.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)}},ra=class n extends $s{constructor(e,t,s=[],r,i){super(He.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&yt(this.trueCase,e.trueCase)&&yt(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function ew(n=[]){return new sa(n)}function H(n,e,t){return new Vt(n,e,t)}function T(n,e=null,t){return new Rs(n,null,e,t)}function We(n,e,t){return new Ot(n,e,t)}function ul(n){return new Ar(n)}function se(n,e,t){return new qt(n,e,t)}function st(n,e=null){return new Yt(n.map(t=>new Ir(t.key,t.value,t.quoted)),e,null)}function tw(n,e){return new ki(n,e)}function Gr(n,e,t,s,r){return new Mn(n,e,t,s,r)}function En(n,e,t,s){return new Os(n,e,t,s)}function hl(n,e,t,s,r){return new ra(n,e,t,s,r)}function nw(n,e,t,s){return new ta(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function sw(n,e,t,s,r){return new na(n,e,t,s,r)}function Cd(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 rw(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${Cd(n[0])} `;let e=`* +import{a as nd,b as Le,c as sd,d as rd,e as id,f as pd,g as Yl,i as fd}from"./chunk-Y3SGEOX4.js";import{a as ai}from"./chunk-RU73HBGW.js";import{a as hn}from"./chunk-23TAPEHU.js";import{b as cd}from"./chunk-PUB2DBEU.js";import{b as ld,d as hd,f as lr}from"./chunk-D7UFXRMJ.js";import{a as Vo}from"./chunk-NHWJ6QQD.js";import{a as G,b as pn,c as oi,d as Zn,e as ud,f as $e,h as Jn,k as ar,l as Xl,m as qo}from"./chunk-GOV7BL6D.js";import{a as Lv}from"./chunk-HCCYM72S.js";import"./chunk-OM7B3BIS.js";import{a as or}from"./chunk-MDOQS4TE.js";import{a as Tt}from"./chunk-G7BOERRR.js";import{a as Xp}from"./chunk-JBRBXPBH.js";import{a as ir}from"./chunk-O73WWIXQ.js";import{a as od,b as ad}from"./chunk-2ODAR4M4.js";import{a as dd}from"./chunk-V3PSYXBK.js";import{a as Yp,c as $o,d as Yn,e as Kn,f as Kp,g as Zp,h as Jp,i as ed,j as un,k as td}from"./chunk-VUYLTOWP.js";import{A as Gp,B as Ql,C as Qp,D as Oo,E as Xn,F as Ae,G as sr,H as At,I as rr,J as ln,K as dt,L as cn,b as Lp,c as Bo,d as tr,g as nr,i as Fp,j as Bp,k as Ro,l as Rp,m as Op,n as $p,o as Vp,p as qp,q as ii,s as Up,t as Hp,u as on,v as Wp,w as an,x as jp,y as zp,z as Gl}from"./chunk-ZHVSJD4N.js";import{A as lp,Aa as Ep,Ab as jl,B as cp,Cb as pe,Cc as Pp,Db as Cp,Ea as sn,Eb as Qn,F as Ao,Fb as zt,Fc as Mo,Gb as Gt,Gc as Lo,Hb as B,Hc as Dp,Ia as Sp,Ib as R,Ja as Wl,Jb as ge,Jc as zl,K as To,Kc as Fo,Mb as Po,Mc as Mp,Nb as Ce,Q as up,R as hp,Rb as J,Sb as ne,T as pp,U as Z,Vb as ri,Vc as Oe,W as dp,X as nn,Xb as ut,Yb as ht,Zb as pt,_a as ko,aa as Ze,ab as k,ac as Do,bb as M,bc as ve,c as ip,cc as Qt,dc as rn,ea as fp,eb as bp,ec as Cn,fa as De,fb as Io,fc as An,gc as Tn,ha as mp,hb as _p,hc as Ap,ib as xp,ic as Tp,jc as kp,k as op,ka as gp,kc as Ip,lc as Me,m as ap,pa as vp,qa as ce,qc as _e,r as _o,ra as ue,rb as ye,rc as xe,s as xo,ua as wp,uc as Np,wa as yp,xb as ee,y as Co,yb as No,za as si,zb as Je}from"./chunk-ZEAAPN4P.js";import{a as E,b as be,c as rp,e as Dv,f as Mv,h as Gn}from"./chunk-MG3ERZGY.js";var md=(()=>{class n{constructor(t){this.el=t}onReturnPressed(t){t.preventDefault();let s=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);s&&s.focus()}static{this.\u0275fac=function(s){return new(s||n)(M(sn))}}static{this.\u0275dir=mp({type:n,selectors:[["","dswFocusNext",""]],hostBindings:function(s,r){s&1&&J("keydown.enter",function(o){return r.onReturnPressed(o)})},standalone:!0})}}return n})();var IC=Mv(Lv());var yh={};Dv(yh,{JitCompilerFactory:()=>El,VERSION:()=>CC,platformBrowserDynamic:()=>AC,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>$g,\u0275platformCoreDynamic:()=>Og});var gd=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Cr=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(gd.lastIndex=0;i=gd.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}},Yo=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 Ec(e),this._listContexts.push(s));for(let r=0;r0&&(!this.listContext||!this.listContext.alreadyMatched)&&(s=!Yo.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 rs=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(rs||{}),Qu=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Qu||{}),hi=function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n}(hi||{}),vd={name:"custom-elements"},wd={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 Fv(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function Bv(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 Rv(n){let e=Fv(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>Bv(s)):[];return e.concat(...t)}function Xu(n){return n?Cr.parse(n).map(Rv):[]}var Ko;function Ov(n){return Uv(qv(n.nodes).join("")+`[${n.meaning}]`)}function $v(n,e){return n.id||um(n,e)}function um(n,e){let t=new bc(e),s=n.nodes.map(r=>r.visit(t,null));return hm(s.join(""),n.meaning)}var Zo=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(", ")}`}},Vv=new Zo;function qv(n){return n.map(e=>e.visit(Vv,null))}var bc=class extends Zo{constructor(e){super(),this.preservePlaceholders=e}visitPlaceholder(e,t){return this.preservePlaceholders?super.visitPlaceholder(e,t):``}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.type}, ${t.join(", ")}}`}};function Uv(n){Ko??=new TextEncoder;let e=[...Ko.encode(n)],t=jv(e,Yu.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 Hv(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 yd(n){Ko??=new TextEncoder;let e=Ko.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=Ed(t,e.length,0),r=Ed(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+=yd(e)),BigInt.asUintN(63,t).toString()}function Ed(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=Sd(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)),Sd(s,r,t)[2]}function Sd(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 Yu=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(Yu||{});function cr(n,e){return Wv(n,e)[1]}function Wv(n,e){let t=(n&65535)+(e&65535),s=(n>>>16)+(e>>>16)+(t>>>16);return[s>>>16,s<<16|t&65535]}function Kl(n,e){return n<>>32-e}function jv(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function zv(n,e,t){let s=0;if(t===Yu.Big)for(let r=0;r<4;r++)s+=bd(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=bd(n,e+r)<<8*r;return s}var pm=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(pm||{}),Jo=class{constructor(e=pm.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||{}),wn=class extends Jo{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},Ot=class extends Jo{constructor(e,t,s=null){super(t),this.value=e,this.typeParams=s}visitType(e,t){return e.visitExpressionType(this,t)}};var uo=new wn(Wn.Dynamic),Bt=new wn(Wn.Inferred),Gv=new wn(Wn.Bool),UA=new wn(Wn.Int),Ku=new wn(Wn.Number),dm=new wn(Wn.String),HA=new wn(Wn.Function),yn=new wn(Wn.None),Ci=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(Ci||{}),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 Qv(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function fm(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 Et(this,e,null,t)}key(e,t,s){return new $n(this,e,t,s)}callFn(e,t,s){return new nt(this,e,null,t,s)}instantiate(e,t,s){return new Ti(this,e,t,s)}conditional(e,t=null,s){return new On(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(Jv,e)}nullishCoalesce(e,t){return new Q(A.NullishCoalesce,this,e,null,t)}toStmt(){return new Ut(this,null)}},Vt=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 ea(this.name,e,null,this.sourceSpan)}},Ar=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())}},W=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)}},ea=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(Bt,He.Final)}},Ai=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)}},Tr=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)&&yt(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)}},ta=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)&&fm(this.template.elements,e.template.elements,(t,s)=>t.text===s.text)&&yt(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)}},Ti=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)&&yt(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)}},_c=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()))}},xc=class n{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??Cc(Qo(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Ns=class{constructor(e,t){this.text=e,this.sourceSpan=t}},br=class{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},Xv="|",_d="@@",Yv="\u241F",na=class n extends re{constructor(e,t,s,r,i){super(dm,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}${Xv}${e}`),this.metaBlock.customId&&(e=`${e}${_d}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Yv}${t}`}),xd(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+=`${_d}${hm(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),xd(r,s.text,this.getMessagePartSourceSpan(e))}},Qo=n=>n.replace(/\\/g,"\\\\"),Kv=n=>n.replace(/^:/,"\\:"),Zv=n=>n.replace(/:/g,"\\:"),Cc=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function xd(n,e,t){return n===""?{cooked:e,raw:Cc(Kv(Qo(e))),range:t}:{cooked:`:${n}:${e}`,raw:Cc(`:${Zv(Qo(n))}:${Qo(e)}`),range:t}}var Rs=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 On=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)&&Qv(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 ki=class n extends re{constructor(e,t){super(Gv,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)}},Be=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)}},Mn=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 Ni)&&yt(this.params,e.params)&&yt(this.statements,e.statements)}isConstant(){return!1}visitExpression(e,t){return e.visitFunctionExpr(this,t)}toDeclStmt(e,t){return new Ni(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)}},Os=class n extends re{constructor(e,t,s,r){super(s,r),this.params=e,this.body=t}isEquivalent(e){return!(e instanceof n)||!yt(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)?yt(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,Bt,t,this.sourceSpan)}},kr=class n extends re{constructor(e,t,s,r,i=!0){super(s||Ku,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)}},Et=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 Tr(this.receiver,this.name,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},$n=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 Ai(this.receiver,this.index,e,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},qt=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&&yt(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)}},Ir=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)}},Yt=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&&yt(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 Ii=new je(null,null,null),Jv=new je(null,Bt,null),He=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}(He||{}),Ac=class{constructor(e,t,s){this.text=e,this.multiline=t,this.trailingNewline=s}toString(){return this.multiline?` ${this.text} `:this.text}},sa=class extends Ac{constructor(e){super("",!0,!0),this.tags=e}toString(){return rw(this.tags)}},$s=class{constructor(e=He.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 $s{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)}},Ni=class n extends $s{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&&yt(this.params,e.params)&&yt(this.statements,e.statements)}visitStatement(e,t){return e.visitDeclareFunctionStmt(this,t)}},Ut=class n extends $s{constructor(e,t,s){super(He.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 $s{constructor(e,t=null,s){super(He.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)}},ra=class n extends $s{constructor(e,t,s=[],r,i){super(He.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&yt(this.trueCase,e.trueCase)&&yt(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function ew(n=[]){return new sa(n)}function H(n,e,t){return new Vt(n,e,t)}function T(n,e=null,t){return new Rs(n,null,e,t)}function We(n,e,t){return new Ot(n,e,t)}function ul(n){return new Ar(n)}function se(n,e,t){return new qt(n,e,t)}function st(n,e=null){return new Yt(n.map(t=>new Ir(t.key,t.value,t.quoted)),e,null)}function tw(n,e){return new ki(n,e)}function Gr(n,e,t,s,r){return new Mn(n,e,t,s,r)}function En(n,e,t,s){return new Os(n,e,t,s)}function hl(n,e,t,s,r){return new ra(n,e,t,s,r)}function nw(n,e,t,s){return new ta(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function sw(n,e,t,s,r){return new na(n,e,t,s,r)}function Cd(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 rw(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${Cd(n[0])} `;let e=`* `;for(let t of n)e+=" *",e+=Cd(t).replace(/\n/g,` * `),e+=` `;return e+=" ",e}var iw="_c",Ad=H(""),ow={},aw=50,ia=class n extends re{constructor(e){super(e.type),this.resolved=e,this.shared=!1,this.original=e}visitExpression(e,t){return t===ow?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}},oa=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&&!Td(e)||e instanceof ia)return e;let s=_r.INSTANCE.keyOf(e),r=this.literals.get(s),i=!1;if(r||(r=new ia(e),this.literals.set(s,r),i=!0),!i&&!r.shared||i&&t){let o=this.freshName(),a,l;this.isClosureCompilerEnabled&&Td(e)?(a=H(o).set(new Mn([],[new ot(e)])),l=H(o).callFn([])):(a=H(o).set(e),l=H(o)),this.statements.push(a.toDeclStmt(Bt,He.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 qt){let t=e.entries.map(r=>r.isConstant()?r:Ad),s=_r.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:Ad,quoted:r.quoted}))),s=_r.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 Os;for(let o of this.statements)if(r&&o instanceof Xe&&o.value?.isEquivalent(e)||!r&&o instanceof Ni&&e instanceof Mn&&e.isEquivalent(o))return H(o.name);let i=s?this.uniqueName(t):t;return this.statements.push(e instanceof Mn?e.toDeclStmt(i,He.Final):new Xe(i,e,Bt,He.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(lw).map(u=>new Be(u.name,uo)),l=En(a,s(o),Bt),c=this.freshName();this.statements.push(H(c).set(l).toDeclStmt(Bt,He.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(iw)}},_r=class n{static{this.INSTANCE=new n}keyOf(e){if(e instanceof je&&typeof e.value=="string")return`"${e.value}"`;if(e instanceof je)return String(e.value);if(e instanceof qt){let t=[];for(let s of e.entries)t.push(this.keyOf(s));return`[${t.join(",")}]`}else if(e instanceof Yt){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 Rs)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Vt)return`read(${e.name})`;if(e instanceof Ar)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};function lw(n){return n instanceof Vt}function Td(n){return n instanceof je&&typeof n.value=="string"&&n.value.length>=aw}var f="@angular/core",d=(()=>{class n{static{this.NEW_METHOD="factory"}static{this.TRANSFORM_METHOD="transform"}static{this.PATCH_DEPS="patchedDeps"}static{this.core={name:null,moduleName:f}}static{this.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:f}}static{this.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:f}}static{this.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:f}}static{this.element={name:"\u0275\u0275element",moduleName:f}}static{this.elementStart={name:"\u0275\u0275elementStart",moduleName:f}}static{this.elementEnd={name:"\u0275\u0275elementEnd",moduleName:f}}static{this.advance={name:"\u0275\u0275advance",moduleName:f}}static{this.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:f}}static{this.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:f}}static{this.attribute={name:"\u0275\u0275attribute",moduleName:f}}static{this.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:f}}static{this.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:f}}static{this.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:f}}static{this.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:f}}static{this.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:f}}static{this.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:f}}static{this.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:f}}static{this.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:f}}static{this.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:f}}static{this.classProp={name:"\u0275\u0275classProp",moduleName:f}}static{this.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:f}}static{this.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:f}}static{this.elementContainer={name:"\u0275\u0275elementContainer",moduleName:f}}static{this.styleMap={name:"\u0275\u0275styleMap",moduleName:f}}static{this.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:f}}static{this.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:f}}static{this.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:f}}static{this.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:f}}static{this.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:f}}static{this.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:f}}static{this.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:f}}static{this.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:f}}static{this.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:f}}static{this.classMap={name:"\u0275\u0275classMap",moduleName:f}}static{this.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:f}}static{this.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:f}}static{this.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:f}}static{this.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:f}}static{this.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:f}}static{this.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:f}}static{this.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:f}}static{this.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:f}}static{this.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:f}}static{this.styleProp={name:"\u0275\u0275styleProp",moduleName:f}}static{this.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:f}}static{this.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:f}}static{this.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:f}}static{this.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:f}}static{this.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:f}}static{this.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:f}}static{this.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:f}}static{this.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:f}}static{this.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:f}}static{this.nextContext={name:"\u0275\u0275nextContext",moduleName:f}}static{this.resetView={name:"\u0275\u0275resetView",moduleName:f}}static{this.templateCreate={name:"\u0275\u0275template",moduleName:f}}static{this.defer={name:"\u0275\u0275defer",moduleName:f}}static{this.deferWhen={name:"\u0275\u0275deferWhen",moduleName:f}}static{this.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:f}}static{this.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:f}}static{this.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:f}}static{this.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:f}}static{this.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:f}}static{this.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:f}}static{this.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:f}}static{this.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:f}}static{this.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:f}}static{this.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:f}}static{this.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:f}}static{this.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:f}}static{this.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:f}}static{this.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:f}}static{this.conditional={name:"\u0275\u0275conditional",moduleName:f}}static{this.repeater={name:"\u0275\u0275repeater",moduleName:f}}static{this.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:f}}static{this.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:f}}static{this.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:f}}static{this.componentInstance={name:"\u0275\u0275componentInstance",moduleName:f}}static{this.text={name:"\u0275\u0275text",moduleName:f}}static{this.enableBindings={name:"\u0275\u0275enableBindings",moduleName:f}}static{this.disableBindings={name:"\u0275\u0275disableBindings",moduleName:f}}static{this.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:f}}static{this.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:f}}static{this.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:f}}static{this.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:f}}static{this.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:f}}static{this.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:f}}static{this.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:f}}static{this.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:f}}static{this.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:f}}static{this.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:f}}static{this.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:f}}static{this.restoreView={name:"\u0275\u0275restoreView",moduleName:f}}static{this.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:f}}static{this.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:f}}static{this.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:f}}static{this.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:f}}static{this.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:f}}static{this.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:f}}static{this.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:f}}static{this.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:f}}static{this.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:f}}static{this.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:f}}static{this.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:f}}static{this.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:f}}static{this.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:f}}static{this.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:f}}static{this.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:f}}static{this.hostProperty={name:"\u0275\u0275hostProperty",moduleName:f}}static{this.property={name:"\u0275\u0275property",moduleName:f}}static{this.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:f}}static{this.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:f}}static{this.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:f}}static{this.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:f}}static{this.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:f}}static{this.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:f}}static{this.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:f}}static{this.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:f}}static{this.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:f}}static{this.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:f}}static{this.i18n={name:"\u0275\u0275i18n",moduleName:f}}static{this.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:f}}static{this.i18nExp={name:"\u0275\u0275i18nExp",moduleName:f}}static{this.i18nStart={name:"\u0275\u0275i18nStart",moduleName:f}}static{this.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:f}}static{this.i18nApply={name:"\u0275\u0275i18nApply",moduleName:f}}static{this.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:f}}static{this.pipe={name:"\u0275\u0275pipe",moduleName:f}}static{this.projection={name:"\u0275\u0275projection",moduleName:f}}static{this.projectionDef={name:"\u0275\u0275projectionDef",moduleName:f}}static{this.reference={name:"\u0275\u0275reference",moduleName:f}}static{this.inject={name:"\u0275\u0275inject",moduleName:f}}static{this.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:f}}static{this.directiveInject={name:"\u0275\u0275directiveInject",moduleName:f}}static{this.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:f}}static{this.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:f}}static{this.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:f}}static{this.forwardRef={name:"forwardRef",moduleName:f}}static{this.resolveForwardRef={name:"resolveForwardRef",moduleName:f}}static{this.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:f}}static{this.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:f}}static{this.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:f}}static{this.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:f}}static{this.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:f}}static{this.resolveBody={name:"\u0275\u0275resolveBody",moduleName:f}}static{this.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:f}}static{this.defineComponent={name:"\u0275\u0275defineComponent",moduleName:f}}static{this.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:f}}static{this.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:f}}static{this.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:f}}static{this.ViewEncapsulation={name:"ViewEncapsulation",moduleName:f}}static{this.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:f}}static{this.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:f}}static{this.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:f}}static{this.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:f}}static{this.defineDirective={name:"\u0275\u0275defineDirective",moduleName:f}}static{this.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:f}}static{this.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:f}}static{this.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:f}}static{this.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:f}}static{this.defineInjector={name:"\u0275\u0275defineInjector",moduleName:f}}static{this.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:f}}static{this.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:f}}static{this.ModuleWithProviders={name:"ModuleWithProviders",moduleName:f}}static{this.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:f}}static{this.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:f}}static{this.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:f}}static{this.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:f}}static{this.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:f}}static{this.definePipe={name:"\u0275\u0275definePipe",moduleName:f}}static{this.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:f}}static{this.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:f}}static{this.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:f}}static{this.setClassMetadata={name:"\u0275setClassMetadata",moduleName:f}}static{this.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:f}}static{this.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:f}}static{this.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:f}}static{this.viewQuery={name:"\u0275\u0275viewQuery",moduleName:f}}static{this.loadQuery={name:"\u0275\u0275loadQuery",moduleName:f}}static{this.contentQuery={name:"\u0275\u0275contentQuery",moduleName:f}}static{this.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:f}}static{this.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:f}}static{this.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:f}}static{this.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:f}}static{this.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:f}}static{this.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:f}}static{this.declareLet={name:"\u0275\u0275declareLet",moduleName:f}}static{this.storeLet={name:"\u0275\u0275storeLet",moduleName:f}}static{this.readContextLet={name:"\u0275\u0275readContextLet",moduleName:f}}static{this.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:f}}static{this.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:f}}static{this.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:f}}static{this.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:f}}static{this.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:f}}static{this.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:f}}static{this.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:f}}static{this.listener={name:"\u0275\u0275listener",moduleName:f}}static{this.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:f}}static{this.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:f}}static{this.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:f}}static{this.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:f}}static{this.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:f}}static{this.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:f}}static{this.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:f}}static{this.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:f}}static{this.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:f}}static{this.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:f}}static{this.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:f}}static{this.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:f}}static{this.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:f}}}return n})(),cw=/-+([a-z0-9])/g;function uw(n){return n.replace(cw,(...e)=>e[1].toUpperCase())}function hw(n,e){return mm(n,":",e)}function pw(n,e){return mm(n,".",e)}function mm(n,e,t){let s=n.indexOf(e);return s==-1?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function dw(n){return n===void 0?null:n}function fw(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 gm(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(gm).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(` @@ -36,4 +36,4 @@ ${e.map(t=>`"${t.sourceSpan.toString()}"`).join(` `.trim());if(n.some((t,s)=>e[s].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var uS=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function hS(n){return n.split(uS)[2]}var _u=class extends O{constructor(e,t){super(e,t)}},_f=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function pS(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),_f.has(n+"|"+e)||_f.has("*|"+e)}var dS=n=>(e,t)=>{let s=n.get(e)??e;return s instanceof gs&&(t instanceof Or&&s.i18n instanceof tt&&(t.previousMessage=s.i18n),s.i18n=t),t},sl=class{constructor(e=mn,t=!1,s=!1,r=Hw,i=!0,o=!i){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.containerBlocks=r,this.preserveSignificantWhitespace=i,this.retainEmptyTokens=o,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,t="",s){let{meaning:r,description:i,customId:o}=this._parseMetadata(t),l=iS(this.interpolationConfig,this.containerBlocks,this.retainEmptyTokens)(e,r,i,o,s);return this._setMessageId(l,t),this._setLegacyIds(l,t),l}visitAllWithErrors(e){let t=e.map(s=>s.visit(this,null));return new el(t,this._errors)}visitElement(e){let t;if(Bw(e)){this.hasI18nMeta=!0;let s=[],r={};for(let i of e.attrs)if(i.name===vm){let o=e.i18n||i.value,a=new Map,l=this.preserveSignificantWhitespace?e.children:gr(new tl(!1,a),e.children);t=this._generateI18nMessage(l,o,dS(a)),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(i.name.startsWith(jc)){let o=i.name.slice(jc.length);pS(e.name,o)?this._reportError(i,`Translating attribute '${o}' is disallowed for security reasons.`):r[o]=i.value}else s.push(i);if(Object.keys(r).length)for(let i of s){let o=r[i.name];o!==void 0&&i.value&&(i.i18n=this._generateI18nMessage([i],i.i18n||o))}this.keepI18nAttrs||(e.attrs=s)}return fe(this,e.children,t),e}visitExpansion(e,t){let s,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Or){let i=r.name;s=this._generateI18nMessage([e],r);let o=ym(s);o.name=i,t!==null&&(t.placeholderToMessage[i]=s)}else s=this._generateI18nMessage([e],t||r);return e.i18n=s,e}visitText(e){return e}visitAttribute(e){return e}visitComment(e){return e}visitExpansionCase(e){return e}visitBlock(e,t){return fe(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}_parseMetadata(e){return typeof e=="string"?gS(e):e instanceof tt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof tt&&t.id||$v(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Ov(e),um(e,this.preserveSignificantWhitespace)];else if(typeof t!="string"){let s=t instanceof tt?t:t instanceof Or?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new _u(e.sourceSpan,t))}},fS="|",mS="@@";function gS(n=""){let e,t,s;if(n=n.trim(),n){let r=n.indexOf(mS),i=n.indexOf(fS),o;[o,e]=r>-1?[n.slice(0,r),n.slice(r+2)]:[n,""],[t,s]=i>-1?[o.slice(0,i),o.slice(i+1)]:["",o]}return{customId:e,meaning:t,description:s}}function vS(n){let e=[];return n.description?e.push({tagName:"desc",text:n.description}):e.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&e.push({tagName:"meaning",text:n.meaning}),ew(e)}var wS="goog.getMsg";function yS(n,e,t,s){let r=SS(e),i=[v(r)];Object.keys(s).length&&(i.push(au(Ju(s,!0),!0)),i.push(au({original_code:st(Object.keys(s).map(l=>({key:ho(l),quoted:!0,value:e.placeholders[l]?v(e.placeholders[l].sourceSpan.toString()):v(e.placeholderToMessage[l].nodes.map(c=>c.sourceSpan.toString()).join(""))})))})));let o=t.set(H(wS).callFn(i)).toConstDecl();o.addLeadingComment(vS(e));let a=new Ut(n.set(t));return[o,a]}var xu=class{formatPh(e){return`{$${ho(e)}}`}visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){return Qm(e)}visitTagPlaceholder(e){return e.isVoid?this.formatPh(e.startName):`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitPlaceholder(e){return this.formatPh(e.name)}visitBlockPlaceholder(e){return`${this.formatPh(e.startName)}${e.children.map(t=>t.visit(this)).join("")}${this.formatPh(e.closeName)}`}visitIcuPlaceholder(e,t){return this.formatPh(e.name)}},ES=new xu;function SS(n){return n.nodes.map(e=>e.visit(ES,null)).join("")}function bS(n,e,t){let{messageParts:s,placeHolders:r}=_S(e),i=xS(e),o=r.map(c=>t[c.text]),a=sw(e,s,r,o,i),l=n.set(a);return[new Ut(l)]}var Cu=class{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Ns)this.pieces[this.pieces.length-1].text+=e.value;else{let t=new $(e.sourceSpan.fullStart,e.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details);this.pieces.push(new Ns(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new Ns(Qm(e),e.sourceSpan))}visitTagPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.isVoid||(e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan)))}visitPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan))}visitBlockPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.startName,e.startSourceSpan??e.sourceSpan)),e.children.forEach(t=>t.visit(this)),this.pieces.push(this.createPlaceholderPiece(e.closeName,e.endSourceSpan??e.sourceSpan))}visitIcuPlaceholder(e){this.pieces.push(this.createPlaceholderPiece(e.name,e.sourceSpan,this.placeholderToMessage[e.name]))}createPlaceholderPiece(e,t,s){return new br(ho(e,!1),t,s)}};function _S(n){let e=[],t=new Cu(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),CS(e)}function xS(n){let e=n.nodes[0],t=n.nodes[n.nodes.length-1];return new $(e.sourceSpan.fullStart,t.sourceSpan.end,e.sourceSpan.fullStart,e.sourceSpan.details)}function CS(n){let e=[],t=[];n[0]instanceof br&&e.push(lc(n[0].sourceSpan.start));for(let s=0;s{let y=m.has(w.name);return m.add(w.name),!y});let g=p.flatMap(w=>{let y=o.get(w.context);if(y===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[v(w.name),y]});u.i18nAttributesConfig=n.addConst(new qt(g))}for(let l of n.units)for(let c of l.create)if(c.kind===h.I18nStart){let u=a.get(c.root);if(u===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");c.messageIndex=u}}function sg(n,e,t,s){let r=[],i=new Map;for(let c of s.subMessages){let u=t.get(c),{mainVar:p,statements:m}=sg(n,e,t,u);r.push(...m);let g=i.get(u.messagePlaceholder)??[];g.push(p),i.set(u.messagePlaceholder,g)}PS(s,i),s.params=new Map([...s.params.entries()].sort());let o=H(n.pool.uniqueName(AS)),a=LS(n.pool,s.message.id,e,n.i18nUseExternalIds),l;if(s.needsPostprocessing||s.postprocessingParams.size>0){let c=Object.fromEntries([...s.postprocessingParams.entries()].sort()),u=Ju(c,!1),p=[];s.postprocessingParams.size>0&&p.push(au(u,!0)),l=m=>T(d.i18nPostprocess).callFn([m,...p])}return r.push(...DS(s.message,o,a,s.params,l)),{mainVar:o,statements:r}}function PS(n,e){for(let[t,s]of e)s.length===1?n.params.set(t,s[0]):(n.params.set(t,v(`${Cf}${TS}${t}${Cf}`)),n.postprocessingParams.set(t,se(s)))}function DS(n,e,t,s,r){let i=Object.fromEntries(s),o=[IS(e),hl(MS(),yS(e,n,t,i),bS(e,n,Ju(i,!1)))];return r&&o.push(new Ut(e.set(r(e)))),o}function MS(){return ul(H(xf)).notIdentical(v("undefined",dm)).and(H(xf))}function LS(n,e,t,s){let r,i=t;if(s){let o=Af("EXTERNAL_"),a=n.uniqueName(i);r=`${o}${Ei(e)}$$${a}`}else{let o=Af(i);r=n.uniqueName(o)}return H(r)}function FS(n){for(let e of n.units){let t=null,s=null,r=new Map,i=new Map,o=new Map;for(let a of e.create)switch(a.kind){case h.I18nStart:if(a.context===null)throw Error("I18n op should have its context set.");t=a;break;case h.I18nEnd:t=null;break;case h.IcuStart:if(a.context===null)throw Error("Icu op should have its context set.");s=a;break;case h.IcuEnd:s=null;break;case h.Text:if(t!==null)if(r.set(a.xref,t),i.set(a.xref,s),a.icuPlaceholder!==null){let l=fE(n.allocateXrefId(),a.icuPlaceholder,[a.initialValue]);S.replace(a,l),o.set(a.xref,l)}else S.remove(a);break}for(let a of e.update)switch(a.kind){case h.InterpolateText:if(!r.has(a.target))continue;let l=r.get(a.target),c=i.get(a.target),u=o.get(a.target),p=c?c.context:l.context,m=c?Ki.Postproccessing:Ki.Creation,g=[];for(let w=0;w0){let s=RS(t.localRefs);t.localRefs=n.addConst(s)}else t.localRefs=null;break}}function RS(n){let e=[];for(let t of n)e.push(v(t.name),v(t.target));return se(e)}function OS(n){for(let e of n.units){let t=Qe.HTML;for(let s of e.create)s.kind===h.ElementStart&&s.namespace!==t&&(S.insertBefore(oE(s.namespace),s),t=s.namespace)}}function $S(n){let e=[],t=0,s=0,r=0,i=0,o=0,a=null;for(;t0&&s===0&&r===0){let c=n.substring(i,t-1).trim();e.push(a,c),o=t,i=0,a=null}break}if(a&&i){let l=n.slice(i).trim();e.push(a,l)}return e}function rg(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function VS(n){let e=new Map;for(let t of n.units)for(let s of t.create)ms(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.create)if(s.kind===h.ExtractedAttribute&&s.bindingKind===N.Attribute&&Vm(s.expression)){let r=e.get(s.target);if(r!==void 0&&r.kind===h.Template&&r.templateKind===wt.Structural)continue;if(s.name==="style"){let i=$S(s.expression.value);for(let o=0;o{if(!(!(o instanceof Rn)||o.name!==null)){if(!r.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=r.get(o.xref)}})}function US(n,e,t){if(e.name===null)switch(e.kind){case Fe.Context:e.name=`ctx_r${t.index++}`;break;case Fe.Identifier:if(n.job.compatibility===St.TemplateDefinitionBuilder){let s=e.identifier==="ctx"?"i":"";e.name=`${e.identifier}_${s}r${++t.index}`}else e.name=`${e.identifier}_i${t.index++}`;break;default:e.name=`_r${++t.index}`;break}return e.name}function HS(n){return n.startsWith("--")?n:rg(n)}function Tf(n){let e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function WS(n){for(let e of n.units){for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&kf(t.handlerOps);kf(e.update)}}function kf(n){for(let e of n){if(e.kind!==h.Statement||!(e.statement instanceof Ut)||!(e.statement.expr instanceof $a))continue;let t=e.statement.expr.steps,s=!0;for(let r=e.next;r.kind!==h.ListEnd&&s;r=r.next)Ye(r,(i,o)=>{if(!bn(i))return i;if(s&&!(o&X.InChildOperation))switch(i.kind){case I.NextContext:i.steps+=t,S.remove(e),s=!1;break;case I.GetCurrentView:case I.Reference:case I.ContextLetReference:s=!1;break}})}}var jS="ng-container";function zS(n){for(let e of n.units){let t=new Set;for(let s of e.create)s.kind===h.ElementStart&&s.tag===jS&&(s.kind=h.ContainerStart,t.add(s.xref)),s.kind===h.ElementEnd&&t.has(s.xref)&&(s.kind=h.ContainerEnd)}}function GS(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an element-like target.");return t}function QS(n){let e=new Map;for(let t of n.units)for(let s of t.create)ms(s)&&e.set(s.xref,s);for(let t of n.units)for(let s of t.create)(s.kind===h.ElementStart||s.kind===h.ContainerStart)&&s.nonBindable&&S.insertAfter(rE(s.xref),s),(s.kind===h.ElementEnd||s.kind===h.ContainerEnd)&&GS(e,s.xref).nonBindable&&S.insertBefore(iE(s.xref),s)}function XS(n){for(let e of n.units)for(let t of e.ops())Ne(t,s=>{if(!(s instanceof Q)||s.operator!==A.NullishCoalesce)return s;let r=new Zt(s.lhs.clone(),n.allocateXrefId()),i=new Un(r.xref);return new On(new Q(A.And,new Q(A.NotIdentical,r,Ii),new Q(A.NotIdentical,i,new je(void 0))),i.clone(),s.rhs)},X.None)}function Nn(n){return e=>e.kind===n}function _i(n,e){return t=>t.kind===n&&e===t.expression instanceof Ee}function YS(n){return n.kind===h.Listener&&!(n.hostListener&&n.isAnimationListener)||n.kind===h.TwoWayListener}function KS(n){return(n.kind===h.Property||n.kind===h.TwoWayProperty)&&!(n.expression instanceof Ee)}var ZS=[{test:n=>n.kind===h.Listener&&n.hostListener&&n.isAnimationListener},{test:YS}],JS=[{test:Nn(h.StyleMap),transform:rl},{test:Nn(h.ClassMap),transform:rl},{test:Nn(h.StyleProp)},{test:Nn(h.ClassProp)},{test:_i(h.Attribute,!0)},{test:_i(h.Property,!0)},{test:KS},{test:_i(h.Attribute,!1)}],eb=[{test:_i(h.HostProperty,!0)},{test:_i(h.HostProperty,!1)},{test:Nn(h.Attribute)},{test:Nn(h.StyleMap),transform:rl},{test:Nn(h.ClassMap),transform:rl},{test:Nn(h.StyleProp)},{test:Nn(h.ClassProp)}],If=new Set([h.Listener,h.TwoWayListener,h.StyleMap,h.ClassMap,h.StyleProp,h.ClassProp,h.Property,h.TwoWayProperty,h.HostProperty,h.Attribute]);function tb(n){for(let e of n.units){Nf(e.create,ZS);let t=e.job.kind===x.Host?eb:JS;Nf(e.update,t)}}function Nf(n,e){let t=[],s=null;for(let r of n){let i=Ba(r)?r.target:null;(!If.has(r.kind)||i!==s&&s!==null&&i!==null)&&(S.insertBefore(Pf(t,e),r),t=[],s=null),If.has(r.kind)&&(t.push(r),S.remove(r),s=i??s)}n.push(Pf(t,e))}function Pf(n,e){let t=Array.from(e,()=>new Array);for(let s of n){let r=e.findIndex(i=>i.test(s));t[r].push(s)}return t.flatMap((s,r)=>{let i=e[r].transform;return i?i(s):s})}function rl(n){return n.slice(n.length-1)}function nb(n){for(let e of n.units){let t=dh(e);for(let s of e.ops())switch(s.kind){case h.Binding:let r=rb(t,s.target);sb(s.name)&&r.kind===h.Projection&&S.remove(s);break}}}function sb(n){return n.toLowerCase()==="select"}function rb(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an slottable target.");return t}function ib(n){for(let e of n.units)ob(e)}function ob(n){for(let e of n.update)Ye(e,(t,s)=>{if(bn(t)&&t.kind===I.PipeBinding){if(s&X.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(n.job.compatibility){if(e.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");ab(n,e.target,t)}else n.create.push(Hm(t.target,t.targetSlot,t.name))}})}function ab(n,e,t){for(let s=n.create.head.next;s.kind!==h.ListEnd;s=s.next){if(!Kr(s)||s.xref!==e)continue;for(;s.next.kind===h.Pipe;)s=s.next;let r=Hm(t.target,t.targetSlot,t.name);S.insertBefore(r,s.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${t.name}`)}function lb(n){for(let e of n.units)for(let t of e.update)Ne(t,s=>!(s instanceof Gs)||s.args.length<=4?s:new Ua(s.target,s.targetSlot,s.name,se(s.args),s.args.length),X.None)}function cb(n){ig(n.root,0)}function ig(n,e){let t=null;for(let s of n.create)switch(s.kind){case h.I18nStart:s.subTemplateIndex=e===0?null:e,t=s;break;case h.I18nEnd:t.subTemplateIndex===null&&(e=0),t=null;break;case h.Template:e=cc(n.job.views.get(s.xref),t,s.i18nPlaceholder,e);break;case h.RepeaterCreate:let r=n.job.views.get(s.xref);e=cc(r,t,s.i18nPlaceholder,e),s.emptyView!==null&&(e=cc(n.job.views.get(s.emptyView),t,s.emptyI18nPlaceholder,e));break}return e}function cc(n,e,t,s){if(t!==void 0){if(e===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");s++,ub(n,e)}return ig(n,s)}function ub(n,e){if(n.create.head.next?.kind!==h.I18nStart){let t=n.job.allocateXrefId();S.insertAfter(vl(t,e.message,e.root,null),n.create.head),S.insertBefore(wl(t,null),n.create.tail)}}function hb(n){for(let e of n.units)for(let t of e.ops())Ye(t,s=>{if(!(s instanceof zs)||s.body===null)return;let r=new Au(s.args.length);s.fn=n.pool.getSharedConstant(r,s.body),s.body=null})}var Au=class extends _r{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof $r?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){let s=[];for(let i=0;ii instanceof $r?H("a"+i.index):i,X.None);return new Xe(e,new Os(s,r),void 0,He.Final)}};function pb(n){for(let e of n.units)for(let t of e.update)Ne(t,(s,r)=>r&X.InChildOperation?s:s instanceof qt?db(s):s instanceof Yt?fb(s):s,X.None)}function db(n){let e=[],t=[];for(let s of n.entries)if(s.isConstant())e.push(s);else{let r=t.length;t.push(s),e.push(new $r(r))}return new zs(se(e),t)}function fb(n){let e=[],t=[];for(let s of n.entries)if(s.value.isConstant())e.push(s);else{let r=t.length;t.push(s.value),e.push(new Ir(s.key,new $r(r),s.quoted))}return new zs(st(e),t)}function mb(n,e,t,s,r){return yl(d.element,n,e,t,s,r)}function gb(n,e,t,s,r){return yl(d.elementStart,n,e,t,s,r)}function yl(n,e,t,s,r,i){let o=[v(e)];return t!==null&&o.push(v(t)),r!==null?o.push(v(s),v(r)):s!==null&&o.push(v(s)),z(n,o,i)}function vb(n){return z(d.elementEnd,[],n)}function wb(n,e,t,s){return yl(d.elementContainerStart,n,null,e,t,s)}function yb(n,e,t,s){return yl(d.elementContainer,n,null,e,t,s)}function Eb(){return z(d.elementContainerEnd,[],null)}function Sb(n,e,t,s,r,i,o,a){let l=[v(n),e,v(t),v(s),v(r),v(i)];for(o!==null&&(l.push(v(o)),l.push(T(d.templateRefExtractor)));l[l.length-1].isEquivalent(Ii);)l.pop();return z(d.templateCreate,l,a)}function bb(){return z(d.disableBindings,[],null)}function _b(){return z(d.enableBindings,[],null)}function xb(n,e,t,s,r){let i=[v(n),e];return t!==null&&(i.push(v(!1)),i.push(T(t))),z(s?d.syntheticHostListener:d.listener,i,r)}function Df(n,e){return T(d.twoWayBindingSet).callFn([n,e])}function Cb(n,e,t){return z(d.twoWayListener,[v(n),e],t)}function Ab(n,e){return z(d.pipe,[v(n),v(e)],null)}function Tb(){return z(d.namespaceHTML,[],null)}function kb(){return z(d.namespaceSVG,[],null)}function Ib(){return z(d.namespaceMathML,[],null)}function Nb(n,e){return z(d.advance,n>1?[v(n)]:[],e)}function Pb(n){return T(d.reference).callFn([v(n)])}function Db(n){return T(d.nextContext).callFn(n===1?[]:[v(n)])}function Mb(){return T(d.getCurrentView).callFn([])}function Lb(n){return T(d.restoreView).callFn([n])}function Fb(n){return T(d.resetView).callFn([n])}function Bb(n,e,t){let s=[v(n,null)];return e!==""&&s.push(v(e)),z(d.text,s,t)}function Rb(n,e,t,s,r,i,o,a,l,c){let u=[v(n),v(e),t??v(null),v(s),v(r),v(i),o??v(null),a??v(null),l?T(d.deferEnableTimerScheduling):v(null)],p;for(;(p=u[u.length-1])!==null&&p instanceof je&&p.value===null;)u.pop();return z(d.defer,u,c)}var Ob=new Map([[he.Idle,[d.deferOnIdle,d.deferPrefetchOnIdle]],[he.Immediate,[d.deferOnImmediate,d.deferPrefetchOnImmediate]],[he.Timer,[d.deferOnTimer,d.deferPrefetchOnTimer]],[he.Hover,[d.deferOnHover,d.deferPrefetchOnHover]],[he.Interaction,[d.deferOnInteraction,d.deferPrefetchOnInteraction]],[he.Viewport,[d.deferOnViewport,d.deferPrefetchOnViewport]]]);function $b(n,e,t,s){let r=Ob.get(n);if(r===void 0)throw new Error(`Unable to determine instruction for trigger ${n}`);let i=t?r[1]:r[0];return z(i,e.map(o=>v(o)),s)}function Vb(n){return z(d.projectionDef,n?[n]:[],null)}function qb(n,e,t,s,r,i,o){let a=[v(n)];return(e!==0||t!==null||s!==null)&&(a.push(v(e)),t!==null&&a.push(t),s!==null&&(t===null&&a.push(v(null)),a.push(H(s),v(r),v(i)))),z(d.projection,a,o)}function Ub(n,e,t,s){let r=[v(n),v(e)];return t!==null&&r.push(v(t)),z(d.i18nStart,r,s)}function Hb(n,e,t,s,r,i,o,a,l,c,u,p,m,g){let w=[v(n),H(e),v(t),v(s),v(r),v(i),o];return(a||l!==null)&&(w.push(v(a)),l!==null&&(w.push(H(l),v(c),v(u)),(p!==null||m!==null)&&w.push(v(p)),m!==null&&w.push(v(m)))),z(d.repeaterCreate,w,g)}function Wb(n,e){return z(d.repeater,[n],e)}function jb(n,e,t){return z(n?d.deferPrefetchWhen:d.deferWhen,[e],t)}function zb(n,e){return z(d.declareLet,[v(n)],e)}function Gb(n,e){return T(d.storeLet).callFn([n],e)}function Qb(n){return T(d.readContextLet).callFn([v(n)])}function Xb(n,e,t,s){let r=[v(n),v(e)];return t&&r.push(v(t)),z(d.i18n,r,s)}function Yb(n){return z(d.i18nEnd,[],n)}function Kb(n,e){let t=[v(n),v(e)];return z(d.i18nAttributes,t,null)}function Zb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.property,r,s)}function Jb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.twoWayProperty,r,s)}function e2(n,e,t,s){let r=[v(n),e];return(t!==null||s!==null)&&r.push(t??v(null)),s!==null&&r.push(v(s)),z(d.attribute,r,null)}function t2(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(v(t)),z(d.styleProp,r,s)}function n2(n,e,t){return z(d.classProp,[v(n),e],t)}function s2(n,e){return z(d.styleMap,[n],e)}function r2(n,e){return z(d.classMap,[n],e)}var Mf=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function i2(n,e,t){if(t.length<1||t.length>Mf.length)throw new Error("pipeBind() argument count out of bounds");let s=Mf[t.length-1];return T(s).callFn([v(n),v(e),...t])}function o2(n,e,t){return T(d.pipeBindV).callFn([v(n),v(e),t])}function a2(n,e,t){let s=Zr(n,e);return Jr(y2,[],s,[],t)}function l2(n,e){return z(d.i18nExp,[n],e)}function c2(n,e){return z(d.i18nApply,[v(n)],e)}function u2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(s),Jr(E2,[v(n)],i,o,r)}function h2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(s),Jr(b2,[v(n)],i,o,r)}function p2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(v(s)),Jr(S2,[v(n)],i,o,r)}function d2(n,e,t){let s=Zr(n,e);return Jr(_2,[],s,[],t)}function f2(n,e,t){let s=Zr(n,e);return Jr(x2,[],s,[],t)}function m2(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.hostProperty,r,s)}function g2(n,e,t){return z(d.syntheticHostProperty,[v(n),e],t)}function v2(n,e,t){return og(C2,[v(n),e],t,[],null)}function Zr(n,e){if(n.length<1||e.length!==n.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let t=[];if(e.length===1&&n[0]===""&&n[1]==="")t.push(e[0]);else{let s;for(s=0;s{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},E2={constant:[d.propertyInterpolate,d.propertyInterpolate1,d.propertyInterpolate2,d.propertyInterpolate3,d.propertyInterpolate4,d.propertyInterpolate5,d.propertyInterpolate6,d.propertyInterpolate7,d.propertyInterpolate8],variable:d.propertyInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},S2={constant:[d.styleProp,d.stylePropInterpolate1,d.stylePropInterpolate2,d.stylePropInterpolate3,d.stylePropInterpolate4,d.stylePropInterpolate5,d.stylePropInterpolate6,d.stylePropInterpolate7,d.stylePropInterpolate8],variable:d.stylePropInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},b2={constant:[d.attribute,d.attributeInterpolate1,d.attributeInterpolate2,d.attributeInterpolate3,d.attributeInterpolate4,d.attributeInterpolate5,d.attributeInterpolate6,d.attributeInterpolate7,d.attributeInterpolate8],variable:d.attributeInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},_2={constant:[d.styleMap,d.styleMapInterpolate1,d.styleMapInterpolate2,d.styleMapInterpolate3,d.styleMapInterpolate4,d.styleMapInterpolate5,d.styleMapInterpolate6,d.styleMapInterpolate7,d.styleMapInterpolate8],variable:d.styleMapInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},x2={constant:[d.classMap,d.classMapInterpolate1,d.classMapInterpolate2,d.classMapInterpolate3,d.classMapInterpolate4,d.classMapInterpolate5,d.classMapInterpolate6,d.classMapInterpolate7,d.classMapInterpolate8],variable:d.classMapInterpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},C2={constant:[d.pureFunction0,d.pureFunction1,d.pureFunction2,d.pureFunction3,d.pureFunction4,d.pureFunction5,d.pureFunction6,d.pureFunction7,d.pureFunction8],variable:d.pureFunctionV,mapping:n=>n};function og(n,e,t,s,r){let i=n.mapping(t.length);if(i{if(r instanceof qn){if(!t.has(r.view))throw new Error(`No context found for reference to view ${r.view} from view ${n.xref}`);return t.get(r.view)}else return r},X.None)}function M2(n){for(let e of n.units)Ff(e.create),Ff(e.update)}function Ff(n){for(let e of n)(e.kind===h.Listener||e.kind===h.TwoWayListener)&&Ne(e,t=>t instanceof Ue&&t.name==="$event"?(e.kind===h.Listener&&(e.consumesDollarEvent=!0),new Vt(t.name)):t,X.InChildOperation)}function L2(n){let e=new Map,t=new Map;for(let s of n.units)for(let r of s.create)switch(r.kind){case h.I18nContext:e.set(r.xref,r);break;case h.ElementStart:t.set(r.xref,r);break}ns(n,n.root,e,t)}function ns(n,e,t,s,r){let i=null,o=new Map;for(let a of e.create)switch(a.kind){case h.I18nStart:if(!a.context)throw Error("Could not find i18n context for i18n op");i={i18nBlock:a,i18nContext:t.get(a.context)};break;case h.I18nEnd:i=null;break;case h.ElementStart:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Bf(a,i.i18nContext,i.i18nBlock,r),r&&a.i18nPlaceholder.closeName&&o.set(a.xref,r),r=void 0}break;case h.ElementEnd:let l=s.get(a.xref);if(l&&l.i18nPlaceholder!==void 0){if(i===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");Rf(l,i.i18nContext,i.i18nBlock,o.get(a.xref)),o.delete(a.xref)}break;case h.Projection:if(a.i18nPlaceholder!==void 0){if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");Bf(a,i.i18nContext,i.i18nBlock,r),Rf(a,i.i18nContext,i.i18nBlock,r),r=void 0}break;case h.Template:let c=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)ns(n,c,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===wt.Structural?ns(n,c,t,s,a):(uc(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),ns(n,c,t,s),hc(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0)}break;case h.RepeaterCreate:if(r!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let u=a.handle.slot+1,p=n.views.get(a.xref);if(a.i18nPlaceholder===void 0)ns(n,p,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");uc(n,p,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),ns(n,p,t,s),hc(n,p,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}if(a.emptyView!==null){let m=a.handle.slot+2,g=n.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)ns(n,g,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");uc(n,g,m,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),ns(n,g,t,s),hc(n,g,m,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}}break}}function Bf(n,e,t,s){let{startName:r,closeName:i}=n.i18nPlaceholder,o=oe.ElementTag|oe.OpenTag,a=n.handle.slot;s!==void 0&&(o|=oe.TemplateTag,a={element:a,template:s.handle.slot}),i||(o|=oe.CloseTag),jr(e.params,r,a,t.subTemplateIndex,o)}function Rf(n,e,t,s){let{closeName:r}=n.i18nPlaceholder;if(r){let i=oe.ElementTag|oe.CloseTag,o=n.handle.slot;s!==void 0&&(i|=oe.TemplateTag,o={element:o,template:s.handle.slot}),jr(e.params,r,o,t.subTemplateIndex,i)}}function uc(n,e,t,s,r,i,o){let{startName:a,closeName:l}=s,c=oe.TemplateTag|oe.OpenTag;l||(c|=oe.CloseTag),o!==void 0&&jr(r.params,a,o.handle.slot,i.subTemplateIndex,c),jr(r.params,a,t,cg(n,i,e),c)}function hc(n,e,t,s,r,i,o){let{closeName:a}=s,l=oe.TemplateTag|oe.CloseTag;a&&(jr(r.params,a,t,cg(n,i,e),l),o!==void 0&&jr(r.params,a,o.handle.slot,i.subTemplateIndex,l))}function cg(n,e,t){for(let s of t.create)if(s.kind===h.I18nStart)return s.subTemplateIndex;return e.subTemplateIndex}function jr(n,e,t,s,r){let i=n.get(e)??[];i.push({value:t,subTemplateIndex:s,flags:r}),n.set(e,i)}function F2(n){let e=new Map,t=new Map,s=new Map;for(let o of n.units)for(let a of o.create)switch(a.kind){case h.I18nStart:e.set(a.xref,a.subTemplateIndex);break;case h.I18nContext:t.set(a.xref,a);break;case h.IcuPlaceholder:s.set(a.xref,a);break}let r=new Map,i=o=>o.usage===Xr.I18nText?o.i18nOwner:o.context;for(let o of n.units)for(let a of o.update)if(a.kind===h.I18nExpression){let l=r.get(i(a))||0,c=e.get(a.i18nOwner)??null,u={value:l,subTemplateIndex:c,flags:oe.ExpressionIndex};B2(a,u,t,s),r.set(i(a),l+1)}}function B2(n,e,t,s){if(n.i18nPlaceholder!==null){let r=t.get(n.context),i=n.resolutionTime===Ki.Creation?r.params:r.postprocessingParams,o=i.get(n.i18nPlaceholder)||[];o.push(e),i.set(n.i18nPlaceholder,o)}n.icuPlaceholder!==null&&s.get(n.icuPlaceholder)?.expressionPlaceholders.push(e)}function R2(n){for(let e of n.units)ku(e,e.create,null),ku(e,e.update,null)}function ku(n,e,t){let s=new Map,r=new Map;for(let i of e)switch(i.kind){case h.Variable:switch(i.variable.kind){case Fe.Identifier:if(i.variable.local){if(r.has(i.variable.identifier))continue;r.set(i.variable.identifier,i.xref)}else if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case Fe.Alias:if(s.has(i.variable.identifier))continue;s.set(i.variable.identifier,i.xref);break;case Fe.SavedView:t={view:i.variable.view,variable:i.xref};break}break;case h.Listener:case h.TwoWayListener:ku(n,i.handlerOps,t);break}for(let i of e)i.kind==h.Listener||i.kind===h.TwoWayListener||Ne(i,o=>{if(o instanceof Ue)return r.has(o.name)?new Rn(r.get(o.name)):s.has(o.name)?new Rn(s.get(o.name)):new Et(new qn(n.job.root.xref),o.name);if(o instanceof Va&&typeof o.view=="number"){if(t===null||t.view!==o.view)throw new Error(`AssertionError: no saved view ${o.view} from view ${n.xref}`);return o.view=new Rn(t.variable),o}else return o},X.None);for(let i of e)Ye(i,o=>{if(o instanceof Ue)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${o.name}`)})}var O2=new Map([[le.HTML,d.sanitizeHtml],[le.RESOURCE_URL,d.sanitizeResourceUrl],[le.SCRIPT,d.sanitizeScript],[le.STYLE,d.sanitizeStyle],[le.URL,d.sanitizeUrl]]),$2=new Map([[le.HTML,d.trustConstantHtml],[le.RESOURCE_URL,d.trustConstantResourceUrl]]);function V2(n){for(let e of n.units){let t=dh(e);if(n.kind!==x.Host){for(let s of e.create)if(s.kind===h.ExtractedAttribute){let r=$2.get(Of(s.securityContext))??null;s.trustedValueFn=r!==null?T(r):null}}for(let s of e.update)switch(s.kind){case h.Property:case h.Attribute:case h.HostProperty:let r=null;if(Array.isArray(s.securityContext)&&s.securityContext.length===2&&s.securityContext.indexOf(le.URL)>-1&&s.securityContext.indexOf(le.RESOURCE_URL)>-1?r=d.sanitizeUrlOrResourceUrl:r=O2.get(Of(s.securityContext))??null,s.sanitizer=r!==null?T(r):null,s.sanitizer===null){let i=!1;if(n.kind===x.Host||s.kind===h.HostProperty)i=!0;else{let o=t.get(s.target);if(o===void 0||!ms(o))throw Error("Property should have an element-like owner");i=q2(o)}i&&Y0(s.name)&&(s.sanitizer=T(d.validateIframeAttribute))}break}}}function q2(n){return n.kind===h.ElementStart&&n.tag?.toLowerCase()==="iframe"}function Of(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||le.NONE}return n}function U2(n){for(let e of n.units)for(let t of e.create)t.kind===h.TwoWayListener&&Ne(t,s=>{if(!(s instanceof qa))return s;let{target:r,value:i}=s;if(r instanceof Et||r instanceof $n)return Df(r,i).or(r.set(i));if(r instanceof Rn)return Df(r,i);throw new Error("Unsupported expression in two-way action binding.")},X.InChildOperation)}function H2(n){for(let e of n.units){e.create.prepend([as(e.job.allocateXrefId(),{kind:Fe.SavedView,name:null,view:e.xref},new eu,Lt.None)]);for(let t of e.create){if(t.kind!==h.Listener&&t.kind!==h.TwoWayListener)continue;let s=e!==n.root;if(!s)for(let r of t.handlerOps)Ye(r,i=>{(i instanceof Ra||i instanceof Ji)&&(s=!0)});s&&W2(e,t)}}}function W2(n,e){e.handlerOps.prepend([as(n.job.allocateXrefId(),{kind:Fe.Context,name:null,view:n.xref},new Va(n.xref),Lt.None)]);for(let t of e.handlerOps)t.kind===h.Statement&&t.statement instanceof ot&&(t.statement.value=new tu(t.statement.value))}function j2(n){let e=new Map;for(let t of n.units){let s=0;for(let r of t.create)Kr(r)&&(r.handle.slot=s,e.set(r.xref,r.handle.slot),s+=r.numSlotsUsed);t.decls=s}for(let t of n.units)for(let s of t.ops())if(s.kind===h.Template||s.kind===h.RepeaterCreate){let r=n.views.get(s.xref);s.decls=r.decls}}function z2(n){for(let e of n.units)for(let t of e.update)if(t.kind===h.Binding)switch(t.bindingKind){case N.ClassName:if(t.expression instanceof Ee)throw new Error("Unexpected interpolation in ClassName binding");S.replace(t,jy(t.target,t.name,t.expression,t.sourceSpan));break;case N.StyleProperty:S.replace(t,Wy(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case N.Property:case N.Template:t.name==="style"?S.replace(t,zy(t.target,t.expression,t.sourceSpan)):t.name==="class"&&S.replace(t,Gy(t.target,t.expression,t.sourceSpan));break}}function G2(n){for(let e of n.units)e.create.prepend(Iu(e.create)),e.update.prepend(Iu(e.update))}function Iu(n){let e=0,t=[];for(let s of n){let r=new Map;Ye(s,(c,u)=>{u&X.InChildOperation||c instanceof Un&&r.set(c.xref,c)});let i=0,o=new Set,a=new Set,l=new Map;Ye(s,(c,u)=>{u&X.InChildOperation||(c instanceof Zt?(o.has(c.xref)||(o.add(c.xref),l.set(c.xref,`tmp_${e}_${i++}`)),$f(l,c)):c instanceof Un&&(r.get(c.xref)===c&&(a.add(c.xref),i--),$f(l,c)))}),t.push(...Array.from(new Set(l.values())).map(c=>Sn(new Xe(c)))),e++,(s.kind===h.Listener||s.kind===h.TwoWayListener)&&s.handlerOps.prepend(Iu(s.handlerOps))}return t}function $f(n,e){let t=n.get(e.xref);if(t===void 0)throw new Error(`Found xref with unassigned name: ${e.xref}`);e.name=t}function Q2(n){for(let e of n.units)for(let t of e.create){if(t.kind!==h.RepeaterCreate||t.trackByFn!==null)continue;let s=!1;t.track=C(t.track,o=>{if(o instanceof Gs||o instanceof Ua)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof Oa?(s=!0,H("this")):o},X.None);let r,i=[new Be("$index"),new Be("$item")];s?r=new Mn(i,[new ot(t.track)]):r=En(i,t.track),t.trackByFn=n.pool.getSharedFunctionReference(r,"_forTrack")}}function X2(n){for(let e of n.units)for(let t of e.create)t.kind===h.RepeaterCreate&&(t.track instanceof Vt&&t.track.name==="$index"?t.trackByFn=T(d.repeaterTrackByIndex):t.track instanceof Vt&&t.track.name==="$item"?t.trackByFn=T(d.repeaterTrackByIdentity):Y2(n.root.xref,t.track)?(t.usesComponentInstance=!0,t.track.receiver.receiver.view===e.xref?t.trackByFn=t.track.receiver:(t.trackByFn=T(d.componentInstance).callFn([]).prop(t.track.receiver.name),t.track=t.trackByFn)):t.track=C(t.track,s=>s instanceof qn?(t.usesComponentInstance=!0,new Oa(s.view)):s,X.None))}function Y2(n,e){if(!(e instanceof nt)||e.args.length===0||e.args.length>2||!(e.receiver instanceof Et&&e.receiver.receiver instanceof qn)||e.receiver.receiver.view!==n)return!1;let[t,s]=e.args;return!(t instanceof Vt)||t.name!=="$index"?!1:e.args.length===1?!0:!(!(s instanceof Vt)||s.name!=="$item")}function K2(n){for(let e of n.units)for(let t of e.create)t.kind===h.RepeaterCreate&&(t.track=C(t.track,s=>{if(s instanceof Ue){if(t.varNames.$index.has(s.name))return H("$index");if(s.name===t.varNames.$implicit)return H("$item")}return s},X.None))}function Z2(n){for(let e of n.units){let t=0;for(let s of e.ops())nc(s)&&(t+=J2(s));for(let s of e.ops())Ye(s,r=>{bn(r)&&(n.compatibility===St.TemplateDefinitionBuilder&&r instanceof zs||(Gd(r)&&(r.varOffset=t),nc(r)&&(t+=Vf(r))))});if(n.compatibility===St.TemplateDefinitionBuilder)for(let s of e.ops())Ye(s,r=>{!bn(r)||!(r instanceof zs)||(Gd(r)&&(r.varOffset=t),nc(r)&&(t+=Vf(r)))});e.vars=t}if(n instanceof no)for(let e of n.units)for(let t of e.create){if(t.kind!==h.Template&&t.kind!==h.RepeaterCreate)continue;let s=n.views.get(t.xref);t.vars=s.vars}}function J2(n){let e;switch(n.kind){case h.Property:case h.HostProperty:case h.Attribute:return e=1,n.expression instanceof Ee&&!e_(n.expression)&&(e+=n.expression.expressions.length),e;case h.TwoWayProperty:return 1;case h.StyleProp:case h.ClassProp:case h.StyleMap:case h.ClassMap:return e=2,n.expression instanceof Ee&&(e+=n.expression.expressions.length),e;case h.InterpolateText:return n.interpolation.expressions.length;case h.I18nExpression:case h.Conditional:case h.DeferWhen:case h.StoreLet:return 1;case h.RepeaterCreate:return n.emptyView?1:0;default:throw new Error(`Unhandled op: ${h[n.kind]}`)}}function Vf(n){switch(n.kind){case I.PureFunctionExpr:return 1+n.args.length;case I.PipeBinding:return 1+n.args.length;case I.PipeBindingVariadic:return 1+n.numArgs;case I.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}function e_(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function t_(n){for(let e of n.units){pc(e.create),pc(e.update);for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&pc(t.handlerOps);dc(e.create,n.compatibility),dc(e.update,n.compatibility);for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&dc(t.handlerOps,n.compatibility)}}var Ie=function(n){return n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful",n}(Ie||{});function pc(n){let e=new Map;for(let t of n)t.kind===h.Variable&&t.flags&Lt.AlwaysInline&&(Ye(t,s=>{if(bn(s)&&fh(s)!==Ie.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(t.xref,t)),Ne(t,s=>s instanceof Rn&&e.has(s.xref)?e.get(s.xref).initializer.clone():s,X.None);for(let t of e.values())S.remove(t)}function dc(n,e){let t=new Map,s=new Map,r=new Set,i=new Map;for(let c of n){if(c.kind===h.Variable){if(t.has(c.xref)||s.has(c.xref))throw new Error(`Should not see two declarations of the same variable: ${c.xref}`);t.set(c.xref,c),s.set(c.xref,0)}i.set(c,n_(c)),s_(c,s,r)}let o=!1;for(let c of n.reversed()){let u=i.get(c);if(c.kind===h.Variable&&s.get(c.xref)===0){if(o&&u.fences&Ie.ViewContextWrite||u.fences&Ie.SideEffectful){let p=Sn(c.initializer.toStmt());i.set(p,u),S.replace(c,p)}else r_(c,s),S.remove(c);i.delete(c),t.delete(c.xref),s.delete(c.xref);continue}u.fences&Ie.ViewContextRead&&(o=!0)}let a=[];for(let[c,u]of s){let m=!!(t.get(c).flags&Lt.AlwaysInline);u!==1||m||r.has(c)||a.push(c)}let l;for(;l=a.pop();){let c=t.get(l),u=i.get(c);if(!!(c.flags&Lt.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let m=c.next;m.kind!==h.ListEnd;m=m.next){let g=i.get(m);if(g.variablesUsed.has(l)){if(e===St.TemplateDefinitionBuilder&&!o_(c,m))break;if(i_(l,c.initializer,m,u.fences)){g.variablesUsed.delete(l);for(let w of u.variablesUsed)g.variablesUsed.add(w);g.fences|=u.fences,t.delete(l),s.delete(l),i.delete(c),S.remove(c)}break}if(!ug(g.fences,u.fences))break}}}function fh(n){switch(n.kind){case I.NextContext:return Ie.ViewContextRead|Ie.ViewContextWrite;case I.RestoreView:return Ie.ViewContextRead|Ie.ViewContextWrite|Ie.SideEffectful;case I.StoreLet:return Ie.SideEffectful;case I.Reference:case I.ContextLetReference:return Ie.ViewContextRead;default:return Ie.None}}function n_(n){let e=Ie.None,t=new Set;return Ye(n,s=>{if(bn(s))switch(s.kind){case I.ReadVariable:t.add(s.xref);break;default:e|=fh(s)}}),{fences:e,variablesUsed:t}}function s_(n,e,t){Ye(n,(s,r)=>{if(!bn(s)||s.kind!==I.ReadVariable)return;let i=e.get(s.xref);i!==void 0&&(e.set(s.xref,i+1),r&X.InChildOperation&&t.add(s.xref))})}function r_(n,e){Ye(n,t=>{if(!bn(t)||t.kind!==I.ReadVariable)return;let s=e.get(t.xref);if(s!==void 0){if(s===0)throw new Error(`Inaccurate variable count: ${t.xref} - found another read but count is already 0`);e.set(t.xref,s-1)}})}function ug(n,e){if(n&Ie.ViewContextWrite){if(e&Ie.ViewContextRead)return!1}else if(n&Ie.ViewContextRead&&e&Ie.ViewContextWrite)return!1;return!0}function i_(n,e,t,s){let r=!1,i=!0;return Ne(t,(o,a)=>{if(!bn(o)||r||!i)return o;if(a&X.InChildOperation&&s&Ie.ViewContextRead)return o;switch(o.kind){case I.ReadVariable:if(o.xref===n)return r=!0,e;break;default:let l=fh(o);i=i&&ug(l,s);break}return o},X.None),r}function o_(n,e){switch(n.variable.kind){case Fe.Identifier:return n.initializer instanceof Vt&&n.initializer.name==="ctx";case Fe.Context:return e.kind===h.Variable;default:return!0}}function a_(n){for(let e of n.units){let t=null,s=null;for(let r of e.create)switch(r.kind){case h.I18nStart:t=r;break;case h.I18nEnd:t=null;break;case h.IcuStart:t===null&&(s=n.allocateXrefId(),S.insertBefore(vl(s,r.message,void 0,null),r));break;case h.IcuEnd:s!==null&&(S.insertAfter(wl(s,null),r),s=null);break}}}function l_(n){let e=new Set;for(let t of n.units)for(let s of t.ops())Ye(s,r=>{r instanceof Ji&&e.add(r.target)});for(let t of n.units)for(let s of t.update)Ne(s,r=>r instanceof Zi&&!e.has(r.target)?r.value:r,X.None)}function c_(n){for(let e of n.units)for(let t of e.update){if(t.kind!==h.Variable||t.variable.kind!==Fe.Identifier||!(t.initializer instanceof Zi))continue;let s=t.variable.identifier,r=t;for(;r&&r.kind!==h.ListEnd;)Ne(r,i=>i instanceof Ue&&i.name===s?v(void 0):i,X.None),r=r.prev}}function u_(n){for(let e of n.units)for(let t of e.update){if(t.kind!==h.StoreLet)continue;let s={kind:Fe.Identifier,name:null,identifier:t.declaredName,local:!0};S.replace(t,as(n.allocateXrefId(),s,new Zi(t.target,t.value,t.sourceSpan),Lt.None))}}var h_=[{kind:x.Tmpl,fn:nb},{kind:x.Host,fn:m0},{kind:x.Tmpl,fn:OS},{kind:x.Tmpl,fn:cb},{kind:x.Tmpl,fn:a_},{kind:x.Both,fn:OE},{kind:x.Both,fn:z2},{kind:x.Both,fn:xE},{kind:x.Both,fn:SE},{kind:x.Tmpl,fn:RE},{kind:x.Both,fn:VS},{kind:x.Tmpl,fn:I2},{kind:x.Both,fn:kE},{kind:x.Both,fn:tb},{kind:x.Tmpl,fn:IE},{kind:x.Tmpl,fn:ib},{kind:x.Tmpl,fn:$E},{kind:x.Tmpl,fn:FS},{kind:x.Tmpl,fn:FE},{kind:x.Tmpl,fn:P2},{kind:x.Tmpl,fn:EE},{kind:x.Tmpl,fn:wE},{kind:x.Tmpl,fn:lb},{kind:x.Both,fn:pb},{kind:x.Tmpl,fn:u0},{kind:x.Tmpl,fn:u_},{kind:x.Tmpl,fn:h0},{kind:x.Tmpl,fn:H2},{kind:x.Both,fn:gE},{kind:x.Both,fn:M2},{kind:x.Tmpl,fn:K2},{kind:x.Tmpl,fn:c_},{kind:x.Both,fn:R2},{kind:x.Tmpl,fn:VE},{kind:x.Tmpl,fn:U2},{kind:x.Tmpl,fn:X2},{kind:x.Both,fn:D2},{kind:x.Both,fn:V2},{kind:x.Tmpl,fn:BS},{kind:x.Both,fn:XS},{kind:x.Both,fn:WE},{kind:x.Both,fn:G2},{kind:x.Both,fn:t_},{kind:x.Both,fn:l_},{kind:x.Tmpl,fn:j2},{kind:x.Tmpl,fn:L2},{kind:x.Tmpl,fn:F2},{kind:x.Tmpl,fn:i0},{kind:x.Tmpl,fn:Q2},{kind:x.Tmpl,fn:NS},{kind:x.Tmpl,fn:d0},{kind:x.Both,fn:ME},{kind:x.Tmpl,fn:N2},{kind:x.Both,fn:Z2},{kind:x.Tmpl,fn:c0},{kind:x.Both,fn:qS},{kind:x.Tmpl,fn:BE},{kind:x.Tmpl,fn:WS},{kind:x.Tmpl,fn:zS},{kind:x.Tmpl,fn:HE},{kind:x.Tmpl,fn:QS},{kind:x.Both,fn:hb},{kind:x.Both,fn:T2},{kind:x.Both,fn:TE}];function hg(n,e){for(let t of h_)(t.kind===e||t.kind===x.Both)&&t.fn(n)}function p_(n,e){let t=dg(n.root);return pg(n.root,e),t}function pg(n,e){for(let t of n.job.units){if(t.parent!==n.xref)continue;pg(t,e);let s=dg(t);e.statements.push(s.toDeclStmt(s.name))}}function dg(n){if(n.fnName===null)throw new Error(`AssertionError: view ${n.xref} is unnamed`);let e=[];for(let i of n.create){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${h[i.kind]}`);e.push(i.statement)}let t=[];for(let i of n.update){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${h[i.kind]}`);t.push(i.statement)}let s=il(1,e),r=il(2,t);return Gr([new Be("rf"),new Be("ctx")],[...s,...r],void 0,void 0,n.fnName)}function il(n,e){return e.length===0?[]:[hl(new Q(A.BitwiseAnd,H("rf"),v(n)),e)]}function d_(n){if(n.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let e=[];for(let i of n.root.create){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${h[i.kind]}`);e.push(i.statement)}let t=[];for(let i of n.root.update){if(i.kind!==h.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${h[i.kind]}`);t.push(i.statement)}if(e.length===0&&t.length===0)return null;let s=il(1,e),r=il(2,t);return Gr([new Be("rf"),new Be("ctx")],[...s,...r],void 0,void 0,n.root.fnName)}var fg=St.TemplateDefinitionBuilder,Fs=new Wr,Bs="ng-template";function Nu(n){return n instanceof tt}function f_(n){return Nu(n)&&n.nodes.length===1&&n.nodes[0]instanceof ka}function m_(n,e,t,s,r,i,o){let a=new no(n,t,fg,s,r,i,o);return Hn(a.root,e),a}function g_(n,e,t){let s=new Qa(n.componentName,t,fg);for(let r of n.properties??[]){let i=N.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),i=N.Attribute),r.isAnimation&&(i=N.Animation);let o=e.calcPossibleSecurityContexts(n.componentSelector,r.name,i===N.Attribute).filter(a=>a!==le.NONE);v_(s,r,i,o)}for(let[r,i]of Object.entries(n.attributes)??[]){let o=e.calcPossibleSecurityContexts(n.componentSelector,r,!0).filter(a=>a!==le.NONE);w_(s,r,i,o)}for(let r of n.events??[])y_(s,r);return s}function v_(n,e,t,s){let r,i=e.expression.ast;i instanceof Us?r=new Ee(i.strings,i.expressions.map(o=>V(o,n,e.sourceSpan)),[]):r=V(i,n,e.sourceSpan),n.root.update.push(js(n.root.xref,t,e.name,r,null,s,!1,!1,null,null,e.sourceSpan))}function w_(n,e,t,s){let r=js(n.root.xref,N.Attribute,e,t,null,s,!0,!1,null,null,t.sourceSpan);n.root.update.push(r)}function y_(n,e){let[t,s]=e.type!==$t.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],r=ph(n.root.xref,new at,e.name,null,mh(n.root,e.handler,e.handlerSpan),t,s,!0,e.sourceSpan);n.root.create.push(r)}function Hn(n,e){for(let t of e)if(t instanceof Ht)E_(n,t);else if(t instanceof vt)S_(n,t);else if(t instanceof Rr)b_(n,t);else if(t instanceof Pn)mg(n,t,null);else if(t instanceof Lr)gg(n,t,null);else if(t instanceof Ca)__(n,t);else if(t instanceof xa)x_(n,t);else if(t instanceof Hs)C_(n,t);else if(t instanceof Ta)A_(n,t);else if(t instanceof Br)T_(n,t);else if(t instanceof Ui)I_(n,t);else throw new Error(`Unsupported template node: ${t.constructor.name}`)}function E_(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof tt||e.i18n instanceof hs))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=n.job.allocateXrefId(),[s,r]=Kt(e.name),i=tE(r,t,zm(s),e.i18n instanceof hs?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(i),P_(n,i,e),yg(i,e);let o=null;e.i18n instanceof tt&&(o=n.job.allocateXrefId(),n.create.push(vl(o,e.i18n,void 0,e.startSourceSpan))),Hn(n,e.children);let a=sE(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),o!==null&&S.insertBefore(wl(o,e.endSourceSpan??e.startSourceSpan),a)}function S_(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof tt||e.i18n instanceof hs))throw Error(`Unhandled i18n metadata type for template: ${e.i18n.constructor.name}`);let t=n.job.allocateView(n.xref),s=e.tagName,r="";e.tagName&&([r,s]=Kt(e.tagName));let i=e.i18n instanceof hs?e.i18n:void 0,o=zm(r),a=s===null?"":DE(s,o),l=N_(e)?wt.NgTemplate:wt.Structural,c=gl(t.xref,l,s,a,o,i,e.startSourceSpan,e.sourceSpan);n.create.push(c),D_(n,c,e,l),yg(c,e),Hn(t,e.children);for(let{name:u,value:p}of e.variables)t.contextVariables.set(u,p!==""?p:"$implicit");if(l===wt.NgTemplate&&e.i18n instanceof tt){let u=n.job.allocateXrefId();S.insertAfter(vl(u,e.i18n,void 0,e.startSourceSpan),t.create.head),S.insertBefore(wl(u,e.endSourceSpan??e.startSourceSpan),t.create.tail)}}function b_(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof hs))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=null;e.children.some(i=>!(i instanceof Mr)&&(!(i instanceof Pn)||i.value.trim().length>0))&&(t=n.job.allocateView(n.xref),Hn(t,e.children));let s=n.job.allocateXrefId(),r=lE(s,e.selector,e.i18n,t?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Fs.securityContext(e.name,i.name,!0);n.update.push(js(r.xref,N.Attribute,i.name,v(i.value),null,o,!0,!1,null,Dn(i.i18n),i.sourceSpan))}n.create.push(r)}function mg(n,e,t){n.create.push(qm(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function gg(n,e,t){let s=e.value;if(s instanceof Mt&&(s=s.ast),!(s instanceof Us))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Fn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let r=e.i18n instanceof Fn?e.i18n.children.filter(a=>a instanceof Ia).map(a=>a.name):[];if(r.length>0&&r.length!==s.expressions.length)throw Error(`Unexpected number of i18n placeholders (${s.expressions.length}) for BoundText with ${s.expressions.length} expressions`);let i=n.job.allocateXrefId();n.create.push(qm(i,"",t,e.sourceSpan));let o=n.job.compatibility?null:e.sourceSpan;n.update.push(qy(i,new Ee(s.strings,s.expressions.map(a=>V(a,n.job,o)),r),e.sourceSpan))}function __(n,e){let t=null,s=[];for(let r=0;rV(s,e,t)),void 0,qe(n.span,t))}else{if(n instanceof Pt)return v(n.value,void 0,qe(n.span,t));if(n instanceof Mi)switch(n.operator){case"+":return new kr(Ci.Plus,V(n.expr,e,t),void 0,qe(n.span,t));case"-":return new kr(Ci.Minus,V(n.expr,e,t),void 0,qe(n.span,t));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}else if(n instanceof Nt){let s=NE.get(n.operation);if(s===void 0)throw new Error(`AssertionError: unknown binary operator ${n.operation}`);return new Q(s,V(n.left,e,t),V(n.right,e,t),void 0,qe(n.span,t))}else{if(n instanceof Ps)return new qn(e.root.xref);if(n instanceof Dr)return new $n(V(n.receiver,e,t),V(n.key,e,t),void 0,qe(n.span,t));if(n instanceof Pr)throw new Error("AssertionError: Chain in unknown context");if(n instanceof ma){let s=n.keys.map((r,i)=>{let o=n.values[i];return new Ir(r.key,V(o,e,t),r.quoted)});return new Yt(s,void 0,qe(n.span,t))}else{if(n instanceof fa)return new qt(n.expressions.map(s=>V(s,e,t)));if(n instanceof Di)return new On(V(n.condition,e,t),V(n.trueExp,e,t),V(n.falseExp,e,t),void 0,qe(n.span,t));if(n instanceof Fi)return V(n.expression,e,t);if(n instanceof da)return new Gs(e.allocateXrefId(),new at,n.name,[V(n.exp,e,t),...n.args.map(s=>V(s,e,t))]);if(n instanceof ha)return new qr(V(n.receiver,e,t),V(n.key,e,t),qe(n.span,t));if(n instanceof ua)return new Vr(V(n.receiver,e,t),n.name);if(n instanceof va)return new fs(V(n.receiver,e,t),n.args.map(s=>V(s,e,t)));if(n instanceof et)return new eo(qe(n.span,t));if(n instanceof Li)return tw(V(n.expression,e,t),qe(n.span,t));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${t?.start.file.url}"`)}}}}}function Pu(n,e,t,s){let r;return e instanceof Us?r=new Ee(e.strings,e.expressions.map(i=>V(i,n,s??null)),Object.keys(Dn(t)?.placeholders??{})):e instanceof we?r=V(e,n,s??null):r=v(e),r}var vg=new Map([[ae.Property,N.Property],[ae.TwoWay,N.TwoWayProperty],[ae.Attribute,N.Attribute],[ae.Class,N.ClassName],[ae.Style,N.StyleProperty],[ae.Animation,N.Animation]]);function N_(n){return Kt(n.tagName??"")[1]===Bs}function Dn(n){if(n==null)return null;if(!(n instanceof tt))throw Error(`Expected i18n meta to be a Message, but got: ${n.constructor.name}`);return n}function P_(n,e,t){let s=new Array,r=new Set;for(let i of t.attributes){let o=Fs.securityContext(t.name,i.name,!0);s.push(js(e.xref,N.Attribute,i.name,Pu(n.job,i.value,i.i18n),null,o,!0,!1,null,Dn(i.i18n),i.sourceSpan)),i.i18n&&r.add(i.name)}for(let i of t.inputs)r.has(i.name)&&console.error(`On component ${n.job.componentName}, the binding ${i.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),s.push(js(e.xref,vg.get(i.type),i.name,Pu(n.job,oo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Dn(i.i18n)??null,i.sourceSpan));n.create.push(s.filter(i=>i?.kind===h.ExtractedAttribute)),n.update.push(s.filter(i=>i?.kind===h.Binding));for(let i of t.outputs){if(i.type===$t.Animation&&i.phase===null)throw Error("Animation listener should have a phase");i.type===$t.TwoWay?n.create.push(Um(e.xref,e.handle,i.name,e.tag,wg(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(ph(e.xref,e.handle,i.name,e.tag,mh(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))}s.some(i=>i?.i18nMessage)!==null&&n.create.push(Wm(n.job.allocateXrefId(),new at,e.xref))}function D_(n,e,t,s){let r=new Array;for(let i of t.templateAttrs)if(i instanceof Fr){let o=Fs.securityContext(Bs,i.name,!0);r.push(Go(n,e.xref,ae.Attribute,i.name,i.value,null,o,!0,s,Dn(i.i18n),i.sourceSpan))}else r.push(Go(n,e.xref,i.type,i.name,oo(i.value),i.unit,i.securityContext,!0,s,Dn(i.i18n),i.sourceSpan));for(let i of t.attributes){let o=Fs.securityContext(Bs,i.name,!0);r.push(Go(n,e.xref,ae.Attribute,i.name,i.value,null,o,!1,s,Dn(i.i18n),i.sourceSpan))}for(let i of t.inputs)r.push(Go(n,e.xref,i.type,i.name,oo(i.value),i.unit,i.securityContext,!1,s,Dn(i.i18n),i.sourceSpan));n.create.push(r.filter(i=>i?.kind===h.ExtractedAttribute)),n.update.push(r.filter(i=>i?.kind===h.Binding));for(let i of t.outputs){if(i.type===$t.Animation&&i.phase===null)throw Error("Animation listener should have a phase");if(s===wt.NgTemplate&&(i.type===$t.TwoWay?n.create.push(Um(e.xref,e.handle,i.name,e.tag,wg(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(ph(e.xref,e.handle,i.name,e.tag,mh(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),s===wt.Structural&&i.type!==$t.Animation){let o=Fs.securityContext(Bs,i.name,!1);n.create.push(Ft(e.xref,N.Property,null,i.name,null,null,null,o))}}r.some(i=>i?.i18nMessage)!==null&&n.create.push(Wm(n.job.allocateXrefId(),new at,e.xref))}function Go(n,e,t,s,r,i,o,a,l,c,u){let p=typeof r=="string";if(l===wt.Structural){if(!a)switch(t){case ae.Property:case ae.Class:case ae.Style:return Ft(e,N.Property,null,s,null,null,c,o);case ae.TwoWay:return Ft(e,N.TwoWayProperty,null,s,null,null,c,o)}if(!p&&(t===ae.Attribute||t===ae.Animation))return null}let m=vg.get(t);return l===wt.NgTemplate&&(t===ae.Class||t===ae.Style||t===ae.Attribute&&!p)&&(m=N.Property),js(e,m,s,Pu(n.job,r,c),i,o,p,a,l,c,u)}function mh(n,e,t){e=oo(e);let s=new Array,r=e instanceof Pr?e.expressions:[e];if(r.length===0)throw new Error("Expected listener to have non-empty expression list.");let i=r.map(a=>V(a,n.job,t)),o=i.pop();return s.push(...i.map(a=>Sn(new Ut(a,a.sourceSpan)))),s.push(Sn(new ot(o,o.sourceSpan))),s}function wg(n,e,t){e=oo(e);let s=new Array;if(e instanceof Pr)if(e.expressions.length===1)e=e.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let r=V(e,n.job,t),i=new Ue("$event"),o=new qa(r,i);return s.push(Sn(new Ut(o))),s.push(Sn(new ot(i))),s}function oo(n){return n instanceof Mt?n.ast:n}function yg(n,e){M_(n.localRefs);for(let{name:t,value:s}of e.references)n.localRefs.push({name:t,target:s})}function M_(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}function qe(n,e){if(e===null)return null;let t=e.start.moveBy(n.start),s=e.start.moveBy(n.end),r=e.fullStart.moveBy(n.start);return new $(t,s,r)}function ol(n,e,t){let s=null;for(let r of t.children)if(!(r instanceof Mr)){if(s!==null)return null;(r instanceof Ht||r instanceof vt&&r.tagName!==null)&&(s=r)}if(s!==null){for(let i of s.attributes){let o=Fs.securityContext(Bs,i.name,!0);n.update.push(js(e,N.Attribute,i.name,v(i.value),null,o,!0,!1,null,Dn(i.i18n),i.sourceSpan))}for(let i of s.inputs)if(i.type!==ae.Animation&&i.type!==ae.Attribute){let o=Fs.securityContext(Bs,i.name,!0);n.create.push(Ft(e,N.Property,null,i.name,null,null,null,o))}let r=s instanceof Ht?s.name:s.tagName;return r===Bs?null:r}return null}function al(n,e){return hl(H(th).bitwiseAnd(v(n),null,!1),e)}function L_(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function F_(n,e){if(Array.isArray(n.predicate)){let t=[];return n.predicate.forEach(s=>{let r=s.split(",").map(i=>v(i.trim()));t.push(...r)}),e.getConstLiteral(se(t),!0)}else switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return T(d.resolveForwardRef).callFn([n.predicate.expression])}}function Eg(n,e,t,s){let r=[];s!==void 0&&r.push(...s),n.isSignal&&r.push(new Et(H(Wi),n.propertyName)),r.push(F_(n,e),v(L_(n))),n.read&&r.push(n.read);let i=n.isSignal?t.signalBased:t.nonSignal;return T(i).callFn(r)}var gh=Symbol("queryAdvancePlaceholder");function Sg(n){let e=[],t=0,s=()=>{t>0&&(e.unshift(T(d.queryAdvance).callFn(t===1?[]:[v(t)]).toStmt()),t=0)};for(let r=n.length-1;r>=0;r--){let i=n[r];i===gh?t++:(s(),e.unshift(i))}return s(),e}function B_(n,e,t){let s=[],r=[],i=Em(a=>r.push(a),eh);n.forEach(a=>{let l=Eg(a,e,{signalBased:d.viewQuerySignal,nonSignal:d.viewQuery});if(s.push(l.toStmt()),a.isSignal){r.push(gh);return}let c=i(),u=T(d.loadQuery).callFn([]),p=T(d.queryRefresh).callFn([c.set(u)]),m=H(Wi).prop(a.propertyName).set(a.first?c.prop("first"):c);r.push(p.and(m).toStmt())});let o=t?`${t}_Query`:null;return Gr([new Be(th,Ku),new Be(Wi,null)],[al(1,s),al(2,Sg(r))],Bt,null,o)}function R_(n,e,t){let s=[],r=[],i=Em(a=>r.push(a),eh);for(let a of n){if(s.push(Eg(a,e,{nonSignal:d.contentQuery,signalBased:d.contentQuerySignal},[H("dirIndex")]).toStmt()),a.isSignal){r.push(gh);continue}let l=i(),c=T(d.loadQuery).callFn([]),u=T(d.queryRefresh).callFn([l.set(c)]),p=H(Wi).prop(a.propertyName).set(a.first?l.prop("first"):l);r.push(u.and(p).toStmt())}let o=t?`${t}_ContentQueries`:null;return Gr([new Be(th,Ku),new Be(Wi,null),new Be("dirIndex",null)],[al(1,s),al(2,Sg(r))],Bt,null,o)}var Du=class extends fu{constructor(){super(ng)}parse(e,t,s){return super.parse(e,t,s)}},qf=".",O_="attr",$_="class",V_="style",q_="*",fc="animate-",Mu=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+q_.length,u=this._parseTemplateBindings(e,t,s,c,r);for(let p of u){let m=es(s,p.sourceSpan),g=p.key.source,w=es(s,p.key.span);if(p instanceof Bi){let y=p.value?p.value.source:"$implicit",b=p.value?es(s,p.value.span):void 0;a.push(new Mc(g,y,m,w,b))}else if(p.value){let y=l?m:s,b=es(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,ls.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){mc(e)?(e=e.substring(1),l!==void 0&&(l=es(l,new gt(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,ls.ERROR),this._parseAnimation(e,t,s,r,l,i,o,a)):a.push(new vi(e,this._exprParser.wrapLiteralPrimitive(t,"",r),is.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(fc)?(p=!0,e=e.substring(fc.length),u!==void 0&&(u=es(u,new gt(u.start.offset+fc.length,u.end.offset)))):mc(e)&&(p=!0,e=e.substring(1),u!==void 0&&(u=es(u,new gt(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 vi(e,t,s?is.TWO_WAY:is.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 vi(e,c,is.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 Ea(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(qf),c;if(l.length>1)if(l[0]==O_){a=l.slice(1).join(qf),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=gc(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let p=a.substring(0,u),m=a.substring(u+1);a=Bc(p,m)}o=ae.Attribute}else l[0]==$_?(a=l[1],o=ae.Class,c=[le.NONE]):l[0]==V_&&(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=gc(this._schemaRegistry,e,u,!1),o=t.type===is.TWO_WAY?ae.TwoWay:ae.Property,s||this._validatePropertyOrAttributeName(u,t.sourceSpan,!1)}return new Ea(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),mc(e)?(e=e.slice(1),l!==void 0&&(l=es(l,new gt(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 gc(this._schemaRegistry,e,r,s)}_parseAnimationEvent(e,t,s,r,i,o){let a=pw(e,[e,""]),l=a[0],c=a[1].toLowerCase(),u=this._parseAction(t,r);i.push(new ya(l,c,$t.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]=hw(e,[null,e]),p=this.errors.length,m=this._parseAction(t,i),g=this.errors.length===p;o.push([e,m.source]),s&&g&&!this._isAllowedAssignmentEvent(m)&&this._reportError("Unsupported expression in a two-way binding",r),a.push(new ya(u,c,s?$t.TwoWay:$t.Regular,m,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=ls.ERROR){this.errors.push(new O(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,ls.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Mt?this._isAllowedAssignmentEvent(e.ast):e instanceof Fi?this._isAllowedAssignmentEvent(e.expression):e instanceof qs||e instanceof Dr?!0:this._allowInvalidAssignmentEvents?e instanceof Nt?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof qs||e.right instanceof Dr):e instanceof Di||e instanceof Li:!1}};function mc(n){return n[0]=="@"}function gc(n,e,t,s){let r=[];return Cr.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 es(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 U_(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(H_);return e===null||e[1]=="package"||e[1]=="asset"}var H_=/^([^:/?#]+):/,W_="select",j_="link",z_="rel",G_="href",Q_="stylesheet",X_="style",Y_="script",K_="ngNonBindable",Z_="ngProjectAs";function bg(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{let c=l.name.toLowerCase();c==W_?e=l.value:c==G_?t=l.value:c==z_?s=l.value:l.name==K_?r=!0:l.name==Z_&&l.value.length>0&&(i=l.value)}),e=J_(e);let o=n.name.toLowerCase(),a=mt.OTHER;return Lc(o)?a=mt.NG_CONTENT:o==X_?a=mt.STYLE:o==Y_?a=mt.SCRIPT:o==j_&&s==Q_&&(a=mt.STYLESHEET),new Lu(a,e,t,r,i)}var mt=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}(mt||{}),Lu=class{constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}};function J_(n){return n===null||n.length===0?"*":n}var ex=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,tx=/^track\s+([\S\s]*)/,nx=/^(as\s)+(.*)/,vh=/^else[^\S\r\n]+if/,sx=/^let\s+([\S\s]*)/,Uf=/(\s*)(\S+)(\s*)/,xi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Hf(n){return n==="empty"}function Wf(n){return n==="else"||vh.test(n)}function rx(n,e,t,s){let r=cx(e),i=[],o=jf(n,r,s);o!==null&&i.push(new Ds(o.expression,fe(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let p of e)if(vh.test(p.name)){let m=jf(p,r,s);if(m!==null){let g=fe(t,p.children,p.children);i.push(new Ds(m.expression,g,m.expressionAlias,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}}else if(p.name==="else"){let m=fe(t,p.children,p.children);i.push(new Ds(null,m,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 Ca(i,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function ix(n,e,t,s){let r=[],i=ax(n,r,s),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?r.push(new O(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new O(l.sourceSpan,"@empty block cannot have parameters")):a=new qi(fe(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new O(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)r.push(new O(n.startSourceSpan,'@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 Br(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,fe(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function ox(n,e,t){let s=ux(n),r=n.parameters.length>0?ao(n.parameters[0],t):t.parseBinding("",!1,n.sourceSpan,0),i=[],o=[],a=null;for(let l of n.children){if(!(l instanceof Dt))continue;if((l.name!=="case"||l.parameters.length===0)&&l.name!=="default"){o.push(new Aa(l.name,l.sourceSpan,l.nameSpan));continue}let c=l.name==="case"?ao(l.parameters[0],t):null,u=new Vi(c,fe(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 xa(r,i,o,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:s}}function ax(n,e,t){if(n.parameters.length===0)return e.push(new O(n.startSourceSpan,"@for loop does not have an expression")),null;let[s,...r]=n.parameters,i=hx(s,e)?.match(ex);if(!i||i[2].trim().length===0)return e.push(new O(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;let[,o,a]=i;xi.has(o)&&e.push(new O(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(xi).join(", ")}.`));let l=s.expression.split(" ")[0],c=new $(s.sourceSpan.start,s.sourceSpan.start.moveBy(l.length)),u={itemName:new us(o,"$implicit",c,c),trackBy:null,expression:ao(s,t,a),context:Array.from(xi,p=>{let m=new $(n.startSourceSpan.end,n.startSourceSpan.end);return new us(p,p,m,m)})};for(let p of r){let m=p.expression.match(sx);if(m!==null){let w=new $(p.sourceSpan.start.moveBy(m[0].length-m[1].length),p.sourceSpan.end);lx(p.sourceSpan,m[1],w,o,u.context,e);continue}let g=p.expression.match(tx);if(g!==null){if(u.trackBy!==null)e.push(new O(p.sourceSpan,'@for loop can only have one "track" expression'));else{let w=ao(p,t,g[1]);w.ast instanceof et&&e.push(new O(n.startSourceSpan,'@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 O(p.sourceSpan,`Unrecognized @for loop paramater "${p.expression}"`))}return u}function lx(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 O(n,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(!xi.has(p))i.push(new O(n,`Unknown "let" parameter variable "${p}". The allowed variables are: ${Array.from(xi).join(", ")}`));else if(u===s)i.push(new O(n,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(m=>m.name===u))i.push(new O(n,`Duplicate "let" parameter variable "${p}"`));else{let[,m,g]=c[0].match(Uf)??[],w=m!==void 0&&c.length===2?new $(a.moveBy(m.length),a.moveBy(m.length+g.length)):t,y;if(c.length===2){let[,_,D]=c[1].match(Uf)??[];y=_!==void 0?new $(a.moveBy(c[0].length+1+_.length),a.moveBy(c[0].length+1+_.length+D.length)):void 0}let b=new $(w.start,y?.end??w.end);r.push(new us(u,p,b,w,y))}a=a.moveBy(l.length+1)}}function cx(n){let e=[],t=!1;for(let s=0;s1&&s0&&e.push(new O(r.startSourceSpan,"@else block cannot have parameters")),t=!0):vh.test(r.name)||e.push(new O(r.startSourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function ux(n){let e=[],t=!1;if(n.parameters.length!==1)return e.push(new O(n.startSourceSpan,"@switch block must have exactly one parameter")),e;for(let s of n.children)if(!(s instanceof so||s instanceof Qs&&s.value.trim().length===0)){if(!(s instanceof Dt)||s.name!=="case"&&s.name!=="default"){e.push(new O(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}s.name==="default"?(t?e.push(new O(s.startSourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new O(s.startSourceSpan,"@default block cannot have parameters")),t=!0):s.name==="case"&&s.parameters.length!==1&&e.push(new O(s.startSourceSpan,"@case block must have exactly one parameter"))}return e}function ao(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 jf(n,e,t){if(n.parameters.length===0)return e.push(new O(n.startSourceSpan,"Conditional block does not have an expression")),null;let s=ao(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 O(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(i,o)}var px=/^\d+\.?\d*(ms|s)?$/,dx=/^\s$/,zf=new Map([[gn,rt],[xr,yr],[Bn,Xt]]),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 Gf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("when"),o=new $(e.start.moveBy(i),e.start.moveBy(i+4)),a=_g(n,e);if(i===-1)r.push(new O(e,'Could not find "when" keyword in expression'));else{let l=lo(n,i+1),c=t.parseBinding(n.slice(l),!1,e,e.start.offset+l);xg("when",s,r,new $c(c,e,a,o))}}function Qf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("on"),o=new $(e.start.moveBy(i),e.start.moveBy(i+2)),a=_g(n,e);if(i===-1)s.push(new O(e,'Could not find "on" keyword in expression'));else{let l=lo(n,i+1);new Fu(n,l,e,t,s,r,a,o).parse()}}function _g(n,e){return n.startsWith("prefetch")?new $(e.start,e.start.moveBy(8)):null}var Fu=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 io().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(Xt)||t.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index0)throw new Error(`"${it.IDLE}" trigger cannot have parameters`);return new Vc(e,t,s,r)}function mx(n,e,t,s,r){if(n.length!==1)throw new Error(`"${it.TIMER}" trigger must have exactly one parameter`);let i=ll(n[0]);if(i===null)throw new Error(`Could not parse time value of trigger "${it.TIMER}"`);return new Uc(i,e,t,s,r)}function gx(n,e,t,s,r){if(n.length>0)throw new Error(`"${it.IMMEDIATE}" trigger cannot have parameters`);return new qc(e,t,s,r)}function vx(n,e,t,s,r,i){return wh(it.HOVER,n,i),new Sa(n[0]??null,e,t,s,r)}function wx(n,e,t,s,r,i){return wh(it.INTERACTION,n,i),new ba(n[0]??null,e,t,s,r)}function yx(n,e,t,s,r,i){return wh(it.VIEWPORT,n,i),new _a(n[0]??null,e,t,s,r)}function wh(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 Ht))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 lo(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 m=new $(n.sourceSpan.start,p);return{node:new Hs(fe(t,n.children,n.children),l,c,i,o,a,n.nameSpan,m,n.sourceSpan,n.startSourceSpan,u,n.i18n),errors:r}}function Ax(n,e,t){let s=null,r=null,i=null;for(let o of n)try{if(!Bu(o.name)){e.push(new O(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":s!==null?e.push(new O(o.startSourceSpan,"@defer block can only have one @placeholder block")):s=Tx(o,t);break;case"loading":r!==null?e.push(new O(o.startSourceSpan,"@defer block can only have one @loading block")):r=kx(o,t);break;case"error":i!==null?e.push(new O(o.startSourceSpan,"@defer block can only have one @error block")):i=Ix(o,t);break}}catch(a){e.push(new O(o.startSourceSpan,a.message))}return{placeholder:s,loading:r,error:i}}function Tx(n,e){let t=null;for(let s of n.parameters)if(Cg.test(s.expression)){if(t!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=ll(s.expression.slice(lo(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 Ri(fe(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function kx(n,e){let t=null,s=null;for(let r of n.parameters)if(bx.test(r.expression)){if(t!=null)throw new Error('@loading block can only have one "after" parameter');let i=ll(r.expression.slice(lo(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');t=i}else if(Cg.test(r.expression)){if(s!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=ll(r.expression.slice(lo(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 Oi(fe(e,n.children,n.children),t,s,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function Ix(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new $i(fe(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function Nx(n,e,t,s){let r={},i={};for(let o of n)_x.test(o.expression)?Gf(o,e,r,t):xx.test(o.expression)?Qf(o,r,t,s):Ex.test(o.expression)?Gf(o,e,i,t):Sx.test(o.expression)?Qf(o,i,t,s):t.push(new O(o.sourceSpan,"Unrecognized trigger"));return{triggers:r,prefetchTriggers:i}}var Px=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Xf=1,Yf=2,Kf=3,Zf=4,Jf=5,Dx=6,ui=7,ts={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},em="*";function Mx(n,e,t){let s=new Ru(e,t),r=fe(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 Ru=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=Nu(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=bg(e);if(s.type===mt.SCRIPT)return null;if(s.type===mt.STYLE){let b=Fx(e);return b!==null&&this.styles.push(b),null}else if(s.type===mt.STYLESHEET&&U_(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=Dw(e.name),i=[],o=[],a=[],l=[],c=[],u={},p=[],m=[],g=!1;for(let b of e.attrs){let _=!1,D=tm(b.name),Y=!1;if(b.i18n&&(u[b.name]=b.i18n),D.startsWith(em)){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",b.sourceSpan),Y=!0,g=!0;let te=b.value,me=D.substring(em.length),Ke=[],Re=b.valueSpan?b.valueSpan.start.offset:b.sourceSpan.start.offset+b.name.length;this.bindingParser.parseInlineTemplateBinding(me,te,b.sourceSpan,Re,[],p,Ke,!0),m.push(...Ke.map(Se=>new us(Se.name,Se.value,Se.sourceSpan,Se.keySpan,Se.valueSpan)))}else _=this.parseAttribute(r,b,[],i,o,a,l);!_&&!Y&&c.push(this.visitAttribute(b))}let w;s.nonBindable?w=fe(Lx,e.children).flat(1/0):w=fe(this,e.children,e.children);let y;if(s.type===mt.NG_CONTENT){let b=s.selectAttr,_=e.attrs.map(D=>this.visitAttribute(D));y=new Rr(b,_,w,e.sourceSpan,e.i18n),this.ngContentSelectors.push(b)}else if(r){let b=this.extractAttributes(e.name,i,u);y=new vt(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 Ht(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),_=[];b.literal.forEach(me=>_.push(me)),b.bound.forEach(me=>_.push(me));let D=y instanceof Ht?{attributes:y.attributes,inputs:y.inputs,outputs:y.outputs}:{attributes:[],inputs:[],outputs:[]},Y=r&&t?void 0:e.i18n,te=y instanceof vt?null:y.name;y=new vt(te,D.attributes,D.inputs,D.outputs,_,[y],[],m,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,Y)}return t&&(this.inI18nBlock=!1),y}visitAttribute(e){return new Fr(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(!Nu(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(Fw)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new Lr(l,o.sourceSpan)}else r[i]=this._visitTextWithInterpolation(o.text,o.sourceSpan,null)}),new Ta(s,r,e.sourceSpan,t)}visitExpansionCase(e){return null}visitComment(e){return this.options.collectCommentNodes&&this.commentNodes.push(new Mr(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 Ui(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=Cx(e,this.findConnectedBlocks(s,t,Bu),this,this.bindingParser);break;case"switch":r=ox(e,this,this.bindingParser);break;case"for":r=ix(e,this.findConnectedBlocks(s,t,Hf),this,this.bindingParser);break;case"if":r=rx(e,this.findConnectedBlocks(s,t,Wf),this,this.bindingParser);break;default:let i;Bu(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):Hf(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Wf(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 Aa(e.name,e.sourceSpan,e.nameSpan),errors:[new O(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 Fr(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(Rc.fromBoundElementProperty(l,a))}}),{bound:r,literal:i}}parseAttribute(e,t,s,r,i,o,a){let l=tm(t.name),c=t.value,u=t.sourceSpan,p=t.valueSpan?t.valueSpan.start.offset:u.start.offset;function m(_,D,Y){let te=t.name.length-l.length,me=_.start.moveBy(D.length+te),Ke=me.moveBy(Y.length);return new $(me,Ke,me,Y)}let g=l.match(Px);if(g){if(g[Xf]!=null){let _=g[ui],D=m(u,g[Xf],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,u,p,t.valueSpan,s,r,D)}else if(g[Yf])if(e){let _=g[ui],D=m(u,g[Yf],_);this.parseVariable(_,c,u,D,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(g[Kf]){let _=g[ui],D=m(u,g[Kf],_);this.parseReference(_,c,u,D,t.valueSpan,a)}else if(g[Zf]){let _=[],D=g[ui],Y=m(u,g[Zf],D);this.bindingParser.parseEvent(D,c,!1,u,t.valueSpan||u,s,_,Y),vc(_,i)}else if(g[Jf]){let _=g[ui],D=m(u,g[Jf],_);this.bindingParser.parsePropertyBinding(_,c,!1,!0,u,p,t.valueSpan,s,r,D),this.parseAssignmentEvent(_,c,u,t.valueSpan,s,i,D)}else if(g[Dx]){let _=m(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,p,t.valueSpan,s,r,_)}return!0}let w=null;if(l.startsWith(ts.BANANA_BOX.start)?w=ts.BANANA_BOX:l.startsWith(ts.PROPERTY.start)?w=ts.PROPERTY:l.startsWith(ts.EVENT.start)&&(w=ts.EVENT),w!==null&&l.endsWith(w.end)&&l.length>w.start.length+w.end.length){let _=l.substring(w.start.length,l.length-w.end.length),D=m(u,w.start,_);if(w.start===ts.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(_,c,!1,!0,u,p,t.valueSpan,s,r,D),this.parseAssignmentEvent(_,c,u,t.valueSpan,s,i,D);else if(w.start===ts.PROPERTY.start)this.bindingParser.parsePropertyBinding(_,c,!1,!1,u,p,t.valueSpan,s,r,D);else{let Y=[];this.bindingParser.parseEvent(_,c,!1,u,t.valueSpan||u,s,Y,D),vc(Y,i)}return!0}let y=m(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,t.valueSpan,s,r,y,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,r){let i=Zm(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new Lr(o,t,r):new Pn(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 us(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 Hi(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),vc(l,o)}reportError(e,t,s=ls.ERROR){this.errors.push(new O(t,e,s))}},Ou=class{visitElement(e){let t=bg(e);if(t.type===mt.SCRIPT||t.type===mt.STYLE||t.type===mt.STYLESHEET)return null;let s=fe(this,e.children,null);return new Ht(e.name,fe(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Fr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Pn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let s=[new Pn(e.startSourceSpan.toString(),e.startSourceSpan),...fe(this,e.children)];return e.endSourceSpan!==null&&s.push(new Pn(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Pn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},Lx=new Ou;function tm(n){return/^data-/i.test(n)?n.substring(5):n}function vc(n,e){e.push(...n.map(t=>Oc.fromParsedEvent(t)))}function Fx(n){return n.children.length!==1||!(n.children[0]instanceof Qs)?null:n.children[0].value}var Bx=[" ",` `,"\r"," "];function Rx(n,e,t={}){let{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=t,a=cl(s,o),c=new Du().parse(n,e,be(E({leadingTriviaChars:Bx},t),{tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!0}));if(!t.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let me={interpolationConfig:s,preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(me.commentNodes=[]),me}let u=c.rootNodes,p=!(t.preserveSignificantWhitespace??!0),m=new sl(s,!r,i,void 0,t.preserveSignificantWhitespace,p),g=m.visitAllWithErrors(u);if(!t.alwaysAttemptHtmlToR3AstConversion&&g.errors&&g.errors.length>0){let me={interpolationConfig:s,preserveWhitespaces:r,errors:g.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(me.commentNodes=[]),me}u=g.rootNodes,r||(u=fe(new tl(!0,void 0,!1),u),m.hasI18nMeta&&(u=fe(new sl(s,!1,void 0,void 0,!0,p),u)));let{nodes:w,errors:y,styleUrls:b,styles:_,ngContentSelectors:D,commentNodes:Y}=Mx(u,a,{collectCommentNodes:!!t.collectCommentNodes});y.push(...c.errors,...g.errors);let te={interpolationConfig:s,preserveWhitespaces:r,errors:y.length>0?y:null,nodes:w,styleUrls:b,styles:_,ngContentSelectors:D};return t.collectCommentNodes&&(te.commentNodes=Y),te}var Ox=new Wr;function cl(n=mn,e=!1){return new Mu(new nl(new io),n,Ox,[],e)}var Ag="%COMP%",$x=`_nghost-${Ag}`,Vx=`_ngcontent-${Ag}`;function Tg(n,e,t){let s=new ds,r=Xu(n.selector);return s.set("type",n.type.value),r.length>0&&s.set("selectors",vr(r)),n.queries.length>0&&s.set("contentQueries",R_(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",B_(n.viewQueries,e,n.name)),s.set("hostBindings",Qx(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",Dd(n.inputs,!0)),s.set("outputs",Dd(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 kg(n,e){let t=[],s=e.providers,r=e.viewProviders,i=Object.keys(e.inputs);if(s||r){let o=[s||new qt([])];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([Jx(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 qx(n,e,t){let s=Tg(n,e,t);kg(s,n);let r=T(d.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=Gx(n);return{expression:r,type:i,statements:[]}}function Ux(n,e,t){let s=Tg(n,e,t);kg(s,n);let r=n.selector&&Cr.parse(n.selector),i=r&&r[0];if(i){let m=i.getAttrs();m.length&&s.set("attrs",e.getConstLiteral(se(m.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 m=`${o}_DeferFn`;e.statements.push(new Xe(m,n.defer.dependenciesFn,void 0,He.Final)),a=H(m)}let l=m_(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);hg(l,x.Tmpl);let c=p_(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",En([],[...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",Wx(se(n.declarations.map(m=>m.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let m=[n.type.value];n.rawImports&&m.push(n.rawImports),s.set("dependencies",T(d.getComponentDepsFactory).callFn(m))}if(n.encapsulation===null&&(n.encapsulation=rs.Emulated),n.styles&&n.styles.length){let g=(n.encapsulation==rs.Emulated?Zx(n.styles,Vx,$x):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===rs.Emulated&&(n.encapsulation=rs.None);n.encapsulation!==rs.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!==Qu.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=Hx(n);return{expression:u,type:p,statements:[]}}function Hx(n){let e=Ig(n);return e.push(Vu(n.template.ngContentSelectors)),e.push(We(v(n.isStandalone))),e.push(Ng(n)),n.isSignal&&e.push(We(v(n.isSignal))),We(T(d.ComponentDeclaration,e))}function Wx(n,e){switch(e){case 0:return n;case 1:return En([],n);case 2:let t=n.prop("map").callFn([T(d.resolveForwardRef)]);return En([],t);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function jx(n){return We(v(n))}function $u(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 Vu(n){return n.length>0?We(se(n.map(e=>v(e)))):yn}function Ig(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[pl(n.type.type,n.typeArgumentCount),e!==null?jx(e):yn,n.exportAs!==null?Vu(n.exportAs):yn,We(zx(n)),We($u(n.outputs)),Vu(n.queries.map(t=>t.propertyName))]}function zx(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 Gx(n){let e=Ig(n);return e.push(yn),e.push(We(v(n.isStandalone))),e.push(Ng(n)),n.isSignal&&e.push(We(v(n.isSignal))),We(T(d.DirectiveDeclaration,e))}function Qx(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=g_({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);hg(c,x.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",v(u)),d_(c)}var Xx=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Yx(n){let e={},t={},s={},r={};for(let i of Object.keys(n)){let o=n[i],a=i.match(Xx);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 Kx(n,e){let t=cl();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function Zx(n,e,t){let s=new Kc;return n.map(r=>s.shimCssText(r,e,t))}function Ng(n){return n.hostDirectives?.length?We(se(n.hostDirectives.map(e=>st([{key:"directive",value:ul(e.directive.type),quoted:!1},{key:"inputs",value:$u(e.inputs||{}),quoted:!1},{key:"outputs",value:$u(e.outputs||{}),quoted:!1}])))):yn}function Jx(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=nm(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=nm(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(st(r))}s.isForwardReference&&(t=!0)}return t?new Mn([],[new ot(se(e))]):se(e)}function nm(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 qu=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let t=Uu.apply(e.template),s=eC(t),{directives:r,eagerDirectives:i,bindings:o,references:a}=Hu.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:u,usedPipes:p,eagerPipes:m,deferBlocks:g}=Wu.applyWithScope(e.template,t);return new ju(e,r,i,o,a,l,c,u,s,p,m,g)}},Uu=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 Hs}static newRootScope(){return new n(null,null)}static apply(e){let t=n.newRootScope();return t.ingest(e),t}ingest(e){e instanceof vt?(e.variables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof Ds?(e.expressionAlias!==null&&this.visitVariable(e.expressionAlias),e.children.forEach(t=>t.visit(this))):e instanceof Br?(this.visitVariable(e.item),e.contextVariables.forEach(t=>this.visitVariable(t)),e.children.forEach(t=>t.visit(this))):e instanceof Vi||e instanceof qi||e instanceof Hs||e instanceof $i||e instanceof Ri||e instanceof Oi||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)}},Hu=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=Ow(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 vt&&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){}},Wu=class n extends wa{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 we?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 vt?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 vt)e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Ds)e.expressionAlias!==null&&this.visitNode(e.expressionAlias),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level);else if(e instanceof Br)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 Hs){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 Vi||e instanceof qi||e instanceof $i||e instanceof Ri||e instanceof Oi||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 Ln))return;let s=this.scope.lookup(t);s instanceof Ui&&e.receiver instanceof Ps||s!==null&&this.bindings.set(e,s)}},ju=class{constructor(e,t,s,r,i,o,a,l,c,u,p,m){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=m.map(g=>g[0]),this.deferredScopes=new Map(m)}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 ba)&&!(t instanceof _a)&&!(t instanceof Sa))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 Mr)){if(i!==null)return null;o instanceof Ht&&(i=o)}}return i}let r=this.findEntityInScope(e,s);if(r instanceof Hi&&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 Hi?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 Ht?e:e instanceof vt?null:this.referenceTargetToElement(e.node)}};function eC(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 zr=class{},zu=class{constructor(e=new Qc){this.jitEvaluator=e,this.FactoryTarget=kn,this.ResourceLoader=zr,this.elementSchemaRegistry=new Wr}compilePipe(e,t,s){let r={name:s.name,type:ke(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone},i=Ud(r);return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){let r=vC(s),i=Ud(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){let{expression:r,statements:i}=Md({name:s.name,type:ke(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:lm(s.providedIn),useClass:dr(s,"useClass"),useFactory:am(s,"useFactory"),useValue:dr(s,"useValue"),useExisting:dr(s,"useExisting"),deps:s.deps?.map(Lg)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){let{expression:r,statements:i}=Md({name:s.type.name,type:ke(s.type),typeArgumentCount:0,providedIn:lm(s.providedIn),useClass:dr(s,"useClass"),useFactory:am(s,"useFactory"),useValue:dr(s,"useValue"),useExisting:dr(s,"useExisting"),deps:s.deps?.map(cm)},!0);return this.jitExpression(r,e,t,i)}compileInjector(e,t,s){let r={name:s.name,type:ke(s.type),providers:s.providers&&s.providers.length>0?new W(s.providers):null,imports:s.imports.map(o=>new W(o))},i=qd(r);return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){let r=wC(s),i=qd(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){let r={kind:cs.Global,type:ke(s.type),bootstrap:s.bootstrap.map(ke),declarations:s.declarations.map(ke),publicDeclarationTypes:null,imports:s.imports.map(ke),includeImportTypes:!0,exports:s.exports.map(ke),selectorScopeMode:La.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(ke):null,id:s.id?new W(s.id):null},i=cy(r);return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){let r=uy(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){let r=im(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){let r=this.createParseSourceSpan("Directive",s.type.name,t),i=Dg(s,r);return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){let r=new oa,i=cl(),o=qx(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){let{template:r,interpolation:i,defer:o}=Mg(s.template,s.name,t,s.preserveWhitespaces,s.interpolation,void 0),a=be(E(E({},s),im(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(rC),declarationListEmitMode:0,defer:o,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:i,changeDetection:s.changeDetection??null,animations:s.animations!=null?new W(s.animations):null,viewProviders:s.viewProviders!=null?new W(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=sC(s,r,t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){let r=new oa,i=cl(s.interpolation),o=Ux(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){let r=_s({name:s.name,type:ke(s.type),typeArgumentCount:s.typeArgumentCount,deps:aC(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){let r=_s({name:s.type.name,type:ke(s.type),typeArgumentCount:0,deps:Array.isArray(s.deps)?s.deps.map(cm):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return ny(e,t,s)}jitExpression(e,t,s,r){let i=[...r,new Xe("$def",e,void 0,He.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Yc(t),!0).$def}};function sm(n){return be(E({},n),{isSignal:n.isSignal,predicate:Pg(n.predicate),read:n.read?new W(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function rm(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:Pg(n.predicate),descendants:n.descendants??!1,read:n.read?new W(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function Pg(n){return Array.isArray(n)?n:Zu(new W(n),1)}function im(n){let e=gC(n.inputs||[]),t=yc(n.outputs||[]),s=n.propMetadata,r={},i={};for(let a in s)s.hasOwnProperty(a)&&s[a].forEach(l=>{pC(l)?r[a]={bindingPropertyName:l.alias||a,classPropertyName:a,required:l.required||!1,isSignal:!!l.isSignal,transformFunction:l.transform!=null?new W(l.transform):null}:dC(l)&&(i[a]=l.alias||a)});let o=n.hostDirectives?.length?n.hostDirectives.map(a=>typeof a=="function"?{directive:ke(a),inputs:null,outputs:null,isForwardReference:!1}:{directive:ke(a.directive),isForwardReference:!1,inputs:a.inputs?yc(a.inputs):null,outputs:a.outputs?yc(a.outputs):null}):null;return be(E({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:ke(n.type),deps:null,host:E({},cC(n.propMetadata,n.typeSourceSpan,n.host)),inputs:E(E({},e),r),outputs:E(E({},t),i),queries:n.queries.map(sm),providers:n.providers!=null?new W(n.providers):null,viewQueries:n.viewQueries.map(sm),fullInheritance:!1,hostDirectives:o})}function Dg(n,e){let t=n.hostDirectives?.length?n.hostDirectives.map(s=>({directive:ke(s.directive),isForwardReference:!1,inputs:s.inputs?om(s.inputs):null,outputs:s.outputs?om(s.outputs):null})):null;return{name:n.type.name,type:ke(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?fC(n.inputs):{},outputs:n.outputs??{},host:tC(n.host),queries:(n.queries??[]).map(rm),viewQueries:(n.viewQueries??[]).map(rm),providers:n.providers!==void 0?new W(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:t}}function tC(n={}){return{attributes:nC(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function om(n){let e=null;for(let t=1;twc(a,!0))),n.directives&&o.push(...n.directives.map(a=>wc(a))),n.pipes&&o.push(...iC(n.pipes)));return be(E({},Dg(n,e)),{template:s,styles:n.styles??[],declarations:o,viewProviders:n.viewProviders!==void 0?new W(n.viewProviders):null,animations:n.animations!==void 0?new W(n.animations):null,defer:i,changeDetection:n.changeDetection??Qu.Default,encapsulation:n.encapsulation??rs.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}function rC(n){return be(E({},n),{type:new W(n.type)})}function wc(n,e=null){return{kind:fl.Directive,isComponent:e||n.kind==="component",selector:n.selector,type:new W(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function iC(n){return n?Object.keys(n).map(e=>({kind:fl.Pipe,name:e,type:new W(n[e])})):[]}function oC(n){return{kind:fl.Pipe,name:n.name,type:new W(n.type)}}function Mg(n,e,t,s,r,i){let o=r?Na.fromArray(r):mn,a=Rx(n,t,{preserveWhitespaces:s,interpolationConfig:o});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 qu(new Yo).bind({template:a.nodes});return{template:a,interpolation:o,defer:lC(c,i)}}function dr(n,e){if(n.hasOwnProperty(e))return Zu(new W(n[e]),0)}function am(n,e){if(n.hasOwnProperty(e))return new W(n[e])}function lm(n){let e=typeof n=="function"?new W(n):new je(n??null);return Zu(e,0)}function aC(n){return n==null?null:n.map(Lg)}function Lg(n){let e=n.attribute!=null,t=n.token===null?null:new W(n.token),s=e?new W(n.attribute):t;return Fg(s,e,n.host,n.optional,n.self,n.skipSelf)}function cm(n){let e=n.attribute??!1,t=n.token===null?null:new W(n.token);return Fg(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function Fg(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 lC(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=>{uC(o)?s.properties[o.hostPropertyName||i]=Sw("this",i):hC(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function uC(n){return n.ngMetadataName==="HostBinding"}function hC(n){return n.ngMetadataName==="HostListener"}function pC(n){return n.ngMetadataName==="Input"}function dC(n){return n.ngMetadataName==="Output"}function fC(n){return Object.keys(n).reduce((e,t)=>{let s=n[t];return typeof s=="string"||Array.isArray(s)?e[t]=mC(s):e[t]={bindingPropertyName:s.publicName,classPropertyName:t,transformFunction:s.transformFunction!==null?new W(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function mC(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 W(n[2]):null,required:!1,isSignal:!1}}function gC(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[s,r]=Bg(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 W(t.transform):null};return e},{})}function yc(n){return n.reduce((e,t)=>{let[s,r]=Bg(t);return e[r]=s,e},{})}function Bg(n){let[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}function vC(n){return{name:n.type.name,type:ke(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??!1}}function wC(n){return{name:n.type.name,type:ke(n.type),providers:n.providers!==void 0&&n.providers.length>0?new W(n.providers):null,imports:n.imports!==void 0?n.imports.map(e=>new W(e)):[]}}function yC(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new zu}var zA=new Tc("18.2.10"),co=class{constructor({defaultEncapsulation:e=rs.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=EC(dw(t)),this.strictInjectionParameters=s===!0}};function EC(n,e=!1){return n===null?e:n}var Gu=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 fn.PARSABLE_DATA}},GA=new Gu;yC(gi);var SC=[{provide:Mo,useFactory:()=>new Mo}],El=class{constructor(e){let t={defaultEncapsulation:fp.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){let t=bC(this._defaultOptions.concat(e));return yp.create({providers:[SC,{provide:co,useFactory:()=>new co({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(Mo)}};function bC(n){return{defaultEncapsulation:Rg(n.map(e=>e.defaultEncapsulation)),providers:_C(n.map(e=>e.providers)),preserveWhitespaces:Rg(n.map(e=>e.preserveWhitespaces))}}function Rg(n){for(let e=n.length-1;e>=0;e--)if(n[e]!==void 0)return n[e]}function _C(n){let e=[];return n.forEach(t=>t&&e.push(...t)),e}var Og=zl(Mp,"coreDynamic",[{provide:Lo,useValue:{},multi:!0},{provide:Dp,useClass:El,deps:[Lo]}]),xC=(()=>{class n extends zr{get(t){let s,r,i=new Promise((a,l)=>{s=a,r=l}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){let a=o.response,l=o.status;l===0&&(l=a?200:0),200<=l&&l<=300?s(a):r(`Failed to load ${t}`)},o.onerror=function(){r(`Failed to load ${t}`)},o.send(),i}static{this.\u0275fac=(()=>{let t;return function(r){return(t||(t=wp(n)))(r||n)}})()}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})(),$g=[qp,{provide:Lo,useValue:{providers:[{provide:zr,useClass:xC,deps:[]}]},multi:!0},{provide:Sp,useValue:Bp}],CC=new Np("18.2.10"),AC=zl(Og,"browserDynamic",$g);var ei={production:!1};var bl=(()=>{class n{constructor(t,s,r){this.ds=t,this.wt=s,this.us=r}initialize(){return Gn(this,null,function*(){Ae.mobile=screen.availWidth<=576,this.setupGridster(),this.us.isMobile()&&this.setupMobile();try{yield Promise.all([this.ds.loadMainConfig(),this.loadAddons()].map(t=>t.catch(()=>{})))}catch{}})}loadAddons(){return Gn(this,null,function*(){try{let t=yield this.ds.loadAddons();if(localStorage.devAddons)try{t=JSON.parse(localStorage.devAddons)}catch{}let s=[];if(t&&t.length){Ae.addons=[...t];for(let r=0;r{}))}}yield Promise.all(s)}catch(t){console.log(`Can't load addons: ${t}`)}})}setupGridster(){Le.displayGrid=nd.None,Le.draggable&&(Le.draggable.dragHandleClass=".drag-handle"),Le.resizable&&(Le.resizable.handles={s:!1,e:!1,n:!1,w:!1,se:!0,ne:!1,sw:!1,nw:!1}),Le.gridType="scrollVertical",Le.minCols=12,Le.maxCols=12,Le.floating=!0,Le.pushItems=!0,Le.resizable&&(Le.resizable.enabled=!1),Le.draggable&&(Le.draggable.enabled=!1),Le.margin=5,Le.mobileBreakPoint=576,window.location.href.split("#").pop()?.indexOf("widget=")!==-1&&(Le.mobileBreakPoint=0)}loadAddon(t,s){return Gn(this,null,function*(){let r;try{r=yield fetch(t)}catch{return}if(!r)return;let i=yield r.text();window.exports={};let o={tslib:op,"@angular/core":Oe,"@angular/platform-browser":ii,"highcharts/highstock":IC,"@angular/platform-browser-dynamic":yh,"@angular/common":Fp,"@angular/router":Qp,"../app/services/util.service":{UtilService:rr},"../app/services/variables.service":{VariablesService:pd},"../app/services/storage.service":{StorageService:ln},"../app/services/data.service":{DataService:At},"../app/services/filter.service":{FilterService:ir},"../app/services/widget-type.service":{WidgetTypeService:lr},"../app/services/dashboard.service":{DashboardService:ad},"../app/services/namespace.service":{NamespaceService:cn},"../app/services/i18n.service":{I18nService:Xn},"../app/services/broadcast.service":{BroadcastService:od},"../app/services/sidebar.service":{SidebarService:Tt},"../app/components/widgets/base-widget.class":{BaseWidget:ld},"../app/components/widgets/charts/base-chart.class":{BaseChartClass:hd}};window.require=u=>(o[u]||console.error(`Can't find module ${u} in required shim.`),o[u]),ei.production||(i+=`\r -//# sourceURL=`+t),window["eval"](i);let l,c="";for(let u in exports)if(exports[u].toString().startsWith("class")){l=exports[u],c=u;break}if(l){let u=t.split("/").pop().replace(/dsw.addons./ig,"").split(".").slice(0,-1).join("."),p=l.AddonInfo;p.overrideBaseType?this.wt.register(p.overrideBaseType,p?.type||"custom",l,p):this.wt.register(u,p?.type||"custom",l,p)}else console.warn(`Can't load addon for file: ${t}. Exported class not found.`)})}setupMobile(){window.addEventListener("resize",()=>{let t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)})}static{this.\u0275fac=function(s){return new(s||n)(Ze(At),Ze(lr),Ze(rr))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function PC(n,e){if(n&1){let t=Ce();B(0,"button",14),J("click",function(){ce(t);let r=ne();return ue(r.onLoginOAuthClick())}),ve(1),_e(2,"i18n"),R()}n&2&&(k(),rn("",xe(2,1,"signinOAuth")," "))}var bh=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u){this.ds=t,this.i18n=s,this.hs=r,this.ss=i,this.start=o,this.ns=a,this.st=l,this.route=c,this.router=u,this.startTime=-1,this.oAuthUrl=xp(""),this.hs.visible$.next(!1),this.ss.hide(),delete sessionStorage.dashboarList,Ae.desktop&&delete localStorage.DSWMobileServer,this.initModel(),Ae.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let p=this.route.snapshot.queryParamMap.get("ns"),m=this.route.snapshot.queryParamMap.get("from");m&&(p=m.split("/").filter(g=>g)[0]),this.model.namespace=p||dt||""}initModel(){this.model={isDesktop:Ae.desktop,ver:Ae.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:""}}initNamespace(){let t=this.route.snapshot.queryParamMap.get("from");if(t){let s=decodeURIComponent(t),r=this.getParameterByName("ns",s);r&&(this.model.namespace=r)}else{let s=this.route.snapshot.queryParamMap.get("ns");s&&(this.model.namespace=s)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(t=>{try{if(typeof t=="string"){let s=JSON.parse(t);this.oAuthUrl.set(s.url||"")}else this.oAuthUrl.set(t.url||"")}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let t=localStorage.selectedServer;if(!t||(t=parseInt(t,10),isNaN(t)))return;let s=[];try{s=JSON.parse(localStorage.serverList||"[]")}catch(i){console.error(i)}let r=s[t];r&&(this.model.server=r.server||"",this.model.login=r.login||"",this.model.password=r.password||"",this.model.namespace=r.namespace||"")}saveServer(){let t=prompt("Please enter server name",this.model.server),s=[];try{s=JSON.parse(localStorage.serverList||"[]")}catch(r){console.error(r)}s.push({name:t,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(s),localStorage.selectedServer=s.length-1}showServers(){}getParameterByName(t,s){t=t.replace(/[\[\]]/g,"\\$&");let i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(s);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.oAuthUrl()}onLoginClick(){this.clearError();let t=this.getMobileUrl();this.startTime=new Date().getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,Ae.mobile&&!Ae.desktop?t:"").catch(s=>this.onError(s)).then(s=>this.onSuccess(s,this.model.namespace))}getMobileUrl(){let t=this.model.server,s=t.replace("://","").indexOf("/")!==-1;return t.toLowerCase().indexOf("http")===-1&&(t="http://"+t),s||(t+="/MDX2JSON/"),t.charAt(t.length-1)!=="/"&&(t+="/"),t}onSuccess(t,s){return Gn(this,null,function*(){if(!t)return;Ae.mobile&&Ae.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username;try{yield this.start.initialize()}catch(i){console.error(i)}this.ns.setNamespaces(t.Mappings.Mapped),this.ns.setCurrent(s),this.st.loadServerSettings(t);let r=this.route.snapshot.queryParamMap.get("from");r?this.router.navigateByUrl(r):this.router.navigateByUrl("/"+s)})}onError(t){let{error:s,status:r}=t;if(new Date().getTime()-this.startTime>=Ae.const.timeout){this.showError(this.i18n.get("errTimeout"));return}switch(r){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(s.Error||t.message);break;default:this.showError(t.message);break}}clearError(){this.model.error=""}showError(t){this.model.error=t}scanSettings(){cordova.plugins.barcodeScanner.scan(t=>{let r=t.text.split("|");if(r[0].toLowerCase()!=="dsw"){alert("Incorrect QR code");return}this.model.server=r[1],this.model.login=r[2],this.model.password=r[3],this.model.namespace=r[4],this.onLoginClick()},t=>{alert("Scanning failed: "+t)})}static{this.\u0275fac=function(s){return new(s||n)(M(At),M(Xn),M(hn),M(Tt),M(bl),M(cn),M(ln),M(on),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["app-login-screen"]],standalone:!0,features:[Me],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(s,r){s&1&&(B(0,"span",0),ve(1),R(),B(2,"span",1),J("click",function(){return r.scanSettings()}),ge(3,"i",2),R(),B(4,"div",3)(5,"div",4),ve(6," IRIS Analytics "),R(),B(7,"input",5),_e(8,"i18n"),Tn("ngModelChange",function(o){return An(r.model.server,o)||(r.model.server=o),o}),R(),B(9,"input",6),_e(10,"i18n"),Tn("ngModelChange",function(o){return An(r.model.login,o)||(r.model.login=o),o}),R(),B(11,"input",7),_e(12,"i18n"),Tn("ngModelChange",function(o){return An(r.model.password,o)||(r.model.password=o),o}),R(),B(13,"input",8),_e(14,"i18n"),Tn("ngModelChange",function(o){return An(r.model.namespace,o)||(r.model.namespace=o),o}),R(),B(15,"div",9)(16,"button",10),J("click",function(){return r.showServers()}),R(),B(17,"button",10),J("click",function(){return r.saveServer()}),R(),B(18,"button",11),J("click",function(){return r.onLoginClick()}),ve(19),_e(20,"i18n"),R(),ye(21,PC,3,3,"button",12),R(),B(22,"div",13),ve(23),R()()),s&2&&(k(),Qt(r.model.ver),k(6),ri("placeholder",xe(8,16,"server")),ee("hidden",r.model.isDesktop),Cn("ngModel",r.model.server),k(2),ri("placeholder",xe(10,18,"login")),Cn("ngModel",r.model.login),k(2),ri("placeholder",xe(12,20,"password")),Cn("ngModel",r.model.password),k(2),ri("placeholder",xe(14,22,"namespace")),Cn("ngModel",r.model.namespace),k(3),ee("hidden",r.model.isDesktop),k(),ee("hidden",r.model.isDesktop),k(2),Qt(xe(20,24,"signin")),k(2),pe(r.oAuthUrl()?21:-1),k(),ee("hidden",!r.model.error),k(),rn(" ",r.model.error," "))},dependencies:[un,$o,Yn,ed,Kn,Xp,md,Oo],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}"]})}}return n})();var Ug=["gridster"],LC=["widgets"];function FC(n,e){if(n&1&&ge(0,"dsw-widget",9,1),n&2){ne();let t=kp(0);Je("transparent",t.inline),ee("widget",t)}}function BC(n,e){n&1&&ge(0,"div",7),n&2&&ee("ngClass",e)}function RC(n,e){if(n&1&&(B(0,"label",8)(1,"span"),ve(2),R()()),n&2){let t=ne().$implicit,s=ne();ee("title",t.customTitle||t.title),k(),jl(s.model.fontColors[t.fontColor]),k(),Qt(t.customTitle||t.title)}}function OC(n,e){if(n&1){let t=Ce();Ap(0),B(1,"gridster-item",5),J("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),ye(2,FC,2,3,"dsw-widget",6)(3,BC,1,1,"div",7)(4,RC,3,4,"label",8),R()}if(n&2){let t,s=e.$implicit,r=ne(),i=Tp(r.itemDesc[s.idx]);k(),jl("tile cl"+s.color+" "+(s.template?"tile-with-widget":"")),No("background-image","url("+s.Cover+")"),Je("selected",r.model.edItem==s)("editing",r.model.edItem),ee("item",s),k(),pe(i?2:-1),k(),pe((t=!i&&r.model.icons[s.icon])?3:-1,t),k(),pe(s.hideTitle?-1:4)}}var Wg=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u,p,m){this.st=t,this.route=s,this.router=r,this.ss=i,this.hs=o,this.ms=a,this.ds=l,this.es=c,this.i18n=u,this.fs=p,this.ns=m,this.itemDesc=[],this.isResizing=!1,this.model={tiles:[],widgetList:[],fontColors:Ae.const.fontColors,icons:Ae.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=t.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear()}ngOnInit(){this.subscribeForData(),this.subscribeForEditingMode(),this.subscribeForGridsterAnimations(),this.subscribeForGridsterResize()}getDesc(t){return this.itemDesc[t]}startEditing(t){this.model.edItem=t,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-Y7U4RJXJ.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(t){if(this.model.edItem){this.startEditing(t);return}let s=t.fullPath;t.isFolder&&(s=t.title===""?"..":t.title),this.router.navigate([s],{relativeTo:t.isFolder?this.route:this.route.root.children[0]})}retrieveData(t,s){if(t){if(t&&t.Error){this.es.show(t.data.Error);return}if(t){if(!t.children||t.children.length===0){this.es.show(this.i18n.get("errNoDashboards"));return}this.model.tiles=this.getTiles(t,s)}return this.model.tiles}}setupList(t){for(let s=0;s{this.retriveWidgetData(r,t[s])}))}createDataCallback(t){return function(s){this.retriveWidgetData(s,t)}}getTiles(t,s){let r=t.children,i=this.st.getTilesSettings();if(i=i[this.folder]||{},r.forEach(o=>{o.fullPath||(o.fullPath=o.path)}),s)r=r.filter(o=>o.title.toLocaleLowerCase().indexOf(s.toLocaleLowerCase())!==-1);else{this.folder&&(r=r.filter(a=>a.fullPath.startsWith(this.folder+"/")));let o=[];r.forEach(a=>{a.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(a.path=a.fullPath.slice(this.folder.length!==0?this.folder.length+1:0,a.fullPath.length));let l=a.path.split("/");l.length!==1&&(o.some(c=>c===l[0])||o.push(l[0]))}),r=r.filter(a=>a.path.split("/").length===1),r=[...r,...o.map(a=>({isFolder:!0,title:a}))]}r.forEach(o=>{!o.isFolder&&!o.title&&(o.title=o.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!s&&r.push({isFolder:!0,title:""}),r=r.sort((o,a)=>o.isFolder&&!a.isFolder?-1:a.isFolder&&!o.isFolder||o.title>a.title?1:-1);for(let o=0;o{!this.widgets||t.propertyName!=="width"&&t.propertyName!=="height"||this.widgets.toArray().forEach(s=>{s.component&&s.component.onResize()})})}subscribeForGridsterAnimations(){this.subSidebarAnimEnd.subscribe(()=>{this.tilesOptions?.api?.resize&&this.tilesOptions.api.resize()})}subscribeForEditingMode(){this.ms.onEditDashboard.subscribe(t=>{t?this.startEditing(this.model.tiles[0]):this.stopEditing()})}subscribeForData(){this.data$=xo([this.st.onTilesChanged.pipe(up("")),this.route.url,this.route.params.pipe(hp(t=>(t.ns?.toLowerCase()!==dt.toLowerCase()&&this.ns.setCurrent(t.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(To())]).pipe(_o(([t,s,r,i])=>{this.folder=decodeURIComponent(s.map(a=>a.path).join("/")||""),this.isLoading=!1;let o=this.retrieveData(JSON.parse(JSON.stringify(r)),i||"");return this.isSpinner=!1,o}))}static{this.\u0275fac=function(s){return new(s||n)(M(ln),M(on),M(an),M(Tt),M(hn),M(Vo),M(At),M(sr),M(Xn),M(ir),M(cn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-folder-screen"]],viewQuery:function(s,r){if(s&1&&(ut(Ug,7,sn),ut(Ug,7),ut(LC,5,Yl)),s&2){let i;ht(i=pt())&&(r.gridster=i.first),ht(i=pt())&&(r.gridsterComp=i.first),ht(i=pt())&&(r.widgets=i)}},standalone:!0,features:[Me],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(s,r){s&1&&(B(0,"gridster",2,0),zt(2,OC,5,13,"gridster-item",3,Qn),_e(4,"async"),R(),ge(5,"img",4)),s&2&&(Je("no-anim",r.isResizing),ee("options",r.tilesOptions),k(2),Gt(xe(4,4,r.data$)),k(3),ee("hidden",!r.isSpinner))},dependencies:[sd,rd,Yl,nr,Ro,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}"]})}}return n})();function $C(n,e){n&1&&ge(0,"dsw-folder-screen")}function VC(n,e){n&1&&ge(0,"dsw-dashboard-screen")}var jg=(()=>{class n{constructor(t,s){this.route=t,this.hs=s,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=xo([this.route.url,this.route.params]).subscribe(([r,i])=>{let o=[i.name,...r.map(a=>a.path)].join("/");this.isFolder=o.indexOf(".dashboard")===-1})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}static{this.\u0275fac=function(s){return new(s||n)(M(on),M(hn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-main-screen"]],standalone:!0,features:[Me],decls:2,vars:2,template:function(s,r){s&1&&ye(0,$C,1,0,"dsw-folder-screen")(1,VC,1,0,"dsw-dashboard-screen"),s&2&&(pe(r.isFolder?0:-1),k(),pe(r.isFolder?-1:1))},dependencies:[Wg,fd],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]})}}return n})();var _h=(()=>{class n{constructor(t,s,r,i,o,a){this.router=t,this.ds=s,this.route=r,this.st=i,this.ns=o,this.wt=a,this.previousNS="",this.model={},this.isLoaded=!1}checkEmbed(t){let s=this.st.serverSettings?.Embed;return s&&t.url.split("?")[0]!==s?(this.router.navigateByUrl(s),!0):!1}resolve(t,s){let r=t.params.ns;return new ip(i=>{let o=()=>{this.isLoaded=!0,i.next(this.model),i.complete()};if(this.checkEmbed(s))return;if(!dt){if(!r){this.router.navigateByUrl("/login"),o();return}this.ns.setCurrent(r)}if(this.previousNS===dt){o();return}let a=this.ds.loadConfig(dt).then(c=>this.st.loadConfig(c)).catch(c=>this.st.loadConfig(null)),l=this.loadServerSettings();Promise.all([a,l]).finally(()=>{this.checkEmbed(s)||(this.previousNS=dt,o())})})}loadServerSettings(){return new Promise(t=>{this.ds.getSettings(dt).then(s=>{this.st.loadServerSettings(s)}).finally(()=>t())})}static{this.\u0275fac=function(s){return new(s||n)(Ze(an),Ze(At),Ze(on),Ze(ln),Ze(cn),Ze(lr))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var xh=[{path:"",component:bh,resolve:{model:cn}},{path:"login",component:bh},{path:":ns",resolve:{model:_h},runGuardsAndResolvers:"always",children:[{path:"**",component:jg,data:{isDashboard:!0},resolve:{model:_h},runGuardsAndResolvers:"always"}]}];function zg(n){return new Z(3e3,!1)}function qC(){return new Z(3100,!1)}function UC(){return new Z(3101,!1)}function HC(n){return new Z(3001,!1)}function WC(n){return new Z(3003,!1)}function jC(n){return new Z(3004,!1)}function zC(n,e){return new Z(3005,!1)}function GC(){return new Z(3006,!1)}function QC(){return new Z(3007,!1)}function XC(n,e){return new Z(3008,!1)}function YC(n){return new Z(3002,!1)}function KC(n,e,t,s,r){return new Z(3010,!1)}function ZC(){return new Z(3011,!1)}function JC(){return new Z(3012,!1)}function e1(){return new Z(3200,!1)}function t1(){return new Z(3202,!1)}function n1(){return new Z(3013,!1)}function s1(n){return new Z(3014,!1)}function r1(n){return new Z(3015,!1)}function i1(n){return new Z(3016,!1)}function o1(n,e){return new Z(3404,!1)}function a1(n){return new Z(3502,!1)}function l1(n){return new Z(3503,!1)}function c1(){return new Z(3300,!1)}function u1(n){return new Z(3504,!1)}function h1(n){return new Z(3301,!1)}function p1(n,e){return new Z(3302,!1)}function d1(n){return new Z(3303,!1)}function f1(n,e){return new Z(3400,!1)}function m1(n){return new Z(3401,!1)}function g1(n){return new Z(3402,!1)}function v1(n,e){return new Z(3505,!1)}function vs(n){switch(n.length){case 0:return new ar;case 1:return n[0];default:return new Xl(n)}}function ov(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((m,g)=>{let w=g,y=m;if(g!=="offset")switch(w=n.normalizePropertyName(w,r),y){case qo:y=t.get(g);break;case pn: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 a1(r);return i}function Gh(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ch(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ch(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ch(t,"destroy",n)));break}}function Ch(n,e,t){let s=t.totalTime,r=!!t.disabled,i=Qh(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 Qh(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function xt(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Gg(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var w1=typeof document>"u"?null:document.documentElement;function Xh(n){let e=n.parentNode||n.host||null;return e===w1?null:e}function y1(n){return n.substring(1,6)=="ebkit"}var Xs=null,Qg=!1;function E1(n){Xs||(Xs=S1()||{},Qg=Xs.style?"WebkitAppearance"in Xs.style:!1);let e=!0;return Xs.style&&!y1(n)&&(e=n in Xs.style,!e&&Qg&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Xs.style)),e}function S1(){return typeof document<"u"?document.body:null}function av(n,e){for(;e;){if(e===n)return!0;e=Xh(e)}return!1}function lv(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Yh=(()=>{class n{validateStyleProperty(t){return E1(t)}containsElement(t,s){return av(t,s)}getParentElement(t){return Xh(t)}query(t,s,r){return lv(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,i,o,a=[],l){return new ar(r,i)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})(),Zs=class{static{this.NOOP=new Yh}},Js=class{};var b1=1e3,cv="{{",_1="}}",uv="ng-enter",Ph="ng-leave",Cl="ng-trigger",Nl=".ng-trigger",Xg="ng-animating",Dh=".ng-animating";function jn(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Mh(parseFloat(e[1]),e[2])}function Mh(n,e){switch(e){case"s":return n*b1;default:return n}}function Pl(n,e,t){return n.hasOwnProperty("duration")?n:x1(n,e,t)}function x1(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(zg(n)),{duration:0,delay:0,easing:""};r=Mh(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=Mh(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(qC()),a=!0),i<0&&(e.push(UC()),a=!0),a&&e.splice(l,0,zg(n))}return{duration:r,delay:i,easing:o}}function C1(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function xn(n,e,t){e.forEach((s,r)=>{let i=Kh(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function Ks(n,e){e.forEach((t,s)=>{let r=Kh(s);n.style[r]=""})}function go(n){return Array.isArray(n)?n.length==1?n[0]:ud(n):n}function A1(n,e,t){let s=e.params||{},r=hv(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(HC(i))})}var Lh=new RegExp(`${cv}\\s*(.+?)\\s*${_1}`,"g");function hv(n){let e=[];if(typeof n=="string"){let t;for(;t=Lh.exec(n);)e.push(t[1]);Lh.lastIndex=0}return e}function wo(n,e,t){let s=`${n}`,r=s.replace(Lh,(i,o)=>{let a=e[o];return a==null&&(t.push(WC(o)),a=""),a.toString()});return r==s?n:r}var T1=/-+([a-z0-9])/g;function Kh(n){return n.replace(T1,(...e)=>e[1].toUpperCase())}function k1(n,e){return n===0||e===0}function I1(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,Zh(n,a)))}}return e}function _t(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 jC(e.type)}}function Zh(n,e){return window.getComputedStyle(n)[e]}var N1=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"]),Dl=class extends Js{normalizePropertyName(e,t){return Kh(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(N1.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(zC(e,s))}return o+i}};var Ml="*";function P1(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>D1(s,t,e)):t.push(n),t}function D1(n,e,t){if(n[0]==":"){let l=M1(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(r1(n)),e;let r=s[1],i=s[2],o=s[3];e.push(Yg(r,o));let a=r==Ml&&o==Ml;i[0]=="<"&&!a&&e.push(Yg(o,r))}function M1(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 Al=new Set(["true","1"]),Tl=new Set(["false","0"]);function Yg(n,e){let t=Al.has(n)||Tl.has(n),s=Al.has(e)||Tl.has(e);return(r,i)=>{let o=n==Ml||n==r,a=e==Ml||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?Al.has(n):Tl.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?Al.has(e):Tl.has(e)),o&&a}}var pv=":self",L1=new RegExp(`s*${pv}s*,?`,"g");function dv(n,e,t,s){return new Fh(n).build(e,t,s)}var Kg="",Fh=class{constructor(e){this._driver=e}build(e,t,s){let r=new Bh(t);return this._resetContextStyleTimingState(r),_t(this,go(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Kg,e.collectedStyles=new Map,e.collectedStyles.set(Kg,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(GC()),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(QC())}),{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=>{hv(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(XC(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=_t(this,go(e.animation),t),r=P1(e.expr,t.errors);return{type:G.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Ys(e.options)}}visitSequence(e,t){return{type:G.Sequence,steps:e.steps.map(s=>_t(this,s,t)),options:Ys(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=_t(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:i,options:Ys(e.options)}}visitAnimate(e,t){let s=O1(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:$e({});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=$e(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===pn?s.push(a):t.errors.push(YC(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(cv)>=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(KC(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&A1(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ZC()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(_=>{let D=this._makeStyleAst(_,t),Y=D.offset!=null?D.offset:R1(D.styles),te=0;return Y!=null&&(i++,te=D.offset=Y),l=l||te<0||te>1,a=a||te0&&i{let Y=m>0?D==g?1:m*D:o[D],te=Y*b;t.currentTime=w+y.delay+te,y.duration=te,this._validateStyleAst(_,t),_.offset=Y,s.styles.push(_)}),s}visitReference(e,t){return{type:G.Reference,animation:_t(this,go(e.animation),t),options:Ys(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:G.AnimateChild,options:Ys(e.options)}}visitAnimateRef(e,t){return{type:G.AnimateRef,animation:this.visitReference(e.animation,t),options:Ys(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=F1(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,xt(t.collectedStyles,t.currentQuerySelector,new Map);let a=_t(this,go(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:Ys(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(n1());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Pl(e.timings,t.errors,!0);return{type:G.Stagger,animation:_t(this,go(e.animation),t),timings:s,options:null}}};function F1(n){let e=!!n.split(/\s*,\s*/).find(t=>t==pv);return e&&(n=n.replace(L1,"")),n=n.replace(/@\*/g,Nl).replace(/@\w+/g,t=>Nl+"-"+t.slice(1)).replace(/:animating/g,Dh),[n,e]}function B1(n){return n?E({},n):null}var Bh=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 R1(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 O1(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=Pl(n,e).duration;return Ah(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Ah(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=Pl(t,e);return Ah(r.duration,r.delay,r.easing)}function Ys(n){return n?(n=E({},n),n.params&&(n.params=B1(n.params))):n={},n}function Ah(n,e,t){return{duration:n,delay:e,easing:t}}function Jh(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 yo=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()}},$1=1,V1=":enter",q1=new RegExp(V1,"g"),U1=":leave",H1=new RegExp(U1,"g");function fv(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new Rh().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var Rh=class{buildKeyframes(e,t,s,r,i,o,a,l,c,u=[]){c=c||new yo;let p=new Oh(e,t,c,r,i,u,[]);p.options=l;let m=l.delay?jn(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([o],null,p.errors,l),_t(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()):[Jh(t,[],[],[],0,m,"",!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:jn(wo(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?jn(s.duration):null,a=s.delay!=null?jn(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),_t(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=Ll);let o=jn(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>_t(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?jn(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),_t(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?wo(s,t.params,t.errors):s;return Pl(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?jn(r.delay):0;i&&(t.previousNode.type===G.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ll);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),_t(this,e.animation,p),p.currentTimeline.applyStylesToKeyframe();let m=p.currentTimeline.currentTime;o=Math.max(o,m)}),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;_t(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-p+(r.startTime-s.currentTimeline.startTime)}},Ll={},Oh=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=Ll,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Fl(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=jn(s.duration)),s.delay!=null&&(r.delay=jn(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]=wo(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=Ll,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 $h(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(q1,"."+this._enterClassName),e=e.replace(H1,"."+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(s1(t)),a}},Fl=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+=$1,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||pn),this._currentKeyframe.set(t,pn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=W1(e,this._globalTimelineStyles);for(let[a,l]of o){let c=wo(l,i,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??pn),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===pn&&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 Jh(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},$h=class extends Fl{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",Zg(a)),i.push(c);let u=e.length-1;for(let p=1;p<=u;p++){let m=new Map(e[p]),g=m.get("offset"),w=t+g*s;m.set("offset",Zg(w/o)),i.push(m)}s=o,t=0,r="",e=i}return Jh(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Zg(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function W1(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,pn)}else for(let[i,o]of r)t.set(i,o)}),t}function Jg(n,e,t,s,r,i,o,a,l,c,u,p,m){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:m}}var Th={},Bl=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return j1(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=[],m=this.ast.options&&this.ast.options.params||Th,g=a&&a.params||Th,w=this.buildStyles(s,g,p),y=l&&l.params||Th,b=this.buildStyles(r,y,p),_=new Set,D=new Map,Y=new Map,te=r==="void",me={params:mv(y,m),delay:this.ast.options?.delay},Ke=u?[]:fv(e,t,this.ast.animation,i,o,w,b,me,c,p),Re=0;return Ke.forEach(Se=>{Re=Math.max(Se.duration+Se.delay,Re)}),p.length?Jg(t,this._triggerName,s,r,te,w,b,[],[],D,Y,Re,p):(Ke.forEach(Se=>{let ws=Se.element,er=xt(D,ws,new Set);Se.preStyleProps.forEach(ys=>er.add(ys));let ep=xt(Y,ws,new Set);Se.postStyleProps.forEach(ys=>ep.add(ys)),ws!==t&&_.add(ws)}),Jg(t,this._triggerName,s,r,te,w,b,Ke,[..._.values()],D,Y,Re))}};function j1(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function mv(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var Vh=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=mv(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=wo(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function z1(n,e,t){return new qh(n,e,t)}var qh=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 Vh(r.style,i,s))}),ev(this.states,"true","1"),ev(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Bl(e,r,this.states))}),this.fallbackTransition=G1(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 G1(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 Bl(n,i,e)}function ev(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 Q1=new yo,Uh=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=dv(this._driver,t,s,r);if(s.length)throw l1(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=ov(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=fv(this._driver,t,i,uv,Ph,new Map,new Map,s,Q1,r),o.forEach(u=>{let p=xt(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(r.push(c1()),o=[]),r.length)throw u1(r);a.forEach((u,p)=>{u.forEach((m,g)=>{u.set(g,this._driver.computeStyle(p,g,pn))})});let l=o.map(u=>{let p=a.get(u.element);return this._buildPlayer(u,new Map,p)}),c=vs(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 h1(e);return t}listen(e,t,s,r){let i=Qh(t,"","","");return Gh(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}}},tv="ng-animate-queued",X1=".ng-animate-queued",kh="ng-animate-disabled",Y1=".ng-animate-disabled",K1="ng-star-inserted",Z1=".ng-star-inserted",J1=[],gv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eA={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed",Eo=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=nA(r),s){let i=e,{value:o}=i,a=rp(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])})}}},vo="void",Ih=new Eo(vo),Hh=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,jt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw p1(s,t);if(s==null||s.length==0)throw d1(t);if(!sA(s))throw f1(s,t);let i=xt(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=xt(this._engine.statesByElement,e,new Map);return a.has(t)||(jt(e,Cl),jt(e,Cl+"-"+t),a.set(t,Ih)),()=>{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 m1(e);return t}trigger(e,t,s,r=!0){let i=this._getTrigger(t),o=new So(this.id,t,e),a=this._engine.statesByElement.get(e);a||(jt(e,Cl),jt(e,Cl+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Eo(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Ih),!(c.value===vo)&&l.value===c.value){if(!oA(l.params,c.params)){let y=[],b=i.matchStyles(l.value,l.params,y),_=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Ks(e,b),xn(e,_)})}return}let m=xt(this._engine.playersByElement,e,[]);m.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||(jt(e,tv),o.onStart(()=>{ti(e,tv)})),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 _=b.indexOf(o);_>=0&&b.splice(_,1)}}),this.players.push(o),m.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,Nl,!0);s.forEach(r=>{if(r[en])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,vo,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&vs(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)||Ih,u=new Eo(vo),p=new So(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[en];(!i||i===gv)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){jt(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=Qh(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Gh(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)}},Wh=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 Hh(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(kl(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!kl(t))return;let i=t[en];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),jt(e,kh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ti(e,kh))}removeNode(e,t,s){if(kl(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[en]={namespaceId:e,setForRemoval:r,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,r,i){return kl(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,Nl,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Dh,!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 vs(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[en];if(t&&t.setForRemoval){if(e[en]=gv,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(kh)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Y1,!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?vs(t).onDone(()=>{s.forEach(r=>r())}):s.forEach(r=>r())}}reportError(e){throw g1(e)}_flushAnimations(e,t){let s=new yo,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,X1,!0);for(let F=0;F{let F=uv+y++;w.set(L,F),P.forEach(K=>jt(K,F))});let b=[],_=new Set,D=new Set;for(let P=0;P_.add(K)):D.add(L))}let Y=new Map,te=rv(m,Array.from(_));te.forEach((P,L)=>{let F=Ph+y++;Y.set(L,F),P.forEach(K=>jt(K,F))}),e.push(()=>{g.forEach((P,L)=>{let F=w.get(L);P.forEach(K=>ti(K,F))}),te.forEach((P,L)=>{let F=Y.get(L);P.forEach(K=>ti(K,F))}),b.forEach(P=>{this.processLeaveNode(P)})});let me=[],Ke=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(F=>{let K=F.player,Pe=F.element;if(me.push(K),this.collectedEnterElements.length){let ze=Pe[en];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(F.triggerName)){let Es=ze.previousTriggersValues.get(F.triggerName),Ct=this.statesByElement.get(F.element);if(Ct&&Ct.has(F.triggerName)){let bo=Ct.get(F.triggerName);bo.value=Es,Ct.set(F.triggerName,bo)}}K.destroy();return}}let tn=!p||!this.driver.containsElement(p,Pe),ct=Y.get(Pe),zn=w.get(Pe),de=this._buildInstruction(F,s,zn,ct,tn);if(de.errors&&de.errors.length){Ke.push(de);return}if(tn){K.onStart(()=>Ks(Pe,de.fromStyles)),K.onDestroy(()=>xn(Pe,de.toStyles)),r.push(K);return}if(F.isFallbackTransition){K.onStart(()=>Ks(Pe,de.fromStyles)),K.onDestroy(()=>xn(Pe,de.toStyles)),r.push(K);return}let sp=[];de.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||sp.push(ze)}),de.timelines=sp,s.append(Pe,de.timelines);let Pv={instruction:de,player:K,element:Pe};o.push(Pv),de.queriedElements.forEach(ze=>xt(a,ze,[]).push(K)),de.preStyleProps.forEach((ze,Es)=>{if(ze.size){let Ct=l.get(Es);Ct||l.set(Es,Ct=new Set),ze.forEach((bo,Hl)=>Ct.add(Hl))}}),de.postStyleProps.forEach((ze,Es)=>{let Ct=c.get(Es);Ct||c.set(Es,Ct=new Set),ze.forEach((bo,Hl)=>Ct.add(Hl))})});if(Ke.length){let P=[];Ke.forEach(L=>{P.push(v1(L.triggerName,L.errors))}),me.forEach(L=>L.destroy()),this.reportError(P)}let Re=new Map,Se=new Map;o.forEach(P=>{let L=P.element;s.has(L)&&(Se.set(L,L),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Re))}),r.forEach(P=>{let L=P.element;this._getPreviousPlayers(L,!1,P.namespaceId,P.triggerName,null).forEach(K=>{xt(Re,L,[]).push(K),K.destroy()})});let ws=b.filter(P=>iv(P,l,c)),er=new Map;sv(er,this.driver,D,c,pn).forEach(P=>{iv(P,l,c)&&ws.push(P)});let ys=new Map;g.forEach((P,L)=>{sv(ys,this.driver,new Set(P),l,qo)}),ws.forEach(P=>{let L=er.get(P),F=ys.get(P);er.set(P,new Map([...L?.entries()??[],...F?.entries()??[]]))});let Ul=[],tp=[],np={};o.forEach(P=>{let{element:L,player:F,instruction:K}=P;if(s.has(L)){if(u.has(L)){F.onDestroy(()=>xn(L,K.toStyles)),F.disabled=!0,F.overrideTotalTime(K.totalTime),r.push(F);return}let Pe=np;if(Se.size>1){let ct=L,zn=[];for(;ct=ct.parentNode;){let de=Se.get(ct);if(de){Pe=de;break}zn.push(ct)}zn.forEach(de=>Se.set(de,Pe))}let tn=this._buildAnimation(F.namespaceId,K,Re,i,ys,er);if(F.setRealPlayer(tn),Pe===np)Ul.push(F);else{let ct=this.playersByElement.get(Pe);ct&&ct.length&&(F.parentPlayer=vs(ct)),r.push(F)}}else Ks(L,K.fromStyles),F.onDestroy(()=>xn(L,K.toStyles)),tp.push(F),u.has(L)&&r.push(F)}),tp.forEach(P=>{let L=i.get(P.element);if(L&&L.length){let F=vs(L);P.setRealPlayer(F)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!tn.destroyed);Pe.length?rA(this,L,Pe):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==vo;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=xt(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)})}Ks(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],u=new Set,p=new Set,m=t.timelines.map(w=>{let y=w.element;u.add(y);let b=y[en];if(b&&b.removedBeforeQueried)return new ar(w.duration,w.delay);let _=y!==l,D=iA((s.get(y)||J1).map(Re=>Re.getRealPlayer())).filter(Re=>{let Se=Re;return Se.element?Se.element===y:!1}),Y=i.get(y),te=o.get(y),me=ov(this._normalizer,w.keyframes,Y,te),Ke=this._buildPlayer(w,me,D);if(w.subTimeline&&r&&p.add(y),_){let Re=new So(e,a,y);Re.setRealPlayer(Ke),c.push(Re)}return Ke});c.forEach(w=>{xt(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>tA(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>jt(w,Xg));let g=vs(m);return g.onDestroy(()=>{u.forEach(w=>ti(w,Xg)),xn(l,t.toStyles)}),p.forEach(w=>{xt(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 ar(e.duration,e.delay)}},So=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ar,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=>Gh(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){xt(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 tA(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 nA(n){return n??null}function kl(n){return n&&n.nodeType===1}function sA(n){return n=="start"||n=="done"}function nv(n,e){let t=n.style.display;return n.style.display=e??"none",t}function sv(n,e,t,s,r){let i=[];t.forEach(l=>i.push(nv(l)));let o=[];s.forEach((l,c)=>{let u=new Map;l.forEach(p=>{let m=e.computeStyle(c,p,r);u.set(p,m),(!m||m.length==0)&&(c[en]=eA,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>nv(l,i[a++])),o}function rv(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 jt(n,e){n.classList?.add(e)}function ti(n,e){n.classList?.remove(e)}function rA(n,e,t){vs(t).onDone(()=>n.processLeaveNode(e))}function iA(n){let e=[];return vv(n,e),e}function vv(n,e){for(let t=0;tr.add(i)):e.set(n,s),t.delete(n),!0}var ni=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,i)=>{},this._transitionEngine=new Wh(e.body,t,s),this._timelineEngine=new Uh(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=dv(this._driver,i,l,c);if(l.length)throw o1(r,l);c.length&&void 0,a=z1(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]=Gg(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]=Gg(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 aA(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Nh(e[0]),e.length>1&&(s=Nh(e[e.length-1]))):e instanceof Map&&(t=Nh(e)),t||s?new jh(n,t,s):null}var jh=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&xn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xn(this._element,this._initialStyles),this._endStyles&&(xn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ks(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ks(this._element,this._endStyles),this._endStyles=null),xn(this._element,this._initialStyles),this._state=3)}};function Nh(n){let e=null;return n.forEach((t,s)=>{lA(s)&&(e=e||new Map,e.set(s,t))}),e}function lA(n){return n==="display"||n==="position"}var Rl=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:Zh(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ol=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return av(e,t)}getParentElement(e){return Xh(e)}query(e,t,s){return lv(e,t,s)}computeStyle(e,t,s){return Zh(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 Rl);k1(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=C1(t).map(g=>new Map(g));p=I1(e,p,c);let m=aA(e,p);return new Rl(e,p,l,m)}};var Il="@",wv="@.disabled",$l=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.parentNode(t)&&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)==Il&&t==wv?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)}},zh=class extends $l{constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Il?t.charAt(1)=="."&&t==wv?(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)==Il){let r=cA(e),i=t.slice(1),o="";return i.charAt(0)!=Il&&([i,o]=uA(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 cA(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function uA(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Vl=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)=>{i?.removeChild(null,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 $l(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 zh(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 pA=(()=>{class n extends ni{constructor(t,s,r){super(t,s,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(s){return new(s||n)(Ze(Lp),Ze(Zs),Ze(Js))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})();function dA(){return new Dl}function fA(n,e,t){return new Vl(n,e,t)}var yv=[{provide:Js,useFactory:dA},{provide:ni,useClass:pA},{provide:bp,useFactory:fA,deps:[$p,ni,Ep]}],mA=[{provide:Zs,useFactory:()=>new Ol},{provide:Wl,useValue:"BrowserAnimations"},...yv],gk=[{provide:Zs,useClass:Yh},{provide:Wl,useValue:"NoopAnimations"},...yv];function Ev(){return _p("NgEagerAnimations"),[...mA]}var gA=n=>()=>Gn(void 0,null,function*(){yield n.initialize()}),Sv={providers:[gp(id,ii,cd,un,td),Rp(Op()),Ev(),ei.production?Gl(xh,Ql()):Gl(xh,Ql(),Gp(zp)),{provide:Pp,useFactory:gA,multi:!0,deps:[bl]}]};function vA(n,e){n&1&&Po(0)}var bv=oi("toggle",[Jn(":enter",[$e({maxWidth:"0"}),Zn("100ms",$e({maxWidth:"*"}))]),Jn(":leave",[$e({maxWidth:""}),Zn("100ms",$e({maxWidth:"0"}))])]),_v=(()=>{class n{constructor(t,s,r){this.ss=t,this.r2=s,this.cd=r,this.sidebarToggle$=this.ss.sidebarToggle.pipe(ai())}ngOnInit(){this.sidebarToggle$.subscribe(t=>{this.info=t,this.cd.detectChanges()})}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(Io),M(Fo))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-sidebar"]],standalone:!0,features:[Me],decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(s,r){s&1&&ye(0,vA,1,0,"ng-container",0),s&2&&ee("ngComponentOutlet",r.info==null?null:r.info.component)("ngComponentOutletInputs",r.info==null?null:r.info.inputs)},dependencies:[tr],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})}}return n})();var xv=oi("toggleError",[Jn(":enter",[$e({transform:"translateX(100%)"}),Zn("100ms",$e({transform:"translateX(0)"}))]),Jn(":leave",[$e({transform:"translateX(0)"}),Zn("100ms",$e({transform:"translateX(100%)"}))])]),Cv=oi("toggleErrorLeft",[Jn(":enter",[$e({transform:"translateX(-100%)"}),Zn("100ms",$e({transform:"translateX(0)"}))]),Jn(":leave",[$e({transform:"translateX(0)"}),Zn("100ms",$e({transform:"translateX(-100%)"}))])]),Av=(()=>{class n{constructor(t,s){this.es=t,this.el=s,this.height=32}get isLeft(){return this.error.isLeft}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}ngOnInit(){}ngAfterViewInit(){}onClick(t){this.es.close(this.error)}static{this.\u0275fac=function(s){return new(s||n)(M(sr),M(sn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(s,r){s&1&&J("click",function(o){return r.onClick(o)}),s&2&&(No("bottom",r.getOffset,"px"),Je("left",r.isLeft))},inputs:{error:"error"},standalone:!0,features:[Me],decls:2,vars:1,template:function(s,r){s&1&&(B(0,"span"),ve(1),R()),s&2&&(k(),Qt(r.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}"]})}}return n})();var wA=["inp"],ql=(()=>{class n{constructor(){this.search=new si,this.value="",this.onChange=t=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=Co(this.inp.nativeElement,"input").pipe(Ao(200),To()).subscribe(()=>{this.search.emit(this.value)})}writeValue(t){this.value=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){}onModelChange(t){this.writeValue(t),this.onChange(t)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-search-input"]],viewQuery:function(s,r){if(s&1&&ut(wA,7),s&2){let i;ht(i=pt())&&(r.inp=i.first)}},outputs:{search:"search"},standalone:!0,features:[Ip([{provide:Yp,useExisting:dp(()=>n),multi:!0}]),Me],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(s,r){if(s&1){let i=Ce();ge(0,"img",1),B(1,"input",2,0),J("keydown.enter",function(){ce(i);let a=Do(2);return ue(a.blur())}),Tn("ngModelChange",function(a){return ce(i),An(r.value,a)||(r.value=a),ue(a)}),J("ngModelChange",function(a){return ce(i),ue(r.onModelChange(a))}),R()}s&2&&(k(),Cn("ngModel",r.value))},dependencies:[un,$o,Yn,Kn,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%]{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}"]})}}return n})();function yA(n,e){if(n&1&&(B(0,"div",1),ve(1),R()),n&2){let t=ne();k(),rn(" ",t.data.title," ")}}function EA(n,e){n&1&&Po(0)}function SA(n,e){if(n&1&&ye(0,EA,1,0,"ng-container",4),n&2){let t=ne();ee("ngComponentOutlet",t.data==null?null:t.data.component)("ngComponentOutletInputs",t.data==null?null:t.data.inputs)}}function bA(n,e){if(n&1){let t=Ce();B(0,"dsw-search-input",7),J("search",function(r){ce(t);let i=ne(2);return ue(i.onSearch(r))}),R()}if(n&2){let t=ne(2);ee("ngModel",t.data.search)}}function _A(n,e){if(n&1){let t=Ce();B(0,"button",8),J("click",function(){let r=ce(t).$implicit,i=ne(2);return ue(i.onButtonClick(r))}),ve(1),R()}if(n&2){let t=e.$implicit;Je("btn-white",!t.default),k(),rn(" ",t.label," ")}}function xA(n,e){if(n&1&&(B(0,"div",3),ye(1,bA,1,1,"dsw-search-input",5),zt(2,_A,2,3,"button",6,Qn),R()),n&2){let t=ne();k(),pe(t.data.search!==void 0?1:-1),k(),Gt(t.data.buttons)}}var kv=(()=>{class n{constructor(t,s,r,i){this.ms=t,this.cd=s,this.el=r,this.r2=i,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(t=>t.unsubscribe())}getPath(t){let s=[],r=t.target;for(;r;)s.push(r),r=r.parentElement;return s.indexOf(window)===-1&&s.indexOf(document)===-1&&s.push(document),s.indexOf(window)===-1&&s.push(window),s}onClick(t){if(!this.data.closeByBackdropClick)return;this.getPath(t).some(r=>!!r.classList?.contains("modal"))||(this.close(),t.preventDefault())}onGlobalKeyPressed(t){if(this.isTopmost())switch(t.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey();break}}close(){this.ms.close(this.data)}onButtonClick(t){t.click&&t.click(this,this.data,t),t.autoClose&&this.close()}onSearch(t){this.search.emit(t)}ngOnChanges(t){t.data?.currentValue&&t.data.currentValue!==t.data.previousValue&&this.cd.detectChanges()}processEnterKey(){if(!this.data.buttons?.length)return;let t=this.data.buttons.find(s=>s.default);t&&(t.click&&t.click(this,this.data,t),t.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){let t=this.ms.modals();return t[t.length-1]===this.data}subscribeForOutputs(t){if(this.data.outputs)for(let s in this.data.outputs){let r=t[s];if(!r||!(r instanceof si))return;this.subscriptions.push(r.subscribe((...i)=>this.data.outputs?.[s](...i)))}}updateHostStyles(){let t=this.data.componentStyles,s=this.dynCompEl?.nativeElement;if(s&&(s.nodeName==="#comment"&&(s=s.previousElementSibling),t))for(let r in t)this.r2.setStyle(s,r,t[r])}initDynamicComponent(){let t;this.ngComponentOutlet?._componentRef?.instance&&(t=this.ngComponentOutlet._componentRef.instance),t&&(this.data.onComponentInit&&this.data.onComponentInit(t),this.subscribeForOutputs(t))}static{this.\u0275fac=function(s){return new(s||n)(M(or),M(Fo),M(sn),M(Io))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-modal"]],viewQuery:function(s,r){if(s&1&&(ut(tr,5,sn),ut(tr,5)),s&2){let i;ht(i=pt())&&(r.dynCompEl=i.first),ht(i=pt())&&(r.ngComponentOutlet=i.first)}},hostVars:2,hostBindings:function(s,r){s&1&&J("mousedown",function(o){return r.onClick(o)})("keydown",function(o){return r.onGlobalKeyPressed(o)},!1,ko),s&2&&Je("no-backdrop",r.noBackdrop)},inputs:{data:"data"},standalone:!0,features:[vp,Me],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(s,r){s&1&&(B(0,"div",0),ye(1,yA,2,1,"div",1),B(2,"div",2),ve(3),ye(4,SA,1,2,"ng-container"),R(),ye(5,xA,4,1,"div",3),R()),s&2&&(Je("no-padding",r.data.noPadding)("min-height",r.data.minHeight),k(),pe(r.data.title?1:-1),k(2),rn(" ",r.data.message," "),k(),pe(r.isInitialized?4:-1),k(),pe(r.data.buttons!=null&&r.data.buttons.length?5:-1))},dependencies:[ql,un,Yn,Kn,tr],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}"]})}}return n})();var CA=["inpSearch"];function AA(n,e){if(n&1&&(B(0,"div",5),ve(1),R()),n&2){let t=ne();k(),Qt(t.title)}}function TA(n,e){if(n&1){let t=Ce();B(0,"span",20),J("click",function(){ce(t);let r=ne(2);return ue(r.isMorePressed=!r.isMorePressed)}),ve(1," ... "),R()}if(n&2){let t=ne(2);Je("pressed",t.isMorePressed)}}function kA(n,e){if(n&1&&(B(0,"a",21),ve(1),R()),n&2){let t=e.$implicit;ee("routerLink",t.url)("title",t.title),k(),Qt(t.title)}}function IA(n,e){if(n&1&&(B(0,"div",19),zt(1,kA,2,3,"a",21,Qn),R()),n&2){let t=ne().$implicit;k(),Gt(t.moreList)}}function NA(n,e){if(n&1){let t=Ce();B(0,"a",17),J("click",function(r){let i=ce(t).$implicit,o=ne();return ue(o.hideMoreDropdown(r,i.isMoreButton))}),ve(1),ye(2,TA,2,2,"span",18)(3,IA,3,0,"div",19),R()}if(n&2){let t=e.$implicit,s=ne();Je("show-only-last",s.isSearch),ee("routerLink",t.url)("title",t.title),k(),rn(" ",t.title," "),k(),pe(t.isMoreButton?2:-1),k(),pe(t.isMoreButton&&s.isMorePressed?3:-1)}}function PA(n,e){if(n&1){let t=Ce();B(0,"button",22),_e(1,"i18n"),J("click",function(){ce(t);let r=ne();return ue(r.gotoZenDeepSee())}),ge(2,"img",23),R()}n&2&&ee("title",xe(1,1,"gotoDeepSee"))}function DA(n,e){if(n&1){let t=Ce();B(0,"div",24),_e(1,"i18n"),J("mouseover",function(){ce(t);let r=ne();return ue(r.showShareDashboard())}),ge(2,"img",25)(3,"dsw-share-dashboard",26),R()}if(n&2){let t=ne();ee("title",xe(1,3,"shareDashboard")),k(3),ee("shareUrl",t.shareUrl)("isSmall",!0)}}function MA(n,e){if(n&1){let t=Ce();B(0,"button",22),_e(1,"i18n"),J("click",function(){ce(t);let r=ne();return ue(r.onAddClick())}),B(2,"span",27),ve(3,"+"),R()()}n&2&&ee("title",xe(1,1,"addWidget"))}function LA(n,e){if(n&1){let t=Ce();B(0,"div",28),J("click",function(){ce(t);let r=ne();return ue(r.toggleMobileFilter())}),ge(1,"img",29),R()}}function FA(n,e){if(n&1&&(B(0,"option",14),ve(1),R()),n&2){let t=e.$implicit;ee("value",t),k(),Qt(t)}}var Iv=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u,p,m){this.ss=t,this.hs=s,this.ds=r,this.ms=i,this.us=o,this.modal=a,this.fs=l,this.storage=c,this.i18n=u,this.route=p,this.router=m,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(g=>g.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(t,s,r){let i=decodeURIComponent(s);return i.indexOf("?")!==-1&&(i=i.split("?")[0]),{title:i,url:decodeURIComponent(t.slice(0,r+1).join("/"))}}ngOnInit(){this.namespace=dt,this.subTitle=this.ms.onSetTitle.subscribe(t=>{this.title=t||this.path[this.path?.length-1]?.title||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(t=>{this.isMobileFilterButton=t})}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-4BOB2ZIP.js")})}gotoZenDeepSee(){let t=this.storage.serverSettings.DefaultApp||"/csp/"+dt,s=this.path[this.path.length-1]?.url?.split("/").slice(1).join("/"),i=(location.pathname.split("/").slice(0,-2).join("/")||"")+t+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(s||""));window.open(i)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(t){let s=t.toLowerCase(),r=this.storage.getAppSettings();this.i18n.current=s,r.language=s,this.storage.setAppSettings(r),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(t,s=!1){s||t?.target?.classList?.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent({component:import("./chunk-GPIDYIDO.js"),single:!0})}onSearch(t){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(t)}getPathFromLocation(){let t=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(t),this.pathSegments=t.map((s,r)=>n.processPath(t,s,r)),this.buildMoreDropdown(),this.pathSegments}getPathFromNavigation(t){let r=this.router.parseUrl(this.router.url).root.children.primary?.segments?.map(i=>i.path)||[];return this.initSearch(r),this.pathSegments=r.map((i,o)=>n.processPath(r,i,o)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){let t=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:t})}}initSearch(t){this.isSearch=!t[t.length-1]?.split("?")[0]?.endsWith(".dashboard")}getNavigationEndStream(){return lp(ap(this.getPathFromLocation()),this.router.events.pipe(cp(t=>t instanceof Hp),_o(t=>this.getPathFromNavigation(t)))).pipe(pp(t=>(this.path=t,t)))}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(hn),M(At),M(Vo),M(rr),M(or),M(ir),M(ln),M(Xn),M(on),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-header"]],viewQuery:function(s,r){if(s&1&&ut(CA,5),s&2){let i;ht(i=pt())&&(r.inpSearch=i.first)}},hostBindings:function(s,r){s&1&&J("click",function(o){return r.hideMoreDropdown(o)},!1,ko)},standalone:!0,features:[Me],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(s,r){if(s&1){let i=Ce();B(0,"div")(1,"button",2),_e(2,"async"),J("click",function(){return ce(i),ue(r.toggleMenu())}),ge(3,"img",3),R(),B(4,"h2",4),ye(5,AA,2,1,"div",5),B(6,"div",6),zt(7,NA,4,7,"a",7,Qn),_e(9,"async"),R()(),ye(10,PA,3,3,"button",8)(11,DA,4,5,"div",9)(12,MA,4,3,"button",8)(13,LA,2,0,"div",10),R(),B(14,"div",11)(15,"dsw-search-input",12,0),J("search",function(a){return ce(i),ue(r.onSearch(a))}),R(),B(17,"select",13,1),Tn("ngModelChange",function(a){return ce(i),An(r.selectedLanguage,a)||(r.selectedLanguage=a),ue(a)}),J("change",function(){ce(i);let a=Do(18);return ue(r.selectLanguage(a.value))}),zt(19,FA,2,2,"option",14,Qn),R(),B(21,"button",15),_e(22,"i18n"),J("click",function(){return ce(i),ue(r.logout())}),ge(23,"img",16),ve(24),_e(25,"i18n"),R()()}if(s&2){let i;k(),Je("active",!!((i=xe(2,13,r.ss.sidebarToggle))!=null&&i.component)),k(4),pe(r.isSearch?-1:5),k(),Je("no-opacity",r.isSearch),k(),Gt(xe(9,15,r.path$)),k(3),pe(r.isSearch?-1:10),k(),pe(r.isSearch?-1:11),k(),pe(!r.isSearch&&r.canEdit?12:-1),k(),pe(!r.isSearch&&r.isMobileFilterButton?13:-1),k(2),ee("hidden",!r.isSearch),k(2),Cn("ngModel",r.selectedLanguage),k(2),Gt(r.languages),k(2),ee("title",xe(22,17,"signout")),k(3),rn(" ",xe(25,19,"signout")," ")}},dependencies:[jp,dd,ql,un,Zp,Jp,Kp,Yn,Kn,nr,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%]{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}}']})}}return n})();var BA=["sidebar"];function RA(n,e){n&1&&ge(0,"dsw-header")}function OA(n,e){if(n&1){let t=Ce();B(0,"dsw-sidebar",null,0),J("@toggle.done",function(){ce(t);let r=ne();return ue(r.onAnimDone())})("@toggle.start",function(){ce(t);let r=ne();return ue(r.onAnimStart())}),R()}n&2&&ee("@toggle",void 0)}function $A(n,e){if(n&1&&ge(0,"dsw-modal",2),n&2){let t=e.$implicit;ee("data",t)("ngClass",t.class)}}function VA(n,e){if(n&1&&ge(0,"dsw-error",3),n&2){let t=e.$implicit;ee("@toggleError",!t.isLeft)("@toggleErrorLeft",t.isLeft)("error",t)}}var Nv=(()=>{class n{constructor(t,s,r,i,o){this.sbs=t,this.hs=s,this.es=r,this.ms=i,this.router=o,this.title="DeepSeeWeb",this.isSidebar=!1,this.errors=[]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof Up&&this.sbs.hide()}),this.sbs.sidebarToggle.subscribe(t=>{this.isSidebar=!!t})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(t,s){return s.id}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(hn),M(sr),M(or),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["app-root"]],viewQuery:function(s,r){if(s&1&&ut(BA,5),s&2){let i;ht(i=pt())&&(r.sidebar=i.first)}},standalone:!0,features:[Me],decls:10,vars:6,consts:[["sidebar",""],[1,"content"],[3,"data","ngClass"],[3,"error"]],template:function(s,r){s&1&&(ye(0,RA,1,0,"dsw-header"),_e(1,"async"),B(2,"div",1),ye(3,OA,2,1,"dsw-sidebar"),ge(4,"router-outlet"),R(),zt(5,$A,1,2,"dsw-modal",2,Cp),zt(7,VA,1,3,"dsw-error",3,r.trackError,!0),_e(9,"async")),s&2&&(pe(xe(1,2,r.hs.visible$)?0:-1),k(3),pe(r.isSidebar?3:-1),k(2),Gt(r.ms.modals()),k(2),Gt(xe(9,4,r.es.errors$)))},dependencies:[Iv,_v,Wp,kv,Bo,Av,nr],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:[bv,xv,Cv]},changeDetection:0})}}return n})();ei.production&&void 0;Vp(Nv,Sv).catch(n=>console.error(n)); +//# sourceURL=`+t),window["eval"](i);let l,c="";for(let u in exports)if(exports[u].toString().startsWith("class")){l=exports[u],c=u;break}if(l){let u=t.split("/").pop().replace(/dsw.addons./ig,"").split(".").slice(0,-1).join("."),p=l.AddonInfo;p.overrideBaseType?this.wt.register(p.overrideBaseType,p?.type||"custom",l,p):this.wt.register(u,p?.type||"custom",l,p)}else console.warn(`Can't load addon for file: ${t}. Exported class not found.`)})}setupMobile(){window.addEventListener("resize",()=>{let t=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${t}px`)})}static{this.\u0275fac=function(s){return new(s||n)(Ze(At),Ze(lr),Ze(rr))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();function PC(n,e){if(n&1){let t=Ce();B(0,"button",14),J("click",function(){ce(t);let r=ne();return ue(r.onLoginOAuthClick())}),ve(1),_e(2,"i18n"),R()}n&2&&(k(),rn("",xe(2,1,"signinOAuth")," "))}var bh=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u){this.ds=t,this.i18n=s,this.hs=r,this.ss=i,this.start=o,this.ns=a,this.st=l,this.route=c,this.router=u,this.startTime=-1,this.oAuthUrl=xp(""),this.hs.visible$.next(!1),this.ss.hide(),delete sessionStorage.dashboarList,Ae.desktop&&delete localStorage.DSWMobileServer,this.initModel(),Ae.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let p=this.route.snapshot.queryParamMap.get("ns"),m=this.route.snapshot.queryParamMap.get("from");m&&(p=m.split("/").filter(g=>g)[0]),this.model.namespace=p||dt||""}initModel(){this.model={isDesktop:Ae.desktop,ver:Ae.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:""}}initNamespace(){let t=this.route.snapshot.queryParamMap.get("from");if(t){let s=decodeURIComponent(t),r=this.getParameterByName("ns",s);r&&(this.model.namespace=r)}else{let s=this.route.snapshot.queryParamMap.get("ns");s&&(this.model.namespace=s)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(t=>{try{if(typeof t=="string"){let s=JSON.parse(t);this.oAuthUrl.set(s.url||"")}else this.oAuthUrl.set(t.url||"")}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let t=localStorage.selectedServer;if(!t||(t=parseInt(t,10),isNaN(t)))return;let s=[];try{s=JSON.parse(localStorage.serverList||"[]")}catch(i){console.error(i)}let r=s[t];r&&(this.model.server=r.server||"",this.model.login=r.login||"",this.model.password=r.password||"",this.model.namespace=r.namespace||"")}saveServer(){let t=prompt("Please enter server name",this.model.server),s=[];try{s=JSON.parse(localStorage.serverList||"[]")}catch(r){console.error(r)}s.push({name:t,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(s),localStorage.selectedServer=s.length-1}showServers(){}getParameterByName(t,s){t=t.replace(/[\[\]]/g,"\\$&");let i=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(s);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.oAuthUrl()}onLoginClick(){this.clearError();let t=this.getMobileUrl();this.startTime=new Date().getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,Ae.mobile&&!Ae.desktop?t:"").catch(s=>this.onError(s)).then(s=>this.onSuccess(s,this.model.namespace))}getMobileUrl(){let t=this.model.server,s=t.replace("://","").indexOf("/")!==-1;return t.toLowerCase().indexOf("http")===-1&&(t="http://"+t),s||(t+="/MDX2JSON/"),t.charAt(t.length-1)!=="/"&&(t+="/"),t}onSuccess(t,s){return Gn(this,null,function*(){if(!t)return;Ae.mobile&&Ae.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username;try{yield this.start.initialize()}catch(i){console.error(i)}this.ns.setNamespaces(t.Mappings.Mapped),this.ns.setCurrent(s),this.st.loadServerSettings(t);let r=this.route.snapshot.queryParamMap.get("from");r?this.router.navigateByUrl(r):this.router.navigateByUrl("/"+s)})}onError(t){let{error:s,status:r}=t;if(new Date().getTime()-this.startTime>=Ae.const.timeout){this.showError(this.i18n.get("errTimeout"));return}switch(r){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(s.Error||t.message);break;default:this.showError(t.message);break}}clearError(){this.model.error=""}showError(t){this.model.error=t}scanSettings(){cordova.plugins.barcodeScanner.scan(t=>{let r=t.text.split("|");if(r[0].toLowerCase()!=="dsw"){alert("Incorrect QR code");return}this.model.server=r[1],this.model.login=r[2],this.model.password=r[3],this.model.namespace=r[4],this.onLoginClick()},t=>{alert("Scanning failed: "+t)})}static{this.\u0275fac=function(s){return new(s||n)(M(At),M(Xn),M(hn),M(Tt),M(bl),M(cn),M(ln),M(on),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["app-login-screen"]],standalone:!0,features:[Me],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(s,r){s&1&&(B(0,"span",0),ve(1),R(),B(2,"span",1),J("click",function(){return r.scanSettings()}),ge(3,"i",2),R(),B(4,"div",3)(5,"div",4),ve(6," IRIS Analytics "),R(),B(7,"input",5),_e(8,"i18n"),Tn("ngModelChange",function(o){return An(r.model.server,o)||(r.model.server=o),o}),R(),B(9,"input",6),_e(10,"i18n"),Tn("ngModelChange",function(o){return An(r.model.login,o)||(r.model.login=o),o}),R(),B(11,"input",7),_e(12,"i18n"),Tn("ngModelChange",function(o){return An(r.model.password,o)||(r.model.password=o),o}),R(),B(13,"input",8),_e(14,"i18n"),Tn("ngModelChange",function(o){return An(r.model.namespace,o)||(r.model.namespace=o),o}),R(),B(15,"div",9)(16,"button",10),J("click",function(){return r.showServers()}),R(),B(17,"button",10),J("click",function(){return r.saveServer()}),R(),B(18,"button",11),J("click",function(){return r.onLoginClick()}),ve(19),_e(20,"i18n"),R(),ye(21,PC,3,3,"button",12),R(),B(22,"div",13),ve(23),R()()),s&2&&(k(),Qt(r.model.ver),k(6),ri("placeholder",xe(8,16,"server")),ee("hidden",r.model.isDesktop),Cn("ngModel",r.model.server),k(2),ri("placeholder",xe(10,18,"login")),Cn("ngModel",r.model.login),k(2),ri("placeholder",xe(12,20,"password")),Cn("ngModel",r.model.password),k(2),ri("placeholder",xe(14,22,"namespace")),Cn("ngModel",r.model.namespace),k(3),ee("hidden",r.model.isDesktop),k(),ee("hidden",r.model.isDesktop),k(2),Qt(xe(20,24,"signin")),k(2),pe(r.oAuthUrl()?21:-1),k(),ee("hidden",!r.model.error),k(),rn(" ",r.model.error," "))},dependencies:[un,$o,Yn,ed,Kn,Xp,md,Oo],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}"]})}}return n})();var Ug=["gridster"],LC=["widgets"];function FC(n,e){if(n&1&&ge(0,"dsw-widget",9,1),n&2){ne();let t=kp(0);Je("transparent",t.inline),ee("widget",t)}}function BC(n,e){n&1&&ge(0,"div",7),n&2&&ee("ngClass",e)}function RC(n,e){if(n&1&&(B(0,"label",8)(1,"span"),ve(2),R()()),n&2){let t=ne().$implicit,s=ne();ee("title",t.customTitle||t.title),k(),jl(s.model.fontColors[t.fontColor]),k(),Qt(t.customTitle||t.title)}}function OC(n,e){if(n&1){let t=Ce();Ap(0),B(1,"gridster-item",5),J("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),ye(2,FC,2,3,"dsw-widget",6)(3,BC,1,1,"div",7)(4,RC,3,4,"label",8),R()}if(n&2){let t,s=e.$implicit,r=ne(),i=Tp(r.itemDesc[s.idx]);k(),jl("tile cl"+s.color+" "+(s.template?"tile-with-widget":"")),No("background-image","url("+s.Cover+")"),Je("selected",r.model.edItem==s)("editing",r.model.edItem),ee("item",s),k(),pe(i?2:-1),k(),pe((t=!i&&r.model.icons[s.icon])?3:-1,t),k(),pe(s.hideTitle?-1:4)}}var Wg=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u,p,m){this.st=t,this.route=s,this.router=r,this.ss=i,this.hs=o,this.ms=a,this.ds=l,this.es=c,this.i18n=u,this.fs=p,this.ns=m,this.itemDesc=[],this.isResizing=!1,this.model={tiles:[],widgetList:[],fontColors:Ae.const.fontColors,icons:Ae.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=t.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear()}ngOnInit(){this.subscribeForData(),this.subscribeForEditingMode(),this.subscribeForGridsterAnimations(),this.subscribeForGridsterResize()}getDesc(t){return this.itemDesc[t]}startEditing(t){this.model.edItem=t,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-U2LZH63D.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(t){if(this.model.edItem){this.startEditing(t);return}let s=t.fullPath;t.isFolder&&(s=t.title===""?"..":t.title),this.router.navigate([s],{relativeTo:t.isFolder?this.route:this.route.root.children[0]})}retrieveData(t,s){if(t){if(t&&t.Error){this.es.show(t.data.Error);return}if(t){if(!t.children||t.children.length===0){this.es.show(this.i18n.get("errNoDashboards"));return}this.model.tiles=this.getTiles(t,s)}return this.model.tiles}}setupList(t){for(let s=0;s{this.retriveWidgetData(r,t[s])}))}createDataCallback(t){return function(s){this.retriveWidgetData(s,t)}}getTiles(t,s){let r=t.children,i=this.st.getTilesSettings();if(i=i[this.folder]||{},r.forEach(o=>{o.fullPath||(o.fullPath=o.path)}),s)r=r.filter(o=>o.title.toLocaleLowerCase().indexOf(s.toLocaleLowerCase())!==-1);else{this.folder&&(r=r.filter(a=>a.fullPath.startsWith(this.folder+"/")));let o=[];r.forEach(a=>{a.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(a.path=a.fullPath.slice(this.folder.length!==0?this.folder.length+1:0,a.fullPath.length));let l=a.path.split("/");l.length!==1&&(o.some(c=>c===l[0])||o.push(l[0]))}),r=r.filter(a=>a.path.split("/").length===1),r=[...r,...o.map(a=>({isFolder:!0,title:a}))]}r.forEach(o=>{!o.isFolder&&!o.title&&(o.title=o.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!s&&r.push({isFolder:!0,title:""}),r=r.sort((o,a)=>o.isFolder&&!a.isFolder?-1:a.isFolder&&!o.isFolder||o.title>a.title?1:-1);for(let o=0;o{!this.widgets||t.propertyName!=="width"&&t.propertyName!=="height"||this.widgets.toArray().forEach(s=>{s.component&&s.component.onResize()})})}subscribeForGridsterAnimations(){this.subSidebarAnimEnd.subscribe(()=>{this.tilesOptions?.api?.resize&&this.tilesOptions.api.resize()})}subscribeForEditingMode(){this.ms.onEditDashboard.subscribe(t=>{t?this.startEditing(this.model.tiles[0]):this.stopEditing()})}subscribeForData(){this.data$=xo([this.st.onTilesChanged.pipe(up("")),this.route.url,this.route.params.pipe(hp(t=>(t.ns?.toLowerCase()!==dt.toLowerCase()&&this.ns.setCurrent(t.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(To())]).pipe(_o(([t,s,r,i])=>{this.folder=decodeURIComponent(s.map(a=>a.path).join("/")||""),this.isLoading=!1;let o=this.retrieveData(JSON.parse(JSON.stringify(r)),i||"");return this.isSpinner=!1,o}))}static{this.\u0275fac=function(s){return new(s||n)(M(ln),M(on),M(an),M(Tt),M(hn),M(Vo),M(At),M(sr),M(Xn),M(ir),M(cn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-folder-screen"]],viewQuery:function(s,r){if(s&1&&(ut(Ug,7,sn),ut(Ug,7),ut(LC,5,Yl)),s&2){let i;ht(i=pt())&&(r.gridster=i.first),ht(i=pt())&&(r.gridsterComp=i.first),ht(i=pt())&&(r.widgets=i)}},standalone:!0,features:[Me],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(s,r){s&1&&(B(0,"gridster",2,0),zt(2,OC,5,13,"gridster-item",3,Qn),_e(4,"async"),R(),ge(5,"img",4)),s&2&&(Je("no-anim",r.isResizing),ee("options",r.tilesOptions),k(2),Gt(xe(4,4,r.data$)),k(3),ee("hidden",!r.isSpinner))},dependencies:[sd,rd,Yl,nr,Ro,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}"]})}}return n})();function $C(n,e){n&1&&ge(0,"dsw-folder-screen")}function VC(n,e){n&1&&ge(0,"dsw-dashboard-screen")}var jg=(()=>{class n{constructor(t,s){this.route=t,this.hs=s,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=xo([this.route.url,this.route.params]).subscribe(([r,i])=>{let o=[i.name,...r.map(a=>a.path)].join("/");this.isFolder=o.indexOf(".dashboard")===-1})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}static{this.\u0275fac=function(s){return new(s||n)(M(on),M(hn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-main-screen"]],standalone:!0,features:[Me],decls:2,vars:2,template:function(s,r){s&1&&ye(0,$C,1,0,"dsw-folder-screen")(1,VC,1,0,"dsw-dashboard-screen"),s&2&&(pe(r.isFolder?0:-1),k(),pe(r.isFolder?-1:1))},dependencies:[Wg,fd],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]})}}return n})();var _h=(()=>{class n{constructor(t,s,r,i,o,a){this.router=t,this.ds=s,this.route=r,this.st=i,this.ns=o,this.wt=a,this.previousNS="",this.model={},this.isLoaded=!1}checkEmbed(t){let s=this.st.serverSettings?.Embed;return s&&t.url.split("?")[0]!==s?(this.router.navigateByUrl(s),!0):!1}resolve(t,s){let r=t.params.ns;return new ip(i=>{let o=()=>{this.isLoaded=!0,i.next(this.model),i.complete()};if(this.checkEmbed(s))return;if(!dt){if(!r){this.router.navigateByUrl("/login"),o();return}this.ns.setCurrent(r)}if(this.previousNS===dt){o();return}let a=this.ds.loadConfig(dt).then(c=>this.st.loadConfig(c)).catch(c=>this.st.loadConfig(null)),l=this.loadServerSettings();Promise.all([a,l]).finally(()=>{this.checkEmbed(s)||(this.previousNS=dt,o())})})}loadServerSettings(){return new Promise(t=>{this.ds.getSettings(dt).then(s=>{this.st.loadServerSettings(s)}).finally(()=>t())})}static{this.\u0275fac=function(s){return new(s||n)(Ze(an),Ze(At),Ze(on),Ze(ln),Ze(cn),Ze(lr))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var xh=[{path:"",component:bh,resolve:{model:cn}},{path:"login",component:bh},{path:":ns",resolve:{model:_h},runGuardsAndResolvers:"always",children:[{path:"**",component:jg,data:{isDashboard:!0},resolve:{model:_h},runGuardsAndResolvers:"always"}]}];function zg(n){return new Z(3e3,!1)}function qC(){return new Z(3100,!1)}function UC(){return new Z(3101,!1)}function HC(n){return new Z(3001,!1)}function WC(n){return new Z(3003,!1)}function jC(n){return new Z(3004,!1)}function zC(n,e){return new Z(3005,!1)}function GC(){return new Z(3006,!1)}function QC(){return new Z(3007,!1)}function XC(n,e){return new Z(3008,!1)}function YC(n){return new Z(3002,!1)}function KC(n,e,t,s,r){return new Z(3010,!1)}function ZC(){return new Z(3011,!1)}function JC(){return new Z(3012,!1)}function e1(){return new Z(3200,!1)}function t1(){return new Z(3202,!1)}function n1(){return new Z(3013,!1)}function s1(n){return new Z(3014,!1)}function r1(n){return new Z(3015,!1)}function i1(n){return new Z(3016,!1)}function o1(n,e){return new Z(3404,!1)}function a1(n){return new Z(3502,!1)}function l1(n){return new Z(3503,!1)}function c1(){return new Z(3300,!1)}function u1(n){return new Z(3504,!1)}function h1(n){return new Z(3301,!1)}function p1(n,e){return new Z(3302,!1)}function d1(n){return new Z(3303,!1)}function f1(n,e){return new Z(3400,!1)}function m1(n){return new Z(3401,!1)}function g1(n){return new Z(3402,!1)}function v1(n,e){return new Z(3505,!1)}function vs(n){switch(n.length){case 0:return new ar;case 1:return n[0];default:return new Xl(n)}}function ov(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((m,g)=>{let w=g,y=m;if(g!=="offset")switch(w=n.normalizePropertyName(w,r),y){case qo:y=t.get(g);break;case pn: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 a1(r);return i}function Gh(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ch(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ch(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ch(t,"destroy",n)));break}}function Ch(n,e,t){let s=t.totalTime,r=!!t.disabled,i=Qh(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 Qh(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function xt(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Gg(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var w1=typeof document>"u"?null:document.documentElement;function Xh(n){let e=n.parentNode||n.host||null;return e===w1?null:e}function y1(n){return n.substring(1,6)=="ebkit"}var Xs=null,Qg=!1;function E1(n){Xs||(Xs=S1()||{},Qg=Xs.style?"WebkitAppearance"in Xs.style:!1);let e=!0;return Xs.style&&!y1(n)&&(e=n in Xs.style,!e&&Qg&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Xs.style)),e}function S1(){return typeof document<"u"?document.body:null}function av(n,e){for(;e;){if(e===n)return!0;e=Xh(e)}return!1}function lv(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Yh=(()=>{class n{validateStyleProperty(t){return E1(t)}containsElement(t,s){return av(t,s)}getParentElement(t){return Xh(t)}query(t,s,r){return lv(t,s,r)}computeStyle(t,s,r){return r||""}animate(t,s,r,i,o,a=[],l){return new ar(r,i)}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})(),Zs=class{static{this.NOOP=new Yh}},Js=class{};var b1=1e3,cv="{{",_1="}}",uv="ng-enter",Ph="ng-leave",Cl="ng-trigger",Nl=".ng-trigger",Xg="ng-animating",Dh=".ng-animating";function jn(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Mh(parseFloat(e[1]),e[2])}function Mh(n,e){switch(e){case"s":return n*b1;default:return n}}function Pl(n,e,t){return n.hasOwnProperty("duration")?n:x1(n,e,t)}function x1(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(zg(n)),{duration:0,delay:0,easing:""};r=Mh(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=Mh(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(qC()),a=!0),i<0&&(e.push(UC()),a=!0),a&&e.splice(l,0,zg(n))}return{duration:r,delay:i,easing:o}}function C1(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function xn(n,e,t){e.forEach((s,r)=>{let i=Kh(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function Ks(n,e){e.forEach((t,s)=>{let r=Kh(s);n.style[r]=""})}function go(n){return Array.isArray(n)?n.length==1?n[0]:ud(n):n}function A1(n,e,t){let s=e.params||{},r=hv(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(HC(i))})}var Lh=new RegExp(`${cv}\\s*(.+?)\\s*${_1}`,"g");function hv(n){let e=[];if(typeof n=="string"){let t;for(;t=Lh.exec(n);)e.push(t[1]);Lh.lastIndex=0}return e}function wo(n,e,t){let s=`${n}`,r=s.replace(Lh,(i,o)=>{let a=e[o];return a==null&&(t.push(WC(o)),a=""),a.toString()});return r==s?n:r}var T1=/-+([a-z0-9])/g;function Kh(n){return n.replace(T1,(...e)=>e[1].toUpperCase())}function k1(n,e){return n===0||e===0}function I1(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,Zh(n,a)))}}return e}function _t(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 jC(e.type)}}function Zh(n,e){return window.getComputedStyle(n)[e]}var N1=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"]),Dl=class extends Js{normalizePropertyName(e,t){return Kh(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(N1.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(zC(e,s))}return o+i}};var Ml="*";function P1(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>D1(s,t,e)):t.push(n),t}function D1(n,e,t){if(n[0]==":"){let l=M1(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(r1(n)),e;let r=s[1],i=s[2],o=s[3];e.push(Yg(r,o));let a=r==Ml&&o==Ml;i[0]=="<"&&!a&&e.push(Yg(o,r))}function M1(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 Al=new Set(["true","1"]),Tl=new Set(["false","0"]);function Yg(n,e){let t=Al.has(n)||Tl.has(n),s=Al.has(e)||Tl.has(e);return(r,i)=>{let o=n==Ml||n==r,a=e==Ml||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?Al.has(n):Tl.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?Al.has(e):Tl.has(e)),o&&a}}var pv=":self",L1=new RegExp(`s*${pv}s*,?`,"g");function dv(n,e,t,s){return new Fh(n).build(e,t,s)}var Kg="",Fh=class{constructor(e){this._driver=e}build(e,t,s){let r=new Bh(t);return this._resetContextStyleTimingState(r),_t(this,go(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Kg,e.collectedStyles=new Map,e.collectedStyles.set(Kg,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(GC()),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(QC())}),{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=>{hv(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(XC(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=_t(this,go(e.animation),t),r=P1(e.expr,t.errors);return{type:G.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Ys(e.options)}}visitSequence(e,t){return{type:G.Sequence,steps:e.steps.map(s=>_t(this,s,t)),options:Ys(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=_t(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:i,options:Ys(e.options)}}visitAnimate(e,t){let s=O1(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:$e({});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=$e(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===pn?s.push(a):t.errors.push(YC(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(cv)>=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(KC(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&A1(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(ZC()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(_=>{let D=this._makeStyleAst(_,t),Y=D.offset!=null?D.offset:R1(D.styles),te=0;return Y!=null&&(i++,te=D.offset=Y),l=l||te<0||te>1,a=a||te0&&i{let Y=m>0?D==g?1:m*D:o[D],te=Y*b;t.currentTime=w+y.delay+te,y.duration=te,this._validateStyleAst(_,t),_.offset=Y,s.styles.push(_)}),s}visitReference(e,t){return{type:G.Reference,animation:_t(this,go(e.animation),t),options:Ys(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:G.AnimateChild,options:Ys(e.options)}}visitAnimateRef(e,t){return{type:G.AnimateRef,animation:this.visitReference(e.animation,t),options:Ys(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=F1(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,xt(t.collectedStyles,t.currentQuerySelector,new Map);let a=_t(this,go(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:Ys(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(n1());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Pl(e.timings,t.errors,!0);return{type:G.Stagger,animation:_t(this,go(e.animation),t),timings:s,options:null}}};function F1(n){let e=!!n.split(/\s*,\s*/).find(t=>t==pv);return e&&(n=n.replace(L1,"")),n=n.replace(/@\*/g,Nl).replace(/@\w+/g,t=>Nl+"-"+t.slice(1)).replace(/:animating/g,Dh),[n,e]}function B1(n){return n?E({},n):null}var Bh=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 R1(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 O1(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=Pl(n,e).duration;return Ah(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Ah(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=Pl(t,e);return Ah(r.duration,r.delay,r.easing)}function Ys(n){return n?(n=E({},n),n.params&&(n.params=B1(n.params))):n={},n}function Ah(n,e,t){return{duration:n,delay:e,easing:t}}function Jh(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 yo=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()}},$1=1,V1=":enter",q1=new RegExp(V1,"g"),U1=":leave",H1=new RegExp(U1,"g");function fv(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new Rh().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var Rh=class{buildKeyframes(e,t,s,r,i,o,a,l,c,u=[]){c=c||new yo;let p=new Oh(e,t,c,r,i,u,[]);p.options=l;let m=l.delay?jn(l.delay):0;p.currentTimeline.delayNextStep(m),p.currentTimeline.setStyles([o],null,p.errors,l),_t(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()):[Jh(t,[],[],[],0,m,"",!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:jn(wo(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?jn(s.duration):null,a=s.delay!=null?jn(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),_t(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=Ll);let o=jn(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>_t(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?jn(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),_t(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?wo(s,t.params,t.errors):s;return Pl(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?jn(r.delay):0;i&&(t.previousNode.type===G.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ll);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),_t(this,e.animation,p),p.currentTimeline.applyStylesToKeyframe();let m=p.currentTimeline.currentTime;o=Math.max(o,m)}),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;_t(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-p+(r.startTime-s.currentTimeline.startTime)}},Ll={},Oh=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=Ll,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Fl(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=jn(s.duration)),s.delay!=null&&(r.delay=jn(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]=wo(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=Ll,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 $h(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(q1,"."+this._enterClassName),e=e.replace(H1,"."+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(s1(t)),a}},Fl=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+=$1,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||pn),this._currentKeyframe.set(t,pn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=W1(e,this._globalTimelineStyles);for(let[a,l]of o){let c=wo(l,i,s);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??pn),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===pn&&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 Jh(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},$h=class extends Fl{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",Zg(a)),i.push(c);let u=e.length-1;for(let p=1;p<=u;p++){let m=new Map(e[p]),g=m.get("offset"),w=t+g*s;m.set("offset",Zg(w/o)),i.push(m)}s=o,t=0,r="",e=i}return Jh(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Zg(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function W1(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,pn)}else for(let[i,o]of r)t.set(i,o)}),t}function Jg(n,e,t,s,r,i,o,a,l,c,u,p,m){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:m}}var Th={},Bl=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return j1(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=[],m=this.ast.options&&this.ast.options.params||Th,g=a&&a.params||Th,w=this.buildStyles(s,g,p),y=l&&l.params||Th,b=this.buildStyles(r,y,p),_=new Set,D=new Map,Y=new Map,te=r==="void",me={params:mv(y,m),delay:this.ast.options?.delay},Ke=u?[]:fv(e,t,this.ast.animation,i,o,w,b,me,c,p),Re=0;return Ke.forEach(Se=>{Re=Math.max(Se.duration+Se.delay,Re)}),p.length?Jg(t,this._triggerName,s,r,te,w,b,[],[],D,Y,Re,p):(Ke.forEach(Se=>{let ws=Se.element,er=xt(D,ws,new Set);Se.preStyleProps.forEach(ys=>er.add(ys));let ep=xt(Y,ws,new Set);Se.postStyleProps.forEach(ys=>ep.add(ys)),ws!==t&&_.add(ws)}),Jg(t,this._triggerName,s,r,te,w,b,Ke,[..._.values()],D,Y,Re))}};function j1(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function mv(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var Vh=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=mv(e,this.defaultParams);return this.styles.styles.forEach(i=>{typeof i!="string"&&i.forEach((o,a)=>{o&&(o=wo(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),s.set(a,o)})}),s}};function z1(n,e,t){return new qh(n,e,t)}var qh=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 Vh(r.style,i,s))}),ev(this.states,"true","1"),ev(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Bl(e,r,this.states))}),this.fallbackTransition=G1(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 G1(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 Bl(n,i,e)}function ev(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 Q1=new yo,Uh=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=dv(this._driver,t,s,r);if(s.length)throw l1(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=ov(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=fv(this._driver,t,i,uv,Ph,new Map,new Map,s,Q1,r),o.forEach(u=>{let p=xt(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(r.push(c1()),o=[]),r.length)throw u1(r);a.forEach((u,p)=>{u.forEach((m,g)=>{u.set(g,this._driver.computeStyle(p,g,pn))})});let l=o.map(u=>{let p=a.get(u.element);return this._buildPlayer(u,new Map,p)}),c=vs(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 h1(e);return t}listen(e,t,s,r){let i=Qh(t,"","","");return Gh(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}}},tv="ng-animate-queued",X1=".ng-animate-queued",kh="ng-animate-disabled",Y1=".ng-animate-disabled",K1="ng-star-inserted",Z1=".ng-star-inserted",J1=[],gv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eA={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},en="__ng_removed",Eo=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=nA(r),s){let i=e,{value:o}=i,a=rp(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])})}}},vo="void",Ih=new Eo(vo),Hh=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,jt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw p1(s,t);if(s==null||s.length==0)throw d1(t);if(!sA(s))throw f1(s,t);let i=xt(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=xt(this._engine.statesByElement,e,new Map);return a.has(t)||(jt(e,Cl),jt(e,Cl+"-"+t),a.set(t,Ih)),()=>{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 m1(e);return t}trigger(e,t,s,r=!0){let i=this._getTrigger(t),o=new So(this.id,t,e),a=this._engine.statesByElement.get(e);a||(jt(e,Cl),jt(e,Cl+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new Eo(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=Ih),!(c.value===vo)&&l.value===c.value){if(!oA(l.params,c.params)){let y=[],b=i.matchStyles(l.value,l.params,y),_=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Ks(e,b),xn(e,_)})}return}let m=xt(this._engine.playersByElement,e,[]);m.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||(jt(e,tv),o.onStart(()=>{ti(e,tv)})),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 _=b.indexOf(o);_>=0&&b.splice(_,1)}}),this.players.push(o),m.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,Nl,!0);s.forEach(r=>{if(r[en])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,vo,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),s&&vs(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)||Ih,u=new Eo(vo),p=new So(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[en];(!i||i===gv)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){jt(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=Qh(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Gh(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)}},Wh=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 Hh(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(kl(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!kl(t))return;let i=t[en];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),jt(e,kh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ti(e,kh))}removeNode(e,t,s){if(kl(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[en]={namespaceId:e,setForRemoval:r,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:i}}listen(e,t,s,r,i){return kl(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,Nl,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Dh,!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 vs(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[en];if(t&&t.setForRemoval){if(e[en]=gv,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(kh)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Y1,!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?vs(t).onDone(()=>{s.forEach(r=>r())}):s.forEach(r=>r())}}reportError(e){throw g1(e)}_flushAnimations(e,t){let s=new yo,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,X1,!0);for(let F=0;F{let F=uv+y++;w.set(L,F),P.forEach(K=>jt(K,F))});let b=[],_=new Set,D=new Set;for(let P=0;P_.add(K)):D.add(L))}let Y=new Map,te=rv(m,Array.from(_));te.forEach((P,L)=>{let F=Ph+y++;Y.set(L,F),P.forEach(K=>jt(K,F))}),e.push(()=>{g.forEach((P,L)=>{let F=w.get(L);P.forEach(K=>ti(K,F))}),te.forEach((P,L)=>{let F=Y.get(L);P.forEach(K=>ti(K,F))}),b.forEach(P=>{this.processLeaveNode(P)})});let me=[],Ke=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(F=>{let K=F.player,Pe=F.element;if(me.push(K),this.collectedEnterElements.length){let ze=Pe[en];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(F.triggerName)){let Es=ze.previousTriggersValues.get(F.triggerName),Ct=this.statesByElement.get(F.element);if(Ct&&Ct.has(F.triggerName)){let bo=Ct.get(F.triggerName);bo.value=Es,Ct.set(F.triggerName,bo)}}K.destroy();return}}let tn=!p||!this.driver.containsElement(p,Pe),ct=Y.get(Pe),zn=w.get(Pe),de=this._buildInstruction(F,s,zn,ct,tn);if(de.errors&&de.errors.length){Ke.push(de);return}if(tn){K.onStart(()=>Ks(Pe,de.fromStyles)),K.onDestroy(()=>xn(Pe,de.toStyles)),r.push(K);return}if(F.isFallbackTransition){K.onStart(()=>Ks(Pe,de.fromStyles)),K.onDestroy(()=>xn(Pe,de.toStyles)),r.push(K);return}let sp=[];de.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||sp.push(ze)}),de.timelines=sp,s.append(Pe,de.timelines);let Pv={instruction:de,player:K,element:Pe};o.push(Pv),de.queriedElements.forEach(ze=>xt(a,ze,[]).push(K)),de.preStyleProps.forEach((ze,Es)=>{if(ze.size){let Ct=l.get(Es);Ct||l.set(Es,Ct=new Set),ze.forEach((bo,Hl)=>Ct.add(Hl))}}),de.postStyleProps.forEach((ze,Es)=>{let Ct=c.get(Es);Ct||c.set(Es,Ct=new Set),ze.forEach((bo,Hl)=>Ct.add(Hl))})});if(Ke.length){let P=[];Ke.forEach(L=>{P.push(v1(L.triggerName,L.errors))}),me.forEach(L=>L.destroy()),this.reportError(P)}let Re=new Map,Se=new Map;o.forEach(P=>{let L=P.element;s.has(L)&&(Se.set(L,L),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Re))}),r.forEach(P=>{let L=P.element;this._getPreviousPlayers(L,!1,P.namespaceId,P.triggerName,null).forEach(K=>{xt(Re,L,[]).push(K),K.destroy()})});let ws=b.filter(P=>iv(P,l,c)),er=new Map;sv(er,this.driver,D,c,pn).forEach(P=>{iv(P,l,c)&&ws.push(P)});let ys=new Map;g.forEach((P,L)=>{sv(ys,this.driver,new Set(P),l,qo)}),ws.forEach(P=>{let L=er.get(P),F=ys.get(P);er.set(P,new Map([...L?.entries()??[],...F?.entries()??[]]))});let Ul=[],tp=[],np={};o.forEach(P=>{let{element:L,player:F,instruction:K}=P;if(s.has(L)){if(u.has(L)){F.onDestroy(()=>xn(L,K.toStyles)),F.disabled=!0,F.overrideTotalTime(K.totalTime),r.push(F);return}let Pe=np;if(Se.size>1){let ct=L,zn=[];for(;ct=ct.parentNode;){let de=Se.get(ct);if(de){Pe=de;break}zn.push(ct)}zn.forEach(de=>Se.set(de,Pe))}let tn=this._buildAnimation(F.namespaceId,K,Re,i,ys,er);if(F.setRealPlayer(tn),Pe===np)Ul.push(F);else{let ct=this.playersByElement.get(Pe);ct&&ct.length&&(F.parentPlayer=vs(ct)),r.push(F)}}else Ks(L,K.fromStyles),F.onDestroy(()=>xn(L,K.toStyles)),tp.push(F),u.has(L)&&r.push(F)}),tp.forEach(P=>{let L=i.get(P.element);if(L&&L.length){let F=vs(L);P.setRealPlayer(F)}}),r.forEach(P=>{P.parentPlayer?P.syncPlayerEvents(P.parentPlayer):P.destroy()});for(let P=0;P!tn.destroyed);Pe.length?rA(this,L,Pe):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==vo;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=xt(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)})}Ks(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],u=new Set,p=new Set,m=t.timelines.map(w=>{let y=w.element;u.add(y);let b=y[en];if(b&&b.removedBeforeQueried)return new ar(w.duration,w.delay);let _=y!==l,D=iA((s.get(y)||J1).map(Re=>Re.getRealPlayer())).filter(Re=>{let Se=Re;return Se.element?Se.element===y:!1}),Y=i.get(y),te=o.get(y),me=ov(this._normalizer,w.keyframes,Y,te),Ke=this._buildPlayer(w,me,D);if(w.subTimeline&&r&&p.add(y),_){let Re=new So(e,a,y);Re.setRealPlayer(Ke),c.push(Re)}return Ke});c.forEach(w=>{xt(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>tA(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>jt(w,Xg));let g=vs(m);return g.onDestroy(()=>{u.forEach(w=>ti(w,Xg)),xn(l,t.toStyles)}),p.forEach(w=>{xt(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 ar(e.duration,e.delay)}},So=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ar,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=>Gh(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){xt(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 tA(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 nA(n){return n??null}function kl(n){return n&&n.nodeType===1}function sA(n){return n=="start"||n=="done"}function nv(n,e){let t=n.style.display;return n.style.display=e??"none",t}function sv(n,e,t,s,r){let i=[];t.forEach(l=>i.push(nv(l)));let o=[];s.forEach((l,c)=>{let u=new Map;l.forEach(p=>{let m=e.computeStyle(c,p,r);u.set(p,m),(!m||m.length==0)&&(c[en]=eA,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>nv(l,i[a++])),o}function rv(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 jt(n,e){n.classList?.add(e)}function ti(n,e){n.classList?.remove(e)}function rA(n,e,t){vs(t).onDone(()=>n.processLeaveNode(e))}function iA(n){let e=[];return vv(n,e),e}function vv(n,e){for(let t=0;tr.add(i)):e.set(n,s),t.delete(n),!0}var ni=class{constructor(e,t,s){this._driver=t,this._normalizer=s,this._triggerCache={},this.onRemovalComplete=(r,i)=>{},this._transitionEngine=new Wh(e.body,t,s),this._timelineEngine=new Uh(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=dv(this._driver,i,l,c);if(l.length)throw o1(r,l);c.length&&void 0,a=z1(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]=Gg(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]=Gg(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 aA(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Nh(e[0]),e.length>1&&(s=Nh(e[e.length-1]))):e instanceof Map&&(t=Nh(e)),t||s?new jh(n,t,s):null}var jh=class n{static{this.initialStylesByElement=new WeakMap}constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let r=n.initialStylesByElement.get(e);r||n.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&xn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(xn(this._element,this._initialStyles),this._endStyles&&(xn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ks(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ks(this._element,this._endStyles),this._endStyles=null),xn(this._element,this._initialStyles),this._state=3)}};function Nh(n){let e=null;return n.forEach((t,s)=>{lA(s)&&(e=e||new Map,e.set(s,t))}),e}function lA(n){return n==="display"||n==="position"}var Rl=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:Zh(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},Ol=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return av(e,t)}getParentElement(e){return Xh(e)}query(e,t,s){return lv(e,t,s)}computeStyle(e,t,s){return Zh(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 Rl);k1(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=C1(t).map(g=>new Map(g));p=I1(e,p,c);let m=aA(e,p);return new Rl(e,p,l,m)}};var Il="@",wv="@.disabled",$l=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.parentNode(t)&&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)==Il&&t==wv?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)}},zh=class extends $l{constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Il?t.charAt(1)=="."&&t==wv?(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)==Il){let r=cA(e),i=t.slice(1),o="";return i.charAt(0)!=Il&&([i,o]=uA(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 cA(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function uA(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var Vl=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)=>{i?.removeChild(null,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 $l(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 zh(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 pA=(()=>{class n extends ni{constructor(t,s,r){super(t,s,r)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(s){return new(s||n)(Ze(Lp),Ze(Zs),Ze(Js))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})();function dA(){return new Dl}function fA(n,e,t){return new Vl(n,e,t)}var yv=[{provide:Js,useFactory:dA},{provide:ni,useClass:pA},{provide:bp,useFactory:fA,deps:[$p,ni,Ep]}],mA=[{provide:Zs,useFactory:()=>new Ol},{provide:Wl,useValue:"BrowserAnimations"},...yv],gk=[{provide:Zs,useClass:Yh},{provide:Wl,useValue:"NoopAnimations"},...yv];function Ev(){return _p("NgEagerAnimations"),[...mA]}var gA=n=>()=>Gn(void 0,null,function*(){yield n.initialize()}),Sv={providers:[gp(id,ii,cd,un,td),Rp(Op()),Ev(),ei.production?Gl(xh,Ql()):Gl(xh,Ql(),Gp(zp)),{provide:Pp,useFactory:gA,multi:!0,deps:[bl]}]};function vA(n,e){n&1&&Po(0)}var bv=oi("toggle",[Jn(":enter",[$e({maxWidth:"0"}),Zn("100ms",$e({maxWidth:"*"}))]),Jn(":leave",[$e({maxWidth:""}),Zn("100ms",$e({maxWidth:"0"}))])]),_v=(()=>{class n{constructor(t,s,r){this.ss=t,this.r2=s,this.cd=r,this.sidebarToggle$=this.ss.sidebarToggle.pipe(ai())}ngOnInit(){this.sidebarToggle$.subscribe(t=>{this.info=t,this.cd.detectChanges()})}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(Io),M(Fo))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-sidebar"]],standalone:!0,features:[Me],decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(s,r){s&1&&ye(0,vA,1,0,"ng-container",0),s&2&&ee("ngComponentOutlet",r.info==null?null:r.info.component)("ngComponentOutletInputs",r.info==null?null:r.info.inputs)},dependencies:[tr],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})}}return n})();var xv=oi("toggleError",[Jn(":enter",[$e({transform:"translateX(100%)"}),Zn("100ms",$e({transform:"translateX(0)"}))]),Jn(":leave",[$e({transform:"translateX(0)"}),Zn("100ms",$e({transform:"translateX(100%)"}))])]),Cv=oi("toggleErrorLeft",[Jn(":enter",[$e({transform:"translateX(-100%)"}),Zn("100ms",$e({transform:"translateX(0)"}))]),Jn(":leave",[$e({transform:"translateX(0)"}),Zn("100ms",$e({transform:"translateX(-100%)"}))])]),Av=(()=>{class n{constructor(t,s){this.es=t,this.el=s,this.height=32}get isLeft(){return this.error.isLeft}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}ngOnInit(){}ngAfterViewInit(){}onClick(t){this.es.close(this.error)}static{this.\u0275fac=function(s){return new(s||n)(M(sr),M(sn))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(s,r){s&1&&J("click",function(o){return r.onClick(o)}),s&2&&(No("bottom",r.getOffset,"px"),Je("left",r.isLeft))},inputs:{error:"error"},standalone:!0,features:[Me],decls:2,vars:1,template:function(s,r){s&1&&(B(0,"span"),ve(1),R()),s&2&&(k(),Qt(r.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}"]})}}return n})();var wA=["inp"],ql=(()=>{class n{constructor(){this.search=new si,this.value="",this.onChange=t=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=Co(this.inp.nativeElement,"input").pipe(Ao(200),To()).subscribe(()=>{this.search.emit(this.value)})}writeValue(t){this.value=t}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){}onModelChange(t){this.writeValue(t),this.onChange(t)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}static{this.\u0275fac=function(s){return new(s||n)}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-search-input"]],viewQuery:function(s,r){if(s&1&&ut(wA,7),s&2){let i;ht(i=pt())&&(r.inp=i.first)}},outputs:{search:"search"},standalone:!0,features:[Ip([{provide:Yp,useExisting:dp(()=>n),multi:!0}]),Me],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(s,r){if(s&1){let i=Ce();ge(0,"img",1),B(1,"input",2,0),J("keydown.enter",function(){ce(i);let a=Do(2);return ue(a.blur())}),Tn("ngModelChange",function(a){return ce(i),An(r.value,a)||(r.value=a),ue(a)}),J("ngModelChange",function(a){return ce(i),ue(r.onModelChange(a))}),R()}s&2&&(k(),Cn("ngModel",r.value))},dependencies:[un,$o,Yn,Kn,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%]{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}"]})}}return n})();function yA(n,e){if(n&1&&(B(0,"div",1),ve(1),R()),n&2){let t=ne();k(),rn(" ",t.data.title," ")}}function EA(n,e){n&1&&Po(0)}function SA(n,e){if(n&1&&ye(0,EA,1,0,"ng-container",4),n&2){let t=ne();ee("ngComponentOutlet",t.data==null?null:t.data.component)("ngComponentOutletInputs",t.data==null?null:t.data.inputs)}}function bA(n,e){if(n&1){let t=Ce();B(0,"dsw-search-input",7),J("search",function(r){ce(t);let i=ne(2);return ue(i.onSearch(r))}),R()}if(n&2){let t=ne(2);ee("ngModel",t.data.search)}}function _A(n,e){if(n&1){let t=Ce();B(0,"button",8),J("click",function(){let r=ce(t).$implicit,i=ne(2);return ue(i.onButtonClick(r))}),ve(1),R()}if(n&2){let t=e.$implicit;Je("btn-white",!t.default),k(),rn(" ",t.label," ")}}function xA(n,e){if(n&1&&(B(0,"div",3),ye(1,bA,1,1,"dsw-search-input",5),zt(2,_A,2,3,"button",6,Qn),R()),n&2){let t=ne();k(),pe(t.data.search!==void 0?1:-1),k(),Gt(t.data.buttons)}}var kv=(()=>{class n{constructor(t,s,r,i){this.ms=t,this.cd=s,this.el=r,this.r2=i,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(t=>t.unsubscribe())}getPath(t){let s=[],r=t.target;for(;r;)s.push(r),r=r.parentElement;return s.indexOf(window)===-1&&s.indexOf(document)===-1&&s.push(document),s.indexOf(window)===-1&&s.push(window),s}onClick(t){if(!this.data.closeByBackdropClick)return;this.getPath(t).some(r=>!!r.classList?.contains("modal"))||(this.close(),t.preventDefault())}onGlobalKeyPressed(t){if(this.isTopmost())switch(t.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey();break}}close(){this.ms.close(this.data)}onButtonClick(t){t.click&&t.click(this,this.data,t),t.autoClose&&this.close()}onSearch(t){this.search.emit(t)}ngOnChanges(t){t.data?.currentValue&&t.data.currentValue!==t.data.previousValue&&this.cd.detectChanges()}processEnterKey(){if(!this.data.buttons?.length)return;let t=this.data.buttons.find(s=>s.default);t&&(t.click&&t.click(this,this.data,t),t.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){let t=this.ms.modals();return t[t.length-1]===this.data}subscribeForOutputs(t){if(this.data.outputs)for(let s in this.data.outputs){let r=t[s];if(!r||!(r instanceof si))return;this.subscriptions.push(r.subscribe((...i)=>this.data.outputs?.[s](...i)))}}updateHostStyles(){let t=this.data.componentStyles,s=this.dynCompEl?.nativeElement;if(s&&(s.nodeName==="#comment"&&(s=s.previousElementSibling),t))for(let r in t)this.r2.setStyle(s,r,t[r])}initDynamicComponent(){let t;this.ngComponentOutlet?._componentRef?.instance&&(t=this.ngComponentOutlet._componentRef.instance),t&&(this.data.onComponentInit&&this.data.onComponentInit(t),this.subscribeForOutputs(t))}static{this.\u0275fac=function(s){return new(s||n)(M(or),M(Fo),M(sn),M(Io))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-modal"]],viewQuery:function(s,r){if(s&1&&(ut(tr,5,sn),ut(tr,5)),s&2){let i;ht(i=pt())&&(r.dynCompEl=i.first),ht(i=pt())&&(r.ngComponentOutlet=i.first)}},hostVars:2,hostBindings:function(s,r){s&1&&J("mousedown",function(o){return r.onClick(o)})("keydown",function(o){return r.onGlobalKeyPressed(o)},!1,ko),s&2&&Je("no-backdrop",r.noBackdrop)},inputs:{data:"data"},standalone:!0,features:[vp,Me],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(s,r){s&1&&(B(0,"div",0),ye(1,yA,2,1,"div",1),B(2,"div",2),ve(3),ye(4,SA,1,2,"ng-container"),R(),ye(5,xA,4,1,"div",3),R()),s&2&&(Je("no-padding",r.data.noPadding)("min-height",r.data.minHeight),k(),pe(r.data.title?1:-1),k(2),rn(" ",r.data.message," "),k(),pe(r.isInitialized?4:-1),k(),pe(r.data.buttons!=null&&r.data.buttons.length?5:-1))},dependencies:[ql,un,Yn,Kn,tr],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}"]})}}return n})();var CA=["inpSearch"];function AA(n,e){if(n&1&&(B(0,"div",5),ve(1),R()),n&2){let t=ne();k(),Qt(t.title)}}function TA(n,e){if(n&1){let t=Ce();B(0,"span",20),J("click",function(){ce(t);let r=ne(2);return ue(r.isMorePressed=!r.isMorePressed)}),ve(1," ... "),R()}if(n&2){let t=ne(2);Je("pressed",t.isMorePressed)}}function kA(n,e){if(n&1&&(B(0,"a",21),ve(1),R()),n&2){let t=e.$implicit;ee("routerLink",t.url)("title",t.title),k(),Qt(t.title)}}function IA(n,e){if(n&1&&(B(0,"div",19),zt(1,kA,2,3,"a",21,Qn),R()),n&2){let t=ne().$implicit;k(),Gt(t.moreList)}}function NA(n,e){if(n&1){let t=Ce();B(0,"a",17),J("click",function(r){let i=ce(t).$implicit,o=ne();return ue(o.hideMoreDropdown(r,i.isMoreButton))}),ve(1),ye(2,TA,2,2,"span",18)(3,IA,3,0,"div",19),R()}if(n&2){let t=e.$implicit,s=ne();Je("show-only-last",s.isSearch),ee("routerLink",t.url)("title",t.title),k(),rn(" ",t.title," "),k(),pe(t.isMoreButton?2:-1),k(),pe(t.isMoreButton&&s.isMorePressed?3:-1)}}function PA(n,e){if(n&1){let t=Ce();B(0,"button",22),_e(1,"i18n"),J("click",function(){ce(t);let r=ne();return ue(r.gotoZenDeepSee())}),ge(2,"img",23),R()}n&2&&ee("title",xe(1,1,"gotoDeepSee"))}function DA(n,e){if(n&1){let t=Ce();B(0,"div",24),_e(1,"i18n"),J("mouseover",function(){ce(t);let r=ne();return ue(r.showShareDashboard())}),ge(2,"img",25)(3,"dsw-share-dashboard",26),R()}if(n&2){let t=ne();ee("title",xe(1,3,"shareDashboard")),k(3),ee("shareUrl",t.shareUrl)("isSmall",!0)}}function MA(n,e){if(n&1){let t=Ce();B(0,"button",22),_e(1,"i18n"),J("click",function(){ce(t);let r=ne();return ue(r.onAddClick())}),B(2,"span",27),ve(3,"+"),R()()}n&2&&ee("title",xe(1,1,"addWidget"))}function LA(n,e){if(n&1){let t=Ce();B(0,"div",28),J("click",function(){ce(t);let r=ne();return ue(r.toggleMobileFilter())}),ge(1,"img",29),R()}}function FA(n,e){if(n&1&&(B(0,"option",14),ve(1),R()),n&2){let t=e.$implicit;ee("value",t),k(),Qt(t)}}var Iv=(()=>{class n{constructor(t,s,r,i,o,a,l,c,u,p,m){this.ss=t,this.hs=s,this.ds=r,this.ms=i,this.us=o,this.modal=a,this.fs=l,this.storage=c,this.i18n=u,this.route=p,this.router=m,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(g=>g.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(t,s,r){let i=decodeURIComponent(s);return i.indexOf("?")!==-1&&(i=i.split("?")[0]),{title:i,url:decodeURIComponent(t.slice(0,r+1).join("/"))}}ngOnInit(){this.namespace=dt,this.subTitle=this.ms.onSetTitle.subscribe(t=>{this.title=t||this.path[this.path?.length-1]?.title||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(t=>{this.isMobileFilterButton=t})}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-FQLYM4TH.js")})}gotoZenDeepSee(){let t=this.storage.serverSettings.DefaultApp||"/csp/"+dt,s=this.path[this.path.length-1]?.url?.split("/").slice(1).join("/"),i=(location.pathname.split("/").slice(0,-2).join("/")||"")+t+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(s||""));window.open(i)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(t){let s=t.toLowerCase(),r=this.storage.getAppSettings();this.i18n.current=s,r.language=s,this.storage.setAppSettings(r),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(t,s=!1){s||t?.target?.classList?.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent({component:import("./chunk-3X2IJ3CK.js"),single:!0})}onSearch(t){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(t)}getPathFromLocation(){let t=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(t),this.pathSegments=t.map((s,r)=>n.processPath(t,s,r)),this.buildMoreDropdown(),this.pathSegments}getPathFromNavigation(t){let r=this.router.parseUrl(this.router.url).root.children.primary?.segments?.map(i=>i.path)||[];return this.initSearch(r),this.pathSegments=r.map((i,o)=>n.processPath(r,i,o)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){let t=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:t})}}initSearch(t){this.isSearch=!t[t.length-1]?.split("?")[0]?.endsWith(".dashboard")}getNavigationEndStream(){return lp(ap(this.getPathFromLocation()),this.router.events.pipe(cp(t=>t instanceof Hp),_o(t=>this.getPathFromNavigation(t)))).pipe(pp(t=>(this.path=t,t)))}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(hn),M(At),M(Vo),M(rr),M(or),M(ir),M(ln),M(Xn),M(on),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["dsw-header"]],viewQuery:function(s,r){if(s&1&&ut(CA,5),s&2){let i;ht(i=pt())&&(r.inpSearch=i.first)}},hostBindings:function(s,r){s&1&&J("click",function(o){return r.hideMoreDropdown(o)},!1,ko)},standalone:!0,features:[Me],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(s,r){if(s&1){let i=Ce();B(0,"div")(1,"button",2),_e(2,"async"),J("click",function(){return ce(i),ue(r.toggleMenu())}),ge(3,"img",3),R(),B(4,"h2",4),ye(5,AA,2,1,"div",5),B(6,"div",6),zt(7,NA,4,7,"a",7,Qn),_e(9,"async"),R()(),ye(10,PA,3,3,"button",8)(11,DA,4,5,"div",9)(12,MA,4,3,"button",8)(13,LA,2,0,"div",10),R(),B(14,"div",11)(15,"dsw-search-input",12,0),J("search",function(a){return ce(i),ue(r.onSearch(a))}),R(),B(17,"select",13,1),Tn("ngModelChange",function(a){return ce(i),An(r.selectedLanguage,a)||(r.selectedLanguage=a),ue(a)}),J("change",function(){ce(i);let a=Do(18);return ue(r.selectLanguage(a.value))}),zt(19,FA,2,2,"option",14,Qn),R(),B(21,"button",15),_e(22,"i18n"),J("click",function(){return ce(i),ue(r.logout())}),ge(23,"img",16),ve(24),_e(25,"i18n"),R()()}if(s&2){let i;k(),Je("active",!!((i=xe(2,13,r.ss.sidebarToggle))!=null&&i.component)),k(4),pe(r.isSearch?-1:5),k(),Je("no-opacity",r.isSearch),k(),Gt(xe(9,15,r.path$)),k(3),pe(r.isSearch?-1:10),k(),pe(r.isSearch?-1:11),k(),pe(!r.isSearch&&r.canEdit?12:-1),k(),pe(!r.isSearch&&r.isMobileFilterButton?13:-1),k(2),ee("hidden",!r.isSearch),k(2),Cn("ngModel",r.selectedLanguage),k(2),Gt(r.languages),k(2),ee("title",xe(22,17,"signout")),k(3),rn(" ",xe(25,19,"signout")," ")}},dependencies:[jp,dd,ql,un,Zp,Jp,Kp,Yn,Kn,nr,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%]{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}}']})}}return n})();var BA=["sidebar"];function RA(n,e){n&1&&ge(0,"dsw-header")}function OA(n,e){if(n&1){let t=Ce();B(0,"dsw-sidebar",null,0),J("@toggle.done",function(){ce(t);let r=ne();return ue(r.onAnimDone())})("@toggle.start",function(){ce(t);let r=ne();return ue(r.onAnimStart())}),R()}n&2&&ee("@toggle",void 0)}function $A(n,e){if(n&1&&ge(0,"dsw-modal",2),n&2){let t=e.$implicit;ee("data",t)("ngClass",t.class)}}function VA(n,e){if(n&1&&ge(0,"dsw-error",3),n&2){let t=e.$implicit;ee("@toggleError",!t.isLeft)("@toggleErrorLeft",t.isLeft)("error",t)}}var Nv=(()=>{class n{constructor(t,s,r,i,o){this.sbs=t,this.hs=s,this.es=r,this.ms=i,this.router=o,this.title="DeepSeeWeb",this.isSidebar=!1,this.errors=[]}ngOnInit(){this.router.events.subscribe(t=>{t instanceof Up&&this.sbs.hide()}),this.sbs.sidebarToggle.subscribe(t=>{this.isSidebar=!!t})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(t,s){return s.id}static{this.\u0275fac=function(s){return new(s||n)(M(Tt),M(hn),M(sr),M(or),M(an))}}static{this.\u0275cmp=De({type:n,selectors:[["app-root"]],viewQuery:function(s,r){if(s&1&&ut(BA,5),s&2){let i;ht(i=pt())&&(r.sidebar=i.first)}},standalone:!0,features:[Me],decls:10,vars:6,consts:[["sidebar",""],[1,"content"],[3,"data","ngClass"],[3,"error"]],template:function(s,r){s&1&&(ye(0,RA,1,0,"dsw-header"),_e(1,"async"),B(2,"div",1),ye(3,OA,2,1,"dsw-sidebar"),ge(4,"router-outlet"),R(),zt(5,$A,1,2,"dsw-modal",2,Cp),zt(7,VA,1,3,"dsw-error",3,r.trackError,!0),_e(9,"async")),s&2&&(pe(xe(1,2,r.hs.visible$)?0:-1),k(3),pe(r.isSidebar?3:-1),k(2),Gt(r.ms.modals()),k(2),Gt(xe(9,4,r.es.errors$)))},dependencies:[Iv,_v,Wp,kv,Bo,Av,nr],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:[bv,xv,Cv]},changeDetection:0})}}return n})();ei.production&&void 0;Vp(Nv,Sv).catch(n=>console.error(n)); diff --git a/module.xml b/module.xml index 3923fdce..8807643f 100644 --- a/module.xml +++ b/module.xml @@ -3,7 +3,7 @@ dsw - 4.0.27 + 4.0.28 module DeepSeeWeb (DSW) is an Angular UI layer for IRIS BI (DeepSee) dashboards diff --git a/package-lock.json b/package-lock.json index eab53474..d5c735b1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "deep-see-web", - "version": "4.0.27", + "version": "4.0.28", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "deep-see-web", - "version": "4.0.27", + "version": "4.0.28", "dependencies": { "@angular/animations": "^18.2.10", "@angular/common": "^18.2.10", diff --git a/package.json b/package.json index bc83a2c1..23e2af2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "deep-see-web", - "version": "4.0.27", + "version": "4.0.28", "scripts": { "ng": "ng", "start": "ng serve --proxy-config=proxy.conf.samples-bi.js", diff --git a/src/app/components/widgets/base/widget-header/widget-header.component.html b/src/app/components/widgets/base/widget-header/widget-header.component.html index 2dae2b87..4fc5ddd5 100644 --- a/src/app/components/widgets/base/widget-header/widget-header.component.html +++ b/src/app/components/widgets/base/widget-header/widget-header.component.html @@ -1,6 +1,10 @@ - {{ widget.title }} + @if (widgetTooltip) { + {{ widget.title }} + } @else { + {{ widget.title }} + } @if (hasFilters) {