diff --git a/dist/3rdpartylicenses.txt b/dist/3rdpartylicenses.txt index 295e63cf..ade2059f 100644 --- a/dist/3rdpartylicenses.txt +++ b/dist/3rdpartylicenses.txt @@ -415,21 +415,105 @@ License: "MIT" Package: @angular/platform-browser-dynamic License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/compiler License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/animations License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/platform-browser License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: angular-gridster2 @@ -457,6 +541,37 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-------------------------------------------------------------------------------- +Package: @angular/core +License: "MIT" + +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +-------------------------------------------------------------------------------- +Package: @ng-select/ng-select +License: "MIT" + + -------------------------------------------------------------------------------- Package: numeral License: "MIT" @@ -546,29 +661,82 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- -Package: @angular/core +Package: @angular/forms License: "MIT" +The MIT License --------------------------------------------------------------------------------- -Package: @ng-select/ng-select -License: "MIT" +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: --------------------------------------------------------------------------------- -Package: @angular/forms -License: "MIT" +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/common License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: @angular/router License: "MIT" +The MIT License + +Copyright (c) 2010-2024 Google LLC. https://angular.dev/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. -------------------------------------------------------------------------------- Package: rxjs diff --git a/dist/changelog.md b/dist/changelog.md index 1bab2b02..62f94954 100644 --- a/dist/changelog.md +++ b/dist/changelog.md @@ -1,3 +1,9 @@ +#### 4.0.15 +* changed MDX generation for filters (#341) +* improved filter popup opening time by moving date picker code to deferred loading, only if filter is date(previously loaded always) +* fixed jumping about modal issue +* updated to Angular 18.2.10 + #### 4.0.14 * fixed issue with filter popup goes offscreen (#342) * selected filter values now shown on top of the values list (#345) diff --git a/dist/chunk-23TAPEHU.js b/dist/chunk-23TAPEHU.js new file mode 100644 index 00000000..0c65141a --- /dev/null +++ b/dist/chunk-23TAPEHU.js @@ -0,0 +1 @@ +import{X as o,g as i,za as e}from"./chunk-ZEAAPN4P.js";var m=(()=>{class t{constructor(){this.visible$=new i(!1),this.onSearch=new i(""),this.onSearchReset=new e,this.shareDashboardEmitter=new e,this.gotoZenDeepSeeEmitter=new e,this.mobileFilterToggle=new e,this.mobileFilterDialogToggle=new e}resetSearch(){this.onSearchReset.emit()}shareDashboard(){this.shareDashboardEmitter.emit()}gotoZenDeepSee(){this.gotoZenDeepSeeEmitter.emit()}showMobileFilterButton(){this.mobileFilterToggle.emit(!0)}hideMobileFilterButton(){this.mobileFilterToggle.emit(!1)}toggleMobileFilterDialog(){this.mobileFilterDialogToggle.emit()}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=o({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();export{m as a}; diff --git a/dist/chunk-3BR2DLMR.js b/dist/chunk-3BR2DLMR.js new file mode 100644 index 00000000..00572c74 --- /dev/null +++ b/dist/chunk-3BR2DLMR.js @@ -0,0 +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-5IMEEJFM.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-Y24QL6RM.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-VET2YQWX.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-YSVXLS2N.js b/dist/chunk-3S2XLZ4S.js similarity index 51% rename from dist/chunk-YSVXLS2N.js rename to dist/chunk-3S2XLZ4S.js index e0563080..486262b1 100644 --- a/dist/chunk-YSVXLS2N.js +++ b/dist/chunk-3S2XLZ4S.js @@ -1,2 +1,2 @@ -import{a as A}from"./chunk-Y2BGUXQS.js";import{a as I}from"./chunk-7UI5Z64Y.js";import{a as N}from"./chunk-EAEBZZLM.js";import{a as j}from"./chunk-FG7UA2MK.js";import{a as D}from"./chunk-RNWIIYZZ.js";import{a as F}from"./chunk-SUAWKU6Z.js";import{b as T}from"./chunk-6BTXKMB7.js";import{d as W,e as O,i as P,j as k}from"./chunk-YBN4SQR6.js";import{F as S}from"./chunk-CKPIETEW.js";import{$a as p,$b as u,Db as e,Eb as t,Fb as a,Jb as y,Nb as g,Ob as M,Xb as n,_b as h,ab as s,ac as f,cc as E,fa as _,qa as w,ra as v,rb as x,tb as b,yb as C}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function B(m,l){if(m&1){let z=y();e(0,"button",11),g("click",function(){w(z);let o=M();return v(o.deleteWidgetClick())}),n(1,"Delete widget"),t()}}var U=(()=>{let l=class l{constructor(c,o,i,d,r){this.ms=c,this.dbs=o,this.eds=i,this.mds=d,this.sbs=r,this.invalid=[],this.model={edKey:"ed"+new Date().getTime(),dashboard:this.dbs.current.value,name:"",title:"",dataSource:"",type:"pivot",dataLink:"",dataProperties:[],dependents:[],controls:[],mdx:"",x:0,y:0,rows:4,cols:4}}ngOnInit(){this.eds.resetSavedState(),this.widget?(this.model=this.widget,this.widget.oldWidget=JSON.parse(JSON.stringify(this.widget)),this.eds.updateEditedWidget({widget:this.model}),this.eds.resetSavedState()):this.initializeNewWidget()}ngOnDestroy(){this.eds.cancelEditing()}onCancelEditing(){this.close()}onSave(){this.eds.save(this.model)}onTypeAndDataSourceClick(){this.eds.navigateDataSourceAndType(this.model)}updateWidget(){this.eds.updateEditedWidget({widget:this.model})}deleteWidgetClick(){this.eds.deleteWidget(this.model)}close(){this.sbs.hide()}initializeNewWidget(){let c=this.dbs.getWidgets().filter(o=>o.type!==S.const.emptyWidgetClass).length+1;this.model.name=`Widget${c}`,this.eds.onNewWidget.emit(this.model)}};l.\u0275fac=function(o){return new(o||l)(s(N),s(T),s(j),s(D),s(F))},l.\u0275cmp=_({type:l,selectors:[["dsw-widget-editor"]],inputs:{widget:"widget",invalid:"invalid"},standalone:!0,features:[E],decls:37,vars:5,consts:[[3,"cancel","apply","isWidgetEditorWarning"],[1,"container"],[1,"headline"],[3,"ngModelChange","change","required","ngModel"],[3,"ngModelChange","change","ngModel"],[1,"navigation"],[1,"btn-section",3,"click"],["src","assets/img/icons/icon-next-blue.svg"],["title","Not implemented yet",1,"btn-section","disabled"],[1,"footer"],[1,"btn","btn-white"],[1,"btn","btn-white",3,"click"]],template:function(o,i){o&1&&(e(0,"dsw-sidebar-actions",0),g("cancel",function(){return i.onCancelEditing()})("apply",function(){return i.onSave()}),n(1,` Add widget -`),t(),e(2,"div",1)(3,"div",2),n(4," General settings "),t(),e(5,"label"),n(6,"Name"),t(),e(7,"dsw-input",3),f("ngModelChange",function(r){return u(i.model.name,r)||(i.model.name=r),r}),g("change",function(){return i.updateWidget()}),t(),e(8,"label"),n(9,"Title"),t(),e(10,"dsw-input",4),f("ngModelChange",function(r){return u(i.model.title,r)||(i.model.title=r),r}),g("change",function(){return i.updateWidget()}),t(),e(11,"div",5)(12,"button",6),g("click",function(){return i.onTypeAndDataSourceClick()}),n(13," Type and data source "),a(14,"img",7),t(),e(15,"button",8),n(16," Widget settings "),a(17,"img",7),t(),e(18,"button",8),n(19," Controls "),a(20,"img",7),t(),e(21,"button",8),n(22," Data properties "),a(23,"img",7),t(),e(24,"div",2),n(25," Diagram and pivot table "),t(),e(26,"button",8),n(27," Table settings "),a(28,"img",7),t(),e(29,"button",8),n(30," Diagram settings "),a(31,"img",7),t(),e(32,"button",8),n(33," Diagram legend "),a(34,"img",7),t()()(),e(35,"div",9),x(36,B,2,0,"button",10),t()),o&2&&(b("isWidgetEditorWarning",!0),p(7),b("required",i.invalid.includes("name")),h("ngModel",i.model.name),p(3),h("ngModel",i.model.title),p(26),C(i.widget?36:-1))},dependencies:[I,A,k,W,P,O],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}"],changeDetection:0});let m=l;return m})();export{U as WidgetEditorComponent}; +import{a as D}from"./chunk-NBJ2LUFY.js";import{a as j}from"./chunk-43K6TYMZ.js";import{a as A}from"./chunk-NHWJ6QQD.js";import{a as N}from"./chunk-G3W4DD55.js";import{a as T}from"./chunk-MDOQS4TE.js";import{a as k}from"./chunk-G7BOERRR.js";import{b as F}from"./chunk-CF2VGD6U.js";import{d as S,e as W,i as O,j as P}from"./chunk-HYAUW6N4.js";import{F as M}from"./chunk-GDT23CSW.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-7UI5Z64Y.js b/dist/chunk-43K6TYMZ.js similarity index 62% rename from dist/chunk-7UI5Z64Y.js rename to dist/chunk-43K6TYMZ.js index 4ac0ca83..2969aacd 100644 --- a/dist/chunk-7UI5Z64Y.js +++ b/dist/chunk-43K6TYMZ.js @@ -1,3 +1,3 @@ -import{a as k}from"./chunk-FG7UA2MK.js";import{a as O}from"./chunk-SUAWKU6Z.js";import{D as E}from"./chunk-CKPIETEW.js";import{$a as a,Bc as F,Da as s,Db as o,Eb as n,Fb as x,Nb as b,Pb as C,Qb as w,Xb as d,Zb as y,ab as l,cc as _,fa as f,hc as h,ic as p,rb as m,tb as g,vb as u,yb as v}from"./chunk-ZKAUCJHV.js";var M=["*"];function P(r,t){r&1&&(o(0,"div",1),d(1,"You have unsaved changes"),n())}var U=(()=>{let t=class t{constructor(c,i,e){this.sbs=c,this.eds=i,this.cd=e,this.isBack=!1,this.isWidgetEditorWarning=!1,this.cancel=new s,this.apply=new s,this.isWidgetEditorWarningVisible=!1}ngOnInit(){this.subOnUnsavedChanged=this.eds.onUnsavedChanged.subscribe(c=>{this.isWidgetEditorWarningVisible=c,this.cd.detectChanges()})}onCloseClick(){this.isBack&&this.sbs.popComponent(),this.cancel.emit()}ngOnDestroy(){this.subOnUnsavedChanged?.unsubscribe()}};t.\u0275fac=function(i){return new(i||t)(l(O),l(k),l(F))},t.\u0275cmp=f({type:t,selectors:[["dsw-sidebar-actions"]],inputs:{isBack:"isBack",isWidgetEditorWarning:"isWidgetEditorWarning"},outputs:{cancel:"cancel",apply:"apply"},standalone:!0,features:[_],ngContentSelectors:M,decls:11,vars:10,consts:[[3,"click","title"],[1,"unsaved"],["src","assets/img/icons/icon-check.svg"]],template:function(i,e){i&1&&(C(),o(0,"button",0),h(1,"i18n"),b("click",function(){return e.onCloseClick()}),d(2),n(),o(3,"label")(4,"div"),w(5),n(),m(6,P,2,0,"div",1),n(),o(7,"button",0),h(8,"i18n"),b("click",function(){return e.apply.emit()}),x(9,"img",2),d(10,` Save -`),n()),i&2&&(g("title",p(1,6,"cancel")),a(2),y(" ",e.isBack?"Back":"Close",` -`),a(4),v(e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible?6:-1),a(),u("warning",e.isWidgetEditorWarning&&e.isWidgetEditorWarningVisible),g("title",p(8,8,"save")))},dependencies:[E],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;white-space:nowrap;height:var(--header-height);display:flex;justify-content:space-between;border-bottom:1px solid var(--cl-header-border);margin-bottom:6px;margin-left:20px}[_nghost-%COMP%] button[_ngcontent-%COMP%]{padding:0;cursor:pointer;font-family:Oxygen;display:block;text-align:left;font-size:14px;background-color:transparent;border:none;outline:none;flex-shrink:0;flex-grow:0;color:var(--cl-accent);min-width:50px;transition:background-color .3s linear}[_nghost-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:var(--cl-header-btn-hover)}[_nghost-%COMP%] button[_ngcontent-%COMP%]:last-child{text-align:right}[_nghost-%COMP%] button[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{display:none;vertical-align:middle;transform:translateY(-1px);margin-right:4px;width:14px}[_nghost-%COMP%] > label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;font-family:Oxygen;color:#000;font-size:16px}.img-accept[_ngcontent-%COMP%]{max-width:60%;max-height:60%}.unsaved[_ngcontent-%COMP%]{position:absolute;left:0;right:0;text-align:center;bottom:0;font-family:Oxygen;font-size:12px;color:#f70000}"],changeDetection:0});let r=t;return r})();export{U as a}; +import{a as O}from"./chunk-G3W4DD55.js";import{a as E}from"./chunk-G7BOERRR.js";import{D as F}from"./chunk-GDT23CSW.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-47WHPMM7.js b/dist/chunk-47WHPMM7.js new file mode 100644 index 00000000..812f43b6 --- /dev/null +++ b/dist/chunk-47WHPMM7.js @@ -0,0 +1 @@ +import{Ea as _e,Eb as Fe,Fb as Se,Gb as Te,Hb as ae,Ib as ne,Kc as He,Nb as pe,Rb as me,Sb as ge,Xb as xe,Yb as Ve,Zb as Ee,ab as ie,bb as se,bc as Oe,dc as Ae,fa as te,lc as re,qa as ce,ra as ue,xb as Me,za as Ce,zb as $e}from"./chunk-ZEAAPN4P.js";import{a as be,d as we,f as ke}from"./chunk-MG3ERZGY.js";var Le=we((G,ve)=>{"use strict";(function(w,F){typeof G=="object"&&typeof ve=="object"?ve.exports=F():typeof define=="function"&&define.amd?define([],F):typeof G=="object"?G.AirDatepicker=F():w.AirDatepicker=F()})(G,function(){return function(){"use strict";var w={d:function(o,e){for(var i in e)w.o(e,i)&&!w.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:e[i]})},o:function(o,e){return Object.prototype.hasOwnProperty.call(o,e)}},F={};w.d(F,{default:function(){return V}});var l={days:"days",months:"months",years:"years",day:"day",month:"month",year:"year",eventChangeViewDate:"changeViewDate",eventChangeCurrentView:"changeCurrentView",eventChangeFocusDate:"changeFocusDate",eventChangeSelectedDate:"changeSelectedDate",eventChangeTime:"changeTime",eventChangeLastSelectedDate:"changeLastSelectedDate",actionSelectDate:"selectDate",actionUnselectDate:"unselectDate",cssClassWeekend:"-weekend-"},v={classes:"",inline:!1,locale:{days:["\u0412\u043E\u0441\u043A\u0440\u0435\u0441\u0435\u043D\u044C\u0435","\u041F\u043E\u043D\u0435\u0434\u0435\u043B\u044C\u043D\u0438\u043A","\u0412\u0442\u043E\u0440\u043D\u0438\u043A","\u0421\u0440\u0435\u0434\u0430","\u0427\u0435\u0442\u0432\u0435\u0440\u0433","\u041F\u044F\u0442\u043D\u0438\u0446\u0430","\u0421\u0443\u0431\u0431\u043E\u0442\u0430"],daysShort:["\u0412\u043E\u0441","\u041F\u043E\u043D","\u0412\u0442\u043E","\u0421\u0440\u0435","\u0427\u0435\u0442","\u041F\u044F\u0442","\u0421\u0443\u0431"],daysMin:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],months:["\u042F\u043D\u0432\u0430\u0440\u044C","\u0424\u0435\u0432\u0440\u0430\u043B\u044C","\u041C\u0430\u0440\u0442","\u0410\u043F\u0440\u0435\u043B\u044C","\u041C\u0430\u0439","\u0418\u044E\u043D\u044C","\u0418\u044E\u043B\u044C","\u0410\u0432\u0433\u0443\u0441\u0442","\u0421\u0435\u043D\u0442\u044F\u0431\u0440\u044C","\u041E\u043A\u0442\u044F\u0431\u0440\u044C","\u041D\u043E\u044F\u0431\u0440\u044C","\u0414\u0435\u043A\u0430\u0431\u0440\u044C"],monthsShort:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",dateFormat:"dd.MM.yyyy",timeFormat:"HH:mm",firstDay:1},startDate:new Date,firstDay:"",weekends:[6,0],dateFormat:"",altField:"",altFieldDateFormat:"T",toggleSelected:!0,keyboardNav:!0,selectedDates:!1,container:"",isMobile:!1,visible:!1,position:"bottom left",offset:12,view:l.days,minView:l.days,showOtherMonths:!0,selectOtherMonths:!0,moveToOtherMonthsOnSelect:!0,showOtherYears:!0,selectOtherYears:!0,moveToOtherYearsOnSelect:!0,minDate:"",maxDate:"",disableNavWhenOutOfRange:!0,multipleDates:!1,multipleDatesSeparator:", ",range:!1,dynamicRange:!0,buttons:!1,monthsField:"monthsShort",showEvent:"focus",autoClose:!1,fixedHeight:!1,prevHtml:'',nextHtml:'',navTitles:{days:"MMMM, yyyy",months:"yyyy",years:"yyyy1 - yyyy2"},timepicker:!1,onlyTimepicker:!1,dateTimeSeparator:" ",timeFormat:"",minHours:0,maxHours:24,minMinutes:0,maxMinutes:59,hoursStep:1,minutesStep:1,onSelect:!1,onChangeViewDate:!1,onChangeView:!1,onRenderCell:!1,onShow:!1,onHide:!1,onClickDayName:!1};function p(o){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;return typeof o=="string"?e.querySelector(o):o}function f(){let{tagName:o="div",className:e="",innerHtml:i="",id:t="",attrs:n={}}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=document.createElement(o);return e&&a.classList.add(...e.split(" ")),t&&(a.id=t),i&&(a.innerHTML=i),n&&E(a,n),a}function E(o,e){for(let[i,t]of Object.entries(e))t!==void 0&&o.setAttribute(i,t);return o}function R(o){return new Date(o.getFullYear(),o.getMonth()+1,0).getDate()}function y(o){let e=o.getHours(),{hours:i,dayPeriod:t}=fe(e);return{year:o.getFullYear(),month:o.getMonth(),fullMonth:o.getMonth()+1<10?"0"+(o.getMonth()+1):o.getMonth()+1,date:o.getDate(),fullDate:o.getDate()<10?"0"+o.getDate():o.getDate(),day:o.getDay(),hours:e,fullHours:K(e),hours12:i,dayPeriod:t,fullHours12:K(i),minutes:o.getMinutes(),fullMinutes:o.getMinutes()<10?"0"+o.getMinutes():o.getMinutes()}}function fe(o){return{dayPeriod:o>11?"pm":"am",hours:o%12==0?12:o%12}}function K(o){return o<10?"0"+o:o}function A(o){let e=10*Math.floor(o.getFullYear()/10);return[e,e+9]}function S(){let o=[];for(var e=arguments.length,i=new Array(e),t=0;t{if(typeof n=="object")for(let a in n)n[a]&&o.push(a);else n&&o.push(n)}),o.join(" ")}function b(o,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l.days;if(!o||!e)return!1;let t=y(o),n=y(e);return{[l.days]:t.date===n.date&&t.month===n.month&&t.year===n.year,[l.months]:t.month===n.month&&t.year===n.year,[l.years]:t.year===n.year}[i]}function T(o,e,i){let t=Q(o,!1).getTime(),n=Q(e,!1).getTime();return i?t>=n:t>n}function U(o,e){return!T(o,e,!0)}function Q(o){let e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=new Date(o.getTime());return typeof e!="boolean"||e||function(t){t.setHours(0,0,0,0)}(i),i}function _(o,e,i){o.length?o.forEach(t=>{t.addEventListener(e,i)}):o.addEventListener(e,i)}function z(o,e){return!(!o||o===document||o instanceof DocumentFragment)&&(o.matches(e)?o:z(o.parentNode,e))}function Y(o,e,i){return o>i?i:o1?e-1:0),t=1;tn).forEach(n=>{for(let[a,s]of Object.entries(n))if(s!==void 0&&s.toString()==="[object Object]"){let r=o[a]!==void 0?o[a].toString():void 0,h=s.toString(),d=Array.isArray(s)?[]:{};o[a]=o[a]?r!==h?d:o[a]:d,X(o[a],s)}else o[a]=s}),o}function M(o){let e=o;return o instanceof Date||(typeof o=="string"&&/^\d{4}-\d{2}-\d{2}$/.test(o)&&(o+="T00:00:00"),e=new Date(o)),isNaN(e.getTime())&&(console.log(`Unable to convert value "${o}" to Date object`),e=!1),e}function le(o){let e="\\s|\\.|-|/|\\\\|,|\\$|\\!|\\?|:|;";return new RegExp("(^|>|"+e+")("+o+")($|<|"+e+")","g")}function H(o,e,i){return(e=function(t){var n=function(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var h=r.call(a,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(t);return typeof n=="symbol"?n:String(n)}(e))in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i,o}class Re{constructor(){let{type:e,date:i,dp:t,opts:n,body:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};H(this,"focus",()=>{this.$cell.classList.add("-focus-"),this.focused=!0}),H(this,"removeFocus",()=>{this.$cell.classList.remove("-focus-"),this.focused=!1}),H(this,"select",()=>{this.$cell.classList.add("-selected-"),this.selected=!0}),H(this,"removeSelect",()=>{this.$cell.classList.remove("-selected-","-range-from-","-range-to-"),this.selected=!1}),H(this,"onChangeSelectedDate",()=>{this.isDisabled||(this._handleSelectedStatus(),this.opts.range&&this._handleRangeStatus())}),H(this,"onChangeFocusDate",s=>{if(!s)return void(this.focused&&this.removeFocus());let r=b(s,this.date,this.type);r?this.focus():!r&&this.focused&&this.removeFocus(),this.opts.range&&this._handleRangeStatus()}),H(this,"render",()=>(this.$cell.innerHTML=this._getHtml(),this._handleClasses(),this.$cell)),this.type=e,this.singleType=this.type.slice(0,-1),this.date=i,this.dp=t,this.opts=n,this.body=a,this.customData=!1,this.init()}init(){var e;let{onRenderCell:i}=this.opts;i&&(this.customData=i({date:this.date,cellType:this.singleType,datepicker:this.dp})),this._createElement(),this._bindDatepickerEvents(),(e=this.customData)!==null&&e!==void 0&&e.disabled&&this.dp.disableDate(this.date)}_bindDatepickerEvents(){this.dp.on(l.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(l.eventChangeFocusDate,this.onChangeFocusDate)}unbindDatepickerEvents(){this.dp.off(l.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(l.eventChangeFocusDate,this.onChangeFocusDate)}_createElement(){var e;let{year:i,month:t,date:n}=y(this.date),a=((e=this.customData)===null||e===void 0?void 0:e.attrs)||{};this.$cell=f({attrs:be({"data-year":i,"data-month":t,"data-date":n},a)}),this.$cell.adpCell=this}_getClassName(){var e;let i=new Date,{selectOtherMonths:t,selectOtherYears:n}=this.opts,{minDate:a,maxDate:s,isDateDisabled:r}=this.dp,{day:h}=y(this.date),d=this._isOutOfMinMaxRange(),u=r(this.date),c=S("air-datepicker-cell",`-${this.singleType}-`,{"-current-":b(i,this.date,this.type),"-min-date-":a&&b(a,this.date,this.type),"-max-date-":s&&b(s,this.date,this.type)}),m="";switch(this.type){case l.days:m=S({"-weekend-":this.dp.isWeekend(h),"-other-month-":this.isOtherMonth,"-disabled-":this.isOtherMonth&&!t||d||u});break;case l.months:m=S({"-disabled-":d});break;case l.years:m=S({"-other-decade-":this.isOtherDecade,"-disabled-":d||this.isOtherDecade&&!n})}return S(c,m,(e=this.customData)===null||e===void 0?void 0:e.classes).split(" ")}_getHtml(){var e;let{year:i,month:t,date:n}=y(this.date),{showOtherMonths:a,showOtherYears:s}=this.opts;if((e=this.customData)!==null&&e!==void 0&&e.html)return this.customData.html;switch(this.type){case l.days:return!a&&this.isOtherMonth?"":n;case l.months:return this.dp.locale[this.opts.monthsField][t];case l.years:return!s&&this.isOtherDecade?"":i}}_isOutOfMinMaxRange(){let{minDate:e,maxDate:i}=this.dp,{type:t,date:n}=this,{month:a,year:s,date:r}=y(n),h=t===l.days,d=t===l.years,u=!!e&&new Date(s,d?e.getMonth():a,h?r:e.getDate()),c=!!i&&new Date(s,d?i.getMonth():a,h?r:i.getDate());return e&&i?U(u,e)||T(c,i):e?U(u,e):i?T(c,i):void 0}destroy(){this.unbindDatepickerEvents()}_handleRangeStatus(){let{selectedDates:e,focusDate:i,rangeDateTo:t,rangeDateFrom:n}=this.dp,a=e.length;if(!a)return;let s=n,r=t;if(a===1&&i){let m=T(i,e[0]);s=m?e[0]:i,r=m?i:e[0]}let h=S({"-in-range-":s&&r&&(d=this.date,u=s,c=r,T(d,u)&&U(d,c)),"-range-from-":s&&b(this.date,s,this.type),"-range-to-":r&&b(this.date,r,this.type)});var d,u,c;this.$cell.classList.remove("-range-from-","-range-to-","-in-range-"),h&&this.$cell.classList.add(...h.split(" "))}_handleSelectedStatus(){let e=this.dp._checkIfDateIsSelected(this.date,this.type);e?this.select():!e&&this.selected&&this.removeSelect()}_handleInitialFocusStatus(){b(this.dp.focusDate,this.date,this.type)&&this.focus()}_handleClasses(){this.$cell.setAttribute("class",""),this._handleInitialFocusStatus(),this.dp.hasSelectedDates&&(this._handleSelectedStatus(),this.dp.opts.range&&this._handleRangeStatus()),this.$cell.classList.add(...this._getClassName())}get isDisabled(){return this.$cell.matches(".-disabled-")}get isOtherMonth(){return this.dp.isOtherMonth(this.date)}get isOtherDecade(){return this.dp.isOtherDecade(this.date)}}function $(o,e,i){return(e=function(t){var n=function(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var h=r.call(a,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(t);return typeof n=="symbol"?n:String(n)}(e))in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i,o}let Ke={[l.days]:`
`,[l.months]:`
`,[l.years]:`
`},J=".air-datepicker-cell";class O{constructor(e){let{dp:i,type:t,opts:n}=e;$(this,"handleClick",a=>{let s=a.target.closest(J).adpCell;if(s.isDisabled)return;if(!this.dp.isMinViewReached)return void this.dp.down();let r=this.dp._checkIfDateIsSelected(s.date,s.type);r?this.dp._handleAlreadySelectedDates(r,s.date):this.dp.selectDate(s.date)}),$(this,"handleDayNameClick",a=>{let s=a.target.getAttribute("data-day-index");this.opts.onClickDayName({dayIndex:Number(s),datepicker:this.dp})}),$(this,"onChangeCurrentView",a=>{a!==this.type?this.hide():(this.show(),this.render())}),$(this,"onMouseOverCell",a=>{let s=z(a.target,J);this.dp.setFocusDate(!!s&&s.adpCell.date)}),$(this,"onMouseOutCell",()=>{this.dp.setFocusDate(!1)}),$(this,"onClickBody",a=>{let{onClickDayName:s}=this.opts,r=a.target;r.closest(J)&&this.handleClick(a),s&&r.closest(".air-datepicker-body--day-name")&&this.handleDayNameClick(a)}),$(this,"onMouseDown",a=>{this.pressed=!0;let s=z(a.target,J),r=s&&s.adpCell;b(r.date,this.dp.rangeDateFrom)&&(this.rangeFromFocused=!0),b(r.date,this.dp.rangeDateTo)&&(this.rangeToFocused=!0)}),$(this,"onMouseMove",a=>{if(!this.pressed||!this.dp.isMinViewReached)return;a.preventDefault();let s=z(a.target,J),r=s&&s.adpCell,{selectedDates:h,rangeDateTo:d,rangeDateFrom:u}=this.dp;if(!r||r.isDisabled)return;let{date:c}=r;if(h.length===2){if(this.rangeFromFocused&&!T(c,d)){let{hours:m,minutes:D}=y(u);c.setHours(m),c.setMinutes(D),this.dp.rangeDateFrom=c,this.dp.replaceDate(u,c)}if(this.rangeToFocused&&!U(c,u)){let{hours:m,minutes:D}=y(d);c.setHours(m),c.setMinutes(D),this.dp.rangeDateTo=c,this.dp.replaceDate(d,c)}}}),$(this,"onMouseUp",()=>{this.pressed=!1,this.rangeFromFocused=!1,this.rangeToFocused=!1}),$(this,"onChangeViewDate",(a,s)=>{if(!this.isVisible)return;let r=A(a),h=A(s);switch(this.dp.currentView){case l.days:if(b(a,s,l.months))return;break;case l.months:if(b(a,s,l.years))return;break;case l.years:if(r[0]===h[0]&&r[1]===h[1])return}this.render()}),$(this,"render",()=>{this.destroyCells(),this._generateCells(),this.cells.forEach(a=>{this.$cells.appendChild(a.render())})}),this.dp=i,this.type=t,this.opts=n,this.cells=[],this.$el="",this.pressed=!1,this.isVisible=!0,this.init()}init(){this._buildBaseHtml(),this.type===l.days&&this.renderDayNames(),this.render(),this._bindEvents(),this._bindDatepickerEvents()}_bindEvents(){let{range:e,dynamicRange:i}=this.opts;_(this.$el,"mouseover",this.onMouseOverCell),_(this.$el,"mouseout",this.onMouseOutCell),_(this.$el,"click",this.onClickBody),e&&i&&(_(this.$el,"mousedown",this.onMouseDown),_(this.$el,"mousemove",this.onMouseMove),_(window.document,"mouseup",this.onMouseUp))}_bindDatepickerEvents(){this.dp.on(l.eventChangeViewDate,this.onChangeViewDate),this.dp.on(l.eventChangeCurrentView,this.onChangeCurrentView)}_buildBaseHtml(){this.$el=f({className:`air-datepicker-body -${this.type}-`,innerHtml:Ke[this.type]}),this.$names=p(".air-datepicker-body--day-names",this.$el),this.$cells=p(".air-datepicker-body--cells",this.$el)}_getDayNamesHtml(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.dp.locale.firstDay,i="",t=this.dp.isWeekend,{onClickDayName:n}=this.opts,a=e,s=0;for(;s<7;){let r=a%7;i+=`
${this.dp.locale.daysMin[r]}
`,s++,a++}return i}renderDayNames(){this.$names.innerHTML=this._getDayNamesHtml()}_generateCell(e){let{type:i,dp:t,opts:n}=this;return new Re({type:i,dp:t,opts:n,date:e,body:this})}_generateCells(){O.getDatesFunction(this.type)(this.dp,e=>{this.cells.push(this._generateCell(e))})}show(){this.isVisible=!0,this.$el.classList.remove("-hidden-")}hide(){this.isVisible=!1,this.$el.classList.add("-hidden-")}destroyCells(){this.cells.forEach(e=>e.destroy()),this.cells=[],this.$cells.innerHTML=""}destroy(){this.destroyCells(),this.dp.off(l.eventChangeViewDate,this.onChangeViewDate),this.dp.off(l.eventChangeCurrentView,this.onChangeCurrentView)}static getDaysDates(e,i){let{viewDate:t,opts:{fixedHeight:n},locale:{firstDay:a}}=e,s=R(t),{year:r,month:h}=y(t),d=new Date(r,h,1),u=new Date(r,h,s),c=d.getDay()-a,m=6-u.getDay()+a;c=c<0?c+7:c,m=m>6?m-7:m;let D=function(B,de){let{year:ee,month:qe,date:Ge}=y(B);return new Date(ee,qe,Ge-de)}(d,c),C=s+c+m,k=D.getDate(),{year:Z,month:q}=y(D),P=0;n&&(C=42);let j=[];for(;P0&&arguments[0]!==void 0?arguments[0]:l.days;return{[l.days]:O.getDaysDates,[l.months]:O.getMonthsDates,[l.years]:O.getYearsDates}[e]}}function L(o,e,i){return(e=function(t){var n=function(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var h=r.call(a,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(t);return typeof n=="symbol"?n:String(n)}(e))in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i,o}class Ue{constructor(e){let{dp:i,opts:t}=e;L(this,"onClickNav",n=>{let a=z(n.target,".air-datepicker-nav--action");if(!a)return;let s=a.dataset.action;this.dp[s]()}),L(this,"onChangeViewDate",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),L(this,"onChangeCurrentView",()=>{this.render(),this._resetNavStatus(),this.handleNavStatus()}),L(this,"onClickNavTitle",()=>{this.dp.isFinalView||this.dp.up()}),L(this,"update",()=>{let{prevHtml:n,nextHtml:a}=this.opts;this.$prev.innerHTML=n,this.$next.innerHTML=a,this._resetNavStatus(),this.render(),this.handleNavStatus()}),L(this,"renderDelay",()=>{setTimeout(this.render)}),L(this,"render",()=>{this.$title.innerHTML=this._getTitle(),function(n,a){for(let s in a)a[s]?n.classList.add(s):n.classList.remove(s)}(this.$title,{"-disabled-":this.dp.isFinalView})}),this.dp=i,this.opts=t,this.init()}init(){this._createElement(),this._buildBaseHtml(),this._defineDOM(),this.render(),this.handleNavStatus(),this._bindEvents(),this._bindDatepickerEvents()}_defineDOM(){this.$title=p(".air-datepicker-nav--title",this.$el),this.$prev=p('[data-action="prev"]',this.$el),this.$next=p('[data-action="next"]',this.$el)}_bindEvents(){this.$el.addEventListener("click",this.onClickNav),this.$title.addEventListener("click",this.onClickNavTitle)}_bindDatepickerEvents(){this.dp.on(l.eventChangeViewDate,this.onChangeViewDate),this.dp.on(l.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.on(l.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.on(l.eventChangeTime,this.render))}destroy(){this.dp.off(l.eventChangeViewDate,this.onChangeViewDate),this.dp.off(l.eventChangeCurrentView,this.onChangeCurrentView),this.isNavIsFunction&&(this.dp.off(l.eventChangeSelectedDate,this.renderDelay),this.dp.opts.timepicker&&this.dp.off(l.eventChangeTime,this.render))}_createElement(){this.$el=f({tagName:"nav",className:"air-datepicker-nav"})}_getTitle(){let{dp:e,opts:i}=this,t=i.navTitles[e.currentView];return typeof t=="function"?t(e):e.formatDate(e.viewDate,t)}handleNavStatus(){let{disableNavWhenOutOfRange:e}=this.opts,{minDate:i,maxDate:t}=this.dp;if(!i&&!t||!e)return;let{year:n,month:a}=this.dp.parsedViewDate,s=!!i&&y(i),r=!!t&&y(t);switch(this.dp.currentView){case l.days:i&&s.month>=a&&s.year>=n&&this._disableNav("prev"),t&&r.month<=a&&r.year<=n&&this._disableNav("next");break;case l.months:i&&s.year>=n&&this._disableNav("prev"),t&&r.year<=n&&this._disableNav("next");break;case l.years:{let h=A(this.dp.viewDate);i&&s.year>=h[0]&&this._disableNav("prev"),t&&r.year<=h[1]&&this._disableNav("next");break}}}_disableNav(e){p('[data-action="'+e+'"]',this.$el).classList.add("-disabled-")}_resetNavStatus(){(function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n{a.classList.remove(...t)}):e.classList.remove(...t)})(this.$el.querySelectorAll(".air-datepicker-nav--action"),"-disabled-")}_buildBaseHtml(){let{prevHtml:e,nextHtml:i}=this.opts;this.$el.innerHTML=`
${e}
${i}
`}get isNavIsFunction(){let{navTitles:e}=this.opts;return Object.keys(e).find(i=>typeof e[i]=="function")}}var De={today:{content:o=>o.locale.today,onClick:o=>o.setViewDate(new Date)},clear:{content:o=>o.locale.clear,onClick:o=>o.clear()}};class Ye{constructor(e){let{dp:i,opts:t}=e;this.dp=i,this.opts=t,this.init()}init(){this.createElement(),this.render()}createElement(){this.$el=f({className:"air-datepicker-buttons"})}destroy(){this.$el.parentNode.removeChild(this.$el)}clearHtml(){return this.$el.innerHTML="",this}generateButtons(){let{buttons:e}=this.opts;Array.isArray(e)||(e=[e]),e.forEach(i=>{let t=i;typeof i=="string"&&De[i]&&(t=De[i]);let n=this.createButton(t);t.onClick&&this.attachEventToButton(n,t.onClick),this.$el.appendChild(n)})}attachEventToButton(e,i){e.addEventListener("click",()=>{i(this.dp)})}createButton(e){let{content:i,className:t,tagName:n="button",attrs:a={}}=e;return f({tagName:n,innerHtml:`${typeof i=="function"?i(this.dp):i}`,className:S("air-datepicker-button",t),attrs:a})}render(){this.generateButtons()}}function N(o,e,i){return(e=function(t){var n=function(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var h=r.call(a,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(t);return typeof n=="symbol"?n:String(n)}(e))in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i,o}class We{constructor(){let{opts:e,dp:i}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};N(this,"toggleTimepickerIsActive",n=>{this.dp.timepickerIsActive=n}),N(this,"onChangeSelectedDate",n=>{let{date:a,updateTime:s=!1}=n;a&&(this.setMinMaxTime(a),this.setCurrentTime(!!s&&a),this.addTimeToDate(a))}),N(this,"onChangeLastSelectedDate",n=>{n&&(this.setTime(n),this.render())}),N(this,"onChangeInputRange",n=>{let a=n.target;this[a.getAttribute("name")]=a.value,this.updateText(),this.dp.trigger(l.eventChangeTime,{hours:this.hours,minutes:this.minutes})}),N(this,"onMouseEnterLeave",n=>{let a=n.target.getAttribute("name"),s=this.$minutesText;a==="hours"&&(s=this.$hoursText),s.classList.toggle("-focus-")}),N(this,"onFocus",()=>{this.toggleTimepickerIsActive(!0)}),N(this,"onBlur",()=>{this.toggleTimepickerIsActive(!1)}),this.opts=e,this.dp=i;let{timeFormat:t}=this.dp.locale;t&&(t.match(le("h"))||t.match(le("hh")))&&(this.ampm=!0),this.init()}init(){this.setTime(this.dp.lastSelectedDate||this.dp.viewDate),this.createElement(),this.buildHtml(),this.defineDOM(),this.render(),this.bindDatepickerEvents(),this.bindDOMEvents()}bindDatepickerEvents(){this.dp.on(l.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.on(l.eventChangeLastSelectedDate,this.onChangeLastSelectedDate)}bindDOMEvents(){let e="input";navigator.userAgent.match(/trident/gi)&&(e="change"),_(this.$ranges,e,this.onChangeInputRange),_(this.$ranges,"mouseenter",this.onMouseEnterLeave),_(this.$ranges,"mouseleave",this.onMouseEnterLeave),_(this.$ranges,"focus",this.onFocus),_(this.$ranges,"mousedown",this.onFocus),_(this.$ranges,"blur",this.onBlur)}createElement(){this.$el=f({className:S("air-datepicker-time",{"-am-pm-":this.dp.ampm})})}destroy(){this.dp.off(l.eventChangeSelectedDate,this.onChangeSelectedDate),this.dp.off(l.eventChangeLastSelectedDate,this.onChangeLastSelectedDate),this.$el.parentNode.removeChild(this.$el)}buildHtml(){let{ampm:e,hours:i,displayHours:t,minutes:n,minHours:a,minMinutes:s,maxHours:r,maxMinutes:h,dayPeriod:d,opts:{hoursStep:u,minutesStep:c}}=this;this.$el.innerHTML=`
${K(t)} : ${K(n)} `+(e?`${d}`:"")+`
`}defineDOM(){let e=i=>p(i,this.$el);this.$ranges=this.$el.querySelectorAll('[type="range"]'),this.$hours=e('[name="hours"]'),this.$minutes=e('[name="minutes"]'),this.$hoursText=e(".air-datepicker-time--current-hours"),this.$minutesText=e(".air-datepicker-time--current-minutes"),this.$ampm=e(".air-datepicker-time--current-ampm")}setTime(e){this.setMinMaxTime(e),this.setCurrentTime(e)}addTimeToDate(e){e&&(e.setHours(this.hours),e.setMinutes(this.minutes))}setMinMaxTime(e){if(this.setMinMaxTimeFromOptions(),e){let{minDate:i,maxDate:t}=this.dp;i&&b(e,i)&&this.setMinTimeFromMinDate(i),t&&b(e,t)&&this.setMaxTimeFromMaxDate(t)}}setCurrentTime(e){let{hours:i,minutes:t}=e?y(e):this;this.hours=Y(i,this.minHours,this.maxHours),this.minutes=Y(t,this.minMinutes,this.maxMinutes)}setMinMaxTimeFromOptions(){let{minHours:e,minMinutes:i,maxHours:t,maxMinutes:n}=this.opts;this.minHours=Y(e,0,23),this.minMinutes=Y(i,0,59),this.maxHours=Y(t,0,23),this.maxMinutes=Y(n,0,59)}setMinTimeFromMinDate(e){let{lastSelectedDate:i}=this.dp;this.minHours=e.getHours(),i&&i.getHours()>e.getHours()?this.minMinutes=this.opts.minMinutes:this.minMinutes=e.getMinutes()}setMaxTimeFromMaxDate(e){let{lastSelectedDate:i}=this.dp;this.maxHours=e.getHours(),i&&i.getHours()n.month++],[[["Control","ArrowLeft"],["Control","ArrowDown"]],n=>n.month--],[[["Shift","ArrowRight"],["Shift","ArrowUp"]],n=>n.year++],[[["Shift","ArrowLeft"],["Shift","ArrowDown"]],n=>n.year--],[[["Alt","ArrowRight"],["Alt","ArrowUp"]],n=>n.year+=10],[[["Alt","ArrowLeft"],["Alt","ArrowDown"]],n=>n.year-=10],[["Control","Shift","ArrowUp"],(n,a)=>a.up()]])),I(this,"handleHotKey",n=>{let a=this.hotKeys.get(n),s=y(this.getInitialFocusDate());a(s,this.dp);let{year:r,month:h,date:d}=s,u=R(new Date(r,h));u{let n=!1,a=this.pressedKeys.size,s=r=>this.pressedKeys.has(r);for(let[r]of this.hotKeys){if(n)break;if(Array.isArray(r[0]))r.forEach(h=>{n||a!==h.length||(n=h.every(s)&&r)});else{if(a!==r.length)continue;n=r.every(s)&&r}}return n}),I(this,"isArrow",n=>n>=37&&n<=40),I(this,"onKeyDown",n=>{let{key:a,which:s}=n,{dp:r,dp:{focusDate:h},opts:d}=this;this.registerKey(a);let u=this.isHotKeyPressed();if(u)return n.preventDefault(),void this.handleHotKey(u);if(this.isArrow(s))return n.preventDefault(),void this.focusNextCell(a);if(a==="Enter"){if(r.currentView!==d.minView)return void r.down();if(h){let c=r._checkIfDateIsSelected(h);return void(c?r._handleAlreadySelectedDates(c,h):r.selectDate(h))}}a==="Escape"&&this.dp.hide()}),I(this,"onKeyUp",n=>{this.removeKey(n.key)}),this.dp=i,this.opts=t,this.init()}init(){this.bindKeyboardEvents()}bindKeyboardEvents(){let{$el:e}=this.dp;e.addEventListener("keydown",this.onKeyDown),e.addEventListener("keyup",this.onKeyUp)}destroy(){let{$el:e}=this.dp;e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("keyup",this.onKeyUp),this.hotKeys=null,this.pressedKeys=null}getInitialFocusDate(){let{focusDate:e,currentView:i,selectedDates:t,parsedViewDate:{year:n,month:a}}=this.dp,s=e||t[t.length-1];if(!s)switch(i){case l.days:s=new Date(n,a,new Date().getDate());break;case l.months:s=new Date(n,a,1);break;case l.years:s=new Date(n,0,1)}return s}focusNextCell(e){let i=this.getInitialFocusDate(),{currentView:t}=this.dp,{days:n,months:a,years:s}=l,r=y(i),h=r.year,d=r.month,u=r.date;switch(e){case"ArrowLeft":t===n&&(u-=1),t===a&&(d-=1),t===s&&(h-=1);break;case"ArrowUp":t===n&&(u-=7),t===a&&(d-=3),t===s&&(h-=4);break;case"ArrowRight":t===n&&(u+=1),t===a&&(d+=1),t===s&&(h+=1);break;case"ArrowDown":t===n&&(u+=7),t===a&&(d+=3),t===s&&(h+=4)}let c=this.dp.getClampedDate(new Date(h,d,u));this.dp.setFocusDate(c,{viewDateTransition:!0})}registerKey(e){this.pressedKeys.add(e)}removeKey(e){this.pressedKeys.delete(e)}}let Je={on(o,e){this.__events||(this.__events={}),this.__events[o]?this.__events[o].push(e):this.__events[o]=[e]},off(o,e){this.__events&&this.__events[o]&&(this.__events[o]=this.__events[o].filter(i=>i!==e))},removeAllEvents(){this.__events={}},trigger(o){for(var e=arguments.length,i=new Array(e>1?e-1:0),t=1;t{n(...i)})}};function g(o,e,i){return(e=function(t){var n=function(a,s){if(typeof a!="object"||a===null)return a;var r=a[Symbol.toPrimitive];if(r!==void 0){var h=r.call(a,"string");if(typeof h!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(a)}(t);return typeof n=="symbol"?n:String(n)}(e))in o?Object.defineProperty(o,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[e]=i,o}let W="",x="",he=!1;class V{static buildGlobalContainer(e){he=!0,W=f({className:e,id:e}),p("body").appendChild(W)}constructor(e,i){var t=this;if(g(this,"viewIndexes",[l.days,l.months,l.years]),g(this,"next",()=>{let{year:s,month:r}=this.parsedViewDate;switch(this.currentView){case l.days:this.setViewDate(new Date(s,r+1,1));break;case l.months:this.setViewDate(new Date(s+1,r,1));break;case l.years:this.setViewDate(new Date(s+10,0,1))}}),g(this,"prev",()=>{let{year:s,month:r}=this.parsedViewDate;switch(this.currentView){case l.days:this.setViewDate(new Date(s,r-1,1));break;case l.months:this.setViewDate(new Date(s-1,r,1));break;case l.years:this.setViewDate(new Date(s-10,0,1))}}),g(this,"_finishHide",()=>{this.hideAnimation=!1,this._destroyComponents(),this.$container.removeChild(this.$datepicker)}),g(this,"setPosition",function(s){let r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(typeof(s=s||t.opts.position)=="function")return void(t.customHide=s({$datepicker:t.$datepicker,$target:t.$el,$pointer:t.$pointer,isViewChange:r,done:t._finishHide}));let h,d,{isMobile:u}=t.opts,c=t.$el.getBoundingClientRect(),m=t.$el.getBoundingClientRect(),D=t.$datepicker.offsetParent,C=t.$el.offsetParent,k=t.$datepicker.getBoundingClientRect(),Z=s.split(" "),q=window.scrollY,P=window.scrollX,j=t.opts.offset,B=Z[0],de=Z[1];if(u)t.$datepicker.style.cssText="left: 50%; top: 50%";else{if(D===C&&D!==document.body&&(m={top:t.$el.offsetTop,left:t.$el.offsetLeft,width:c.width,height:t.$el.offsetHeight},q=0,P=0),D!==C&&D!==document.body){let ee=D.getBoundingClientRect();m={top:c.top-ee.top,left:c.left-ee.left,width:c.width,height:c.height},q=0,P=0}switch(B){case"top":h=m.top-k.height-j;break;case"right":d=m.left+m.width+j;break;case"bottom":h=m.top+m.height+j;break;case"left":d=m.left-k.width-j}switch(de){case"top":h=m.top;break;case"right":d=m.left+m.width-k.width;break;case"bottom":h=m.top+m.height-k.height;break;case"left":d=m.left;break;case"center":/left|right/.test(B)?h=m.top+m.height/2-k.height/2:d=m.left+m.width/2-k.width/2}t.$datepicker.style.cssText=`left: ${d+P}px; top: ${h+q}px`}}),g(this,"_setInputValue",()=>{let{opts:s,$altField:r,locale:{dateFormat:h}}=this,{altFieldDateFormat:d,altField:u}=s;u&&r&&(r.value=this._getInputValue(d)),this.$el.value=this._getInputValue(h)}),g(this,"_getInputValue",s=>{let{selectedDates:r,opts:h}=this,{multipleDates:d,multipleDatesSeparator:u}=h;if(!r.length)return"";let c=typeof s=="function",m=c?s(d?r:r[0]):r.map(D=>this.formatDate(D,s));return m=c?m:m.join(u),m}),g(this,"_checkIfDateIsSelected",function(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.days,h=!1;return t.selectedDates.some(d=>{let u=b(s,d,r);return h=u&&d,u}),h}),g(this,"_scheduleCallAfterTransition",s=>{this._cancelScheduledCall(),s&&s(!1),this._onTransitionEnd=()=>{s&&s(!0)},this.$datepicker.addEventListener("transitionend",this._onTransitionEnd,{once:!0})}),g(this,"_cancelScheduledCall",()=>{this.$datepicker.removeEventListener("transitionend",this._onTransitionEnd)}),g(this,"setViewDate",s=>{if(!((s=M(s))instanceof Date)||b(s,this.viewDate))return;let r=this.viewDate;this.viewDate=s;let{onChangeViewDate:h}=this.opts;if(h){let{month:d,year:u}=this.parsedViewDate;h({month:d,year:u,decade:this.curDecade})}this.trigger(l.eventChangeViewDate,s,r)}),g(this,"setFocusDate",function(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!s||(s=M(s))instanceof Date)&&(t.focusDate=s,t.trigger(l.eventChangeFocusDate,s,r))}),g(this,"setCurrentView",function(s){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t.viewIndexes.includes(s)){if(t.currentView=s,t.elIsInput&&t.visible&&t.setPosition(void 0,!0),t.trigger(l.eventChangeCurrentView,s),!t.views[s]){let h=t.views[s]=new O({dp:t,opts:t.opts,type:s});t.shouldUpdateDOM&&t.$content.appendChild(h.$el)}t.opts.onChangeView&&!r.silent&&t.opts.onChangeView(s)}}),g(this,"_updateLastSelectedDate",s=>{this.lastSelectedDate=s,this.trigger(l.eventChangeLastSelectedDate,s)}),g(this,"destroy",()=>{if(this.isDestroyed)return;let{showEvent:s,isMobile:r}=this.opts,h=this.$datepicker.parentNode;h&&h.removeChild(this.$datepicker),this.$el.removeEventListener(s,this._onFocus),this.$el.removeEventListener("blur",this._onBlur),window.removeEventListener("resize",this._onResize),r&&this._removeMobileAttributes(),this.keyboardNav&&this.keyboardNav.destroy(),this.views=null,this.nav=null,this.$datepicker=null,this.opts={},this.$customContainer=null,this.viewDate=null,this.focusDate=null,this.selectedDates=[],this.rangeDateFrom=null,this.rangeDateTo=null,this.isDestroyed=!0}),g(this,"update",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},h=X({},t.opts),{silent:d}=r;X(t.opts,s);let{timepicker:u,buttons:c,range:m,selectedDates:D,isMobile:C}=t.opts,k=t.visible||t.treatAsInline;t._createMinMaxDates(),t._limitViewDateByMaxMinDates(),t._handleLocale(),D&&(t.selectedDates=[],t.selectDate(D,{silent:d})),s.view&&t.setCurrentView(s.view,{silent:d}),t._setInputValue(),h.range&&!m?(t.rangeDateTo=!1,t.rangeDateFrom=!1):!h.range&&m&&t.selectedDates.length&&(t.rangeDateFrom=t.selectedDates[0],t.rangeDateTo=t.selectedDates[1]),h.timepicker&&!u?(k&&t.timepicker.destroy(),t.timepicker=!1,t.$timepicker.parentNode.removeChild(t.$timepicker)):!h.timepicker&&u&&t._addTimepicker(),!h.buttons&&c?t._addButtons():h.buttons&&!c?(t.buttons.destroy(),t.$buttons.parentNode.removeChild(t.$buttons)):k&&h.buttons&&c&&t.buttons.clearHtml().render(),!h.isMobile&&C?(t.treatAsInline||x||t._createMobileOverlay(),t._addMobileAttributes(),t.visible&&t._showMobileOverlay()):h.isMobile&&!C&&(t._removeMobileAttributes(),t.visible&&(x.classList.remove("-active-"),typeof t.opts.position!="function"&&t.setPosition())),k&&(t.nav.update(),t.views[t.currentView].render(),t.currentView===l.days&&t.views[t.currentView].renderDayNames())}),g(this,"disableDate",(s,r)=>{(Array.isArray(s)?s:[s]).forEach(h=>{let d=M(h);if(!d)return;let u=r?"delete":"add";this.disabledDates[u](this.formatDate(d,"yyyy-MM-dd"));let c=this.getCell(d,this.currentViewSingular);c&&c.adpCell.render()},[])}),g(this,"enableDate",s=>{this.disableDate(s,!0)}),g(this,"isDateDisabled",s=>{let r=M(s);return this.disabledDates.has(this.formatDate(r,"yyyy-MM-dd"))}),g(this,"isOtherMonth",s=>{let{month:r}=y(s);return r!==this.parsedViewDate.month}),g(this,"isOtherYear",s=>{let{year:r}=y(s);return r!==this.parsedViewDate.year}),g(this,"isOtherDecade",s=>{let{year:r}=y(s),[h,d]=A(this.viewDate);return rd}),g(this,"_onChangeSelectedDate",s=>{let{silent:r}=s;setTimeout(()=>{this._setInputValue(),this.opts.onSelect&&!r&&this._triggerOnSelect()})}),g(this,"_onChangeFocusedDate",function(s){let{viewDateTransition:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!s)return;let h=!1;r&&(h=t.isOtherMonth(s)||t.isOtherYear(s)||t.isOtherDecade(s)),h&&t.setViewDate(s),t.opts.onFocus&&t.opts.onFocus({datepicker:t,date:s})}),g(this,"_onChangeTime",s=>{let{hours:r,minutes:h}=s,d=new Date,{lastSelectedDate:u,opts:{onSelect:c}}=this,m=u;u||(m=d);let D=this.getCell(m,this.currentViewSingular),C=D&&D.adpCell;C&&C.isDisabled||(m.setHours(r),m.setMinutes(h),u?(this._setInputValue(),c&&this._triggerOnSelect()):this.selectDate(m))}),g(this,"_onFocus",s=>{this.visible||this.show()}),g(this,"_onBlur",s=>{this.inFocus||!this.visible||this.opts.isMobile||this.hide()}),g(this,"_onMouseDown",s=>{this.inFocus=!0}),g(this,"_onMouseUp",s=>{this.inFocus=!1,this.$el.focus()}),g(this,"_onResize",()=>{this.visible&&typeof this.opts.position!="function"&&this.setPosition()}),g(this,"_onClickOverlay",()=>{this.visible&&this.hide()}),g(this,"getViewDates",function(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l.days;return O.getDatesFunction(s)(t)}),g(this,"isWeekend",s=>this.opts.weekends.includes(s)),g(this,"getClampedDate",s=>{let{minDate:r,maxDate:h}=this,d=s;return h&&T(s,h)?d=h:r&&U(s,r)&&(d=r),d}),this.$el=p(e),!this.$el)return;this.$datepicker=f({className:"air-datepicker"}),this.opts=X({},v,i),this.$customContainer=!!this.opts.container&&p(this.opts.container),this.$altField=p(this.opts.altField||!1);let{view:n,startDate:a}=this.opts;a||(this.opts.startDate=new Date),this.$el.nodeName==="INPUT"&&(this.elIsInput=!0),this.inited=!1,this.visible=!1,this.viewDate=M(this.opts.startDate),this.focusDate=!1,this.initialReadonly=this.$el.getAttribute("readonly"),this.customHide=!1,this.currentView=n,this.selectedDates=[],this.disabledDates=new Set,this.isDestroyed=!1,this.views={},this.keys=[],this.rangeDateFrom="",this.rangeDateTo="",this.timepickerIsActive=!1,this.treatAsInline=this.opts.inline||!this.elIsInput,this.init()}init(){let{opts:e,treatAsInline:i,opts:{inline:t,isMobile:n,selectedDates:a,keyboardNav:s,onlyTimepicker:r}}=this,h=p("body");(!he||he&&W&&!h.contains(W))&&!t&&this.elIsInput&&!this.$customContainer&&V.buildGlobalContainer(V.defaultGlobalContainerId),!n||x||i||this._createMobileOverlay(),this._handleLocale(),this._bindSubEvents(),this._createMinMaxDates(),this._limitViewDateByMaxMinDates(),this.elIsInput&&(t||this._bindEvents(),s&&!r&&(this.keyboardNav=new ze({dp:this,opts:e}))),a&&this.selectDate(a,{silent:!0}),this.opts.visible&&!i&&this.show(),n&&!i&&this.$el.setAttribute("readonly",!0),i&&this._createComponents()}_createMobileOverlay(){x=f({className:"air-datepicker-overlay"}),W.appendChild(x)}_createComponents(){let{opts:e,treatAsInline:i,opts:{inline:t,buttons:n,timepicker:a,position:s,classes:r,onlyTimepicker:h,isMobile:d}}=this;this._buildBaseHtml(),this.elIsInput&&(t||this._setPositionClasses(s)),!t&&this.elIsInput||this.$datepicker.classList.add("-inline-"),r&&this.$datepicker.classList.add(...r.split(" ")),h&&this.$datepicker.classList.add("-only-timepicker-"),d&&!i&&this._addMobileAttributes(),this.views[this.currentView]=new O({dp:this,type:this.currentView,opts:e}),this.nav=new Ue({dp:this,opts:e}),a&&this._addTimepicker(),n&&this._addButtons(),this.$content.appendChild(this.views[this.currentView].$el),this.$nav.appendChild(this.nav.$el)}_destroyComponents(){for(let e in this.views)this.views[e].destroy();this.views={},this.nav.destroy(),this.timepicker&&this.timepicker.destroy()}_addMobileAttributes(){x.addEventListener("click",this._onClickOverlay),this.$datepicker.classList.add("-is-mobile-"),this.$el.setAttribute("readonly",!0)}_removeMobileAttributes(){x.removeEventListener("click",this._onClickOverlay),this.$datepicker.classList.remove("-is-mobile-"),this.initialReadonly||this.initialReadonly===""||this.$el.removeAttribute("readonly")}_createMinMaxDates(){let{minDate:e,maxDate:i}=this.opts;this.minDate=!!e&&M(e),this.maxDate=!!i&&M(i)}_addTimepicker(){this.$timepicker=f({className:"air-datepicker--time"}),this.$datepicker.appendChild(this.$timepicker),this.timepicker=new We({dp:this,opts:this.opts}),this.$timepicker.appendChild(this.timepicker.$el)}_addButtons(){this.$buttons=f({className:"air-datepicker--buttons"}),this.$datepicker.appendChild(this.$buttons),this.buttons=new Ye({dp:this,opts:this.opts}),this.$buttons.appendChild(this.buttons.$el)}_bindSubEvents(){this.on(l.eventChangeSelectedDate,this._onChangeSelectedDate),this.on(l.eventChangeFocusDate,this._onChangeFocusedDate),this.on(l.eventChangeTime,this._onChangeTime)}_buildBaseHtml(){let{inline:e}=this.opts;var i,t;this.elIsInput?e?(i=this.$datepicker,(t=this.$el).parentNode.insertBefore(i,t.nextSibling)):this.$container.appendChild(this.$datepicker):this.$el.appendChild(this.$datepicker),this.$datepicker.innerHTML='
',this.$content=p(".air-datepicker--content",this.$datepicker),this.$pointer=p(".air-datepicker--pointer",this.$datepicker),this.$nav=p(".air-datepicker--navigation",this.$datepicker)}_handleLocale(){let{locale:e,dateFormat:i,firstDay:t,timepicker:n,onlyTimepicker:a,timeFormat:s,dateTimeSeparator:r}=this.opts;var h;this.locale=(h=e,JSON.parse(JSON.stringify(h))),i&&(this.locale.dateFormat=i),s!==void 0&&s!==""&&(this.locale.timeFormat=s);let{timeFormat:d}=this.locale;if(t!==""&&(this.locale.firstDay=t),n&&typeof i!="function"){let u=d?r:"";this.locale.dateFormat=[this.locale.dateFormat,d||""].join(u)}a&&typeof i!="function"&&(this.locale.dateFormat=this.locale.timeFormat)}_setPositionClasses(e){if(typeof e=="function")return void this.$datepicker.classList.add("-custom-position-");let i=(e=e.split(" "))[0],t=`air-datepicker -${i}-${e[1]}- -from-${i}-`;this.$datepicker.classList.add(...t.split(" "))}_bindEvents(){this.$el.addEventListener(this.opts.showEvent,this._onFocus),this.$el.addEventListener("blur",this._onBlur),this.$datepicker.addEventListener("mousedown",this._onMouseDown),this.$datepicker.addEventListener("mouseup",this._onMouseUp),window.addEventListener("resize",this._onResize)}_limitViewDateByMaxMinDates(){let{viewDate:e,minDate:i,maxDate:t}=this;t&&T(e,t)&&this.setViewDate(t),i&&U(e,i)&&this.setViewDate(i)}formatDate(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.viewDate,i=arguments.length>1?arguments[1]:void 0;if(e=M(e),!(e instanceof Date))return;let t=i,n=this.locale,a=y(e),s=a.dayPeriod,r=A(e),h=V.replacer,d={T:e.getTime(),m:a.minutes,mm:a.fullMinutes,h:a.hours12,hh:a.fullHours12,H:a.hours,HH:a.fullHours,aa:s,AA:s.toUpperCase(),E:n.daysShort[a.day],EEEE:n.days[a.day],d:a.date,dd:a.fullDate,M:a.month+1,MM:a.fullMonth,MMM:n.monthsShort[a.month],MMMM:n.months[a.month],yy:a.year.toString().slice(-2),yyyy:a.year,yyyy1:r[0],yyyy2:r[1]};for(let[u,c]of Object.entries(d))t=h(t,le(u),c);return t}down(e){this._handleUpDownActions(e,"down")}up(e){this._handleUpDownActions(e,"up")}selectDate(e){let i,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{currentView:n,parsedViewDate:a,selectedDates:s}=this,{updateTime:r}=t,{moveToOtherMonthsOnSelect:h,moveToOtherYearsOnSelect:d,multipleDates:u,range:c,autoClose:m,onBeforeSelect:D}=this.opts,C=s.length;if(Array.isArray(e))return e.forEach(k=>{this.selectDate(k,t)}),new Promise(k=>{setTimeout(k)});if((e=M(e))instanceof Date){if(D&&!D({date:e,datepicker:this}))return Promise.resolve();if(n===l.days&&e.getMonth()!==a.month&&h&&(i=new Date(e.getFullYear(),e.getMonth(),1)),n===l.years&&e.getFullYear()!==a.year&&d&&(i=new Date(e.getFullYear(),0,1)),i&&this.setViewDate(i),u&&!c){if(C===u)return;this._checkIfDateIsSelected(e)||s.push(e)}else if(c)switch(C){case 1:s.push(e),this.rangeDateTo||(this.rangeDateTo=e),T(this.rangeDateFrom,this.rangeDateTo)&&(this.rangeDateTo=this.rangeDateFrom,this.rangeDateFrom=e),this.selectedDates=[this.rangeDateFrom,this.rangeDateTo];break;case 2:this.selectedDates=[e],this.rangeDateFrom=e,this.rangeDateTo="";break;default:this.selectedDates=[e],this.rangeDateFrom=e}else this.selectedDates=[e];return this.trigger(l.eventChangeSelectedDate,{action:l.actionSelectDate,silent:t?.silent,date:e,updateTime:r}),this._updateLastSelectedDate(e),m&&!this.timepickerIsActive&&this.visible&&(u||c?c&&C===1&&this.hide():this.hide()),new Promise(k=>{setTimeout(k)})}}unselectDate(e){let i=this.selectedDates,t=this;if((e=M(e))instanceof Date)return i.some((n,a)=>{if(b(n,e))return i.splice(a,1),t.selectedDates.length?(t.rangeDateTo="",t.rangeDateFrom=i[0],t._updateLastSelectedDate(t.selectedDates[t.selectedDates.length-1])):(t.rangeDateFrom="",t.rangeDateTo="",t._updateLastSelectedDate(!1)),this.trigger(l.eventChangeSelectedDate,{action:l.actionUnselectDate,date:e}),!0})}replaceDate(e,i){let t=this.selectedDates.find(a=>b(a,e,this.currentView)),n=this.selectedDates.indexOf(t);n<0||b(this.selectedDates[n],i,this.currentView)||(this.selectedDates[n]=i,this.trigger(l.eventChangeSelectedDate,{action:l.actionSelectDate,date:i,updateTime:!0}),this._updateLastSelectedDate(i))}clear(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.selectedDates=[],this.rangeDateFrom=!1,this.rangeDateTo=!1,this.lastSelectedDate=!1,this.trigger(l.eventChangeSelectedDate,{action:l.actionUnselectDate,silent:e.silent}),new Promise(i=>{setTimeout(i)})}show(){let{onShow:e,isMobile:i}=this.opts;this._cancelScheduledCall(),this.visible||this.hideAnimation||this._createComponents(),this.setPosition(this.opts.position),this.$datepicker.classList.add("-active-"),this.visible=!0,e&&this._scheduleCallAfterTransition(e),i&&this._showMobileOverlay()}hide(){let{onHide:e,isMobile:i}=this.opts,t=this._hasTransition();this.visible=!1,this.hideAnimation=!0,this.$datepicker.classList.remove("-active-"),this.customHide&&this.customHide(),this.elIsInput&&this.$el.blur(),this._scheduleCallAfterTransition(n=>{!this.customHide&&(n&&t||!n&&!t)&&this._finishHide(),e&&e(n)}),i&&x.classList.remove("-active-")}_triggerOnSelect(){let e=[],i=[],{selectedDates:t,locale:n,opts:{onSelect:a,multipleDates:s,range:r}}=this,h=s||r,d=typeof n.dateFormat=="function";t.length&&(e=t.map(Q),i=d?s?n.dateFormat(e):e.map(u=>n.dateFormat(u)):e.map(u=>this.formatDate(u,n.dateFormat))),a({date:h?e:e[0],formattedDate:h?i:i[0],datepicker:this})}_handleAlreadySelectedDates(e,i){let{selectedDates:t,rangeDateFrom:n,rangeDateTo:a}=this,{range:s,toggleSelected:r}=this.opts,h=t.length,d=typeof r=="function"?r({datepicker:this,date:i}):r,u=!!(s&&h===1&&e),c=u?Q(i):i;s&&!d&&(h!==2&&this.selectDate(c),h===2&&b(n,a))||(d?this.unselectDate(c):this._updateLastSelectedDate(u?c:e))}_handleUpDownActions(e,i){if(!((e=M(e||this.focusDate||this.viewDate))instanceof Date))return;let t=i==="up"?this.viewIndex+1:this.viewIndex-1;t>2&&(t=2),t<0&&(t=0),this.setViewDate(new Date(e.getFullYear(),e.getMonth(),1)),this.setCurrentView(this.viewIndexes[t])}getCell(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:l.day;if(!((e=M(e))instanceof Date))return;let{year:t,month:n,date:a}=y(e),s=`[data-year="${t}"]`,r=`[data-month="${n}"]`,h={[l.day]:`${s}${r}[data-date="${a}"]`,[l.month]:`${s}${r}`,[l.year]:`${s}`};return this.views[this.currentView]?this.views[this.currentView].$el.querySelector(h[i]):void 0}_showMobileOverlay(){x.classList.add("-active-")}_hasTransition(){return window.getComputedStyle(this.$datepicker).getPropertyValue("transition-duration").split(", ").reduce((e,i)=>parseFloat(i)+e,0)>0}get shouldUpdateDOM(){return this.visible||this.treatAsInline}get parsedViewDate(){return y(this.viewDate)}get currentViewSingular(){return this.currentView.slice(0,-1)}get curDecade(){return A(this.viewDate)}get viewIndex(){return this.viewIndexes.indexOf(this.currentView)}get isFinalView(){return this.currentView===l.years}get hasSelectedDates(){return this.selectedDates.length>0}get isMinViewReached(){return this.currentView===this.opts.minView||this.currentView===l.days}get $container(){return this.$customContainer||W}static replacer(e,i,t){return e.replace(i,function(n,a,s,r){return a+t+r})}}var ye;return g(V,"defaults",v),g(V,"version","3.5.3"),g(V,"defaultGlobalContainerId","air-datepicker-global-container"),ye=V.prototype,Object.assign(ye,Je),F.default}()})});var Pe=we(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.default=void 0;var Qe={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",dateFormat:"MM/dd/yyyy",timeFormat:"hh:mm aa",firstDay:0};oe.default=Qe});var Ne=ke(Le()),Ie=Ne.default;var je=ke(Pe());var Be=(()=>{class w{constructor(l){this.el=l,this.inline=!1,this.range=!1,this.select=new Ce,this.ignoreSelectEvent=!1}ngOnInit(){}ngAfterViewInit(){this.dp=new Ie(this.el.nativeElement,{inline:this.inline,range:this.range,toggleSelected:!1,locale:je.default,onSelect:(l,v,p)=>{this.ignoreSelectEvent||this.select.emit({date:l,formattedDate:v,datepicker:p})}})}setDateRange(l,v){this.ignoreSelectEvent=!0,this.dp.clear(),this.dp.update({range:!!v}),this.dp.selectDate(l,{silent:!0}),v&&this.dp.selectDate(v,{silent:!0}),setTimeout(()=>{this.ignoreSelectEvent=!1})}static{this.\u0275fac=function(v){return new(v||w)(se(_e))}}static{this.\u0275cmp=te({type:w,selectors:[["dsw-date-picker"]],inputs:{inline:"inline",range:"range"},outputs:{select:"select"},standalone:!0,features:[re],decls:0,vars:0,template:function(v,p){},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}"]})}}return w})();var Ze=["datePicker"];function et(w,F){if(w&1){let l=pe();ae(0,"li",3),me("click",function(){let p=ce(l),f=p.$implicit,E=p.$index,R=ge();return ue(R.setFilter(f,E))}),Oe(1),ne()}if(w&2){let l=F.$implicit,v=F.$index,p=ge();$e("selected",p.curFilter===v),ie(),Ae("",l.label," ")}}var ct=(()=>{class w{constructor(l){this.cd=l,this.filters=[{label:"Today",init:function(){let p=new Date;this.dateFrom=p}},{label:"This week",init:function(){let p=new Date,f=p.getDate()-p.getDay()+1,E=f+6;this.dateFrom=new Date(p.setDate(f)),this.dateTo=new Date(p.setDate(E))}},{label:"Last 30 days",init:function(){let p=new Date,f=new Date().setDate(p.getDate()-30);this.dateFrom=new Date(f),this.dateTo=p}},{label:"Last 3 months",init:function(){let p=new Date,f=new Date().setMonth(p.getMonth()-3);this.dateFrom=new Date(f),this.dateTo=p}},{label:"Last 6 months",init:function(){let p=new Date,f=new Date().setMonth(p.getMonth()-6);this.dateFrom=new Date(f),this.dateTo=p}},{label:"Last year",init:function(){let p=new Date(new Date().getFullYear()-1,0,1);this.dateFrom=new Date(p.getFullYear(),0,1),this.dateTo=new Date(p.getFullYear(),11,31)}},{label:"This year (Jan - Today)",init:function(){let p=new Date;this.dateFrom=new Date(p.getFullYear(),0,1),this.dateTo=p}},{label:"Custom",init:function(){this.dateFrom=new Date,this.dateTo=new Date}}],this.curFilter=this.filters.length-1,this.initialize()}initialize(){this.filters.forEach(l=>{l.init&&l.init()})}setFilter(l,v){this.curFilter=v,this.datePicker&&l.dateFrom&&this.datePicker.setDateRange(l.dateFrom,l.dateTo)}onSelect(l){this.curFilter=this.filters.length-1,this.datePicker.dp.update({range:!0})}getValues(){let l=this.datePicker.dp.selectedDates;return l.length>1&&l[0].toDateString()===l[1].toDateString()&&l.pop(),l}setDateRange(l,v){this.datePicker.setDateRange(l,v);let p=this.filters.findIndex(f=>v?f.dateFrom?.toDateString()===l.toDateString()&&f.dateTo?.toDateString()===v.toDateString():f.dateFrom?.toDateString()===l.toDateString());p!==-1&&(this.curFilter=p),this.cd.detectChanges()}static{this.\u0275fac=function(v){return new(v||w)(se(He))}}static{this.\u0275cmp=te({type:w,selectors:[["dsw-date-filter"]],viewQuery:function(v,p){if(v&1&&xe(Ze,5),v&2){let f;Ve(f=Ee())&&(p.datePicker=f.first)}},standalone:!0,features:[re],decls:5,vars:2,consts:[["datePicker",""],[3,"selected"],[3,"select","inline","range"],[3,"click"]],template:function(v,p){if(v&1){let f=pe();ae(0,"ul"),Se(1,et,2,3,"li",1,Fe),ne(),ae(3,"dsw-date-picker",2,0),me("select",function(R){return ce(f),ue(p.onSelect(R))}),ne()}v&2&&(ie(),Te(p.filters),ie(2),Me("inline",!0)("range",!0))},dependencies:[Be],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;font-size:14px;color:var(--cl-widget-filter-txt);display:flex;align-items:flex-start;overflow:auto}[_nghost-%COMP%]::-webkit-scrollbar{width:5px;height:8px;background-color:#eee}[_nghost-%COMP%]::-webkit-scrollbar-thumb{background:#aaa}ul[_ngcontent-%COMP%]{border-right:1px solid var(--cl-input-border);padding:20px;margin:0;list-style-type:none}li[_ngcontent-%COMP%]{white-space:nowrap;cursor:pointer}li[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}li.selected[_ngcontent-%COMP%]{position:relative;color:var(--cl-accent)}li.selected[_ngcontent-%COMP%]:before{position:absolute;left:-20px;top:0;height:100%;width:2px;content:"";background-color:var(--cl-accent)}dsw-date-picker[_ngcontent-%COMP%] .air-datepicker{border:none}'],changeDetection:0})}}return w})();export{ct as DateFilterComponent}; diff --git a/dist/chunk-54YLOEMX.js b/dist/chunk-54YLOEMX.js deleted file mode 100644 index 3c5667c1..00000000 --- a/dist/chunk-54YLOEMX.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as Dt,b as Rt,d as _t}from"./chunk-DEPBX7UX.js";var Jt=_t((Zt,zt)=>{"use strict";(function(Pt,z){typeof zt=="object"&&zt.exports?(z.default=z,zt.exports=Pt&&Pt.document?z(Pt):z):typeof define=="function"&&define.amd?define("highcharts/highstock",function(){return z(Pt)}):(Pt.Highcharts&&Pt.Highcharts.error(16,!0),Pt.Highcharts=z(Pt))})(typeof window<"u"?window:Zt,function(Pt){"use strict";var z={};function gt(V,Q,nt,at){V.hasOwnProperty(Q)||(V[Q]=at.apply(null,nt),typeof CustomEvent=="function"&&Pt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:Q,module:V[Q]}})))}return gt(z,"Core/Globals.js",[],function(){var V,Q;return(Q=V||(V={})).SVG_NS="http://www.w3.org/2000/svg",Q.product="Highcharts",Q.version="11.4.3",Q.win=Pt!==void 0?Pt:{},Q.doc=Q.win.document,Q.svg=Q.doc&&Q.doc.createElementNS&&!!Q.doc.createElementNS(Q.SVG_NS,"svg").createSVGRect,Q.userAgent=Q.win.navigator&&Q.win.navigator.userAgent||"",Q.isChrome=Q.userAgent.indexOf("Chrome")!==-1,Q.isFirefox=Q.userAgent.indexOf("Firefox")!==-1,Q.isMS=/(edge|msie|trident)/i.test(Q.userAgent)&&!Q.win.opera,Q.isSafari=!Q.isChrome&&Q.userAgent.indexOf("Safari")!==-1,Q.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(Q.userAgent),Q.isWebKit=Q.userAgent.indexOf("AppleWebKit")!==-1,Q.deg2rad=2*Math.PI/360,Q.hasBidiBug=Q.isFirefox&&4>parseInt(Q.userAgent.split("Firefox/")[1],10),Q.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],Q.noop=function(){},Q.supportsPassiveEvents=function(){let nt=!1;if(!Q.isMS){let at=Object.defineProperty({},"passive",{get:function(){nt=!0}});Q.win.addEventListener&&Q.win.removeEventListener&&(Q.win.addEventListener("testPassive",Q.noop,at),Q.win.removeEventListener("testPassive",Q.noop,at))}return nt}(),Q.charts=[],Q.composed=[],Q.dateFormats={},Q.seriesTypes={},Q.symbolSizes={},Q.chartCount=0,V}),gt(z,"Core/Utilities.js",[z["Core/Globals.js"]],function(V){let Q,{charts:nt,doc:at,win:st}=V;function it(s,t,e,i){let o=t?"Highcharts error":"Highcharts warning";s===32&&(s=`${o}: Deprecated member`);let n=E(s),d=n?`${o} #${s}: www.highcharts.com/errors/${s}/`:s.toString();if(i!==void 0){let b="";n&&(d+="?"),g(i,function(R,c){b+=` - - ${c}: ${R}`,n&&(d+=encodeURI(c)+"="+encodeURI(R))}),d+=b}x(V,"displayError",{chart:e,code:s,message:d,params:i},function(){if(t)throw Error(d);st.console&&it.messages.indexOf(d)===-1&&console.warn(d)}),it.messages.push(d)}function J(s,t){return parseInt(s,t||10)}function Y(s){return typeof s=="string"}function W(s){let t=Object.prototype.toString.call(s);return t==="[object Array]"||t==="[object Array Iterator]"}function U(s,t){return!!s&&typeof s=="object"&&(!t||!W(s))}function S(s){return U(s)&&typeof s.nodeType=="number"}function O(s){let t=s&&s.constructor;return!!(U(s,!0)&&!S(s)&&t&&t.name&&t.name!=="Object")}function E(s){return typeof s=="number"&&!isNaN(s)&&s<1/0&&s>-1/0}function L(s){return s!=null}function p(s,t,e){let i,o=Y(t)&&!L(e),n=(d,b)=>{L(d)?s.setAttribute(b,d):o?(i=s.getAttribute(b))||b!=="class"||(i=s.getAttribute(b+"Name")):s.removeAttribute(b)};return Y(t)?n(e,t):g(t,n),i}function C(s){return W(s)?s:[s]}function w(s,t){let e;for(e in s||(s={}),t)s[e]=t[e];return s}function m(){let s=arguments,t=s.length;for(let e=0;e1e14?s:parseFloat(s.toPrecision(t||14))}(it||(it={})).messages=[],Math.easeInOutSine=function(s){return-.5*(Math.cos(Math.PI*s)-1)};let D=Array.prototype.find?function(s,t){return s.find(t)}:function(s,t){let e,i=s.length;for(e=0;eb.order-R.order),o.forEach(b=>{b.fn.call(s,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(s,e)}g({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(s,t){V[t]=function(e){return it(32,!1,void 0,{[`Highcharts.${t}`]:`use Array.${s}`}),Array.prototype[s].apply(e,[].slice.call(arguments,1))}});let r=function(){let s=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(Q?"":s)+t++}}();return st.jQuery&&(st.jQuery.fn.highcharts=function(){let s=[].slice.call(arguments);if(this[0])return s[0]?(new V[Y(s[0])?s.shift():"Chart"](this[0],s[0],s[1]),this):nt[p(this[0],"data-highcharts-chart")]}),{addEvent:function(s,t,e,i={}){let o=typeof s=="function"&&s.prototype||s;Object.hasOwnProperty.call(o,"hcEvents")||(o.hcEvents={});let n=o.hcEvents;V.Point&&s instanceof V.Point&&s.series&&s.series.chart&&(s.series.chart.runTrackerClick=!0);let d=s.addEventListener;d&&d.call(s,t,e,!!V.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),n[t]||(n[t]=[]);let b={fn:e,order:typeof i.order=="number"?i.order:1/0};return n[t].push(b),n[t].sort((R,c)=>R.order-c.order),function(){a(s,t,e)}},arrayMax:function(s){let t=s.length,e=s[0];for(;t--;)s[t]>e&&(e=s[t]);return e},arrayMin:function(s){let t=s.length,e=s[0];for(;t--;)s[t]t?s{let i=t%2/2,o=e?-1:1;return(Math.round(s*o-i)+i)*o},css:h,defined:L,destroyObjectProperties:function(s,t,e){g(s,function(i,o){i!==t&&i?.destroy&&i.destroy(),(i?.destroy||!e)&&delete s[o]})},diffObjects:function(s,t,e,i){let o={};return function n(d,b,R,c){let A=e?b:d;g(d,function(T,B){if(!c&&i&&i.indexOf(B)>-1&&b[B]){T=C(T),R[B]=[];for(let H=0;H{if(b.length>1)for(n=i=b.length-1;n>0;n--)(o=b[n]-b[n-1])<0&&!d?(t?.(),t=void 0):o&&(e===void 0||o=d-1&&(d=Math.floor(b)),Math.max(0,d-(s(t,"padding-left",!0)||0)-(s(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(s(t,"padding-top",!0)||0)-(s(t,"padding-bottom",!0)||0));let n=st.getComputedStyle(t,void 0);return n&&(o=n.getPropertyValue(e),m(i,e!=="opacity")&&(o=J(o))),o},inArray:function(s,t,e){return it(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),t.indexOf(s,e)},insertItem:function(s,t){let e,i=s.options.index,o=t.length;for(e=s.options.isInternal?o:0;e=s))&&(o||!(b<=(t[n]+(t[n+1]||t[n]))/2)));n++);return I(d*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(s){let t=at.documentElement,e=s.parentElement||s.parentNode?s.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(st.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(st.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(s,t,e){return Array((t||2)+1-String(s).replace("-","").length).join(e||"0")+s},pick:m,pInt:J,pushUnique:function(s,t){return 0>s.indexOf(t)&&!!s.push(t)},relativeLength:function(s,t,e){return/%$/.test(s)?t*parseFloat(s)/100+(e||0):parseFloat(s)},removeEvent:a,replaceNested:function(s,...t){let e,i;do for(i of(e=s,t))s=s.replace(i[0],i[1]);while(s!==e);return s},splat:C,stableSort:function(s,t){let e,i,o=s.length;for(i=0;i0?setTimeout(s,t,e):(s.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:r,useSerialIds:function(s){return Q=m(s,Q)},wrap:function(s,t,e){let i=s[t];s[t]=function(){let o=arguments,n=this;return e.apply(this,[function(){return i.apply(n,arguments.length?arguments:o)}].concat([].slice.call(arguments)))}}}}),gt(z,"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"}}),gt(z,"Core/Color/Palettes.js",[],function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}}),gt(z,"Core/Time.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){let{win:nt}=V,{defined:at,error:st,extend:it,isNumber:J,isObject:Y,merge:W,objectEach:U,pad:S,pick:O,splat:E,timeUnits:L}=Q,p=V.isSafari&&nt.Intl&&nt.Intl.DateTimeFormat.prototype.formatRange,C=V.isSafari&&nt.Intl&&!nt.Intl.DateTimeFormat.prototype.formatRange;class w{constructor(h){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=nt.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(h)}get(h,f){if(this.variableTimezone||this.timezoneOffset){let I=f.getTime(),D=I-this.getTimezoneOffset(f);f.setTime(D);let g=f["getUTC"+h]();return f.setTime(I),g}return this.useUTC?f["getUTC"+h]():f["get"+h]()}set(h,f,I){if(this.variableTimezone||this.timezoneOffset){if(h==="Milliseconds"||h==="Seconds"||h==="Minutes"&&this.getTimezoneOffset(f)%36e5==0)return f["setUTC"+h](I);let D=this.getTimezoneOffset(f),g=f.getTime()-D;f.setTime(g),f["setUTC"+h](I);let a=this.getTimezoneOffset(f);return g=f.getTime()+a,f.setTime(g)}return this.useUTC||p&&h==="FullYear"?f["setUTC"+h](I):f["set"+h](I)}update(h={}){let f=O(h.useUTC,!0);this.options=h=W(!0,this.options,h),this.Date=h.Date||nt.Date||Date,this.useUTC=f,this.timezoneOffset=f&&h.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=f&&!!(h.getTimezoneOffset||h.timezone)}makeTime(h,f,I,D,g,a){let x,r,s;return this.useUTC?(x=this.Date.UTC.apply(0,arguments),r=this.getTimezoneOffset(x),x+=r,r!==(s=this.getTimezoneOffset(x))?x+=s-r:r-36e5!==this.getTimezoneOffset(x-36e5)||C||(x-=36e5)):x=new this.Date(h,f,O(I,1),O(D,0),O(g,0),O(a,0)).getTime(),x}timezoneOffsetFunction(){let h=this,f=this.options,I=f.getTimezoneOffset;return this.useUTC?f.timezone?D=>{try{let g=`shortOffset,${f.timezone||""}`,[a,x,r,s,t=0]=(w.formatCache[g]=w.formatCache[g]||Intl.DateTimeFormat("en",{timeZone:f.timezone,timeZoneName:"shortOffset"})).format(D).split(/(GMT|:)/).map(Number),e=-(36e5*(r+t/60));if(J(e))return e}catch{st(34)}return 0}:this.useUTC&&I?D=>6e4*I(D.valueOf()):()=>6e4*(h.timezoneOffset||0):D=>6e4*new Date(D.toString()).getTimezoneOffset()}dateFormat(h,f,I){if(!at(f)||isNaN(f))return V.defaultOptions.lang&&V.defaultOptions.lang.invalidDate||"";h=O(h,"%Y-%m-%d %H:%M:%S");let D=this,g=new this.Date(f),a=this.get("Hours",g),x=this.get("Day",g),r=this.get("Date",g),s=this.get("Month",g),t=this.get("FullYear",g),e=V.defaultOptions.lang,i=e&&e.weekdays,o=e&&e.shortWeekdays;return U(it({a:o?o[x]:i[x].substr(0,3),A:i[x],d:S(r),e:S(r,2," "),w:x,b:e.shortMonths[s],B:e.months[s],m:S(s+1),o:s+1,y:t.toString().substr(2,2),Y:t,H:S(a),k:a,I:S(a%12||12),l:a%12||12,M:S(this.get("Minutes",g)),p:a<12?"AM":"PM",P:a<12?"am":"pm",S:S(this.get("Seconds",g)),L:S(Math.floor(f%1e3),3)},V.dateFormats),function(n,d){for(;h.indexOf("%"+d)!==-1;)h=h.replace("%"+d,typeof n=="function"?n.call(D,f):n)}),I?h.substr(0,1).toUpperCase()+h.substr(1):h}resolveDTLFormat(h){return Y(h,!0)?h:{main:(h=E(h))[0],from:h[1],to:h[2]}}getTimeTicks(h,f,I,D){let g,a,x,r,s=this,t=s.Date,e=[],i={},o=new t(f),n=h.unitRange,d=h.count||1;if(D=O(D,1),at(f)){s.set("Milliseconds",o,n>=L.second?0:d*Math.floor(s.get("Milliseconds",o)/d)),n>=L.second&&s.set("Seconds",o,n>=L.minute?0:d*Math.floor(s.get("Seconds",o)/d)),n>=L.minute&&s.set("Minutes",o,n>=L.hour?0:d*Math.floor(s.get("Minutes",o)/d)),n>=L.hour&&s.set("Hours",o,n>=L.day?0:d*Math.floor(s.get("Hours",o)/d)),n>=L.day&&s.set("Date",o,n>=L.month?1:Math.max(1,d*Math.floor(s.get("Date",o)/d))),n>=L.month&&(s.set("Month",o,n>=L.year?0:d*Math.floor(s.get("Month",o)/d)),a=s.get("FullYear",o)),n>=L.year&&(a-=a%d,s.set("FullYear",o,a)),n===L.week&&(r=s.get("Day",o),s.set("Date",o,s.get("Date",o)-r+D+(r4*L.month||s.getTimezoneOffset(f)!==s.getTimezoneOffset(I));let A=o.getTime();for(g=1;A1?A=s.makeTime(a,b,R,c+g*d):A+=n*d,g++;e.push(A),n<=L.hour&&e.length<1e4&&e.forEach(function(T){T%18e5==0&&s.dateFormat("%H%M%S%L",T)==="000000000"&&(i[T]="day")})}return e.info=it(h,{higherRanks:i,totalRange:n*d}),e}getDateFormat(h,f,I,D){let g=this.dateFormat("%m-%d %H:%M:%S.%L",f),a="01-01 00:00:00.000",x={millisecond:15,second:12,minute:9,hour:6,day:3},r="millisecond",s=r;for(r in L){if(h===L.week&&+this.dateFormat("%w",f)===I&&g.substr(6)===a.substr(6)){r="week";break}if(L[r]>h){r=s;break}if(x[r]&&g.substr(x[r])!==a.substr(x[r]))break;r!=="week"&&(s=r)}return this.resolveDTLFormat(D[r]).main}}return w.formatCache={},w}),gt(z,"Core/Defaults.js",[z["Core/Chart/ChartDefaults.js"],z["Core/Globals.js"],z["Core/Color/Palettes.js"],z["Core/Time.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){let{isTouchDevice:it}=Q,{fireEvent:J,merge:Y}=st,W={colors:nt.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:V,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:S=>Math.sqrt(1-Math.pow(S-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:it?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"}};W.chart.styledMode=!1;let U=new at(W.time);return{defaultOptions:W,defaultTime:U,getOptions:function(){return W},setOptions:function(S){return J(Q,"setOptions",{options:S}),Y(!0,W,S),(S.time||S.global)&&(Q.time?Q.time.update(Y(W.global,W.time,S.global,S.time)):Q.time=U),W}}}),gt(z,"Core/Color/Color.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){let{isNumber:nt,merge:at,pInt:st}=Q;class it{static parse(Y){return Y?new it(Y):it.None}constructor(Y){let W,U,S,O;this.rgba=[NaN,NaN,NaN,NaN],this.input=Y;let E=V.Color;if(E&&E!==it)return new E(Y);if(typeof Y=="object"&&Y.stops!==void 0)this.stops=Y.stops.map(L=>new it(L[1]));else if(typeof Y=="string"){if(this.input=Y=it.names[Y.toLowerCase()]||Y,Y.charAt(0)==="#"){let L=Y.length,p=parseInt(Y.substr(1),16);L===7?U=[(16711680&p)>>16,(65280&p)>>8,255&p,1]:L===4&&(U=[(3840&p)>>4|(3840&p)>>8,(240&p)>>4|240&p,(15&p)<<4|15&p,1])}if(!U)for(S=it.parsers.length;S--&&!U;)(W=(O=it.parsers[S]).regex.exec(Y))&&(U=O.parse(W))}U&&(this.rgba=U)}get(Y){let W=this.input,U=this.rgba;if(typeof W=="object"&&this.stops!==void 0){let S=at(W);return S.stops=[].slice.call(S.stops),this.stops.forEach((O,E)=>{S.stops[E]=[S.stops[E][0],O.get(Y)]}),S}return U&&nt(U[0])?Y!=="rgb"&&(Y||U[3]!==1)?Y==="a"?`${U[3]}`:"rgba("+U.join(",")+")":"rgb("+U[0]+","+U[1]+","+U[2]+")":W}brighten(Y){let W=this.rgba;if(this.stops)this.stops.forEach(function(U){U.brighten(Y)});else if(nt(Y)&&Y!==0)for(let U=0;U<3;U++)W[U]+=st(255*Y),W[U]<0&&(W[U]=0),W[U]>255&&(W[U]=255);return this}setOpacity(Y){return this.rgba[3]=Y,this}tweenTo(Y,W){let U=this.rgba,S=Y.rgba;if(!nt(U[0])||!nt(S[0]))return Y.input||"none";let O=S[3]!==1||U[3]!==1;return(O?"rgba(":"rgb(")+Math.round(S[0]+(U[0]-S[0])*(1-W))+","+Math.round(S[1]+(U[1]-S[1])*(1-W))+","+Math.round(S[2]+(U[2]-S[2])*(1-W))+(O?","+(S[3]+(U[3]-S[3])*(1-W)):"")+")"}}return it.names={white:"#ffffff",black:"#000000"},it.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(J){return[st(J[1]),st(J[2]),st(J[3]),parseFloat(J[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(J){return[st(J[1]),st(J[2]),st(J[3]),1]}}],it.None=new it(""),it}),gt(z,"Core/Animation/Fx.js",[z["Core/Color/Color.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{parse:at}=V,{win:st}=Q,{isNumber:it,objectEach:J}=nt;class Y{constructor(U,S,O){this.pos=NaN,this.options=S,this.elem=U,this.prop=O}dSetter(){let U=this.paths,S=U&&U[0],O=U&&U[1],E=this.now||0,L=[];if(E!==1&&S&&O)if(S.length===O.length&&E<1)for(let p=0;p=w+this.startTime?(this.now=this.end,this.pos=1,this.update(),m[this.prop]=!0,O=!0,J(m,function(h){h!==!0&&(O=!1)}),O&&C&&C.call(p),S=!1):(this.pos=L.easing((E-this.startTime)/w),this.now=this.start+(this.end-this.start)*this.pos,this.update(),S=!0),S}initPath(U,S,O){let E=U.startX,L=U.endX,p=O.slice(),C=U.isArea,w=C?2:1,m,h,f,I,D=S&&S.slice();if(!D)return[p,p];function g(x,r){for(;x.length{let I=S(f.options.animation);m=J(L)&&nt(L.defer)?C.defer:Math.max(m,I.duration+I.defer),h=Math.min(C.duration,I.duration)}),E.renderer.forExport&&(m=0),{defer:Math.max(0,m-h),duration:Math.min(m,h)}},setAnimation:function(E,L){L.renderer.globalAnimation=U(E,L.options.chart.animation,!0)},stop:O}}),gt(z,"Core/Renderer/HTML/AST.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){let{SVG_NS:nt,win:at}=V,{attr:st,createElement:it,css:J,error:Y,isFunction:W,isString:U,objectEach:S,splat:O}=Q,{trustedTypes:E}=at,L=E&&W(E.createPolicy)&&E.createPolicy("highcharts",{createHTML:m=>m}),p=L?L.createHTML(""):"",C=function(){try{return!!new DOMParser().parseFromString(p,"text/html")}catch{return!1}}();class w{static filterUserAttributes(h){return S(h,(f,I)=>{let D=!0;w.allowedAttributes.indexOf(I)===-1&&(D=!1),["background","dynsrc","href","lowsrc","src"].indexOf(I)!==-1&&(D=U(f)&&w.allowedReferences.some(g=>f.indexOf(g)===0)),D||(Y(33,!1,void 0,{"Invalid attribute in config":`${I}`}),delete h[I]),U(f)&&h[I]&&(h[I]=f.replace(/{let D=I.split(":").map(a=>a.trim()),g=D.shift();return g&&D.length&&(f[g.replace(/-([a-z])/g,a=>a[1].toUpperCase())]=D.join(":")),f},{})}static setElementHTML(h,f){h.innerHTML=w.emptyHTML,f&&new w(f).addToDOM(h)}constructor(h){this.nodes=typeof h=="string"?this.parseMarkup(h):h}addToDOM(h){return function f(I,D){let g;return O(I).forEach(function(a){let x,r=a.tagName,s=a.textContent?V.doc.createTextNode(a.textContent):void 0,t=w.bypassHTMLFiltering;if(r)if(r==="#text")x=s;else if(w.allowedTags.indexOf(r)!==-1||t){let e=r==="svg"?nt:D.namespaceURI||nt,i=V.doc.createElementNS(e,r),o=a.attributes||{};S(a,function(n,d){d!=="tagName"&&d!=="attributes"&&d!=="children"&&d!=="style"&&d!=="textContent"&&(o[d]=n)}),st(i,t?o:w.filterUserAttributes(o)),a.style&&J(i,a.style),s&&i.appendChild(s),f(a.children||[],i),x=i}else Y(33,!1,void 0,{"Invalid tagName in config":r});x&&D.appendChild(x),g=x}),g}(this.nodes,h)}parseMarkup(h){let f,I=[];if(h=h.trim().replace(/ style=(["'])/g," data-style=$1"),C)f=new DOMParser().parseFromString(L?L.createHTML(h):h,"text/html");else{let g=it("div");g.innerHTML=h,f={body:g}}let D=(g,a)=>{let x=g.nodeName.toLowerCase(),r={tagName:x};x==="#text"&&(r.textContent=g.textContent||"");let s=g.attributes;if(s){let t={};[].forEach.call(s,e=>{e.name==="data-style"?r.style=w.parseStyle(e.value):t[e.name]=e.value}),r.attributes=t}if(g.childNodes.length){let t=[];[].forEach.call(g.childNodes,e=>{D(e,t)}),t.length&&(r.children=t)}a.push(r)};return[].forEach.call(f.body.childNodes,g=>D(g,I)),I}}return w.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","markerHeight","markerWidth","offset","opacity","orient","padding","paddingLeft","paddingRight","patternUnits","r","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],w.allowedReferences=["https://","http://","mailto:","/","../","./","#"],w.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feDropShadow","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],w.emptyHTML=p,w.bypassHTMLFiltering=!1,w}),gt(z,"Core/Templating.js",[z["Core/Defaults.js"],z["Core/Utilities.js"]],function(V,Q){let{defaultOptions:nt,defaultTime:at}=V,{extend:st,getNestedProperty:it,isArray:J,isNumber:Y,isObject:W,pick:U,pInt:S}=Q,O={add:(p,C)=>p+C,divide:(p,C)=>C!==0?p/C:"",eq:(p,C)=>p==C,each:function(p){let C=arguments[arguments.length-1];return!!J(p)&&p.map((w,m)=>E(C.body,st(W(w)?w:{"@this":w},{"@index":m,"@first":m===0,"@last":m===p.length-1}))).join("")},ge:(p,C)=>p>=C,gt:(p,C)=>p>C,if:p=>!!p,le:(p,C)=>p<=C,lt:(p,C)=>pp*C,ne:(p,C)=>p!=C,subtract:(p,C)=>p-C,unless:p=>!p};function E(p="",C,w){let m=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,h=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,f=[],I=/f$/,D=/\.([0-9])/,g=nt.lang,a=w&&w.time||at,x=w&&w.numberFormatter||L,r=(o="")=>{let n;return o==="true"||o!=="false"&&((n=Number(o)).toString()===o?n:it(o,C))},s,t,e=0,i;for(;(s=m.exec(p))!==null;){let o=h.exec(s[1]);o&&(s=o,i=!0),t&&t.isBlock||(t={ctx:C,expression:s[1],find:s[0],isBlock:s[1].charAt(0)==="#",start:s.index,startInner:s.index+s[0].length,length:s[0].length});let n=s[1].split(" ")[0].replace("#","");O[n]&&(t.isBlock&&n===t.fn&&e++,t.fn||(t.fn=n));let d=s[1]==="else";if(t.isBlock&&t.fn&&(s[1]===`/${t.fn}`||d))if(e)!d&&e--;else{let b=t.startInner,R=p.substr(b,s.index-b);t.body===void 0?(t.body=R,t.startInner=s.index+s[0].length):t.elseBody=R,t.find+=R+s[0],d||(f.push(t),t=void 0)}else t.isBlock||f.push(t);if(o&&!t?.isBlock)break}return f.forEach(o=>{let n,d,{body:b,elseBody:R,expression:c,fn:A}=o;if(A){let T=[o],B=c.split(" ");for(d=O[A].length;d--;)T.unshift(r(B[d+1]));n=O[A].apply(C,T),o.isBlock&&typeof n=="boolean"&&(n=E(n?b:R,C,w))}else{let T=c.split(":");if(n=r(T.shift()||""),T.length&&typeof n=="number"){let B=T.join(":");if(I.test(B)){let H=parseInt((B.match(D)||["","-1"])[1],10);n!==null&&(n=x(n,H,g.decimalPoint,B.indexOf(",")>-1?g.thousandsSep:""))}else n=a.dateFormat(B,n)}}p=p.replace(o.find,U(n,""))}),i?E(p,C,w):p}function L(p,C,w,m){let h,f;p=+p||0,C=+C;let I=nt.lang,D=(p.toString().split(".")[1]||"").split("e")[0].length,g=p.toString().split("e"),a=C;C===-1?C=Math.min(D,20):Y(C)?C&&g[1]&&g[1]<0&&((f=C+ +g[1])>=0?(g[0]=(+g[0]).toExponential(f).split("e")[0],C=f):(g[0]=g[0].split(".")[0]||0,p=C<20?(g[0]*Math.pow(10,g[1])).toFixed(C):0,g[1]=0)):C=2;let x=(Math.abs(g[1]?g[0]:p)+Math.pow(10,-Math.max(C,D)-1)).toFixed(C),r=String(S(x)),s=r.length>3?r.length%3:0;return w=U(w,I.decimalPoint),m=U(m,I.thousandsSep),h=(p<0?"-":"")+(s?r.substr(0,s)+m:""),0>+g[1]&&!a?h="0":h+=r.substr(s).replace(/(\d{3})(?=\d)/g,"$1"+m),C?h+=w+x.slice(-C):+h==0&&(h="0"),g[1]&&+h!=0&&(h+="e"+g[1]),h}return{dateFormat:function(p,C,w){return at.dateFormat(p,C,w)},format:E,helpers:O,numberFormat:L}}),gt(z,"Core/Renderer/RendererRegistry.js",[z["Core/Globals.js"]],function(V){var Q,nt;let at;return(nt=Q||(Q={})).rendererTypes={},nt.getRendererType=function(st=at){return nt.rendererTypes[st]||nt.rendererTypes[at]},nt.registerRendererType=function(st,it,J){nt.rendererTypes[st]=it,(!at||J)&&(at=st,V.Renderer=it)},Q}),gt(z,"Core/Renderer/RendererUtilities.js",[z["Core/Utilities.js"]],function(V){var Q;let{clamp:nt,pick:at,pushUnique:st,stableSort:it}=V;return(Q||(Q={})).distribute=function J(Y,W,U){let S=Y,O=S.reducedLen||W,E=(r,s)=>r.target-s.target,L=[],p=Y.length,C=[],w=L.push,m,h,f,I=!0,D,g,a=0,x;for(m=p;m--;)a+=Y[m].size;if(a>O){for(it(Y,(r,s)=>(s.rank||0)-(r.rank||0)),f=(x=Y[0].rank===Y[Y.length-1].rank)?p/2:-1,h=x?f:p-1;f&&a>O;)D=Y[m=Math.floor(h)],st(C,m)&&(a-=D.size),h+=f,x&&h>=Y.length&&(f/=2,h=f);C.sort((r,s)=>s-r).forEach(r=>w.apply(L,Y.splice(r,1)))}for(it(Y,E),Y=Y.map(r=>({size:r.size,targets:[r.target],align:at(r.align,.5)}));I;){for(m=Y.length;m--;)D=Y[m],g=(Math.min.apply(0,D.targets)+Math.max.apply(0,D.targets))/2,D.pos=nt(g-D.size*D.align,0,W-D.size);for(m=Y.length,I=!1;m--;)m>0&&Y[m-1].pos+Y[m-1].size>Y[m].pos&&(Y[m-1].size+=Y[m].size,Y[m-1].targets=Y[m-1].targets.concat(Y[m].targets),Y[m-1].align=.5,Y[m-1].pos+Y[m-1].size>W&&(Y[m-1].pos=W-Y[m-1].size),Y.splice(m,1),I=!0)}return w.apply(S,L),m=0,Y.some(r=>{let s=0;return(r.targets||[]).some(()=>(S[m].pos=r.pos+s,U!==void 0&&Math.abs(S[m].pos-S[m].target)>U?(S.slice(0,m+1).forEach(t=>delete t.pos),S.reducedLen=(S.reducedLen||W)-.1*W,S.reducedLen>.1*W&&J(S,W,U),!0):(s+=S[m].size,m++,!1)))}),it(S,E),S},Q}),gt(z,"Core/Renderer/SVG/SVGElement.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Color/Color.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){let{animate:st,animObject:it,stop:J}=V,{deg2rad:Y,doc:W,svg:U,SVG_NS:S,win:O}=nt,{addEvent:E,attr:L,createElement:p,crisp:C,css:w,defined:m,erase:h,extend:f,fireEvent:I,isArray:D,isFunction:g,isObject:a,isString:x,merge:r,objectEach:s,pick:t,pInt:e,pushUnique:i,replaceNested:o,syncTimeout:n,uniqueKey:d}=at;class b{_defaultGetter(c){let A=t(this[c+"Value"],this[c],this.element?this.element.getAttribute(c):null,0);return/^[\-0-9\.]+$/.test(A)&&(A=parseFloat(A)),A}_defaultSetter(c,A,T){T.setAttribute(A,c)}add(c){let A,T=this.renderer,B=this.element;return c&&(this.parentGroup=c),this.textStr!==void 0&&this.element.nodeName==="text"&&T.buildText(this),this.added=!0,(!c||c.handleZ||this.zIndex)&&(A=this.zIndexSetter()),A||(c?c.element:T.box).appendChild(B),this.onAdd&&this.onAdd(),this}addClass(c,A){let T=A?"":this.attr("class")||"";return(c=(c||"").split(/ /g).reduce(function(B,H){return T.indexOf(H)===-1&&B.push(H),B},T?[T]:[]).join(" "))!==T&&this.attr("class",c),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(c,A,T,B=!0){let H,u,y,v,G={},l=this.renderer,M=l.alignedObjects,k=!!c;c?(this.alignOptions=c,this.alignByTranslate=A,this.alignTo=T):(c=this.alignOptions||{},A=this.alignByTranslate,T=this.alignTo);let P=!T||x(T)?T||"renderer":void 0;P&&(k&&i(M,this),T=void 0);let j=t(T,l[P],l),N=c.align,$=c.verticalAlign;return H=(j.x||0)+(c.x||0),u=(j.y||0)+(c.y||0),N==="right"?y=1:N==="center"&&(y=2),y&&(H+=((j.width||0)-(c.width||0))/y),G[A?"translateX":"x"]=Math.round(H),$==="bottom"?v=1:$==="middle"&&(v=2),v&&(u+=((j.height||0)-(c.height||0))/v),G[A?"translateY":"y"]=Math.round(u),B&&(this[this.placed?"animate":"attr"](G),this.placed=!0),this.alignAttr=G,this}alignSetter(c){let A={left:"start",center:"middle",right:"end"};A[c]&&(this.alignValue=c,this.element.setAttribute("text-anchor",A[c]))}animate(c,A,T){let B=it(t(A,this.renderer.globalAnimation,!0)),H=B.defer;return W.hidden&&(B.duration=0),B.duration!==0?(T&&(B.complete=T),n(()=>{this.element&&st(this,c,B)},H)):(this.attr(c,void 0,T||B.complete),s(c,function(u,y){B.step&&B.step.call(this,u,{prop:y,pos:1,elem:this})},this)),this}applyTextOutline(c){let A=this.element;c.indexOf("contrast")!==-1&&(c=c.replace(/contrast/g,this.renderer.getContrast(A.style.fill)));let T=c.split(" "),B=T[T.length-1],H=T[0];if(H&&H!=="none"&&nt.svg){this.fakeTS=!0,H=H.replace(/(^[\d\.]+)(.*?)$/g,function(l,M,k){return 2*Number(M)+k}),this.removeTextOutline();let u=W.createElementNS(S,"tspan");L(u,{class:"highcharts-text-outline",fill:B,stroke:B,"stroke-width":H,"stroke-linejoin":"round"});let y=A.querySelector("textPath")||A;[].forEach.call(y.childNodes,l=>{let M=l.cloneNode(!0);M.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(k=>M.removeAttribute(k)),u.appendChild(M)});let v=0;[].forEach.call(y.querySelectorAll("text tspan"),l=>{v+=Number(l.getAttribute("dy"))});let G=W.createElementNS(S,"tspan");G.textContent="\u200B",L(G,{x:Number(A.getAttribute("x")),dy:-v}),u.appendChild(G),y.insertBefore(u,y.firstChild)}}attr(c,A,T,B){let{element:H}=this,u=b.symbolCustomAttribs,y,v,G=this,l;return typeof c=="string"&&A!==void 0&&(y=c,(c={})[y]=A),typeof c=="string"?G=(this[c+"Getter"]||this._defaultGetter).call(this,c,H):(s(c,function(M,k){l=!1,B||J(this,k),this.symbolName&&u.indexOf(k)!==-1&&(v||(this.symbolAttr(c),v=!0),l=!0),this.rotation&&(k==="x"||k==="y")&&(this.doTransform=!0),l||(this[k+"Setter"]||this._defaultSetter).call(this,M,k,H)},this),this.afterSetters()),T&&T.call(this),G}clip(c){if(c&&!c.clipPath){let A=d()+"-",T=this.renderer.createElement("clipPath").attr({id:A}).add(this.renderer.defs);f(c,{clipPath:T,id:A,count:0}),c.add(T)}return this.attr("clip-path",c?`url(${this.renderer.url}#${c.id})`:"none")}crisp(c,A){A=Math.round(A||c.strokeWidth||0);let T=c.x||this.x||0,B=c.y||this.y||0,H=(c.width||this.width||0)+T,u=(c.height||this.height||0)+B,y=C(T,A),v=C(B,A);return f(c,{x:y,y:v,width:C(H,A)-y,height:C(u,A)-v}),m(c.strokeWidth)&&(c.strokeWidth=A),c}complexColor(c,A,T){let B=this.renderer,H,u,y,v,G,l,M,k,P,j,N=[],$;I(this.renderer,"complexColor",{args:arguments},function(){if(c.radialGradient?u="radialGradient":c.linearGradient&&(u="linearGradient"),u){if(y=c[u],G=B.gradients,l=c.stops,P=T.radialReference,D(y)&&(c[u]=y={x1:y[0],y1:y[1],x2:y[2],y2:y[3],gradientUnits:"userSpaceOnUse"}),u==="radialGradient"&&P&&!m(y.gradientUnits)&&(v=y,y=r(y,B.getRadialAttr(P,v),{gradientUnits:"userSpaceOnUse"})),s(y,function(Z,_){_!=="id"&&N.push(_,Z)}),s(l,function(Z){N.push(Z)}),G[N=N.join(",")])j=G[N].attr("id");else{y.id=j=d();let Z=G[N]=B.createElement(u).attr(y).add(B.defs);Z.radAttr=v,Z.stops=[],l.forEach(function(_){_[1].indexOf("rgba")===0?(M=(H=Q.parse(_[1])).get("rgb"),k=H.get("a")):(M=_[1],k=1);let ot=B.createElement("stop").attr({offset:_[0],"stop-color":M,"stop-opacity":k}).add(Z);Z.stops.push(ot)})}$="url("+B.url+"#"+j+")",T.setAttribute(A,$),T.gradient=N,c.toString=function(){return $}}})}css(c){let A=this.styles,T={},B=this.element,H,u=!A;if(A&&s(c,function(y,v){A&&A[v]!==y&&(T[v]=y,u=!0)}),u){A&&(c=f(A,T)),c.width===null||c.width==="auto"?delete this.textWidth:B.nodeName.toLowerCase()==="text"&&c.width&&(H=this.textWidth=e(c.width)),f(this.styles,c),H&&!U&&this.renderer.forExport&&delete c.width;let y=r(c);B.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(v=>y&&delete y[v]),y.color&&(y.fill=y.color)),w(B,y)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),c.textOutline&&this.applyTextOutline(c.textOutline)),this}dashstyleSetter(c){let A,T=this["stroke-width"];if(T==="inherit"&&(T=1),c=c&&c.toLowerCase()){let B=c.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(A=B.length;A--;)B[A]=""+e(B[A])*t(T,NaN);c=B.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",c)}}destroy(){let c=this,A=c.element||{},T=c.renderer,B=A.ownerSVGElement,H=A.nodeName==="SPAN"&&c.parentGroup||void 0,u,y;if(A.onclick=A.onmouseout=A.onmouseover=A.onmousemove=A.point=null,J(c),c.clipPath&&B){let v=c.clipPath;[].forEach.call(B.querySelectorAll("[clip-path],[CLIP-PATH]"),function(G){G.getAttribute("clip-path").indexOf(v.element.id)>-1&&G.removeAttribute("clip-path")}),c.clipPath=v.destroy()}if(c.connector=c.connector?.destroy(),c.stops){for(y=0;yH&&H.join?(u?B+" ":"")+H.join(" "):(H||"").toString(),"")),/(NaN| {2}|^$)/.test(c)&&(c="M 0 0"),this[A]!==c&&(T.setAttribute(A,c),this[A]=c)}fillSetter(c,A,T){typeof c=="string"?T.setAttribute(A,c):c&&this.complexColor(c,A,T)}hrefSetter(c,A,T){T.setAttributeNS("http://www.w3.org/1999/xlink",A,c)}getBBox(c,A){let T,B,H,u,{alignValue:y,element:v,renderer:G,styles:l,textStr:M}=this,{cache:k,cacheKeys:P}=G,j=v.namespaceURI===this.SVG_NS,N=t(A,this.rotation,0),$=G.styledMode?v&&b.prototype.getStyle.call(v,"font-size"):l.fontSize;if(m(M)&&((u=M.toString()).indexOf("<")===-1&&(u=u.replace(/[0-9]/g,"0")),u+=["",G.rootFontSize,$,N,this.textWidth,y,l.textOverflow,l.fontWeight].join(",")),u&&!c&&(T=k[u]),!T){if(j||G.forExport){try{H=this.fakeTS&&function(Z){let _=v.querySelector(".highcharts-text-outline");_&&w(_,{display:Z})},g(H)&&H("none"),T=v.getBBox?f({},v.getBBox()):{width:v.offsetWidth,height:v.offsetHeight,x:0,y:0},g(H)&&H("")}catch{}(!T||T.width<0)&&(T={x:0,y:0,width:0,height:0})}else T=this.htmlGetBBox();B=T.height,j&&(T.height=B={"11px,17":14,"13px,20":16}[`${$||""},${Math.round(B)}`]||B),N&&(T=this.getRotatedBox(T,N))}if(u&&(M===""||T.height>0)){for(;P.length>250;)delete k[P.shift()];k[u]||P.push(u),k[u]=T}return T}getRotatedBox(c,A){let{x:T,y:B,width:H,height:u}=c,{alignValue:y,translateY:v,rotationOriginX:G=0,rotationOriginY:l=0}=this,M={right:1,center:.5}[y||0]||0,k=Number(this.element.getAttribute("y")||0)-(v?0:B),P=A*Y,j=(A-90)*Y,N=Math.cos(P),$=Math.sin(P),Z=H*N,_=H*$,ot=Math.cos(j),ht=Math.sin(j),[[X,F],[q,K]]=[G,l].map(bt=>[bt-bt*N,bt*$]),et=T+M*(H-Z)+X+K+k*ot,tt=et+Z,rt=tt-u*ot,lt=rt-Z,dt=B+k-M*_-F+q+k*ht,pt=dt+_,ut=pt-u*ht,ct=ut-_,mt=Math.min(et,tt,rt,lt),yt=Math.min(dt,pt,ut,ct),xt=Math.max(et,tt,rt,lt)-mt,ft=Math.max(dt,pt,ut,ct)-yt;return{x:mt,y:yt,width:xt,height:ft}}getStyle(c){return O.getComputedStyle(this.element||this,"").getPropertyValue(c)}hasClass(c){return(""+this.attr("class")).split(" ").indexOf(c)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(c,A){this.onEvents={},this.opacity=1,this.SVG_NS=S,this.element=A==="span"||A==="body"?p(A):W.createElementNS(this.SVG_NS,A),this.renderer=c,this.styles={},I(this,"afterInit")}on(c,A){let{onEvents:T}=this;return T[c]&&T[c](),T[c]=E(this.element,c,A),this}opacitySetter(c,A,T){let B=Number(Number(c).toFixed(3));this.opacity=B,T.setAttribute(A,B)}reAlign(){this.alignOptions?.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(c){return this.attr("class",(""+this.attr("class")).replace(x(c)?RegExp(`(^| )${c}( |$)`):c," ").replace(/ +/g," ").trim())}removeTextOutline(){let c=this.element.querySelector("tspan.highcharts-text-outline");c&&this.safeRemoveChild(c)}safeRemoveChild(c){let A=c.parentNode;A&&A.removeChild(c)}setRadialReference(c){let A=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=c,A&&A.radAttr&&A.animate(this.renderer.getRadialAttr(c,A.radAttr)),this}setTextPath(c,A){A=r(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},A);let T=this.renderer.url,B=this.text||this,H=B.textPath,{attributes:u,enabled:y}=A;if(c=c||H&&H.path,H&&H.undo(),c&&y){let v=E(B,"afterModifyTree",G=>{if(c&&y){let l=c.attr("id");l||c.attr("id",l=d());let M={x:0,y:0};m(u.dx)&&(M.dx=u.dx,delete u.dx),m(u.dy)&&(M.dy=u.dy,delete u.dy),B.attr(M),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let k=G.nodes.slice(0);G.nodes.length=0,G.nodes[0]={tagName:"textPath",attributes:f(u,{"text-anchor":u.textAnchor,href:`${T}#${l}`}),children:k}}});B.textPath={path:c,undo:v}}else B.attr({dx:0,dy:0}),delete B.textPath;return this.added&&(B.textCache="",this.renderer.buildText(B)),this}shadow(c){let{renderer:A}=this,T=r(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},a(c)?c:{}),B=A.shadowDefinition(T);return this.attr({filter:c?`url(${A.url}#${B})`:"none"})}show(c=!0){return this.attr({visibility:c?"inherit":"visible"})}"stroke-widthSetter"(c,A,T){this[A]=c,T.setAttribute(A,c)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let c=this.getStyle("stroke-width"),A=0,T;return/px$/.test(c)?A=e(c):c!==""&&(L(T=W.createElementNS(S,"rect"),{width:c,"stroke-width":0}),this.element.parentNode.appendChild(T),A=T.getBBox().width,T.parentNode.removeChild(T)),A}symbolAttr(c){let A=this;b.symbolCustomAttribs.forEach(function(T){A[T]=t(c[T],A[T])}),A.attr({d:A.renderer.symbols[A.symbolName](A.x,A.y,A.width,A.height,A)})}textSetter(c){c!==this.textStr&&(delete this.textPxLength,this.textStr=c,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(c){let A=this.element,T=A.getElementsByTagName("title")[0]||W.createElementNS(this.SVG_NS,"title");A.insertBefore?A.insertBefore(T,A.firstChild):A.appendChild(T),T.textContent=o(t(c,""),[/<[^>]*>/g,""]).replace(/</g,"<").replace(/>/g,">")}toFront(){let c=this.element;return c.parentNode.appendChild(c),this}translate(c,A){return this.attr({translateX:c,translateY:A})}updateTransform(c="transform"){let{element:A,matrix:T,rotation:B=0,rotationOriginX:H,rotationOriginY:u,scaleX:y,scaleY:v,translateX:G=0,translateY:l=0}=this,M=["translate("+G+","+l+")"];m(T)&&M.push("matrix("+T.join(",")+")"),B&&(M.push("rotate("+B+" "+t(H,A.getAttribute("x"),0)+" "+t(u,A.getAttribute("y")||0)+")"),this.text?.element.tagName==="SPAN"&&this.text.attr({rotation:B,rotationOriginX:(H||0)-this.padding,rotationOriginY:(u||0)-this.padding})),(m(y)||m(v))&&M.push("scale("+t(y,1)+" "+t(v,1)+")"),M.length&&!(this.text||this).textPath&&A.setAttribute(c,M.join(" "))}visibilitySetter(c,A,T){c==="inherit"?T.removeAttribute(A):this[A]!==c&&T.setAttribute(A,c),this[A]=c}xGetter(c){return this.element.nodeName==="circle"&&(c==="x"?c="cx":c==="y"&&(c="cy")),this._defaultGetter(c)}zIndexSetter(c,A){let T=this.renderer,B=this.parentGroup,H=(B||T).element||T.box,u=this.element,y=H===T.box,v,G,l,M=!1,k,P=this.added,j;if(m(c)?(u.setAttribute("data-z-index",c),c=+c,this[A]===c&&(P=!1)):m(this[A])&&u.removeAttribute("data-z-index"),this[A]=c,P){for((c=this.zIndex)&&B&&(B.handleZ=!0),j=(v=H.childNodes).length-1;j>=0&&!M;j--)k=!m(l=(G=v[j]).getAttribute("data-z-index")),G!==u&&(c<0&&k&&!y&&!j?(H.insertBefore(u,v[j]),M=!0):(e(l)<=c||k&&(!m(c)||c>=0))&&(H.insertBefore(u,v[j+1]),M=!0));M||(H.insertBefore(u,v[y?3:0]),M=!0)}return M}}return b.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],b.prototype.strokeSetter=b.prototype.fillSetter,b.prototype.yGetter=b.prototype.xGetter,b.prototype.matrixSetter=b.prototype.rotationOriginXSetter=b.prototype.rotationOriginYSetter=b.prototype.rotationSetter=b.prototype.scaleXSetter=b.prototype.scaleYSetter=b.prototype.translateXSetter=b.prototype.translateYSetter=b.prototype.verticalAlignSetter=function(R,c){this[c]=R,this.doTransform=!0},b}),gt(z,"Core/Renderer/SVG/SVGLabel.js",[z["Core/Renderer/SVG/SVGElement.js"],z["Core/Utilities.js"]],function(V,Q){let{defined:nt,extend:at,isNumber:st,merge:it,pick:J,removeEvent:Y}=Q;class W extends V{constructor(S,O,E,L,p,C,w,m,h,f){let I;super(S,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.textStr=O,this.x=E,this.y=L,this.anchorX=C,this.anchorY=w,this.baseline=h,this.className=f,this.addClass(f==="button"?"highcharts-no-tooltip":"highcharts-label"),f&&this.addClass("highcharts-"+f),this.text=S.text(void 0,0,0,m).attr({zIndex:1}),typeof p=="string"&&((I=/^url\((.*?)\)$/.test(p))||this.renderer.symbols[p])&&(this.symbolKey=p),this.bBox=W.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=S.styledMode||I,this.deferredAttr={},this.alignFactor=0}alignSetter(S){let O={left:0,center:.5,right:1}[S];O!==this.alignFactor&&(this.alignFactor=O,this.bBox&&st(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(S,O){this.anchorX=S,this.boxAttr(O,Math.round(S)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(S,O){this.anchorY=S,this.boxAttr(O,S-this.ySetting)}boxAttr(S,O){this.box?this.box.attr(S,O):this.deferredAttr[S]=O}css(S){if(S){let O={};S=it(S),W.textProps.forEach(E=>{S[E]!==void 0&&(O[E]=S[E],delete S[E])}),this.text.css(O),"fontSize"in O||"fontWeight"in O?this.updateTextPadding():("width"in O||"textOverflow"in O)&&this.updateBoxSize()}return V.prototype.css.call(this,S)}destroy(){Y(this.element,"mouseenter"),Y(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),V.prototype.destroy.call(this)}fillSetter(S,O){S&&(this.needsBox=!0),this.fill=S,this.boxAttr(O,S)}getBBox(S,O){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:E,height:L=0,translateX:p=0,translateY:C=0,width:w=0}=this,m=J(this.paddingLeft,E),h=O??(this.rotation||0),f={width:w,height:L,x:p+this.bBox.x-m,y:C+this.bBox.y-E+this.baselineOffset};return h&&(f=this.getRotatedBox(f,h)),f}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(S){this.heightSetting=S}onAdd(){this.text.add(this),this.attr({text:J(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&nt(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(S,O){st(S)?S!==this[O]&&(this[O]=S,this.updateTextPadding()):this[O]=void 0}rSetter(S,O){this.boxAttr(O,S)}strokeSetter(S,O){this.stroke=S,this.boxAttr(O,S)}"stroke-widthSetter"(S,O){S&&(this.needsBox=!0),this["stroke-width"]=S,this.boxAttr(O,S)}"text-alignSetter"(S){this.textAlign=S}textSetter(S){S!==void 0&&this.text.attr({text:S}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let S,O=this.text,E={},L=this.padding,p=this.bBox=(!st(this.widthSetting)||!st(this.heightSetting)||this.textAlign)&&nt(O.textStr)?O.getBBox(void 0,0):W.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||p.height||0)+2*L;let C=this.renderer.fontMetrics(O);if(this.baselineOffset=L+Math.min((this.text.firstLineMetrics||C).b,p.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-C.h)/2),this.needsBox&&!O.textPath){if(!this.box){let w=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();w.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),w.add(this)}S=this.getCrispAdjust(),E.x=S,E.y=(this.baseline?-this.baselineOffset:0)+S,E.width=Math.round(this.width),E.height=Math.round(this.height),this.box.attr(at(E,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let S=this.text;if(!S.textPath){this.updateBoxSize();let O=this.baseline?0:this.baselineOffset,E=J(this.paddingLeft,this.padding);nt(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(E+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(E!==S.x||O!==S.y)&&(S.attr("x",E),S.hasBoxWidthChanged&&(this.bBox=S.getBBox(!0)),O!==void 0&&S.attr("y",O)),S.x=E,S.y=O}}widthSetter(S){this.widthSetting=st(S)?S:void 0}getPaddedWidth(){let S=this.padding,O=J(this.paddingLeft,S),E=J(this.paddingRight,S);return(this.widthSetting||this.bBox.width||0)+O+E}xSetter(S){this.x=S,this.alignFactor&&(S-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(S),this.attr("translateX",this.xSetting)}ySetter(S){this.ySetting=this.y=Math.round(S),this.attr("translateY",this.ySetting)}}return W.emptyBBox={width:0,height:0,x:0,y:0},W.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],W}),gt(z,"Core/Renderer/SVG/Symbols.js",[z["Core/Utilities.js"]],function(V){let{defined:Q,isNumber:nt,pick:at}=V;function st(Y,W,U,S,O){let E=[];if(O){let L=O.start||0,p=at(O.r,U),C=at(O.r,S||U),w=2e-4/Math.max(p,1),m=Math.abs((O.end||0)-L-2*Math.PI)0&&C0)return w;if(Y+p>U-L)if(C>W+L&&CW+L&&C0){let m=CS&&pL&&w.splice(1,1,["L",p-6,W],["L",p,W-6],["L",p+6,W],["L",U-E,W]);return w},circle:function(Y,W,U,S){return st(Y+U/2,W+S/2,U/2,S/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(Y,W,U,S){return[["M",Y+U/2,W],["L",Y+U,W+S/2],["L",Y+U/2,W+S],["L",Y,W+S/2],["Z"]]},rect:it,roundedRect:J,square:it,triangle:function(Y,W,U,S){return[["M",Y+U/2,W],["L",Y+U,W+S],["L",Y,W+S],["Z"]]},"triangle-down":function(Y,W,U,S){return[["M",Y,W],["L",Y+U,W],["L",Y+U/2,W+S],["Z"]]}}}),gt(z,"Core/Renderer/SVG/TextBuilder.js",[z["Core/Renderer/HTML/AST.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{doc:at,SVG_NS:st,win:it}=Q,{attr:J,extend:Y,fireEvent:W,isString:U,objectEach:S,pick:O}=nt;return class{constructor(E){let L=E.styles;this.renderer=E.renderer,this.svgElement=E,this.width=E.textWidth,this.textLineHeight=L&&L.lineHeight,this.textOutline=L&&L.textOutline,this.ellipsis=!!(L&&L.textOverflow==="ellipsis"),this.noWrap=!!(L&&L.whiteSpace==="nowrap")}buildSVG(){let E=this.svgElement,L=E.element,p=E.renderer,C=O(E.textStr,"").toString(),w=C.indexOf("<")!==-1,m=L.childNodes,h=!E.added&&p.box,f=[C,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,E.getStyle("font-size"),this.width].join(",");if(f!==E.textCache){E.textCache=f,delete E.actualWidth;for(let I=m.length;I--;)L.removeChild(m[I]);if(w||this.ellipsis||this.width||E.textPath||C.indexOf(" ")!==-1&&(!this.noWrap||//g.test(C))){if(C!==""){h&&h.appendChild(L);let I=new V(C);this.modifyTree(I.nodes),I.addToDOM(L),this.modifyDOM(),this.ellipsis&&(L.textContent||"").indexOf("\u2026")!==-1&&E.attr("title",this.unescapeEntities(E.textStr||"",["<",">"])),h&&h.removeChild(L)}}else L.appendChild(at.createTextNode(this.unescapeEntities(C)));U(this.textOutline)&&E.applyTextOutline&&E.applyTextOutline(this.textOutline)}}modifyDOM(){let E,L=this.svgElement,p=J(L.element,"x");for(L.firstLineMetrics=void 0;(E=L.element.firstChild)&&/^[\s\u200B]*$/.test(E.textContent||" ");)L.element.removeChild(E);[].forEach.call(L.element.querySelectorAll("tspan.highcharts-br"),(h,f)=>{h.nextSibling&&h.previousSibling&&(f===0&&h.previousSibling.nodeType===1&&(L.firstLineMetrics=L.renderer.fontMetrics(h.previousSibling)),J(h,{dy:this.getLineHeight(h.nextSibling),x:p}))});let C=this.width||0;if(!C)return;let w=(h,f)=>{let I=h.textContent||"",D=I.replace(/([^\^])-/g,"$1- ").split(" "),g=!this.noWrap&&(D.length>1||L.element.childNodes.length>1),a=this.getLineHeight(f),x=0,r=L.actualWidth;if(this.ellipsis)I&&this.truncate(h,I,void 0,0,Math.max(0,C-.8*a),(s,t)=>s.substring(0,t)+"\u2026");else if(g){let s=[],t=[];for(;f.firstChild&&f.firstChild!==h;)t.push(f.firstChild),f.removeChild(f.firstChild);for(;D.length;)D.length&&!this.noWrap&&x>0&&(s.push(h.textContent||""),h.textContent=D.join(" ").replace(/- /g,"-")),this.truncate(h,void 0,D,x===0&&r||0,C,(e,i)=>D.slice(0,i).join(" ").replace(/- /g,"-")),r=L.actualWidth,x++;t.forEach(e=>{f.insertBefore(e,h)}),s.forEach(e=>{f.insertBefore(at.createTextNode(e),h);let i=at.createElementNS(st,"tspan");i.textContent="\u200B",J(i,{dy:a,x:p}),f.insertBefore(i,h)})}},m=h=>{[].slice.call(h.childNodes).forEach(f=>{f.nodeType===it.Node.TEXT_NODE?w(f,h):(f.className.baseVal.indexOf("highcharts-br")!==-1&&(L.actualWidth=0),m(f))})};m(L.element)}getLineHeight(E){let L=E.nodeType===it.Node.TEXT_NODE?E.parentElement:E;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(L||this.svgElement.element).h}modifyTree(E){let L=(p,C)=>{let{attributes:w={},children:m,style:h={},tagName:f}=p,I=this.renderer.styledMode;if(f==="b"||f==="strong"?I?w.class="highcharts-strong":h.fontWeight="bold":(f==="i"||f==="em")&&(I?w.class="highcharts-emphasized":h.fontStyle="italic"),h&&h.color&&(h.fill=h.color),f==="br"){w.class="highcharts-br",p.textContent="\u200B";let D=E[C+1];D&&D.textContent&&(D.textContent=D.textContent.replace(/^ +/gm,""))}else f==="a"&&m&&m.some(D=>D.tagName==="#text")&&(p.children=[{children:m,tagName:"tspan"}]);f!=="#text"&&f!=="a"&&(p.tagName="tspan"),Y(p,{attributes:w,style:h}),m&&m.filter(D=>D.tagName!=="#text").forEach(L)};E.forEach(L),W(this.svgElement,"afterModifyTree",{nodes:E})}truncate(E,L,p,C,w,m){let h,f,I=this.svgElement,{rotation:D}=I,g=[],a=p?1:0,x=(L||p||"").length,r=x,s=function(t,e){let i=e||t,o=E.parentNode;if(o&&g[i]===void 0&&o.getSubStringLength)try{g[i]=C+o.getSubStringLength(0,p?i+1:i)}catch{}return g[i]};if(I.rotation=0,C+(f=s(E.textContent.length))>w){for(;a<=x;)r=Math.ceil((a+x)/2),p&&(h=m(p,r)),f=s(r,h&&h.length-1),a===x?a=x+1:f>w?x=r-1:a=r;x===0?E.textContent="":L&&x===L.length-1||(E.textContent=h||m(L||p,r))}p&&p.splice(0,r),I.actualWidth=f,I.rotation=D}unescapeEntities(E,L){return S(this.renderer.escapes,function(p,C){L&&L.indexOf(p)!==-1||(E=E.toString().replace(RegExp(p,"g"),C))}),E}}}),gt(z,"Core/Renderer/SVG/SVGRenderer.js",[z["Core/Renderer/HTML/AST.js"],z["Core/Defaults.js"],z["Core/Color/Color.js"],z["Core/Globals.js"],z["Core/Renderer/RendererRegistry.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Renderer/SVG/SVGLabel.js"],z["Core/Renderer/SVG/Symbols.js"],z["Core/Renderer/SVG/TextBuilder.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y,W,U){let S,{defaultOptions:O}=Q,{charts:E,deg2rad:L,doc:p,isFirefox:C,isMS:w,isWebKit:m,noop:h,SVG_NS:f,symbolSizes:I,win:D}=at,{addEvent:g,attr:a,createElement:x,crisp:r,css:s,defined:t,destroyObjectProperties:e,extend:i,isArray:o,isNumber:n,isObject:d,isString:b,merge:R,pick:c,pInt:A,replaceNested:T,uniqueKey:B}=U;class H{constructor(y,v,G,l,M,k,P){let j,N,$=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),Z=$.element;P||$.css(this.getStyle(l||{})),y.appendChild(Z),a(y,"dir","ltr"),y.innerHTML.indexOf("xmlns")===-1&&a(Z,"xmlns",this.SVG_NS),this.box=Z,this.boxWrapper=$,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 11.4.3")),this.defs=this.createElement("defs").add(),this.allowHTML=k,this.forExport=M,this.styledMode=P,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=$.getStyle("font-size"),this.setSize(v,G,!1),C&&y.getBoundingClientRect&&((j=function(){s(y,{left:0,top:0}),N=y.getBoundingClientRect(),s(y,{left:Math.ceil(N.left)-N.left+"px",top:Math.ceil(N.top)-N.top+"px"})})(),this.unSubPixelFix=g(D,"resize",j))}definition(y){return new V([y]).addToDOM(this.defs.element)}getReferenceURL(){if((C||m)&&p.getElementsByTagName("base").length){if(!t(S)){let y=B(),v=new V([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:y},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${y})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(p.body);s(v,{position:"fixed",top:0,left:0,zIndex:9e5});let G=p.elementFromPoint(6,6);S=(G&&G.id)==="hitme",p.body.removeChild(v)}if(S)return T(D.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(y){return this.style=i({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},y),this.style}setStyle(y){this.boxWrapper.css(this.getStyle(y))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let y=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),e(this.gradients||{}),this.gradients=null,this.defs=y.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(y){return new this.Element(this,y)}getRadialAttr(y,v){return{cx:y[0]-y[2]/2+(v.cx||0)*y[2],cy:y[1]-y[2]/2+(v.cy||0)*y[2],r:(v.r||0)*y[2]}}shadowDefinition(y){let v=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(y).map(l=>`${l}-${y[l]}`)].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),G=R({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},y);return this.defs.element.querySelector(`#${v}`)||this.definition({tagName:"filter",attributes:{id:v,filterUnits:G.filterUnits},children:[{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}}]}),v}buildText(y){new W(y).buildSVG()}getContrast(y){let v=nt.parse(y).rgba.map(l=>{let M=l/255;return M<=.03928?M/12.92:Math.pow((M+.055)/1.055,2.4)}),G=.2126*v[0]+.7152*v[1]+.0722*v[2];return 1.05/(G+.05)>(G+.05)/.05?"#FFFFFF":"#000000"}button(y,v,G,l,M={},k,P,j,N,$){let Z=this.label(y,v,G,N,void 0,void 0,$,void 0,"button"),_=this.styledMode,ot=arguments,ht=0;M=R(O.global.buttonTheme,M),_&&(delete M.fill,delete M.stroke,delete M["stroke-width"]);let X=M.states||{},F=M.style||{};delete M.states,delete M.style;let q=[V.filterUserAttributes(M)],K=[F];return _||["hover","select","disabled"].forEach((et,tt)=>{q.push(R(q[0],V.filterUserAttributes(ot[tt+5]||X[et]||{}))),K.push(q[tt+1].style),delete q[tt+1].style}),g(Z.element,w?"mouseover":"mouseenter",function(){ht!==3&&Z.setState(1)}),g(Z.element,w?"mouseout":"mouseleave",function(){ht!==3&&Z.setState(ht)}),Z.setState=(et=0)=>{if(et!==1&&(Z.state=ht=et),Z.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][et]),!_){Z.attr(q[et]);let tt=K[et];d(tt)&&Z.css(tt)}},Z.attr(q[0]),!_&&(Z.css(i({cursor:"default"},F)),$&&Z.text.css({pointerEvents:"none"})),Z.on("touchstart",et=>et.stopPropagation()).on("click",function(et){ht!==3&&l.call(Z,et)})}crispLine(y,v){let[G,l]=y;return t(G[1])&&G[1]===l[1]&&(G[1]=l[1]=r(G[1],v)),t(G[2])&&G[2]===l[2]&&(G[2]=l[2]=r(G[2],v)),y}path(y){let v=this.styledMode?{}:{fill:"none"};return o(y)?v.d=y:d(y)&&i(v,y),this.createElement("path").attr(v)}circle(y,v,G){let l=d(y)?y:y===void 0?{}:{x:y,y:v,r:G},M=this.createElement("circle");return M.xSetter=M.ySetter=function(k,P,j){j.setAttribute("c"+P,k)},M.attr(l)}arc(y,v,G,l,M,k){let P;d(y)?(v=(P=y).y,G=P.r,l=P.innerR,M=P.start,k=P.end,y=P.x):P={innerR:l,start:M,end:k};let j=this.symbol("arc",y,v,G,G,P);return j.r=G,j}rect(y,v,G,l,M,k){let P=d(y)?y:y===void 0?{}:{x:y,y:v,r:M,width:Math.max(G||0,0),height:Math.max(l||0,0)},j=this.createElement("rect");return this.styledMode||(k!==void 0&&(P["stroke-width"]=k,i(P,j.crisp(P))),P.fill="none"),j.rSetter=function(N,$,Z){j.r=N,a(Z,{rx:N,ry:N})},j.rGetter=function(){return j.r||0},j.attr(P)}roundedRect(y){return this.symbol("roundedRect").attr(y)}setSize(y,v,G){this.width=y,this.height=v,this.boxWrapper.animate({width:y,height:v},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:c(G,!0)?void 0:0}),this.alignElements()}g(y){let v=this.createElement("g");return y?v.attr({class:"highcharts-"+y}):v}image(y,v,G,l,M,k){let P={preserveAspectRatio:"none"};n(v)&&(P.x=v),n(G)&&(P.y=G),n(l)&&(P.width=l),n(M)&&(P.height=M);let j=this.createElement("image").attr(P),N=function($){j.attr({href:y}),k.call(j,$)};if(k){j.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let $=new D.Image;g($,"load",N),$.src=y,$.complete&&N({})}else j.attr({href:y});return j}symbol(y,v,G,l,M,k){let P,j,N,$,Z=this,_=/^url\((.*?)\)$/,ot=_.test(y),ht=!ot&&(this.symbols[y]?y:"circle"),X=ht&&this.symbols[ht];if(X)typeof v=="number"&&(j=X.call(this.symbols,v||0,G||0,l||0,M||0,k)),P=this.path(j),Z.styledMode||P.attr("fill","none"),i(P,{symbolName:ht||void 0,x:v,y:G,width:l,height:M}),k&&i(P,k);else if(ot){N=y.match(_)[1];let F=P=this.image(N);F.imgwidth=c(k&&k.width,I[N]&&I[N].width),F.imgheight=c(k&&k.height,I[N]&&I[N].height),$=q=>q.attr({width:q.width,height:q.height}),["width","height"].forEach(q=>{F[`${q}Setter`]=function(K,et){this[et]=K;let{alignByTranslate:tt,element:rt,width:lt,height:dt,imgwidth:pt,imgheight:ut}=this,ct=et==="width"?pt:ut,mt=1;k&&k.backgroundSize==="within"&<&&dt&&pt&&ut?(mt=Math.min(lt/pt,dt/ut),a(rt,{width:Math.round(pt*mt),height:Math.round(ut*mt)})):rt&&ct&&rt.setAttribute(et,ct),!tt&&pt&&ut&&this.translate(((lt||0)-pt*mt)/2,((dt||0)-ut*mt)/2)}}),t(v)&&F.attr({x:v,y:G}),F.isImg=!0,t(F.imgwidth)&&t(F.imgheight)?$(F):(F.attr({width:0,height:0}),x("img",{onload:function(){let q=E[Z.chartIndex];this.width===0&&(s(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),I[N]={width:this.width,height:this.height},F.imgwidth=this.width,F.imgheight=this.height,F.element&&$(F),this.parentNode&&this.parentNode.removeChild(this),Z.imgCount--,Z.imgCount||!q||q.hasLoaded||q.onload()},src:N}),this.imgCount++)}return P}clipRect(y,v,G,l){return this.rect(y,v,G,l,0)}text(y,v,G,l){let M={};if(l&&(this.allowHTML||!this.forExport))return this.html(y,v,G);M.x=Math.round(v||0),G&&(M.y=Math.round(G)),t(y)&&(M.text=y);let k=this.createElement("text").attr(M);return l&&(!this.forExport||this.allowHTML)||(k.xSetter=function(P,j,N){let $=N.getElementsByTagName("tspan"),Z=N.getAttribute(j);for(let _=0,ot;_<$.length;_++)(ot=$[_]).getAttribute(j)===Z&&ot.setAttribute(j,P);N.setAttribute(j,P)}),k}fontMetrics(y){let v=A(it.prototype.getStyle.call(y,"font-size")||0),G=v<24?v+3:Math.round(1.2*v),l=Math.round(.8*G);return{h:G,b:l,f:v}}rotCorr(y,v,G){let l=y;return v&&G&&(l=Math.max(l*Math.cos(v*L),4)),{x:-y/3*Math.sin(v*L),y:l}}pathToSegments(y){let v=[],G=[],l={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let M=0;My.align())}}return i(H.prototype,{Element:it,SVG_NS:f,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:Y,draw:h}),st.registerRendererType("svg",H,!0),H}),gt(z,"Core/Renderer/HTML/HTMLElement.js",[z["Core/Renderer/HTML/AST.js"],z["Core/Globals.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){let{composed:st}=Q,{attr:it,css:J,createElement:Y,defined:W,extend:U,pInt:S,pushUnique:O}=at;function E(w,m,h){let f=this.div?.style||h.style;nt.prototype[`${m}Setter`].call(this,w,m,h),f&&(f[m]=w)}let L=(w,m)=>{if(!w.div){let h=it(w.element,"class"),f=w.css,I=Y("div",h?{className:h}:void 0,Rt(Dt({position:"absolute",left:`${w.translateX||0}px`,top:`${w.translateY||0}px`},w.styles),{display:w.display,opacity:w.opacity,visibility:w.visibility}),w.parentGroup?.div||m);w.classSetter=(D,g,a)=>{a.setAttribute("class",D),I.className=D},w.translateXSetter=w.translateYSetter=(D,g)=>{w[g]=D,I.style[g==="translateX"?"left":"top"]=`${D}px`,w.doTransform=!0},w.opacitySetter=w.visibilitySetter=E,w.css=D=>(f.call(w,D),D.cursor&&(I.style.cursor=D.cursor),D.pointerEvents&&(I.style.pointerEvents=D.pointerEvents),w),w.on=function(){return nt.prototype.on.apply({element:I,onEvents:w.onEvents},arguments),w},w.div=I}return w.div};class p extends nt{static compose(m){O(st,this.compose)&&(m.prototype.html=function(h,f,I){return new p(this,"span").attr({text:h,x:Math.round(f),y:Math.round(I)})})}constructor(m,h){super(m,h),this.css(Dt({position:"absolute"},m.styledMode?{}:{fontFamily:m.style.fontFamily,fontSize:m.style.fontSize})),this.element.style.whiteSpace="nowrap"}getSpanCorrection(m,h,f){this.xCorr=-m*f,this.yCorr=-h}css(m){let h,{element:f}=this,I=f.tagName==="SPAN"&&m&&"width"in m,D=I&&m.width;return I&&(delete m.width,this.textWidth=S(D)||void 0,h=!0),m?.textOverflow==="ellipsis"&&(m.whiteSpace="nowrap",m.overflow="hidden"),U(this.styles,m),J(f,m),h&&this.updateTransform(),this}htmlGetBBox(){let{element:m}=this;return{x:m.offsetLeft,y:m.offsetTop,width:m.offsetWidth,height:m.offsetHeight}}updateTransform(){if(!this.added){this.alignOnAdd=!0;return}let{element:m,renderer:h,rotation:f,rotationOriginX:I,rotationOriginY:D,styles:g,textAlign:a="left",textWidth:x,translateX:r=0,translateY:s=0,x:t=0,y:e=0}=this,i=g.whiteSpace;if(J(m,{marginLeft:`${r}px`,marginTop:`${s}px`}),m.tagName==="SPAN"){let o=[f,a,m.innerHTML,x,this.textAlign].join(","),n=-(this.parentGroup?.padding*1)||0,d,b=!1;if(x!==this.oldTextWidth){let B=this.textPxLength?this.textPxLength:(J(m,{width:"",whiteSpace:i||"nowrap"}),m.offsetWidth),H=x||0;(H>this.oldTextWidth||B>H)&&(/[ \-]/.test(m.textContent||m.innerText)||m.style.textOverflow==="ellipsis")&&(J(m,{width:B>H||f?x+"px":"auto",display:"block",whiteSpace:i||"normal"}),this.oldTextWidth=x,b=!0)}this.hasBoxWidthChanged=b,o!==this.cTT&&(d=h.fontMetrics(m).b,W(f)&&(f!==(this.oldRotation||0)||a!==this.oldAlign)&&this.setSpanRotation(f,n,n),this.getSpanCorrection(!W(f)&&this.textPxLength||m.offsetWidth,d,{left:0,center:.5,right:1}[a]));let{xCorr:R=0,yCorr:c=0}=this,A=(I??t)-R-t-n,T=(D??e)-c-e-n;J(m,{left:`${t+R}px`,top:`${e+c}px`,transformOrigin:`${A}px ${T}px`}),this.cTT=o,this.oldRotation=f,this.oldAlign=a}}setSpanRotation(m,h,f){J(this.element,{transform:`rotate(${m}deg)`,transformOrigin:`${h}% ${f}px`})}add(m){let h,f=this.renderer.box.parentNode,I=[];if(this.parentGroup=m,m&&!(h=m.div)){let D=m;for(;D;)I.push(D),D=D.parentGroup;for(let g of I.reverse())h=L(g,f)}return(h||f).appendChild(this.element),this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(m){m!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,V.setElementHTML(this.element,m??""),this.textStr=m,this.doTransform=!0)}alignSetter(m){this.alignValue=this.textAlign=m,this.doTransform=!0}xSetter(m,h){this[h]=m,this.doTransform=!0}}let C=p.prototype;return C.visibilitySetter=C.opacitySetter=E,C.ySetter=C.rotationSetter=C.rotationOriginXSetter=C.rotationOriginYSetter=C.xSetter,p}),gt(z,"Core/Axis/AxisDefaults.js",[],function(){var V,Q;return(Q=V||(V={})).xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},Q.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:nt}=this.axis.chart;return nt(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},V}),gt(z,"Core/Foundation.js",[z["Core/Utilities.js"]],function(V){var Q;let{addEvent:nt,isFunction:at,objectEach:st,removeEvent:it}=V;return(Q||(Q={})).registerEventOptions=function(J,Y){J.eventOptions=J.eventOptions||{},st(Y.events,function(W,U){J.eventOptions[U]!==W&&(J.eventOptions[U]&&(it(J,U,J.eventOptions[U]),delete J.eventOptions[U]),at(W)&&(J.eventOptions[U]=W,nt(J,U,W,{order:0})))})},Q}),gt(z,"Core/Axis/Tick.js",[z["Core/Templating.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{deg2rad:at}=Q,{clamp:st,correctFloat:it,defined:J,destroyObjectProperties:Y,extend:W,fireEvent:U,isNumber:S,merge:O,objectEach:E,pick:L}=nt;return class{constructor(p,C,w,m,h){this.isNew=!0,this.isNewLabel=!0,this.axis=p,this.pos=C,this.type=w||"",this.parameters=h||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,U(this,"init"),w||m||this.addLabel()}addLabel(){let p=this,C=p.axis,w=C.options,m=C.chart,h=C.categories,f=C.logarithmic,I=C.names,D=p.pos,g=L(p.options&&p.options.labels,w.labels),a=C.tickPositions,x=D===a[0],r=D===a[a.length-1],s=(!g.step||g.step===1)&&C.tickInterval===1,t=a.info,e=p.label,i,o,n,d=this.parameters.category||(h?L(h[D],I[D],D):D);f&&S(d)&&(d=it(f.lin2log(d))),C.dateTime&&(t?i=(o=m.time.resolveDTLFormat(w.dateTimeLabelFormats[!w.grid&&t.higherRanks[D]||t.unitName])).main:S(d)&&(i=C.dateTime.getXDateFormat(d,w.dateTimeLabelFormats||{}))),p.isFirst=x,p.isLast=r;let b={axis:C,chart:m,dateTimeLabelFormat:i,isFirst:x,isLast:r,pos:D,tick:p,tickPositionInfo:t,value:d};U(this,"labelFormat",b);let R=T=>g.formatter?g.formatter.call(T,T):g.format?(T.text=C.defaultLabelFormatter.call(T),V.format(g.format,T,m)):C.defaultLabelFormatter.call(T),c=R.call(b,b),A=o&&o.list;A?p.shortenLabel=function(){for(n=0;n0&&m+x*r>D&&(d=Math.round((h-m)/Math.cos(a*at))):(o=m-x*r,n=m+(1-x)*r,oD&&(e=D-p.x+e*x,i=-1),(e=Math.min(s,e))e||C.autoRotation&&(g.styles||{}).width)&&(d=e)),d&&(this.shortenLabel?this.shortenLabel():(t.width=Math.floor(d)+"px",(w.style||{}).textOverflow||(t.textOverflow="ellipsis"),g.css(t)))}moveLabel(p,C){let w=this,m=w.label,h=w.axis,f=!1,I;m&&m.textStr===p?(w.movedLabel=m,f=!0,delete w.label):E(h.ticks,function(D){f||D.isNew||D===w||!D.label||D.label.textStr!==p||(w.movedLabel=D.label,f=!0,D.labelPos=w.movedLabel.xy,delete D.label)}),!f&&(w.labelPos||m)&&(I=w.labelPos||m.xy,w.movedLabel=w.createLabel(p,C,I),w.movedLabel&&w.movedLabel.attr({opacity:0}))}render(p,C,w){let m=this.axis,h=m.horiz,f=this.pos,I=L(this.tickmarkOffset,m.tickmarkOffset),D=this.getPosition(h,f,I,C),g=D.x,a=D.y,x=m.pos,r=x+m.len,s=h?g:a;!m.chart.polar&&this.isNew&&(it(s)r)&&(w=0);let t=L(w,this.label&&this.label.newOpacity,1);w=L(w,1),this.isActive=!0,this.renderGridLine(C,w),this.renderMark(D,w),this.renderLabel(D,C,t,p),this.isNew=!1,U(this,"afterRender")}renderGridLine(p,C){let w=this.axis,m=w.options,h={},f=this.pos,I=this.type,D=L(this.tickmarkOffset,w.tickmarkOffset),g=w.chart.renderer,a=this.gridLine,x,r=m.gridLineWidth,s=m.gridLineColor,t=m.gridLineDashStyle;this.type==="minor"&&(r=m.minorGridLineWidth,s=m.minorGridLineColor,t=m.minorGridLineDashStyle),a||(w.chart.styledMode||(h.stroke=s,h["stroke-width"]=r||0,h.dashstyle=t),I||(h.zIndex=1),p&&(C=0),this.gridLine=a=g.path().attr(h).addClass("highcharts-"+(I?I+"-":"")+"grid-line").add(w.gridGroup)),a&&(x=w.getPlotLinePath({value:f+D,lineWidth:a.strokeWidth(),force:"pass",old:p,acrossPanes:!1}))&&a[p||this.isNew?"attr":"animate"]({d:x,opacity:C})}renderMark(p,C){let w=this.axis,m=w.options,h=w.chart.renderer,f=this.type,I=w.tickSize(f?f+"Tick":"tick"),D=p.x,g=p.y,a=L(m[f!=="minor"?"tickWidth":"minorTickWidth"],!f&&w.isXAxis?1:0),x=m[f!=="minor"?"tickColor":"minorTickColor"],r=this.mark,s=!r;I&&(w.opposite&&(I[0]=-I[0]),r||(this.mark=r=h.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(w.axisGroup),w.chart.styledMode||r.attr({stroke:x,"stroke-width":a})),r[s?"attr":"animate"]({d:this.getMarkPath(D,g,I[0],r.strokeWidth(),w.horiz,h),opacity:C}))}renderLabel(p,C,w,m){let h=this.axis,f=h.horiz,I=h.options,D=this.label,g=I.labels,a=g.step,x=L(this.tickmarkOffset,h.tickmarkOffset),r=p.x,s=p.y,t=!0;D&&S(r)&&(D.xy=p=this.getLabelPosition(r,s,D,f,g,x,m,a),(!this.isFirst||this.isLast||I.showFirstLabel)&&(!this.isLast||this.isFirst||I.showLastLabel)?!f||g.step||g.rotation||C||w===0||this.handleOverflow(p):t=!1,a&&m%a&&(t=!1),t&&S(p.y)?(p.opacity=w,D[this.isNewLabel?"attr":"animate"](p).show(!0),this.isNewLabel=!1):(D.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let p=this.label,C=this.axis;p&&!this.isNew&&(p.animate({opacity:0},void 0,p.destroy),delete this.label),C.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}}),gt(z,"Core/Axis/Axis.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Axis/AxisDefaults.js"],z["Core/Color/Color.js"],z["Core/Defaults.js"],z["Core/Foundation.js"],z["Core/Globals.js"],z["Core/Axis/Tick.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y){let{animObject:W}=V,{xAxis:U,yAxis:S}=Q,{defaultOptions:O}=at,{registerEventOptions:E}=st,{deg2rad:L}=it,{arrayMax:p,arrayMin:C,clamp:w,correctFloat:m,defined:h,destroyObjectProperties:f,erase:I,error:D,extend:g,fireEvent:a,getClosestDistance:x,insertItem:r,isArray:s,isNumber:t,isString:e,merge:i,normalizeTickInterval:o,objectEach:n,pick:d,relativeLength:b,removeEvent:R,splat:c,syncTimeout:A}=Y,T=(H,u)=>o(u,void 0,void 0,d(H.options.allowDecimals,u<.5||H.tickAmount!==void 0),!!H.tickAmount);g(O,{xAxis:U,yAxis:i(U,S)});class B{constructor(u,y,v){this.init(u,y,v)}init(u,y,v=this.coll){let G=v==="xAxis",l=this.isZAxis||(u.inverted?!G:G);this.chart=u,this.horiz=l,this.isXAxis=G,this.coll=v,a(this,"init",{userOptions:y}),this.opposite=d(y.opposite,this.opposite),this.side=d(y.side,this.side,l?this.opposite?0:2:this.opposite?1:3),this.setOptions(y);let M=this.options,k=M.labels,P=M.type;this.userOptions=y,this.minPixelPadding=0,this.reversed=d(M.reversed,this.reversed),this.visible=M.visible,this.zoomEnabled=M.zoomEnabled,this.hasNames=P==="category"||M.categories===!0,this.categories=s(M.categories)&&M.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=h(M.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=M.minRange||M.maxZoom,this.range=M.range,this.offset=M.offset||0,this.max=void 0,this.min=void 0;let j=d(M.crosshair,c(u.options.tooltip.crosshairs)[G?0:1]);this.crosshair=j===!0?{}:j,u.axes.indexOf(this)===-1&&(G?u.axes.splice(u.xAxis.length,0,this):u.axes.push(this),r(this,u[this.coll])),u.orderItems(this.coll),this.series=this.series||[],u.inverted&&!this.isZAxis&&G&&!h(this.reversed)&&(this.reversed=!0),this.labelRotation=t(k.rotation)?k.rotation:void 0,E(this,M),a(this,"afterInit")}setOptions(u){let y=this.horiz?{labels:{autoRotation:[-45],padding:4},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=i(y,O[this.coll],u),a(this,"afterSetOptions",{userOptions:u})}defaultLabelFormatter(){let u=this.axis,{numberFormatter:y}=this.chart,v=t(this.value)?this.value:NaN,G=u.chart.time,l=u.categories,M=this.dateTimeLabelFormat,k=O.lang,P=k.numericSymbols,j=k.numericSymbolMagnitude||1e3,N=u.logarithmic?Math.abs(v):u.tickInterval,$=P&&P.length,Z,_;if(l)_=`${this.value}`;else if(M)_=G.dateFormat(M,v);else if($&&P&&N>=1e3)for(;$--&&_===void 0;)N>=(Z=Math.pow(j,$+1))&&10*v%Z==0&&P[$]!==null&&v!==0&&(_=y(v/Z,-1)+P[$]);return _===void 0&&(_=Math.abs(v)>=1e4?y(v,-1):y(v,-1,void 0,"")),_}getSeriesExtremes(){let u,y=this;a(this,"getSeriesExtremes",null,function(){y.hasVisibleSeries=!1,y.dataMin=y.dataMax=y.threshold=void 0,y.softThreshold=!y.isXAxis,y.series.forEach(v=>{if(v.reserveSpace()){let G=v.options,l,M=G.threshold,k,P;if(y.hasVisibleSeries=!0,y.positiveValuesOnly&&0>=(M||0)&&(M=void 0),y.isXAxis)(l=v.xData)&&l.length&&(l=y.logarithmic?l.filter(j=>j>0):l,k=(u=v.getXExtremes(l)).min,P=u.max,t(k)||k instanceof Date||(l=l.filter(t),k=(u=v.getXExtremes(l)).min,P=u.max),l.length&&(y.dataMin=Math.min(d(y.dataMin,k),k),y.dataMax=Math.max(d(y.dataMax,P),P)));else{let j=v.applyExtremes();t(j.dataMin)&&(k=j.dataMin,y.dataMin=Math.min(d(y.dataMin,k),k)),t(j.dataMax)&&(P=j.dataMax,y.dataMax=Math.max(d(y.dataMax,P),P)),h(M)&&(y.threshold=M),(!G.softThreshold||y.positiveValuesOnly)&&(y.softThreshold=!1)}}})}),a(this,"afterGetSeriesExtremes")}translate(u,y,v,G,l,M){let k=this.linkedParent||this,P=G&&k.old?k.old.min:k.min;if(!t(P))return NaN;let j=k.minPixelPadding,N=(k.isOrdinal||k.brokenAxis?.hasBreaks||k.logarithmic&&l)&&k.lin2val,$=1,Z=0,_=G&&k.old?k.old.transA:k.transA,ot=0;return _||(_=k.transA),v&&($*=-1,Z=k.len),k.reversed&&($*=-1,Z-=$*(k.sector||k.len)),y?(ot=(u=u*$+Z-j)/_+P,N&&(ot=k.lin2val(ot))):(N&&(u=k.val2lin(u)),ot=$*(u-P)*_+Z+$*j+(t(M)?_*M:0),k.isRadial||(ot=m(ot))),ot}toPixels(u,y){return this.translate(u,!1,!this.horiz,void 0,!0)+(y?0:this.pos)}toValue(u,y){return this.translate(u-(y?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(u){let y=this,v=y.chart,G=y.left,l=y.top,M=u.old,k=u.value,P=u.lineWidth,j=M&&v.oldChartHeight||v.chartHeight,N=M&&v.oldChartWidth||v.chartWidth,$=y.transB,Z=u.translatedValue,_=u.force,ot,ht,X,F,q;function K(tt,rt,lt){return _!=="pass"&&(ttlt)&&(_?tt=w(tt,rt,lt):q=!0),tt}let et={value:k,lineWidth:P,old:M,force:_,acrossPanes:u.acrossPanes,translatedValue:Z};return a(this,"getPlotLinePath",et,function(tt){ot=X=(Z=w(Z=d(Z,y.translate(k,void 0,void 0,M)),-1e5,1e5))+$,ht=F=j-Z-$,t(Z)?y.horiz?(ht=l,F=j-y.bottom+(v.scrollablePixelsY||0),ot=X=K(ot,G,G+y.width)):(ot=G,X=N-y.right+(v.scrollablePixelsX||0),ht=F=K(ht,l,l+y.height)):(q=!0,_=!1),tt.path=q&&!_?void 0:v.renderer.crispLine([["M",ot,ht],["L",X,F]],P||1)}),et.path}getLinearTickPositions(u,y,v){let G,l,M,k=m(Math.floor(y/u)*u),P=m(Math.ceil(v/u)*u),j=[];if(m(k+u)===k&&(M=20),this.single)return[y];for(G=k;G<=P&&(j.push(G),(G=m(G+u,M))!==l);)l=G;return j}getMinorTickInterval(){let{minorTicks:u,minorTickInterval:y}=this.options;return u===!0?d(y,"auto"):u!==!1?y:void 0}getMinorTickPositions(){let u=this.options,y=this.tickPositions,v=this.minorTickInterval,G=this.pointRangePadding||0,l=(this.min||0)-G,M=(this.max||0)+G,k=M-l,P=[],j;if(k&&k/v(N.xIncrement?N.xData?.slice(0,2):N.xData)||[]))||0),this.dataMax-this.dataMin)),t(v)&&t(G)&&t(l)&&v-G=l,M=(l-v+G)/2,P=[G-M,d(u.min,G-M)],k&&(P[2]=y?y.log2lin(this.dataMin):this.dataMin),j=[(G=p(P))+l,d(u.max,G+l)],k&&(j[2]=y?y.log2lin(this.dataMax):this.dataMax),(v=C(j))-GG-l),u=x([v]))}return u&&y?Math.min(u,y):u||y}nameToX(u){let y=s(this.options.categories),v=y?this.categories:this.names,G=u.options.x,l;return u.series.requireSorting=!1,h(G)||(G=this.options.uniqueNames&&v?y?v.indexOf(u.name):d(v.keys[u.name],-1):u.series.autoIncrement()),G===-1?!y&&v&&(l=v.length):l=G,l!==void 0?(this.names[l]=u.name,this.names.keys[u.name]=l):u.x&&(l=u.x),l}updateNames(){let u=this,y=this.names;y.length>0&&(Object.keys(y.keys).forEach(function(v){delete y.keys[v]}),y.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(v=>{v.xIncrement=null,(!v.points||v.isDirtyData)&&(u.max=Math.max(u.max,v.xData.length-1),v.processData(),v.generatePoints()),v.data.forEach(function(G,l){let M;G?.options&&G.name!==void 0&&(M=u.nameToX(G))!==void 0&&M!==G.x&&(G.x=M,v.xData[l]=M)})}))}setAxisTranslation(){let u=this,y=u.max-u.min,v=u.linkedParent,G=!!u.categories,l=u.isXAxis,M=u.axisPointRange||0,k,P=0,j=0,N,$=u.transA;(l||G||M)&&(k=u.getClosest(),v?(P=v.minPointOffset,j=v.pointRangePadding):u.series.forEach(function(Z){let _=G?1:l?d(Z.options.pointRange,k,0):u.axisPointRange||0,ot=Z.options.pointPlacement;if(M=Math.max(M,_),!u.single||G){let ht=Z.is("xrange")?!l:l;P=Math.max(P,ht&&e(ot)?0:_/2),j=Math.max(j,ht&&ot==="on"?0:_)}}),N=u.ordinal&&u.ordinal.slope&&k?u.ordinal.slope/k:1,u.minPointOffset=P*=N,u.pointRangePadding=j*=N,u.pointRange=Math.min(M,u.single&&G?1:y),l&&k&&(u.closestPointRange=k)),u.translationSlope=u.transA=$=u.staticScale||u.len/(y+j||1),u.transB=u.horiz?u.left:u.bottom,u.minPixelPadding=$*P,a(this,"afterSetAxisTranslation")}minFromRange(){let{max:u,min:y}=this;return t(u)&&t(y)&&u-y||void 0}setTickInterval(u){let{categories:y,chart:v,dataMax:G,dataMin:l,dateTime:M,isXAxis:k,logarithmic:P,options:j,softThreshold:N}=this,$=t(this.threshold)?this.threshold:void 0,Z=this.minRange||0,{ceiling:_,floor:ot,linkedTo:ht,softMax:X,softMin:F}=j,q=t(ht)&&v[this.coll]?.[ht],K=j.tickPixelInterval,et=j.maxPadding,tt=j.minPadding,rt=0,lt,dt=t(j.tickInterval)&&j.tickInterval>=0?j.tickInterval:void 0,pt,ut,ct,mt;if(M||y||q||this.getTickAmount(),ct=d(this.userMin,j.min),mt=d(this.userMax,j.max),q?(this.linkedParent=q,lt=q.getExtremes(),this.min=d(lt.min,lt.dataMin),this.max=d(lt.max,lt.dataMax),j.type!==q.options.type&&D(11,!0,v)):(N&&h($)&&t(G)&&t(l)&&(l>=$?(pt=$,tt=0):G<=$&&(ut=$,et=0)),this.min=d(ct,pt,l),this.max=d(mt,ut,G)),t(this.max)&&t(this.min)&&(P&&(this.positiveValuesOnly&&!u&&0>=Math.min(this.min,d(l,this.min))&&D(10,!0,v),this.min=m(P.log2lin(this.min),16),this.max=m(P.log2lin(this.max),16)),this.range&&t(l)&&(this.userMin=this.min=ct=Math.max(l,this.minFromRange()||0),this.userMax=mt=this.max,this.range=void 0)),a(this,"foundExtremes"),this.adjustForMinRange(),t(this.min)&&t(this.max)){if(!t(this.userMin)&&t(F)&&Fthis.max&&(this.max=mt=X),y||this.axisPointRange||this.stacking?.usePercentage||q||!(rt=this.max-this.min)||(!h(ct)&&tt&&(this.min-=rt*tt),h(mt)||!et||(this.max+=rt*et)),!t(this.userMin)&&t(ot)&&(this.min=Math.max(this.min,ot)),!t(this.userMax)&&t(_)&&(this.max=Math.min(this.max,_)),N&&t(l)&&t(G)){let xt=$||0;!h(ct)&&this.min=xt?this.min=j.minRange?Math.min(xt,this.max-Z):xt:!h(mt)&&this.max>xt&&G<=xt&&(this.max=j.minRange?Math.max(xt,this.min+Z):xt)}!v.polar&&this.min>this.max&&(h(j.min)?this.max=this.min:h(j.max)&&(this.min=this.max)),rt=this.max-this.min}if(this.min!==this.max&&t(this.min)&&t(this.max)?q&&!dt&&K===q.options.tickPixelInterval?this.tickInterval=dt=q.tickInterval:this.tickInterval=d(dt,this.tickAmount?rt/Math.max(this.tickAmount-1,1):void 0,y?1:rt*K/Math.max(this.len,K)):this.tickInterval=1,k&&!u){let xt=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(ft){ft.forceCrop=ft.forceCropping?.(),ft.processData(xt)}),a(this,"postProcessData",{hasExtremesChanged:xt})}this.setAxisTranslation(),a(this,"initialAxisTranslation"),this.pointRange&&!dt&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let yt=d(j.minTickInterval,M&&!this.series.some(xt=>xt.noSharedTooltip)?this.closestPointRange:0);!dt&&this.tickIntervalMath.max(2*this.len,200))P=[this.min,this.max],D(19,!1,this.chart);else if(this.dateTime)P=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,u.units),this.min,this.max,u.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)P=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let N=this.tickInterval,$=N;for(;$<=2*N&&(P=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&P.length>this.tickAmount);)this.tickInterval=T(this,$*=1.1)}P.length>this.len&&(P=[P[0],P[P.length-1]])[0]===P[1]&&(P.length=1),v&&(this.tickPositions=P,(j=v.apply(this,[this.min,this.max]))&&(P=j))}this.tickPositions=P,this.paddedTicks=P.slice(0),this.trimTicks(P,M,k),!this.isLinked&&t(this.min)&&t(this.max)&&(this.single&&P.length<2&&!this.categories&&!this.series.some(N=>N.is("heatmap")&&N.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),y||j||this.adjustTickAmount()),a(this,"afterSetTickPositions")}trimTicks(u,y,v){let G=u[0],l=u[u.length-1],M=!this.isOrdinal&&this.minPointOffset||0;if(a(this,"trimTicks"),!this.isLinked){if(y&&G!==-1/0)this.min=G;else for(;this.min-M>u[0];)u.shift();if(v)this.max=l;else for(;this.max+M{let{horiz:Z,options:_}=$;return[Z?_.left:_.top,_.width,_.height,_.pane].join(",")},N=j(this);v[this.coll].forEach(function($){let{series:Z}=$;Z.length&&Z.some(_=>_.visible)&&$!==y&&j($)===N&&(u=!0,G.push($))})}if(u&&k){G.forEach(N=>{let $=N.getThresholdAlignment(y);t($)&&P.push($)});let j=P.length>1?P.reduce((N,$)=>N+=$,0)/P.length:void 0;G.forEach(N=>{N.thresholdAlignment=j})}return u}getThresholdAlignment(u){if((!t(this.dataMin)||this!==u&&this.series.some(y=>y.isDirty||y.isDirtyData))&&this.getSeriesExtremes(),t(this.threshold)){let y=w((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(y=1-y),y}}getTickAmount(){let u=this.options,y=u.tickPixelInterval,v=u.tickAmount;h(u.tickInterval)||v||!(this.lenM.push(m(M[M.length-1]+_)),X=()=>M.unshift(m(M[0]-_));if(t(P)&&(ot=P<.5?Math.ceil(P*(k-1)):Math.floor(P*(k-1)),l.reversed&&(ot=k-1-ot)),u.hasData()&&t(G)&&t(v)){let F=()=>{u.transA*=(j-1)/(k-1),u.min=l.startOnTick?M[0]:Math.min(G,M[0]),u.max=l.endOnTick?M[M.length-1]:Math.max(v,M[M.length-1])};if(t(ot)&&t(u.threshold)){for(;M[ot]!==N||M.length!==k||M[0]>G||M[M.length-1]u.threshold?X():ht();if(_>8*u.tickInterval)break;_*=2}F()}else if(j0&&Z<$-1)&&M.splice(Z,1);u.finalTickAmt=void 0}}}setScale(){let{coll:u,stacking:y}=this,v=!1,G=!1;this.series.forEach(M=>{v=v||M.isDirtyData||M.isDirty,G=G||M.xAxis&&M.xAxis.isDirty||!1}),this.setAxisSize();let l=this.len!==(this.old&&this.old.len);l||v||G||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(y&&u==="yAxis"&&y.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),y&&u==="xAxis"&&y.buildStacks(),this.isDirty||(this.isDirty=l||this.min!==this.old?.min||this.max!==this.old?.max)):y&&y.cleanStacks(),v&&delete this.allExtremes,a(this,"afterSetScale")}setExtremes(u,y,v=!0,G,l){this.series.forEach(M=>{delete M.kdTree}),a(this,"setExtremes",l=g(l,{min:u,max:y}),M=>{this.userMin=M.min,this.userMax=M.max,this.eventArgs=M,v&&this.chart.redraw(G)})}setAxisSize(){let u=this.chart,y=this.options,v=y.offsets||[0,0,0,0],G=this.horiz,l=this.width=Math.round(b(d(y.width,u.plotWidth-v[3]+v[1]),u.plotWidth)),M=this.height=Math.round(b(d(y.height,u.plotHeight-v[0]+v[2]),u.plotHeight)),k=this.top=Math.round(b(d(y.top,u.plotTop+v[0]),u.plotHeight,u.plotTop)),P=this.left=Math.round(b(d(y.left,u.plotLeft+v[3]),u.plotWidth,u.plotLeft));this.bottom=u.chartHeight-M-k,this.right=u.chartWidth-l-P,this.len=Math.max(G?l:M,0),this.pos=G?P:k}getExtremes(){let u=this.logarithmic;return{min:u?m(u.lin2log(this.min)):this.min,max:u?m(u.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(u){let y=this.logarithmic,v=y?y.lin2log(this.min):this.min,G=y?y.lin2log(this.max):this.max;return u===null||u===-1/0?u=v:u===1/0?u=G:v>u?u=v:G15&&y<165?G.align="right":y>195&&y<345&&(G.align="left")}),v.align}tickSize(u){let y=this.options,v=d(y[u==="tick"?"tickWidth":"minorTickWidth"],u==="tick"&&this.isXAxis&&!this.categories?1:0),G=y[u==="tick"?"tickLength":"minorTickLength"],l;v&&G&&(y[u+"Position"]==="inside"&&(G=-G),l=[G,v]);let M={tickSize:l};return a(this,"afterTickSize",M),M.tickSize}labelMetrics(){let u=this.chart.renderer,y=this.ticks,v=y[Object.keys(y)[0]]||{};return this.chart.renderer.fontMetrics(v.label||v.movedLabel||u.box)}unsquish(){let u=this.options.labels,y=u.padding||0,v=this.horiz,G=this.tickInterval,l=this.len/(((this.categories?1:0)+this.max-this.min)/G),M=u.rotation,k=m(.8*this.labelMetrics().h),P=Math.max(this.max-this.min,0),j=function(ot){let ht=(ot+2*y)/(l||1);return(ht=ht>1?Math.ceil(ht):1)*G>P&&ot!==1/0&&l!==1/0&&P&&(ht=Math.ceil(P/G)),m(ht*G)},N=G,$,Z=Number.MAX_VALUE,_;if(v){if(!u.staggerLines&&(t(M)?_=[M]:l=-90&&X<=90)&&(ht=(ot=j(Math.abs(k/Math.sin(L*X))))+Math.abs(X/360))ht&&(ht=K.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>j&&ht>$.h?N.rotation=this.labelRotation:this.labelRotation=0;else if(P&&(_=j,!Z))for(ot="clip",F=v.length;!k&&F--;)(X=G[v[F]].label)&&(X.styles.textOverflow==="ellipsis"?X.css({textOverflow:"clip"}):X.textPxLength>P&&X.css({width:P+"px"}),X.getBBox().height>this.len/v.length-($.h-$.f)&&(X.specificTextOverflow="ellipsis"));N.rotation&&(_=ht>.5*u.chartHeight?.33*u.chartHeight:ht,Z||(ot="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(N.align=this.labelAlign),v.forEach(function(q){let K=G[q],et=K&&K.label,tt=M.width,rt={};et&&(et.attr(N),K.shortenLabel?K.shortenLabel():_&&!tt&&M.whiteSpace!=="nowrap"&&(_l.g(k).attr({zIndex:j}).addClass(`highcharts-${v.toLowerCase()}${P} `+(this.isRadial?`highcharts-radial-axis${P} `:"")+(G.className||"")).add(u);this.axisGroup||(this.gridGroup=M("grid","-grid",G.gridZIndex),this.axisGroup=M("axis","",G.zIndex),this.labelGroup=M("axis-labels","-labels",G.labels.zIndex))}getOffset(){let u=this,{chart:y,horiz:v,options:G,side:l,ticks:M,tickPositions:k,coll:P}=u,j=y.inverted&&!u.isZAxis?[1,0,3,2][l]:l,N=u.hasData(),$=G.title,Z=G.labels,_=t(G.crossing),ot=y.axisOffset,ht=y.clipOffset,X=[-1,1,1,-1][l],F,q=0,K,et=0,tt=0,rt,lt;if(u.showAxis=F=N||G.showEmpty,u.staggerLines=u.horiz&&Z.staggerLines||void 0,u.createGroups(),N||u.isLinked?(k.forEach(function(dt){u.generateTick(dt)}),u.renderUnsquish(),u.reserveSpaceDefault=l===0||l===2||{1:"left",3:"right"}[l]===u.labelAlign,d(Z.reserveSpace,!_&&null,u.labelAlign==="center"||null,u.reserveSpaceDefault)&&k.forEach(function(dt){tt=Math.max(M[dt].getLabelSize(),tt)}),u.staggerLines&&(tt*=u.staggerLines),u.labelOffset=tt*(u.opposite?-1:1)):n(M,function(dt,pt){dt.destroy(),delete M[pt]}),$?.text&&$.enabled!==!1&&(u.addTitle(F),F&&!_&&$.reserveSpace!==!1&&(u.titleOffset=q=u.axisTitle.getBBox()[v?"height":"width"],et=h(K=$.offset)?0:d($.margin,v?5:10))),u.renderLine(),u.offset=X*d(G.offset,ot[l]?ot[l]+(G.margin||0):0),u.tickRotCorr=u.tickRotCorr||{x:0,y:0},lt=l===0?-u.labelMetrics().h:l===2?u.tickRotCorr.y:0,rt=Math.abs(tt)+et,tt&&(rt-=lt,rt+=X*(v?d(Z.y,u.tickRotCorr.y+X*Z.distance):d(Z.x,X*Z.distance))),u.axisTitleMargin=d(K,rt),u.getMaxLabelDimensions&&(u.maxLabelDimensions=u.getMaxLabelDimensions(M,k)),P!=="colorAxis"&&ht){let dt=this.tickSize("tick");ot[l]=Math.max(ot[l],(u.axisTitleMargin||0)+q+X*u.offset,rt,k&&k.length&&dt?dt[0]+X*u.offset:0);let pt=!u.axisLine||G.offset?0:u.axisLine.strokeWidth()/2;ht[j]=Math.max(ht[j],pt)}a(this,"afterGetOffset")}getLinePath(u){let y=this.chart,v=this.opposite,G=this.offset,l=this.horiz,M=this.left+(v?this.width:0)+G,k=y.chartHeight-this.bottom-(v?this.height:0)+G;return v&&(u*=-1),y.renderer.crispLine([["M",l?this.left:M,l?k:this.top],["L",l?y.chartWidth-this.right:M,l?k:y.chartHeight-this.bottom]],u)}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(u){let y=this.horiz,v=this.left,G=this.top,l=this.len,M=this.options.title,k=y?v:G,P=this.opposite,j=this.offset,N=M.x,$=M.y,Z=this.chart.renderer.fontMetrics(u),_=u?Math.max(u.getBBox(!1,0).height-Z.h-1,0):0,ot={low:k+(y?0:l),middle:k+l/2,high:k+(y?l:0)}[M.align],ht=(y?G+this.height:v)+(y?1:-1)*(P?-1:1)*(this.axisTitleMargin||0)+[-_,_,Z.f,-_][this.side],X={x:y?ot+N:ht+(P?this.width:0)+j+N,y:y?ht+$-(P?this.height:0)+j:ot+$};return a(this,"afterGetTitlePosition",{titlePosition:X}),X}renderMinorTick(u,y){let v=this.minorTicks;v[u]||(v[u]=new J(this,u,"minor")),y&&v[u].isNew&&v[u].render(null,!0),v[u].render(null,!1,1)}renderTick(u,y,v){let G=this.isLinked,l=this.ticks;(!G||u>=this.min&&u<=this.max||this.grid&&this.grid.isColumn)&&(l[u]||(l[u]=new J(this,u)),v&&l[u].isNew&&l[u].render(y,!0,-1),l[u].render(y))}render(){let u,y,v=this,G=v.chart,l=v.logarithmic,M=G.renderer,k=v.options,P=v.isLinked,j=v.tickPositions,N=v.axisTitle,$=v.ticks,Z=v.minorTicks,_=v.alternateBands,ot=k.stackLabels,ht=k.alternateGridColor,X=k.crossing,F=v.tickmarkOffset,q=v.axisLine,K=v.showAxis,et=W(M.globalAnimation);if(v.labelEdge.length=0,v.overlap=!1,[$,Z,_].forEach(function(tt){n(tt,function(rt){rt.isActive=!1})}),t(X)){let tt=this.isXAxis?G.yAxis[0]:G.xAxis[0],rt=[1,-1,-1,1][this.side];if(tt){let lt=tt.toPixels(X,!0);v.horiz&&(lt=tt.len-lt),v.offset=rt*lt}}if(v.hasData()||P){let tt=v.chart.hasRendered&&v.old&&t(v.old.min);v.minorTickInterval&&!v.categories&&v.getMinorTickPositions().forEach(function(rt){v.renderMinorTick(rt,tt)}),j.length&&(j.forEach(function(rt,lt){v.renderTick(rt,lt,tt)}),F&&(v.min===0||v.single)&&($[-1]||($[-1]=new J(v,-1,null,!0)),$[-1].render(-1))),ht&&j.forEach(function(rt,lt){y=j[lt+1]!==void 0?j[lt+1]+F:v.max-F,lt%2==0&&rt=.5)S=Math.round(S),m=p.getLinearTickPositions(S,O,E);else if(S>=.08){let h,f,I,D,g,a,x,r=Math.floor(O);for(h=S>.3?[1,2,4]:S>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],f=r;fO&&(!L||a<=E)&&a!==void 0&&m.push(a),a>E&&(x=!0),a=g}else{let h=this.lin2log(O),f=this.lin2log(E),I=L?p.getMinorTickInterval():w.tickInterval,D=w.tickPixelInterval/(L?5:1),g=L?C/p.tickPositions.length:C;S=at(S=st(I==="auto"?null:I,this.minorAutoInterval,(f-h)*D/(g||1))),m=p.getLinearTickPositions(S,h,f).map(this.log2lin),L||(this.minorAutoInterval=S/5)}return L||(p.tickInterval=S),m}lin2log(S){return Math.pow(10,S)}log2lin(S){return Math.log(S)/Math.LN10}}it.Additions=W}(Q||(Q={})),Q}),gt(z,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[z["Core/Utilities.js"]],function(V){var Q;let{erase:nt,extend:at,isNumber:st}=V;return function(it){let J;function Y(p){return this.addPlotBandOrLine(p,"plotBands")}function W(p,C){let w=this.userOptions,m=new J(this,p);if(this.visible&&(m=m.render()),m){if(this._addedPlotLB||(this._addedPlotLB=!0,(w.plotLines||[]).concat(w.plotBands||[]).forEach(h=>{this.addPlotBandOrLine(h)})),C){let h=w[C]||[];h.push(p),w[C]=h}this.plotLinesAndBands.push(m)}return m}function U(p){return this.addPlotBandOrLine(p,"plotLines")}function S(p,C,w){w=w||this.options;let m=this.getPlotLinePath({value:C,force:!0,acrossPanes:w.acrossPanes}),h=[],f=this.horiz,I=!st(this.min)||!st(this.max)||pthis.max&&C>this.max,D=this.getPlotLinePath({value:p,force:!0,acrossPanes:w.acrossPanes}),g,a=1,x;if(D&&m)for(I&&(x=D.toString()===m.toString(),a=0),g=0;g{e?.on(T,B=>{h[T].apply(this,[B])})}),this.eventsAdded=!0),(b||!e.d)&&i?.length?e.attr({d:i}):e&&(i?(e.show(),e.animate({d:i})):e.d&&(e.hide(),t&&(this.label=t=t.destroy()))),s&&(st(s.text)||st(s.formatter))&&i?.length&&L.width>0&&L.height>0&&!i.isFlat?(s=W({align:C&&n?"center":void 0,x:C?!n&&4:10,verticalAlign:!C&&n?"middle":void 0,y:C?n?16:10:n?6:-4,rotation:C&&!n?90:0},s),this.renderLabel(s,i,n,f)):t&&t.hide(),this}renderLabel(L,p,C,w){let m=this.axis,h=m.chart.renderer,f=this.label;f||(this.label=f=h.text(this.getLabelText(L),0,0,L.useHTML).attr({align:L.textAlign||L.align,rotation:L.rotation,class:"highcharts-plot-"+(C?"band":"line")+"-label "+(L.className||""),zIndex:w}),m.chart.styledMode||f.css(W({fontSize:"0.8em",textOverflow:"ellipsis"},L.style)),f.add());let I=p.xBounds||[p[0][1],p[1][1],C?p[2][1]:p[0][1]],D=p.yBounds||[p[0][2],p[1][2],C?p[2][2]:p[0][2]],g=at(I),a=at(D);if(f.align(L,!1,{x:g,y:a,width:nt(I)-g,height:nt(D)-a}),!f.alignValue||f.alignValue==="left"){let x=L.clip?m.width:m.chart.chartWidth;f.css({width:(f.rotation===90?m.height-(f.alignAttr.y-m.top):x-(f.alignAttr.x-m.left))+"px"})}f.show(!0)}getLabelText(L){return st(L.formatter)?L.formatter.call(this):L.text}destroy(){J(this.axis.plotLinesAndBands,this),delete this.axis,it(this)}}return O}),gt(z,"Core/Tooltip.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Templating.js"],z["Core/Globals.js"],z["Core/Renderer/RendererUtilities.js"],z["Core/Renderer/RendererRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it){var J;let{animObject:Y}=V,{format:W}=Q,{composed:U,doc:S,isSafari:O}=nt,{distribute:E}=at,{addEvent:L,clamp:p,css:C,discardElement:w,extend:m,fireEvent:h,isArray:f,isNumber:I,isString:D,merge:g,pick:a,pushUnique:x,splat:r,syncTimeout:s}=it;class t{constructor(i,o,n){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=i,this.init(i,o),this.pointer=n}bodyFormatter(i){return i.map(function(o){let n=o.series.tooltipOptions;return(n[(o.point.formatPrefix||"point")+"Formatter"]||o.point.tooltipFormatter).call(o.point,n[(o.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(i){this.chart.series.forEach(function(o){let n=o&&o.tt;n&&(!n.isActive||i?o.tt=n.destroy():n.isActive=!1)})}defaultFormatter(i){let o,n=this.points||r(this);return(o=(o=[i.tooltipFooterHeaderFormatter(n[0])]).concat(i.bodyFormatter(n))).push(i.tooltipFooterHeaderFormatter(n[0],!0)),o}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(),w(this.container)),it.clearTimeout(this.hideTimer)}getAnchor(i,o){let n,{chart:d,pointer:b}=this,R=d.inverted,c=d.plotTop,A=d.plotLeft;if((i=r(i))[0].series&&i[0].series.yAxis&&!i[0].series.yAxis.options.reversedStacks&&(i=i.slice().reverse()),this.followPointer&&o)o.chartX===void 0&&(o=b.normalize(o)),n=[o.chartX-A,o.chartY-c];else if(i[0].tooltipPos)n=i[0].tooltipPos;else{let T=0,B=0;i.forEach(function(H){let u=H.pos(!0);u&&(T+=u[0],B+=u[1])}),T/=i.length,B/=i.length,this.shared&&i.length>1&&o&&(R?T=o.chartX:B=o.chartY),n=[T-A,B-c]}return n.map(Math.round)}getClassName(i,o,n){let d=this.options,b=i.series,R=b.options;return[d.className,"highcharts-label",n&&"highcharts-tooltip-header",o?"highcharts-tooltip-box":"highcharts-tooltip",!n&&"highcharts-color-"+a(i.colorIndex,b.colorIndex),R&&R.className].filter(D).join(" ")}getLabel(){let i=this,o=this.chart.styledMode,n=this.options,d=this.split&&this.allowShared,b=this.container,R=this.chart.renderer;if(this.label){let c=!this.label.hasClass("highcharts-label");(!d&&c||d&&!c)&&this.destroy()}if(!this.label){if(this.outside){let c=this.chart.options.chart.style,A=st.getRendererType();this.container=b=nt.doc.createElement("div"),b.className="highcharts-tooltip-container",C(b,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),this.renderer=R=new A(b,0,0,c,void 0,void 0,R.styledMode)}if(d?this.label=R.g("tooltip"):(this.label=R.label("",0,0,n.shape,void 0,void 0,n.useHTML,void 0,"tooltip").attr({padding:n.padding,r:n.borderRadius}),o||this.label.attr({fill:n.backgroundColor,"stroke-width":n.borderWidth||0}).css(n.style).css({pointerEvents:n.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let c=this.label;[c.xSetter,c.ySetter].forEach((A,T)=>{c[T?"ySetter":"xSetter"]=B=>{A.call(c,i.distance),c[T?"y":"x"]=B,b&&(b.style[T?"top":"left"]=`${B}px`)}})}this.label.attr({zIndex:8}).shadow(n.shadow).add()}return b&&!b.parentElement&&nt.doc.body.appendChild(b),this.label}getPlayingField(){let{body:i,documentElement:o}=S,{chart:n,distance:d,outside:b}=this;return{width:b?Math.max(i.scrollWidth,o.scrollWidth,i.offsetWidth,o.offsetWidth,o.clientWidth)-2*d:n.chartWidth,height:b?Math.max(i.scrollHeight,o.scrollHeight,i.offsetHeight,o.offsetHeight,o.clientHeight):n.chartHeight}}getPosition(i,o,n){let{distance:d,chart:b,outside:R,pointer:c}=this,{inverted:A,plotLeft:T,plotTop:B,polar:H}=b,{plotX:u=0,plotY:y=0}=n,v={},G=A&&n.h||0,{height:l,width:M}=this.getPlayingField(),k=c.getChartPosition(),P=et=>et*k.scaleX,j=et=>et*k.scaleY,N=et=>{let tt=et==="x";return[et,tt?M:l,tt?i:o].concat(R?[tt?P(i):j(o),tt?k.left-d+P(u+T):k.top-d+j(y+B),0,tt?M:l]:[tt?i:o,tt?u+T:y+B,tt?T:B,tt?T+b.plotWidth:B+b.plotHeight])},$=N("y"),Z=N("x"),_,ot=!!n.negative;!H&&b.hoverSeries?.yAxis?.reversed&&(ot=!ot);let ht=!this.followPointer&&a(n.ttBelow,!H&&!A===ot),X=function(et,tt,rt,lt,dt,pt,ut){let ct=R?et==="y"?j(d):P(d):d,mt=(rt-lt)/2,yt=lttt?bt:bt+G)}},F=function(et,tt,rt,lt,dt){if(dttt-d)return!1;dttt-lt/2?v[et]=tt-lt-2:v[et]=dt-rt/2},q=function(et){[$,Z]=[Z,$],_=et},K=()=>{X.apply(0,$)!==!1?F.apply(0,Z)!==!1||_||(q(!0),K()):_?v.x=v.y=0:(q(!0),K())};return(A&&!H||this.len>1)&&q(),K(),v}hide(i){let o=this;it.clearTimeout(this.hideTimer),i=a(i,this.options.hideDelay),this.isHidden||(this.hideTimer=s(function(){let n=o.getLabel();o.getLabel().animate({opacity:0},{duration:i&&150,complete:()=>{n.hide(),o.container&&o.container.remove()}}),o.isHidden=!0},i))}init(i,o){this.chart=i,this.options=o,this.crosshairs=[],this.isHidden=!0,this.split=o.split&&!i.inverted&&!i.polar,this.shared=o.shared||this.split,this.outside=a(o.outside,!!(i.scrollablePixelsX||i.scrollablePixelsY))}shouldStickOnContact(i){return!!(!this.followPointer&&this.options.stickOnContact&&(!i||this.pointer.inClass(i.target,"highcharts-tooltip")))}move(i,o,n,d){let b=this,R=Y(!b.isHidden&&b.options.animation),c=b.followPointer||(b.len||0)>1,A={x:i,y:o};c||(A.anchorX=n,A.anchorY=d),R.step=()=>b.drawTracker(),b.getLabel().animate(A,R)}refresh(i,o){let{chart:n,options:d,pointer:b,shared:R}=this,c=r(i),A=c[0],T=[],B=d.format,H=d.formatter||this.defaultFormatter,u=n.styledMode,y={};if(!d.enabled||!A.series)return;it.clearTimeout(this.hideTimer),this.allowShared=!(!f(i)&&i.series&&i.series.noSharedTooltip),this.followPointer=!this.split&&A.series.tooltipOptions.followPointer;let v=this.getAnchor(i,o),G=v[0],l=v[1];R&&this.allowShared?(b.applyInactiveState(c),c.forEach(function(P){P.setState("hover"),T.push(P.getLabelConfig())}),(y=A.getLabelConfig()).points=T):y=A.getLabelConfig(),this.len=T.length;let M=D(B)?W(B,y,n):H.call(y,this),k=A.series;if(this.distance=a(k.tooltipOptions.distance,16),M===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(M,c);else{let P=G,j=l;if(o&&b.isDirectTouch&&(P=o.chartX-n.plotLeft,j=o.chartY-n.plotTop),n.polar||k.options.clip===!1||c.some(N=>b.isDirectTouch||N.series.shouldShowTooltip(P,j))){let N=this.getLabel();(!d.style.width||u)&&N.css({width:(this.outside?this.getPlayingField():n.spacingBox).width+"px"}),N.attr({text:M&&M.join?M.join(""):M}),N.addClass(this.getClassName(A),!0),u||N.attr({stroke:d.borderColor||A.color||k.color||"#666666"}),this.updatePosition({plotX:G,plotY:l,negative:A.negative,ttBelow:A.ttBelow,h:v[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}h(this,"refresh")}renderSplit(i,o){let n=this,{chart:d,chart:{chartWidth:b,chartHeight:R,plotHeight:c,plotLeft:A,plotTop:T,scrollablePixelsY:B=0,scrollablePixelsX:H,styledMode:u},distance:y,options:v,options:{positioner:G},pointer:l}=n,{scrollLeft:M=0,scrollTop:k=0}=d.scrollablePlotArea?.scrollingContainer||{},P=n.outside&&typeof H!="number"?S.documentElement.getBoundingClientRect():{left:M,right:M+b,top:k,bottom:k+R},j=n.getLabel(),N=this.renderer||d.renderer,$=!!(d.xAxis[0]&&d.xAxis[0].opposite),{left:Z,top:_}=l.getChartPosition(),ot=T+k,ht=0,X=c-B;function F(lt,dt,pt,ut,ct=!0){let mt,yt;return pt?(mt=$?0:X,yt=p(lt-ut/2,P.left,P.right-ut-(n.outside?Z:0))):(mt=dt-ot,yt=p(yt=ct?lt-ut-y:lt+y,ct?yt:P.left,P.right)),{x:yt,y:mt}}D(i)&&(i=[!1,i]);let q=i.slice(0,o.length+1).reduce(function(lt,dt,pt){if(dt!==!1&&dt!==""){let ut=o[pt-1]||{isHeader:!0,plotX:o[0].plotX,plotY:c,series:{}},ct=ut.isHeader,mt=ct?n:ut.series,yt=mt.tt=function(St,kt,Tt){let Mt=St,{isHeader:Ct,series:Et}=kt;if(!Mt){let Ot={padding:v.padding,r:v.borderRadius};u||(Ot.fill=v.backgroundColor,Ot["stroke-width"]=v.borderWidth??1),Mt=N.label("",0,0,v[Ct?"headerShape":"shape"],void 0,void 0,v.useHTML).addClass(n.getClassName(kt,!0,Ct)).attr(Ot).add(j)}return Mt.isActive=!0,Mt.attr({text:Tt}),u||Mt.css(v.style).attr({stroke:v.borderColor||kt.color||Et.color||"#333333"}),Mt}(mt.tt,ut,dt.toString()),xt=yt.getBBox(),ft=xt.width+yt.strokeWidth();ct&&(ht=xt.height,X+=ht,$&&(ot-=ht));let{anchorX:bt,anchorY:vt}=function(St){let kt,Tt,{isHeader:Mt,plotX:Ct=0,plotY:Et=0,series:Ot}=St;if(Mt)kt=Math.max(A+Ct,A),Tt=T+c/2;else{let{xAxis:At,yAxis:wt}=Ot;kt=At.pos+p(Ct,-y,At.len+y),Ot.shouldShowTooltip(0,wt.pos-T+Et,{ignoreX:!0})&&(Tt=wt.pos+Et)}return{anchorX:kt=p(kt,P.left-y,P.right+y),anchorY:Tt}}(ut);if(typeof vt=="number"){let St=xt.height+1,kt=G?G.call(n,ft,St,ut):F(bt,vt,ct,ft);lt.push({align:G?0:void 0,anchorX:bt,anchorY:vt,boxWidth:ft,point:ut,rank:a(kt.rank,ct?1:0),size:St,target:kt.y,tt:yt,x:kt.x})}else yt.isActive=!1}return lt},[]);!G&&q.some(lt=>{let{outside:dt}=n,pt=(dt?Z:0)+lt.anchorX;return ptpt})&&(q=q.map(lt=>{let{x:dt,y:pt}=F(lt.anchorX,lt.anchorY,lt.point.isHeader,lt.boxWidth,!1);return m(lt,{target:pt,x:dt})})),n.cleanSplit(),E(q,X);let K={left:Z,right:Z};q.forEach(function(lt){let{x:dt,boxWidth:pt,isHeader:ut}=lt;!ut&&(n.outside&&Z+dtK.right&&(K.right=Z+dt))}),q.forEach(function(lt){let{x:dt,anchorX:pt,anchorY:ut,pos:ct,point:{isHeader:mt}}=lt,yt={visibility:ct===void 0?"hidden":"inherit",x:dt,y:(ct||0)+ot,anchorX:pt,anchorY:ut};if(n.outside&&dt0&&(mt||(yt.x=dt+xt,yt.anchorX=pt+xt),mt&&(yt.x=(K.right-K.left)/2,yt.anchorX=pt+xt))}lt.tt.attr(yt)});let{container:et,outside:tt,renderer:rt}=n;if(tt&&et&&rt){let{width:lt,height:dt,x:pt,y:ut}=j.getBBox();rt.setSize(lt+pt,dt+ut,!1),et.style.left=K.left+"px",et.style.top=_+"px"}O&&j.attr({opacity:j.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let i=this.chart,o=this.label,n=this.shared?i.hoverPoints:i.hoverPoint;if(!o||!n)return;let d={x:0,y:0,width:0,height:0},b=this.getAnchor(n),R=o.getBBox();b[0]+=i.plotLeft-(o.translateX||0),b[1]+=i.plotTop-(o.translateY||0),d.x=Math.min(0,b[0]),d.y=Math.min(0,b[1]),d.width=b[0]<0?Math.max(Math.abs(b[0]),R.width-b[0]):Math.max(Math.abs(b[0]),R.width),d.height=b[1]<0?Math.max(Math.abs(b[1]),R.height-Math.abs(b[1])):Math.max(Math.abs(b[1]),R.height),this.tracker?this.tracker.attr(d):(this.tracker=o.renderer.rect(d).addClass("highcharts-tracker").add(o),i.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(i){return i.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(i,o){let n=i.series,d=n.tooltipOptions,b=n.xAxis,R=b&&b.dateTime,c={isFooter:o,labelConfig:i},A=d.xDateFormat,T=d[o?"footerFormat":"headerFormat"];return h(this,"headerFormatter",c,function(B){R&&!A&&I(i.key)&&(A=R.getXDateFormat(i.key,d.dateTimeLabelFormats)),R&&A&&(i.point&&i.point.tooltipDateKeys||["key"]).forEach(function(H){T=T.replace("{point."+H+"}","{point."+H+":"+A+"}")}),n.chart.styledMode&&(T=this.styledModeFormat(T)),B.text=W(T,{point:i,series:n},this.chart)}),c.text}update(i){this.destroy(),this.init(this.chart,g(!0,this.options,i))}updatePosition(i){let{chart:o,container:n,distance:d,options:b,pointer:R,renderer:c}=this,{height:A=0,width:T=0}=this.getLabel(),{left:B,top:H,scaleX:u,scaleY:y}=R.getChartPosition(),v=(b.positioner||this.getPosition).call(this,T,A,i),G=(i.plotX||0)+o.plotLeft,l=(i.plotY||0)+o.plotTop,M;c&&n&&(b.positioner&&(v.x+=B-d,v.y+=H-d),M=(b.borderWidth||0)+2*d+2,c.setSize(T+M,A+M,!1),(u!==1||y!==1)&&(C(n,{transform:`scale(${u}, ${y})`}),G*=u,l*=y),G+=B-v.x,l+=H-v.y),this.move(Math.round(v.x),Math.round(v.y||0),G,l)}}return(J=t||(t={})).compose=function(e){x(U,"Core.Tooltip")&&L(e,"afterInit",function(){let i=this.chart;i.options.tooltip&&(i.tooltip=new J(i,i.options.tooltip,this))})},t}),gt(z,"Core/Series/Point.js",[z["Core/Renderer/HTML/AST.js"],z["Core/Animation/AnimationUtilities.js"],z["Core/Defaults.js"],z["Core/Templating.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){let{animObject:it}=Q,{defaultOptions:J}=nt,{format:Y}=at,{addEvent:W,crisp:U,erase:S,extend:O,fireEvent:E,getNestedProperty:L,isArray:p,isFunction:C,isNumber:w,isObject:m,merge:h,pick:f,syncTimeout:I,removeEvent:D,uniqueKey:g}=st;class a{animateBeforeDestroy(){let r=this,s={x:r.startXPos,opacity:0},t=r.getGraphicalProps();t.singular.forEach(function(e){r[e]=r[e].animate(e==="dataLabel"?{x:r[e].startXPos,y:r[e].startYPos,opacity:0}:s)}),t.plural.forEach(function(e){r[e].forEach(function(i){i.element&&i.animate(O({x:r.startXPos},i.startYPos?{x:i.startXPos,y:i.startYPos}:{}))})})}applyOptions(r,s){let t=this.series,e=t.options.pointValKey||t.pointValKey;return O(this,r=a.prototype.optionsToObject.call(this,r)),this.options=this.options?O(this.options,r):r,r.group&&delete this.group,r.dataLabels&&delete this.dataLabels,e&&(this.y=a.prototype.getNestedProperty.call(this,e)),this.selected&&(this.state="select"),"name"in this&&s===void 0&&t.xAxis&&t.xAxis.hasNames&&(this.x=t.xAxis.nameToX(this)),this.x===void 0&&t?s===void 0?this.x=t.autoIncrement():this.x=s:w(r.x)&&t.options.relativeXValue&&(this.x=t.autoIncrement(r.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let r=this,s=r.series,t=s.chart,e=s.options.dataSorting,i=t.hoverPoints,o=it(r.series.chart.renderer.globalAnimation),n=()=>{for(let d in(r.graphic||r.graphics||r.dataLabel||r.dataLabels)&&(D(r),r.destroyElements()),r)delete r[d]};r.legendItem&&t.legend.destroyItem(r),i&&(r.setState(),S(i,r),i.length||(t.hoverPoints=null)),r===t.hoverPoint&&r.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),I(n,o.duration)):n(),t.pointCount--}this.destroyed=!0}destroyElements(r){let s=this,t=s.getGraphicalProps(r);t.singular.forEach(function(e){s[e]=s[e].destroy()}),t.plural.forEach(function(e){s[e].forEach(function(i){i&&i.element&&i.destroy()}),delete s[e]})}firePointEvent(r,s,t){let e=this,i=this.series.options;e.manageEvent(r),r==="click"&&i.allowPointSelect&&(t=function(o){!e.destroyed&&e.select&&e.select(null,o.ctrlKey||o.metaKey||o.shiftKey)}),E(e,r,s,t)}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(r){let s,t,e=this,i=[],o={singular:[],plural:[]};for((r=r||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","connector"),r.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper"),t=i.length;t--;)e[s=i[t]]&&o.singular.push(s);return["graphic","dataLabel"].forEach(function(n){let d=n+"s";r[n]&&e[d]&&o.plural.push(d)}),o}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(r){return r?r.indexOf("custom.")===0?L(r,this.options):this[r]:void 0}getZone(){let r=this.series,s=r.zones,t=r.zoneAxis||"y",e,i=0;for(e=s[0];this[t]>=e.value;)e=s[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),e&&e.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(r,s,t){this.formatPrefix="point",this.visible=!0,this.series=r,this.applyOptions(s,t),this.id??(this.id=g()),this.resolveColor(),r.chart.pointCount++,E(this,"afterInit")}isValid(){return(w(this.x)||this.x instanceof Date)&&w(this.y)}optionsToObject(r){let s=this.series,t=s.options.keys,e=t||s.pointArrayMap||["y"],i=e.length,o={},n,d=0,b=0;if(w(r)||r===null)o[e[0]]=r;else if(p(r))for(!t&&r.length>i&&((n=typeof r[0])=="string"?o.name=r[0]:n==="number"&&(o.x=r[0]),d++);b0?a.prototype.setNestedProperty(o,r[d],e[b]):o[e[b]]=r[d]),d++,b++;else typeof r=="object"&&(o=r,r.dataLabels&&(s.hasDataLabels=()=>!0),r.marker&&(s._hasPointMarkers=!0));return o}pos(r,s=this.plotY){if(!this.destroyed){let{plotX:t,series:e}=this,{chart:i,xAxis:o,yAxis:n}=e,d=0,b=0;if(w(t)&&w(s))return r&&(d=o?o.pos:i.plotLeft,b=n?n.pos:i.plotTop),i.inverted&&o&&n?[n.len-s+b,o.len-t+d]:[t+d,s+b]}}resolveColor(){let r=this.series,s=r.chart.options.chart,t=r.chart.styledMode,e,i,o=s.colorCount,n;delete this.nonZonedColor,r.options.colorByPoint?(t||(e=(i=r.options.colors||r.chart.options.colors)[r.colorCounter],o=i.length),n=r.colorCounter,r.colorCounter++,r.colorCounter===o&&(r.colorCounter=0)):(t||(e=r.color),n=r.colorIndex),this.colorIndex=f(this.options.colorIndex,n),this.color=f(this.options.color,e)}setNestedProperty(r,s,t){return t.split(".").reduce(function(e,i,o,n){let d=n.length-1===o;return e[i]=d?s:m(e[i],!0)?e[i]:{},e[i]},r),r}shouldDraw(){return!this.isNull}tooltipFormatter(r){let s=this.series,t=s.tooltipOptions,e=f(t.valueDecimals,""),i=t.valuePrefix||"",o=t.valueSuffix||"";return s.chart.styledMode&&(r=s.chart.tooltip.styledModeFormat(r)),(s.pointArrayMap||["y"]).forEach(function(n){n="{point."+n,(i||o)&&(r=r.replace(RegExp(n+"}","g"),i+n+"}"+o)),r=r.replace(RegExp(n+"}","g"),n+":,."+e+"f}")}),Y(r,{point:this,series:this.series},s.chart)}update(r,s,t,e){let i,o=this,n=o.series,d=o.graphic,b=n.chart,R=n.options;function c(){o.applyOptions(r);let A=d&&o.hasMockGraphic,T=o.y===null?!A:A;d&&T&&(o.graphic=d.destroy(),delete o.hasMockGraphic),m(r,!0)&&(d&&d.element&&r&&r.marker&&r.marker.symbol!==void 0&&(o.graphic=d.destroy()),r?.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy())),i=o.index,n.updateParallelArrays(o,i),R.data[i]=m(R.data[i],!0)||m(r,!0)?o.options:f(r,R.data[i]),n.isDirty=n.isDirtyData=!0,!n.fixedBox&&n.hasCartesianSeries&&(b.isDirtyBox=!0),R.legendType==="point"&&(b.isDirtyLegend=!0),s&&b.redraw(t)}s=f(s,!0),e===!1?c():o.firePointEvent("update",{options:r},c)}remove(r,s){this.series.removePoint(this.series.data.indexOf(this),r,s)}select(r,s){let t=this,e=t.series,i=e.chart;r=f(r,!t.selected),this.selectedStaging=r,t.firePointEvent(r?"select":"unselect",{accumulate:s},function(){t.selected=t.options.selected=r,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r&&"select"),s||i.getSelectedPoints().forEach(function(o){let n=o.series;o.selected&&o!==t&&(o.selected=o.options.selected=!1,n.options.data[n.data.indexOf(o)]=o.options,o.setState(i.hoverPoints&&n.options.inactiveOtherPoints?"inactive":""),o.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(r){let{inverted:s,pointer:t}=this.series.chart;t&&(r=r?t.normalize(r):t.getChartCoordinatesFromPoint(this,s),t.runPointActions(r,this))}onMouseOut(){let r=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(r.hoverPoints||[]).forEach(function(s){s.setState()}),r.hoverPoints=r.hoverPoint=null}manageEvent(r){let s=h(this.series.options.point,this.options),t=s.events?.[r];C(t)&&(!this.hcEvents?.[r]||this.hcEvents?.[r]?.map(e=>e.fn).indexOf(t)===-1)?(W(this,r,t),this.hasImportedEvents=!0):this.hasImportedEvents&&!t&&this.hcEvents?.[r]&&(D(this,r),delete this.hcEvents[r],Object.keys(this.hcEvents)||(this.hasImportedEvents=!1))}setState(r,s){let t=this.series,e=this.state,i=t.options.states[r||"normal"]||{},o=J.plotOptions[t.type].marker&&t.options.marker,n=o&&o.enabled===!1,d=o&&o.states&&o.states[r||"normal"]||{},b=d.enabled===!1,R=this.marker||{},c=t.chart,A=o&&t.markerAttribs,T=t.halo,B,H,u,y=t.stateMarkerGraphic,v;if((r=r||"")===this.state&&!s||this.selected&&r!=="select"||i.enabled===!1||r&&(b||n&&d.enabled===!1)||r&&R.states&&R.states[r]&&R.states[r].enabled===!1)return;if(this.state=r,A&&(B=t.markerAttribs(this,r)),this.graphic&&!this.hasMockGraphic){if(e&&this.graphic.removeClass("highcharts-point-"+e),r&&this.graphic.addClass("highcharts-point-"+r),!c.styledMode){H=t.pointAttribs(this,r),u=f(c.options.chart.animation,i.animation);let k=H.opacity;t.options.inactiveOtherPoints&&w(k)&&(this.dataLabels||[]).forEach(function(P){P&&!P.hasClass("highcharts-data-label-hidden")&&(P.animate({opacity:k},u),P.connector&&P.connector.animate({opacity:k},u))}),this.graphic.animate(H,u)}B&&this.graphic.animate(B,f(c.options.chart.animation,d.animation,o.animation)),y&&y.hide()}else r&&d&&(v=R.symbol||t.symbol,y&&y.currentSymbol!==v&&(y=y.destroy()),B&&(y?y[s?"animate":"attr"]({x:B.x,y:B.y}):v&&(t.stateMarkerGraphic=y=c.renderer.symbol(v,B.x,B.y,B.width,B.height).add(t.markerGroup),y.currentSymbol=v)),!c.styledMode&&y&&this.state!=="inactive"&&y.attr(t.pointAttribs(this,r))),y&&(y[r&&this.isInside?"show":"hide"](),y.element.point=this,y.addClass(this.getClassName(),!0));let G=i.halo,l=this.graphic||y,M=l&&l.visibility||"inherit";G&&G.size&&l&&M!=="hidden"&&!this.isCluster?(T||(t.halo=T=c.renderer.path().add(l.parentGroup)),T.show()[s?"animate":"attr"]({d:this.haloPath(G.size)}),T.attr({class:"highcharts-halo highcharts-color-"+f(this.colorIndex,t.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),T.point=this,c.styledMode||T.attr(O({fill:this.color||t.color,"fill-opacity":G.opacity},V.filterUserAttributes(G.attributes||{})))):T?.point?.haloPath&&!T.point.destroyed&&T.animate({d:T.point.haloPath(0)},null,T.hide),E(this,"afterSetState",{state:r})}haloPath(r){let s=this.pos();return s?this.series.chart.renderer.symbols.circle(U(s[0],1)-r,s[1]-r,2*r,2*r):[]}}return a}),gt(z,"Core/Pointer.js",[z["Core/Color/Color.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt){var at;let{parse:st}=V,{charts:it,composed:J,isTouchDevice:Y}=Q,{addEvent:W,attr:U,css:S,extend:O,find:E,fireEvent:L,isNumber:p,isObject:C,objectEach:w,offset:m,pick:h,pushUnique:f,splat:I}=nt;class D{applyInactiveState(a){let x=[],r;(a||[]).forEach(function(s){r=s.series,x.push(r),r.linkedParent&&x.push(r.linkedParent),r.linkedSeries&&(x=x.concat(r.linkedSeries)),r.navigatorSeries&&x.push(r.navigatorSeries)}),this.chart.series.forEach(function(s){x.indexOf(s)===-1?s.setState("inactive",!0):s.options.inactiveOtherPoints&&s.setAllPointsToState("inactive")})}destroy(){let a=this;this.eventsToUnbind.forEach(x=>x()),this.eventsToUnbind=[],!Q.chartCount&&(D.unbindDocumentMouseUp&&(D.unbindDocumentMouseUp=D.unbindDocumentMouseUp()),D.unbindDocumentTouchEnd&&(D.unbindDocumentTouchEnd=D.unbindDocumentTouchEnd())),clearInterval(a.tooltipTimeout),w(a,function(x,r){a[r]=void 0})}getSelectionMarkerAttrs(a,x){let r={args:{chartX:a,chartY:x},attrs:{},shapeType:"rect"};return L(this,"getSelectionMarkerAttrs",r,s=>{let t,{chart:e,zoomHor:i,zoomVert:o}=this,{mouseDownX:n=0,mouseDownY:d=0}=e,b=s.attrs;b.x=e.plotLeft,b.y=e.plotTop,b.width=i?1:e.plotWidth,b.height=o?1:e.plotHeight,i&&(t=a-n,b.width=Math.max(1,Math.abs(t)),b.x=(t>0?0:t)+n),o&&(t=x-d,b.height=Math.max(1,Math.abs(t)),b.y=(t>0?0:t)+d)}),r}drag(a){let{chart:x}=this,{mouseDownX:r=0,mouseDownY:s=0}=x,{panning:t,panKey:e,selectionMarkerFill:i}=x.options.chart,o=x.plotLeft,n=x.plotTop,d=x.plotWidth,b=x.plotHeight,R=C(t)?t.enabled:t,c=e&&a[`${e}Key`],A=a.chartX,T=a.chartY,B,H=this.selectionMarker;if((!H||!H.touch)&&(Ao+d&&(A=o+d),Tn+b&&(T=n+b),this.hasDragged=Math.sqrt(Math.pow(r-A,2)+Math.pow(s-T,2)),this.hasDragged>10)){B=x.isInsidePlot(r-o,s-n,{visiblePlotOnly:!0});let{shapeType:u,attrs:y}=this.getSelectionMarkerAttrs(A,T);(x.hasCartesianSeries||x.mapView)&&this.hasZoom&&B&&!c&&!H&&(this.selectionMarker=H=x.renderer[u](),H.attr({class:"highcharts-selection-marker",zIndex:7}).add(),x.styledMode||H.attr({fill:i||st("#334eff").setOpacity(.25).get()})),H&&H.attr(y),B&&!H&&R&&x.pan(a,t)}}dragStart(a){let x=this.chart;x.mouseIsDown=a.type,x.cancelClick=!1,x.mouseDownX=a.chartX,x.mouseDownY=a.chartY}getSelectionBox(a){let x={args:{marker:a},result:a.getBBox()};return L(this,"getSelectionBox",x),x.result}drop(a){let x,{chart:r,selectionMarker:s}=this;for(let t of r.axes)t.isPanning&&(t.isPanning=!1,(t.options.startOnTick||t.options.endOnTick||t.series.some(e=>e.boosted))&&(t.forceRedraw=!0,t.setExtremes(t.userMin,t.userMax,!1),x=!0));if(x&&r.redraw(),s&&a){if(this.hasDragged){let t=this.getSelectionBox(s);r.transform({axes:r.axes.filter(e=>e.zoomEnabled&&(e.coll==="xAxis"&&this.zoomX||e.coll==="yAxis"&&this.zoomY)),selection:Dt({originalEvent:a,xAxis:[],yAxis:[]},t),from:t})}p(r.index)&&(this.selectionMarker=s.destroy())}r&&p(r.index)&&(S(r.container,{cursor:r._cursor}),r.cancelClick=this.hasDragged>10,r.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(a,x,r){let s;return a.forEach(function(t){let e=!(t.noSharedTooltip&&x)&&0>t.options.findNearestPointBy.indexOf("y"),i=t.searchPoint(r,e);C(i,!0)&&i.series&&(!C(s,!0)||function(o,n){let d=o.distX-n.distX,b=o.dist-n.dist,R=n.series.group?.zIndex-o.series.group?.zIndex;return d!==0&&x?d:b!==0?b:R!==0?R:o.series.index>n.series.index?-1:1}(s,i)>0)&&(s=i)}),s}getChartCoordinatesFromPoint(a,x){let{xAxis:r,yAxis:s}=a.series,t=a.shapeArgs;if(r&&s){let e=a.clientX??a.plotX??0,i=a.plotY||0;return a.isNode&&t&&p(t.x)&&p(t.y)&&(e=t.x,i=t.y),x?{chartX:s.len+s.pos-i,chartY:r.len+r.pos-e}:{chartX:e+r.pos,chartY:i+s.pos}}if(t&&t.x&&t.y)return{chartX:t.x,chartY:t.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:a}=this.chart,x=m(a);this.chartPosition={left:x.left,top:x.top,scaleX:1,scaleY:1};let{offsetHeight:r,offsetWidth:s}=a;return s>2&&r>2&&(this.chartPosition.scaleX=x.width/s,this.chartPosition.scaleY=x.height/r),this.chartPosition}getCoordinates(a){let x={xAxis:[],yAxis:[]};for(let r of this.chart.axes)x[r.isXAxis?"xAxis":"yAxis"].push({axis:r,value:r.toValue(a[r.horiz?"chartX":"chartY"])});return x}getHoverData(a,x,r,s,t,e){let i=[],o=function(c){return c.visible&&!(!t&&c.directTouch)&&h(c.options.enableMouseTracking,!0)},n=x,d,b={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:t};L(this,"beforeGetHoverData",b),d=n&&!n.stickyTracking?[n]:r.filter(c=>c.stickyTracking&&(b.filter||o)(c));let R=s&&a||!e?a:this.findNearestKDPoint(d,t,e);return n=R&&R.series,R&&(t&&!n.noSharedTooltip?(d=r.filter(function(c){return b.filter?b.filter(c):o(c)&&!c.noSharedTooltip})).forEach(function(c){let A=E(c.points,function(T){return T.x===R.x&&!T.isNull});C(A)&&(c.boosted&&c.boost&&(A=c.boost.getPoint(A)),i.push(A))}):i.push(R)),L(this,"afterGetHoverData",b={hoverPoint:R}),{hoverPoint:b.hoverPoint,hoverSeries:n,hoverPoints:i}}getPointFromEvent(a){let x=a.target,r;for(;x&&!r;)r=x.point,x=x.parentNode;return r}onTrackerMouseOut(a){let x=this.chart,r=a.relatedTarget,s=x.hoverSeries;this.isDirectTouch=!1,!s||!r||s.stickyTracking||this.inClass(r,"highcharts-tooltip")||this.inClass(r,"highcharts-series-"+s.index)&&this.inClass(r,"highcharts-tracker")||s.onMouseOut()}inClass(a,x){let r=a,s;for(;r;){if(s=U(r,"class")){if(s.indexOf(x)!==-1)return!0;if(s.indexOf("highcharts-container")!==-1)return!1}r=r.parentElement}}constructor(a,x){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=x,this.chart=a,this.runChartClick=!!x.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),L(this,"afterInit")}normalize(a,x){let r=a.touches,s=r?r.length?r.item(0):h(r.changedTouches,a.changedTouches)[0]:a;x||(x=this.getChartPosition());let t=s.pageX-x.left,e=s.pageY-x.top;return O(a,{chartX:Math.round(t/=x.scaleX),chartY:Math.round(e/=x.scaleY)})}onContainerClick(a){let x=this.chart,r=x.hoverPoint,s=this.normalize(a),t=x.plotLeft,e=x.plotTop;!x.cancelClick&&(r&&this.inClass(s.target,"highcharts-tracker")?(L(r.series,"click",O(s,{point:r})),x.hoverPoint&&r.firePointEvent("click",s)):(O(s,this.getCoordinates(s)),x.isInsidePlot(s.chartX-t,s.chartY-e,{visiblePlotOnly:!0})&&L(x,"click",s)))}onContainerMouseDown(a){let x=(1&(a.buttons||a.button))==1;a=this.normalize(a),Q.isFirefox&&a.button!==0&&this.onContainerMouseMove(a),(a.button===void 0||x)&&(this.zoomOption(a),x&&a.preventDefault?.(),this.dragStart(a))}onContainerMouseLeave(a){let{pointer:x}=it[h(D.hoverChartIndex,-1)]||{};a=this.normalize(a),this.onContainerMouseMove(a),x&&a.relatedTarget&&!this.inClass(a.relatedTarget,"highcharts-tooltip")&&(x.reset(),x.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(a){let x=this.chart,r=x.tooltip,s=this.normalize(a);this.setHoverChartIndex(a),(x.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),!x.openMenu&&(this.inClass(s.target,"highcharts-tracker")||x.isInsidePlot(s.chartX-x.plotLeft,s.chartY-x.plotTop,{visiblePlotOnly:!0}))&&!(r&&r.shouldStickOnContact(s))&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(a){this.onDocumentMouseUp(a)}onContainerTouchMove(a){this.touchSelect(a)?this.onContainerMouseMove(a):this.touch(a)}onContainerTouchStart(a){this.touchSelect(a)?this.onContainerMouseDown(a):(this.zoomOption(a),this.touch(a,!0))}onDocumentMouseMove(a){let x=this.chart,r=x.tooltip,s=this.chartPosition,t=this.normalize(a,s);!s||x.isInsidePlot(t.chartX-x.plotLeft,t.chartY-x.plotTop,{visiblePlotOnly:!0})||r&&r.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(a){it[h(D.hoverChartIndex,-1)]?.pointer?.drop(a)}pinch(a){let x=this,{chart:r,hasZoom:s,lastTouches:t}=x,e=[].map.call(a.touches||[],b=>x.normalize(b)),i=e.length,o=i===1&&(x.inClass(a.target,"highcharts-tracker")&&r.runTrackerClick||x.runChartClick),n=r.tooltip,d=i===1&&h(n?.options.followTouchMove,!0);i>1?x.initiated=!0:d&&(x.initiated=!1),s&&x.initiated&&!o&&a.cancelable!==!1&&a.preventDefault(),a.type==="touchstart"?(x.pinchDown=e,x.res=!0):d?this.runPointActions(x.normalize(a)):t&&(L(r,"touchpan",{originalEvent:a,touches:e},()=>{let b=R=>{let c=R[0],A=R[1]||c;return{x:c.chartX,y:c.chartY,width:A.chartX-c.chartX,height:A.chartY-c.chartY}};r.transform({axes:r.axes.filter(R=>R.zoomEnabled&&(this.zoomHor&&R.horiz||this.zoomVert&&!R.horiz)),to:b(e),from:b(t),trigger:a.type})}),x.res&&(x.res=!1,this.reset(!1,0))),x.lastTouches=e}reset(a,x){let r=this.chart,s=r.hoverSeries,t=r.hoverPoint,e=r.hoverPoints,i=r.tooltip,o=i&&i.shared?e:t;a&&o&&I(o).forEach(function(n){n.series.isCartesian&&n.plotX===void 0&&(a=!1)}),a?i&&o&&I(o).length&&(i.refresh(o),i.shared&&e?e.forEach(function(n){n.setState(n.state,!0),n.series.isCartesian&&(n.series.xAxis.crosshair&&n.series.xAxis.drawCrosshair(null,n),n.series.yAxis.crosshair&&n.series.yAxis.drawCrosshair(null,n))}):t&&(t.setState(t.state,!0),r.axes.forEach(function(n){n.crosshair&&t.series[n.coll]===n&&n.drawCrosshair(null,t)}))):(t&&t.onMouseOut(),e&&e.forEach(function(n){n.setState()}),s&&s.onMouseOut(),i&&i.hide(x),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),r.axes.forEach(function(n){n.hideCrosshair()}),r.hoverPoints=r.hoverPoint=void 0)}runPointActions(a,x,r){let s=this.chart,t=s.series,e=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,i=!!e&&e.shared,o=x||s.hoverPoint,n=o&&o.series||s.hoverSeries,d=(!a||a.type!=="touchmove")&&(!!x||n&&n.directTouch&&this.isDirectTouch),b=this.getHoverData(o,n,t,d,i,a);o=b.hoverPoint,n=b.hoverSeries;let R=b.hoverPoints,c=n&&n.tooltipOptions.followPointer&&!n.tooltipOptions.split,A=i&&n&&!n.noSharedTooltip;if(o&&(r||o!==s.hoverPoint||e&&e.isHidden)){if((s.hoverPoints||[]).forEach(function(T){R.indexOf(T)===-1&&T.setState()}),s.hoverSeries!==n&&n.onMouseOver(),this.applyInactiveState(R),(R||[]).forEach(function(T){T.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!o.series)return;s.hoverPoints=R,s.hoverPoint=o,o.firePointEvent("mouseOver",void 0,()=>{e&&o&&e.refresh(A?R:o,a)})}else if(c&&e&&!e.isHidden){let T=e.getAnchor([{}],a);s.isInsidePlot(T[0],T[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:T[0],plotY:T[1]})}this.unDocMouseMove||(this.unDocMouseMove=W(s.container.ownerDocument,"mousemove",T=>it[D.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(T)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(T){let B,H=h((T.crosshair||{}).snap,!0);!H||(B=s.hoverPoint)&&B.series[T.coll]===T||(B=E(R,u=>u.series&&u.series[T.coll]===T)),B||!H?T.drawCrosshair(a,B):T.hideCrosshair()})}setDOMEvents(){let a=this.chart.container,x=a.ownerDocument;a.onmousedown=this.onContainerMouseDown.bind(this),a.onmousemove=this.onContainerMouseMove.bind(this),a.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(W(a,"mouseenter",this.onContainerMouseEnter.bind(this)),W(a,"mouseleave",this.onContainerMouseLeave.bind(this))),D.unbindDocumentMouseUp||(D.unbindDocumentMouseUp=W(x,"mouseup",this.onDocumentMouseUp.bind(this)));let r=this.chart.renderTo.parentElement;for(;r&&r.tagName!=="BODY";)this.eventsToUnbind.push(W(r,"scroll",()=>{delete this.chartPosition})),r=r.parentElement;this.eventsToUnbind.push(W(a,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),W(a,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),D.unbindDocumentTouchEnd||(D.unbindDocumentTouchEnd=W(x,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),W(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!Y)return;let a=this.pointerCaptureEventsToUnbind,x=this.chart,r=x.container,s=h(x.options.tooltip?.followTouchMove,!0)&&x.series.some(t=>t.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(a.push(W(r,"pointerdown",t=>{t.target?.hasPointerCapture(t.pointerId)&&t.target?.releasePointerCapture(t.pointerId)}),W(r,"pointermove",t=>{x.pointer?.getPointFromEvent(t)?.onMouseOver(t)})),x.styledMode||S(r,{"touch-action":"none"}),r.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(a.forEach(t=>t()),a.length=0,x.styledMode||S(r,{"touch-action":h(x.options.chart.style?.["touch-action"],"manipulation")}),r.className=r.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(a){let x=this.chart,r=Q.charts[h(D.hoverChartIndex,-1)];r&&r!==x&&r.pointer?.onContainerMouseLeave(a||{relatedTarget:x.container}),r&&r.mouseIsDown||(D.hoverChartIndex=x.index)}touch(a,x){let r,{chart:s,pinchDown:t=[]}=this;this.setHoverChartIndex(),a.touches.length===1?(a=this.normalize(a),s.isInsidePlot(a.chartX-s.plotLeft,a.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.openMenu?(x&&this.runPointActions(a),a.type==="touchmove"&&(r=!!t[0]&&Math.pow(t[0].chartX-a.chartX,2)+Math.pow(t[0].chartY-a.chartY,2)>=16),h(r,!0)&&this.pinch(a)):x&&this.reset()):a.touches.length===2&&this.pinch(a)}touchSelect(a){return!!(this.chart.zooming.singleTouch&&a.touches&&a.touches.length===1)}zoomOption(a){let x=this.chart,r=x.inverted,s=x.zooming.type||"",t,e;/touch/.test(a.type)&&(s=h(x.zooming.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=e=/y/.test(s),this.zoomHor=t&&!r||e&&r,this.zoomVert=e&&!r||t&&r,this.hasZoom=t||e}}return(at=D||(D={})).compose=function(g){f(J,"Core.Pointer")&&W(g,"beforeRender",function(){this.pointer=new at(this,this.options)})},D}),gt(z,"Core/Legend/Legend.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Templating.js"],z["Core/Globals.js"],z["Core/Series/Point.js"],z["Core/Renderer/RendererUtilities.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it){var J;let{animObject:Y,setAnimation:W}=V,{format:U}=Q,{composed:S,marginNames:O}=nt,{distribute:E}=st,{addEvent:L,createElement:p,css:C,defined:w,discardElement:m,find:h,fireEvent:f,isNumber:I,merge:D,pick:g,pushUnique:a,relativeLength:x,stableSort:r,syncTimeout:s}=it;class t{constructor(i,o){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=i,this.setOptions(o),o.enabled&&(this.render(),L(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),L(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(i){let o=g(i.padding,8);this.options=i,this.chart.styledMode||(this.itemStyle=i.itemStyle,this.itemHiddenStyle=D(this.itemStyle,i.itemHiddenStyle)),this.itemMarginTop=i.itemMarginTop,this.itemMarginBottom=i.itemMarginBottom,this.padding=o,this.initialItemY=o-5,this.symbolWidth=g(i.symbolWidth,16),this.pages=[],this.proximate=i.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(i,o){let n=this.chart;this.setOptions(D(!0,this.options,i)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,g(o,!0)&&n.redraw(),f(this,"afterUpdate",{redraw:o})}colorizeItem(i,o){let{area:n,group:d,label:b,line:R,symbol:c}=i.legendItem||{};if(d?.[o?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:A={}}=this,T=A.color,{fillColor:B,fillOpacity:H,lineColor:u,marker:y}=i.options,v=G=>(!o&&(G.fill&&(G.fill=T),G.stroke&&(G.stroke=T)),G);b?.css(D(o?this.itemStyle:A)),R?.attr(v({stroke:u||i.color})),c&&c.attr(v(y&&c.isMarker?i.pointAttribs():{fill:i.color})),n?.attr(v({fill:B||i.color,"fill-opacity":B?1:H??.75}))}f(this,"afterColorizeItem",{item:i,visible:o})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(i){let{group:o,x:n=0,y:d=0}=i.legendItem||{},b=this.options,R=b.symbolPadding,c=!b.rtl,A=i.checkbox;if(o&&o.element){let T={translateX:c?n:this.legendWidth-n-2*R-4,translateY:d};o[w(o.translateY)?"animate":"attr"](T,void 0,()=>{f(this,"afterPositionItem",{item:i})})}A&&(A.x=n,A.y=d)}destroyItem(i){let o=i.checkbox,n=i.legendItem||{};for(let d of["group","label","line","symbol"])n[d]&&(n[d]=n[d].destroy());o&&m(o),i.legendItem=void 0}destroy(){for(let i of this.getAllItems())this.destroyItem(i);for(let i of["clipRect","up","down","pager","nav","box","title","group"])this[i]&&(this[i]=this[i].destroy());this.display=null}positionCheckboxes(){let i,o=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,d=this.titleHeight;o&&(i=o.translateY,this.allItems.forEach(function(b){let R,c=b.checkbox;c&&(R=i+d+c.y+(this.scrollOffset||0)+3,C(c,{left:o.translateX+b.checkboxOffset+c.x-20+"px",top:R+"px",display:this.proximate||R>i-6&&R1.5*$?N.height:$))}layoutItem(i){let o=this.options,n=this.padding,d=o.layout==="horizontal",b=i.itemHeight,R=this.itemMarginBottom,c=this.itemMarginTop,A=d?g(o.itemDistance,20):0,T=this.maxLegendWidth,B=o.alignColumns&&this.totalItemWidth>T?this.maxItemWidth:i.itemWidth,H=i.legendItem||{};d&&this.itemX-n+B>T&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=c+this.lastLineHeight+R),this.lastLineHeight=0),this.lastItemY=c+this.itemY+R,this.lastLineHeight=Math.max(b,this.lastLineHeight),H.x=this.itemX,H.y=this.itemY,d?this.itemX+=B:(this.itemY+=c+b+R,this.lastLineHeight=b),this.offsetWidth=this.widthOption||Math.max((d?this.itemX-n-(i.checkbox?0:A):B)+n,this.offsetWidth)}getAllItems(){let i=[];return this.chart.series.forEach(function(o){let n=o&&o.options;o&&g(n.showInLegend,!w(n.linkedTo)&&void 0,!0)&&(i=i.concat((o.legendItem||{}).labels||(n.legendType==="point"?o.data:o)))}),f(this,"afterGetAllItems",{allItems:i}),i}getAlignment(){let i=this.options;return this.proximate?i.align.charAt(0)+"tv":i.floating?"":i.align.charAt(0)+i.verticalAlign.charAt(0)+i.layout.charAt(0)}adjustMargins(i,o){let n=this.chart,d=this.options,b=this.getAlignment();b&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(R,c){R.test(b)&&!w(i[c])&&(n[O[c]]=Math.max(n[O[c]],n.legend[(c+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][c]*d[c%2?"x":"y"]+g(d.margin,12)+o[c]+(n.titleOffset[c]||0)))})}proximatePositions(){let i,o=this.chart,n=[],d=this.options.align==="left";for(let b of(this.allItems.forEach(function(R){let c,A,T=d,B,H;R.yAxis&&(R.xAxis.options.reversed&&(T=!T),R.points&&(c=h(T?R.points:R.points.slice(0).reverse(),function(u){return I(u.plotY)})),A=this.itemMarginTop+R.legendItem.label.getBBox().height+this.itemMarginBottom,H=R.yAxis.top-o.plotTop,B=R.visible?(c?c.plotY:R.yAxis.height)+(H-.3*A):H+R.yAxis.height,n.push({target:B,size:A,item:R}))},this),E(n,o.plotHeight)))i=b.item.legendItem||{},I(b.pos)&&(i.y=o.plotTop-o.spacing[0]+b.pos)}render(){let i=this.chart,o=i.renderer,n=this.options,d=this.padding,b=this.getAllItems(),R,c,A,T=this.group,B,H=this.box;this.itemX=d,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=x(n.width,i.spacingBox.width-d),B=i.spacingBox.width-2*d-n.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(B/=2),this.maxLegendWidth=this.widthOption||B,T||(this.group=T=o.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=o.g().attr({zIndex:1}).add(T),this.scrollGroup=o.g().add(this.contentGroup)),this.renderTitle(),r(b,(u,y)=>(u.options&&u.options.legendIndex||0)-(y.options&&y.options.legendIndex||0)),n.reversed&&b.reverse(),this.allItems=b,this.display=R=!!b.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,b.forEach(this.renderItem,this),b.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+d,A=this.lastItemY+this.lastLineHeight+this.titleHeight,A=this.handleOverflow(A)+d,H||(this.box=H=o.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(T)),i.styledMode||H.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),c>0&&A>0&&H[H.placed?"animate":"attr"](H.crisp.call({},{x:0,y:0,width:c,height:A},H.strokeWidth())),T[R?"show":"hide"](),i.styledMode&&T.getStyle("display")==="none"&&(c=A=0),this.legendWidth=c,this.legendHeight=A,R&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")}align(i=this.chart.spacingBox){let o=this.chart,n=this.options,d=i.y;/(lth|ct|rth)/.test(this.getAlignment())&&o.titleOffset[0]>0?d+=o.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&o.titleOffset[2]>0&&(d-=o.titleOffset[2]),d!==i.y&&(i=D(i,{y:d})),o.hasRendered||(this.group.placed=!1),this.group.align(D(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,i)}handleOverflow(i){let o=this,n=this.chart,d=n.renderer,b=this.options,R=b.y,c=b.verticalAlign==="top",A=this.padding,T=b.maxHeight,B=b.navigation,H=g(B.animation,!0),u=B.arrowSize||12,y=this.pages,v=this.allItems,G=function(Z){typeof Z=="number"?$.attr({height:Z}):$&&(o.clipRect=$.destroy(),o.contentGroup.clip()),o.contentGroup.div&&(o.contentGroup.div.style.clip=Z?"rect("+A+"px,9999px,"+(A+Z)+"px,0)":"auto")},l=function(Z){return o[Z]=d.circle(0,0,1.3*u).translate(u/2,u/2).add(N),n.styledMode||o[Z].attr("fill","rgba(0,0,0,0.0001)"),o[Z]},M,k,P,j=n.spacingBox.height+(c?-R:R)-A,N=this.nav,$=this.clipRect;return b.layout!=="horizontal"||b.verticalAlign==="middle"||b.floating||(j/=2),T&&(j=Math.min(j,T)),y.length=0,i&&j>0&&i>j&&B.enabled!==!1?(this.clipHeight=M=Math.max(j-20-this.titleHeight-A,0),this.currentPage=g(this.currentPage,1),this.fullHeight=i,v.forEach((Z,_)=>{let ot=(P=Z.legendItem||{}).y||0,ht=Math.round(P.label.getBBox().height),X=y.length;(!X||ot-y[X-1]>M&&(k||ot)!==y[X-1])&&(y.push(k||ot),X++),P.pageIx=X-1,k&&((v[_-1].legendItem||{}).pageIx=X-1),_===v.length-1&&ot+ht-y[X-1]>M&&ot>y[X-1]&&(y.push(ot),P.pageIx=X),ot!==k&&(k=ot)}),$||($=o.clipRect=d.clipRect(0,A-2,9999,0),o.contentGroup.clip($)),G(M),N||(this.nav=N=d.g().attr({zIndex:1}).add(this.group),this.up=d.symbol("triangle",0,0,u,u).add(N),l("upTracker").on("click",function(){o.scroll(-1,H)}),this.pager=d.text("",15,10).addClass("highcharts-legend-navigation"),!n.styledMode&&B.style&&this.pager.css(B.style),this.pager.add(N),this.down=d.symbol("triangle-down",0,0,u,u).add(N),l("downTracker").on("click",function(){o.scroll(1,H)})),o.scroll(0),i=j):N&&(G(),this.nav=N.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),i}scroll(i,o){let n=this.chart,d=this.pages,b=d.length,R=this.clipHeight,c=this.options.navigation,A=this.pager,T=this.padding,B=this.currentPage+i;B>b&&(B=b),B>0&&(o!==void 0&&W(o,n),this.nav.attr({translateX:T,translateY:R+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(H){H.attr({class:B===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:B+"/"+b}),[this.down,this.downTracker].forEach(function(H){H.attr({x:18+this.pager.getBBox().width,class:B===b?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),n.styledMode||(this.up.attr({fill:B===1?c.inactiveColor:c.activeColor}),this.upTracker.css({cursor:B===1?"default":"pointer"}),this.down.attr({fill:B===b?c.inactiveColor:c.activeColor}),this.downTracker.css({cursor:B===b?"default":"pointer"})),this.scrollOffset=-d[B-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=B,this.positionCheckboxes(),s(()=>{f(this,"afterScroll",{currentPage:B})},Y(g(o,n.renderer.globalAnimation,!0)).duration))}setItemEvents(i,o,n){let d=this,b=i.legendItem||{},R=d.chart.renderer.boxWrapper,c=i instanceof at,A="highcharts-legend-"+(c?"point":"series")+"-active",T=d.chart.styledMode,B=n?[o,b.symbol]:[b.group],H=u=>{d.allItems.forEach(y=>{i!==y&&[y].concat(y.linkedSeries||[]).forEach(v=>{v.setState(u,!c)})})};for(let u of B)u&&u.on("mouseover",function(){i.visible&&H("inactive"),i.setState("hover"),i.visible&&R.addClass(A),T||o.css(d.options.itemHoverStyle)}).on("mouseout",function(){d.chart.styledMode||o.css(D(i.visible?d.itemStyle:d.itemHiddenStyle)),H(""),R.removeClass(A),i.setState()}).on("click",function(y){let v="legendItemClick",G=function(){i.setVisible&&i.setVisible(),H(i.visible?"inactive":"")};R.removeClass(A),y={browserEvent:y},i.firePointEvent?i.firePointEvent(v,y,G):f(i,v,y,G)})}createCheckboxForItem(i){i.checkbox=p("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:i.selected,defaultChecked:i.selected},this.options.itemCheckboxStyle,this.chart.container),L(i.checkbox,"click",function(o){let n=o.target;f(i.series||i,"checkboxClick",{checked:n.checked,item:i},function(){i.select()})})}}return(J=t||(t={})).compose=function(e){a(S,"Core.Legend")&&L(e,"beforeMargins",function(){this.legend=new J(this,this.options.legend)})},t}),gt(z,"Core/Legend/LegendSymbol.js",[z["Core/Utilities.js"]],function(V){var Q;let{extend:nt,merge:at,pick:st}=V;return function(it){function J(Y,W,U){let S=this.legendItem=this.legendItem||{},{chart:O,options:E}=this,{baseline:L=0,symbolWidth:p,symbolHeight:C}=Y,w=this.symbol||"circle",m=C/2,h=O.renderer,f=S.group,I=L-Math.round(C*(U?.4:.3)),D={},g,a=E.marker,x=0;if(O.styledMode||(D["stroke-width"]=Math.min(E.lineWidth||0,24),E.dashStyle?D.dashstyle=E.dashStyle:E.linecap==="square"||(D["stroke-linecap"]="round")),S.line=h.path().addClass("highcharts-graph").attr(D).add(f),U&&(S.area=h.path().addClass("highcharts-area").add(f)),D["stroke-linecap"]&&(x=Math.min(S.line.strokeWidth(),p)/2),p){let r=[["M",x,I],["L",p-x,I]];S.line.attr({d:r}),S.area?.attr({d:[...r,["L",p-x,L],["L",x,L]]})}if(a&&a.enabled!==!1&&p){let r=Math.min(st(a.radius,m),m);w.indexOf("url")===0&&(a=at(a,{width:C,height:C}),r=0),S.symbol=g=h.symbol(w,p/2-r,I-r,2*r,2*r,nt({context:"legend"},a)).addClass("highcharts-point").add(f),g.isMarker=!0}}it.areaMarker=function(Y,W){J.call(this,Y,W,!0)},it.lineMarker=J,it.rectangle=function(Y,W){let U=W.legendItem||{},S=Y.options,O=Y.symbolHeight,E=S.squareSymbol,L=E?O:Y.symbolWidth;U.symbol=this.chart.renderer.rect(E?(Y.symbolWidth-O)/2:0,Y.baseline-O+1,L,O,st(Y.options.symbolRadius,O/2)).addClass("highcharts-point").attr({zIndex:3}).add(U.group)}}(Q||(Q={})),Q}),gt(z,"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:V}=this.series.chart;return typeof this.y!="number"?"":V(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"}}),gt(z,"Core/Series/SeriesRegistry.js",[z["Core/Globals.js"],z["Core/Defaults.js"],z["Core/Series/Point.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){var st;let{defaultOptions:it}=Q,{extend:J,extendClass:Y,merge:W}=at;return function(U){function S(O,E){let L=it.plotOptions||{},p=E.defaultOptions,C=E.prototype;return C.type=O,C.pointClass||(C.pointClass=nt),!U.seriesTypes[O]&&(p&&(L[O]=p),U.seriesTypes[O]=E,!0)}U.seriesTypes=V.seriesTypes,U.registerSeriesType=S,U.seriesType=function(O,E,L,p,C){let w=it.plotOptions||{};if(E=E||"",w[O]=W(w[E],L),delete U.seriesTypes[O],S(O,Y(U.seriesTypes[E]||function(){},p)),U.seriesTypes[O].prototype.type=O,C){class m extends nt{}J(m.prototype,C),U.seriesTypes[O].prototype.pointClass=m}return U.seriesTypes[O]}}(st||(st={})),st}),gt(z,"Core/Series/Series.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Defaults.js"],z["Core/Foundation.js"],z["Core/Globals.js"],z["Core/Legend/LegendSymbol.js"],z["Core/Series/Point.js"],z["Core/Series/SeriesDefaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y,W,U){let{animObject:S,setAnimation:O}=V,{defaultOptions:E}=Q,{registerEventOptions:L}=nt,{svg:p,win:C}=at,{seriesTypes:w}=Y,{arrayMax:m,arrayMin:h,clamp:f,correctFloat:I,crisp:D,defined:g,destroyObjectProperties:a,diffObjects:x,erase:r,error:s,extend:t,find:e,fireEvent:i,getClosestDistance:o,getNestedProperty:n,insertItem:d,isArray:b,isNumber:R,isString:c,merge:A,objectEach:T,pick:B,removeEvent:H,splat:u,syncTimeout:y}=U;class v{constructor(){this.zoneAxis="y"}init(l,M){let k;i(this,"init",{options:M});let P=this,j=l.series;this.eventsToUnbind=[],P.chart=l,P.options=P.setOptions(M);let N=P.options,$=N.visible!==!1;P.linkedSeries=[],P.bindAxes(),t(P,{name:N.name,state:"",visible:$,selected:N.selected===!0}),L(this,N);let Z=N.events;(Z&&Z.click||N.point&&N.point.events&&N.point.events.click||N.allowPointSelect)&&(l.runTrackerClick=!0),P.getColor(),P.getSymbol(),P.parallelArrays.forEach(function(_){P[_+"Data"]||(P[_+"Data"]=[])}),P.isCartesian&&(l.hasCartesianSeries=!0),j.length&&(k=j[j.length-1]),P._i=B(k&&k._i,-1)+1,P.opacity=P.options.opacity,l.orderItems("series",d(this,j)),N.dataSorting&&N.dataSorting.enabled?P.setDataSortingOptions():P.points||P.data||P.setData(N.data,!1),i(this,"afterInit")}is(l){return w[l]&&this instanceof w[l]}bindAxes(){let l,M=this,k=M.options,P=M.chart;i(this,"bindAxes",null,function(){(M.axisTypes||[]).forEach(function(j){(P[j]||[]).forEach(function(N){l=N.options,(B(k[j],0)===N.index||k[j]!==void 0&&k[j]===l.id)&&(d(M,N.series),M[j]=N,N.isDirty=!0)}),M[j]||M.optionalAxis===j||s(18,!0,P)})}),i(this,"afterBindAxes")}updateParallelArrays(l,M,k){let P=l.series,j=R(M)?function(N){let $=N==="y"&&P.toYData?P.toYData(l):l[N];P[N+"Data"][M]=$}:function(N){Array.prototype[M].apply(P[N+"Data"],k)};P.parallelArrays.forEach(j)}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(l,M){let k=l.marker,P=M.marker||{};return k&&(P.enabled&&!k.enabled||P.symbol!==k.symbol||P.height!==k.height||P.width!==k.width)}autoIncrement(l){let M=this.options,k=M.pointIntervalUnit,P=M.relativeXValue,j=this.chart.time,N=this.xIncrement,$,Z;return N=B(N,M.pointStart,0),this.pointInterval=Z=B(this.pointInterval,M.pointInterval,1),P&&R(l)&&(Z*=l),k&&($=new j.Date(N),k==="day"?j.set("Date",$,j.get("Date",$)+Z):k==="month"?j.set("Month",$,j.get("Month",$)+Z):k==="year"&&j.set("FullYear",$,j.get("FullYear",$)+Z),Z=$.getTime()-N),P&&R(l)?N+Z:(this.xIncrement=N+Z,N)}setDataSortingOptions(){let l=this.options;t(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),g(l.pointRange)||(l.pointRange=1)}setOptions(l){let M,k=this.chart,P=k.options.plotOptions,j=k.userOptions||{},N=A(l),$=k.styledMode,Z={plotOptions:P,userOptions:N};i(this,"setOptions",Z);let _=Z.plotOptions[this.type],ot=j.plotOptions||{},ht=ot.series||{},X=E.plotOptions[this.type]||{},F=ot[this.type]||{};this.userOptions=Z.userOptions;let q=A(_,P.series,F,N);this.tooltipOptions=A(E.tooltip,E.plotOptions.series?.tooltip,X?.tooltip,k.userOptions.tooltip,ot.series?.tooltip,F.tooltip,N.tooltip),this.stickyTracking=B(N.stickyTracking,F.stickyTracking,ht.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||q.stickyTracking),_.marker===null&&delete q.marker,this.zoneAxis=q.zoneAxis||"y";let K=this.zones=(q.zones||[]).map(et=>Dt({},et));return(q.negativeColor||q.negativeFillColor)&&!q.zones&&(M={value:q[this.zoneAxis+"Threshold"]||q.threshold||0,className:"highcharts-negative"},$||(M.color=q.negativeColor,M.fillColor=q.negativeFillColor),K.push(M)),K.length&&g(K[K.length-1].value)&&K.push($?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:q}),q}getName(){return B(this.options.name,"Series "+(this.index+1))}getCyclic(l,M,k){let P,j,N=this.chart,$=`${l}Index`,Z=`${l}Counter`,_=k?.length||N.options.chart.colorCount;!M&&(g(j=B(l==="color"?this.options.colorIndex:void 0,this[$]))?P=j:(N.series.length||(N[Z]=0),P=N[Z]%_,N[Z]+=1),k&&(M=k[P])),P!==void 0&&(this[$]=P),this[l]=M}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||E.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let l=this.options.marker;this.getCyclic("symbol",l.symbol,this.chart.options.symbols)}findPointIndex(l,M){let k,P,j,N=l.id,$=l.x,Z=this.points,_=this.options.dataSorting;if(N){let ot=this.chart.get(N);ot instanceof it&&(k=ot)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let ot=ht=>!ht.touched&&ht.index===l.index;if(_&&_.matchByName?ot=ht=>!ht.touched&&ht.name===l.name:this.options.relativeXValue&&(ot=ht=>!ht.touched&&ht.options.x===l.x),!(k=e(Z,ot)))return}return k&&(j=k&&k.index)!==void 0&&(P=!0),j===void 0&&R($)&&(j=this.xData.indexOf($,M)),j!==-1&&j!==void 0&&this.cropped&&(j=j>=this.cropStart?j-this.cropStart:j),!P&&R(j)&&Z[j]&&Z[j].touched&&(j=void 0),j}updateData(l,M){let k=this.options,P=k.dataSorting,j=this.points,N=[],$=this.requireSorting,Z=l.length===j.length,_,ot,ht,X,F=!0;if(this.xIncrement=null,l.forEach(function(q,K){let et,tt=g(q)&&this.pointClass.prototype.optionsToObject.call({series:this},q)||{},rt=tt.x;tt.id||R(rt)?((et=this.findPointIndex(tt,X))===-1||et===void 0?N.push(q):j[et]&&q!==k.data[et]?(j[et].update(q,!1,null,!1),j[et].touched=!0,$&&(X=et+1)):j[et]&&(j[et].touched=!0),(!Z||K!==et||P&&P.enabled||this.hasDerivedData)&&(_=!0)):N.push(q)},this),_)for(ot=j.length;ot--;)(ht=j[ot])&&!ht.touched&&ht.remove&&ht.remove(!1,M);else!Z||P&&P.enabled?F=!1:(l.forEach(function(q,K){q===j[K].y||j[K].destroyed||j[K].update(q,!1,null,!1)}),N.length=0);return j.forEach(function(q){q&&(q.touched=!1)}),!!F&&(N.forEach(function(q){this.addPoint(q,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=m(this.xData),this.autoIncrement()),!0)}setData(l,M=!0,k,P){let j=this,N=j.points,$=N&&N.length||0,Z=j.options,_=j.chart,ot=Z.dataSorting,ht=j.xAxis,X=Z.turboThreshold,F=this.xData,q=this.yData,K=j.pointArrayMap,et=K&&K.length,tt=Z.keys,rt,lt,dt,pt=0,ut=1,ct=null,mt;_.options.chart.allowMutatingData||(Z.data&&delete j.options.data,j.userOptions.data&&delete j.userOptions.data,mt=A(!0,l));let yt=(l=mt||l||[]).length;if(ot&&ot.enabled&&(l=this.sortData(l)),_.options.chart.allowMutatingData&&P!==!1&&yt&&$&&!j.cropped&&!j.hasGroupedData&&j.visible&&!j.boosted&&(dt=this.updateData(l,k)),!dt){if(j.xIncrement=null,j.colorCounter=0,this.parallelArrays.forEach(function(xt){j[xt+"Data"].length=0}),X&&yt>X)if(R(ct=j.getFirstValidPoint(l)))for(rt=0;rt=0?pt:0,ut=ut>=0?ut:1),ct.length===1&&(ut=0),pt===ut)for(rt=0;rt{let $=n(k,j),Z=n(k,N);return Z<$?-1:Z>$?1:0}).forEach(function(j,N){j.x=N},this),M.linkedSeries&&M.linkedSeries.forEach(function(j){let N=j.options,$=N.data;N.dataSorting&&N.dataSorting.enabled||!$||($.forEach(function(Z,_){$[_]=P(j,Z),l[_]&&($[_].x=l[_].x,$[_].index=_)}),j.setData($,!1))}),l}getProcessedData(l){let M=this,k=M.xAxis,P=M.options.cropThreshold,j=k?.logarithmic,N=M.isCartesian,$,Z,_=0,ot,ht,X,F=M.xData,q=M.yData,K=!1,et=F.length;k&&(ht=(ot=k.getExtremes()).min,X=ot.max,K=!!(k.categories&&!k.names.length)),N&&M.sorted&&!l&&(!P||et>P||M.forceCrop)&&(F[et-1]X?(F=[],q=[]):M.yData&&(F[0]X)&&(F=($=this.cropData(M.xData,M.yData,ht,X)).xData,q=$.yData,_=$.start,Z=!0));let tt=o([j?F.map(j.log2lin):F],()=>M.requireSorting&&!K&&s(15,!1,M.chart));return{xData:F,yData:q,cropped:Z,cropStart:_,closestPointRange:tt}}processData(l){let M=this.xAxis;if(this.isCartesian&&!this.isDirty&&!M.isDirty&&!this.yAxis.isDirty&&!l)return!1;let k=this.getProcessedData();this.cropped=k.cropped,this.cropStart=k.cropStart,this.processedXData=k.xData,this.processedYData=k.yData,this.closestPointRange=this.basePointRange=k.closestPointRange,i(this,"afterProcessData")}cropData(l,M,k,P){let j=l.length,N,$,Z=0,_=j;for(N=0;N=k){Z=Math.max(0,N-1);break}for($=N;$P){_=$+1;break}return{xData:l.slice(Z,_),yData:M.slice(Z,_),start:Z,end:_}}generatePoints(){let l=this.options,M=this.processedData||l.data,k=this.processedXData,P=this.processedYData,j=this.pointClass,N=k.length,$=this.cropStart||0,Z=this.hasGroupedData,_=l.keys,ot=[],ht=l.dataGrouping&&l.dataGrouping.groupAll?$:0,X,F,q,K,et=this.data;if(!et&&!Z){let tt=[];tt.length=M.length,et=this.data=tt}for(_&&Z&&(this.options.keys=!1),K=0;K0:K.length)||!$),F=M||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!k||(ut[et+N]||q)>=rt&&(ut[et-N]||q)<=lt,X&&F)if(tt=K.length)for(;tt--;)R(K[tt])&&(j[dt++]=K[tt]);else j[dt++]=K;let ct={activeYData:j,dataMin:h(j),dataMax:m(j)};return i(this,"afterGetExtremes",{dataExtremes:ct}),ct}applyExtremes(){let l=this.getExtremes();return this.dataMin=l.dataMin,this.dataMax=l.dataMax,l}getFirstValidPoint(l){let M=l.length,k=0,P=null;for(;P===null&&k1)&&(N.step=function(X,F){ht&&ht.apply(F,arguments),F.prop==="width"&&_?.element&&_.attr(j?"height":"width",X+99)}),Z.addClass("highcharts-animating").animate(ot,N)}}afterAnimate(){this.setClip(),T(this.chart.sharedClips,(l,M,k)=>{l&&!this.chart.container.querySelector(`[clip-path="url(#${l.id})"]`)&&(l.destroy(),delete k[M])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(l=this.points){let M,k,P,j,N,$,Z,_=this.chart,ot=_.styledMode,{colorAxis:ht,options:X}=this,F=X.marker,q=this[this.specialGroup||"markerGroup"],K=this.xAxis,et=B(F.enabled,!K||!!K.isRadial||null,this.closestPointRangePx>=F.enabledThreshold*F.radius);if(F.enabled!==!1||this._hasPointMarkers)for(M=0;M0||k.hasImage)&&(k.graphic=P=_.renderer.symbol(tt,Z.x,Z.y,Z.width,Z.height,$?N:F).add(q),this.enabledDataSorting&&_.hasRendered&&(P.attr({x:k.startXPos}),j="animate")),P&&j==="animate"&&P[rt?"show":"hide"](rt).animate(Z),P){let lt=this.pointAttribs(k,ot||!k.selected?void 0:"select");ot?ht&&P.css({fill:lt.fill}):P[j](lt)}P&&P.addClass(k.getClassName(),!0)}else P&&(k.graphic=P.destroy())}markerAttribs(l,M){let k=this.options,P=k.marker,j=l.marker||{},N=j.symbol||P.symbol,$={},Z,_,ot=B(j.radius,P&&P.radius);M&&(Z=P.states[M],ot=B((_=j.states&&j.states[M])&&_.radius,Z&&Z.radius,ot&&ot+(Z&&Z.radiusPlus||0))),l.hasImage=N&&N.indexOf("url")===0,l.hasImage&&(ot=0);let ht=l.pos();return R(ot)&&ht&&(k.crisp&&(ht[0]=D(ht[0],l.hasImage?0:N==="rect"?P?.lineWidth||0:1)),$.x=ht[0]-ot,$.y=ht[1]-ot),ot&&($.width=$.height=2*ot),$}pointAttribs(l,M){let k=this.options.marker,P=l&&l.options,j=P&&P.marker||{},N=P&&P.color,$=l&&l.color,Z=l&&l.zone&&l.zone.color,_,ot,ht=this.color,X,F,q=B(j.lineWidth,k.lineWidth),K=1;return ht=N||Z||$||ht,X=j.fillColor||k.fillColor||ht,F=j.lineColor||k.lineColor||ht,M=M||"normal",_=k.states[M]||{},q=B((ot=j.states&&j.states[M]||{}).lineWidth,_.lineWidth,q+B(ot.lineWidthPlus,_.lineWidthPlus,0)),X=ot.fillColor||_.fillColor||X,{stroke:F=ot.lineColor||_.lineColor||F,"stroke-width":q,fill:X,opacity:K=B(ot.opacity,_.opacity,K)}}destroy(l){let M,k,P,j=this,N=j.chart,$=/AppleWebKit\/533/.test(C.navigator.userAgent),Z=j.data||[];for(i(j,"destroy",{keepEventsForUpdate:l}),this.removeEvents(l),(j.axisTypes||[]).forEach(function(_){(P=j[_])&&P.series&&(r(P.series,j),P.isDirty=P.forceRedraw=!0)}),j.legendItem&&j.chart.legend.destroyItem(j),M=Z.length;M--;)(k=Z[M])&&k.destroy&&k.destroy();for(let _ of j.zones)a(_,void 0,!0);U.clearTimeout(j.animationTimeout),T(j,function(_,ot){_ instanceof W&&!_.survive&&_[$&&ot==="group"?"hide":"destroy"]()}),N.hoverSeries===j&&(N.hoverSeries=void 0),r(N.series,j),N.orderItems("series"),T(j,function(_,ot){l&&ot==="hcEvents"||delete j[ot]})}applyZones(){let{area:l,chart:M,graph:k,zones:P,points:j,xAxis:N,yAxis:$,zoneAxis:Z}=this,{inverted:_,renderer:ot}=M,ht=this[`${Z}Axis`],{isXAxis:X,len:F=0}=ht||{},q=(k?.strokeWidth()||0)/2+1,K=(et,tt=0,rt=0)=>{_&&(rt=F-rt);let{translated:lt=0,lineClip:dt}=et,pt=rt-lt;dt?.push(["L",tt,Math.abs(pt){dt.forEach((pt,ut)=>{(pt[0]==="M"||pt[0]==="L")&&(dt[ut]=[pt[0],X?F-pt[1]:pt[1],X?pt[2]:F-pt[2]])})};if(P.forEach(dt=>{dt.lineClip=[],dt.translated=f(ht.toPixels(B(dt.value,et),!0)||0,0,F)}),k&&!this.showLine&&k.hide(),l&&l.hide(),Z==="y"&&j.length{let pt=dt.lineClip||[],ut=Math.round(dt.translated||0);N.reversed&&pt.reverse();let{clip:ct,simpleClip:mt}=dt,yt=0,xt=0,ft=N.len,bt=$.len;X?(yt=ut,ft=lt):(xt=ut,bt=lt);let vt=[["M",yt,xt],["L",ft,xt],["L",ft,bt],["L",yt,bt],["Z"]],St=[vt[0],...pt,vt[1],vt[2],...rt,vt[3],vt[4]];rt=pt.reverse(),lt=ut,_&&(tt(St),l&&tt(vt)),ct?(ct.animate({d:St}),mt?.animate({d:vt})):(ct=dt.clip=ot.path(St),l&&(mt=dt.simpleClip=ot.path(vt))),k&&dt.graph?.clip(ct),l&&dt.area?.clip(mt)})}else this.visible&&(k&&k.show(),l&&l.show())}plotGroup(l,M,k,P,j){let N=this[l],$=!N,Z={visibility:k,zIndex:P||.1};return g(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(Z.opacity=this.opacity),N||(this[l]=N=this.chart.renderer.g().add(j)),N.addClass("highcharts-"+M+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(g(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(N.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),N.attr(Z)[$?"attr":"animate"](this.getPlotBox(M)),N}getPlotBox(l){let M=this.xAxis,k=this.yAxis,P=this.chart,j=P.inverted&&!P.polar&&M&&this.invertible&&l==="series";return P.inverted&&(M=k,k=this.xAxis),{translateX:M?M.left:P.plotLeft,translateY:k?k.top:P.plotTop,rotation:j?90:0,rotationOriginX:j?(M.len-k.len)/2:0,rotationOriginY:j?(M.len+k.len)/2:0,scaleX:j?-1:1,scaleY:1}}removeEvents(l){let{eventsToUnbind:M}=this;l||H(this),M.length&&(M.forEach(k=>{k()}),M.length=0)}render(){let l=this,{chart:M,options:k,hasRendered:P}=l,j=S(k.animation),N=l.visible?"inherit":"hidden",$=k.zIndex,Z=M.seriesGroup,_=l.finishedAnimating?0:j.duration;i(this,"render"),l.plotGroup("group","series",N,$,Z),l.markerGroup=l.plotGroup("markerGroup","markers",N,$,Z),k.clip!==!1&&l.setClip(),_&&l.animate?.(!0),l.drawGraph&&(l.drawGraph(),l.applyZones()),l.visible&&l.drawPoints(),l.drawDataLabels?.(),l.redrawPoints?.(),k.enableMouseTracking&&l.drawTracker?.(),_&&l.animate?.(),P||(_&&j.defer&&(_+=j.defer),l.animationTimeout=y(()=>{l.afterAnimate()},_||0)),l.isDirty=!1,l.hasRendered=!0,i(l,"afterRender")}redraw(){let l=this.isDirty||this.isDirtyData;this.translate(),this.render(),l&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(l,M){let{xAxis:k,yAxis:P}=this,j=this.chart.inverted;return this.searchKDTree({clientX:j?k.len-l.chartY+k.pos:l.chartX-k.pos,plotY:j?P.len-l.chartX+P.pos:l.chartY-P.pos},M,l)}buildKDTree(l){this.buildingKdTree=!0;let M=this,k=M.options.findNearestPointBy.indexOf("y")>-1?2:1;delete M.kdTree,y(function(){M.kdTree=function P(j,N,$){let Z,_,ot=j?.length;if(ot)return Z=M.kdAxisArray[N%$],j.sort((ht,X)=>(ht[Z]||0)-(X[Z]||0)),{point:j[_=Math.floor(ot/2)],left:P(j.slice(0,_),N+1,$),right:P(j.slice(_+1),N+1,$)}}(M.getValidPoints(void 0,!M.directTouch),k,k),M.buildingKdTree=!1},M.options.kdNow||l?.type==="touchstart"?0:1)}searchKDTree(l,M,k){let P=this,[j,N]=this.kdAxisArray,$=M?"distX":"dist",Z=(P.options.findNearestPointBy||"").indexOf("y")>-1?2:1,_=!!P.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(k),this.kdTree)return function ot(ht,X,F,q){let K=X.point,et=P.kdAxisArray[F%q],tt,rt,lt=K;(function(ct,mt){let yt=ct[j],xt=mt[j],ft=g(yt)&&g(xt)?yt-xt:null,bt=ct[N],vt=mt[N],St=g(bt)&&g(vt)?bt-vt:0,kt=_&&mt.marker?.radius||0;mt.dist=Math.sqrt((ft&&ft*ft||0)+St*St)-kt,mt.distX=g(ft)?Math.abs(ft)-kt:Number.MAX_VALUE})(ht,K);let dt=(ht[et]||0)-(K[et]||0)+(_&&K.marker?.radius||0),pt=dt<0?"left":"right",ut=dt<0?"right":"left";return X[pt]&&(lt=(tt=ot(ht,X[pt],F+1,q))[$]=0&&N<=(P?P.len:M.plotHeight)&&j>=0&&j<=(k?k.len:M.plotWidth)}drawTracker(){let l=this,M=l.options,k=M.trackByArea,P=[].concat((k?l.areaPath:l.graphPath)||[]),j=l.chart,N=j.pointer,$=j.renderer,Z=j.options.tooltip?.snap||0,_=()=>{M.enableMouseTracking&&j.hoverSeries!==l&&l.onMouseOver()},ot="rgba(192,192,192,"+(p?1e-4:.002)+")",ht=l.tracker;ht?ht.attr({d:P}):l.graph&&(l.tracker=ht=$.path(P).attr({visibility:l.visible?"inherit":"hidden",zIndex:2}).addClass(k?"highcharts-tracker-area":"highcharts-tracker-line").add(l.group),j.styledMode||ht.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:ot,fill:k?ot:"none","stroke-width":l.graph.strokeWidth()+(k?0:2*Z)}),[l.tracker,l.markerGroup,l.dataLabelsGroup].forEach(X=>{X&&(X.addClass("highcharts-tracker").on("mouseover",_).on("mouseout",F=>{N?.onTrackerMouseOut(F)}),M.cursor&&!j.styledMode&&X.css({cursor:M.cursor}),X.on("touchstart",_))})),i(this,"afterDrawTracker")}addPoint(l,M,k,P,j){let N,$,Z=this.options,_=this.data,ot=this.chart,ht=this.xAxis,X=ht&&ht.hasNames&&ht.names,F=Z.data,q=this.xData;M=B(M,!0);let K={series:this};this.pointClass.prototype.applyOptions.apply(K,[l]);let et=K.x;if($=q.length,this.requireSorting&&etet;)$--;this.updateParallelArrays(K,"splice",[$,0,0]),this.updateParallelArrays(K,$),X&&K.name&&(X[et]=K.name),F.splice($,0,l),(N||this.processedData)&&(this.data.splice($,0,null),this.processData()),Z.legendType==="point"&&this.generatePoints(),k&&(_[0]&&_[0].remove?_[0].remove(!1):(_.shift(),this.updateParallelArrays(K,"shift"),F.shift())),j!==!1&&i(this,"addPoint",{point:K}),this.isDirty=!0,this.isDirtyData=!0,M&&ot.redraw(P)}removePoint(l,M,k){let P=this,j=P.data,N=j[l],$=P.points,Z=P.chart,_=function(){$&&$.length===j.length&&$.splice(l,1),j.splice(l,1),P.options.data.splice(l,1),P.updateParallelArrays(N||{series:P},"splice",[l,1]),N&&N.destroy(),P.isDirty=!0,P.isDirtyData=!0,M&&Z.redraw()};O(k,Z),M=B(M,!0),N?N.firePointEvent("remove",null,_):_()}remove(l,M,k,P){let j=this,N=j.chart;function $(){j.destroy(P),N.isDirtyLegend=N.isDirtyBox=!0,N.linkSeries(P),B(l,!0)&&N.redraw(M)}k!==!1?i(j,"remove",null,$):$()}update(l,M){i(this,"update",{options:l=x(l,this.userOptions)});let k=this,P=k.chart,j=k.userOptions,N=k.initialType||k.type,$=P.options.plotOptions,Z=w[N].prototype,_=k.finishedAnimating&&{animation:!1},ot={},ht,X,F=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],q=l.type||j.type||P.options.chart.type,K=!(this.hasDerivedData||q&&q!==this.type||l.pointStart!==void 0||l.pointInterval!==void 0||l.relativeXValue!==void 0||l.joinBy||l.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(tt=>k.hasOptionChanged(tt)));q=q||N,K&&(F.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"),l.visible!==!1&&F.push("area","graph"),k.parallelArrays.forEach(function(tt){F.push(tt+"Data")}),l.data&&(l.dataSorting&&t(k.options.dataSorting,l.dataSorting),this.setData(l.data,!1))),l=A(j,{index:j.index===void 0?k.index:j.index,pointStart:$?.series?.pointStart??j.pointStart??k.xData?.[0]},!K&&{data:k.options.data},l,_),K&&l.data&&(l.data=k.options.data),(F=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(F)).forEach(function(tt){F[tt]=k[tt],delete k[tt]});let et=!1;if(w[q]){if(et=q!==k.type,k.remove(!1,!1,!1,!0),et)if(P.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(k,w[q].prototype);else{let tt=Object.hasOwnProperty.call(k,"hcEvents")&&k.hcEvents;for(X in Z)k[X]=void 0;t(k,w[q].prototype),tt?k.hcEvents=tt:delete k.hcEvents}}else s(17,!0,P,{missingModuleFor:q});if(F.forEach(function(tt){k[tt]=F[tt]}),k.init(P,l),K&&this.points)for(let tt of((ht=k.options).visible===!1?(ot.graphic=1,ot.dataLabel=1):(this.hasMarkerChanged(ht,j)&&(ot.graphic=1),k.hasDataLabels?.()||(ot.dataLabel=1)),this.points))tt&&tt.series&&(tt.resolveColor(),Object.keys(ot).length&&tt.destroyElements(ot),ht.showInLegend===!1&&tt.legendItem&&P.legend.destroyItem(tt));k.initialType=N,P.linkSeries(),P.setSortedData(),et&&k.linkedSeries.length&&(k.isDirtyData=!0),i(this,"afterUpdate"),B(M,!0)&&P.redraw(!!K&&void 0)}setName(l){this.name=this.options.name=this.userOptions.name=l,this.chart.isDirtyLegend=!0}hasOptionChanged(l){let M=this.chart,k=this.options[l],P=M.options.plotOptions,j=this.userOptions[l],N=B(P?.[this.type]?.[l],P?.series?.[l]);return j&&!g(N)?k!==j:k!==B(N,k)}onMouseOver(){let l=this.chart,M=l.hoverSeries;l.pointer?.setHoverChartIndex(),M&&M!==this&&M.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),l.hoverSeries=this}onMouseOut(){let l=this.options,M=this.chart,k=M.tooltip,P=M.hoverPoint;M.hoverSeries=null,P&&P.onMouseOut(),this&&l.events.mouseOut&&i(this,"mouseOut"),k&&!this.stickyTracking&&(!k.shared||this.noSharedTooltip)&&k.hide(),M.series.forEach(function(j){j.setState("",!0)})}setState(l,M){let k=this,P=k.options,j=k.graph,N=P.inactiveOtherPoints,$=P.states,Z=B($[l||"normal"]&&$[l||"normal"].animation,k.chart.options.chart.animation),_=P.lineWidth,ot=P.opacity;if(l=l||"",k.state!==l&&([k.group,k.markerGroup,k.dataLabelsGroup].forEach(function(ht){ht&&(k.state&&ht.removeClass("highcharts-series-"+k.state),l&&ht.addClass("highcharts-series-"+l))}),k.state=l,!k.chart.styledMode)){if($[l]&&$[l].enabled===!1)return;if(l&&(_=$[l].lineWidth||_+($[l].lineWidthPlus||0),ot=B($[l].opacity,ot)),j&&!j.dashstyle&&R(_))for(let ht of[j,...this.zones.map(X=>X.graph)])ht?.animate({"stroke-width":_},Z);N||[k.group,k.markerGroup,k.dataLabelsGroup,k.labelBySeries].forEach(function(ht){ht&&ht.animate({opacity:ot},Z)})}M&&N&&k.points&&k.setAllPointsToState(l||void 0)}setAllPointsToState(l){this.points.forEach(function(M){M.setState&&M.setState(l)})}setVisible(l,M){let k=this,P=k.chart,j=P.options.chart.ignoreHiddenSeries,N=k.visible;k.visible=l=k.options.visible=k.userOptions.visible=l===void 0?!N:l;let $=l?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(Z=>{k[Z]?.[$]()}),(P.hoverSeries===k||P.hoverPoint?.series===k)&&k.onMouseOut(),k.legendItem&&P.legend.colorizeItem(k,l),k.isDirty=!0,k.options.stacking&&P.series.forEach(Z=>{Z.options.stacking&&Z.visible&&(Z.isDirty=!0)}),k.linkedSeries.forEach(Z=>{Z.setVisible(l,!1)}),j&&(P.isDirtyBox=!0),i(k,$),M!==!1&&P.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(l){this.selected=l=this.options.selected=l===void 0?!this.selected:l,this.checkbox&&(this.checkbox.checked=l),i(this,l?"select":"unselect")}shouldShowTooltip(l,M,k={}){return k.series=this,k.visiblePlotOnly=!0,this.chart.isInsidePlot(l,M,k)}drawLegendSymbol(l,M){st[this.options.legendSymbol||"rectangle"]?.call(this,l,M)}}return v.defaultOptions=J,v.types=Y.seriesTypes,v.registerType=Y.registerSeriesType,t(v.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:it,requireSorting:!0,sorted:!0}),Y.series=v,v}),gt(z,"Core/Chart/Chart.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Axis/Axis.js"],z["Core/Defaults.js"],z["Core/Templating.js"],z["Core/Foundation.js"],z["Core/Globals.js"],z["Core/Renderer/RendererRegistry.js"],z["Core/Series/Series.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Renderer/SVG/SVGRenderer.js"],z["Core/Time.js"],z["Core/Utilities.js"],z["Core/Renderer/HTML/AST.js"],z["Core/Axis/Tick.js"]],function(V,Q,nt,at,st,it,J,Y,W,U,S,O,E,L){let{animate:p,animObject:C,setAnimation:w}=V,{defaultOptions:m,defaultTime:h}=nt,{numberFormat:f}=at,{registerEventOptions:I}=st,{charts:D,doc:g,marginNames:a,svg:x,win:r}=it,{seriesTypes:s}=W,{addEvent:t,attr:e,createElement:i,css:o,defined:n,diffObjects:d,discardElement:b,erase:R,error:c,extend:A,find:T,fireEvent:B,getStyle:H,isArray:u,isNumber:y,isObject:v,isString:G,merge:l,objectEach:M,pick:k,pInt:P,relativeLength:j,removeEvent:N,splat:$,syncTimeout:Z,uniqueKey:_}=O;class ot{static chart(X,F,q){return new ot(X,F,q)}constructor(X,F,q){this.sharedClips={};let K=[...arguments];(G(X)||X.nodeName)&&(this.renderTo=K.shift()),this.init(K[0],K[1])}setZoomOptions(){let X=this.options.chart,F=X.zooming;this.zooming=Rt(Dt({},F),{type:k(X.zoomType,F.type),key:k(X.zoomKey,F.key),pinchType:k(X.pinchType,F.pinchType),singleTouch:k(X.zoomBySingleTouch,F.singleTouch,!1),resetButton:l(F.resetButton,X.resetZoomButton)})}init(X,F){B(this,"init",{args:arguments},function(){let q=l(m,X),K=q.chart;this.userOptions=A({},X),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=F,this.isResizing=0,this.options=q,this.axes=[],this.series=[],this.time=X.time&&Object.keys(X.time).length?new S(X.time):it.time,this.numberFormatter=K.numberFormatter||f,this.styledMode=K.styledMode,this.hasCartesianSeries=K.showAxes,this.index=D.length,D.push(this),it.chartCount++,I(this,K),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()})}initSeries(X){let F=this.options.chart,q=X.type||F.type,K=s[q];K||c(17,!0,this,{missingModuleFor:q});let et=new K;return typeof et.init=="function"&&et.init(this,X),et}setSortedData(){this.getSeriesOrderByLinks().forEach(function(X){X.points||X.data||!X.enabledDataSorting||X.setData(X.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(X,F){return X.linkedSeries.length||F.linkedSeries.length?F.linkedSeries.length-X.linkedSeries.length:0})}orderItems(X,F=0){let q=this[X],K=this.options[X]=$(this.options[X]).slice(),et=this.userOptions[X]=this.userOptions[X]?$(this.userOptions[X]).slice():[];if(this.hasRendered&&(K.splice(F),et.splice(F)),q)for(let tt=F,rt=q.length;tt=Math.max(dt+tt,ft.pos)&&bt<=Math.min(dt+tt+ct.width,ft.pos+ft.len)||(xt.isInsidePlot=!1)}if(!q.ignoreY&&xt.isInsidePlot){let ft=!K&&q.axis&&!q.axis.isXAxis&&q.axis||ut&&(K?ut.xAxis:ut.yAxis)||{pos:rt,len:1/0},bt=q.paneCoordinates?ft.pos+yt:rt+yt;bt>=Math.max(pt+rt,ft.pos)&&bt<=Math.min(pt+rt+ct.height,ft.pos+ft.len)||(xt.isInsidePlot=!1)}return B(this,"afterIsInsidePlot",xt),xt.isInsidePlot}redraw(X){B(this,"beforeRedraw");let F=this.hasCartesianSeries?this.axes:this.colorAxis||[],q=this.series,K=this.pointer,et=this.legend,tt=this.userOptions.legend,rt=this.renderer,lt=rt.isHidden(),dt=[],pt,ut,ct,mt=this.isDirtyBox,yt=this.isDirtyLegend,xt;for(rt.rootFontSize=rt.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),w(!!this.hasRendered&&X,this),lt&&this.temporaryDisplay(),this.layOutTitles(!1),ct=q.length;ct--;)if(((xt=q[ct]).options.stacking||xt.options.centerInCategory)&&(ut=!0,xt.isDirty)){pt=!0;break}if(pt)for(ct=q.length;ct--;)(xt=q[ct]).options.stacking&&(xt.isDirty=!0);q.forEach(function(ft){ft.isDirty&&(ft.options.legendType==="point"?(typeof ft.updateTotals=="function"&&ft.updateTotals(),yt=!0):tt&&(tt.labelFormatter||tt.labelFormat)&&(yt=!0)),ft.isDirtyData&&B(ft,"updatedData")}),yt&&et&&et.options.enabled&&(et.render(),this.isDirtyLegend=!1),ut&&this.getStacks(),F.forEach(function(ft){ft.updateNames(),ft.setScale()}),this.getMargins(),F.forEach(function(ft){ft.isDirty&&(mt=!0)}),F.forEach(function(ft){let bt=ft.min+","+ft.max;ft.extKey!==bt&&(ft.extKey=bt,dt.push(function(){B(ft,"afterSetExtremes",A(ft.eventArgs,ft.getExtremes())),delete ft.eventArgs})),(mt||ut)&&ft.redraw()}),mt&&this.drawChartBox(),B(this,"predraw"),q.forEach(function(ft){(mt||ft.isDirty)&&ft.visible&&ft.redraw(),ft.isDirtyData=!1}),K&&K.reset(!0),rt.draw(),B(this,"redraw"),B(this,"render"),lt&&this.temporaryDisplay(!0),dt.forEach(function(ft){ft.call()})}get(X){let F=this.series;function q(et){return et.id===X||et.options&&et.options.id===X}let K=T(this.axes,q)||T(this.series,q);for(let et=0;!K&&et(F.getPointsCollection().forEach(q=>{k(q.selectedStaging,q.selected)&&X.push(q)}),X),[])}getSelectedSeries(){return this.series.filter(function(X){return X.selected})}setTitle(X,F,q){this.applyDescription("title",X),this.applyDescription("subtitle",F),this.applyDescription("caption",void 0),this.layOutTitles(q)}applyDescription(X,F){let q=this,K=this.options[X]=l(this.options[X],F),et=this[X];et&&F&&(this[X]=et=et.destroy()),K&&!et&&((et=this.renderer.text(K.text,0,0,K.useHTML).attr({align:K.align,class:"highcharts-"+X,zIndex:K.zIndex||4}).add()).update=function(tt,rt){q.applyDescription(X,tt),q.layOutTitles(rt)},this.styledMode||et.css(A(X==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},K.style)),this[X]=et)}layOutTitles(X=!0){let F=[0,0,0],q=this.renderer,K=this.spacingBox;["title","subtitle","caption"].forEach(function(tt){let rt=this[tt],lt=this.options[tt],dt=lt.verticalAlign||"top",pt=tt==="title"?dt==="top"?-3:0:dt==="top"?F[0]+2:0;if(rt){rt.css({width:(lt.width||K.width+(lt.widthAdjust||0))+"px"});let ut=q.fontMetrics(rt).b,ct=Math.round(rt.getBBox(lt.useHTML).height);rt.align(A({y:dt==="bottom"?ut:pt+ut,height:ct},lt),!1,"spacingBox"),lt.floating||(dt==="top"?F[0]=Math.ceil(F[0]+ct):dt==="bottom"&&(F[2]=Math.ceil(F[2]+ct)))}},this),F[0]&&(this.options.title.verticalAlign||"top")==="top"&&(F[0]+=this.options.title.margin),F[2]&&this.options.caption.verticalAlign==="bottom"&&(F[2]+=this.options.caption.margin);let et=!this.titleOffset||this.titleOffset.join(",")!==F.join(",");this.titleOffset=F,B(this,"afterLayOutTitles"),!this.isDirtyBox&&et&&(this.isDirtyBox=this.isDirtyLegend=et,this.hasRendered&&X&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:H(this.renderTo,"width",!0)||0,height:H(this.renderTo,"height",!0)||0}}getChartSize(){let X=this.options.chart,F=X.width,q=X.height,K=this.getContainerBox();this.chartWidth=Math.max(0,F||K.width||600),this.chartHeight=Math.max(0,j(q,this.chartWidth)||(K.height>1?K.height:400)),this.containerBox=K}temporaryDisplay(X){let F=this.renderTo,q;if(X)for(;F&&F.style;)F.hcOrigStyle&&(o(F,F.hcOrigStyle),delete F.hcOrigStyle),F.hcOrigDetached&&(g.body.removeChild(F),F.hcOrigDetached=!1),F=F.parentNode;else for(;F&&F.style&&(g.body.contains(F)||F.parentNode||(F.hcOrigDetached=!0,g.body.appendChild(F)),(H(F,"display",!1)==="none"||F.hcOricDetached)&&(F.hcOrigStyle={display:F.style.display,height:F.style.height,overflow:F.style.overflow},q={display:"block",overflow:"hidden"},F!==this.renderTo&&(q.height=0),o(F,q),F.offsetWidth||F.style.setProperty("display","block","important")),(F=F.parentNode)!==g.body););}setClassName(X){this.container.className="highcharts-container "+(X||"")}getContainer(){let X=this.options,F=X.chart,q="data-highcharts-chart",K=_(),et,tt=this.renderTo;tt||(this.renderTo=tt=F.renderTo),G(tt)&&(this.renderTo=tt=g.getElementById(tt)),tt||c(13,!0,this);let rt=P(e(tt,q));y(rt)&&D[rt]&&D[rt].hasRendered&&D[rt].destroy(),e(tt,q,this.index),tt.innerHTML=E.emptyHTML,F.skipClone||tt.offsetWidth||this.temporaryDisplay(),this.getChartSize();let lt=this.chartHeight,dt=this.chartWidth;o(tt,{overflow:"hidden"}),this.styledMode||(et=A({position:"relative",overflow:"hidden",width:dt+"px",height:lt+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},F.style||{}));let pt=i("div",{id:K},et,tt);this.container=pt,this.getChartSize(),dt===this.chartWidth||(dt=this.chartWidth,this.styledMode||o(pt,{width:k(F.style?.width,dt+"px")})),this.containerBox=this.getContainerBox(),this._cursor=pt.style.cursor;let ut=F.renderer||!x?J.getRendererType(F.renderer):U;if(this.renderer=new ut(pt,dt,lt,void 0,F.forExport,X.exporting&&X.exporting.allowHTML,this.styledMode),w(void 0,this),this.setClassName(F.className),this.styledMode)for(let ct in X.defs)this.renderer.definition(X.defs[ct]);else this.renderer.setStyle(F.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(X){let{spacing:F,margin:q,titleOffset:K}=this;this.resetMargins(),K[0]&&!n(q[0])&&(this.plotTop=Math.max(this.plotTop,K[0]+F[0])),K[2]&&!n(q[2])&&(this.marginBottom=Math.max(this.marginBottom,K[2]+F[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(q,F),B(this,"getMargins"),X||this.getAxisMargins()}getAxisMargins(){let X=this,F=X.axisOffset=[0,0,0,0],q=X.colorAxis,K=X.margin,et=function(tt){tt.forEach(function(rt){rt.visible&&rt.getOffset()})};X.hasCartesianSeries?et(X.axes):q&&q.length&&et(q),a.forEach(function(tt,rt){n(K[rt])||(X[tt]+=F[rt])}),X.setChartSize()}getOptions(){return d(this.userOptions,m)}reflow(X){let F=this,q=F.containerBox,K=F.getContainerBox();delete F.pointer?.chartPosition,!F.isPrinting&&!F.isResizing&&q&&K.width&&((K.width!==q.width||K.height!==q.height)&&(O.clearTimeout(F.reflowTimeout),F.reflowTimeout=Z(function(){F.container&&F.setSize(void 0,void 0,!1)},X?100:0)),F.containerBox=K)}setReflow(){let X=this,F=q=>{X.options?.chart.reflow&&X.hasLoaded&&X.reflow(q)};if(typeof ResizeObserver=="function")new ResizeObserver(F).observe(X.renderTo);else{let q=t(r,"resize",F);t(this,"destroy",q)}}setSize(X,F,q){let K=this,et=K.renderer;K.isResizing+=1,w(q,K);let tt=et.globalAnimation;K.oldChartHeight=K.chartHeight,K.oldChartWidth=K.chartWidth,X!==void 0&&(K.options.chart.width=X),F!==void 0&&(K.options.chart.height=F),K.getChartSize();let{chartWidth:rt,chartHeight:lt,scrollablePixelsX:dt=0,scrollablePixelsY:pt=0}=K;(K.isDirtyBox||rt!==K.oldChartWidth||lt!==K.oldChartHeight)&&(K.styledMode||(tt?p:o)(K.container,{width:`${rt+dt}px`,height:`${lt+pt}px`},tt),K.setChartSize(!0),et.setSize(rt,lt,tt),K.axes.forEach(function(ut){ut.isDirty=!0,ut.setScale()}),K.isDirtyLegend=!0,K.isDirtyBox=!0,K.layOutTitles(),K.getMargins(),K.redraw(tt),K.oldChartHeight=void 0,B(K,"resize"),setTimeout(()=>{K&&B(K,"endResize")},C(tt).duration)),K.isResizing-=1}setChartSize(X){let F,q,K,et,{chartHeight:tt,chartWidth:rt,inverted:lt,spacing:dt,renderer:pt}=this,ut=this.clipOffset,ct=Math[lt?"floor":"round"];this.plotLeft=F=Math.round(this.plotLeft),this.plotTop=q=Math.round(this.plotTop),this.plotWidth=K=Math.max(0,Math.round(rt-F-this.marginRight)),this.plotHeight=et=Math.max(0,Math.round(tt-q-this.marginBottom)),this.plotSizeX=lt?et:K,this.plotSizeY=lt?K:et,this.spacingBox=pt.spacingBox={x:dt[3],y:dt[0],width:rt-dt[3]-dt[1],height:tt-dt[0]-dt[2]},this.plotBox=pt.plotBox={x:F,y:q,width:K,height:et},ut&&(this.clipBox={x:ct(ut[3]),y:ct(ut[0]),width:ct(this.plotSizeX-ut[1]-ut[3]),height:ct(this.plotSizeY-ut[0]-ut[2])}),X||(this.axes.forEach(function(mt){mt.setAxisSize(),mt.setAxisTranslation()}),pt.alignElements()),B(this,"afterSetChartSize",{skipAxes:X})}resetMargins(){B(this,"resetMargins");let X=this,F=X.options.chart,q=F.plotBorderWidth||0,K=q/2;["margin","spacing"].forEach(function(et){let tt=F[et],rt=v(tt)?tt:[tt,tt,tt,tt];["Top","Right","Bottom","Left"].forEach(function(lt,dt){X[et][dt]=k(F[et+lt],rt[dt])})}),a.forEach(function(et,tt){X[et]=k(X.margin[tt],X.spacing[tt])}),X.axisOffset=[0,0,0,0],X.clipOffset=[K,K,K,K],X.plotBorderWidth=q}drawChartBox(){let X=this.options.chart,F=this.renderer,q=this.chartWidth,K=this.chartHeight,et=this.styledMode,tt=this.plotBGImage,rt=X.backgroundColor,lt=X.plotBackgroundColor,dt=X.plotBackgroundImage,pt=this.plotLeft,ut=this.plotTop,ct=this.plotWidth,mt=this.plotHeight,yt=this.plotBox,xt=this.clipRect,ft=this.clipBox,bt=this.chartBackground,vt=this.plotBackground,St=this.plotBorder,kt,Tt,Mt,Ct="animate";bt||(this.chartBackground=bt=F.rect().addClass("highcharts-background").add(),Ct="attr"),et?kt=Tt=bt.strokeWidth():(Tt=(kt=X.borderWidth||0)+(X.shadow?8:0),Mt={fill:rt||"none"},(kt||bt["stroke-width"])&&(Mt.stroke=X.borderColor,Mt["stroke-width"]=kt),bt.attr(Mt).shadow(X.shadow)),bt[Ct]({x:Tt/2,y:Tt/2,width:q-Tt-kt%2,height:K-Tt-kt%2,r:X.borderRadius}),Ct="animate",vt||(Ct="attr",this.plotBackground=vt=F.rect().addClass("highcharts-plot-background").add()),vt[Ct](yt),!et&&(vt.attr({fill:lt||"none"}).shadow(X.plotShadow),dt&&(tt?(dt!==tt.attr("href")&&tt.attr("href",dt),tt.animate(yt)):this.plotBGImage=F.image(dt,pt,ut,ct,mt).add())),xt?xt.animate({width:ft.width,height:ft.height}):this.clipRect=F.clipRect(ft),Ct="animate",St||(Ct="attr",this.plotBorder=St=F.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),et||St.attr({stroke:X.plotBorderColor,"stroke-width":X.plotBorderWidth||0,fill:"none"}),St[Ct](St.crisp({x:pt,y:ut,width:ct,height:mt},-St.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){let X,F,q,K=this,et=K.options.chart,tt=K.options.series;["inverted","angular","polar"].forEach(function(rt){for(F=s[et.type],q=et[rt]||F&&F.prototype[rt],X=tt&&tt.length;!q&&X--;)(F=s[tt[X].type])&&F.prototype[rt]&&(q=!0);K[rt]=q})}linkSeries(X){let F=this,q=F.series;q.forEach(function(K){K.linkedSeries.length=0}),q.forEach(function(K){let{linkedTo:et}=K.options;if(G(et)){let tt;(tt=et===":previous"?F.series[K.index-1]:F.get(et))&&tt.linkedParent!==K&&(tt.linkedSeries.push(K),K.linkedParent=tt,tt.enabledDataSorting&&K.setDataSortingOptions(),K.visible=k(K.options.visible,tt.options.visible,K.visible))}}),B(this,"afterLinkSeries",{isUpdating:X})}renderSeries(){this.series.forEach(function(X){X.translate(),X.render()})}render(){let X=this.axes,F=this.colorAxis,q=this.renderer,K=this.options.chart.axisLayoutRuns||2,et=pt=>{pt.forEach(ut=>{ut.visible&&ut.render()})},tt=0,rt=!0,lt,dt=0;for(let pt of(this.setTitle(),B(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),X)){let{options:ut}=pt,{labels:ct}=ut;if(this.hasCartesianSeries&&pt.horiz&&pt.visible&&ct.enabled&&pt.series.length&&pt.coll!=="colorAxis"&&!this.polar){tt=ut.tickLength,pt.createGroups();let mt=new L(pt,0,"",!0),yt=mt.createLabel("x",ct);if(mt.destroy(),yt&&k(ct.reserveSpace,!y(ut.crossing))&&(tt=yt.getBBox().height+ct.distance+Math.max(ut.offset||0,0)),tt){yt?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-tt,0);(rt||lt||K>1)&&dt(dt?1:1.1),lt=ut/this.plotHeight>(dt?1:1.05),dt++}this.drawChartBox(),this.hasCartesianSeries?et(X):F&&F.length&&et(F),this.seriesGroup||(this.seriesGroup=q.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(X){let F=this,q=l(!0,this.options.credits,X);q.enabled&&!this.credits&&(this.credits=this.renderer.text(q.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){q.href&&(r.location.href=q.href)}).attr({align:q.position.align,zIndex:8}),F.styledMode||this.credits.css(q.style),this.credits.add().align(q.position),this.credits.update=function(K){F.credits=F.credits.destroy(),F.addCredits(K)})}destroy(){let X,F=this,q=F.axes,K=F.series,et=F.container,tt=et&&et.parentNode;for(B(F,"destroy"),F.renderer.forExport?R(D,F):D[F.index]=void 0,it.chartCount--,F.renderTo.removeAttribute("data-highcharts-chart"),N(F),X=q.length;X--;)q[X]=q[X].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),X=K.length;X--;)K[X]=K[X].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(rt){let lt=F[rt];lt&<.destroy&&(F[rt]=lt.destroy())}),et&&(et.innerHTML=E.emptyHTML,N(et),tt&&b(et)),M(F,function(rt,lt){delete F[lt]})}firstRender(){let X=this,F=X.options;X.getContainer(),X.resetMargins(),X.setChartSize(),X.propFromSeries(),X.getAxes();let q=u(F.series)?F.series:[];F.series=[],q.forEach(function(K){X.initSeries(K)}),X.linkSeries(),X.setSortedData(),B(X,"beforeRender"),X.render(),X.pointer?.getChartPosition(),X.renderer.imgCount||X.hasLoaded||X.onload(),X.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(X){X&&this.index!==void 0&&X.apply(this,[this])},this),B(this,"load"),B(this,"render"),n(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:X,title:F}=this;!X||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(F&&F.element.textContent||"").replace(/this.transform({reset:!0,trigger:"zoom"}))}pan(X,F){let q=this,K=typeof F=="object"?F:{enabled:F,type:"x"},et=K.type,tt=et&&q[{x:"xAxis",xy:"axes",y:"yAxis"}[et]].filter(lt=>lt.options.panningEnabled&&!lt.options.isInternal),rt=q.options.chart;rt?.panning&&(rt.panning=K),B(this,"pan",{originalEvent:X},()=>{q.transform({axes:tt,event:X,to:{x:X.chartX-(q.mouseDownX||0),y:X.chartY-(q.mouseDownY||0)},trigger:"pan"}),o(q.container,{cursor:"move"})})}transform(X){let{axes:F=this.axes,event:q,from:K={},reset:et,selection:tt,to:rt={},trigger:lt}=X,{inverted:dt}=this,pt=!1,ut;for(let ct of(this.hoverPoints?.forEach(mt=>mt.setState()),F)){let{horiz:mt,len:yt,minPointOffset:xt=0,options:ft,reversed:bt}=ct,vt=mt?"width":"height",St=mt?"x":"y",kt=k(rt[vt],ct.len),Tt=k(K[vt],ct.len),Mt=10>Math.abs(kt)?1:kt/Tt,Ct=(K[St]||0)+Tt/2-ct.pos,Et=Ct-((rt[St]??ct.pos)+kt/2-ct.pos)/Mt,Ot=bt&&!dt||!bt&&dt?-1:1;if(!et&&(Ct<0||Ct>ct.len))continue;let At=ct.toValue(Et,!0)+(tt?0:xt*Ot),wt=ct.toValue(Et+yt/Mt,!0)-(tt?0:xt*Ot||0),Lt=ct.allExtremes;if(At>wt&&([At,wt]=[wt,At]),Mt===1&&!et&&ct.coll==="yAxis"&&!Lt){for(let $t of ct.series){let It=$t.getExtremes($t.getProcessedData(!0).yData,!0);Lt??(Lt={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),y(It.dataMin)&&y(It.dataMax)&&(Lt.dataMin=Math.min(It.dataMin,Lt.dataMin),Lt.dataMax=Math.max(It.dataMax,Lt.dataMax))}ct.allExtremes=Lt}let{dataMin:qt,dataMax:Kt,min:Xt,max:Ht}=A(ct.getExtremes(),Lt||{}),Ft=qt??ft.min,Yt=Kt??ft.max,Gt=wt-At,Ut=ct.categories?0:Math.min(Gt,Yt-Ft),Nt=Ft-Ut*(n(ft.min)?0:ft.minPadding),Wt=Yt+Ut*(n(ft.max)?0:ft.maxPadding),Vt=ct.allowZoomOutside||Mt===1||lt!=="zoom"&&Mt>1,jt=Math.min(ft.min??Nt,Nt,Vt?Xt:Nt),Bt=Math.max(ft.max??Wt,Wt,Vt?Ht:Wt);(!ct.isOrdinal||Mt!==1||et)&&(At=1&&(wt=At+Gt)),wt>Bt&&(wt=Bt,Mt>=1&&(At=wt-Gt)),(et||ct.series.length&&(At!==Xt||wt!==Ht)&&At>=jt&&wt<=Bt)&&(tt?tt[ct.coll].push({axis:ct,min:At,max:wt}):(ct.isPanning=lt!=="zoom",ct.setExtremes(et?void 0:At,et?void 0:wt,!1,!1,{move:Et,trigger:lt,scale:Mt}),!et&&(At>jt||wt{delete X.selection,X.trigger="zoom",this.transform(X)}):(ut&&!this.resetZoomButton?this.showResetZoom():!ut&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()),this.redraw(lt==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),pt}}return A(ot.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ot.prototype.addAxis,[!0]],yAxis:[ot.prototype.addAxis,[!1]],series:[ot.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"]}),ot}),gt(z,"Extensions/ScrollablePlotArea.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Globals.js"],z["Core/Renderer/RendererRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){let{stop:st}=V,{composed:it}=Q,{addEvent:J,createElement:Y,css:W,defined:U,merge:S,pushUnique:O}=at;function E(){let C=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!C&&(this.scrollablePlotArea=C=new p(this)),C?.applyFixed()}function L(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class p{static compose(w,m,h){O(it,this.compose)&&(J(w,"afterInit",L),J(m,"afterSetChartSize",f=>this.afterSetSize(f.target,f)),J(m,"render",E),J(h,"show",L))}static afterSetSize(w,m){let h,f,I,{minWidth:D,minHeight:g}=w.options.chart.scrollablePlotArea||{},{clipBox:a,plotBox:x,inverted:r,renderer:s}=w;if(!s.forExport&&(D?(w.scrollablePixelsX=h=Math.max(0,D-w.chartWidth),h&&(w.scrollablePlotBox=S(w.plotBox),x.width=w.plotWidth+=h,a[r?"height":"width"]+=h,I=!0)):g&&(w.scrollablePixelsY=f=Math.max(0,g-w.chartHeight),U(f)&&(w.scrollablePlotBox=S(w.plotBox),x.height=w.plotHeight+=f,a[r?"width":"height"]+=f,I=!1)),U(I)&&!m.skipAxes))for(let t of w.axes)t.horiz===I&&(t.setAxisSize(),t.setAxisTranslation())}constructor(w){let m,h=w.options.chart,f=nt.getRendererType(),I=h.scrollablePlotArea||{},D=this.moveFixedElements.bind(this),g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};w.scrollablePixelsX&&(g.overflowX="auto"),w.scrollablePixelsY&&(g.overflowY="auto"),this.chart=w;let a=this.parentDiv=Y("div",{className:"highcharts-scrolling-parent"},{position:"relative"},w.renderTo),x=this.scrollingContainer=Y("div",{className:"highcharts-scrolling"},g,a),r=this.innerContainer=Y("div",{className:"highcharts-inner-container"},void 0,x),s=this.fixedDiv=Y("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(h.style?.zIndex||0)+2,top:0},void 0,!0),t=this.fixedRenderer=new f(s,w.chartWidth,w.chartHeight,h.style);this.mask=t.path().attr({fill:h.backgroundColor||"#fff","fill-opacity":I.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),x.parentNode.insertBefore(s,x),W(w.renderTo,{overflow:"visible"}),J(w,"afterShowResetZoom",D),J(w,"afterApplyDrilldown",D),J(w,"afterLayOutTitles",D),J(x,"scroll",()=>{let{pointer:e,hoverPoint:i}=w;e&&(delete e.chartPosition,i&&(m=i),e.runPointActions(void 0,m,!0))}),r.appendChild(w.container)}applyFixed(){let{chart:w,fixedRenderer:m,isDirty:h,scrollingContainer:f}=this,{axisOffset:I,chartWidth:D,chartHeight:g,container:a,plotHeight:x,plotLeft:r,plotTop:s,plotWidth:t,scrollablePixelsX:e=0,scrollablePixelsY:i=0}=w,{scrollPositionX:o=0,scrollPositionY:n=0}=w.options.chart.scrollablePlotArea||{},d=D+e,b=g+i;m.setSize(D,g),(h??!0)&&(this.isDirty=!1,this.moveFixedElements()),st(w.container),W(a,{width:`${d}px`,height:`${b}px`}),w.renderer.boxWrapper.attr({width:d,height:b,viewBox:[0,0,d,b].join(" ")}),w.chartBackground?.attr({width:d,height:b}),W(f,{width:`${D}px`,height:`${g}px`}),U(h)||(f.scrollLeft=e*o,f.scrollTop=i*n);let R=s-I[0]-1,c=r-I[3]-1,A=s+x+I[2]+1,T=r+t+I[1]+1,B=r+t-e,H=s+x-i,u=[["M",0,0]];e?u=[["M",0,R],["L",r-1,R],["L",r-1,A],["L",0,A],["Z"],["M",B,R],["L",D,R],["L",D,A],["L",B,A],["Z"]]:i&&(u=[["M",c,0],["L",c,s-1],["L",T,s-1],["L",T,0],["Z"],["M",c,H],["L",c,g],["L",T,g],["L",T,H],["Z"]]),w.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:u})}moveFixedElements(){let w,{container:m,inverted:h,scrollablePixelsX:f,scrollablePixelsY:I}=this.chart,D=this.fixedRenderer,g=p.fixedSelectors;for(let a of(f&&!h?w=".highcharts-yaxis":f&&h||I&&!h?w=".highcharts-xaxis":I&&h&&(w=".highcharts-yaxis"),w&&g.push(`${w}:not(.highcharts-radial-axis)`,`${w}-labels:not(.highcharts-radial-axis-labels)`),g))[].forEach.call(m.querySelectorAll(a),x=>{(x.namespaceURI===D.SVG_NS?D.box:D.box.parentNode).appendChild(x),x.style.pointerEvents="auto"})}}return p.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"],p}),gt(z,"Core/Axis/Stacking/StackItem.js",[z["Core/Templating.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{format:at}=V,{series:st}=Q,{destroyObjectProperties:it,fireEvent:J,isNumber:Y,pick:W}=nt;return class{constructor(U,S,O,E,L){let p=U.chart.inverted,C=U.reversed;this.axis=U;let w=this.isNegative=!!O!=!!C;this.options=S=S||{},this.x=E,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=L,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:S.align||(p?w?"left":"right":"center"),verticalAlign:S.verticalAlign||(p?"middle":w?"bottom":"top"),y:S.y,x:S.x},this.textAlign=S.textAlign||(p?w?"right":"left":"center")}destroy(){it(this,this.axis)}render(U){let S=this.axis.chart,O=this.options,E=O.format,L=E?at(E,this,S):O.formatter.call(this);if(this.label)this.label.attr({text:L,visibility:"hidden"});else{this.label=S.renderer.label(L,null,void 0,O.shape,void 0,void 0,O.useHTML,!1,"stack-labels");let p={r:O.borderRadius||0,text:L,padding:W(O.padding,5),visibility:"hidden"};S.styledMode||(p.fill=O.backgroundColor,p.stroke=O.borderColor,p["stroke-width"]=O.borderWidth,this.label.css(O.style||{})),this.label.attr(p),this.label.added||this.label.add(U)}this.label.labelrank=S.plotSizeY,J(this,"afterRender")}setOffset(U,S,O,E,L,p){let{alignOptions:C,axis:w,label:m,options:h,textAlign:f}=this,I=w.chart,D=this.getStackBox({xOffset:U,width:S,boxBottom:O,boxTop:E,defaultX:L,xAxis:p}),{verticalAlign:g}=C;if(m&&D){let a=m.getBBox(void 0,0),x=m.padding,r=W(h.overflow,"justify")==="justify",s;C.x=h.x||0,C.y=h.y||0;let{x:t,y:e}=this.adjustStackPosition({labelBox:a,verticalAlign:g,textAlign:f});D.x-=t,D.y-=e,m.align(C,!1,D),(s=I.isInsidePlot(m.alignAttr.x+C.x+t,m.alignAttr.y+C.y+e))||(r=!1),r&&st.prototype.justifyDataLabel.call(w,m,C,m.alignAttr,a,D),m.attr({x:m.alignAttr.x,y:m.alignAttr.y,rotation:h.rotation,rotationOriginX:a.width*{left:0,center:.5,right:1}[h.textAlign||"center"],rotationOriginY:a.height/2}),W(!r&&h.crop,!0)&&(s=Y(m.x)&&Y(m.y)&&I.isInsidePlot(m.x-x+(m.width||0),m.y)&&I.isInsidePlot(m.x+x,m.y)),m[s?"show":"hide"]()}J(this,"afterSetOffset",{xOffset:U,width:S})}adjustStackPosition({labelBox:U,verticalAlign:S,textAlign:O}){let E={bottom:0,middle:1,top:2,right:1,center:0,left:-1},L=E[S],p=E[O];return{x:U.width/2+U.width/2*p,y:U.height/2*L}}getStackBox(U){let S=this.axis,O=S.chart,{boxTop:E,defaultX:L,xOffset:p,width:C,boxBottom:w}=U,m=S.stacking.usePercentage?100:W(E,this.total,0),h=S.toPixels(m),f=U.xAxis||O.xAxis[0],I=W(L,f.translate(this.x))+p,D=Math.abs(h-S.toPixels(w||Y(S.min)&&S.logarithmic&&S.logarithmic.lin2log(S.min)||0)),g=O.inverted,a=this.isNegative;return g?{x:(a?h:h-D)-O.plotLeft,y:f.height-I-C,width:D,height:C}:{x:I+f.transB-O.plotLeft,y:(a?h-D:h)-O.plotTop,width:C,height:D}}}}),gt(z,"Core/Axis/Stacking/StackingAxis.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Axis/Axis.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Axis/Stacking/StackItem.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){var it;let{getDeferredAnimation:J}=V,{series:{prototype:Y}}=nt,{addEvent:W,correctFloat:U,defined:S,destroyObjectProperties:O,fireEvent:E,isArray:L,isNumber:p,objectEach:C,pick:w}=st;function m(){let s=this.inverted;this.axes.forEach(t=>{t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(t=>{let e=t.xAxis&&t.xAxis.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,w(t.options.stack,""),s?e.top:e.left,s?e.height:e.width].join(","))})}function h(){let s=this.stacking;if(s){let t=s.stacks;C(t,(e,i)=>{O(e),delete t[i]}),s.stackTotalGroup?.destroy()}}function f(){this.stacking||(this.stacking=new r(this))}function I(s,t,e,i){return!S(s)||s.x!==t||i&&s.stackKey!==i?s={x:t,index:0,key:i,stackKey:i}:s.index++,s.key=[e,t,s.index].join(","),s}function D(){let s,t=this,e=t.yAxis,i=t.stackKey||"",o=e.stacking.stacks,n=t.processedXData,d=t.options.stacking,b=t[d+"Stacker"];b&&[i,"-"+i].forEach(R=>{let c=n.length,A,T,B;for(;c--;)A=n[c],s=t.getStackIndicator(s,A,t.index,R),T=o[R]?.[A],(B=T?.points[s.key||""])&&b.call(t,B,T,c)})}function g(s,t,e){let i=t.total?100/t.total:0;s[0]=U(s[0]*i),s[1]=U(s[1]*i),this.stackedYData[e]=s[1]}function a(s){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?Y.setStackedPoints.call(this,s,"group"):s.stacking.resetStacks())}function x(s,t){let e,i,o,n,d,b,R,c,A,T=t||this.options.stacking;if(!T||!this.reserveSpace()||({group:"xAxis"}[T]||"yAxis")!==s.coll)return;let B=this.processedXData,H=this.processedYData,u=[],y=H.length,v=this.options,G=v.threshold||0,l=v.startFromThreshold?G:0,M=v.stack,k=t?`${this.type},${T}`:this.stackKey||"",P="-"+k,j=this.negStacks,N=s.stacking,$=N.stacks,Z=N.oldStacks;for(N.stacksTouched+=1,R=0;R0&&this.singleStacks===!1&&(o.points[b][0]=o.points[this.index+","+c+",0"][0])):(delete o.points[b],delete o.points[this.index]);let _=o.total||0;T==="percent"?(n=i?k:P,_=j&&$[n]?.[c]?(n=$[n][c]).total=Math.max(n.total||0,_)+Math.abs(A)||0:U(_+(Math.abs(A)||0))):T==="group"?(L(A)&&(A=A[0]),A!==null&&_++):_=U(_+(A||0)),T==="group"?o.cumulative=(_||1)-1:o.cumulative=U(w(o.cumulative,l)+(A||0)),o.total=_,A!==null&&(o.points[b].push(o.cumulative),u[R]=o.cumulative,o.hasValidPoints=!0)}T==="percent"&&(N.usePercentage=!0),T!=="group"&&(this.stackedYData=u),N.oldStacks={}}class r{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,o=i.series,n=i.coll==="xAxis",d=i.options.reversedStacks,b=o.length;for(this.resetStacks(),this.usePercentage=!1,e=b;e--;)t=o[d?e:b-e-1],n&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!n)for(e=0;e{C(t,e=>{e.cumulative=e.total})}))}resetStacks(){C(this.stacks,t=>{C(t,(e,i)=>{p(e.touched)&&e.touched{C(b,R=>{R.render(d)})}),d.animate({opacity:1},n)}}return(it||(it={})).compose=function(s,t,e){let i=t.prototype,o=e.prototype;i.getStacks||(W(s,"init",f),W(s,"destroy",h),i.getStacks=m,o.getStackIndicator=I,o.modifyStacks=D,o.percentStacker=g,o.setGroupedPoints=a,o.setStackedPoints=x)},it}),gt(z,"Series/Line/LineSeries.js",[z["Core/Series/Series.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{defined:at,merge:st,isObject:it}=nt;class J extends V{drawGraph(){let W=this.options,U=(this.gappedPath||this.getGraphPath).call(this),S=this.chart.styledMode;[this,...this.zones].forEach((O,E)=>{let L,p=O.graph,C=p?"animate":"attr",w=O.dashStyle||W.dashStyle;p?(p.endX=this.preventGraphAnimation?null:U.xMap,p.animate({d:U})):U.length&&(O.graph=p=this.chart.renderer.path(U).addClass("highcharts-graph"+(E?` highcharts-zone-graph-${E-1} `:" ")+(E&&O.className||"")).attr({zIndex:1}).add(this.group)),p&&!S&&(L={stroke:!E&&W.lineColor||O.color||this.color||"#cccccc","stroke-width":W.lineWidth||0,fill:this.fillGraph&&this.color||"none"},w?L.dashstyle=w:W.linecap!=="square"&&(L["stroke-linecap"]=L["stroke-linejoin"]="round"),p[C](L).shadow(E<2&&W.shadow&&st({filterUnits:"userSpaceOnUse"},it(W.shadow)?W.shadow:{}))),p&&(p.startX=U.xMap,p.isArea=U.isArea)})}getGraphPath(W,U,S){let O=this,E=O.options,L=[],p=[],C,w=E.step,m=(W=W||O.points).reversed;return m&&W.reverse(),(w={right:1,center:2}[w]||w&&3)&&m&&(w=4-w),(W=this.getValidPoints(W,!1,!(E.connectNulls&&!U&&!S))).forEach(function(h,f){let I,D=h.plotX,g=h.plotY,a=W[f-1],x=h.isNull||typeof g!="number";(h.leftCliff||a&&a.rightCliff)&&!S&&(C=!0),x&&!at(U)&&f>0?C=!E.connectNulls:x&&!U?C=!0:(f===0||C?I=[["M",h.plotX,h.plotY]]:O.getPointSpline?I=[O.getPointSpline(W,h,f)]:w?(I=w===1?[["L",a.plotX,g]]:w===2?[["L",(a.plotX+D)/2,a.plotY],["L",(a.plotX+D)/2,g]]:[["L",D,a.plotY]]).push(["L",D,g]):I=[["L",D,g]],p.push(h.x),w&&(p.push(h.x),w===2&&p.push(h.x)),L.push.apply(L,I),C=!1)}),L.xMap=p,O.graphPath=L,L}}return J.defaultOptions=st(V.defaultOptions,{legendSymbol:"lineMarker"}),Q.registerSeriesType("line",J),J}),gt(z,"Series/Area/AreaSeriesDefaults.js",[],function(){return{threshold:0,legendSymbol:"areaMarker"}}),gt(z,"Series/Area/AreaSeries.js",[z["Series/Area/AreaSeriesDefaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{seriesTypes:{line:at}}=Q,{extend:st,merge:it,objectEach:J,pick:Y}=nt;class W extends at{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:S,options:O}=this;[this,...this.zones].forEach((E,L)=>{let p={},C=E.fillColor||O.fillColor,w=E.area,m=w?"animate":"attr";w?(w.endX=this.preventGraphAnimation?null:S.xMap,w.animate({d:S})):(p.zIndex=0,(w=E.area=this.chart.renderer.path(S).addClass("highcharts-area"+(L?` highcharts-zone-area-${L-1} `:" ")+(L&&E.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(p.fill=C||E.color||this.color,p["fill-opacity"]=C?1:O.fillOpacity??.75,w.css({pointerEvents:this.stickyTracking?"none":"auto"})),w[m](p),w.startX=S.xMap,w.shiftUnit=O.step?2:1})}getGraphPath(S){let O,E,L,p=at.prototype.getGraphPath,C=this.options,w=C.stacking,m=this.yAxis,h=[],f=[],I=this.index,D=m.stacking.stacks[this.stackKey],g=C.threshold,a=Math.round(m.getThreshold(C.threshold)),x=Y(C.connectNulls,w==="percent"),r=function(n,d,b){let R=S[n],c=w&&D[R.x].points[I],A=R[b+"Null"]||0,T=R[b+"Cliff"]||0,B,H,u=!0;T||A?(B=(A?c[0]:c[1])+T,H=c[0]+T,u=!!A):!w&&S[d]&&S[d].isNull&&(B=H=g),B!==void 0&&(f.push({plotX:O,plotY:B===null?a:m.getThreshold(B),isNull:u,isCliff:!0}),h.push({plotX:O,plotY:H===null?a:m.getThreshold(H),doCurve:!1}))};S=S||this.points,w&&(S=this.getStackPoints(S));for(let n=0,d=S.length;na.visible);L.forEach(function(a,x){let r=0,s,t;if(m[a]&&!m[a].isNull)E.push(m[a]),[-1,1].forEach(function(e){let i=e===1?"rightNull":"leftNull",o=w[L[x+e]],n=0;if(o){let d=D;for(;d>=0&&d=0&&eD&&O>C?(O=Math.max(D,C),L=2*C-O):Oa&&L>C?(L=Math.max(a,C),O=2*C-L):L1){let s=this.xAxis.series.filter(o=>o.visible).map(o=>o.index),t=0,e=0;f(this.xAxis.stacking?.stacks,o=>{if(typeof x.x=="number"){let n=o[x.x.toString()];if(n&&C(n.points[this.index])){let d=Object.keys(n.points).filter(b=>!b.match(",")&&n.points[b]&&n.points[b].length>1).map(parseFloat).filter(b=>s.indexOf(b)!==-1).sort((b,R)=>R-b);t=d.indexOf(this.index),e=d.length}}}),t=this.xAxis.reversed?e-1-t:t;let i=(e-1)*r.paddedWidth+a;g=(x.plotX||0)+i/2-a-t*r.paddedWidth}return g}translate(){let g=this,a=g.chart,x=g.options,r=g.dense=g.closestPointRange*g.xAxis.transA<2,s=g.borderWidth=h(x.borderWidth,r?0:1),t=g.xAxis,e=g.yAxis,i=x.threshold,o=h(x.minPointLength,5),n=g.getColumnMetrics(),d=n.width,b=g.pointXOffset=n.offset,R=g.dataMin,c=g.dataMax,A=g.translatedThreshold=e.getThreshold(i),T=g.barW=Math.max(d,1+2*s);x.pointPadding&&(T=Math.ceil(T)),st.prototype.translate.apply(g),g.points.forEach(function(B){let H=h(B.yBottom,A),u=999+Math.abs(H),y=B.plotX||0,v=S(B.plotY,-u,e.len+u),G,l=Math.min(v,H),M=Math.max(v,H)-l,k=d,P=y+b,j=T;o&&Math.abs(M)o?H-o:A-(G?o:0)),E(B.options.pointWidth)&&(P-=Math.round(((k=j=Math.ceil(B.options.pointWidth))-d)/2)),x.centerInCategory&&!x.stacking&&(P=g.adjustForMissingColumns(P,k,B,n)),B.barX=P,B.pointWidth=k,B.tooltipPos=a.inverted?[S(e.len+e.pos-a.plotLeft-v,e.pos-a.plotLeft,e.len+e.pos-a.plotLeft),t.len+t.pos-a.plotTop-P-j/2,M]:[t.left-a.plotLeft+P+j/2,S(v+e.pos-a.plotTop,e.pos-a.plotTop,e.len+e.pos-a.plotTop),M],B.shapeType=g.pointClass.prototype.shapeType||"roundedRect",B.shapeArgs=g.crispCol(P,B.isNull?A:l,j,B.isNull?0:M)}),p(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(g,a){let x=this.options,r=this.pointAttrToOptions||{},s=r.stroke||"borderColor",t=r["stroke-width"]||"borderWidth",e,i,o,n=g&&g.color||this.color,d=g&&g[s]||x[s]||n,b=g&&g.options.dashStyle||x.dashStyle,R=g&&g[t]||x[t]||this[t]||0,c=h(g&&g.opacity,x.opacity,1);g&&this.zones.length&&(i=g.getZone(),n=g.options.color||i&&(i.color||g.nonZonedColor)||this.color,i&&(d=i.borderColor||d,b=i.dashStyle||b,R=i.borderWidth||R)),a&&g&&(o=(e=m(x.states[a],g.options.states&&g.options.states[a]||{})).brightness,n=e.color||o!==void 0&&W(n).brighten(e.brightness).get()||n,d=e[s]||d,R=e[t]||R,b=e.dashStyle||b,c=h(e.opacity,c));let A={fill:n,stroke:d,"stroke-width":R,opacity:c};return b&&(A.dashstyle=b),A}drawPoints(g=this.points){let a,x=this,r=this.chart,s=x.options,t=r.renderer,e=s.animationLimit||250;g.forEach(function(i){let o=i.plotY,n=i.graphic,d=!!n,b=n&&r.pointCounts?.enabled)}function h(s,t,e,i,o){let{chart:n,enabledDataSorting:d}=this,b=this.isCartesian&&n.inverted,R=s.plotX,c=s.plotY,A=e.rotation||0,T=J(R)&&J(c)&&n.isInsidePlot(R,Math.round(c),{inverted:b,paneCoordinates:!0,series:this}),B=A===0&&L(e.overflow,d?"none":"justify")==="justify",H=this.visible&&s.visible!==!1&&J(R)&&(s.series.forceDL||d&&!B||T||L(e.inside,!!this.options.stacking)&&i&&n.isInsidePlot(R,b?i.x+1:i.y+i.height-1,{inverted:b,paneCoordinates:!0,series:this})),u=s.pos();if(H&&u){var y;let v=t.getBBox(),G=t.getBBox(void 0,0),l={right:1,center:.5}[e.align||0]||0,M={bottom:1,middle:.5}[e.verticalAlign||0]||0;if(i=Y({x:u[0],y:Math.round(u[1]),width:0,height:0},i||{}),e.alignTo==="plotEdges"&&this.isCartesian&&(i[b?"x":"y"]=0,i[b?"width":"height"]=this.yAxis?.len||0),Y(e,{width:v.width,height:v.height}),y=i,d&&this.xAxis&&!B&&this.setDataLabelStartPos(s,t,o,T,y),t.align(O(e,{width:G.width,height:G.height}),!1,i,!1),t.alignAttr.x+=l*(G.width-v.width),t.alignAttr.y+=M*(G.height-v.height),t[t.placed?"animate":"attr"]({x:t.alignAttr.x+(v.width-G.width)/2,y:t.alignAttr.y+(v.height-G.height)/2,rotationOriginX:(t.width||0)/2,rotationOriginY:(t.height||0)/2}),B&&i.height>=0)this.justifyDataLabel(t,e,t.alignAttr,v,i,o);else if(L(e.crop,!0)){let{x:k,y:P}=t.alignAttr;H=n.isInsidePlot(k,P,{paneCoordinates:!0,series:this})&&n.isInsidePlot(k+v.width-1,P+v.height-1,{paneCoordinates:!0,series:this})}e.shape&&!A&&t[o?"attr":"animate"]({anchorX:u[0],anchorY:u[1]})}o&&d&&(t.placed=!1),H||d&&!B?(t.show(),t.placed=!0):(t.hide(),t.placed=!1)}function f(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function I(s){let t=this.hasRendered||0,e=this.initDataLabelsGroup().attr({opacity:+t});return!t&&e&&(this.visible&&e.show(),this.options.animation?e.animate({opacity:1},s):e.attr({opacity:1})),e}function D(s){let t;s=s||this.points;let e=this,i=e.chart,o=e.options,n=i.renderer,{backgroundColor:d,plotBackgroundColor:b}=i.options.chart,R=n.getContrast(S(b)&&b||S(d)&&d||"#000000"),c=x(e),{animation:A,defer:T}=c[0],B=T?st(i,A,e):{defer:0,duration:0};W(this,"drawDataLabels"),e.hasDataLabels?.()&&(t=this.initDataLabels(B),s.forEach(H=>{let u=H.dataLabels||[];C(a(c,H.dlOptions||H.options?.dataLabels)).forEach((v,G)=>{let l=v.enabled&&(H.visible||H.dataLabelOnHidden)&&(!H.isNull||H.dataLabelOnNull)&&function(q,K){let et=K.filter;if(et){let tt=et.operator,rt=q[et.property],lt=et.value;return tt===">"&&rt>lt||tt==="<"&&rt="&&rt>=lt||tt==="<="&&rt<=lt||tt==="=="&&rt==lt||tt==="==="&&rt===lt||tt==="!="&&rt!=lt||tt==="!=="&&rt!==lt}return!0}(H,v),{backgroundColor:M,borderColor:k,distance:P,style:j={}}=v,N,$,Z,_,ot={},ht=u[G],X=!ht,F;if(l&&($=L(v[H.formatPrefix+"Format"],v.format),N=H.getLabelConfig(),Z=J($)?it($,N,i):(v[H.formatPrefix+"Formatter"]||v.formatter).call(N,v),_=v.rotation,!i.styledMode&&(j.color=L(v.color,j.color,S(e.color)?e.color:void 0,"#000000"),j.color==="contrast"?(M!=="none"&&(F=M),H.contrastColor=n.getContrast(F!=="auto"&&F||H.color||e.color),j.color=F||!J(P)&&v.inside||0>p(P||0)||o.stacking?H.contrastColor:R):delete H.contrastColor,o.cursor&&(j.cursor=o.cursor)),ot={r:v.borderRadius||0,rotation:_,padding:v.padding,zIndex:1},i.styledMode||(ot.fill=M==="auto"?H.color:M,ot.stroke=k==="auto"?H.color:k,ot["stroke-width"]=v.borderWidth),E(ot,(q,K)=>{q===void 0&&delete ot[K]})),!ht||l&&J(Z)&&!!ht.div==!!v.useHTML&&(ht.rotation&&v.rotation||ht.rotation===v.rotation)||(ht=void 0,X=!0),l&&J(Z)&&(ht?ot.text=Z:(ht=n.label(Z,0,0,v.shape,void 0,void 0,v.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+H.colorIndex+" "+(v.className||"")+(v.useHTML?" highcharts-tracker":"")),ht)){ht.options=v,ht.attr(ot),i.styledMode||ht.css(j).shadow(v.shadow);let q=v[H.formatPrefix+"TextPath"]||v.textPath;q&&!v.useHTML&&(ht.setTextPath(H.getDataLabelPath?.(ht)||H.graphic,q),H.dataLabelPath&&!q.enabled&&(H.dataLabelPath=H.dataLabelPath.destroy())),ht.added||ht.add(t),e.alignDataLabel(H,ht,v,void 0,X),ht.isActive=!0,u[G]&&u[G]!==ht&&u[G].destroy(),u[G]=ht}});let y=u.length;for(;y--;)u[y]&&u[y].isActive?u[y].isActive=!1:(u[y]?.destroy(),u.splice(y,1));H.dataLabel=u[0],H.dataLabels=u})),W(this,"afterDrawDataLabels")}function g(s,t,e,i,o,n){let d=this.chart,b=t.align,R=t.verticalAlign,c=s.box?0:s.padding||0,A=d.inverted?this.yAxis:this.xAxis,T=A?A.left-d.plotLeft:0,B=d.inverted?this.xAxis:this.yAxis,H=B?B.top-d.plotTop:0,{x:u=0,y=0}=t,v,G;return(v=(e.x||0)+c+T)<0&&(b==="right"&&u>=0?(t.align="left",t.inside=!0):u-=v,G=!0),(v=(e.x||0)+i.width-c+T)>d.plotWidth&&(b==="left"&&u<=0?(t.align="right",t.inside=!0):u+=d.plotWidth-v,G=!0),(v=e.y+c+H)<0&&(R==="bottom"&&y>=0?(t.verticalAlign="top",t.inside=!0):y-=v,G=!0),(v=(e.y||0)+i.height-c+H)>d.plotHeight&&(R==="top"&&y<=0?(t.verticalAlign="bottom",t.inside=!0):y+=d.plotHeight-v,G=!0),G&&(t.x=u,t.y=y,s.placed=!n,s.align(t,void 0,o)),G}function a(s,t){let e=[],i;if(U(s)&&!U(t))e=s.map(function(o){return O(o,t)});else if(U(t)&&!U(s))e=t.map(function(o){return O(s,o)});else if(U(s)||U(t)){if(U(s)&&U(t))for(i=Math.max(s.length,t.length);i--;)e[i]=O(s[i],t[i])}else e=O(s,t);return e}function x(s){let t=s.chart.options.plotOptions;return C(a(a(t?.series?.dataLabels,t?.[s.type]?.dataLabels),s.options.dataLabels))}function r(s,t,e,i,o){let n=this.chart,d=n.inverted,b=this.xAxis,R=b.reversed,c=((d?t.height:t.width)||0)/2,A=s.pointWidth,T=A?A/2:0;t.startXPos=d?o.x:R?-c-T:b.width-c+T,t.startYPos=d?R?this.yAxis.height-c+T:-c-T:o.y,i?t.visibility==="hidden"&&(t.show(),t.attr({opacity:0}).animate({opacity:1})):t.attr({opacity:1}).animate({opacity:0},void 0,t.hide),n.hasRendered&&(e&&t.attr({x:t.startXPos,y:t.startYPos}),t.placed=!0)}w.compose=function(s){let t=s.prototype;t.initDataLabels||(t.initDataLabels=I,t.initDataLabelsGroup=f,t.alignDataLabel=h,t.drawDataLabels=D,t.justifyDataLabel=g,t.setDataLabelStartPos=r,t.hasDataLabels=m)}}(at||(at={})),at}),gt(z,"Series/Column/ColumnDataLabel.js",[z["Core/Series/DataLabel.js"],z["Core/Globals.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){var st;let{composed:it}=Q,{series:J}=nt,{merge:Y,pick:W,pushUnique:U}=at;return function(S){function O(E,L,p,C,w){let m=this.chart.inverted,h=E.series,f=(h.xAxis?h.xAxis.len:this.chart.plotSizeX)||0,I=(h.yAxis?h.yAxis.len:this.chart.plotSizeY)||0,D=E.dlBox||E.shapeArgs,g=W(E.below,E.plotY>W(this.translatedThreshold,I)),a=W(p.inside,!!this.options.stacking);if(D){if(C=Y(D),!(p.overflow==="allow"&&p.crop===!1)){C.y<0&&(C.height+=C.y,C.y=0);let x=C.y+C.height-I;x>0&&x\u25CF {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}}),gt(z,"Series/Scatter/ScatterSeries.js",[z["Series/Scatter/ScatterSeriesDefaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{column:at,line:st}=Q.seriesTypes,{addEvent:it,extend:J,merge:Y}=nt;class W extends st{applyJitter(){let S=this,O=this.options.jitter,E=this.points.length;O&&this.points.forEach(function(L,p){["x","y"].forEach(function(C,w){if(O[C]&&!L.isNull){let m=`plot${C.toUpperCase()}`,h=S[`${C}Axis`],f=O[C]*h.transA;if(h&&!h.logarithmic){let I=Math.max(0,(L[m]||0)-f),D=Math.min(h.len,(L[m]||0)+f);L[m]=I+(D-I)*function(g){let a=1e4*Math.sin(g);return a-Math.floor(a)}(p+w*E),C==="x"&&(L.clientX=L.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return W.defaultOptions=Y(st.defaultOptions,V),J(W.prototype,{drawTracker:at.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),it(W,"afterTranslate",function(){this.applyJitter()}),Q.registerSeriesType("scatter",W),W}),gt(z,"Series/CenteredUtilities.js",[z["Core/Globals.js"],z["Core/Series/Series.js"],z["Core/Utilities.js"]],function(V,Q,nt){var at,st;let{deg2rad:it}=V,{fireEvent:J,isNumber:Y,pick:W,relativeLength:U}=nt;return(st=at||(at={})).getCenter=function(){let S=this.options,O=this.chart,E=2*(S.slicedOffset||0),L=O.plotWidth-2*E,p=O.plotHeight-2*E,C=S.center,w=Math.min(L,p),m=S.thickness,h,f=S.size,I=S.innerSize||0,D,g;typeof f=="string"&&(f=parseFloat(f)),typeof I=="string"&&(I=parseFloat(I));let a=[W(C[0],"50%"),W(C[1],"50%"),W(f&&f<0?void 0:S.size,"100%"),W(I&&I<0?void 0:S.innerSize||0,"0%")];for(!O.angular||this instanceof Q||(a[3]=0),D=0;D<4;++D)g=a[D],h=D<2||D===2&&/%$/.test(g),a[D]=U(g,[L,p,w,a[2]][D])+(h?E:0);return a[3]>a[2]&&(a[3]=a[2]),Y(m)&&2*m0&&(a[3]=a[2]-2*m),J(this,"afterGetCenter",{positions:a}),a},st.getStartAndEndRadians=function(S,O){let E=Y(S)?S:0,L=Y(O)&&O>E&&O-E<360?O:E+360;return{start:it*(E+-90),end:it*(L+-90)}},at}),gt(z,"Series/Pie/PiePoint.js",[z["Core/Animation/AnimationUtilities.js"],z["Core/Series/Point.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{setAnimation:at}=V,{addEvent:st,defined:it,extend:J,isNumber:Y,pick:W,relativeLength:U}=nt;class S extends Q{getConnectorPath(E){let L=E.dataLabelPosition,p=E.options||{},C=p.connectorShape,w=this.connectorShapes[C]||C;return L&&w.call(this,Rt(Dt({},L.computed),{alignment:L.alignment}),L.connectorPosition,p)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(E){let L=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(L.x,L.y,L.r+E,L.r+E,{innerR:L.r-1,start:L.start,end:L.end,borderRadius:L.borderRadius})}constructor(E,L,p){super(E,L,p),this.half=0,this.name??(this.name="Slice");let C=w=>{this.slice(w.type==="select")};st(this,"select",C),st(this,"unselect",C)}isValid(){return Y(this.y)&&this.y>=0}setVisible(E,L=!0){E!==this.visible&&this.update({visible:E??!this.visible},L,void 0,!1)}slice(E,L,p){let C=this.series;at(p,C.chart),L=W(L,!0),this.sliced=this.options.sliced=E=it(E)?E:!this.sliced,C.options.data[C.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return J(S.prototype,{connectorShapes:{fixedOffset:function(O,E,L){let p=E.breakAt,C=E.touchingSliceAt,w=L.softConnector?["C",O.x+(O.alignment==="left"?-5:5),O.y,2*p.x-C.x,2*p.y-C.y,p.x,p.y]:["L",p.x,p.y];return[["M",O.x,O.y],w,["L",C.x,C.y]]},straight:function(O,E){let L=E.touchingSliceAt;return[["M",O.x,O.y],["L",L.x,L.y]]},crookedLine:function(O,E,L){let{breakAt:p,touchingSliceAt:C}=E,{series:w}=this,[m,h,f]=w.center,I=f/2,{plotLeft:D,plotWidth:g}=w.chart,a=O.alignment==="left",{x,y:r}=O,s=p.x;if(L.crookDistance){let e=U(L.crookDistance,1);s=a?m+I+(g+D-m-I)*(1-e):D+(m-I)*e}else s=m+(h-r)*Math.tan((this.angle||0)-Math.PI/2);let t=[["M",x,r]];return(a?s<=x&&s>=p.x:s>=x&&s<=p.x)&&t.push(["L",s,r]),t.push(["L",p.x,p.y],["L",C.x,C.y]),t}}}),S}),gt(z,"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}}}}),gt(z,"Series/Pie/PieSeries.js",[z["Series/CenteredUtilities.js"],z["Series/Column/ColumnSeries.js"],z["Core/Globals.js"],z["Series/Pie/PiePoint.js"],z["Series/Pie/PieSeriesDefaults.js"],z["Core/Series/Series.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Renderer/SVG/Symbols.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y,W){let{getStartAndEndRadians:U}=V,{noop:S}=nt,{clamp:O,extend:E,fireEvent:L,merge:p,pick:C}=W;class w extends it{animate(h){let f=this,I=f.points,D=f.startAngleRad;h||I.forEach(function(g){let a=g.graphic,x=g.shapeArgs;a&&x&&(a.attr({r:C(g.startR,f.center&&f.center[3]/2),start:D,end:D}),a.animate({r:x.r,start:x.start,end:x.end},f.options.animation))})}drawEmpty(){let h,f,I=this.startAngleRad,D=this.endAngleRad,g=this.options;this.total===0&&this.center?(h=this.center[0],f=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(h,f,this.center[1]/2,0,I,D).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Y.arc(h,f,this.center[2]/2,0,{start:I,end:D,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":g.borderWidth,fill:g.fillColor||"none",stroke:g.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let h=this.chart.renderer;this.points.forEach(function(f){f.graphic&&f.hasNewShapeType()&&(f.graphic=f.graphic.destroy()),f.graphic||(f.graphic=h[f.shapeType](f.shapeArgs).add(f.series.group),f.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(h,f,I,D){let g=this.center,a=this.radii?this.radii[I.index]||0:g[2]/2,x=D.dataLabelPosition,r=x?.distance||0,s=Math.asin(O((h-g[1])/(a+r),-1,1));return g[0]+Math.cos(s)*(a+r)*(f?-1:1)+(r>0?(f?-1:1)*(D.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let h,f,I,D,g=this,a=g.chart;this.drawEmpty(),g.group&&!a.styledMode&&g.group.shadow(g.options.shadow),g.points.forEach(function(x){let r={};f=x.graphic,!x.isNull&&f?(D=x.shapeArgs,h=x.getTranslate(),a.styledMode||(I=g.pointAttribs(x,x.selected&&"select")),x.delayedRendering?(f.setRadialReference(g.center).attr(D).attr(h),a.styledMode||f.attr(I).attr({"stroke-linejoin":"round"}),x.delayedRendering=!1):(f.setRadialReference(g.center),a.styledMode||p(!0,r,I),p(!0,r,D,h),f.animate(r)),f.attr({visibility:x.visible?"inherit":"hidden"}),f.addClass(x.getClassName(),!0)):f&&(x.graphic=f.destroy())})}sortByAngle(h,f){h.sort(function(I,D){return I.angle!==void 0&&(D.angle-I.angle)*f})}translate(h){L(this,"translate"),this.generatePoints();let f=this.options,I=f.slicedOffset,D=U(f.startAngle,f.endAngle),g=this.startAngleRad=D.start,a=(this.endAngleRad=D.end)-g,x=this.points,r=f.ignoreHiddenPoint,s=x.length,t,e,i,o,n,d,b,R=0;for(h||(this.center=h=this.getCenter()),d=0;d1.5*Math.PI?i-=2*Math.PI:i<-Math.PI/2&&(i+=2*Math.PI),b.slicedTranslation={translateX:Math.round(Math.cos(i)*I),translateY:Math.round(Math.sin(i)*I)},o=Math.cos(i)*h[2]/2,n=Math.sin(i)*h[2]/2,b.tooltipPos=[h[0]+.7*o,h[1]+.7*n],b.half=i<-Math.PI/2||i>Math.PI/2?1:0,b.angle=i}L(this,"afterTranslate")}updateTotals(){let h=this.points,f=h.length,I=this.options.ignoreHiddenPoint,D,g,a=0;for(D=0;D0&&(g.visible||!I)?g.y/a*100:0,g.total=a}}return w.defaultOptions=p(it.defaultOptions,st),E(w.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:Q.prototype.drawTracker,getCenter:V.getCenter,getSymbol:S,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:Q.prototype.pointAttribs,pointClass:at,requireSorting:!1,searchPoint:S,trackerGroups:["group","dataLabelsGroup"]}),J.registerSeriesType("pie",w),w}),gt(z,"Series/Pie/PieDataLabel.js",[z["Core/Series/DataLabel.js"],z["Core/Globals.js"],z["Core/Renderer/RendererUtilities.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){var it;let{composed:J,noop:Y}=Q,{distribute:W}=nt,{series:U}=at,{arrayMax:S,clamp:O,defined:E,pick:L,pushUnique:p,relativeLength:C}=st;return function(w){let m={radialDistributionY:function(g,a){return(a.dataLabelPosition?.top||0)+g.distributeBox.pos},radialDistributionX:function(g,a,x,r,s){let t=s.dataLabelPosition;return g.getX(x<(t?.top||0)+2||x>(t?.bottom||0)-2?r:x,a.half,a,s)},justify:function(g,a,x,r){return r[0]+(g.half?-1:1)*(x+(a.dataLabelPosition?.distance||0))},alignToPlotEdges:function(g,a,x,r){let s=g.getBBox().width;return a?s+r:x-s-r},alignToConnectors:function(g,a,x,r){let s=0,t;return g.forEach(function(e){(t=e.dataLabel.getBBox().width)>s&&(s=t)}),a?s+r:x-s-r}};function h(g,a){let{center:x,options:r}=this,s=x[2]/2,t=g.angle||0,e=Math.cos(t),i=Math.sin(t),o=x[0]+e*s,n=x[1]+i*s,d=Math.min((r.slicedOffset||0)+(r.borderWidth||0),a/5);return{natural:{x:o+e*a,y:n+i*a},computed:{},alignment:a<0?"center":g.half?"right":"left",connectorPosition:{breakAt:{x:o+e*d,y:n+i*d},touchingSliceAt:{x:o,y:n}},distance:a}}function f(){let g=this,a=g.points,x=g.chart,r=x.plotWidth,s=x.plotHeight,t=x.plotLeft,e=Math.round(x.chartWidth/3),i=g.center,o=i[2]/2,n=i[1],d=[[],[]],b=[0,0,0,0],R=g.dataLabelPositioners,c,A,T,B=0;g.visible&&g.hasDataLabels?.()&&(a.forEach(H=>{(H.dataLabels||[]).forEach(u=>{u.shortened&&(u.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),u.shortened=!1)})}),U.prototype.drawDataLabels.apply(g),a.forEach(H=>{(H.dataLabels||[]).forEach((u,y)=>{let v=i[2]/2,G=u.options,l=C(G?.distance||0,v);y===0&&d[H.half].push(H),!E(G?.style?.width)&&u.getBBox().width>e&&(u.css({width:Math.round(.7*e)+"px"}),u.shortened=!0),u.dataLabelPosition=this.getDataLabelPosition(H,l),B=Math.max(B,l)})}),d.forEach((H,u)=>{let y=H.length,v=[],G,l,M=0,k;y&&(g.sortByAngle(H,u-.5),B>0&&(G=Math.max(0,n-o-B),l=Math.min(n+o+B,x.plotHeight),H.forEach(P=>{(P.dataLabels||[]).forEach(j=>{let N=j.dataLabelPosition;N&&N.distance>0&&(N.top=Math.max(0,n-o-N.distance),N.bottom=Math.min(n+o+N.distance,x.plotHeight),M=j.getBBox().height||21,P.distributeBox={target:(j.dataLabelPosition?.natural.y||0)-N.top+M/2,size:M,rank:P.y},v.push(P.distributeBox))})}),W(v,k=l+M-G,k/5)),H.forEach(P=>{(P.dataLabels||[]).forEach(j=>{let N=j.options||{},$=P.distributeBox,Z=j.dataLabelPosition,_=Z?.natural.y||0,ot=N.connectorPadding||0,ht=0,X=_,F="inherit";if(Z){if(v&&E($)&&Z.distance>0&&($.pos===void 0?F="hidden":(T=$.size,X=R.radialDistributionY(P,j))),N.justify)ht=R.justify(P,j,o,i);else switch(N.alignTo){case"connectors":ht=R.alignToConnectors(H,u,r,t);break;case"plotEdges":ht=R.alignToPlotEdges(j,u,r,t);break;default:ht=R.radialDistributionX(g,P,X,_,j)}if(Z.attribs={visibility:F,align:Z.alignment},Z.posAttribs={x:ht+(N.x||0)+({left:ot,right:-ot}[Z.alignment]||0),y:X+(N.y||0)-j.getBBox().height/2},Z.computed.x=ht,Z.computed.y=X,L(N.crop,!0)){let q;ht-(A=j.getBBox().width)r-ot&&u===0&&(q=Math.round(ht+A-r+ot),b[1]=Math.max(q,b[1])),X-T/2<0?b[0]=Math.max(Math.round(-X+T/2),b[0]):X+T/2>s&&(b[2]=Math.max(Math.round(X+T/2-s),b[2])),Z.sideOverflow=q}}})}))}),(S(b)===0||this.verifyDataLabelOverflow(b))&&(this.placeDataLabels(),this.points.forEach(H=>{(H.dataLabels||[]).forEach(u=>{let{connectorColor:y,connectorWidth:v=1}=u.options||{},G=u.dataLabelPosition;if(v){let l;c=u.connector,G&&G.distance>0?(l=!c,c||(u.connector=c=x.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+H.colorIndex+(H.className?" "+H.className:"")).add(g.dataLabelsGroup)),x.styledMode||c.attr({"stroke-width":v,stroke:y||H.color||"#666666"}),c[l?"attr":"animate"]({d:H.getConnectorPath(u)}),c.attr({visibility:G.attribs?.visibility})):c&&(u.connector=c.destroy())}})})))}function I(){this.points.forEach(g=>{(g.dataLabels||[]).forEach(a=>{let x=a.dataLabelPosition;x?(x.sideOverflow&&(a.css({width:Math.max(a.getBBox().width-x.sideOverflow,0)+"px",textOverflow:(a.options?.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(x.attribs),a[a.moved?"animate":"attr"](x.posAttribs),a.moved=!0):a&&a.attr({y:-9999})}),delete g.distributeBox},this)}function D(g){let a=this.center,x=this.options,r=x.center,s=x.minSize||80,t=s,e=x.size!==null;return!e&&(r[0]!==null?t=Math.max(a[2]-Math.max(g[1],g[3]),s):(t=Math.max(a[2]-g[1]-g[3],s),a[0]+=(g[3]-g[1])/2),r[1]!==null?t=O(t,s,a[2]-Math.max(g[0],g[2])):(t=O(t,s,a[2]-g[0]-g[2]),a[1]+=(g[0]-g[2])/2),t!(h.x>=m.x+m.width||h.x+h.width<=m.x||h.y>=m.y+m.height||h.y+h.height<=m.y),O,E,L,p,C,w=!1;for(let m=0;m(h.labelrank||0)-(m.labelrank||0));for(let m=0;m{at(O,E=>{E.label&&U.push(E.label)})});for(let S of W.series||[])if(S.visible&&S.hasDataLabels?.()){let O=E=>{for(let L of E)L.visible&&(L.dataLabels||[]).forEach(p=>{let C=p.options||{};p.labelrank=st(C.labelrank,L.labelrank,L.shapeArgs?.height),C.allowOverlap??Number(C.distance)>0?(p.oldOpacity=p.opacity,p.newOpacity=1,J(p,W)):U.push(p)})};O(S.nodes||[]),O(S.points)}this.hideOverlappingLabels(U)}return{compose:function(W){let U=W.prototype;U.hideOverlappingLabels||(U.hideOverlappingLabels=it,Q(W,"render",Y))}}}),gt(z,"Extensions/BorderRadius.js",[z["Core/Defaults.js"],z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q,nt){let{defaultOptions:at}=V,{noop:st}=Q,{addEvent:it,extend:J,isObject:Y,merge:W,relativeLength:U}=nt,S={radius:0,scope:"stack",where:void 0},O=st,E=st;function L(h,f,I,D,g={}){let a=O(h,f,I,D,g),{innerR:x=0,r=I,start:s=0,end:t=0}=g;if(g.open||!g.borderRadius)return a;let e=t-s,i=Math.sin(e/2),o=Math.max(Math.min(U(g.borderRadius||0,r-x),(r-x)/2,r*i/(1+i)),0),n=Math.min(o,e/Math.PI*2*x),d=a.length-1;for(;d--;)(function(b,R,c){let A,T,B,H=b[R],u=b[R+1];if(u[0]==="Z"&&(u=b[0]),(H[0]==="M"||H[0]==="L")&&u[0]==="A"?(A=H,T=u,B=!0):H[0]==="A"&&(u[0]==="M"||u[0]==="L")&&(A=u,T=H),A&&T&&T.params){let y=T[1],v=T[5],G=T.params,{start:l,end:M,cx:k,cy:P}=G,j=v?y-c:y+c,N=j?Math.asin(c/j):0,$=v?N:-N,Z=Math.cos(N)*j;B?(G.start=l+$,A[1]=k+Z*Math.cos(l),A[2]=P+Z*Math.sin(l),b.splice(R+1,0,["A",c,c,0,0,1,k+y*Math.cos(G.start),P+y*Math.sin(G.start)])):(G.end=M-$,T[6]=k+y*Math.cos(G.end),T[7]=P+y*Math.sin(G.end),b.splice(R+1,0,["A",c,c,0,0,1,k+Z*Math.cos(M),P+Z*Math.sin(M)])),T[4]=Math.abs(G.end-G.start)1?n:o);return a}function p(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:h,yAxis:f}=this,I=h.stacking==="percent",D=at.plotOptions?.[this.type]?.borderRadius,g=C(h.borderRadius,Y(D)?D:{}),a=f.options.reversed;for(let x of this.points){let{shapeArgs:r}=x;if(x.shapeType==="roundedRect"&&r){let{width:s=0,height:t=0,y:e=0}=r,i=e,o=t;if(g.scope==="stack"&&x.stackTotal){let R=f.translate(I?100:x.stackTotal,!1,!0,!1,!0),c=f.translate(h.threshold||0,!1,!0,!1,!0),A=this.crispCol(0,Math.min(R,c),0,Math.abs(R-c));i=A.y,o=A.height}let n=(x.negative?-1:1)*(a?-1:1)==-1,d=g.where;!d&&this.is("waterfall")&&Math.abs((x.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(d="all"),d||(d="end");let b=Math.min(U(g.radius,s),s/2,d==="all"?t/2:1/0)||0;d==="end"&&(n&&(i-=b),o+=b),J(r,{brBoxHeight:o,brBoxY:i,r:b})}}}}function C(h,f){return Y(h)||(h={radius:h||0}),W(S,f,h)}function w(){let h=C(this.options.borderRadius);for(let f of this.points){let I=f.shapeArgs;I&&(I.borderRadius=U(h.radius,(I.r||0)-(I.innerR||0)))}}function m(h,f,I,D,g={}){let a=E(h,f,I,D,g),{r:x=0,brBoxHeight:r=D,brBoxY:s=f}=g,t=f-s,e=s+r-(f+D),i=t-x>-.1?0:x,o=e-x>-.1?0:x,n=Math.max(i&&t,0),d=Math.max(o&&e,0),b=[h+i,f],R=[h+I-i,f],c=[h+I,f+i],A=[h+I,f+D-o],T=[h+I-o,f+D],B=[h+o,f+D],H=[h,f+D-o],u=[h,f+i],y=(v,G)=>Math.sqrt(Math.pow(v,2)-Math.pow(G,2));if(n){let v=y(i,i-n);b[0]-=v,R[0]+=v,c[1]=u[1]=f+i-n}if(D=J(L.minWidth,0)&&this.chartHeight>=J(L.minHeight,0)}).call(this)&&E.push(O._id)}function S(O,E){let L=this.options.responsive,p=this.currentResponsive,C=[],w;!E&&L&&L.rules&&L.rules.forEach(f=>{f._id===void 0&&(f._id=Y()),this.matchResponsiveRule(f,C)},this);let m=it(...C.map(f=>st((L||{}).rules||[],I=>I._id===f)).map(f=>f&&f.chartOptions));m.isResponsiveOptions=!0,C=C.toString()||void 0;let h=p&&p.ruleIds;C!==h&&(p&&this.update(p.undoOptions,O,!0),C?((w=nt(m,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:C,mergedOptions:m,undoOptions:w},this.update(m,O,!0)):this.currentResponsive=void 0)}W.compose=function(O){let E=O.prototype;return E.matchResponsiveRule||at(E,{matchResponsiveRule:U,setResponsive:S}),O}}(Q||(Q={})),Q}),gt(z,"masters/highcharts.src.js",[z["Core/Globals.js"],z["Core/Utilities.js"],z["Core/Defaults.js"],z["Core/Animation/Fx.js"],z["Core/Animation/AnimationUtilities.js"],z["Core/Renderer/HTML/AST.js"],z["Core/Templating.js"],z["Core/Renderer/RendererRegistry.js"],z["Core/Renderer/RendererUtilities.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Renderer/SVG/SVGRenderer.js"],z["Core/Renderer/HTML/HTMLElement.js"],z["Core/Axis/Axis.js"],z["Core/Axis/DateTimeAxis.js"],z["Core/Axis/LogarithmicAxis.js"],z["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],z["Core/Axis/Tick.js"],z["Core/Tooltip.js"],z["Core/Series/Point.js"],z["Core/Pointer.js"],z["Core/Legend/Legend.js"],z["Core/Legend/LegendSymbol.js"],z["Core/Chart/Chart.js"],z["Extensions/ScrollablePlotArea.js"],z["Core/Axis/Stacking/StackingAxis.js"],z["Core/Axis/Stacking/StackItem.js"],z["Core/Series/Series.js"],z["Core/Series/SeriesRegistry.js"],z["Series/Column/ColumnDataLabel.js"],z["Series/Pie/PieDataLabel.js"],z["Core/Series/DataLabel.js"],z["Extensions/OverlappingDataLabels.js"],z["Extensions/BorderRadius.js"],z["Core/Responsive.js"],z["Core/Color/Color.js"],z["Core/Time.js"]],function(V,Q,nt,at,st,it,J,Y,W,U,S,O,E,L,p,C,w,m,h,f,I,D,g,a,x,r,s,t,e,i,o,n,d,b,R,c){return V.AST=it,V.Axis=E,V.Chart=g,V.Color=R,V.DataLabel=o,V.Fx=at,V.HTMLElement=O,V.Legend=I,V.LegendSymbol=D,V.OverlappingDataLabels=V.OverlappingDataLabels||n,V.PlotLineOrBand=C,V.Point=h,V.Pointer=f,V.RendererRegistry=Y,V.Series=s,V.SeriesRegistry=t,V.StackItem=r,V.SVGElement=U,V.SVGRenderer=S,V.Templating=J,V.Tick=w,V.Time=c,V.Tooltip=m,V.animate=st.animate,V.animObject=st.animObject,V.chart=g.chart,V.color=R.parse,V.dateFormat=J.dateFormat,V.defaultOptions=nt.defaultOptions,V.distribute=W.distribute,V.format=J.format,V.getDeferredAnimation=st.getDeferredAnimation,V.getOptions=nt.getOptions,V.numberFormat=J.numberFormat,V.seriesType=t.seriesType,V.setAnimation=st.setAnimation,V.setOptions=nt.setOptions,V.stop=st.stop,V.time=nt.defaultTime,V.timers=at.timers,d.compose(V.Series,V.SVGElement,V.SVGRenderer),e.compose(V.Series.types.column),o.compose(V.Series),L.compose(V.Axis),O.compose(V.SVGRenderer),I.compose(V.Chart),p.compose(V.Axis),n.compose(V.Chart),i.compose(V.Series.types.pie),C.compose(V.Axis),f.compose(V.Chart),b.compose(V.Chart),a.compose(V.Axis,V.Chart,V.Series),x.compose(V.Axis,V.Chart,V.Series),m.compose(V.Pointer),Q.extend(V,Q),V}),gt(z,"Series/DataModifyComposition.js",[z["Core/Axis/Axis.js"],z["Core/Series/Point.js"],z["Core/Series/Series.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){var st;let{tooltipFormatter:it}=Q.prototype,{addEvent:J,arrayMax:Y,arrayMin:W,correctFloat:U,defined:S,isArray:O,isNumber:E,isString:L,pick:p}=at;return function(C){function w(s,t,e){!this.isXAxis&&(this.series.forEach(function(i){s==="compare"&&typeof t!="boolean"?i.setCompare(t,!1):s!=="cumulative"||L(t)||i.setCumulative(t,!1)}),p(e,!0)&&this.chart.redraw())}function m(s){let t=this,{numberFormatter:e}=t.series.chart,i=function(o){s=s.replace("{point."+o+"}",(t[o]>0&&o==="change"?"+":"")+e(t[o],p(t.series.tooltipOptions.changeDecimals,2)))};return S(t.change)&&i("change"),S(t.cumulativeSum)&&i("cumulativeSum"),it.apply(this,[s])}function h(){let s,t=this.options.compare;(t==="percent"||t==="value"||this.options.cumulative)&&(s=new r(this),t==="percent"||t==="value"?s.initCompare(t):s.initCumulative()),this.dataModify=s}function f(s){let t=s.dataExtremes,e=t.activeYData;if(this.dataModify&&t){let i;this.options.compare?i=[this.dataModify.modifyValue(t.dataMin),this.dataModify.modifyValue(t.dataMax)]:this.options.cumulative&&O(e)&&e.length>=2&&(i=r.getCumulativeExtremes(e)),i&&(t.dataMin=W(i),t.dataMax=Y(i))}}function I(s,t){this.options.compare=this.userOptions.compare=s,this.update({},p(t,!0)),this.dataModify&&(s==="value"||s==="percent")?this.dataModify.initCompare(s):this.points.forEach(e=>{delete e.change})}function D(){if(this.xAxis&&this.processedYData&&this.dataModify){let s=this.processedXData,t=this.processedYData,e=t.length,i=this.options.compareStart===!0?0:1,o=-1,n;for(this.pointArrayMap&&(o=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),n=0;n-1?t[n][o]:t[n];if(E(d)&&d!==0&&s[n+i]>=(this.xAxis.min||0)){this.dataModify.compareValue=d;break}}}}function g(s,t){this.setModifier("compare",s,t)}function a(s,t){s=p(s,!1),this.options.cumulative=this.userOptions.cumulative=s,this.update({},p(t,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(e=>{delete e.cumulativeSum})}function x(s,t){this.setModifier("cumulative",s,t)}C.compose=function(s,t,e){let i=t.prototype,o=e.prototype,n=s.prototype;return n.setCompare||(n.setCompare=I,n.setCumulative=a,J(s,"afterInit",h),J(s,"afterGetExtremes",f),J(s,"afterProcessData",D)),i.setCompare||(i.setCompare=g,i.setModifier=w,i.setCumulative=x,o.tooltipFormatter=m),s};class r{constructor(t){this.series=t}modifyValue(){return 0}static getCumulativeExtremes(t){let e=1/0,i=-1/0;return t.reduce((o,n)=>{let d=o+n;return e=Math.min(e,d,o),i=Math.max(i,d,o),d}),[e,i]}initCompare(t){this.modifyValue=function(e,i){e===null&&(e=0);let o=this.compareValue;if(e!==void 0&&o!==void 0){if(t==="value"?e-=o:e=e/o*100-(this.series.options.compareBase===100?0:100),i!==void 0){let n=this.series.points[i];n&&(n.change=e)}return e}return 0}}initCumulative(){this.modifyValue=function(t,e){if(t===null&&(t=0),t!==void 0&&e!==void 0){let i=e>0?this.series.points[e-1]:null;i&&i.cumulativeSum&&(t=U(i.cumulativeSum+t));let o=this.series.points[e],n=o.series.options.cumulativeStart,d=o.x<=this.series.xAxis.max&&o.x>=this.series.xAxis.min;return o&&(!n||d?o.cumulativeSum=t:o.cumulativeSum=void 0),t}return 0}}}C.Additions=r}(st||(st={})),st}),gt(z,"Stock/Navigator/ChartNavigatorComposition.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){let nt,{isTouchDevice:at}=V,{addEvent:st,merge:it,pick:J}=Q,Y=[];function W(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function U(){let C,w,m,h=this.legend,f=this.navigator;if(f){C=h&&h.options,w=f.xAxis,m=f.yAxis;let{scrollbarHeight:I,scrollButtonSize:D}=f;this.inverted?(f.left=f.opposite?this.chartWidth-I-f.height:this.spacing[3]+I,f.top=this.plotTop+D):(f.left=J(w.left,this.plotLeft+D),f.top=f.navigatorOptions.top||this.chartHeight-f.height-I-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(C&&C.verticalAlign==="bottom"&&C.layout!=="proximate"&&C.enabled&&!C.floating?h.legendHeight+J(C.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),w&&m&&(this.inverted?w.options.left=m.options.left=f.left:w.options.top=m.options.top=f.top,w.setAxisSize(),m.setAxisSize())}}function S(C){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new nt(this),J(C.redraw,!0)&&this.redraw(C.animation))}function O(){let C=this.options;(C.navigator.enabled||C.scrollbar.enabled)&&(this.scroller=this.navigator=new nt(this))}function E(){let C=this.options,w=C.navigator,m=C.rangeSelector;if((w&&w.enabled||m&&m.enabled)&&(!at&&this.zooming.type==="x"||at&&this.zooming.pinchType==="x"))return!1}function L(C){let w=C.navigator;if(w&&C.xAxis[0]){let m=C.xAxis[0].getExtremes();w.render(m.min,m.max)}}function p(C){let w=C.options.navigator||{},m=C.options.scrollbar||{};!this.navigator&&!this.scroller&&(w.enabled||m.enabled)&&(it(!0,this.options.navigator,w),it(!0,this.options.scrollbar,m),delete C.options.navigator,delete C.options.scrollbar)}return{compose:function(C,w){if(Q.pushUnique(Y,C)){let m=C.prototype;nt=w,m.callbacks.push(L),st(C,"afterAddSeries",W),st(C,"afterSetChartSize",U),st(C,"afterUpdate",S),st(C,"beforeRender",O),st(C,"beforeShowResetZoom",E),st(C,"update",p)}}}}),gt(z,"Core/Axis/NavigatorAxisComposition.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){let{isTouchDevice:nt}=V,{addEvent:at,correctFloat:st,defined:it,isNumber:J,pick:Y}=Q;function W(){this.navigatorAxis||(this.navigatorAxis=new S(this))}function U(O){let E,L=this.chart,p=L.options,C=p.navigator,w=this.navigatorAxis,m=L.zooming.pinchType,h=p.rangeSelector,f=L.zooming.type;if(this.isXAxis&&(C?.enabled||h?.enabled)){if(f==="y"&&O.trigger==="zoom")E=!1;else if((O.trigger==="zoom"&&f==="xy"||nt&&m==="xy")&&this.options.range){let I=w.previousZoom;it(O.min)?w.previousZoom=[this.min,this.max]:I&&(O.min=I[0],O.max=I[1],w.previousZoom=void 0)}}E!==void 0&&O.preventDefault()}class S{static compose(E){E.keepProps.includes("navigatorAxis")||(E.keepProps.push("navigatorAxis"),at(E,"init",W),at(E,"setExtremes",U))}constructor(E){this.axis=E}destroy(){this.axis=void 0}toFixedRange(E,L,p,C){let w=this.axis,m=(w.pointRange||0)/2,h=Y(p,w.translate(E,!0,!w.horiz)),f=Y(C,w.translate(L,!0,!w.horiz));return it(p)||(h=st(h+m)),it(C)||(f=st(f-m)),J(h)&&J(f)||(h=f=void 0),{min:h,max:f}}}return S}),gt(z,"Stock/Navigator/NavigatorDefaults.js",[z["Core/Color/Color.js"],z["Core/Series/SeriesRegistry.js"]],function(V,Q){let{parse:nt}=V,{seriesTypes:at}=Q;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:nt("#667aff").setOpacity(.3).get(),outlineColor:"#999999",outlineWidth:1,series:{type:at.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}}}),gt(z,"Stock/Navigator/NavigatorSymbols.js",[z["Core/Renderer/SVG/Symbols.js"],z["Core/Utilities.js"]],function(V,Q){let{relativeLength:nt}=Q;return{"navigator-handle":function(at,st,it,J,Y={}){let W=Y.width?Y.width/2:it,U=nt(Y.borderRadius||0,Math.min(2*W,J));return[["M",-1.5,(J=Y.height||J)/2-3.5],["L",-1.5,J/2+4.5],["M",.5,J/2-3.5],["L",.5,J/2+4.5],...V.rect(-W-1,.5,2*W+1,J,{r:U})]}}}),gt(z,"Stock/Utilities/StockUtilities.js",[z["Core/Utilities.js"]],function(V){let{defined:Q}=V;return{setFixedRange:function(nt){let at=this.xAxis[0];Q(at.dataMax)&&Q(at.dataMin)&&nt?this.fixedRange=Math.min(nt,at.dataMax-at.dataMin):this.fixedRange=nt}}}),gt(z,"Stock/Navigator/NavigatorComposition.js",[z["Core/Defaults.js"],z["Core/Globals.js"],z["Core/Axis/NavigatorAxisComposition.js"],z["Stock/Navigator/NavigatorDefaults.js"],z["Stock/Navigator/NavigatorSymbols.js"],z["Core/Renderer/RendererRegistry.js"],z["Stock/Utilities/StockUtilities.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y){let{setOptions:W}=V,{composed:U}=Q,{getRendererType:S}=it,{setFixedRange:O}=J,{addEvent:E,extend:L,pushUnique:p}=Y;function C(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(w,m,h){nt.compose(m),p(U,"Navigator")&&(w.prototype.setFixedRange=O,L(S().prototype.symbols,st),E(h,"afterUpdate",C),W({navigator:at}))}}}),gt(z,"Core/Axis/ScrollbarAxis.js",[z["Core/Globals.js"],z["Core/Utilities.js"]],function(V,Q){var nt;let{composed:at}=V,{addEvent:st,defined:it,pick:J,pushUnique:Y}=Q;return function(W){let U;function S(p){let C=J(p.options&&p.options.min,p.min),w=J(p.options&&p.options.max,p.max);return{axisMin:C,axisMax:w,scrollMin:it(p.dataMin)?Math.min(C,p.min,p.dataMin,J(p.threshold,1/0)):C,scrollMax:it(p.dataMax)?Math.max(w,p.max,p.dataMax,J(p.threshold,-1/0)):w}}function O(){let p=this.scrollbar,C=p&&!p.options.opposite,w=this.horiz?2:C?3:1;p&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[w]+=p.size+(p.options.margin||0))}function E(){let p=this;p.options&&p.options.scrollbar&&p.options.scrollbar.enabled&&(p.options.scrollbar.vertical=!p.horiz,p.options.startOnTick=p.options.endOnTick=!1,p.scrollbar=new U(p.chart.renderer,p.options.scrollbar,p.chart),st(p.scrollbar,"changed",function(C){let w,m,{axisMin:h,axisMax:f,scrollMin:I,scrollMax:D}=S(p),g=D-I;if(it(h)&&it(f))if(p.horiz&&!p.reversed||!p.horiz&&p.reversed?(w=I+g*this.to,m=I+g*this.from):(w=I+g*(1-this.from),m=I+g*(1-this.to)),this.shouldUpdateExtremes(C.DOMType)){let a=C.DOMType!=="mousemove"&&C.DOMType!=="touchmove"&&void 0;p.setExtremes(m,w,!0,a,C)}else this.setRange(this.from,this.to)}))}function L(){let p,C,w,{scrollMin:m,scrollMax:h}=S(this),f=this.scrollbar,I=this.axisTitleMargin+(this.titleOffset||0),D=this.chart.scrollbarsOffsets,g=this.options.margin||0;if(f&&D){if(this.horiz)this.opposite||(D[1]+=I),f.position(this.left,this.top+this.height+2+D[1]-(this.opposite?g:0),this.width,this.height),this.opposite||(D[1]+=g),p=1;else{let a;this.opposite&&(D[0]+=I),a=f.options.opposite?this.left+this.width+2+D[0]-(this.opposite?0:g):this.opposite?0:g,f.position(a,this.top,this.width,this.height),this.opposite&&(D[0]+=g),p=0}D[p]+=f.size+(f.options.margin||0),isNaN(m)||isNaN(h)||!it(this.min)||!it(this.max)||this.min===this.max?f.setRange(0,1):(C=(this.min-m)/(h-m),w=(this.max-m)/(h-m),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(C,w):f.setRange(1-w,1-C))}}W.compose=function(p,C){Y(at,"Axis.Scrollbar")&&(U=C,st(p,"afterGetOffset",O),st(p,"afterInit",E),st(p,"afterRender",L))}}(nt||(nt={})),nt}),gt(z,"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}}),gt(z,"Stock/Scrollbar/Scrollbar.js",[z["Core/Defaults.js"],z["Core/Globals.js"],z["Core/Axis/ScrollbarAxis.js"],z["Stock/Scrollbar/ScrollbarDefaults.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){let{defaultOptions:it}=V,{addEvent:J,correctFloat:Y,crisp:W,defined:U,destroyObjectProperties:S,fireEvent:O,merge:E,pick:L,removeEvent:p}=st;class C{static compose(m){nt.compose(m,C)}static swapXY(m,h){return h&&m.forEach(f=>{let I,D=f.length;for(let g=0;gthis.calculatedWidth?h.minWidth:0;return{chartX:(m.chartX-this.x-this.xOffset)/(this.barWidth-f),chartY:(m.chartY-this.y-this.yOffset)/(this.barWidth-f)}}destroy(){let m=this,h=m.chart.scroller;m.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(f){m[f]&&m[f].destroy&&(m[f]=m[f].destroy())}),h&&m===h.scrollbar&&(h.scrollbar=null,S(h.scrollbarButtons))}drawScrollbarButton(m){let h=this.renderer,f=this.scrollbarButtons,I=this.options,D=this.size,g=h.g().add(this.group);if(f.push(g),I.buttonsEnabled){let a=h.rect().addClass("highcharts-scrollbar-button").add(g);this.chart.styledMode||a.attr({stroke:I.buttonBorderColor,"stroke-width":I.buttonBorderWidth,fill:I.buttonBackgroundColor}),a.attr(a.crisp({x:-.5,y:-.5,width:D,height:D,r:I.buttonBorderRadius},a.strokeWidth()));let x=h.path(C.swapXY([["M",D/2+(m?-1:1),D/2-3],["L",D/2+(m?-1:1),D/2+3],["L",D/2+(m?2:-2),D/2]],I.vertical)).addClass("highcharts-scrollbar-arrow").add(f[m]);this.chart.styledMode||x.attr({fill:I.buttonArrowColor})}}init(m,h,f){this.scrollbarButtons=[],this.renderer=m,this.userOptions=h,this.options=E(at,it.scrollbar,h),this.options.margin=L(this.options.margin,10),this.chart=f,this.size=L(this.options.size,this.options.height),h.enabled&&(this.render(),this.addEvents())}mouseDownHandler(m){let h=this.chart.pointer?.normalize(m)||m,f=this.cursorToScrollbarPosition(h);this.chartX=f.chartX,this.chartY=f.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(m){let h,f=this.chart.pointer?.normalize(m)||m,I=this.options.vertical?"chartY":"chartX",D=this.initPositions||[];this.grabbedCenter&&(!m.touches||m.touches[0][I]!==0)&&(h=this.cursorToScrollbarPosition(f)[I]-this[I],this.hasDragged=!0,this.updatePosition(D[0]+h,D[1]+h),this.hasDragged&&O(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:m.type,DOMEvent:m}))}mouseUpHandler(m){this.hasDragged&&O(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:m.type,DOMEvent:m}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(m,h,f,I){let{buttonsEnabled:D,margin:g=0,vertical:a}=this.options,x=this.rendered?"animate":"attr",r=I,s=0;this.group.show(),this.x=m,this.y=h+this.trackBorderWidth,this.width=f,this.height=I,this.xOffset=r,this.yOffset=s,a?(this.width=this.yOffset=f=s=this.size,this.xOffset=r=0,this.yOffset=s=D?this.size:0,this.barWidth=I-(D?2*f:0),this.x=m+=g):(this.height=I=this.size,this.xOffset=r=D?this.size:0,this.barWidth=f-(D?2*I:0),this.y=this.y+g),this.group[x]({translateX:m,translateY:this.y}),this.track[x]({width:f,height:I}),this.scrollbarButtons[1][x]({translateX:a?0:f-r,translateY:a?I-s:0})}removeEvents(){this._events.forEach(function(m){p.apply(null,m)}),this._events.length=0}render(){let m=this.renderer,h=this.options,f=this.size,I=this.chart.styledMode,D=m.g("scrollbar").attr({zIndex:h.zIndex}).hide().add();this.group=D,this.track=m.rect().addClass("highcharts-scrollbar-track").attr({r:h.trackBorderRadius||0,height:f,width:f}).add(D),I||this.track.attr({fill:h.trackBackgroundColor,stroke:h.trackBorderColor,"stroke-width":h.trackBorderWidth});let g=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-W(0,g),y:-W(0,g)}),this.scrollbarGroup=m.g().add(D),this.scrollbar=m.rect().addClass("highcharts-scrollbar-thumb").attr({height:f-g,width:f-g,r:h.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=m.path(C.swapXY([["M",-3,f/4],["L",-3,2*f/3],["M",0,f/4],["L",0,2*f/3],["M",3,f/4],["L",3,2*f/3]],h.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),I||(this.scrollbar.attr({fill:h.barBackgroundColor,stroke:h.barBorderColor,"stroke-width":h.barBorderWidth}),this.scrollbarRifles.attr({stroke:h.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-W(0,this.scrollbarStrokeWidth),-W(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(m,h){let f,I,D=this.options,g=D.vertical,a=D.minWidth,x=this.barWidth,r=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!U(x))return;let s=x*Math.min(h,1);f=Math.ceil(x*(m=Math.max(m,0))),this.calculatedWidth=I=Y(s-f),I=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(m){return L(this.options.liveRedraw,Q.svg&&!Q.isTouchDevice&&!this.chart.boosted)||m==="mouseup"||m==="touchend"||!U(m)}trackClick(m){let h=this.chart.pointer?.normalize(m)||m,f=this.to-this.from,I=this.y+this.scrollbarTop,D=this.x+this.scrollbarLeft;this.options.vertical&&h.chartY>I||!this.options.vertical&&h.chartX>D?this.updatePosition(this.from+f,this.to+f):this.updatePosition(this.from-f,this.to-f),O(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:m})}update(m){this.destroy(),this.init(this.chart.renderer,E(!0,this.options,m),this.chart)}updatePosition(m,h){h>1&&(m=Y(1-Y(h-m)),h=1),m<0&&(h=Y(h-m),m=0),this.from=m,this.to=h}}return C.defaultOptions=at,it.scrollbar=E(!0,C.defaultOptions,it.scrollbar),C}),gt(z,"Stock/Navigator/Navigator.js",[z["Core/Axis/Axis.js"],z["Stock/Navigator/ChartNavigatorComposition.js"],z["Core/Defaults.js"],z["Core/Globals.js"],z["Core/Axis/NavigatorAxisComposition.js"],z["Stock/Navigator/NavigatorComposition.js"],z["Stock/Scrollbar/Scrollbar.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y){let{defaultOptions:W}=nt,{isTouchDevice:U}=at,{addEvent:S,clamp:O,correctFloat:E,defined:L,destroyObjectProperties:p,erase:C,extend:w,find:m,fireEvent:h,isArray:f,isNumber:I,merge:D,pick:g,removeEvent:a,splat:x}=Y;function r(t,...e){let i=[].filter.call(e,I);if(i.length)return Math[t].apply(0,i)}class s{static compose(e,i,o){Q.compose(e,s),it.compose(e,i,o)}constructor(e){this.scrollbarHeight=0,this.init(e)}drawHandle(e,i,o,n){let d=this.navigatorOptions.handles.height;this.handles[i][n](o?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(e,10)+.5-d)}:{translateX:Math.round(this.left+parseInt(e,10)),translateY:Math.round(this.top+this.height/2-d/2-1)})}drawOutline(e,i,o,n){let d=this.navigatorOptions.maskInside,b=this.outline.strokeWidth(),R=b/2,c=b%2/2,A=this.scrollButtonSize,T=this.size,B=this.top,H=this.height,u=B-R,y=B+H,v=this.left,G,l;o?(G=B+i+c,i=B+e+c,l=[["M",v+H,B-A-c],["L",v+H,G],["L",v,G],["M",v,i],["L",v+H,i],["L",v+H,B+T+A]],d&&l.push(["M",v+H,G-R],["L",v+H,i+R])):(v-=A,e+=v+A-c,i+=v+A-c,l=[["M",v,u],["L",e,u],["L",e,y],["M",i,y],["L",i,u],["L",v+T+2*A,B+R]],d&&l.push(["M",e-R,u],["L",i+R,u])),this.outline[n]({d:l})}drawMasks(e,i,o,n){let d,b,R,c,A=this.left,T=this.top,B=this.height;o?(R=[A,A,A],c=[T,T+e,T+i],b=[B,B,B],d=[e,i-e,this.size-i]):(R=[A,A+e,A+i],c=[T,T,T],b=[e,i-e,this.size-i],d=[B,B,B]),this.shades.forEach((H,u)=>{H[n]({x:R[u],y:c[u],width:b[u],height:d[u]})})}renderElements(){let e=this,i=e.navigatorOptions,o=i.maskInside,n=e.chart,d=n.inverted,b=n.renderer,R={cursor:d?"ns-resize":"ew-resize"},c=e.navigatorGroup=b.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!o,o,!o].forEach((A,T)=>{let B=b.rect().addClass("highcharts-navigator-mask"+(T===1?"-inside":"-outside")).add(c);n.styledMode||(B.attr({fill:A?i.maskFill:"rgba(0,0,0,0)"}),T===1&&B.css(R)),e.shades[T]=B}),e.outline=b.path().addClass("highcharts-navigator-outline").add(c),n.styledMode||e.outline.attr({"stroke-width":i.outlineWidth,stroke:i.outlineColor}),i.handles&&i.handles.enabled){let A=i.handles,{height:T,width:B}=A;[0,1].forEach(H=>{e.handles[H]=b.symbol(A.symbols[H],-B/2-1,0,B,T,A),n.inverted&&e.handles[H].attr({rotation:90,rotationOriginX:Math.floor(-B/2),rotationOriginY:(T+B)/2}),e.handles[H].attr({zIndex:7-H}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][H]).add(c),n.styledMode||e.handles[H].attr({fill:A.backgroundColor,stroke:A.borderColor,"stroke-width":A.lineWidth}).css(R)})}}update(e){(this.series||[]).forEach(i=>{i.baseSeries&&delete i.baseSeries.navigatorSeries}),this.destroy(),D(!0,this.chart.options.navigator,e),this.init(this.chart)}render(e,i,o,n){let d=this.chart,b=this.xAxis,R=b.pointRange||0,c=b.navigatorAxis.fake?d.xAxis[0]:b,A=this.navigatorEnabled,T=this.rendered,B=d.inverted,H=d.xAxis[0].minRange,u=d.xAxis[0].options.maxRange,y=this.scrollButtonSize,v,G,l,M=this.scrollbarHeight,k,P;if(this.hasDragged&&!L(o))return;if(e=E(e-R/2),i=E(i+R/2),!I(e)||!I(i)){if(!T)return;o=0,n=g(b.width,c.width)}this.left=g(b.left,d.plotLeft+y+(B?d.plotWidth:0));let j=this.size=k=g(b.len,(B?d.plotHeight:d.plotWidth)-2*y);v=B?M:k+2*y,o=g(o,b.toPixels(e,!0)),n=g(n,b.toPixels(i,!0)),I(o)&&Math.abs(o)!==1/0||(o=0,n=v);let N=b.toValue(o,!0),$=b.toValue(n,!0),Z=Math.abs(E($-N));Zu&&(this.grabbedLeft?o=b.toPixels($-u-R,!0):this.grabbedRight&&(n=b.toPixels(N+u+R,!0))),this.zoomedMax=O(Math.max(o,n),0,j),this.zoomedMin=O(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(o,n),0,j),this.range=this.zoomedMax-this.zoomedMin,j=Math.round(this.zoomedMax);let _=Math.round(this.zoomedMin);A&&(this.navigatorGroup.attr({visibility:"inherit"}),P=T&&!this.hasDragged?"animate":"attr",this.drawMasks(_,j,B,P),this.drawOutline(_,j,B,P),this.navigatorOptions.handles.enabled&&(this.drawHandle(_,0,B,P),this.drawHandle(j,1,B,P))),this.scrollbar&&(B?(l=this.top-y,G=this.left-M+(A||!c.opposite?0:(c.titleOffset||0)+c.axisTitleMargin),M=k+2*y):(l=this.top+(A?this.height:-M),G=this.left-y),this.scrollbar.position(G,l,v,M),this.scrollbar.setRange(this.zoomedMin/(k||1),this.zoomedMax/(k||1))),this.rendered=!0,h(this,"afterRender")}addMouseEvents(){let e=this,i=e.chart,o=i.container,n=[],d,b;e.mouseMoveHandler=d=function(R){e.onMouseMove(R)},e.mouseUpHandler=b=function(R){e.onMouseUp(R)},(n=e.getPartsEvents("mousedown")).push(S(i.renderTo,"mousemove",d),S(o.ownerDocument,"mouseup",b),S(i.renderTo,"touchmove",d),S(o.ownerDocument,"touchend",b)),n.concat(e.getPartsEvents("touchstart")),e.eventsToUnbind=n,e.series&&e.series[0]&&n.push(S(e.series[0].xAxis,"foundExtremes",function(){i.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(e){let i=this,o=[];return["shades","handles"].forEach(function(n){i[n].forEach(function(d,b){o.push(S(d.element,e,function(R){i[n+"Mousedown"](R,b)}))})}),o}shadesMousedown(e,i){e=this.chart.pointer?.normalize(e)||e;let o=this.chart,n=this.xAxis,d=this.zoomedMin,b=this.size,R=this.range,c=this.left,A=e.chartX,T,B,H,u;o.inverted&&(A=e.chartY,c=this.top),i===1?(this.grabbedCenter=A,this.fixedWidth=R,this.dragOffset=A-d):(u=A-c-R/2,i===0?u=Math.max(0,u):i===2&&u+R>=b&&(u=b-R,this.reversedExtremes?(u-=R,B=this.getUnionExtremes().dataMin):T=this.getUnionExtremes().dataMax),u!==d&&(this.fixedWidth=R,L((H=n.navigatorAxis.toFixedRange(u,u+R,B,T)).min)&&h(this,"setRange",{min:Math.min(H.min,H.max),max:Math.max(H.min,H.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(e,i){e=this.chart.pointer?.normalize(e)||e;let o=this.chart,n=o.xAxis[0],d=this.reversedExtremes;i===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=d?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=d?n.max:n.min),o.setFixedRange(void 0)}onMouseMove(e){let i=this,o=i.chart,n=i.navigatorSize,d=i.range,b=i.dragOffset,R=o.inverted,c=i.left,A;(!e.touches||e.touches[0].pageX!==0)&&(A=(e=o.pointer?.normalize(e)||e).chartX,R&&(c=i.top,A=e.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,A-c,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,A-c)):i.grabbedCenter&&(i.hasDragged=!0,An+b-d&&(A=n+b-d),i.render(0,0,A-b,A-b+d)),i.hasDragged&&i.scrollbar&&g(i.scrollbar.options.liveRedraw,!U&&!this.chart.boosted)&&(e.DOMType=e.type,setTimeout(function(){i.onMouseUp(e)},0)))}onMouseUp(e){let i,o,n,d,b,R,c=this.chart,A=this.xAxis,T=this.scrollbar,B=e.DOMEvent||e,H=c.inverted,u=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!T||!T.hasDragged)||e.trigger==="scrollbar")&&(n=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?d=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(b=this.fixedExtreme),this.zoomedMax===this.size&&(b=this.reversedExtremes?n.dataMin:n.dataMax),this.zoomedMin===0&&(d=this.reversedExtremes?n.dataMax:n.dataMin),L((R=A.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,d,b)).min)&&h(this,"setRange",{min:Math.min(R.min,R.max),max:Math.max(R.min,R.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:B}})),e.DOMType!=="mousemove"&&e.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&I(this.zoomedMin)&&I(this.zoomedMax)&&(o=Math.round(this.zoomedMin),i=Math.round(this.zoomedMax),this.shades&&this.drawMasks(o,i,H,u),this.outline&&this.drawOutline(o,i,H,u),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(o,0,H,u),this.drawHandle(i,1,H,u)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(e){e()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let e=this.baseSeries||[];this.navigatorEnabled&&e[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&e.forEach(function(i){a(i,"updatedData",this.updatedDataHandler)},this),e[0].xAxis&&a(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(e){let i=e.options,o=i.navigator||{},n=o.enabled,d=i.scrollbar||{},b=d.enabled,R=n&&o.height||0,c=b&&d.height||0,A=d.buttonsEnabled&&c||0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=R,this.scrollbarHeight=c,this.scrollButtonSize=A,this.scrollbarEnabled=b,this.navigatorEnabled=n,this.navigatorOptions=o,this.scrollbarOptions=d,this.opposite=g(o.opposite,!!(!n&&e.inverted));let T=this,B=T.baseSeries,H=e.xAxis.length,u=e.yAxis.length,y=B&&B[0]&&B[0].xAxis||e.xAxis[0]||{options:{}};if(e.isDirtyBox=!0,T.navigatorEnabled?(T.xAxis=new V(e,D({breaks:y.options.breaks,ordinal:y.options.ordinal,overscroll:y.options.overscroll},o.xAxis,{type:"datetime",index:H,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[A,0,-A,0],width:R}:{offsets:[0,-A,0,A],height:R}),"xAxis"),T.yAxis=new V(e,D(o.yAxis,{alignTicks:!1,offset:0,index:u,isInternal:!0,reversed:g(o.yAxis&&o.yAxis.reversed,e.yAxis[0]&&e.yAxis[0].reversed,!1),zoomEnabled:!1},e.inverted?{width:R}:{height:R}),"yAxis"),B||o.series.data?T.updateNavigatorSeries(!1):e.series.length===0&&(T.unbindRedraw=S(e,"beforeRedraw",function(){e.series.length>0&&!T.series&&(T.setBaseSeries(),T.unbindRedraw())})),T.reversedExtremes=e.inverted&&!T.xAxis.reversed||!e.inverted&&T.xAxis.reversed,T.renderElements(),T.addMouseEvents()):(T.xAxis={chart:e,navigatorAxis:{fake:!0},translate:function(v,G){let l=e.xAxis[0],M=l.getExtremes(),k=l.len-2*A,P=r("min",l.options.min,M.dataMin),j=r("max",l.options.max,M.dataMax)-P;return G?v*j/k+P:k*(v-P)/j},toPixels:function(v){return this.translate(v)},toValue:function(v){return this.translate(v,!0)}},T.xAxis.navigatorAxis.axis=T.xAxis,T.xAxis.navigatorAxis.toFixedRange=st.prototype.toFixedRange.bind(T.xAxis.navigatorAxis)),e.options.scrollbar.enabled){let v=D(e.options.scrollbar,{vertical:e.inverted});!I(v.margin)&&T.navigatorEnabled&&(v.margin=e.inverted?-3:3),e.scrollbar=T.scrollbar=new J(e.renderer,v,e),S(T.scrollbar,"changed",function(G){let l=T.size,M=l*this.to,k=l*this.from;T.hasDragged=T.scrollbar.hasDragged,T.render(0,0,k,M),this.shouldUpdateExtremes(G.DOMType)&&setTimeout(function(){T.onMouseUp(G)})})}T.addBaseSeriesEvents(),T.addChartEvents()}getUnionExtremes(e){let i,o=this.chart.xAxis[0],n=this.xAxis,d=n.options,b=o.options;return e&&o.dataMin===null||(i={dataMin:g(d&&d.min,r("min",b.min,o.dataMin,n.dataMin,n.min)),dataMax:g(d&&d.max,r("max",b.max,o.dataMax,n.dataMax,n.max))}),i}setBaseSeries(e,i){let o=this.chart,n=this.baseSeries=[];e=e||o.options&&o.options.navigator.baseSeries||(o.series.length?m(o.series,d=>!d.options.isInternal).index:0),(o.series||[]).forEach((d,b)=>{!d.options.isInternal&&(d.options.showInNavigator||(b===e||d.options.id===e)&&d.options.showInNavigator!==!1)&&n.push(d)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,i)}updateNavigatorSeries(e,i){let o=this,n=o.chart,d=o.baseSeries,b={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}}},R=o.series=(o.series||[]).filter(H=>{let u=H.baseSeries;return!(0>d.indexOf(u))||(u&&(a(u,"updatedData",o.updatedDataHandler),delete u.navigatorSeries),H.chart&&H.destroy(),!1)}),c,A,T=o.navigatorOptions.series,B;d&&d.length&&d.forEach(H=>{let u=H.navigatorSeries,y=w({color:H.color,visible:H.visible},f(T)?W.navigator.series:T);if(u&&o.navigatorOptions.adaptToUpdatedData===!1)return;b.name="Navigator "+d.length,B=(c=H.options||{}).navigatorOptions||{},y.dataLabels=x(y.dataLabels),(A=D(c,b,y,B)).pointRange=g(y.pointRange,B.pointRange,W.plotOptions[A.type||"line"].pointRange);let v=B.data||y.data;o.hasNavigatorData=o.hasNavigatorData||!!v,A.data=v||c.data&&c.data.slice(0),u&&u.options?u.update(A,i):(H.navigatorSeries=n.initSeries(A),n.setSortedData(),H.navigatorSeries.baseSeries=H,R.push(H.navigatorSeries))}),(T.data&&!(d&&d.length)||f(T))&&(o.hasNavigatorData=!1,(T=x(T)).forEach((H,u)=>{b.name="Navigator "+(R.length+1),(A=D(W.navigator.series,{color:n.series[u]&&!n.series[u].options.isInternal&&n.series[u].color||n.options.colors[u]||n.options.colors[0]},b,H)).data=H.data,A.data&&(o.hasNavigatorData=!0,R.push(n.initSeries(A)))})),e&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let e=this,i=e.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(S(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(o=>{o.eventsToUnbind.push(S(o,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),o.eventsToUnbind.push(S(o,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&o.xAxis&&o.eventsToUnbind.push(S(o,"updatedData",this.updatedDataHandler)),o.eventsToUnbind.push(S(o,"remove",function(){this.navigatorSeries&&(C(e.series,this.navigatorSeries),L(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(e){return this.baseSeries.reduce(function(i,o){return Math.min(i,o.xData&&o.xData.length?o.xData[0]:i)},e)}modifyNavigatorAxisExtremes(){let e=this.xAxis;if(e.getExtremes!==void 0){let i=this.getUnionExtremes(!0);i&&(i.dataMin!==e.min||i.dataMax!==e.max)&&(e.min=i.dataMin,e.max=i.dataMax)}}modifyBaseAxisExtremes(){let e,i,o=this.chart.navigator,n=this.getExtremes(),d=n.min,b=n.max,R=n.dataMin,c=n.dataMax,A=b-d,T=o.stickToMin,B=o.stickToMax,H=g(this.ordinal?.convertOverscroll(this.options.overscroll),0),u=o.series&&o.series[0],y=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(T&&(e=(i=R)+A),B&&(e=c+H,T||(i=Math.max(R,e-A,o.getBaseSeriesMin(u&&u.xData?u.xData[0]:-Number.MAX_VALUE)))),y&&(T||B)&&I(i)&&(this.min=this.userMin=i,this.max=this.userMax=e)),o.stickToMin=o.stickToMax=null}updatedDataHandler(){let e=this.chart.navigator,i=this.navigatorSeries,o=e.reversedExtremes?Math.round(e.zoomedMin)===0:Math.round(e.zoomedMax)>=Math.round(e.size);e.stickToMax=g(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,o),e.stickToMin=e.shouldStickToMin(this,e),i&&!e.hasNavigatorData&&(i.options.pointStart=this.xData[0],i.setData(this.options.data,!1,null,!1))}shouldStickToMin(e,i){let o=i.getBaseSeriesMin(e.xData[0]),n=e.xAxis,d=n.max,b=n.min,R=n.options.range;return!!(I(d)&&I(b))&&(R&&d-o>0?d-o{e.destroy&&e.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(e=>{this[e]&&this[e].destroy&&this[e].destroy(),this[e]=null}),[this.handles].forEach(e=>{p(e)})}}return s}),gt(z,"Core/Axis/OrdinalAxis.js",[z["Core/Axis/Axis.js"],z["Core/Globals.js"],z["Core/Series/Series.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){var st;let{addEvent:it,correctFloat:J,css:Y,defined:W,error:U,isNumber:S,pick:O,timeUnits:E,isString:L}=at;return function(p){function C(t,e,i,o,n=[],d=0,b){let R={},c=this.options.tickPixelInterval,A=this.chart.time,T=[],B,H,u,y,v,G=0,l=[],M=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!n||n.length<3||e===void 0)return A.getTimeTicks.apply(A,arguments);let k=n.length;for(B=0;Bi,n[B]5*d||v){if(n[B]>M){for(H=A.getTimeTicks(t,n[G],n[B],o);H.length&&H[0]<=M;)H.shift();H.length&&(M=H[H.length-1]),T.push(l.length),l=l.concat(H)}G=B+1}if(v)break}if(H){if(y=H.info,b&&y.unitRange<=E.hour){for(G=1,B=l.length-1;GF-q),(ot=N[Math.floor(N.length/2)])<.6*c&&(ot=null),X=l[P-1]>i?P-1:P,_=void 0;X--;)ht=Math.abs(_-(Z=j[X])),_&&ht<.8*c&&(ot===null||ht<.8*ot)?(R[l[X]]&&!R[l[X+1]]?($=X+1,_=Z):$=X,l.splice($,1)):_=Z}return l}function w(t){let e=this.ordinal.positions;if(!e)return t;let i=e.length-1,o;return t<0?t=e[0]:t>i?t=e[i]:(i=Math.floor(t),o=t-i),o!==void 0&&e[i]!==void 0?e[i]+(o?o*(e[i+1]-e[i]):0):t}function m(t){let e=this.ordinal,i=this.old?this.old.min:this.min,o=this.old?this.old.transA:this.transA,n=e.getExtendedPositions();if(n&&n.length){let d=J((t-i)*o+this.minPixelPadding),b=J(e.getIndexOfPoint(d,n)),R=J(b%1);if(b>=0&&b<=n.length-1){let c=n[Math.floor(b)],A=n[Math.ceil(b)];return n[Math.floor(b)]+R*(A-c)}}return t}function h(t,e){let i=p.Additions.findIndexOf(t,e,!0);if(t[i]===e)return i;let o=(e-t[i])/(t[i+1]-t[i]);return i+o}function f(){this.ordinal||(this.ordinal=new p.Additions(this))}function I(){let{eventArgs:t,options:e}=this;if(this.isXAxis&&W(e.overscroll)&&e.overscroll!==0&&S(this.max)&&S(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(t?.trigger!=="pan"||this.isInternal)&&t?.trigger!=="navigator")){let i=this.ordinal.convertOverscroll(e.overscroll);this.max+=i,!this.isInternal&&W(this.userMin)&&t?.trigger!=="mousewheel"&&(this.min+=i)}}function D(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function g(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function a(t){let e=this.xAxis[0],i=e.ordinal.convertOverscroll(e.options.overscroll),o=t.originalEvent.chartX,n=this.options.chart.panning,d=!1;if(n&&n.type!=="y"&&e.options.ordinal&&e.series.length){let b,R,c=this.mouseDownX,A=e.getExtremes(),T=A.dataMin,B=A.dataMax,H=A.min,u=A.max,y=this.hoverPoints,v=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange,G=Math.round((c-o)/(e.translationSlope*(e.ordinal.slope||v))),l=e.ordinal.getExtendedPositions(),M={ordinal:{positions:l,extendedOrdinalPositions:l}},k=e.index2val,P=e.val2lin;if(H<=T&&G<0||u+i>=B&&G>0)return;M.ordinal.positions?Math.abs(G)>1&&(y&&y.forEach(function(j){j.setState()}),B>(R=M.ordinal.positions)[R.length-1]&&R.push(B),this.setFixedRange(u-H),(b=e.navigatorAxis.toFixedRange(void 0,void 0,k.apply(M,[P.apply(M,[H,!0])+G]),k.apply(M,[P.apply(M,[u,!0])+G]))).min>=Math.min(A.dataMin,H)&&b.max<=Math.max(B,u)+i&&e.setExtremes(b.min,b.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,Y(this.container,{cursor:"move"})):d=!0}else d=!0;d||n&&/y/.test(n.type)?i&&(e.max=e.dataMax+i):t.preventDefault()}function x(){let t=this.xAxis;t&&t.options.ordinal&&(delete t.ordinal.index,delete t.ordinal.originalOrdinalRange)}function r(t,e){let i,o=this.ordinal,n=o.positions,d=o.slope,b;if(!n)return t;let R=n.length;if(n[0]<=t&&n[R-1]>=t)i=h(n,t);else{if(!((b=o.getExtendedPositions&&o.getExtendedPositions())&&b.length))return t;let c=b.length;d||(d=(b[c-1]-b[0])/c);let A=h(b,n[0]);if(t>=b[0]&&t<=b[c-1])i=h(b,t)-A;else{if(!e)return t;i=t0&&j.options.id!=="highcharts-navigator-series"&&j.processedXData.length>1&&(M=P!==j.processedXData[1]-j.processedXData[0]),P=j.processedXData[1]-j.processedXData[0],j.boosted&&(k=j.boosted),j.reserveSpace()&&(j.takeOrdinalPosition!==!1||b)&&(c=(v=v.concat(j.processedXData)).length,v.sort(function($,Z){return $-Z}),G=Math.min(G,O(j.closestPointRange,G)),c)){for(N=0;N2){for(T=v[1]-v[0],y=c-1;y--&&!l;)v[y+1]-v[y]!==T&&(l=!0);!e.options.keepOrdinalPadding&&(v[0]-n>T||d-v[v.length-1]>T)&&(l=!0)}else e.options.overscroll&&(c===2?G=v[1]-v[0]:c===1?(G=e.ordinal.convertOverscroll(e.options.overscroll),v=[v[0],v[0]+G]):G=i.overscrollPointsRange);l||e.forceOrdinal?(e.options.overscroll&&(i.overscrollPointsRange=G,v=v.concat(i.getOverscrollPositions())),i.positions=v,B=e.ordinal2lin(Math.max(n,v[0]),!0),H=Math.max(e.ordinal2lin(Math.min(d,v[v.length-1]),!0),1),i.slope=u=(d-n)/(H-B),i.offset=n-B*u):(i.overscrollPointsRange=O(e.closestPointRange,i.overscrollPointsRange),i.positions=e.ordinal.slope=i.offset=void 0)}e.isOrdinal=R&&l,i.groupIntervalFactor=null}static findIndexOf(e,i,o){let n=0,d=e.length-1,b;for(;nH.x>=T&&H.x<=B)};n.series.forEach(A=>{let T=A.points?.[0];W(T?.plotX)&&(T.plotXr()),p.splice(g,1);return}}}function I(){let g=this.rangeSelector;if(g){let a=g.getHeight();this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a)}}function D(g){let a=g.options.rangeSelector,x=this.extraBottomMargin,r=this.extraTopMargin,s=this.rangeSelector;if(a&&a.enabled&&!W(s)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=s=new st(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,s){let t=a&&a.verticalAlign||s.options&&s.options.verticalAlign;s.options.floating||(t==="bottom"?this.extraBottomMargin=!0:t==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==x||this.extraTopMargin!==r)&&(this.isDirtyBox=!0)}}return{compose:function(g,a,x){if(st=x,L(J,"RangeSelector")){let r=a.prototype;g.prototype.minFromRange=C,Y(a,"afterGetContainer",w),Y(a,"beforeRender",m),Y(a,"destroy",f),Y(a,"getMargins",I),Y(a,"redraw",h),Y(a,"update",D),r.callbacks.push(h),U(it,{rangeSelector:nt.rangeSelector}),U(it.lang,nt.lang)}}}}),gt(z,"Stock/RangeSelector/RangeSelector.js",[z["Core/Axis/Axis.js"],z["Core/Defaults.js"],z["Core/Globals.js"],z["Stock/RangeSelector/RangeSelectorComposition.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Utilities.js"],z["Core/Axis/OrdinalAxis.js"]],function(V,Q,nt,at,st,it,J){let{defaultOptions:Y}=Q,{addEvent:W,createElement:U,css:S,defined:O,destroyObjectProperties:E,discardElement:L,extend:p,fireEvent:C,isNumber:w,merge:m,objectEach:h,pad:f,pick:I,pInt:D,splat:g}=it;class a{static compose(r,s){at.compose(r,s,a)}constructor(r){this.buttonOptions=a.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(r)}clickButton(r,s){let t=this.chart,e=this.buttonOptions[r],i=t.xAxis[0],o=t.scroller&&t.scroller.getUnionExtremes()||i||{},n=e.type,d=e.dataGrouping,b=o.dataMin,R=o.dataMax,c,A=i&&Math.round(Math.min(i.max,I(R,i.max))),T,B=e._range,H,u,y,v=!0;if(b!==null&&R!==null){if(this.setSelected(r),d&&(this.forcedDataGrouping=!0,V.prototype.setDataGrouping.call(i||{chart:this.chart},d,!1),this.frozenStates=e.preserveDataGrouping),n==="month"||n==="year")i?(u={range:e,max:A,chart:t,dataMin:b,dataMax:R},c=i.minFromRange.call(u),w(u.newMax)&&(A=u.newMax),v=!1):B=e;else if(B)A=Math.min((c=Math.max(A-B,b))+B,R),v=!1;else if(n==="ytd")if(i)(R===void 0||b===void 0)&&(b=Number.MAX_VALUE,R=Number.MIN_VALUE,t.series.forEach(G=>{let l=G.xData;l&&(b=Math.min(l[0],b),R=Math.max(l[l.length-1],R))}),s=!1),c=H=(y=this.getYTDExtremes(R,b,t.time.useUTC)).min,A=y.max;else{this.deferredYTDClick=r;return}else n==="all"&&i&&(t.navigator&&t.navigator.baseSeries[0]&&(t.navigator.baseSeries[0].xAxis.options.range=void 0),c=b,A=R);if(v&&e._offsetMin&&O(c)&&(c+=e._offsetMin),e._offsetMax&&O(A)&&(A+=e._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=r+1),i)i.setExtremes(c,A,I(s,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:e}),t.setFixedRange(e._range);else{T=g(t.options.xAxis)[0];let G=W(t,"afterGetAxes",function(){let l=t.xAxis[0];l.range=l.options.range=B,l.min=l.options.min=H});W(t,"load",function(){let l=t.xAxis[0];t.setFixedRange(e._range),l.options.range=T.range,l.options.min=T.min,G()})}C(this,"afterBtnClick")}}setSelected(r){this.selected=this.options.selected=r}init(r){let s=this,t=r.options.rangeSelector,e=t.buttons||s.defaultButtons.slice(),i=t.selected,o=function(){let n=s.minInput,d=s.maxInput;n&&n.blur&&C(n,"blur"),d&&d.blur&&C(d,"blur")};s.chart=r,s.options=t,s.buttons=[],s.buttonOptions=e,this.eventsToUnbind=[],this.eventsToUnbind.push(W(r.container,"mousedown",o)),this.eventsToUnbind.push(W(r,"resize",o)),e.forEach(s.computeButtonRange),i!==void 0&&e[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(W(r,"load",function(){r.xAxis&&r.xAxis[0]&&W(r.xAxis[0],"setExtremes",function(n){w(this.max)&&w(this.min)&&this.max-this.min!==r.fixedRange&&n.trigger!=="rangeSelectorButton"&&n.trigger!=="updatedData"&&s.forcedDataGrouping&&!s.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let r=this,s=this.chart,t=this.dropdown,e=this.dropdownLabel,i=s.xAxis[0],o=Math.round(i.max-i.min),n=!i.hasVisibleSeries,d=24*36e5,b=s.scroller&&s.scroller.getUnionExtremes()||i,R=b.dataMin,c=b.dataMax,A=r.getYTDExtremes(c,R,s.time.useUTC),T=A.min,B=A.max,H=r.selected,u=r.options.allButtonsEnabled,y=Array(r.buttonOptions.length).fill(0),v=w(H),G=r.buttons,l=!1,M=null;r.buttonOptions.forEach((k,P)=>{let j=k._range,N=k.type,$=k.count||1,Z=k._offsetMax-k._offsetMin,_=P===H,ot=j>c-R,ht=jj&&(F=!0)}else(N==="month"||N==="year")&&o+36e5>={month:28,year:365}[N]*d*$-Z&&o-36e5<={month:31,year:366}[N]*d*$+Z?F=!0:N==="ytd"?(F=B-T+Z===o,X=!_):N==="all"&&(F=i.max-i.min>=c-R);let q=!u&&!(l&&N==="all")&&(ot||ht||n),K=l&&N==="all"||!X&&F||_&&r.frozenStates;q?y[P]=3:K&&(!v||P===H)&&(M=P)}),M!==null?(y[M]=2,r.setSelected(M)):(r.setSelected(),e&&(e.setState(0),e.attr({text:(Y.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let k=0;k6&&(o.lastIndexOf("-")===o.length-6||o.lastIndexOf("+")===o.length-6))){let n=new Date(e).getTimezoneOffset()/60;e+=n<=0?`+${f(-n)}:00`:`-${f(n)}:00`}}let i=Date.parse(e);if(!w(i)){let o=r.split("-");i=Date.UTC(D(o[0]),D(o[1])-1,D(o[2]))}return t&&s&&w(i)&&(i+=t.getTimezoneOffset(i)),i}drawInput(r){let{chart:s,div:t,inputGroup:e}=this,i=this,o=s.renderer.style||{},n=s.renderer,d=s.options.rangeSelector,b=Y.lang,R=r==="min";function c(y){let{maxInput:v,minInput:G}=i,l=s.xAxis[0],M=s.scroller?.getUnionExtremes()||l,k=M.dataMin,P=M.dataMax,j=s.xAxis[0].getExtremes()[y],N=i.getInputValue(y);w(N)&&N!==j&&(R&&v&&w(k)?N>Number(v.getAttribute("data-hc-time"))?N=void 0:NP&&(N=P)),N!==void 0&&l.setExtremes(R?N:l.min,R?l.max:N,void 0,void 0,{trigger:"rangeSelectorInput"}))}let A=b[R?"rangeSelectorFrom":"rangeSelectorTo"]||"",T=n.label(A,0).addClass("highcharts-range-label").attr({padding:A?2:0,height:A?d.inputBoxHeight:0}).add(e),B=n.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",function(){i.showInput(r),i[r+"Input"].focus()});s.styledMode||B.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),B.add(e);let H=U("input",{name:r,className:"highcharts-range-selector"},void 0,t);H.setAttribute("type",function(y){if(y.indexOf("%L")!==-1)return"text";let v=["a","A","d","e","w","b","B","m","o","y","Y"].some(l=>y.indexOf("%"+l)!==-1),G=["H","k","I","l","M","S"].some(l=>y.indexOf("%"+l)!==-1);return v&&G?"datetime-local":v?"date":G?"time":"text"}(d.inputDateFormat||"%e %b %Y")),s.styledMode||(T.css(m(o,d.labelStyle)),B.css(m({color:"#333333"},o,d.inputStyle)),S(H,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:o.fontSize,fontFamily:o.fontFamily,top:"-9999em"},d.inputStyle))),H.onfocus=()=>{i.showInput(r)},H.onblur=()=>{H===nt.doc.activeElement&&c(r),i.hideInput(r),i.setInputValue(r),H.blur()};let u=!1;return H.onchange=()=>{u||(c(r),i.hideInput(r),H.blur())},H.onkeypress=y=>{y.keyCode===13&&c(r)},H.onkeydown=y=>{u=!0,(y.key==="ArrowUp"||y.key==="ArrowDown"||y.key==="Tab")&&c(r)},H.onkeyup=()=>{u=!1},{dateBox:B,input:H,label:T}}getPosition(){let r=this.chart,s=r.options.rangeSelector,t=s.verticalAlign==="top"?r.plotTop-r.axisOffset[0]:0;return{buttonTop:t+s.buttonPosition.y,inputTop:t+s.inputPosition.y-10}}getYTDExtremes(r,s,t){let e=this.chart.time,i=new e.Date(r),o=e.get("FullYear",i),n=Math.max(s,t?e.Date.UTC(o,0,1):+new e.Date(o,0,1)),d=i.getTime();return{max:Math.min(r||d,d),min:n}}createElements(){let r=this.chart,s=r.renderer,t=r.container,e=r.options,i=e.rangeSelector,o=i.inputEnabled,n=I(e.chart.style?.zIndex,0)+1;if(i.enabled!==!1&&(this.group=s.g("range-selector-group").attr({zIndex:7}).add(),this.div=U("div",void 0,{position:"relative",height:0,zIndex:n}),this.buttonOptions.length&&this.renderButtons(),t.parentNode&&t.parentNode.insertBefore(this.div,t),o)){this.inputGroup=s.g("input-group").add(this.group);let d=this.drawInput("min");this.minDateBox=d.dateBox,this.minLabel=d.label,this.minInput=d.input;let b=this.drawInput("max");this.maxDateBox=b.dateBox,this.maxLabel=b.label,this.maxInput=b.input}}render(r,s){let t=this.chart,e=t.options.rangeSelector,i=e.inputEnabled;if(e.enabled!==!1){if(i){this.setInputValue("min",r),this.setInputValue("max",s);let o=t.scroller&&t.scroller.getUnionExtremes()||t.xAxis[0]||{};if(O(o.dataMin)&&O(o.dataMax)){let n=t.xAxis[0].minRange||0;this.setInputExtremes("min",o.dataMin,Math.min(o.dataMax,this.getInputValue("max"))-n),this.setInputExtremes("max",Math.max(o.dataMin,this.getInputValue("min"))+n,o.dataMax)}if(this.inputGroup){let n=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(d=>{if(d){let{width:b}=d.getBBox();b&&(d.attr({x:n}),n+=b+e.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:r,chart:s,options:t}=this,e=Y.lang,i=s.renderer,o=m(t.buttonTheme),n=o&&o.states,d=o.width||28;delete o.width,delete o.states,this.buttonGroup=i.g("range-selector-buttons").add(this.group);let b=this.dropdown=U("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),R=s.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=i.button("",0,0,()=>{},m(o,{"stroke-width":I(o["stroke-width"],0),width:"auto",paddingLeft:I(t.buttonTheme.paddingLeft,R?.padding,8),paddingRight:I(t.buttonTheme.paddingRight,R?.padding,8)}),n&&n.hover,n&&n.select,n&&n.disabled).hide().add(this.group),W(b,"touchstart",()=>{b.style.fontSize="16px"});let c=nt.isMS?"mouseover":"mouseenter",A=nt.isMS?"mouseout":"mouseleave";W(b,c,()=>{C(this.dropdownLabel.element,c)}),W(b,A,()=>{C(this.dropdownLabel.element,A)}),W(b,"change",()=>{C(this.buttons[b.selectedIndex-1].element,"click")}),this.zoomText=i.label(e.rangeSelectorZoom||"",0).attr({padding:t.buttonTheme.padding,height:t.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(t.labelStyle),o["stroke-width"]=I(o["stroke-width"],0)),U("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,b),this.buttonOptions.forEach((T,B)=>{U("option",{textContent:T.title||T.text},void 0,b),r[B]=i.button(T.text,0,0,H=>{let u,y=T.events&&T.events.click;y&&(u=y.call(T,H)),u!==!1&&this.clickButton(B),this.isActive=!0},o,n&&n.hover,n&&n.select,n&&n.disabled).attr({"text-align":"center",width:d}).add(this.buttonGroup),T.title&&r[B].attr("title",T.title)})}alignElements(){let{buttonGroup:r,buttons:s,chart:t,group:e,inputGroup:i,options:o,zoomText:n}=this,d=t.options,b=d.exporting&&d.exporting.enabled!==!1&&d.navigation&&d.navigation.buttonOptions,{buttonPosition:R,inputPosition:c,verticalAlign:A}=o,T=(H,u)=>b&&this.titleCollision(t)&&A==="top"&&u.align==="right"&&u.y-H.getBBox().height-12<(b.y||0)+(b.height||0)+t.spacing[0]?-40:0,B=t.plotLeft;if(e&&R&&c){let H=R.x-t.spacing[3];if(r){if(this.positionButtons(),!this.initialButtonGroupWidth){let j=0;n&&(j+=n.getBBox().width+5),s.forEach((N,$)=>{j+=N.width||0,$!==s.length-1&&(j+=o.buttonSpacing)}),this.initialButtonGroupWidth=j}B-=t.spacing[3];let P=T(r,R);this.alignButtonGroup(P),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),e.placed=r.placed=t.hasLoaded}let u=0;i&&(u=T(i,c),c.align==="left"?H=B:c.align==="right"&&(H=-Math.max(t.axisOffset[1],-u)),i.align({y:c.y,width:i.getBBox().width,align:c.align,x:c.x+H-2},!0,t.spacingBox),i.placed=t.hasLoaded),this.handleCollision(u),e.align({verticalAlign:A},!0,t.spacingBox);let y=e.alignAttr.translateY,v=e.getBBox().height+20,G=0;if(A==="bottom"){let P=t.legend&&t.legend.options;G=y-(v=v+(P&&P.verticalAlign==="bottom"&&P.enabled&&!P.floating?t.legend.legendHeight+I(P.margin,10):0)-20)-(o.floating?0:o.y)-(t.titleOffset?t.titleOffset[2]:0)-10}A==="top"?(o.floating&&(G=0),t.titleOffset&&t.titleOffset[0]&&(G=t.titleOffset[0]),G+=t.margin[0]-t.spacing[0]||0):A==="middle"&&(c.y===R.y?G=y:(c.y||R.y)&&(c.y<0||R.y<0?G-=Math.min(c.y,R.y):G=y-v)),e.translate(o.x,o.y+Math.floor(G));let{minInput:l,maxInput:M,dropdown:k}=this;o.inputEnabled&&l&&M&&(l.style.marginTop=e.translateY+"px",M.style.marginTop=e.translateY+"px"),k&&(k.style.marginTop=e.translateY+"px")}}alignButtonGroup(r,s){let{chart:t,options:e,buttonGroup:i}=this,{buttonPosition:o}=e,n=t.plotLeft-t.spacing[3],d=o.x-t.spacing[3];o.align==="right"?d+=r-n:o.align==="center"&&(d-=n/2),i&&i.align({y:o.y,width:I(s,this.initialButtonGroupWidth),align:o.align,x:d},!0,t.spacingBox)}positionButtons(){let{buttons:r,chart:s,options:t,zoomText:e}=this,i=s.hasLoaded?"animate":"attr",{buttonPosition:o}=t,n=s.plotLeft,d=n;e&&e.visibility!=="hidden"&&(e[i]({x:I(n+o.x,n)}),d+=o.x+e.getBBox().width+5);for(let b=0,R=this.buttonOptions.length;b{let c=0;return this.buttons.forEach(A=>{let T=A.getBBox();T.width>c&&(c=T.width)}),c},b=c=>{if(e?.alignOptions&&t){let A=e.alignAttr.translateX+e.alignOptions.x-r+e.getBBox().x+2,T=e.alignOptions.width||0,B=t.alignAttr.translateX+t.getBBox().x;return B+c>A&&A+T>B&&i.y{e&&t&&e.attr({translateX:e.alignAttr.translateX+(s.axisOffset[1]>=-r?0:-r),translateY:e.alignAttr.translateY+t.getBBox().height+10})};if(t){if(o==="always"){this.collapseButtons(),b(d())&&R();return}o==="never"&&this.expandButtons()}e&&t?n.align===i.align||b(this.initialButtonGroupWidth+20)?o==="responsive"?(this.collapseButtons(),b(d())&&R()):R():o==="responsive"&&this.expandButtons():t&&o==="responsive"&&(this.initialButtonGroupWidth>s.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:r,zoomText:s}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,s.hide(),r.forEach(t=>void t.hide()),this.showDropdown())}expandButtons(){let{buttons:r,zoomText:s}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),s.show(),r.forEach(t=>void t.show()),this.positionButtons())}showDropdown(){let{buttonGroup:r,chart:s,dropdownLabel:t,dropdown:e}=this;if(r&&e){let{translateX:i=0,translateY:o=0}=r,n=s.plotLeft+i;t.attr({x:n,y:o}).show(),S(e,{left:n+"px",top:o+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:r}=this;r&&(this.dropdownLabel.hide(),S(r,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let r=this.options,s=this.group,t=r.inputPosition,e=r.buttonPosition,i=r.y,o=e.y,n=t.y,d=0;if(r.height)return r.height;this.alignElements(),d=s?s.getBBox(!0).height+13+i:0;let b=Math.min(n,o);return(n<0&&o<0||n>0&&o>0)&&(d+=Math.abs(b)),d}titleCollision(r){return!(r.options.title.text||r.options.subtitle.text)}update(r,s=!0){let t=this.chart;m(!0,t.options.rangeSelector,r),this.destroy(),this.init(t),s&&this.render()}destroy(){let r=this,s=r.minInput,t=r.maxInput;r.eventsToUnbind&&(r.eventsToUnbind.forEach(e=>e()),r.eventsToUnbind=void 0),E(r.buttons),s&&(s.onfocus=s.onblur=s.onchange=null),t&&(t.onfocus=t.onblur=t.onchange=null),h(r,function(e,i){e&&i!=="chart"&&(e instanceof st?e.destroy():e instanceof Pt.HTMLElement&&L(e)),e!==a.prototype[i]&&(r[i]=null)},this)}}return p(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}),gt(z,"Core/Chart/StockChart.js",[z["Core/Chart/Chart.js"],z["Core/Templating.js"],z["Core/Defaults.js"],z["Stock/Navigator/NavigatorDefaults.js"],z["Stock/RangeSelector/RangeSelectorDefaults.js"],z["Stock/Scrollbar/ScrollbarDefaults.js"],z["Stock/Utilities/StockUtilities.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y){let{format:W}=Q,{getOptions:U}=nt,{setFixedRange:S}=J,{addEvent:O,clamp:E,crisp:L,defined:p,extend:C,find:w,isNumber:m,isString:h,merge:f,pick:I,splat:D}=Y;function g(r,s,t){return r==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:r==="yAxis"?{labels:{y:-2},opposite:t.opposite??s.opposite??!0,showLastLabel:!!(s.categories||s.type==="category"),title:{text:t.title?.text!=="Values"?t.title?.text:null}}:{}}function a(r,s){if(r==="xAxis"){let t=I(s.navigator&&s.navigator.enabled,at.enabled,!0),e={type:"datetime",categories:void 0};return t&&(e.startOnTick=!1,e.endOnTick=!1),e}return{}}class x extends V{init(s,t){let e=U(),i=s.xAxis,o=s.yAxis,n=I(s.navigator&&s.navigator.enabled,at.enabled,!0);s.xAxis=s.yAxis=void 0;let d=f({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:n},scrollbar:{enabled:I(it.enabled,!0)},rangeSelector:{enabled:I(st.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:I(e.tooltip&&e.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},s,{isStock:!0});s.xAxis=i,s.yAxis=o,d.xAxis=D(s.xAxis||{}).map(b=>f(g("xAxis",b,e.xAxis),b,a("xAxis",s))),d.yAxis=D(s.yAxis||{}).map(b=>f(g("yAxis",b,e.yAxis),b)),super.init(d,t)}createAxis(s,t){return t.axis=f(g(s,t.axis,U()[s]),t.axis,a(s,this.userOptions)),super.createAxis(s,t)}}return O(V,"update",function(r){let s=r.options;"scrollbar"in s&&this.navigator&&(f(!0,this.options.scrollbar,s.scrollbar),this.navigator.update({}),delete s.scrollbar)}),function(r){function s(R){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!m(this.min)||!m(this.max))return;let c=this.chart,A=this.logarithmic,T=this.crosshair.label,B=this.horiz,H=this.opposite,u=this.left,y=this.top,v=this.width,G=this.options.tickPosition==="inside",l=this.crosshair.snap!==!1,M=R.e||this.cross&&this.cross.e,k=R.point,P=this.crossLabel,j,N,$=T.format,Z="",_,ot=0,ht=this.min,X=this.max;A&&(ht=A.lin2log(this.min),X=A.lin2log(this.max));let F=B?"center":H?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";P||(P=this.crossLabel=c.renderer.label("",0,void 0,T.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(k&&k.series?k.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:T.align||F,padding:I(T.padding,8),r:I(T.borderRadius,3),zIndex:2}).add(this.labelGroup),c.styledMode||P.attr({fill:T.backgroundColor||k&&k.series&&k.series.color||"#666666",stroke:T.borderColor||"","stroke-width":T.borderWidth||0}).css(C({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},T.style||{}))),B?(j=l?(k.plotX||0)+u:M.chartX,N=y+(H?0:this.height)):(j=u+this.offset+(H?v:0),N=l?(k.plotY||0)+y:M.chartY),$||T.formatter||(this.dateTime&&(Z="%b %d, %Y"),$="{value"+(Z?":"+Z:"")+"}");let q=l?this.isXAxis?k.x:k.y:this.toValue(B?M.chartX:M.chartY),K=k&&k.series?k.series.isPointInside(k):m(q)&&q>ht&&q=_.right&&(ot=-(rt+tt.width-_.right)),P.attr({x:j+ot,y:N,anchorX:B?j:this.opposite?0:c.chartWidth,anchorY:B?this.opposite?c.chartHeight:0:N+tt.height/2})}function t(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function e(R){let c=this.chart,A=this.options,T=c._labelPanes=c._labelPanes||{},B=A.labels;if(c.options.isStock&&this.coll==="yAxis"){let H=A.top+","+A.height;!T[H]&&B.enabled&&(B.distance===15&&this.side===1&&(B.distance=0),B.align===void 0&&(B.align="right"),T[H]=this,R.align="right",R.preventDefault())}}function i(){let R=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&R._labelPanes&&R._labelPanes[c]===this&&delete R._labelPanes[c]}function o(R){let c=this,A=c.isLinked&&!c.series&&c.linkedParent?c.linkedParent.series:c.series,T=c.chart,B=T.renderer,H=c.left,u=c.top,y=[],v=R.translatedValue,G=R.value,l=R.force,M,k,P,j,N=[],$,Z;if(T.options.isStock&&R.acrossPanes!==!1&&c.coll==="xAxis"||c.coll==="yAxis"){for(let _ of(R.preventDefault(),N=(ot=>{let ht=ot==="xAxis"?"yAxis":"xAxis",X=c.options[ht];return m(X)?[T[ht][X]]:h(X)?[T.get(X)]:A.map(F=>F[ht])})(c.coll),c.isXAxis?T.yAxis:T.xAxis))if(!p(_.options.id)||_.options.id.indexOf("navigator")===-1){let ot=_.isXAxis?"yAxis":"xAxis";c===(p(_.options[ot])?T[ot][_.options[ot]]:T[ot][0])&&N.push(_)}for(let _ of($=N.length?[]:[c.isXAxis?T.yAxis[0]:T.xAxis[0]],N))$.indexOf(_)!==-1||w($,ot=>ot.pos===_.pos&&ot.len===_.len)||$.push(_);if(m(Z=I(v,c.translate(G||0,void 0,void 0,R.old))))if(c.horiz)for(let _ of $){let ot;j=(k=_.pos)+_.len,M=P=Math.round(Z+c.transB),l!=="pass"&&(MH+c.width)&&(l?M=P=E(M,H,H+c.width):ot=!0),ot||y.push(["M",M,k],["L",P,j])}else for(let _ of $){let ot;P=(M=_.pos)+_.len,k=j=Math.round(u+c.height-Z),l!=="pass"&&(ku+c.height)&&(l?k=j=E(k,u,u+c.height):ot=!0),ot||y.push(["M",M,k],["L",P,j])}R.path=y.length>0?B.crispPolyLine(y,R.lineWidth||1):void 0}}function n(R){if(this.chart.options.isStock){let c;this.is("column")||this.is("columnrange")?c={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(c={marker:{enabled:!1,radius:2}}),c&&(R.plotOptions[this.type]=f(R.plotOptions[this.type],c))}}function d(){let R=this.chart,c=this.options.dataGrouping;return this.allowDG!==!1&&c&&I(c.enabled,R.options.isStock)}function b(R,c){for(let A=0;A\u25CF {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),gt(z,"Series/HLC/HLCSeries.js",[z["Series/HLC/HLCPoint.js"],z["Series/HLC/HLCSeriesDefaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){let{column:st}=nt.seriesTypes,{crisp:it,extend:J,merge:Y}=at;class W extends st{extendStem(S,O,E){let L=S[0],p=S[1];typeof L[2]=="number"&&(L[2]=Math.max(E+O,L[2])),typeof p[2]=="number"&&(p[2]=Math.min(E-O,p[2]))}getPointPath(S,O){let E=O.strokeWidth(),L=S.series,p=it(S.plotX||0,E),C=Math.round(S.shapeArgs.width/2),w=[["M",p,Math.round(S.yBottom)],["L",p,Math.round(S.plotHigh)]];if(S.close!==null){let m=it(S.plotClose,E);w.push(["M",p,m],["L",p+C,m]),L.extendStem(w,E/2,m)}return w}drawSinglePoint(S){let O=S.series,E=O.chart,L,p=S.graphic;S.plotY!==void 0&&(p||(S.graphic=p=E.renderer.path().add(O.group)),E.styledMode||p.attr(O.pointAttribs(S,S.selected&&"select")),L=O.getPointPath(S,p),p[p?"animate":"attr"]({d:L}).addClass(S.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(S,O){let E=super.pointAttribs.call(this,S,O);return delete E.fill,E}toYData(S){return[S.high,S.low,S.close]}translate(){let S=this,O=S.yAxis,E=this.pointArrayMap&&this.pointArrayMap.slice()||[],L=E.map(p=>`plot${p.charAt(0).toUpperCase()+p.slice(1)}`);L.push("yBottom"),E.push("low"),super.translate.apply(S),S.points.forEach(function(p){E.forEach(function(C,w){let m=p[C];m!==null&&(S.dataModify&&(m=S.dataModify.modifyValue(m)),p[L[w]]=O.toPixels(m,!0))}),p.tooltipPos[1]=p.plotHigh+O.pos-S.chart.plotTop})}}return W.defaultOptions=Y(st.defaultOptions,Q),J(W.prototype,{pointClass:V,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),nt.registerSeriesType("hlc",W),W}),gt(z,"Series/OHLC/OHLCPoint.js",[z["Core/Series/SeriesRegistry.js"]],function(V){let{seriesTypes:{hlc:Q}}=V;class nt extends Q.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}
'}}}),gt(z,"Series/OHLC/OHLCSeries.js",[z["Core/Globals.js"],z["Series/OHLC/OHLCPoint.js"],z["Series/OHLC/OHLCSeriesDefaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st){let{composed:it}=V,{hlc:J}=at.seriesTypes,{addEvent:Y,crisp:W,extend:U,merge:S,pushUnique:O}=st;function E(C){let w=C.options,m=w.dataGrouping;m&&w.useOhlcData&&w.id!=="highcharts-navigator-series"&&(m.approximation="ohlc")}function L(C){let w=C.options;w.useOhlcData&&w.id!=="highcharts-navigator-series"&&U(this,{pointValKey:p.prototype.pointValKey,pointArrayMap:p.prototype.pointArrayMap,toYData:p.prototype.toYData})}class p extends J{static compose(w,...m){O(it,"OHLCSeries")&&(Y(w,"afterSetOptions",E),Y(w,"init",L))}getPointPath(w,m){let h=super.getPointPath(w,m),f=m.strokeWidth(),I=W(w.plotX||0,f),D=Math.round(w.shapeArgs.width/2);if(w.open!==null){let g=W(w.plotOpen,f);h.push(["M",I,g],["L",I-D,g]),super.extendStem(h,f/2,g)}return h}pointAttribs(w,m){let h=super.pointAttribs.call(this,w,m),f=this.options;return delete h.fill,!w.options.color&&f.upColor&&w.openS&&(W-=Math.round((O-S)/2),S=O),L=J[Y](W,U,S,O,E),p&&C){let w=p;if(Y==="circle")w=W+S/2;else{let h=L[0],f=L[1];h[0]==="M"&&f[0]==="L"&&(w=(h[1]+f[1])/2)}let m=U>C?U:U+O;L.push(["M",w,m],["L",p,C]),L=L.concat(J.circle(p-1,C-1,2,2))}return L}}nt.compose=function(J){if(at.indexOf(J)===-1){at.push(J);let W=J.prototype.symbols;W.flag=st,it(W,"circle"),it(W,"square")}let Y=V.getRendererType();at.indexOf(Y)&&at.push(Y)}}(Q||(Q={})),Q}),gt(z,"Series/OnSeriesComposition.js",[z["Series/Column/ColumnSeries.js"],z["Core/Globals.js"],z["Core/Series/Series.js"],z["Core/Utilities.js"]],function(V,Q,nt,at){var st;let{composed:it}=Q,{prototype:J}=V,{prototype:Y}=nt,{defined:W,pushUnique:U,stableSort:S}=at;return function(O){function E(p){return Y.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,p)}function L(){J.translate.apply(this);let p=this,C=p.options,w=p.chart,m=p.points,h=C.onSeries,f=h&&w.get(h),I=f&&f.options.step,D=f&&f.points,g=w.inverted,a=p.xAxis,x=p.yAxis,r=m.length-1,s,t,e=C.onKey||"y",i=D&&D.length,o=0,n,d,b,R,c;if(f&&f.visible&&i){for(o=(f.pointXOffset||0)+(f.barW||0)/2,R=f.currentDataGrouping,d=D[i-1].x+(R?R.totalRange:0),S(m,(A,T)=>A.x-T.x),e="plot"+e[0].toUpperCase()+e.substr(1);i--&&m[r];)if(n=D[i],(s=m[r]).y=n.y,n.x<=s.x&&n[e]!==void 0){if(s.x<=d&&(s.plotY=n[e],n.xMath.pow(1-l,3)*A[M]+3*(1-l)*(1-l)*l*B[M]+3*(1-l)*l*l*H[M]+l*l*l*T[M],y=0,v=1,G;for(let l=0;l<100;l++){let M=(y+v)/2,k=u(M,0);if(k===null)break;if(.25>Math.abs(k-s.plotX)){G=M;break}k{let B;A.plotX+=o,(A.plotY===void 0||g)&&(A.plotX>=0&&A.plotX<=a.len?g?(A.plotY=a.translate(A.x,0,1,0,1),A.plotX=W(A.y)?x.translate(A.y,0,0,0,1):0):A.plotY=(a.opposite?0:p.yAxis.len)+a.offset:A.shapeArgs={}),(t=m[T-1])&&t.plotX===A.plotX&&(t.stackIndex===void 0&&(t.stackIndex=0),B=t.stackIndex+1),A.stackIndex=B}),this.onSeries=f}O.compose=function(p){if(U(it,"OnSeries")){let C=p.prototype;C.getPlotBox=E,C.translate=L}return p},O.getPlotBox=E,O.translate=L}(st||(st={})),st}),gt(z,"Series/Flags/FlagsSeries.js",[z["Series/Flags/FlagsPoint.js"],z["Series/Flags/FlagsSeriesDefaults.js"],z["Series/Flags/FlagsSymbols.js"],z["Core/Globals.js"],z["Series/OnSeriesComposition.js"],z["Core/Renderer/RendererUtilities.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Renderer/SVG/SVGElement.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it,J,Y,W){let{noop:U}=at,{distribute:S}=it,{series:O,seriesTypes:{column:E}}=J,{addEvent:L,defined:p,extend:C,isNumber:w,merge:m,objectEach:h,wrap:f}=W;class I extends E{animate(g){g&&this.setClip()}drawPoints(){let g,a,x,r,s,t,e,i,o,n,d,b=this.points,R=this.chart,c=R.renderer,A=R.inverted,T=this.options,B=T.y,H=this.yAxis,u={},y=[],v=w(T.borderRadius)?T.borderRadius:0;for(r=b.length;r--;)s=b[r],n=(A?s.plotY:s.plotX)>this.xAxis.len,g=s.plotX,e=s.stackIndex,x=s.options.shape||T.shape,(a=s.plotY)!==void 0&&(a=s.plotY+B-(e!==void 0&&e*T.stackDistance)),s.anchorX=e?void 0:s.plotX,i=e?void 0:s.plotY,d=x!=="flag",t=s.graphic,a!==void 0&&g>=0&&!n?(t&&s.hasNewShapeType()&&(t=t.destroy()),t||(t=s.graphic=c.label("",0,void 0,x,void 0,void 0,T.useHTML).addClass("highcharts-point").add(this.markerGroup),s.graphic.div&&(s.graphic.div.point=s),t.isNew=!0),t.attr({align:d?"center":"left",width:T.width,height:T.height,"text-align":T.textAlign,r:v}),R.styledMode||t.attr(this.pointAttribs(s)).css(m(T.style,s.style)).shadow(T.shadow),g>0&&(g-=t.strokeWidth()%2),o={y:a,anchorY:i},T.allowOverlapX&&(o.x=g,o.anchorX=s.anchorX),t.attr({text:s.options.title??T.title??"A"})[t.isNew?"attr":"animate"](o),T.allowOverlapX||(u[s.plotX]?u[s.plotX].size=Math.max(u[s.plotX].size,t.width||0):u[s.plotX]={align:d?.5:0,size:t.width||0,target:g,anchorX:g}),s.tooltipPos=[g,a+H.pos-R.plotTop]):t&&(s.graphic=t.destroy());if(!T.allowOverlapX){let G=100;for(let l of(h(u,function(M){M.plotX=M.anchorX,y.push(M),G=Math.max(M.size,G)}),S(y,A?H.len:this.xAxis.len,G),b)){let M=l.plotX,k=l.graphic,P=k&&u[M];P&&k&&(p(P.pos)?k[k.isNew?"attr":"animate"]({x:P.pos+(P.align||0)*P.size,anchorX:l.anchorX}).show().isNew=!1:k.hide().isNew=!0)}}T.useHTML&&this.markerGroup&&f(this.markerGroup,"on",function(G){return Y.prototype.on.apply(G.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let g=this.points;for(let a of(super.drawTracker(),g)){let x=a.graphic;x&&(a.unbindMouseOver&&a.unbindMouseOver(),a.unbindMouseOver=L(x.element,"mouseover",function(){for(let r of(a.stackIndex>0&&!a.raised&&(a._y=x.y,x.attr({y:a._y-8}),a.raised=!0),g))r!==a&&r.raised&&r.graphic&&(r.graphic.attr({y:r._y}),r.raised=!1)}))}}pointAttribs(g,a){let x=this.options,r=g&&g.color||this.color,s=x.lineColor,t=g&&g.lineWidth,e=g&&g.fillColor||x.fillColor;return a&&(e=x.states[a].fillColor,s=x.states[a].lineColor,t=x.states[a].lineWidth),{fill:e||r,stroke:s||r,"stroke-width":t||x.lineWidth||0}}setClip(){O.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return I.compose=nt.compose,I.defaultOptions=m(E.defaultOptions,Q),st.compose(I),C(I.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:V,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:U,init:O.prototype.init}),J.registerSeriesType("flags",I),I}),gt(z,"Core/Axis/BrokenAxis.js",[z["Core/Axis/Stacking/StackItem.js"],z["Core/Utilities.js"]],function(V,Q){var nt;let{addEvent:at,find:st,fireEvent:it,isArray:J,isNumber:Y,pick:W}=Q;return function(U){function S(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function O(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function E(){let f=this.brokenAxis;if(f?.hasBreaks){let I=this.tickPositions,D=this.tickPositions.info,g=[];for(let a=0;ao.to||g>o.from&&ao.from&&ao.from&&a>o.to&&a0){let r,s;for(this.options.gapUnit!=="value"&&(a*=this.basePointRange),I&&I>a&&I>=this.basePointRange&&(a=I);x--;)if(s&&s.visible!==!1||(s=D[x+1]),r=D[x],s.visible!==!1&&r.visible!==!1){if(s.x-r.x>a){let t=(r.x+s.x)/2;D.splice(x+1,0,{isNull:!0,x:t}),g.stacking&&this.options.stacking&&((g.stacking.stacks[this.stackKey][t]=new V(g,g.options.stackLabels,!1,t,this.stack)).total=0)}s=r}}return this.getGraphPath(D)}U.compose=function(f,I){if(!f.keepProps.includes("brokenAxis")){f.keepProps.push("brokenAxis"),at(f,"init",L),at(f,"afterInit",S),at(f,"afterSetTickPositions",E),at(f,"afterSetOptions",O);let D=I.prototype;D.drawBreaks=w,D.gappedPath=m,at(I,"afterGeneratePoints",p),at(I,"afterRender",C)}return f};class h{static isInBreak(I,D){let g=I.repeat||1/0,a=I.from,x=I.to-I.from,r=D>=a?(D-a)%g:g-(a-D)%g;return I.inclusive?r<=x:r=a);r++)(x.to=I)break;if(h.isInBreak(x,I)){a-=I-x.from;break}}return a}constructor(I){this.hasBreaks=!1,this.axis=I}findBreakAt(I,D){return st(D,function(g){return g.fromd;)R-=n;for(;Rthis.chart.plotSizeX/L||C&&w.forced)&&(p=!0));return p?L:0}function U(){this.series.forEach(function(O){O.hasProcessed=!1})}function S(O,E){let L;if(E=J(E,!0),O||(O={forced:!1,units:null}),this instanceof nt)for(L=this.series.length;L--;)this.series[L].update({dataGrouping:O},!1);else this.chart.options.series.forEach(function(p){p.dataGrouping=typeof O=="boolean"?O:it(O,p.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),E&&this.chart.redraw()}return{compose:function(O){nt=O;let E=O.prototype;E.applyGrouping||(at(O,"afterSetScale",U),at(O,"postProcessData",Y),st(E,{applyGrouping:Y,getGroupPixelWidth:W,setDataGrouping:S}))}}}),gt(z,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[z["Extensions/DataGrouping/ApproximationRegistry.js"],z["Extensions/DataGrouping/DataGroupingDefaults.js"],z["Core/Axis/DateTimeAxis.js"],z["Core/Defaults.js"],z["Core/Series/SeriesRegistry.js"],z["Core/Utilities.js"]],function(V,Q,nt,at,st,it){let{series:{prototype:J}}=st,{addEvent:Y,defined:W,error:U,extend:S,isNumber:O,merge:E,pick:L}=it,p=J.generatePoints;function C(D){var g;let a,x,r=this.chart,s=this.options.dataGrouping,t=this.allowDG!==!1&&s&&L(s.enabled,r.options.isStock),e=this.reserveSpace(),i=this.currentDataGrouping,o,n,d=!1;t&&!this.requireSorting&&(this.requireSorting=d=!0);let b=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!D)||!t;if(d&&(this.requireSorting=!1),b)return;this.destroyGroupedData();let R=s.groupAll?this.xData:this.processedXData,c=s.groupAll?this.yData:this.processedYData,A=r.plotSizeX,T=this.xAxis,B=T.options.ordinal,H=this.groupPixelWidth;if(H&&R&&R.length&&A){x=!0,this.isDirty=!0,this.points=null;let u=T.getExtremes(),y=u.min,v=u.max,G=B&&T.ordinal&&T.ordinal.getGroupIntervalFactor(y,v,this)||1,l=H*(v-y)/A*G,M=T.getTimeTicks(nt.Additions.prototype.normalizeTimeTickInterval(l,s.units||Q.units),Math.min(y,R[0]),Math.max(v,R[R.length-1]),T.options.startOfWeek,R,this.closestPointRange),k=J.groupData.apply(this,[R,c,M,s.approximation]),P=k.groupedXData,j=k.groupedYData,N=0;for(s&&s.smoothed&&P.length&&(s.firstAnchor="firstPoint",s.anchor="middle",s.lastAnchor="lastPoint",U(32,!1,r,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),a=1;a=Z[0]){let rt;tt++;let lt=$.groupMap[0].start,dt=$.groupMap[0].length;O(lt)&&O(dt)&&(rt=lt+(dt-1)),Z[0]={start:Z[0],middle:Z[0]+.5*ht,end:Z[0]+ht,firstPoint:$.xData[0],lastPoint:rt&&$.xData[rt]}[q]}if(X>0&&K&&ht&&Z[X]>=_-ht){et--;let rt=$.groupMap[$.groupMap.length-1].start;Z[X]={start:Z[X],middle:Z[X]+.5*ht,end:Z[X]+ht,firstPoint:rt&&$.xData[rt],lastPoint:$.xData[$.xData.length-1]}[K]}if(F&&F!=="start"){let rt=ht*{middle:.5,end:1}[F];for(;et>=tt;)Z[et]+=rt,et--}}(this,P,v),e&&(W((g=P)[0])&&O(T.min)&&O(T.dataMin)&&g[0]T.max&&((!W(T.options.max)&&O(T.dataMax)&&T.max>=T.dataMax||T.max===T.dataMax)&&(T.max=Math.max(g[g.length-1],T.max)),T.dataMax=Math.max(g[g.length-1],T.dataMax))),s.groupAll&&(this.allGroupedData=j,P=(n=this.cropData(P,j,T.min,T.max)).xData,j=n.yData,this.cropStart=n.start),this.processedXData=P,this.processedYData=j}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=x,this.preventGraphAnimation=(i&&i.totalRange)!==(o&&o.totalRange)}function w(){this.groupedData&&(this.groupedData.forEach(function(D,g){D&&(this.groupedData[g]=D.destroy?D.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function m(){p.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function h(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function f(D,g,a,x){let r=this,s=r.data,t=r.options&&r.options.data,e=[],i=[],o=[],n=D.length,d=!!g,b=[],R=r.pointArrayMap,c=R&&R.length,A=["x"].concat(R||["y"]),T=this.options.dataGrouping&&this.options.dataGrouping.groupAll,B,H,u,y=0,v=0,G=typeof x=="function"?x:x&&V[x]?V[x]:V[r.getDGApproximation&&r.getDGApproximation()||"average"];if(c){let M=R.length;for(;M--;)b.push([])}else b.push([]);let l=c||1;for(let M=0;M<=n;M++)if(!(D[M]=a[y+1]||M===n;){B=a[y],r.dataGroupInfo={start:T?v:r.cropStart+v,length:b[0].length,groupStart:B},u=G.apply(r,b),r.pointClass&&!W(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=E(r.pointClass.prototype.optionsToObject.call({series:r},r.options.data[r.cropStart+v])),A.forEach(function(k){delete r.dataGroupInfo.options[k]})),u!==void 0&&(e.push(B),i.push(u),o.push(r.dataGroupInfo)),v=M;for(let k=0;k{let Y=J.axis.getExtremes(),W=Y.min,U=Y.max,S=at(J.axis.minPointOffset,0);return nt(W)&&nt(U)&&J.value>=W-S&&J.value<=U+S&&!J.axis.options.isInternal})[0]},getFieldType:function(it,J){let Y=st[it],W=typeof J;return Q(Y)&&(W=Y),{string:"text",number:"number",boolean:"checkbox"}[W]}}}),gt(z,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[z["Core/Utilities.js"],z["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(V,Q){let nt,{addEvent:at,isObject:st,pick:it,defined:J,merge:Y}=V,{getAssignedAxis:W}=Q,U=[],S={enabled:!0,sensitivity:1.1},O=p=>(st(p)||(p={enabled:p??!0}),Y(S,p)),E=function(p,C,w,m,h,f,I){let D=it(I.type,p.zooming.type,""),g=[];D==="x"?g=w:D==="y"?g=m:D==="xy"&&(g=p.axes);let a=p.transform({axes:g,to:{x:h-5,y:f-5,width:10,height:10},from:{x:h-5*C,y:f-5*C,width:10*C,height:10*C},trigger:"mousewheel"});return a&&(J(nt)&&clearTimeout(nt),nt=setTimeout(()=>{p.pointer?.drop()},400)),a};function L(){let p=O(this.zooming.mouseWheel);p.enabled&&at(this.container,"wheel",C=>{C=this.pointer?.normalize(C)||C;let{pointer:w}=this,m=w&&!w.inClass(C.target,"highcharts-no-mousewheel");if(this.isInsidePlot(C.chartX-this.plotLeft,C.chartY-this.plotTop)&&m){let h=p.sensitivity||1.1,f=C.detail||(C.deltaY||0)/120,I=W(w.getCoordinates(C).xAxis),D=W(w.getCoordinates(C).yAxis);E(this,Math.pow(h,f),I?[I.axis]:this.xAxis,D?[D.axis]:this.yAxis,C.chartX,C.chartY,p)&&C.preventDefault?.()}})}return{compose:function(p){U.indexOf(p)===-1&&(U.push(p),at(p,"afterGetContainer",L))}}}),gt(z,"masters/modules/mouse-wheel-zoom.src.js",[z["Core/Globals.js"],z["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(V,Q){return V.MouseWheelZoom=V.MouseWheelZoom||Q,V.MouseWheelZoom.compose(V.Chart),V}),gt(z,"masters/modules/stock.src.js",[z["Core/Globals.js"],z["Series/DataModifyComposition.js"],z["Stock/Navigator/Navigator.js"],z["Core/Axis/OrdinalAxis.js"],z["Stock/RangeSelector/RangeSelector.js"],z["Stock/Scrollbar/Scrollbar.js"],z["Core/Chart/StockChart.js"],z["Series/OHLC/OHLCSeries.js"],z["Series/Flags/FlagsSeries.js"]],function(V,Q,nt,at,st,it,J,Y,W){return V.Navigator=V.Navigator||nt,V.OrdinalAxis=V.OrdinalAxis||at,V.RangeSelector=V.RangeSelector||st,V.Scrollbar=V.Scrollbar||it,V.stockChart=V.stockChart||J.stockChart,V.StockChart=V.StockChart||V.stockChart,V.extend(V.StockChart,J),Q.compose(V.Series,V.Axis,V.Point),W.compose(V.Renderer),Y.compose(V.Series),V.Navigator.compose(V.Chart,V.Axis,V.Series),V.OrdinalAxis.compose(V.Axis,V.Series,V.Chart),V.RangeSelector.compose(V.Axis,V.Chart),V.Scrollbar.compose(V.Axis),V.StockChart.compose(V.Chart,V.Axis,V.Series,V.SVGRenderer),V}),gt(z,"masters/highstock.src.js",[z["masters/highcharts.src.js"]],function(V){return V.product="Highstock",V}),z["masters/highstock.src.js"]._modules=z,z["masters/highstock.src.js"]})});export{Jt as a}; diff --git a/dist/chunk-5IMEEJFM.js b/dist/chunk-5IMEEJFM.js new file mode 100644 index 00000000..5bf8d5a5 --- /dev/null +++ b/dist/chunk-5IMEEJFM.js @@ -0,0 +1,3 @@ +import{a as D}from"./chunk-WZRR3GQK.js";import{a as I}from"./chunk-43K6TYMZ.js";import{a as B,b as z}from"./chunk-YLXPJAZB.js";import"./chunk-GOV7BL6D.js";import"./chunk-G3W4DD55.js";import"./chunk-MDOQS4TE.js";import{a as W}from"./chunk-G7BOERRR.js";import"./chunk-CF2VGD6U.js";import{c as T,d as k,e as A,j as V}from"./chunk-HYAUW6N4.js";import{F as O,J as E}from"./chunk-GDT23CSW.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-6BTXKMB7.js b/dist/chunk-6BTXKMB7.js deleted file mode 100644 index 0b2ae494..00000000 --- a/dist/chunk-6BTXKMB7.js +++ /dev/null @@ -1 +0,0 @@ -import{F as f,J as h}from"./chunk-CKPIETEW.js";import{Da as c,X as r,aa as l,g as a}from"./chunk-ZKAUCJHV.js";var y=(()=>{let i=class i{constructor(){this.emitter=new c}broadcast(t,s){this.emitter.emit({message:t,value:s})}subscribe(t,s){return this.emitter.subscribe(e=>{e.message===t&&s(e.value)})}};i.\u0275fac=function(s){return new(s||i)},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var v=(()=>{let i=class i{constructor(t){this.ss=t,this.current=new a(""),this.dashboard=new a(null),this.widgets=[],this.allWidgets=[]}setWidgets(t){this.widgets=t}getWidgets(){return this.widgets}getWidgetsWithoutEmpty(t=[]){return this.widgets.filter(s=>s.type!==f.const.emptyWidgetClass&&!t.includes(s.name))}setAllWidgets(t){this.allWidgets=t}getAllWidgets(){return this.allWidgets}saveWidgetPositionAndSize(t){let s=this.ss.getWidgetsSettings(t.dashboard),e=t.name;s[e]||(s[e]={}),isNaN(t.x)||(s[e].col=t.x),isNaN(t.y)||(s[e].row=t.y),isNaN(t.cols)||(s[e].sizeX=t.cols),isNaN(t.rows)||(s[e].sizeY=t.rows),this.ss.setWidgetsSettings(s,t.dashboard)}generateDisplayInfo(t){if(t.displayInfo)return;let s=1,e=1,n=this.dashboard.value;n&&(s=Math.floor(12/n.displayInfo.gridCols),s<1&&(s=1),e<1&&(e=1));let d={topCol:Math.floor((t.x||0)/s),leftRow:Math.floor((t.y||0)/e),colWidth:Math.floor((t.cols||1)/s),rowHeight:Math.floor(t.rows||1)};t.displayInfo=d}};i.\u0275fac=function(s){return new(s||i)(l(h))},i.\u0275prov=r({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();export{y as a,v as b}; diff --git a/dist/chunk-QC7B3BPD.js b/dist/chunk-7HQIQATO.js similarity index 99% rename from dist/chunk-QC7B3BPD.js rename to dist/chunk-7HQIQATO.js index 13e65d39..ae00fad4 100644 --- a/dist/chunk-QC7B3BPD.js +++ b/dist/chunk-7HQIQATO.js @@ -1 +1 @@ -import{a as sA}from"./chunk-PZJJYAMS.js";import{a as rA}from"./chunk-LJL6JWG7.js";import{d as yA,f as FA}from"./chunk-DEPBX7UX.js";var nA=yA((LA,AA)=>{"use strict";(function(){var d=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),n=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=U(g,a.pixelType||Float32Array,a.encodedMaskData,n,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:n};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=q(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=b(g))),C};var U=function(I,a,Q,g,n){var B=0,C=I.pixels.numBlocksX,r=I.pixels.numBlocksY,o=Math.floor(I.width/C),s=Math.floor(I.height/r),D=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var f,l;f=new a(I.width*I.height),n&&Q&&(l=new Uint8Array(I.width*I.height));for(var L=new Float32Array(o*s),w,S,G=0;G<=r;G++){var M=G!==r?s:I.height%r;if(M!==0)for(var h=0;h<=C;h++){var t=h!==C?o:I.width%C;if(t!==0){var F=G*I.width*s+h*o,R=I.width-t,y=I.pixels.blocks[B],k,c,N;y.encoding<2?(y.encoding===0?k=y.rawData:(A(y.stuffedData,y.bitsPerPixel,y.numValidPixels,y.offset,D,L,I.pixels.maxValue),k=L),c=0):y.encoding===2?N=0:N=y.offset;var x;if(Q)for(S=0;S>3],x<<=F&7),w=0;w>3]),x&128?(l&&(l[F]=1),i=y.encoding<2?k[c++]:N,e=e>i?i:e,f[F++]=i):(l&&(l[F]=0),f[F++]=g),x<<=1;F+=R}else if(y.encoding<2)for(S=0;Si?i:e,f[F++]=i;F+=R}else for(e=e>N?N:e,S=0;S0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var r=B.getInt16(0,!0),o=2,s=0;do{if(r>0)for(;r--;)C[s++]=B.getUint8(o++);else{var D=B.getUint8(o++);for(r=-r;r--;)C[s++]=D}r=B.getInt16(o,!0),o+=2}while(o0?1:0),l=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(f*l);for(var L=0,w=0;w3)throw"Invalid block encoding ("+h.encoding+")";if(h.encoding===2){a++;continue}if(t!==0&&t!==2){if(t>>=6,h.offsetType=t,t===2)h.offset=B.getInt8(1),G++;else if(t===1)h.offset=B.getInt16(1,!0),G+=2;else if(t===0)h.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(h.encoding===1)if(t=B.getUint8(G),G++,h.bitsPerPixel=t&63,t>>=6,h.numValidPixelsType=t,t===2)h.numValidPixels=B.getUint8(G),G++;else if(t===1)h.numValidPixels=B.getUint16(G,!0),G+=2;else if(t===0)h.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,h.encoding!==3){var F,R;if(h.encoding===0){var y=(g.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";F=new ArrayBuffer(y*4),R=new Uint8Array(F),R.set(new Uint8Array(I,a,y*4));var k=new Float32Array(F);h.rawData=k,a+=y*4}else if(h.encoding===1){var c=Math.ceil(h.numValidPixels*h.bitsPerPixel/8),N=Math.ceil(c/4);F=new ArrayBuffer(N*4),R=new Uint8Array(F),R.set(new Uint8Array(I,a,c)),h.stuffedData=new Uint32Array(F),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,n,B,C){var r=(1<=a)e=i>>>D-a&r,D-=a;else{var L=a-D;e=(i&r)<>>D}B[s]=e=I?(D=e>>>s-I&C,s-=I):(i=I-s,D=(e&C)<>>s),A[o]=Q[D];else for(f=Math.ceil((B-g)/n),o=0;o=I?(D=e>>>s-I&C,s-=I):(i=I-s,D=(e&C)<>>s),A[o]=D=A?(s=D>>>o-A&n,o-=A):(r=A-o,s=(D&n)<>>o),e[C]=s=I?(e=i>>>D&C,s-=I,D+=I):(f=I-s,e=i>>>D&C,i=E[r++],s=32-f,e|=(i&(1<=I?(e=i>>>D&C,s-=I,D+=I):(f=I-s,e=i>>>D&C,i=E[r++],s=32-f,e|=(i&(1<=A?(s=e>>>D&n,o-=A,D+=A):(r=A-o,s=e>>>D&n,e=E[B++],o=32-r,s|=(e&(1<=I?(C=r>>>B-I&Q,B-=I):(o=I-B,C=(r&Q)<>>B),A[n]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(r=o>>>C&Q,B-=I,C+=I):(s=I-B,r=o>>>C&Q,o=E[g++],B=32-s,r|=(o&(1<=359?359:Q;Q-=n;do A+=E[g++]<<8,I+=A+=E[g++];while(--n);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),n=g.getInt32(0,!0);Q.fileVersion=n,I+=4,n>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,n>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(n>=3&&(C=n>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),n=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),n=new DataView(E,I,B.numBytes);var o=n.getInt16(0,!0),s=2,D=0,e=0;do{if(o>0)for(;o--;)C[D++]=n.getUint8(s++);else for(e=n.getUint8(s++),o=-o;o--;)C[D++]=e;o=n.getInt16(s,!0),s+=2}while(s>3],i<<=f&7):i=C[f>>3],i&128&&(r[f]=1);A.pixels.resultMask=r,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,n=g.numDims,B=g.width*g.height,C=g.imageType,r=g.numValidPixel*U.getDataTypeSize(C)*n,o,s=A.pixels.resultMask;if(I===Uint8Array)o=new Uint8Array(E,Q,r);else{var D=new ArrayBuffer(r),e=new Uint8Array(D);e.set(new Uint8Array(E,Q,r)),o=new I(D)}if(o.length===B*n)a?A.pixels.resultPixels=U.swapDimensionOrder(o,B,n,I,!0):A.pixels.resultPixels=o;else{A.pixels.resultPixels=new I(B*n);var i=0,f=0,l=0,L=0;if(n>1){if(a){for(f=0;f=B)return!1;var C=new Uint32Array(B-n);U.decodeBits(E,A,C);var r=[],o,s,D,e;for(o=n;o0&&(r[s].second=G<>>32-e,32-S>=e?(S+=e,S===32&&(S=0,M++,G=w[M])):(S+=e-32,M++,G=w[M],r[s].second|=G>>>32-S));var h=0,t=0,F=new q;for(o=0;o=I?t=I:t=h;var R=[],y,k,c,N,x,J;for(o=n;o0)if(y=[e,s],e<=t)for(k=r[s].second<=0;N--)x=k>>>N&1,x?(J.right||(J.right=new q),J=J.right):(J.left||(J.left=new q),J=J.left),N===0&&!J.val&&(J.val=y[1]);return{decodeLut:R,numBitsLUTQick:t,numBitsLUT:h,tree:F,stuffedData:w,srcPtr:M,bitPos:S}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,n=A.headerInfo.height,B=A.headerInfo.width,C=B*n,r=this.readHuffmanTree(E,A),o=r.decodeLut,s=r.tree,D=r.stuffedData,e=r.srcPtr,i=r.bitPos,f=r.numBitsLUTQick,l=r.numBitsLUT,L=A.headerInfo.imageType===0?128:0,w,S,G,M=A.pixels.resultMask,h,t,F,R,y,k,c,N=0;i>0&&(e++,i=0);var x=D[e],J=A.encodeMode===1,j=new I(C*g),K=j,Y;if(g<2||J){for(Y=0;Y1&&(K=new I(j.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*n)for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,J?(y>0?G+=N:R>0?G+=K[k-B]:G+=N,G&=255,K[k]=G,N=G):K[k]=G}else for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,J?(y>0&&M[k-1]?G+=N:R>0&&M[k-B]?G+=K[k-B]:G+=N,G&=255,K[k]=G,N=G):K[k]=G}}else for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,K[k]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=j,g>1&&!a&&(A.pixels.resultPixels=U.swapDimensionOrder(j,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,n=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,r=new DataView(E,A.ptr,C),o=r.getUint8(0);B++;var s=o>>6,D=s===0?4:3-s,e=(o&32)>0,i=o&31,f=0;if(D===1)f=r.getUint8(B),B++;else if(D===2)f=r.getUint16(B,!0),B+=2;else if(D===4)f=r.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var l=2*g.maxZError,L,w,S,G,M,h,t,F,R,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,F=r.getUint8(B),R=i,B++,G=Math.ceil((F-1)*i/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),A.ptr+=B,S.set(new Uint8Array(E,A.ptr,G)),t=new Uint32Array(w),A.ptr+=G,y=0;F-1>>>y;)y++;G=Math.ceil(f*y/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),S.set(new Uint8Array(E,A.ptr,G)),L=new Uint32Array(w),A.ptr+=G,n>=3?h=u.unstuffLUT2(t,i,F-1,a,l,k):h=u.unstuffLUT(t,i,F-1,a,l,k),n>=3?u.unstuff2(L,I,y,f,h):u.unstuff(L,I,y,f,h)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(f*y/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),S.set(new Uint8Array(E,A.ptr,G)),L=new Uint32Array(w),A.ptr+=G,n>=3?a==null?u.originalUnstuff2(L,I,y,f):u.unstuff2(L,I,y,f,!1,a,l,k):a==null?u.originalUnstuff(L,I,y,f):u.unstuff(L,I,y,f,!1,a,l,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,n=Q.height,B=g*n,C=Q.microBlockSize,r=Q.imageType,o=U.getDataTypeSize(r),s=Math.ceil(g/C),D=Math.ceil(n/C);A.pixels.numBlocksY=D,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,f=0,l=0,L=0,w=0,S=0,G=0,M=0,h=0,t=0,F=0,R=0,y=0,k=0,c=0,N,x,J,j,K,Y,z=new I(C*C),wA=n%C||C,GA=g%C||C,BA,P,$=Q.numDims,Z,p=A.pixels.resultMask,H=A.pixels.resultPixels,lA=Q.fileVersion,oA=lA>=5?14:15,O,QA=Q.zMax,X;for(f=0;f1?(X=H,t=f*g*C+l*C,H=new I(A.pixels.resultPixels.buffer,B*Z*o,B),QA=Q.maxValues[Z]):X=null,S=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,S)),x={},c=0,G=N.getUint8(0),c++,O=Q.fileVersion>=5?G&4:0,M=G>>6&255,h=G>>2&oA,h!==(l*C>>3&oA)||O&&Z===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(O)if(p)for(e=0;e1&&!a&&(A.pixels.resultPixels=U.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:U.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,n=E.headerInfo.height*E.headerInfo.width,B=0,C=0,r=0,o=E.pixels.resultMask,s=E.pixels.resultPixels;if(o)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,n=0,B=0,C=0,r=E;if(I>1)if(r=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+n;U.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var r=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)U.constructConstantSurface(Q,r);else if(n>=4&&U.checkMinMaxRanges(E,Q))U.constructConstantSurface(Q,r);else{var o=new DataView(E,Q.ptr,2),s=o.getUint8(0);if(Q.ptr++,s)U.readDataOneSweep(E,Q,B,r);else if(n>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var D=o.getUint8(1);if(Q.ptr++,Q.encodeMode=D,D>2||n<4&&D>1)throw"Invalid Huffman flag "+D;D?U.readHuffman(E,Q,B,r):U.readTiles(E,Q,B,r)}else U.readTiles(E,Q,B,r)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&U.isValidPixelValue(g.imageType,I)){var f=Q.pixels.resultMask;for(a=0;a1&&(C&&n.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&o++),a++,r.pixels.push(s.pixelData),r.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var D,e,i;if(I>1&&o>1){for(i=r.width*r.height,r.bandMasks=n,C=new Uint8Array(i),C.set(n[0]),D=1;Dm.arrayBuffer()).then(m=>WebAssembly.instantiate(m,CA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(tA,"base64"),CA).then(this._init),_)}_init(m){V=m.instance,CA.env.emscripten_notify_memory_growth(0)}decode(m,W=0){if(!V)throw new Error("ZSTDDecoder: Await .init() before decoding.");let T=m.byteLength,u=V.exports.malloc(T);EA.set(m,u),W=W||Number(V.exports.ZSTD_findDecompressedSize(u,T));let U=V.exports.malloc(W),q=V.exports.ZSTD_decompress(U,W,u,T),b=EA.slice(U,U+q);return V.exports.free(u),V.exports.free(U),b}},tA="AGFzbQEAAAABpQEVYAF/AX9gAn9/AGADf39/AX9gBX9/f39/AX9gAX8AYAJ/fwF/YAR/f39/AX9gA39/fwBgBn9/f39/fwF/YAd/f39/f39/AX9gAn9/AX5gAn5+AX5gAABgBX9/f39/AGAGf39/f39/AGAIf39/f39/f38AYAl/f39/f39/f38AYAABf2AIf39/f39/f38Bf2ANf39/f39/f39/f39/fwF/YAF/AX4CJwEDZW52H2Vtc2NyaXB0ZW5fbm90aWZ5X21lbW9yeV9ncm93dGgABANpaAEFAAAFAgEFCwACAQABAgIFBQcAAwABDgsBAQcAEhMHAAUBDAQEAAANBwQCAgYCBAgDAwMDBgEACQkHBgICAAYGAgQUBwYGAwIGAAMCAQgBBwUGCgoEEQAEBAEIAwgDBQgDEA8IAAcABAUBcAECAgUEAQCAAgYJAX8BQaCgwAILB2AHBm1lbW9yeQIABm1hbGxvYwAoBGZyZWUAJgxaU1REX2lzRXJyb3IAaBlaU1REX2ZpbmREZWNvbXByZXNzZWRTaXplAFQPWlNURF9kZWNvbXByZXNzAEoGX3N0YXJ0ACQJBwEAQQELASQKussBaA8AIAAgACgCBCABajYCBAsZACAAKAIAIAAoAgRBH3F0QQAgAWtBH3F2CwgAIABBiH9LC34BBH9BAyEBIAAoAgQiA0EgTQRAIAAoAggiASAAKAIQTwRAIAAQDQ8LIAAoAgwiAiABRgRAQQFBAiADQSBJGw8LIAAgASABIAJrIANBA3YiBCABIARrIAJJIgEbIgJrIgQ2AgggACADIAJBA3RrNgIEIAAgBCgAADYCAAsgAQsUAQF/IAAgARACIQIgACABEAEgAgv3AQECfyACRQRAIABCADcCACAAQQA2AhAgAEIANwIIQbh/DwsgACABNgIMIAAgAUEEajYCECACQQRPBEAgACABIAJqIgFBfGoiAzYCCCAAIAMoAAA2AgAgAUF/ai0AACIBBEAgAEEIIAEQFGs2AgQgAg8LIABBADYCBEF/DwsgACABNgIIIAAgAS0AACIDNgIAIAJBfmoiBEEBTQRAIARBAWtFBEAgACABLQACQRB0IANyIgM2AgALIAAgAS0AAUEIdCADajYCAAsgASACakF/ai0AACIBRQRAIABBADYCBEFsDwsgAEEoIAEQFCACQQN0ams2AgQgAgsWACAAIAEpAAA3AAAgACABKQAINwAICy8BAX8gAUECdEGgHWooAgAgACgCAEEgIAEgACgCBGprQR9xdnEhAiAAIAEQASACCyEAIAFCz9bTvtLHq9lCfiAAfEIfiUKHla+vmLbem55/fgsdAQF/IAAoAgggACgCDEYEfyAAKAIEQSBGBUEACwuCBAEDfyACQYDAAE8EQCAAIAEgAhBnIAAPCyAAIAJqIQMCQCAAIAFzQQNxRQRAAkAgAkEBSARAIAAhAgwBCyAAQQNxRQRAIAAhAgwBCyAAIQIDQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADTw0BIAJBA3ENAAsLAkAgA0F8cSIEQcAASQ0AIAIgBEFAaiIFSw0AA0AgAiABKAIANgIAIAIgASgCBDYCBCACIAEoAgg2AgggAiABKAIMNgIMIAIgASgCEDYCECACIAEoAhQ2AhQgAiABKAIYNgIYIAIgASgCHDYCHCACIAEoAiA2AiAgAiABKAIkNgIkIAIgASgCKDYCKCACIAEoAiw2AiwgAiABKAIwNgIwIAIgASgCNDYCNCACIAEoAjg2AjggAiABKAI8NgI8IAFBQGshASACQUBrIgIgBU0NAAsLIAIgBE8NAQNAIAIgASgCADYCACABQQRqIQEgAkEEaiICIARJDQALDAELIANBBEkEQCAAIQIMAQsgA0F8aiIEIABJBEAgACECDAELIAAhAgNAIAIgAS0AADoAACACIAEtAAE6AAEgAiABLQACOgACIAIgAS0AAzoAAyABQQRqIQEgAkEEaiICIARNDQALCyACIANJBEADQCACIAEtAAA6AAAgAUEBaiEBIAJBAWoiAiADRw0ACwsgAAsMACAAIAEpAAA3AAALQQECfyAAKAIIIgEgACgCEEkEQEEDDwsgACAAKAIEIgJBB3E2AgQgACABIAJBA3ZrIgE2AgggACABKAAANgIAQQALDAAgACABKAIANgAAC/cCAQJ/AkAgACABRg0AAkAgASACaiAASwRAIAAgAmoiBCABSw0BCyAAIAEgAhALDwsgACABc0EDcSEDAkACQCAAIAFJBEAgAwRAIAAhAwwDCyAAQQNxRQRAIAAhAwwCCyAAIQMDQCACRQ0EIAMgAS0AADoAACABQQFqIQEgAkF/aiECIANBAWoiA0EDcQ0ACwwBCwJAIAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY0AAQMyIFEAMiBg0AIANBHzYCfCADIANB/ABqIANB+ABqIAQgBCAFaiAGGyIEIAEgAmoiAiAEaxAVIgUQAw0AIAMoAnwiBkEfSw0AIAMoAngiB0EJTw0AIABBiCBqIAMgBkGAC0GADCAHEBggA0E0NgJ8IAMgA0H8AGogA0H4AGogBCAFaiIEIAIgBGsQFSIFEAMNACADKAJ8IgZBNEsNACADKAJ4IgdBCk8NACAAQZAwaiADIAZBgA1B4A4gBxAYIANBIzYCfCADIANB/ABqIANB+ABqIAQgBWoiBCACIARrEBUiBRADDQAgAygCfCIGQSNLDQAgAygCeCIHQQpPDQAgACADIAZBwBBB0BEgBxAYIAQgBWoiBEEMaiIFIAJLDQAgAiAFayEFQQAhAgNAIAJBA0cEQCAEKAAAIgZBf2ogBU8NAiAAIAJBAnRqQZzQAWogBjYCACACQQFqIQIgBEEEaiEEDAELCyAEIAFrIQgLIANBgAFqJAAgCAtGAQN/IABBCGohAyAAKAIEIQJBACEAA0AgACACdkUEQCABIAMgAEEDdGotAAJBFktqIQEgAEEBaiEADAELCyABQQggAmt0C4YDAQV/Qbh/IQcCQCADRQ0AIAItAAAiBEUEQCABQQA2AgBBAUG4fyADQQFGGw8LAn8gAkEBaiIFIARBGHRBGHUiBkF/Sg0AGiAGQX9GBEAgA0EDSA0CIAUvAABBgP4BaiEEIAJBA2oMAQsgA0ECSA0BIAItAAEgBEEIdHJBgIB+aiEEIAJBAmoLIQUgASAENgIAIAVBAWoiASACIANqIgNLDQBBbCEHIABBEGogACAFLQAAIgVBBnZBI0EJIAEgAyABa0HAEEHQEUHwEiAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBmCBqIABBCGogBUEEdkEDcUEfQQggASABIAZqIAgbIgEgAyABa0GAC0GADEGAFyAAKAKM4QEgACgCnOIBIAQQHyIGEAMiCA0AIABBoDBqIABBBGogBUECdkEDcUE0QQkgASABIAZqIAgbIgEgAyABa0GADUHgDkGQGSAAKAKM4QEgACgCnOIBIAQQHyIAEAMNACAAIAFqIAJrIQcLIAcLrQMBCn8jAEGABGsiCCQAAn9BUiACQf8BSw0AGkFUIANBDEsNABogAkEBaiELIABBBGohCUGAgAQgA0F/anRBEHUhCkEAIQJBASEEQQEgA3QiB0F/aiIMIQUDQCACIAtGRQRAAkAgASACQQF0Ig1qLwEAIgZB//8DRgRAIAkgBUECdGogAjoAAiAFQX9qIQVBASEGDAELIARBACAKIAZBEHRBEHVKGyEECyAIIA1qIAY7AQAgAkEBaiECDAELCyAAIAQ7AQIgACADOwEAIAdBA3YgB0EBdmpBA2ohBkEAIQRBACECA0AgBCALRkUEQCABIARBAXRqLgEAIQpBACEAA0AgACAKTkUEQCAJIAJBAnRqIAQ6AAIDQCACIAZqIAxxIgIgBUsNAAsgAEEBaiEADAELCyAEQQFqIQQMAQsLQX8gAg0AGkEAIQIDfyACIAdGBH9BAAUgCCAJIAJBAnRqIgAtAAJBAXRqIgEgAS8BACIBQQFqOwEAIAAgAyABEBRrIgU6AAMgACABIAVB/wFxdCAHazsBACACQQFqIQIMAQsLCyEFIAhBgARqJAAgBQvjBgEIf0FsIQcCQCACQQNJDQACQAJAAkACQCABLQAAIgNBA3EiCUEBaw4DAwEAAgsgACgCiOEBDQBBYg8LIAJBBUkNAkEDIQYgASgAACEFAn8CQAJAIANBAnZBA3EiCEF+aiIEQQFNBEAgBEEBaw0BDAILIAVBDnZB/wdxIQQgBUEEdkH/B3EhAyAIRQwCCyAFQRJ2IQRBBCEGIAVBBHZB//8AcSEDQQAMAQsgBUEEdkH//w9xIgNBgIAISw0DIAEtAARBCnQgBUEWdnIhBEEFIQZBAAshBSAEIAZqIgogAksNAgJAIANBgQZJDQAgACgCnOIBRQ0AQQAhAgNAIAJBg4ABSw0BIAJBQGshAgwAAAsACwJ/IAlBA0YEQCABIAZqIQEgAEHw4gFqIQIgACgCDCEGIAUEQCACIAMgASAEIAYQXwwCCyACIAMgASAEIAYQXQwBCyAAQbjQAWohAiABIAZqIQEgAEHw4gFqIQYgAEGo0ABqIQggBQRAIAggBiADIAEgBCACEF4MAQsgCCAGIAMgASAEIAIQXAsQAw0CIAAgAzYCgOIBIABBATYCiOEBIAAgAEHw4gFqNgLw4QEgCUECRgRAIAAgAEGo0ABqNgIMCyAAIANqIgBBiOMBakIANwAAIABBgOMBakIANwAAIABB+OIBakIANwAAIABB8OIBakIANwAAIAoPCwJ/AkACQAJAIANBAnZBA3FBf2oiBEECSw0AIARBAWsOAgACAQtBASEEIANBA3YMAgtBAiEEIAEvAABBBHYMAQtBAyEEIAEQIUEEdgsiAyAEaiIFQSBqIAJLBEAgBSACSw0CIABB8OIBaiABIARqIAMQCyEBIAAgAzYCgOIBIAAgATYC8OEBIAEgA2oiAEIANwAYIABCADcAECAAQgA3AAggAEIANwAAIAUPCyAAIAM2AoDiASAAIAEgBGo2AvDhASAFDwsCfwJAAkACQCADQQJ2QQNxQX9qIgRBAksNACAEQQFrDgIAAgELQQEhByADQQN2DAILQQIhByABLwAAQQR2DAELIAJBBEkgARAhIgJBj4CAAUtyDQFBAyEHIAJBBHYLIQIgAEHw4gFqIAEgB2otAAAgAkEgahAQIQEgACACNgKA4gEgACABNgLw4QEgB0EBaiEHCyAHC0sAIABC+erQ0OfJoeThADcDICAAQgA3AxggAELP1tO+0ser2UI3AxAgAELW64Lu6v2J9eAANwMIIABCADcDACAAQShqQQBBKBAQGgviAgICfwV+IABBKGoiASAAKAJIaiECAn4gACkDACIDQiBaBEAgACkDECIEQgeJIAApAwgiBUIBiXwgACkDGCIGQgyJfCAAKQMgIgdCEol8IAUQGSAEEBkgBhAZIAcQGQwBCyAAKQMYQsXP2bLx5brqJ3wLIAN8IQMDQCABQQhqIgAgAk0EQEIAIAEpAAAQCSADhUIbiUKHla+vmLbem55/fkLj3MqV/M7y9YV/fCEDIAAhAQwBCwsCQCABQQRqIgAgAksEQCABIQAMAQsgASgAAK1Ch5Wvr5i23puef34gA4VCF4lCz9bTvtLHq9lCfkL5893xmfaZqxZ8IQMLA0AgACACSQRAIAAxAABCxc/ZsvHluuonfiADhUILiUKHla+vmLbem55/fiEDIABBAWohAAwBCwsgA0IhiCADhULP1tO+0ser2UJ+IgNCHYggA4VC+fPd8Zn2masWfiIDQiCIIAOFC+8CAgJ/BH4gACAAKQMAIAKtfDcDAAJAAkAgACgCSCIDIAJqIgRBH00EQCABRQ0BIAAgA2pBKGogASACECAgACgCSCACaiEEDAELIAEgAmohAgJ/IAMEQCAAQShqIgQgA2ogAUEgIANrECAgACAAKQMIIAQpAAAQCTcDCCAAIAApAxAgACkAMBAJNwMQIAAgACkDGCAAKQA4EAk3AxggACAAKQMgIABBQGspAAAQCTcDICAAKAJIIQMgAEEANgJIIAEgA2tBIGohAQsgAUEgaiACTQsEQCACQWBqIQMgACkDICEFIAApAxghBiAAKQMQIQcgACkDCCEIA0AgCCABKQAAEAkhCCAHIAEpAAgQCSEHIAYgASkAEBAJIQYgBSABKQAYEAkhBSABQSBqIgEgA00NAAsgACAFNwMgIAAgBjcDGCAAIAc3AxAgACAINwMICyABIAJPDQEgAEEoaiABIAIgAWsiBBAgCyAAIAQ2AkgLCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQEBogAwVBun8LCy8BAX8gAEUEQEG2f0EAIAMbDwtBun8hBCADIAFNBH8gACACIAMQCxogAwVBun8LC6gCAQZ/IwBBEGsiByQAIABB2OABaikDAEKAgIAQViEIQbh/IQUCQCAEQf//B0sNACAAIAMgBBBCIgUQAyIGDQAgACgCnOIBIQkgACAHQQxqIAMgAyAFaiAGGyIKIARBACAFIAYbayIGEEAiAxADBEAgAyEFDAELIAcoAgwhBCABRQRAQbp/IQUgBEEASg0BCyAGIANrIQUgAyAKaiEDAkAgCQRAIABBADYCnOIBDAELAkACQAJAIARBBUgNACAAQdjgAWopAwBCgICACFgNAAwBCyAAQQA2ApziAQwBCyAAKAIIED8hBiAAQQA2ApziASAGQRRPDQELIAAgASACIAMgBSAEIAgQOSEFDAELIAAgASACIAMgBSAEIAgQOiEFCyAHQRBqJAAgBQtnACAAQdDgAWogASACIAAoAuzhARAuIgEQAwRAIAEPC0G4fyECAkAgAQ0AIABB7OABaigCACIBBEBBYCECIAAoApjiASABRw0BC0EAIQIgAEHw4AFqKAIARQ0AIABBkOEBahBDCyACCycBAX8QVyIERQRAQUAPCyAEIAAgASACIAMgBBBLEE8hACAEEFYgAAs/AQF/AkACQAJAIAAoAqDiAUEBaiIBQQJLDQAgAUEBaw4CAAECCyAAEDBBAA8LIABBADYCoOIBCyAAKAKU4gELvAMCB38BfiMAQRBrIgkkAEG4fyEGAkAgBCgCACIIQQVBCSAAKALs4QEiBRtJDQAgAygCACIHQQFBBSAFGyAFEC8iBRADBEAgBSEGDAELIAggBUEDakkNACAAIAcgBRBJIgYQAw0AIAEgAmohCiAAQZDhAWohCyAIIAVrIQIgBSAHaiEHIAEhBQNAIAcgAiAJECwiBhADDQEgAkF9aiICIAZJBEBBuH8hBgwCCyAJKAIAIghBAksEQEFsIQYMAgsgB0EDaiEHAn8CQAJAAkAgCEEBaw4CAgABCyAAIAUgCiAFayAHIAYQSAwCCyAFIAogBWsgByAGEEcMAQsgBSAKIAVrIActAAAgCSgCCBBGCyIIEAMEQCAIIQYMAgsgACgC8OABBEAgCyAFIAgQRQsgAiAGayECIAYgB2ohByAFIAhqIQUgCSgCBEUNAAsgACkD0OABIgxCf1IEQEFsIQYgDCAFIAFrrFINAQsgACgC8OABBEBBaiEGIAJBBEkNASALEEQhDCAHKAAAIAynRw0BIAdBBGohByACQXxqIQILIAMgBzYCACAEIAI2AgAgBSABayEGCyAJQRBqJAAgBgsuACAAECsCf0EAQQAQAw0AGiABRSACRXJFBEBBYiAAIAEgAhA9EAMNARoLQQALCzcAIAEEQCAAIAAoAsTgASABKAIEIAEoAghqRzYCnOIBCyAAECtBABADIAFFckUEQCAAIAEQWwsL0QIBB38jAEEQayIGJAAgBiAENgIIIAYgAzYCDCAFBEAgBSgCBCEKIAUoAgghCQsgASEIAkACQANAIAAoAuzhARAWIQsCQANAIAQgC0kNASADKAAAQXBxQdDUtMIBRgRAIAMgBBAiIgcQAw0EIAQgB2shBCADIAdqIQMMAQsLIAYgAzYCDCAGIAQ2AggCQCAFBEAgACAFEE5BACEHQQAQA0UNAQwFCyAAIAogCRBNIgcQAw0ECyAAIAgQUCAMQQFHQQAgACAIIAIgBkEMaiAGQQhqEEwiByIDa0EAIAMQAxtBCkdyRQRAQbh/IQcMBAsgBxADDQMgAiAHayECIAcgCGohCEEBIQwgBigCDCEDIAYoAgghBAwBCwsgBiADNgIMIAYgBDYCCEG4fyEHIAQNASAIIAFrIQcMAQsgBiADNgIMIAYgBDYCCAsgBkEQaiQAIAcLRgECfyABIAAoArjgASICRwRAIAAgAjYCxOABIAAgATYCuOABIAAoArzgASEDIAAgATYCvOABIAAgASADIAJrajYCwOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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";var iA={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},v={};for(let d in iA)iA.hasOwnProperty(d)&&(v[iA[d]]=parseInt(d,10));var RA=[v.BitsPerSample,v.ExtraSamples,v.SampleFormat,v.StripByteCounts,v.StripOffsets,v.StripRowCounts,v.TileByteCounts,v.TileOffsets,v.SubIFDs],eA={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},SA={};for(let d in eA)eA.hasOwnProperty(d)&&(SA[eA[d]]=parseInt(d,10));var DA={Version:0,AddCompression:1},gA={None:0,Deflate:1,Zstandard:2},aA={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},cA={};for(let d in aA)aA.hasOwnProperty(d)&&(cA[aA[d]]=parseInt(d,10));var UA=new IA,fA=class extends rA{constructor(m){super(),this.planarConfiguration=typeof m.PlanarConfiguration<"u"?m.PlanarConfiguration:1,this.samplesPerPixel=typeof m.SamplesPerPixel<"u"?m.SamplesPerPixel:1,this.addCompression=m.LercParameters[DA.AddCompression]}decodeBlock(m){switch(this.addCompression){case gA.None:break;case gA.Deflate:m=sA(new Uint8Array(m)).buffer;break;case gA.Zstandard:m=UA.decode(new Uint8Array(m)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return hA.default.decode(m,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}};export{fA as default,UA as zstd}; +import{a as sA}from"./chunk-PZJJYAMS.js";import{a as rA}from"./chunk-YE4HGH46.js";import{d as yA,f as FA}from"./chunk-MG3ERZGY.js";var nA=yA((LA,AA)=>{"use strict";(function(){var d=function(){var u={};u.defaultNoDataValue=-34027999387901484e22,u.decode=function(I,a){a=a||{};var Q=a.encodedMaskData||a.encodedMaskData===null,g=E(I,a.inputOffset||0,Q),n=a.noDataValue!==null?a.noDataValue:u.defaultNoDataValue,B=U(g,a.pixelType||Float32Array,a.encodedMaskData,n,a.returnMask),C={width:g.width,height:g.height,pixelData:B.resultPixels,minValue:B.minValue,maxValue:g.pixels.maxValue,noDataValue:n};return B.resultMask&&(C.maskData=B.resultMask),a.returnEncodedMask&&g.mask&&(C.encodedMaskData=g.mask.bitset?g.mask.bitset:null),a.returnFileInfo&&(C.fileInfo=q(g),a.computeUsedBitDepths&&(C.fileInfo.bitDepths=b(g))),C};var U=function(I,a,Q,g,n){var B=0,C=I.pixels.numBlocksX,r=I.pixels.numBlocksY,o=Math.floor(I.width/C),s=Math.floor(I.height/r),D=2*I.maxZError,e=Number.MAX_VALUE,i;Q=Q||(I.mask?I.mask.bitset:null);var f,l;f=new a(I.width*I.height),n&&Q&&(l=new Uint8Array(I.width*I.height));for(var L=new Float32Array(o*s),w,S,G=0;G<=r;G++){var M=G!==r?s:I.height%r;if(M!==0)for(var h=0;h<=C;h++){var t=h!==C?o:I.width%C;if(t!==0){var F=G*I.width*s+h*o,R=I.width-t,y=I.pixels.blocks[B],k,c,N;y.encoding<2?(y.encoding===0?k=y.rawData:(A(y.stuffedData,y.bitsPerPixel,y.numValidPixels,y.offset,D,L,I.pixels.maxValue),k=L),c=0):y.encoding===2?N=0:N=y.offset;var x;if(Q)for(S=0;S>3],x<<=F&7),w=0;w>3]),x&128?(l&&(l[F]=1),i=y.encoding<2?k[c++]:N,e=e>i?i:e,f[F++]=i):(l&&(l[F]=0),f[F++]=g),x<<=1;F+=R}else if(y.encoding<2)for(S=0;Si?i:e,f[F++]=i;F+=R}else for(e=e>N?N:e,S=0;S0){var C=new Uint8Array(Math.ceil(g.width*g.height/8));B=new DataView(I,a,g.mask.numBytes);var r=B.getInt16(0,!0),o=2,s=0;do{if(r>0)for(;r--;)C[s++]=B.getUint8(o++);else{var D=B.getUint8(o++);for(r=-r;r--;)C[s++]=D}r=B.getInt16(o,!0),o+=2}while(o0?1:0),l=i+(g.height%i>0?1:0);g.pixels.blocks=new Array(f*l);for(var L=0,w=0;w3)throw"Invalid block encoding ("+h.encoding+")";if(h.encoding===2){a++;continue}if(t!==0&&t!==2){if(t>>=6,h.offsetType=t,t===2)h.offset=B.getInt8(1),G++;else if(t===1)h.offset=B.getInt16(1,!0),G+=2;else if(t===0)h.offset=B.getFloat32(1,!0),G+=4;else throw"Invalid block offset type";if(h.encoding===1)if(t=B.getUint8(G),G++,h.bitsPerPixel=t&63,t>>=6,h.numValidPixelsType=t,t===2)h.numValidPixels=B.getUint8(G),G++;else if(t===1)h.numValidPixels=B.getUint16(G,!0),G+=2;else if(t===0)h.numValidPixels=B.getUint32(G,!0),G+=4;else throw"Invalid valid pixel count type"}if(a+=G,h.encoding!==3){var F,R;if(h.encoding===0){var y=(g.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";F=new ArrayBuffer(y*4),R=new Uint8Array(F),R.set(new Uint8Array(I,a,y*4));var k=new Float32Array(F);h.rawData=k,a+=y*4}else if(h.encoding===1){var c=Math.ceil(h.numValidPixels*h.bitsPerPixel/8),N=Math.ceil(c/4);F=new ArrayBuffer(N*4),R=new Uint8Array(F),R.set(new Uint8Array(I,a,c)),h.stuffedData=new Uint32Array(F),a+=c}}}return g.eofOffset=a,g},A=function(I,a,Q,g,n,B,C){var r=(1<=a)e=i>>>D-a&r,D-=a;else{var L=a-D;e=(i&r)<>>D}B[s]=e=I?(D=e>>>s-I&C,s-=I):(i=I-s,D=(e&C)<>>s),A[o]=Q[D];else for(f=Math.ceil((B-g)/n),o=0;o=I?(D=e>>>s-I&C,s-=I):(i=I-s,D=(e&C)<>>s),A[o]=D=A?(s=D>>>o-A&n,o-=A):(r=A-o,s=(D&n)<>>o),e[C]=s=I?(e=i>>>D&C,s-=I,D+=I):(f=I-s,e=i>>>D&C,i=E[r++],s=32-f,e|=(i&(1<=I?(e=i>>>D&C,s-=I,D+=I):(f=I-s,e=i>>>D&C,i=E[r++],s=32-f,e|=(i&(1<=A?(s=e>>>D&n,o-=A,D+=A):(r=A-o,s=e>>>D&n,e=E[B++],o=32-r,s|=(e&(1<=I?(C=r>>>B-I&Q,B-=I):(o=I-B,C=(r&Q)<>>B),A[n]=C;return A},originalUnstuff2:function(E,A,I,a){var Q=(1<=I?(r=o>>>C&Q,B-=I,C+=I):(s=I-B,r=o>>>C&Q,o=E[g++],B=32-s,r|=(o&(1<=359?359:Q;Q-=n;do A+=E[g++]<<8,I+=A+=E[g++];while(--n);A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16)}return a&1&&(I+=A+=E[g]<<8),A=(A&65535)+(A>>>16),I=(I&65535)+(I>>>16),(I<<16|A)>>>0},readHeaderInfo:function(E,A){var I=A.ptr,a=new Uint8Array(E,I,6),Q={};if(Q.fileIdentifierString=String.fromCharCode.apply(null,a),Q.fileIdentifierString.lastIndexOf("Lerc2",0)!==0)throw"Unexpected file identifier string (expect Lerc2 ): "+Q.fileIdentifierString;I+=6;var g=new DataView(E,I,8),n=g.getInt32(0,!0);Q.fileVersion=n,I+=4,n>=3&&(Q.checksum=g.getUint32(4,!0),I+=4),g=new DataView(E,I,12),Q.height=g.getUint32(0,!0),Q.width=g.getUint32(4,!0),I+=8,n>=4?(Q.numDims=g.getUint32(8,!0),I+=4):Q.numDims=1,g=new DataView(E,I,40),Q.numValidPixel=g.getUint32(0,!0),Q.microBlockSize=g.getInt32(4,!0),Q.blobSize=g.getInt32(8,!0),Q.imageType=g.getInt32(12,!0),Q.maxZError=g.getFloat64(16,!0),Q.zMin=g.getFloat64(24,!0),Q.zMax=g.getFloat64(32,!0),I+=40,A.headerInfo=Q,A.ptr=I;var B,C;if(n>=3&&(C=n>=4?52:48,B=this.computeChecksumFletcher32(new Uint8Array(E,I-C,Q.blobSize-14)),B!==Q.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(E,A){var I=A.headerInfo,a=this.getDataTypeArray(I.imageType),Q=I.numDims*this.getDataTypeSize(I.imageType),g=this.readSubArray(E,A.ptr,a,Q),n=this.readSubArray(E,A.ptr+Q,a,Q);A.ptr+=2*Q;var B,C=!0;for(B=0;B0){C=new Uint8Array(Math.ceil(Q/8)),n=new DataView(E,I,B.numBytes);var o=n.getInt16(0,!0),s=2,D=0,e=0;do{if(o>0)for(;o--;)C[D++]=n.getUint8(s++);else for(e=n.getUint8(s++),o=-o;o--;)C[D++]=e;o=n.getInt16(s,!0),s+=2}while(s>3],i<<=f&7):i=C[f>>3],i&128&&(r[f]=1);A.pixels.resultMask=r,B.bitset=C,I+=B.numBytes}return A.ptr=I,A.mask=B,!0},readDataOneSweep:function(E,A,I,a){var Q=A.ptr,g=A.headerInfo,n=g.numDims,B=g.width*g.height,C=g.imageType,r=g.numValidPixel*U.getDataTypeSize(C)*n,o,s=A.pixels.resultMask;if(I===Uint8Array)o=new Uint8Array(E,Q,r);else{var D=new ArrayBuffer(r),e=new Uint8Array(D);e.set(new Uint8Array(E,Q,r)),o=new I(D)}if(o.length===B*n)a?A.pixels.resultPixels=U.swapDimensionOrder(o,B,n,I,!0):A.pixels.resultPixels=o;else{A.pixels.resultPixels=new I(B*n);var i=0,f=0,l=0,L=0;if(n>1){if(a){for(f=0;f=B)return!1;var C=new Uint32Array(B-n);U.decodeBits(E,A,C);var r=[],o,s,D,e;for(o=n;o0&&(r[s].second=G<>>32-e,32-S>=e?(S+=e,S===32&&(S=0,M++,G=w[M])):(S+=e-32,M++,G=w[M],r[s].second|=G>>>32-S));var h=0,t=0,F=new q;for(o=0;o=I?t=I:t=h;var R=[],y,k,c,N,x,J;for(o=n;o0)if(y=[e,s],e<=t)for(k=r[s].second<=0;N--)x=k>>>N&1,x?(J.right||(J.right=new q),J=J.right):(J.left||(J.left=new q),J=J.left),N===0&&!J.val&&(J.val=y[1]);return{decodeLut:R,numBitsLUTQick:t,numBitsLUT:h,tree:F,stuffedData:w,srcPtr:M,bitPos:S}},readHuffman:function(E,A,I,a){var Q=A.headerInfo,g=Q.numDims,n=A.headerInfo.height,B=A.headerInfo.width,C=B*n,r=this.readHuffmanTree(E,A),o=r.decodeLut,s=r.tree,D=r.stuffedData,e=r.srcPtr,i=r.bitPos,f=r.numBitsLUTQick,l=r.numBitsLUT,L=A.headerInfo.imageType===0?128:0,w,S,G,M=A.pixels.resultMask,h,t,F,R,y,k,c,N=0;i>0&&(e++,i=0);var x=D[e],J=A.encodeMode===1,j=new I(C*g),K=j,Y;if(g<2||J){for(Y=0;Y1&&(K=new I(j.buffer,C*Y,C),N=0),A.headerInfo.numValidPixel===B*n)for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,J?(y>0?G+=N:R>0?G+=K[k-B]:G+=N,G&=255,K[k]=G,N=G):K[k]=G}else for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,J?(y>0&&M[k-1]?G+=N:R>0&&M[k-B]?G+=K[k-B]:G+=N,G&=255,K[k]=G,N=G):K[k]=G}}else for(k=0,R=0;R>>32-f,t=h,32-i>>64-i-f,t=h),o[t])S=o[t][1],i+=o[t][0];else for(h=x<>>32-l,t=h,32-i>>64-i-l,t=h),w=s,c=0;c>>l-c-1&1,w=F?w.right:w.left,!(w.left||w.right)){S=w.val,i=i+c+1;break}i>=32&&(i-=32,e++,x=D[e]),G=S-L,K[k]=G}A.ptr=A.ptr+(e+1)*4+(i>0?4:0),A.pixels.resultPixels=j,g>1&&!a&&(A.pixels.resultPixels=U.swapDimensionOrder(j,C,g,I))},decodeBits:function(E,A,I,a,Q){{var g=A.headerInfo,n=g.fileVersion,B=0,C=E.byteLength-A.ptr>=5?5:E.byteLength-A.ptr,r=new DataView(E,A.ptr,C),o=r.getUint8(0);B++;var s=o>>6,D=s===0?4:3-s,e=(o&32)>0,i=o&31,f=0;if(D===1)f=r.getUint8(B),B++;else if(D===2)f=r.getUint16(B,!0),B+=2;else if(D===4)f=r.getUint32(B,!0),B+=4;else throw"Invalid valid pixel count type";var l=2*g.maxZError,L,w,S,G,M,h,t,F,R,y,k=g.numDims>1?g.maxValues[Q]:g.zMax;if(e){for(A.counter.lut++,F=r.getUint8(B),R=i,B++,G=Math.ceil((F-1)*i/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),A.ptr+=B,S.set(new Uint8Array(E,A.ptr,G)),t=new Uint32Array(w),A.ptr+=G,y=0;F-1>>>y;)y++;G=Math.ceil(f*y/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),S.set(new Uint8Array(E,A.ptr,G)),L=new Uint32Array(w),A.ptr+=G,n>=3?h=u.unstuffLUT2(t,i,F-1,a,l,k):h=u.unstuffLUT(t,i,F-1,a,l,k),n>=3?u.unstuff2(L,I,y,f,h):u.unstuff(L,I,y,f,h)}else A.counter.bitstuffer++,y=i,A.ptr+=B,y>0&&(G=Math.ceil(f*y/8),M=Math.ceil(G/4),w=new ArrayBuffer(M*4),S=new Uint8Array(w),S.set(new Uint8Array(E,A.ptr,G)),L=new Uint32Array(w),A.ptr+=G,n>=3?a==null?u.originalUnstuff2(L,I,y,f):u.unstuff2(L,I,y,f,!1,a,l,k):a==null?u.originalUnstuff(L,I,y,f):u.unstuff(L,I,y,f,!1,a,l,k))}},readTiles:function(E,A,I,a){var Q=A.headerInfo,g=Q.width,n=Q.height,B=g*n,C=Q.microBlockSize,r=Q.imageType,o=U.getDataTypeSize(r),s=Math.ceil(g/C),D=Math.ceil(n/C);A.pixels.numBlocksY=D,A.pixels.numBlocksX=s,A.pixels.ptr=0;var e=0,i=0,f=0,l=0,L=0,w=0,S=0,G=0,M=0,h=0,t=0,F=0,R=0,y=0,k=0,c=0,N,x,J,j,K,Y,z=new I(C*C),wA=n%C||C,GA=g%C||C,BA,P,$=Q.numDims,Z,p=A.pixels.resultMask,H=A.pixels.resultPixels,lA=Q.fileVersion,oA=lA>=5?14:15,O,QA=Q.zMax,X;for(f=0;f1?(X=H,t=f*g*C+l*C,H=new I(A.pixels.resultPixels.buffer,B*Z*o,B),QA=Q.maxValues[Z]):X=null,S=E.byteLength-A.ptr,N=new DataView(E,A.ptr,Math.min(10,S)),x={},c=0,G=N.getUint8(0),c++,O=Q.fileVersion>=5?G&4:0,M=G>>6&255,h=G>>2&oA,h!==(l*C>>3&oA)||O&&Z===0)throw"integrity issue";if(Y=G&3,Y>3)throw A.ptr+=c,"Invalid block encoding ("+Y+")";if(Y===2){if(O)if(p)for(e=0;e1&&!a&&(A.pixels.resultPixels=U.swapDimensionOrder(A.pixels.resultPixels,B,$,I))},formatFileInfo:function(E){return{fileIdentifierString:E.headerInfo.fileIdentifierString,fileVersion:E.headerInfo.fileVersion,imageType:E.headerInfo.imageType,height:E.headerInfo.height,width:E.headerInfo.width,numValidPixel:E.headerInfo.numValidPixel,microBlockSize:E.headerInfo.microBlockSize,blobSize:E.headerInfo.blobSize,maxZError:E.headerInfo.maxZError,pixelType:U.getPixelType(E.headerInfo.imageType),eofOffset:E.eofOffset,mask:E.mask?{numBytes:E.mask.numBytes}:null,pixels:{numBlocksX:E.pixels.numBlocksX,numBlocksY:E.pixels.numBlocksY,maxValue:E.headerInfo.zMax,minValue:E.headerInfo.zMin,noDataValue:E.noDataValue}}},constructConstantSurface:function(E,A){var I=E.headerInfo.zMax,a=E.headerInfo.zMin,Q=E.headerInfo.maxValues,g=E.headerInfo.numDims,n=E.headerInfo.height*E.headerInfo.width,B=0,C=0,r=0,o=E.pixels.resultMask,s=E.pixels.resultPixels;if(o)if(g>1){if(A)for(B=0;B1&&a!==I)if(A)for(B=0;B=-128&&A<=127;break;case 1:I=A>=0&&A<=255;break;case 2:I=A>=-32768&&A<=32767;break;case 3:I=A>=0&&A<=65536;break;case 4:I=A>=-2147483648&&A<=2147483647;break;case 5:I=A>=0&&A<=4294967296;break;case 6:I=A>=-34027999387901484e22&&A<=34027999387901484e22;break;case 7:I=A>=-17976931348623157e292&&A<=17976931348623157e292;break;default:I=!1}return I},getDataTypeSize:function(E){var A=0;switch(E){case 0:case 1:A=1;break;case 2:case 3:A=2;break;case 4:case 5:case 6:A=4;break;case 7:A=8;break;default:A=E}return A},getDataTypeUsed:function(E,A){var I=E;switch(E){case 2:case 4:I=E-A;break;case 3:case 5:I=E-2*A;break;case 6:A===0?I=E:A===1?I=2:I=1;break;case 7:A===0?I=E:I=E-2*A+1;break;default:I=E;break}return I},getOnePixel:function(E,A,I,a){var Q=0;switch(I){case 0:Q=a.getInt8(A);break;case 1:Q=a.getUint8(A);break;case 2:Q=a.getInt16(A,!0);break;case 3:Q=a.getUint16(A,!0);break;case 4:Q=a.getInt32(A,!0);break;case 5:Q=a.getUInt32(A,!0);break;case 6:Q=a.getFloat32(A,!0);break;case 7:Q=a.getFloat64(A,!0);break;default:throw"the decoder does not understand this pixel type"}return Q},swapDimensionOrder:function(E,A,I,a,Q){var g=0,n=0,B=0,C=0,r=E;if(I>1)if(r=new a(A*I),Q)for(g=0;g5)throw"unsupported lerc version 2."+n;U.readMask(E,Q),g.numValidPixel!==g.width*g.height&&!Q.pixels.resultMask&&(Q.pixels.resultMask=A.maskData);var C=g.width*g.height;Q.pixels.resultPixels=new B(C*g.numDims),Q.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var r=!A.returnPixelInterleavedDims;if(g.numValidPixel!==0)if(g.zMax===g.zMin)U.constructConstantSurface(Q,r);else if(n>=4&&U.checkMinMaxRanges(E,Q))U.constructConstantSurface(Q,r);else{var o=new DataView(E,Q.ptr,2),s=o.getUint8(0);if(Q.ptr++,s)U.readDataOneSweep(E,Q,B,r);else if(n>1&&g.imageType<=1&&Math.abs(g.maxZError-.5)<1e-5){var D=o.getUint8(1);if(Q.ptr++,Q.encodeMode=D,D>2||n<4&&D>1)throw"Invalid Huffman flag "+D;D?U.readHuffman(E,Q,B,r):U.readTiles(E,Q,B,r)}else U.readTiles(E,Q,B,r)}Q.eofOffset=Q.ptr;var e;A.inputOffset?(e=Q.headerInfo.blobSize+A.inputOffset-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=A.inputOffset+Q.headerInfo.blobSize)):(e=Q.headerInfo.blobSize-Q.ptr,Math.abs(e)>=1&&(Q.eofOffset=Q.headerInfo.blobSize));var i={width:g.width,height:g.height,pixelData:Q.pixels.resultPixels,minValue:g.zMin,maxValue:g.zMax,validPixelCount:g.numValidPixel,dimCount:g.numDims,dimStats:{minValues:g.minValues,maxValues:g.maxValues},maskData:Q.pixels.resultMask};if(Q.pixels.resultMask&&U.isValidPixelValue(g.imageType,I)){var f=Q.pixels.resultMask;for(a=0;a1&&(C&&n.push(C),s.fileInfo.mask&&s.fileInfo.mask.numBytes>0&&o++),a++,r.pixels.push(s.pixelData),r.statistics.push({minValue:s.minValue,maxValue:s.maxValue,noDataValue:s.noDataValue,dimStats:s.dimStats})}var D,e,i;if(I>1&&o>1){for(i=r.width*r.height,r.bandMasks=n,C=new Uint8Array(i),C.set(n[0]),D=1;Dm.arrayBuffer()).then(m=>WebAssembly.instantiate(m,CA)).then(this._init):_=WebAssembly.instantiate(Buffer.from(tA,"base64"),CA).then(this._init),_)}_init(m){V=m.instance,CA.env.emscripten_notify_memory_growth(0)}decode(m,W=0){if(!V)throw new Error("ZSTDDecoder: Await .init() before decoding.");let T=m.byteLength,u=V.exports.malloc(T);EA.set(m,u),W=W||Number(V.exports.ZSTD_findDecompressedSize(u,T));let U=V.exports.malloc(W),q=V.exports.ZSTD_decompress(U,W,u,T),b=EA.slice(U,U+q);return V.exports.free(u),V.exports.free(U),b}},tA="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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";var iA={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},v={};for(let d in iA)iA.hasOwnProperty(d)&&(v[iA[d]]=parseInt(d,10));var RA=[v.BitsPerSample,v.ExtraSamples,v.SampleFormat,v.StripByteCounts,v.StripOffsets,v.StripRowCounts,v.TileByteCounts,v.TileOffsets,v.SubIFDs],eA={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},SA={};for(let d in eA)eA.hasOwnProperty(d)&&(SA[eA[d]]=parseInt(d,10));var DA={Version:0,AddCompression:1},gA={None:0,Deflate:1,Zstandard:2},aA={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},cA={};for(let d in aA)aA.hasOwnProperty(d)&&(cA[aA[d]]=parseInt(d,10));var UA=new IA,fA=class extends rA{constructor(m){super(),this.planarConfiguration=typeof m.PlanarConfiguration<"u"?m.PlanarConfiguration:1,this.samplesPerPixel=typeof m.SamplesPerPixel<"u"?m.SamplesPerPixel:1,this.addCompression=m.LercParameters[DA.AddCompression]}decodeBlock(m){switch(this.addCompression){case gA.None:break;case gA.Deflate:m=sA(new Uint8Array(m)).buffer;break;case gA.Zstandard:m=UA.decode(new Uint8Array(m)).buffer;break;default:throw new Error(`Unsupported LERC additional compression method identifier: ${this.addCompression}`)}return hA.default.decode(m,{returnPixelInterleavedDims:this.planarConfiguration===1}).pixels[0].buffer}};export{fA as default,UA as zstd}; diff --git a/dist/chunk-7UG364TP.js b/dist/chunk-7UG364TP.js new file mode 100644 index 00000000..d93cdcfd --- /dev/null +++ b/dist/chunk-7UG364TP.js @@ -0,0 +1 @@ +import{a as re}from"./chunk-D52KZAMM.js";import{a as ge}from"./chunk-R3LMLSL5.js";import{b as fe}from"./chunk-CF2VGD6U.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-HYAUW6N4.js";import{D as ee,F as te,G as ie,H as ne,I as oe,J as le,h as $}from"./chunk-GDT23CSW.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 E,ec as k,fa as W,fc as I,gc as S,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),S("ngModelChange",function(t){h(e);let n=c(2);return I(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),S("ngModelChange",function(t){h(e);let n=c(2);return I(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),S("ngModelChange",function(t){h(e);let n=c(2);return I(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(),k("ngModel",e.model.isAll),l(2),y(v(5,8,"all")),l(2),P("hidden",e.model.isInterval),l(),k("ngModel",e.model.isExclude),l(2),y(v(10,10,"exclude")),l(3),k("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),S("ngModelChange",function(t){h(e);let n=c(2);return I(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),S("ngModelChange",function(t){h(e);let n=c(2);return I(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),k("ngModel",e.model.from),l(),A(e.model.values),l(4),y(v(11,6,"to")),l(2),k("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 ke(o,p){if(o&1&&(r(0,"div"),u(1),s()),o&2){let e=c().$implicit;l(),y(e.info)}}function Ie(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,ke,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(),E("",e.name," "),l(),M(e.info?5:-1)}}function Se(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"),S("ngModelChange",function(t){h(e);let n=c();return I(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,Ie,6,10,"div",16,z),x(11,"selectedFirst"),F(12,Se,2,0,"div",17),s()}if(o&2){let e=c();l(2),U("placeholder",v(4,7,"search")),k("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 Ee=(()=>{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.datePipe=new $(f);let V=this.ss.getAppSettings();this.isRelatedFilters=V.isRelatedFilters===void 0?!0:V.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}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(V=>V+=".%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])}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;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.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("]",""))}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),E(" ",v(6,4,"accept")," "),l(4),E(" ",v(10,6,"dismiss")," "),l(4),E(" ",v(14,8,"close")," "))},dependencies:[ue,he,me,se,ae,pe,ce,de,re,ee,Ee],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,Ee as SelectedFirstPipe}; diff --git a/dist/chunk-7Z56RI72.js b/dist/chunk-7Z56RI72.js deleted file mode 100644 index 342b59a4..00000000 --- a/dist/chunk-7Z56RI72.js +++ /dev/null @@ -1 +0,0 @@ -import{a as k}from"./chunk-SUAWKU6Z.js";import{E as M,J as O}from"./chunk-CKPIETEW.js";import{$a as a,Ab as m,Bb as u,Cb as x,Db as l,Eb as s,Fb as v,Jb as _,Nb as w,Ob as d,Xa as h,Xb as F,Zb as C,ab as o,cc as y,fa as g,qa as p,ra as b,tb as f}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function P(i,n){if(i&1){let c=_();l(0,"li",0),w("click",function(){let t=p(c).$implicit,r=d();return b(r.selectLanguage(t))}),v(1,"img",1),F(2),s()}if(i&2){let c=n.$implicit,e=d();a(),f("src",e.isSelected(c)?"assets/img/icons/check-black-18dp.svg":"",h),a(),C(" ",e.i18n.getLanguageName(c)," ")}}var L=(()=>{let n=class n{constructor(e,t,r){this.i18n=e,this.storage=t,this.ss=r,this.languages=this.i18n.getLanguages()}selectLanguage(e){let t=this.storage.getAppSettings();this.i18n.current=e,t.language=e,this.storage.setAppSettings(t),window.location.reload(),this.ss.hide()}isSelected(e){return this.i18n.current===e}};n.\u0275fac=function(t){return new(t||n)(o(M),o(O),o(k))},n.\u0275cmp=g({type:n,selectors:[["dsw-language-selector"]],standalone:!0,features:[y],decls:3,vars:0,consts:[[3,"click"],[3,"src"]],template:function(t,r){t&1&&(l(0,"ul"),u(1,P,3,2,"li",null,m),s()),t&2&&(a(),x(r.languages))},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let i=n;return i})();export{L as LanguageSelectorComponent}; diff --git a/dist/chunk-AJ2AYJWH.js b/dist/chunk-AJ2AYJWH.js new file mode 100644 index 00000000..c7b6973c --- /dev/null +++ b/dist/chunk-AJ2AYJWH.js @@ -0,0 +1 @@ +import{a as D}from"./chunk-G7BOERRR.js";import{H as N,K as p,L as E,w as S}from"./chunk-GDT23CSW.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-BVCU4AD4.js b/dist/chunk-BVCU4AD4.js new file mode 100644 index 00000000..fc21bb0b --- /dev/null +++ b/dist/chunk-BVCU4AD4.js @@ -0,0 +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-UGEHMGZQ.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-G3W4DD55.js";import{a as Ft}from"./chunk-MDOQS4TE.js";import{a as De}from"./chunk-G7BOERRR.js";import{a as it}from"./chunk-R3LMLSL5.js";import{a as pt,b as ze}from"./chunk-CF2VGD6U.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-HYAUW6N4.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-GDT23CSW.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 g=null,u=null;this.gridster.$options.outerMargin&&(this.gridster.rows===t.rows+t.y&&(this.gridster.$options.outerMarginBottom!==null?g=this.gridster.$options.outerMarginBottom+"px":g=this.gridster.$options.margin+"px"),this.gridster.columns===t.cols+t.x&&(this.gridster.$options.outerMarginBottom!==null?u=this.gridster.$options.outerMarginRight+"px":u=this.gridster.$options.margin+"px")),e.setStyle(s,"margin-bottom",g),e.setStyle(s,W.LTR?"margin-right":"margin-left",u)}}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 g=l.y||0,u;for(;g=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((u,w)=>{let I={y:w.$item.y+w.$item.rows-1,x:w.$item.x+w.$item.cols-1};return O.compareItems(u,I)===1?I:u},l);let g=Object.assign({},o);return this.getNextPossiblePosition(g,l),g},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,g=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,g=t.maxItemRows===void 0?this.$options.maxItemRows:t.maxItemRows,u=t.minItemRows===void 0?this.$options.minItemRows:t.minItemRows,w=t.cols<=o&&t.cols>=l,I=t.rows<=g&&t.rows>=u,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((u,w)=>i?w.$item.y-u.$item.y||w.$item.x-u.$item.x:u.$item.y-w.$item.y||u.$item.x-w.$item.x);let n=0,o,l=!0,g=[];for(;n-1&&this.pushedItemsTempPath[u].length>10){l=!1;break}if(this.tryPattern[t][0].call(this,o,s))this.pushedItemsOrder.push(o),g.push(o);else if(this.tryPattern[t][1].call(this,o,s))this.pushedItemsOrder.push(o),g.push(o);else if(this.tryPattern[t][2].call(this,o,s))this.pushedItemsOrder.push(o),g.push(o);else if(this.tryPattern[t][3].call(this,o,s))this.pushedItemsOrder.push(o),g.push(o);else{l=!1;break}}if(!l&&(n=this.pushedItemsOrder.lastIndexOf(g[0]),n>-1)){let u=this.pushedItemsOrder.length-1;for(;u>=n;u--)o=this.pushedItemsOrder[u],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,g=!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),g=!0);return e.length<2&&this.removeFromPushed(t),g}},Ct,lt,Ne=50,X,bt,tt,xt,_t,vt,yt;function Ye(r,s,t,e,i,n,o,l,g,u){Ct=r.$options.scrollSensitivity,lt=r.$options.scrollSpeed,X=r.el,bt=g,tt=u;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,g=o-i,u=l-n;e.$item.x=s.item.x-g,e.$item.y=s.item.y-u,s.$item.x=e.item.x+g,s.$item.y=e.item.y+u,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),g=this.gridsterItem.renderer.listen("document","mouseleave",P),u=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),u(),l(),g(),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,g,u;for(;i>-1;i--)n=e[i],o=s.$item.x,l=s.$item.y,g=s.$item.cols,u=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=g,s.$item.rows=u):(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,g=this.gridster.el.getBoundingClientRect();this.right=Math.min(this.right,g.right-g.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:g}=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",u),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 u(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(),g()}}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,g=window.innerHeight,u=e,w=i;e+n>l&&(u=e-n),i+o>g&&(w=i-o),this.tooltipEl&&(this.tooltipEl.style.left=u+"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,g,u,w){this.ss=t,this.us=e,this.ws=i,this.cd=n,this.ns=o,this.fs=l,this.hs=g,this.eds=u,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,g=o.y+o.height+4,u=i.isDate?420:340;l+u>window.innerWidth&&(l=o.x+o.width-u);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-7UG364TP.js"),hideBackdrop:!0,closeByEsc:!0,closeByBackdropClick:!0,buttons:[],noPadding:!0,componentStyles:{position:"absolute",left:l+"px",top:g+"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,g,u,w){this.fs=t,this.ss=e,this.vs=i,this.i18n=n,this.wts=o,this.bs=l,this.ms=g,this.cd=u,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 u=t.series.map((w,I)=>({v:w.visible,i:I})).filter(w=>!w.v);u.length&&(e+="&hiddenSeries="+u.map(w=>w.i).join(","))}let o=this.component?.getDrillsAsParameter();o&&(e+="&drilldown="+o);let l='";let u={title:"",component:import("./chunk-NC5V3JI7.js"),inputs:{title:"Share widget",shareUrl:h,btnTitle:"Copy",hideOptions:!0},closeByEsc:!0,buttons:[],class:"modal-no-border",componentStyles:{padding:"0"},onComponentInit:w=>{w.onCopy=()=>{this.ms.close(u)}}};this.ms.show(u)}requestData(){this.component?.requestData()}applyFilter(t){this.updateFiltersText(),this.requestData()}changeStyle(t,e,n){}showToolbar(){this.widget.toolbar=!0}hideToolbar(){this.widget.toolbar=!1}onHeaderButtonBack(){this.component?.doDrillUp()}onResetClickFilter(){this.component?.resetClickFilter()}onFilterVariable(t){this.component?.onVariableChange(t)}onFilterDatasource(t){this.component?.onDataSourceChange(t)}onFilterAction(t){this.component?.performAction(t)}onFilter(t){}updateComponent(){this.widgetType=this.wts.getDesc(this.widget.type),this.widgetType?.class?(this.widget.isSupported=!0,this.cd.detectChanges()):(this.widget.isSupported=!1,this.showError(this.i18n.get("errWidgetNotSupported")+": "+this.widget.type),this.cd.detectChanges())}initDrillsForSharedWidget(){let t=this.route.snapshot.queryParamMap.get("drilldown")||"";t&&this.component&&this.widget&&(this.component.drills=decodeURIComponent(t).split("~").map(e=>({path:e,name:e})),this.widget.backButton=!!this.component?.drills.length,this.widget.title=this.component.getDrillTitle(this.component.drills[this.component.drills.length-1]),this.header?.cd.detectChanges())}initDataSourceFromParams(){if(!this.widget.shared)return;let t=this.route.snapshot.queryParamMap.get("datasource");t&&this.component&&(this.component.customDataSource=t)}updateFilterText(t){this.updateFiltersText()}initFilters(){this.model.filters=this.fs.getWidgetModelFilters(this.widget.name),this.updateFiltersText()}checkToolbarVisibility(){this.model.filters.length===0&&!this.hasDatasourceChooser&&!this.hasActions&&!this.widget.pvItems.length&&this.hideToolbar()}subscribeFilters(){this.subFilter=this.bs.subscribe("filter"+this.widget.name,t=>this.applyFilter(t)),this.subUpdateFilterText=this.bs.subscribe("updateFilterText"+this.widget.name,t=>this.updateFilterText(t)),this.subFilterAll=this.bs.subscribe("filterAll",t=>this.applyFilter(t))}subscribeActions(){this.subRefresh=this.bs.subscribe("refresh:"+this.widget.name,()=>this.requestData()),this.subCopyMdx=this.bs.subscribe(`copyMDX:${this.widget.name}`,()=>this.copyMDX()),this.subShare=this.bs.subscribe(`share:${this.widget.name}`,()=>this.share())}};i.\u0275fac=function(e){return new(e||i)(_(st),_(ct),_(Wt),_(kt),_(We),_(pt),_(Ft),_(K),_(ht))},i.\u0275cmp=A({type:i,selectors:[["dsw-widget"]],viewQuery:function(e,n){if(e&1&&(j(Yt,5),j(ji,7),j(Ui,7)),e&2){let r;U(r=q())&&(n.ngComponentOutlet=r.first),U(r=q())&&(n.header=r.first),U(r=q())&&(n.filters=r.first)}},inputs:{widget:"widget"},standalone:!0,features:[X],decls:7,vars:9,consts:[["header",""],["filters",""],[3,"onButtonClick","onBack","onResetClickFilter","typeDesc","widget","hidden"],[3,"onVariable","onDataSource","onAction","hidden","widget","filters"],[1,"error"],[1,"spinner"],[4,"ngComponentOutlet","ngComponentOutletInputs"],["ngSrc","assets/img/spinner.svg","height","100","width","100","priority",""]],template:function(e,n){if(e&1){let r=y();d(0,"dsw-widget-header",2,0),f("onButtonClick",function(h){return p(r),m(n.onHeaderButton(h))})("onBack",function(){return p(r),m(n.onHeaderButtonBack())})("onResetClickFilter",function(){return p(r),m(n.onResetClickFilter())}),g(),d(2,"dsw-widget-filter",3,1),f("onVariable",function(h){return p(r),m(n.onFilterVariable(h))})("onDataSource",function(h){return p(r),m(n.onFilterDatasource(h))})("onAction",function(h){return p(r),m(n.onFilterAction(h))}),g(),F(4,Qi,1,2,"ng-container")(5,Ki,2,1,"div",4)(6,Zi,2,1,"div",5)}e&2&&(k("typeDesc",n.widgetType)("widget",n.widget)("hidden",n.widget.tile||!n.isHeader),a(2),k("hidden",n.widget.tile||!n.isHeader)("widget",n.widget)("filters",n.model.filters),a(2),x(n.widgetType&&n.widgetType.class?4:-1),a(),x(n.model.error?5:-1),a(),x(n.component!=null&&n.component.isSpinner&&!n.model.error?6:-1))},dependencies:[Ke,Ze,Yt,Ce],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;overflow:hidden;background-color:var(--cl-widget-bg);padding:20px}.error[_ngcontent-%COMP%]{font-family:Oxygen;position:absolute;inset:0;color:#d7070294;background-color:transparent;text-align:center;background:var(--cl-widget-bg);display:flex;align-items:center;justify-content:center;padding:20px;z-index:10}.spinner[_ngcontent-%COMP%]{position:absolute;inset:44px 0 0;z-index:3;display:flex;justify-content:center;align-items:center;background-color:#ffffffe6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);height:auto}dsw-widget-filter[_ngcontent-%COMP%]{z-index:4}"],data:{animation:[De("fade-in-out",[jt(":enter",[wt({opacity:0}),Gt("100ms",wt({opacity:1}))]),jt(":leave",[wt({opacity:1}),Gt("100ms",wt({opacity:0}))])])]},changeDetection:0});let o=i;return o})();var Ji=["ctxMenu"];function ts(o,i){if(o&1){let s=y();d(0,"gridster-item",18,3),f("transitionend",function(e){let n=p(s).$implicit,r=c(2);return m(r.onWidgetSizeChanged(n,e))})("contextmenu",function(e){let n=p(s).$implicit,r=c(2);return m(r.showContextMenu(n,e))}),I(2,"dsw-widget",19,4),g()}if(o&2){let s=i.$implicit,t=c(2);E("editing",s===t.editedWidget)("no-anim",t.isLoading||t.editedWidget)("expanded",s.isExpanded),k("id",s===t.editedWidget?"edited-widget":void 0)("item",s),a(2),k("widget",s)}}function es(o,i){if(o&1&&(d(0,"gridster",6,2),B(2,ts,4,9,"gridster-item",17,ue().trackByName,!0),g()),o&2){let s=c();k("options",s.tilesOptions),a(2),H(s.list)}}function is(o,i){if(o&1&&(d(0,"div",21),I(1,"dsw-widget",19,4),g()),o&2){let s=i.$implicit;a(),k("widget",s)}}function ss(o,i){if(o&1&&(d(0,"div",23),I(1,"dsw-widget",19),g()),o&2){let s=c(2);ut("transform","translateX(calc(-100vw * "+-s.page+"))"),a(),k("widget",s.mobileFilter)}}function ns(o,i){if(o&1&&(d(0,"div",20),B(1,is,3,1,"div",21,G),F(3,ss,2,3,"div",22),g()),o&2){let s=c();ut("transform","translateX(calc(100vw * "+-s.page+"))"),a(),H(s.list),a(2),x(s.isMobileFilterVisible?3:-1)}}function rs(o,i){if(o&1&&I(0,"span"),o&2){let s=i.$index,t=c();E("active",s===t.page)}}function os(o,i){o&1&&(d(0,"div",10),I(1,"img",24),g())}function ls(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxDrill())}),b(1,"Drilldown"),g()}}function as(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxDrillthrough())}),b(1,"Drillthrough"),g()}}function hs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.printItem())}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"print")))}function ds(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.gotoKPIPage(e.ctxItem))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"showKPI")))}function cs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.gotoAnalyzer(e.ctxItem))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"openAnalyzer")))}function ps(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("svg"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"svgImage")))}function ms(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("png"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"pngImage")))}function gs(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("jpg"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"jpgImage")))}function us(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.exportWidget("pdf"))}),b(1),S(2,"i18n"),g()}o&2&&(a(),M(T(2,1,"pdfDoc")))}function fs(o,i){if(o&1){let s=y();d(0,"div",14),f("mouseover",function(e){p(s);let n=at(4),r=c();return m(r.showSubmenu(n,e))}),b(1),S(2,"i18n"),d(3,"div",15,5)(5,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("areaChart"))}),b(6,"Area chart"),g(),d(7,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("barChart"))}),b(8,"Bar chart"),g(),d(9,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("barChartStacked"))}),b(10,"Stacked bar chart"),g(),d(11,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("columnChart"))}),b(12,"Column chart"),g(),d(13,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("columnChartStacked"))}),b(14,"Stacked column chart"),g(),d(15,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("lineChart"))}),b(16,"Line chart"),g(),d(17,"div",12),f("click",function(){p(s);let e=c();return m(e.setType("pieChart"))}),b(18,"Pie chart"),g()()()}o&2&&(a(),Tt(" ",T(2,1,"viewAs")," "))}function ws(o,i){if(o&1){let s=y();d(0,"div",12),f("click",function(){p(s);let e=c();return m(e.ctxEdit())}),b(1,"Edit widget"),g()}}var Cs=200,bs=100,xs=50,ti=12,Nn=(()=>{let i=class i extends je{constructor(){super(),this.page=0,this.model={items:[]},this.contextMenuData={canDrill:!1,canDrillthrough:!1},this.tilesOptions={disablePushOnResize:!1,displayGrid:zt.None,disableScrollHorizontal:!0,pushDirections:{north:!0,east:!0,south:!0,west:!0},pushItems:!0,useTransformPositioning:!0,margin:20,gridType:v.VerticalFixed,draggable:{ignoreContent:!0,dragHandleClass:"drag-handle",enabled:!0},resizable:{enabled:!0}},this.isMobile=!1,this.isLoading=!0,this.itemsInitialized=0,this.isMobileFilterVisible=!1,this.sharedWidget="",this.path="",this.sidebarAnimEnd$=this.sbs.onAnimEnd.pipe(nt()),this.trackByName=(t,e)=>{let n=this.path+"-"+e.name.toString();return e===this.editedWidget&&this.editedWidget.edKey||n},this.subscribeForSidebarAnim(),this.checkRestrictions(),this.hs.resetSearch(),this.hs.hideMobileFilterButton(),this.sharedWidget=this.route.snapshot.queryParamMap.get("widget")??"",this.subscribeForGridsterEvents(),this.loadSettings(),this.subscribeForSettingsChanged(),this.subscribeForEditing(),this.setupSharedWidget(),this.isMobile=this.us.isMobile(),this.subReset=this.bs.subscribe("refresh-dashboard",()=>{this.requestData()}),this.subMobileFilterDialog=this.hs.mobileFilterDialogToggle.subscribe(()=>{this.isMobileFilterVisible=!this.isMobileFilterVisible,this.cd.detectChanges()}),this.subContextMenu=this.bs.subscribe("contextmenu",t=>{this.showContextMenu(t.widget,t.event,t.ctxData),this.cd.detectChanges()})}get canEdit(){return location.port==="4007"}ngOnInit(){this.subscribeForParamsChange()}ngAfterViewInit(){}ngOnDestroy(){super.ngOnDestroy(),clearTimeout(this.onLoadingTimeout),window.onafterprint=null,this.subParamsChange?.unsubscribe(),this.subContextMenu.unsubscribe(),this.subMobileFilterDialog.unsubscribe(),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subReset&&this.subReset.unsubscribe()}setType(t){this.ctxItem&&(this.bs.broadcast("setWidgetType:"+this.ctxItem.name,t),this.hideContextMenu())}hideContextMenu(){this.ctxItem=void 0,this.r2.setStyle(this.ctxMenu.nativeElement,"visibility","hidden")}shareItem(){this.ctxItem&&(this.bs.broadcast("share:"+this.ctxItem.name),this.hideContextMenu())}copyMDX(){this.ctxItem&&(this.bs.broadcast("copyMDX:"+this.ctxItem.name),this.hideContextMenu())}printItem(){this.ctxItem&&(this.bs.broadcast("print:"+this.ctxItem.name),this.hideContextMenu())}refreshItem(){this.ctxItem&&(this.bs.broadcast("refresh:"+this.ctxItem.name),this.hideContextMenu())}prepareData(t){let e;if(this.itemsInitialized=0,!t)return;if(t.Error){this.es.show(t.Error);return}if(!t.widgets){this.es.show(this.i18n.get("errNoWidgets"));return}if(t.displayInfo&&t.displayInfo.gridRows&&!this.settings.widgetHeight&&!this.sharedWidget){let l=t.displayInfo.gridRows,h=20,u=window.innerHeight;u<800&&(u=800),this.tilesOptions.fixedRowHeight=Math.floor((u-(63+h*(l+1)))/l)-1,this.gridster&&this.gridster.optionsChanged()}this.vs.init(t),t.filters&&this.fs.init(t.filters,this.path);let n=!1;if((this.fs.isFiltersOnToolbarExists||this.vs.isExists())&&!this.sharedWidget){for(e=0;ethis.tilesOptions.maxCols&&(r.cols=this.tilesOptions.maxCols)}if(t.widgets[e].autocreated&&(delete r.x,delete r.y),t.widgets[e].name&&this.setWidgetSizeAndPos(r,t.widgets[e].name.toString()),this.sharedWidget&&(r.x=0,r.y=0,r.idx=0,r.cols=1,r.rows=1,r.menuDisabled=!0,r.shared=!0),r=it(it({},JSON.parse(JSON.stringify(t.widgets[e]))),JSON.parse(JSON.stringify(r))),this.sharedWidget||this.fillDependentWidgets(r,t.widgets),this.isMobile&&r.type===tt.const.emptyWidgetClass){this.mobileFilter=r,this.hs.showMobileFilterButton();continue}this.list.push(r)}this.sharedWidget||setTimeout(()=>this.broadcastDependents(),0),this.fitEmptyWidget(),this.dbs.setWidgets(this.list),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page]?.title),setTimeout(()=>{})}broadcastDependents(){let t=[];for(let e=0;eC.name==="disableContextMenu");if(h&&(l=h.dataValue===1),t.type===tt.const.emptyWidgetClass||l||this.us.isPreventContextMenu())return;e.preventDefault(),this.ctxItem=t;let u=e.clientY,w=e.clientX;setTimeout(()=>{u+r.offsetHeight>window.innerHeight&&(u-=r.offsetHeight),w+r.offsetWidth>window.innerWidth&&(w-=r.offsetWidth),this.r2.setStyle(r,"left",w+"px"),this.r2.setStyle(r,"top",u+"px"),this.subCtxClose&&this.subCtxClose.unsubscribe(),this.subCtxClose=re(document,"mousedown").subscribe(C=>{this.subCtxClose?.unsubscribe(),!C.target.parentElement?.classList.contains("ctx-menu")&&(this.hideContextMenu(),this.cd.detectChanges())}),this.r2.setStyle(r,"visibility","visible")})}exportWidget(t){let e=this.getWidgetByInfo(this.ctxItem)?.component,n={sourceWidth:Math.floor(window.screen.width/2),sourceHeight:Math.floor(window.screen.height/2),filename:this.ctxItem?.tile||"chart",type:"image/svg+xml"};switch(t){case"png":n.type="image/png";break;case"svg":n.type="image/svg+xml";break;case"jpg":n.type="image/jpeg";break;case"pdf":n.type="application/pdf";break;case"xls":{let r=e?.getMDX();if(!r){console.warn(`Can't get MDX for widget: ${this.ctxItem}`);return}if(e?.lpt){let u=e.lpt;r=u._dataSourcesStack[u._dataSourcesStack.length-1].BASIC_MDX+u.dataSource.FILTERS}let h=(this.ss.serverSettings.DefaultApp||"/csp/"+ft)+"/_DeepSee.UI.MDXExcel.zen?MDX="+encodeURIComponent(r||"");window.open(h,"_blank"),this.hideContextMenu();return}case"csv":{this.exportToCsv(),this.hideContextMenu();return}}this.ctxItem?.isChart&&e?.chart?.exportChart(n,{}),this.hideContextMenu()}showSubmenu(t,e){e.target.classList.contains("ctx-sub")&&(this.r2.removeStyle(t,"transform"),this.r2.setStyle(t,"visibility","hidden"),setTimeout(()=>{let n=t.getBoundingClientRect(),r=0,l=0;n.top+n.height>window.innerHeight&&(l=n.top+n.height-window.innerHeight+10),n.left+n.width>window.innerWidth&&(r=n.width+(t.parentElement?.getBoundingClientRect()?.width||0)+2),this.r2.setStyle(t,"transform",`translateX(${-r}px) translateY(${-l}px)`),this.r2.setStyle(t,"visibility","visible")}))}onTouchStart(t){this.touchInfo={startTime:performance.now(),endTime:0,sx:t.changedTouches[0].screenX,sy:t.changedTouches[0].screenY,ex:0,ey:0}}onTouchEnd(t){if(this.isMobileFilterVisible)return;let e=this.touchInfo;if(!e||(e.endTime=performance.now(),e.ex=t.changedTouches[0].screenX,e.ey=t.changedTouches[0].screenY,e.endTime-e.startTime>Cs)||Math.abs(e.ey-e.sy)>bs||Math.abs(e.ex-e.sx)e.sx?-1:1;this.page+=n;let r=this.dbs.getWidgets().length;this.page<0&&(this.page=0),this.page>r-1&&(this.page=r-1),this.ms.onSetTitle.emit(this.dbs.getWidgets()[this.page].title);let l=this.widgets.toArray()[this.page].component;if(l instanceof Fe){l.adjustSize();return}if(l instanceof ze&&l.chartConfig.chart?.type!=="treemap"){l.updateChart(!0,!1);return}}ctxDrill(){this.contextMenuData&&(this.bs.broadcast("drilldown:"+(this.ctxItem?.name||""),{path:this.contextMenuData.drillPath,title:this.contextMenuData.drillTitle}),this.hideContextMenu())}ctxDrillthrough(){this.contextMenuData&&(this.bs.broadcast("drillthrough:"+(this.ctxItem?.name||""),{path:this.contextMenuData.drillPath,title:this.contextMenuData.drillTitle}),this.hideContextMenu())}gotoKPIPage(t){if(!t?.kpiclass)return;let n=(this.ss.serverSettings.DefaultApp||"/csp/"+ft)+"/"+t.kpiclass+".cls";window.open(n,"_blank")}gotoAnalyzer(t){if(!t?.dataSource)return;let e=this.ss.serverSettings.DefaultApp||"/csp/"+ft,n=this.fs.getFiltersUrlString(t.name,!1," ",` -`),r=e+"/_DeepSee.UI.Dialog.Analyzer.zen?&PIVOT="+encodeURIComponent(t.dataSource);n&&(r+="&FILTERSTATE="+n),window.open(r,"_blank")}ctxEdit(){this.ctxItem?.isExpanded&&this.getWidgetByInfo(this.ctxItem)?.header?.onClick("expand"),this.sbs.showComponent({component:import("./chunk-YSVXLS2N.js"),single:!0,inputs:{widget:this.ctxItem}}),this.hideContextMenu()}exportToCsv(){let t=this.getWidgetByInfo(this.ctxItem)?.component,e=t?._currentData;if(!t||!t.lpt||!e)return;let n,r,l;t.lpt?(r=t.lpt.dataController.getData().dimensions[0],n=t.lpt.dataController.getData().dimensions[1],l=t.lpt.dataController.getData().dataArray):(n=e.Cols[1].tuples,r=e.Cols[0].tuples,l=e.Data);let h=`\r -`,u="|",w='"sep='+u+'"'+h,C,$;for(n[0]&&n[0].dimension&&(w+=n[0].dimension+u),$=0;${D.click(),document.body.removeChild(D)},10)}}}fitEmptyWidget(){let t,e=0,n=0;this.list.forEach(r=>{if(r.name==="emptyWidget"){t=r;return}let l=(r.x||0)+(r.cols||0),h=(r.y||0)+(r.rows||0);l>e&&(e=l),h>n&&(n=h)}),!(!t||t.rows)&&(t.rows=n||2)}requestData(){this.list=[],this.path.indexOf(".dashboard")!==-1&&(this.isLoading=!0,this.cd.detectChanges(),this.ds.getWidgets(this.path||"").then(t=>{this.dbs.dashboard.next(t),this.prepareData(t)}).finally(()=>{this.onDataLoaded()}))}subscribeForParamsChange(){this.subParamsChange=ne([this.route.url,this.route.params]).subscribe(([t,e])=>{this.switchNamespaceAndPath(t,e),this.requestData()})}switchNamespaceAndPath(t,e){e.ns&&e.ns.toLowerCase()!==ft.toLowerCase()&&this.ns.setCurrent(e.ns),this.path=[e.name,...t.map(n=>n.path)].join("/").slice(1),this.dbs.current.next(this.path)}onDataLoaded(){this.cd.detectChanges(),this.gridster.onResize(),clearTimeout(this.onLoadingTimeout),this.onLoadingTimeout=setTimeout(()=>{this.isLoading=!1,this.cd.detectChanges()},1)}subscribeForSettingsChanged(){this.subSettingsChanged=this.ss.onSettingsChanged.subscribe(t=>{this.tilesOptions.maxCols=t.colCount||ti,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.tilesOptions.pushItems=!t.isTilePushDisabled,this.tilesOptions.disablePushOnResize=!!t.isTilePushDisabled,this.gridster&&(this.gridster.optionsChanged(),setTimeout(()=>{this.gridster.onResize()},1e3))})}subscribeForGridsterEvents(){this.tilesOptions.itemResizeCallback=t=>{this.onWidgetSizeChanged(t)},this.tilesOptions.draggable&&(this.tilesOptions.draggable.start=()=>{this.cd.detach()},this.tilesOptions.draggable.stop=()=>{this.cd.reattach()}),this.tilesOptions.itemChangeCallback=(t,e)=>{this.isLoading||this.dbs.saveWidgetPositionAndSize(t)}}loadSettings(){this.settings=this.ss.getAppSettings(),this.tilesOptions.pushItems=!this.settings.isTilePushDisabled,this.tilesOptions.disablePushOnResize=!!this.settings.isTilePushDisabled,this.tilesOptions.maxCols=parseInt(this.settings.colCount,10)||ti,this.tilesOptions.minCols=this.tilesOptions.maxCols,this.tilesOptions.fixedRowHeight=parseInt(this.settings.widgetHeight,10)||Math.floor((window.innerHeight-158)/10)-1}setupSharedWidget(){if(!this.sharedWidget)return;this.tilesOptions.maxCols=1,this.tilesOptions.minCols=1,this.tilesOptions.maxRows=1,this.tilesOptions.minRows=1,this.tilesOptions.gridType="fit";let e=this.route.snapshot.queryParamMap.get("height");e&&(this.tilesOptions.rowHeight=parseInt(e,10)),this.tilesOptions.draggable={enabled:!1,dragHandleClass:""},this.tilesOptions.resizable={enabled:!1}}checkRestrictions(){this.route.snapshot.queryParamMap.get("nodrag")==="1"&&this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!1),this.route.snapshot.queryParamMap.get("noresize")==="1"&&this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!1)}subscribeForSidebarAnim(){this.sidebarAnimEnd$.subscribe(()=>{this.gridster.onResize()})}};i.\u0275fac=function(e){return new(e||i)},i.\u0275cmp=A({type:i,selectors:[["dsw-dashboard-screen"]],viewQuery:function(e,n){if(e&1&&j(Ji,5),e&2){let r;U(r=q())&&(n.ctxMenu=r.first)}},hostBindings:function(e,n){e&1&&f("touchstart",function(l){return n.onTouchStart(l)})("touchend",function(l){return n.onTouchEnd(l)})},standalone:!0,features:[ge,X],decls:40,vars:30,consts:[["ctxMenu",""],["sub1",""],["gridster",""],["list",""],["widgets",""],["sub2",""],[3,"options"],[1,"mobile-widgets",3,"transform"],[1,"pager",3,"hidden"],[3,"active"],[1,"dsw-spinner"],[1,"ctx-menu",2,"visibility","hidden"],[3,"click"],[1,"divider"],[1,"ctx-sub",3,"mouseover"],[1,"ctx-menu"],[1,"ctx-sub"],[1,"tile",3,"id","editing","no-anim","expanded","item"],[1,"tile",3,"transitionend","contextmenu","id","item"],[3,"widget"],[1,"mobile-widgets"],[1,"tile"],[1,"tile","mobile-filter",3,"transform"],[1,"tile","mobile-filter"],["src","assets/img/spinner.svg"]],template:function(e,n){if(e&1){let r=y();F(0,es,4,1,"gridster",6)(1,ns,4,3,"div",7),d(2,"div",8)(3,"div"),B(4,rs,1,2,"span",9,G),g()(),F(6,os,2,0,"div",10),d(7,"div",11,0),F(9,ls,2,0,"div")(10,as,2,0,"div"),d(11,"div",12),f("click",function(){return p(r),m(n.refreshItem())}),b(12),S(13,"i18n"),g(),F(14,hs,3,3,"div"),d(15,"div",12),f("click",function(){return p(r),m(n.shareItem())}),b(16),S(17,"i18n"),g(),d(18,"div",12),f("click",function(){return p(r),m(n.copyMDX())}),b(19),S(20,"i18n"),g(),F(21,ds,3,3,"div")(22,cs,3,3,"div"),I(23,"div",13),d(24,"div",14),f("mouseover",function(h){p(r);let u=at(27);return m(n.showSubmenu(u,h))}),b(25," Export "),d(26,"div",15,1),F(28,ps,3,3,"div")(29,ms,3,3,"div")(30,gs,3,3,"div")(31,us,3,3,"div"),d(32,"div",12),f("click",function(){return p(r),m(n.exportWidget("xls"))}),b(33),S(34,"i18n"),g(),d(35,"div",12),f("click",function(){return p(r),m(n.exportWidget("csv"))}),b(36),S(37,"i18n"),g()()(),F(38,fs,19,3,"div",16)(39,ws,2,0,"div"),g()}e&2&&(x(n.isMobile?-1:0),a(),x(n.isMobile?1:-1),a(),k("hidden",n.isMobileFilterVisible||n.us.isEmbedded()),a(2),H(n.dbs.getWidgets()),a(2),x(n.isLoading?6:-1),a(3),x(n.contextMenuData!=null&&n.contextMenuData.canDrill?9:-1),a(),x(n.contextMenuData!=null&&n.contextMenuData.canDrillthrough?10:-1),a(2),M(T(13,20,"refresh")),a(2),x(n.ctxItem!=null&&n.ctxItem.isChart?14:-1),a(2),M(T(17,22,"share")),a(3),M(T(20,24,"copyMDX")),a(2),x(n.ctxItem!=null&&n.ctxItem.kpitype?21:-1),a(),x(n.ctxItem!=null&&n.ctxItem.dataSource?22:-1),a(6),x(n.ctxItem!=null&&n.ctxItem.isChart?28:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?29:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?30:-1),a(),x(n.ctxItem!=null&&n.ctxItem.isChart?31:-1),a(2),M(T(34,26,"xlsDoc")),a(3),M(T(37,28,"csvDoc")),a(2),x(n.ctxItem!=null&&n.ctxItem.isChart?38:-1),a(),x(n.ctxItem&&n.canEdit?39:-1))},dependencies:[ee,Ge,Je,$t],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;width:100%;height:100%;padding-bottom:20px}gridster[_ngcontent-%COMP%]{background:var(--cl-bg)}.mobile-widgets[_ngcontent-%COMP%]{display:flex;width:fit-content;transition:transform .2s linear;white-space:nowrap;height:100%}.tile[_ngcontent-%COMP%]{content-visibility:auto;overflow:visible;display:flex!important;flex-direction:column;position:absolute;border-radius:var(--tile-border-radius);border:1px solid var(--cl-header-border);user-select:none;-webkit-user-select:none}.tile.expanded[_ngcontent-%COMP%]{position:fixed;z-index:3!important;left:15px!important;top:calc(var(--header-height) + 15px)!important;right:15px!important;bottom:15px!important;width:auto!important;height:auto!important;transform:none!important;transition:none!important;margin:0!important;box-shadow:0 0 10px #0000001a;border:1px solid darkgray}.tile.expanded[_ngcontent-%COMP%] .gridster-item-resizable-handler.handle-se{display:none!important;pointer-events:none!important}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{position:static;margin-bottom:0!important;width:100vw;display:inline-flex!important;border:none}}.ctx-menu[_ngcontent-%COMP%]{font-family:Oxygen;position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;border:1px solid var(--cl-header-border);border-radius:4px;z-index:4;background-color:#fff;white-space:nowrap;box-shadow:0 0 5px #0000001f;min-width:140px}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:100%;padding:10px 20px;cursor:pointer;-webkit-user-select:none;user-select:none}.ctx-menu[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:hover{background-color:#0000000d}.ctx-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{height:0;margin:0;padding:0;border-bottom:1px solid var(--cl-header-border)}.ctx-sub[_ngcontent-%COMP%]{position:relative}.ctx-sub[_ngcontent-%COMP%]:after{content:"";background-image:url(./assets/img/icons/next.svg);position:absolute;right:6px;display:block;z-index:1;top:14px;width:12px;height:12px;opacity:.4;transform:scaleX(.6)}.ctx-sub[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:none;position:absolute;left:calc(100% + 1px);top:0}.ctx-sub[_ngcontent-%COMP%]:hover > div[_ngcontent-%COMP%]{display:block}.pager[_ngcontent-%COMP%]{display:none;position:absolute;left:0;width:100vw;bottom:calc(var(--header-height) - 10px);z-index:1;align-items:center;justify-content:center}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:2px;background-color:var(--cl-widget-bg);border-radius:20px;border:1px solid var(--cl-header-border);height:20px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:9px;height:9px;border-radius:20px;background-color:var(--cl-header-bg);border:1px solid var(--cl-header-border);margin-left:4px;margin-right:4px}.pager[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{width:14px;height:14px;position:relative}@media (max-width: 576px){.pager[_ngcontent-%COMP%]{display:flex}}.mobile-filter[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;z-index:10}.editing[_ngcontent-%COMP%]{border:2px solid var(--cl-accent)}gridster-item[_ngcontent-%COMP%]:not([style]){display:none}.dsw-spinner[_ngcontent-%COMP%]{top:var(--header-height)}'],changeDetection:0});let o=i;return o})();export{zt as a,mi as b,ee as c,Ge as d,Fs as e,Wt as f,Je as g,ti as h,Nn as i}; diff --git a/dist/chunk-OSUJKZGD.js b/dist/chunk-OSUJKZGD.js new file mode 100644 index 00000000..8d79a602 --- /dev/null +++ b/dist/chunk-OSUJKZGD.js @@ -0,0 +1 @@ +import{a}from"./chunk-VG6X52WY.js";import"./chunk-HYAUW6N4.js";import"./chunk-GDT23CSW.js";import"./chunk-ZEAAPN4P.js";import"./chunk-MG3ERZGY.js";export{a as ShareDashboardComponent}; diff --git a/dist/chunk-77PFSNFN.js b/dist/chunk-QDTU75BJ.js similarity index 68% rename from dist/chunk-77PFSNFN.js rename to dist/chunk-QDTU75BJ.js index b83c419d..b0dffb48 100644 --- a/dist/chunk-77PFSNFN.js +++ b/dist/chunk-QDTU75BJ.js @@ -1 +1 @@ -import{a as e}from"./chunk-PZJJYAMS.js";import{a as r}from"./chunk-LJL6JWG7.js";import"./chunk-DEPBX7UX.js";var o=class extends r{decodeBlock(t){return e(new Uint8Array(t)).buffer}};export{o as default}; +import{a as e}from"./chunk-PZJJYAMS.js";import{a as r}from"./chunk-YE4HGH46.js";import"./chunk-MG3ERZGY.js";var o=class extends r{decodeBlock(t){return e(new Uint8Array(t)).buffer}};export{o as default}; diff --git a/dist/chunk-QJXSIS7E.js b/dist/chunk-QJXSIS7E.js deleted file mode 100644 index 1f3ddfae..00000000 --- a/dist/chunk-QJXSIS7E.js +++ /dev/null @@ -1,14 +0,0 @@ -import{a as Co}from"./chunk-54YLOEMX.js";import{a as Wh}from"./chunk-KPBGF7I6.js";import{a as qr}from"./chunk-SUAWKU6Z.js";import{a as Gh,b as Xh}from"./chunk-6BTXKMB7.js";import{E as zh,F as de,H as Nh,I as jh,J as Bh,K as Ss,r as Oh,u as Fh}from"./chunk-CKPIETEW.js";import{$a as Lt,Ab as le,Ba as Dh,Bb as he,Bc as Rh,Cb as ce,Db as Dt,Eb as It,Fb as Ht,Jb as Ih,Nb as kh,Ob as Bt,Tb as wi,Ub as Si,Vb as Mi,X as Mh,Xa as Cs,Xb as re,Yb as Fe,Zb as ws,ba as Qt,cc as vt,fa as bt,gb as Lh,lb as Ct,qa as Eh,ra as Ph,rb as sr,sa as Th,ta as Ah,tb as _s,ua as _t,ub as Oe,vb as Ze,yb as rr}from"./chunk-ZKAUCJHV.js";import{a as Se,b as ns,d as oi,f as Jt,g as Sh,h as Ft}from"./chunk-DEPBX7UX.js";var Ms=oi((Vh,$r)=>{"use strict";(function(o,t){typeof define=="function"&&define.amd?define(t):typeof $r=="object"&&$r.exports?$r.exports=t():o.numeral=t()})(Vh,function(){var o,t,i="2.0.6",e={},s={},r={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},n={currentLocale:r.currentLocale,zeroFormat:r.zeroFormat,nullFormat:r.nullFormat,defaultFormat:r.defaultFormat,scalePercentBy100:r.scalePercentBy100};function l(a,h){this._input=a,this._value=h}return o=function(a){var h,c,f,u;if(o.isNumeral(a))h=a.value();else if(a===0||typeof a>"u")h=0;else if(a===null||t.isNaN(a))h=null;else if(typeof a=="string")if(n.zeroFormat&&a===n.zeroFormat)h=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)h=null;else{for(c in e)if(u=typeof e[c].regexps.unformat=="function"?e[c].regexps.unformat():e[c].regexps.unformat,u&&a.match(u)){f=e[c].unformat;break}f=f||o._.stringToNumber,h=f(a)}else h=Number(a)||null;return new l(a,h)},o.version=i,o.isNumeral=function(a){return a instanceof l},o._=t={numberToFormat:function(a,h,c){var f=s[o.options.currentLocale],u=!1,p=!1,b=0,v="",x=1e12,m=1e9,E=1e6,L=1e3,S="",w=!1,R,O,I,_,A,F,P,D,C,d;if(a=a||0,O=Math.abs(a),o._.includes(h,"(")?(u=!0,h=h.replace(/[\(|\)]/g,"")):(o._.includes(h,"+")||o._.includes(h,"-"))&&(D=o._.includes(h,"+")?h.indexOf("+"):a<0?h.indexOf("-"):-1,h=h.replace(/[\+|\-]/g,"")),o._.includes(h,"a")&&(R=h.match(/a(k|m|b|t)?/),R=R?R[1]:!1,o._.includes(h," a")&&(v=" "),h=h.replace(new RegExp(v+"a[kmbt]?"),""),O>=x&&!R||R==="t"?(v+=f.abbreviations.trillion,a=a/x):O=m&&!R||R==="b"?(v+=f.abbreviations.billion,a=a/m):O=E&&!R||R==="m"?(v+=f.abbreviations.million,a=a/E):(O=L&&!R||R==="k")&&(v+=f.abbreviations.thousand,a=a/L)),o._.includes(h,"[.]")&&(p=!0,h=h.replace("[.]",".")),F=a.toString().split(".")[0],P=h.split(".")[1],C=h.indexOf(","),b=(h.split(".")[0].split(",")[0].match(/0/g)||[]).length,P?(o._.includes(P,"[")?(P=P.replace("]",""),P=P.split("["),S=o._.toFixed(a,P[0].length+P[1].length,c,P[1].length)):S=o._.toFixed(a,P.length,c),F=S.split(".")[0],o._.includes(S,".")?S=f.delimiters.decimal+S.split(".")[1]:S="",p&&Number(S.slice(1))===0&&(S="")):F=o._.toFixed(a,0,c),v&&!R&&Number(F)>=1e3&&v!==f.abbreviations.trillion)switch(F=String(Number(F)/1e3),v){case f.abbreviations.thousand:v=f.abbreviations.million;break;case f.abbreviations.million:v=f.abbreviations.billion;break;case f.abbreviations.billion:v=f.abbreviations.trillion;break}if(o._.includes(F,"-")&&(F=F.slice(1),w=!0),F.length0;g--)F="0"+F;return C>-1&&(F=F.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+f.delimiters.thousands)),h.indexOf(".")===0&&(F=""),d=F+S+(v||""),u?d=(u&&w?"(":"")+d+(u&&w?")":""):D>=0?d=D===0?(w?"-":"+")+d:d+(w?"-":"+"):w&&(d="-"+d),d},stringToNumber:function(a){var h=s[n.currentLocale],c=a,f={thousand:3,million:6,billion:9,trillion:12},u,p,b,v;if(n.zeroFormat&&a===n.zeroFormat)p=0;else if(n.nullFormat&&a===n.nullFormat||!a.replace(/[^0-9]+/g,"").length)p=null;else{p=1,h.delimiters.decimal!=="."&&(a=a.replace(/\./g,"").replace(h.delimiters.decimal,"."));for(u in f)if(v=new RegExp("[^a-zA-Z]"+h.abbreviations[u]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(v)){p*=Math.pow(10,f[u]);break}p*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),p*=Number(a)}return p},isNaN:function(a){return typeof a=="number"&&isNaN(a)},includes:function(a,h){return a.indexOf(h)!==-1},insert:function(a,h,c){return a.slice(0,c)+h+a.slice(c)},reduce:function(a,h){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof h!="function")throw new TypeError(h+" is not a function");var c=Object(a),f=c.length>>>0,u=0,p;if(arguments.length===3)p=arguments[2];else{for(;u=f)throw new TypeError("Reduce of empty array with no initial value");p=c[u++]}for(;uf?h:f},1)},toFixed:function(a,h,c,f){var u=a.toString().split("."),p=h-(f||0),b,v,x,m;return u.length===2?b=Math.min(Math.max(u[1].length,p),h):b=p,x=Math.pow(10,b),m=(c(a+"e+"+b)/x).toFixed(b),f>h-b&&(v=new RegExp("\\.?0{1,"+(f-(h-b))+"}$"),m=m.replace(v,"")),m}},o.options=n,o.formats=e,o.locales=s,o.locale=function(a){return a&&(n.currentLocale=a.toLowerCase()),n.currentLocale},o.localeData=function(a){if(!a)return s[n.currentLocale];if(a=a.toLowerCase(),!s[a])throw new Error("Unknown locale : "+a);return s[a]},o.reset=function(){for(var a in r)n[a]=r[a]},o.zeroFormat=function(a){n.zeroFormat=typeof a=="string"?a:null},o.nullFormat=function(a){n.nullFormat=typeof a=="string"?a:null},o.defaultFormat=function(a){n.defaultFormat=typeof a=="string"?a:"0.0"},o.register=function(a,h,c){if(h=h.toLowerCase(),this[a+"s"][h])throw new TypeError(h+" "+a+" already registered.");return this[a+"s"][h]=c,c},o.validate=function(a,h){var c,f,u,p,b,v,x,m;if(typeof a!="string"&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(a==="")return!1;try{x=o.localeData(h)}catch{x=o.localeData(o.locale())}return u=x.currency.symbol,b=x.abbreviations,c=x.delimiters.decimal,x.delimiters.thousands==="."?f="\\.":f=x.delimiters.thousands,m=a.match(/^[^\d]+/),m!==null&&(a=a.substr(1),m[0]!==u)||(m=a.match(/[^\d]+$/),m!==null&&(a=a.slice(0,-1),m[0]!==b.thousand&&m[0]!==b.million&&m[0]!==b.billion&&m[0]!==b.trillion))?!1:(v=new RegExp(f+"{2}"),a.match(/[^\d.,]/g)?!1:(p=a.split(c),p.length>2?!1:p.length<2?!!p[0].match(/^\d+.*\d$/)&&!p[0].match(v):p[0].length===1?!!p[0].match(/^\d+$/)&&!p[0].match(v)&&!!p[1].match(/^\d+$/):!!p[0].match(/^\d+.*\d$/)&&!p[0].match(v)&&!!p[1].match(/^\d+$/)))},o.fn=l.prototype={clone:function(){return o(this)},format:function(a,h){var c=this._value,f=a||n.defaultFormat,u,p,b;if(h=h||Math.round,c===0&&n.zeroFormat!==null)p=n.zeroFormat;else if(c===null&&n.nullFormat!==null)p=n.nullFormat;else{for(u in e)if(f.match(e[u].regexps.format)){b=e[u].format;break}b=b||o._.numberToFormat,p=b(c,f,h)}return p},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(f,u,p,b){return f+Math.round(h*u)}return this._value=t.reduce([this._value,a],c,0)/h,this},subtract:function(a){var h=t.correctionFactor.call(null,this._value,a);function c(f,u,p,b){return f-Math.round(h*u)}return this._value=t.reduce([a],c,Math.round(this._value*h))/h,this},multiply:function(a){function h(c,f,u,p){var b=t.correctionFactor(c,f);return Math.round(c*b)*Math.round(f*b)/Math.round(b*b)}return this._value=t.reduce([this._value,a],h,1),this},divide:function(a){function h(c,f,u,p){var b=t.correctionFactor(c,f);return Math.round(c*b)/Math.round(f*b)}return this._value=t.reduce([this._value,a],h),this},difference:function(a){return Math.abs(o(this._value).subtract(a).value())}},o.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var h=a%10;return~~(a%100/10)===1?"th":h===1?"st":h===2?"nd":h===3?"rd":"th"},currency:{symbol:"$"}}),function(){o.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(a,h,c){var f=o._.includes(h," BPS")?" ":"",u;return a=a*1e4,h=h.replace(/\s?BPS/,""),u=o._.numberToFormat(a,h,c),o._.includes(u,")")?(u=u.split(""),u.splice(-1,0,f+"BPS"),u=u.join("")):u=u+f+"BPS",u},unformat:function(a){return+(o._.stringToNumber(a)*1e-4).toFixed(15)}})}(),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},h={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},c=a.suffixes.concat(h.suffixes.filter(function(u){return a.suffixes.indexOf(u)<0})),f=c.join("|");f="("+f.replace("B","B(?!PS)")+")",o.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(f)},format:function(u,p,b){var v,x=o._.includes(p,"ib")?h:a,m=o._.includes(p," b")||o._.includes(p," ib")?" ":"",E,L,S;for(p=p.replace(/\s?i?b/,""),E=0;E<=x.suffixes.length;E++)if(L=Math.pow(x.base,E),S=Math.pow(x.base,E+1),u===null||u===0||u>=L&&u0&&(u=u/L);break}return v=o._.numberToFormat(u,p,b),v+m},unformat:function(u){var p=o._.stringToNumber(u),b,v;if(p){for(b=a.suffixes.length-1;b>=0;b--){if(o._.includes(u,a.suffixes[b])){v=Math.pow(a.base,b);break}if(o._.includes(u,h.suffixes[b])){v=Math.pow(h.base,b);break}}p*=v||1}return p}})}(),function(){o.register("format","currency",{regexps:{format:/(\$)/},format:function(a,h,c){var f=o.locales[o.options.currentLocale],u={before:h.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:h.match(/([\+|\-|\)|\s|\$]*)$/)[0]},p,b,v;for(h=h.replace(/\s?\$\s?/,""),p=o._.numberToFormat(a,h,c),a>=0?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):a<0&&!o._.includes(u.before,"-")&&!o._.includes(u.before,"(")&&(u.before="-"+u.before),v=0;v=0;v--)switch(b=u.after[v],b){case"$":p=v===u.after.length-1?p+f.currency.symbol:o._.insert(p,f.currency.symbol,-(u.after.length-(1+v)));break;case" ":p=v===u.after.length-1?p+" ":o._.insert(p," ",-(u.after.length-(1+v)+f.currency.symbol.length-1));break}return p}})}(),function(){o.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,h,c){var f,u=typeof a=="number"&&!o._.isNaN(a)?a.toExponential():"0e+0",p=u.split("e");return h=h.replace(/e[\+|\-]{1}0/,""),f=o._.numberToFormat(Number(p[0]),h,c),f+"e"+p[1]},unformat:function(a){var h=o._.includes(a,"e+")?a.split("e+"):a.split("e-"),c=Number(h[0]),f=Number(h[1]);f=o._.includes(a,"e-")?f*=-1:f;function u(p,b,v,x){var m=o._.correctionFactor(p,b),E=p*m*(b*m)/(m*m);return E}return o._.reduce([c,Math.pow(10,f)],u,1)}})}(),function(){o.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,h,c){var f=o.locales[o.options.currentLocale],u,p=o._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),p+=f.ordinal(a),u=o._.numberToFormat(a,h,c),u+p}})}(),function(){o.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,h,c){var f=o._.includes(h," %")?" ":"",u;return o.options.scalePercentBy100&&(a=a*100),h=h.replace(/\s?\%/,""),u=o._.numberToFormat(a,h,c),o._.includes(u,")")?(u=u.split(""),u.splice(-1,0,f+"%"),u=u.join("")):u=u+f+"%",u},unformat:function(a){var h=o._.stringToNumber(a);return o.options.scalePercentBy100?h*.01:h}})}(),function(){o.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,h,c){var f=Math.floor(a/60/60),u=Math.floor((a-f*60*60)/60),p=Math.round(a-f*60*60-u*60);return f+":"+(u<10?"0"+u:u)+":"+(p<10?"0"+p:p)},unformat:function(a){var h=a.split(":"),c=0;return h.length===3?(c=c+Number(h[0])*60*60,c=c+Number(h[1])*60,c=c+Number(h[2])):h.length===2&&(c=c+Number(h[0])*60,c=c+Number(h[1])),Number(c)}})}(),o})});var yl=oi((ml,xl)=>{"use strict";(function(o,t){typeof ml=="object"&&typeof xl<"u"?xl.exports=t():typeof define=="function"&&define.amd?define(t):(o=o||self).RBush=t()})(ml,function(){"use strict";function o(x,m,E,L,S){(function w(R,O,I,_,A){for(;_>I;){if(_-I>600){var F=_-I+1,P=O-I+1,D=Math.log(F),C=.5*Math.exp(2*D/3),d=.5*Math.sqrt(D*C*(F-C)/F)*(P-F/2<0?-1:1),g=Math.max(I,Math.floor(O-P*C/F+d)),y=Math.min(_,Math.floor(O+(F-P)*C/F+d));w(R,O,g,y,A)}var M=R[O],k=I,T=_;for(t(R,I,O),A(R[_],M)>0&&t(R,I,_);k0;)T--}A(R[I],M)===0?t(R,I,T):t(R,++T,_),T<=O&&(I=T+1),O<=T&&(_=T-1)}})(x,m,E||0,L||x.length-1,S||i)}function t(x,m,E){var L=x[m];x[m]=x[E],x[E]=L}function i(x,m){return xm?1:0}var e=function(x){x===void 0&&(x=9),this._maxEntries=Math.max(4,x),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function s(x,m,E){if(!E)return m.indexOf(x);for(var L=0;L=x.minX&&m.maxY>=x.minY}function b(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(x,m,E,L,S){for(var w=[m,E];w.length;)if(!((E=w.pop())-(m=w.pop())<=L)){var R=m+Math.ceil((E-m)/L/2)*L;o(x,R,m,E,S),w.push(m,R,R,E)}}return e.prototype.all=function(){return this._all(this.data,[])},e.prototype.search=function(x){var m=this.data,E=[];if(!p(x,m))return E;for(var L=this.toBBox,S=[];m;){for(var w=0;w=0&&S[m].children.length>this._maxEntries;)this._split(S,m),m--;this._adjustParentBBoxes(L,S,m)},e.prototype._split=function(x,m){var E=x[m],L=E.children.length,S=this._minEntries;this._chooseSplitAxis(E,S,L);var w=this._chooseSplitIndex(E,S,L),R=b(E.children.splice(w,E.children.length-w));R.height=E.height,R.leaf=E.leaf,r(E,this.toBBox),r(R,this.toBBox),m?x[m-1].children.push(R):this._splitRoot(E,R)},e.prototype._splitRoot=function(x,m){this.data=b([x,m]),this.data.height=x.height+1,this.data.leaf=!1,r(this.data,this.toBBox)},e.prototype._chooseSplitIndex=function(x,m,E){for(var L,S,w,R,O,I,_,A=1/0,F=1/0,P=m;P<=E-m;P++){var D=n(x,0,P,this.toBBox),C=n(x,P,E,this.toBBox),d=(S=D,w=C,R=void 0,O=void 0,I=void 0,_=void 0,R=Math.max(S.minX,w.minX),O=Math.max(S.minY,w.minY),I=Math.min(S.maxX,w.maxX),_=Math.min(S.maxY,w.maxY),Math.max(0,I-R)*Math.max(0,_-O)),g=c(D)+c(C);d=m;A--){var F=x.children[A];l(R,x.leaf?S(F):F),O+=f(R)}return O},e.prototype._adjustParentBBoxes=function(x,m,E){for(var L=E;L>=0;L--)l(m[L],x)},e.prototype._condense=function(x){for(var m=x.length-1,E=void 0;m>=0;m--)x[m].children.length===0?m>0?(E=x[m-1].children).splice(E.indexOf(x[m]),1):this.clear():r(x[m],this.toBBox)},e})});var Uu=oi((ZT,ao)=>{"use strict";(function(o){typeof ao=="object"&&ao.exports?(o.default=o,ao.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/map",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:f}=s;return function(u){let p;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=f(I.colorAxis),I.colorAxis.map(_=>new p(this,_)))}function v(I){let _=this.chart.colorAxis||[],A=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],P,D;for(_.forEach(function(C){(P=C.options)&&P.showInLegend&&(P.dataClasses&&P.visible?F=F.concat(C.getDataClassLegendSymbols()):P.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||P.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(g){A(g)}):A(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function m(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function E(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,A=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][A]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,A=this.options.nullColor,F=this.colorAxis,P=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(P),d=D.options.color||(D.isNull||D.value===null?A:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}u.compose=function(I,_,A,F,P){let D=_.prototype,C=A.prototype,d=P.prototype;D.collectionsWithUpdate.includes("colorAxis")||(p=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(g){let y=g.prototype.createAxis;g.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let T=new p(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),T}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",m),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(P,"afterTranslate",E,{order:1}),l(P,"bindAxes",L))},u.pointSetVisible=S}(r||(r={})),r}),i(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}}),i(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){var r,n;let{parse:l}=e,{merge:a}=s;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,f=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],f.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(f=this.normalizedValue(h),x=E.length;x--&&!(f>E[x][0]););u=E[x]||E[x+1],f=1-((p=E[x+1]||u)[0]-f)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,f)}return b},r}),i(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c){let{defaultOptions:f}=l,{series:u}=h,{defined:p,extend:b,fireEvent:v,isArray:x,isNumber:m,merge:E,pick:L,relativeLength:S}=c;f.colorAxis=E(f.xAxis,r);class w extends e{static compose(O,I,_,A){s.compose(w,O,I,_,A)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},A=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||A?2:1,this.reversed=I.reversed||!A,this.opposite=!A,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=E(f.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:A}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=A=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:A)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(_,A)}),_.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]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,A=I?0:1,F=O?[_,0,A,0]:[0,A,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},A=O.padding,F=O.options,P=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:g}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:g}),_.labelWidth=d+A+(C?D:L(P.x,P.distance)+(this.maxLabelLength||0)),_.labelHeight=g+A+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,A,F,P,D,C=O.length,d,g;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,P=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],A=F.indexOf(_),d=D.yData,A>=0&&d)for(g=0;gD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=P,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(O){let I=this.left,_=O.translatedValue,A=this.top;return m(_)?this.horiz?[["M",_-4,A-6],["L",_+4,A-6],["L",_,A],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,A=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,P=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((g,y)=>(g.push(...y.points.filter(M=>M.dataClass===d)),g),[]);return A.length||I.dataClasses.forEach((d,g)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,T=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,P)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,P)+D),A.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(g))N.setState(z)},setVisible:function(){this.visible=T=I.visible=!T;let z=[];for(let N of C(g))N.setVisible(T),N.hiddenInDataClass=!T,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,T),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),A}getSize(){let{chart:O,horiz:I}=this,{height:_,width:A}=this.options,{legend:F}=O.options;return{width:L(p(A)?S(A,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(p(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),i(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,s){return e.ColorAxis=e.ColorAxis||s,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),i(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}}}),i(t,"Maps/MapPointer.js",[t["Core/Utilities.js"]],function(e){var s;let{defined:r,extend:n,pick:l,wrap:a}=e;return function(h){let c,f=0;function u(x){let m=this.chart;x=this.normalize(x),m.options.mapNavigation.enableDoubleClickZoomTo?m.pointer.inClass(x.target,"highcharts-tracker")&&m.hoverPoint&&m.hoverPoint.zoomTo():m.isInsidePlot(x.chartX-m.plotLeft,x.chartY-m.plotTop)&&m.mapZoom(.5,void 0,void 0,x.chartX,x.chartY)}function p(x){let m=this.chart,E=r((x=this.normalize(x)).wheelDelta)&&-x.wheelDelta/120||x.deltaY||x.detail;Math.abs(E)>=1&&(f+=Math.abs(E),c&&clearTimeout(c),c=setTimeout(()=>{f=0},50)),f<10&&m.isInsidePlot(x.chartX-m.plotLeft,x.chartY-m.plotTop)&&m.mapView&&m.mapView.zoomBy(-((m.options.mapNavigation.mouseWheelSensitivity-1)*E),void 0,[x.chartX,x.chartY],!(1>Math.abs(E))&&void 0)}function b(x,m,E){let L=this.chart;if(m=x.call(this,m,E),L&&L.mapView){let S=L.mapView.pixelsToLonLat({x:m.chartX-L.plotLeft,y:m.chartY-L.plotTop});S&&n(m,S)}return m}function v(x){let m=this.chart.options.mapNavigation;m&&l(m.enableTouchZoom,m.enabled)&&(this.chart.zooming.pinchType="xy"),x.apply(this,[].slice.call(arguments,1))}h.compose=function(x){let m=x.prototype;m.onContainerDblClick||(n(m,{onContainerDblClick:u,onContainerMouseWheel:p}),a(m,"normalize",b),a(m,"zoomOption",v))}}(s||(s={})),s}),i(t,"Maps/MapSymbols.js",[],function(){let e;function s(n,l,a,h,c){if(c){let f=c?.r||0;c.brBoxY=l-f,c.brBoxHeight=h+f}return e.roundedRect(n,l,a,h,c)}function r(n,l,a,h,c){if(c){let f=c?.r||0;c.brBoxHeight=h+f}return e.roundedRect(n,l,a,h,c)}return{compose:function(n){(e=n.prototype.symbols).bottombutton=s,e.topbutton=r}}}),i(t,"Maps/MapNavigation.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Maps/MapNavigationDefaults.js"],t["Maps/MapPointer.js"],t["Maps/MapSymbols.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{setOptions:h}=e,{composed:c}=s,{addEvent:f,extend:u,merge:p,objectEach:b,pick:v,pushUnique:x}=a;function m(L){L&&(L.preventDefault&&L.preventDefault(),L.stopPropagation&&L.stopPropagation(),L.cancelBubble=!0)}class E{static compose(S,w,R){n.compose(w),l.compose(R),x(c,"Map.Navigation")&&(f(S,"beforeRender",function(){this.mapNavigation=new E(this),this.mapNavigation.update()}),h(r))}constructor(S){this.chart=S,this.navButtons=[]}update(S){let w=this,R=w.chart,O=w.navButtons,I=function(A){this.handler.call(R,A),m(A)},_=R.options.mapNavigation;for(S&&(_=R.options.mapNavigation=p(R.options.mapNavigation,S));O.length;)O.pop().destroy();if(!R.renderer.forExport&&v(_.enableButtons,_.enabled)){w.navButtonsGroup||(w.navButtonsGroup=R.renderer.g().attr({zIndex:7}).add()),b(_.buttons,(F,P)=>{let D={padding:(F=p(_.buttonOptions,F)).padding};!R.styledMode&&F.theme&&(u(D,F.theme),D.style=p(F.theme.style,F.style));let{text:C,width:d=0,height:g=0,padding:y=0}=F,M=R.renderer.button(C!=="+"&&C!=="-"&&C||"",0,0,I,D,void 0,void 0,void 0,P==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[P]).attr({width:d,height:g,title:R.options.lang[P],zIndex:5}).add(w.navButtonsGroup);if(C==="+"||C==="-"){let k=d+1,T=[["M",y+3,y+g/2],["L",y+k-3,y+g/2]];C==="+"&&T.push(["M",y+k/2,y+3],["L",y+k/2,y+g-3]),R.renderer.path(T).addClass("highcharts-button-symbol").attr(R.styledMode?{}:{stroke:F.style?.color,"stroke-width":3,"stroke-linecap":"round"}).add(M)}if(M.handler=F.onclick,f(M.element,"dblclick",m),O.push(M),u(F,{width:M.width,height:2*(M.height||0)}),R.hasLoaded)M.align(F,!1,F.alignTo);else{let k=f(R,"load",()=>{M.element&&M.align(F,!1,F.alignTo),k()})}});let A=(F,P)=>!(P.x>=F.x+F.width||P.x+P.width<=F.x||P.y>=F.y+F.height||P.y+P.height<=F.y);R.hasLoaded||f(R,"render",function(){let F=R.exportingGroup&&R.exportingGroup.getBBox();if(F){let P=w.navButtonsGroup.getBBox();if(A(F,P)){let D=-P.y-P.height+F.y-5,C=F.y+F.height-P.y+5,d=_.buttonOptions&&_.buttonOptions.verticalAlign;w.navButtonsGroup.attr({translateY:d==="bottom"?D:C})}}})}this.updateEvents(_)}updateEvents(S){let w=this.chart;v(S.enableDoubleClickZoom,S.enabled)||S.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||f(w.container,"dblclick",function(R){w.pointer.onContainerDblClick(R)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),v(S.enableMouseWheelZoom,S.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||f(w.container,"wheel",function(R){return w.pointer.inClass(R.target,"highcharts-no-mousewheel")||(w.pointer.onContainerMouseWheel(R),m(R)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())}}return E}),i(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,s,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function f(u){let p=this.series,b=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),u?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):p.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:l.pointAttribs},c.compose=function(u){return a(u.prototype.pointClass,"afterSetState",f),u}}(n||(n={})),n}),i(t,"Core/Chart/MapChart.js",[t["Core/Chart/Chart.js"],t["Core/Defaults.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,s,r,n){var l;let{getOptions:a}=s,{isNumber:h,merge:c,pick:f}=n;class u extends e{init(b,v){let x=a().credits,m=c({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:f(x.mapText,' \xA9 {geojson.copyrightShort}'),mapTextFull:f(x.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},b);super.init(m,v)}mapZoom(b,v,x,m,E){this.mapView&&(h(b)&&(b=Math.log(b)/Math.log(.5)),this.mapView.zoomBy(b,h(v)&&h(x)?this.mapView.projection.inverse([v,x]):void 0,h(m)&&h(E)?[m,E]:void 0))}update(b){b.chart&&"map"in b.chart&&this.mapView?.recommendMapView(this,[b.chart.map,...(this.options.series||[]).map(v=>v.mapData)],!0),super.update.apply(this,arguments)}}return(l=u||(u={})).maps={},l.mapChart=function(p,b,v){return new l(p,b,v)},l.splitPath=function(p){let b;return b=typeof p=="string"?(p=p.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(v=>/[A-Za-z]/.test(v)?v:parseFloat(v)):p,r.prototype.pathToSegments(b)},u}),i(t,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(e){let s=-Number.MAX_VALUE,r=Number.MAX_VALUE,n=-Number.MAX_VALUE,l=Number.MAX_VALUE,a;if(e.forEach(h=>{let c=h[h.length-2],f=h[h.length-1];typeof c=="number"&&typeof f=="number"&&(r=Math.min(r,c),s=Math.max(s,c),l=Math.min(l,f),n=Math.max(n,f),a=!0)}),a)return{x1:r,y1:l,x2:s,y2:n}},pointInPolygon:function({x:e,y:s},r){let n,l,a=!1;for(n=0,l=r.length-1;ns!=r[l][1]>s&&e<(r[l][0]-r[n][0])*(s-r[n][1])/(r[l][1]-r[n][1])+r[n][0]&&(a=!a);return a}}}),i(t,"Series/Map/MapPoint.js",[t["Series/ColorMapComposition.js"],t["Maps/MapUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{boundsFromPath:l}=s,a=r.seriesTypes.scatter.prototype.pointClass,{extend:h,isNumber:c,pick:f}=n;class u extends a{static getProjectedPath(b,v){return b.projectedPath||(v&&b.geometry?(v.hasCoordinates=!0,b.projectedPath=v.path(b.geometry)):b.projectedPath=b.path),b.projectedPath||[]}applyOptions(b,v){let x=this.series,m=super.applyOptions(b,v),E=x.joinBy;if(x.mapData&&x.mapMap){let L=E[1],S=super.getNestedProperty(L),w=S!==void 0&&x.mapMap[S];w?h(m,ns(Se({},w),{name:m.name??w.name})):x.pointArrayMap.indexOf("value")!==-1&&(m.value=m.value||null)}return m}getProjectedBounds(b){let v=l(u.getProjectedPath(this,b)),x=this.properties,m=this.series.chart.mapView;if(v){let E=x&&x["hc-middle-lon"],L=x&&x["hc-middle-lat"];if(m&&c(E)&&c(L)){let S=b.forward([E,L]);v.midX=S[0],v.midY=S[1]}else{let S=x&&x["hc-middle-x"],w=x&&x["hc-middle-y"];v.midX=v.x1+(v.x2-v.x1)*f(this.middleX,c(S)?S:.5);let R=f(this.middleY,c(w)?w:.5);this.geometry||(R=1-R),v.midY=v.y2-(v.y2-v.y1)*R}return v}}onMouseOver(b){n.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?super.onMouseOver.call(this,b):this.series.onMouseOut()}setVisible(b){this.visible=this.options.visible=!!b,this.dataLabel&&this.dataLabel[b?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))}zoomTo(b){let v=this.series.chart,x=v.mapView,m=this.bounds;if(x&&m){let E=c(this.insetIndex)&&x.insets[this.insetIndex];if(E){let L=E.projectedUnitsToPixels({x:m.x1,y:m.y1}),S=E.projectedUnitsToPixels({x:m.x2,y:m.y2}),w=x.pixelsToProjectedUnits({x:L.x,y:L.y}),R=x.pixelsToProjectedUnits({x:S.x,y:S.y});m={x1:w.x,y1:w.y,x2:R.x,y2:R.y}}x.fitToBounds(m,void 0,!1),this.series.isDirty=!0,v.redraw(b)}}}return h(u.prototype,{dataLabelOnNull:e.pointMembers.dataLabelOnNull,moveToTopOnHover:e.pointMembers.moveToTopOnHover,isValid:e.pointMembers.isValid}),u}),i(t,"Series/Map/MapSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:s}=e;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return s(n)?r(n,-1):this.point.name},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),i(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"}}}),i(t,"Maps/GeoJSONComposition.js",[t["Core/Globals.js"],t["Core/Templating.js"],t["Core/Utilities.js"]],function(e,s,r){var n;let{win:l}=e,{format:a}=s,{error:h,extend:c,merge:f,wrap:u}=r;return function(p){function b(S){return this.mapView&&this.mapView.lonLatToProjectedUnits(S)}function v(S){return this.mapView&&this.mapView.projectedUnitsToLonLat(S)}function x(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:A=1,xoffset:F=0,xpan:P=0,yoffset:D=0,ypan:C=0}=w,d=R(w.crs,[S.lon,S.lat]),g=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=w.rotation?[d[0]*g+d[1]*y,-d[0]*y+d[1]*g]:d;return{x:((M[0]-F)*A+P)*_+O,y:-(((D-M[1])*A+C)*_-I)}}function m(S,w){let R=this.options.chart.proj4||l.proj4;if(!R){h(21,!1,this);return}if(S.y===null)return;let{jsonmarginX:O=0,jsonmarginY:I=0,jsonres:_=1,scale:A=1,xoffset:F=0,xpan:P=0,yoffset:D=0,ypan:C=0}=w,d={x:((S.x-O)/_-P)/A+F,y:((S.y-I)/_+C)/A+D},g=w.cosAngle||w.rotation&&Math.cos(w.rotation),y=w.sinAngle||w.rotation&&Math.sin(w.rotation),M=R(w.crs,"WGS84",w.rotation?{x:d.x*g+-(d.y*y),y:d.x*y+d.y*g}:d);return{lat:M.y,lon:M.x}}function E(S,w){w||(w=Object.keys(S.objects)[0]);let R=S.objects[w];if(R["hc-decoded-geojson"]&&R["hc-decoded-geojson"].title===S.title)return R["hc-decoded-geojson"];let O=S.arcs;if(S.transform){let P,D,C,d=S.arcs,{scale:g,translate:y}=S.transform;O=[];for(let M=0,k=d.length;Mtypeof P[0]=="number"?P.reduce((D,C,d)=>{let g=C<0?O[~C]:O[C];return C<0?(g=g.slice(0,d===0?g.length:g.length-1)).reverse():d&&(g=g.slice(1)),D.concat(g)},[]):P.map(I),_=R.geometries,A=[];for(let P=0,D=_.length;P(l[1]-n[1])*(a[0]-n[0])}function r(n,l,a,h){let c=[n[0]-l[0],n[1]-l[1]],f=[a[0]-h[0],a[1]-h[1]],u=n[0]*l[1]-n[1]*l[0],p=a[0]*h[1]-a[1]*h[0],b=1/(c[0]*f[1]-c[1]*f[0]),v=[(u*f[0]-p*c[0])*b,(u*f[1]-p*c[1])*b];return v.isIntersection=!0,v}return{clipLineString:function(n,l){let a=[],h=e(n,l,!1);for(let c=1;cl===0?0:l>0?1:-1),s=Math.PI/180,r=Math.PI/2,n=l=>Math.tan((r+l)/2);return class{constructor(l){let a=(l.parallels||[]).map(p=>p*s),h=a[0]||0,c=a[1]??h,f=Math.cos(h);typeof l.projectedBounds=="object"&&(this.projectedBounds=l.projectedBounds);let u=h===c?Math.sin(h):Math.log(f/Math.cos(c))/Math.log(n(c)/n(h));1e-10>Math.abs(u)&&(u=1e-10*(e(u)||1)),this.n=u,this.c=f*Math.pow(n(h),u)/u}forward(l){let{c:a,n:h,projectedBounds:c}=this,f=l[0]*s,u=l[1]*s;a>0?u<-r+1e-6&&(u=-r+1e-6):u>r-1e-6&&(u=r-1e-6);let p=a/Math.pow(n(u),h),b=p*Math.sin(h*f)*63.78137,v=(a-p*Math.cos(h*f))*63.78137,x=[b,v];return c&&(bc.x2||vc.y2)&&(x.outside=!0),x}inverse(l){let{c:a,n:h}=this,c=l[0]/63.78137,f=a-l[1]/63.78137,u=e(h)*Math.sqrt(c*c+f*f),p=Math.atan2(c,Math.abs(f))*e(f);return f*h<0&&(p-=Math.PI*e(c)*e(f)),[p/h/s,(2*Math.atan(Math.pow(a/u,1/h))-r)/s]}}}),i(t,"Maps/Projections/EqualEarth.js",[],function(){let e=Math.sqrt(3)/2;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}forward(s){let r=Math.PI/180,n=Math.asin(e*Math.sin(s[1]*r)),l=n*n,a=l*l*l;return[s[0]*r*Math.cos(n)*74.03120656864502/(e*(1.340264+-.24331799999999998*l+a*(.0062510000000000005+.034164*l))),74.03120656864502*n*(1.340264+-.081106*l+a*(893e-6+.003796*l))]}inverse(s){let r=s[0]/74.03120656864502,n=s[1]/74.03120656864502,l=180/Math.PI,a=n,h,c,f,u;for(let v=0;v<12&&(c=(h=a*a)*h*h,f=a*(1.340264+-.081106*h+c*(893e-6+.003796*h))-n,a-=u=f/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(u)));++v);c=(h=a*a)*h*h;let p=l*e*r*(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h))/Math.cos(a),b=l*Math.asin(Math.sin(a)/e);return Math.abs(p)>180?[NaN,NaN]:[p,b]}}}),i(t,"Maps/Projections/Miller.js",[],function(){let e=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(e+.4*r[1]*s))]}inverse(r){return[r[0]/63.78137/s,2.5*(Math.atan(Math.exp(r[1]/63.78137*.8))-e)/s]}}}),i(t,"Maps/Projections/Orthographic.js",[],function(){let e=Math.PI/180;return class{constructor(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}forward(s){let r=s[0],n=s[1]*e,l=[Math.cos(n)*Math.sin(r*e)*63.78460826781007,63.78460826781007*Math.sin(n)];return(r<-90||r>90)&&(l.outside=!0),l}inverse(s){let r=s[0]/63.78460826781007,n=s[1]/63.78460826781007,l=Math.sqrt(r*r+n*n),a=Math.asin(l),h=Math.sin(a);return[Math.atan2(r*h,l*Math.cos(a))/e,Math.asin(l&&n*h/l)/e]}}}),i(t,"Maps/Projections/WebMercator.js",[],function(){let e=Math.PI/180;return class{constructor(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}forward(s){let r=Math.sin(s[1]*e),n=[63.78137*s[0]*e,63.78137*Math.log((1+r)/(1-r))/2];return Math.abs(s[1])>this.maxLatitude&&(n.outside=!0),n}inverse(s){return[s[0]/(63.78137*e),(2*Math.atan(Math.exp(s[1]/63.78137))-Math.PI/2)/e]}}}),i(t,"Maps/Projections/ProjectionRegistry.js",[t["Maps/Projections/LambertConformalConic.js"],t["Maps/Projections/EqualEarth.js"],t["Maps/Projections/Miller.js"],t["Maps/Projections/Orthographic.js"],t["Maps/Projections/WebMercator.js"]],function(e,s,r,n,l){return{EqualEarth:s,LambertConformalConic:e,Miller:r,Orthographic:n,WebMercator:l}}),i(t,"Maps/Projection.js",[t["Core/Geometry/PolygonClip.js"],t["Maps/Projections/ProjectionRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{clipLineString:n,clipPolygon:l}=e,{clamp:a,erase:h}=r,c=2*Math.PI/360,f=v=>(v<-180&&(v+=360),v>180&&(v-=360),v),u=v=>(1-Math.cos(v))/2,p=(v,x)=>{let m=Math.cos,E=v[1]*c,L=v[0]*c,S=x[1]*c,w=x[0]*c;return u(S-E)+m(E)*m(S)*u(w-L)};class b{static add(x,m){b.registry[x]=m}static distance(x,m){let{atan2:E,sqrt:L}=Math,S=p(x,m);return 2*E(L(S),L(1-S))*6371e3}static geodesic(x,m,E,L=5e5){let{atan2:S,cos:w,sin:R,sqrt:O}=Math,I=b.distance,_=x[1]*c,A=x[0]*c,F=m[1]*c,P=m[0]*c,D=w(_)*w(A),C=w(F)*w(P),d=w(_)*R(A),g=w(F)*R(P),y=R(_),M=R(F),k=I(x,m),T=k/6371e3,z=R(T),N=Math.round(k/L),G=[];if(E&&G.push(x),N>1){let X=1/N;for(let j=X;j<.999;j+=X){let B=R((1-j)*T)/z,W=R(j*T)/z,V=B*D+W*C,U=B*d+W*g,q=S(B*y+W*M,O(V*V+U*U)),H=S(U,V);G.push([H/c,q/c])}}return E&&G.push(m),G}static insertGeodesics(x){let m=x.length-1;for(;m--;)if(Math.max(Math.abs(x[m][0]-x[m+1][0]),Math.abs(x[m][1]-x[m+1][1]))>10){let E=b.geodesic(x[m],x[m+1]);E.length&&x.splice(m+1,0,...E)}}static toString(x){let{name:m,rotation:E}=x||{};return[m,E&&E.join(",")].join(";")}constructor(x={}){this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=x;let{name:m,projectedBounds:E,rotation:L}=x;this.rotator=L?this.getRotator(L):void 0;let S=m?b.registry[m]:void 0;S&&(this.def=new S(x));let{def:w,rotator:R}=this;w&&(this.maxLatitude=w.maxLatitude||90,this.hasGeoProjection=!0),R&&w?(this.forward=O=>w.forward(R.forward(O)),this.inverse=O=>R.inverse(w.inverse(O))):w?(this.forward=O=>w.forward(O),this.inverse=O=>w.inverse(O)):R&&(this.forward=R.forward,this.inverse=R.inverse),this.bounds=E==="world"?w&&w.bounds:E}lineIntersectsBounds(x){let{x1:m,x2:E,y1:L,y2:S}=this.bounds||{},w=(I,_,A)=>{let[F,P]=I,D=_?0:1;if(typeof A=="number"&&F[_]>=A!=P[_]>=A){let C=(A-F[_])/(P[_]-F[_]),d=F[D]+C*(P[D]-F[D]);return _?[d,A]:[A,d]}},R,O=x[0];return((R=w(x,0,m))||(R=w(x,0,E)))&&(O=R,x[1]=R),((R=w(x,1,L))||(R=w(x,1,S)))&&(O=R),O}getRotator(x){let m=x[0]*c,E=(x[1]||0)*c,L=(x[2]||0)*c,S=Math.cos(E),w=Math.sin(E),R=Math.cos(L),O=Math.sin(L);if(m!==0||E!==0||L!==0)return{forward:I=>{let _=I[0]*c+m,A=I[1]*c,F=Math.cos(A),P=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(A),d=C*S+P*w;return[Math.atan2(D*R-d*O,P*S-C*w)/c,Math.asin(d*R+D*O)/c]},inverse:I=>{let _=I[0]*c,A=I[1]*c,F=Math.cos(A),P=Math.cos(_)*F,D=Math.sin(_)*F,C=Math.sin(A),d=C*R-D*O;return[(Math.atan2(D*R+C*O,P*S+d*w)-m)/c,Math.asin(d*S-P*w)/c]}}}forward(x){return x}inverse(x){return x}cutOnAntimeridian(x,m){let E,L=[],S=[x];for(let w=0,R=x.length;w90)&&(A<-90||A>90)&&_>0!=A>0){let F=a((180-(_+360)%360)/((A+360)%360-(_+360)%360),0,1),P=I[1]+F*(O[1]-I[1]);L.push({i:w,lat:P,direction:_<0?1:-1,previousLonLat:I,lonLat:O})}}if(L.length)if(m){L.length%2==1&&(E=L.slice().sort((R,O)=>Math.abs(O.lat)-Math.abs(R.lat))[0],h(L,E));let w=L.length-2;for(;w>=0;){let R=L[w].i,O=f(180+1e-6*L[w].direction),I=f(180-1e-6*L[w].direction),_=x.splice(R,L[w+1].i-R,...b.geodesic([O,L[w].lat],[O,L[w+1].lat],!0));_.push(...b.geodesic([I,L[w+1].lat],[I,L[w].lat],!0)),S.push(_),w-=2}if(E)for(let R=0;R-1){let F=(I<0?-1:1)*this.maxLatitude,P=f(180+1e-6*O),D=f(180-1e-6*O),C=b.geodesic([P,I],[P,F],!0);for(let d=P+120*O;d>-180&&d<180;d+=120*O)C.push([d,F]);C.push(...b.geodesic([D,F],[D,E.lat],!0)),_.splice(A,0,...C);break}}}else{let w=L.length;for(;w--;){let R=L[w].i,O=x.splice(R,x.length,[f(180+1e-6*L[w].direction),L[w].lat]);O.unshift([f(180-1e-6*L[w].direction),L[w].lat]),S.push(O)}}return S}path(x){let m,{bounds:E,def:L,rotator:S}=this,w=[],R=x.type==="Polygon"||x.type==="MultiPolygon",O=this.hasGeoProjection,I=!L||L.antimeridianCutting!==!1,_=I?S:void 0,A=I&&L||this;E&&(m=[[E.x1,E.y1],[E.x2,E.y1],[E.x2,E.y2],[E.x1,E.y2]]);let F=P=>{let D=P.map(d=>{if(I){_&&(d=_.forward(d));let g=d[0];1e-6>Math.abs(g-180)&&(g=g<180?179.999999:180.000001),d=[g,d[1]]}return d}),C=[D];O&&(b.insertGeodesics(D),I&&(C=this.cutOnAntimeridian(D,R))),C.forEach(d=>{let g,y;if(d.length<2)return;let M=!1,k=!1,T=X=>{M?w.push(["L",X[0],X[1]]):(w.push(["M",X[0],X[1]]),M=!0)},z=!1,N=!1,G=d.map(X=>{let j=A.forward(X);return j.outside?z=!0:N=!0,j[1]===1/0?j[1]=1e10:j[1]===-1/0&&(j[1]=-1e10),j});if(I){if(R&&G.push(G[0]),z){if(!N)return;if(m){if(R)G=l(G,m);else if(E){n(G,m).forEach(X=>{M=!1,X.forEach(T)});return}}}G.forEach(T)}else for(let X=0;XT(A.forward(W))):M=!1),T(B),y=j,k=!1)}})};return x.type==="LineString"?F(x.coordinates):x.type==="MultiLineString"?x.coordinates.forEach(P=>F(P)):x.type==="Polygon"?(x.coordinates.forEach(P=>F(P)),w.length&&w.push(["Z"])):x.type==="MultiPolygon"&&(x.coordinates.forEach(P=>{P.forEach(D=>F(D))}),w.length&&w.push(["Z"])),w}}return b.registry=s,b}),i(t,"Maps/MapView.js",[t["Core/Globals.js"],t["Maps/MapViewDefaults.js"],t["Maps/GeoJSONComposition.js"],t["Maps/MapUtilities.js"],t["Maps/Projection.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{composed:h}=e,{topo2geo:c}=r,{boundsFromPath:f,pointInPolygon:u}=n,{addEvent:p,clamp:b,crisp:v,fireEvent:x,isArray:m,isNumber:E,isObject:L,isString:S,merge:w,pick:R,pushUnique:O,relativeLength:I}=a,_={};function A(C,d){let{width:g,height:y}=d;return Math.log(400.979322/Math.max((C.x2-C.x1)/(g/256),(C.y2-C.y1)/(y/256)))/Math.log(2)}function F(C){C.seriesOptions.mapData&&this.mapView?.recommendMapView(this,[this.options.chart.map,C.seriesOptions.mapData],this.options.drilldown?.mapZooming)}class P{static compose(d){O(h,"MapView")&&(_=d.maps,p(d,"afterInit",function(){this.mapView=new P(this,this.options.mapView)},{order:0}),p(d,"addSeriesAsDrilldown",F),p(d,"afterDrillUp",F))}static compositeBounds(d){if(d.length)return d.slice(1).reduce((g,y)=>(g.x1=Math.min(g.x1,y.x1),g.y1=Math.min(g.y1,y.y1),g.x2=Math.max(g.x2,y.x2),g.y2=Math.max(g.y2,y.y2),g),w(d[0]))}static mergeInsets(d,g){let y=k=>{let T={};return k.forEach((z,N)=>{T[z&&z.id||`i${N}`]=z}),T},M=w(y(d),y(g));return Object.keys(M).map(k=>M[k])}constructor(d,g){this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof D||this.recommendMapView(d,[d.options.chart.map,...(d.options.series||[]).map(T=>T.mapData)]),this.userOptions=g||{};let y=w(s,this.recommendedMapView,g),M=this.recommendedMapView?.insets,k=g&&g.insets;M&&k&&(y.insets=P.mergeInsets(M,k)),this.chart=d,this.center=y.center,this.options=y,this.projection=new l(y.projection),this.playingField=d.plotBox,this.zoom=y.zoom||0,this.minZoom=y.minZoom,this.createInsets(),this.eventsToUnbind.push(p(d,"afterSetChartSize",()=>{this.playingField=this.getField(),(this.minZoom===void 0||this.minZoom===this.zoom)&&(this.fitToBounds(void 0,void 0,!1),!this.chart.hasRendered&&E(this.userOptions.zoom)&&(this.zoom=this.userOptions.zoom),this.userOptions.center&&w(!0,this.center,this.userOptions.center))})),this.setUpEvents()}createInsets(){let d=this.options,g=d.insets;g&&g.forEach(y=>{let M=new D(this,w(d.insetOptions,y));this.insets.push(M)})}fitToBounds(d,g,y=!0,M){let k=d||this.getProjectedBounds();if(k){let T=R(g,d?0:this.options.padding),z=this.getField(!1),N=m(T)?T:[T,T,T,T];this.padding=[I(N[0],z.height),I(N[1],z.width),I(N[2],z.height),I(N[3],z.width)],this.playingField=this.getField();let G=A(k,this.playingField);d||(this.minZoom=G);let X=this.projection.inverse([(k.x2+k.x1)/2,(k.y2+k.y1)/2]);this.setView(X,G,y,M)}}getField(d=!0){let g=d?this.padding:[0,0,0,0];return{x:g[3],y:g[0],width:this.chart.plotWidth-g[1]-g[3],height:this.chart.plotHeight-g[0]-g[2]}}getGeoMap(d){if(S(d))return _[d]&&_[d].type==="Topology"?c(_[d]):_[d];if(L(d,!0)){if(d.type==="FeatureCollection")return d;if(d.type==="Topology")return c(d)}}getMapBBox(){let d=this.getProjectedBounds(),g=this.getScale();if(d){let y=this.padding,M=this.projectedUnitsToPixels({x:d.x1,y:d.y2});return{width:(d.x2-d.x1)*g+y[1]+y[3],height:(d.y2-d.y1)*g+y[0]+y[2],x:M.x-y[3],y:M.y-y[0]}}}getProjectedBounds(){let d=this.projection,g=this.chart.series.reduce((M,k)=>{let T=k.getProjectedBounds&&k.getProjectedBounds();return T&&k.options.affectsMapView!==!1&&M.push(T),M},[]),y=this.options.fitToGeometry;if(y){if(!this.fitToGeometryCache)if(y.type==="MultiPoint"){let M=y.coordinates.map(z=>d.forward(z)),k=M.map(z=>z[0]),T=M.map(z=>z[1]);this.fitToGeometryCache={x1:Math.min.apply(0,k),x2:Math.max.apply(0,k),y1:Math.min.apply(0,T),y2:Math.max.apply(0,T)}}else this.fitToGeometryCache=f(d.path(y));return this.fitToGeometryCache}return this.projection.bounds||P.compositeBounds(g)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:d,y:g,width:y,height:M}=this.playingField,k=this.projection.forward(this.center),T=this.projection.hasCoordinates?-1:1,z=this.getScale(),N=z*T,G=d+y/2-k[0]*z,X=g+M/2-k[1]*N;return{scaleX:z,scaleY:N,translateX:G,translateY:X}}lonLatToPixels(d){let g=this.lonLatToProjectedUnits(d);if(g)return this.projectedUnitsToPixels(g)}lonLatToProjectedUnits(d){let g=this.chart,y=g.mapTransforms;if(y){for(let k in y)if(Object.hasOwnProperty.call(y,k)&&y[k].hitZone){let T=g.transformFromLatLon(d,y[k]);if(T&&u(T,y[k].hitZone.coordinates[0]))return T}return g.transformFromLatLon(d,y.default)}for(let k of this.insets)if(k.options.geoBounds&&u({x:d.lon,y:d.lat},k.options.geoBounds.coordinates[0])){let T=k.projection.forward([d.lon,d.lat]),z=k.projectedUnitsToPixels({x:T[0],y:T[1]});return this.pixelsToProjectedUnits(z)}let M=this.projection.forward([d.lon,d.lat]);if(!M.outside)return{x:M[0],y:M[1]}}projectedUnitsToLonLat(d){let g=this.chart,y=g.mapTransforms;if(y){for(let T in y)if(Object.hasOwnProperty.call(y,T)&&y[T].hitZone&&u(d,y[T].hitZone.coordinates[0]))return g.transformToLatLon(d,y[T]);return g.transformToLatLon(d,y.default)}let M=this.projectedUnitsToPixels(d);for(let T of this.insets)if(T.hitZone&&u(M,T.hitZone.coordinates[0])){let z=T.pixelsToProjectedUnits(M),N=T.projection.inverse([z.x,z.y]);return{lon:N[0],lat:N[1]}}let k=this.projection.inverse([d.x,d.y]);return{lon:k[0],lat:k[1]}}recommendMapView(d,g,y=!1){this.recommendedMapView={};let M=g.map(z=>this.getGeoMap(z)),k=[];M.forEach(z=>{if(z&&(Object.keys(this.recommendedMapView).length||(this.recommendedMapView=z["hc-recommended-mapview"]||{}),z.bbox)){let[N,G,X,j]=z.bbox;k.push({x1:N,y1:G,x2:X,y2:j})}});let T=k.length&&P.compositeBounds(k);x(this,"onRecommendMapView",{geoBounds:T,chart:d},function(){if(T&&this.recommendedMapView){if(!this.recommendedMapView.projection){let{x1:z,y1:N,x2:G,y2:X}=T;this.recommendedMapView.projection=G-z>180&&X-N>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[N,X],rotation:[-(z+G)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=M[0],y&&d.hasRendered&&!d.userOptions.mapView?.projection&&this.recommendedMapView&&this.update(this.recommendedMapView)}redraw(d){this.chart.series.forEach(g=>{g.useMapGeometry&&(g.isDirty=!0)}),this.chart.redraw(d)}setView(d,g,y=!0,M){d&&(this.center=d),typeof g=="number"&&(typeof this.minZoom=="number"&&(g=Math.max(g,this.minZoom)),typeof this.options.maxZoom=="number"&&(g=Math.min(g,this.options.maxZoom)),E(g)&&(this.zoom=g));let k=this.getProjectedBounds();if(k){let T=this.projection.forward(this.center),{x:z,y:N,width:G,height:X}=this.playingField,j=this.getScale(),B=this.projectedUnitsToPixels({x:k.x1,y:k.y1}),W=this.projectedUnitsToPixels({x:k.x2,y:k.y2}),V=[(k.x1+k.x2)/2,(k.y1+k.y2)/2];if(!this.chart.series.some(U=>U.isDrilling)){let U=B.x,q=W.y,H=W.x,Y=B.y;H-Uz+G&&U>z&&(T[0]+=Math.min(H-G-z,U-z)/j),Y-qN+X&&q>N&&(T[1]-=Math.min(Y-X-N,q-N)/j),this.center=this.projection.inverse(T)}this.insets.forEach(U=>{U.options.field&&(U.hitZone=U.getHitZone(),U.playingField=U.getField())}),this.render()}x(this,"afterSetView"),y&&this.redraw(M)}projectedUnitsToPixels(d){let g=this.getScale(),y=this.projection.forward(this.center),M=this.playingField,k=M.x+M.width/2,T=M.y+M.height/2;return{x:k-g*(y[0]-d.x),y:T+g*(y[1]-d.y)}}pixelsToLonLat(d){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(d))}pixelsToProjectedUnits(d){let{x:g,y}=d,M=this.getScale(),k=this.projection.forward(this.center),T=this.playingField,z=T.x+T.width/2,N=T.y+T.height/2;return{x:k[0]+(g-z)/M,y:k[1]-(y-N)/M}}setUpEvents(){let d,g,y,{chart:M}=this,k=T=>{let{lastTouches:z,pinchDown:N}=M.pointer,G=this.projection,X=T.touches,{mouseDownX:j,mouseDownY:B}=M,W=0;if(N?.length===1?(j=N[0].chartX,B=N[0].chartY):N?.length===2&&(j=(N[0].chartX+N[1].chartX)/2,B=(N[0].chartY+N[1].chartY)/2),X?.length===2&&z&&(W=Math.log(Math.sqrt(Math.pow(z[0].chartX-z[1].chartX,2)+Math.pow(z[0].chartY-z[1].chartY,2))/Math.sqrt(Math.pow(X[0].chartX-X[1].chartX,2)+Math.pow(X[0].chartY-X[1].chartY,2)))/Math.log(.5)),E(j)&&E(B)){let V=`${j},${B}`,{chartX:U,chartY:q}=T.originalEvent;X?.length===2&&(U=(X[0].chartX+X[1].chartX)/2,q=(X[0].chartY+X[1].chartY)/2),V!==g&&(g=V,d=this.projection.forward(this.center),y=(this.projection.options.rotation||[0,0]).slice());let H=G.def&&G.def.bounds,Y=H&&A(H,this.playingField)||-1/0;if(G.options.name==="Orthographic"&&2>(X?.length||0)&&(this.minZoom||1/0)<1.3*Y){let Z=440/(this.getScale()*Math.min(M.plotWidth,M.plotHeight));if(y){let K=(j-U)*Z-y[0],J=b(-y[1]-(B-q)*Z,-80,80),tt=this.zoom;this.update({projection:{rotation:[-K,-J]}},!1),this.fitToBounds(void 0,void 0,!1),this.zoom=tt,M.redraw(!1)}}else if(E(U)&&E(q)){let Z=this.getScale(),K=this.projection.hasCoordinates?1:-1,J=this.projection.inverse([d[0]+(j-U)/Z,d[1]-(B-q)/Z*K]);isNaN(J[0]+J[1])||this.zoomBy(W,J,void 0,!1)}T.preventDefault()}};p(M,"pan",k),p(M,"touchpan",k),p(M,"selection",T=>{if(T.resetSelection)this.zoomBy();else{let z=T.x-M.plotLeft,N=T.y-M.plotTop,{y:G,x:X}=this.pixelsToProjectedUnits({x:z,y:N}),{y:j,x:B}=this.pixelsToProjectedUnits({x:z+T.width,y:N+T.height});this.fitToBounds({x1:X,y1:G,x2:B,y2:j},void 0,!0,!T.originalEvent.touches&&void 0),/^touch/.test(T.originalEvent.type)||M.showResetZoom(),T.preventDefault()}})}render(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())}update(d,g=!0,y){let M=d.projection,k=M&&l.toString(M)!==l.toString(this.options.projection),T=!1;w(!0,this.userOptions,d),w(!0,this.options,d),"insets"in d&&(this.insets.forEach(z=>z.destroy()),this.insets.length=0,T=!0),(k||"fitToGeometry"in d)&&delete this.fitToGeometryCache,(k||T)&&(this.chart.series.forEach(z=>{let N=z.transformGroups;if(z.clearBounds&&z.clearBounds(),z.isDirty=!0,z.isDirtyData=!0,T&&N)for(;N.length>1;){let G=N.pop();G&&G.destroy()}}),k&&(this.projection=new l(this.options.projection)),T&&this.createInsets(),!d.center&&Object.hasOwnProperty.call(d,"zoom")&&!E(d.zoom)&&this.fitToBounds(void 0,void 0,!1)),d.center||E(d.zoom)?this.setView(this.options.center,d.zoom,!1):"fitToGeometry"in d&&this.fitToBounds(void 0,void 0,!1),g&&this.chart.redraw(y)}zoomBy(d,g,y,M){let k=this.chart,T=this.projection.forward(this.center);if(typeof d=="number"){let z,N,G,X=this.zoom+d;if(y){let[j,B]=y,W=this.getScale(),V=j-k.plotLeft-k.plotWidth/2,U=B-k.plotTop-k.plotHeight/2;N=T[0]+V/W,G=T[1]+U/W}if(typeof N=="number"&&typeof G=="number"){let j=1-Math.pow(2,this.zoom)/Math.pow(2,X),B=T[0]-N,W=T[1]-G;T[0]-=B*j,T[1]+=W*j,z=this.projection.inverse(T)}this.setView(g||z,X,void 0,M)}else this.fitToBounds(void 0,void 0,void 0,M)}}class D extends P{constructor(d,g){if(super(d.chart,g),this.id=g.id,this.mapView=d,this.options=w({center:[0,0]},d.options.insetOptions,g),this.allBounds=[],this.options.geoBounds){let y=d.projection.path(this.options.geoBounds);this.geoBoundsProjectedBox=f(y),this.geoBoundsProjectedPolygon=y.map(M=>[M[1]||0,M[2]||0])}}getField(d=!0){let g=this.hitZone;if(g){let y=d?this.padding:[0,0,0,0],M=g.coordinates[0],k=M.map(j=>j[0]),T=M.map(j=>j[1]),z=Math.min.apply(0,k)+y[3],N=Math.max.apply(0,k)-y[1],G=Math.min.apply(0,T)+y[0],X=Math.max.apply(0,T)-y[2];if(E(z)&&E(G))return{x:z,y:G,width:N-z,height:X-G}}return super.getField.call(this,d)}getHitZone(){let{chart:d,mapView:g,options:y}=this,{coordinates:M}=y.field||{};if(M){let k=M[0];if(y.units==="percent"){let T=y.relativeTo==="mapBoundingBox"&&g.getMapBBox()||w(d.plotBox,{x:0,y:0});k=k.map(z=>[I(`${z[0]}%`,T.width,T.x),I(`${z[1]}%`,T.height,T.y)])}return{type:"Polygon",coordinates:[k]}}}getProjectedBounds(){return P.compositeBounds(this.allBounds)}isInside(d){let{geoBoundsProjectedBox:g,geoBoundsProjectedPolygon:y}=this;return!!(g&&d.x>=g.x1&&d.x<=g.x2&&d.y>=g.y1&&d.y<=g.y2&&y&&u(d,y))}render(){let{chart:d,mapView:g,options:y}=this,M=y.borderPath||y.field;if(M&&g.group){let k=!0;this.border||(this.border=d.renderer.path().addClass("highcharts-mapview-inset-border").add(g.group),k=!1),d.styledMode||this.border.attr({stroke:y.borderColor,"stroke-width":y.borderWidth});let T=this.border.strokeWidth(),z=y.relativeTo==="mapBoundingBox"&&g.getMapBBox()||g.playingField,N=(M.coordinates||[]).reduce((G,X)=>X.reduce((j,B,W)=>{let[V,U]=B;return y.units==="percent"&&(V=d.plotLeft+I(`${V}%`,z.width,z.x),U=d.plotTop+I(`${U}%`,z.height,z.y)),V=v(V,T),U=v(U,T),j.push(W===0?["M",V,U]:["L",V,U]),j},G),[]);this.border[k?"animate":"attr"]({d:N})}}destroy(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(d=>d())}setUpEvents(){}}return P}),i(t,"Series/Map/MapSeries.js",[t["Core/Animation/AnimationUtilities.js"],t["Series/ColorMapComposition.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Chart/MapChart.js"],t["Series/Map/MapPoint.js"],t["Series/Map/MapSeriesDefaults.js"],t["Maps/MapView.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c,f,u){let{animObject:p,stop:b}=e,{noop:v}=n,{splitPath:x}=l,{column:m,scatter:E}=f.seriesTypes,{extend:L,find:S,fireEvent:w,getNestedProperty:R,isArray:O,defined:I,isNumber:_,isObject:A,merge:F,objectEach:P,pick:D,splat:C}=u;class d extends E{constructor(){super(...arguments),this.processedData=[]}animate(y){let{chart:M,group:k}=this,T=p(this.options.animation);y?k.attr({translateX:M.plotLeft+M.plotWidth/2,translateY:M.plotTop+M.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:M.plotLeft,translateY:M.plotTop,scaleX:1,scaleY:1},T)}clearBounds(){this.points.forEach(y=>{delete y.bounds,delete y.insetIndex,delete y.projectedPath}),delete this.bounds}doFullTranslate(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)}drawMapDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}drawPoints(){let y=this,{chart:M,group:k,transformGroups:T=[]}=this,{mapView:z,renderer:N}=M;if(z){this.transformGroups=T,T[0]||(T[0]=N.g().add(k));for(let G=0,X=z.insets.length;G{let{graphic:X}=G;G.group=T[typeof G.insetIndex=="number"?G.insetIndex+1:0],X&&X.parentGroup!==G.group&&X.add(G.group)}),m.prototype.drawPoints.apply(this),this.points.forEach(G=>{let X=G.graphic;if(X){let j=X.animate,B="";G.name&&(B+="highcharts-name-"+G.name.replace(/ /g,"-").toLowerCase()),G.properties&&G.properties["hc-key"]&&(B+=" highcharts-key-"+G.properties["hc-key"].toString().toLowerCase()),B&&X.addClass(B),M.styledMode&&X.css(this.pointAttribs(G,G.selected&&"select"||void 0)),X.attr({visibility:!G.visible&&(G.visible||G.isNull)?"hidden":"inherit"}),X.animate=function(W,V,U){let q=_(W["stroke-width"])&&!_(X["stroke-width"]),H=_(X["stroke-width"])&&!_(W["stroke-width"]);if(q||H){let Y=D(y.getStrokeWidth(y.options),1)/(M.mapView&&M.mapView.getScale()||1);q&&(X["stroke-width"]=Y),H&&(W["stroke-width"]=Y)}return j.call(X,W,V,H?function(){X.element.removeAttribute("stroke-width"),delete X["stroke-width"],U&&U.apply(this,arguments)}:U)}}})),T.forEach((G,X)=>{let j=(X===0?z:z.insets[X-1]).getSVGTransform(),B=D(this.getStrokeWidth(this.options),1),W=j.scaleX,V=j.scaleY>0?1:-1,U=q=>{(y.points||[]).forEach(H=>{let Y,Z=H.graphic;Z&&Z["stroke-width"]&&(Y=this.getStrokeWidth(H.options))&&Z.attr({"stroke-width":Y/q})})};if(N.globalAnimation&&M.hasRendered&&z.allowTransformAnimation){let q=Number(G.attr("translateX")),H=Number(G.attr("translateY")),Y=Number(G.attr("scaleX")),Z=(tt,$)=>{let Q=Y+(W-Y)*$.pos;G.attr({translateX:q+(j.translateX-q)*$.pos,translateY:H+(j.translateY-H)*$.pos,scaleX:Q,scaleY:Q*V,"stroke-width":B/Q}),U(Q)},K=F(p(N.globalAnimation)),J=K.step;K.step=function(){J&&J.apply(this,arguments),Z.apply(this,arguments)},G.attr({animator:0}).animate({animator:1},K,(function(){typeof N.globalAnimation!="boolean"&&N.globalAnimation.complete&&N.globalAnimation.complete({applyDrilldown:!0}),w(this,"mapZoomComplete")}).bind(this))}else b(G),G.attr(F(j,{"stroke-width":B/W})),U(W)}),this.isDrilling||this.drawMapDataLabels()}}getProjectedBounds(){if(!this.bounds&&this.chart.mapView){let{insets:y,projection:M}=this.chart.mapView,k=[];(this.points||[]).forEach(T=>{if(T.path||T.geometry){if(typeof T.path=="string"?T.path=x(T.path):O(T.path)&&T.path[0]==="M"&&(T.path=this.chart.renderer.pathToSegments(T.path)),!T.bounds){let z=T.getProjectedBounds(M);if(z){T.labelrank=D(T.labelrank,(z.x2-z.x1)*(z.y2-z.y1));let{midX:N,midY:G}=z;if(y&&_(N)&&_(G)){let X=S(y,j=>j.isInside({x:N,y:G}));X&&(delete T.projectedPath,(z=T.getProjectedBounds(X.projection))&&X.allBounds.push(z),T.insetIndex=y.indexOf(X))}T.bounds=z}}T.bounds&&T.insetIndex===void 0&&k.push(T.bounds)}}),this.bounds=c.compositeBounds(k)}return this.bounds}getStrokeWidth(y){let M=this.pointAttrToOptions;return y[M&&M["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(y,M){let{mapView:k,styledMode:T}=y.series.chart,z=T?this.colorAttribs(y):m.prototype.pointAttribs.call(this,y,M),N=this.getStrokeWidth(y.options);if(M){let X=F(this.options.states&&this.options.states[M],y.options.states&&y.options.states[M]||{}),j=this.getStrokeWidth(X);I(j)&&(N=j),z.stroke=X.borderColor??y.color}N&&k&&(N/=k.getScale());let G=this.getStrokeWidth(this.options);return z.dashstyle&&k&&_(G)&&(N=G/k.getScale()),y.visible||(z.fill=this.options.nullColor),I(N)?z["stroke-width"]=N:delete z["stroke-width"],z["stroke-linecap"]=z["stroke-linejoin"]=this.options.linecap,z}updateData(){return!this.processedData&&super.updateData.apply(this,arguments)}setData(y,M=!0,k,T){delete this.bounds,super.setData(y,!1,void 0,T),this.processData(),this.generatePoints(),M&&this.chart.redraw(k)}processData(){let y,M,k,T=this.options,z=T.data,N=this.chart,G=N.options.chart,X=this.joinBy,j=T.keys||this.pointArrayMap,B=[],W={},V=this.chart.mapView,U=V&&(A(T.mapData,!0)?V.getGeoMap(T.mapData):V.geoMap),q=N.mapTransforms=G.mapTransforms||U&&U["hc-transform"]||N.mapTransforms;q&&P(q,Y=>{Y.rotation&&(Y.cosAngle=Math.cos(Y.rotation),Y.sinAngle=Math.sin(Y.rotation))}),O(T.mapData)?k=T.mapData:U&&U.type==="FeatureCollection"&&(this.mapTitle=U.title,k=n.geojson(U,this.type,this)),this.processedData=[];let H=this.processedData;if(z){let Y;for(let Z=0,K=z.length;Zj.length&&typeof Y[0]=="string"&&(H[Z]["hc-key"]=Y[0],++J);for(let tt=0;tt0?a.prototype.setNestedProperty(H[Z],Y[J],j[tt]):H[Z][j[tt]]=Y[J])}else H[Z]=z[Z];X&&X[0]==="_i"&&(H[Z]._i=Z)}}if(k){this.mapData=k,this.mapMap={};for(let Y=0;Y{let K=R(Y,Z);W[K]&&B.push(W[K])})}if(T.allAreas){if(X[1]){let Z=X[1];H.forEach(K=>{B.push(R(Z,K))})}let Y="|"+B.map(function(Z){return Z&&Z[X[0]]}).join("|")+"|";k.forEach(Z=>{X[0]&&Y.indexOf("|"+Z[X[0]]+"|")!==-1||H.push(F(Z,{value:null}))})}}this.processedXData=Array(H.length)}setOptions(y){let M=super.setOptions(y),k=M.joinBy;return M.joinBy===null&&(k="_i"),(k=this.joinBy=C(k))[1]||(k[1]=k[0]),M}translate(){let y=this.doFullTranslate(),M=this.chart.mapView,k=M&&M.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!M||M.userOptions.center||_(M.userOptions.zoom)||M.zoom!==M.minZoom?this.getProjectedBounds():M.fitToBounds(void 0,void 0,!1)),M){let T=M.getSVGTransform();this.points.forEach(z=>{let N=_(z.insetIndex)&&M.insets[z.insetIndex].getSVGTransform()||T;N&&z.bounds&&_(z.bounds.midX)&&_(z.bounds.midY)&&(z.plotX=z.bounds.midX*N.scaleX+N.translateX,z.plotY=z.bounds.midY*N.scaleY+N.translateY),y&&(z.shapeType="path",z.shapeArgs={d:a.getProjectedPath(z,k)}),z.hiddenInDataClass||(z.projectedPath&&!z.projectedPath.length?z.setVisible(!1):z.visible||z.setVisible(!0))})}w(this,"afterTranslate")}update(y){y.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((M,k)=>k===this._i?y.mapData:M.mapData)],!0),super.update.apply(this,arguments)}}return d.defaultOptions=F(E.defaultOptions,h),L(d.prototype,{type:"map",axisTypes:s.seriesMembers.axisTypes,colorAttribs:s.seriesMembers.colorAttribs,colorKey:s.seriesMembers.colorKey,directTouch:!0,drawDataLabels:v,drawGraph:v,forceDL:!0,getCenter:r.getCenter,getExtremesFromAll:!0,getSymbol:v,isCartesian:!1,parallelArrays:s.seriesMembers.parallelArrays,pointArrayMap:s.seriesMembers.pointArrayMap,pointClass:a,preserveAspectRatio:!0,searchPoint:v,trackerGroups:s.seriesMembers.trackerGroups,useMapGeometry:!0}),s.compose(d),f.registerSeriesType("map",d),d}),i(t,"Series/MapLine/MapLineSeriesDefaults.js",[],function(){return{lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"}}),i(t,"Series/MapLine/MapLineSeries.js",[t["Series/MapLine/MapLineSeriesDefaults.js"],t["Series/Map/MapSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{extend:l,merge:a}=n;class h extends s{pointAttribs(f,u){let p=super.pointAttribs(f,u);return p.fill=this.options.fillColor,p}}return h.defaultOptions=a(s.defaultOptions,e),l(h.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),r.registerSeriesType("mapline",h),h}),i(t,"Series/MapPoint/MapPointPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s){let{scatter:r}=e.seriesTypes,{isNumber:n}=s;class l extends r.prototype.pointClass{isValid(){return!!(this.options.geometry||n(this.x)&&n(this.y)||n(this.options.lon)&&n(this.options.lat))}}return l}),i(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"}}),i(t,"Series/MapPoint/MapPointSeries.js",[t["Core/Globals.js"],t["Series/MapPoint/MapPointPoint.js"],t["Series/MapPoint/MapPointSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{noop:h}=e,{map:c,scatter:f}=n.seriesTypes,{extend:u,fireEvent:p,isNumber:b,merge:v}=a;class x extends f{constructor(){super(...arguments),this.clearBounds=c.prototype.clearBounds}drawDataLabels(){super.drawDataLabels(),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}projectPoint(E){let L=this.chart.mapView;if(L){let{geometry:S,lon:w,lat:R}=E,O=S&&S.type==="Point"&&S.coordinates;if(b(w)&&b(R)&&(O=[w,R]),O)return L.lonLatToProjectedUnits({lon:O[0],lat:O[1]})}}translate(){let E=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),E){let L=E.getSVGTransform(),{hasCoordinates:S}=E.projection;this.points.forEach(w=>{let R,{x:O,y:I}=w,_=b(w.insetIndex)&&E.insets[w.insetIndex].getSVGTransform()||L,A=this.projectPoint(w.options)||w.properties&&this.projectPoint(w.properties);if(A?(O=A.x,I=A.y):w.bounds&&(O=w.bounds.midX,I=w.bounds.midY,_&&b(O)&&b(I)&&(w.plotX=O*_.scaleX+_.translateX,w.plotY=I*_.scaleY+_.translateY,R=!0)),b(O)&&b(I)){if(!R){let F=E.projectedUnitsToPixels({x:O,y:I});w.plotX=F.x,w.plotY=S?F.y:this.chart.plotHeight-F.y}}else w.y=w.plotX=w.plotY=void 0;w.isInside=this.isPointInside(w),w.zone=this.zones.length?w.getZone():void 0})}p(this,"afterTranslate")}}return x.defaultOptions=v(f.defaultOptions,r),l.prototype.symbols.mapmarker=(m,E,L,S,w)=>{let R,O,I=w&&w.context==="legend";I?(R=m+L/2,O=E+S):w&&typeof w.anchorX=="number"&&typeof w.anchorY=="number"?(R=w.anchorX,O=w.anchorY):(R=m+L/2,O=E+S/2,E-=S);let _=I?S/3:S/2;return[["M",R,O],["C",R,O,R-_,E+1.5*_,R-_,E+_],["A",_,_,1,1,1,R+_,E+_],["C",R+_,E+1.5*_,R,O,R,O],["Z"]]},u(x.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:s,searchPoint:h,useMapGeometry:!0}),n.registerSeriesType("mappoint",x),x}),i(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}}),i(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:f,merge:u,pick:p,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,m=p(v.options.itemDistance,20),E=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!f(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,A){return A.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,E.labelWidth=I+x+m,E.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,m=this.chart.series[x.seriesIndex],E=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=m.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=p(I.borderColor,x.borderColor,m.color),L.fill=p(I.color,x.color,R!==1?l(m.color).setOpacity(R).get("rgba"):m.color),S.stroke=p(I.connectorColor,x.connectorColor,m.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=u(v[_],{center:v[0].radius-v[_].radius+E}),O||u(!0,v[_],{bubbleAttribs:u(L),connectorAttribs:u(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,m=this.options.seriesIndex,E=this.chart.series[m],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return E.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,m=this.options.zThreshold;for(let E of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))E.value>=m&&this.renderRange(E);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],m=this.legend,E=this.options,L=E.labels,S=this.chart,w=S.series[E.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,A=Math.abs(v.radius),F=E.connectorDistance||0,P=L.align,D=m.options.rtl,C=E.borderWidth,d=E.connectorWidth,g=x.radius||0,y=_-A-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,T=D||P==="left"?-F:F;P==="center"&&(T=0,E.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(g,_+M,A).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(E.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",g,y],["L",g+T,y]],E.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(E.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(E.labels.className||"")).add(this.legendItem.symbol),N={x:g+T+E.labels.x,y:y+E.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(m){x=m.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,m=x.labels.formatter,E=x.labels.format,{numberFormatter:L}=this.chart;return E?s.format(E,v):m?m.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,m=this.symbols;!x&&m&&(v.hideOverlappingLabels(m.labels),m.labels.forEach(function(E,L){E.newOpacity?E.newOpacity!==E.oldOpacity&&m.connectors[L].show():m.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,m=v.options.ranges,E,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(f)).length&&(S=p(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=p(R.options.zMax,Math.max(w,h(L))))}),E=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],m.length&&m[0].radius&&E.reverse(),E.forEach(function(R,O){m&&m[O]&&(E[O]=u(m[O],R))}),E}predictBubbleSizes(){let v=this.chart,x=v.legend.options,m=x.floating,E=x.layout==="horizontal",L=E?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),A,F=R.options.maxSize;return m||!/%$/.test(F)?A=_:(A=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(E&&w-A>=S||!E&&S-A>=w)&&(A=_)),[I,Math.ceil(A)]}updateRanges(v,x){let m=this.legend.options.bubbleLegend;m.minSize=v,m.maxSize=x,m.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),i(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:f,pushUnique:u,wrap:p}=l;function b(S,w,R){let O,I,_,A=this.legend,F=v(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(O=A.bubbleLegend.options,I=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(A.group.placed=!1,A.allItems.forEach(P=>{(_=P.legendItem||{}).group&&(_.group.translateY=void 0)})),A.render(),O.placed||(this.getMargins(),this.axes.forEach(function(P){P.visible&&P.render(),O.placed||(P.setScale(),P.updateNames(),f(P.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),A.bubbleLegend.correctSizes(),L(A,x(A))):(S.call(this,w,R),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[P].itemHeight);I.step=F}return R}function m(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new s(O,this),this.bubbleLegend.addToLegend(S.allItems))}function E(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,A,F,P=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((A=D.movementX)||O&&D.ranges)&&(A=O?I-D.options.maxSize/2:I+A,F.group.attr({translateX:A})),C>w[P].step&&P++,F.group.attr({translateY:Math.round(_+w[P].height/2)}),F.y=_+w[P].height/2)})}return{compose:function(S,w,R){u(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),p(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",m),c(R,"legendItemClick",E))}}}),i(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=s,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),i(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{parse:h}=r,{composed:c,noop:f}=n,{series:u,seriesTypes:{column:{prototype:p},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:m,clamp:E,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let A=this.len,{coll:F,isXAxis:P,min:D}=this,C=P?"xData":"yData",d=(this.max||0)-(D||0),g=0,y=A,M=A/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(T=>{if(T.bubblePadding&&T.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=T[C];if(P&&((T.onPoint||T).getRadii(0,0,T),T.onPoint&&(T.radii=T.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=T.radii&&T.radii[N]||0;g=Math.min((z[N]-D)*M-G,g),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=A,M*=(A+Math.max(0,g)-Math.min(y,A))/A,[["min","userMin",g],["max","userMax",y]].forEach(T=>{R(this.options[T[0]],this[T[1]])===void 0&&(this[T[0]]+=T[2]/M)})))}class _ extends b{static compose(F,P,D,C){e.compose(P,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),T=!0)}}),T?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/T)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,P){let D=super.markerAttribs(F,P),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,P){let D=this.options.marker.fillOpacity,C=u.prototype.pointAttribs.call(this,F,P);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:P,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let g=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(g.negative=(g.z||0)<(P.zThreshold||0)),S(y)&&y>=C/2?(g.marker=L(g.marker,{radius:y,width:2*y,height:2*y}),g.dlBox={x:g.plotX-y,y:g.plotY-y,width:2*y,height:2*y}):(g.shapeArgs=g.plotY=g.dlBox=void 0,g.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),P=d=>{let g;return typeof d=="string"&&(g=/%$/.test(d),d=parseInt(d,10)),g?F*d/100:d},D=P(R(this.options.minSize,8)),C=Math.max(P(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,P=(this.zData||[]).filter(S);if(P.length){let D=R(F.zMin,E(m(P),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(P));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return S(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(_.prototype,{alignDataLabel:p.alignDataLabel,applyZones:f,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),v(_,"remove",A=>{delete A.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),i(t,"Series/MapBubble/MapBubblePoint.js",[t["Series/Bubble/BubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{seriesTypes:{map:{prototype:{pointClass:{prototype:n}}}}}=s,{extend:l}=r;class a extends e{isValid(){return typeof this.z=="number"}}return l(a.prototype,{applyOptions:n.applyOptions,getProjectedBounds:n.getProjectedBounds}),a}),i(t,"Series/MapBubble/MapBubbleSeries.js",[t["Series/Bubble/BubbleSeries.js"],t["Series/MapBubble/MapBubblePoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{seriesTypes:{map:{prototype:l},mappoint:{prototype:a}}}=r,{extend:h,merge:c}=n;class f extends e{constructor(){super(...arguments),this.clearBounds=l.clearBounds}searchPoint(p,b){return this.searchKDTree({plotX:p.chartX-this.chart.plotLeft,plotY:p.chartY-this.chart.plotTop},b,p)}translate(){a.translate.call(this),this.getRadii(),this.translateBubble()}updateParallelArrays(p,b,v){super.updateParallelArrays.call(this,p,b,v);let x=this.processedXData,m=this.xData;x&&m&&(x.length=m.length)}}return f.defaultOptions=c(e.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),h(f.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:l.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:s,processData:l.processData,projectPoint:a.projectPoint,kdAxisArray:["plotX","plotY"],setData:l.setData,setOptions:l.setOptions,updateData:l.updateData,useMapGeometry:!0,xyFromShape:!0}),r.registerSeriesType("mapbubble",f),f}),i(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=s;class c extends r{applyOptions(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,b=(p.colsize||1)/2,v=(p.rowsize||1)/2,x=u.xAxis,m=u.yAxis,E=this.options.marker||u.options.marker,L=u.pointPlacementToXValue(),S=h(this.pointPadding,p.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(m.translate(this.y-v,!1,!0,!1,!0)),-m.len,2*m.len),y2:n(Math.round(m.translate(this.y+v,!1,!0,!1,!0)),-m.len,2*m.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",A=I+"2",F=Math.abs(w[_]-w[A]),P=E&&E.lineWidth||0,D=Math.abs(w[_]+w[A])/2,C=E&&E[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),i(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{doc:r}=e,{defined:n,pick:l}=s;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let f=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(u=>l(parseFloat(u),parseInt(u,10)));return f[3]=255*l(f[3],1),n(a)&&h.visible||(f[3]=0),f}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),i(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,s,r,n,l,a,h,c){let{series:f,seriesTypes:{column:u,scatter:p}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:m,isNumber:E,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,A=_.options,F=A.interpolation,P=A.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:g}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:T}=g,z={width:M,height:T};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,V=C.colorAxis&&C.colorAxis[0];if(G&&N&&V){let{min:U,max:q}=d.getExtremes(),{min:H,max:Y}=g.getExtremes(),Z=q-U,K=Y-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:A}=f.prototype.getExtremes.call(this,this.valueData);return E(_)&&(this.valueMin=_),E(A)&&(this.valueMax=A),f.prototype.getExtremes.call(this)}getValidPoints(_,A){return f.prototype.getValidPoints.call(this,_,A,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&E(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,A){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(A&&A!=="normal"){let P=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[A]||{},d=P.states&&P.states[A]||{},g=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-g)/2,y:(F.y||0)+((F.height||0)-y)/2,width:g,height:y}}return F}pointAttribs(_,A){let F=f.prototype.pointAttribs.call(this,_,A),P=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},g=_&&_.options.borderColor||P.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||P.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||P.marker&&P.marker.lineColor||g||this.color,F["stroke-width"]=y,A&&A!=="normal"){let M=L(P.states&&P.states[A],P.marker&&P.marker.states&&P.marker.states[A],_&&_.options.states&&_.options.states[A]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:A}=this.options,F=A&&A.symbol||"rect",P=b[F]?F:"rect",D=["circle","square"].indexOf(P)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),g=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let T=Math.abs(M-k);g=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof lo=="object"&&lo.exports?(o.default=o,lo.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Extensions/Pane/PaneComposition.js",[t["Core/Utilities.js"]],function(e){let{addEvent:s,correctFloat:r,defined:n,pick:l}=e;function a(p){let b,v=this;return p&&v.pane.forEach(x=>{h(p.chartX-v.plotLeft,p.chartY-v.plotTop,x.center)&&(b=x)}),b}function h(p,b,v,x,m){let E=!0,L=v[0],S=v[1];if(n(x)&&n(m)){let w=Math.atan2(r(b-S,8),r(p-L,8));m!==x&&(E=x>m?w>=x&&w<=Math.PI||w<=m&&w>=-Math.PI:w>=x&&w<=r(m,8))}return Math.sqrt(Math.pow(p-L,2)+Math.pow(b-S,2))<=Math.ceil(v[2]/2)&&E}function c(p){this.polar&&(p.options.inverted&&([p.x,p.y]=[p.y,p.x]),p.isInsidePlot=this.pane.some(b=>h(p.x,p.y,b.center,b.axis&&b.axis.normalizedStartAngleRad,b.axis&&b.axis.normalizedEndAngleRad)))}function f(p){let b=this.chart;p.hoverPoint&&p.hoverPoint.plotX&&p.hoverPoint.plotY&&b.hoverPane&&!h(p.hoverPoint.plotX,p.hoverPoint.plotY,b.hoverPane.center)&&(p.hoverPoint=void 0)}function u(p){let b=this.chart;b.polar?(b.hoverPane=b.getHoverPane(p),p.filter=function(v){return v.visible&&!(!p.shared&&v.directTouch)&&l(v.options.enableMouseTracking,!0)&&(!b.hoverPane||v.xAxis.pane===b.hoverPane)}):b.hoverPane=void 0}return{compose:function(p,b){let v=p.prototype;v.getHoverPane||(v.collectionsWithUpdate.push("pane"),v.getHoverPane=a,s(p,"afterIsInsidePlot",c),s(b,"afterGetHoverData",f),s(b,"beforeGetHoverData",u))}}}),i(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%"}}}),i(t,"Extensions/Pane/Pane.js",[t["Series/CenteredUtilities.js"],t["Extensions/Pane/PaneComposition.js"],t["Extensions/Pane/PaneDefaults.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{extend:l,merge:a,splat:h}=n;class c{constructor(u,p){this.coll="pane",this.init(u,p)}init(u,p){this.chart=p,this.background=[],p.pane.push(this),this.setOptions(u)}setOptions(u){this.options=u=a(r.pane,this.chart.angular?{background:{}}:void 0,u)}render(){let u=this.options,p=this.chart.renderer;this.group||(this.group=p.g("pane-group").attr({zIndex:u.zIndex||0}).add()),this.updateCenter();let b=this.options.background;if(b){let v=Math.max((b=h(b)).length,this.background.length||0);for(let x=0;xd,w.y=w.high,w._plotY=w.plotY,w.plotY=C,F[S]=w.dataLabel,w.dataLabel=w.dataLabelUpper,w.below=R,D?O.align||(O.align=R?"right":"left"):O.verticalAlign||(O.verticalAlign=R?"top":"bottom")}for(this.options.dataLabels=O,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments),S=A;S--;)(w=_[S])&&(w.dataLabelUpper=w.dataLabel,w.dataLabel=F[S],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY)}if(I.enabled||this.hasDataLabels?.()){for(S=A;S--;)if(w=_[S]){let{plotHigh:C=0,plotLow:d=0}=w;R=I.inside?Cd,w.below=!R,D?I.align||(I.align=R?"left":"right"):I.verticalAlign||(I.verticalAlign=R?"bottom":"top")}this.options.dataLabels=I,h.drawDataLabels&&h.drawDataLabels.apply(this,arguments)}if(O.enabled)for(S=A;S--;)(w=_[S])&&(w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(C){return!!C}));this.options.dataLabels=P}}alignDataLabel(){c.alignDataLabel.apply(this,arguments)}modifyMarkerSettings(){let S={marker:this.options.marker,symbol:this.symbol};if(this.options.lowMarker){let{options:{marker:w,lowMarker:R}}=this;this.options.marker=m(w,R),R.symbol&&(this.symbol=R.symbol)}return S}restoreMarkerSettings(S){this.options.marker=S.marker,this.symbol=S.symbol}drawPoints(){let S,w,R=this.points.length,O=this.modifyMarkerSettings();for(h.drawPoints.apply(this,arguments),this.restoreMarkerSettings(O),S=0;S=0&&w.plotY<=this.yAxis.len&&w.plotX>=0&&w.plotX<=this.xAxis.len),S++;for(h.drawPoints.apply(this,arguments),S=0;S\u25CF {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}}),f(E,"afterTranslate",function(){this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(L=>{let S=L.high,w=L.plotY;L.isNull?L.plotY=void 0:(L.plotLow=w,L.plotHigh=v(S)?this.yAxis.translate(this.dataModify?this.dataModify.modifyValue(S):S,!1,!0,void 0,!0):void 0,this.dataModify&&(L.yBottom=L.plotHigh))})},{order:0}),f(E,"afterTranslate",function(){this.points.forEach(L=>{if(this.chart.polar)this.highToXY(L),L.plotLow=L.plotY,L.tooltipPos=[((L.plotHighX||0)+(L.plotLowX||0))/2,((L.plotHigh||0)+(L.plotLow||0))/2];else{let S=L.pos(!1,L.plotLow),w=L.pos(!1,L.plotHigh);S&&w&&(S[0]=(S[0]+w[0])/2,S[1]=(S[1]+w[1])/2),L.tooltipPos=S}})},{order:3}),p(E.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:e,pointValKey:"low",setStackedPoints:l}),r.registerSeriesType("arearange",E),E}),i(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{spline:{prototype:n}}=s.seriesTypes,{merge:l,extend:a}=r;class h extends e{}return h.defaultOptions=l(e.defaultOptions),a(h.prototype,{getPointSpline:n.getPointSpline}),s.registerSeriesType("areasplinerange",h),h}),i(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}}),i(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/BoxPlot/BoxPlotSeriesDefaults.js"],t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{noop:a}=r,{crisp:h,extend:c,merge:f,pick:u}=l;class p extends s{pointAttribs(){return{}}translate(){let v=this.yAxis,x=this.pointArrayMap;super.translate.apply(this),this.points.forEach(function(m){x.forEach(function(E){m[E]!==null&&(m[E+"Plot"]=v.translate(m[E],0,1,0,1))}),m.plotHigh=m.highPlot})}drawPoints(){let v,x,m,E,L,S,w,R,O,I,_,A,F,P=this.points,D=this.options,C=this.chart,d=C.renderer,g=this.doQuartiles!==!1,y=this.options.whiskerLength;for(let M of P){let k=(R=M.graphic)?"animate":"attr",T=M.shapeArgs,z={},N={},G={},X={},j=M.color||this.color;if(M.plotY!==void 0){let B;O=T.width,_=(I=T.x)+O,A=O/2,v=g?M.q1Plot:M.lowPlot,x=g?M.q3Plot:M.lowPlot,m=M.highPlot,E=M.lowPlot,R||(M.graphic=R=d.g("point").add(this.group),M.stem=d.path().addClass("highcharts-boxplot-stem").add(R),y&&(M.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(R)),g&&(M.box=d.path(w).addClass("highcharts-boxplot-box").add(R)),M.medianShape=d.path(S).addClass("highcharts-boxplot-median").add(R)),C.styledMode||(N.stroke=M.stemColor||D.stemColor||j,N["stroke-width"]=u(M.stemWidth,D.stemWidth,D.lineWidth),N.dashstyle=M.stemDashStyle||D.stemDashStyle||D.dashStyle,M.stem.attr(N),y&&(G.stroke=M.whiskerColor||D.whiskerColor||j,G["stroke-width"]=u(M.whiskerWidth,D.whiskerWidth,D.lineWidth),G.dashstyle=M.whiskerDashStyle||D.whiskerDashStyle||D.dashStyle,M.whiskers.attr(G)),g&&(z.fill=M.fillColor||D.fillColor||j,z.stroke=D.lineColor||j,z["stroke-width"]=D.lineWidth||0,z.dashstyle=M.boxDashStyle||D.boxDashStyle||D.dashStyle,M.box.attr(z)),X.stroke=M.medianColor||D.medianColor||j,X["stroke-width"]=u(M.medianWidth,D.medianWidth,D.lineWidth),X.dashstyle=M.medianDashStyle||D.medianDashStyle||D.dashStyle,M.medianShape.attr(X));let W=h(M.plotX||0,M.stem.strokeWidth());if(B=[["M",W,x],["L",W,m],["M",W,v],["L",W,E]],M.stem[k]({d:B}),g){let V=M.box.strokeWidth();v=h(v,V),x=h(x,V),B=[["M",I=h(I,V),x],["L",I,v],["L",_=h(_,V),v],["L",_,x],["L",I,x],["Z"]],M.box[k]({d:B})}if(y){let V=M.whiskers.strokeWidth();m=h(M.highPlot,V),E=h(M.lowPlot,V),B=[["M",h(W-(F=typeof y=="string"&&/%$/.test(y)?A*parseFloat(y)/100:Number(y)/2)),m],["L",h(W+F),m],["M",h(W-F),E],["L",h(W+F),E]],M.whiskers[k]({d:B})}B=[["M",I,L=h(M.medianPlot,M.medianShape.strokeWidth())],["L",_,L]],M.medianShape[k]({d:B})}}}toYData(v){return[v.low,v.q1,v.median,v.q3,v.high]}}return p.defaultOptions=f(s.defaultOptions,e),c(p.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:a,setStackedPoints:a}),n.registerSeriesType("boxplot",p),p}),i(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}}),i(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{parse:l}=e,{noop:a}=r,{arrayMax:h,arrayMin:c,isNumber:f,merge:u,pick:p,stableSort:b}=n;return class{constructor(v,x){this.setState=a,this.init(v,x)}init(v,x){this.options=v,this.visible=!0,this.chart=x.chart,this.legend=x}addToLegend(v){v.splice(this.options.legendIndex,0,this)}drawLegendSymbol(v){let x,m=p(v.options.itemDistance,20),E=this.legendItem||{},L=this.options,S=L.ranges,w=L.connectorDistance;if(!S||!S.length||!f(S[0].value)){v.options.bubbleLegend.autoRanges=!0;return}b(S,function(_,A){return A.value-_.value}),this.ranges=S,this.setOptions(),this.render();let R=this.getMaxLabelSize(),O=this.ranges[0].radius,I=2*O;x=(x=w-O+R.width)>0?x:0,this.maxLabel=R,this.movementX=L.labels.align==="left"?x:0,E.labelWidth=I+x+m,E.labelHeight=I+R.height/2}setOptions(){let v=this.ranges,x=this.options,m=this.chart.series[x.seriesIndex],E=this.legend.baseline,L={zIndex:x.zIndex,"stroke-width":x.borderWidth},S={zIndex:x.zIndex,"stroke-width":x.connectorWidth},w={align:this.legend.options.rtl||x.labels.align==="left"?"right":"left",zIndex:x.zIndex},R=m.options.marker.fillOpacity,O=this.chart.styledMode;v.forEach(function(I,_){O||(L.stroke=p(I.borderColor,x.borderColor,m.color),L.fill=p(I.color,x.color,R!==1?l(m.color).setOpacity(R).get("rgba"):m.color),S.stroke=p(I.connectorColor,x.connectorColor,m.color)),v[_].radius=this.getRangeRadius(I.value),v[_]=u(v[_],{center:v[0].radius-v[_].radius+E}),O||u(!0,v[_],{bubbleAttribs:u(L),connectorAttribs:u(S),labelAttribs:w})},this)}getRangeRadius(v){let x=this.options,m=this.options.seriesIndex,E=this.chart.series[m],L=x.ranges[0].value,S=x.ranges[x.ranges.length-1].value,w=x.minSize,R=x.maxSize;return E.getRadius.call(this,S,L,w,R,v)}render(){let v=this.legendItem||{},x=this.chart.renderer,m=this.options.zThreshold;for(let E of(this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),v.symbol=x.g("bubble-legend"),v.label=x.g("bubble-legend-item").css(this.legend.itemStyle||{}),v.symbol.translateX=0,v.symbol.translateY=0,v.symbol.add(v.label),v.label.add(v.group),this.ranges))E.value>=m&&this.renderRange(E);this.hideOverlappingLabels()}renderRange(v){let x=this.ranges[0],m=this.legend,E=this.options,L=E.labels,S=this.chart,w=S.series[E.seriesIndex],R=S.renderer,O=this.symbols,I=O.labels,_=v.center,A=Math.abs(v.radius),F=E.connectorDistance||0,P=L.align,D=m.options.rtl,C=E.borderWidth,d=E.connectorWidth,g=x.radius||0,y=_-A-C/2+d/2,M=(y%1?1:.5)-(d%2?0:.5),k=R.styledMode,T=D||P==="left"?-F:F;P==="center"&&(T=0,E.connectorDistance=0,v.labelAttribs.align="center"),O.bubbleItems.push(R.circle(g,_+M,A).attr(k?{}:v.bubbleAttribs).addClass((k?"highcharts-color-"+w.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(E.className||"")).add(this.legendItem.symbol)),O.connectors.push(R.path(R.crispLine([["M",g,y],["L",g+T,y]],E.connectorWidth)).attr(k?{}:v.connectorAttribs).addClass((k?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(E.connectorClassName||"")).add(this.legendItem.symbol));let z=R.text(this.formatLabel(v)).attr(k?{}:v.labelAttribs).css(k?{}:L.style).addClass("highcharts-bubble-legend-labels "+(E.labels.className||"")).add(this.legendItem.symbol),N={x:g+T+E.labels.x,y:y+E.labels.y+.4*z.getBBox().height};z.attr(N),I.push(z),z.placed=!0,z.alignAttr=N}getMaxLabelSize(){let v,x;return this.symbols.labels.forEach(function(m){x=m.getBBox(!0),v=v?x.width>v.width?x:v:x}),v||{}}formatLabel(v){let x=this.options,m=x.labels.formatter,E=x.labels.format,{numberFormatter:L}=this.chart;return E?s.format(E,v):m?m.call(v):L(v.value,1)}hideOverlappingLabels(){let v=this.chart,x=this.options.labels.allowOverlap,m=this.symbols;!x&&m&&(v.hideOverlappingLabels(m.labels),m.labels.forEach(function(E,L){E.newOpacity?E.newOpacity!==E.oldOpacity&&m.connectors[L].show():m.connectors[L].hide()}))}getRanges(){let v=this.legend.bubbleLegend,x=v.chart.series,m=v.options.ranges,E,L,S=Number.MAX_VALUE,w=-Number.MAX_VALUE;return x.forEach(function(R){R.isBubble&&!R.ignoreSeries&&(L=R.zData.filter(f)).length&&(S=p(R.options.zMin,Math.min(S,Math.max(c(L),R.options.displayNegative===!1?R.options.zThreshold:-Number.MAX_VALUE))),w=p(R.options.zMax,Math.max(w,h(L))))}),E=S===w?[{value:w}]:[{value:S},{value:(S+w)/2},{value:w,autoRanges:!0}],m.length&&m[0].radius&&E.reverse(),E.forEach(function(R,O){m&&m[O]&&(E[O]=u(m[O],R))}),E}predictBubbleSizes(){let v=this.chart,x=v.legend.options,m=x.floating,E=x.layout==="horizontal",L=E?v.legend.lastLineHeight:0,S=v.plotSizeX,w=v.plotSizeY,R=v.series[this.options.seriesIndex],O=R.getPxExtremes(),I=Math.ceil(O.minPxSize),_=Math.ceil(O.maxPxSize),A,F=R.options.maxSize;return m||!/%$/.test(F)?A=_:(A=(Math.min(w,S)+L)*(F=parseFloat(F))/100/(F/100+1),(E&&w-A>=S||!E&&S-A>=w)&&(A=_)),[I,Math.ceil(A)]}updateRanges(v,x){let m=this.legend.options.bubbleLegend;m.minSize=v,m.maxSize=x,m.ranges=this.getRanges()}correctSizes(){let v=this.legend,x=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(x.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,x.maxPxSize),v.render())}}}),i(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{setOptions:a}=r,{composed:h}=n,{addEvent:c,objectEach:f,pushUnique:u,wrap:p}=l;function b(S,w,R){let O,I,_,A=this.legend,F=v(this)>=0;A&&A.options.enabled&&A.bubbleLegend&&A.options.bubbleLegend.autoRanges&&F?(O=A.bubbleLegend.options,I=A.bubbleLegend.predictBubbleSizes(),A.bubbleLegend.updateRanges(I[0],I[1]),O.placed||(A.group.placed=!1,A.allItems.forEach(P=>{(_=P.legendItem||{}).group&&(_.group.translateY=void 0)})),A.render(),O.placed||(this.getMargins(),this.axes.forEach(function(P){P.visible&&P.render(),O.placed||(P.setScale(),P.updateNames(),f(P.ticks,function(D){D.isNew=!0,D.isNewLabel=!0}))}),this.getMargins()),O.placed=!0,S.call(this,w,R),A.bubbleLegend.correctSizes(),L(A,x(A))):(S.call(this,w,R),A&&A.options.enabled&&A.bubbleLegend&&(A.render(),L(A,x(A))))}function v(S){let w=S.series,R=0;for(;RI.height&&(I.height=w[P].itemHeight);I.step=F}return R}function m(S){let w=this.bubbleLegend,R=this.options,O=R.bubbleLegend,I=v(this.chart);w&&w.ranges&&w.ranges.length&&(O.ranges.length&&(O.autoRanges=!!O.ranges[0].autoRanges),this.destroyItem(w)),I>=0&&R.enabled&&O.enabled&&(O.seriesIndex=I,this.bubbleLegend=new s(O,this),this.bubbleLegend.addToLegend(S.allItems))}function E(S){let w;if(S.defaultPrevented)return!1;let R=this.chart,O=this.visible,I=this.chart.legend;I&&I.bubbleLegend&&(this.visible=!O,this.ignoreSeries=O,w=v(R)>=0,I.bubbleLegend.visible!==w&&(I.update({bubbleLegend:{enabled:w}}),I.bubbleLegend.visible=w),this.visible=O)}function L(S,w){let R=S.allItems,O=S.options.rtl,I,_,A,F,P=0;R.forEach((D,C)=>{(F=D.legendItem||{}).group&&(I=F.group.translateX||0,_=F.y||0,((A=D.movementX)||O&&D.ranges)&&(A=O?I-D.options.maxSize/2:I+A,F.group.attr({translateX:A})),C>w[P].step&&P++,F.group.attr({translateY:Math.round(_+w[P].height/2)}),F.y=_+w[P].height/2)})}return{compose:function(S,w,R){u(h,"Series.BubbleLegend")&&(a({legend:{bubbleLegend:e}}),p(S.prototype,"drawChartBox",b),c(w,"afterGetAllItems",m),c(R,"legendItemClick",E))}}}),i(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{seriesTypes:{scatter:{prototype:{pointClass:n}}}}=s,{extend:l}=r;class a extends n{haloPath(c){return e.prototype.haloPath.call(this,c===0?0:(this.marker&&this.marker.radius||0)+c)}}return l(a.prototype,{ttBelow:!1}),a}),i(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{parse:h}=r,{composed:c,noop:f}=n,{series:u,seriesTypes:{column:{prototype:p},scatter:b}}=l,{addEvent:v,arrayMax:x,arrayMin:m,clamp:E,extend:L,isNumber:S,merge:w,pick:R,pushUnique:O}=a;function I(){let A=this.len,{coll:F,isXAxis:P,min:D}=this,C=P?"xData":"yData",d=(this.max||0)-(D||0),g=0,y=A,M=A/d,k;(F==="xAxis"||F==="yAxis")&&(this.series.forEach(T=>{if(T.bubblePadding&&T.reserveSpace()){this.allowZoomOutside=!0,k=!0;let z=T[C];if(P&&((T.onPoint||T).getRadii(0,0,T),T.onPoint&&(T.radii=T.onPoint.radii)),d>0){let N=z.length;for(;N--;)if(S(z[N])&&this.dataMin<=z[N]&&z[N]<=this.max){let G=T.radii&&T.radii[N]||0;g=Math.min((z[N]-D)*M-G,g),y=Math.max((z[N]-D)*M+G,y)}}}}),k&&d>0&&!this.logarithmic&&(y-=A,M*=(A+Math.max(0,g)-Math.min(y,A))/A,[["min","userMin",g],["max","userMax",y]].forEach(T=>{R(this.options[T[0]],this[T[1]])===void 0&&(this[T[0]]+=T[2]/M)})))}class _ extends b{static compose(F,P,D,C){e.compose(P,D,C),O(c,"Series.Bubble")&&v(F,"foundExtremes",I)}animate(F){!F&&this.points.length{if(G.bubblePadding&&G.reserveSpace()){let X=(G.onPoint||G).getZExtremes();X&&(z=Math.min(R(z,X.zMin),X.zMin),N=Math.max(R(N,X.zMax),X.zMax),T=!0)}}),T?(y={zMin:z,zMax:N},this.chart.bubbleZExtremes=y):y={zMin:0,zMax:0}}for(d=0,C=F.length;d0&&(z=(d-F)/T)}return M&&z>=0&&(z=Math.sqrt(z)),Math.ceil(D+z*(C-D))/2}hasData(){return!!this.processedXData.length}markerAttribs(F,P){let D=super.markerAttribs(F,P),{height:C=0,width:d=0}=D;return this.chart.inverted?L(D,{x:(F.plotX||0)-d/2,y:(F.plotY||0)-C/2}):D}pointAttribs(F,P){let D=this.options.marker.fillOpacity,C=u.prototype.pointAttribs.call(this,F,P);return D!==1&&(C.fill=h(C.fill).setOpacity(D).get("rgba")),C}translate(){super.translate.call(this),this.getRadii(),this.translateBubble()}translateBubble(){let{data:F,options:P,radii:D}=this,{minPxSize:C}=this.getPxExtremes(),d=F.length;for(;d--;){let g=F[d],y=D?D[d]:0;this.zoneAxis==="z"&&(g.negative=(g.z||0)<(P.zThreshold||0)),S(y)&&y>=C/2?(g.marker=L(g.marker,{radius:y,width:2*y,height:2*y}),g.dlBox={x:g.plotX-y,y:g.plotY-y,width:2*y,height:2*y}):(g.shapeArgs=g.plotY=g.dlBox=void 0,g.isInside=!1)}}getPxExtremes(){let F=Math.min(this.chart.plotWidth,this.chart.plotHeight),P=d=>{let g;return typeof d=="string"&&(g=/%$/.test(d),d=parseInt(d,10)),g?F*d/100:d},D=P(R(this.options.minSize,8)),C=Math.max(P(R(this.options.maxSize,"20%")),D);return{minPxSize:D,maxPxSize:C}}getZExtremes(){let F=this.options,P=(this.zData||[]).filter(S);if(P.length){let D=R(F.zMin,E(m(P),F.displayNegative===!1?F.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),C=R(F.zMax,x(P));if(S(D)&&S(C))return{zMin:D,zMax:C}}}}return _.defaultOptions=w(b.defaultOptions,{dataLabels:{formatter:function(){let{numberFormatter:A}=this.series.chart,{z:F}=this.point;return S(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(_.prototype,{alignDataLabel:p.alignDataLabel,applyZones:f,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:s,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),v(_,"updatedData",A=>{delete A.target.chart.bubbleZExtremes}),v(_,"remove",A=>{delete A.target.chart.bubbleZExtremes}),l.registerSeriesType("bubble",_),_}),i(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s){let{seriesTypes:{column:{prototype:{pointClass:{prototype:r}}},arearange:{prototype:{pointClass:n}}}}=e,{extend:l,isNumber:a}=s;class h extends n{isValid(){return a(this.low)}}return l(h.prototype,{setState:r.setState}),h}),i(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{noop:l}=s,{seriesTypes:{arearange:a,column:h,column:{prototype:c}}}=r,{addEvent:f,clamp:u,extend:p,isNumber:b,merge:v,pick:x}=n;class m extends a{setOptions(){return v(!0,arguments[0],{stacking:void 0}),a.prototype.setOptions.apply(this,arguments)}translate(){return c.translate.apply(this)}pointAttribs(){return c.pointAttribs.apply(this,arguments)}translate3dPoints(){return c.translate3dPoints.apply(this,arguments)}translate3dShapes(){return c.translate3dShapes.apply(this,arguments)}afterColumnTranslate(){let L,S,w,R,O=this.yAxis,I=this.xAxis,_=I.startAngleRad,A=this.chart,F=this.xAxis.isRadial,P=Math.max(A.chartWidth,A.chartHeight)+999;this.points.forEach(D=>{let C=D.shapeArgs||{},d=this.options.minPointLength,g=D.plotY,y=O.translate(D.high,0,1,0,1);if(b(y)&&b(g))if(D.plotHigh=u(y,-P,P),D.plotLow=u(g,-P,P),R=D.plotHigh,Math.abs(L=x(D.rectPlotY,D.plotY)-D.plotHigh)\u25CF {series.name}: {point.low} - {point.high}
'},whiskerWidth:null}}),i(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{arearange:a}=n.seriesTypes,{addEvent:h,merge:c,extend:f}=l;class u extends e{getColumnMetrics(){return this.linkedParent&&this.linkedParent.columnMetrics||s.prototype.getColumnMetrics.call(this)}drawDataLabels(){let b=this.pointValKey;if(a)for(let v of(a.prototype.drawDataLabels.call(this),this.points))v.y=v[b]}toYData(b){return[b.low,b.high]}}return u.defaultOptions=c(e.defaultOptions,r),h(u,"afterTranslate",function(){for(let p of this.points)p.plotLow=p.plotY},{order:0}),f(u.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),n.registerSeriesType("errorbar",u),u}),i(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{series:{prototype:{pointClass:s}}}=e;return class extends s{setState(r){this.state=r}}}),i(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{noop:l}=s,{series:a,seriesTypes:{column:h}}=r,{clamp:c,isNumber:f,extend:u,merge:p,pick:b,pInt:v,defined:x}=n;class m extends a{translate(){let L=this.yAxis,S=this.options,w=L.center;this.generatePoints(),this.points.forEach(R=>{let O=p(S.dial,R.dial),I=v(O.radius)*w[2]/200,_=v(O.baseLength)*I/100,A=v(O.rearLength)*I/100,F=O.baseWidth,P=O.topWidth,D=S.overshoot,C=L.startAngleRad+L.translate(R.y,void 0,void 0,void 0,!0);(f(D)||S.wrap===!1)&&(D=f(D)?D/180*Math.PI:0,C=c(C,L.startAngleRad-D,L.endAngleRad+D)),C=180*C/Math.PI,R.shapeType="path";let d=O.path||[["M",-A,-F/2],["L",_,-F/2],["L",I,-P/2],["L",I,P/2],["L",_,F/2],["L",-A,F/2],["Z"]];R.shapeArgs={d,translateX:w[0],translateY:w[1],rotation:C},R.plotX=w[0],R.plotY=w[1],x(R.y)&&L.max-L.min&&(R.percentage=(R.y-L.min)/(L.max-L.min)*100)})}drawPoints(){let L=this,S=L.chart,w=L.yAxis.center,R=L.pivot,O=L.options,I=O.pivot,_=S.renderer;L.points.forEach(A=>{let F=A.graphic,P=A.shapeArgs,D=P.d,C=p(O.dial,A.dial);F?(F.animate(P),P.d=D):A.graphic=_[A.shapeType](P).addClass("highcharts-dial").add(L.group),S.styledMode||A.graphic[F?"animate":"attr"]({stroke:C.borderColor,"stroke-width":C.borderWidth,fill:C.backgroundColor})}),R?R.animate({translateX:w[0],translateY:w[1]}):I&&(L.pivot=_.circle(0,0,I.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(w[0],w[1]).add(L.group),S.styledMode||L.pivot.attr({fill:I.backgroundColor,stroke:I.borderColor,"stroke-width":I.borderWidth}))}animate(L){let S=this;L||S.points.forEach(w=>{let R=w.graphic;R&&(R.attr({rotation:180*S.yAxis.startAngleRad/Math.PI}),R.animate({rotation:w.shapeArgs.rotation},S.options.animation))})}render(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),a.prototype.render.call(this),this.group.clip(this.chart.clipRect)}setData(L,S){a.prototype.setData.call(this,L,!1),this.processData(),this.generatePoints(),b(S,!0)&&this.chart.redraw()}hasData(){return!!this.points.length}}return m.defaultOptions=p(a.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),u(m.prototype,{angular:!0,directTouch:!0,drawGraph:l,drawTracker:h.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:e,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("gauge",m),m}),i(t,"Series/DragNodesComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{composed:r}=e,{addEvent:n,pushUnique:l}=s;function a(){let h,c,f,u=this;u.container&&(h=n(u.container,"mousedown",p=>{let b=u.hoverPoint;b&&b.series&&b.series.hasDraggableNodes&&b.series.options.draggable&&(b.series.onMouseDown(b,p),c=n(u.container,"mousemove",v=>b&&b.series&&b.series.onMouseMove(b,v)),f=n(u.container.ownerDocument,"mouseup",v=>(c(),f(),b&&b.series&&b.series.onMouseUp(b,v))))})),n(u,"destroy",function(){h()})}return{compose:function(h){l(r,"DragNodes")&&n(h,"load",a)},onMouseDown:function(h,c){let f=this.chart.pointer?.normalize(c)||c;h.fixedPosition={chartX:f.chartX,chartY:f.chartY,plotX:h.plotX,plotY:h.plotY},h.inDragMode=!0},onMouseMove:function(h,c){if(h.fixedPosition&&h.inDragMode){let f,u,p=this.chart,b=p.pointer?.normalize(c)||c,v=h.fixedPosition.chartX-b.chartX,x=h.fixedPosition.chartY-b.chartY,m=p.graphLayoutsLookup;(Math.abs(v)>5||Math.abs(x)>5)&&(f=h.fixedPosition.plotX-v,u=h.fixedPosition.plotY-x,p.isInsidePlot(f,u)&&(h.plotX=f,h.plotY=u,h.hasDragged=!0,this.redrawHalo(h),m.forEach(E=>{E.restartSimulation()})))}},onMouseUp:function(h){h.fixedPosition&&(h.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),h.inDragMode=h.hasDragged=!1,this.options.fixedDraggable||delete h.fixedPosition)},redrawHalo:function(h){h&&this.halo&&this.halo.attr({d:h.haloPath(this.options.states.hover.halo.size)})}}}),i(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r){let{setAnimation:n}=e,{composed:l}=s,{addEvent:a,pushUnique:h}=r;function c(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation()}),this.redraw())}function f(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(b=>{b.updateSimulation(!1)}),this.redraw())}function u(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(b=>{b.stop()})}function p(){let b,v=!1,x=m=>{m.maxIterations--&&isFinite(m.temperature)&&!m.isStable()&&!m.enableSimulation&&(m.beforeStep&&m.beforeStep(),m.step(),b=!1,v=!0)};if(this.graphLayoutsLookup){for(n(!1,this),this.graphLayoutsLookup.forEach(m=>m.start());!b;)b=!0,this.graphLayoutsLookup.forEach(x);v&&this.series.forEach(m=>{m&&m.layout&&m.render()})}}return{compose:function(b){h(l,"GraphLayout")&&(a(b,"afterPrint",c),a(b,"beforePrint",f),a(b,"predraw",u),a(b,"render",p))},integrations:{},layouts:{}}}),i(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],function(e,s,r){let{seriesTypes:{bubble:{prototype:{pointClass:n}}}}=r;return class extends n{destroy(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),s.prototype.destroy.apply(this,arguments)}firePointEvent(){let l=this.series.options;if(this.isParentNode&&l.parentNode){let a=l.allowPointSelect;l.allowPointSelect=l.parentNode.allowPointSelect,s.prototype.firePointEvent.apply(this,arguments),l.allowPointSelect=a}else s.prototype.firePointEvent.apply(this,arguments)}select(){let l=this.series.chart;this.isParentNode?(l.getSelectedPoints=l.getSelectedParentNodes,s.prototype.select.apply(this,arguments),l.getSelectedPoints=e.prototype.getSelectedPoints):s.prototype.select.apply(this,arguments)}}}),i(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],function(e){let{isNumber:s}=e;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){let{numberFormatter:r}=this.series.chart,{value:n}=this.point;return s(n)?r(n,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}}),i(t,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(e,s,r){let n=e.getMass(),l=-r.x*s*this.diffTemperature,a=-r.y*s*this.diffTemperature;e.fromNode.fixedPosition||(e.fromNode.plotX-=l*n.fromNode/e.fromNode.degree,e.fromNode.plotY-=a*n.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.plotX+=l*n.toNode/e.toNode.degree,e.toNode.plotY+=a*n.toNode/e.toNode.degree)},attractiveForceFunction:function(e,s){return(s-e)/e},barycenter:function(){let e=this.options.gravitationalConstant||0,s=(this.barycenter.xFactor-(this.box.left+this.box.width)/2)*e,r=(this.barycenter.yFactor-(this.box.top+this.box.height)/2)*e;this.nodes.forEach(function(n){n.fixedPosition||(n.plotX-=s/n.mass/n.degree,n.plotY-=r/n.mass/n.degree)})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.5)},integrate:function(e,s){let r=-e.options.friction,n=e.options.maxSpeed,l=s.prevX,a=s.prevY,h=(s.plotX+s.dispX-l)*r,c=(s.plotY+s.dispY-a)*r,f=Math.abs,u=f(h)/(h||1),p=f(c)/(c||1),b=u*Math.min(n,Math.abs(h)),v=p*Math.min(n,Math.abs(c));s.prevX=s.plotX+s.dispX,s.prevY=s.plotY+s.dispY,s.plotX+=b,s.plotY+=v,s.temperature=e.vectorLength({x:b,y:v})},repulsive:function(e,s,r){let n=s*this.diffTemperature/e.mass/e.degree;e.fixedPosition||(e.plotX+=r.x*n,e.plotY+=r.y*n)},repulsiveForceFunction:function(e,s){return(s-e)/e*(s>e?1:0)}}}),i(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],function(e,s){let{noop:r}=e;return{barycenter:function(){let n,l,a=this.options.gravitationalConstant,h=this.box,c=this.nodes;for(let f of c)this.options.splitSeries&&!f.isParentNode?(n=f.series.parentNode.plotX,l=f.series.parentNode.plotY):(n=h.width/2,l=h.height/2),f.fixedPosition||(f.plotX-=(f.plotX-n)*a/(f.mass*Math.sqrt(c.length)),f.plotY-=(f.plotY-l)*a/(f.mass*Math.sqrt(c.length)))},getK:r,integrate:s.integrate,repulsive:function(n,l,a,h){let c=l*this.diffTemperature/n.mass/n.degree,f=a.x*c,u=a.y*c;n.fixedPosition||(n.plotX+=f,n.plotY+=u),h.fixedPosition||(h.plotX-=f,h.plotY-=u)},repulsiveForceFunction:function(n,l,a,h){return Math.min(n,(a.marker.radius+h.marker.radius)/2)}}}),i(t,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(e,s,r,n){let l=e.getMass(),a=r.x/n*s,h=r.y/n*s;e.fromNode.fixedPosition||(e.fromNode.dispX-=a*l.fromNode/e.fromNode.degree,e.fromNode.dispY-=h*l.fromNode/e.fromNode.degree),e.toNode.fixedPosition||(e.toNode.dispX+=a*l.toNode/e.toNode.degree,e.toNode.dispY+=h*l.toNode/e.toNode.degree)},attractiveForceFunction:function(e,s){return e*e/s},barycenter:function(){let e=this.options.gravitationalConstant,s=this.barycenter.xFactor,r=this.barycenter.yFactor;this.nodes.forEach(function(n){if(!n.fixedPosition){let l=n.getDegree(),a=l*(1+l/2);n.dispX+=(s-n.plotX)*e*a/n.degree,n.dispY+=(r-n.plotY)*e*a/n.degree}})},getK:function(e){return Math.pow(e.box.width*e.box.height/e.nodes.length,.3)},integrate:function(e,s){s.dispX+=s.dispX*e.options.friction,s.dispY+=s.dispY*e.options.friction;let r=s.temperature=e.vectorLength({x:s.dispX,y:s.dispY});r!==0&&(s.plotX+=s.dispX/r*Math.min(Math.abs(s.dispX),e.temperature),s.plotY+=s.dispY/r*Math.min(Math.abs(s.dispY),e.temperature))},repulsive:function(e,s,r,n){e.dispX+=r.x/n*s/e.degree,e.dispY+=r.y/n*s/e.degree},repulsiveForceFunction:function(e,s){return s*s/e}}}),i(t,"Series/Networkgraph/QuadTreeNode.js",[],function(){class e{constructor(r){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=r,this.boxSize=Math.min(r.width,r.height)}divideBox(){let r=this.box.width/2,n=this.box.height/2;this.nodes[0]=new e({left:this.box.left,top:this.box.top,width:r,height:n}),this.nodes[1]=new e({left:this.box.left+r,top:this.box.top,width:r,height:n}),this.nodes[2]=new e({left:this.box.left+r,top:this.box.top+n,width:r,height:n}),this.nodes[3]=new e({left:this.box.left,top:this.box.top+n,width:r,height:n})}getBoxPosition(r){let n=r.plotXthis.step())):(this.simulation=!1,this.series.forEach(E=>{p(E,"afterSimulation")}))}}stop(){this.simulation&&h.cancelAnimationFrame(this.simulation)}setArea(m,E,L,S){this.box={left:m,top:E,width:L,height:S}}setK(){this.k=this.options.linkLength||this.integration.getK(this)}addElementsToCollection(m,E){for(let L of m)E.indexOf(L)===-1&&E.push(L)}removeElementFromCollection(m,E){let L=E.indexOf(m);L!==-1&&E.splice(L,1)}clear(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()}resetSimulation(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()}restartSimulation(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))}setMaxIterations(m){this.maxIterations=b(m,this.options.maxIterations)}setTemperature(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)}setDiffTemperature(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)}setInitialRendering(m){this.initialRendering=m}createQuadTree(){this.quadTree=new n(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)}initPositions(){let m=this.options.initialPositions;if(u(m))for(let E of(m.call(this),this.nodes))f(E.prevX)||(E.prevX=E.plotX),f(E.prevY)||(E.prevY=E.plotY),E.dispX=0,E.dispY=0;else m==="circle"?this.setCircularPositions():this.setRandomPositions()}setCircularPositions(){let m,E=this.box,L=this.nodes,S=2*Math.PI/(L.length+1),w=L.filter(function(A){return A.linksTo.length===0}),R={},O=this.options.initialPositionRadius,I=A=>{for(let F of A.linksFrom||[])R[F.toNode.id]||(R[F.toNode.id]=!0,_.push(F.toNode),I(F.toNode))},_=[];for(let A of w)_.push(A),I(A);if(_.length)for(let A of L)_.indexOf(A)===-1&&_.push(A);else _=L;for(let A=0,F=_.length;A{let O=R*R/Math.PI;return O-Math.floor(O)};for(let R=0,O=L.length;Rthis.barnesHutApproximation(m,E));else{let m,E,L;for(let S of this.nodes)for(let w of this.nodes)S===w||S.fixedPosition||(L=this.getDistXY(S,w),(E=this.vectorLength(L))!==0&&(m=this.repulsiveForce(E,this.k),this.force("repulsive",S,m*w.mass,L,E)))}}attractiveForces(){let m,E,L;for(let S of this.links)S.fromNode&&S.toNode&&(m=this.getDistXY(S.fromNode,S.toNode),(E=this.vectorLength(m))!==0&&(L=this.attractiveForce(E,this.k),this.force("attractive",S,L,m,E)))}applyLimits(){for(let m of this.nodes)m.fixedPosition||(this.integration.integrate(this,m),this.applyLimitBox(m,this.box),m.dispX=0,m.dispY=0)}applyLimitBox(m,E){let L=m.radius;m.plotX=c(m.plotX,E.left+L,E.width-L),m.plotY=c(m.plotY,E.top+L,E.height-L)}coolDown(m,E,L){return m-E*L}isStable(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||this.temperature<=0}getSystemTemperature(){let m=0;for(let E of this.nodes)m+=E.temperature;return m}vectorLength(m){return Math.sqrt(m.x*m.x+m.y*m.y)}getDistR(m,E){let L=this.getDistXY(m,E);return this.vectorLength(L)}getDistXY(m,E){let L=m.plotX-E.plotX,S=m.plotY-E.plotY;return{x:L,y:S,absX:Math.abs(L),absY:Math.abs(S)}}}return v}),i(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{addEvent:l,pick:a}=n;function h(){let u=this.series,p=[];return u.forEach(b=>{b.parentNode&&b.parentNode.selected&&p.push(b.parentNode)}),p}function c(){this.allDataPoints&&delete this.allDataPoints}class f extends r{constructor(){super(...arguments),this.index=NaN,this.nodes=[],this.series=[]}static compose(p){r.compose(p),e.integrations.packedbubble=s,e.layouts.packedbubble=f;let b=p.prototype;b.getSelectedParentNodes||(l(p,"beforeRedraw",c),b.getSelectedParentNodes=h)}beforeStep(){this.options.marker&&this.series.forEach(p=>{p&&p.calculateParentRadius()})}isStable(){let p=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&p<1e-5||this.temperature<=0}setCircularPositions(){let p=this.box,b=this.nodes,v=2*Math.PI/(b.length+1),x=this.options.initialPositionRadius,m,E,L=0;for(let S of b)this.options.splitSeries&&!S.isParentNode?(m=S.series.parentNode.plotX,E=S.series.parentNode.plotY):(m=p.width/2,E=p.height/2),S.plotX=S.prevX=a(S.plotX,m+x*Math.cos(S.index||L*v)),S.plotY=S.prevY=a(S.plotY,E+x*Math.sin(S.index||L*v)),S.dispX=0,S.dispY=0,L++}repulsiveForces(){let p,b,v,x=this,m=x.options.bubblePadding,E=x.nodes;E.forEach(L=>{L.degree=L.mass,L.neighbours=0,E.forEach(S=>{p=0,L!==S&&!L.fixedPosition&&(x.options.seriesInteraction||L.series===S.series)&&(v=x.getDistXY(L,S),(b=x.vectorLength(v)-(L.marker.radius+S.marker.radius+m))<0&&(L.degree+=.01,L.neighbours++,p=x.repulsiveForce(-b/Math.sqrt(L.neighbours),x.k,L,S)),x.force("repulsive",L,p*S.mass,v,S,b))})})}applyLimitBox(p,b){let v,x;this.options.splitSeries&&!p.isParentNode&&this.options.parentNodeLimit&&(v=this.getDistXY(p,p.series.parentNode),(x=p.series.parentNodeRadius-p.marker.radius-this.vectorLength(v))<0&&x>-2*p.marker.radius&&(p.plotX-=.01*v.x,p.plotY-=.01*v.y)),super.applyLimitBox(p,b)}}return e.layouts.packedbubble=f,f}),i(t,"Series/SimulationSeriesUtilities.js",[t["Core/Utilities.js"],t["Core/Animation/AnimationUtilities.js"]],function(e,s){let{merge:r,syncTimeout:n}=e,{animObject:l}=s;return{initDataLabels:function(){let a=this.options.dataLabels;if(!this.dataLabelsGroup){let h=this.initDataLabelsGroup();return!this.chart.styledMode&&a?.style&&h.css(a.style),h.attr({opacity:0}),this.visible&&h.show(),h}return this.dataLabelsGroup.attr(r({opacity:1},this.getPlotBox("data-labels"))),this.dataLabelsGroup},initDataLabelsDefer:function(){let a=this.options.dataLabels;a?.defer&&this.options.layoutAlgorithm?.enableSimulation?n(()=>{this.deferDataLabels=!1},a?l(a.animation).defer:0):this.deferDataLabels=!1}}}),i(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Series/SimulationSeriesUtilities.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c,f,u){let{parse:p}=e,{noop:b}=n,{series:{prototype:v},seriesTypes:{bubble:x}}=c,{initDataLabels:m,initDataLabelsDefer:E}=f,{addEvent:L,clamp:S,defined:w,extend:R,fireEvent:O,isArray:I,isNumber:_,merge:A,pick:F}=u;class P extends x{constructor(){super(...arguments),this.parentNodeMass=0,this.deferDataLabels=!0}static compose(C,d,g,y){x.compose(C,d,g,y),s.compose(d),h.compose(d)}accumulateAllPoints(){let C,d=this.chart,g=[];for(let y of d.series)if(y.is("packedbubble")&&y.reserveSpace()){C=y.yData||[];for(let M=0;M{T.mass=2,T.degree=1,T.collisionNmb=1}),k.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),k.addElementsToCollection([this],k.series),k.addElementsToCollection(this.points,k.nodes)}addSeriesLayout(){let C=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},d=C.type||"packedbubble",g=this.chart.graphLayoutsStorage,y=this.chart.graphLayoutsLookup,M=A(C,C.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),k=g[d+"-series"];k||(g[d+"-series"]=k=new r.layouts[d],k.init(M),y.splice(k.index,0,k)),this.parentNodeLayout=k,this.createParentNodes()}calculateParentRadius(){let C=this.seriesBox();this.parentNodeRadius=S(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,C?Math.max(Math.sqrt(Math.pow(C.width,2)+Math.pow(C.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)}calculateZExtremes(){let C=this.chart.series,d=this.options.zMin,g=this.options.zMax,y=1/0,M=-1/0;return d&&g?[d,g]:(C.forEach(k=>{k.yData.forEach(T=>{w(T)&&(T>M&&(M=T),T{this.parentNodeMass+=Math.PI*Math.pow(z.marker.radius,2)}),this.calculateParentRadius(),g.nodes.forEach(z=>{z.seriesIndex===this.index&&(M=!0)}),g.setArea(0,0,d.plotWidth,d.plotHeight),M||(k||(k=new C(this,{mass:this.parentNodeRadius/2,marker:T,dataLabels:{inside:!1},states:{normal:{marker:T},hover:{marker:T}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(k.plotX=this.parentNode.plotX,k.plotY=this.parentNode.plotY),this.parentNode=k,g.addElementsToCollection([this],g.series),g.addElementsToCollection([k],g.nodes))}deferLayout(){let C=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),C.splitSeries&&this.addSeriesLayout())}destroy(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(C=>{C.removeElementFromCollection(this,C.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),v.destroy.apply(this,arguments)}drawDataLabels(){!this.deferDataLabels&&(v.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",v.drawDataLabels.call(this,[this.parentNode])))}drawGraph(){if(!this.layout||!this.layout.options.splitSeries)return;let C=this.chart,d=this.layout.options.parentNodeOptions.marker,g={fill:d.fillColor||p(this.color).brighten(.4).get(),opacity:d.fillOpacity,stroke:d.lineColor||this.color,"stroke-width":F(d.lineWidth,this.options.lineWidth)},y={};this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,C.seriesGroup),this.group?.attr({zIndex:2}),this.calculateParentRadius(),this.parentNode&&w(this.parentNode.plotX)&&w(this.parentNode.plotY)&&w(this.parentNodeRadius)&&(y=A({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},g),this.parentNode.graphic||(this.graph=this.parentNode.graphic=C.renderer.symbol(g.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(y))}drawTracker(){let C,d=this.parentNode;super.drawTracker(),d&&(C=I(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),C.forEach(g=>{(g.div||g.element).point=d}))}getPointRadius(){let C,d,g,y,M=this.chart,k=M.plotWidth,T=M.plotHeight,z=this.options,N=z.useSimulation,G=Math.min(k,T),X={},j=[],B=M.allDataPoints||[],W=B.length;["minSize","maxSize"].forEach(U=>{let q=parseInt(z[U],10),H=/%$/.test(z[U]);X[U]=H?G*q/100:q*Math.sqrt(W)}),M.minRadius=C=X.minSize/Math.sqrt(W),M.maxRadius=d=X.maxSize/Math.sqrt(W);let V=N?this.calculateZExtremes():[C,d];B.forEach((U,q)=>{g=N?S(U[2],V[0],V[1]):U[2],(y=this.getRadius(V[0],V[1],C,d,g))===0&&(y=null),B[q][2]=y,j.push(y)}),this.radii=j}init(){return v.init.apply(this,arguments),E.call(this),this.eventsToUnbind.push(L(this,"updatedData",function(){this.chart.series.forEach(C=>{C.type===this.type&&(C.isDirty=!0)},this)})),this}onMouseUp(C){if(C.fixedPosition&&!C.removed){let d,g=this.layout,y=this.parentNodeLayout;y&&g.options.dragBetweenSeries&&y.nodes.forEach(M=>{C&&C.marker&&M!==C.series.parentNode&&(d=g.getDistXY(C,M),g.vectorLength(d)-M.marker.radius-C.marker.radius<0&&(M.series.addPoint(A(C.options,{plotX:C.plotX,plotY:C.plotY}),!1),g.removeElementFromCollection(C,g.nodes),C.remove()))}),s.onMouseUp.apply(this,arguments)}}placeBubbles(C){let d=this.checkOverlap,g=this.positionBubble,y=[],M=1,k=0,T=0,z,N=[],G,X=C.sort((j,B)=>B[2]-j[2]);if(X.length){if(y.push([[0,0,X[0][2],X[0][3],X[0][4]]]),X.length>1)for(y.push([[0,0-X[1][2]-X[0][2],X[1][2],X[1][3],X[1][4]]]),G=2;G1&&y[M-1][T+1]&&d(z,y[M-1][T+1])?(T++,y[M].push(g(y[M][k],y[M-1][T],X[G])),k++):(k++,y[M].push(z));this.chart.stages=y,this.chart.rawPositions=[].concat.apply([],y),this.resizeRadius(),N=this.chart.rawPositions}return N}pointAttribs(C,d){let g=this.options,y=C&&C.isParentNode,M=g.marker;y&&g.layoutAlgorithm&&g.layoutAlgorithm.parentNodeOptions&&(M=g.layoutAlgorithm.parentNodeOptions.marker);let k=M.fillOpacity,T=v.pointAttribs.call(this,C,d);return k!==1&&(T["fill-opacity"]=k),T}positionBubble(C,d,g){let y=Math.pow,M=(0,Math.sqrt)(y(C[0]-d[0],2)+y(C[1]-d[1],2)),k=(0,Math.acos)((y(M,2)+y(g[2]+d[2],2)-y(g[2]+C[2],2))/(2*(g[2]+d[2])*M)),T=(0,Math.asin)((0,Math.abs)(C[0]-d[0])/M),z=(C[1]-d[1]<0?0:Math.PI)+k+T*((C[0]-d[0])*(C[1]-d[1])<0?1:-1);return[d[0]+(d[2]+g[2])*Math.sin(z),d[1]-(d[2]+g[2])*Math.cos(z),g[2],g[3],g[4]]}render(){let C=[];v.render.apply(this,arguments),!this.options.dataLabels.allowOverlap&&(this.data.forEach(d=>{I(d.dataLabels)&&d.dataLabels.forEach(g=>{C.push(g)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(C))}resizeRadius(){let C,d,g,y,M,k=this.chart,T=k.rawPositions,z=Math.min,N=Math.max,G=k.plotLeft,X=k.plotTop,j=k.plotHeight,B=k.plotWidth;for(let q of(C=g=Number.POSITIVE_INFINITY,d=y=Number.NEGATIVE_INFINITY,T))M=q[2],C=z(C,q[0]-M),d=N(d,q[0]+M),g=z(g,q[1]-M),y=N(y,q[1]+M);let W=[d-C,y-g],V=[(B-G)/W[0],(j-X)/W[1]],U=z.apply([],V);if(Math.abs(U-1)>1e-10){for(let q of T)q[2]*=U;this.placeBubbles(T)}else k.diffY=j/2+X-g-(y-g)/2,k.diffX=B/2+G-C-(d-C)/2}seriesBox(){let C,d=this.chart,g=this.data,y=Math.max,M=Math.min,k=[d.plotLeft,d.plotLeft+d.plotWidth,d.plotTop,d.plotTop+d.plotHeight];return g.forEach(T=>{w(T.plotX)&&w(T.plotY)&&T.marker.radius&&(C=T.marker.radius,k[0]=M(k[0],T.plotX-C),k[1]=y(k[1],T.plotX+C),k[2]=M(k[2],T.plotY-C),k[3]=y(k[3],T.plotY+C))}),_(k.width/k.height)?k:null}setVisible(){let C=this;v.setVisible.apply(C,arguments),C.parentNodeLayout&&C.graph?C.visible?(C.graph.show(),C.parentNode.dataLabel&&C.parentNode.dataLabel.show()):(C.graph.hide(),C.parentNodeLayout.removeElementFromCollection(C.parentNode,C.parentNodeLayout.nodes),C.parentNode.dataLabel&&C.parentNode.dataLabel.hide()):C.layout&&(C.visible?C.layout.addElementsToCollection(C.points,C.layout.nodes):C.points.forEach(d=>{C.layout.removeElementFromCollection(d,C.layout.nodes)}))}translate(){let C,d,g,y=this.chart,M=this.data,k=this.index,T=this.options.useSimulation;for(let z of(this.processedXData=this.xData,this.generatePoints(),w(y.allDataPoints)||(y.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),T?g=y.allDataPoints:(g=this.placeBubbles(y.allDataPoints),this.options.draggable=!1),g))z[3]===k&&(C=M[z[4]],d=F(z[2],void 0),T||(C.plotX=z[0]-y.plotLeft+y.diffX,C.plotY=z[1]-y.plotTop+y.diffY),_(d)&&(C.marker=R(C.marker,{radius:d,width:2*d,height:2*d}),C.radius=d));T&&this.deferLayout(),O(this,"afterTranslate")}}return P.defaultOptions=A(x.defaultOptions,a),R(P.prototype,{pointClass:l,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],initDataLabels:m,alignDataLabel:v.alignDataLabel,indexateNodes:b,onMouseDown:s.onMouseDown,onMouseMove:s.onMouseMove,redrawHalo:s.redrawHalo,searchPoint:b}),c.registerSeriesType("packedbubble",P),P}),i(t,"Series/Polygon/PolygonSeriesDefaults.js",[],function(){return{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0,legendSymbol:"rectangle"}}),i(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Series/Polygon/PolygonSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{noop:l}=e,{area:a,line:h,scatter:c}=r.seriesTypes,{extend:f,merge:u}=n;class p extends c{getGraphPath(){let v=h.prototype.getGraphPath.call(this),x=v.length+1;for(;x--;)(x===v.length||v[x][0]==="M")&&x>0&&v.splice(x,0,["Z"]);return this.areaPath=v,v}drawGraph(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)}}return p.defaultOptions=u(c.defaultOptions,s),f(p.prototype,{type:"polygon",drawTracker:h.prototype.drawTracker,setStackedPoints:l}),r.registerSeriesType("polygon",p),p}),i(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}}}),i(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/RadialAxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n){var l;let{defaultOptions:a}=s,{composed:h,noop:c}=r,{addEvent:f,correctFloat:u,defined:p,extend:b,fireEvent:v,isObject:x,merge:m,pick:E,pushUnique:L,relativeLength:S,wrap:w}=n;return function(R){function O(){this.autoConnect=this.isCircular&&E(this.userMax,this.options.max)===void 0&&u(this.endAngleRad-this.startAngleRad)===u(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function I(){return()=>{if(this.isRadial&&this.tickPositions&&this.options.labels&&this.options.labels.allowOverlap!==!0)return this.tickPositions.map(Y=>this.ticks[Y]&&this.ticks[Y].label).filter(Y=>!!Y)}}function _(){return c}function A(Y,Z,K){let J=this.pane.center,tt=Y.value,$,Q,et;return this.isCircular?(p(tt)?Y.point&&(Y.point.shapeArgs||{}).start&&(tt=this.chart.inverted?this.translate(Y.point.rectPlotY,!0):Y.point.x):(Q=Y.chartX||0,et=Y.chartY||0,tt=this.translate(Math.atan2(et-K,Q-Z)-this.startAngleRad,!0)),Q=($=this.getPosition(tt)).x,et=$.y):(p(tt)||(Q=Y.chartX,et=Y.chartY),p(Q)&&p(et)&&(K=J[1]+this.chart.plotTop,tt=this.translate(Math.min(Math.sqrt(Math.pow(Q-Z,2)+Math.pow(et-K,2)),J[2]/2)-J[3]/2,!0))),[tt,Q||0,et||0]}function F(Y,Z,K){let J=this.pane.center,tt=this.chart,$=this.left||0,Q=this.top||0,et,it=E(Z,J[2]/2-this.offset),st;return K===void 0&&(K=this.horiz?0:this.center&&-this.center[3]/2),K&&(it+=K),this.isCircular||Z!==void 0?((st=this.chart.renderer.symbols.arc($+J[0],Q+J[1],it,it,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[$+J[0]],st.yBounds=[Q+J[1]-it]):(et=this.postTranslate(this.angleRad,it),st=[["M",this.center[0]+tt.plotLeft,this.center[1]+tt.plotTop],["L",et.x,et.y]]),st}function P(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function D(Y,Z,K){let J=this.chart,tt=Pt=>{if(typeof Pt=="string"){let jt=parseInt(Pt,10);return nt.test(Pt)&&(jt=jt*et/100),jt}return Pt},$=this.center,Q=this.startAngleRad,et=$[2]/2,it=Math.min(this.offset,0),st=this.left||0,rt=this.top||0,nt=/%$/,ot=this.isCircular,at,ct,ht,lt,yt,Et,dt=E(tt(K.outerRadius),et),St=tt(K.innerRadius),mt=E(tt(K.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),jt=this.translate(Z);ot||(dt=Pt||0,St=jt||0),K.shape!=="circle"&&ot?(at=Q+(Pt||0),ct=Q+(jt||0)):(at=-Math.PI/2,ct=1.5*Math.PI,yt=!0),dt-=it,mt-=it,Et=J.renderer.symbols.arc(st+$[0],rt+$[1],dt,dt,{start:Math.min(at,ct),end:Math.max(at,ct),innerR:E(St,dt-mt),open:yt,borderRadius:K.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 C(Y){let Z=this.pane.center,K=this.chart,J=K.inverted,tt=Y.reverse,$=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},Q=$.innerRadius||"0%",et=$.outerRadius||"100%",it=Z[0]+K.plotLeft,st=Z[1]+K.plotTop,rt=this.height,nt=Y.isCrosshair,ot=Z[3]/2,at=Y.value,ct,ht,lt,yt,Et,dt,St,mt,Pt,jt=this.getPosition(at),me=jt.x,se=jt.y;if(nt&&(at=(mt=this.getCrosshairPosition(Y,it,st))[0],me=mt[1],se=mt[2]),this.isCircular)ht=Math.sqrt(Math.pow(me-it,2)+Math.pow(se-st,2)),lt=typeof Q=="string"?S(Q,1):Q/ht,yt=typeof et=="string"?S(et,1):et/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=[],K[J?"yAxis":"xAxis"].forEach(Ie=>{Ie.pane===this.pane&&(Et=Ie)}),Et){St=Et.tickPositions,Et.autoConnect&&(St=St.concat([St[0]])),tt&&(St=St.slice().reverse()),at&&(at+=ot);for(let Ie=0;IeMath.PI&&(it-=$),st>Math.PI&&(st-=$),this.normalizedStartAngleRad=it,this.normalizedEndAngleRad=st}}function k(Y){this.isRadial&&(Y.align=void 0,Y.preventDefault())}function T(){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 z(Y){let Z,K=this.chart,J=K.angular,tt=K.polar,$=this.isXAxis,Q=this.coll,et=Y.userOptions.pane||0,it=this.pane=K.pane&&K.pane[et];if(Q==="colorAxis"){this.isRadial=!1;return}J?(J&&$?(this.isHidden=!0,this.createLabelCollector=_,this.getOffset=c,this.redraw=W,this.render=W,this.setScale=c,this.setCategories=c,this.setTitle=c):y(this),Z=!$):tt&&(y(this),Z=this.horiz),J||tt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&K.labelCollectors.push(this.labelCollector)):this.isRadial=!1,it&&Z&&(it.axis=this),this.isCircular=Z}function N(){this.isRadial&&this.beforeSetTickPositions()}function G(Y){let Z=this.label;if(!Z)return;let K=this.axis,J=Z.getBBox(),tt=K.options.labels,$=(K.translate(this.pos)+K.startAngleRad+Math.PI/2)/Math.PI*180%360,Q=Math.round($),et=p(tt.y)?0:-(.3*J.height),it=tt.y,st,rt=20,nt=tt.align,ot="end",at=Q<0?Q+360:Q,ct=at,ht=0,lt=0;K.isRadial&&(st=K.getPosition(this.pos,K.center[2]/2+S(E(tt.distance,-25),K.center[2]/2,-K.center[2]/2)),tt.rotation==="auto"?Z.attr({rotation:$}):p(it)||(it=K.chart.renderer.fontMetrics(Z).b-J.height/2),p(nt)||(K.isCircular?(J.width>K.len*K.tickInterval/(K.max-K.min)&&(rt=0),nt=$>rt&&$<180-rt?"left":$>180+rt&&$<360-rt?"right":"center"):nt="center",Z.attr({align:nt})),nt==="auto"&&K.tickPositions.length===2&&K.isCircular&&(at>90&&at<180?at=180-at:at>270&&at<=360&&(at=540-at),ct>180&&ct<=360&&(ct=360-ct),(K.pane.options.startAngle===Q||K.pane.options.startAngle===Q+360||K.pane.options.startAngle===Q-360)&&(ot="start"),nt=Q>=-90&&Q<=90||Q>=-360&&Q<=-270||Q>=270&&Q<=360?ot==="start"?"right":"left":ot==="start"?"left":"right",ct>70&&ct<110&&(nt="center"),at<15||at>=180&&at<195?ht=.3*J.height:at>=15&&at<=35?ht=ot==="start"?0:.75*J.height:at>=195&&at<=215?ht=ot==="start"?.75*J.height:0:at>35&&at<=90?ht=ot==="start"?-(.25*J.height):J.height:at>215&&at<=270&&(ht=ot==="start"?J.height:-(.25*J.height)),ct<15?lt=ot==="start"?-(.15*J.height):.15*J.height:ct>165&&ct<=180&&(lt=ot==="start"?.15*J.height:-(.15*J.height)),Z.attr({align:nt}),Z.translate(lt,ht+et)),Y.pos.x=st.x+(tt.x||0),Y.pos.y=st.y+(it||0))}function X(Y){this.axis.getPosition&&b(Y.pos,this.axis.getPosition(this.pos))}function j({options:Y}){Y.xAxis&&m(!0,R.radialDefaultOptions.circular,Y.xAxis),Y.yAxis&&m(!0,R.radialDefaultOptions.radialGauge,Y.yAxis)}function B(Y,Z){let K=this.chart,J=this.center;return Y=this.startAngleRad+Y,{x:K.plotLeft+J[0]+Math.cos(Y)*Z,y:K.plotTop+J[1]+Math.sin(Y)*Z}}function W(){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])*E(this.sector,1)/2)}function U(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.isCircular?this.transA=(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.transA=(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.isXAxis?this.minPixelPadding=this.transA*this.minPointOffset:this.minPixelPadding=0)}function q(Y){let{coll:Z}=this,{angular:K,inverted:J,polar:tt}=this.chart,$={};K?this.isXAxis||($=m(a.yAxis,R.radialDefaultOptions.radialGauge)):tt&&($=this.horiz?m(a.xAxis,R.radialDefaultOptions.circular):m(Z==="xAxis"?a.xAxis:a.yAxis,R.radialDefaultOptions.radial)),J&&Z==="yAxis"&&($.stackLabels=x(a.yAxis,!0)?a.yAxis.stackLabels:{},$.reversedStacks=!0);let Q=this.options=m($,Y);Q.plotBands||(Q.plotBands=[]),v(this,"afterSetOptions")}function H(Y,Z,K,J,tt,$,Q){let et,it=this.axis;return it.isRadial?["M",Z,K,"L",(et=it.getPosition(this.pos,it.center[2]/2+J)).x,et.y]:Y.call(this,Z,K,J,tt,$,Q)}R.radialDefaultOptions=m(e),R.compose=function(Y,Z){return L(h,"Axis.Radial")&&(f(Y,"afterInit",M),f(Y,"autoLabelAlign",k),f(Y,"destroy",T),f(Y,"init",z),f(Y,"initialAxisTranslation",N),f(Z,"afterGetLabelPosition",G),f(Z,"afterGetPosition",X),f(r,"setOptions",j),w(Z.prototype,"getMarkPath",H)),Y}}(l||(l={})),l}),i(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Extensions/Pane/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{animObject:h}=e,{composed:c}=s,{addEvent:f,defined:u,find:p,isNumber:b,merge:v,pick:x,pushUnique:m,relativeLength:E,splat:L,uniqueKey:S,wrap:w}=a;function R(){(this.pane||[]).forEach(j=>{j.render()})}function O(j){let B=j.args[0].xAxis,W=j.args[0].yAxis,V=j.args[0].chart;B&&W&&(W.gridLineInterpolation==="polygon"?(B.startOnTick=!0,B.endOnTick=!0):B.gridLineInterpolation==="polygon"&&V.inverted&&(W.startOnTick=!0,W.endOnTick=!0))}function I(){this.pane||(this.pane=[]),this.options.pane=L(this.options.pane),this.options.pane.forEach(j=>{new n(j,this)},this)}function _(j){let B=j.args.marker,W=this.chart.xAxis[0],V=this.chart.yAxis[0],U=this.chart.inverted,q=U?V:W,H=U?W:V;if(this.chart.polar){j.preventDefault();let Y=(B.attr?B.attr("start"):B.start)-q.startAngleRad,Z=B.attr?B.attr("r"):B.r,K=(B.attr?B.attr("end"):B.end)-q.startAngleRad,J=B.attr?B.attr("innerR"):B.innerR;j.result.x=Y+q.pos,j.result.width=K-Y,j.result.y=H.len+H.pos-Z,j.result.height=Z-J}}function A(j){let B=this.chart;if(B.polar&&B.hoverPane&&B.hoverPane.axis){j.preventDefault();let W=B.hoverPane.center,V=B.mouseDownX||0,U=B.mouseDownY||0,q=j.args.chartY,H=j.args.chartX,Y=2*Math.PI,Z=B.hoverPane.axis.startAngleRad,K=B.hoverPane.axis.endAngleRad,J=B.inverted?B.xAxis[0]:B.yAxis[0],tt={},$="arc";if(tt.x=W[0]+B.plotLeft,tt.y=W[1]+B.plotTop,this.zoomHor){let Q=Z>0?K-Z:Math.abs(Z)+Math.abs(K),et=Math.atan2(U-B.plotTop-W[1],V-B.plotLeft-W[0])-Z,it=Math.atan2(q-B.plotTop-W[1],H-B.plotLeft-W[0])-Z;tt.r=W[2]/2,tt.innerR=W[3]/2,et<=0&&(et+=Y),it<=0&&(it+=Y),itK+(Y-Q)/2&&(it=et,et=Z<=0?Z:0);let st=tt.start=Math.max(et+Z,Z),rt=tt.end=Math.min(it+Z,K);if(J.options.gridLineInterpolation==="polygon"){let nt=B.hoverPane.axis,ot=st-nt.startAngleRad+nt.pos,at=J.getPlotLinePath({value:J.max}),ct=nt.toValue(ot),ht=nt.toValue(ot+(rt-st));if(ctW[2]/2&&(it=W[2]/2),etj.max?(V[U].isNull=!0,V[U].plotY=NaN):V[U].isNull=V[U].isValid&&!V[U].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(f(this,"afterRender",function(){let q;W.polar&&this.options.clip!==!1&&(q=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:q[0],y:q[1],r:q[2]/2,innerR:q[3]/2}):this.clipCircle=function(H,Y,Z,K,J){let tt=S(),$=H.createElement("clipPath").attr({id:tt}).add(H.defs),Q=J?H.arc(Y,Z,K,J,0,2*Math.PI).add($):H.circle(Y,Z,K).add($);return Q.id=tt,Q.clipPath=$,Q}(W.renderer,q[0],q[1],q[2]/2,q[3]/2),this.group.clip(this.clipCircle),this.setClip=s.noop)})))}}function D(j){let B=this.chart,W=this.xAxis,V=this.yAxis,U=W.pane&&W.pane.center,q=j.chartX-(U&&U[0]||0)-B.plotLeft,H=j.chartY-(U&&U[1]||0)-B.plotTop,Y=B.inverted?{clientX:j.chartX-V.pos,plotY:j.chartY-W.pos}:{clientX:180+-180/Math.PI*Math.atan2(q,H)};return this.searchKDTree(Y)}function C(j,B,W,V){let U=V.tickInterval,q=V.tickPositions,H=p(q,Z=>Z>=W),Y=p([...q].reverse(),Z=>Z<=B);return u(H)||(H=q[q.length-1]),u(Y)||(Y=q[0],H+=U,j[0][0]="L",j.unshift(j[j.length-3])),(j=j.slice(q.indexOf(Y),q.indexOf(H)+1))[0][0]="M",j}function d(j,B){return p(this.pane||[],W=>W.options.id===B)||j.call(this,B)}function g(j,B,W,V,U,q){let H,Y,Z,K=this.chart,J=x(V.inside,!!this.options.stacking);if(K.polar){if(H=B.rectPlotX/Math.PI*180,K.inverted)this.forceDL=K.isInsidePlot(B.plotX,B.plotY),J&&B.shapeArgs?(Y=B.shapeArgs,U=v(U,{x:(Z=this.yAxis.postTranslate(((Y.start||0)+(Y.end||0))/2-this.xAxis.startAngleRad,B.barX+B.pointWidth/2)).x-K.plotLeft,y:Z.y-K.plotTop})):B.tooltipPos&&(U=v(U,{x:B.tooltipPos[0],y:B.tooltipPos[1]})),V.align=x(V.align,"center"),V.verticalAlign=x(V.verticalAlign,"middle");else{var tt;let $,Q;(tt=V).align===null&&($=H>20&&H<160?"left":H>200&&H<340?"right":"center",tt.align=$),tt.verticalAlign===null&&(Q=H<45||H>315?"bottom":H>135&&H<225?"top":"middle",tt.verticalAlign=Q),V=tt}r.prototype.alignDataLabel.call(this,B,W,V,U,q),this.isRadialBar&&B.shapeArgs&&B.shapeArgs.start===B.shapeArgs.end?W.hide():W.show()}else j.call(this,B,W,V,U,q)}function y(){let j=this.options,B=j.stacking,W=this.chart,V=this.xAxis,U=this.yAxis,q=U.reversed,H=U.center,Y=V.startAngleRad,Z=V.endAngleRad-Y,K=j.threshold,J=0,tt,$,Q,et,it,st=0,rt=0,nt,ot,at,ct,ht,lt,yt,Et;if(V.isRadial)for(Q=(tt=this.points).length,et=U.translate(U.min),it=U.translate(U.max),K=j.threshold||0,W.inverted&&b(K)&&u(J=U.translate(K))&&(J<0?J=0:J>Z&&(J=Z),this.translatedThreshold=J+Y);Q--;){if(lt=($=tt[Q]).barX,ot=$.x,at=$.y,$.shapeType="arc",W.inverted){$.plotY=U.translate(at),B&&U.stacking?(ht=U.stacking.stacks[(at<0?"-":"")+this.stackKey],this.visible&&ht&&ht[ot]&&!$.isNull&&(ct=ht[ot].points[this.getStackIndicator(void 0,ot,this.index).key],st=U.translate(ct[0]),rt=U.translate(ct[1]),u(st)&&(st=a.clamp(st,0,Z)))):(st=J,rt=$.plotY),st>rt&&(rt=[st,st=rt][0]),q?rt>et?rt=et:stet||rtit?rt=it:(rtit)&&(st=rt=0),U.min>U.max&&(st=rt=q?Z:0),st+=Y,rt+=Y,H&&($.barX=lt+=H[3]/2),yt=Math.max(lt,0),Et=Math.max(lt+$.pointWidth,0);let dt=j.borderRadius,St=E((typeof dt=="object"?dt.radius:dt)||0,Et-yt);$.shapeArgs={x:H[0],y:H[1],r:Et,innerR:yt,start:st,end:rt,borderRadius:St},$.opacity=st===rt?0:void 0,$.plotY=(u(this.translatedThreshold)&&(stH[1])}}function M(j,B){let W,V,U=this;if(this.chart.polar){B=B||this.points;for(let H=0;H{H.polarPlotY===void 0&&U.polar.toXY(H)})}let q=j.apply(this,[].slice.call(arguments,1));return V&&B.pop(),q}function k(j,B){let W=this.chart,V={xAxis:[],yAxis:[]};return W.polar?W.axes.forEach(U=>{if(U.coll==="colorAxis")return;let q=U.isXAxis,H=U.center,Y=B.chartX-H[0]-W.plotLeft,Z=B.chartY-H[1]-W.plotTop;V[q?"xAxis":"yAxis"].push({axis:U,value:U.translate(q?Math.PI-Math.atan2(Y,Z):Math.sqrt(Math.pow(Y,2)+Math.pow(Z,2)),!0)})}):V=j.call(this,B),V}function T(j,B){this.chart.polar||j.call(this,B)}function z(j,B){let W=this,V=this.chart,U=this.group,q=this.markerGroup,H=this.xAxis&&this.xAxis.center,Y=V.plotLeft,Z=V.plotTop,K=this.options.animation,J,tt,$,Q,et,it;V.polar?W.isRadialBar?B||(W.startAngleRad=x(W.translatedThreshold,W.xAxis.startAngleRad),s.seriesTypes.pie.prototype.animate.call(W,B)):(K=h(K),W.is("column")?B||(tt=H[3]/2,W.points.forEach(st=>{$=st.graphic,et=(Q=st.shapeArgs)&&Q.r,it=Q&&Q.innerR,$&&Q&&($.attr({r:tt,innerR:tt}),$.animate({r:et,innerR:it},W.options.animation))})):B?(J={translateX:H[0]+Y,translateY:H[1]+Z,scaleX:.001,scaleY:.001},U.attr(J),q&&q.attr(J)):(J={translateX:Y,translateY:Z,scaleX:1,scaleY:1},U.animate(J,K),q&&q.animate(J,K))):j.call(this,B)}function N(j,B,W,V){let U,q;if(this.chart.polar)if(V){let H=(q=function Z(K,J,tt,$){let Q,et,it,st,rt,nt,ot=$?1:0,at=(Q=J>=0&&J<=K.length-1?J:J<0?K.length-1+J:0)-1<0?K.length-(1+ot):Q-1,ct=Q+1>K.length-1?ot:Q+1,ht=K[at],lt=K[ct],yt=ht.plotX,Et=ht.plotY,dt=lt.plotX,St=lt.plotY,mt=K[Q].plotX,Pt=K[Q].plotY;et=(1.5*mt+yt)/2.5,it=(1.5*Pt+Et)/2.5,st=(1.5*mt+dt)/2.5,rt=(1.5*Pt+St)/2.5;let jt=Math.sqrt(Math.pow(et-mt,2)+Math.pow(it-Pt,2)),me=Math.sqrt(Math.pow(st-mt,2)+Math.pow(rt-Pt,2)),se=Math.atan2(it-Pt,et-mt);nt=Math.PI/2+(se+Math.atan2(rt-Pt,st-mt))/2,Math.abs(se-nt)>Math.PI/2&&(nt-=Math.PI),et=mt+Math.cos(nt)*jt,it=Pt+Math.sin(nt)*jt;let Ie={rightContX:st=mt+Math.cos(Math.PI+nt)*me,rightContY:rt=Pt+Math.sin(Math.PI+nt)*me,leftContX:et,leftContY:it,plotX:mt,plotY:Pt};return tt&&(Ie.prevPointCont=Z(K,at,!1,$)),Ie}(B,V,!0,this.connectEnds)).prevPointCont&&q.prevPointCont.rightContX,Y=q.prevPointCont&&q.prevPointCont.rightContY;U=["C",b(H)?H:q.plotX,b(Y)?Y:q.plotY,b(q.leftContX)?q.leftContX:q.plotX,b(q.leftContY)?q.leftContY:q.plotY,q.plotX,q.plotY]}else U=["M",W.plotX,W.plotY];else U=j.call(this,B,W,V);return U}function G(j,B,W=this.plotY){if(!this.destroyed){let{plotX:V,series:U}=this,{chart:q}=U;return q.polar&&b(V)&&b(W)?[V+(B?q.plotLeft:0),W+(B?q.plotTop:0)]:j.call(this,B,W)}}class X{static compose(B,W,V,U,q,H,Y,Z,K,J){if(n.compose(W,V),l.compose(B,q),m(c,"Polar")){let tt=W.prototype,$=H.prototype,Q=V.prototype,et=U.prototype;if(f(W,"afterDrawChartBox",R),f(W,"getAxes",I),f(W,"init",O),w(tt,"get",d),w(Q,"getCoordinates",k),w(Q,"pinch",T),f(V,"getSelectionMarkerAttrs",A),f(V,"getSelectionBox",_),f(U,"afterInit",F),f(U,"afterTranslate",P,{order:2}),f(U,"afterColumnTranslate",y,{order:4}),w(et,"animate",z),w($,"pos",G),Z){let it=Z.prototype;w(it,"alignDataLabel",g),w(it,"animate",z)}if(K&&w(K.prototype,"getGraphPath",M),J){let it=J.prototype;w(it,"getPointSpline",N),Y&&(Y.prototype.getPointSpline=it.getPointSpline)}}}constructor(B){this.series=B}arc(B,W,V,U){let q=this.series,H=q.xAxis.center,Y=q.yAxis.len,Z=H[3]/2,K=Y-W+Z,J=Y-x(B,Y)+Z;return q.yAxis.reversed&&(K<0&&(K=Z),J<0&&(J=Z)),{x:H[0],y:H[1],r:K,innerR:J,start:V,end:U}}toXY(B){let W=this.series,V=W.chart,U=W.xAxis,q=W.yAxis,H=B.plotX,Y=V.inverted,Z=B.y,K=B.plotY,J=Y?H:q.len-K,tt;if(Y&&W&&!W.isRadialBar&&(B.plotY=K=b(Z)?q.translate(Z):0),B.rectPlotX=H,B.rectPlotY=K,q.center&&(J+=q.center[3]/2),b(K)){let $=Y?q.postTranslate(K,J):U.postTranslate(H,J);B.plotX=B.polarPlotX=$.x-V.plotLeft,B.plotY=B.polarPlotY=$.y-V.plotTop}W.kdByAngle?((tt=(H/Math.PI*180+U.pane.options.startAngle)%360)<0&&(tt+=360),B.clientX=tt):B.clientX=B.plotX}}return X}),i(t,"Core/Axis/WaterfallAxis.js",[t["Core/Globals.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,s,r){var n;let{composed:l}=e,{addEvent:a,objectEach:h,pushUnique:c}=r;return function(f){function u(){let m=this.waterfall.stacks;m&&(m.changed=!1,delete m.alreadyChanged)}function p(){let m=this.options.stackLabels;m&&m.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function b(){this.waterfall||(this.waterfall=new x(this))}function v(){let m=this.axes;for(let E of this.series)if(E.options.stacking){for(let L of m)L.isXAxis||(L.waterfall.stacks.changed=!0);break}}f.compose=function(m,E){c(l,"Axis.Waterfall")&&(a(m,"init",b),a(m,"afterBuildStacks",u),a(m,"afterRender",p),a(E,"beforeRedraw",v))};class x{constructor(E){this.axis=E,this.stacks={changed:!1}}renderStackTotals(){let E=this.axis,L=E.waterfall.stacks,S=E.stacking&&E.stacking.stackTotalGroup,w=new s(E,E.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=w,S&&h(L,R=>{h(R,(O,I)=>{w.total=O.stackTotal,w.x=+I,O.label&&(w.label=O.label),s.prototype.render.call(w,S),O.label=w.label,delete w.label})}),w.total=null}}f.Composition=x}(n||(n={})),n}),i(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],function(e,s,r){let{isNumber:n}=r;class l extends e.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 n(this.y)||this.isSum||!!this.isIntermediateSum}}return l}),i(t,"Series/Waterfall/WaterfallSeriesDefaults.js",[],function(){return{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}}),i(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"],t["Series/Waterfall/WaterfallSeriesDefaults.js"]],function(e,s,r,n,l){let{column:a,line:h}=e.seriesTypes,{addEvent:c,arrayMax:f,arrayMin:u,correctFloat:p,crisp:b,extend:v,isNumber:x,merge:m,objectEach:E,pick:L}=s;function S(R,O){return Object.hasOwnProperty.call(R,O)}class w extends a{generatePoints(){a.prototype.generatePoints.apply(this);for(let O=0,I=this.points.length;O0?_:void 0);let A=a.prototype.pointAttribs.call(this,O,I);return delete A.dashstyle,A}getGraphPath(){return[["M",0,0]]}getCrispPath(){let O=this.data.filter(d=>x(d.y)),I=this.yAxis,_=O.length,A=this.graph?.strokeWidth()||0,F=this.xAxis.reversed,P=this.yAxis.reversed,D=this.options.stacking,C=[];for(let d=1;d<_;d++){if(!(this.options.connectNulls||x(this.data[O[d].index-1].y)))continue;let g=O[d].box,y=O[d-1],M=y.y||0,k=O[d-1].box;if(!g||!k)continue;let T=I.waterfall.stacks[this.stackKey],z=M>0?-k.height:0;if(T&&k&&g){let N,G=T[d-1];if(D){let X=G.connectorThreshold;N=b(I.translate(X,!1,!0,!1,!0)+(P?z:0),A)}else N=b(k.y+(y.minPointLengthOffset||0),A);C.push(["M",(k.x||0)+(F?0:k.width||0),N],["L",(g.x||0)+(F&&g.width||0),N])}if(k&&C.length&&(!D&&M<0&&!P||M>0&&P)){let N=C[C.length-2];N&&typeof N[2]=="number"&&(N[2]+=k.height||0);let G=C[C.length-1];G&&typeof G[2]=="number"&&(G[2]+=k.height||0)}}return C}drawGraph(){h.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})}setStackedPoints(O){let I=this.options,_=O.waterfall?.stacks,A=I.threshold||0,F=this.stackKey,P=this.xData,D=P.length,C=A,d=C,g,y=0,M=0,k=0,T,z,N,G,X,j,B,W,V=(U,q,H,Y)=>{if(g){if(T)for(;HB.indexOf(F)&&(W=!0),_[F]||(_[F]={});let U=_[F];if(U)for(let q=0;q=0?g.posTotal+=X:g.negTotal+=X,G=I.data[q],z=g.absolutePos=g.posTotal,N=g.absoluteNeg=g.negTotal,g.stackTotal=z+N,T=g.stackState.length,G&&G.isIntermediateSum?(V(k,M,0,k),k=M,M=A,C^=d,d^=C,C^=d):G&&G.isSum?(V(A,y,T,0),C=A):(V(C,X,0,y),G&&(y+=X,M+=X)),g.stateIndex++,g.threshold=C,C+=g.stackTotal;_.changed=!1,_.alreadyChanged||(_.alreadyChanged=[]),_.alreadyChanged.push(F)}}getExtremes(){let O,I,_,A=this.options.stacking;return A?(O=this.yAxis.waterfall.stacks,I=this.stackedYNeg=[],_=this.stackedYPos=[],A==="overlap"?E(O[this.stackKey],function(F){I.push(u(F.stackState)),_.push(f(F.stackState))}):E(O[this.stackKey],function(F){I.push(F.negTotal+F.threshold),_.push(F.posTotal+F.threshold)}),{dataMin:u(I),dataMax:f(_)}):{dataMin:this.dataMin,dataMax:this.dataMax}}}return w.defaultOptions=m(a.defaultOptions,l),w.compose=r.compose,v(w.prototype,{pointValKey:"y",showLine:!0,pointClass:n}),c(w,"afterColumnTranslate",function(){let{options:R,points:O,yAxis:I}=this,_=L(R.minPointLength,5),A=_/2,F=R.threshold||0,P=R.stacking,D=I.waterfall.stacks[this.stackKey],C=F,d=F,g,y,M,k;for(let T=0;T=0?y:y-j,S(V,"absolutePos")&&delete V.absolutePos,S(V,"absoluteNeg")&&delete V.absoluteNeg):(j>=0?(y=V.threshold+V.posTotal,V.posTotal-=j,g=y):(y=V.threshold+V.negTotal,V.negTotal-=j,g=y-j),!V.posTotal&&x(V.absolutePos)&&S(V,"absolutePos")&&(V.posTotal=V.absolutePos,delete V.absolutePos),!V.negTotal&&x(V.absoluteNeg)&&S(V,"absoluteNeg")&&(V.negTotal=V.absoluteNeg,delete V.absoluteNeg)),z.isSum||(V.connectorThreshold=V.threshold+V.stackTotal),I.reversed?(M=j>=0?g-j:g+j,k=g):(M=g,k=g-j),z.below=M<=F,G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-I.translate(k,!1,!0,!1,!0));let U=I.waterfall.dummyStackItem;U&&(U.x=T,U.label=D[T].label,U.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[T],this.stackedYPos[T],void 0,this.xAxis))}}else g=Math.max(d,d+j)+X[0],G.y=I.translate(g,!1,!0,!1,!0),z.isSum?(G.y=I.translate(X[1],!1,!0,!1,!0),G.height=Math.min(I.translate(X[0],!1,!0,!1,!0),I.len)-G.y,z.below=X[1]<=F):z.isIntermediateSum?(j>=0?(M=X[1]+C,k=C):(M=C,k=X[1]+C),I.reversed&&(M^=k,k^=M,M^=k),G.y=I.translate(M,!1,!0,!1,!0),G.height=Math.abs(G.y-Math.min(I.translate(k,!1,!0,!1,!0),I.len)),C+=X[1],z.below=M<=F):(G.height=N>0?I.translate(d,!1,!0,!1,!0)-G.y:I.translate(d,!1,!0,!1,!0)-I.translate(d-N,!1,!0,!1,!0),d+=N,z.below=d{"use strict";(function(o){typeof ho=="object"&&ho.exports?(o.default=o,ho.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/treemap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(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}}}),i(t,"Extensions/Breadcrumbs/Breadcrumbs.js",[t["Extensions/Breadcrumbs/BreadcrumbsDefaults.js"],t["Core/Templating.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{format:l}=s,{composed:a}=r,{addEvent:h,defined:c,extend:f,fireEvent:u,isString:p,merge:b,objectEach:v,pick:x,pushUnique:m}=n;function E(){if(this.breadcrumbs){let I=this.resetZoomButton&&this.resetZoomButton.getBBox(),_=this.breadcrumbs.options;I&&_.position.align==="right"&&_.relativeTo==="plotBox"&&this.breadcrumbs.alignBreadcrumbsGroup(-I.width-_.buttonSpacing)}}function L(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}function S(){let I=this.breadcrumbs;if(I&&!I.options.floating&&I.level){let _=I.options,A=_.buttonTheme,F=(A.height||0)+2*(A.padding||0)+_.buttonSpacing,P=_.position.verticalAlign;P==="bottom"?(this.marginBottom=(this.marginBottom||0)+F,I.yOffset=F):P!=="middle"?(this.plotTop+=F,I.yOffset=-F):I.yOffset=void 0}}function w(){this.breadcrumbs&&this.breadcrumbs.redraw()}function R(I){I.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()}class O{static compose(_,A){m(a,"Breadcrumbs")&&(h(_,"destroy",L),h(_,"afterShowResetZoom",E),h(_,"getMargins",S),h(_,"redraw",w),h(_,"selection",R),f(A.lang,e.lang))}constructor(_,A){this.elementList={},this.isDirty=!0,this.level=0,this.list=[];let F=b(_.options.drilldown&&_.options.drilldown.drillUpButton,O.defaultOptions,_.options.navigation&&_.options.navigation.breadcrumbs,A);this.chart=_,this.options=F||{}}updateProperties(_){this.setList(_),this.setLevel(),this.isDirty=!0}setList(_){this.list=_}setLevel(){this.level=this.list.length&&this.list.length-1}getLevel(){return this.level}getButtonText(_){let A=this.chart,F=this.options,P=A.options.lang,D=x(F.format,F.showFullPath?"{level.name}":"\u2190 {level.name}"),C=P&&x(P.drillUpText,P.mainBreadcrumb),d=F.formatter&&F.formatter(_)||l(D,{level:_.levelOptions},A)||"";return(p(d)&&!d.length||d==="\u2190 ")&&c(C)&&(d=F.showFullPath?C:"\u2190 "+C),d}redraw(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1}render(){let _=this.chart,A=this.options;!this.group&&A&&(this.group=_.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 _=this.chart,A=this.list,F=this.options.buttonSpacing;this.destroyListElements();let P=this.group?this.group.getBBox().width:F,D=A[A.length-2];!_.drillUpButton&&this.level>0?_.drillUpButton=this.renderButton(D,P,F):_.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())}alignBreadcrumbsGroup(_){if(this.group){let A=this.options,F=A.buttonTheme,P=A.position,D=A.relativeTo==="chart"||A.relativeTo==="spacingBox"?void 0:"plotBox",C=this.group.getBBox(),d=2*(F.padding||0)+A.buttonSpacing;P.width=C.width+d,P.height=C.height+d;let g=b(P);_&&(g.x+=_),this.options.rtl&&(g.x+=P.width),g.y=x(g.y,this.yOffset,0),this.group.align(g,!0,D)}}renderButton(_,A,F){let P=this,D=this.chart,C=P.options,d=b(C.buttonTheme),g=D.renderer.button(P.getButtonText(_),A,F,function(y){let M,k=C.events&&C.events.click;k&&(M=k.call(P,y,_)),M!==!1&&(C.showFullPath?y.newLevel=_.level:y.newLevel=P.level-1,u(P,"up",y))},d).addClass("highcharts-breadcrumbs-button").add(P.group);return D.styledMode||g.attr(C.style),g}renderSeparator(_,A){let F=this.chart,P=this.options.separator,D=F.renderer.label(P.text,_,A,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return F.styledMode||D.css(P.style),D}update(_){b(!0,this.options,_),this.destroy(),this.isDirty=!0}updateSingleButton(){let _=this.chart,A=this.list[this.level-1];_.drillUpButton&&_.drillUpButton.attr({text:this.getButtonText(A)})}destroy(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0}destroyListElements(_){let A=this.elementList;v(A,(F,P)=>{(_||!A[P].updated)&&((F=A[P]).button&&F.button.destroy(),F.separator&&F.separator.destroy(),delete F.button,delete F.separator,delete A[P])}),_&&(this.elementList={})}destroySingleButton(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)}resetElementListState(){v(this.elementList,_=>{_.updated=!1})}updateListElements(){let _=this.elementList,A=this.options.buttonSpacing,F=this.list,P=this.options.rtl,D=P?-1:1,C=function(k,T){return D*k.getBBox().width+D*T},d=function(k,T,z){k.translate(T-k.getBBox().width,z)},g=this.group?C(this.group,A):A,y,M;for(let k=0,T=F.length;k{e.graphic=c=c&&c.destroy(),typeof n=="function"&&n()};Object.keys(r).length?c.animate(r,void 0,()=>f()):f()}}}}),i(t,"Series/Treemap/TreemapPoint.js",[t["Series/DrawPointUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{pie:{prototype:{pointClass:n}},scatter:{prototype:{pointClass:l}}}=s.seriesTypes,{extend:a,isNumber:h,pick:c}=r;class f extends l{constructor(){super(...arguments),this.shapeType="rect"}draw(p){e.draw(this,p)}getClassName(){let p=this.series,b=p.options,v=super.getClassName();return this.node.level<=p.nodeMap[p.rootNode].level?v+=" highcharts-above-level":this.node.isLeaf||c(b.interactByLeaf,!b.allowTraversingTree)?this.node.isLeaf||(v+=" highcharts-internal-node"):v+=" highcharts-internal-node-interactive",v}isValid(){return!!(this.id||h(this.value))}setState(p){super.setState.apply(this,arguments),this.graphic&&this.graphic.attr({zIndex:p==="hover"?1:0})}shouldDraw(){return h(this.plotY)&&this.y!==null}}return a(f.prototype,{setVisible:n.prototype.setVisible}),f}),i(t,"Series/Treemap/TreemapSeriesDefaults.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,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 n=this&&this.point?this.point:{};return r(n.name)?n.name:""},inside:!0,verticalAlign:"middle"},tooltip:{headerFormat:"",pointFormat:"{point.name}: {point.value}
"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,traverseUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,colorKey:"colorValue",opacity:.15,states:{hover:{borderColor:"#999999",brightness:e.seriesTypes.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}},legendSymbol:"rectangle"}}),i(t,"Series/Treemap/TreemapUtilities.js",[],function(){var e;return(e||(e={})).recursive=function s(r,n,l){let a=n.call(l||this,r);a!==!1&&s(a,n,l)},e}),i(t,"Series/TreeUtilities.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){let{extend:r,isArray:n,isNumber:l,isObject:a,merge:h,pick:c,relativeLength:f}=s;return{getColor:function(u,p){let b,v,x,m,E,L,S=p.index,w=p.mapOptionsToLevel,R=p.parentColor,O=p.parentColorIndex,I=p.series,_=p.colors,A=p.siblings,F=I.points,P=I.chart.options.chart;return u&&(b=F[u.i],v=w[u.level]||{},b&&v.colorByPoint&&(m=b.index%(_?_.length:P.colorCount),x=_&&_[m]),I.chart.styledMode||(E=c(b&&b.options.color,v&&v.color,x,R&&(D=>{let C=v&&v.colorVariation;return C&&C.key==="brightness"&&S&&A?e.parse(D).brighten(C.to*(S/A)).get():D})(R),I.color)),L=c(b&&b.options.colorIndex,v&&v.colorIndex,m,O,p.colorIndex)),{color:E,colorIndex:L}},getLevelOptions:function(u){let p,b,v,x,m,E,L={};if(a(u))for(x=l(u.from)?u.from:1,E=u.levels,b={},p=a(u.defaults)?u.defaults:{},n(E)&&(b=E.reduce((S,w)=>{let R,O,I;return a(w)&&l(w.level)&&(O=c((I=h({},w)).levelIsConstant,p.levelIsConstant),delete I.levelIsConstant,delete I.level,a(S[R=w.level+(O?0:x-1)])?h(!0,S[R],I):S[R]=I),S},{})),m=l(u.to)?u.to:1,v=0;v<=m;v++)L[v]=h({},p,a(b[v])?b[v]:{});return L},getNodeWidth:function(u,p){let{chart:b,options:v}=u,{nodeDistance:x=0,nodeWidth:m=0}=v,{plotSizeX:E=1}=b;if(m==="auto"){if(typeof x=="string"&&/%$/.test(x))return E/(p+parseFloat(x)/100*(p-1));let L=Number(x);return(E+L)/(p||1)-L}return f(m,E)},setTreeValues:function u(p,b){let v=b.before,x=b.idRoot,m=b.mapIdToNode[x],E=b.levelIsConstant!==!1,L=b.points[p.i],S=L&&L.options||{},w=[],R=0;p.levelDynamic=p.level-(E?0:m.level),p.name=c(L&&L.name,""),p.visible=x===p.id||b.visible===!0,typeof v=="function"&&(p=v(p,b)),p.children.forEach((I,_)=>{let A=r({},b);r(A,{index:_,siblings:p.children.length,visible:p.visible}),I=u(I,A),w.push(I),I.visible&&(R+=I.val)});let O=c(S.value,R);return p.visible=O>=0&&(R>0||p.visible),p.children=w,p.childrenTotal=R,p.isLeaf=p.visible&&!R,p.val=O,p},updateRootId:function(u){let p,b;return a(u)&&(b=a(u.options)?u.options:{},p=c(u.rootNode,b.rootId,""),a(u.userOptions)&&(u.userOptions.rootId=p),u.rootNode=p),p}}}),i(t,"Series/Treemap/TreemapSeries.js",[t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Treemap/TreemapAlgorithmGroup.js"],t["Series/Treemap/TreemapNode.js"],t["Series/Treemap/TreemapPoint.js"],t["Series/Treemap/TreemapSeriesDefaults.js"],t["Series/Treemap/TreemapUtilities.js"],t["Series/TreeUtilities.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c,f,u,p,b){let{parse:v}=s,{composed:x,noop:m}=n,{column:E,scatter:L}=l.seriesTypes,{getColor:S,getLevelOptions:w,updateRootId:R}=p,{addEvent:O,correctFloat:I,crisp:_,defined:A,error:F,extend:P,fireEvent:D,isArray:C,isObject:d,isString:g,merge:y,pick:M,pushUnique:k,stableSort:T}=b,z=!1;function N(){let X,j=this.xAxis,B=this.yAxis;j&&B&&(this.is("treemap")?(X={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:100,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},P(B.options,X),P(j.options,X),z=!0):z&&(B.setOptions(B.userOptions),j.setOptions(j.userOptions),z=!1))}class G extends L{static compose(j){k(x,"TreemapSeries")&&O(j,"afterBindAxes",N)}algorithmCalcPoints(j,B,W,V){let U=W.plot,q=W.elArr.length-1,H,Y,Z,K,J=W.lW,tt=W.lH,$,Q=0;for(let et of(B?(J=W.nW,tt=W.nH):$=W.elArr[q],W.elArr))(B||QY.lP.lR&&this.algorithmCalcPoints(j,!1,Y,V,U),K===H&&this.algorithmCalcPoints(j,!0,Y,V,U),++K;return V}alignDataLabel(j,B,W){let V=W.style;V&&!A(V.textOverflow)&&B.text&&B.getBBox().width>(B.text.textWidth||0)&&B.css({textOverflow:"ellipsis",width:V.width+="px"}),E.prototype.alignDataLabel.apply(this,arguments),j.dataLabel&&j.dataLabel.attr({zIndex:(j.node.zIndex||0)+1})}calculateChildrenAreas(j,B){let W=this.options,V=this.mapOptionsToLevel[j.level+1],U=M(this[V&&V.layoutAlgorithm]&&V.layoutAlgorithm,W.layoutAlgorithm),q=W.alternateStartingDirection,H=j.children.filter(K=>!K.ignore),Y=[];V&&V.layoutStartingDirection&&(B.direction=V.layoutStartingDirection==="vertical"?0:1),Y=this[U](B,H);let Z=-1;for(let K of H){let J=Y[++Z];K.values=y(J,{val:K.childrenTotal,direction:q?1-B.direction:B.direction}),K.pointValues=y(J,{x:J.x/this.axisRatio,y:100-J.y-J.height,width:J.width/this.axisRatio}),K.children.length&&this.calculateChildrenAreas(K,K.values)}}createList(j){let B=this.chart,W=B.breadcrumbs,V=[];if(W){let U=0;V.push({level:U,levelOptions:B.series[0]});let q=j.target.nodeMap[j.newRootId],H=[];for(;q.parent||q.parent==="";)H.push(q),q=j.target.nodeMap[q.parent];for(let Y of H.reverse())V.push({level:++U,levelOptions:Y});V.length<=1&&(V.length=0)}return V}drawDataLabels(){let j,B,W=this.mapOptionsToLevel;for(let V of this.points.filter(function(U){return U.node.visible}))B=W[V.node.level],j={style:{}},V.node.isLeaf||(j.enabled=!1),B&&B.dataLabels&&(j=y(j,B.dataLabels),this.hasDataLabels=()=>!0),V.shapeArgs&&(j.style.width=V.shapeArgs.width,V.dataLabel&&V.dataLabel.css({width:V.shapeArgs.width+"px"})),V.dlOptions=y(j,V.options.dataLabels);super.drawDataLabels()}drawPoints(j=this.points){let B=this.chart,W=B.renderer,V=B.styledMode,U=this.options,q=V?{}:U.shadow,H=U.borderRadius,Y=B.pointCount{let H=q.userOptions;A(H.allowDrillToNode)&&!A(H.allowTraversingTree)&&(H.allowTraversingTree=H.allowDrillToNode,delete H.allowDrillToNode),A(H.drillUpButton)&&!A(H.traverseUpButton)&&(H.traverseUpButton=H.drillUpButton,delete H.drillUpButton)});super.init(j,B),delete W.opacity,W.eventsToUnbind.push(U),W.options.allowTraversingTree&&(W.eventsToUnbind.push(O(W,"click",W.onClickDrillToNode)),W.eventsToUnbind.push(O(W,"setRootNode",function(q){let H=W.chart;H.breadcrumbs&&H.breadcrumbs.updateProperties(W.createList(q))})),W.eventsToUnbind.push(O(W,"update",function(q,H){let Y=this.chart.breadcrumbs;Y&&q.options.breadcrumbs&&Y.update(q.options.breadcrumbs)})),W.eventsToUnbind.push(O(W,"destroy",function(q){let H=this.chart;H.breadcrumbs&&!q.keepEventsForUpdate&&(H.breadcrumbs.destroy(),H.breadcrumbs=void 0)}))),j.breadcrumbs||(j.breadcrumbs=new e(j,V)),W.eventsToUnbind.push(O(j.breadcrumbs,"up",function(q){let H=this.level-q.newLevel;for(let Y=0;YU?0:j.pointAttribs(H)["stroke-width"]||0;for(let H of B){let{pointValues:Y,visible:Z}=H.node;if(Y&&Z){let{height:K,width:J,x:tt,y:$}=Y,Q=q(H),et=_(W.toPixels(tt,!0),Q,!0),it=_(W.toPixels(tt+J,!0),Q,!0),st=_(V.toPixels($,!0),Q,!0),rt=_(V.toPixels($+K,!0),Q,!0),nt={x:Math.min(et,it),y:Math.min(st,rt),width:Math.abs(it-et),height:Math.abs(rt-st)};H.plotX=nt.x+nt.width/2,H.plotY=nt.y+nt.height/2,H.shapeArgs=nt}else delete H.plotX,delete H.plotY}}setRootNode(j,B,W){D(this,"setRootNode",P({newRootId:j,previousRootId:this.rootNode,redraw:M(B,!0),series:this},W),function(V){let U=V.series;U.idPreviousRoot=V.previousRootId,U.rootNode=V.newRootId,U.isDirty=!0,V.redraw&&U.chart.redraw()})}setState(j){this.options.inactiveOtherPoints=!0,super.setState(j,!1),this.options.inactiveOtherPoints=!1}setTreeValues(j){let B=this.options,W=this.rootNode,V=this.nodeMap[W],U=typeof B.levelIsConstant!="boolean"||B.levelIsConstant,q=[],H=this.points[j.i],Y=0;for(let K of j.children)K=this.setTreeValues(K),q.push(K),K.ignore||(Y+=K.val);T(q,(K,J)=>(K.sortIndex||0)-(J.sortIndex||0));let Z=M(H&&H.options.value,Y);return H&&(H.value=Z),P(j,{children:q,childrenTotal:Y,ignore:!(M(H&&H.visible,!0)&&Z>0),isLeaf:j.visible&&!Y,levelDynamic:j.level-(U?0:V.level),name:M(H&&H.name,""),sortIndex:M(H&&H.sortIndex,-Z),val:Z}),j}sliceAndDice(j,B){return this.algorithmFill(!0,j,B)}squarified(j,B){return this.algorithmLowAspectRatio(!0,j,B)}strip(j,B){return this.algorithmLowAspectRatio(!1,j,B)}stripes(j,B){return this.algorithmFill(!1,j,B)}translate(){let j=this,B=j.options,W=R(j),V,U,q,H;super.translate();let Y=j.tree=j.getTree();V=j.nodeMap[W],W===""||V&&V.children.length||(j.setRootNode("",!1),W=j.rootNode,V=j.nodeMap[W]),j.mapOptionsToLevel=w({from:V.level+1,levels:B.levels,to:Y.height,defaults:{levelIsConstant:j.options.levelIsConstant,colorByPoint:B.colorByPoint}}),u.recursive(j.nodeMap[j.rootNode],Z=>{let K=Z.parent,J=!1;return Z.visible=!0,(K||K==="")&&(J=j.nodeMap[K]),J}),u.recursive(j.nodeMap[j.rootNode].children,Z=>{let K=!1;for(let J of Z)J.visible=!0,J.children.length&&(K=(K||[]).concat(J.children));return K}),j.setTreeValues(Y),j.axisRatio=j.xAxis.len/j.yAxis.len,j.nodeMap[""].pointValues=U={x:0,y:0,width:100,height:100},j.nodeMap[""].values=q=y(U,{width:U.width*j.axisRatio,direction:B.layoutStartingDirection==="vertical"?0:1,val:Y.val}),j.calculateChildrenAreas(Y,q),j.colorAxis||B.colorByPoint||j.setColorRecursive(j.tree),B.allowTraversingTree&&(H=V.pointValues,j.xAxis.setExtremes(H.x,H.x+H.width,!1),j.yAxis.setExtremes(H.y,H.y+H.height,!1),j.xAxis.setScale(),j.yAxis.setScale()),j.setPointValues()}}return G.defaultOptions=y(L.defaultOptions,f),P(G.prototype,{buildKDTree:m,colorAttribs:r.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,getExtremesFromAll:!0,getSymbol:m,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:c,NodeClass:h,trackerGroups:["group","dataLabelsGroup"],utils:u}),r.compose(G),l.registerSeriesType("treemap",G),G}),i(t,"masters/modules/treemap.src.js",[t["Core/Globals.js"],t["Extensions/Breadcrumbs/Breadcrumbs.js"],t["Series/Treemap/TreemapSeries.js"]],function(e,s,r){return e.Breadcrumbs=e.Breadcrumbs||s,e.Breadcrumbs.compose(e.Chart,e.defaultOptions),r.compose(e.Series),e})})});var Ku=oi((uA,co)=>{"use strict";(function(o){typeof co=="object"&&co.exports?(o.default=o,co.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Core/Axis/Color/ColorAxisComposition.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){var r;let{parse:n}=e,{addEvent:l,extend:a,merge:h,pick:c,splat:f}=s;return function(u){let p;function b(){let{userOptions:I}=this;this.colorAxis=[],I.colorAxis&&(I.colorAxis=f(I.colorAxis),I.colorAxis.map(_=>new p(this,_)))}function v(I){let _=this.chart.colorAxis||[],A=C=>{let d=I.allItems.indexOf(C);d!==-1&&(this.destroyItem(I.allItems[d]),I.allItems.splice(d,1))},F=[],P,D;for(_.forEach(function(C){(P=C.options)&&P.showInLegend&&(P.dataClasses&&P.visible?F=F.concat(C.getDataClassLegendSymbols()):P.visible&&F.push(C),C.series.forEach(function(d){(!d.options.showInLegend||P.dataClasses)&&(d.options.legendType==="point"?d.points.forEach(function(g){A(g)}):A(d))}))}),D=F.length;D--;)I.allItems.unshift(F[D])}function x(I){I.visible&&I.item.legendColor&&I.item.legendItem.symbol.attr({fill:I.item.legendColor})}function m(I){this.chart.colorAxis?.forEach(_=>{_.update({},I.redraw)})}function E(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function L(){let I=this.axisTypes;I?I.indexOf("colorAxis")===-1&&I.push("colorAxis"):this.axisTypes=["colorAxis"]}function S(I){let _=this,A=I?"show":"hide";_.visible=_.options.visible=!!I,["graphic","dataLabel"].forEach(function(F){_[F]&&_[F][A]()}),this.series.buildKDTree()}function w(){let I=this,_=this.data.length?this.data:this.points,A=this.options.nullColor,F=this.colorAxis,P=this.colorKey;_.forEach(D=>{let C=D.getNestedProperty(P),d=D.options.color||(D.isNull||D.value===null?A:F&&C!==void 0?F.toColor(C,D):D.color||I.color);d&&D.color!==d&&(D.color=d,I.options.legendType==="point"&&D.legendItem&&D.legendItem.label&&I.chart.legend.colorizeItem(D,D.visible))})}function R(){this.elem.attr("fill",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}function O(){this.elem.attr("stroke",n(this.start).tweenTo(n(this.end),this.pos),void 0,!0)}u.compose=function(I,_,A,F,P){let D=_.prototype,C=A.prototype,d=P.prototype;D.collectionsWithUpdate.includes("colorAxis")||(p=I,D.collectionsWithUpdate.push("colorAxis"),D.collectionsWithInit.colorAxis=[D.addColorAxis],l(_,"afterGetAxes",b),function(g){let y=g.prototype.createAxis;g.prototype.createAxis=function(M,k){if(M!=="colorAxis")return y.apply(this,arguments);let T=new p(this,h(k.axis,{index:this[M].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(z=>{z.series=[]}),this.series.forEach(z=>{z.bindAxes(),z.isDirtyData=!0}),c(k.redraw,!0)&&this.redraw(k.animation),T}}(_),C.fillSetter=R,C.strokeSetter=O,l(F,"afterGetAllItems",v),l(F,"afterColorizeItem",x),l(F,"afterUpdate",m),a(d,{optionalAxis:"colorAxis",translateColors:w}),a(d.pointClass.prototype,{setVisible:S}),l(P,"afterTranslate",E,{order:1}),l(P,"bindAxes",L))},u.pointSetVisible=S}(r||(r={})),r}),i(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}}),i(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){var r,n;let{parse:l}=e,{merge:a}=s;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,f=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],f.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(f=this.normalizedValue(h),x=E.length;x--&&!(f>E[x][0]););u=E[x]||E[x+1],f=1-((p=E[x+1]||u)[0]-f)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,f)}return b},r}),i(t,"Core/Axis/Color/ColorAxis.js",[t["Core/Axis/Axis.js"],t["Core/Axis/Color/ColorAxisComposition.js"],t["Core/Axis/Color/ColorAxisDefaults.js"],t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Defaults.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c){let{defaultOptions:f}=l,{series:u}=h,{defined:p,extend:b,fireEvent:v,isArray:x,isNumber:m,merge:E,pick:L,relativeLength:S}=c;f.colorAxis=E(f.xAxis,r);class w extends e{static compose(O,I,_,A){s.compose(w,O,I,_,A)}constructor(O,I){super(O,I),this.coll="colorAxis",this.visible=!0,this.init(O,I)}init(O,I){let _=O.options.legend||{},A=I.layout?I.layout!=="vertical":_.layout!=="vertical";this.side=I.side||A?2:1,this.reversed=I.reversed||!A,this.opposite=!A,super.init(O,I,"colorAxis"),this.userOptions=I,x(O.userOptions.colorAxis)&&(O.userOptions.colorAxis[this.index]=I),I.dataClasses&&this.initDataClasses(I),this.initStops(),this.horiz=A,this.zoomEnabled=!1}hasData(){return!!(this.tickPositions||[]).length}setTickPositions(){if(!this.dataClasses)return super.setTickPositions()}setOptions(O){let I=E(f.colorAxis,O,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&O.visible!==!1});super.setOptions(I),this.options.crosshair=this.options.marker}setAxisSize(){let O=this.chart,I=this.legendItem?.symbol,{width:_,height:A}=this.getSize();I&&(this.left=+I.attr("x"),this.top=+I.attr("y"),this.width=_=+I.attr("width"),this.height=A=+I.attr("height"),this.right=O.chartWidth-this.left-_,this.bottom=O.chartHeight-this.top-A,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?_:A)||w.defaultLegendLength}getOffset(){let O=this.legendItem?.group,I=this.chart.axisOffset[this.side];if(O){this.axisParent=O,super.getOffset();let _=this.chart.legend;_.allItems.forEach(function(A){A instanceof w&&A.drawLegendSymbol(_,A)}),_.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]=I}}setLegendColor(){let O=this.horiz,I=this.reversed,_=I?1:0,A=I?0:1,F=O?[_,0,A,0]:[0,A,0,_];this.legendColor={linearGradient:{x1:F[0],y1:F[1],x2:F[2],y2:F[3]},stops:this.stops}}drawLegendSymbol(O,I){let _=I.legendItem||{},A=O.padding,F=O.options,P=this.options.labels,D=L(F.itemDistance,10),C=this.horiz,{width:d,height:g}=this.getSize(),y=L(F.labelPadding,C?16:30);this.setLegendColor(),_.symbol||(_.symbol=this.chart.renderer.symbol("roundedRect").attr({r:F.symbolRadius??3,zIndex:1}).add(_.group)),_.symbol.attr({x:0,y:(O.baseline||0)-11,width:d,height:g}),_.labelWidth=d+A+(C?D:L(P.x,P.distance)+(this.maxLabelLength||0)),_.labelHeight=g+A+(C?y:0)}setState(O){this.series.forEach(function(I){I.setState(O)})}setVisible(){}getSeriesExtremes(){let O=this.series,I,_,A,F,P,D,C=O.length,d,g;for(this.dataMin=1/0,this.dataMax=-1/0;C--;){if(_=(D=O[C]).colorKey=L(D.options.colorKey,D.colorKey,D.pointValKey,D.zoneAxis,"y"),F=D.pointArrayMap,P=D[_+"Min"]&&D[_+"Max"],D[_+"Data"])I=D[_+"Data"];else if(F){if(I=[],A=F.indexOf(_),d=D.yData,A>=0&&d)for(g=0;gD+C&&(_=D+C+2),I.plotX=_,I.plotY=this.len-_,super.drawCrosshair(O,I),I.plotX=F,I.plotY=P,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(O){let I=this.left,_=O.translatedValue,A=this.top;return m(_)?this.horiz?[["M",_-4,A-6],["L",_+4,A-6],["L",_,A],["Z"]]:[["M",I,_],["L",I-6,_+6],["L",I-6,_-6],["Z"]]:super.getPlotLinePath(O)}update(O,I){let _=this.chart.legend;this.series.forEach(A=>{A.isDirtyData=!0}),(O.dataClasses&&_.allItems||this.dataClasses)&&this.destroyItems(),super.update(O,I),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),_.colorizeItem(this,!0))}destroyItems(){let O=this.chart,I=this.legendItem||{};if(I.label)O.legend.destroyItem(this);else if(I.labels)for(let _ of I.labels)O.legend.destroyItem(_);O.isDirtyLegend=!0}destroy(){this.chart.isDirtyLegend=!0,this.destroyItems(),super.destroy(...[].slice.call(arguments))}remove(O){this.destroyItems(),super.remove(O)}getDataClassLegendSymbols(){let O,I=this,_=I.chart,A=I.legendItem&&I.legendItem.labels||[],F=_.options.legend,P=L(F.valueDecimals,-1),D=L(F.valueSuffix,""),C=d=>I.series.reduce((g,y)=>(g.push(...y.points.filter(M=>M.dataClass===d)),g),[]);return A.length||I.dataClasses.forEach((d,g)=>{let y=d.from,M=d.to,{numberFormatter:k}=_,T=!0;O="",y===void 0?O="< ":M===void 0&&(O="> "),y!==void 0&&(O+=k(y,P)+D),y!==void 0&&M!==void 0&&(O+=" - "),M!==void 0&&(O+=k(M,P)+D),A.push(b({chart:_,name:O,options:{},drawLegendSymbol:a.rectangle,visible:!0,isDataClass:!0,setState:z=>{for(let N of C(g))N.setState(z)},setVisible:function(){this.visible=T=I.visible=!T;let z=[];for(let N of C(g))N.setVisible(T),N.hiddenInDataClass=!T,z.indexOf(N.series)===-1&&z.push(N.series);_.legend.colorizeItem(this,T),z.forEach(N=>{v(N,"afterDataClassLegendClick")})}},d))}),A}getSize(){let{chart:O,horiz:I}=this,{height:_,width:A}=this.options,{legend:F}=O.options;return{width:L(p(A)?S(A,O.chartWidth):void 0,F?.symbolWidth,I?w.defaultLegendLength:12),height:L(p(_)?S(_,O.chartHeight):void 0,F?.symbolHeight,I?12:w.defaultLegendLength)}}}return w.defaultLegendLength=200,w.keepProps=["legendItem"],b(w.prototype,n),Array.prototype.push.apply(e.keepProps,w.keepProps),w}),i(t,"masters/modules/coloraxis.src.js",[t["Core/Globals.js"],t["Core/Axis/Color/ColorAxis.js"]],function(e,s){return e.ColorAxis=e.ColorAxis||s,e.ColorAxis.compose(e.Chart,e.Fx,e.Legend,e.Series),e}),i(t,"Series/ColorMapComposition.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,s,r){var n;let{column:{prototype:l}}=e.seriesTypes,{addEvent:a,defined:h}=r;return function(c){function f(u){let p=this.series,b=p.chart.renderer;this.moveToTopOnHover&&this.graphic&&(p.stateMarkerGraphic||(p.stateMarkerGraphic=new s(b,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),u?.state==="hover"?(this.graphic.attr({id:this.id}),p.stateMarkerGraphic.attr({href:`${b.url}#${this.id}`,visibility:"visible"})):p.stateMarkerGraphic.attr({href:""}))}c.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return this.value!==null&&this.value!==1/0&&this.value!==-1/0&&(this.value===void 0||!isNaN(this.value))}},c.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:l.pointAttribs},c.compose=function(u){return a(u.prototype.pointClass,"afterSetState",f),u}}(n||(n={})),n}),i(t,"Series/Heatmap/HeatmapPoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s){let{scatter:{prototype:{pointClass:r}}}=e.seriesTypes,{clamp:n,defined:l,extend:a,pick:h}=s;class c extends r{applyOptions(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,b=(p.colsize||1)/2,v=(p.rowsize||1)/2,x=u.xAxis,m=u.yAxis,E=this.options.marker||u.options.marker,L=u.pointPlacementToXValue(),S=h(this.pointPadding,p.pointPadding,0),w={x1:n(Math.round(x.len-x.translate(this.x-b,!1,!0,!1,!0,-L)),-x.len,2*x.len),x2:n(Math.round(x.len-x.translate(this.x+b,!1,!0,!1,!0,-L)),-x.len,2*x.len),y1:n(Math.round(m.translate(this.y-v,!1,!0,!1,!0)),-m.len,2*m.len),y2:n(Math.round(m.translate(this.y+v,!1,!0,!1,!0)),-m.len,2*m.len)};for(let R of[["width","x"],["height","y"]]){let O=R[0],I=R[1],_=I+"1",A=I+"2",F=Math.abs(w[_]-w[A]),P=E&&E.lineWidth||0,D=Math.abs(w[_]+w[A])/2,C=E&&E[O];if(l(C)&&C"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),i(t,"Series/InterpolationUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{doc:r}=e,{defined:n,pick:l}=s;return{colorFromPoint:function(a,h){let c=h.series.colorAxis;if(c){let f=c.toColor(a||0,h).split(")")[0].split("(")[1].split(",").map(u=>l(parseFloat(u),parseInt(u,10)));return f[3]=255*l(f[3],1),n(a)&&h.visible||(f[3]=0),f}return[0,0,0,0]},getContext:function(a){let{canvas:h,context:c}=a;return h&&c?(c.clearRect(0,0,h.width,h.height),c):(a.canvas=r.createElement("canvas"),a.context=a.canvas.getContext("2d",{willReadFrequently:!0})||void 0,a.context)}}}),i(t,"Series/Heatmap/HeatmapSeries.js",[t["Core/Color/Color.js"],t["Series/ColorMapComposition.js"],t["Series/Heatmap/HeatmapPoint.js"],t["Series/Heatmap/HeatmapSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Series/InterpolationUtilities.js"]],function(e,s,r,n,l,a,h,c){let{series:f,seriesTypes:{column:u,scatter:p}}=l,{prototype:{symbols:b}}=a,{addEvent:v,extend:x,fireEvent:m,isNumber:E,merge:L,pick:S}=h,{colorFromPoint:w,getContext:R}=c;class O extends p{constructor(){super(...arguments),this.valueMax=NaN,this.valueMin=NaN,this.isDirtyCanvas=!0}drawPoints(){let _=this,A=_.options,F=A.interpolation,P=A.marker||{};if(F){let{image:D,chart:C,xAxis:d,yAxis:g}=_,{reversed:y=!1,len:M}=d,{reversed:k=!1,len:T}=g,z={width:M,height:T};if(!D||_.isDirtyData||_.isDirtyCanvas){let N=R(_),{canvas:G,options:{colsize:X=1,rowsize:j=1},points:B,points:{length:W}}=_,V=C.colorAxis&&C.colorAxis[0];if(G&&N&&V){let{min:U,max:q}=d.getExtremes(),{min:H,max:Y}=g.getExtremes(),Z=q-U,K=Y-H,J=Math.round(Z/X/8*8),tt=Math.round(K/j/8*8),[$,Q]=[[J,J/Z,y,"ceil"],[tt,tt/K,!k,"floor"]].map(([ot,at,ct,ht])=>ct?lt=>Math[ht](ot-at*lt):lt=>Math[ht](at*lt)),et=G.width=J+1,it=et*(G.height=tt+1),st=(W-1)/it,rt=new Uint8ClampedArray(4*it),nt=(ot,at)=>4*Math.ceil(et*Q(at-H)+$(ot-U));_.buildKDTree();for(let ot=0;ot{D.graphic&&(D.graphic[_.chart.styledMode?"css":"animate"](_.colorAttribs(D)),D.value===null&&D.graphic.addClass("highcharts-null-point"))}))}getExtremes(){let{dataMin:_,dataMax:A}=f.prototype.getExtremes.call(this,this.valueData);return E(_)&&(this.valueMin=_),E(A)&&(this.valueMax=A),f.prototype.getExtremes.call(this)}getValidPoints(_,A){return f.prototype.getValidPoints.call(this,_,A,!0)}hasData(){return!!this.processedXData.length}init(){super.init.apply(this,arguments);let _=this.options;_.pointRange=S(_.pointRange,_.colsize||1),this.yAxis.axisPointRange=_.rowsize||1,b.ellipse=b.circle,_.marker&&E(_.borderRadius)&&(_.marker.r=_.borderRadius)}markerAttribs(_,A){let F=_.shapeArgs||{};if(_.hasImage)return{x:_.plotX,y:_.plotY};if(A&&A!=="normal"){let P=_.options.marker||{},D=this.options.marker||{},C=D.states&&D.states[A]||{},d=P.states&&P.states[A]||{},g=(d.width||C.width||F.width||0)+(d.widthPlus||C.widthPlus||0),y=(d.height||C.height||F.height||0)+(d.heightPlus||C.heightPlus||0);return{x:(F.x||0)+((F.width||0)-g)/2,y:(F.y||0)+((F.height||0)-y)/2,width:g,height:y}}return F}pointAttribs(_,A){let F=f.prototype.pointAttribs.call(this,_,A),P=this.options||{},D=this.chart.options.plotOptions||{},C=D.series||{},d=D.heatmap||{},g=_&&_.options.borderColor||P.borderColor||d.borderColor||C.borderColor,y=_&&_.options.borderWidth||P.borderWidth||d.borderWidth||C.borderWidth||F["stroke-width"];if(F.stroke=_&&_.marker&&_.marker.lineColor||P.marker&&P.marker.lineColor||g||this.color,F["stroke-width"]=y,A&&A!=="normal"){let M=L(P.states&&P.states[A],P.marker&&P.marker.states&&P.marker.states[A],_&&_.options.states&&_.options.states[A]||{});F.fill=M.color||e.parse(F.fill).brighten(M.brightness||0).get(),F.stroke=M.lineColor||F.stroke}return F}translate(){let{borderRadius:_,marker:A}=this.options,F=A&&A.symbol||"rect",P=b[F]?F:"rect",D=["circle","square"].indexOf(P)!==-1;for(let C of(this.generatePoints(),this.points)){let d=C.getCellAttributes(),g=Math.min(d.x1,d.x2),y=Math.min(d.y1,d.y2),M=Math.max(Math.abs(d.x2-d.x1),0),k=Math.max(Math.abs(d.y2-d.y1),0);if(C.hasImage=(C.marker&&C.marker.symbol||F||"").indexOf("url")===0,D){let T=Math.abs(M-k);g=Math.min(d.x1,d.x2)+(M{"use strict";(function(o){typeof uo=="object"&&uo.exports?(o.default=o,uo.exports=o):typeof define=="function"&&define.amd?define("highcharts/highcharts-3d",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Core/Math3D.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{deg2rad:r}=e,{pick:n}=s;function l(c,f,u,p){let b=f.options.chart.options3d,v=n(p,!!u&&f.inverted),x={x:f.plotWidth/2,y:f.plotHeight/2,z:b.depth/2,vd:n(b.depth,1)*n(b.viewDistance,0)},m=f.scale3d||1,E=r*b.beta*(v?-1:1),L=r*b.alpha*(v?-1:1),S={cosA:Math.cos(L),cosB:Math.cos(-E),sinA:Math.sin(L),sinB:Math.sin(-E)};return u||(x.x+=f.plotLeft,x.y+=f.plotTop),c.map(function(w){var R,O,I;let _=(R=(v?w.y:w.x)-x.x,O=(v?w.x:w.y)-x.y,I=(w.z||0)-x.z,{x:S.cosB*R-S.sinB*I,y:-S.sinA*S.sinB*R+S.cosA*O-S.cosB*S.sinA*I,z:S.cosA*S.sinB*R+S.sinA*O+S.cosA*S.cosB*I}),A=a(_,x,x.vd);return A.x=A.x*m+x.x,A.y=A.y*m+x.y,A.z=_.z*m+x.z,{x:v?A.y:A.x,y:v?A.x:A.y,z:A.z}})}function a(c,f,u){let p=u>0&&u=0?0:360),C.beta=C.beta%360+(C.beta>=0?0:360));let d=this.inverted,g=this.clipBox,y=this.margin;g[d?"y":"x"]=-(y[3]||0),g[d?"x":"y"]=-(y[0]||0),g[d?"height":"width"]=this.chartWidth+(y[3]||0)+(y[1]||0),g[d?"width":"height"]=this.chartHeight+(y[0]||0)+(y[2]||0),this.scale3d=1,C.fitToPlot===!0&&(this.scale3d=this.chart3d.getScale(C.depth)),this.chart3d.frame3d=this.chart3d.get3dFrame()}}function O(){this.is3d()&&(this.isDirtyBox=!0)}function I(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function _(){this.chart3d||(this.chart3d=new D(this))}function A(C){return this.is3d()||C.apply(this,[].slice.call(arguments,1))}function F(C){let d,g=this.series.length;if(this.is3d())for(;g--;)(d=this.series[g]).translate(),d.render();else C.call(this)}function P(C){C.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}m.defaultOptions={chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,axisLabelPosition:null,frame:{visible:"default",size:1,bottom:{},top:{},left:{},right:{},back:{},front:{}}}}},m.compose=function(C,d){let g=C.prototype,y=d.prototype;g.is3d=function(){return!!this.options.chart.options3d?.enabled},g.propsRequireDirtyBox.push("chart.options3d"),g.propsRequireUpdateSeries.push("chart.options3d"),y.matrixSetter=function(){let M;if(this.pos<1&&(p(this.start)||p(this.end))){let k=this.start||[1,0,0,1,0,0],T=this.end||[1,0,0,1,0,0];M=[];for(let z=0;z<6;z++)M.push(this.pos*T[z]+(1-this.pos)*k[z])}else M=this.end;this.elem.attr(this.prop,M,null,!0)},b(!0,h,m.defaultOptions),u(C,"init",_),u(C,"addSeries",E),u(C,"afterDrawChartBox",L),u(C,"afterGetContainer",S),u(C,"afterInit",w),u(C,"afterSetChartSize",R),u(C,"beforeRedraw",O),u(C,"beforeRender",I),x(g,"isInsidePlot",A),x(g,"renderSeries",F),x(g,"setClassName",P)};class D{constructor(d){this.chart=d}get3dFrame(){let d=this.chart,g=d.options.chart.options3d,y=g.frame,M=d.plotLeft,k=d.plotLeft+d.plotWidth,T=d.plotTop,z=d.plotTop+d.plotHeight,N=g.depth,G=function(tt){let $=f(tt,d);return $>.5?1:$<-.5?-1:0},X=G([{x:M,y:z,z:N},{x:k,y:z,z:N},{x:k,y:z,z:0},{x:M,y:z,z:0}]),j=G([{x:M,y:T,z:0},{x:k,y:T,z:0},{x:k,y:T,z:N},{x:M,y:T,z:N}]),B=G([{x:M,y:T,z:0},{x:M,y:T,z:N},{x:M,y:z,z:N},{x:M,y:z,z:0}]),W=G([{x:k,y:T,z:N},{x:k,y:T,z:0},{x:k,y:z,z:0},{x:k,y:z,z:N}]),V=G([{x:M,y:z,z:0},{x:k,y:z,z:0},{x:k,y:T,z:0},{x:M,y:T,z:0}]),U=G([{x:M,y:T,z:N},{x:k,y:T,z:N},{x:k,y:z,z:N},{x:M,y:z,z:N}]),q=!1,H=!1,Y=!1,Z=!1;[].concat(d.xAxis,d.yAxis,d.zAxis).forEach(function(tt){tt&&(tt.horiz?tt.opposite?H=!0:q=!0:tt.opposite?Z=!0:Y=!0)});let K=function(tt,$,Q){let et=["size","color","visible"],it={};for(let rt=0;rt0),{size:v(it.size,1),color:v(it.color,"none"),frontFacing:$>0,visible:st}},J={axes:{},bottom:K([y.bottom,y.top,y],X,q),top:K([y.top,y.bottom,y],j,H),left:K([y.left,y.right,y.side,y],B,Y),right:K([y.right,y.left,y.side,y],W,Z),back:K([y.back,y.front,y],U,!0),front:K([y.front,y.back,y],V,!1)};if(g.axisLabelPosition==="auto"){let tt=function(nt,ot){return nt.visible!==ot.visible||nt.visible&&ot.visible&&nt.frontFacing!==ot.frontFacing},$=[];tt(J.left,J.front)&&$.push({y:(T+z)/2,x:M,z:0,xDir:{x:1,y:0,z:0}}),tt(J.left,J.back)&&$.push({y:(T+z)/2,x:M,z:N,xDir:{x:0,y:0,z:-1}}),tt(J.right,J.front)&&$.push({y:(T+z)/2,x:k,z:0,xDir:{x:0,y:0,z:1}}),tt(J.right,J.back)&&$.push({y:(T+z)/2,x:k,z:N,xDir:{x:-1,y:0,z:0}});let Q=[];tt(J.bottom,J.front)&&Q.push({x:(M+k)/2,y:z,z:0,xDir:{x:1,y:0,z:0}}),tt(J.bottom,J.back)&&Q.push({x:(M+k)/2,y:z,z:N,xDir:{x:-1,y:0,z:0}});let et=[];tt(J.top,J.front)&&et.push({x:(M+k)/2,y:T,z:0,xDir:{x:1,y:0,z:0}}),tt(J.top,J.back)&&et.push({x:(M+k)/2,y:T,z:N,xDir:{x:-1,y:0,z:0}});let it=[];tt(J.bottom,J.left)&&it.push({z:(0+N)/2,y:z,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.bottom,J.right)&&it.push({z:(0+N)/2,y:z,x:k,xDir:{x:0,y:0,z:1}});let st=[];tt(J.top,J.left)&&st.push({z:(0+N)/2,y:T,x:M,xDir:{x:0,y:0,z:-1}}),tt(J.top,J.right)&&st.push({z:(0+N)/2,y:T,x:k,xDir:{x:0,y:0,z:1}});let rt=function(nt,ot,at){if(nt.length===0)return null;if(nt.length===1)return nt[0];let ct=c(nt,d,!1),ht=0;for(let lt=1;ltat*ct[ht][ot]||at*ct[lt][ot]==at*ct[ht][ot]&&ct[lt].zG.minX&&(j=Math.min(j,1-Math.abs((y+z)/(G.minX+z))%1)),MG.minY&&(j=G.minY<0?Math.min(j,(k+N)/(-G.minY+k+N)):Math.min(j,1-(k+N)/(G.minY+N)%1)),T({plotX:w.x,plotY:w.y,plotZ:w.z})),this.group&&L&&L.depth&&L.beta&&(this.markerGroup&&(this.markerGroup.add(this.group),this.markerGroup.attr({translateX:0,translateY:0})),this.group.attr({zIndex:Math.max(1,L.beta>270||L.beta<90?L.depth-Math.round(this.zPadding||0):Math.round(this.zPadding||0))})),E.reversed=!0;let S=v.call(this,E,!0,!0);if(S[0]&&S[0][0]==="M"&&(S[0]=["L",S[0][1],S[0][2]]),this.areaPath){let w=this.areaPath.splice(0,this.areaPath.length/2).concat(S);w.xMap=this.areaPath.xMap,this.areaPath=w}return this.graphPath=b,b}return{compose:function(p){c(l,"Area3DSeries")&&f(p.prototype,"getGraphPath",u)}}}),i(t,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),i(t,"Core/Axis/Tick3DComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{composed:r}=e,{addEvent:n,extend:l,pushUnique:a,wrap:h}=s;function c(u){let p=this.axis.axis3D;p&&l(u.pos,p.fix3dPosition(u.pos))}function f(u){let p=this.axis.axis3D,b=u.apply(this,[].slice.call(arguments,1));if(p){let v=b[0],x=b[1];if(v[0]==="M"&&x[0]==="L"){let m=[p.fix3dPosition({x:v[1],y:v[2],z:0}),p.fix3dPosition({x:x[1],y:x[2],z:0})];return this.axis.chart.renderer.toLineSegments(m)}}return b}return{compose:function(u){a(r,"Axis.Tick3D")&&(n(u,"afterGetLabelPosition",c),h(u.prototype,"getMarkPath",f))}}}),i(t,"Core/Axis/Axis3DComposition.js",[t["Core/Axis/Axis3DDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Axis/Tick3DComposition.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{defaultOptions:h}=s,{deg2rad:c}=r,{perspective:f,perspective3D:u,shapeArea:p}=n,{addEvent:b,merge:v,pick:x,wrap:m}=a;function E(){let F=this.chart,P=this.options;F.is3d&&F.is3d()&&this.coll!=="colorAxis"&&(P.tickWidth=x(P.tickWidth,0),P.gridLineWidth=x(P.gridLineWidth,1))}function L(F){this.chart.is3d()&&this.coll!=="colorAxis"&&F.point&&(F.point.crosshairPos=this.isXAxis?F.point.axisXpos:this.len-F.point.axisYpos)}function S(){this.axis3D||(this.axis3D=new A(this))}function w(F){return this.chart.is3d()&&this.coll!=="colorAxis"?[]:F.apply(this,[].slice.call(arguments,1))}function R(F){if(!this.chart.is3d()||this.coll==="colorAxis")return F.apply(this,[].slice.call(arguments,1));let P=arguments,D=P[1],C=P[2],d=[],g=this.getPlotLinePath({value:D}),y=this.getPlotLinePath({value:C});if(g&&y)for(let M=0;Mp(f([P,{x:P.x+W.x,y:P.y+W.y,z:P.z+W.z},{x:P.x+V.x,y:P.y+V.y,z:P.z+V.z}],C.chart))&&(W={x:-W.x,y:-W.y,z:-W.z});let H=f([{x:P.x,y:P.y,z:P.z},{x:P.x+W.x,y:P.y+W.y,z:P.z+W.z},{x:P.x+V.x,y:P.y+V.y,z:P.z+V.z}],C.chart);q.matrix=[H[1].x-H[0].x,H[1].y-H[0].y,H[2].x-H[0].x,H[2].y-H[0].y,q.x,q.y],q.matrix[4]-=q.x*q.matrix[0]+q.y*q.matrix[2],q.matrix[5]-=q.x*q.matrix[1]+q.y*q.matrix[3]}return q}swapZ(P,D){let C=this.axis;if(C.isZAxis){let d=D?0:C.chart.plotLeft;return{x:d+P.z,y:P.y,z:P.x-d}}return P}}return A}),i(t,"Core/Series/Series3D.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{composed:l}=e,{perspective:a}=s,{addEvent:h,extend:c,isNumber:f,merge:u,pick:p,pushUnique:b}=n;class v extends r{static compose(m){b(l,"Core.Series3D")&&(h(m,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),c(m.prototype,{translate3dPoints:v.prototype.translate3dPoints}))}translate3dPoints(){let m,E,L=this,S=L.options,w=L.chart,R=p(L.zAxis,w.options.zAxis[0]),O=[],I=[],_=S.stacking?f(S.stack)?S.stack:0:L.index||0;L.zPadding=_*(S.depth||0+(S.groupZPadding||1)),L.data.forEach(F=>{R&&R.translate?(E=R.logarithmic&&R.val2lin?R.val2lin(F.z):F.z,F.plotZ=R.translate(E),F.isInside=!!F.isInside&&E>=R.min&&E<=R.max):F.plotZ=L.zPadding,F.axisXpos=F.plotX,F.axisYpos=F.plotY,F.axisZpos=F.plotZ,O.push({x:F.plotX,y:F.plotY,z:F.plotZ}),I.push(F.plotX||0)}),L.rawPointsX=I;let A=a(O,w,!0);L.data.forEach((F,P)=>{m=A[P],F.plotX=m.x,F.plotY=m.y,F.plotZ=m.z})}}return v.defaultOptions=u(r.defaultOptions),v}),i(t,"Core/Renderer/SVG/SVGElement3D.js",[t["Core/Color/Color.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Utilities.js"]],function(e,s,r){let{parse:n}=e,{Element:l}=s.getRendererType().prototype,{defined:a,pick:h}=r;class c extends l{constructor(){super(...arguments),this.parts=["front","top","side"],this.pathType="cuboid"}initArgs(u){let p=this.renderer,b=p[this.pathType+"Path"](u),v=b.zIndexes;for(let x of this.parts){let m={class:"highcharts-3d-"+x,zIndex:v[x]||0};p.styledMode&&(x==="top"?m.filter="url(#highcharts-brighter)":x==="side"&&(m.filter="url(#highcharts-darker)")),this[x]=p.path(b[x]).attr(m).add(this)}this.attr({"stroke-linejoin":"round",zIndex:v.group}),this.forcedSides=b.forcedSides}singleSetterForParts(u,p,b,v,x,m){let E={},L=[null,null,v||"attr",x,m],S=b&&b.zIndexes;if(b){for(let w of(S&&S.group&&this.attr({zIndex:S.group}),Object.keys(b)))E[w]={},E[w][u]=b[w],S&&(E[w].zIndex=b.zIndexes[w]||0);L[1]=E}else E[u]=p,L[0]=E;return this.processParts.apply(this,L)}processParts(u,p,b,v,x){for(let m of this.parts)p&&(u=h(p[m],!1)),u!==!1&&this[m][b](u,v,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(u,p,b,v){if(typeof u=="string"&&p!==void 0){let x=u;(u={})[x]=p}return u.shapeArgs||a(u.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](u.shapeArgs||u)):super.attr(u,void 0,b,v)}animate(u,p,b){if(a(u.x)&&a(u.y)){let v=this.renderer[this.pathType+"Path"](u),x=v.forcedSides;this.singleSetterForParts("d",null,v,"animate",p,b),this.attr({zIndex:v.zIndexes.group}),x===this.forcedSides||(this.forcedSides=x,this.renderer.styledMode||this.fillSetter(this.fill))}else super.animate(u,p,b);return this}fillSetter(u){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:u,top:n(u).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:n(u).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=u,this}}return c.types={base:c,cuboid:c},c}),i(t,"Core/Renderer/SVG/SVGRenderer3D.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Renderer/SVG/SVGElement3D.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){var h;let{animObject:c}=e,{parse:f}=s,{charts:u,deg2rad:p}=r,{perspective:b,shapeArea:v}=n,{defined:x,extend:m,merge:E,pick:L}=a,S=Math.cos,w=Math.sin,R=Math.PI,O=4*(Math.sqrt(2)-1)/3/(R/2);function I(_,A,F,P,D,C,d,g){let y=C-D,M=[];return C>D&&C-D>Math.PI/2+1e-4?M=(M=M.concat(I(_,A,F,P,D,D+Math.PI/2,d,g))).concat(I(_,A,F,P,D+Math.PI/2,C,d,g)):CMath.PI/2+1e-4?M=(M=M.concat(I(_,A,F,P,D,D-Math.PI/2,d,g))).concat(I(_,A,F,P,D-Math.PI/2,C,d,g)):[["C",_+F*Math.cos(D)-F*O*y*Math.sin(D)+d,A+P*Math.sin(D)+P*O*y*Math.cos(D)+g,_+F*Math.cos(C)+F*O*y*Math.sin(C)+d,A+P*Math.sin(C)-P*O*y*Math.cos(C)+g,_+F*Math.cos(C)+d,A+P*Math.sin(C)+g]]}return function(_){function A(k,T){let z=[];for(let N of k)z.push(["L",N.x,N.y]);return k.length&&(z[0][0]="M",T&&z.push(["Z"])),z}function F(k){let T=[],z=!0;for(let N of k)T.push(z?["M",N.x,N.y]:["L",N.x,N.y]),z=!z;return T}function P(k){let T=this,z=T.Element.prototype,N=T.createElement("path");return N.vertexes=[],N.insidePlotArea=!1,N.enabled=!0,N.attr=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=u[T.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=T.toLinePath(j,!0),W=v(j);G.d=B,G.visibility=this.enabled&&W>0?"inherit":"hidden"}return z.attr.apply(this,arguments)},N.animate=function(G){if(typeof G=="object"&&(x(G.enabled)||x(G.vertexes)||x(G.insidePlotArea))){this.enabled=L(G.enabled,this.enabled),this.vertexes=L(G.vertexes,this.vertexes),this.insidePlotArea=L(G.insidePlotArea,this.insidePlotArea),delete G.enabled,delete G.vertexes,delete G.insidePlotArea;let X=u[T.chartIndex],j=b(this.vertexes,X,this.insidePlotArea),B=T.toLinePath(j,!0),W=v(j),V=this.enabled&&W>0?"visible":"hidden";G.d=B,this.attr("visibility",V)}return z.animate.apply(this,arguments)},N.attr(k)}function D(k){let T=this,z=T.Element.prototype,N=T.g(),G=N.destroy;return this.styledMode||N.attr({"stroke-linejoin":"round"}),N.faces=[],N.destroy=function(){for(let X=0;XX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthX.faces.length;)N.faces.pop().destroy();for(;N.faces.lengthG===0&&st>1&&st<6?{x:H[st].x,y:H[st].y+10,z:H[st].z}:H[0].x===H[7].x&&st>=4?{x:H[st].x+10,y:H[st].y,z:H[st].z}:j===0&&st<2||st>5?{x:H[st].x,y:H[st].y,z:H[st].z+10}:H[st],Z=st=>H[st],K=(st,rt,nt)=>{let ot=st.map(Z),at=rt.map(Z),ct=st.map(Y),ht=rt.map(Y),lt=[[],-1];return 0>v(ot)?lt=[ot,0]:0>v(at)?lt=[at,1]:nt&&(V.push(nt),lt=0>v(ct)?[ot,0]:0>v(ht)?[at,1]:[ot,0]),lt},J=(U=K([3,2,1,0],[7,6,5,4],"front"))[0],tt=U[1],$=(U=K([1,6,7,0],[4,5,2,3],"top"))[0],Q=U[1],et=(U=K([1,2,5,6],[0,7,4,3],"side"))[0],it=U[1];return it===1?q+=1e6*(B.plotWidth-T):it||(q+=1e6*T),q+=10*(!Q||W>=0&&W<=180||W<360&&W>357.5?B.plotHeight-z:10+z),tt===1?q+=100*N:tt||(q+=100*(1e3-N)),{front:this.toLinePath(J,!0),top:this.toLinePath($,!0),side:this.toLinePath(et,!0),zIndexes:{group:Math.round(q)},forcedSides:V,isFront:tt,isTop:Q}}function y(k){let T=this.g(),z=this.Element.prototype,N=["x","y","r","innerR","start","end","depth"];function G(X){let j={},B=!1,W;for(W in X=E(X))N.indexOf(W)!==-1&&(j[W]=X[W],delete X[W],B=!0);return!!B&&[j,X]}for(let X of((k=E(k)).alpha=(k.alpha||0)*p,k.beta=(k.beta||0)*p,T.top=this.path(),T.side1=this.path(),T.side2=this.path(),T.inn=this.path(),T.out=this.path(),T.onAdd=function(){let j=T.parentGroup,B=T.attr("class");for(let W of(T.top.add(T),["out","inn","side1","side2"]))T[W].attr({class:B+" highcharts-3d-side"}).add(j)},["addClass","removeClass"]))T[X]=function(){let j=arguments;for(let B of["top","out","inn","side1","side2"])T[B][X].apply(T[B],j)};for(let X of(T.setPaths=function(j){let B=T.renderer.arc3dPath(j),W=100*B.zTop;T.attribs=j,T.top.attr({d:B.top,zIndex:B.zTop}),T.inn.attr({d:B.inn,zIndex:B.zInn}),T.out.attr({d:B.out,zIndex:B.zOut}),T.side1.attr({d:B.side1,zIndex:B.zSide1}),T.side2.attr({d:B.side2,zIndex:B.zSide2}),T.zIndex=W,T.attr({zIndex:W}),j.center&&(T.top.setRadialReference(j.center),delete j.center)},T.setPaths(k),T.fillSetter=function(j){let B=f(j).brighten(-.1).get();return this.fill=j,this.side1.attr({fill:B}),this.side2.attr({fill:B}),this.inn.attr({fill:B}),this.out.attr({fill:B}),this.top.attr({fill:j}),this},["opacity","translateX","translateY","visibility"]))T[X+"Setter"]=function(j,B){for(let W of(T[B]=j,["out","inn","side1","side2","top"]))T[W].attr(B,j)};return T.attr=function(X){let j,B;return typeof X=="object"&&(B=G(X))&&(j=B[0],arguments[0]=B[1],m(T.attribs,j),T.setPaths(T.attribs)),z.attr.apply(T,arguments)},T.animate=function(X,j,B){let W,V,U=this.attribs,q="data-"+Math.random().toString(26).substring(2,9);delete X.center,delete X.z,delete X.alpha,delete X.beta;let H=c(L(j,this.renderer.globalAnimation));return H.duration&&(W=G(X),T[q]=0,X[q]=1,T[q+"Setter"]=r.noop,W&&(V=W[0],H.step=function(Y,Z){let K=J=>U[J]+(L(V[J],U[J])-U[J])*Z.pos;Z.prop===q&&Z.elem.setPaths(E(U,{x:K("x"),y:K("y"),r:K("r"),innerR:K("innerR"),start:K("start"),end:K("end"),depth:K("depth")}))}),j=H),z.animate.call(this,X,j,B)},T.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),z.destroy.call(this)},T.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},T.show=function(X){this.top.show(X),this.out.show(X),this.inn.show(X),this.side1.show(X),this.side2.show(X)},T}function M(k){let T=k.x||0,z=k.y||0,N=k.start||0,G=(k.end||0)-1e-5,X=k.r||0,j=k.innerR||0,B=k.depth||0,W=k.alpha||0,V=k.beta||0,U=Math.cos(N),q=Math.sin(N),H=Math.cos(G),Y=Math.sin(G),Z=X*Math.cos(V),K=X*Math.cos(W),J=j*Math.cos(V),tt=j*Math.cos(W),$=B*Math.sin(V),Q=B*Math.sin(W),et=[["M",T+Z*U,z+K*q]];(et=et.concat(I(T,z,Z,K,N,G,0,0))).push(["L",T+J*H,z+tt*Y]),(et=et.concat(I(T,z,J,tt,G,N,0,0))).push(["Z"]);let it=V>0?Math.PI/2:0,st=W>0?0:Math.PI/2,rt=N>-it?N:G>-it?-it:N,nt=Got&&NR-st&&NMath.PI&&(se=2*Math.PI-se),se}Et=mt(Et),dt=mt(dt);let Pt=1e5*(St=mt(St)),jt=1e5*dt,me=1e5*Et;return{top:et,zTop:1e5*Math.PI+1,out:at,zOut:Math.max(Pt,jt,me),inn:ct,zInn:Math.max(Pt,jt,me),side1:ht,zSide1:.99*me,side2:lt,zSide2:.99*jt}}_.compose=function(k){let T=k.prototype;T.element3d||m(T,{Element3D:l,arc3d:y,arc3dPath:M,cuboid:d,cuboidPath:g,element3d:C,face3d:P,polyhedron:D,toLinePath:A,toLineSegments:F})}}(h||(h={})),h}),i(t,"Core/Axis/ZAxis.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],function(e,s,r){let{defaultOptions:n}=s,{addEvent:l,merge:a,pick:h,splat:c}=r;function f(b){return new p(this,b)}function u(){let b=this.options.zAxis=c(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],b.forEach(v=>{this.addZAxis(v).setScale()}))}class p extends e{constructor(){super(...arguments),this.isZAxis=!0}static compose(v){let x=v.prototype;x.addZAxis||(n.zAxis=a(n.xAxis,{offset:0,lineWidth:0}),x.addZAxis=f,x.collectionsWithInit.zAxis=[x.addZAxis],x.collectionsWithUpdate.push("zAxis"),l(v,"afterGetAxes",u))}init(v,x){this.isZAxis=!0,super.init(v,x,"zAxis")}getSeriesExtremes(){this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(v=>{if(v.reserveSpace()){let x=v.options.threshold;this.hasVisibleSeries=!0,this.positiveValuesOnly&&x<=0&&(x=void 0);let m=v.zData;m.length&&(this.dataMin=Math.min(h(this.dataMin,m[0]),Math.min.apply(null,m)),this.dataMax=Math.max(h(this.dataMax,m[0]),Math.max.apply(null,m)))}})}setAxisSize(){let v=this.chart;super.setAxisSize(),this.width=this.len=v.options.chart.options3d&&v.options.chart.options3d.depth||0,this.right=v.chartWidth-this.width-this.left}}return p}),i(t,"Series/Column3D/Column3DComposition.js",[t["Core/Globals.js"],t["Core/Math3D.js"],t["Core/Utilities.js"]],function(e,s,r){let{composed:n}=e,{perspective:l}=s,{addEvent:a,extend:h,pick:c,pushUnique:f,wrap:u}=r;function p(){let _=this.chart,A=this.options,F=A.depth,P=(A.stacking?A.stack||0:this.index)*(F+(A.groupZPadding||1)),D=this.borderWidth%2?.5:0,C;for(let d of(_.inverted&&!this.yAxis.reversed&&(D*=-1),A.grouping!==!1&&(P=0),P+=A.groupZPadding||1,this.points))if(d.outside3dPlot=null,d.y!==null){let g,y=h({x:0,y:0,width:0,height:0},d.shapeArgs||{}),M=[["x","width"],["y","height"]],k=d.tooltipPos;for(let T of M)if((g=y[T[0]]-D)<0&&(y[T[1]]+=y[T[0]]+D,y[T[0]]=-D,g=0),g+y[T[1]]>this[T[0]+"Axis"].len&&y[T[1]]!==0&&(y[T[1]]=this[T[0]+"Axis"].len-y[T[0]]),y[T[1]]!==0&&(y[T[0]]>=this[T[0]+"Axis"].len||y[T[0]]+y[T[1]]<=D)){for(let z in y)y[z]=z==="y"?-9999:0;d.outside3dPlot=!0}if(d.shapeType==="roundedRect"&&(d.shapeType="cuboid"),d.shapeArgs=h(y,{z:P,depth:F,insidePlotArea:!0}),C={x:y.x+y.width/2,y:y.y,z:P+F/2},_.inverted&&(C.x=y.height,C.y=d.clientX||0),d.axisXpos=C.x,d.axisYpos=C.y,d.axisZpos=C.z,d.plot3d=l([C],_,!0,!1)[0],k){let T=l([{x:k[0],y:k[1],z:P+F/2}],_,!0,!1)[0];d.tooltipPos=[T.x,T.y]}}this.z=P}function b(){if(this.chart.is3d()){let _=this.options,A=_.grouping,F=_.stacking,P=this.yAxis.options.reversedStacks,D=0;if(!(A!==void 0&&!A)){let C,d=function(y,M){let k=y.series,T={totalStacks:0},z,N=1;return k.forEach(function(G){T[z=c(G.options.stack,M?0:k.length-1-G.index)]?T[z].series.push(G):(T[z]={series:[G],position:N},N++)}),T.totalStacks=N+1,T}(this.chart,F),g=_.stack||0;for(C=0;C=90&&y.alpha<=270&&(k.y+=A.shapeArgs.width)),k=l([k],C,!0,!1)[0],D.x=k.x-M,D.y=A.outside3dPlot?-9e9:k.y}_.apply(this,[].slice.call(arguments,1))}function O(_){return!arguments[2].outside3dPlot&&_.apply(this,[].slice.call(arguments,1))}function I(_,A){let F=_.apply(this,[].slice.call(arguments,1)),P=this.axis.chart,{width:D}=A;if(P.is3d()&&this.base){let C=+this.base.split(",")[0],d=P.series[C],g=P.options.chart.options3d;if(d&&d.type==="column"){let y={x:F.x+(P.inverted?F.height:D/2),y:F.y,z:d.options.depth/2};P.inverted&&(F.width=0,g.alpha>=90&&g.alpha<=270&&(y.y+=D)),y=l([y],P,!0,!1)[0],F.x=y.x-D/2,F.y=y.y}}return F}return{compose:function(_,A){if(f(n,"Column3D")){let F=_.prototype,P=A.prototype,{column:D,columnRange:C}=_.types;if(u(F,"alignDataLabel",R),u(F,"justifyDataLabel",O),u(P,"getStackBox",I),D){let d=D.prototype,g=d.pointClass.prototype;d.translate3dPoints=()=>{},d.translate3dShapes=p,a(d,"afterInit",b),u(g,"hasNewShapeType",v),u(d,"animate",x),u(d,"plotGroup",m),u(d,"pointAttribs",E),u(d,"setState",L),u(d,"setVisible",S),u(d,"translate",w)}if(C){let d=C.prototype;u(d.pointClass.prototype,"hasNewShapeType",v),u(d,"plotGroup",m),u(d,"pointAttribs",E),u(d,"setState",L),u(d,"setVisible",S)}}}}}),i(t,"Series/Pie3D/Pie3DPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{pie:{prototype:{pointClass:s}}}=e.seriesTypes;return class extends s{haloPath(){return this.series?.chart.is3d()?[]:super.haloPath.apply(this,arguments)}}}),i(t,"Series/Pie3D/Pie3DSeries.js",[t["Core/Globals.js"],t["Series/Pie3D/Pie3DPoint.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{composed:l,deg2rad:a}=e,{pie:h}=r.seriesTypes,{extend:c,pick:f,pushUnique:u}=n;class p extends h{static compose(v){u(l,"Pie3D")&&(v.types.pie=p)}addPoint(){super.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)}animate(v){if(this.chart.is3d()){let x=this.center,m=this.group,E=this.markerGroup,L=this.options.animation,S;L===!0&&(L={}),v?(m.oldtranslateX=f(m.oldtranslateX,m.translateX),m.oldtranslateY=f(m.oldtranslateY,m.translateY),S={translateX:x[0],translateY:x[1],scaleX:.001,scaleY:.001},m.attr(S),E&&(E.attrSetters=m.attrSetters,E.attr(S))):(S={translateX:m.oldtranslateX,translateY:m.oldtranslateY,scaleX:1,scaleY:1},m.animate(S,L),E&&E.animate(S,L))}else super.animate.apply(this,arguments)}getDataLabelPosition(v,x){let m=super.getDataLabelPosition(v,x);if(this.chart.is3d()){let E=this.chart.options.chart.options3d,L=v.shapeArgs,S=L.r,w=(L.alpha||E?.alpha)*a,R=(L.beta||E?.beta)*a,O=(L.start+L.end)/2,I=m.connectorPosition,_=-S*(1-Math.cos(w))*Math.sin(O),A=S*(Math.cos(R)-1)*Math.cos(O);for(let F of[m?.natural,I.breakAt,I.touchingSliceAt])F.x+=A,F.y+=_}return m}pointAttribs(v){let x=super.pointAttribs.apply(this,arguments),m=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(x.stroke=m.edgeColor||v.color||this.color,x["stroke-width"]=f(m.edgeWidth,1)),x}translate(){if(super.translate.apply(this,arguments),!this.chart.is3d())return;let v=this.options,x=v.depth||0,m=this.chart.options.chart.options3d,E=m.alpha,L=m.beta,S=v.stacking?(v.stack||0)*x:this._i*x;for(let w of(S+=x/2,v.grouping!==!1&&(S=0),this.points)){let R=w.shapeArgs;w.shapeType="arc3d",R.z=S,R.depth=.75*x,R.alpha=E,R.beta=L,R.center=this.center;let O=(R.end+R.start)/2;w.slicedTranslation={translateX:Math.round(Math.cos(O)*v.slicedOffset*Math.cos(E*a)),translateY:Math.round(Math.sin(O)*v.slicedOffset*Math.cos(E*a))}}}drawTracker(){if(super.drawTracker.apply(this,arguments),this.chart.is3d()){for(let v of this.points)if(v.graphic)for(let x of["out","inn","side1","side2"])v.graphic&&(v.graphic[x].element.point=v)}}}return c(p.prototype,{pointClass:s}),p}),i(t,"Series/Scatter3D/Scatter3DPoint.js",[t["Series/Scatter/ScatterSeries.js"],t["Core/Utilities.js"]],function(e,s){let{pointClass:r}=e.prototype,{defined:n}=s;return class extends r{applyOptions(){return super.applyOptions.apply(this,arguments),n(this.z)||(this.z=0),this}}}),i(t,"Series/Scatter3D/Scatter3DSeriesDefaults.js",[],function(){return{tooltip:{pointFormat:"x: {point.x}
y: {point.y}
z: {point.z}
"}}}),i(t,"Series/Scatter3D/Scatter3DSeries.js",[t["Core/Math3D.js"],t["Series/Scatter3D/Scatter3DPoint.js"],t["Series/Scatter3D/Scatter3DSeriesDefaults.js"],t["Series/Scatter/ScatterSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{pointCameraDistance:h}=e,{extend:c,merge:f}=a;class u extends n{pointAttribs(b){let v=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&b&&(v.zIndex=h(b,this.chart)),v}}return u.defaultOptions=f(n.defaultOptions,r),c(u.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:s}),l.registerSeriesType("scatter3d",u),u}),i(t,"masters/highcharts-3d.src.js",[t["Core/Globals.js"],t["Core/Chart/Chart3D.js"],t["Series/Area3D/Area3DSeries.js"],t["Core/Axis/Axis3DComposition.js"],t["Core/Renderer/RendererRegistry.js"],t["Core/Series/Series3D.js"],t["Core/Axis/Stacking/StackItem.js"],t["Core/Renderer/SVG/SVGRenderer3D.js"],t["Core/Axis/ZAxis.js"],t["Series/Column3D/Column3DComposition.js"],t["Series/Pie3D/Pie3DSeries.js"]],function(e,s,r,n,l,a,h,c,f,u,p){return r.compose(e.seriesTypes.area),n.compose(e.Axis,e.Tick),s.compose(e.Chart,e.Fx),u.compose(e.Series,h),p.compose(e.Series),a.compose(e.Series),c.compose(l.getRendererType()),f.compose(e.Chart),e})})});var $u=oi((xA,po)=>{"use strict";(function(o){typeof po=="object"&&po.exports?(o.default=o,po.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/exporting",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Core/Chart/ChartNavigationComposition.js",[],function(){var e;return function(s){s.compose=function(n){return n.navigation||(n.navigation=new r(n)),n};class r{constructor(l){this.updates=[],this.chart=l}addUpdate(l){this.chart.navigation.updates.push(l)}update(l,a){this.updates.forEach(h=>{h.call(this.chart,l,a)})}}s.Additions=r}(e||(e={})),e}),i(t,"Extensions/Exporting/ExportingDefaults.js",[t["Core/Globals.js"]],function(e){let{isTouchDevice:s}=e;return{exporting:{allowTableSorting:!0,type:"image/png",url:"https://export.highcharts.com/",pdfFont:{normal:void 0,bold:void 0,bolditalic:void 0,italic:void 0},printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",titleKey:"contextButtonTitle",menuItems:["viewFullscreen","printChart","separator","downloadPNG","downloadJPEG","downloadPDF","downloadSVG"]}},menuItemDefinitions:{viewFullscreen:{textKey:"viewFullscreen",onclick:function(){this.fullscreen&&this.fullscreen.toggle()}},printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},lang:{viewFullscreen:"View in full screen",exitFullscreen:"Exit from full screen",printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"},navigation:{buttonOptions:{symbolSize:14,symbolX:14.5,symbolY:13.5,align:"right",buttonSpacing:3,height:28,verticalAlign:"top",width:28,symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",padding:5,stroke:"none","stroke-linecap":"round"}},menuStyle:{border:"none",borderRadius:"3px",background:"#ffffff",padding:"0.5em"},menuItemStyle:{background:"none",borderRadius:"3px",color:"#333333",padding:"0.5em",fontSize:s?"0.9em":"0.8em",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#f2f2f2"}}}}),i(t,"Extensions/Exporting/ExportingSymbols.js",[],function(){var e;return function(s){let r=[];function n(a,h,c,f){return[["M",a,h+2.5],["L",a+c,h+2.5],["M",a,h+f/2+.5],["L",a+c,h+f/2+.5],["M",a,h+f-1.5],["L",a+c,h+f-1.5]]}function l(a,h,c,f){let u=f/3-2;return[].concat(this.circle(c-u,h,u,u),this.circle(c-u,h+u+4,u,u),this.circle(c-u,h+2*(u+4),u,u))}s.compose=function(a){if(r.indexOf(a)===-1){r.push(a);let h=a.prototype.symbols;h.menu=n,h.menuball=l.bind(h)}}}(e||(e={})),e}),i(t,"Extensions/Exporting/Fullscreen.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s,r){let{composed:n}=s,{addEvent:l,fireEvent:a,pushUnique:h}=r;function c(){this.fullscreen=new f(this)}class f{static compose(p){h(n,"Fullscreen")&&l(p,"beforeRender",c)}constructor(p){this.chart=p,this.isOpen=!1;let b=p.renderTo;!this.browserProps&&(typeof b.requestFullscreen=="function"?this.browserProps={fullscreenChange:"fullscreenchange",requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen"}:b.mozRequestFullScreen?this.browserProps={fullscreenChange:"mozfullscreenchange",requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen"}:b.webkitRequestFullScreen?this.browserProps={fullscreenChange:"webkitfullscreenchange",requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitExitFullscreen"}:b.msRequestFullscreen&&(this.browserProps={fullscreenChange:"MSFullscreenChange",requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen"}))}close(){let p=this,b=p.chart,v=b.options.chart;a(b,"fullscreenClose",null,function(){p.isOpen&&p.browserProps&&b.container.ownerDocument instanceof Document&&b.container.ownerDocument[p.browserProps.exitFullscreen](),p.unbindFullscreenEvent&&(p.unbindFullscreenEvent=p.unbindFullscreenEvent()),b.setSize(p.origWidth,p.origHeight,!1),p.origWidth=void 0,p.origHeight=void 0,v.width=p.origWidthOption,v.height=p.origHeightOption,p.origWidthOption=void 0,p.origHeightOption=void 0,p.isOpen=!1,p.setButtonText()})}open(){let p=this,b=p.chart,v=b.options.chart;a(b,"fullscreenOpen",null,function(){if(v&&(p.origWidthOption=v.width,p.origHeightOption=v.height),p.origWidth=b.chartWidth,p.origHeight=b.chartHeight,p.browserProps){let x=l(b.container.ownerDocument,p.browserProps.fullscreenChange,function(){p.isOpen?(p.isOpen=!1,p.close()):(b.setSize(null,null,!1),p.isOpen=!0,p.setButtonText())}),m=l(b,"destroy",x);p.unbindFullscreenEvent=()=>{x(),m()};let E=b.renderTo[p.browserProps.requestFullscreen]();E&&E.catch(function(){alert("Full screen is not supported inside a frame.")})}})}setButtonText(){let p=this.chart,b=p.exportDivElements,v=p.options.exporting,x=v&&v.buttons&&v.buttons.contextButton.menuItems,m=p.options.lang;if(v&&v.menuItemDefinitions&&m&&m.exitFullscreen&&m.viewFullscreen&&x&&b){let E=b[x.indexOf("viewFullscreen")];E&&e.setElementHTML(E,this.isOpen?m.exitFullscreen:v.menuItemDefinitions.viewFullscreen.text||m.viewFullscreen)}}toggle(){this.isOpen?this.close():this.open()}}return f}),i(t,"Core/HttpUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{win:r}=e,{discardElement:n,objectEach:l}=s,a={ajax:function(h){let c={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},f=new XMLHttpRequest;function u(p,b){h.error&&h.error(p,b)}if(!h.url)return!1;f.open((h.type||"get").toUpperCase(),h.url,!0),h.headers&&h.headers["Content-Type"]||f.setRequestHeader("Content-Type",c[h.dataType||"json"]||c.text),l(h.headers,function(p,b){f.setRequestHeader(b,p)}),h.responseType&&(f.responseType=h.responseType),f.onreadystatechange=function(){let p;if(f.readyState===4){if(f.status===200){if(h.responseType!=="blob"&&(p=f.responseText,h.dataType==="json"))try{p=JSON.parse(p)}catch(b){if(b instanceof Error)return u(f,b)}return h.success&&h.success(p,f)}u(f,f.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),f.send(h.data)},getJSON:function(h,c){a.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,f){let u=new r.FormData;l(c,function(v,x){u.append(x,v)}),u.append("b64","true");let{filename:p,type:b}=c;return r.fetch(h,Se({method:"POST",body:u},f)).then(v=>{v.ok&&v.text().then(x=>{let m=document.createElement("a");m.href=`data:${b};base64,${x}`,m.download=p,m.click(),n(m)})})}};return a}),i(t,"Extensions/Exporting/Exporting.js",[t["Core/Renderer/HTML/AST.js"],t["Core/Chart/Chart.js"],t["Core/Chart/ChartNavigationComposition.js"],t["Core/Defaults.js"],t["Extensions/Exporting/ExportingDefaults.js"],t["Extensions/Exporting/ExportingSymbols.js"],t["Extensions/Exporting/Fullscreen.js"],t["Core/Globals.js"],t["Core/HttpUtilities.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c,f,u){var p;let{defaultOptions:b}=n,{doc:v,SVG_NS:x,win:m}=c,{addEvent:E,css:L,createElement:S,discardElement:w,extend:R,find:O,fireEvent:I,isObject:_,merge:A,objectEach:F,pick:P,removeEvent:D,uniqueKey:C}=u;return function(d){let g,y=[/-/,/^(clipPath|cssText|d|height|width)$/,/^font$/,/[lL]ogical(Width|Height)$/,/^parentRule$/,/^(cssRules|ownerRules)$/,/perspective/,/TapHighlightColor/,/^transition/,/^length$/,/^[0-9]+$/],M=["fill","stroke","strokeLinecap","strokeLinejoin","strokeWidth","textAnchor","x","y"];d.inlineAllowlist=[];let k=["clipPath","defs","desc"];function T($){let Q,et,it=this,st=it.renderer,rt=A(it.options.navigation.buttonOptions,$),nt=rt.onclick,ot=rt.menuItems,at=rt.symbolSize||12;if(it.btnCount||(it.btnCount=0),it.exportDivElements||(it.exportDivElements=[],it.exportSVGElements=[]),rt.enabled===!1||!rt.theme)return;let ct=it.styledMode?{}:rt.theme;nt?et=function(lt){lt&<.stopPropagation(),nt.call(it,lt)}:ot&&(et=function(lt){lt&<.stopPropagation(),it.contextMenu(ht.menuClassName,ot,ht.translateX||0,ht.translateY||0,ht.width||0,ht.height||0,ht),ht.setState(2)}),rt.text&&rt.symbol?ct.paddingLeft=P(ct.paddingLeft,30):rt.text||R(ct,{width:rt.width,height:rt.height,padding:0});let ht=st.button(rt.text,0,0,et,ct,void 0,void 0,void 0,void 0,rt.useHTML).addClass($.className).attr({title:P(it.options.lang[rt._titleKey||rt.titleKey],"")});ht.menuClassName=$.menuClassName||"highcharts-menu-"+it.btnCount++,rt.symbol&&(Q=st.symbol(rt.symbol,Math.round((rt.symbolX||0)-at/2),Math.round((rt.symbolY||0)-at/2),at,at,{width:at,height:at}).addClass("highcharts-button-symbol").attr({zIndex:1}).add(ht),it.styledMode||Q.attr({stroke:rt.symbolStroke,fill:rt.symbolFill,"stroke-width":rt.symbolStrokeWidth||1})),ht.add(it.exportingGroup).align(R(rt,{width:ht.width,x:P(rt.x,it.buttonOffset)}),!0,"spacingBox"),it.buttonOffset+=((ht.width||0)+rt.buttonSpacing)*(rt.align==="right"?-1:1),it.exportSVGElements.push(ht,Q)}function z(){if(!this.printReverseInfo)return;let{childNodes:$,origDisplay:Q,resetParams:et}=this.printReverseInfo;this.moveContainers(this.renderTo),[].forEach.call($,function(it,st){it.nodeType===1&&(it.style.display=Q[st]||"")}),this.isPrinting=!1,et&&this.setSize.apply(this,et),delete this.printReverseInfo,g=void 0,I(this,"afterPrint")}function N(){let $=v.body,Q=this.options.exporting.printMaxWidth,et={childNodes:$.childNodes,origDisplay:[],resetParams:void 0};this.isPrinting=!0,this.pointer?.reset(void 0,0),I(this,"beforePrint"),Q&&this.chartWidth>Q&&(et.resetParams=[this.options.chart.width,void 0,!1],this.setSize(Q,void 0,!1)),[].forEach.call(et.childNodes,function(it,st){it.nodeType===1&&(et.origDisplay[st]=it.style.display,it.style.display="none")}),this.moveContainers($),this.printReverseInfo=et}function G($){$.renderExporting(),E($,"redraw",$.renderExporting),E($,"destroy",$.destroyExport)}function X($,Q,et,it,st,rt,nt){let ot=this,at=ot.options.navigation,ct=ot.chartWidth,ht=ot.chartHeight,lt="cache-"+$,yt=Math.max(st,rt),Et,dt=ot[lt];dt||(ot.exportContextMenu=ot[lt]=dt=S("div",{className:$},Se({position:"absolute",zIndex:1e3,padding:yt+"px",pointerEvents:"auto"},ot.renderer.style),ot.scrollablePlotArea?.fixedDiv||ot.container),Et=S("ul",{className:"highcharts-menu"},ot.styledMode?{}:{listStyle:"none",margin:0,padding:0},dt),ot.styledMode||L(Et,R({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},at.menuStyle)),dt.hideMenu=function(){L(dt,{display:"none"}),nt&&nt.setState(0),ot.openMenu=!1,L(ot.renderTo,{overflow:"hidden"}),L(ot.container,{overflow:"hidden"}),u.clearTimeout(dt.hideTimer),I(ot,"exportMenuHidden")},ot.exportEvents.push(E(dt,"mouseleave",function(){dt.hideTimer=m.setTimeout(dt.hideMenu,500)}),E(dt,"mouseenter",function(){u.clearTimeout(dt.hideTimer)}),E(v,"mouseup",function(mt){ot.pointer?.inClass(mt.target,$)||dt.hideMenu()}),E(dt,"click",function(){ot.openMenu&&dt.hideMenu()})),Q.forEach(function(mt){if(typeof mt=="string"&&(mt=ot.options.exporting.menuItemDefinitions[mt]),_(mt,!0)){let Pt;mt.separator?Pt=S("hr",void 0,void 0,Et):(mt.textKey==="viewData"&&ot.isDataTableVisible&&(mt.textKey="hideData"),Pt=S("li",{className:"highcharts-menu-item",onclick:function(jt){jt&&jt.stopPropagation(),dt.hideMenu(),typeof mt!="string"&&mt.onclick&&mt.onclick.apply(ot,arguments)}},void 0,Et),e.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,R({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"};et+(ot.exportMenuWidth||0)>ct?St.right=ct-et-st-yt+"px":St.left=et-yt+"px",it+rt+(ot.exportMenuHeight||0)>ht&&nt.alignOptions?.verticalAlign!=="top"?St.bottom=ht-it-yt+"px":St.top=it+rt-yt+"px",L(dt,St),L(ot.renderTo,{overflow:""}),L(ot.container,{overflow:""}),ot.openMenu=!0,I(ot,"exportMenuShown")}function j($){let Q,et=$?$.target:this,it=et.exportSVGElements,st=et.exportDivElements,rt=et.exportEvents;it&&(it.forEach((nt,ot)=>{nt&&(nt.onclick=nt.ontouchstart=null,et[Q="cache-"+nt.menuClassName]&&delete et[Q],it[ot]=nt.destroy())}),it.length=0),et.exportingGroup&&(et.exportingGroup.destroy(),delete et.exportingGroup),st&&(st.forEach(function(nt,ot){nt&&(u.clearTimeout(nt.hideTimer),D(nt,"mouseleave"),st[ot]=nt.onmouseout=nt.onmouseover=nt.ontouchstart=nt.onclick=null,w(nt))}),st.length=0),rt&&(rt.forEach(function(nt){nt()}),rt.length=0)}function B($,Q){let et=this.getSVGForExport($,Q);$=A(this.options.exporting,$),f.post($.url,{filename:$.filename?$.filename.replace(/\//g,"-"):this.getFilename(),type:$.type,width:$.width,scale:$.scale,svg:et},$.fetchOptions)}function W(){return this.styledMode&&this.inlineStyles(),this.container.innerHTML}function V(){let $=this.userOptions.title&&this.userOptions.title.text,Q=this.options.exporting.filename;return Q?Q.replace(/\//g,"-"):(typeof $=="string"&&(Q=$.toLowerCase().replace(/<\/?[^>]+(>|$)/g,"").replace(/[\s_]+/g,"-").replace(/[^a-z0-9\-]/g,"").replace(/^[\-]+/g,"").replace(/[\-]+/g,"-").substr(0,24).replace(/[\-]+$/g,"")),(!Q||Q.length<5)&&(Q="chart"),Q)}function U($){let Q,et,it=A(this.options,$);it.plotOptions=A(this.userOptions.plotOptions,$&&$.plotOptions),it.time=A(this.userOptions.time,$&&$.time);let st=S("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},v.body),rt=this.renderTo.style.width,nt=this.renderTo.style.height,ot=it.exporting.sourceWidth||it.chart.width||/px$/.test(rt)&&parseInt(rt,10)||(it.isGantt?800:600),at=it.exporting.sourceHeight||it.chart.height||/px$/.test(nt)&&parseInt(nt,10)||400;R(it.chart,{animation:!1,renderTo:st,forExport:!0,renderer:"SVGRenderer",width:ot,height:at}),it.exporting.enabled=!1,delete it.data,it.series=[],this.series.forEach(function(lt){(et=A(lt.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:lt.visible})).isInternal||it.series.push(et)});let ct={};this.axes.forEach(function(lt){lt.userOptions.internalKey||(lt.userOptions.internalKey=C()),lt.options.isInternal||(ct[lt.coll]||(ct[lt.coll]=!0,it[lt.coll]=[]),it[lt.coll].push(A(lt.userOptions,{visible:lt.visible})))}),it.colorAxis=this.userOptions.colorAxis;let ht=new this.constructor(it,this.callback);return $&&["xAxis","yAxis","series"].forEach(function(lt){let yt={};$[lt]&&(yt[lt]=$[lt],ht.update(yt))}),this.axes.forEach(function(lt){let yt=O(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)}),Q=ht.getChartHTML(),I(this,"getSVG",{chartCopy:ht}),Q=this.sanitizeSVG(Q,it),it=null,ht.destroy(),w(st),Q}function q($,Q){let et=this.options.exporting;return this.getSVG(A({chart:{borderRadius:0}},et.chartOptions,Q,{exporting:{sourceWidth:$&&$.sourceWidth||et.sourceWidth,sourceHeight:$&&$.sourceHeight||et.sourceHeight}}))}function H(){let $,Q=d.inlineAllowlist,et={},it=v.createElement("iframe");L(it,{width:"1px",height:"1px",visibility:"hidden"}),v.body.appendChild(it);let st=it.contentWindow&&it.contentWindow.document;st&&st.body.appendChild(st.createElementNS(x,"svg")),function rt(nt){let ot,at,ct,ht,lt,yt,Et={};if(st&&nt.nodeType===1&&k.indexOf(nt.nodeName)===-1){if(ot=m.getComputedStyle(nt,null),at=nt.nodeName==="svg"?{}:m.getComputedStyle(nt.parentNode,null),!et[nt.nodeName]){$=st.getElementsByTagName("svg")[0],ct=st.createElementNS(nt.namespaceURI,nt.nodeName),$.appendChild(ct);let dt=m.getComputedStyle(ct,null),St={};for(let mt in dt)mt.length<1e3&&typeof dt[mt]=="string"&&!/^[0-9]+$/.test(mt)&&(St[mt]=dt[mt]);et[nt.nodeName]=St,nt.nodeName==="text"&&delete et.text.fill,$.removeChild(ct)}for(let dt in ot)(c.isFirefox||c.isMS||c.isSafari||Object.hasOwnProperty.call(ot,dt))&&function(St,mt){if(ht=lt=!1,Q.length){for(yt=Q.length;yt--&&!lt;)lt=Q[yt].test(mt);ht=!lt}for(mt==="transform"&&St==="none"&&(ht=!0),yt=y.length;yt--&&!ht;){if(mt.length>1e3)throw Error("Input too long");ht=y[yt].test(mt)||typeof St=="function"}!ht&&(at[mt]!==St||nt.nodeName==="svg")&&et[nt.nodeName][mt]!==St&&(M&&M.indexOf(mt)===-1?Et[mt]=St:St&&nt.setAttribute(mt.replace(/([A-Z])/g,function(Pt,jt){return"-"+jt.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($),it.parentNode.removeChild(it)}function Y($){let{scrollablePlotArea:Q}=this;(Q?[Q.fixedDiv,Q.scrollingContainer]:[this.container]).forEach(function(et){$.appendChild(et)})}function Z(){let $=this,Q=(et,it,st)=>{$.isDirtyExporting=!0,A(!0,$.options[et],it),P(st,!0)&&$.redraw()};$.exporting={update:function(et,it){Q("exporting",et,it)}},r.compose($).navigation.addUpdate((et,it)=>{Q("navigation",et,it)})}function K(){let $=this;$.isPrinting||(g=$,c.isSafari||$.beforePrint(),setTimeout(()=>{m.focus(),m.print(),c.isSafari||setTimeout(()=>{$.afterPrint()},1e3)},1))}function J(){let $=this,Q=$.options.exporting,et=Q.buttons,it=$.isDirtyExporting||!$.exportSVGElements;$.buttonOffset=0,$.isDirtyExporting&&$.destroyExport(),it&&Q.enabled!==!1&&($.exportEvents=[],$.exportingGroup=$.exportingGroup||$.renderer.g("exporting-group").attr({zIndex:3}).add(),F(et,function(st){$.addButton(st)}),$.isDirtyExporting=!1)}function tt($,Q){let et=$.indexOf("")+6,it=$.substr(et);return $=$.substr(0,et),Q&&Q.exporting&&Q.exporting.allowHTML&&it&&(it=''+it.replace(/(<(?:img|br).*?(?=\>))>/g,"$1 />")+"",$=$.replace("",it+"")),$=$.replace(/zIndex="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(.*?)("|")\;?\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/{"use strict";(function(o){typeof fo=="object"&&fo.exports?(o.default=o,fo.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/stock",["highcharts"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Series/DataModifyComposition.js",[t["Core/Axis/Axis.js"],t["Core/Series/Point.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,s,r,n){var l;let{tooltipFormatter:a}=s.prototype,{addEvent:h,arrayMax:c,arrayMin:f,correctFloat:u,defined:p,isArray:b,isNumber:v,isString:x,pick:m}=n;return function(E){function L(D,C,d){!this.isXAxis&&(this.series.forEach(function(g){D==="compare"&&typeof C!="boolean"?g.setCompare(C,!1):D!=="cumulative"||x(C)||g.setCumulative(C,!1)}),m(d,!0)&&this.chart.redraw())}function S(D){let C=this,{numberFormatter:d}=C.series.chart,g=function(y){D=D.replace("{point."+y+"}",(C[y]>0&&y==="change"?"+":"")+d(C[y],m(C.series.tooltipOptions.changeDecimals,2)))};return p(C.change)&&g("change"),p(C.cumulativeSum)&&g("cumulativeSum"),a.apply(this,[D])}function w(){let D,C=this.options.compare;(C==="percent"||C==="value"||this.options.cumulative)&&(D=new P(this),C==="percent"||C==="value"?D.initCompare(C):D.initCumulative()),this.dataModify=D}function R(D){let C=D.dataExtremes,d=C.activeYData;if(this.dataModify&&C){let g;this.options.compare?g=[this.dataModify.modifyValue(C.dataMin),this.dataModify.modifyValue(C.dataMax)]:this.options.cumulative&&b(d)&&d.length>=2&&(g=P.getCumulativeExtremes(d)),g&&(C.dataMin=f(g),C.dataMax=c(g))}}function O(D,C){this.options.compare=this.userOptions.compare=D,this.update({},m(C,!0)),this.dataModify&&(D==="value"||D==="percent")?this.dataModify.initCompare(D):this.points.forEach(d=>{delete d.change})}function I(){if(this.xAxis&&this.processedYData&&this.dataModify){let D=this.processedXData,C=this.processedYData,d=C.length,g=this.options.compareStart===!0?0:1,y=-1,M;for(this.pointArrayMap&&(y=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),M=0;M-1?C[M][y]:C[M];if(v(k)&&k!==0&&D[M+g]>=(this.xAxis.min||0)){this.dataModify.compareValue=k;break}}}}function _(D,C){this.setModifier("compare",D,C)}function A(D,C){D=m(D,!1),this.options.cumulative=this.userOptions.cumulative=D,this.update({},m(C,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(d=>{delete d.cumulativeSum})}function F(D,C){this.setModifier("cumulative",D,C)}E.compose=function(D,C,d){let g=C.prototype,y=d.prototype,M=D.prototype;return M.setCompare||(M.setCompare=O,M.setCumulative=A,h(D,"afterInit",w),h(D,"afterGetExtremes",R),h(D,"afterProcessData",I)),g.setCompare||(g.setCompare=_,g.setModifier=L,g.setCumulative=F,y.tooltipFormatter=S),D};class P{constructor(C){this.series=C}modifyValue(){return 0}static getCumulativeExtremes(C){let d=1/0,g=-1/0;return C.reduce((y,M)=>{let k=y+M;return d=Math.min(d,k,y),g=Math.max(g,k,y),k}),[d,g]}initCompare(C){this.modifyValue=function(d,g){d===null&&(d=0);let y=this.compareValue;if(d!==void 0&&y!==void 0){if(C==="value"?d-=y:d=d/y*100-(this.series.options.compareBase===100?0:100),g!==void 0){let M=this.series.points[g];M&&(M.change=d)}return d}return 0}}initCumulative(){this.modifyValue=function(C,d){if(C===null&&(C=0),C!==void 0&&d!==void 0){let g=d>0?this.series.points[d-1]:null;g&&g.cumulativeSum&&(C=u(g.cumulativeSum+C));let y=this.series.points[d],M=y.series.options.cumulativeStart,k=y.x<=this.series.xAxis.max&&y.x>=this.series.xAxis.min;return y&&(!M||k?y.cumulativeSum=C:y.cumulativeSum=void 0),C}return 0}}}E.Additions=P}(l||(l={})),l}),i(t,"Stock/Navigator/ChartNavigatorComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let r,{isTouchDevice:n}=e,{addEvent:l,merge:a,pick:h}=s,c=[];function f(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function u(){let E,L,S,w=this.legend,R=this.navigator;if(R){E=w&&w.options,L=R.xAxis,S=R.yAxis;let{scrollbarHeight:O,scrollButtonSize:I}=R;this.inverted?(R.left=R.opposite?this.chartWidth-O-R.height:this.spacing[3]+O,R.top=this.plotTop+I):(R.left=h(L.left,this.plotLeft+I),R.top=R.navigatorOptions.top||this.chartHeight-R.height-O-(this.scrollbar?.options.margin||0)-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(E&&E.verticalAlign==="bottom"&&E.layout!=="proximate"&&E.enabled&&!E.floating?w.legendHeight+h(E.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),L&&S&&(this.inverted?L.options.left=S.options.left=R.left:L.options.top=S.options.top=R.top,L.setAxisSize(),S.setAxisSize())}}function p(E){!this.navigator&&!this.scroller&&(this.options.navigator.enabled||this.options.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this),h(E.redraw,!0)&&this.redraw(E.animation))}function b(){let E=this.options;(E.navigator.enabled||E.scrollbar.enabled)&&(this.scroller=this.navigator=new r(this))}function v(){let E=this.options,L=E.navigator,S=E.rangeSelector;if((L&&L.enabled||S&&S.enabled)&&(!n&&this.zooming.type==="x"||n&&this.zooming.pinchType==="x"))return!1}function x(E){let L=E.navigator;if(L&&E.xAxis[0]){let S=E.xAxis[0].getExtremes();L.render(S.min,S.max)}}function m(E){let L=E.options.navigator||{},S=E.options.scrollbar||{};!this.navigator&&!this.scroller&&(L.enabled||S.enabled)&&(a(!0,this.options.navigator,L),a(!0,this.options.scrollbar,S),delete E.options.navigator,delete E.options.scrollbar)}return{compose:function(E,L){if(s.pushUnique(c,E)){let S=E.prototype;r=L,S.callbacks.push(x),l(E,"afterAddSeries",f),l(E,"afterSetChartSize",u),l(E,"afterUpdate",p),l(E,"beforeRender",b),l(E,"beforeShowResetZoom",v),l(E,"update",m)}}}}),i(t,"Core/Axis/NavigatorAxisComposition.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){let{isTouchDevice:r}=e,{addEvent:n,correctFloat:l,defined:a,isNumber:h,pick:c}=s;function f(){this.navigatorAxis||(this.navigatorAxis=new p(this))}function u(b){let v,x=this.chart,m=x.options,E=m.navigator,L=this.navigatorAxis,S=x.zooming.pinchType,w=m.rangeSelector,R=x.zooming.type;if(this.isXAxis&&(E?.enabled||w?.enabled)){if(R==="y"&&b.trigger==="zoom")v=!1;else if((b.trigger==="zoom"&&R==="xy"||r&&S==="xy")&&this.options.range){let O=L.previousZoom;a(b.min)?L.previousZoom=[this.min,this.max]:O&&(b.min=O[0],b.max=O[1],L.previousZoom=void 0)}}v!==void 0&&b.preventDefault()}class p{static compose(v){v.keepProps.includes("navigatorAxis")||(v.keepProps.push("navigatorAxis"),n(v,"init",f),n(v,"setExtremes",u))}constructor(v){this.axis=v}destroy(){this.axis=void 0}toFixedRange(v,x,m,E){let L=this.axis,S=(L.pointRange||0)/2,w=c(m,L.translate(v,!0,!L.horiz)),R=c(E,L.translate(x,!0,!L.horiz));return a(m)||(w=l(w+S)),a(E)||(R=l(R-S)),h(w)&&h(R)||(w=R=void 0),{min:w,max:R}}}return p}),i(t,"Stock/Navigator/NavigatorDefaults.js",[t["Core/Color/Color.js"],t["Core/Series/SeriesRegistry.js"]],function(e,s){let{parse:r}=e,{seriesTypes:n}=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:n.areaspline===void 0?"line":"areaspline",fillOpacity:.05,lineWidth:1,compare:null,sonification:{enabled:!1},dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",id:"navigator-x-axis",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#000000",fontSize:"0.7em",opacity:.6,textOutline:"2px contrast"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,id:"navigator-y-axis",maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),i(t,"Stock/Navigator/NavigatorSymbols.js",[t["Core/Renderer/SVG/Symbols.js"],t["Core/Utilities.js"]],function(e,s){let{relativeLength:r}=s;return{"navigator-handle":function(n,l,a,h,c={}){let f=c.width?c.width/2:a,u=r(c.borderRadius||0,Math.min(2*f,h));return[["M",-1.5,(h=c.height||h)/2-3.5],["L",-1.5,h/2+4.5],["M",.5,h/2-3.5],["L",.5,h/2+4.5],...e.rect(-f-1,.5,2*f+1,h,{r:u})]}}}),i(t,"Stock/Utilities/StockUtilities.js",[t["Core/Utilities.js"]],function(e){let{defined:s}=e;return{setFixedRange:function(r){let n=this.xAxis[0];s(n.dataMax)&&s(n.dataMin)&&r?this.fixedRange=Math.min(r,n.dataMax-n.dataMin):this.fixedRange=r}}}),i(t,"Stock/Navigator/NavigatorComposition.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/Navigator/NavigatorSymbols.js"],t["Core/Renderer/RendererRegistry.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c){let{setOptions:f}=e,{composed:u}=s,{getRendererType:p}=a,{setFixedRange:b}=h,{addEvent:v,extend:x,pushUnique:m}=c;function E(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(L,S,w){r.compose(S),m(u,"Navigator")&&(L.prototype.setFixedRange=b,x(p().prototype.symbols,l),v(w,"afterUpdate",E),f({navigator:n}))}}}),i(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],function(e,s){var r;let{composed:n}=e,{addEvent:l,defined:a,pick:h,pushUnique:c}=s;return function(f){let u;function p(m){let E=h(m.options&&m.options.min,m.min),L=h(m.options&&m.options.max,m.max);return{axisMin:E,axisMax:L,scrollMin:a(m.dataMin)?Math.min(E,m.min,m.dataMin,h(m.threshold,1/0)):E,scrollMax:a(m.dataMax)?Math.max(L,m.max,m.dataMax,h(m.threshold,-1/0)):L}}function b(){let m=this.scrollbar,E=m&&!m.options.opposite,L=this.horiz?2:E?3:1;m&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[L]+=m.size+(m.options.margin||0))}function v(){let m=this;m.options&&m.options.scrollbar&&m.options.scrollbar.enabled&&(m.options.scrollbar.vertical=!m.horiz,m.options.startOnTick=m.options.endOnTick=!1,m.scrollbar=new u(m.chart.renderer,m.options.scrollbar,m.chart),l(m.scrollbar,"changed",function(E){let L,S,{axisMin:w,axisMax:R,scrollMin:O,scrollMax:I}=p(m),_=I-O;if(a(w)&&a(R))if(m.horiz&&!m.reversed||!m.horiz&&m.reversed?(L=O+_*this.to,S=O+_*this.from):(L=O+_*(1-this.from),S=O+_*(1-this.to)),this.shouldUpdateExtremes(E.DOMType)){let A=E.DOMType!=="mousemove"&&E.DOMType!=="touchmove"&&void 0;m.setExtremes(S,L,!0,A,E)}else this.setRange(this.from,this.to)}))}function x(){let m,E,L,{scrollMin:S,scrollMax:w}=p(this),R=this.scrollbar,O=this.axisTitleMargin+(this.titleOffset||0),I=this.chart.scrollbarsOffsets,_=this.options.margin||0;if(R&&I){if(this.horiz)this.opposite||(I[1]+=O),R.position(this.left,this.top+this.height+2+I[1]-(this.opposite?_:0),this.width,this.height),this.opposite||(I[1]+=_),m=1;else{let A;this.opposite&&(I[0]+=O),A=R.options.opposite?this.left+this.width+2+I[0]-(this.opposite?0:_):this.opposite?0:_,R.position(A,this.top,this.width,this.height),this.opposite&&(I[0]+=_),m=0}I[m]+=R.size+(R.options.margin||0),isNaN(S)||isNaN(w)||!a(this.min)||!a(this.max)||this.min===this.max?R.setRange(0,1):(E=(this.min-S)/(w-S),L=(this.max-S)/(w-S),this.horiz&&!this.reversed||!this.horiz&&this.reversed?R.setRange(E,L):R.setRange(1-L,1-E))}}f.compose=function(m,E){c(n,"Axis.Scrollbar")&&(u=E,l(m,"afterGetOffset",b),l(m,"afterInit",v),l(m,"afterRender",x))}}(r||(r={})),r}),i(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}}),i(t,"Stock/Scrollbar/Scrollbar.js",[t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{defaultOptions:a}=e,{addEvent:h,correctFloat:c,crisp:f,defined:u,destroyObjectProperties:p,fireEvent:b,merge:v,pick:x,removeEvent:m}=l;class E{static compose(S){r.compose(S,E)}static swapXY(S,w){return w&&S.forEach(R=>{let O,I=R.length;for(let _=0;_this.calculatedWidth?w.minWidth:0;return{chartX:(S.chartX-this.x-this.xOffset)/(this.barWidth-R),chartY:(S.chartY-this.y-this.yOffset)/(this.barWidth-R)}}destroy(){let S=this,w=S.chart.scroller;S.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(R){S[R]&&S[R].destroy&&(S[R]=S[R].destroy())}),w&&S===w.scrollbar&&(w.scrollbar=null,p(w.scrollbarButtons))}drawScrollbarButton(S){let w=this.renderer,R=this.scrollbarButtons,O=this.options,I=this.size,_=w.g().add(this.group);if(R.push(_),O.buttonsEnabled){let A=w.rect().addClass("highcharts-scrollbar-button").add(_);this.chart.styledMode||A.attr({stroke:O.buttonBorderColor,"stroke-width":O.buttonBorderWidth,fill:O.buttonBackgroundColor}),A.attr(A.crisp({x:-.5,y:-.5,width:I,height:I,r:O.buttonBorderRadius},A.strokeWidth()));let F=w.path(E.swapXY([["M",I/2+(S?-1:1),I/2-3],["L",I/2+(S?-1:1),I/2+3],["L",I/2+(S?2:-2),I/2]],O.vertical)).addClass("highcharts-scrollbar-arrow").add(R[S]);this.chart.styledMode||F.attr({fill:O.buttonArrowColor})}}init(S,w,R){this.scrollbarButtons=[],this.renderer=S,this.userOptions=w,this.options=v(n,a.scrollbar,w),this.options.margin=x(this.options.margin,10),this.chart=R,this.size=x(this.options.size,this.options.height),w.enabled&&(this.render(),this.addEvents())}mouseDownHandler(S){let w=this.chart.pointer?.normalize(S)||S,R=this.cursorToScrollbarPosition(w);this.chartX=R.chartX,this.chartY=R.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0}mouseMoveHandler(S){let w,R=this.chart.pointer?.normalize(S)||S,O=this.options.vertical?"chartY":"chartX",I=this.initPositions||[];this.grabbedCenter&&(!S.touches||S.touches[0][O]!==0)&&(w=this.cursorToScrollbarPosition(R)[O]-this[O],this.hasDragged=!0,this.updatePosition(I[0]+w,I[1]+w),this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}))}mouseUpHandler(S){this.hasDragged&&b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:S.type,DOMEvent:S}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null}position(S,w,R,O){let{buttonsEnabled:I,margin:_=0,vertical:A}=this.options,F=this.rendered?"animate":"attr",P=O,D=0;this.group.show(),this.x=S,this.y=w+this.trackBorderWidth,this.width=R,this.height=O,this.xOffset=P,this.yOffset=D,A?(this.width=this.yOffset=R=D=this.size,this.xOffset=P=0,this.yOffset=D=I?this.size:0,this.barWidth=O-(I?2*R:0),this.x=S+=_):(this.height=O=this.size,this.xOffset=P=I?this.size:0,this.barWidth=R-(I?2*O:0),this.y=this.y+_),this.group[F]({translateX:S,translateY:this.y}),this.track[F]({width:R,height:O}),this.scrollbarButtons[1][F]({translateX:A?0:R-P,translateY:A?O-D:0})}removeEvents(){this._events.forEach(function(S){m.apply(null,S)}),this._events.length=0}render(){let S=this.renderer,w=this.options,R=this.size,O=this.chart.styledMode,I=S.g("scrollbar").attr({zIndex:w.zIndex}).hide().add();this.group=I,this.track=S.rect().addClass("highcharts-scrollbar-track").attr({r:w.trackBorderRadius||0,height:R,width:R}).add(I),O||this.track.attr({fill:w.trackBackgroundColor,stroke:w.trackBorderColor,"stroke-width":w.trackBorderWidth});let _=this.trackBorderWidth=this.track.strokeWidth();this.track.attr({x:-f(0,_),y:-f(0,_)}),this.scrollbarGroup=S.g().add(I),this.scrollbar=S.rect().addClass("highcharts-scrollbar-thumb").attr({height:R-_,width:R-_,r:w.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=S.path(E.swapXY([["M",-3,R/4],["L",-3,2*R/3],["M",0,R/4],["L",0,2*R/3],["M",3,R/4],["L",3,2*R/3]],w.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),O||(this.scrollbar.attr({fill:w.barBackgroundColor,stroke:w.barBorderColor,"stroke-width":w.barBorderWidth}),this.scrollbarRifles.attr({stroke:w.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-f(0,this.scrollbarStrokeWidth),-f(0,this.scrollbarStrokeWidth)),this.drawScrollbarButton(0),this.drawScrollbarButton(1)}setRange(S,w){let R,O,I=this.options,_=I.vertical,A=I.minWidth,F=this.barWidth,P=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(!u(F))return;let D=F*Math.min(w,1);R=Math.ceil(F*(S=Math.max(S,0))),this.calculatedWidth=O=c(D-R),O=1?this.group.hide():this.group.show()),this.rendered=!0}shouldUpdateExtremes(S){return x(this.options.liveRedraw,s.svg&&!s.isTouchDevice&&!this.chart.boosted)||S==="mouseup"||S==="touchend"||!u(S)}trackClick(S){let w=this.chart.pointer?.normalize(S)||S,R=this.to-this.from,O=this.y+this.scrollbarTop,I=this.x+this.scrollbarLeft;this.options.vertical&&w.chartY>O||!this.options.vertical&&w.chartX>I?this.updatePosition(this.from+R,this.to+R):this.updatePosition(this.from-R,this.to-R),b(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:S})}update(S){this.destroy(),this.init(this.chart.renderer,v(!0,this.options,S),this.chart)}updatePosition(S,w){w>1&&(S=c(1-c(w-S)),w=1),S<0&&(w=c(w-S),S=0),this.from=S,this.to=w}}return E.defaultOptions=n,a.scrollbar=v(!0,E.defaultOptions,a.scrollbar),E}),i(t,"Stock/Navigator/Navigator.js",[t["Core/Axis/Axis.js"],t["Stock/Navigator/ChartNavigatorComposition.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxisComposition.js"],t["Stock/Navigator/NavigatorComposition.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c){let{defaultOptions:f}=r,{isTouchDevice:u}=n,{addEvent:p,clamp:b,correctFloat:v,defined:x,destroyObjectProperties:m,erase:E,extend:L,find:S,fireEvent:w,isArray:R,isNumber:O,merge:I,pick:_,removeEvent:A,splat:F}=c;function P(C,...d){let g=[].filter.call(d,O);if(g.length)return Math[C].apply(0,g)}class D{static compose(d,g,y){s.compose(d,D),a.compose(d,g,y)}constructor(d){this.scrollbarHeight=0,this.init(d)}drawHandle(d,g,y,M){let k=this.navigatorOptions.handles.height;this.handles[g][M](y?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(d,10)+.5-k)}:{translateX:Math.round(this.left+parseInt(d,10)),translateY:Math.round(this.top+this.height/2-k/2-1)})}drawOutline(d,g,y,M){let k=this.navigatorOptions.maskInside,T=this.outline.strokeWidth(),z=T/2,N=T%2/2,G=this.scrollButtonSize,X=this.size,j=this.top,B=this.height,W=j-z,V=j+B,U=this.left,q,H;y?(q=j+g+N,g=j+d+N,H=[["M",U+B,j-G-N],["L",U+B,q],["L",U,q],["M",U,g],["L",U+B,g],["L",U+B,j+X+G]],k&&H.push(["M",U+B,q-z],["L",U+B,g+z])):(U-=G,d+=U+G-N,g+=U+G-N,H=[["M",U,W],["L",d,W],["L",d,V],["M",g,V],["L",g,W],["L",U+X+2*G,j+z]],k&&H.push(["M",d-z,W],["L",g+z,W])),this.outline[M]({d:H})}drawMasks(d,g,y,M){let k,T,z,N,G=this.left,X=this.top,j=this.height;y?(z=[G,G,G],N=[X,X+d,X+g],T=[j,j,j],k=[d,g-d,this.size-g]):(z=[G,G+d,G+g],N=[X,X,X],T=[d,g-d,this.size-g],k=[j,j,j]),this.shades.forEach((B,W)=>{B[M]({x:z[W],y:N[W],width:T[W],height:k[W]})})}renderElements(){let d=this,g=d.navigatorOptions,y=g.maskInside,M=d.chart,k=M.inverted,T=M.renderer,z={cursor:k?"ns-resize":"ew-resize"},N=d.navigatorGroup=T.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!y,y,!y].forEach((G,X)=>{let j=T.rect().addClass("highcharts-navigator-mask"+(X===1?"-inside":"-outside")).add(N);M.styledMode||(j.attr({fill:G?g.maskFill:"rgba(0,0,0,0)"}),X===1&&j.css(z)),d.shades[X]=j}),d.outline=T.path().addClass("highcharts-navigator-outline").add(N),M.styledMode||d.outline.attr({"stroke-width":g.outlineWidth,stroke:g.outlineColor}),g.handles&&g.handles.enabled){let G=g.handles,{height:X,width:j}=G;[0,1].forEach(B=>{d.handles[B]=T.symbol(G.symbols[B],-j/2-1,0,j,X,G),M.inverted&&d.handles[B].attr({rotation:90,rotationOriginX:Math.floor(-j/2),rotationOriginY:(X+j)/2}),d.handles[B].attr({zIndex:7-B}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][B]).add(N),M.styledMode||d.handles[B].attr({fill:G.backgroundColor,stroke:G.borderColor,"stroke-width":G.lineWidth}).css(z)})}}update(d){(this.series||[]).forEach(g=>{g.baseSeries&&delete g.baseSeries.navigatorSeries}),this.destroy(),I(!0,this.chart.options.navigator,d),this.init(this.chart)}render(d,g,y,M){let k=this.chart,T=this.xAxis,z=T.pointRange||0,N=T.navigatorAxis.fake?k.xAxis[0]:T,G=this.navigatorEnabled,X=this.rendered,j=k.inverted,B=k.xAxis[0].minRange,W=k.xAxis[0].options.maxRange,V=this.scrollButtonSize,U,q,H,Y=this.scrollbarHeight,Z,K;if(this.hasDragged&&!x(y))return;if(d=v(d-z/2),g=v(g+z/2),!O(d)||!O(g)){if(!X)return;y=0,M=_(T.width,N.width)}this.left=_(T.left,k.plotLeft+V+(j?k.plotWidth:0));let J=this.size=Z=_(T.len,(j?k.plotHeight:k.plotWidth)-2*V);U=j?Y:Z+2*V,y=_(y,T.toPixels(d,!0)),M=_(M,T.toPixels(g,!0)),O(y)&&Math.abs(y)!==1/0||(y=0,M=U);let tt=T.toValue(y,!0),$=T.toValue(M,!0),Q=Math.abs(v($-tt));QW&&(this.grabbedLeft?y=T.toPixels($-W-z,!0):this.grabbedRight&&(M=T.toPixels(tt+W+z,!0))),this.zoomedMax=b(Math.max(y,M),0,J),this.zoomedMin=b(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(y,M),0,J),this.range=this.zoomedMax-this.zoomedMin,J=Math.round(this.zoomedMax);let et=Math.round(this.zoomedMin);G&&(this.navigatorGroup.attr({visibility:"inherit"}),K=X&&!this.hasDragged?"animate":"attr",this.drawMasks(et,J,j,K),this.drawOutline(et,J,j,K),this.navigatorOptions.handles.enabled&&(this.drawHandle(et,0,j,K),this.drawHandle(J,1,j,K))),this.scrollbar&&(j?(H=this.top-V,q=this.left-Y+(G||!N.opposite?0:(N.titleOffset||0)+N.axisTitleMargin),Y=Z+2*V):(H=this.top+(G?this.height:-Y),q=this.left-V),this.scrollbar.position(q,H,U,Y),this.scrollbar.setRange(this.zoomedMin/(Z||1),this.zoomedMax/(Z||1))),this.rendered=!0,w(this,"afterRender")}addMouseEvents(){let d=this,g=d.chart,y=g.container,M=[],k,T;d.mouseMoveHandler=k=function(z){d.onMouseMove(z)},d.mouseUpHandler=T=function(z){d.onMouseUp(z)},(M=d.getPartsEvents("mousedown")).push(p(g.renderTo,"mousemove",k),p(y.ownerDocument,"mouseup",T),p(g.renderTo,"touchmove",k),p(y.ownerDocument,"touchend",T)),M.concat(d.getPartsEvents("touchstart")),d.eventsToUnbind=M,d.series&&d.series[0]&&M.push(p(d.series[0].xAxis,"foundExtremes",function(){g.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(d){let g=this,y=[];return["shades","handles"].forEach(function(M){g[M].forEach(function(k,T){y.push(p(k.element,d,function(z){g[M+"Mousedown"](z,T)}))})}),y}shadesMousedown(d,g){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=this.xAxis,k=this.zoomedMin,T=this.size,z=this.range,N=this.left,G=d.chartX,X,j,B,W;y.inverted&&(G=d.chartY,N=this.top),g===1?(this.grabbedCenter=G,this.fixedWidth=z,this.dragOffset=G-k):(W=G-N-z/2,g===0?W=Math.max(0,W):g===2&&W+z>=T&&(W=T-z,this.reversedExtremes?(W-=z,j=this.getUnionExtremes().dataMin):X=this.getUnionExtremes().dataMax),W!==k&&(this.fixedWidth=z,x((B=M.navigatorAxis.toFixedRange(W,W+z,j,X)).min)&&w(this,"setRange",{min:Math.min(B.min,B.max),max:Math.max(B.min,B.max),redraw:!0,eventArguments:{trigger:"navigator"}})))}handlesMousedown(d,g){d=this.chart.pointer?.normalize(d)||d;let y=this.chart,M=y.xAxis[0],k=this.reversedExtremes;g===0?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=k?M.min:M.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=k?M.max:M.min),y.setFixedRange(void 0)}onMouseMove(d){let g=this,y=g.chart,M=g.navigatorSize,k=g.range,T=g.dragOffset,z=y.inverted,N=g.left,G;(!d.touches||d.touches[0].pageX!==0)&&(G=(d=y.pointer?.normalize(d)||d).chartX,z&&(N=g.top,G=d.chartY),g.grabbedLeft?(g.hasDragged=!0,g.render(0,0,G-N,g.otherHandlePos)):g.grabbedRight?(g.hasDragged=!0,g.render(0,0,g.otherHandlePos,G-N)):g.grabbedCenter&&(g.hasDragged=!0,GM+T-k&&(G=M+T-k),g.render(0,0,G-T,G-T+k)),g.hasDragged&&g.scrollbar&&_(g.scrollbar.options.liveRedraw,!u&&!this.chart.boosted)&&(d.DOMType=d.type,setTimeout(function(){g.onMouseUp(d)},0)))}onMouseUp(d){let g,y,M,k,T,z,N=this.chart,G=this.xAxis,X=this.scrollbar,j=d.DOMEvent||d,B=N.inverted,W=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!X||!X.hasDragged)||d.trigger==="scrollbar")&&(M=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?k=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(T=this.fixedExtreme),this.zoomedMax===this.size&&(T=this.reversedExtremes?M.dataMin:M.dataMax),this.zoomedMin===0&&(k=this.reversedExtremes?M.dataMax:M.dataMin),x((z=G.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,k,T)).min)&&w(this,"setRange",{min:Math.min(z.min,z.max),max:Math.max(z.min,z.max),redraw:!0,animation:!this.hasDragged&&null,eventArguments:{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:j}})),d.DOMType!=="mousemove"&&d.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&O(this.zoomedMin)&&O(this.zoomedMax)&&(y=Math.round(this.zoomedMin),g=Math.round(this.zoomedMax),this.shades&&this.drawMasks(y,g,B,W),this.outline&&this.drawOutline(y,g,B,W),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(y,0,B,W),this.drawHandle(g,1,B,W)))}removeEvents(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(d){d()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let d=this.baseSeries||[];this.navigatorEnabled&&d[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&d.forEach(function(g){A(g,"updatedData",this.updatedDataHandler)},this),d[0].xAxis&&A(d[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}init(d){let g=d.options,y=g.navigator||{},M=y.enabled,k=g.scrollbar||{},T=k.enabled,z=M&&y.height||0,N=T&&k.height||0,G=k.buttonsEnabled&&N||0;this.handles=[],this.shades=[],this.chart=d,this.setBaseSeries(),this.height=z,this.scrollbarHeight=N,this.scrollButtonSize=G,this.scrollbarEnabled=T,this.navigatorEnabled=M,this.navigatorOptions=y,this.scrollbarOptions=k,this.opposite=_(y.opposite,!!(!M&&d.inverted));let X=this,j=X.baseSeries,B=d.xAxis.length,W=d.yAxis.length,V=j&&j[0]&&j[0].xAxis||d.xAxis[0]||{options:{}};if(d.isDirtyBox=!0,X.navigatorEnabled?(X.xAxis=new e(d,I({breaks:V.options.breaks,ordinal:V.options.ordinal,overscroll:V.options.overscroll},y.xAxis,{type:"datetime",index:B,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},d.inverted?{offsets:[G,0,-G,0],width:z}:{offsets:[0,-G,0,G],height:z}),"xAxis"),X.yAxis=new e(d,I(y.yAxis,{alignTicks:!1,offset:0,index:W,isInternal:!0,reversed:_(y.yAxis&&y.yAxis.reversed,d.yAxis[0]&&d.yAxis[0].reversed,!1),zoomEnabled:!1},d.inverted?{width:z}:{height:z}),"yAxis"),j||y.series.data?X.updateNavigatorSeries(!1):d.series.length===0&&(X.unbindRedraw=p(d,"beforeRedraw",function(){d.series.length>0&&!X.series&&(X.setBaseSeries(),X.unbindRedraw())})),X.reversedExtremes=d.inverted&&!X.xAxis.reversed||!d.inverted&&X.xAxis.reversed,X.renderElements(),X.addMouseEvents()):(X.xAxis={chart:d,navigatorAxis:{fake:!0},translate:function(U,q){let H=d.xAxis[0],Y=H.getExtremes(),Z=H.len-2*G,K=P("min",H.options.min,Y.dataMin),J=P("max",H.options.max,Y.dataMax)-K;return q?U*J/Z+K:Z*(U-K)/J},toPixels:function(U){return this.translate(U)},toValue:function(U){return this.translate(U,!0)}},X.xAxis.navigatorAxis.axis=X.xAxis,X.xAxis.navigatorAxis.toFixedRange=l.prototype.toFixedRange.bind(X.xAxis.navigatorAxis)),d.options.scrollbar.enabled){let U=I(d.options.scrollbar,{vertical:d.inverted});!O(U.margin)&&X.navigatorEnabled&&(U.margin=d.inverted?-3:3),d.scrollbar=X.scrollbar=new h(d.renderer,U,d),p(X.scrollbar,"changed",function(q){let H=X.size,Y=H*this.to,Z=H*this.from;X.hasDragged=X.scrollbar.hasDragged,X.render(0,0,Z,Y),this.shouldUpdateExtremes(q.DOMType)&&setTimeout(function(){X.onMouseUp(q)})})}X.addBaseSeriesEvents(),X.addChartEvents()}getUnionExtremes(d){let g,y=this.chart.xAxis[0],M=this.xAxis,k=M.options,T=y.options;return d&&y.dataMin===null||(g={dataMin:_(k&&k.min,P("min",T.min,y.dataMin,M.dataMin,M.min)),dataMax:_(k&&k.max,P("max",T.max,y.dataMax,M.dataMax,M.max))}),g}setBaseSeries(d,g){let y=this.chart,M=this.baseSeries=[];d=d||y.options&&y.options.navigator.baseSeries||(y.series.length?S(y.series,k=>!k.options.isInternal).index:0),(y.series||[]).forEach((k,T)=>{!k.options.isInternal&&(k.options.showInNavigator||(T===d||k.options.id===d)&&k.options.showInNavigator!==!1)&&M.push(k)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,g)}updateNavigatorSeries(d,g){let y=this,M=y.chart,k=y.baseSeries,T={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:this.navigatorOptions.xAxis?.id,yAxis:this.navigatorOptions.yAxis?.id,showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},z=y.series=(y.series||[]).filter(B=>{let W=B.baseSeries;return!(0>k.indexOf(W))||(W&&(A(W,"updatedData",y.updatedDataHandler),delete W.navigatorSeries),B.chart&&B.destroy(),!1)}),N,G,X=y.navigatorOptions.series,j;k&&k.length&&k.forEach(B=>{let W=B.navigatorSeries,V=L({color:B.color,visible:B.visible},R(X)?f.navigator.series:X);if(W&&y.navigatorOptions.adaptToUpdatedData===!1)return;T.name="Navigator "+k.length,j=(N=B.options||{}).navigatorOptions||{},V.dataLabels=F(V.dataLabels),(G=I(N,T,V,j)).pointRange=_(V.pointRange,j.pointRange,f.plotOptions[G.type||"line"].pointRange);let U=j.data||V.data;y.hasNavigatorData=y.hasNavigatorData||!!U,G.data=U||N.data&&N.data.slice(0),W&&W.options?W.update(G,g):(B.navigatorSeries=M.initSeries(G),M.setSortedData(),B.navigatorSeries.baseSeries=B,z.push(B.navigatorSeries))}),(X.data&&!(k&&k.length)||R(X))&&(y.hasNavigatorData=!1,(X=F(X)).forEach((B,W)=>{T.name="Navigator "+(z.length+1),(G=I(f.navigator.series,{color:M.series[W]&&!M.series[W].options.isInternal&&M.series[W].color||M.options.colors[W]||M.options.colors[0]},T,B)).data=B.data,G.data&&(y.hasNavigatorData=!0,z.push(M.initSeries(G)))})),d&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let d=this,g=d.baseSeries||[];g[0]&&g[0].xAxis&&g[0].eventsToUnbind.push(p(g[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),g.forEach(y=>{y.eventsToUnbind.push(p(y,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),y.eventsToUnbind.push(p(y,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),this.navigatorOptions.adaptToUpdatedData!==!1&&y.xAxis&&y.eventsToUnbind.push(p(y,"updatedData",this.updatedDataHandler)),y.eventsToUnbind.push(p(y,"remove",function(){this.navigatorSeries&&(E(d.series,this.navigatorSeries),x(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(d){return this.baseSeries.reduce(function(g,y){return Math.min(g,y.xData&&y.xData.length?y.xData[0]:g)},d)}modifyNavigatorAxisExtremes(){let d=this.xAxis;if(d.getExtremes!==void 0){let g=this.getUnionExtremes(!0);g&&(g.dataMin!==d.min||g.dataMax!==d.max)&&(d.min=g.dataMin,d.max=g.dataMax)}}modifyBaseAxisExtremes(){let d,g,y=this.chart.navigator,M=this.getExtremes(),k=M.min,T=M.max,z=M.dataMin,N=M.dataMax,G=T-k,X=y.stickToMin,j=y.stickToMax,B=_(this.ordinal?.convertOverscroll(this.options.overscroll),0),W=y.series&&y.series[0],V=!!this.setExtremes;!(this.eventArgs&&this.eventArgs.trigger==="rangeSelectorButton")&&(X&&(d=(g=z)+G),j&&(d=N+B,X||(g=Math.max(z,d-G,y.getBaseSeriesMin(W&&W.xData?W.xData[0]:-Number.MAX_VALUE)))),V&&(X||j)&&O(g)&&(this.min=this.userMin=g,this.max=this.userMax=d)),y.stickToMin=y.stickToMax=null}updatedDataHandler(){let d=this.chart.navigator,g=this.navigatorSeries,y=d.reversedExtremes?Math.round(d.zoomedMin)===0:Math.round(d.zoomedMax)>=Math.round(d.size);d.stickToMax=_(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,y),d.stickToMin=d.shouldStickToMin(this,d),g&&!d.hasNavigatorData&&(g.options.pointStart=this.xData[0],g.setData(this.options.data,!1,null,!1))}shouldStickToMin(d,g){let y=g.getBaseSeriesMin(d.xData[0]),M=d.xAxis,k=M.max,T=M.min,z=M.options.range;return!!(O(k)&&O(T))&&(z&&k-y>0?k-y{d.destroy&&d.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(d=>{this[d]&&this[d].destroy&&this[d].destroy(),this[d]=null}),[this.handles].forEach(d=>{m(d)})}}return D}),i(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,s,r,n){var l;let{addEvent:a,correctFloat:h,css:c,defined:f,error:u,isNumber:p,pick:b,timeUnits:v,isString:x}=n;return function(m){function E(C,d,g,y,M=[],k=0,T){let z={},N=this.options.tickPixelInterval,G=this.chart.time,X=[],j,B,W,V,U,q=0,H=[],Y=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!M||M.length<3||d===void 0)return G.getTimeTicks.apply(G,arguments);let Z=M.length;for(j=0;jg,M[j]5*k||U){if(M[j]>Y){for(B=G.getTimeTicks(C,M[q],M[j],y);B.length&&B[0]<=Y;)B.shift();B.length&&(Y=B[B.length-1]),X.push(H.length),H=H.concat(B)}q=j+1}if(U)break}if(B){if(V=B.info,T&&V.unitRange<=v.hour){for(q=1,j=H.length-1;qnt-ot),(it=tt[Math.floor(tt.length/2)])<.6*N&&(it=null),rt=H[K-1]>g?K-1:K,et=void 0;rt--;)st=Math.abs(et-(Q=J[rt])),et&&st<.8*N&&(it===null||st<.8*it)?(z[H[rt]]&&!z[H[rt+1]]?($=rt+1,et=Q):$=rt,H.splice($,1)):et=Q}return H}function L(C){let d=this.ordinal.positions;if(!d)return C;let g=d.length-1,y;return C<0?C=d[0]:C>g?C=d[g]:(g=Math.floor(C),y=C-g),y!==void 0&&d[g]!==void 0?d[g]+(y?y*(d[g+1]-d[g]):0):C}function S(C){let d=this.ordinal,g=this.old?this.old.min:this.min,y=this.old?this.old.transA:this.transA,M=d.getExtendedPositions();if(M&&M.length){let k=h((C-g)*y+this.minPixelPadding),T=h(d.getIndexOfPoint(k,M)),z=h(T%1);if(T>=0&&T<=M.length-1){let N=M[Math.floor(T)],G=M[Math.ceil(T)];return M[Math.floor(T)]+z*(G-N)}}return C}function w(C,d){let g=m.Additions.findIndexOf(C,d,!0);if(C[g]===d)return g;let y=(d-C[g])/(C[g+1]-C[g]);return g+y}function R(){this.ordinal||(this.ordinal=new m.Additions(this))}function O(){let{eventArgs:C,options:d}=this;if(this.isXAxis&&f(d.overscroll)&&d.overscroll!==0&&p(this.max)&&p(this.min)&&(this.options.ordinal&&!this.ordinal.originalOrdinalRange&&this.ordinal.getExtendedPositions(!1),this.max===this.dataMax&&(C?.trigger!=="pan"||this.isInternal)&&C?.trigger!=="navigator")){let g=this.ordinal.convertOverscroll(d.overscroll);this.max+=g,!this.isInternal&&f(this.userMin)&&C?.trigger!=="mousewheel"&&(this.min+=g)}}function I(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}function _(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function A(C){let d=this.xAxis[0],g=d.ordinal.convertOverscroll(d.options.overscroll),y=C.originalEvent.chartX,M=this.options.chart.panning,k=!1;if(M&&M.type!=="y"&&d.options.ordinal&&d.series.length){let T,z,N=this.mouseDownX,G=d.getExtremes(),X=G.dataMin,j=G.dataMax,B=G.min,W=G.max,V=this.hoverPoints,U=d.closestPointRange||d.ordinal&&d.ordinal.overscrollPointsRange,q=Math.round((N-y)/(d.translationSlope*(d.ordinal.slope||U))),H=d.ordinal.getExtendedPositions(),Y={ordinal:{positions:H,extendedOrdinalPositions:H}},Z=d.index2val,K=d.val2lin;if(B<=X&&q<0||W+g>=j&&q>0)return;Y.ordinal.positions?Math.abs(q)>1&&(V&&V.forEach(function(J){J.setState()}),j>(z=Y.ordinal.positions)[z.length-1]&&z.push(j),this.setFixedRange(W-B),(T=d.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(Y,[K.apply(Y,[B,!0])+q]),Z.apply(Y,[K.apply(Y,[W,!0])+q]))).min>=Math.min(G.dataMin,B)&&T.max<=Math.max(j,W)+g&&d.setExtremes(T.min,T.max,!0,!1,{trigger:"pan"}),this.mouseDownX=y,c(this.container,{cursor:"move"})):k=!0}else k=!0;k||M&&/y/.test(M.type)?g&&(d.max=d.dataMax+g):C.preventDefault()}function F(){let C=this.xAxis;C&&C.options.ordinal&&(delete C.ordinal.index,delete C.ordinal.originalOrdinalRange)}function P(C,d){let g,y=this.ordinal,M=y.positions,k=y.slope,T;if(!M)return C;let z=M.length;if(M[0]<=C&&M[z-1]>=C)g=w(M,C);else{if(!((T=y.getExtendedPositions&&y.getExtendedPositions())&&T.length))return C;let N=T.length;k||(k=(T[N-1]-T[0])/N);let G=w(T,M[0]);if(C>=T[0]&&C<=T[N-1])g=w(T,C)-G;else{if(!d)return C;g=C0&&J.options.id!=="highcharts-navigator-series"&&J.processedXData.length>1&&(Y=K!==J.processedXData[1]-J.processedXData[0]),K=J.processedXData[1]-J.processedXData[0],J.boosted&&(Z=J.boosted),J.reserveSpace()&&(J.takeOrdinalPosition!==!1||T)&&(N=(U=U.concat(J.processedXData)).length,U.sort(function($,Q){return $-Q}),q=Math.min(q,b(J.closestPointRange,q)),N)){for(tt=0;tt2){for(X=U[1]-U[0],V=N-1;V--&&!H;)U[V+1]-U[V]!==X&&(H=!0);!d.options.keepOrdinalPadding&&(U[0]-M>X||k-U[U.length-1]>X)&&(H=!0)}else d.options.overscroll&&(N===2?q=U[1]-U[0]:N===1?(q=d.ordinal.convertOverscroll(d.options.overscroll),U=[U[0],U[0]+q]):q=g.overscrollPointsRange);H||d.forceOrdinal?(d.options.overscroll&&(g.overscrollPointsRange=q,U=U.concat(g.getOverscrollPositions())),g.positions=U,j=d.ordinal2lin(Math.max(M,U[0]),!0),B=Math.max(d.ordinal2lin(Math.min(k,U[U.length-1]),!0),1),g.slope=W=(k-M)/(B-j),g.offset=M-j*W):(g.overscrollPointsRange=b(d.closestPointRange,g.overscrollPointsRange),g.positions=d.ordinal.slope=g.offset=void 0)}d.isOrdinal=z&&H,g.groupIntervalFactor=null}static findIndexOf(d,g,y){let M=0,k=d.length-1,T;for(;MB.x>=X&&B.x<=j)};M.series.forEach(G=>{let X=G.points?.[0];f(X?.plotX)&&(X.plotXP()),m.splice(_,1);return}}}function O(){let _=this.rangeSelector;if(_){let A=_.getHeight();this.extraTopMargin&&(this.plotTop+=A),this.extraBottomMargin&&(this.marginBottom+=A)}}function I(_){let A=_.options.rangeSelector,F=this.extraBottomMargin,P=this.extraTopMargin,D=this.rangeSelector;if(A&&A.enabled&&!f(D)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=D=new l(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,D){let C=A&&A.verticalAlign||D.options&&D.options.verticalAlign;D.options.floating||(C==="bottom"?this.extraBottomMargin=!0:C==="middle"||(this.extraTopMargin=!0)),(this.extraBottomMargin!==F||this.extraTopMargin!==P)&&(this.isDirtyBox=!0)}}return{compose:function(_,A,F){if(l=F,x(h,"RangeSelector")){let P=A.prototype;_.prototype.minFromRange=E,c(A,"afterGetContainer",L),c(A,"beforeRender",S),c(A,"destroy",R),c(A,"getMargins",O),c(A,"redraw",w),c(A,"update",I),P.callbacks.push(w),u(a,{rangeSelector:r.rangeSelector}),u(a.lang,r.lang)}}}}),i(t,"Stock/RangeSelector/RangeSelector.js",[t["Core/Axis/Axis.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Stock/RangeSelector/RangeSelectorComposition.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"],t["Core/Axis/OrdinalAxis.js"]],function(e,s,r,n,l,a,h){let{defaultOptions:c}=s,{addEvent:f,createElement:u,css:p,defined:b,destroyObjectProperties:v,discardElement:x,extend:m,fireEvent:E,isNumber:L,merge:S,objectEach:w,pad:R,pick:O,pInt:I,splat:_}=a;class A{static compose(P,D){n.compose(P,D,A)}constructor(P){this.buttonOptions=A.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.init(P)}clickButton(P,D){let C=this.chart,d=this.buttonOptions[P],g=C.xAxis[0],y=C.scroller&&C.scroller.getUnionExtremes()||g||{},M=d.type,k=d.dataGrouping,T=y.dataMin,z=y.dataMax,N,G=g&&Math.round(Math.min(g.max,O(z,g.max))),X,j=d._range,B,W,V,U=!0;if(T!==null&&z!==null){if(this.setSelected(P),k&&(this.forcedDataGrouping=!0,e.prototype.setDataGrouping.call(g||{chart:this.chart},k,!1),this.frozenStates=d.preserveDataGrouping),M==="month"||M==="year")g?(W={range:d,max:G,chart:C,dataMin:T,dataMax:z},N=g.minFromRange.call(W),L(W.newMax)&&(G=W.newMax),U=!1):j=d;else if(j)G=Math.min((N=Math.max(G-j,T))+j,z),U=!1;else if(M==="ytd")if(g)(z===void 0||T===void 0)&&(T=Number.MAX_VALUE,z=Number.MIN_VALUE,C.series.forEach(q=>{let H=q.xData;H&&(T=Math.min(H[0],T),z=Math.max(H[H.length-1],z))}),D=!1),N=B=(V=this.getYTDExtremes(z,T,C.time.useUTC)).min,G=V.max;else{this.deferredYTDClick=P;return}else M==="all"&&g&&(C.navigator&&C.navigator.baseSeries[0]&&(C.navigator.baseSeries[0].xAxis.options.range=void 0),N=T,G=z);if(U&&d._offsetMin&&b(N)&&(N+=d._offsetMin),d._offsetMax&&b(G)&&(G+=d._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=P+1),g)g.setExtremes(N,G,O(D,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:d}),C.setFixedRange(d._range);else{X=_(C.options.xAxis)[0];let q=f(C,"afterGetAxes",function(){let H=C.xAxis[0];H.range=H.options.range=j,H.min=H.options.min=B});f(C,"load",function(){let H=C.xAxis[0];C.setFixedRange(d._range),H.options.range=X.range,H.options.min=X.min,q()})}E(this,"afterBtnClick")}}setSelected(P){this.selected=this.options.selected=P}init(P){let D=this,C=P.options.rangeSelector,d=C.buttons||D.defaultButtons.slice(),g=C.selected,y=function(){let M=D.minInput,k=D.maxInput;M&&M.blur&&E(M,"blur"),k&&k.blur&&E(k,"blur")};D.chart=P,D.options=C,D.buttons=[],D.buttonOptions=d,this.eventsToUnbind=[],this.eventsToUnbind.push(f(P.container,"mousedown",y)),this.eventsToUnbind.push(f(P,"resize",y)),d.forEach(D.computeButtonRange),g!==void 0&&d[g]&&this.clickButton(g,!1),this.eventsToUnbind.push(f(P,"load",function(){P.xAxis&&P.xAxis[0]&&f(P.xAxis[0],"setExtremes",function(M){L(this.max)&&L(this.min)&&this.max-this.min!==P.fixedRange&&M.trigger!=="rangeSelectorButton"&&M.trigger!=="updatedData"&&D.forcedDataGrouping&&!D.frozenStates&&this.setDataGrouping(!1,!1)})})),this.createElements()}updateButtonStates(){let P=this,D=this.chart,C=this.dropdown,d=this.dropdownLabel,g=D.xAxis[0],y=Math.round(g.max-g.min),M=!g.hasVisibleSeries,k=24*36e5,T=D.scroller&&D.scroller.getUnionExtremes()||g,z=T.dataMin,N=T.dataMax,G=P.getYTDExtremes(N,z,D.time.useUTC),X=G.min,j=G.max,B=P.selected,W=P.options.allButtonsEnabled,V=Array(P.buttonOptions.length).fill(0),U=L(B),q=P.buttons,H=!1,Y=null;P.buttonOptions.forEach((Z,K)=>{let J=Z._range,tt=Z.type,$=Z.count||1,Q=Z._offsetMax-Z._offsetMin,et=K===B,it=J>N-z,st=JJ&&(nt=!0)}else(tt==="month"||tt==="year")&&y+36e5>={month:28,year:365}[tt]*k*$-Q&&y-36e5<={month:31,year:366}[tt]*k*$+Q?nt=!0:tt==="ytd"?(nt=j-X+Q===y,rt=!et):tt==="all"&&(nt=g.max-g.min>=N-z);let ot=!W&&!(H&&tt==="all")&&(it||st||M),at=H&&tt==="all"||!rt&&nt||et&&P.frozenStates;ot?V[K]=3:at&&(!U||K===B)&&(Y=K)}),Y!==null?(V[Y]=2,P.setSelected(Y)):(P.setSelected(),d&&(d.setState(0),d.attr({text:(c.lang.rangeSelectorZoom||"")+" \u25BE"})));for(let Z=0;Z6&&(y.lastIndexOf("-")===y.length-6||y.lastIndexOf("+")===y.length-6))){let M=new Date(d).getTimezoneOffset()/60;d+=M<=0?`+${R(-M)}:00`:`-${R(M)}:00`}}let g=Date.parse(d);if(!L(g)){let y=P.split("-");g=Date.UTC(I(y[0]),I(y[1])-1,I(y[2]))}return C&&D&&L(g)&&(g+=C.getTimezoneOffset(g)),g}drawInput(P){let{chart:D,div:C,inputGroup:d}=this,g=this,y=D.renderer.style||{},M=D.renderer,k=D.options.rangeSelector,T=c.lang,z=P==="min";function N(V){let{maxInput:U,minInput:q}=g,H=D.xAxis[0],Y=D.scroller?.getUnionExtremes()||H,Z=Y.dataMin,K=Y.dataMax,J=D.xAxis[0].getExtremes()[V],tt=g.getInputValue(V);L(tt)&&tt!==J&&(z&&U&&L(Z)?tt>Number(U.getAttribute("data-hc-time"))?tt=void 0:ttK&&(tt=K)),tt!==void 0&&H.setExtremes(z?tt:H.min,z?H.max:tt,void 0,void 0,{trigger:"rangeSelectorInput"}))}let G=T[z?"rangeSelectorFrom":"rangeSelectorTo"]||"",X=M.label(G,0).addClass("highcharts-range-label").attr({padding:G?2:0,height:G?k.inputBoxHeight:0}).add(d),j=M.label("",0).addClass("highcharts-range-input").attr({padding:2,width:k.inputBoxWidth,height:k.inputBoxHeight,"text-align":"center"}).on("click",function(){g.showInput(P),g[P+"Input"].focus()});D.styledMode||j.attr({stroke:k.inputBoxBorderColor,"stroke-width":1}),j.add(d);let B=u("input",{name:P,className:"highcharts-range-selector"},void 0,C);B.setAttribute("type",function(V){if(V.indexOf("%L")!==-1)return"text";let U=["a","A","d","e","w","b","B","m","o","y","Y"].some(H=>V.indexOf("%"+H)!==-1),q=["H","k","I","l","M","S"].some(H=>V.indexOf("%"+H)!==-1);return U&&q?"datetime-local":U?"date":q?"time":"text"}(k.inputDateFormat||"%e %b %Y")),D.styledMode||(X.css(S(y,k.labelStyle)),j.css(S({color:"#333333"},y,k.inputStyle)),p(B,m({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:y.fontSize,fontFamily:y.fontFamily,top:"-9999em"},k.inputStyle))),B.onfocus=()=>{g.showInput(P)},B.onblur=()=>{B===r.doc.activeElement&&N(P),g.hideInput(P),g.setInputValue(P),B.blur()};let W=!1;return B.onchange=()=>{W||(N(P),g.hideInput(P),B.blur())},B.onkeypress=V=>{V.keyCode===13&&N(P)},B.onkeydown=V=>{W=!0,(V.key==="ArrowUp"||V.key==="ArrowDown"||V.key==="Tab")&&N(P)},B.onkeyup=()=>{W=!1},{dateBox:j,input:B,label:X}}getPosition(){let P=this.chart,D=P.options.rangeSelector,C=D.verticalAlign==="top"?P.plotTop-P.axisOffset[0]:0;return{buttonTop:C+D.buttonPosition.y,inputTop:C+D.inputPosition.y-10}}getYTDExtremes(P,D,C){let d=this.chart.time,g=new d.Date(P),y=d.get("FullYear",g),M=C?d.Date.UTC(y,0,1):+new d.Date(y,0,1),k=g.getTime();return{max:Math.min(P||k,k),min:Math.max(D,M)}}createElements(){let P=this.chart,D=P.renderer,C=P.container,d=P.options,g=d.rangeSelector,y=g.inputEnabled,M=O(d.chart.style?.zIndex,0)+1;if(g.enabled!==!1&&(this.group=D.g("range-selector-group").attr({zIndex:7}).add(),this.div=u("div",void 0,{position:"relative",height:0,zIndex:M}),this.buttonOptions.length&&this.renderButtons(),C.parentNode&&C.parentNode.insertBefore(this.div,C),y)){this.inputGroup=D.g("input-group").add(this.group);let k=this.drawInput("min");this.minDateBox=k.dateBox,this.minLabel=k.label,this.minInput=k.input;let T=this.drawInput("max");this.maxDateBox=T.dateBox,this.maxLabel=T.label,this.maxInput=T.input}}render(P,D){let C=this.chart,d=C.options.rangeSelector,g=d.inputEnabled;if(d.enabled!==!1){if(g){this.setInputValue("min",P),this.setInputValue("max",D);let y=C.scroller&&C.scroller.getUnionExtremes()||C.xAxis[0]||{};if(b(y.dataMin)&&b(y.dataMax)){let M=C.xAxis[0].minRange||0;this.setInputExtremes("min",y.dataMin,Math.min(y.dataMax,this.getInputValue("max"))-M),this.setInputExtremes("max",Math.max(y.dataMin,this.getInputValue("min"))+M,y.dataMax)}if(this.inputGroup){let M=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(k=>{if(k){let{width:T}=k.getBBox();T&&(k.attr({x:M}),M+=T+d.inputSpacing)}})}}this.alignElements(),this.updateButtonStates()}}renderButtons(){let{buttons:P,chart:D,options:C}=this,d=c.lang,g=D.renderer,y=S(C.buttonTheme),M=y&&y.states,k=y.width||28;delete y.width,delete y.states,this.buttonGroup=g.g("range-selector-buttons").add(this.group);let T=this.dropdown=u("select",void 0,{position:"absolute",padding:0,border:0,cursor:"pointer",opacity:1e-4},this.div),z=D.userOptions.rangeSelector?.buttonTheme;this.dropdownLabel=g.button("",0,0,()=>{},S(y,{"stroke-width":O(y["stroke-width"],0),width:"auto",paddingLeft:O(C.buttonTheme.paddingLeft,z?.padding,8),paddingRight:O(C.buttonTheme.paddingRight,z?.padding,8)}),M&&M.hover,M&&M.select,M&&M.disabled).hide().add(this.group),f(T,"touchstart",()=>{T.style.fontSize="16px"});let N=r.isMS?"mouseover":"mouseenter",G=r.isMS?"mouseout":"mouseleave";f(T,N,()=>{E(this.dropdownLabel.element,N)}),f(T,G,()=>{E(this.dropdownLabel.element,G)}),f(T,"change",()=>{E(this.buttons[T.selectedIndex-1].element,"click")}),this.zoomText=g.label(d.rangeSelectorZoom||"",0).attr({padding:C.buttonTheme.padding,height:C.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(C.labelStyle),y["stroke-width"]=O(y["stroke-width"],0)),u("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,T),this.buttonOptions.forEach((X,j)=>{u("option",{textContent:X.title||X.text},void 0,T),P[j]=g.button(X.text,0,0,B=>{let W,V=X.events&&X.events.click;V&&(W=V.call(X,B)),W!==!1&&this.clickButton(j),this.isActive=!0},y,M&&M.hover,M&&M.select,M&&M.disabled).attr({"text-align":"center",width:k}).add(this.buttonGroup),X.title&&P[j].attr("title",X.title)})}alignElements(){let{buttonGroup:P,buttons:D,chart:C,group:d,inputGroup:g,options:y,zoomText:M}=this,k=C.options,T=k.exporting&&k.exporting.enabled!==!1&&k.navigation&&k.navigation.buttonOptions,{buttonPosition:z,inputPosition:N,verticalAlign:G}=y,X=(B,W)=>T&&this.titleCollision(C)&&G==="top"&&W.align==="right"&&W.y-B.getBBox().height-12<(T.y||0)+(T.height||0)+C.spacing[0]?-40:0,j=C.plotLeft;if(d&&z&&N){let B=z.x-C.spacing[3];if(P){if(this.positionButtons(),!this.initialButtonGroupWidth){let J=0;M&&(J+=M.getBBox().width+5),D.forEach((tt,$)=>{J+=tt.width||0,$!==D.length-1&&(J+=y.buttonSpacing)}),this.initialButtonGroupWidth=J}j-=C.spacing[3];let K=X(P,z);this.alignButtonGroup(K),this.buttonGroup?.translateY&&this.dropdownLabel.attr({y:this.buttonGroup.translateY}),d.placed=P.placed=C.hasLoaded}let W=0;g&&(W=X(g,N),N.align==="left"?B=j:N.align==="right"&&(B=-Math.max(C.axisOffset[1],-W)),g.align({y:N.y,width:g.getBBox().width,align:N.align,x:N.x+B-2},!0,C.spacingBox),g.placed=C.hasLoaded),this.handleCollision(W),d.align({verticalAlign:G},!0,C.spacingBox);let V=d.alignAttr.translateY,U=d.getBBox().height+20,q=0;if(G==="bottom"){let K=C.legend&&C.legend.options;q=V-(U=U+(K&&K.verticalAlign==="bottom"&&K.enabled&&!K.floating?C.legend.legendHeight+O(K.margin,10):0)-20)-(y.floating?0:y.y)-(C.titleOffset?C.titleOffset[2]:0)-10}G==="top"?(y.floating&&(q=0),C.titleOffset&&C.titleOffset[0]&&(q=C.titleOffset[0]),q+=C.margin[0]-C.spacing[0]||0):G==="middle"&&(N.y===z.y?q=V:(N.y||z.y)&&(N.y<0||z.y<0?q-=Math.min(N.y,z.y):q=V-U)),d.translate(y.x,y.y+Math.floor(q));let{minInput:H,maxInput:Y,dropdown:Z}=this;y.inputEnabled&&H&&Y&&(H.style.marginTop=d.translateY+"px",Y.style.marginTop=d.translateY+"px"),Z&&(Z.style.marginTop=d.translateY+"px")}}alignButtonGroup(P,D){let{chart:C,options:d,buttonGroup:g}=this,{buttonPosition:y}=d,M=C.plotLeft-C.spacing[3],k=y.x-C.spacing[3];y.align==="right"?k+=P-M:y.align==="center"&&(k-=M/2),g&&g.align({y:y.y,width:O(D,this.initialButtonGroupWidth),align:y.align,x:k},!0,C.spacingBox)}positionButtons(){let{buttons:P,chart:D,options:C,zoomText:d}=this,g=D.hasLoaded?"animate":"attr",{buttonPosition:y}=C,M=D.plotLeft,k=M;d&&d.visibility!=="hidden"&&(d[g]({x:O(M+y.x,M)}),k+=y.x+d.getBBox().width+5);for(let T=0,z=this.buttonOptions.length;T{let N=0;return this.buttons.forEach(G=>{let X=G.getBBox();X.width>N&&(N=X.width)}),N},T=N=>{if(d?.alignOptions&&C){let G=d.alignAttr.translateX+d.alignOptions.x-P+d.getBBox().x+2,X=d.alignOptions.width||0,j=C.alignAttr.translateX+C.getBBox().x;return j+N>G&&G+X>j&&g.y{d&&C&&d.attr({translateX:d.alignAttr.translateX+(D.axisOffset[1]>=-P?0:-P),translateY:d.alignAttr.translateY+C.getBBox().height+10})};if(C){if(y==="always"){this.collapseButtons(),T(k())&&z();return}y==="never"&&this.expandButtons()}d&&C?M.align===g.align||T(this.initialButtonGroupWidth+20)?y==="responsive"?(this.collapseButtons(),T(k())&&z()):z():y==="responsive"&&this.expandButtons():C&&y==="responsive"&&(this.initialButtonGroupWidth>D.plotWidth?this.collapseButtons():this.expandButtons())}collapseButtons(){let{buttons:P,zoomText:D}=this;this.isCollapsed!==!0&&(this.isCollapsed=!0,D.hide(),P.forEach(C=>void C.hide()),this.showDropdown())}expandButtons(){let{buttons:P,zoomText:D}=this;this.isCollapsed!==!1&&(this.isCollapsed=!1,this.hideDropdown(),D.show(),P.forEach(C=>void C.show()),this.positionButtons())}showDropdown(){let{buttonGroup:P,chart:D,dropdownLabel:C,dropdown:d}=this;if(P&&d){let{translateX:g=0,translateY:y=0}=P,M=D.plotLeft+g;C.attr({x:M,y}).show(),p(d,{left:M+"px",top:y+"px",visibility:"inherit"}),this.hasVisibleDropdown=!0}}hideDropdown(){let{dropdown:P}=this;P&&(this.dropdownLabel.hide(),p(P,{visibility:"hidden",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)}getHeight(){let P=this.options,D=this.group,C=P.inputPosition,d=P.buttonPosition,g=P.y,y=d.y,M=C.y,k=0;return P.height?P.height:(this.alignElements(),k=D?D.getBBox(!0).height+13+g:0,(M<0&&y<0||M>0&&y>0)&&(k+=Math.abs(Math.min(M,y))),k)}titleCollision(P){return!(P.options.title.text||P.options.subtitle.text)}update(P,D=!0){let C=this.chart;S(!0,C.options.rangeSelector,P),this.destroy(),this.init(C),D&&this.render()}destroy(){let P=this,D=P.minInput,C=P.maxInput;P.eventsToUnbind&&(P.eventsToUnbind.forEach(d=>d()),P.eventsToUnbind=void 0),v(P.buttons),D&&(D.onfocus=D.onblur=D.onchange=null),C&&(C.onfocus=C.onblur=C.onchange=null),w(P,function(d,g){d&&g!=="chart"&&(d instanceof l?d.destroy():d instanceof window.HTMLElement&&x(d)),d!==A.prototype[g]&&(P[g]=null)},this)}}return m(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}),i(t,"Core/Chart/StockChart.js",[t["Core/Chart/Chart.js"],t["Core/Templating.js"],t["Core/Defaults.js"],t["Stock/Navigator/NavigatorDefaults.js"],t["Stock/RangeSelector/RangeSelectorDefaults.js"],t["Stock/Scrollbar/ScrollbarDefaults.js"],t["Stock/Utilities/StockUtilities.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c){let{format:f}=s,{getOptions:u}=r,{setFixedRange:p}=h,{addEvent:b,clamp:v,crisp:x,defined:m,extend:E,find:L,isNumber:S,isString:w,merge:R,pick:O,splat:I}=c;function _(P,D,C){return P==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0}:P==="yAxis"?{labels:{y:-2},opposite:C.opposite??D.opposite??!0,showLastLabel:!!(D.categories||D.type==="category"),title:{text:C.title?.text!=="Values"?C.title?.text:null}}:{}}function A(P,D){if(P==="xAxis"){let C=O(D.navigator&&D.navigator.enabled,n.enabled,!0),d={type:"datetime",categories:void 0};return C&&(d.startOnTick=!1,d.endOnTick=!1),d}return{}}class F extends e{init(D,C){let d=u(),g=D.xAxis,y=D.yAxis,M=O(D.navigator&&D.navigator.enabled,n.enabled,!0);D.xAxis=D.yAxis=void 0;let k=R({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x",mouseWheel:{type:"x"}}},navigator:{enabled:M},scrollbar:{enabled:O(a.enabled,!0)},rangeSelector:{enabled:O(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:O(d.tooltip&&d.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},D,{isStock:!0});D.xAxis=g,D.yAxis=y,k.xAxis=I(D.xAxis||{}).map(T=>R(_("xAxis",T,d.xAxis),T,A("xAxis",D))),k.yAxis=I(D.yAxis||{}).map(T=>R(_("yAxis",T,d.yAxis),T)),super.init(k,C)}createAxis(D,C){return C.axis=R(_(D,C.axis,u()[D]),C.axis,A(D,this.userOptions)),super.createAxis(D,C)}}return b(e,"update",function(P){let D=P.options;"scrollbar"in D&&this.navigator&&(R(!0,this.options.scrollbar,D.scrollbar),this.navigator.update({}),delete D.scrollbar)}),function(P){function D(z){if(!this.crosshair||!this.crosshair.label||!this.crosshair.label.enabled||!this.cross||!S(this.min)||!S(this.max))return;let N=this.chart,G=this.logarithmic,X=this.crosshair.label,j=this.horiz,B=this.opposite,W=this.left,V=this.top,U=this.width,q=this.options.tickPosition==="inside",H=this.crosshair.snap!==!1,Y=z.e||this.cross&&this.cross.e,Z=z.point,K=this.crossLabel,J,tt,$=X.format,Q="",et,it=0,st=this.min,rt=this.max;G&&(st=G.lin2log(this.min),rt=G.lin2log(this.max));let nt=j?"center":B?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center";K||(K=this.crossLabel=N.renderer.label("",0,void 0,X.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(Z&&Z.series?Z.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:X.align||nt,padding:O(X.padding,8),r:O(X.borderRadius,3),zIndex:2}).add(this.labelGroup),N.styledMode||K.attr({fill:X.backgroundColor||Z&&Z.series&&Z.series.color||"#666666",stroke:X.borderColor||"","stroke-width":X.borderWidth||0}).css(E({color:"#ffffff",fontWeight:"normal",fontSize:"0.7em",textAlign:"center"},X.style||{}))),j?(J=H?(Z.plotX||0)+W:Y.chartX,tt=V+(B?0:this.height)):(J=W+this.offset+(B?U:0),tt=H?(Z.plotY||0)+V:Y.chartY),$||X.formatter||(this.dateTime&&(Q="%b %d, %Y"),$="{value"+(Q?":"+Q:"")+"}");let ot=H?this.isXAxis?Z.x:Z.y:this.toValue(j?Y.chartX:Y.chartY),at=Z&&Z.series?Z.series.isPointInside(Z):S(ot)&&ot>st&&ot=et.right&&(it=-(lt+ht.width-et.right)),K.attr({x:J+it,y:tt,anchorX:j?J:this.opposite?0:N.chartWidth,anchorY:j?this.opposite?N.chartHeight:0:tt+ht.height/2})}function C(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}function d(z){let N=this.chart,G=this.options,X=N._labelPanes=N._labelPanes||{},j=G.labels;if(N.options.isStock&&this.coll==="yAxis"){let B=G.top+","+G.height;!X[B]&&j.enabled&&(j.distance===15&&this.side===1&&(j.distance=0),j.align===void 0&&(j.align="right"),X[B]=this,z.align="right",z.preventDefault())}}function g(){let z=this.chart,N=this.options&&this.options.top+","+this.options.height;N&&z._labelPanes&&z._labelPanes[N]===this&&delete z._labelPanes[N]}function y(z){let N=this,G=N.isLinked&&!N.series&&N.linkedParent?N.linkedParent.series:N.series,X=N.chart,j=X.renderer,B=N.left,W=N.top,V=[],U=z.translatedValue,q=z.value,H=z.force,Y,Z,K,J,tt=[],$,Q;if(X.options.isStock&&z.acrossPanes!==!1&&N.coll==="xAxis"||N.coll==="yAxis"){for(let et of(z.preventDefault(),tt=(it=>{let st=it==="xAxis"?"yAxis":"xAxis",rt=N.options[st];return S(rt)?[X[st][rt]]:w(rt)?[X.get(rt)]:G.map(nt=>nt[st])})(N.coll),N.isXAxis?X.yAxis:X.xAxis))if(!m(et.options.id)||et.options.id.indexOf("navigator")===-1){let it=et.isXAxis?"yAxis":"xAxis";N===(m(et.options[it])?X[it][et.options[it]]:X[it][0])&&tt.push(et)}for(let et of($=tt.length?[]:[N.isXAxis?X.yAxis[0]:X.xAxis[0]],tt))$.indexOf(et)!==-1||L($,it=>it.pos===et.pos&&it.len===et.len)||$.push(et);if(S(Q=O(U,N.translate(q||0,void 0,void 0,z.old))))if(N.horiz)for(let et of $){let it;J=(Z=et.pos)+et.len,Y=K=Math.round(Q+N.transB),H!=="pass"&&(YB+N.width)&&(H?Y=K=v(Y,B,B+N.width):it=!0),it||V.push(["M",Y,Z],["L",K,J])}else for(let et of $){let it;K=(Y=et.pos)+et.len,Z=J=Math.round(W+N.height-Q),H!=="pass"&&(ZW+N.height)&&(H?Z=J=v(Z,W,W+N.height):it=!0),it||V.push(["M",Y,Z],["L",K,J])}z.path=V.length>0?j.crispPolyLine(V,z.lineWidth||1):void 0}}function M(z){if(this.chart.options.isStock){let N;this.is("column")||this.is("columnrange")?N={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(N={marker:{enabled:!1,radius:2}}),N&&(z.plotOptions[this.type]=R(z.plotOptions[this.type],N))}}function k(){let z=this.chart,N=this.options.dataGrouping;return this.allowDG!==!1&&N&&O(N.enabled,z.options.isStock)}function T(z,N){for(let G=0;G\u25CF {series.name}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0}}),i(t,"Series/HLC/HLCSeries.js",[t["Series/HLC/HLCPoint.js"],t["Series/HLC/HLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n){let{column:l}=r.seriesTypes,{crisp:a,extend:h,merge:c}=n;class f extends l{extendStem(p,b,v){let x=p[0],m=p[1];typeof x[2]=="number"&&(x[2]=Math.max(v+b,x[2])),typeof m[2]=="number"&&(m[2]=Math.min(v-b,m[2]))}getPointPath(p,b){let v=b.strokeWidth(),x=p.series,m=a(p.plotX||0,v),E=Math.round(p.shapeArgs.width/2),L=[["M",m,Math.round(p.yBottom)],["L",m,Math.round(p.plotHigh)]];if(p.close!==null){let S=a(p.plotClose,v);L.push(["M",m,S],["L",m+E,S]),x.extendStem(L,v/2,S)}return L}drawSinglePoint(p){let b=p.series,v=b.chart,x,m=p.graphic;p.plotY!==void 0&&(m||(p.graphic=m=v.renderer.path().add(b.group)),v.styledMode||m.attr(b.pointAttribs(p,p.selected&&"select")),x=b.getPointPath(p,m),m[m?"animate":"attr"]({d:x}).addClass(p.getClassName(),!0))}drawPoints(){this.points.forEach(this.drawSinglePoint)}init(){super.init.apply(this,arguments),this.options.stacking=void 0}pointAttribs(p,b){let v=super.pointAttribs.call(this,p,b);return delete v.fill,v}toYData(p){return[p.high,p.low,p.close]}translate(){let p=this,b=p.yAxis,v=this.pointArrayMap&&this.pointArrayMap.slice()||[],x=v.map(m=>`plot${m.charAt(0).toUpperCase()+m.slice(1)}`);x.push("yBottom"),v.push("low"),super.translate.apply(p),p.points.forEach(function(m){v.forEach(function(E,L){let S=m[E];S!==null&&(p.dataModify&&(S=p.dataModify.modifyValue(S)),m[x[L]]=b.toPixels(S,!0))}),m.tooltipPos[1]=m.plotHigh+b.pos-p.chart.plotTop})}}return f.defaultOptions=c(l.defaultOptions,s),h(f.prototype,{pointClass:e,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),r.registerSeriesType("hlc",f),f}),i(t,"Series/OHLC/OHLCPoint.js",[t["Core/Series/SeriesRegistry.js"]],function(e){let{seriesTypes:{hlc:s}}=e;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}
'}}}),i(t,"Series/OHLC/OHLCSeries.js",[t["Core/Globals.js"],t["Series/OHLC/OHLCPoint.js"],t["Series/OHLC/OHLCSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{composed:a}=e,{hlc:h}=n.seriesTypes,{addEvent:c,crisp:f,extend:u,merge:p,pushUnique:b}=l;function v(E){let L=E.options,S=L.dataGrouping;S&&L.useOhlcData&&L.id!=="highcharts-navigator-series"&&(S.approximation="ohlc")}function x(E){let L=E.options;L.useOhlcData&&L.id!=="highcharts-navigator-series"&&u(this,{pointValKey:m.prototype.pointValKey,pointArrayMap:m.prototype.pointArrayMap,toYData:m.prototype.toYData})}class m extends h{static compose(L,...S){b(a,"OHLCSeries")&&(c(L,"afterSetOptions",v),c(L,"init",x))}getPointPath(L,S){let w=super.getPointPath(L,S),R=S.strokeWidth(),O=f(L.plotX||0,R),I=Math.round(L.shapeArgs.width/2);if(L.open!==null){let _=f(L.plotOpen,R);w.push(["M",O,_],["L",O-I,_]),super.extendStem(w,R/2,_)}return w}pointAttribs(L,S){let w=super.pointAttribs.call(this,L,S),R=this.options;return delete w.fill,!L.options.color&&R.upColor&&L.openp&&(f-=Math.round((b-p)/2),p=b),x=h[c](f,u,p,b,v),m&&E){let L=m;if(c==="circle")L=f+p/2;else{let w=x[0],R=x[1];w[0]==="M"&&R[0]==="L"&&(L=(w[1]+R[1])/2)}let S=u>E?u:u+b;x.push(["M",L,S],["L",m,E]),x=x.concat(h.circle(m-1,E-1,2,2))}return x}}r.compose=function(h){if(n.indexOf(h)===-1){n.push(h);let f=h.prototype.symbols;f.flag=l,a(f,"circle"),a(f,"square")}let c=e.getRendererType();n.indexOf(c)&&n.push(c)}}(s||(s={})),s}),i(t,"Series/OnSeriesComposition.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/Series.js"],t["Core/Utilities.js"]],function(e,s,r,n){var l;let{composed:a}=s,{prototype:h}=e,{prototype:c}=r,{defined:f,pushUnique:u,stableSort:p}=n;return function(b){function v(m){return c.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,m)}function x(){h.translate.apply(this);let m=this,E=m.options,L=m.chart,S=m.points,w=E.onSeries,R=w&&L.get(w),O=R&&R.options.step,I=R&&R.points,_=L.inverted,A=m.xAxis,F=m.yAxis,P=S.length-1,D,C,d=E.onKey||"y",g=I&&I.length,y=0,M,k,T,z,N;if(R&&R.visible&&g){for(y=(R.pointXOffset||0)+(R.barW||0)/2,z=R.currentDataGrouping,k=I[g-1].x+(z?z.totalRange:0),p(S,(G,X)=>G.x-X.x),d="plot"+d[0].toUpperCase()+d.substr(1);g--&&S[P];)if(M=I[g],(D=S[P]).y=M.y,M.x<=D.x&&M[d]!==void 0){if(D.x<=k&&(D.plotY=M[d],M.xMath.pow(1-H,3)*G[Y]+3*(1-H)*(1-H)*H*j[Y]+3*(1-H)*H*H*B[Y]+H*H*H*X[Y],V=0,U=1,q;for(let H=0;H<100;H++){let Y=(V+U)/2,Z=W(Y,0);if(Z===null)break;if(.25>Math.abs(Z-D.plotX)){q=Y;break}Z{let j;G.plotX+=y,(G.plotY===void 0||_)&&(G.plotX>=0&&G.plotX<=A.len?_?(G.plotY=A.translate(G.x,0,1,0,1),G.plotX=f(G.y)?F.translate(G.y,0,0,0,1):0):G.plotY=(A.opposite?0:m.yAxis.len)+A.offset:G.shapeArgs={}),(C=S[X-1])&&C.plotX===G.plotX&&(C.stackIndex===void 0&&(C.stackIndex=0),j=C.stackIndex+1),G.stackIndex=j}),this.onSeries=R}b.compose=function(m){if(u(a,"OnSeries")){let E=m.prototype;E.getPlotBox=v,E.translate=x}return m},b.getPlotBox=v,b.translate=x}(l||(l={})),l}),i(t,"Series/Flags/FlagsSeries.js",[t["Series/Flags/FlagsPoint.js"],t["Series/Flags/FlagsSeriesDefaults.js"],t["Series/Flags/FlagsSymbols.js"],t["Core/Globals.js"],t["Series/OnSeriesComposition.js"],t["Core/Renderer/RendererUtilities.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a,h,c,f){let{noop:u}=n,{distribute:p}=a,{series:b,seriesTypes:{column:v}}=h,{addEvent:x,defined:m,extend:E,isNumber:L,merge:S,objectEach:w,wrap:R}=f;class O extends v{animate(_){_&&this.setClip()}drawPoints(){let _,A,F,P,D,C,d,g,y,M,k,T=this.points,z=this.chart,N=z.renderer,G=z.inverted,X=this.options,j=X.y,B=this.yAxis,W={},V=[],U=L(X.borderRadius)?X.borderRadius:0;for(P=T.length;P--;)D=T[P],M=(G?D.plotY:D.plotX)>this.xAxis.len,_=D.plotX,d=D.stackIndex,F=D.options.shape||X.shape,(A=D.plotY)!==void 0&&(A=D.plotY+j-(d!==void 0&&d*X.stackDistance)),D.anchorX=d?void 0:D.plotX,g=d?void 0:D.plotY,k=F!=="flag",C=D.graphic,A!==void 0&&_>=0&&!M?(C&&D.hasNewShapeType()&&(C=C.destroy()),C||(C=D.graphic=N.label("",0,void 0,F,void 0,void 0,X.useHTML).addClass("highcharts-point").add(this.markerGroup),D.graphic.div&&(D.graphic.div.point=D),C.isNew=!0),C.attr({align:k?"center":"left",width:X.width,height:X.height,"text-align":X.textAlign,r:U}),z.styledMode||C.attr(this.pointAttribs(D)).css(S(X.style,D.style)).shadow(X.shadow),_>0&&(_-=C.strokeWidth()%2),y={y:A,anchorY:g},X.allowOverlapX&&(y.x=_,y.anchorX=D.anchorX),C.attr({text:D.options.title??X.title??"A"})[C.isNew?"attr":"animate"](y),X.allowOverlapX||(W[D.plotX]?W[D.plotX].size=Math.max(W[D.plotX].size,C.width||0):W[D.plotX]={align:k?.5:0,size:C.width||0,target:_,anchorX:_}),D.tooltipPos=[_,A+B.pos-z.plotTop]):C&&(D.graphic=C.destroy());if(!X.allowOverlapX){let q=100;for(let H of(w(W,function(Y){Y.plotX=Y.anchorX,V.push(Y),q=Math.max(Y.size,q)}),p(V,G?B.len:this.xAxis.len,q),T)){let Y=H.plotX,Z=H.graphic,K=Z&&W[Y];K&&Z&&(m(K.pos)?Z[Z.isNew?"attr":"animate"]({x:K.pos+(K.align||0)*K.size,anchorX:H.anchorX}).show().isNew=!1:Z.hide().isNew=!0)}}X.useHTML&&this.markerGroup&&R(this.markerGroup,"on",function(q){return c.prototype.on.apply(q.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})}drawTracker(){let _=this.points;for(let A of(super.drawTracker(),_)){let F=A.graphic;F&&(A.unbindMouseOver&&A.unbindMouseOver(),A.unbindMouseOver=x(F.element,"mouseover",function(){for(let P of(A.stackIndex>0&&!A.raised&&(A._y=F.y,F.attr({y:A._y-8}),A.raised=!0),_))P!==A&&P.raised&&P.graphic&&(P.graphic.attr({y:P._y}),P.raised=!1)}))}}pointAttribs(_,A){let F=this.options,P=_&&_.color||this.color,D=F.lineColor,C=_&&_.lineWidth,d=_&&_.fillColor||F.fillColor;return A&&(d=F.states[A].fillColor,D=F.states[A].lineColor,C=F.states[A].lineWidth),{fill:d||P,stroke:D||P,"stroke-width":C||F.lineWidth||0}}setClip(){b.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])}}return O.compose=r.compose,O.defaultOptions=S(v.defaultOptions,s),l.compose(O),E(O.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:e,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:u,init:b.prototype.init}),h.registerSeriesType("flags",O),O}),i(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],function(e,s){var r;let{addEvent:n,find:l,fireEvent:a,isArray:h,isNumber:c,pick:f}=s;return function(u){function p(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function b(){this.brokenAxis?.hasBreaks&&(this.options.ordinal=!1)}function v(){let R=this.brokenAxis;if(R?.hasBreaks){let O=this.tickPositions,I=this.tickPositions.info,_=[];for(let A=0;Ay.to||_>y.from&&Ay.from&&Ay.from&&A>y.to&&A0){let P,D;for(this.options.gapUnit!=="value"&&(A*=this.basePointRange),O&&O>A&&O>=this.basePointRange&&(A=O);F--;)if(D&&D.visible!==!1||(D=I[F+1]),P=I[F],D.visible!==!1&&P.visible!==!1){if(D.x-P.x>A){let C=(P.x+D.x)/2;I.splice(F+1,0,{isNull:!0,x:C}),_.stacking&&this.options.stacking&&((_.stacking.stacks[this.stackKey][C]=new e(_,_.options.stackLabels,!1,C,this.stack)).total=0)}D=P}}return this.getGraphPath(I)}u.compose=function(R,O){if(!R.keepProps.includes("brokenAxis")){R.keepProps.push("brokenAxis"),n(R,"init",x),n(R,"afterInit",p),n(R,"afterSetTickPositions",v),n(R,"afterSetOptions",b);let I=O.prototype;I.drawBreaks=L,I.gappedPath=S,n(O,"afterGeneratePoints",m),n(O,"afterRender",E)}return R};class w{static isInBreak(O,I){let _=O.repeat||1/0,A=O.from,F=O.to-O.from,P=I>=A?(I-A)%_:_-(A-I)%_;return O.inclusive?P<=F:P=A);P++)(F.to=O)break;if(w.isInBreak(F,O)){A-=O-F.from;break}}return A}constructor(O){this.hasBreaks=!1,this.axis=O}findBreakAt(O,I){return l(I,function(_){return _.fromk;)z-=M;for(;zthis.chart.plotSizeX/x||E&&L.forced)&&(m=!0));return m?x:0}function u(){this.series.forEach(function(b){b.hasProcessed=!1})}function p(b,v){let x;if(v=h(v,!0),b||(b={forced:!1,units:null}),this instanceof r)for(x=this.series.length;x--;)this.series[x].update({dataGrouping:b},!1);else this.chart.options.series.forEach(function(m){m.dataGrouping=typeof b=="boolean"?b:a(b,m.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),v&&this.chart.redraw()}return{compose:function(b){r=b;let v=b.prototype;v.applyGrouping||(n(b,"afterSetScale",u),n(b,"postProcessData",c),l(v,{applyGrouping:c,getGroupPixelWidth:f,setDataGrouping:p}))}}}),i(t,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[t["Extensions/DataGrouping/ApproximationRegistry.js"],t["Extensions/DataGrouping/DataGroupingDefaults.js"],t["Core/Axis/DateTimeAxis.js"],t["Core/Defaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],function(e,s,r,n,l,a){let{series:{prototype:h}}=l,{addEvent:c,defined:f,error:u,extend:p,isNumber:b,merge:v,pick:x}=a,m=h.generatePoints;function E(I){var _;let A,F,P=this.chart,D=this.options.dataGrouping,C=this.allowDG!==!1&&D&&x(D.enabled,P.options.isStock),d=this.reserveSpace(),g=this.currentDataGrouping,y,M,k=!1;C&&!this.requireSorting&&(this.requireSorting=k=!0);let T=!!(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!I)||!C;if(k&&(this.requireSorting=!1),T)return;this.destroyGroupedData();let z=D.groupAll?this.xData:this.processedXData,N=D.groupAll?this.yData:this.processedYData,G=P.plotSizeX,X=this.xAxis,j=X.options.ordinal,B=this.groupPixelWidth;if(B&&z&&z.length&&G){F=!0,this.isDirty=!0,this.points=null;let W=X.getExtremes(),V=W.min,U=W.max,q=j&&X.ordinal&&X.ordinal.getGroupIntervalFactor(V,U,this)||1,H=B*(U-V)/G*q,Y=X.getTimeTicks(r.Additions.prototype.normalizeTimeTickInterval(H,D.units||s.units),Math.min(V,z[0]),Math.max(U,z[z.length-1]),X.options.startOfWeek,z,this.closestPointRange),Z=h.groupData.apply(this,[z,N,Y,D.approximation]),K=Z.groupedXData,J=Z.groupedYData,tt=0;for(D&&D.smoothed&&K.length&&(D.firstAnchor="firstPoint",D.anchor="middle",D.lastAnchor="lastPoint",u(32,!1,P,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),A=1;A=Q[0]){let lt;ht++;let yt=$.groupMap[0].start,Et=$.groupMap[0].length;b(yt)&&b(Et)&&(lt=yt+(Et-1)),Q[0]={start:Q[0],middle:Q[0]+.5*st,end:Q[0]+st,firstPoint:$.xData[0],lastPoint:lt&&$.xData[lt]}[ot]}if(rt>0&&at&&st&&Q[rt]>=et-st){ct--;let lt=$.groupMap[$.groupMap.length-1].start;Q[rt]={start:Q[rt],middle:Q[rt]+.5*st,end:Q[rt]+st,firstPoint:lt&&$.xData[lt],lastPoint:$.xData[$.xData.length-1]}[at]}if(nt&&nt!=="start"){let lt=st*{middle:.5,end:1}[nt];for(;ct>=ht;)Q[ct]+=lt,ct--}}(this,K,U),d&&(f((_=K)[0])&&b(X.min)&&b(X.dataMin)&&_[0]X.max&&((!f(X.options.max)&&b(X.dataMax)&&X.max>=X.dataMax||X.max===X.dataMax)&&(X.max=Math.max(_[_.length-1],X.max)),X.dataMax=Math.max(_[_.length-1],X.dataMax))),D.groupAll&&(this.allGroupedData=J,K=(M=this.cropData(K,J,X.min,X.max)).xData,J=M.yData,this.cropStart=M.start),this.processedXData=K,this.processedYData=J}else this.groupMap=null,this.currentDataGrouping=void 0;this.hasGroupedData=F,this.preventGraphAnimation=(g&&g.totalRange)!==(y&&y.totalRange)}function L(){this.groupedData&&(this.groupedData.forEach(function(I,_){I&&(this.groupedData[_]=I.destroy?I.destroy():null)},this),this.groupedData.length=0,delete this.allGroupedData)}function S(){m.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function w(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")||this.options.cumulative?"sum":"average"}function R(I,_,A,F){let P=this,D=P.data,C=P.options&&P.options.data,d=[],g=[],y=[],M=I.length,k=!!_,T=[],z=P.pointArrayMap,N=z&&z.length,G=["x"].concat(z||["y"]),X=this.options.dataGrouping&&this.options.dataGrouping.groupAll,j,B,W,V=0,U=0,q=typeof F=="function"?F:F&&e[F]?e[F]:e[P.getDGApproximation&&P.getDGApproximation()||"average"];if(N){let Y=z.length;for(;Y--;)T.push([])}else T.push([]);let H=N||1;for(let Y=0;Y<=M;Y++)if(!(I[Y]=A[V+1]||Y===M;){j=A[V],P.dataGroupInfo={start:X?U:P.cropStart+U,length:T[0].length,groupStart:j},W=q.apply(P,T),P.pointClass&&!f(P.dataGroupInfo.options)&&(P.dataGroupInfo.options=v(P.pointClass.prototype.optionsToObject.call({series:P},P.options.data[P.cropStart+U])),G.forEach(function(Z){delete P.dataGroupInfo.options[Z]})),W!==void 0&&(d.push(j),g.push(W),y.push(P.dataGroupInfo)),U=Y;for(let Z=0;Z{let c=h.axis.getExtremes(),f=c.min,u=c.max,p=n(h.axis.minPointOffset,0);return r(f)&&r(u)&&h.value>=f-p&&h.value<=u+p&&!h.axis.options.isInternal})[0]},getFieldType:function(a,h){let c=l[a],f=typeof h;return s(c)&&(f=c),{string:"text",number:"number",boolean:"checkbox"}[f]}}}),i(t,"Extensions/MouseWheelZoom/MouseWheelZoom.js",[t["Core/Utilities.js"],t["Extensions/Annotations/NavigationBindingsUtilities.js"]],function(e,s){let r,{addEvent:n,isObject:l,pick:a,defined:h,merge:c}=e,{getAssignedAxis:f}=s,u=[],p={enabled:!0,sensitivity:1.1},b=m=>(l(m)||(m={enabled:m??!0}),c(p,m)),v=function(m,E,L,S,w,R,O){let I=a(O.type,m.zooming.type,""),_=[];I==="x"?_=L:I==="y"?_=S:I==="xy"&&(_=m.axes);let A=m.transform({axes:_,to:{x:w-5,y:R-5,width:10,height:10},from:{x:w-5*E,y:R-5*E,width:10*E,height:10*E},trigger:"mousewheel"});return A&&(h(r)&&clearTimeout(r),r=setTimeout(()=>{m.pointer?.drop()},400)),A};function x(){let m=b(this.zooming.mouseWheel);m.enabled&&n(this.container,"wheel",E=>{E=this.pointer?.normalize(E)||E;let{pointer:L}=this,S=L&&!L.inClass(E.target,"highcharts-no-mousewheel");if(this.isInsidePlot(E.chartX-this.plotLeft,E.chartY-this.plotTop)&&S){let w=m.sensitivity||1.1,R=E.detail||(E.deltaY||0)/120,O=f(L.getCoordinates(E).xAxis),I=f(L.getCoordinates(E).yAxis);v(this,Math.pow(w,R),O?[O.axis]:this.xAxis,I?[I.axis]:this.yAxis,E.chartX,E.chartY,m)&&E.preventDefault?.()}})}return{compose:function(m){u.indexOf(m)===-1&&(u.push(m),n(m,"afterGetContainer",x))}}}),i(t,"masters/modules/mouse-wheel-zoom.src.js",[t["Core/Globals.js"],t["Extensions/MouseWheelZoom/MouseWheelZoom.js"]],function(e,s){return e.MouseWheelZoom=e.MouseWheelZoom||s,e.MouseWheelZoom.compose(e.Chart),e}),i(t,"masters/modules/stock.src.js",[t["Core/Globals.js"],t["Series/DataModifyComposition.js"],t["Stock/Navigator/Navigator.js"],t["Core/Axis/OrdinalAxis.js"],t["Stock/RangeSelector/RangeSelector.js"],t["Stock/Scrollbar/Scrollbar.js"],t["Core/Chart/StockChart.js"],t["Series/OHLC/OHLCSeries.js"],t["Series/Flags/FlagsSeries.js"]],function(e,s,r,n,l,a,h,c,f){return e.Navigator=e.Navigator||r,e.OrdinalAxis=e.OrdinalAxis||n,e.RangeSelector=e.RangeSelector||l,e.Scrollbar=e.Scrollbar||a,e.stockChart=e.stockChart||h.stockChart,e.StockChart=e.StockChart||e.stockChart,e.extend(e.StockChart,h),s.compose(e.Series,e.Axis,e.Point),f.compose(e.Renderer),c.compose(e.Series),e.Navigator.compose(e.Chart,e.Axis,e.Series),e.OrdinalAxis.compose(e.Axis,e.Series,e.Chart),e.RangeSelector.compose(e.Axis,e.Chart),e.Scrollbar.compose(e.Axis),e.StockChart.compose(e.Chart,e.Axis,e.Series,e.SVGRenderer),e})})});var Qu=oi((_A,go)=>{"use strict";(function(o){typeof go=="object"&&go.exports?(o.default=o,go.exports=o):typeof define=="function"&&define.amd?define("highcharts/modules/solid-gauge",["highcharts","highcharts/highcharts-more"],function(t){return o(t),o.Highcharts=t,o}):o(typeof Highcharts<"u"?Highcharts:void 0)})(function(o){"use strict";var t=o?o._modules:{};function i(e,s,r,n){e.hasOwnProperty(s)||(e[s]=n.apply(null,r),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:s,module:e[s]}})))}i(t,"Core/Axis/Color/ColorAxisLike.js",[t["Core/Color/Color.js"],t["Core/Utilities.js"]],function(e,s){var r,n;let{parse:l}=e,{merge:a}=s;return(n=r||(r={})).initDataClasses=function(h){let c=this.chart,f=this.legendItem=this.legendItem||{},u=this.options,p=h.dataClasses||[],b,v,x=c.options.chart.colorCount,m=0,E;this.dataClasses=v=[],f.labels=[];for(let L=0,S=p.length;L=u)&&(p===void 0||h<=p)){b=v.color,c&&(c.dataClass=x,c.colorIndex=v.colorIndex);break}}else{for(f=this.normalizedValue(h),x=E.length;x--&&!(f>E[x][0]););u=E[x]||E[x+1],f=1-((p=E[x+1]||u)[0]-f)/(p[0]-u[0]||1),b=u.color.tweenTo(p.color,f)}return b},r}),i(t,"Core/Axis/SolidGaugeAxis.js",[t["Core/Axis/Color/ColorAxisLike.js"],t["Core/Utilities.js"]],function(e,s){let{extend:r}=s;return{init:function(n){r(n,e)}}}),i(t,"Series/SolidGauge/SolidGaugeSeriesDefaults.js",[],function(){return{colorByPoint:!0,dataLabels:{y:0}}}),i(t,"Series/SolidGauge/SolidGaugeSeries.js",[t["Extensions/BorderRadius.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Axis/SolidGaugeAxis.js"],t["Series/SolidGauge/SolidGaugeSeriesDefaults.js"],t["Core/Utilities.js"]],function(e,s,r,n,l){let{gauge:a,pie:h}=s.seriesTypes,{clamp:c,extend:f,isNumber:u,merge:p,pick:b,pInt:v}=l;class x extends a{translate(){let E=this.yAxis;r.init(E),!E.dataClasses&&E.options.dataClasses&&E.initDataClasses(E.options),E.initStops(),a.prototype.translate.call(this)}drawPoints(){let E,L=this.yAxis,S=L.center,w=this.options,R=this.chart.renderer,O=w.overshoot,I=w.rounded&&w.borderRadius===void 0,_=u(O)?O/180*Math.PI:0;for(let A of(u(w.threshold)&&(E=L.startAngleRad+L.translate(w.threshold,void 0,void 0,void 0,!0)),this.thresholdAngleRad=b(E,L.startAngleRad),this.points))if(!A.isNull){let F=v(b(A.options.radius,w.radius,100))*S[2]/200,P=v(b(A.options.innerRadius,w.innerRadius,60))*S[2]/200,D=Math.min(L.startAngleRad,L.endAngleRad),C=Math.max(L.startAngleRad,L.endAngleRad),d=A.graphic,g=L.startAngleRad+L.translate(A.y,void 0,void 0,void 0,!0),y,M,k=L.toColor(A.y,A);k==="none"&&(k=A.color||this.color||"none"),k!=="none"&&(A.color=k),g=c(g,D-_,C+_),w.wrap===!1&&(g=c(g,D,C));let T=I?(F-P)/2/F:0,z=Math.min(g,this.thresholdAngleRad)-T,N=Math.max(g,this.thresholdAngleRad)+T;N-z>2*Math.PI&&(N=z+2*Math.PI);let G=I?"50%":0;w.borderRadius&&(G=e.optionsToObject(w.borderRadius).radius),A.shapeArgs=y={x:S[0],y:S[1],r:F,innerR:P,start:z,end:N,borderRadius:G},A.startR=F,d?(M=y.d,d.animate(f({fill:k},y)),M&&(y.d=M)):A.graphic=d=R.arc(y).attr({fill:k,"sweep-flag":0}).add(this.group),this.chart.styledMode||(w.linecap!=="square"&&d.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),d.attr({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0})),d&&d.addClass(A.getClassName(),!0)}}animate(E){E||(this.startAngleRad=this.thresholdAngleRad,h.prototype.animate.call(this,E))}}return x.defaultOptions=p(a.defaultOptions,n),s.registerSeriesType("solidgauge",x),x}),i(t,"masters/modules/solid-gauge.src.js",[t["Core/Globals.js"]],function(e){return e})})});var _o=Jt(Ms());var Yh="Oxygen",Uh="mdx2json.emptyportlet",Hh="DSW.Addons.";var ue=(()=>{let t=class t{constructor(){this.model={},this.el=Qt(Dh),this.cd=Qt(Rh),this.ds=Qt(Nh),this.ss=Qt(Bh),this.bs=Qt(Gh),this.us=Qt(jh),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(s=>s.name===e)}getDataPropByDataValue(e){if(!this.widget.dataProperties||!e)return;let s=e.split("/");return this.widget.dataProperties.find(r=>{let n=r.dataValue?.toString().split("/");return s.some(l=>n.includes(l))})}getDataPropValue(e){let s=this.getDataProp(e);if(s&&s.dataValue!==null&&s.dataValue!==void 0)return s.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"],s=this.widget.controls.filter(r=>e.indexOf(r.action.toLowerCase())===-1&&r.type!=="hidden");s.length!==0&&(this.widget.acItems=s)}initializeChoseDataSource(){return Ft(this,null,function*(){if(!this.widget)return;let e=n=>n.action==="chooseDataSource"||n.action==="chooseRowSpec"||n.action==="setRowSpec"||n.action==="chooseColumnSpec",s=this.widget.type===Uh;if(!s&&(!this.widget.controls||this.widget.controls.length===0))return;let r=[];if(this.widget.controls&&(r=this.widget.controls.filter(e).filter(n=>n.location!=="dashboard")),s){let n=this.dbs.getWidgets();for(let l=0;la.location==="dashboard")))}if(r.length!==0){this.hasDatasourceChooser=!0,this.widget.dsItems=[];for(let n=0;n{h[b]=p[v]})}}let f={action:r[n].action,label:r[n].label||this.i18n.get("dataSource"),dsSelected:r[n].value,control:r[n],labels:[],values:[],field:"select"};this.widget.dsItems.push(f);let u=null;if(c?u=yield this.ds.getTermList(c):u=h,u&&typeof u=="object"){for(let b in u)u[b]===this.widget.dataSource&&(this.widget.dsSelected=b);f.labels=[],f.values=[],(f.control?.action==="chooseRowSpec"||f.control?.action==="setRowSpec")&&(f.labels.push(""),f.values.push(""));for(let b in u)f.labels.push(b),f.values.push(u[b]);let p=-1;this.customDataSource?p=f.values.findIndex(b=>b===this.customDataSource):p=f.values.findIndex(b=>b.split("/").pop()===f.dsSelected),p===-1?f.dsSelected=f.labels[0]:f.dsSelected=f.labels[p],this.parent?.filters.detectChanges()}}}})}onVariableChange(e){let s=e.target;this.bs.broadcast(`updatePivotVar:${s}`)}onPivotVarChanged(){this.requestData()}getColumnIndexByName(e,s){return e.Cols[0].tuples.findIndex(r=>r.caption.toLowerCase()===s.toLowerCase())}getDataByColumnName(e,s,r,n=""){if(!e||!e.Data||!e.Cols||!e.Cols[0]||!e.Cols[0].tuples)return;let l=e.Cols[0].tuples.filter(f=>f.caption.toLowerCase()===s.toLowerCase());if(l.length===0)return;let a=e.Cols[0].tuples.indexOf(l[0]),h=e.Cols[0].tuples[a].originalIndex;h!==void 0&&(a=h);let c=e.Data[r+a];return n&&(c=this.formatNumber(c,n)),c}initializeDrillFilter(){let e=this.fs.getClickFilterTarget(this.widget.name);e?.length&&(this.drillFilterWidgets=e)}resetClickFilter(){if(this.widget.clickFilterActive=!1,!(!this.drillFilterWidgets||!this.drillFilterWidgets.length))for(let e=0;e{this.bs.broadcast("drillFilter:"+r,{path:"",drills:[]})})}}doDrillFilter(e,s=[]){if(!this.drillFilterWidgets||!this.drillFilterWidgets.length)return;let r=s.slice();e||r.pop(),this.widget.clickFilterActive=!!e;for(let n=0;n{this.bs.broadcast("drillFilter:"+a,{path:e,drills:r})})}this.parent?.header?.cd.detectChanges()}onDrillFilter(e,s){this.drillFilter=e,this.drillFilterDrills=s,this.requestData()}actionNavigate(e,s=!1){let r=e.targetProperty,n=r.toUpperCase().indexOf("DASHBOARD=");if(n!==-1){let l=r.substring(n+10,r.length);l.indexOf("?")===-1&&(l=l.replace("&","?"));let a=location.href;a.indexOf("#")!==-1?r=a.split("#")[0]+"#/"+Ss+"/"+l:r+="#/"+Ss+"/"+l}if(r=r.replace("$$$FILTERS",this.fs.getFiltersUrlString(this.widget.name)),this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=l.dataArray[(this.lpt.getSelectedRows()[0]-1)*l.columnProps.length],h=r.toLowerCase().indexOf("$$$currvalue");h!==-1&&(r=r.substring(0,h)+a+r.substring(h+12,r.length))}if(this.lpt&&this.lpt.getSelectedRows().length){let l=this.lpt.dataController.getData(),a=this.lpt.getSelectedRows(),h=[];for(let f=0;fthis.requestData())}getDrillTitle(e){if(!e)return this.widget.baseTitle||"";let s=e.path.split(".");return s.pop(),(this.widget.baseTitle?this.widget.baseTitle+" - ":"")+(e.name?s[s.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 s=e.toLowerCase(),r="select non empty",n=s.lastIndexOf(r);n===-1&&(r="select",n=s.lastIndexOf(r));let l=s.lastIndexOf("from");if(n===-1){console.warn("Can't find 'select' in MDX during calculation drillthrough mdx");return}if(l===-1){console.warn("Can't find 'from' in MDX during calculation drillthrough mdx");return}let a="";if(this.pivotData?.listingRows){let c=parseInt(this.pivotData.listingRows,10);c&&(a=` MAXROWS ${c} `)}let h=this.widget.controls.find(c=>c.action==="showListing");if(h){let c=h.targetPropertyDisplay;if(c)return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)+` %LISTING [${c}]`}return"DRILLTHROUGH "+a+e.substring(0,n+r.length)+" "+e.substring(l,e.length)}doDrill(e,s,r,n,l=!1,a,h){return new Promise((c,f)=>{this.clearError(),l||this.doDrillFilter(e,this.drills);let u=this.drills.slice();e?this.drills.push({path:e,name:s||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading();let b=()=>{if(n){n();return}if(!this.canDoDrillthrough)return;let v=this.getDrillthroughMdx(p)||"";this.ds.execMDX(v).then(x=>{!x||!x.children||x.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=x,this._currentData=x,this.displayAsPivot(v))}).catch(x=>{h&&h(x)})};this.showLoading(),this.ds.execMDX(p).catch(v=>{l?h&&h(v):b()}).then(v=>{if(v){if(this.chartConfig&&(this.chartConfig.loading=!1),this.isEmptyData(v)&&e){b();return}this.isEmptyData(v)||(e?this.drills.push({path:e,name:s||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(p),this.retrieveData(v),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),this._currentData=v,a&&a())}}).finally(()=>{this.hideLoading(),c()})})}doDrillthrough(e,s,r,n,l=!1,a,h){return new Promise((c,f)=>{if(!this.canDoDrillthrough){c();return}if(this.clearError(),this.widget.kpitype&&s){this.doKPIDrillthrough(s);return}let u=this.drills.slice();e?Array.isArray(e)?e.forEach(v=>{this.drills.push({path:v,name:s||"",category:r})}):this.drills.push({path:e,name:s||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading();let b=this.getDrillthroughMdx(p)||"";this.ds.execMDX(b).then(v=>{!v||!v.children||v.children.length===0||(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.pivotData=v,this.displayAsPivot(b))}).catch(v=>{h&&h(v)}).finally(()=>{this.hideLoading()})})}doDrillOnly(e,s,r,n,l=!1,a,h){return new Promise((c,f)=>{this.clearError();let u=this.drills.slice();e?this.drills.push({path:e,name:s||"",category:r}):this.drills.pop();let p=this.getMDX();this.drills=u,this.showLoading(),this.ds.execMDX(p).catch(b=>{h&&h(b)}).then(b=>{b&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(b)&&(this._currentData=b,e?this.drills.push({path:e,name:s||"",category:r}):this.drills.pop(),this.widget.backButton=this.drills.length!==0,this.widget.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(p),this.retrieveData(b),this.updateLocationDrillParameters(),this.parent?.header?.cd.detectChanges(),a&&a()))}).finally(()=>{this.hideLoading(),c()})})}checkForAutoDrill(e){return Ft(this,null,function*(){let s=!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(),s=!0},()=>{this.oneItemDrillApplied=!1})),s})}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 s=this.route.snapshot.queryParamMap.get("filter");s&&(e=e+" %FILTER "+s);let r=this.drills;if(r.length===0&&(r=this.drillFilterDrills),r.length===0)return e;let n=[];this.pivotData&&this.pivotData.rowAxisOptions&&this.pivotData.rowAxisOptions.drilldownSpec&&(n=this.pivotData.rowAxisOptions.drilldownSpec.split("^"));for(let f=0;fthis._retriveDataSource(s)).catch(s=>{this.showError(s.error?.Error||s.message)})}convertKPIToMDXData(e,s=!1){let r=e,n=e.Result,l={Info:{cubeName:r.Info.KpiName},Cols:[],Data:[]},a=[];for(let c=0;cthis.broadcastDependents(),0),e.indexOf("$")!==-1&&!this.pivotVariables&&this.ds.getPivotVariables(this.widget.cube).then(s=>{this.pivotVariables=s}).catch(s=>{this.showError(s.message)}),this.showLoading(),this.ds.execMDX(e).then(s=>{this.removeColsThatNotExistInDataProperties(s),this._currentData=s,this.retrieveData(s)}).catch(s=>this._onRequestError(s)).finally(()=>{this.hideLoading()})}broadcastDependents(e){if(this.hasDependents())for(let s=0;sn.action==="applyVariable");if(this.widget.shared){let n=this.route.snapshot.queryParamMap.get("variables");n&&n.split("~").forEach(a=>{let h=a.split("."),c=h[0],f=h[1],u=r.findIndex(p=>p.targetProperty==="$variable."+c);u!==-1?r[u].value=f:r.push({targetProperty:"$variable."+c,value:f})})}if(!r.length)return e;for(let n=0;nu+b+(f?".%NOT":"")).join(",")||"",e+="})"}else e+=" %FILTER "+c}}return e}dateToHorolog(e){let s=new Date("12/31/1840Z"),n=this.us.toDate(e).getTime()-s.getTime();return Math.ceil(n/(1e3*3600*24)).toString()}getMDX(){let e=!1;if(this.widget.kpitype)return"";let s=this.fs.getWidgetFilters(this.widget.name);if(this.isLinked()){let l=this.replaceMDXVariables(this.linkedMdx||this.widget.linkedMdx||"",s);return l=this.checkColSpec(l),this.applyDrill(l)}if(this.drillFilter){let l=this.drillFilter.indexOf("&");l!==-1&&s.push({targetProperty:this.drillFilter.substring(0,l-1),value:"&"+this.drillFilter.substring(l+1,this.drillFilter.length)})}for(let l=0;l{this.onResize()},0))}displayAsPivot(e){this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=e||this.getMDX(),this.changeWidgetType("pivot")),this.parent?.cd&&this.parent.cd.detectChanges()}formatNumber(e,s=""){let r="";if(e==null&&(e=""),s?r=(0,_o.default)(e).format(s.replace(/;/g,""))||"":r=e.toString(),this.dataInfo){let n=this.dataInfo.numericGroupSeparator,l=this.dataInfo.numericGroupSize||3;if(n){let a=r.split(".");a[0]=a[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,"),r=a.join(".")}this.dataInfo.decimalSeparator&&(r=r.replace(/\./g,this.dataInfo.decimalSeparator))}return r}getDrillsAsParameter(){let e=this.drills;return e?.length?encodeURIComponent(e.map(s=>s.path).join("~")):""}getFormat(e,s,r){let n="";return this.widget?.format&&(n=this.widget.format),s.Cols[0].tuples[e].format&&(n=s.Cols[0].tuples[e].format),r?.format&&(n=r?.format),n}getDataValue(e,s,r){let n=s.Data[e],l=this.getFormat(e,s,r);return l&&(n=(0,_o.default)(n).format(l)),n}_requestKPIData(e,s=!1){let r=this.customDataSource||this.widget.dataSource;if(!r)return;let n=this.fs.getWidgetFilters(this.widget.name)?.filter(a=>!!a.value).map(a=>a.value.toString().split("|").map(c=>({name:a.targetProperty,value:c,exclude:!!a.isExclude}))).flat();e&&n.push(...e);let l=!!e||s;return this.showLoading(),this.ds.getKPIData(r,n,l).then(a=>this._retriveKPI(a,l)).finally(()=>{this.hideLoading()})}removeColsThatNotExistInDataProperties(e){if(this.widget.type==="map"||this.preventColFilteringBasedOnDataProperties||!this.widget.dataProperties?.length||!e?.Cols[0]?.tuples?.length)return;let s=[],r=e.Cols[0]?.tuples?.length||0;r&&(e.Cols[0].tuples=e?.Cols[0]?.tuples.filter((n,l)=>{let a=n.dimension.toString().split("/"),h=this.widget.dataProperties.some(c=>c.dataValue.toString().split("/").some(u=>a.includes(u)));return h||s.push(l),h}),e.Data=e.Data?.filter((n,l)=>!s.some(a=>l%r===a)))}subscribe(){this.subDrillFilter=this.bs.subscribe("drillFilter:"+this.widget.name,({path:e,drills:s})=>{this.onDrillFilter(e,s)}),this.subDrillFilterAll=this.bs.subscribe("drillFilter:*",({path:e,drills:s})=>{this.onDrillFilter(e,s)}),this.subDrilldown=this.bs.subscribe("drilldown:"+this.widget.name,({path:e,title:s})=>{this.doDrillOnly(e,s,s)}),this.subDrillthrough=this.bs.subscribe("drillthrough:"+this.widget.name,({path:e,title:s})=>{this.doDrillthrough(e,s,s)}),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(s=>s._type===e)}updateLocationDrillParameters(){if(!this.widget?.shared)return;let e=location.hash,s=this.getDrillsAsParameter();this.ds.router.navigate([],{relativeTo:this.route,queryParams:{drilldown:s},queryParamsHandling:"merge"});let r={type:"drill",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,drills:this.drills};window.parent&&window.parent.postMessage(r,"*");try{window.parent.dsw?.onDrill&&window.parent.dsw.onDrill(r)}catch(n){console.error(n)}}updateDatasourceParameterInURL(){if(!this.widget?.shared)return;this.ds.router.navigate([],{relativeTo:this.route,queryParams:{datasource:this.customDataSource},queryParamsHandling:"merge"});let e={type:"datasource",index:this.route.snapshot.queryParamMap.get("widget"),widget:this.widget,datasource:this.customDataSource};window.parent&&window.parent.postMessage(e,"*");try{window.parent.dsw?.onDataSource&&window.parent.dsw.onDataSource(e)}catch(s){console.error(s)}}navigateDashboard(e){this.ds.router.navigateByUrl(Ss+"/"+e)}initializeInputControls(){let e="setRowCount";this.widget.controls.filter(r=>e.includes(r.action)).forEach(r=>{this.widget.dsItems.push({action:r.action,label:r.label||"Row count",field:"input",type:"number",_value:r.value||void 0})})}applyRowCount(e){let s=this.widget.dsItems.find(h=>h.action==="setRowCount");if(!s||!s._value)return e;let r=/(HEAD\(.*),(.*)(\))/i;if(e.match(r))return e.replace(r,`$1,${s._value}$3`);let l=e.match(/ON 0,(.*)ON 1/)?.[1];if(!l)return e;l=l.replace("NON EMPTY","");let a=" HEAD("+l.trim()+`, ${s._value}) `;return e.replace(l,a)}extendPropsWithOverrides(){this.override&&this.override.columns?.forEach((e,s)=>{let r=this.widget.dataProperties[s];r&&(e.showAs&&(r.showAs=e.showAs),e.format&&(r.format=e.format),e.display&&(r.display=e.display),e.label&&(r.label=e.label),e.summary&&(r.summary=e.summary),e.rangeLower&&(r.rangeLower=e.rangeLower),e.rangeUpper&&(r.rangeUpper=e.rangeUpper),e.targetValue&&(r.targetValue=e.targetValue),e.thresholdLower&&(r.thresholdLower=e.thresholdLower),e.thresholdUpper&&(r.thresholdUpper=e.thresholdUpper))})}initializeDataSourceChooser(){this.widget.dsItems=[],this.widget.dsLabel="",this.widget.dsSelected="",this.widget&&this.widget.dataSource&&(this.widget.dsSelected=this.us.removeExt(this.widget.dataSource.split("/").pop()))}initializeLiveDataUpdate(){if(!(this.widget&&this.widget.controls))return;let e=this.widget.controls.filter(r=>r.action==="setColumnSpec");e.length!==0&&(this.customColSpec=e[0].targetProperty);let s=this.widget.controls.filter(r=>r.action==="refresh"&&parseInt(r.timeout,10)>0);s.length!==0&&(this.liveUpdateInterval=setInterval(()=>this.requestData(),parseInt(s[0].timeout,10)*1e3))}initializeLinkedWidgets(){if(this.isLinked())if(this.widget.shared||this.widget.inline||this.widget.edKey){let s=this.dbs.getAllWidgets().find(r=>r.name===this.widget.dataLink);s&&(this.linkedMdx=s.mdx)}else this.subLinkedMdx=this.bs.subscribe("setLinkedMDX:"+this.widget.name,e=>this.onSetLinkedMdx(e))}loadWidgetSettings(){let e=this.ss.getAppSettings(),s=e.theme||"";this.widgetsSettings=this.ss.getWidgetsSettings(this.widget.dashboard)||{},this.tc=e?.themeColors?.[s];let r=this.widgetsSettings?.[this.widget.name]?.themeColors?.[s];r&&(this.tc=r)}initializeDrills(){this.widget?.drills&&(this.drills=this.widget.drills)}initializeTile(){this.tile&&(this.widget={},this.us.mergeRecursive(this.widget,this.tile))}initializeActionAndPvItems(){this.widget.acItems=[],this.widget.pvItems=[]}initializeDrillthrough(){this.widget.controls&&this.widget.controls.length&&(this.canDoDrillthrough=!0)}initializeDependants(){this.hasDependents()&&(this.subRefreshDependants=this.bs.subscribe("widget:"+this.widget.name+":refreshDependents",e=>this.onRefreshDependents()))}initializeDataRequest(){this.widget.initialData||(this.widget?.properties?.chartToggle==="table"&&this.widget.type!=="pivot"&&!this.widget.oldType?this.requestData():this.customDataSource||this.requestData())}doKPIDrillthrough(e){if(!this._kpiData)return;let s=this._kpiData.Result.Series.find(a=>a.seriesName===e);if(!s)return;let r=this._kpiData.Result.Properties.map(a=>({name:a.name,value:s[a.name],path:""})),n=this._kpiData.Result.Properties.map(a=>({name:a.name,value:s.seriesName,path:""})),l=this._requestKPIData([...r,...n]);l&&l.then(a=>{this._kpiData&&(this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.widget.initialData=this.convertKPIToMDXData(this._kpiData,!0),this.changeWidgetType("pivot"),setTimeout(()=>{delete this.widget.initialData}))})}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=bt({type:t,selectors:[["ng-component"]],hostVars:2,hostBindings:function(s,r){s&2&&Ze("inline",r.inline)},inputs:{model:"model",parent:"parent",widget:"widget"},standalone:!0,features:[vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var Mp=["images"];function Ep(o,t){if(o&1){let i=Ih();Dt(0,"div",2),kh("click",function(){let s=Eh(i).$implicit,r=Bt();return Ph(r.onClick(s))}),Th(),Dt(1,"svg",3,0)(3,"text"),re(4),Dt(5,"tspan",4),re(6),It(),Dt(7,"tspan",5),re(8),It()()(),Ah(),Dt(9,"label"),re(10),It()()}if(o&2){let i=t.$implicit,e=Bt();Ze("clickable",e.canDrillthrough),Lt(3),Oe("fill",i.valueColor),Lt(),ws("",i.value," "),Lt(2),Fe(i.deltaNeg),Lt(2),Fe(i.delta),Lt(2),Fe(i.label)}}var Zh=(()=>{let t=class t extends ue{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 s=0;s{let s=e.nativeElement,n=s.firstChild.getBBox();s.setAttribute("viewBox",[n.x,n.y,n.width,n.height].join(" "))})}retrieveData(e){if(this.textData=[],this.hideLoading(),e)for(let s=0;su){let b=this.widget.properties?.highRangeColor;p.highStyle&&(b=this.getCss(p.highStyle).fill),b&&(c=b)}}this.textData.push({label:a,value:n,color:l,valueColor:c,dimension:e.Cols[0].tuples[s].dimension})}}this.cd.detectChanges(),setTimeout(()=>this.adjustSize())}onClick(e){this.doDrillthrough("",e.label)}getCss(e){let s={};return e.split(";").filter(r=>r).forEach(r=>{let n=r.split(":");s[n[0]]=n[1]}),s}getNumber(e){return typeof e=="string"?parseFloat(e.replace(/,/g,"").replace(/ /g,"")):e}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-wtext"]],viewQuery:function(s,r){if(s&1&&wi(Mp,5),s&2){let n;Si(n=Mi())&&(r.images=n)}},hostVars:2,hostBindings:function(s,r){s&2&&Oe("flex-direction",r.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(s,r){s&1&&he(0,Ep,11,8,"div",1,le),s&2&&ce(r.textData)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-display:row;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial}.inline[_nghost-%COMP%] label[_ngcontent-%COMP%]{background-color:transparent;background-image:none}.item[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;min-height:0}label[_ngcontent-%COMP%]{display:block;flex-shrink:0;height:16px;background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8);width:100%;text-align:center;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item2[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 100%;justify-content:center;align-items:center;margin:10px;background-color:#fafafa;padding:10px;min-height:0;min-width:0}.item2.clickable[_ngcontent-%COMP%]{cursor:pointer}.item2[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{height:auto;background:transparent;color:gray;font-size:19px}.item2[_ngcontent-%COMP%] > svg[_ngcontent-%COMP%]{height:50%;width:100%;display:block}.text-widget[_ngcontent-%COMP%]{height:100%}"]});let o=t;return o})();var wo=(()=>{let t=class t extends ue{constructor(){super(),this.widget={},this.isSpinner=!1,this._oldMdx=""}ngAfterViewInit(){this.createPivotTable()}ngOnDestroy(){super.ngOnDestroy()}createPivotTable(){let e=this,s={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:r=>this.onDrillDown(r),rowClick:(r,n,l)=>e.drillFilterWidgets?.length?(e.doDrillFilter(l.source.path,e.drills),e.parent?.header?.cd.detectChanges(),!1):!this.widget.kpitype,back:r=>this.onDrillDown(r),cellDrillThrough:(...r)=>this.onDrillThrough(...r),responseHandler:r=>{r.status!==200&&this.showError(r.xhr.responseText)}},loadingMessageHTML:'',columnResizeAnimation:!0,locale:this.i18n.current,hideButtons:!0,formatNumbers:"#,###.##",controls:this.widget.controls};if(delete this.widget.pivotMdx,this.lpt=new LightPivotTable(s),this.widget.edKey&&this.lpt?.pivotView.displayMessage(""),this.lpt&&this.widget.initialData){let r=this.widget.initialData;setTimeout(()=>{this.lpt?.dataController.setData(this.lpt.dataSource._convert(r))})}}doDrillUp(){this.widget.isDrillthrough&&this.restoreWidgetType?(this.widget.isDrillthrough=!1,this.restoreWidgetType(),this.widget.kpitype&&this.requestData()):this.lpt?.CONTROLS.back(),this.widget.backButton=this.lpt?.DRILL_LEVEL!==0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}onDrillThrough(...e){if(!this.canDoDrillthrough)return!1;if(this.widget.kpitype){let{cellData:s,x:r,y:n}=e[0],{info:l,dimensions:a}=e[1];if(!a[0])return;let h=a[0][r-l.leftHeaderColumnsNumber]?.dimension||"",c=a[0][0]?.dimension||"",f=a[1][n-l.topHeaderRowsNumber]?.title||"";if(!h||!c)return;let u=[{name:h,value:s.value,path:""},{name:c,value:f,path:""}];return this._requestKPIData(u)?.then(()=>{this.widget.isDrillthrough=!0,this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges()}),!1}return this._oldMdx=this.lpt?.getActualMDX()||"",this.widget.backButton=!0,this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),!0}onDrillDown(e){e.path?(this.doDrillFilter(e.path,this.drills),this.drills.push({path:e.path,name:"",category:""}),this.widget.backButton=!0):(this.drills.pop(),this.doDrillFilter(e.path,this.drills)),this.parent.cd.detectChanges(),this.parent.header?.cd.detectChanges(),this.broadcastDependents(e.mdx)}requestData(){let e=this.customDataSource||this.widget.dataSource;if(this.widget.kpitype){this._requestKPIData();return}if(this.lpt){let s=this.getMDX();if(this.lpt.isListing()&&(delete this.lpt.CONFIG.initialData,s.toLowerCase().substr(0,12)!=="drillthrough"&&(s=this.getDrillthroughMdx(s)||"")),s==="")return;this.drillFilter&&(s=s+" %FILTER "+this.drillFilter),this.broadcastDependents(),this.clearError(),this.lpt.changeBasicMDX(s)}}onResize(){this.lpt&&setTimeout(()=>this.lpt?.updateSizes(),100)}print(){}};t.\u0275fac=function(s){return new(s||t)},t.\u0275cmp=bt({type:t,selectors:[["dsw-pivot"]],inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},styles:["[_nghost-%COMP%]{height:100%}"]});let o=t;return o})();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(o,t,i){let e,s;i=i||qe;let r=0,n=o.length,l=!1;for(;r>1),s=+i(o[e],t),s<0?r=e+1:(n=e,l=!s);return l?r:~r}function qe(o,t){return o>t?1:o0?s-1:s}return e-1}if(i>0){for(let s=1;s0||i&&n===0)})}function Ei(){return!0}function Pi(){return!1}function $e(){}function Jh(o){let t=!1,i,e,s;return function(){let r=Array.prototype.slice.call(arguments);return(!t||this!==s||!pe(r,e))&&(t=!0,s=this,e=r,i=o.apply(this,arguments)),i}}function ai(o){for(let t in o)delete o[t]}function Je(o){let t;for(t in o)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,i){if(!t||!i)return;let e=this.listeners_||(this.listeners_={}),s=e[t]||(e[t]=[]);s.includes(i)||s.push(i)}dispatchEvent(t){let i=typeof t=="string",e=i?t:t.type,s=this.listeners_&&this.listeners_[e];if(!s)return;let r=i?new te(t):t;r.target||(r.target=this.eventTarget_||this);let n=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});e in n||(n[e]=0,l[e]=0),++n[e];let a;for(let h=0,c=s.length;h0:!1}removeEventListener(t,i){let e=this.listeners_&&this.listeners_[t];if(e){let s=e.indexOf(i);s!==-1&&(this.pendingRemovals_&&t in this.pendingRemovals_?(e[s]=$e,++this.pendingRemovals_[t]):(e.splice(s,1),e.length===0&&delete this.listeners_[t]))}}},Gi=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(o,t,i,e,s){if(e&&e!==o&&(i=i.bind(e)),s){let n=i;i=function(){o.removeEventListener(t,i),n.apply(this,arguments)}}let r={target:o,type:t,listener:i};return o.addEventListener(t,i),r}function Ts(o,t,i,e){return wt(o,t,i,e,!0)}function Tt(o){o&&o.target&&(o.target.removeEventListener(o.type,o.listener),ai(o))}var As=class extends Gi{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,i){if(Array.isArray(t)){let e=t.length,s=new Array(e);for(let r=0;r0;)this.pop()}extend(t){for(let i=0,e=t.length;ithis.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i),this.array_.splice(t,0,i),this.updateLength_(),this.dispatchEvent(new Ds(ee.ADD,i,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);let i=this.getLength();return this.insertAt(i,t),this.getLength()}remove(t){let i=this.array_;for(let e=0,s=i.length;e=this.getLength())return;let i=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new Ds(ee.REMOVE,i,t)),i}setAt(t,i){let e=this.getLength();if(t>=e){this.insertAt(t,i);return}if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(i,t);let s=this.array_[t];this.array_[t]=i,this.dispatchEvent(new Ds(ee.REMOVE,s,t)),this.dispatchEvent(new Ds(ee.ADD,i,t))}updateLength_(){this.set(Qh.LENGTH,this.array_.length)}assertUnique_(t,i){for(let e=0,s=this.array_.length;es&&(a=a|Kt.RIGHT),lr&&(a=a|Kt.ABOVE),a===Kt.UNKNOWN&&(a=Kt.INTERSECTING),a}function Ut(){return[1/0,1/0,-1/0,-1/0]}function ze(o,t,i,e,s){return s?(s[0]=o,s[1]=t,s[2]=i,s[3]=e,s):[o,t,i,e]}function Ai(o){return ze(1/0,1/0,-1/0,-1/0,o)}function oc(o,t){let i=o[0],e=o[1];return ze(i,e,i,e,t)}function an(o,t,i,e,s){let r=Ai(s);return Io(r,o,t,i,e)}function Di(o,t){return o[0]==t[0]&&o[2]==t[2]&&o[1]==t[1]&&o[3]==t[3]}function ln(o,t){return t[0]o[2]&&(o[2]=t[2]),t[1]o[3]&&(o[3]=t[3]),o}function os(o,t){t[0]o[2]&&(o[2]=t[0]),t[1]o[3]&&(o[3]=t[1])}function Io(o,t,i,e,s){for(;it[0]?e[0]=o[0]:e[0]=t[0],o[1]>t[1]?e[1]=o[1]:e[1]=t[1],o[2]=t[0]&&o[1]<=t[3]&&o[3]>=t[1]}function Yi(o){return o[2]=n&&v<=a),!e&&r&Kt.RIGHT&&!(s&Kt.RIGHT)&&(x=p-(u-a)*b,e=x>=l&&x<=h),!e&&r&Kt.BELOW&&!(s&Kt.BELOW)&&(v=u-(p-l)/b,e=v>=n&&v<=a),!e&&r&Kt.LEFT&&!(s&Kt.LEFT)&&(x=p-(u-n)*b,e=x>=l&&x<=h)}return e}function cc(o,t,i,e){if(Yi(o))return Ai(i);let s=[];if(e>1){let l=o[2]-o[0],a=o[3]-o[1];for(let h=0;h=i[2])){let s=At(i),n=Math.floor((e[0]-i[0])/s)*s;o[0]-=n,o[2]-=n}return o}function dc(o,t){if(t.canWrapX()){let i=t.getExtent();if(!isFinite(o[0])||!isFinite(o[2]))return[[i[0],o[1],i[2],o[3]]];ko(o,t);let e=At(i);if(At(o)>e)return[[i[0],o[1],i[2],o[3]]];if(o[0]i[2])return[[o[0],o[1],i[2],o[3]],[i[0],o[1],o[2]-e,o[3]]]}return[o]}function Rt(o,t,i){return Math.min(Math.max(o,t),i)}function uc(o,t,i,e,s,r){let n=s-i,l=r-e;if(n!==0||l!==0){let a=((o-i)*n+(t-e)*l)/(n*n+l*l);a>1?(i=s,e=r):a>0&&(i+=n*a,e+=l*a)}return Qe(o,t,i,e)}function Qe(o,t,i,e){let s=i-o,r=e-t;return s*s+r*r}function pc(o){let t=o.length;for(let e=0;er&&(r=a,s=l)}if(r===0)return null;let n=o[s];o[s]=o[e],o[e]=n;for(let l=e+1;l=0;e--){i[e]=o[e][t]/o[e][e];for(let s=e-1;s>=0;s--)o[s][t]-=o[s][e]*i[e]}return i}function zs(o){return o*Math.PI/180}function Li(o,t){let i=o%t;return i*t<0?i+t:i}function oe(o,t,i){return o+i*(t-o)}function dn(o,t){let i=Math.pow(10,t);return Math.round(o*i)/i}function lr(o,t){return Math.floor(dn(o,t))}function hr(o,t){return Math.ceil(dn(o,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(o){return typeof o=="string"?o:Ro(o)}function zp(o){let t=document.createElement("div");if(t.style.color=o,t.style.color!==""){document.body.appendChild(t);let i=getComputedStyle(t).color;return document.body.removeChild(t),i}return""}var Np=function(){let t={},i=0;return function(e){let s;if(t.hasOwnProperty(e))s=t[e];else{if(i>=1024){let r=0;for(let n in t)r++&3||(delete t[n],--i)}s=jp(e),t[e]=s,++i}return s}}();function as(o){return Array.isArray(o)?o:Np(o)}function jp(o){let t,i,e,s,r;if(Fp.exec(o)&&(o=zp(o)),Op.exec(o)){let n=o.length-1,l;n<=4?l=1:l=2;let a=n===4||n===8;t=parseInt(o.substr(1+0*l,l),16),i=parseInt(o.substr(1+1*l,l),16),e=parseInt(o.substr(1+2*l,l),16),a?s=parseInt(o.substr(1+3*l,l),16):s=255,l==1&&(t=(t<<4)+t,i=(i<<4)+i,e=(e<<4)+e,a&&(s=(s<<4)+s)),r=[t,i,e,s/255]}else o.startsWith("rgba(")?(r=o.slice(5,-1).split(",").map(Number),fc(r)):o.startsWith("rgb(")?(r=o.slice(4,-1).split(",").map(Number),r.push(1),fc(r)):gt(!1,14);return r}function fc(o){return o[0]=Rt(o[0]+.5|0,0,255),o[1]=Rt(o[1]+.5|0,0,255),o[2]=Rt(o[2]+.5|0,0,255),o[3]=Rt(o[3],0,1),o}function Ro(o){let t=o[0];t!=(t|0)&&(t=t+.5|0);let i=o[1];i!=(i|0)&&(i=i+.5|0);let e=o[2];e!=(e|0)&&(e=e+.5|0);let s=o[3]===void 0?1:Math.round(o[3]*100)/100;return"rgba("+t+","+i+","+e+","+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 i in this.cache_){let e=this.cache_[i];!(t++&3)&&!e.hasListener()&&(delete this.cache_[i],--this.cacheSize_)}}}get(t,i,e){let s=gc(t,i,e);return s in this.cache_?this.cache_[s]:null}set(t,i,e,s){let r=gc(t,i,e);this.cache_[r]=s,++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}};function gc(o,t,i){let e=i?un(i):"null";return t+":"+o+":"+e}var Ns=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 i=Object.assign({},t);typeof t.properties=="object"&&(delete i.properties,Object.assign(i,t.properties)),i[kt.OPACITY]=t.opacity!==void 0?t.opacity:1,gt(typeof i[kt.OPACITY]=="number",64),i[kt.VISIBLE]=t.visible!==void 0?t.visible:!0,i[kt.Z_INDEX]=t.zIndex,i[kt.MAX_RESOLUTION]=t.maxResolution!==void 0?t.maxResolution:1/0,i[kt.MIN_RESOLUTION]=t.minResolution!==void 0?t.minResolution:0,i[kt.MIN_ZOOM]=t.minZoom!==void 0?t.minZoom:-1/0,i[kt.MAX_ZOOM]=t.maxZoom!==void 0?t.maxZoom:1/0,this.className_=i.className!==void 0?i.className:"ol-layer",delete i.className,this.setProperties(i),this.state_=null}getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){let i=this.state_||{layer:this,managed:t===void 0?!0:t},e=this.getZIndex();return i.opacity=Rt(Math.round(this.getOpacity()*100)/100,0,1),i.visible=this.getVisible(),i.extent=this.getExtent(),i.zIndex=e===void 0&&!i.managed?1/0:e,i.maxResolution=this.getMaxResolution(),i.minResolution=Math.max(this.getMinResolution(),0),i.minZoom=this.getMinZoom(),i.maxZoom=this.getMaxZoom(),this.state_=i,i}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 be={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,js=Math.PI*cr,Bp=[-js,-js,js,js],Gp=[-180,-85,180,85],gn=cr*Math.log(Math.tan(Math.PI/2)),Ui=class extends fn{constructor(t){super({code:t,units:"m",extent:Bp,global:!0,worldExtent:Gp,getPointResolution:function(i,e){return i/Math.cosh(e[1]/cr)}})}},No=[new Ui("EPSG:3857"),new Ui("EPSG:102100"),new Ui("EPSG:102113"),new Ui("EPSG:900913"),new Ui("http://www.opengis.net/def/crs/EPSG/0/3857"),new Ui("http://www.opengis.net/gml/srs/epsg.xml#3857")];function mc(o,t,i){let e=o.length;i=i>1?i:2,t===void 0&&(i>2?t=o.slice():t=new Array(e));for(let s=0;sgn?r=gn:r<-gn&&(r=-gn),t[s+1]=r}return t}function xc(o,t,i){let e=o.length;i=i>1?i:2,t===void 0&&(i>2?t=o.slice():t=new Array(e));for(let s=0;s=0;--e)if(o[e]!=t[e]){i=!1;break}return i}function Gs(o,t){let i=Math.cos(t),e=Math.sin(t),s=o[0]*i-o[1]*e,r=o[1]*i+o[0]*e;return o[0]=s,o[1]=r,o}function wc(o,t){return o[0]*=t,o[1]*=t,o}function mn(o,t){if(t.canWrapX()){let i=At(t.getExtent()),e=Sc(o,t,i);e&&(o[0]-=e*i)}return o}function Sc(o,t,i){let e=t.getExtent(),s=0;return t.canWrapX()&&(o[0]e[2])&&(i=i||At(e),s=Math.floor((o[0]-e[0])/i)),s}var Vp=63710088e-1;function Go(o,t,i){i=i||Vp;let e=zs(o[1]),s=zs(t[1]),r=(s-e)/2,n=zs(t[0]-o[0])/2,l=Math.sin(r)*Math.sin(r)+Math.sin(n)*Math.sin(n)*Math.cos(e)*Math.cos(s);return 2*i*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}var Mc={info:1,warn:2,error:3,none:4},Yp=Mc.info;function xn(...o){Yp>Mc.warn||console.warn(...o)}var Xo=!0;function Pc(o){Xo=!(o===void 0?!0:o)}function Wo(o,t){if(t!==void 0){for(let i=0,e=o.length;i=-180&&o[0]<=180&&o[1]>=-90&&o[1]<=90&&(Xo=!1,xn("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),o)}function Xs(o,t){return ei?Yo(o,t,ei):o}function si(o,t){return ei?Yo(o,ei,t):o}function Ac(o,t){if(!ei)return o;let i=zt(t).getUnits(),e=ei.getUnits();return i&&e?o*ti[i]/ti[e]:o}function Kp(){Ec(No),Ec(jo),Zp(jo,No,mc,xc)}Kp();function Uo(o,t,i){return function(e,s,r,n,l){if(!e)return;if(!s&&!t)return e;let a=t?0:r[0]*s,h=t?0:r[1]*s,c=l?l[0]:0,f=l?l[1]:0,u=o[0]+a/2+c,p=o[2]-a/2+c,b=o[1]+h/2+f,v=o[3]-h/2+f;u>p&&(u=(p+u)/2,p=u),b>v&&(b=(v+b)/2,v=b);let x=Rt(e[0],u,p),m=Rt(e[1],b,v);if(n&&i&&s){let E=30*s;x+=-E*Math.log(1+Math.max(0,u-e[0])/E)+E*Math.log(1+Math.max(0,e[0]-p)/E),m+=-E*Math.log(1+Math.max(0,b-e[1])/E)+E*Math.log(1+Math.max(0,e[1]-v)/E)}return[x,m]}}function Dc(o){return o}function Ho(o,t,i,e){let s=At(t)/i[0],r=ge(t)/i[1];return e?Math.min(o,Math.max(s,r)):Math.min(o,Math.min(s,r))}function Zo(o,t,i){let e=Math.min(o,t),s=50;return e*=Math.log(1+s*Math.max(0,o/t-1))/s+1,i&&(e=Math.max(e,i),e/=Math.log(1+s*Math.max(0,i/o-1))/s+1),Rt(e,i/2,t*2)}function Lc(o,t,i,e){return t=t!==void 0?t:!0,function(s,r,n,l){if(s!==void 0){let a=o[0],h=o[o.length-1],c=i?Ho(a,i,n,e):a;if(l)return t?Zo(s,c,h):Rt(s,h,c);let f=Math.min(c,s),u=Math.floor(Ps(o,f,r));return o[u]>c&&u1)f=i;else if(u>0){for(let p=0;ps&&(s=h),r=l,n=a}return s}function gr(o,t,i,e,s){for(let r=0,n=i.length;r0;){let f=h.pop(),u=h.pop(),p=0,b=o[u],v=o[u+1],x=o[f],m=o[f+1];for(let E=u+e;Ep&&(c=E,p=w)}p>s&&(a[(c-t)/e]=1,u+e0&&v>p)&&(b<0&&x0&&x>b)){h=f,c=u;continue}r[n++]=h,r[n++]=c,l=h,a=c,h=f,c=u}return r[n++]=h,r[n++]=c,n}function ta(o,t,i,e,s,r,n,l){for(let a=0,h=i.length;ar&&(h-l)*(r-a)-(s-l)*(c-a)>0&&n++:c<=r&&(h-l)*(r-a)-(s-l)*(c-a)<0&&n--,l=h,a=c}return n!==0}function Cr(o,t,i,e,s,r){if(i.length===0||!qi(o,t,i[0],e,s,r))return!1;for(let n=1,l=i.length;nm&&(h=(c+f)/2,Cr(o,t,i,e,h,b)&&(x=h,m=E)),c=f}return isNaN(x)&&(x=s[r]),n?(n.push(x,b,m),n):[x,b,m]}function Jc(o,t,i,e,s){let r=[];for(let n=0,l=i.length;n=s[0]&&r[2]<=s[2]||r[1]>=s[1]&&r[3]<=s[3]?!0:_n(o,t,i,e,function(n,l){return hc(s,n,l)}):!1}function Qc(o,t,i,e,s){for(let r=0,n=i.length;r0}function ha(o,t,i,e,s){s=s!==void 0?s:!1;for(let r=0,n=i.length;r1&&typeof arguments[i-1]=="function"&&(e=arguments[i-1],--i);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 i=0,e=this.animations_.length;i=0;--e){let s=this.animations_[e],r=!0;for(let n=0,l=s.length;n0?h/a.duration:1;c>=1?(a.complete=!0,c=1):r=!1;let f=a.easing(c);if(a.sourceCenter){let u=a.sourceCenter[0],p=a.sourceCenter[1],b=a.targetCenter[0],v=a.targetCenter[1];this.nextCenter_=a.targetCenter;let x=u+f*(b-u),m=p+f*(v-p);this.targetCenter_=[x,m]}if(a.sourceResolution&&a.targetResolution){let u=f===1?a.targetResolution:a.sourceResolution+f*(a.targetResolution-a.sourceResolution);if(a.anchor){let p=this.getViewportSize_(this.getRotation()),b=this.constraints_.resolution(u,0,p,!0);this.targetCenter_=this.calculateCenterZoom(b,a.anchor)}this.nextResolution_=a.targetResolution,this.targetResolution_=u,this.applyTargetState_(!0)}if(a.sourceRotation!==void 0&&a.targetRotation!==void 0){let u=f===1?Li(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+f*(a.targetRotation-a.sourceRotation);if(a.anchor){let p=this.constraints_.rotation(u,!0);this.targetCenter_=this.calculateCenterRotate(p,a.anchor)}this.nextRotation_=a.targetRotation,this.targetRotation_=u}if(this.applyTargetState_(!0),i=!0,!a.complete)break}if(r){this.animations_[e]=null,this.setHint(qt.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;let n=s[0].callback;n&&Mn(n,!0)}}this.animations_=this.animations_.filter(Boolean),i&&this.updateAnimationKey_===void 0&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,i){let e,s=this.getCenterInternal();return s!==void 0&&(e=[s[0]-i[0],s[1]-i[1]],Gs(e,t-this.getRotation()),_c(e,i)),e}calculateCenterZoom(t,i){let e,s=this.getCenterInternal(),r=this.getResolution();if(s!==void 0&&r!==void 0){let n=i[0]-t*(i[0]-s[0])/r,l=i[1]-t*(i[1]-s[1])/r;e=[n,l]}return e}getViewportSize_(t){let i=this.viewportSize_;if(t){let e=i[0],s=i[1];return[Math.abs(e*Math.cos(t))+Math.abs(s*Math.sin(t)),Math.abs(e*Math.sin(t))+Math.abs(s*Math.cos(t))]}return i}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 i=this.calculateExtentInternal(t);return Xs(i,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();let i=this.getCenterInternal();gt(i,1);let e=this.getResolution();gt(e!==void 0,2);let s=this.getRotation();return gt(s!==void 0,3),ar(i,e,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,i){return this.getResolutionForExtentInternal(si(t,this.getProjection()),i)}getResolutionForExtentInternal(t,i){i=i||this.getViewportSizeMinusPadding_();let e=At(t)/i[0],s=ge(t)/i[1];return Math.max(e,s)}getResolutionForValueFunction(t){t=t||2;let i=this.getConstrainedResolution(this.maxResolution_),e=this.minResolution_,s=Math.log(i/e)/Math.log(t);return function(r){return i/Math.pow(t,r*s)}}getRotation(){return this.get(We.ROTATION)}getValueForResolutionFunction(t){let i=Math.log(t||2),e=this.getConstrainedResolution(this.maxResolution_),s=this.minResolution_,r=Math.log(e/s)/i;return function(n){return Math.log(e/n)/i/r}}getViewportSizeMinusPadding_(t){let i=this.getViewportSize_(t),e=this.padding_;return e&&(i=[i[0]-e[1]-e[3],i[1]-e[0]-e[2]]),i}getState(){let t=this.getProjection(),i=this.getResolution(),e=this.getRotation(),s=this.getCenterInternal(),r=this.padding_;if(r){let n=this.getViewportSizeMinusPadding_();s=pa(s,this.getViewportSize_(),[n[0]/2+r[3],n[1]/2+r[0]],i,e)}return{center:s.slice(0),projection:t!==void 0?t:null,resolution:i,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:e,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t,i=this.getResolution();return i!==void 0&&(t=this.getZoomForResolution(i)),t}getZoomForResolution(t){let i=this.minZoom_||0,e,s;if(this.resolutions_){let r=Ps(this.resolutions_,t,1);i=r,e=this.resolutions_[r],r==this.resolutions_.length-1?s=2:s=e/this.resolutions_[r+1]}else e=this.maxResolution_,s=this.zoomFactor_;return i+Math.log(e/t)/Math.log(s)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;let i=Rt(Math.floor(t),0,this.resolutions_.length-2),e=this.resolutions_[i]/this.resolutions_[i+1];return this.resolutions_[i]/Math.pow(e,Rt(t-i,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}fit(t,i){let e;if(gt(Array.isArray(t)||typeof t.getSimplifiedGeometry=="function",24),Array.isArray(t)){gt(!Yi(t),25);let s=si(t,this.getProjection());e=da(s)}else if(t.getType()==="Circle"){let s=si(t.getExtent(),this.getProjection());e=da(s),e.rotate(this.getRotation(),Ge(s))}else{let s=bn();s?e=t.clone().transform(s,this.getProjection()):e=t}this.fitInternal(e,i)}rotatedExtentForGeometry(t){let i=this.getRotation(),e=Math.cos(i),s=Math.sin(-i),r=t.getFlatCoordinates(),n=t.getStride(),l=1/0,a=1/0,h=-1/0,c=-1/0;for(let f=0,u=r.length;f{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 i,e=this.getMapInternal();!t&&e&&(t=e.getView()),t instanceof ve?i={viewState:t.getState(),extent:t.calculateExtent()}:i=t,!i.layerStatesArray&&e&&(i.layerStatesArray=e.getLayerGroup().getLayerStatesArray());let s;i.layerStatesArray?s=i.layerStatesArray.find(n=>n.layer===this):s=this.getLayerState();let r=this.getExtent();return wr(s,i.viewState)&&(!r||Yt(r,i.extent))}getAttributions(t){if(!this.isVisible(t))return[];let i,e=this.getSource();if(e&&(i=e.getAttributions()),!i)return[];let s=t instanceof ve?t.getViewStateAndExtent():t,r=i(s);return Array.isArray(r)||(r=[r]),r}render(t,i){let e=this.getRenderer();return e.prepareFrame(t)?(this.rendered=!0,e.renderFrame(t,i)):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,be.PRECOMPOSE,function(i){let s=i.frameState.layerStatesArray,r=this.getLayerState(!1);gt(!s.some(function(n){return n.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(o,t){if(!o.visible)return!1;let i=t.resolution;if(i=o.maxResolution)return!1;let e=t.zoom;return e>o.minZoom&&e<=o.maxZoom}var ds=ga;var ma=class extends Es{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,i){ft()}calculateMatrices2D(t){let i=t.viewState,e=t.coordinateToPixelTransform,s=t.pixelToCoordinateTransform;ye(e,t.size[0]/2,t.size[1]/2,1/i.resolution,-1/i.resolution,-i.rotation,-i.center[0],-i.center[1]),Is(s,e)}forEachFeatureAtCoordinate(t,i,e,s,r,n,l,a){let h,c=i.viewState;function f(S,w,R,O){return r.call(n,w,S?R:null,O)}let u=c.projection,p=mn(t.slice(),u),b=[[0,0]];if(u.canWrapX()&&s){let S=u.getExtent(),w=At(S);b.push([-w,0],[w,0])}let v=i.layerStatesArray,x=v.length,m=[],E=[];for(let S=0;S=0;--w){let R=v[w],O=R.layer;if(O.hasRenderer()&&wr(R,c)&&l.call(a,O)){let I=O.getRenderer(),_=O.getSource();if(I&&_){let A=_.getWrapX()?p:t,F=f.bind(null,R.managed);E[0]=A[0]+b[S][0],E[1]=A[1]+b[S][1],h=I.forEachFeatureAtCoordinate(E,i,e,F,m)}if(h)return h}}if(m.length===0)return;let L=1/m.length;return m.forEach((S,w)=>S.distanceSq+=w*L),m.sort((S,w)=>S.distanceSq-w.distanceSq),m.some(S=>h=S.callback(S.feature,S.layer,S.geometry)),h}hasFeatureAtCoordinate(t,i,e,s,r,n){return this.forEachFeatureAtCoordinate(t,i,e,s,Ei,this,r,n)!==void 0}getMap(){return this.map_}renderFrame(t){ft()}flushDeclutterItems(t){}scheduleExpireIconCache(t){Ns.canExpireCache()&&t.postRenderFunctions.push(sf)}};function sf(o,t){Ns.expire()}var nd=ma;var xa=class extends te{constructor(t,i,e,s){super(t),this.inversePixelTransform=i,this.frameState=e,this.context=s}},En=xa;var Sr="ol-hidden";var $i="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(o){let t=o.match(rf);if(!t)return null;let i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let e=0,s=od.length;eMath.max(s,Pn(o,r)),0);return i[t]=e,e}function dd(o,t){let i=[],e=[],s=[],r=0,n=0,l=0,a=0;for(let h=0,c=t.length;h<=c;h+=2){let f=t[h];if(f===` -`||h===c){r=Math.max(r,n),s.push(n),n=0,l+=a;continue}let u=t[h+1]||o.font,p=Pn(u,f);i.push(p),n+=p;let b=nf(u);e.push(b),a=Math.max(a,b)}return{width:r,height:l,widths:i,heights:e,lineWidths:s}}function ud(o,t,i,e,s,r,n,l,a,h,c){o.save(),i!==1&&(o.globalAlpha*=i),t&&o.setTransform.apply(o,t),e.contextInstructions?(o.translate(a,h),o.scale(c[0],c[1]),of(e,o)):c[0]<0||c[1]<0?(o.translate(a,h),o.scale(c[0],c[1]),o.drawImage(e,s,r,n,l,0,0,n,l)):o.drawImage(e,s,r,n,l,a,h,n*c[0],l*c[1]),o.restore()}function of(o,t){let i=o.contextInstructions;for(let e=0,s=i.length;e=0;--e)i[e].renderDeclutter(t);i.length=0}},pd=Sa;var ri=class extends te{constructor(t,i){super(t),this.layer=i}},Ma={LAYERS:"layers"},Ea=class o extends pn{constructor(t){t=t||{};let i=Object.assign({},t);delete i.layers;let e=t.layers;super(i),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ma.LAYERS,this.handleLayersChanged_),e?Array.isArray(e)?e=new ne(e.slice(),{unique:!0}):gt(typeof e.getArray=="function",43):e=new ne(void 0,{unique:!0}),this.setLayers(e)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Tt),this.layersListenerKeys_.length=0;let t=this.getLayers();this.layersListenerKeys_.push(wt(t,ee.ADD,this.handleLayersAdd_,this),wt(t,ee.REMOVE,this.handleLayersRemove_,this));for(let e in this.listenerKeys_)this.listenerKeys_[e].forEach(Tt);ai(this.listenerKeys_);let i=t.getArray();for(let e=0,s=i.length;e{this.clickTimeoutId_=void 0;let e=new ui(Nt.SINGLECLICK,this.map_,t);this.dispatchEvent(e)},250)}updateActivePointers_(t){let i=t,e=i.pointerId;if(i.type==Nt.POINTERUP||i.type==Nt.POINTERCANCEL){delete this.trackedTouches_[e];for(let s in this.trackedTouches_)if(this.trackedTouches_[s].target!==i.target){delete this.trackedTouches_[s];break}}else(i.type==Nt.POINTERDOWN||i.type==Nt.POINTERMOVE)&&(this.trackedTouches_[e]=i);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let i=new ui(Nt.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(i),this.emulateClicks_&&!i.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(Tt),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);let i=new ui(Nt.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(i),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){let e=this.map_.getOwnerDocument();this.dragListenerKeys_.push(wt(e,Nt.POINTERMOVE,this.handlePointerMove_,this),wt(e,Nt.POINTERUP,this.handlePointerUp_,this),wt(this.element_,Nt.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==e&&this.dragListenerKeys_.push(wt(this.element_.getRootNode(),Nt.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let i=new ui(Nt.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(i)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let i=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new ui(Nt.POINTERMOVE,this.map_,t,i))}handleTouchMove_(t){let i=this.originalPointerMoveEvent_;(!i||i.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Tt(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ut.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Tt(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Tt),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},fd=Aa;var pi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"};var ae={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var Tr=1/0,Da=class{constructor(t,i){this.priorityFunction_=t,this.keyFunction_=i,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,ai(this.queuedElements_)}dequeue(){let t=this.elements_,i=this.priorities_,e=t[0];t.length==1?(t.length=0,i.length=0):(t[0]=t.pop(),i[0]=i.pop(),this.siftUp_(0));let s=this.keyFunction_(e);return delete this.queuedElements_[s],e}enqueue(t){gt(!(this.keyFunction_(t)in this.queuedElements_),31);let i=this.priorityFunction_(t);return i!=Tr?(this.elements_.push(t),this.priorities_.push(i),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){let i=this.elements_,e=this.priorities_,s=i.length,r=i[t],n=e[t],l=t;for(;t>1;){let a=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){let l=this.getParentIndex_(i);if(s[l]>n)e[i]=e[l],s[i]=s[l],i=l;else break}e[i]=r,s[i]=n}reprioritize(){let t=this.priorityFunction_,i=this.elements_,e=this.priorities_,s=0,r=i.length,n,l,a;for(l=0;l0;)r=this.dequeue()[0],n=r.getKey(),s=r.getState(),s===pt.IDLE&&!(n in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[n]=!0,++this.tilesLoading_,++e,r.load())}},md=La;function xd(o,t,i,e,s){if(!o||!(i in o.wantedTiles))return Tr;if(!o.wantedTiles[i][t.getKey()])return Tr;let r=o.viewState.center,n=e[0]-r[0],l=e[1]-r[1];return 65536*Math.log(s)+Math.sqrt(n*n+l*l)/s}var Ia=class extends Zt{constructor(t){super();let i=t.element;i&&!t.target&&!i.style.pointerEvents&&(i.style.pointerEvents="auto"),this.element=i||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Mr(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Mr(this.element);for(let i=0,e=this.listenerKeys.length;is.getAttributions(t)))),e=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(e),i}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let i=this.collectSourceAttributions_(t),e=i.length>0;if(this.renderedVisible_!=e&&(this.element.style.display=e?"":"none",this.renderedVisible_=e),!pe(i,this.renderedAttributions_)){ad(this.ulElement_);for(let s=0,r=i.length;s0&&e%(2*Math.PI)!==0?i.animate({rotation:0,duration:this.duration_,easing:Ve}):i.setRotation(0))}render(t){let i=t.frameState;if(!i)return;let e=i.viewState.rotation;if(e!=this.rotation_){let s="rotate("+e+"rad)";if(this.autoHide_){let r=this.element.classList.contains(Sr);!r&&e===0?this.element.classList.add(Sr):r&&e!==0&&this.element.classList.remove(Sr)}this.label_.style.transform=s}this.rotation_=e}},bd=Ra;var Oa=class extends Us{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});let i=t.className!==void 0?t.className:"ol-zoom",e=t.delta!==void 0?t.delta:1,s=t.zoomInClassName!==void 0?t.zoomInClassName:i+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:i+"-out",n=t.zoomInLabel!==void 0?t.zoomInLabel:"+",l=t.zoomOutLabel!==void 0?t.zoomOutLabel:"\u2013",a=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=a,c.appendChild(typeof n=="string"?document.createTextNode(n):n),c.addEventListener(ut.CLICK,this.handleClick_.bind(this,e),!1);let f=document.createElement("button");f.className=r,f.setAttribute("type","button"),f.title=h,f.appendChild(typeof l=="string"?document.createTextNode(l):l),f.addEventListener(ut.CLICK,this.handleClick_.bind(this,-e),!1);let u=i+" "+$i+" "+Vs,p=this.element;p.className=u,p.appendChild(c),p.appendChild(f),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,i){i.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let e=this.getMap().getView();if(!e)return;let s=e.getZoom();if(s!==void 0){let r=e.getConstrainedZoom(s+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:r,duration:this.duration_,easing:Ve})):e.setZoom(r)}}},vd=Oa;function gs(o){o=o||{};let t=new ne;return(o.zoom!==void 0?o.zoom:!0)&&t.push(new vd(o.zoomOptions)),(o.rotate!==void 0?o.rotate:!0)&&t.push(new bd(o.rotateOptions)),(o.attribution!==void 0?o.attribution:!0)&&t.push(new yd(o.attributionOptions)),t}var Fa={ACTIVE:"active"};var za=class extends Zt{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Fa.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Fa.ACTIVE,t)}setMap(t){this.map_=t}};function Cd(o,t,i){let e=o.getCenterInternal();if(e){let s=[e[0]+t[0],e[1]+t[1]];o.animateInternal({duration:i!==void 0?i:250,easing:Fc,center:o.getConstrainedCenter(s)})}}function Hs(o,t,i,e){let s=o.getZoom();if(s===void 0)return;let r=o.getConstrainedZoom(s+t),n=o.getResolutionForZoom(r);o.getAnimating()&&o.cancelAnimations(),o.animate({resolution:n,anchor:i,duration:e!==void 0?e:250,easing:Ve})}var fi=za;var Na=class extends fi{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let i=!1;if(t.type==Nt.DBLCLICK){let e=t.originalEvent,s=t.map,r=t.coordinate,n=e.shiftKey?-this.delta_:this.delta_,l=s.getView();Hs(l,n,r,this.duration_),e.preventDefault(),i=!0}return!i}},_d=Na;var ja=class extends fi{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let i=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==Nt.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==Nt.POINTERUP){let e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==Nt.POINTERDOWN){let e=this.handleDownEvent(t);this.handlingDownUpSequence=e,i=this.stopDown(e)}else t.type==Nt.POINTERMOVE&&this.handleMoveEvent(t);return!i}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function Zs(o){let t=o.length,i=0,e=0;for(let s=0;s0&&this.condition_(t)){let e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},Td=Ba;var Ga=class extends gi{constructor(t){t=t||{},super({stopDown:Pi}),this.condition_=t.condition?t.condition:wd,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!kn(t))return;let i=t.map,e=i.getView();if(e.getConstraints().rotation===Ws)return;let s=i.getSize(),r=t.pixel,n=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){let l=n-this.lastAngle_;e.adjustRotationInternal(-l)}this.lastAngle_=n}handleUpEvent(t){return kn(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return kn(t)&&Dn(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}},Ad=Ga;var Xa=class extends Es{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){let t=this.startPixel_,i=this.endPixel_,e="px",s=this.element_.style;s.left=Math.min(t[0],i[0])+e,s.top=Math.min(t[1],i[1])+e,s.width=Math.abs(i[0]-t[0])+e,s.height=Math.abs(i[1]-t[1])+e}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let i=this.element_.style;i.left="inherit",i.top="inherit",i.width="inherit",i.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,i){this.startPixel_=t,this.endPixel_=i,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){let t=this.startPixel_,i=this.endPixel_,s=[t,[t[0],i[1]],i,[i[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new hi([s])}getGeometry(){return this.geometry_}},Dd=Xa;var Rn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},Dr=class extends te{constructor(t,i,e){super(t),this.coordinate=i,this.mapBrowserEvent=e}},Wa=class extends gi{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new Dd(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:Dn,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,i,e){let s=e[0]-i[0],r=e[1]-i[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Dr(Rn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);let i=this.boxEndCondition_(t,this.startPixel_,t.pixel);return i&&this.onBoxEnd(t),this.dispatchEvent(new Dr(i?Rn.BOXEND:Rn.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Dr(Rn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}},Ld=Wa;var Va=class extends Ld{constructor(t){t=t||{};let i=t.condition?t.condition:Ed;super({condition:i,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){let e=this.getMap().getView(),s=this.getGeometry();if(this.out_){let r=e.rotatedExtentForGeometry(s),n=e.getResolutionForExtentInternal(r),l=e.getResolution()/n;s=s.clone(),s.scale(l*l)}e.fitInternal(s,{duration:this.duration_,easing:Ve})}},Id=Va;var ts={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};var Ya=class extends fi{constructor(t){super(),t=t||{},this.defaultCondition_=function(i){return Ln(i)&&In(i)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let i=!1;if(t.type==ut.KEYDOWN){let e=t.originalEvent,s=e.key;if(this.condition_(t)&&(s==ts.DOWN||s==ts.LEFT||s==ts.RIGHT||s==ts.UP)){let n=t.map.getView(),l=n.getResolution()*this.pixelDelta_,a=0,h=0;s==ts.DOWN?h=-l:s==ts.LEFT?a=-l:s==ts.RIGHT?a=l:h=l;let c=[a,h];Gs(c,n.getRotation()),Cd(n,c,this.duration_),e.preventDefault(),i=!0}}return!i}},kd=Ya;var Ua=class extends fi{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(i){return!Md(i)&&In(i)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let i=!1;if(t.type==ut.KEYDOWN||t.type==ut.KEYPRESS){let e=t.originalEvent,s=e.key;if(this.condition_(t)&&(s==="+"||s==="-")){let r=t.map,n=s==="+"?this.delta_:-this.delta_,l=r.getView();Hs(l,n,void 0,this.duration_),e.preventDefault(),i=!0}}return!i}},Rd=Ua;var Ha=class{constructor(t,i,e){this.decay_=t,this.minVelocity_=i,this.delay_=e,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,i){this.points_.push(t,i,Date.now())}end(){if(this.points_.length<6)return!1;let t=Date.now()-this.delay_,i=this.points_.length-3;if(this.points_[i+2]0&&this.points_[e+2]>t;)e-=3;let s=this.points_[i+2]-this.points_[e+2];if(s<1e3/60)return!1;let r=this.points_[i]-this.points_[e],n=this.points_[i+1]-this.points_[e+1];return this.angle_=Math.atan2(n,r),this.initialVelocity_=Math.sqrt(r*r+n*n)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},Od=Ha;var Za=class extends fi{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;let i=t.condition?t.condition:Sd;this.condition_=t.onFocusOnly?Ar(An,i):i,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;let t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==ut.WHEEL)return!0;let e=t.map,s=t.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==ut.WHEEL&&(r=s.deltaY,tc&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=en),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;let n=Date.now();this.startTime_===void 0&&(this.startTime_=n),(!this.mode_||n-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");let l=e.getView();if(this.mode_==="trackpad"&&!(l.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(l.getAnimating()&&l.cancelAnimations(),l.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),l.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=n,!1;this.totalDelta_+=r;let a=Math.max(this.timeout_-(n-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),a),!1}handleWheelZoom_(t){let i=t.getView();i.getAnimating()&&i.cancelAnimations();let e=-Rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(i.getConstrainResolution()||this.constrainResolution_)&&(e=e?e>0?1:-1:0),Hs(i,e,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Fd=Za;var Ka=class extends gi{constructor(t){t=t||{};let i=t;i.stopDown||(i.stopDown=Pi),super(i),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let i=0,e=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-e.clientY,s.clientX-e.clientX);if(this.lastAngle_!==void 0){let a=r-this.lastAngle_;this.rotationDelta_+=a,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),i=a}this.lastAngle_=r;let n=t.map,l=n.getView();l.getConstraints().rotation!==Ws&&(this.anchor_=n.getCoordinateFromPixelInternal(n.getEventPixel(Zs(this.targetPointers))),this.rotating_&&(n.render(),l.adjustRotationInternal(i,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){let i=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}},zd=Ka;var qa=class extends gi{constructor(t){t=t||{};let i=t;i.stopDown||(i.stopDown=Pi),super(i),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let i=1,e=this.targetPointers[0],s=this.targetPointers[1],r=e.clientX-s.clientX,n=e.clientY-s.clientY,l=Math.sqrt(r*r+n*n);this.lastDistance_!==void 0&&(i=this.lastDistance_/l),this.lastDistance_=l;let a=t.map,h=a.getView();i!=1&&(this.lastScaleDelta_=i),this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel(Zs(this.targetPointers))),a.render(),h.adjustResolutionInternal(i,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let e=t.map.getView(),s=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let i=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||i.getView().beginInteraction(),!0}return!1}},Nd=qa;function jd(o){o=o||{};let t=new ne,i=new Od(-.005,.05,100);return(o.altShiftDragRotate!==void 0?o.altShiftDragRotate:!0)&&t.push(new Ad),(o.doubleClickZoom!==void 0?o.doubleClickZoom:!0)&&t.push(new _d({delta:o.zoomDelta,duration:o.zoomDuration})),(o.dragPan!==void 0?o.dragPan:!0)&&t.push(new Td({onFocusOnly:o.onFocusOnly,kinetic:i})),(o.pinchRotate!==void 0?o.pinchRotate:!0)&&t.push(new zd),(o.pinchZoom!==void 0?o.pinchZoom:!0)&&t.push(new Nd({duration:o.zoomDuration})),(o.keyboard!==void 0?o.keyboard:!0)&&(t.push(new kd),t.push(new Rd({delta:o.zoomDelta,duration:o.zoomDuration}))),(o.mouseWheelZoom!==void 0?o.mouseWheelZoom:!0)&&t.push(new Fd({onFocusOnly:o.onFocusOnly,duration:o.zoomDuration})),(o.shiftDragZoom!==void 0?o.shiftDragZoom:!0)&&t.push(new Id({duration:o.zoomDuration})),t}function $a(o){return o[0]>0&&o[1]>0}function Bd(o,t,i){return i===void 0&&(i=[0,0]),i[0]=o[0]*t+.5|0,i[1]=o[1]*t+.5|0,i}function ie(o,t){return Array.isArray(o)?o:(t===void 0?t=[o,o]:(t[0]=o,t[1]=o),t)}function Gd(o){if(o instanceof ds){o.setMapInternal(null);return}o instanceof Er&&o.getLayers().forEach(Gd)}function Xd(o,t){if(o instanceof ds){o.setMapInternal(t);return}if(o instanceof Er){let i=o.getLayers().getArray();for(let e=0,s=i.length;ethis.updateSize()),this.controls=i.controls||gs(),this.interactions=i.interactions||jd({onFocusOnly:!0}),this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new md(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(ae.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(ae.VIEW,this.handleViewChanged_),this.addChangeListener(ae.SIZE,this.handleSizeChanged_),this.addChangeListener(ae.TARGET,this.handleTargetChanged_),this.setProperties(i.values);let e=this;t.view&&!(t.view instanceof ve)&&t.view.then(function(s){e.setView(new ve(s))}),this.controls.addEventListener(ee.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(ee.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(ee.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(ee.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(ee.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(ee.REMOVE,s=>{let r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Xd(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let i=t.getId();i!==void 0&&(this.overlayIdIndex_[i.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,i,e){if(!this.frameState_||!this.renderer_)return;let s=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};let r=e.hitTolerance!==void 0?e.hitTolerance:0,n=e.layerFilter!==void 0?e.layerFilter:Ei,l=e.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,l,i,null,n,null)}getFeaturesAtPixel(t,i){let e=[];return this.forEachFeatureAtPixel(t,function(s){e.push(s)},i),e}getAllLayers(){let t=[];function i(e){e.forEach(function(s){s instanceof Er?i(s.getLayers()):t.push(s)})}return i(this.getLayers()),t}hasFeatureAtPixel(t,i){if(!this.frameState_||!this.renderer_)return!1;let e=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};let s=i.layerFilter!==void 0?i.layerFilter:Ei,r=i.hitTolerance!==void 0?i.hitTolerance:0,n=i.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(e,this.frameState_,r,n,s,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let e=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=e.width/s[0],n=e.height/s[1],l="changedTouches"in t?t.changedTouches[0]:t;return[(l.clientX-e.left)/r,(l.clientY-e.top)/n]}getTarget(){return this.get(ae.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return pr(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let i=this.frameState_;return i?Vt(i.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let i=this.overlayIdIndex_[t.toString()];return i!==void 0?i:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(ae.LAYERGROUP)}setLayers(t){let i=this.getLayerGroup();if(t instanceof ne){i.setLayers(t);return}let e=i.getLayers();e.clear(),e.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let i=0,e=t.length;i=0;r--){let n=s[r];if(n.getMap()!==this||!n.getActive()||!this.getTargetElement())continue;if(!n.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){let t=this.frameState_,i=this.tileQueue_;if(!i.isEmpty()){let s=this.maxTilesLoading_,r=s;if(t){let n=t.viewHints;if(n[qt.ANIMATING]||n[qt.INTERACTING]){let l=Date.now()-t.time>8;s=l?0:8,r=l?0:2}}i.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let i=this.getLayerGroup();i&&this.handleLayerRemove_(new ri("removelayer",i)),this.set(ae.LAYERGROUP,t)}setSize(t){this.set(ae.SIZE,t)}setTarget(t){this.set(ae.TARGET,t)}setView(t){if(!t||t instanceof ve){this.set(ae.VIEW,t);return}this.set(ae.VIEW,new ve);let i=this;t.then(function(e){i.setView(new ve(e))})}updateSize(){let t=this.getTargetElement(),i;if(t){let s=getComputedStyle(t),r=t.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),n=t.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(n)&&(i=[r,n],!$a(i)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&xn("No map visible because the map container's width or height are 0."))}let e=this.getSize();i&&(!e||!pe(i,e))&&(this.setSize(i),this.updateViewportSize_())}updateViewportSize_(){let t=this.getView();if(t){let i,e=getComputedStyle(this.viewport_);e.width&&e.height&&(i=[parseInt(e.width,10),parseInt(e.height,10)]),t.setViewportSize(i)}}};function lf(o){let t=null;o.keyboardEventTarget!==void 0&&(t=typeof o.keyboardEventTarget=="string"?document.getElementById(o.keyboardEventTarget):o.keyboardEventTarget);let i={},e=o.layers&&typeof o.layers.getLayers=="function"?o.layers:new Er({layers:o.layers});i[ae.LAYERGROUP]=e,i[ae.TARGET]=o.target,i[ae.VIEW]=o.view instanceof ve?o.view:new ve;let s;o.controls!==void 0&&(Array.isArray(o.controls)?s=new ne(o.controls.slice()):(gt(typeof o.controls.getArray=="function",47),s=o.controls));let r;o.interactions!==void 0&&(Array.isArray(o.interactions)?r=new ne(o.interactions.slice()):(gt(typeof o.interactions.getArray=="function",48),r=o.interactions));let n;return o.overlays!==void 0?Array.isArray(o.overlays)?n=new ne(o.overlays.slice()):(gt(typeof o.overlays.getArray=="function",49),n=o.overlays):n=new ne,{controls:s,interactions:r,keyboardEventTarget:t,overlays:n,values:i}}var On=Ja;var Qa=class{constructor(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let i=this.oldest_;for(;i;)t(i.value_,i.key_,this),i=i.newer}get(t,i){let e=this.entries_[t];return gt(e!==void 0,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_}remove(t){let i=this.entries_[t];return gt(i!==void 0,15),i===this.newest_?(this.newest_=i.older,this.newest_&&(this.newest_.newer=null)):i===this.oldest_?(this.oldest_=i.newer,this.oldest_&&(this.oldest_.older=null)):(i.newer.older=i.older,i.older.newer=i.newer),delete this.entries_[t],--this.count_,i.value_}getCount(){return this.count_}getKeys(){let t=new Array(this.count_),i=0,e;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){let t=new Array(this.count_),i=0,e;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){let t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,i){this.get(t),this.entries_[t].value_=i}set(t,i){gt(!(t in this.entries_),16);let e={key_:t,newer:null,older:this.newest_,value_:i};this.newest_?this.newest_.newer=e:this.oldest_=e,this.newest_=e,this.entries_[t]=e,++this.count_}setSize(t){this.highWaterMark=t}},Wd=Qa;var tl=class extends Gi{constructor(t,i,e){super(),e=e||{},this.tileCoord=t,this.state=i,this.interimTile=null,this.key="",this.transition_=e.transition===void 0?250:e.transition,this.transitionStarts_={},this.interpolate=!!e.interpolate}changed(){this.dispatchEvent(ut.CHANGE)}release(){this.state===pt.ERROR&&this.setState(pt.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==pt.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,i=this;do{if(t.getState()==pt.LOADED){t.interimTile=null;break}else t.getState()==pt.LOADING?i=t:t.getState()==pt.IDLE?i.interimTile=t.interimTile:i=t;t=i.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==pt.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){ft()}getAlpha(t,i){if(!this.transition_)return 1;let e=this.transitionStarts_[t];if(!e)e=i,this.transitionStarts_[t]=e;else if(e===-1)return 1;let s=i-e+1e3/60;return s>=this.transition_?1:$o(s/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}},Fn=tl;var Ot={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function zn(o,t,i){let e=o,s=!0,r=!1,n=!1,l=[Ts(e,ut.LOAD,function(){n=!0,r||t()})];return e.src&&ic?(r=!0,e.decode().then(function(){s&&t()}).catch(function(a){s&&(n?t():i())})):l.push(Ts(e,ut.ERROR,i)),function(){s=!1,l.forEach(Tt)}}var el=class extends Fn{constructor(t,i,e,s,r,n){super(t,i,n),this.crossOrigin_=s,this.src_=e,this.key=e,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=pt.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=pt.ERROR,this.unlistenImage_(),this.image_=hf(),this.changed()}handleImageLoad_(){let t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=pt.LOADED:this.state=pt.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==pt.ERROR&&(this.state=pt.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==pt.IDLE&&(this.state=pt.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=zn(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};function hf(){let o=Xt(1,1);return o.fillStyle="rgba(0,0,0,0)",o.fillRect(0,0,1,1),o.canvas}var Nn=el;var cf=10,Vd=.25,il=class{constructor(t,i,e,s,r,n){this.sourceProj_=t,this.targetProj_=i;let l={},a=hs(this.targetProj_,this.sourceProj_);this.transformInv_=function(E){let L=E[0]+"/"+E[1];return l[L]||(l[L]=a(E)),l[L]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&At(s)>=At(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?At(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?At(this.targetProj_.getExtent()):null;let h=Xe(e),c=Fs(e),f=Os(e),u=Rs(e),p=this.transformInv_(h),b=this.transformInv_(c),v=this.transformInv_(f),x=this.transformInv_(u),m=cf+(n?Math.max(0,Math.ceil(Math.log2(or(e)/(n*n*256*256)))):0);if(this.addQuad_(h,c,f,u,p,b,v,x,m),this.wrapsXInSource_){let E=1/0;this.triangles_.forEach(function(L,S,w){E=Math.min(E,L.source[0][0],L.source[1][0],L.source[2][0])}),this.triangles_.forEach(L=>{if(Math.max(L.source[0][0],L.source[1][0],L.source[2][0])-E>this.sourceWorldWidth_/2){let S=[[L.source[0][0],L.source[0][1]],[L.source[1][0],L.source[1][1]],[L.source[2][0],L.source[2][1]]];S[0][0]-E>this.sourceWorldWidth_/2&&(S[0][0]-=this.sourceWorldWidth_),S[1][0]-E>this.sourceWorldWidth_/2&&(S[1][0]-=this.sourceWorldWidth_),S[2][0]-E>this.sourceWorldWidth_/2&&(S[2][0]-=this.sourceWorldWidth_);let w=Math.min(S[0][0],S[1][0],S[2][0]);Math.max(S[0][0],S[1][0],S[2][0])-w.5&&f<1,b=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let x=Lo([t,i,e,s]);b=At(x)/this.targetWorldWidth_>Vd||b}!p&&this.sourceProj_.isGlobal()&&f&&(b=f>Vd||b)}if(!b&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Yt(c,this.maxSourceExtent_))return;let v=0;if(!b&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(n[0])||!isFinite(n[1])||!isFinite(l[0])||!isFinite(l[1])||!isFinite(a[0])||!isFinite(a[1]))){if(h>0)b=!0;else if(v=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(n[0])||!isFinite(n[1])?4:0)+(!isFinite(l[0])||!isFinite(l[1])?2:0)+(!isFinite(a[0])||!isFinite(a[1])?1:0),v!=1&&v!=2&&v!=4&&v!=8)return}if(h>0){if(!b){let x=[(t[0]+e[0])/2,(t[1]+e[1])/2],m=this.transformInv_(x),E;p?E=(Li(r[0],u)+Li(l[0],u))/2-Li(m[0],u):E=(r[0]+l[0])/2-m[0];let L=(r[1]+l[1])/2-m[1];b=E*E+L*L>this.errorThresholdSquared_}if(b){if(Math.abs(t[0]-e[0])<=Math.abs(t[1]-e[1])){let x=[(i[0]+e[0])/2,(i[1]+e[1])/2],m=this.transformInv_(x),E=[(s[0]+t[0])/2,(s[1]+t[1])/2],L=this.transformInv_(E);this.addQuad_(t,i,x,E,r,n,m,L,h-1),this.addQuad_(E,x,e,s,L,m,l,a,h-1)}else{let x=[(t[0]+i[0])/2,(t[1]+i[1])/2],m=this.transformInv_(x),E=[(e[0]+s[0])/2,(e[1]+s[1])/2],L=this.transformInv_(E);this.addQuad_(t,x,E,s,r,m,L,a,h-1),this.addQuad_(x,i,e,E,m,n,l,L,h-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}v&11||this.addTriangle_(t,e,s,r,l,a),v&14||this.addTriangle_(t,e,i,r,l,n),v&&(v&13||this.addTriangle_(i,s,t,n,a,r),v&7||this.addTriangle_(i,s,e,n,a,l))}calculateSourceExtent(){let t=Ut();return this.triangles_.forEach(function(i,e,s){let r=i.source;os(t,r[0]),os(t,r[1]),os(t,r[2])}),t}getTriangles(){return this.triangles_}},Yd=il;var sl,ms=[];function Ud(o,t,i,e,s){o.beginPath(),o.moveTo(0,0),o.lineTo(t,i),o.lineTo(e,s),o.closePath(),o.save(),o.clip(),o.fillRect(0,0,Math.max(t,e)+1,Math.max(i,s)),o.restore()}function rl(o,t){return Math.abs(o[t*4]-210)>2||Math.abs(o[t*4+3]-.75*255)>2}function df(){if(sl===void 0){let o=Xt(6,6,ms);o.globalCompositeOperation="lighter",o.fillStyle="rgba(210, 0, 0, 0.75)",Ud(o,4,5,4,0),Ud(o,4,5,0,5);let t=o.getImageData(0,0,3,3).data;sl=rl(t,0)||rl(t,4)||rl(t,8),us(o),ms.push(o.canvas)}return sl}function Hd(o,t,i,e){let s=Hi(i,t,o),r=Vo(t,e,i),n=t.getMetersPerUnit();n!==void 0&&(r*=n);let l=o.getMetersPerUnit();l!==void 0&&(r/=l);let a=o.getExtent();if(!a||Wi(a,s)){let h=Vo(o,r,s)/r;isFinite(h)&&h>0&&(r/=h)}return r}function Zd(o,t,i,e){let s=Ge(i),r=Hd(o,t,s,e);return(!isFinite(r)||r<=0)&&hn(i,function(n){return r=Hd(o,t,n,e),isFinite(r)&&r>0}),r}function Kd(o,t,i,e,s,r,n,l,a,h,c,f){let u=Xt(Math.round(i*o),Math.round(i*t),ms);if(f||(u.imageSmoothingEnabled=!1),a.length===0)return u.canvas;u.scale(i,i);function p(S){return Math.round(S*i)/i}u.globalCompositeOperation="lighter";let b=Ut();a.forEach(function(S,w,R){ln(b,S.extent)});let v=At(b),x=ge(b),m=Xt(Math.round(i*v/e),Math.round(i*x/e),ms);f||(m.imageSmoothingEnabled=!1);let E=i/e;a.forEach(function(S,w,R){let O=S.extent[0]-b[0],I=-(S.extent[3]-b[3]),_=At(S.extent),A=ge(S.extent);S.image.width>0&&S.image.height>0&&m.drawImage(S.image,h,h,S.image.width-2*h,S.image.height-2*h,O*E,I*E,_*E,A*E)});let L=Xe(n);return l.getTriangles().forEach(function(S,w,R){let O=S.source,I=S.target,_=O[0][0],A=O[0][1],F=O[1][0],P=O[1][1],D=O[2][0],C=O[2][1],d=p((I[0][0]-L[0])/r),g=p(-(I[0][1]-L[1])/r),y=p((I[1][0]-L[0])/r),M=p(-(I[1][1]-L[1])/r),k=p((I[2][0]-L[0])/r),T=p(-(I[2][1]-L[1])/r),z=_,N=A;_=0,A=0,F-=z,P-=N,D-=z,C-=N;let G=[[F,P,0,0,y-d],[D,C,0,0,k-d],[0,0,F,P,M-g],[0,0,D,C,T-g]],X=pc(G);if(X){if(u.save(),u.beginPath(),df()||!f){u.moveTo(y,M);let j=4,B=d-y,W=g-M;for(let V=0;V{i&&i.getState()==pt.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(i.tileCoord),image:i.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=pt.ERROR;else{let i=this.wrappedTileCoord_[0],e=this.targetTileGrid_.getTileSize(i),s=typeof e=="number"?e:e[0],r=typeof e=="number"?e:e[1],n=this.targetTileGrid_.getResolution(i),l=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Kd(s,r,this.pixelRatio_,l,this.sourceTileGrid_.getExtent(),n,a,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=pt.LOADED}this.changed()}load(){if(this.state==pt.IDLE){this.state=pt.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(i=>{let e=i.getState();if(e==pt.IDLE||e==pt.LOADING){t++;let s=wt(i,ut.CHANGE,function(r){let n=i.getState();(n==pt.LOADED||n==pt.ERROR||n==pt.EMPTY)&&(Tt(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(i,e,s){i.getState()==pt.IDLE&&i.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Tt),this.sourcesListenerKeys_=null}release(){this.canvas_&&(us(this.canvas_.getContext("2d")),ms.push(this.canvas_),this.canvas_=null),super.release()}},Lr=nl;function ol(o,t,i,e){return e!==void 0?(e[0]=o,e[1]=t,e[2]=i,e):[o,t,i]}function xs(o,t,i){return o+"/"+t+"/"+i}function jn(o){return xs(o[0],o[1],o[2])}function qd(o){return o.split("/").map(Number)}function $d(o){return(o[1]<i||i>t.getMaxZoom())return!1;let r=t.getFullTileRange(i);return r?r.containsXY(e,s):!0}var al=class extends Wd{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;let t=this.peekFirstKey(),e=qd(t)[0];this.forEach(s=>{s.tileCoord[0]!==e&&(this.remove(jn(s.tileCoord)),s.release())})}},Bn=al;var Gn={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};var ll=class extends Zt{constructor(t){super(),this.projection=zt(t.projection),this.attributions_=Qd(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible!==void 0?t.attributionsCollapsible:!0,this.loading=!1,this.state_=t.state!==void 0?t.state:"ready",this.wrapX_=t.wrapX!==void 0?t.wrapX:!1,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;let i=this;this.viewPromise_=new Promise(function(e,s){i.viewResolver=e,i.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=Qd(t),this.changed()}setState(t){this.state_=t,this.changed()}};function Qd(o){return o?Array.isArray(o)?function(t){return o}:typeof o=="function"?o:function(t){return[o]}:null}var Xn=ll;var Wn=class{constructor(t,i,e,s){this.minX=t,this.maxX=i,this.minY=e,this.maxY=s}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,i){return this.minX<=t&&t<=this.maxX&&this.minY<=i&&i<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}};function ys(o,t,i,e,s){return s!==void 0?(s.minX=o,s.maxX=t,s.minY=i,s.maxY=e,s):new Wn(o,t,i,e)}var Vn=Wn;var Ks=[0,0,0],es=5,hl=class{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,gt($h(this.resolutions_,function(s,r){return r-s},!0),17);let i;if(!t.origins){for(let s=0,r=this.resolutions_.length-1;s=this.minZoom;){if(this.zoomFactor_===2?(n=Math.floor(n/2),l=Math.floor(l/2),r=ys(n,n,l,l,e)):r=this.getTileRangeForExtentAndZ(a,h,e),i(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,i,e){if(t[0]this.maxZoom||i0?e:Math.max(r/i[0],s/i[1]);let n=t+1,l=new Array(n);for(let a=0;ae.highWaterMark&&(e.highWaterMark=t)}useTile(t,i,e,s){}},Hn=class extends te{constructor(t,i){super(t),this.tile=i}},su=dl;function ff(o,t){let i=/\{z\}/g,e=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(n,l,a){if(n)return o.replace(i,n[0].toString()).replace(e,n[1].toString()).replace(s,n[2].toString()).replace(r,function(){let h=n[0],c=t.getFullTileRange(h);return gt(c,55),(c.getHeight()-n[2]-1).toString()})}}function ru(o,t){let i=o.length,e=new Array(i);for(let s=0;sthis.getTileInternal(x,m,E,L,n),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return v.key=f,h?(v.interimTile=h,v.refreshInterimChain(),l.replace(c,v)):l.set(c,v),v}getTileInternal(t,i,e,s,r){let n=null,l=xs(t,i,e),a=this.getKey();if(!this.tileCache.containsKey(l))n=this.createTile_(t,i,e,s,r,a),this.tileCache.set(l,n);else if(n=this.tileCache.get(l),n.key!=a){let h=n;n=this.createTile_(t,i,e,s,r,a),h.getState()==pt.IDLE?n.interimTile=h.interimTile:n.interimTile=h,n.refreshInterimChain(),this.tileCache.replace(l,n)}return n}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(let i in this.tileCacheForProjection)this.tileCacheForProjection[i].clear();this.changed()}}setTileGridForProjection(t,i){let e=zt(t);if(e){let s=Mt(e);s in this.tileGridForProjection||(this.tileGridForProjection[s]=i)}}clear(){super.clear();for(let t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};function mf(o,t){o.getImage().src=t}var au=pl;var fl=class extends au{constructor(t){t=t||{};let i=t.projection!==void 0?t.projection:"EPSG:3857",e=t.tileGrid!==void 0?t.tileGrid:eu({extent:Un(i),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:i,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:e,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}},lu=fl;var gl=class o extends Zt{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){let i=t;this.setGeometry(i)}else{let i=t;this.setProperties(i)}}clone(){let t=new o(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());let i=this.getGeometry();i&&t.setGeometry(i.clone());let e=this.getStyle();return e&&t.setStyle(e),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Tt(this.geometryChangeKey_),this.geometryChangeKey_=null);let t=this.getGeometry();t&&(this.geometryChangeKey_=wt(t,ut.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?xf(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}};function xf(o){if(typeof o=="function")return o;let t;return Array.isArray(o)?t=o:(gt(typeof o.getZIndex=="function",41),t=[o]),function(){return t}}var bs=gl;var hu=Jt(yl(),1);var bl=class{constructor(t){this.rbush_=new hu.default(t),this.items_={}}insert(t,i){let e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:i};this.rbush_.insert(e),this.items_[Mt(i)]=e}load(t,i){let e=new Array(i.length);for(let s=0,r=i.length;s=200&&l.status<300){let h=t.getType(),c;h=="json"||h=="text"?c=l.responseText:h=="xml"?(c=l.responseXML,c||(c=new DOMParser().parseFromString(l.responseText,"application/xml"))):h=="arraybuffer"&&(c=l.response),c?r(t.readFeatures(c,{extent:i,featureProjection:s}),t.readProjection(c)):n()}else n()},l.onerror=n,l.send()}function Cl(o,t){return function(i,e,s,r,n){let l=this;bf(o,t,i,e,s,function(a,h){l.addFeatures(a),r!==void 0&&r(a)},n||$e)}}var mi=class extends te{constructor(t,i,e){super(t),this.feature=i,this.features=e}},_l=class extends Xn{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=$e,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(gt(this.format_,7),this.loader_=Cl(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:cu;let i=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=i?new vl:null,this.loadedExtentsRtree_=new vl,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let e,s;Array.isArray(t.features)?s=t.features:t.features&&(e=t.features,s=e.getArray()),!i&&e===void 0&&(e=new ne(s)),s!==void 0&&this.addFeaturesInternal(s),e!==void 0&&this.bindFeaturesCollection_(e)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){let i=Mt(t);if(!this.addToIndex_(i,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(i,t);let e=t.getGeometry();if(e){let s=e.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,t)}else this.nullGeometryFeatures_[i]=t;this.dispatchEvent(new mi(He.ADDFEATURE,t))}setupChangeEvents_(t,i){this.featureChangeKeys_[t]=[wt(i,ut.CHANGE,this.handleFeatureChange_,this),wt(i,Ke.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,i){let e=!0,s=i.getId();return s!==void 0&&(s.toString()in this.idIndex_?e=!1:this.idIndex_[s.toString()]=i),e&&(gt(!(t in this.uidIndex_),30),this.uidIndex_[t]=i),e}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){let i=[],e=[],s=[];for(let r=0,n=t.length;r{i||(i=!0,this.addFeature(e.element),i=!1)}),t.addEventListener(ee.REMOVE,e=>{i||(i=!0,this.removeFeature(e.element),i=!1)}),this.featuresCollection_=t}clear(t){if(t){for(let e in this.featureChangeKeys_)this.featureChangeKeys_[e].forEach(Tt);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){let e=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(e);for(let s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};let i=new mi(He.CLEAR);this.dispatchEvent(i),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,i){let e=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(e,function(s){if(s.getGeometry().intersectsCoordinate(t))return i(s)})}forEachFeatureInExtent(t,i){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,i);this.featuresCollection_&&this.featuresCollection_.forEach(i)}forEachFeatureIntersectingExtent(t,i){return this.forEachFeatureInExtent(t,function(e){if(e.getGeometry().intersectsExtent(t)){let r=i(e);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Je(this.nullGeometryFeatures_)||xe(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){let i=[];return this.forEachFeatureAtCoordinateDirect(t,function(e){i.push(e)}),i}getFeaturesInExtent(t,i){if(this.featuresRtree_){if(!(i&&i.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);let s=dc(t,i);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,i){let e=t[0],s=t[1],r=null,n=[NaN,NaN],l=1/0,a=[-1/0,-1/0,1/0,1/0];return i=i||Ei,this.featuresRtree_.forEachInExtent(a,function(h){if(i(h)){let c=h.getGeometry(),f=l;if(l=c.closestPointXY(e,s,n,l),l{--this.loadingExtentsCount_,this.dispatchEvent(new mi(He.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new mi(He.FEATURESLOADERROR))}),s.insert(a,{extent:a.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){let i=this.loadedExtentsRtree_,e;i.forEachInExtent(t,function(s){if(Di(s.extent,t))return e=s,!0}),e&&i.remove(e)}removeFeature(t){if(!t)return;let i=Mt(t);i in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[i]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){let i=Mt(t),e=this.featureChangeKeys_[i];if(!e)return;e.forEach(Tt),delete this.featureChangeKeys_[i];let s=t.getId();return s!==void 0&&delete this.idIndex_[s.toString()],delete this.uidIndex_[i],this.dispatchEvent(new mi(He.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let i=!1;for(let e in this.idIndex_)if(this.idIndex_[e]===t){delete this.idIndex_[e],i=!0;break}return i}setLoader(t){this.loader_=t}setUrl(t){gt(this.format_,7),this.url_=t,this.setLoader(Cl(t,this.format_))}},xi=_l;var vf='© OpenStreetMap contributors.',wl=class extends lu{constructor(t){t=t||{};let i;t.attributions!==void 0?i=t.attributions:i=[vf];let e=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:i,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:e,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}},Ir=wl;var Sl=class extends Jr{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return ft()}getData(t){return null}prepareFrame(t){return ft()}renderFrame(t,i){return ft()}loadedTileCallback(t,i,e){t[i]||(t[i]={}),t[i][e.tileCoord.toString()]=e}createLoadedTileFinder(t,i,e){return(s,r)=>{let n=this.loadedTileCallback.bind(this,e,s);return t.forEachLoadedTile(i,s,r,n)}}forEachFeatureAtCoordinate(t,i,e,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let i=t.target;(i.getState()===Ot.LOADED||i.getState()===Ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let i=t.getState();return i!=Ot.LOADED&&i!=Ot.ERROR&&t.addEventListener(ut.CHANGE,this.boundHandleImageChange_),i==Ot.IDLE&&(t.load(),i=t.getState()),i==Ot.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},du=Sl;var El=[],qs=null;function Cf(){qs=Xt(1,1,void 0,{willReadFrequently:!0})}var Ml=class extends du{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=fe(),this.pixelTransform=fe(),this.inversePixelTransform=fe(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,i,e){qs||Cf(),qs.clearRect(0,0,1,1);let s;try{qs.drawImage(t,i,e,1,1,0,0,1,1),s=qs.getImageData(0,0,1,1).data}catch{return qs=null,null}return s}getBackground(t){let e=this.getLayer().getBackground();return typeof e=="function"&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,i,e){let s=this.getLayer().getClassName(),r,n;if(t&&t.className===s&&(!e||t&&t.style.backgroundColor&&pe(as(t.style.backgroundColor),as(e)))){let l=t.firstElementChild;l instanceof HTMLCanvasElement&&(n=l.getContext("2d"))}if(n&&n.canvas.style.transform===i?(this.container=t,this.context=n,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let l=r.style;l.position="absolute",l.width="100%",l.height="100%",n=Xt();let a=n.canvas;r.appendChild(a),l=a.style,l.position="absolute",l.left="0",l.transformOrigin="top left",this.container=r,this.context=n}!this.containerReused&&e&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=e)}clipUnrotated(t,i,e){let s=Xe(e),r=Fs(e),n=Os(e),l=Rs(e);Vt(i.coordinateToPixelTransform,s),Vt(i.coordinateToPixelTransform,r),Vt(i.coordinateToPixelTransform,n),Vt(i.coordinateToPixelTransform,l);let a=this.inversePixelTransform;Vt(a,s),Vt(a,r),Vt(a,n),Vt(a,l),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(l[0]),Math.round(l[1])),t.clip()}dispatchRenderEvent_(t,i,e){let s=this.getLayer();if(s.hasListener(t)){let r=new En(t,this.inversePixelTransform,e,i);s.dispatchEvent(r)}}preRender(t,i){this.frameState=i,this.dispatchRenderEvent_(be.PRERENDER,t,i)}postRender(t,i){this.dispatchRenderEvent_(be.POSTRENDER,t,i)}getRenderTransform(t,i,e,s,r,n,l){let a=r/2,h=n/2,c=s/i,f=-c,u=-t[0]+l,p=-t[1];return ye(this.tempTransform,a,h,c,f,-e,u,p)}disposeInternal(){delete this.frameState,super.disposeInternal()}},Zn=Ml;var kr={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var Pl=class extends ds{constructor(t){t=t||{};let i=Object.assign({},t);delete i.preload,delete i.useInterimTilesOnError,super(i),this.on,this.once,this.un,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getPreload(){return this.get(kr.PRELOAD)}setPreload(t){this.set(kr.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(kr.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(kr.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}},uu=Pl;var Tl=class extends Zn{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Ut(),this.tmpTileRange_=new Vn(0,0,0,0)}isDrawableTile(t){let i=this.getLayer(),e=t.getState(),s=i.getUseInterimTilesOnError();return e==pt.LOADED||e==pt.EMPTY||e==pt.ERROR&&!s}getTile(t,i,e,s){let r=s.pixelRatio,n=s.viewState.projection,l=this.getLayer(),h=l.getSource().getTile(t,i,e,r,n);return h.getState()==pt.ERROR&&l.getUseInterimTilesOnError()&&l.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(h)||(h=h.getInterimTile()),h}getData(t){let i=this.frameState;if(!i)return null;let e=this.getLayer(),s=Vt(i.pixelToCoordinateTransform,t.slice()),r=e.getExtent();if(r&&!Wi(r,s))return null;let n=i.pixelRatio,l=i.viewState.projection,a=i.viewState,h=e.getRenderSource(),c=h.getTileGridForProjection(a.projection),f=h.getTilePixelRatio(i.pixelRatio);for(let u=c.getZForResolution(a.resolution);u>=c.getMinZoom();--u){let p=c.getTileCoordForCoordAndZ(s,u),b=h.getTile(u,p[1],p[2],n,l);if(!(b instanceof Nn||b instanceof Lr)||b instanceof Lr&&b.getState()===pt.EMPTY)return null;if(b.getState()!==pt.LOADED)continue;let v=c.getOrigin(u),x=ie(c.getTileSize(u)),m=c.getResolution(u),E=Math.floor(f*((s[0]-v[0])/m-p[1]*x[0])),L=Math.floor(f*((v[1]-s[1])/m-p[2]*x[1])),S=Math.round(f*h.getGutterForProjection(a.projection));return this.getImageData(b.getImage(),E+S,L+S)}return null}loadedTileCallback(t,i,e){return this.isDrawableTile(e)?super.loadedTileCallback(t,i,e):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,i){let e=t.layerStatesArray[t.layerIndex],s=t.viewState,r=s.projection,n=s.resolution,l=s.center,a=s.rotation,h=t.pixelRatio,c=this.getLayer(),f=c.getSource(),u=f.getRevision(),p=f.getTileGridForProjection(r),b=p.getZForResolution(n,f.zDirection),v=p.getResolution(b),x=t.extent,m=t.viewState.resolution,E=f.getTilePixelRatio(h),L=Math.round(At(x)/m*h),S=Math.round(ge(x)/m*h),w=e.extent&&si(e.extent,r);w&&(x=Vi(x,si(e.extent,r)));let R=v*L/2/E,O=v*S/2/E,I=[l[0]-R,l[1]-O,l[0]+R,l[1]+O],_=p.getTileRangeForExtentAndZ(x,b),A={};A[b]={};let F=this.createLoadedTileFinder(f,r,A),P=this.tmpExtent,D=this.tmpTileRange_;this.newTiles_=!1;let C=a?cn(s.center,m,a,t.size):void 0;for(let G=_.minX;G<=_.maxX;++G)for(let X=_.minY;X<=_.maxY;++X){if(a&&!p.tileCoordIntersectsViewport([b,G,X],C))continue;let j=this.getTile(b,G,X,t);if(this.isDrawableTile(j)){let V=Mt(this);if(j.getState()==pt.LOADED){A[b][j.tileCoord.toString()]=j;let U=j.inTransition(V);U&&e.opacity!==1&&(j.endTransition(V),U=!1),!this.newTiles_&&(U||!this.renderedTiles.includes(j))&&(this.newTiles_=!0)}if(j.getAlpha(V,t.time)===1)continue}let B=p.getTileCoordChildTileRange(j.tileCoord,D,P),W=!1;B&&(W=F(b+1,B)),W||p.forEachTileCoordParentTileRange(j.tileCoord,F,D,P)}let d=v/n*h/E;ye(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,a,-L/2,-S/2);let g=rn(this.pixelTransform);this.useContainer(i,g,this.getBackground(t));let y=this.context,M=y.canvas;Is(this.inversePixelTransform,this.pixelTransform),ye(this.tempTransform,L/2,S/2,d,d,0,-L/2,-S/2),M.width!=L||M.height!=S?(M.width=L,M.height=S):this.containerReused||y.clearRect(0,0,L,S),w&&this.clipUnrotated(y,t,w),f.getInterpolate()||(y.imageSmoothingEnabled=!1),this.preRender(y,t),this.renderedTiles.length=0;let k=Object.keys(A).map(Number);k.sort(qe);let T,z,N;e.opacity===1&&(!this.containerReused||f.getOpaque(t.viewState.projection))?k=k.reverse():(T=[],z=[]);for(let G=k.length-1;G>=0;--G){let X=k[G],j=f.getTilePixelSize(X,h,r),W=p.getResolution(X)/v,V=j[0]*W*d,U=j[1]*W*d,q=p.getTileCoordForCoordAndZ(Xe(I),X),H=p.getTileCoordExtent(q),Y=Vt(this.tempTransform,[E*(H[0]-I[0])/v,E*(I[3]-H[3])/v]),Z=E*f.getGutterForProjection(r),K=A[X];for(let J in K){let tt=K[J],$=tt.tileCoord,Q=q[1]-$[1],et=Math.round(Y[0]-(Q-1)*V),it=q[2]-$[2],st=Math.round(Y[1]-(it-1)*U),rt=Math.round(Y[0]-Q*V),nt=Math.round(Y[1]-it*U),ot=et-rt,at=st-nt,ct=b===X,ht=ct&&tt.getAlpha(Mt(this),t.time)!==1,lt=!1;if(!ht)if(T){N=[rt,nt,rt+ot,nt,rt+ot,nt+at,rt,nt+at];for(let yt=0,Et=T.length;yt1?n:2,r=r||new Array(n);for(let c=0;c>1;s0,6),gt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),69);let a=t.src!==void 0?Ot.IDLE:Ot.LOADED;if(this.color_=t.color!==void 0?as(t.color):null,this.iconImage_=yu(n,l,this.imgSize_!==void 0?this.imgSize_:null,this.crossOrigin_,a,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{let f=this.getImage(1);if(f instanceof HTMLCanvasElement||f.src&&f.complete)h=f.width,c=f.height;else{this.initialOptions_=t;let u=()=>{if(this.unlistenImageChange(u),!this.initialOptions_)return;let p=this.iconImage_.getSize();this.setScale(bu(p[0],p[1],t.width,t.height))};this.listenImageChange(u);return}}h!==void 0&&this.setScale(bu(h,c,t.width,t.height))}}clone(){let t,i,e;return this.initialOptions_?(i=this.initialOptions_.width,e=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new o({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:i,height:e,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;let s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=s[0]),this.anchorYUnits_=="fraction"&&(t[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+s[1])}this.normalizedAnchor_=t}let i=this.getDisplacement(),e=this.getScaleArray();return[t[0]-i[0]/e[0],t[1]+i[1]/e[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){let i=this.getSize(),e=this.iconImage_.getSize();if(!i||!e)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=e[0]-i[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=e[1]-i[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){let t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(ut.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(ut.CHANGE,t)}},zi=jl;function Bl(o){return new _e({fill:zr(o,""),stroke:Nr(o,""),text:wf(o),image:Sf(o)})}function zr(o,t){let i=o[t+"fill-color"];if(i)return i==="none"?null:new Ce({color:i})}function Nr(o,t){let i=o[t+"stroke-width"],e=o[t+"stroke-color"];if(!(!i&&!e))return new De({width:i,color:e,lineCap:o[t+"stroke-line-cap"],lineJoin:o[t+"stroke-line-join"],lineDash:o[t+"stroke-line-dash"],lineDashOffset:o[t+"stroke-line-dash-offset"],miterLimit:o[t+"stroke-miter-limit"]})}function wf(o){let t=o["text-value"];return t?new is({text:t,font:o["text-font"],maxAngle:o["text-max-angle"],offsetX:o["text-offset-x"],offsetY:o["text-offset-y"],overflow:o["text-overflow"],placement:o["text-placement"],repeat:o["text-repeat"],scale:o["text-scale"],rotateWithView:o["text-rotate-with-view"],rotation:o["text-rotation"],textAlign:o["text-align"],justify:o["text-justify"],textBaseline:o["text-baseline"],padding:o["text-padding"],fill:zr(o,"text-"),backgroundFill:zr(o,"text-background-"),stroke:Nr(o,"text-"),backgroundStroke:Nr(o,"text-background-")}):void 0}function Sf(o){let t=o["icon-src"],i=o["icon-img"];if(t||i)return new zi({src:t,img:i,imgSize:o["icon-img-size"],anchor:o["icon-anchor"],anchorOrigin:o["icon-anchor-origin"],anchorXUnits:o["icon-anchor-x-units"],anchorYUnits:o["icon-anchor-y-units"],color:o["icon-color"],crossOrigin:o["icon-cross-origin"],offset:o["icon-offset"],displacement:o["icon-displacement"],opacity:o["icon-opacity"],scale:o["icon-scale"],width:o["icon-width"],height:o["icon-height"],rotation:o["icon-rotation"],rotateWithView:o["icon-rotate-with-view"],size:o["icon-size"],declutterMode:o["icon-declutter-mode"]});let e=o["shape-points"];if(e){let r="shape-";return new Qn({points:e,fill:zr(o,r),stroke:Nr(o,r),radius:o["shape-radius"],radius1:o["shape-radius1"],radius2:o["shape-radius2"],angle:o["shape-angle"],displacement:o["shape-displacement"],rotation:o["shape-rotation"],rotateWithView:o["shape-rotate-with-view"],scale:o["shape-scale"],declutterMode:o["shape-declutter-mode"]})}let s=o["circle-radius"];if(s){let r="circle-";return new to({radius:s,fill:zr(o,r),stroke:Nr(o,r),displacement:o["circle-displacement"],scale:o["circle-scale"],rotation:o["circle-rotation"],rotateWithView:o["circle-rotate-with-view"],declutterMode:o["circle-declutter-mode"]})}}var vu={RENDER_ORDER:"renderOrder"},Gl=class extends ds{constructor(t){t=t||{};let i=Object.assign({},t);delete i.style,delete i.renderBuffer,delete i.updateWhileAnimating,delete i.updateWhileInteracting,super(i),this.declutter_=t.declutter!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(vu.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new Cu.default(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(vu.RENDER_ORDER,t)}setStyle(t){let i;if(t===void 0)i=xu;else if(t===null)i=null;else if(typeof t=="function")i=t;else if(t instanceof _e)i=t;else if(Array.isArray(t)){let e=t.length,s=new Array(e);for(let r=0;rl&&(this.instructions.push([xt.CUSTOM,l,h,t,e,Ue]),this.hitDetectionInstructions.push([xt.CUSTOM,l,h,t,s||e,Ue]));break;case"Point":a=t.getFlatCoordinates(),this.coordinates.push(a[0],a[1]),h=this.coordinates.length,this.instructions.push([xt.CUSTOM,l,h,t,e]),this.hitDetectionInstructions.push([xt.CUSTOM,l,h,t,s||e]);break;default:}this.endGeometry(i)}beginGeometry(t,i){this.beginGeometryInstruction1_=[xt.BEGIN_GEOMETRY,i,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[xt.BEGIN_GEOMETRY,i,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){let t=this.hitDetectionInstructions;t.reverse();let i,e=t.length,s,r,n=-1;for(i=0;ithis.maxLineWidth&&(this.maxLineWidth=e.lineWidth,this.bufferedMaxExtent_=null)}else e.strokeStyle=void 0,e.lineCap=void 0,e.lineDash=null,e.lineDashOffset=void 0,e.lineJoin=void 0,e.lineWidth=void 0,e.miterLimit=void 0}createFill(t){let i=t.fillStyle,e=[xt.SET_FILL_STYLE,i];return typeof i!="string"&&e.push(!0),e}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[xt.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,i){let e=t.fillStyle;(typeof e!="string"||t.currentFillStyle!=e)&&(e!==void 0&&this.instructions.push(i.call(this,t)),t.currentFillStyle=e)}updateStrokeStyle(t,i){let e=t.strokeStyle,s=t.lineCap,r=t.lineDash,n=t.lineDashOffset,l=t.lineJoin,a=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=e||t.currentLineCap!=s||r!=t.currentLineDash&&!pe(t.currentLineDash,r)||t.currentLineDashOffset!=n||t.currentLineJoin!=l||t.currentLineWidth!=a||t.currentMiterLimit!=h)&&(e!==void 0&&i.call(this,t),t.currentStrokeStyle=e,t.currentLineCap=s,t.currentLineDash=r,t.currentLineDashOffset=n,t.currentLineJoin=l,t.currentLineWidth=a,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;let i=[xt.END_GEOMETRY,t];this.instructions.push(i),this.hitDetectionInstructions.push(i)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=on(this.maxExtent),this.maxLineWidth>0)){let t=this.resolution*(this.maxLineWidth+1)/2;ks(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},bi=Vl;var Yl=class extends bi{constructor(t,i,e,s){super(t,i,e,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,i){if(!this.image_)return;this.beginGeometry(t,i);let e=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,s);this.instructions.push([xt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(i)}drawMultiPoint(t,i){if(!this.image_)return;this.beginGeometry(t,i);let e=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,n=this.appendFlatPointCoordinates(e,s);this.instructions.push([xt.DRAW_IMAGE,r,n,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,r,n,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(i)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,i){let e=t.getAnchor(),s=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=e[0],this.anchorY_=e[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=s[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=s[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=i}},wu=Yl;var Ul=class extends bi{constructor(t,i,e,s){super(t,i,e,s)}drawFlatCoordinates_(t,i,e,s){let r=this.coordinates.length,n=this.appendFlatLineCoordinates(t,i,e,s,!1,!1),l=[xt.MOVE_TO_LINE_TO,r,n];return this.instructions.push(l),this.hitDetectionInstructions.push(l),e}drawLineString(t,i){let e=this.state,s=e.strokeStyle,r=e.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,i),this.hitDetectionInstructions.push([xt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,Te,Ae],Ni);let n=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(n,0,n.length,l),this.hitDetectionInstructions.push(yi),this.endGeometry(i)}drawMultiLineString(t,i){let e=this.state,s=e.strokeStyle,r=e.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(e,this.applyStroke),this.beginGeometry(t,i),this.hitDetectionInstructions.push([xt.SET_STROKE_STYLE,e.strokeStyle,e.lineWidth,e.lineCap,e.lineJoin,e.miterLimit,Te,Ae],Ni);let n=t.getEnds(),l=t.getFlatCoordinates(),a=t.getStride(),h=0;for(let c=0,f=n.length;c=o){let b=(o-l+p)/p,v=oe(h,f,b),x=oe(c,u,b);a.push(v,x),r.push(a),a=[v,x],l==o&&(n+=s),l=0}else if(l0&&r.push(a),r}function Eu(o,t,i,e,s){let r=i,n=i,l=0,a=0,h=i,c,f,u,p,b,v,x,m,E,L;for(f=i;fo&&(a>l&&(l=a,r=h,n=f),a=0,h=f-s)),u=p,x=E,m=L),b=S,v=w}return a+=p,a>l?[h,f]:[r,n]}var Gr={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Kl=class extends bi{constructor(t,i,e,s){super(t,i,e,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[$t]={fillStyle:$t},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){let t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,i){let e=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!e&&!s)return;let n=this.coordinates,l=n.length,a=t.getType(),h=null,c=t.getStride();if(r.placement==="line"&&(a=="LineString"||a=="MultiLineString"||a=="Polygon"||a=="MultiPolygon")){if(!Yt(this.getBufferedMaxExtent(),t.getExtent()))return;let f;if(h=t.getFlatCoordinates(),a=="LineString")f=[h.length];else if(a=="MultiLineString")f=t.getEnds();else if(a=="Polygon")f=t.getEnds().slice(0,1);else if(a=="MultiPolygon"){let v=t.getEndss();f=[];for(let x=0,m=v.length;x{let S=n[(m+L)*2]===h[L*c]&&n[(m+L)*2+1]===h[L*c+1];return S||--m,S})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,i);let p=r.padding;if(p!=Oi&&(r.scale[0]<0||r.scale[1]<0)){let m=r.padding[0],E=r.padding[1],L=r.padding[2],S=r.padding[3];r.scale[0]<0&&(E=-E,S=-S),r.scale[1]<0&&(m=-m,L=-L),p=[m,E,L,S]}let b=this.pixelRatio;this.instructions.push([xt.DRAW_IMAGE,l,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,p==Oi?Oi:p.map(function(m){return m*b}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]);let v=1/b,x=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=$t,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,l,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[v,v],NaN,void 0,this.declutterImageWithText_,p,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?$t:this.fillKey_,this.textOffsetX_,this.textOffsetY_,f]),r.backgroundFill&&(this.state.fillStyle=x,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(i)}}saveTextStates_(){let t=this.textStrokeState_,i=this.textState_,e=this.textFillState_,s=this.strokeKey_;t&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));let r=this.textKey_;r in this.textStates||(this.textStates[r]={font:i.font,textAlign:i.textAlign||Ji,justify:i.justify,textBaseline:i.textBaseline||fs,scale:i.scale});let n=this.fillKey_;e&&(n in this.fillStates||(this.fillStates[n]={fillStyle:e.fillStyle}))}drawChars_(t,i){let e=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,n=this.textKey_,l=this.fillKey_;this.saveTextStates_();let a=this.pixelRatio,h=Gr[s.textBaseline],c=this.textOffsetY_*a,f=this.text_,u=e?e.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([xt.DRAW_CHARS,t,i,h,s.overflow,l,s.maxAngle,a,c,r,u*a,f,n,1]),this.hitDetectionInstructions.push([xt.DRAW_CHARS,t,i,h,s.overflow,l&&$t,s.maxAngle,1,c,r,u,f,n,1/a])}setTextStyle(t,i){let e,s,r;if(!t)this.text_="";else{let n=t.getFill();n?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Le(n.getColor()||$t)):(s=null,this.textFillState_=s);let l=t.getStroke();if(!l)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);let b=l.getLineDash(),v=l.getLineDashOffset(),x=l.getWidth(),m=l.getMiterLimit();r.lineCap=l.getLineCap()||ps,r.lineDash=b?b.slice():Te,r.lineDashOffset=v===void 0?Ae:v,r.lineJoin=l.getLineJoin()||di,r.lineWidth=x===void 0?Fi:x,r.miterLimit=m===void 0?ki:m,r.strokeStyle=Le(l.getColor()||Ri)}e=this.textState_;let a=t.getFont()||Tn;hd(a);let h=t.getScaleArray();e.overflow=t.getOverflow(),e.font=a,e.maxAngle=t.getMaxAngle(),e.placement=t.getPlacement(),e.textAlign=t.getTextAlign(),e.repeat=t.getRepeat(),e.justify=t.getJustify(),e.textBaseline=t.getTextBaseline()||fs,e.backgroundFill=t.getBackgroundFill(),e.backgroundStroke=t.getBackgroundStroke(),e.padding=t.getPadding()||Oi,e.scale=h===void 0?[1,1]:h;let c=t.getOffsetX(),f=t.getOffsetY(),u=t.getRotateWithView(),p=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=f===void 0?0:f,this.textRotateWithView_=u===void 0?!1:u,this.textRotation_=p===void 0?0:p,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:Mt(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=e.font+e.scale+(e.textAlign||"?")+(e.repeat||"?")+(e.justify||"?")+(e.textBaseline||"?"),this.fillKey_=s?typeof s.fillStyle=="string"?s.fillStyle:"|"+Mt(s.fillStyle):""}this.declutterImageWithText_=i}},Pu=Kl;var Mf={Circle:Zl,Default:bi,Image:wu,LineString:Su,Polygon:Zl,Text:Pu},ql=class{constructor(t,i,e,s){this.tolerance_=t,this.maxExtent_=i,this.pixelRatio_=s,this.resolution_=e,this.buildersByZIndex_={}}finish(){let t={};for(let i in this.buildersByZIndex_){t[i]=t[i]||{};let e=this.buildersByZIndex_[i];for(let s in e){let r=e[s].finish();t[i][s]=r}}return t}getBuilder(t,i){let e=t!==void 0?t.toString():"0",s=this.buildersByZIndex_[e];s===void 0&&(s={},this.buildersByZIndex_[e]=s);let r=s[i];if(r===void 0){let n=Mf[i];r=new n(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[i]=r}return r}},$l=ql;function Tu(o,t,i,e,s,r,n,l,a,h,c,f){let u=o[t],p=o[t+1],b=0,v=0,x=0,m=0;function E(){b=u,v=p,t+=e,u=o[t],p=o[t+1],m+=x,x=Math.sqrt((u-b)*(u-b)+(p-v)*(p-v))}do E();while(tg[2]}else F=S>_;let P=Math.PI,D=[],C=R+e===t;t=R,x=0,m=O,u=o[t],p=o[t+1];let d;if(C){E(),d=Math.atan2(p-v,u-b),F&&(d+=d>0?-P:P);let g=(_+S)/2,y=(A+w)/2;return D[0]=[g,y,(I-r)/2,d,s],D}s=s.replace(/\n/g," ");for(let g=0,y=s.length;g0?-P:P),d!==void 0){let X=M-d;if(X+=X>P?-2*P:X<-P?2*P:0,Math.abs(X)>n)return null}d=M;let k=g,T=0;for(;g0&&o.push(` -`,""),o.push(t,""),o}var Ql=class{constructor(t,i,e,s){this.overlaps=e,this.pixelRatio=i,this.resolution=t,this.alignFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=fe(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={}}createLabel(t,i,e,s){let r=t+i+e+s;if(this.labels_[r])return this.labels_[r];let n=s?this.strokeStates[s]:null,l=e?this.fillStates[e]:null,a=this.textStates[i],h=this.pixelRatio,c=[a.scale[0]*h,a.scale[1]*h],f=Array.isArray(t),u=a.justify?Gr[a.justify]:Jl(Array.isArray(t)?t[0]:t,a.textAlign||Ji),p=s&&n.lineWidth?n.lineWidth:0,b=f?t:t.split(` -`).reduce(Ef,[]),{width:v,height:x,widths:m,heights:E,lineWidths:L}=dd(a,b),S=v+p,w=[],R=(S+2)*c[0],O=(x+p)*c[1],I={width:R<0?Math.floor(R):Math.ceil(R),height:O<0?Math.floor(O):Math.ceil(O),contextInstructions:w};(c[0]!=1||c[1]!=1)&&w.push("scale",c),s&&(w.push("strokeStyle",n.strokeStyle),w.push("lineWidth",p),w.push("lineCap",n.lineCap),w.push("lineJoin",n.lineJoin),w.push("miterLimit",n.miterLimit),w.push("setLineDash",[n.lineDash]),w.push("lineDashOffset",n.lineDashOffset)),e&&w.push("fillStyle",l.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");let _=.5-u,A=u*S+_*p,F=[],P=[],D=0,C=0,d=0,g=0,y;for(let M=0,k=b.length;Mt?t-h:r,S=n+c>i?i-c:n,w=b[3]+L*u[0]+b[1],R=b[0]+S*u[1]+b[2],O=m-b[3],I=E-b[0];(v||f!==0)&&(ss[0]=O,rs[0]=O,ss[1]=I,ji[1]=I,ji[0]=O+w,Bi[0]=ji[0],Bi[1]=I+R,rs[1]=Bi[1]);let _;return f!==0?(_=ye(fe(),e,s,1,1,f,-e,-s),Vt(_,ss),Vt(_,ji),Vt(_,Bi),Vt(_,rs),ze(Math.min(ss[0],ji[0],Bi[0],rs[0]),Math.min(ss[1],ji[1],Bi[1],rs[1]),Math.max(ss[0],ji[0],Bi[0],rs[0]),Math.max(ss[1],ji[1],Bi[1],rs[1]),$s)):ze(Math.min(O,O+w),Math.min(I,I+R),Math.max(O,O+w),Math.max(I,I+R),$s),p&&(m=Math.round(m),E=Math.round(E)),{drawImageX:m,drawImageY:E,drawImageW:L,drawImageH:S,originX:h,originY:c,declutterBox:{minX:$s[0],minY:$s[1],maxX:$s[2],maxY:$s[3],value:x},canvasTransform:_,scale:u}}replayImageOrLabel_(t,i,e,s,r,n,l){let a=!!(n||l),h=s.declutterBox,c=t.canvas,f=l?l[2]*s.scale[0]/2:0;return h.minX-f<=c.width/i&&h.maxX+f>=0&&h.minY-f<=c.height/i&&h.maxY+f>=0&&(a&&this.replayTextBackground_(t,ss,ji,Bi,rs,n,l),ud(t,s.canvasTransform,r,e,s.originX,s.originY,s.drawImageW,s.drawImageH,s.drawImageX,s.drawImageY,s.scale)),!0}fill_(t){if(this.alignFill_){let i=Vt(this.renderedTransform_,[0,0]),e=512*this.pixelRatio;t.save(),t.translate(i[0]%e,i[1]%e),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.restore()}setStrokeStyle_(t,i){t.strokeStyle=i[1],t.lineWidth=i[2],t.lineCap=i[3],t.lineJoin=i[4],t.miterLimit=i[5],t.lineDashOffset=i[7],t.setLineDash(i[6])}drawLabelWithPointPlacement_(t,i,e,s){let r=this.textStates[i],n=this.createLabel(t,i,s,e),l=this.strokeStates[e],a=this.pixelRatio,h=Jl(Array.isArray(t)?t[0]:t,r.textAlign||Ji),c=Gr[r.textBaseline||fs],f=l&&l.lineWidth?l.lineWidth:0,u=n.width/a-2*r.scale[0],p=h*u+2*(.5-h)*f,b=c*n.height/a+2*(.5-c)*f;return{label:n,anchorX:p,anchorY:b}}execute_(t,i,e,s,r,n,l,a){let h;this.pixelCoordinates_&&pe(e,this.renderedTransform_)?h=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),h=Ye(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),rc(this.renderedTransform_,e));let c=0,f=s.length,u=0,p,b,v,x,m,E,L,S,w,R,O,I,_=0,A=0,F=null,P=null,D=this.coordinateCache_,C=this.viewRotation_,d=Math.round(Math.atan2(-e[1],e[0])*1e12)/1e12,g={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:C},y=this.instructions!=s||this.overlaps?0:200,M,k,T,z;for(;cy&&(this.fill_(t),_=0),A>y&&(t.stroke(),A=0),!_&&!A&&(t.beginPath(),x=NaN,m=NaN),++c;break;case xt.CIRCLE:u=N[1];let X=h[u],j=h[u+1],B=h[u+2],W=h[u+3],V=B-X,U=W-j,q=Math.sqrt(V*V+U*U);t.moveTo(X+q,j),t.arc(X,j,q,0,2*Math.PI,!0),++c;break;case xt.CLOSE_PATH:t.closePath(),++c;break;case xt.CUSTOM:u=N[1],p=N[2];let H=N[3],Y=N[4],Z=N.length==6?N[5]:void 0;g.geometry=H,g.feature=M,c in D||(D[c]=[]);let K=D[c];Z?Z(h,u,p,2,K):(K[0]=h[u],K[1]=h[u+1],K.length=2),Y(K,g),++c;break;case xt.DRAW_IMAGE:u=N[1],p=N[2],S=N[3],b=N[4],v=N[5];let J=N[6],tt=N[7],$=N[8],Q=N[9],et=N[10],it=N[11],st=N[12],rt=N[13],nt=N[14],ot=N[15];if(!S&&N.length>=20){w=N[19],R=N[20],O=N[21],I=N[22];let ke=this.drawLabelWithPointPlacement_(w,R,O,I);S=ke.label,N[3]=S;let vs=N[23];b=(ke.anchorX-vs)*this.pixelRatio,N[4]=b;let je=N[24];v=(ke.anchorY-je)*this.pixelRatio,N[5]=v,J=S.height,N[6]=J,rt=S.width,N[13]=rt}let at;N.length>25&&(at=N[25]);let ct,ht,lt;N.length>17?(ct=N[16],ht=N[17],lt=N[18]):(ct=Oi,ht=!1,lt=!1),et&&d?it+=C:!et&&!d&&(it-=C);let yt=0;for(;u0){if(!n||p!=="Image"&&p!=="Text"||n.includes(w)){let A=(u[I]-3)/4,F=s-A%l,P=s-(A/l|0),D=r(w,R,F*F+P*P);if(D)return D}c.clearRect(0,0,l,l);break}}let v=Object.keys(this.executorsByZIndex_).map(Number);v.sort(qe);let x,m,E,L,S;for(x=v.length-1;x>=0;--x){let w=v[x].toString();for(E=this.executorsByZIndex_[w],m=th.length-1;m>=0;--m)if(p=th[m],L=E[p],L!==void 0&&(S=L.executeHitDetection(c,a,e,b,f),S))return S}}getClipCoords(t){let i=this.maxExtent_;if(!i)return null;let e=i[0],s=i[1],r=i[2],n=i[3],l=[e,s,e,n,r,n,r,s];return Ye(l,0,8,2,t,l),l}isEmpty(){return Je(this.executorsByZIndex_)}execute(t,i,e,s,r,n,l){let a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(qe),this.maxExtent_&&(t.save(),this.clip(t,e)),n=n||th;let h,c,f,u,p,b;for(l&&a.reverse(),h=0,c=a.length;hi)break;let a=e[l];a||(a=[],e[l]=a),a.push(((o+r)*t+(o+n))*4+3),r>0&&a.push(((o-r)*t+(o+n))*4+3),n>0&&(a.push(((o+r)*t+(o-n))*4+3),r>0&&a.push(((o-r)*t+(o-n))*4+3))}let s=[];for(let r=0,n=e.length;rf*this.pixelRatio_),lineDashOffset:(n||Ae)*this.pixelRatio_,lineJoin:l!==void 0?l:di,lineWidth:(a!==void 0?a:Fi)*this.pixelRatio_,miterLimit:h!==void 0?h:ki,strokeStyle:Le(e||Ri)}}}setImageStyle(t){let i;if(!t||!(i=t.getSize())){this.image_=null;return}let e=t.getPixelRatio(this.pixelRatio_),s=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=s[0]*e,this.imageAnchorY_=s[1]*e,this.imageHeight_=i[1]*e,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();let n=t.getScaleArray();this.imageScale_=[n[0]*this.pixelRatio_/e,n[1]*this.pixelRatio_/e],this.imageWidth_=i[0]*e}setTextStyle(t){if(!t)this.text_="";else{let i=t.getFill();if(!i)this.textFillState_=null;else{let p=i.getColor();this.textFillState_={fillStyle:Le(p||$t)}}let e=t.getStroke();if(!e)this.textStrokeState_=null;else{let p=e.getColor(),b=e.getLineCap(),v=e.getLineDash(),x=e.getLineDashOffset(),m=e.getLineJoin(),E=e.getWidth(),L=e.getMiterLimit();this.textStrokeState_={lineCap:b!==void 0?b:ps,lineDash:v||Te,lineDashOffset:x||Ae,lineJoin:m!==void 0?m:di,lineWidth:E!==void 0?E:Fi,miterLimit:L!==void 0?L:ki,strokeStyle:Le(p||Ri)}}let s=t.getFont(),r=t.getOffsetX(),n=t.getOffsetY(),l=t.getRotateWithView(),a=t.getRotation(),h=t.getScaleArray(),c=t.getText(),f=t.getTextAlign(),u=t.getTextBaseline();this.textState_={font:s!==void 0?s:Tn,textAlign:f!==void 0?f:Ji,textBaseline:u!==void 0?u:fs},this.text_=c!==void 0?Array.isArray(c)?c.reduce((p,b,v)=>p+=v%2?" ":b,""):c:"",this.textOffsetX_=r!==void 0?this.pixelRatio_*r:0,this.textOffsetY_=n!==void 0?this.pixelRatio_*n:0,this.textRotateWithView_=l!==void 0?l:!1,this.textRotation_=a!==void 0?a:0,this.textScale_=[this.pixelRatio_*h[0],this.pixelRatio_*h[1]]}}},Iu=rh;var ni=.5;function ku(o,t,i,e,s,r,n){let l=o[0]*ni,a=o[1]*ni,h=Xt(l,a);h.imageSmoothingEnabled=!1;let c=h.canvas,f=new Iu(h,ni,s,null,n),u=i.length,p=Math.floor((256*256*256-1)/u),b={};for(let x=1;x<=u;++x){let m=i[x-1],E=m.getStyleFunction()||e;if(!E)continue;let L=E(m,r);if(!L)continue;Array.isArray(L)||(L=[L]);let w=(x*p).toString(16).padStart(7,"#00000");for(let R=0,O=L.length;R{if(!this.hitDetectionImageData_&&!this.animatingOrInteracting_){let e=[this.context.canvas.width,this.context.canvas.height];Vt(this.pixelTransform,e);let s=this.renderedCenter_,r=this.renderedResolution_,n=this.renderedRotation_,l=this.renderedProjection_,a=this.wrappedRenderedExtent_,h=this.getLayer(),c=[],f=e[0]*ni,u=e[1]*ni;c.push(this.getRenderTransform(s,r,n,ni,f,u,0).slice());let p=h.getSource(),b=l.getExtent();if(p.getWrapX()&&l.canWrapX()&&!Ti(b,a)){let v=a[0],x=At(b),m=0,E;for(;vb[2];)++m,E=x*m,c.push(this.getRenderTransform(s,r,n,ni,f,u,E).slice()),v-=x}this.hitDetectionImageData_=ku(e,c,this.renderedFeatures_,h.getStyleFunction(),a,r,n)}i(Ru(t,this.renderedFeatures_,this.hitDetectionImageData_))})}forEachFeatureAtCoordinate(t,i,e,s,r){if(!this.replayGroup_)return;let n=i.viewState.resolution,l=i.viewState.rotation,a=this.getLayer(),h={},c=function(p,b,v){let x=Mt(p),m=h[x];if(m){if(m!==!0&&vf=p.forEachFeatureAtCoordinate(t,n,l,e,c,p===this.declutterExecutorGroup&&i.declutterTree?i.declutterTree.all().map(b=>b.value):null)),f}handleFontsChanged(){let t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){let i=this.getLayer(),e=i.getSource();if(!e)return!1;let s=t.viewHints[qt.ANIMATING],r=t.viewHints[qt.INTERACTING],n=i.getUpdateWhileAnimating(),l=i.getUpdateWhileInteracting();if(this.ready&&!n&&s||!l&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;let a=t.extent,h=t.viewState,c=h.projection,f=h.resolution,u=t.pixelRatio,p=i.getRevision(),b=i.getRenderBuffer(),v=i.getRenderOrder();v===void 0&&(v=Fu);let x=h.center.slice(),m=ks(a,b*f),E=m.slice(),L=[m.slice()],S=c.getExtent();if(e.getWrapX()&&c.canWrapX()&&!Ti(S,t.extent)){let g=At(S),y=Math.max(At(m)/2,g);m[0]=S[0]-y,m[2]=S[2]+y,mn(x,c);let M=ko(L[0],c);M[0]S[0]&&M[2]>S[2]&&L.push([M[0]-g,M[1],M[2]-g,M[3]])}if(this.ready&&this.renderedResolution_==f&&this.renderedRevision_==p&&this.renderedRenderOrder_==v&&Ti(this.wrappedRenderedExtent_,m))return pe(this.renderedExtent_,E)||(this.hitDetectionImageData_=null,this.renderedExtent_=E),this.renderedCenter_=x,this.replayGroupChanged=!1,!0;this.replayGroup_=null;let w=new $l(so(f,u),m,f,u),R;this.getLayer().getDeclutter()&&(R=new $l(so(f,u),m,f,u));let O=bn(),I;if(O){for(let g=0,y=L.length;g{let y,M=g.getStyleFunction()||i.getStyleFunction();if(M&&(y=M(g,f)),y){let k=this.renderFeature(g,_,y,w,I,R);A=A&&!k}},P=Xs(m,c),D=e.getFeaturesInExtent(P);v&&D.sort(v);for(let g=0,y=D.length;g{let t=class t extends ue{constructor(){super(...arguments),this.lastHoveredFeatures=[],this.iconStyle=new _e({zIndex:100,image:new zi({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 s=e.data;switch(s.type){case"map.applyStyle":this.applyStyle(s);break}},window.addEventListener("message",this.onMessage))}applyStyle(e){let{selector:s,style:r,value:n}=e,l=this.map?.getTargetElement();(l&&l.querySelectorAll(s))?.forEach(h=>{h.style[r]=n})}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(s=>e.includes(s.caption?.toLowerCase())||e.includes(s.dimension?.toLowerCase()))}buildMarkers(){let e=this.data?.Cols[0].tuples.length;if(!e)return;let s=0,r=[],n=this.getDataPropValue("latitude")||"latitude",l=this.getDataPropValue("longitude")||"longitude",a=this.data?.Cols[0].tuples.findIndex(f=>f.caption.toLowerCase()===n)??-1,h=this.data?.Cols[0].tuples.findIndex(f=>f.caption.toLowerCase()===l)??-1;if(h===-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 c=this.data?.Cols[1].tuples;if(c?.[0]?.children&&(c=c[0]?.children),!(!c||!this.data)){for(let f=0;fr);if(s){if(this.hideTooltip(),de.mobile){this.onPointerMove(e);return}this.doDrill(s.get("path"),s.get("name")||s.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 s=this.map?.getEventPixel(e.originalEvent);s&&this.displayFeatureInfo(s,e.originalEvent.target)}updateHoverStyle(e){this.lastHoveredFeatures.forEach(s=>{let r=s.getStyle();r.setStroke(this.defaultPolyStroke),s.setStyle(r)}),this.lastHoveredFeatures=[],this.map?.forEachFeatureAtPixel(e.pixel,s=>{let r=s.getGeometry()?.getType();if(r==="Polygon"||r==="MultiPolygon"){let n=s,l=n.getStyle();l.setStroke(this.hoverPolyStroke),n.setStyle(l),this.lastHoveredFeatures.push(n)}})}displayFeatureInfo(e,s){let r=s.closest(".ol-control")?void 0:this.map?.forEachFeatureAtPixel(e,function(n){return n});if(r){if(this.updateTooltipPosition(e[0],e[1]),r!==this.tooltipFeature){let n=this.getDataPropValue("tooltip")||this.getDataPropValue("tooltipProperty")||"TooltipValue",l=this.getDataByColumnName(this.data,n,r.get("dataIdx"));l||(l=this.getFeatureText(r)),l&&(this.tooltip.nativeElement.innerHTML=l.toString(),this.showTooltip())}}else this.hideTooltip();this.tooltipFeature=r}updateTooltipPosition(e,s){let r=this.tooltip.nativeElement;r.classList.remove("ol-tooltip-top"),r.classList.remove("ol-tooltip-left"),r.classList.remove("ol-tooltip-right"),r.style.left=e+"px",r.style.top=s+"px";let n=r.getBoundingClientRect(),l=this.el.nativeElement.getBoundingClientRect();(n.y+n.height>l.y+l.height+20||n.y+n.height>window.innerHeight-20)&&r.classList.add("ol-tooltip-top"),(n.x+n.width>l.x+l.width+20||n.x+n.width>window.innerWidth-20)&&r.classList.add("ol-tooltip-left"),(n.x{l.then(h=>this.onPolyFileLoaded(h)).catch(h=>this.loadDefaultGeoJSON()).finally(()=>{this.hideLoading(),a()})})}onPolyFileLoaded(e){e&&(typeof e=="string"?this.parsePlainJS(e):this.createGeoJSON(e))}parsePlainJS(e){let s=/function\s+\w+\s*\(([^)]*)\)\s*\{([\s\S]*)\}/,r=e.match(s);if(r){let n=r[1].trim(),l=r[2],a=new Function(n,l),h={};a(h),this.createGeoJSON(this.convertToGeoJSON(h))}}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(r=>{let n=e[r].split(";"),l=[];return n.forEach(a=>{l.push(a.split(" ").map(h=>{let[c,f]=h.split(",").map(Number);return[c,f]}))}),{type:"Feature",geometry:{type:l.length>1?"MultiPolygon":"Polygon",coordinates:l.length>1?[l]:[l[0]]},properties:{name:r}}})}}createGeoJSON(e){this.worldMap=new xi,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=[],s=(this.data?.Cols[0]?.tuples?.length??0)<2,r=this.getColumnIndexByDataProp("Key");r===-1&&(r=this.getColumnIndexByDataProp("coordsProperty"));let n=this.getColumnIndexByDataProp("Value");n===-1&&(n=this.getColumnIndexByDataProp("colorProperty")),r===-1&&(r=0),n===-1&&(s?n=0:n=1);let l=this.data?.Cols[0]?.tuples?.length||2,a=Number.MAX_VALUE,h=Number.MIN_VALUE;for(let c=0;c<(this.data?.Cols[1]?.tuples?.length??-1);c++){let f=this.data?.Data[c*l+n];fh&&(h=f)}for(let c=0;c<(this.data?.Cols[1]?.tuples?.length??-1);c++){let f="";if(s?f=this.data?.Cols[1]?.tuples[c].caption??"":f=this.data?.Data[c*l+r].toString()??"",!f)continue;let u=this.worldMap?.getFeatures().find(L=>L.get("name")===f.toString());if(!u)continue;u.set("dataIdx",c*l),u.set("title",this.data?.Cols[1].tuples[c].caption),u.set("path",this.data?.Cols[1].tuples[c].path),e.push(u);let p=this.data?.Data[c*l+n],b;h-a===0?b=255:b=(p-a)/(h-a)*255;let x=`hsla(${(255-b)/255*120}, 100%, 50%, 0.6)`,m=new is({font:"8px Oxygen",fill:new Ce({color:"black"}),text:`${this.data?.Cols[1].tuples[c].caption} -`+this.formatNumber(p,this.data?.Cols[1].tuples[c].format)}),E=this;u.setStyle(new _e({zIndex:0,fill:new Ce({color:x}),stroke:this.defaultPolyStroke,text:m}))}this.featureOverlay?.getSource().clear(),this.polyVector?.clear(),this.polyVector?.addFeatures(e),this.fitPolygonsToScreen()}getColumnIndexByDataProp(e){if(!this.data)return 0;let s=0,r=this.getDataPropValue(e)||e;return s=this.getColumnIndexByName(this.data,r),s}getFeatureText(e){let s=e.get("dataIdx");if(s===void 0)return;let r="",n=[],l="";e.get("title")&&(l=""+e.get("title")+"
");let a=this.lonLatNames;for(let h=0;h<(this.data?.Cols[0]?.tuples?.length??-1);h++){let c=this.data?.Cols[0]?.tuples[h],f=c?.caption?.toLowerCase();if(a.includes(f)||this.getDataPropValue("Key")===f||f==="key")continue;let u=this.data?.Data[s+h]?.toString()??"";c?.format&&(u=this.formatNumber(u,c.format)),u&&c&&n.push(`${c.caption}: ${u}`)}return r=l+n.join("
"),r}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-map-widget"]],viewQuery:function(s,r){if(s&1&&wi(Jf,7),s&2){let n;Si(n=Mi())&&(r.tooltip=n.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(s,r){s&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});let o=t;return o})();var Ne=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)(Ne.default);(0,ap.default)(Ne.default);(0,tp.default)(Ne.default);(0,ip.default)(Ne.default);(0,sp.default)(Ne.default);(0,rp.default)(Ne.default);(0,np.default)(Ne.default);(0,op.default)(Ne.default);var Yr=20;var Vr={treemap:{showLines:!1,showText:!1},pie:{showLines:!1}},Wt=(()=>{let t=class t extends ue{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(Lh),this.axisLabelListeners=[],this.seriesVisibility=[]}ngOnInit(){super.ngOnInit(),this.widget.isChart=!0,this.setupHeaderButtons(),this.override?.seriesTypes&&(this.seriesTypes=this.override?.seriesTypes.split(",")),this.subPrint=this.bs.subscribe("print:"+this.widget.name,()=>{if(this.chart){let e=new Blob([this.chart.getSVG()],{type:"image/svg+xml"}),s=window.open(URL.createObjectURL(e),"_blank");s&&(s.onload=()=>{let r=s?.document.querySelector("svg");r?.setAttribute("width","100%"),r?.setAttribute("height","100%"),r&&(r.style.height="auto"),s?.print()},s.onafterprint=()=>{s?.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=Ne.default.mapChart(this.chartConfig):this.widget.type.toLowerCase()==="timechart"?this.chart=Ne.default.stockChart(this.chartConfig):this.chart=Ne.default.chart(this.chartConfig)}clearSeries(e){let s=e||this.chart;if(s)for(;s.series.length>0;)s.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,s=!1){this.chart&&this.chart.update(this.chartConfig,e,!1,s)}hasOption(e){let s=this.ss.getWidgetsSettings(this.widget.dashboard);return!(!s[this.widget.name]||s[this.widget.name][e]===void 0||s[this.widget.name][e]===!1)}setYAxisMinToZero(){if(this.chartConfig.yAxis instanceof Array)for(let e=0;e{if(!n||!n.Info)return"";let l="";for(let a=0;as.visible)??[],this.clearSeries(),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){let s=this.getMinValue(e.Data);if(s>0&&s<=10&&(this.chartConfig.yAxis.min=-10),!e.Cols)return;if(e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e),this.widget.showZero&&this.setYAxisMinToZero(),this.firstRun){let r=this.ss.getWidgetsSettings(this.widget.dashboard);if(this.us.isEmbedded()){let n=this.route.snapshot.queryParamMap.get("hiddenSeries"),l=[];n&&(l=n.split(",")),l.forEach(a=>{this.chartConfig?.series?.[a]&&(this.chartConfig.series[a].visible=!1)})}else if(r[this.widget.name]&&r[this.widget.name].series)for(let n=0;n<(this.chartConfig?.series?.length||0);n++)r[this.widget.name].series[n]===!1&&this.chartConfig.series&&(this.chartConfig.series[n].visible=!1);this.firstRun=!1,this.onResize()}}(this.chart?.series?.length??0)<2&&!this.hasOption("isLegend")&&(this.widget.isLegend=!1,this.parent?.header?.cd?.detectChanges(),this.chart?.legend.update({enabled:!1}))}buildAxisTitles(e){if(this.chartConfig?.chart?.type!=="column")return;let s=!1,r=!1,n=this.getMDX(),l=n.indexOf("ON"),a=-1;l!==-1&&(a=n.indexOf("FROM",l),a!==-1&&(r=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1)),a!==-1&&(l=a,a=n.indexOf("FROM",l),s=n.substring(l,a).toLowerCase().lastIndexOf(".members")!==-1),this.chartConfig.yAxis&&e.Cols[0]&&e.Cols[0].tuples&&e.Cols[0].tuples.length&&(this.chartConfig.yAxis.title={text:e.Cols[0].tuples.map(h=>h.caption||"").join(" & ")}),this.chartConfig.xAxis&&e.Cols[1]&&e.Cols[1].tuples&&e.Cols[1].tuples.length&&(this.chartConfig.xAxis.title={text:e.Cols[1].tuples.map(h=>h.caption||"").join(" & ")})}addSeries(e,s,r,n=!1){let l=s||this.chart;if(!l)return;let a=(l.options||this.chartConfig).series?.length??-1;if(e&&e.data&&e.data.length!==0){let u=!0,p=!1;for(let b=0;bparseInt(b,10)));let p=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=u[p]||0}e.showInLegend=!0,l.addSeries(e,n,!1);let f=this.seriesVisibility[l.series.length-1];f!==void 0&&(l.series[l.series.length-1].visible=f)}enableStacking(){let e={plotOptions:{series:{stacking:"normal"}}};this.us.mergeRecursive(this.chartConfig,e)}getMinValue(e){let s=1/0;for(let r=0;rc.action==="setRowCount")[0],h=a&&parseInt(a.value.toString())||Yr;if(this.chartConfig?.plotOptions?.series?.stacking==="normal"||!this.chartConfig?.plotOptions?.series?.stacking){let c=e.Cols[1].tuples,f=e.Cols[0].tuples;if(this.widget.isTop)if(f.length===1){let u=!0;for(;u;){u=!1;let p;for(p=0;pthis.setElColor(n,s))}updateColors(e){this.zone.runOutsideAngular(()=>{let s=this.chart;if(!s)return;let r=s.options?.chart?.type;if(e.hcColors)if(r==="treemap"||r==="pie"){let l=s.options.plotOptions?.[r];l&&(l.colors=e.hcColors);for(let a=0;a{u.color=h,this.setElColor(u.graphic?.element,h)});let f=s.legend.allItems[l];f&&f.legendSymbol&&[f.legendSymbol.element,f.legendLine.element].forEach(u=>{u&&(u.setAttribute("fill",h),u.setAttribute("stroke",h))}),s.series[l].color=h}if(e.hcBorderColor&&Vr[r||""]?.showBorder!==!1)for(let l=0;l{let c=h.graphic?.element;c&&c.setAttribute("stroke",e.hcBorderColor)});if(e.hcBackground&&Vr[r||""]?.showBackground!==!1){let l=s.chartBackground.element;l.setAttribute("fill",e.hcBackground),l.setAttribute("stroke",e.hcBackground),s.options.chart&&(s.options.chart.backgroundColor=e.hcBackground)}if(e.hcLineColor&&Vr[r||""]?.showLines!==!1){let l=e.hcLineColor;s.yAxis.forEach(a=>{s.yAxis[0].options.minorGridLineColor=l,a.gridGroup.element.setAttribute("stroke",l),a.gridGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})}),s?.xAxis.forEach(a=>{a.axisGroup.element.setAttribute("stroke",l),a.axisGroup.element.childNodes.forEach(h=>{h.setAttribute("stroke",l)})})}let n=e.hcTextColor;if(n&&Vr[r||""]?.showText!==!1){let l=a=>{if(a.labelGroup){a.labelGroup.element.setAttribute("fill",n);for(let h=0;h{a.options.color=n,a.legendItem&&(a.legendItem?.group?.element?.setAttribute("color",n),a.legendItem?.group?.element?.setAttribute("fill",n),a.legendItem?.label?.element?.setAttribute("color",n),a.legendItem?.label?.element?.setAttribute("fill",n))}),s?.series.forEach(a=>a.data.forEach(h=>{let c=h.dataLabel?.element?.children[0]?.style;c&&(c.color=n,c.fill=n)}))}})}fixData(e){for(let s=0;s{s&&l>s-1||((n.children?.length??0)>1?n.children?.forEach(a=>{a.caption=n.caption+"/"+a.caption,r.push(a)}):r.push(n))}),r}buildSeries(e){this.chartConfig.series=[];let s=this.widget.controls.find(a=>a.action.toLowerCase()==="setcolumncount"),r=this.buildAxis(e.Cols[1],s?.value||0),n=this.buildAxis(e.Cols[0]);n.forEach((a,h)=>{let c=[];r.forEach((f,u)=>{c.push({y:+e.Data[u*n.length+h],drilldown:!0,cube:e.Info?.cubeName||"",path:f.path,name:f.caption,title:f.title})}),this.fixData(c),this.addSeries({data:c,name:a.caption,format:a.format,path:a.path})});let l=this.chartConfig.xAxis;l.categories=r.map(a=>a.caption)}removeAxisListeners(){this.axisLabelListeners.forEach(e=>{e.element.removeEventListener(e.event,e.func)})}saveSeriesVisiblilityState(e,s){let r=this.ss.getWidgetsSettings(this.widget.dashboard);r[this.widget.name]||(r[this.widget.name]={});let n=r[this.widget.name];n.series||(n.series={}),n.series[e]=s,this.ss.setWidgetsSettings(r,this.widget.dashboard)}setupChart(){let e=this,s=this.wts.getDesc(this.widget.type);function r(){let n=this.value,l=e.override,a=l?.valueLabelFormat,h=e.baseType;return(l?.yAxisList[0]?.axisType==="percent"||l?.xAxis.axisType==="percent"&&(h==="barChart"||h==="barChartStacked"))&&(n=e.formatNumber(n,"#%")),n}if(this.chartConfig={accessibility:{enabled:!1},drilldown:{activeAxisLabelStyle:{color:this.tc?.hcTextColor||void 0},activeDataLabelStyle:{color:this.tc?.hcTextColor||void 0}},legend:Se({enabled:this.widget.isLegend,align:"left"},this.tc?.hcTextColor?{itemStyle:{color:this.tc?.hcTextColor}}:{}),navigation:{buttonOptions:{align:"center"}},chart:{type:s?.chart||"column",backgroundColor:this.tc?.hcBackground||"transparent",events:{redraw:n=>{e.removeAxisListeners(),n.target?.series?.forEach(l=>{e.chartConfig.chart?.type==="pie"&&e.chart?.legend.allItems.forEach(a=>{let h=u=>{this.onLegendItemHover({series:a.series,index:a.index})},c=u=>{this.onLegendItemOut({series:a.series,index:a.index})},f=a.legendItem?.group.element;f&&(f.addEventListener("mouseover",h),e.axisLabelListeners.push({event:"mouseover",element:f,func:h}),f.addEventListener("mouseout",c),e.axisLabelListeners.push({event:"out",element:f,func:c}))}),l.data.forEach((a,h)=>{let c="contextmenu",f=a.graphic?.element;if(!f)return;let u=p=>{p.preventDefault(),p.stopImmediatePropagation();let b=e._currentData?.Cols[1]?.tuples;if(!b||!b[h])return;let v=l.userOptions.path,x=b[h].path;v&&(x=v),this.bs.broadcast("contextmenu",{widget:this.widget,event:p,ctxData:{canDrillthrough:this.canDoDrillthrough,canDrill:!0,drillPath:x,drillTitle:b[h].caption||b[h].title}})};a.graphic?.element?.addEventListener(c,u),this.axisLabelListeners.push({event:c,element:f,func:u})})}),e.chartConfig?.chart?.type==="pie"?e.chart?.legend?.allItems.forEach(l=>{let a=l.dataLabel?.element;if(!a)return;let h=()=>{e.showLoading(),e.doDrillOnly(l.options.path,l.name.toString(),l.name.toString()).finally(()=>{e.hideLoading()})};a.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:a,func:h})}):e.chart?.xAxis[0]?.labelGroup?.element?.childNodes?.forEach((l,a)=>{let h=()=>{let c=e._currentData?.Cols[1]?.tuples,f=e._currentData?.Cols[1]?.tuples[0]?.children;f?.length&&(a=Math.floor(a/f?.length)),!(!c||!c[a])&&(e.showLoading(),e.doDrillOnly(c[a].path,c[a].caption||c[a].title,c[a].caption||c[a].title).finally(()=>{e.hideLoading()}))};l.addEventListener("click",h),this.axisLabelListeners.push({event:"click",element:l,func:h})})}}},credits:{enabled:!1},tooltip:{formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;h=e.formatNumber(h,a);let c=l.point.title;c===l.point.name&&(c="");let f=(l.point.name||l.x||"")+"
"+(c?c+"
":"")+l.series.name+": "+h+"
";return l.point.percentage&&(f+=e.formatNumber(this.point.percentage,e.getDataPropByDataValue(this.series?.userOptions?.name||"")?.format||"#.##")+"%"),f}},exporting:{enabled:!1},plotOptions:{column:{borderColor:this.tc?.hcBorderColor||void 0},bar:{borderColor:this.tc?.hcBorderColor||void 0},pie:{borderColor:this.tc?.hcBorderColor,colors:this.tc?.hcColors},treemap:{colors:this.tc?.hcColors},series:{opacity:this.tc?.hcOpacity,cursor:"pointer",point:{events:{click(n){if(e.drillFilterWidgets?.length){e.doDrillFilter(n.point.path,e.drills),e.parent?.header?.cd.detectChanges();return}if(!n.point)return;if(de.mobile&&e._selectedPoint!==n.point){e._selectedPoint=n.point;return}let l=n.point.series.userOptions.path,a=[n.point.path];l&&a.push(l),e.showLoading(),e.doDrillthrough(a,n.point.name,n.point.category).finally(()=>{e.hideLoading()})}}},dataLabels:{color:this.tc?.hcTextColor||void 0,enabled:this.widget.showValues===!0,formatter(){let n=e.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=l.y;return h=e.formatNumber(h,a),h}},events:{hide:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible),show:n=>this.saveSeriesVisiblilityState(n.target.name,n.target.visible)}}},yAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none"},formatter:r},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},xAxis:{events:{},title:{text:""},labels:{style:{color:this.tc?.hcTextColor||void 0,textOverflow:"none",cursor:"pointer"}},minorGridLineColor:this.tc?.hcLineColor||"#e6e6e6",gridLineColor:this.tc?.hcLineColor||"#e6e6e6",lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor},series:[],title:{text:""}},this.setup3DChart(),this.chartConfig.navigator={outlineColor:this.tc?.hcLineColor,xAxis:{gridLineColor:this.tc?.hcLineColor},yAxis:{gridLineColor:this.tc?.hcLineColor}},this.widget.type.toLowerCase()==="combochart"&&(this.chartConfig.yAxis=[{events:{},gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}},{events:{},opposite:!0,gridLineColor:this.tc?.hcLineColor,lineColor:this.tc?.hcLineColor,tickColor:this.tc?.hcLineColor,labels:{style:{color:this.tc?.hcTextColor||void 0}}}],this.widget.overrides&&this.widget.overrides[0]&&this.widget.overrides[0]._type==="comboChart")){let l=this.widget.overrides.find(a=>a._type.toLowerCase()==="combochart")?.yAxisList;if(l&&l.length)for(let a=0;a{this.ss.setWidgetsSettings(s,this.widget.dashboard)};s[e]||(s[e]={}),s[e].themeColors||(s[e].themeColors={});let n=Vr[this.chart?.options?.chart?.type||""]||{};this.sbs.showComponent({component:import("./chunk-HKGXJZ6E.js"),inputs:{widgetSettings:s[e],appearance:n,onSave:r,onUpdate:l=>this.updateColors(l),chart:this.chart}})}setupAxisMinMax(e){let s=this.override,r=this.chartConfig.yAxis,n=this.chartConfig.xAxis,l=s?.yAxisList[0];e.some(a=>a<0)||(r.min=0),(this.baseType==="barChart"||this.baseType==="barChartStacked")&&(l=s?.xAxis),l?.minValue!==void 0&&(r.min=l.minValue),l?.maxValue!==void 0&&(r.max=l.maxValue)}removeUndefinedColors(e){let s=(r,n)=>{r[n]===void 0&&delete r[n]};s(e.plotOptions?.column,"borderColor"),s(e.plotOptions?.bar,"borderColor"),s(e.plotOptions?.pie,"borderColor"),s(e.plotOptions?.treemap,"borderColor"),s(e.plotOptions?.treemap,"borderColor"),s(e.drilldown?.activeAxisLabelStyle,"color"),s(e.drilldown?.activeDataLabelStyle,"color"),s(e.legend?.itemStyle,"color"),s(e.chart,"backgroundColor"),s(e.plotOptions?.series,"opacity"),s(e.plotOptions?.series?.dataLabels,"color"),s(e.yAxis?.labels?.style,"color"),s(e.yAxis,"minorGridLineColor"),s(e.yAxis,"gridLineColor"),s(e.yAxis,"lineColor"),s(e.yAxis,"tickColor"),s(e.xAxis?.labels?.style,"color"),s(e.xAxis,"minorGridLineColor"),s(e.xAxis,"gridLineColor"),s(e.xAxis,"lineColor"),s(e.xAxis,"tickColor"),this.removeEmptyObjects(e)}removeEmptyObjects(e){let s=!0;for(;s;)s=!1,Object.keys(e).forEach(r=>{typeof e[r]=="object"&&!Array.isArray(e[r])&&(Object.keys(e[r]).length===0?(s=!0,delete e[r]):this.removeEmptyObjects(e[r]))})}setup3DChart(){this.widget?.type.toLowerCase().includes("3d")&&(this.chartConfig.chart&&(this.chartConfig.chart.options3d={enabled:!0,alpha:0,beta:8,depth:50,viewDistance:8}),this.chartConfig.plotOptions?.column&&(this.chartConfig.plotOptions.column.depth=25),this.chartConfig.plotOptions?.bar&&(this.chartConfig.plotOptions.bar.depth=25),this.chartConfig.plotOptions?.pie&&(this.chartConfig.plotOptions.pie.depth=25))}sortTuplesArray(e,s){let r=new Map;s.forEach((n,l)=>{r.set(n,l)}),e.forEach((n,l)=>{n.originalIndex=l}),e.sort((n,l)=>{let a=r.get(n.dimension),h=r.get(l.dimension);return a!==void 0&&h!==void 0?a-h:a!==void 0?-1:h!==void 0?1:0})}sortTuplesBasedOnLabels(e){if(!e.Cols[0].tuples?.length)return;let s=this.widget.overrides?.find(n=>n._type==="chartLegend");if(!s)return;let r=s.legendLabels?.split(",");r&&this.sortTuplesArray(e.Cols[0].tuples,r)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var mo=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="columnchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-column-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var xo=(()=>{let t=class t extends ue{constructor(){super(...arguments),this.isSpinner=!1}ngOnInit(){this.widget.title=this.i18n.get("filters"),this.widget.toolbar=!0,this.widget.viewSize=this.getViewSize()}requestData(){}onHeaderButton(e){switch(e.name){case"setDefault":this.setFiltersToDefaults();break;case"byRows":this.setViewSize(0);break;case"by2columns":this.setViewSize(1);break;case"by3columns":this.setViewSize(2);break;case"by4columns":this.setViewSize(3);break;case"by5columns":this.setViewSize(4);break;case"by6columns":this.setViewSize(5);break}}setFiltersToDefaults(){for(let e=0;e{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-empty-widget"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var hp=(()=>{let t=class t extends Wt{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,s={levels:[{level:1,layoutAlgorithm:"sliceAndDice",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"15px",fontWeight:"bold"}}}],legend:{enabled:this.widget.isLegend},plotOptions:{series:{animation:!1,colorByPoint:!0,legendType:"point"},treemap:{dataLabels:{enabled:!0,formatter(){if(e.totalSum){let r=this.point.value/e.totalSum*100;return r=e.formatNumber(r,e.getDataPropByDataValue(this.series?.userOptions?.dimension)?.format||"#.##"),`${this.point.caption}
${r}%`}else return`${this.point.caption}`}}}},tooltip:{formatter(){let r=this.series.userOptions.caption,n=this.series.userOptions.format,l=this.point.value;return l=e.formatNumber(l,n),this.point.caption+"
"+r+": "+l+""}}};this.us.mergeRecursive(this.chartConfig,s),delete this.chartConfig.plotOptions?.series?.dataLabels}parseData(e){return Ft(this,null,function*(){this.prevData=e,e&&e.Info&&(this.dataInfo=e.Info);let s=[];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;s=[];let r=0;for(let a=0;a"+parseFloat(parseFloat(e.Data[a])/r*100).toFixed(2).toString()+"%",value:parseFloat(e.Data[a]),y:parseFloat(e.Data[a]),path:e.Cols[1].tuples[a].path,name:e.Cols[1].tuples[a].caption});let n="",l="";e.Cols[0].tuples[0]&&(n=e.Cols[0].tuples[0].caption,l=e.Cols[0].tuples[0].format),this.totalSum=e.Data.map(a=>parseFloat(a)||0).reduce((a,h)=>a+h,0),this.addSeries({data:s,name:"",layoutAlgorithm:"squarified",caption:n,dimension:e.Cols[0].tuples[0].dimension,format:l,dataLabels:{enabled:!0}},void 0,void 0,!0)}this.toggleLegend(this.widget.isLegend)}})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-tree-map"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var yo=Jt(Ms());var cp=(()=>{let t=class t extends Wt{constructor(){super(...arguments),this.thirdTitle=""}ngOnInit(){super.ngOnInit();let e=this,s={plotOptions:{bubble:{minSize:"5%",maxSize:"35%",sizeBy:"width"},series:{cursor:null,point:{events:{click:null}}}},chart:{zoomType:"xy"},xAxis:{tickWidth:10,title:{enabled:!0}},tooltip:{formatter:function(){let r=this.series.userOptions.format1,n=this.series.userOptions.format2,l=this.series.userOptions.format3,a=this.x,h=this.y,c=this.point.z;r&&(a=(0,yo.default)(a).format(r)),n&&(h=(0,yo.default)(h).format(n)),l&&(c=(0,yo.default)(c).format(l));let f=e.thirdTitle||"radius";return this.series.name+"
"+e.chartConfig.xAxis.title.text+":"+a+"
"+e.chartConfig.yAxis.title.text+":"+h+""+(c?"
"+f+": "+c.toString()+"":"")}}};this.us.mergeRecursive(this.chartConfig,s)}getSeriesNames(e){let s={};if(e.Cols[0].tuples.length==4)for(let r=3;r=1&&(this.chartConfig.xAxis.title.text=e.Cols[0].tuples[0].caption),e.Cols[0].tuples.length>=2&&(this.chartConfig.yAxis.title.text=e.Cols[0].tuples[1].caption),e.Cols[0].tuples.length>=3&&(this.thirdTitle=e.Cols[0].tuples[2].caption);let r=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this bubble chart not implemented!");else{let n=e.Cols[0].tuples.length,l="",a="",h="";e.Cols[0].tuples[0]&&(l=e.Cols[0].tuples[0].format),e.Cols[0].tuples[1]&&(a=e.Cols[0].tuples[1].format),e.Cols[0].tuples[2]&&(h=e.Cols[0].tuples[2].format);let c={},f=!1,u;if(this.hasOption("isTop")){f=!0;let v=(this.widget.controls||[]).filter(function(x){return x.action==="setRowCount"})[0];u=v?v.value||Yr:Yr}let p=f?u:e.Data.length;p>e.Data.length&&(p=e.Data.length);for(let b=0;b{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-bubble-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var bo=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={};this.widget.type.toLowerCase()!=="combochart"&&(e={plotOptions:{series:{lineWidth:3,marker:{enabled:!1}}}}),this.widget.type.toLowerCase()==="linechartmarkers"&&(e={series:{marker:{enabled:!0}}}),this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var yh=Jt(Ms());var dp=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit();let e={series:{fillColor:"#dddddF"},plotOptions:{boxplot:{fillColor:"#fafafF",whiskerLength:0,colorByPoint:!0,lineWidth:3,stemWidth:0}},tooltip:{formatter:function(){let s=this.series.userOptions.caption1||"Minimum",r=this.series.userOptions.caption2||"Maximum",n=this.series.userOptions.format1,l=this.series.userOptions.format2,a=this.point.low,h=this.point.high;return n&&(a=(0,yh.default)(a).format(n)),l&&(h=(0,yh.default)(h).format(l)),this.key+"
"+r+":"+h+"
"+s+":"+a+""}}};this.us.mergeRecursive(this.chartConfig,e)}parseData(e){return Ft(this,null,function*(){let s=this.chartConfig.xAxis;s.categories=[];for(let n=0;n{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-hi-low-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var up=Jt(Ms()),pp=Jt(Co());var Qf=["charts"];function tg(o,t){o&1&&Ht(0,"div",null,0)}var bh=(()=>{let t=class t extends Wt{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 s=this.point.y,r=this.series.userOptions.format||"#.##";return r&&(s=(0,up.default)(s).format(r.replace(",","."))),s}}}},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(s=>s.nativeElement);this.charts=[],this.confs.forEach((s,r)=>{s.chart&&(s.chart.renderTo=e?.[r]),this.charts.push(pp.default.chart(s))})}retrieveData(e){let s;if(this.hideLoading(),this.charts.forEach(r=>{for(;r.series.length>0;)r.series[0].remove()}),this.widgetData=JSON.parse(JSON.stringify(e)),e.Error){this.showError(e.Error);return}if(e){if(!e.Cols)return;e.Cols[0].tuples.length===0&&e.Data.length!==0&&e.Cols[0].tuples.push({caption:this.i18n.get("count")}),this.parseData(e)}}parseData(e){return Ft(this,null,function*(){if(this.confs.length===0){for(let s=0;sa.dataValue===e.Cols[0].tuples[s].dimension);n&&n.label&&n.label!=="$auto"&&(r=n.label),this.confs.push(this.us.mergeRecursive({},this.chartConfig));let l=this.confs[this.confs.length-1];l.title&&(l.title.text=r)}this.cd.markForCheck(),this.cd.detectChanges(),setTimeout(()=>{this.createChart(),this.parseData(e)});return}for(let s=0;sn.max&&(p=n.max),n.plotBands=[],u!==n.min&&n.plotBands.push({from:n.min,to:u,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),p!==n.max&&n.plotBands.push({from:p,to:n.max,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),l.targetValue){let b=parseFloat(l.targetValue);n.plotLines=[{value:b,color:"rgba(0, 180, 0, 0.4)",width:3,zIndex:5}]}}let a="";this.widget.properties&&this.widget.properties.format&&(a=this.widget.properties.format),e.Cols[0].tuples[s].format&&(a=e.Cols[0].tuples[s].format);let h=e.Cols[0].tuples[s].caption;l&&l.label&&l.label!=="$auto"&&(h=l.label),this.addSeries({data:[e.Data[s]||0],name:h,format:a},this.charts[s],this.confs[s]),this.charts[s]&&this.charts[s].update(this.confs[s])}})}onResize(){super.onResize(),this.charts.forEach(e=>e.reflow())}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-speedometer-chart"]],viewQuery:function(s,r){if(s&1&&wi(Qf,5),s&2){let n;Si(n=Mi())&&(r.chartsEl=n)}},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[["charts",""]],template:function(s,r){s&1&&he(0,tg,2,0,"div",null,le),s&2&&ce(r.confs)},styles:["[_nghost-%COMP%]{display:flex}div[_ngcontent-%COMP%]{flex:1 1 100%}"]});let o=t;return o})();var fp=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0;let e={plotOptions:{series:{colorByPoint:!1},area:{stacking:"normal",marker:{enabled:!1}}}};this.us.mergeRecursive(this.chartConfig,e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var gp=(()=>{let t=class t extends Wt{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 s=[];this.clearSeries();let r=Math.max.apply(null,e.Data);for(let n=0;n{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-area-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var Ur=(()=>{let t=class t extends Wt{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 s=this,r={plotOptions:{pie:{allowPointSelect:!0,cursor:"pointer",dataLabels:{enabled:!0,formatter:function(){let n=s.override,l=this,a=n?.valueLabelFormat||l.series.options.format,h=this.point.name,c=s.formatNumber(this.y,a);s.widget.showValues||(c=""),s.widget["btn.ShowAnnotations"]===!1&&(h="");let f=s.formatNumber(this.point.percentage,s.getDataPropByDataValue(this.series?.userOptions?.name)?.format||"#.##")+"%";return s.widget["btn.ShowPercents"]||(f=""),[h,c,f].filter(u=>u).join(", ")}},showInLegend:!0},series:{dataLabels:{formatter:function(){let n=this,l=n.series.options.format,a=n.y;return l&&(a=s.formatNumber(a,l)),n.key+", "+a}},point:{events:{legendItemClick:function(){let n=this.path,l=this.name,a=this.visible;s.chart?.series.forEach(h=>{h.data.forEach(c=>{(n&&c.path===n||l&&c.name===l)&&(c!==this&&c.update({visible:!a}),a&&c.setState("normal"))})})},mouseOut:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("")})},mouseOver:function(){let n=[],l=this.series,a=this.index;l.chart.series.forEach(h=>{h!==l&&n.push(h.points[a])}),n.forEach(h=>{h.setState("hover")})}}}}}};this.us.mergeRecursive(this.chartConfig,r),this.chartConfig?.plotOptions?.series?.dataLabels||(this.chartConfig.plotOptions.series.dataLabels={}),(this.chartConfig?.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.widget.showValues,this.updateChart(!0,!0)}isValuesVisible(){return this.widget.showValues||this.widget["btn.ShowAnnotations"]}onHeaderButton(e){(e.name==="ShowValues"||e.name==="btn.ShowAnnotations"||e.name==="btn.ShowPercents")&&((this.chartConfig.plotOptions?.pie?.dataLabels).enabled=this.isValuesVisible(),this.updateChart(!0),this.chart?.series.forEach((s,r)=>{r!==0&&(s.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,s,r,n=!1){let l=this._currentData?.Cols[0]?.tuples?.length||1,a=this._currentData?.Cols[1]?.tuples?.length||1;if(l!==1){let h=100/l,c=this.chart?.series.length||0;e.center=[(h/2+c*h).toString()+"%","50%"],c>a&&(e.showInLegend=!1)}super.addSeries(e,s,r,n),this.chart&&this.chart.series.length>1&&(this.chart.series[this.chart.series.length-1].options.showInLegend=!1)}updateSeriesVisibilityAndPositionForMultiplePies(){this.chart?.series.forEach((e,s)=>{e.options.showInLegend=s===0})}onLegendItemHover(e){super.onLegendItemHover(e),(this.chart?.series?.length??0)>1&&this.chart?.series.forEach(s=>{s!==e.series&&s.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(s=>{s!==e.series&&s.setState("normal",!0)}),this.chartConfig.plotOptions.series.point.events.mouseOut.call(e)}parseData(e){return Ft(this,null,function*(){yield Sh(t.prototype,this,"parseData").call(this,e),this.toggleLegend(this.widget.isLegend)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var vh=Jt(Ms());var mp=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.chartConfig.plotOptions={series:{lineWidth:3,marker:{enabled:!0}}};let e=this;this.chartConfig.tooltip={formatter(){let s=this.series.userOptions,r=s.format1,n=s.format2,l=this.y,a=this.x;r&&(l=(0,vh.default)(l).format(r)),n&&(a=(0,vh.default)(a).format(n));let h=e.chartConfig.yAxis,c=e.chartConfig.xAxis;return h.title?.text+":"+l+"
"+c.title?.text+":"+a+""}},this.updateChart()}parseData(e){return Ft(this,null,function*(){let s="",r="";if(e.Cols[0].tuples.length>=1){let l=this.chartConfig.xAxis;l?.title&&(l.title.text=e.Cols[0].tuples[0].caption),s=e.Cols[0].tuples[0].format}if(e.Cols[0].tuples.length>=2){let l=this.chartConfig.yAxis;l?.title!==void 0&&(l.title.text=e.Cols[0]?.tuples[1]?.caption),s=e.Cols[0].tuples[1].format}this.chartConfig.series=[];let n=[];if(e.Cols[0].tuples[0].children)this.showError("Data converter for this xy chart not implemented!");else{for(let l=0;l{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var xp=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.widget.isBtnValues=!0;let e=this;function s(){let n,l,a,h=this,c=new Date(h.x),f=c.toLocaleDateString();if(c.getHours()!==0&&c.getMinutes()!==0&&c.getSeconds()!==0&&(f+=" "+c.toLocaleTimeString()),h.series)return l=h.series.options.format,a=h.y,a=e.formatNumber(a,l),n=""+f+'
\u25CF'+h.series.name+": "+a,n;n=""+f+"
";for(let u=h.points.length-1;u>-1;u--)l=h.points[u].series.options.format,a=h.points[u].y,a=e.formatNumber(a,l),n+='\u25CF'+h.points[u].series.name+": "+a+"
";return n}let r={options:{chart:{zoomType:"x"},tooltip:{formatter:s},navigator:{enabled:!0},scrollbar:{enabled:!1}},series:[],useHighStocks:!0,loading:!0};this.us.mergeRecursive(this.chartConfig,r)}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 s=[],r,n;if(e.Cols[0].tuples[0].children){let l=0;for(let a=0;a=0;l--){for(s=[],n=0;n1&&(h=parseInt(a[1])),l=this.addDays(l,parseInt(r)),h&&l.setSeconds(h),Date.parse(l)}else return this.getDate(e)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-line-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var Ch=(()=>{let t=class t extends Wt{ngOnInit(){super.ngOnInit(),this.widget.isBtnZero=!0,this.widget.isBtnValues=!0,this.widget.type.toLowerCase()==="barchartstacked"&&this.enableStacking()}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-bar-chart"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();var yp=Jt(Co());function eg(o,t){if(o&1&&(Dt(0,"div",2)(1,"div",4),re(2),It(),Ht(3,"span")(4,"span")(5,"span")(6,"span"),Dt(7,"div",4),re(8),It()()),o&2){let i=Bt().$implicit;Lt(2),Fe(i.rangeLower||"0"),Lt(6),Fe(i.rangeUpper||"0")}}function ig(o,t){if(o&1&&(Dt(0,"div"),re(1),It()),o&2){let i=Bt().$implicit;Ze("align-left",i.display==="label"),Lt(),ws(" ",i.label," ")}}function sg(o,t){if(o&1&&(Dt(0,"td"),sr(1,eg,9,2,"div",2)(2,ig,2,3,"div",3),It()),o&2){let i,e=t.$implicit;Ze("plotbox-cell",e.display==="plotBox"),Lt(),rr((i=e.display)==="plotBox"?1:2)}}function rg(o,t){if(o&1&&(Dt(0,"div"),Ht(1,"img",7),It()),o&2){let i=Bt().$index,e=Bt().$index,s=Bt();Lt(),_s("src",s.data[e][i],Cs)}}function ng(o,t){if(o&1&&Ht(0,"span",10),o&2){let i=Bt(2).$index,e=Bt().$index,s=Bt();Oe("left",s.targets[e][i],"%")}}function og(o,t){if(o&1&&(Dt(0,"div",8),sr(1,ng,1,2,"span",9),It()),o&2){let i=Bt().$index,e=Bt().$index,s=Bt();Oe("background-color",s.color)("width",s.data[e][i],"%"),Lt(),rr(s.targets[e][i]?1:-1)}}function ag(o,t){if(o&1&&(Dt(0,"div"),re(1),It()),o&2){let i=Bt().$index,e=Bt().$index,s=Bt();Lt(),ws(" ",s.data[e]?s.data[e][i]:""," ")}}function lg(o,t){if(o&1&&(Dt(0,"td"),sr(1,rg,2,1,"div")(2,og,2,5,"div",6)(3,ag,2,1,"div"),It()),o&2){let i,e=t.$implicit,s=Bt(2);Oe("width",e.display==="plotBox"?100/s.props.length*2:null,"%"),Ze("align-left",e.display==="label")("align-center",e.display==="itemNo"),Lt(),rr((i=e.display)==="trendLine"?1:i==="plotBox"?2:3)}}function hg(o,t){if(o&1&&(Dt(0,"tr"),he(1,lg,4,7,"td",5,le),It()),o&2){let i=Bt();Lt(),ce(i.props)}}function cg(o,t){if(o&1&&(Dt(0,"td"),re(1),It()),o&2){let i=t.$implicit;Lt(),ws(" ",i," ")}}function dg(o,t){if(o&1&&(Dt(0,"tr",1),he(1,cg,2,1,"td",null,le),It()),o&2){let i=Bt();Lt(),ce(i.footerValues)}}var bp=(()=>{let t=class t extends ue{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,s,r,n,l){switch(r.display||""){case"itemNo":return(s+1).toString();case"label":return this.rows[s].caption;case"":case"value":case"plotBox":{let a=r.format,h=this.getPropValue(e,s,r);if(r.display==="plotBox"){let c=r.rangeLower||0,f=r.rangeUpper||0;return n!==void 0&&(c=n),l!==void 0&&(f=l),r.showAs==="target%"?parseFloat(h)/parseFloat(this.getPropValue(e,s,r,"targetValue"))*100:f-c===0?0:(h-c)/(f-c)*100}else{if(h==="")return"";if(r.showAs==="target%"){let c=this.getPropValue(e,s,r,"targetValue");return this.formatNumber(h/c,a)}return r.showAs==="sum%"?this.formatNumber(h/this.totalByColumn[r.dataValue],a||"#.##%"):this.formatNumber(h,a)}}case"trendLine":{let a=this.getColumnIndex(r.dataValue),h="";return a!==-1&&(h=e[s*this.columns.length+a]),this.getSvgForTrendLine(r,h)}}return 0}prepareFooter(){if(this.hasFooter=this.props.some(e=>e.summary==="sum"),this.footerValues=[],!!this.hasFooter)for(let e=0;e{this.ss.setWidgetsSettings(s,this.widget.dashboard)};s[e]||(s[e]={}),s[e].themeColors||(s[e].themeColors={}),this.sbs.showComponent({component:import("./chunk-HKGXJZ6E.js"),inputs:{appearance:{showSeries:[!0,!1,!1,!1,!1,!1,!1,!1,!1,!1],showBackground:!1,showLines:!1,showText:!1,showBorder:!1},widgetSettings:s[e],onSave:r,onUpdate:n=>this.updateColors(n)}})}getPropValue(e,s,r,n="dataValue"){let l=!isNaN(parseFloat(r[n])),a=r[n];if(!l){let h=this.getColumnIndex(r[n]);h===-1?a=0:a=e[s*this.columns.length+h]}return a}getColumnIndex(e){return this.columns.findIndex(r=>r.dimension?e.split("/").includes(r.dimension):/^Properties\(\"([^)]+)\"\)/.exec(r.valueID)?.[1]===e)}prepareData(e){let s=[];for(let r=0;r(f+a)%this.columns.length===0);l=Math.max(...h),n=Math.min(...h)}n=0,s.push({min:n,max:l}),this.props[r].rangeLower||(this.props[r].rangeLower=n),this.props[r].rangeUpper||(this.props[r].rangeUpper=l)}this.preparePercentageSums(e),this.data=[],this.targets=[];for(let r=0;r{if(!u)return 0;let p=parseFloat(u);return isNaN(p)?0:p}):typeof s=="number"?n=[s]:Array.isArray(s);let l=Math.max(...n),a=Math.min(...n),h=(n.length-1)*4,c=` - r.showAs==="sum%");s?.length&&s.forEach(r=>{let n=this.columns.findIndex(l=>l.dimension===r.dataValue);this.totalByColumn[r.dataValue]=e.reduce((l,a,h)=>{if(h%this.columns.length!==n||a==="")return l;let c=parseFloat(a);return isNaN(c)?l:l+c},0)})}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,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(s,r){s&1&&(Dt(0,"table")(1,"thead")(2,"tr"),he(3,sg,3,3,"td",0,le),It()(),Dt(5,"tbody"),he(6,hg,3,0,"tr",null,le),sr(8,dg,3,0,"tr",1),It()()),s&2&&(Lt(3),ce(r.props),Lt(3),ce(r.rows),Lt(2),rr(r.hasFooter?8:-1))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{overflow-y:auto}table[_ngcontent-%COMP%]{border-collapse:separate;border-spacing:0;width:100%}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{color:#686868}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{position:relative;z-index:2}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{white-space:pre;text-align:right;position:sticky;top:0;padding:0 10px;height:40px;background-color:var(--cl-widget-filter-bg);border-bottom:1px solid var(--cl-header-border)}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:6px 10px;text-align:right}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-left[_ngcontent-%COMP%]{text-align:left}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td.align-center[_ngcontent-%COMP%]{text-align:center}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%] > td[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:30px}table[_ngcontent-%COMP%] > tbody[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#00000003}.box[_ngcontent-%COMP%]{height:18px;flex-shrink:0;flex-grow:0;position:relative}.boxes-container[_ngcontent-%COMP%]{display:flex}.boxes-container[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:40px;flex-shrink:0;flex-grow:0;margin-right:10px}.axis[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:10px;border-bottom:1px solid gray;height:6px;border-left:1px solid gray;margin-top:28px;position:relative}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]{position:absolute;text-align:center;top:-14px}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:first-child{left:0;transform:translate(-50%)}.axis[_ngcontent-%COMP%] > .label[_ngcontent-%COMP%]:last-child{right:0;transform:translate(50%)}.axis[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:100%;border-right:1px solid gray}.footer[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{color:var(--cl-txt);background-color:var(--cl-widget-filter-bg);border-top:1px solid var(--cl-header-border);position:sticky;bottom:0}.target[_ngcontent-%COMP%]{display:inline-block;width:2px;transform:translate(-1);background-color:#1c1d20;height:calc(100% + 4px);position:absolute;top:-2px}.plotbox-cell[_ngcontent-%COMP%]{z-index:1}"]});let o=t;return o})();var Js=(()=>{let t=class t extends ue{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 s=!!this.widget?.dataProperties?.length,r=s?this.widget?.dataProperties:e.Cols[0].tuples;for(let n=0;nx.dimension===l.dataValue);h=e.Cols[0].tuples[v].caption,a=e.Data[v]}else h=r[n].caption,a=e.Data[n];let c=1,f=parseFloat(l.rangeLower.toString()),u=parseFloat(l.rangeUpper.toString());isNaN(f)&&(f=0),isNaN(u)&&(u=100);let p=f,b=u;isNaN(p)&&(p=33.33333),isNaN(b)&&(b=66.66666),a=b&&(c=2),this.data.push({caption:h,state:c,value:a,min:f,max:u})}}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["ng-component"]],standalone:!0,features:[Ct,vt],decls:0,vars:0,template:function(s,r){},encapsulation:2});let o=t;return o})();function ug(o,t){if(o&1&&(Dt(0,"div",0),Ht(1,"img",1),Dt(2,"label"),re(3),It()()),o&2){let i=t.$implicit;Lt(),_s("src","assets/img/smiley/"+(i.state===1?"smile-yellow.svg":i.state===0?"smile-red.svg":"smile-green.svg"),Cs),Lt(2),Fe(i.caption)}}var vp=(()=>{let t=class t extends Js{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-wsmiley"]],hostVars:2,hostBindings:function(s,r){s&2&&Oe("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(s,r){s&1&&he(0,ug,4,2,"div",0,le),s&2&&ce(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();function pg(o,t){if(o&1&&Ht(0,"div",3),o&2){let i=t.$implicit,e=Bt().$implicit;Ze("filled",e.progress>=i+1)}}function fg(o,t){if(o&1&&(Dt(0,"div",0)(1,"div",1),he(2,pg,1,2,"div",2,le),It(),Dt(4,"label"),re(5),It()()),o&2){let i=t.$implicit,e=Bt();Lt(),Ze("high",i.state===2)("low",i.state===0),Lt(),ce(e.dots),Lt(3),Fe(i.caption)}}var Cp=(()=>{let t=class t 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(s=>{s.progress=(s.value-s.min)/(s.max-s.min)*10,isNaN(s.progress)&&(s.progress=0)}),console.log(this.data)}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-light-bar"]],hostVars:2,hostBindings:function(s,r){s&2&&Oe("grid-template-columns",r.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(s,r){s&1&&he(0,fg,6,5,"div",0,le),s&2&&ce(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}.holder[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar[_ngcontent-%COMP%]{display:flex;width:100%;height:24px;border:1px solid var(--cl-accent);border-radius:1000px;padding-left:3px;padding-right:3px;gap:4px;justify-content:space-between;align-items:center}.dot[_ngcontent-%COMP%]{background:var(--cl-hover);border-radius:1000px;width:100%;height:100%;max-width:18px;max-height:18px}.dot.filled[_ngcontent-%COMP%]{background:var(--cl-accent)}.bar.high[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:last-child{background-color:#e07d86}.bar.low[_ngcontent-%COMP%] > .dot[_ngcontent-%COMP%]:first-child{background-color:#175ab8}"],changeDetection:0});let o=t;return o})();function gg(o,t){if(o&1&&(Dt(0,"div",0),Ht(1,"img",1),Dt(2,"label"),re(3),It()()),o&2){let i=t.$implicit;Lt(),_s("src","assets/img/traffic-light/"+(i.state===1?"yellow.svg":i.state===0?"red.svg":"green.svg"),Cs),Lt(2),Fe(i.caption)}}var _p=(()=>{let t=class t extends Js{constructor(){super(...arguments),this.widget={}}get gridColumns(){return"repeat("+(this.data?.length>=3?3:this.data?.length||0).toString()+", 1fr)"}};t.\u0275fac=(()=>{let e;return function(r){return(e||(e=_t(t)))(r||t)}})(),t.\u0275cmp=bt({type:t,selectors:[["dsw-traffic-light"]],hostVars:2,hostBindings:function(s,r){s&2&&Oe("grid-template-columns",r.gridColumns)},inputs:{widget:"widget"},standalone:!0,features:[Ct,vt],decls:2,vars:0,consts:[[1,"card"],[3,"src"]],template:function(s,r){s&1&&he(0,gg,4,2,"div",0,le),s&2&&ce(r.data)},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:grid;width:100%;height:100%;font-family:Oxygen;-webkit-user-select:initial;user-select:initial;align-items:center;justify-content:center;gap:20px}img[_ngcontent-%COMP%]{width:100%;max-height:calc(100% - 24px);max-width:100%}.card[_ngcontent-%COMP%]{width:100%;height:100%;flex:1 1 100%;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.card[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:100%}label[_ngcontent-%COMP%]{width:100%;font-family:Oxygen;color:gray;font-size:14px;text-align:center;height:24px;max-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0});let o=t;return o})();var mg=["popup"],xg=["tooltip"],wp=(()=>{let _MapWidgetOldComponent=class _MapWidgetOldComponent extends ue{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=o=>{let t=o.data;switch(t.type){case"map.applyStyle":this.applyStyle(t);break}},window.addEventListener("message",this.onMessage))}applyStyle(o){let{selector:t,style:i,value:e}=o,s=this.map?.getTargetElement();(s&&s.querySelectorAll(t))?.forEach(n=>{n.style[i]=e})}ngAfterViewInit(){this.createMap()}ngOnDestroy(){this.us.isEmbedded()&&window.removeEventListener("message",this.onMessage),this.tooltip?.nativeElement?.remove(),super.ngOnDestroy()}createMap(){let o=this.ss.getAppSettings(),t;t=this.getDataPropValue("tileUrl");let i=new Ir({wrapX:!0,url:t}),e=new On({layers:[new Rr({source:i})],controls:gs({attributionOptions:{collapsible:!1}}),target:this.el.nativeElement,view:new ve({center:[0,0],zoom:2})});e.getViewport().addEventListener("mouseout",s=>{this.hideTooltip()},!1),this.map=e,this.initialize()}hideTooltip(){this.hintTimeout&&clearTimeout(this.hintTimeout),this.tooltip&&(this.tooltip.nativeElement.style.display="none")}rejectTooltipCreation(){clearTimeout(this.hintTimeout)}showTooltip(o,t,i){this.hintTimeout&&clearTimeout(this.hintTimeout),this.hintTimeout=setTimeout(()=>{let e=this.tooltip?.nativeElement,s=this.getDataPropValue("tooltipStyles");if(s){let r=JSON.parse(s);for(let n in r)e.style.setProperty(n,r[n])}e.innerHTML=o,e.style.left=t.toString()+"px",e.style.top=i.toString()+"px",e.style.display="block"},600)}showPopup(){let o=this.popupElement,t=this.getDataPropValue("popupStyles");if(t){let i=JSON.parse(t);for(let e in i)o.style.setProperty(e,i[e])}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(o){this.hideTooltip(),this.rejectTooltipCreation(),this.widget.type==="pivot"?(this.widget.isDrillthrough=!1,this.restoreWidgetType()):(this.widget.pivotMdx=o||this.getMDX(),this.changeWidgetType("pivot"))}requestPolygons(){let o=this.widget.name;this.widget.name.indexOf(".")===-1&&(o+=".js"),o=this.getDataPropValue("coordsJsFile")||o;let i=(this.ss.serverSettings.DefaultApp||"/csp")+"/"+o;this.ds.getFile(i).then(e=>this.onPolyFileLoaded(e)).catch(e=>{this.loadDefaultGeoJSON()}).finally(()=>this.hideLoading())}onPolyFileLoaded(result){this.isGeoJSON=!1;try{let o=JSON.parse(result);this.polyData=o,this.isGeoJSON=!0,this.buildPolygons();return}catch(o){}var polys={};result="("+result+")(polys)",eval(result),this.polyData=polys,this.buildPolygons()}onPolyJSONFileLoaded(o){this.polyData=o,this.buildPolygons()}getFeatureColor(o,t){let i=this.mapData.Cols[1].tuples.filter(c=>c.caption===o);if(i.length===0)return;i=i[0];let e,s=this.mapData.Cols[1].tuples.indexOf(i),r=this.mapData.Cols[0].tuples.length,n="ColorExplicitValue";n=this.getDataPropValue("colorProperty")||n;let l;isNaN(parseInt(n,10))?l=this.mapData.Cols[0].tuples.filter(c=>c.caption===n):l=this.mapData.Cols[0].tuples.slice(n,1),l=l[0];let a=this.mapData.Cols[0].tuples.indexOf(l),h=this.mapData.Data[s*r+a];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)"),e=h.split(","),e[3]="0.4)",e.join(",");{let c=this.getDataPropValue("colorFormula")||"hsl((255-x)/255 * 120, 100%, 50%)";this.isRGBColor&&(c="rgb(x, 255-x, 0)");let f=c.indexOf("("),u=c.substring(0,f).toLowerCase();c=c.substring(f+1,c.length-1),e=c.split(",");let p=t||0;for(let b=0;b255&&(x=255),x<0&&(x=0),e[b]=Math.floor(x).toString()}return u.indexOf("a")===-1?u+"a("+e.join(",")+", 0.45)":u+"("+e.join(",")+")"}}centerView(o,t){let i,e,s;if(this.widget.properties&&(i=parseFloat(this.widget.properties.latitude),e=parseFloat(this.widget.properties.longitude),s=parseFloat(this.widget.properties.zoom)),this.drills.length===0&&!isNaN(i)&&!isNaN(e)&&!isNaN(s)&&i!==void 0&&e!==void 0&&s!==void 0)this.map?.getView().setCenter(Hi([e,i],"EPSG:4326","EPSG:900913")),this.map?.getView().setZoom(s);else{if(Math.abs(o[0]-t[0])<1e-8&&Math.abs(o[1]-t[1])<1e-8)return;let r=Hi([o[0],o[1]],"EPSG:4326","EPSG:900913"),n=Hi([t[0],t[1]],"EPSG:4326","EPSG:900913");this.map?.getView().fit([r[0],r[1],n[0],n[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 o,t,i,e,s,r,n,l,a,h,c,f;this.isRGBColor=!1;let u=this.getDataPropValue("colorProperty")||"ColorHSLValue",p=this.getDataPropValue("coordsProperty")||"CoordKeyValue";if(!this.polyData||!this.map||!this.mapData)return;if(this.isWorldMap){this.buildWorldMapPolygons();return}let b=[];n=this.mapData.Cols[0].tuples.length;let v=Number.MAX_VALUE,x=Number.MIN_VALUE,m=0;for(isNaN(parseInt(u))?(f=this.mapData.Cols[0].tuples.filter(w=>w.caption===u),m=this.mapData.Cols[0].tuples.indexOf(f[0]),m===-1&&(this.isRGBColor=!0,u="ColorRGBValue",f=this.mapData.Cols[0].tuples.filter(w=>w.caption===u),m=this.mapData.Cols[0].tuples.indexOf(f[0]))):m=parseInt(this.widget.properties.colorProperty,10)||0,l=0;lx&&(x=a);let E=[99999999,99999999],L=[-99999999,-99999999],S=0;for(c=-1,f=this.mapData.Cols[0].tuples.filter(w=>w.caption===p),f.length===0&&(f=this.mapData.Cols[0].tuples.filter(w=>w.caption==="Key")),f.length!==0&&(c=this.mapData.Cols[0].tuples.indexOf(f[0])),l=0;lL[0]&&(L[0]=parseFloat(k)),parseFloat(t)>L[1]&&(L[1]=parseFloat(t)),g.push(M.getCoordinates())}if(C.push(g),C.length>300){let y=[];for(e=0;ed.caption===A);if(C.length!==0){let d=this.mapData.Cols[0].tuples.indexOf(C[0]);d!==-1&&(_=this.mapData.Data[l*n+d])}}let F=hi;if(this.isGeoJSON){switch(h.type.toLowerCase()){}F=Xr}let P=new bs({geometry:new F(O),key:w,title:_,dataIdx:l*n,path:this.mapData.Cols[1].tuples[l].path,desc:this.mapData.Cols[1].tuples[l].title}),D;if(isNaN(parseFloat(_))||(_=this.formatNumber(_,"")),I){let C=JSON.parse(I),d=C.size||12,g=C.font||"Calibri,Arial,sans-serif",y=C.color||"#000",M=C.stroke||"#fff",k=C.strokeWidth||2;D=new is({font:`${d}px ${g}`,fill:new Ce({color:y}),stroke:new De({color:M,width:k}),text:_+""})}a=this.mapData.Data[l*n+m],P.setStyle(new _e({zIndex:0,fill:new Ce({color:this.getFeatureColor(w,(a-v)*255/(x-v))||"none"}),stroke:new De({color:"rgba(0, 0, 0, 0.3)",width:1}),text:D})),b.push(P)}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(b),setTimeout(()=>{this.centerView(E,L)})}retrieveData(o){if(setTimeout(()=>{this.map?.updateSize()},0),o.Error){this.showError(o.Error);return}o.Info&&(this.dataInfo=o.Info),this.hideTooltip(),this.markers.clear(),this.mapData=o,this.buildPolygons();let t=[Number.MAX_VALUE,Number.MAX_VALUE],i=[-Number.MAX_VALUE,-Number.MAX_VALUE];if(o&&this.map){let e=o.Cols[0].tuples.length,s=0,r=[],n="latitude";this.widget.properties&&this.widget.properties.latitudeProperty&&(n=this.widget.properties.latitudeProperty);let l="longitude";this.widget.properties&&this.widget.properties.longitudeProperty&&(l=this.widget.properties.longitudeProperty);let a=-1,h=-1,c=o.Cols[0].tuples.filter(u=>u.caption.toLowerCase()===n);if(c.length!==0&&(h=o.Cols[0].tuples.indexOf(c[0])),c=o.Cols[0].tuples.filter(u=>u.caption.toLowerCase()===l),c.length!==0&&(a=o.Cols[0].tuples.indexOf(c[0])),h===-1||a===-1)return;let f=o.Cols[1].tuples;f[0]?.children&&(f=f[0]?.children);for(let u=0;ui[1]&&(i[1]=parseFloat(b.toString())),parseFloat(p.toString())>i[0]&&(i[0]=parseFloat(p.toString())),t[0]==i[0]&&(t[0]-=.25,i[0]+=.25),t[1]==i[1]&&(t[1]-=.25,i[1]+=.25),r.push(L),s+=e}r.length!==0&&(this.markers.addFeatures(r),this.centerView(t,i)),this.centerView(t,i)}}initialize(){this.iconStyle=new _e({zIndex:100,image:new zi({anchor:[.5,40],anchorXUnits:"fraction",anchorYUnits:"pixels",opacity:1,src:"assets/img/map-marker-red.png"})});let o=this.map,t=new _e({zIndex:0,stroke:new De({color:"rgba(0, 0, 0, 0.5)",width:1})});this.polyStyle=t,this.hoverStyle=new _e({zIndex:1,stroke:new De({color:"blue",width:2})}),this.polys=new xi({features:[]});let i=new vi({source:this.polys,style:this.polyStyle});i.setZIndex(1),this.map?.addLayer(i),this.markers=new xi({features:[]});let e=new ne;this.featureOverlay=new vi({map:this.map,source:new xi({features:e,useSpatialIndex:!1}),style:this.hoverStyle,updateWhileAnimating:!0,updateWhileInteracting:!0}),this.featureOverlay.setZIndex(10),this.featureOverlay.setMap(this.map),this.markers&&(i=new vi({source:this.markers,style:this.iconStyle}),i.setZIndex(100),this.map?.addLayer(i)),this.map?.on("click",s=>this.onMapClick(s)),this.map?.on("pointermove",s=>this.onPointerMove(s))}onPointerMove(o){if(de.mobile&&o.originalEvent.touches&&o.originalEvent.touches.length!==1)return;this.hideTooltip();let t=this.map?.forEachFeatureAtPixel(o.pixel,(e,s)=>e);if(t){let e=t.get("dataIdx"),s,r="TooltipValue",n="";if(this.isWorldMap){let l=[];for(let a=0;a${h.caption}:
${c}`)}s=l.join("
"),s?.toString()&&this.showTooltip(s.toString(),o.pixel[0],o.pixel[1])}else{let l=this.getDataProp("tooltipProperty");l&&(r=l.dataValue,n=l.format),s=this.getDataByColumnName(this.mapData,r||"Name",e,n),!s&&this.widget.properties?.polygonTitleProperty&&t.get("title")&&(s=t.get("title")),s||(s=this.getDataByColumnName(this.mapData,"Name",e)),s||(s=(this.mapData.Cols[1].tuples[0]?.children||this.mapData.Cols[1].tuples)[Math.floor(e/this.mapData.Cols[0].tuples.length)].caption||""),s?.toString()&&this.showTooltip(s.toString(),o.pixel[0],o.pixel[1])}}if(o.dragging){this.hideTooltip();return}let i=this.map?.getEventPixel(o.originalEvent);if(i){let e=this.map?.hasFeatureAtPixel(i);(this.map?.getTarget()).style.cursor=e?"pointer":""}this.featureOverlay?.getSource().clear(),t&&this.featureOverlay?.getSource().addFeature(t)}getTooltipData(o){if(!this.mapData)return;let t=[],i=this.mapData.Cols[1].tuples.filter(l=>l.caption===o);if(i.length===0)return;i=i[0];let e=this.mapData.Cols[1].tuples.indexOf(i),s=this.mapData.Cols[0].tuples.length,r=this.mapData.Cols[0].tuples.filter(l=>l.caption==="tooltip");if(r.length===0)return;r=r[0];let n=this.mapData.Cols[0].tuples.indexOf(r);return t.push({label:"",value:this.mapData?.Data[e*s+n].split(":")[1]||""}),t}onMapClick(o){if(this.hidePopup(),de.mobile&&o.originalEvent.touches&&o.originalEvent.touches.length!==1)return;let t=this.map?.forEachFeatureAtPixel(o.pixel,(e,s)=>e);if(t){if(this.hideTooltip(),de.mobile&&this._selectedFeature!==t){this._selectedFeature=t,this.onPointerMove(o);return}this.doDrill(t.get("path"),t.get("name")||t.get("title"),void 0,()=>{i(t)})}else this.hideTooltip();let i=e=>{let s=e.get("dataIdx"),r,n,l="PopupValue",a="",h=this.getDataProp("popupProperty");if(h&&(l=h.dataValue,a=h.format),l?(n=""+(e.get("key")||e.values_.title)+"
",n+=l+": ",n+=this.getDataByColumnName(this.mapData,l,s,a)):n=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||"",!n)if(n=""+(e.get("name")||e.values_.title)+"
",this.mapData?.Cols[0].tuples.length)for(let c=0;c${u}`,c!==this.mapData?.Cols[0].tuples.length-1&&(n+="
")}else n=this.getDataByColumnName(this.mapData,"Name",s);n&&(this.tooltipData.content=n,this.popupElement&&(this.popupElement.style.left=o.pixel[0]+"px",this.popupElement.style.top=o.pixel[1]-10+"px",this.popupElement.innerHTML=n),this.showPopup())}}onResize(){this.map&&this.map.updateSize()}buildGeoJSON(o){}getPartsByKey(o,t="Key"){if(this.isGeoJSON){let i=this.polyData?.features.find(e=>e.properties[t]===o);return i?i.geometry:void 0}else if(this.polyData?.[o])return this.polyData[o]?.split(";")}convertCoordinatesOfGEOJson(o,t,i){let e=JSON.parse(JSON.stringify(o.coordinates));for(let s=0;si[0]&&(i[0]=parseFloat(c)),parseFloat(a)>i[1]&&(i[1]=parseFloat(a))}return{poly:e,min:t,max:i}}loadDefaultGeoJSON(){return Ft(this,null,function*(){let o;try{o=yield this.ds.getJSONFile("assets/countries.json")}catch{console.error(`Can't load default GEOJSON: "assets/countries.json"`);return}if(!o)return;let t=new xi;t.addFeatures(new Wr().readFeatures(o,{dataProjection:"EPSG:4326",featureProjection:this.map?.getView().getProjection()})),this.worldMap=t;let i=new vi({source:t});this.polyData=o,this.isWorldMap=!0,this.isGeoJSON=!0})}buildWorldMapPolygons(){let o=this.polyData.features,t=[],i=Number.MAX_VALUE,e=Number.MIN_VALUE;for(let s=0;se&&(e=r)}for(let s=0;sp.get("name")===r);if(!n)continue;n.set("dataIdx",s*2),n.set("title",r),n.set("path",this.mapData.Cols[1].tuples[s].path),t.push(n);let l=this.mapData.Data[s*2+1],c=`hsla(${(255-(l-i)/(e-i)*255)/255*120}, 100%, 50%, 0.6)`,f=new is({font:"8px Oxygen",fill:new Ce({color:"black"}),text:`${r} -`+l.toString()}),u=this;n.setStyle(new _e({zIndex:0,fill:new Ce({color:c}),stroke:new De({color:"rgba(0, 0, 0, 0.3)",width:1}),text:f}))}this.featureOverlay.getSource().clear(),this.polys.clear(),this.polys.addFeatures(t),this.fitPolygonsToScreen()}getMaxPoly(o){let t=[];for(let i=0;i{let o;return function(i){return(o||(o=_t(_MapWidgetOldComponent)))(i||_MapWidgetOldComponent)}})(),_MapWidgetOldComponent.\u0275cmp=bt({type:_MapWidgetOldComponent,selectors:[["dsw-map-widget"]],viewQuery:function(t,i){if(t&1&&(wi(mg,7),wi(xg,7)),t&2){let e;Si(e=Mi())&&(i.popupEl=e.first),Si(e=Mi())&&(i.tooltip=e.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,i){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}']});let MapWidgetOldComponent=_MapWidgetOldComponent;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[de.const.emptyWidgetClass]={class:xo,type:"empty"};var lp=(()=>{let t=class t{constructor(){}initialize(){let e=de.addons;if(e&&e&&e.length)for(let s=0;s{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-XKIQHZUY.js b/dist/chunk-RAMUQZX4.js similarity index 99% rename from dist/chunk-XKIQHZUY.js rename to dist/chunk-RAMUQZX4.js index 2c7cde11..0ed4c576 100644 --- a/dist/chunk-XKIQHZUY.js +++ b/dist/chunk-RAMUQZX4.js @@ -1 +1 @@ -import"./chunk-DEPBX7UX.js";var e=Worker;function r(){let A='function A(A,e,t,i,r,I,g){try{var n=A[I](g),a=n.value}catch(A){return void t(A)}n.done?e(a):Promise.resolve(a).then(i,r)}function e(e){return function(){var t=this,i=arguments;return new Promise((function(r,I){var g=e.apply(t,i);function n(e){A(g,r,I,n,a,"next",e)}function a(e){A(g,r,I,n,a,"throw",e)}n(void 0)}))}}function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}var i={exports:{}};!function(A){var e=function(A){var e,i=Object.prototype,r=i.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},g=I.iterator||"@@iterator",n=I.asyncIterator||"@@asyncIterator",a=I.toStringTag||"@@toStringTag";function o(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{o({},"")}catch(A){o=function(A,e,t){return A[e]=t}}function B(A,e,t,i){var r=e&&e.prototype instanceof h?e:h,I=Object.create(r.prototype),g=new S(i||[]);return I._invoke=function(A,e,t){var i=Q;return function(r,I){if(i===s)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw I;return R()}for(t.method=r,t.arg=I;;){var g=t.delegate;if(g){var n=m(g,t);if(n){if(n===c)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===Q)throw i=f,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=s;var a=C(A,e,t);if("normal"===a.type){if(i=t.done?f:E,a.arg===c)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(i=f,t.method="throw",t.arg=a.arg)}}}(A,t,g),I}function C(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=B;var Q="suspendedStart",E="suspendedYield",s="executing",f="completed",c={};function h(){}function l(){}function u(){}var w={};o(w,g,(function(){return this}));var d=Object.getPrototypeOf,D=d&&d(d(v([])));D&&D!==i&&r.call(D,g)&&(w=D);var y=u.prototype=h.prototype=Object.create(w);function k(A){["next","throw","return"].forEach((function(e){o(A,e,(function(A){return this._invoke(e,A)}))}))}function p(A,e){function i(I,g,n,a){var o=C(A[I],A,g);if("throw"!==o.type){var B=o.arg,Q=B.value;return Q&&"object"===t(Q)&&r.call(Q,"__await")?e.resolve(Q.__await).then((function(A){i("next",A,n,a)}),(function(A){i("throw",A,n,a)})):e.resolve(Q).then((function(A){B.value=A,n(B)}),(function(A){return i("throw",A,n,a)}))}a(o.arg)}var I;this._invoke=function(A,t){function r(){return new e((function(e,r){i(A,t,e,r)}))}return I=I?I.then(r,r):r()}}function m(A,t){var i=A.iterator[t.method];if(i===e){if(t.delegate=null,"throw"===t.method){if(A.iterator.return&&(t.method="return",t.arg=e,m(A,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return c}var r=C(i,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var I=r.arg;return I?I.done?(t[A.resultName]=I.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,c):I:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function G(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function F(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(G,this),this.reset(!0)}function v(A){if(A){var t=A[g];if(t)return t.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var i=-1,I=function t(){for(;++i=0;--I){var g=this.tryEntries[I],n=g.completion;if("root"===g.tryLoc)return i("end");if(g.tryLoc<=this.prev){var a=r.call(g,"catchLoc"),o=r.call(g,"finallyLoc");if(a&&o){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),F(t),c}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var i=t.completion;if("throw"===i.type){var r=i.arg;F(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,i){return this.delegate={iterator:v(A),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),c}},A}(A.exports);try{regeneratorRuntime=e}catch(A){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(i);var r=i.exports,I=new Map;function g(A,e){Array.isArray(A)||(A=[A]),A.forEach((function(A){return I.set(A,e)}))}function n(A){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function A(e){var t,i;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=I.get(e.Compression)){A.next=3;break}throw new Error("Unknown compression method identifier: ".concat(e.Compression));case 3:return A.next=5,t();case 5:return i=A.sent,A.abrupt("return",new i(e));case 7:case"end":return A.stop()}}),A)})))).apply(this,arguments)}g([void 0,1],(function(){return Promise.resolve().then((function(){return y})).then((function(A){return A.default}))})),g(5,(function(){return Promise.resolve().then((function(){return F})).then((function(A){return A.default}))})),g(6,(function(){throw new Error("old style JPEG compression is not supported.")})),g(7,(function(){return Promise.resolve().then((function(){return N})).then((function(A){return A.default}))})),g([8,32946],(function(){return Promise.resolve().then((function(){return OA})).then((function(A){return A.default}))})),g(32773,(function(){return Promise.resolve().then((function(){return _A})).then((function(A){return A.default}))})),g(34887,(function(){return Promise.resolve().then((function(){return le})).then(function(){var A=e(r.mark((function A(e){return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e.zstd.init();case 2:return A.abrupt("return",e);case 3:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}()).then((function(A){return A.default}))})),g(50001,(function(){return Promise.resolve().then((function(){return de})).then((function(A){return A.default}))}));var o=globalThis;function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function C(A,e){for(var t=0;t0;r--)A[i+e]+=A[i],i++;t-=e}while(t>0)}function l(A,e,t){for(var i=0,r=A.length,I=r/t;r>e;){for(var g=e;g>0;--g)A[i+e]+=A[i],++i;r-=e}for(var n=A.slice(),a=0;a=A.byteLength);++o){var B=void 0;if(2===e){switch(r[0]){case 8:B=new Uint8Array(A,o*a*t*n,a*t*n);break;case 16:B=new Uint16Array(A,o*a*t*n,a*t*n/2);break;case 32:B=new Uint32Array(A,o*a*t*n,a*t*n/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(r[0]," bits per sample."))}h(B,a)}else 3===e&&l(B=new Uint8Array(A,o*a*t*n,a*t*n),a,n)}return A}o.addEventListener("message",function(){var A=e(r.mark((function A(e){var t,i,I,g,a,B;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.data,i=t.id,I=t.fileDirectory,g=t.buffer,A.next=3,n(I);case 3:return a=A.sent,A.next=6,a.decode(I,g);case 6:B=A.sent,o.postMessage({decoded:B,id:i},[B]);case 8:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}());var w=function(){function A(){B(this,A)}var t;return Q(A,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n,a;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.decodeBlock(t);case 2:if(i=A.sent,1===(I=e.Predictor||1)){A.next=9;break}return g=!e.StripOffsets,n=g?e.TileWidth:e.ImageWidth,a=g?e.TileLength:e.RowsPerStrip||e.ImageLength,A.abrupt("return",u(i,I,n,a,e.BitsPerSample,e.PlanarConfiguration));case 9:return A.abrupt("return",i);case 10:case"end":return A.stop()}}),A,this)}))),function(A,e){return t.apply(this,arguments)})}]),A}();function d(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var D=function(A){s(t,w);var e=d(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return A}}]),t}(),y=Object.freeze({__proto__:null,default:D});function k(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}function p(A,e){for(var t=e.length-1;t>=0;t--)A.push(e[t]);return A}function m(A){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),i=0;i<=257;i++)e[i]=4096,t[i]=i;var r=258,I=9,g=0;function n(){r=258,I=9}function a(A){var e=function(A,e,t){var i=e%8,r=Math.floor(e/8),I=8-i,g=e+t-8*(r+1),n=8*(r+2)-(e+t),a=8*(r+2)-e;if(n=Math.max(0,n),r>=A.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var o=A[r]&Math.pow(2,8-i)-1,B=o<<=t-I;if(r+1>>n;B+=C<<=Math.max(0,t-a)}if(g>8&&r+2>>Q}return B}(A,g,I);return g+=I,e}function o(A,i){return t[r]=i,e[r]=A,++r-1}function B(A){for(var i=[],r=A;4096!==r;r=e[r])i.push(t[r]);return i}var C=[];n();for(var Q,E=new Uint8Array(A),s=a(E);257!==s;){if(256===s){for(n(),s=a(E);256===s;)s=a(E);if(257===s)break;if(s>256)throw new Error("corrupted code at scanline ".concat(s));p(C,B(s)),Q=s}else if(s=Math.pow(2,I)&&(12===I?Q=void 0:I++),s=a(E)}return new Uint8Array(C)}var G=function(A){s(t,w);var e=k(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return m(A).buffer}}]),t}(),F=Object.freeze({__proto__:null,default:G});function S(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var v=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function R(A,e){for(var t=0,i=[],r=16;r>0&&!A[r-1];)--r;i.push({children:[],index:0});for(var I,g=i[0],n=0;n0;)g=i.pop();for(g.index++,i.push(g);i.length<=n;)i.push(I={children:[],index:0}),g.children[g.index]=I.children,g=I;t++}n+10)return f--,s>>f&1;if(255===(s=A[E++])){var e=A[E++];if(e)throw new Error("unexpected marker: ".concat((s<<8|e).toString(16)))}return f=7,s>>>7}function h(A){for(var e,i=A;null!==(e=c());){if("number"==typeof(i=i[e]))return i;if("object"!==t(i))throw new Error("invalid huffman sequence")}return null}function l(A){for(var e=A,t=0;e>0;){var i=c();if(null===i)return;t=t<<1|i,--e}return t}function u(A){var e=l(A);return e>=1<0)w--;else for(var t=g,i=n;t<=i;){var r=h(A.huffmanTableAC),I=15&r,a=r>>4;if(0===I){if(a<15){w=l(a)+(1<>4,0===C)r<15?(w=l(r)+(1<>4;if(0===g){if(n<15)break;r+=16}else e[v[r+=n]]=u(g),r++}};var L,b,M=0;b=1===U?r[0].blocksPerLine*r[0].blocksPerColumn:B*i.mcusPerColumn;for(var N=I||b;M=65488&&L<=65495))break;E+=2}return E-Q}function L(A,e){var t=[],i=e.blocksPerLine,r=e.blocksPerColumn,I=i<<3,g=new Int32Array(64),n=new Uint8Array(64);function a(A,t,i){var r,I,g,n,a,o,B,C,Q,E,s=e.quantizationTable,f=i;for(E=0;E<64;E++)f[E]=A[E]*s[E];for(E=0;E<8;++E){var c=8*E;0!==f[1+c]||0!==f[2+c]||0!==f[3+c]||0!==f[4+c]||0!==f[5+c]||0!==f[6+c]||0!==f[7+c]?(r=5793*f[0+c]+128>>8,I=5793*f[4+c]+128>>8,g=f[2+c],n=f[6+c],a=2896*(f[1+c]-f[7+c])+128>>8,C=2896*(f[1+c]+f[7+c])+128>>8,o=f[3+c]<<4,Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+128>>8,g=1567*g-3784*n+128>>8,n=Q,Q=a-(B=f[5+c]<<4)+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+c]=r+C,f[7+c]=r-C,f[1+c]=I+B,f[6+c]=I-B,f[2+c]=g+o,f[5+c]=g-o,f[3+c]=n+a,f[4+c]=n-a):(Q=5793*f[0+c]+512>>10,f[0+c]=Q,f[1+c]=Q,f[2+c]=Q,f[3+c]=Q,f[4+c]=Q,f[5+c]=Q,f[6+c]=Q,f[7+c]=Q)}for(E=0;E<8;++E){var h=E;0!==f[8+h]||0!==f[16+h]||0!==f[24+h]||0!==f[32+h]||0!==f[40+h]||0!==f[48+h]||0!==f[56+h]?(r=5793*f[0+h]+2048>>12,I=5793*f[32+h]+2048>>12,g=f[16+h],n=f[48+h],a=2896*(f[8+h]-f[56+h])+2048>>12,C=2896*(f[8+h]+f[56+h])+2048>>12,o=f[24+h],Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+2048>>12,g=1567*g-3784*n+2048>>12,n=Q,Q=a-(B=f[40+h])+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+h]=r+C,f[56+h]=r-C,f[8+h]=I+B,f[48+h]=I-B,f[16+h]=g+o,f[40+h]=g-o,f[24+h]=n+a,f[32+h]=n-a):(Q=5793*i[E+0]+8192>>14,f[0+h]=Q,f[8+h]=Q,f[16+h]=Q,f[24+h]=Q,f[32+h]=Q,f[40+h]=Q,f[48+h]=Q,f[56+h]=Q)}for(E=0;E<64;++E){var l=128+(f[E]+8>>4);t[E]=l<0?0:l>255?255:l}}for(var o=0;o>4==0)for(var C=0;C<64;C++){B[v[C]]=A[e++]}else{if(o>>4!=1)throw new Error("DQT: invalid table spec");for(var Q=0;Q<64;Q++){B[v[Q]]=t()}}this.quantizationTables[15&o]=B}break;case 65472:case 65473:case 65474:t();for(var E={extended:65473===g,progressive:65474===g,precision:A[e++],scanLines:t(),samplesPerLine:t(),components:{},componentsOrder:[]},s=A[e++],f=void 0,c=0;c>4,l=15&A[e+1],u=A[e+2];E.componentsOrder.push(f),E.components[f]={h:h,v:l,quantizationIdx:u},e+=3}i(E),this.frames.push(E);break;case 65476:for(var w=t(),d=2;d>4==0?this.huffmanTablesDC[15&D]=R(y,m):this.huffmanTablesAC[15&D]=R(y,m)}break;case 65501:t(),this.resetInterval=t();break;case 65498:t();for(var F=A[e++],S=[],L=this.frames[0],b=0;b>4],M.huffmanTableAC=this.huffmanTablesAC[15&N],S.push(M)}var x=A[e++],J=A[e++],q=A[e++],Y=U(A,e,L,S,this.resetInterval,x,J,q>>4,15&q);e+=Y;break;case 65535:255!==A[e]&&e--;break;default:if(255===A[e-3]&&A[e-2]>=192&&A[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker ".concat(g.toString(16)))}g=t()}}},{key:"getResult",value:function(){var A=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var e=0;e=0;)A[e]=0}x(new Array(576)),x(new Array(60)),x(new Array(512)),x(new Array(256)),x(new Array(29)),x(new Array(30));var J=function(A,e,t,i){for(var r=65535&A|0,I=A>>>16&65535|0,g=0;0!==t;){t-=g=t>2e3?2e3:t;do{I=I+(r=r+e[i++]|0)|0}while(--g);r%=65521,I%=65521}return r|I<<16|0},q=new Uint32Array(function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}()),Y=function(A,e,t,i){var r=q,I=i+t;A^=-1;for(var g=i;g>>8^r[255&(A^e[g])];return-1^A},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},O=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},P=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!==t(i))throw new TypeError(i+"must be non-object");for(var r in i)O(i,r)&&(A[r]=i[r])}}return A},T=function(A){for(var e=0,t=0,i=A.length;t=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;_[254]=_[254]=1;var Z=function(A){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);var e,t,i,r,I,g=A.length,n=0;for(r=0;r>>6,e[I++]=128|63&t):t<65536?(e[I++]=224|t>>>12,e[I++]=128|t>>>6&63,e[I++]=128|63&t):(e[I++]=240|t>>>18,e[I++]=128|t>>>12&63,e[I++]=128|t>>>6&63,e[I++]=128|63&t);return e},j=function(A,e){var t,i,r=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));var I=new Array(2*r);for(i=0,t=0;t4)I[i++]=65533,t+=n-1;else{for(g&=2===n?31:3===n?15:7;n>1&&t1?I[i++]=65533:g<65536?I[i++]=g:(g-=65536,I[i++]=55296|g>>10&1023,I[i++]=56320|1023&g)}}}return function(A,e){if(e<65534&&A.subarray&&V)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));for(var t="",i=0;iA.length&&(e=A.length);for(var t=e-1;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+_[A[t]]>e?t:e};var z=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(A,e){var t,i,r,I,g,n,a,o,B,C,Q,E,s,f,c,h,l,u,w,d,D,y,k,p,m=A.state;t=A.next_in,k=A.input,i=t+(A.avail_in-5),r=A.next_out,p=A.output,I=r-(e-A.avail_out),g=r+(A.avail_out-257),n=m.dmax,a=m.wsize,o=m.whave,B=m.wnext,C=m.window,Q=m.hold,E=m.bits,s=m.lencode,f=m.distcode,c=(1<>>=u=l>>>24,E-=u,0===(u=l>>>16&255))p[r++]=65535&l;else{if(!(16&u)){if(0==(64&u)){l=s[(65535&l)+(Q&(1<>>=u,E-=u),E<15&&(Q+=k[t++]<>>=u=l>>>24,E-=u,!(16&(u=l>>>16&255))){if(0==(64&u)){l=f[(65535&l)+(Q&(1<n){A.msg="invalid distance too far back",m.mode=30;break A}if(Q>>>=u,E-=u,d>(u=r-I)){if((u=d-u)>o&&m.sane){A.msg="invalid distance too far back",m.mode=30;break A}if(D=0,y=C,0===B){if(D+=a-u,u2;)p[r++]=y[D++],p[r++]=y[D++],p[r++]=y[D++],w-=3;w&&(p[r++]=y[D++],w>1&&(p[r++]=y[D++]))}else{D=r-d;do{p[r++]=p[D++],p[r++]=p[D++],p[r++]=p[D++],w-=3}while(w>2);w&&(p[r++]=p[D++],w>1&&(p[r++]=p[D++]))}break}}break}}while(t>3,Q&=(1<<(E-=w<<3))-1,A.next_in=t,A.next_out=r,A.avail_in=t=1&&0===v[d];d--);if(D>d&&(D=d),0===d)return r[I++]=20971520,r[I++]=20971520,n.bits=1,0;for(w=1;w0&&(0===A||1!==d))return-1;for(R[1]=0,l=1;l<15;l++)R[l+1]=R[l]+v[l];for(u=0;u852||2===A&&m>592)return 1;for(;;){s=l-k,g[u]E?(f=U[L+g[u]],c=F[S+g[u]]):(f=96,c=0),a=1<>k)+(o-=a)]=s<<24|f<<16|c|0}while(0!==o);for(a=1<>=1;if(0!==a?(G&=a-1,G+=a):G=0,u++,0==--v[l]){if(l===d)break;l=e[t+g[u]]}if(l>D&&(G&C)!==B){for(0===k&&(k=D),Q+=w,p=1<<(y=l-k);y+k852||2===A&&m>592)return 1;r[B=G&C]=D<<24|y<<16|Q-I|0}}return 0!==G&&(r[Q+G]=l-k<<24|64<<16|0),n.bits=D,0},IA=H.Z_FINISH,gA=H.Z_BLOCK,nA=H.Z_TREES,aA=H.Z_OK,oA=H.Z_STREAM_END,BA=H.Z_NEED_DICT,CA=H.Z_STREAM_ERROR,QA=H.Z_DATA_ERROR,EA=H.Z_MEM_ERROR,sA=H.Z_BUF_ERROR,fA=H.Z_DEFLATED,cA=function(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)};function hA(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var lA,uA,wA=function(A){if(!A||!A.state)return CA;var e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,aA},dA=function(A){if(!A||!A.state)return CA;var e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,wA(A)},DA=function(A,e){var t;if(!A||!A.state)return CA;var i=A.state;return e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?CA:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,dA(A))},yA=function(A,e){if(!A)return CA;var t=new hA;A.state=t,t.window=null;var i=DA(A,e);return i!==aA&&(A.state=null),i},kA=!0,pA=function(A){if(kA){lA=new Int32Array(512),uA=new Int32Array(32);for(var e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(rA(1,A.lens,0,288,lA,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;rA(2,A.lens,0,32,uA,0,A.work,{bits:5}),kA=!1}A.lencode=lA,A.lenbits=9,A.distcode=uA,A.distbits=5},mA=function(A,e,t,i){var r,I=A.state;return null===I.window&&(I.wsize=1<=I.wsize?(I.window.set(e.subarray(t-I.wsize,t),0),I.wnext=0,I.whave=I.wsize):((r=I.wsize-I.wnext)>i&&(r=i),I.window.set(e.subarray(t-i,t-i+r),I.wnext),(i-=r)?(I.window.set(e.subarray(t-i,t),0),I.wnext=i,I.whave=I.wsize):(I.wnext+=r,I.wnext===I.wsize&&(I.wnext=0),I.whave>>8&255,t.check=Y(t.check,G,2,0),o=0,B=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&o)<<8)+(o>>8))%31){A.msg="incorrect header check",t.mode=30;break}if((15&o)!==fA){A.msg="unknown compression method",t.mode=30;break}if(B-=4,D=8+(15&(o>>>=4)),0===t.wbits)t.wbits=D;else if(D>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=3;case 3:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>8&255,G[2]=o>>>16&255,G[3]=o>>>24&255,t.check=Y(t.check,G,4,0)),o=0,B=0,t.mode=4;case 4:for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>8),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=5;case 5:if(1024&t.flags){for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((E=t.length)>n&&(E=n),E&&(t.head&&(D=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(I,I+E),D)),512&t.flags&&(t.check=Y(t.check,i,E,I)),n-=E,I+=E,t.length-=E),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===n)break A;E=0;do{D=i[I+E++],t.head&&D&&t.length<65536&&(t.head.name+=String.fromCharCode(D))}while(D&&E>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>=7&B,B-=7&B,t.mode=27;break}for(;B<3;){if(0===n)break A;n--,o+=i[I++]<>>=1)){case 0:t.mode=14;break;case 1:if(pA(t),t.mode=20,e===nA){o>>>=2,B-=2;break A}break;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}o>>>=2,B-=2;break;case 14:for(o>>>=7&B,B-=7&B;B<32;){if(0===n)break A;n--,o+=i[I++]<>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&o,o=0,B=0,t.mode=15,e===nA)break A;case 15:t.mode=16;case 16:if(E=t.length){if(E>n&&(E=n),E>a&&(E=a),0===E)break A;r.set(i.subarray(I,I+E),g),n-=E,I+=E,a-=E,g+=E,t.length-=E;break}t.mode=12;break;case 17:for(;B<14;){if(0===n)break A;n--,o+=i[I++]<>>=5,B-=5,t.ndist=1+(31&o),o>>>=5,B-=5,t.ncode=4+(15&o),o>>>=4,B-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,B-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=rA(0,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=c,B-=c,t.lens[t.have++]=l;else{if(16===l){for(p=c+2;B>>=c,B-=c,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}D=t.lens[t.have-1],E=3+(3&o),o>>>=2,B-=2}else if(17===l){for(p=c+3;B>>=c)),o>>>=3,B-=3}else{for(p=c+7;B>>=c)),o>>>=7,B-=7}if(t.have+E>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;E--;)t.lens[t.have++]=D}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,k={bits:t.lenbits},y=rA(1,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=rA(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,e===nA)break A;case 20:t.mode=21;case 21:if(n>=6&&a>=258){A.next_out=g,A.avail_out=a,A.next_in=I,A.avail_in=n,t.hold=o,t.bits=B,$(A,Q),g=A.next_out,r=A.output,a=A.avail_out,I=A.next_in,i=A.input,n=A.avail_in,o=t.hold,B=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;h=(m=t.lencode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,t.length=l,0===h){t.mode=26;break}if(32&h){t.back=-1,t.mode=12;break}if(64&h){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&h,t.mode=22;case 22:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;h=(m=t.distcode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,64&h){A.msg="invalid distance code",t.mode=30;break}t.offset=l,t.extra=15&h,t.mode=24;case 24:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(E=Q-a,t.offset>E){if((E=t.offset-E)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}E>t.wnext?(E-=t.wnext,s=t.wsize-E):s=t.wnext-E,E>t.length&&(E=t.length),f=t.window}else f=r,s=g-t.offset,E=t.length;E>a&&(E=a),a-=E,t.length-=E;do{r[g++]=f[s++]}while(--E);0===t.length&&(t.mode=21);break;case 26:if(0===a)break A;r[g++]=t.length,a--,t.mode=21;break;case 27:if(t.wrap){for(;B<32;){if(0===n)break A;n--,o|=i[I++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var t=GA.inflateInit2(this.strm,e.windowBits);if(t!==UA)throw new Error(K[t]);if(this.header=new FA,GA.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Z(e.dictionary):"[object ArrayBuffer]"===SA.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=GA.inflateSetDictionary(this.strm,e.dictionary))!==UA))throw new Error(K[t])}function qA(A,e){var t=new JA(e);if(t.push(A),t.err)throw t.msg||K[t.err];return t.result}JA.prototype.push=function(A,e){var t,i,r,I=this.strm,g=this.options.chunkSize,n=this.options.dictionary;if(this.ended)return!1;for(i=e===~~e?e:!0===e?RA:vA,"[object ArrayBuffer]"===SA.call(A)?I.input=new Uint8Array(A):I.input=A,I.next_in=0,I.avail_in=I.input.length;;){for(0===I.avail_out&&(I.output=new Uint8Array(g),I.next_out=0,I.avail_out=g),(t=GA.inflate(I,i))===bA&&n&&((t=GA.inflateSetDictionary(I,n))===UA?t=GA.inflate(I,i):t===NA&&(t=bA));I.avail_in>0&&t===LA&&I.state.wrap>0&&0!==A[I.next_in];)GA.inflateReset(I),t=GA.inflate(I,i);switch(t){case MA:case NA:case bA:case xA:return this.onEnd(t),this.ended=!0,!1}if(r=I.avail_out,I.next_out&&(0===I.avail_out||t===LA))if("string"===this.options.to){var a=W(I.output,I.next_out),o=I.next_out-a,B=j(I.output,a);I.next_out=o,I.avail_out=g-o,o&&I.output.set(I.output.subarray(a,a+o),0),this.onData(B)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(t!==UA||0!==r){if(t===LA)return t=GA.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,!0;if(0===I.avail_in)break}}return!0},JA.prototype.onData=function(A){this.chunks.push(A)},JA.prototype.onEnd=function(A){A===UA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=T(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var YA={Inflate:JA,inflate:qA,inflateRaw:function(A,e){return(e=e||{}).raw=!0,qA(A,e)},ungzip:qA,constants:H}.inflate;function KA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var HA=function(A){s(t,w);var e=KA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return YA(new Uint8Array(A)).buffer}}]),t}(),OA=Object.freeze({__proto__:null,default:HA});function PA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var TA,VA=function(A){s(t,w);var e=PA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){for(var e=new DataView(A),t=[],i=0;i>3],m<<=7&G),c=0;c>3]),128&m?(a&&(a[G]=1),f=f>(g=S.encoding<2?y[k++]:p)?g:f,n[G++]=g):(a&&(a[G]=0),n[G++]=i),m<<=1;G+=F}else if(S.encoding<2)for(h=0;h(g=y[k++])?g:f,n[G++]=g;G+=F}else for(f=f>p?p:f,h=0;h0){var g=new Uint8Array(Math.ceil(i.width*i.height/8)),n=(I=new DataView(A,e,i.mask.numBytes)).getInt16(0,!0),a=2,o=0;do{if(n>0)for(;n--;)g[o++]=I.getUint8(a++);else{var B=I.getUint8(a++);for(n=-n;n--;)g[o++]=B}n=I.getInt16(a,!0),a+=2}while(a0?1:0),s=Q+(i.height%Q>0?1:0);i.pixels.blocks=new Array(E*s);for(var f=0,c=0;c3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==d&&2!==d){if(d>>=6,w.offsetType=d,2===d)w.offset=I.getInt8(1),l++;else if(1===d)w.offset=I.getInt16(1,!0),l+=2;else{if(0!==d)throw"Invalid block offset type";w.offset=I.getFloat32(1,!0),l+=4}if(1===w.encoding)if(d=I.getUint8(l),l++,w.bitsPerPixel=63&d,d>>=6,w.numValidPixelsType=d,2===d)w.numValidPixels=I.getUint8(l),l++;else if(1===d)w.numValidPixels=I.getUint16(l,!0),l+=2;else{if(0!==d)throw"Invalid valid pixel count type";w.numValidPixels=I.getUint32(l,!0),l+=4}}var D;if(e+=l,3!==w.encoding)if(0===w.encoding){var y=(i.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";D=new ArrayBuffer(4*y),new Uint8Array(D).set(new Uint8Array(A,e,4*y));var k=new Float32Array(D);w.rawData=k,e+=4*y}else if(1===w.encoding){var p=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),m=Math.ceil(p/4);D=new ArrayBuffer(4*m),new Uint8Array(D).set(new Uint8Array(A,e,p)),w.stuffedData=new Uint32Array(D),e+=p}}else e++}return i.eofOffset=e,i},I=function(A,e,t,i,r,I,g){var n,a,o,B=(1<=e)a=o>>>Q-e&B,Q-=e;else{var f=e-Q;a=(o&B)<>>(Q=32-f)}I[n]=a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=r[o];else for(Q=Math.ceil((n-I)/g),a=0;a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=o=e?(Q=g>>>C-e&n,C-=e):(Q=(g&n)<<(B=e-C)&n,Q+=(g=A[a++])>>>(C=32-B)),E[o]=Q=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=e?(Q=g>>>E&n,C-=e,E+=e):(Q=g>>>E&n,C=32-(B=e-C),Q|=((g=A[a++])&(1<=t?(I=g>>>B-t&a,B-=t):(I=(g&a)<<(n=t-B)&a,I+=(g=A[o++])>>>(B=32-n)),e[r]=I;return e},C=function(A,e,t,i){var r,I,g,n,a=(1<=t?(I=g>>>C&a,B-=t,C+=t):(I=g>>>C&a,B=32-(n=t-B),I|=((g=A[o++])&(1<=359?359:r;r-=g;do{e+=A[I++]<<8,t+=e+=A[I++]}while(--g);e=(65535&e)+(e>>>16),t=(65535&t)+(t>>>16)}return 1&i&&(t+=e+=A[I]<<8),((t=(65535&t)+(t>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(A,e){var t=e.ptr,i=new Uint8Array(A,t,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;t+=6;var I,g=new DataView(A,t,8),n=g.getInt32(0,!0);if(r.fileVersion=n,t+=4,n>=3&&(r.checksum=g.getUint32(4,!0),t+=4),g=new DataView(A,t,12),r.height=g.getUint32(0,!0),r.width=g.getUint32(4,!0),t+=8,n>=4?(r.numDims=g.getUint32(8,!0),t+=4):r.numDims=1,g=new DataView(A,t,40),r.numValidPixel=g.getUint32(0,!0),r.microBlockSize=g.getInt32(4,!0),r.blobSize=g.getInt32(8,!0),r.imageType=g.getInt32(12,!0),r.maxZError=g.getFloat64(16,!0),r.zMin=g.getFloat64(24,!0),r.zMax=g.getFloat64(32,!0),t+=40,e.headerInfo=r,e.ptr=t,n>=3&&(I=n>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(A,t-I,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(A,e){var t=e.headerInfo,i=this.getDataTypeArray(t.imageType),r=t.numDims*this.getDataTypeSize(t.imageType),I=this.readSubArray(A,e.ptr,i,r),g=this.readSubArray(A,e.ptr+r,i,r);e.ptr+=2*r;var n,a=!0;for(n=0;n0){t=new Uint8Array(Math.ceil(g/8));var B=(a=new DataView(A,r,o.numBytes)).getInt16(0,!0),C=2,Q=0,E=0;do{if(B>0)for(;B--;)t[Q++]=a.getUint8(C++);else for(E=a.getUint8(C++),B=-B;B--;)t[Q++]=E;B=a.getInt16(C,!0),C+=2}while(C>3],s<<=7&f):s=t[f>>3],128&s&&(i[f]=1);e.pixels.resultMask=i,o.bitset=t,r+=o.numBytes}return e.ptr=r,e.mask=o,!0},readDataOneSweep:function(A,e,t,i){var r,I=e.ptr,g=e.headerInfo,n=g.numDims,a=g.width*g.height,o=g.imageType,B=g.numValidPixel*Q.getDataTypeSize(o)*n,C=e.pixels.resultMask;if(t===Uint8Array)r=new Uint8Array(A,I,B);else{var E=new ArrayBuffer(B);new Uint8Array(E).set(new Uint8Array(A,I,B)),r=new t(E)}if(r.length===a*n)e.pixels.resultPixels=i?Q.swapDimensionOrder(r,a,n,t,!0):r;else{e.pixels.resultPixels=new t(a*n);var s=0,f=0,c=0,h=0;if(n>1){if(i){for(f=0;f=g)return!1;var n=new Uint32Array(g-I);Q.decodeBits(A,e,n);var a,o,B,C,s=[];for(a=I;a0&&(s[o].second=l<>>32-C,32-w>=C?32===(w+=C)&&(w=0,l=u[++d]):(w+=C-32,l=u[++d],s[o].second|=l>>>32-w));var D=0,y=0,k=new E;for(a=0;a=t?t:D;var p,m,G,F,S,v=[];for(a=I;a0)if(p=[C,o],C<=y)for(m=s[o].second<=0;F--)m>>>F&1?(S.right||(S.right=new E),S=S.right):(S.left||(S.left=new E),S=S.left),0!==F||S.val||(S.val=p[1]);return{decodeLut:v,numBitsLUTQick:y,numBitsLUT:D,tree:k,stuffedData:u,srcPtr:d,bitPos:w}},readHuffman:function(A,e,t,i){var r,I,g,n,a,o,B,C,E,s=e.headerInfo.numDims,f=e.headerInfo.height,c=e.headerInfo.width,h=c*f,l=this.readHuffmanTree(A,e),u=l.decodeLut,w=l.tree,d=l.stuffedData,D=l.srcPtr,y=l.bitPos,k=l.numBitsLUTQick,p=l.numBitsLUT,m=0===e.headerInfo.imageType?128:0,G=e.pixels.resultMask,F=0;y>0&&(D++,y=0);var S,v=d[D],R=1===e.encodeMode,U=new t(h*s),L=U;if(s<2||R){for(S=0;S1&&(L=new t(U.buffer,h*S,h),F=0),e.headerInfo.numValidPixel===c*f)for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(g+=B>0?F:o>0?L[C-c]:F,g&=255,L[C]=g,F=g):L[C]=g}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(B>0&&G[C-1]?g+=F:o>0&&G[C-c]?g+=L[C-c]:g+=F,g&=255,L[C]=g,F=g):L[C]=g}}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,L[C]=g}e.ptr=e.ptr+4*(D+1)+(y>0?4:0),e.pixels.resultPixels=U,s>1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(U,h,s,t))},decodeBits:function(A,e,t,i,r){var I=e.headerInfo,Q=I.fileVersion,E=0,s=A.byteLength-e.ptr>=5?5:A.byteLength-e.ptr,f=new DataView(A,e.ptr,s),c=f.getUint8(0);E++;var h=c>>6,l=0===h?4:3-h,u=(32&c)>0,w=31&c,d=0;if(1===l)d=f.getUint8(E),E++;else if(2===l)d=f.getUint16(E,!0),E+=2;else{if(4!==l)throw"Invalid valid pixel count type";d=f.getUint32(E,!0),E+=4}var D,y,k,p,m,G,F,S,v,R=2*I.maxZError,U=I.numDims>1?I.maxValues[r]:I.zMax;if(u){for(e.counter.lut++,S=f.getUint8(E),E++,p=Math.ceil((S-1)*w/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),k=new Uint8Array(y),e.ptr+=E,k.set(new Uint8Array(A,e.ptr,p)),F=new Uint32Array(y),e.ptr+=p,v=0;S-1>>>v;)v++;p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,G=Q>=3?o(F,w,S-1,i,R,U):n(F,w,S-1,i,R,U),Q>=3?a(D,t,v,d,G):g(D,t,v,d,G)}else e.counter.bitstuffer++,v=w,e.ptr+=E,v>0&&(p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,Q>=3?null==i?C(D,t,v,d):a(D,t,v,d,!1,i,R,U):null==i?B(D,t,v,d):g(D,t,v,d,!1,i,R,U))},readTiles:function(A,e,t,i){var r=e.headerInfo,I=r.width,g=r.height,n=I*g,a=r.microBlockSize,o=r.imageType,B=Q.getDataTypeSize(o),C=Math.ceil(I/a),E=Math.ceil(g/a);e.pixels.numBlocksY=E,e.pixels.numBlocksX=C,e.pixels.ptr=0;var s,f,c,h,l,u,w,d,D,y,k=0,p=0,m=0,G=0,F=0,S=0,v=0,R=0,U=0,L=0,b=0,M=0,N=0,x=0,J=0,q=new t(a*a),Y=g%a||a,K=I%a||a,H=r.numDims,O=e.pixels.resultMask,P=e.pixels.resultPixels,T=r.fileVersion>=5?14:15,V=r.zMax;for(m=0;m1?(y=P,L=m*I*a+G*a,P=new t(e.pixels.resultPixels.buffer,n*d*B,n),V=r.maxValues[d]):y=null,v=A.byteLength-e.ptr,f={},J=0,R=(s=new DataView(A,e.ptr,Math.min(10,v))).getUint8(0),J++,D=r.fileVersion>=5?4&R:0,U=R>>6&255,(R>>2&T)!=(G*a>>3&T))throw"integrity issue";if(D&&0===d)throw"integrity issue";if((l=3&R)>3)throw e.ptr+=J,"Invalid block encoding ("+l+")";if(2!==l)if(0===l){if(D)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=J,M=(M=F*S*B)<(N=A.byteLength-e.ptr)?M:N,c=new ArrayBuffer(M%B==0?M:M+B-M%B),new Uint8Array(c).set(new Uint8Array(A,e.ptr,M)),h=new t(c),x=0,O)for(k=0;k1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(e.pixels.resultPixels,n,H,t))},formatFileInfo:function(A){return{fileIdentifierString:A.headerInfo.fileIdentifierString,fileVersion:A.headerInfo.fileVersion,imageType:A.headerInfo.imageType,height:A.headerInfo.height,width:A.headerInfo.width,numValidPixel:A.headerInfo.numValidPixel,microBlockSize:A.headerInfo.microBlockSize,blobSize:A.headerInfo.blobSize,maxZError:A.headerInfo.maxZError,pixelType:Q.getPixelType(A.headerInfo.imageType),eofOffset:A.eofOffset,mask:A.mask?{numBytes:A.mask.numBytes}:null,pixels:{numBlocksX:A.pixels.numBlocksX,numBlocksY:A.pixels.numBlocksY,maxValue:A.headerInfo.zMax,minValue:A.headerInfo.zMin,noDataValue:A.noDataValue}}},constructConstantSurface:function(A,e){var t=A.headerInfo.zMax,i=A.headerInfo.zMin,r=A.headerInfo.maxValues,I=A.headerInfo.numDims,g=A.headerInfo.height*A.headerInfo.width,n=0,a=0,o=0,B=A.pixels.resultMask,C=A.pixels.resultPixels;if(B)if(I>1){if(e)for(n=0;n1&&i!==t)if(e)for(n=0;n=-128&&e<=127;break;case 1:t=e>=0&&e<=255;break;case 2:t=e>=-32768&&e<=32767;break;case 3:t=e>=0&&e<=65536;break;case 4:t=e>=-2147483648&&e<=2147483647;break;case 5:t=e>=0&&e<=4294967296;break;case 6:t=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:t=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:t=!1}return t},getDataTypeSize:function(A){var e=0;switch(A){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=A}return e},getDataTypeUsed:function(A,e){var t=A;switch(A){case 2:case 4:t=A-e;break;case 3:case 5:t=A-2*e;break;case 6:t=0===e?A:1===e?2:1;break;case 7:t=0===e?A:A-2*e+1;break;default:t=A}return t},getOnePixel:function(A,e,t,i){var r=0;switch(t){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(A,e,t,i,r){var I=0,g=0,n=0,a=0,o=A;if(t>1)if(o=new i(e*t),r)for(I=0;I5)throw"unsupported lerc version 2."+g;Q.readMask(A,r),I.numValidPixel===I.width*I.height||r.pixels.resultMask||(r.pixels.resultMask=e.maskData);var a=I.width*I.height;r.pixels.resultPixels=new n(a*I.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o,B=!e.returnPixelInterleavedDims;if(0!==I.numValidPixel)if(I.zMax===I.zMin)Q.constructConstantSurface(r,B);else if(g>=4&&Q.checkMinMaxRanges(A,r))Q.constructConstantSurface(r,B);else{var C=new DataView(A,r.ptr,2),E=C.getUint8(0);if(r.ptr++,E)Q.readDataOneSweep(A,r,n,B);else if(g>1&&I.imageType<=1&&Math.abs(I.maxZError-.5)<1e-5){var s=C.getUint8(1);if(r.ptr++,r.encodeMode=s,s>2||g<4&&s>1)throw"Invalid Huffman flag "+s;s?Q.readHuffman(A,r,n,B):Q.readTiles(A,r,n,B)}else Q.readTiles(A,r,n,B)}r.eofOffset=r.ptr,e.inputOffset?(o=r.headerInfo.blobSize+e.inputOffset-r.ptr,Math.abs(o)>=1&&(r.eofOffset=e.inputOffset+r.headerInfo.blobSize)):(o=r.headerInfo.blobSize-r.ptr,Math.abs(o)>=1&&(r.eofOffset=r.headerInfo.blobSize));var f={width:I.width,height:I.height,pixelData:r.pixels.resultPixels,minValue:I.zMin,maxValue:I.zMax,validPixelCount:I.numValidPixel,dimCount:I.numDims,dimStats:{minValues:I.minValues,maxValues:I.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&Q.isValidPixelValue(I.imageType,t)){var c=r.pixels.resultMask;for(i=0;i1&&(o&&f.push(o),d.fileInfo.mask&&d.fileInfo.mask.numBytes>0&&w++),E++,u.pixels.push(d.pixelData),u.statistics.push({minValue:d.minValue,maxValue:d.maxValue,noDataValue:d.noDataValue,dimStats:d.dimStats})}if(i>1&&w>1){for(Q=u.width*u.height,u.bandMasks=f,(o=new Uint8Array(Q)).set(f[0]),B=1;B1&&void 0!==arguments[1]?arguments[1]:0;if(!jA)throw new Error("ZSTDDecoder: Await .init() before decoding.");var t=A.byteLength,i=jA.exports.malloc(t);WA.set(A,i),e=e||Number(jA.exports.ZSTD_findDecompressedSize(i,t));var r=jA.exports.malloc(e),I=jA.exports.ZSTD_decompress(r,e,i,t),g=WA.slice(r,r+I);return jA.exports.free(i),jA.exports.free(r),g}}]),A}(),ee="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",te={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(var re in te)te.hasOwnProperty(re)&&(ie[te[re]]=parseInt(re,10));ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs;var Ie={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ge={};for(var ne in Ie)Ie.hasOwnProperty(ne)&&(ge[Ie[ne]]=parseInt(ne,10));var ae=1,oe=0,Be=1,Ce=2,Qe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},Ee={};for(var se in Qe)Qe.hasOwnProperty(se)&&(Ee[Qe[se]]=parseInt(se,10));function fe(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var ce=new Ae,he=function(A){s(t,w);var e=fe(t);function t(A){var i;return B(this,t),(i=e.call(this)).planarConfiguration=void 0!==A.PlanarConfiguration?A.PlanarConfiguration:1,i.samplesPerPixel=void 0!==A.SamplesPerPixel?A.SamplesPerPixel:1,i.addCompression=A.LercParameters[ae],i}return Q(t,[{key:"decodeBlock",value:function(A){switch(this.addCompression){case oe:break;case Be:A=YA(new Uint8Array(A)).buffer;break;case Ce:A=ce.decode(new Uint8Array(A)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return zA.decode(A,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),t}(),le=Object.freeze({__proto__:null,zstd:ce,default:he});function ue(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var we=function(A){s(I,w);var t,i=ue(I);function I(){var A;if(B(this,I),A=i.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return A}return Q(I,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return i=new Blob([t]),A.next=3,createImageBitmap(i);case 3:return I=A.sent,"undefined"!=typeof document?((g=document.createElement("canvas")).width=I.width,g.height=I.height):g=new OffscreenCanvas(I.width,I.height),(n=g.getContext("2d")).drawImage(I,0,0),A.abrupt("return",n.getImageData(0,0,I.width,I.height).data.buffer);case 8:case"end":return A.stop()}}),A)}))),function(A,e){return t.apply(this,arguments)})}]),I}(),de=Object.freeze({__proto__:null,default:we});';return new e(typeof Buffer<"u"?"data:application/javascript;base64,"+Buffer.from(A,"binary").toString("base64"):URL.createObjectURL(new Blob([A],{type:"application/javascript"})))}export{r as create}; +import"./chunk-MG3ERZGY.js";var e=Worker;function r(){let A='function A(A,e,t,i,r,I,g){try{var n=A[I](g),a=n.value}catch(A){return void t(A)}n.done?e(a):Promise.resolve(a).then(i,r)}function e(e){return function(){var t=this,i=arguments;return new Promise((function(r,I){var g=e.apply(t,i);function n(e){A(g,r,I,n,a,"next",e)}function a(e){A(g,r,I,n,a,"throw",e)}n(void 0)}))}}function t(A){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(A){return typeof A}:function(A){return A&&"function"==typeof Symbol&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(A)}var i={exports:{}};!function(A){var e=function(A){var e,i=Object.prototype,r=i.hasOwnProperty,I="function"==typeof Symbol?Symbol:{},g=I.iterator||"@@iterator",n=I.asyncIterator||"@@asyncIterator",a=I.toStringTag||"@@toStringTag";function o(A,e,t){return Object.defineProperty(A,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),A[e]}try{o({},"")}catch(A){o=function(A,e,t){return A[e]=t}}function B(A,e,t,i){var r=e&&e.prototype instanceof h?e:h,I=Object.create(r.prototype),g=new S(i||[]);return I._invoke=function(A,e,t){var i=Q;return function(r,I){if(i===s)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw I;return R()}for(t.method=r,t.arg=I;;){var g=t.delegate;if(g){var n=m(g,t);if(n){if(n===c)continue;return n}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(i===Q)throw i=f,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);i=s;var a=C(A,e,t);if("normal"===a.type){if(i=t.done?f:E,a.arg===c)continue;return{value:a.arg,done:t.done}}"throw"===a.type&&(i=f,t.method="throw",t.arg=a.arg)}}}(A,t,g),I}function C(A,e,t){try{return{type:"normal",arg:A.call(e,t)}}catch(A){return{type:"throw",arg:A}}}A.wrap=B;var Q="suspendedStart",E="suspendedYield",s="executing",f="completed",c={};function h(){}function l(){}function u(){}var w={};o(w,g,(function(){return this}));var d=Object.getPrototypeOf,D=d&&d(d(v([])));D&&D!==i&&r.call(D,g)&&(w=D);var y=u.prototype=h.prototype=Object.create(w);function k(A){["next","throw","return"].forEach((function(e){o(A,e,(function(A){return this._invoke(e,A)}))}))}function p(A,e){function i(I,g,n,a){var o=C(A[I],A,g);if("throw"!==o.type){var B=o.arg,Q=B.value;return Q&&"object"===t(Q)&&r.call(Q,"__await")?e.resolve(Q.__await).then((function(A){i("next",A,n,a)}),(function(A){i("throw",A,n,a)})):e.resolve(Q).then((function(A){B.value=A,n(B)}),(function(A){return i("throw",A,n,a)}))}a(o.arg)}var I;this._invoke=function(A,t){function r(){return new e((function(e,r){i(A,t,e,r)}))}return I=I?I.then(r,r):r()}}function m(A,t){var i=A.iterator[t.method];if(i===e){if(t.delegate=null,"throw"===t.method){if(A.iterator.return&&(t.method="return",t.arg=e,m(A,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a \'throw\' method")}return c}var r=C(i,A.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var I=r.arg;return I?I.done?(t[A.resultName]=I.value,t.next=A.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,c):I:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function G(A){var e={tryLoc:A[0]};1 in A&&(e.catchLoc=A[1]),2 in A&&(e.finallyLoc=A[2],e.afterLoc=A[3]),this.tryEntries.push(e)}function F(A){var e=A.completion||{};e.type="normal",delete e.arg,A.completion=e}function S(A){this.tryEntries=[{tryLoc:"root"}],A.forEach(G,this),this.reset(!0)}function v(A){if(A){var t=A[g];if(t)return t.call(A);if("function"==typeof A.next)return A;if(!isNaN(A.length)){var i=-1,I=function t(){for(;++i=0;--I){var g=this.tryEntries[I],n=g.completion;if("root"===g.tryLoc)return i("end");if(g.tryLoc<=this.prev){var a=r.call(g,"catchLoc"),o=r.call(g,"finallyLoc");if(a&&o){if(this.prev=0;--t){var i=this.tryEntries[t];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var t=this.tryEntries[e];if(t.finallyLoc===A)return this.complete(t.completion,t.afterLoc),F(t),c}},catch:function(A){for(var e=this.tryEntries.length-1;e>=0;--e){var t=this.tryEntries[e];if(t.tryLoc===A){var i=t.completion;if("throw"===i.type){var r=i.arg;F(t)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(A,t,i){return this.delegate={iterator:v(A),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=e),c}},A}(A.exports);try{regeneratorRuntime=e}catch(A){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}(i);var r=i.exports,I=new Map;function g(A,e){Array.isArray(A)||(A=[A]),A.forEach((function(A){return I.set(A,e)}))}function n(A){return a.apply(this,arguments)}function a(){return(a=e(r.mark((function A(e){var t,i;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:if(t=I.get(e.Compression)){A.next=3;break}throw new Error("Unknown compression method identifier: ".concat(e.Compression));case 3:return A.next=5,t();case 5:return i=A.sent,A.abrupt("return",new i(e));case 7:case"end":return A.stop()}}),A)})))).apply(this,arguments)}g([void 0,1],(function(){return Promise.resolve().then((function(){return y})).then((function(A){return A.default}))})),g(5,(function(){return Promise.resolve().then((function(){return F})).then((function(A){return A.default}))})),g(6,(function(){throw new Error("old style JPEG compression is not supported.")})),g(7,(function(){return Promise.resolve().then((function(){return N})).then((function(A){return A.default}))})),g([8,32946],(function(){return Promise.resolve().then((function(){return OA})).then((function(A){return A.default}))})),g(32773,(function(){return Promise.resolve().then((function(){return _A})).then((function(A){return A.default}))})),g(34887,(function(){return Promise.resolve().then((function(){return le})).then(function(){var A=e(r.mark((function A(e){return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,e.zstd.init();case 2:return A.abrupt("return",e);case 3:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}()).then((function(A){return A.default}))})),g(50001,(function(){return Promise.resolve().then((function(){return de})).then((function(A){return A.default}))}));var o=globalThis;function B(A,e){if(!(A instanceof e))throw new TypeError("Cannot call a class as a function")}function C(A,e){for(var t=0;t0;r--)A[i+e]+=A[i],i++;t-=e}while(t>0)}function l(A,e,t){for(var i=0,r=A.length,I=r/t;r>e;){for(var g=e;g>0;--g)A[i+e]+=A[i],++i;r-=e}for(var n=A.slice(),a=0;a=A.byteLength);++o){var B=void 0;if(2===e){switch(r[0]){case 8:B=new Uint8Array(A,o*a*t*n,a*t*n);break;case 16:B=new Uint16Array(A,o*a*t*n,a*t*n/2);break;case 32:B=new Uint32Array(A,o*a*t*n,a*t*n/4);break;default:throw new Error("Predictor 2 not allowed with ".concat(r[0]," bits per sample."))}h(B,a)}else 3===e&&l(B=new Uint8Array(A,o*a*t*n,a*t*n),a,n)}return A}o.addEventListener("message",function(){var A=e(r.mark((function A(e){var t,i,I,g,a,B;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return t=e.data,i=t.id,I=t.fileDirectory,g=t.buffer,A.next=3,n(I);case 3:return a=A.sent,A.next=6,a.decode(I,g);case 6:B=A.sent,o.postMessage({decoded:B,id:i},[B]);case 8:case"end":return A.stop()}}),A)})));return function(e){return A.apply(this,arguments)}}());var w=function(){function A(){B(this,A)}var t;return Q(A,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n,a;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,this.decodeBlock(t);case 2:if(i=A.sent,1===(I=e.Predictor||1)){A.next=9;break}return g=!e.StripOffsets,n=g?e.TileWidth:e.ImageWidth,a=g?e.TileLength:e.RowsPerStrip||e.ImageLength,A.abrupt("return",u(i,I,n,a,e.BitsPerSample,e.PlanarConfiguration));case 9:return A.abrupt("return",i);case 10:case"end":return A.stop()}}),A,this)}))),function(A,e){return t.apply(this,arguments)})}]),A}();function d(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var D=function(A){s(t,w);var e=d(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return A}}]),t}(),y=Object.freeze({__proto__:null,default:D});function k(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}function p(A,e){for(var t=e.length-1;t>=0;t--)A.push(e[t]);return A}function m(A){for(var e=new Uint16Array(4093),t=new Uint8Array(4093),i=0;i<=257;i++)e[i]=4096,t[i]=i;var r=258,I=9,g=0;function n(){r=258,I=9}function a(A){var e=function(A,e,t){var i=e%8,r=Math.floor(e/8),I=8-i,g=e+t-8*(r+1),n=8*(r+2)-(e+t),a=8*(r+2)-e;if(n=Math.max(0,n),r>=A.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;var o=A[r]&Math.pow(2,8-i)-1,B=o<<=t-I;if(r+1>>n;B+=C<<=Math.max(0,t-a)}if(g>8&&r+2>>Q}return B}(A,g,I);return g+=I,e}function o(A,i){return t[r]=i,e[r]=A,++r-1}function B(A){for(var i=[],r=A;4096!==r;r=e[r])i.push(t[r]);return i}var C=[];n();for(var Q,E=new Uint8Array(A),s=a(E);257!==s;){if(256===s){for(n(),s=a(E);256===s;)s=a(E);if(257===s)break;if(s>256)throw new Error("corrupted code at scanline ".concat(s));p(C,B(s)),Q=s}else if(s=Math.pow(2,I)&&(12===I?Q=void 0:I++),s=a(E)}return new Uint8Array(C)}var G=function(A){s(t,w);var e=k(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return m(A).buffer}}]),t}(),F=Object.freeze({__proto__:null,default:G});function S(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var v=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function R(A,e){for(var t=0,i=[],r=16;r>0&&!A[r-1];)--r;i.push({children:[],index:0});for(var I,g=i[0],n=0;n0;)g=i.pop();for(g.index++,i.push(g);i.length<=n;)i.push(I={children:[],index:0}),g.children[g.index]=I.children,g=I;t++}n+10)return f--,s>>f&1;if(255===(s=A[E++])){var e=A[E++];if(e)throw new Error("unexpected marker: ".concat((s<<8|e).toString(16)))}return f=7,s>>>7}function h(A){for(var e,i=A;null!==(e=c());){if("number"==typeof(i=i[e]))return i;if("object"!==t(i))throw new Error("invalid huffman sequence")}return null}function l(A){for(var e=A,t=0;e>0;){var i=c();if(null===i)return;t=t<<1|i,--e}return t}function u(A){var e=l(A);return e>=1<0)w--;else for(var t=g,i=n;t<=i;){var r=h(A.huffmanTableAC),I=15&r,a=r>>4;if(0===I){if(a<15){w=l(a)+(1<>4,0===C)r<15?(w=l(r)+(1<>4;if(0===g){if(n<15)break;r+=16}else e[v[r+=n]]=u(g),r++}};var L,b,M=0;b=1===U?r[0].blocksPerLine*r[0].blocksPerColumn:B*i.mcusPerColumn;for(var N=I||b;M=65488&&L<=65495))break;E+=2}return E-Q}function L(A,e){var t=[],i=e.blocksPerLine,r=e.blocksPerColumn,I=i<<3,g=new Int32Array(64),n=new Uint8Array(64);function a(A,t,i){var r,I,g,n,a,o,B,C,Q,E,s=e.quantizationTable,f=i;for(E=0;E<64;E++)f[E]=A[E]*s[E];for(E=0;E<8;++E){var c=8*E;0!==f[1+c]||0!==f[2+c]||0!==f[3+c]||0!==f[4+c]||0!==f[5+c]||0!==f[6+c]||0!==f[7+c]?(r=5793*f[0+c]+128>>8,I=5793*f[4+c]+128>>8,g=f[2+c],n=f[6+c],a=2896*(f[1+c]-f[7+c])+128>>8,C=2896*(f[1+c]+f[7+c])+128>>8,o=f[3+c]<<4,Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+128>>8,g=1567*g-3784*n+128>>8,n=Q,Q=a-(B=f[5+c]<<4)+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+c]=r+C,f[7+c]=r-C,f[1+c]=I+B,f[6+c]=I-B,f[2+c]=g+o,f[5+c]=g-o,f[3+c]=n+a,f[4+c]=n-a):(Q=5793*f[0+c]+512>>10,f[0+c]=Q,f[1+c]=Q,f[2+c]=Q,f[3+c]=Q,f[4+c]=Q,f[5+c]=Q,f[6+c]=Q,f[7+c]=Q)}for(E=0;E<8;++E){var h=E;0!==f[8+h]||0!==f[16+h]||0!==f[24+h]||0!==f[32+h]||0!==f[40+h]||0!==f[48+h]||0!==f[56+h]?(r=5793*f[0+h]+2048>>12,I=5793*f[32+h]+2048>>12,g=f[16+h],n=f[48+h],a=2896*(f[8+h]-f[56+h])+2048>>12,C=2896*(f[8+h]+f[56+h])+2048>>12,o=f[24+h],Q=r-I+1>>1,r=r+I+1>>1,I=Q,Q=3784*g+1567*n+2048>>12,g=1567*g-3784*n+2048>>12,n=Q,Q=a-(B=f[40+h])+1>>1,a=a+B+1>>1,B=Q,Q=C+o+1>>1,o=C-o+1>>1,C=Q,Q=r-n+1>>1,r=r+n+1>>1,n=Q,Q=I-g+1>>1,I=I+g+1>>1,g=Q,Q=2276*a+3406*C+2048>>12,a=3406*a-2276*C+2048>>12,C=Q,Q=799*o+4017*B+2048>>12,o=4017*o-799*B+2048>>12,B=Q,f[0+h]=r+C,f[56+h]=r-C,f[8+h]=I+B,f[48+h]=I-B,f[16+h]=g+o,f[40+h]=g-o,f[24+h]=n+a,f[32+h]=n-a):(Q=5793*i[E+0]+8192>>14,f[0+h]=Q,f[8+h]=Q,f[16+h]=Q,f[24+h]=Q,f[32+h]=Q,f[40+h]=Q,f[48+h]=Q,f[56+h]=Q)}for(E=0;E<64;++E){var l=128+(f[E]+8>>4);t[E]=l<0?0:l>255?255:l}}for(var o=0;o>4==0)for(var C=0;C<64;C++){B[v[C]]=A[e++]}else{if(o>>4!=1)throw new Error("DQT: invalid table spec");for(var Q=0;Q<64;Q++){B[v[Q]]=t()}}this.quantizationTables[15&o]=B}break;case 65472:case 65473:case 65474:t();for(var E={extended:65473===g,progressive:65474===g,precision:A[e++],scanLines:t(),samplesPerLine:t(),components:{},componentsOrder:[]},s=A[e++],f=void 0,c=0;c>4,l=15&A[e+1],u=A[e+2];E.componentsOrder.push(f),E.components[f]={h:h,v:l,quantizationIdx:u},e+=3}i(E),this.frames.push(E);break;case 65476:for(var w=t(),d=2;d>4==0?this.huffmanTablesDC[15&D]=R(y,m):this.huffmanTablesAC[15&D]=R(y,m)}break;case 65501:t(),this.resetInterval=t();break;case 65498:t();for(var F=A[e++],S=[],L=this.frames[0],b=0;b>4],M.huffmanTableAC=this.huffmanTablesAC[15&N],S.push(M)}var x=A[e++],J=A[e++],q=A[e++],Y=U(A,e,L,S,this.resetInterval,x,J,q>>4,15&q);e+=Y;break;case 65535:255!==A[e]&&e--;break;default:if(255===A[e-3]&&A[e-2]>=192&&A[e-2]<=254){e-=3;break}throw new Error("unknown JPEG marker ".concat(g.toString(16)))}g=t()}}},{key:"getResult",value:function(){var A=this.frames;if(0===this.frames.length)throw new Error("no frames were decoded");this.frames.length>1&&console.warn("more than one frame is not supported");for(var e=0;e=0;)A[e]=0}x(new Array(576)),x(new Array(60)),x(new Array(512)),x(new Array(256)),x(new Array(29)),x(new Array(30));var J=function(A,e,t,i){for(var r=65535&A|0,I=A>>>16&65535|0,g=0;0!==t;){t-=g=t>2e3?2e3:t;do{I=I+(r=r+e[i++]|0)|0}while(--g);r%=65521,I%=65521}return r|I<<16|0},q=new Uint32Array(function(){for(var A,e=[],t=0;t<256;t++){A=t;for(var i=0;i<8;i++)A=1&A?3988292384^A>>>1:A>>>1;e[t]=A}return e}()),Y=function(A,e,t,i){var r=q,I=i+t;A^=-1;for(var g=i;g>>8^r[255&(A^e[g])];return-1^A},K={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},H={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},O=function(A,e){return Object.prototype.hasOwnProperty.call(A,e)},P=function(A){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var i=e.shift();if(i){if("object"!==t(i))throw new TypeError(i+"must be non-object");for(var r in i)O(i,r)&&(A[r]=i[r])}}return A},T=function(A){for(var e=0,t=0,i=A.length;t=252?6:X>=248?5:X>=240?4:X>=224?3:X>=192?2:1;_[254]=_[254]=1;var Z=function(A){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(A);var e,t,i,r,I,g=A.length,n=0;for(r=0;r>>6,e[I++]=128|63&t):t<65536?(e[I++]=224|t>>>12,e[I++]=128|t>>>6&63,e[I++]=128|63&t):(e[I++]=240|t>>>18,e[I++]=128|t>>>12&63,e[I++]=128|t>>>6&63,e[I++]=128|63&t);return e},j=function(A,e){var t,i,r=e||A.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(A.subarray(0,e));var I=new Array(2*r);for(i=0,t=0;t4)I[i++]=65533,t+=n-1;else{for(g&=2===n?31:3===n?15:7;n>1&&t1?I[i++]=65533:g<65536?I[i++]=g:(g-=65536,I[i++]=55296|g>>10&1023,I[i++]=56320|1023&g)}}}return function(A,e){if(e<65534&&A.subarray&&V)return String.fromCharCode.apply(null,A.length===e?A:A.subarray(0,e));for(var t="",i=0;iA.length&&(e=A.length);for(var t=e-1;t>=0&&128==(192&A[t]);)t--;return t<0||0===t?e:t+_[A[t]]>e?t:e};var z=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$=function(A,e){var t,i,r,I,g,n,a,o,B,C,Q,E,s,f,c,h,l,u,w,d,D,y,k,p,m=A.state;t=A.next_in,k=A.input,i=t+(A.avail_in-5),r=A.next_out,p=A.output,I=r-(e-A.avail_out),g=r+(A.avail_out-257),n=m.dmax,a=m.wsize,o=m.whave,B=m.wnext,C=m.window,Q=m.hold,E=m.bits,s=m.lencode,f=m.distcode,c=(1<>>=u=l>>>24,E-=u,0===(u=l>>>16&255))p[r++]=65535&l;else{if(!(16&u)){if(0==(64&u)){l=s[(65535&l)+(Q&(1<>>=u,E-=u),E<15&&(Q+=k[t++]<>>=u=l>>>24,E-=u,!(16&(u=l>>>16&255))){if(0==(64&u)){l=f[(65535&l)+(Q&(1<n){A.msg="invalid distance too far back",m.mode=30;break A}if(Q>>>=u,E-=u,d>(u=r-I)){if((u=d-u)>o&&m.sane){A.msg="invalid distance too far back",m.mode=30;break A}if(D=0,y=C,0===B){if(D+=a-u,u2;)p[r++]=y[D++],p[r++]=y[D++],p[r++]=y[D++],w-=3;w&&(p[r++]=y[D++],w>1&&(p[r++]=y[D++]))}else{D=r-d;do{p[r++]=p[D++],p[r++]=p[D++],p[r++]=p[D++],w-=3}while(w>2);w&&(p[r++]=p[D++],w>1&&(p[r++]=p[D++]))}break}}break}}while(t>3,Q&=(1<<(E-=w<<3))-1,A.next_in=t,A.next_out=r,A.avail_in=t=1&&0===v[d];d--);if(D>d&&(D=d),0===d)return r[I++]=20971520,r[I++]=20971520,n.bits=1,0;for(w=1;w0&&(0===A||1!==d))return-1;for(R[1]=0,l=1;l<15;l++)R[l+1]=R[l]+v[l];for(u=0;u852||2===A&&m>592)return 1;for(;;){s=l-k,g[u]E?(f=U[L+g[u]],c=F[S+g[u]]):(f=96,c=0),a=1<>k)+(o-=a)]=s<<24|f<<16|c|0}while(0!==o);for(a=1<>=1;if(0!==a?(G&=a-1,G+=a):G=0,u++,0==--v[l]){if(l===d)break;l=e[t+g[u]]}if(l>D&&(G&C)!==B){for(0===k&&(k=D),Q+=w,p=1<<(y=l-k);y+k852||2===A&&m>592)return 1;r[B=G&C]=D<<24|y<<16|Q-I|0}}return 0!==G&&(r[Q+G]=l-k<<24|64<<16|0),n.bits=D,0},IA=H.Z_FINISH,gA=H.Z_BLOCK,nA=H.Z_TREES,aA=H.Z_OK,oA=H.Z_STREAM_END,BA=H.Z_NEED_DICT,CA=H.Z_STREAM_ERROR,QA=H.Z_DATA_ERROR,EA=H.Z_MEM_ERROR,sA=H.Z_BUF_ERROR,fA=H.Z_DEFLATED,cA=function(A){return(A>>>24&255)+(A>>>8&65280)+((65280&A)<<8)+((255&A)<<24)};function hA(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var lA,uA,wA=function(A){if(!A||!A.state)return CA;var e=A.state;return A.total_in=A.total_out=e.total=0,A.msg="",e.wrap&&(A.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new Int32Array(852),e.distcode=e.distdyn=new Int32Array(592),e.sane=1,e.back=-1,aA},dA=function(A){if(!A||!A.state)return CA;var e=A.state;return e.wsize=0,e.whave=0,e.wnext=0,wA(A)},DA=function(A,e){var t;if(!A||!A.state)return CA;var i=A.state;return e<0?(t=0,e=-e):(t=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?CA:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=t,i.wbits=e,dA(A))},yA=function(A,e){if(!A)return CA;var t=new hA;A.state=t,t.window=null;var i=DA(A,e);return i!==aA&&(A.state=null),i},kA=!0,pA=function(A){if(kA){lA=new Int32Array(512),uA=new Int32Array(32);for(var e=0;e<144;)A.lens[e++]=8;for(;e<256;)A.lens[e++]=9;for(;e<280;)A.lens[e++]=7;for(;e<288;)A.lens[e++]=8;for(rA(1,A.lens,0,288,lA,0,A.work,{bits:9}),e=0;e<32;)A.lens[e++]=5;rA(2,A.lens,0,32,uA,0,A.work,{bits:5}),kA=!1}A.lencode=lA,A.lenbits=9,A.distcode=uA,A.distbits=5},mA=function(A,e,t,i){var r,I=A.state;return null===I.window&&(I.wsize=1<=I.wsize?(I.window.set(e.subarray(t-I.wsize,t),0),I.wnext=0,I.whave=I.wsize):((r=I.wsize-I.wnext)>i&&(r=i),I.window.set(e.subarray(t-i,t-i+r),I.wnext),(i-=r)?(I.window.set(e.subarray(t-i,t),0),I.wnext=i,I.whave=I.wsize):(I.wnext+=r,I.wnext===I.wsize&&(I.wnext=0),I.whave>>8&255,t.check=Y(t.check,G,2,0),o=0,B=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&o)<<8)+(o>>8))%31){A.msg="incorrect header check",t.mode=30;break}if((15&o)!==fA){A.msg="unknown compression method",t.mode=30;break}if(B-=4,D=8+(15&(o>>>=4)),0===t.wbits)t.wbits=D;else if(D>t.wbits){A.msg="invalid window size",t.mode=30;break}t.dmax=1<>8&1),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=3;case 3:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>8&255,G[2]=o>>>16&255,G[3]=o>>>24&255,t.check=Y(t.check,G,4,0)),o=0,B=0,t.mode=4;case 4:for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>8),512&t.flags&&(G[0]=255&o,G[1]=o>>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0,t.mode=5;case 5:if(1024&t.flags){for(;B<16;){if(0===n)break A;n--,o+=i[I++]<>>8&255,t.check=Y(t.check,G,2,0)),o=0,B=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&((E=t.length)>n&&(E=n),E&&(t.head&&(D=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(I,I+E),D)),512&t.flags&&(t.check=Y(t.check,i,E,I)),n-=E,I+=E,t.length-=E),t.length))break A;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(0===n)break A;E=0;do{D=i[I+E++],t.head&&D&&t.length<65536&&(t.head.name+=String.fromCharCode(D))}while(D&&E>9&1,t.head.done=!0),A.adler=t.check=0,t.mode=12;break;case 10:for(;B<32;){if(0===n)break A;n--,o+=i[I++]<>>=7&B,B-=7&B,t.mode=27;break}for(;B<3;){if(0===n)break A;n--,o+=i[I++]<>>=1)){case 0:t.mode=14;break;case 1:if(pA(t),t.mode=20,e===nA){o>>>=2,B-=2;break A}break;case 2:t.mode=17;break;case 3:A.msg="invalid block type",t.mode=30}o>>>=2,B-=2;break;case 14:for(o>>>=7&B,B-=7&B;B<32;){if(0===n)break A;n--,o+=i[I++]<>>16^65535)){A.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&o,o=0,B=0,t.mode=15,e===nA)break A;case 15:t.mode=16;case 16:if(E=t.length){if(E>n&&(E=n),E>a&&(E=a),0===E)break A;r.set(i.subarray(I,I+E),g),n-=E,I+=E,a-=E,g+=E,t.length-=E;break}t.mode=12;break;case 17:for(;B<14;){if(0===n)break A;n--,o+=i[I++]<>>=5,B-=5,t.ndist=1+(31&o),o>>>=5,B-=5,t.ncode=4+(15&o),o>>>=4,B-=4,t.nlen>286||t.ndist>30){A.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have>>=3,B-=3}for(;t.have<19;)t.lens[F[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,k={bits:t.lenbits},y=rA(0,t.lens,0,19,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=c,B-=c,t.lens[t.have++]=l;else{if(16===l){for(p=c+2;B>>=c,B-=c,0===t.have){A.msg="invalid bit length repeat",t.mode=30;break}D=t.lens[t.have-1],E=3+(3&o),o>>>=2,B-=2}else if(17===l){for(p=c+3;B>>=c)),o>>>=3,B-=3}else{for(p=c+7;B>>=c)),o>>>=7,B-=7}if(t.have+E>t.nlen+t.ndist){A.msg="invalid bit length repeat",t.mode=30;break}for(;E--;)t.lens[t.have++]=D}}if(30===t.mode)break;if(0===t.lens[256]){A.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,k={bits:t.lenbits},y=rA(1,t.lens,0,t.nlen,t.lencode,0,t.work,k),t.lenbits=k.bits,y){A.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,k={bits:t.distbits},y=rA(2,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,k),t.distbits=k.bits,y){A.msg="invalid distances set",t.mode=30;break}if(t.mode=20,e===nA)break A;case 20:t.mode=21;case 21:if(n>=6&&a>=258){A.next_out=g,A.avail_out=a,A.next_in=I,A.avail_in=n,t.hold=o,t.bits=B,$(A,Q),g=A.next_out,r=A.output,a=A.avail_out,I=A.next_in,i=A.input,n=A.avail_in,o=t.hold,B=t.bits,12===t.mode&&(t.back=-1);break}for(t.back=0;h=(m=t.lencode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,t.length=l,0===h){t.mode=26;break}if(32&h){t.back=-1,t.mode=12;break}if(64&h){A.msg="invalid literal/length code",t.mode=30;break}t.extra=15&h,t.mode=22;case 22:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;h=(m=t.distcode[o&(1<>>16&255,l=65535&m,!((c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>u)])>>>16&255,l=65535&m,!(u+(c=m>>>24)<=B);){if(0===n)break A;n--,o+=i[I++]<>>=u,B-=u,t.back+=u}if(o>>>=c,B-=c,t.back+=c,64&h){A.msg="invalid distance code",t.mode=30;break}t.offset=l,t.extra=15&h,t.mode=24;case 24:if(t.extra){for(p=t.extra;B>>=t.extra,B-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){A.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(0===a)break A;if(E=Q-a,t.offset>E){if((E=t.offset-E)>t.whave&&t.sane){A.msg="invalid distance too far back",t.mode=30;break}E>t.wnext?(E-=t.wnext,s=t.wsize-E):s=t.wnext-E,E>t.length&&(E=t.length),f=t.window}else f=r,s=g-t.offset,E=t.length;E>a&&(E=a),a-=E,t.length-=E;do{r[g++]=f[s++]}while(--E);0===t.length&&(t.mode=21);break;case 26:if(0===a)break A;r[g++]=t.length,a--,t.mode=21;break;case 27:if(t.wrap){for(;B<32;){if(0===n)break A;n--,o|=i[I++]<=0&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(e.windowBits>=0&&e.windowBits<16)||A&&A.windowBits||(e.windowBits+=32),e.windowBits>15&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var t=GA.inflateInit2(this.strm,e.windowBits);if(t!==UA)throw new Error(K[t]);if(this.header=new FA,GA.inflateGetHeader(this.strm,this.header),e.dictionary&&("string"==typeof e.dictionary?e.dictionary=Z(e.dictionary):"[object ArrayBuffer]"===SA.call(e.dictionary)&&(e.dictionary=new Uint8Array(e.dictionary)),e.raw&&(t=GA.inflateSetDictionary(this.strm,e.dictionary))!==UA))throw new Error(K[t])}function qA(A,e){var t=new JA(e);if(t.push(A),t.err)throw t.msg||K[t.err];return t.result}JA.prototype.push=function(A,e){var t,i,r,I=this.strm,g=this.options.chunkSize,n=this.options.dictionary;if(this.ended)return!1;for(i=e===~~e?e:!0===e?RA:vA,"[object ArrayBuffer]"===SA.call(A)?I.input=new Uint8Array(A):I.input=A,I.next_in=0,I.avail_in=I.input.length;;){for(0===I.avail_out&&(I.output=new Uint8Array(g),I.next_out=0,I.avail_out=g),(t=GA.inflate(I,i))===bA&&n&&((t=GA.inflateSetDictionary(I,n))===UA?t=GA.inflate(I,i):t===NA&&(t=bA));I.avail_in>0&&t===LA&&I.state.wrap>0&&0!==A[I.next_in];)GA.inflateReset(I),t=GA.inflate(I,i);switch(t){case MA:case NA:case bA:case xA:return this.onEnd(t),this.ended=!0,!1}if(r=I.avail_out,I.next_out&&(0===I.avail_out||t===LA))if("string"===this.options.to){var a=W(I.output,I.next_out),o=I.next_out-a,B=j(I.output,a);I.next_out=o,I.avail_out=g-o,o&&I.output.set(I.output.subarray(a,a+o),0),this.onData(B)}else this.onData(I.output.length===I.next_out?I.output:I.output.subarray(0,I.next_out));if(t!==UA||0!==r){if(t===LA)return t=GA.inflateEnd(this.strm),this.onEnd(t),this.ended=!0,!0;if(0===I.avail_in)break}}return!0},JA.prototype.onData=function(A){this.chunks.push(A)},JA.prototype.onEnd=function(A){A===UA&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=T(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg};var YA={Inflate:JA,inflate:qA,inflateRaw:function(A,e){return(e=e||{}).raw=!0,qA(A,e)},ungzip:qA,constants:H}.inflate;function KA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var HA=function(A){s(t,w);var e=KA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){return YA(new Uint8Array(A)).buffer}}]),t}(),OA=Object.freeze({__proto__:null,default:HA});function PA(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var TA,VA=function(A){s(t,w);var e=PA(t);function t(){return B(this,t),e.apply(this,arguments)}return Q(t,[{key:"decodeBlock",value:function(A){for(var e=new DataView(A),t=[],i=0;i>3],m<<=7&G),c=0;c>3]),128&m?(a&&(a[G]=1),f=f>(g=S.encoding<2?y[k++]:p)?g:f,n[G++]=g):(a&&(a[G]=0),n[G++]=i),m<<=1;G+=F}else if(S.encoding<2)for(h=0;h(g=y[k++])?g:f,n[G++]=g;G+=F}else for(f=f>p?p:f,h=0;h0){var g=new Uint8Array(Math.ceil(i.width*i.height/8)),n=(I=new DataView(A,e,i.mask.numBytes)).getInt16(0,!0),a=2,o=0;do{if(n>0)for(;n--;)g[o++]=I.getUint8(a++);else{var B=I.getUint8(a++);for(n=-n;n--;)g[o++]=B}n=I.getInt16(a,!0),a+=2}while(a0?1:0),s=Q+(i.height%Q>0?1:0);i.pixels.blocks=new Array(E*s);for(var f=0,c=0;c3)throw"Invalid block encoding ("+w.encoding+")";if(2!==w.encoding){if(0!==d&&2!==d){if(d>>=6,w.offsetType=d,2===d)w.offset=I.getInt8(1),l++;else if(1===d)w.offset=I.getInt16(1,!0),l+=2;else{if(0!==d)throw"Invalid block offset type";w.offset=I.getFloat32(1,!0),l+=4}if(1===w.encoding)if(d=I.getUint8(l),l++,w.bitsPerPixel=63&d,d>>=6,w.numValidPixelsType=d,2===d)w.numValidPixels=I.getUint8(l),l++;else if(1===d)w.numValidPixels=I.getUint16(l,!0),l+=2;else{if(0!==d)throw"Invalid valid pixel count type";w.numValidPixels=I.getUint32(l,!0),l+=4}}var D;if(e+=l,3!==w.encoding)if(0===w.encoding){var y=(i.pixels.numBytes-1)/4;if(y!==Math.floor(y))throw"uncompressed block has invalid length";D=new ArrayBuffer(4*y),new Uint8Array(D).set(new Uint8Array(A,e,4*y));var k=new Float32Array(D);w.rawData=k,e+=4*y}else if(1===w.encoding){var p=Math.ceil(w.numValidPixels*w.bitsPerPixel/8),m=Math.ceil(p/4);D=new ArrayBuffer(4*m),new Uint8Array(D).set(new Uint8Array(A,e,p)),w.stuffedData=new Uint32Array(D),e+=p}}else e++}return i.eofOffset=e,i},I=function(A,e,t,i,r,I,g){var n,a,o,B=(1<=e)a=o>>>Q-e&B,Q-=e;else{var f=e-Q;a=(o&B)<>>(Q=32-f)}I[n]=a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=r[o];else for(Q=Math.ceil((n-I)/g),a=0;a=t?(o=B>>>f-t&E,f-=t):(o=(B&E)<<(C=t-f)&E,o+=(B=A[s++])>>>(f=32-C)),e[a]=o=e?(Q=g>>>C-e&n,C-=e):(Q=(g&n)<<(B=e-C)&n,Q+=(g=A[a++])>>>(C=32-B)),E[o]=Q=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=t?(o=B>>>f&Q,s-=t,f+=t):(o=B>>>f&Q,s=32-(C=t-s),o|=((B=A[E++])&(1<=e?(Q=g>>>E&n,C-=e,E+=e):(Q=g>>>E&n,C=32-(B=e-C),Q|=((g=A[a++])&(1<=t?(I=g>>>B-t&a,B-=t):(I=(g&a)<<(n=t-B)&a,I+=(g=A[o++])>>>(B=32-n)),e[r]=I;return e},C=function(A,e,t,i){var r,I,g,n,a=(1<=t?(I=g>>>C&a,B-=t,C+=t):(I=g>>>C&a,B=32-(n=t-B),I|=((g=A[o++])&(1<=359?359:r;r-=g;do{e+=A[I++]<<8,t+=e+=A[I++]}while(--g);e=(65535&e)+(e>>>16),t=(65535&t)+(t>>>16)}return 1&i&&(t+=e+=A[I]<<8),((t=(65535&t)+(t>>>16))<<16|(e=(65535&e)+(e>>>16)))>>>0},readHeaderInfo:function(A,e){var t=e.ptr,i=new Uint8Array(A,t,6),r={};if(r.fileIdentifierString=String.fromCharCode.apply(null,i),0!==r.fileIdentifierString.lastIndexOf("Lerc2",0))throw"Unexpected file identifier string (expect Lerc2 ): "+r.fileIdentifierString;t+=6;var I,g=new DataView(A,t,8),n=g.getInt32(0,!0);if(r.fileVersion=n,t+=4,n>=3&&(r.checksum=g.getUint32(4,!0),t+=4),g=new DataView(A,t,12),r.height=g.getUint32(0,!0),r.width=g.getUint32(4,!0),t+=8,n>=4?(r.numDims=g.getUint32(8,!0),t+=4):r.numDims=1,g=new DataView(A,t,40),r.numValidPixel=g.getUint32(0,!0),r.microBlockSize=g.getInt32(4,!0),r.blobSize=g.getInt32(8,!0),r.imageType=g.getInt32(12,!0),r.maxZError=g.getFloat64(16,!0),r.zMin=g.getFloat64(24,!0),r.zMax=g.getFloat64(32,!0),t+=40,e.headerInfo=r,e.ptr=t,n>=3&&(I=n>=4?52:48,this.computeChecksumFletcher32(new Uint8Array(A,t-I,r.blobSize-14))!==r.checksum))throw"Checksum failed.";return!0},checkMinMaxRanges:function(A,e){var t=e.headerInfo,i=this.getDataTypeArray(t.imageType),r=t.numDims*this.getDataTypeSize(t.imageType),I=this.readSubArray(A,e.ptr,i,r),g=this.readSubArray(A,e.ptr+r,i,r);e.ptr+=2*r;var n,a=!0;for(n=0;n0){t=new Uint8Array(Math.ceil(g/8));var B=(a=new DataView(A,r,o.numBytes)).getInt16(0,!0),C=2,Q=0,E=0;do{if(B>0)for(;B--;)t[Q++]=a.getUint8(C++);else for(E=a.getUint8(C++),B=-B;B--;)t[Q++]=E;B=a.getInt16(C,!0),C+=2}while(C>3],s<<=7&f):s=t[f>>3],128&s&&(i[f]=1);e.pixels.resultMask=i,o.bitset=t,r+=o.numBytes}return e.ptr=r,e.mask=o,!0},readDataOneSweep:function(A,e,t,i){var r,I=e.ptr,g=e.headerInfo,n=g.numDims,a=g.width*g.height,o=g.imageType,B=g.numValidPixel*Q.getDataTypeSize(o)*n,C=e.pixels.resultMask;if(t===Uint8Array)r=new Uint8Array(A,I,B);else{var E=new ArrayBuffer(B);new Uint8Array(E).set(new Uint8Array(A,I,B)),r=new t(E)}if(r.length===a*n)e.pixels.resultPixels=i?Q.swapDimensionOrder(r,a,n,t,!0):r;else{e.pixels.resultPixels=new t(a*n);var s=0,f=0,c=0,h=0;if(n>1){if(i){for(f=0;f=g)return!1;var n=new Uint32Array(g-I);Q.decodeBits(A,e,n);var a,o,B,C,s=[];for(a=I;a0&&(s[o].second=l<>>32-C,32-w>=C?32===(w+=C)&&(w=0,l=u[++d]):(w+=C-32,l=u[++d],s[o].second|=l>>>32-w));var D=0,y=0,k=new E;for(a=0;a=t?t:D;var p,m,G,F,S,v=[];for(a=I;a0)if(p=[C,o],C<=y)for(m=s[o].second<=0;F--)m>>>F&1?(S.right||(S.right=new E),S=S.right):(S.left||(S.left=new E),S=S.left),0!==F||S.val||(S.val=p[1]);return{decodeLut:v,numBitsLUTQick:y,numBitsLUT:D,tree:k,stuffedData:u,srcPtr:d,bitPos:w}},readHuffman:function(A,e,t,i){var r,I,g,n,a,o,B,C,E,s=e.headerInfo.numDims,f=e.headerInfo.height,c=e.headerInfo.width,h=c*f,l=this.readHuffmanTree(A,e),u=l.decodeLut,w=l.tree,d=l.stuffedData,D=l.srcPtr,y=l.bitPos,k=l.numBitsLUTQick,p=l.numBitsLUT,m=0===e.headerInfo.imageType?128:0,G=e.pixels.resultMask,F=0;y>0&&(D++,y=0);var S,v=d[D],R=1===e.encodeMode,U=new t(h*s),L=U;if(s<2||R){for(S=0;S1&&(L=new t(U.buffer,h*S,h),F=0),e.headerInfo.numValidPixel===c*f)for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(g+=B>0?F:o>0?L[C-c]:F,g&=255,L[C]=g,F=g):L[C]=g}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,R?(B>0&&G[C-1]?g+=F:o>0&&G[C-c]?g+=L[C-c]:g+=F,g&=255,L[C]=g,F=g):L[C]=g}}else for(C=0,o=0;o>>32-k,32-y>>64-y-k),u[a])I=u[a][1],y+=u[a][0];else for(a=n=v<>>32-p,32-y>>64-y-p),r=w,E=0;E>>p-E-1&1?r.right:r.left).left&&!r.right){I=r.val,y=y+E+1;break}y>=32&&(y-=32,v=d[++D]),g=I-m,L[C]=g}e.ptr=e.ptr+4*(D+1)+(y>0?4:0),e.pixels.resultPixels=U,s>1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(U,h,s,t))},decodeBits:function(A,e,t,i,r){var I=e.headerInfo,Q=I.fileVersion,E=0,s=A.byteLength-e.ptr>=5?5:A.byteLength-e.ptr,f=new DataView(A,e.ptr,s),c=f.getUint8(0);E++;var h=c>>6,l=0===h?4:3-h,u=(32&c)>0,w=31&c,d=0;if(1===l)d=f.getUint8(E),E++;else if(2===l)d=f.getUint16(E,!0),E+=2;else{if(4!==l)throw"Invalid valid pixel count type";d=f.getUint32(E,!0),E+=4}var D,y,k,p,m,G,F,S,v,R=2*I.maxZError,U=I.numDims>1?I.maxValues[r]:I.zMax;if(u){for(e.counter.lut++,S=f.getUint8(E),E++,p=Math.ceil((S-1)*w/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),k=new Uint8Array(y),e.ptr+=E,k.set(new Uint8Array(A,e.ptr,p)),F=new Uint32Array(y),e.ptr+=p,v=0;S-1>>>v;)v++;p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,G=Q>=3?o(F,w,S-1,i,R,U):n(F,w,S-1,i,R,U),Q>=3?a(D,t,v,d,G):g(D,t,v,d,G)}else e.counter.bitstuffer++,v=w,e.ptr+=E,v>0&&(p=Math.ceil(d*v/8),m=Math.ceil(p/4),y=new ArrayBuffer(4*m),(k=new Uint8Array(y)).set(new Uint8Array(A,e.ptr,p)),D=new Uint32Array(y),e.ptr+=p,Q>=3?null==i?C(D,t,v,d):a(D,t,v,d,!1,i,R,U):null==i?B(D,t,v,d):g(D,t,v,d,!1,i,R,U))},readTiles:function(A,e,t,i){var r=e.headerInfo,I=r.width,g=r.height,n=I*g,a=r.microBlockSize,o=r.imageType,B=Q.getDataTypeSize(o),C=Math.ceil(I/a),E=Math.ceil(g/a);e.pixels.numBlocksY=E,e.pixels.numBlocksX=C,e.pixels.ptr=0;var s,f,c,h,l,u,w,d,D,y,k=0,p=0,m=0,G=0,F=0,S=0,v=0,R=0,U=0,L=0,b=0,M=0,N=0,x=0,J=0,q=new t(a*a),Y=g%a||a,K=I%a||a,H=r.numDims,O=e.pixels.resultMask,P=e.pixels.resultPixels,T=r.fileVersion>=5?14:15,V=r.zMax;for(m=0;m1?(y=P,L=m*I*a+G*a,P=new t(e.pixels.resultPixels.buffer,n*d*B,n),V=r.maxValues[d]):y=null,v=A.byteLength-e.ptr,f={},J=0,R=(s=new DataView(A,e.ptr,Math.min(10,v))).getUint8(0),J++,D=r.fileVersion>=5?4&R:0,U=R>>6&255,(R>>2&T)!=(G*a>>3&T))throw"integrity issue";if(D&&0===d)throw"integrity issue";if((l=3&R)>3)throw e.ptr+=J,"Invalid block encoding ("+l+")";if(2!==l)if(0===l){if(D)throw"integrity issue";if(e.counter.uncompressed++,e.ptr+=J,M=(M=F*S*B)<(N=A.byteLength-e.ptr)?M:N,c=new ArrayBuffer(M%B==0?M:M+B-M%B),new Uint8Array(c).set(new Uint8Array(A,e.ptr,M)),h=new t(c),x=0,O)for(k=0;k1&&!i&&(e.pixels.resultPixels=Q.swapDimensionOrder(e.pixels.resultPixels,n,H,t))},formatFileInfo:function(A){return{fileIdentifierString:A.headerInfo.fileIdentifierString,fileVersion:A.headerInfo.fileVersion,imageType:A.headerInfo.imageType,height:A.headerInfo.height,width:A.headerInfo.width,numValidPixel:A.headerInfo.numValidPixel,microBlockSize:A.headerInfo.microBlockSize,blobSize:A.headerInfo.blobSize,maxZError:A.headerInfo.maxZError,pixelType:Q.getPixelType(A.headerInfo.imageType),eofOffset:A.eofOffset,mask:A.mask?{numBytes:A.mask.numBytes}:null,pixels:{numBlocksX:A.pixels.numBlocksX,numBlocksY:A.pixels.numBlocksY,maxValue:A.headerInfo.zMax,minValue:A.headerInfo.zMin,noDataValue:A.noDataValue}}},constructConstantSurface:function(A,e){var t=A.headerInfo.zMax,i=A.headerInfo.zMin,r=A.headerInfo.maxValues,I=A.headerInfo.numDims,g=A.headerInfo.height*A.headerInfo.width,n=0,a=0,o=0,B=A.pixels.resultMask,C=A.pixels.resultPixels;if(B)if(I>1){if(e)for(n=0;n1&&i!==t)if(e)for(n=0;n=-128&&e<=127;break;case 1:t=e>=0&&e<=255;break;case 2:t=e>=-32768&&e<=32767;break;case 3:t=e>=0&&e<=65536;break;case 4:t=e>=-2147483648&&e<=2147483647;break;case 5:t=e>=0&&e<=4294967296;break;case 6:t=e>=-34027999387901484e22&&e<=34027999387901484e22;break;case 7:t=e>=-17976931348623157e292&&e<=17976931348623157e292;break;default:t=!1}return t},getDataTypeSize:function(A){var e=0;switch(A){case 0:case 1:e=1;break;case 2:case 3:e=2;break;case 4:case 5:case 6:e=4;break;case 7:e=8;break;default:e=A}return e},getDataTypeUsed:function(A,e){var t=A;switch(A){case 2:case 4:t=A-e;break;case 3:case 5:t=A-2*e;break;case 6:t=0===e?A:1===e?2:1;break;case 7:t=0===e?A:A-2*e+1;break;default:t=A}return t},getOnePixel:function(A,e,t,i){var r=0;switch(t){case 0:r=i.getInt8(e);break;case 1:r=i.getUint8(e);break;case 2:r=i.getInt16(e,!0);break;case 3:r=i.getUint16(e,!0);break;case 4:r=i.getInt32(e,!0);break;case 5:r=i.getUInt32(e,!0);break;case 6:r=i.getFloat32(e,!0);break;case 7:r=i.getFloat64(e,!0);break;default:throw"the decoder does not understand this pixel type"}return r},swapDimensionOrder:function(A,e,t,i,r){var I=0,g=0,n=0,a=0,o=A;if(t>1)if(o=new i(e*t),r)for(I=0;I5)throw"unsupported lerc version 2."+g;Q.readMask(A,r),I.numValidPixel===I.width*I.height||r.pixels.resultMask||(r.pixels.resultMask=e.maskData);var a=I.width*I.height;r.pixels.resultPixels=new n(a*I.numDims),r.counter={onesweep:0,uncompressed:0,lut:0,bitstuffer:0,constant:0,constantoffset:0};var o,B=!e.returnPixelInterleavedDims;if(0!==I.numValidPixel)if(I.zMax===I.zMin)Q.constructConstantSurface(r,B);else if(g>=4&&Q.checkMinMaxRanges(A,r))Q.constructConstantSurface(r,B);else{var C=new DataView(A,r.ptr,2),E=C.getUint8(0);if(r.ptr++,E)Q.readDataOneSweep(A,r,n,B);else if(g>1&&I.imageType<=1&&Math.abs(I.maxZError-.5)<1e-5){var s=C.getUint8(1);if(r.ptr++,r.encodeMode=s,s>2||g<4&&s>1)throw"Invalid Huffman flag "+s;s?Q.readHuffman(A,r,n,B):Q.readTiles(A,r,n,B)}else Q.readTiles(A,r,n,B)}r.eofOffset=r.ptr,e.inputOffset?(o=r.headerInfo.blobSize+e.inputOffset-r.ptr,Math.abs(o)>=1&&(r.eofOffset=e.inputOffset+r.headerInfo.blobSize)):(o=r.headerInfo.blobSize-r.ptr,Math.abs(o)>=1&&(r.eofOffset=r.headerInfo.blobSize));var f={width:I.width,height:I.height,pixelData:r.pixels.resultPixels,minValue:I.zMin,maxValue:I.zMax,validPixelCount:I.numValidPixel,dimCount:I.numDims,dimStats:{minValues:I.minValues,maxValues:I.maxValues},maskData:r.pixels.resultMask};if(r.pixels.resultMask&&Q.isValidPixelValue(I.imageType,t)){var c=r.pixels.resultMask;for(i=0;i1&&(o&&f.push(o),d.fileInfo.mask&&d.fileInfo.mask.numBytes>0&&w++),E++,u.pixels.push(d.pixelData),u.statistics.push({minValue:d.minValue,maxValue:d.maxValue,noDataValue:d.noDataValue,dimStats:d.dimStats})}if(i>1&&w>1){for(Q=u.width*u.height,u.bandMasks=f,(o=new Uint8Array(Q)).set(f[0]),B=1;B1&&void 0!==arguments[1]?arguments[1]:0;if(!jA)throw new Error("ZSTDDecoder: Await .init() before decoding.");var t=A.byteLength,i=jA.exports.malloc(t);WA.set(A,i),e=e||Number(jA.exports.ZSTD_findDecompressedSize(i,t));var r=jA.exports.malloc(e),I=jA.exports.ZSTD_decompress(r,e,i,t),g=WA.slice(r,r+I);return jA.exports.free(i),jA.exports.free(r),g}}]),A}(),ee="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQh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ASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigCACACaiAAQQZ2IgFBAnRBsB5qKAIAaiAAQSBxIgBFaiABRSAAQQV2cWoFQbh/CwsdACAAKAKQ4gEQWiAAQQA2AqDiASAAQgA3A5DiAQu1AwEFfyMAQZACayIKJABBuH8hBgJAIAVFDQAgBCwAACIIQf8BcSEHAkAgCEF/TARAIAdBgn9qQQF2IgggBU8NAkFsIQYgB0GBf2oiBUGAAk8NAiAEQQFqIQdBACEGA0AgBiAFTwRAIAUhBiAIIQcMAwUgACAGaiAHIAZBAXZqIgQtAABBBHY6AAAgACAGQQFyaiAELQAAQQ9xOgAAIAZBAmohBgwBCwAACwALIAcgBU8NASAAIARBAWogByAKEFMiBhADDQELIAYhBEEAIQYgAUEAQTQQECEJQQAhBQNAIAQgBkcEQCAAIAZqIggtAAAiAUELSwRAQWwhBgwDBSAJIAFBAnRqIgEgASgCAEEBajYCACAGQQFqIQZBASAILQAAdEEBdSAFaiEFDAILAAsLQWwhBiAFRQ0AIAUQFEEBaiIBQQxLDQAgAyABNgIAQQFBASABdCAFayIDEBQiAXQgA0cNACAAIARqIAFBAWoiADoAACAJIABBAnRqIgAgACgCAEEBajYCACAJKAIEIgBBAkkgAEEBcXINACACIARBAWo2AgAgB0EBaiEGCyAKQZACaiQAIAYLxhEBDH8jAEHwAGsiBSQAQWwhCwJAIANBCkkNACACLwAAIQogAi8AAiEJIAIvAAQhByAFQQhqIAQQDgJAIAMgByAJIApqakEGaiIMSQ0AIAUtAAohCCAFQdgAaiACQQZqIgIgChAGIgsQAw0BIAVBQGsgAiAKaiICIAkQBiILEAMNASAFQShqIAIgCWoiAiAHEAYiCxADDQEgBUEQaiACIAdqIAMgDGsQBiILEAMNASAAIAFqIg9BfWohECAEQQRqIQZBASELIAAgAUEDakECdiIDaiIMIANqIgIgA2oiDiEDIAIhBCAMIQcDQCALIAMgEElxBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgCS0AAyELIAcgBiAFQUBrIAgQAkECdGoiCS8BADsAACAFQUBrIAktAAIQASAJLQADIQogBCAGIAVBKGogCBACQQJ0aiIJLwEAOwAAIAVBKGogCS0AAhABIAktAAMhCSADIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgDS0AAyENIAAgC2oiCyAGIAVB2ABqIAgQAkECdGoiAC8BADsAACAFQdgAaiAALQACEAEgAC0AAyEAIAcgCmoiCiAGIAVBQGsgCBACQQJ0aiIHLwEAOwAAIAVBQGsgBy0AAhABIActAAMhByAEIAlqIgkgBiAFQShqIAgQAkECdGoiBC8BADsAACAFQShqIAQtAAIQASAELQADIQQgAyANaiIDIAYgBUEQaiAIEAJBAnRqIg0vAQA7AAAgBUEQaiANLQACEAEgACALaiEAIAcgCmohByAEIAlqIQQgAyANLQADaiEDIAVB2ABqEA0gBUFAaxANciAFQShqEA1yIAVBEGoQDXJFIQsMAQsLIAQgDksgByACS3INAEFsIQsgACAMSw0BIAxBfWohCQNAQQAgACAJSSAFQdgAahAEGwRAIAAgBiAFQdgAaiAIEAJBAnRqIgovAQA7AAAgBUHYAGogCi0AAhABIAAgCi0AA2oiACAGIAVB2ABqIAgQAkECdGoiCi8BADsAACAFQdgAaiAKLQACEAEgACAKLQADaiEADAEFIAxBfmohCgNAIAVB2ABqEAQgACAKS3JFBEAgACAGIAVB2ABqIAgQAkECdGoiCS8BADsAACAFQdgAaiAJLQACEAEgACAJLQADaiEADAELCwNAIAAgCk0EQCAAIAYgBUHYAGogCBACQQJ0aiIJLwEAOwAAIAVB2ABqIAktAAIQASAAIAktAANqIQAMAQsLAkAgACAMTw0AIAAgBiAFQdgAaiAIEAIiAEECdGoiDC0AADoAACAMLQADQQFGBEAgBUHYAGogDC0AAhABDAELIAUoAlxBH0sNACAFQdgAaiAGIABBAnRqLQACEAEgBSgCXEEhSQ0AIAVBIDYCXAsgAkF9aiEMA0BBACAHIAxJIAVBQGsQBBsEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiIAIAYgBUFAayAIEAJBAnRqIgcvAQA7AAAgBUFAayAHLQACEAEgACAHLQADaiEHDAEFIAJBfmohDANAIAVBQGsQBCAHIAxLckUEQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwNAIAcgDE0EQCAHIAYgBUFAayAIEAJBAnRqIgAvAQA7AAAgBUFAayAALQACEAEgByAALQADaiEHDAELCwJAIAcgAk8NACAHIAYgBUFAayAIEAIiAEECdGoiAi0AADoAACACLQADQQFGBEAgBUFAayACLQACEAEMAQsgBSgCREEfSw0AIAVBQGsgBiAAQQJ0ai0AAhABIAUoAkRBIUkNACAFQSA2AkQLIA5BfWohAgNAQQAgBCACSSAFQShqEAQbBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2oiACAGIAVBKGogCBACQQJ0aiIELwEAOwAAIAVBKGogBC0AAhABIAAgBC0AA2ohBAwBBSAOQX5qIQIDQCAFQShqEAQgBCACS3JFBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsDQCAEIAJNBEAgBCAGIAVBKGogCBACQQJ0aiIALwEAOwAAIAVBKGogAC0AAhABIAQgAC0AA2ohBAwBCwsCQCAEIA5PDQAgBCAGIAVBKGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBKGogAi0AAhABDAELIAUoAixBH0sNACAFQShqIAYgAEECdGotAAIQASAFKAIsQSFJDQAgBUEgNgIsCwNAQQAgAyAQSSAFQRBqEAQbBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2oiACAGIAVBEGogCBACQQJ0aiICLwEAOwAAIAVBEGogAi0AAhABIAAgAi0AA2ohAwwBBSAPQX5qIQIDQCAFQRBqEAQgAyACS3JFBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsDQCADIAJNBEAgAyAGIAVBEGogCBACQQJ0aiIALwEAOwAAIAVBEGogAC0AAhABIAMgAC0AA2ohAwwBCwsCQCADIA9PDQAgAyAGIAVBEGogCBACIgBBAnRqIgItAAA6AAAgAi0AA0EBRgRAIAVBEGogAi0AAhABDAELIAUoAhRBH0sNACAFQRBqIAYgAEECdGotAAIQASAFKAIUQSFJDQAgBUEgNgIUCyABQWwgBUHYAGoQCiAFQUBrEApxIAVBKGoQCnEgBUEQahAKcRshCwwJCwAACwALAAALAAsAAAsACwAACwALQWwhCwsgBUHwAGokACALC7UEAQ5/IwBBEGsiBiQAIAZBBGogABAOQVQhBQJAIARB3AtJDQAgBi0ABCEHIANB8ARqQQBB7AAQECEIIAdBDEsNACADQdwJaiIJIAggBkEIaiAGQQxqIAEgAhAxIhAQA0UEQCAGKAIMIgQgB0sNASADQdwFaiEPIANBpAVqIREgAEEEaiESIANBqAVqIQEgBCEFA0AgBSICQX9qIQUgCCACQQJ0aigCAEUNAAsgAkEBaiEOQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgASALaiAKNgIAIAVBAWohBSAKIAxqIQoMAQsLIAEgCjYCAEEAIQUgBigCCCELA0AgBSALRkUEQCABIAUgCWotAAAiDEECdGoiDSANKAIAIg1BAWo2AgAgDyANQQF0aiINIAw6AAEgDSAFOgAAIAVBAWohBQwBCwtBACEBIANBADYCqAUgBEF/cyAHaiEJQQEhBQNAIAUgDk9FBEAgCCAFQQJ0IgtqKAIAIQwgAyALaiABNgIAIAwgBSAJanQgAWohASAFQQFqIQUMAQsLIAcgBEEBaiIBIAJrIgRrQQFqIQgDQEEBIQUgBCAIT0UEQANAIAUgDk9FBEAgBUECdCIJIAMgBEE0bGpqIAMgCWooAgAgBHY2AgAgBUEBaiEFDAELCyAEQQFqIQQMAQsLIBIgByAPIAogESADIAIgARBkIAZBAToABSAGIAc6AAYgACAGKAIENgIACyAQIQULIAZBEGokACAFC8ENAQt/IwBB8ABrIgUkAEFsIQkCQCADQQpJDQAgAi8AACEKIAIvAAIhDCACLwAEIQYgBUEIaiAEEA4CQCADIAYgCiAMampBBmoiDUkNACAFLQAKIQcgBUHYAGogAkEGaiICIAoQBiIJEAMNASAFQUBrIAIgCmoiAiAMEAYiCRADDQEgBUEoaiACIAxqIgIgBhAGIgkQAw0BIAVBEGogAiAGaiADIA1rEAYiCRADDQEgACABaiIOQX1qIQ8gBEEEaiEGQQEhCSAAIAFBA2pBAnYiAmoiCiACaiIMIAJqIg0hAyAMIQQgCiECA0AgCSADIA9JcQRAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAACAGIAVBQGsgBxACQQF0aiIILQAAIQsgBUFAayAILQABEAEgAiALOgAAIAYgBUEoaiAHEAJBAXRqIggtAAAhCyAFQShqIAgtAAEQASAEIAs6AAAgBiAFQRBqIAcQAkEBdGoiCC0AACELIAVBEGogCC0AARABIAMgCzoAACAGIAVB2ABqIAcQAkEBdGoiCC0AACELIAVB2ABqIAgtAAEQASAAIAs6AAEgBiAFQUBrIAcQAkEBdGoiCC0AACELIAVBQGsgCC0AARABIAIgCzoAASAGIAVBKGogBxACQQF0aiIILQAAIQsgBUEoaiAILQABEAEgBCALOgABIAYgBUEQaiAHEAJBAXRqIggtAAAhCyAFQRBqIAgtAAEQASADIAs6AAEgA0ECaiEDIARBAmohBCACQQJqIQIgAEECaiEAIAkgBUHYAGoQDUVxIAVBQGsQDUVxIAVBKGoQDUVxIAVBEGoQDUVxIQkMAQsLIAQgDUsgAiAMS3INAEFsIQkgACAKSw0BIApBfWohCQNAIAVB2ABqEAQgACAJT3JFBEAgBiAFQdgAaiAHEAJBAXRqIggtAAAhCyAFQdgAaiAILQABEAEgACALOgAAIAYgBUHYAGogBxACQQF0aiIILQAAIQsgBUHYAGogCC0AARABIAAgCzoAASAAQQJqIQAMAQsLA0AgBUHYAGoQBCAAIApPckUEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCwNAIAAgCkkEQCAGIAVB2ABqIAcQAkEBdGoiCS0AACEIIAVB2ABqIAktAAEQASAAIAg6AAAgAEEBaiEADAELCyAMQX1qIQADQCAFQUBrEAQgAiAAT3JFBEAgBiAFQUBrIAcQAkEBdGoiCi0AACEJIAVBQGsgCi0AARABIAIgCToAACAGIAVBQGsgBxACQQF0aiIKLQAAIQkgBUFAayAKLQABEAEgAiAJOgABIAJBAmohAgwBCwsDQCAFQUBrEAQgAiAMT3JFBEAgBiAFQUBrIAcQAkEBdGoiAC0AACEKIAVBQGsgAC0AARABIAIgCjoAACACQQFqIQIMAQsLA0AgAiAMSQRAIAYgBUFAayAHEAJBAXRqIgAtAAAhCiAFQUBrIAAtAAEQASACIAo6AAAgAkEBaiECDAELCyANQX1qIQADQCAFQShqEAQgBCAAT3JFBEAgBiAFQShqIAcQAkEBdGoiAi0AACEKIAVBKGogAi0AARABIAQgCjoAACAGIAVBKGogBxACQQF0aiICLQAAIQogBUEoaiACLQABEAEgBCAKOgABIARBAmohBAwBCwsDQCAFQShqEAQgBCANT3JFBEAgBiAFQShqIAcQAkEBdGoiAC0AACECIAVBKGogAC0AARABIAQgAjoAACAEQQFqIQQMAQsLA0AgBCANSQRAIAYgBUEoaiAHEAJBAXRqIgAtAAAhAiAFQShqIAAtAAEQASAEIAI6AAAgBEEBaiEEDAELCwNAIAVBEGoQBCADIA9PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIAYgBUEQaiAHEAJBAXRqIgAtAAAhAiAFQRBqIAAtAAEQASADIAI6AAEgA0ECaiEDDAELCwNAIAVBEGoQBCADIA5PckUEQCAGIAVBEGogBxACQQF0aiIALQAAIQIgBUEQaiAALQABEAEgAyACOgAAIANBAWohAwwBCwsDQCADIA5JBEAgBiAFQRBqIAcQAkEBdGoiAC0AACECIAVBEGogAC0AARABIAMgAjoAACADQQFqIQMMAQsLIAFBbCAFQdgAahAKIAVBQGsQCnEgBUEoahAKcSAFQRBqEApxGyEJDAELQWwhCQsgBUHwAGokACAJC8oCAQR/IwBBIGsiBSQAIAUgBBAOIAUtAAIhByAFQQhqIAIgAxAGIgIQA0UEQCAEQQRqIQIgACABaiIDQX1qIQQDQCAFQQhqEAQgACAET3JFBEAgAiAFQQhqIAcQAkEBdGoiBi0AACEIIAVBCGogBi0AARABIAAgCDoAACACIAVBCGogBxACQQF0aiIGLQAAIQggBUEIaiAGLQABEAEgACAIOgABIABBAmohAAwBCwsDQCAFQQhqEAQgACADT3JFBEAgAiAFQQhqIAcQAkEBdGoiBC0AACEGIAVBCGogBC0AARABIAAgBjoAACAAQQFqIQAMAQsLA0AgACADT0UEQCACIAVBCGogBxACQQF0aiIELQAAIQYgBUEIaiAELQABEAEgACAGOgAAIABBAWohAAwBCwsgAUFsIAVBCGoQChshAgsgBUEgaiQAIAILtgMBCX8jAEEQayIGJAAgBkEANgIMIAZBADYCCEFUIQQCQAJAIANBQGsiDCADIAZBCGogBkEMaiABIAIQMSICEAMNACAGQQRqIAAQDiAGKAIMIgcgBi0ABEEBaksNASAAQQRqIQogBkEAOgAFIAYgBzoABiAAIAYoAgQ2AgAgB0EBaiEJQQEhBANAIAQgCUkEQCADIARBAnRqIgEoAgAhACABIAU2AgAgACAEQX9qdCAFaiEFIARBAWohBAwBCwsgB0EBaiEHQQAhBSAGKAIIIQkDQCAFIAlGDQEgAyAFIAxqLQAAIgRBAnRqIgBBASAEdEEBdSILIAAoAgAiAWoiADYCACAHIARrIQhBACEEAkAgC0EDTQRAA0AgBCALRg0CIAogASAEakEBdGoiACAIOgABIAAgBToAACAEQQFqIQQMAAALAAsDQCABIABPDQEgCiABQQF0aiIEIAg6AAEgBCAFOgAAIAQgCDoAAyAEIAU6AAIgBCAIOgAFIAQgBToABCAEIAg6AAcgBCAFOgAGIAFBBGohAQwAAAsACyAFQQFqIQUMAAALAAsgAiEECyAGQRBqJAAgBAutAQECfwJAQYQgKAIAIABHIAAoAgBBAXYiAyABa0F4aiICQXhxQQhHcgR/IAIFIAMQJ0UNASACQQhqC0EQSQ0AIAAgACgCACICQQFxIAAgAWpBD2pBeHEiASAAa0EBdHI2AgAgASAANgIEIAEgASgCAEEBcSAAIAJBAXZqIAFrIgJBAXRyNgIAQYQgIAEgAkH/////B3FqQQRqQYQgKAIAIABGGyABNgIAIAEQJQsLygIBBX8CQAJAAkAgAEEIIABBCEsbZ0EfcyAAaUEBR2oiAUEESSAAIAF2cg0AIAFBAnRB/B5qKAIAIgJFDQADQCACQXhqIgMoAgBBAXZBeGoiBSAATwRAIAIgBUEIIAVBCEsbZ0Efc0ECdEGAH2oiASgCAEYEQCABIAIoAgQ2AgALDAMLIARBHksNASAEQQFqIQQgAigCBCICDQALC0EAIQMgAUEgTw0BA0AgAUECdEGAH2ooAgAiAkUEQCABQR5LIQIgAUEBaiEBIAJFDQEMAwsLIAIgAkF4aiIDKAIAQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgBGBEAgASACKAIENgIACwsgAigCACIBBEAgASACKAIENgIECyACKAIEIgEEQCABIAIoAgA2AgALIAMgAygCAEEBcjYCACADIAAQNwsgAwvhCwINfwV+IwBB8ABrIgckACAHIAAoAvDhASIINgJcIAEgAmohDSAIIAAoAoDiAWohDwJAAkAgBUUEQCABIQQMAQsgACgCxOABIRAgACgCwOABIREgACgCvOABIQ4gAEEBNgKM4QFBACEIA0AgCEEDRwRAIAcgCEECdCICaiAAIAJqQazQAWooAgA2AkQgCEEBaiEIDAELC0FsIQwgB0EYaiADIAQQBhADDQEgB0EsaiAHQRhqIAAoAgAQEyAHQTRqIAdBGGogACgCCBATIAdBPGogB0EYaiAAKAIEEBMgDUFgaiESIAEhBEEAIQwDQCAHKAIwIAcoAixBA3RqKQIAIhRCEIinQf8BcSEIIAcoAkAgBygCPEEDdGopAgAiFUIQiKdB/wFxIQsgBygCOCAHKAI0QQN0aikCACIWQiCIpyEJIBVCIIghFyAUQiCIpyECAkAgFkIQiKdB/wFxIgNBAk8EQAJAIAZFIANBGUlyRQRAIAkgB0EYaiADQSAgBygCHGsiCiAKIANLGyIKEAUgAyAKayIDdGohCSAHQRhqEAQaIANFDQEgB0EYaiADEAUgCWohCQwBCyAHQRhqIAMQBSAJaiEJIAdBGGoQBBoLIAcpAkQhGCAHIAk2AkQgByAYNwNIDAELAkAgA0UEQCACBEAgBygCRCEJDAMLIAcoAkghCQwBCwJAAkAgB0EYakEBEAUgCSACRWpqIgNBA0YEQCAHKAJEQX9qIgMgA0VqIQkMAQsgA0ECdCAHaigCRCIJIAlFaiEJIANBAUYNAQsgByAHKAJINgJMCwsgByAHKAJENgJIIAcgCTYCRAsgF6chAyALBEAgB0EYaiALEAUgA2ohAwsgCCALakEUTwRAIAdBGGoQBBoLIAgEQCAHQRhqIAgQBSACaiECCyAHQRhqEAQaIAcgB0EYaiAUQhiIp0H/AXEQCCAUp0H//wNxajYCLCAHIAdBGGogFUIYiKdB/wFxEAggFadB//8DcWo2AjwgB0EYahAEGiAHIAdBGGogFkIYiKdB/wFxEAggFqdB//8DcWo2AjQgByACNgJgIAcoAlwhCiAHIAk2AmggByADNgJkAkACQAJAIAQgAiADaiILaiASSw0AIAIgCmoiEyAPSw0AIA0gBGsgC0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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",te={315:"Artist",258:"BitsPerSample",265:"CellLength",264:"CellWidth",320:"ColorMap",259:"Compression",33432:"Copyright",306:"DateTime",338:"ExtraSamples",266:"FillOrder",289:"FreeByteCounts",288:"FreeOffsets",291:"GrayResponseCurve",290:"GrayResponseUnit",316:"HostComputer",270:"ImageDescription",257:"ImageLength",256:"ImageWidth",271:"Make",281:"MaxSampleValue",280:"MinSampleValue",272:"Model",254:"NewSubfileType",274:"Orientation",262:"PhotometricInterpretation",284:"PlanarConfiguration",296:"ResolutionUnit",278:"RowsPerStrip",277:"SamplesPerPixel",305:"Software",279:"StripByteCounts",273:"StripOffsets",255:"SubfileType",263:"Threshholding",282:"XResolution",283:"YResolution",326:"BadFaxLines",327:"CleanFaxData",343:"ClipPath",328:"ConsecutiveBadFaxLines",433:"Decode",434:"DefaultImageColor",269:"DocumentName",336:"DotRange",321:"HalftoneHints",346:"Indexed",347:"JPEGTables",285:"PageName",297:"PageNumber",317:"Predictor",319:"PrimaryChromaticities",532:"ReferenceBlackWhite",339:"SampleFormat",340:"SMinSampleValue",341:"SMaxSampleValue",559:"StripRowCounts",330:"SubIFDs",292:"T4Options",293:"T6Options",325:"TileByteCounts",323:"TileLength",324:"TileOffsets",322:"TileWidth",301:"TransferFunction",318:"WhitePoint",344:"XClipPathUnits",286:"XPosition",529:"YCbCrCoefficients",531:"YCbCrPositioning",530:"YCbCrSubSampling",345:"YClipPathUnits",287:"YPosition",37378:"ApertureValue",40961:"ColorSpace",36868:"DateTimeDigitized",36867:"DateTimeOriginal",34665:"Exif IFD",36864:"ExifVersion",33434:"ExposureTime",41728:"FileSource",37385:"Flash",40960:"FlashpixVersion",33437:"FNumber",42016:"ImageUniqueID",37384:"LightSource",37500:"MakerNote",37377:"ShutterSpeedValue",37510:"UserComment",33723:"IPTC",34675:"ICC Profile",700:"XMP",42112:"GDAL_METADATA",42113:"GDAL_NODATA",34377:"Photoshop",33550:"ModelPixelScale",33922:"ModelTiepoint",34264:"ModelTransformation",34735:"GeoKeyDirectory",34736:"GeoDoubleParams",34737:"GeoAsciiParams",50674:"LercParameters"},ie={};for(var re in te)te.hasOwnProperty(re)&&(ie[te[re]]=parseInt(re,10));ie.BitsPerSample,ie.ExtraSamples,ie.SampleFormat,ie.StripByteCounts,ie.StripOffsets,ie.StripRowCounts,ie.TileByteCounts,ie.TileOffsets,ie.SubIFDs;var Ie={1:"BYTE",2:"ASCII",3:"SHORT",4:"LONG",5:"RATIONAL",6:"SBYTE",7:"UNDEFINED",8:"SSHORT",9:"SLONG",10:"SRATIONAL",11:"FLOAT",12:"DOUBLE",13:"IFD",16:"LONG8",17:"SLONG8",18:"IFD8"},ge={};for(var ne in Ie)Ie.hasOwnProperty(ne)&&(ge[Ie[ne]]=parseInt(ne,10));var ae=1,oe=0,Be=1,Ce=2,Qe={1024:"GTModelTypeGeoKey",1025:"GTRasterTypeGeoKey",1026:"GTCitationGeoKey",2048:"GeographicTypeGeoKey",2049:"GeogCitationGeoKey",2050:"GeogGeodeticDatumGeoKey",2051:"GeogPrimeMeridianGeoKey",2052:"GeogLinearUnitsGeoKey",2053:"GeogLinearUnitSizeGeoKey",2054:"GeogAngularUnitsGeoKey",2055:"GeogAngularUnitSizeGeoKey",2056:"GeogEllipsoidGeoKey",2057:"GeogSemiMajorAxisGeoKey",2058:"GeogSemiMinorAxisGeoKey",2059:"GeogInvFlatteningGeoKey",2060:"GeogAzimuthUnitsGeoKey",2061:"GeogPrimeMeridianLongGeoKey",2062:"GeogTOWGS84GeoKey",3072:"ProjectedCSTypeGeoKey",3073:"PCSCitationGeoKey",3074:"ProjectionGeoKey",3075:"ProjCoordTransGeoKey",3076:"ProjLinearUnitsGeoKey",3077:"ProjLinearUnitSizeGeoKey",3078:"ProjStdParallel1GeoKey",3079:"ProjStdParallel2GeoKey",3080:"ProjNatOriginLongGeoKey",3081:"ProjNatOriginLatGeoKey",3082:"ProjFalseEastingGeoKey",3083:"ProjFalseNorthingGeoKey",3084:"ProjFalseOriginLongGeoKey",3085:"ProjFalseOriginLatGeoKey",3086:"ProjFalseOriginEastingGeoKey",3087:"ProjFalseOriginNorthingGeoKey",3088:"ProjCenterLongGeoKey",3089:"ProjCenterLatGeoKey",3090:"ProjCenterEastingGeoKey",3091:"ProjCenterNorthingGeoKey",3092:"ProjScaleAtNatOriginGeoKey",3093:"ProjScaleAtCenterGeoKey",3094:"ProjAzimuthAngleGeoKey",3095:"ProjStraightVertPoleLongGeoKey",3096:"ProjRectifiedGridAngleGeoKey",4096:"VerticalCSTypeGeoKey",4097:"VerticalCitationGeoKey",4098:"VerticalDatumGeoKey",4099:"VerticalUnitsGeoKey"},Ee={};for(var se in Qe)Qe.hasOwnProperty(se)&&(Ee[Qe[se]]=parseInt(se,10));function fe(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var ce=new Ae,he=function(A){s(t,w);var e=fe(t);function t(A){var i;return B(this,t),(i=e.call(this)).planarConfiguration=void 0!==A.PlanarConfiguration?A.PlanarConfiguration:1,i.samplesPerPixel=void 0!==A.SamplesPerPixel?A.SamplesPerPixel:1,i.addCompression=A.LercParameters[ae],i}return Q(t,[{key:"decodeBlock",value:function(A){switch(this.addCompression){case oe:break;case Be:A=YA(new Uint8Array(A)).buffer;break;case Ce:A=ce.decode(new Uint8Array(A)).buffer;break;default:throw new Error("Unsupported LERC additional compression method identifier: ".concat(this.addCompression))}return zA.decode(A,{returnPixelInterleavedDims:1===this.planarConfiguration}).pixels[0].buffer}}]),t}(),le=Object.freeze({__proto__:null,zstd:ce,default:he});function ue(A){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(A){return!1}}();return function(){var t,i=c(A);if(e){var r=c(this).constructor;t=Reflect.construct(i,arguments,r)}else t=i.apply(this,arguments);return f(this,t)}}var we=function(A){s(I,w);var t,i=ue(I);function I(){var A;if(B(this,I),A=i.call(this),"undefined"==typeof createImageBitmap)throw new Error("Cannot decode WebImage as `createImageBitmap` is not available");if("undefined"==typeof document&&"undefined"==typeof OffscreenCanvas)throw new Error("Cannot decode WebImage as neither `document` nor `OffscreenCanvas` is not available");return A}return Q(I,[{key:"decode",value:(t=e(r.mark((function A(e,t){var i,I,g,n;return r.wrap((function(A){for(;;)switch(A.prev=A.next){case 0:return i=new Blob([t]),A.next=3,createImageBitmap(i);case 3:return I=A.sent,"undefined"!=typeof document?((g=document.createElement("canvas")).width=I.width,g.height=I.height):g=new OffscreenCanvas(I.width,I.height),(n=g.getContext("2d")).drawImage(I,0,0),A.abrupt("return",n.getImageData(0,0,I.width,I.height).data.buffer);case 8:case"end":return A.stop()}}),A)}))),function(A,e){return t.apply(this,arguments)})}]),I}(),de=Object.freeze({__proto__:null,default:we});';return new e(typeof Buffer<"u"?"data:application/javascript;base64,"+Buffer.from(A,"binary").toString("base64"):URL.createObjectURL(new Blob([A],{type:"application/javascript"})))}export{r as create}; diff --git a/dist/chunk-RNWIIYZZ.js b/dist/chunk-RNWIIYZZ.js deleted file mode 100644 index bf9dddb8..00000000 --- a/dist/chunk-RNWIIYZZ.js +++ /dev/null @@ -1 +0,0 @@ -import{X as u,g as r}from"./chunk-ZKAUCJHV.js";import{h as c}from"./chunk-DEPBX7UX.js";var f=[{label:"OK",default:!0,autoClose:!0}],a=(()=>{let n=class n{constructor(){this.modals=new r([])}show(t,e){return c(this,null,function*(){if(typeof t=="string"&&(t={message:t}),t.buttons||(t.buttons=JSON.parse(JSON.stringify(f)),e&&t.buttons&&(t.buttons[0].click=e)),t.inputs||(t.inputs={}),t.component&&t.component.then){yield t.component;let o=yield t.component;t.component=o[Object.keys(o)[0]]}let s=this.modals.getValue();s.push(t),this.modals.next(s)})}close(t){let e=this.modals.getValue(),s=e.indexOf(t);s!==-1&&(e.splice(s,1),this.modals.next(e),t.onClose&&t.onClose())}};n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=u({token:n,factory:n.\u0275fac,providedIn:"root"});let i=n;return i})();export{a}; diff --git a/dist/chunk-RU73HBGW.js b/dist/chunk-RU73HBGW.js new file mode 100644 index 00000000..d4f83de9 --- /dev/null +++ b/dist/chunk-RU73HBGW.js @@ -0,0 +1 @@ +import{S as r,ba as o,c as n,oa as s,xa as i}from"./chunk-ZEAAPN4P.js";function c(t){t||(s(c),t=o(i));let u=new n(e=>t.onDestroy(e.next.bind(e)));return e=>e.pipe(r(u))}export{c as a}; diff --git a/dist/chunk-SOHBG2MK.js b/dist/chunk-SOHBG2MK.js deleted file mode 100644 index 5f96f6aa..00000000 --- a/dist/chunk-SOHBG2MK.js +++ /dev/null @@ -1 +0,0 @@ -import{I as c}from"./chunk-CKPIETEW.js";import{Ba as o,ab as s,ha as n}from"./chunk-ZKAUCJHV.js";var u=(()=>{let t=class t{constructor(r,i){this.el=r,this.us=i}ngAfterViewInit(){this.el.nativeElement.attributes.getNamedItem("dswAutoFocus").value==="desktop"&&this.us.isMobile()||this.el.nativeElement.focus()}};t.\u0275fac=function(i){return new(i||t)(s(o),s(c))},t.\u0275dir=n({type:t,selectors:[["","dswAutoFocus",""]],standalone:!0});let e=t;return e})();export{u as a}; diff --git a/dist/chunk-SUAWKU6Z.js b/dist/chunk-SUAWKU6Z.js deleted file mode 100644 index cbc16df5..00000000 --- a/dist/chunk-SUAWKU6Z.js +++ /dev/null @@ -1 +0,0 @@ -import{Da as s,X as r,g as c}from"./chunk-ZKAUCJHV.js";import{h as i}from"./chunk-DEPBX7UX.js";var l=(()=>{let e=class e{constructor(){this.sidebarToggle=new c(void 0),this.onAnimStart=new s,this.onAnimEnd=new s,this.stack=[]}hide(){this.resetComponentStack(),this.sidebarToggle.next(void 0)}showComponent(t){return i(this,null,function*(){if(!t){this.hide();return}if(t.component&&t.component.then){yield t.component;let n=yield t.component;t.component=n[Object.keys(n)[0]]}if(t?.single&&this.stack.find(a=>a.component===t?.component)){this.sidebarToggle.next(t);return}t?.component&&this.stack.push(t),t&&this.sidebarToggle.next(t)})}popComponent(){this.stack.pop();let t=this.stack.pop()||null;this.showComponent(t)}resetComponentStack(){this.stack=[]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=r({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();export{l as a}; diff --git a/dist/chunk-UGEHMGZQ.js b/dist/chunk-UGEHMGZQ.js new file mode 100644 index 00000000..e5cfb6c1 --- /dev/null +++ b/dist/chunk-UGEHMGZQ.js @@ -0,0 +1,14 @@ +import{a as Co}from"./chunk-HCCYM72S.js";import{a as qr}from"./chunk-G7BOERRR.js";import{a as Wh}from"./chunk-R3LMLSL5.js";import{a as Gh,b as Xh}from"./chunk-CF2VGD6U.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-GDT23CSW.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,u;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(u=typeof i[c].regexps.unformat=="function"?i[c].regexps.unformat():i[c].regexps.unformat,u&&l.match(u)){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],u=!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,"(")?(u=!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||""),u?P=(u&&w?"(":"")+P+(u&&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},u,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(u in g)if(b=new RegExp("[^a-zA-Z]"+h.abbreviations[u]+"(?:\\)|(\\"+h.currency.symbol+")?(?:\\))?)?$"),c.match(b)){p*=Math.pow(10,g[u]);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,u=0,p;if(arguments.length===3)p=arguments[2];else{for(;u=g)throw new TypeError("Reduce of empty array with no initial value");p=c[u++]}for(;ug?h:g},1)},toFixed:function(l,h,c,g){var u=l.toString().split("."),p=h-(g||0),y,b,x,f;return u.length===2?y=Math.min(Math.max(u[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,u,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 u=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]!==u)||(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,u,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(u in i)if(g.match(i[u].regexps.format)){y=i[u].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,u,p,y){return g+Math.round(h*u)}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,u,p,y){return g-Math.round(h*u)}return this._value=t.reduce([l],c,Math.round(this._value*h))/h,this},multiply:function(l){function h(c,g,u,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,u,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")?" ":"",u;return l=l*1e4,h=h.replace(/\s?BPS/,""),u=n._.numberToFormat(l,h,c),n._.includes(u,")")?(u=u.split(""),u.splice(-1,0,g+"BPS"),u=u.join("")):u=u+g+"BPS",u},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(u){return l.suffixes.indexOf(u)<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(u,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),u===null||u===0||u>=L&&u<_){f+=x.suffixes[M],L>0&&(u=u/L);break}return b=n._.numberToFormat(u,p,y),b+f},unformat:function(u){var p=n._.stringToNumber(u),y,b;if(p){for(y=l.suffixes.length-1;y>=0;y--){if(n._.includes(u,l.suffixes[y])){b=Math.pow(l.base,y);break}if(n._.includes(u,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],u={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?(u.before=u.before.replace(/[\-\(]/,""),u.after=u.after.replace(/[\-\)]/,"")):l<0&&!n._.includes(u.before,"-")&&!n._.includes(u.before,"(")&&(u.before="-"+u.before),b=0;b=0;b--)switch(y=u.after[b],y){case"$":p=b===u.after.length-1?p+g.currency.symbol:n._.insert(p,g.currency.symbol,-(u.after.length-(1+b)));break;case" ":p=b===u.after.length-1?p+" ":n._.insert(p," ",-(u.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,u=typeof l=="number"&&!n._.isNaN(l)?l.toExponential():"0e+0",p=u.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 u(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)],u,1)}})}(),function(){n.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,h,c){var g=n.locales[n.options.currentLocale],u,p=n._.includes(h," o")?" ":"";return h=h.replace(/\s?o/,""),p+=g.ordinal(l),u=n._.numberToFormat(l,h,c),u+p}})}(),function(){n.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,h,c){var g=n._.includes(h," %")?" ":"",u;return n.options.scalePercentBy100&&(l=l*100),h=h.replace(/\s?\%/,""),u=n._.numberToFormat(l,h,c),n._.includes(u,")")?(u=u.split(""),u.splice(-1,0,g+"%"),u=u.join("")):u=u+g+"%",u},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),u=Math.floor((l-g*60*60)/60),p=Math.round(l-g*60*60-u*60);return g+":"+(u<10?"0"+u:u)+":"+(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)),d=Math.min(C,Math.floor(z+(F-S)*D/F+P));w(k,z,m,d,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(u){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)}u.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 d=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return d.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))},u.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||{},u=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)&&(u.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(u.minColor).tweenTo(a(u.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,u=c.length;g=u)&&(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]););u=M[x]||M[x+1],g=1-((p=M[x+1]||u)[0]-g)/(p[0]-u[0]||1),y=u.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:u}=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(),d=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?d: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,d)=>(m.push(...d.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let d=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",d===void 0?z="< ":v===void 0&&(z="> "),d!==void 0&&(z+=I(d,S)+T),d!==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 u(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:u,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:u,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&&(u(T,F.theme),T.style=p(F.theme.style,F.style));let{text:D,width:P=0,height:m=0,padding:d=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",d+3,d+m/2],["L",d+I-3,d+m/2]];D==="+"&&E.push(["M",d+I/2,d+3],["L",d+I/2,d+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),u(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(u){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)),u?.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(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:a.pointAttribs},c.compose=function(u){return l(u.prototype.pointClass,"afterSetState",g),u}}(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 u 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=u||(u={})).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)},u}),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 u 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(u.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(u.prototype,{dataLabelOnNull:i.pointMembers.dataLabelOnNull,moveToTopOnHover:i.pointMembers.moveToTopOnHover,isValid:i.pointMembers.isValid}),u}),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:u}=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),d=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=w.rotation?[P[0]*m+P[1]*d,-P[0]*d+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),d=w.sinAngle||w.rotation&&Math.sin(w.rotation),v=k(w.crs,"WGS84",w.rotation?{x:P.x*m+-(P.y*d),y:P.x*d+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:d}=_.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]],u=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=[(u*g[0]-p*c[0])*y,(u*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 u=h===c?Math.sin(h):Math.log(g/Math.cos(c))/Math.log(o(c)/o(h));1e-10>Math.abs(u)&&(u=1e-10*(i(u)||1)),this.n=u,this.c=g*Math.pow(o(h),u)/u}forward(a){let{c:l,n:h,projectedBounds:c}=this,g=a[0]*s,u=a[1]*s;l>0?u<-r+1e-6&&(u=-r+1e-6):u>r-1e-6&&(u=r-1e-6);let p=l/Math.pow(o(u),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,u=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/u,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,u;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-=u=g/(1.340264+-.24331799999999998*h+c*(.0062510000000000005+.034164*h)),!(1e-9>Math.abs(u)));++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),u=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 u(_-M)+f(M)*f(_)*u(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),d=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*d+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,d;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),d=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:u}=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:d,height:v}=m;return Math.log(400.979322/Math.max((P.x2-P.x1)/(d/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((d,v)=>(d.x1=Math.min(d.x1,v.x1),d.y1=Math.min(d.y1,v.y1),d.x2=Math.max(d.x2,v.x2),d.y2=Math.max(d.y2,v.y2),d),k(m[0]))}static mergeInsets(m,d){let v=E=>{let R={};return E.forEach((j,G)=>{R[j&&j.id||`i${G}`]=j}),R},I=k(v(m),v(d));return Object.keys(I).map(E=>I[E])}constructor(m,d){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=d||{};let v=k(s,this.recommendedMapView,d),I=this.recommendedMapView?.insets,E=d&&d.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,d=m.insets;d&&d.forEach(v=>{let I=new D(this,k(m.insetOptions,v));this.insets.push(I)})}fitToBounds(m,d,v=!0,I){let E=m||this.getProjectedBounds();if(E){let R=z(d,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 d=m?this.padding:[0,0,0,0];return{x:d[3],y:d[0],width:this.chart.plotWidth-d[1]-d[3],height:this.chart.plotHeight-d[0]-d[2]}}getGeoMap(m){if(w(m))return A[m]&&A[m].type==="Topology"?u(A[m]):A[m];if(_(m,!0)){if(m.type==="FeatureCollection")return m;if(m.type==="Topology")return u(m)}}getMapBBox(){let m=this.getProjectedBounds(),d=this.getScale();if(m){let v=this.padding,I=this.projectedUnitsToPixels({x:m.x1,y:m.y2});return{width:(m.x2-m.x1)*d+v[1]+v[3],height:(m.y2-m.y1)*d+v[0]+v[2],x:I.x-v[3],y:I.y-v[0]}}}getProjectedBounds(){let m=this.projection,d=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(d)}getScale(){return 256/400.979322*Math.pow(2,this.zoom)}getSVGTransform(){let{x:m,y:d,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=d+I/2-E[1]*G;return{scaleX:j,scaleY:G,translateX:W,translateY:N}}lonLatToPixels(m){let d=this.lonLatToProjectedUnits(m);if(d)return this.projectedUnitsToPixels(d)}lonLatToProjectedUnits(m){let d=this.chart,v=d.mapTransforms;if(v){for(let E in v)if(Object.hasOwnProperty.call(v,E)&&v[E].hitZone){let R=d.transformFromLatLon(m,v[E]);if(R&&g(R,v[E].hitZone.coordinates[0]))return R}return d.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 d=this.chart,v=d.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 d.transformToLatLon(m,v[R]);return d.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,d,v=!1){this.recommendedMapView={};let I=d.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(d=>{d.useMapGeometry&&(d.isDirty=!0)}),this.chart.redraw(m)}setView(m,d,v=!0,I){m&&(this.center=m),typeof d=="number"&&(typeof this.minZoom=="number"&&(d=Math.max(d,this.minZoom)),typeof this.options.maxZoom=="number"&&(d=Math.min(d,this.options.maxZoom)),L(d)&&(this.zoom=d));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 d=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-d*(v[0]-m.x),y:R+d*(v[1]-m.y)}}pixelsToLonLat(m){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(m))}pixelsToProjectedUnits(m){let{x:d,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]+(d-j)/I,y:E[1]-(v-G)/I}}setUpEvents(){let m,d,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!==d&&(d=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,d=!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),d&&this.chart.redraw(v)}zoomBy(m,d,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(d||j,N,void 0,I)}else this.fitToBounds(void 0,void 0,void 0,I)}}class D extends T{constructor(m,d){if(super(m.chart,d),this.id=d.id,this.mapView=m,this.options=k({center:[0,0]},m.options.insetOptions,d),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 d=this.hitZone;if(d){let v=m?this.padding:[0,0,0,0],I=d.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:d,options:v}=this,{coordinates:I}=v.field||{};if(I){let E=I[0];if(v.units==="percent"){let R=v.relativeTo==="mapBoundingBox"&&d.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:d,geoBoundsProjectedPolygon:v}=this;return!!(d&&m.x>=d.x1&&m.x<=d.x2&&m.y>=d.y1&&m.y<=d.y2&&v&&g(m,v))}render(){let{chart:m,mapView:d,options:v}=this,I=v.borderPath||v.field;if(I&&d.group){let E=!0;this.border||(this.border=m.renderer.path().addClass("highcharts-mapview-inset-border").add(d.group),E=!1),m.styledMode||this.border.attr({stroke:v.borderColor,"stroke-width":v.borderWidth});let R=this.border.strokeWidth(),j=v.relativeTo==="mapBoundingBox"&&d.getMapBBox()||d.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,u){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}=u;class P extends M{constructor(){super(...arguments),this.processedData=[]}animate(d){let{chart:v,group:I}=this,E=p(this.options.animation);d?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(d=>{delete d.bounds,delete d.insetIndex,delete d.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 d=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(d.getStrokeWidth(d.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=>{(d.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:d,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(d&&C(j)&&C(G)){let W=_(d,N=>N.isInside({x:j,y:G}));W&&(delete E.projectedPath,(R=E.getProjectedBounds(W.projection))&&W.allBounds.push(R),E.insetIndex=d.indexOf(W))}E.bounds=R}}E.bounds&&E.insetIndex===void 0&&I.push(E.bounds)}}),this.bounds=c.compositeBounds(I)}return this.bounds}getStrokeWidth(d){let v=this.pointAttrToOptions;return d[v&&v["stroke-width"]||"borderWidth"]}hasData(){return!!this.processedXData.length}pointAttribs(d,v){let{mapView:I,styledMode:E}=d.series.chart,R=E?this.colorAttribs(d):f.prototype.pointAttribs.call(this,d,v),j=this.getStrokeWidth(d.options);if(v){let W=F(this.options.states&&this.options.states[v],d.options.states&&d.options.states[v]||{}),N=this.getStrokeWidth(W);O(N)&&(j=N),R.stroke=W.borderColor??d.color}j&&I&&(j/=I.getScale());let G=this.getStrokeWidth(this.options);return R.dashstyle&&I&&C(G)&&(j=G/I.getScale()),d.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(d,v=!0,I,E){delete this.bounds,super.setData(d,!1,void 0,E),this.processData(),this.generatePoints(),v&&this.chart.redraw(I)}processData(){let d,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(d){let v=super.setOptions(d),I=v.joinBy;return v.joinBy===null&&(I="_i"),(I=this.joinBy=D(I))[1]||(I[1]=I[0]),v}translate(){let d=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),d&&(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(d){d.mapData&&this.chart.mapView?.recommendMapView(this.chart,[this.chart.options.chart.map,...(this.chart.options.series||[]).map((v,I)=>I===this._i?d.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,u){let p=super.pointAttribs(g,u);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:u,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"]]},u(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:u,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]=u(b[C],{center:b[0].radius-b[C].radius+M}),z||u(!0,b[C],{bubbleAttribs:u(L),connectorAttribs:u(_),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,d=C-A-D/2+P/2,v=(d%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,d],["L",m+E,d]],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:d+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]=u(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:u,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){u(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 u=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-u[1]-g,y.len-u[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:u,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,d=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),d=Math.max((R[j]-T)*v+G,d)}}}}),I&&P>0&&!this.logarithmic&&(d-=A,v*=(A+Math.max(0,m)-Math.min(d,A))/A,[["min","userMin",m],["max","userMax",d]].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?(d={zMin:R,zMax:j},this.chart.bubbleZExtremes=d):d={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=u.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],d=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(d)&&d>=D/2?(m.marker=L(m.marker,{radius:d,width:2*d,height:2*d}),m.dlBox={x:m.plotX-d,y:m.plotY-d,width:2*d,height:2*d}):(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(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=u.xAxis,f=u.yAxis,M=this.options.marker||u.options.marker,L=u.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(u=>a(parseFloat(u),parseInt(u,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:u,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:d=!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,d,"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),d=(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)-d)/2,width:m,height:d}}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,d=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"]=d,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),d=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 u(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",u))}}}),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(u,p){this.coll="pane",this.init(u,p)}init(u,p){this.chart=p,this.background=[],p.pane.push(this),this.setOptions(u)}setOptions(u){this.options=u=l(r.pane,this.chart.angular?{background:{}}:void 0,u)}render(){let u=this.options,p=this.chart.renderer;this.group||(this.group=p.g("pane-group").attr({zIndex:u.zIndex||0}).add()),this.updateCenter();let 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:u}=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,d=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),d&&(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"]=u(v.stemWidth,T.stemWidth,T.lineWidth),j.dashstyle=v.stemDashStyle||T.stemDashStyle||T.dashStyle,v.stem.attr(j),d&&(G.stroke=v.whiskerColor||T.whiskerColor||N,G["stroke-width"]=u(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"]=u(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(d){let V=v.whiskers.strokeWidth();f=h(v.highPlot,V),M=h(v.lowPlot,V),B=[["M",h(X-(F=typeof d=="string"&&/%$/.test(d)?A*parseFloat(d)/100:Number(d)/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:u,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]=u(b[C],{center:b[0].radius-b[C].radius+M}),z||u(!0,b[C],{bubbleAttribs:u(L),connectorAttribs:u(_),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,d=C-A-D/2+P/2,v=(d%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,d],["L",m+E,d]],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:d+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]=u(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:u,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){u(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 u=this.pos()||[0,0],{xAxis:p,yAxis:y,chart:b}=this.series;return b.renderer.symbols.circle(p.len-u[1]-g,y.len-u[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:u,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,d=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),d=Math.max((R[j]-T)*v+G,d)}}}}),I&&P>0&&!this.logarithmic&&(d-=A,v*=(A+Math.max(0,m)-Math.min(d,A))/A,[["min","userMin",m],["max","userMax",d]].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?(d={zMin:R,zMax:j},this.chart.bubbleZExtremes=d):d={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=u.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],d=T?T[P]:0;this.zoneAxis==="z"&&(m.negative=(m.z||0)<(S.zThreshold||0)),_(d)&&d>=D/2?(m.marker=L(m.marker,{radius:d,width:2*d,height:2*d}),m.dlBox={x:m.plotX-d,y:m.plotY-d,width:2*d,height:2*d}):(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:u,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,d=z.translate(T.high,0,1,0,1);if(y(d)&&y(m))if(T.plotHigh=u(d,-S,S),T.plotLow=u(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 u 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 u.defaultOptions=c(i.defaultOptions,r),h(u,"afterTranslate",function(){for(let p of this.points)p.plotLow=p.plotY},{order:0}),g(u.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),o.registerSeriesType("errorbar",u),u}),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:u,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}),u(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,u=this;u.container&&(h=o(u.container,"mousedown",p=>{let y=u.hoverPoint;y&&y.series&&y.series.hasDraggableNodes&&y.series.options.draggable&&(y.series.onMouseDown(y,p),c=o(u.container,"mousemove",b=>y&&y.series&&y.series.onMouseMove(y,b)),g=o(u.container.ownerDocument,"mouseup",b=>(c(),g(),y&&y.series&&y.series.onMouseUp(y,b))))})),o(u,"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,u,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,u=h.fixedPosition.plotY-x,p.isInsidePlot(g,u)&&(h.plotX=g,h.plotY=u,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 u(){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",u),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,u=g(h)/(h||1),p=g(c)/(c||1),y=u*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,u=l.y*c;o.fixedPosition||(o.plotX+=g,o.plotY+=u),h.fixedPosition||(h.plotX-=g,h.plotY-=u)},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(u(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 u=this.series,p=[];return u.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 u(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||{},d=m.type||"packedbubble",v=this.chart.graphLayoutsStorage,I=this.chart.graphLayoutsLookup,E=S(m,m.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),R=v[d+"-series"];R||(v[d+"-series"]=R=new r.layouts[d],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,d=this.options.zMin,v=this.options.zMax,I=1/0,E=-1/0;return d&&v?[d,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,d.plotWidth,d.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,d=this.layout.options.parentNodeOptions.marker,v={fill:d.fillColor||b(this.color).brighten(.4).get(),opacity:d.fillOpacity,stroke:d.lineColor||this.color,"stroke-width":T(d.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,d=this.parentNode;super.drawTracker(),d&&(m=A(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[],d.graphic&&(d.graphic.element.point=d),m.forEach(v=>{(v.div||v.element).point=d}))}getPointRadius(){let m,d,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=d=B.maxSize/Math.sqrt(H);let K=W?this.calculateZExtremes():[m,d];V.forEach((U,Y)=>{v=W?k(U[2],K[0],K[1]):U[2],(I=this.getRadius(K[0],K[1],m,d,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 d,v=this.layout,I=this.parentNodeLayout;I&&v.options.dragBetweenSeries&&I.nodes.forEach(E=>{m&&m.marker&&E!==m.series.parentNode&&(d=v.getDistXY(m,E),v.vectorLength(d)-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 d=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]&&d(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,d){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,d);return R!==1&&(j["fill-opacity"]=R),j}positionBubble(m,d,v){let I=Math.asin,E=Math.acos,R=Math.pow,j=Math.abs,G=(0,Math.sqrt)(R(m[0]-d[0],2)+R(m[1]-d[1],2)),W=E((R(G,2)+R(v[2]+d[2],2)-R(v[2]+m[2],2))/(2*(v[2]+d[2])*G)),N=I(j(m[0]-d[0])/G),B=(m[1]-d[1]<0?0:Math.PI)+W+N*((m[0]-d[0])*(m[1]-d[1])<0?1:-1),X=Math.cos(B),V=Math.sin(B);return[d[0]+(d[2]+v[2])*V,d[1]-(d[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(d=>{A(d.dataLabels)&&d.dataLabels.forEach(v=>{m.push(v)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(m))}resizeRadius(){let m,d,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,d=I=Number.NEGATIVE_INFINITY,j))E=Y[2],m=G(m,Y[0]-E),d=W(d,Y[0]+E),v=G(v,Y[1]-E),I=W(I,Y[1]+E);let H=[d-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-(d-m)/2}seriesBox(){let m,d=this.chart,v=this.data,I=Math.max,E=Math.min,R=[d.plotLeft,d.plotLeft+d.plotWidth,d.plotTop,d.plotTop+d.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(d=>{m.layout.removeElementFromCollection(d,m.layout.nodes)}))}translate(){let m,d,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]],d=T(G[2],void 0),j||(m.plotX=G[0]-I.plotLeft+I.diffX,m.plotY=G[1]-I.plotTop+I.diffY),F(d)&&(m.marker=O(m.marker,{radius:d,width:2*d,height:2*d}),m.radius=d));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:u}=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=u(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:u,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&&u(this.endAngleRad-this.startAngleRad)===u(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function 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):d(this),Z=!$):Q&&(d(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:u,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 u(U)||(U=K[K.length-1]),u(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 d(){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)&&u(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]),u(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=(u(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",d,{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 u(){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",u),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:u,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+(d.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,d=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,d,E,0),D=A):(V(D,W,0,d),G&&(d+=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(u(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:u(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,d,v,I;for(let E=0;E=0?d:d-N,_(V,"absolutePos")&&delete V.absolutePos,_(V,"absoluteNeg")&&delete V.absoluteNeg):(N>=0?(d=V.threshold+V.posTotal,V.posTotal-=N,m=d):(d=V.threshold+V.negTotal,V.negTotal-=N,m=d-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:u,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(d){let v,I=D.events&&D.events.click;I&&(v=I.call(S,d,C)),v!==!1&&(D.showFullPath?d.newLevel=C.level:d.newLevel=S.level-1,u(S,"up",d))},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,d,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(u,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 u&&(y=F[u.i],b=w[u.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(u){let p,y,b,x,f,M,L={};if(l(u))for(x=a(u.from)?u.from:1,M=u.levels,y={},p=l(u.defaults)?u.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(u.to)?u.to:1,b=0;b<=f;b++)L[b]=h({},p,l(y[b])?y[b]:{});return L},getNodeWidth:function(u,p){let{chart:y,options:b}=u,{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 u(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=u(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(u){let p,y;return l(u)&&(y=l(u.options)?u.options:{},p=c(u.rootNode,y.rootId,""),l(u.userOptions)&&(u.userOptions.rootId=p),u.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,u,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:d,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=d(J,{val:q.childrenTotal,direction:K?1-B.direction:B.direction}),q.pointValues=d(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=d(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=d(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}}),u.recursive(N.nodeMap[N.rootNode],Z=>{let q=Z.parent,J=!1;return Z.visible=!0,(q||q==="")&&(J=N.nodeMap[q]),J}),u.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=d(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=d(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:u}),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(u){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)}u.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 d=m.prototype.createAxis;m.prototype.createAxis=function(v,I){if(v!=="colorAxis")return d.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))},u.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||{},u=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)&&(u.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(u.minColor).tweenTo(a(u.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,u=c.length;g=u)&&(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]););u=M[x]||M[x+1],g=1-((p=M[x+1]||u)[0]-g)/(p[0]-u[0]||1),y=u.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:u}=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(),d=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?d: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,d)=>(m.push(...d.points.filter(v=>v.dataClass===P)),m),[]);return A.length||O.dataClasses.forEach((P,m)=>{let d=P.from,v=P.to,{numberFormatter:I}=C,E=!0;z="",d===void 0?z="< ":v===void 0&&(z="> "),d!==void 0&&(z+=I(d,S)+T),d!==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(u){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)),u?.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(u){let p={};return h(u.color)&&(!u.state||u.state==="normal")&&(p[this.colorProp||"fill"]=u.color),p},pointAttribs:a.pointAttribs},c.compose=function(u){return l(u.prototype.pointClass,"afterSetState",g),u}}(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(u,p){return(this.isNull||this.value===null)&&delete this.color,super.applyOptions(u,p),this.formatPrefix=this.isNull||this.value===null?"null":"point",this}getCellAttributes(){let u=this.series,p=u.options,y=(p.colsize||1)/2,b=(p.rowsize||1)/2,x=u.xAxis,f=u.yAxis,M=this.options.marker||u.options.marker,L=u.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(u=>a(parseFloat(u),parseInt(u,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:u,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:d=!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,d,"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),d=(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)-d)/2,width:m,height:d}}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,d=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"]=d,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),d=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,u,p){let y=g.options.chart.options3d,b=o(p,!!u&&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 u||(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,u){let p=u>0&&u=0?0:360),D.beta=D.beta%360+(D.beta>=0?0:360));let P=this.inverted,m=this.clipBox,d=this.margin;m[P?"y":"x"]=-(d[3]||0),m[P?"x":"y"]=-(d[0]||0),m[P?"height":"width"]=this.chartWidth+(d[3]||0)+(d[1]||0),m[P?"width":"height"]=this.chartHeight+(d[0]||0)+(d[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,d=P.prototype;m.is3d=function(){return!!this.options.chart.options3d?.enabled},m.propsRequireDirtyBox.push("chart.options3d"),m.propsRequireUpdateSeries.push("chart.options3d"),d.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),u(D,"init",C),u(D,"addSeries",M),u(D,"afterDrawChartBox",L),u(D,"afterGetContainer",_),u(D,"afterInit",w),u(D,"afterSetChartSize",k),u(D,"beforeRedraw",z),u(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,d=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([d.bottom,d.top,d],W,K),top:q([d.top,d.bottom,d],N,U),left:q([d.left,d.right,d.side,d],B,Y),right:q([d.right,d.left,d.side,d],X,Z),back:q([d.back,d.front,d],H,!0),front:q([d.front,d.back,d],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((d+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",u)}}}),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(u){let p=this.axis.axis3D;p&&a(u.pos,p.fix3dPosition(u.pos))}function g(u){let p=this.axis.axis3D,y=u.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(u){l(r,"Axis.Tick3D")&&(o(u,"afterGetLabelPosition",c),h(u.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:u,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}),d=this.getPlotLinePath({value:D});if(m&&d)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:u,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=u(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(u){let p=this.renderer,y=p[this.pathType+"Path"](u),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(u,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][u]=y[w],_&&(M[w].zIndex=y.zIndexes[w]||0);L[1]=M}else M[u]=p,L[0]=M;return this.processParts.apply(this,L)}processParts(u,p,y,b,x){for(let f of this.parts)p&&(u=h(p[f],!1)),u!==!1&&this[f][y](u,b,x);return this}destroy(){return this.processParts(null,null,"destroy"),super.destroy()}attr(u,p,y,b){if(typeof u=="string"&&p!==void 0){let x=u;(u={})[x]=p}return u.shapeArgs||l(u.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](u.shapeArgs||u)):super.attr(u,void 0,y,b)}animate(u,p,y){if(l(u.x)&&l(u.y)){let b=this.renderer[this.pathType+"Path"](u),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(u,p,y);return this}fillSetter(u){return this.forcedSides=this.forcedSides||[],this.singleSetterForParts("fill",null,{front:u,top:o(u).brighten(this.forcedSides.indexOf("top")>=0?0:.1).get(),side:o(u).brighten(this.forcedSides.indexOf("side")>=0?0:-.1).get()}),this.color=this.fill=u,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:u,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 d=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*d*Math.sin(T)+P,A+S*Math.sin(T)+S*z*d*Math.cos(T)+m,C+F*Math.cos(D)+F*z*d*Math.sin(D)+P,A+S*Math.sin(D)-S*z*d*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=u[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=u[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 d(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:d,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 u(){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",u))}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:u}=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,d=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=d[E[0]]-T)<0&&(d[E[1]]+=d[E[0]]+T,d[E[0]]=-T,m=0),m+d[E[1]]>this[E[0]+"Axis"].len&&d[E[1]]!==0&&(d[E[1]]=this[E[0]+"Axis"].len-d[E[0]]),d[E[1]]!==0&&(d[E[0]]>=this[E[0]+"Axis"].len||d[E[0]]+d[E[1]]<=T)){for(let R in d)d[R]=R==="y"?-9999:0;P.outside3dPlot=!0}if(P.shapeType==="roundedRect"&&(P.shapeType="cuboid"),P.shapeArgs=h(d,{z:S,depth:F,insidePlotArea:!0}),D={x:d.x+d.width/2,y:d.y,z:S+F/2},C.inverted&&(D.x=d.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(d,v){let I=d.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&&d.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 d={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&&(d.y+=T)),d=a([d],S,!0,!1)[0],F.x=d.x-T/2,F.y=d.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(u(F,"alignDataLabel",k),u(F,"justifyDataLabel",z),u(S,"getStackBox",O),T){let P=T.prototype,m=P.pointClass.prototype;P.translate3dPoints=()=>{},P.translate3dShapes=p,l(P,"afterInit",y),u(m,"hasNewShapeType",b),u(P,"animate",x),u(P,"plotGroup",f),u(P,"pointAttribs",M),u(P,"setState",L),u(P,"setVisible",_),u(P,"translate",w)}if(D){let P=D.prototype;u(P.pointClass.prototype,"hasNewShapeType",b),u(P,"plotGroup",f),u(P,"pointAttribs",M),u(P,"setState",L),u(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:u}=o;class p extends h{static compose(b){u(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 u extends o{pointAttribs(y){let b=super.pointAttribs.apply(this,arguments);return this.chart.is3d()&&y&&(b.zIndex=h(y,this.chart)),b}}return u.defaultOptions=g(o.defaultOptions,r),c(u.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:s}),a.registerSeriesType("scatter3d",u),u}),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,u,p){return r.compose(i.seriesTypes.area),o.compose(i.Axis,i.Tick),s.compose(i.Chart,i.Fx),u.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 u=g/3-2;return[].concat(this.circle(c-u,h,u,u),this.circle(c-u,h+u+4,u,u),this.circle(c-u,h+2*(u+4),u,u))}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 u(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 u(g,y)}return h.success&&h.success(p,g)}u(g,g.responseText)}},h.data&&typeof h.data!="string"&&(h.data=JSON.stringify(h.data)),g.send(h.data)},getJSON:function(h,c){l.ajax({url:h,success:c,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(h,c,g){let u=new r.FormData;a(c,function(b,x){u.append(x,b)}),u.append("b64","true");let{filename:p,type:y}=c;return r.fetch(h,re({method:"POST",body:u},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,u){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}=u;return function(P){let m,d=[/-/,/^(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"}),u.clearTimeout(dt.hideTimer),O(ot,"exportMenuHidden")},ot.exportEvents.push(M(dt,"mouseleave",function(){dt.hideTimer=f.setTimeout(dt.hideMenu,500)}),M(dt,"mouseenter",function(){u.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&&(u.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=d.length;yt--&&!ht;){if(mt.length>1e3)throw Error("Input too long");ht=d[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:u,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(d){T=T.replace("{point."+d+"}",(D[d]>0&&d==="change"?"+":"")+P(D[d],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,d=-1,v;for(this.pointArrayMap&&(d=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),v=0;v-1?D[v][d]: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,d=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,d.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((d,v)=>{let I=d+v;return P=Math.min(P,I,d),m=Math.max(m,I,d),I}),[P,m]}initCompare(D){this.modifyValue=function(P,m){P===null&&(P=0);let d=this.compareValue;if(P!==void 0&&d!==void 0){if(D==="value"?P-=d:P=P/d*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=u(m.cumulativeSum+D));let d=this.series.points[P],v=d.series.options.cumulativeStart,I=d.x<=this.series.xAxis.max&&d.x>=this.series.xAxis.min;return d&&(!v||I?d.cumulativeSum=D:d.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 u(){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",u),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 u(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",u))}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,u=r(c.borderRadius||0,Math.min(2*g,h));return[["M",-1.5,(h=c.height||h)/2-3.5],["L",-1.5,h/2+4.5],["M",.5,h/2-3.5],["L",.5,h/2+4.5],...i.rect(-g-1,.5,2*g+1,h,{r:u})]}}}),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:u}=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(u,"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 u;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 u(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")&&(u=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:u,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(!u(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"||!u(_)}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:u}=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,...d){let v=[].filter.call(d,C);if(v.length)return Math[m].apply(0,v)}class P{static compose(d,v,I){s.compose(d,P),l.compose(d,v,I)}constructor(d){this.isDirty=!1,this.scrollbarHeight=0,this.init(d)}drawHandle(d,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(d,10)+.5-R)}:{translateX:Math.round(this.left+parseInt(d,10)),translateY:Math.round(this.top+this.height/2-R/2-1)})}drawOutline(d,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+d+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,d+=U+N-W,v+=U+N-W,Z=[["M",U,H],["L",d,H],["L",d,K],["M",v,K],["L",v,H],["L",U+B+2*N,H]],R&&Z.push(["M",d-G,H],["L",v+G,H])),this.outline[E]({d:Z})}drawMasks(d,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+d,B+v],j=[X,X,X],R=[d,v-d,this.size-v]):(G=[N,N+d,N+v],W=[B,B,B],j=[d,v-d,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 d=this,v=d.navigatorOptions,I=v.maskInside,E=d.chart,R=E.inverted,j=E.renderer,G={cursor:R?"ns-resize":"ew-resize"},W=d.navigatorGroup??(d.navigatorGroup=j.g("navigator").attr({zIndex:8,visibility:"hidden"}).add());if([!I,I,!I].forEach((N,B)=>{let X=d.shades[B]??(d.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))}),d.outline||(d.outline=j.path().addClass("highcharts-navigator-outline").add(W)),E.styledMode||d.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(d.handles[V]&&d.handles[V].symbolUrl===H){if(!d.handles[V].isImg&&d.handles[V].symbolName!==H){let K=y[H].call(y,-X/2-1,0,X,B);d.handles[V].attr({d:K}),d.handles[V].symbolName=H}}else d.handles[V]?.destroy(),d.handles[V]=j.symbol(H,-X/2-1,0,X,B,N),d.handles[V].attr({zIndex:7-V}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][V]).add(W),d.addMouseEvents();E.inverted&&d.handles[V].attr({rotation:90,rotationOriginX:Math.floor(-X/2),rotationOriginY:(B+X)/2}),E.styledMode||d.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(d,v=!1){let I=this.chart,E=I.options.chart.inverted!==I.scrollbar?.options.vertical;if(A(!0,I.options.navigator,d),this.navigatorOptions=I.options.navigator||{},this.setOpposite(),M(d.enabled)||E)return this.destroy(),this.navigatorEnabled=d.enabled||this.navigatorEnabled,this.init(I);if(this.navigatorEnabled&&(this.isDirty=!0,d.adaptToUpdatedData===!1&&this.baseSeries.forEach(R=>{S(R,"updatedData",this.updatedDataHandler)},this),d.adaptToUpdatedData&&this.baseSeries.forEach(R=>{R.eventsToUnbind.push(b(R,"updatedData",this.updatedDataHandler))},this),(d.series||d.baseSeries)&&this.setBaseSeries(void 0,!1),d.height||d.xAxis||d.yAxis)){this.height=d.height??this.height;let R=this.getXAxisOffsets();this.xAxis.update(oi(re({},d.xAxis),{offsets:R,[I.inverted?"width":"height"]:this.height,[I.inverted?"height":"width"]:void 0}),!1),this.yAxis.update(oi(re({},d.yAxis),{[I.inverted?"width":"height"]:this.height}),!1)}v&&I.redraw()}render(d,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(),d=f(d-G/2),v=f(v+G/2),!C(d)||!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(d,!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 d=this,v=d.chart,I=v.container,E=[],R,j;d.mouseMoveHandler=R=function(G){d.onMouseMove(G)},d.mouseUpHandler=j=function(G){d.onMouseUp(G)},(E=d.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(d.getPartsEvents("touchstart")),d.eventsToUnbind=E,d.series&&d.series[0]&&E.push(b(d.series[0].xAxis,"foundExtremes",function(){v.navigator.modifyNavigatorAxisExtremes()}))}getPartsEvents(d){let v=this,I=[];return["shades","handles"].forEach(function(E){v[E].forEach(function(R,j){I.push(b(R.element,d,function(G){v[E+"Mousedown"](G,j)}))})}),I}shadesMousedown(d,v){d=this.chart.pointer?.normalize(d)||d;let I=this.chart,E=this.xAxis,R=this.zoomedMin,j=this.size,G=this.range,W=this.left,N=d.chartX,B,X,V,H;I.inverted&&(N=d.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(d,v){d=this.chart.pointer?.normalize(d)||d;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(d){let v=this,I=v.chart,E=v.navigatorSize,R=v.range,j=v.dragOffset,G=I.inverted,W=v.left,N;(!d.touches||d.touches[0].pageX!==0)&&(N=(d=I.pointer?.normalize(d)||d).chartX,G&&(W=v.top,N=d.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)&&(d.DOMType=d.type,setTimeout(function(){v.onMouseUp(d)},0)))}onMouseUp(d){let v,I,E,R,j,G,W=this.chart,N=this.xAxis,B=this.scrollbar,X=d.DOMEvent||d,V=W.inverted,H=this.rendered&&!this.hasDragged?"animate":"attr";(this.hasDragged&&(!B||!B.hasDragged)||d.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}})),d.DOMType!=="mousemove"&&d.DOMType!=="touchmove"&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&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(d){d()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()}removeBaseSeriesEvents(){let d=this.baseSeries||[];this.navigatorEnabled&&d[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&d.forEach(function(v){S(v,"updatedData",this.updatedDataHandler)},this),d[0].xAxis&&S(d[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))}getXAxisOffsets(){return this.chart.inverted?[this.scrollButtonSize,0,-this.scrollButtonSize,0]:[0,-this.scrollButtonSize,0,this.scrollButtonSize]}init(d){let v=d.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=d,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=d.xAxis.length,H=d.yAxis.length,K=X&&X[0]&&X[0].xAxis||d.xAxis[0]||{options:{}};if(d.isDirtyBox=!0,B.navigatorEnabled){let U=this.getXAxisOffsets();B.xAxis=new i(d,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},d.inverted?{offsets:U,width:G}:{offsets:U,height:G}),"xAxis"),B.yAxis=new i(d,A(I.yAxis,{alignTicks:!1,offset:0,index:H,isInternal:!0,reversed:F(I.yAxis&&I.yAxis.reversed,d.yAxis[0]&&d.yAxis[0].reversed,!1),zoomEnabled:!1},d.inverted?{width:G}:{height:G}),"yAxis"),X||I.series.data?B.updateNavigatorSeries(!1):d.series.length===0&&(B.unbindRedraw=b(d,"beforeRedraw",function(){d.series.length>0&&!B.series&&(B.setBaseSeries(),B.unbindRedraw())})),B.reversedExtremes=d.inverted&&!B.xAxis.reversed||!d.inverted&&B.xAxis.reversed,B.renderElements(),B.addMouseEvents()}else B.xAxis={chart:d,navigatorAxis:{fake:!0},translate:function(U,Y){let Z=d.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(d.options.scrollbar.enabled){let U=A(d.options.scrollbar,{vertical:d.inverted});!C(U.margin)&&B.navigatorEnabled&&(U.margin=d.inverted?-3:3),d.scrollbar=B.scrollbar=new h(d.renderer,U,d),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 d=this.navigatorOptions,v=this.navigatorEnabled,I=this.chart;this.opposite=F(d.opposite,!!(!v&&I.inverted))}getUnionExtremes(d){let v,I=this.chart.xAxis[0],E=this.xAxis,R=E.options,j=I.options;return d&&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(d,v){let I=this.chart,E=this.baseSeries=[];d=d||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===d||R.options.id===d)&&R.options.showInNavigator!==!1)&&E.push(R)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,v)}updateNavigatorSeries(d,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)?u.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,u.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(u.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)))})),d&&this.addBaseSeriesEvents()}addBaseSeriesEvents(){let d=this,v=d.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&&(_(d.series,this.navigatorSeries),M(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})}getBaseSeriesMin(d){return this.baseSeries.reduce(function(v,I){return Math.min(v,I.xData&&I.xData.length?I.xData[0]:v)},d)}modifyNavigatorAxisExtremes(){let d=this.xAxis;if(d.getExtremes!==void 0){let v=this.getUnionExtremes(!0);v&&(v.dataMin!==d.min||v.dataMax!==d.max)&&(d.min=v.dataMin,d.max=v.dataMax)}}modifyBaseAxisExtremes(){let d,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&&(d=(v=G)+N),X&&(d=W+V,B||(v=Math.max(G,d-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=d)),I.stickToMin=I.stickToMax=null}updatedDataHandler(){let d=this.chart.navigator,v=this.navigatorSeries,I=d.reversedExtremes?Math.round(d.zoomedMin)===0:Math.round(d.zoomedMax)>=Math.round(d.size);d.stickToMax=F(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,I),d.stickToMin=d.shouldStickToMin(this,d),v&&!d.hasNavigatorData&&(v.options.pointStart=this.xData[0],v.setData(this.options.data,!1,null,!1))}shouldStickToMin(d,v){let I=v.getBaseSeriesMin(d.xData[0]),E=d.xAxis,R=E.max,j=E.min,G=E.options.range;return!!(C(R)&&C(j))&&(G&&R-I>0?R-I{d.destroy&&d.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(d=>{this[d]&&this[d].destroy&&this[d].destroy(),this[d]=null}),[this.handles].forEach(d=>{L(d)}),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:u,isNumber:p,pick:y,timeUnits:b,isString:x}=o;return function(f){function M(D,P,m,d,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],d);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,d;return D<0?D=P[0]:D>m?D=P[m]:(m=Math.floor(D),d=D-m),d!==void 0&&P[m]!==void 0?P[m]+(d?d*(P[m+1]-P[m]):0):D}function _(D){let P=this.ordinal,m=this.old?this.old.min:this.min,d=this.old?this.old.transA:this.transA,v=P.getExtendedPositions();if(v&&v.length){let I=h((D-m)*d+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 d=(P-D[m])/(D[m+1]-D[m]);return m+d}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),d=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-d)/(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=d,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,d=this.ordinal,v=d.positions,I=d.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=d.getExtendedPositions&&d.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,d){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),u(l,{rangeSelector:r.rangeSelector}),u(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:u,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],d=D.scroller&&D.scroller.getUnionExtremes()||m||{},v=P.type,I=P.dataGrouping,E=d.dataMin,R=d.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,d=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",d)),this.eventsToUnbind.push(g(S,"resize",d)),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],d=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")&&d+36e5>={month:28,year:365}[Q]*I*$-tt&&d-36e5<={month:31,year:366}[Q]*I*$+tt?nt=!0:Q==="ytd"?(nt=N-W+tt===d,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&&(d.lastIndexOf("-")===d.length-6||d.lastIndexOf("+")===d.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 d=S.split("-");m=Date.UTC(O(d[0]),O(d[1])-1,O(d[2]))}return D&&T&&L(m)&&(m+=D.getTimezoneOffset(m)),m}drawInput(S){let{chart:T,div:D,inputGroup:P}=this,m=this,d=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=u("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(_(d,I.labelStyle)),N.css(_({color:"#333333"},d,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:d.fontSize,fontFamily:d.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),d=P.get("FullYear",m),v=Math.max(T,D?P.Date.UTC(d,0,1):+new P.Date(d,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,d=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=u("div",void 0,{position:"relative",height:0,zIndex:v}),this.buttonOptions.length&&this.renderButtons(),D.parentNode&&D.parentNode.insertBefore(this.div,D),d)){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 d=D.scroller&&D.scroller.getUnionExtremes()||D.xAxis[0]||{};if(y(d.dataMin)&&y(d.dataMax)){let v=D.xAxis[0].minRange||0;this.setInputExtremes("min",d.dataMin,Math.min(d.dataMax,this.getInputValue("max"))-v),this.setInputExtremes("max",Math.max(d.dataMin,this.getInputValue("min"))+v,d.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,d=_(D.buttonTheme),v=d&&d.states,I=d.width||28;delete d.width,delete d.states,this.buttonGroup=m.g("range-selector-buttons").add(this.group);let E=this.dropdown=u("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,()=>{},_(d,{"stroke-width":z(d["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),d["stroke-width"]=z(d["stroke-width"],0)),u("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,E),this.buttonOptions.forEach((W,N)=>{u("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},d,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:d,zoomText:v}=this,I=D.options,E=I.exporting&&I.exporting.enabled!==!1&&I.navigation&&I.navigation.buttonOptions,{buttonPosition:R,inputPosition:j,verticalAlign:G}=d,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+=d.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)-(d.floating?0:d.y)-(D.titleOffset?D.titleOffset[2]:0)-10}G==="top"?(d.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(d.x,d.y+Math.floor(K));let{minInput:U,maxInput:Y,dropdown:Z}=this;d.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:d}=P,v=D.plotLeft-D.spacing[3],I=d.x-D.spacing[3];d.align==="right"?I+=S-v:d.align==="center"&&(I-=v/2),m&&m.align({y:d.y,width:z(T,this.initialButtonGroupWidth),align:d.align,x:I},!0,D.spacingBox)}positionButtons(){let{buttons:S,chart:T,options:D,zoomText:P}=this,m=T.hasLoaded?"animate":"attr",{buttonPosition:d}=D,v=T.plotLeft,I=v;P&&P.visibility!=="hidden"&&(P[m]({x:z(v+d.x,v)}),I+=d.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(d==="always"){this.collapseButtons(),E(I())&&R();return}d==="never"&&this.expandButtons()}P&&D?v.align===m.align||E(this.initialButtonGroupWidth+20)?d==="responsive"?(this.collapseButtons(),E(I())&&R()):R():d==="responsive"&&this.expandButtons():D&&d==="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:d=0}=S,v=T.plotLeft+m;D.attr({x:v,y:d}).show(),p(P,{left:v+"px",top:d+"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,d=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,d);return(v<0&&d<0||v>0&&d>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:u}=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=u(),m=T.xAxis,d=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=d,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,u()[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 d(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:u,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"&&u(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,u,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 _=u>M?u:u+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:u,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,d=0,v,I,E,R,j;if(k&&k.visible&&m){for(d=(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+=d,(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(u(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:u}=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,d,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),d={y:A,anchorY:m},W.allowOverlapX&&(d.x=C,d.anchorX=T.anchorX),D.attr({text:T.options.title??W.title??"A"})[D.isNew?"attr":"animate"](d),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:u,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(u){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;Ad.to||C>d.from&&Ad.from&&Ad.from&&A>d.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)}u.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 u(){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",u),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:u,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,d,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",u(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)!==(d&&d.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=[],d=[],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),d.push(S.dataGroupInfo)),H=Y;for(let Z=0;Z{let c=h.axis.getExtremes(),g=c.min,u=c.max,p=o(h.axis.minPointOffset,0);return r(g)&&r(u)&&h.value>=g-p&&h.value<=u+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,u=[],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){u.indexOf(f)===-1&&(u.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||{},u=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)&&(u.dataClassColor==="category"?(c.styledMode||(x=(M=c.options.colors||[]).length,y.color=M[f]),y.colorIndex=f,++f===x&&(f=0)):y.color=a(u.minColor).tweenTo(a(u.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,u=c.length;g=u)&&(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]););u=M[x]||M[x+1],g=1-((p=M[x+1]||u)[0]-g)/(p[0]-u[0]||1),y=u.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:u,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=u(z)?z/180*Math.PI:0;for(let A of(u(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),d,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=d={x:_[0],y:_[1],r:F,innerR:S,start:R,end:j,borderRadius:G},A.startR=F,P?(v=d.d,P.animate(g({fill:I},d)),v&&(d.d=v)):A.graphic=P=k.arc(d).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]=u[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 u=-1;this.customDataSource?u=c.values.findIndex(p=>p===this.customDataSource):u=c.values.findIndex(p=>p.split("/").pop()===c.dsSelected),u===-1?c.dsSelected=c.labels[0]:c.dsSelected=c.labels[u],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 u=this.getMDX();this.drills=g,this.showLoading();let p=()=>{if(r){r();return}if(!this.canDoDrillthrough)return;let y=this.getDrillthroughMdx(u)||"";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(u).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.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),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 u=this.getMDX();this.drills=g,this.showLoading();let p=this.getDrillthroughMdx(u)||"";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 u=this.getMDX();this.drills=g,this.showLoading(),this.ds.execMDX(u).catch(p=>{l&&l(p)}).then(p=>{p&&(this.chartConfig&&(this.chartConfig.loading=!1),!this.isEmptyData(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.title=this.getDrillTitle(this.drills[this.drills.length-1]),this.broadcastDependents(u),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(u=>u.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(s=>s.action==="applyVariable"?!1:s.value!=="");return i.length===1?" %FILTER "+this.getFilterString(i[0]):" %FILTER NONEMPTYCROSSJOIN("+i.map(r=>this.getFilterString(r)).join(",")+")"}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=bt({type:n,selectors:[["ng-component"]],hostVars:2,hostBindings:function(i,s){i&2&&Ze("inline",s.inline)},inputs:{model:"model",parent:"parent",widget:"widget"},standalone:!0,features:[vt],decls:0,vars:0,template:function(i,s){},encapsulation:2})}}return n})();var Mp=["images"];function Ep(n,t){if(n&1){let e=Ih();Dt(0,"div",2),kh("click",function(){let s=Eh(e).$implicit,r=Nt();return Ph(r.onClick(s))}),Th(),Dt(1,"svg",3,0)(3,"text"),ne(4),Dt(5,"tspan",4),ne(6),It(),Dt(7,"tspan",5),ne(8),It()()(),Ah(),Dt(9,"label"),ne(10),It()()}if(n&2){let e=t.$implicit,i=Nt();Ze("clickable",i.canDrillthrough),Lt(3),Oe("fill",e.valueColor),Lt(),ws("",e.value," "),Lt(2),Fe(e.deltaNeg),Lt(2),Fe(e.delta),Lt(2),Fe(e.label)}}var Zh=(()=>{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;u.highStyle&&(p=this.getCss(u.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-(u-l)*y,i=x>=a&&x<=h),!i&&r&Kt.BELOW&&!(s&Kt.BELOW)&&(b=u-(p-a)/y,i=b>=o&&b<=l),!i&&r&Kt.LEFT&&!(s&Kt.LEFT)&&(x=p-(u-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,u=n[0]+l/2+c,p=n[2]-l/2+c,y=n[1]+h/2+g,b=n[3]-h/2+g;u>p&&(u=(p+u)/2,p=u),y>b&&(y=(b+y)/2,b=y);let x=Rt(i[0],u,p),f=Rt(i[1],y,b);if(o&&e&&s){let M=30*s;x+=-M*Math.log(1+Math.max(0,u-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),u=Math.floor(Ps(n,g,r));return n[u]>c&&u1)g=e;else if(u>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(),u=h.pop(),p=0,y=n[u],b=n[u+1],x=n[g],f=n[g+1];for(let M=u+i;Mp&&(c=M,p=w)}p>s&&(l[(c-t)/i]=1,u+i0&&b>p)&&(y<0&&x0&&x>y)){h=g,c=u;continue}r[o++]=h,r[o++]=c,a=h,l=c,h=g,c=u}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 u=l.sourceCenter[0],p=l.sourceCenter[1],y=l.targetCenter[0],b=l.targetCenter[1];this.nextCenter_=l.targetCenter;let x=u+g*(y-u),f=p+g*(b-p);this.targetCenter_=[x,f]}if(l.sourceResolution&&l.targetResolution){let u=g===1?l.targetResolution:l.sourceResolution+g*(l.targetResolution-l.sourceResolution);if(l.anchor){let p=this.getViewportSize_(this.getRotation()),y=this.constraints_.resolution(u,0,p,!0);this.targetCenter_=this.calculateCenterZoom(y,l.anchor)}this.nextResolution_=l.targetResolution,this.targetResolution_=u,this.applyTargetState_(!0)}if(l.sourceRotation!==void 0&&l.targetRotation!==void 0){let u=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(u,!0);this.targetCenter_=this.calculateCenterRotate(p,l.anchor)}this.nextRotation_=l.targetRotation,this.targetRotation_=u}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,u=r.length;g{this.dispatchEvent("sourceready")},0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return!this.renderer_||!this.rendered?null:this.renderer_.getData(t)}isVisible(t){let 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 u=c.projection,p=mn(t.slice(),u),y=[[0,0]];if(u.canWrapX()&&s){let _=u.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;iMath.max(s,Pn(n,r)),0);return e[t]=i,i}function dd(n,t){let e=[],i=[],s=[],r=0,o=0,a=0,l=0;for(let h=0,c=t.length;h<=c;h+=2){let g=t[h];if(g===` +`||h===c){r=Math.max(r,o),s.push(o),o=0,a+=l;continue}let u=t[h+1]||n.font,p=Pn(u,g);e.push(p),o+=p;let y=nf(u);i.push(y),l=Math.max(l,y)}return{width:r,height:a,widths:e,heights:i,lineWidths:s}}function ud(n,t,e,i,s,r,o,a,l,h,c){n.save(),e!==1&&(n.globalAlpha*=e),t&&n.setTransform.apply(n,t),i.contextInstructions?(n.translate(l,h),n.scale(c[0],c[1]),of(i,n)):c[0]<0||c[1]<0?(n.translate(l,h),n.scale(c[0],c[1]),n.drawImage(i,s,r,o,a,0,0,o,a)):n.drawImage(i,s,r,o,a,l,h,o*c[0],a*c[1]),n.restore()}function of(n,t){let e=n.contextInstructions;for(let i=0,s=e.length;i=0;--i)e[i].renderDeclutter(t);e.length=0}},pd=Sa;var ri=class extends te{constructor(t,e){super(t),this.layer=e}},Ma={LAYERS:"layers"},Ea=class n extends pn{constructor(t){t=t||{};let e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(Ma.LAYERS,this.handleLayersChanged_),i?Array.isArray(i)?i=new oe(i.slice(),{unique:!0}):gt(typeof i.getArray=="function",43):i=new oe(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(Tt),this.layersListenerKeys_.length=0;let t=this.getLayers();this.layersListenerKeys_.push(wt(t,ee.ADD,this.handleLayersAdd_,this),wt(t,ee.REMOVE,this.handleLayersRemove_,this));for(let i in this.listenerKeys_)this.listenerKeys_[i].forEach(Tt);li(this.listenerKeys_);let e=t.getArray();for(let i=0,s=e.length;i{this.clickTimeoutId_=void 0;let i=new pi(jt.SINGLECLICK,this.map_,t);this.dispatchEvent(i)},250)}updateActivePointers_(t){let e=t,i=e.pointerId;if(e.type==jt.POINTERUP||e.type==jt.POINTERCANCEL){delete this.trackedTouches_[i];for(let s in this.trackedTouches_)if(this.trackedTouches_[s].target!==e.target){delete this.trackedTouches_[s];break}}else(e.type==jt.POINTERDOWN||e.type==jt.POINTERMOVE)&&(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);let e=new pi(jt.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),this.activePointers_.length===0&&(this.dragListenerKeys_.forEach(Tt),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return t.button===0}handlePointerDown_(t){this.emulateClicks_=this.activePointers_.length===0,this.updateActivePointers_(t);let e=new pi(jt.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),this.dragListenerKeys_.length===0){let i=this.map_.getOwnerDocument();this.dragListenerKeys_.push(wt(i,jt.POINTERMOVE,this.handlePointerMove_,this),wt(i,jt.POINTERUP,this.handlePointerUp_,this),wt(this.element_,jt.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==i&&this.dragListenerKeys_.push(wt(this.element_.getRootNode(),jt.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;let e=new pi(jt.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;let e=!!(this.down_&&this.isMoving_(t));this.dispatchEvent(new pi(jt.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){let e=this.originalPointerMoveEvent_;(!e||e.defaultPrevented)&&(typeof t.cancelable!="boolean"||t.cancelable===!0)&&t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&(Tt(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(ut.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&(Tt(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(Tt),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}},fd=Aa;var fi={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"};var le={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"};var Tr=1/0,Da=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,li(this.queuedElements_)}dequeue(){let t=this.elements_,e=this.priorities_,i=t[0];t.length==1?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));let s=this.keyFunction_(i);return delete this.queuedElements_[s],i}enqueue(t){gt(!(this.keyFunction_(t)in this.queuedElements_),31);let e=this.priorityFunction_(t);return e!=Tr?(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0):!1}getCount(){return this.elements_.length}getLeftChildIndex_(t){return t*2+1}getRightChildIndex_(t){return t*2+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return this.elements_.length===0}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){let e=this.elements_,i=this.priorities_,s=e.length,r=e[t],o=i[t],a=t;for(;t>1;){let l=this.getLeftChildIndex_(t),h=this.getRightChildIndex_(t),c=ht;){let a=this.getParentIndex_(e);if(s[a]>o)i[e]=i[a],s[e]=s[a],e=a;else break}i[e]=r,s[e]=o}reprioritize(){let t=this.priorityFunction_,e=this.elements_,i=this.priorities_,s=0,r=e.length,o,a,l;for(a=0;a0;)r=this.dequeue()[0],o=r.getKey(),s=r.getState(),s===pt.IDLE&&!(o in this.tilesLoadingKeys_)&&(this.tilesLoadingKeys_[o]=!0,++this.tilesLoading_,++i,r.load())}},md=La;function xd(n,t,e,i,s){if(!n||!(e in n.wantedTiles))return Tr;if(!n.wantedTiles[e][t.getKey()])return Tr;let r=n.viewState.center,o=i[0]-r[0],a=i[1]-r[1];return 65536*Math.log(s)+Math.sqrt(o*o+a*a)/s}var Ia=class extends Zt{constructor(t){super();let e=t.element;e&&!t.target&&!e.style.pointerEvents&&(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){Mr(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&Mr(this.element);for(let e=0,i=this.listenerKeys.length;es.getAttributions(t)))),i=!this.getMap().getAllLayers().some(s=>s.getSource()&&s.getSource().getAttributionsCollapsible()===!1);return this.overrideCollapsible_||this.setCollapsible(i),e}updateElement_(t){if(!t){this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1);return}let e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!fe(e,this.renderedAttributions_)){ad(this.ulElement_);for(let s=0,r=e.length;s0&&i%(2*Math.PI)!==0?e.animate({rotation:0,duration:this.duration_,easing:Ve}):e.setRotation(0))}render(t){let e=t.frameState;if(!e)return;let i=e.viewState.rotation;if(i!=this.rotation_){let s="rotate("+i+"rad)";if(this.autoHide_){let r=this.element.classList.contains(Sr);!r&&i===0?this.element.classList.add(Sr):r&&i!==0&&this.element.classList.remove(Sr)}this.label_.style.transform=s}this.rotation_=i}},bd=Ra;var Oa=class extends Us{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});let e=t.className!==void 0?t.className:"ol-zoom",i=t.delta!==void 0?t.delta:1,s=t.zoomInClassName!==void 0?t.zoomInClassName:e+"-in",r=t.zoomOutClassName!==void 0?t.zoomOutClassName:e+"-out",o=t.zoomInLabel!==void 0?t.zoomInLabel:"+",a=t.zoomOutLabel!==void 0?t.zoomOutLabel:"\u2013",l=t.zoomInTipLabel!==void 0?t.zoomInTipLabel:"Zoom in",h=t.zoomOutTipLabel!==void 0?t.zoomOutTipLabel:"Zoom out",c=document.createElement("button");c.className=s,c.setAttribute("type","button"),c.title=l,c.appendChild(typeof o=="string"?document.createTextNode(o):o),c.addEventListener(ut.CLICK,this.handleClick_.bind(this,i),!1);let g=document.createElement("button");g.className=r,g.setAttribute("type","button"),g.title=h,g.appendChild(typeof a=="string"?document.createTextNode(a):a),g.addEventListener(ut.CLICK,this.handleClick_.bind(this,-i),!1);let u=e+" "+Ji+" "+Vs,p=this.element;p.className=u,p.appendChild(c),p.appendChild(g),this.duration_=t.duration!==void 0?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){let i=this.getMap().getView();if(!i)return;let s=i.getZoom();if(s!==void 0){let r=i.getConstrainedZoom(s+t);this.duration_>0?(i.getAnimating()&&i.cancelAnimations(),i.animate({zoom:r,duration:this.duration_,easing:Ve})):i.setZoom(r)}}},vd=Oa;function gs(n){n=n||{};let t=new oe;return(n.zoom!==void 0?n.zoom:!0)&&t.push(new vd(n.zoomOptions)),(n.rotate!==void 0?n.rotate:!0)&&t.push(new bd(n.rotateOptions)),(n.attribution!==void 0?n.attribution:!0)&&t.push(new yd(n.attributionOptions)),t}var Fa={ACTIVE:"active"};var za=class extends Zt{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(Fa.ACTIVE)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(Fa.ACTIVE,t)}setMap(t){this.map_=t}};function Cd(n,t,e){let i=n.getCenterInternal();if(i){let s=[i[0]+t[0],i[1]+t[1]];n.animateInternal({duration:e!==void 0?e:250,easing:Fc,center:n.getConstrainedCenter(s)})}}function Hs(n,t,e,i){let s=n.getZoom();if(s===void 0)return;let r=n.getConstrainedZoom(s+t),o=n.getResolutionForZoom(r);n.getAnimating()&&n.cancelAnimations(),n.animate({resolution:o,anchor:e,duration:i!==void 0?i:250,easing:Ve})}var gi=za;var ja=class extends gi{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:250}handleEvent(t){let e=!1;if(t.type==jt.DBLCLICK){let i=t.originalEvent,s=t.map,r=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=s.getView();Hs(a,o,r,this.duration_),i.preventDefault(),e=!0}return!e}},_d=ja;var Na=class extends gi{constructor(t){t=t||{},super(t),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==jt.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==jt.POINTERUP){let i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==jt.POINTERDOWN){let i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==jt.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}};function Zs(n){let t=n.length,e=0,i=0;for(let s=0;s0&&this.condition_(t)){let i=t.map.getView();return this.lastCentroid=null,i.getAnimating()&&i.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}},Td=Ba;var Ga=class extends mi{constructor(t){t=t||{},super({stopDown:Ti}),this.condition_=t.condition?t.condition:wd,this.lastAngle_=void 0,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){if(!kn(t))return;let e=t.map,i=e.getView();if(i.getConstraints().rotation===Ws)return;let s=e.getSize(),r=t.pixel,o=Math.atan2(s[1]/2-r[1],r[0]-s[0]/2);if(this.lastAngle_!==void 0){let a=o-this.lastAngle_;i.adjustRotationInternal(-a)}this.lastAngle_=o}handleUpEvent(t){return kn(t)?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){return kn(t)&&Dn(t)&&this.condition_(t)?(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0):!1}},Ad=Ga;var Xa=class extends Es{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){let t=this.startPixel_,e=this.endPixel_,i="px",s=this.element_.style;s.left=Math.min(t[0],e[0])+i,s.top=Math.min(t[1],e[1])+i,s.width=Math.abs(e[0]-t[0])+i,s.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);let e=this.element_.style;e.left="inherit",e.top="inherit",e.width="inherit",e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){let t=this.startPixel_,e=this.endPixel_,s=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);s[4]=s[0].slice(),this.geometry_?this.geometry_.setCoordinates([s]):this.geometry_=new ci([s])}getGeometry(){return this.geometry_}},Dd=Xa;var Rn={BOXSTART:"boxstart",BOXDRAG:"boxdrag",BOXEND:"boxend",BOXCANCEL:"boxcancel"},Dr=class extends te{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}},Wa=class extends mi{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new Dd(t.className||"ol-dragbox"),this.minArea_=t.minArea!==void 0?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:Dn,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}defaultBoxEndCondition(t,e,i){let s=i[0]-e[0],r=i[1]-e[1];return s*s+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Dr(Rn.BOXDRAG,t.coordinate,t))}handleUpEvent(t){this.box_.setMap(null);let e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new Dr(e?Rn.BOXEND:Rn.BOXCANCEL,t.coordinate,t)),!1}handleDownEvent(t){return this.condition_(t)?(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Dr(Rn.BOXSTART,t.coordinate,t)),!0):!1}onBoxEnd(t){}},Ld=Wa;var Va=class extends Ld{constructor(t){t=t||{};let e=t.condition?t.condition:Ed;super({condition:e,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=t.duration!==void 0?t.duration:200,this.out_=t.out!==void 0?t.out:!1}onBoxEnd(t){let i=this.getMap().getView(),s=this.getGeometry();if(this.out_){let r=i.rotatedExtentForGeometry(s),o=i.getResolutionForExtentInternal(r),a=i.getResolution()/o;s=s.clone(),s.scale(a*a)}i.fitInternal(s,{duration:this.duration_,easing:Ve})}},Id=Va;var es={LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",DOWN:"ArrowDown"};var Ya=class extends gi{constructor(t){super(),t=t||{},this.defaultCondition_=function(e){return Ln(e)&&In(e)},this.condition_=t.condition!==void 0?t.condition:this.defaultCondition_,this.duration_=t.duration!==void 0?t.duration:100,this.pixelDelta_=t.pixelDelta!==void 0?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==ut.KEYDOWN){let i=t.originalEvent,s=i.key;if(this.condition_(t)&&(s==es.DOWN||s==es.LEFT||s==es.RIGHT||s==es.UP)){let o=t.map.getView(),a=o.getResolution()*this.pixelDelta_,l=0,h=0;s==es.DOWN?h=-a:s==es.LEFT?l=-a:s==es.RIGHT?l=a:h=a;let c=[l,h];Gs(c,o.getRotation()),Cd(o,c,this.duration_),i.preventDefault(),e=!0}}return!e}},kd=Ya;var Ua=class extends gi{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(e){return!Md(e)&&In(e)},this.delta_=t.delta?t.delta:1,this.duration_=t.duration!==void 0?t.duration:100}handleEvent(t){let e=!1;if(t.type==ut.KEYDOWN||t.type==ut.KEYPRESS){let i=t.originalEvent,s=i.key;if(this.condition_(t)&&(s==="+"||s==="-")){let r=t.map,o=s==="+"?this.delta_:-this.delta_,a=r.getView();Hs(a,o,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}},Rd=Ua;var Ha=class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;let t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]0&&this.points_[i+2]>t;)i-=3;let s=this.points_[e+2]-this.points_[i+2];if(s<1e3/60)return!1;let r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/s,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}},Od=Ha;var Za=class extends gi{constructor(t){t=t||{},super(t),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=t.maxDelta!==void 0?t.maxDelta:1,this.duration_=t.duration!==void 0?t.duration:250,this.timeout_=t.timeout!==void 0?t.timeout:80,this.useAnchor_=t.useAnchor!==void 0?t.useAnchor:!0,this.constrainResolution_=t.constrainResolution!==void 0?t.constrainResolution:!1;let e=t.condition?t.condition:Sd;this.condition_=t.onFocusOnly?Ar(An,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;let t=this.getMap();if(!t)return;t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t)||t.type!==ut.WHEEL)return!0;let i=t.map,s=t.originalEvent;s.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate);let r;if(t.type==ut.WHEEL&&(r=s.deltaY,tc&&s.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=en),s.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),r===0)return!1;this.lastDelta_=r;let o=Date.now();this.startTime_===void 0&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");let a=i.getView();if(this.mode_==="trackpad"&&!(a.getConstrainResolution()||this.constrainResolution_))return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;let l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,i),l),!1}handleWheelZoom_(t){let e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-Rt(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),Hs(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}},Fd=Za;var Ka=class extends mi{constructor(t){t=t||{};let e=t;e.stopDown||(e.stopDown=Ti),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=t.threshold!==void 0?t.threshold:.3,this.duration_=t.duration!==void 0?t.duration:250}handleDragEvent(t){let e=0,i=this.targetPointers[0],s=this.targetPointers[1],r=Math.atan2(s.clientY-i.clientY,s.clientX-i.clientX);if(this.lastAngle_!==void 0){let l=r-this.lastAngle_;this.rotationDelta_+=l,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=l}this.lastAngle_=r;let o=t.map,a=o.getView();a.getConstraints().rotation!==Ws&&(this.anchor_=o.getCoordinateFromPixelInternal(o.getEventPixel(Zs(this.targetPointers))),this.rotating_&&(o.render(),a.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return this.targetPointers.length<2?(t.map.getView().endInteraction(this.duration_),!1):!0}handleDownEvent(t){if(this.targetPointers.length>=2){let e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},zd=Ka;var qa=class extends mi{constructor(t){t=t||{};let e=t;e.stopDown||(e.stopDown=Ti),super(e),this.anchor_=null,this.duration_=t.duration!==void 0?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1,i=this.targetPointers[0],s=this.targetPointers[1],r=i.clientX-s.clientX,o=i.clientY-s.clientY,a=Math.sqrt(r*r+o*o);this.lastDistance_!==void 0&&(e=this.lastDistance_/a),this.lastDistance_=a;let l=t.map,h=l.getView();e!=1&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel(Zs(this.targetPointers))),l.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){let i=t.map.getView(),s=this.lastScaleDelta_>1?1:-1;return i.endInteraction(this.duration_,s),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){let e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}},jd=qa;function Nd(n){n=n||{};let t=new oe,e=new Od(-.005,.05,100);return(n.altShiftDragRotate!==void 0?n.altShiftDragRotate:!0)&&t.push(new Ad),(n.doubleClickZoom!==void 0?n.doubleClickZoom:!0)&&t.push(new _d({delta:n.zoomDelta,duration:n.zoomDuration})),(n.dragPan!==void 0?n.dragPan:!0)&&t.push(new Td({onFocusOnly:n.onFocusOnly,kinetic:e})),(n.pinchRotate!==void 0?n.pinchRotate:!0)&&t.push(new zd),(n.pinchZoom!==void 0?n.pinchZoom:!0)&&t.push(new jd({duration:n.zoomDuration})),(n.keyboard!==void 0?n.keyboard:!0)&&(t.push(new kd),t.push(new Rd({delta:n.zoomDelta,duration:n.zoomDuration}))),(n.mouseWheelZoom!==void 0?n.mouseWheelZoom:!0)&&t.push(new Fd({onFocusOnly:n.onFocusOnly,duration:n.zoomDuration})),(n.shiftDragZoom!==void 0?n.shiftDragZoom:!0)&&t.push(new Id({duration:n.zoomDuration})),t}function $a(n){return n[0]>0&&n[1]>0}function Bd(n,t,e){return e===void 0&&(e=[0,0]),e[0]=n[0]*t+.5|0,e[1]=n[1]*t+.5|0,e}function ie(n,t){return Array.isArray(n)?n:(t===void 0?t=[n,n]:(t[0]=n,t[1]=n),t)}function Gd(n){if(n instanceof ds){n.setMapInternal(null);return}n instanceof Er&&n.getLayers().forEach(Gd)}function Xd(n,t){if(n instanceof ds){n.setMapInternal(t);return}if(n instanceof Er){let e=n.getLayers().getArray();for(let i=0,s=e.length;ithis.updateSize()),this.controls=e.controls||gs(),this.interactions=e.interactions||Nd({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new md(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(le.LAYERGROUP,this.handleLayerGroupChanged_),this.addChangeListener(le.VIEW,this.handleViewChanged_),this.addChangeListener(le.SIZE,this.handleSizeChanged_),this.addChangeListener(le.TARGET,this.handleTargetChanged_),this.setProperties(e.values);let i=this;t.view&&!(t.view instanceof Ce)&&t.view.then(function(s){i.setView(new Ce(s))}),this.controls.addEventListener(ee.ADD,s=>{s.element.setMap(this)}),this.controls.addEventListener(ee.REMOVE,s=>{s.element.setMap(null)}),this.interactions.addEventListener(ee.ADD,s=>{s.element.setMap(this)}),this.interactions.addEventListener(ee.REMOVE,s=>{s.element.setMap(null)}),this.overlays_.addEventListener(ee.ADD,s=>{this.addOverlayInternal_(s.element)}),this.overlays_.addEventListener(ee.REMOVE,s=>{let r=s.element.getId();r!==void 0&&delete this.overlayIdIndex_[r.toString()],s.element.setMap(null)}),this.controls.forEach(s=>{s.setMap(this)}),this.interactions.forEach(s=>{s.setMap(this)}),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){Xd(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){let e=t.getId();e!==void 0&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;let s=this.getCoordinateFromPixelInternal(t);i=i!==void 0?i:{};let r=i.hitTolerance!==void 0?i.hitTolerance:0,o=i.layerFilter!==void 0?i.layerFilter:Pi,a=i.checkWrapped!==!1;return this.renderer_.forEachFeatureAtCoordinate(s,this.frameState_,r,a,e,null,o,null)}getFeaturesAtPixel(t,e){let i=[];return this.forEachFeatureAtPixel(t,function(s){i.push(s)},e),i}getAllLayers(){let t=[];function e(i){i.forEach(function(s){s instanceof Er?e(s.getLayers()):t.push(s)})}return e(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;let i=this.getCoordinateFromPixelInternal(t);e=e!==void 0?e:{};let s=e.layerFilter!==void 0?e.layerFilter:Pi,r=e.hitTolerance!==void 0?e.hitTolerance:0,o=e.checkWrapped!==!1;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,o,s,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){let i=this.viewport_.getBoundingClientRect(),s=this.getSize(),r=i.width/s[0],o=i.height/s[1],a="changedTouches"in t?t.changedTouches[0]:t;return[(a.clientX-i.left)/r,(a.clientY-i.top)/o]}getTarget(){return this.get(le.TARGET)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return pr(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){let e=this.frameState_;return e?Wt(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){let e=this.overlayIdIndex_[t.toString()];return e!==void 0?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(le.LAYERGROUP)}setLayers(t){let e=this.getLayerGroup();if(t instanceof oe){e.setLayers(t);return}let i=e.getLayers();i.clear(),i.extend(t)}getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){let t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e=0;r--){let o=s[r];if(o.getMap()!==this||!o.getActive()||!this.getTargetElement())continue;if(!o.handleEvent(t)||t.propagationStopped)break}}}handlePostRender(){let t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let s=this.maxTilesLoading_,r=s;if(t){let o=t.viewHints;if(o[qt.ANIMATING]||o[qt.INTERACTING]){let a=Date.now()-t.time>8;s=a?0:8,r=a?0:2}}e.getTilesLoading(){this.postRenderTimeoutHandle_=void 0,this.handlePostRender()},0))}setLayerGroup(t){let e=this.getLayerGroup();e&&this.handleLayerRemove_(new ri("removelayer",e)),this.set(le.LAYERGROUP,t)}setSize(t){this.set(le.SIZE,t)}setTarget(t){this.set(le.TARGET,t)}setView(t){if(!t||t instanceof Ce){this.set(le.VIEW,t);return}this.set(le.VIEW,new Ce);let e=this;t.then(function(i){e.setView(new Ce(i))})}updateSize(){let t=this.getTargetElement(),e;if(t){let s=getComputedStyle(t),r=t.offsetWidth-parseFloat(s.borderLeftWidth)-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderRightWidth),o=t.offsetHeight-parseFloat(s.borderTopWidth)-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderBottomWidth);!isNaN(r)&&!isNaN(o)&&(e=[r,o],!$a(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&xn("No map visible because the map container's width or height are 0."))}let i=this.getSize();e&&(!i||!fe(e,i))&&(this.setSize(e),this.updateViewportSize_())}updateViewportSize_(){let t=this.getView();if(t){let e,i=getComputedStyle(this.viewport_);i.width&&i.height&&(e=[parseInt(i.width,10),parseInt(i.height,10)]),t.setViewportSize(e)}}};function lf(n){let t=null;n.keyboardEventTarget!==void 0&&(t=typeof n.keyboardEventTarget=="string"?document.getElementById(n.keyboardEventTarget):n.keyboardEventTarget);let e={},i=n.layers&&typeof n.layers.getLayers=="function"?n.layers:new Er({layers:n.layers});e[le.LAYERGROUP]=i,e[le.TARGET]=n.target,e[le.VIEW]=n.view instanceof Ce?n.view:new Ce;let s;n.controls!==void 0&&(Array.isArray(n.controls)?s=new oe(n.controls.slice()):(gt(typeof n.controls.getArray=="function",47),s=n.controls));let r;n.interactions!==void 0&&(Array.isArray(n.interactions)?r=new oe(n.interactions.slice()):(gt(typeof n.interactions.getArray=="function",48),r=n.interactions));let o;return n.overlays!==void 0?Array.isArray(n.overlays)?o=new oe(n.overlays.slice()):(gt(typeof n.overlays.getArray=="function",49),o=n.overlays):o=new oe,{controls:s,interactions:r,keyboardEventTarget:t,overlays:o,values:e}}var On=Ja;var Qa=class{constructor(t){this.highWaterMark=t!==void 0?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){let i=this.entries_[t];return gt(i!==void 0,15),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){let e=this.entries_[t];return gt(e!==void 0,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){let t=new Array(this.count_),e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.key_;return t}getValues(){let t=new Array(this.count_),e=0,i;for(i=this.newest_;i;i=i.older)t[e++]=i.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){if(this.containsKey(t))return this.entries_[t].value_}pop(){let t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){gt(!(t in this.entries_),16);let i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}},Wd=Qa;var tl=class extends Xi{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=i.transition===void 0?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(ut.CHANGE)}release(){this.state===pt.ERROR&&this.setState(pt.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){if(!this.interimTile)return this;let t=this.interimTile;do{if(t.getState()==pt.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){if(!this.interimTile)return;let t=this.interimTile,e=this;do{if(t.getState()==pt.LOADED){t.interimTile=null;break}else t.getState()==pt.LOADING?e=t:t.getState()==pt.IDLE?e.interimTile=t.interimTile:e=t;t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==pt.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){ft()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(!i)i=e,this.transitionStarts_[t]=i;else if(i===-1)return 1;let s=e-i+1e3/60;return s>=this.transition_?1:$o(s/this.transition_)}inTransition(t){return this.transition_?this.transitionStarts_[t]!==-1:!1}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}},Fn=tl;var Ot={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4};function zn(n,t,e){let i=n,s=!0,r=!1,o=!1,a=[Ts(i,ut.LOAD,function(){o=!0,r||t()})];return i.src&&ic?(r=!0,i.decode().then(function(){s&&t()}).catch(function(l){s&&(o?t():e())})):a.push(Ts(i,ut.ERROR,e)),function(){s=!1,a.forEach(Tt)}}var el=class extends Fn{constructor(t,e,i,s,r,o){super(t,e,o),this.crossOrigin_=s,this.src_=i,this.key=i,this.image_=new Image,s!==null&&(this.image_.crossOrigin=s),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=pt.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=pt.ERROR,this.unlistenImage_(),this.image_=hf(),this.changed()}handleImageLoad_(){let t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=pt.LOADED:this.state=pt.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==pt.ERROR&&(this.state=pt.IDLE,this.image_=new Image,this.crossOrigin_!==null&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==pt.IDLE&&(this.state=pt.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=zn(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}};function hf(){let n=Gt(1,1);return n.fillStyle="rgba(0,0,0,0)",n.fillRect(0,0,1,1),n.canvas}var jn=el;var cf=10,Vd=.25,il=class{constructor(t,e,i,s,r,o){this.sourceProj_=t,this.targetProj_=e;let a={},l=hs(this.targetProj_,this.sourceProj_);this.transformInv_=function(M){let L=M[0]+"/"+M[1];return a[L]||(a[L]=l(M)),a[L]},this.maxSourceExtent_=s,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!s&&!!this.sourceProj_.getExtent()&&At(s)>=At(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?At(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?At(this.targetProj_.getExtent()):null;let h=Xe(i),c=Fs(i),g=Os(i),u=Rs(i),p=this.transformInv_(h),y=this.transformInv_(c),b=this.transformInv_(g),x=this.transformInv_(u),f=cf+(o?Math.max(0,Math.ceil(Math.log2(or(i)/(o*o*256*256)))):0);if(this.addQuad_(h,c,g,u,p,y,b,x,f),this.wrapsXInSource_){let M=1/0;this.triangles_.forEach(function(L,_,w){M=Math.min(M,L.source[0][0],L.source[1][0],L.source[2][0])}),this.triangles_.forEach(L=>{if(Math.max(L.source[0][0],L.source[1][0],L.source[2][0])-M>this.sourceWorldWidth_/2){let _=[[L.source[0][0],L.source[0][1]],[L.source[1][0],L.source[1][1]],[L.source[2][0],L.source[2][1]]];_[0][0]-M>this.sourceWorldWidth_/2&&(_[0][0]-=this.sourceWorldWidth_),_[1][0]-M>this.sourceWorldWidth_/2&&(_[1][0]-=this.sourceWorldWidth_),_[2][0]-M>this.sourceWorldWidth_/2&&(_[2][0]-=this.sourceWorldWidth_);let w=Math.min(_[0][0],_[1][0],_[2][0]);Math.max(_[0][0],_[1][0],_[2][0])-w.5&&g<1,y=!1;if(h>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){let x=Lo([t,e,i,s]);y=At(x)/this.targetWorldWidth_>Vd||y}!p&&this.sourceProj_.isGlobal()&&g&&(y=g>Vd||y)}if(!y&&this.maxSourceExtent_&&isFinite(c[0])&&isFinite(c[1])&&isFinite(c[2])&&isFinite(c[3])&&!Vt(c,this.maxSourceExtent_))return;let b=0;if(!y&&(!isFinite(r[0])||!isFinite(r[1])||!isFinite(o[0])||!isFinite(o[1])||!isFinite(a[0])||!isFinite(a[1])||!isFinite(l[0])||!isFinite(l[1]))){if(h>0)y=!0;else if(b=(!isFinite(r[0])||!isFinite(r[1])?8:0)+(!isFinite(o[0])||!isFinite(o[1])?4:0)+(!isFinite(a[0])||!isFinite(a[1])?2:0)+(!isFinite(l[0])||!isFinite(l[1])?1:0),b!=1&&b!=2&&b!=4&&b!=8)return}if(h>0){if(!y){let x=[(t[0]+i[0])/2,(t[1]+i[1])/2],f=this.transformInv_(x),M;p?M=(Ii(r[0],u)+Ii(a[0],u))/2-Ii(f[0],u):M=(r[0]+a[0])/2-f[0];let L=(r[1]+a[1])/2-f[1];y=M*M+L*L>this.errorThresholdSquared_}if(y){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){let x=[(e[0]+i[0])/2,(e[1]+i[1])/2],f=this.transformInv_(x),M=[(s[0]+t[0])/2,(s[1]+t[1])/2],L=this.transformInv_(M);this.addQuad_(t,e,x,M,r,o,f,L,h-1),this.addQuad_(M,x,i,s,L,f,a,l,h-1)}else{let x=[(t[0]+e[0])/2,(t[1]+e[1])/2],f=this.transformInv_(x),M=[(i[0]+s[0])/2,(i[1]+s[1])/2],L=this.transformInv_(M);this.addQuad_(t,x,M,s,r,f,L,l,h-1),this.addQuad_(x,e,i,M,f,o,a,L,h-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}b&11||this.addTriangle_(t,i,s,r,a,l),b&14||this.addTriangle_(t,i,e,r,a,o),b&&(b&13||this.addTriangle_(e,s,t,o,l,r),b&7||this.addTriangle_(e,s,i,o,l,a))}calculateSourceExtent(){let t=Ut();return this.triangles_.forEach(function(e,i,s){let r=e.source;os(t,r[0]),os(t,r[1]),os(t,r[2])}),t}getTriangles(){return this.triangles_}},Yd=il;var sl,ms=[];function Ud(n,t,e,i,s){n.beginPath(),n.moveTo(0,0),n.lineTo(t,e),n.lineTo(i,s),n.closePath(),n.save(),n.clip(),n.fillRect(0,0,Math.max(t,i)+1,Math.max(e,s)),n.restore()}function rl(n,t){return Math.abs(n[t*4]-210)>2||Math.abs(n[t*4+3]-.75*255)>2}function df(){if(sl===void 0){let n=Gt(6,6,ms);n.globalCompositeOperation="lighter",n.fillStyle="rgba(210, 0, 0, 0.75)",Ud(n,4,5,4,0),Ud(n,4,5,0,5);let t=n.getImageData(0,0,3,3).data;sl=rl(t,0)||rl(t,4)||rl(t,8),us(n),ms.push(n.canvas)}return sl}function Hd(n,t,e,i){let s=Zi(e,t,n),r=Vo(t,i,e),o=t.getMetersPerUnit();o!==void 0&&(r*=o);let a=n.getMetersPerUnit();a!==void 0&&(r/=a);let l=n.getExtent();if(!l||Vi(l,s)){let h=Vo(n,r,s)/r;isFinite(h)&&h>0&&(r/=h)}return r}function Zd(n,t,e,i){let s=Ge(e),r=Hd(n,t,s,i);return(!isFinite(r)||r<=0)&&hn(e,function(o){return r=Hd(n,t,o,i),isFinite(r)&&r>0}),r}function Kd(n,t,e,i,s,r,o,a,l,h,c,g){let u=Gt(Math.round(e*n),Math.round(e*t),ms);if(g||(u.imageSmoothingEnabled=!1),l.length===0)return u.canvas;u.scale(e,e);function p(_){return Math.round(_*e)/e}u.globalCompositeOperation="lighter";let y=Ut();l.forEach(function(_,w,k){ln(y,_.extent)});let b=At(y),x=me(y),f=Gt(Math.round(e*b/i),Math.round(e*x/i),ms);g||(f.imageSmoothingEnabled=!1);let M=e/i;l.forEach(function(_,w,k){let z=_.extent[0]-y[0],O=-(_.extent[3]-y[3]),C=At(_.extent),A=me(_.extent);_.image.width>0&&_.image.height>0&&f.drawImage(_.image,h,h,_.image.width-2*h,_.image.height-2*h,z*M,O*M,C*M,A*M)});let L=Xe(o);return a.getTriangles().forEach(function(_,w,k){let z=_.source,O=_.target,C=z[0][0],A=z[0][1],F=z[1][0],S=z[1][1],T=z[2][0],D=z[2][1],P=p((O[0][0]-L[0])/r),m=p(-(O[0][1]-L[1])/r),d=p((O[1][0]-L[0])/r),v=p(-(O[1][1]-L[1])/r),I=p((O[2][0]-L[0])/r),E=p(-(O[2][1]-L[1])/r),R=C,j=A;C=0,A=0,F-=R,S-=j,T-=R,D-=j;let G=[[F,S,0,0,d-P],[T,D,0,0,I-P],[0,0,F,S,v-m],[0,0,T,D,E-m]],W=pc(G);if(W){if(u.save(),u.beginPath(),df()||!g){u.moveTo(d,v);let N=4,B=P-d,X=m-v;for(let V=0;V{e&&e.getState()==pt.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}),this.sourceTiles_.length=0,t.length===0)this.state=pt.ERROR;else{let e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),s=typeof i=="number"?i:i[0],r=typeof i=="number"?i:i[1],o=this.targetTileGrid_.getResolution(e),a=this.sourceTileGrid_.getResolution(this.sourceZ_),l=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Kd(s,r,this.pixelRatio_,a,this.sourceTileGrid_.getExtent(),o,l,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=pt.LOADED}this.changed()}load(){if(this.state==pt.IDLE){this.state=pt.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(e=>{let i=e.getState();if(i==pt.IDLE||i==pt.LOADING){t++;let s=wt(e,ut.CHANGE,function(r){let o=e.getState();(o==pt.LOADED||o==pt.ERROR||o==pt.EMPTY)&&(Tt(s),t--,t===0&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(s)}}),t===0?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach(function(e,i,s){e.getState()==pt.IDLE&&e.load()})}}unlistenSources_(){this.sourcesListenerKeys_.forEach(Tt),this.sourcesListenerKeys_=null}release(){this.canvas_&&(us(this.canvas_.getContext("2d")),ms.push(this.canvas_),this.canvas_=null),super.release()}},Lr=nl;function ol(n,t,e,i){return i!==void 0?(i[0]=n,i[1]=t,i[2]=e,i):[n,t,e]}function xs(n,t,e){return n+"/"+t+"/"+e}function Nn(n){return xs(n[0],n[1],n[2])}function qd(n){return n.split("/").map(Number)}function $d(n){return(n[1]<e||e>t.getMaxZoom())return!1;let r=t.getFullTileRange(e);return r?r.containsXY(i,s):!0}var al=class extends Wd{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(this.getCount()===0)return;let t=this.peekFirstKey(),i=qd(t)[0];this.forEach(s=>{s.tileCoord[0]!==i&&(this.remove(Nn(s.tileCoord)),s.release())})}},Bn=al;var Gn={TILELOADSTART:"tileloadstart",TILELOADEND:"tileloadend",TILELOADERROR:"tileloaderror"};var ll=class extends Zt{constructor(t){super(),this.projection=zt(t.projection),this.attributions_=Qd(t.attributions),this.attributionsCollapsible_=t.attributionsCollapsible!==void 0?t.attributionsCollapsible:!0,this.loading=!1,this.state_=t.state!==void 0?t.state:"ready",this.wrapX_=t.wrapX!==void 0?t.wrapX:!1,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;let e=this;this.viewPromise_=new Promise(function(i,s){e.viewResolver=i,e.viewRejector=s})}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=Qd(t),this.changed()}setState(t){this.state_=t,this.changed()}};function Qd(n){return n?Array.isArray(n)?function(t){return n}:typeof n=="function"?n:function(t){return[n]}:null}var Xn=ll;var Wn=class{constructor(t,e,i,s){this.minX=t,this.maxX=e,this.minY=i,this.maxY=s}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minXthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)}getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}};function ys(n,t,e,i,s){return s!==void 0?(s.minX=n,s.maxX=t,s.minY=e,s.maxY=i,s):new Wn(n,t,e,i)}var Vn=Wn;var Ks=[0,0,0],is=5,hl=class{constructor(t){this.minZoom=t.minZoom!==void 0?t.minZoom:0,this.resolutions_=t.resolutions,gt($h(this.resolutions_,function(s,r){return r-s},!0),17);let e;if(!t.origins){for(let s=0,r=this.resolutions_.length-1;s=this.minZoom;){if(this.zoomFactor_===2?(o=Math.floor(o/2),a=Math.floor(a/2),r=ys(o,o,a,a,i)):r=this.getTileRangeForExtentAndZ(l,h,i),e(h,r))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]this.maxZoom||e0?i:Math.max(r/e[0],s/e[1]);let o=t+1,a=new Array(o);for(let l=0;li.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,s){}},Hn=class extends te{constructor(t,e){super(t),this.tile=e}},su=dl;function ff(n,t){let e=/\{z\}/g,i=/\{x\}/g,s=/\{y\}/g,r=/\{-y\}/g;return function(o,a,l){if(o)return n.replace(e,o[0].toString()).replace(i,o[1].toString()).replace(s,o[2].toString()).replace(r,function(){let h=o[0],c=t.getFullTileRange(h);return gt(c,55),(c.getHeight()-o[2]-1).toString()})}}function ru(n,t){let e=n.length,i=new Array(e);for(let s=0;sthis.getTileInternal(x,f,M,L,o),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.getInterpolate());return b.key=g,h?(b.interimTile=h,b.refreshInterimChain(),a.replace(c,b)):a.set(c,b),b}getTileInternal(t,e,i,s,r){let o=null,a=xs(t,e,i),l=this.getKey();if(!this.tileCache.containsKey(a))o=this.createTile_(t,e,i,s,r,l),this.tileCache.set(a,o);else if(o=this.tileCache.get(a),o.key!=l){let h=o;o=this.createTile_(t,e,i,s,r,l),h.getState()==pt.IDLE?o.interimTile=h.interimTile:o.interimTile=h,o.refreshInterimChain(),this.tileCache.replace(a,o)}return o}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(let e in this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}}setTileGridForProjection(t,e){let i=zt(t);if(i){let s=Mt(i);s in this.tileGridForProjection||(this.tileGridForProjection[s]=e)}}clear(){super.clear();for(let t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}};function mf(n,t){n.getImage().src=t}var au=pl;var fl=class extends au{constructor(t){t=t||{};let e=t.projection!==void 0?t.projection:"EPSG:3857",i=t.tileGrid!==void 0?t.tileGrid:eu({extent:Un(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX!==void 0?t.wrapX:!0,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=t.gutter!==void 0?t.gutter:0}getGutter(){return this.gutter_}},lu=fl;var gl=class n extends Zt{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if(typeof t.getSimplifiedGeometry=="function"){let e=t;this.setGeometry(e)}else{let e=t;this.setProperties(e)}}clone(){let t=new n(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());let e=this.getGeometry();e&&t.setGeometry(e.clone());let i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&(Tt(this.geometryChangeKey_),this.geometryChangeKey_=null);let t=this.getGeometry();t&&(this.geometryChangeKey_=wt(t,ut.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?xf(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}};function xf(n){if(typeof n=="function")return n;let t;return Array.isArray(n)?t=n:(gt(typeof n.getZIndex=="function",41),t=[n]),function(){return t}}var bs=gl;var hu=Jt(yl(),1);var bl=class{constructor(t){this.rbush_=new hu.default(t),this.items_={}}insert(t,e){let i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[Mt(e)]=i}load(t,e){let i=new Array(e.length);for(let s=0,r=e.length;s=200&&a.status<300){let h=t.getType(),c;h=="json"||h=="text"?c=a.responseText:h=="xml"?(c=a.responseXML,c||(c=new DOMParser().parseFromString(a.responseText,"application/xml"))):h=="arraybuffer"&&(c=a.response),c?r(t.readFeatures(c,{extent:e,featureProjection:s}),t.readProjection(c)):o()}else o()},a.onerror=o,a.send()}function Cl(n,t){return function(e,i,s,r,o){let a=this;bf(n,t,e,i,s,function(l,h){a.addFeatures(l),r!==void 0&&r(l)},o||$e)}}var xi=class extends te{constructor(t,e,i){super(t),this.feature=e,this.features=i}},_l=class extends Xn{constructor(t){t=t||{},super({attributions:t.attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:t.wrapX!==void 0?t.wrapX:!0}),this.on,this.once,this.un,this.loader_=$e,this.format_=t.format,this.overlaps_=t.overlaps===void 0?!0:t.overlaps,this.url_=t.url,t.loader!==void 0?this.loader_=t.loader:this.url_!==void 0&&(gt(this.format_,7),this.loader_=Cl(this.url_,this.format_)),this.strategy_=t.strategy!==void 0?t.strategy:cu;let e=t.useSpatialIndex!==void 0?t.useSpatialIndex:!0;this.featuresRtree_=e?new vl:null,this.loadedExtentsRtree_=new vl,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null;let i,s;Array.isArray(t.features)?s=t.features:t.features&&(i=t.features,s=i.getArray()),!e&&i===void 0&&(i=new oe(s)),s!==void 0&&this.addFeaturesInternal(s),i!==void 0&&this.bindFeaturesCollection_(i)}addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){let e=Mt(t);if(!this.addToIndex_(e,t)){this.featuresCollection_&&this.featuresCollection_.remove(t);return}this.setupChangeEvents_(e,t);let i=t.getGeometry();if(i){let s=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(s,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new xi(He.ADDFEATURE,t))}setupChangeEvents_(t,e){this.featureChangeKeys_[t]=[wt(e,ut.CHANGE,this.handleFeatureChange_,this),wt(e,Ke.PROPERTYCHANGE,this.handleFeatureChange_,this)]}addToIndex_(t,e){let i=!0,s=e.getId();return s!==void 0&&(s.toString()in this.idIndex_?i=!1:this.idIndex_[s.toString()]=e),i&&(gt(!(t in this.uidIndex_),30),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){let e=[],i=[],s=[];for(let r=0,o=t.length;r{e||(e=!0,this.addFeature(i.element),e=!1)}),t.addEventListener(ee.REMOVE,i=>{e||(e=!0,this.removeFeature(i.element),e=!1)}),this.featuresCollection_=t}clear(t){if(t){for(let i in this.featureChangeKeys_)this.featureChangeKeys_[i].forEach(Tt);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){let i=s=>{this.removeFeatureInternal(s)};this.featuresRtree_.forEach(i);for(let s in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[s])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};let e=new xi(He.CLEAR);this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){let i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(s){if(s.getGeometry().intersectsCoordinate(t))return e(s)})}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,function(i){if(i.getGeometry().intersectsExtent(t)){let r=e(i);if(r)return r}})}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Je(this.nullGeometryFeatures_)||ye(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){let e=[];return this.forEachFeatureAtCoordinateDirect(t,function(i){e.push(i)}),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);let s=dc(t,e);return[].concat(...s.map(r=>this.featuresRtree_.getInExtent(r)))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){let i=t[0],s=t[1],r=null,o=[NaN,NaN],a=1/0,l=[-1/0,-1/0,1/0,1/0];return e=e||Pi,this.featuresRtree_.forEachInExtent(l,function(h){if(e(h)){let c=h.getGeometry(),g=a;if(a=c.closestPointXY(i,s,o,a),a{--this.loadingExtentsCount_,this.dispatchEvent(new xi(He.FEATURESLOADEND,void 0,c))},()=>{--this.loadingExtentsCount_,this.dispatchEvent(new xi(He.FEATURESLOADERROR))}),s.insert(l,{extent:l.slice()}))}this.loading=this.loader_.length<4?!1:this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){let e=this.loadedExtentsRtree_,i;e.forEachInExtent(t,function(s){if(Li(s.extent,t))return i=s,!0}),i&&e.remove(i)}removeFeature(t){if(!t)return;let e=Mt(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){let e=Mt(t),i=this.featureChangeKeys_[e];if(!i)return;i.forEach(Tt),delete this.featureChangeKeys_[e];let s=t.getId();return s!==void 0&&delete this.idIndex_[s.toString()],delete this.uidIndex_[e],this.dispatchEvent(new xi(He.REMOVEFEATURE,t)),t}removeFromIdIndex_(t){let e=!1;for(let i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e}setLoader(t){this.loader_=t}setUrl(t){gt(this.format_,7),this.url_=t,this.setLoader(Cl(t,this.format_))}},yi=_l;var vf='© OpenStreetMap contributors.',wl=class extends lu{constructor(t){t=t||{};let e;t.attributions!==void 0?e=t.attributions:e=[vf];let i=t.crossOrigin!==void 0?t.crossOrigin:"anonymous",s=t.url!==void 0?t.url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png";super({attributions:e,attributionsCollapsible:!1,cacheSize:t.cacheSize,crossOrigin:i,interpolate:t.interpolate,maxZoom:t.maxZoom!==void 0?t.maxZoom:19,opaque:t.opaque!==void 0?t.opaque:!0,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileLoadFunction:t.tileLoadFunction,transition:t.transition,url:s,wrapX:t.wrapX,zDirection:t.zDirection})}},Ir=wl;var Sl=class extends Jr{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t,this.declutterExecutorGroup=null}getFeatures(t){return ft()}getData(t){return null}prepareFrame(t){return ft()}renderFrame(t,e){return ft()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return(s,r)=>{let o=this.loadedTileCallback.bind(this,i,s);return t.forEachLoadedTile(e,s,r,o)}}forEachFeatureAtCoordinate(t,e,i,s,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){let e=t.target;(e.getState()===Ot.LOADED||e.getState()===Ot.ERROR)&&this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=Ot.LOADED&&e!=Ot.ERROR&&t.addEventListener(ut.CHANGE,this.boundHandleImageChange_),e==Ot.IDLE&&(t.load(),e=t.getState()),e==Ot.LOADED}renderIfReadyAndVisible(){let t=this.getLayer();t&&t.getVisible()&&t.getSourceState()==="ready"&&t.changed()}disposeInternal(){delete this.layer_,super.disposeInternal()}},du=Sl;var El=[],qs=null;function Cf(){qs=Gt(1,1,void 0,{willReadFrequently:!0})}var Ml=class extends du{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=ge(),this.pixelTransform=ge(),this.inversePixelTransform=ge(),this.context=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){qs||Cf(),qs.clearRect(0,0,1,1);let s;try{qs.drawImage(t,e,i,1,1,0,0,1,1),s=qs.getImageData(0,0,1,1).data}catch{return qs=null,null}return s}getBackground(t){let i=this.getLayer().getBackground();return typeof i=="function"&&(i=i(t.viewState.resolution)),i||void 0}useContainer(t,e,i){let s=this.getLayer().getClassName(),r,o;if(t&&t.className===s&&(!i||t&&t.style.backgroundColor&&fe(as(t.style.backgroundColor),as(i)))){let a=t.firstElementChild;a instanceof HTMLCanvasElement&&(o=a.getContext("2d"))}if(o&&o.canvas.style.transform===e?(this.container=t,this.context=o,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=s;let a=r.style;a.position="absolute",a.width="100%",a.height="100%",o=Gt();let l=o.canvas;r.appendChild(l),a=l.style,a.position="absolute",a.left="0",a.transformOrigin="top left",this.container=r,this.context=o}!this.containerReused&&i&&!this.container.style.backgroundColor&&(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){let s=Xe(i),r=Fs(i),o=Os(i),a=Rs(i);Wt(e.coordinateToPixelTransform,s),Wt(e.coordinateToPixelTransform,r),Wt(e.coordinateToPixelTransform,o),Wt(e.coordinateToPixelTransform,a);let l=this.inversePixelTransform;Wt(l,s),Wt(l,r),Wt(l,o),Wt(l,a),t.save(),t.beginPath(),t.moveTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.lineTo(Math.round(a[0]),Math.round(a[1])),t.clip()}dispatchRenderEvent_(t,e,i){let s=this.getLayer();if(s.hasListener(t)){let r=new En(t,this.inversePixelTransform,i,e);s.dispatchEvent(r)}}preRender(t,e){this.frameState=e,this.dispatchRenderEvent_(ve.PRERENDER,t,e)}postRender(t,e){this.dispatchRenderEvent_(ve.POSTRENDER,t,e)}getRenderTransform(t,e,i,s,r,o,a){let l=r/2,h=o/2,c=s/e,g=-c,u=-t[0]+a,p=-t[1];return be(this.tempTransform,l,h,c,g,-i,u,p)}disposeInternal(){delete this.frameState,super.disposeInternal()}},Zn=Ml;var kr={PRELOAD:"preload",USE_INTERIM_TILES_ON_ERROR:"useInterimTilesOnError"};var Pl=class extends ds{constructor(t){t=t||{};let e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(t.preload!==void 0?t.preload:0),this.setUseInterimTilesOnError(t.useInterimTilesOnError!==void 0?t.useInterimTilesOnError:!0)}getPreload(){return this.get(kr.PRELOAD)}setPreload(t){this.set(kr.PRELOAD,t)}getUseInterimTilesOnError(){return this.get(kr.USE_INTERIM_TILES_ON_ERROR)}setUseInterimTilesOnError(t){this.set(kr.USE_INTERIM_TILES_ON_ERROR,t)}getData(t){return super.getData(t)}},uu=Pl;var Tl=class extends Zn{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=Ut(),this.tmpTileRange_=new Vn(0,0,0,0)}isDrawableTile(t){let e=this.getLayer(),i=t.getState(),s=e.getUseInterimTilesOnError();return i==pt.LOADED||i==pt.EMPTY||i==pt.ERROR&&!s}getTile(t,e,i,s){let r=s.pixelRatio,o=s.viewState.projection,a=this.getLayer(),h=a.getSource().getTile(t,e,i,r,o);return h.getState()==pt.ERROR&&a.getUseInterimTilesOnError()&&a.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(h)||(h=h.getInterimTile()),h}getData(t){let e=this.frameState;if(!e)return null;let i=this.getLayer(),s=Wt(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!Vi(r,s))return null;let o=e.pixelRatio,a=e.viewState.projection,l=e.viewState,h=i.getRenderSource(),c=h.getTileGridForProjection(l.projection),g=h.getTilePixelRatio(e.pixelRatio);for(let u=c.getZForResolution(l.resolution);u>=c.getMinZoom();--u){let p=c.getTileCoordForCoordAndZ(s,u),y=h.getTile(u,p[1],p[2],o,a);if(!(y instanceof jn||y instanceof Lr)||y instanceof Lr&&y.getState()===pt.EMPTY)return null;if(y.getState()!==pt.LOADED)continue;let b=c.getOrigin(u),x=ie(c.getTileSize(u)),f=c.getResolution(u),M=Math.floor(g*((s[0]-b[0])/f-p[1]*x[0])),L=Math.floor(g*((b[1]-s[1])/f-p[2]*x[1])),_=Math.round(g*h.getGutterForProjection(l.projection));return this.getImageData(y.getImage(),M+_,L+_)}return null}loadedTileCallback(t,e,i){return this.isDrawableTile(i)?super.loadedTileCallback(t,e,i):!1}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){let i=t.layerStatesArray[t.layerIndex],s=t.viewState,r=s.projection,o=s.resolution,a=s.center,l=s.rotation,h=t.pixelRatio,c=this.getLayer(),g=c.getSource(),u=g.getRevision(),p=g.getTileGridForProjection(r),y=p.getZForResolution(o,g.zDirection),b=p.getResolution(y),x=t.extent,f=t.viewState.resolution,M=g.getTilePixelRatio(h),L=Math.round(At(x)/f*h),_=Math.round(me(x)/f*h),w=i.extent&&si(i.extent,r);w&&(x=Yi(x,si(i.extent,r)));let k=b*L/2/M,z=b*_/2/M,O=[a[0]-k,a[1]-z,a[0]+k,a[1]+z],C=p.getTileRangeForExtentAndZ(x,y),A={};A[y]={};let F=this.createLoadedTileFinder(g,r,A),S=this.tmpExtent,T=this.tmpTileRange_;this.newTiles_=!1;let D=l?cn(s.center,f,l,t.size):void 0;for(let G=C.minX;G<=C.maxX;++G)for(let W=C.minY;W<=C.maxY;++W){if(l&&!p.tileCoordIntersectsViewport([y,G,W],D))continue;let N=this.getTile(y,G,W,t);if(this.isDrawableTile(N)){let V=Mt(this);if(N.getState()==pt.LOADED){A[y][N.tileCoord.toString()]=N;let H=N.inTransition(V);H&&i.opacity!==1&&(N.endTransition(V),H=!1),!this.newTiles_&&(H||!this.renderedTiles.includes(N))&&(this.newTiles_=!0)}if(N.getAlpha(V,t.time)===1)continue}let B=p.getTileCoordChildTileRange(N.tileCoord,T,S),X=!1;B&&(X=F(y+1,B)),X||p.forEachTileCoordParentTileRange(N.tileCoord,F,T,S)}let P=b/o*h/M;be(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/h,1/h,l,-L/2,-_/2);let m=rn(this.pixelTransform);this.useContainer(e,m,this.getBackground(t));let d=this.context,v=d.canvas;Is(this.inversePixelTransform,this.pixelTransform),be(this.tempTransform,L/2,_/2,P,P,0,-L/2,-_/2),v.width!=L||v.height!=_?(v.width=L,v.height=_):this.containerReused||d.clearRect(0,0,L,_),w&&this.clipUnrotated(d,t,w),g.getInterpolate()||(d.imageSmoothingEnabled=!1),this.preRender(d,t),this.renderedTiles.length=0;let I=Object.keys(A).map(Number);I.sort(qe);let E,R,j;i.opacity===1&&(!this.containerReused||g.getOpaque(t.viewState.projection))?I=I.reverse():(E=[],R=[]);for(let G=I.length-1;G>=0;--G){let W=I[G],N=g.getTilePixelSize(W,h,r),X=p.getResolution(W)/b,V=N[0]*X*P,H=N[1]*X*P,K=p.getTileCoordForCoordAndZ(Xe(O),W),U=p.getTileCoordExtent(K),Y=Wt(this.tempTransform,[M*(U[0]-O[0])/b,M*(O[3]-U[3])/b]),Z=M*g.getGutterForProjection(r),q=A[W];for(let J in q){let Q=q[J],$=Q.tileCoord,tt=K[1]-$[1],it=Math.round(Y[0]-(tt-1)*V),et=K[2]-$[2],st=Math.round(Y[1]-(et-1)*H),rt=Math.round(Y[0]-tt*V),nt=Math.round(Y[1]-et*H),ot=it-rt,at=st-nt,ct=y===W,ht=ct&&Q.getAlpha(Mt(this),t.time)!==1,lt=!1;if(!ht)if(E){j=[rt,nt,rt+ot,nt,rt+ot,nt+at,rt,nt+at];for(let yt=0,Et=E.length;yt1?o:2,r=r||new Array(o);for(let c=0;c>1;s0,6),gt(!((t.width!==void 0||t.height!==void 0)&&t.scale!==void 0),69);let l=t.src!==void 0?Ot.IDLE:Ot.LOADED;if(this.color_=t.color!==void 0?as(t.color):null,this.iconImage_=yu(o,a,this.imgSize_!==void 0?this.imgSize_:null,this.crossOrigin_,l,this.color_),this.offset_=t.offset!==void 0?t.offset:[0,0],this.offsetOrigin_=t.offsetOrigin!==void 0?t.offsetOrigin:"top-left",this.origin_=null,this.size_=t.size!==void 0?t.size:null,t.width!==void 0||t.height!==void 0){let h,c;if(t.size)[h,c]=t.size;else{let g=this.getImage(1);if(g instanceof HTMLCanvasElement||g.src&&g.complete)h=g.width,c=g.height;else{this.initialOptions_=t;let u=()=>{if(this.unlistenImageChange(u),!this.initialOptions_)return;let p=this.iconImage_.getSize();this.setScale(bu(p[0],p[1],t.width,t.height))};this.listenImageChange(u);return}}h!==void 0&&this.setScale(bu(h,c,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new n({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,imgSize:this.imgSize_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:this.size_!==null?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;let s=this.getSize();if(this.anchorXUnits_=="fraction"||this.anchorYUnits_=="fraction"){if(!s)return null;t=this.anchor_.slice(),this.anchorXUnits_=="fraction"&&(t[0]*=s[0]),this.anchorYUnits_=="fraction"&&(t[1]*=s[1])}if(this.anchorOrigin_!="top-left"){if(!s)return null;t===this.anchor_&&(t=this.anchor_.slice()),(this.anchorOrigin_=="top-right"||this.anchorOrigin_=="bottom-right")&&(t[0]=-t[0]+s[0]),(this.anchorOrigin_=="bottom-left"||this.anchorOrigin_=="bottom-right")&&(t[1]=-t[1]+s[1])}this.normalizedAnchor_=t}let e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if(this.offsetOrigin_!="top-left"){let e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),(this.offsetOrigin_=="top-right"||this.offsetOrigin_=="bottom-right")&&(t[0]=i[0]-e[0]-t[0]),(this.offsetOrigin_=="bottom-left"||this.offsetOrigin_=="bottom-right")&&(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){let t=this.getScaleArray();if(this.size_)return this.size_[0]*t[0];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[0]*t[0]}getHeight(){let t=this.getScaleArray();if(this.size_)return this.size_[1]*t[1];if(this.iconImage_.getImageState()==Ot.LOADED)return this.iconImage_.getSize()[1]*t[1]}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(ut.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(ut.CHANGE,t)}},ji=Nl;function Bl(n){return new we({fill:zr(n,""),stroke:jr(n,""),text:wf(n),image:Sf(n)})}function zr(n,t){let e=n[t+"fill-color"];if(e)return e==="none"?null:new _e({color:e})}function jr(n,t){let e=n[t+"stroke-width"],i=n[t+"stroke-color"];if(!(!e&&!i))return new De({width:e,color:i,lineCap:n[t+"stroke-line-cap"],lineJoin:n[t+"stroke-line-join"],lineDash:n[t+"stroke-line-dash"],lineDashOffset:n[t+"stroke-line-dash-offset"],miterLimit:n[t+"stroke-miter-limit"]})}function wf(n){let t=n["text-value"];return t?new ss({text:t,font:n["text-font"],maxAngle:n["text-max-angle"],offsetX:n["text-offset-x"],offsetY:n["text-offset-y"],overflow:n["text-overflow"],placement:n["text-placement"],repeat:n["text-repeat"],scale:n["text-scale"],rotateWithView:n["text-rotate-with-view"],rotation:n["text-rotation"],textAlign:n["text-align"],justify:n["text-justify"],textBaseline:n["text-baseline"],padding:n["text-padding"],fill:zr(n,"text-"),backgroundFill:zr(n,"text-background-"),stroke:jr(n,"text-"),backgroundStroke:jr(n,"text-background-")}):void 0}function Sf(n){let t=n["icon-src"],e=n["icon-img"];if(t||e)return new ji({src:t,img:e,imgSize:n["icon-img-size"],anchor:n["icon-anchor"],anchorOrigin:n["icon-anchor-origin"],anchorXUnits:n["icon-anchor-x-units"],anchorYUnits:n["icon-anchor-y-units"],color:n["icon-color"],crossOrigin:n["icon-cross-origin"],offset:n["icon-offset"],displacement:n["icon-displacement"],opacity:n["icon-opacity"],scale:n["icon-scale"],width:n["icon-width"],height:n["icon-height"],rotation:n["icon-rotation"],rotateWithView:n["icon-rotate-with-view"],size:n["icon-size"],declutterMode:n["icon-declutter-mode"]});let i=n["shape-points"];if(i){let r="shape-";return new Qn({points:i,fill:zr(n,r),stroke:jr(n,r),radius:n["shape-radius"],radius1:n["shape-radius1"],radius2:n["shape-radius2"],angle:n["shape-angle"],displacement:n["shape-displacement"],rotation:n["shape-rotation"],rotateWithView:n["shape-rotate-with-view"],scale:n["shape-scale"],declutterMode:n["shape-declutter-mode"]})}let s=n["circle-radius"];if(s){let r="circle-";return new to({radius:s,fill:zr(n,r),stroke:jr(n,r),displacement:n["circle-displacement"],scale:n["circle-scale"],rotation:n["circle-rotation"],rotateWithView:n["circle-rotate-with-view"],declutterMode:n["circle-declutter-mode"]})}}var vu={RENDER_ORDER:"renderOrder"},Gl=class extends ds{constructor(t){t=t||{};let e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter!==void 0?t.declutter:!1,this.renderBuffer_=t.renderBuffer!==void 0?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=t.updateWhileAnimating!==void 0?t.updateWhileAnimating:!1,this.updateWhileInteracting_=t.updateWhileInteracting!==void 0?t.updateWhileInteracting:!1}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get(vu.RENDER_ORDER)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t){t.declutterTree||(t.declutterTree=new Cu.default(9)),this.getRenderer().renderDeclutter(t)}setRenderOrder(t){this.set(vu.RENDER_ORDER,t)}setStyle(t){let e;if(t===void 0)e=xu;else if(t===null)e=null;else if(typeof t=="function")e=t;else if(t instanceof we)e=t;else if(Array.isArray(t)){let i=t.length,s=new Array(i);for(let r=0;ra&&(this.instructions.push([xt.CUSTOM,a,h,t,i,Ue]),this.hitDetectionInstructions.push([xt.CUSTOM,a,h,t,s||i,Ue]));break;case"Point":l=t.getFlatCoordinates(),this.coordinates.push(l[0],l[1]),h=this.coordinates.length,this.instructions.push([xt.CUSTOM,a,h,t,i]),this.hitDetectionInstructions.push([xt.CUSTOM,a,h,t,s||i]);break;default:}this.endGeometry(e)}beginGeometry(t,e){this.beginGeometryInstruction1_=[xt.BEGIN_GEOMETRY,e,0,t],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[xt.BEGIN_GEOMETRY,e,0,t],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){let t=this.hitDetectionInstructions;t.reverse();let e,i=t.length,s,r,o=-1;for(e=0;ethis.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){let e=t.fillStyle,i=[xt.SET_FILL_STYLE,e];return typeof e!="string"&&i.push(!0),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[xt.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){let i=t.fillStyle;(typeof i!="string"||t.currentFillStyle!=i)&&(i!==void 0&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){let i=t.strokeStyle,s=t.lineCap,r=t.lineDash,o=t.lineDashOffset,a=t.lineJoin,l=t.lineWidth,h=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=s||r!=t.currentLineDash&&!fe(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=a||t.currentLineWidth!=l||t.currentMiterLimit!=h)&&(i!==void 0&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=s,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=a,t.currentLineWidth=l,t.currentMiterLimit=h)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;let e=[xt.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=on(this.maxExtent),this.maxLineWidth>0)){let t=this.resolution*(this.maxLineWidth+1)/2;ks(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}},vi=Vl;var Yl=class extends vi{constructor(t,e,i,s){super(t,e,i,s),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);let i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([xt.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e){if(!this.image_)return;this.beginGeometry(t,e);let i=t.getFlatCoordinates(),s=t.getStride(),r=this.coordinates.length,o=this.appendFlatPointCoordinates(i,s);this.instructions.push([xt.DRAW_IMAGE,r,o,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){let i=t.getAnchor(),s=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=s[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=s[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}},wu=Yl;var Ul=class extends vi{constructor(t,e,i,s){super(t,e,i,s)}drawFlatCoordinates_(t,e,i,s){let r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,s,!1,!1),a=[xt.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e){let i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([xt.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Te,Ae],Ni);let o=t.getFlatCoordinates(),a=t.getStride();this.drawFlatCoordinates_(o,0,o.length,a),this.hitDetectionInstructions.push(bi),this.endGeometry(e)}drawMultiLineString(t,e){let i=this.state,s=i.strokeStyle,r=i.lineWidth;if(s===void 0||r===void 0)return;this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([xt.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,Te,Ae],Ni);let o=t.getEnds(),a=t.getFlatCoordinates(),l=t.getStride(),h=0;for(let c=0,g=o.length;c=n){let y=(n-a+p)/p,b=ae(h,g,y),x=ae(c,u,y);l.push(b,x),r.push(l),l=[b,x],a==n&&(o+=s),a=0}else if(a0&&r.push(l),r}function Eu(n,t,e,i,s){let r=e,o=e,a=0,l=0,h=e,c,g,u,p,y,b,x,f,M,L;for(g=e;gn&&(l>a&&(a=l,r=h,o=g),l=0,h=g-s)),u=p,x=M,f=L),y=_,b=w}return l+=p,l>a?[h,g]:[r,o]}var Gr={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Kl=class extends vi{constructor(t,e,i,s){super(t,e,i,s),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[$t]={fillStyle:$t},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterImageWithText_=void 0}finish(){let t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e){let i=this.textFillState_,s=this.textStrokeState_,r=this.textState_;if(this.text_===""||!r||!i&&!s)return;let o=this.coordinates,a=o.length,l=t.getType(),h=null,c=t.getStride();if(r.placement==="line"&&(l=="LineString"||l=="MultiLineString"||l=="Polygon"||l=="MultiPolygon")){if(!Vt(this.getBufferedMaxExtent(),t.getExtent()))return;let g;if(h=t.getFlatCoordinates(),l=="LineString")g=[h.length];else if(l=="MultiLineString")g=t.getEnds();else if(l=="Polygon")g=t.getEnds().slice(0,1);else if(l=="MultiPolygon"){let b=t.getEndss();g=[];for(let x=0,f=b.length;x{let _=o[(f+L)*2]===h[L*c]&&o[(f+L)*2+1]===h[L*c+1];return _||--f,_})}this.saveTextStates_(),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&this.updateFillStyle(this.state,this.createFill),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e);let p=r.padding;if(p!=Fi&&(r.scale[0]<0||r.scale[1]<0)){let f=r.padding[0],M=r.padding[1],L=r.padding[2],_=r.padding[3];r.scale[0]<0&&(M=-M,_=-_),r.scale[1]<0&&(f=-f,L=-L),p=[f,M,L,_]}let y=this.pixelRatio;this.instructions.push([xt.DRAW_IMAGE,a,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,void 0,this.declutterImageWithText_,p==Fi?Fi:p.map(function(f){return f*y}),!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]);let b=1/y,x=this.state.fillStyle;r.backgroundFill&&(this.state.fillStyle=$t,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([xt.DRAW_IMAGE,a,u,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[b,b],NaN,void 0,this.declutterImageWithText_,p,!!r.backgroundFill,!!r.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?$t:this.fillKey_,this.textOffsetX_,this.textOffsetY_,g]),r.backgroundFill&&(this.state.fillStyle=x,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}}saveTextStates_(){let t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,s=this.strokeKey_;t&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));let r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||Qi,justify:e.justify,textBaseline:e.textBaseline||fs,scale:e.scale});let o=this.fillKey_;i&&(o in this.fillStates||(this.fillStates[o]={fillStyle:i.fillStyle}))}drawChars_(t,e){let i=this.textStrokeState_,s=this.textState_,r=this.strokeKey_,o=this.textKey_,a=this.fillKey_;this.saveTextStates_();let l=this.pixelRatio,h=Gr[s.textBaseline],c=this.textOffsetY_*l,g=this.text_,u=i?i.lineWidth*Math.abs(s.scale[0])/2:0;this.instructions.push([xt.DRAW_CHARS,t,e,h,s.overflow,a,s.maxAngle,l,c,r,u*l,g,o,1]),this.hitDetectionInstructions.push([xt.DRAW_CHARS,t,e,h,s.overflow,a&&$t,s.maxAngle,1,c,r,u,g,o,1/l])}setTextStyle(t,e){let i,s,r;if(!t)this.text_="";else{let o=t.getFill();o?(s=this.textFillState_,s||(s={},this.textFillState_=s),s.fillStyle=Le(o.getColor()||$t)):(s=null,this.textFillState_=s);let a=t.getStroke();if(!a)r=null,this.textStrokeState_=r;else{r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);let y=a.getLineDash(),b=a.getLineDashOffset(),x=a.getWidth(),f=a.getMiterLimit();r.lineCap=a.getLineCap()||ps,r.lineDash=y?y.slice():Te,r.lineDashOffset=b===void 0?Ae:b,r.lineJoin=a.getLineJoin()||ui,r.lineWidth=x===void 0?zi:x,r.miterLimit=f===void 0?Ri:f,r.strokeStyle=Le(a.getColor()||Oi)}i=this.textState_;let l=t.getFont()||Tn;hd(l);let h=t.getScaleArray();i.overflow=t.getOverflow(),i.font=l,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||fs,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||Fi,i.scale=h===void 0?[1,1]:h;let c=t.getOffsetX(),g=t.getOffsetY(),u=t.getRotateWithView(),p=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=c===void 0?0:c,this.textOffsetY_=g===void 0?0:g,this.textRotateWithView_=u===void 0?!1:u,this.textRotation_=p===void 0?0:p,this.strokeKey_=r?(typeof r.strokeStyle=="string"?r.strokeStyle:Mt(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=s?typeof s.fillStyle=="string"?s.fillStyle:"|"+Mt(s.fillStyle):""}this.declutterImageWithText_=e}},Pu=Kl;var Mf={Circle:Zl,Default:vi,Image:wu,LineString:Su,Polygon:Zl,Text:Pu},ql=class{constructor(t,e,i,s){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=s,this.resolution_=i,this.buildersByZIndex_={}}finish(){let t={};for(let e in this.buildersByZIndex_){t[e]=t[e]||{};let i=this.buildersByZIndex_[e];for(let s in i){let r=i[s].finish();t[e][s]=r}}return t}getBuilder(t,e){let i=t!==void 0?t.toString():"0",s=this.buildersByZIndex_[i];s===void 0&&(s={},this.buildersByZIndex_[i]=s);let r=s[e];if(r===void 0){let o=Mf[e];r=new o(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),s[e]=r}return r}},$l=ql;function Tu(n,t,e,i,s,r,o,a,l,h,c,g){let u=n[t],p=n[t+1],y=0,b=0,x=0,f=0;function M(){y=u,b=p,t+=i,u=n[t],p=n[t+1],f+=x,x=Math.sqrt((u-y)*(u-y)+(p-b)*(p-b))}do M();while(tm[2]}else F=_>C;let S=Math.PI,T=[],D=k+i===t;t=k,x=0,f=z,u=n[t],p=n[t+1];let P;if(D){M(),P=Math.atan2(p-b,u-y),F&&(P+=P>0?-S:S);let m=(C+_)/2,d=(A+w)/2;return T[0]=[m,d,(O-r)/2,P,s],T}s=s.replace(/\n/g," ");for(let m=0,d=s.length;m0?-S:S),P!==void 0){let W=v-P;if(W+=W>S?-2*S:W<-S?2*S:0,Math.abs(W)>o)return null}P=v;let I=m,E=0;for(;m0&&n.push(` +`,""),n.push(t,""),n}var Ql=class{constructor(t,e,i,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignFill_,this.instructions=s.instructions,this.coordinates=s.coordinates,this.coordinateCache_={},this.renderedTransform_=ge(),this.hitDetectionInstructions=s.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=s.fillStates||{},this.strokeStates=s.strokeStates||{},this.textStates=s.textStates||{},this.widths_={},this.labels_={}}createLabel(t,e,i,s){let r=t+e+i+s;if(this.labels_[r])return this.labels_[r];let o=s?this.strokeStates[s]:null,a=i?this.fillStates[i]:null,l=this.textStates[e],h=this.pixelRatio,c=[l.scale[0]*h,l.scale[1]*h],g=Array.isArray(t),u=l.justify?Gr[l.justify]:Jl(Array.isArray(t)?t[0]:t,l.textAlign||Qi),p=s&&o.lineWidth?o.lineWidth:0,y=g?t:t.split(` +`).reduce(Ef,[]),{width:b,height:x,widths:f,heights:M,lineWidths:L}=dd(l,y),_=b+p,w=[],k=(_+2)*c[0],z=(x+p)*c[1],O={width:k<0?Math.floor(k):Math.ceil(k),height:z<0?Math.floor(z):Math.ceil(z),contextInstructions:w};(c[0]!=1||c[1]!=1)&&w.push("scale",c),s&&(w.push("strokeStyle",o.strokeStyle),w.push("lineWidth",p),w.push("lineCap",o.lineCap),w.push("lineJoin",o.lineJoin),w.push("miterLimit",o.miterLimit),w.push("setLineDash",[o.lineDash]),w.push("lineDashOffset",o.lineDashOffset)),i&&w.push("fillStyle",a.fillStyle),w.push("textBaseline","middle"),w.push("textAlign","center");let C=.5-u,A=u*_+C*p,F=[],S=[],T=0,D=0,P=0,m=0,d;for(let v=0,I=y.length;vt?t-h:r,_=o+c>e?e-c:o,w=y[3]+L*u[0]+y[1],k=y[0]+_*u[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:u}}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,u=o.width/l-2*r.scale[0],p=h*u+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,u=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},d=this.instructions!=s||this.overlaps?0:200,v,I,E,R;for(;cd&&(this.fill_(t),C=0),A>d&&(t.stroke(),A=0),!C&&!A&&(t.beginPath(),x=NaN,f=NaN),++c;break;case xt.CIRCLE:u=j[1];let W=h[u],N=h[u+1],B=h[u+2],X=h[u+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:u=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,u,p,2,q):(q[0]=h[u],q[1]=h[u+1],q.length=2),Y(q,m),++c;break;case xt.DRAW_IMAGE:u=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(;u0){if(!o||p!=="Image"&&p!=="Text"||o.includes(w)){let A=(u[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,u,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(),u=t.getTextBaseline();this.textState_={font:s!==void 0?s:Tn,textAlign:g!==void 0?g:Qi,textBaseline:u!==void 0?u: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),u=e.length,p=Math.floor((256*256*256-1)/u),y={};for(let x=1;x<=u;++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,u=i[1]*ni;c.push(this.getRenderTransform(s,r,o,ni,g,u,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,u,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,u=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(_),d=Math.max(At(f)/2,m);f[0]=_[0]-d,f[2]=_[2]+d,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,u),f,g,u),k;this.getLayer().getDeclutter()&&(k=new $l(so(g,u),f,g,u));let z=bn(),O;if(z){for(let m=0,d=L.length;m{let d,v=m.getStyleFunction()||e.getStyleFunction();if(v&&(d=v(m,g)),d){let I=this.renderFeature(m,C,d,w,O,k);A=A&&!I}},S=Xs(f,c),T=i.getFeaturesInExtent(S);b&&T.sort(b);for(let m=0,d=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{o.then(l=>this.onPolyFileLoaded(l)).catch(l=>this.loadDefaultGeoJSON()).finally(()=>{this.hideLoading(),a()})})}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.worldMap?.getFeatures().find(M=>M.get("name")===c.toString());if(!g)continue;g.set("dataIdx",h*o),g.set("title",this.data?.Cols[1].tuples[h].caption),g.set("path",this.data?.Cols[1].tuples[h].path),e.push(g);let u=this.data?.Data[h*o+r],p;l-a===0?p=255:p=(u-a)/(l-a)*255;let b=`hsla(${(255-p)/255*120}, 100%, 50%, 0.6)`,x=new ss({font:"8px Oxygen",fill:new _e({color:"black"}),text:`${this.data?.Cols[1].tuples[h].caption} +`+this.formatNumber(u,this.data?.Cols[1].tuples[h].format)}),f=this;g.setStyle(new we({zIndex:0,fill:new _e({color:b}),stroke:this.defaultPolyStroke,text:x}))}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,u=!1;for(let p=0;pparseInt(p,10)));let u=(this.chart||this.chartConfig).series?.length||-1;e.yAxis=g[u]||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 u;for(u=0;uthis.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=u=>{u.preventDefault(),u.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:u,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:""},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:""},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-VET2YQWX.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 u=c?g:e.Data.length;u>e.Data.length&&(u=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&&(u=r.max),r.plotBands=[],g!==r.min&&r.plotBands.push({from:r.min,to:g,color:"rgba(255, 0, 0, 0.4)",zIndex:5}),u!==r.max&&r.plotBands.push({from:u,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-VET2YQWX.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 u=parseFloat(g);return isNaN(u)?0:u}):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 u=c,p=g;isNaN(u)&&(u=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("("),u=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 u.indexOf("a")===-1?u+"a("+i.join(",")+", 0.45)":u+"("+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 u=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(u))?(g=this.mapData.Cols[0].tuples.filter(w=>w.caption===u),f=this.mapData.Cols[0].tuples.indexOf(g[0]),f===-1&&(this.isRGBColor=!0,u="ColorRGBValue",g=this.mapData.Cols[0].tuples.filter(w=>w.caption===u),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 d=[];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",d=D.color||"#000",v=D.stroke||"#fff",I=D.strokeWidth||2;T=new ss({font:`${P}px ${m}`,fill:new _e({color:d}),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(u=>u.caption.toLowerCase()===o);if(c.length!==0&&(h=n.Cols[0].tuples.indexOf(c[0])),c=n.Cols[0].tuples.filter(u=>u.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 u=0;ue[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${u}`,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()}),u=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{let e=class e{constructor(){this.visible$=new o(!1),this.onSearch=new o(""),this.onSearchReset=new t,this.shareDashboardEmitter=new t,this.gotoZenDeepSeeEmitter=new t,this.mobileFilterToggle=new t,this.mobileFilterDialogToggle=new t}resetSearch(){this.onSearchReset.emit()}shareDashboard(){this.shareDashboardEmitter.emit()}gotoZenDeepSee(){this.gotoZenDeepSeeEmitter.emit()}showMobileFilterButton(){this.mobileFilterToggle.emit(!0)}hideMobileFilterButton(){this.mobileFilterToggle.emit(!1)}toggleMobileFilterDialog(){this.mobileFilterDialogToggle.emit()}};e.\u0275fac=function(s){return new(s||e)},e.\u0275prov=r({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();export{g as a}; diff --git a/dist/chunk-VET2YQWX.js b/dist/chunk-VET2YQWX.js new file mode 100644 index 00000000..7dc6c9d9 --- /dev/null +++ b/dist/chunk-VET2YQWX.js @@ -0,0 +1 @@ +import{a as D}from"./chunk-WZRR3GQK.js";import{a as W}from"./chunk-43K6TYMZ.js";import"./chunk-GOV7BL6D.js";import{a as J}from"./chunk-HCCYM72S.js";import"./chunk-G3W4DD55.js";import"./chunk-MDOQS4TE.js";import{a as I}from"./chunk-G7BOERRR.js";import{a as A}from"./chunk-CF2VGD6U.js";import{D as E,J as L}from"./chunk-GDT23CSW.js";import{Cb as g,Db as v,Fb as S,Gb as O,Hb as l,Ib as c,Jb as P,Kc as V,Nb as _,Rb as h,Sb as r,ab as s,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 w,rc as F,xb as m}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,y=r();return b(y.model.themeColors.hcColors[i],t)||(y.model.themeColors.hcColors[i]=t),d(t)}),h("colorChange",function(){a(e);let t=r(2);return d(t.update())}),c()()}if(n&2){let e=r().$index,o=r();s(),m("isImmediate",!0),f("color",o.model.themeColors.hcColors[e])}}function z(n,p){if(n&1&&w(0,N,2,2,"span",5),n&2){let e=p.$index,o=r();g((o.appearance==null||o.appearance.showSeries==null?null:o.appearance.showSeries[e])!==!1?0:-1)}}function R(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Chart background"),c(),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())}),c()}if(n&2){let e=r();s(2),m("isImmediate",!0),f("color",e.model.themeColors.hcBackground)}}function H(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Lines color"),c(),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())}),c()}if(n&2){let e=r();s(2),m("isImmediate",!0),f("color",e.model.themeColors.hcLineColor)}}function Y(n,p){if(n&1){let e=_();l(0,"label"),C(1,"Text color"),c(),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())}),c()}if(n&2){let e=r();s(2),m("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"),c(),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())}),c()}if(n&2){let e=r();s(2),m("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();return{hcColors:e.colors?.slice()||"",hcBackground:e.chart?.backgroundColor||"",hcTextColor:e.labels?.style?.color||"",hcBorderColor:"",hcLineColor:"#e6e6e6"}}static{this.\u0275fac=function(o){return new(o||n)(u(I),u(L),u(V),u(A))}}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"),c(),l(2,"div",1)(3,"label"),C(4),B(5,"i18n"),c(),l(6,"div",2),S(7,z,1,1,null,null,v),c(),w(9,R,3,2)(10,H,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"),c()()),o&2&&(s(4),M(F(5,5,"seriesColor")),s(3),O(t.model.themeColors.hcColors),s(2),g((t.appearance==null?null:t.appearance.showBackground)!==!1?9:-1),s(),g((t.appearance==null?null:t.appearance.showLines)!==!1?10:-1),s(),g((t.appearance==null?null:t.appearance.showText)!==!1?11:-1),s(),g((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-VG6X52WY.js b/dist/chunk-VG6X52WY.js new file mode 100644 index 00000000..73894583 --- /dev/null +++ b/dist/chunk-VG6X52WY.js @@ -0,0 +1 @@ +import{b as k,d as E,e as I,j as P}from"./chunk-HYAUW6N4.js";import{I as O,J as T}from"./chunk-GDT23CSW.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-VROH7INS.js b/dist/chunk-VROH7INS.js deleted file mode 100644 index f2bcab82..00000000 --- a/dist/chunk-VROH7INS.js +++ /dev/null @@ -1,3 +0,0 @@ -import{a as j}from"./chunk-W4MCGIM7.js";import{a as D}from"./chunk-7UI5Z64Y.js";import"./chunk-W7AFIDCE.js";import{a as z,b as I}from"./chunk-ZV53A5KR.js";import"./chunk-FG7UA2MK.js";import"./chunk-RNWIIYZZ.js";import{a as B}from"./chunk-SUAWKU6Z.js";import"./chunk-6BTXKMB7.js";import{c as T,d as A,e as V,j as W}from"./chunk-YBN4SQR6.js";import{F as E,J as k}from"./chunk-CKPIETEW.js";import{$a as h,$b as u,Bb as M,Cb as P,Db as r,Eb as o,Jb as w,Nb as g,Ob as a,Xb as s,Yb as O,_b as f,ab as x,ac as _,cc as S,fa as y,qa as b,ra as m,rb as F,tb as C,yb as v}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function N(l,c){if(l&1){let i=w();r(0,"dsw-color-picker",7),_("colorChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("colorChange",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("color",i.value),C("isImmediate",!0)}}function L(l,c){if(l&1){let i=w();r(0,"input",8),_("ngModelChange",function(t){b(i);let n=a().$implicit;return u(n.value,t)||(n.value=t),m(t)}),g("change",function(){b(i);let t=a().$implicit,n=a();return m(n.updateVariable(t))}),o()}if(l&2){let i=a().$implicit;f("ngModel",i.value)}}function R(l,c){if(l&1&&(r(0,"tr")(1,"td"),s(2),o(),r(3,"td"),F(4,N,1,2,"dsw-color-picker",5)(5,L,1,1,"input",6),o()()),l&2){let i=c.$implicit;h(2),O(i.name),h(2),v(i.isColor?4:-1),h(),v(i.isColor?-1:5)}}var Z=(()=>{let c=class c{constructor(e,t){this.sbs=e,this.ss=t,this.variables=[],this.isApplied=!1,this.settings=this.ss.getAppSettings(),this.model={themes:E.const.themes,theme:this.settings.theme},this.initializeVariables()}ngOnDestroy(){this.isApplied||this.restoreTheme()}onCancel(){this.sbs.hide()}onApply(){let e=this.ss.getAppSettings();e.theme=this.model.theme,this.ss.setAppSettings(e),this.isApplied=!0,this.sbs.hide()}exportTheme(){let e=`:root {\r -`;this.variables.forEach(n=>{e+=" --"+n.name+": "+n.value+`;\r -`}),e+="}";let t=document.createElement("a");t.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(e)),t.setAttribute("download","theme.css"),t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t)}updateVariable(e){document.documentElement.style.setProperty("--"+e.name,e.value)}restoreTheme(){this.model.theme=this.settings.theme,this.applyTheme()}trackVariable(e,t){return t.name}applyTheme(){this.variables.forEach(t=>{document.documentElement.style.setProperty("--"+t.name,null)});let e=document.getElementById("page-theme");e||(e=document.createElement("link")),e.id="page-theme",e.rel="stylesheet",e.type="text/css",this.model.theme?e.href="css/"+this.model.theme:e.href="",document.head.appendChild(e),setTimeout(()=>{this.initializeVariables()},100)}initializeVariables(){this.variables=this.getAllCssVariables().map(e=>{let t=getComputedStyle(document.documentElement).getPropertyValue(e);return{name:e.replace("--",""),value:t,isColor:this.isColor(t)}})}isColor(e){let t=new Option().style;return t.color=e,t.color!==""}getAllCssVariables(){return Array.from(document.styleSheets).filter(e=>e.href===null||e.href.startsWith(window.location.origin)).reduce((e,t)=>e=[...e,...Array.from(t.cssRules).reduce((n,d)=>n=d.selectorText===":root"?[...n,...Array.from(d.style).filter(p=>p.startsWith("--"))]:n,[])],[])}};c.\u0275fac=function(t){return new(t||c)(x(B),x(k))},c.\u0275cmp=y({type:c,selectors:[["dsw-theme-settings"]],standalone:!0,features:[S],decls:21,vars:3,consts:[[3,"cancel","apply"],[1,"container"],["bindValue","file","bindLabel","text",1,"dsw",3,"ngModelChange","ngModel","clearable","items"],[1,"variables-container"],[1,"btn","btn-success",3,"click"],[3,"color","isImmediate"],[1,"input",3,"ngModel"],[3,"colorChange","color","isImmediate"],[1,"input",3,"ngModelChange","change","ngModel"]],template:function(t,n){t&1&&(r(0,"dsw-sidebar-actions",0),g("cancel",function(){return n.onCancel()})("apply",function(){return n.onApply()}),s(1,"Theme settings"),o(),r(2,"div",1)(3,"label"),s(4,"Current theme"),o(),r(5,"ng-select",2),_("ngModelChange",function(p){return u(n.model.theme,p)||(n.model.theme=p),p}),o(),r(6,"label"),s(7,"Theme variables"),o(),r(8,"div",3)(9,"table")(10,"thead")(11,"tr")(12,"td"),s(13,"Name"),o(),r(14,"td"),s(15,"Value"),o()()(),r(16,"tbody"),M(17,R,6,3,"tr",null,n.trackVariable,!0),o()()(),r(19,"button",4),g("click",function(){return n.exportTheme()}),s(20,"Download theme"),o()()),t&2&&(h(5),f("ngModel",n.model.theme),C("clearable",!1)("items",n.model.themes),h(12),P(n.variables))},dependencies:[D,I,z,W,T,A,V,j],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;padding-bottom:20px;transition:transform 2s linear;min-width:var(--sidebar-width)}.container[_ngcontent-%COMP%]{height:100%;overflow-y:auto;padding-left:20px;flex:1 1 100%}.container[_ngcontent-%COMP%]::-webkit-scrollbar{width:20px;height:4px}.container[_ngcontent-%COMP%]::-webkit-scrollbar-track{border-left:solid 16px var(--cl-bg);background:#ebebea}.container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-left:solid 16px var(--cl-bg);border-radius:0;background:#1c1d2066}label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-family:Oxygen;color:var(--cl-sidebar-txt);margin-top:10px;margin-bottom:2px;font-size:14px;width:calc(100% - 4px)}input[_ngcontent-%COMP%]{margin-bottom:4px}.divider[_ngcontent-%COMP%]{display:block;width:100%;clear:both}.btn-section[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;background-color:#fff;padding:10px;color:#1a73e8;font-size:14px;line-height:16px;border:1px solid #EBEBEA;border-radius:4px;width:100%;cursor:pointer;transition:background-color .3s linear}.btn-section[_ngcontent-%COMP%]:not(.disabled):hover{background-color:#1a73e80d}.btn-section[_ngcontent-%COMP%]:not(.disabled):active{transform:translateY(1px)}.headline[_ngcontent-%COMP%]{text-align:center;margin-bottom:10px}.navigation[_ngcontent-%COMP%]{margin-top:20px}.navigation[_ngcontent-%COMP%] > .btn-section[_ngcontent-%COMP%]:not(:last-child){margin-bottom:4px}.navigation[_ngcontent-%COMP%] > .headline[_ngcontent-%COMP%]{margin-top:20px}.disabled[_ngcontent-%COMP%]{cursor:default;filter:grayscale(1);opacity:.5}.footer[_ngcontent-%COMP%]{padding-left:20px}.footer[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:first-child{margin-top:20px}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%}.color-rect[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:inline-flex;position:relative;align-items:center;justify-content:center;cursor:pointer;width:32px;height:32px;margin-right:4px;margin-bottom:4px;border:var(--tile-border);font-size:24px;outline-offset:-2px;float:left;background-size:60%}.color-rect[_ngcontent-%COMP%]:hover{outline:1px solid var(--cl-accent)}.color-rect.active[_ngcontent-%COMP%]{outline:3px solid var(--cl-accent)}.color-rect.small[_ngcontent-%COMP%]{width:32px}","[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}table[_ngcontent-%COMP%]{font-size:12px}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%]{opacity:.7}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:50%}.color[_ngcontent-%COMP%]{height:14px;cursor:pointer}.input[_ngcontent-%COMP%]{height:14px}.btn-success[_ngcontent-%COMP%]{margin-top:10px}dsw-color-picker[_ngcontent-%COMP%]{height:20px}"]});let l=c;return l})();export{Z as ThemeSettingsComponent}; diff --git a/dist/chunk-W4MCGIM7.js b/dist/chunk-W4MCGIM7.js deleted file mode 100644 index a2127185..00000000 --- a/dist/chunk-W4MCGIM7.js +++ /dev/null @@ -1 +0,0 @@ -import{c as Ot,d as $,f as B,g as Xt,h as tt,i as it,j as ot}from"./chunk-W7AFIDCE.js";import{b as mt,c as Nt,g as Qt}from"./chunk-CKPIETEW.js";import{$a as g,$b as D,A as H,Aa as C,Ab as pt,Ba as L,Bb as ut,Bc as Vt,Cb as dt,Da as Gt,Db as d,Eb as p,Fb as G,Gc as R,Hc as ft,J as Rt,Jb as k,Jc as J,K as Wt,Kb as jt,Nb as y,Ob as m,Pb as zt,Qb as Pt,S as ct,Tb as Z,Ub as j,Vb as z,Wb as Yt,X as It,Xb as E,Za as Zt,_ as Dt,_b as I,aa as Kt,ab as M,ac as K,ba as yt,cc as q,eb as U,ec as gt,f as at,fa as _,g as vt,ha as xt,hc as Y,ia as At,ic as nt,jc as Mt,kb as W,lb as lt,m as Bt,pa as Ht,qa as V,r as Ft,ra as O,rb as w,sa as Lt,tb as b,ub as T,vb as ht,y as S,yb as v,za as X}from"./chunk-ZKAUCJHV.js";var St=["pointer"],ee=["backgroundColorEl"],F="[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}";function ne(o,t){o&1&&(d(0,"span"),E(1,"R"),p())}function ie(o,t){o&1&&(d(0,"span"),E(1,"G"),p())}function oe(o,t){o&1&&(d(0,"span"),E(1,"B"),p())}function se(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function re(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",2),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,se,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}function ae(o,t){o&1&&(d(0,"span"),E(1,"H"),p())}function ce(o,t){o&1&&(d(0,"span"),E(1,"S"),p())}function le(o,t){o&1&&(d(0,"span"),E(1,"L"),p())}function he(o,t){o&1&&(d(0,"span"),E(1,"A"),p())}function pe(o,t){if(o&1){let a=k();d(0,"div",0)(1,"input",3),y("inputChange",function(e){V(a);let i=m();return O(i.onInputChange(e,"A"))}),p(),w(2,he,2,0,"span"),p()}if(o&2){let a=m();g(),b("value",a.value==null?null:a.value.getAlpha().toString()),g(),v(a.labelVisible()?2:-1)}}var Ut="[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}";function ue(o,t){o&1&&(d(0,"span"),E(1,"HEX"),p())}function de(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(2);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=t.$implicit,n=m(2);b("color",a)("activeColor",n.activeColor())}}function ge(o,t){if(o&1&&(d(0,"div",2),ut(1,de,1,2,"color-preset",3,pt),Y(3,"reverse"),p()),o&2){let a=m();b("@opacityAnimation",a.showChildren)("@listAnimation",a.direction),g(),dt(Mt(3,2,a.list(),a.direction()=="up"||a.direction()=="right"))}}var _t=(o,t)=>({first:o,last:t});function fe(o,t){if(o&1){let a=k();d(0,"color-preset-sublist",3),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("list",n)("direction",c.direction())("activeColor",c.color())("ngClass",gt(4,_t,e===0,e===i-1))}}function me(o,t){if(o&1){let a=k();d(0,"color-preset",4),y("selectionChange",function(e){V(a);let i=m(3);return O(i.onSelectionChange(e))}),p()}if(o&2){let a=m(),n=a.$implicit,e=a.$index,i=a.$count,c=m(2);b("ngClass",gt(3,_t,e===0,e===i-1))("color",n)("activeColor",c.color())}}function Ce(o,t){if(o&1&&w(0,fe,1,7,"color-preset-sublist",1)(1,me,1,6,"color-preset",2),o&2){let a=t.$implicit,n=m(2);v(n.isList(a)?0:1)}}function be(o,t){if(o&1&&(d(0,"div",0),ut(1,Ce,2,1,null,null,pt),p()),o&2){let a=t.$implicit,n=t.$index,e=t.$count;b("ngClass",gt(1,_t,n===0,n===e-1)),g(),dt(a)}}var we=[[["","before",""]],"*"],ve=["[before]","*"];function ye(o,t){if(o&1){let a=k();d(0,"alpha-component",0),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function xe(o,t){if(o&1){let a=k();d(0,"rgba-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Ae(o,t){if(o&1){let a=k();d(0,"hsla-input-component",12),Y(1,"async"),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();b("alpha",nt(1,2,a.control().alphaChannelVisibilityChanges)),I("color",a.control().value)}}function Pe(o,t){if(o&1){let a=k();d(0,"hex-input-component",13),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value)}}function Me(o,t){if(o&1){let a=k();d(0,"color-presets-component",14),K("colorChange",function(e){V(a);let i=m();return D(i.control().value,e)||(i.control().value=e),O(e)}),p()}if(o&2){let a=m();I("color",a.control().value),b("colorPresets",a.control().presets)}}var et=class{},st=class extends et{constructor(t,a,n,e){super(),this.cyan=t,this.magenta=a,this.yellow=n,this.black=e}toString(){return`cmyk(${this.getCyan()}%, ${this.getMagenta()}%, ${this.getYellow()}%, ${this.getBlack()}%)`}getCyan(){return Math.round(this.cyan)}getMagenta(){return Math.round(this.magenta)}getYellow(){return Math.round(this.yellow)}getBlack(){return Math.round(this.black)}equal(t){return this===t?!0:this.cyan===t.cyan&&this.magenta===t.magenta&&this.yellow===t.yellow&&this.black===t.black}},N=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.lightness=n,this.alpha=e}toString(t=!0){return t?`hsla(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%, ${this.getAlpha()})`:`hsl(${this.getHue()}, ${this.getSaturation()}%, ${this.getLightness()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getLightness(){return Math.round(this.lightness)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.lightness===t.lightness&&this.alpha===t.alpha}},Q=class extends et{constructor(t,a,n,e){super(),this.hue=t,this.saturation=a,this.value=n,this.alpha=e}toString(t=!0){return t?`hsva(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%, ${this.getAlpha()})`:`hsv(${this.getHue()}, ${this.getSaturation()}%, ${this.getValue()}%)`}getHue(){return Math.round(this.hue)}getSaturation(){return Math.round(this.saturation)}getValue(){return Math.round(this.value)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.hue===t.hue&&this.saturation===t.saturation&&this.value===t.value&&this.alpha===t.alpha}},r=class extends et{constructor(t,a,n,e){super(),this.red=t,this.green=a,this.blue=n,this.alpha=e}toString(t=!0){return t?`rgba(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()}, ${this.getAlpha()})`:`rgb(${this.getRed()}, ${this.getGreen()}, ${this.getBlue()})`}getRed(){return Math.round(this.red)}getGreen(){return Math.round(this.green)}getBlue(){return Math.round(this.blue)}getAlpha(){return Math.round(this.alpha*100)/100}equal(t){return this===t?!0:this.red===t.red&&this.green===t.green&&this.blue===t.blue&&this.alpha===t.alpha}},s=class s{};s.transparent=new r(0,0,0,0),s.aliceblue=new r(240,248,255,1),s.antiquewhite=new r(250,235,215,1),s.aqua=new r(0,255,255,1),s.aquamarine=new r(127,255,212,1),s.azure=new r(240,255,255,1),s.beige=new r(245,245,220,1),s.bisque=new r(255,228,196,1),s.black=new r(0,0,0,1),s.blanchedalmond=new r(255,235,205,1),s.blue=new r(0,0,255,1),s.blueviolet=new r(138,43,226,1),s.brown=new r(165,42,42,1),s.burlywood=new r(222,184,135,1),s.cadetblue=new r(95,158,160,1),s.chartreuse=new r(127,255,0,1),s.chocolate=new r(210,105,30,1),s.coral=new r(255,127,80,1),s.cornflowerblue=new r(100,149,237,1),s.cornsilk=new r(255,248,220,1),s.crimson=new r(220,20,60,1),s.cyan=new r(0,255,255,1),s.darkblue=new r(0,0,139,1),s.darkcyan=new r(0,139,139,1),s.darkgoldenrod=new r(184,134,11,1),s.darkgray=new r(169,169,169,1),s.darkgreen=new r(0,100,0,1),s.darkgrey=s.darkgray,s.darkkhaki=new r(189,183,107,1),s.darkmagenta=new r(139,0,139,1),s.darkolivegreen=new r(85,107,47,1),s.darkorange=new r(255,140,0,1),s.darkorchid=new r(153,50,204,1),s.darkred=new r(139,0,0,1),s.darksalmon=new r(233,150,122,1),s.darkseagreen=new r(143,188,143,1),s.darkslateblue=new r(72,61,139,1),s.darkslategray=new r(47,79,79,1),s.darkslategrey=s.darkslategray,s.darkturquoise=new r(0,206,209,1),s.darkviolet=new r(148,0,211,1),s.deeppink=new r(255,20,147,1),s.deepskyblue=new r(0,191,255,1),s.dimgray=new r(105,105,105,1),s.dimgrey=s.dimgray,s.dodgerblue=new r(30,144,255,1),s.firebrick=new r(178,34,34,1),s.floralwhite=new r(255,250,240,1),s.forestgreen=new r(34,139,34,1),s.fuchsia=new r(255,0,255,1),s.gainsboro=new r(220,220,220,1),s.ghostwhite=new r(248,248,255,1),s.gold=new r(255,215,0,1),s.goldenrod=new r(218,165,32,1),s.gray=new r(128,128,128,1),s.grey=s.gray,s.green=new r(0,128,0,1),s.greenyellow=new r(173,255,47,1),s.honeydew=new r(240,255,240,1),s.hotpink=new r(255,105,180,1),s.indianred=new r(205,92,92,1),s.indigo=new r(75,0,130,1),s.ivory=new r(255,255,240,1),s.khaki=new r(240,230,140,1),s.lavender=new r(230,230,250,1),s.lavenderblush=new r(255,240,245,1),s.lawngreen=new r(124,252,0,1),s.lemonchiffon=new r(255,250,205,1),s.lightblue=new r(173,216,230,1),s.lightcoral=new r(240,128,128,1),s.lightcyan=new r(224,255,255,1),s.lightgoldenrodyellow=new r(250,250,210,1),s.lightgray=new r(211,211,211,1),s.lightgreen=new r(144,238,144,1),s.lightgrey=s.lightgray,s.lightpink=new r(255,182,193,1),s.lightsalmon=new r(255,160,122,1),s.lightseagreen=new r(32,178,170,1),s.lightskyblue=new r(135,206,250,1),s.lightslategray=new r(119,136,153,1),s.lightslategrey=s.lightslategray,s.lightsteelblue=new r(176,196,222,1),s.lightyellow=new r(255,255,224,1),s.lime=new r(0,255,0,1),s.limegreen=new r(50,205,50,1),s.linen=new r(250,240,230,1),s.magenta=new r(255,0,255,1),s.maroon=new r(128,0,0,1),s.mediumaquamarine=new r(102,205,170,1),s.mediumblue=new r(0,0,205,1),s.mediumorchid=new r(186,85,211,1),s.mediumpurple=new r(147,112,219,1),s.mediumseagreen=new r(60,179,113,1),s.mediumslateblue=new r(123,104,238,1),s.mediumspringgreen=new r(0,250,154,1),s.mediumturquoise=new r(72,209,204,1),s.mediumvioletred=new r(199,21,133,1),s.midnightblue=new r(25,25,112,1),s.mintcream=new r(245,255,250,1),s.mistyrose=new r(255,228,225,1),s.moccasin=new r(255,228,181,1),s.navajowhite=new r(255,222,173,1),s.navy=new r(0,0,128,1),s.oldlace=new r(253,245,230,1),s.olive=new r(128,128,0,1),s.olivedrab=new r(107,142,35,1),s.orange=new r(255,165,0,1),s.orangered=new r(255,69,0,1),s.orchid=new r(218,112,214,1),s.palegoldenrod=new r(238,232,170,1),s.palegreen=new r(152,251,152,1),s.paleturquoise=new r(175,238,238,1),s.palevioletred=new r(219,112,147,1),s.papayawhip=new r(255,239,213,1),s.peachpuff=new r(255,218,185,1),s.peru=new r(205,133,63,1),s.pink=new r(255,192,203,1),s.plum=new r(221,160,221,1),s.powderblue=new r(176,224,230,1),s.purple=new r(128,0,128,1),s.red=new r(255,0,0,1),s.rosybrown=new r(188,143,143,1),s.royalblue=new r(65,105,225,1),s.saddlebrown=new r(139,69,19,1),s.salmon=new r(250,128,114,1),s.sandybrown=new r(244,164,96,1),s.seagreen=new r(46,139,87,1),s.seashell=new r(255,245,238,1),s.sienna=new r(160,82,45,1),s.silver=new r(192,192,192,1),s.skyblue=new r(135,206,235,1),s.slateblue=new r(106,90,205,1),s.slategray=new r(112,128,144,1),s.slategrey=s.slategray,s.snow=new r(255,250,250,1),s.springgreen=new r(0,255,127,1),s.steelblue=new r(70,130,180,1),s.tan=new r(210,180,140,1),s.teal=new r(0,128,128,1),s.thistle=new r(216,191,216,1),s.tomato=new r(255,99,71,1),s.turquoise=new r(64,224,208,1),s.violet=new r(238,130,238,1),s.wheat=new r(245,222,179,1),s.white=new r(255,255,255,1),s.whitesmoke=new r(245,245,245,1),s.yellow=new r(255,255,0,1),s.yellowgreen=new r(154,205,50,1);var kt=s,P=class o{constructor(t){this.hsva=new Q(0,1,1,1),t&&this.stringToColor(t)}static from(t){return typeof t=="string"?new o(t):t instanceof o?t.clone():t instanceof r?new o().setRgba(t.red,t.green,t.blue,t.alpha):t instanceof Q?new o().setHsva(t.hue,t.saturation,t.value,t.alpha):t instanceof N?new o().setHsla(t.hue,t.saturation,t.lightness,t.alpha):null}clone(){return o.from(this.getRgba())}setFromString(t){return this.stringToColor(t)}setHsva(t=null,a=100,n=100,e=1){return t!=null&&(this.hsva.hue=t),a!=null&&(this.hsva.saturation=a),n!=null&&(this.hsva.value=n),e!=null&&(e=e>1?1:e<0?0:e,this.hsva.alpha=e),this}setRgba(t=null,a=null,n=null,e=1){return e!=null&&(e=e>1?1:e<0?0:e),this.hsva=this.rgbaToHsva(new r(t,a,n,e)),this}setHsla(t,a,n,e=1){e!=null&&(e=e>1?1:e<0?0:e);let i=new N(t,a,n,e);return this.hsva=this.hslaToHsva(i),this}toHexString(t=!1){let a=this.getRgba(),n="#"+(1<<24|a.getRed()<<16|a.getGreen()<<8|a.getBlue()).toString(16).substring(1);return t&&(n+=(256|Math.round(a.alpha*255)).toString(16).substring(1)),n.toUpperCase()}toRgbaString(){return this.getRgba().toString()}toRgbString(){return this.getRgba().toString(!1)}toHslaString(){return this.getHsla().toString()}toHslString(){return this.getHsla().toString(!1)}toHsvaString(){return this.getHsva().toString()}toHsvString(){return this.getHsva().toString(!1)}toCmykString(){return this.getCmyk().toString()}getHsva(){return new Q(this.hsva.hue,this.hsva.saturation,this.hsva.value,this.hsva.alpha)}getRgba(){return this.hsvaToRgba(this.getHsva())}getHsla(){return this.rgbaToHsla(this.getRgba())}getCmyk(){return this.rgbaToCmyk(this.getRgba())}equal(t){return this.hsva.equal(t.getHsva())}hsvaToHsla(t){let a=t.hue,n=t.saturation/100,e=t.value/100,i=(2-n)*t.value/2,c=n*e/(i<=1?i:2-i)||0;return new N(a,i*100,c*100,t.alpha)}hslaToHsva(t){let a=t.hue,n=t.lightness/100*2,e=t.saturation/100*(n<=1?n:2-n),i=(n+e)/2,c=2*e/(n+e)||0;return new Q(a,c,i,t.alpha)}rgbaToHsva(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=t.alpha,c=Math.max(a,n,e),l=Math.min(a,n,e),h=c-l,u=0,f=c===0?0:h/c,A=c;if(c!==l){switch(c){case a:u=(n-e)/h+(n.5?A/(2-c-l):A/(c+l),c){case a:h=(n-e)/A+(n1&&(n-=1),n<1/6?t+(a-t)*6*n:n<1/2?a:n<2/3?t+(a-t)*(2/3-n)*6:t}cmykToRgba(t){let a=t.black/100,n=t.cyan/100,e=t.magenta/100,i=t.yellow/100,c=Math.min(1,(1-n)*(1-a)),l=Math.min(1,(1-e)*(1-a)),h=Math.min(1,(1-i)*(1-a));return c=c*255,l=l*255,h=h*255,new r(c,l,h,1)}rgbaToCmyk(t){let a=t.red/255,n=t.green/255,e=t.blue/255,i=1-a,c=1-n,l=1-e,h=Math.min(i,c,l);return h===1?new st(0,0,0,100):(i=(i-h)/(1-h),c=(c-h)/(1-h),l=(l-h)/(1-h),h=h*100,i=i*100,c=c*100,l=l*100,new st(i,c,l,h))}roundNumber(t){return Math.round(t*100)/100}stringToColor(t){let a=t.replace(/ /g,"").toLowerCase(),n=kt[a]||null;if(a[0]==="#"){let c=a.substr(1),l=c.length,h=1,u=[];if(l===3)u=c.split("").map(f=>f+f);else if(l===6)u=c.match(/.{2}/g);else if(l===8){let f=c.substr(-2);c=c.substr(0,l-2),h=this.roundNumber(parseInt(f||"FF",16)/255),u=c.match(/.{2}/g)}u.length===3&&(n=new r(parseInt(u[0],16),parseInt(u[1],16),parseInt(u[2],16),h))}let e=a.indexOf("("),i=a.indexOf(")");if(e!==-1&&i+1===a.length){let c=a.substr(0,e),l=a.substr(e+1,i-(e+1)).split(","),h=1;switch(c){case"rgba":h=parseFloat(l.pop());case"rgb":n=new r(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);break;case"hsla":h=parseFloat(l.pop());case"hsl":let u=new N(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),h);n=this.hslaToRgba(u);break;case"cmyk":let f=new st(parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10),parseInt(l[3],10));n=this.cmykToRgba(f);break}}return n&&(this.hsva=this.rgbaToHsva(n)),this}},qt=(()=>{let t=class t{constructor(){this.subscriptions=[],this.window={pageXOffset:0,pageYOffset:0},this.mouseup=new at,this.document=yt(mt),this.elementRef=yt(L),this.window=document.defaultView,this.requestAnimationFrame=this.getRequestAnimationFrame(),this.addEventListeners()}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"touchstart",{passive:!0,capture:!0}),S(this.elementRef.nativeElement,"mousedown",{capture:!0})).subscribe(n=>this.onEventChange(n)))}onEventChange(n){this.calculate(n),H(S(this.document,"mouseup",{capture:!0}),S(this.document,"touchend",{capture:!0})).pipe(ct(this.mouseup)).subscribe(()=>this.mouseup.next()),H(S(this.document,"mousemove",{capture:!0}),S(this.document,"touchmove",{passive:!0,capture:!0})).pipe(ct(this.mouseup)).subscribe(e=>this.calculate(e))}calculateCoordinates(n){let{width:e,height:i,top:c,left:l}=this.elementRef.nativeElement.getBoundingClientRect(),h=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,u=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,f=Math.max(0,Math.min(h-(l+this.window.pageXOffset),e)),A=Math.max(0,Math.min(u-(c+this.window.pageYOffset),i));this.movePointer({x:f,y:A,height:i,width:e})}calculate(n){if(n.stopPropagation(),n.type.includes("touch")||n.preventDefault(),!this.requestAnimationFrame)return this.calculateCoordinates(n);this.requestAnimationFrame.call(this.window,()=>this.calculateCoordinates(n))}getRequestAnimationFrame(){return this.window.requestAnimationFrame||this.window.webkitRequestAnimationFrame||this.window.mozRequestAnimationFrame||this.window.oRequestAnimationFrame||this.window.msRequestAnimationFrame}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t});let o=t;return o})(),Ve=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.saturation,e.value),this.updateBackgroundColor()})}movePointer({x:n,y:e,height:i,width:c}){let l=n*100/c,h=-(e*100/i)+100;l>10&&(h=h<1?1:h),this.changePointerPosition(l,h);let u=this.color().getHsva(),f=new P().setHsva(u.hue,l,h,u.alpha);this.color.set(f)}updateBackgroundColor(){let n=null;if(this.color()){let e=this.color().getHsva();n=new P().setHsva(e.hue,100,100).toRgbString()}this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",n)}changePointerPosition(n,e){this.renderer.setStyle(this.pointer.nativeElement,"top",`${100-e}%`),this.renderer.setStyle(this.pointer.nativeElement,"left",`${n}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["saturation-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:["[_nghost-%COMP%], [_nghost-%COMP%] *{padding:0;margin:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}","[_nghost-%COMP%]{display:block;position:relative;overflow:hidden;height:50px;background-size:100% 100%;background-image:url(data:image/png;base64,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);touch-action:none}.pointer[_ngcontent-%COMP%]{position:absolute;top:15%;left:90%;width:12px;height:12px;border-radius:50%;border:1px solid #fff;margin:-6px 0 0 -6px}"],changeDetection:0});let o=t;return o})(),Oe=new Dt("COLOR_PICKER_CONFIG",{providedIn:"root",factory:()=>new Et}),Et=(()=>{let t=class t{constructor(){this.indicatorTitle="Copy color to clipboard",this.presetsTitle="{0}. Long-click to show alternate shades."}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=It({token:t,factory:function(e){let i=null;return e?i=new(e||t):i=Kt(Oe),i},providedIn:"root"});let o=t;return o})(),ke=(()=>{let t=class t{constructor(n,e,i,c){this.pickerConfig=n,this.renderer=e,this.elementRef=i,this.document=c,this.color=C.required(),this.colorType=C("rgba"),this.subscriptions=[],this.renderTitle(),J(()=>{this.renderBackgroundColor()})}ngOnInit(){this.subscriptions.push(S(this.elementRef.nativeElement,"click").subscribe(()=>this.onClick()))}renderTitle(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.pickerConfig?.indicatorTitle||"")}renderBackgroundColor(){this.backgroundColorEl&&this.renderer.setStyle(this.backgroundColorEl.nativeElement,"backgroundColor",this.color().toRgbaString())}onClick(){let n=this.renderer.createElement("input");switch(this.renderer.setStyle(n,"position","absolute"),this.renderer.setStyle(n,"top","-100%"),this.renderer.setStyle(n,"left","-100%"),this.colorType()){case"hsla":n.value=this.color().toHslaString();break;case"hex":n.value=this.color().toHexString(this.color().getRgba().alpha<1);break;default:n.value=this.color().toRgbaString()}this.renderer.appendChild(this.elementRef.nativeElement,n),n.select(),this.document.execCommand("copy"),this.renderer.removeChild(this.elementRef.nativeElement,n)}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(U),M(L),M(mt))},t.\u0275cmp=_({type:t,selectors:[["indicator-component"]],viewQuery:function(e,i){if(e&1&&Z(ee,5),e&2){let c;j(c=z())&&(i.backgroundColorEl=c.first)}},inputs:{color:[1,"color"],colorType:[1,"colorType"]},standalone:!0,features:[q],decls:5,vars:0,consts:[["backgroundColorEl",""],["viewBox","0 0 48 48"],["d","M0 0h48v48h-48z","fill","none"],["d","M32 2h-24c-2.21 0-4 1.79-4 4v28h4v-28h24v-4zm6 8h-22c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h22c2.21 0 4-1.79 4-4v-28c0-2.21-1.79-4-4-4zm0 32h-22v-28h22v28z"]],template:function(e,i){e&1&&(d(0,"div",null,0),Lt(),d(2,"svg",1),G(3,"path",2)(4,"path",3),p()())},styles:[F,'@charset "UTF-8";[_nghost-%COMP%]{display:block;cursor:pointer;text-align:center;border:1px solid #e3e3e3;overflow:hidden;position:relative;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC) repeat}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1}[_nghost-%COMP%]:hover:after{display:block;content:"\\a0";position:absolute;top:0;left:0;height:100%;width:100%;background:#000;opacity:.2;z-index:2}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{transition:background-color 2s ease-in-out;opacity:0;fill:#fff;height:46%;vertical-align:-20%}[_nghost-%COMP%]:hover svg[_ngcontent-%COMP%]{opacity:1}'],changeDetection:0});let o=t;return o})(),Se=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=W.required(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.hue)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i*359:n/c*359;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(l,h.saturation,h.value,h.alpha);this.color.set(u)}changePointerPosition(n){let e=n/360*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["hue-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{color:"colorChange"},standalone:!0,features:[lt,q],decls:2,vars:0,consts:[["pointer",""],[1,"pointer"]],template:function(e,i){e&1&&G(0,"div",1,0)},styles:[F,"[_nghost-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC);background-size:100% 100%;border-radius:2px;display:block;height:12px;position:relative;touch-action:none}[vertical][_nghost-%COMP%]{background-image:url(data:image/png;base64,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);width:12px;height:100px}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),_e=(()=>{let t=class t extends qt{constructor(n){super(),this.renderer=n,this.color=C.required(),this.colorChange=X(),this.isVertical=C(!1,{alias:"vertical",transform:R}),J(()=>{let e=this.color().getHsva();this.changePointerPosition(e.alpha)})}movePointer({x:n,y:e,height:i,width:c}){let l=this.isVertical()?e/i:n/c;this.changePointerPosition(l);let h=this.color().getHsva(),u=new P().setHsva(h.hue,h.saturation,h.value,l);this.colorChange.emit(u)}changePointerPosition(n){let e=n*100,i=this.isVertical()?"top":"left";this.renderer.setStyle(this.pointer.nativeElement,i,`${e}%`)}get gradient(){let n=this.color().getRgba();return`linear-gradient(to ${this.isVertical()?"bottom":"right"}, rgba(${n.red}, ${n.green}, ${n.blue}, 0) 0%, rgb(${n.red}, ${n.green}, ${n.blue}) 100%)`}};t.\u0275fac=function(e){return new(e||t)(M(U))},t.\u0275cmp=_({type:t,selectors:[["alpha-component"]],viewQuery:function(e,i){if(e&1&&Z(St,7),e&2){let c;j(c=z())&&(i.pointer=c.first)}},inputs:{color:[1,"color"],isVertical:[1,"vertical","isVertical"]},outputs:{colorChange:"colorChange"},standalone:!0,features:[lt,q],decls:3,vars:2,consts:[["pointer",""],[1,"pointer"],[1,"gradient-color"]],template:function(e,i){e&1&&G(0,"div",1,0)(2,"div",2),e&2&&(g(2),T("background",i.gradient))},styles:[F,"[_nghost-%COMP%]{display:block;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==);background-position:left center;height:12px;border-radius:2px;position:relative}[vertical][_nghost-%COMP%]{width:12px;height:100px;background-position:center 0}.gradient-color[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;height:100%;z-index:1}.pointer[_ngcontent-%COMP%]{background:#fff;height:14px;width:14px;top:-1px;left:0;position:absolute;border-radius:50%;cursor:pointer;margin:0 0 0 -7px;z-index:2}[vertical][_nghost-%COMP%] .pointer[_ngcontent-%COMP%]{left:-1px;margin:-7px 0 0}"],changeDetection:0});let o=t;return o})(),Tt=(()=>{let t=class t{constructor(){this.min=C(0,{transform:ft}),this.max=C(255,{transform:ft}),this.inputChange=X()}inputChanges(n){let i=(n.target||n.srcElement).value,c=parseFloat(i);!isNaN(c)&&c>=this.min()&&c<=this.max()&&this.inputChange.emit(c)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=xt({type:t,selectors:[["","inputChange",""]],hostBindings:function(e,i){e&1&&y("input",function(l){return i.inputChanges(l)})},inputs:{min:[1,"min"],max:[1,"max"]},outputs:{inputChange:"inputChange"},standalone:!0});let o=t;return o})(),qe=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getRgba()}onInputChange(n,e){let i=this.value,c=e==="R"?n:i.red,l=e==="G"?n:i.green,h=e==="B"?n:i.blue,u=e==="A"?n:i.alpha,f=new P().setRgba(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["rgba-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","255",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"R")}),p(),w(2,ne,2,0,"span"),p(),d(3,"div",0)(4,"input",1),y("inputChange",function(l){return i.onInputChange(l,"G")}),p(),w(5,ie,2,0,"span"),p(),d(6,"div",0)(7,"input",1),y("inputChange",function(l){return i.onInputChange(l,"B")}),p(),w(8,oe,2,0,"span"),p(),w(9,re,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getRed().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",i.value==null?null:i.value.getGreen().toString()),g(),v(i.labelVisible()?5:-1),g(2),b("value",i.value==null?null:i.value.getBlue().toString()),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,"[_nghost-%COMP%]{display:table;width:100%;text-align:center;color:#b4b4b4;font-size:11px}.column[_ngcontent-%COMP%]{display:table-cell;padding:0 2px}input[_ngcontent-%COMP%]{width:100%;border:1px solid rgb(218,218,218);color:#272727;text-align:center;font-size:12px;-webkit-appearance:none;border-radius:0;margin:0 0 6px;height:26px;outline:none}"],changeDetection:0});let o=t;return o})(),Ee=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.isAlphaVisible=C(!0,{alias:"alpha",transform:R})}get value(){return this.color()?.getHsla()}onInputChange(n,e){let i=this.value,c=e==="H"?n:i.hue,l=e==="S"?n:i.saturation,h=e==="L"?n:i.lightness,u=e==="A"?n:i.alpha,f=new P().setHsla(c,l,h,u);this.color.set(f)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hsla-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],isAlphaVisible:[1,"alpha","isAlphaVisible"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:10,vars:7,consts:[[1,"column"],["type","text","pattern","[0-9]*","min","0","max","360",3,"inputChange","value"],["type","text","pattern","[0-9]*","min","0","max","100",3,"inputChange","value"],["type","text","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1",3,"inputChange","value"]],template:function(e,i){e&1&&(d(0,"div",0)(1,"input",1),y("inputChange",function(l){return i.onInputChange(l,"H")}),p(),w(2,ae,2,0,"span"),p(),d(3,"div",0)(4,"input",2),y("inputChange",function(l){return i.onInputChange(l,"S")}),p(),w(5,ce,2,0,"span"),p(),d(6,"div",0)(7,"input",2),y("inputChange",function(l){return i.onInputChange(l,"L")}),p(),w(8,le,2,0,"span"),p(),w(9,pe,3,2,"div",0)),e&2&&(g(),b("value",i.value==null?null:i.value.getHue().toString()),g(),v(i.labelVisible()?2:-1),g(2),b("value",(i.value==null?null:i.value.getSaturation())+"%"),g(),v(i.labelVisible()?5:-1),g(2),b("value",(i.value==null?null:i.value.getLightness())+"%"),g(),v(i.labelVisible()?8:-1),g(),v(i.isAlphaVisible()?9:-1))},dependencies:[Tt],styles:[F,Ut],changeDetection:0});let o=t;return o})(),Be=(()=>{let t=class t{constructor(){this.color=W.required(),this.labelVisible=C(!1,{alias:"label",transform:R}),this.prefixValue=C("",{alias:"prefix"})}get value(){return this.prefixValue()+(this.color()?this.color().toHexString(this.color().getRgba().alpha<1).replace("#",""):"")}onInputChange(n,e){let i=e.toLowerCase().replace("#","");if(((n.keyCode===13||n.key.toLowerCase()==="enter")&&i.length===3||i.length===6||i.length===8)&&parseInt(i,16).toString(16).padStart(i.length,"0")===i&&this.value!==i){let h=new P(`#${i}`);this.color.set(h)}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["hex-input-component"]],inputs:{color:[1,"color"],labelVisible:[1,"label","labelVisible"],prefixValue:[1,"prefix","prefixValue"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:4,vars:2,consts:[["elRef",""],[1,"column"],["type","text",3,"keyup","value"]],template:function(e,i){if(e&1){let c=k();d(0,"div",1)(1,"input",2,0),y("keyup",function(h){V(c);let u=Yt(2);return O(i.onInputChange(h,u.value))}),p(),w(3,ue,2,0,"span"),p()}e&2&&(g(),b("value",i.value),g(2),v(i.labelVisible()?3:-1))},styles:[F,Ut],changeDetection:0});let o=t;return o})(),Fe=Ot("opacityAnimation",[Xt("true",B({opacity:1})),tt("void => *",[B({opacity:0}),$(".08s ease-in")])]),Re=Ot("listAnimation",[tt("* => up",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => right",[it(":enter",[B({opacity:0,height:0}),ot(-10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => down",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})]),tt("* => left",[it(":enter",[B({opacity:0,height:0}),ot(10,[$(".08s",B({opacity:1,height:"*"}))])],{optional:!0})])]),Jt=(()=>{let t=class t{constructor(n,e,i){this.pickerConfig=n,this.elementRef=e,this.renderer=i,this.activeColor=C.required(),this.color=C.required(),this.showDepthText=C(!1,{alias:"show-depth-title",transform:R}),this.selectionChange=X(),this.longPress=X(),this.mouseup=new at,this.subscriptions=[],this.addEventListeners(),J(()=>{this.updateBackground(),this.updateTitleAttr()})}ngOnDestroy(){this.mouseup.next(),this.mouseup.complete(),this.removeEventListeners()}get className(){return this.activeColor()?this.color().toRgbaString()===this.activeColor().toRgbaString():!1}updateBackground(){this.renderer.setStyle(this.elementRef.nativeElement,"backgroundColor",this.color().toRgbaString())}updateTitleAttr(){this.renderer.setAttribute(this.elementRef.nativeElement,"title",this.getTitle())}getTitle(){let n=this.color()?this.color().toHexString():"";return this.showDepthText()?(this.pickerConfig?.presetsTitle||"").replace(/\{\s*(.+?)\s*\}/g,(e,i)=>n):n}addEventListeners(){this.subscriptions.push(H(S(this.elementRef.nativeElement,"mouseup"),S(this.elementRef.nativeElement,"touchend")).subscribe(()=>this.onTouchEnd())),this.subscriptions.push(H(S(this.elementRef.nativeElement,"mousedown"),S(this.elementRef.nativeElement,"touchstart",{passive:!0})).subscribe(n=>this.onTouch(n)))}removeEventListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}onTouch(n){Bt(n).pipe(Ft(e=>e.timeStamp||new Date().getTime()),Rt(350),ct(this.mouseup)).subscribe(()=>this.longPress.emit(!0)),this.selectionChange.emit(this.color())}onTouchEnd(){this.mouseup.next()}};t.\u0275fac=function(e){return new(e||t)(M(Et),M(L),M(U))},t.\u0275cmp=_({type:t,selectors:[["color-preset"]],hostVars:2,hostBindings:function(e,i){e&2&&ht("selected",i.className)},inputs:{activeColor:[1,"activeColor"],color:[1,"color"],showDepthText:[1,"show-depth-title","showDepthText"]},outputs:{selectionChange:"selectionChange",longPress:"longPress"},standalone:!0,features:[q],decls:0,vars:0,template:function(e,i){},styles:[F,"[_nghost-%COMP%]{display:inline-block;height:12px;width:12px;position:relative;cursor:pointer;transition:all .2s}"],changeDetection:0});let o=t;return o})(),We=(()=>{let t=class t{transform(n,e=!0){return e?n.slice().reverse():n}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"reverse",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ie=(()=>{let t=class t{constructor(n,e){this.document=n,this.cdr=e,this.list=C.required(),this.activeColor=C.required(),this.direction=C("up"),this.selectionChange=X(),this.showChildren=!1,this.subscriptions=[]}ngOnDestroy(){this.removeListeners(),this.cdr.detach()}get className(){return`direction-${this.direction()}`}onSelectionChange(n){this.selectionChange.emit(n)}onLongPress(){this.showChildren=!0,this.listenDocumentEvents()}removeListeners(){this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}listenDocumentEvents(){this.subscriptions.push(H(S(this.document,"mousedown"),S(this.document,"touchstart",{passive:!0})).subscribe(()=>this.closeList()))}closeList(){this.showChildren&&(this.showChildren=!1,this.cdr.markForCheck(),this.removeListeners())}};t.\u0275fac=function(e){return new(e||t)(M(mt),M(Vt))},t.\u0275cmp=_({type:t,selectors:[["color-preset-sublist"]],hostVars:1,hostBindings:function(e,i){e&2&&jt("className",i.className)},inputs:{list:[1,"list"],activeColor:[1,"activeColor"],direction:[1,"direction"]},outputs:{selectionChange:"selectionChange"},standalone:!0,features:[q],decls:4,vars:8,consts:[[3,"longPress","selectionChange","show-depth-title","color","activeColor"],[1,"reflection"],[1,"sublist"],[3,"color","activeColor"],[3,"selectionChange","color","activeColor"]],template:function(e,i){e&1&&(d(0,"color-preset",0),y("longPress",function(){return i.onLongPress()})("selectionChange",function(l){return i.onSelectionChange(l)}),p(),G(1,"div",1)(2,"div",1),w(3,ge,4,5,"div",2)),e&2&&(b("show-depth-title",i.list().length>1)("color",i.list()[0])("activeColor",i.activeColor()),g(),T("background-color",i.list()[0].toRgbaString()),g(),T("background-color",i.list()[0].toRgbaString()),g(),v(i.showChildren?3:-1))},dependencies:[Jt,We],styles:[F,"[_nghost-%COMP%]{position:relative;display:inline-block}color-preset[_ngcontent-%COMP%]{position:relative;z-index:3}.reflection[_ngcontent-%COMP%]{display:none;position:absolute;height:100%;width:100%;z-index:2;right:-2px;top:-2px;opacity:.5}.reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{opacity:.2;right:-4px;top:-4px;z-index:1}color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%], color-preset[_ngcontent-%COMP%]:hover + .reflection[_ngcontent-%COMP%] + .reflection[_ngcontent-%COMP%]{display:block}.sublist[_ngcontent-%COMP%]{position:absolute;bottom:-8px;left:-8px;right:-8px;background:#fff;border-radius:2px;box-shadow:#0000004d 0 0 2px,#0000004d 0 2px 4px;padding:8px 5px;text-align:center;z-index:1000}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]{margin:8px 0 0}.sublist[_ngcontent-%COMP%] color-preset[_ngcontent-%COMP%]:first-child{margin:0}.direction-down[_nghost-%COMP%] .sublist[_ngcontent-%COMP%]{bottom:auto;top:-8px}"],data:{animation:[Fe,Re]},changeDetection:0});let o=t;return o})(),De=(()=>{let t=class t{transform(n,e){return n.reduce((i,c,l)=>l%e?i:i.concat([n.slice(l,l+e)]),[])}};t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=At({name:"chunks",type:t,pure:!0,standalone:!0});let o=t;return o})(),Ke=(()=>{let t=class t{constructor(){this.columns=C(8,{transform:ft}),this.colorPresets=C.required(),this.color=W.required(),this.direction=C("up")}onSelectionChange(n){let e=n.getRgba(),i=new P().setRgba(e.red,e.green,e.blue,e.alpha);this.color.set(i)}isList(n){return Array.isArray(n)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["color-presets-component"]],inputs:{columns:[1,"columns"],colorPresets:[1,"colorPresets"],color:[1,"color"],direction:[1,"direction"]},outputs:{color:"colorChange"},standalone:!0,features:[q],decls:3,vars:3,consts:[[1,"presets-row",3,"ngClass"],[3,"list","direction","activeColor","ngClass"],[3,"ngClass","color","activeColor"],[3,"selectionChange","list","direction","activeColor","ngClass"],[3,"selectionChange","ngClass","color","activeColor"]],template:function(e,i){e&1&&(ut(0,be,3,4,"div",0,pt),Y(2,"chunks")),e&2&&dt(Mt(2,0,i.colorPresets(),i.columns()))},dependencies:[Jt,Ie,Nt,De],styles:[F,"[_nghost-%COMP%]{display:block;font-size:0}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .presets-row[_ngcontent-%COMP%]:first-child{padding:0}color-preset-sublist[_ngcontent-%COMP%]:first-child, color-preset[_ngcontent-%COMP%]:first-child{margin:0}"],changeDetection:0});let o=t;return o})(),x=function(o){return o.hex="hex",o.hexa="hexa",o.rgba="rgba",o.rgb="rgb",o.hsla="hsla",o.hsl="hsl",o.cmyk="cmyk",o}(x||{}),rt=class{constructor(){this.modelValue=null,this.initValue=null,this.valueChanged=new at,this.presetsVisibilityChanges=new vt(!0),this.initType=null,this.alphaChannelVisibilityChanges=new vt(!0),this.valueChanges=this.valueChanged.asObservable().pipe(Wt((a,n)=>a.toRgbaString()==n.toRgbaString())),this.colorPresets=[];let t=P.from(new r(255,0,0,1));this.setValue(t)}setValueFrom(t){let a=P.from(t);return this.initValue||(this.initValue=P.from(t)),typeof t=="string"&&!this.initType&&(this.initType=this.finOutInputType(t)),this.setValue(a),this}get value(){return this.modelValue}set value(t){this.setValue(t)}reset(){let t=this.initValue?this.initValue.clone():P.from(new r(255,0,0,1));return this.setValue(t),this}isAlphaChannelEnabled(){return this.alphaChannelVisibilityChanges.value}showAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!0),this}hideAlphaChannel(){return this.alphaChannelVisibilityChanges.next(!1),this}getColorType(t){return this.finOutInputType(t)}setColorPresets(t){return this.colorPresets=this.setPresets(t),this}get presets(){return this.colorPresets}hasPresets(){return this.colorPresets.length>0}isPresetVisible(){return this.presetsVisibilityChanges.value}showPresets(){return this.presetsVisibilityChanges.next(!0),this}hidePresets(){return this.presetsVisibilityChanges.next(!1),this}setValue(t){return this.modelValue=t,this.valueChanged.next(t),this}finOutInputType(t){let a=t.replace(/ /g,"").toLowerCase();if(a[0]==="#")return a.length>7?x.hexa:x.hex;let n=a.indexOf("(");switch(a.substr(0,n)){case x.rgba:return x.rgba;case x.rgb:return x.rgb;case x.hsla:return x.hsla;case x.hsl:return x.hsl;case x.cmyk:return x.cmyk}return null}setPresets(t){let a=[];for(let n of t)Array.isArray(n)?a.push(this.setPresets(n)):a.push(new P(n));return a}};function Ct(o,t){switch(t){case x.hex:return o.toHexString();case x.hexa:return o.toHexString(!0);case x.rgb:return o.toRgbString();case x.rgba:return o.toRgbaString();case x.hsl:return o.toHslString();case x.hsla:return o.toHslaString();default:return o.toRgbaString()}}function He(o,t){return o instanceof P&&t instanceof P?o.equal(t):o===t}var $t=(()=>{let t=class t{constructor(n){this.cdr=n,this.selectedPresentation=0,this.presentations=["rgba","hsla","hex"],this.color=W(),this.control=C(new rt),this.subscriptions=[]}ngOnInit(){this.color()&&this.control().setValueFrom(this.color()),this.control().hasPresets()||this.control().setColorPresets([["#f44336","#ffebee","#ffcdd2","#EF9A9A","#E57373","#EF5350","#F44336","#E53935","#D32F2F","#C62828","#B71C1C"],["#E91E63","#fce4ec","#f8bbd0","#f48fb1","#f06292","#ec407a","#e91e63","#d81b60","#c2185b","#ad1457","#880e4f"],["#9C27B0","#F3e5f5","#e1bee7","#ce93d8","#ba68c8","#ab47bc","#9c27b0","#8e24aa","#7b1fa2","#6a1b9a","#4a148c"],["#673AB7","#ede7f6","#d1c4e9","#b39ddb","#9575cd","#7e57c2","#673ab7","#5e35b1","#512da8","#4527a0","#311b92"],["#3F51B5","#e8eaf6","#c5cae9","#9fa8da","#7986cb","#5c6bc0","#3f51b5","#3949ab","#303f9f","#283593","#1a237e"],["#2196F3","#e3f2fd","#bbdefb","#90caf9","#64b5f6","#42a5f5","#2196f3","#1e88e5","#1976d2","#1565c0","#0D47a1"],["#03A9F4","#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"],["#00BCD4","#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"],["#009688","#E0F2f1","#b2dfdb","#80cbc4","#4db6ac","#26a69a","#009688","#00897b","#00796b","#00695c","#004d40"],["#4CAF50","#e8f5e9","#c8e6c9","#a5d6a7","#81c784","#66bb6a","#4caf50","#43a047","#388e3c","#2e7d32","#1b5e20"],["#8BC34A","#f1f8e9","#dcedc8","#c5e1a5","#aed581","#9ccc65","#8bc34a","#7cb342","#689f38","#558b2f","#33691e"],["#cddc39","#f9fbe7","#f0f4c3","#e6ee9c","#dce775","#d4e157","#c0dc39","#c0ca33","#afb42b","#9e9d24","#827717"],["#ffeb3b","#fffde7","#fff9c4","#fff59d","#fff176","#ffee58","#ffeb3b","#fdd835","#fbc02d","#f9a825","#f57f17"],["#ffc107","#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"],["#ff9800","#fff3e0","#ffe0b2","#ffcc80","#ffb74d","#ffa726","#ff9800","#fb8c00","#f57c00","#ef6c00","#e65100"],["#ff5722","#fbe9e7","#ffccbc","#ffab91","#ff8a65","#ff7043","#ff5722","#f4511e","#e64a19","#d84315","#bf360c"],["#795548","#efebe9","#d7ccc8","#bcaaa4","#a1887f","#8d6e63","#795548","#6d4c41","#5d4037","#4e342e","#3e2723"],["#9e9e9e","#fafafa","#f5f5f5","#eee","#e0e0e0","#bdbdbd","#9e9e9e","#757575","#616161","#424242","#212121"],["#607d8b","#eceff1","#cfd8dc","#b0bec5","#90a4ae","#78909c","#60708b","#546e7a","#455a64","#37474f","#263238"]]),this.subscriptions.push(this.control().valueChanges.subscribe(n=>{this.color.set(Ct(n,this.control().initType)),this.cdr.detectChanges()}))}ngOnChanges(n){let e=this.color(),i=this.control();e&&i&&!He(Ct(i.value,i.initType),e)&&i.setValueFrom(e)}ngOnDestroy(){this.cdr.detach(),this.subscriptions.forEach(n=>n.unsubscribe()),this.subscriptions.length=0}changePresentation(){this.selectedPresentation=this.selectedPresentation===this.presentations.length-1?0:this.selectedPresentation+1}};t.\u0275fac=function(e){return new(e||t)(M(Vt))},t.\u0275cmp=_({type:t,selectors:[["chrome-picker"]],inputs:{color:[1,"color"],control:[1,"control"]},outputs:{color:"colorChange"},standalone:!0,features:[Ht,q],ngContentSelectors:ve,decls:20,vars:11,consts:[[3,"colorChange","color"],[1,"controls"],[1,"controls-row","hue-alpha"],[1,"column"],[3,"colorType","color"],[3,"color"],[1,"controls-row","presentation"],["label","",3,"alpha","color"],["label","","prefix","#",3,"color"],[1,"column","type-column"],[1,"type-btn",3,"click"],[3,"color","colorPresets"],["label","",3,"colorChange","alpha","color"],["label","","prefix","#",3,"colorChange","color"],[3,"colorChange","color","colorPresets"]],template:function(e,i){if(e&1&&(zt(we),Pt(0),d(1,"saturation-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),d(2,"div",1)(3,"div",2)(4,"div",3),G(5,"indicator-component",4),p(),d(6,"div",3)(7,"hue-component",0),K("colorChange",function(l){return D(i.control().value,l)||(i.control().value=l),l}),p(),w(8,ye,1,1,"alpha-component",5),Y(9,"async"),p()(),d(10,"div",6)(11,"div",3),w(12,xe,2,4,"rgba-input-component",7)(13,Ae,2,4,"hsla-input-component",7)(14,Pe,1,1,"hex-input-component",8),p(),d(15,"div",9)(16,"span",10),y("click",function(){return i.changePresentation()}),p()()()(),w(17,Me,1,2,"color-presets-component",11),Y(18,"async"),Pt(19,1)),e&2){let c;g(),I("color",i.control().value),g(4),b("colorType",i.presentations[i.selectedPresentation])("color",i.control().value),g(2),I("color",i.control().value),g(),v(nt(9,7,i.control().alphaChannelVisibilityChanges)?8:-1),g(4),v((c=i.presentations[i.selectedPresentation])==="rgba"?12:c==="hsla"?13:c==="hex"?14:-1),g(5),v(nt(18,9,i.control().presetsVisibilityChanges)?17:-1)}},dependencies:[Ve,ke,Se,_e,qe,Ee,Be,Ke,Qt],styles:[F,"[_nghost-%COMP%]{display:block;width:230px;border-radius:2px;background:#fff;box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .controls .pointer{box-shadow:#0000004d 0 0 2px,#0000004d 0 1px 4px}[_nghost-%COMP%] .reflection, [_nghost-%COMP%] color-preset{border-radius:2px}[_nghost-%COMP%] color-preset{box-shadow:inset #0000004d 0 0 2px}[_nghost-%COMP%] color-preset, [_nghost-%COMP%] color-preset-sublist{margin:0 0 0 12px}[_nghost-%COMP%] color-preset:first-child, [_nghost-%COMP%] color-preset-sublist:first-child{margin:0}[_nghost-%COMP%] .sublist color-preset:hover, [_nghost-%COMP%] .presets-row>color-preset:hover{transform:scale(1.18)}saturation-component[_ngcontent-%COMP%]{height:120px}.controls[_ngcontent-%COMP%]{padding:15px 15px 10px}.controls-row[_ngcontent-%COMP%]{display:table;width:100%}.column[_ngcontent-%COMP%]{display:table-cell;vertical-align:middle}.hue-alpha[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]:first-child{width:42px;padding:0 10px 0 0}indicator-component[_ngcontent-%COMP%]{height:32px;width:32px;border-radius:50%}alpha-component[_ngcontent-%COMP%]{margin-top:8px}color-presets-component[_ngcontent-%COMP%]{border-top:1px solid #d0d0d0;padding:12px}color-presets-component[_ngcontent-%COMP%] .presets-row{padding:12px 0 0}.type-btn[_ngcontent-%COMP%]{display:inline-block;height:20px;width:20px;background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==) no-repeat center;background-size:6px 12px}.type-btn[_ngcontent-%COMP%]:hover{background-color:#eee}.type-column[_ngcontent-%COMP%]{width:25px;text-align:right}.presentation[_ngcontent-%COMP%]{padding:12px 0 0}"],changeDetection:0});let o=t;return o})();var Le=["pickerComponent"];function Ge(o,t){if(o&1){let a=k();d(0,"button",3),y("click",function(e){V(a);let i=m(2);return O(i.applyClick(e))}),E(1,"Apply"),p()}}function Ze(o,t){if(o&1){let a=k();d(0,"chrome-picker",1),y("colorChange",function(){V(a);let e=m();return O(e.onColorChanged())}),w(1,Ge,2,0,"button",2),p()}if(o&2){let a=m();ht("top",a.isTop),b("control",a.colorControl),g(),v(a.isImmediate?-1:1)}}var vn=(()=>{let t=class t{constructor(n){this.el=n,this.isImmediate=!1,this.colorChange=new Gt,this.colorControl=new rt,this.isVisible=!1,this.isTop=!1,this.colorControl.hideAlphaChannel()}set color(n){this.colorControl.setValueFrom(n),this._color=this.colorControl.value}get background(){return this._color?this._color.toHexString():""}onWidowClick(n){n.composedPath().includes(this.el.nativeElement)||(this.isVisible=!1)}showColorPicker(n){if(!this.isVisible){let e=this.el.nativeElement.getBoundingClientRect();this.isTop=e.top+e.height+320>window.innerHeight&&e.top-320>0}this.isVisible=!0}applyClick(n){n.stopPropagation(),this._color=this.colorControl.value,this.triggerUpdate(),this.isVisible=!1}onColorChanged(){this.isImmediate&&this.triggerUpdate()}triggerUpdate(){this.colorChange.emit(Ct(this.colorControl.value,this.colorControl.initType))}};t.\u0275fac=function(e){return new(e||t)(M(L))},t.\u0275cmp=_({type:t,selectors:[["dsw-color-picker"]],viewQuery:function(e,i){if(e&1&&Z(Le,7),e&2){let c;j(c=z())&&(i.pickerComponent=c.first)}},hostVars:2,hostBindings:function(e,i){e&1&&y("mousedown",function(l){return i.onWidowClick(l)},!1,Zt)("click",function(l){return i.showColorPicker(l)}),e&2&&T("background-color",i.background)},inputs:{isImmediate:"isImmediate",color:"color"},outputs:{colorChange:"colorChange"},standalone:!0,features:[q],decls:1,vars:1,consts:[[3,"top","control"],[3,"colorChange","control"],["type","button",1,"btn","btn-primary"],["type","button",1,"btn","btn-primary",3,"click"]],template:function(e,i){e&1&&w(0,Ze,2,4,"chrome-picker",0),e&2&&v(i.isVisible?0:-1)},dependencies:[$t],styles:["[_nghost-%COMP%]{display:block;width:100%;height:32px;cursor:pointer;border:1px solid rgb(210,210,210)}chrome-picker[_ngcontent-%COMP%]{position:fixed;transform:translateY(32px);cursor:default;z-index:2}.btn-primary[_ngcontent-%COMP%]{width:100%;border-radius:0}.top[_ngcontent-%COMP%]{transform:translateY(-100%)}"],changeDetection:0});let o=t;return o})();export{vn as a}; diff --git a/dist/chunk-WEBWYYX4.js b/dist/chunk-WEBWYYX4.js deleted file mode 100644 index 0c1efff7..00000000 --- a/dist/chunk-WEBWYYX4.js +++ /dev/null @@ -1 +0,0 @@ -import{a as h}from"./chunk-SUAWKU6Z.js";import{Db as t,Eb as n,Fb as i,Nb as r,Xb as c,ab as p,cc as b,fa as g}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";var u=(()=>{let e=class e{constructor(l){this.sbs=l}ngOnInit(){}showThemeSettings(){this.sbs.showComponent({component:import("./chunk-VROH7INS.js")})}showAppSettings(){this.sbs.showComponent({component:import("./chunk-OCT5LZKR.js")})}showChartsSettings(){this.sbs.showComponent({component:import("./chunk-HKGXJZ6E.js")})}};e.\u0275fac=function(a){return new(a||e)(p(h))},e.\u0275cmp=g({type:e,selectors:[["dsw-menu-settings"]],standalone:!0,features:[b],decls:10,vars:0,consts:[[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/palette-icon.svg"],["src","assets/img/icons/top-records.svg"]],template:function(a,s){a&1&&(t(0,"ul")(1,"li",0),r("click",function(){return s.showAppSettings()}),i(2,"img",1),c(3," Application "),n(),t(4,"li",0),r("click",function(){return s.showThemeSettings()}),i(5,"img",2),c(6," Theme "),n(),t(7,"li",0),r("click",function(){return s.showChartsSettings()}),i(8,"img",3),c(9," Charts "),n()())},styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let o=e;return o})();export{u as MenuSettingsComponent}; diff --git a/dist/chunk-WZRR3GQK.js b/dist/chunk-WZRR3GQK.js new file mode 100644 index 00000000..1ba5e4ef --- /dev/null +++ b/dist/chunk-WZRR3GQK.js @@ -0,0 +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-GDT23CSW.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,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);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,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);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-JJF6JNEA.js b/dist/chunk-XEMLRN7T.js similarity index 82% rename from dist/chunk-JJF6JNEA.js rename to dist/chunk-XEMLRN7T.js index 76063afa..2cc0827c 100644 --- a/dist/chunk-JJF6JNEA.js +++ b/dist/chunk-XEMLRN7T.js @@ -1 +1 @@ -import{a as l}from"./chunk-LJL6JWG7.js";import"./chunk-DEPBX7UX.js";var i=class extends l{decodeBlock(s){let o=new DataView(s),r=[];for(let e=0;e{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-Y2BGUXQS.js b/dist/chunk-Y2BGUXQS.js deleted file mode 100644 index 2a8eb2f0..00000000 --- a/dist/chunk-Y2BGUXQS.js +++ /dev/null @@ -1 +0,0 @@ -import{a as E,c as P,d as S,e as I,j as T}from"./chunk-YBN4SQR6.js";import{$a as m,$b as O,Da as f,Db as d,Eb as s,Jb as h,Nb as u,Ob as x,W as b,Wb as y,Xb as F,_b as M,ac as k,bc as V,cc as B,fa as g,qa as c,ra as l,rb as v,tb as w,vb as _,yb as C}from"./chunk-ZKAUCJHV.js";function D(r,n){if(r&1){let A=h();d(0,"button",2),u("click",function(){c(A);let i=x();return l(i.onSelectButtonClick())}),F(1,"..."),s()}}var U=(()=>{let n=class n{constructor(){this.model="",this.type="text",this.required=!1,this.chooseButton=!1,this.choose=new f,this.onChange=e=>{},this.onTouched=()=>{}}get isInvalid(){return this.required&&!this.model}writeValue(e){this.model=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){}onSelectButtonClick(){this.choose.emit()}onModelChange(e){this.writeValue(e),this.onChange(e)}};n.\u0275fac=function(i){return new(i||n)},n.\u0275cmp=g({type:n,selectors:[["dsw-input"]],hostVars:4,hostBindings:function(i,t){i&2&&_("choose",t.chooseButton)("invalid",t.isInvalid)},inputs:{model:"model",type:"type",required:"required",chooseButton:"chooseButton"},outputs:{choose:"choose"},standalone:!0,features:[V([{provide:E,useExisting:b(()=>n),multi:!0}]),B],decls:3,vars:3,consts:[["inp",""],[3,"ngModelChange","keydown.enter","ngModel","type"],[3,"click"]],template:function(i,t){if(i&1){let a=h();d(0,"input",1,0),k("ngModelChange",function(o){return c(a),O(t.model,o)||(t.model=o),l(o)}),u("ngModelChange",function(o){return c(a),l(t.onModelChange(o))})("keydown.enter",function(){c(a);let o=y(1);return l(o.blur())}),s(),v(2,D,2,0,"button")}i&2&&(M("ngModel",t.model),w("type",t.type),m(2),C(t.chooseButton?2:-1))},dependencies:[T,P,S,I],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}.choose[_nghost-%COMP%] > input[_ngcontent-%COMP%]{width:calc(100% - var(--cl-input-height));border-radius:4px 0 0 4px}.invalid[_nghost-%COMP%] input[_ngcontent-%COMP%]{border-color:red}input[_ngcontent-%COMP%]{font-family:Oxygen;font-size:13px;border-radius:4px;height:var(--cl-input-height);text-overflow:ellipsis}button[_ngcontent-%COMP%]{position:absolute;top:0;right:0;width:var(--cl-input-height);height:var(--cl-input-height);padding:0;border:1px solid var(--cl-input-border);border-left:none;background-color:var(--cl-input-bg);cursor:pointer;font-family:Oxygen;color:var(--cl-input-text);font-size:16px;border-radius:0 4px 4px 0;transition:background-color .2s linear}button[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}button[_ngcontent-%COMP%]:active{transform:translateY(1px)}"]});let r=n;return r})();export{U as a}; diff --git a/dist/chunk-YBN4SQR6.js b/dist/chunk-YBN4SQR6.js deleted file mode 100644 index 24cae17a..00000000 --- a/dist/chunk-YBN4SQR6.js +++ /dev/null @@ -1 +0,0 @@ -import{a as $}from"./chunk-CKPIETEW.js";import{Ba as V,Bc as ne,Da as N,Gc as L,Nb as b,W as p,Y as O,_ as g,ab as l,bc as m,eb as D,f as Y,ga as x,ha as u,l as K,lb as f,pa as H,r as J,rc as ie,sb as ee,ua as v,vb as te,x as Q}from"./chunk-ZKAUCJHV.js";import{a as d,b as c}from"./chunk-DEPBX7UX.js";var fe=(()=>{let e=class e{constructor(i,r){this._renderer=i,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(i,r){this._renderer.setProperty(this._elementRef.nativeElement,i,r)}registerOnTouched(i){this.onTouched=i}registerOnChange(i){this.onChange=i}setDisabledState(i){this.setProperty("disabled",i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V))},e.\u0275dir=u({type:e});let t=e;return t})(),j=(()=>{let e=class e extends fe{};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,features:[f]});let t=e;return t})(),I=new g(""),Fe={provide:I,useExisting:p(()=>Ie),multi:!0},Ie=(()=>{let e=class e extends j{writeValue(i){this.setProperty("checked",i)}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.checked)})("blur",function(){return s.onTouched()})},features:[m([Fe]),f]});let t=e;return t})(),Se={provide:I,useExisting:p(()=>pe),multi:!0};function Oe(){let t=$()?$().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var xe=new g(""),pe=(()=>{let e=class e extends fe{constructor(i,r,s){super(i,r),this._compositionMode=s,this._composing=!1,this._compositionMode==null&&(this._compositionMode=!Oe())}writeValue(i){let r=i??"";this.setProperty("value",r)}_handleInput(i){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(i)}_compositionStart(){this._composing=!0}_compositionEnd(i){this._composing=!1,this._compositionMode&&this.onChange(i)}};e.\u0275fac=function(r){return new(r||e)(l(D),l(V),l(xe,8))},e.\u0275dir=u({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,s){r&1&&b("input",function(a){return s._handleInput(a.target.value)})("blur",function(){return s.onTouched()})("compositionstart",function(){return s._compositionStart()})("compositionend",function(a){return s._compositionEnd(a.target.value)})},features:[m([Se]),f]});let t=e;return t})();function Ne(t){return t==null||(typeof t=="string"||Array.isArray(t))&&t.length===0}var ge=new g(""),Pe=new g("");function ke(t){return Ne(t.value)?{required:!0}:null}function re(t){return null}function me(t){return t!=null}function ve(t){return ie(t)?K(t):t}function ye(t){let e={};return t.forEach(n=>{e=n!=null?d(d({},e),n):e}),Object.keys(e).length===0?null:e}function _e(t,e){return e.map(n=>n(t))}function Ge(t){return!t.validate}function Ce(t){return t.map(e=>Ge(e)?e:n=>e.validate(n))}function Te(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){return ye(_e(n,e))}}function Ve(t){return t!=null?Te(Ce(t)):null}function je(t){if(!t)return null;let e=t.filter(me);return e.length==0?null:function(n){let i=_e(n,e).map(ve);return Q(i).pipe(J(ye))}}function De(t){return t!=null?je(Ce(t)):null}function se(t,e){return t===null?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Be(t){return t._rawValidators}function Ue(t){return t._rawAsyncValidators}function W(t){return t?Array.isArray(t)?t:[t]:[]}function k(t,e){return Array.isArray(t)?t.includes(e):t===e}function oe(t,e){let n=W(e);return W(t).forEach(r=>{k(n,r)||n.push(r)}),n}function ae(t,e){return W(e).filter(n=>!k(t,n))}var G=class{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=Ve(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=De(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,n){return this.control?this.control.hasError(e,n):!1}getError(e,n){return this.control?this.control.getError(e,n):null}},q=class extends G{get formDirective(){return null}get path(){return null}},F=class extends G{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}},z=class{constructor(e){this._cd=e}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}},Re={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Pt=c(d({},Re),{"[class.ng-submitted]":"isSubmitted"}),kt=(()=>{let e=class e extends z{constructor(i){super(i)}};e.\u0275fac=function(r){return new(r||e)(l(F,2))},e.\u0275dir=u({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,s){r&2&&te("ng-untouched",s.isUntouched)("ng-touched",s.isTouched)("ng-pristine",s.isPristine)("ng-dirty",s.isDirty)("ng-valid",s.isValid)("ng-invalid",s.isInvalid)("ng-pending",s.isPending)},features:[f]});let t=e;return t})();var A="VALID",P="INVALID",y="PENDING",M="DISABLED",C=class{},T=class extends C{constructor(e,n){super(),this.value=e,this.source=n}},E=class extends C{constructor(e,n){super(),this.pristine=e,this.source=n}},w=class extends C{constructor(e,n){super(),this.touched=e,this.source=n}},_=class extends C{constructor(e,n){super(),this.status=e,this.source=n}};function He(t){return(B(t)?t.validators:t)||null}function Le(t){return Array.isArray(t)?Ve(t):t||null}function $e(t,e){return(B(e)?e.asyncValidators:t)||null}function We(t){return Array.isArray(t)?De(t):t||null}function B(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var Z=class{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=null,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._events=new Y,this.events=this._events.asObservable(),this._onDisabledChange=[],this._assignValidators(e),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===A}get invalid(){return this.status===P}get pending(){return this.status==y}get disabled(){return this.status===M}get enabled(){return this.status!==M}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(oe(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(oe(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(ae(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(ae(e,this._rawAsyncValidators))}hasValidator(e){return k(this._rawValidators,e)}hasAsyncValidator(e){return k(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let n=this.touched===!1;this.touched=!0;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new w(!0,i))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(e))}markAsUntouched(e={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:i})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,i),n&&e.emitEvent!==!1&&this._events.next(new w(!1,i))}markAsDirty(e={}){let n=this.pristine===!0;this.pristine=!1;let i=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(c(d({},e),{sourceControl:i})),n&&e.emitEvent!==!1&&this._events.next(new E(!1,i))}markAsPristine(e={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let i=e.sourceControl??this;this._forEachChild(r=>{r.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,i),n&&e.emitEvent!==!1&&this._events.next(new E(!0,i))}markAsPending(e={}){this.status=y;let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new _(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(c(d({},e),{sourceControl:n}))}disable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=M,this.errors=null,this._forEachChild(r=>{r.disable(c(d({},e),{onlySelf:!0}))}),this._updateValue();let i=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,i)),this._events.next(new _(this.status,i)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){let n=this._parentMarkedDirty(e.onlySelf);this.status=A,this._forEachChild(i=>{i.enable(c(d({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(c(d({},e),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e,n){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let i=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===A||this.status===y)&&this._runAsyncValidator(i,e.emitEvent)}let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new T(this.value,n)),this._events.next(new _(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(c(d({},e),{sourceControl:n}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?M:A}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,n){if(this.asyncValidator){this.status=y,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let i=ve(this.asyncValidator(this));this._asyncValidationSubscription=i.subscribe(r=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(r,{emitEvent:n,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(e){let n=e;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((i,r)=>i&&i._find(r),this)}getError(e,n){let i=n?this.get(n):this;return i&&i.errors?i.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e,n,i){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||i)&&this._events.next(new _(this.status,n)),this._parent&&this._parent._updateControlsErrors(e,n,i)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?M:this.errors?P:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(y)?y:this._anyControlsHaveStatus(P)?P:A}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,n){let i=!this._anyControlsDirty(),r=this.pristine!==i;this.pristine=i,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),r&&this._events.next(new E(this.pristine,n))}_updateTouched(e={},n){this.touched=this._anyControlsTouched(),this._events.next(new w(this.touched,n)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n)}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){B(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let n=this._parent&&this._parent.dirty;return!e&&!!n&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Le(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=We(this._rawAsyncValidators)}};var X=new g("CallSetDisabledState",{providedIn:"root",factory:()=>U}),U="always";function qe(t,e){return[...e.path,t]}function ze(t,e,n=U){Xe(t,e),e.valueAccessor.writeValue(t.value),(t.disabled||n==="always")&&e.valueAccessor.setDisabledState?.(t.disabled),Ye(t,e),Je(t,e),Ke(t,e),Ze(t,e)}function le(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Ze(t,e){if(e.valueAccessor.setDisabledState){let n=i=>{e.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}function Xe(t,e){let n=Be(t);e.validator!==null?t.setValidators(se(n,e.validator)):typeof n=="function"&&t.setValidators([n]);let i=Ue(t);e.asyncValidator!==null?t.setAsyncValidators(se(i,e.asyncValidator)):typeof i=="function"&&t.setAsyncValidators([i]);let r=()=>t.updateValueAndValidity();le(e._rawValidators,r),le(e._rawAsyncValidators,r)}function Ye(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&be(t,e)})}function Ke(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&be(t,e),t.updateOn!=="submit"&&t.markAsTouched()})}function be(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Je(t,e){let n=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}function Qe(t,e){if(!t.hasOwnProperty("model"))return!1;let n=t.model;return n.isFirstChange()?!0:!Object.is(e,n.currentValue)}function et(t){return Object.getPrototypeOf(t.constructor)===j}function tt(t,e){if(!e)return null;Array.isArray(e);let n,i,r;return e.forEach(s=>{s.constructor===pe?n=s:et(s)?i=s:r=s}),r||i||n||null}function ue(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}function de(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var it=class extends Z{constructor(e=null,n,i){super(He(n),$e(i,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),B(n)&&(n.nonNullable||n.initialValueIsDefault)&&(de(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(i=>i(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){ue(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){ue(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){de(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}};var nt={provide:F,useExisting:p(()=>rt)},ce=Promise.resolve(),rt=(()=>{let e=class e extends F{constructor(i,r,s,o,a,h){super(),this._changeDetectorRef=a,this.callSetDisabledState=h,this.control=new it,this._registered=!1,this.name="",this.update=new N,this._parent=i,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=tt(this,o)}ngOnChanges(i){if(this._checkForErrors(),!this._registered||"name"in i){if(this._registered&&(this._checkName(),this.formDirective)){let r=i.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in i&&this._updateDisabled(i),Qe(i,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(i){this.viewModel=i,this.update.emit(i)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){ze(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(i){ce.then(()=>{this.control.setValue(i,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(i){let r=i.isDisabled.currentValue,s=r!==0&&L(r);ce.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(i){return this._parent?qe(i,this._parent):[i]}};e.\u0275fac=function(r){return new(r||e)(l(q,9),l(ge,10),l(Pe,10),l(I,10),l(ne,8),l(X,8))},e.\u0275dir=u({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[m([nt]),f,H]});let t=e;return t})();var st=new g("");var ot={provide:I,useExisting:p(()=>Me),multi:!0};function Ae(t,e){return t==null?`${e}`:(e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function at(t){return t.split(":")[0]}var Me=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r=this._getOptionId(i),s=Ae(r,i);this.setProperty("value",s)}registerOnChange(i){this.onChange=r=>{this.value=this._getOptionValue(r),i(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(i){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),i))return r;return null}_getOptionValue(i){let r=at(i);return this._optionMap.has(r)?this._optionMap.get(r):i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target.value)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([ot]),f]});let t=e;return t})(),Tt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption())}set ngValue(i){this._select!=null&&(this._select._optionMap.set(this.id,i),this._setElementValue(Ae(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._setElementValue(i),this._select&&this._select.writeValue(this._select.value)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Me,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})(),lt={provide:I,useExisting:p(()=>Ee),multi:!0};function he(t,e){return t==null?`${e}`:(typeof e=="string"&&(e=`'${e}'`),e&&typeof e=="object"&&(e="Object"),`${t}: ${e}`.slice(0,50))}function ut(t){return t.split(":")[0]}var Ee=(()=>{let e=class e extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(i){this._compareWith=i}writeValue(i){this.value=i;let r;if(Array.isArray(i)){let s=i.map(o=>this._getOptionId(o));r=(o,a)=>{o._setSelected(s.indexOf(a.toString())>-1)}}else r=(s,o)=>{s._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(i){this.onChange=r=>{let s=[],o=r.selectedOptions;if(o!==void 0){let a=o;for(let h=0;h{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,s){r&1&&b("change",function(a){return s.onChange(a.target)})("blur",function(){return s.onTouched()})},inputs:{compareWith:"compareWith"},features:[m([lt]),f]});let t=e;return t})(),jt=(()=>{let e=class e{constructor(i,r,s){this._element=i,this._renderer=r,this._select=s,this._select&&(this.id=this._select._registerOption(this))}set ngValue(i){this._select!=null&&(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value))}set value(i){this._select?(this._value=i,this._setElementValue(he(this.id,i)),this._select.writeValue(this._select.value)):this._setElementValue(i)}_setElementValue(i){this._renderer.setProperty(this._element.nativeElement,"value",i)}_setSelected(i){this._renderer.setProperty(this._element.nativeElement,"selected",i)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}};e.\u0275fac=function(r){return new(r||e)(l(V),l(D),l(Ee,9))},e.\u0275dir=u({type:e,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}});let t=e;return t})();var dt=(()=>{let e=class e{constructor(){this._validator=re}ngOnChanges(i){if(this.inputName in i){let r=this.normalizeInput(i[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):re,this._onChange&&this._onChange()}}validate(i){return this._validator(i)}registerOnValidatorChange(i){this._onChange=i}enabled(i){return i!=null}};e.\u0275fac=function(r){return new(r||e)},e.\u0275dir=u({type:e,features:[H]});let t=e;return t})();var ct={provide:ge,useExisting:p(()=>ht),multi:!0};var ht=(()=>{let e=class e extends dt{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=L,this.createValidator=i=>ke}enabled(i){return i}};e.\u0275fac=(()=>{let i;return function(s){return(i||(i=v(e)))(s||e)}})(),e.\u0275dir=u({type:e,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,s){r&2&&ee("required",s._enabled?"":null)},inputs:{required:"required"},features:[m([ct]),f]});let t=e;return t})();var we=(()=>{let e=class e{};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({});let t=e;return t})();var Bt=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})(),Ut=(()=>{let e=class e{static withConfig(i){return{ngModule:e,providers:[{provide:st,useValue:i.warnOnNgModelWithFormControl??"always"},{provide:X,useValue:i.callSetDisabledState??U}]}}};e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=x({type:e}),e.\u0275inj=O({imports:[we]});let t=e;return t})();export{I as a,Ie as b,pe as c,kt as d,rt as e,Me as f,Tt as g,jt as h,ht as i,Bt as j,Ut as k}; diff --git a/dist/chunk-LJL6JWG7.js b/dist/chunk-YE4HGH46.js similarity index 95% rename from dist/chunk-LJL6JWG7.js rename to dist/chunk-YE4HGH46.js index 1848cdd9..4635c7f5 100644 --- a/dist/chunk-LJL6JWG7.js +++ b/dist/chunk-YE4HGH46.js @@ -1 +1 @@ -import{h}from"./chunk-DEPBX7UX.js";function g(o,n){let e=o.length-n,i=0;do{for(let a=n;a>0;a--)o[i+n]+=o[i],i++;e-=n}while(e>0)}function u(o,n,e){let i=0,a=o.length,l=a/e;for(;a>n;){for(let t=n;t>0;--t)o[i+n]+=o[i],++i;a-=n}let c=o.slice();for(let t=0;t=o.byteLength);++r){let s;if(n===2){switch(a[0]){case 8:s=new Uint8Array(o,r*t*e*c,t*e*c);break;case 16:s=new Uint16Array(o,r*t*e*c,t*e*c/2);break;case 32:s=new Uint32Array(o,r*t*e*c,t*e*c/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}g(s,t,c)}else n===3&&(s=new Uint8Array(o,r*t*e*c,t*e*c),u(s,t,c))}return o}var d=class{decode(n,e){return h(this,null,function*(){let i=yield this.decodeBlock(e),a=n.Predictor||1;if(a!==1){let l=!n.StripOffsets,c=l?n.TileWidth:n.ImageWidth,t=l?n.TileLength:n.RowsPerStrip||n.ImageLength;return f(i,a,c,t,n.BitsPerSample,n.PlanarConfiguration)}return i})}};export{d as a}; +import{h}from"./chunk-MG3ERZGY.js";function g(o,n){let e=o.length-n,i=0;do{for(let a=n;a>0;a--)o[i+n]+=o[i],i++;e-=n}while(e>0)}function u(o,n,e){let i=0,a=o.length,l=a/e;for(;a>n;){for(let t=n;t>0;--t)o[i+n]+=o[i],++i;a-=n}let c=o.slice();for(let t=0;t=o.byteLength);++r){let s;if(n===2){switch(a[0]){case 8:s=new Uint8Array(o,r*t*e*c,t*e*c);break;case 16:s=new Uint16Array(o,r*t*e*c,t*e*c/2);break;case 32:s=new Uint32Array(o,r*t*e*c,t*e*c/4);break;default:throw new Error(`Predictor 2 not allowed with ${a[0]} bits per sample.`)}g(s,t,c)}else n===3&&(s=new Uint8Array(o,r*t*e*c,t*e*c),u(s,t,c))}return o}var d=class{decode(n,e){return h(this,null,function*(){let i=yield this.decodeBlock(e),a=n.Predictor||1;if(a!==1){let l=!n.StripOffsets,c=l?n.TileWidth:n.ImageWidth,t=l?n.TileLength:n.RowsPerStrip||n.ImageLength;return f(i,a,c,t,n.BitsPerSample,n.PlanarConfiguration)}return i})}};export{d as a}; diff --git a/dist/chunk-YLXPJAZB.js b/dist/chunk-YLXPJAZB.js new file mode 100644 index 00000000..be471bd2 --- /dev/null +++ b/dist/chunk-YLXPJAZB.js @@ -0,0 +1,2 @@ +import{a as je}from"./chunk-HYAUW6N4.js";import{b as Re,c as He,f as he}from"./chunk-GDT23CSW.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-ZEAAPN4P.js b/dist/chunk-ZEAAPN4P.js new file mode 100644 index 00000000..3b722ffa --- /dev/null +++ b/dist/chunk-ZEAAPN4P.js @@ -0,0 +1,34 @@ +import{a as Z,b as je,e as Vp}from"./chunk-MG3ERZGY.js";function T(e){return typeof e=="function"}function Ic(e){return T(e?.lift)}function R(e){return t=>{if(Ic(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ln(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var vi=Ln(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: +${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=n});function en(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(T(r))try{r()}catch(i){t=i instanceof vi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Hp(i)}catch(s){t=t??[],s instanceof vi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new vi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Hp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&en(n,t)}remove(t){let{_finalizers:n}=this;n&&en(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var Ec=Y.EMPTY;function yi(e){return e instanceof Y||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function Hp(e){T(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Fn={setTimeout(e,t,...n){let{delegate:r}=Fn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=Fn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ii(e){Fn.setTimeout(()=>{let{onUnhandledError:t}=Be;if(t)t(e);else throw e})}function tn(){}var Up=wc("C",void 0,void 0);function $p(e){return wc("E",void 0,e)}function Bp(e){return wc("N",e,void 0)}function wc(e,t,n){return{kind:e,value:t,error:n}}var nn=null;function jn(e){if(Be.useDeprecatedSynchronousErrorHandling){let t=!nn;if(t&&(nn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=nn;if(nn=null,n)throw r}}else e()}function qp(e){Be.useDeprecatedSynchronousErrorHandling&&nn&&(nn.errorThrown=!0,nn.error=e)}var rn=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,yi(t)&&t.add(this)):this.destination=ab}static create(t,n,r){return new Pt(t,n,r)}next(t){this.isStopped?Cc(Bp(t),this):this._next(t)}error(t){this.isStopped?Cc($p(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Cc(Up,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ib=Function.prototype.bind;function Dc(e,t){return ib.call(e,t)}var bc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Ei(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Ei(r)}else Ei(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Ei(n)}}},Pt=class extends rn{constructor(t,n,r){super();let o;if(T(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Dc(t.next,i),error:t.error&&Dc(t.error,i),complete:t.complete&&Dc(t.complete,i)}):o=t}this.destination=new bc(o)}};function Ei(e){Be.useDeprecatedSynchronousErrorHandling?qp(e):Ii(e)}function sb(e){throw e}function Cc(e,t){let{onStoppedNotification:n}=Be;n&&Fn.setTimeout(()=>n(e,t))}var ab={closed:!0,next:tn,error:sb,complete:tn};function S(e,t,n,r,o){return new Tc(e,t,n,r,o)}var Tc=class extends rn{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function qr(e,t){return R((n,r)=>{let o=0;n.subscribe(S(r,i=>e.call(t,i,o++)&&r.next(i)))})}var db={};Vp(db,{__addDisposableResource:()=>fh,__assign:()=>wi,__asyncDelegator:()=>ih,__asyncGenerator:()=>Ti,__asyncValues:()=>Mi,__await:()=>nt,__awaiter:()=>Ci,__classPrivateFieldGet:()=>lh,__classPrivateFieldIn:()=>dh,__classPrivateFieldSet:()=>uh,__createBinding:()=>bi,__decorate:()=>zp,__disposeResources:()=>ph,__esDecorate:()=>Zp,__exportStar:()=>th,__extends:()=>Wp,__generator:()=>eh,__importDefault:()=>ch,__importStar:()=>ah,__makeTemplateObject:()=>sh,__metadata:()=>Xp,__param:()=>Qp,__propKey:()=>Kp,__read:()=>xc,__rest:()=>Gp,__rewriteRelativeImportExtension:()=>hh,__runInitializers:()=>Yp,__setFunctionName:()=>Jp,__spread:()=>nh,__spreadArray:()=>oh,__spreadArrays:()=>rh,__values:()=>Di,default:()=>ub});var Mc=function(e,t){return Mc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Mc(e,t)};function Wp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var wi=function(){return wi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Qp(e,t){return function(n,r){t(n,r,e)}}function Zp(e,t,n,r,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=r.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,f=!1,p=n.length-1;p>=0;p--){var h={};for(var m in r)h[m]=m==="access"?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(y){if(f)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var v=(0,n[p])(a==="accessor"?{get:u.get,set:u.set}:u[c],h);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=s(v.get))&&(u.get=d),(d=s(v.set))&&(u.set=d),(d=s(v.init))&&o.unshift(d)}else(d=s(v))&&(a==="field"?o.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),f=!0}function Yp(e,t,n){for(var r=arguments.length>2,o=0;o0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function nh(){for(var e=[],t=0;t1||c(p,m)})},h&&(o[p]=h(o[p])))}function c(p,h){try{l(r[p](h))}catch(m){f(i[0][3],m)}}function l(p){p.value instanceof nt?Promise.resolve(p.value.v).then(u,d):f(i[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function f(p,h){p(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function ih(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:nt(e[o](s)),done:!1}:i?i(s):s}:i}}function Mi(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Di=="function"?Di(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}function sh(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var cb=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function ah(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&bi(t,e,n);return cb(t,e),t}function ch(e){return e&&e.__esModule?e:{default:e}}function lh(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function uh(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function dh(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function fh(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var lb=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function ph(e){function t(i){e.error=e.hasError?new lb(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var n,r=0;function o(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(o);if(n.dispose){var i=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(i).then(o,function(s){return t(s),o()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return o()}function hh(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,o,i,s){return r?t?".jsx":".js":o&&(!i||!s)?n:o+i+"."+s.toLowerCase()+"js"}):e}var ub={__extends:Wp,__assign:wi,__rest:Gp,__decorate:zp,__param:Qp,__esDecorate:Zp,__runInitializers:Yp,__propKey:Kp,__setFunctionName:Jp,__metadata:Xp,__awaiter:Ci,__generator:eh,__createBinding:bi,__exportStar:th,__values:Di,__read:xc,__spread:nh,__spreadArrays:rh,__spreadArray:oh,__await:nt,__asyncGenerator:Ti,__asyncDelegator:ih,__asyncValues:Mi,__makeTemplateObject:sh,__importStar:ah,__importDefault:ch,__classPrivateFieldGet:lh,__classPrivateFieldSet:uh,__classPrivateFieldIn:dh,__addDisposableResource:fh,__disposeResources:ph,__rewriteRelativeImportExtension:hh};var Vn=e=>e&&typeof e.length=="number"&&typeof e!="function";function xi(e){return T(e?.then)}var Hn=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ie(e){return e}function fb(...e){return _c(e)}function _c(e){return e.length===0?Ie:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var F=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=hb(n)?n:new Pt(n,r,o);return jn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=mh(r),new r((o,i)=>{let s=new Pt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Hn](){return this}pipe(...n){return _c(n)(this)}toPromise(n){return n=mh(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function mh(e){var t;return(t=e??Be.Promise)!==null&&t!==void 0?t:Promise}function pb(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function hb(e){return e&&e instanceof rn||pb(e)&&yi(e)}function _i(e){return T(e[Hn])}function Ni(e){return Symbol.asyncIterator&&T(e?.[Symbol.asyncIterator])}function Si(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function mb(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Oi=mb();function Ai(e){return T(e?.[Oi])}function Ri(e){return Ti(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield nt(n.read());if(o)return yield nt(void 0);yield yield nt(r)}}finally{n.releaseLock()}})}function Pi(e){return T(e?.getReader)}function G(e){if(e instanceof F)return e;if(e!=null){if(_i(e))return gb(e);if(Vn(e))return vb(e);if(xi(e))return yb(e);if(Ni(e))return gh(e);if(Ai(e))return Ib(e);if(Pi(e))return Eb(e)}throw Si(e)}function gb(e){return new F(t=>{let n=e[Hn]();if(T(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function vb(e){return new F(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ii)})}function Ib(e){return new F(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function gh(e){return new F(t=>{wb(e,t).catch(n=>t.error(n))})}function Eb(e){return gh(Ri(e))}function wb(e,t){var n,r,o,i;return Ci(this,void 0,void 0,function*(){try{for(n=Mi(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function vh(e){return R((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(S(n,l=>{r=!0,o=l,i||G(e(l)).subscribe(i=S(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}var ki=class extends Y{constructor(t,n){super()}schedule(t,n=0){return this}};var Wr={setInterval(e,t,...n){let{delegate:r}=Wr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=Wr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var kt=class extends ki{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return Wr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&Wr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,en(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Nc={now(){return(Nc.delegate||Date).now()},delegate:void 0};var Un=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};Un.now=Nc.now;var Lt=class extends Un{constructor(t,n=Un.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var on=new Lt(kt),yh=on;function Li(e){return e&&T(e.schedule)}function Ih(e){return e instanceof Date&&!isNaN(e)}function Gr(e=0,t,n=yh){let r=-1;return t!=null&&(Li(t)?n=t:r=t),new F(o=>{let i=Ih(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Db(e,t=on){return vh(()=>Gr(e,t))}function Sc(e){return e[e.length-1]}function Fi(e){return T(Sc(e))?e.pop():void 0}function rt(e){return Li(Sc(e))?e.pop():void 0}function Eh(e,t){return typeof Sc(e)=="number"?e.pop():t}function Te(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function wh(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(S(n,void 0,void 0,s=>{i=G(e(s,wh(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var{isArray:Cb}=Array,{getPrototypeOf:bb,prototype:Tb,keys:Mb}=Object;function ji(e){if(e.length===1){let t=e[0];if(Cb(t))return{args:t,keys:null};if(xb(t)){let n=Mb(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function xb(e){return e&&typeof e=="object"&&bb(e)===Tb}function Vi(e,t=0){return R((n,r)=>{n.subscribe(S(r,o=>Te(r,e,()=>r.next(o),t),()=>Te(r,e,()=>r.complete(),t),o=>Te(r,e,()=>r.error(o),t)))})}function Hi(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Dh(e,t){return G(e).pipe(Hi(t),Vi(t))}function Ch(e,t){return G(e).pipe(Hi(t),Vi(t))}function bh(e,t){return new F(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Th(e,t){return new F(n=>{let r;return Te(n,t,()=>{r=e[Oi](),Te(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>T(r?.return)&&r.return()})}function Ui(e,t){if(!e)throw new Error("Iterable cannot be null");return new F(n=>{Te(n,t,()=>{let r=e[Symbol.asyncIterator]();Te(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Mh(e,t){return Ui(Ri(e),t)}function xh(e,t){if(e!=null){if(_i(e))return Dh(e,t);if(Vn(e))return bh(e,t);if(xi(e))return Ch(e,t);if(Ni(e))return Ui(e,t);if(Ai(e))return Th(e,t);if(Pi(e))return Mh(e,t)}throw Si(e)}function ot(e,t){return t?xh(e,t):G(e)}function yt(e,t){return R((n,r)=>{let o=0;n.subscribe(S(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:_b}=Array;function Nb(e,t){return _b(t)?e(...t):e(t)}function $n(e){return yt(t=>Nb(e,t))}function $i(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Sb(...e){let t=rt(e),n=Fi(e),{args:r,keys:o}=ji(e);if(r.length===0)return ot([],t);let i=new F(Ob(r,t,o?s=>$i(o,s):Ie));return n?i.pipe($n(n)):i}function Ob(e,t,n=Ie){return r=>{_h(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=ot(e[c],t),u=!1;l.subscribe(S(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function _h(e,t,n){e?Te(n,e,t):t()}function Nh(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&t.complete()},p=m=>l{i&&t.next(m),l++;let v=!1;G(n(m,u++)).subscribe(S(t,y=>{o?.(y),i?p(y):t.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lh(y)):h(y)}f()}catch(y){t.error(y)}}))};return e.subscribe(S(t,p,()=>{d=!0,f()})),()=>{a?.()}}function qe(e,t,n=1/0){return T(t)?qe((r,o)=>yt((i,s)=>t(r,i,o,s))(G(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>Nh(r,o,e,n)))}function Sh(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(S(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function zr(e=1/0){return qe(Ie,e)}function Oh(){return zr(1)}function Ab(e,t){return T(t)?qe(e,t,1):qe(e,1)}var Ah=Ln(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Ft=(()=>{class e extends F{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new Bi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Ah}next(n){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){jn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Ec:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,en(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new F;return n.source=this,n}}return e.create=(t,n)=>new Bi(t,n),e})(),Bi=class extends Ft{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Ec}};function Rh(e,t=on){return R((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Qr(e){return R((t,n)=>{let r=!1;t.subscribe(S(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Bn(...e){return Oh()(ot(e,rt(e)))}var sn=new F(e=>e.complete());function qn(e){return e<=0?()=>sn:R((t,n)=>{let r=0;t.subscribe(S(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Ph(){return R((e,t)=>{e.subscribe(S(t,tn))})}function Oc(e){return yt(()=>e)}function Ac(e,t){return t?n=>Bn(t.pipe(qn(1),Ph()),n.pipe(Ac(e))):qe((n,r)=>G(e(n,r)).pipe(qn(1),Oc(n)))}function Rb(e,t=on){let n=Gr(e,t);return Ac(()=>n)}function Pb(...e){let t=rt(e);return ot(e,t)}function kb(e,t){let n=T(e)?e:()=>e,r=o=>o.error(n());return new F(t?o=>t.schedule(r,0,o):r)}function Lb(e,t=Ie){return e=e??Fb,R((n,r)=>{let o,i=!0;n.subscribe(S(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Fb(e,t){return e===t}var It=Ln(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function qi(e=jb){return R((t,n)=>{let r=!1;t.subscribe(S(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function jb(){return new It}function Vb(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Rc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?qr((o,i)=>e(o,i,r)):Ie,qn(1),n?Qr(t):qi(()=>new It))}function Pc(e){return e<=0?()=>sn:R((t,n)=>{let r=[];t.subscribe(S(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Hb(e,t){let n=arguments.length>=2;return r=>r.pipe(e?qr((o,i)=>e(o,i,r)):Ie,Pc(1),n?Qr(t):qi(()=>new It))}function kc(){return R((e,t)=>{let n=null;e._refCount++;let r=S(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Lc=class extends F{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ic(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(S(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return kc()(this)}};var Zr=class extends Ft{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Ub(e,t){return R(Sh(e,t,arguments.length>=2,!0))}function $b(...e){let t=rt(e);return R((n,r)=>{(t?Bn(e,n,t):Bn(e,n)).subscribe(r)})}function kh(e,t){return R((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(S(r,c=>{o?.unsubscribe();let l=0,u=i++;G(e(c,u)).subscribe(o=S(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Lh(e){return R((t,n)=>{G(e).subscribe(S(n,()=>n.complete(),tn)),!n.closed&&t.subscribe(n)})}function Bb(e,t,n){let r=T(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(S(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Ie}var i0={};Vp(i0,{ANIMATION_MODULE_TYPE:()=>T_,APP_BOOTSTRAP_LISTENER:()=>mc,APP_ID:()=>$a,APP_INITIALIZER:()=>PC,AfterRenderPhase:()=>pn,ApplicationInitStatus:()=>_p,ApplicationModule:()=>vk,ApplicationRef:()=>Xt,Attribute:()=>ly,COMPILER_OPTIONS:()=>VC,CSP_NONCE:()=>M_,CUSTOM_ELEMENTS_SCHEMA:()=>uN,ChangeDetectionStrategy:()=>Oa,ChangeDetectorRef:()=>Pp,Compiler:()=>BP,CompilerFactory:()=>Bu,Component:()=>OP,ComponentFactory:()=>Fo,ComponentFactoryResolver:()=>Dn,ComponentRef:()=>Xs,ContentChild:()=>zO,ContentChildren:()=>GO,DEFAULT_CURRENCY_CODE:()=>ZP,DebugElement:()=>xn,DebugEventListener:()=>Wu,DebugNode:()=>Go,DefaultIterableDiffer:()=>Ia,DestroyRef:()=>Cr,Directive:()=>_C,ENVIRONMENT_INITIALIZER:()=>qt,ElementRef:()=>ii,EmbeddedViewRef:()=>qu,EnvironmentInjector:()=>ut,ErrorHandler:()=>Mt,EventEmitter:()=>ct,ExperimentalPendingTasks:()=>Ux,HOST_TAG_NAME:()=>fy,Host:()=>tv,HostAttributeToken:()=>Ul,HostBinding:()=>kP,HostListener:()=>LP,INJECTOR:()=>ad,Inject:()=>Xg,InjectFlags:()=>L,Injectable:()=>jx,InjectionToken:()=>P,Injector:()=>ge,Input:()=>RP,IterableDiffers:()=>Lp,KeyValueDiffers:()=>Fp,LOCALE_ID:()=>Op,MissingTranslationStrategy:()=>$C,ModuleWithComponentFactories:()=>ma,NO_ERRORS_SCHEMA:()=>dN,NgModule:()=>FP,NgModuleFactory:()=>ia,NgModuleRef:()=>Yt,NgProbeToken:()=>$u,NgZone:()=>te,Optional:()=>Na,Output:()=>PP,OutputEmitterRef:()=>xo,PACKAGE_ROOT_URL:()=>b_,PLATFORM_ID:()=>Od,PLATFORM_INITIALIZER:()=>My,Pipe:()=>AP,PlatformRef:()=>Ap,Query:()=>Cn,QueryList:()=>qs,Renderer2:()=>pO,RendererFactory2:()=>jo,RendererStyleFlags2:()=>Zs,Sanitizer:()=>nE,SecurityContext:()=>An,Self:()=>ev,SimpleChange:()=>Fs,SkipSelf:()=>Sa,TRANSLATIONS:()=>YP,TRANSLATIONS_FORMAT:()=>KP,TemplateRef:()=>ko,Testability:()=>HP,TestabilityRegistry:()=>OC,TransferState:()=>si,Type:()=>yv,VERSION:()=>jP,Version:()=>ha,ViewChild:()=>ZO,ViewChildren:()=>QO,ViewContainerRef:()=>nc,ViewEncapsulation:()=>Wt,ViewRef:()=>va,afterNextRender:()=>ca,afterRender:()=>BE,asNativeElements:()=>ak,assertInInjectionContext:()=>Ra,assertNotInReactiveContext:()=>wA,assertPlatform:()=>zC,booleanAttribute:()=>Uk,computed:()=>Xk,contentChild:()=>$O,contentChildren:()=>BO,createComponent:()=>n0,createEnvironmentInjector:()=>vf,createNgModule:()=>LE,createNgModuleRef:()=>fA,createPlatform:()=>qC,createPlatformFactory:()=>WC,defineInjectable:()=>nM,destroyPlatform:()=>XP,effect:()=>ob,enableProdMode:()=>rk,forwardRef:()=>ba,getDebugNode:()=>zo,getModuleFactory:()=>ok,getNgModuleById:()=>ik,getPlatform:()=>yc,importProvidersFrom:()=>pv,inject:()=>M,input:()=>Jx,isDevMode:()=>nk,isSignal:()=>mE,isStandalone:()=>wo,makeEnvironmentProviders:()=>ei,makeStateKey:()=>__,mergeApplicationConfig:()=>o0,model:()=>WO,numberAttribute:()=>$k,output:()=>Yx,platformCore:()=>gk,provideExperimentalCheckNoChangesForDebug:()=>tk,provideExperimentalZonelessChangeDetection:()=>zP,provideZoneChangeDetection:()=>WP,reflectComponentType:()=>r0,resolveForwardRef:()=>j,runInInjectionContext:()=>GM,setTestabilityGetter:()=>AC,signal:()=>gE,untracked:()=>e0,viewChild:()=>VO,viewChildren:()=>HO,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Rp,\u0275AfterRenderManager:()=>wf,\u0275CONTAINER_HEADER_OFFSET:()=>X,\u0275ChangeDetectionScheduler:()=>_t,\u0275ChangeDetectionSchedulerImpl:()=>vc,\u0275ComponentFactory:()=>Fo,\u0275Console:()=>VP,\u0275DEFAULT_LOCALE_ID:()=>qo,\u0275DEFER_BLOCK_CONFIG:()=>XE,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>PA,\u0275DeferBlockBehavior:()=>Ef,\u0275DeferBlockState:()=>K,\u0275EffectScheduler:()=>rb,\u0275IMAGE_CONFIG:()=>x_,\u0275IMAGE_CONFIG_DEFAULTS:()=>xy,\u0275INJECTOR_SCOPE:()=>fd,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>KT,\u0275INTERNAL_APPLICATION_ERROR_HANDLER:()=>gy,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>io,\u0275JSACTION_EVENT_CONTRACT:()=>KC,\u0275LContext:()=>Ws,\u0275LifecycleHooksFeature:()=>rE,\u0275LocaleDataIndex:()=>Er,\u0275NG_COMP_DEF:()=>Yo,\u0275NG_DIR_DEF:()=>xa,\u0275NG_ELEMENT_ID:()=>rr,\u0275NG_INJ_DEF:()=>Ns,\u0275NG_MOD_DEF:()=>rd,\u0275NG_PIPE_DEF:()=>_a,\u0275NG_PROV_DEF:()=>yo,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>bs,\u0275NO_CHANGE:()=>N,\u0275NgModuleFactory:()=>vr,\u0275NoopNgZone:()=>fr,\u0275PROVIDED_NG_ZONE:()=>UC,\u0275PendingTasks:()=>Jt,\u0275ReflectionCapabilities:()=>Ps,\u0275Render3ComponentFactory:()=>Zt,\u0275Render3ComponentRef:()=>ra,\u0275Render3NgModuleRef:()=>gr,\u0275RuntimeError:()=>D,\u0275SIGNAL:()=>pe,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>_y,\u0275TESTABILITY:()=>NC,\u0275TESTABILITY_GETTER:()=>SC,\u0275USE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>ea,\u0275ViewRef:()=>Qt,\u0275XSS_SECURITY_URL:()=>ed,\u0275ZONELESS_ENABLED:()=>fi,\u0275_sanitizeHtml:()=>zy,\u0275_sanitizeUrl:()=>qa,\u0275allowSanitizationBypassAndThrow:()=>xr,\u0275annotateForHydration:()=>Nk,\u0275bypassSanitizationTrustHtml:()=>H_,\u0275bypassSanitizationTrustResourceUrl:()=>q_,\u0275bypassSanitizationTrustScript:()=>$_,\u0275bypassSanitizationTrustStyle:()=>U_,\u0275bypassSanitizationTrustUrl:()=>B_,\u0275clearResolutionOfComponentResourcesQueue:()=>xE,\u0275compileComponent:()=>yC,\u0275compileDirective:()=>Tp,\u0275compileNgModule:()=>gC,\u0275compileNgModuleDefs:()=>vC,\u0275compileNgModuleFactory:()=>HC,\u0275compilePipe:()=>xC,\u0275convertToBitFlags:()=>Ko,\u0275createInjector:()=>Hl,\u0275defaultIterableDiffers:()=>hk,\u0275defaultKeyValueDiffers:()=>mk,\u0275depsTracker:()=>hr,\u0275detectChangesInViewIfRequired:()=>jC,\u0275devModeEqual:()=>FE,\u0275findLocaleData:()=>Hf,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>hC,\u0275formatRuntimeError:()=>Gg,\u0275generateStandaloneInDeclarationsError:()=>vP,\u0275getAsyncClassMetadataFn:()=>dP,\u0275getDebugNode:()=>zo,\u0275getDeferBlocks:()=>Yu,\u0275getDirectives:()=>m_,\u0275getHostElement:()=>v_,\u0275getInjectableDef:()=>Zo,\u0275getLContext:()=>_e,\u0275getLocaleCurrencyCode:()=>gR,\u0275getLocalePluralCase:()=>zw,\u0275getOutputDestroyRef:()=>Zx,\u0275getSanitizationBypassType:()=>Hy,\u0275getUnknownElementStrictMode:()=>pN,\u0275getUnknownPropertyStrictMode:()=>mN,\u0275global:()=>Ge,\u0275injectChangeDetectorRef:()=>YC,\u0275internalCreateApplication:()=>Ik,\u0275internalProvideZoneChangeDetection:()=>gc,\u0275isBoundToModule:()=>LC,\u0275isComponentDefPendingResolution:()=>KO,\u0275isEnvironmentProviders:()=>nd,\u0275isInjectable:()=>rM,\u0275isNgModule:()=>Ht,\u0275isPromise:()=>xp,\u0275isSubscribable:()=>RC,\u0275noSideEffects:()=>pt,\u0275patchComponentDefWithScope:()=>bp,\u0275performanceMarkFeature:()=>ye,\u0275readHydrationInfo:()=>F_,\u0275registerLocaleData:()=>mR,\u0275renderDeferBlockState:()=>Ct,\u0275resetCompiledComponents:()=>EP,\u0275resetJitOptions:()=>mP,\u0275resolveComponentResources:()=>TE,\u0275restoreComponentResolutionQueue:()=>JO,\u0275setAllowDuplicateNgModuleIdsForTest:()=>rA,\u0275setAlternateWeakRefImpl:()=>yk,\u0275setClassDebugInfo:()=>pC,\u0275setClassMetadata:()=>Cp,\u0275setClassMetadataAsync:()=>BD,\u0275setCurrentInjector:()=>Et,\u0275setDocument:()=>D_,\u0275setInjectorProfilerContext:()=>sM,\u0275setLocaleId:()=>Kw,\u0275setUnknownElementStrictMode:()=>fN,\u0275setUnknownPropertyStrictMode:()=>hN,\u0275store:()=>pc,\u0275stringify:()=>he,\u0275transitiveScopesFor:()=>Mn,\u0275triggerResourceLoading:()=>ac,\u0275truncateMiddle:()=>XT,\u0275unregisterLocaleData:()=>vR,\u0275unwrapSafeValue:()=>Ot,\u0275unwrapWritableSignal:()=>LO,\u0275whenStable:()=>Np,\u0275withDomHydration:()=>jk,\u0275withEventReplay:()=>bk,\u0275withI18nSupport:()=>Vk,\u0275\u0275CopyDefinitionFeature:()=>AE,\u0275\u0275FactoryTarget:()=>un,\u0275\u0275HostDirectivesFeature:()=>RE,\u0275\u0275InheritDefinitionFeature:()=>gf,\u0275\u0275InputTransformsFeature:()=>kE,\u0275\u0275NgOnChangesFeature:()=>md,\u0275\u0275ProvidersFeature:()=>VD,\u0275\u0275StandaloneFeature:()=>HD,\u0275\u0275advance:()=>yI,\u0275\u0275attribute:()=>Cf,\u0275\u0275attributeInterpolate1:()=>bf,\u0275\u0275attributeInterpolate2:()=>Tf,\u0275\u0275attributeInterpolate3:()=>Mf,\u0275\u0275attributeInterpolate4:()=>xf,\u0275\u0275attributeInterpolate5:()=>_f,\u0275\u0275attributeInterpolate6:()=>Nf,\u0275\u0275attributeInterpolate7:()=>Sf,\u0275\u0275attributeInterpolate8:()=>Of,\u0275\u0275attributeInterpolateV:()=>Af,\u0275\u0275classMap:()=>Cw,\u0275\u0275classMapInterpolate1:()=>Nw,\u0275\u0275classMapInterpolate2:()=>Sw,\u0275\u0275classMapInterpolate3:()=>Ow,\u0275\u0275classMapInterpolate4:()=>Aw,\u0275\u0275classMapInterpolate5:()=>Rw,\u0275\u0275classMapInterpolate6:()=>Pw,\u0275\u0275classMapInterpolate7:()=>kw,\u0275\u0275classMapInterpolate8:()=>Lw,\u0275\u0275classMapInterpolateV:()=>Fw,\u0275\u0275classProp:()=>kf,\u0275\u0275componentInstance:()=>jw,\u0275\u0275conditional:()=>Vw,\u0275\u0275contentQuery:()=>mD,\u0275\u0275contentQuerySignal:()=>ID,\u0275\u0275declareLet:()=>Dp,\u0275\u0275defer:()=>tw,\u0275\u0275deferEnableTimerScheduling:()=>ew,\u0275\u0275deferOnHover:()=>uw,\u0275\u0275deferOnIdle:()=>ow,\u0275\u0275deferOnImmediate:()=>sw,\u0275\u0275deferOnInteraction:()=>fw,\u0275\u0275deferOnTimer:()=>cw,\u0275\u0275deferOnViewport:()=>hw,\u0275\u0275deferPrefetchOnHover:()=>dw,\u0275\u0275deferPrefetchOnIdle:()=>iw,\u0275\u0275deferPrefetchOnImmediate:()=>aw,\u0275\u0275deferPrefetchOnInteraction:()=>pw,\u0275\u0275deferPrefetchOnTimer:()=>lw,\u0275\u0275deferPrefetchOnViewport:()=>mw,\u0275\u0275deferPrefetchWhen:()=>rw,\u0275\u0275deferWhen:()=>nw,\u0275\u0275defineComponent:()=>cv,\u0275\u0275defineDirective:()=>lv,\u0275\u0275defineInjectable:()=>B,\u0275\u0275defineInjector:()=>Ma,\u0275\u0275defineNgModule:()=>ld,\u0275\u0275definePipe:()=>uv,\u0275\u0275directiveInject:()=>_r,\u0275\u0275disableBindings:()=>Rv,\u0275\u0275element:()=>Lf,\u0275\u0275elementContainer:()=>Ff,\u0275\u0275elementContainerEnd:()=>dc,\u0275\u0275elementContainerStart:()=>uc,\u0275\u0275elementEnd:()=>lc,\u0275\u0275elementStart:()=>cc,\u0275\u0275enableBindings:()=>Av,\u0275\u0275getComponentDepsFactory:()=>fC,\u0275\u0275getCurrentView:()=>Gw,\u0275\u0275getInheritedFactory:()=>ay,\u0275\u0275hostProperty:()=>jf,\u0275\u0275i18n:()=>aD,\u0275\u0275i18nApply:()=>lD,\u0275\u0275i18nAttributes:()=>cD,\u0275\u0275i18nEnd:()=>$f,\u0275\u0275i18nExp:()=>Bf,\u0275\u0275i18nPostprocess:()=>uD,\u0275\u0275i18nStart:()=>Uf,\u0275\u0275inject:()=>me,\u0275\u0275injectAttribute:()=>Ha,\u0275\u0275invalidFactory:()=>EI,\u0275\u0275invalidFactoryDep:()=>id,\u0275\u0275listener:()=>qf,\u0275\u0275loadQuery:()=>yD,\u0275\u0275namespaceHTML:()=>Qv,\u0275\u0275namespaceMathML:()=>zv,\u0275\u0275namespaceSVG:()=>Gv,\u0275\u0275nextContext:()=>fD,\u0275\u0275ngDeclareClassMetadata:()=>qk,\u0275\u0275ngDeclareClassMetadataAsync:()=>Wk,\u0275\u0275ngDeclareComponent:()=>Gk,\u0275\u0275ngDeclareDirective:()=>Bk,\u0275\u0275ngDeclareFactory:()=>zk,\u0275\u0275ngDeclareInjectable:()=>Zk,\u0275\u0275ngDeclareInjector:()=>Yk,\u0275\u0275ngDeclareNgModule:()=>Kk,\u0275\u0275ngDeclarePipe:()=>Jk,\u0275\u0275pipe:()=>iC,\u0275\u0275pipeBind1:()=>sC,\u0275\u0275pipeBind2:()=>aC,\u0275\u0275pipeBind3:()=>cC,\u0275\u0275pipeBind4:()=>lC,\u0275\u0275pipeBindV:()=>uC,\u0275\u0275projection:()=>hD,\u0275\u0275projectionDef:()=>pD,\u0275\u0275property:()=>Rf,\u0275\u0275propertyInterpolate:()=>zf,\u0275\u0275propertyInterpolate1:()=>fc,\u0275\u0275propertyInterpolate2:()=>Qf,\u0275\u0275propertyInterpolate3:()=>Zf,\u0275\u0275propertyInterpolate4:()=>Yf,\u0275\u0275propertyInterpolate5:()=>Kf,\u0275\u0275propertyInterpolate6:()=>Jf,\u0275\u0275propertyInterpolate7:()=>Xf,\u0275\u0275propertyInterpolate8:()=>ep,\u0275\u0275propertyInterpolateV:()=>tp,\u0275\u0275pureFunction0:()=>qD,\u0275\u0275pureFunction1:()=>WD,\u0275\u0275pureFunction2:()=>GD,\u0275\u0275pureFunction3:()=>zD,\u0275\u0275pureFunction4:()=>QD,\u0275\u0275pureFunction5:()=>ZD,\u0275\u0275pureFunction6:()=>YD,\u0275\u0275pureFunction7:()=>KD,\u0275\u0275pureFunction8:()=>JD,\u0275\u0275pureFunctionV:()=>XD,\u0275\u0275queryAdvance:()=>wD,\u0275\u0275queryRefresh:()=>vD,\u0275\u0275readContextLet:()=>FD,\u0275\u0275reference:()=>DD,\u0275\u0275registerNgModuleType:()=>mf,\u0275\u0275repeater:()=>Bw,\u0275\u0275repeaterCreate:()=>$w,\u0275\u0275repeaterTrackByIdentity:()=>Uw,\u0275\u0275repeaterTrackByIndex:()=>Hw,\u0275\u0275resetView:()=>kv,\u0275\u0275resolveBody:()=>$d,\u0275\u0275resolveDocument:()=>rI,\u0275\u0275resolveWindow:()=>nI,\u0275\u0275restoreView:()=>Pv,\u0275\u0275sanitizeHtml:()=>Qy,\u0275\u0275sanitizeResourceUrl:()=>Ud,\u0275\u0275sanitizeScript:()=>Yy,\u0275\u0275sanitizeStyle:()=>Zy,\u0275\u0275sanitizeUrl:()=>Hd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Xy,\u0275\u0275setComponentScope:()=>UD,\u0275\u0275setNgModuleScope:()=>$D,\u0275\u0275storeLet:()=>LD,\u0275\u0275styleMap:()=>Xe,\u0275\u0275styleMapInterpolate1:()=>CD,\u0275\u0275styleMapInterpolate2:()=>bD,\u0275\u0275styleMapInterpolate3:()=>TD,\u0275\u0275styleMapInterpolate4:()=>MD,\u0275\u0275styleMapInterpolate5:()=>xD,\u0275\u0275styleMapInterpolate6:()=>_D,\u0275\u0275styleMapInterpolate7:()=>ND,\u0275\u0275styleMapInterpolate8:()=>SD,\u0275\u0275styleMapInterpolateV:()=>OD,\u0275\u0275styleProp:()=>Pf,\u0275\u0275stylePropInterpolate1:()=>np,\u0275\u0275stylePropInterpolate2:()=>rp,\u0275\u0275stylePropInterpolate3:()=>op,\u0275\u0275stylePropInterpolate4:()=>ip,\u0275\u0275stylePropInterpolate5:()=>sp,\u0275\u0275stylePropInterpolate6:()=>ap,\u0275\u0275stylePropInterpolate7:()=>cp,\u0275\u0275stylePropInterpolate8:()=>lp,\u0275\u0275stylePropInterpolateV:()=>up,\u0275\u0275syntheticHostListener:()=>Wf,\u0275\u0275syntheticHostProperty:()=>Vf,\u0275\u0275template:()=>If,\u0275\u0275templateRefExtractor:()=>dC,\u0275\u0275text:()=>AD,\u0275\u0275textInterpolate:()=>dp,\u0275\u0275textInterpolate1:()=>hc,\u0275\u0275textInterpolate2:()=>fp,\u0275\u0275textInterpolate3:()=>pp,\u0275\u0275textInterpolate4:()=>hp,\u0275\u0275textInterpolate5:()=>mp,\u0275\u0275textInterpolate6:()=>gp,\u0275\u0275textInterpolate7:()=>vp,\u0275\u0275textInterpolate8:()=>yp,\u0275\u0275textInterpolateV:()=>Ip,\u0275\u0275trustConstantHtml:()=>Ky,\u0275\u0275trustConstantResourceUrl:()=>Jy,\u0275\u0275twoWayBindingSet:()=>PD,\u0275\u0275twoWayListener:()=>wp,\u0275\u0275twoWayProperty:()=>Ep,\u0275\u0275validateIframeAttribute:()=>SE,\u0275\u0275viewQuery:()=>gD,\u0275\u0275viewQuerySignal:()=>ED});function Fh(e,t){return Object.is(e,t)}var se=null,Yr=!1,Wi=1,pe=Symbol("SIGNAL");function A(e){let t=se;return se=e,t}function Hc(){return se}function qb(){return Yr}var Wn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Jr(e){if(Yr)throw new Error("");if(se===null)return;se.consumerOnSignalRead(e);let t=se.nextProducerIndex++;if(Ki(se),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Qi(e){Ki(e);for(let t=0;t0}function Ki(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Bh(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function qh(e){return e.producerNode!==void 0}function Uc(e){let t=Object.create(Gb);t.computation=e;let n=()=>{if(jh(t),Jr(t),t.value===Gi)throw t.error;return t.value};return n[pe]=t,n}var Fc=Symbol("UNSET"),jc=Symbol("COMPUTING"),Gi=Symbol("ERRORED"),Gb=je(Z({},Wn),{value:Fc,dirty:!0,error:null,equal:Fh,producerMustRecompute(e){return e.value===Fc||e.value===jc},producerRecomputeValue(e){if(e.value===jc)throw new Error("Detected cycle in computations.");let t=e.value;e.value=jc;let n=Xr(e),r;try{r=e.computation()}catch(o){r=Gi,e.error=o}finally{zi(e,n)}if(t!==Fc&&t!==Gi&&r!==Gi&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function zb(){throw new Error}var Wh=zb;function Gh(){Wh()}function zh(e){Wh=e}var Qb=null;function Qh(e){let t=Object.create($c);t.value=e;let n=()=>(Jr(t),t.value);return n[pe]=t,n}function eo(e,t){Hh()||Gh(),e.equal(e.value,t)||(e.value=t,Zb(e))}function Zh(e,t){Hh()||Gh(),eo(e,t(e.value))}var $c=je(Z({},Wn),{equal:Fh,value:void 0});function Zb(e){e.version++,Wb(),Vh(e),Qb?.()}function Yh(e,t,n){let r=Object.create(Yb);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Zi(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Vc)}let a=()=>{if(r.fn===null)return;if(qb())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Qi(r))return;r.hasRun=!0;let c=Xr(r);try{r.cleanupFn(),r.cleanupFn=Vc,r.fn(o)}finally{zi(r,c)}};return r.ref={notify:()=>Uh(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[pe]:r},r.ref}var Vc=()=>{},Yb=je(Z({},Wn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Vc});var Gn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Gn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new Y(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Gn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Gn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Kb=1,Bc,qc={};function Kh(e){return e in qc?(delete qc[e],!0):!1}var Jh={setImmediate(e){let t=Kb++;return qc[t]=!0,Bc||(Bc=Promise.resolve()),Bc.then(()=>Kh(t)&&e()),t},clearImmediate(e){Kh(e)}};var{setImmediate:Jb,clearImmediate:Xb}=Jh,to={setImmediate(...e){let{delegate:t}=to;return(t?.setImmediate||Jb)(...e)},clearImmediate(e){let{delegate:t}=to;return(t?.clearImmediate||Xb)(e)},delegate:void 0};var Ji=class extends kt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=to.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(to.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var Xi=class extends Lt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var eT=new Xi(Ji);var es=class extends kt{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Gn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Gn.cancelAnimationFrame(n),t._scheduled=void 0)}};var ts=class extends Lt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var tT=new ts(es);function nT(e){return!!e&&(e instanceof F||T(e.lift)&&T(e.subscribe))}function rT(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Pt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new It)}});e.subscribe(i)})}function oT(e){return new F(t=>{G(e()).subscribe(t)})}function iT(...e){let t=Fi(e),{args:n,keys:r}=ji(e),o=new F(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?$i(r,a):a),i.complete())}))}});return t?o.pipe($n(t)):o}var sT=["addListener","removeListener"],aT=["addEventListener","removeEventListener"],cT=["on","off"];function Wc(e,t,n,r){if(T(n)&&(r=n,n=void 0),r)return Wc(e,t,n).pipe($n(r));let[o,i]=dT(e)?aT.map(s=>a=>e[s](t,a,n)):lT(e)?sT.map(Xh(e,t)):uT(e)?cT.map(Xh(e,t)):[];if(!o&&Vn(e))return qe(s=>Wc(s,t,n))(G(e));if(!o)throw new TypeError("Invalid event target");return new F(s=>{let a=(...c)=>s.next(1i(a)})}function Xh(e,t){return n=>r=>e[n](t,r)}function lT(e){return T(e.addListener)&&T(e.removeListener)}function uT(e){return T(e.on)&&T(e.off)}function dT(e){return T(e.addEventListener)&&T(e.removeEventListener)}function fT(...e){let t=rt(e),n=Eh(e,1/0),r=e;return r.length?r.length===1?G(r[0]):zr(n)(ot(r,t)):sn}var no={JSACTION:"jsaction"},Yc={JSACTION:"__jsaction",OWNER:"__owner"},rm={};function pT(e){return e[Yc.JSACTION]}function em(e,t){e[Yc.JSACTION]=t}function hT(e){return rm[e]}function mT(e,t){rm[e]=t}var b={AUXCLICK:"auxclick",CHANGE:"change",CLICK:"click",CLICKMOD:"clickmod",CLICKONLY:"clickonly",DBLCLICK:"dblclick",FOCUS:"focus",FOCUSIN:"focusin",BLUR:"blur",FOCUSOUT:"focusout",SUBMIT:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEUP:"mouseup",MOUSEDOWN:"mousedown",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSEMOVE:"mousemove",POINTERUP:"pointerup",POINTERDOWN:"pointerdown",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERMOVE:"pointermove",POINTERCANCEL:"pointercancel",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",ERROR:"error",LOAD:"load",UNLOAD:"unload",TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",INPUT:"input",SCROLL:"scroll",TOGGLE:"toggle",CUSTOM:"_custom"},gT=[b.MOUSEENTER,b.MOUSELEAVE,"pointerenter","pointerleave"],vT=[b.CLICK,b.DBLCLICK,b.FOCUSIN,b.FOCUSOUT,b.KEYDOWN,b.KEYUP,b.KEYPRESS,b.MOUSEOVER,b.MOUSEOUT,b.SUBMIT,b.TOUCHSTART,b.TOUCHEND,b.TOUCHMOVE,"touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"],om=[b.FOCUS,b.BLUR,b.ERROR,b.LOAD,b.TOGGLE],as=e=>om.indexOf(e)>=0,yT=vT.concat(om),im=e=>yT.indexOf(e)>=0,IT=3,ET=13,wT=32,Oe={MAC_ENTER:IT,ENTER:ET,SPACE:wT};function DT(e){return e===b.MOUSEENTER?b.MOUSEOVER:e===b.MOUSELEAVE?b.MOUSEOUT:e===b.POINTERENTER?b.POINTEROVER:e===b.POINTERLEAVE?b.POINTEROUT:e}function CT(e,t,n){let r=!1;return as(t)&&(r=!0),e.addEventListener(t,n,r),{eventType:t,handler:n,capture:r}}function bT(e,t){e.removeEventListener?e.removeEventListener(t.eventType,t.handler,t.capture):e.detachEvent&&e.detachEvent(`on${t.eventType}`,t.handler)}function TT(e){e.preventDefault?e.preventDefault():e.returnValue=!1}var tm=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function MT(e){return e.which===2||e.which==null&&e.button===4}function xT(e){return tm&&e.metaKey||!tm&&e.ctrlKey||MT(e)||e.shiftKey}var VU=typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&/WebKit/.test(navigator.userAgent),HU=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident/.test(navigator.userAgent)),UU=typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&/Gecko/.test(navigator.product);function _T(e,t,n){let r=e.relatedTarget;return(e.type===b.MOUSEOVER&&t===b.MOUSEENTER||e.type===b.MOUSEOUT&&t===b.MOUSELEAVE||e.type===b.POINTEROVER&&t===b.POINTERENTER||e.type===b.POINTEROUT&&t===b.POINTERLEAVE)&&(!r||r!==n&&!n.contains(r))}function NT(e,t){let n={};for(let r in e){if(r==="srcElement"||r==="target")continue;let o=r,i=e[o];typeof i!="function"&&(n[o]=i)}return e.type===b.MOUSEOVER?n.type=b.MOUSEENTER:e.type===b.MOUSEOUT?n.type=b.MOUSELEAVE:e.type===b.POINTEROVER?n.type=b.POINTERENTER:n.type=b.POINTERLEAVE,n.target=n.srcElement=t,n.bubbles=!1,n}var $U={Enter:Oe.ENTER," ":Oe.SPACE},BU={A:Oe.ENTER,BUTTON:0,CHECKBOX:Oe.SPACE,COMBOBOX:Oe.ENTER,FILE:0,GRIDCELL:Oe.ENTER,LINK:Oe.ENTER,LISTBOX:Oe.ENTER,MENU:0,MENUBAR:0,MENUITEM:0,MENUITEMCHECKBOX:0,MENUITEMRADIO:0,OPTION:0,RADIO:Oe.SPACE,RADIOGROUP:Oe.SPACE,RESET:0,SUBMIT:0,SWITCH:Oe.SPACE,TAB:0,TREE:Oe.ENTER,TREEITEM:Oe.ENTER};var ST=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent),is=class{constructor(t){this.element=t,this.handlerInfos=[]}addEventListener(t,n){ST&&(this.element.style.cursor="pointer"),this.handlerInfos.push(CT(this.element,t,n(this.element)))}cleanUp(){for(let t=0;t{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}};function HT(e,t){return e.tagName==="A"&&(t.getEventType()===b.CLICK||t.getEventType()===b.CLICKMOD)}var gm=Symbol.for("propagationStopped"),UT={REPLAY:101};var $T="`preventDefault` called during event replay.";var BT="`composedPath` called during event replay.",ss=class{constructor(t,n=!0){this.dispatchDelegate=t,this.clickModSupport=n,this.actionResolver=new Qc({clickModSupport:n}),this.dispatcher=new Zc(r=>{this.dispatchToDelegate(r)},{actionResolver:this.actionResolver})}dispatch(t){this.dispatcher.dispatch(t)}dispatchToDelegate(t){for(t.getIsReplay()&>(t),qT(t);t.getAction();){if(zT(t),as(t.getEventType())&&t.getAction().element!==t.getTargetElement()||(this.dispatchDelegate(t.getEvent(),t.getAction().name),WT(t)))return;this.actionResolver.resolveParentAction(t.eventInfo)}}};function qT(e){let t=e.getEvent(),n=e.getEvent().stopPropagation.bind(t),r=()=>{t[gm]=!0,n()};an(t,"stopPropagation",r),an(t,"stopImmediatePropagation",r)}function WT(e){return!!e.getEvent()[gm]}function GT(e){let t=e.getEvent(),n=e.getTargetElement(),r=t.preventDefault.bind(t);an(t,"target",n),an(t,"eventPhase",UT.REPLAY),an(t,"preventDefault",()=>{throw r(),new Error($T+"")}),an(t,"composedPath",()=>{throw new Error(BT+"")})}function zT(e){let t=e.getEvent(),n=e.getAction()?.element;n&&an(t,"currentTarget",n,{configurable:!0})}function an(e,t,n,{configurable:r=!1}={}){Object.defineProperty(e,t,{value:n,configurable:r})}function vm(e,t){e.ecrd(n=>{t.dispatch(n)},mm.I_AM_THE_JSACTION_FRAMEWORK)}function QT(e){return e?.q??[]}function ZT(e){e&&(nm(e.c,e.et,e.h),nm(e.c,e.etc,e.h,!0))}function nm(e,t,n,r){for(let o=0;o{class e{static{this.MOUSE_SPECIAL_SUPPORT=YT}constructor(n){this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[],this.containerManager=n}handleEvent(n,r,o){let i=LT(n,r,r.target,o,Date.now());this.handleEventInfo(i)}handleEventInfo(n){if(!this.dispatcher){dm(n,!0),this.queuedEventInfos?.push(n);return}this.dispatcher(n)}addEvent(n,r){if(n in this.eventHandlers||!this.containerManager||!e.MOUSE_SPECIAL_SUPPORT&&gT.indexOf(n)>=0)return;let o=(s,a,c)=>{this.handleEvent(s,a,c)};this.eventHandlers[n]=o;let i=DT(r||n);if(i!==n){let s=this.browserEventTypeToExtraEventTypes[i]||[];s.push(n),this.browserEventTypeToExtraEventTypes[i]=s}this.containerManager.addEventListener(i,s=>a=>{o(n,a,s)})}replayEarlyEvents(n=window._ejsa){n&&(this.replayEarlyEventInfos(n.q),ZT(n),delete window._ejsa)}replayEarlyEventInfos(n){for(let r=0;r{let i=td(t);function s(...a){if(this instanceof s)return i.call(this,...a),this;let c=new s(...a);return function(u){return o&&o(u,...a),(u.hasOwnProperty(Yn)?u[Yn]:Object.defineProperty(u,Yn,{value:[]})[Yn]).push(c),r&&r(u),u}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function td(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function wr(e,t,n){return pt(()=>{let r=td(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Kn)?c[Kn]:Object.defineProperty(c,Kn,{value:[]})[Kn];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Kt(e,t,n,r){return pt(()=>{let o=td(t);function i(...s){if(this instanceof i)return o.apply(this,s),this;let a=new i(...s);function c(l,u){if(l===void 0)throw new Error("Standard Angular field decorators are not supported in JIT mode.");let d=l.constructor,f=d.hasOwnProperty(Jn)?d[Jn]:Object.defineProperty(d,Jn,{value:{}})[Jn];f[u]=f.hasOwnProperty(u)&&f[u]||[],f[u].unshift(a),r&&r(l,u,...s)}return c}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Ge=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function JT(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function he(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(he).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` +`);return n===-1?t:t.substring(0,n)}function Ml(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}function XT(e,t=100){if(!e||t<1||e.length<=t)return e;if(t==1)return e.substring(0,1)+"...";let n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}var eM=$({__forward_ref__:$});function ba(e){return e.__forward_ref__=ba,e.toString=function(){return he(this())},e}function j(e){return Ta(e)?e():e}function Ta(e){return typeof e=="function"&&e.hasOwnProperty(eM)&&e.__forward_ref__===ba}function tM(e,t,n){e!=t&&Zg(n,e,t,"==")}function Zg(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var nM=B;function Ma(e){return{providers:e.providers||[],imports:e.imports||[]}}function Zo(e){return wm(e,yo)||wm(e,Yg)}function rM(e){return Zo(e)!==null}function wm(e,t){return e.hasOwnProperty(t)?e[t]:null}function oM(e){let t=e&&(e[yo]||e[Yg]);return t||null}function Dm(e){return e&&(e.hasOwnProperty(Ns)||e.hasOwnProperty(iM))?e[Ns]:null}var yo=$({\u0275prov:$}),Ns=$({\u0275inj:$}),Yg=$({ngInjectableDef:$}),iM=$({ngInjectorDef:$}),P=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},Cm;function sM(e){Zg("setInjectorProfilerContext should never be called in production mode");let t=Cm;return Cm=e,t}function nd(e){return e&&!!e.\u0275providers}var Yo=$({\u0275cmp:$}),xa=$({\u0275dir:$}),_a=$({\u0275pipe:$}),rd=$({\u0275mod:$}),bt=$({\u0275fac:$}),rr=$({__NG_ELEMENT_ID__:$}),bm=$({__NG_ENV_ID__:$});function O(e){return typeof e=="string"?e:e==null?"":String(e)}function Ve(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():O(e)}function aM(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function od(e,t){throw new D(-201,!1)}var L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(L||{}),xl;function Kg(){return xl}function Me(e){let t=xl;return xl=e,t}function Jg(e,t,n){let r=Zo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&L.Optional)return null;if(t!==void 0)return t;od(e,"Injector")}var cM={},Io=cM,_l="__NG_DI_FLAG__",Ss="ngTempTokenPath",lM="ngTokenPath",uM=/\n/gm,dM="\u0275",Tm="__source",or;function fM(){return or}function Et(e){let t=or;return or=e,t}function pM(e,t=L.Default){if(or===void 0)throw new D(-203,!1);return or===null?Jg(e,void 0,t):or.get(e,t&L.Optional?null:void 0,t)}function me(e,t=L.Default){return(Kg()||pM)(j(e),t)}function id(e){throw new D(202,!1)}function M(e,t=L.Default){return me(e,Ko(t))}function Ko(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Nl(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):he(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(uM,` + `)}`}var Xg=Jo(wr("Inject",e=>({token:e})),-1),Na=Jo(wr("Optional"),8),ev=Jo(wr("Self"),2),Sa=Jo(wr("SkipSelf"),4),tv=Jo(wr("Host"),1);function hn(e,t){let n=e.hasOwnProperty(bt);return n?e[bt]:null}function vM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?sd(n,t):t(n))}function nv(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Os(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Is(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Le(e,t,n){let r=Xo(e,t);return r>=0?e[r|1]=n:(r=~r,rv(e,r,t,n)),r}function Jc(e,t){let n=Xo(e,t);if(n>=0)return e[n|1]}function Xo(e,t){return yM(e,t,1)}function yM(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(We(r))return!1;s=!0}}}}return We(r)||s}function We(e){return(e&1)===0}function bM(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!We(s)&&(t+=_m(i,o),o=""),r=s,i=i||!We(r);n++}return o!==""&&(t+=_m(i,o)),t}function SM(e){return e.map(NM).join(",")}function OM(e){let t=[],n=[],r=1,o=2;for(;r{let t=dv(e),n=je(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Oa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Wt.Emulated,styles:e.styles||V,_:null,schemas:e.schemas||null,tView:null,id:""});fv(n);let r=e.dependencies;return n.directiveDefs=Rs(r,!1),n.pipeDefs=Rs(r,!0),n.id=kM(n),n})}function AM(e){return Q(e)||Re(e)}function RM(e){return e!==null}function ld(e){return pt(()=>({type:e.type,bootstrap:e.bootstrap||V,declarations:e.declarations||V,imports:e.imports||V,exports:e.exports||V,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Nm(e,t){if(e==null)return lt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=Gt.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==Gt.None?[r,a]:r,t[i]=s):n[i]=r}return n}function lv(e){return pt(()=>{let t=dv(e);return fv(t),t})}function uv(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Q(e){return e[Yo]||null}function Re(e){return e[xa]||null}function Pe(e){return e[_a]||null}function wo(e){let t=Q(e)||Re(e)||Pe(e);return t!==null?t.standalone:!1}function Qe(e,t){let n=e[rd]||null;if(!n&&t===!0)throw new Error(`Type ${he(e)} does not have '\u0275mod' property.`);return n}function dv(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||lt,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||V,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Nm(e.inputs,t),outputs:Nm(e.outputs),debugInfo:null}}function fv(e){e.features?.forEach(t=>t(e))}function Rs(e,t){if(!e)return null;let n=t?Pe:AM;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(RM)}var PM=new Map;function kM(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ei(e){return{\u0275providers:e}}function pv(...e){return{\u0275providers:ud(!0,e),\u0275fromNgModule:!0}}function ud(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return sd(t,s=>{let a=s;Ol(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&hv(o,i),n}function hv(e,t){for(let n=0;n{t(i,r)})}}function Ol(e,t,n,r){if(e=j(e),!e)return!1;let o=null,i=Dm(e),s=!i&&Q(e);if(!i&&!s){let c=e.ngModule;if(i=Dm(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ol(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{sd(i.imports,u=>{Ol(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&hv(l,t)}if(!a){let l=hn(o)||(()=>new o);t({provide:o,useFactory:l,deps:V},o),t({provide:ov,useValue:o,multi:!0},o),t({provide:qt,useValue:()=>me(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;dd(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function dd(e,t){for(let n of e)nd(n)&&(n=n.\u0275providers),Array.isArray(n)?dd(n,t):t(n)}var LM=$({provide:String,useValue:$});function mv(e){return e!==null&&typeof e=="object"&&LM in e}function FM(e){return!!(e&&e.useExisting)}function jM(e){return!!(e&&e.useFactory)}function lr(e){return typeof e=="function"}function VM(e){return!!e.useClass}var fd=new P(""),Es={},HM={},Xc;function Aa(){return Xc===void 0&&(Xc=new As),Xc}var ut=class{},Do=class extends ut{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rl(t,s=>this.processProvider(s)),this.records.set(ad,Xn(void 0,this)),o.has("environment")&&this.records.set(ut,Xn(void 0,this));let i=this.records.get(fd);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(ov,V,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=A(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Et(this),r=Me(void 0),o;try{return t()}finally{Et(n),Me(r)}}get(t,n=Io,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(bm))return t[bm](this);r=Ko(r);let o,i=Et(this),s=Me(void 0);try{if(!(r&L.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=WM(t)&&Zo(t);l&&this.injectableDefInScope(l)?c=Xn(Al(t),Es):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&L.Self?Aa():this.parent;return n=r&L.Optional&&n===Io?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Ss]=a[Ss]||[]).unshift(he(t)),i)throw a;return mM(a,t,"R3InjectorError",this.source)}else throw a}finally{Me(s),Et(i)}}resolveInjectorInitializers(){let t=A(null),n=Et(this),r=Me(void 0),o;try{let i=this.get(qt,V,L.Self);for(let s of i)s()}finally{Et(n),Me(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(he(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=j(t);let n=lr(t)?t:j(t&&t.provide),r=$M(t);if(!lr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Xn(void 0,Es,!0),o.factory=()=>Nl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===Es&&(n.value=HM,n.value=n.factory()),typeof n.value=="object"&&n.value&&qM(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=j(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function Al(e){let t=Zo(e),n=t!==null?t.factory:hn(e);if(n!==null)return n;if(e instanceof P)throw new D(204,!1);if(e instanceof Function)return UM(e);throw new D(204,!1)}function UM(e){if(e.length>0)throw new D(204,!1);let n=oM(e);return n!==null?()=>n.factory(e):()=>new e}function $M(e){if(mv(e))return Xn(void 0,e.useValue);{let t=gv(e);return Xn(t,Es)}}function gv(e,t,n){let r;if(lr(e)){let o=j(e);return hn(o)||Al(o)}else if(mv(e))r=()=>j(e.useValue);else if(jM(e))r=()=>e.useFactory(...Nl(e.deps||[]));else if(FM(e))r=()=>me(j(e.useExisting));else{let o=j(e&&(e.useClass||e.provide));if(BM(e))r=()=>new o(...Nl(e.deps));else return hn(o)||Al(o)}return r}function Xn(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function BM(e){return!!e.deps}function qM(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function WM(e){return typeof e=="function"||typeof e=="object"&&e instanceof P}function Rl(e,t){for(let n of e)Array.isArray(n)?Rl(n,t):n&&nd(n)?Rl(n.\u0275providers,t):t(n)}function GM(e,t){e instanceof Do&&e.assertNotDestroyed();let n,r=Et(e),o=Me(void 0);try{return t()}finally{Et(r),Me(o)}}function vv(){return Kg()!==void 0||fM()!=null}function Ra(e){if(!vv())throw new D(-203,!1)}var un=function(e){return e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule",e}(un||{});function ce(e){let t=Ge.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var Sm={\u0275\u0275defineInjectable:B,\u0275\u0275defineInjector:Ma,\u0275\u0275inject:me,\u0275\u0275invalidFactoryDep:id,resolveForwardRef:j},yv=Function;function oo(e){return typeof e=="function"}var zM=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,QM=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,ZM=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,YM=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function KM(e){return zM.test(e)||YM.test(e)||QM.test(e)&&!ZM.test(e)}var Ps=class{constructor(t){this._reflect=t||Ge.Reflect}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;typeof t>"u"?r=Is(n.length):r=Is(t.length);for(let o=0;o"u"?r[o]=[]:t[o]&&t[o]!=Object?r[o]=[t[o]]:r[o]=[],n&&n[o]!=null&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){let r=t.toString();if(KM(r))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;let o=t.ctorParameters;if(o&&o!==n.ctorParameters){let a=typeof o=="function"?o():o,c=a.map(u=>u&&u.type),l=a.map(u=>u&&el(u.decorators));return this._zipTypesAndAnnotations(c,l)}let i=t.hasOwnProperty(Kn)&&t[Kn],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||i?this._zipTypesAndAnnotations(s,i):Is(t.length)}parameters(t){if(!oo(t))return[];let n=cs(t),r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return typeof r=="function"&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?el(t.decorators):t.hasOwnProperty(Yn)?t[Yn]:null}annotations(t){if(!oo(t))return[];let n=cs(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return typeof r=="function"&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){let r=t.propDecorators,o={};return Object.keys(r).forEach(i=>{o[i]=el(r[i])}),o}return t.hasOwnProperty(Jn)?t[Jn]:null}propMetadata(t){if(!oo(t))return{};let n=cs(t),r={};if(n!==Object){let i=this.propMetadata(n);Object.keys(i).forEach(s=>{r[s]=i[s]})}let o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(i=>{let s=[];r.hasOwnProperty(i)&&s.push(...r[i]),s.push(...o[i]),r[i]=s}),r}ownPropMetadata(t){return oo(t)?this._ownPropMetadata(t,cs(t))||{}:{}}hasLifecycleHook(t,n){return t instanceof yv&&n in t.prototype}};function el(e){return e?e.map(t=>{let r=t.type.annotationCls,o=t.args?t.args:[];return new r(...o)}):[]}function cs(e){let t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var ne=0,I=1,C=2,ie=3,ze=4,ve=5,we=6,ur=7,J=8,ue=9,dt=10,x=11,Co=12,Om=13,Dr=14,le=15,mn=16,er=17,Tt=18,ti=19,Iv=20,Ut=21,ws=22,He=23,w=25,pd=1,bo=6,ft=7,ks=8,dr=9,X=10,Ls=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Ls||{});function ke(e){return Array.isArray(e)&&typeof e[pd]=="object"}function De(e){return Array.isArray(e)&&e[pd]===!0}function hd(e){return(e.flags&4)!==0}function _n(e){return e.componentOffset>-1}function Pa(e){return(e.flags&1)===1}function Ze(e){return!!e.template}function To(e){return(e[C]&512)!==0}function Ev(e){return(e.type&16)===16}function JM(e){return(e[C]&32)===32}function Pl(e){return(e[C]&256)===256}var Fs=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function wv(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function md(){return Dv}function Dv(e){return e.type.prototype.ngOnChanges&&(e.setInput=ex),XM}md.ngInherit=!0;function XM(){let e=bv(this),t=e?.current;if(t){let n=e.previous;if(n===lt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function ex(e,t,n,r,o){let i=this.declaredInputs[r],s=bv(e)||tx(e,{previous:lt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new Fs(l&&l.currentValue,n,c===lt),wv(e,t,o,n)}var Cv="__ngSimpleChanges__";function bv(e){return e[Cv]||null}function tx(e,t){return e[Cv]=t}var Am=null;var st=function(e,t,n){Am?.(e,t,n)},Tv="svg",Mv="math";function U(e){for(;Array.isArray(e);)e=e[ne];return e}function gd(e){for(;Array.isArray(e);){if(typeof e[pd]=="object")return e;e=e[ne]}return null}function ni(e,t){return U(t[e])}function Ne(e,t){return U(t[e.index])}function nx(e,t){let n=e===null?-1:e.index;return n!==-1?U(t[n]):null}function ri(e,t){return e.data[t]}function Nn(e,t){return e[t]}function Ye(e,t){let n=t[e];return ke(n)?n:n[ne]}function rx(e){return(e[C]&4)===4}function vd(e){return(e[C]&128)===128}function ox(e){return De(e[ie])}function Ue(e,t){return t==null?null:e[t]}function xv(e){e[er]=0}function _v(e){e[C]&1024||(e[C]|=1024,vd(e)&&La(e))}function Nv(e,t){for(;e>0;)t=t[Dr],e--;return t}function ka(e){return!!(e[C]&9216||e[He]?.dirty)}function kl(e){e[dt].changeDetectionScheduler?.notify(8),e[C]&64&&(e[C]|=1024),ka(e)&&La(e)}function La(e){e[dt].changeDetectionScheduler?.notify(0);let t=zt(e);for(;t!==null&&!(t[C]&8192||(t[C]|=8192,!vd(t)));)t=zt(t)}function Fa(e,t){if((e[C]&256)===256)throw new D(911,!1);e[Ut]===null&&(e[Ut]=[]),e[Ut].push(t)}function yd(e,t){if(e[Ut]===null)return;let n=e[Ut].indexOf(t);n!==-1&&e[Ut].splice(n,1)}function zt(e){let t=e[ie];return De(t)?t[ie]:t}var _={lFrame:Bv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Sv=!1;function ix(){return _.lFrame.elementDepthCount}function sx(){_.lFrame.elementDepthCount++}function ax(){_.lFrame.elementDepthCount--}function Ov(){return _.bindingsEnabled}function Sn(){return _.skipHydrationRootTNode!==null}function cx(e){return _.skipHydrationRootTNode===e}function Av(){_.bindingsEnabled=!0}function lx(e){_.skipHydrationRootTNode=e}function Rv(){_.bindingsEnabled=!1}function ux(){_.skipHydrationRootTNode=null}function g(){return _.lFrame.lView}function k(){return _.lFrame.tView}function Pv(e){return _.lFrame.contextLView=e,e[J]}function kv(e){return _.lFrame.contextLView=null,e}function q(){let e=Lv();for(;e!==null&&e.type===64;)e=e.parent;return e}function Lv(){return _.lFrame.currentTNode}function Mo(){let e=_.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ke(e,t){let n=_.lFrame;n.currentTNode=e,n.isParent=t}function Id(){return _.lFrame.isParent}function Ed(){_.lFrame.isParent=!1}function Fv(){return _.lFrame.contextLView}function jv(){return Sv}function Rm(e){Sv=e}function Ce(){let e=_.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Nt(){return _.lFrame.bindingIndex}function Vv(e){return _.lFrame.bindingIndex=e}function Je(){return _.lFrame.bindingIndex++}function St(e){let t=_.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dx(){return _.lFrame.inI18n}function Hv(e){_.lFrame.inI18n=e}function fx(e,t){let n=_.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ll(t)}function px(){return _.lFrame.currentDirectiveIndex}function Ll(e){_.lFrame.currentDirectiveIndex=e}function wd(e){let t=_.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Dd(){return _.lFrame.currentQueryIndex}function ja(e){_.lFrame.currentQueryIndex=e}function hx(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function Uv(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&L.Host);)if(o=hx(i),o===null||(i=i[Dr],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=_.lFrame=$v();return r.currentTNode=t,r.lView=e,!0}function Cd(e){let t=$v(),n=e[I];_.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function $v(){let e=_.lFrame,t=e===null?null:e.child;return t===null?Bv(e):t}function Bv(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function qv(){let e=_.lFrame;return _.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Wv=qv;function bd(){let e=qv();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mx(e){return(_.lFrame.contextLView=Nv(e,_.lFrame.contextLView))[J]}function de(){return _.lFrame.selectedIndex}function gn(e){_.lFrame.selectedIndex=e}function z(){let e=_.lFrame;return ri(e.tView,e.selectedIndex)}function Gv(){_.lFrame.currentNamespace=Tv}function zv(){_.lFrame.currentNamespace=Mv}function Qv(){gx()}function gx(){_.lFrame.currentNamespace=null}function Zv(){return _.lFrame.currentNamespace}var Yv=!0;function oi(){return Yv}function ht(e){Yv=e}function vx(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=Dv(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Va(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[er]+=65536),(a>14>16&&(e[C]&3)===t&&(e[C]+=16384,Pm(a,i)):Pm(a,i)}var ir=-1,vn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function Ix(e){return e instanceof vn}function Jv(e){return e!=null&&typeof e=="object"&&(e.insertBeforeIndex===null||typeof e.insertBeforeIndex=="number"||Array.isArray(e.insertBeforeIndex))}function Ex(e){return!!(e.type&128)}function wx(e){return(e.flags&8)!==0}function Dx(e){return(e.flags&16)!==0}var bs={},sr=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ko(r);let o=this.injector.get(t,bs,r);return o!==bs||n===bs?o:this.parentInjector.get(t,n,r)}};function Xv(e){return e!==ir}function js(e){return e&32767}function Cx(e){return e>>16}function Vs(e,t){let n=Cx(e),r=t;for(;n>0;)r=r[Dr],n--;return r}var Fl=!0;function Hs(e){let t=Fl;return Fl=e,t}var bx=256,ey=bx-1,ty=5,Tx=0,at={};function Mx(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(rr)&&(r=n[rr]),r==null&&(r=n[rr]=Tx++);let o=r&ey,i=1<>ty)]|=i}function Us(e,t){let n=ny(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,nl(r.data,e),nl(t,null),nl(r.blueprint,null));let o=Td(e,t),i=e.injectorIndex;if(Xv(o)){let s=js(o),a=Vs(o,t),c=a[I].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function nl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function ny(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Td(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=cy(o),r===null)return ir;if(n++,o=o[Dr],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return ir}function jl(e,t,n){Mx(e,t,n)}function xx(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+u,f=o?a+u:l;for(let p=d;p=c&&h.type===n)return p}if(o){let p=s[c];if(p&&Ze(p)&&p.type===n)return c}return null}function yn(e,t,n,r){let o=e[n],i=t.data;if(Ix(o)){let s=o;s.resolving&&aM(Ve(i[n]));let a=Hs(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?Me(s.injectImpl):null,u=Uv(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&vx(n,i[n],t)}finally{l!==null&&Me(l),Hs(a),s.resolving=!1,Wv()}}return o}function Nx(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(rr)?e[rr]:void 0;return typeof t=="number"?t>=0?t&ey:Sx:t}function km(e,t,n){let r=1<>ty)]&r)}function Lm(e,t){return!(e&L.Self)&&!(e&L.Host&&t)}var $t=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return iy(this._tNode,this._lView,t,Ko(r),n)}};function Sx(){return new $t(q(),g())}function ay(e){return pt(()=>{let t=e.prototype.constructor,n=t[bt]||Vl(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[bt]||Vl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Vl(e){return Ta(e)?()=>{let t=Vl(j(e));return t&&t()}:hn(e)}function Ox(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[C]&2048&&!(s[C]&512);){let a=sy(i,s,n,r|L.Self,at);if(a!==at)return a;let c=i.parent;if(!c){let l=s[Iv];if(l){let u=l.get(n,at,r);if(u!==at)return u}c=cy(s),s=s[Dr]}i=c}return o}function cy(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[ve]:null}function Ha(e){return xx(q(),e)}var ly=wr("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ha(e)})),Fm=null;function Md(){return Fm=Fm||new Ps}function Ua(e){return uy(Md().parameters(e))}function uy(e){return e.map(t=>Ax(t))}function Ax(e){let t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n(n===null&&(n=ce({usage:0,kind:"injectable",type:e}).compileInjectable(Sm,`ng:///${e.name}/\u0275prov.js`,Fx(e,t))),n)}),e.hasOwnProperty(bt)||Object.defineProperty(e,bt,{get:()=>{if(r===null){let o=ce({usage:0,kind:"injectable",type:e});r=o.compileFactory(Sm,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Ua(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}var Px=$({provide:String,useValue:$});function jm(e){return e.useClass!==void 0}function kx(e){return Px in e}function Vm(e){return e.useFactory!==void 0}function Lx(e){return e.useExisting!==void 0}function Fx(e,t){let n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(jm(n)||Vm(n))&&n.deps!==void 0&&(r.deps=uy(n.deps)),jm(n)?r.useClass=n.useClass:kx(n)?r.useValue=n.useValue:Vm(n)?r.useFactory=n.useFactory:Lx(n)&&(r.useExisting=n.useExisting),r}var jx=Qo("Injectable",void 0,void 0,void 0,(e,t)=>Rx(e,t));function Hl(e,t=null,n=null,r){let o=dy(e,t,n,r);return o.resolveInjectorInitializers(),o}function dy(e,t=null,n=null,r,o=new Set){let i=[n||V,pv(e)];return r=r||(typeof e=="object"?void 0:he(e)),new Do(i,t||Aa(),r||null,o)}var ge=class e{static{this.THROW_IF_NOT_FOUND=Io}static{this.NULL=new As}static create(t,n){if(Array.isArray(t))return Hl({name:""},n,t,"");{let r=t.name??"";return Hl({name:r},t.parent,t.providers,r)}}static{this.\u0275prov=B({token:e,providedIn:"any",factory:()=>me(ad)})}static{this.__NG_ELEMENT_ID__=-1}};var Ul=class{constructor(t){this.attributeName=t,this.__NG_ELEMENT_ID__=()=>Ha(this.attributeName)}toString(){return`HostAttributeToken ${this.attributeName}`}},fy=new P("");fy.__NG_ELEMENT_ID__=e=>{let t=q();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&L.Optional)return null;throw new D(204,!1)};var Vx="ngOriginalError";function rl(e){return e[Vx]}var py=!0,Cr=(()=>{class e{static{this.__NG_ELEMENT_ID__=Hx}static{this.__NG_ENV_ID__=n=>n}}return e})(),$l=class extends Cr{constructor(t){super(),this._lView=t}onDestroy(t){return Fa(this._lView,t),()=>yd(this._lView,t)}};function Hx(){return new $l(g())}var Jt=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Zr(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Ux=(()=>{class e{constructor(){this.internalPendingTasks=M(Jt)}add(){let n=this.internalPendingTasks.add();return()=>this.internalPendingTasks.remove(n)}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Bl=class extends Ft{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,vv()&&(this.destroyRef=M(Cr,{optional:!0})??void 0,this.pendingTasks=M(Jt,{optional:!0})??void 0)}emit(t){let n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},ct=Bl;function $s(...e){}function hy(e){let t,n;function r(){e=$s;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Hm(e){return queueMicrotask(()=>e()),()=>{e=$s}}var xd="isAngularZone",Bs=xd+"_ID",$x=0,te=class e{constructor(t){this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ct(!1),this.onMicrotaskEmpty=new ct(!1),this.onStable=new ct(!1),this.onError=new ct(!1);let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=py}=t;if(typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Wx(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(xd)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,Bx,$s,$s);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},Bx={};function _d(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function qx(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){hy(()=>{e.callbackScheduled=!1,ql(e),e.isCheckStableRunning=!0,_d(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ql(e)}function Wx(e){let t=()=>{qx(e)},n=$x++;e._inner=e._inner.fork({name:"angular",properties:{[xd]:!0,[Bs]:n,[Bs+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Gx(c))return r.invokeTask(i,s,a,c);try{return Um(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),$m(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Um(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!zx(c)&&t(),$m(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ql(e),_d(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ql(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Um(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $m(e){e._nesting--,_d(e)}var fr=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ct,this.onMicrotaskEmpty=new ct,this.onStable=new ct,this.onError=new ct}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Gx(e){return my(e,"__ignore_ng_zone__")}function zx(e){return my(e,"__scheduler_tick__")}function my(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function Qx(e="zone.js",t){return e==="noop"?new fr:e==="zone.js"?new te(t):e}var Mt=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&rl(t);for(;n&&rl(n);)n=rl(n);return n||null}},gy=new P("",{providedIn:"root",factory:()=>{let e=M(te),t=M(Mt);return n=>e.runOutsideAngular(()=>t.handleError(n))}}),xo=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=M(Mt,{optional:!0}),this.destroyRef=M(Cr),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let n=A(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{A(n)}}};function Zx(e){return e.destroyRef}function Yx(e){return new xo}function Bm(e,t){return Qg(e,t)}function Kx(e){return Qg(Ca,e)}var Jx=(Bm.required=Kx,Bm);function Xx(){return br(q(),g())}function br(e,t){return new ii(Ne(e,t))}var ii=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=Xx}}return e})();function vy(e){return e instanceof ii?e.nativeElement:e}function e_(){return this._results[Symbol.iterator]()}var qs=class e{get changes(){return this._changes??=new ct}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=e_)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=it(t);(this._changesDetected=!vM(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},_o="ngSkipHydration",t_="ngskiphydration";function Nd(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;n=0){let a=U(i[s]),c=qm(i,s,a);xe(a,c),t=c;break}}}}return t||null}function qm(e,t,n){return new Ws(e[ti],t,n)}var Gl="__ngContext__";function xe(e,t){ke(t)?(e[Gl]=t[ti],o_(t)):e[Gl]=t}function ol(e){let t=e[Gl];return typeof t=="number"?Ey(t):t||null}function wy(e){return e&&e.constructor&&e.constructor.\u0275cmp}function i_(e){return e&&e.constructor&&e.constructor.\u0275dir}function Wm(e,t){let n=e[I];for(let r=w;r-1?t[r+o]:null}function u_(e,t){let n=e[I].data[t];if(n&&n.localNames){let r={},o=n.index+1;for(let i=0;i=0?"dom":"output",m=typeof p=="boolean"?p:!1;e==d&&s.push({element:e,name:u,callback:f,useCapture:m,type:h})}}return s.sort(I_),s}function I_(e,t){return e.name==t.name?0:e.nameC_}),C_="ng",My=new P(""),Od=new P("",{providedIn:"platform",factory:()=>"unknown"}),b_=new P(""),T_=new P(""),M_=new P("",{providedIn:"root",factory:()=>Tr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),xy={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},x_=new P("",{providedIn:"root",factory:()=>xy});function __(e){return e}function N_(){let e=new si;return M(Od)==="browser"&&(e.store=S_(Tr(),M($a))),e}var si=(()=>{class e{constructor(){this.store={},this.onSerializeCallbacks={}}static{this.\u0275prov=B({token:e,providedIn:"root",factory:N_})}get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/null;function A_(e,t,n=!1){let r=e.getAttribute(co);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={};if(r!==""){let u=t.get(si,null,{optional:!0});u!==null&&(c=u.get(Pd,[])[Number(r)])}let l={data:c,firstChild:e.firstChild??null};return n&&(l.firstChild=e,Ba(l,0,e.nextSibling)),a?e.setAttribute(co,a):e.removeAttribute(co),l}function R_(){Ny=A_}function kd(e,t,n=!1){return Ny(e,t,n)}function Sy(e){let t=e._lView;return t[I].type===2?null:(To(t)&&(t=t[w]),t)}function P_(e){return e.textContent?.replace(/\s/gm,"")}function k_(e){let t=Tr(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=P_(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}var L_="__ngDebugHydrationInfo__";function F_(e){return e[L_]??null}function Ba(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function Kl(e,t){return e.segmentHeads?.[t]??null}function Oy(e,t){let n=e.data,r=n[Gs]?.[t]??null;return r===null&&n[Ao]?.[t]&&(r=Ld(e,t)),r}function j_(e,t){return e.data[Gs]?.[t]!==void 0}function Ay(e,t){return e.data[Ao]?.[t]??null}function Ld(e,t){let n=Ay(e,t)??[],r=0;for(let o of n)r+=o[pr]*(o[zs]??1);return r}function Ry(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[ao];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function On(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[ao];e.disconnectedNodes=n?new Set(n):null}return!!Ry(e)?.has(t)}function Py(e,t){let n=t,r=e.corruptedTextNodes;n.textContent===""?r.set(n,"ngetn"):n.nextSibling?.nodeType===Node.TEXT_NODE&&r.set(n,"ngtns")}var io=new P(""),ky=!1,Ly=new P("",{providedIn:"root",factory:()=>ky}),Fy=new P(""),Fd=new P(""),jy=!1,ls;function Vy(){if(ls===void 0&&(ls=null,Ge.trustedTypes))try{ls=Ge.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ls}function Mr(e){return Vy()?.createHTML(e)||e}function V_(e){return Vy()?.createScriptURL(e)||e}var us;function jd(){if(us===void 0&&(us=null,Ge.trustedTypes))try{us=Ge.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return us}function zm(e){return jd()?.createHTML(e)||e}function Qm(e){return jd()?.createScript(e)||e}function Zm(e){return jd()?.createScriptURL(e)||e}var xt=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}},Jl=class extends xt{getTypeName(){return"HTML"}},Xl=class extends xt{getTypeName(){return"Style"}},eu=class extends xt{getTypeName(){return"Script"}},tu=class extends xt{getTypeName(){return"URL"}},nu=class extends xt{getTypeName(){return"ResourceURL"}};function Ot(e){return e instanceof xt?e.changingThisBreaksApplicationSecurity:e}function xr(e,t){let n=Hy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ed})`)}return n===t}function Hy(e){return e instanceof xt&&e.getTypeName()||null}function H_(e){return new Jl(e)}function U_(e){return new Xl(e)}function $_(e){return new eu(e)}function B_(e){return new tu(e)}function q_(e){return new nu(e)}function Uy(e){let t=new ou(e);return W_()?new ru(t):t}var ru=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(Mr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},ou=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Mr(t),n}};function W_(){try{return!!new window.DOMParser().parseFromString(Mr(""),"text/html")}catch{return!1}}var G_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qa(e){return e=String(e),e.match(G_)?e:"unsafe:"+e}function At(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function ai(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var $y=At("area,br,col,hr,img,wbr"),By=At("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),qy=At("rp,rt"),z_=ai(qy,By),Q_=ai(By,At("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Z_=ai(qy,At("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),iu=ai($y,Q_,Z_,z_),Vd=At("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Y_=At("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),K_=At("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Wy=ai(Vd,Y_,K_),J_=At("script,style,template"),su=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=tN(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=eN(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Ym(t).toLowerCase();if(!iu.hasOwnProperty(n))return this.sanitizedSomething=!0,!J_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Ym(t).toLowerCase();iu.hasOwnProperty(n)&&!$y.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(Km(t))}};function X_(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function eN(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Gy(t);return t}function tN(e){let t=e.firstChild;if(t&&X_(e,t))throw Gy(t);return t}function Ym(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Gy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var nN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,rN=/([^\#-~ |!])/g;function Km(e){return e.replace(/&/g,"&").replace(nN,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(rN,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var ds;function zy(e,t){let n=null;try{ds=ds||Uy(e);let r=t?String(t):"";n=ds.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ds.getInertBodyElement(r)}while(r!==i);let a=new su().sanitizeChildren(au(n)||n);return Mr(a)}finally{if(n){let r=au(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function au(e){return"content"in e&&oN(e)?e.content:null}function oN(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var An=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(An||{});function Qy(e){let t=ci();return t?zm(t.sanitize(An.HTML,e)||""):xr(e,"HTML")?zm(Ot(e)):zy(Tr(),O(e))}function Zy(e){let t=ci();return t?t.sanitize(An.STYLE,e)||"":xr(e,"Style")?Ot(e):O(e)}function Hd(e){let t=ci();return t?t.sanitize(An.URL,e)||"":xr(e,"URL")?Ot(e):qa(O(e))}function Ud(e){let t=ci();if(t)return Zm(t.sanitize(An.RESOURCE_URL,e)||"");if(xr(e,"ResourceURL"))return Zm(Ot(e));throw new D(904,!1)}function Yy(e){let t=ci();if(t)return Qm(t.sanitize(An.SCRIPT,e)||"");if(xr(e,"Script"))return Qm(Ot(e));throw new D(905,!1)}function Ky(e){return Mr(e[0])}function Jy(e){return V_(e[0])}function iN(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Ud:Hd}function Xy(e,t,n){return iN(t,n)(e)}function ci(){let e=g();return e&&e[dt].sanitizer}var sN=/^>|^->||--!>|)/g,cN="\u200B$1\u200B";function lN(e){return e.replace(sN,t=>t.replace(aN,cN))}var uN={name:"custom-elements"},dN={name:"no-errors-schema"},eI=!1;function fN(e){eI=e}function pN(){return eI}var tI=!1;function hN(e){tI=e}function mN(){return tI}function nI(e){return e.ownerDocument.defaultView}function rI(e){return e.ownerDocument}function $d(e){return e.ownerDocument.body}var gN="\uFFFD";function Dt(e){return e instanceof Function?e():e}function Ae(e){return(e??M(ge)).get(Od)==="browser"}var Zs=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Zs||{}),cu;function Bd(e,t){return cu(e,t)}function vN(e){cu===void 0&&(cu=e())}function tr(e,t,n,r,o){if(r!=null){let i,s=!1;De(r)?i=r:ke(r)&&(s=!0,r=r[ne]);let a=U(r);e===0&&n!==null?o==null?cI(t,n,a):In(t,n,a,o||null,!0):e===1&&n!==null?In(t,n,a,o||null,!0):e===2?li(t,a,s):e===3&&t.destroyNode(a),i!=null&&MN(t,e,i,n,o)}}function qd(e,t){return e.createText(t)}function oI(e,t,n){e.setValue(t,n)}function Wd(e,t){return e.createComment(lN(t))}function Wa(e,t,n){return e.createElement(t,n)}function yN(e,t){iI(e,t),t[ne]=null,t[ve]=null}function IN(e,t,n,r,o,i){r[ne]=o,r[ve]=t,Qa(e,r,n,1,o,i)}function iI(e,t){t[dt].changeDetectionScheduler?.notify(9),Qa(e,t,t[x],2,null,null)}function EN(e){let t=e[Co];if(!t)return il(e[I],e);for(;t;){let n=null;if(ke(t))n=t[Co];else{let r=t[X];r&&(n=r)}if(!n){for(;t&&!t[ze]&&t!==e;)ke(t)&&il(t[I],t),t=t[ie];t===null&&(t=e),ke(t)&&il(t[I],t),n=t&&t[ze]}t=n}}function wN(e,t,n,r){let o=X+r,i=n.length;r>0&&(n[o-1][ze]=t),r0&&(e[n-1][ze]=r[ze]);let i=Os(e,X+t);yN(r[I],r);let s=i[Tt];s!==null&&s.detachView(i[I]),r[ie]=null,r[ze]=null,r[C]&=-129}return r}function Ga(e,t){if(!(t[C]&256)){let n=t[x];n.destroyNode&&Qa(e,t,n,3,null,null),EN(t)}}function il(e,t){if(t[C]&256)return;let n=A(null);try{t[C]&=-129,t[C]|=256,t[He]&&Zi(t[He]),CN(e,t),DN(e,t),t[I].type===1&&t[x].destroy();let r=t[mn];if(r!==null&&De(t[ie])){r!==t[ie]&&Gd(r,t);let o=t[Tt];o!==null&&o.detachView(e)}Wl(t)}finally{A(n)}}function DN(e,t){let n=e.cleanup,r=t[ur];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[ur]=null);let o=t[Ut];if(o!==null){t[Ut]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Wt.None||i===Wt.Emulated)return null}return Ne(r,n)}}function In(e,t,n,r,o){e.insertBefore(t,n,r,o)}function cI(e,t,n){e.appendChild(t,n)}function Jm(e,t,n,r,o){r!==null?In(e,t,n,r,o):cI(e,t,n)}function Qd(e,t){return e.parentNode(t)}function bN(e,t){return e.nextSibling(t)}function lI(e,t,n){return dI(e,t,n)}function uI(e,t,n){return e.type&40?Ne(e,n):null}var dI=uI,lu;function fI(e,t){dI=e,lu=t}function za(e,t,n,r){let o=zd(e,r,t),i=t[x],s=r.parent||t[ve],a=lI(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cw&&II(e,t,w,!1),st(s?2:0,o),n(r,o)}finally{gn(i),st(s?3:1,o)}}function Kd(e,t,n){if(hd(t)){let r=A(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function RN(e){yy(e)?hI(e):k_(e)}function PN(){bI=RN}function kN(e,t,n,r){let o=NI(t);o.push(n),e.firstCreatePass&&SI(e).push(r,o.length-1)}function LN(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Sn()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Xm(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=Gt.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(o!==null){if(!o.hasOwnProperty(i))continue;l=o[i]}e===0?eg(r,n,l,a,c):eg(r,n,l,a)}return r}function eg(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function FN(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function $N(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;_n(n)&&ZN(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Us(n,t),xe(r,t);let s=n.initialInputs;for(let a=o;a{La(e.lView)},consumerOnSignalRead(){this.lView[He]=this}});function iS(e){let t=e[He]??Object.create(sS);return t.lView=e,t}var sS=je(Z({},Wn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=zt(e.lView);for(;t&&!kI(t[I]);)t=zt(t);t&&_v(t)},consumerOnSignalRead(){this.lView[He]=this}});function kI(e){return e.type!==2}var aS=100;function LI(e,t=!0,n=0){let r=e[dt],o=r.rendererFactory,i=!1;i||o.begin?.();try{cS(e,n)}catch(s){throw t&&Ka(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function cS(e,t){let n=jv();try{Rm(!0),pu(e,t);let r=0;for(;ka(e);){if(r===aS)throw new D(103,!1);r++,pu(e,1)}}finally{Rm(n)}}function lS(e,t,n,r){let o=t[C];if((o&256)===256)return;let i=!1,s=!1;!i&&t[dt].inlineEffectRunner?.flush(),Cd(t);let a=!0,c=null,l=null;i||(kI(e)?(l=tS(t),c=Xr(l)):Hc()===null?(a=!1,l=iS(t),c=Xr(l)):t[He]&&(Zi(t[He]),t[He]=null));try{xv(t),Vv(e.bindingStartIndex),n!==null&&DI(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let p=e.preOrderCheckHooks;p!==null&&Ds(t,p,null)}else{let p=e.preOrderHooks;p!==null&&Cs(t,p,0,null),tl(t,0)}if(s||uS(t),FI(t,0),e.contentQueries!==null&&_I(e,t),!i)if(u){let p=e.contentCheckHooks;p!==null&&Ds(t,p)}else{let p=e.contentHooks;p!==null&&Cs(t,p,1),tl(t,1)}NN(e,t);let d=e.components;d!==null&&VI(t,d,0);let f=e.viewQuery;if(f!==null&&fu(2,f,r),!i)if(u){let p=e.viewCheckHooks;p!==null&&Ds(t,p)}else{let p=e.viewHooks;p!==null&&Cs(t,p,2),tl(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[ws]){for(let p of t[ws])p();t[ws]=null}i||(t[C]&=-73)}catch(u){throw i||La(t),u}finally{l!==null&&(zi(l,c),a&&rS(l)),bd()}}function FI(e,t){for(let n=Cy(e);n!==null;n=by(n))for(let r=X;r-1&&(Ro(t,r),Os(n,r))}this._attachedToViewContainer=!1}Ga(this._lView[I],this._lView)}onDestroy(t){Fa(this._lView,t)}markForCheck(){Ja(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[C]&=-129}reattach(){kl(this._lView),this._lView[C]|=128}detectChanges(){this._lView[C]|=1024,LI(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=To(this._lView),n=this._lView[mn];n!==null&&!t&&Gd(n,this._lView),iI(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=To(this._lView),r=this._lView[mn];r!==null&&!n&&sI(r,this._lView),kl(this._lView)}},ko=(()=>{class e{static{this.__NG_ELEMENT_ID__=hS}}return e})(),fS=ko,pS=class extends fS{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Nr(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Qt(o)}};function hS(){return Xa(q(),g())}function Xa(e,t){return e.type&4?new pS(t,e,br(e,t)):null}var hu="<-- AT THIS LOCATION";function mS(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";case 128:return"@let";default:return""}}function gS(e,t){let n=`During serialization, Angular was unable to find an element in the DOM: + +`,r=`${wS(e,t,!1)} + +`,o=CS();throw new D(-502,n+r+o)}function vS(e){let t="During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via `ViewContainerRef.createComponent` or `createComponent` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using `ngSkipHydration` on the host element of the component.\n\n",n=`${DS(e)} + +`,r=t+n+bS();return new D(-503,r)}function yS(e){let t=[];if(e.attrs)for(let n=0;n${t}`;case 8:return"";case 4:return"";default:return`#node(${mS(e.type)})`}}function Ms(e,t="\u2026"){let n=e;switch(n.nodeType){case Node.ELEMENT_NODE:let r=n.tagName.toLowerCase(),o=ES(n);return`<${r}${o?" "+o:""}>${t}`;case Node.TEXT_NODE:let i=n.textContent?Ys(n.textContent):"";return`#text${i?`(${i})`:""}`;case Node.COMMENT_NODE:return``;default:return`#node(${n.nodeType})`}}function wS(e,t,n){let r=" ",o="";t.prev?(o+=r+`\u2026 +`,o+=r+sl(t.prev)+` +`):t.type&&t.type&12&&(o+=r+`\u2026 +`),n?(o+=r+sl(t)+` +`,o+=r+` ${hu} +`):o+=r+sl(t)+` ${hu} +`,o+=r+`\u2026 +`;let i=t.type?zd(e[I],t,e):null;return i&&(o=Ms(i,` +`+o)),o}function DS(e){let t=" ",n="",r=e;return r.previousSibling&&(n+=t+`\u2026 +`,n+=t+Ms(r.previousSibling)+` +`),n+=t+Ms(r)+` ${hu} +`,e.nextSibling&&(n+=t+`\u2026 +`),e.parentNode&&(n=Ms(r.parentNode,` +`+n)),n}function CS(e){return`To fix this problem: + * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues + * check to see if your template has valid HTML structure + * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template + +`}function bS(){return`Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches. + +`}function TS(e){return e.replace(/\s+/gm,"")}function Ys(e,t=50){return e?(e=TS(e),e.length>t?`${e.substring(0,t-1)}\u2026`:e):""}function HI(e,t,n){let r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?uI(e,t,n):U(n[o])}function UI(e,t,n,r,o){let i=t.insertBeforeIndex;if(Array.isArray(i)){let s=r,a=null;if(t.type&3||(a=s,s=o),s!==null&&t.componentOffset===-1)for(let c=1;c1)for(let n=e.length-2;n>=0;n--){let r=e[n];BI(r)||MS(r,t)&&xS(r)===null&&_S(r,t.index)}}function BI(e){return!(e.type&64)}function MS(e,t){return BI(t)||e.index>t.index}function xS(e){let t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function _S(e,t){let n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(fI(HI,UI),e.insertBeforeIndex=t)}function lo(e,t){let n=e.data[t];return n===null||typeof n=="string"?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function NS(e,t,n){let r=e.data[t];r===null?e.data[t]=n:r.value=n}function SS(e,t){let n=e.insertBeforeIndex;n===null?(fI(HI,UI),n=e.insertBeforeIndex=[null,t]):(tM(Array.isArray(n),!0,"Expecting array here"),n.push(t))}function OS(e,t,n){let r=Yd(e,n,64,null,null);return $I(t,r),r}function ec(e,t){let n=t[e.currentCaseLViewIndex];return n===null?n:n<0?~n:n}function AS(e){return e>>>17}function RS(e){return(e&131070)>>>1}function PS(e,t,n){return e|t<<17|n<<1}function qI(e){return e===-1}function af(e,t,n){e.index=0;let r=ec(t,n);r!==null?e.removes=t.remove[r]:e.removes=V}function Ks(e){if(e.index0)return e.lView[t];{e.stack.push(e.index,e.removes);let n=~t,r=e.lView[I].data[n];return af(e,r,e.lView),Ks(e)}}else return e.stack.length===0?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),Ks(e))}function kS(){let e={stack:[],index:-1};function t(n,r){for(e.lView=r;e.stack.length;)e.stack.pop();return af(e,n.value,r),Ks.bind(null,e)}return t}function LS(e,t){let n={stack:[],index:-1,lView:t};return af(n,e,t),Ks.bind(null,n)}var FS=new RegExp(`^(\\d+)*(${Rd}|${Ad})*(.*)`);function jS(e,t){let n=[e];for(let r of t){let o=n.length-1;if(o>0&&n[o-1]===r){let i=n[o]||1;n[o]=i+1}else n.push(r,"")}return n.join("")}function VS(e){let t=e.match(FS),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,l,u]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(u,10)||1;a.push(l,d)}return[s,...a]}function HS(e){return!e.prev&&e.parent?.type===8}function al(e){return e.index-w}function Lo(e,t){return!(e.type&144)&&!!t[e.index]&&WI(U(t[e.index]))}function WI(e){return!!e&&!e.isConnected}function GI(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function US(e,t,n){let o=e.data[Qs]?.[n];return o?zI(o,t):null}function di(e,t,n,r){let o=al(r),i=GI(e,o);if(i===void 0){let s=e.data[Qs];if(s?.[o])i=zI(s[o],n);else if(t.firstChild===r)i=e.firstChild;else{let a=r.prev===null,c=r.prev??r.parent;if(HS(r)){let l=al(r.parent);i=Kl(e,l)}else{let l=Ne(c,n);if(a)i=l.firstChild;else{let u=al(c),d=Kl(e,u);if(c.type===2&&d){let p=Ld(e,u)+1;i=tc(p,d)}else i=l.nextSibling}}}}return i}function tc(e,t){let n=t;for(let r=0;r{};function YI(e){QI=e}function cf(){return QI}function WS(e,t,n,r){ZI(e,t,n,r)}function GS(){ZI=eO}function zS(e){return e=e??M(ge),e.get(Fy,!1)}function QS(e,t){let n=t.i18nChildren.get(e);return n===void 0&&(n=ZS(e),t.i18nChildren.set(e,n)),n}function ZS(e){let t=new Set;function n(r){switch(t.add(r.index),r.kind){case 1:case 2:{for(let o of r.children)n(o);break}case 3:{for(let o of r.cases)for(let i of o)n(i);break}}}for(let r=w;r{};function tO(e,t,n){KI(e,t,n)}function nO(){KI=rO}function rO(e,t,n){let r=e[we]?.dehydratedIcuData;r&&r.get(t)?.case===n&&r.delete(t)}function oO(e){let t=e[we];if(t){let{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){let o=e[x];for(let i of r.values())iO(o,n,i)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}function iO(e,t,n){for(let r of n.node.cases[n.case]){let o=t.get(r.index-w);o&&li(e,o,!1)}}function JI(e){let t=e[bo]??[],r=e[ie][x];for(let o of t)sO(o,r);e[bo]=V}function sO(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[pr];for(;n0&&(i.firstChild=e,e=tc(r[pr],e)),n.push(i)}return[e,n]}var eE=()=>null;function lO(e,t){let n=e[bo];return!t||n===null||n.length===0?null:n[0].data[Zl]===t?n.shift():(JI(e),null)}function uO(){eE=lO}function wn(e,t){return eE(e,t)}var _t=class{},fi=new P("",{providedIn:"root",factory:()=>!1});var tE=new P(""),lf=new P(""),Xs=class{},Fo=class{};function dO(e){let t=Error(`No component factory found for ${he(e)}.`);return t[fO]=e,t}var fO="ngComponent";var vu=class{resolveComponentFactory(t){throw dO(t)}},Dn=class{static{this.NULL=new vu}},jo=class{},pO=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>hO()}}return e})();function hO(){let e=g(),t=q(),n=Ye(t.index,e);return(ke(n)?n:e)[x]}var nE=(()=>{class e{static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>null})}}return e})();function uf(e){return e.ngModule!==void 0}function Ht(e){return!!Qe(e)}function fs(e){return!!Pe(e)}function ng(e){return!!Re(e)}function uo(e){return!!Q(e)}function mO(e){return Q(e)?"component":Re(e)?"directive":Pe(e)?"pipe":"type"}function gO(e,t){if(Ta(e)&&(e=j(e),!e))throw new Error(`Expected forwardRef function, imported from "${Ve(t)}", to return a standalone entity or NgModule but got "${Ve(e)||e}".`);if(Qe(e)==null){let n=Q(e)||Re(e)||Pe(e);if(n!=null){if(!n.standalone)throw new Error(`The "${Ve(e)}" ${mO(e)}, imported from "${Ve(t)}", is not standalone. Did you forget to add the standalone: true flag?`)}else throw uf(e)?new Error(`A module with providers was imported from "${Ve(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${Ve(e)}" type, imported from "${Ve(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var ea=!0,yu=class{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let t of this.ngModulesWithSomeUnresolvedDecls){let n=Qe(t);if(n?.declarations)for(let r of Dt(n.declarations))uo(r)&&this.ownerNgModule.set(r,t)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(t,n){this.resolveNgModulesDecls();let r=Q(t);if(r===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${t}`);if(r.standalone){let o=this.getStandaloneComponentScope(t,n);return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes,...o.compilation.ngModules]}}else{if(!this.ownerNgModule.has(t))return{dependencies:[]};let o=this.getNgModuleScope(this.ownerNgModule.get(t));return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes]}}}registerNgModule(t,n){if(!Ht(t))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${t}`);this.ngModulesWithSomeUnresolvedDecls.add(t)}clearScopeCacheFor(t){this.ngModulesScopeCache.delete(t),this.standaloneComponentsScopeCache.delete(t)}getNgModuleScope(t){if(this.ngModulesScopeCache.has(t))return this.ngModulesScopeCache.get(t);let n=this.computeNgModuleScope(t);return this.ngModulesScopeCache.set(t,n),n}computeNgModuleScope(t){let n=Qe(t,!0),r={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let o of Dt(n.imports))if(Ht(o)){let i=this.getNgModuleScope(o);Vt(i.exported.directives,r.compilation.directives),Vt(i.exported.pipes,r.compilation.pipes)}else if(wo(o))if(ng(o)||uo(o))r.compilation.directives.add(o);else if(fs(o))r.compilation.pipes.add(o);else throw new D(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");else{r.compilation.isPoisoned=!0;break}if(!r.compilation.isPoisoned)for(let o of Dt(n.declarations)){if(Ht(o)||wo(o)){r.compilation.isPoisoned=!0;break}fs(o)?r.compilation.pipes.add(o):r.compilation.directives.add(o)}for(let o of Dt(n.exports))if(Ht(o)){let i=this.getNgModuleScope(o);Vt(i.exported.directives,r.exported.directives),Vt(i.exported.pipes,r.exported.pipes),Vt(i.exported.directives,r.compilation.directives),Vt(i.exported.pipes,r.compilation.pipes)}else fs(o)?r.exported.pipes.add(o):r.exported.directives.add(o);return r}getStandaloneComponentScope(t,n){if(this.standaloneComponentsScopeCache.has(t))return this.standaloneComponentsScopeCache.get(t);let r=this.computeStandaloneComponentScope(t,n);return this.standaloneComponentsScopeCache.set(t,r),r}computeStandaloneComponentScope(t,n){let r={compilation:{directives:new Set([t]),pipes:new Set,ngModules:new Set}};for(let o of it(n??[])){let i=j(o);try{gO(i,t)}catch{return r.compilation.isPoisoned=!0,r}if(Ht(i)){r.compilation.ngModules.add(i);let s=this.getNgModuleScope(i);if(s.exported.isPoisoned)return r.compilation.isPoisoned=!0,r;Vt(s.exported.directives,r.compilation.directives),Vt(s.exported.pipes,r.compilation.pipes)}else if(fs(i))r.compilation.pipes.add(i);else if(ng(i)||uo(i))r.compilation.directives.add(i);else return r.compilation.isPoisoned=!0,r}return r}isOrphanComponent(t){let n=Q(t);return!n||n.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(t))}};function Vt(e,t){for(let n of e)t.add(n)}var hr=new yu;function ta(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&gI(e,n,i.join(" "))}}function CO(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=bO}}return e})();function bO(){let e=q();return iE(e,g())}var TO=nc,oE=class extends TO{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return br(this._hostTNode,this._hostLView)}get injector(){return new $t(this._hostTNode,this._hostLView)}get parentInjector(){let t=Td(this._hostTNode,this._hostLView);if(Xv(t)){let n=Vs(t,this._hostLView),r=js(t),o=n[I].data[r+8];return new $t(o,n)}else return new $t(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=og(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-X}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=wn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,En(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!oo(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new Zt(Q(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?l:this.parentInjector).get(ut,null);m&&(i=m)}let u=Q(c.componentType??{}),d=wn(this._lContainer,u?.id??null),f=d?.firstChild??null,p=c.create(l,o,f,i);return this.insertImpl(p.hostView,a,En(this._hostTNode,d)),p}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(ox(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ie],l=new oE(c,c[ve],c[ie]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Sr(s,o,i,r),t.attachToViewContainerRef(),nv(ul(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=og(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Ro(this._lContainer,n);r&&(Os(ul(this._lContainer),n),Ga(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=Ro(this._lContainer,n);return r&&Os(ul(this._lContainer),n)!=null?new Qt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function og(e){return e[ks]}function ul(e){return e[ks]||(e[ks]=[])}function iE(e,t){let n,r=t[e.index];return De(r)?n=r:(n=xI(r,t,null,e),t[e.index]=n,Ya(t,n)),sE(n,t,e,r),new oE(n,e,t)}function MO(e,t){let n=e[x],r=n.createComment(""),o=Ne(t,e),i=Qd(n,o);return In(n,i,r,bN(n,o),!1),r}var sE=cE,df=()=>!1;function aE(e,t,n){return df(e,t,n)}function cE(e,t,n,r){if(e[ft])return;let o;n.type&8?o=U(r):o=MO(t,n),e[ft]=o}function xO(e,t,n){if(e[ft]&&e[bo])return!0;let r=n[we],o=t.index-w;if(!r||So(t)||On(r,o))return!1;let s=Kl(r,o),a=r.data[Ao]?.[o],[c,l]=cO(s,a);return e[ft]=c,e[bo]=l,!0}function _O(e,t,n,r){df(e,n,t)||cE(e,t,n,r)}function NO(){sE=_O,df=xO}var Iu=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Eu=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=X;dt.trim())}function pE(e,t,n){e.queries===null&&(e.queries=new wu),e.queries.track(new Du(t,n))}function kO(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function pf(e,t){return e.queries.getByIndex(t)}function hE(e,t){let n=e[I],r=pf(n,t);return r.crossesNgTemplate?Cu(n,e,t,[]):lE(n,e,r,t)}var ig=new Set;function ye(e){ig.has(e)||(ig.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function mE(e){return typeof e=="function"&&e[pe]!==void 0}function LO(e){return null}function gE(e,t){ye("NgSignals");let n=Qh(e),r=n[pe];return t?.equal&&(r.equal=t.equal),n.set=o=>eo(r,o),n.update=o=>Zh(r,o),n.asReadonly=vE.bind(n),n}function vE(){let e=this[pe];if(e.readonlyFn===void 0){let t=()=>this();t[pe]=e,e.readonlyFn=t}return e.readonlyFn}function yE(e){return mE(e)&&typeof e.set=="function"}function hf(e,t){let n,r=Uc(()=>{n._dirtyCounter();let o=FO(n,e);if(t&&o===void 0)throw new D(-951,!1);return o});return n=r[pe],n._dirtyCounter=gE(0),n._flatValue=void 0,r}function IE(){return hf(!0,!1)}function EE(){return hf(!0,!0)}function wE(){return hf(!1,!1)}function DE(e,t){let n=e[pe];n._lView=g(),n._queryIndex=t,n._queryList=ff(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function FO(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[C]&4)return t?void 0:V;let o=ff(n,r),i=hE(n,r);return o.reset(i,vy),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function sg(e,t){return IE()}function jO(e,t){return EE()}var VO=(sg.required=jO,sg);function HO(e,t){return wE()}function ag(e,t){return IE()}function UO(e,t){return EE()}var $O=(ag.required=UO,ag);function BO(e,t){return wE()}function CE(e){let t=Object.create(zg),n=new xo;t.value=e;function r(){return Jr(t),cg(t.value),t.value}return r[pe]=t,r.asReadonly=vE.bind(r),r.set=o=>{t.equal(t.value,o)||(eo(t,o),n.emit(o))},r.update=o=>{cg(t.value),r.set(o(t.value))},r.subscribe=n.subscribe.bind(n),r.destroyRef=n.destroyRef,r}function cg(e){if(e===Ca)throw new D(952,!1)}function lg(e){return CE(e)}function qO(){return CE(Ca)}var WO=(lg.required=qO,lg),bE=!0,Cn=class{},GO=Kt("ContentChildren",(e,t={})=>Z({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:bE},t),Cn),zO=Kt("ContentChild",(e,t={})=>Z({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Cn),QO=Kt("ViewChildren",(e,t={})=>Z({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:bE},t),Cn),ZO=Kt("ViewChild",(e,t)=>Z({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Cn);function TE(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(eA))}return i}return mr.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(l=>{o.template=l}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let l=o.styles.length,u=o.styleUrls;o.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(p=>{a[l+f]=p,u.splice(u.indexOf(d),1),u.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(l=>{a.push(l),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>tA(i));t.push(c)}),xE(),Promise.all(t).then(()=>{})}var mr=new Map,Vo=new Set;function YO(e,t){ME(t)&&(mr.set(e,t),Vo.add(e))}function KO(e){return Vo.has(e)}function ME(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function xE(){let e=mr;return mr=new Map,e}function JO(e){Vo.clear(),e.forEach((t,n)=>Vo.add(n)),mr=e}function XO(){return mr.size===0}function eA(e){return typeof e=="string"?e:e.text()}function tA(e){Vo.delete(e)}var bu=new Map,_E=!0;function nA(e,t,n){if(t&&t!==n&&_E)throw new Error(`Duplicate module registered for ${e} - ${he(t)} vs ${he(t.name)}`)}function mf(e,t){let n=bu.get(t)||null;nA(t,n,e),bu.set(t,e)}function NE(e){return bu.get(e)}function rA(e){_E=!e}function SE(e,t,n){let r=g(),o=z(),i=Ne(o,r);if(o.type===2&&t.toLowerCase()==="iframe"){let s=i;s.src="",s.srcdoc=Mr(""),li(r[x],s);let a=!1;throw new D(-910,a)}return e}function OE(e){return Object.getPrototypeOf(e.prototype).constructor}function gf(e){let t=OE(e.type),n=!0,r=[e];for(;t;){let o;if(Ze(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ps(e.inputs),s.inputTransforms=ps(e.inputTransforms),s.declaredInputs=ps(e.declaredInputs),s.outputs=ps(e.outputs);let a=o.hostBindings;a&&cA(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&sA(e,c),l&&aA(e,l),oA(e,o),JT(e.outputs,o.outputs),Ze(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Eo(o.hostAttrs,n=Eo(n,o.hostAttrs))}}function ps(e){return e===lt?{}:e===V?[]:e}function sA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function aA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function cA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var lA=["providersResolver"],uA=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function AE(e){let t=OE(e.type),n;Ze(e)?n=t.\u0275cmp:n=t.\u0275dir;let r=e;for(let o of lA)r[o]=n[o];if(Ze(n))for(let o of uA)r[o]=n[o]}function RE(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:j(o),inputs:lt,outputs:lt}:{directive:j(o.directive),inputs:ug(o.inputs),outputs:ug(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=PE,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function PE(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=Re(r.directive);dA(o.declaredInputs,r.inputs),PE(o,t,n),n.set(o,r),t.push(o)}}function ug(e){if(e===void 0||e.length===0)return lt;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},vr=class extends ia{constructor(t){super(),this.moduleType=t}create(t){return new gr(this.moduleType,t,[])}};function pA(e,t,n){return new gr(e,t,n,!1)}var sa=class extends Yt{constructor(t){super(),this.componentFactoryResolver=new na(this),this.instance=null;let n=new Do([...t.providers,{provide:Yt,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver}],t.parent||Aa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function vf(e,t,n=null){return new sa({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var hA=(()=>{class e{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?vf(o,r,i):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=B({token:e,providedIn:"environment",factory:()=>new e})}}return e})();function aa(e){return yf(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function mA(e,t,n){let r=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done||!n(i.value,s.value))return!1}}function gA(e,t){if(Array.isArray(e))for(let n=0;n{class e{constructor(){this.impl=null}execute(){this.impl?.execute()}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}}return e})(),Mu=class e{constructor(){this.ngZone=M(te),this.scheduler=M(_t),this.errorHandler=M(Mt,{optional:!0}),this.sequences=new Set,this.deferredRegistrations=new Set,this.executing=!1}static{this.PHASES=[pn.EarlyRead,pn.Write,pn.MixedReadWrite,pn.Read]}execute(){this.executing=!0;for(let t of e.PHASES)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[t]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>n.hooks[t](n.pipelinedValue))}catch(r){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let t of this.sequences)t.afterRun(),t.once&&(this.sequences.delete(t),t.destroy());for(let t of this.deferredRegistrations)this.sequences.add(t);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear()}register(t){this.executing?this.deferredRegistrations.add(t):(this.sequences.add(t),this.scheduler.notify(6))}unregister(t){this.executing&&this.sequences.has(t)?(t.erroredOrDestroyed=!0,t.pipelinedValue=void 0,t.once=!0):(this.sequences.delete(t),this.deferredRegistrations.delete(t))}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}},xu=class{constructor(t,n,r,o){this.impl=t,this.hooks=n,this.once=r,this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function BE(e,t){!t?.injector&&Ra(BE);let n=t?.injector??M(ge);return Ae(n)?(ye("NgAfterRender"),qE(e,n,t,!1)):WE}function ca(e,t){!t?.injector&&Ra(ca);let n=t?.injector??M(ge);return Ae(n)?(ye("NgAfterNextRender"),qE(e,n,t,!0)):WE}function DA(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function qE(e,t,n,r){let o=t.get(wf);o.impl??=t.get(Mu);let i=n?.phase??pn.MixedReadWrite,s=n?.manualCleanup!==!0?t.get(Cr):null,a=new xu(o.impl,DA(e,i),r,s);return o.impl.register(a),a}var WE={destroy(){}};function sc(e){return e+1}function Pn(e,t){let n=e[I],r=sc(t.index);return e[r]}function CA(e,t,n){let r=e[I],o=sc(t);e[o]=n}function Fe(e,t){let n=sc(t.index);return e.data[n]}function bA(e,t,n){let r=sc(t);e.data[r]=n}function TA(e,t,n){let r=t[I],o=Fe(r,n);switch(e){case K.Complete:return o.primaryTmplIndex;case K.Loading:return o.loadingTmplIndex;case K.Error:return o.errorTmplIndex;case K.Placeholder:return o.placeholderTmplIndex;default:return null}}function _u(e,t){return t===K.Placeholder?e.placeholderBlockConfig?.[dg]??null:t===K.Loading?e.loadingBlockConfig?.[dg]??null:null}function GE(e){return e.loadingBlockConfig?.[EA]??null}function fg(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function MA(e,t){let n=t.primaryTmplIndex+w;return ri(e,n)}function xA(e){return e!==null&&typeof e=="object"&&typeof e.primaryTmplIndex=="number"}var la={passive:!0,capture:!0},dl=new WeakMap,fl=new WeakMap,zn=new WeakMap,pg=["click","keydown"],hg=["mouseenter","focusin"],Qn=null,pl=0,$o=class{constructor(){this.callbacks=new Set,this.listener=()=>{for(let t of this.callbacks)t()}}};function zE(e,t){let n=fl.get(e);if(!n){n=new $o,fl.set(e,n);for(let r of pg)e.addEventListener(r,n.listener,la)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){fl.delete(e);for(let i of pg)e.removeEventListener(i,o,la)}}}function QE(e,t){let n=dl.get(e);if(!n){n=new $o,dl.set(e,n);for(let r of hg)e.addEventListener(r,n.listener,la)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){for(let i of hg)e.removeEventListener(i,o,la);dl.delete(e)}}}function ZE(e,t,n){let r=n.get(te),o=zn.get(e);return Qn=Qn||r.runOutsideAngular(()=>new IntersectionObserver(i=>{for(let s of i)s.isIntersecting&&zn.has(s.target)&&r.run(zn.get(s.target).listener)})),o||(o=new $o,r.runOutsideAngular(()=>Qn.observe(e)),zn.set(e,o),pl++),o.callbacks.add(t),()=>{zn.has(e)&&(o.callbacks.delete(t),o.callbacks.size===0&&(Qn?.unobserve(e),zn.delete(e),pl--),pl===0&&(Qn?.disconnect(),Qn=null))}}function _A(e,t,n){return n==null?e:n>=0?Nv(n,e):e[t.index][X]??null}function NA(e,t){return ni(w+t,e)}function Ar(e,t,n,r,o,i,s){let a=e[ue],c=a.get(te);function l(){if(Pl(e))return;let u=Pn(e,t),d=u[oc];if(d!==Uo.Initial&&d!==K.Placeholder)return;let f=_A(e,t,r);if(!f){ca({read:l},{injector:a});return}if(Pl(f))return;let p=NA(f,n),h=o(p,()=>{c.run(()=>{e!==f&&yd(f,h),i()})},a);e!==f&&Fa(f,h),ic(s,u,h)}ca({read:l},{injector:a})}function YE(e,t){let r=t[ue].get(AA),o=()=>r.remove(e);return r.add(e),o}var SA=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,OA=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,AA=(()=>{class e{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=M(te),this.requestIdleCallbackFn=SA().bind(globalThis),this.cancelIdleCallbackFn=OA().bind(globalThis)}add(n){(this.executingCallbacks?this.deferred:this.current).add(n),this.idleId===null&&this.scheduleIdleCallback()}remove(n){let{current:r,deferred:o}=this;r.delete(n),o.delete(n),r.size===0&&o.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let n=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let r of this.current)r();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let r of this.deferred)this.current.add(r);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(n))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}}return e})();function KE(e){return(t,n)=>JE(e,t,n)}function JE(e,t,n){let o=n[ue].get(RA),i=()=>o.remove(t);return o.add(e,t),i}var RA=(()=>{class e{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(n,r){let o=this.executingCallbacks?this.deferred:this.current;this.addToQueue(o,Date.now()+n,r),this.scheduleTimer()}remove(n){let{current:r,deferred:o}=this;this.removeFromQueue(r,n)===-1&&this.removeFromQueue(o,n),r.length===0&&o.length===0&&this.clearTimeout()}addToQueue(n,r,o){let i=n.length;for(let s=0;sr){i=s;break}rv(n,i,r,o)}removeFromQueue(n,r){let o=-1;for(let i=0;i-1&&Mm(n,o,2),o}scheduleTimer(){let n=()=>{this.clearTimeout(),this.executingCallbacks=!0;let o=[...this.current],i=Date.now();for(let a=0;a=0&&Mm(this.current,0,s+1),this.executingCallbacks=!1,this.deferred.length>0){for(let a=0;a0){let o=Date.now(),i=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-i>16){this.clearTimeout();let s=Math.max(i-o,16);this.invokeTimerAt=i,this.timeoutId=setTimeout(n,s)}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new e})}}return e})(),PA=new P("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),XE=new P("");function Df(e){return e.get(XE,null,{optional:!0})?.behavior===Ef.Manual?!1:Ae(e)}var Nu=null;function ew(e,t,n,r){let o=e.consts;n!=null&&(t.placeholderBlockConfig=Ue(o,n)),r!=null&&(t.loadingBlockConfig=Ue(o,r)),Nu===null&&(Nu=LA)}function tw(e,t,n,r,o,i,s,a,c){let l=g(),u=k(),d=e+w,f=Ho(l,u,e,null,0,0);if(u.firstCreatePass){ye("NgDefer");let v={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:oe.NOT_STARTED,loadingPromise:null,providers:null};c?.(u,v,a,s),bA(u,d,v)}let p=l[d];aE(p,f,l);let h=[null,Uo.Initial,null,null,null,null];CA(l,d,h);let m=()=>$E(h);ic(0,h,()=>yd(l,m)),Fa(l,m)}function nw(e){let t=g(),n=Je();if(re(t,n,e)){let r=A(null);try{let o=!!e,i=z(),a=Pn(t,i)[oc];o===!1&&a===Uo.Initial?Rr(t,i):o===!0&&(a===Uo.Initial||a===K.Placeholder)&&Pr(t,i)}finally{A(r)}}}function rw(e){let t=g(),n=Je();if(re(t,n,e)){let r=A(null);try{let o=!!e,i=t[I],s=z(),a=Fe(i,s);o===!0&&a.loadingState===oe.NOT_STARTED&&hi(a,t,s)}finally{A(r)}}}function ow(){gw(YE)}function iw(){vw(YE)}function sw(){let e=g(),t=q(),n=e[I],r=e[ue],o=Fe(n,t);(!Df(r)||o.loadingTmplIndex===null)&&Rr(e,t),Pr(e,t)}function aw(){let e=g(),t=q(),n=e[I],r=Fe(n,t);r.loadingState===oe.NOT_STARTED&&ac(r,e,t)}function cw(e){gw(KE(e))}function lw(e){vw(KE(e))}function uw(e,t){let n=g(),r=q();Rr(n,r),Ar(n,r,e,t,QE,()=>Pr(n,r),0)}function dw(e,t){let n=g(),r=q(),o=n[I],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Ar(n,r,e,t,QE,()=>hi(i,n,r),1)}function fw(e,t){let n=g(),r=q();Rr(n,r),Ar(n,r,e,t,zE,()=>Pr(n,r),0)}function pw(e,t){let n=g(),r=q(),o=n[I],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Ar(n,r,e,t,zE,()=>hi(i,n,r),1)}function hw(e,t){let n=g(),r=q();Rr(n,r),Ar(n,r,e,t,ZE,()=>Pr(n,r),0)}function mw(e,t){let n=g(),r=q(),o=n[I],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Ar(n,r,e,t,ZE,()=>hi(i,n,r),1)}function gw(e){let t=g(),n=q();if(Rr(t,n),Ae(t[ue])){let r=e(()=>Pr(t,n),t),o=Pn(t,n);ic(0,o,r)}}function vw(e){let t=g();if(Ae(t[ue])){let n=q(),r=t[I],o=Fe(r,n);if(o.loadingState===oe.NOT_STARTED){let i=Pn(t,n),a=e(()=>hi(o,t,n),t);ic(1,i,a)}}}function Ct(e,t,n,r=!1){let o=n[ie],i=o[I];if(Pl(o))return;let s=Pn(o,t),a=s[oc];if(gg(a,e)&&gg(s[ar]??-1,e)){let c=o[ue],l=Fe(i,t),d=!r&&Ae(c)&&(GE(l)!==null||_u(l,K.Loading)!==null||_u(l,K.Placeholder))?Nu:yw;try{d(e,s,n,t,o)}catch(f){Ka(o,f)}}}function hl(e,t,n){return e.get(hA).getOrCreateInjector(t,e,n,"")}function kA(e,t,n){if(e instanceof sr){let o=e.injector,i=e.parentInjector,s=hl(i,t,n);return new sr(o,s)}let r=e.get(ut);if(r!==e){let o=hl(r,t,n);return new sr(e,o)}return hl(e,t,n)}function yw(e,t,n,r,o){let i=TA(e,o,r);if(i!==null){t[oc]=e;let s=o[I],a=i+w,c=ri(s,a),l=0;sf(n,l);let u;if(e===K.Complete){let p=Fe(s,r),h=p.providers;h&&h.length>0&&(u=kA(o[ue],p,h))}let d=wn(n,c.tView.ssrId),f=Nr(o,c,null,{dehydratedView:d,injector:u});Sr(n,f,l,En(c,d)),Ja(f,2)}}function LA(e,t,n,r,o){let i=Date.now(),s=o[I],a=Fe(s,r);if(t[so]===null||t[so]<=i){t[so]=null;let c=GE(a),l=t[hs]!==null;if(e===K.Loading&&c!==null&&!l){t[ar]=e;let u=mg(c,t,r,n,o);t[hs]=u}else{e>K.Loading&&l&&(t[hs](),t[hs]=null,t[ar]=null),yw(e,t,n,r,o);let u=_u(a,e);u!==null&&(t[so]=i+u,mg(u,t,r,n,o))}}else t[ar]=e}function mg(e,t,n,r,o){return JE(e,()=>{let s=t[ar];t[so]=null,t[ar]=null,s!==null&&Ct(s,n,r)},o)}function gg(e,t){return e{let d=!1,f=[],p=[];for(let h of u)if(h.status==="fulfilled"){let m=h.value,v=Q(m)||Re(m);if(v)f.push(v);else{let y=Pe(m);y&&p.push(y)}}else{d=!0;break}if(e.loadingPromise=null,c.remove(l),d){if(e.loadingState=oe.FAILED,e.errorTmplIndex===null){let h="",m=new D(750,!1);Ka(t,m)}}else{e.loadingState=oe.COMPLETE;let h=s.tView;if(f.length>0){h.directiveRegistry=fg(h.directiveRegistry,f);let m=f.map(y=>y.type),v=ud(!1,...m);e.providers=v}p.length>0&&(h.pipeRegistry=fg(h.pipeRegistry,p))}}),e.loadingPromise):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=oe.COMPLETE,c.remove(l)}),e.loadingPromise)}function Rr(e,t){let n=e[t.index];Ct(K.Placeholder,t,n)}function vg(e,t,n){e.loadingPromise.then(()=>{e.loadingState===oe.COMPLETE?Ct(K.Complete,t,n):e.loadingState===oe.FAILED&&Ct(K.Error,t,n)})}function Pr(e,t){let n=e[I],r=e[t.index],o=e[ue];if(!Df(o))return;let i=Pn(e,t),s=Fe(n,t);switch($E(i),s.loadingState){case oe.NOT_STARTED:Ct(K.Loading,t,r),ac(s,e,t),s.loadingState===oe.IN_PROGRESS&&vg(s,t,r);break;case oe.IN_PROGRESS:Ct(K.Loading,t,r),vg(s,t,r);break;case oe.COMPLETE:Ct(K.Complete,t,r);break;case oe.FAILED:Ct(K.Error,t,r);break;default:}}function Cf(e,t,n,r){let o=g(),i=Je();if(re(o,i,t)){let s=k(),a=z();mt(a,o,e,t,n,r)}return Cf}function kr(e,t){let n=!1,r=Nt();for(let i=1;i>17&32767}function FA(e){return(e&2)==2}function jA(e,t){return e&131071|t<<17}function Su(e){return e|2}function yr(e){return(e&131068)>>2}function ml(e,t){return e&-131069|t<<2}function VA(e){return(e&1)===1}function Ou(e){return e|1}function HA(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Tn(s),c=yr(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||Xo(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let f=Tn(e[a+1]);e[r+1]=ms(f,a),f!==0&&(e[f+1]=ml(e[f+1],r)),e[a+1]=jA(e[a+1],r)}else e[r+1]=ms(a,0),a!==0&&(e[a+1]=ml(e[a+1],r)),a=r;else e[r+1]=ms(c,0),a===0?a=r:e[c+1]=ml(e[c+1],r),c=r;l&&(e[r+1]=Su(e[r+1])),yg(e,u,r,!0),yg(e,u,r,!1),UA(t,u,e,r,i),s=ms(a,c),i?t.classBindings=s:t.styleBindings=s}function UA(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Xo(i,t)>=0&&(n[r+1]=Ou(n[r+1]))}function yg(e,t,n,r){let o=e[n+1],i=t===null,s=r?Tn(o):yr(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];$A(c,t)&&(a=!0,e[s+1]=r?Ou(l):Su(l)),s=r?Tn(l):yr(l)}a&&(e[n+1]=r?Su(o):Ou(o))}function $A(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Xo(e,t)>=0:!1}var ae={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Iw(e){return e.substring(ae.key,ae.keyEnd)}function BA(e){return e.substring(ae.value,ae.valueEnd)}function qA(e){return Dw(e),Ew(e,Ir(e,0,ae.textEnd))}function Ew(e,t){let n=ae.textEnd;return n===t?-1:(t=ae.keyEnd=GA(e,ae.key=t,n),Ir(e,t,n))}function WA(e){return Dw(e),ww(e,Ir(e,0,ae.textEnd))}function ww(e,t){let n=ae.textEnd,r=ae.key=Ir(e,t,n);return n===r?-1:(r=ae.keyEnd=zA(e,r,n),r=Ig(e,r,n,58),r=ae.value=Ir(e,r,n),r=ae.valueEnd=QA(e,r,n),Ig(e,r,n,59))}function Dw(e){ae.key=0,ae.keyEnd=0,ae.value=0,ae.valueEnd=0,ae.textEnd=e.length}function Ir(e,t,n){for(;t32;)t++;return t}function zA(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function Ig(e,t,n,r){return t=Ir(e,t,n),t32&&(a=s),i=o,o=r,r=c&-33}return a}function Eg(e,t,n,r){let o=-1,i=n;for(;i=0;n=ww(t,n))Mw(e,Iw(t),BA(t))}function Cw(e){tt(tR,vt,e,!0)}function vt(e,t){for(let n=qA(t);n>=0;n=Ew(t,n))Le(e,Iw(t),!0)}function et(e,t,n,r){let o=g(),i=k(),s=St(2);if(i.firstUpdatePass&&Tw(i,e,s,r),t!==N&&re(o,s,t)){let a=i.data[de()];xw(i,a,o,o[x],e,o[s+1]=rR(t,n),r,s)}}function tt(e,t,n,r){let o=k(),i=St(2);o.firstUpdatePass&&Tw(o,null,i,r);let s=g();if(n!==N&&re(s,i,n)){let a=o.data[de()];if(_w(a,r)&&!bw(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=Ml(c,n||"")),Au(o,a,s,n,r)}else nR(o,a,s,s[x],s[i+1],s[i+1]=eR(e,t,n),r,i)}}function bw(e,t){return t>=e.expandoStartIndex}function Tw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[de()],s=bw(e,n);_w(i,r)&&t===null&&!s&&(t=!1),t=YA(o,i,t,r),HA(o,i,t,n,s,r)}}function YA(e,t,n,r){let o=wd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=gl(null,e,t,n,r),n=Bo(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=gl(o,e,t,n,r),i===null){let c=KA(e,t,r);c!==void 0&&Array.isArray(c)&&(c=gl(null,e,t,c[1],r),c=Bo(c,t.attrs,r),JA(e,t,r,c))}else i=XA(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function KA(e,t,n){let r=n?t.classBindings:t.styleBindings;if(yr(r)!==0)return e[Tn(r)]}function JA(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Tn(o)]=r}function XA(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=n[o+1];f===N&&(f=d?V:void 0);let p=d?Jc(f,r):u===r?f:void 0;if(l&&!ua(p)&&(p=Jc(c,r)),ua(p)&&(a=p,s))return a;let h=e[o+1];o=s?Tn(h):yr(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Jc(c,r))}return a}function ua(e){return e!==void 0}function rR(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=he(Ot(e)))),e}function _w(e,t){return(e.flags&(t?8:16))!==0}function Nw(e,t,n){let r=g(),o=Lr(r,e,t,n);tt(Le,vt,o,!0)}function Sw(e,t,n,r,o){let i=g(),s=Fr(i,e,t,n,r,o);tt(Le,vt,s,!0)}function Ow(e,t,n,r,o,i,s){let a=g(),c=jr(a,e,t,n,r,o,i,s);tt(Le,vt,c,!0)}function Aw(e,t,n,r,o,i,s,a,c){let l=g(),u=Vr(l,e,t,n,r,o,i,s,a,c);tt(Le,vt,u,!0)}function Rw(e,t,n,r,o,i,s,a,c,l,u){let d=g(),f=Hr(d,e,t,n,r,o,i,s,a,c,l,u);tt(Le,vt,f,!0)}function Pw(e,t,n,r,o,i,s,a,c,l,u,d,f){let p=g(),h=Ur(p,e,t,n,r,o,i,s,a,c,l,u,d,f);tt(Le,vt,h,!0)}function kw(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h){let m=g(),v=$r(m,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h);tt(Le,vt,v,!0)}function Lw(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v){let y=g(),E=Br(y,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v);tt(Le,vt,E,!0)}function Fw(e){let t=g(),n=kr(t,e);tt(Le,vt,n,!0)}function jw(){return g()[le][J]}var Ru=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function vl(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function oR(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=vl(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let f=e.at(s),p=t[c],h=vl(s,f,c,p,n);if(h!==0){h<0&&e.updateValue(s,p),s--,c--;continue}let m=n(i,l),v=n(s,f),y=n(i,u);if(Object.is(y,v)){let E=n(c,p);Object.is(E,m)?(e.swap(i,s),e.updateValue(s,p),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new da,o??=Cg(e,i,s,n),Pu(e,r,i,y))e.updateValue(i,u),i++,s++;else if(o.has(y))r.set(m,e.detach(i)),s--;else{let E=e.create(i,t[i]);e.attach(i,E),i++,s++}}for(;i<=c;)Dg(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,f=vl(i,u,i,d,n);if(f!==0)f<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new da,o??=Cg(e,i,s,n);let p=n(i,d);if(Pu(e,r,i,p))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(p))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let h=n(i,u);r.set(h,e.detach(i)),s--}}}for(;!l.done;)Dg(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Pu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Dg(e,t,n,r,o){if(Pu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Cg(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var da=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Vw(e,t){ye("NgControlFlow");let n=g(),r=Je(),o=n[r]!==N?n[r]:-1,i=o!==-1?fa(n,w+o):void 0,s=0;if(re(n,r,e)){let a=A(null);try{if(i!==void 0&&sf(i,s),e!==-1){let c=w+e,l=fa(n,c),u=ju(n[I],c),d=wn(l,u.tView.ssrId),f=Nr(n,u,t,{dehydratedView:d});Sr(l,f,s,En(u,d))}}finally{A(a)}}else if(i!==void 0){let a=AI(i,s);a!==void 0&&(a[J]=t)}}var ku=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-X}};function Hw(e){return e}function Uw(e,t){return t}var Lu=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function $w(e,t,n,r,o,i,s,a,c,l,u,d,f){ye("NgControlFlow");let p=g(),h=k(),m=c!==void 0,v=g(),y=a?s.bind(v[le][J]):s,E=new Lu(m,y);v[w+e]=E,Ho(p,h,e+1,t,n,r,o,Ue(h.consts,i)),m&&Ho(p,h,e+2,c,l,u,d,Ue(h.consts,f))}var Fu=class extends Ru{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-X}at(t){return this.getLView(t)[J].$implicit}attach(t,n){let r=n[we];this.needsIndexUpdate||=t!==this.length,Sr(this.lContainer,n,t,En(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,iR(this.lContainer,t)}create(t,n){let r=wn(this.lContainer,this.templateTNode.tView.ssrId),o=Nr(this.hostLView,this.templateTNode,new ku(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){Ga(t[I],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[J].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(ht(!0),Wa(r,o,Zv()));function cR(e,t,n,r,o,i){let s=t[we],a=!s||Sn()||Or(n)||On(s,i);if(ht(a),a)return Wa(r,o,Zv());let c=di(s,e,t,n);return Ay(s,i)&&Ba(s,i,c.nextSibling),s&&(Nd(n)||yy(c))&&_n(n)&&(lx(n),hI(c)),c}function lR(){qw=cR}function uR(e,t,n,r,o){let i=t.consts,s=Ue(i,r),a=Rn(t,e,8,"ng-container",s);s!==null&&ta(a,s,!0);let c=Ue(i,o);return tf(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function uc(e,t,n){let r=g(),o=k(),i=e+w,s=o.firstCreatePass?uR(i,o,r,t,n):o.data[i];Ke(s,!0);let a=Ww(o,r,s,e);return r[i]=a,oi()&&za(o,r,a,s),xe(a,r),Pa(s)&&(Jd(o,r,s),Kd(o,s,r)),n!=null&&Xd(r,s),uc}function dc(){let e=q(),t=k();return Id()?Ed():(e=e.parent,Ke(e,!1)),t.firstCreatePass&&(Va(t,e),hd(e)&&t.queries.elementEnd(e)),dc}function Ff(e,t,n){return uc(e,t,n),dc(),Ff}var Ww=(e,t,n,r)=>(ht(!0),Wd(t[x],""));function dR(e,t,n,r){let o,i=t[we],s=!i||Sn()||On(i,r)||Or(n);if(ht(s),s)return Wd(t[x],"");let a=di(i,e,t,n),c=Oy(i,r);return Ba(i,r,a),o=tc(c,a),o}function fR(){Ww=dR}function Gw(){return g()}function jf(e,t,n){let r=g(),o=Je();if(re(r,o,t)){let i=k(),s=z();Se(i,s,r,e,t,r[x],n,!0)}return jf}function Vf(e,t,n){let r=g(),o=Je();if(re(r,o,t)){let i=k(),s=z(),a=wd(i.data),c=OI(a,s,r);Se(i,s,r,e,t,c,n,!0)}return Vf}var ln=void 0;function pR(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var hR=["en",[["a","p"],["AM","PM"],ln],[["AM","PM"],ln,ln],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ln,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ln,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ln,"{1} 'at' {0}",ln],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",pR],cr={};function mR(e,t,n){typeof t!="string"&&(n=t,t=e[Er.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),cr[t]=e,n&&(cr[t][Er.ExtraData]=n)}function Hf(e){let t=yR(e),n=bg(t);if(n)return n;let r=t.split("-")[0];if(n=bg(r),n)return n;if(r==="en")return hR;throw new D(701,!1)}function gR(e){return Hf(e)[Er.CurrencyCode]||null}function zw(e){return Hf(e)[Er.PluralCase]}function bg(e){return e in cr||(cr[e]=Ge.ng&&Ge.ng.common&&Ge.ng.common.locales&&Ge.ng.common.locales[e]),cr[e]}function vR(){cr={}}var Er=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Er||{});function yR(e){return e.toLowerCase().replace(/_/g,"-")}var IR=["zero","one","two","few","many"];function ER(e,t){let n=zw(t)(parseInt(e,10)),r=IR[n];return r!==void 0?r:"other"}var qo="en-US",wR="USD",Qw={marker:"element"},Zw={marker:"ICU"},wt=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(wt||{}),Yw=qo;function Kw(e){typeof e=="string"&&(Yw=e.toLowerCase().replace(/_/g,"-"))}function DR(){return Yw}var Wo=0,fo=0;function CR(e){e&&(Wo=Wo|1<0){let r=e.data[n],o=Array.isArray(r)?r:r.update,i=Nt()-fo-1;eD(e,t,o,i,Wo)}Wo=0,fo=0}function Jw(e,t,n){let r=e[x];switch(n){case Node.COMMENT_NODE:return Wd(r,t);case Node.TEXT_NODE:return qd(r,t);case Node.ELEMENT_NODE:return Wa(r,t,null)}}var po=(e,t,n,r)=>(ht(!0),Jw(e,n,r));function TR(e,t,n,r){let o=e[we],i=t-w,s=!cf()||!o||Sn()||On(o,i);return ht(s),s?Jw(e,n,r):GI(o,i)}function MR(){po=TR}function xR(e,t,n,r){let o=e[x];for(let i=0;i>>wt.SHIFT,d=e[u],f=!1;d===null&&(d=e[u]=po(e,u,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),f=oi()),l&&n!==null&&f&&In(o,n,d,r,!1)}}function Xw(e,t,n,r){let o=n[x],i=null,s;for(let a=0;a>>1,p=t[++a],h=t[++a];nf(o,ni(f,n),null,null,p,h,null);break;default:}else switch(c){case Zw:let l=t[++a],u=t[++a];if(n[u]===null){let p=n[u]=po(n,u,l,Node.COMMENT_NODE);xe(p,n)}break;case Qw:let d=t[++a],f=t[++a];if(n[f]===null){let p=n[f]=po(n,f,d,Node.ELEMENT_NODE);xe(p,n)}break;default:}}}function eD(e,t,n,r,o){for(let i=0;i>>2;switch(u&3){case 1:let f=n[++l],p=n[++l],h=e.data[d];typeof h=="string"?nf(t[x],t[d],null,h,f,c,p):Se(e,h,t,f,c,t[x],p,!1);break;case 0:let m=t[d];m!==null&&oI(t[x],m,c);break;case 2:_R(e,lo(e,d),t,c);break;case 3:Tg(e,lo(e,d),r,t);break}}}}else{let c=n[i+1];if(c>0&&(c&3)===3){let l=c>>>2,u=lo(e,l);t[u.currentCaseLViewIndex]<0&&Tg(e,u,r,t)}}i+=a}}function Tg(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(o!==null){let i=Wo;o<0&&(o=r[t.currentCaseLViewIndex]=~o,i=-1),eD(e,r,t.update[o],n,i)}}function _R(e,t,n,r){let o=NR(t,r);if(ec(t,n)!==o&&(tD(e,t,n),n[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[t.anchorIdx];s&&Xw(e,t.create[o],n,s),tO(n,t.anchorIdx,o)}}function tD(e,t,n){let r=ec(t,n);if(r!==null){let o=t.remove[r];for(let i=0;i0){let a=ni(s,n);a!==null&&li(n[x],a)}else tD(e,lo(e,~s),n)}}}function NR(e,t){let n=e.cases.indexOf(t);if(n===-1)switch(e.type){case 1:{let r=ER(t,DR());n=e.cases.indexOf(r),n===-1&&r!=="other"&&(n=e.cases.indexOf("other"));break}case 0:{n=e.cases.indexOf("other");break}}return n===-1?null:n}var pa=/�(\d+):?\d*�/gi,SR=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,OR=/�(\d+)�/,nD=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,ho="\uFFFD",AR=/�\/?\*(\d+:\d+)�/gi,RR=/�(\/?[#*]\d+):?\d*�/gi,PR=/\uE500/g;function kR(e){return e.replace(PR," ")}function LR(e,t,n,r,o,i){let s=Mo(),a=[],c=[],l=[[]],u=[[]];o=HR(o,i);let d=kR(o).split(RR);for(let f=0;f`}}let h=[];u.push(h),a=$R(h,t,c,n,r,o,i.cases[d],f.join(""),p)|a}a&&WR(r,a,s),e.push({kind:3,index:s,cases:u,currentCaseLViewIndex:c.currentCaseLViewIndex})}function UR(e){let t=[],n=[],r=1,o=0;e=e.replace(nD,function(s,a,c){return c==="select"?r=0:r=1,o=parseInt(a.slice(1),10),""});let i=Vu(e);for(let s=0;sn.length&&n.push(c)}return{type:r,mainBinding:o,cases:t,values:n}}function Vu(e){if(!e)return[];let t=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(e);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let c=e.substring(t,a);nD.test(c)?r.push(UR(c)):r.push(c),t=a+1}}else{if(n.length==0){let c=e.substring(t,a);r.push(c),t=a+1}n.push("{")}}let s=e.substring(t);return r.push(s),r}function $R(e,t,n,r,o,i,s,a,c){let l=[],u=[],d=[];n.cases.push(s),n.create.push(l),n.remove.push(u),n.update.push(d);let p=Uy(Tr()).getInertBodyElement(a),h=au(p)||p;return h?sD(e,t,n,r,o,l,u,d,h,i,c,0):0}function sD(e,t,n,r,o,i,s,a,c,l,u,d){let f=0,p=c.firstChild;for(;p;){let h=ui(t,r,1,null);switch(p.nodeType){case Node.ELEMENT_NODE:let m=p,v=m.tagName.toLowerCase();if(iu.hasOwnProperty(v)){yl(i,Qw,v,l,h),t.data[h]=v;let W=m.attributes;for(let ee=0;ee{let c=s||a,l=r[c]||[];if(l.length||(c.split("|").forEach(m=>{let v=m.match(XR),y=v?parseInt(v[1],10):_g,E=JR.test(m);l.push([y,E,m])}),r[c]=l),!l.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);let u=o[o.length-1],d=0;for(let m=0;mt.hasOwnProperty(i)?`${o}${t[i]}${c}`:r),n=n.replace(YR,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(KR,(r,o)=>{if(t.hasOwnProperty(o)){let i=t[o];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return i.shift()}return r})),n}function Uf(e,t,n=-1){let r=k(),o=g(),i=w+e,s=Ue(r.consts,t),a=Mo();if(r.firstCreatePass&&LR(r,a===null?0:a.index,o,i,s,n),r.type===2){let f=o[le];f[C]|=32}else o[C]|=32;let c=r.data[i],l=a===o[ve]?null:a,u=aI(r,l,o),d=a&&a.type&8?o[a.index]:null;WS(o,i,a,n),xR(o,c.create,u,d),Hv(!0)}function $f(){Hv(!1)}function aD(e,t,n){Uf(e,t,n),$f()}function cD(e,t){let n=k(),r=Ue(n.consts,t);jR(n,e+w,r)}function Bf(e){let t=g();return CR(re(t,Je(),e)),Bf}function lD(e){bR(k(),g(),e+w)}function uD(e,t={}){return eP(e,t)}var dD=(e,t,n)=>{};function Ng(e){dD=e}function qf(e,t,n,r){let o=g(),i=k(),s=q();return Gf(i,o,o[x],s,e,t,r),qf}function Wf(e,t){let n=q(),r=g(),o=k(),i=wd(o.data),s=OI(i,n,r);return Gf(o,r,s,n,e,t),Wf}function tP(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Gf(e,t,n,r,o,i,s){let a=Pa(r),l=e.firstCreatePass&&SI(e),u=t[J],d=NI(t),f=!0;if(r.type&3||s){let m=Ne(r,t),v=s?s(m):m,y=d.length,E=s?W=>s(U(W[r.index])):r.index,H=null;if(!s&&a&&(H=tP(e,t,o,r.index)),H!==null){let W=H.__ngLastListenerFn__||H;W.__ngNextListenerFn__=i,H.__ngLastListenerFn__=i,f=!1}else{i=Og(r,t,u,i),dD(m,o,i);let W=n.listen(v,o,i);d.push(i,W),l&&l.push(o,E,y,y+1)}}else i=Og(r,t,u,i);let p=r.outputs,h;if(f&&p!==null&&(h=p[o])){let m=h.length;if(m)for(let v=0;v-1?Ye(e.index,t):t;Ja(s,5);let a=Sg(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Sg(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function fD(e=1){return mx(e)}function nP(e,t){let n=null,r=TM(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function DD(e){let t=Fv();return Nn(t,w+e)}function CD(e,t,n){let r=g(),o=Lr(r,e,t,n);Xe(o)}function bD(e,t,n,r,o){let i=g(),s=Fr(i,e,t,n,r,o);Xe(s)}function TD(e,t,n,r,o,i,s){let a=g(),c=jr(a,e,t,n,r,o,i,s);Xe(c)}function MD(e,t,n,r,o,i,s,a,c){let l=g(),u=Vr(l,e,t,n,r,o,i,s,a,c);Xe(u)}function xD(e,t,n,r,o,i,s,a,c,l,u){let d=g(),f=Hr(d,e,t,n,r,o,i,s,a,c,l,u);Xe(f)}function _D(e,t,n,r,o,i,s,a,c,l,u,d,f){let p=g(),h=Ur(p,e,t,n,r,o,i,s,a,c,l,u,d,f);Xe(h)}function ND(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h){let m=g(),v=$r(m,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h);Xe(v)}function SD(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v){let y=g(),E=Br(y,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v);Xe(E)}function OD(e){let t=g(),n=kr(t,e);Xe(n)}function np(e,t,n,r,o){let i=g(),s=Lr(i,t,n,r);return et(e,s,o,!1),np}function rp(e,t,n,r,o,i,s){let a=g(),c=Fr(a,t,n,r,o,i);return et(e,c,s,!1),rp}function op(e,t,n,r,o,i,s,a,c){let l=g(),u=jr(l,t,n,r,o,i,s,a);return et(e,u,c,!1),op}function ip(e,t,n,r,o,i,s,a,c,l,u){let d=g(),f=Vr(d,t,n,r,o,i,s,a,c,l);return et(e,f,u,!1),ip}function sp(e,t,n,r,o,i,s,a,c,l,u,d,f){let p=g(),h=Hr(p,t,n,r,o,i,s,a,c,l,u,d);return et(e,h,f,!1),sp}function ap(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h){let m=g(),v=Ur(m,t,n,r,o,i,s,a,c,l,u,d,f,p);return et(e,v,h,!1),ap}function cp(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v){let y=g(),E=$r(y,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m);return et(e,E,v,!1),cp}function lp(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v,y,E){let H=g(),W=Br(H,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v,y);return et(e,W,E,!1),lp}function up(e,t,n){let r=g(),o=kr(r,t);return et(e,o,n,!1),up}function AD(e,t=""){let n=g(),r=k(),o=e+w,i=r.firstCreatePass?Rn(r,o,1,t,null):r.data[o],s=RD(r,n,i,t,e);n[o]=s,oi()&&za(r,n,s,i),Ke(i,!1)}var RD=(e,t,n,r,o)=>(ht(!0),qd(t[x],r));function oP(e,t,n,r,o){let i=t[we],s=!i||Sn()||Or(n)||On(i,o);return ht(s),s?qd(t[x],r):di(i,e,t,n)}function iP(){RD=oP}function dp(e){return hc("",e,""),dp}function hc(e,t,n){let r=g(),o=Lr(r,e,t,n);return o!==N&&Rt(r,de(),o),hc}function fp(e,t,n,r,o){let i=g(),s=Fr(i,e,t,n,r,o);return s!==N&&Rt(i,de(),s),fp}function pp(e,t,n,r,o,i,s){let a=g(),c=jr(a,e,t,n,r,o,i,s);return c!==N&&Rt(a,de(),c),pp}function hp(e,t,n,r,o,i,s,a,c){let l=g(),u=Vr(l,e,t,n,r,o,i,s,a,c);return u!==N&&Rt(l,de(),u),hp}function mp(e,t,n,r,o,i,s,a,c,l,u){let d=g(),f=Hr(d,e,t,n,r,o,i,s,a,c,l,u);return f!==N&&Rt(d,de(),f),mp}function gp(e,t,n,r,o,i,s,a,c,l,u,d,f){let p=g(),h=Ur(p,e,t,n,r,o,i,s,a,c,l,u,d,f);return h!==N&&Rt(p,de(),h),gp}function vp(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h){let m=g(),v=$r(m,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h);return v!==N&&Rt(m,de(),v),vp}function yp(e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v){let y=g(),E=Br(y,e,t,n,r,o,i,s,a,c,l,u,d,f,p,h,m,v);return E!==N&&Rt(y,de(),E),yp}function Ip(e){let t=g(),n=kr(t,e);return n!==N&&Rt(t,de(),n),Ip}function Ep(e,t,n){yE(t)&&(t=t());let r=g(),o=Je();if(re(r,o,t)){let i=k(),s=z();Se(i,s,r,e,t,r[x],n,!1)}return Ep}function PD(e,t){let n=yE(e);return n&&e.set(t),n}function wp(e,t){let n=g(),r=k(),o=q();return Gf(r,n,n[x],o,e,t),wp}var kD={};function Dp(e){let t=k(),n=g(),r=e+w,o=Rn(t,r,128,null,null);return Ke(o,!1),pc(t,n,r,kD),Dp}function LD(e){ye("NgLet");let t=k(),n=g(),r=de();return pc(t,n,r,e),e}function FD(e){let t=Fv(),n=Nn(t,w+e);if(n===kD)throw new D(314,!1);return n}function sP(e,t,n){let r=k();if(r.firstCreatePass){let o=Ze(e);Hu(n,r.data,r.blueprint,o,!0),Hu(t,r.data,r.blueprint,o,!1)}}function Hu(e,t,n,r,o){if(e=j(e),Array.isArray(e))for(let i=0;i>20;if(lr(e)||!e.multi){let p=new vn(l,o,_r),h=El(c,t,o?u:u+f,d);h===-1?(jl(Us(a,s),i,c),Il(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(p),s.push(p)):(n[h]=p,s[h]=p)}else{let p=El(c,t,u+f,d),h=El(c,t,u,u+f),m=p>=0&&n[p],v=h>=0&&n[h];if(o&&!v||!o&&!m){jl(Us(a,s),i,c);let y=lP(o?cP:aP,n.length,o,r,l);!o&&v&&(n[h].providerFactory=y),Il(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=jD(n[o?h:p],l,!o&&r);Il(i,e,p>-1?p:h,y)}!o&&r&&v&&n[h].componentProviders++}}}function Il(e,t,n,r){let o=lr(t),i=VM(t);if(o||i){let c=(i?j(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function jD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function El(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>sP(r,o?o(e):e,t)}}var uP=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=ud(!1,n.type),o=r.length>0?vf([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=B({token:e,providedIn:"environment",factory:()=>new e(me(ut))})}}return e})();function HD(e){ye("NgStandalone"),e.getStandaloneInjector=t=>t.get(uP).getOrCreateStandaloneInjector(e)}function UD(e,t,n){let r=e.\u0275cmp;r.directiveDefs=Rs(t,!1),r.pipeDefs=Rs(n,!0)}function $D(e,t){return pt(()=>{let n=Qe(e,!0);n.declarations=gs(t.declarations||V),n.imports=gs(t.imports||V),n.exports=gs(t.exports||V),t.bootstrap&&(n.bootstrap=gs(t.bootstrap)),hr.registerNgModule(e,t)})}function gs(e){if(typeof e=="function")return e;let t=it(e);return t.some(Ta)?()=>t.map(j).map(Ag):t.map(Ag)}function Ag(e){return uf(e)?e.ngModule:e}var xs="__ngAsyncComponentMetadataFn__";function dP(e){return e[xs]??null}function BD(e,t,n){let r=e;return r[xs]=()=>Promise.all(t()).then(o=>(n(...o),r[xs]=null,o)),r[xs]}function Cp(e,t,n,r){return pt(()=>{let o=e;t!==null&&(o.hasOwnProperty("decorators")&&o.decorators!==void 0?o.decorators.push(...t):o.decorators=t),n!==null&&(o.ctorParameters=n),r!==null&&(o.hasOwnProperty("propDecorators")&&o.propDecorators!==void 0?o.propDecorators=Z(Z({},o.propDecorators),r):o.propDecorators=r)})}function qD(e,t,n){let r=Ce()+e,o=g();return o[r]===N?gt(o,r,n?t.call(n):t()):pi(o,r)}function WD(e,t,n,r){return eC(g(),Ce(),e,t,n,r)}function GD(e,t,n,r,o){return tC(g(),Ce(),e,t,n,r,o)}function zD(e,t,n,r,o,i){return nC(g(),Ce(),e,t,n,r,o,i)}function QD(e,t,n,r,o,i,s){return rC(g(),Ce(),e,t,n,r,o,i,s)}function ZD(e,t,n,r,o,i,s,a){let c=Ce()+e,l=g(),u=$e(l,c,n,r,o,i);return re(l,c+4,s)||u?gt(l,c+5,a?t.call(a,n,r,o,i,s):t(n,r,o,i,s)):pi(l,c+5)}function YD(e,t,n,r,o,i,s,a,c){let l=Ce()+e,u=g(),d=$e(u,l,n,r,o,i);return bn(u,l+4,s,a)||d?gt(u,l+6,c?t.call(c,n,r,o,i,s,a):t(n,r,o,i,s,a)):pi(u,l+6)}function KD(e,t,n,r,o,i,s,a,c,l){let u=Ce()+e,d=g(),f=$e(d,u,n,r,o,i);return rc(d,u+4,s,a,c)||f?gt(d,u+7,l?t.call(l,n,r,o,i,s,a,c):t(n,r,o,i,s,a,c)):pi(d,u+7)}function JD(e,t,n,r,o,i,s,a,c,l,u){let d=Ce()+e,f=g(),p=$e(f,d,n,r,o,i);return $e(f,d+4,s,a,c,l)||p?gt(f,d+8,u?t.call(u,n,r,o,i,s,a,c,l):t(n,r,o,i,s,a,c,l)):pi(f,d+8)}function XD(e,t,n,r){return oC(g(),Ce(),e,t,n,r)}function mi(e,t){let n=e[t];return n===N?void 0:n}function eC(e,t,n,r,o,i){let s=t+n;return re(e,s,o)?gt(e,s+1,i?r.call(i,o):r(o)):mi(e,s+1)}function tC(e,t,n,r,o,i,s){let a=t+n;return bn(e,a,o,i)?gt(e,a+2,s?r.call(s,o,i):r(o,i)):mi(e,a+2)}function nC(e,t,n,r,o,i,s,a){let c=t+n;return rc(e,c,o,i,s)?gt(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):mi(e,c+3)}function rC(e,t,n,r,o,i,s,a,c){let l=t+n;return $e(e,l,o,i,s,a)?gt(e,l+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):mi(e,l+4)}function oC(e,t,n,r,o,i){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function sC(e,t,n){let r=e+w,o=g(),i=Nn(o,r);return gi(o,r)?eC(o,Ce(),t,i.transform,n,i):i.transform(n)}function aC(e,t,n,r){let o=e+w,i=g(),s=Nn(i,o);return gi(i,o)?tC(i,Ce(),t,s.transform,n,r,s):s.transform(n,r)}function cC(e,t,n,r,o){let i=e+w,s=g(),a=Nn(s,i);return gi(s,i)?nC(s,Ce(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function lC(e,t,n,r,o,i){let s=e+w,a=g(),c=Nn(a,s);return gi(a,s)?rC(a,Ce(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function uC(e,t,n){let r=e+w,o=g(),i=Nn(o,r);return gi(o,r)?oC(o,Ce(),t,i.transform,n,i):i.transform.apply(i,n)}function gi(e,t){return e[I].data[t].pure}function dC(e,t){return Xa(e,t)}function fC(e,t){return()=>{try{return hr.getComponentDependencies(e,t).dependencies}catch(n){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,n),n}}}function pC(e,t){let n=Q(e);n!==null&&(n.debugInfo=t)}var Ee={\u0275\u0275attribute:Cf,\u0275\u0275attributeInterpolate1:bf,\u0275\u0275attributeInterpolate2:Tf,\u0275\u0275attributeInterpolate3:Mf,\u0275\u0275attributeInterpolate4:xf,\u0275\u0275attributeInterpolate5:_f,\u0275\u0275attributeInterpolate6:Nf,\u0275\u0275attributeInterpolate7:Sf,\u0275\u0275attributeInterpolate8:Of,\u0275\u0275attributeInterpolateV:Af,\u0275\u0275defineComponent:cv,\u0275\u0275defineDirective:lv,\u0275\u0275defineInjectable:B,\u0275\u0275defineInjector:Ma,\u0275\u0275defineNgModule:ld,\u0275\u0275definePipe:uv,\u0275\u0275directiveInject:_r,\u0275\u0275getInheritedFactory:ay,\u0275\u0275inject:me,\u0275\u0275injectAttribute:Ha,\u0275\u0275invalidFactory:EI,\u0275\u0275invalidFactoryDep:id,\u0275\u0275templateRefExtractor:dC,\u0275\u0275resetView:kv,\u0275\u0275HostDirectivesFeature:RE,\u0275\u0275NgOnChangesFeature:md,\u0275\u0275ProvidersFeature:VD,\u0275\u0275CopyDefinitionFeature:AE,\u0275\u0275InheritDefinitionFeature:gf,\u0275\u0275InputTransformsFeature:kE,\u0275\u0275StandaloneFeature:HD,\u0275\u0275nextContext:fD,\u0275\u0275namespaceHTML:Qv,\u0275\u0275namespaceMathML:zv,\u0275\u0275namespaceSVG:Gv,\u0275\u0275enableBindings:Av,\u0275\u0275disableBindings:Rv,\u0275\u0275elementStart:cc,\u0275\u0275elementEnd:lc,\u0275\u0275element:Lf,\u0275\u0275elementContainerStart:uc,\u0275\u0275elementContainerEnd:dc,\u0275\u0275elementContainer:Ff,\u0275\u0275pureFunction0:qD,\u0275\u0275pureFunction1:WD,\u0275\u0275pureFunction2:GD,\u0275\u0275pureFunction3:zD,\u0275\u0275pureFunction4:QD,\u0275\u0275pureFunction5:ZD,\u0275\u0275pureFunction6:YD,\u0275\u0275pureFunction7:KD,\u0275\u0275pureFunction8:JD,\u0275\u0275pureFunctionV:XD,\u0275\u0275getCurrentView:Gw,\u0275\u0275restoreView:Pv,\u0275\u0275listener:qf,\u0275\u0275projection:hD,\u0275\u0275syntheticHostProperty:Vf,\u0275\u0275syntheticHostListener:Wf,\u0275\u0275pipeBind1:sC,\u0275\u0275pipeBind2:aC,\u0275\u0275pipeBind3:cC,\u0275\u0275pipeBind4:lC,\u0275\u0275pipeBindV:uC,\u0275\u0275projectionDef:pD,\u0275\u0275hostProperty:jf,\u0275\u0275property:Rf,\u0275\u0275propertyInterpolate:zf,\u0275\u0275propertyInterpolate1:fc,\u0275\u0275propertyInterpolate2:Qf,\u0275\u0275propertyInterpolate3:Zf,\u0275\u0275propertyInterpolate4:Yf,\u0275\u0275propertyInterpolate5:Kf,\u0275\u0275propertyInterpolate6:Jf,\u0275\u0275propertyInterpolate7:Xf,\u0275\u0275propertyInterpolate8:ep,\u0275\u0275propertyInterpolateV:tp,\u0275\u0275pipe:iC,\u0275\u0275queryRefresh:vD,\u0275\u0275queryAdvance:wD,\u0275\u0275viewQuery:gD,\u0275\u0275viewQuerySignal:ED,\u0275\u0275loadQuery:yD,\u0275\u0275contentQuery:mD,\u0275\u0275contentQuerySignal:ID,\u0275\u0275reference:DD,\u0275\u0275classMap:Cw,\u0275\u0275classMapInterpolate1:Nw,\u0275\u0275classMapInterpolate2:Sw,\u0275\u0275classMapInterpolate3:Ow,\u0275\u0275classMapInterpolate4:Aw,\u0275\u0275classMapInterpolate5:Rw,\u0275\u0275classMapInterpolate6:Pw,\u0275\u0275classMapInterpolate7:kw,\u0275\u0275classMapInterpolate8:Lw,\u0275\u0275classMapInterpolateV:Fw,\u0275\u0275styleMap:Xe,\u0275\u0275styleMapInterpolate1:CD,\u0275\u0275styleMapInterpolate2:bD,\u0275\u0275styleMapInterpolate3:TD,\u0275\u0275styleMapInterpolate4:MD,\u0275\u0275styleMapInterpolate5:xD,\u0275\u0275styleMapInterpolate6:_D,\u0275\u0275styleMapInterpolate7:ND,\u0275\u0275styleMapInterpolate8:SD,\u0275\u0275styleMapInterpolateV:OD,\u0275\u0275styleProp:Pf,\u0275\u0275stylePropInterpolate1:np,\u0275\u0275stylePropInterpolate2:rp,\u0275\u0275stylePropInterpolate3:op,\u0275\u0275stylePropInterpolate4:ip,\u0275\u0275stylePropInterpolate5:sp,\u0275\u0275stylePropInterpolate6:ap,\u0275\u0275stylePropInterpolate7:cp,\u0275\u0275stylePropInterpolate8:lp,\u0275\u0275stylePropInterpolateV:up,\u0275\u0275classProp:kf,\u0275\u0275advance:yI,\u0275\u0275template:If,\u0275\u0275conditional:Vw,\u0275\u0275defer:tw,\u0275\u0275deferWhen:nw,\u0275\u0275deferOnIdle:ow,\u0275\u0275deferOnImmediate:sw,\u0275\u0275deferOnTimer:cw,\u0275\u0275deferOnHover:uw,\u0275\u0275deferOnInteraction:fw,\u0275\u0275deferOnViewport:hw,\u0275\u0275deferPrefetchWhen:rw,\u0275\u0275deferPrefetchOnIdle:iw,\u0275\u0275deferPrefetchOnImmediate:aw,\u0275\u0275deferPrefetchOnTimer:lw,\u0275\u0275deferPrefetchOnHover:dw,\u0275\u0275deferPrefetchOnInteraction:pw,\u0275\u0275deferPrefetchOnViewport:mw,\u0275\u0275deferEnableTimerScheduling:ew,\u0275\u0275repeater:Bw,\u0275\u0275repeaterCreate:$w,\u0275\u0275repeaterTrackByIndex:Hw,\u0275\u0275repeaterTrackByIdentity:Uw,\u0275\u0275componentInstance:jw,\u0275\u0275text:AD,\u0275\u0275textInterpolate:dp,\u0275\u0275textInterpolate1:hc,\u0275\u0275textInterpolate2:fp,\u0275\u0275textInterpolate3:pp,\u0275\u0275textInterpolate4:hp,\u0275\u0275textInterpolate5:mp,\u0275\u0275textInterpolate6:gp,\u0275\u0275textInterpolate7:vp,\u0275\u0275textInterpolate8:yp,\u0275\u0275textInterpolateV:Ip,\u0275\u0275i18n:aD,\u0275\u0275i18nAttributes:cD,\u0275\u0275i18nExp:Bf,\u0275\u0275i18nStart:Uf,\u0275\u0275i18nEnd:$f,\u0275\u0275i18nApply:lD,\u0275\u0275i18nPostprocess:uD,\u0275\u0275resolveWindow:nI,\u0275\u0275resolveDocument:rI,\u0275\u0275resolveBody:$d,\u0275\u0275setComponentScope:UD,\u0275\u0275setNgModuleScope:$D,\u0275\u0275registerNgModuleType:mf,\u0275\u0275getComponentDepsFactory:fC,\u0275setClassDebugInfo:pC,\u0275\u0275declareLet:Dp,\u0275\u0275storeLet:LD,\u0275\u0275readContextLet:FD,\u0275\u0275sanitizeHtml:Qy,\u0275\u0275sanitizeStyle:Zy,\u0275\u0275sanitizeResourceUrl:Ud,\u0275\u0275sanitizeScript:Yy,\u0275\u0275sanitizeUrl:Hd,\u0275\u0275sanitizeUrlOrResourceUrl:Xy,\u0275\u0275trustConstantHtml:Ky,\u0275\u0275trustConstantResourceUrl:Jy,\u0275\u0275validateIframeAttribute:SE,forwardRef:ba,resolveForwardRef:j,\u0275\u0275twoWayProperty:Ep,\u0275\u0275twoWayBindingSet:PD,\u0275\u0275twoWayListener:wp},nr=null;function pP(e){nr!==null&&(e.defaultEncapsulation!==nr.defaultEncapsulation||e.preserveWhitespaces!==nr.preserveWhitespaces)||(nr=e)}function hP(){return nr}function mP(){nr=null}var go=[];function gP(e,t){go.push({moduleType:e,ngModule:t})}var wl=!1;function hC(){if(!wl){wl=!0;try{for(let e=go.length-1;e>=0;e--){let{moduleType:t,ngModule:n}=go[e];n.declarations&&n.declarations.every(mC)&&(go.splice(e,1),wP(t,n))}}finally{wl=!1}}}function mC(e){return Array.isArray(e)?e.every(mC):!!j(e)}function gC(e,t={}){vC(e,t),t.id!==void 0&&mf(e,t.id),gP(e,t)}function vC(e,t,n=!1){let r=it(t.declarations||V),o=null;Object.defineProperty(e,rd,{configurable:!0,get:()=>(o===null&&(o=ce({usage:0,kind:"NgModule",type:e}).compileNgModule(Ee,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:it(t.bootstrap||V).map(j),declarations:r.map(j),imports:it(t.imports||V).map(j).map(Rg),exports:it(t.exports||V).map(j).map(Rg),schemas:t.schemas?it(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let i=null;Object.defineProperty(e,bt,{get:()=>{if(i===null){let a=ce({usage:0,kind:"NgModule",type:e});i=a.compileFactory(Ee,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Ua(e),target:a.FactoryTarget.NgModule,typeArgumentCount:0})}return i},configurable:!1});let s=null;Object.defineProperty(e,Ns,{get:()=>{if(s===null){let a={name:e.name,type:e,providers:t.providers||V,imports:[(t.imports||V).map(j),(t.exports||V).map(j)]};s=ce({usage:0,kind:"NgModule",type:e}).compileInjector(Ee,`ng:///${e.name}/\u0275inj.js`,a)}return s},configurable:!1})}function vP(e,t){let n=`Unexpected "${Ve(e)}" found in the "declarations" array of the`,r=`"${Ve(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`;return`${n} ${t}, ${r}`}var yP=new WeakMap,IP=new WeakMap;function EP(){yP=new WeakMap,IP=new WeakMap,go.length=0,PM.clear()}function wP(e,t){let n=it(t.declarations||V),r=Mn(e);n.forEach(o=>{if(o=j(o),o.hasOwnProperty(Yo)){let s=Q(o);bp(s,r)}else!o.hasOwnProperty(xa)&&!o.hasOwnProperty(_a)&&(o.ngSelectorScope=e)})}function bp(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(Yo)?Q(n):Re(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Pe(n)),e.schemas=t.schemas,e.tView=null}function Mn(e){if(Ht(e))if(ea){let t=hr.getNgModuleScope(e),n=Qe(e,!0);return Z({schemas:n.schemas||null},t)}else return DP(e);else if(wo(e)){if((Q(e)||Re(e))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(Pe(e)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function DP(e){let t=Qe(e,!0);if(t.transitiveCompileScopes!==null)return t.transitiveCompileScopes;let n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Dt(t.imports).forEach(r=>{let o=Mn(r);o.exported.directives.forEach(i=>n.compilation.directives.add(i)),o.exported.pipes.forEach(i=>n.compilation.pipes.add(i))}),Dt(t.declarations).forEach(r=>{Pe(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),Dt(t.exports).forEach(r=>{let o=r;if(Ht(o)){let i=Mn(o);i.exported.directives.forEach(s=>{n.compilation.directives.add(s),n.exported.directives.add(s)}),i.exported.pipes.forEach(s=>{n.compilation.pipes.add(s),n.exported.pipes.add(s)})}else Pe(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Rg(e){return uf(e)?e.ngModule:e}var Dl=0;function yC(e,t){let n=null;YO(e,t),EC(e,t),Object.defineProperty(e,Yo,{get:()=>{if(n===null){let r=ce({usage:0,kind:"component",type:e});if(ME(t)){let l=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&l.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&l.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&l.push(` - styleUrl: ${t.styleUrl}`),l.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(l.join(` +`))}let o=hP(),i=t.preserveWhitespaces;i===void 0&&(o!==null&&o.preserveWhitespaces!==void 0?i=o.preserveWhitespaces:i=!1);let s=t.encapsulation;s===void 0&&(o!==null&&o.defaultEncapsulation!==void 0?s=o.defaultEncapsulation:s=Wt.Emulated);let a=t.templateUrl||`ng:///${e.name}/template.html`,c=je(Z({},wC(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:i,styles:typeof t.styles=="string"?[t.styles]:t.styles||V,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Dl++;try{if(c.usesInheritance&&DC(e),n=r.compileComponent(Ee,a,c),t.standalone){let l=it(t.imports||V),{directiveDefs:u,pipeDefs:d}=CP(e,l);n.directiveDefs=u,n.pipeDefs=d,n.dependencies=()=>l.map(j)}}finally{Dl--}if(Dl===0&&hC(),bP(e)){let l=Mn(e.ngSelectorScope);bp(n,l)}if(t.schemas)if(t.standalone)n.schemas=t.schemas;else throw new Error(`The 'schemas' was specified for the ${Ve(e)} but is only valid on a component that is standalone.`);else t.standalone&&(n.schemas=[])}return n},configurable:!1})}function CP(e,t){let n=null,r=null;return{directiveDefs:()=>{if(ea)return uo(e)?[...hr.getStandaloneComponentScope(e,t).compilation.directives].map(a=>Q(a)||Re(a)).filter(a=>a!==null):[];if(n===null){n=[Q(e)];let s=new Set([e]);for(let a of t){let c=j(a);if(!s.has(c))if(s.add(c),Qe(c)){let l=Mn(c);for(let u of l.exported.directives){let d=Q(u)||Re(u);d&&!s.has(u)&&(s.add(u),n.push(d))}}else{let l=Q(c)||Re(c);l&&n.push(l)}}}return n},pipeDefs:()=>{if(ea)return uo(e)?[...hr.getStandaloneComponentScope(e,t).compilation.pipes].map(a=>Pe(a)).filter(a=>a!==null):[];if(r===null){r=[];let s=new Set;for(let a of t){let c=j(a);if(!s.has(c))if(s.add(c),Qe(c)){let l=Mn(c);for(let u of l.exported.pipes){let d=Pe(u);d&&!s.has(u)&&(s.add(u),r.push(d))}}else{let l=Pe(c);l&&r.push(l)}}}return r}}}function bP(e){return e.ngSelectorScope!==void 0}function Tp(e,t){let n=null;EC(e,t||{}),Object.defineProperty(e,xa,{get:()=>{if(n===null){let r=IC(e,t||{});n=ce({usage:0,kind:"directive",type:e}).compileDirective(Ee,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function IC(e,t){let n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ce({usage:0,kind:"directive",type:e}),i=wC(e,t);return i.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),i.usesInheritance&&DC(e),{metadata:i,sourceMapUrl:r}}function EC(e,t){let n=null;Object.defineProperty(e,bt,{get:()=>{if(n===null){let r=IC(e,t),o=ce({usage:0,kind:"directive",type:e});n=o.compileFactory(Ee,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:Ua(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function TP(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function wC(e,t){let n=Md(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:t.selector!==void 0?t.selector:null,host:t.host||lt,propMetadata:r,inputs:t.inputs||V,outputs:t.outputs||V,queries:Pg(e,r,CC),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!TP(e),exportAs:_P(t.exportAs),providers:t.providers||null,viewQueries:Pg(e,r,bC),isStandalone:!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map(o=>typeof o=="function"?{directive:o}:o)||null}}function DC(e){let t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!Re(n)&&!Q(n)&&SP(n)&&Tp(n,null),n=Object.getPrototypeOf(n)}function MP(e){return typeof e=="string"?MC(e):j(e)}function xP(e,t){return{propertyName:e,predicate:MP(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal}}function Pg(e,t,n){let r=[];for(let o in t)if(t.hasOwnProperty(o)){let i=t[o];i.forEach(s=>{if(n(s)){if(!s.selector)throw new Error(`Can't construct a query for the property "${o}" of "${Ve(e)}" since the query selector wasn't defined.`);if(i.some(TC))throw new Error("Cannot combine @Input decorators with query decorators");r.push(xP(o,s))}})}return r}function _P(e){return e===void 0?null:MC(e)}function CC(e){let t=e.ngMetadataName;return t==="ContentChild"||t==="ContentChildren"}function bC(e){let t=e.ngMetadataName;return t==="ViewChild"||t==="ViewChildren"}function TC(e){return e.ngMetadataName==="Input"}function MC(e){return e.split(",").map(t=>t.trim())}var NP=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function SP(e){let t=Md();if(NP.some(r=>t.hasLifecycleHook(e,r)))return!0;let n=t.propMetadata(e);for(let r in n){let o=n[r];for(let i=0;i{if(r===null){let o=kg(e,t),i=ce({usage:0,kind:"pipe",type:o.type});r=i.compileFactory(Ee,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:Ua(e),target:i.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,_a,{get:()=>{if(n===null){let o=kg(e,t);n=ce({usage:0,kind:"pipe",type:o.type}).compilePipe(Ee,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function kg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:t.pure!==void 0?t.pure:!0,isStandalone:!!t.standalone}}var _C=Qo("Directive",(e={})=>e,void 0,void 0,(e,t)=>Tp(e,t)),OP=Qo("Component",(e={})=>Z({changeDetection:Oa.Default},e),_C,void 0,(e,t)=>yC(e,t)),AP=Qo("Pipe",e=>Z({pure:!0},e),void 0,void 0,(e,t)=>xC(e,t)),RP=Kt("Input",e=>e?typeof e=="string"?{alias:e}:e:{}),PP=Kt("Output",e=>({alias:e})),kP=Kt("HostBinding",e=>({hostPropertyName:e})),LP=Kt("HostListener",(e,t)=>({eventName:e,args:t})),FP=Qo("NgModule",e=>e,void 0,void 0,(e,t)=>gC(e,t)),ha=class{constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},jP=new ha("18.2.10");var VP=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();var NC=new P(""),SC=new P(""),HP=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Mp||(AC(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(me(te),me(OC),me(SC))}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac})}}return e})(),OC=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Mp?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function AC(e){Mp=e}var Mp;function xp(e){return!!e&&typeof e.then=="function"}function RC(e){return!!e&&typeof e.subscribe=="function"}var PC=new P(""),_p=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=M(PC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=o();if(xp(i))n.push(i);else if(RC(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),mc=new P("");function kC(){zh(()=>{throw new D(600,!1)})}function LC(e){return e.isBoundToModule}var $u=class{constructor(t,n){this.name=t,this.token=n}},UP=10;function $P(e,t,n){try{let r=n();return xp(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function FC(e,t){return Array.isArray(t)?t.reduce(FC,e):Z(Z({},e),t)}var Xt=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=M(gy),this.afterRenderManager=M(wf),this.zonelessEnabled=M(fi),this.dirtyFlags=0,this.deferredDirtyFlags=0,this.externalTestViews=new Set,this.beforeRender=new Ft,this.afterTick=new Ft,this.componentTypes=[],this.components=[],this.isStable=M(Jt).hasPendingTasks.pipe(yt(n=>!n)),this._injector=M(ut)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}get injector(){return this._injector}bootstrap(n,r){let o=n instanceof Fo;if(!this._injector.get(_p).done){let f=!o&&wo(n),p=!1;throw new D(405,p)}let s;o?s=n:s=this._injector.get(Dn).resolveComponentFactory(n),this.componentTypes.push(s.componentType);let a=LC(s)?void 0:this._injector.get(Yt),c=r||s.selector,l=s.create(ge.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(NC,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),_s(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){if(this._runningTick)throw new D(101,!1);let n=A(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,A(n),this.afterTick.next()}}synchronize(){let n=null;this._injector.destroyed||(n=this._injector.get(jo,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++ka(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;_s(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);let r=this._injector.get(mc,[]);[...this._bootstrapListeners,...r].forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>_s(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new D(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function _s(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var vs;function Np(e){vs??=new WeakMap;let t=vs.get(e);if(t)return t;let n=e.isStable.pipe(Rc(r=>r)).toPromise().then(()=>{});return vs.set(e,n),e.onDestroy(()=>vs?.delete(e)),n}function jC(e,t,n,r){if(!n&&!ka(e))return;LI(e,t,n&&!r?0:1)}var ma=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},BP=(()=>{class e{compileModuleSync(n){return new vr(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=Qe(n),i=Dt(o.declarations).reduce((s,a)=>{let c=Q(a);return c&&s.push(new Zt(c)),s},[]);return new ma(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),VC=new P(""),Bu=class{};function HC(e,t,n){let r=new vr(n);return Promise.resolve(r)}function Lg(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var qP=(()=>{class e{constructor(){this.zone=M(te),this.changeDetectionScheduler=M(_t),this.applicationRef=M(Xt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),UC=new P("",{factory:()=>!1});function gc({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new te(je(Z({},Sp()),{scheduleInRootZone:n})),[{provide:te,useFactory:e},{provide:qt,multi:!0,useFactory:()=>{let r=M(qP,{optional:!0});return()=>r.initialize()}},{provide:qt,multi:!0,useFactory:()=>{let r=M(GP);return()=>{r.initialize()}}},t===!0?{provide:tE,useValue:!0}:[],{provide:lf,useValue:n??py}]}function WP(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=gc({ngZoneFactory:()=>{let o=Sp(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&ye("NgZone_CoalesceEvent"),new te(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return ei([{provide:UC,useValue:!0},{provide:fi,useValue:!1},r])}function Sp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var GP=(()=>{class e{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=M(te),this.pendingTasks=M(Jt)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{te.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{te.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var vc=(()=>{class e{constructor(){this.appRef=M(Xt),this.taskService=M(Jt),this.ngZone=M(te),this.zonelessEnabled=M(fi),this.disableScheduling=M(tE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Bs):null,this.scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(M(lf,{optional:!0})??!1),this.cancelScheduledCallback=null,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof fr||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 7:{this.appRef.deferredDirtyFlags|=8;break}case 9:case 8:case 6:case 10:default:this.appRef.dirtyFlags|=8}if(!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?Hm:hy;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Bs+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Hm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function zP(){return ye("NgZoneless"),ei([{provide:_t,useExisting:vc},{provide:te,useClass:fr},{provide:fi,useValue:!0},{provide:lf,useValue:!1},[]])}function QP(){return typeof $localize<"u"&&$localize.locale||qo}var Op=new P("",{providedIn:"root",factory:()=>M(Op,L.Optional|L.SkipSelf)||QP()}),ZP=new P("",{providedIn:"root",factory:()=>wR}),YP=new P(""),KP=new P(""),$C=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}($C||{});var ga=new P("");function ys(e){return!e.moduleRef}function BC(e){let t=ys(e)?e.r3Injector:e.moduleRef.injector,n=t.get(te);return n.run(()=>{ys(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Mt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),ys(e)){let i=()=>t.destroy(),s=e.platformInjector.get(ga);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(ga);s.add(i),e.moduleRef.onDestroy(()=>{_s(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return $P(r,n,()=>{let i=t.get(_p);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Op,qo);if(Kw(s||qo),ys(e)){let a=t.get(Xt);return e.rootComponent!==void 0&&a.bootstrap(e.rootComponent),a}else return JP(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function JP(e,t){let n=e.injector.get(Xt);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new D(-403,!1);t.push(e)}var Ap=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>Qx(r?.ngZone,je(Z({},Sp({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[gc({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:_t,useExisting:vc}],c=pA(n.moduleType,this.injector,a);return BC({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=FC({},r);return HC(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(ga,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(me(ge))}}static{this.\u0275prov=B({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Bt=null,Rp=new P("");function qC(e){if(Bt&&!Bt.get(Rp,!1))throw new D(400,!1);kC(),Bt=e;let t=e.get(Ap);return QC(e),t}function WC(e,t,n=[]){let r=`Platform: ${t}`,o=new P(r);return(i=[])=>{let s=yc();if(!s||s.injector.get(Rp,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):qC(GC(a,r))}return zC(o)}}function GC(e=[],t){return ge.create({name:t,providers:[{provide:fd,useValue:"platform"},{provide:ga,useValue:new Set([()=>Bt=null])},...e]})}function zC(e){let t=yc();if(!t)throw new D(401,!1);return t}function yc(){return Bt?.get(Ap)??null}function XP(){yc()?.destroy()}function ek(e=[]){if(Bt)return Bt;let t=GC(e);return Bt=t,kC(),QC(t),t}function QC(e){e.get(My,null)?.forEach(n=>n())}function tk(e){return ei([])}function nk(){return!1}function rk(){}function ok(e){let t=NE(e);if(!t)throw ZC(e);return new vr(t)}function ik(e){let t=NE(e);if(!t)throw ZC(e);return t}function ZC(e){return new Error(`No module with ID ${e} loaded`)}var Pp=(()=>{class e{static{this.__NG_ELEMENT_ID__=YC}}return e})();function YC(e){return sk(q(),g(),(e&16)===16)}function sk(e,t,n){if(_n(e)&&!n){let r=Ye(e.index,t);return new Qt(r,r)}else if(e.type&175){let r=t[le];return new Qt(r,t)}return null}var va=class extends Pp{},qu=class extends va{};var Wu=class{constructor(t,n){this.name=t,this.callback=n}};function ak(e){return e.map(t=>t.nativeElement)}var Go=class{constructor(t){this.nativeNode=t}get parent(){let t=this.nativeNode.parentNode;return t?new xn(t):null}get injector(){return p_(this.nativeNode)}get componentInstance(){let t=this.nativeNode;return t&&(Gm(t)||f_(t))}get context(){return Gm(this.nativeNode)||d_(this.nativeNode)}get listeners(){return y_(this.nativeNode).filter(t=>t.type==="dom")}get references(){return g_(this.nativeNode)}get providerTokens(){return h_(this.nativeNode)}},xn=class extends Go{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){let t=_e(this.nativeNode),n=t?t.lView:null;return n!==null?n[I].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){let t=_e(this.nativeNode),n=t?t.lView:null;if(n===null)return{};let r=n[I].data,o=r[t.nodeIndex],i={};return ck(this.nativeElement,i),uk(i,o,n,r),i}get attributes(){let t={},n=this.nativeElement;if(!n)return t;let r=_e(n),o=r?r.lView:null;if(o===null)return{};let i=o[I].data[r.nodeIndex].attrs,s=[];if(i){let a=0;for(;at[i]=!0),t}get childNodes(){let t=this.nativeNode.childNodes,n=[];for(let r=0;r{if(i.name===t){let s=i.callback;s.call(r,n),o.push(s)}}),typeof r.eventListeners=="function"&&r.eventListeners(t).forEach(i=>{if(i.toString().indexOf("__ngUnwrap__")!==-1){let s=i("__ngUnwrap__");return o.indexOf(s)===-1&&s.call(r,n)}})}};function ck(e,t){if(e){let n=Object.getPrototypeOf(e),r=Node.prototype;for(;n!==null&&n!==r;){let o=Object.getOwnPropertyDescriptors(n);for(let i in o)if(!i.startsWith("__")&&!i.startsWith("on")){let s=e[i];lk(s)&&(t[i]=s)}n=Object.getPrototypeOf(n)}}}function lk(e){return typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e===null}function Fg(e,t,n,r){let o=_e(e.nativeNode),i=o?o.lView:null;if(i!==null){let s=i[I].data[o.nodeIndex];dn(s,i,t,n,r,e.nativeNode)}else kp(e.nativeNode,t,n,r)}function dn(e,t,n,r,o,i){let s=nx(e,t);if(e.type&11){if(Cl(s,n,r,o,i),_n(e)){let c=Ye(e.index,t);c&&c[I].firstChild&&dn(c[I].firstChild,c,n,r,o,i)}else e.child&&dn(e.child,t,n,r,o,i),s&&kp(s,n,r,o);let a=t[e.index];De(a)&&jg(a,n,r,o,i)}else if(e.type&4){let a=t[e.index];Cl(a[ft],n,r,o,i),jg(a,n,r,o,i)}else if(e.type&16){let a=t[le],l=a[ve].projection[e.projection];if(Array.isArray(l))for(let u of l)Cl(u,n,r,o,i);else if(l){let u=a[ie],d=u[I].data[l.index];dn(d,u,n,r,o,i)}}else e.child&&dn(e.child,t,n,r,o,i);if(i!==s){let a=e.flags&2?e.projectionNext:e.next;a&&dn(a,t,n,r,o,i)}}function jg(e,t,n,r,o){for(let i=X;i1){let u=c[1];for(let d=1;dt,Ia=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||dk}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Gu(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ea),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ea),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Gu=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},zu=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ea=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new zu,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Vg(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Zu(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Zu=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function Hg(){return new Lp([new ya])}var Lp=(()=>{class e{static{this.\u0275prov=B({token:e,providedIn:"root",factory:Hg})}constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Hg()),deps:[[e,new Sa,new Na]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new D(901,!1)}}return e})();function Ug(){return new Fp([new wa])}var Fp=(()=>{class e{static{this.\u0275prov=B({token:e,providedIn:"root",factory:Ug})}constructor(n){this.factories=n}static create(n,r){if(r){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Ug()),deps:[[e,new Sa,new Na]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r)return r;throw new D(901,!1)}}return e})(),fk=[new wa],pk=[new ya],hk=new Lp(pk),mk=new Fp(fk),gk=WC(null,"core",[]),vk=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(me(Xt))}}static{this.\u0275mod=ld({type:e})}static{this.\u0275inj=Ma({})}}return e})();function yk(e){}function Ik(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=ek(r),i=[gc({}),{provide:_t,useExisting:vc},...n||[]],s=new sa({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return BC({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}}function Yu(e,t){let n=e[I];for(let r=w;ro+i+":;",""),r=e.getAttribute(no.JSACTION);e.setAttribute(no.JSACTION,`${r??""}${n}`)}var Dk=(e,t,n)=>{let r=e,o=r.__jsaction_fns??new Map,i=o.get(t)??[];i.push(n),o.set(t,i),r.__jsaction_fns=o},Ck=e=>{e.removeAttribute(no.JSACTION),e.__jsaction_fns=void 0},KC=new P("",{providedIn:"root",factory:()=>({})}),$g=new Set;function Bg(e){return e.get(Fd,jy)}function bk(){return[{provide:Fd,useFactory:()=>{let e=!0;if(Ae()){let t=M($a);e=!!window._ejsas?.[t]}return e&&ye("NgEventReplay"),e}},{provide:qt,useValue:()=>{let e=M(ge);Ae(e)&&Bg(e)&&Ng((t,n,r)=>{Dk(t,n,r),$g.add(t)})},multi:!0},{provide:mc,useFactory:()=>{if(Ae()){let e=M(ge),t=M(Xt);return()=>{Bg(e)&&Np(t).then(()=>{let n=e.get(KC);Tk(n,e),$g.forEach(Ck),Ng(()=>{})})}}return()=>{}},multi:!0}]}var Tk=(e,t)=>{let n=t.get($a),r=window._ejsas[n],o=e.instance=new ym(new is(r.c));for(let a of r.et)o.addEvent(a);for(let a of r.etc)o.addEvent(a);let i=Im(n);o.replayEarlyEventInfos(i),Em(n);let s=new ss(Ek);vm(o,s)};function Mk(e,t,n){let r=new Map,o=t[ur],i=e.cleanup;if(!i||!o)return r;for(let s=0;s=0)&&(r.has(u)?r.get(u).push(l):r.set(u,[l]))}return r}var Ku=class{constructor(){this.views=[],this.indexByContent=new Map}add(t){let n=JSON.stringify(t);if(!this.indexByContent.has(n)){let r=this.views.length;return this.views.push(t),this.indexByContent.set(n,r),r}return this.indexByContent.get(n)}getAll(){return this.views}},xk=0;function JC(e){return e.ssrId||(e.ssrId=`t${xk++}`),e.ssrId}function XC(e,t,n){let r=[];return Po(e,t,n,r),r.length}function _k(e){let t=[];return RI(e,t),t.length}function eb(e,t){let n=e[ne];return n&&!n.hasAttribute(_o)?Da(n,e,t):null}function tb(e,t){let n=gd(e[ne]),r=eb(n,t);if(r===null)return;let o=U(n[ne]),i=e[ie],s=Da(o,i,t),a=n[x],c=`${r}|${s}`;a.setAttribute(o,co,c)}function Nk(e,t){let n=e.injector,r=zS(n),o=new Ku,i=new Map,s=e._views,a=n.get(Fd,jy),c={regular:new Set,capture:new Set};for(let d of s){let f=Sy(d);if(f!==null){let p={serializedViewCollection:o,corruptedTextNodes:i,isI18nHydrationEnabled:r,i18nChildren:new Map,eventTypesToReplay:c,shouldReplayEvents:a};De(f)?tb(f,p):eb(f,p),Rk(i,t)}}let l=o.getAll();return n.get(si).set(Pd,l),c}function Sk(e,t){let n=[],r="";for(let o=X;o0&&l===r){let u=n[n.length-1];u[zs]??=1,u[zs]++}else r=l,n.push(c)}return n}function vo(e,t,n,r){let o=t.index-w;e[Qs]??={},e[Qs][o]??=qS(t,n,r)}function Tl(e,t){let n=typeof t=="number"?t:t.index-w;e[ao]??=[],e[ao].includes(n)||e[ao].push(n)}function nb(e,t){let n={},r=e[I],o=QS(r,t),i=t.shouldReplayEvents?Mk(r,e,t.eventTypesToReplay):null;for(let s=w;s{let e=!0;return Ae()&&(e=!!M(si,{optional:!0})?.get(Pd,null)),e&&ye("NgHydration"),e}},{provide:qt,useValue:()=>{YI(!1),Ae()&&M(io)&&(Hk(),kk())},multi:!0},{provide:Ly,useFactory:()=>Ae()&&M(io)},{provide:mc,useFactory:()=>{if(Ae()&&M(io)){let e=M(Xt),t=M(ge);return()=>{Fk(e,t).then(()=>{aO(e)})}}return()=>{}},multi:!0}])}function Vk(){return[{provide:Fy,useValue:!0},{provide:qt,useValue:()=>{Lk(),YI(!0),ye("NgI18nHydration")},multi:!0}]}function Hk(){let e=Tr(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===_y){t=n;break}if(!t)throw new D(-507,!1)}function Uk(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function $k(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function Bk(e){return ce({usage:1,kind:"directive",type:e.type}).compileDirectiveDeclaration(Ee,`ng:///${e.type.name}/\u0275fac.js`,e)}function qk(e){Cp(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function Wk(e){BD(e.type,e.resolveDeferredDeps,(...t)=>{let n=e.resolveMetadata(...t);Cp(e.type,n.decorators,n.ctorParameters,n.propDecorators)})}function Gk(e){return ce({usage:1,kind:"component",type:e.type}).compileComponentDeclaration(Ee,`ng:///${e.type.name}/\u0275cmp.js`,e)}function zk(e){return ce({usage:1,kind:Qk(e.target),type:e.type}).compileFactoryDeclaration(Ee,`ng:///${e.type.name}/\u0275fac.js`,e)}function Qk(e){switch(e){case un.Directive:return"directive";case un.Component:return"component";case un.Injectable:return"injectable";case un.Pipe:return"pipe";case un.NgModule:return"NgModule"}}function Zk(e){return ce({usage:1,kind:"injectable",type:e.type}).compileInjectableDeclaration(Ee,`ng:///${e.type.name}/\u0275prov.js`,e)}function Yk(e){return ce({usage:1,kind:"NgModule",type:e.type}).compileInjectorDeclaration(Ee,`ng:///${e.type.name}/\u0275inj.js`,e)}function Kk(e){return ce({usage:1,kind:"NgModule",type:e.type}).compileNgModuleDeclaration(Ee,`ng:///${e.type.name}/\u0275mod.js`,e)}function Jk(e){return ce({usage:1,kind:"pipe",type:e.type}).compilePipeDeclaration(Ee,`ng:///${e.type.name}/\u0275pipe.js`,e)}function Xk(e,t){ye("NgSignals");let n=Uc(e);return t?.equal&&(n[pe].equal=t.equal),n}function e0(e){let t=A(null);try{return e()}finally{A(t)}}var t0=new P("",{providedIn:"root",factory:()=>M(rb)}),rb=(()=>{class e{static{this.\u0275prov=B({token:e,providedIn:"root",factory:()=>new Ju})}}return e})(),Ju=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=M(Jt),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Xu=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=Yh(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Mt,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function ob(e,t){ye("NgSignals"),!t?.injector&&Ra(ob);let n=t?.injector??M(ge),r=t?.manualCleanup!==!0?n.get(Cr):null,o=new Xu(n.get(t0),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Pp,null,{optional:!0});return!i||!(i._lView[C]&8)?o.watcher.notify():(i._lView[ws]??=[]).push(o.watcher.notify),o}function n0(e,t){let n=Q(e),r=t.elementInjector||Aa();return new Zt(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function r0(e){let t=Q(e);if(!t)return null;let n=new Zt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function o0(...e){return e.reduce((t,n)=>Object.assign(t,n,{providers:[...t.providers,...n.providers]}),{providers:[]})}export{Y as a,fb as b,F as c,kc as d,Lc as e,Ft as f,Zr as g,eT as h,tT as i,sn as j,db as k,ot as l,Pb as m,kb as n,nT as o,It as p,rT as q,yt as r,Sb as s,qe as t,zr as u,Bn as v,oT as w,iT as x,Wc as y,Gr as z,fT as A,qr as B,Db as C,wh as D,Ab as E,Rh as F,Qr as G,qn as H,Oc as I,Rb as J,Lb as K,Vb as L,Rc as M,Pc as N,Hb as O,Ub as P,$b as Q,kh as R,Lh as S,Bb as T,D as U,Ge as V,ba as W,B as X,Ma as Y,rM as Z,P as _,L as $,me as aa,M as ba,Na as ca,Sa as da,Wt as ea,cv as fa,ld as ga,lv as ha,uv as ia,ei as ja,pv as ka,fd as la,ut as ma,GM as na,Ra as oa,md as pa,Pv as qa,kv as ra,Gv as sa,Qv as ta,ay as ua,Ha as va,ge as wa,Cr as xa,Jt as ya,ct as za,te as Aa,Mt as Ba,Yx as Ca,Jx as Da,ii as Ea,D_ as Fa,$a as Ga,My as Ha,Od as Ia,T_ as Ja,M_ as Ka,xy as La,x_ as Ma,Ot as Na,xr as Oa,H_ as Pa,U_ as Qa,$_ as Ra,B_ as Sa,q_ as Ta,qa as Ua,zy as Va,An as Wa,Qy as Xa,Hd as Ya,Xy as Za,rI as _a,Zs as $a,yI as ab,_r as bb,EI as cb,ko as db,jo as eb,pO as fb,nc as gb,ye as hb,gE as ib,VO as jb,WO as kb,gf as lb,kE as mb,Yt as nb,ia as ob,LE as pb,vf as qb,If as rb,ca as sb,tw as tb,iw as ub,sw as vb,Cf as wb,Rf as xb,Pf as yb,kf as zb,Cw as Ab,jw as Bb,Vw as Cb,Hw as Db,Uw as Eb,$w as Fb,Bw as Gb,cc as Hb,lc as Ib,Lf as Jb,uc as Kb,dc as Lb,Ff as Mb,Gw as Nb,jf as Ob,Hf as Pb,Er as Qb,qf as Rb,fD as Sb,pD as Tb,hD as Ub,zf as Vb,mD as Wb,gD as Xb,vD as Yb,yD as Zb,ED as _b,wD as $b,DD as ac,AD as bc,dp as cc,hc as dc,Ep as ec,PD as fc,wp as gc,Dp as hc,LD as ic,FD as jc,VD as kc,HD as lc,WD as mc,GD as nc,zD as oc,QD as pc,iC as qc,sC as rc,aC as sc,dC as tc,ha as uc,VP as vc,NC as wc,SC as xc,HP as yc,OC as zc,xp as Ac,RC as Bc,PC as Cc,mc as Dc,Xt as Ec,BP as Fc,VC as Gc,Bu as Hc,Op as Ic,WC as Jc,Pp as Kc,Fp as Lc,gk as Mc,vk as Nc,Ik as Oc,Uk as Pc,$k as Qc,Xk as Rc,e0 as Sc,ob as Tc,r0 as Uc,i0 as Vc}; diff --git a/dist/chunk-ZKAUCJHV.js b/dist/chunk-ZKAUCJHV.js deleted file mode 100644 index 312b13c4..00000000 --- a/dist/chunk-ZKAUCJHV.js +++ /dev/null @@ -1,34 +0,0 @@ -import{a as Z,b as nt,e as Lp}from"./chunk-DEPBX7UX.js";function T(e){return typeof e=="function"}function Cc(e){return T(e?.lift)}function R(e){return t=>{if(Cc(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Fn(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var wi=Fn(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function tn(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Y=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(T(r))try{r()}catch(i){t=i instanceof wi?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Fp(i)}catch(s){t=t??[],s instanceof wi?t=[...t,...s.errors]:t.push(s)}}if(t)throw new wi(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Fp(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&tn(n,t)}remove(t){let{_finalizers:n}=this;n&&tn(n,t),t instanceof e&&t._removeParent(this)}};Y.EMPTY=(()=>{let e=new Y;return e.closed=!0,e})();var bc=Y.EMPTY;function Di(e){return e instanceof Y||e&&"closed"in e&&T(e.remove)&&T(e.add)&&T(e.unsubscribe)}function Fp(e){T(e)?e():e.unsubscribe()}var Be={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var jn={setTimeout(e,t,...n){let{delegate:r}=jn;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=jn;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Ci(e){jn.setTimeout(()=>{let{onUnhandledError:t}=Be;if(t)t(e);else throw e})}function nn(){}var jp=Mc("C",void 0,void 0);function Vp(e){return Mc("E",void 0,e)}function Hp(e){return Mc("N",e,void 0)}function Mc(e,t,n){return{kind:e,value:t,error:n}}var rn=null;function Vn(e){if(Be.useDeprecatedSynchronousErrorHandling){let t=!rn;if(t&&(rn={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=rn;if(rn=null,n)throw r}}else e()}function Up(e){Be.useDeprecatedSynchronousErrorHandling&&rn&&(rn.errorThrown=!0,rn.error=e)}var on=class extends Y{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Di(t)&&t.add(this)):this.destination=nb}static create(t,n,r){return new Lt(t,n,r)}next(t){this.isStopped?xc(Hp(t),this):this._next(t)}error(t){this.isStopped?xc(Vp(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?xc(jp,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},eb=Function.prototype.bind;function Tc(e,t){return eb.call(e,t)}var Nc=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bi(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bi(r)}else bi(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bi(n)}}},Lt=class extends on{constructor(t,n,r){super();let o;if(T(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Be.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Tc(t.next,i),error:t.error&&Tc(t.error,i),complete:t.complete&&Tc(t.complete,i)}):o=t}this.destination=new Nc(o)}};function bi(e){Be.useDeprecatedSynchronousErrorHandling?Up(e):Ci(e)}function tb(e){throw e}function xc(e,t){let{onStoppedNotification:n}=Be;n&&jn.setTimeout(()=>n(e,t))}var nb={closed:!0,next:nn,error:tb,complete:nn};function S(e,t,n,r,o){return new _c(e,t,n,r,o)}var _c=class extends on{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Gr(e,t){return R((n,r)=>{let o=0;n.subscribe(S(r,i=>e.call(t,i,o++)&&r.next(i)))})}var ub={};Lp(ub,{__addDisposableResource:()=>ih,__assign:()=>Mi,__asyncDelegator:()=>Jp,__asyncGenerator:()=>_i,__asyncValues:()=>Si,__await:()=>rt,__awaiter:()=>xi,__classPrivateFieldGet:()=>nh,__classPrivateFieldIn:()=>oh,__classPrivateFieldSet:()=>rh,__createBinding:()=>Ni,__decorate:()=>qp,__disposeResources:()=>sh,__esDecorate:()=>rb,__exportStar:()=>Qp,__extends:()=>$p,__generator:()=>zp,__importDefault:()=>th,__importStar:()=>eh,__makeTemplateObject:()=>Xp,__metadata:()=>Gp,__param:()=>Wp,__propKey:()=>ib,__read:()=>Oc,__rest:()=>Bp,__runInitializers:()=>ob,__setFunctionName:()=>sb,__spread:()=>Zp,__spreadArray:()=>Kp,__spreadArrays:()=>Yp,__values:()=>Ti,default:()=>lb});var Sc=function(e,t){return Sc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},Sc(e,t)};function $p(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Mi=function(){return Mi=Object.assign||function(t){for(var n,r=1,o=arguments.length;r=0;a--)(s=e[a])&&(i=(o<3?s(i):o>3?s(t,n,i):s(t,n))||i);return o>3&&i&&Object.defineProperty(t,n,i),i}function Wp(e,t){return function(n,r){t(n,r,e)}}function rb(e,t,n,r,o,i){function s(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var a=r.kind,c=a==="getter"?"get":a==="setter"?"set":"value",l=!t&&e?r.static?e:e.prototype:null,u=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d,p=!1,f=n.length-1;f>=0;f--){var h={};for(var m in r)h[m]=m==="access"?{}:r[m];for(var m in r.access)h.access[m]=r.access[m];h.addInitializer=function(y){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(s(y||null))};var v=(0,n[f])(a==="accessor"?{get:u.get,set:u.set}:u[c],h);if(a==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(d=s(v.get))&&(u.get=d),(d=s(v.set))&&(u.set=d),(d=s(v.init))&&o.unshift(d)}else(d=s(v))&&(a==="field"?o.unshift(d):u[c]=d)}l&&Object.defineProperty(l,r.name,u),p=!0}function ob(e,t,n){for(var r=arguments.length>2,o=0;o0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Oc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Zp(){for(var e=[],t=0;t1||c(f,m)})},h&&(o[f]=h(o[f])))}function c(f,h){try{l(r[f](h))}catch(m){p(i[0][3],m)}}function l(f){f.value instanceof rt?Promise.resolve(f.value.v).then(u,d):p(i[0][2],f)}function u(f){c("next",f)}function d(f){c("throw",f)}function p(f,h){f(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Jp(e){var t,n;return t={},r("next"),r("throw",function(o){throw o}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(o,i){t[o]=e[o]?function(s){return(n=!n)?{value:rt(e[o](s)),done:!1}:i?i(s):s}:i}}function Si(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ti=="function"?Ti(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}function Xp(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ab=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function eh(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Ni(t,e,n);return ab(t,e),t}function th(e){return e&&e.__esModule?e:{default:e}}function nh(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function rh(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n}function oh(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function ih(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(o=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");o&&(r=function(){try{o.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var cb=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function sh(e){function t(r){e.error=e.hasError?new cb(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}function n(){for(;e.stack.length;){var r=e.stack.pop();try{var o=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(o).then(n,function(i){return t(i),n()})}catch(i){t(i)}}if(e.hasError)throw e.error}return n()}var lb={__extends:$p,__assign:Mi,__rest:Bp,__decorate:qp,__param:Wp,__metadata:Gp,__awaiter:xi,__generator:zp,__createBinding:Ni,__exportStar:Qp,__values:Ti,__read:Oc,__spread:Zp,__spreadArrays:Yp,__spreadArray:Kp,__await:rt,__asyncGenerator:_i,__asyncDelegator:Jp,__asyncValues:Si,__makeTemplateObject:Xp,__importStar:eh,__importDefault:th,__classPrivateFieldGet:nh,__classPrivateFieldSet:rh,__classPrivateFieldIn:oh,__addDisposableResource:ih,__disposeResources:sh};var Hn=e=>e&&typeof e.length=="number"&&typeof e!="function";function Oi(e){return T(e?.then)}var Un=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Ee(e){return e}function db(...e){return Ac(e)}function Ac(e){return e.length===0?Ee:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var j=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=pb(n)?n:new Lt(n,r,o);return Vn(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=ah(r),new r((o,i)=>{let s=new Lt({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Un](){return this}pipe(...n){return Ac(n)(this)}toPromise(n){return n=ah(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function ah(e){var t;return(t=e??Be.Promise)!==null&&t!==void 0?t:Promise}function fb(e){return e&&T(e.next)&&T(e.error)&&T(e.complete)}function pb(e){return e&&e instanceof on||fb(e)&&Di(e)}function Ai(e){return T(e[Un])}function Ri(e){return Symbol.asyncIterator&&T(e?.[Symbol.asyncIterator])}function Pi(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function hb(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var ki=hb();function Li(e){return T(e?.[ki])}function Fi(e){return _i(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield rt(n.read());if(o)return yield rt(void 0);yield yield rt(r)}}finally{n.releaseLock()}})}function ji(e){return T(e?.getReader)}function W(e){if(e instanceof j)return e;if(e!=null){if(Ai(e))return mb(e);if(Hn(e))return gb(e);if(Oi(e))return vb(e);if(Ri(e))return ch(e);if(Li(e))return yb(e);if(ji(e))return Eb(e)}throw Pi(e)}function mb(e){return new j(t=>{let n=e[Un]();if(T(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function gb(e){return new j(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Ci)})}function yb(e){return new j(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function ch(e){return new j(t=>{Ib(e,t).catch(n=>t.error(n))})}function Eb(e){return ch(Fi(e))}function Ib(e,t){var n,r,o,i;return xi(this,void 0,void 0,function*(){try{for(n=Si(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function lh(e){return R((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(S(n,l=>{r=!0,o=l,i||W(e(l)).subscribe(i=S(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}var Vi=class extends Y{constructor(t,n){super()}schedule(t,n=0){return this}};var zr={setInterval(e,t,...n){let{delegate:r}=zr;return r?.setInterval?r.setInterval(e,t,...n):setInterval(e,t,...n)},clearInterval(e){let{delegate:t}=zr;return(t?.clearInterval||clearInterval)(e)},delegate:void 0};var Ft=class extends Vi{constructor(t,n){super(t,n),this.scheduler=t,this.work=n,this.pending=!1}schedule(t,n=0){var r;if(this.closed)return this;this.state=t;let o=this.id,i=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=(r=this.id)!==null&&r!==void 0?r:this.requestAsyncId(i,this.id,n),this}requestAsyncId(t,n,r=0){return zr.setInterval(t.flush.bind(t,this),r)}recycleAsyncId(t,n,r=0){if(r!=null&&this.delay===r&&this.pending===!1)return n;n!=null&&zr.clearInterval(n)}execute(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;let r=this._execute(t,n);if(r)return r;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,n){let r=!1,o;try{this.work(t)}catch(i){r=!0,o=i||new Error("Scheduled action threw falsy error")}if(r)return this.unsubscribe(),o}unsubscribe(){if(!this.closed){let{id:t,scheduler:n}=this,{actions:r}=n;this.work=this.state=this.scheduler=null,this.pending=!1,tn(r,this),t!=null&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null,super.unsubscribe()}}};var Rc={now(){return(Rc.delegate||Date).now()},delegate:void 0};var $n=class e{constructor(t,n=e.now){this.schedulerActionCtor=t,this.now=n}schedule(t,n=0,r){return new this.schedulerActionCtor(this,t).schedule(r,n)}};$n.now=Rc.now;var jt=class extends $n{constructor(t,n=$n.now){super(t,n),this.actions=[],this._active=!1}flush(t){let{actions:n}=this;if(this._active){n.push(t);return}let r;this._active=!0;do if(r=t.execute(t.state,t.delay))break;while(t=n.shift());if(this._active=!1,r){for(;t=n.shift();)t.unsubscribe();throw r}}};var sn=new jt(Ft),uh=sn;function Hi(e){return e&&T(e.schedule)}function dh(e){return e instanceof Date&&!isNaN(e)}function Qr(e=0,t,n=uh){let r=-1;return t!=null&&(Hi(t)?n=t:r=t),new j(o=>{let i=dh(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function wb(e,t=sn){return lh(()=>Qr(e,t))}function Pc(e){return e[e.length-1]}function Ui(e){return T(Pc(e))?e.pop():void 0}function ot(e){return Hi(Pc(e))?e.pop():void 0}function fh(e,t){return typeof Pc(e)=="number"?e.pop():t}function Me(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ph(e){return R((t,n)=>{let r=null,o=!1,i;r=t.subscribe(S(n,void 0,void 0,s=>{i=W(e(s,ph(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}var{isArray:Db}=Array,{getPrototypeOf:Cb,prototype:bb,keys:Mb}=Object;function $i(e){if(e.length===1){let t=e[0];if(Db(t))return{args:t,keys:null};if(Tb(t)){let n=Mb(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Tb(e){return e&&typeof e=="object"&&Cb(e)===bb}function Bi(e,t=0){return R((n,r)=>{n.subscribe(S(r,o=>Me(r,e,()=>r.next(o),t),()=>Me(r,e,()=>r.complete(),t),o=>Me(r,e,()=>r.error(o),t)))})}function qi(e,t=0){return R((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function hh(e,t){return W(e).pipe(qi(t),Bi(t))}function mh(e,t){return W(e).pipe(qi(t),Bi(t))}function gh(e,t){return new j(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function vh(e,t){return new j(n=>{let r;return Me(n,t,()=>{r=e[ki](),Me(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>T(r?.return)&&r.return()})}function Wi(e,t){if(!e)throw new Error("Iterable cannot be null");return new j(n=>{Me(n,t,()=>{let r=e[Symbol.asyncIterator]();Me(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function yh(e,t){return Wi(Fi(e),t)}function Eh(e,t){if(e!=null){if(Ai(e))return hh(e,t);if(Hn(e))return gh(e,t);if(Oi(e))return mh(e,t);if(Ri(e))return Wi(e,t);if(Li(e))return vh(e,t);if(ji(e))return yh(e,t)}throw Pi(e)}function it(e,t){return t?Eh(e,t):W(e)}function Et(e,t){return R((n,r)=>{let o=0;n.subscribe(S(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:xb}=Array;function Nb(e,t){return xb(t)?e(...t):e(t)}function Bn(e){return Et(t=>Nb(e,t))}function Gi(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function _b(...e){let t=ot(e),n=Ui(e),{args:r,keys:o}=$i(e);if(r.length===0)return it([],t);let i=new j(Sb(r,t,o?s=>Gi(o,s):Ee));return n?i.pipe(Bn(n)):i}function Sb(e,t,n=Ee){return r=>{Ih(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=it(e[c],t),u=!1;l.subscribe(S(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function Ih(e,t,n){e?Me(n,e,t):t()}function wh(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,d=!1,p=()=>{d&&!c.length&&!l&&t.complete()},f=m=>l{i&&t.next(m),l++;let v=!1;W(n(m,u++)).subscribe(S(t,y=>{o?.(y),i?f(y):t.next(y)},()=>{v=!0},void 0,()=>{if(v)try{for(l--;c.length&&lh(y)):h(y)}p()}catch(y){t.error(y)}}))};return e.subscribe(S(t,f,()=>{d=!0,p()})),()=>{a?.()}}function qe(e,t,n=1/0){return T(t)?qe((r,o)=>Et((i,s)=>t(r,i,o,s))(W(e(r,o))),n):(typeof t=="number"&&(n=t),R((r,o)=>wh(r,o,e,n)))}function Dh(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(S(s,u=>{let d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Zr(e=1/0){return qe(Ee,e)}function Ch(){return Zr(1)}function Ob(e,t){return T(t)?qe(e,t,1):qe(e,1)}var bh=Fn(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var Vt=(()=>{class e extends j{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new zi(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new bh}next(n){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Vn(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?bc:(this.currentObservers=null,i.push(n),new Y(()=>{this.currentObservers=null,tn(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new j;return n.source=this,n}}return e.create=(t,n)=>new zi(t,n),e})(),zi=class extends Vt{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:bc}};function Mh(e,t=sn){return R((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function Yr(e){return R((t,n)=>{let r=!1;t.subscribe(S(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function qn(...e){return Ch()(it(e,ot(e)))}var an=new j(e=>e.complete());function Wn(e){return e<=0?()=>an:R((t,n)=>{let r=0;t.subscribe(S(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Th(){return R((e,t)=>{e.subscribe(S(t,nn))})}function kc(e){return Et(()=>e)}function Lc(e,t){return t?n=>qn(t.pipe(Wn(1),Th()),n.pipe(Lc(e))):qe((n,r)=>W(e(n,r)).pipe(Wn(1),kc(n)))}function Ab(e,t=sn){let n=Qr(e,t);return Lc(()=>n)}function Rb(...e){let t=ot(e);return it(e,t)}function Pb(e,t){let n=T(e)?e:()=>e,r=o=>o.error(n());return new j(t?o=>t.schedule(r,0,o):r)}function kb(e,t=Ee){return e=e??Lb,R((n,r)=>{let o,i=!0;n.subscribe(S(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Lb(e,t){return e===t}var It=Fn(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Qi(e=Fb){return R((t,n)=>{let r=!1;t.subscribe(S(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function Fb(){return new It}function jb(e){return R((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function Fc(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Gr((o,i)=>e(o,i,r)):Ee,Wn(1),n?Yr(t):Qi(()=>new It))}function jc(e){return e<=0?()=>an:R((t,n)=>{let r=[];t.subscribe(S(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Vb(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Gr((o,i)=>e(o,i,r)):Ee,jc(1),n?Yr(t):Qi(()=>new It))}function Vc(){return R((e,t)=>{let n=null;e._refCount++;let r=S(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Hc=class extends j{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Cc(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Y;let n=this.getSubject();t.add(this.source.subscribe(S(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Y.EMPTY)}return t}refCount(){return Vc()(this)}};var Kr=class extends Vt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};function Hb(e,t){return R(Dh(e,t,arguments.length>=2,!0))}function Ub(...e){let t=ot(e);return R((n,r)=>{(t?qn(e,n,t):qn(e,n)).subscribe(r)})}function xh(e,t){return R((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(S(r,c=>{o?.unsubscribe();let l=0,u=i++;W(e(c,u)).subscribe(o=S(r,d=>r.next(t?t(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function Nh(e){return R((t,n)=>{W(e).subscribe(S(n,()=>n.complete(),nn)),!n.closed&&t.subscribe(n)})}function $b(e,t,n){let r=T(e)||t||n?{next:e,error:t,complete:n}:e;return r?R((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(S(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Ee}var A0={};Lp(A0,{ANIMATION_MODULE_TYPE:()=>qN,APP_BOOTSTRAP_LISTENER:()=>yc,APP_ID:()=>Ba,APP_INITIALIZER:()=>TC,AfterRenderPhase:()=>Bt,ApplicationInitStatus:()=>vc,ApplicationModule:()=>$k,ApplicationRef:()=>kt,Attribute:()=>ry,COMPILER_OPTIONS:()=>AC,CSP_NONCE:()=>WN,CUSTOM_ELEMENTS_SCHEMA:()=>S_,ChangeDetectionStrategy:()=>Pa,ChangeDetectorRef:()=>Sp,Compiler:()=>hk,CompilerFactory:()=>Bu,Component:()=>rk,ComponentFactory:()=>Ho,ComponentFactoryResolver:()=>Dn,ComponentRef:()=>ta,ContentChild:()=>wA,ContentChildren:()=>IA,DEFAULT_CURRENCY_CODE:()=>wk,DebugElement:()=>Nn,DebugEventListener:()=>Wu,DebugNode:()=>Qo,DefaultIterableDiffer:()=>Da,DestroyRef:()=>An,Directive:()=>IC,ENVIRONMENT_INITIALIZER:()=>zt,ElementRef:()=>ci,EmbeddedViewRef:()=>qu,EnvironmentInjector:()=>dt,ErrorHandler:()=>Ke,EventEmitter:()=>lt,ExperimentalPendingTasks:()=>vN,HOST_TAG_NAME:()=>sy,Host:()=>Yg,HostAttributeToken:()=>ql,HostBinding:()=>ak,HostListener:()=>ck,INJECTOR:()=>ad,Inject:()=>Qg,InjectFlags:()=>L,Injectable:()=>lN,InjectionToken:()=>P,Injector:()=>fe,Input:()=>ik,IterableDiffers:()=>Ap,KeyValueDiffers:()=>Rp,LOCALE_ID:()=>wc,MissingTranslationStrategy:()=>kC,ModuleWithComponentFactories:()=>Ea,NO_ERRORS_SCHEMA:()=>O_,NgModule:()=>lk,NgModuleFactory:()=>ua,NgModuleRef:()=>Jt,NgProbeToken:()=>$u,NgZone:()=>ee,Optional:()=>Aa,Output:()=>sk,OutputEmitterRef:()=>Ao,PACKAGE_ROOT_URL:()=>BN,PLATFORM_ID:()=>_d,PLATFORM_INITIALIZER:()=>vy,Pipe:()=>ok,PlatformRef:()=>Np,Query:()=>Cn,QueryList:()=>qs,Renderer2:()=>PO,RendererFactory2:()=>Uo,RendererStyleFlags2:()=>Ks,Sanitizer:()=>zE,SecurityContext:()=>Rn,Self:()=>Zg,SimpleChange:()=>js,SkipSelf:()=>Ra,TRANSLATIONS:()=>Dk,TRANSLATIONS_FORMAT:()=>Ck,TemplateRef:()=>jo,Testability:()=>fk,TestabilityRegistry:()=>CC,TransferState:()=>li,Type:()=>pv,VERSION:()=>uk,Version:()=>ya,ViewChild:()=>CA,ViewChildren:()=>DA,ViewContainerRef:()=>oc,ViewEncapsulation:()=>Qt,ViewRef:()=>Ia,afterNextRender:()=>JE,afterRender:()=>KE,asNativeElements:()=>Ak,assertInInjectionContext:()=>ri,assertNotInReactiveContext:()=>LO,assertPlatform:()=>VC,booleanAttribute:()=>h0,computed:()=>T0,contentChild:()=>gA,contentChildren:()=>vA,createComponent:()=>_0,createEnvironmentInjector:()=>hf,createNgModule:()=>AI,createNgModuleRef:()=>HA,createPlatform:()=>LC,createPlatformFactory:()=>FC,defineInjectable:()=>xT,destroyPlatform:()=>bk,effect:()=>JC,enableProdMode:()=>Nk,forwardRef:()=>xa,getDebugNode:()=>Zo,getModuleFactory:()=>_k,getNgModuleById:()=>Sk,getPlatform:()=>Dc,importProvidersFrom:()=>cv,inject:()=>b,input:()=>mN,isDevMode:()=>xk,isSignal:()=>dI,isStandalone:()=>Mo,makeEnvironmentProviders:()=>ni,makeStateKey:()=>zN,mergeApplicationConfig:()=>O0,model:()=>EA,numberAttribute:()=>m0,output:()=>pN,platformCore:()=>Uk,provideExperimentalCheckNoChangesForDebug:()=>Tk,provideExperimentalZonelessChangeDetection:()=>Ek,provideZoneChangeDetection:()=>vk,reflectComponentType:()=>S0,resolveForwardRef:()=>V,runInInjectionContext:()=>pd,setTestabilityGetter:()=>bC,signal:()=>fI,untracked:()=>x0,viewChild:()=>pA,viewChildren:()=>hA,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>_p,\u0275AfterRenderEventManager:()=>Ar,\u0275CONTAINER_HEADER_OFFSET:()=>X,\u0275ChangeDetectionScheduler:()=>_t,\u0275ChangeDetectionSchedulerImpl:()=>Ic,\u0275ComponentFactory:()=>Ho,\u0275Console:()=>dk,\u0275DEFAULT_LOCALE_ID:()=>Tn,\u0275DEFER_BLOCK_CONFIG:()=>GI,\u0275DEFER_BLOCK_DEPENDENCY_INTERCEPTOR:()=>sR,\u0275DeferBlockBehavior:()=>vf,\u0275DeferBlockState:()=>K,\u0275EffectScheduler:()=>KC,\u0275IMAGE_CONFIG:()=>GN,\u0275IMAGE_CONFIG_DEFAULTS:()=>yy,\u0275INJECTOR_SCOPE:()=>fd,\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE:()=>DT,\u0275IS_HYDRATION_DOM_REUSE_ENABLED:()=>lo,\u0275LContext:()=>zs,\u0275LifecycleHooksFeature:()=>XE,\u0275LocaleDataIndex:()=>Dr,\u0275NG_COMP_DEF:()=>Jo,\u0275NG_DIR_DEF:()=>Sa,\u0275NG_ELEMENT_ID:()=>or,\u0275NG_INJ_DEF:()=>Ss,\u0275NG_MOD_DEF:()=>rd,\u0275NG_PIPE_DEF:()=>Oa,\u0275NG_PROV_DEF:()=>Do,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Ms,\u0275NO_CHANGE:()=>_,\u0275NgModuleFactory:()=>Er,\u0275NoopNgZone:()=>mr,\u0275PROVIDED_NG_ZONE:()=>PC,\u0275PendingTasks:()=>en,\u0275ReflectionCapabilities:()=>ks,\u0275Render3ComponentFactory:()=>Kt,\u0275Render3ComponentRef:()=>ca,\u0275Render3NgModuleRef:()=>yr,\u0275RuntimeError:()=>D,\u0275SSR_CONTENT_INTEGRITY_MARKER:()=>Ey,\u0275TESTABILITY:()=>wC,\u0275TESTABILITY_GETTER:()=>DC,\u0275USE_RUNTIME_DEPS_TRACKER_FOR_JIT:()=>ia,\u0275ViewRef:()=>Yt,\u0275XSS_SECURITY_URL:()=>ed,\u0275ZONELESS_ENABLED:()=>gi,\u0275_sanitizeHtml:()=>jy,\u0275_sanitizeUrl:()=>Wa,\u0275allowSanitizationBypassAndThrow:()=>Nr,\u0275annotateForHydration:()=>n0,\u0275bypassSanitizationTrustHtml:()=>s_,\u0275bypassSanitizationTrustResourceUrl:()=>u_,\u0275bypassSanitizationTrustScript:()=>c_,\u0275bypassSanitizationTrustStyle:()=>a_,\u0275bypassSanitizationTrustUrl:()=>l_,\u0275clearResolutionOfComponentResourcesQueue:()=>CI,\u0275compileComponent:()=>uC,\u0275compileDirective:()=>Dp,\u0275compileNgModule:()=>cC,\u0275compileNgModuleDefs:()=>lC,\u0275compileNgModuleFactory:()=>RC,\u0275compilePipe:()=>EC,\u0275convertToBitFlags:()=>Xo,\u0275createInjector:()=>Bl,\u0275defaultIterableDiffers:()=>Vk,\u0275defaultKeyValueDiffers:()=>Hk,\u0275depsTracker:()=>gr,\u0275detectChangesInViewIfRequired:()=>OC,\u0275devModeEqual:()=>RI,\u0275findLocaleData:()=>Lf,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>sC,\u0275formatRuntimeError:()=>Ug,\u0275generateStandaloneInDeclarationsError:()=>BP,\u0275getAsyncClassMetadataFn:()=>FP,\u0275getDebugNode:()=>Zo,\u0275getDeferBlocks:()=>Yu,\u0275getDirectives:()=>PN,\u0275getHostElement:()=>LN,\u0275getInjectableDef:()=>Ko,\u0275getLContext:()=>Se,\u0275getLocaleCurrencyCode:()=>$R,\u0275getLocalePluralCase:()=>Hw,\u0275getOutputDestroyRef:()=>fN,\u0275getSanitizationBypassType:()=>Oy,\u0275getUnknownElementStrictMode:()=>R_,\u0275getUnknownPropertyStrictMode:()=>k_,\u0275global:()=>Re,\u0275injectChangeDetectorRef:()=>$C,\u0275internalAfterNextRender:()=>na,\u0275internalCreateApplication:()=>qk,\u0275internalProvideZoneChangeDetection:()=>Ec,\u0275isBoundToModule:()=>NC,\u0275isComponentDefPendingResolution:()=>MA,\u0275isEnvironmentProviders:()=>nd,\u0275isInjectable:()=>NT,\u0275isNgModule:()=>$t,\u0275isPromise:()=>bp,\u0275isSubscribable:()=>MC,\u0275noSideEffects:()=>ht,\u0275patchComponentDefWithScope:()=>wp,\u0275performanceMarkFeature:()=>ye,\u0275queueStateUpdate:()=>YC,\u0275readHydrationInfo:()=>n_,\u0275registerLocaleData:()=>UR,\u0275renderDeferBlockState:()=>Mt,\u0275resetCompiledComponents:()=>GP,\u0275resetJitOptions:()=>UP,\u0275resolveComponentResources:()=>wI,\u0275restoreComponentResolutionQueue:()=>TA,\u0275setAllowDuplicateNgModuleIdsForTest:()=>OA,\u0275setAlternateWeakRefImpl:()=>Bk,\u0275setClassDebugInfo:()=>iC,\u0275setClassMetadata:()=>Ip,\u0275setClassMetadataAsync:()=>kD,\u0275setCurrentInjector:()=>Dt,\u0275setDocument:()=>UN,\u0275setInjectorProfilerContext:()=>OT,\u0275setLocaleId:()=>Ff,\u0275setUnknownElementStrictMode:()=>A_,\u0275setUnknownPropertyStrictMode:()=>P_,\u0275store:()=>mc,\u0275stringify:()=>me,\u0275transitiveScopesFor:()=>xn,\u0275triggerResourceLoading:()=>lc,\u0275truncateMiddle:()=>bT,\u0275unregisterLocaleData:()=>BR,\u0275unwrapSafeValue:()=>At,\u0275unwrapWritableSignal:()=>uA,\u0275whenStable:()=>Mp,\u0275withDomHydration:()=>d0,\u0275withEventReplay:()=>Yk,\u0275withI18nSupport:()=>f0,\u0275\u0275CopyDefinitionFeature:()=>NI,\u0275\u0275FactoryTarget:()=>dn,\u0275\u0275HostDirectivesFeature:()=>_I,\u0275\u0275InheritDefinitionFeature:()=>pf,\u0275\u0275InputTransformsFeature:()=>OI,\u0275\u0275NgOnChangesFeature:()=>gd,\u0275\u0275ProvidersFeature:()=>OD,\u0275\u0275StandaloneFeature:()=>AD,\u0275\u0275advance:()=>lE,\u0275\u0275attribute:()=>Ef,\u0275\u0275attributeInterpolate1:()=>If,\u0275\u0275attributeInterpolate2:()=>wf,\u0275\u0275attributeInterpolate3:()=>Df,\u0275\u0275attributeInterpolate4:()=>Cf,\u0275\u0275attributeInterpolate5:()=>bf,\u0275\u0275attributeInterpolate6:()=>Mf,\u0275\u0275attributeInterpolate7:()=>Tf,\u0275\u0275attributeInterpolate8:()=>xf,\u0275\u0275attributeInterpolateV:()=>Nf,\u0275\u0275classMap:()=>gw,\u0275\u0275classMapInterpolate1:()=>Dw,\u0275\u0275classMapInterpolate2:()=>Cw,\u0275\u0275classMapInterpolate3:()=>bw,\u0275\u0275classMapInterpolate4:()=>Mw,\u0275\u0275classMapInterpolate5:()=>Tw,\u0275\u0275classMapInterpolate6:()=>xw,\u0275\u0275classMapInterpolate7:()=>Nw,\u0275\u0275classMapInterpolate8:()=>_w,\u0275\u0275classMapInterpolateV:()=>Sw,\u0275\u0275classProp:()=>Of,\u0275\u0275componentInstance:()=>Ow,\u0275\u0275conditional:()=>Aw,\u0275\u0275contentQuery:()=>aD,\u0275\u0275contentQuerySignal:()=>dD,\u0275\u0275declareLet:()=>Ep,\u0275\u0275defer:()=>QI,\u0275\u0275deferEnableTimerScheduling:()=>zI,\u0275\u0275deferOnHover:()=>rw,\u0275\u0275deferOnIdle:()=>KI,\u0275\u0275deferOnImmediate:()=>XI,\u0275\u0275deferOnInteraction:()=>iw,\u0275\u0275deferOnTimer:()=>tw,\u0275\u0275deferOnViewport:()=>aw,\u0275\u0275deferPrefetchOnHover:()=>ow,\u0275\u0275deferPrefetchOnIdle:()=>JI,\u0275\u0275deferPrefetchOnImmediate:()=>ew,\u0275\u0275deferPrefetchOnInteraction:()=>sw,\u0275\u0275deferPrefetchOnTimer:()=>nw,\u0275\u0275deferPrefetchOnViewport:()=>cw,\u0275\u0275deferPrefetchWhen:()=>YI,\u0275\u0275deferWhen:()=>ZI,\u0275\u0275defineComponent:()=>rv,\u0275\u0275defineDirective:()=>ov,\u0275\u0275defineInjectable:()=>B,\u0275\u0275defineInjector:()=>_a,\u0275\u0275defineNgModule:()=>ld,\u0275\u0275definePipe:()=>iv,\u0275\u0275directiveInject:()=>_r,\u0275\u0275disableBindings:()=>xv,\u0275\u0275element:()=>Af,\u0275\u0275elementContainer:()=>Rf,\u0275\u0275elementContainerEnd:()=>pc,\u0275\u0275elementContainerStart:()=>fc,\u0275\u0275elementEnd:()=>dc,\u0275\u0275elementStart:()=>uc,\u0275\u0275enableBindings:()=>Tv,\u0275\u0275getComponentDepsFactory:()=>oC,\u0275\u0275getCurrentView:()=>Vw,\u0275\u0275getInheritedFactory:()=>ty,\u0275\u0275hostProperty:()=>Pf,\u0275\u0275i18n:()=>Xw,\u0275\u0275i18nApply:()=>tD,\u0275\u0275i18nAttributes:()=>eD,\u0275\u0275i18nEnd:()=>Vf,\u0275\u0275i18nExp:()=>Hf,\u0275\u0275i18nPostprocess:()=>nD,\u0275\u0275i18nStart:()=>jf,\u0275\u0275inject:()=>ge,\u0275\u0275injectAttribute:()=>Ua,\u0275\u0275invalidFactory:()=>dE,\u0275\u0275invalidFactoryDep:()=>id,\u0275\u0275listener:()=>Uf,\u0275\u0275loadQuery:()=>uD,\u0275\u0275namespaceHTML:()=>$v,\u0275\u0275namespaceMathML:()=>Uv,\u0275\u0275namespaceSVG:()=>Hv,\u0275\u0275nextContext:()=>oD,\u0275\u0275ngDeclareClassMetadata:()=>v0,\u0275\u0275ngDeclareClassMetadataAsync:()=>y0,\u0275\u0275ngDeclareComponent:()=>E0,\u0275\u0275ngDeclareDirective:()=>g0,\u0275\u0275ngDeclareFactory:()=>I0,\u0275\u0275ngDeclareInjectable:()=>D0,\u0275\u0275ngDeclareInjector:()=>C0,\u0275\u0275ngDeclareNgModule:()=>b0,\u0275\u0275ngDeclarePipe:()=>M0,\u0275\u0275pipe:()=>KD,\u0275\u0275pipeBind1:()=>JD,\u0275\u0275pipeBind2:()=>XD,\u0275\u0275pipeBind3:()=>eC,\u0275\u0275pipeBind4:()=>tC,\u0275\u0275pipeBindV:()=>nC,\u0275\u0275projection:()=>sD,\u0275\u0275projectionDef:()=>iD,\u0275\u0275property:()=>_f,\u0275\u0275propertyInterpolate:()=>qf,\u0275\u0275propertyInterpolate1:()=>hc,\u0275\u0275propertyInterpolate2:()=>Wf,\u0275\u0275propertyInterpolate3:()=>Gf,\u0275\u0275propertyInterpolate4:()=>zf,\u0275\u0275propertyInterpolate5:()=>Qf,\u0275\u0275propertyInterpolate6:()=>Zf,\u0275\u0275propertyInterpolate7:()=>Yf,\u0275\u0275propertyInterpolate8:()=>Kf,\u0275\u0275propertyInterpolateV:()=>Jf,\u0275\u0275pureFunction0:()=>LD,\u0275\u0275pureFunction1:()=>FD,\u0275\u0275pureFunction2:()=>jD,\u0275\u0275pureFunction3:()=>VD,\u0275\u0275pureFunction4:()=>HD,\u0275\u0275pureFunction5:()=>UD,\u0275\u0275pureFunction6:()=>$D,\u0275\u0275pureFunction7:()=>BD,\u0275\u0275pureFunction8:()=>qD,\u0275\u0275pureFunctionV:()=>WD,\u0275\u0275queryAdvance:()=>pD,\u0275\u0275queryRefresh:()=>lD,\u0275\u0275readContextLet:()=>_D,\u0275\u0275reference:()=>hD,\u0275\u0275registerNgModuleType:()=>ff,\u0275\u0275repeater:()=>Lw,\u0275\u0275repeaterCreate:()=>kw,\u0275\u0275repeaterTrackByIdentity:()=>Pw,\u0275\u0275repeaterTrackByIndex:()=>Rw,\u0275\u0275resetView:()=>_v,\u0275\u0275resolveBody:()=>Hd,\u0275\u0275resolveDocument:()=>Qy,\u0275\u0275resolveWindow:()=>zy,\u0275\u0275restoreView:()=>Nv,\u0275\u0275sanitizeHtml:()=>Vy,\u0275\u0275sanitizeResourceUrl:()=>Vd,\u0275\u0275sanitizeScript:()=>Uy,\u0275\u0275sanitizeStyle:()=>Hy,\u0275\u0275sanitizeUrl:()=>jd,\u0275\u0275sanitizeUrlOrResourceUrl:()=>qy,\u0275\u0275setComponentScope:()=>RD,\u0275\u0275setNgModuleScope:()=>PD,\u0275\u0275storeLet:()=>ND,\u0275\u0275styleMap:()=>Xe,\u0275\u0275styleMapInterpolate1:()=>mD,\u0275\u0275styleMapInterpolate2:()=>gD,\u0275\u0275styleMapInterpolate3:()=>vD,\u0275\u0275styleMapInterpolate4:()=>yD,\u0275\u0275styleMapInterpolate5:()=>ED,\u0275\u0275styleMapInterpolate6:()=>ID,\u0275\u0275styleMapInterpolate7:()=>wD,\u0275\u0275styleMapInterpolate8:()=>DD,\u0275\u0275styleMapInterpolateV:()=>CD,\u0275\u0275styleProp:()=>Sf,\u0275\u0275stylePropInterpolate1:()=>Xf,\u0275\u0275stylePropInterpolate2:()=>ep,\u0275\u0275stylePropInterpolate3:()=>tp,\u0275\u0275stylePropInterpolate4:()=>np,\u0275\u0275stylePropInterpolate5:()=>rp,\u0275\u0275stylePropInterpolate6:()=>op,\u0275\u0275stylePropInterpolate7:()=>ip,\u0275\u0275stylePropInterpolate8:()=>sp,\u0275\u0275stylePropInterpolateV:()=>ap,\u0275\u0275syntheticHostListener:()=>$f,\u0275\u0275syntheticHostProperty:()=>kf,\u0275\u0275template:()=>gf,\u0275\u0275templateRefExtractor:()=>rC,\u0275\u0275text:()=>bD,\u0275\u0275textInterpolate:()=>cp,\u0275\u0275textInterpolate1:()=>gc,\u0275\u0275textInterpolate2:()=>lp,\u0275\u0275textInterpolate3:()=>up,\u0275\u0275textInterpolate4:()=>dp,\u0275\u0275textInterpolate5:()=>fp,\u0275\u0275textInterpolate6:()=>pp,\u0275\u0275textInterpolate7:()=>hp,\u0275\u0275textInterpolate8:()=>mp,\u0275\u0275textInterpolateV:()=>gp,\u0275\u0275trustConstantHtml:()=>$y,\u0275\u0275trustConstantResourceUrl:()=>By,\u0275\u0275twoWayBindingSet:()=>TD,\u0275\u0275twoWayListener:()=>yp,\u0275\u0275twoWayProperty:()=>vp,\u0275\u0275validateIframeAttribute:()=>TI,\u0275\u0275viewQuery:()=>cD,\u0275\u0275viewQuerySignal:()=>fD});function _h(e,t){return Object.is(e,t)}var ae=null,Jr=!1,Zi=1,Te=Symbol("SIGNAL");function A(e){let t=ae;return ae=e,t}function qc(){return ae}function Bb(){return Jr}var Gn={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function eo(e){if(Jr)throw new Error("");if(ae===null)return;ae.consumerOnSignalRead(e);let t=ae.nextProducerIndex++;if(ts(ae),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Ji(e){ts(e);for(let t=0;t0}function ts(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function kh(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Lh(e){return e.producerNode!==void 0}function Wc(e){let t=Object.create(Wb);t.computation=e;let n=()=>{if(Sh(t),eo(t),t.value===Yi)throw t.error;return t.value};return n[Te]=t,n}var Uc=Symbol("UNSET"),$c=Symbol("COMPUTING"),Yi=Symbol("ERRORED"),Wb=nt(Z({},Gn),{value:Uc,dirty:!0,error:null,equal:_h,producerMustRecompute(e){return e.value===Uc||e.value===$c},producerRecomputeValue(e){if(e.value===$c)throw new Error("Detected cycle in computations.");let t=e.value;e.value=$c;let n=to(e),r;try{r=e.computation()}catch(o){r=Yi,e.error=o}finally{Ki(e,n)}if(t!==Uc&&t!==Yi&&r!==Yi&&e.equal(t,r)){e.value=t;return}e.value=r,e.version++}});function Gb(){throw new Error}var Fh=Gb;function jh(){Fh()}function Vh(e){Fh=e}var zb=null;function Hh(e){let t=Object.create(Gc);t.value=e;let n=()=>(eo(t),t.value);return n[Te]=t,n}function no(e,t){Ah()||jh(),e.equal(e.value,t)||(e.value=t,Qb(e))}function Uh(e,t){Ah()||jh(),no(e,t(e.value))}var Gc=nt(Z({},Gn),{equal:_h,value:void 0});function Qb(e){e.version++,qb(),Oh(e),zb?.()}function $h(e,t,n){let r=Object.create(Zb);n&&(r.consumerAllowSignalWrites=!0),r.fn=e,r.schedule=t;let o=c=>{r.cleanupFn=c};function i(c){return c.fn===null&&c.schedule===null}function s(c){i(c)||(Xi(c),c.cleanupFn(),c.fn=null,c.schedule=null,c.cleanupFn=Bc)}let a=()=>{if(r.fn===null)return;if(Bb())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(r.dirty=!1,r.hasRun&&!Ji(r))return;r.hasRun=!0;let c=to(r);try{r.cleanupFn(),r.cleanupFn=Bc,r.fn(o)}finally{Ki(r,c)}};return r.ref={notify:()=>Rh(r),run:a,cleanup:()=>r.cleanupFn(),destroy:()=>s(r),[Te]:r},r.ref}var Bc=()=>{},Zb=nt(Z({},Gn),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{e.schedule!==null&&e.schedule(e.ref)},hasRun:!1,cleanupFn:Bc});var zn={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=zn;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new Y(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=zn;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=zn;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Yb=1,zc,Qc={};function Bh(e){return e in Qc?(delete Qc[e],!0):!1}var qh={setImmediate(e){let t=Yb++;return Qc[t]=!0,zc||(zc=Promise.resolve()),zc.then(()=>Bh(t)&&e()),t},clearImmediate(e){Bh(e)}};var{setImmediate:Kb,clearImmediate:Jb}=qh,ro={setImmediate(...e){let{delegate:t}=ro;return(t?.setImmediate||Kb)(...e)},clearImmediate(e){let{delegate:t}=ro;return(t?.clearImmediate||Jb)(e)},delegate:void 0};var ns=class extends Ft{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=ro.setImmediate(t.flush.bind(t,void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(ro.clearImmediate(n),t._scheduled===n&&(t._scheduled=void 0))}};var rs=class extends jt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var Xb=new rs(ns);var os=class extends Ft{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=zn.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(zn.cancelAnimationFrame(n),t._scheduled=void 0)}};var is=class extends jt{flush(t){this._active=!0;let n=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var eM=new is(os);function tM(e){return!!e&&(e instanceof j||T(e.lift)&&T(e.subscribe))}function nM(e,t){let n=typeof t=="object";return new Promise((r,o)=>{let i=new Lt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{n?r(t.defaultValue):o(new It)}});e.subscribe(i)})}function rM(e){return new j(t=>{W(e()).subscribe(t)})}function oM(...e){let t=Ui(e),{args:n,keys:r}=$i(e),o=new j(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?Gi(r,a):a),i.complete())}))}});return t?o.pipe(Bn(t)):o}var iM=["addListener","removeListener"],sM=["addEventListener","removeEventListener"],aM=["on","off"];function Zc(e,t,n,r){if(T(n)&&(r=n,n=void 0),r)return Zc(e,t,n).pipe(Bn(r));let[o,i]=uM(e)?sM.map(s=>a=>e[s](t,a,n)):cM(e)?iM.map(Wh(e,t)):lM(e)?aM.map(Wh(e,t)):[];if(!o&&Hn(e))return qe(s=>Zc(s,t,n))(W(e));if(!o)throw new TypeError("Invalid event target");return new j(s=>{let a=(...c)=>s.next(1i(a)})}function Wh(e,t){return n=>r=>e[n](t,r)}function cM(e){return T(e.addListener)&&T(e.removeListener)}function lM(e){return T(e.on)&&T(e.off)}function uM(e){return T(e.addEventListener)&&T(e.removeEventListener)}function dM(...e){let t=ot(e),n=fh(e,1/0),r=e;return r.length?r.length===1?W(r[0]):Zr(n)(it(r,t)):an}var io="jsaction",fM="oi",pM="ved",hM="vet",mM="jsinstance",gM="jstrack",vM={JSACTION:io,OI:fM,VED:pM,VET:hM,JSINSTANCE:mM,JSTRACK:gM},yM={NAMESPACE_ACTION_SEPARATOR:".",EVENT_ACTION_SEPARATOR:":",OI_SEPARATOR:".",CAD_KEY_VALUE_SEPARATOR:":",CAD_SEPARATOR:","},I={AUXCLICK:"auxclick",CHANGE:"change",CLICK:"click",CLICKMOD:"clickmod",CLICKONLY:"clickonly",DBLCLICK:"dblclick",FOCUS:"focus",FOCUSIN:"focusin",BLUR:"blur",FOCUSOUT:"focusout",SUBMIT:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEUP:"mouseup",MOUSEDOWN:"mousedown",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",MOUSEMOVE:"mousemove",POINTERUP:"pointerup",POINTERDOWN:"pointerdown",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERMOVE:"pointermove",POINTERCANCEL:"pointercancel",GOTPOINTERCAPTURE:"gotpointercapture",LOSTPOINTERCAPTURE:"lostpointercapture",ERROR:"error",LOAD:"load",UNLOAD:"unload",TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",INPUT:"input",SCROLL:"scroll",TOGGLE:"toggle",CUSTOM:"_custom"},EM=[I.MOUSEENTER,I.MOUSELEAVE,"pointerenter","pointerleave"],Yh=e=>IM.indexOf(e)>=0,IM=[I.CLICK,I.DBLCLICK,I.FOCUS,I.FOCUSIN,I.BLUR,I.ERROR,I.FOCUSOUT,I.KEYDOWN,I.KEYUP,I.KEYPRESS,I.LOAD,I.MOUSEOVER,I.MOUSEOUT,I.SUBMIT,I.TOGGLE,I.TOUCHSTART,I.TOUCHEND,I.TOUCHMOVE,"touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"],Xc=e=>wM.indexOf(e)>=0,wM=[I.FOCUS,I.BLUR,I.ERROR,I.LOAD,I.TOGGLE],Kh="__jsaction";var DM="__owner";var Jh={};function CM(e){return e[Kh]}function Gh(e,t){e[Kh]=t}function bM(e){return Jh[e]}function MM(e,t){Jh[e]=t}function wt(e){return e.eventType}function so(e,t){e.eventType=t}function Ht(e){return e.event}function Xh(e,t){e.event=t}function em(e){return e.targetElement}function tm(e,t){e.targetElement=t}function nm(e){return e.eic}function TM(e,t){e.eic=t}function xM(e){return e.timeStamp}function NM(e,t){e.timeStamp=t}function oo(e){return e.eia}function el(e,t,n){e.eia=[t,n]}function Yc(e){e.eia=void 0}function ss(e){return e[1]}function _M(e){return e.eirp}function rm(e,t){e.eirp=t}function om(e){return e.eiack}function SM(e,t){e.eiack=t}function im(e){return e.eir}function sm(e,t){e.eir=t}function am(e){return{eventType:e.eventType,event:e.event,targetElement:e.targetElement,eic:e.eic,eia:e.eia,timeStamp:e.timeStamp,eirp:e.eirp,eiack:e.eiack,eir:e.eir}}function OM(e,t,n,r,o,i,s,a){return{eventType:e,event:t,targetElement:n,eic:r,timeStamp:o,eia:i,eirp:s,eiack:a}}var Kc=class e{constructor(t){this.eventInfo=t}getEventType(){return wt(this.eventInfo)}setEventType(t){so(this.eventInfo,t)}getEvent(){return Ht(this.eventInfo)}setEvent(t){Xh(this.eventInfo,t)}getTargetElement(){return em(this.eventInfo)}setTargetElement(t){tm(this.eventInfo,t)}getContainer(){return nm(this.eventInfo)}setContainer(t){TM(this.eventInfo,t)}getTimestamp(){return xM(this.eventInfo)}setTimestamp(t){NM(this.eventInfo,t)}getAction(){let t=oo(this.eventInfo);if(t)return{name:t[0],element:t[1]}}setAction(t){if(!t){Yc(this.eventInfo);return}el(this.eventInfo,t.name,t.element)}getIsReplay(){return _M(this.eventInfo)}setIsReplay(t){rm(this.eventInfo,t)}getResolved(){return im(this.eventInfo)}setResolved(t){sm(this.eventInfo,t)}clone(){return new e(am(this.eventInfo))}};function AM(e,t){if(t===null)return!1;if("contains"in e&&t.nodeType===1)return e.contains(t);if("compareDocumentPosition"in e)return e===t||!!(e.compareDocumentPosition(t)&16);for(;t&&e!==t;)t=t.parentNode;return t===e}var RM=3,PM=13,kM=32,re={MAC_ENTER:RM,ENTER:PM,SPACE:kM};function LM(e){return e===I.MOUSEENTER?I.MOUSEOVER:e===I.MOUSELEAVE?I.MOUSEOUT:e===I.POINTERENTER?I.POINTEROVER:e===I.POINTERLEAVE?I.POINTEROUT:e}function FM(e,t,n){let r=!1;return Xc(t)&&(r=!0),e.addEventListener(t,n,r),{eventType:t,handler:n,capture:r}}function jM(e,t){e.removeEventListener?e.removeEventListener(t.eventType,t.handler,t.capture):e.detachEvent&&e.detachEvent(`on${t.eventType}`,t.handler)}function cm(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function tl(e){let t=e.target;return!t.getAttribute&&t.parentNode&&(t=t.parentNode),t}var zh=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function VM(e){return e.which===2||e.which==null&&e.button===4}function HM(e){return zh&&e.metaKey||!zh&&e.ctrlKey||VM(e)||e.shiftKey}var UM=typeof navigator<"u"&&!/Opera/.test(navigator.userAgent)&&/WebKit/.test(navigator.userAgent),f$=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident/.test(navigator.userAgent)),p$=typeof navigator<"u"&&!/Opera|WebKit/.test(navigator.userAgent)&&/Gecko/.test(navigator.product);function $M(e){return!(!("getAttribute"in e)||um(e)||eT(e)||e.isContentEditable)}function BM(e){return e.ctrlKey||e.shiftKey||e.altKey||e.metaKey}function qM(e){let t=tl(e),n=t.tagName.toUpperCase(),r=(t.getAttribute("role")||"").toUpperCase();return n==="BUTTON"||r==="BUTTON"?!0:!(!XM(t)||n==="A"||n==="SELECT"||lm(t)||um(t))}function WM(e){let t=e.which||e.keyCode;if(!t&&e.key&&(t=JM[e.key]),UM&&t===re.MAC_ENTER&&(t=re.ENTER),t!==re.ENTER&&t!==re.SPACE)return!1;let n=tl(e);if(e.type!==I.KEYDOWN||!$M(n)||BM(e)||lm(n)&&t===re.SPACE||!GM(n))return!1;let r=(n.getAttribute("role")||n.type||n.tagName).toUpperCase(),o=Qh[r]%t===0,i=!(r in Qh)&&t===re.ENTER,s=n.tagName.toUpperCase()!=="INPUT"||!!n.type;return(o||i)&&s}function GM(e){return(e.tagName in QM||zM(e))&&!e.disabled}function zM(e){let t=e.getAttributeNode("tabindex");return t!=null&&t.specified}var QM={A:1,INPUT:1,TEXTAREA:1,SELECT:1,BUTTON:1};function ZM(e){let t=e.which||e.keyCode,n=tl(e),r=(n.type||n.tagName).toUpperCase();return t===re.SPACE&&r!=="CHECKBOX"}function YM(e,t,n){let r=e.relatedTarget;return(e.type===I.MOUSEOVER&&t===I.MOUSEENTER||e.type===I.MOUSEOUT&&t===I.MOUSELEAVE||e.type===I.POINTEROVER&&t===I.POINTERENTER||e.type===I.POINTEROUT&&t===I.POINTERLEAVE)&&(!r||r!==n&&!AM(n,r))}function KM(e,t){let n={};for(let r in e){if(r==="srcElement"||r==="target")continue;let o=r,i=e[o];typeof i!="function"&&(n[o]=i)}return e.type===I.MOUSEOVER?n.type=I.MOUSEENTER:e.type===I.MOUSEOUT?n.type=I.MOUSELEAVE:e.type===I.POINTEROVER?n.type=I.POINTERENTER:n.type=I.POINTERLEAVE,n.target=n.srcElement=t,n.bubbles=!1,n}var JM={Enter:re.ENTER," ":re.SPACE},Qh={A:re.ENTER,BUTTON:0,CHECKBOX:re.SPACE,COMBOBOX:re.ENTER,FILE:0,GRIDCELL:re.ENTER,LINK:re.ENTER,LISTBOX:re.ENTER,MENU:0,MENUBAR:0,MENUITEM:0,MENUITEMCHECKBOX:0,MENUITEMRADIO:0,OPTION:0,RADIO:re.SPACE,RADIOGROUP:re.SPACE,RESET:0,SUBMIT:0,SWITCH:re.SPACE,TAB:0,TREE:re.ENTER,TREEITEM:re.ENTER};function lm(e){return(e.getAttribute("type")||e.tagName).toUpperCase()in tT}function um(e){return(e.getAttribute("type")||e.tagName).toUpperCase()in nT}function XM(e){return e.tagName.toUpperCase()in rT}function eT(e){return e.tagName.toUpperCase()==="BUTTON"||!!e.type&&e.type.toUpperCase()==="FILE"}var tT={CHECKBOX:!0,FILE:!0,OPTION:!0,RADIO:!0},nT={COLOR:!0,DATE:!0,DATETIME:!0,"DATETIME-LOCAL":!0,EMAIL:!0,MONTH:!0,NUMBER:!0,PASSWORD:!0,RANGE:!0,SEARCH:!0,TEL:!0,TEXT:!0,TEXTAREA:!0,TIME:!0,URL:!0,WEEK:!0},rT={A:!0,AREA:!0,BUTTON:!0,DIALOG:!0,IMG:!0,INPUT:!0,LINK:!0,MENU:!0,OPTGROUP:!0,OPTION:!0,PROGRESS:!0,SELECT:!0,TEXTAREA:!0};var oT={},iT=/\s*;\s*/,sT=I.CLICK,as=class{constructor({syntheticMouseEventSupport:t=!1}={}){this.a11yClickSupport=!1,this.updateEventInfoForA11yClick=void 0,this.preventDefaultForA11yClick=void 0,this.populateClickOnlyAction=void 0,this.syntheticMouseEventSupport=t}resolveEventType(t){wt(t)===I.CLICK&&HM(Ht(t))?so(t,I.CLICKMOD):this.a11yClickSupport&&this.updateEventInfoForA11yClick(t)}resolveAction(t){im(t)||(this.populateAction(t,em(t)),sm(t,!0))}resolveParentAction(t){let n=oo(t),r=n&&ss(n);Yc(t);let o=r&&this.getParentNode(r);o&&this.populateAction(t,o)}populateAction(t,n){let r=n;for(;r&&r!==nm(t)&&(r.nodeType===Node.ELEMENT_NODE&&this.populateActionOnElement(r,t),!oo(t));)r=this.getParentNode(r);let o=oo(t);if(o&&(this.a11yClickSupport&&this.preventDefaultForA11yClick(t),this.syntheticMouseEventSupport&&(wt(t)===I.MOUSEENTER||wt(t)===I.MOUSELEAVE||wt(t)===I.POINTERENTER||wt(t)===I.POINTERLEAVE)))if(YM(Ht(t),wt(t),ss(o))){let i=KM(Ht(t),ss(o));Xh(t,i),tm(t,ss(o))}else Yc(t)}getParentNode(t){let n=t[DM];if(n)return n;let r=t.parentNode;return r?.nodeName==="#document-fragment"?r?.host??null:r}populateActionOnElement(t,n){let r=this.parseActions(t),o=r[wt(n)];o!==void 0&&el(n,o,t),this.a11yClickSupport&&this.populateClickOnlyAction(t,n,r)}parseActions(t){let n=CM(t);if(!n){let r=t.getAttribute(vM.JSACTION);if(!r)n=oT,Gh(t,n);else{if(n=bM(r),!n){n={};let o=r.split(iT);for(let i=0;i{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}};function aT(e,t){return e.tagName==="A"&&(t.getEventType()===I.CLICK||t.getEventType()===I.CLICKMOD)}var fm=Symbol.for("propagationStopped"),cT={REPLAY:101};var lT="`preventDefault` called during event replay.";var uT="`composedPath` called during event replay.",cs=class{constructor(t){this.dispatchDelegate=t,this.actionResolver=new as,this.dispatcher=new Jc(n=>{this.dispatchToDelegate(n)},{actionResolver:this.actionResolver})}dispatch(t){this.dispatcher.dispatch(t)}dispatchToDelegate(t){for(t.getIsReplay()&&pT(t),dT(t);t.getAction();){if(hT(t),this.dispatchDelegate(t.getEvent(),t.getAction().name),fT(t))return;this.actionResolver.resolveParentAction(t.eventInfo)}}};function dT(e){let t=e.getEvent(),n=()=>{t[fm]=!0};cn(t,"stopPropagation",n),cn(t,"stopImmediatePropagation",n)}function fT(e){return!!e.getEvent()[fm]}function pT(e){let t=e.getEvent(),n=e.getTargetElement();cn(t,"target",n),cn(t,"eventPhase",cT.REPLAY),cn(t,"preventDefault",()=>{throw new Error(lT+"")}),cn(t,"composedPath",()=>{throw new Error(uT+"")})}function hT(e){let t=e.getEvent(),n=e.getAction()?.element;n&&cn(t,"currentTarget",n,{configurable:!0})}function cn(e,t,n,{configurable:r=!1}={}){Object.defineProperty(e,t,{value:n,configurable:r})}function pm(e,t){e.ecrd(n=>{t.dispatch(n)},dm.I_AM_THE_JSACTION_FRAMEWORK)}var mT=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent),ls=class{constructor(t){this.element=t,this.handlerInfos=[]}addEventListener(t,n){mT&&(this.element.style.cursor="pointer"),this.handlerInfos.push(FM(this.element,t,n(this.element)))}cleanUp(){for(let t=0;t{let t=class t{constructor(r,o){this.useActionResolver=o,this.eventHandlers={},this.browserEventTypeToExtraEventTypes={},this.dispatcher=null,this.queuedEventInfos=[],this.addA11yClickListener=!1,this.containerManager=r,this.useActionResolver&&(this.actionResolver=new as({syntheticMouseEventSupport:t.MOUSE_SPECIAL_SUPPORT})),t.A11Y_CLICK_SUPPORT&&this.addA11yClickSupport()}handleEvent(r,o,i){let s=OM(r,o,o.target,i,Date.now());this.handleEventInfo(s)}handleEventInfo(r){if(!this.dispatcher){rm(r,!0),this.queuedEventInfos?.push(r);return}this.useActionResolver&&(this.actionResolver.resolveEventType(r),this.actionResolver.resolveAction(r)),this.dispatcher(r)}addEvent(r,o){if(r in this.eventHandlers||!this.containerManager||!t.MOUSE_SPECIAL_SUPPORT&&EM.indexOf(r)>=0)return;let i=(a,c,l)=>{this.handleEvent(a,c,l)};this.eventHandlers[r]=i;let s=LM(o||r);if(s!==r){let a=this.browserEventTypeToExtraEventTypes[s]||[];a.push(r),this.browserEventTypeToExtraEventTypes[s]=a}this.containerManager.addEventListener(s,a=>c=>{i(r,c,a)}),this.addA11yClickListener&&r===I.CLICK&&this.addEvent(I.KEYDOWN)}replayEarlyEvents(r=window){let o=r._ejsa;if(!o)return;let i=o.q;for(let a=0;a{let i=td(t);function s(...a){if(this instanceof s)return i.call(this,...a),this;let c=new s(...a);return function(u){return o&&o(u,...a),(u.hasOwnProperty(Kn)?u[Kn]:Object.defineProperty(u,Kn,{value:[]})[Kn]).push(c),r&&r(u),u}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function td(e){return function(...n){if(e){let r=e(...n);for(let o in r)this[o]=r[o]}}}function Cr(e,t,n){return ht(()=>{let r=td(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Jn)?c[Jn]:Object.defineProperty(c,Jn,{value:[]})[Jn];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Xt(e,t,n,r){return ht(()=>{let o=td(t);function i(...s){if(this instanceof i)return o.apply(this,s),this;let a=new i(...s);function c(l,u){if(l===void 0)throw new Error("Standard Angular field decorators are not supported in JIT mode.");let d=l.constructor,p=d.hasOwnProperty(Xn)?d[Xn]:Object.defineProperty(d,Xn,{value:{}})[Xn];p[u]=p.hasOwnProperty(u)&&p[u]||[],p[u].unshift(a),r&&r(l,u,...s)}return c}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}var Re=globalThis;function $(e){for(let t in e)if(e[t]===$)return t;throw Error("Could not find renamed property on target object.")}function CT(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function me(e){if(typeof e=="string")return e;if(Array.isArray(e))return"["+e.map(me).join(", ")+"]";if(e==null)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;let t=e.toString();if(t==null)return""+t;let n=t.indexOf(` -`);return n===-1?t:t.substring(0,n)}function _l(e,t){return e==null||e===""?t===null?"":t:t==null||t===""?e:e+" "+t}function bT(e,t=100){if(!e||t<1||e.length<=t)return e;if(t==1)return e.substring(0,1)+"...";let n=Math.round(t/2);return e.substring(0,n)+"..."+e.substring(e.length-n)}var MT=$({__forward_ref__:$});function xa(e){return e.__forward_ref__=xa,e.toString=function(){return me(this())},e}function V(e){return Na(e)?e():e}function Na(e){return typeof e=="function"&&e.hasOwnProperty(MT)&&e.__forward_ref__===xa}function TT(e,t,n){e!=t&&qg(n,e,t,"==")}function qg(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(r==null?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function B(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}var xT=B;function _a(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ko(e){return mm(e,Do)||mm(e,Wg)}function NT(e){return Ko(e)!==null}function mm(e,t){return e.hasOwnProperty(t)?e[t]:null}function _T(e){let t=e&&(e[Do]||e[Wg]);return t||null}function gm(e){return e&&(e.hasOwnProperty(Ss)||e.hasOwnProperty(ST))?e[Ss]:null}var Do=$({\u0275prov:$}),Ss=$({\u0275inj:$}),Wg=$({ngInjectableDef:$}),ST=$({ngInjectorDef:$}),P=class{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=B({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}},vm;function OT(e){qg("setInjectorProfilerContext should never be called in production mode");let t=vm;return vm=e,t}function nd(e){return e&&!!e.\u0275providers}var Jo=$({\u0275cmp:$}),Sa=$({\u0275dir:$}),Oa=$({\u0275pipe:$}),rd=$({\u0275mod:$}),Tt=$({\u0275fac:$}),or=$({__NG_ELEMENT_ID__:$}),ym=$({__NG_ENV_ID__:$});function O(e){return typeof e=="string"?e:e==null?"":String(e)}function je(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():O(e)}function AT(e,t){let n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new D(-200,e)}function od(e,t){throw new D(-201,!1)}var L=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(L||{}),Sl;function Gg(){return Sl}function xe(e){let t=Sl;return Sl=e,t}function zg(e,t,n){let r=Ko(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&L.Optional)return null;if(t!==void 0)return t;od(e,"Injector")}var RT={},Co=RT,Ol="__NG_DI_FLAG__",Os="ngTempTokenPath",PT="ngTokenPath",kT=/\n/gm,LT="\u0275",Em="__source",ir;function FT(){return ir}function Dt(e){let t=ir;return ir=e,t}function jT(e,t=L.Default){if(ir===void 0)throw new D(-203,!1);return ir===null?zg(e,void 0,t):ir.get(e,t&L.Optional?null:void 0,t)}function ge(e,t=L.Default){return(Gg()||jT)(V(e),t)}function id(e){throw new D(202,!1)}function b(e,t=L.Default){return ge(e,Xo(t))}function Xo(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Al(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):me(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(kT,` - `)}`}var Qg=ei(Cr("Inject",e=>({token:e})),-1),Aa=ei(Cr("Optional"),8),Zg=ei(Cr("Self"),2),Ra=ei(Cr("SkipSelf"),4),Yg=ei(Cr("Host"),1);function hn(e,t){let n=e.hasOwnProperty(Tt);return n?e[Tt]:null}function $T(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?sd(n,t):t(n))}function Kg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function As(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Is(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function Le(e,t,n){let r=ti(e,t);return r>=0?e[r|1]=n:(r=~r,Jg(e,r,t,n)),r}function nl(e,t){let n=ti(e,t);if(n>=0)return e[n|1]}function ti(e,t){return BT(e,t,1)}function BT(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<t){s=i-1;break}}}for(;i-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(We(r))return!1;s=!0}}}}return We(r)||s}function We(e){return(e&1)===0}function ZT(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!We(s)&&(t+=Dm(i,o),o=""),r=s,i=i||!We(r);n++}return o!==""&&(t+=Dm(i,o)),t}function tx(e){return e.map(ex).join(",")}function nx(e){let t=[],n=[],r=1,o=2;for(;r{let t=sv(e),n=nt(Z({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Pa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Qt.Emulated,styles:e.styles||H,_:null,schemas:e.schemas||null,tView:null,id:""});av(n);let r=e.dependencies;return n.directiveDefs=Ps(r,!1),n.pipeDefs=Ps(r,!0),n.id=sx(n),n})}function rx(e){return Q(e)||Pe(e)}function ox(e){return e!==null}function ld(e){return ht(()=>({type:e.type,bootstrap:e.bootstrap||H,declarations:e.declarations||H,imports:e.imports||H,exports:e.exports||H,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Cm(e,t){if(e==null)return ut;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a=ur.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),t?(n[i]=a!==ur.None?[r,a]:r,t[i]=s):n[i]=r}return n}function ov(e){return ht(()=>{let t=sv(e);return av(t),t})}function iv(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone===!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function Q(e){return e[Jo]||null}function Pe(e){return e[Sa]||null}function ke(e){return e[Oa]||null}function Mo(e){let t=Q(e)||Pe(e)||ke(e);return t!==null?t.standalone:!1}function ze(e,t){let n=e[rd]||null;if(!n&&t===!0)throw new Error(`Type ${me(e)} does not have '\u0275mod' property.`);return n}function sv(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||ut,exportAs:e.exportAs||null,standalone:e.standalone===!0,signals:e.signals===!0,selectors:e.selectors||H,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Cm(e.inputs,t),outputs:Cm(e.outputs),debugInfo:null}}function av(e){e.features?.forEach(t=>t(e))}function Ps(e,t){if(!e)return null;let n=t?ke:rx;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(ox)}var ix=new Map;function sx(e){let t=0,n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(let o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ni(e){return{\u0275providers:e}}function cv(...e){return{\u0275providers:ud(!0,e),\u0275fromNgModule:!0}}function ud(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return sd(t,s=>{let a=s;Pl(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&lv(o,i),n}function lv(e,t){for(let n=0;n{t(i,r)})}}function Pl(e,t,n,r){if(e=V(e),!e)return!1;let o=null,i=gm(e),s=!i&&Q(e);if(!i&&!s){let c=e.ngModule;if(i=gm(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Pl(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{sd(i.imports,u=>{Pl(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&lv(l,t)}if(!a){let l=hn(o)||(()=>new o);t({provide:o,useFactory:l,deps:H},o),t({provide:Xg,useValue:o,multi:!0},o),t({provide:zt,useValue:()=>ge(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;dd(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function dd(e,t){for(let n of e)nd(n)&&(n=n.\u0275providers),Array.isArray(n)?dd(n,t):t(n)}var ax=$({provide:String,useValue:$});function uv(e){return e!==null&&typeof e=="object"&&ax in e}function cx(e){return!!(e&&e.useExisting)}function lx(e){return!!(e&&e.useFactory)}function dr(e){return typeof e=="function"}function ux(e){return!!e.useClass}var fd=new P(""),ws={},dx={},rl;function ka(){return rl===void 0&&(rl=new Rs),rl}var dt=class{},To=class extends dt{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Ll(t,s=>this.processProvider(s)),this.records.set(ad,er(void 0,this)),o.has("environment")&&this.records.set(dt,er(void 0,this));let i=this.records.get(fd);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Xg,H,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;let t=A(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),A(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();let n=Dt(this),r=xe(void 0),o;try{return t()}finally{Dt(n),xe(r)}}get(t,n=Co,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(ym))return t[ym](this);r=Xo(r);let o,i=Dt(this),s=xe(void 0);try{if(!(r&L.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=gx(t)&&Ko(t);l&&this.injectableDefInScope(l)?c=er(kl(t),ws):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c)}let a=r&L.Self?ka():this.parent;return n=r&L.Optional&&n===Co?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Os]=a[Os]||[]).unshift(me(t)),i)throw a;return HT(a,t,"R3InjectorError",this.source)}else throw a}finally{xe(s),Dt(i)}}resolveInjectorInitializers(){let t=A(null),n=Dt(this),r=xe(void 0),o;try{let i=this.get(zt,H,L.Self);for(let s of i)s()}finally{Dt(n),xe(r),A(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(me(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new D(205,!1)}processProvider(t){t=V(t);let n=dr(t)?t:V(t&&t.provide),r=px(t);if(!dr(t)&&t.multi===!0){let o=this.records.get(n);o||(o=er(void 0,ws,!0),o.factory=()=>Al(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){let r=A(null);try{return n.value===ws&&(n.value=dx,n.value=n.factory()),typeof n.value=="object"&&n.value&&mx(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{A(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=V(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function kl(e){let t=Ko(e),n=t!==null?t.factory:hn(e);if(n!==null)return n;if(e instanceof P)throw new D(204,!1);if(e instanceof Function)return fx(e);throw new D(204,!1)}function fx(e){if(e.length>0)throw new D(204,!1);let n=_T(e);return n!==null?()=>n.factory(e):()=>new e}function px(e){if(uv(e))return er(void 0,e.useValue);{let t=dv(e);return er(t,ws)}}function dv(e,t,n){let r;if(dr(e)){let o=V(e);return hn(o)||kl(o)}else if(uv(e))r=()=>V(e.useValue);else if(lx(e))r=()=>e.useFactory(...Al(e.deps||[]));else if(cx(e))r=()=>ge(V(e.useExisting));else{let o=V(e&&(e.useClass||e.provide));if(hx(e))r=()=>new o(...Al(e.deps));else return hn(o)||kl(o)}return r}function er(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function hx(e){return!!e.deps}function mx(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function gx(e){return typeof e=="function"||typeof e=="object"&&e instanceof P}function Ll(e,t){for(let n of e)Array.isArray(n)?Ll(n,t):n&&nd(n)?Ll(n.\u0275providers,t):t(n)}function pd(e,t){e instanceof To&&e.assertNotDestroyed();let n,r=Dt(e),o=xe(void 0);try{return t()}finally{Dt(r),xe(o)}}function fv(){return Gg()!==void 0||FT()!=null}function ri(e){if(!fv())throw new D(-203,!1)}var dn=function(e){return e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule",e}(dn||{});function le(e){let t=Re.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}var bm={\u0275\u0275defineInjectable:B,\u0275\u0275defineInjector:_a,\u0275\u0275inject:ge,\u0275\u0275invalidFactoryDep:id,resolveForwardRef:V},pv=Function;function co(e){return typeof e=="function"}var vx=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,yx=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ex=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Ix=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;function wx(e){return vx.test(e)||Ix.test(e)||yx.test(e)&&!Ex.test(e)}var ks=class{constructor(t){this._reflect=t||Re.Reflect}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;typeof t>"u"?r=Is(n.length):r=Is(t.length);for(let o=0;o"u"?r[o]=[]:t[o]&&t[o]!=Object?r[o]=[t[o]]:r[o]=[],n&&n[o]!=null&&(r[o]=r[o].concat(n[o]));return r}_ownParameters(t,n){let r=t.toString();if(wx(r))return null;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;let o=t.ctorParameters;if(o&&o!==n.ctorParameters){let a=typeof o=="function"?o():o,c=a.map(u=>u&&u.type),l=a.map(u=>u&&ol(u.decorators));return this._zipTypesAndAnnotations(c,l)}let i=t.hasOwnProperty(Jn)&&t[Jn],s=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return s||i?this._zipTypesAndAnnotations(s,i):Is(t.length)}parameters(t){if(!co(t))return[];let n=us(t),r=this._ownParameters(t,n);return!r&&n!==Object&&(r=this.parameters(n)),r||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let r=t.annotations;return typeof r=="function"&&r.annotations&&(r=r.annotations),r}return t.decorators&&t.decorators!==n.decorators?ol(t.decorators):t.hasOwnProperty(Kn)?t[Kn]:null}annotations(t){if(!co(t))return[];let n=us(t),r=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(r)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let r=t.propMetadata;return typeof r=="function"&&r.propMetadata&&(r=r.propMetadata),r}if(t.propDecorators&&t.propDecorators!==n.propDecorators){let r=t.propDecorators,o={};return Object.keys(r).forEach(i=>{o[i]=ol(r[i])}),o}return t.hasOwnProperty(Xn)?t[Xn]:null}propMetadata(t){if(!co(t))return{};let n=us(t),r={};if(n!==Object){let i=this.propMetadata(n);Object.keys(i).forEach(s=>{r[s]=i[s]})}let o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(i=>{let s=[];r.hasOwnProperty(i)&&s.push(...r[i]),s.push(...o[i]),r[i]=s}),r}ownPropMetadata(t){return co(t)?this._ownPropMetadata(t,us(t))||{}:{}}hasLifecycleHook(t,n){return t instanceof pv&&n in t.prototype}};function ol(e){return e?e.map(t=>{let r=t.type.annotationCls,o=t.args?t.args:[];return new r(...o)}):[]}function us(e){let t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var te=0,E=1,M=2,ie=3,Ge=4,ve=5,we=6,fr=7,J=8,de=9,ft=10,x=11,xo=12,Mm=13,br=14,ue=15,mn=16,tr=17,xt=18,oi=19,hv=20,qt=21,Ds=22,Ve=23,w=25,hd=1,No=6,pt=7,Ls=8,pr=9,X=10,Fs=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Fs||{});function He(e){return Array.isArray(e)&&typeof e[hd]=="object"}function De(e){return Array.isArray(e)&&e[hd]===!0}function md(e){return(e.flags&4)!==0}function _n(e){return e.componentOffset>-1}function La(e){return(e.flags&1)===1}function Qe(e){return!!e.template}function _o(e){return(e[M]&512)!==0}function Dx(e){return(e.type&16)===16}function Cx(e){return(e[M]&32)===32}function Fl(e){return(e[M]&256)===256}var js=class{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function mv(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function gd(){return gv}function gv(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mx),bx}gd.ngInherit=!0;function bx(){let e=yv(this),t=e?.current;if(t){let n=e.previous;if(n===ut)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mx(e,t,n,r,o){let i=this.declaredInputs[r],s=yv(e)||Tx(e,{previous:ut,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new js(l&&l.currentValue,n,c===ut),mv(e,t,o,n)}var vv="__ngSimpleChanges__";function yv(e){return e[vv]||null}function Tx(e,t){return e[vv]=t}var Tm=null;var at=function(e,t,n){Tm?.(e,t,n)},Ev="svg",Iv="math";function U(e){for(;Array.isArray(e);)e=e[te];return e}function vd(e){for(;Array.isArray(e);){if(typeof e[hd]=="object")return e;e=e[te]}return null}function ii(e,t){return U(t[e])}function Oe(e,t){return U(t[e.index])}function xx(e,t){let n=e===null?-1:e.index;return n!==-1?U(t[n]):null}function si(e,t){return e.data[t]}function Sn(e,t){return e[t]}function Ze(e,t){let n=t[e];return He(n)?n:n[te]}function Nx(e){return(e[M]&4)===4}function yd(e){return(e[M]&128)===128}function _x(e){return De(e[ie])}function Ue(e,t){return t==null?null:e[t]}function wv(e){e[tr]=0}function Dv(e){e[M]&1024||(e[M]|=1024,yd(e)&&Fa(e))}function Cv(e,t){for(;e>0;)t=t[br],e--;return t}function So(e){return!!(e[M]&9216||e[Ve]?.dirty)}function jl(e){e[ft].changeDetectionScheduler?.notify(7),e[M]&64&&(e[M]|=1024),So(e)&&Fa(e)}function Fa(e){e[ft].changeDetectionScheduler?.notify(0);let t=Zt(e);for(;t!==null&&!(t[M]&8192||(t[M]|=8192,!yd(t)));)t=Zt(t)}function ja(e,t){if((e[M]&256)===256)throw new D(911,!1);e[qt]===null&&(e[qt]=[]),e[qt].push(t)}function Ed(e,t){if(e[qt]===null)return;let n=e[qt].indexOf(t);n!==-1&&e[qt].splice(n,1)}function Zt(e){let t=e[ie];return De(t)?t[ie]:t}var N={lFrame:Fv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var bv=!1;function Sx(){return N.lFrame.elementDepthCount}function Ox(){N.lFrame.elementDepthCount++}function Ax(){N.lFrame.elementDepthCount--}function Mv(){return N.bindingsEnabled}function On(){return N.skipHydrationRootTNode!==null}function Rx(e){return N.skipHydrationRootTNode===e}function Tv(){N.bindingsEnabled=!0}function Px(e){N.skipHydrationRootTNode=e}function xv(){N.bindingsEnabled=!1}function kx(){N.skipHydrationRootTNode=null}function g(){return N.lFrame.lView}function k(){return N.lFrame.tView}function Nv(e){return N.lFrame.contextLView=e,e[J]}function _v(e){return N.lFrame.contextLView=null,e}function q(){let e=Sv();for(;e!==null&&e.type===64;)e=e.parent;return e}function Sv(){return N.lFrame.currentTNode}function Oo(){let e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ye(e,t){let n=N.lFrame;n.currentTNode=e,n.isParent=t}function Id(){return N.lFrame.isParent}function wd(){N.lFrame.isParent=!1}function Ov(){return N.lFrame.contextLView}function Av(){return bv}function xm(e){bv=e}function Ce(){let e=N.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function St(){return N.lFrame.bindingIndex}function Rv(e){return N.lFrame.bindingIndex=e}function Je(){return N.lFrame.bindingIndex++}function Ot(e){let t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Lx(){return N.lFrame.inI18n}function Pv(e){N.lFrame.inI18n=e}function Fx(e,t){let n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Vl(t)}function jx(){return N.lFrame.currentDirectiveIndex}function Vl(e){N.lFrame.currentDirectiveIndex=e}function Dd(e){let t=N.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Cd(){return N.lFrame.currentQueryIndex}function Va(e){N.lFrame.currentQueryIndex=e}function Vx(e){let t=e[E];return t.type===2?t.declTNode:t.type===1?e[ve]:null}function kv(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&L.Host);)if(o=Vx(i),o===null||(i=i[br],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=N.lFrame=Lv();return r.currentTNode=t,r.lView=e,!0}function bd(e){let t=Lv(),n=e[E];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Lv(){let e=N.lFrame,t=e===null?null:e.child;return t===null?Fv(e):t}function Fv(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function jv(){let e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Vv=jv;function Md(){let e=jv();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Hx(e){return(N.lFrame.contextLView=Cv(e,N.lFrame.contextLView))[J]}function pe(){return N.lFrame.selectedIndex}function gn(e){N.lFrame.selectedIndex=e}function z(){let e=N.lFrame;return si(e.tView,e.selectedIndex)}function Hv(){N.lFrame.currentNamespace=Ev}function Uv(){N.lFrame.currentNamespace=Iv}function $v(){Ux()}function Ux(){N.lFrame.currentNamespace=null}function Bv(){return N.lFrame.currentNamespace}var qv=!0;function ai(){return qv}function mt(e){qv=e}function $x(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=gv(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function Ha(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[tr]+=65536),(a>14>16&&(e[M]&3)===t&&(e[M]+=16384,Nm(a,i)):Nm(a,i)}var sr=-1,vn=class{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}};function qx(e){return e instanceof vn}function Gv(e){return e!=null&&typeof e=="object"&&(e.insertBeforeIndex===null||typeof e.insertBeforeIndex=="number"||Array.isArray(e.insertBeforeIndex))}function Wx(e){return(e.flags&8)!==0}function Gx(e){return(e.flags&16)!==0}var Ms={},Vs=class{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Xo(r);let o=this.injector.get(t,Ms,r);return o!==Ms||n===Ms?o:this.parentInjector.get(t,n,r)}};function zv(e){return e!==sr}function Hs(e){return e&32767}function zx(e){return e>>16}function Us(e,t){let n=zx(e),r=t;for(;n>0;)r=r[br],n--;return r}function Qx(e){return e instanceof Vs&&typeof e.injector.__ngOutletInjector=="function"}var Hl=!0;function $s(e){let t=Hl;return Hl=e,t}var Zx=256,Qv=Zx-1,Zv=5,Yx=0,ct={};function Kx(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(or)&&(r=n[or]),r==null&&(r=n[or]=Yx++);let o=r&Qv,i=1<>Zv)]|=i}function Bs(e,t){let n=Yv(e,t);if(n!==-1)return n;let r=t[E];r.firstCreatePass&&(e.injectorIndex=t.length,sl(r.data,e),sl(t,null),sl(r.blueprint,null));let o=Td(e,t),i=e.injectorIndex;if(zv(o)){let s=Hs(o),a=Us(o,t),c=a[E].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function sl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Yv(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Td(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=ny(o),r===null)return sr;if(n++,o=o[br],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return sr}function Ul(e,t,n){Kx(e,t,n)}function Jx(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,d=r?a:a+u,p=o?a+u:l;for(let f=d;f=c&&h.type===n)return f}if(o){let f=s[c];if(f&&Qe(f)&&f.type===n)return c}return null}function yn(e,t,n,r){let o=e[n],i=t.data;if(qx(o)){let s=o;s.resolving&&AT(je(i[n]));let a=$s(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?xe(s.injectImpl):null,u=kv(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&$x(n,i[n],t)}finally{l!==null&&xe(l),$s(a),s.resolving=!1,Vv()}}return o}function eN(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(or)?e[or]:void 0;return typeof t=="number"?t>=0?t&Qv:tN:t}function _m(e,t,n){let r=1<>Zv)]&r)}function Sm(e,t){return!(e&L.Self)&&!(e&L.Host&&t)}var Wt=class{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Xv(this._tNode,this._lView,t,Xo(r),n)}};function tN(){return new Wt(q(),g())}function ty(e){return ht(()=>{let t=e.prototype.constructor,n=t[Tt]||$l(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Tt]||$l(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function $l(e){return Na(e)?()=>{let t=$l(V(e));return t&&t()}:hn(e)}function nN(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[M]&2048&&!(s[M]&512);){let a=ey(i,s,n,r|L.Self,ct);if(a!==ct)return a;let c=i.parent;if(!c){let l=s[hv];if(l){let u=l.get(n,ct,r);if(u!==ct)return u}c=ny(s),s=s[br]}i=c}return o}function ny(e){let t=e[E],n=t.type;return n===2?t.declTNode:n===1?e[ve]:null}function Ua(e){return Jx(q(),e)}var ry=Cr("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ua(e)})),Om=null;function xd(){return Om=Om||new ks}function $a(e){return oy(xd().parameters(e))}function oy(e){return e.map(t=>rN(t))}function rN(e){let t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n(n===null&&(n=le({usage:0,kind:"injectable",type:e}).compileInjectable(bm,`ng:///${e.name}/\u0275prov.js`,cN(e,t))),n)}),e.hasOwnProperty(Tt)||Object.defineProperty(e,Tt,{get:()=>{if(r===null){let o=le({usage:0,kind:"injectable",type:e});r=o.compileFactory(bm,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:$a(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}var iN=$({provide:String,useValue:$});function Am(e){return e.useClass!==void 0}function sN(e){return iN in e}function Rm(e){return e.useFactory!==void 0}function aN(e){return e.useExisting!==void 0}function cN(e,t){let n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Am(n)||Rm(n))&&n.deps!==void 0&&(r.deps=oy(n.deps)),Am(n)?r.useClass=n.useClass:sN(n)?r.useValue=n.useValue:Rm(n)?r.useFactory=n.useFactory:aN(n)&&(r.useExisting=n.useExisting),r}var lN=Yo("Injectable",void 0,void 0,void 0,(e,t)=>oN(e,t));function Bl(e,t=null,n=null,r){let o=iy(e,t,n,r);return o.resolveInjectorInitializers(),o}function iy(e,t=null,n=null,r,o=new Set){let i=[n||H,cv(e)];return r=r||(typeof e=="object"?void 0:me(e)),new To(i,t||ka(),r||null,o)}var pn=class pn{static create(t,n){if(Array.isArray(t))return Bl({name:""},n,t,"");{let r=t.name??"";return Bl({name:r},t.parent,t.providers,r)}}};pn.THROW_IF_NOT_FOUND=Co,pn.NULL=new Rs,pn.\u0275prov=B({token:pn,providedIn:"any",factory:()=>ge(ad)}),pn.__NG_ELEMENT_ID__=-1;var fe=pn;var ql=class{constructor(t){this.attributeName=t,this.__NG_ELEMENT_ID__=()=>Ua(this.attributeName)}toString(){return`HostAttributeToken ${this.attributeName}`}},sy=new P("");sy.__NG_ELEMENT_ID__=e=>{let t=q();if(t===null)throw new D(204,!1);if(t.type&2)return t.value;if(e&L.Optional)return null;throw new D(204,!1)};var uN="ngOriginalError";function al(e){return e[uN]}var Ke=class{constructor(){this._console=console}handleError(t){let n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&al(t);for(;n&&al(n);)n=al(n);return n||null}},ay=new P("",{providedIn:"root",factory:()=>b(Ke).handleError.bind(void 0)}),An=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=dN,t.__NG_ENV_ID__=r=>r;let e=t;return e})(),Wl=class extends An{constructor(t){super(),this._lView=t}onDestroy(t){return ja(this._lView,t),()=>Ed(this._lView,t)}};function dN(){return new Wl(g())}var Ao=class{constructor(){this.destroyed=!1,this.listeners=null,this.errorHandler=b(Ke,{optional:!0}),this.destroyRef=b(An),this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new D(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{let n=this.listeners?.indexOf(t);n!==void 0&&n!==-1&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)throw new D(953,!1);if(this.listeners===null)return;let n=A(null);try{for(let r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{A(n)}}};function fN(e){return e.destroyRef}function pN(e){return new Ao}function Pm(e,t){return Bg(e,t)}function hN(e){return Bg(Ta,e)}var mN=(Pm.required=hN,Pm);function gN(){return Mr(q(),g())}function Mr(e,t){return new ci(Oe(e,t))}var ci=(()=>{let t=class t{constructor(r){this.nativeElement=r}};t.__NG_ELEMENT_ID__=gN;let e=t;return e})();function cy(e){return e instanceof ci?e.nativeElement:e}var en=(()=>{let t=class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Kr(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let r=this.taskId++;return this.pendingTasks.add(r),r}remove(r){this.pendingTasks.delete(r),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})(),vN=(()=>{let t=class t{constructor(){this.internalPendingTasks=b(en)}add(){let r=this.internalPendingTasks.add();return()=>this.internalPendingTasks.remove(r)}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})(),Gl=class extends Vt{constructor(t=!1){super(),this.destroyRef=void 0,this.pendingTasks=void 0,this.__isAsync=t,fv()&&(this.destroyRef=b(An,{optional:!0})??void 0,this.pendingTasks=b(en,{optional:!0})??void 0)}emit(t){let n=A(null);try{super.next(t)}finally{A(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof Y&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{t(n),r!==void 0&&this.pendingTasks?.remove(r)})}}},lt=Gl;function yN(){return this._results[Symbol.iterator]()}var qs=class e{get changes(){return this._changes??=new lt}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;let n=e.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=yN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=st(t);(this._changesDetected=!$T(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}},Ro="ngSkipHydration",EN="ngskiphydration";function ly(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;n=0){let a=U(i[s]),c=km(i,s,a);Ne(a,c),t=c;break}}}}return t||null}function km(e,t,n){return new zs(e[oi],t,n)}var zl="__ngContext__";function Ne(e,t){He(t)?(e[zl]=t[oi],DN(t)):e[zl]=t}function cl(e){let t=e[zl];return typeof t=="number"?dy(t):t||null}function fy(e){return e&&e.constructor&&e.constructor.\u0275cmp}function bN(e){return e&&e.constructor&&e.constructor.\u0275dir}function Lm(e,t){let n=e[E];for(let r=w;r-1?t[r+o]:null}function _N(e,t){let n=e[E].data[t];if(n&&n.localNames){let r={},o=n.index+1;for(let i=0;i=0?"dom":"output",m=typeof f=="boolean"?f:!1;e==d&&s.push({element:e,name:u,callback:p,useCapture:m,type:h})}}return s.sort(jN),s}function jN(e,t){return e.name==t.name?0:e.name$N}),$N="ng",vy=new P(""),_d=new P("",{providedIn:"platform",factory:()=>"unknown"}),BN=new P(""),qN=new P(""),WN=new P("",{providedIn:"root",factory:()=>Tr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),yy={breakpoints:[16,32,48,64,96,128,256,384,640,750,828,1080,1200,1920,2048,3840],placeholderResolution:30,disableImageSizeWarning:!1,disableImageLazyLoadWarning:!1},GN=new P("",{providedIn:"root",factory:()=>yy});function zN(e){return e}function QN(){let e=new li;return b(_d)==="browser"&&(e.store=ZN(Tr(),b(Ba))),e}var li=(()=>{let t=class t{constructor(){this.store={},this.onSerializeCallbacks={}}get(r,o){return this.store[r]!==void 0?this.store[r]:o}set(r,o){this.store[r]=o}remove(r){delete this.store[r]}hasKey(r){return this.store.hasOwnProperty(r)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(r,o){this.onSerializeCallbacks[r]=o}toJson(){for(let r in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(r))try{this.store[r]=this.onSerializeCallbacks[r]()}catch(o){console.warn("Exception in onSerialize callback: ",o)}return JSON.stringify(this.store).replace(/null;function KN(e,t,n=!1){let r=e.getAttribute(po);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={};if(r!==""){let u=t.get(li,null,{optional:!0});u!==null&&(c=u.get(Ad,[])[Number(r)])}let l={data:c,firstChild:e.firstChild??null};return n&&(l.firstChild=e,qa(l,0,e.nextSibling)),a?e.setAttribute(po,a):e.removeAttribute(po),l}function JN(){Iy=KN}function Rd(e,t,n=!1){return Iy(e,t,n)}function wy(e){let t=e._lView;return t[E].type===2?null:(_o(t)&&(t=t[w]),t)}function XN(e){return e.textContent?.replace(/\s/gm,"")}function e_(e){let t=Tr(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=XN(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}var t_="__ngDebugHydrationInfo__";function n_(e){return e[t_]??null}function qa(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function Jl(e,t){return e.segmentHeads?.[t]??null}function Dy(e,t){let n=e.data,r=n[Qs]?.[t]??null;return r===null&&n[ko]?.[t]&&(r=Pd(e,t)),r}function r_(e,t){return e.data[Qs]?.[t]!==void 0}function Cy(e,t){return e.data[ko]?.[t]??null}function Pd(e,t){let n=Cy(e,t)??[],r=0;for(let o of n)r+=o[hr]*(o[Zs]??1);return r}function by(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[fo];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function ui(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[fo];e.disconnectedNodes=n?new Set(n):null}return!!by(e)?.has(t)}function My(e,t){let n=t,r=e.corruptedTextNodes;n.textContent===""?r.set(n,"ngetn"):n.nextSibling?.nodeType===Node.TEXT_NODE&&r.set(n,"ngtns")}var lo=new P(""),Ty=!1,xy=new P("",{providedIn:"root",factory:()=>Ty}),Ny=new P(""),kd=new P(""),_y=!1,o_=new P(""),ds;function Sy(){if(ds===void 0&&(ds=null,Re.trustedTypes))try{ds=Re.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return ds}function xr(e){return Sy()?.createHTML(e)||e}function i_(e){return Sy()?.createScriptURL(e)||e}var fs;function Ld(){if(fs===void 0&&(fs=null,Re.trustedTypes))try{fs=Re.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return fs}function jm(e){return Ld()?.createHTML(e)||e}function Vm(e){return Ld()?.createScript(e)||e}function Hm(e){return Ld()?.createScriptURL(e)||e}var Nt=class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ed})`}},Xl=class extends Nt{getTypeName(){return"HTML"}},eu=class extends Nt{getTypeName(){return"Style"}},tu=class extends Nt{getTypeName(){return"Script"}},nu=class extends Nt{getTypeName(){return"URL"}},ru=class extends Nt{getTypeName(){return"ResourceURL"}};function At(e){return e instanceof Nt?e.changingThisBreaksApplicationSecurity:e}function Nr(e,t){let n=Oy(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ed})`)}return n===t}function Oy(e){return e instanceof Nt&&e.getTypeName()||null}function s_(e){return new Xl(e)}function a_(e){return new eu(e)}function c_(e){return new tu(e)}function l_(e){return new nu(e)}function u_(e){return new ru(e)}function Ay(e){let t=new iu(e);return d_()?new ou(t):t}var ou=class{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(xr(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}},iu=class{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=xr(t),n}};function d_(){try{return!!new window.DOMParser().parseFromString(xr(""),"text/html")}catch{return!1}}var f_=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Wa(e){return e=String(e),e.match(f_)?e:"unsafe:"+e}function Rt(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function di(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var Ry=Rt("area,br,col,hr,img,wbr"),Py=Rt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ky=Rt("rp,rt"),p_=di(ky,Py),h_=di(Py,Rt("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),m_=di(ky,Rt("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),su=di(Ry,h_,m_,p_),Fd=Rt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),g_=Rt("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),v_=Rt("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),Ly=di(Fd,g_,v_),y_=Rt("script,style,template"),au=class{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=w_(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=I_(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=Um(t).toLowerCase();if(!su.hasOwnProperty(n))return this.sanitizedSomething=!0,!y_.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=Um(t).toLowerCase();su.hasOwnProperty(n)&&!Ry.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push($m(t))}};function E_(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function I_(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw Fy(t);return t}function w_(e){let t=e.firstChild;if(t&&E_(e,t))throw Fy(t);return t}function Um(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function Fy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var D_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C_=/([^\#-~ |!])/g;function $m(e){return e.replace(/&/g,"&").replace(D_,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(C_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var ps;function jy(e,t){let n=null;try{ps=ps||Ay(e);let r=t?String(t):"";n=ps.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=ps.getInertBodyElement(r)}while(r!==i);let a=new au().sanitizeChildren(cu(n)||n);return xr(a)}finally{if(n){let r=cu(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function cu(e){return"content"in e&&b_(e)?e.content:null}function b_(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Rn=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Rn||{});function Vy(e){let t=fi();return t?jm(t.sanitize(Rn.HTML,e)||""):Nr(e,"HTML")?jm(At(e)):jy(Tr(),O(e))}function Hy(e){let t=fi();return t?t.sanitize(Rn.STYLE,e)||"":Nr(e,"Style")?At(e):O(e)}function jd(e){let t=fi();return t?t.sanitize(Rn.URL,e)||"":Nr(e,"URL")?At(e):Wa(O(e))}function Vd(e){let t=fi();if(t)return Hm(t.sanitize(Rn.RESOURCE_URL,e)||"");if(Nr(e,"ResourceURL"))return Hm(At(e));throw new D(904,!1)}function Uy(e){let t=fi();if(t)return Vm(t.sanitize(Rn.SCRIPT,e)||"");if(Nr(e,"Script"))return Vm(At(e));throw new D(905,!1)}function $y(e){return xr(e[0])}function By(e){return i_(e[0])}function M_(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Vd:jd}function qy(e,t,n){return M_(t,n)(e)}function fi(){let e=g();return e&&e[ft].sanitizer}var T_=/^>|^->||--!>|)/g,N_="\u200B$1\u200B";function __(e){return e.replace(T_,t=>t.replace(x_,N_))}var S_={name:"custom-elements"},O_={name:"no-errors-schema"},Wy=!1;function A_(e){Wy=e}function R_(){return Wy}var Gy=!1;function P_(e){Gy=e}function k_(){return Gy}function zy(e){return e.ownerDocument.defaultView}function Qy(e){return e.ownerDocument}function Hd(e){return e.ownerDocument.body}var L_="\uFFFD";function bt(e){return e instanceof Function?e():e}function _e(e){return(e??b(fe)).get(_d)==="browser"}var Ks=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ks||{}),lu;function Ud(e,t){return lu(e,t)}function F_(e){lu===void 0&&(lu=e())}function nr(e,t,n,r,o){if(r!=null){let i,s=!1;De(r)?i=r:He(r)&&(s=!0,r=r[te]);let a=U(r);e===0&&n!==null?o==null?Xy(t,n,a):En(t,n,a,o||null,!0):e===1&&n!==null?En(t,n,a,o||null,!0):e===2?pi(t,a,s):e===3&&t.destroyNode(a),i!=null&&z_(t,e,i,n,o)}}function $d(e,t){return e.createText(t)}function Zy(e,t,n){e.setValue(t,n)}function Bd(e,t){return e.createComment(__(t))}function Ga(e,t,n){return e.createElement(t,n)}function j_(e,t){Yy(e,t),t[te]=null,t[ve]=null}function V_(e,t,n,r,o,i){r[te]=o,r[ve]=t,Ya(e,r,n,1,o,i)}function Yy(e,t){t[ft].changeDetectionScheduler?.notify(8),Ya(e,t,t[x],2,null,null)}function H_(e){let t=e[xo];if(!t)return ll(e[E],e);for(;t;){let n=null;if(He(t))n=t[xo];else{let r=t[X];r&&(n=r)}if(!n){for(;t&&!t[Ge]&&t!==e;)He(t)&&ll(t[E],t),t=t[ie];t===null&&(t=e),He(t)&&ll(t[E],t),n=t&&t[Ge]}t=n}}function U_(e,t,n,r){let o=X+r,i=n.length;r>0&&(n[o-1][Ge]=t),r0&&(e[n-1][Ge]=r[Ge]);let i=As(e,X+t);j_(r[E],r);let s=i[xt];s!==null&&s.detachView(i[E]),r[ie]=null,r[Ge]=null,r[M]&=-129}return r}function za(e,t){if(!(t[M]&256)){let n=t[x];n.destroyNode&&Ya(e,t,n,3,null,null),H_(t)}}function ll(e,t){if(t[M]&256)return;let n=A(null);try{t[M]&=-129,t[M]|=256,t[Ve]&&Xi(t[Ve]),B_(e,t),$_(e,t),t[E].type===1&&t[x].destroy();let r=t[mn];if(r!==null&&De(t[ie])){r!==t[ie]&&qd(r,t);let o=t[xt];o!==null&&o.detachView(e)}CN(t)}finally{A(n)}}function $_(e,t){let n=e.cleanup,r=t[fr];if(n!==null)for(let i=0;i=0?r[s]():r[-s].unsubscribe(),i+=2}else{let s=r[n[i+1]];n[i].call(s)}r!==null&&(t[fr]=null);let o=t[qt];if(o!==null){t[qt]=null;for(let i=0;i-1){let{encapsulation:i}=e.data[r.directiveStart+o];if(i===Qt.None||i===Qt.Emulated)return null}return Oe(r,n)}}function En(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Xy(e,t,n){e.appendChild(t,n)}function Bm(e,t,n,r,o){r!==null?En(e,t,n,r,o):Xy(e,t,n)}function q_(e,t,n,r){e.removeChild(t,n,r)}function Qa(e,t){return e.parentNode(t)}function W_(e,t){return e.nextSibling(t)}function eE(e,t,n){return nE(e,t,n)}function tE(e,t,n){return e.type&40?Oe(e,n):null}var nE=tE,uu;function rE(e,t){nE=e,uu=t}function Za(e,t,n,r){let o=Wd(e,r,t),i=t[x],s=r.parent||t[ve],a=eE(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;cw&&uE(e,t,w,!1),at(s?2:0,o),n(r,o)}finally{gn(i),at(s?3:1,o)}}function Qd(e,t,n){if(md(t)){let r=A(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;snull;function eS(e){uy(e)?iE(e):e_(e)}function tS(){mE=eS}function nS(e,t,n,r){let o=IE(t);o.push(n),e.firstCreatePass&&wE(e).push(r,o.length-1)}function rS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return On()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function qm(e,t,n,r,o){for(let i in t){if(!t.hasOwnProperty(i))continue;let s=t[i];if(s===void 0)continue;r??={};let a,c=ur.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(o!==null){if(!o.hasOwnProperty(i))continue;l=o[i]}e===0?Wm(r,n,l,a,c):Wm(r,n,l,a)}return r}function Wm(e,t,n,r,o){let i;e.hasOwnProperty(n)?(i=e[n]).push(t,r):i=e[n]=[t,r],o!==void 0&&i.push(o)}function oS(e,t,n){let r=t.directiveStart,o=t.directiveEnd,i=e.data,s=t.attrs,a=[],c=null,l=null;for(let u=r;u0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function lS(e,t,n,r){let o=n.directiveStart,i=n.directiveEnd;_n(n)&&gS(t,n,e.data[o+n.componentOffset]),e.firstCreatePass||Bs(n,t),Ne(r,t);let s=n.initialInputs;for(let a=o;a{Fa(e.lView)},consumerOnSignalRead(){this.lView[Ve]=this}});function TS(e){let t=e[Ve]??Object.create(xS);return t.lView=e,t}var xS=nt(Z({},Gn),{consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{let t=Zt(e.lView);for(;t&&!TE(t[E]);)t=Zt(t);t&&Dv(t)},consumerOnSignalRead(){this.lView[Ve]=this}});function TE(e){return e.type!==2}var NS=100;function xE(e,t=!0,n=0){let r=e[ft],o=r.rendererFactory,i=!1;i||o.begin?.();try{_S(e,n)}catch(s){throw t&&Xa(e,s),s}finally{i||(o.end?.(),r.inlineEffectRunner?.flush())}}function _S(e,t){let n=Av();try{xm(!0),hu(e,t);let r=0;for(;So(e);){if(r===NS)throw new D(103,!1);r++,hu(e,1)}}finally{xm(n)}}function SS(e,t,n,r){let o=t[M];if((o&256)===256)return;let i=!1,s=!1;!i&&t[ft].inlineEffectRunner?.flush(),bd(t);let a=!0,c=null,l=null;i||(TE(e)?(l=DS(t),c=to(l)):qc()===null?(a=!1,l=TS(t),c=to(l)):t[Ve]&&(Xi(t[Ve]),t[Ve]=null));try{wv(t),Rv(e.bindingStartIndex),n!==null&&pE(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let f=e.preOrderCheckHooks;f!==null&&Cs(t,f,null)}else{let f=e.preOrderHooks;f!==null&&bs(t,f,0,null),il(t,0)}if(s||OS(t),NE(t,0),e.contentQueries!==null&&EE(e,t),!i)if(u){let f=e.contentCheckHooks;f!==null&&Cs(t,f)}else{let f=e.contentHooks;f!==null&&bs(t,f,1),il(t,1)}Y_(e,t);let d=e.components;d!==null&&SE(t,d,0);let p=e.viewQuery;if(p!==null&&pu(2,p,r),!i)if(u){let f=e.viewCheckHooks;f!==null&&Cs(t,f)}else{let f=e.viewHooks;f!==null&&bs(t,f,2),il(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Ds]){for(let f of t[Ds])f();t[Ds]=null}i||(t[M]&=-73)}catch(u){throw i||Fa(t),u}finally{l!==null&&(Ki(l,c),a&&bS(l)),Md()}}function NE(e,t){for(let n=hy(e);n!==null;n=my(n))for(let r=X;r-1&&(Lo(t,r),As(n,r))}this._attachedToViewContainer=!1}za(this._lView[E],this._lView)}onDestroy(t){ja(this._lView,t)}markForCheck(){ec(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[M]&=-129}reattach(){jl(this._lView),this._lView[M]|=128}detectChanges(){this._lView[M]|=1024,xE(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new D(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=_o(this._lView),n=this._lView[mn];n!==null&&!t&&qd(n,this._lView),Yy(this._lView[E],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new D(902,!1);this._appRef=t;let n=_o(this._lView),r=this._lView[mn];r!==null&&!n&&Ky(r,this._lView),jl(this._lView)}},jo=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=kS;let e=t;return e})(),RS=jo,PS=class extends RS{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Sr(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Yt(o)}};function kS(){return tc(q(),g())}function tc(e,t){return e.type&4?new PS(t,e,Mr(e,t)):null}var mu="<-- AT THIS LOCATION";function LS(e){switch(e){case 4:return"view container";case 2:return"element";case 8:return"ng-container";case 32:return"icu";case 64:return"i18n";case 16:return"projection";case 1:return"text";case 128:return"@let";default:return""}}function FS(e,t){let n=`During serialization, Angular was unable to find an element in the DOM: - -`,r=`${$S(e,t,!1)} - -`,o=qS();throw new D(-502,n+r+o)}function jS(e){let t="During serialization, Angular detected DOM nodes that were created outside of Angular context and provided as projectable nodes (likely via `ViewContainerRef.createComponent` or `createComponent` APIs). Hydration is not supported for such cases, consider refactoring the code to avoid this pattern or using `ngSkipHydration` on the host element of the component.\n\n",n=`${BS(e)} - -`,r=t+n+WS();return new D(-503,r)}function VS(e){let t=[];if(e.attrs)for(let n=0;n${t}`;case 8:return"";case 4:return"";default:return`#node(${LS(e.type)})`}}function xs(e,t="\u2026"){let n=e;switch(n.nodeType){case Node.ELEMENT_NODE:let r=n.tagName.toLowerCase(),o=US(n);return`<${r}${o?" "+o:""}>${t}`;case Node.TEXT_NODE:let i=n.textContent?Js(n.textContent):"";return`#text${i?`(${i})`:""}`;case Node.COMMENT_NODE:return``;default:return`#node(${n.nodeType})`}}function $S(e,t,n){let r=" ",o="";t.prev?(o+=r+`\u2026 -`,o+=r+ul(t.prev)+` -`):t.type&&t.type&12&&(o+=r+`\u2026 -`),n?(o+=r+ul(t)+` -`,o+=r+` ${mu} -`):o+=r+ul(t)+` ${mu} -`,o+=r+`\u2026 -`;let i=t.type?Wd(e[E],t,e):null;return i&&(o=xs(i,` -`+o)),o}function BS(e){let t=" ",n="",r=e;return r.previousSibling&&(n+=t+`\u2026 -`,n+=t+xs(r.previousSibling)+` -`),n+=t+xs(r)+` ${mu} -`,e.nextSibling&&(n+=t+`\u2026 -`),e.parentNode&&(n=xs(r.parentNode,` -`+n)),n}function qS(e){return`To fix this problem: - * check ${e?`the "${e}"`:"corresponding"} component for hydration-related issues - * check to see if your template has valid HTML structure - * or skip hydration by adding the \`ngSkipHydration\` attribute to its host node in a template - -`}function WS(){return`Note: attributes are only displayed to better represent the DOM but have no effect on hydration mismatches. - -`}function GS(e){return e.replace(/\s+/gm,"")}function Js(e,t=50){return e?(e=GS(e),e.length>t?`${e.substring(0,t-1)}\u2026`:e):""}function OE(e,t,n){let r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return o===null?tE(e,t,n):U(n[o])}function AE(e,t,n,r,o){let i=t.insertBeforeIndex;if(Array.isArray(i)){let s=r,a=null;if(t.type&3||(a=s,s=o),s!==null&&t.componentOffset===-1)for(let c=1;c1)for(let n=e.length-2;n>=0;n--){let r=e[n];PE(r)||zS(r,t)&&QS(r)===null&&ZS(r,t.index)}}function PE(e){return!(e.type&64)}function zS(e,t){return PE(t)||e.index>t.index}function QS(e){let t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function ZS(e,t){let n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(rE(OE,AE),e.insertBeforeIndex=t)}function ho(e,t){let n=e.data[t];return n===null||typeof n=="string"?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function YS(e,t,n){let r=e.data[t];r===null?e.data[t]=n:r.value=n}function KS(e,t){let n=e.insertBeforeIndex;n===null?(rE(OE,AE),n=e.insertBeforeIndex=[null,t]):(TT(Array.isArray(n),!0,"Expecting array here"),n.push(t))}function JS(e,t,n){let r=zd(e,n,64,null,null);return RE(t,r),r}function nc(e,t){let n=t[e.currentCaseLViewIndex];return n===null?n:n<0?~n:n}function XS(e){return e>>>17}function eO(e){return(e&131070)>>>1}function tO(e,t,n){return e|t<<17|n<<1}function kE(e){return e===-1}function rf(e,t,n){e.index=0;let r=nc(t,n);r!==null?e.removes=t.remove[r]:e.removes=H}function Xs(e){if(e.index0)return e.lView[t];{e.stack.push(e.index,e.removes);let n=~t,r=e.lView[E].data[n];return rf(e,r,e.lView),Xs(e)}}else return e.stack.length===0?null:(e.removes=e.stack.pop(),e.index=e.stack.pop(),Xs(e))}function nO(){let e={stack:[],index:-1};function t(n,r){for(e.lView=r;e.stack.length;)e.stack.pop();return rf(e,n.value,r),Xs.bind(null,e)}return t}function rO(e,t){let n={stack:[],index:-1,lView:t};return rf(n,e,t),Xs.bind(null,n)}var oO=new RegExp(`^(\\d+)*(${Od}|${Sd})*(.*)`);function iO(e,t){let n=[e];for(let r of t){let o=n.length-1;if(o>0&&n[o-1]===r){let i=n[o]||1;n[o]=i+1}else n.push(r,"")}return n.join("")}function sO(e){let t=e.match(oO),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,l,u]of i.matchAll(/(f|n)(\d*)/g)){let d=parseInt(u,10)||1;a.push(l,d)}return[s,...a]}function aO(e){return!e.prev&&e.parent?.type===8}function dl(e){return e.index-w}function Vo(e,t){return!(e.type&144)&&!!t[e.index]&&LE(U(t[e.index]))}function LE(e){return!!e&&!e.isConnected}function FE(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function cO(e,t,n){let o=e.data[Ys]?.[n];return o?jE(o,t):null}function mi(e,t,n,r){let o=dl(r),i=FE(e,o);if(i===void 0){let s=e.data[Ys];if(s?.[o])i=jE(s[o],n);else if(t.firstChild===r)i=e.firstChild;else{let a=r.prev===null,c=r.prev??r.parent;if(aO(r)){let l=dl(r.parent);i=Jl(e,l)}else{let l=Oe(c,n);if(a)i=l.firstChild;else{let u=dl(c),d=Jl(e,u);if(c.type===2&&d){let f=Pd(e,u)+1;i=rc(f,d)}else i=l.nextSibling}}}}return i}function rc(e,t){let n=t;for(let r=0;r{};function UE(e){VE=e}function of(){return VE}function fO(e,t,n,r){HE(e,t,n,r)}function pO(){HE=wO}function hO(e){return e=e??b(fe),e.get(Ny,!1)}function mO(e,t){let n=t.i18nChildren.get(e);return n===void 0&&(n=gO(e),t.i18nChildren.set(e,n)),n}function gO(e){let t=new Set;function n(r){switch(t.add(r.index),r.kind){case 1:case 2:{for(let o of r.children)n(o);break}case 3:{for(let o of r.cases)for(let i of o)n(i);break}}}for(let r=w;r{};function DO(e,t,n){$E(e,t,n)}function CO(){$E=bO}function bO(e,t,n){let r=e[we]?.dehydratedIcuData;r&&r.get(t)?.case===n&&r.delete(t)}function MO(e){let t=e[we];if(t){let{i18nNodes:n,dehydratedIcuData:r}=t;if(n&&r){let o=e[x];for(let i of r.values())TO(o,n,i)}t.i18nNodes=void 0,t.dehydratedIcuData=void 0}}function TO(e,t,n){for(let r of n.node.cases[n.case]){let o=t.get(r.index-w);o&&pi(e,o,!1)}}function BE(e){let t=e[No]??[],r=e[ie][x];for(let o of t)xO(o,r);e[No]=H}function xO(e,t){let n=0,r=e.firstChild;if(r){let o=e.data[hr];for(;n0&&(i.firstChild=e,e=rc(r[hr],e)),n.push(i)}return[e,n]}var WE=()=>null;function SO(e,t){let n=e[No];return!t||n===null||n.length===0?null:n[0].data[Yl]===t?n.shift():(BE(e),null)}function OO(){WE=SO}function wn(e,t){return WE(e,t)}var _t=class{},gi=new P("",{providedIn:"root",factory:()=>!1});var GE=new P(""),ta=class{},Ho=class{};function AO(e){let t=Error(`No component factory found for ${me(e)}.`);return t[RO]=e,t}var RO="ngComponent";var yu=class{resolveComponentFactory(t){throw AO(t)}},Pp=class Pp{};Pp.NULL=new yu;var Dn=Pp,Uo=class{},PO=(()=>{let t=class t{constructor(){this.destroyNode=null}};t.__NG_ELEMENT_ID__=()=>kO();let e=t;return e})();function kO(){let e=g(),t=q(),n=Ze(t.index,e);return(He(n)?n:e)[x]}var zE=(()=>{let t=class t{};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>null});let e=t;return e})();function LO(e,t){if(qc()!==null)throw new D(-602,!1)}var zm=new Set;function ye(e){zm.has(e)||(zm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function QE(e){let t=!0;return setTimeout(()=>{t&&(t=!1,e())}),typeof Re.requestAnimationFrame=="function"&&Re.requestAnimationFrame(()=>{t&&(t=!1,e())}),()=>{t=!1}}function Qm(e){let t=!0;return queueMicrotask(()=>{t&&e()}),()=>{t=!1}}function Zm(...e){}var ee=class e{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new lt(!1),this.onMicrotaskEmpty=new lt(!1),this.onStable=new lt(!1),this.onError=new lt(!1),typeof Zone>"u")throw new D(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.callbackScheduled=!1,VO(o)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get("isAngularZone")===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new D(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new D(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,FO,Zm,Zm);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},FO={};function sf(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function jO(e){e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,Zone.root.run(()=>{QE(()=>{e.callbackScheduled=!1,Eu(e),e.isCheckStableRunning=!0,sf(e),e.isCheckStableRunning=!1})}),Eu(e))}function VO(e){let t=()=>{jO(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{if(HO(a))return n.invokeTask(o,i,s,a);try{return Ym(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&i.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Km(e)}},onInvoke:(n,r,o,i,s,a,c)=>{try{return Ym(e),n.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!UO(a)&&t(),Km(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&(i.change=="microTask"?(e._hasPendingMicrotasks=i.microTask,Eu(e),sf(e)):i.change=="macroTask"&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}function Eu(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ym(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Km(e){e._nesting--,sf(e)}var mr=class{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new lt,this.onMicrotaskEmpty=new lt,this.onStable=new lt,this.onError=new lt}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function HO(e){return ZE(e,"__ignore_ng_zone__")}function UO(e){return ZE(e,"__scheduler_tick__")}function ZE(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function $O(e="zone.js",t){return e==="noop"?new mr:e==="zone.js"?new ee(t):e}var Bt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Bt||{}),YE={destroy(){}};function na(e,t){let n=t?.injector??b(fe);if(!t?.runOnServer&&!_e(n))return;n.get(Ar).internalCallbacks.push(e)}function KE(e,t){!t&&ri(KE);let n=t?.injector??b(fe);if(!_e(n))return YE;ye("NgAfterRender");let r=n.get(Ar),o=r.handler??=new oa,i=t?.phase??Bt.MixedReadWrite,s=()=>{o.unregister(c),a()},a=n.get(An).onDestroy(s),c=pd(n,()=>new ra(i,e));return o.register(c),{destroy:s}}function JE(e,t){!t&&ri(JE);let n=t?.injector??b(fe);if(!_e(n))return YE;ye("NgAfterNextRender");let r=n.get(Ar),o=r.handler??=new oa,i=t?.phase??Bt.MixedReadWrite,s=()=>{o.unregister(c),a()},a=n.get(An).onDestroy(s),c=pd(n,()=>new ra(i,()=>{s(),e()}));return o.register(c),{destroy:s}}var ra=class{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=b(ee),this.errorHandler=b(Ke,{optional:!0}),b(_t,{optional:!0})?.notify(6)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}},oa=class{constructor(){this.executingCallbacks=!1,this.buckets={[Bt.EarlyRead]:new Set,[Bt.Write]:new Set,[Bt.MixedReadWrite]:new Set,[Bt.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(let t of Object.values(this.buckets))for(let n of t)n.invoke();this.executingCallbacks=!1;for(let t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(let t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}},Ar=(()=>{let t=class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){let r=[...this.internalCallbacks];this.internalCallbacks.length=0;for(let o of r)o()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function af(e){return e.ngModule!==void 0}function $t(e){return!!ze(e)}function hs(e){return!!ke(e)}function Jm(e){return!!Pe(e)}function mo(e){return!!Q(e)}function BO(e){return Q(e)?"component":Pe(e)?"directive":ke(e)?"pipe":"type"}function qO(e,t){if(Na(e)&&(e=V(e),!e))throw new Error(`Expected forwardRef function, imported from "${je(t)}", to return a standalone entity or NgModule but got "${je(e)||e}".`);if(ze(e)==null){let n=Q(e)||Pe(e)||ke(e);if(n!=null){if(!n.standalone)throw new Error(`The "${je(e)}" ${BO(e)}, imported from "${je(t)}", is not standalone. Did you forget to add the standalone: true flag?`)}else throw af(e)?new Error(`A module with providers was imported from "${je(t)}". Modules with providers are not supported in standalone components imports.`):new Error(`The "${je(e)}" type, imported from "${je(t)}", must be a standalone component / directive / pipe or an NgModule. Did you forget to add the required @Component / @Directive / @Pipe or @NgModule annotation?`)}}var ia=!0,Iu=class{constructor(){this.ownerNgModule=new Map,this.ngModulesWithSomeUnresolvedDecls=new Set,this.ngModulesScopeCache=new Map,this.standaloneComponentsScopeCache=new Map}resolveNgModulesDecls(){if(this.ngModulesWithSomeUnresolvedDecls.size!==0){for(let t of this.ngModulesWithSomeUnresolvedDecls){let n=ze(t);if(n?.declarations)for(let r of bt(n.declarations))mo(r)&&this.ownerNgModule.set(r,t)}this.ngModulesWithSomeUnresolvedDecls.clear()}}getComponentDependencies(t,n){this.resolveNgModulesDecls();let r=Q(t);if(r===null)throw new Error(`Attempting to get component dependencies for a type that is not a component: ${t}`);if(r.standalone){let o=this.getStandaloneComponentScope(t,n);return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes,...o.compilation.ngModules]}}else{if(!this.ownerNgModule.has(t))return{dependencies:[]};let o=this.getNgModuleScope(this.ownerNgModule.get(t));return o.compilation.isPoisoned?{dependencies:[]}:{dependencies:[...o.compilation.directives,...o.compilation.pipes]}}}registerNgModule(t,n){if(!$t(t))throw new Error(`Attempting to register a Type which is not NgModule as NgModule: ${t}`);this.ngModulesWithSomeUnresolvedDecls.add(t)}clearScopeCacheFor(t){this.ngModulesScopeCache.delete(t),this.standaloneComponentsScopeCache.delete(t)}getNgModuleScope(t){if(this.ngModulesScopeCache.has(t))return this.ngModulesScopeCache.get(t);let n=this.computeNgModuleScope(t);return this.ngModulesScopeCache.set(t,n),n}computeNgModuleScope(t){let n=ze(t,!0),r={exported:{directives:new Set,pipes:new Set},compilation:{directives:new Set,pipes:new Set}};for(let o of bt(n.imports))if($t(o)){let i=this.getNgModuleScope(o);Ut(i.exported.directives,r.compilation.directives),Ut(i.exported.pipes,r.compilation.pipes)}else if(Mo(o))if(Jm(o)||mo(o))r.compilation.directives.add(o);else if(hs(o))r.compilation.pipes.add(o);else throw new D(1e3,"The standalone imported type is neither a component nor a directive nor a pipe");else{r.compilation.isPoisoned=!0;break}if(!r.compilation.isPoisoned)for(let o of bt(n.declarations)){if($t(o)||Mo(o)){r.compilation.isPoisoned=!0;break}hs(o)?r.compilation.pipes.add(o):r.compilation.directives.add(o)}for(let o of bt(n.exports))if($t(o)){let i=this.getNgModuleScope(o);Ut(i.exported.directives,r.exported.directives),Ut(i.exported.pipes,r.exported.pipes),Ut(i.exported.directives,r.compilation.directives),Ut(i.exported.pipes,r.compilation.pipes)}else hs(o)?r.exported.pipes.add(o):r.exported.directives.add(o);return r}getStandaloneComponentScope(t,n){if(this.standaloneComponentsScopeCache.has(t))return this.standaloneComponentsScopeCache.get(t);let r=this.computeStandaloneComponentScope(t,n);return this.standaloneComponentsScopeCache.set(t,r),r}computeStandaloneComponentScope(t,n){let r={compilation:{directives:new Set([t]),pipes:new Set,ngModules:new Set}};for(let o of st(n??[])){let i=V(o);try{qO(i,t)}catch{return r.compilation.isPoisoned=!0,r}if($t(i)){r.compilation.ngModules.add(i);let s=this.getNgModuleScope(i);if(s.exported.isPoisoned)return r.compilation.isPoisoned=!0,r;Ut(s.exported.directives,r.compilation.directives),Ut(s.exported.pipes,r.compilation.pipes)}else if(hs(i))r.compilation.pipes.add(i);else if(Jm(i)||mo(i))r.compilation.directives.add(i);else return r.compilation.isPoisoned=!0,r}return r}isOrphanComponent(t){let n=Q(t);return!n||n.standalone?!1:(this.resolveNgModulesDecls(),!this.ownerNgModule.has(t))}};function Ut(e,t){for(let n of e)t.add(n)}var gr=new Iu;function sa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&aE(e,n,i.join(" "))}}function KO(e,t,n){let r=e.projection=[];for(let o=0;o{let t=class t{};t.__NG_ELEMENT_ID__=JO;let e=t;return e})();function JO(){let e=q();return tI(e,g())}var XO=oc,eI=class extends XO{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Mr(this._hostTNode,this._hostLView)}get injector(){return new Wt(this._hostTNode,this._hostLView)}get parentInjector(){let t=Td(this._hostTNode,this._hostLView);if(zv(t)){let n=Us(t,this._hostLView),r=Hs(t),o=n[E].data[r+8];return new Wt(o,n)}else return new Wt(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=eg(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-X}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=wn(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,In(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!co(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new Kt(Q(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let m=(s?l:this.parentInjector).get(dt,null);m&&(i=m)}let u=Q(c.componentType??{}),d=wn(this._lContainer,u?.id??null),p=d?.firstChild??null,f=c.create(l,o,p,i);return this.insertImpl(f.hostView,a,In(this._hostTNode,d)),f}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(_x(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[ie],l=new eI(c,c[ve],c[ie]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Or(s,o,i,r),t.attachToViewContainerRef(),Kg(hl(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=eg(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=Lo(this._lContainer,n);r&&(As(hl(this._lContainer),n),za(r[E],r))}detach(t){let n=this._adjustIndex(t,-1),r=Lo(this._lContainer,n);return r&&As(hl(this._lContainer),n)!=null?new Yt(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function eg(e){return e[Ls]}function hl(e){return e[Ls]||(e[Ls]=[])}function tI(e,t){let n,r=t[e.index];return De(r)?n=r:(n=yE(r,t,null,e),t[e.index]=n,Ja(t,n)),nI(n,t,e,r),new eI(n,e,t)}function eA(e,t){let n=e[x],r=n.createComment(""),o=Oe(t,e),i=Qa(n,o);return En(n,i,r,W_(n,o),!1),r}var nI=oI,cf=()=>!1;function rI(e,t,n){return cf(e,t,n)}function oI(e,t,n,r){if(e[pt])return;let o;n.type&8?o=U(r):o=eA(t,n),e[pt]=o}function tA(e,t,n){if(e[pt]&&e[No])return!0;let r=n[we],o=t.index-w;if(!r||Gs(t)||ui(r,o))return!1;let s=Jl(r,o),a=r.data[ko]?.[o],[c,l]=_O(s,a);return e[pt]=c,e[No]=l,!0}function nA(e,t,n,r){cf(e,n,t)||oI(e,t,n,r)}function rA(){nI=nA,cf=tA}var wu=class e{constructor(t){this.queryList=t,this.matches=null}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},Du=class e{constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let d=X;dt.trim())}function lI(e,t,n){e.queries===null&&(e.queries=new Cu),e.queries.track(new bu(t,n))}function lA(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function uf(e,t){return e.queries.getByIndex(t)}function uI(e,t){let n=e[E],r=uf(n,t);return r.crossesNgTemplate?Mu(n,e,t,[]):iI(n,e,r,t)}function dI(e){return typeof e=="function"&&e[Te]!==void 0}function uA(e){return null}function fI(e,t){ye("NgSignals");let n=Hh(e),r=n[Te];return t?.equal&&(r.equal=t.equal),n.set=o=>no(r,o),n.update=o=>Uh(r,o),n.asReadonly=pI.bind(n),n}function pI(){let e=this[Te];if(e.readonlyFn===void 0){let t=()=>this();t[Te]=e,e.readonlyFn=t}return e.readonlyFn}function hI(e){return dI(e)&&typeof e.set=="function"}function df(e,t){let n,r=Wc(()=>{n._dirtyCounter();let o=dA(n,e);if(t&&o===void 0)throw new D(-951,!1);return o});return n=r[Te],n._dirtyCounter=fI(0),n._flatValue=void 0,r}function mI(){return df(!0,!1)}function gI(){return df(!0,!0)}function vI(){return df(!1,!1)}function yI(e,t){let n=e[Te];n._lView=g(),n._queryIndex=t,n._queryList=lf(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function dA(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[M]&4)return t?void 0:H;let o=lf(n,r),i=uI(n,r);return o.reset(i,cy),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function tg(e,t){return mI()}function fA(e,t){return gI()}var pA=(tg.required=fA,tg);function hA(e,t){return vI()}function ng(e,t){return mI()}function mA(e,t){return gI()}var gA=(ng.required=mA,ng);function vA(e,t){return vI()}function EI(e){let t=Object.create($g),n=new Ao;t.value=e;function r(){return eo(t),rg(t.value),t.value}return r[Te]=t,r.asReadonly=pI.bind(r),r.set=o=>{t.equal(t.value,o)||(no(t,o),n.emit(o))},r.update=o=>{rg(t.value),r.set(o(t.value))},r.subscribe=n.subscribe.bind(n),r.destroyRef=n.destroyRef,r}function rg(e){if(e===Ta)throw new D(952,!1)}function og(e){return EI(e)}function yA(){return EI(Ta)}var EA=(og.required=yA,og),II=!0,Cn=class{},IA=Xt("ContentChildren",(e,t={})=>Z({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:II},t),Cn),wA=Xt("ContentChild",(e,t={})=>Z({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Cn),DA=Xt("ViewChildren",(e,t={})=>Z({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:II},t),Cn),CA=Xt("ViewChild",(e,t)=>Z({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Cn);function wI(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(NA))}return i}return vr.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(l=>{o.template=l}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let l=o.styles.length,u=o.styleUrls;o.styleUrls.forEach((d,p)=>{a.push(""),s.push(r(d).then(f=>{a[l+p]=f,u.splice(u.indexOf(d),1),u.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(l=>{a.push(l),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>_A(i));t.push(c)}),CI(),Promise.all(t).then(()=>{})}var vr=new Map,$o=new Set;function bA(e,t){DI(t)&&(vr.set(e,t),$o.add(e))}function MA(e){return $o.has(e)}function DI(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length||e.styleUrl)}function CI(){let e=vr;return vr=new Map,e}function TA(e){$o.clear(),e.forEach((t,n)=>$o.add(n)),vr=e}function xA(){return vr.size===0}function NA(e){return typeof e=="string"?e:e.text()}function _A(e){$o.delete(e)}var Tu=new Map,bI=!0;function SA(e,t,n){if(t&&t!==n&&bI)throw new Error(`Duplicate module registered for ${e} - ${me(t)} vs ${me(t.name)}`)}function ff(e,t){let n=Tu.get(t)||null;SA(t,n,e),Tu.set(t,e)}function MI(e){return Tu.get(e)}function OA(e){bI=!e}function TI(e,t,n){let r=g(),o=z(),i=Oe(o,r);if(o.type===2&&t.toLowerCase()==="iframe"){let s=i;s.src="",s.srcdoc=xr(""),pi(r[x],s);let a=!1;throw new D(-910,a)}return e}function xI(e){return Object.getPrototypeOf(e.prototype).constructor}function pf(e){let t=xI(e.type),n=!0,r=[e];for(;t;){let o;if(Qe(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new D(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=ms(e.inputs),s.inputTransforms=ms(e.inputTransforms),s.declaredInputs=ms(e.declaredInputs),s.outputs=ms(e.outputs);let a=o.hostBindings;a&&LA(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&PA(e,c),l&&kA(e,l),AA(e,o),CT(e.outputs,o.outputs),Qe(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=bo(o.hostAttrs,n=bo(n,o.hostAttrs))}}function ms(e){return e===ut?{}:e===H?[]:e}function PA(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function kA(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function LA(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}var FA=["providersResolver"],jA=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function NI(e){let t=xI(e.type),n;Qe(e)?n=t.\u0275cmp:n=t.\u0275dir;let r=e;for(let o of FA)r[o]=n[o];if(Qe(n))for(let o of jA)r[o]=n[o]}function _I(e){let t=n=>{let r=(Array.isArray(e)?e:e()).map(o=>typeof o=="function"?{directive:V(o),inputs:ut,outputs:ut}:{directive:V(o.directive),inputs:ig(o.inputs),outputs:ig(o.outputs)});n.hostDirectives===null?(n.findHostDirectiveDefs=SI,n.hostDirectives=r):n.hostDirectives.unshift(...r)};return t.ngInherit=!0,t}function SI(e,t,n){if(e.hostDirectives!==null)for(let r of e.hostDirectives){let o=Pe(r.directive);VA(o.declaredInputs,r.inputs),SI(o,t,n),n.set(o,r),t.push(o)}}function ig(e){if(e===void 0||e.length===0)return ut;let t={};for(let n=0;nn()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},Er=class extends ua{constructor(t){super(),this.moduleType=t}create(t){return new yr(this.moduleType,t,[])}};function UA(e,t,n){return new yr(e,t,n)}var da=class extends Jt{constructor(t){super(),this.componentFactoryResolver=new aa(this),this.instance=null;let n=new To([...t.providers,{provide:Jt,useValue:this},{provide:Dn,useValue:this.componentFactoryResolver}],t.parent||ka(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function hf(e,t,n=null){return new da({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var $A=(()=>{let t=class t{constructor(){this.cachedInjectors=new Map}getOrCreateInjector(r,o,i,s){if(!this.cachedInjectors.has(r)){let a=i.length>0?hf(i,o,s):null;this.cachedInjectors.set(r,a)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=B({token:t,providedIn:"environment",factory:()=>new t});let e=t;return e})();function fa(e){return mf(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function BA(e,t,n){let r=e[Symbol.iterator](),o=t[Symbol.iterator]();for(;;){let i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done||!n(i.value,s.value))return!1}}function qA(e,t){if(Array.isArray(e))for(let n=0;n{for(let t of this.callbacks)t()}}};function HI(e,t){let n=gl.get(e);if(!n){n=new Wo,gl.set(e,n);for(let r of cg)e.addEventListener(r,n.listener,pa)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){gl.delete(e);for(let i of cg)e.removeEventListener(i,o,pa)}}}function UI(e,t){let n=ml.get(e);if(!n){n=new Wo,ml.set(e,n);for(let r of lg)e.addEventListener(r,n.listener,pa)}return n.callbacks.add(t),()=>{let{callbacks:r,listener:o}=n;if(r.delete(t),r.size===0){for(let i of lg)e.removeEventListener(i,o,pa);ml.delete(e)}}}function $I(e,t,n){let r=n.get(ee),o=Qn.get(e);return Zn=Zn||r.runOutsideAngular(()=>new IntersectionObserver(i=>{for(let s of i)s.isIntersecting&&Qn.has(s.target)&&r.run(Qn.get(s.target).listener)})),o||(o=new Wo,r.runOutsideAngular(()=>Zn.observe(e)),Qn.set(e,o),vl++),o.callbacks.add(t),()=>{Qn.has(e)&&(o.callbacks.delete(t),o.callbacks.size===0&&(Zn?.unobserve(e),Qn.delete(e),vl--),vl===0&&(Zn?.disconnect(),Zn=null))}}function eR(e,t,n){return n==null?e:n>=0?Cv(n,e):e[t.index][X]??null}function tR(e,t){return ii(w+t,e)}function Pr(e,t,n,r,o,i,s){let a=e[de];function c(){if(Fl(e))return;let l=kn(e,t),u=l[sc];if(u!==qo.Initial&&u!==K.Placeholder)return;let d=eR(e,t,r);if(!d){na(c,{injector:a});return}if(Fl(d))return;let p=tR(d,n),f=o(p,()=>{e!==d&&Ed(d,f),i()},a);e!==d&&ja(d,f),ac(s,l,f)}na(c,{injector:a})}function BI(e,t){let r=t[de].get(oR),o=()=>r.remove(e);return r.add(e),o}var nR=()=>typeof requestIdleCallback<"u"?requestIdleCallback:setTimeout,rR=()=>typeof requestIdleCallback<"u"?cancelIdleCallback:clearTimeout,oR=(()=>{let t=class t{constructor(){this.executingCallbacks=!1,this.idleId=null,this.current=new Set,this.deferred=new Set,this.ngZone=b(ee),this.requestIdleCallbackFn=nR().bind(globalThis),this.cancelIdleCallbackFn=rR().bind(globalThis)}add(r){(this.executingCallbacks?this.deferred:this.current).add(r),this.idleId===null&&this.scheduleIdleCallback()}remove(r){let{current:o,deferred:i}=this;o.delete(r),i.delete(r),o.size===0&&i.size===0&&this.cancelIdleCallback()}scheduleIdleCallback(){let r=()=>{this.cancelIdleCallback(),this.executingCallbacks=!0;for(let o of this.current)o();if(this.current.clear(),this.executingCallbacks=!1,this.deferred.size>0){for(let o of this.deferred)this.current.add(o);this.deferred.clear(),this.scheduleIdleCallback()}};this.idleId=this.requestIdleCallbackFn(()=>this.ngZone.run(r))}cancelIdleCallback(){this.idleId!==null&&(this.cancelIdleCallbackFn(this.idleId),this.idleId=null)}ngOnDestroy(){this.cancelIdleCallback(),this.current.clear(),this.deferred.clear()}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})();function qI(e){return(t,n)=>WI(e,t,n)}function WI(e,t,n){let o=n[de].get(iR),i=()=>o.remove(t);return o.add(e,t),i}var iR=(()=>{let t=class t{constructor(){this.executingCallbacks=!1,this.timeoutId=null,this.invokeTimerAt=null,this.current=[],this.deferred=[]}add(r,o){let i=this.executingCallbacks?this.deferred:this.current;this.addToQueue(i,Date.now()+r,o),this.scheduleTimer()}remove(r){let{current:o,deferred:i}=this;this.removeFromQueue(o,r)===-1&&this.removeFromQueue(i,r),o.length===0&&i.length===0&&this.clearTimeout()}addToQueue(r,o,i){let s=r.length;for(let a=0;ao){s=a;break}Jg(r,s,o,i)}removeFromQueue(r,o){let i=-1;for(let s=0;s-1&&Im(r,i,2),i}scheduleTimer(){let r=()=>{this.clearTimeout(),this.executingCallbacks=!0;let i=[...this.current],s=Date.now();for(let c=0;c=0&&Im(this.current,0,a+1),this.executingCallbacks=!1,this.deferred.length>0){for(let c=0;c0){let i=Date.now(),s=this.current[0];if(this.timeoutId===null||this.invokeTimerAt&&this.invokeTimerAt-s>16){this.clearTimeout();let a=Math.max(s-i,16);this.invokeTimerAt=s,this.timeoutId=setTimeout(r,a)}}}clearTimeout(){this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}ngOnDestroy(){this.clearTimeout(),this.current.length=0,this.deferred.length=0}};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new t});let e=t;return e})(),sR=new P("DEFER_BLOCK_DEPENDENCY_INTERCEPTOR"),GI=new P("");function yf(e){return e.get(GI,null,{optional:!0})?.behavior===vf.Manual?!1:_e(e)}var _u=null;function zI(e,t,n,r){let o=e.consts;n!=null&&(t.placeholderBlockConfig=Ue(o,n)),r!=null&&(t.loadingBlockConfig=Ue(o,r)),_u===null&&(_u=cR)}function QI(e,t,n,r,o,i,s,a,c){let l=g(),u=k(),d=e+w,p=Bo(l,u,e,null,0,0);if(u.firstCreatePass){ye("NgDefer");let v={primaryTmplIndex:t,loadingTmplIndex:r??null,placeholderTmplIndex:o??null,errorTmplIndex:i??null,placeholderBlockConfig:null,loadingBlockConfig:null,dependencyResolverFn:n??null,loadingState:oe.NOT_STARTED,loadingPromise:null,providers:null};c?.(u,v,a,s),YA(u,d,v)}let f=l[d];rI(f,p,l);let h=[null,qo.Initial,null,null,null,null];ZA(l,d,h);let m=()=>jI(h);ac(0,h,()=>Ed(l,m)),ja(l,m)}function ZI(e){let t=g(),n=Je();if(ne(t,n,e)){let r=A(null);try{let o=!!e,i=z(),a=kn(t,i)[sc];o===!1&&a===qo.Initial?kr(t,i):o===!0&&(a===qo.Initial||a===K.Placeholder)&&Lr(t,i)}finally{A(r)}}}function YI(e){let t=g(),n=Je();if(ne(t,n,e)){let r=A(null);try{let o=!!e,i=t[E],s=z(),a=Fe(i,s);o===!0&&a.loadingState===oe.NOT_STARTED&&yi(a,t,s)}finally{A(r)}}}function KI(){lw(BI)}function JI(){uw(BI)}function XI(){let e=g(),t=q(),n=e[E],r=e[de],o=Fe(n,t);(!yf(r)||o.loadingTmplIndex===null)&&kr(e,t),Lr(e,t)}function ew(){let e=g(),t=q(),n=e[E],r=Fe(n,t);r.loadingState===oe.NOT_STARTED&&lc(r,e,t)}function tw(e){lw(qI(e))}function nw(e){uw(qI(e))}function rw(e,t){let n=g(),r=q();kr(n,r),Pr(n,r,e,t,UI,()=>Lr(n,r),0)}function ow(e,t){let n=g(),r=q(),o=n[E],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Pr(n,r,e,t,UI,()=>yi(i,n,r),1)}function iw(e,t){let n=g(),r=q();kr(n,r),Pr(n,r,e,t,HI,()=>Lr(n,r),0)}function sw(e,t){let n=g(),r=q(),o=n[E],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Pr(n,r,e,t,HI,()=>yi(i,n,r),1)}function aw(e,t){let n=g(),r=q();kr(n,r),Pr(n,r,e,t,$I,()=>Lr(n,r),0)}function cw(e,t){let n=g(),r=q(),o=n[E],i=Fe(o,r);i.loadingState===oe.NOT_STARTED&&Pr(n,r,e,t,$I,()=>yi(i,n,r),1)}function lw(e){let t=g(),n=q();if(kr(t,n),_e(t[de])){let r=e(()=>Lr(t,n),t),o=kn(t,n);ac(0,o,r)}}function uw(e){let t=g();if(_e(t[de])){let n=q(),r=t[E],o=Fe(r,n);if(o.loadingState===oe.NOT_STARTED){let i=kn(t,n),a=e(()=>yi(o,t,n),t);ac(1,i,a)}}}function Mt(e,t,n,r=!1){let o=n[ie],i=o[E];if(Fl(o))return;let s=kn(o,t),a=s[sc];if(dg(a,e)&&dg(s[cr]??-1,e)){let c=o[de],l=Fe(i,t),d=!r&&_e(c)&&(VI(l)!==null||Nu(l,K.Loading)!==null||Nu(l,K.Placeholder))?_u:dw;try{d(e,s,n,t,o)}catch(p){Xa(o,p)}}}function aR(e,t){return e.injector.__ngOutletInjector(t)}function dw(e,t,n,r,o){let i=KA(e,o,r);if(i!==null){t[sc]=e;let s=o[E],a=i+w,c=si(s,a),l=0;nf(n,l);let u;if(e===K.Complete){let f=Fe(s,r),h=f.providers;if(h&&h.length>0){let m=o[de],v=Qx(m),y=v?m:m.get(dt);u=y.get($A).getOrCreateInjector(f,y,h,""),v&&(u=aR(m,u))}}let d=wn(n,c.tView.ssrId),p=Sr(o,c,null,{dehydratedView:d,injector:u});Or(n,p,l,In(c,d)),ec(p,2)}}function cR(e,t,n,r,o){let i=Date.now(),s=o[E],a=Fe(s,r);if(t[uo]===null||t[uo]<=i){t[uo]=null;let c=VI(a),l=t[gs]!==null;if(e===K.Loading&&c!==null&&!l){t[cr]=e;let u=ug(c,t,r,n,o);t[gs]=u}else{e>K.Loading&&l&&(t[gs](),t[gs]=null,t[cr]=null),dw(e,t,n,r,o);let u=Nu(a,e);u!==null&&(t[uo]=i+u,ug(u,t,r,n,o))}}else t[cr]=e}function ug(e,t,n,r,o){return WI(e,()=>{let s=t[cr];t[uo]=null,t[cr]=null,s!==null&&Mt(s,n,r)},o)}function dg(e,t){return e{let d=!1,p=[],f=[];for(let h of u)if(h.status==="fulfilled"){let m=h.value,v=Q(m)||Pe(m);if(v)p.push(v);else{let y=ke(m);y&&f.push(y)}}else{d=!0;break}if(e.loadingPromise=null,c.remove(l),d){if(e.loadingState=oe.FAILED,e.errorTmplIndex===null){let h="",m=new D(750,!1);Xa(t,m)}}else{e.loadingState=oe.COMPLETE;let h=s.tView;if(p.length>0){h.directiveRegistry=ag(h.directiveRegistry,p);let m=p.map(y=>y.type),v=ud(!1,...m);e.providers=v}f.length>0&&(h.pipeRegistry=ag(h.pipeRegistry,f))}}),e.loadingPromise):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=oe.COMPLETE,c.remove(l)}),e.loadingPromise)}function kr(e,t){let n=e[t.index];Mt(K.Placeholder,t,n)}function fg(e,t,n){e.loadingPromise.then(()=>{e.loadingState===oe.COMPLETE?Mt(K.Complete,t,n):e.loadingState===oe.FAILED&&Mt(K.Error,t,n)})}function Lr(e,t){let n=e[E],r=e[t.index],o=e[de];if(!yf(o))return;let i=kn(e,t),s=Fe(n,t);switch(jI(i),s.loadingState){case oe.NOT_STARTED:Mt(K.Loading,t,r),lc(s,e,t),s.loadingState===oe.IN_PROGRESS&&fg(s,t,r);break;case oe.IN_PROGRESS:Mt(K.Loading,t,r),fg(s,t,r);break;case oe.COMPLETE:Mt(K.Complete,t,r);break;case oe.FAILED:Mt(K.Error,t,r);break;default:}}function Ef(e,t,n,r){let o=g(),i=Je();if(ne(o,i,t)){let s=k(),a=z();gt(a,o,e,t,n,r)}return Ef}function Fr(e,t){let n=!1,r=St();for(let i=1;i>17&32767}function lR(e){return(e&2)==2}function uR(e,t){return e&131071|t<<17}function Su(e){return e|2}function Ir(e){return(e&131068)>>2}function yl(e,t){return e&-131069|t<<2}function dR(e){return(e&1)===1}function Ou(e){return e|1}function fR(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Mn(s),c=Ir(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let d=n;u=d[1],(u===null||ti(d,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=Mn(e[a+1]);e[r+1]=vs(p,a),p!==0&&(e[p+1]=yl(e[p+1],r)),e[a+1]=uR(e[a+1],r)}else e[r+1]=vs(a,0),a!==0&&(e[a+1]=yl(e[a+1],r)),a=r;else e[r+1]=vs(c,0),a===0?a=r:e[c+1]=yl(e[c+1],r),c=r;l&&(e[r+1]=Su(e[r+1])),pg(e,u,r,!0),pg(e,u,r,!1),pR(t,u,e,r,i),s=vs(a,c),i?t.classBindings=s:t.styleBindings=s}function pR(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&ti(i,t)>=0&&(n[r+1]=Ou(n[r+1]))}function pg(e,t,n,r){let o=e[n+1],i=t===null,s=r?Mn(o):Ir(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];hR(c,t)&&(a=!0,e[s+1]=r?Ou(l):Su(l)),s=r?Mn(l):Ir(l)}a&&(e[n+1]=r?Su(o):Ou(o))}function hR(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?ti(e,t)>=0:!1}var ce={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fw(e){return e.substring(ce.key,ce.keyEnd)}function mR(e){return e.substring(ce.value,ce.valueEnd)}function gR(e){return mw(e),pw(e,wr(e,0,ce.textEnd))}function pw(e,t){let n=ce.textEnd;return n===t?-1:(t=ce.keyEnd=yR(e,ce.key=t,n),wr(e,t,n))}function vR(e){return mw(e),hw(e,wr(e,0,ce.textEnd))}function hw(e,t){let n=ce.textEnd,r=ce.key=wr(e,t,n);return n===r?-1:(r=ce.keyEnd=ER(e,r,n),r=hg(e,r,n,58),r=ce.value=wr(e,r,n),r=ce.valueEnd=IR(e,r,n),hg(e,r,n,59))}function mw(e){ce.key=0,ce.keyEnd=0,ce.value=0,ce.valueEnd=0,ce.textEnd=e.length}function wr(e,t,n){for(;t32;)t++;return t}function ER(e,t,n){let r;for(;t=65&&(r&-33)<=90||r>=48&&r<=57);)t++;return t}function hg(e,t,n,r){return t=wr(e,t,n),t32&&(a=s),i=o,o=r,r=c&-33}return a}function mg(e,t,n,r){let o=-1,i=n;for(;i=0;n=hw(t,n))Ew(e,fw(t),mR(t))}function gw(e){tt(xR,yt,e,!0)}function yt(e,t){for(let n=gR(t);n>=0;n=pw(t,n))Le(e,fw(t),!0)}function et(e,t,n,r){let o=g(),i=k(),s=Ot(2);if(i.firstUpdatePass&&yw(i,e,s,r),t!==_&&ne(o,s,t)){let a=i.data[pe()];Iw(i,a,o,o[x],e,o[s+1]=_R(t,n),r,s)}}function tt(e,t,n,r){let o=k(),i=Ot(2);o.firstUpdatePass&&yw(o,null,i,r);let s=g();if(n!==_&&ne(s,i,n)){let a=o.data[pe()];if(ww(a,r)&&!vw(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=_l(c,n||"")),Au(o,a,s,n,r)}else NR(o,a,s,s[x],s[i+1],s[i+1]=TR(e,t,n),r,i)}}function vw(e,t){return t>=e.expandoStartIndex}function yw(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[pe()],s=vw(e,n);ww(i,r)&&t===null&&!s&&(t=!1),t=DR(o,i,t,r),fR(o,i,t,n,s,r)}}function DR(e,t,n,r){let o=Dd(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=El(null,e,t,n,r),n=Go(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=El(o,e,t,n,r),i===null){let c=CR(e,t,r);c!==void 0&&Array.isArray(c)&&(c=El(null,e,t,c[1],r),c=Go(c,t.attrs,r),bR(e,t,r,c))}else i=MR(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function CR(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Ir(r)!==0)return e[Mn(r)]}function bR(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Mn(o)]=r}function MR(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,p=n[o+1];p===_&&(p=d?H:void 0);let f=d?nl(p,r):u===r?p:void 0;if(l&&!ha(f)&&(f=nl(c,r)),ha(f)&&(a=f,s))return a;let h=e[o+1];o=s?Mn(h):Ir(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=nl(c,r))}return a}function ha(e){return e!==void 0}function _R(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=me(At(e)))),e}function ww(e,t){return(e.flags&(t?8:16))!==0}function Dw(e,t,n){let r=g(),o=jr(r,e,t,n);tt(Le,yt,o,!0)}function Cw(e,t,n,r,o){let i=g(),s=Vr(i,e,t,n,r,o);tt(Le,yt,s,!0)}function bw(e,t,n,r,o,i,s){let a=g(),c=Hr(a,e,t,n,r,o,i,s);tt(Le,yt,c,!0)}function Mw(e,t,n,r,o,i,s,a,c){let l=g(),u=Ur(l,e,t,n,r,o,i,s,a,c);tt(Le,yt,u,!0)}function Tw(e,t,n,r,o,i,s,a,c,l,u){let d=g(),p=$r(d,e,t,n,r,o,i,s,a,c,l,u);tt(Le,yt,p,!0)}function xw(e,t,n,r,o,i,s,a,c,l,u,d,p){let f=g(),h=Br(f,e,t,n,r,o,i,s,a,c,l,u,d,p);tt(Le,yt,h,!0)}function Nw(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h){let m=g(),v=qr(m,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h);tt(Le,yt,v,!0)}function _w(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v){let y=g(),C=Wr(y,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v);tt(Le,yt,C,!0)}function Sw(e){let t=g(),n=Fr(t,e);tt(Le,yt,n,!0)}function Ow(){return g()[ue][J]}var Ru=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function Il(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function SR(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],d=Il(i,l,i,u,n);if(d!==0){d<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),f=t[c],h=Il(s,p,c,f,n);if(h!==0){h<0&&e.updateValue(s,f),s--,c--;continue}let m=n(i,l),v=n(s,p),y=n(i,u);if(Object.is(y,v)){let C=n(c,f);Object.is(C,m)?(e.swap(i,s),e.updateValue(s,f),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new ma,o??=yg(e,i,s,n),Pu(e,r,i,y))e.updateValue(i,u),i++,s++;else if(o.has(y))r.set(m,e.detach(i)),s--;else{let C=e.create(i,t[i]);e.attach(i,C),i++,s++}}for(;i<=c;)vg(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),d=l.value,p=Il(i,u,i,d,n);if(p!==0)p<0&&e.updateValue(i,d),i++,l=c.next();else{r??=new ma,o??=yg(e,i,s,n);let f=n(i,d);if(Pu(e,r,i,f))e.updateValue(i,d),i++,s++,l=c.next();else if(!o.has(f))e.attach(i,e.create(i,d)),i++,s++,l=c.next();else{let h=n(i,u);r.set(h,e.detach(i)),s--}}}for(;!l.done;)vg(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function Pu(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function vg(e,t,n,r,o){if(Pu(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function yg(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var ma=class{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function Aw(e,t){ye("NgControlFlow");let n=g(),r=Je(),o=n[r]!==_?n[r]:-1,i=o!==-1?ga(n,w+o):void 0,s=0;if(ne(n,r,e)){let a=A(null);try{if(i!==void 0&&nf(i,s),e!==-1){let c=w+e,l=ga(n,c),u=ju(n[E],c),d=wn(l,u.tView.ssrId),p=Sr(n,u,t,{dehydratedView:d});Or(l,p,s,In(u,d))}}finally{A(a)}}else if(i!==void 0){let a=CE(i,s);a!==void 0&&(a[J]=t)}}var ku=class{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-X}};function Rw(e){return e}function Pw(e,t){return t}var Lu=class{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function kw(e,t,n,r,o,i,s,a,c,l,u,d,p){ye("NgControlFlow");let f=g(),h=k(),m=c!==void 0,v=g(),y=a?s.bind(v[ue][J]):s,C=new Lu(m,y);v[w+e]=C,Bo(f,h,e+1,t,n,r,o,Ue(h.consts,i)),m&&Bo(f,h,e+2,c,l,u,d,Ue(h.consts,p))}var Fu=class extends Ru{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.operationsCounter=void 0,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-X}at(t){return this.getLView(t)[J].$implicit}attach(t,n){let r=n[we];this.needsIndexUpdate||=t!==this.length,Or(this.lContainer,n,t,In(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,OR(this.lContainer,t)}create(t,n){let r=wn(this.lContainer,this.templateTNode.tView.ssrId),o=Sr(this.hostLView,this.templateTNode,new ku(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){za(t[E],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[J].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(mt(!0),Ga(r,o,Bv()));function PR(e,t,n,r,o,i){let s=t[we],a=!s||On()||Rr(n)||ui(s,i);if(mt(a),a)return Ga(r,o,Bv());let c=mi(s,e,t,n);return Cy(s,i)&&qa(s,i,c.nextSibling),s&&(ly(n)||uy(c))&&_n(n)&&(Px(n),iE(c)),c}function kR(){Fw=PR}function LR(e,t,n,r,o){let i=t.consts,s=Ue(i,r),a=Pn(t,e,8,"ng-container",s);s!==null&&sa(a,s,!0);let c=Ue(i,o);return Jd(t,n,a,c),t.queries!==null&&t.queries.elementStart(t,a),a}function fc(e,t,n){let r=g(),o=k(),i=e+w,s=o.firstCreatePass?LR(i,o,r,t,n):o.data[i];Ye(s,!0);let a=jw(o,r,s,e);return r[i]=a,ai()&&Za(o,r,a,s),Ne(a,r),La(s)&&(Zd(o,r,s),Qd(o,s,r)),n!=null&&Yd(r,s),fc}function pc(){let e=q(),t=k();return Id()?wd():(e=e.parent,Ye(e,!1)),t.firstCreatePass&&(Ha(t,e),md(e)&&t.queries.elementEnd(e)),pc}function Rf(e,t,n){return fc(e,t,n),pc(),Rf}var jw=(e,t,n,r)=>(mt(!0),Bd(t[x],""));function FR(e,t,n,r){let o,i=t[we],s=!i||On()||Rr(n);if(mt(s),s)return Bd(t[x],"");let a=mi(i,e,t,n),c=Dy(i,r);return qa(i,r,a),o=rc(c,a),o}function jR(){jw=FR}function Vw(){return g()}function Pf(e,t,n){let r=g(),o=Je();if(ne(r,o,t)){let i=k(),s=z();Ae(i,s,r,e,t,r[x],n,!0)}return Pf}function kf(e,t,n){let r=g(),o=Je();if(ne(r,o,t)){let i=k(),s=z(),a=Dd(i.data),c=DE(a,s,r);Ae(i,s,r,e,t,c,n,!0)}return kf}var un=void 0;function VR(e){let t=e,n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return n===1&&r===0?1:5}var HR=["en",[["a","p"],["AM","PM"],un],[["AM","PM"],un,un],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],un,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],un,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",un,"{1} 'at' {0}",un],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",VR],lr={};function UR(e,t,n){typeof t!="string"&&(n=t,t=e[Dr.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),lr[t]=e,n&&(lr[t][Dr.ExtraData]=n)}function Lf(e){let t=qR(e),n=Eg(t);if(n)return n;let r=t.split("-")[0];if(n=Eg(r),n)return n;if(r==="en")return HR;throw new D(701,!1)}function $R(e){return Lf(e)[Dr.CurrencyCode]||null}function Hw(e){return Lf(e)[Dr.PluralCase]}function Eg(e){return e in lr||(lr[e]=Re.ng&&Re.ng.common&&Re.ng.common.locales&&Re.ng.common.locales[e]),lr[e]}function BR(){lr={}}var Dr=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Dr||{});function qR(e){return e.toLowerCase().replace(/_/g,"-")}var WR=["zero","one","two","few","many"];function GR(e,t){let n=Hw(t)(parseInt(e,10)),r=WR[n];return r!==void 0?r:"other"}var Tn="en-US",zR="USD",Uw={marker:"element"},$w={marker:"ICU"},Ct=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}(Ct||{}),Bw=Tn;function Ff(e){typeof e=="string"&&(Bw=e.toLowerCase().replace(/_/g,"-"))}function QR(){return Bw}var zo=0,go=0;function ZR(e){e&&(zo=zo|1<0){let r=e.data[n],o=Array.isArray(r)?r:r.update,i=St()-go-1;Gw(e,t,o,i,zo)}zo=0,go=0}function qw(e,t,n){let r=e[x];switch(n){case Node.COMMENT_NODE:return Bd(r,t);case Node.TEXT_NODE:return $d(r,t);case Node.ELEMENT_NODE:return Ga(r,t,null)}}var vo=(e,t,n,r)=>(mt(!0),qw(e,n,r));function KR(e,t,n,r){let o=e[we],i=t-w,s=!of()||!o||On()||ui(o,i);return mt(s),s?qw(e,n,r):FE(o,i)}function JR(){vo=KR}function XR(e,t,n,r){let o=e[x];for(let i=0;i>>Ct.SHIFT,d=e[u],p=!1;d===null&&(d=e[u]=vo(e,u,a,c?Node.COMMENT_NODE:Node.TEXT_NODE),p=ai()),l&&n!==null&&p&&En(o,n,d,r,!1)}}function Ww(e,t,n,r){let o=n[x],i=null,s;for(let a=0;a>>1,f=t[++a],h=t[++a];Xd(o,ii(p,n),null,null,f,h,null);break;default:}else switch(c){case $w:let l=t[++a],u=t[++a];if(n[u]===null){let f=n[u]=vo(n,u,l,Node.COMMENT_NODE);Ne(f,n)}break;case Uw:let d=t[++a],p=t[++a];if(n[p]===null){let f=n[p]=vo(n,p,d,Node.ELEMENT_NODE);Ne(f,n)}break;default:}}}function Gw(e,t,n,r,o){for(let i=0;i>>2;switch(u&3){case 1:let p=n[++l],f=n[++l],h=e.data[d];typeof h=="string"?Xd(t[x],t[d],null,h,p,c,f):Ae(e,h,t,p,c,t[x],f,!1);break;case 0:let m=t[d];m!==null&&Zy(t[x],m,c);break;case 2:eP(e,ho(e,d),t,c);break;case 3:Ig(e,ho(e,d),r,t);break}}}}else{let c=n[i+1];if(c>0&&(c&3)===3){let l=c>>>2,u=ho(e,l);t[u.currentCaseLViewIndex]<0&&Ig(e,u,r,t)}}i+=a}}function Ig(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(o!==null){let i=zo;o<0&&(o=r[t.currentCaseLViewIndex]=~o,i=-1),Gw(e,r,t.update[o],n,i)}}function eP(e,t,n,r){let o=tP(t,r);if(nc(t,n)!==o&&(zw(e,t,n),n[t.currentCaseLViewIndex]=o===null?null:~o,o!==null)){let s=n[t.anchorIdx];s&&Ww(e,t.create[o],n,s),DO(n,t.anchorIdx,o)}}function zw(e,t,n){let r=nc(t,n);if(r!==null){let o=t.remove[r];for(let i=0;i0){let a=ii(s,n);a!==null&&pi(n[x],a)}else zw(e,ho(e,~s),n)}}}function tP(e,t){let n=e.cases.indexOf(t);if(n===-1)switch(e.type){case 1:{let r=GR(t,QR());n=e.cases.indexOf(r),n===-1&&r!=="other"&&(n=e.cases.indexOf("other"));break}case 0:{n=e.cases.indexOf("other");break}}return n===-1?null:n}var va=/�(\d+):?\d*�/gi,nP=/({\s*�\d+:?\d*�\s*,\s*\S{6}\s*,[\s\S]*})/gi,rP=/�(\d+)�/,Qw=/^\s*(�\d+:?\d*�)\s*,\s*(select|plural)\s*,/,yo="\uFFFD",oP=/�\/?\*(\d+:\d+)�/gi,iP=/�(\/?[#*]\d+):?\d*�/gi,sP=/\uE500/g;function aP(e){return e.replace(sP," ")}function cP(e,t,n,r,o,i){let s=Oo(),a=[],c=[],l=[[]],u=[[]];o=fP(o,i);let d=aP(o).split(iP);for(let p=0;p`}}let h=[];u.push(h),a=hP(h,t,c,n,r,o,i.cases[d],p.join(""),f)|a}a&&vP(r,a,s),e.push({kind:3,index:s,cases:u,currentCaseLViewIndex:c.currentCaseLViewIndex})}function pP(e){let t=[],n=[],r=1,o=0;e=e.replace(Qw,function(s,a,c){return c==="select"?r=0:r=1,o=parseInt(a.slice(1),10),""});let i=Vu(e);for(let s=0;sn.length&&n.push(c)}return{type:r,mainBinding:o,cases:t,values:n}}function Vu(e){if(!e)return[];let t=0,n=[],r=[],o=/[{}]/g;o.lastIndex=0;let i;for(;i=o.exec(e);){let a=i.index;if(i[0]=="}"){if(n.pop(),n.length==0){let c=e.substring(t,a);Qw.test(c)?r.push(pP(c)):r.push(c),t=a+1}}else{if(n.length==0){let c=e.substring(t,a);r.push(c),t=a+1}n.push("{")}}let s=e.substring(t);return r.push(s),r}function hP(e,t,n,r,o,i,s,a,c){let l=[],u=[],d=[];n.cases.push(s),n.create.push(l),n.remove.push(u),n.update.push(d);let f=Ay(Tr()).getInertBodyElement(a),h=cu(f)||f;return h?Jw(e,t,n,r,o,l,u,d,h,i,c,0):0}function Jw(e,t,n,r,o,i,s,a,c,l,u,d){let p=0,f=c.firstChild;for(;f;){let h=hi(t,r,1,null);switch(f.nodeType){case Node.ELEMENT_NODE:let m=f,v=m.tagName.toLowerCase();if(su.hasOwnProperty(v)){wl(i,Uw,v,l,h),t.data[h]=v;let G=m.attributes;for(let se=0;se{let c=s||a,l=r[c]||[];if(l.length||(c.split("|").forEach(m=>{let v=m.match(MP),y=v?parseInt(v[1],10):Cg,C=bP.test(m);l.push([y,C,m])}),r[c]=l),!l.length)throw new Error(`i18n postprocess: unmatched placeholder - ${c}`);let u=o[o.length-1],d=0;for(let m=0;mt.hasOwnProperty(i)?`${o}${t[i]}${c}`:r),n=n.replace(DP,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(CP,(r,o)=>{if(t.hasOwnProperty(o)){let i=t[o];if(!i.length)throw new Error(`i18n postprocess: unmatched ICU - ${r} with key: ${o}`);return i.shift()}return r})),n}function jf(e,t,n=-1){let r=k(),o=g(),i=w+e,s=Ue(r.consts,t),a=Oo();if(r.firstCreatePass&&cP(r,a===null?0:a.index,o,i,s,n),r.type===2){let p=o[ue];p[M]|=32}else o[M]|=32;let c=r.data[i],l=a===o[ve]?null:a,u=Jy(r,l,o),d=a&&a.type&8?o[a.index]:null;fO(o,i,a,n),XR(o,c.create,u,d),Pv(!0)}function Vf(){Pv(!1)}function Xw(e,t,n){jf(e,t,n),Vf()}function eD(e,t){let n=k(),r=Ue(n.consts,t);uP(n,e+w,r)}function Hf(e){let t=g();return ZR(ne(t,Je(),e)),Hf}function tD(e){YR(k(),g(),e+w)}function nD(e,t={}){return TP(e,t)}var rD=(e,t,n)=>{};function bg(e){rD=e}function Uf(e,t,n,r){let o=g(),i=k(),s=q();return Bf(i,o,o[x],s,e,t,r),Uf}function $f(e,t){let n=q(),r=g(),o=k(),i=Dd(o.data),s=DE(i,n,r);return Bf(o,r,s,n,e,t),$f}function xP(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Bf(e,t,n,r,o,i,s){let a=La(r),l=e.firstCreatePass&&wE(e),u=t[J],d=IE(t),p=!0;if(r.type&3||s){let m=Oe(r,t),v=s?s(m):m,y=d.length,C=s?G=>s(U(G[r.index])):r.index,F=null;if(!s&&a&&(F=xP(e,t,o,r.index)),F!==null){let G=F.__ngLastListenerFn__||F;G.__ngNextListenerFn__=i,F.__ngLastListenerFn__=i,p=!1}else{i=Tg(r,t,u,i),rD(m,o,i);let G=n.listen(v,o,i);d.push(i,G),l&&l.push(o,C,y,y+1)}}else i=Tg(r,t,u,i);let f=r.outputs,h;if(p&&f!==null&&(h=f[o])){let m=h.length;if(m)for(let v=0;v-1?Ze(e.index,t):t;ec(s,5);let a=Mg(t,n,r,i),c=o.__ngNextListenerFn__;for(;c;)a=Mg(t,n,c,i)&&a,c=c.__ngNextListenerFn__;return a}}function oD(e=1){return Hx(e)}function NP(e,t){let n=null,r=YT(e);for(let o=0;o=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function hD(e){let t=Ov();return Sn(t,w+e)}function mD(e,t,n){let r=g(),o=jr(r,e,t,n);Xe(o)}function gD(e,t,n,r,o){let i=g(),s=Vr(i,e,t,n,r,o);Xe(s)}function vD(e,t,n,r,o,i,s){let a=g(),c=Hr(a,e,t,n,r,o,i,s);Xe(c)}function yD(e,t,n,r,o,i,s,a,c){let l=g(),u=Ur(l,e,t,n,r,o,i,s,a,c);Xe(u)}function ED(e,t,n,r,o,i,s,a,c,l,u){let d=g(),p=$r(d,e,t,n,r,o,i,s,a,c,l,u);Xe(p)}function ID(e,t,n,r,o,i,s,a,c,l,u,d,p){let f=g(),h=Br(f,e,t,n,r,o,i,s,a,c,l,u,d,p);Xe(h)}function wD(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h){let m=g(),v=qr(m,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h);Xe(v)}function DD(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v){let y=g(),C=Wr(y,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v);Xe(C)}function CD(e){let t=g(),n=Fr(t,e);Xe(n)}function Xf(e,t,n,r,o){let i=g(),s=jr(i,t,n,r);return et(e,s,o,!1),Xf}function ep(e,t,n,r,o,i,s){let a=g(),c=Vr(a,t,n,r,o,i);return et(e,c,s,!1),ep}function tp(e,t,n,r,o,i,s,a,c){let l=g(),u=Hr(l,t,n,r,o,i,s,a);return et(e,u,c,!1),tp}function np(e,t,n,r,o,i,s,a,c,l,u){let d=g(),p=Ur(d,t,n,r,o,i,s,a,c,l);return et(e,p,u,!1),np}function rp(e,t,n,r,o,i,s,a,c,l,u,d,p){let f=g(),h=$r(f,t,n,r,o,i,s,a,c,l,u,d);return et(e,h,p,!1),rp}function op(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h){let m=g(),v=Br(m,t,n,r,o,i,s,a,c,l,u,d,p,f);return et(e,v,h,!1),op}function ip(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v){let y=g(),C=qr(y,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m);return et(e,C,v,!1),ip}function sp(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v,y,C){let F=g(),G=Wr(F,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v,y);return et(e,G,C,!1),sp}function ap(e,t,n){let r=g(),o=Fr(r,t);return et(e,o,n,!1),ap}function bD(e,t=""){let n=g(),r=k(),o=e+w,i=r.firstCreatePass?Pn(r,o,1,t,null):r.data[o],s=MD(r,n,i,t,e);n[o]=s,ai()&&Za(r,n,s,i),Ye(i,!1)}var MD=(e,t,n,r,o)=>(mt(!0),$d(t[x],r));function SP(e,t,n,r,o){let i=t[we],s=!i||On()||Rr(n)||ui(i,o);return mt(s),s?$d(t[x],r):mi(i,e,t,n)}function OP(){MD=SP}function cp(e){return gc("",e,""),cp}function gc(e,t,n){let r=g(),o=jr(r,e,t,n);return o!==_&&Pt(r,pe(),o),gc}function lp(e,t,n,r,o){let i=g(),s=Vr(i,e,t,n,r,o);return s!==_&&Pt(i,pe(),s),lp}function up(e,t,n,r,o,i,s){let a=g(),c=Hr(a,e,t,n,r,o,i,s);return c!==_&&Pt(a,pe(),c),up}function dp(e,t,n,r,o,i,s,a,c){let l=g(),u=Ur(l,e,t,n,r,o,i,s,a,c);return u!==_&&Pt(l,pe(),u),dp}function fp(e,t,n,r,o,i,s,a,c,l,u){let d=g(),p=$r(d,e,t,n,r,o,i,s,a,c,l,u);return p!==_&&Pt(d,pe(),p),fp}function pp(e,t,n,r,o,i,s,a,c,l,u,d,p){let f=g(),h=Br(f,e,t,n,r,o,i,s,a,c,l,u,d,p);return h!==_&&Pt(f,pe(),h),pp}function hp(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h){let m=g(),v=qr(m,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h);return v!==_&&Pt(m,pe(),v),hp}function mp(e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v){let y=g(),C=Wr(y,e,t,n,r,o,i,s,a,c,l,u,d,p,f,h,m,v);return C!==_&&Pt(y,pe(),C),mp}function gp(e){let t=g(),n=Fr(t,e);return n!==_&&Pt(t,pe(),n),gp}function vp(e,t,n){hI(t)&&(t=t());let r=g(),o=Je();if(ne(r,o,t)){let i=k(),s=z();Ae(i,s,r,e,t,r[x],n,!1)}return vp}function TD(e,t){let n=hI(e);return n&&e.set(t),n}function yp(e,t){let n=g(),r=k(),o=q();return Bf(r,n,n[x],o,e,t),yp}var xD={};function Ep(e){let t=k(),n=g(),r=e+w,o=Pn(t,r,128,null,null);return Ye(o,!1),mc(t,n,r,xD),Ep}function ND(e){ye("NgLet");let t=k(),n=g(),r=pe();return mc(t,n,r,e),e}function _D(e){let t=Ov(),n=Sn(t,w+e);if(n===xD)throw new D(314,!1);return n}function AP(e,t,n){let r=k();if(r.firstCreatePass){let o=Qe(e);Hu(n,r.data,r.blueprint,o,!0),Hu(t,r.data,r.blueprint,o,!1)}}function Hu(e,t,n,r,o){if(e=V(e),Array.isArray(e))for(let i=0;i>20;if(dr(e)||!e.multi){let f=new vn(l,o,_r),h=Cl(c,t,o?u:u+p,d);h===-1?(Ul(Bs(a,s),i,c),Dl(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(f),s.push(f)):(n[h]=f,s[h]=f)}else{let f=Cl(c,t,u+p,d),h=Cl(c,t,u,u+p),m=f>=0&&n[f],v=h>=0&&n[h];if(o&&!v||!o&&!m){Ul(Bs(a,s),i,c);let y=kP(o?PP:RP,n.length,o,r,l);!o&&v&&(n[h].providerFactory=y),Dl(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(y),s.push(y)}else{let y=SD(n[o?h:f],l,!o&&r);Dl(i,e,f>-1?f:h,y)}!o&&r&&v&&n[h].componentProviders++}}}function Dl(e,t,n,r){let o=dr(t),i=ux(t);if(o||i){let c=(i?V(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function SD(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Cl(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>AP(r,o?o(e):e,t)}}var LP=(()=>{let t=class t{constructor(r){this._injector=r,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(r){if(!r.standalone)return null;if(!this.cachedInjectors.has(r)){let o=ud(!1,r.type),i=o.length>0?hf([o],this._injector,`Standalone[${r.type.name}]`):null;this.cachedInjectors.set(r,i)}return this.cachedInjectors.get(r)}ngOnDestroy(){try{for(let r of this.cachedInjectors.values())r!==null&&r.destroy()}finally{this.cachedInjectors.clear()}}};t.\u0275prov=B({token:t,providedIn:"environment",factory:()=>new t(ge(dt))});let e=t;return e})();function AD(e){ye("NgStandalone"),e.getStandaloneInjector=t=>t.get(LP).getOrCreateStandaloneInjector(e)}function RD(e,t,n){let r=e.\u0275cmp;r.directiveDefs=Ps(t,!1),r.pipeDefs=Ps(n,!0)}function PD(e,t){return ht(()=>{let n=ze(e,!0);n.declarations=ys(t.declarations||H),n.imports=ys(t.imports||H),n.exports=ys(t.exports||H),t.bootstrap&&(n.bootstrap=ys(t.bootstrap)),gr.registerNgModule(e,t)})}function ys(e){if(typeof e=="function")return e;let t=st(e);return t.some(Na)?()=>t.map(V).map(xg):t.map(xg)}function xg(e){return af(e)?e.ngModule:e}var Ns="__ngAsyncComponentMetadataFn__";function FP(e){return e[Ns]??null}function kD(e,t,n){let r=e;return r[Ns]=()=>Promise.all(t()).then(o=>(n(...o),r[Ns]=null,o)),r[Ns]}function Ip(e,t,n,r){return ht(()=>{let o=e;t!==null&&(o.hasOwnProperty("decorators")&&o.decorators!==void 0?o.decorators.push(...t):o.decorators=t),n!==null&&(o.ctorParameters=n),r!==null&&(o.hasOwnProperty("propDecorators")&&o.propDecorators!==void 0?o.propDecorators=Z(Z({},o.propDecorators),r):o.propDecorators=r)})}function LD(e,t,n){let r=Ce()+e,o=g();return o[r]===_?vt(o,r,n?t.call(n):t()):vi(o,r)}function FD(e,t,n,r){return GD(g(),Ce(),e,t,n,r)}function jD(e,t,n,r,o){return zD(g(),Ce(),e,t,n,r,o)}function VD(e,t,n,r,o,i){return QD(g(),Ce(),e,t,n,r,o,i)}function HD(e,t,n,r,o,i,s){return ZD(g(),Ce(),e,t,n,r,o,i,s)}function UD(e,t,n,r,o,i,s,a){let c=Ce()+e,l=g(),u=$e(l,c,n,r,o,i);return ne(l,c+4,s)||u?vt(l,c+5,a?t.call(a,n,r,o,i,s):t(n,r,o,i,s)):vi(l,c+5)}function $D(e,t,n,r,o,i,s,a,c){let l=Ce()+e,u=g(),d=$e(u,l,n,r,o,i);return bn(u,l+4,s,a)||d?vt(u,l+6,c?t.call(c,n,r,o,i,s,a):t(n,r,o,i,s,a)):vi(u,l+6)}function BD(e,t,n,r,o,i,s,a,c,l){let u=Ce()+e,d=g(),p=$e(d,u,n,r,o,i);return ic(d,u+4,s,a,c)||p?vt(d,u+7,l?t.call(l,n,r,o,i,s,a,c):t(n,r,o,i,s,a,c)):vi(d,u+7)}function qD(e,t,n,r,o,i,s,a,c,l,u){let d=Ce()+e,p=g(),f=$e(p,d,n,r,o,i);return $e(p,d+4,s,a,c,l)||f?vt(p,d+8,u?t.call(u,n,r,o,i,s,a,c,l):t(n,r,o,i,s,a,c,l)):vi(p,d+8)}function WD(e,t,n,r){return YD(g(),Ce(),e,t,n,r)}function Ei(e,t){let n=e[t];return n===_?void 0:n}function GD(e,t,n,r,o,i){let s=t+n;return ne(e,s,o)?vt(e,s+1,i?r.call(i,o):r(o)):Ei(e,s+1)}function zD(e,t,n,r,o,i,s){let a=t+n;return bn(e,a,o,i)?vt(e,a+2,s?r.call(s,o,i):r(o,i)):Ei(e,a+2)}function QD(e,t,n,r,o,i,s,a){let c=t+n;return ic(e,c,o,i,s)?vt(e,c+3,a?r.call(a,o,i,s):r(o,i,s)):Ei(e,c+3)}function ZD(e,t,n,r,o,i,s,a,c){let l=t+n;return $e(e,l,o,i,s,a)?vt(e,l+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):Ei(e,l+4)}function YD(e,t,n,r,o,i){let s=t+n,a=!1;for(let c=0;c=0;n--){let r=t[n];if(e===r.name)return r}}function JD(e,t,n){let r=e+w,o=g(),i=Sn(o,r);return Ii(o,r)?GD(o,Ce(),t,i.transform,n,i):i.transform(n)}function XD(e,t,n,r){let o=e+w,i=g(),s=Sn(i,o);return Ii(i,o)?zD(i,Ce(),t,s.transform,n,r,s):s.transform(n,r)}function eC(e,t,n,r,o){let i=e+w,s=g(),a=Sn(s,i);return Ii(s,i)?QD(s,Ce(),t,a.transform,n,r,o,a):a.transform(n,r,o)}function tC(e,t,n,r,o,i){let s=e+w,a=g(),c=Sn(a,s);return Ii(a,s)?ZD(a,Ce(),t,c.transform,n,r,o,i,c):c.transform(n,r,o,i)}function nC(e,t,n){let r=e+w,o=g(),i=Sn(o,r);return Ii(o,r)?YD(o,Ce(),t,i.transform,n,i):i.transform.apply(i,n)}function Ii(e,t){return e[E].data[t].pure}function rC(e,t){return tc(e,t)}function oC(e,t){return()=>{try{return gr.getComponentDependencies(e,t).dependencies}catch(n){throw console.error(`Computing dependencies in local compilation mode for the component "${e.name}" failed with the exception:`,n),n}}}function iC(e,t){let n=Q(e);n!==null&&(n.debugInfo=t)}var Ie={\u0275\u0275attribute:Ef,\u0275\u0275attributeInterpolate1:If,\u0275\u0275attributeInterpolate2:wf,\u0275\u0275attributeInterpolate3:Df,\u0275\u0275attributeInterpolate4:Cf,\u0275\u0275attributeInterpolate5:bf,\u0275\u0275attributeInterpolate6:Mf,\u0275\u0275attributeInterpolate7:Tf,\u0275\u0275attributeInterpolate8:xf,\u0275\u0275attributeInterpolateV:Nf,\u0275\u0275defineComponent:rv,\u0275\u0275defineDirective:ov,\u0275\u0275defineInjectable:B,\u0275\u0275defineInjector:_a,\u0275\u0275defineNgModule:ld,\u0275\u0275definePipe:iv,\u0275\u0275directiveInject:_r,\u0275\u0275getInheritedFactory:ty,\u0275\u0275inject:ge,\u0275\u0275injectAttribute:Ua,\u0275\u0275invalidFactory:dE,\u0275\u0275invalidFactoryDep:id,\u0275\u0275templateRefExtractor:rC,\u0275\u0275resetView:_v,\u0275\u0275HostDirectivesFeature:_I,\u0275\u0275NgOnChangesFeature:gd,\u0275\u0275ProvidersFeature:OD,\u0275\u0275CopyDefinitionFeature:NI,\u0275\u0275InheritDefinitionFeature:pf,\u0275\u0275InputTransformsFeature:OI,\u0275\u0275StandaloneFeature:AD,\u0275\u0275nextContext:oD,\u0275\u0275namespaceHTML:$v,\u0275\u0275namespaceMathML:Uv,\u0275\u0275namespaceSVG:Hv,\u0275\u0275enableBindings:Tv,\u0275\u0275disableBindings:xv,\u0275\u0275elementStart:uc,\u0275\u0275elementEnd:dc,\u0275\u0275element:Af,\u0275\u0275elementContainerStart:fc,\u0275\u0275elementContainerEnd:pc,\u0275\u0275elementContainer:Rf,\u0275\u0275pureFunction0:LD,\u0275\u0275pureFunction1:FD,\u0275\u0275pureFunction2:jD,\u0275\u0275pureFunction3:VD,\u0275\u0275pureFunction4:HD,\u0275\u0275pureFunction5:UD,\u0275\u0275pureFunction6:$D,\u0275\u0275pureFunction7:BD,\u0275\u0275pureFunction8:qD,\u0275\u0275pureFunctionV:WD,\u0275\u0275getCurrentView:Vw,\u0275\u0275restoreView:Nv,\u0275\u0275listener:Uf,\u0275\u0275projection:sD,\u0275\u0275syntheticHostProperty:kf,\u0275\u0275syntheticHostListener:$f,\u0275\u0275pipeBind1:JD,\u0275\u0275pipeBind2:XD,\u0275\u0275pipeBind3:eC,\u0275\u0275pipeBind4:tC,\u0275\u0275pipeBindV:nC,\u0275\u0275projectionDef:iD,\u0275\u0275hostProperty:Pf,\u0275\u0275property:_f,\u0275\u0275propertyInterpolate:qf,\u0275\u0275propertyInterpolate1:hc,\u0275\u0275propertyInterpolate2:Wf,\u0275\u0275propertyInterpolate3:Gf,\u0275\u0275propertyInterpolate4:zf,\u0275\u0275propertyInterpolate5:Qf,\u0275\u0275propertyInterpolate6:Zf,\u0275\u0275propertyInterpolate7:Yf,\u0275\u0275propertyInterpolate8:Kf,\u0275\u0275propertyInterpolateV:Jf,\u0275\u0275pipe:KD,\u0275\u0275queryRefresh:lD,\u0275\u0275queryAdvance:pD,\u0275\u0275viewQuery:cD,\u0275\u0275viewQuerySignal:fD,\u0275\u0275loadQuery:uD,\u0275\u0275contentQuery:aD,\u0275\u0275contentQuerySignal:dD,\u0275\u0275reference:hD,\u0275\u0275classMap:gw,\u0275\u0275classMapInterpolate1:Dw,\u0275\u0275classMapInterpolate2:Cw,\u0275\u0275classMapInterpolate3:bw,\u0275\u0275classMapInterpolate4:Mw,\u0275\u0275classMapInterpolate5:Tw,\u0275\u0275classMapInterpolate6:xw,\u0275\u0275classMapInterpolate7:Nw,\u0275\u0275classMapInterpolate8:_w,\u0275\u0275classMapInterpolateV:Sw,\u0275\u0275styleMap:Xe,\u0275\u0275styleMapInterpolate1:mD,\u0275\u0275styleMapInterpolate2:gD,\u0275\u0275styleMapInterpolate3:vD,\u0275\u0275styleMapInterpolate4:yD,\u0275\u0275styleMapInterpolate5:ED,\u0275\u0275styleMapInterpolate6:ID,\u0275\u0275styleMapInterpolate7:wD,\u0275\u0275styleMapInterpolate8:DD,\u0275\u0275styleMapInterpolateV:CD,\u0275\u0275styleProp:Sf,\u0275\u0275stylePropInterpolate1:Xf,\u0275\u0275stylePropInterpolate2:ep,\u0275\u0275stylePropInterpolate3:tp,\u0275\u0275stylePropInterpolate4:np,\u0275\u0275stylePropInterpolate5:rp,\u0275\u0275stylePropInterpolate6:op,\u0275\u0275stylePropInterpolate7:ip,\u0275\u0275stylePropInterpolate8:sp,\u0275\u0275stylePropInterpolateV:ap,\u0275\u0275classProp:Of,\u0275\u0275advance:lE,\u0275\u0275template:gf,\u0275\u0275conditional:Aw,\u0275\u0275defer:QI,\u0275\u0275deferWhen:ZI,\u0275\u0275deferOnIdle:KI,\u0275\u0275deferOnImmediate:XI,\u0275\u0275deferOnTimer:tw,\u0275\u0275deferOnHover:rw,\u0275\u0275deferOnInteraction:iw,\u0275\u0275deferOnViewport:aw,\u0275\u0275deferPrefetchWhen:YI,\u0275\u0275deferPrefetchOnIdle:JI,\u0275\u0275deferPrefetchOnImmediate:ew,\u0275\u0275deferPrefetchOnTimer:nw,\u0275\u0275deferPrefetchOnHover:ow,\u0275\u0275deferPrefetchOnInteraction:sw,\u0275\u0275deferPrefetchOnViewport:cw,\u0275\u0275deferEnableTimerScheduling:zI,\u0275\u0275repeater:Lw,\u0275\u0275repeaterCreate:kw,\u0275\u0275repeaterTrackByIndex:Rw,\u0275\u0275repeaterTrackByIdentity:Pw,\u0275\u0275componentInstance:Ow,\u0275\u0275text:bD,\u0275\u0275textInterpolate:cp,\u0275\u0275textInterpolate1:gc,\u0275\u0275textInterpolate2:lp,\u0275\u0275textInterpolate3:up,\u0275\u0275textInterpolate4:dp,\u0275\u0275textInterpolate5:fp,\u0275\u0275textInterpolate6:pp,\u0275\u0275textInterpolate7:hp,\u0275\u0275textInterpolate8:mp,\u0275\u0275textInterpolateV:gp,\u0275\u0275i18n:Xw,\u0275\u0275i18nAttributes:eD,\u0275\u0275i18nExp:Hf,\u0275\u0275i18nStart:jf,\u0275\u0275i18nEnd:Vf,\u0275\u0275i18nApply:tD,\u0275\u0275i18nPostprocess:nD,\u0275\u0275resolveWindow:zy,\u0275\u0275resolveDocument:Qy,\u0275\u0275resolveBody:Hd,\u0275\u0275setComponentScope:RD,\u0275\u0275setNgModuleScope:PD,\u0275\u0275registerNgModuleType:ff,\u0275\u0275getComponentDepsFactory:oC,\u0275setClassDebugInfo:iC,\u0275\u0275declareLet:Ep,\u0275\u0275storeLet:ND,\u0275\u0275readContextLet:_D,\u0275\u0275sanitizeHtml:Vy,\u0275\u0275sanitizeStyle:Hy,\u0275\u0275sanitizeResourceUrl:Vd,\u0275\u0275sanitizeScript:Uy,\u0275\u0275sanitizeUrl:jd,\u0275\u0275sanitizeUrlOrResourceUrl:qy,\u0275\u0275trustConstantHtml:$y,\u0275\u0275trustConstantResourceUrl:By,\u0275\u0275validateIframeAttribute:TI,forwardRef:xa,resolveForwardRef:V,\u0275\u0275twoWayProperty:vp,\u0275\u0275twoWayBindingSet:TD,\u0275\u0275twoWayListener:yp},rr=null;function VP(e){rr!==null&&(e.defaultEncapsulation!==rr.defaultEncapsulation||e.preserveWhitespaces!==rr.preserveWhitespaces)||(rr=e)}function HP(){return rr}function UP(){rr=null}var Io=[];function $P(e,t){Io.push({moduleType:e,ngModule:t})}var bl=!1;function sC(){if(!bl){bl=!0;try{for(let e=Io.length-1;e>=0;e--){let{moduleType:t,ngModule:n}=Io[e];n.declarations&&n.declarations.every(aC)&&(Io.splice(e,1),zP(t,n))}}finally{bl=!1}}}function aC(e){return Array.isArray(e)?e.every(aC):!!V(e)}function cC(e,t={}){lC(e,t),t.id!==void 0&&ff(e,t.id),$P(e,t)}function lC(e,t,n=!1){let r=st(t.declarations||H),o=null;Object.defineProperty(e,rd,{configurable:!0,get:()=>(o===null&&(o=le({usage:0,kind:"NgModule",type:e}).compileNgModule(Ie,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:st(t.bootstrap||H).map(V),declarations:r.map(V),imports:st(t.imports||H).map(V).map(Ng),exports:st(t.exports||H).map(V).map(Ng),schemas:t.schemas?st(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let i=null;Object.defineProperty(e,Tt,{get:()=>{if(i===null){let a=le({usage:0,kind:"NgModule",type:e});i=a.compileFactory(Ie,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:$a(e),target:a.FactoryTarget.NgModule,typeArgumentCount:0})}return i},configurable:!1});let s=null;Object.defineProperty(e,Ss,{get:()=>{if(s===null){let a={name:e.name,type:e,providers:t.providers||H,imports:[(t.imports||H).map(V),(t.exports||H).map(V)]};s=le({usage:0,kind:"NgModule",type:e}).compileInjector(Ie,`ng:///${e.name}/\u0275inj.js`,a)}return s},configurable:!1})}function BP(e,t){let n=`Unexpected "${je(e)}" found in the "declarations" array of the`,r=`"${je(e)}" is marked as standalone and can't be declared in any NgModule - did you intend to import it instead (by adding it to the "imports" array)?`;return`${n} ${t}, ${r}`}var qP=new WeakMap,WP=new WeakMap;function GP(){qP=new WeakMap,WP=new WeakMap,Io.length=0,ix.clear()}function zP(e,t){let n=st(t.declarations||H),r=xn(e);n.forEach(o=>{if(o=V(o),o.hasOwnProperty(Jo)){let s=Q(o);wp(s,r)}else!o.hasOwnProperty(Sa)&&!o.hasOwnProperty(Oa)&&(o.ngSelectorScope=e)})}function wp(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(Jo)?Q(n):Pe(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>ke(n)),e.schemas=t.schemas,e.tView=null}function xn(e){if($t(e))if(ia){let t=gr.getNgModuleScope(e),n=ze(e,!0);return Z({schemas:n.schemas||null},t)}else return QP(e);else if(Mo(e)){if((Q(e)||Pe(e))!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(ke(e)!==null)return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function QP(e){let t=ze(e,!0);if(t.transitiveCompileScopes!==null)return t.transitiveCompileScopes;let n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return bt(t.imports).forEach(r=>{let o=xn(r);o.exported.directives.forEach(i=>n.compilation.directives.add(i)),o.exported.pipes.forEach(i=>n.compilation.pipes.add(i))}),bt(t.declarations).forEach(r=>{ke(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),bt(t.exports).forEach(r=>{let o=r;if($t(o)){let i=xn(o);i.exported.directives.forEach(s=>{n.compilation.directives.add(s),n.exported.directives.add(s)}),i.exported.pipes.forEach(s=>{n.compilation.pipes.add(s),n.exported.pipes.add(s)})}else ke(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Ng(e){return af(e)?e.ngModule:e}var Ml=0;function uC(e,t){let n=null;bA(e,t),fC(e,t),Object.defineProperty(e,Jo,{get:()=>{if(n===null){let r=le({usage:0,kind:"component",type:e});if(DI(t)){let l=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&l.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&l.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),t.styleUrl&&l.push(` - styleUrl: ${t.styleUrl}`),l.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(l.join(` -`))}let o=HP(),i=t.preserveWhitespaces;i===void 0&&(o!==null&&o.preserveWhitespaces!==void 0?i=o.preserveWhitespaces:i=!1);let s=t.encapsulation;s===void 0&&(o!==null&&o.defaultEncapsulation!==void 0?s=o.defaultEncapsulation:s=Qt.Emulated);let a=t.templateUrl||`ng:///${e.name}/template.html`,c=nt(Z({},pC(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,a),template:t.template||"",preserveWhitespaces:i,styles:typeof t.styles=="string"?[t.styles]:t.styles||H,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:s,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Ml++;try{if(c.usesInheritance&&hC(e),n=r.compileComponent(Ie,a,c),t.standalone){let l=st(t.imports||H),{directiveDefs:u,pipeDefs:d}=ZP(e,l);n.directiveDefs=u,n.pipeDefs=d,n.dependencies=()=>l.map(V)}}finally{Ml--}if(Ml===0&&sC(),YP(e)){let l=xn(e.ngSelectorScope);wp(n,l)}if(t.schemas)if(t.standalone)n.schemas=t.schemas;else throw new Error(`The 'schemas' was specified for the ${je(e)} but is only valid on a component that is standalone.`);else t.standalone&&(n.schemas=[])}return n},configurable:!1})}function ZP(e,t){let n=null,r=null;return{directiveDefs:()=>{if(ia)return mo(e)?[...gr.getStandaloneComponentScope(e,t).compilation.directives].map(a=>Q(a)||Pe(a)).filter(a=>a!==null):[];if(n===null){n=[Q(e)];let s=new Set([e]);for(let a of t){let c=V(a);if(!s.has(c))if(s.add(c),ze(c)){let l=xn(c);for(let u of l.exported.directives){let d=Q(u)||Pe(u);d&&!s.has(u)&&(s.add(u),n.push(d))}}else{let l=Q(c)||Pe(c);l&&n.push(l)}}}return n},pipeDefs:()=>{if(ia)return mo(e)?[...gr.getStandaloneComponentScope(e,t).compilation.pipes].map(a=>ke(a)).filter(a=>a!==null):[];if(r===null){r=[];let s=new Set;for(let a of t){let c=V(a);if(!s.has(c))if(s.add(c),ze(c)){let l=xn(c);for(let u of l.exported.pipes){let d=ke(u);d&&!s.has(u)&&(s.add(u),r.push(d))}}else{let l=ke(c);l&&r.push(l)}}}return r}}}function YP(e){return e.ngSelectorScope!==void 0}function Dp(e,t){let n=null;fC(e,t||{}),Object.defineProperty(e,Sa,{get:()=>{if(n===null){let r=dC(e,t||{});n=le({usage:0,kind:"directive",type:e}).compileDirective(Ie,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function dC(e,t){let n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=le({usage:0,kind:"directive",type:e}),i=pC(e,t);return i.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),i.usesInheritance&&hC(e),{metadata:i,sourceMapUrl:r}}function fC(e,t){let n=null;Object.defineProperty(e,Tt,{get:()=>{if(n===null){let r=dC(e,t),o=le({usage:0,kind:"directive",type:e});n=o.compileFactory(Ie,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:$a(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function KP(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function pC(e,t){let n=xd(),r=n.ownPropMetadata(e);return{name:e.name,type:e,selector:t.selector!==void 0?t.selector:null,host:t.host||ut,propMetadata:r,inputs:t.inputs||H,outputs:t.outputs||H,queries:_g(e,r,mC),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!KP(e),exportAs:ek(t.exportAs),providers:t.providers||null,viewQueries:_g(e,r,gC),isStandalone:!!t.standalone,isSignal:!!t.signals,hostDirectives:t.hostDirectives?.map(o=>typeof o=="function"?{directive:o}:o)||null}}function hC(e){let t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!Pe(n)&&!Q(n)&&nk(n)&&Dp(n,null),n=Object.getPrototypeOf(n)}function JP(e){return typeof e=="string"?yC(e):V(e)}function XP(e,t){return{propertyName:e,predicate:JP(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly,isSignal:!!t.isSignal}}function _g(e,t,n){let r=[];for(let o in t)if(t.hasOwnProperty(o)){let i=t[o];i.forEach(s=>{if(n(s)){if(!s.selector)throw new Error(`Can't construct a query for the property "${o}" of "${je(e)}" since the query selector wasn't defined.`);if(i.some(vC))throw new Error("Cannot combine @Input decorators with query decorators");r.push(XP(o,s))}})}return r}function ek(e){return e===void 0?null:yC(e)}function mC(e){let t=e.ngMetadataName;return t==="ContentChild"||t==="ContentChildren"}function gC(e){let t=e.ngMetadataName;return t==="ViewChild"||t==="ViewChildren"}function vC(e){return e.ngMetadataName==="Input"}function yC(e){return e.split(",").map(t=>t.trim())}var tk=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function nk(e){let t=xd();if(tk.some(r=>t.hasLifecycleHook(e,r)))return!0;let n=t.propMetadata(e);for(let r in n){let o=n[r];for(let i=0;i{if(r===null){let o=Sg(e,t),i=le({usage:0,kind:"pipe",type:o.type});r=i.compileFactory(Ie,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:$a(e),target:i.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,Oa,{get:()=>{if(n===null){let o=Sg(e,t);n=le({usage:0,kind:"pipe",type:o.type}).compilePipe(Ie,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function Sg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:t.pure!==void 0?t.pure:!0,isStandalone:!!t.standalone}}var IC=Yo("Directive",(e={})=>e,void 0,void 0,(e,t)=>Dp(e,t)),rk=Yo("Component",(e={})=>Z({changeDetection:Pa.Default},e),IC,void 0,(e,t)=>uC(e,t)),ok=Yo("Pipe",e=>Z({pure:!0},e),void 0,void 0,(e,t)=>EC(e,t)),ik=Xt("Input",e=>e?typeof e=="string"?{alias:e}:e:{}),sk=Xt("Output",e=>({alias:e})),ak=Xt("HostBinding",e=>({hostPropertyName:e})),ck=Xt("HostListener",(e,t)=>({eventName:e,args:t})),lk=Yo("NgModule",e=>e,void 0,void 0,(e,t)=>cC(e,t)),ya=class{constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},uk=new ya("18.0.5");var dk=(()=>{let t=class t{log(r){console.log(r)}warn(r){console.warn(r)}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();var wC=new P(""),DC=new P(""),fk=(()=>{let t=class t{constructor(r,o,i){this._ngZone=r,this.registry=o,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Cp||(bC(i),i.addToWindow(o)),this._watchAngularEvents(),r.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let r=this._callbacks.pop();clearTimeout(r.timeoutId),r.doneCb()}});else{let r=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>o.updateCb&&o.updateCb(r)?(clearTimeout(o.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(r=>({source:r.source,creationLocation:r.creationLocation,data:r.data})):[]}addCallback(r,o,i){let s=-1;o&&o>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==s),r()},o)),this._callbacks.push({doneCb:r,timeoutId:s,updateCb:i})}whenStable(r,o,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(r,o,i),this._runCallbacksIfReady()}registerApplication(r){this.registry.registerApplication(r,this)}unregisterApplication(r){this.registry.unregisterApplication(r)}findProviders(r,o,i){return[]}};t.\u0275fac=function(o){return new(o||t)(ge(ee),ge(CC),ge(DC))},t.\u0275prov=B({token:t,factory:t.\u0275fac});let e=t;return e})(),CC=(()=>{let t=class t{constructor(){this._applications=new Map}registerApplication(r,o){this._applications.set(r,o)}unregisterApplication(r){this._applications.delete(r)}unregisterAllApplications(){this._applications.clear()}getTestability(r){return this._applications.get(r)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(r,o=!0){return Cp?.findTestabilityInTree(this,r,o)??null}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})();function bC(e){Cp=e}var Cp;function bp(e){return!!e&&typeof e.then=="function"}function MC(e){return!!e&&typeof e.subscribe=="function"}var TC=new P(""),vc=(()=>{let t=class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o}),this.appInits=b(TC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;let r=[];for(let i of this.appInits){let s=i();if(bp(s))r.push(s);else if(MC(s)){let a=new Promise((c,l)=>{s.subscribe({complete:c,error:l})});r.push(a)}}let o=()=>{this.done=!0,this.resolve()};Promise.all(r).then(()=>{o()}).catch(i=>{this.reject(i)}),r.length===0&&o(),this.initialized=!0}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),yc=new P("");function xC(){Vh(()=>{throw new D(600,!1)})}function NC(e){return e.isBoundToModule}var $u=class{constructor(t,n){this.name=t,this.token=n}},pk=10;function _C(e,t,n){try{let r=n();return bp(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}function SC(e,t){return Array.isArray(t)?t.reduce(SC,e):Z(Z({},e),t)}var kt=(()=>{let t=class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(ay),this.afterRenderEffectManager=b(Ar),this.zonelessEnabled=b(gi),this.externalTestViews=new Set,this.beforeRender=new Vt,this.afterTick=new Vt,this.componentTypes=[],this.components=[],this.isStable=b(en).hasPendingTasks.pipe(Et(r=>!r)),this._injector=b(dt)}get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(r,o){let i=r instanceof Ho;if(!this._injector.get(vc).done){let f=!i&&Mo(r),h=!1;throw new D(405,h)}let a;i?a=r:a=this._injector.get(Dn).resolveComponentFactory(r),this.componentTypes.push(a.componentType);let c=NC(a)?void 0:this._injector.get(Jt),l=o||a.selector,u=a.create(fe.NULL,[],l,c),d=u.location.nativeElement,p=u.injector.get(wC,null);return p?.registerApplication(d),u.onDestroy(()=>{this.detachView(u.hostView),_s(this.components,u),p?.unregisterApplication(d)}),this._loadComponent(u),u}tick(){this._tick(!0)}_tick(r){if(this._runningTick)throw new D(101,!1);let o=A(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(r)}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1,A(o),this.afterTick.next()}}detectChangesInAttachedViews(r){let o=null;this._injector.destroyed||(o=this._injector.get(Uo,null,{optional:!0}));let i=0,s=this.afterRenderEffectManager;for(;iSo(c))&&(s.execute(),!this.allViews.some(({_lView:c})=>So(c))))break}}attachView(r){let o=r;this._views.push(o),o.attachToAppRef(this)}detachView(r){let o=r;_s(this._views,o),o.detachFromAppRef()}_loadComponent(r){this.attachView(r.hostView),this.tick(),this.components.push(r);let o=this._injector.get(yc,[]);[...this._bootstrapListeners,...o].forEach(i=>i(r))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(r=>r()),this._views.slice().forEach(r=>r.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(r){return this._destroyListeners.push(r),()=>_s(this._destroyListeners,r)}destroy(){if(this._destroyed)throw new D(406,!1);let r=this._injector;r.destroy&&!r.destroyed&&r.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function _s(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var Es;function Mp(e){Es??=new WeakMap;let t=Es.get(e);if(t)return t;let n=e.isStable.pipe(Fc(r=>r)).toPromise().then(()=>{});return Es.set(e,n),e.onDestroy(()=>Es?.delete(e)),n}function OC(e,t,n,r){if(!n&&!So(e))return;xE(e,t,n&&!r?0:1)}var Ea=class{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},hk=(()=>{let t=class t{compileModuleSync(r){return new Er(r)}compileModuleAsync(r){return Promise.resolve(this.compileModuleSync(r))}compileModuleAndAllComponentsSync(r){let o=this.compileModuleSync(r),i=ze(r),s=bt(i.declarations).reduce((a,c)=>{let l=Q(c);return l&&a.push(new Kt(l)),a},[]);return new Ea(o,s)}compileModuleAndAllComponentsAsync(r){return Promise.resolve(this.compileModuleAndAllComponentsSync(r))}clearCache(){}clearCacheFor(r){}getModuleId(r){}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),AC=new P(""),Bu=class{};function RC(e,t,n){let r=new Er(n);return Promise.resolve(r)}function Og(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var mk=(()=>{let t=class t{constructor(){this.zone=b(ee),this.changeDetectionScheduler=b(_t),this.applicationRef=b(kt)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})(),PC=new P("",{factory:()=>!1});function Ec({ngZoneFactory:e,ignoreChangesOutsideZone:t}){return e??=()=>new ee(Tp()),[{provide:ee,useFactory:e},{provide:zt,multi:!0,useFactory:()=>{let n=b(mk,{optional:!0});return()=>n.initialize()}},{provide:zt,multi:!0,useFactory:()=>{let n=b(yk);return()=>{n.initialize()}}},{provide:ay,useFactory:gk},t===!0?{provide:GE,useValue:!0}:[]]}function gk(){let e=b(ee),t=b(Ke);return n=>e.runOutsideAngular(()=>t.handleError(n))}function vk(e){let t=e?.ignoreChangesOutsideZone,n=Ec({ngZoneFactory:()=>{let r=Tp(e);return r.shouldCoalesceEventChangeDetection&&ye("NgZone_CoalesceEvent"),new ee(r)},ignoreChangesOutsideZone:t});return ni([{provide:PC,useValue:!0},{provide:gi,useValue:!1},n])}function Tp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var yk=(()=>{let t=class t{constructor(){this.subscription=new Y,this.initialized=!1,this.zone=b(ee),this.pendingTasks=b(en)}initialize(){if(this.initialized)return;this.initialized=!0;let r=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(r=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ee.assertNotInAngularZone(),queueMicrotask(()=>{r!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(r),r=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ee.assertInAngularZone(),r??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Ic=(()=>{let t=class t{constructor(){this.appRef=b(kt),this.taskService=b(en),this.ngZone=b(ee),this.zonelessEnabled=b(gi),this.disableScheduling=b(GE,{optional:!0})??!1,this.zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run,this.schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}],this.subscriptions=new Y,this.cancelScheduledCallback=null,this.shouldRefreshViews=!1,this.useMicrotaskScheduler=!1,this.runningTick=!1,this.pendingRenderTaskId=null,this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof mr||!this.zoneIsDefined)}notify(r){if(!this.zonelessEnabled&&r===5)return;switch(r){case 3:case 2:case 0:case 4:case 5:case 1:{this.shouldRefreshViews=!0;break}case 8:case 7:case 6:case 9:default:}if(!this.shouldScheduleTick())return;let o=this.useMicrotaskScheduler?Qm:QE;this.pendingRenderTaskId=this.taskService.add(),this.zoneIsDefined?Zone.root.run(()=>{this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}):this.cancelScheduledCallback=o(()=>{this.tick(this.shouldRefreshViews)})}shouldScheduleTick(){return!(this.disableScheduling||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&ee.isInAngularZone())}tick(r){if(this.runningTick||this.appRef.destroyed)return;let o=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick(r)},void 0,this.schedulerTickApplyArgs)}catch(i){throw this.taskService.remove(o),i}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Qm(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(o)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.shouldRefreshViews=!1,this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let r=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(r)}}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function Ek(){return ye("NgZoneless"),ni([{provide:_t,useExisting:Ic},{provide:ee,useClass:mr},{provide:gi,useValue:!0},[]])}function Ik(){return typeof $localize<"u"&&$localize.locale||Tn}var wc=new P("",{providedIn:"root",factory:()=>b(wc,L.Optional|L.SkipSelf)||Ik()}),wk=new P("",{providedIn:"root",factory:()=>zR}),Dk=new P(""),Ck=new P(""),kC=function(e){return e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore",e}(kC||{}),xp=new P(""),Np=(()=>{let t=class t{constructor(r){this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(r,o){let i=$O(o?.ngZone,Tp({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return i.run(()=>{let s=o?.ignoreChangesOutsideZone,a=UA(r.moduleType,this.injector,[...Ec({ngZoneFactory:()=>i,ignoreChangesOutsideZone:s}),{provide:_t,useExisting:Ic}]),c=a.injector.get(Ke,null);return i.runOutsideAngular(()=>{let l=i.onError.subscribe({next:u=>{c.handleError(u)}});a.onDestroy(()=>{_s(this._modules,a),l.unsubscribe()})}),_C(c,i,()=>{let l=a.injector.get(vc);return l.runInitializers(),l.donePromise.then(()=>{let u=a.injector.get(wc,Tn);return Ff(u||Tn),this._moduleDoBootstrap(a),a})})})}bootstrapModule(r,o=[]){let i=SC({},o);return RC(this.injector,i,r).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(r){let o=r.injector.get(kt);if(r._bootstrapComponents.length>0)r._bootstrapComponents.forEach(i=>o.bootstrap(i));else if(r.instance.ngDoBootstrap)r.instance.ngDoBootstrap(o);else throw new D(-403,!1);this._modules.push(r)}onDestroy(r){this._destroyListeners.push(r)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new D(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());let r=this._injector.get(xp,null);r&&(r.forEach(o=>o()),r.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}};t.\u0275fac=function(o){return new(o||t)(ge(fe))},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"platform"});let e=t;return e})(),Gt=null,_p=new P("");function LC(e){if(Gt&&!Gt.get(_p,!1))throw new D(400,!1);xC(),Gt=e;let t=e.get(Np);return HC(e),t}function FC(e,t,n=[]){let r=`Platform: ${t}`,o=new P(r);return(i=[])=>{let s=Dc();if(!s||s.injector.get(_p,!1)){let a=[...n,...i,{provide:o,useValue:!0}];e?e(a):LC(jC(a,r))}return VC(o)}}function jC(e=[],t){return fe.create({name:t,providers:[{provide:fd,useValue:"platform"},{provide:xp,useValue:new Set([()=>Gt=null])},...e]})}function VC(e){let t=Dc();if(!t)throw new D(401,!1);return t}function Dc(){return Gt?.get(Np)??null}function bk(){Dc()?.destroy()}function Mk(e=[]){if(Gt)return Gt;let t=jC(e);return Gt=t,xC(),HC(t),t}function HC(e){e.get(vy,null)?.forEach(n=>n())}function Tk(e){return ni([])}function xk(){return!1}function Nk(){}function _k(e){let t=MI(e);if(!t)throw UC(e);return new Er(t)}function Sk(e){let t=MI(e);if(!t)throw UC(e);return t}function UC(e){return new Error(`No module with ID ${e} loaded`)}var Sp=(()=>{let t=class t{};t.__NG_ELEMENT_ID__=$C;let e=t;return e})();function $C(e){return Ok(q(),g(),(e&16)===16)}function Ok(e,t,n){if(_n(e)&&!n){let r=Ze(e.index,t);return new Yt(r,r)}else if(e.type&175){let r=t[ue];return new Yt(r,t)}return null}var Ia=class extends Sp{},qu=class extends Ia{};var Wu=class{constructor(t,n){this.name=t,this.callback=n}};function Ak(e){return e.map(t=>t.nativeElement)}var Qo=class{constructor(t){this.nativeNode=t}get parent(){let t=this.nativeNode.parentNode;return t?new Nn(t):null}get injector(){return AN(this.nativeNode)}get componentInstance(){let t=this.nativeNode;return t&&(Fm(t)||ON(t))}get context(){return Fm(this.nativeNode)||SN(this.nativeNode)}get listeners(){return FN(this.nativeNode).filter(t=>t.type==="dom")}get references(){return kN(this.nativeNode)}get providerTokens(){return RN(this.nativeNode)}},Nn=class extends Qo{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){let t=Se(this.nativeNode),n=t?t.lView:null;return n!==null?n[E].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){let t=Se(this.nativeNode),n=t?t.lView:null;if(n===null)return{};let r=n[E].data,o=r[t.nodeIndex],i={};return Rk(this.nativeElement,i),kk(i,o,n,r),i}get attributes(){let t={},n=this.nativeElement;if(!n)return t;let r=Se(n),o=r?r.lView:null;if(o===null)return{};let i=o[E].data[r.nodeIndex].attrs,s=[];if(i){let a=0;for(;at[i]=!0),t}get childNodes(){let t=this.nativeNode.childNodes,n=[];for(let r=0;r{if(i.name===t){let s=i.callback;s.call(r,n),o.push(s)}}),typeof r.eventListeners=="function"&&r.eventListeners(t).forEach(i=>{if(i.toString().indexOf("__ngUnwrap__")!==-1){let s=i("__ngUnwrap__");return o.indexOf(s)===-1&&s.call(r,n)}})}};function Rk(e,t){if(e){let n=Object.getPrototypeOf(e),r=Node.prototype;for(;n!==null&&n!==r;){let o=Object.getOwnPropertyDescriptors(n);for(let i in o)if(!i.startsWith("__")&&!i.startsWith("on")){let s=e[i];Pk(s)&&(t[i]=s)}n=Object.getPrototypeOf(n)}}}function Pk(e){return typeof e=="string"||typeof e=="boolean"||typeof e=="number"||e===null}function Ag(e,t,n,r){let o=Se(e.nativeNode),i=o?o.lView:null;if(i!==null){let s=i[E].data[o.nodeIndex];fn(s,i,t,n,r,e.nativeNode)}else Op(e.nativeNode,t,n,r)}function fn(e,t,n,r,o,i){let s=xx(e,t);if(e.type&11){if(Tl(s,n,r,o,i),_n(e)){let c=Ze(e.index,t);c&&c[E].firstChild&&fn(c[E].firstChild,c,n,r,o,i)}else e.child&&fn(e.child,t,n,r,o,i),s&&Op(s,n,r,o);let a=t[e.index];De(a)&&Rg(a,n,r,o,i)}else if(e.type&4){let a=t[e.index];Tl(a[pt],n,r,o,i),Rg(a,n,r,o,i)}else if(e.type&16){let a=t[ue],l=a[ve].projection[e.projection];if(Array.isArray(l))for(let u of l)Tl(u,n,r,o,i);else if(l){let u=a[ie],d=u[E].data[l.index];fn(d,u,n,r,o,i)}}else e.child&&fn(e.child,t,n,r,o,i);if(i!==s){let a=e.flags&2?e.projectionNext:e.next;a&&fn(a,t,n,r,o,i)}}function Rg(e,t,n,r,o){for(let i=X;i1){let u=c[1];for(let d=1;dt,Da=class{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Lk}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new Gu(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new Ca),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ca),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},Gu=class{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}},zu=class{constructor(){this._head=null,this._tail=null}add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},Ca=class{constructor(){this.map=new Map}put(t){let n=t.trackById,r=this.map.get(n);r||(r=new zu,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Pg(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{let i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){let r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){let o=this._records.get(t);this._maybeAddToChanges(o,n);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Zu(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}},Zu=class{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}};function kg(){return new Ap([new wa])}var Ap=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o!=null){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||kg()),deps:[[t,new Ra,new Aa]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o!=null)return o;throw new D(901,!1)}};t.\u0275prov=B({token:t,providedIn:"root",factory:kg});let e=t;return e})();function Lg(){return new Rp([new ba])}var Rp=(()=>{let t=class t{constructor(r){this.factories=r}static create(r,o){if(o){let i=o.factories.slice();r=r.concat(i)}return new t(r)}static extend(r){return{provide:t,useFactory:o=>t.create(r,o||Lg()),deps:[[t,new Ra,new Aa]]}}find(r){let o=this.factories.find(i=>i.supports(r));if(o)return o;throw new D(901,!1)}};t.\u0275prov=B({token:t,providedIn:"root",factory:Lg});let e=t;return e})(),Fk=[new ba],jk=[new wa],Vk=new Ap(jk),Hk=new Rp(Fk),Uk=FC(null,"core",[]),$k=(()=>{let t=class t{constructor(r){}};t.\u0275fac=function(o){return new(o||t)(ge(kt))},t.\u0275mod=ld({type:t}),t.\u0275inj=_a({});let e=t;return e})();function Bk(e){}function qk(e){try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=Mk(r),i=[Ec({}),{provide:_t,useExisting:Ic},...n||[]],a=new da({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1}).injector,c=a.get(ee);return c.run(()=>{a.resolveInjectorInitializers();let l=a.get(Ke,null),u;c.runOutsideAngular(()=>{u=c.onError.subscribe({next:f=>{l.handleError(f)}})});let d=()=>a.destroy(),p=o.get(xp);return p.add(d),a.onDestroy(()=>{u.unsubscribe(),p.delete(d)}),_C(l,c,()=>{let f=a.get(vc);return f.runInitializers(),f.donePromise.then(()=>{let h=a.get(wc,Tn);Ff(h||Tn);let m=a.get(kt);return t!==void 0&&m.bootstrap(t),m})})})}catch(t){return Promise.reject(t)}}function Yu(e,t){let n=e[E];for(let r=w;ro+i+":;",""),r=e.getAttribute(io);e.setAttribute(io,`${r??""}${n}`)}var Gk=(e,t,n)=>{let r=e,o=r.__jsaction_fns??new Map,i=o.get(t)??[];i.push(n),o.set(t,i),r.__jsaction_fns=o},zk=e=>{e.removeAttribute(io),e.__jsaction_fns=void 0},Qk=(()=>{let t=class t{addEvent(r,o){return this.eventContract?(this.eventContract.addEvent(o),BC(r,[o]),!0):!1}};t.\u0275fac=function(o){return new(o||t)},t.\u0275prov=B({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var qC="ngContracts",Fg=new Set;function Zk(e){return e.get(o_,!1)}function jg(e){return e.get(kd,_y)&&!Zk(e)}function Yk(){return[{provide:kd,useFactory:()=>{let e=!0;if(_e()){let t=b(Ba);e=!!globalThis[qC]?.[t]}return e&&ye("NgEventReplay"),e}},{provide:zt,useValue:()=>{let e=b(fe);_e(e)&&jg(e)&&bg((t,n,r)=>{Gk(t,n,r),Fg.add(t)})},multi:!0},{provide:yc,useFactory:()=>{if(_e()){let e=b(fe),t=b(kt);return()=>{jg(e)&&Mp(t).then(()=>{let n=e.get(Qk);Jk(n,e),Fg.forEach(zk),bg(()=>{})})}}return()=>{}},multi:!0}]}function Kk(e){return e._ejsa}var Jk=(e,t)=>{let n=t.get(Ba),r=globalThis[qC]?.[n],o=Kk(r),i=e.eventContract=new hm(new ls(o.c),!1);for(let a of o.et)i.addEvent(a);for(let a of o.etc)i.addEvent(a);i.replayEarlyEvents(r);let s=new cs(Wk);pm(i,s)};function Xk(e,t,n){let r=new Map,o=t[fr],i=e.cleanup;if(!i||!o)return r;for(let s=0;s=0)&&(r.has(u)?r.get(u).push(l):r.set(u,[l]))}return r}var Ku=class{constructor(){this.views=[],this.indexByContent=new Map}add(t){let n=JSON.stringify(t);if(!this.indexByContent.has(n)){let r=this.views.length;return this.views.push(t),this.indexByContent.set(n,r),r}return this.indexByContent.get(n)}getAll(){return this.views}},e0=0;function WC(e){return e.ssrId||(e.ssrId=`t${e0++}`),e.ssrId}function GC(e,t,n){let r=[];return Fo(e,t,n,r),r.length}function t0(e){let t=[];return bE(e,t),t.length}function zC(e,t){let n=e[te];return n&&!n.hasAttribute(Ro)?Ma(n,e,t):null}function QC(e,t){let n=vd(e[te]),r=zC(n,t);if(r===null)return;let o=U(n[te]),i=e[ie],s=Ma(o,i,t),a=n[x],c=`${r}|${s}`;a.setAttribute(o,po,c)}function n0(e,t){let n=e.injector,r=hO(n),o=new Ku,i=new Map,s=e._views,a=n.get(kd,_y),c={regular:new Set,capture:new Set};for(let d of s){let p=wy(d);if(p!==null){let f={serializedViewCollection:o,corruptedTextNodes:i,isI18nHydrationEnabled:r,i18nChildren:new Map,eventTypesToReplay:c,shouldReplayEvents:a};De(p)?QC(p,f):zC(p,f),s0(i,t)}}let l=o.getAll();return n.get(li).set(Ad,l),c}function r0(e,t){let n=[],r="";for(let o=X;o0&&l===r){let u=n[n.length-1];u[Zs]??=1,u[Zs]++}else r=l,n.push(c)}return n}function wo(e,t,n,r){let o=t.index-w;e[Ys]??={},e[Ys][o]??=dO(t,n,r)}function Nl(e,t){let n=typeof t=="number"?t:t.index-w;e[fo]??=[],e[fo].includes(n)||e[fo].push(n)}function ZC(e,t){let n={},r=e[E],o=mO(r,t),i=t.shouldReplayEvents?Xk(r,e,t.eventTypesToReplay):null;for(let s=w;s{let e=!0;return _e()&&(e=!!b(li,{optional:!0})?.get(Ad,null)),e&&ye("NgHydration"),e}},{provide:zt,useValue:()=>{UE(!1),_e()&&b(lo)&&(p0(),c0())},multi:!0},{provide:xy,useFactory:()=>_e()&&b(lo)},{provide:yc,useFactory:()=>{if(_e()&&b(lo)){let e=b(kt),t=b(fe);return()=>{u0(e,t).then(()=>{NO(e)})}}return()=>{}},multi:!0}])}function f0(){return[{provide:Ny,useValue:!0},{provide:zt,useValue:()=>{l0(),UE(!0),ye("NgI18nHydration")},multi:!0}]}function p0(){let e=Tr(),t;for(let n of e.body.childNodes)if(n.nodeType===Node.COMMENT_NODE&&n.textContent?.trim()===Ey){t=n;break}if(!t)throw new D(-507,!1)}function YC(e,t){!t&&ri(YC);let n=t?.injector??b(fe),r=n.get(kt),o=!1,i=()=>{o||r.destroyed||(o=!0,e())};na(i,{injector:n,runOnServer:!0}),queueMicrotask(i)}function h0(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function m0(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function g0(e){return le({usage:1,kind:"directive",type:e.type}).compileDirectiveDeclaration(Ie,`ng:///${e.type.name}/\u0275fac.js`,e)}function v0(e){Ip(e.type,e.decorators,e.ctorParameters??null,e.propDecorators??null)}function y0(e){kD(e.type,e.resolveDeferredDeps,(...t)=>{let n=e.resolveMetadata(...t);Ip(e.type,n.decorators,n.ctorParameters,n.propDecorators)})}function E0(e){return le({usage:1,kind:"component",type:e.type}).compileComponentDeclaration(Ie,`ng:///${e.type.name}/\u0275cmp.js`,e)}function I0(e){return le({usage:1,kind:w0(e.target),type:e.type}).compileFactoryDeclaration(Ie,`ng:///${e.type.name}/\u0275fac.js`,e)}function w0(e){switch(e){case dn.Directive:return"directive";case dn.Component:return"component";case dn.Injectable:return"injectable";case dn.Pipe:return"pipe";case dn.NgModule:return"NgModule"}}function D0(e){return le({usage:1,kind:"injectable",type:e.type}).compileInjectableDeclaration(Ie,`ng:///${e.type.name}/\u0275prov.js`,e)}function C0(e){return le({usage:1,kind:"NgModule",type:e.type}).compileInjectorDeclaration(Ie,`ng:///${e.type.name}/\u0275inj.js`,e)}function b0(e){return le({usage:1,kind:"NgModule",type:e.type}).compileNgModuleDeclaration(Ie,`ng:///${e.type.name}/\u0275mod.js`,e)}function M0(e){return le({usage:1,kind:"pipe",type:e.type}).compilePipeDeclaration(Ie,`ng:///${e.type.name}/\u0275pipe.js`,e)}function T0(e,t){ye("NgSignals");let n=Wc(e);return t?.equal&&(n[Te].equal=t.equal),n}function x0(e){let t=A(null);try{return e()}finally{A(t)}}var N0=new P("",{providedIn:"root",factory:()=>b(KC)}),KC=(()=>{let t=class t{};t.\u0275prov=B({token:t,providedIn:"root",factory:()=>new Ju});let e=t;return e})(),Ju=class{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=b(en),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),this.taskId===null){let n=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(n),this.taskId=null})}}enqueue(t){let n=t.creationZone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}},Xu=class{constructor(t,n,r,o,i,s){this.scheduler=t,this.effectFn=n,this.creationZone=r,this.injector=i,this.watcher=$h(a=>this.runEffect(a),()=>this.schedule(),s),this.unregisterOnDestroy=o?.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(n){this.injector.get(Ke,null,{optional:!0})?.handleError(n)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){this.watcher.destroy(),this.unregisterOnDestroy?.()}};function JC(e,t){ye("NgSignals"),!t?.injector&&ri(JC);let n=t?.injector??b(fe),r=t?.manualCleanup!==!0?n.get(An):null,o=new Xu(n.get(N0),e,typeof Zone>"u"?null:Zone.current,r,n,t?.allowSignalWrites??!1),i=n.get(Sp,null,{optional:!0});return!i||!(i._lView[M]&8)?o.watcher.notify():(i._lView[Ds]??=[]).push(o.watcher.notify),o}function _0(e,t){let n=Q(e),r=t.elementInjector||ka();return new Kt(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function S0(e){let t=Q(e);if(!t)return null;let n=new Kt(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}function O0(...e){return e.reduce((t,n)=>Object.assign(t,n,{providers:[...t.providers,...n.providers]}),{providers:[]})}export{Y as a,db as b,j as c,Vc as d,Hc as e,Vt as f,Kr as g,Xb as h,eM as i,an as j,ub as k,it as l,Rb as m,Pb as n,tM as o,It as p,nM as q,Et as r,_b as s,qe as t,Zr as u,qn as v,rM as w,oM as x,Zc as y,Qr as z,dM as A,Gr as B,wb as C,ph as D,Ob as E,Mh as F,Yr as G,Wn as H,kc as I,Ab as J,kb as K,jb as L,Fc as M,jc as N,Vb as O,Hb as P,Ub as Q,xh as R,Nh as S,$b as T,D as U,Re as V,xa as W,B as X,_a as Y,NT as Z,P as _,L as $,ge as aa,b as ba,Aa as ca,Ra as da,Qt as ea,rv as fa,ld as ga,ov as ha,iv as ia,ni as ja,cv as ka,fd as la,dt as ma,pd as na,ri as oa,gd as pa,Nv as qa,_v as ra,Hv as sa,$v as ta,ty as ua,Ua as va,fe as wa,Ke as xa,An as ya,pN as za,mN as Aa,ci as Ba,en as Ca,lt as Da,UN as Ea,Ba as Fa,vy as Ga,_d as Ha,qN as Ia,WN as Ja,yy as Ka,GN as La,At as Ma,Nr as Na,s_ as Oa,a_ as Pa,c_ as Qa,l_ as Ra,u_ as Sa,Wa as Ta,jy as Ua,Rn as Va,Vy as Wa,jd as Xa,qy as Ya,Qy as Za,Ks as _a,lE as $a,_r as ab,dE as bb,jo as cb,Uo as db,PO as eb,ye as fb,ee as gb,Bt as hb,JE as ib,oc as jb,EA as kb,pf as lb,OI as mb,Jt as nb,ua as ob,AI as pb,hf as qb,gf as rb,Ef as sb,_f as tb,Sf as ub,Of as vb,gw as wb,Ow as xb,Aw as yb,Rw as zb,Pw as Ab,kw as Bb,Lw as Cb,uc as Db,dc as Eb,Af as Fb,fc as Gb,pc as Hb,Rf as Ib,Vw as Jb,Pf as Kb,Lf as Lb,Dr as Mb,Uf as Nb,oD as Ob,iD as Pb,sD as Qb,qf as Rb,aD as Sb,cD as Tb,lD as Ub,uD as Vb,hD as Wb,bD as Xb,cp as Yb,gc as Zb,vp as _b,TD as $b,yp as ac,OD as bc,AD as cc,FD as dc,jD as ec,VD as fc,HD as gc,KD as hc,JD as ic,XD as jc,rC as kc,ya as lc,dk as mc,wC as nc,DC as oc,fk as pc,CC as qc,bp as rc,MC as sc,TC as tc,yc as uc,kt as vc,hk as wc,AC as xc,Bu as yc,wc as zc,FC as Ac,Sp as Bc,Rp as Cc,Uk as Dc,$k as Ec,qk as Fc,h0 as Gc,m0 as Hc,x0 as Ic,JC as Jc,S0 as Kc,A0 as Lc}; diff --git a/dist/chunk-RFG773GC.js b/dist/chunk-ZMZIHCGB.js similarity index 95% rename from dist/chunk-RFG773GC.js rename to dist/chunk-ZMZIHCGB.js index c9f4e4c8..c469d83d 100644 --- a/dist/chunk-RFG773GC.js +++ b/dist/chunk-ZMZIHCGB.js @@ -1 +1 @@ -import{a as k}from"./chunk-LJL6JWG7.js";import"./chunk-DEPBX7UX.js";var x=9,E=256,b=257,B=12;function C(c,o,r){let i=o%8,n=Math.floor(o/8),h=8-i,g=o+r-(n+1)*8,l=8*(n+2)-(o+r),w=(n+2)*8-o;if(l=Math.max(0,l),n>=c.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),b;let u=c[n]&2**(8-i)-1;u<<=r-h;let s=u;if(n+1>>l;f<<=Math.max(0,r-w),s+=f}if(g>8&&n+2>>f;s+=t}return s}function p(c,o){for(let r=o.length-1;r>=0;r--)c.push(o[r]);return c}function D(c){let o=new Uint16Array(4093),r=new Uint8Array(4093);for(let e=0;e<=257;e++)o[e]=4096,r[e]=e;let i=258,n=x,h=0;function g(){i=258,n=x}function l(e){let a=C(e,h,n);return h+=n,a}function w(e,a){return r[i]=a,o[i]=e,i++,i-1}function u(e){let a=[];for(let y=e;y!==4096;y=o[y])a.push(r[y]);return a}let s=[];g();let f=new Uint8Array(c),t=l(f),d;for(;t!==b;){if(t===E){for(g(),t=l(f);t===E;)t=l(f);if(t===b)break;if(t>E)throw new Error(`corrupted code at scanline ${t}`);{let e=u(t);p(s,e),d=t}}else if(t=2**n&&(n===B?d=void 0:n++),t=l(f)}return new Uint8Array(s)}var A=class extends k{decodeBlock(o){return D(o,!1).buffer}};export{A as default}; +import{a as k}from"./chunk-YE4HGH46.js";import"./chunk-MG3ERZGY.js";var x=9,E=256,b=257,B=12;function C(c,o,r){let i=o%8,n=Math.floor(o/8),h=8-i,g=o+r-(n+1)*8,l=8*(n+2)-(o+r),w=(n+2)*8-o;if(l=Math.max(0,l),n>=c.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),b;let u=c[n]&2**(8-i)-1;u<<=r-h;let s=u;if(n+1>>l;f<<=Math.max(0,r-w),s+=f}if(g>8&&n+2>>f;s+=t}return s}function p(c,o){for(let r=o.length-1;r>=0;r--)c.push(o[r]);return c}function D(c){let o=new Uint16Array(4093),r=new Uint8Array(4093);for(let e=0;e<=257;e++)o[e]=4096,r[e]=e;let i=258,n=x,h=0;function g(){i=258,n=x}function l(e){let a=C(e,h,n);return h+=n,a}function w(e,a){return r[i]=a,o[i]=e,i++,i-1}function u(e){let a=[];for(let y=e;y!==4096;y=o[y])a.push(r[y]);return a}let s=[];g();let f=new Uint8Array(c),t=l(f),d;for(;t!==b;){if(t===E){for(g(),t=l(f);t===E;)t=l(f);if(t===b)break;if(t>E)throw new Error(`corrupted code at scanline ${t}`);{let e=u(t);p(s,e),d=t}}else if(t=2**n&&(n===B?d=void 0:n++),t=l(f)}return new Uint8Array(s)}var A=class extends k{decodeBlock(o){return D(o,!1).buffer}};export{A as default}; diff --git a/dist/chunk-5JY2ZKSE.js b/dist/chunk-ZSV22CKO.js similarity index 73% rename from dist/chunk-5JY2ZKSE.js rename to dist/chunk-ZSV22CKO.js index 48d52ea8..a925a21d 100644 --- a/dist/chunk-5JY2ZKSE.js +++ b/dist/chunk-ZSV22CKO.js @@ -1,18 +1,18 @@ -import{H as H0,r as O0}from"./chunk-CKPIETEW.js";import{$a as z0,Db as wu,Eb as Su,Fb as Tu,Wa as I0,Xb as eu,ab as vu,cc as N0,fa as R0,tb as P0}from"./chunk-ZKAUCJHV.js";import{e as iu}from"./chunk-DEPBX7UX.js";var Nu={};iu(Nu,{arrayReplaceAt:()=>Pu,assign:()=>X,escapeHtml:()=>I,escapeRE:()=>wr,fromCodePoint:()=>nu,has:()=>xr,isMdAsciiPunct:()=>V,isPunctChar:()=>j,isSpace:()=>k,isString:()=>gu,isValidEntityCode:()=>ku,isWhiteSpace:()=>U,lib:()=>Sr,normalizeReference:()=>Z,unescapeAll:()=>R,unescapeMd:()=>Cr});var du={};iu(du,{decode:()=>ru,encode:()=>lu,format:()=>W,parse:()=>tu});var U0={};function $e(u){let e=U0[u];if(e)return e;e=U0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);e.push(n)}for(let r=0;r=55296&&l<=57343?t+="\uFFFD\uFFFD\uFFFD":t+=String.fromCharCode(l),c+=6;continue}}if((o&248)===240&&c+91114111?t+="\uFFFD\uFFFD\uFFFD\uFFFD":(d-=65536,t+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),c+=9;continue}}t+="\uFFFD"}return t})}au.defaultChars=";/?:@&=+$,#";au.componentChars="";var ru=au;var j0={};function Ge(u){let e=j0[u];if(e)return e;e=j0[u]=[];for(let r=0;r<128;r++){let n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?e.push(n):e.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);let n=Ge(e),t="";for(let c=0,i=u.length;c=55296&&o<=57343){if(o>=55296&&o<=56319&&c+1=56320&&a<=57343){t+=encodeURIComponent(u[c]+u[c+1]),c++;continue}}t+="%EF%BF%BD";continue}t+=encodeURIComponent(u[c])}return t}su.defaultChars=";/?:@&=+$,-_.!~*'()#";su.componentChars="-_.!~*'()";var lu=su;function W(u){let e="";return e+=u.protocol||"",e+=u.slashes?"//":"",e+=u.auth?u.auth+"@":"",u.hostname&&u.hostname.indexOf(":")!==-1?e+="["+u.hostname+"]":e+=u.hostname||"",e+=u.port?":"+u.port:"",e+=u.pathname||"",e+=u.search||"",e+=u.hash||"",e}function fu(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var We=/^([a-z0-9.+-]+:)/i,Je=/:[0-9]*$/,Xe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Qe=["<",">",'"',"`"," ","\r",` -`," "],Ye=["{","}","|","\\","^","`"].concat(Qe),Ke=["'"].concat(Ye),V0=["%","/","?",";","#"].concat(Ke),Z0=["/","?","#"],ur=255,$0=/^[+a-z0-9A-Z_-]{0,63}$/,er=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,G0={javascript:!0,"javascript:":!0},W0={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function rr(u,e){if(u&&u instanceof fu)return u;let r=new fu;return r.parse(u,e),r}fu.prototype.parse=function(u,e){let r,n,t,c=u;if(c=c.trim(),!e&&u.split("#").length===1){let s=Xe.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}let i=We.exec(c);if(i&&(i=i[0],r=i.toLowerCase(),this.protocol=i,c=c.substr(i.length)),(e||i||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(t=c.substr(0,2)==="//",t&&!(i&&G0[i])&&(c=c.substr(2),this.slashes=!0)),!G0[i]&&(t||i&&!W0[i])){let s=-1;for(let f=0;f127?h+="x":h+=E[x];if(!h.match($0)){let x=f.slice(0,g),m=f.slice(g+1),_=E.match(er);_&&(x.push(_[1]),m.unshift(_[2])),m.length&&(c=m.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>ur&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let o=c.indexOf("#");o!==-1&&(this.hash=c.substr(o),c=c.slice(0,o));let a=c.indexOf("?");return a!==-1&&(this.search=c.substr(a),c=c.slice(0,a)),c&&(this.pathname=c),W0[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};fu.prototype.parseHost=function(u){let e=Je.exec(u);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),u=u.substr(0,u.length-e.length)),u&&(this.hostname=u)};var tu=rr;var Lu={};iu(Lu,{Any:()=>pu,Cc:()=>bu,Cf:()=>J0,P:()=>J,S:()=>hu,Z:()=>mu});var pu=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var bu=/[\0-\x1F\x7F-\x9F]/;var J0=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var J=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var hu=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var mu=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var X0=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(u=>u.charCodeAt(0)));var Q0=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(u=>u.charCodeAt(0)));var qu,tr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Mu=(qu=String.fromCodePoint)!==null&&qu!==void 0?qu:function(u){let e="";return u>65535&&(u-=65536,e+=String.fromCharCode(u>>>10&1023|55296),u=56320|u&1023),e+=String.fromCharCode(u),e};function Bu(u){var e;return u>=55296&&u<=57343||u>1114111?65533:(e=tr.get(u))!==null&&e!==void 0?e:u}var F=function(u){return u[u.NUM=35]="NUM",u[u.SEMI=59]="SEMI",u[u.EQUALS=61]="EQUALS",u[u.ZERO=48]="ZERO",u[u.NINE=57]="NINE",u[u.LOWER_A=97]="LOWER_A",u[u.LOWER_F=102]="LOWER_F",u[u.LOWER_X=120]="LOWER_X",u[u.LOWER_Z=122]="LOWER_Z",u[u.UPPER_A=65]="UPPER_A",u[u.UPPER_F=70]="UPPER_F",u[u.UPPER_Z=90]="UPPER_Z",u}(F||{}),nr=32,H=function(u){return u[u.VALUE_LENGTH=49152]="VALUE_LENGTH",u[u.BRANCH_LENGTH=16256]="BRANCH_LENGTH",u[u.JUMP_TABLE=127]="JUMP_TABLE",u}(H||{});function Ru(u){return u>=F.ZERO&&u<=F.NINE}function cr(u){return u>=F.UPPER_A&&u<=F.UPPER_F||u>=F.LOWER_A&&u<=F.LOWER_F}function or(u){return u>=F.UPPER_A&&u<=F.UPPER_Z||u>=F.LOWER_A&&u<=F.LOWER_Z||Ru(u)}function ir(u){return u===F.EQUALS||or(u)}var A=function(u){return u[u.EntityStart=0]="EntityStart",u[u.NumericStart=1]="NumericStart",u[u.NumericDecimal=2]="NumericDecimal",u[u.NumericHex=3]="NumericHex",u[u.NamedEntity=4]="NamedEntity",u}(A||{}),B=function(u){return u[u.Legacy=0]="Legacy",u[u.Strict=1]="Strict",u[u.Attribute=2]="Attribute",u}(B||{}),xu=class{constructor(e,r,n){this.decodeTree=e,this.emitCodePoint=r,this.errors=n,this.state=A.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=B.Strict}startEntity(e){this.decodeMode=e,this.state=A.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,r){switch(this.state){case A.EntityStart:return e.charCodeAt(r)===F.NUM?(this.state=A.NumericStart,this.consumed+=1,this.stateNumericStart(e,r+1)):(this.state=A.NamedEntity,this.stateNamedEntity(e,r));case A.NumericStart:return this.stateNumericStart(e,r);case A.NumericDecimal:return this.stateNumericDecimal(e,r);case A.NumericHex:return this.stateNumericHex(e,r);case A.NamedEntity:return this.stateNamedEntity(e,r)}}stateNumericStart(e,r){return r>=e.length?-1:(e.charCodeAt(r)|nr)===F.LOWER_X?(this.state=A.NumericHex,this.consumed+=1,this.stateNumericHex(e,r+1)):(this.state=A.NumericDecimal,this.stateNumericDecimal(e,r))}addToNumericResult(e,r,n,t){if(r!==n){let c=n-r;this.result=this.result*Math.pow(t,c)+parseInt(e.substr(r,c),t),this.consumed+=c}}stateNumericHex(e,r){let n=r;for(;r>14;for(;r>14,c!==0){if(i===F.SEMI)return this.emitNamedEntityData(this.treeIndex,c,this.consumed+this.excess);this.decodeMode!==B.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:r,decodeTree:n}=this,t=(n[r]&H.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,t,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,r,n){let{decodeTree:t}=this;return this.emitCodePoint(r===1?t[e]&~H.VALUE_LENGTH:t[e+1],n),r===3&&this.emitCodePoint(t[e+2],n),n}end(){var e;switch(this.state){case A.NamedEntity:return this.result!==0&&(this.decodeMode!==B.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case A.NumericDecimal:return this.emitNumericEntity(0,2);case A.NumericHex:return this.emitNumericEntity(0,3);case A.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case A.EntityStart:return 0}}};function Y0(u){let e="",r=new xu(u,n=>e+=Mu(n));return function(t,c){let i=0,o=0;for(;(o=t.indexOf("&",o))>=0;){e+=t.slice(i,o),r.startEntity(c);let s=r.write(t,o+1);if(s<0){i=o+r.end();break}i=o+s,o=s===0?i+1:i}let a=e+t.slice(i);return e="",a}}function ar(u,e,r,n){let t=(e&H.BRANCH_LENGTH)>>7,c=e&H.JUMP_TABLE;if(t===0)return c!==0&&n===c?r:-1;if(c){let a=n-c;return a<0||a>=t?-1:u[r+a]-1}let i=r,o=i+t-1;for(;i<=o;){let a=i+o>>>1,s=u[a];if(sn)o=a-1;else return u[a+t]}return-1}var sr=Y0(X0),bn=Y0(Q0);function N(u,e=B.Legacy){return sr(u,e)}function _u(u){for(let e=1;eu.codePointAt(e):(u,e)=>(u.charCodeAt(e)&64512)===55296?(u.charCodeAt(e)-55296)*1024+u.charCodeAt(e+1)-56320+65536:u.charCodeAt(e);function Iu(u,e){return function(n){let t,c=0,i="";for(;t=u.exec(n);)c!==t.index&&(i+=n.substring(c,t.index)),i+=e.get(t[0].charCodeAt(0)),c=t.index+1;return i+n.substring(c)}}var K0=Iu(/[&<>'"]/g,fr),ue=Iu(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),ee=Iu(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));function hr(u){return Object.prototype.toString.call(u)}function gu(u){return hr(u)==="[object String]"}var mr=Object.prototype.hasOwnProperty;function xr(u,e){return mr.call(u,e)}function X(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){u[n]=r[n]})}}),u}function Pu(u,e,r){return[].concat(u.slice(0,e),r,u.slice(e+1))}function ku(u){return!(u>=55296&&u<=57343||u>=64976&&u<=65007||(u&65535)===65535||(u&65535)===65534||u>=0&&u<=8||u===11||u>=14&&u<=31||u>=127&&u<=159||u>1114111)}function nu(u){if(u>65535){u-=65536;let e=55296+(u>>10),r=56320+(u&1023);return String.fromCharCode(e,r)}return String.fromCharCode(u)}var ne=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,_r=/&([a-z#][a-z0-9]{1,31});/gi,gr=new RegExp(ne.source+"|"+_r.source,"gi"),kr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Dr(u,e){if(e.charCodeAt(0)===35&&kr.test(e)){let n=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10);return ku(n)?nu(n):u}let r=N(u);return r!==u?r:u}function Cr(u){return u.indexOf("\\")<0?u:u.replace(ne,"$1")}function R(u){return u.indexOf("\\")<0&&u.indexOf("&")<0?u:u.replace(gr,function(e,r,n){return r||Dr(e,n)})}var Er=/[&<>"]/,yr=/[&<>"]/g,Ar={"&":"&","<":"<",">":">",'"':"""};function Fr(u){return Ar[u]}function I(u){return Er.test(u)?u.replace(yr,Fr):u}var vr=/[.?*+^$[\]\\(){}|-]/g;function wr(u){return u.replace(vr,"\\$&")}function k(u){switch(u){case 9:case 32:return!0}return!1}function U(u){if(u>=8192&&u<=8202)return!0;switch(u){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function j(u){return J.test(u)||hu.test(u)}function V(u){switch(u){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Z(u){return u=u.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(u=u.replace(/ẞ/g,"\xDF")),u.toLowerCase().toUpperCase()}var Sr={mdurl:du,ucmicro:Lu};var ju={};iu(ju,{parseLinkDestination:()=>Hu,parseLinkLabel:()=>Ou,parseLinkTitle:()=>Uu});function Ou(u,e,r){let n,t,c,i,o=u.posMax,a=u.pos;for(u.pos=e+1,n=1;u.pos32))return c;if(n===41){if(i===0)break;i--}t++}return e===t||i!==0||(c.str=R(u.slice(e,t)),c.pos=t,c.ok=!0),c}function Uu(u,e,r,n){let t,c=e,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)i.str=n.str,i.marker=n.marker;else{if(c>=r)return i;let o=u.charCodeAt(c);if(o!==34&&o!==39&&o!==40)return i;e++,c++,o===40&&(o=41),i.marker=o}for(;c"+I(c.content)+""};L.code_block=function(u,e,r,n,t){let c=u[e];return""+I(u[e].content)+` -`};L.fence=function(u,e,r,n,t){let c=u[e],i=c.info?R(c.info).trim():"",o="",a="";if(i){let l=i.split(/(\s+)/g);o=l[0],a=l.slice(2).join("")}let s;if(r.highlight?s=r.highlight(c.content,o,a)||I(c.content):s=I(c.content),s.indexOf("${s} -`}return`
${s}
-`};L.image=function(u,e,r,n,t){let c=u[e];return c.attrs[c.attrIndex("alt")][1]=t.renderInlineAsText(c.children,r,n),t.renderToken(u,e,r)};L.hardbreak=function(u,e,r){return r.xhtmlOut?`
+import{H as U0,r as H0}from"./chunk-GDT23CSW.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} +`}return`
${s}
+`};L.image=function(u,e,r,t,n){let c=u[e];return c.attrs[c.attrIndex("alt")][1]=n.renderInlineAsText(c.children,r,t),n.renderToken(u,e,r)};L.hardbreak=function(u,e,r){return r.xhtmlOut?`
`:`
`};L.softbreak=function(u,e,r){return r.breaks?r.xhtmlOut?`
`:`
`:` -`};L.text=function(u,e){return I(u[e].content)};L.html_block=function(u,e){return u[e].content};L.html_inline=function(u,e){return u[e].content};function Q(){this.rules=X({},L)}Q.prototype.renderAttrs=function(e){let r,n,t;if(!e.attrs)return"";for(t="",r=0,n=e.attrs.length;r -`:">",c};Q.prototype.renderInline=function(u,e,r){let n="",t=this.rules;for(let c=0,i=u.length;c=0&&(n=this.attrs[r][1]),n};Y.prototype.attrJoin=function(e,r){let n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};var z=Y;function oe(u,e,r){this.src=u,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}oe.prototype.Token=z;var ie=oe;var Tr=/\r\n?|\n/g,Lr=/\0/g;function Vu(u){let e;e=u.src.replace(Tr,` -`),e=e.replace(Lr,"\uFFFD"),u.src=e}function Zu(u){let e;u.inlineMode?(e=new u.Token("inline","",0),e.content=u.src,e.map=[0,1],e.children=[],u.tokens.push(e)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function $u(u){let e=u.tokens;for(let r=0,n=e.length;r\s]/i.test(u)}function Mr(u){return/^<\/a\s*>/i.test(u)}function Gu(u){let e=u.tokens;if(u.md.options.linkify)for(let r=0,n=e.length;r=0;i--){let o=t[i];if(o.type==="link_close"){for(i--;t[i].level!==o.level&&t[i].type!=="link_open";)i--;continue}if(o.type==="html_inline"&&(qr(o.content)&&c>0&&c--,Mr(o.content)&&c++),!(c>0)&&o.type==="text"&&u.md.linkify.test(o.content)){let a=o.content,s=u.md.linkify.match(a),l=[],d=o.level,b=0;s.length>0&&s[0].index===0&&i>0&&t[i-1].type==="text_special"&&(s=s.slice(1));for(let p=0;pb){let _=new u.Token("text","",0);_.content=a.slice(b,E),_.level=d,l.push(_)}let h=new u.Token("link_open","a",1);h.attrs=[["href",g]],h.level=d++,h.markup="linkify",h.info="auto",l.push(h);let x=new u.Token("text","",0);x.content=D,x.level=d,l.push(x);let m=new u.Token("link_close","a",-1);m.level=--d,m.markup="linkify",m.info="auto",l.push(m),b=s[p].lastIndex}if(b=0;r--){let n=u[r];n.type==="text"&&!e&&(n.content=n.content.replace(Rr,zr)),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function Nr(u){let e=0;for(let r=u.length-1;r>=0;r--){let n=u[r];n.type==="text"&&!e&&ae.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&e--,n.type==="link_close"&&n.info==="auto"&&e++}}function Wu(u){let e;if(u.md.options.typographer)for(e=u.tokens.length-1;e>=0;e--)u.tokens[e].type==="inline"&&(Br.test(u.tokens[e].content)&&Pr(u.tokens[e].children),ae.test(u.tokens[e].content)&&Nr(u.tokens[e].children))}var Or=/['"]/,se=/['"]/g,le="\u2019";function Du(u,e,r){return u.slice(0,e)+r+u.slice(e+1)}function Hr(u,e){let r,n=[];for(let t=0;t=0&&!(n[r].level<=i);r--);if(n.length=r+1,c.type!=="text")continue;let o=c.content,a=0,s=o.length;u:for(;a=0)f=o.charCodeAt(l.index-1);else for(r=t-1;r>=0&&!(u[r].type==="softbreak"||u[r].type==="hardbreak");r--)if(u[r].content){f=u[r].content.charCodeAt(u[r].content.length-1);break}let g=32;if(a=48&&f<=57&&(b=d=!1),d&&b&&(d=D,b=E),!d&&!b){p&&(c.content=Du(c.content,l.index,le));continue}if(b)for(r=n.length-1;r>=0;r--){let m=n[r];if(n[r].level=0;e--)u.tokens[e].type!=="inline"||!Or.test(u.tokens[e].content)||Hr(u.tokens[e].children,u)}function Xu(u){let e,r,n=u.tokens,t=n.length;for(let c=0;c0&&this.level++,this.tokens.push(n),n};q.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};q.prototype.skipEmptyLines=function(e){for(let r=this.lineMax;er;)if(!k(this.src.charCodeAt(--e)))return e+1;return e};q.prototype.skipChars=function(e,r){for(let n=this.src.length;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e};q.prototype.getLines=function(e,r,n,t){if(e>=r)return"";let c=new Array(r-e);for(let i=0,o=e;on?c[i]=new Array(a-n+1).join(" ")+this.src.slice(l,d):c[i]=this.src.slice(l,d)}return c.join("")};q.prototype.Token=z;var de=q;var Ur=65536;function Ku(u,e){let r=u.bMarks[e]+u.tShift[e],n=u.eMarks[e];return u.src.slice(r,n)}function pe(u){let e=[],r=u.length,n=0,t=u.charCodeAt(n),c=!1,i=0,o="";for(;nr)return!1;let t=e+1;if(u.sCount[t]=4)return!1;let c=u.bMarks[t]+u.tShift[t];if(c>=u.eMarks[t])return!1;let i=u.src.charCodeAt(c++);if(i!==124&&i!==45&&i!==58||c>=u.eMarks[t])return!1;let o=u.src.charCodeAt(c++);if(o!==124&&o!==45&&o!==58&&!k(o)||i===45&&k(o))return!1;for(;c=4)return!1;s=pe(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();let d=s.length;if(d===0||d!==l.length)return!1;if(n)return!0;let b=u.parentType;u.parentType="table";let p=u.md.block.ruler.getRules("blockquote"),f=u.push("table_open","table",1),g=[e,0];f.map=g;let D=u.push("thead_open","thead",1);D.map=[e,e+1];let E=u.push("tr_open","tr",1);E.map=[e,e+1];for(let m=0;m=4||(s=pe(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),x+=d-s.length,x>Ur))break;if(t===e+2){let C=u.push("tbody_open","tbody",1);C.map=h=[e+2,0]}let _=u.push("tr_open","tr",1);_.map=[t,t+1];for(let C=0;C=4){n++,t=n;continue}break}u.line=t;let c=u.push("code_block","code",0);return c.content=u.getLines(e,t,4+u.blkIndent,!1)+` -`,c.map=[e,u.line],!0}function r0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||t+3>c)return!1;let i=u.src.charCodeAt(t);if(i!==126&&i!==96)return!1;let o=t;t=u.skipChars(t,i);let a=t-o;if(a<3)return!1;let s=u.src.slice(o,t),l=u.src.slice(t,c);if(i===96&&l.indexOf(String.fromCharCode(i))>=0)return!1;if(n)return!0;let d=e,b=!1;for(;d++,!(d>=r||(t=o=u.bMarks[d]+u.tShift[d],c=u.eMarks[d],t=4)&&(t=u.skipChars(t,i),!(t-o=4||u.src.charCodeAt(t)!==62)return!1;if(n)return!0;let o=[],a=[],s=[],l=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let p=!1,f;for(f=e;f=c)break;if(u.src.charCodeAt(t++)===62&&!x){let _=u.sCount[f]+1,C,y;u.src.charCodeAt(t)===32?(t++,_++,y=!1,C=!0):u.src.charCodeAt(t)===9?(C=!0,(u.bsCount[f]+_)%4===3?(t++,_++,y=!1):y=!0):C=!1;let S=_;for(o.push(u.bMarks[f]),u.bMarks[f]=t;t=c,a.push(u.bsCount[f]),u.bsCount[f]=u.sCount[f]+1+(C?1:0),s.push(u.sCount[f]),u.sCount[f]=S-_,l.push(u.tShift[f]),u.tShift[f]=t-u.bMarks[f];continue}if(p)break;let m=!1;for(let _=0,C=d.length;_";let E=[e,0];D.map=E,u.md.block.tokenize(u,e,f);let h=u.push("blockquote_close","blockquote",-1);h.markup=">",u.lineMax=i,u.parentType=b,E[1]=u.line;for(let x=0;x=4)return!1;let c=u.bMarks[e]+u.tShift[e],i=u.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let o=1;for(;c=n)return-1;let c=u.src.charCodeAt(t++);if(c<48||c>57)return-1;for(;;){if(t>=n)return-1;if(c=u.src.charCodeAt(t++),c>=48&&c<=57){if(t-r>=10)return-1;continue}if(c===41||c===46)break;return-1}return t=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]=u.blkIndent&&(l=!0);let d,b,p;if((p=he(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,p-1)),l&&b!==1)return!1}else if((p=be(u,a))>=0)d=!1;else return!1;if(l&&u.skipSpaces(p)>=u.eMarks[a])return!1;if(n)return!0;let f=u.src.charCodeAt(p-1),g=u.tokens.length;d?(o=u.push("ordered_list_open","ol",1),b!==1&&(o.attrs=[["start",b]])):o=u.push("bullet_list_open","ul",1);let D=[a,0];o.map=D,o.markup=String.fromCharCode(f);let E=!1,h=u.md.block.ruler.getRules("list"),x=u.parentType;for(u.parentType="list";a=t?y=1:y=_-m,y>4&&(y=1);let S=m+y;o=u.push("list_item_open","li",1),o.markup=String.fromCharCode(f);let P=[a,0];o.map=P,d&&(o.info=u.src.slice(i,p-1));let uu=u.tight,Fu=u.tShift[a],je=u.sCount[a],Ve=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=S,u.tight=!0,u.tShift[a]=C-u.bMarks[a],u.sCount[a]=_,C>=t&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,r):u.md.block.tokenize(u,a,r,!0),(!u.tight||E)&&(s=!1),E=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=Ve,u.tShift[a]=Fu,u.sCount[a]=je,u.tight=uu,o=u.push("list_item_close","li",-1),o.markup=String.fromCharCode(f),a=u.line,P[1]=a,a>=r||u.sCount[a]=4)break;let B0=!1;for(let G=0,Ze=h.length;G=4||u.src.charCodeAt(t)!==91)return!1;function o(h){let x=u.lineMax;if(h>=x||u.isEmpty(h))return null;let m=!1;if(u.sCount[h]-u.blkIndent>3&&(m=!0),u.sCount[h]<0&&(m=!0),!m){let y=u.md.block.ruler.getRules("reference"),S=u.parentType;u.parentType="reference";let P=!1;for(let uu=0,Fu=y.length;uu"u"&&(u.env.references={}),typeof u.env.references[E]>"u"&&(u.env.references[E]={title:D,href:d}),u.line=i),!0):!1}var me=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var Vr="[a-zA-Z_:][a-zA-Z0-9:._-]*",Zr="[^\"'=<>`\\x00-\\x20]+",$r="'[^']*'",Gr='"[^"]*"',Wr="(?:"+Zr+"|"+$r+"|"+Gr+")",Jr="(?:\\s+"+Vr+"(?:\\s*=\\s*"+Wr+")?)",xe="<[A-Za-z][A-Za-z0-9\\-]*"+Jr+"*\\s*\\/?>",_e="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Xr="",Qr="<[?][\\s\\S]*?[?]>",Yr="]*>",Kr="",ge=new RegExp("^(?:"+xe+"|"+_e+"|"+Xr+"|"+Qr+"|"+Yr+"|"+Kr+")"),ke=new RegExp("^(?:"+xe+"|"+_e+")");var K=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(ke.source+"\\s*$"),/^$/,!1]];function i0(u,e,r,n){let t=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(t)!==60)return!1;let i=u.src.slice(t,c),o=0;for(;o=4)return!1;let i=u.src.charCodeAt(t);if(i!==35||t>=c)return!1;let o=1;for(i=u.src.charCodeAt(++t);i===35&&t6||tt&&k(u.src.charCodeAt(a-1))&&(c=a),u.line=e+1;let s=u.push("heading_open","h"+String(o),1);s.markup="########".slice(0,o),s.map=[e,u.line];let l=u.push("inline","",0);l.content=u.src.slice(t,c).trim(),l.map=[e,u.line],l.children=[];let d=u.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function s0(u,e,r){let n=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;let t=u.parentType;u.parentType="paragraph";let c=0,i,o=e+1;for(;o3)continue;if(u.sCount[o]>=u.blkIndent){let p=u.bMarks[o]+u.tShift[o],f=u.eMarks[o];if(p=f))){c=i===61?1:2;break}}if(u.sCount[o]<0)continue;let b=!1;for(let p=0,f=n.length;p3||u.sCount[c]<0)continue;let s=!1;for(let l=0,d=n.length;l=r||u.sCount[i]=c){u.line=r;break}let a=u.line,s=!1;for(let l=0;l=u.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");u.tight=!o,u.isEmpty(u.line-1)&&(o=!0),i=u.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],t={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(t),n};cu.prototype.scanDelims=function(u,e){let r=this.posMax,n=this.src.charCodeAt(u),t=u>0?this.src.charCodeAt(u-1):32,c=u;for(;c0)return!1;let r=u.pos,n=u.posMax;if(r+3>n||u.src.charCodeAt(r)!==58||u.src.charCodeAt(r+1)!==47||u.src.charCodeAt(r+2)!==47)return!1;let t=u.pending.match(et);if(!t)return!1;let c=t[1],i=u.md.linkify.matchAtStart(u.src.slice(r-c.length));if(!i)return!1;let o=i.url;if(o.length<=c.length)return!1;o=o.replace(/\*+$/,"");let a=u.md.normalizeLink(o);if(!u.md.validateLink(a))return!1;if(!e){u.pending=u.pending.slice(0,-c.length);let s=u.push("link_open","a",1);s.attrs=[["href",a]],s.markup="linkify",s.info="auto";let l=u.push("text","",0);l.content=u.md.normalizeLinkText(o);let d=u.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return u.pos+=o.length-c.length,!0}function p0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==10)return!1;let n=u.pending.length-1,t=u.posMax;if(!e)if(n>=0&&u.pending.charCodeAt(n)===32)if(n>=1&&u.pending.charCodeAt(n-1)===32){let c=n-1;for(;c>=1&&u.pending.charCodeAt(c-1)===32;)c--;u.pending=u.pending.slice(0,c),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(r++;r?@[]^_`{|}~-".split("").forEach(function(u){b0[u.charCodeAt(0)]=1});function h0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let t=u.src.charCodeAt(r);if(t===10){for(e||u.push("hardbreak","br",0),r++;r=55296&&t<=56319&&r+1=56320&&o<=57343&&(c+=u.src[r+1],r++)}let i="\\"+c;if(!e){let o=u.push("text_special","",0);t<256&&b0[t]!==0?o.content=c:o.content=i,o.markup=i,o.info="escape"}return u.pos=r+1,!0}function m0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==96)return!1;let t=r;r++;let c=u.posMax;for(;r=0;n--){let t=e[n];if(t.marker!==95&&t.marker!==42||t.end===-1)continue;let c=e[t.end],i=n>0&&e[n-1].end===t.end+1&&e[n-1].marker===t.marker&&e[n-1].token===t.token-1&&e[t.end+1].token===c.token+1,o=String.fromCharCode(t.marker),a=u.tokens[t.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?o+o:o,a.content="";let s=u.tokens[c.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?o+o:o,s.content="",i&&(u.tokens[e[n-1].token].content="",u.tokens[e[t.end+1].token].content="",n--)}}function ct(u){let e=u.tokens_meta,r=u.tokens_meta.length;ye(u,u.delimiters);for(let n=0;n=d)return!1;if(a=f,t=u.md.helpers.parseLinkDestination(u.src,f,u.posMax),t.ok){for(i=u.md.normalizeLink(t.str),u.md.validateLink(i)?f=t.pos:i="",a=f;f=d||u.src.charCodeAt(f)!==41)&&(s=!0),f++}if(s){if(typeof u.env.references>"u")return!1;if(f=0?n=u.src.slice(a,f++):f=p+1):f=p+1,n||(n=u.src.slice(b,p)),c=u.env.references[Z(n)],!c)return u.pos=l,!1;i=c.href,o=c.title}if(!e){u.pos=b,u.posMax=p;let g=u.push("link_open","a",1),D=[["href",i]];g.attrs=D,o&&D.push(["title",o]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=f,u.posMax=d,!0}function k0(u,e){let r,n,t,c,i,o,a,s,l="",d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;let p=u.pos+2,f=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(f<0)return!1;if(c=f+1,c=b)return!1;for(s=c,o=u.md.helpers.parseLinkDestination(u.src,c,u.posMax),o.ok&&(l=u.md.normalizeLink(o.str),u.md.validateLink(l)?c=o.pos:l=""),s=c;c=b||u.src.charCodeAt(c)!==41)return u.pos=d,!1;c++}else{if(typeof u.env.references>"u")return!1;if(c=0?t=u.src.slice(s,c++):c=f+1):c=f+1,t||(t=u.src.slice(p,f)),i=u.env.references[Z(t)],!i)return u.pos=d,!1;l=i.href,a=i.title}if(!e){n=u.src.slice(p,f);let g=[];u.md.inline.parse(n,u.md,u.env,g);let D=u.push("image","img",0),E=[["src",l],["alt",""]];D.attrs=E,D.children=g,D.content=n,a&&E.push(["title",a])}return u.pos=c,u.posMax=b,!0}var ot=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,it=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function D0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==60)return!1;let n=u.pos,t=u.posMax;for(;;){if(++r>=t)return!1;let i=u.src.charCodeAt(r);if(i===60)return!1;if(i===62)break}let c=u.src.slice(n+1,r);if(it.test(c)){let i=u.md.normalizeLink(c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}if(ot.test(c)){let i=u.md.normalizeLink("mailto:"+c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}return!1}function at(u){return/^\s]/i.test(u)}function st(u){return/^<\/a\s*>/i.test(u)}function lt(u){let e=u|32;return e>=97&&e<=122}function C0(u,e){if(!u.md.options.html)return!1;let r=u.posMax,n=u.pos;if(u.src.charCodeAt(n)!==60||n+2>=r)return!1;let t=u.src.charCodeAt(n+1);if(t!==33&&t!==63&&t!==47&&!lt(t))return!1;let c=u.src.slice(n).match(ge);if(!c)return!1;if(!e){let i=u.push("html_inline","",0);i.content=c[0],at(i.content)&&u.linkLevel++,st(i.content)&&u.linkLevel--}return u.pos+=c[0].length,!0}var ft=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,dt=/^&([a-z][a-z0-9]{1,31});/i;function E0(u,e){let r=u.pos,n=u.posMax;if(u.src.charCodeAt(r)!==38||r+1>=n)return!1;if(u.src.charCodeAt(r+1)===35){let c=u.src.slice(r).match(ft);if(c){if(!e){let i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),o=u.push("text_special","",0);o.content=ku(i)?nu(i):nu(65533),o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}else{let c=u.src.slice(r).match(dt);if(c){let i=N(c[0]);if(i!==c[0]){if(!e){let o=u.push("text_special","",0);o.content=i,o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}}return!1}function Ae(u){let e={},r=u.length;if(!r)return;let n=0,t=-2,c=[];for(let i=0;ia;s-=c[s]+1){let d=u[s];if(d.marker===o.marker&&d.open&&d.end<0){let b=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(b=!0),!b){let p=s>0&&!u[s-1].open?c[s-1]+1:0;c[i]=i-s+p,c[s]=p,o.open=!1,d.end=i,d.close=!1,l=-1,t=-2;break}}}l!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}function y0(u){let e=u.tokens_meta,r=u.tokens_meta.length;Ae(u.delimiters);for(let n=0;n0&&n++,t[e].type==="text"&&e+1=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,c[e]=u.pos};ou.prototype.tokenize=function(u){let e=this.ruler.getRules(""),r=e.length,n=u.posMax,t=u.md.options.maxNesting;for(;u.pos=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=n)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};ou.prototype.parse=function(u,e,r,n){let t=new this.State(u,e,r,n);this.tokenize(t);let c=this.ruler2.getRules(""),i=c.length;for(let o=0;o|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function w0(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){u[n]=r[n]})}),u}function Au(u){return Object.prototype.toString.call(u)}function pt(u){return Au(u)==="[object String]"}function bt(u){return Au(u)==="[object Object]"}function ht(u){return Au(u)==="[object RegExp]"}function we(u){return Au(u)==="[object Function]"}function mt(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Te={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function xt(u){return Object.keys(u||{}).reduce(function(e,r){return e||Te.hasOwnProperty(r)},!1)}var _t={"http:":{validate:function(u,e,r){let n=u.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,e,r){let n=u.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,r){let n=u.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},gt="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",kt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Dt(u){u.__index__=-1,u.__text_cache__=""}function Ct(u){return function(e,r){let n=e.slice(r);return u.test(n)?n.match(u)[0].length:0}}function Se(){return function(u,e){e.normalize(u)}}function yu(u){let e=u.re=ve(u.__opts__),r=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||r.push(gt),r.push(e.src_xn),e.src_tlds=r.join("|");function n(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");let t=[];u.__compiled__={};function c(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(u.__schemas__).forEach(function(o){let a=u.__schemas__[o];if(a===null)return;let s={validate:null,link:null};if(u.__compiled__[o]=s,bt(a)){ht(a.validate)?s.validate=Ct(a.validate):we(a.validate)?s.validate=a.validate:c(o,a),we(a.normalize)?s.normalize=a.normalize:a.normalize?c(o,a):s.normalize=Se();return}if(pt(a)){t.push(o);return}c(o,a)}),t.forEach(function(o){u.__compiled__[u.__schemas__[o]]&&(u.__compiled__[o].validate=u.__compiled__[u.__schemas__[o]].validate,u.__compiled__[o].normalize=u.__compiled__[u.__schemas__[o]].normalize)}),u.__compiled__[""]={validate:null,normalize:Se()};let i=Object.keys(u.__compiled__).filter(function(o){return o.length>0&&u.__compiled__[o]}).map(mt).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),Dt(u)}function Et(u,e){let r=u.__index__,n=u.__last_index__,t=u.__text_cache__.slice(r,n);this.schema=u.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=t,this.text=t,this.url=t}function S0(u,e){let r=new Et(u,e);return u.__compiled__[r.schema].normalize(r,u),r}function v(u,e){if(!(this instanceof v))return new v(u,e);e||xt(u)&&(e=u,u={}),this.__opts__=w0({},Te,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=w0({},_t,u),this.__compiled__={},this.__tlds__=kt,this.__tlds_replaced__=!1,this.re={},yu(this)}v.prototype.add=function(e,r){return this.__schemas__[e]=r,yu(this),this};v.prototype.set=function(e){return this.__opts__=w0(this.__opts__,e),this};v.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,n,t,c,i,o,a,s,l;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],a.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s=0&&(t=e.match(this.re.email_fuzzy))!==null&&(i=t.index+t[1].length,o=t.index+t[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o))),this.__index__>=0};v.prototype.pretest=function(e){return this.re.pretest.test(e)};v.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};v.prototype.match=function(e){let r=[],n=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(S0(this,n)),n=this.__last_index__);let t=n?e.slice(n):e;for(;this.test(t);)r.push(S0(this,n)),t=t.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};v.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let r=this.re.schema_at_start.exec(e);if(!r)return null;let n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,S0(this,0)):null};v.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,t,c){return n!==c[t-1]}).reverse(),yu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,yu(this),this)};v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};v.prototype.onCompile=function(){};var Le=v;var Me="-",yt=/^xn--/,At=/[^\0-\x7F]/,Ft=/[\x2E\u3002\uFF0E\uFF61]/g,vt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T0=35,M=Math.floor,L0=String.fromCharCode;function O(u){throw new RangeError(vt[u])}function wt(u,e){let r=[],n=u.length;for(;n--;)r[n]=e(u[n]);return r}function Be(u,e){let r=u.split("@"),n="";r.length>1&&(n=r[0]+"@",u=r[1]),u=u.replace(Ft,".");let t=u.split("."),c=wt(t,e).join(".");return n+c}function Re(u){let e=[],r=0,n=u.length;for(;r=55296&&t<=56319&&rString.fromCodePoint(...u),Tt=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:36},qe=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},Ie=function(u,e,r){let n=0;for(u=r?M(u/700):u>>1,u+=M(u/e);u>T0*26>>1;n+=36)u=M(u/T0);return M(n+(T0+1)*u/(u+38))},ze=function(u){let e=[],r=u.length,n=0,t=128,c=72,i=u.lastIndexOf(Me);i<0&&(i=0);for(let o=0;o=128&&O("not-basic"),e.push(u.charCodeAt(o));for(let o=i>0?i+1:0;o=r&&O("invalid-input");let b=Tt(u.charCodeAt(o++));b>=36&&O("invalid-input"),b>M((2147483647-n)/l)&&O("overflow"),n+=b*l;let p=d<=c?1:d>=c+26?26:d-c;if(bM(2147483647/f)&&O("overflow"),l*=f}let s=e.length+1;c=Ie(n-a,s,a==0),M(n/s)>2147483647-t&&O("overflow"),t+=M(n/s),n%=s,e.splice(n++,0,t)}return String.fromCodePoint(...e)},Pe=function(u){let e=[];u=Re(u);let r=u.length,n=128,t=0,c=72;for(let a of u)a<128&&e.push(L0(a));let i=e.length,o=i;for(i&&e.push(Me);o=n&&lM((2147483647-t)/s)&&O("overflow"),t+=(a-n)*s,n=a;for(let l of u)if(l2147483647&&O("overflow"),l===n){let d=t;for(let b=36;;b+=36){let p=b<=c?1:b>=c+26?26:b-c;if(d=0))try{e.hostname=q0.toASCII(e.hostname)}catch{}return lu(W(e))}function Nt(u){let e=tu(u,!0);if(e.hostname&&(!e.protocol||Ue.indexOf(e.protocol)>=0))try{e.hostname=q0.toUnicode(e.hostname)}catch{}return ru(W(e),ru.defaultChars+"%")}function w(u,e){if(!(this instanceof w))return new w(u,e);e||gu(u)||(e=u||{},u="default"),this.inline=new Fe,this.block=new De,this.core=new fe,this.renderer=new ce,this.linkify=new Le,this.validateLink=zt,this.normalizeLink=Pt,this.normalizeLinkText=Nt,this.utils=Nu,this.helpers=X({},ju),this.options={},this.configure(u),e&&this.set(e)}w.prototype.set=function(u){return X(this.options,u),this};w.prototype.configure=function(u){let e=this;if(gu(u)){let r=u;if(u=Bt[r],!u)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(r){u.components[r].rules&&e[r].ruler.enableOnly(u.components[r].rules),u.components[r].rules2&&e[r].ruler2.enableOnly(u.components[r].rules2)}),this};w.prototype.enable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.enable(u,!0))},this),r=r.concat(this.inline.ruler2.enable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};w.prototype.disable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(t){r=r.concat(this[t].ruler.disable(u,!0))},this),r=r.concat(this.inline.ruler2.disable(u,!0));let n=u.filter(function(t){return r.indexOf(t)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};w.prototype.use=function(u){let e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this};w.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");let r=new this.core.State(u,this,e);return this.core.process(r),r.tokens};w.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)};w.prototype.parseInline=function(u,e){let r=new this.core.State(u,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};w.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};var M0=w;var ai=(()=>{let e=class e{constructor(n,t){this.ds=n,this.san=t,this.ds.getFile("changelog.md").then(c=>{this.changelog=M0({html:!0}).render(c)})}};e.\u0275fac=function(t){return new(t||e)(vu(H0),vu(O0))},e.\u0275cmp=R0({type:e,selectors:[["dsw-about"]],standalone:!0,features:[N0],decls:8,vars:1,consts:[["href","https://github.com/intersystems-community/DeepSeeWeb","target","_blank"],[1,"changelog",3,"innerHTML"]],template:function(t,c){t&1&&(eu(0,`DeepSeeWeb is an Angular UI layer for IRIS BI (DeepSee) dashboards. +`};L.text=function(u,e){return I(u[e].content)};L.html_block=function(u,e){return u[e].content};L.html_inline=function(u,e){return u[e].content};function Q(){this.rules=X({},L)}Q.prototype.renderAttrs=function(e){let r,t,n;if(!e.attrs)return"";for(n="",r=0,t=e.attrs.length;r +`:">",c};Q.prototype.renderInline=function(u,e,r){let t="",n=this.rules;for(let c=0,i=u.length;c=0&&(t=this.attrs[r][1]),t};Y.prototype.attrJoin=function(e,r){let t=this.attrIndex(e);t<0?this.attrPush([e,r]):this.attrs[t][1]=this.attrs[t][1]+" "+r};var z=Y;function ie(u,e,r){this.src=u,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}ie.prototype.Token=z;var ae=ie;var Lr=/\r\n?|\n/g,qr=/\0/g;function Vu(u){let e;e=u.src.replace(Lr,` +`),e=e.replace(qr,"\uFFFD"),u.src=e}function Zu(u){let e;u.inlineMode?(e=new u.Token("inline","",0),e.content=u.src,e.map=[0,1],e.children=[],u.tokens.push(e)):u.md.block.parse(u.src,u.md,u.env,u.tokens)}function $u(u){let e=u.tokens;for(let r=0,t=e.length;r\s]/i.test(u)}function Br(u){return/^<\/a\s*>/i.test(u)}function Gu(u){let e=u.tokens;if(u.md.options.linkify)for(let r=0,t=e.length;r=0;i--){let o=n[i];if(o.type==="link_close"){for(i--;n[i].level!==o.level&&n[i].type!=="link_open";)i--;continue}if(o.type==="html_inline"&&(Mr(o.content)&&c>0&&c--,Br(o.content)&&c++),!(c>0)&&o.type==="text"&&u.md.linkify.test(o.content)){let a=o.content,s=u.md.linkify.match(a),l=[],d=o.level,b=0;s.length>0&&s[0].index===0&&i>0&&n[i-1].type==="text_special"&&(s=s.slice(1));for(let p=0;pb){let _=new u.Token("text","",0);_.content=a.slice(b,E),_.level=d,l.push(_)}let h=new u.Token("link_open","a",1);h.attrs=[["href",g]],h.level=d++,h.markup="linkify",h.info="auto",l.push(h);let x=new u.Token("text","",0);x.content=D,x.level=d,l.push(x);let m=new u.Token("link_close","a",-1);m.level=--d,m.markup="linkify",m.info="auto",l.push(m),b=s[p].lastIndex}if(b=0;r--){let t=u[r];t.type==="text"&&!e&&(t.content=t.content.replace(Ir,Pr)),t.type==="link_open"&&t.info==="auto"&&e--,t.type==="link_close"&&t.info==="auto"&&e++}}function Or(u){let e=0;for(let r=u.length-1;r>=0;r--){let t=u[r];t.type==="text"&&!e&&se.test(t.content)&&(t.content=t.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),t.type==="link_open"&&t.info==="auto"&&e--,t.type==="link_close"&&t.info==="auto"&&e++}}function Wu(u){let e;if(u.md.options.typographer)for(e=u.tokens.length-1;e>=0;e--)u.tokens[e].type==="inline"&&(Rr.test(u.tokens[e].content)&&Nr(u.tokens[e].children),se.test(u.tokens[e].content)&&Or(u.tokens[e].children))}var Hr=/['"]/,le=/['"]/g,fe="\u2019";function Du(u,e,r){return u.slice(0,e)+r+u.slice(e+1)}function Ur(u,e){let r,t=[];for(let n=0;n=0&&!(t[r].level<=i);r--);if(t.length=r+1,c.type!=="text")continue;let o=c.content,a=0,s=o.length;u:for(;a=0)f=o.charCodeAt(l.index-1);else for(r=n-1;r>=0&&!(u[r].type==="softbreak"||u[r].type==="hardbreak");r--)if(u[r].content){f=u[r].content.charCodeAt(u[r].content.length-1);break}let g=32;if(a=48&&f<=57&&(b=d=!1),d&&b&&(d=D,b=E),!d&&!b){p&&(c.content=Du(c.content,l.index,fe));continue}if(b)for(r=t.length-1;r>=0;r--){let m=t[r];if(t[r].level=0;e--)u.tokens[e].type!=="inline"||!Hr.test(u.tokens[e].content)||Ur(u.tokens[e].children,u)}function Xu(u){let e,r,t=u.tokens,n=t.length;for(let c=0;c0&&this.level++,this.tokens.push(t),t};q.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};q.prototype.skipEmptyLines=function(e){for(let r=this.lineMax;er;)if(!k(this.src.charCodeAt(--e)))return e+1;return e};q.prototype.skipChars=function(e,r){for(let t=this.src.length;et;)if(r!==this.src.charCodeAt(--e))return e+1;return e};q.prototype.getLines=function(e,r,t,n){if(e>=r)return"";let c=new Array(r-e);for(let i=0,o=e;ot?c[i]=new Array(a-t+1).join(" ")+this.src.slice(l,d):c[i]=this.src.slice(l,d)}return c.join("")};q.prototype.Token=z;var pe=q;var jr=65536;function Ku(u,e){let r=u.bMarks[e]+u.tShift[e],t=u.eMarks[e];return u.src.slice(r,t)}function be(u){let e=[],r=u.length,t=0,n=u.charCodeAt(t),c=!1,i=0,o="";for(;tr)return!1;let n=e+1;if(u.sCount[n]=4)return!1;let c=u.bMarks[n]+u.tShift[n];if(c>=u.eMarks[n])return!1;let i=u.src.charCodeAt(c++);if(i!==124&&i!==45&&i!==58||c>=u.eMarks[n])return!1;let o=u.src.charCodeAt(c++);if(o!==124&&o!==45&&o!==58&&!k(o)||i===45&&k(o))return!1;for(;c=4)return!1;s=be(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop();let d=s.length;if(d===0||d!==l.length)return!1;if(t)return!0;let b=u.parentType;u.parentType="table";let p=u.md.block.ruler.getRules("blockquote"),f=u.push("table_open","table",1),g=[e,0];f.map=g;let D=u.push("thead_open","thead",1);D.map=[e,e+1];let E=u.push("tr_open","tr",1);E.map=[e,e+1];for(let m=0;m=4||(s=be(a),s.length&&s[0]===""&&s.shift(),s.length&&s[s.length-1]===""&&s.pop(),x+=d-s.length,x>jr))break;if(n===e+2){let C=u.push("tbody_open","tbody",1);C.map=h=[e+2,0]}let _=u.push("tr_open","tr",1);_.map=[n,n+1];for(let C=0;C=4){t++,n=t;continue}break}u.line=n;let c=u.push("code_block","code",0);return c.content=u.getLines(e,n,4+u.blkIndent,!1)+` +`,c.map=[e,u.line],!0}function r0(u,e,r,t){let n=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||n+3>c)return!1;let i=u.src.charCodeAt(n);if(i!==126&&i!==96)return!1;let o=n;n=u.skipChars(n,i);let a=n-o;if(a<3)return!1;let s=u.src.slice(o,n),l=u.src.slice(n,c);if(i===96&&l.indexOf(String.fromCharCode(i))>=0)return!1;if(t)return!0;let d=e,b=!1;for(;d++,!(d>=r||(n=o=u.bMarks[d]+u.tShift[d],c=u.eMarks[d],n=4)&&(n=u.skipChars(n,i),!(n-o=4||u.src.charCodeAt(n)!==62)return!1;if(t)return!0;let o=[],a=[],s=[],l=[],d=u.md.block.ruler.getRules("blockquote"),b=u.parentType;u.parentType="blockquote";let p=!1,f;for(f=e;f=c)break;if(u.src.charCodeAt(n++)===62&&!x){let _=u.sCount[f]+1,C,y;u.src.charCodeAt(n)===32?(n++,_++,y=!1,C=!0):u.src.charCodeAt(n)===9?(C=!0,(u.bsCount[f]+_)%4===3?(n++,_++,y=!1):y=!0):C=!1;let S=_;for(o.push(u.bMarks[f]),u.bMarks[f]=n;n=c,a.push(u.bsCount[f]),u.bsCount[f]=u.sCount[f]+1+(C?1:0),s.push(u.sCount[f]),u.sCount[f]=S-_,l.push(u.tShift[f]),u.tShift[f]=n-u.bMarks[f];continue}if(p)break;let m=!1;for(let _=0,C=d.length;_";let E=[e,0];D.map=E,u.md.block.tokenize(u,e,f);let h=u.push("blockquote_close","blockquote",-1);h.markup=">",u.lineMax=i,u.parentType=b,E[1]=u.line;for(let x=0;x=4)return!1;let c=u.bMarks[e]+u.tShift[e],i=u.src.charCodeAt(c++);if(i!==42&&i!==45&&i!==95)return!1;let o=1;for(;c=t)return-1;let c=u.src.charCodeAt(n++);if(c<48||c>57)return-1;for(;;){if(n>=t)return-1;if(c=u.src.charCodeAt(n++),c>=48&&c<=57){if(n-r>=10)return-1;continue}if(c===41||c===46)break;return-1}return n=4||u.listIndent>=0&&u.sCount[a]-u.listIndent>=4&&u.sCount[a]=u.blkIndent&&(l=!0);let d,b,p;if((p=me(u,a))>=0){if(d=!0,i=u.bMarks[a]+u.tShift[a],b=Number(u.src.slice(i,p-1)),l&&b!==1)return!1}else if((p=he(u,a))>=0)d=!1;else return!1;if(l&&u.skipSpaces(p)>=u.eMarks[a])return!1;if(t)return!0;let f=u.src.charCodeAt(p-1),g=u.tokens.length;d?(o=u.push("ordered_list_open","ol",1),b!==1&&(o.attrs=[["start",b]])):o=u.push("bullet_list_open","ul",1);let D=[a,0];o.map=D,o.markup=String.fromCharCode(f);let E=!1,h=u.md.block.ruler.getRules("list"),x=u.parentType;for(u.parentType="list";a=n?y=1:y=_-m,y>4&&(y=1);let S=m+y;o=u.push("list_item_open","li",1),o.markup=String.fromCharCode(f);let P=[a,0];o.map=P,d&&(o.info=u.src.slice(i,p-1));let uu=u.tight,Fu=u.tShift[a],Ve=u.sCount[a],Ze=u.listIndent;if(u.listIndent=u.blkIndent,u.blkIndent=S,u.tight=!0,u.tShift[a]=C-u.bMarks[a],u.sCount[a]=_,C>=n&&u.isEmpty(a+1)?u.line=Math.min(u.line+2,r):u.md.block.tokenize(u,a,r,!0),(!u.tight||E)&&(s=!1),E=u.line-a>1&&u.isEmpty(u.line-1),u.blkIndent=u.listIndent,u.listIndent=Ze,u.tShift[a]=Fu,u.sCount[a]=Ve,u.tight=uu,o=u.push("list_item_close","li",-1),o.markup=String.fromCharCode(f),a=u.line,P[1]=a,a>=r||u.sCount[a]=4)break;let B0=!1;for(let G=0,$e=h.length;G<$e;G++)if(h[G](u,a,r,!0)){B0=!0;break}if(B0)break;if(d){if(p=me(u,a),p<0)break;i=u.bMarks[a]+u.tShift[a]}else if(p=he(u,a),p<0)break;if(f!==u.src.charCodeAt(p-1))break}return d?o=u.push("ordered_list_close","ol",-1):o=u.push("bullet_list_close","ul",-1),o.markup=String.fromCharCode(f),D[1]=a,u.line=a,u.parentType=x,s&&Vr(u,g),!0}function o0(u,e,r,t){let n=u.bMarks[e]+u.tShift[e],c=u.eMarks[e],i=e+1;if(u.sCount[e]-u.blkIndent>=4||u.src.charCodeAt(n)!==91)return!1;function o(h){let x=u.lineMax;if(h>=x||u.isEmpty(h))return null;let m=!1;if(u.sCount[h]-u.blkIndent>3&&(m=!0),u.sCount[h]<0&&(m=!0),!m){let y=u.md.block.ruler.getRules("reference"),S=u.parentType;u.parentType="reference";let P=!1;for(let uu=0,Fu=y.length;uu"u"&&(u.env.references={}),typeof u.env.references[E]>"u"&&(u.env.references[E]={title:D,href:d}),u.line=i),!0):!1}var xe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var Zr="[a-zA-Z_:][a-zA-Z0-9:._-]*",$r="[^\"'=<>`\\x00-\\x20]+",Gr="'[^']*'",Wr='"[^"]*"',Jr="(?:"+$r+"|"+Gr+"|"+Wr+")",Xr="(?:\\s+"+Zr+"(?:\\s*=\\s*"+Jr+")?)",_e="<[A-Za-z][A-Za-z0-9\\-]*"+Xr+"*\\s*\\/?>",ge="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Qr="",Yr="<[?][\\s\\S]*?[?]>",Kr="]*>",ut="",ke=new RegExp("^(?:"+_e+"|"+ge+"|"+Qr+"|"+Yr+"|"+Kr+"|"+ut+")"),De=new RegExp("^(?:"+_e+"|"+ge+")");var K=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(De.source+"\\s*$"),/^$/,!1]];function i0(u,e,r,t){let n=u.bMarks[e]+u.tShift[e],c=u.eMarks[e];if(u.sCount[e]-u.blkIndent>=4||!u.md.options.html||u.src.charCodeAt(n)!==60)return!1;let i=u.src.slice(n,c),o=0;for(;o=4)return!1;let i=u.src.charCodeAt(n);if(i!==35||n>=c)return!1;let o=1;for(i=u.src.charCodeAt(++n);i===35&&n6||nn&&k(u.src.charCodeAt(a-1))&&(c=a),u.line=e+1;let s=u.push("heading_open","h"+String(o),1);s.markup="########".slice(0,o),s.map=[e,u.line];let l=u.push("inline","",0);l.content=u.src.slice(n,c).trim(),l.map=[e,u.line],l.children=[];let d=u.push("heading_close","h"+String(o),-1);return d.markup="########".slice(0,o),!0}function s0(u,e,r){let t=u.md.block.ruler.getRules("paragraph");if(u.sCount[e]-u.blkIndent>=4)return!1;let n=u.parentType;u.parentType="paragraph";let c=0,i,o=e+1;for(;o3)continue;if(u.sCount[o]>=u.blkIndent){let p=u.bMarks[o]+u.tShift[o],f=u.eMarks[o];if(p=f))){c=i===61?1:2;break}}if(u.sCount[o]<0)continue;let b=!1;for(let p=0,f=t.length;p3||u.sCount[c]<0)continue;let s=!1;for(let l=0,d=t.length;l=r||u.sCount[i]=c){u.line=r;break}let a=u.line,s=!1;for(let l=0;l=u.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");u.tight=!o,u.isEmpty(u.line-1)&&(o=!0),i=u.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],n={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(t),this.tokens_meta.push(n),t};cu.prototype.scanDelims=function(u,e){let r=this.posMax,t=this.src.charCodeAt(u),n=u>0?this.src.charCodeAt(u-1):32,c=u;for(;c0)return!1;let r=u.pos,t=u.posMax;if(r+3>t||u.src.charCodeAt(r)!==58||u.src.charCodeAt(r+1)!==47||u.src.charCodeAt(r+2)!==47)return!1;let n=u.pending.match(rt);if(!n)return!1;let c=n[1],i=u.md.linkify.matchAtStart(u.src.slice(r-c.length));if(!i)return!1;let o=i.url;if(o.length<=c.length)return!1;o=o.replace(/\*+$/,"");let a=u.md.normalizeLink(o);if(!u.md.validateLink(a))return!1;if(!e){u.pending=u.pending.slice(0,-c.length);let s=u.push("link_open","a",1);s.attrs=[["href",a]],s.markup="linkify",s.info="auto";let l=u.push("text","",0);l.content=u.md.normalizeLinkText(o);let d=u.push("link_close","a",-1);d.markup="linkify",d.info="auto"}return u.pos+=o.length-c.length,!0}function p0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==10)return!1;let t=u.pending.length-1,n=u.posMax;if(!e)if(t>=0&&u.pending.charCodeAt(t)===32)if(t>=1&&u.pending.charCodeAt(t-1)===32){let c=t-1;for(;c>=1&&u.pending.charCodeAt(c-1)===32;)c--;u.pending=u.pending.slice(0,c),u.push("hardbreak","br",0)}else u.pending=u.pending.slice(0,-1),u.push("softbreak","br",0);else u.push("softbreak","br",0);for(r++;r?@[]^_`{|}~-".split("").forEach(function(u){b0[u.charCodeAt(0)]=1});function h0(u,e){let r=u.pos,t=u.posMax;if(u.src.charCodeAt(r)!==92||(r++,r>=t))return!1;let n=u.src.charCodeAt(r);if(n===10){for(e||u.push("hardbreak","br",0),r++;r=55296&&n<=56319&&r+1=56320&&o<=57343&&(c+=u.src[r+1],r++)}let i="\\"+c;if(!e){let o=u.push("text_special","",0);n<256&&b0[n]!==0?o.content=c:o.content=i,o.markup=i,o.info="escape"}return u.pos=r+1,!0}function m0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==96)return!1;let n=r;r++;let c=u.posMax;for(;r=0;t--){let n=e[t];if(n.marker!==95&&n.marker!==42||n.end===-1)continue;let c=e[n.end],i=t>0&&e[t-1].end===n.end+1&&e[t-1].marker===n.marker&&e[t-1].token===n.token-1&&e[n.end+1].token===c.token+1,o=String.fromCharCode(n.marker),a=u.tokens[n.token];a.type=i?"strong_open":"em_open",a.tag=i?"strong":"em",a.nesting=1,a.markup=i?o+o:o,a.content="";let s=u.tokens[c.token];s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?o+o:o,s.content="",i&&(u.tokens[e[t-1].token].content="",u.tokens[e[n.end+1].token].content="",t--)}}function ot(u){let e=u.tokens_meta,r=u.tokens_meta.length;Ae(u,u.delimiters);for(let t=0;t=d)return!1;if(a=f,n=u.md.helpers.parseLinkDestination(u.src,f,u.posMax),n.ok){for(i=u.md.normalizeLink(n.str),u.md.validateLink(i)?f=n.pos:i="",a=f;f=d||u.src.charCodeAt(f)!==41)&&(s=!0),f++}if(s){if(typeof u.env.references>"u")return!1;if(f=0?t=u.src.slice(a,f++):f=p+1):f=p+1,t||(t=u.src.slice(b,p)),c=u.env.references[Z(t)],!c)return u.pos=l,!1;i=c.href,o=c.title}if(!e){u.pos=b,u.posMax=p;let g=u.push("link_open","a",1),D=[["href",i]];g.attrs=D,o&&D.push(["title",o]),u.linkLevel++,u.md.inline.tokenize(u),u.linkLevel--,u.push("link_close","a",-1)}return u.pos=f,u.posMax=d,!0}function k0(u,e){let r,t,n,c,i,o,a,s,l="",d=u.pos,b=u.posMax;if(u.src.charCodeAt(u.pos)!==33||u.src.charCodeAt(u.pos+1)!==91)return!1;let p=u.pos+2,f=u.md.helpers.parseLinkLabel(u,u.pos+1,!1);if(f<0)return!1;if(c=f+1,c=b)return!1;for(s=c,o=u.md.helpers.parseLinkDestination(u.src,c,u.posMax),o.ok&&(l=u.md.normalizeLink(o.str),u.md.validateLink(l)?c=o.pos:l=""),s=c;c=b||u.src.charCodeAt(c)!==41)return u.pos=d,!1;c++}else{if(typeof u.env.references>"u")return!1;if(c=0?n=u.src.slice(s,c++):c=f+1):c=f+1,n||(n=u.src.slice(p,f)),i=u.env.references[Z(n)],!i)return u.pos=d,!1;l=i.href,a=i.title}if(!e){t=u.src.slice(p,f);let g=[];u.md.inline.parse(t,u.md,u.env,g);let D=u.push("image","img",0),E=[["src",l],["alt",""]];D.attrs=E,D.children=g,D.content=t,a&&E.push(["title",a])}return u.pos=c,u.posMax=b,!0}var it=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,at=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function D0(u,e){let r=u.pos;if(u.src.charCodeAt(r)!==60)return!1;let t=u.pos,n=u.posMax;for(;;){if(++r>=n)return!1;let i=u.src.charCodeAt(r);if(i===60)return!1;if(i===62)break}let c=u.src.slice(t+1,r);if(at.test(c)){let i=u.md.normalizeLink(c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}if(it.test(c)){let i=u.md.normalizeLink("mailto:"+c);if(!u.md.validateLink(i))return!1;if(!e){let o=u.push("link_open","a",1);o.attrs=[["href",i]],o.markup="autolink",o.info="auto";let a=u.push("text","",0);a.content=u.md.normalizeLinkText(c);let s=u.push("link_close","a",-1);s.markup="autolink",s.info="auto"}return u.pos+=c.length+2,!0}return!1}function st(u){return/^\s]/i.test(u)}function lt(u){return/^<\/a\s*>/i.test(u)}function ft(u){let e=u|32;return e>=97&&e<=122}function C0(u,e){if(!u.md.options.html)return!1;let r=u.posMax,t=u.pos;if(u.src.charCodeAt(t)!==60||t+2>=r)return!1;let n=u.src.charCodeAt(t+1);if(n!==33&&n!==63&&n!==47&&!ft(n))return!1;let c=u.src.slice(t).match(ke);if(!c)return!1;if(!e){let i=u.push("html_inline","",0);i.content=c[0],st(i.content)&&u.linkLevel++,lt(i.content)&&u.linkLevel--}return u.pos+=c[0].length,!0}var dt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,pt=/^&([a-z][a-z0-9]{1,31});/i;function E0(u,e){let r=u.pos,t=u.posMax;if(u.src.charCodeAt(r)!==38||r+1>=t)return!1;if(u.src.charCodeAt(r+1)===35){let c=u.src.slice(r).match(dt);if(c){if(!e){let i=c[1][0].toLowerCase()==="x"?parseInt(c[1].slice(1),16):parseInt(c[1],10),o=u.push("text_special","",0);o.content=ku(i)?nu(i):nu(65533),o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}else{let c=u.src.slice(r).match(pt);if(c){let i=N(c[0]);if(i!==c[0]){if(!e){let o=u.push("text_special","",0);o.content=i,o.markup=c[0],o.info="entity"}return u.pos+=c[0].length,!0}}}return!1}function Fe(u){let e={},r=u.length;if(!r)return;let t=0,n=-2,c=[];for(let i=0;ia;s-=c[s]+1){let d=u[s];if(d.marker===o.marker&&d.open&&d.end<0){let b=!1;if((d.close||o.open)&&(d.length+o.length)%3===0&&(d.length%3!==0||o.length%3!==0)&&(b=!0),!b){let p=s>0&&!u[s-1].open?c[s-1]+1:0;c[i]=i-s+p,c[s]=p,o.open=!1,d.end=i,d.close=!1,l=-1,n=-2;break}}}l!==-1&&(e[o.marker][(o.open?3:0)+(o.length||0)%3]=l)}}function y0(u){let e=u.tokens_meta,r=u.tokens_meta.length;Fe(u.delimiters);for(let t=0;t0&&t++,n[e].type==="text"&&e+1=u.pos)throw new Error("inline rule didn't increment state.pos");break}}else u.pos=u.posMax;i||u.pos++,c[e]=u.pos};ou.prototype.tokenize=function(u){let e=this.ruler.getRules(""),r=e.length,t=u.posMax,n=u.md.options.maxNesting;for(;u.pos=u.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(u.pos>=t)break;continue}u.pending+=u.src[u.pos++]}u.pending&&u.pushPending()};ou.prototype.parse=function(u,e,r,t){let n=new this.State(u,e,r,t);this.tokenize(n);let c=this.ruler2.getRules(""),i=c.length;for(let o=0;o|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}function w0(u){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(t){u[t]=r[t]})}),u}function Au(u){return Object.prototype.toString.call(u)}function bt(u){return Au(u)==="[object String]"}function ht(u){return Au(u)==="[object Object]"}function mt(u){return Au(u)==="[object RegExp]"}function Se(u){return Au(u)==="[object Function]"}function xt(u){return u.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Le={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _t(u){return Object.keys(u||{}).reduce(function(e,r){return e||Le.hasOwnProperty(r)},!1)}var gt={"http:":{validate:function(u,e,r){let t=u.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(t)?t.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(u,e,r){let t=u.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(t)?e>=3&&u[e-3]===":"||e>=3&&u[e-3]==="/"?0:t.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(u,e,r){let t=u.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(t)?t.match(r.re.mailto)[0].length:0}}},kt="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Dt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Ct(u){u.__index__=-1,u.__text_cache__=""}function Et(u){return function(e,r){let t=e.slice(r);return u.test(t)?t.match(u)[0].length:0}}function Te(){return function(u,e){e.normalize(u)}}function yu(u){let e=u.re=we(u.__opts__),r=u.__tlds__.slice();u.onCompile(),u.__tlds_replaced__||r.push(kt),r.push(e.src_xn),e.src_tlds=r.join("|");function t(o){return o.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(t(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(t(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(t(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(t(e.tpl_host_fuzzy_test),"i");let n=[];u.__compiled__={};function c(o,a){throw new Error('(LinkifyIt) Invalid schema "'+o+'": '+a)}Object.keys(u.__schemas__).forEach(function(o){let a=u.__schemas__[o];if(a===null)return;let s={validate:null,link:null};if(u.__compiled__[o]=s,ht(a)){mt(a.validate)?s.validate=Et(a.validate):Se(a.validate)?s.validate=a.validate:c(o,a),Se(a.normalize)?s.normalize=a.normalize:a.normalize?c(o,a):s.normalize=Te();return}if(bt(a)){n.push(o);return}c(o,a)}),n.forEach(function(o){u.__compiled__[u.__schemas__[o]]&&(u.__compiled__[o].validate=u.__compiled__[u.__schemas__[o]].validate,u.__compiled__[o].normalize=u.__compiled__[u.__schemas__[o]].normalize)}),u.__compiled__[""]={validate:null,normalize:Te()};let i=Object.keys(u.__compiled__).filter(function(o){return o.length>0&&u.__compiled__[o]}).map(xt).join("|");u.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","i"),u.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+i+")","ig"),u.re.schema_at_start=RegExp("^"+u.re.schema_search.source,"i"),u.re.pretest=RegExp("("+u.re.schema_test.source+")|("+u.re.host_fuzzy_test.source+")|@","i"),Ct(u)}function yt(u,e){let r=u.__index__,t=u.__last_index__,n=u.__text_cache__.slice(r,t);this.schema=u.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=t+e,this.raw=n,this.text=n,this.url=n}function S0(u,e){let r=new yt(u,e);return u.__compiled__[r.schema].normalize(r,u),r}function v(u,e){if(!(this instanceof v))return new v(u,e);e||_t(u)&&(e=u,u={}),this.__opts__=w0({},Le,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=w0({},gt,u),this.__compiled__={},this.__tlds__=Dt,this.__tlds_replaced__=!1,this.re={},yu(this)}v.prototype.add=function(e,r){return this.__schemas__[e]=r,yu(this),this};v.prototype.set=function(e){return this.__opts__=w0(this.__opts__,e),this};v.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,t,n,c,i,o,a,s,l;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(c=this.testSchemaAt(e,r[2],a.lastIndex),c){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+c;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test),s>=0&&(this.__index__<0||s=0&&(n=e.match(this.re.email_fuzzy))!==null&&(i=n.index+n[1].length,o=n.index+n[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=o))),this.__index__>=0};v.prototype.pretest=function(e){return this.re.pretest.test(e)};v.prototype.testSchemaAt=function(e,r,t){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,t,this):0};v.prototype.match=function(e){let r=[],t=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(S0(this,t)),t=this.__last_index__);let n=t?e.slice(t):e;for(;this.test(n);)r.push(S0(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null};v.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;let r=this.re.schema_at_start.exec(e);if(!r)return null;let t=this.testSchemaAt(e,r[2],r[0].length);return t?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+t,S0(this,0)):null};v.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(t,n,c){return t!==c[n-1]}).reverse(),yu(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,yu(this),this)};v.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};v.prototype.onCompile=function(){};var qe=v;var Be="-",At=/^xn--/,Ft=/[^\0-\x7F]/,vt=/[\x2E\u3002\uFF0E\uFF61]/g,wt={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},T0=35,M=Math.floor,L0=String.fromCharCode;function O(u){throw new RangeError(wt[u])}function St(u,e){let r=[],t=u.length;for(;t--;)r[t]=e(u[t]);return r}function Re(u,e){let r=u.split("@"),t="";r.length>1&&(t=r[0]+"@",u=r[1]),u=u.replace(vt,".");let n=u.split("."),c=St(n,e).join(".");return t+c}function Ie(u){let e=[],r=0,t=u.length;for(;r=55296&&n<=56319&&rString.fromCodePoint(...u),Lt=function(u){return u>=48&&u<58?26+(u-48):u>=65&&u<91?u-65:u>=97&&u<123?u-97:36},Me=function(u,e){return u+22+75*(u<26)-((e!=0)<<5)},ze=function(u,e,r){let t=0;for(u=r?M(u/700):u>>1,u+=M(u/e);u>T0*26>>1;t+=36)u=M(u/T0);return M(t+(T0+1)*u/(u+38))},Pe=function(u){let e=[],r=u.length,t=0,n=128,c=72,i=u.lastIndexOf(Be);i<0&&(i=0);for(let o=0;o=128&&O("not-basic"),e.push(u.charCodeAt(o));for(let o=i>0?i+1:0;o=r&&O("invalid-input");let b=Lt(u.charCodeAt(o++));b>=36&&O("invalid-input"),b>M((2147483647-t)/l)&&O("overflow"),t+=b*l;let p=d<=c?1:d>=c+26?26:d-c;if(bM(2147483647/f)&&O("overflow"),l*=f}let s=e.length+1;c=ze(t-a,s,a==0),M(t/s)>2147483647-n&&O("overflow"),n+=M(t/s),t%=s,e.splice(t++,0,n)}return String.fromCodePoint(...e)},Ne=function(u){let e=[];u=Ie(u);let r=u.length,t=128,n=0,c=72;for(let a of u)a<128&&e.push(L0(a));let i=e.length,o=i;for(i&&e.push(Be);o=t&&lM((2147483647-n)/s)&&O("overflow"),n+=(a-t)*s,t=a;for(let l of u)if(l2147483647&&O("overflow"),l===t){let d=n;for(let b=36;;b+=36){let p=b<=c?1:b>=c+26?26:b-c;if(d=0))try{e.hostname=q0.toASCII(e.hostname)}catch{}return lu(W(e))}function Ot(u){let e=tu(u,!0);if(e.hostname&&(!e.protocol||je.indexOf(e.protocol)>=0))try{e.hostname=q0.toUnicode(e.hostname)}catch{}return ru(W(e),ru.defaultChars+"%")}function w(u,e){if(!(this instanceof w))return new w(u,e);e||gu(u)||(e=u||{},u="default"),this.inline=new ve,this.block=new Ce,this.core=new de,this.renderer=new oe,this.linkify=new qe,this.validateLink=Pt,this.normalizeLink=Nt,this.normalizeLinkText=Ot,this.utils=Nu,this.helpers=X({},ju),this.options={},this.configure(u),e&&this.set(e)}w.prototype.set=function(u){return X(this.options,u),this};w.prototype.configure=function(u){let e=this;if(gu(u)){let r=u;if(u=Rt[r],!u)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!u)throw new Error("Wrong `markdown-it` preset, can't be empty");return u.options&&e.set(u.options),u.components&&Object.keys(u.components).forEach(function(r){u.components[r].rules&&e[r].ruler.enableOnly(u.components[r].rules),u.components[r].rules2&&e[r].ruler2.enableOnly(u.components[r].rules2)}),this};w.prototype.enable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(n){r=r.concat(this[n].ruler.enable(u,!0))},this),r=r.concat(this.inline.ruler2.enable(u,!0));let t=u.filter(function(n){return r.indexOf(n)<0});if(t.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+t);return this};w.prototype.disable=function(u,e){let r=[];Array.isArray(u)||(u=[u]),["core","block","inline"].forEach(function(n){r=r.concat(this[n].ruler.disable(u,!0))},this),r=r.concat(this.inline.ruler2.disable(u,!0));let t=u.filter(function(n){return r.indexOf(n)<0});if(t.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+t);return this};w.prototype.use=function(u){let e=[this].concat(Array.prototype.slice.call(arguments,1));return u.apply(u,e),this};w.prototype.parse=function(u,e){if(typeof u!="string")throw new Error("Input data should be a String");let r=new this.core.State(u,this,e);return this.core.process(r),r.tokens};w.prototype.render=function(u,e){return e=e||{},this.renderer.render(this.parse(u,e),this.options,e)};w.prototype.parseInline=function(u,e){let r=new this.core.State(u,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};w.prototype.renderInline=function(u,e){return e=e||{},this.renderer.render(this.parseInline(u,e),this.options,e)};var M0=w;var fi=(()=>{class u{constructor(r,t){this.ds=r,this.san=t,this.html=I0.required()}ngOnInit(){this.changelog=M0({html:!0}).render(this.html())}static{this.\u0275fac=function(t){return new(t||u)(vu(U0),vu(H0))}}static{this.\u0275cmp=R0({type:u,selectors:[["dsw-about"]],inputs:{html:[1,"html"]},standalone:!0,features:[O0],decls:8,vars:1,consts:[["href","https://github.com/intersystems-community/DeepSeeWeb","target","_blank"],[1,"changelog",3,"innerHTML"]],template:function(t,n){t&1&&(eu(0,`DeepSeeWeb is an Angular UI layer for IRIS BI (DeepSee) dashboards. `),Tu(1,"br"),eu(2,` -More info at: `),wu(3,"a",0),eu(4,"Github DeepSeeWeb repository"),Su(),wu(5,"h2"),eu(6,"Changelog"),Su(),Tu(7,"div",1)),t&2&&(z0(7),P0("innerHTML",c.changelog,I0))},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;max-width:50vw}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400}a[_ngcontent-%COMP%]{color:var(--cl-accent);text-decoration:none;cursor:pointer}"]});let u=e;return u})();export{ai as AboutComponent}; +More info at: `),wu(3,"a",0),eu(4,"Github DeepSeeWeb repository"),Su(),wu(5,"h2"),eu(6,"Changelog"),Su(),Tu(7,"div",1)),t&2&&(P0(7),N0("innerHTML",n.changelog,z0))},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;max-width:50vw}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400}a[_ngcontent-%COMP%]{color:var(--cl-accent);text-decoration:none;cursor:pointer}"]})}}return u})();export{fi as AboutComponent}; diff --git a/dist/chunk-ZV53A5KR.js b/dist/chunk-ZV53A5KR.js deleted file mode 100644 index dbbd1cc4..00000000 --- a/dist/chunk-ZV53A5KR.js +++ /dev/null @@ -1,2 +0,0 @@ -import{a as ze}from"./chunk-YBN4SQR6.js";import{b as He,c as je,f as he,i as Ue}from"./chunk-CKPIETEW.js";import{$a as u,A as J,B as Ce,Ba as L,Bb as re,Bc as Re,C as be,Cb as ae,Da as v,Db as m,Eb as E,F as Te,Fb as j,Gb as Oe,Gc as _,Hb as ke,Hc as $,Ib as ue,Jb as U,Nb as P,Ob as c,Pb as ce,Q as ve,Qb as de,Rb as Le,S as N,Sb as I,T as we,Tb as R,Ub as g,Vb as f,W as ye,Wb as D,X,Xb as V,Y as Se,Yb as z,Zb as Be,_ as Fe,ab as d,bc as Ve,cb as h,dc as Q,eb as Ae,ec as Pe,f as W,fa as ee,fc as Me,ga as Ie,gb as xe,gc as Ne,h as fe,ha as F,i as _e,kc as M,mb as te,pa as q,qa as b,r as Ee,ra as T,rb as w,sb as ie,tb as y,va as le,vb as B,wb as De,xb as oe,y as G,yb as A}from"./chunk-ZKAUCJHV.js";import{a as ge}from"./chunk-DEPBX7UX.js";var Ze=["content"],Je=["scroll"],Xe=["padding"],Ge=["*"],K=n=>({searchTerm:n});function et(n,t){if(n&1&&(m(0,"div",3),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.headerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}function tt(n,t){if(n&1&&(m(0,"div",5),ue(1,6),E()),n&2){let s=c();u(),y("ngTemplateOutlet",s.footerTemplate)("ngTemplateOutletContext",Q(2,K,s.filterValue))}}var it=["searchInput"],nt=["clearButton"],st=(n,t,s)=>({item:n,clear:t,label:s}),lt=(n,t)=>({items:n,clear:t}),ot=(n,t,s,e)=>({item:n,item$:t,index:s,searchTerm:e});function rt(n,t){if(n&1){let s=U();m(0,"span",21),P("click",function(){b(s);let i=c().$implicit,l=c(2);return T(l.unselect(i))}),V(1,"\xD7"),E(),j(2,"span",22)}if(n&2){let s=c().$implicit,e=c(2);u(2),y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function at(n,t){}function ut(n,t){if(n&1&&(m(0,"div",20),w(1,rt,3,2,"ng-template",null,1,M)(3,at,0,0,"ng-template",12),E()),n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-value-disabled",s.disabled),u(3),y("ngTemplateOutlet",i.labelTemplate||e)("ngTemplateOutletContext",Me(4,st,s.value,i.clearItem,s.label))}}function ct(n,t){if(n&1&&re(0,ut,4,8,"div",19,oe().trackByOption,!0),n&2){let s=c();ae(s.selectedItems)}}function dt(n,t){}function ht(n,t){if(n&1&&w(0,dt,0,0,"ng-template",12),n&2){let s=c();y("ngTemplateOutlet",s.multiLabelTemplate)("ngTemplateOutletContext",Pe(2,lt,s.selectedValues,s.clearItem))}}function pt(n,t){n&1&&j(0,"div",24)}function mt(n,t){}function gt(n,t){if(n&1&&w(0,pt,1,0,"ng-template",null,2,M)(2,mt,0,0,"ng-template",23),n&2){let s=D(1),e=c();u(2),y("ngTemplateOutlet",e.loadingSpinnerTemplate||s)}}function ft(n,t){if(n&1&&(m(0,"span",15,3)(2,"span",25),V(3,"\xD7"),E()()),n&2){let s=c();Le("title",s.clearAllText)}}function _t(n,t){if(n&1&&j(0,"span",30),n&2){let s=c().$implicit,e=c(2);y("ngItemLabel",s.label)("escape",e.escapeHTML)}}function Et(n,t){}function Ct(n,t){if(n&1){let s=U();m(0,"div",29),P("click",function(){let i=b(s).$implicit,l=c(2);return T(l.toggleItem(i))})("mouseover",function(){let i=b(s).$implicit,l=c(2);return T(l.onItemHover(i))}),w(1,_t,1,2,"ng-template",null,4,M)(3,Et,0,0,"ng-template",12),E()}if(n&2){let s=t.$implicit,e=D(2),i=c(2);B("ng-option-disabled",s.disabled)("ng-option-selected",s.selected)("ng-optgroup",s.children)("ng-option",!s.children)("ng-option-child",!!s.parent)("ng-option-marked",s===i.itemsList.markedItem),ie("role",s.children?"group":"option")("aria-selected",s.selected)("id",s==null?null:s.htmlId),u(3),y("ngTemplateOutlet",s.children?i.optgroupTemplate||e:i.optionTemplate||e)("ngTemplateOutletContext",Ne(17,ot,s.value,s,s.index,i.searchTerm))}}function bt(n,t){if(n&1&&(m(0,"span")(1,"span",32),V(2),E(),V(3),E()),n&2){let s=c(3);u(2),z(s.addTagText),u(),Be('"',s.searchTerm,'"')}}function Tt(n,t){}function vt(n,t){if(n&1){let s=U();m(0,"div",31),P("mouseover",function(){b(s);let i=c(2);return T(i.itemsList.unmarkItem())})("click",function(){b(s);let i=c(2);return T(i.selectTag())}),w(1,bt,4,2,"ng-template",null,5,M)(3,Tt,0,0,"ng-template",12),E()}if(n&2){let s=D(2),e=c(2);B("ng-option-marked",!e.itemsList.markedItem),u(3),y("ngTemplateOutlet",e.tagTemplate||s)("ngTemplateOutletContext",Q(4,K,e.searchTerm))}}function wt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.notFoundText)}}function yt(n,t){}function St(n,t){if(n&1&&w(0,wt,2,1,"ng-template",null,6,M)(2,yt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.notFoundTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function Ft(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.typeToSearchText)}}function It(n,t){}function At(n,t){if(n&1&&w(0,Ft,2,1,"ng-template",null,7,M)(2,It,0,0,"ng-template",23),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.typeToSearchTemplate||s)}}function xt(n,t){if(n&1&&(m(0,"div",33),V(1),E()),n&2){let s=c(3);u(),z(s.loadingText)}}function Dt(n,t){}function Ot(n,t){if(n&1&&w(0,xt,2,1,"ng-template",null,8,M)(2,Dt,0,0,"ng-template",12),n&2){let s=D(1),e=c(2);u(2),y("ngTemplateOutlet",e.loadingTextTemplate||s)("ngTemplateOutletContext",Q(2,K,e.searchTerm))}}function kt(n,t){if(n&1){let s=U();m(0,"ng-dropdown-panel",26),P("update",function(i){b(s);let l=c();return T(l.viewPortItems=i)})("scroll",function(i){b(s);let l=c();return T(l.scroll.emit(i))})("scrollToEnd",function(i){b(s);let l=c();return T(l.scrollToEnd.emit(i))})("outsideClick",function(){b(s);let i=c();return T(i.close())}),Oe(1),re(2,Ct,4,22,"div",27,oe().trackByOption,!0),w(4,vt,4,6,"div",28),ke(),w(5,St,3,4)(6,At,3,1)(7,Ot,3,4),E()}if(n&2){let s=c();De(s.dropdownPanelStaticClasses),B("ng-select-multiple",s.multiple),y("virtualScroll",s.virtualScroll)("bufferAmount",s.bufferAmount)("appendTo",s.appendTo)("position",s.dropdownPosition)("headerTemplate",s.headerTemplate)("footerTemplate",s.footerTemplate)("filterValue",s.searchTerm)("items",s.itemsList.filteredItems)("markedItem",s.itemsList.markedItem)("ngClass",s.appendTo?s.ngClass:null)("id",s.dropdownId),u(2),ae(s.viewPortItems),u(2),A(s.showAddTag?4:-1),u(),A(s.showNoItemsFound()?5:-1),u(),A(s.showTypeToSearch()?6:-1),u(),A(s.loading&&s.itemsList.filteredItems.length===0?7:-1)}}var qe=/[&<>"']/g,Lt=RegExp(qe.source),Bt={"&":"&","<":"<",">":">",'"':""","'":"'"};function Vt(n){return n&&Lt.test(n)?n.replace(qe,t=>Bt[t]):n}function p(n){return n!=null}function Y(n){return typeof n=="object"&&p(n)}function Pt(n){return n instanceof Promise}function se(n){return n instanceof Function}var Mt=(()=>{let t=class t{constructor(e){this.element=e,this.escape=!0}ngOnChanges(e){this.element.nativeElement.innerHTML=this.escape?Vt(this.ngItemLabel):this.ngItemLabel}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275dir=F({type:t,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[q]});let n=t;return n})(),Nt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-option-tmp",""]]});let n=t;return n})(),Rt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-optgroup-tmp",""]]});let n=t;return n})(),Ht=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-label-tmp",""]]});let n=t;return n})(),jt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-multi-label-tmp",""]]});let n=t;return n})(),Ut=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-header-tmp",""]]});let n=t;return n})(),zt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-footer-tmp",""]]});let n=t;return n})(),Qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-notfound-tmp",""]]});let n=t;return n})(),Wt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-typetosearch-tmp",""]]});let n=t;return n})(),Gt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingtext-tmp",""]]});let n=t;return n})(),qt=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-tag-tmp",""]]});let n=t;return n})(),$t=(()=>{let t=class t{constructor(e){this.template=e}};t.\u0275fac=function(i){return new(i||t)(d(h))},t.\u0275dir=F({type:t,selectors:[["","ng-loadingspinner-tmp",""]]});let n=t;return n})();function $e(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(Math.random()*16|0).toString(16))}var Yt={"\u24B6":"A",\uFF21:"A",\u00C0:"A",\u00C1:"A",\u00C2:"A",\u1EA6:"A",\u1EA4:"A",\u1EAA:"A",\u1EA8:"A",\u00C3:"A",\u0100:"A",\u0102:"A",\u1EB0:"A",\u1EAE:"A",\u1EB4:"A",\u1EB2:"A",\u0226:"A",\u01E0:"A",\u00C4:"A",\u01DE:"A",\u1EA2:"A",\u00C5:"A",\u01FA:"A",\u01CD:"A",\u0200:"A",\u0202:"A",\u1EA0:"A",\u1EAC:"A",\u1EB6:"A",\u1E00:"A",\u0104:"A","\u023A":"A","\u2C6F":"A","\uA732":"AA",\u00C6:"AE",\u01FC:"AE",\u01E2:"AE","\uA734":"AO","\uA736":"AU","\uA738":"AV","\uA73A":"AV","\uA73C":"AY","\u24B7":"B",\uFF22:"B",\u1E02:"B",\u1E04:"B",\u1E06:"B","\u0243":"B",\u0182:"B",\u0181:"B","\u24B8":"C",\uFF23:"C",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u00C7:"C",\u1E08:"C",\u0187:"C","\u023B":"C","\uA73E":"C","\u24B9":"D",\uFF24:"D",\u1E0A:"D",\u010E:"D",\u1E0C:"D",\u1E10:"D",\u1E12:"D",\u1E0E:"D",\u0110:"D",\u018B:"D",\u018A:"D",\u0189:"D","\uA779":"D",\u01F1:"DZ",\u01C4:"DZ",\u01F2:"Dz",\u01C5:"Dz","\u24BA":"E",\uFF25:"E",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u1EC0:"E",\u1EBE:"E",\u1EC4:"E",\u1EC2:"E",\u1EBC:"E",\u0112:"E",\u1E14:"E",\u1E16:"E",\u0114:"E",\u0116:"E",\u00CB:"E",\u1EBA:"E",\u011A:"E",\u0204:"E",\u0206:"E",\u1EB8:"E",\u1EC6:"E",\u0228:"E",\u1E1C:"E",\u0118:"E",\u1E18:"E",\u1E1A:"E",\u0190:"E",\u018E:"E","\u24BB":"F",\uFF26:"F",\u1E1E:"F",\u0191:"F","\uA77B":"F","\u24BC":"G",\uFF27:"G",\u01F4:"G",\u011C:"G",\u1E20:"G",\u011E:"G",\u0120:"G",\u01E6:"G",\u0122:"G",\u01E4:"G",\u0193:"G","\uA7A0":"G","\uA77D":"G","\uA77E":"G","\u24BD":"H",\uFF28:"H",\u0124:"H",\u1E22:"H",\u1E26:"H",\u021E:"H",\u1E24:"H",\u1E28:"H",\u1E2A:"H",\u0126:"H","\u2C67":"H","\u2C75":"H","\uA78D":"H","\u24BE":"I",\uFF29:"I",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u0128:"I",\u012A:"I",\u012C:"I",\u0130:"I",\u00CF:"I",\u1E2E:"I",\u1EC8:"I",\u01CF:"I",\u0208:"I",\u020A:"I",\u1ECA:"I",\u012E:"I",\u1E2C:"I",\u0197:"I","\u24BF":"J",\uFF2A:"J",\u0134:"J","\u0248":"J","\u24C0":"K",\uFF2B:"K",\u1E30:"K",\u01E8:"K",\u1E32:"K",\u0136:"K",\u1E34:"K",\u0198:"K","\u2C69":"K","\uA740":"K","\uA742":"K","\uA744":"K","\uA7A2":"K","\u24C1":"L",\uFF2C:"L",\u013F:"L",\u0139:"L",\u013D:"L",\u1E36:"L",\u1E38:"L",\u013B:"L",\u1E3C:"L",\u1E3A:"L",\u0141:"L","\u023D":"L","\u2C62":"L","\u2C60":"L","\uA748":"L","\uA746":"L","\uA780":"L",\u01C7:"LJ",\u01C8:"Lj","\u24C2":"M",\uFF2D:"M",\u1E3E:"M",\u1E40:"M",\u1E42:"M","\u2C6E":"M",\u019C:"M","\u24C3":"N",\uFF2E:"N",\u01F8:"N",\u0143:"N",\u00D1:"N",\u1E44:"N",\u0147:"N",\u1E46:"N",\u0145:"N",\u1E4A:"N",\u1E48:"N","\u0220":"N",\u019D:"N","\uA790":"N","\uA7A4":"N",\u01CA:"NJ",\u01CB:"Nj","\u24C4":"O",\uFF2F:"O",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u1ED2:"O",\u1ED0:"O",\u1ED6:"O",\u1ED4:"O",\u00D5:"O",\u1E4C:"O",\u022C:"O",\u1E4E:"O",\u014C:"O",\u1E50:"O",\u1E52:"O",\u014E:"O",\u022E:"O",\u0230:"O",\u00D6:"O",\u022A:"O",\u1ECE:"O",\u0150:"O",\u01D1:"O",\u020C:"O",\u020E:"O",\u01A0:"O",\u1EDC:"O",\u1EDA:"O",\u1EE0:"O",\u1EDE:"O",\u1EE2:"O",\u1ECC:"O",\u1ED8:"O",\u01EA:"O",\u01EC:"O",\u00D8:"O",\u01FE:"O",\u0186:"O",\u019F:"O","\uA74A":"O","\uA74C":"O",\u01A2:"OI","\uA74E":"OO",\u0222:"OU","\u24C5":"P",\uFF30:"P",\u1E54:"P",\u1E56:"P",\u01A4:"P","\u2C63":"P","\uA750":"P","\uA752":"P","\uA754":"P","\u24C6":"Q",\uFF31:"Q","\uA756":"Q","\uA758":"Q","\u024A":"Q","\u24C7":"R",\uFF32:"R",\u0154:"R",\u1E58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1E5A:"R",\u1E5C:"R",\u0156:"R",\u1E5E:"R","\u024C":"R","\u2C64":"R","\uA75A":"R","\uA7A6":"R","\uA782":"R","\u24C8":"S",\uFF33:"S","\u1E9E":"S",\u015A:"S",\u1E64:"S",\u015C:"S",\u1E60:"S",\u0160:"S",\u1E66:"S",\u1E62:"S",\u1E68:"S",\u0218:"S",\u015E:"S","\u2C7E":"S","\uA7A8":"S","\uA784":"S","\u24C9":"T",\uFF34:"T",\u1E6A:"T",\u0164:"T",\u1E6C:"T",\u021A:"T",\u0162:"T",\u1E70:"T",\u1E6E:"T",\u0166:"T",\u01AC:"T",\u01AE:"T","\u023E":"T","\uA786":"T","\uA728":"TZ","\u24CA":"U",\uFF35:"U",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u0168:"U",\u1E78:"U",\u016A:"U",\u1E7A:"U",\u016C:"U",\u00DC:"U",\u01DB:"U",\u01D7:"U",\u01D5:"U",\u01D9:"U",\u1EE6:"U",\u016E:"U",\u0170:"U",\u01D3:"U",\u0214:"U",\u0216:"U",\u01AF:"U",\u1EEA:"U",\u1EE8:"U",\u1EEE:"U",\u1EEC:"U",\u1EF0:"U",\u1EE4:"U",\u1E72:"U",\u0172:"U",\u1E76:"U",\u1E74:"U","\u0244":"U","\u24CB":"V",\uFF36:"V",\u1E7C:"V",\u1E7E:"V",\u01B2:"V","\uA75E":"V","\u0245":"V","\uA760":"VY","\u24CC":"W",\uFF37:"W",\u1E80:"W",\u1E82:"W",\u0174:"W",\u1E86:"W",\u1E84:"W",\u1E88:"W","\u2C72":"W","\u24CD":"X",\uFF38:"X",\u1E8A:"X",\u1E8C:"X","\u24CE":"Y",\uFF39:"Y",\u1EF2:"Y",\u00DD:"Y",\u0176:"Y",\u1EF8:"Y",\u0232:"Y",\u1E8E:"Y",\u0178:"Y",\u1EF6:"Y",\u1EF4:"Y",\u01B3:"Y","\u024E":"Y","\u1EFE":"Y","\u24CF":"Z",\uFF3A:"Z",\u0179:"Z",\u1E90:"Z",\u017B:"Z",\u017D:"Z",\u1E92:"Z",\u1E94:"Z",\u01B5:"Z",\u0224:"Z","\u2C7F":"Z","\u2C6B":"Z","\uA762":"Z","\u24D0":"a",\uFF41:"a",\u1E9A:"a",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u1EA7:"a",\u1EA5:"a",\u1EAB:"a",\u1EA9:"a",\u00E3:"a",\u0101:"a",\u0103:"a",\u1EB1:"a",\u1EAF:"a",\u1EB5:"a",\u1EB3:"a",\u0227:"a",\u01E1:"a",\u00E4:"a",\u01DF:"a",\u1EA3:"a",\u00E5:"a",\u01FB:"a",\u01CE:"a",\u0201:"a",\u0203:"a",\u1EA1:"a",\u1EAD:"a",\u1EB7:"a",\u1E01:"a",\u0105:"a","\u2C65":"a",\u0250:"a","\uA733":"aa",\u00E6:"ae",\u01FD:"ae",\u01E3:"ae","\uA735":"ao","\uA737":"au","\uA739":"av","\uA73B":"av","\uA73D":"ay","\u24D1":"b",\uFF42:"b",\u1E03:"b",\u1E05:"b",\u1E07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24D2":"c",\uFF43:"c",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u00E7:"c",\u1E09:"c",\u0188:"c","\u023C":"c","\uA73F":"c","\u2184":"c","\u24D3":"d",\uFF44:"d",\u1E0B:"d",\u010F:"d",\u1E0D:"d",\u1E11:"d",\u1E13:"d",\u1E0F:"d",\u0111:"d",\u018C:"d",\u0256:"d",\u0257:"d","\uA77A":"d",\u01F3:"dz",\u01C6:"dz","\u24D4":"e",\uFF45:"e",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u1EC1:"e",\u1EBF:"e",\u1EC5:"e",\u1EC3:"e",\u1EBD:"e",\u0113:"e",\u1E15:"e",\u1E17:"e",\u0115:"e",\u0117:"e",\u00EB:"e",\u1EBB:"e",\u011B:"e",\u0205:"e",\u0207:"e",\u1EB9:"e",\u1EC7:"e",\u0229:"e",\u1E1D:"e",\u0119:"e",\u1E19:"e",\u1E1B:"e","\u0247":"e",\u025B:"e",\u01DD:"e","\u24D5":"f",\uFF46:"f",\u1E1F:"f",\u0192:"f","\uA77C":"f","\u24D6":"g",\uFF47:"g",\u01F5:"g",\u011D:"g",\u1E21:"g",\u011F:"g",\u0121:"g",\u01E7:"g",\u0123:"g",\u01E5:"g",\u0260:"g","\uA7A1":"g","\u1D79":"g","\uA77F":"g","\u24D7":"h",\uFF48:"h",\u0125:"h",\u1E23:"h",\u1E27:"h",\u021F:"h",\u1E25:"h",\u1E29:"h",\u1E2B:"h",\u1E96:"h",\u0127:"h","\u2C68":"h","\u2C76":"h",\u0265:"h",\u0195:"hv","\u24D8":"i",\uFF49:"i",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u0129:"i",\u012B:"i",\u012D:"i",\u00EF:"i",\u1E2F:"i",\u1EC9:"i",\u01D0:"i",\u0209:"i",\u020B:"i",\u1ECB:"i",\u012F:"i",\u1E2D:"i",\u0268:"i",\u0131:"i","\u24D9":"j",\uFF4A:"j",\u0135:"j",\u01F0:"j","\u0249":"j","\u24DA":"k",\uFF4B:"k",\u1E31:"k",\u01E9:"k",\u1E33:"k",\u0137:"k",\u1E35:"k",\u0199:"k","\u2C6A":"k","\uA741":"k","\uA743":"k","\uA745":"k","\uA7A3":"k","\u24DB":"l",\uFF4C:"l",\u0140:"l",\u013A:"l",\u013E:"l",\u1E37:"l",\u1E39:"l",\u013C:"l",\u1E3D:"l",\u1E3B:"l",\u017F:"l",\u0142:"l",\u019A:"l",\u026B:"l","\u2C61":"l","\uA749":"l","\uA781":"l","\uA747":"l",\u01C9:"lj","\u24DC":"m",\uFF4D:"m",\u1E3F:"m",\u1E41:"m",\u1E43:"m",\u0271:"m",\u026F:"m","\u24DD":"n",\uFF4E:"n",\u01F9:"n",\u0144:"n",\u00F1:"n",\u1E45:"n",\u0148:"n",\u1E47:"n",\u0146:"n",\u1E4B:"n",\u1E49:"n",\u019E:"n",\u0272:"n",\u0149:"n","\uA791":"n","\uA7A5":"n",\u01CC:"nj","\u24DE":"o",\uFF4F:"o",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u1ED3:"o",\u1ED1:"o",\u1ED7:"o",\u1ED5:"o",\u00F5:"o",\u1E4D:"o",\u022D:"o",\u1E4F:"o",\u014D:"o",\u1E51:"o",\u1E53:"o",\u014F:"o",\u022F:"o",\u0231:"o",\u00F6:"o",\u022B:"o",\u1ECF:"o",\u0151:"o",\u01D2:"o",\u020D:"o",\u020F:"o",\u01A1:"o",\u1EDD:"o",\u1EDB:"o",\u1EE1:"o",\u1EDF:"o",\u1EE3:"o",\u1ECD:"o",\u1ED9:"o",\u01EB:"o",\u01ED:"o",\u00F8:"o",\u01FF:"o",\u0254:"o","\uA74B":"o","\uA74D":"o",\u0275:"o",\u01A3:"oi",\u0223:"ou","\uA74F":"oo","\u24DF":"p",\uFF50:"p",\u1E55:"p",\u1E57:"p",\u01A5:"p","\u1D7D":"p","\uA751":"p","\uA753":"p","\uA755":"p","\u24E0":"q",\uFF51:"q","\u024B":"q","\uA757":"q","\uA759":"q","\u24E1":"r",\uFF52:"r",\u0155:"r",\u1E59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1E5B:"r",\u1E5D:"r",\u0157:"r",\u1E5F:"r","\u024D":"r",\u027D:"r","\uA75B":"r","\uA7A7":"r","\uA783":"r","\u24E2":"s",\uFF53:"s",\u00DF:"s",\u015B:"s",\u1E65:"s",\u015D:"s",\u1E61:"s",\u0161:"s",\u1E67:"s",\u1E63:"s",\u1E69:"s",\u0219:"s",\u015F:"s","\u023F":"s","\uA7A9":"s","\uA785":"s",\u1E9B:"s","\u24E3":"t",\uFF54:"t",\u1E6B:"t",\u1E97:"t",\u0165:"t",\u1E6D:"t",\u021B:"t",\u0163:"t",\u1E71:"t",\u1E6F:"t",\u0167:"t",\u01AD:"t",\u0288:"t","\u2C66":"t","\uA787":"t","\uA729":"tz","\u24E4":"u",\uFF55:"u",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u0169:"u",\u1E79:"u",\u016B:"u",\u1E7B:"u",\u016D:"u",\u00FC:"u",\u01DC:"u",\u01D8:"u",\u01D6:"u",\u01DA:"u",\u1EE7:"u",\u016F:"u",\u0171:"u",\u01D4:"u",\u0215:"u",\u0217:"u",\u01B0:"u",\u1EEB:"u",\u1EE9:"u",\u1EEF:"u",\u1EED:"u",\u1EF1:"u",\u1EE5:"u",\u1E73:"u",\u0173:"u",\u1E77:"u",\u1E75:"u",\u0289:"u","\u24E5":"v",\uFF56:"v",\u1E7D:"v",\u1E7F:"v",\u028B:"v","\uA75F":"v",\u028C:"v","\uA761":"vy","\u24E6":"w",\uFF57:"w",\u1E81:"w",\u1E83:"w",\u0175:"w",\u1E87:"w",\u1E85:"w",\u1E98:"w",\u1E89:"w","\u2C73":"w","\u24E7":"x",\uFF58:"x",\u1E8B:"x",\u1E8D:"x","\u24E8":"y",\uFF59:"y",\u1EF3:"y",\u00FD:"y",\u0177:"y",\u1EF9:"y",\u0233:"y",\u1E8F:"y",\u00FF:"y",\u1EF7:"y",\u1E99:"y",\u1EF5:"y",\u01B4:"y","\u024F":"y","\u1EFF":"y","\u24E9":"z",\uFF5A:"z",\u017A:"z",\u1E91:"z",\u017C:"z",\u017E:"z",\u1E93:"z",\u1E95:"z",\u01B6:"z",\u0225:"z","\u0240":"z","\u2C6C":"z","\uA763":"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038A:"\u0399",\u03AA:"\u0399",\u038C:"\u039F",\u038E:"\u03A5",\u03AB:"\u03A5",\u038F:"\u03A9",\u03AC:"\u03B1",\u03AD:"\u03B5",\u03AE:"\u03B7",\u03AF:"\u03B9",\u03CA:"\u03B9",\u0390:"\u03B9",\u03CC:"\u03BF",\u03CD:"\u03C5",\u03CB:"\u03C5",\u03B0:"\u03C5",\u03C9:"\u03C9",\u03C2:"\u03C3"};function ne(n){let t=s=>Yt[s]||s;return n.replace(/[^\u0000-\u007E]/g,t)}var pe=class{constructor(t,s){this._ngSelect=t,this._selectionModel=s,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let t=this.selectedItems.length-1;for(;t>=0;t--){let s=this.selectedItems[t];if(!s.disabled)return s}return null}setItems(t){this._items=t.map((s,e)=>this.mapItem(s,e)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(t){if(t.selected||this.maxItemsSelected)return;let s=this._ngSelect.multiple;s||this.clearSelected(),this._selectionModel.select(t,s,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(t)}unselect(t){t.selected&&(this._selectionModel.unselect(t,this._ngSelect.multiple),this._ngSelect.hideSelected&&p(t.index)&&this._ngSelect.multiple&&this._showSelected(t))}findItem(t){let s;return this._ngSelect.compareWith?s=e=>this._ngSelect.compareWith(e.value,t):this._ngSelect.bindValue?s=e=>!e.children&&this.resolveNested(e.value,this._ngSelect.bindValue)===t:s=e=>e.value===t||!e.children&&e.label&&e.label===this.resolveNested(t,this._ngSelect.bindLabel),this._items.find(e=>s(e))}addItem(t){let s=this.mapItem(t,this._items.length);return this._items.push(s),this._filteredItems.push(s),s}clearSelected(t=!1){this._selectionModel.clear(t),this._items.forEach(s=>{s.selected=t&&s.selected&&s.disabled,s.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(t){return t=ne(t).toLocaleLowerCase(),this.filteredItems.find(s=>ne(s.label).toLocaleLowerCase().substr(0,t.length)===t)}filter(t){if(!t){this.resetFilteredItems();return}this._filteredItems=[],t=this._ngSelect.searchFn?t:ne(t).toLocaleLowerCase();let s=this._ngSelect.searchFn||this._defaultSearchFn,e=this._ngSelect.hideSelected;for(let i of Array.from(this._groups.keys())){let l=[];for(let o of this._groups.get(i)){if(e&&(o.parent&&o.parent.selected||o.selected))continue;let r=this._ngSelect.searchFn?o.value:o;s(t,r)&&l.push(o)}if(l.length>0){let[o]=l.slice(-1);if(o.parent){let r=this._items.find(a=>a===o.parent);this._filteredItems.push(r)}this._filteredItems.push(...l)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._ngSelect.hideSelected&&this.selectedItems.length>0?this._filteredItems=this._items.filter(t=>!t.selected):this._filteredItems=this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(t){this._markedIndex=this._filteredItems.indexOf(t)}markSelectedOrDefault(t){if(this._filteredItems.length===0)return;let s=this._getLastMarkedIndex();s>-1?this._markedIndex=s:this._markedIndex=t?this.filteredItems.findIndex(e=>!e.disabled):-1}resolveNested(t,s){if(!Y(t))return t;if(s.indexOf(".")===-1)return t[s];{let e=s.split("."),i=t;for(let l=0,o=e.length;lthis.selectedItems.indexOf(s)===-1))}_showSelected(t){if(this._filteredItems.push(t),t.parent){let s=t.parent;this._filteredItems.find(i=>i===s)||this._filteredItems.push(s)}else if(t.children)for(let s of t.children)s.selected=!1,this._filteredItems.push(s);this._filteredItems=[...this._filteredItems.sort((s,e)=>s.index-e.index)]}_hideSelected(t){this._filteredItems=this._filteredItems.filter(s=>s!==t),t.parent?t.parent.children.every(e=>e.selected)&&(this._filteredItems=this._filteredItems.filter(e=>e!==t.parent)):t.children&&(this._filteredItems=this.filteredItems.filter(s=>s.parent!==t))}_defaultSearchFn(t,s){return ne(s.label).toLocaleLowerCase().indexOf(t)>-1}_getNextItemIndex(t){return t>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(t){this._filteredItems.length===0||this._filteredItems.every(s=>s.disabled)||(this._markedIndex=this._getNextItemIndex(t),this.markedItem.disabled&&this._stepToItem(t))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&this.markedItem===void 0)return-1;let t=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&t<0?-1:Math.max(this.markedIndex,t)}_groupBy(t,s){let e=new Map;if(t.length===0)return e;if(Array.isArray(t[0].value[s])){for(let o of t){let r=(o.value[s]||[]).map((a,x)=>this.mapItem(a,x));e.set(o,r)}return e}let i=se(this._ngSelect.groupBy),l=o=>{let r=i?s(o.value):o.value[s];return p(r)?r:void 0};for(let o of t){let r=l(o),a=e.get(r);a?a.push(o):e.set(r,[o])}return e}_flatten(t){let s=se(this._ngSelect.groupBy),e=[];for(let i of Array.from(t.keys())){let l=e.length;if(i===void 0){let S=t.get(void 0)||[];e.push(...S.map(H=>(H.index=l++,H)));continue}let o=Y(i),r={label:o?"":String(i),children:void 0,parent:null,index:l++,disabled:!this._ngSelect.selectableGroup,htmlId:$e()},a=s?this._ngSelect.bindLabel:this._ngSelect.groupBy,x=this._ngSelect.groupValue||(()=>o?i.value:{[a]:i}),C=t.get(i).map(S=>(S.parent=r,S.children=void 0,S.index=l++,S));r.children=C,r.value=x(i,C.map(S=>S.value)),e.push(r),e.push(...C)}return e}},O=function(n){return n[n.Tab=9]="Tab",n[n.Enter=13]="Enter",n[n.Esc=27]="Esc",n[n.Space=32]="Space",n[n.ArrowUp=38]="ArrowUp",n[n.ArrowDown=40]="ArrowDown",n[n.Backspace=8]="Backspace",n}(O||{}),Ye=(()=>{let t=class t{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(e,i,l){let o=this._dimensions,r=o.itemHeight*i,x=Math.max(0,e)/r*i,C=Math.min(i,Math.ceil(x)+(o.itemsPerViewport+1)),H=Math.max(0,C-o.itemsPerViewport),k=Math.min(H,Math.floor(x)),Z=o.itemHeight*Math.ceil(k)-o.itemHeight*Math.min(k,l);return Z=isNaN(Z)?0:Z,k=isNaN(k)?-1:k,C=isNaN(C)?-1:C,k-=l,k=Math.max(0,k),C+=l,C=Math.min(i,C),{topPadding:Z,scrollHeight:r,start:k,end:C}}setDimensions(e,i){let l=Math.max(1,Math.floor(i/e));this._dimensions={itemHeight:e,panelHeight:i,itemsPerViewport:l}}getScrollTo(e,i,l){let{panelHeight:o}=this.dimensions,r=e+i,a=l,x=a+o;return o>=r&&l===e?null:r>x?a+r-x:e<=a?e:null}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac});let n=t;return n})(),Qe=["top","right","bottom","left"],Kt=typeof requestAnimationFrame<"u"?_e:fe,We=(()=>{let t=class t{constructor(e,i,l,o,r){this._renderer=e,this._zone=i,this._panelService=l,this._document=r,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new v,this.scroll=new v,this.scrollToEnd=new v,this.outsideClick=new v,this._destroy$=new W,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=o.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){let{itemHeight:e,panelHeight:i}=this._panelService.dimensions,l=this.markedItem.index*e;return i>l?0:l}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(e){if(e.items){let i=e.items;this._onItemsChange(i.currentValue,i.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(e,i=!1){if(!e)return;let l=this.items.indexOf(e);if(l<0||l>=this.itemsLength)return;let o;if(this.virtualScroll){let r=this._panelService.dimensions.itemHeight;o=this._panelService.getScrollTo(l*r,r,this._lastScrollPosition)}else{let r=this._dropdown.querySelector(`#${e.htmlId}`),a=i?r.offsetTop:this._lastScrollPosition;o=this._panelService.getScrollTo(r.offsetTop,r.clientHeight,a)}p(o)&&(this._scrollablePanel.scrollTop=o)}scrollToTag(){let e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),Qe.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(e){Qe.forEach(l=>{let o=`ng-select-${l}`;this._renderer.removeClass(this._dropdown,o),this._renderer.removeClass(this._select,o)});let i=`ng-select-${e}`;this._renderer.addClass(this._dropdown,i),this._renderer.addClass(this._select,i)}_handleScroll(){this._zone.runOutsideAngular(()=>{G(this.scrollElementRef.nativeElement,"scroll").pipe(N(this._destroy$),be(0,Kt)).subscribe(e=>{let i=e.path||e.composedPath&&e.composedPath();if(!i||i.length===0&&!e.target)return;let l=!i||i.length===0?e.target.scrollTop:i[0].scrollTop;this._onContentScrolled(l)})})}_handleOutsideClick(){this._document&&this._zone.runOutsideAngular(()=>{J(G(this._document,"touchstart",{capture:!0}),G(this._document,"click",{capture:!0})).pipe(N(this._destroy$)).subscribe(e=>this._checkToClose(e))})}_checkToClose(e){if(this._select.contains(e.target)||this._dropdown.contains(e.target))return;let i=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&i&&i[0]&&this._select.contains(i[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(e,i){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(i):(this._setVirtualHeight(),this._updateItems(i))}_updateItems(e){this.update.emit(this.items),e!==!1&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{let i=this._scrollablePanel.clientHeight;this._panelService.setDimensions(0,i),this._handleDropdownPosition(),this.scrollTo(this.markedItem,e)})})}_updateItemsRange(e){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{e?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}_updateVirtualHeight(e){this._updateScrollHeight&&(this._virtualPadding.style.height=`${e}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(e=null){if(e&&this._lastScrollPosition===e)return;e=e||this._scrollablePanel.scrollTop;let i=this._panelService.calculateItems(e,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(i.scrollHeight),this._contentPanel.style.transform=`translateY(${i.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(i.start,i.end)),this.scroll.emit({start:i.start,end:i.end})}),p(e)&&this._lastScrollPosition===0&&(this._scrollablePanel.scrollTop=e,this._lastScrollPosition=e)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||this.itemsLength===0)return Promise.resolve(this._panelService.dimensions);let[e]=this.items;return this.update.emit([e]),Promise.resolve().then(()=>{let l=this._dropdown.querySelector(`#${e.htmlId}`).clientHeight;this._virtualPadding.style.height=`${l*this.itemsLength}px`;let o=this._scrollablePanel.clientHeight;return this._panelService.setDimensions(l,o),this._panelService.dimensions})}_fireScrollToEnd(e){if(this._scrollToEndFired||e===0)return;let i=this.virtualScroll?this._virtualPadding:this._contentPanel;e+this._dropdown.clientHeight>=i.clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(e){if(this.position!=="auto")return this.position;let i=this._select.getBoundingClientRect(),l=document.documentElement.scrollTop||document.body.scrollTop,o=i.top+window.pageYOffset,r=i.height,a=e.getBoundingClientRect().height;return o+r+a>l+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.left-i.left;this._dropdown.style.left=l+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}_updateYPosition(){let e=this._select.getBoundingClientRect(),i=this._parent.getBoundingClientRect(),l=e.height;if(this._currentPosition==="top"){let o=i.bottom-e.bottom;this._dropdown.style.bottom=o+l+"px",this._dropdown.style.top="auto"}else if(this._currentPosition==="bottom"){let o=e.top-i.top;this._dropdown.style.top=o+l+"px",this._dropdown.style.bottom="auto"}}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{G(this._dropdown,"mousedown").pipe(N(this._destroy$)).subscribe(e=>{e.target.tagName!=="INPUT"&&e.preventDefault()})})}};t.\u0275fac=function(i){return new(i||t)(d(Ae),d(xe),d(Ye),d(L),d(He,8))},t.\u0275cmp=ee({type:t,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,l){if(i&1&&(R(Ze,7,L),R(Je,7,L),R(Xe,7,L)),i&2){let o;g(o=f())&&(l.contentElementRef=o.first),g(o=f())&&(l.scrollElementRef=o.first),g(o=f())&&(l.paddingElementRef=o.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:[2,"virtualScroll","virtualScroll",_],headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[te,q],ngContentSelectors:Ge,decls:9,vars:6,consts:[["scroll",""],["padding",""],["content",""],[1,"ng-dropdown-header"],["role","listbox",1,"ng-dropdown-panel-items","scroll-host"],[1,"ng-dropdown-footer"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,l){i&1&&(ce(),w(0,et,2,4,"div",3),m(1,"div",4,0),j(3,"div",null,1),m(5,"div",null,2),de(7),E()(),w(8,tt,2,4,"div",5)),i&2&&(A(l.headerTemplate?0:-1),u(3),B("total-padding",l.virtualScroll),u(2),B("scrollable-content",l.virtualScroll&&l.items.length),u(3),A(l.footerTemplate?8:-1))},dependencies:[he],encapsulation:2,changeDetection:0});let n=t;return n})(),Zt=(()=>{let t=class t{constructor(e){this.elementRef=e,this.disabled=!1,this.stateChange$=new W}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this.disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this.disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}};t.\u0275fac=function(i){return new(i||t)(d(L))},t.\u0275cmp=ee({type:t,selectors:[["ng-option"]],inputs:{value:"value",disabled:[2,"disabled","disabled",_]},features:[te,q],ngContentSelectors:Ge,decls:1,vars:0,template:function(i,l){i&1&&(ce(),de(0))},encapsulation:2,changeDetection:0});let n=t;return n})(),Jt=(()=>{let t=class t{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Xt=(()=>{let t=class t{warn(e){console.warn(e)}};t.\u0275fac=function(i){return new(i||t)},t.\u0275prov=X({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})(),Ke=new Fe("ng-select-selection-model"),yi=(()=>{let t=class t{get items(){return this._items}set items(e){this._itemsAreUsed=!0,this._items=e??[]}get compareWith(){return this._compareWith}set compareWith(e){if(e!=null&&!se(e))throw Error("`compareWith` must be a function.");this._compareWith=e}get clearSearchOnAdd(){return p(this._clearSearchOnAdd)?this._clearSearchOnAdd:p(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(e){this._clearSearchOnAdd=e}get deselectOnClick(){return p(this._deselectOnClick)?this._deselectOnClick:p(this.config.deselectOnClick)?this.config.deselectOnClick:this.multiple}set deselectOnClick(e){this._deselectOnClick=e}get dropdownPanelStaticClasses(){return this.appendTo&&this.classes?`ng-dropdown-panel ${this.classes}`:"ng-dropdown-panel"}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}constructor(e,i,l,o,r,a,x){this.classes=e,this.autoFocus=i,this.config=l,this._cd=a,this._console=x,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=C=>!0,this.ngClass=null,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new v,this.focusEvent=new v,this.changeEvent=new v,this.openEvent=new v,this.closeEvent=new v,this.searchEvent=new v,this.clearEvent=new v,this.addEvent=new v,this.removeEvent=new v,this.scroll=new v,this.scrollToEnd=new v,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=$e(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new W,this._keyPress$=new W,this._onChange=C=>{},this._onTouched=()=>{},this.clearItem=C=>{let S=this.selectedItems.find(H=>H.value===C);this.unselect(S)},this.trackByOption=(C,S)=>this.trackByFn?this.trackByFn(S.value):S,this._mergeGlobalConfig(l),this.itemsList=new pe(this,o()),this.element=r.nativeElement}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(e=>e.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=p(e.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),p(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(e){if(O[e.which]){if(this.keyDownFn(e)===!1)return;this.handleKeyCode(e)}else e.key&&e.key.length===1&&this._keyPress$.next(e.key.toLocaleLowerCase())}handleKeyCode(e){let i=e.target;this.clearButton&&this.clearButton.nativeElement===i?this.handleKeyCodeClear(e):this.handleKeyCodeInput(e)}handleKeyCodeInput(e){switch(e.which){case O.ArrowDown:this._handleArrowDown(e);break;case O.ArrowUp:this._handleArrowUp(e);break;case O.Space:this._handleSpace(e);break;case O.Enter:this._handleEnter(e);break;case O.Tab:this._handleTab(e);break;case O.Esc:this.close(),e.preventDefault();break;case O.Backspace:this._handleBackspace();break}}handleKeyCodeClear(e){switch(e.which){case O.Enter:this.handleClearClick(),e.preventDefault();break}}handleMousedown(e){let i=e.target;if(i.tagName!=="INPUT"&&e.preventDefault(),i.classList.contains("ng-clear-wrapper")){this.handleClearClick();return}if(i.classList.contains("ng-arrow-wrapper")){this.handleArrowClick();return}i.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._disabled=e,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(e){!e||e.disabled||this.disabled||(this.deselectOnClick&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e.value))}selectTag(){let e;se(this.addTag)?e=this.addTag(this.searchTerm):e=this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};let i=l=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(l,null):this.itemsList.addItem(l);Pt(e)?e.then(l=>this.select(i(l))).catch(()=>{}):e&&this.select(i(e))}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}focusOnClear(){this.blur(),this.clearButton&&this.clearButton.nativeElement.focus()}get showAddTag(){if(!this._validTerm)return!1;let e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(i=>i.label.toLowerCase()===e)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(i=>i.label.toLowerCase()===e))&&!this.loading}showNoItemsFound(){let e=this.itemsList.filteredItems.length===0;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return this.itemsList.filteredItems.length===0&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(e){this._isComposing=!1,!this.searchWhileComposing&&this.filter(e)}filter(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||this.minTermLength===0)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(i=>i.value)}),this.open())}onInputFocus(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}onInputBlur(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(e){e.disabled||this.itemsList.markItem(e)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){let e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}_setItems(e){let i=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=p(i)?!Y(i):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&p(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){let e=l=>{this.items=l.map(o=>({$ngOptionValue:o.value,$ngOptionLabel:o.elementRef.nativeElement.innerHTML,disabled:o.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},i=()=>{let l=J(this.ngOptions.changes,this._destroy$);J(...this.ngOptions.map(o=>o.stateChange$)).pipe(N(l)).subscribe(o=>{let r=this.itemsList.findItem(o.value);r.disabled=o.disabled,r.label=o.label||r.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe(ve(this.ngOptions),N(this._destroy$)).subscribe(l=>{this.bindLabel=this._defaultLabel,e(l),i()})}_isValidWriteValue(e){if(!p(e)||this.multiple&&e===""||Array.isArray(e)&&e.length===0)return!1;let i=l=>!p(this.compareWith)&&Y(l)&&this.bindValue?(this._console.warn(`Setting object(${JSON.stringify(l)}) as your model with bindValue is not allowed unless [compareWith] is used.`),!1):!0;return this.multiple?Array.isArray(e)?e.every(l=>i(l)):(this._console.warn("Multiple select ngModel should be array."),!1):i(e)}_handleWriteValue(e){if(!this._isValidWriteValue(e))return;let i=l=>{let o=this.itemsList.findItem(l);if(o)this.itemsList.select(o);else{let r=Y(l),a=!r&&!this.bindValue;r||a?this.itemsList.select(this.itemsList.mapItem(l,null)):this.bindValue&&(o={[this.bindLabel]:null,[this.bindValue]:l},this.itemsList.select(this.itemsList.mapItem(o,null)))}};this.multiple?e.forEach(l=>i(l)):i(e)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe(N(this._destroy$),we(e=>this._pressedKeys.push(e)),Te(200),Ce(()=>this._pressedKeys.length>0),Ee(()=>this._pressedKeys.join(""))).subscribe(e=>{let i=this.itemsList.findByLabel(e);i&&(this.isOpen?(this.itemsList.markItem(i),this._scrollToMarked(),this._cd.markForCheck()):this.select(i)),this._pressedKeys=[]})}_setInputAttributes(){let e=this.searchInput.nativeElement,i=ge({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs);for(let l of Object.keys(i))e.setAttribute(l,i[l])}_updateNgModel(){let e=[];for(let l of this.selectedItems)if(this.bindValue){let o=null;if(l.children){let r=this.groupValue?this.bindValue:this.groupBy;o=l.value[r||this.groupBy]}else o=this.itemsList.resolveNested(l.value,this.bindValue);e.push(o)}else e.push(l.value);let i=this.selectedItems.map(l=>l.value);this.multiple?(this._onChange(e),this.changeEvent.emit(i)):(this._onChange(p(e[0])?e[0]:null),this.changeEvent.emit(i[0])),this._cd.markForCheck()}_clearSearch(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.deselectOnClick&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(e){if(this.isOpen===!1){if(this.showClear()&&!e.shiftKey)this.focusOnClear(),e.preventDefault();else if(!this.addTag)return}this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close()}_handleEnter(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else if(this.openOnEnter)this.open();else return;e.preventDefault()}_handleSpace(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}_handleArrowDown(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}_handleArrowUp(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}_nextItemIsTag(e){let i=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(i<0||i===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){let e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}_mergeGlobalConfig(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=p(this.virtualScroll)?this.virtualScroll:p(e.disableVirtualScroll)?!e.disableVirtualScroll:!1,this.openOnEnter=p(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}};t.\u0275fac=function(i){return new(i||t)(le("class"),le("autofocus"),d(Jt),d(Ke),d(L),d(Re),d(Xt))},t.\u0275cmp=ee({type:t,selectors:[["ng-select"]],contentQueries:function(i,l,o){if(i&1&&(I(o,Nt,5,h),I(o,Rt,5,h),I(o,Ht,5,h),I(o,jt,5,h),I(o,Ut,5,h),I(o,zt,5,h),I(o,Qt,5,h),I(o,Wt,5,h),I(o,Gt,5,h),I(o,qt,5,h),I(o,$t,5,h),I(o,Zt,5)),i&2){let r;g(r=f())&&(l.optionTemplate=r.first),g(r=f())&&(l.optgroupTemplate=r.first),g(r=f())&&(l.labelTemplate=r.first),g(r=f())&&(l.multiLabelTemplate=r.first),g(r=f())&&(l.headerTemplate=r.first),g(r=f())&&(l.footerTemplate=r.first),g(r=f())&&(l.notFoundTemplate=r.first),g(r=f())&&(l.typeToSearchTemplate=r.first),g(r=f())&&(l.loadingTextTemplate=r.first),g(r=f())&&(l.tagTemplate=r.first),g(r=f())&&(l.loadingSpinnerTemplate=r.first),g(r=f())&&(l.ngOptions=r)}},viewQuery:function(i,l){if(i&1&&(R(We,5),R(it,7),R(nt,5)),i&2){let o;g(o=f())&&(l.dropdownPanel=o.first),g(o=f())&&(l.searchInput=o.first),g(o=f())&&(l.clearButton=o.first)}},hostVars:20,hostBindings:function(i,l){i&1&&P("keydown",function(r){return l.handleKeyDown(r)}),i&2&&B("ng-select-typeahead",l.typeahead)("ng-select-multiple",l.multiple)("ng-select-taggable",l.addTag)("ng-select-searchable",l.searchable)("ng-select-clearable",l.clearable)("ng-select-opened",l.isOpen)("ng-select",l.useDefaultClass)("ng-select-disabled",l.disabled)("ng-select-filtered",l.filtered)("ng-select-single",l.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:[2,"markFirst","markFirst",_],placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:[2,"loading","loading",_],closeOnSelect:[2,"closeOnSelect","closeOnSelect",_],hideSelected:[2,"hideSelected","hideSelected",_],selectOnTab:[2,"selectOnTab","selectOnTab",_],openOnEnter:[2,"openOnEnter","openOnEnter",_],maxSelectedItems:[2,"maxSelectedItems","maxSelectedItems",$],groupBy:"groupBy",groupValue:"groupValue",bufferAmount:[2,"bufferAmount","bufferAmount",$],virtualScroll:[2,"virtualScroll","virtualScroll",_],selectableGroup:[2,"selectableGroup","selectableGroup",_],selectableGroupAsModel:[2,"selectableGroupAsModel","selectableGroupAsModel",_],searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:[2,"clearOnBackspace","clearOnBackspace",_],labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:[2,"tabIndex","tabIndex",$],readonly:[2,"readonly","readonly",_],searchWhileComposing:[2,"searchWhileComposing","searchWhileComposing",_],minTermLength:[2,"minTermLength","minTermLength",$],editableSearchTerm:[2,"editableSearchTerm","editableSearchTerm",_],keyDownFn:"keyDownFn",ngClass:"ngClass",typeahead:"typeahead",multiple:[2,"multiple","multiple",_],addTag:"addTag",searchable:[2,"searchable","searchable",_],clearable:[2,"clearable","clearable",_],isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",deselectOnClick:"deselectOnClick"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[Ve([{provide:ze,useExisting:ye(()=>t),multi:!0},Ye]),te,q],decls:14,vars:19,consts:[["searchInput",""],["defaultLabelTemplate",""],["defaultLoadingSpinnerTemplate",""],["clearButton",""],["defaultOptionTemplate",""],["defaultTagTemplate",""],["defaultNotFoundTemplate",""],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""],[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"input","compositionstart","compositionend","focus","blur","change","readOnly","disabled","value"],["tabindex","0",1,"ng-clear-wrapper",3,"title"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["role","listbox","aria-label","Options list",3,"class","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id"],[1,"ng-value",3,"ng-value-disabled"],[1,"ng-value"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",3,"update","scroll","scrollToEnd","outsideClick","virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id"],[1,"ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked"],["role","option",1,"ng-option",3,"ng-option-marked"],[1,"ng-option",3,"click","mouseover"],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],[1,"ng-tag-label"],[1,"ng-option","ng-option-disabled"]],template:function(i,l){if(i&1){let o=U();m(0,"div",9),P("mousedown",function(a){return b(o),T(l.handleMousedown(a))}),m(1,"div",10)(2,"div",11),V(3),E(),w(4,ct,2,0)(5,ht,1,5,null,12),m(6,"div",13)(7,"input",14,0),P("input",function(){b(o);let a=D(8);return T(l.filter(a.value))})("compositionstart",function(){return b(o),T(l.onCompositionStart())})("compositionend",function(){b(o);let a=D(8);return T(l.onCompositionEnd(a.value))})("focus",function(a){return b(o),T(l.onInputFocus(a))})("blur",function(a){return b(o),T(l.onInputBlur(a))})("change",function(a){return b(o),T(a.stopPropagation())}),E()()(),w(9,gt,3,1)(10,ft,4,1,"span",15),m(11,"span",16),j(12,"span",17),E()(),w(13,kt,8,19,"ng-dropdown-panel",18)}i&2&&(B("ng-appearance-outline",l.appearance==="outline")("ng-has-value",l.hasValue),u(3),z(l.placeholder),u(),A((!l.multiLabelTemplate||!l.multiple)&&l.selectedItems.length>0?4:-1),u(),A(l.multiple&&l.multiLabelTemplate&&l.selectedValues.length>0?5:-1),u(),ie("aria-expanded",l.isOpen)("aria-owns",l.isOpen?l.dropdownId:null),u(),y("readOnly",!l.searchable||l.itemsList.maxItemsSelected)("disabled",l.disabled)("value",l.searchTerm?l.searchTerm:""),ie("id",l.labelForId)("tabindex",l.tabIndex)("aria-activedescendant",l.isOpen?l.itemsList==null||l.itemsList.markedItem==null?null:l.itemsList.markedItem.htmlId:null)("aria-controls",l.isOpen?l.dropdownId:null),u(2),A(l.loading?9:-1),u(),A(l.showClear()?10:-1),u(3),A(l.isOpen?13:-1))},dependencies:[je,he,We,Mt],styles:[`@charset "UTF-8";.ng-select{position:relative;display:block;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@-webkit-keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes load8{0%{-webkit-transform:rotate(0deg);transform:rotate(0)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0} -`],encapsulation:2,changeDetection:0});let n=t;return n})();function ei(){return new me}var me=class{constructor(){this._selected=[]}get value(){return this._selected}select(t,s,e){if(t.selected=!0,(!t.children||!s&&e)&&this._selected.push(t),s)if(t.parent){let i=t.parent.children.length,l=t.parent.children.filter(o=>o.selected).length;t.parent.selected=i===l}else t.children&&(this._setChildrenSelectedState(t.children,!0),this._removeChildren(t),e&&this._activeChildren(t)?this._selected=[...this._selected.filter(i=>i.parent!==t),t]:this._selected=[...this._selected,...t.children.filter(i=>!i.disabled)])}unselect(t,s){if(this._selected=this._selected.filter(e=>e!==t),t.selected=!1,s)if(t.parent&&t.parent.selected){let e=t.parent.children;this._removeParent(t.parent),this._removeChildren(t.parent),this._selected.push(...e.filter(i=>i!==t&&!i.disabled)),t.parent.selected=!1}else t.children&&(this._setChildrenSelectedState(t.children,!1),this._removeChildren(t))}clear(t){this._selected=t?this._selected.filter(s=>s.disabled):[]}_setChildrenSelectedState(t,s){for(let e of t)e.disabled||(e.selected=s)}_removeChildren(t){this._selected=[...this._selected.filter(s=>s.parent!==t),...t.children.filter(s=>s.parent===t&&s.disabled&&s.selected)]}_removeParent(t){this._selected=this._selected.filter(s=>s!==t)}_activeChildren(t){return t.children.every(s=>!s.disabled||s.selected)}},Si=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=Ie({type:t}),t.\u0275inj=Se({providers:[{provide:Ke,useValue:ei}],imports:[Ue]});let n=t;return n})();export{yi as a,Si as b}; diff --git a/dist/chunk-ZVWZNNVO.js b/dist/chunk-ZVWZNNVO.js deleted file mode 100644 index 81a025a5..00000000 --- a/dist/chunk-ZVWZNNVO.js +++ /dev/null @@ -1 +0,0 @@ -import{a as D}from"./chunk-V6EVLSKF.js";import{a as A}from"./chunk-EAEBZZLM.js";import{a as T}from"./chunk-RNWIIYZZ.js";import{a as I}from"./chunk-SUAWKU6Z.js";import{D as O,F as E,H as P,t as S,u as y,w as F}from"./chunk-CKPIETEW.js";import{$a as g,Db as n,Eb as o,Fb as r,Jb as v,Nb as d,Ob as _,Xb as c,Zb as x,ab as a,cc as C,fa as w,hc as k,ic as M,qa as p,ra as b,rb as u,yb as f}from"./chunk-ZKAUCJHV.js";import"./chunk-DEPBX7UX.js";function V(s,l){if(s&1){let h=v();n(0,"li",5),d("click",function(){p(h);let t=_();return b(t.gotoZenDeepSee())}),r(1,"img",10),c(2),k(3,"i18n"),o()}s&2&&(g(2),x(" ",M(3,1,"gotoDeepSee")," "))}function L(s,l){if(s&1){let h=v();n(0,"li",2),d("click",function(){p(h);let t=_();return b(t.editDashboard())}),r(1,"img",11),c(2," Edit dashboard "),o()}}var U=(()=>{let l=class l{constructor(e,t,i,m,H,j,B){this.router=e,this.route=t,this.ds=i,this.ms=m,this.modal=H,this.sbs=j,this.hs=B,this.isHome=!1,this.version=E.const.ver,this.checkHome()}ngOnInit(){this.subOnRouteChange=this.router.events.subscribe(e=>{e instanceof S&&this.checkHome()})}ngOnDestroy(){this.subOnRouteChange?.unsubscribe()}checkHome(){let e=this.router.url.split("/");this.isHome=!e[e.length-1]?.endsWith(".dashboard")}editDashboard(){this.hs.resetSearch(),this.ms.onEditDashboard.emit(!0)}logout(){this.ds.signOut()}showNamespaceSelector(){this.sbs.showComponent({component:import("./chunk-HUWDVSGZ.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-7Z56RI72.js")})}showAboutDialog(){this.modal.show({title:"DeepSeeWeb v."+this.version,component:import("./chunk-5JY2ZKSE.js"),closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-WEBWYYX4.js")})}shareDashboard(){this.hs.shareDashboard()}gotoZenDeepSee(){this.hs.gotoZenDeepSee()}};l.\u0275fac=function(t){return new(t||l)(a(F),a(y),a(P),a(A),a(T),a(I),a(D))},l.\u0275cmp=w({type:l,selectors:[["dsw-menu"]],standalone:!0,features:[C],decls:21,vars:3,consts:[[1,"only-sm"],[1,"divider","only-sm"],[3,"click"],["src","assets/img/icons/icon-settings.svg"],["src","assets/img/icons/icon-namespace.svg"],[1,"only-sm",3,"click"],["src","assets/img/icons/language-24px.svg"],["src","assets/img/icons/icon-info.svg"],["src","assets/img/icons/icon-logout.svg"],[1,"version"],["src","assets/img/icons/icon-navigate.svg"],["src","assets/img/icons/icon-edit.svg"]],template:function(t,i){t&1&&(n(0,"ul"),u(1,V,4,3,"li",0),r(2,"div",1),u(3,L,3,0,"li"),n(4,"li",2),d("click",function(){return i.showSettingsMenu()}),r(5,"img",3),c(6," Settings "),o(),n(7,"li",2),d("click",function(){return i.showNamespaceSelector()}),r(8,"img",4),c(9," Namespace "),o(),n(10,"li",5),d("click",function(){return i.showLanguageSelector()}),r(11,"img",6),c(12," Language "),o(),n(13,"li",2),d("click",function(){return i.showAboutDialog()}),r(14,"img",7),c(15," About "),o(),n(16,"li",5),d("click",function(){return i.logout()}),r(17,"img",8),c(18," Logout "),o()(),n(19,"span",9),c(20),o()),t&2&&(g(),f(i.isHome?-1:1),g(2),f(i.isHome?3:-1),g(17),x("v.",i.version,""))},dependencies:[O],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block;height:100%;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:30px 0 0}@keyframes _ngcontent-%COMP%_pulse{0%{transform:scale(1)}50%{transform:scale(1.1)}to{transform:scale(1)}}li[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;font-family:Oxygen;color:var(--cl-header-txt);font-size:14px;background-color:var(--cl-sidebar-bg);cursor:pointer;transition:background-color .3s linear;white-space:nowrap;padding:10px 15px 10px 40px;border-radius:0 40px 40px 0}li[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}li[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:15px;min-width:18px}li[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}li[_ngcontent-%COMP%]:hover > img[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse .3s;animation-timing-function:linear}li[_ngcontent-%COMP%]:after{display:block;content:" ";position:absolute;bottom:0;height:1px;left:10px;right:10px;opacity:.2}.version[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;font-family:Oxygen;font-size:9px;padding:6px;color:var(--cl-header-txt)}.spinner[_ngcontent-%COMP%]{margin-left:86px}.divider[_ngcontent-%COMP%]{height:1px;width:100%;background-color:var(--cl-header-border)}']});let s=l;return s})();export{U as MenuComponent}; diff --git a/dist/chunk-ZZFP4IRP.js b/dist/chunk-ZZFP4IRP.js new file mode 100644 index 00000000..a1123fab --- /dev/null +++ b/dist/chunk-ZZFP4IRP.js @@ -0,0 +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-GDT23CSW.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-AJ2AYJWH.js")})}showLanguageSelector(){this.sbs.showComponent({component:import("./chunk-OPCZUBUU.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-ZSV22CKO.js"),inputs:{html:e},closeByEsc:!0,closeByBackdropClick:!0}),this.sbs.hide()})}showSettingsMenu(){this.sbs.showComponent({component:import("./chunk-3BR2DLMR.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/index.html b/dist/index.html index a77edee2..4d41c166 100644 --- a/dist/index.html +++ b/dist/index.html @@ -41,5 +41,5 @@ - + diff --git a/dist/main-K67ASM6N.js b/dist/main-K67ASM6N.js new file mode 100644 index 00000000..a173197c --- /dev/null +++ b/dist/main-K67ASM6N.js @@ -0,0 +1,39 @@ +import{a as td,b as Le,c as nd,d as sd,e as rd,f as hd,g as Yl,i as dd}from"./chunk-BVCU4AD4.js";import{a as ai}from"./chunk-RU73HBGW.js";import{a as hn}from"./chunk-23TAPEHU.js";import{b as ld}from"./chunk-YLXPJAZB.js";import{b as ad,d as ud,f as lr}from"./chunk-UGEHMGZQ.js";import{a as Vo}from"./chunk-NHWJ6QQD.js";import{a as G,b as pn,c as oi,d as Zn,e as cd,f as $e,h as Jn,k as ar,l as Xl,m as qo}from"./chunk-GOV7BL6D.js";import{a as Mv}from"./chunk-HCCYM72S.js";import"./chunk-G3W4DD55.js";import{a as or}from"./chunk-MDOQS4TE.js";import{a as Tt}from"./chunk-G7BOERRR.js";import{a as Qp}from"./chunk-D52KZAMM.js";import{a as ir}from"./chunk-R3LMLSL5.js";import{a as id,b as od}from"./chunk-CF2VGD6U.js";import{a as pd}from"./chunk-VG6X52WY.js";import{a as Xp,c as $o,d as Yn,e as Kn,f as Yp,g as Kp,h as Zp,i as Jp,j as un,k as ed}from"./chunk-HYAUW6N4.js";import{A as zp,B as Ql,C as Gp,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 Mp,c as Bo,d as tr,g as nr,i as Lp,j as Fp,k as Ro,l as Bp,m as Rp,n as Op,o as $p,p as Vp,q as ii,s as qp,t as Up,u as on,v as Hp,w as an,x as Wp,y as jp,z as Gl}from"./chunk-GDT23CSW.js";import{A as lp,Aa as Ep,Ab as jl,B as cp,Cb as pe,Cc as Np,Db as xp,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 Pp,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 Dp,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 Cp,ic as Ap,jc as Tp,k as op,ka as gp,kc as kp,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 Ip,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 Pv,f as Dv,h as Gn}from"./chunk-MG3ERZGY.js";var fd=(()=>{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 kC=Dv(Mv());var yh={};Pv(yh,{JitCompilerFactory:()=>El,VERSION:()=>xC,platformBrowserDynamic:()=>CC,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>Og,\u0275platformCoreDynamic:()=>Rg});var md=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(md.lastIndex=0;i=md.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||{}),gd={name:"custom-elements"},vd={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 Lv(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function Fv(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 Bv(n){let e=Lv(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>Fv(s)):[];return e.concat(...t)}function Xu(n){return n?Cr.parse(n).map(Bv):[]}var Ko;function Rv(n){return qv(Vv(n.nodes).join("")+`[${n.meaning}]`)}function Ov(n,e){return n.id||cm(n,e)}function cm(n,e){let t=new bc(e),s=n.nodes.map(r=>r.visit(t,null));return um(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(", ")}`}},$v=new Zo;function Vv(n){return n.map(e=>e.visit($v,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 qv(n){Ko??=new TextEncoder;let e=[...Ko.encode(n)],t=Wv(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 Uv(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 wd(n){Ko??=new TextEncoder;let e=Ko.encode(n),t=new DataView(e.buffer,e.byteOffset,e.byteLength),s=yd(t,e.length,0),r=yd(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+=wd(e)),BigInt.asUintN(63,t).toString()}function yd(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=Ed(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)),Ed(s,r,t)[2]}function Ed(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 Hv(n,e)[1]}function Hv(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 Wv(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function jv(n,e,t){let s=0;if(t===Yu.Big)for(let r=0;r<4;r++)s+=Sd(n,e+r)<<24-8*r;else for(let r=0;r<4;r++)s+=Sd(n,e+r)<<8*r;return s}var hm=function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n}(hm||{}),Jo=class{constructor(e=hm.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),zv=new wn(Wn.Bool),qA=new wn(Wn.Int),Ku=new wn(Wn.Number),pm=new wn(Wn.String),UA=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 Gv(n,e){return n==null||e==null?n==e:n.isEquivalent(e)}function dm(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(Zv,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)&&dm(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}},Qv="|",bd="@@",Xv="\u241F",na=class n extends re{constructor(e,t,s,r,i){super(pm,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}${Qv}${e}`),this.metaBlock.customId&&(e=`${e}${bd}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Xv}${t}`}),_d(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+=`${bd}${um(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),_d(r,s.text,this.getMessagePartSourceSpan(e))}},Qo=n=>n.replace(/\\/g,"\\\\"),Yv=n=>n.replace(/^:/,"\\:"),Kv=n=>n.replace(/:/g,"\\:"),Cc=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function _d(n,e,t){return n===""?{cooked:e,raw:Cc(Yv(Qo(e))),range:t}:{cooked:`:${n}:${e}`,raw:Cc(`:${Kv(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)&&Gv(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(zv,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),Zv=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 sw(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 Jv(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 ew(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 tw(n,e,t,s){return new ta(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function nw(n,e,t,s,r){return new na(n,e,t,s,r)}function xd(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 sw(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${xd(n[0])} `;let e=`* +`;for(let t of n)e+=" *",e+=xd(t).replace(/\n/g,` + * `),e+=` +`;return e+=" ",e}var rw="_c",Cd=H(""),iw={},ow=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===iw?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&&!Ad(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&&Ad(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:Cd),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:Cd,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(aw).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(rw)}},_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 aw(n){return n instanceof Vt}function Ad(n){return n instanceof je&&typeof n.value=="string"&&n.value.length>=ow}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})(),lw=/-+([a-z0-9])/g;function cw(n){return n.replace(lw,(...e)=>e[1].toUpperCase())}function uw(n,e){return fm(n,":",e)}function hw(n,e){return fm(n,".",e)}function fm(n,e,t){let s=n.indexOf(e);return s==-1?t:[n.slice(0,s).trim(),n.slice(s+1).trim()]}function pw(n){return n===void 0?null:n}function dw(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 mm(n){if(typeof n=="string")return n;if(Array.isArray(n))return"["+n.map(mm).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(` +`);return t===-1?e:e.substring(0,t)}var Tc=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},gi=globalThis;var fw=3,mw="# sourceMappingURL=data:application/json;base64,",kc=class{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(t!=null&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e{e.set(c,u),t.push(c),s.push(this.sourcesContent.get(c)||null)});let r="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,r+=c.map(u=>{let p=Uo(u.col0-i);return i=u.col0,u.sourceUrl!=null&&(p+=Uo(e.get(u.sourceUrl)-o),o=e.get(u.sourceUrl),p+=Uo(u.sourceLine0-a),a=u.sourceLine0,p+=Uo(u.sourceCol0-l),l=u.sourceCol0),p}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:fw,sourceRoot:"",sources:t,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//"+mw+gw(JSON.stringify(this,null,0)):""}};function gw(n){let e="",t=dw(n);for(let s=0;s>2),e+=pi((r&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":pi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":pi(o&63)}return e}function Uo(n){n=n<0?(-n<<1)+1:n<<1;let e="";do{let t=n&31;n=n>>5,n>0&&(t=t|32),e+=pi(t)}while(n>0);return e}var vw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function pi(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return vw[n]}var ww=/'|\\|\n|\r|\$/g,yw=/^[$A-Z_][0-9A-Z_$]*$/i,Ic=" ",aa=class{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}},Nc=class n{static createRoot(){return new n(0)}constructor(e){this._indent=e,this._lines=[new aa(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*Ic.length+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new aa(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?Td(e.indent)+e.parts.join(""):"").join(` +`)}toSourceMapGenerator(e,t=0){let s=new kc(e),r=!1,i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o{s.addLine();let l=o.srcSpans,c=o.parts,u=o.indent*Ic.length,p=0;for(;pr)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Pc=class{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(e.leadingComments!==void 0)for(let s of e.leadingComments)s instanceof sa?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split(` +`).forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");let s=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWriteKeyExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWritePropExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){let s=e.fn instanceof Os;return s&&t.print(e.fn,"("),e.fn.visitExpression(this,t),s&&t.print(e.fn,")"),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let s=1;s{t.print(e,`${As(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,s){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,r){let i=!1;for(let o=0;o0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(t[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}};function As(n,e,t=!0){if(n==null)return null;let s=n.replace(ww,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==` +`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return t||!yw.test(s)?`'${s}'`:s}function Td(n){let e="";for(let t=0;ts.value));return e?En([],t):t}function Zu(n,e){return{expression:n,forwardRef:e}}function _w({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return xw(n)}}function xw(n){return T(d.forwardRef).callFn([En([],n)])}var la=function(n){return n[n.Class=0]="Class",n[n.Function=1]="Function",n}(la||{}),kn=function(n){return n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule",n}(kn||{});function _s(n){let e=H("__ngFactoryType__"),t=null,s=Id(n)?e:new Q(A.Or,e,n.type.value),r=null;n.deps!==null?n.deps!=="invalid"&&(r=new Ti(s,kd(n.deps,n.target))):(t=H(`\u0275${n.name}_BaseFactory`),r=t.callFn([s]));let i=[],o=null;function a(c){let u=H("__ngConditionalFactory__");i.push(u.set(Ii).toDeclStmt());let p=r!==null?u.set(r).toStmt():T(d.invalidFactory).callFn([]).toStmt();return i.push(hl(e,[p],[u.set(c).toStmt()])),u}if(Id(n)){let c=kd(n.delegateDeps,n.target),u=new(n.delegateType===la.Class?Ti:nt)(n.delegate,c);o=a(u)}else Iw(n)?o=a(n.expression):o=r;if(o===null)i.push(T(d.invalidFactory).callFn([]).toStmt());else if(t!==null){let c=T(d.getInheritedFactory).callFn([n.type.value]),u=new Q(A.Or,t,t.set(c));i.push(new ot(u.callFn([s])))}else i.push(new ot(o));let l=Gr([new Be(e.name,uo)],i,Bt,void 0,`${n.name}_Factory`);return t!==null&&(l=En([],[new Xe(t.name),new ot(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:Cw(n)}}function Cw(n){let e=n.deps!==null&&n.deps!=="invalid"?Tw(n.deps):yn;return We(T(d.FactoryDeclaration,[pl(n.type.type,n.typeArgumentCount),e]))}function kd(n,e){return n.map((t,s)=>Aw(t,e,s))}function Aw(n,e,t){if(n.token===null)return T(d.invalidFactoryDep).callFn([v(t)]);if(n.attributeNameType===null){let s=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===kn.Pipe?16:0),r=s!==0||n.optional?v(s):null,i=[n.token];r&&i.push(r);let o=Nw(e);return T(o).callFn(i)}else return T(d.injectAttribute).callFn([n.token])}function Tw(n){let e=!1,t=n.map(s=>{let r=kw(s);return r!==null?(e=!0,r):v(null)});return e?We(se(t)):yn}function kw(n){let e=[];return n.attributeNameType!==null&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:v(!0),quoted:!1}),n.host&&e.push({key:"host",value:v(!0),quoted:!1}),n.self&&e.push({key:"self",value:v(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:v(!0),quoted:!1}),e.length>0?st(e):null}function Id(n){return n.delegateType!==void 0}function Iw(n){return n.expression!==void 0}function Nw(n){switch(n){case kn.Component:case kn.Directive:case kn.Pipe:return d.directiveInject;case kn.NgModule:case kn.Injectable:default:return d.inject}}var Pi=class{constructor(e,t,s,r){this.input=t,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${t}] in ${r}`}},Vs=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new gt(e+this.start,e+this.end)}},we=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},Nr=class extends we{constructor(e,t,s){super(e,t),this.nameSpan=s}},et=class extends we{visit(e,t=null){}},Ln=class extends we{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Ps=class extends Ln{visit(e,t=null){return e.visitThisReceiver?.(this,t)}},Pr=class extends we{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},Di=class extends we{constructor(e,t,s,r,i){super(e,t),this.condition=s,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},qs=class extends Nr{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},ca=class extends Nr{constructor(e,t,s,r,i,o){super(e,t,s),this.receiver=r,this.name=i,this.value=o}visit(e,t=null){return e.visitPropertyWrite(this,t)}},ua=class extends Nr{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},Dr=class extends we{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},ha=class extends we{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},pa=class extends we{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},da=class extends Nr{constructor(e,t,s,r,i,o){super(e,t,o),this.exp=s,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},Pt=class extends we{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},fa=class extends we{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},ma=class extends we{constructor(e,t,s,r){super(e,t),this.keys=s,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Us=class extends we{constructor(e,t,s,r){super(e,t),this.strings=s,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},Nt=class extends we{constructor(e,t,s,r,i){super(e,t),this.operation=s,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},Mi=class n extends Nt{static createMinus(e,t,s){return new n(e,t,"-",s,"-",new Pt(e,t,0),s)}static createPlus(e,t,s){return new n(e,t,"+",s,"-",s,new Pt(e,t,0))}constructor(e,t,s,r,i,o,a){super(e,t,i,o,a),this.operator=s,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Li=class extends we{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},Fi=class extends we{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},ga=class extends we{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},va=class extends we{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},gt=class{constructor(e,t){this.start=e,this.end=t}},Mt=class extends we{constructor(e,t,s,r,i){super(new Vs(0,t===null?0:t.length),new gt(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},Bi=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},Dc=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},wa=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}};var vi=class{constructor(e,t,s,r,i,o){this.name=e,this.expression=t,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===is.LITERAL_ATTR,this.isAnimation=this.type===is.ANIMATION}},is=function(n){return n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION",n[n.TWO_WAY=3]="TWO_WAY",n}(is||{}),$t=function(n){return n[n.Regular=0]="Regular",n[n.Animation=1]="Animation",n[n.TwoWay=2]="TwoWay",n}($t||{}),ya=class{constructor(e,t,s,r,i,o,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},Mc=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}},ae=function(n){return n[n.Property=0]="Property",n[n.Attribute=1]="Attribute",n[n.Class=2]="Class",n[n.Style=3]="Style",n[n.Animation=4]="Animation",n[n.TwoWay=5]="TwoWay",n}(ae||{}),Ea=class{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},fn=function(n){return n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA",n}(fn||{});function Kt(n,e=!0){if(n[0]!=":")return[null,n];let t=n.indexOf(":",1);if(t===-1){if(e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,t),n.slice(t+1)]}function Nd(n){return Kt(n)[1]==="ng-container"}function Lc(n){return Kt(n)[1]==="ng-content"}function Pw(n){return Kt(n)[1]==="ng-template"}function Fc(n){return n===null?null:Kt(n)[0]}function Bc(n,e){return n?`:${n}:${e}`:e}var Mr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}},Pn=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}},Lr=class{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}},Fr=class{constructor(e,t,s,r,i,o){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Rc=class n{constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}},Oc=class n{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.handler=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let t=e.type===$t.Regular?e.targetOrPhase:null,s=e.type===$t.Animation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},Ht=class{constructor(e,t,s,r,i,o,a,l,c,u){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitElement(this)}},Vn=class{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=s,this.whenOrOnSourceSpan=r}visit(e){return e.visitDeferredTrigger(this)}},$c=class extends Vn{constructor(e,t,s,r){super(null,t,s,r),this.value=e}},Vc=class extends Vn{},qc=class extends Vn{},Sa=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},Uc=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.delay=e}},ba=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},_a=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},Wt=class{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=r}},Ri=class extends Wt{constructor(e,t,s,r,i,o,a){super(s,r,i,o),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}},Oi=class extends Wt{constructor(e,t,s,r,i,o,a,l){super(r,i,o,a),this.children=e,this.afterTime=t,this.minimumTime=s,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}},$i=class extends Wt{constructor(e,t,s,r,i,o){super(t,s,r,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},Hs=class extends Wt{constructor(e,t,s,r,i,o,a,l,c,u,p,m){super(a,l,u,p),this.children=e,this.placeholder=r,this.loading=i,this.error=o,this.mainBlockSpan=c,this.i18n=m,this.triggers=t,this.prefetchTriggers=s,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(s)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Zl(e,this.children);let t=[this.placeholder,this.loading,this.error].filter(s=>s!==null);Zl(e,t)}visitTriggers(e,t,s){Zl(s,e.map(r=>t[r]))}},xa=class extends Wt{constructor(e,t,s,r,i,o,a){super(a,r,i,o),this.expression=e,this.cases=t,this.unknownBlocks=s}visit(e){return e.visitSwitchBlock(this)}},Vi=class extends Wt{constructor(e,t,s,r,i,o,a){super(o,s,r,i),this.expression=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCase(this)}},Br=class extends Wt{constructor(e,t,s,r,i,o,a,l,c,u,p,m,g){super(m,l,u,p),this.item=e,this.expression=t,this.trackBy=s,this.trackKeywordSpan=r,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=g}visit(e){return e.visitForLoopBlock(this)}},qi=class extends Wt{constructor(e,t,s,r,i,o){super(i,t,s,r),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},Ca=class extends Wt{constructor(e,t,s,r,i){super(i,t,s,r),this.branches=e}visit(e){return e.visitIfBlock(this)}},Ds=class extends Wt{constructor(e,t,s,r,i,o,a,l){super(a,r,i,o),this.expression=e,this.children=t,this.expressionAlias=s,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},Aa=class{constructor(e,t,s){this.name=e,this.sourceSpan=t,this.nameSpan=s}visit(e){return e.visitUnknownBlock(this)}},Ui=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},vt=class{constructor(e,t,s,r,i,o,a,l,c,u,p,m){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=u,this.endSourceSpan=p,this.i18n=m}visit(e){return e.visitTemplate(this)}},Rr=class{constructor(e,t,s,r,i){this.selector=e,this.attributes=t,this.children=s,this.sourceSpan=r,this.i18n=i,this.name="ng-content"}visit(e){return e.visitContent(this)}},us=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}},Hi=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}},Ta=class{constructor(e,t,s,r){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}};function Zl(n,e){let t=[];if(n.visit)for(let s of e)n.visit(s)||s.visit(n);else for(let s of e){let r=s.visit(n);r&&t.push(r)}return t}var tt=class{constructor(e,t,s,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=r,this.description=i,this.customId=o,this.legacyIds=[],this.id=this.customId,this.messageString=Dw(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},xs=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}},Fn=class{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}},ka=class{constructor(e,t,s,r,i){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=i}visit(e,t){return e.visitIcu(this,t)}},hs=class{constructor(e,t,s,r,i,o,a,l,c){this.tag=e,this.attrs=t,this.startName=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}},Ia=class{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}},Or=class{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}},ps=class{constructor(e,t,s,r,i,o,a,l){this.name=e,this.parameters=t,this.startName=s,this.closeName=r,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,t){return e.visitBlockPlaceholder(this,t)}};function Dw(n){let e=new Hc;return n.map(s=>s.visit(e)).join("")}var Hc=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}};var Wc=class{visitTag(e){let t=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${t}/>`;let s=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${s.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){let t=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return``}},HA=new Wc;function Mw(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var gm="i18n",jc="i18n-",Lw="VAR_";function vm(n){return n===gm||n.startsWith(jc)}function Fw(n){return n.attrs.some(e=>vm(e.name))}function wm(n){return n.nodes[0]}function Ju(n={},e){let t={};return n&&Object.keys(n).length&&Object.keys(n).forEach(s=>t[ho(s,e)]=n[s]),t}function ho(n,e=!0){let t=Mw(n);if(!e)return t;let s=t.split("_");if(s.length===1)return n.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}var Bw=/[-.]/,eh="_t",Wi="ctx",th="rf";function ym(n,e){let t=null;return()=>(t||(n(new Xe(eh,void 0,uo)),t=H(e)),t)}function vr(n){return Array.isArray(n)?se(n.map(vr)):v(n,Bt)}function Pd(n,e){let t=Object.getOwnPropertyNames(n);return t.length===0?null:st(t.map(s=>{let r=n[s],i,o,a,l;if(typeof r=="string")i=s,a=s,o=r,l=vr(o);else{a=s,i=r.classPropertyName,o=r.bindingPropertyName;let c=o!==i,u=r.transformFunction!==null,p=hi.None;if(r.isSignal&&(p|=hi.SignalBased),u&&(p|=hi.HasDecoratorInputTransform),e&&(c||u||p!==hi.None)){let m=[v(p),vr(o)];(c||u)&&(m.push(vr(i)),u&&m.push(r.transformFunction)),l=se(m)}else l=vr(o)}return{key:a,quoted:Bw.test(a),value:l}}))}var ds=class{constructor(){this.values=[]}set(e,t){if(t){let s=this.values.find(r=>r.key===e);s?s.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return st(this.values)}};function Rw(n){let e=n instanceof Ht?n.name:"ng-template",t=Ow(n),s=new Cr,r=Kt(e)[1];return s.setElement(r),Object.getOwnPropertyNames(t).forEach(i=>{let o=Kt(i)[1],a=t[i];s.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>s.addClassName(c))}),s}function Ow(n){let e={};return n instanceof vt&&n.tagName!=="ng-template"?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{vm(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{(t.type===ae.Property||t.type===ae.TwoWay)&&(e[t.name]="")}),n.outputs.forEach(t=>{e[t.name]=""})),e}function Dd(n,e){let t=null,s={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:kn.Injectable};if(n.useClass!==void 0){let a=n.useClass.expression.isEquivalent(n.type.value),l;n.deps!==void 0&&(l=n.deps),l!==void 0?t=_s(be(E({},s),{delegate:n.useClass.expression,delegateDeps:l,delegateType:la.Class})):a?t=_s(s):t={statements:[],expression:Md(n.type.value,n.useClass.expression,e)}}else n.useFactory!==void 0?n.deps!==void 0?t=_s(be(E({},s),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:la.Function})):t={statements:[],expression:En([],n.useFactory.callFn([]))}:n.useValue!==void 0?t=_s(be(E({},s),{expression:n.useValue.expression})):n.useExisting!==void 0?t=_s(be(E({},s),{expression:T(d.inject).callFn([n.useExisting.expression])})):t={statements:[],expression:Md(n.type.value,n.type.value,e)};let r=n.type.value,i=new ds;return i.set("token",r),i.set("factory",t.expression),n.providedIn.expression.value!==null&&i.set("providedIn",_w(n.providedIn)),{expression:T(d.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:$w(n),statements:t.statements}}function $w(n){return new Ot(T(d.InjectableDeclaration,[pl(n.type.type,n.typeArgumentCount)]))}function Md(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return Ld(e);let s=T(d.resolveForwardRef).callFn([e]);return Ld(s)}function Ld(n){let e=new Be("__ngFactoryType__",uo);return En([e],n.prop("\u0275fac").callFn([H(e.name)]))}var Vw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function qw(n,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${n}' to be an array, [start, end].`);if(e!=null){let t=e[0],s=e[1];Vw.forEach(r=>{if(r.test(t)||r.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}var Na=class n{static fromArray(e){return e?(qw("interpolation",e),new n(e[0],e[1])):mn}constructor(e,t){this.start=e,this.end=t}},mn=new Na("{{","}}"),Uw=new Set(["switch"]),Ge=0,Hw=8,nh=9,Ms=10,Em=11,Sm=12,sh=13,bm=32,zc=33,ji=34,_m=35,rh=36,Ww=37,Pa=38,zi=39,Bn=40,Xt=41,jw=42,xm=43,Rt=44,Da=45,fr=46,In=47,os=58,ft=59,wr=60,ks=61,ss=62,Fd=63,ih=48,zw=55,Cm=57,Qr=65,Gw=69,Qw=70,Xw=88,dl=90,xr=91,wi=92,yr=93,Yw=94,po=95,Ws=97,Kw=98,Zw=101,oh=102,Am=110,Tm=114,km=116,Im=117,Nm=118,Pm=120,fo=122,gn=123,Bd=124,rt=125,Dm=160;var Jl=64,Jw=96;function Gi(n){return n>=nh&&n<=bm||n==Dm}function dn(n){return ih<=n&&n<=Cm}function Qi(n){return n>=Ws&&n<=fo||n>=Qr&&n<=dl}function ey(n){return n>=Ws&&n<=oh||n>=Qr&&n<=Qw||dn(n)}function ah(n){return n===Ms||n===sh}function Rd(n){return ih<=n&&n<=zw}function yi(n){return n===zi||n===ji||n===Jw}var Xi=class n{constructor(e,t,s,r){this.file=e,this.offset=t,this.line=s,this.col=r}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,s=t.length,r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,t.charCodeAt(r)==Ms){i--;let l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(Ms));o=l>0?r-l:r}else o--;for(;r0;){let a=t.charCodeAt(r);r++,e--,a==Ms?(i++,o=0):o++}return new n(this.file,r,i,o)}getContext(e,t){let s=this.file.content,r=this.offset;if(r!=null){r>s.length-1&&(r=s.length-1);let i=r,o=0,a=0;for(;o0&&(r--,o++,!(s[r]==` +`&&++a==t)););for(o=0,a=0;o]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function ty(n,e,t){let s=`in ${n} ${e} in ${t}`,r=new Ma("",s);return new $(new Xi(r,-1,-1,-1),new Xi(r,-1,-1,-1))}var ny=0;function sy(n){if(!n||!n.reference)return null;let e=n.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let t=mm(e);return t.indexOf("(")>=0?(t=`anonymous_${ny++}`,e.__anonymousType=t):t=Ei(t),t}function Ei(n){return n.replace(/\W/g,"_")}var Od='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Gc=class extends Pc{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){let s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${Od}(`),t.print(e,`[${s.map(r=>As(r.text,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>As(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitArrowFunctionExpr(e,t){if(t.print(e,"("),this._visitParams(e.params,t),t.print(e,") =>"),Array.isArray(e.body))t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.print(e,"}");else{let s=e.body instanceof Yt;s&&t.print(e,"("),e.body.visitExpression(this,t),s&&t.print(e,")")}return null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${Od}(`);let s=[e.serializeI18nHead()];for(let r=1;rAs(r.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>As(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(s=>t.print(null,s.name),e,t,",")}},Ho;function ry(){if(Ho===void 0){let n=gi.trustedTypes;if(Ho=null,n)try{Ho=n.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Ho}function iy(n){return ry()?.createScript(n)||n}function $d(...n){if(!gi.trustedTypes)return new Function(...n);let e=n.slice(0,-1).join(","),t=n[n.length-1],s=`(function anonymous(${e} +) { ${t} +})`,r=gi.eval(iy(s));return r.bind===void 0?new Function(...n):(r.toString=()=>s,r.bind(gi))}var Qc=class{evaluateStatements(e,t,s,r){let i=new Xc(s),o=Nc.createRoot();return t.length>0&&!oy(t[0])&&(t=[v("use strict").toStmt(),...t]),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,t,s,r){let i=`"use strict";${t.toSource()} +//# sourceURL=${e}`,o=[],a=[];for(let c in s)a.push(s[c]),o.push(c);if(r){let c=$d(...o.concat("return null;")).toString(),u=c.slice(0,c.indexOf("return null;")).split(` +`).length-1;i+=` +${t.toSourceMapGenerator(e,u).toJsComment()}`}let l=$d(...o.concat(i));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}},Xc=class extends Gc{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new ot(new Yt(this._evalExportedVars.map(s=>new Ir(s,H(s),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let t=0;t0&&e.set("imports",se(n.imports));let t=T(d.defineInjector).callFn([e.toLiteralMap()],void 0,!0),s=ay(n);return{expression:t,type:s,statements:[]}}function ay(n){return new Ot(T(d.InjectorDeclaration,[new Ot(n.type.type)]))}var Yc=class{constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},La=function(n){return n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit",n}(La||{}),cs=function(n){return n[n.Global=0]="Global",n[n.Local=1]="Local",n}(cs||{});function ly(n){let e=[],t=new ds;if(t.set("type",n.type.value),n.kind===cs.Global&&n.bootstrap.length>0&&t.set("bootstrap",Ts(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===La.Inline)n.declarations.length>0&&t.set("declarations",Ts(n.declarations,n.containsForwardDecls)),n.imports.length>0&&t.set("imports",Ts(n.imports,n.containsForwardDecls)),n.exports.length>0&&t.set("exports",Ts(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===La.SideEffect){let i=hy(n);i!==null&&e.push(i)}n.schemas!==null&&n.schemas.length>0&&t.set("schemas",se(n.schemas.map(i=>i.value))),n.id!==null&&(t.set("id",n.id),e.push(T(d.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));let s=T(d.defineNgModule).callFn([t.toLiteralMap()],void 0,!0),r=uy(n);return{expression:s,type:r,statements:e}}function cy(n){let e=new ds;return e.set("type",new W(n.type)),n.bootstrap!==void 0&&e.set("bootstrap",new W(n.bootstrap)),n.declarations!==void 0&&e.set("declarations",new W(n.declarations)),n.imports!==void 0&&e.set("imports",new W(n.imports)),n.exports!==void 0&&e.set("exports",new W(n.exports)),n.schemas!==void 0&&e.set("schemas",new W(n.schemas)),n.id!==void 0&&e.set("id",new W(n.id)),T(d.defineNgModule).callFn([e.toLiteralMap()])}function uy(n){if(n.kind===cs.Local)return new Ot(n.type.value);let{type:e,declarations:t,exports:s,imports:r,includeImportTypes:i,publicDeclarationTypes:o}=n;return new Ot(T(d.NgModuleDeclaration,[new Ot(e.type),o===null?ec(t):py(o),i?ec(r):yn,ec(s)]))}function hy(n){let e=new ds;if(n.kind===cs.Global?n.declarations.length>0&&e.set("declarations",Ts(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&e.set("declarations",n.declarationsExpression),n.kind===cs.Global?n.imports.length>0&&e.set("imports",Ts(n.imports,n.containsForwardDecls)):n.importsExpression&&e.set("imports",n.importsExpression),n.kind===cs.Global?n.exports.length>0&&e.set("exports",Ts(n.exports,n.containsForwardDecls)):n.exportsExpression&&e.set("exports",n.exportsExpression),n.kind===cs.Local&&n.bootstrapExpression&&e.set("bootstrap",n.bootstrapExpression),Object.keys(e.values).length===0)return null;let t=new nt(T(d.setNgModuleScope),[n.type.value,e.toLiteralMap()]),s=Sw(t),r=new Mn([],[s.toStmt()]);return new nt(r,[]).toStmt()}function ec(n){let e=n.map(t=>ul(t.type));return n.length>0?We(se(e)):yn}function py(n){let e=n.map(t=>ul(t));return n.length>0?We(se(e)):yn}function qd(n){let e=[];e.push({key:"name",value:v(n.pipeName),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:v(n.pure),quoted:!1}),n.isStandalone&&e.push({key:"standalone",value:v(!0),quoted:!1});let t=T(d.definePipe).callFn([st(e)],void 0,!0),s=dy(n);return{expression:t,type:s,statements:[]}}function dy(n){return new Ot(T(d.PipeDeclaration,[pl(n.type.type,n.typeArgumentCount),new Ot(new je(n.pipeName)),new Ot(new je(n.isStandalone))]))}var fl=function(n){return n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule",n}(fl||{}),fy=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),my=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Kc=class{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,s=""){let r=[];e=e.replace(Ay,a=>{if(a.match(Ty))r.push(a);else{let l=a.match(Cy);r.push((l?.join("")??"")+` +`)}return uh}),e=this._insertDirectives(e);let i=this._scopeCssText(e,t,s),o=0;return i.replace(ky,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){let s=new Set,r=Wo(e,i=>this._scopeLocalKeyframeDeclarations(i,t,s));return Wo(r,i=>this._scopeAnimationRule(i,t,s))}_scopeLocalKeyframeDeclarations(e,t,s){return be(E({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,a,l)=>(s.add(jd(a,o)),`${i}${o}${t}_${a}${o}${l}`))})}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,a,l)=>(a=`${s.has(jd(a,o))?t+"_":""}${a}`,`${i}${o}${a}${o}${l}`))}_scopeAnimationRule(e,t,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,u="",p,m)=>p?`${c}${this._scopeAnimationKeyframe(`${u}${p}${u}`,t,s)}`:fy.has(m)?l:`${c}${this._scopeAnimationKeyframe(m,t,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,s)).join(",")}`),be(E({},e),{content:r})}_insertPolyfillDirectivesInCssText(e){return e.replace(gy,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(vy,(...t)=>{let s=t[0].replace(t[1],"").replace(t[2],"");return t[4]+s})}_scopeCssText(e,t,s){let r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),e=e+` +`+r,e.trim()}_extractUnscopedRulesFromCssText(e){let t="",s;for(Ud.lastIndex=0;(s=Ud.exec(e))!==null;){let r=s[0].replace(s[2],"").replace(s[1],s[4]);t+=r+` + +`}return t}_convertColonHost(e){return e.replace(wy,(t,s,r)=>{if(s){let i=[],o=s.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let l=bs+a.replace(Fa,"")+r;i.push(l)}return i.join(",")}else return bs+r})}_convertColonHostContext(e){return e.replace(yy,t=>{let s=[[]],r;for(;r=Ey.exec(t);){let i=(r[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=s.length;$y(s,i.length);for(let a=0;aOy(i,t)).join(", ")})}_convertShadowDOMSelectors(e){return Sy.reduce((t,s)=>t.replace(s," "),e)}_scopeSelectors(e,t,s){return Wo(e,r=>{let i=r.selector,o=r.content;return r.selector[0]!=="@"?i=this._scopeSelector(r.selector,t,s):my.some(a=>r.selector.startsWith(a))?o=this._scopeSelectors(r.content,t,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new Yi(i,o)})}_stripScopingSelectors(e){return Wo(e,t=>{let s=t.selector.replace(Wd," ").replace(Hd," ");return new Yi(s,t.content)})}_scopeSelector(e,t,s){return e.split(/ ?, ?/).map(r=>r.split(Wd)).map(r=>{let[i,...o]=r;return[(l=>this._selectorNeedsScoping(l,t)?this._applySelectorScope(l,t,s):l)(i),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){let t=/\[/g,s=/\]/g;return e=e.replace(t,"\\[").replace(s,"\\]"),new RegExp("^("+e+")"+by,"m")}_applySimpleSelectorScope(e,t,s){if(Er.lastIndex=0,Er.test(e)){let r=`[${s}]`;return e.replace(Hd,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,u)=>l+r+c+u)).replace(Er,r+" ")}return t+" "+e}_applySelectorScope(e,t,s){let r=/\[is=([^\]]*)\]/g;t=t.replace(r,(y,...b)=>b[0]);let i="["+t+"]",o=y=>{let b=y.trim();if(!b)return y;if(y.includes(bs))b=this._applySimpleSelectorScope(y,t,s);else{let _=y.replace(Er,"");if(_.length>0){let D=_.match(/([^:]*)(:*)(.*)/);D&&(b=D[1]+i+D[2]+D[3])}}return b},a=new Zc(e);e=a.content();let l="",c=0,u,p=/( |>|\+|~(?!=))\s*/g,g=!e.includes(bs);for(;(u=p.exec(e))!==null;){let y=u[1],b=e.slice(c,u.index);if(b.match(/__esc-ph-(\d+)__/)&&e[u.index+1]?.match(/[a-fA-F\d]/))continue;g=g||b.includes(bs);let _=g?o(b):b;l+=`${_} ${y} `,c=p.lastIndex}let w=e.substring(c);return g=g||w.includes(bs),l+=g?o(w):w,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(xy,lh).replace(_y,Fa)}},Zc=class{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(t,s)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}},gy=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,vy=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ud=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Fa="-shadowcsshost",lh="-shadowcsscontext",ch="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",wy=new RegExp(Fa+ch,"gim"),yy=new RegExp(lh+ch,"gim"),Ey=new RegExp(lh+ch,"im"),bs=Fa+"-no-combinator",Hd=/-shadowcsshost-no-combinator([^\s]*)/,Sy=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Wd=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,by="([>\\s~+[.,{:][\\s\\S]*)?$",Er=/-shadowcsshost/gim,_y=/:host/gim,xy=/:host-context/gim,Cy=/\r?\n/g,Ay=/\/\*[\s\S]*?\*\//g,Ty=/\/\*\s*#\s*source(Mapping)?URL=/g,uh="%COMMENT%",ky=new RegExp(uh,"g"),tc="%BLOCK%",Iy=new RegExp(`(\\s*(?:${uh}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Ny=new Map([["{","}"]]),Mm="%COMMA_IN_PLACEHOLDER%",Lm="%SEMI_IN_PLACEHOLDER%",Fm="%COLON_IN_PLACEHOLDER%",Py=new RegExp(Mm,"g"),Dy=new RegExp(Lm,"g"),My=new RegExp(Fm,"g"),Yi=class{constructor(e,t){this.selector=e,this.content=t}};function Wo(n,e){let t=By(n),s=Ly(t,Ny,tc),r=0,i=s.escapedString.replace(Iy,(...o)=>{let a=o[2],l="",c=o[4],u="";c&&c.startsWith("{"+tc)&&(l=s.blocks[r++],c=c.substring(tc.length+1),u="{");let p=e(new Yi(a,l));return`${o[1]}${p.selector}${o[3]}${u}${p.content}${c}`});return Ry(i)}var Jc=class{constructor(e,t){this.escapedString=e,this.blocks=t}};function Ly(n,e,t){let s=[],r=[],i=0,o=0,a=-1,l,c;for(let u=0;u0;){let i=r.length,o=n.pop();for(let a=0;as?`${i}${e}`:`${i}${t}${e}, ${i} ${t}${e}`).join(",")}function $y(n,e){let t=n.length;for(let s=1;st.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,t){this.body!==null?this.body=C(this.body,e,t|X.InChildOperation):this.fn!==null&&(this.fn=C(this.fn,e,t));for(let s=0;st.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}},$r=class n extends ie{constructor(e){super(),this.index=e,this.kind=I.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof n&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new n(this.index)}},Gs=class n extends ie{static{Kd=Yr,Zd=ml}constructor(e,t,s,r){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.kind=I.PipeBinding,this[Kd]=!0,this[Zd]=!0,this.varOffset=null}visitExpression(e,t){for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let s=0;st.clone()));return e.varOffset=this.varOffset,e}},Ua=class n extends ie{static{Jd=Yr,ef=ml}constructor(e,t,s,r,i){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.numArgs=i,this.kind=I.PipeBindingVariadic,this[Jd]=!0,this[ef]=!0,this.varOffset=null}visitExpression(e,t){this.args.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.args=C(this.args,e,t)}clone(){let e=new n(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}},Vr=class n extends ie{constructor(e,t){super(),this.receiver=e,this.name=t,this.kind=I.SafePropertyRead}get index(){return this.name}visitExpression(e,t){this.receiver.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=C(this.receiver,e,t)}clone(){return new n(this.receiver.clone(),this.name)}},qr=class n extends ie{constructor(e,t,s){super(s),this.receiver=e,this.index=t,this.kind=I.SafeKeyedRead}visitExpression(e,t){this.receiver.visitExpression(e,t),this.index.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=C(this.receiver,e,t),this.index=C(this.index,e,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},fs=class n extends ie{constructor(e,t){super(),this.receiver=e,this.args=t,this.kind=I.SafeInvokeFunction}visitExpression(e,t){this.receiver.visitExpression(e,t);for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=C(this.receiver,e,t);for(let s=0;se.clone()))}},Ur=class n extends ie{constructor(e,t){super(),this.guard=e,this.expr=t,this.kind=I.SafeTernaryExpr}visitExpression(e,t){this.guard.visitExpression(e,t),this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.guard=C(this.guard,e,t),this.expr=C(this.expr,e,t)}clone(){return new n(this.guard.clone(),this.expr.clone())}},eo=class n extends ie{constructor(){super(...arguments),this.kind=I.EmptyExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n}isConstant(){return!0}clone(){return new n}transformInternalExpressions(){}},Zt=class n extends ie{constructor(e,t){super(),this.expr=e,this.xref=t,this.kind=I.AssignTemporaryExpr,this.name=null}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=C(this.expr,e,t)}clone(){let e=new n(this.expr.clone(),this.xref);return e.name=this.name,e}},Un=class n extends ie{constructor(e){super(),this.xref=e,this.kind=I.ReadTemporaryExpr,this.name=null}visitExpression(e,t){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,t){}clone(){let e=new n(this.xref);return e.name=this.name,e}},Ha=class n extends ie{constructor(e){super(),this.slot=e,this.kind=I.SlotLiteralExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n&&e.slot===this.slot}isConstant(){return!0}clone(){return new n(this.slot)}transformInternalExpressions(){}},Wa=class n extends ie{constructor(e,t,s,r=null){super(),this.expr=e,this.target=t,this.targetSlot=s,this.alias=r,this.kind=I.ConditionalCase}visitExpression(e,t){this.expr!==null&&this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&e.expr===this.expr}isConstant(){return!0}clone(){return new n(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,t){this.expr!==null&&(this.expr=C(this.expr,e,t))}},to=class n extends ie{constructor(e){super(),this.expr=e,this.kind=I.ConstCollected}transformInternalExpressions(e,t){this.expr=e(this.expr,t)}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr)}};function Ye(n,e){Ne(n,(t,s)=>(e(t,s),t),X.None)}var X=function(n){return n[n.None=0]="None",n[n.InChildOperation=1]="InChildOperation",n}(X||{});function sc(n,e,t){for(let s=0;sC(s,e,t));else if(n instanceof Os)if(Array.isArray(n.body))for(let s=0;s{class n{static{this.nextListId=0}constructor(){this.debugListId=n.nextListId++,this.head={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.head.next=this.tail,this.tail.prev=this.head}push(t){if(Array.isArray(t)){for(let r of t)this.push(r);return}n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=this.debugListId;let s=this.tail.prev;t.prev=s,s.next=t,t.next=this.tail,this.tail.prev=t}prepend(t){if(t.length===0)return;for(let i of t)n.assertIsNotEnd(i),n.assertIsUnowned(i),i.debugListId=this.debugListId;let s=this.head.next,r=this.head;for(let i of t)r.next=i,i.prev=r,r=i;r.next=s,s.prev=r}*[Symbol.iterator](){let t=this.head.next;for(;t!==this.tail;){n.assertIsOwned(t,this.debugListId);let s=t.next;yield t,t=s}}*reversed(){let t=this.tail.prev;for(;t!==this.head;){n.assertIsOwned(t,this.debugListId);let s=t.prev;yield t,t=s}}static replace(t,s){n.assertIsNotEnd(t),n.assertIsNotEnd(s),n.assertIsOwned(t),n.assertIsUnowned(s),s.debugListId=t.debugListId,t.prev!==null&&(t.prev.next=s,s.prev=t.prev),t.next!==null&&(t.next.prev=s,s.next=t.next),t.debugListId=null,t.prev=null,t.next=null}static replaceWithMany(t,s){if(s.length===0){n.remove(t);return}n.assertIsNotEnd(t),n.assertIsOwned(t);let r=t.debugListId;t.debugListId=null;for(let u of s)n.assertIsNotEnd(u),n.assertIsUnowned(u);let{prev:i,next:o}=t;t.prev=null,t.next=null;let a=i;for(let u of s)this.assertIsUnowned(u),u.debugListId=r,a.next=u,u.prev=a,u.next=null,a=u;let l=s[0],c=a;i!==null&&(i.next=l,l.prev=i),o!==null&&(o.prev=c,c.next=o)}static remove(t){n.assertIsNotEnd(t),n.assertIsOwned(t),t.prev.next=t.next,t.next.prev=t.prev,t.debugListId=null,t.prev=null,t.next=null}static insertBefore(t,s){if(Array.isArray(t)){for(let r of t)this.insertBefore(r,s);return}if(n.assertIsOwned(s),s.prev===null)throw new Error("AssertionError: illegal operation on list start");n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=s.debugListId,t.prev=null,s.prev.next=t,t.prev=s.prev,t.next=s,s.prev=t}static insertAfter(t,s){if(n.assertIsOwned(s),s.next===null)throw new Error("AssertionError: illegal operation on list end");n.assertIsNotEnd(t),n.assertIsUnowned(t),t.debugListId=s.debugListId,s.next.prev=t,t.next=s.next,t.prev=s,s.next=t}static assertIsUnowned(t){if(t.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${h[t.kind]}`)}static assertIsOwned(t,s){if(t.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${h[t.kind]}`);if(s!==void 0&&t.debugListId!==s)throw new Error(`AssertionError: node belongs to the wrong list (expected ${s}, actual ${t.debugListId})`)}static assertIsNotEnd(t){if(t.kind===h.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return n})(),at=class{constructor(){this.slot=null}},Jy=new Set([h.Element,h.ElementStart,h.Container,h.ContainerStart,h.Template,h.RepeaterCreate]);function ms(n){return Jy.has(n.kind)}function eE(n,e,t,s,r,i){return E(E({kind:h.ElementStart,xref:e,tag:n,handle:new at,attributes:null,localRefs:[],nonBindable:!1,namespace:t,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:i},_n),q)}function gl(n,e,t,s,r,i,o,a){return E(E({kind:h.Template,xref:n,templateKind:e,attributes:null,tag:t,handle:new at,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},_n),q)}function tE(n,e,t,s,r,i,o,a,l,c){return be(E(E(E({kind:h.RepeaterCreate,attributes:null,xref:n,handle:new at,emptyView:e,track:s,trackByFn:null,tag:t,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Qe.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:l,wholeSourceSpan:c},_n),q),lt),{numSlotsUsed:e===null?2:3})}function nE(n,e){return E({kind:h.ElementEnd,xref:n,sourceSpan:e},q)}function sE(n){return E({kind:h.DisableBindings,xref:n},q)}function rE(n){return E({kind:h.EnableBindings,xref:n},q)}function Vm(n,e,t,s){return E(E({kind:h.Text,xref:n,handle:new at,initialValue:e,icuPlaceholder:t,sourceSpan:s},_n),q)}function ph(n,e,t,s,r,i,o,a,l){let c=new S;return c.push(r),E({kind:h.Listener,target:n,targetSlot:e,tag:s,hostListener:a,name:t,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:i!==null,animationPhase:i,eventTarget:o,sourceSpan:l},q)}function qm(n,e,t,s,r,i){let o=new S;return o.push(r),E({kind:h.TwoWayListener,target:n,targetSlot:e,tag:s,name:t,handlerOps:o,handlerFnName:null,sourceSpan:i},q)}function Um(n,e,t){return E(E({kind:h.Pipe,xref:n,handle:e,name:t},q),_n)}function iE(n){return E({kind:h.Namespace,active:n},q)}function oE(n){return E({kind:h.ProjectionDef,def:n},q)}function aE(n,e,t,s,r){return be(E(E({kind:h.Projection,xref:n,handle:new at,selector:e,i18nPlaceholder:t,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r},q),_n),{numSlotsUsed:s===null?1:2})}function Ft(n,e,t,s,r,i,o,a){return E({kind:h.ExtractedAttribute,target:n,bindingKind:e,namespace:t,name:s,expression:r,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},q)}function lE(n,e,t,s,r,i){return be(E(E({kind:h.Defer,xref:n,handle:new at,mainView:e,mainSlot:t,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:s,resolverFn:r,sourceSpan:i},q),_n),{numSlotsUsed:2})}function Ss(n,e,t,s){return E({kind:h.DeferOn,defer:n,trigger:e,prefetch:t,sourceSpan:s},q)}function cE(n,e,t){return E(E({kind:h.DeclareLet,xref:n,declaredName:e,sourceSpan:t,handle:new at},_n),q)}function uE(n,e,t,s,r,i,o,a){return E({kind:h.I18nMessage,xref:n,i18nContext:e,i18nBlock:t,message:s,messagePlaceholder:r,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},q)}function vl(n,e,t,s){return E(E({kind:h.I18nStart,xref:n,handle:new at,root:t??n,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:s},q),_n)}function wl(n,e){return E({kind:h.I18nEnd,xref:n,sourceSpan:e},q)}function hE(n,e,t,s){return E({kind:h.IcuStart,xref:n,message:e,messagePlaceholder:t,context:null,sourceSpan:s},q)}function pE(n){return E({kind:h.IcuEnd,xref:n},q)}function dE(n,e,t){return E({kind:h.IcuPlaceholder,xref:n,name:e,strings:t,expressionPlaceholders:[]},q)}function rc(n,e,t,s,r){if(t===null&&n!==Is.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return E({kind:h.I18nContext,contextKind:n,xref:e,i18nBlock:t,message:s,sourceSpan:r,params:new Map,postprocessingParams:new Map},q)}function Hm(n,e,t){return E(E({kind:h.I18nAttributes,xref:n,handle:e,target:t,i18nAttributesConfig:null},q),_n)}function fE(n,e,t,s,r,i){return E(E({kind:h.HostProperty,name:n,expression:e,isAnimationTrigger:t,i18nContext:s,securityContext:r,sanitizer:null,sourceSpan:i},lt),q)}var Wm="CTX_REF_MARKER",x=function(n){return n[n.Tmpl=0]="Tmpl",n[n.Host=1]="Host",n[n.Both=2]="Both",n}(x||{}),za=class{constructor(e,t,s){this.componentName=e,this.pool=t,this.compatibility=s,this.kind=x.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},no=class extends za{constructor(e,t,s,r,i,o,a){super(e,t,s),this.relativeContextFilePath=r,this.i18nUseExternalIds=i,this.deferMeta=o,this.allDeferrableDepsFn=a,this.kind=x.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new vn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let t=new vn(this,this.allocateXrefId(),e);return this.views.set(t.xref,t),t}get units(){return this.views.values()}addConst(e,t){for(let r=0;rr==="")&&(t.expression=t.expression.expressions[0])}function kE(n){for(let e of n.units)for(let t of e.ops()){if(t.kind!==h.Conditional)continue;let s,r=t.conditions.findIndex(o=>o.expr===null);if(r>=0){let o=t.conditions.splice(r,1)[0].targetSlot;s=new Ha(o)}else s=v(-1);let i=t.test==null?null:new Zt(t.test,n.allocateXrefId());for(let o=t.conditions.length-1;o>=0;o--){let a=t.conditions[o];if(a.expr!==null){if(i!==null){let l=o===0?i:new Un(i.xref);a.expr=new Q(A.Identical,l,a.expr)}else if(a.alias!==null){let l=n.allocateXrefId();a.expr=new Zt(a.expr,l),t.contextValue=new Un(l)}s=new On(a.expr,new Ha(a.targetSlot),s)}}t.processed=s,t.conditions=[]}}var IE=new Map([["&&",A.And],[">",A.Bigger],[">=",A.BiggerEquals],["|",A.BitwiseOr],["&",A.BitwiseAnd],["/",A.Divide],["==",A.Equals],["===",A.Identical],["<",A.Lower],["<=",A.LowerEquals],["-",A.Minus],["%",A.Modulo],["*",A.Multiply],["!=",A.NotEquals],["!==",A.NotIdentical],["??",A.NullishCoalesce],["||",A.Or],["+",A.Plus]]);function jm(n){let e=new Map([["svg",Qe.SVG],["math",Qe.Math]]);return n===null?Qe.HTML:e.get(n)??Qe.HTML}function NE(n){let e=new Map([["svg",Qe.SVG],["math",Qe.Math]]);for(let[t,s]of e.entries())if(s===n)return t;return null}function PE(n,e){return e===Qe.HTML?n:`:${NE(e)}:${n}`}function Hr(n){return Array.isArray(n)?se(n.map(Hr)):v(n)}function DE(n){let e=new Map;for(let t of n.units)for(let s of t.create)if(s.kind===h.ExtractedAttribute){let r=e.get(s.target)||new su(n.compatibility);e.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),S.remove(s)}if(n instanceof no)for(let t of n.units)for(let s of t.create)if(s.kind==h.Projection){let r=e.get(s.xref);if(r!==void 0){let i=ru(r);i.entries.length>0&&(s.attributes=i)}}else ms(s)&&(s.attributes=nf(n,e,s.xref),s.kind===h.RepeaterCreate&&s.emptyView!==null&&(s.emptyAttributes=nf(n,e,s.emptyView)));else if(n instanceof Qa)for(let[t,s]of e.entries()){if(t!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let r=ru(s);r.entries.length>0&&(n.root.attributes=r)}}function nf(n,e,t){let s=e.get(t);if(s!==void 0){let r=ru(s);if(r.entries.length>0)return n.addConst(r)}return null}var ur=Object.freeze([]),su=class{get attributes(){return this.byKind.get(N.Attribute)??ur}get classes(){return this.byKind.get(N.ClassName)??ur}get styles(){return this.byKind.get(N.StyleProperty)??ur}get bindings(){return this.propertyBindings??ur}get template(){return this.byKind.get(N.Template)??ur}get i18n(){return this.byKind.get(N.I18n)??ur}constructor(e){this.compatibility=e,this.known=new Map,this.byKind=new Map,this.propertyBindings=null,this.projectAs=null}isKnown(e,t){let s=this.known.get(e)??new Set;return this.known.set(e,s),s.has(t)?!0:(s.add(t),!1)}add(e,t,s,r,i){if(!(this.compatibility===St.TemplateDefinitionBuilder&&(e===N.Attribute||e===N.ClassName||e===N.StyleProperty))&&this.isKnown(e,t))return;if(t==="ngProjectAs"){if(s===null||!(s instanceof je)||s.value==null||typeof s.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}let a=this.arrayFor(e);if(a.push(...ME(r,t)),e===N.Attribute||e===N.StyleProperty){if(s===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!$m(s))throw Error("AssertionError: extracted attribute value should be string literal");a.push(tw(i,new _c([new xc(s.value)],[]),void 0,s.sourceSpan))}else a.push(s)}}arrayFor(e){return e===N.Property||e===N.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function ME(n,e){let t=v(e);return n?[v(0),v(n),t]:[t]}function ru({attributes:n,bindings:e,classes:t,i18n:s,projectAs:r,styles:i,template:o}){let a=[...n];if(r!==null){let l=Xu(r)[0];a.push(v(5),Hr(l))}return t.length>0&&a.push(v(1),...t),i.length>0&&a.push(v(2),...i),e.length>0&&a.push(v(3),...e),o.length>0&&a.push(v(4),...o),s.length>0&&a.push(v(6),...s),se(a)}function LE(n){let e=new Map;for(let t of n.units){for(let s of t.create)s.kind===h.I18nAttributes&&e.set(s.target,s);for(let s of t.update)switch(s.kind){case h.Property:case h.Attribute:if(s.i18nContext===null||!(s.expression instanceof Ee))continue;let r=e.get(s.target);if(r===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==s.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;oXE(s,{job:n}),X.None),Ne(t,YE,X.None)}var WA=[nt,qt,Yt,fs,Gs].map(n=>n.constructor.name);function kt(n){return n instanceof kr?kt(n.expr):n instanceof Q?kt(n.lhs)||kt(n.rhs):n instanceof On?n.falseCase&&kt(n.falseCase)?!0:kt(n.condition)||kt(n.trueCase):n instanceof ki?kt(n.condition):n instanceof Zt?kt(n.expr):n instanceof Et?kt(n.receiver):n instanceof $n?kt(n.receiver)||kt(n.index):n instanceof nt||n instanceof qt||n instanceof Yt||n instanceof fs||n instanceof Gs}function WE(n){let e=new Set;return C(n,t=>(t instanceof Zt&&e.add(t.xref),t),X.None),e}function jE(n,e,t){return C(n,s=>{if(s instanceof Zt&&e.has(s.xref)){let r=new Un(s.xref);return t.job.compatibility===St.TemplateDefinitionBuilder?new Zt(r,r.xref):r}return s},X.None),n}function hr(n,e,t){let s;if(kt(n)){let r=t.job.allocateXrefId();s=[new Zt(n,r),new Un(r)]}else s=[n,n.clone()],jE(s[1],WE(s[0]),t);return new Ur(s[0],e(s[1]))}function zE(n){return n instanceof Vr||n instanceof qr||n instanceof fs}function GE(n){return n instanceof Et||n instanceof $n||n instanceof nt}function zm(n){return zE(n)||GE(n)}function QE(n){if(zm(n)&&n.receiver instanceof Ur){let e=n.receiver;for(;e.expr instanceof Ur;)e=e.expr;return e}return null}function XE(n,e){if(!zm(n))return n;let t=QE(n);if(t){if(n instanceof nt)return t.expr=t.expr.callFn(n.args),n.receiver;if(n instanceof Et)return t.expr=t.expr.prop(n.name),n.receiver;if(n instanceof $n)return t.expr=t.expr.key(n.index),n.receiver;if(n instanceof fs)return t.expr=hr(t.expr,s=>s.callFn(n.args),e),n.receiver;if(n instanceof Vr)return t.expr=hr(t.expr,s=>s.prop(n.name),e),n.receiver;if(n instanceof qr)return t.expr=hr(t.expr,s=>s.key(n.index),e),n.receiver}else{if(n instanceof fs)return hr(n.receiver,s=>s.callFn(n.args),e);if(n instanceof Vr)return hr(n.receiver,s=>s.prop(n.name),e);if(n instanceof qr)return hr(n.receiver,s=>s.key(n.index),e)}return n}function YE(n){return n instanceof Ur?new On(new Q(A.Equals,n.guard,Ii),Ii,n.expr):n}var sf="\uFFFD",KE="#",ZE="*",JE="/",e0=":",t0="[",n0="]",s0="|";function r0(n){let e=new Map,t=new Map,s=new Map;for(let i of n.units)for(let o of i.create)switch(o.kind){case h.I18nContext:let a=i0(n,o);i.create.push(a),e.set(o.xref,a),s.set(o.xref,o);break;case h.I18nStart:t.set(o.xref,o);break}let r=null;for(let i of n.units)for(let o of i.create)switch(o.kind){case h.IcuStart:r=o,S.remove(o);let a=s.get(o.context);if(a.contextKind!==Is.Icu)continue;let l=t.get(a.i18nBlock);if(l.context===a.xref)continue;let c=t.get(l.root),u=e.get(c.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let p=e.get(a.xref);p.messagePlaceholder=o.messagePlaceholder,u.subMessages.push(p.xref);break;case h.IcuEnd:r=null,S.remove(o);break;case h.IcuPlaceholder:if(r===null||r.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,v(o0(o))),S.remove(o);break}}function i0(n,e,t){let s=rf(e.params),r=rf(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return uE(n.allocateXrefId(),e.xref,e.i18nBlock,e.message,t??null,s,r,i)}function o0(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);let e=n.expressionPlaceholders.map(Sr);return n.strings.flatMap((t,s)=>[t,e[s]||""]).join("")}function rf(n){let e=new Map;for(let[t,s]of n){let r=a0(s);r!==null&&e.set(t,v(r))}return e}function a0(n){if(n.length===0)return null;let e=n.map(t=>Sr(t));return e.length===1?e[0]:`${t0}${e.join(s0)}${n0}`}function Sr(n){if(n.flags&oe.ElementTag&&n.flags&oe.TemplateTag){if(typeof n.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let r=Sr(be(E({},n),{value:n.value.element,flags:n.flags&~oe.TemplateTag})),i=Sr(be(E({},n),{value:n.value.template,flags:n.flags&~oe.ElementTag}));return n.flags&oe.OpenTag&&n.flags&oe.CloseTag?`${i}${r}${i}`:n.flags&oe.CloseTag?`${r}${i}`:`${i}${r}`}if(n.flags&oe.OpenTag&&n.flags&oe.CloseTag)return`${Sr(be(E({},n),{flags:n.flags&~oe.CloseTag}))}${Sr(be(E({},n),{flags:n.flags&~oe.OpenTag}))}`;if(n.flags===oe.None)return`${n.value}`;let e="",t="";n.flags&oe.ElementTag?e=KE:n.flags&oe.TemplateTag&&(e=ZE),e!==""&&(t=n.flags&oe.CloseTag?JE:"");let s=n.subTemplateIndex===null?"":`${e0}${n.subTemplateIndex}`;return`${sf}${t}${e}${n.value}${s}${sf}`}function l0(n){for(let e of n.units){let t=new Map;for(let r of e.create){if(Kr(r)){if(r.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;t.set(r.xref,r.handle.slot)}let s=0;for(let r of e.update){let i=null;if(Ba(r)?i=r:Ye(r,a=>{i===null&&Ba(a)&&(i=a)}),i===null)continue;if(!t.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=t.get(i.target);if(s!==o){let a=o-s;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");S.insertBefore(Qy(a,i.sourceSpan),r),s=o}}}}function c0(n){let e=n.compatibility===St.TemplateDefinitionBuilder,t=[],s=0;for(let r of n.units)for(let i of r.create)i.kind===h.Projection&&(t.push(i.selector),i.projectionSlotIndex=s++);if(t.length>0){let r=null;if(t.length>1||t[0]!=="*"){let i=t.map(o=>o==="*"?o:Xu(o));r=n.pool.getConstLiteral(Hr(i),e)}n.contentSelectors=n.pool.getConstLiteral(Hr(t),e),n.root.create.prepend([oE(r)])}}function u0(n){di(n.root,null)}function di(n,e){let t=h0(n,e);for(let s of n.create)switch(s.kind){case h.Template:di(n.job.views.get(s.xref),t);break;case h.Projection:s.fallbackView!==null&&di(n.job.views.get(s.fallbackView),t);break;case h.RepeaterCreate:di(n.job.views.get(s.xref),t),s.emptyView&&di(n.job.views.get(s.emptyView),t);break;case h.Listener:case h.TwoWayListener:s.handlerOps.prepend(ou(n,t,!0));break}n.update.prepend(ou(n,t,!1))}function h0(n,e){let t={view:n.xref,viewContextVariable:{kind:Fe.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:e};for(let s of n.contextVariables.keys())t.contextVariables.set(s,{kind:Fe.Identifier,name:null,identifier:s,local:!1});for(let s of n.create)switch(s.kind){case h.ElementStart:case h.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;rs instanceof to?v(n.addConst(s.expr)):s,X.None)}var of="style.",af="class.",d0="style!",lf="class!",cf="!important";function f0(n){for(let e of n.root.update)if(e.kind===h.Binding&&e.bindingKind===N.Property)if(e.name.endsWith(cf)&&(e.name=e.name.substring(0,e.name.length-cf.length)),e.name.startsWith(of)){e.bindingKind=N.StyleProperty,e.name=e.name.substring(of.length),m0(e.name)||(e.name=g0(e.name));let{property:t,suffix:s}=ic(e.name);e.name=t,e.unit=s}else e.name.startsWith(d0)?(e.bindingKind=N.StyleProperty,e.name="style"):e.name.startsWith(af)?(e.bindingKind=N.ClassName,e.name=ic(e.name.substring(af.length)).property):e.name.startsWith(lf)&&(e.bindingKind=N.ClassName,e.name=ic(e.name.substring(lf.length)).property)}function m0(n){return n.startsWith("--")}function g0(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function ic(n){let e=n.indexOf("!important");e!==-1&&(n=e>0?n.substring(0,e):"");let t=null,s=n,r=n.lastIndexOf(".");return r>0&&(t=n.slice(r+1),s=n.substring(0,r)),{property:s,suffix:t}}function au(n,e=!1){return st(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}var lu=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}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)}formatPh(e){return`{${ho(e,!1)}}`}},v0=new lu;function Gm(n){return n.visit(v0)}var gs=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},Qs=class extends gs{constructor(e,t,s,r){super(t,r),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}},Ls=class extends gs{constructor(e,t,s,r,i,o){super(r,o),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}},Xa=class{constructor(e,t,s,r,i){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}},cu=class extends gs{constructor(e,t,s,r,i,o,a){super(s,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}},It=class extends gs{constructor(e,t,s,r,i,o=null,a){super(r,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=i,this.endSourceSpan=o}visit(e,t){return e.visitElement(this,t)}},so=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},Dt=class extends gs{constructor(e,t,s,r,i,o,a=null,l){super(r,l),this.name=e,this.parameters=t,this.children=s,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}},Ya=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},Ka=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}};function fe(n,e,t=null){let s=[],r=n.visit?i=>n.visit(i,t)||i.visit(n,t):i=>i.visit(n,t);return e.forEach(i=>{let o=r(i);o&&s.push(o)}),s}var Za={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Qm="\uE500";Za.ngsp=Qm;var Si=class extends O{constructor(e,t,s){super(s,e),this.tokenType=t}},uu=class{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}};function w0(n,e,t,s={}){let r=new pu(new Ma(n,e),t,s);return r.tokenize(),new uu(T0(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}var y0=/\r\n?/g;function ci(n){return`Unexpected character "${n===Ge?"EOF":String.fromCharCode(n)}"`}function uf(n){return`Unknown entity "${n}" - use the "&#;" or "&#x;" syntax`}function E0(n,e){return`Unable to parse entity "${e}" - ${n} character reference entities must end with ";"`}var hu=function(n){return n.HEX="hexadecimal",n.DEC="decimal",n}(hu||{}),bi=class{constructor(e){this.error=e}},pu=class{constructor(e,t,s){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||mn,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0);let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new du(e,r):new Ja(e,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet??!0;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(y0,` +`)}tokenize(){for(;this._cursor.peek()!==Ge;){let e=this._cursor.clone();try{this._attemptCharCode(wr)?this._attemptCharCode(zc)?this._attemptCharCode(xr)?this._consumeCdata(e):this._attemptCharCode(Da)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(In)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===Jl&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(Jl)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(rt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>Gi(s)?!e:A0(s)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(24,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===Bn)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Te),this._attemptCharCode(Xt))this._attemptCharCodeUntilFn(Te);else{t.type=28;return}this._attemptCharCode(gn)?(this._beginToken(25),this._endToken([])):t.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(df);this._cursor.peek()!==Xt&&this._cursor.peek()!==Ge;){this._beginToken(27);let e=this._cursor.clone(),t=null,s=0;for(;this._cursor.peek()!==ft&&this._cursor.peek()!==Ge||t!==null;){let r=this._cursor.peek();if(r===wi)this._cursor.advance();else if(r===t)t=null;else if(t===null&&yi(r))t=r;else if(r===Bn&&t===null)s++;else if(r===Xt&&t===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(df)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(Te);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=32;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Te),!this._attemptCharCode(ks)){t.type=32;return}this._attemptCharCodeUntilFn(r=>Te(r)&&!ah(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===ft?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(t.type=32,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(s=>Qi(s)||s===rh||s===po||t&&dn(s)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Ge;){let t=this._cursor.peek();if(t===ft)break;yi(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===wi?(this._cursor.advance(),!1):s===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(x0(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===rt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Si("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new Si("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let s={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new Si(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new bi(s)}handleError(e){if(e instanceof ro&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof bi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return C0(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ci(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let t=this._cursor.clone();this._attemptUntilChar(ss);let s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==os&&!S0(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===os?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(hf,t===""?0:1);let r=this._cursor.getChars(s);return[t,r]}_consumeTagOpen(e){let t,s,r;try{if(!Qi(this._cursor.peek()))throw this._createError(ci(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),s=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(Te);this._cursor.peek()!==In&&this._cursor.peek()!==ss&&this._cursor.peek()!==wr&&this._cursor.peek()!==Ge;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Te),this._attemptCharCode(ks)&&(this._attemptCharCodeUntilFn(Te),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Te);this._consumeTagOpenEnd()}catch(o){if(o instanceof bi){r?r.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(t).getContentType(s);i===fn.RAW_TEXT?this._consumeRawTextWithTagClose(s,t,!1):i===fn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,t,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!this._attemptCharCode(wr)||!this._attemptCharCode(In)||(this._attemptCharCodeUntilFn(Te),!this._attemptStrCaseInsensitive(t))?!1:(this._attemptCharCodeUntilFn(Te),this._attemptCharCode(ss))),this._beginToken(3),this._requireCharCodeUntilFn(r=>r===ss,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===zi||e===ji)throw this._createError(ci(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(this._cursor.peek()===zi||this._cursor.peek()===ji){let e=this._cursor.peek();this._consumeQuote(e);let t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{let e=()=>hf(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(In)?2:1;this._beginToken(e),this._requireCharCode(ss),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Te);let t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Te),this._requireCharCode(ss),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(gn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(Rt),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(Rt),this._attemptCharCodeUntilFn(Te),this._beginToken(7);let s=this._readUntil(Rt);this._endToken([s]),this._requireCharCode(Rt),this._attemptCharCodeUntilFn(Te)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(gn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Te),this._beginToken(21),this._requireCharCode(gn),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(rt),this._endToken([]),this._attemptCharCodeUntilFn(Te),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(rt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,r){this._beginToken(e);let i=[];for(;!s();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):this._cursor.peek()===Pa?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,t,s){let r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==Ge&&(s===null||!s());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,r.push(this._getProcessedChars(i,l)),this._endToken(r);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){r.push(this._getProcessedChars(i,l)),r.push(this._interpolationConfig.end),this._endToken(r);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===wi?this._cursor.advance():c===o?o=null:!a&&o===null&&yi(c)&&(o=c)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Ge||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===rt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===Jl||this._cursor.peek()===rt))}_isTagStart(){if(this._cursor.peek()===wr){let e=this._cursor.clone();e.advance();let t=e.peek();if(Ws<=t&&t<=fo||Qr<=t&&t<=dl||t===In||t===zc)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==gn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}};function Te(n){return!Gi(n)||n===Ge}function hf(n){return Gi(n)||n===ss||n===wr||n===In||n===zi||n===ji||n===ks||n===Ge}function S0(n){return(nCm)}function b0(n){return n===ft||n===Ge||!ey(n)}function _0(n){return n===ft||n===Ge||!Qi(n)}function x0(n){return n!==rt}function C0(n,e){return pf(n)===pf(e)}function pf(n){return n>=Ws&&n<=fo?n-Ws+Qr:n}function A0(n){return Qi(n)||dn(n)||n===po}function df(n){return n!==ft&&Te(n)}function T0(n){let e=[],t;for(let s=0;s0&&t.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new $(r,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new ro('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===Ms?(e.line++,e.column=0):ah(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ge:this.charAt(e.offset)}locationFromCursor(e){return new Xi(e.file,e.state.offset,e.state.line,e.state.column)}},du=class n extends Ja{constructor(e,t){e instanceof n?(super(e),this.internalState=E({},e.internalState)):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new n(this)}getChars(e){let t=e.clone(),s="";for(;t.internalState.offsetthis.internalState.peek;if(e()===wi)if(this.internalState=E({},this.state),this.advanceState(this.internalState),e()===Am)this.state.peek=Ms;else if(e()===Tm)this.state.peek=sh;else if(e()===Nm)this.state.peek=Em;else if(e()===km)this.state.peek=nh;else if(e()===Kw)this.state.peek=Hw;else if(e()===oh)this.state.peek=Sm;else if(e()===Im)if(this.advanceState(this.internalState),e()===gn){this.advanceState(this.internalState);let t=this.clone(),s=0;for(;e()!==rt;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{let t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(e()===Pm){this.advanceState(this.internalState);let t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(Rd(e())){let t="",s=0,r=this.clone();for(;Rd(e())&&s<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else ah(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let s=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new ro("Invalid hexadecimal escape sequence",e);return r}},ro=class{constructor(e,t){this.msg=e,this.cursor=t}},Ve=class n extends O{static create(e,t,s){return new n(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}},el=class{constructor(e,t){this.rootNodes=e,this.errors=t}},fu=class{constructor(e){this.getTagDefinition=e}parse(e,t,s){let r=w0(e,t,this.getTagDefinition,s),i=new mu(r.tokens,this.getTagDefinition);return i.build(),new el(i.rootNodes,r.errors.concat(i.errors))}},mu=class n{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Dt&&this.errors.push(Ve.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let o=new $(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new $(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new Xa(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let t=[],s=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&s.push(this._peek.type),this._peek.type===22)if(ff(s,21)){if(s.pop(),s.length===0)return t}else return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(ff(s,19))s.pop();else return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push(Ve.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){let t=[e],s=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===` +`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join("").replace(/&([^;]+);/g,mf):e.type===9?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){let i=e.sourceSpan;this._addToParent(new Qs(r,new $(s.start,i.end,s.fullStart,s.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof It&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,s]=e.parts,r=[];for(;this._peek.type===14;)r.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(t,s,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let m=this.getTagDefinition(i);m.canSelfClose||Fc(i)!==null||m.isVoid||this.errors.push(Ve.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,l=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new It(i,r,[],l,c,void 0),p=this._getContainer();this._pushContainer(u,p instanceof It&&this.getTagDefinition(p.name).isClosedByChild(u.name)),o?this._popContainer(i,It,l):e.type===4&&(this._popContainer(i,It,null),this.errors.push(Ve.create(i,l,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push(Ve.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,It,e.sourceSpan)){let s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(Ve.create(t,e.sourceSpan,s))}}_popContainer(e,t,s){let r=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if((o.name===e||e===null)&&o instanceof t)return o.endSourceSpan=s,o.sourceSpan.end=s!==null?s.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!r;(o instanceof Dt||o instanceof It&&!this.getTagDefinition(o.name).closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=Bc(e.parts[0],e.parts[1]),s=e.sourceSpan.end;this._peek.type===15&&this._advance();let r="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let u=this._advance();i.push(u),u.type===17?r+=u.parts.join("").replace(/&([^;]+);/g,mf):u.type===9?r+=u.parts[0]:r+=u.parts.join(""),a=s=u.sourceSpan.end}this._peek.type===15&&(s=this._advance().sourceSpan.end);let c=o&&a&&new $(o.start,a,o.fullStart);return new cu(t,r,new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new Ya(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Dt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Dt,e.sourceSpan)||this.errors.push(Ve.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new Ya(a.parts[0],a.sourceSpan))}let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Dt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Dt,null),this.errors.push(Ve.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],s,r;if(this._peek.type!==30){this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==31){this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.fullStart,o=new $(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(t),l=e.sourceSpan.start.moveBy(a),c=new $(l,e.sourceSpan.end),u=new Ka(t,s.parts[0],o,c,s.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(e){let t=e.parts[0]??"",s=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),i=e.sourceSpan.start.moveBy(r),o=new $(i,e.sourceSpan.end),a=new $(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Ka(t,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push(Ve.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof It)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,s){if(e===""&&(e=this.getTagDefinition(t).implicitNamespacePrefix||"",e===""&&s!=null)){let r=Kt(s.name)[1];this.getTagDefinition(r).preventNamespaceInheritance||(e=Fc(s.name))}return Bc(e,t)}};function ff(n,e){return n.length>0&&n[n.length-1]===e}function mf(n,e){return Za[e]!==void 0?Za[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}var Xm="ngPreserveWhitespaces",k0=new Set(["pre","template","textarea","script","style"]),Ym=` \f +\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,I0=new RegExp(`[^${Ym}]`),N0=new RegExp(`[${Ym}]{2,}`,"g");function P0(n){return n.some(e=>e.name===Xm)}function Km(n){return n.replace(new RegExp(Qm,"g")," ")}var tl=class{constructor(e,t,s=!0){this.preserveSignificantWhitespace=e,this.originalNodeMap=t,this.requireContext=s,this.icuExpansionDepth=0}visitElement(e,t){if(k0.has(e.name)||P0(e.attrs)){let r=new It(e.name,gr(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(r,e),r}let s=new It(e.name,e.attrs,gr(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);return this.originalNodeMap?.set(s,e),s}visitAttribute(e,t){return e.name!==Xm?e:null}visitText(e,t){let s=e.value.match(I0),r=t&&(t.prev instanceof Ls||t.next instanceof Ls);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return e;if(s||r){let o=e.tokens.map(u=>u.type===5?F0(u):u);if(!this.preserveSignificantWhitespace&&o.length>0){let u=o[0];o.splice(0,1,D0(u,t));let p=o[o.length-1];o.splice(o.length-1,1,M0(p,t))}let a=Jm(e.value),l=this.preserveSignificantWhitespace?a:L0(a,t),c=new Qs(l,e.sourceSpan,o,e.i18n);return this.originalNodeMap?.set(c,e),c}return null}visitComment(e,t){return e}visitExpansion(e,t){this.icuExpansionDepth++;let s;try{s=new Ls(e.switchValue,e.type,gr(this,e.cases),e.sourceSpan,e.switchValueSourceSpan,e.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(s,e),s}visitExpansionCase(e,t){let s=new Xa(e.value,gr(this,e.expression),e.sourceSpan,e.valueSourceSpan,e.expSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlock(e,t){let s=new Dt(e.name,e.parameters,gr(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan);return this.originalNodeMap?.set(s,e),s}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}visit(e,t){if(this.requireContext&&!t)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function D0(n,e){return n.type!==5||!!e?.prev?n:Zm(n,s=>s.trimStart())}function M0(n,e){return n.type!==5||!!e?.next?n:Zm(n,s=>s.trimEnd())}function L0(n,e){let t=!e?.prev,s=!e?.next,r=t?n.trimStart():n;return s?r.trimEnd():r}function F0({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[Jm(e[0])],sourceSpan:t}}function Zm({type:n,parts:e,sourceSpan:t},s){return{type:n,parts:[s(e[0])],sourceSpan:t}}function Jm(n){return Km(n).replace(N0," ")}function gr(n,e){let t=[];return e.forEach((s,r)=>{let i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}var j=function(n){return n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error",n}(j||{}),B0=["var","let","as","null","undefined","true","false","if","else","this"],io=class{tokenize(e){let t=new gu(e),s=[],r=t.scanToken();for(;r!=null;)s.push(r),r=t.scanToken();return s}},Jt=class{constructor(e,t,s,r,i){this.index=e,this.end=t,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==j.Character&&this.numValue==e}isNumber(){return this.type==j.Number}isString(){return this.type==j.String}isOperator(e){return this.type==j.Operator&&this.strValue==e}isIdentifier(){return this.type==j.Identifier}isPrivateIdentifier(){return this.type==j.PrivateIdentifier}isKeyword(){return this.type==j.Keyword}isKeywordLet(){return this.type==j.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==j.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==j.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==j.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==j.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==j.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==j.Keyword&&this.strValue=="this"}isError(){return this.type==j.Error}toNumber(){return this.type==j.Number?this.numValue:-1}toString(){switch(this.type){case j.Character:case j.Identifier:case j.Keyword:case j.Operator:case j.PrivateIdentifier:case j.String:case j.Error:return this.strValue;case j.Number:return this.numValue.toString();default:return null}}};function gf(n,e,t){return new Jt(n,e,j.Character,t,String.fromCharCode(t))}function R0(n,e,t){return new Jt(n,e,j.Identifier,0,t)}function O0(n,e,t){return new Jt(n,e,j.PrivateIdentifier,0,t)}function $0(n,e,t){return new Jt(n,e,j.Keyword,0,t)}function oc(n,e,t){return new Jt(n,e,j.Operator,0,t)}function V0(n,e,t){return new Jt(n,e,j.String,0,t)}function q0(n,e,t){return new Jt(n,e,j.Number,t,"")}function U0(n,e,t){return new Jt(n,e,j.Error,0,t)}var ac=new Jt(-1,-1,j.Character,0,""),gu=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Ge:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,r=this.index;for(;s<=bm;)if(++r>=t){s=Ge;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=t)return null;if(vf(s))return this.scanIdentifier();if(dn(s))return this.scanNumber(r);let i=r;switch(s){case fr:return this.advance(),dn(this.peek)?this.scanNumber(i):gf(i,this.index,fr);case Bn:case Xt:case gn:case rt:case xr:case yr:case Rt:case os:case ft:return this.scanCharacter(i,s);case zi:case ji:return this.scanString();case _m:return this.scanPrivateIdentifier();case xm:case Da:case jw:case In:case Ww:case Yw:return this.scanOperator(i,String.fromCharCode(s));case Fd:return this.scanQuestion(i);case wr:case ss:return this.scanComplexOperator(i,String.fromCharCode(s),ks,"=");case zc:case ks:return this.scanComplexOperator(i,String.fromCharCode(s),ks,"=",ks,"=");case Pa:return this.scanComplexOperator(i,"&",Pa,"&");case Bd:return this.scanComplexOperator(i,"|",Bd,"|");case Dm:for(;Gi(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),gf(e,this.index,t)}scanOperator(e,t){return this.advance(),oc(e,this.index,t)}scanComplexOperator(e,t,s,r,i,o){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=r),i!=null&&this.peek==i&&(this.advance(),a+=o),oc(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();wf(this.peek);)this.advance();let t=this.input.substring(e,this.index);return B0.indexOf(t)>-1?$0(e,this.index,t):R0(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!vf(this.peek))return this.error("Invalid character [#]",-1);for(;wf(this.peek);)this.advance();let t=this.input.substring(e,this.index);return O0(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!dn(this.peek))if(this.peek===po){if(!dn(this.input.charCodeAt(this.index-1))||!dn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===fr)t=!1;else if(H0(this.peek)){if(this.advance(),W0(this.peek)&&this.advance(),!dn(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let i=t?z0(r):parseFloat(r);return q0(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",r=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==wi){s+=i.substring(r,this.index);let a;if(this.advance(),this.peek==Im){let l=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=j0(this.peek),this.advance();s+=String.fromCharCode(a),r=this.index}else{if(this.peek==Ge)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(r,this.index);return this.advance(),V0(e,this.index,s+o)}scanQuestion(e){this.advance();let t="?";return(this.peek===Fd||this.peek===fr)&&(t+=this.peek===fr?".":"?",this.advance()),oc(e,this.index,t)}error(e,t){let s=this.index+t;return U0(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function vf(n){return Ws<=n&&n<=fo||Qr<=n&&n<=dl||n==po||n==rh}function wf(n){return Qi(n)||dn(n)||n==po||n==rh}function H0(n){return n==Zw||n==Gw}function W0(n){return n==Da||n==xm}function j0(n){switch(n){case Am:return Ms;case oh:return Sm;case Tm:return sh;case km:return nh;case Nm:return Em;default:return n}}function z0(n){let e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}var vu=class{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},wu=class{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}},nl=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,r=mn){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),o=this._lexer.tokenize(i),a=new Cs(e,t,s,o,1,this.errors,0).parseChain();return new Mt(a,e,t,s,this.errors)}parseBinding(e,t,s,r=mn){let i=this._parseBindingAst(e,t,s,r);return new Mt(i,e,t,s,this.errors)}checkSimpleExpression(e){let t=new yu;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,r=mn){let i=this._parseBindingAst(e,t,s,r),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,t),new Mt(i,e,t,s,this.errors)}_reportError(e,t,s,r){this.errors.push(new Pi(e,t,s,r))}_parseBindingAst(e,t,s,r){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),o=this._lexer.tokenize(i);return new Cs(e,t,s,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,r,i){let o=this._lexer.tokenize(t);return new Cs(t,s,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new gt(r,r+e.length)})}parseInterpolation(e,t,s,r,i=mn){let{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,r,i);if(a.length===0)return null;let c=[];for(let u=0;uu.text),c,e,t,s)}parseInterpolationExpression(e,t,s){let r=this._stripComments(e),i=this._lexer.tokenize(r),o=new Cs(e,t,s,i,0,this.errors,0).parseChain(),a=["",""];return this.createInterpolationAst(a,[o],e,t,s)}createInterpolationAst(e,t,s,r,i){let o=new Vs(0,s.length),a=new Us(o,o.toAbsolute(i),e,t);return new Mt(a,s,r,i,this.errors)}splitInterpolation(e,t,s,r=mn){let i=[],o=[],a=[],l=s?G0(s):null,c=0,u=!1,p=!1,{start:m,end:g}=r;for(;c-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let s=null,r=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let r=s;s=e,e=r}return new Vs(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===ac?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let r=this.parseAdditive();t=new Nt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==j.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new Nt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==j.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new Nt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parsePrefix(){if(this.next.type==j.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),Mi.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),Mi.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Li(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(fr))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(Bn)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(xr)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(xr))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(Bn))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new Fi(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(Bn)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Xt),t}else{if(this.next.isKeywordNull())return this.advance(),new Pt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Pt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Pt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Pt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ps(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(xr)){this.rbracketsExpected++;let t=this.parseExpressionList(yr);return this.rbracketsExpected--,this.expectCharacter(yr),new fa(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(gn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Ln(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new Pt(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new Pt(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new et(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new et(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new et(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(Rt));return t}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(gn),!this.consumeOptionalCharacter(rt)){this.rbracesExpected++;do{let r=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a={key:o,quoted:i};if(e.push(a),i)this.expectCharacter(os),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(os))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(r),c=this.sourceSpan(r);t.push(new qs(l,c,c,new Ln(l,c),o))}}while(this.consumeOptionalCharacter(Rt)&&!this.next.isCharacter(rt));this.rbracesExpected--,this.expectCharacter(rt)}return new ma(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let r=this.inputIndex,i=this.withContext(fi.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(r),a;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new et(this.span(t),this.sourceSpan(t))):a=new ua(this.span(t),this.sourceSpan(t),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new et(this.span(t),this.sourceSpan(t));let l=this.parseConditional();a=new ca(this.span(t),this.sourceSpan(t),o,e,i,l)}else a=new qs(this.span(t),this.sourceSpan(t),o,e,i);return a}parseCall(e,t,s){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Xt),this.rparensExpected--;let a=this.span(t),l=this.sourceSpan(t);return s?new va(a,l,e,i,o):new ga(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Xt))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(Rt));return e}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new gt(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof et&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(yr),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new pa(this.span(t),this.sourceSpan(t),e,r,i)}else return s?new ha(this.span(t),this.sourceSpan(t),e,r):new Dr(this.span(t),this.sourceSpan(t),e,r);return new et(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(os);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let o=new gt(e.span.start,r);return t.push(new Dc(o,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===ac||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,r=this.input.substring(t,s);return new Mt(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new gt(e.span.start,this.currentAbsoluteOffset);return new Bi(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new gt(e,this.currentAbsoluteOffset);return new Bi(r,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(ft)||this.consumeOptionalCharacter(Rt)}error(e,t=null){this.errors.push(new Pi(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),ea+l.length,0);s+=o,t+=o}e.set(s,t),r++}return e}var Xo;function yf(){return Xo||(Xo={},jo(le.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),jo(le.STYLE,["*|style"]),jo(le.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),jo(le.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Xo}function jo(n,e){for(let t of e)Xo[t.toLowerCase()]=n}var Q0=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function X0(n){return Q0.has(n.toLowerCase())}var Eu=class{},Y0="boolean",K0="number",Z0="string",J0="object",eS=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],eg=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),tS=Array.from(eg).reduce((n,[e,t])=>(n.set(e,t),n),new Map),Wr=class extends Eu{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,eS.forEach(e=>{let t=new Map,s=new Set,[r,i]=e.split("|"),o=i.split(","),[a,l]=r.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),t),this._eventSchema.set(u.toLowerCase(),s)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[u,p]of c)t.set(u,p);for(let u of this._eventSchema.get(l.toLowerCase()))s.add(u)}o.forEach(u=>{if(u.length>0)switch(u[0]){case"*":s.add(u.substring(1));break;case"!":t.set(u.substring(1),Y0);break;case"#":t.set(u.substring(1),K0);break;case"%":t.set(u.substring(1),J0);break;default:t.set(u,Z0)}})})}hasProperty(e,t,s){if(s.some(i=>i.name===vd.name))return!0;if(e.indexOf("-")>-1){if(Nd(e)||Lc(e))return!1;if(s.some(i=>i.name===gd.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(s=>s.name===vd.name)||e.indexOf("-")>-1&&(Nd(e)||Lc(e)||t.some(s=>s.name===gd.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=yf()[e+"|"+t];return r||(r=yf()["*|"+t],r||le.NONE)}getMappedPropName(e){return eg.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... +If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(s=>tS.get(s)??s)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return cw(e)}normalizeAnimationStyleValue(e,t,s){let r="",i=s.toString().trim(),o=null;if(nS(e)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${s}`)}return{error:o,value:i+r}}};function nS(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var U=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=fn.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=l??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Ef,pr;function tg(n){return pr||(Ef=new U({canSelfClose:!0}),pr=Object.assign(Object.create(null),{base:new U({isVoid:!0}),meta:new U({isVoid:!0}),area:new U({isVoid:!0}),embed:new U({isVoid:!0}),link:new U({isVoid:!0}),img:new U({isVoid:!0}),input:new U({isVoid:!0}),param:new U({isVoid:!0}),hr:new U({isVoid:!0}),br:new U({isVoid:!0}),source:new U({isVoid:!0}),track:new U({isVoid:!0}),wbr:new U({isVoid:!0}),p:new U({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new U({closedByChildren:["tbody","tfoot"]}),tbody:new U({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new U({closedByChildren:["tbody"],closedByParent:!0}),tr:new U({closedByChildren:["tr"],closedByParent:!0}),td:new U({closedByChildren:["td","th"],closedByParent:!0}),th:new U({closedByChildren:["td","th"],closedByParent:!0}),col:new U({isVoid:!0}),svg:new U({implicitNamespacePrefix:"svg"}),foreignObject:new U({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new U({implicitNamespacePrefix:"math"}),li:new U({closedByChildren:["li"],closedByParent:!0}),dt:new U({closedByChildren:["dt","dd"]}),dd:new U({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new U({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new U({closedByChildren:["optgroup"],closedByParent:!0}),option:new U({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new U({ignoreFirstLf:!0}),listing:new U({ignoreFirstLf:!0}),style:new U({contentType:fn.RAW_TEXT}),script:new U({contentType:fn.RAW_TEXT}),title:new U({contentType:{default:fn.ESCAPABLE_RAW_TEXT,svg:fn.PARSABLE_DATA}}),textarea:new U({contentType:fn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Wr().allKnownElementNames().forEach(e=>{!pr[e]&&Fc(e)===null&&(pr[e]=new U({canSelfClose:!1}))})),pr[n]??pr[n.toLowerCase()]??Ef}var Sf={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Su=class{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){let r=this._hashTag(e,t,s);if(this._signatureToName[r])return this._signatureToName[r];let i=e.toUpperCase(),o=Sf[i]||`TAG_${i}`,a=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){let t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];let s=e.toUpperCase(),r=Sf[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){let s=e.toUpperCase(),r=`PH: ${s}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];let i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){let s=this._hashBlock(e,t);if(this._signatureToName[s])return this._signatureToName[s];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(e){let t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];let s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=s,s}_hashTag(e,t,s){let r=`<${e}`,i=Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join(""),o=s?"/>":`>`;return r+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){let s=t.length===0?"":` (${t.sort().join("; ")})`;return`@${e}${s} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}},sS=new nl(new io);function rS(n,e,t){let s=new bu(sS,n,e,t);return(r,i,o,a,l)=>s.toI18nMessage(r,i,o,a,l)}function iS(n,e){return e}var bu=class{constructor(e,t,s,r){this._expressionParser=e,this._interpolationConfig=t,this._containerBlocks=s,this._retainEmptyTokens=r}toI18nMessage(e,t="",s="",r="",i){let o={isIcu:e.length==1&&e[0]instanceof Ls,icuDepth:0,placeholderRegistry:new Su,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||iS},a=fe(this,e,o);return new tt(a,o.placeholderToContent,o.placeholderToMessage,t,s,r)}visitElement(e,t){let s=fe(this,e.children,t),r={};e.attrs.forEach(c=>{r[c.name]=c.value});let i=tg(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";i||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:``,sourceSpan:e.endSourceSpan??e.sourceSpan});let l=new hs(e.name,r,o,a,s,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,l)}visitAttribute(e,t){let s=e.valueTokens===void 0||e.valueTokens.length===1?new xs(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){let s=e.tokens.length===1?new xs(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;let s={},r=new ka(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(a=>{s[a.value]=new Fn(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){let a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}let i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new Or(r,i,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){let s=fe(this,e.children,t);if(this._containerBlocks.has(e.name))return new Fn(s,e.sourceSpan);let r=e.parameters.map(l=>l.expression),i=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),o=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new ps(e.name,r,i,o,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitTextWithInterpolation(e,t,s,r){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let l=a.parts[1],c=uS(l)||"INTERPOLATION",u=s.placeholderRegistry.getPlaceholderName(c,l);s.placeholderToContent[u]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Ia(l,u,a.sourceSpan));break;default:if(a.parts[0].length>0||this._retainEmptyTokens){let p=i[i.length-1];p instanceof xs?(p.value+=a.parts[0],p.sourceSpan=new $(p.sourceSpan.start,a.sourceSpan.end,p.sourceSpan.fullStart,p.sourceSpan.details)):i.push(new xs(a.parts[0],a.sourceSpan))}else this._retainEmptyTokens&&i.push(new xs(a.parts[0],a.sourceSpan));break}return o?(oS(i,r),new Fn(i,t)):i[0]}};function oS(n,e){if(e instanceof tt&&(aS(e),e=e.nodes[0]),e instanceof Fn){lS(e.children,n);for(let t=0;t`"${t.sourceSpan.toString()}"`).join(` +`)} + +Second pass (${e.length} tokens): +${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 cS=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function uS(n){return n.split(cS)[2]}var _u=class extends O{constructor(e,t){super(e,t)}},bf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function hS(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),bf.has(n+"|"+e)||bf.has("*|"+e)}var pS=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=Uw,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=rS(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(Fw(e)){this.hasI18nMeta=!0;let s=[],r={};for(let i of e.attrs)if(i.name===gm){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,pS(a)),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(i.name.startsWith(jc)){let o=i.name.slice(jc.length);hS(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=wm(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"?mS(e):e instanceof tt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof tt&&t.id||Ov(e,this.preserveSignificantWhitespace))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Rv(e),cm(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))}},dS="|",fS="@@";function mS(n=""){let e,t,s;if(n=n.trim(),n){let r=n.indexOf(fS),i=n.indexOf(dS),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 gS(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}),Jv(e)}var vS="goog.getMsg";function wS(n,e,t,s){let r=ES(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(vS).callFn(i)).toConstDecl();o.addLeadingComment(gS(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 Gm(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)}},yS=new xu;function ES(n){return n.nodes.map(e=>e.visit(yS,null)).join("")}function SS(n,e,t){let{messageParts:s,placeHolders:r}=bS(e),i=_S(e),o=r.map(c=>t[c.text]),a=nw(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(Gm(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 bS(n){let e=[],t=new Cu(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),xS(e)}function _S(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 xS(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 ng(n,e,t,s){let r=[],i=new Map;for(let c of s.subMessages){let u=t.get(c),{mainVar:p,statements:m}=ng(n,e,t,u);r.push(...m);let g=i.get(u.messagePlaceholder)??[];g.push(p),i.set(u.messagePlaceholder,g)}NS(s,i),s.params=new Map([...s.params.entries()].sort());let o=H(n.pool.uniqueName(CS)),a=MS(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(...PS(s.message,o,a,s.params,l)),{mainVar:o,statements:r}}function NS(n,e){for(let[t,s]of e)s.length===1?n.params.set(t,s[0]):(n.params.set(t,v(`${xf}${AS}${t}${xf}`)),n.postprocessingParams.set(t,se(s)))}function PS(n,e,t,s,r){let i=Object.fromEntries(s),o=[kS(e),hl(DS(),wS(e,n,t,i),SS(e,n,Ju(i,!1)))];return r&&o.push(new Ut(e.set(r(e)))),o}function DS(){return ul(H(_f)).notIdentical(v("undefined",pm)).and(H(_f))}function MS(n,e,t,s){let r,i=t;if(s){let o=Cf("EXTERNAL_"),a=n.uniqueName(i);r=`${o}${Ei(e)}$$${a}`}else{let o=Cf(i);r=n.uniqueName(o)}return H(r)}function LS(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=dE(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=BS(t.localRefs);t.localRefs=n.addConst(s)}else t.localRefs=null;break}}function BS(n){let e=[];for(let t of n)e.push(v(t.name),v(t.target));return se(e)}function RS(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(iE(s.namespace),s),t=s.namespace)}}function OS(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 sg(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function $S(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&&$m(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=OS(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 qS(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 US(n){return n.startsWith("--")?n:sg(n)}function Af(n){let e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function HS(n){for(let e of n.units){for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&Tf(t.handlerOps);Tf(e.update)}}function Tf(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 WS="ng-container";function jS(n){for(let e of n.units){let t=new Set;for(let s of e.create)s.kind===h.ElementStart&&s.tag===WS&&(s.kind=h.ContainerStart,t.add(s.xref)),s.kind===h.ElementEnd&&t.has(s.xref)&&(s.kind=h.ContainerEnd)}}function zS(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 GS(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(sE(s.xref),s),(s.kind===h.ElementEnd||s.kind===h.ContainerEnd)&&zS(e,s.xref).nonBindable&&S.insertBefore(rE(s.xref),s)}function QS(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 XS(n){return n.kind===h.Listener&&!(n.hostListener&&n.isAnimationListener)||n.kind===h.TwoWayListener}function YS(n){return(n.kind===h.Property||n.kind===h.TwoWayProperty)&&!(n.expression instanceof Ee)}var KS=[{test:n=>n.kind===h.Listener&&n.hostListener&&n.isAnimationListener},{test:XS}],ZS=[{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:YS},{test:_i(h.Attribute,!1)}],JS=[{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)}],kf=new Set([h.Listener,h.TwoWayListener,h.StyleMap,h.ClassMap,h.StyleProp,h.ClassProp,h.Property,h.TwoWayProperty,h.HostProperty,h.Attribute]);function eb(n){for(let e of n.units){If(e.create,KS);let t=e.job.kind===x.Host?JS:ZS;If(e.update,t)}}function If(n,e){let t=[],s=null;for(let r of n){let i=Ba(r)?r.target:null;(!kf.has(r.kind)||i!==s&&s!==null&&i!==null)&&(S.insertBefore(Nf(t,e),r),t=[],s=null),kf.has(r.kind)&&(t.push(r),S.remove(r),s=i??s)}n.push(Nf(t,e))}function Nf(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 tb(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=sb(t,s.target);nb(s.name)&&r.kind===h.Projection&&S.remove(s);break}}}function nb(n){return n.toLowerCase()==="select"}function sb(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an slottable target.");return t}function rb(n){for(let e of n.units)ib(e)}function ib(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");ob(n,e.target,t)}else n.create.push(Um(t.target,t.targetSlot,t.name))}})}function ob(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=Um(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 ab(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 lb(n){rg(n.root,0)}function rg(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++,cb(n,e)}return rg(n,s)}function cb(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 ub(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 hb(n){for(let e of n.units)for(let t of e.update)Ne(t,(s,r)=>r&X.InChildOperation?s:s instanceof qt?pb(s):s instanceof Yt?db(s):s,X.None)}function pb(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 db(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 fb(n,e,t,s,r){return yl(d.element,n,e,t,s,r)}function mb(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 gb(n){return z(d.elementEnd,[],n)}function vb(n,e,t,s){return yl(d.elementContainerStart,n,null,e,t,s)}function wb(n,e,t,s){return yl(d.elementContainer,n,null,e,t,s)}function yb(){return z(d.elementContainerEnd,[],null)}function Eb(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 Sb(){return z(d.disableBindings,[],null)}function bb(){return z(d.enableBindings,[],null)}function _b(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 Pf(n,e){return T(d.twoWayBindingSet).callFn([n,e])}function xb(n,e,t){return z(d.twoWayListener,[v(n),e],t)}function Cb(n,e){return z(d.pipe,[v(n),v(e)],null)}function Ab(){return z(d.namespaceHTML,[],null)}function Tb(){return z(d.namespaceSVG,[],null)}function kb(){return z(d.namespaceMathML,[],null)}function Ib(n,e){return z(d.advance,n>1?[v(n)]:[],e)}function Nb(n){return T(d.reference).callFn([v(n)])}function Pb(n){return T(d.nextContext).callFn(n===1?[]:[v(n)])}function Db(){return T(d.getCurrentView).callFn([])}function Mb(n){return T(d.restoreView).callFn([n])}function Lb(n){return T(d.resetView).callFn([n])}function Fb(n,e,t){let s=[v(n,null)];return e!==""&&s.push(v(e)),z(d.text,s,t)}function Bb(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 Rb=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 Ob(n,e,t,s){let r=Rb.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 $b(n){return z(d.projectionDef,n?[n]:[],null)}function Vb(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 qb(n,e,t,s){let r=[v(n),v(e)];return t!==null&&r.push(v(t)),z(d.i18nStart,r,s)}function Ub(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 Hb(n,e){return z(d.repeater,[n],e)}function Wb(n,e,t){return z(n?d.deferPrefetchWhen:d.deferWhen,[e],t)}function jb(n,e){return z(d.declareLet,[v(n)],e)}function zb(n,e){return T(d.storeLet).callFn([n],e)}function Gb(n){return T(d.readContextLet).callFn([v(n)])}function Qb(n,e,t,s){let r=[v(n),v(e)];return t&&r.push(v(t)),z(d.i18n,r,s)}function Xb(n){return z(d.i18nEnd,[],n)}function Yb(n,e){let t=[v(n),v(e)];return z(d.i18nAttributes,t,null)}function Kb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.property,r,s)}function Zb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.twoWayProperty,r,s)}function Jb(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 e2(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(v(t)),z(d.styleProp,r,s)}function t2(n,e,t){return z(d.classProp,[v(n),e],t)}function n2(n,e){return z(d.styleMap,[n],e)}function s2(n,e){return z(d.classMap,[n],e)}var Df=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function r2(n,e,t){if(t.length<1||t.length>Df.length)throw new Error("pipeBind() argument count out of bounds");let s=Df[t.length-1];return T(s).callFn([v(n),v(e),...t])}function i2(n,e,t){return T(d.pipeBindV).callFn([v(n),v(e),t])}function o2(n,e,t){let s=Zr(n,e);return Jr(w2,[],s,[],t)}function a2(n,e){return z(d.i18nExp,[n],e)}function l2(n,e){return z(d.i18nApply,[v(n)],e)}function c2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(s),Jr(y2,[v(n)],i,o,r)}function u2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(s),Jr(S2,[v(n)],i,o,r)}function h2(n,e,t,s,r){let i=Zr(e,t),o=[];return s!==null&&o.push(v(s)),Jr(E2,[v(n)],i,o,r)}function p2(n,e,t){let s=Zr(n,e);return Jr(b2,[],s,[],t)}function d2(n,e,t){let s=Zr(n,e);return Jr(_2,[],s,[],t)}function f2(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.hostProperty,r,s)}function m2(n,e,t){return z(d.syntheticHostProperty,[v(n),e],t)}function g2(n,e,t){return ig(x2,[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}},y2={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}},E2={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}},S2={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}},b2={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}},_2={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}},x2={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 ig(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 D2(n){for(let e of n.units)Lf(e.create),Lf(e.update)}function Lf(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 M2(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");Ff(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");Bf(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");Ff(a,i.i18nContext,i.i18nBlock,r),Bf(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 Ff(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 Bf(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,lg(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,lg(n,i,e),l),o!==void 0&&jr(r.params,a,o.handle.slot,i.subTemplateIndex,l))}function lg(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 L2(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};F2(a,u,t,s),r.set(i(a),l+1)}}function F2(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 B2(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 R2=new Map([[le.HTML,d.sanitizeHtml],[le.RESOURCE_URL,d.sanitizeResourceUrl],[le.SCRIPT,d.sanitizeScript],[le.STYLE,d.sanitizeStyle],[le.URL,d.sanitizeUrl]]),O2=new Map([[le.HTML,d.trustConstantHtml],[le.RESOURCE_URL,d.trustConstantResourceUrl]]);function $2(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=O2.get(Rf(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=R2.get(Rf(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=V2(o)}i&&X0(s.name)&&(s.sanitizer=T(d.validateIframeAttribute))}break}}}function V2(n){return n.kind===h.ElementStart&&n.tag?.toLowerCase()==="iframe"}function Rf(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||le.NONE}return n}function q2(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 Pf(r,i).or(r.set(i));if(r instanceof Rn)return Pf(r,i);throw new Error("Unsupported expression in two-way action binding.")},X.InChildOperation)}function U2(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&&H2(e,t)}}}function H2(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 W2(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 j2(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,Wy(t.target,t.name,t.expression,t.sourceSpan));break;case N.StyleProperty:S.replace(t,Hy(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case N.Property:case N.Template:t.name==="style"?S.replace(t,jy(t.target,t.expression,t.sourceSpan)):t.name==="class"&&S.replace(t,zy(t.target,t.expression,t.sourceSpan));break}}function z2(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++}`)),Of(l,c)):c instanceof Un&&(r.get(c.xref)===c&&(a.add(c.xref),i--),Of(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 Of(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 G2(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 Q2(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):X2(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 X2(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 Y2(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 K2(n){for(let e of n.units){let t=0;for(let s of e.ops())nc(s)&&(t+=Z2(s));for(let s of e.ops())Ye(s,r=>{bn(r)&&(n.compatibility===St.TemplateDefinitionBuilder&&r instanceof zs||(zd(r)&&(r.varOffset=t),nc(r)&&(t+=$f(r))))});if(n.compatibility===St.TemplateDefinitionBuilder)for(let s of e.ops())Ye(s,r=>{!bn(r)||!(r instanceof zs)||(zd(r)&&(r.varOffset=t),nc(r)&&(t+=$f(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 Z2(n){let e;switch(n.kind){case h.Property:case h.HostProperty:case h.Attribute:return e=1,n.expression instanceof Ee&&!J2(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 $f(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 J2(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function e_(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,t_(c)),n_(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 s_(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&&!i_(c,m))break;if(r_(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(!cg(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 t_(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 n_(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 s_(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 cg(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 r_(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&&cg(l,s);break}return o},X.None),r}function i_(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 o_(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 a_(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 l_(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 c_(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 u_=[{kind:x.Tmpl,fn:tb},{kind:x.Host,fn:f0},{kind:x.Tmpl,fn:RS},{kind:x.Tmpl,fn:lb},{kind:x.Tmpl,fn:o_},{kind:x.Both,fn:RE},{kind:x.Both,fn:j2},{kind:x.Both,fn:_E},{kind:x.Both,fn:EE},{kind:x.Tmpl,fn:BE},{kind:x.Both,fn:$S},{kind:x.Tmpl,fn:k2},{kind:x.Both,fn:TE},{kind:x.Both,fn:eb},{kind:x.Tmpl,fn:kE},{kind:x.Tmpl,fn:rb},{kind:x.Tmpl,fn:OE},{kind:x.Tmpl,fn:LS},{kind:x.Tmpl,fn:LE},{kind:x.Tmpl,fn:N2},{kind:x.Tmpl,fn:yE},{kind:x.Tmpl,fn:vE},{kind:x.Tmpl,fn:ab},{kind:x.Both,fn:hb},{kind:x.Tmpl,fn:c0},{kind:x.Tmpl,fn:c_},{kind:x.Tmpl,fn:u0},{kind:x.Tmpl,fn:U2},{kind:x.Both,fn:mE},{kind:x.Both,fn:D2},{kind:x.Tmpl,fn:Y2},{kind:x.Tmpl,fn:l_},{kind:x.Both,fn:B2},{kind:x.Tmpl,fn:$E},{kind:x.Tmpl,fn:q2},{kind:x.Tmpl,fn:Q2},{kind:x.Both,fn:P2},{kind:x.Both,fn:$2},{kind:x.Tmpl,fn:FS},{kind:x.Both,fn:QS},{kind:x.Both,fn:HE},{kind:x.Both,fn:z2},{kind:x.Both,fn:e_},{kind:x.Both,fn:a_},{kind:x.Tmpl,fn:W2},{kind:x.Tmpl,fn:M2},{kind:x.Tmpl,fn:L2},{kind:x.Tmpl,fn:r0},{kind:x.Tmpl,fn:G2},{kind:x.Tmpl,fn:IS},{kind:x.Tmpl,fn:p0},{kind:x.Both,fn:DE},{kind:x.Tmpl,fn:I2},{kind:x.Both,fn:K2},{kind:x.Tmpl,fn:l0},{kind:x.Both,fn:VS},{kind:x.Tmpl,fn:FE},{kind:x.Tmpl,fn:HS},{kind:x.Tmpl,fn:jS},{kind:x.Tmpl,fn:UE},{kind:x.Tmpl,fn:GS},{kind:x.Both,fn:ub},{kind:x.Both,fn:A2},{kind:x.Both,fn:AE}];function ug(n,e){for(let t of u_)(t.kind===e||t.kind===x.Both)&&t.fn(n)}function h_(n,e){let t=pg(n.root);return hg(n.root,e),t}function hg(n,e){for(let t of n.job.units){if(t.parent!==n.xref)continue;hg(t,e);let s=pg(t);e.statements.push(s.toDeclStmt(s.name))}}function pg(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 p_(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 dg=St.TemplateDefinitionBuilder,Fs=new Wr,Bs="ng-template";function Nu(n){return n instanceof tt}function d_(n){return Nu(n)&&n.nodes.length===1&&n.nodes[0]instanceof ka}function f_(n,e,t,s,r,i,o){let a=new no(n,t,dg,s,r,i,o);return Hn(a.root,e),a}function m_(n,e,t){let s=new Qa(n.componentName,t,dg);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);g_(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);v_(s,r,i,o)}for(let r of n.events??[])w_(s,r);return s}function g_(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 v_(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 w_(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)y_(n,t);else if(t instanceof vt)E_(n,t);else if(t instanceof Rr)S_(n,t);else if(t instanceof Pn)fg(n,t,null);else if(t instanceof Lr)mg(n,t,null);else if(t instanceof Ca)b_(n,t);else if(t instanceof xa)__(n,t);else if(t instanceof Hs)x_(n,t);else if(t instanceof Ta)C_(n,t);else if(t instanceof Br)A_(n,t);else if(t instanceof Ui)k_(n,t);else throw new Error(`Unsupported template node: ${t.constructor.name}`)}function y_(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=eE(r,t,jm(s),e.i18n instanceof hs?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(i),N_(n,i,e),wg(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=nE(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),o!==null&&S.insertBefore(wl(o,e.endSourceSpan??e.startSourceSpan),a)}function E_(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=jm(r),a=s===null?"":PE(s,o),l=I_(e)?wt.NgTemplate:wt.Structural,c=gl(t.xref,l,s,a,o,i,e.startSourceSpan,e.sourceSpan);n.create.push(c),P_(n,c,e,l),wg(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 S_(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=aE(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 fg(n,e,t){n.create.push(Vm(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function mg(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(Vm(i,"",t,e.sourceSpan));let o=n.job.compatibility?null:e.sourceSpan;n.update.push(Vy(i,new Ee(s.strings,s.expressions.map(a=>V(a,n.job,o)),r),e.sourceSpan))}function b_(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=IE.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 ew(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 gg=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 I_(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 N_(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,gg.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(qm(e.xref,e.handle,i.name,e.tag,vg(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(Hm(n.job.allocateXrefId(),new at,e.xref))}function P_(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(qm(e.xref,e.handle,i.name,e.tag,vg(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(Hm(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=gg.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 vg(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 wg(n,e){D_(n.localRefs);for(let{name:t,value:s}of e.references)n.localRefs.push({name:t,target:s})}function D_(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 M_(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function L_(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 yg(n,e,t,s){let r=[];s!==void 0&&r.push(...s),n.isSignal&&r.push(new Et(H(Wi),n.propertyName)),r.push(L_(n,e),v(M_(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 Eg(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 F_(n,e,t){let s=[],r=[],i=ym(a=>r.push(a),eh);n.forEach(a=>{let l=yg(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,Eg(r))],Bt,null,o)}function B_(n,e,t){let s=[],r=[],i=ym(a=>r.push(a),eh);for(let a of n){if(s.push(yg(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,Eg(r))],Bt,null,o)}var Du=class extends fu{constructor(){super(tg)}parse(e,t,s){return super.parse(e,t,s)}},Vf=".",R_="attr",O_="class",$_="style",V_="*",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+V_.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(Vf),c;if(l.length>1)if(l[0]==R_){a=l.slice(1).join(Vf),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]==O_?(a=l[1],o=ae.Class,c=[le.NONE]):l[0]==$_&&(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=hw(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]=uw(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 q_(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(U_);return e===null||e[1]=="package"||e[1]=="asset"}var U_=/^([^:/?#]+):/,H_="select",W_="link",j_="rel",z_="href",G_="stylesheet",Q_="style",X_="script",Y_="ngNonBindable",K_="ngProjectAs";function Sg(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{let c=l.name.toLowerCase();c==H_?e=l.value:c==z_?t=l.value:c==j_?s=l.value:l.name==Y_?r=!0:l.name==K_&&l.value.length>0&&(i=l.value)}),e=Z_(e);let o=n.name.toLowerCase(),a=mt.OTHER;return Lc(o)?a=mt.NG_CONTENT:o==Q_?a=mt.STYLE:o==X_?a=mt.SCRIPT:o==W_&&s==G_&&(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 Z_(n){return n===null||n.length===0?"*":n}var J_=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,ex=/^track\s+([\S\s]*)/,tx=/^(as\s)+(.*)/,vh=/^else[^\S\r\n]+if/,nx=/^let\s+([\S\s]*)/,qf=/(\s*)(\S+)(\s*)/,xi=new Set(["$index","$first","$last","$even","$odd","$count"]);function Uf(n){return n==="empty"}function Hf(n){return n==="else"||vh.test(n)}function sx(n,e,t,s){let r=lx(e),i=[],o=Wf(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=Wf(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 rx(n,e,t,s){let r=[],i=ox(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 ix(n,e,t){let s=cx(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 ox(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=ux(s,e)?.match(J_);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(nx);if(m!==null){let w=new $(p.sourceSpan.start.moveBy(m[0].length-m[1].length),p.sourceSpan.end);ax(p.sourceSpan,m[1],w,o,u.context,e);continue}let g=p.expression.match(ex);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 ax(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(qf)??[],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(qf)??[];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 lx(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 cx(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 Wf(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 hx=/^\d+\.?\d*(ms|s)?$/,px=/^\s$/,jf=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 zf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("when"),o=new $(e.start.moveBy(i),e.start.moveBy(i+4)),a=bg(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);_g("when",s,r,new $c(c,e,a,o))}}function Gf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("on"),o=new $(e.start.moveBy(i),e.start.moveBy(i+2)),a=bg(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 bg(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 fx(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 mx(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 gx(n,e,t,s,r,i){return wh(it.HOVER,n,i),new Sa(n[0]??null,e,t,s,r)}function vx(n,e,t,s,r,i){return wh(it.INTERACTION,n,i),new ba(n[0]??null,e,t,s,r)}function wx(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 Cx(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=Ax(o,t);break;case"loading":r!==null?e.push(new O(o.startSourceSpan,"@defer block can only have one @loading block")):r=Tx(o,t);break;case"error":i!==null?e.push(new O(o.startSourceSpan,"@defer block can only have one @error block")):i=kx(o,t);break}}catch(a){e.push(new O(o.startSourceSpan,a.message))}return{placeholder:s,loading:r,error:i}}function Ax(n,e){let t=null;for(let s of n.parameters)if(xg.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 Tx(n,e){let t=null,s=null;for(let r of n.parameters)if(Sx.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(xg.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 kx(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 Ix(n,e,t,s){let r={},i={};for(let o of n)bx.test(o.expression)?zf(o,e,r,t):_x.test(o.expression)?Gf(o,r,t,s):yx.test(o.expression)?zf(o,e,i,t):Ex.test(o.expression)?Gf(o,i,t,s):t.push(new O(o.sourceSpan,"Unrecognized trigger"));return{triggers:r,prefetchTriggers:i}}var Nx=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Qf=1,Xf=2,Yf=3,Kf=4,Zf=5,Px=6,ui=7,ts={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},Jf="*";function Dx(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=Sg(e);if(s.type===mt.SCRIPT)return null;if(s.type===mt.STYLE){let b=Lx(e);return b!==null&&this.styles.push(b),null}else if(s.type===mt.STYLESHEET&&q_(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=Pw(e.name),i=[],o=[],a=[],l=[],c=[],u={},p=[],m=[],g=!1;for(let b of e.attrs){let _=!1,D=em(b.name),Y=!1;if(b.i18n&&(u[b.name]=b.i18n),D.startsWith(Jf)){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(Jf.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(Mx,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(Lw)){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=xx(e,this.findConnectedBlocks(s,t,Bu),this,this.bindingParser);break;case"switch":r=ix(e,this,this.bindingParser);break;case"for":r=rx(e,this.findConnectedBlocks(s,t,Uf),this,this.bindingParser);break;case"if":r=sx(e,this.findConnectedBlocks(s,t,Hf),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)):Uf(e.name)?(i=`@${e.name} block can only be used after an @for block.`,this.processedNodes.add(e)):Hf(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=em(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(Nx);if(g){if(g[Qf]!=null){let _=g[ui],D=m(u,g[Qf],_);this.bindingParser.parsePropertyBinding(_,c,!1,!1,u,p,t.valueSpan,s,r,D)}else if(g[Xf])if(e){let _=g[ui],D=m(u,g[Xf],_);this.parseVariable(_,c,u,D,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(g[Yf]){let _=g[ui],D=m(u,g[Yf],_);this.parseReference(_,c,u,D,t.valueSpan,a)}else if(g[Kf]){let _=[],D=g[ui],Y=m(u,g[Kf],D);this.bindingParser.parseEvent(D,c,!1,u,t.valueSpan||u,s,_,Y),vc(_,i)}else if(g[Zf]){let _=g[ui],D=m(u,g[Zf],_);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[Px]){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=Km(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=Sg(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)}},Mx=new Ou;function em(n){return/^data-/i.test(n)?n.substring(5):n}function vc(n,e){e.push(...n.map(t=>Oc.fromParsedEvent(t)))}function Lx(n){return n.children.length!==1||!(n.children[0]instanceof Qs)?null:n.children[0].value}var Fx=[" ",` +`,"\r"," "];function Bx(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:Fx},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}=Dx(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 Rx=new Wr;function cl(n=mn,e=!1){return new Mu(new nl(new io),n,Rx,[],e)}var Cg="%COMP%",Ox=`_nghost-${Cg}`,$x=`_ngcontent-${Cg}`;function Ag(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",B_(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",F_(n.viewQueries,e,n.name)),s.set("hostBindings",Gx(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",Pd(n.inputs,!0)),s.set("outputs",Pd(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 Tg(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([Zx(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 Vx(n,e,t){let s=Ag(n,e,t);Tg(s,n);let r=T(d.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=zx(n);return{expression:r,type:i,statements:[]}}function qx(n,e,t){let s=Ag(n,e,t);Tg(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=f_(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);ug(l,x.Tmpl);let c=h_(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",Hx(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?Kx(n.styles,$x,Ox):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=Ux(n);return{expression:u,type:p,statements:[]}}function Ux(n){let e=kg(n);return e.push(Vu(n.template.ngContentSelectors)),e.push(We(v(n.isStandalone))),e.push(Ig(n)),n.isSignal&&e.push(We(v(n.isSignal))),We(T(d.ComponentDeclaration,e))}function Hx(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 Wx(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 kg(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[pl(n.type.type,n.typeArgumentCount),e!==null?Wx(e):yn,n.exportAs!==null?Vu(n.exportAs):yn,We(jx(n)),We($u(n.outputs)),Vu(n.queries.map(t=>t.propertyName))]}function jx(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 zx(n){let e=kg(n);return e.push(yn),e.push(We(v(n.isStandalone))),e.push(Ig(n)),n.isSignal&&e.push(We(v(n.isSignal))),We(T(d.DirectiveDeclaration,e))}function Gx(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=m_({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);ug(c,x.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",v(u)),p_(c)}var Qx=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Xx(n){let e={},t={},s={},r={};for(let i of Object.keys(n)){let o=n[i],a=i.match(Qx);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 Yx(n,e){let t=cl();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function Kx(n,e,t){let s=new Kc;return n.map(r=>s.shimCssText(r,e,t))}function Ig(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 Zx(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=tm(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=tm(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 tm(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=Jx(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=Rw(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 Jx(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=qd(r);return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){let r=gC(s),i=qd(r);return this.jitExpression(i.expression,e,t,[])}compileInjectable(e,t,s){let{expression:r,statements:i}=Dd({name:s.name,type:ke(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:am(s.providedIn),useClass:dr(s,"useClass"),useFactory:om(s,"useFactory"),useValue:dr(s,"useValue"),useExisting:dr(s,"useExisting"),deps:s.deps?.map(Mg)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){let{expression:r,statements:i}=Dd({name:s.type.name,type:ke(s.type),typeArgumentCount:0,providedIn:am(s.providedIn),useClass:dr(s,"useClass"),useFactory:om(s,"useFactory"),useValue:dr(s,"useValue"),useExisting:dr(s,"useExisting"),deps:s.deps?.map(lm)},!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=Vd(r);return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){let r=vC(s),i=Vd(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=ly(r);return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){let r=cy(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){let r=rm(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){let r=this.createParseSourceSpan("Directive",s.type.name,t),i=Pg(s,r);return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){let r=new oa,i=cl(),o=Vx(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){let{template:r,interpolation:i,defer:o}=Dg(s.template,s.name,t,s.preserveWhitespaces,s.interpolation,void 0),a=be(E(E({},s),rm(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(sC),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=nC(s,r,t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){let r=new oa,i=cl(s.interpolation),o=qx(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:oC(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(lm):s.deps,target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}createParseSourceSpan(e,t,s){return ty(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 nm(n){return be(E({},n),{isSignal:n.isSignal,predicate:Ng(n.predicate),read:n.read?new W(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function sm(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:Ng(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 Ng(n){return Array.isArray(n)?n:Zu(new W(n),1)}function rm(n){let e=mC(n.inputs||[]),t=yc(n.outputs||[]),s=n.propMetadata,r={},i={};for(let a in s)s.hasOwnProperty(a)&&s[a].forEach(l=>{hC(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}:pC(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({},lC(n.propMetadata,n.typeSourceSpan,n.host)),inputs:E(E({},e),r),outputs:E(E({},t),i),queries:n.queries.map(nm),providers:n.providers!=null?new W(n.providers):null,viewQueries:n.viewQueries.map(nm),fullInheritance:!1,hostDirectives:o})}function Pg(n,e){let t=n.hostDirectives?.length?n.hostDirectives.map(s=>({directive:ke(s.directive),isForwardReference:!1,inputs:s.inputs?im(s.inputs):null,outputs:s.outputs?im(s.outputs):null})):null;return{name:n.type.name,type:ke(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?dC(n.inputs):{},outputs:n.outputs??{},host:eC(n.host),queries:(n.queries??[]).map(sm),viewQueries:(n.viewQueries??[]).map(sm),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 eC(n={}){return{attributes:tC(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function im(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(...rC(n.pipes)));return be(E({},Pg(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 sC(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 rC(n){return n?Object.keys(n).map(e=>({kind:fl.Pipe,name:e,type:new W(n[e])})):[]}function iC(n){return{kind:fl.Pipe,name:n.name,type:new W(n.type)}}function Dg(n,e,t,s,r,i){let o=r?Na.fromArray(r):mn,a=Bx(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:aC(c,i)}}function dr(n,e){if(n.hasOwnProperty(e))return Zu(new W(n[e]),0)}function om(n,e){if(n.hasOwnProperty(e))return new W(n[e])}function am(n){let e=typeof n=="function"?new W(n):new je(n??null);return Zu(e,0)}function oC(n){return n==null?null:n.map(Mg)}function Mg(n){let e=n.attribute!=null,t=n.token===null?null:new W(n.token),s=e?new W(n.attribute):t;return Lg(s,e,n.host,n.optional,n.self,n.skipSelf)}function lm(n){let e=n.attribute??!1,t=n.token===null?null:new W(n.token);return Lg(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function Lg(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 aC(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=>{cC(o)?s.properties[o.hostPropertyName||i]=Ew("this",i):uC(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function cC(n){return n.ngMetadataName==="HostBinding"}function uC(n){return n.ngMetadataName==="HostListener"}function hC(n){return n.ngMetadataName==="Input"}function pC(n){return n.ngMetadataName==="Output"}function dC(n){return Object.keys(n).reduce((e,t)=>{let s=n[t];return typeof s=="string"||Array.isArray(s)?e[t]=fC(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 fC(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 mC(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[s,r]=Fg(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]=Fg(t);return e[r]=s,e},{})}function Fg(n){let[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}function gC(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 vC(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 wC(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new zu}var jA=new Tc("18.2.10"),co=class{constructor({defaultEncapsulation:e=rs.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=yC(pw(t)),this.strictInjectionParameters=s===!0}};function yC(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}},zA=new Gu;wC(gi);var EC=[{provide:Mo,useFactory:()=>new Mo}],El=class{constructor(e){let t={defaultEncapsulation:fp.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){let t=SC(this._defaultOptions.concat(e));return yp.create({providers:[EC,{provide:co,useFactory:()=>new co({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(Mo)}};function SC(n){return{defaultEncapsulation:Bg(n.map(e=>e.defaultEncapsulation)),providers:bC(n.map(e=>e.providers)),preserveWhitespaces:Bg(n.map(e=>e.preserveWhitespaces))}}function Bg(n){for(let e=n.length-1;e>=0;e--)if(n[e]!==void 0)return n[e]}function bC(n){let e=[];return n.forEach(t=>t&&e.push(...t)),e}var Rg=zl(Dp,"coreDynamic",[{provide:Lo,useValue:{},multi:!0},{provide:Pp,useClass:El,deps:[Lo]}]),_C=(()=>{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})(),Og=[Vp,{provide:Lo,useValue:{providers:[{provide:zr,useClass:_C,deps:[]}]},multi:!0},{provide:Sp,useValue:Fp}],xC=new Ip("18.2.10"),CC=zl(Rg,"browserDynamic",Og);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=td.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":kC,"@angular/platform-browser-dynamic":yh,"@angular/common":Lp,"@angular/router":Gp,"../app/services/util.service":{UtilService:rr},"../app/services/variables.service":{VariablesService:hd},"../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:od},"../app/services/namespace.service":{NamespaceService:cn},"../app/services/i18n.service":{I18nService:Xn},"../app/services/broadcast.service":{BroadcastService:id},"../app/services/sidebar.service":{SidebarService:Tt},"../app/components/widgets/base-widget.class":{BaseWidget:ad},"../app/components/widgets/charts/base-chart.class":{BaseChartClass:ud}};window.require=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 NC(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.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:"",oAuthUrl:""}}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.model.oAuthUrl=s.url||""}else this.model.oAuthUrl=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.model.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,NC,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.model.oAuthUrl?21:-1),k(),ee("hidden",!r.model.error),k(),rn(" ",r.model.error," "))},dependencies:[un,$o,Yn,Jp,Kn,Qp,fd,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 qg=["gridster"],MC=["widgets"];function LC(n,e){if(n&1&&ge(0,"dsw-widget",9,1),n&2){ne();let t=Tp(0);Je("transparent",t.inline),ee("widget",t)}}function FC(n,e){n&1&&ge(0,"div",7),n&2&&ee("ngClass",e)}function BC(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 RC(n,e){if(n&1){let t=Ce();Cp(0),B(1,"gridster-item",5),J("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),ye(2,LC,2,3,"dsw-widget",6)(3,FC,1,1,"div",7)(4,BC,3,4,"label",8),R()}if(n&2){let t,s=e.$implicit,r=ne(),i=Ap(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 Hg=(()=>{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-JWKHTWFA.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(qg,7,sn),ut(qg,7),ut(MC,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,RC,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:[nd,sd,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 OC(n,e){n&1&&ge(0,"dsw-folder-screen")}function $C(n,e){n&1&&ge(0,"dsw-dashboard-screen")}var Wg=(()=>{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,OC,1,0,"dsw-folder-screen")(1,$C,1,0,"dsw-dashboard-screen"),s&2&&(pe(r.isFolder?0:-1),k(),pe(r.isFolder?-1:1))},dependencies:[Hg,dd],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:Wg,data:{isDashboard:!0},resolve:{model:_h},runGuardsAndResolvers:"always"}]}];function jg(n){return new Z(3e3,!1)}function VC(){return new Z(3100,!1)}function qC(){return new Z(3101,!1)}function UC(n){return new Z(3001,!1)}function HC(n){return new Z(3003,!1)}function WC(n){return new Z(3004,!1)}function jC(n,e){return new Z(3005,!1)}function zC(){return new Z(3006,!1)}function GC(){return new Z(3007,!1)}function QC(n,e){return new Z(3008,!1)}function XC(n){return new Z(3002,!1)}function YC(n,e,t,s,r){return new Z(3010,!1)}function KC(){return new Z(3011,!1)}function ZC(){return new Z(3012,!1)}function JC(){return new Z(3200,!1)}function e1(){return new Z(3202,!1)}function t1(){return new Z(3013,!1)}function n1(n){return new Z(3014,!1)}function s1(n){return new Z(3015,!1)}function r1(n){return new Z(3016,!1)}function i1(n,e){return new Z(3404,!1)}function o1(n){return new Z(3502,!1)}function a1(n){return new Z(3503,!1)}function l1(){return new Z(3300,!1)}function c1(n){return new Z(3504,!1)}function u1(n){return new Z(3301,!1)}function h1(n,e){return new Z(3302,!1)}function p1(n){return new Z(3303,!1)}function d1(n,e){return new Z(3400,!1)}function f1(n){return new Z(3401,!1)}function m1(n){return new Z(3402,!1)}function g1(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 iv(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 o1(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 zg(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var v1=typeof document>"u"?null:document.documentElement;function Xh(n){let e=n.parentNode||n.host||null;return e===v1?null:e}function w1(n){return n.substring(1,6)=="ebkit"}var Xs=null,Gg=!1;function y1(n){Xs||(Xs=E1()||{},Gg=Xs.style?"WebkitAppearance"in Xs.style:!1);let e=!0;return Xs.style&&!w1(n)&&(e=n in Xs.style,!e&&Gg&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Xs.style)),e}function E1(){return typeof document<"u"?document.body:null}function ov(n,e){for(;e;){if(e===n)return!0;e=Xh(e)}return!1}function av(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 y1(t)}containsElement(t,s){return ov(t,s)}getParentElement(t){return Xh(t)}query(t,s,r){return av(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 S1=1e3,lv="{{",b1="}}",cv="ng-enter",Ph="ng-leave",Cl="ng-trigger",Nl=".ng-trigger",Qg="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*S1;default:return n}}function Pl(n,e,t){return n.hasOwnProperty("duration")?n:_1(n,e,t)}function _1(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(jg(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(VC()),a=!0),i<0&&(e.push(qC()),a=!0),a&&e.splice(l,0,jg(n))}return{duration:r,delay:i,easing:o}}function x1(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]:cd(n):n}function C1(n,e,t){let s=e.params||{},r=uv(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(UC(i))})}var Lh=new RegExp(`${lv}\\s*(.+?)\\s*${b1}`,"g");function uv(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(HC(o)),a=""),a.toString()});return r==s?n:r}var A1=/-+([a-z0-9])/g;function Kh(n){return n.replace(A1,(...e)=>e[1].toUpperCase())}function T1(n,e){return n===0||e===0}function k1(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 WC(e.type)}}function Zh(n,e){return window.getComputedStyle(n)[e]}var I1=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(I1.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(jC(e,s))}return o+i}};var Ml="*";function N1(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>P1(s,t,e)):t.push(n),t}function P1(n,e,t){if(n[0]==":"){let l=D1(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(s1(n)),e;let r=s[1],i=s[2],o=s[3];e.push(Xg(r,o));let a=r==Ml&&o==Ml;i[0]=="<"&&!a&&e.push(Xg(o,r))}function D1(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 Xg(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 hv=":self",M1=new RegExp(`s*${hv}s*,?`,"g");function pv(n,e,t,s){return new Fh(n).build(e,t,s)}var Yg="",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=Yg,e.collectedStyles=new Map,e.collectedStyles.set(Yg,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(zC()),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(GC())}),{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=>{uv(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(QC(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=N1(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=R1(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(XC(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(lv)>=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(YC(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&C1(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(KC()),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:B1(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]=L1(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(t1());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 L1(n){let e=!!n.split(/\s*,\s*/).find(t=>t==hv);return e&&(n=n.replace(M1,"")),n=n.replace(/@\*/g,Nl).replace(/@\w+/g,t=>Nl+"-"+t.slice(1)).replace(/:animating/g,Dh),[n,e]}function F1(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 B1(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 R1(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=F1(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()}},O1=1,$1=":enter",V1=new RegExp($1,"g"),q1=":leave",U1=new RegExp(q1,"g");function dv(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(V1,"."+this._enterClassName),e=e.replace(U1,"."+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(n1(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+=O1,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=H1(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",Kg(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",Kg(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 Kg(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function H1(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 Zg(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 W1(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:fv(y,m),delay:this.ast.options?.delay},Ke=u?[]:dv(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?Zg(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)}),Zg(t,this._triggerName,s,r,te,w,b,Ke,[..._.values()],D,Y,Re))}};function W1(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function fv(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=fv(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 j1(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))}),Jg(this.states,"true","1"),Jg(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Bl(e,r,this.states))}),this.fallbackTransition=z1(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 z1(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 Jg(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 G1=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=pv(this._driver,t,s,r);if(s.length)throw a1(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=iv(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=dv(this._driver,t,i,cv,Ph,new Map,new Map,s,G1,r),o.forEach(u=>{let p=xt(a,u.element,new Map);u.postStyleProps.forEach(m=>p.set(m,null))})):(r.push(l1()),o=[]),r.length)throw c1(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 u1(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}}},ev="ng-animate-queued",Q1=".ng-animate-queued",kh="ng-animate-disabled",X1=".ng-animate-disabled",Y1="ng-star-inserted",K1=".ng-star-inserted",Z1=[],mv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},J1={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=tA(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 h1(s,t);if(s==null||s.length==0)throw p1(t);if(!nA(s))throw d1(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 f1(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(!iA(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,ev),o.onStart(()=>{ti(e,ev)})),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===mv)&&(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]=mv,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,X1,!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 m1(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,Q1,!0);for(let F=0;F{let F=cv+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=sv(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 Nv={instruction:de,player:K,element:Pe};o.push(Nv),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(g1(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=>rv(P,l,c)),er=new Map;nv(er,this.driver,D,c,pn).forEach(P=>{rv(P,l,c)&&ws.push(P)});let ys=new Map;g.forEach((P,L)=>{nv(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?sA(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=rA((s.get(y)||Z1).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=iv(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(()=>eA(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>jt(w,Qg));let g=vs(m);return g.onDestroy(()=>{u.forEach(w=>ti(w,Qg)),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 eA(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 tA(n){return n??null}function kl(n){return n&&n.nodeType===1}function nA(n){return n=="start"||n=="done"}function tv(n,e){let t=n.style.display;return n.style.display=e??"none",t}function nv(n,e,t,s,r){let i=[];t.forEach(l=>i.push(tv(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]=J1,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>tv(l,i[a++])),o}function sv(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 sA(n,e,t){vs(t).onDone(()=>n.processLeaveNode(e))}function rA(n){let e=[];return gv(n,e),e}function gv(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=pv(this._driver,i,l,c);if(l.length)throw i1(r,l);c.length&&void 0,a=j1(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]=zg(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]=zg(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 oA(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)=>{aA(s)&&(e=e||new Map,e.set(s,t))}),e}function aA(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 ov(e,t)}getParentElement(e){return Xh(e)}query(e,t,s){return av(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);T1(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=x1(t).map(g=>new Map(g));p=k1(e,p,c);let m=oA(e,p);return new Rl(e,p,l,m)}};var Il="@",vv="@.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==vv?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==vv?(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=lA(e),i=t.slice(1),o="";return i.charAt(0)!=Il&&([i,o]=cA(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 lA(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function cA(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 hA=(()=>{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(Mp),Ze(Zs),Ze(Js))}}static{this.\u0275prov=nn({token:n,factory:n.\u0275fac})}}return n})();function pA(){return new Dl}function dA(n,e,t){return new Vl(n,e,t)}var wv=[{provide:Js,useFactory:pA},{provide:ni,useClass:hA},{provide:bp,useFactory:dA,deps:[Op,ni,Ep]}],fA=[{provide:Zs,useFactory:()=>new Ol},{provide:Wl,useValue:"BrowserAnimations"},...wv],dk=[{provide:Zs,useClass:Yh},{provide:Wl,useValue:"NoopAnimations"},...wv];function yv(){return _p("NgEagerAnimations"),[...fA]}var mA=n=>()=>Gn(void 0,null,function*(){yield n.initialize()}),Ev={providers:[gp(rd,ii,ld,un,ed),Bp(Rp()),yv(),ei.production?Gl(xh,Ql()):Gl(xh,Ql(),zp(jp)),{provide:Np,useFactory:mA,multi:!0,deps:[bl]}]};function gA(n,e){n&1&&Po(0)}var Sv=oi("toggle",[Jn(":enter",[$e({maxWidth:"0"}),Zn("100ms",$e({maxWidth:"*"}))]),Jn(":leave",[$e({maxWidth:""}),Zn("100ms",$e({maxWidth:"0"}))])]),bv=(()=>{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,gA,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 _v=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%)"}))])]),xv=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%)"}))])]),Cv=(()=>{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 vA=["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(vA,7),s&2){let i;ht(i=pt())&&(r.inp=i.first)}},outputs:{search:"search"},standalone:!0,features:[kp([{provide:Xp,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 wA(n,e){if(n&1&&(B(0,"div",1),ve(1),R()),n&2){let t=ne();k(),rn(" ",t.data.title," ")}}function yA(n,e){n&1&&Po(0)}function EA(n,e){if(n&1&&ye(0,yA,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 SA(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 bA(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 _A(n,e){if(n&1&&(B(0,"div",3),ye(1,SA,1,1,"dsw-search-input",5),zt(2,bA,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 Tv=(()=>{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,wA,2,1,"div",1),B(2,"div",2),ve(3),ye(4,EA,1,2,"ng-container"),R(),ye(5,_A,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 xA=["inpSearch"];function CA(n,e){if(n&1&&(B(0,"div",5),ve(1),R()),n&2){let t=ne();k(),Qt(t.title)}}function AA(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 TA(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 kA(n,e){if(n&1&&(B(0,"div",19),zt(1,TA,2,3,"a",21,Qn),R()),n&2){let t=ne().$implicit;k(),Gt(t.moreList)}}function IA(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,AA,2,2,"span",18)(3,kA,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 NA(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 PA(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 DA(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 MA(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 LA(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 kv=(()=>{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-ZZFP4IRP.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-3S2XLZ4S.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 Up),_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(xA,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,CA,2,1,"div",5),B(6,"div",6),zt(7,IA,4,7,"a",7,Qn),_e(9,"async"),R()(),ye(10,NA,3,3,"button",8)(11,PA,4,5,"div",9)(12,DA,4,3,"button",8)(13,MA,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,LA,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:[Wp,pd,ql,un,Kp,Zp,Yp,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 FA=["sidebar"];function BA(n,e){n&1&&ge(0,"dsw-header")}function RA(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 OA(n,e){if(n&1&&ge(0,"dsw-modal",2),n&2){let t=e.$implicit;ee("data",t)("ngClass",t.class)}}function $A(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 Iv=(()=>{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 qp&&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(FA,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,BA,1,0,"dsw-header"),_e(1,"async"),B(2,"div",1),ye(3,RA,2,1,"dsw-sidebar"),ge(4,"router-outlet"),R(),zt(5,OA,1,2,"dsw-modal",2,xp),zt(7,$A,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:[kv,bv,Hp,Tv,Bo,Cv,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:[Sv,_v,xv]},changeDetection:0})}}return n})();ei.production&&void 0;$p(Iv,Ev).catch(n=>console.error(n)); diff --git a/dist/main-STX6PNSS.js b/dist/main-STX6PNSS.js deleted file mode 100644 index 7c80282d..00000000 --- a/dist/main-STX6PNSS.js +++ /dev/null @@ -1,29 +0,0 @@ -import{a as nd,b as Ne,c as sd,d as rd,e as id,f as pd,g as Kl,i as fd}from"./chunk-OSN3TXTQ.js";import{a as pn}from"./chunk-V6EVLSKF.js";import{b as ld,d as hd,f as or}from"./chunk-QJXSIS7E.js";import{a as G,b as dn,c as oi,d as Kn,e as ud,f as Re,h as Zn,k as ir,l as Yl,m as qo}from"./chunk-W7AFIDCE.js";import{a as Fv}from"./chunk-54YLOEMX.js";import{a as Xp}from"./chunk-SOHBG2MK.js";import{a as sr}from"./chunk-KPBGF7I6.js";import{a as dd}from"./chunk-KV6ZMG7B.js";import{a as ai}from"./chunk-EB65ROO7.js";import{b as cd}from"./chunk-ZV53A5KR.js";import{a as Vo}from"./chunk-EAEBZZLM.js";import"./chunk-FG7UA2MK.js";import{a as rr}from"./chunk-RNWIIYZZ.js";import{a as Tt}from"./chunk-SUAWKU6Z.js";import{a as od,b as ad}from"./chunk-6BTXKMB7.js";import{a as Yp,c as $o,d as Xn,e as Yn,f as Kp,g as Zp,h as Jp,i as ed,j as hn,k as td}from"./chunk-YBN4SQR6.js";import{A as Gp,B as Xl,C as Qp,D as Ro,E as Qn,F as _e,G as tr,H as At,I as nr,J as cn,K as dt,L as un,b as Lp,c as Bo,d as Js,g as er,i as Fp,j as Bp,k as Oo,l as Op,m as Rp,n as $p,o as Vp,p as qp,q as ii,s as Up,t as Hp,u as an,v as jp,w as ln,x as Wp,y as zp,z as Ql}from"./chunk-CKPIETEW.js";import{$a as D,$b as Tn,A as dp,Ab as rn,Ac as Gl,B as fp,Ba as sn,Bb as zt,Bc as Fo,Cb as Gt,Da as si,Db as B,Dc as Mp,Eb as O,F as Ao,Fb as me,Ha as _p,Ia as Wl,Ib as Do,Jb as Ce,K as To,Lc as Oe,Nb as ee,Ob as ne,Q as mp,R as gp,Rb as ri,T as vp,Tb as ut,U as J,Ub as ht,Vb as pt,W as wp,Wb as No,X as nn,Xb as ge,Yb as Qt,Za as ko,Zb as on,_b as An,aa as Ze,ab as M,ac as kn,bc as Ip,c as up,cc as De,db as Ap,ea as yp,eb as Io,fa as Pe,fb as Tp,gb as kp,ha as Ep,hc as ye,ic as Ee,k as hp,ka as Sp,lc as Pp,m as pp,pa as bp,qa as ce,r as xo,ra as ue,rb as we,s as Co,tb as te,tc as Dp,ua as xp,ub as Po,vb as Je,wa as Cp,wb as zl,wc as Mo,xc as Lo,y as _o,yb as pe,yc as Np}from"./chunk-ZKAUCJHV.js";import{a as E,b as xe,c as cp,e as Mv,f as Lv,h as Gn}from"./chunk-DEPBX7UX.js";var md=(()=>{let e=class e{constructor(s){this.el=s}onReturnPressed(s){s.preventDefault();let r=document.getElementById(this.el.nativeElement.attributes.dswFocusNext.value);r&&r.focus()}};e.\u0275fac=function(r){return new(r||e)(M(sn))},e.\u0275dir=Ep({type:e,selectors:[["","dswFocusNext",""]],hostBindings:function(r,i){r&1&&ee("keydown.enter",function(a){return i.onReturnPressed(a)})},standalone:!0});let n=e;return n})();var T_=Lv(Fv());var xh={};Mv(xh,{JitCompilerFactory:()=>Sl,VERSION:()=>x_,platformBrowserDynamic:()=>C_,\u0275INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:()=>Vg,\u0275platformCoreDynamic:()=>$g});var gd=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),xr=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 ss=function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n}(ss||{}),Ku=function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n}(Ku||{}),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 Bv(n){let e=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...e]}function Ov(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=Bv(n),t=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(s=>Ov(s)):[];return e.concat(...t)}function Zu(n){return n?xr.parse(n).map(Rv):[]}var Ko;function $v(n){return Hv(Uv(n.nodes).join("")+`[${n.meaning}]`)}function Vv(n){return n.id||um(n)}function um(n){let e=new bc,t=n.nodes.map(s=>s.visit(e,null));return hm(t.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(", ")}`}},qv=new Zo;function Uv(n){return n.map(e=>e.visit(qv,null))}var bc=class extends Zo{visitIcu(e,t){let s=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.type}, ${s.join(", ")}}`}};function Hv(n){Ko??=new TextEncoder;let e=[...Ko.encode(n)],t=zv(e,Ju.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 jv(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 Ju=function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n}(Ju||{});function ar(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 Zl(n,e){return n<>>32-e}function zv(n,e){let t=n.length+3>>>2,s=[];for(let r=0;r=n.length?0:n[e]}function Gv(n,e,t){let s=0;if(t===Ju.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}},jn=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}(jn||{}),yn=class extends Jo{constructor(e,t){super(t),this.name=e}visitType(e,t){return e.visitBuiltinType(this,t)}},Rt=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 yn(jn.Dynamic),Bt=new yn(jn.Inferred),Qv=new yn(jn.Bool),VA=new yn(jn.Int),eh=new yn(jn.Number),dm=new yn(jn.String),qA=new yn(jn.Function),En=new yn(jn.None),_i=function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n}(_i||{}),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 Xv(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 Rn(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(ew,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)}},Cr=class n extends re{constructor(e,t,s){super(t,s),this.expr=e}visitExpression(e,t){return e.visitTypeofExpr(this,t)}isEquivalent(e){return e instanceof n&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},j=class n extends re{constructor(e,t,s){super(t,s),this.node=e}isEquivalent(e){return e instanceof n&&this.node===e.node}isConstant(){return!1}visitExpression(e,t){return e.visitWrappedNodeExpr(this,t)}clone(){return new n(this.node,this.type,this.sourceSpan)}},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,Ue.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)}},_r=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)}},xc=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()))}},Cc=class n{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.rawText=s??t?.toString()??_c(Qo(e))}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Is=class{constructor(e,t){this.text=e,this.sourceSpan=t}},Er=class{constructor(e,t,s){this.text=e,this.sourceSpan=t,this.associatedMessage=s}},Yv="|",xd="@@",Kv="\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}${Yv}${e}`),this.metaBlock.customId&&(e=`${e}${xd}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(t=>{e=`${e}${Kv}${t}`}),Cd(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+=`${xd}${hm(t.associatedMessage.messageString,t.associatedMessage.meaning)}`),Cd(r,s.text,this.getMessagePartSourceSpan(e))}},Qo=n=>n.replace(/\\/g,"\\\\"),Zv=n=>n.replace(/^:/,"\\:"),Jv=n=>n.replace(/:/g,"\\:"),_c=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function Cd(n,e,t){return n===""?{cooked:e,raw:_c(Zv(Qo(e))),range:t}:{cooked:`:${n}:${e}`,raw:_c(`:${Jv(Qo(n))}:${Qo(e)}`),range:t}}var Fs=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 Rn=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)&&Xv(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(Qv,t),this.condition=e}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)}isConstant(){return!1}visitExpression(e,t){return e.visitNotExpr(this,t)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},Fe=class n{constructor(e,t=null){this.name=e,this.type=t}isEquivalent(e){return this.name===e.name}clone(){return new n(this.name,this.type)}},Ln=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 Pi)&&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 Pi(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)}},Bs=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)}},Ar=class n extends re{constructor(e,t,s,r,i=!0){super(s||eh,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 _r(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)}},Tr=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),ew=new je(null,Bt,null),Ue=function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n}(Ue||{}),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 iw(this.tags)}},Os=class{constructor(e=Ue.None,t=null,s){this.modifiers=e,this.sourceSpan=t,this.leadingComments=s}hasModifier(e){return(this.modifiers&e)!==0}addLeadingComment(e){this.leadingComments=this.leadingComments??[],this.leadingComments.push(e)}},Xe=class n extends Os{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)}},Pi=class n extends Os{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 Os{constructor(e,t,s){super(Ue.None,t,s),this.expr=e}isEquivalent(e){return e instanceof n&&this.expr.isEquivalent(e.expr)}visitStatement(e,t){return e.visitExpressionStmt(this,t)}},ot=class n extends Os{constructor(e,t=null,s){super(Ue.None,t,s),this.value=e}isEquivalent(e){return e instanceof n&&this.value.isEquivalent(e.value)}visitStatement(e,t){return e.visitReturnStmt(this,t)}},ra=class n extends Os{constructor(e,t,s=[],r,i){super(Ue.None,r,i),this.condition=e,this.trueCase=t,this.falseCase=s}isEquivalent(e){return e instanceof n&&this.condition.isEquivalent(e.condition)&&yt(this.trueCase,e.trueCase)&&yt(this.falseCase,e.falseCase)}visitStatement(e,t){return e.visitIfStmt(this,t)}};function tw(n=[]){return new sa(n)}function H(n,e,t){return new Vt(n,e,t)}function T(n,e=null,t){return new Fs(n,null,e,t)}function He(n,e,t){return new Rt(n,e,t)}function hl(n){return new Cr(n)}function se(n,e,t){return new qt(n,e,t)}function st(n,e=null){return new Yt(n.map(t=>new Tr(t.key,t.value,t.quoted)),e,null)}function nw(n,e){return new ki(n,e)}function zr(n,e,t,s,r){return new Ln(n,e,t,s,r)}function Sn(n,e,t,s){return new Bs(n,e,t,s)}function pl(n,e,t,s,r){return new ra(n,e,t,s,r)}function sw(n,e,t,s){return new ta(n,e,t,s)}function v(n,e,t){return new je(n,e,t)}function rw(n,e,t,s,r){return new na(n,e,t,s,r)}function _d(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 iw(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${_d(n[0])} `;let e=`* -`;for(let t of n)e+=" *",e+=_d(t).replace(/\n/g,` - * `),e+=` -`;return e+=" ",e}var ow="_c",Ad=H(""),aw={},lw=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===aw?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=Sr.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 Ln([],[new ot(e)])),l=H(o).callFn([])):(a=H(o).set(e),l=H(o)),this.statements.push(a.toDeclStmt(Bt,Ue.Final)),r.fixup(l)}return r}getSharedConstant(e,t){let s=e.keyOf(t);if(!this.sharedConstants.has(s)){let r=this.freshName();this.sharedConstants.set(s,H(r)),this.statements.push(e.toSharedConstantDeclaration(r,t))}return this.sharedConstants.get(s)}getLiteralFactory(e){if(e instanceof qt){let t=e.entries.map(r=>r.isConstant()?r:Ad),s=Sr.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=Sr.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 Bs;for(let o of this.statements)if(r&&o instanceof Xe&&o.value?.isEquivalent(e)||!r&&o instanceof Pi&&e instanceof Ln&&e.isEquivalent(o))return H(o.name);let i=s?this.uniqueName(t):t;return this.statements.push(e instanceof Ln?e.toDeclStmt(i,Ue.Final):new Xe(i,e,Bt,Ue.Final,e.sourceSpan)),H(i)}_getLiteralFactory(e,t,s){let r=this.literalFactories.get(e),i=t.filter(o=>!o.isConstant());if(!r){let o=t.map((u,p)=>u.isConstant()?this.getConstLiteral(u,!0):H(`a${p}`)),a=o.filter(cw).map(u=>new Fe(u.name,uo)),l=Sn(a,s(o),Bt),c=this.freshName();this.statements.push(H(c).set(l).toDeclStmt(Bt,Ue.Final)),r=H(c),this.literalFactories.set(e,r)}return{literalFactory:r,literalFactoryArguments:i}}uniqueName(e,t=!0){let s=this._claimedNames.get(e)??0,r=s===0&&!t?`${e}`:`${e}${s}`;return this._claimedNames.set(e,s+1),r}freshName(){return this.uniqueName(ow)}},ll=class ll{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 Fs)return`import("${e.value.moduleName}", ${e.value.name})`;if(e instanceof Vt)return`read(${e.name})`;if(e instanceof Cr)return`typeof(${this.keyOf(e.expr)})`;throw new Error(`${this.constructor.name} does not handle expressions of type ${e.constructor.name}`)}}};ll.INSTANCE=new ll;var Sr=ll;function cw(n){return n instanceof Vt}function Td(n){return n instanceof je&&typeof n.value=="string"&&n.value.length>=lw}var m="@angular/core",d=(()=>{let e=class e{};e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.core={name:null,moduleName:m},e.namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:m},e.namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:m},e.namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:m},e.element={name:"\u0275\u0275element",moduleName:m},e.elementStart={name:"\u0275\u0275elementStart",moduleName:m},e.elementEnd={name:"\u0275\u0275elementEnd",moduleName:m},e.advance={name:"\u0275\u0275advance",moduleName:m},e.syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:m},e.syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:m},e.attribute={name:"\u0275\u0275attribute",moduleName:m},e.attributeInterpolate1={name:"\u0275\u0275attributeInterpolate1",moduleName:m},e.attributeInterpolate2={name:"\u0275\u0275attributeInterpolate2",moduleName:m},e.attributeInterpolate3={name:"\u0275\u0275attributeInterpolate3",moduleName:m},e.attributeInterpolate4={name:"\u0275\u0275attributeInterpolate4",moduleName:m},e.attributeInterpolate5={name:"\u0275\u0275attributeInterpolate5",moduleName:m},e.attributeInterpolate6={name:"\u0275\u0275attributeInterpolate6",moduleName:m},e.attributeInterpolate7={name:"\u0275\u0275attributeInterpolate7",moduleName:m},e.attributeInterpolate8={name:"\u0275\u0275attributeInterpolate8",moduleName:m},e.attributeInterpolateV={name:"\u0275\u0275attributeInterpolateV",moduleName:m},e.classProp={name:"\u0275\u0275classProp",moduleName:m},e.elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:m},e.elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:m},e.elementContainer={name:"\u0275\u0275elementContainer",moduleName:m},e.styleMap={name:"\u0275\u0275styleMap",moduleName:m},e.styleMapInterpolate1={name:"\u0275\u0275styleMapInterpolate1",moduleName:m},e.styleMapInterpolate2={name:"\u0275\u0275styleMapInterpolate2",moduleName:m},e.styleMapInterpolate3={name:"\u0275\u0275styleMapInterpolate3",moduleName:m},e.styleMapInterpolate4={name:"\u0275\u0275styleMapInterpolate4",moduleName:m},e.styleMapInterpolate5={name:"\u0275\u0275styleMapInterpolate5",moduleName:m},e.styleMapInterpolate6={name:"\u0275\u0275styleMapInterpolate6",moduleName:m},e.styleMapInterpolate7={name:"\u0275\u0275styleMapInterpolate7",moduleName:m},e.styleMapInterpolate8={name:"\u0275\u0275styleMapInterpolate8",moduleName:m},e.styleMapInterpolateV={name:"\u0275\u0275styleMapInterpolateV",moduleName:m},e.classMap={name:"\u0275\u0275classMap",moduleName:m},e.classMapInterpolate1={name:"\u0275\u0275classMapInterpolate1",moduleName:m},e.classMapInterpolate2={name:"\u0275\u0275classMapInterpolate2",moduleName:m},e.classMapInterpolate3={name:"\u0275\u0275classMapInterpolate3",moduleName:m},e.classMapInterpolate4={name:"\u0275\u0275classMapInterpolate4",moduleName:m},e.classMapInterpolate5={name:"\u0275\u0275classMapInterpolate5",moduleName:m},e.classMapInterpolate6={name:"\u0275\u0275classMapInterpolate6",moduleName:m},e.classMapInterpolate7={name:"\u0275\u0275classMapInterpolate7",moduleName:m},e.classMapInterpolate8={name:"\u0275\u0275classMapInterpolate8",moduleName:m},e.classMapInterpolateV={name:"\u0275\u0275classMapInterpolateV",moduleName:m},e.styleProp={name:"\u0275\u0275styleProp",moduleName:m},e.stylePropInterpolate1={name:"\u0275\u0275stylePropInterpolate1",moduleName:m},e.stylePropInterpolate2={name:"\u0275\u0275stylePropInterpolate2",moduleName:m},e.stylePropInterpolate3={name:"\u0275\u0275stylePropInterpolate3",moduleName:m},e.stylePropInterpolate4={name:"\u0275\u0275stylePropInterpolate4",moduleName:m},e.stylePropInterpolate5={name:"\u0275\u0275stylePropInterpolate5",moduleName:m},e.stylePropInterpolate6={name:"\u0275\u0275stylePropInterpolate6",moduleName:m},e.stylePropInterpolate7={name:"\u0275\u0275stylePropInterpolate7",moduleName:m},e.stylePropInterpolate8={name:"\u0275\u0275stylePropInterpolate8",moduleName:m},e.stylePropInterpolateV={name:"\u0275\u0275stylePropInterpolateV",moduleName:m},e.nextContext={name:"\u0275\u0275nextContext",moduleName:m},e.resetView={name:"\u0275\u0275resetView",moduleName:m},e.templateCreate={name:"\u0275\u0275template",moduleName:m},e.defer={name:"\u0275\u0275defer",moduleName:m},e.deferWhen={name:"\u0275\u0275deferWhen",moduleName:m},e.deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:m},e.deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:m},e.deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:m},e.deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:m},e.deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:m},e.deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:m},e.deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:m},e.deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:m},e.deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:m},e.deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:m},e.deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:m},e.deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:m},e.deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:m},e.deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:m},e.conditional={name:"\u0275\u0275conditional",moduleName:m},e.repeater={name:"\u0275\u0275repeater",moduleName:m},e.repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:m},e.repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:m},e.repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:m},e.componentInstance={name:"\u0275\u0275componentInstance",moduleName:m},e.text={name:"\u0275\u0275text",moduleName:m},e.enableBindings={name:"\u0275\u0275enableBindings",moduleName:m},e.disableBindings={name:"\u0275\u0275disableBindings",moduleName:m},e.getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:m},e.textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:m},e.textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:m},e.textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:m},e.textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:m},e.textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:m},e.textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:m},e.textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:m},e.textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:m},e.textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:m},e.textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:m},e.restoreView={name:"\u0275\u0275restoreView",moduleName:m},e.pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:m},e.pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:m},e.pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:m},e.pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:m},e.pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:m},e.pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:m},e.pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:m},e.pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:m},e.pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:m},e.pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:m},e.pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:m},e.pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:m},e.pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:m},e.pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:m},e.pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:m},e.hostProperty={name:"\u0275\u0275hostProperty",moduleName:m},e.property={name:"\u0275\u0275property",moduleName:m},e.propertyInterpolate={name:"\u0275\u0275propertyInterpolate",moduleName:m},e.propertyInterpolate1={name:"\u0275\u0275propertyInterpolate1",moduleName:m},e.propertyInterpolate2={name:"\u0275\u0275propertyInterpolate2",moduleName:m},e.propertyInterpolate3={name:"\u0275\u0275propertyInterpolate3",moduleName:m},e.propertyInterpolate4={name:"\u0275\u0275propertyInterpolate4",moduleName:m},e.propertyInterpolate5={name:"\u0275\u0275propertyInterpolate5",moduleName:m},e.propertyInterpolate6={name:"\u0275\u0275propertyInterpolate6",moduleName:m},e.propertyInterpolate7={name:"\u0275\u0275propertyInterpolate7",moduleName:m},e.propertyInterpolate8={name:"\u0275\u0275propertyInterpolate8",moduleName:m},e.propertyInterpolateV={name:"\u0275\u0275propertyInterpolateV",moduleName:m},e.i18n={name:"\u0275\u0275i18n",moduleName:m},e.i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:m},e.i18nExp={name:"\u0275\u0275i18nExp",moduleName:m},e.i18nStart={name:"\u0275\u0275i18nStart",moduleName:m},e.i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:m},e.i18nApply={name:"\u0275\u0275i18nApply",moduleName:m},e.i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:m},e.pipe={name:"\u0275\u0275pipe",moduleName:m},e.projection={name:"\u0275\u0275projection",moduleName:m},e.projectionDef={name:"\u0275\u0275projectionDef",moduleName:m},e.reference={name:"\u0275\u0275reference",moduleName:m},e.inject={name:"\u0275\u0275inject",moduleName:m},e.injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:m},e.directiveInject={name:"\u0275\u0275directiveInject",moduleName:m},e.invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:m},e.invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:m},e.templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:m},e.forwardRef={name:"forwardRef",moduleName:m},e.resolveForwardRef={name:"resolveForwardRef",moduleName:m},e.\u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:m},e.declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:m},e.InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:m},e.resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:m},e.resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:m},e.resolveBody={name:"\u0275\u0275resolveBody",moduleName:m},e.getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:m},e.defineComponent={name:"\u0275\u0275defineComponent",moduleName:m},e.declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:m},e.setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:m},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:m},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:m},e.ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:m},e.FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:m},e.declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:m},e.FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:m},e.defineDirective={name:"\u0275\u0275defineDirective",moduleName:m},e.declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:m},e.DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:m},e.InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:m},e.InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:m},e.defineInjector={name:"\u0275\u0275defineInjector",moduleName:m},e.declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:m},e.NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:m},e.ModuleWithProviders={name:"ModuleWithProviders",moduleName:m},e.defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:m},e.declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:m},e.setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:m},e.registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:m},e.PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:m},e.definePipe={name:"\u0275\u0275definePipe",moduleName:m},e.declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:m},e.declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:m},e.declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:m},e.setClassMetadata={name:"\u0275setClassMetadata",moduleName:m},e.setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:m},e.setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:m},e.queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:m},e.viewQuery={name:"\u0275\u0275viewQuery",moduleName:m},e.loadQuery={name:"\u0275\u0275loadQuery",moduleName:m},e.contentQuery={name:"\u0275\u0275contentQuery",moduleName:m},e.viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:m},e.contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:m},e.queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:m},e.twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:m},e.twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:m},e.twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:m},e.declareLet={name:"\u0275\u0275declareLet",moduleName:m},e.storeLet={name:"\u0275\u0275storeLet",moduleName:m},e.readContextLet={name:"\u0275\u0275readContextLet",moduleName:m},e.NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:m},e.InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:m},e.CopyDefinitionFeature={name:"\u0275\u0275CopyDefinitionFeature",moduleName:m},e.StandaloneFeature={name:"\u0275\u0275StandaloneFeature",moduleName:m},e.ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:m},e.HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:m},e.InputTransformsFeatureFeature={name:"\u0275\u0275InputTransformsFeature",moduleName:m},e.listener={name:"\u0275\u0275listener",moduleName:m},e.getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:m},e.sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:m},e.sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:m},e.sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:m},e.sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:m},e.sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:m},e.sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:m},e.trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:m},e.trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:m},e.validateIframeAttribute={name:"\u0275\u0275validateIframeAttribute",moduleName:m},e.InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:m},e.UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:m},e.unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:m};let n=e;return n})(),uw=/-+([a-z0-9])/g;function hw(n){return n.replace(uw,(...e)=>e[1].toUpperCase())}function pw(n,e){return mm(n,":",e)}function dw(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 fw(n){return n===void 0?null:n}function mw(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(` -`);return t===-1?e:e.substring(0,t)}var Tc=class{constructor(e){this.full=e;let t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}},gi=globalThis;var gw=3,vw="# sourceMappingURL=data:application/json;base64,",kc=class{constructor(e=null){this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}addSource(e,t=null){return this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(e,t,s,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(t!=null&&!this.sourcesContent.has(t))throw new Error(`Unknown source file "${t}"`);if(e==null)throw new Error("The column in the generated code must be provided");if(e{e.set(c,u),t.push(c),s.push(this.sourcesContent.get(c)||null)});let r="",i=0,o=0,a=0,l=0;return this.lines.forEach(c=>{i=0,r+=c.map(u=>{let p=Uo(u.col0-i);return i=u.col0,u.sourceUrl!=null&&(p+=Uo(e.get(u.sourceUrl)-o),o=e.get(u.sourceUrl),p+=Uo(u.sourceLine0-a),a=u.sourceLine0,p+=Uo(u.sourceCol0-l),l=u.sourceCol0),p}).join(","),r+=";"}),r=r.slice(0,-1),{file:this.file||"",version:gw,sourceRoot:"",sources:t,sourcesContent:s,mappings:r}}toJsComment(){return this.hasMappings?"//"+vw+ww(JSON.stringify(this,null,0)):""}};function ww(n){let e="",t=mw(n);for(let s=0;s>2),e+=pi((r&3)<<4|(i===null?0:i>>4)),e+=i===null?"=":pi((i&15)<<2|(o===null?0:o>>6)),e+=i===null||o===null?"=":pi(o&63)}return e}function Uo(n){n=n<0?(-n<<1)+1:n<<1;let e="";do{let t=n&31;n=n>>5,n>0&&(t=t|32),e+=pi(t)}while(n>0);return e}var yw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function pi(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return yw[n]}var Ew=/'|\\|\n|\r|\$/g,Sw=/^[$A-Z_][0-9A-Z_$]*$/i,Ic=" ",aa=class{constructor(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]}},Pc=class n{static createRoot(){return new n(0)}constructor(e){this._indent=e,this._lines=[new aa(e)]}get _currentLine(){return this._lines[this._lines.length-1]}println(e,t=""){this.print(e||null,t,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*Ic.length+this._currentLine.partsLength}print(e,t,s=!1){t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),s&&this._lines.push(new aa(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(e=>e.parts.length>0?kd(e.indent)+e.parts.join(""):"").join(` -`)}toSourceMapGenerator(e,t=0){let s=new kc(e),r=!1,i=()=>{r||(s.addSource(e," ").addMapping(0,e,0,0),r=!0)};for(let o=0;o{s.addLine();let l=o.srcSpans,c=o.parts,u=o.indent*Ic.length,p=0;for(;pr)return s.srcSpans[i];r-=o.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},Dc=class{constructor(e){this._escapeDollarInStrings=e}printLeadingComments(e,t){if(e.leadingComments!==void 0)for(let s of e.leadingComments)s instanceof sa?t.print(e,`/*${s.toString()}*/`,s.trailingNewline):s.multiline?t.print(e,`/* ${s.text} */`,s.trailingNewline):s.text.split(` -`).forEach(r=>{t.println(e,`// ${r}`)})}visitExpressionStmt(e,t){return this.printLeadingComments(e,t),e.expr.visitExpression(this,t),t.println(e,";"),null}visitReturnStmt(e,t){return this.printLeadingComments(e,t),t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null}visitIfStmt(e,t){this.printLeadingComments(e,t),t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");let s=e.falseCase!=null&&e.falseCase.length>0;return e.trueCase.length<=1&&!s?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),s&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null}visitWriteVarExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),t.print(e,`${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWriteKeyExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitWritePropExpr(e,t){let s=t.lineIsEmpty();return s||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,`.${e.name} = `),e.value.visitExpression(this,t),s||t.print(e,")"),null}visitInvokeFunctionExpr(e,t){let s=e.fn instanceof Bs;return s&&t.print(e.fn,"("),e.fn.visitExpression(this,t),s&&t.print(e.fn,")"),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null}visitTaggedTemplateExpr(e,t){e.tag.visitExpression(this,t),t.print(e,"`"+e.template.elements[0].rawText);for(let s=1;s{t.print(e,`${_s(s.key,this._escapeDollarInStrings,s.quoted)}:`),s.value.visitExpression(this,t)},e.entries,t,","),t.print(e,"}"),null}visitCommaExpr(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null}visitAllExpressions(e,t,s){this.visitAllObjects(r=>r.visitExpression(this,t),e,t,s)}visitAllObjects(e,t,s,r){let i=!1;for(let o=0;o0&&(s.lineLength()>80?(s.print(null,r,!0),i||(s.incIndent(),s.incIndent(),i=!0)):s.print(null,r,!1)),e(t[o]);i&&(s.decIndent(),s.decIndent())}visitAllStatements(e,t){e.forEach(s=>s.visitStatement(this,t))}};function _s(n,e,t=!0){if(n==null)return null;let s=n.replace(Ew,(...i)=>i[0]=="$"?e?"\\$":"$":i[0]==` -`?"\\n":i[0]=="\r"?"\\r":`\\${i[0]}`);return t||!Sw.test(s)?`'${s}'`:s}function kd(n){let e="";for(let t=0;ts.value));return e?Sn([],t):t}function th(n,e){return{expression:n,forwardRef:e}}function _w({expression:n,forwardRef:e}){switch(e){case 0:case 1:return n;case 2:return Aw(n)}}function Aw(n){return T(d.forwardRef).callFn([Sn([],n)])}var la=function(n){return n[n.Class=0]="Class",n[n.Function=1]="Function",n}(la||{}),In=function(n){return n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule",n}(In||{});function xs(n){let e=H("t"),t=null,s=Pd(n)?e:new Q(A.Or,e,n.type.value),r=null;n.deps!==null?n.deps!=="invalid"&&(r=new Ti(s,Id(n.deps,n.target))):(t=H(`\u0275${n.name}_BaseFactory`),r=t.callFn([s]));let i=[],o=null;function a(c){let u=H("r");i.push(u.set(Ii).toDeclStmt());let p=r!==null?u.set(r).toStmt():T(d.invalidFactory).callFn([]).toStmt();return i.push(pl(e,[p],[u.set(c).toStmt()])),u}if(Pd(n)){let c=Id(n.delegateDeps,n.target),u=new(n.delegateType===la.Class?Ti:nt)(n.delegate,c);o=a(u)}else Dw(n)?o=a(n.expression):o=r;if(o===null)i.push(T(d.invalidFactory).callFn([]).toStmt());else if(t!==null){let c=T(d.getInheritedFactory).callFn([n.type.value]),u=new Q(A.Or,t,t.set(c));i.push(new ot(u.callFn([s])))}else i.push(new ot(o));let l=zr([new Fe("t",uo)],i,Bt,void 0,`${n.name}_Factory`);return t!==null&&(l=Sn([],[new Xe(t.name),new ot(l)]).callFn([],void 0,!0)),{expression:l,statements:[],type:Tw(n)}}function Tw(n){let e=n.deps!==null&&n.deps!=="invalid"?Iw(n.deps):En;return He(T(d.FactoryDeclaration,[dl(n.type.type,n.typeArgumentCount),e]))}function Id(n,e){return n.map((t,s)=>kw(t,e,s))}function kw(n,e,t){if(n.token===null)return T(d.invalidFactoryDep).callFn([v(t)]);if(n.attributeNameType===null){let s=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(e===In.Pipe?16:0),r=s!==0||n.optional?v(s):null,i=[n.token];r&&i.push(r);let o=Nw(e);return T(o).callFn(i)}else return T(d.injectAttribute).callFn([n.token])}function Iw(n){let e=!1,t=n.map(s=>{let r=Pw(s);return r!==null?(e=!0,r):v(null)});return e?He(se(t)):En}function Pw(n){let e=[];return n.attributeNameType!==null&&e.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&e.push({key:"optional",value:v(!0),quoted:!1}),n.host&&e.push({key:"host",value:v(!0),quoted:!1}),n.self&&e.push({key:"self",value:v(!0),quoted:!1}),n.skipSelf&&e.push({key:"skipSelf",value:v(!0),quoted:!1}),e.length>0?st(e):null}function Pd(n){return n.delegateType!==void 0}function Dw(n){return n.expression!==void 0}function Nw(n){switch(n){case In.Component:case In.Directive:case In.Pipe:return d.directiveInject;case In.NgModule:case In.Injectable:default:return d.inject}}var Di=class{constructor(e,t,s,r){this.input=t,this.errLocation=s,this.ctxLocation=r,this.message=`Parser Error: ${e} ${s} [${t}] in ${r}`}},Rs=class{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new gt(e+this.start,e+this.end)}},ve=class{constructor(e,t){this.span=e,this.sourceSpan=t}toString(){return"AST"}},kr=class extends ve{constructor(e,t,s){super(e,t),this.nameSpan=s}},et=class extends ve{visit(e,t=null){}},Fn=class extends ve{visit(e,t=null){return e.visitImplicitReceiver(this,t)}},Ps=class extends Fn{visit(e,t=null){return e.visitThisReceiver?.(this,t)}},Ir=class extends ve{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitChain(this,t)}},Ni=class extends ve{constructor(e,t,s,r,i){super(e,t),this.condition=s,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}},$s=class extends kr{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitPropertyRead(this,t)}},ca=class extends kr{constructor(e,t,s,r,i,o){super(e,t,s),this.receiver=r,this.name=i,this.value=o}visit(e,t=null){return e.visitPropertyWrite(this,t)}},ua=class extends kr{constructor(e,t,s,r,i){super(e,t,s),this.receiver=r,this.name=i}visit(e,t=null){return e.visitSafePropertyRead(this,t)}},Pr=class extends ve{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}},ha=class extends ve{constructor(e,t,s,r){super(e,t),this.receiver=s,this.key=r}visit(e,t=null){return e.visitSafeKeyedRead(this,t)}},pa=class extends ve{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}},da=class extends kr{constructor(e,t,s,r,i,o){super(e,t,o),this.exp=s,this.name=r,this.args=i}visit(e,t=null){return e.visitPipe(this,t)}},Dt=class extends ve{constructor(e,t,s){super(e,t),this.value=s}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}},fa=class extends ve{constructor(e,t,s){super(e,t),this.expressions=s}visit(e,t=null){return e.visitLiteralArray(this,t)}},ma=class extends ve{constructor(e,t,s,r){super(e,t),this.keys=s,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}},Vs=class extends ve{constructor(e,t,s,r){super(e,t),this.strings=s,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}},Pt=class extends ve{constructor(e,t,s,r,i){super(e,t),this.operation=s,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}},Mi=class n extends Pt{static createMinus(e,t,s){return new n(e,t,"-",s,"-",new Dt(e,t,0),s)}static createPlus(e,t,s){return new n(e,t,"+",s,"-",s,new Dt(e,t,0))}constructor(e,t,s,r,i,o,a){super(e,t,i,o,a),this.operator=s,this.expr=r,this.left=null,this.right=null,this.operation=null}visit(e,t=null){return e.visitUnary!==void 0?e.visitUnary(this,t):e.visitBinary(this,t)}},Li=class extends ve{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitPrefixNot(this,t)}},Fi=class extends ve{constructor(e,t,s){super(e,t),this.expression=s}visit(e,t=null){return e.visitNonNullAssert(this,t)}},ga=class extends ve{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitCall(this,t)}},va=class extends ve{constructor(e,t,s,r,i){super(e,t),this.receiver=s,this.args=r,this.argumentSpan=i}visit(e,t=null){return e.visitSafeCall(this,t)}},gt=class{constructor(e,t){this.start=e,this.end=t}},Mt=class extends ve{constructor(e,t,s,r,i){super(new Rs(0,t===null?0:t.length),new gt(r,t===null?r:r+t.length)),this.ast=e,this.source=t,this.location=s,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return`${this.source} in ${this.location}`}},Bi=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},Nc=class{constructor(e,t,s){this.sourceSpan=e,this.key=t,this.value=s}},wa=class{visit(e,t){e.visit(this,t)}visitUnary(e,t){this.visit(e.expr,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitThisReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.receiver,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeKeyedRead(e,t){this.visit(e.receiver,t),this.visit(e.key,t)}visitCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitSafeCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitAll(e,t){for(let s of e)this.visit(s,t)}};var vi=class{constructor(e,t,s,r,i,o){this.name=e,this.expression=t,this.type=s,this.sourceSpan=r,this.keySpan=i,this.valueSpan=o,this.isLiteral=this.type===rs.LITERAL_ATTR,this.isAnimation=this.type===rs.ANIMATION}},rs=function(n){return n[n.DEFAULT=0]="DEFAULT",n[n.LITERAL_ATTR=1]="LITERAL_ATTR",n[n.ANIMATION=2]="ANIMATION",n[n.TWO_WAY=3]="TWO_WAY",n}(rs||{}),$t=function(n){return n[n.Regular=0]="Regular",n[n.Animation=1]="Animation",n[n.TwoWay=2]="TwoWay",n}($t||{}),ya=class{constructor(e,t,s,r,i,o,a){this.name=e,this.targetOrPhase=t,this.type=s,this.handler=r,this.sourceSpan=i,this.handlerSpan=o,this.keySpan=a}},Mc=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}},ae=function(n){return n[n.Property=0]="Property",n[n.Attribute=1]="Attribute",n[n.Class=2]="Class",n[n.Style=3]="Style",n[n.Animation=4]="Animation",n[n.TwoWay=5]="TwoWay",n}(ae||{}),Ea=class{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l}},mn=function(n){return n[n.RAW_TEXT=0]="RAW_TEXT",n[n.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",n[n.PARSABLE_DATA=2]="PARSABLE_DATA",n}(mn||{});function Kt(n,e=!0){if(n[0]!=":")return[null,n];let t=n.indexOf(":",1);if(t===-1){if(e)throw new Error(`Unsupported format "${n}" expecting ":namespace:name"`);return[null,n]}return[n.slice(1,t),n.slice(t+1)]}function Dd(n){return Kt(n)[1]==="ng-container"}function Lc(n){return Kt(n)[1]==="ng-content"}function Mw(n){return Kt(n)[1]==="ng-template"}function Fc(n){return n===null?null:Kt(n)[0]}function Bc(n,e){return n?`:${n}:${e}`:e}var Dr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){throw new Error("visit() not implemented for Comment")}},Nn=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e){return e.visitText(this)}},Nr=class{constructor(e,t,s){this.value=e,this.sourceSpan=t,this.i18n=s}visit(e){return e.visitBoundText(this)}},Mr=class{constructor(e,t,s,r,i,o){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i,this.i18n=o}visit(e){return e.visitTextAttribute(this)}},Oc=class n{constructor(e,t,s,r,i,o,a,l,c){this.name=e,this.type=t,this.securityContext=s,this.value=r,this.unit=i,this.sourceSpan=o,this.keySpan=a,this.valueSpan=l,this.i18n=c}static fromBoundElementProperty(e,t){if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound attributes but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.securityContext,e.value,e.unit,e.sourceSpan,e.keySpan,e.valueSpan,t)}visit(e){return e.visitBoundAttribute(this)}},Rc=class n{constructor(e,t,s,r,i,o,a,l){this.name=e,this.type=t,this.handler=s,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=a,this.keySpan=l}static fromParsedEvent(e){let t=e.type===$t.Regular?e.targetOrPhase:null,s=e.type===$t.Animation?e.targetOrPhase:null;if(e.keySpan===void 0)throw new Error(`Unexpected state: keySpan must be defined for bound event but was not for ${e.name}: ${e.sourceSpan}`);return new n(e.name,e.type,e.handler,t,s,e.sourceSpan,e.handlerSpan,e.keySpan)}visit(e){return e.visitBoundEvent(this)}},Ht=class{constructor(e,t,s,r,i,o,a,l,c,u){this.name=e,this.attributes=t,this.inputs=s,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=u}visit(e){return e.visitElement(this)}},Vn=class{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.prefetchSpan=s,this.whenOrOnSourceSpan=r}visit(e){return e.visitDeferredTrigger(this)}},$c=class extends Vn{constructor(e,t,s,r){super(null,t,s,r),this.value=e}},Vc=class extends Vn{},qc=class extends Vn{},Sa=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},Uc=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.delay=e}},ba=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},xa=class extends Vn{constructor(e,t,s,r,i){super(t,s,r,i),this.reference=e}},jt=class{constructor(e,t,s,r){this.nameSpan=e,this.sourceSpan=t,this.startSourceSpan=s,this.endSourceSpan=r}},Oi=class extends jt{constructor(e,t,s,r,i,o,a){super(s,r,i,o),this.children=e,this.minimumTime=t,this.i18n=a}visit(e){return e.visitDeferredBlockPlaceholder(this)}},Ri=class extends jt{constructor(e,t,s,r,i,o,a,l){super(r,i,o,a),this.children=e,this.afterTime=t,this.minimumTime=s,this.i18n=l}visit(e){return e.visitDeferredBlockLoading(this)}},$i=class extends jt{constructor(e,t,s,r,i,o){super(t,s,r,i),this.children=e,this.i18n=o}visit(e){return e.visitDeferredBlockError(this)}},qs=class extends jt{constructor(e,t,s,r,i,o,a,l,c,u,p,f){super(a,l,u,p),this.children=e,this.placeholder=r,this.loading=i,this.error=o,this.mainBlockSpan=c,this.i18n=f,this.triggers=t,this.prefetchTriggers=s,this.definedTriggers=Object.keys(t),this.definedPrefetchTriggers=Object.keys(s)}visit(e){return e.visitDeferredBlock(this)}visitAll(e){this.visitTriggers(this.definedTriggers,this.triggers,e),this.visitTriggers(this.definedPrefetchTriggers,this.prefetchTriggers,e),Jl(e,this.children);let t=[this.placeholder,this.loading,this.error].filter(s=>s!==null);Jl(e,t)}visitTriggers(e,t,s){Jl(s,e.map(r=>t[r]))}},Ca=class extends jt{constructor(e,t,s,r,i,o,a){super(a,r,i,o),this.expression=e,this.cases=t,this.unknownBlocks=s}visit(e){return e.visitSwitchBlock(this)}},Vi=class extends jt{constructor(e,t,s,r,i,o,a){super(o,s,r,i),this.expression=e,this.children=t,this.i18n=a}visit(e){return e.visitSwitchBlockCase(this)}},Lr=class extends jt{constructor(e,t,s,r,i,o,a,l,c,u,p,f,g){super(f,l,u,p),this.item=e,this.expression=t,this.trackBy=s,this.trackKeywordSpan=r,this.contextVariables=i,this.children=o,this.empty=a,this.mainBlockSpan=c,this.i18n=g}visit(e){return e.visitForLoopBlock(this)}},qi=class extends jt{constructor(e,t,s,r,i,o){super(i,t,s,r),this.children=e,this.i18n=o}visit(e){return e.visitForLoopBlockEmpty(this)}},_a=class extends jt{constructor(e,t,s,r,i){super(i,t,s,r),this.branches=e}visit(e){return e.visitIfBlock(this)}},Ds=class extends jt{constructor(e,t,s,r,i,o,a,l){super(a,r,i,o),this.expression=e,this.children=t,this.expressionAlias=s,this.i18n=l}visit(e){return e.visitIfBlockBranch(this)}},Aa=class{constructor(e,t,s){this.name=e,this.sourceSpan=t,this.nameSpan=s}visit(e){return e.visitUnknownBlock(this)}},Ui=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e){return e.visitLetDeclaration(this)}},vt=class{constructor(e,t,s,r,i,o,a,l,c,u,p,f){this.tagName=e,this.attributes=t,this.inputs=s,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=a,this.variables=l,this.sourceSpan=c,this.startSourceSpan=u,this.endSourceSpan=p,this.i18n=f}visit(e){return e.visitTemplate(this)}},Fr=class{constructor(e,t,s,r,i){this.selector=e,this.attributes=t,this.children=s,this.sourceSpan=r,this.i18n=i,this.name="ng-content"}visit(e){return e.visitContent(this)}},cs=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitVariable(this)}},Hi=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.keySpan=r,this.valueSpan=i}visit(e){return e.visitReference(this)}},Ta=class{constructor(e,t,s,r){this.vars=e,this.placeholders=t,this.sourceSpan=s,this.i18n=r}visit(e){return e.visitIcu(this)}};function Jl(n,e){let t=[];if(n.visit)for(let s of e)n.visit(s)||s.visit(n);else for(let s of e){let r=s.visit(n);r&&t.push(r)}return t}var tt=class{constructor(e,t,s,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=s,this.meaning=r,this.description=i,this.customId=o,this.legacyIds=[],this.id=this.customId,this.messageString=Lw(this.nodes),e.length?this.sources=[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:this.sources=[]}},fr=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitText(this,t)}},Bn=class{constructor(e,t){this.children=e,this.sourceSpan=t}visit(e,t){return e.visitContainer(this,t)}},ka=class{constructor(e,t,s,r,i){this.expression=e,this.type=t,this.cases=s,this.sourceSpan=r,this.expressionPlaceholder=i}visit(e,t){return e.visitIcu(this,t)}},us=class{constructor(e,t,s,r,i,o,a,l,c){this.tag=e,this.attrs=t,this.startName=s,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a,this.startSourceSpan=l,this.endSourceSpan=c}visit(e,t){return e.visitTagPlaceholder(this,t)}},Ia=class{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitPlaceholder(this,t)}},Br=class{constructor(e,t,s){this.value=e,this.name=t,this.sourceSpan=s}visit(e,t){return e.visitIcuPlaceholder(this,t)}},hs=class{constructor(e,t,s,r,i,o,a,l){this.name=e,this.parameters=t,this.startName=s,this.closeName=r,this.children=i,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=l}visit(e,t){return e.visitBlockPlaceholder(this,t)}};function Lw(n){let e=new Hc;return n.map(s=>s.visit(e)).join("")}var Hc=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(s=>`${s} {${e.cases[s].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}visitTagPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}visitPlaceholder(e){return`{$${e.name}}`}visitIcuPlaceholder(e){return`{$${e.name}}`}visitBlockPlaceholder(e){let t=e.children.map(s=>s.visit(this)).join("");return`{$${e.startName}}${t}{$${e.closeName}}`}};var jc=class{visitTag(e){let t=this._serializeAttributes(e.attrs);if(e.children.length==0)return`<${e.name}${t}/>`;let s=e.children.map(r=>r.visit(this));return`<${e.name}${t}>${s.join("")}`}visitText(e){return e.value}visitDeclaration(e){return``}_serializeAttributes(e){let t=Object.keys(e).map(s=>`${s}="${e[s]}"`).join(" ");return t.length>0?" "+t:""}visitDoctype(e){return``}},UA=new jc;function Fw(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var vm="i18n",Wc="i18n-",Bw="VAR_";function wm(n){return n===vm||n.startsWith(Wc)}function Ow(n){return n.attrs.some(e=>wm(e.name))}function ym(n){return n.nodes[0]}function nh(n={},e){let t={};return n&&Object.keys(n).length&&Object.keys(n).forEach(s=>t[ho(s,e)]=n[s]),t}function ho(n,e=!0){let t=Fw(n);if(!e)return t;let s=t.split("_");if(s.length===1)return n.toLowerCase();let r;/^\d+$/.test(s[s.length-1])&&(r=s.pop());let i=s.shift().toLowerCase();return s.length&&(i+=s.map(o=>o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()).join("")),r?`${i}_${r}`:i}var Rw=/[-.]/,sh="_t",ji="ctx",rh="rf";function Em(n,e){let t=null;return()=>(t||(n(new Xe(sh,void 0,uo)),t=H(e)),t)}function mr(n){return Array.isArray(n)?se(n.map(mr)):v(n,Bt)}function Nd(n,e){let t=Object.getOwnPropertyNames(n);return t.length===0?null:st(t.map(s=>{let r=n[s],i,o,a,l;if(typeof r=="string")i=s,a=s,o=r,l=mr(o);else{a=s,i=r.classPropertyName,o=r.bindingPropertyName;let c=o!==i,u=r.transformFunction!==null,p=hi.None;if(r.isSignal&&(p|=hi.SignalBased),u&&(p|=hi.HasDecoratorInputTransform),e&&(c||u||p!==hi.None)){let f=[v(p),mr(o)];(c||u)&&(f.push(mr(i)),u&&f.push(r.transformFunction)),l=se(f)}else l=mr(o)}return{key:a,quoted:Rw.test(a),value:l}}))}var ps=class{constructor(){this.values=[]}set(e,t){if(t){let s=this.values.find(r=>r.key===e);s?s.value=t:this.values.push({key:e,value:t,quoted:!1})}}toLiteralMap(){return st(this.values)}};function $w(n){let e=n instanceof Ht?n.name:"ng-template",t=Vw(n),s=new xr,r=Kt(e)[1];return s.setElement(r),Object.getOwnPropertyNames(t).forEach(i=>{let o=Kt(i)[1],a=t[i];s.addAttribute(o,a),i.toLowerCase()==="class"&&a.trim().split(/\s+/).forEach(c=>s.addClassName(c))}),s}function Vw(n){let e={};return n instanceof vt&&n.tagName!=="ng-template"?n.templateAttrs.forEach(t=>e[t.name]=""):(n.attributes.forEach(t=>{wm(t.name)||(e[t.name]=t.value)}),n.inputs.forEach(t=>{(t.type===ae.Property||t.type===ae.TwoWay)&&(e[t.name]="")}),n.outputs.forEach(t=>{e[t.name]=""})),e}function Md(n,e){let t=null,s={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:In.Injectable};if(n.useClass!==void 0){let a=n.useClass.expression.isEquivalent(n.type.value),l;n.deps!==void 0&&(l=n.deps),l!==void 0?t=xs(xe(E({},s),{delegate:n.useClass.expression,delegateDeps:l,delegateType:la.Class})):a?t=xs(s):t={statements:[],expression:Ld(n.type.value,n.useClass.expression,e)}}else n.useFactory!==void 0?n.deps!==void 0?t=xs(xe(E({},s),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:la.Function})):t={statements:[],expression:Sn([],n.useFactory.callFn([]))}:n.useValue!==void 0?t=xs(xe(E({},s),{expression:n.useValue.expression})):n.useExisting!==void 0?t=xs(xe(E({},s),{expression:T(d.inject).callFn([n.useExisting.expression])})):t={statements:[],expression:Ld(n.type.value,n.type.value,e)};let r=n.type.value,i=new ps;return i.set("token",r),i.set("factory",t.expression),n.providedIn.expression.value!==null&&i.set("providedIn",_w(n.providedIn)),{expression:T(d.\u0275\u0275defineInjectable).callFn([i.toLiteralMap()],void 0,!0),type:qw(n),statements:t.statements}}function qw(n){return new Rt(T(d.InjectableDeclaration,[dl(n.type.type,n.typeArgumentCount)]))}function Ld(n,e,t){if(n.node===e.node)return e.prop("\u0275fac");if(!t)return Fd(e);let s=T(d.resolveForwardRef).callFn([e]);return Fd(s)}function Fd(n){return Sn([new Fe("t",uo)],n.prop("\u0275fac").callFn([H("t")]))}var Uw=[/@/,/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Hw(n,e){if(e!=null&&!(Array.isArray(e)&&e.length==2))throw new Error(`Expected '${n}' to be an array, [start, end].`);if(e!=null){let t=e[0],s=e[1];Uw.forEach(r=>{if(r.test(t)||r.test(s))throw new Error(`['${t}', '${s}'] contains unusable interpolation symbol.`)})}}var Pa=class n{static fromArray(e){return e?(Hw("interpolation",e),new n(e[0],e[1])):gn}constructor(e,t){this.start=e,this.end=t}},gn=new Pa("{{","}}"),jw=new Set(["switch"]),Ge=0,Ww=8,ih=9,Ns=10,Sm=11,bm=12,oh=13,xm=32,zc=33,Wi=34,Cm=35,_m=36,zw=37,Da=38,zi=39,On=40,Xt=41,Gw=42,Am=43,Ot=44,Na=45,pr=46,Pn=47,is=58,ft=59,gr=60,Ts=61,ns=62,Bd=63,ah=48,Qw=55,Tm=57,Gr=65,Xw=69,Yw=70,Kw=88,fl=90,br=91,wi=92,vr=93,Zw=94,po=95,Us=97,Jw=98,ey=101,lh=102,km=110,Im=114,Pm=116,Dm=117,Nm=118,Mm=120,fo=122,vn=123,Od=124,rt=125,Lm=160;var ec=64,ty=96;function Gi(n){return n>=ih&&n<=xm||n==Lm}function fn(n){return ah<=n&&n<=Tm}function Qi(n){return n>=Us&&n<=fo||n>=Gr&&n<=fl}function ny(n){return n>=Us&&n<=lh||n>=Gr&&n<=Yw||fn(n)}function ch(n){return n===Ns||n===oh}function Rd(n){return ah<=n&&n<=Qw}function yi(n){return n===zi||n===Wi||n===ty}var Xi=class n{constructor(e,t,s,r){this.file=e,this.offset=t,this.line=s,this.col=r}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let t=this.file.content,s=t.length,r=this.offset,i=this.line,o=this.col;for(;r>0&&e<0;)if(r--,e++,t.charCodeAt(r)==Ns){i--;let l=t.substring(0,r-1).lastIndexOf(String.fromCharCode(Ns));o=l>0?r-l:r}else o--;for(;r0;){let a=t.charCodeAt(r);r++,e--,a==Ns?(i++,o=0):o++}return new n(this.file,r,i,o)}getContext(e,t){let s=this.file.content,r=this.offset;if(r!=null){r>s.length-1&&(r=s.length-1);let i=r,o=0,a=0;for(;o0&&(r--,o++,!(s[r]==` -`&&++a==t)););for(o=0,a=0;o]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};function sy(n,e,t){let s=`in ${n} ${e} in ${t}`,r=new Ma("",s);return new $(new Xi(r,-1,-1,-1),new Xi(r,-1,-1,-1))}var ry=0;function iy(n){if(!n||!n.reference)return null;let e=n.reference;if(e.__anonymousType)return e.__anonymousType;if(e.__forward_ref__)return"__forward_ref__";let t=gm(e);return t.indexOf("(")>=0?(t=`anonymous_${ry++}`,e.__anonymousType=t):t=Ei(t),t}function Ei(n){return n.replace(/\W/g,"_")}var $d='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',Gc=class extends Dc{constructor(){super(!1)}visitWrappedNodeExpr(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(e,t){return t.print(e,`var ${e.name}`),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null}visitTaggedTemplateExpr(e,t){let s=e.template.elements;return e.tag.visitExpression(this,t),t.print(e,`(${$d}(`),t.print(e,`[${s.map(r=>_s(r.text,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>_s(r.rawText,!1)).join(", ")}])`),e.template.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}visitFunctionExpr(e,t){return t.print(e,`function${e.name?" "+e.name:""}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null}visitArrowFunctionExpr(e,t){if(t.print(e,"("),this._visitParams(e.params,t),t.print(e,") =>"),Array.isArray(e.body))t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.print(e,"}");else{let s=e.body instanceof Yt;s&&t.print(e,"("),e.body.visitExpression(this,t),s&&t.print(e,")")}return null}visitDeclareFunctionStmt(e,t){return t.print(e,`function ${e.name}(`),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null}visitLocalizedString(e,t){t.print(e,`$localize(${$d}(`);let s=[e.serializeI18nHead()];for(let r=1;r_s(r.cooked,!1)).join(", ")}], `),t.print(e,`[${s.map(r=>_s(r.raw,!1)).join(", ")}])`),e.expressions.forEach(r=>{t.print(e,", "),r.visitExpression(this,t)}),t.print(e,")"),null}_visitParams(e,t){this.visitAllObjects(s=>t.print(null,s.name),e,t,",")}},Ho;function oy(){if(Ho===void 0){let n=gi.trustedTypes;if(Ho=null,n)try{Ho=n.createPolicy("angular#unsafe-jit",{createScript:e=>e})}catch{}}return Ho}function ay(n){return oy()?.createScript(n)||n}function Vd(...n){if(!gi.trustedTypes)return new Function(...n);let e=n.slice(0,-1).join(","),t=n[n.length-1],s=`(function anonymous(${e} -) { ${t} -})`,r=gi.eval(ay(s));return r.bind===void 0?new Function(...n):(r.toString=()=>s,r.bind(gi))}var Qc=class{evaluateStatements(e,t,s,r){let i=new Xc(s),o=Pc.createRoot();return t.length>0&&!ly(t[0])&&(t=[v("use strict").toStmt(),...t]),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)}evaluateCode(e,t,s,r){let i=`"use strict";${t.toSource()} -//# sourceURL=${e}`,o=[],a=[];for(let c in s)a.push(s[c]),o.push(c);if(r){let c=Vd(...o.concat("return null;")).toString(),u=c.slice(0,c.indexOf("return null;")).split(` -`).length-1;i+=` -${t.toSourceMapGenerator(e,u).toJsComment()}`}let l=Vd(...o.concat(i));return this.executeFunction(l,a)}executeFunction(e,t){return e(...t)}},Xc=class extends Gc{constructor(e){super(),this.refResolver=e,this._evalArgNames=[],this._evalArgValues=[],this._evalExportedVars=[]}createReturnStmt(e){new ot(new Yt(this._evalExportedVars.map(s=>new Tr(s,H(s),!1)))).visitStatement(this,e)}getArgs(){let e={};for(let t=0;t0&&e.set("imports",se(n.imports));let t=T(d.defineInjector).callFn([e.toLiteralMap()],void 0,!0),s=cy(n);return{expression:t,type:s,statements:[]}}function cy(n){return new Rt(T(d.InjectorDeclaration,[new Rt(n.type.type)]))}var Yc=class{constructor(e){this.context=e}resolveExternalReference(e){if(e.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${e.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(e.name))throw new Error(`No value provided for @angular/core symbol '${e.name}'.`);return this.context[e.name]}},La=function(n){return n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit",n}(La||{}),ls=function(n){return n[n.Global=0]="Global",n[n.Local=1]="Local",n}(ls||{});function uy(n){let e=[],t=new ps;if(t.set("type",n.type.value),n.kind===ls.Global&&n.bootstrap.length>0&&t.set("bootstrap",As(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===La.Inline)n.declarations.length>0&&t.set("declarations",As(n.declarations,n.containsForwardDecls)),n.imports.length>0&&t.set("imports",As(n.imports,n.containsForwardDecls)),n.exports.length>0&&t.set("exports",As(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===La.SideEffect){let i=dy(n);i!==null&&e.push(i)}n.schemas!==null&&n.schemas.length>0&&t.set("schemas",se(n.schemas.map(i=>i.value))),n.id!==null&&(t.set("id",n.id),e.push(T(d.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));let s=T(d.defineNgModule).callFn([t.toLiteralMap()],void 0,!0),r=py(n);return{expression:s,type:r,statements:e}}function hy(n){let e=new ps;return e.set("type",new j(n.type)),n.bootstrap!==void 0&&e.set("bootstrap",new j(n.bootstrap)),n.declarations!==void 0&&e.set("declarations",new j(n.declarations)),n.imports!==void 0&&e.set("imports",new j(n.imports)),n.exports!==void 0&&e.set("exports",new j(n.exports)),n.schemas!==void 0&&e.set("schemas",new j(n.schemas)),n.id!==void 0&&e.set("id",new j(n.id)),T(d.defineNgModule).callFn([e.toLiteralMap()])}function py(n){if(n.kind===ls.Local)return new Rt(n.type.value);let{type:e,declarations:t,exports:s,imports:r,includeImportTypes:i,publicDeclarationTypes:o}=n;return new Rt(T(d.NgModuleDeclaration,[new Rt(e.type),o===null?tc(t):fy(o),i?tc(r):En,tc(s)]))}function dy(n){let e=new ps;if(n.kind===ls.Global?n.declarations.length>0&&e.set("declarations",As(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&e.set("declarations",n.declarationsExpression),n.kind===ls.Global?n.imports.length>0&&e.set("imports",As(n.imports,n.containsForwardDecls)):n.importsExpression&&e.set("imports",n.importsExpression),n.kind===ls.Global?n.exports.length>0&&e.set("exports",As(n.exports,n.containsForwardDecls)):n.exportsExpression&&e.set("exports",n.exportsExpression),n.kind===ls.Local&&n.bootstrapExpression&&e.set("bootstrap",n.bootstrapExpression),Object.keys(e.values).length===0)return null;let t=new nt(T(d.setNgModuleScope),[n.type.value,e.toLiteralMap()]),s=xw(t),r=new Ln([],[s.toStmt()]);return new nt(r,[]).toStmt()}function tc(n){let e=n.map(t=>hl(t.type));return n.length>0?He(se(e)):En}function fy(n){let e=n.map(t=>hl(t));return n.length>0?He(se(e)):En}function Ud(n){let e=[];e.push({key:"name",value:v(n.pipeName),quoted:!1}),e.push({key:"type",value:n.type.value,quoted:!1}),e.push({key:"pure",value:v(n.pure),quoted:!1}),n.isStandalone&&e.push({key:"standalone",value:v(!0),quoted:!1});let t=T(d.definePipe).callFn([st(e)],void 0,!0),s=my(n);return{expression:t,type:s,statements:[]}}function my(n){return new Rt(T(d.PipeDeclaration,[dl(n.type.type,n.typeArgumentCount),new Rt(new je(n.pipeName)),new Rt(new je(n.isStandalone))]))}var ml=function(n){return n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule",n}(ml||{}),gy=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),vy=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],Kc=class{constructor(){this._animationDeclarationKeyframesRe=/(^|\s+)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g}shimCssText(e,t,s=""){let r=[];e=e.replace(ky,a=>{if(a.match(Iy))r.push(a);else{let l=a.match(Ty);r.push((l?.join("")??"")+` -`)}return ph}),e=this._insertDirectives(e);let i=this._scopeCssText(e,t,s),o=0;return i.replace(Py,()=>r[o++])}_insertDirectives(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)}_scopeKeyframesRelatedCss(e,t){let s=new Set,r=jo(e,i=>this._scopeLocalKeyframeDeclarations(i,t,s));return jo(r,i=>this._scopeAnimationRule(i,t,s))}_scopeLocalKeyframeDeclarations(e,t,s){return xe(E({},e),{selector:e.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(r,i,o,a,l)=>(s.add(zd(a,o)),`${i}${o}${t}_${a}${o}${l}`))})}_scopeAnimationKeyframe(e,t,s){return e.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(r,i,o,a,l)=>(a=`${s.has(zd(a,o))?t+"_":""}${a}`,`${i}${o}${a}${o}${l}`))}_scopeAnimationRule(e,t,s){let r=e.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>o+a.replace(this._animationDeclarationKeyframesRe,(l,c,u="",p,f)=>p?`${c}${this._scopeAnimationKeyframe(`${u}${p}${u}`,t,s)}`:gy.has(f)?l:`${c}${this._scopeAnimationKeyframe(f,t,s)}`));return r=r.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(i,o,a)=>`${o}${a.split(",").map(l=>this._scopeAnimationKeyframe(l,t,s)).join(",")}`),xe(E({},e),{content:r})}_insertPolyfillDirectivesInCssText(e){return e.replace(wy,function(...t){return t[2]+"{"})}_insertPolyfillRulesInCssText(e){return e.replace(yy,(...t)=>{let s=t[0].replace(t[1],"").replace(t[2],"");return t[4]+s})}_scopeCssText(e,t,s){let r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeKeyframesRelatedCss(e,t),e=this._scopeSelectors(e,t,s)),e=e+` -`+r,e.trim()}_extractUnscopedRulesFromCssText(e){let t="",s;for(Hd.lastIndex=0;(s=Hd.exec(e))!==null;){let r=s[0].replace(s[2],"").replace(s[1],s[4]);t+=r+` - -`}return t}_convertColonHost(e){return e.replace(Ey,(t,s,r)=>{if(s){let i=[],o=s.split(",").map(a=>a.trim());for(let a of o){if(!a)break;let l=bs+a.replace(Fa,"")+r;i.push(l)}return i.join(",")}else return bs+r})}_convertColonHostContext(e){return e.replace(Sy,t=>{let s=[[]],r;for(;r=by.exec(t);){let i=(r[1]??"").trim().split(",").map(a=>a.trim()).filter(a=>a!==""),o=s.length;qy(s,i.length);for(let a=0;aVy(i,t)).join(", ")})}_convertShadowDOMSelectors(e){return xy.reduce((t,s)=>t.replace(s," "),e)}_scopeSelectors(e,t,s){return jo(e,r=>{let i=r.selector,o=r.content;return r.selector[0]!=="@"?i=this._scopeSelector(r.selector,t,s):vy.some(a=>r.selector.startsWith(a))?o=this._scopeSelectors(r.content,t,s):(r.selector.startsWith("@font-face")||r.selector.startsWith("@page"))&&(o=this._stripScopingSelectors(r.content)),new Yi(i,o)})}_stripScopingSelectors(e){return jo(e,t=>{let s=t.selector.replace(Wd," ").replace(jd," ");return new Yi(s,t.content)})}_scopeSelector(e,t,s){return e.split(/ ?, ?/).map(r=>r.split(Wd)).map(r=>{let[i,...o]=r;return[(l=>this._selectorNeedsScoping(l,t)?this._applySelectorScope(l,t,s):l)(i),...o].join(" ")}).join(", ")}_selectorNeedsScoping(e,t){return!this._makeScopeMatcher(t).test(e)}_makeScopeMatcher(e){let t=/\[/g,s=/\]/g;return e=e.replace(t,"\\[").replace(s,"\\]"),new RegExp("^("+e+")"+Cy,"m")}_applySimpleSelectorScope(e,t,s){if(wr.lastIndex=0,wr.test(e)){let r=`[${s}]`;return e.replace(jd,(i,o)=>o.replace(/([^:]*)(:*)(.*)/,(a,l,c,u)=>l+r+c+u)).replace(wr,r+" ")}return t+" "+e}_applySelectorScope(e,t,s){let r=/\[is=([^\]]*)\]/g;t=t.replace(r,(y,...b)=>b[0]);let i="["+t+"]",o=y=>{let b=y.trim();if(!b)return y;if(y.includes(bs))b=this._applySimpleSelectorScope(y,t,s);else{let x=y.replace(wr,"");if(x.length>0){let N=x.match(/([^:]*)(:*)(.*)/);N&&(b=N[1]+i+N[2]+N[3])}}return b},a=new Zc(e);e=a.content();let l="",c=0,u,p=/( |>|\+|~(?!=))\s*/g,g=!e.includes(bs);for(;(u=p.exec(e))!==null;){let y=u[1],b=e.slice(c,u.index);if(b.match(/__esc-ph-(\d+)__/)&&e[u.index+1]?.match(/[a-fA-F\d]/))continue;g=g||b.includes(bs);let x=g?o(b):b;l+=`${x} ${y} `,c=p.lastIndex}let w=e.substring(c);return g=g||w.includes(bs),l+=g?o(w):w,a.restore(l)}_insertPolyfillHostInCssText(e){return e.replace(Ay,uh).replace(_y,Fa)}},Zc=class{constructor(e){this.placeholders=[],this.index=0,e=this._escapeRegexMatches(e,/(\[[^\]]*\])/g),e=e.replace(/(\\.)/g,(t,s)=>{let r=`__esc-ph-${this.index}__`;return this.placeholders.push(s),this.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(t,s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,s+i})}restore(e){return e.replace(/__(?:ph|esc-ph)-(\d+)__/g,(t,s)=>this.placeholders[+s])}content(){return this._content}_escapeRegexMatches(e,t){return e.replace(t,(s,r)=>{let i=`__ph-${this.index}__`;return this.placeholders.push(r),this.index++,i})}},wy=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,yy=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Hd=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Fa="-shadowcsshost",uh="-shadowcsscontext",hh="(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ey=new RegExp(Fa+hh,"gim"),Sy=new RegExp(uh+hh,"gim"),by=new RegExp(uh+hh,"im"),bs=Fa+"-no-combinator",jd=/-shadowcsshost-no-combinator([^\s]*)/,xy=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Wd=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Cy="([>\\s~+[.,{:][\\s\\S]*)?$",wr=/-shadowcsshost/gim,_y=/:host/gim,Ay=/:host-context/gim,Ty=/\r?\n/g,ky=/\/\*[\s\S]*?\*\//g,Iy=/\/\*\s*#\s*source(Mapping)?URL=/g,ph="%COMMENT%",Py=new RegExp(ph,"g"),nc="%BLOCK%",Dy=new RegExp(`(\\s*(?:${ph}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),Ny=new Map([["{","}"]]),Fm="%COMMA_IN_PLACEHOLDER%",Bm="%SEMI_IN_PLACEHOLDER%",Om="%COLON_IN_PLACEHOLDER%",My=new RegExp(Fm,"g"),Ly=new RegExp(Bm,"g"),Fy=new RegExp(Om,"g"),Yi=class{constructor(e,t){this.selector=e,this.content=t}};function jo(n,e){let t=Ry(n),s=By(t,Ny,nc),r=0,i=s.escapedString.replace(Dy,(...o)=>{let a=o[2],l="",c=o[4],u="";c&&c.startsWith("{"+nc)&&(l=s.blocks[r++],c=c.substring(nc.length+1),u="{");let p=e(new Yi(a,l));return`${o[1]}${p.selector}${o[3]}${u}${p.content}${c}`});return $y(i)}var Jc=class{constructor(e,t){this.escapedString=e,this.blocks=t}};function By(n,e,t){let s=[],r=[],i=0,o=0,a=-1,l,c;for(let u=0;u0;){let i=r.length,o=n.pop();for(let a=0;as?`${i}${e}`:`${i}${t}${e}, ${i} ${t}${e}`).join(",")}function qy(n,e){let t=n.length;for(let s=1;st.isEquivalent(this.args[s]))}isConstant(){return!1}transformInternalExpressions(e,t){this.body!==null?this.body=_(this.body,e,t|Y.InChildOperation):this.fn!==null&&(this.fn=_(this.fn,e,t));for(let s=0;st.clone()));return e.fn=this.fn?.clone()??null,e.varOffset=this.varOffset,e}};Yd=Xr,Kd=gl;var js=ul,Or=class n extends ie{constructor(e){super(),this.index=e,this.kind=k.PureFunctionParameterExpr}visitExpression(){}isEquivalent(e){return e instanceof n&&e.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new n(this.index)}},Sh=class Sh extends ie{constructor(e,t,s,r){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.kind=k.PipeBinding,this[Zd]=!0,this[Jd]=!0,this.varOffset=null}visitExpression(e,t){for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){for(let s=0;st.clone()));return e.varOffset=this.varOffset,e}};Zd=Xr,Jd=gl;var Ws=Sh,bh=class bh extends ie{constructor(e,t,s,r,i){super(),this.target=e,this.targetSlot=t,this.name=s,this.args=r,this.numArgs=i,this.kind=k.PipeBindingVariadic,this[ef]=!0,this[tf]=!0,this.varOffset=null}visitExpression(e,t){this.args.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.args=_(this.args,e,t)}clone(){let e=new bh(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return e.varOffset=this.varOffset,e}};ef=Xr,tf=gl;var Ua=bh,Rr=class n extends ie{constructor(e,t){super(),this.receiver=e,this.name=t,this.kind=k.SafePropertyRead}get index(){return this.name}visitExpression(e,t){this.receiver.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=_(this.receiver,e,t)}clone(){return new n(this.receiver.clone(),this.name)}},$r=class n extends ie{constructor(e,t,s){super(s),this.receiver=e,this.index=t,this.kind=k.SafeKeyedRead}visitExpression(e,t){this.receiver.visitExpression(e,t),this.index.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=_(this.receiver,e,t),this.index=_(this.index,e,t)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},fs=class n extends ie{constructor(e,t){super(),this.receiver=e,this.args=t,this.kind=k.SafeInvokeFunction}visitExpression(e,t){this.receiver.visitExpression(e,t);for(let s of this.args)s.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.receiver=_(this.receiver,e,t);for(let s=0;se.clone()))}},Vr=class n extends ie{constructor(e,t){super(),this.guard=e,this.expr=t,this.kind=k.SafeTernaryExpr}visitExpression(e,t){this.guard.visitExpression(e,t),this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.guard=_(this.guard,e,t),this.expr=_(this.expr,e,t)}clone(){return new n(this.guard.clone(),this.expr.clone())}},eo=class n extends ie{constructor(){super(...arguments),this.kind=k.EmptyExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n}isConstant(){return!0}clone(){return new n}transformInternalExpressions(){}},Zt=class n extends ie{constructor(e,t){super(),this.expr=e,this.xref=t,this.kind=k.AssignTemporaryExpr,this.name=null}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(e,t){this.expr=_(this.expr,e,t)}clone(){let e=new n(this.expr.clone(),this.xref);return e.name=this.name,e}},Un=class n extends ie{constructor(e){super(),this.xref=e,this.kind=k.ReadTemporaryExpr,this.name=null}visitExpression(e,t){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(e,t){}clone(){let e=new n(this.xref);return e.name=this.name,e}},Ha=class n extends ie{constructor(e){super(),this.slot=e,this.kind=k.SlotLiteralExpr}visitExpression(e,t){}isEquivalent(e){return e instanceof n&&e.slot===this.slot}isConstant(){return!0}clone(){return new n(this.slot)}transformInternalExpressions(){}},ja=class n extends ie{constructor(e,t,s,r=null){super(),this.expr=e,this.target=t,this.targetSlot=s,this.alias=r,this.kind=k.ConditionalCase}visitExpression(e,t){this.expr!==null&&this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n&&e.expr===this.expr}isConstant(){return!0}clone(){return new n(this.expr,this.target,this.targetSlot)}transformInternalExpressions(e,t){this.expr!==null&&(this.expr=_(this.expr,e,t))}},to=class n extends ie{constructor(e){super(),this.expr=e,this.kind=k.ConstCollected}transformInternalExpressions(e,t){this.expr=e(this.expr,t)}visitExpression(e,t){this.expr.visitExpression(e,t)}isEquivalent(e){return e instanceof n?this.expr.isEquivalent(e.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr)}};function Ye(n,e){ke(n,(t,s)=>(e(t,s),t),Y.None)}var Y=function(n){return n[n.None=0]="None",n[n.InChildOperation=1]="InChildOperation",n}(Y||{});function rc(n,e,t){for(let s=0;s_(s,e,t));else if(n instanceof Bs)if(Array.isArray(n.body))for(let s=0;s{let e=class e{constructor(){this.debugListId=e.nextListId++,this.head={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.tail={kind:h.ListEnd,next:null,prev:null,debugListId:this.debugListId},this.head.next=this.tail,this.tail.prev=this.head}push(s){if(Array.isArray(s)){for(let i of s)this.push(i);return}e.assertIsNotEnd(s),e.assertIsUnowned(s),s.debugListId=this.debugListId;let r=this.tail.prev;s.prev=r,r.next=s,s.next=this.tail,this.tail.prev=s}prepend(s){if(s.length===0)return;for(let o of s)e.assertIsNotEnd(o),e.assertIsUnowned(o),o.debugListId=this.debugListId;let r=this.head.next,i=this.head;for(let o of s)i.next=o,o.prev=i,i=o;i.next=r,r.prev=i}*[Symbol.iterator](){let s=this.head.next;for(;s!==this.tail;){e.assertIsOwned(s,this.debugListId);let r=s.next;yield s,s=r}}*reversed(){let s=this.tail.prev;for(;s!==this.head;){e.assertIsOwned(s,this.debugListId);let r=s.prev;yield s,s=r}}static replace(s,r){e.assertIsNotEnd(s),e.assertIsNotEnd(r),e.assertIsOwned(s),e.assertIsUnowned(r),r.debugListId=s.debugListId,s.prev!==null&&(s.prev.next=r,r.prev=s.prev),s.next!==null&&(s.next.prev=r,r.next=s.next),s.debugListId=null,s.prev=null,s.next=null}static replaceWithMany(s,r){if(r.length===0){e.remove(s);return}e.assertIsNotEnd(s),e.assertIsOwned(s);let i=s.debugListId;s.debugListId=null;for(let p of r)e.assertIsNotEnd(p),e.assertIsUnowned(p);let{prev:o,next:a}=s;s.prev=null,s.next=null;let l=o;for(let p of r)this.assertIsUnowned(p),p.debugListId=i,l.next=p,p.prev=l,p.next=null,l=p;let c=r[0],u=l;o!==null&&(o.next=c,c.prev=o),a!==null&&(a.prev=u,u.next=a)}static remove(s){e.assertIsNotEnd(s),e.assertIsOwned(s),s.prev.next=s.next,s.next.prev=s.prev,s.debugListId=null,s.prev=null,s.next=null}static insertBefore(s,r){if(Array.isArray(s)){for(let i of s)this.insertBefore(i,r);return}if(e.assertIsOwned(r),r.prev===null)throw new Error("AssertionError: illegal operation on list start");e.assertIsNotEnd(s),e.assertIsUnowned(s),s.debugListId=r.debugListId,s.prev=null,r.prev.next=s,s.prev=r.prev,s.next=r,r.prev=s}static insertAfter(s,r){if(e.assertIsOwned(r),r.next===null)throw new Error("AssertionError: illegal operation on list end");e.assertIsNotEnd(s),e.assertIsUnowned(s),s.debugListId=r.debugListId,r.next.prev=s,s.next=r.next,s.prev=r,r.next=s}static assertIsUnowned(s){if(s.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${h[s.kind]}`)}static assertIsOwned(s,r){if(s.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${h[s.kind]}`);if(r!==void 0&&s.debugListId!==r)throw new Error(`AssertionError: node belongs to the wrong list (expected ${r}, actual ${s.debugListId})`)}static assertIsNotEnd(s){if(s.kind===h.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}};e.nextListId=0;let n=e;return n})(),at=class{constructor(){this.slot=null}},tE=new Set([h.Element,h.ElementStart,h.Container,h.ContainerStart,h.Template,h.RepeaterCreate]);function ms(n){return tE.has(n.kind)}function nE(n,e,t,s,r,i){return E(E({kind:h.ElementStart,xref:e,tag:n,handle:new at,attributes:null,localRefs:[],nonBindable:!1,namespace:t,i18nPlaceholder:s,startSourceSpan:r,wholeSourceSpan:i},Cn),q)}function vl(n,e,t,s,r,i,o,a){return E(E({kind:h.Template,xref:n,templateKind:e,attributes:null,tag:t,handle:new at,functionNameSuffix:s,decls:null,vars:null,localRefs:[],nonBindable:!1,namespace:r,i18nPlaceholder:i,startSourceSpan:o,wholeSourceSpan:a},Cn),q)}function sE(n,e,t,s,r,i,o,a,l,c){return xe(E(E(E({kind:h.RepeaterCreate,attributes:null,xref:n,handle:new at,emptyView:e,track:s,trackByFn:null,tag:t,emptyTag:i,emptyAttributes:null,functionNameSuffix:"For",namespace:Qe.HTML,nonBindable:!1,localRefs:[],decls:null,vars:null,varNames:r,usesComponentInstance:!1,i18nPlaceholder:o,emptyI18nPlaceholder:a,startSourceSpan:l,wholeSourceSpan:c},Cn),q),lt),{numSlotsUsed:e===null?2:3})}function rE(n,e){return E({kind:h.ElementEnd,xref:n,sourceSpan:e},q)}function iE(n){return E({kind:h.DisableBindings,xref:n},q)}function oE(n){return E({kind:h.EnableBindings,xref:n},q)}function Um(n,e,t,s){return E(E({kind:h.Text,xref:n,handle:new at,initialValue:e,icuPlaceholder:t,sourceSpan:s},Cn),q)}function fh(n,e,t,s,r,i,o,a,l){let c=new S;return c.push(r),E({kind:h.Listener,target:n,targetSlot:e,tag:s,hostListener:a,name:t,handlerOps:c,handlerFnName:null,consumesDollarEvent:!1,isAnimationListener:i!==null,animationPhase:i,eventTarget:o,sourceSpan:l},q)}function Hm(n,e,t,s,r,i){let o=new S;return o.push(r),E({kind:h.TwoWayListener,target:n,targetSlot:e,tag:s,name:t,handlerOps:o,handlerFnName:null,sourceSpan:i},q)}function jm(n,e,t){return E(E({kind:h.Pipe,xref:n,handle:e,name:t},q),Cn)}function aE(n){return E({kind:h.Namespace,active:n},q)}function lE(n){return E({kind:h.ProjectionDef,def:n},q)}function cE(n,e,t,s,r){return xe(E(E({kind:h.Projection,xref:n,handle:new at,selector:e,i18nPlaceholder:t,fallbackView:s,projectionSlotIndex:0,attributes:null,localRefs:[],sourceSpan:r},q),Cn),{numSlotsUsed:s===null?1:2})}function Ft(n,e,t,s,r,i,o,a){return E({kind:h.ExtractedAttribute,target:n,bindingKind:e,namespace:t,name:s,expression:r,i18nContext:i,i18nMessage:o,securityContext:a,trustedValueFn:null},q)}function uE(n,e,t,s,r,i){return xe(E(E({kind:h.Defer,xref:n,handle:new at,mainView:e,mainSlot:t,loadingView:null,loadingSlot:null,loadingConfig:null,loadingMinimumTime:null,loadingAfterTime:null,placeholderView:null,placeholderSlot:null,placeholderConfig:null,placeholderMinimumTime:null,errorView:null,errorSlot:null,ownResolverFn:s,resolverFn:r,sourceSpan:i},q),Cn),{numSlotsUsed:2})}function Ss(n,e,t,s){return E({kind:h.DeferOn,defer:n,trigger:e,prefetch:t,sourceSpan:s},q)}function hE(n,e,t){return E(E({kind:h.DeclareLet,xref:n,declaredName:e,sourceSpan:t,handle:new at},Cn),q)}function pE(n,e,t,s,r,i,o,a){return E({kind:h.I18nMessage,xref:n,i18nContext:e,i18nBlock:t,message:s,messagePlaceholder:r,params:i,postprocessingParams:o,needsPostprocessing:a,subMessages:[]},q)}function wl(n,e,t,s){return E(E({kind:h.I18nStart,xref:n,handle:new at,root:t??n,message:e,messageIndex:null,subTemplateIndex:null,context:null,sourceSpan:s},q),Cn)}function yl(n,e){return E({kind:h.I18nEnd,xref:n,sourceSpan:e},q)}function dE(n,e,t,s){return E({kind:h.IcuStart,xref:n,message:e,messagePlaceholder:t,context:null,sourceSpan:s},q)}function fE(n){return E({kind:h.IcuEnd,xref:n},q)}function mE(n,e,t){return E({kind:h.IcuPlaceholder,xref:n,name:e,strings:t,expressionPlaceholders:[]},q)}function ic(n,e,t,s,r){if(t===null&&n!==ks.Attr)throw new Error("AssertionError: i18nBlock must be provided for non-attribute contexts.");return E({kind:h.I18nContext,contextKind:n,xref:e,i18nBlock:t,message:s,sourceSpan:r,params:new Map,postprocessingParams:new Map},q)}function Wm(n,e,t){return E(E({kind:h.I18nAttributes,xref:n,handle:e,target:t,i18nAttributesConfig:null},q),Cn)}function gE(n,e,t,s,r,i){return E(E({kind:h.HostProperty,name:n,expression:e,isAnimationTrigger:t,i18nContext:s,securityContext:r,sanitizer:null,sourceSpan:i},lt),q)}var zm="CTX_REF_MARKER",C=function(n){return n[n.Tmpl=0]="Tmpl",n[n.Host=1]="Host",n[n.Both=2]="Both",n}(C||{}),za=class{constructor(e,t,s){this.componentName=e,this.pool=t,this.compatibility=s,this.kind=C.Both,this.nextXrefId=0}allocateXrefId(){return this.nextXrefId++}},no=class extends za{constructor(e,t,s,r,i,o,a){super(e,t,s),this.relativeContextFilePath=r,this.i18nUseExternalIds=i,this.deferMeta=o,this.allDeferrableDepsFn=a,this.kind=C.Tmpl,this.fnSuffix="Template",this.views=new Map,this.contentSelectors=null,this.consts=[],this.constsInitializers=[],this.root=new wn(this,this.allocateXrefId(),null),this.views.set(this.root.xref,this.root)}allocateView(e){let t=new wn(this,this.allocateXrefId(),e);return this.views.set(t.xref,t),t}get units(){return this.views.values()}addConst(e,t){for(let r=0;rr==="")&&(t.expression=t.expression.expressions[0])}function IE(n){for(let e of n.units)for(let t of e.ops()){if(t.kind!==h.Conditional)continue;let s,r=t.conditions.findIndex(o=>o.expr===null);if(r>=0){let o=t.conditions.splice(r,1)[0].targetSlot;s=new Ha(o)}else s=v(-1);let i=t.test==null?null:new Zt(t.test,n.allocateXrefId());for(let o=t.conditions.length-1;o>=0;o--){let a=t.conditions[o];if(a.expr!==null){if(i!==null){let l=o===0?i:new Un(i.xref);a.expr=new Q(A.Identical,l,a.expr)}else if(a.alias!==null){let l=n.allocateXrefId();a.expr=new Zt(a.expr,l),t.contextValue=new Un(l)}s=new Rn(a.expr,new Ha(a.targetSlot),s)}}t.processed=s,t.conditions=[]}}var PE=new Map([["&&",A.And],[">",A.Bigger],[">=",A.BiggerEquals],["|",A.BitwiseOr],["&",A.BitwiseAnd],["/",A.Divide],["==",A.Equals],["===",A.Identical],["<",A.Lower],["<=",A.LowerEquals],["-",A.Minus],["%",A.Modulo],["*",A.Multiply],["!=",A.NotEquals],["!==",A.NotIdentical],["??",A.NullishCoalesce],["||",A.Or],["+",A.Plus]]);function Gm(n){let e=new Map([["svg",Qe.SVG],["math",Qe.Math]]);return n===null?Qe.HTML:e.get(n)??Qe.HTML}function DE(n){let e=new Map([["svg",Qe.SVG],["math",Qe.Math]]);for(let[t,s]of e.entries())if(s===n)return t;return null}function NE(n,e){return e===Qe.HTML?n:`:${DE(e)}:${n}`}function qr(n){return Array.isArray(n)?se(n.map(qr)):v(n)}function ME(n){let e=new Map;for(let t of n.units)for(let s of t.create)if(s.kind===h.ExtractedAttribute){let r=e.get(s.target)||new su(n.compatibility);e.set(s.target,r),r.add(s.bindingKind,s.name,s.expression,s.namespace,s.trustedValueFn),S.remove(s)}if(n instanceof no)for(let t of n.units)for(let s of t.create)if(s.kind==h.Projection){let r=e.get(s.xref);if(r!==void 0){let i=ru(r);i.entries.length>0&&(s.attributes=i)}}else ms(s)&&(s.attributes=sf(n,e,s.xref),s.kind===h.RepeaterCreate&&s.emptyView!==null&&(s.emptyAttributes=sf(n,e,s.emptyView)));else if(n instanceof Qa)for(let[t,s]of e.entries()){if(t!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let r=ru(s);r.entries.length>0&&(n.root.attributes=r)}}function sf(n,e,t){let s=e.get(t);if(s!==void 0){let r=ru(s);if(r.entries.length>0)return n.addConst(r)}return null}var lr=Object.freeze([]),su=class{get attributes(){return this.byKind.get(I.Attribute)??lr}get classes(){return this.byKind.get(I.ClassName)??lr}get styles(){return this.byKind.get(I.StyleProperty)??lr}get bindings(){return this.propertyBindings??lr}get template(){return this.byKind.get(I.Template)??lr}get i18n(){return this.byKind.get(I.I18n)??lr}constructor(e){this.compatibility=e,this.known=new Map,this.byKind=new Map,this.propertyBindings=null,this.projectAs=null}isKnown(e,t){let s=this.known.get(e)??new Set;return this.known.set(e,s),s.has(t)?!0:(s.add(t),!1)}add(e,t,s,r,i){if(!(this.compatibility===St.TemplateDefinitionBuilder&&(e===I.Attribute||e===I.ClassName||e===I.StyleProperty))&&this.isKnown(e,t))return;if(t==="ngProjectAs"){if(s===null||!(s instanceof je)||s.value==null||typeof s.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=s.value.toString()}let a=this.arrayFor(e);if(a.push(...LE(r,t)),e===I.Attribute||e===I.StyleProperty){if(s===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");if(i!==null){if(!qm(s))throw Error("AssertionError: extracted attribute value should be string literal");a.push(sw(i,new xc([new Cc(s.value)],[]),void 0,s.sourceSpan))}else a.push(s)}}arrayFor(e){return e===I.Property||e===I.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(e)||this.byKind.set(e,[]),this.byKind.get(e))}};function LE(n,e){let t=v(e);return n?[v(0),v(n),t]:[t]}function ru({attributes:n,bindings:e,classes:t,i18n:s,projectAs:r,styles:i,template:o}){let a=[...n];if(r!==null){let l=Zu(r)[0];a.push(v(5),qr(l))}return t.length>0&&a.push(v(1),...t),i.length>0&&a.push(v(2),...i),e.length>0&&a.push(v(3),...e),o.length>0&&a.push(v(4),...o),s.length>0&&a.push(v(6),...s),se(a)}function FE(n){let e=new Map;for(let t of n.units){for(let s of t.create)s.kind===h.I18nAttributes&&e.set(s.target,s);for(let s of t.update)switch(s.kind){case h.Property:case h.Attribute:if(s.i18nContext===null||!(s.expression instanceof Se))continue;let r=e.get(s.target);if(r===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(r.target!==s.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let i=[];for(let o=0;oYE(s,{job:n}),Y.None),ke(t,KE,Y.None)}var HA=[nt,qt,Yt,fs,Ws].map(n=>n.constructor.name);function kt(n){return n instanceof Ar?kt(n.expr):n instanceof Q?kt(n.lhs)||kt(n.rhs):n instanceof Rn?n.falseCase&&kt(n.falseCase)?!0:kt(n.condition)||kt(n.trueCase):n instanceof ki?kt(n.condition):n instanceof Zt?kt(n.expr):n instanceof Et?kt(n.receiver):n instanceof $n?kt(n.receiver)||kt(n.index):n instanceof nt||n instanceof qt||n instanceof Yt||n instanceof fs||n instanceof Ws}function WE(n){let e=new Set;return _(n,t=>(t instanceof Zt&&e.add(t.xref),t),Y.None),e}function zE(n,e,t){return _(n,s=>{if(s instanceof Zt&&e.has(s.xref)){let r=new Un(s.xref);return t.job.compatibility===St.TemplateDefinitionBuilder?new Zt(r,r.xref):r}return s},Y.None),n}function cr(n,e,t){let s;if(kt(n)){let r=t.job.allocateXrefId();s=[new Zt(n,r),new Un(r)]}else s=[n,n.clone()],zE(s[1],WE(s[0]),t);return new Vr(s[0],e(s[1]))}function GE(n){return n instanceof Rr||n instanceof $r||n instanceof fs}function QE(n){return n instanceof Et||n instanceof $n||n instanceof nt}function Qm(n){return GE(n)||QE(n)}function XE(n){if(Qm(n)&&n.receiver instanceof Vr){let e=n.receiver;for(;e.expr instanceof Vr;)e=e.expr;return e}return null}function YE(n,e){if(!Qm(n))return n;let t=XE(n);if(t){if(n instanceof nt)return t.expr=t.expr.callFn(n.args),n.receiver;if(n instanceof Et)return t.expr=t.expr.prop(n.name),n.receiver;if(n instanceof $n)return t.expr=t.expr.key(n.index),n.receiver;if(n instanceof fs)return t.expr=cr(t.expr,s=>s.callFn(n.args),e),n.receiver;if(n instanceof Rr)return t.expr=cr(t.expr,s=>s.prop(n.name),e),n.receiver;if(n instanceof $r)return t.expr=cr(t.expr,s=>s.key(n.index),e),n.receiver}else{if(n instanceof fs)return cr(n.receiver,s=>s.callFn(n.args),e);if(n instanceof Rr)return cr(n.receiver,s=>s.prop(n.name),e);if(n instanceof $r)return cr(n.receiver,s=>s.key(n.index),e)}return n}function KE(n){return n instanceof Vr?new Rn(new Q(A.Equals,n.guard,Ii),Ii,n.expr):n}var rf="\uFFFD",ZE="#",JE="*",e0="/",t0=":",n0="[",s0="]",r0="|";function i0(n){let e=new Map,t=new Map,s=new Map;for(let i of n.units)for(let o of i.create)switch(o.kind){case h.I18nContext:let a=o0(n,o);i.create.push(a),e.set(o.xref,a),s.set(o.xref,o);break;case h.I18nStart:t.set(o.xref,o);break}let r=null;for(let i of n.units)for(let o of i.create)switch(o.kind){case h.IcuStart:r=o,S.remove(o);let a=s.get(o.context);if(a.contextKind!==ks.Icu)continue;let l=t.get(a.i18nBlock);if(l.context===a.xref)continue;let c=t.get(l.root),u=e.get(c.context);if(u===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let p=e.get(a.xref);p.messagePlaceholder=o.messagePlaceholder,u.subMessages.push(p.xref);break;case h.IcuEnd:r=null,S.remove(o);break;case h.IcuPlaceholder:if(r===null||r.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");e.get(r.context).postprocessingParams.set(o.name,v(a0(o))),S.remove(o);break}}function o0(n,e,t){let s=of(e.params),r=of(e.postprocessingParams),i=[...e.params.values()].some(o=>o.length>1);return pE(n.allocateXrefId(),e.xref,e.i18nBlock,e.message,t??null,s,r,i)}function a0(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);let e=n.expressionPlaceholders.map(yr);return n.strings.flatMap((t,s)=>[t,e[s]||""]).join("")}function of(n){let e=new Map;for(let[t,s]of n){let r=l0(s);r!==null&&e.set(t,v(r))}return e}function l0(n){if(n.length===0)return null;let e=n.map(t=>yr(t));return e.length===1?e[0]:`${n0}${e.join(r0)}${s0}`}function yr(n){if(n.flags&oe.ElementTag&&n.flags&oe.TemplateTag){if(typeof n.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let r=yr(xe(E({},n),{value:n.value.element,flags:n.flags&~oe.TemplateTag})),i=yr(xe(E({},n),{value:n.value.template,flags:n.flags&~oe.ElementTag}));return n.flags&oe.OpenTag&&n.flags&oe.CloseTag?`${i}${r}${i}`:n.flags&oe.CloseTag?`${r}${i}`:`${i}${r}`}if(n.flags&oe.OpenTag&&n.flags&oe.CloseTag)return`${yr(xe(E({},n),{flags:n.flags&~oe.CloseTag}))}${yr(xe(E({},n),{flags:n.flags&~oe.OpenTag}))}`;if(n.flags===oe.None)return`${n.value}`;let e="",t="";n.flags&oe.ElementTag?e=ZE:n.flags&oe.TemplateTag&&(e=JE),e!==""&&(t=n.flags&oe.CloseTag?e0:"");let s=n.subTemplateIndex===null?"":`${t0}${n.subTemplateIndex}`;return`${rf}${t}${e}${n.value}${s}${rf}`}function c0(n){for(let e of n.units){let t=new Map;for(let r of e.create){if(Yr(r)){if(r.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;t.set(r.xref,r.handle.slot)}let s=0;for(let r of e.update){let i=null;if(Ba(r)?i=r:Ye(r,a=>{i===null&&Ba(a)&&(i=a)}),i===null)continue;if(!t.has(i.target))throw new Error(`AssertionError: reference to unknown slot for target ${i.target}`);let o=t.get(i.target);if(s!==o){let a=o-s;if(a<0)throw new Error("AssertionError: slot counter should never need to move backwards");S.insertBefore(Yy(a,i.sourceSpan),r),s=o}}}}function u0(n){let e=n.compatibility===St.TemplateDefinitionBuilder,t=[],s=0;for(let r of n.units)for(let i of r.create)i.kind===h.Projection&&(t.push(i.selector),i.projectionSlotIndex=s++);if(t.length>0){let r=null;if(t.length>1||t[0]!=="*"){let i=t.map(o=>o==="*"?o:Zu(o));r=n.pool.getConstLiteral(qr(i),e)}n.contentSelectors=n.pool.getConstLiteral(qr(t),e),n.root.create.prepend([lE(r)])}}function h0(n){di(n.root,null)}function di(n,e){let t=p0(n,e);for(let s of n.create)switch(s.kind){case h.Template:di(n.job.views.get(s.xref),t);break;case h.Projection:s.fallbackView!==null&&di(n.job.views.get(s.fallbackView),t);break;case h.RepeaterCreate:di(n.job.views.get(s.xref),t),s.emptyView&&di(n.job.views.get(s.emptyView),t);break;case h.Listener:case h.TwoWayListener:s.handlerOps.prepend(ou(n,t,!0));break}n.update.prepend(ou(n,t,!1))}function p0(n,e){let t={view:n.xref,viewContextVariable:{kind:Le.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:e};for(let s of n.contextVariables.keys())t.contextVariables.set(s,{kind:Le.Identifier,name:null,identifier:s});for(let s of n.create)switch(s.kind){case h.ElementStart:case h.Template:if(!Array.isArray(s.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let r=0;rs instanceof to?v(n.addConst(s.expr)):s,Y.None)}var af="style.",lf="class.",f0="style!",cf="class!",uf="!important";function m0(n){for(let e of n.root.update)if(e.kind===h.Binding&&e.bindingKind===I.Property)if(e.name.endsWith(uf)&&(e.name=e.name.substring(0,e.name.length-uf.length)),e.name.startsWith(af)){e.bindingKind=I.StyleProperty,e.name=e.name.substring(af.length),g0(e.name)||(e.name=v0(e.name));let{property:t,suffix:s}=oc(e.name);e.name=t,e.unit=s}else e.name.startsWith(f0)?(e.bindingKind=I.StyleProperty,e.name="style"):e.name.startsWith(lf)?(e.bindingKind=I.ClassName,e.name=oc(e.name.substring(lf.length)).property):e.name.startsWith(cf)&&(e.bindingKind=I.ClassName,e.name=oc(e.name.substring(cf.length)).property)}function g0(n){return n.startsWith("--")}function v0(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function oc(n){let e=n.indexOf("!important");e!==-1&&(n=e>0?n.substring(0,e):"");let t=null,s=n,r=n.lastIndexOf(".");return r>0&&(t=n.slice(r+1),s=n.substring(0,r)),{property:s,suffix:t}}function au(n,e=!1){return st(Object.keys(n).map(t=>({key:t,quoted:e,value:n[t]})))}var lu=class{visitText(e){return e.value}visitContainer(e){return e.children.map(t=>t.visit(this)).join("")}visitIcu(e){let t=Object.keys(e.cases).map(r=>`${r} {${e.cases[r].visit(this)}}`);return`{${e.expressionPlaceholder}, ${e.type}, ${t.join(" ")}}`}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)}formatPh(e){return`{${ho(e,!1)}}`}},w0=new lu;function Xm(n){return n.visit(w0)}var W=function(n){return n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.Error=7]="Error",n}(W||{}),y0=["var","let","as","null","undefined","true","false","if","else","this"],so=class{tokenize(e){let t=new cu(e),s=[],r=t.scanToken();for(;r!=null;)s.push(r),r=t.scanToken();return s}},Jt=class{constructor(e,t,s,r,i){this.index=e,this.end=t,this.type=s,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==W.Character&&this.numValue==e}isNumber(){return this.type==W.Number}isString(){return this.type==W.String}isOperator(e){return this.type==W.Operator&&this.strValue==e}isIdentifier(){return this.type==W.Identifier}isPrivateIdentifier(){return this.type==W.PrivateIdentifier}isKeyword(){return this.type==W.Keyword}isKeywordLet(){return this.type==W.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==W.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==W.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==W.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==W.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==W.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==W.Keyword&&this.strValue=="this"}isError(){return this.type==W.Error}toNumber(){return this.type==W.Number?this.numValue:-1}toString(){switch(this.type){case W.Character:case W.Identifier:case W.Keyword:case W.Operator:case W.PrivateIdentifier:case W.String:case W.Error:return this.strValue;case W.Number:return this.numValue.toString();default:return null}}};function hf(n,e,t){return new Jt(n,e,W.Character,t,String.fromCharCode(t))}function E0(n,e,t){return new Jt(n,e,W.Identifier,0,t)}function S0(n,e,t){return new Jt(n,e,W.PrivateIdentifier,0,t)}function b0(n,e,t){return new Jt(n,e,W.Keyword,0,t)}function ac(n,e,t){return new Jt(n,e,W.Operator,0,t)}function x0(n,e,t){return new Jt(n,e,W.String,0,t)}function C0(n,e,t){return new Jt(n,e,W.Number,t,"")}function _0(n,e,t){return new Jt(n,e,W.Error,0,t)}var lc=new Jt(-1,-1,W.Character,0,""),cu=class{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?Ge:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,t=this.length,s=this.peek,r=this.index;for(;s<=xm;)if(++r>=t){s=Ge;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=t)return null;if(pf(s))return this.scanIdentifier();if(fn(s))return this.scanNumber(r);let i=r;switch(s){case pr:return this.advance(),fn(this.peek)?this.scanNumber(i):hf(i,this.index,pr);case On:case Xt:case vn:case rt:case br:case vr:case Ot:case is:case ft:return this.scanCharacter(i,s);case zi:case Wi:return this.scanString();case Cm:return this.scanPrivateIdentifier();case Am:case Na:case Gw:case Pn:case zw:case Zw:return this.scanOperator(i,String.fromCharCode(s));case Bd:return this.scanQuestion(i);case gr:case ns:return this.scanComplexOperator(i,String.fromCharCode(s),Ts,"=");case zc:case Ts:return this.scanComplexOperator(i,String.fromCharCode(s),Ts,"=",Ts,"=");case Da:return this.scanComplexOperator(i,"&",Da,"&");case Od:return this.scanComplexOperator(i,"|",Od,"|");case Lm:for(;Gi(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,t){return this.advance(),hf(e,this.index,t)}scanOperator(e,t){return this.advance(),ac(e,this.index,t)}scanComplexOperator(e,t,s,r,i,o){this.advance();let a=t;return this.peek==s&&(this.advance(),a+=r),i!=null&&this.peek==i&&(this.advance(),a+=o),ac(e,this.index,a)}scanIdentifier(){let e=this.index;for(this.advance();df(this.peek);)this.advance();let t=this.input.substring(e,this.index);return y0.indexOf(t)>-1?b0(e,this.index,t):E0(e,this.index,t)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!pf(this.peek))return this.error("Invalid character [#]",-1);for(;df(this.peek);)this.advance();let t=this.input.substring(e,this.index);return S0(e,this.index,t)}scanNumber(e){let t=this.index===e,s=!1;for(this.advance();;){if(!fn(this.peek))if(this.peek===po){if(!fn(this.input.charCodeAt(this.index-1))||!fn(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===pr)t=!1;else if(A0(this.peek)){if(this.advance(),T0(this.peek)&&this.advance(),!fn(this.peek))return this.error("Invalid exponent",-1);t=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let i=t?I0(r):parseFloat(r);return C0(e,this.index,i)}scanString(){let e=this.index,t=this.peek;this.advance();let s="",r=this.index,i=this.input;for(;this.peek!=t;)if(this.peek==wi){s+=i.substring(r,this.index);let a;if(this.advance(),this.peek==Dm){let l=i.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(l))a=parseInt(l,16);else return this.error(`Invalid unicode escape [\\u${l}]`,0);for(let c=0;c<5;c++)this.advance()}else a=k0(this.peek),this.advance();s+=String.fromCharCode(a),r=this.index}else{if(this.peek==Ge)return this.error("Unterminated quote",0);this.advance()}let o=i.substring(r,this.index);return this.advance(),x0(e,this.index,s+o)}scanQuestion(e){this.advance();let t="?";return(this.peek===Bd||this.peek===pr)&&(t+=this.peek===pr?".":"?",this.advance()),ac(e,this.index,t)}error(e,t){let s=this.index+t;return _0(s,this.index,`Lexer Error: ${e} at column ${s} in expression [${this.input}]`)}};function pf(n){return Us<=n&&n<=fo||Gr<=n&&n<=fl||n==po||n==_m}function df(n){return Qi(n)||fn(n)||n==po||n==_m}function A0(n){return n==ey||n==Xw}function T0(n){return n==Na||n==Am}function k0(n){switch(n){case km:return Ns;case lh:return bm;case Im:return oh;case Pm:return ih;case Nm:return Sm;default:return n}}function I0(n){let e=parseInt(n);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+n);return e}var uu=class{constructor(e,t,s){this.strings=e,this.expressions=t,this.offsets=s}},hu=class{constructor(e,t,s){this.templateBindings=e,this.warnings=t,this.errors=s}},Xa=class{constructor(e){this._lexer=e,this.errors=[]}parseAction(e,t,s,r=gn){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),o=this._lexer.tokenize(i),a=new Cs(e,t,s,o,1,this.errors,0).parseChain();return new Mt(a,e,t,s,this.errors)}parseBinding(e,t,s,r=gn){let i=this._parseBindingAst(e,t,s,r);return new Mt(i,e,t,s,this.errors)}checkSimpleExpression(e){let t=new pu;return e.visit(t),t.errors}parseSimpleBinding(e,t,s,r=gn){let i=this._parseBindingAst(e,t,s,r),o=this.checkSimpleExpression(i);return o.length>0&&this._reportError(`Host binding expression cannot contain ${o.join(" ")}`,e,t),new Mt(i,e,t,s,this.errors)}_reportError(e,t,s,r){this.errors.push(new Di(e,t,s,r))}_parseBindingAst(e,t,s,r){this._checkNoInterpolation(e,t,r);let i=this._stripComments(e),o=this._lexer.tokenize(i);return new Cs(e,t,s,o,0,this.errors,0).parseChain()}parseTemplateBindings(e,t,s,r,i){let o=this._lexer.tokenize(t);return new Cs(t,s,i,o,0,this.errors,0).parseTemplateBindings({source:e,span:new gt(r,r+e.length)})}parseInterpolation(e,t,s,r,i=gn){let{strings:o,expressions:a,offsets:l}=this.splitInterpolation(e,t,r,i);if(a.length===0)return null;let c=[];for(let u=0;uu.text),c,e,t,s)}parseInterpolationExpression(e,t,s){let r=this._stripComments(e),i=this._lexer.tokenize(r),o=new Cs(e,t,s,i,0,this.errors,0).parseChain(),a=["",""];return this.createInterpolationAst(a,[o],e,t,s)}createInterpolationAst(e,t,s,r,i){let o=new Rs(0,s.length),a=new Vs(o,o.toAbsolute(i),e,t);return new Mt(a,s,r,i,this.errors)}splitInterpolation(e,t,s,r=gn){let i=[],o=[],a=[],l=s?P0(s):null,c=0,u=!1,p=!1,{start:f,end:g}=r;for(;c-1)break;i>-1&&o>-1&&this._reportError(`Got interpolation (${s}${r}) where expression was expected`,e,`at column ${i} in`,t)}_getInterpolationEndIndex(e,t,s){for(let r of this._forEachUnquotedChar(e,s)){if(e.startsWith(t,r))return r;if(e.startsWith("//",r))return e.indexOf(t,r)}return-1}*_forEachUnquotedChar(e,t){let s=null,r=0;for(let i=t;i=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(e,t){let s=this.currentEndIndex;if(t!==void 0&&t>this.currentEndIndex&&(s=t),e>s){let r=s;s=e,e=r}return new Rs(e,s)}sourceSpan(e,t){let s=`${e}@${this.inputIndex}:${t}`;return this.sourceSpanCache.has(s)||this.sourceSpanCache.set(s,this.span(e,t).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(s)}advance(){this.index++}withContext(e,t){this.context|=e;let s=t();return this.context^=e,s}consumeOptionalCharacter(e){return this.next.isCharacter(e)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.consumeOptionalCharacter(e)||this.error(`Missing expected ${String.fromCharCode(e)}`)}consumeOptionalOperator(e){return this.next.isOperator(e)?(this.advance(),!0):!1}expectOperator(e){this.consumeOptionalOperator(e)||this.error(`Missing expected operator ${e}`)}prettyPrintToken(e){return e===lc?"end of input":`token ${e}`}expectIdentifierOrKeyword(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier or keyword`),null):(this.advance(),e.toString())}expectIdentifierOrKeywordOrString(){let e=this.next;return!e.isIdentifier()&&!e.isKeyword()&&!e.isString()?(e.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(e,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(e)}, expected identifier, keyword, or string`),""):(this.advance(),e.toString())}parseChain(){let e=[],t=this.inputIndex;for(;this.index":case"<=":case">=":this.advance();let r=this.parseAdditive();t=new Pt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseAdditive(){let e=this.inputIndex,t=this.parseMultiplicative();for(;this.next.type==W.Operator;){let s=this.next.strValue;switch(s){case"+":case"-":this.advance();let r=this.parseMultiplicative();t=new Pt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parseMultiplicative(){let e=this.inputIndex,t=this.parsePrefix();for(;this.next.type==W.Operator;){let s=this.next.strValue;switch(s){case"*":case"%":case"/":this.advance();let r=this.parsePrefix();t=new Pt(this.span(e),this.sourceSpan(e),s,t,r);continue}break}return t}parsePrefix(){if(this.next.type==W.Operator){let e=this.inputIndex,t=this.next.strValue,s;switch(t){case"+":return this.advance(),s=this.parsePrefix(),Mi.createPlus(this.span(e),this.sourceSpan(e),s);case"-":return this.advance(),s=this.parsePrefix(),Mi.createMinus(this.span(e),this.sourceSpan(e),s);case"!":return this.advance(),s=this.parsePrefix(),new Li(this.span(e),this.sourceSpan(e),s)}}return this.parseCallChain()}parseCallChain(){let e=this.inputIndex,t=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(pr))t=this.parseAccessMember(t,e,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(On)?t=this.parseCall(t,e,!0):t=this.consumeOptionalCharacter(br)?this.parseKeyedReadOrWrite(t,e,!0):this.parseAccessMember(t,e,!0);else if(this.consumeOptionalCharacter(br))t=this.parseKeyedReadOrWrite(t,e,!1);else if(this.consumeOptionalCharacter(On))t=this.parseCall(t,e,!1);else if(this.consumeOptionalOperator("!"))t=new Fi(this.span(e),this.sourceSpan(e),t);else return t}parsePrimary(){let e=this.inputIndex;if(this.consumeOptionalCharacter(On)){this.rparensExpected++;let t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(Xt),t}else{if(this.next.isKeywordNull())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Dt(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Ps(this.span(e),this.sourceSpan(e));if(this.consumeOptionalCharacter(br)){this.rbracketsExpected++;let t=this.parseExpressionList(vr);return this.rbracketsExpected--,this.expectCharacter(vr),new fa(this.span(e),this.sourceSpan(e),t)}else{if(this.next.isCharacter(vn))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Fn(this.span(e),this.sourceSpan(e)),e,!1);if(this.next.isNumber()){let t=this.next.toNumber();return this.advance(),new Dt(this.span(e),this.sourceSpan(e),t)}else if(this.next.isString()){let t=this.next.toString();return this.advance(),new Dt(this.span(e),this.sourceSpan(e),t)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new et(this.span(e),this.sourceSpan(e))):this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new et(this.span(e),this.sourceSpan(e))):(this.error(`Unexpected token ${this.next}`),new et(this.span(e),this.sourceSpan(e)))}}}parseExpressionList(e){let t=[];do if(!this.next.isCharacter(e))t.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(Ot));return t}parseLiteralMap(){let e=[],t=[],s=this.inputIndex;if(this.expectCharacter(vn),!this.consumeOptionalCharacter(rt)){this.rbracesExpected++;do{let r=this.inputIndex,i=this.next.isString(),o=this.expectIdentifierOrKeywordOrString(),a={key:o,quoted:i};if(e.push(a),i)this.expectCharacter(is),t.push(this.parsePipe());else if(this.consumeOptionalCharacter(is))t.push(this.parsePipe());else{a.isShorthandInitialized=!0;let l=this.span(r),c=this.sourceSpan(r);t.push(new $s(l,c,c,new Fn(l,c),o))}}while(this.consumeOptionalCharacter(Ot)&&!this.next.isCharacter(rt));this.rbracesExpected--,this.expectCharacter(rt)}return new ma(this.span(s),this.sourceSpan(s),e,t)}parseAccessMember(e,t,s){let r=this.inputIndex,i=this.withContext(fi.Writable,()=>{let l=this.expectIdentifierOrKeyword()??"";return l.length===0&&this.error("Expected identifier for property access",e.span.end),l}),o=this.sourceSpan(r),a;if(s)this.consumeOptionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),a=new et(this.span(t),this.sourceSpan(t))):a=new ua(this.span(t),this.sourceSpan(t),o,e,i);else if(this.consumeOptionalOperator("=")){if(!(this.parseFlags&1))return this.error("Bindings cannot contain assignments"),new et(this.span(t),this.sourceSpan(t));let l=this.parseConditional();a=new ca(this.span(t),this.sourceSpan(t),o,e,i,l)}else a=new $s(this.span(t),this.sourceSpan(t),o,e,i);return a}parseCall(e,t,s){let r=this.inputIndex;this.rparensExpected++;let i=this.parseCallArguments(),o=this.span(r,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Xt),this.rparensExpected--;let a=this.span(t),l=this.sourceSpan(t);return s?new va(a,l,e,i,o):new ga(a,l,e,i,o)}parseCallArguments(){if(this.next.isCharacter(Xt))return[];let e=[];do e.push(this.parsePipe());while(this.consumeOptionalCharacter(Ot));return e}expectTemplateBindingKey(){let e="",t=!1,s=this.currentAbsoluteOffset;do e+=this.expectIdentifierOrKeywordOrString(),t=this.consumeOptionalOperator("-"),t&&(e+="-");while(t);return{source:e,span:new gt(s,s+e.length)}}parseTemplateBindings(e){let t=[];for(t.push(...this.parseDirectiveKeywordBindings(e));this.index{this.rbracketsExpected++;let r=this.parsePipe();if(r instanceof et&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(vr),this.consumeOptionalOperator("="))if(s)this.error("The '?.' operator cannot be used in the assignment");else{let i=this.parseConditional();return new pa(this.span(t),this.sourceSpan(t),e,r,i)}else return s?new ha(this.span(t),this.sourceSpan(t),e,r):new Pr(this.span(t),this.sourceSpan(t),e,r);return new et(this.span(t),this.sourceSpan(t))})}parseDirectiveKeywordBindings(e){let t=[];this.consumeOptionalCharacter(is);let s=this.getDirectiveBoundTarget(),r=this.currentAbsoluteOffset,i=this.parseAsBinding(e);i||(this.consumeStatementTerminator(),r=this.currentAbsoluteOffset);let o=new gt(e.span.start,r);return t.push(new Nc(o,e,s)),i&&t.push(i),t}getDirectiveBoundTarget(){if(this.next===lc||this.peekKeywordAs()||this.peekKeywordLet())return null;let e=this.parsePipe(),{start:t,end:s}=e.span,r=this.input.substring(t,s);return new Mt(e,r,this.location,this.absoluteOffset+t,this.errors)}parseAsBinding(e){if(!this.peekKeywordAs())return null;this.advance();let t=this.expectTemplateBindingKey();this.consumeStatementTerminator();let s=new gt(e.span.start,this.currentAbsoluteOffset);return new Bi(s,t,e)}parseLetBinding(){if(!this.peekKeywordLet())return null;let e=this.currentAbsoluteOffset;this.advance();let t=this.expectTemplateBindingKey(),s=null;this.consumeOptionalOperator("=")&&(s=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let r=new gt(e,this.currentAbsoluteOffset);return new Bi(r,t,s)}consumeStatementTerminator(){this.consumeOptionalCharacter(ft)||this.consumeOptionalCharacter(Ot)}error(e,t=null){this.errors.push(new Di(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return e==null&&(e=this.index),ea+l.length,0);s+=o,t+=o}e.set(s,t),r++}return e}var gs=class{constructor(e,t){this.sourceSpan=e,this.i18n=t}},zs=class extends gs{constructor(e,t,s,r){super(t,r),this.value=e,this.tokens=s}visit(e,t){return e.visitText(this,t)}},Ur=class extends gs{constructor(e,t,s,r,i,o){super(r,o),this.switchValue=e,this.type=t,this.cases=s,this.switchValueSourceSpan=i}visit(e,t){return e.visitExpansion(this,t)}},du=class{constructor(e,t,s,r,i){this.value=e,this.expression=t,this.sourceSpan=s,this.valueSourceSpan=r,this.expSourceSpan=i}visit(e,t){return e.visitExpansionCase(this,t)}},fu=class extends gs{constructor(e,t,s,r,i,o,a){super(s,a),this.name=e,this.value=t,this.keySpan=r,this.valueSpan=i,this.valueTokens=o}visit(e,t){return e.visitAttribute(this,t)}},It=class extends gs{constructor(e,t,s,r,i,o=null,a){super(r,a),this.name=e,this.attrs=t,this.children=s,this.startSourceSpan=i,this.endSourceSpan=o}visit(e,t){return e.visitElement(this,t)}},ro=class{constructor(e,t){this.value=e,this.sourceSpan=t}visit(e,t){return e.visitComment(this,t)}},Nt=class extends gs{constructor(e,t,s,r,i,o,a=null,l){super(r,l),this.name=e,this.parameters=t,this.children=s,this.nameSpan=i,this.startSourceSpan=o,this.endSourceSpan=a}visit(e,t){return e.visitBlock(this,t)}},Ya=class{constructor(e,t){this.expression=e,this.sourceSpan=t}visit(e,t){return e.visitBlockParameter(this,t)}},Ka=class{constructor(e,t,s,r,i){this.name=e,this.value=t,this.sourceSpan=s,this.nameSpan=r,this.valueSpan=i}visit(e,t){return e.visitLetDeclaration(this,t)}};function de(n,e,t=null){let s=[],r=n.visit?i=>n.visit(i,t)||i.visit(n,t):i=>i.visit(n,t);return e.forEach(i=>{let o=r(i);o&&s.push(o)}),s}var Xo;function ff(){return Xo||(Xo={},Wo(le.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Wo(le.STYLE,["*|style"]),Wo(le.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","input|src","ins|cite","q|cite","source|src","track|src","video|poster","video|src"]),Wo(le.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Xo}function Wo(n,e){for(let t of e)Xo[t.toLowerCase()]=n}var D0=new Set(["sandbox","allow","allowfullscreen","referrerpolicy","csp","fetchpriority"]);function N0(n){return D0.has(n.toLowerCase())}var mu=class{},M0="boolean",L0="number",F0="string",B0="object",O0=["[Element]|textContent,%ariaAtomic,%ariaAutoComplete,%ariaBusy,%ariaChecked,%ariaColCount,%ariaColIndex,%ariaColSpan,%ariaCurrent,%ariaDescription,%ariaDisabled,%ariaExpanded,%ariaHasPopup,%ariaHidden,%ariaKeyShortcuts,%ariaLabel,%ariaLevel,%ariaLive,%ariaModal,%ariaMultiLine,%ariaMultiSelectable,%ariaOrientation,%ariaPlaceholder,%ariaPosInSet,%ariaPressed,%ariaReadOnly,%ariaRelevant,%ariaRequired,%ariaRoleDescription,%ariaRowCount,%ariaRowIndex,%ariaRowSpan,%ariaSelected,%ariaSetSize,%ariaSort,%ariaValueMax,%ariaValueMin,%ariaValueNow,%ariaValueText,%classList,className,elementTiming,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*fullscreenchange,*fullscreenerror,*search,*webkitfullscreenchange,*webkitfullscreenerror,outerHTML,%part,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,!inert,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","abbr,address,article,aside,b,bdi,bdo,cite,content,code,dd,dfn,dt,em,figcaption,figure,footer,header,hgroup,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,autocapitalize,!autofocus,contentEditable,dir,!draggable,enterKeyHint,!hidden,innerText,inputMode,lang,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate,virtualKeyboardPolicy","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,!preservesPitch,src,%srcObject,#volume",":svg:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,%relList,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","data^[HTMLElement]|value","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*afterprint,*beforeprint,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*messageerror,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,allow,!allowFullscreen,!allowPaymentRequest,csp,frameBorder,height,loading,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,decoding,#height,#hspace,!isMap,loading,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocomplete,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,imageSizes,imageSrcset,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,media,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,!noModule,%referrerPolicy,src,text,type","select^[HTMLElement]|autocomplete,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","slot^[HTMLElement]|name","source^[HTMLElement]|#height,media,sizes,src,srcset,type,#width","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocomplete,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","time^[HTMLElement]|dateTime","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|!disablePictureInPicture,#height,*enterpictureinpicture,*leavepictureinpicture,!playsInline,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|decoding",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|",":math:^[HTMLElement]|!autofocus,nonce,*abort,*animationend,*animationiteration,*animationstart,*auxclick,*beforeinput,*beforematch,*beforetoggle,*beforexrselect,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contentvisibilityautostatechange,*contextlost,*contextmenu,*contextrestored,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*formdata,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*paste,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerrawupdate,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*scrollend,*securitypolicyviolation,*seeked,*seeking,*select,*selectionchange,*selectstart,*slotchange,*stalled,*submit,*suspend,*timeupdate,*toggle,*transitioncancel,*transitionend,*transitionrun,*transitionstart,*volumechange,*waiting,*webkitanimationend,*webkitanimationiteration,*webkitanimationstart,*webkittransitionend,*wheel,%style,#tabIndex",":math:math^:math:|",":math:maction^:math:|",":math:menclose^:math:|",":math:merror^:math:|",":math:mfenced^:math:|",":math:mfrac^:math:|",":math:mi^:math:|",":math:mmultiscripts^:math:|",":math:mn^:math:|",":math:mo^:math:|",":math:mover^:math:|",":math:mpadded^:math:|",":math:mphantom^:math:|",":math:mroot^:math:|",":math:mrow^:math:|",":math:ms^:math:|",":math:mspace^:math:|",":math:msqrt^:math:|",":math:mstyle^:math:|",":math:msub^:math:|",":math:msubsup^:math:|",":math:msup^:math:|",":math:mtable^:math:|",":math:mtd^:math:|",":math:mtext^:math:|",":math:mtr^:math:|",":math:munder^:math:|",":math:munderover^:math:|",":math:semantics^:math:|"],Ym=new Map(Object.entries({class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"})),R0=Array.from(Ym).reduce((n,[e,t])=>(n.set(e,t),n),new Map),Hr=class extends mu{constructor(){super(),this._schema=new Map,this._eventSchema=new Map,O0.forEach(e=>{let t=new Map,s=new Set,[r,i]=e.split("|"),o=i.split(","),[a,l]=r.split("^");a.split(",").forEach(u=>{this._schema.set(u.toLowerCase(),t),this._eventSchema.set(u.toLowerCase(),s)});let c=l&&this._schema.get(l.toLowerCase());if(c){for(let[u,p]of c)t.set(u,p);for(let u of this._eventSchema.get(l.toLowerCase()))s.add(u)}o.forEach(u=>{if(u.length>0)switch(u[0]){case"*":s.add(u.substring(1));break;case"!":t.set(u.substring(1),M0);break;case"#":t.set(u.substring(1),L0);break;case"%":t.set(u.substring(1),B0);break;default:t.set(u,F0)}})})}hasProperty(e,t,s){if(s.some(i=>i.name===wd.name))return!0;if(e.indexOf("-")>-1){if(Dd(e)||Lc(e))return!1;if(s.some(i=>i.name===vd.name))return!0}return(this._schema.get(e.toLowerCase())||this._schema.get("unknown")).has(t)}hasElement(e,t){return t.some(s=>s.name===wd.name)||e.indexOf("-")>-1&&(Dd(e)||Lc(e)||t.some(s=>s.name===vd.name))?!0:this._schema.has(e.toLowerCase())}securityContext(e,t,s){s&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();let r=ff()[e+"|"+t];return r||(r=ff()["*|"+t],r||le.NONE)}getMappedPropName(e){return Ym.get(e)??e}getDefaultComponentElementName(){return"ng-component"}validateProperty(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${e}' is disallowed for security reasons, please use (${e.slice(2)})=... -If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let t=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(t.keys()).map(s=>R0.get(s)??s)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return hw(e)}normalizeAnimationStyleValue(e,t,s){let r="",i=s.toString().trim(),o=null;if($0(e)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let a=s.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&(o=`Please provide a CSS unit value for ${t}:${s}`)}return{error:o,value:i+r}}};function $0(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var U=class{constructor({closedByChildren:e,implicitNamespacePrefix:t,contentType:s=mn.PARSABLE_DATA,closedByParent:r=!1,isVoid:i=!1,ignoreFirstLf:o=!1,preventNamespaceInheritance:a=!1,canSelfClose:l=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(c=>this.closedByChildren[c]=!0),this.isVoid=i,this.closedByParent=r||i,this.implicitNamespacePrefix=t||null,this.contentType=s,this.ignoreFirstLf=o,this.preventNamespaceInheritance=a,this.canSelfClose=l??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},mf,ur;function Km(n){return ur||(mf=new U({canSelfClose:!0}),ur=Object.assign(Object.create(null),{base:new U({isVoid:!0}),meta:new U({isVoid:!0}),area:new U({isVoid:!0}),embed:new U({isVoid:!0}),link:new U({isVoid:!0}),img:new U({isVoid:!0}),input:new U({isVoid:!0}),param:new U({isVoid:!0}),hr:new U({isVoid:!0}),br:new U({isVoid:!0}),source:new U({isVoid:!0}),track:new U({isVoid:!0}),wbr:new U({isVoid:!0}),p:new U({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new U({closedByChildren:["tbody","tfoot"]}),tbody:new U({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new U({closedByChildren:["tbody"],closedByParent:!0}),tr:new U({closedByChildren:["tr"],closedByParent:!0}),td:new U({closedByChildren:["td","th"],closedByParent:!0}),th:new U({closedByChildren:["td","th"],closedByParent:!0}),col:new U({isVoid:!0}),svg:new U({implicitNamespacePrefix:"svg"}),foreignObject:new U({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new U({implicitNamespacePrefix:"math"}),li:new U({closedByChildren:["li"],closedByParent:!0}),dt:new U({closedByChildren:["dt","dd"]}),dd:new U({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new U({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new U({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new U({closedByChildren:["optgroup"],closedByParent:!0}),option:new U({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new U({ignoreFirstLf:!0}),listing:new U({ignoreFirstLf:!0}),style:new U({contentType:mn.RAW_TEXT}),script:new U({contentType:mn.RAW_TEXT}),title:new U({contentType:{default:mn.ESCAPABLE_RAW_TEXT,svg:mn.PARSABLE_DATA}}),textarea:new U({contentType:mn.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Hr().allKnownElementNames().forEach(e=>{!ur[e]&&Fc(e)===null&&(ur[e]=new U({canSelfClose:!1}))})),ur[n]??ur[n.toLowerCase()]??mf}var gf={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},gu=class{constructor(){this._placeHolderNameCounts={},this._signatureToName={}}getStartTagPlaceholderName(e,t,s){let r=this._hashTag(e,t,s);if(this._signatureToName[r])return this._signatureToName[r];let i=e.toUpperCase(),o=gf[i]||`TAG_${i}`,a=this._generateUniqueName(s?o:`START_${o}`);return this._signatureToName[r]=a,a}getCloseTagPlaceholderName(e){let t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];let s=e.toUpperCase(),r=gf[s]||`TAG_${s}`,i=this._generateUniqueName(`CLOSE_${r}`);return this._signatureToName[t]=i,i}getPlaceholderName(e,t){let s=e.toUpperCase(),r=`PH: ${s}=${t}`;if(this._signatureToName[r])return this._signatureToName[r];let i=this._generateUniqueName(s);return this._signatureToName[r]=i,i}getUniquePlaceholder(e){return this._generateUniqueName(e.toUpperCase())}getStartBlockPlaceholderName(e,t){let s=this._hashBlock(e,t);if(this._signatureToName[s])return this._signatureToName[s];let r=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[s]=r,r}getCloseBlockPlaceholderName(e){let t=this._hashClosingBlock(e);if(this._signatureToName[t])return this._signatureToName[t];let s=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(e)}`);return this._signatureToName[t]=s,s}_hashTag(e,t,s){let r=`<${e}`,i=Object.keys(t).sort().map(a=>` ${a}=${t[a]}`).join(""),o=s?"/>":`>`;return r+i+o}_hashClosingTag(e){return this._hashTag(`/${e}`,{},!1)}_hashBlock(e,t){let s=t.length===0?"":` (${t.sort().join("; ")})`;return`@${e}${s} {}`}_hashClosingBlock(e){return this._hashBlock(`close_${e}`,[])}_toSnakeCase(e){return e.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;let s=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=s+1,`${e}_${s}`}},V0=new Xa(new so);function q0(n,e){let t=new vu(V0,n,e);return(s,r,i,o,a)=>t.toI18nMessage(s,r,i,o,a)}function U0(n,e){return e}var vu=class{constructor(e,t,s){this._expressionParser=e,this._interpolationConfig=t,this._containerBlocks=s}toI18nMessage(e,t="",s="",r="",i){let o={isIcu:e.length==1&&e[0]instanceof Ur,icuDepth:0,placeholderRegistry:new gu,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||U0},a=de(this,e,o);return new tt(a,o.placeholderToContent,o.placeholderToMessage,t,s,r)}visitElement(e,t){let s=de(this,e.children,t),r={};e.attrs.forEach(c=>{r[c.name]=c.value});let i=Km(e.name).isVoid,o=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[o]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan};let a="";i||(a=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[a]={text:``,sourceSpan:e.endSourceSpan??e.sourceSpan});let l=new us(e.name,r,o,a,s,i,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,l)}visitAttribute(e,t){let s=e.valueTokens===void 0||e.valueTokens.length===1?new fr(e.value,e.valueSpan||e.sourceSpan):this._visitTextWithInterpolation(e.valueTokens,e.valueSpan||e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitText(e,t){let s=e.tokens.length===1?new fr(e.value,e.sourceSpan):this._visitTextWithInterpolation(e.tokens,e.sourceSpan,t,e.i18n);return t.visitNodeFn(e,s)}visitComment(e,t){return null}visitExpansion(e,t){t.icuDepth++;let s={},r=new ka(e.switchValue,e.type,s,e.sourceSpan);if(e.cases.forEach(a=>{s[a.value]=new Bn(a.expression.map(l=>l.visit(this,t)),a.expSourceSpan)}),t.icuDepth--,t.isIcu||t.icuDepth>0){let a=t.placeholderRegistry.getUniquePlaceholder(`VAR_${e.type}`);return r.expressionPlaceholder=a,t.placeholderToContent[a]={text:e.switchValue,sourceSpan:e.switchValueSourceSpan},t.visitNodeFn(e,r)}let i=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[i]=this.toI18nMessage([e],"","","",void 0);let o=new Br(r,i,e.sourceSpan);return t.visitNodeFn(e,o)}visitExpansionCase(e,t){throw new Error("Unreachable code")}visitBlock(e,t){let s=de(this,e.children,t);if(this._containerBlocks.has(e.name))return new Bn(s,e.sourceSpan);let r=e.parameters.map(l=>l.expression),i=t.placeholderRegistry.getStartBlockPlaceholderName(e.name,r),o=t.placeholderRegistry.getCloseBlockPlaceholderName(e.name);t.placeholderToContent[i]={text:e.startSourceSpan.toString(),sourceSpan:e.startSourceSpan},t.placeholderToContent[o]={text:e.endSourceSpan?e.endSourceSpan.toString():"}",sourceSpan:e.endSourceSpan??e.sourceSpan};let a=new hs(e.name,r,i,o,s,e.sourceSpan,e.startSourceSpan,e.endSourceSpan);return t.visitNodeFn(e,a)}visitBlockParameter(e,t){throw new Error("Unreachable code")}visitLetDeclaration(e,t){return null}_visitTextWithInterpolation(e,t,s,r){let i=[],o=!1;for(let a of e)switch(a.type){case 8:case 17:o=!0;let l=a.parts[1],c=G0(l)||"INTERPOLATION",u=s.placeholderRegistry.getPlaceholderName(c,l);s.placeholderToContent[u]={text:a.parts.join(""),sourceSpan:a.sourceSpan},i.push(new Ia(l,u,a.sourceSpan));break;default:if(a.parts[0].length>0){let p=i[i.length-1];p instanceof fr?(p.value+=a.parts[0],p.sourceSpan=new $(p.sourceSpan.start,a.sourceSpan.end,p.sourceSpan.fullStart,p.sourceSpan.details)):i.push(new fr(a.parts[0],a.sourceSpan))}break}return o?(H0(i,r),new Bn(i,t)):i[0]}};function H0(n,e){if(e instanceof tt&&(j0(e),e=e.nodes[0]),e instanceof Bn){W0(e.children,n);for(let t=0;te[s].constructor!==t.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var z0=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function G0(n){return n.split(z0)[2]}var wu=class extends R{constructor(e,t){super(e,t)}},Za={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` -`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},Zm="\uE500";Za.ngsp=Zm;var Si=class extends R{constructor(e,t,s){super(s,e),this.tokenType=t}},yu=class{constructor(e,t,s){this.tokens=e,this.errors=t,this.nonNormalizedIcuExpressions=s}};function Q0(n,e,t,s={}){let r=new Su(new Ma(n,e),t,s);return r.tokenize(),new yu(sS(r.tokens),r.errors,r.nonNormalizedIcuExpressions)}var X0=/\r\n?/g;function ci(n){return`Unexpected character "${n===Ge?"EOF":String.fromCharCode(n)}"`}function vf(n){return`Unknown entity "${n}" - use the "&#;" or "&#x;" syntax`}function Y0(n,e){return`Unable to parse entity "${e}" - ${n} character reference entities must end with ";"`}var Eu=function(n){return n.HEX="hexadecimal",n.DEC="decimal",n}(Eu||{}),bi=class{constructor(e){this.error=e}},Su=class{constructor(e,t,s){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this.nonNormalizedIcuExpressions=[],this._tokenizeIcu=s.tokenizeExpansionForms||!1,this._interpolationConfig=s.interpolationConfig||gn,this._leadingTriviaCodePoints=s.leadingTriviaChars&&s.leadingTriviaChars.map(i=>i.codePointAt(0)||0);let r=s.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=s.escapedString?new bu(e,r):new Ja(e,r),this._preserveLineEndings=s.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=s.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=s.tokenizeBlocks??!0,this._tokenizeLet=s.tokenizeLet||!1;try{this._cursor.init()}catch(i){this.handleError(i)}}_processCarriageReturns(e){return this._preserveLineEndings?e:e.replace(X0,` -`)}tokenize(){for(;this._cursor.peek()!==Ge;){let e=this._cursor.clone();try{this._attemptCharCode(gr)?this._attemptCharCode(zc)?this._attemptCharCode(br)?this._consumeCdata(e):this._attemptCharCode(Na)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Pn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeLet&&this._cursor.peek()===ec&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(ec)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(rt)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(t){this.handleError(t)}}this._beginToken(33),this._endToken([])}_getBlockName(){let e=!1,t=this._cursor.clone();return this._attemptCharCodeUntilFn(s=>Gi(s)?!e:nS(s)?(e=!0,!1):!0),this._cursor.getChars(t).trim()}_consumeBlockStart(e){this._beginToken(24,e);let t=this._endToken([this._getBlockName()]);if(this._cursor.peek()===On)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Ae),this._attemptCharCode(Xt))this._attemptCharCodeUntilFn(Ae);else{t.type=28;return}this._attemptCharCode(vn)?(this._beginToken(25),this._endToken([])):t.type=28}_consumeBlockEnd(e){this._beginToken(26,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Ef);this._cursor.peek()!==Xt&&this._cursor.peek()!==Ge;){this._beginToken(27);let e=this._cursor.clone(),t=null,s=0;for(;this._cursor.peek()!==ft&&this._cursor.peek()!==Ge||t!==null;){let r=this._cursor.peek();if(r===wi)this._cursor.advance();else if(r===t)t=null;else if(t===null&&yi(r))t=r;else if(r===On&&t===null)s++;else if(r===Xt&&t===null){if(s===0)break;s>0&&s--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Ef)}}_consumeLetDeclaration(e){if(this._beginToken(29,e),Gi(this._cursor.peek()))this._attemptCharCodeUntilFn(Ae);else{let r=this._endToken([this._cursor.getChars(e)]);r.type=32;return}let t=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Ae),!this._attemptCharCode(Ts)){t.type=32;return}this._attemptCharCodeUntilFn(r=>Ae(r)&&!ch(r)),this._consumeLetDeclarationValue(),this._cursor.peek()===ft?(this._beginToken(31),this._endToken([]),this._cursor.advance()):(t.type=32,t.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),t=!1;return this._attemptCharCodeUntilFn(s=>Qi(s)||s===po||t&&fn(s)?(t=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(30,e);this._cursor.peek()!==Ge;){let t=this._cursor.peek();if(t===ft)break;yi(t)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(s=>s===wi?(this._cursor.advance(),!1):s===t)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(eS(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===rt){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,t=this._cursor.clone()){this._currentTokenStart=t,this._currentTokenType=e}_endToken(e,t){if(this._currentTokenStart===null)throw new Si("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(this._currentTokenType===null)throw new Si("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let s={type:this._currentTokenType,parts:e,sourceSpan:(t??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(s),this._currentTokenStart=null,this._currentTokenType=null,s}_createError(e,t){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let s=new Si(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new bi(s)}handleError(e){if(e instanceof io&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof bi)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return tS(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(ci(this._cursor.peek()),this._cursor.getSpan(t))}_attemptStr(e){let t=e.length;if(this._cursor.charsLeft()this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(e){this._beginToken(12,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(e){this._beginToken(18,e);let t=this._cursor.clone();this._attemptUntilChar(ns);let s=this._cursor.getChars(t);this._cursor.advance(),this._endToken([s])}_consumePrefixAndName(){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==is&&!K0(this._cursor.peek());)this._cursor.advance();let s;this._cursor.peek()===is?(t=this._cursor.getChars(e),this._cursor.advance(),s=this._cursor.clone()):s=e,this._requireCharCodeUntilFn(wf,t===""?0:1);let r=this._cursor.getChars(s);return[t,r]}_consumeTagOpen(e){let t,s,r;try{if(!Qi(this._cursor.peek()))throw this._createError(ci(this._cursor.peek()),this._cursor.getSpan(e));for(r=this._consumeTagOpenStart(e),s=r.parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(Ae);this._cursor.peek()!==Pn&&this._cursor.peek()!==ns&&this._cursor.peek()!==gr&&this._cursor.peek()!==Ge;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ae),this._attemptCharCode(Ts)&&(this._attemptCharCodeUntilFn(Ae),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ae);this._consumeTagOpenEnd()}catch(o){if(o instanceof bi){r?r.type=4:(this._beginToken(5,e),this._endToken(["<"]));return}throw o}let i=this._getTagDefinition(t).getContentType(s);i===mn.RAW_TEXT?this._consumeRawTextWithTagClose(s,t,!1):i===mn.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(s,t,!0)}_consumeRawTextWithTagClose(e,t,s){this._consumeRawText(s,()=>!this._attemptCharCode(gr)||!this._attemptCharCode(Pn)||(this._attemptCharCodeUntilFn(Ae),!this._attemptStrCaseInsensitive(t))?!1:(this._attemptCharCodeUntilFn(Ae),this._attemptCharCode(ns))),this._beginToken(3),this._requireCharCodeUntilFn(r=>r===ns,3),this._cursor.advance(),this._endToken([e,t])}_consumeTagOpenStart(e){this._beginToken(0,e);let t=this._consumePrefixAndName();return this._endToken(t)}_consumeAttributeName(){let e=this._cursor.peek();if(e===zi||e===Wi)throw this._createError(ci(e),this._cursor.getSpan());this._beginToken(14);let t=this._consumePrefixAndName();this._endToken(t)}_consumeAttributeValue(){if(this._cursor.peek()===zi||this._cursor.peek()===Wi){let e=this._cursor.peek();this._consumeQuote(e);let t=()=>this._cursor.peek()===e;this._consumeWithInterpolation(16,17,t,t),this._consumeQuote(e)}else{let e=()=>wf(this._cursor.peek());this._consumeWithInterpolation(16,17,e,e)}}_consumeQuote(e){this._beginToken(15),this._requireCharCode(e),this._endToken([String.fromCodePoint(e)])}_consumeTagOpenEnd(){let e=this._attemptCharCode(Pn)?2:1;this._beginToken(e),this._requireCharCode(ns),this._endToken([])}_consumeTagClose(e){this._beginToken(3,e),this._attemptCharCodeUntilFn(Ae);let t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Ae),this._requireCharCode(ns),this._endToken(t)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(vn),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let e=this._readUntil(Ot),t=this._processCarriageReturns(e);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([t]);else{let r=this._endToken([e]);t!==e&&this.nonNormalizedIcuExpressions.push(r)}this._requireCharCode(Ot),this._attemptCharCodeUntilFn(Ae),this._beginToken(7);let s=this._readUntil(Ot);this._endToken([s]),this._requireCharCode(Ot),this._attemptCharCodeUntilFn(Ae)}_consumeExpansionCaseStart(){this._beginToken(20);let e=this._readUntil(vn).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ae),this._beginToken(21),this._requireCharCode(vn),this._endToken([]),this._attemptCharCodeUntilFn(Ae),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(rt),this._endToken([]),this._attemptCharCodeUntilFn(Ae),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(rt),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(e,t,s,r){this._beginToken(e);let i=[];for(;!s();){let o=this._cursor.clone();this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(this._endToken([this._processCarriageReturns(i.join(""))],o),i.length=0,this._consumeInterpolation(t,o,r),this._beginToken(e)):this._cursor.peek()===Da?(this._endToken([this._processCarriageReturns(i.join(""))]),i.length=0,this._consumeEntity(e),this._beginToken(e)):i.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(i.join(""))])}_consumeInterpolation(e,t,s){let r=[];this._beginToken(e,t),r.push(this._interpolationConfig.start);let i=this._cursor.clone(),o=null,a=!1;for(;this._cursor.peek()!==Ge&&(s===null||!s());){let l=this._cursor.clone();if(this._isTagStart()){this._cursor=l,r.push(this._getProcessedChars(i,l)),this._endToken(r);return}if(o===null)if(this._attemptStr(this._interpolationConfig.end)){r.push(this._getProcessedChars(i,l)),r.push(this._interpolationConfig.end),this._endToken(r);return}else this._attemptStr("//")&&(a=!0);let c=this._cursor.peek();this._cursor.advance(),c===wi?this._cursor.advance():c===o?o=null:!a&&o===null&&yi(c)&&(o=c)}r.push(this._getProcessedChars(i,this._cursor)),this._endToken(r)}_getProcessedChars(e,t){return this._processCarriageReturns(t.getChars(e))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===Ge||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===rt&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._cursor.peek()===ec||this._cursor.peek()===rt))}_isTagStart(){if(this._cursor.peek()===gr){let e=this._cursor.clone();e.advance();let t=e.peek();if(Us<=t&&t<=fo||Gr<=t&&t<=fl||t===Pn||t===zc)return!0}return!1}_readUntil(e){let t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==vn)return!1;if(this._interpolationConfig){let e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0}};function Ae(n){return!Gi(n)||n===Ge}function wf(n){return Gi(n)||n===ns||n===gr||n===Pn||n===zi||n===Wi||n===Ts||n===Ge}function K0(n){return(nTm)}function Z0(n){return n===ft||n===Ge||!ny(n)}function J0(n){return n===ft||n===Ge||!Qi(n)}function eS(n){return n!==rt}function tS(n,e){return yf(n)===yf(e)}function yf(n){return n>=Us&&n<=fo?n-Us+Gr:n}function nS(n){return Qi(n)||fn(n)||n===po}function Ef(n){return n!==ft&&Ae(n)}function sS(n){let e=[],t;for(let s=0;s0&&t.indexOf(e.peek())!==-1;)s===e&&(e=e.clone()),e.advance();let r=this.locationFromCursor(e),i=this.locationFromCursor(this),o=s!==e?this.locationFromCursor(s):r;return new $(r,i,o)}getChars(e){return this.input.substring(e.state.offset,this.state.offset)}charAt(e){return this.input.charCodeAt(e)}advanceState(e){if(e.offset>=this.end)throw this.state=e,new io('Unexpected character "EOF"',this);let t=this.charAt(e.offset);t===Ns?(e.line++,e.column=0):ch(t)||e.column++,e.offset++,this.updatePeek(e)}updatePeek(e){e.peek=e.offset>=this.end?Ge:this.charAt(e.offset)}locationFromCursor(e){return new Xi(e.file,e.state.offset,e.state.line,e.state.column)}},bu=class n extends Ja{constructor(e,t){e instanceof n?(super(e),this.internalState=E({},e.internalState)):(super(e,t),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new n(this)}getChars(e){let t=e.clone(),s="";for(;t.internalState.offsetthis.internalState.peek;if(e()===wi)if(this.internalState=E({},this.state),this.advanceState(this.internalState),e()===km)this.state.peek=Ns;else if(e()===Im)this.state.peek=oh;else if(e()===Nm)this.state.peek=Sm;else if(e()===Pm)this.state.peek=ih;else if(e()===Jw)this.state.peek=Ww;else if(e()===lh)this.state.peek=bm;else if(e()===Dm)if(this.advanceState(this.internalState),e()===vn){this.advanceState(this.internalState);let t=this.clone(),s=0;for(;e()!==rt;)this.advanceState(this.internalState),s++;this.state.peek=this.decodeHexDigits(t,s)}else{let t=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,4)}else if(e()===Mm){this.advanceState(this.internalState);let t=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(t,2)}else if(Rd(e())){let t="",s=0,r=this.clone();for(;Rd(e())&&s<3;)r=this.clone(),t+=String.fromCodePoint(e()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(t,8),this.internalState=r.internalState}else ch(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(e,t){let s=this.input.slice(e.internalState.offset,e.internalState.offset+t),r=parseInt(s,16);if(isNaN(r))throw e.state=e.internalState,new io("Invalid hexadecimal escape sequence",e);return r}},io=class{constructor(e,t){this.msg=e,this.cursor=t}},$e=class n extends R{static create(e,t,s){return new n(e,t,s)}constructor(e,t,s){super(t,s),this.elementName=e}},el=class{constructor(e,t){this.rootNodes=e,this.errors=t}},xu=class{constructor(e){this.getTagDefinition=e}parse(e,t,s){let r=Q0(e,t,this.getTagDefinition,s),i=new Cu(r.tokens,this.getTagDefinition);return i.build(),new el(i.rootNodes,r.errors.concat(i.errors))}},Cu=class n{constructor(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._containerStack=[],this.rootNodes=[],this.errors=[],this._advance()}build(){for(;this._peek.type!==33;)this._peek.type===0||this._peek.type===4?this._consumeStartTag(this._advance()):this._peek.type===3?this._consumeEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._advance();for(let e of this._containerStack)e instanceof Nt&&this.errors.push($e.create(e.name,e.sourceSpan,`Unclosed block "${e.name}"`))}_advance(){let e=this._peek;return this._index0)return this.errors=this.errors.concat(i.errors),null;let o=new $(e.sourceSpan.start,r.sourceSpan.end,e.sourceSpan.fullStart),a=new $(t.sourceSpan.start,r.sourceSpan.end,t.sourceSpan.fullStart);return new du(e.parts[0],i.rootNodes,o,e.sourceSpan,a)}_collectExpansionExpTokens(e){let t=[],s=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&s.push(this._peek.type),this._peek.type===22)if(Sf(s,21)){if(s.pop(),s.length===0)return t}else return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(Sf(s,19))s.pop();else return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===33)return this.errors.push($e.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}}_consumeText(e){let t=[e],s=e.sourceSpan,r=e.parts[0];if(r.length>0&&r[0]===` -`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(r=r.substring(1),t[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[r]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),t.push(e),e.type===8?r+=e.parts.join("").replace(/&([^;]+);/g,bf):e.type===9?r+=e.parts[0]:r+=e.parts.join("");if(r.length>0){let i=e.sourceSpan;this._addToParent(new zs(r,new $(s.start,i.end,s.fullStart,s.details),t))}}_closeVoidElement(){let e=this._getContainer();e instanceof It&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[t,s]=e.parts,r=[];for(;this._peek.type===14;)r.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(t,s,this._getClosestParentElement()),o=!1;if(this._peek.type===2){this._advance(),o=!0;let f=this.getTagDefinition(i);f.canSelfClose||Fc(i)!==null||f.isVoid||this.errors.push($e.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),o=!1);let a=this._peek.sourceSpan.fullStart,l=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),c=new $(e.sourceSpan.start,a,e.sourceSpan.fullStart),u=new It(i,r,[],l,c,void 0),p=this._getContainer();this._pushContainer(u,p instanceof It&&this.getTagDefinition(p.name).isClosedByChild(u.name)),o?this._popContainer(i,It,l):e.type===4&&(this._popContainer(i,It,null),this.errors.push($e.create(i,l,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,t){t&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let t=this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(this.getTagDefinition(t).isVoid)this.errors.push($e.create(t,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(t,It,e.sourceSpan)){let s=`Unexpected closing tag "${t}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push($e.create(t,e.sourceSpan,s))}}_popContainer(e,t,s){let r=!1;for(let i=this._containerStack.length-1;i>=0;i--){let o=this._containerStack[i];if((o.name===e||e===null)&&o instanceof t)return o.endSourceSpan=s,o.sourceSpan.end=s!==null?s.end:o.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!r;(o instanceof Nt||o instanceof It&&!this.getTagDefinition(o.name).closedByParent)&&(r=!0)}return!1}_consumeAttr(e){let t=Bc(e.parts[0],e.parts[1]),s=e.sourceSpan.end;this._peek.type===15&&this._advance();let r="",i=[],o,a;if(this._peek.type===16)for(o=this._peek.sourceSpan,a=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let u=this._advance();i.push(u),u.type===17?r+=u.parts.join("").replace(/&([^;]+);/g,bf):u.type===9?r+=u.parts[0]:r+=u.parts.join(""),a=s=u.sourceSpan.end}this._peek.type===15&&(s=this._advance().sourceSpan.end);let c=o&&a&&new $(o.start,a,o.fullStart);return new fu(t,r,new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),e.sourceSpan,c,i.length>0?i:void 0,void 0)}_consumeBlockOpen(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new Ya(a.parts[0],a.sourceSpan))}this._peek.type===25&&this._advance();let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Nt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1)}_consumeBlockClose(e){this._popContainer(null,Nt,e.sourceSpan)||this.errors.push($e.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "}" HTML entity instead.'))}_consumeIncompleteBlock(e){let t=[];for(;this._peek.type===27;){let a=this._advance();t.push(new Ya(a.parts[0],a.sourceSpan))}let s=this._peek.sourceSpan.fullStart,r=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),i=new $(e.sourceSpan.start,s,e.sourceSpan.fullStart),o=new Nt(e.parts[0],t,[],r,e.sourceSpan,i);this._pushContainer(o,!1),this._popContainer(null,Nt,null),this.errors.push($e.create(e.parts[0],r,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(e){let t=e.parts[0],s,r;if(this._peek.type!==30){this.errors.push($e.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${t}". Declaration must have a value.`));return}else s=this._advance();if(this._peek.type!==31){this.errors.push($e.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${t}". Declaration must be terminated with a semicolon.`));return}else r=this._advance();let i=r.sourceSpan.fullStart,o=new $(e.sourceSpan.start,i,e.sourceSpan.fullStart),a=e.sourceSpan.toString().lastIndexOf(t),l=e.sourceSpan.start.moveBy(a),c=new $(l,e.sourceSpan.end),u=new Ka(t,s.parts[0],o,c,s.sourceSpan);this._addToParent(u)}_consumeIncompleteLet(e){let t=e.parts[0]??"",s=t?` "${t}"`:"";if(t.length>0){let r=e.sourceSpan.toString().lastIndexOf(t),i=e.sourceSpan.start.moveBy(r),o=new $(i,e.sourceSpan.end),a=new $(e.sourceSpan.start,e.sourceSpan.start.moveBy(0)),l=new Ka(t,"",e.sourceSpan,o,a);this._addToParent(l)}this.errors.push($e.create(e.parts[0],e.sourceSpan,`Incomplete @let declaration${s}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestParentElement(){for(let e=this._containerStack.length-1;e>-1;e--)if(this._containerStack[e]instanceof It)return this._containerStack[e];return null}_addToParent(e){let t=this._getContainer();t===null?this.rootNodes.push(e):t.children.push(e)}_getElementFullName(e,t,s){if(e===""&&(e=this.getTagDefinition(t).implicitNamespacePrefix||"",e===""&&s!=null)){let r=Kt(s.name)[1];this.getTagDefinition(r).preventNamespaceInheritance||(e=Fc(s.name))}return Bc(e,t)}};function Sf(n,e){return n.length>0&&n[n.length-1]===e}function bf(n,e){return Za[e]!==void 0?Za[e]||n:/^#x[a-f0-9]+$/i.test(e)?String.fromCodePoint(parseInt(e.slice(2),16)):/^#\d+$/.test(e)?String.fromCodePoint(parseInt(e.slice(1),10)):n}var xf=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","object|codebase","object|data"]);function rS(n,e){return n=n.toLowerCase(),e=e.toLowerCase(),xf.has(n+"|"+e)||xf.has("*|"+e)}var iS=(n,e)=>(n instanceof gs&&(e instanceof Br&&n.i18n instanceof tt&&(e.previousMessage=n.i18n),n.i18n=e),e),tl=class{constructor(e=gn,t=!1,s=!1,r=jw){this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=s,this.containerBlocks=r,this.hasI18nMeta=!1,this._errors=[]}_generateI18nMessage(e,t="",s){let{meaning:r,description:i,customId:o}=this._parseMetadata(t),l=q0(this.interpolationConfig,this.containerBlocks)(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(Ow(e)){this.hasI18nMeta=!0;let s=[],r={};for(let i of e.attrs)if(i.name===vm){let o=e.i18n||i.value;t=this._generateI18nMessage(e.children,o,iS),t.nodes.length===0&&(t=void 0),e.i18n=t}else if(i.name.startsWith(Wc)){let o=i.name.slice(Wc.length);rS(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 de(this,e.children,t),e}visitExpansion(e,t){let s,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof Br){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 de(this,e.children,t),e}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}_parseMetadata(e){return typeof e=="string"?lS(e):e instanceof tt?e:{}}_setMessageId(e,t){e.id||(e.id=t instanceof tt&&t.id||Vv(e))}_setLegacyIds(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[$v(e),um(e)];else if(typeof t!="string"){let s=t instanceof tt?t:t instanceof Br?t.previousMessage:void 0;e.legacyIds=s?s.legacyIds:[]}}_reportError(e,t){this._errors.push(new wu(e.sourceSpan,t))}},oS="|",aS="@@";function lS(n=""){let e,t,s;if(n=n.trim(),n){let r=n.indexOf(aS),i=n.indexOf(oS),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 cS(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}),tw(e)}var uS="goog.getMsg";function hS(n,e,t,s){let r=dS(e),i=[v(r)];Object.keys(s).length&&(i.push(au(nh(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(uS).callFn(i)).toConstDecl();o.addLeadingComment(cS(e));let a=new Ut(n.set(t));return[o,a]}var _u=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 Xm(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)}},pS=new _u;function dS(n){return n.nodes.map(e=>e.visit(pS,null)).join("")}function fS(n,e,t){let{messageParts:s,placeHolders:r}=mS(e),i=gS(e),o=r.map(c=>t[c.text]),a=rw(e,s,r,o,i),l=n.set(a);return[new Ut(l)]}var Au=class{constructor(e,t){this.placeholderToMessage=e,this.pieces=t}visitText(e){if(this.pieces[this.pieces.length-1]instanceof Is)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 Is(e.value,t))}}visitContainer(e){e.children.forEach(t=>t.visit(this))}visitIcu(e){this.pieces.push(new Is(Xm(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 Er(ho(e,!1),t,s)}};function mS(n){let e=[],t=new Au(n.placeholderToMessage,e);return n.nodes.forEach(s=>s.visit(t)),vS(e)}function gS(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 vS(n){let e=[],t=[];n[0]instanceof Er&&e.push(cc(n[0].sourceSpan.start));for(let s=0;s{let y=f.has(w.name);return f.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 Jm(n,e,t,s){let r=[],i=new Map;for(let c of s.subMessages){let u=t.get(c),{mainVar:p,statements:f}=Jm(n,e,t,u);r.push(...f);let g=i.get(u.messagePlaceholder)??[];g.push(p),i.set(u.messagePlaceholder,g)}xS(s,i),s.params=new Map([...s.params.entries()].sort());let o=H(n.pool.uniqueName(wS)),a=AS(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=nh(c,!1),p=[];s.postprocessingParams.size>0&&p.push(au(u,!0)),l=f=>T(d.i18nPostprocess).callFn([f,...p])}return r.push(...CS(s.message,o,a,s.params,l)),{mainVar:o,statements:r}}function xS(n,e){for(let[t,s]of e)s.length===1?n.params.set(t,s[0]):(n.params.set(t,v(`${_f}${yS}${t}${_f}`)),n.postprocessingParams.set(t,se(s)))}function CS(n,e,t,s,r){let i=Object.fromEntries(s),o=[SS(e),pl(_S(),hS(e,n,t,i),fS(e,n,nh(i,!1)))];return r&&o.push(new Ut(e.set(r(e)))),o}function _S(){return hl(H(Cf)).notIdentical(v("undefined",dm)).and(H(Cf))}function AS(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 TS(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=mE(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,f=c?Ki.Postproccessing:Ki.Creation,g=[];for(let w=0;w0){let s=IS(t.localRefs);t.localRefs=n.addConst(s)}else t.localRefs=null;break}}function IS(n){let e=[];for(let t of n)e.push(v(t.name),v(t.target));return se(e)}function PS(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(aE(s.namespace),s),t=s.namespace)}}function DS(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 eg(n){return n.replace(/[a-z][A-Z]/g,e=>e.charAt(0)+"-"+e.charAt(1)).toLowerCase()}function NS(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===I.Attribute&&qm(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=DS(s.expression.value);for(let o=0;o{if(!(!(o instanceof ds)||o.name!==null)){if(!r.has(o.xref))throw new Error(`Variable ${o.xref} not yet named`);o.name=r.get(o.xref)}})}function LS(n,e,t){if(e.name===null)switch(e.kind){case Le.Context:e.name=`ctx_r${t.index++}`;break;case Le.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 FS(n){return n.startsWith("--")?n:eg(n)}function Tf(n){let e=n.indexOf("!important");return e>-1?n.substring(0,e):n}function BS(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(!xn(i))return i;if(s&&!(o&Y.InChildOperation))switch(i.kind){case k.NextContext:i.steps+=t,S.remove(e),s=!1;break;case k.GetCurrentView:case k.Reference:case k.ContextLetReference:s=!1;break}})}}var OS="ng-container";function RS(n){for(let e of n.units){let t=new Set;for(let s of e.create)s.kind===h.ElementStart&&s.tag===OS&&(s.kind=h.ContainerStart,t.add(s.xref)),s.kind===h.ElementEnd&&t.has(s.xref)&&(s.kind=h.ContainerEnd)}}function $S(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 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)(s.kind===h.ElementStart||s.kind===h.ContainerStart)&&s.nonBindable&&S.insertAfter(iE(s.xref),s),(s.kind===h.ElementEnd||s.kind===h.ContainerEnd)&&$S(e,s.xref).nonBindable&&S.insertBefore(oE(s.xref),s)}function qS(n){for(let e of n.units)for(let t of e.ops())ke(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 Rn(new Q(A.And,new Q(A.NotIdentical,r,Ii),new Q(A.NotIdentical,i,new je(void 0))),i.clone(),s.rhs)},Y.None)}function Dn(n){return e=>e.kind===n}function xi(n,e){return t=>t.kind===n&&e===t.expression instanceof Se}function US(n){return n.kind===h.Listener&&!(n.hostListener&&n.isAnimationListener)||n.kind===h.TwoWayListener}function HS(n){return(n.kind===h.Property||n.kind===h.TwoWayProperty)&&!(n.expression instanceof Se)}var jS=[{test:n=>n.kind===h.Listener&&n.hostListener&&n.isAnimationListener},{test:US}],WS=[{test:Dn(h.StyleMap),transform:nl},{test:Dn(h.ClassMap),transform:nl},{test:Dn(h.StyleProp)},{test:Dn(h.ClassProp)},{test:xi(h.Attribute,!0)},{test:xi(h.Property,!0)},{test:HS},{test:xi(h.Attribute,!1)}],zS=[{test:xi(h.HostProperty,!0)},{test:xi(h.HostProperty,!1)},{test:Dn(h.Attribute)},{test:Dn(h.StyleMap),transform:nl},{test:Dn(h.ClassMap),transform:nl},{test:Dn(h.StyleProp)},{test:Dn(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 GS(n){for(let e of n.units){Pf(e.create,jS);let t=e.job.kind===C.Host?zS:WS;Pf(e.update,t)}}function Pf(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(Df(t,e),r),t=[],s=null),If.has(r.kind)&&(t.push(r),S.remove(r),s=i??s)}n.push(Df(t,e))}function Df(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 nl(n){return n.slice(n.length-1)}function QS(n){for(let e of n.units){let t=mh(e);for(let s of e.ops())switch(s.kind){case h.Binding:let r=YS(t,s.target);XS(s.name)&&r.kind===h.Projection&&S.remove(s);break}}}function XS(n){return n.toLowerCase()==="select"}function YS(n,e){let t=n.get(e);if(t===void 0)throw new Error("All attributes should have an slottable target.");return t}function KS(n){for(let e of n.units)ZS(e)}function ZS(n){for(let e of n.update)Ye(e,(t,s)=>{if(xn(t)&&t.kind===k.PipeBinding){if(s&Y.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");JS(n,e.target,t)}else n.create.push(jm(t.target,t.targetSlot,t.name))}})}function JS(n,e,t){for(let s=n.create.head.next;s.kind!==h.ListEnd;s=s.next){if(!Yr(s)||s.xref!==e)continue;for(;s.next.kind===h.Pipe;)s=s.next;let r=jm(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 eb(n){for(let e of n.units)for(let t of e.update)ke(t,s=>!(s instanceof Ws)||s.args.length<=4?s:new Ua(s.target,s.targetSlot,s.name,se(s.args),s.args.length),Y.None)}function tb(n){tg(n.root,0)}function tg(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=uc(n.job.views.get(s.xref),t,s.i18nPlaceholder,e);break;case h.RepeaterCreate:let r=n.job.views.get(s.xref);e=uc(r,t,s.i18nPlaceholder,e),s.emptyView!==null&&(e=uc(n.job.views.get(s.emptyView),t,s.emptyI18nPlaceholder,e));break}return e}function uc(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++,nb(n,e)}return tg(n,s)}function nb(n,e){if(n.create.head.next?.kind!==h.I18nStart){let t=n.job.allocateXrefId();S.insertAfter(wl(t,e.message,e.root,null),n.create.head),S.insertBefore(yl(t,null),n.create.tail)}}function sb(n){for(let e of n.units)for(let t of e.ops())Ye(t,s=>{if(!(s instanceof js)||s.body===null)return;let r=new Tu(s.args.length);s.fn=n.pool.getSharedConstant(r,s.body),s.body=null})}var Tu=class extends Sr{constructor(e){super(),this.numArgs=e}keyOf(e){return e instanceof Or?`param(${e.index})`:super.keyOf(e)}toSharedConstantDeclaration(e,t){let s=[];for(let i=0;ii instanceof Or?H("a"+i.index):i,Y.None);return new Xe(e,new Bs(s,r),void 0,Ue.Final)}};function rb(n){for(let e of n.units)for(let t of e.update)ke(t,(s,r)=>r&Y.InChildOperation?s:s instanceof qt?ib(s):s instanceof Yt?ob(s):s,Y.None)}function ib(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 Or(r))}return new js(se(e),t)}function ob(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 Tr(s.key,new Or(r),s.quoted))}return new js(st(e),t)}function ab(n,e,t,s,r){return El(d.element,n,e,t,s,r)}function lb(n,e,t,s,r){return El(d.elementStart,n,e,t,s,r)}function El(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 cb(n){return z(d.elementEnd,[],n)}function ub(n,e,t,s){return El(d.elementContainerStart,n,null,e,t,s)}function hb(n,e,t,s){return El(d.elementContainer,n,null,e,t,s)}function pb(){return z(d.elementContainerEnd,[],null)}function db(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 fb(){return z(d.disableBindings,[],null)}function mb(){return z(d.enableBindings,[],null)}function gb(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 Nf(n,e){return T(d.twoWayBindingSet).callFn([n,e])}function vb(n,e,t){return z(d.twoWayListener,[v(n),e],t)}function wb(n,e){return z(d.pipe,[v(n),v(e)],null)}function yb(){return z(d.namespaceHTML,[],null)}function Eb(){return z(d.namespaceSVG,[],null)}function Sb(){return z(d.namespaceMathML,[],null)}function bb(n,e){return z(d.advance,n>1?[v(n)]:[],e)}function xb(n){return T(d.reference).callFn([v(n)])}function Cb(n){return T(d.nextContext).callFn(n===1?[]:[v(n)])}function _b(){return T(d.getCurrentView).callFn([])}function Ab(n){return T(d.restoreView).callFn([n])}function Tb(n){return T(d.resetView).callFn([n])}function kb(n,e,t){let s=[v(n,null)];return e!==""&&s.push(v(e)),z(d.text,s,t)}function Ib(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 Pb=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 Db(n,e,t,s){let r=Pb.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 Nb(n){return z(d.projectionDef,n?[n]:[],null)}function Mb(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 Lb(n,e,t,s){let r=[v(n),v(e)];return t!==null&&r.push(v(t)),z(d.i18nStart,r,s)}function Fb(n,e,t,s,r,i,o,a,l,c,u,p,f,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||f!==null)&&w.push(v(p)),f!==null&&w.push(v(f)))),z(d.repeaterCreate,w,g)}function Bb(n,e){return z(d.repeater,[n],e)}function Ob(n,e,t){return z(n?d.deferPrefetchWhen:d.deferWhen,[e],t)}function Rb(n,e){return z(d.declareLet,[v(n)],e)}function $b(n,e){return T(d.storeLet).callFn([n],e)}function Vb(n){return T(d.readContextLet).callFn([v(n)])}function qb(n,e,t,s){let r=[v(n),v(e)];return t&&r.push(v(t)),z(d.i18n,r,s)}function Ub(n){return z(d.i18nEnd,[],n)}function Hb(n,e){let t=[v(n),v(e)];return z(d.i18nAttributes,t,null)}function jb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.property,r,s)}function Wb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.twoWayProperty,r,s)}function zb(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 Gb(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(v(t)),z(d.styleProp,r,s)}function Qb(n,e,t){return z(d.classProp,[v(n),e],t)}function Xb(n,e){return z(d.styleMap,[n],e)}function Yb(n,e){return z(d.classMap,[n],e)}var Mf=[d.pipeBind1,d.pipeBind2,d.pipeBind3,d.pipeBind4];function Kb(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 Zb(n,e,t){return T(d.pipeBindV).callFn([v(n),v(e),t])}function Jb(n,e,t){let s=Kr(n,e);return Zr(h2,[],s,[],t)}function e2(n,e){return z(d.i18nExp,[n],e)}function t2(n,e){return z(d.i18nApply,[v(n)],e)}function n2(n,e,t,s,r){let i=Kr(e,t),o=[];return s!==null&&o.push(s),Zr(p2,[v(n)],i,o,r)}function s2(n,e,t,s,r){let i=Kr(e,t),o=[];return s!==null&&o.push(s),Zr(f2,[v(n)],i,o,r)}function r2(n,e,t,s,r){let i=Kr(e,t),o=[];return s!==null&&o.push(v(s)),Zr(d2,[v(n)],i,o,r)}function i2(n,e,t){let s=Kr(n,e);return Zr(m2,[],s,[],t)}function o2(n,e,t){let s=Kr(n,e);return Zr(g2,[],s,[],t)}function a2(n,e,t,s){let r=[v(n),e];return t!==null&&r.push(t),z(d.hostProperty,r,s)}function l2(n,e,t){return z(d.syntheticHostProperty,[v(n),e],t)}function c2(n,e,t){return ng(v2,[v(n),e],t,[],null)}function Kr(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}},p2={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}},d2={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}},f2={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}},m2={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}},g2={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}},v2={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 ng(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},Y.None)}function _2(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)&&ke(e,t=>t instanceof qe&&t.name==="$event"?(e.kind===h.Listener&&(e.consumesDollarEvent=!0),new Vt(t.name)):t,Y.InChildOperation)}function A2(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}ts(n,n.root,e,t)}function ts(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");Of(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),Of(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)ts(n,c,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");a.templateKind===wt.Structural?ts(n,c,t,s,a):(hc(n,c,a.handle.slot,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),ts(n,c,t,s),pc(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)ts(n,p,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");hc(n,p,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),ts(n,p,t,s),pc(n,p,u,a.i18nPlaceholder,i.i18nContext,i.i18nBlock,r),r=void 0}if(a.emptyView!==null){let f=a.handle.slot+2,g=n.views.get(a.emptyView);if(a.emptyI18nPlaceholder===void 0)ts(n,g,t,s);else{if(i===null)throw Error("i18n tag placeholder should only occur inside an i18n block");hc(n,g,f,a.emptyI18nPlaceholder,i.i18nContext,i.i18nBlock,r),ts(n,g,t,s),pc(n,g,f,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 Of(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 hc(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,ig(n,i,e),c)}function pc(n,e,t,s,r,i,o){let{closeName:a}=s,l=oe.TemplateTag|oe.CloseTag;a&&(jr(r.params,a,t,ig(n,i,e),l),o!==void 0&&jr(r.params,a,o.handle.slot,i.subTemplateIndex,l))}function ig(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 T2(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===Qr.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};k2(a,u,t,s),r.set(i(a),l+1)}}function k2(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 I2(n){for(let e of n.units)Iu(e,e.create,null),Iu(e,e.update,null)}function Iu(n,e,t){let s=new Map;for(let r of e)switch(r.kind){case h.Variable:switch(r.variable.kind){case Le.Identifier:case Le.Alias:if(s.has(r.variable.identifier))continue;s.set(r.variable.identifier,r.xref);break;case Le.SavedView:t={view:r.variable.view,variable:r.xref};break}break;case h.Listener:case h.TwoWayListener:Iu(n,r.handlerOps,t);break}for(let r of e)r.kind==h.Listener||r.kind===h.TwoWayListener||ke(r,i=>{if(i instanceof qe)return s.has(i.name)?new ds(s.get(i.name)):new Et(new qn(n.job.root.xref),i.name);if(i instanceof Va&&typeof i.view=="number"){if(t===null||t.view!==i.view)throw new Error(`AssertionError: no saved view ${i.view} from view ${n.xref}`);return i.view=new ds(t.variable),i}else return i},Y.None);for(let r of e)Ye(r,i=>{if(i instanceof qe)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${i.name}`)})}var P2=new Map([[le.HTML,d.sanitizeHtml],[le.RESOURCE_URL,d.sanitizeResourceUrl],[le.SCRIPT,d.sanitizeScript],[le.STYLE,d.sanitizeStyle],[le.URL,d.sanitizeUrl]]),D2=new Map([[le.HTML,d.trustConstantHtml],[le.RESOURCE_URL,d.trustConstantResourceUrl]]);function N2(n){for(let e of n.units){let t=mh(e);if(n.kind!==C.Host){for(let s of e.create)if(s.kind===h.ExtractedAttribute){let r=D2.get(Rf(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=P2.get(Rf(s.securityContext))??null,s.sanitizer=r!==null?T(r):null,s.sanitizer===null){let i=!1;if(n.kind===C.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=M2(o)}i&&N0(s.name)&&(s.sanitizer=T(d.validateIframeAttribute))}break}}}function M2(n){return n.kind===h.ElementStart&&n.tag?.toLowerCase()==="iframe"}function Rf(n){if(Array.isArray(n)){if(n.length>1)throw Error("AssertionError: Ambiguous security context");return n[0]||le.NONE}return n}function L2(n){for(let e of n.units)for(let t of e.create)t.kind===h.TwoWayListener&&ke(t,s=>{if(!(s instanceof qa))return s;let{target:r,value:i}=s;if(r instanceof Et||r instanceof $n)return Nf(r,i).or(r.set(i));if(r instanceof ds)return Nf(r,i);throw new Error("Unsupported expression in two-way action binding.")},Y.InChildOperation)}function F2(n){for(let e of n.units){e.create.prepend([os(e.job.allocateXrefId(),{kind:Le.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 Oa||i instanceof Ji)&&(s=!0)});s&&B2(e,t)}}}function B2(n,e){e.handlerOps.prepend([os(n.job.allocateXrefId(),{kind:Le.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 O2(n){let e=new Map;for(let t of n.units){let s=0;for(let r of t.create)Yr(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 R2(n){for(let e of n.units)for(let t of e.update)if(t.kind===h.Binding)switch(t.bindingKind){case I.ClassName:if(t.expression instanceof Se)throw new Error("Unexpected interpolation in ClassName binding");S.replace(t,zy(t.target,t.name,t.expression,t.sourceSpan));break;case I.StyleProperty:S.replace(t,Wy(t.target,t.name,t.expression,t.unit,t.sourceSpan));break;case I.Property:case I.Template:t.name==="style"?S.replace(t,Gy(t.target,t.expression,t.sourceSpan)):t.name==="class"&&S.replace(t,Qy(t.target,t.expression,t.sourceSpan));break}}function $2(n){for(let e of n.units)e.create.prepend(Pu(e.create)),e.update.prepend(Pu(e.update))}function Pu(n){let e=0,t=[];for(let s of n){let r=new Map;Ye(s,(c,u)=>{u&Y.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&Y.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=>bn(new Xe(c)))),e++,(s.kind===h.Listener||s.kind===h.TwoWayListener)&&s.handlerOps.prepend(Pu(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 V2(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=_(t.track,o=>{if(o instanceof Ws||o instanceof Ua)throw new Error("Illegal State: Pipes are not allowed in this context");return o instanceof Ra?(s=!0,H("this")):o},Y.None);let r,i=[new Fe("$index"),new Fe("$item")];s?r=new Ln(i,[new ot(t.track)]):r=Sn(i,t.track),t.trackByFn=n.pool.getSharedFunctionReference(r,"_forTrack")}}function q2(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):U2(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=_(t.track,s=>s instanceof qn?(t.usesComponentInstance=!0,new Ra(s.view)):s,Y.None))}function U2(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 H2(n){for(let e of n.units)for(let t of e.create)t.kind===h.RepeaterCreate&&(t.track=_(t.track,s=>{if(s instanceof qe){if(t.varNames.$index.has(s.name))return H("$index");if(s.name===t.varNames.$implicit)return H("$item")}return s},Y.None))}function j2(n){for(let e of n.units){let t=0;for(let s of e.ops())sc(s)&&(t+=W2(s));for(let s of e.ops())Ye(s,r=>{xn(r)&&(n.compatibility===St.TemplateDefinitionBuilder&&r instanceof js||(Gd(r)&&(r.varOffset=t),sc(r)&&(t+=Vf(r))))});if(n.compatibility===St.TemplateDefinitionBuilder)for(let s of e.ops())Ye(s,r=>{!xn(r)||!(r instanceof js)||(Gd(r)&&(r.varOffset=t),sc(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 W2(n){let e;switch(n.kind){case h.Property:case h.HostProperty:case h.Attribute:return e=1,n.expression instanceof Se&&!z2(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 Se&&(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 k.PureFunctionExpr:return 1+n.args.length;case k.PipeBinding:return 1+n.args.length;case k.PipeBindingVariadic:return 1+n.numArgs;case k.StoreLet:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}function z2(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function G2(n){for(let e of n.units){dc(e.create),dc(e.update);for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&dc(t.handlerOps);fc(e.create,n.compatibility),fc(e.update,n.compatibility);for(let t of e.create)(t.kind===h.Listener||t.kind===h.TwoWayListener)&&fc(t.handlerOps,n.compatibility)}}var Te=function(n){return n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful",n}(Te||{});function dc(n){let e=new Map;for(let t of n)t.kind===h.Variable&&t.flags&Lt.AlwaysInline&&(Ye(t,s=>{if(xn(s)&&gh(s)!==Te.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),e.set(t.xref,t)),ke(t,s=>s instanceof ds&&e.has(s.xref)?e.get(s.xref).initializer.clone():s,Y.None);for(let t of e.values())S.remove(t)}function fc(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,Q2(c)),X2(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&Te.ViewContextWrite||u.fences&Te.SideEffectful){let p=bn(c.initializer.toStmt());i.set(p,u),S.replace(c,p)}else Y2(c,s),S.remove(c);i.delete(c),t.delete(c.xref),s.delete(c.xref);continue}u.fences&Te.ViewContextRead&&(o=!0)}let a=[];for(let[c,u]of s){let f=!!(t.get(c).flags&Lt.AlwaysInline);u!==1||f||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 f=c.next;f.kind!==h.ListEnd;f=f.next){let g=i.get(f);if(g.variablesUsed.has(l)){if(e===St.TemplateDefinitionBuilder&&!Z2(c,f))break;if(K2(l,c.initializer,f,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(!og(g.fences,u.fences))break}}}function gh(n){switch(n.kind){case k.NextContext:return Te.ViewContextRead|Te.ViewContextWrite;case k.RestoreView:return Te.ViewContextRead|Te.ViewContextWrite|Te.SideEffectful;case k.StoreLet:return Te.SideEffectful;case k.Reference:case k.ContextLetReference:return Te.ViewContextRead;default:return Te.None}}function Q2(n){let e=Te.None,t=new Set;return Ye(n,s=>{if(xn(s))switch(s.kind){case k.ReadVariable:t.add(s.xref);break;default:e|=gh(s)}}),{fences:e,variablesUsed:t}}function X2(n,e,t){Ye(n,(s,r)=>{if(!xn(s)||s.kind!==k.ReadVariable)return;let i=e.get(s.xref);i!==void 0&&(e.set(s.xref,i+1),r&Y.InChildOperation&&t.add(s.xref))})}function Y2(n,e){Ye(n,t=>{if(!xn(t)||t.kind!==k.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 og(n,e){if(n&Te.ViewContextWrite){if(e&Te.ViewContextRead)return!1}else if(n&Te.ViewContextRead&&e&Te.ViewContextWrite)return!1;return!0}function K2(n,e,t,s){let r=!1,i=!0;return ke(t,(o,a)=>{if(!xn(o)||r||!i)return o;if(a&Y.InChildOperation&&s&Te.ViewContextRead)return o;switch(o.kind){case k.ReadVariable:if(o.xref===n)return r=!0,e;break;default:let l=gh(o);i=i&&og(l,s);break}return o},Y.None),r}function Z2(n,e){switch(n.variable.kind){case Le.Identifier:return n.initializer instanceof Vt&&n.initializer.name==="ctx";case Le.Context:return e.kind===h.Variable;default:return!0}}function J2(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(wl(s,r.message,void 0,null),r));break;case h.IcuEnd:s!==null&&(S.insertAfter(yl(s,null),r),s=null);break}}}function ex(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)ke(s,r=>r instanceof Zi&&!e.has(r.target)?r.value:r,Y.None)}function tx(n){for(let e of n.units)for(let t of e.update){if(t.kind!==h.Variable||t.variable.kind!==Le.Identifier||!(t.initializer instanceof Zi))continue;let s=t.variable.identifier,r=t;for(;r&&r.kind!==h.ListEnd;)ke(r,i=>i instanceof qe&&i.name===s?v(void 0):i,Y.None),r=r.prev}}function nx(n){for(let e of n.units)for(let t of e.update){if(t.kind!==h.StoreLet)continue;let s={kind:Le.Identifier,name:null,identifier:t.declaredName};S.replace(t,os(n.allocateXrefId(),s,new Zi(t.target,t.value,t.sourceSpan),Lt.None))}}var sx=[{kind:C.Tmpl,fn:QS},{kind:C.Host,fn:m0},{kind:C.Tmpl,fn:PS},{kind:C.Tmpl,fn:tb},{kind:C.Tmpl,fn:J2},{kind:C.Both,fn:RE},{kind:C.Both,fn:R2},{kind:C.Both,fn:_E},{kind:C.Both,fn:bE},{kind:C.Tmpl,fn:OE},{kind:C.Both,fn:NS},{kind:C.Tmpl,fn:S2},{kind:C.Both,fn:kE},{kind:C.Both,fn:GS},{kind:C.Tmpl,fn:IE},{kind:C.Tmpl,fn:KS},{kind:C.Tmpl,fn:$E},{kind:C.Tmpl,fn:TS},{kind:C.Tmpl,fn:FE},{kind:C.Tmpl,fn:x2},{kind:C.Tmpl,fn:SE},{kind:C.Tmpl,fn:yE},{kind:C.Tmpl,fn:eb},{kind:C.Both,fn:rb},{kind:C.Tmpl,fn:u0},{kind:C.Tmpl,fn:nx},{kind:C.Tmpl,fn:h0},{kind:C.Tmpl,fn:F2},{kind:C.Both,fn:vE},{kind:C.Both,fn:_2},{kind:C.Tmpl,fn:H2},{kind:C.Tmpl,fn:tx},{kind:C.Both,fn:I2},{kind:C.Tmpl,fn:VE},{kind:C.Tmpl,fn:L2},{kind:C.Tmpl,fn:q2},{kind:C.Both,fn:C2},{kind:C.Both,fn:N2},{kind:C.Tmpl,fn:kS},{kind:C.Both,fn:qS},{kind:C.Both,fn:jE},{kind:C.Both,fn:$2},{kind:C.Both,fn:G2},{kind:C.Both,fn:ex},{kind:C.Tmpl,fn:O2},{kind:C.Tmpl,fn:A2},{kind:C.Tmpl,fn:T2},{kind:C.Tmpl,fn:i0},{kind:C.Tmpl,fn:V2},{kind:C.Tmpl,fn:bS},{kind:C.Tmpl,fn:d0},{kind:C.Both,fn:ME},{kind:C.Tmpl,fn:b2},{kind:C.Both,fn:j2},{kind:C.Tmpl,fn:c0},{kind:C.Both,fn:MS},{kind:C.Tmpl,fn:BE},{kind:C.Tmpl,fn:BS},{kind:C.Tmpl,fn:RS},{kind:C.Tmpl,fn:HE},{kind:C.Tmpl,fn:VS},{kind:C.Both,fn:sb},{kind:C.Both,fn:y2},{kind:C.Both,fn:TE}];function ag(n,e){for(let t of sx)(t.kind===e||t.kind===C.Both)&&t.fn(n)}function rx(n,e){let t=cg(n.root);return lg(n.root,e),t}function lg(n,e){for(let t of n.job.units){if(t.parent!==n.xref)continue;lg(t,e);let s=cg(t);e.statements.push(s.toDeclStmt(s.name))}}function cg(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=sl(1,e),r=sl(2,t);return zr([new Fe("rf"),new Fe("ctx")],[...s,...r],void 0,void 0,n.fnName)}function sl(n,e){return e.length===0?[]:[pl(new Q(A.BitwiseAnd,H("rf"),v(n)),e)]}function ix(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=sl(1,e),r=sl(2,t);return zr([new Fe("rf"),new Fe("ctx")],[...s,...r],void 0,void 0,n.root.fnName)}var ug=St.TemplateDefinitionBuilder,Ms=new Hr,Ls="ng-template";function Du(n){return n instanceof tt}function ox(n){return Du(n)&&n.nodes.length===1&&n.nodes[0]instanceof ka}function ax(n,e,t,s,r,i,o){let a=new no(n,t,ug,s,r,i,o);return Hn(a.root,e),a}function lx(n,e,t){let s=new Qa(n.componentName,t,ug);for(let r of n.properties??[]){let i=I.Property;r.name.startsWith("attr.")&&(r.name=r.name.substring(5),i=I.Attribute),r.isAnimation&&(i=I.Animation);let o=e.calcPossibleSecurityContexts(n.componentSelector,r.name,i===I.Attribute).filter(a=>a!==le.NONE);cx(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);ux(s,r,i,o)}for(let r of n.events??[])hx(s,r);return s}function cx(n,e,t,s){let r,i=e.expression.ast;i instanceof Vs?r=new Se(i.strings,i.expressions.map(o=>V(o,n,e.sourceSpan)),[]):r=V(i,n,e.sourceSpan),n.root.update.push(Hs(n.root.xref,t,e.name,r,null,s,!1,!1,null,null,e.sourceSpan))}function ux(n,e,t,s){let r=Hs(n.root.xref,I.Attribute,e,t,null,s,!0,!1,null,null,t.sourceSpan);n.root.update.push(r)}function hx(n,e){let[t,s]=e.type!==$t.Animation?[null,e.targetOrPhase]:[e.targetOrPhase,null],r=fh(n.root.xref,new at,e.name,null,vh(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)px(n,t);else if(t instanceof vt)dx(n,t);else if(t instanceof Fr)fx(n,t);else if(t instanceof Nn)hg(n,t,null);else if(t instanceof Nr)pg(n,t,null);else if(t instanceof _a)mx(n,t);else if(t instanceof Ca)gx(n,t);else if(t instanceof qs)vx(n,t);else if(t instanceof Ta)wx(n,t);else if(t instanceof Lr)yx(n,t);else if(t instanceof Ui)Sx(n,t);else throw new Error(`Unsupported template node: ${t.constructor.name}`)}function px(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof tt||e.i18n instanceof us))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=n.job.allocateXrefId(),[s,r]=Kt(e.name),i=nE(r,t,Gm(s),e.i18n instanceof us?e.i18n:void 0,e.startSourceSpan,e.sourceSpan);n.create.push(i),xx(n,i,e),mg(i,e);let o=null;e.i18n instanceof tt&&(o=n.job.allocateXrefId(),n.create.push(wl(o,e.i18n,void 0,e.startSourceSpan))),Hn(n,e.children);let a=rE(t,e.endSourceSpan??e.startSourceSpan);n.create.push(a),o!==null&&S.insertBefore(yl(o,e.endSourceSpan??e.startSourceSpan),a)}function dx(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof tt||e.i18n instanceof us))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 us?e.i18n:void 0,o=Gm(r),a=s===null?"":NE(s,o),l=bx(e)?wt.NgTemplate:wt.Structural,c=vl(t.xref,l,s,a,o,i,e.startSourceSpan,e.sourceSpan);n.create.push(c),Cx(n,c,e,l),mg(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(wl(u,e.i18n,void 0,e.startSourceSpan),t.create.head),S.insertBefore(yl(u,e.endSourceSpan??e.startSourceSpan),t.create.tail)}}function fx(n,e){if(e.i18n!==void 0&&!(e.i18n instanceof us))throw Error(`Unhandled i18n metadata type for element: ${e.i18n.constructor.name}`);let t=null;e.children.some(i=>!(i instanceof Dr)&&(!(i instanceof Nn)||i.value.trim().length>0))&&(t=n.job.allocateView(n.xref),Hn(t,e.children));let s=n.job.allocateXrefId(),r=cE(s,e.selector,e.i18n,t?.xref??null,e.sourceSpan);for(let i of e.attributes){let o=Ms.securityContext(e.name,i.name,!0);n.update.push(Hs(r.xref,I.Attribute,i.name,v(i.value),null,o,!0,!1,null,Mn(i.i18n),i.sourceSpan))}n.create.push(r)}function hg(n,e,t){n.create.push(Um(n.job.allocateXrefId(),e.value,t,e.sourceSpan))}function pg(n,e,t){let s=e.value;if(s instanceof Mt&&(s=s.ast),!(s instanceof Vs))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${s.constructor.name}`);if(e.i18n!==void 0&&!(e.i18n instanceof Bn))throw Error(`Unhandled i18n metadata type for text interpolation: ${e.i18n?.constructor.name}`);let r=e.i18n instanceof Bn?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(Um(i,"",t,e.sourceSpan));let o=n.job.compatibility?null:e.sourceSpan;n.update.push(Uy(i,new Se(s.strings,s.expressions.map(a=>V(a,n.job,o)),r),e.sourceSpan))}function mx(n,e){let t=null,s=[];for(let r=0;rV(s,e,t)),void 0,Ve(n.span,t))}else{if(n instanceof Dt)return v(n.value,void 0,Ve(n.span,t));if(n instanceof Mi)switch(n.operator){case"+":return new Ar(_i.Plus,V(n.expr,e,t),void 0,Ve(n.span,t));case"-":return new Ar(_i.Minus,V(n.expr,e,t),void 0,Ve(n.span,t));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}else if(n instanceof Pt){let s=PE.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,Ve(n.span,t))}else{if(n instanceof Ps)return new qn(e.root.xref);if(n instanceof Pr)return new $n(V(n.receiver,e,t),V(n.key,e,t),void 0,Ve(n.span,t));if(n instanceof Ir)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 Tr(r.key,V(o,e,t),r.quoted)});return new Yt(s,void 0,Ve(n.span,t))}else{if(n instanceof fa)return new qt(n.expressions.map(s=>V(s,e,t)));if(n instanceof Ni)return new Rn(V(n.condition,e,t),V(n.trueExp,e,t),V(n.falseExp,e,t),void 0,Ve(n.span,t));if(n instanceof Fi)return V(n.expression,e,t);if(n instanceof da)return new Ws(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 $r(V(n.receiver,e,t),V(n.key,e,t),Ve(n.span,t));if(n instanceof ua)return new Rr(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(Ve(n.span,t));if(n instanceof Li)return nw(V(n.expression,e,t),Ve(n.span,t));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${t?.start.file.url}"`)}}}}}function Nu(n,e,t,s){let r;return e instanceof Vs?r=new Se(e.strings,e.expressions.map(i=>V(i,n,s??null)),Object.keys(Mn(t)?.placeholders??{})):e instanceof ve?r=V(e,n,s??null):r=v(e),r}var dg=new Map([[ae.Property,I.Property],[ae.TwoWay,I.TwoWayProperty],[ae.Attribute,I.Attribute],[ae.Class,I.ClassName],[ae.Style,I.StyleProperty],[ae.Animation,I.Animation]]);function bx(n){return Kt(n.tagName??"")[1]===Ls}function Mn(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 xx(n,e,t){let s=new Array,r=new Set;for(let i of t.attributes){let o=Ms.securityContext(t.name,i.name,!0);s.push(Hs(e.xref,I.Attribute,i.name,Nu(n.job,i.value,i.i18n),null,o,!0,!1,null,Mn(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(Hs(e.xref,dg.get(i.type),i.name,Nu(n.job,oo(i.value),i.i18n),i.unit,i.securityContext,!1,!1,null,Mn(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(Hm(e.xref,e.handle,i.name,e.tag,fg(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(fh(e.xref,e.handle,i.name,e.tag,vh(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 Cx(n,e,t,s){let r=new Array;for(let i of t.templateAttrs)if(i instanceof Mr){let o=Ms.securityContext(Ls,i.name,!0);r.push(Go(n,e.xref,ae.Attribute,i.name,i.value,null,o,!0,s,Mn(i.i18n),i.sourceSpan))}else r.push(Go(n,e.xref,i.type,i.name,oo(i.value),i.unit,i.securityContext,!0,s,Mn(i.i18n),i.sourceSpan));for(let i of t.attributes){let o=Ms.securityContext(Ls,i.name,!0);r.push(Go(n,e.xref,ae.Attribute,i.name,i.value,null,o,!1,s,Mn(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,Mn(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(Hm(e.xref,e.handle,i.name,e.tag,fg(n,i.handler,i.handlerSpan),i.sourceSpan)):n.create.push(fh(e.xref,e.handle,i.name,e.tag,vh(n,i.handler,i.handlerSpan),i.phase,i.target,!1,i.sourceSpan))),s===wt.Structural&&i.type!==$t.Animation){let o=Ms.securityContext(Ls,i.name,!1);n.create.push(Ft(e.xref,I.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,I.Property,null,s,null,null,c,o);case ae.TwoWay:return Ft(e,I.TwoWayProperty,null,s,null,null,c,o)}if(!p&&(t===ae.Attribute||t===ae.Animation))return null}let f=dg.get(t);return l===wt.NgTemplate&&(t===ae.Class||t===ae.Style||t===ae.Attribute&&!p)&&(f=I.Property),Hs(e,f,s,Nu(n.job,r,c),i,o,p,a,l,c,u)}function vh(n,e,t){e=oo(e);let s=new Array,r=e instanceof Ir?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=>bn(new Ut(a,a.sourceSpan)))),s.push(bn(new ot(o,o.sourceSpan))),s}function fg(n,e,t){e=oo(e);let s=new Array;if(e instanceof Ir)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 qe("$event"),o=new qa(r,i);return s.push(bn(new Ut(o))),s.push(bn(new ot(i))),s}function oo(n){return n instanceof Mt?n.ast:n}function mg(n,e){_x(n.localRefs);for(let{name:t,value:s}of e.references)n.localRefs.push({name:t,target:s})}function _x(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}function Ve(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 rl(n,e,t){let s=null;for(let r of t.children)if(!(r instanceof Dr)){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=Ms.securityContext(Ls,i.name,!0);n.update.push(Hs(e,I.Attribute,i.name,v(i.value),null,o,!0,!1,null,Mn(i.i18n),i.sourceSpan))}for(let i of s.inputs)if(i.type!==ae.Animation&&i.type!==ae.Attribute){let o=Ms.securityContext(Ls,i.name,!0);n.create.push(Ft(e,I.Property,null,i.name,null,null,null,o))}let r=s instanceof Ht?s.name:s.tagName;return r===Ls?null:r}return null}function il(n,e){return pl(H(rh).bitwiseAnd(v(n),null,!1),e)}function Ax(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function Tx(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 gg(n,e,t,s){let r=[];s!==void 0&&r.push(...s),n.isSignal&&r.push(new Et(H(ji),n.propertyName)),r.push(Tx(n,e),v(Ax(n))),n.read&&r.push(n.read);let i=n.isSignal?t.signalBased:t.nonSignal;return T(i).callFn(r)}var wh=Symbol("queryAdvancePlaceholder");function vg(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===wh?t++:(s(),e.unshift(i))}return s(),e}function kx(n,e,t){let s=[],r=[],i=Em(a=>r.push(a),sh);n.forEach(a=>{let l=gg(a,e,{signalBased:d.viewQuerySignal,nonSignal:d.viewQuery});if(s.push(l.toStmt()),a.isSignal){r.push(wh);return}let c=i(),u=T(d.loadQuery).callFn([]),p=T(d.queryRefresh).callFn([c.set(u)]),f=H(ji).prop(a.propertyName).set(a.first?c.prop("first"):c);r.push(p.and(f).toStmt())});let o=t?`${t}_Query`:null;return zr([new Fe(rh,eh),new Fe(ji,null)],[il(1,s),il(2,vg(r))],Bt,null,o)}function Ix(n,e,t){let s=[],r=[],i=Em(a=>r.push(a),sh);for(let a of n){if(s.push(gg(a,e,{nonSignal:d.contentQuery,signalBased:d.contentQuerySignal},[H("dirIndex")]).toStmt()),a.isSignal){r.push(wh);continue}let l=i(),c=T(d.loadQuery).callFn([]),u=T(d.queryRefresh).callFn([l.set(c)]),p=H(ji).prop(a.propertyName).set(a.first?l.prop("first"):l);r.push(u.and(p).toStmt())}let o=t?`${t}_ContentQueries`:null;return zr([new Fe(rh,eh),new Fe(ji,null),new Fe("dirIndex",null)],[il(1,s),il(2,vg(r))],Bt,null,o)}var Mu=class extends xu{constructor(){super(Km)}parse(e,t,s){return super.parse(e,t,s)}},wg="ngPreserveWhitespaces",Px=new Set(["pre","template","textarea","script","style"]),yg=` \f -\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Dx=new RegExp(`[^${yg}]`),Nx=new RegExp(`[${yg}]{2,}`,"g");function Mx(n){return n.some(e=>e.name===wg)}function Eg(n){return n.replace(new RegExp(Zm,"g")," ")}var Lu=class{visitElement(e,t){return Px.has(e.name)||Mx(e.attrs)?new It(e.name,de(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new It(e.name,e.attrs,qf(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}visitAttribute(e,t){return e.name!==wg?e:null}visitText(e,t){let s=e.value.match(Dx),r=t&&(t.prev instanceof Ur||t.next instanceof Ur);if(s||r){let i=e.tokens.map(a=>a.type===5?Lx(a):a),o=Sg(e.value);return new zs(o,e.sourceSpan,i,e.i18n)}return null}visitComment(e,t){return e}visitExpansion(e,t){return e}visitExpansionCase(e,t){return e}visitBlock(e,t){return new Nt(e.name,e.parameters,qf(this,e.children),e.sourceSpan,e.nameSpan,e.startSourceSpan,e.endSourceSpan)}visitBlockParameter(e,t){return e}visitLetDeclaration(e,t){return e}};function Lx({type:n,parts:e,sourceSpan:t}){return{type:n,parts:[Sg(e[0])],sourceSpan:t}}function Sg(n){return Eg(n).replace(Nx," ")}function qf(n,e){let t=[];return e.forEach((s,r)=>{let i={prev:e[r-1],next:e[r+1]},o=s.visit(n,i);o&&t.push(o)}),t}var Uf=".",Fx="attr",Bx="class",Ox="style",Rx="*",mc="animate-",Fu=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+Rx.length,u=this._parseTemplateBindings(e,t,s,c,r);for(let p of u){let f=Jn(s,p.sourceSpan),g=p.key.source,w=Jn(s,p.key.span);if(p instanceof Bi){let y=p.value?p.value.source:"$implicit",b=p.value?Jn(s,p.value.span):void 0;a.push(new Mc(g,y,f,w,b))}else if(p.value){let y=l?f:s,b=Jn(s,p.value.ast.sourceSpan);this._parsePropertyAst(g,p.value,!1,y,w,b,i,o)}else i.push([g,""]),this.parseLiteralAttr(g,null,w,r,void 0,i,o,w)}}_parseTemplateBindings(e,t,s,r,i){let o=s.start.toString();try{let a=this._exprParser.parseTemplateBindings(e,t,o,r,i);return this._reportExpressionParserErrors(a.errors,s),a.warnings.forEach(l=>{this._reportError(l,s,as.WARNING)}),a.templateBindings}catch(a){return this._reportError(`${a}`,s),[]}}parseLiteralAttr(e,t,s,r,i,o,a,l){gc(e)?(e=e.substring(1),l!==void 0&&(l=Jn(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,as.ERROR),this._parseAnimation(e,t,s,r,l,i,o,a)):a.push(new vi(e,this._exprParser.wrapLiteralPrimitive(t,"",r),rs.LITERAL_ATTR,s,l,i))}parsePropertyBinding(e,t,s,r,i,o,a,l,c,u){e.length===0&&this._reportError("Property name is missing in binding",i);let p=!1;e.startsWith(mc)?(p=!0,e=e.substring(mc.length),u!==void 0&&(u=Jn(u,new gt(u.start.offset+mc.length,u.end.offset)))):gc(e)&&(p=!0,e=e.substring(1),u!==void 0&&(u=Jn(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?rs.TWO_WAY:rs.DEFAULT,r,i,o))}_parseAnimation(e,t,s,r,i,o,a,l){e.length===0&&this._reportError("Animation trigger is missing",s);let c=this.parseBinding(t||"undefined",!1,o||s,r);a.push([e,c.source]),l.push(new vi(e,c,rs.ANIMATION,s,i,o))}parseBinding(e,t,s,r){let i=(s&&s.start||"(unknown)").toString();try{let o=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,s),o}catch(o){return this._reportError(`${o}`,s),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}}createBoundElementProperty(e,t,s=!1,r=!0){if(t.isAnimation)return new 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(Uf),c;if(l.length>1)if(l[0]==Fx){a=l.slice(1).join(Uf),s||this._validatePropertyOrAttributeName(a,t.sourceSpan,!0),c=vc(this._schemaRegistry,e,a,!0);let u=a.indexOf(":");if(u>-1){let p=a.substring(0,u),f=a.substring(u+1);a=Bc(p,f)}o=ae.Attribute}else l[0]==Bx?(a=l[1],o=ae.Class,c=[le.NONE]):l[0]==Ox&&(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=vc(this._schemaRegistry,e,u,!1),o=t.type===rs.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),gc(e)?(e=e.slice(1),l!==void 0&&(l=Jn(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 vc(this._schemaRegistry,e,r,s)}_parseAnimationEvent(e,t,s,r,i,o){let a=dw(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]=pw(e,[null,e]),p=this.errors.length,f=this._parseAction(t,i),g=this.errors.length===p;o.push([e,f.source]),s&&g&&!this._isAllowedAssignmentEvent(f)&&this._reportError("Unsupported expression in a two-way binding",r),a.push(new ya(u,c,s?$t.TwoWay:$t.Regular,f,r,i,l))}_parseAction(e,t){let s=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{let i=this._exprParser.parseAction(e,s,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof et?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)):i}catch(i){return this._reportError(`${i}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",s,r)}}_reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}_reportExpressionParserErrors(e,t){for(let s of e)this._reportError(s.message,t)}_validatePropertyOrAttributeName(e,t,s){let r=s?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,as.ERROR)}_isAllowedAssignmentEvent(e){return e instanceof Mt?this._isAllowedAssignmentEvent(e.ast):e instanceof Fi?this._isAllowedAssignmentEvent(e.expression):e instanceof $s||e instanceof Pr?!0:this._allowInvalidAssignmentEvents?e instanceof Pt?(e.operation==="&&"||e.operation==="||"||e.operation==="??")&&(e.right instanceof $s||e.right instanceof Pr):e instanceof Ni||e instanceof Li:!1}};function gc(n){return n[0]=="@"}function vc(n,e,t,s){let r=[];return xr.parse(e).forEach(i=>{let o=i.element?[i.element]:n.allKnownElementNames(),a=new Set(i.notSelectors.filter(c=>c.isElementSelector()).map(c=>c.element)),l=o.filter(c=>!a.has(c));r.push(...l.map(c=>n.securityContext(c,t,s)))}),r.length===0?[le.NONE]:Array.from(new Set(r)).sort()}function Jn(n,e){let t=e.start-n.start.offset,s=e.end-n.end.offset;return new $(n.start.moveBy(t),n.end.moveBy(s),n.fullStart.moveBy(t),n.details)}function $x(n){if(n==null||n.length===0||n[0]=="/")return!1;let e=n.match(Vx);return e===null||e[1]=="package"||e[1]=="asset"}var Vx=/^([^:/?#]+):/,qx="select",Ux="link",Hx="rel",jx="href",Wx="stylesheet",zx="style",Gx="script",Qx="ngNonBindable",Xx="ngProjectAs";function bg(n){let e=null,t=null,s=null,r=!1,i="";n.attrs.forEach(l=>{let c=l.name.toLowerCase();c==qx?e=l.value:c==jx?t=l.value:c==Hx?s=l.value:l.name==Qx?r=!0:l.name==Xx&&l.value.length>0&&(i=l.value)}),e=Yx(e);let o=n.name.toLowerCase(),a=mt.OTHER;return Lc(o)?a=mt.NG_CONTENT:o==zx?a=mt.STYLE:o==Gx?a=mt.SCRIPT:o==Ux&&s==Wx&&(a=mt.STYLESHEET),new Bu(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||{}),Bu=class{constructor(e,t,s,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=s,this.nonBindable=r,this.projectAs=i}};function Yx(n){return n===null||n.length===0?"*":n}var Kx=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,Zx=/^track\s+([\S\s]*)/,Jx=/^(as\s)+(.*)/,yh=/^else[^\S\r\n]+if/,eC=/^let\s+([\S\s]*)/,Hf=/(\s*)(\S+)(\s*)/,Ci=new Set(["$index","$first","$last","$even","$odd","$count"]);function jf(n){return n==="empty"}function Wf(n){return n==="else"||yh.test(n)}function tC(n,e,t,s){let r=oC(e),i=[],o=zf(n,r,s);o!==null&&i.push(new Ds(o.expression,de(t,n.children,n.children),o.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let p of e)if(yh.test(p.name)){let f=zf(p,r,s);if(f!==null){let g=de(t,p.children,p.children);i.push(new Ds(f.expression,g,f.expressionAlias,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}}else if(p.name==="else"){let f=de(t,p.children,p.children);i.push(new Ds(null,f,null,p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n))}let a=i.length>0?i[0].startSourceSpan:n.startSourceSpan,l=i.length>0?i[i.length-1].endSourceSpan:n.endSourceSpan,c=n.sourceSpan,u=i[i.length-1];return u!==void 0&&(c=new $(a.start,u.sourceSpan.end)),{node:new _a(i,c,n.startSourceSpan,l,n.nameSpan),errors:r}}function nC(n,e,t,s){let r=[],i=rC(n,r,s),o=null,a=null;for(let l of e)l.name==="empty"?a!==null?r.push(new R(l.sourceSpan,"@for loop can only have one @empty block")):l.parameters.length>0?r.push(new R(l.sourceSpan,"@empty block cannot have parameters")):a=new qi(de(t,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n):r.push(new R(l.sourceSpan,`Unrecognized @for loop block "${l.name}"`));if(i!==null)if(i.trackBy===null)r.push(new R(n.sourceSpan,'@for loop must have a "track" expression'));else{let l=a?.endSourceSpan??n.endSourceSpan,c=new $(n.sourceSpan.start,l?.end??n.sourceSpan.end);o=new Lr(i.itemName,i.expression,i.trackBy.expression,i.trackBy.keywordSpan,i.context,de(t,n.children,n.children),a,c,n.sourceSpan,n.startSourceSpan,l,n.nameSpan,n.i18n)}return{node:o,errors:r}}function sC(n,e,t){let s=aC(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 Nt))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,de(e,l.children,l.children),l.sourceSpan,l.startSourceSpan,l.endSourceSpan,l.nameSpan,l.i18n);c===null?a=u:i.push(u)}return a!==null&&i.push(a),{node:new Ca(r,i,o,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:s}}function rC(n,e,t){if(n.parameters.length===0)return e.push(new R(n.sourceSpan,"@for loop does not have an expression")),null;let[s,...r]=n.parameters,i=lC(s,e)?.match(Kx);if(!i||i[2].trim().length===0)return e.push(new R(s.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;let[,o,a]=i;Ci.has(o)&&e.push(new R(s.sourceSpan,`@for loop item name cannot be one of ${Array.from(Ci).join(", ")}.`));let l=s.expression.split(" ")[0],c=new $(s.sourceSpan.start,s.sourceSpan.start.moveBy(l.length)),u={itemName:new cs(o,"$implicit",c,c),trackBy:null,expression:ao(s,t,a),context:Array.from(Ci,p=>{let f=new $(n.startSourceSpan.end,n.startSourceSpan.end);return new cs(p,p,f,f)})};for(let p of r){let f=p.expression.match(eC);if(f!==null){let w=new $(p.sourceSpan.start.moveBy(f[0].length-f[1].length),p.sourceSpan.end);iC(p.sourceSpan,f[1],w,o,u.context,e);continue}let g=p.expression.match(Zx);if(g!==null){if(u.trackBy!==null)e.push(new R(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 R(p.sourceSpan,'@for loop must have a "track" expression'));let y=new $(p.sourceSpan.start,p.sourceSpan.start.moveBy(5));u.trackBy={expression:w,keywordSpan:y}}continue}e.push(new R(p.sourceSpan,`Unrecognized @for loop paramater "${p.expression}"`))}return u}function iC(n,e,t,s,r,i){let o=e.split(","),a=t.start;for(let l of o){let c=l.split("="),u=c.length===2?c[0].trim():"",p=c.length===2?c[1].trim():"";if(u.length===0||p.length===0)i.push(new R(n,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(!Ci.has(p))i.push(new R(n,`Unknown "let" parameter variable "${p}". The allowed variables are: ${Array.from(Ci).join(", ")}`));else if(u===s)i.push(new R(n,`Invalid @for loop "let" parameter. Variable cannot be called "${s}"`));else if(r.some(f=>f.name===u))i.push(new R(n,`Duplicate "let" parameter variable "${p}"`));else{let[,f,g]=c[0].match(Hf)??[],w=f!==void 0&&c.length===2?new $(a.moveBy(f.length),a.moveBy(f.length+g.length)):t,y;if(c.length===2){let[,x,N]=c[1].match(Hf)??[];y=x!==void 0?new $(a.moveBy(c[0].length+1+x.length),a.moveBy(c[0].length+1+x.length+N.length)):void 0}let b=new $(w.start,y?.end??w.end);r.push(new cs(u,p,b,w,y))}a=a.moveBy(l.length+1)}}function oC(n){let e=[],t=!1;for(let s=0;s1&&s0&&e.push(new R(r.sourceSpan,"@else block cannot have parameters")),t=!0):yh.test(r.name)||e.push(new R(r.sourceSpan,`Unrecognized conditional block @${r.name}`))}return e}function aC(n){let e=[],t=!1;if(n.parameters.length!==1)return e.push(new R(n.sourceSpan,"@switch block must have exactly one parameter")),e;for(let s of n.children)if(!(s instanceof ro||s instanceof zs&&s.value.trim().length===0)){if(!(s instanceof Nt)||s.name!=="case"&&s.name!=="default"){e.push(new R(s.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}s.name==="default"?(t?e.push(new R(s.sourceSpan,"@switch block can only have one @default block")):s.parameters.length>0&&e.push(new R(s.sourceSpan,"@default block cannot have parameters")),t=!0):s.name==="case"&&s.parameters.length!==1&&e.push(new R(s.sourceSpan,"@case block must have exactly one parameter"))}return e}function 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 zf(n,e,t){if(n.parameters.length===0)return e.push(new R(n.sourceSpan,"Conditional block does not have an expression")),null;let s=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 R(n.sourceSpan,"Unclosed parentheses in expression")),null):t.slice(i,o)}var cC=/^\d+\.?\d*(ms|s)?$/,uC=/^\s$/,Gf=new Map([[vn,rt],[br,vr],[On,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 Qf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("when"),o=new $(e.start.moveBy(i),e.start.moveBy(i+4)),a=xg(n,e);if(i===-1)r.push(new R(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);Cg("when",s,r,new $c(c,e,a,o))}}function Xf({expression:n,sourceSpan:e},t,s,r){let i=n.indexOf("on"),o=new $(e.start.moveBy(i),e.start.moveBy(i+2)),a=xg(n,e);if(i===-1)s.push(new R(e,'Could not find "on" keyword in expression'));else{let l=lo(n,i+1);new Ou(n,l,e,t,s,r,a,o).parse()}}function xg(n,e){return n.startsWith("prefetch")?new $(e.start,e.start.moveBy(8)):null}var Ou=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 so().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(Ot)&&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 pC(n,e,t,s,r){if(n.length!==1)throw new Error(`"${it.TIMER}" trigger must have exactly one parameter`);let i=ol(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 dC(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 fC(n,e,t,s,r,i){return Eh(it.HOVER,n,i),new Sa(n[0]??null,e,t,s,r)}function mC(n,e,t,s,r,i){return Eh(it.INTERACTION,n,i),new ba(n[0]??null,e,t,s,r)}function gC(n,e,t,s,r,i){return Eh(it.VIEWPORT,n,i),new xa(n[0]??null,e,t,s,r)}function Eh(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 f=new $(n.sourceSpan.start,p);return{node:new qs(de(t,n.children,n.children),l,c,i,o,a,n.nameSpan,f,n.sourceSpan,n.startSourceSpan,u,n.i18n),errors:r}}function xC(n,e,t){let s=null,r=null,i=null;for(let o of n)try{if(!Ru(o.name)){e.push(new R(o.startSourceSpan,`Unrecognized block "@${o.name}"`));break}switch(o.name){case"placeholder":s!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @placeholder block")):s=CC(o,t);break;case"loading":r!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @loading block")):r=_C(o,t);break;case"error":i!==null?e.push(new R(o.startSourceSpan,"@defer block can only have one @error block")):i=AC(o,t);break}}catch(a){e.push(new R(o.startSourceSpan,a.message))}return{placeholder:s,loading:r,error:i}}function CC(n,e){let t=null;for(let s of n.parameters)if(_g.test(s.expression)){if(t!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let r=ol(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 Oi(de(e,n.children,n.children),t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function _C(n,e){let t=null,s=null;for(let r of n.parameters)if(yC.test(r.expression)){if(t!=null)throw new Error('@loading block can only have one "after" parameter');let i=ol(r.expression.slice(lo(r.expression)));if(i===null)throw new Error('Could not parse time value of parameter "after"');t=i}else if(_g.test(r.expression)){if(s!=null)throw new Error('@loading block can only have one "minimum" parameter');let i=ol(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 Ri(de(e,n.children,n.children),t,s,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function AC(n,e){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new $i(de(e,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function TC(n,e,t,s){let r={},i={};for(let o of n)EC.test(o.expression)?Qf(o,e,r,t):SC.test(o.expression)?Xf(o,r,t,s):vC.test(o.expression)?Qf(o,e,i,t):wC.test(o.expression)?Xf(o,i,t,s):t.push(new R(o.sourceSpan,"Unrecognized trigger"));return{triggers:r,prefetchTriggers:i}}var kC=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,Yf=1,Kf=2,Zf=3,Jf=4,em=5,IC=6,ui=7,es={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},tm="*";function PC(n,e,t){let s=new $u(e,t),r=de(s,n,n),i=e.errors.concat(s.errors),o={nodes:r,errors:i,styleUrls:s.styleUrls,styles:s.styles,ngContentSelectors:s.ngContentSelectors};return t.collectCommentNodes&&(o.commentNodes=s.commentNodes),o}var $u=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=Du(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=NC(e);return b!==null&&this.styles.push(b),null}else if(s.type===mt.STYLESHEET&&$x(s.hrefAttr))return this.styleUrls.push(s.hrefAttr),null;let r=Mw(e.name),i=[],o=[],a=[],l=[],c=[],u={},p=[],f=[],g=!1;for(let b of e.attrs){let x=!1,N=nm(b.name),X=!1;if(b.i18n&&(u[b.name]=b.i18n),N.startsWith(tm)){g&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",b.sourceSpan),X=!0,g=!0;let K=b.value,We=N.substring(tm.length),Ke=[],Be=b.valueSpan?b.valueSpan.start.offset:b.sourceSpan.start.offset+b.name.length;this.bindingParser.parseInlineTemplateBinding(We,K,b.sourceSpan,Be,[],p,Ke,!0),f.push(...Ke.map(be=>new cs(be.name,be.value,be.sourceSpan,be.keySpan,be.valueSpan)))}else x=this.parseAttribute(r,b,[],i,o,a,l);!x&&!X&&c.push(this.visitAttribute(b))}let w;s.nonBindable?w=de(DC,e.children).flat(1/0):w=de(this,e.children,e.children);let y;if(s.type===mt.NG_CONTENT){let b=s.selectAttr,x=e.attrs.map(N=>this.visitAttribute(N));y=new Fr(b,x,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),x=[];b.literal.forEach(We=>x.push(We)),b.bound.forEach(We=>x.push(We));let N=y instanceof Ht?{attributes:y.attributes,inputs:y.inputs,outputs:y.outputs}:{attributes:[],inputs:[],outputs:[]},X=r&&t?void 0:e.i18n,K=y instanceof vt?null:y.name;y=new vt(K,N.attributes,N.inputs,N.outputs,x,[y],[],f,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,X)}return t&&(this.inI18nBlock=!1),y}visitAttribute(e){return new Mr(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(!Du(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(Bw)){let a=i.trim(),l=this.bindingParser.parseInterpolationExpression(o.text,o.sourceSpan);s[a]=new Nr(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 Dr(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=bC(e,this.findConnectedBlocks(s,t,Ru),this,this.bindingParser);break;case"switch":r=sC(e,this,this.bindingParser);break;case"for":r=nC(e,this.findConnectedBlocks(s,t,jf),this,this.bindingParser);break;case"if":r=tC(e,this.findConnectedBlocks(s,t,Wf),this,this.bindingParser);break;default:let i;Ru(e.name)?(i=`@${e.name} block can only be used after an @defer block.`,this.processedNodes.add(e)):jf(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 R(e.sourceSpan,i)]};break}return this.errors.push(...r.errors),r.node}findConnectedBlocks(e,t,s){let r=[];for(let i=e+1;i{let a=s[o.name];if(o.isLiteral)i.push(new Mr(o.name,o.expression.source||"",o.sourceSpan,o.keySpan,o.valueSpan,a));else{let l=this.bindingParser.createBoundElementProperty(e,o,!0,!1);r.push(Oc.fromBoundElementProperty(l,a))}}),{bound:r,literal:i}}parseAttribute(e,t,s,r,i,o,a){let l=nm(t.name),c=t.value,u=t.sourceSpan,p=t.valueSpan?t.valueSpan.start.offset:u.start.offset;function f(x,N,X){let K=t.name.length-l.length,We=x.start.moveBy(N.length+K),Ke=We.moveBy(X.length);return new $(We,Ke,We,X)}let g=l.match(kC);if(g){if(g[Yf]!=null){let x=g[ui],N=f(u,g[Yf],x);this.bindingParser.parsePropertyBinding(x,c,!1,!1,u,p,t.valueSpan,s,r,N)}else if(g[Kf])if(e){let x=g[ui],N=f(u,g[Kf],x);this.parseVariable(x,c,u,N,t.valueSpan,o)}else this.reportError('"let-" is only supported on ng-template elements.',u);else if(g[Zf]){let x=g[ui],N=f(u,g[Zf],x);this.parseReference(x,c,u,N,t.valueSpan,a)}else if(g[Jf]){let x=[],N=g[ui],X=f(u,g[Jf],N);this.bindingParser.parseEvent(N,c,!1,u,t.valueSpan||u,s,x,X),wc(x,i)}else if(g[em]){let x=g[ui],N=f(u,g[em],x);this.bindingParser.parsePropertyBinding(x,c,!1,!0,u,p,t.valueSpan,s,r,N),this.parseAssignmentEvent(x,c,u,t.valueSpan,s,i,N)}else if(g[IC]){let x=f(u,"",l);this.bindingParser.parseLiteralAttr(l,c,u,p,t.valueSpan,s,r,x)}return!0}let w=null;if(l.startsWith(es.BANANA_BOX.start)?w=es.BANANA_BOX:l.startsWith(es.PROPERTY.start)?w=es.PROPERTY:l.startsWith(es.EVENT.start)&&(w=es.EVENT),w!==null&&l.endsWith(w.end)&&l.length>w.start.length+w.end.length){let x=l.substring(w.start.length,l.length-w.end.length),N=f(u,w.start,x);if(w.start===es.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(x,c,!1,!0,u,p,t.valueSpan,s,r,N),this.parseAssignmentEvent(x,c,u,t.valueSpan,s,i,N);else if(w.start===es.PROPERTY.start)this.bindingParser.parsePropertyBinding(x,c,!1,!1,u,p,t.valueSpan,s,r,N);else{let X=[];this.bindingParser.parseEvent(x,c,!1,u,t.valueSpan||u,s,X,N),wc(X,i)}return!0}let y=f(u,"",l);return this.bindingParser.parsePropertyInterpolation(l,c,u,t.valueSpan,s,r,y,t.valueTokens??null)}_visitTextWithInterpolation(e,t,s,r){let i=Eg(e),o=this.bindingParser.parseInterpolation(i,t,s);return o?new Nr(o,t,r):new Nn(i,t)}parseVariable(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',s):e.length===0&&this.reportError("Variable does not have a name",s),o.push(new cs(e,t,s,r,i))}parseReference(e,t,s,r,i,o){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',s):e.length===0?this.reportError("Reference does not have a name",s):o.some(a=>a.name===e)&&this.reportError(`Reference "#${e}" is defined more than once`,s),o.push(new 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),wc(l,o)}reportError(e,t,s=as.ERROR){this.errors.push(new R(t,e,s))}},Vu=class{visitElement(e){let t=bg(e);if(t.type===mt.SCRIPT||t.type===mt.STYLE||t.type===mt.STYLESHEET)return null;let s=de(this,e.children,null);return new Ht(e.name,de(this,e.attrs),[],[],s,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}visitComment(e){return null}visitAttribute(e){return new Mr(e.name,e.value,e.sourceSpan,e.keySpan,e.valueSpan,e.i18n)}visitText(e){return new Nn(e.value,e.sourceSpan)}visitExpansion(e){return null}visitExpansionCase(e){return null}visitBlock(e,t){let s=[new Nn(e.startSourceSpan.toString(),e.startSourceSpan),...de(this,e.children)];return e.endSourceSpan!==null&&s.push(new Nn(e.endSourceSpan.toString(),e.endSourceSpan)),s}visitBlockParameter(e,t){return null}visitLetDeclaration(e,t){return new Nn(`@let ${e.name} = ${e.value};`,e.sourceSpan)}},DC=new Vu;function nm(n){return/^data-/i.test(n)?n.substring(5):n}function wc(n,e){e.push(...n.map(t=>Rc.fromParsedEvent(t)))}function NC(n){return n.children.length!==1||!(n.children[0]instanceof zs)?null:n.children[0].value}var MC=[" ",` -`,"\r"," "];function LC(n,e,t={}){let{interpolationConfig:s,preserveWhitespaces:r,enableI18nLegacyMessageIdFormat:i,allowInvalidAssignmentEvents:o}=t,a=al(s,o),c=new Mu().parse(n,e,xe(E({leadingTriviaChars:MC},t),{tokenizeExpansionForms:!0,tokenizeBlocks:t.enableBlockSyntax??!0,tokenizeLet:t.enableLetSyntax??!1}));if(!t.alwaysAttemptHtmlToR3AstConversion&&c.errors&&c.errors.length>0){let K={interpolationConfig:s,preserveWhitespaces:r,errors:c.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(K.commentNodes=[]),K}let u=c.rootNodes,p=new tl(s,!r,i),f=p.visitAllWithErrors(u);if(!t.alwaysAttemptHtmlToR3AstConversion&&f.errors&&f.errors.length>0){let K={interpolationConfig:s,preserveWhitespaces:r,errors:f.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return t.collectCommentNodes&&(K.commentNodes=[]),K}u=f.rootNodes,r||(u=de(new Lu,u),p.hasI18nMeta&&(u=de(new tl(s,!1),u)));let{nodes:g,errors:w,styleUrls:y,styles:b,ngContentSelectors:x,commentNodes:N}=PC(u,a,{collectCommentNodes:!!t.collectCommentNodes});w.push(...c.errors,...f.errors);let X={interpolationConfig:s,preserveWhitespaces:r,errors:w.length>0?w:null,nodes:g,styleUrls:y,styles:b,ngContentSelectors:x};return t.collectCommentNodes&&(X.commentNodes=N),X}var FC=new Hr;function al(n=gn,e=!1){return new Fu(new Xa(new so),n,FC,[],e)}var Ag="%COMP%",BC=`_nghost-${Ag}`,OC=`_ngcontent-${Ag}`;function Tg(n,e,t){let s=new ps,r=Zu(n.selector);return s.set("type",n.type.value),r.length>0&&s.set("selectors",mr(r)),n.queries.length>0&&s.set("contentQueries",Ix(n.queries,e,n.name)),n.viewQueries.length&&s.set("viewQuery",kx(n.viewQueries,e,n.name)),s.set("hostBindings",WC(n.host,n.typeSourceSpan,t,e,n.selector||"",n.name,s)),s.set("inputs",Nd(n.inputs,!0)),s.set("outputs",Nd(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([YC(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 RC(n,e,t){let s=Tg(n,e,t);kg(s,n);let r=T(d.defineDirective).callFn([s.toLiteralMap()],void 0,!0),i=jC(n);return{expression:r,type:i,statements:[]}}function $C(n,e,t){let s=Tg(n,e,t);kg(s,n);let r=n.selector&&xr.parse(n.selector),i=r&&r[0];if(i){let f=i.getAttrs();f.length&&s.set("attrs",e.getConstLiteral(se(f.map(g=>g!=null?v(g):v(void 0))),!0))}let o=n.name,a=null;if(n.defer.mode===1&&n.defer.dependenciesFn!==null){let f=`${o}_DeferFn`;e.statements.push(new Xe(f,n.defer.dependenciesFn,void 0,Ue.Final)),a=H(f)}let l=ax(n.name,n.template.nodes,e,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,a);ag(l,C.Tmpl);let c=rx(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",Sn([],[...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",qC(se(n.declarations.map(f=>f.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let f=[n.type.value];n.rawImports&&f.push(n.rawImports),s.set("dependencies",T(d.getComponentDepsFactory).callFn(f))}if(n.encapsulation===null&&(n.encapsulation=ss.Emulated),n.styles&&n.styles.length){let g=(n.encapsulation==ss.Emulated?XC(n.styles,OC,BC):n.styles).reduce((w,y)=>(y.trim().length>0&&w.push(e.getConstLiteral(v(y))),w),[]);g.length>0&&s.set("styles",se(g))}else n.encapsulation===ss.Emulated&&(n.encapsulation=ss.None);n.encapsulation!==ss.Emulated&&s.set("encapsulation",v(n.encapsulation)),n.animations!==null&&s.set("data",st([{key:"animation",value:n.animations,quoted:!1}])),n.changeDetection!==null&&(typeof n.changeDetection=="number"&&n.changeDetection!==Ku.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=VC(n);return{expression:u,type:p,statements:[]}}function VC(n){let e=Ig(n);return e.push(Uu(n.template.ngContentSelectors)),e.push(He(v(n.isStandalone))),e.push(Pg(n)),n.isSignal&&e.push(He(v(n.isSignal))),He(T(d.ComponentDeclaration,e))}function qC(n,e){switch(e){case 0:return n;case 1:return Sn([],n);case 2:let t=n.prop("map").callFn([T(d.resolveForwardRef)]);return Sn([],t);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function UC(n){return He(v(n))}function qu(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 Uu(n){return n.length>0?He(se(n.map(e=>v(e)))):En}function Ig(n){let e=n.selector!==null?n.selector.replace(/\n/g,""):null;return[dl(n.type.type,n.typeArgumentCount),e!==null?UC(e):En,n.exportAs!==null?Uu(n.exportAs):En,He(HC(n)),He(qu(n.outputs)),Uu(n.queries.map(t=>t.propertyName))]}function HC(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 jC(n){let e=Ig(n);return e.push(En),e.push(He(v(n.isStandalone))),e.push(Pg(n)),n.isSignal&&e.push(He(v(n.isSignal))),He(T(d.DirectiveDeclaration,e))}function WC(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=lx({componentName:i,componentSelector:r,properties:a,events:l,attributes:n.attributes},t,s);ag(c,C.Host),o.set("hostAttrs",c.root.attributes);let u=c.root.vars;return u!==null&&u>0&&o.set("hostVars",v(u)),ix(c)}var zC=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function GC(n){let e={},t={},s={},r={};for(let i of Object.keys(n)){let o=n[i],a=i.match(zC);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 QC(n,e){let t=al();return t.createDirectiveHostEventAsts(n.listeners,e),t.createBoundHostProperties(n.properties,e),t.errors}function XC(n,e,t){let s=new Kc;return n.map(r=>s.shimCssText(r,e,t))}function Pg(n){return n.hostDirectives?.length?He(se(n.hostDirectives.map(e=>st([{key:"directive",value:hl(e.directive.type),quoted:!1},{key:"inputs",value:qu(e.inputs||{}),quoted:!1},{key:"outputs",value:qu(e.outputs||{}),quoted:!1}])))):En}function YC(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=sm(s.inputs);i&&r.push({key:"inputs",value:i,quoted:!1})}if(s.outputs){let i=sm(s.outputs);i&&r.push({key:"outputs",value:i,quoted:!1})}e.push(st(r))}s.isForwardReference&&(t=!0)}return t?new Ln([],[new ot(se(e))]):se(e)}function sm(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 Hu=class{constructor(e){this.directiveMatcher=e}bind(e){if(!e.template)throw new Error("Binding without a template not yet supported");let t=ju.apply(e.template),s=KC(t),{directives:r,eagerDirectives:i,bindings:o,references:a}=Wu.apply(e.template,this.directiveMatcher),{expressions:l,symbols:c,nestingLevel:u,usedPipes:p,eagerPipes:f,deferBlocks:g}=zu.applyWithScope(e.template,t);return new Gu(e,r,i,o,a,l,c,u,s,p,f,g)}},ju=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 qs}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 Lr?(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 qs||e instanceof $i||e instanceof Oi||e instanceof Ri||e instanceof Fr?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)}},Wu=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=$w(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){}},zu=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 ve?e.visit(this,t):e.visit(this)}static applyWithScope(e,t){let s=new Map,r=new Map,i=new Map,o=new Set,a=new Set,l=e instanceof 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 Lr)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 qs){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 Oi||e instanceof Ri||e instanceof Fr?(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 Fn))return;let s=this.scope.lookup(t);s instanceof Ui&&e.receiver instanceof Ps||s!==null&&this.bindings.set(e,s)}},Gu=class{constructor(e,t,s,r,i,o,a,l,c,u,p,f){this.target=e,this.directives=t,this.eagerDirectives=s,this.bindings=r,this.references=i,this.exprTargets=o,this.symbols=a,this.nestingLevel=l,this.scopedNodeEntities=c,this.usedPipes=u,this.eagerPipes=p,this.deferredBlocks=f.map(g=>g[0]),this.deferredScopes=new Map(f)}getEntitiesInScope(e){return this.scopedNodeEntities.get(e)??new Set}getDirectivesOfNode(e){return this.directives.get(e)||null}getReferenceTarget(e){return this.references.get(e)||null}getConsumerOfBinding(e){return this.bindings.get(e)||null}getExpressionTarget(e){return this.exprTargets.get(e)||null}getDefinitionNodeOfSymbol(e){return this.symbols.get(e)||null}getNestingLevel(e){return this.nestingLevel.get(e)||0}getUsedDirectives(){let e=new Set;return this.directives.forEach(t=>t.forEach(s=>e.add(s))),Array.from(e.values())}getEagerlyUsedDirectives(){let e=new Set(this.eagerDirectives);return Array.from(e.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(e,t){if(!(t instanceof ba)&&!(t instanceof xa)&&!(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 Dr)){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 KC(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 Wr=class{},ZC=!1;var Qu=class{constructor(e=new Qc){this.jitEvaluator=e,this.FactoryTarget=In,this.ResourceLoader=Wr,this.elementSchemaRegistry=new Hr}compilePipe(e,t,s){let r={name:s.name,type:Me(s.type),typeArgumentCount:0,deps:null,pipeName:s.pipeName,pure:s.pure,isStandalone:s.isStandalone},i=Ud(r);return this.jitExpression(i.expression,e,t,[])}compilePipeDeclaration(e,t,s){let r=m_(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:Me(s.type),typeArgumentCount:s.typeArgumentCount,providedIn:lm(s.providedIn),useClass:hr(s,"useClass"),useFactory:am(s,"useFactory"),useValue:hr(s,"useValue"),useExisting:hr(s,"useExisting"),deps:s.deps?.map(Fg)},!0);return this.jitExpression(r,e,t,i)}compileInjectableDeclaration(e,t,s){let{expression:r,statements:i}=Md({name:s.type.name,type:Me(s.type),typeArgumentCount:0,providedIn:lm(s.providedIn),useClass:hr(s,"useClass"),useFactory:am(s,"useFactory"),useValue:hr(s,"useValue"),useExisting:hr(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:Me(s.type),providers:s.providers&&s.providers.length>0?new j(s.providers):null,imports:s.imports.map(o=>new j(o))},i=qd(r);return this.jitExpression(i.expression,e,t,[])}compileInjectorDeclaration(e,t,s){let r=g_(s),i=qd(r);return this.jitExpression(i.expression,e,t,[])}compileNgModule(e,t,s){let r={kind:ls.Global,type:Me(s.type),bootstrap:s.bootstrap.map(Me),declarations:s.declarations.map(Me),publicDeclarationTypes:null,imports:s.imports.map(Me),includeImportTypes:!0,exports:s.exports.map(Me),selectorScopeMode:La.Inline,containsForwardDecls:!1,schemas:s.schemas?s.schemas.map(Me):null,id:s.id?new j(s.id):null},i=uy(r);return this.jitExpression(i.expression,e,t,[])}compileNgModuleDeclaration(e,t,s){let r=hy(s);return this.jitExpression(r,e,t,[])}compileDirective(e,t,s){let r=om(s);return this.compileDirectiveFromMeta(e,t,r)}compileDirectiveDeclaration(e,t,s){let r=this.createParseSourceSpan("Directive",s.type.name,t),i=Ng(s,r);return this.compileDirectiveFromMeta(e,t,i)}compileDirectiveFromMeta(e,t,s){let r=new oa,i=al(),o=RC(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileComponent(e,t,s){let{template:r,interpolation:i,defer:o}=Lg(s.template,s.name,t,s.preserveWhitespaces,s.interpolation,void 0),a=xe(E(E({},s),om(s)),{selector:s.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:r,declarations:s.declarations.map(n_),declarationListEmitMode:0,defer:o,styles:[...s.styles,...r.styles],encapsulation:s.encapsulation,interpolation:i,changeDetection:s.changeDetection??null,animations:s.animations!=null?new j(s.animations):null,viewProviders:s.viewProviders!=null?new j(s.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),l=`ng:///${s.name}.js`;return this.compileComponentFromMeta(e,l,a)}compileComponentDeclaration(e,t,s){let r=this.createParseSourceSpan("Component",s.type.name,t),i=t_(s,r,t);return this.compileComponentFromMeta(e,t,i)}compileComponentFromMeta(e,t,s){let r=new oa,i=al(s.interpolation),o=$C(s,r,i);return this.jitExpression(o.expression,e,t,r.statements)}compileFactory(e,t,s){let r=xs({name:s.name,type:Me(s.type),typeArgumentCount:s.typeArgumentCount,deps:i_(s.deps),target:s.target});return this.jitExpression(r.expression,e,t,r.statements)}compileFactoryDeclaration(e,t,s){let r=xs({name:s.type.name,type:Me(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 sy(e,t,s)}jitExpression(e,t,s,r){let i=[...r,new Xe("$def",e,void 0,Ue.Exported)];return this.jitEvaluator.evaluateStatements(s,i,new Yc(t),!0).$def}};function rm(n){return xe(E({},n),{isSignal:n.isSignal,predicate:Dg(n.predicate),read:n.read?new j(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function im(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:Dg(n.predicate),descendants:n.descendants??!1,read:n.read?new j(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function Dg(n){return Array.isArray(n)?n:th(new j(n),1)}function om(n){let e=f_(n.inputs||[]),t=Xu(n.outputs||[]),s=n.propMetadata,r={},i={};for(let o in s)s.hasOwnProperty(o)&&s[o].forEach(a=>{u_(a)?r[o]={bindingPropertyName:a.alias||o,classPropertyName:o,required:a.required||!1,isSignal:!!a.isSignal,transformFunction:a.transform!=null?new j(a.transform):null}:h_(a)&&(i[o]=a.alias||o)});return xe(E({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Me(n.type),deps:null,host:E({},a_(n.propMetadata,n.typeSourceSpan,n.host)),inputs:E(E({},e),r),outputs:E(E({},t),i),queries:n.queries.map(rm),providers:n.providers!=null?new j(n.providers):null,viewQueries:n.viewQueries.map(rm),fullInheritance:!1,hostDirectives:Mg(n)})}function Ng(n,e){return{name:n.type.name,type:Me(n.type),typeSourceSpan:e,selector:n.selector??null,inputs:n.inputs?p_(n.inputs):{},outputs:n.outputs??{},host:JC(n.host),queries:(n.queries??[]).map(im),viewQueries:(n.viewQueries??[]).map(im),providers:n.providers!==void 0?new j(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,fullInheritance:!1,isStandalone:n.isStandalone??!1,isSignal:n.isSignal??!1,hostDirectives:Mg(n)}}function JC(n={}){return{attributes:e_(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function Mg(n){return n.hostDirectives?.length?n.hostDirectives.map(e=>typeof e=="function"?{directive:Me(e),inputs:null,outputs:null,isForwardReference:!1}:{directive:Me(e.directive),isForwardReference:!1,inputs:e.inputs?Xu(e.inputs):null,outputs:e.outputs?Xu(e.outputs):null}):null}function e_(n){let e={};for(let t of Object.keys(n))e[t]=new j(n[t]);return e}function t_(n,e,t){let{template:s,interpolation:r,defer:i}=Lg(n.template,n.type.name,t,n.preserveWhitespaces??!1,n.interpolation,n.deferBlockDependencies),o=[];if(n.dependencies)for(let a of n.dependencies)switch(a.kind){case"directive":case"component":o.push(yc(a));break;case"pipe":o.push(r_(a));break}else(n.components||n.directives||n.pipes)&&(n.components&&o.push(...n.components.map(a=>yc(a,!0))),n.directives&&o.push(...n.directives.map(a=>yc(a))),n.pipes&&o.push(...s_(n.pipes)));return xe(E({},Ng(n,e)),{template:s,styles:n.styles??[],declarations:o,viewProviders:n.viewProviders!==void 0?new j(n.viewProviders):null,animations:n.animations!==void 0?new j(n.animations):null,defer:i,changeDetection:n.changeDetection??Ku.Default,encapsulation:n.encapsulation??ss.Emulated,interpolation:r,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0})}function n_(n){return xe(E({},n),{type:new j(n.type)})}function yc(n,e=null){return{kind:ml.Directive,isComponent:e||n.kind==="component",selector:n.selector,type:new j(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function s_(n){return n?Object.keys(n).map(e=>({kind:ml.Pipe,name:e,type:new j(n[e])})):[]}function r_(n){return{kind:ml.Pipe,name:n.name,type:new j(n.type)}}function Lg(n,e,t,s,r,i){let o=r?Pa.fromArray(r):gn,a=LC(n,t,{preserveWhitespaces:s,interpolationConfig:o,enableLetSyntax:ZC});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 Hu(new Yo).bind({template:a.nodes});return{template:a,interpolation:o,defer:o_(c,i)}}function hr(n,e){if(n.hasOwnProperty(e))return th(new j(n[e]),0)}function am(n,e){if(n.hasOwnProperty(e))return new j(n[e])}function lm(n){let e=typeof n=="function"?new j(n):new je(n??null);return th(e,0)}function i_(n){return n==null?null:n.map(Fg)}function Fg(n){let e=n.attribute!=null,t=n.token===null?null:new j(n.token),s=e?new j(n.attribute):t;return Bg(s,e,n.host,n.optional,n.self,n.skipSelf)}function cm(n){let e=n.attribute??!1,t=n.token===null?null:new j(n.token);return Bg(t,e,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function Bg(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 o_(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=>{l_(o)?s.properties[o.hostPropertyName||i]=bw("this",i):c_(o)&&(s.listeners[o.eventName||i]=`${i}(${(o.args||[]).join(",")})`)});return s}function l_(n){return n.ngMetadataName==="HostBinding"}function c_(n){return n.ngMetadataName==="HostListener"}function u_(n){return n.ngMetadataName==="Input"}function h_(n){return n.ngMetadataName==="Output"}function p_(n){return Object.keys(n).reduce((e,t)=>{let s=n[t];return typeof s=="string"||Array.isArray(s)?e[t]=d_(s):e[t]={bindingPropertyName:s.publicName,classPropertyName:t,transformFunction:s.transformFunction!==null?new j(s.transformFunction):null,required:s.isRequired,isSignal:s.isSignal},e},{})}function d_(n){return typeof n=="string"?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new j(n[2]):null,required:!1,isSignal:!1}}function f_(n){return n.reduce((e,t)=>{if(typeof t=="string"){let[s,r]=Og(t);e[r]={bindingPropertyName:s,classPropertyName:r,required:!1,isSignal:!1,transformFunction:null}}else e[t.name]={bindingPropertyName:t.alias||t.name,classPropertyName:t.name,required:t.required||!1,isSignal:!1,transformFunction:t.transform!=null?new j(t.transform):null};return e},{})}function Xu(n){return n.reduce((e,t)=>{let[s,r]=Og(t);return e[r]=s,e},{})}function Og(n){let[e,t]=n.split(":",2).map(s=>s.trim());return[t??e,e]}function m_(n){return{name:n.type.name,type:Me(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??!1}}function g_(n){return{name:n.type.name,type:Me(n.type),providers:n.providers!==void 0&&n.providers.length>0?new j(n.providers):null,imports:n.imports!==void 0?n.imports.map(e=>new j(e)):[]}}function v_(n){let e=n.ng||(n.ng={});e.\u0275compilerFacade=new Qu}var jA=new Tc("18.0.5"),co=class{constructor({defaultEncapsulation:e=ss.Emulated,preserveWhitespaces:t,strictInjectionParameters:s}={}){this.defaultEncapsulation=e,this.preserveWhitespaces=w_(fw(t)),this.strictInjectionParameters=s===!0}};function w_(n,e=!1){return n===null?e:n}var Yu=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 mn.PARSABLE_DATA}},WA=new Yu;v_(gi);var y_=[{provide:Mo,useFactory:()=>new Mo}],Sl=class{constructor(e){let t={defaultEncapsulation:yp.Emulated};this._defaultOptions=[t,...e]}createCompiler(e=[]){let t=E_(this._defaultOptions.concat(e));return Cp.create({providers:[y_,{provide:co,useFactory:()=>new co({defaultEncapsulation:t.defaultEncapsulation,preserveWhitespaces:t.preserveWhitespaces}),deps:[]},t.providers]}).get(Mo)}};function E_(n){return{defaultEncapsulation:Rg(n.map(e=>e.defaultEncapsulation)),providers:S_(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 S_(n){let e=[];return n.forEach(t=>t&&e.push(...t)),e}var $g=Gl(Mp,"coreDynamic",[{provide:Lo,useValue:{},multi:!0},{provide:Np,useClass:Sl,deps:[Lo]}]),b_=(()=>{let e=class e extends Wr{get(s){let r,i,o=new Promise((l,c)=>{r=l,i=c}),a=new XMLHttpRequest;return a.open("GET",s,!0),a.responseType="text",a.onload=function(){let l=a.response,c=a.status;c===0&&(c=l?200:0),200<=c&&c<=300?r(l):i(`Failed to load ${s}`)},a.onerror=function(){i(`Failed to load ${s}`)},a.send(),o}};e.\u0275fac=(()=>{let s;return function(i){return(s||(s=xp(e)))(i||e)}})(),e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})(),Vg=[qp,{provide:Lo,useValue:{providers:[{provide:Wr,useClass:b_,deps:[]}]},multi:!0},{provide:_p,useValue:Bp}],x_=new Pp("18.0.5"),C_=Gl($g,"browserDynamic",Vg);var Jr={production:!1};var xl=(()=>{let e=class e{constructor(s,r,i){this.ds=s,this.wt=r,this.us=i}initialize(){return Gn(this,null,function*(){_e.mobile=screen.availWidth<=576,this.setupGridster(),this.us.isMobile()&&this.setupMobile();try{yield Promise.all([this.ds.loadMainConfig(),this.loadAddons()].map(s=>s.catch(()=>{})))}catch{}})}loadAddons(){return Gn(this,null,function*(){try{let s=yield this.ds.loadAddons();if(localStorage.devAddons)try{s=JSON.parse(localStorage.devAddons)}catch{}let r=[];if(s&&s.length){_e.addons=[...s];for(let i=0;i<_e.addons.length;i++){let o=_e.addons[i].split("/").pop()?.replace(".js","");r.push(this.loadAddon(_e.addons[i],o||"").catch(()=>{}))}}yield Promise.all(r)}catch(s){console.log(`Can't load addons: ${s}`)}})}setupGridster(){Ne.displayGrid=nd.None,Ne.draggable&&(Ne.draggable.dragHandleClass=".drag-handle"),Ne.resizable&&(Ne.resizable.handles={s:!1,e:!1,n:!1,w:!1,se:!0,ne:!1,sw:!1,nw:!1}),Ne.gridType="scrollVertical",Ne.minCols=12,Ne.maxCols=12,Ne.floating=!0,Ne.pushItems=!0,Ne.resizable&&(Ne.resizable.enabled=!1),Ne.draggable&&(Ne.draggable.enabled=!1),Ne.margin=5,Ne.mobileBreakPoint=576,window.location.href.split("#").pop()?.indexOf("widget=")!==-1&&(Ne.mobileBreakPoint=0)}loadAddon(s,r){return Gn(this,null,function*(){let i;try{i=yield fetch(s)}catch{return}if(!i)return;let o=yield i.text();window.exports={};let a={tslib:hp,"@angular/core":Oe,"@angular/platform-browser":ii,"highcharts/highstock":T_,"@angular/platform-browser-dynamic":xh,"@angular/common":Fp,"@angular/router":Qp,"../app/services/util.service":{UtilService:nr},"../app/services/variables.service":{VariablesService:pd},"../app/services/storage.service":{StorageService:cn},"../app/services/data.service":{DataService:At},"../app/services/filter.service":{FilterService:sr},"../app/services/widget-type.service":{WidgetTypeService:or},"../app/services/dashboard.service":{DashboardService:ad},"../app/services/namespace.service":{NamespaceService:un},"../app/services/i18n.service":{I18nService:Qn},"../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=p=>(a[p]||console.error(`Can't find module ${p} in required shim.`),a[p]),Jr.production||(o+=`\r -//# sourceURL=`+s),window["eval"](o);let c,u="";for(let p in exports)if(exports[p].toString().startsWith("class")){c=exports[p],u=p;break}if(c){let p=s.split("/").pop().replace(/dsw.addons./ig,"").split(".").slice(0,-1).join("."),f=c.AddonInfo;f.overrideBaseType?this.wt.register(f.overrideBaseType,f?.type||"custom",c,f):this.wt.register(p,f?.type||"custom",c,f)}else console.warn(`Can't load addon for file: ${s}. Exported class not found.`)})}setupMobile(){window.addEventListener("resize",()=>{let s=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${s}px`)})}};e.\u0275fac=function(r){return new(r||e)(Ze(At),Ze(or),Ze(nr))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();function I_(n,e){if(n&1){let t=Ce();B(0,"button",14),ee("click",function(){ce(t);let r=ne();return ue(r.onLoginOAuthClick())}),ge(1),ye(2,"i18n"),O()}n&2&&(D(),on("",Ee(2,1,"signinOAuth")," "))}var Ah=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p){this.ds=s,this.i18n=r,this.hs=i,this.ss=o,this.start=a,this.ns=l,this.st=c,this.route=u,this.router=p,this.startTime=-1,this.hs.visible$.next(!1),this.ss.hide(),delete sessionStorage.dashboarList,_e.desktop&&delete localStorage.DSWMobileServer,this.initModel(),_e.mobile&&this.fillFieldsWithSelectedServer(),this.initNamespace();let f=this.route.snapshot.queryParamMap.get("ns"),g=this.route.snapshot.queryParamMap.get("from");g&&(f=g.split("/").filter(w=>w)[0]),this.model.namespace=f||dt||""}initModel(){this.model={isDesktop:_e.desktop,ver:_e.const.ver,server:localStorage.DSWMobileServer||location.hostname,login:"",password:"",namespace:"",error:"",oAuthUrl:""}}initNamespace(){let s=this.route.snapshot.queryParamMap.get("from");if(s){let r=decodeURIComponent(s),i=this.getParameterByName("ns",r);i&&(this.model.namespace=i)}else{let r=this.route.snapshot.queryParamMap.get("ns");r&&(this.model.namespace=r)}}ngOnInit(){this.loadOAuthConfig()}loadOAuthConfig(){this.ds.loadOAuthConfig().then(s=>{try{if(typeof s=="string"){let r=JSON.parse(s);this.model.oAuthUrl=r.url||""}else this.model.oAuthUrl=s.url||""}catch{}}).catch(()=>{})}fillFieldsWithSelectedServer(){let s=localStorage.selectedServer;if(!s||(s=parseInt(s,10),isNaN(s)))return;let r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(o){console.error(o)}let i=r[s];i&&(this.model.server=i.server||"",this.model.login=i.login||"",this.model.password=i.password||"",this.model.namespace=i.namespace||"")}saveServer(){let s=prompt("Please enter server name",this.model.server),r=[];try{r=JSON.parse(localStorage.serverList||"[]")}catch(i){console.error(i)}r.push({name:s,server:this.model.server,login:this.model.login,password:this.model.password,namespace:this.model.namespace}),localStorage.serverList=JSON.stringify(r),localStorage.selectedServer=r.length-1}showServers(){}getParameterByName(s,r){s=s.replace(/[\[\]]/g,"\\$&");let o=new RegExp("[?&]"+s+"(=([^&#]*)|&|#|$)").exec(r);return o?o[2]?decodeURIComponent(o[2].replace(/\+/g," ")):"":null}onLoginOAuthClick(){window.location.href=this.model.oAuthUrl}onLoginClick(){this.clearError();let s=this.getMobileUrl();this.startTime=new Date().getTime(),this.ds.signIn(this.model.login,this.model.password,this.model.namespace,_e.mobile&&!_e.desktop?s:"").catch(r=>this.onError(r)).then(r=>this.onSuccess(r,this.model.namespace))}getMobileUrl(){let s=this.model.server,r=s.replace("://","").indexOf("/")!==-1;return s.toLowerCase().indexOf("http")===-1&&(s="http://"+s),r||(s+="/MDX2JSON/"),s.charAt(s.length-1)!=="/"&&(s+="/"),s}onSuccess(s,r){return Gn(this,null,function*(){if(!s)return;_e.mobile&&_e.desktop,localStorage.DSWMobileServer=this.model.server,localStorage.userName=this.ds.username;try{yield this.start.initialize()}catch(o){console.error(o)}this.ns.setNamespaces(s.Mappings.Mapped),this.ns.setCurrent(r),this.st.loadServerSettings(s);let i=this.route.snapshot.queryParamMap.get("from");i?this.router.navigateByUrl(i):this.router.navigateByUrl("/"+r)})}onError(s){let{error:r,status:i}=s;if(new Date().getTime()-this.startTime>=_e.const.timeout){this.showError(this.i18n.get("errTimeout"));return}switch(i){case 0:this.showError(this.i18n.get("errNotFound"));break;case 401:case 403:this.showError(this.i18n.get("errUnauth"));break;case 500:this.showError(r.Error||s.message);break;default:this.showError(s.message);break}}clearError(){this.model.error=""}showError(s){this.model.error=s}scanSettings(){cordova.plugins.barcodeScanner.scan(s=>{let i=s.text.split("|");if(i[0].toLowerCase()!=="dsw"){alert("Incorrect QR code");return}this.model.server=i[1],this.model.login=i[2],this.model.password=i[3],this.model.namespace=i[4],this.onLoginClick()},s=>{alert("Scanning failed: "+s)})}};e.\u0275fac=function(r){return new(r||e)(M(At),M(Qn),M(pn),M(Tt),M(xl),M(un),M(cn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-login-screen"]],standalone:!0,features:[De],decls:24,vars:26,consts:[[1,"ver"],["desktop-hidden","",1,"qr-scanner-btn",3,"click"],[1,"fa","fa-camera"],[1,"login-form"],[1,"logo"],["type","text","name","server","focus-next","dswLogin",3,"ngModelChange","hidden","ngModel","placeholder"],["id","dswLogin","type","text","name","dswLogin","dswAutoFocus","","dswFocusNext","dswPasword",3,"ngModelChange","ngModel","placeholder"],["id","dswPasword","name","dswPasword","type","password","dswFocusNext","ns",3,"ngModelChange","ngModel","placeholder"],["id","ns","type","text","dswFocusNext","login","required","",1,"form-control",3,"ngModelChange","ngModel","placeholder"],[1,"button-row"],["desktop-hidden","",1,"btn","btn-success",3,"click","hidden"],["id","login",1,"btn",3,"click"],["id","btnLoginOAuth",1,"btn","btn-link"],[1,"msg-error",3,"hidden"],["id","btnLoginOAuth",1,"btn","btn-link",3,"click"]],template:function(r,i){r&1&&(B(0,"span",0),ge(1),O(),B(2,"span",1),ee("click",function(){return i.scanSettings()}),me(3,"i",2),O(),B(4,"div",3)(5,"div",4),ge(6," IRIS Analytics "),O(),B(7,"input",5),ye(8,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.server,a)||(i.model.server=a),a}),O(),B(9,"input",6),ye(10,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.login,a)||(i.model.login=a),a}),O(),B(11,"input",7),ye(12,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.password,a)||(i.model.password=a),a}),O(),B(13,"input",8),ye(14,"i18n"),kn("ngModelChange",function(a){return Tn(i.model.namespace,a)||(i.model.namespace=a),a}),O(),B(15,"div",9)(16,"button",10),ee("click",function(){return i.showServers()}),O(),B(17,"button",10),ee("click",function(){return i.saveServer()}),O(),B(18,"button",11),ee("click",function(){return i.onLoginClick()}),ge(19),ye(20,"i18n"),O(),we(21,I_,3,3,"button",12),O(),B(22,"div",13),ge(23),O()()),r&2&&(D(),Qt(i.model.ver),D(6),ri("placeholder",Ee(8,16,"server")),te("hidden",i.model.isDesktop),An("ngModel",i.model.server),D(2),ri("placeholder",Ee(10,18,"login")),An("ngModel",i.model.login),D(2),ri("placeholder",Ee(12,20,"password")),An("ngModel",i.model.password),D(2),ri("placeholder",Ee(14,22,"namespace")),An("ngModel",i.model.namespace),D(3),te("hidden",i.model.isDesktop),D(),te("hidden",i.model.isDesktop),D(2),Qt(Ee(20,24,"signin")),D(2),pe(i.model.oAuthUrl?21:-1),D(),te("hidden",!i.model.error),D(),on(" ",i.model.error," "))},dependencies:[hn,$o,Xn,ed,Yn,Xp,md,Ro],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center;background:url(./assets/img/bg.jpg);background-size:cover}.login-form[_ngcontent-%COMP%]{position:relative;width:300px;padding:25px;margin-bottom:20vh;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 0 10px #0000001a;border-radius:10px;background-color:#ffffff80}.login-form[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%;display:flex;justify-content:center;align-items:center}.ver[_ngcontent-%COMP%]{position:absolute;right:2px;top:0;font-size:8px}.msg-error[_ngcontent-%COMP%]{text-align:center;padding-top:16px;word-break:break-word;position:absolute;width:100%;font-size:14px;color:#d11818;margin-left:-25px;margin-top:25px;font-weight:500}img[_ngcontent-%COMP%]{margin-bottom:16px}input[_ngcontent-%COMP%]{margin-bottom:24px;width:100%}@media (max-width: 576px){input[_ngcontent-%COMP%]{margin-bottom:16px;height:40px}}.btn[_ngcontent-%COMP%]{width:100%;display:block;margin-top:30px;margin-bottom:4px;height:40px}.btn-link[_ngcontent-%COMP%]{margin-bottom:-15px}.logo[_ngcontent-%COMP%]{font-size:26px;font-weight:700;margin-bottom:30px;color:#1c1d20}"]});let n=e;return n})();var Hg=["gridster"],N_=["widgets"];function M_(n,e){if(n&1&&me(0,"dsw-widget",9,1),n&2){let t=ne().$implicit,s=ne();Je("transparent",s.itemDesc[t.idx].inline),te("widget",s.itemDesc[t.idx])}}function L_(n,e){n&1&&me(0,"div",7),n&2&&te("ngClass",e)}function F_(n,e){if(n&1&&(B(0,"label",8)(1,"span"),ge(2),O()()),n&2){let t=ne().$implicit,s=ne();te("title",t.customTitle||t.title),D(),zl(s.model.fontColors[t.fontColor]),D(),Qt(t.customTitle||t.title)}}function B_(n,e){if(n&1){let t=Ce();B(0,"gridster-item",5),ee("click",function(){let r=ce(t).$implicit,i=ne();return ue(i.onItemClicked(r))}),we(1,M_,2,3,"dsw-widget",6)(2,L_,1,1,"div",7)(3,F_,3,4,"label",8),O()}if(n&2){let t,s=e.$implicit,r=ne();zl("tile cl"+s.color+" "+(s.template?"tile-with-widget":"")),Po("background-image","url("+s.Cover+")"),Je("selected",r.model.edItem==s)("editing",r.model.edItem),te("item",s),D(),pe(r.itemDesc[s.idx]?1:-1),D(),pe((t=!r.itemDesc[s.idx]&&r.model.icons[s.icon])?2:-1,t),D(),pe(s.hideTitle?-1:3)}}var Wg=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.st=s,this.route=r,this.router=i,this.ss=o,this.hs=a,this.ms=l,this.ds=c,this.es=u,this.i18n=p,this.fs=f,this.ns=g,this.itemDesc=[],this.isResizing=!1,this.model={tiles:[],widgetList:[],fontColors:_e.const.fontColors,icons:_e.const.icons},this.tilesOptions={maxCols:8,minCols:8,fixedRowHeight:122,gridType:"verticalFixed",mobileBreakpoint:576,margin:20,draggable:{enabled:!1},resizable:{enabled:!1}},this.isSpinner=!0,this.folder="",this.isLoading=!1,this.subEditDashboard=this.ms.onEditDashboard.pipe(ai()),this.subSidebarAnimEnd=this.ss.onAnimEnd.pipe(ai()),this.settings=s.getAppSettings(),this.ms.onSetTitle.emit(""),this.fs.clear()}ngOnInit(){this.subscribeForData(),this.subscribeForEditingMode(),this.subscribeForGridsterAnimations(),this.subscribeForGridsterResize()}getDesc(s){return this.itemDesc[s]}startEditing(s){this.model.edItem=s,this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!0),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!0),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.ss.showComponent({component:import("./chunk-LO6T6COP.js"),single:!0,inputs:{tiles:this.model.tiles,tile:this.model.edItem,folder:this.folder}})}stopEditing(){this.tilesOptions?.draggable&&(this.tilesOptions.draggable.enabled=!1),this.tilesOptions?.resizable&&(this.tilesOptions.resizable.enabled=!1),this.tilesOptions?.api?.optionsChanged&&this.tilesOptions.api.optionsChanged(),this.model.edItem=void 0}onItemClicked(s){if(this.model.edItem){this.startEditing(s);return}let r=s.fullPath;s.isFolder&&(r=s.title===""?"..":s.title),this.router.navigate([r],{relativeTo:s.isFolder?this.route:this.route.root.children[0]})}retrieveData(s,r){if(s){if(s&&s.Error){this.es.show(s.data.Error);return}if(s){if(!s.children||s.children.length===0){this.es.show(this.i18n.get("errNoDashboards"));return}this.model.tiles=this.getTiles(s,r)}return this.model.tiles}}setupList(s){for(let r=0;r{this.retriveWidgetData(i,s[r])}))}createDataCallback(s){return function(r){this.retriveWidgetData(r,s)}}getTiles(s,r){let i=s.children,o=this.st.getTilesSettings();if(o=o[this.folder]||{},i.forEach(a=>{a.fullPath||(a.fullPath=a.path)}),r)i=i.filter(a=>a.title.toLocaleLowerCase().indexOf(r.toLocaleLowerCase())!==-1);else{this.folder&&(i=i.filter(l=>l.fullPath.startsWith(this.folder+"/")));let a=[];i.forEach(l=>{l.fullPath.toLowerCase().startsWith(this.folder.toLowerCase()+"/")&&(l.path=l.fullPath.slice(this.folder.length!==0?this.folder.length+1:0,l.fullPath.length));let c=l.path.split("/");c.length!==1&&(a.some(u=>u===c[0])||a.push(c[0]))}),i=i.filter(l=>l.path.split("/").length===1),i=[...i,...a.map(l=>({isFolder:!0,title:l}))]}i.forEach(a=>{!a.isFolder&&!a.title&&(a.title=a.path.split("/").splice(-1)[0].replace(".dashboard",""))}),this.folder&&!r&&i.push({isFolder:!0,title:""}),i=i.sort((a,l)=>a.isFolder&&!l.isFolder?-1:l.isFolder&&!a.isFolder||a.title>l.title?1:-1);for(let a=0;a{!this.widgets||s.propertyName!=="width"&&s.propertyName!=="height"||this.widgets.toArray().forEach(r=>{r.component&&r.component.onResize()})})}subscribeForGridsterAnimations(){this.subSidebarAnimEnd.subscribe(()=>{this.tilesOptions?.api?.resize&&this.tilesOptions.api.resize()})}subscribeForEditingMode(){this.ms.onEditDashboard.subscribe(s=>{s?this.startEditing(this.model.tiles[0]):this.stopEditing()})}subscribeForData(){this.data$=Co([this.st.onTilesChanged.pipe(mp("")),this.route.url,this.route.params.pipe(gp(s=>(s.ns?.toLowerCase()!==dt.toLowerCase()&&this.ns.setCurrent(s.ns),this.ds.getDashboards()))),this.hs.onSearch.pipe(To())]).pipe(xo(([s,r,i,o])=>{this.folder=decodeURIComponent(r.map(l=>l.path).join("/")||""),this.isLoading=!1;let a=this.retrieveData(JSON.parse(JSON.stringify(i)),o||"");return this.isSpinner=!1,a}))}};e.\u0275fac=function(r){return new(r||e)(M(cn),M(an),M(ln),M(Tt),M(pn),M(Vo),M(At),M(tr),M(Qn),M(sr),M(un))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-folder-screen"]],viewQuery:function(r,i){if(r&1&&(ut(Hg,7,sn),ut(Hg,7),ut(N_,5,Kl)),r&2){let o;ht(o=pt())&&(i.gridster=o.first),ht(o=pt())&&(i.gridsterComp=o.first),ht(o=pt())&&(i.widgets=o)}},standalone:!0,features:[De],decls:6,vars:6,consts:[["gridster",""],["widgets",""],[1,"gridster",3,"options"],[3,"selected","editing","class","item","backgroundImage"],["ngSrc","assets/img/spinner.svg","height","100","width","100","priority","",3,"hidden"],[3,"click","item"],[3,"widget","transparent"],[1,"tile-icon",3,"ngClass"],[3,"title"],[3,"widget"]],template:function(r,i){r&1&&(B(0,"gridster",2,0),zt(2,B_,4,12,"gridster-item",3,rn),ye(4,"async"),O(),me(5,"img",4)),r&2&&(Je("no-anim",i.isResizing),te("options",i.tilesOptions),D(2),Gt(Ee(4,4,i.data$)),D(3),te("hidden",!i.isSpinner))},dependencies:[sd,rd,Kl,er,Oo,Bo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;width:100%;height:100%}gridster[_ngcontent-%COMP%]{background:var(--cl-bg);overflow-y:overlay!important}.tile[_ngcontent-%COMP%]{border-radius:var(--tile-border-radius);cursor:pointer;overflow:hidden;user-select:none;-webkit-user-select:none;background-size:cover;background:transparent no-repeat 50% 50%;padding:20px}.tile[_ngcontent-%COMP%]:hover{box-shadow:0 0 10px #0000001a}.tile.editing[_ngcontent-%COMP%]{opacity:.5}.tile.selected[_ngcontent-%COMP%]{opacity:1;border:2px solid var(--cl-accent)}@media (max-width: 576px){.tile[_ngcontent-%COMP%]{border:none;border-bottom:var(--tile-border);display:flex!important;justify-content:flex-start;align-items:center}}.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-family:Oxygen;font-style:normal;outline-color:#1c5ec7;position:absolute;inset:auto 20px 20px;text-align:left;font-weight:400;font-size:14px;line-height:16px;color:var(--cl-header-txt);max-height:2.3em;display:inline-block;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media (max-width: 576px){.tile[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{position:static;font-size:14px}}.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-family:FontAwesome;height:50%;width:50%;margin-top:10%;margin-left:25%;margin-right:25%}@media (max-width: 576px){.tile-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:80%;width:80%;margin:0}}dsw-widget[_ngcontent-%COMP%]{pointer-events:none}dsw-widget.transparent[_ngcontent-%COMP%]{background-color:transparent}"]});let n=e;return n})();function O_(n,e){n&1&&me(0,"dsw-folder-screen")}function R_(n,e){n&1&&me(0,"dsw-dashboard-screen")}var zg=(()=>{let e=class e{constructor(s,r){this.route=s,this.hs=r,this.isFolder=!0,this.hs.visible$.next(!0),this.subRoutechange=Co([this.route.url,this.route.params]).subscribe(([i,o])=>{let a=[o.name,...i.map(l=>l.path)].join("/");this.isFolder=a.indexOf(".dashboard")===-1})}ngOnInit(){}ngOnDestroy(){this.subRoutechange.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)(M(an),M(pn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-main-screen"]],standalone:!0,features:[De],decls:2,vars:2,template:function(r,i){r&1&&we(0,O_,1,0,"dsw-folder-screen")(1,R_,1,0,"dsw-dashboard-screen"),r&2&&(pe(i.isFolder?0:-1),D(),pe(i.isFolder?-1:1))},dependencies:[Wg,fd],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}"]});let n=e;return n})();var Th=(()=>{let e=class e{constructor(s,r,i,o,a,l){this.router=s,this.ds=r,this.route=i,this.st=o,this.ns=a,this.wt=l,this.previousNS="",this.model={},this.isLoaded=!1}checkEmbed(s){let r=this.st.serverSettings?.Embed;return r&&s.url.split("?")[0]!==r?(this.router.navigateByUrl(r),!0):!1}resolve(s,r){let i=s.params.ns;return new up(o=>{let a=()=>{this.isLoaded=!0,o.next(this.model),o.complete()};if(this.checkEmbed(r))return;if(!dt){if(!i){this.router.navigateByUrl("/login"),a();return}this.ns.setCurrent(i)}if(this.previousNS===dt){a();return}let l=this.ds.loadConfig(dt).then(u=>this.st.loadConfig(u)).catch(u=>this.st.loadConfig(null)),c=this.loadServerSettings();Promise.all([l,c]).finally(()=>{this.checkEmbed(r)||(this.previousNS=dt,a())})})}loadServerSettings(){return new Promise(s=>{this.ds.getSettings(dt).then(r=>{this.st.loadServerSettings(r)}).finally(()=>s())})}};e.\u0275fac=function(r){return new(r||e)(Ze(ln),Ze(At),Ze(an),Ze(cn),Ze(un),Ze(or))},e.\u0275prov=nn({token:e,factory:e.\u0275fac,providedIn:"root"});let n=e;return n})();var kh=[{path:"",component:Ah,resolve:{model:un}},{path:"login",component:Ah},{path:":ns",resolve:{model:Th},runGuardsAndResolvers:"always",children:[{path:"**",component:zg,data:{isDashboard:!0},resolve:{model:Th},runGuardsAndResolvers:"always"}]}];function Gg(n){return new J(3e3,!1)}function $_(){return new J(3100,!1)}function V_(){return new J(3101,!1)}function q_(n){return new J(3001,!1)}function U_(n){return new J(3003,!1)}function H_(n){return new J(3004,!1)}function j_(n,e){return new J(3005,!1)}function W_(){return new J(3006,!1)}function z_(){return new J(3007,!1)}function G_(n,e){return new J(3008,!1)}function Q_(n){return new J(3002,!1)}function X_(n,e,t,s,r){return new J(3010,!1)}function Y_(){return new J(3011,!1)}function K_(){return new J(3012,!1)}function Z_(){return new J(3200,!1)}function J_(){return new J(3202,!1)}function e1(){return new J(3013,!1)}function t1(n){return new J(3014,!1)}function n1(n){return new J(3015,!1)}function s1(n){return new J(3016,!1)}function r1(n,e){return new J(3404,!1)}function i1(n){return new J(3502,!1)}function o1(n){return new J(3503,!1)}function a1(){return new J(3300,!1)}function l1(n){return new J(3504,!1)}function c1(n){return new J(3301,!1)}function u1(n,e){return new J(3302,!1)}function h1(n){return new J(3303,!1)}function p1(n,e){return new J(3400,!1)}function d1(n){return new J(3401,!1)}function f1(n){return new J(3402,!1)}function m1(n,e){return new J(3505,!1)}function vs(n){switch(n.length){case 0:return new ir;case 1:return n[0];default:return new Yl(n)}}function av(n,e,t=new Map,s=new Map){let r=[],i=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),u=c==o,p=u&&a||new Map;l.forEach((f,g)=>{let w=g,y=f;if(g!=="offset")switch(w=n.normalizePropertyName(w,r),y){case qo:y=t.get(g);break;case dn:y=s.get(g);break;default:y=n.normalizeStyleValue(g,w,y,r);break}p.set(w,y)}),u||i.push(p),a=p,o=c}),r.length)throw i1(r);return i}function Kh(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ih(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ih(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ih(t,"destroy",n)));break}}function Ih(n,e,t){let s=t.totalTime,r=!!t.disabled,i=Zh(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 Zh(n,e,t,s,r="",i=0,o){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:r,totalTime:i,disabled:!!o}}function Ct(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Qg(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var g1=typeof document>"u"?null:document.documentElement;function Jh(n){let e=n.parentNode||n.host||null;return e===g1?null:e}function v1(n){return n.substring(1,6)=="ebkit"}var Gs=null,Xg=!1;function w1(n){Gs||(Gs=y1()||{},Xg=Gs.style?"WebkitAppearance"in Gs.style:!1);let e=!0;return Gs.style&&!v1(n)&&(e=n in Gs.style,!e&&Xg&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Gs.style)),e}function y1(){return typeof document<"u"?document.body:null}function lv(n,e){for(;e;){if(e===n)return!0;e=Jh(e)}return!1}function cv(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var ep=(()=>{let e=class e{validateStyleProperty(s){return w1(s)}containsElement(s,r){return lv(s,r)}getParentElement(s){return Jh(s)}query(s,r,i){return cv(s,r,i)}computeStyle(s,r,i){return i||""}animate(s,r,i,o,a,l=[],c){return new ir(i,o)}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})(),rp=class rp{};rp.NOOP=new ep;var Ys=rp,Ks=class{};var E1=1e3,uv="{{",S1="}}",hv="ng-enter",Fh="ng-leave",Al="ng-trigger",Dl=".ng-trigger",Yg="ng-animating",Bh=".ng-animating";function Wn(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Oh(parseFloat(e[1]),e[2])}function Oh(n,e){switch(e){case"s":return n*E1;default:return n}}function Nl(n,e,t){return n.hasOwnProperty("duration")?n:b1(n,e,t)}function b1(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(Gg(n)),{duration:0,delay:0,easing:""};r=Oh(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(i=Oh(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($_()),a=!0),i<0&&(e.push(V_()),a=!0),a&&e.splice(l,0,Gg(n))}return{duration:r,delay:i,easing:o}}function x1(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function _n(n,e,t){e.forEach((s,r)=>{let i=tp(r);t&&!t.has(r)&&t.set(r,n.style[i]),n.style[i]=s})}function Xs(n,e){e.forEach((t,s)=>{let r=tp(s);n.style[r]=""})}function go(n){return Array.isArray(n)?n.length==1?n[0]:ud(n):n}function C1(n,e,t){let s=e.params||{},r=pv(n);r.length&&r.forEach(i=>{s.hasOwnProperty(i)||t.push(q_(i))})}var Rh=new RegExp(`${uv}\\s*(.+?)\\s*${S1}`,"g");function pv(n){let e=[];if(typeof n=="string"){let t;for(;t=Rh.exec(n);)e.push(t[1]);Rh.lastIndex=0}return e}function wo(n,e,t){let s=`${n}`,r=s.replace(Rh,(i,o)=>{let a=e[o];return a==null&&(t.push(U_(o)),a=""),a.toString()});return r==s?n:r}var _1=/-+([a-z0-9])/g;function tp(n){return n.replace(_1,(...e)=>e[1].toUpperCase())}function A1(n,e){return n===0||e===0}function T1(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,np(n,a)))}}return e}function xt(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 H_(e.type)}}function np(n,e){return window.getComputedStyle(n)[e]}var k1=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"]),Ml=class extends Ks{normalizePropertyName(e,t){return tp(e)}normalizeStyleValue(e,t,s,r){let i="",o=s.toString().trim();if(k1.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(j_(e,s))}return o+i}};var Ll="*";function I1(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>P1(s,t,e)):t.push(n),t}function P1(n,e,t){if(n[0]==":"){let l=D1(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(n1(n)),e;let r=s[1],i=s[2],o=s[3];e.push(Kg(r,o));let a=r==Ll&&o==Ll;i[0]=="<"&&!a&&e.push(Kg(o,r))}function D1(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 Tl=new Set(["true","1"]),kl=new Set(["false","0"]);function Kg(n,e){let t=Tl.has(n)||kl.has(n),s=Tl.has(e)||kl.has(e);return(r,i)=>{let o=n==Ll||n==r,a=e==Ll||e==i;return!o&&t&&typeof r=="boolean"&&(o=r?Tl.has(n):kl.has(n)),!a&&s&&typeof i=="boolean"&&(a=i?Tl.has(e):kl.has(e)),o&&a}}var dv=":self",N1=new RegExp(`s*${dv}s*,?`,"g");function fv(n,e,t,s){return new $h(n).build(e,t,s)}var Zg="",$h=class{constructor(e){this._driver=e}build(e,t,s){let r=new Vh(t);return this._resetContextStyleTimingState(r),xt(this,go(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Zg,e.collectedStyles=new Map,e.collectedStyles.set(Zg,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(W_()),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(z_())}),{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=>{pv(l).forEach(c=>{o.hasOwnProperty(c)||i.add(c)})})}),i.size&&t.errors.push(G_(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=xt(this,go(e.animation),t),r=I1(e.expr,t.errors);return{type:G.Transition,matchers:r,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:Qs(e.options)}}visitSequence(e,t){return{type:G.Sequence,steps:e.steps.map(s=>xt(this,s,t)),options:Qs(e.options)}}visitGroup(e,t){let s=t.currentTime,r=0,i=e.steps.map(o=>{t.currentTime=s;let a=xt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:G.Group,steps:i,options:Qs(e.options)}}visitAnimate(e,t){let s=B1(e.timings,t.errors);t.currentAnimateTimings=s;let r,i=e.styles?e.styles:Re({});if(i.type==G.Keyframes)r=this.visitKeyframes(i,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};s.easing&&(c.easing=s.easing),o=Re(c)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:G.Animate,timings:s,style:r,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===dn?s.push(a):t.errors.push(Q_(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(uv)>=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(X_(l,u.startTime,u.endTime,i,r)),p=!1),i=u.startTime),p&&c.set(l,{startTime:i,endTime:r}),t.options&&C1(a,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:G.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Y_()),s;let r=1,i=0,o=[],a=!1,l=!1,c=0,u=e.steps.map(x=>{let N=this._makeStyleAst(x,t),X=N.offset!=null?N.offset:F1(N.styles),K=0;return X!=null&&(i++,K=N.offset=X),l=l||K<0||K>1,a=a||K0&&i{let X=f>0?N==g?1:f*N:o[N],K=X*b;t.currentTime=w+y.delay+K,y.duration=K,this._validateStyleAst(x,t),x.offset=X,s.styles.push(x)}),s}visitReference(e,t){return{type:G.Reference,animation:xt(this,go(e.animation),t),options:Qs(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:G.AnimateChild,options:Qs(e.options)}}visitAnimateRef(e,t){return{type:G.AnimateRef,animation:this.visitReference(e.animation,t),options:Qs(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[i,o]=M1(e.selector);t.currentQuerySelector=s.length?s+" "+i:i,Ct(t.collectedStyles,t.currentQuerySelector,new Map);let a=xt(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:Qs(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(e1());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Nl(e.timings,t.errors,!0);return{type:G.Stagger,animation:xt(this,go(e.animation),t),timings:s,options:null}}};function M1(n){let e=!!n.split(/\s*,\s*/).find(t=>t==dv);return e&&(n=n.replace(N1,"")),n=n.replace(/@\*/g,Dl).replace(/@\w+/g,t=>Dl+"-"+t.slice(1)).replace(/:animating/g,Bh),[n,e]}function L1(n){return n?E({},n):null}var Vh=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 F1(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 B1(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let i=Nl(n,e).duration;return Ph(i,0,"")}let t=n;if(t.split(/\s+/).some(i=>i.charAt(0)=="{"&&i.charAt(1)=="{")){let i=Ph(0,0,"");return i.dynamic=!0,i.strValue=t,i}let r=Nl(t,e);return Ph(r.duration,r.delay,r.easing)}function Qs(n){return n?(n=E({},n),n.params&&(n.params=L1(n.params))):n={},n}function Ph(n,e,t){return{duration:n,delay:e,easing:t}}function sp(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()}},O1=1,R1=":enter",$1=new RegExp(R1,"g"),V1=":leave",q1=new RegExp(V1,"g");function mv(n,e,t,s,r,i=new Map,o=new Map,a,l,c=[]){return new qh().buildKeyframes(n,e,t,s,r,i,o,a,l,c)}var qh=class{buildKeyframes(e,t,s,r,i,o,a,l,c,u=[]){c=c||new yo;let p=new Uh(e,t,c,r,i,u,[]);p.options=l;let f=l.delay?Wn(l.delay):0;p.currentTimeline.delayNextStep(f),p.currentTimeline.setStyles([o],null,p.errors,l),xt(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()):[sp(t,[],[],[],0,f,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,o=this._visitSubInstructions(s,r,r.options);i!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let r of e){let i=r?.delay;if(i){let o=typeof i=="number"?i:Wn(wo(i,r?.params??{},t.errors));s.delayNextStep(o)}}}_visitSubInstructions(e,t,s){let i=t.currentTimeline.currentTime,o=s.duration!=null?Wn(s.duration):null,a=s.delay!=null?Wn(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),xt(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=Fl);let o=Wn(i.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>xt(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?Wn(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);i&&a.delayNextStep(i),xt(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 Nl(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?Wn(r.delay):0;i&&(t.previousNode.type===G.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Fl);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),xt(this,e.animation,p),p.currentTimeline.applyStylesToKeyframe();let f=p.currentTimeline.currentTime;o=Math.max(o,f)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,r=t.currentTimeline,i=e.timings,o=Math.abs(i.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":l=a-l;break;case"full":l=s.currentStaggerTime;break}let u=t.currentTimeline;l&&u.delayNextStep(l);let p=u.currentTime;xt(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=r.currentTime-p+(r.startTime-s.currentTimeline.startTime)}},Fl={},Uh=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=Fl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Bl(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=Wn(s.duration)),s.delay!=null&&(r.delay=Wn(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=Fl,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 Hh(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($1,"."+this._enterClassName),e=e.replace(q1,"."+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(t1(t)),a}},Bl=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+=O1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||dn),this._currentKeyframe.set(t,dn);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,r){t&&this._previousKeyframe.set("easing",t);let i=r&&r.params||{},o=U1(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)??dn),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let r=this._styleSummary.get(s);(!r||t.time>r.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((u,p)=>{u===qo?e.add(p):u===dn&&t.add(p)}),s||c.set("offset",l/this.duration),r.push(c)});let i=[...e.values()],o=[...t.values()];if(s){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return sp(this.element,r,i,o,this.duration,this.startTime,this.easing,!1)}},Hh=class extends Bl{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",Jg(a)),i.push(c);let u=e.length-1;for(let p=1;p<=u;p++){let f=new Map(e[p]),g=f.get("offset"),w=t+g*s;f.set("offset",Jg(w/o)),i.push(f)}s=o,t=0,r="",e=i}return sp(this.element,e,this.preStyleProps,this.postStyleProps,s,t,r,!0)}};function Jg(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function U1(n,e){let t=new Map,s;return n.forEach(r=>{if(r==="*"){s??=e.keys();for(let i of s)t.set(i,dn)}else for(let[i,o]of r)t.set(i,o)}),t}function ev(n,e,t,s,r,i,o,a,l,c,u,p,f){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:i,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:p,errors:f}}var Dh={},Ol=class{constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,r){return H1(this.ast.matchers,e,t,s,r)}buildStyles(e,t,s){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,s):new Map}build(e,t,s,r,i,o,a,l,c,u){let p=[],f=this.ast.options&&this.ast.options.params||Dh,g=a&&a.params||Dh,w=this.buildStyles(s,g,p),y=l&&l.params||Dh,b=this.buildStyles(r,y,p),x=new Set,N=new Map,X=new Map,K=r==="void",We={params:gv(y,f),delay:this.ast.options?.delay},Ke=u?[]:mv(e,t,this.ast.animation,i,o,w,b,We,c,p),Be=0;return Ke.forEach(be=>{Be=Math.max(be.duration+be.delay,Be)}),p.length?ev(t,this._triggerName,s,r,K,w,b,[],[],N,X,Be,p):(Ke.forEach(be=>{let ws=be.element,Zs=Ct(N,ws,new Set);be.preStyleProps.forEach(ys=>Zs.add(ys));let ip=Ct(X,ws,new Set);be.postStyleProps.forEach(ys=>ip.add(ys)),ws!==t&&x.add(ws)}),ev(t,this._triggerName,s,r,K,w,b,Ke,[...x.values()],N,X,Be))}};function H1(n,e,t,s,r){return n.some(i=>i(e,t,s,r))}function gv(n,e){let t=E({},e);return Object.entries(n).forEach(([s,r])=>{r!=null&&(t[s]=r)}),t}var jh=class{constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,r=gv(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 j1(n,e,t){return new Wh(n,e,t)}var Wh=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 jh(r.style,i,s))}),tv(this.states,"true","1"),tv(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Ol(e,r,this.states))}),this.fallbackTransition=W1(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 W1(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 Ol(n,i,e)}function tv(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 z1=new yo,zh=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=fv(this._driver,t,s,r);if(s.length)throw o1(s);r.length&&void 0,this._animations.set(e,i)}_buildPlayer(e,t,s){let r=e.element,i=av(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=mv(this._driver,t,i,hv,Fh,new Map,new Map,s,z1,r),o.forEach(u=>{let p=Ct(a,u.element,new Map);u.postStyleProps.forEach(f=>p.set(f,null))})):(r.push(a1()),o=[]),r.length)throw l1(r);a.forEach((u,p)=>{u.forEach((f,g)=>{u.set(g,this._driver.computeStyle(p,g,dn))})});let l=o.map(u=>{let p=a.get(u.element);return this._buildPlayer(u,new Map,p)}),c=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 c1(e);return t}listen(e,t,s,r){let i=Zh(t,"","","");return Kh(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}}},nv="ng-animate-queued",G1=".ng-animate-queued",Nh="ng-animate-disabled",Q1=".ng-animate-disabled",X1="ng-star-inserted",Y1=".ng-star-inserted",K1=[],vv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Z1={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=eA(r),s){let i=e,{value:o}=i,a=cp(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",Mh=new Eo(vo),Gh=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,Wt(t,this._hostClassName)}listen(e,t,s,r){if(!this._triggers.has(t))throw u1(s,t);if(s==null||s.length==0)throw h1(t);if(!tA(s))throw p1(s,t);let i=Ct(this._elementListeners,e,[]),o={name:t,phase:s,callback:r};i.push(o);let a=Ct(this._engine.statesByElement,e,new Map);return a.has(t)||(Wt(e,Al),Wt(e,Al+"-"+t),a.set(t,Mh)),()=>{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 d1(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||(Wt(e,Al),Wt(e,Al+"-"+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=Mh),!(c.value===vo)&&l.value===c.value){if(!rA(l.params,c.params)){let y=[],b=i.matchStyles(l.value,l.params,y),x=i.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{Xs(e,b),_n(e,x)})}return}let f=Ct(this._engine.playersByElement,e,[]);f.forEach(y=>{y.namespaceId==this.id&&y.triggerName==t&&y.queued&&y.destroy()});let g=i.matchTransition(l.value,c.value,e,c.params),w=!1;if(!g){if(!r)return;g=i.fallbackTransition,w=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:w}),w||(Wt(e,nv),o.onStart(()=>{ei(e,nv)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let b=this._engine.playersByElement.get(e);if(b){let x=b.indexOf(o);x>=0&&b.splice(x,1)}}),this.players.push(o),f.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,Dl,!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)||Mh,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===vv)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){Wt(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=Zh(i,s.triggerName,s.fromState.value,s.toState.value);l._data=e,Kh(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)}},Qh=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 Gh(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(Il(t)){let i=this._fetchNamespace(e);if(i)return i.trigger(t,s,r),!0}return!1}insertNode(e,t,s,r){if(!Il(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),Wt(e,Nh)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ei(e,Nh))}removeNode(e,t,s){if(Il(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 Il(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,Dl,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Bh,!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]=vv,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Nh)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Q1,!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 f1(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,G1,!0);for(let F=0;F{let F=hv+y++;w.set(L,F),P.forEach(Z=>Wt(Z,F))});let b=[],x=new Set,N=new Set;for(let P=0;Px.add(Z)):N.add(L))}let X=new Map,K=iv(f,Array.from(x));K.forEach((P,L)=>{let F=Fh+y++;X.set(L,F),P.forEach(Z=>Wt(Z,F))}),e.push(()=>{g.forEach((P,L)=>{let F=w.get(L);P.forEach(Z=>ei(Z,F))}),K.forEach((P,L)=>{let F=X.get(L);P.forEach(Z=>ei(Z,F))}),b.forEach(P=>{this.processLeaveNode(P)})});let We=[],Ke=[];for(let P=this._namespaceList.length-1;P>=0;P--)this._namespaceList[P].drainQueuedTransitions(t).forEach(F=>{let Z=F.player,Ie=F.element;if(We.push(Z),this.collectedEnterElements.length){let ze=Ie[en];if(ze&&ze.setForMove){if(ze.previousTriggersValues&&ze.previousTriggersValues.has(F.triggerName)){let Es=ze.previousTriggersValues.get(F.triggerName),_t=this.statesByElement.get(F.element);if(_t&&_t.has(F.triggerName)){let bo=_t.get(F.triggerName);bo.value=Es,_t.set(F.triggerName,bo)}}Z.destroy();return}}let tn=!p||!this.driver.containsElement(p,Ie),ct=X.get(Ie),zn=w.get(Ie),fe=this._buildInstruction(F,s,zn,ct,tn);if(fe.errors&&fe.errors.length){Ke.push(fe);return}if(tn){Z.onStart(()=>Xs(Ie,fe.fromStyles)),Z.onDestroy(()=>_n(Ie,fe.toStyles)),r.push(Z);return}if(F.isFallbackTransition){Z.onStart(()=>Xs(Ie,fe.fromStyles)),Z.onDestroy(()=>_n(Ie,fe.toStyles)),r.push(Z);return}let lp=[];fe.timelines.forEach(ze=>{ze.stretchStartingKeyframe=!0,this.disabledNodes.has(ze.element)||lp.push(ze)}),fe.timelines=lp,s.append(Ie,fe.timelines);let Nv={instruction:fe,player:Z,element:Ie};o.push(Nv),fe.queriedElements.forEach(ze=>Ct(a,ze,[]).push(Z)),fe.preStyleProps.forEach((ze,Es)=>{if(ze.size){let _t=l.get(Es);_t||l.set(Es,_t=new Set),ze.forEach((bo,jl)=>_t.add(jl))}}),fe.postStyleProps.forEach((ze,Es)=>{let _t=c.get(Es);_t||c.set(Es,_t=new Set),ze.forEach((bo,jl)=>_t.add(jl))})});if(Ke.length){let P=[];Ke.forEach(L=>{P.push(m1(L.triggerName,L.errors))}),We.forEach(L=>L.destroy()),this.reportError(P)}let Be=new Map,be=new Map;o.forEach(P=>{let L=P.element;s.has(L)&&(be.set(L,L),this._beforeAnimationBuild(P.player.namespaceId,P.instruction,Be))}),r.forEach(P=>{let L=P.element;this._getPreviousPlayers(L,!1,P.namespaceId,P.triggerName,null).forEach(Z=>{Ct(Be,L,[]).push(Z),Z.destroy()})});let ws=b.filter(P=>ov(P,l,c)),Zs=new Map;rv(Zs,this.driver,N,c,dn).forEach(P=>{ov(P,l,c)&&ws.push(P)});let ys=new Map;g.forEach((P,L)=>{rv(ys,this.driver,new Set(P),l,qo)}),ws.forEach(P=>{let L=Zs.get(P),F=ys.get(P);Zs.set(P,new Map([...L?.entries()??[],...F?.entries()??[]]))});let Hl=[],op=[],ap={};o.forEach(P=>{let{element:L,player:F,instruction:Z}=P;if(s.has(L)){if(u.has(L)){F.onDestroy(()=>_n(L,Z.toStyles)),F.disabled=!0,F.overrideTotalTime(Z.totalTime),r.push(F);return}let Ie=ap;if(be.size>1){let ct=L,zn=[];for(;ct=ct.parentNode;){let fe=be.get(ct);if(fe){Ie=fe;break}zn.push(ct)}zn.forEach(fe=>be.set(fe,Ie))}let tn=this._buildAnimation(F.namespaceId,Z,Be,i,ys,Zs);if(F.setRealPlayer(tn),Ie===ap)Hl.push(F);else{let ct=this.playersByElement.get(Ie);ct&&ct.length&&(F.parentPlayer=vs(ct)),r.push(F)}}else Xs(L,Z.fromStyles),F.onDestroy(()=>_n(L,Z.toStyles)),op.push(F),u.has(L)&&r.push(F)}),op.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);Ie.length?nA(this,L,Ie):this.processLeaveNode(L)}return b.length=0,Hl.forEach(P=>{this.players.push(P),P.onDone(()=>{P.destroy();let L=this.players.indexOf(P);this.players.splice(L,1)}),P.play()}),Hl}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=Ct(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)})}Xs(i,t.fromStyles)}_buildAnimation(e,t,s,r,i,o){let a=t.triggerName,l=t.element,c=[],u=new Set,p=new Set,f=t.timelines.map(w=>{let y=w.element;u.add(y);let b=y[en];if(b&&b.removedBeforeQueried)return new ir(w.duration,w.delay);let x=y!==l,N=sA((s.get(y)||K1).map(Be=>Be.getRealPlayer())).filter(Be=>{let be=Be;return be.element?be.element===y:!1}),X=i.get(y),K=o.get(y),We=av(this._normalizer,w.keyframes,X,K),Ke=this._buildPlayer(w,We,N);if(w.subTimeline&&r&&p.add(y),x){let Be=new So(e,a,y);Be.setRealPlayer(Ke),c.push(Be)}return Ke});c.forEach(w=>{Ct(this.playersByQueriedElement,w.element,[]).push(w),w.onDone(()=>J1(this.playersByQueriedElement,w.element,w))}),u.forEach(w=>Wt(w,Yg));let g=vs(f);return g.onDestroy(()=>{u.forEach(w=>ei(w,Yg)),_n(l,t.toStyles)}),p.forEach(w=>{Ct(r,w,[]).push(g)}),g}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new ir(e.duration,e.delay)}},So=class{constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s,this._player=new ir,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(r=>Kh(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){Ct(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 J1(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 eA(n){return n??null}function Il(n){return n&&n.nodeType===1}function tA(n){return n=="start"||n=="done"}function sv(n,e){let t=n.style.display;return n.style.display=e??"none",t}function rv(n,e,t,s,r){let i=[];t.forEach(l=>i.push(sv(l)));let o=[];s.forEach((l,c)=>{let u=new Map;l.forEach(p=>{let f=e.computeStyle(c,p,r);u.set(p,f),(!f||f.length==0)&&(c[en]=Z1,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>sv(l,i[a++])),o}function iv(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 Wt(n,e){n.classList?.add(e)}function ei(n,e){n.classList?.remove(e)}function nA(n,e,t){vs(t).onDone(()=>n.processLeaveNode(e))}function sA(n){let e=[];return wv(n,e),e}function wv(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 Qh(e.body,t,s),this._timelineEngine=new zh(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=fv(this._driver,i,l,c);if(l.length)throw r1(r,l);c.length&&void 0,a=j1(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]=Qg(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]=Qg(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 iA(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=Lh(e[0]),e.length>1&&(s=Lh(e[e.length-1]))):e instanceof Map&&(t=Lh(e)),t||s?new Xh(n,t,s):null}var ti=class ti{constructor(e,t,s){this._element=e,this._startStyles=t,this._endStyles=s,this._state=0;let r=ti.initialStylesByElement.get(e);r||ti.initialStylesByElement.set(e,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&_n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_n(this._element,this._initialStyles),this._endStyles&&(_n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(ti.initialStylesByElement.delete(this._element),this._startStyles&&(Xs(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Xs(this._element,this._endStyles),this._endStyles=null),_n(this._element,this._initialStyles),this._state=3)}};ti.initialStylesByElement=new WeakMap;var Xh=ti;function Lh(n){let e=null;return n.forEach((t,s)=>{oA(s)&&(e=e||new Map,e.set(s,t))}),e}function oA(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:np(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},$l=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return lv(e,t)}getParentElement(e){return Jh(e)}query(e,t,s){return cv(e,t,s)}computeStyle(e,t,s){return np(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);A1(s,r)&&u.forEach(g=>{g.currentSnapshot.forEach((w,y)=>c.set(y,w))});let p=x1(t).map(g=>new Map(g));p=T1(e,p,c);let f=iA(e,p);return new Rl(e,p,l,f)}};var Pl="@",yv="@.disabled",Vl=class{constructor(e,t,s,r){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=r,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,r=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,s){this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,r){this.delegate.setAttribute(e,t,s,r)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,r){this.delegate.setStyle(e,t,s,r)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Pl&&t==yv?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)}},Yh=class extends Vl{constructor(e,t,s,r,i){super(t,s,r,i),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Pl?t.charAt(1)=="."&&t==yv?(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)==Pl){let r=aA(e),i=t.slice(1),o="";return i.charAt(0)!=Pl&&([i,o]=lA(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 aA(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function lA(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var ql=class{constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=(r,i)=>{let o=i?.parentNode(r);o&&i.removeChild(o,r)}}createRenderer(e,t){let s="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,u=c.get(r);if(!u){let p=()=>c.delete(r);u=new Vl(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 Yh(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 uA=(()=>{let e=class e extends ni{constructor(s,r,i){super(s,r,i)}ngOnDestroy(){this.flush()}};e.\u0275fac=function(r){return new(r||e)(Ze(Lp),Ze(Ys),Ze(Ks))},e.\u0275prov=nn({token:e,factory:e.\u0275fac});let n=e;return n})();function hA(){return new Ml}function pA(n,e,t){return new ql(n,e,t)}var Ev=[{provide:Ks,useFactory:hA},{provide:ni,useClass:uA},{provide:Ap,useFactory:pA,deps:[$p,ni,kp]}],dA=[{provide:Ys,useFactory:()=>new $l},{provide:Wl,useValue:"BrowserAnimations"},...Ev],pk=[{provide:Ys,useClass:ep},{provide:Wl,useValue:"NoopAnimations"},...Ev];function Sv(){return Tp("NgEagerAnimations"),[...dA]}var fA=n=>()=>Gn(void 0,null,function*(){yield n.initialize()}),bv={providers:[Sp(id,ii,cd,hn,td),Op(Rp()),Sv(),Jr.production?Ql(kh,Xl()):Ql(kh,Xl(),Gp(zp)),{provide:Dp,useFactory:fA,multi:!0,deps:[xl]}]};function mA(n,e){n&1&&Do(0)}var xv=oi("toggle",[Zn(":enter",[Re({maxWidth:"0"}),Kn("100ms",Re({maxWidth:"*"}))]),Zn(":leave",[Re({maxWidth:""}),Kn("100ms",Re({maxWidth:"0"}))])]),Cv=(()=>{let e=class e{constructor(s,r,i){this.ss=s,this.r2=r,this.cd=i,this.sidebarToggle$=this.ss.sidebarToggle.pipe(ai())}ngOnInit(){this.sidebarToggle$.subscribe(s=>{this.info=s,this.cd.detectChanges()})}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(Io),M(Fo))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-sidebar"]],standalone:!0,features:[De],decls:1,vars:2,consts:[[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(r,i){r&1&&we(0,mA,1,0,"ng-container",0),r&2&&te("ngComponentOutlet",i.info==null?null:i.info.component)("ngComponentOutletInputs",i.info==null?null:i.info.inputs)},dependencies:[Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:block;height:100%;width:var(--sidebar-width);max-width:var(--sidebar-width);background-color:var(--cl-sidebar-bg);color:var(--cl-sidebar-txt);flex:0 0 var(--sidebar-width);border-right:1px solid var(--cl-sidebar-border);z-index:3;position:relative;overflow:hidden}"],changeDetection:0});let n=e;return n})();var _v=oi("toggleError",[Zn(":enter",[Re({transform:"translateX(100%)"}),Kn("100ms",Re({transform:"translateX(0)"}))]),Zn(":leave",[Re({transform:"translateX(0)"}),Kn("100ms",Re({transform:"translateX(100%)"}))])]),Av=oi("toggleErrorLeft",[Zn(":enter",[Re({transform:"translateX(-100%)"}),Kn("100ms",Re({transform:"translateX(0)"}))]),Zn(":leave",[Re({transform:"translateX(0)"}),Kn("100ms",Re({transform:"translateX(-100%)"}))])]),Tv=(()=>{let e=class e{constructor(s,r){this.es=s,this.el=r,this.height=32}get isLeft(){return this.error.isLeft}get getOffset(){return 8+this.es.getIndex(this.error)*(this.height+8)}ngOnInit(){}ngAfterViewInit(){}onClick(s){this.es.close(this.error)}};e.\u0275fac=function(r){return new(r||e)(M(tr),M(sn))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-error"]],hostVars:4,hostBindings:function(r,i){r&1&&ee("click",function(a){return i.onClick(a)}),r&2&&(Po("bottom",i.getOffset,"px"),Je("left",i.isLeft))},inputs:{error:"error"},standalone:!0,features:[De],decls:2,vars:1,template:function(r,i){r&1&&(B(0,"span"),ge(1),O()),r&2&&(D(),Qt(i.error.message))},styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;cursor:pointer;position:absolute;padding:4px 10px;height:32px;color:#fff;background-color:red;display:flex;justify-content:flex-start;align-items:center;border-radius:4px;right:10px;white-space:nowrap;max-width:50%;transition:bottom .1s linear;z-index:100}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{min-width:0;overflow:hidden;text-overflow:ellipsis}.left[_nghost-%COMP%]{right:auto;left:10px}"]});let n=e;return n})();var gA=["inp"],Ul=(()=>{let e=class e{constructor(){this.search=new si,this.value="",this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){this.subOnSearch=_o(this.inp.nativeElement,"input").pipe(Ao(200),To()).subscribe(()=>{this.search.emit(this.value)})}writeValue(s){this.value=s}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){}onModelChange(s){this.writeValue(s),this.onChange(s)}emitValueChanged(){this.search.emit(this.value)}ngOnDestroy(){this.subOnSearch&&this.subOnSearch.unsubscribe()}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=Pe({type:e,selectors:[["dsw-search-input"]],viewQuery:function(r,i){if(r&1&&ut(gA,7),r&2){let o;ht(o=pt())&&(i.inp=o.first)}},outputs:{search:"search"},standalone:!0,features:[Ip([{provide:Yp,useExisting:wp(()=>e),multi:!0}]),De],decls:3,vars:1,consts:[["inp",""],["ngSrc","assets/img/icons/icon-search.svg","height","12","width","12","priority",""],["type","text","placeholder","Search",3,"keydown.enter","ngModelChange","ngModel"]],template:function(r,i){if(r&1){let o=Ce();me(0,"img",1),B(1,"input",2,0),ee("keydown.enter",function(){ce(o);let l=No(2);return ue(l.blur())}),kn("ngModelChange",function(l){return ce(o),Tn(i.value,l)||(i.value=l),ue(l)}),ee("ngModelChange",function(l){return ce(o),ue(i.onModelChange(l))}),O()}r&2&&(D(),An("ngModel",i.value))},dependencies:[hn,$o,Xn,Yn,Oo],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{position:relative;display:block}[_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-decoration, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-cancel-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-button, [_nghost-%COMP%] > input[_ngcontent-%COMP%]::-webkit-search-results-decoration{-webkit-appearance:none}input[_ngcontent-%COMP%]{border:none;color:#606367;height:24px;border-bottom:1px solid #EBEBEA;padding-left:16px;border-radius:0}input[_ngcontent-%COMP%]:focus, input[_ngcontent-%COMP%]:active{border:none;border-bottom:1px solid var(--cl-accent);outline:none}input[_ngcontent-%COMP%]::placeholder{color:var(--cl-header-txt);opacity:.5}img[_ngcontent-%COMP%]{position:absolute;pointer-events:none;top:5px}"]});let n=e;return n})();function vA(n,e){if(n&1&&(B(0,"div",1),ge(1),O()),n&2){let t=ne();D(),on(" ",t.data.title," ")}}function wA(n,e){n&1&&Do(0)}function yA(n,e){if(n&1&&we(0,wA,1,0,"ng-container",4),n&2){let t=ne();te("ngComponentOutlet",t.data==null?null:t.data.component)("ngComponentOutletInputs",t.data==null?null:t.data.inputs)}}function EA(n,e){if(n&1){let t=Ce();B(0,"dsw-search-input",7),ee("search",function(r){ce(t);let i=ne(2);return ue(i.onSearch(r))}),O()}if(n&2){let t=ne(2);te("ngModel",t.data.search)}}function SA(n,e){if(n&1){let t=Ce();B(0,"button",8),ee("click",function(){let r=ce(t).$implicit,i=ne(2);return ue(i.onButtonClick(r))}),ge(1),O()}if(n&2){let t=e.$implicit;Je("btn-white",!t.default),D(),on(" ",t.label," ")}}function bA(n,e){if(n&1&&(B(0,"div",3),we(1,EA,1,1,"dsw-search-input",5),zt(2,SA,2,3,"button",6,rn),O()),n&2){let t=ne();D(),pe(t.data.search!==void 0?1:-1),D(),Gt(t.data.buttons)}}var Iv=(()=>{let e=class e{constructor(s,r,i,o){this.ms=s,this.cd=r,this.el=i,this.r2=o,this.search=new si,this.isInitialized=!1,this.subscriptions=[]}get noBackdrop(){return!!this.data.hideBackdrop}ngOnInit(){this.data.inputs._modal=this,this.isInitialized=!0}ngAfterViewInit(){this.initDynamicComponent(),this.updateHostStyles()}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getPath(s){let r=[],i=s.target;for(;i;)r.push(i),i=i.parentElement;return r.indexOf(window)===-1&&r.indexOf(document)===-1&&r.push(document),r.indexOf(window)===-1&&r.push(window),r}onClick(s){if(!this.data.closeByBackdropClick)return;this.getPath(s).some(i=>!!i.classList?.contains("modal"))||(this.close(),s.preventDefault())}onGlobalKeyPressed(s){if(this.isTopmost())switch(s.code.toLowerCase()){case"enter":case"numpadenter":this.processEnterKey();break;case"escape":this.processEscapeKey();break}}close(){this.ms.close(this.data)}onButtonClick(s){s.click&&s.click(this,this.data,s),s.autoClose&&this.close()}onSearch(s){this.search.emit(s)}ngOnChanges(s){s.data?.currentValue&&s.data.currentValue!==s.data.previousValue&&this.cd.detectChanges()}processEnterKey(){if(!this.data.buttons?.length)return;let s=this.data.buttons.find(r=>r.default);s&&(s.click&&s.click(this,this.data,s),s.autoClose&&this.close())}processEscapeKey(){this.data.closeByEsc&&this.close()}isTopmost(){let s=this.ms.modals.getValue();return s[s.length-1]===this.data}subscribeForOutputs(s){if(this.data.outputs)for(let r in this.data.outputs){let i=s[r];if(!i||!(i instanceof si))return;this.subscriptions.push(i.subscribe((...o)=>this.data.outputs?.[r](...o)))}}updateHostStyles(){let s=this.data.componentStyles,r=this.dynCompEl?.nativeElement;if(r&&(r.nodeName==="#comment"&&(r=r.previousElementSibling),s))for(let i in s)this.r2.setStyle(r,i,s[i])}initDynamicComponent(){let s;this.ngComponentOutlet?._componentRef?.instance&&(s=this.ngComponentOutlet._componentRef.instance),s&&(this.data.onComponentInit&&this.data.onComponentInit(s),this.subscribeForOutputs(s))}};e.\u0275fac=function(r){return new(r||e)(M(rr),M(Fo),M(sn),M(Io))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-modal"]],viewQuery:function(r,i){if(r&1&&(ut(Js,5,sn),ut(Js,5)),r&2){let o;ht(o=pt())&&(i.dynCompEl=o.first),ht(o=pt())&&(i.ngComponentOutlet=o.first)}},hostVars:2,hostBindings:function(r,i){r&1&&ee("mousedown",function(a){return i.onClick(a)})("keydown",function(a){return i.onGlobalKeyPressed(a)},!1,ko),r&2&&Je("no-backdrop",i.noBackdrop)},inputs:{data:"data"},standalone:!0,features:[bp,De],decls:6,vars:8,consts:[[1,"modal"],[1,"title"],[1,"content"],[1,"footer"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"ngModel"],[1,"btn",3,"btn-white"],[3,"search","ngModel"],[1,"btn",3,"click"]],template:function(r,i){r&1&&(B(0,"div",0),we(1,vA,2,1,"div",1),B(2,"div",2),ge(3),we(4,yA,1,2,"ng-container"),O(),we(5,bA,4,1,"div",3),O()),r&2&&(Je("no-padding",i.data.noPadding)("min-height",i.data.minHeight),D(),pe(i.data.title?1:-1),D(2),on(" ",i.data.message," "),D(),pe(i.isInitialized?4:-1),D(),pe(i.data.buttons!=null&&i.data.buttons.length?5:-1))},dependencies:[Ul,hn,Xn,Yn,Js],styles:["[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{font-family:Oxygen;display:flex;justify-content:center;align-items:center;background-color:#0006;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:10;position:fixed;inset:0}.no-backdrop[_nghost-%COMP%]{background:none;background-color:none;-webkit-backdrop-filter:none;backdrop-filter:none}.modal[_ngcontent-%COMP%]{background-color:var(--cl-modal-bg);color:var(--cl-sidebar-txt);max-height:90vh;display:flex;flex-direction:column;min-width:320px;max-width:calc(100vw - 100px);font-family:Oxygen;box-shadow:0 0 10px #0000001a;border-radius:10px;padding:20px}.modal.min-height[_ngcontent-%COMP%]{height:min(500px,90vh)}.modal.no-padding[_ngcontent-%COMP%]{padding:0}.title[_ngcontent-%COMP%]{font-size:18px;margin-bottom:20px;font-weight:400;color:#000}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;width:100%;margin-top:20px;flex-shrink:0}.footer[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{margin-left:10px;min-width:80px}.content[_ngcontent-%COMP%]{overflow:auto;display:flex;flex-direction:column;margin-bottom:auto}.content[_ngcontent-%COMP%]::-webkit-scrollbar{-webkit-appearance:none;width:24px}.content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--cl-scrollbar);border-left:20px solid white}dsw-search-input[_ngcontent-%COMP%]{margin-right:auto}"]});let n=e;return n})();var xA=["inpSearch"];function CA(n,e){if(n&1&&(B(0,"div",5),ge(1),O()),n&2){let t=ne();D(),Qt(t.title)}}function _A(n,e){if(n&1){let t=Ce();B(0,"span",20),ee("click",function(){ce(t);let r=ne(2);return ue(r.isMorePressed=!r.isMorePressed)}),ge(1," ... "),O()}if(n&2){let t=ne(2);Je("pressed",t.isMorePressed)}}function AA(n,e){if(n&1&&(B(0,"a",21),ge(1),O()),n&2){let t=e.$implicit;te("routerLink",t.url)("title",t.title),D(),Qt(t.title)}}function TA(n,e){if(n&1&&(B(0,"div",19),zt(1,AA,2,3,"a",21,rn),O()),n&2){let t=ne().$implicit;D(),Gt(t.moreList)}}function kA(n,e){if(n&1){let t=Ce();B(0,"a",17),ee("click",function(r){let i=ce(t).$implicit,o=ne();return ue(o.hideMoreDropdown(r,i.isMoreButton))}),ge(1),we(2,_A,2,2,"span",18)(3,TA,3,0,"div",19),O()}if(n&2){let t=e.$implicit,s=ne();Je("show-only-last",s.isSearch),te("routerLink",t.url)("title",t.title),D(),on(" ",t.title," "),D(),pe(t.isMoreButton?2:-1),D(),pe(t.isMoreButton&&s.isMorePressed?3:-1)}}function IA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.gotoZenDeepSee())}),me(2,"img",23),O()}n&2&&te("title",Ee(1,1,"gotoDeepSee"))}function PA(n,e){if(n&1){let t=Ce();B(0,"div",24),ye(1,"i18n"),ee("mouseover",function(){ce(t);let r=ne();return ue(r.showShareDashboard())}),me(2,"img",25)(3,"dsw-share-dashboard",26),O()}if(n&2){let t=ne();te("title",Ee(1,3,"shareDashboard")),D(3),te("shareUrl",t.shareUrl)("isSmall",!0)}}function DA(n,e){if(n&1){let t=Ce();B(0,"button",22),ye(1,"i18n"),ee("click",function(){ce(t);let r=ne();return ue(r.onAddClick())}),B(2,"span",27),ge(3,"+"),O()()}n&2&&te("title",Ee(1,1,"addWidget"))}function NA(n,e){if(n&1){let t=Ce();B(0,"div",28),ee("click",function(){ce(t);let r=ne();return ue(r.toggleMobileFilter())}),me(1,"img",29),O()}}function MA(n,e){if(n&1&&(B(0,"option",14),ge(1),O()),n&2){let t=e.$implicit;te("value",t),D(),Qt(t)}}var Pv=(()=>{let e=class e{constructor(s,r,i,o,a,l,c,u,p,f,g){this.ss=s,this.hs=r,this.ds=i,this.ms=o,this.us=a,this.modal=l,this.fs=c,this.storage=u,this.i18n=p,this.route=f,this.router=g,this.namespace="",this.isSearch=!1,this.title="",this.path=[],this.isMobileFilterButton=!1,this.selectedLanguage=this.i18n.current.toUpperCase(),this.isMorePressed=!1,this.shareUrl="",this.search="",this.pathSegments=[],this.languages=this.i18n.getLanguages().map(w=>w.toUpperCase()),this.path$=this.getNavigationEndStream(),(this.storage.serverSettings?.Embed||this.us.isEmbedded())&&this.hs.visible$.next(!1),this.subOnSearchReset=this.hs.onSearchReset.subscribe(()=>{this.inpSearch.value="",this.inpSearch.emitValueChanged()})}get canEdit(){return location.port==="4007"}static processPath(s,r,i){let o=decodeURIComponent(r);return o.indexOf("?")!==-1&&(o=o.split("?")[0]),{title:o,url:decodeURIComponent(s.slice(0,i+1).join("/"))}}ngOnInit(){this.namespace=dt,this.subTitle=this.ms.onSetTitle.subscribe(s=>{this.title=s||this.path[this.path?.length-1]?.title||""}),this.subGotoDSZ=this.hs.gotoZenDeepSeeEmitter.subscribe(()=>{this.gotoZenDeepSee()}),this.subToggleMobileFilter=this.hs.mobileFilterToggle.subscribe(s=>{this.isMobileFilterButton=s})}ngOnDestroy(){this.subOnSearchReset.unsubscribe(),this.subToggleMobileFilter?.unsubscribe(),this.subGotoDSZ?.unsubscribe(),this.subTitle?.unsubscribe()}ngAfterViewInit(){}toggleMenu(){this.ss.sidebarToggle.value?this.ss.hide():this.ss.showComponent({component:import("./chunk-ZVWZNNVO.js")})}gotoZenDeepSee(){let s=this.storage.serverSettings.DefaultApp||"/csp/"+dt,r=this.path[this.path.length-1]?.url?.split("/").slice(1).join("/"),o=(location.pathname.split("/").slice(0,-2).join("/")||"")+s+"/_DeepSee.UserPortal.DashboardViewer.zen?DASHBOARD="+encodeURIComponent(decodeURIComponent(r||""));window.open(o)}showShareDashboard(){this.shareUrl=this.fs.getFiltersShareUrl()}toggleMobileFilter(){this.hs.toggleMobileFilterDialog()}selectLanguage(s){let r=s.toLowerCase(),i=this.storage.getAppSettings();this.i18n.current=r,i.language=r,this.storage.setAppSettings(i),window.location.reload()}logout(){this.ds.signOut()}hideMoreDropdown(s,r=!1){r||s?.target?.classList?.contains("btn-more")||(this.isMorePressed=!1)}onAddClick(){this.ss.showComponent({component:import("./chunk-YSVXLS2N.js"),single:!0})}onSearch(s){this.ms.onEditDashboard.emit(!1),this.hs.onSearch.next(s)}getPathFromLocation(){let s=window.location.href.split("#")[1].split("/").slice(1);return this.initSearch(s),this.pathSegments=s.map((r,i)=>e.processPath(s,r,i)),this.buildMoreDropdown(),this.pathSegments}getPathFromNavigation(s){let i=this.router.parseUrl(this.router.url).root.children.primary?.segments?.map(o=>o.path)||[];return this.initSearch(i),this.pathSegments=i.map((o,a)=>e.processPath(i,o,a)),this.buildMoreDropdown(),this.pathSegments}buildMoreDropdown(){if(this.pathSegments.length>3){let s=this.pathSegments.splice(1,this.pathSegments.length-2);this.pathSegments.splice(1,0,{title:"",isMoreButton:!0,moreList:s})}}initSearch(s){this.isSearch=!s[s.length-1]?.split("?")[0]?.endsWith(".dashboard")}getNavigationEndStream(){return dp(pp(this.getPathFromLocation()),this.router.events.pipe(fp(s=>s instanceof Hp),xo(s=>this.getPathFromNavigation(s)))).pipe(vp(s=>(this.path=s,s)))}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(At),M(Vo),M(nr),M(rr),M(sr),M(cn),M(Qn),M(an),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["dsw-header"]],viewQuery:function(r,i){if(r&1&&ut(xA,5),r&2){let o;ht(o=pt())&&(i.inpSearch=o.first)}},hostBindings:function(r,i){r&1&&ee("click",function(a){return i.hideMoreDropdown(a)},!1,ko)},standalone:!0,features:[De],decls:26,vars:21,consts:[["inpSearch",""],["lang",""],[1,"btn","square","btn-side-menu",3,"click"],["src","assets/img/icons/menu.svg"],[1,"breadcrumbs"],[1,"only-sm"],[1,"items"],[1,"path",3,"routerLink","title","show-only-last"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"title"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"title"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm"],[1,"search-block"],[3,"search","hidden"],[1,"lang-selector","only-desktop",3,"ngModelChange","change","ngModel"],[3,"value"],[1,"btn","btn-icon","only-desktop",3,"click","title"],["src","assets/img/icons/icon-logout.svg"],[1,"path",3,"click","routerLink","title"],[1,"btn-more",3,"pressed"],[1,"dropdown-more"],[1,"btn-more",3,"click"],[1,"path",3,"routerLink","title"],[1,"btn","btn-icon","square","s60","btn-goto","only-desktop",3,"click","title"],["src","assets/img/icons/icon-navigate.svg",1,"flip"],[1,"btn","btn-icon","square","s60","only-desktop","btn-share",3,"mouseover","title"],["src","assets/img/icons/icon-share.svg"],[3,"shareUrl","isSmall"],[1,"icon-plus"],[1,"btn","btn-icon","square","btn-mobile-filter","only-sm",3,"click"],["src","assets/img/icons/filter_alt-black-18dp.svg"]],template:function(r,i){if(r&1){let o=Ce();B(0,"div")(1,"button",2),ye(2,"async"),ee("click",function(){return ce(o),ue(i.toggleMenu())}),me(3,"img",3),O(),B(4,"h2",4),we(5,CA,2,1,"div",5),B(6,"div",6),zt(7,kA,4,7,"a",7,rn),ye(9,"async"),O()(),we(10,IA,3,3,"button",8)(11,PA,4,5,"div",9)(12,DA,4,3,"button",8)(13,NA,2,0,"div",10),O(),B(14,"div",11)(15,"dsw-search-input",12,0),ee("search",function(l){return ce(o),ue(i.onSearch(l))}),O(),B(17,"select",13,1),kn("ngModelChange",function(l){return ce(o),Tn(i.selectedLanguage,l)||(i.selectedLanguage=l),ue(l)}),ee("change",function(){ce(o);let l=No(18);return ue(i.selectLanguage(l.value))}),zt(19,MA,2,2,"option",14,rn),O(),B(21,"button",15),ye(22,"i18n"),ee("click",function(){return ce(o),ue(i.logout())}),me(23,"img",16),ge(24),ye(25,"i18n"),O()()}if(r&2){let o;D(),Je("active",!!((o=Ee(2,13,i.ss.sidebarToggle))!=null&&o.component)),D(4),pe(i.isSearch?-1:5),D(),Je("no-opacity",i.isSearch),D(),Gt(Ee(9,15,i.path$)),D(3),pe(i.isSearch?-1:10),D(),pe(i.isSearch?-1:11),D(),pe(!i.isSearch&&i.canEdit?12:-1),D(),pe(!i.isSearch&&i.isMobileFilterButton?13:-1),D(2),te("hidden",!i.isSearch),D(2),An("ngModel",i.selectedLanguage),D(2),Gt(i.languages),D(2),te("title",Ee(22,17,"signout")),D(3),on(" ",Ee(25,19,"signout")," ")}},dependencies:[Wp,dd,Ul,hn,Zp,Jp,Kp,Xn,Yn,er,Ro],styles:['[_ngcontent-%COMP%]:root{--cl-bg: #F5F5F5;--cl-accent: #1A73E8;--cl-btn-hover: #76abf1;--cl-hover: #E8F0FE;--cl-txt: #555555;--input-border-radius: 13px;--cl-btn-main: #5cb85c;--cl-btn-main-txt: #fff;--cl-btn-main-border: #4cae4c;--cl-btn-main-hover: #6eca6e;--cl-btn-secondary: #e6e6e6;--cl-btn-secondary-txt: #cccccc;--cl-btn-secondary-border: #b4b2b2;--cl-btn-secondary-hover: #dbdbdb;--icon-filter: none;--cl1: #b6e6ff;--cl2: #f7bfb7;--cl3: #bceca8;--cl4: #fff9a8;--cl5: #ffc593;--cl6: #f9b1ab;--cl7: #9de7fb;--cl8: #a8b8f9;--cl9: #9df1ae;--cl-header-bg: #FFFFFF;--cl-header-border: #F5F5F5;--cl-header-txt: #606367;--cl-header-ico: var(--cl-header-txt);--cl-header-btn-active: var(--cl-header-bg);--cl-header-btn-hover: var(--cl-bg);--cl-header-btn-hover-darken: var(--cl-hover);--header-height: 64px;--menu-item-icon-filter: none;--cl-sidebar-bg: #F5F5F5;--cl-sidebar-txt: #606367;--tile-border: none;--tile-border-radius: 10px;--tile-header-height: 28px;--cl-modal-bg: white;--fc0: #606367;--fc1: black;--fc2: red;--fc3: white;--fc4: green;--fc5: blue;--cl-widget-bg: white;--cl-widget-header-btn-active: #A9FFA1;--cl-widget-header-border: none;--cl-text-widget-font: #6b6464;--cl-widget-header-bg: var(--cl-header-bg);--cl-widget-header-txt: var(--cl-header-txt);--cl-widget-filter-txt: #606367;--cl-widget-filter-bg: var(--cl-header-bg);--widget-header-btn-opacity: 1;--widget-header-btn-filter: none;--widget-header-btn-active-filter: contrast(.7) sepia(1) brightness(1) hue-rotate(-898deg) contrast(9);--cl-input-bg: white;--cl-input-border: #EBEBEA;--cl-check-border: #606367;--cl-input-placeholder: rgba(96, 99, 103, .6);--cl-input-text: #606367;--cl-input-height: 26px;--cl-pivot-cell-border: rgb(208, 208, 208);--cl-pivot-cell-hover: #FFF7D7;--pivot-row-hover: inset 0 0 30px #fff5b9;--sidebar-width: 322px;--cl-scrollbar: #606367}[_nghost-%COMP%]{display:flex;flex:0 0 var(--header-height);justify-content:space-between;background-color:var(--cl-header-bg);height:var(--header-height);width:100%;border-bottom:1px solid var(--cl-header-border)}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{flex-shrink:1;min-width:0;width:100%}@media (max-width: 576px){[_nghost-%COMP%] > div[_ngcontent-%COMP%]:first-child{width:100%}}.btn-side-menu[_ngcontent-%COMP%]{flex-shrink:0}.breadcrumbs[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:1;min-width:0;max-width:60%;overflow:visible}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%]{display:flex;max-height:17px}.breadcrumbs[_ngcontent-%COMP%] > .items[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{position:relative}@media (max-width: 576px){.breadcrumbs[_ngcontent-%COMP%]{max-width:100%;width:100%}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{width:calc(100% - 6px);overflow:hidden;text-overflow:ellipsis}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:last-child{opacity:.6}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]{display:none}.breadcrumbs[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > .path.show-only-last[_ngcontent-%COMP%]:last-child{opacity:1;display:block;font-size:18px}}label[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);opacity:.7;flex:0 0 auto;margin-left:10px;margin-right:10px}label[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{margin-right:4px}h2[_ngcontent-%COMP%]{font-family:Oxygen;color:var(--cl-header-txt);font-size:18px;margin-left:16px;-webkit-user-select:none;user-select:none}@media (max-width: 576px){h2[_ngcontent-%COMP%]{margin-left:8px}}.btn[_ngcontent-%COMP%]{position:relative;height:100%;border:none;background-color:transparent;outline:none;box-shadow:none;transition:background-color .3s linear;color:var(--cl-header-ico);padding-left:8px;padding-right:8px}.btn[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{font-size:24px}.btn[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:8px}.btn.square[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px;width:var(--header-height)}.btn.square.s60[_ngcontent-%COMP%]{height:26px;width:calc(var(--header-height) * .4)}.btn.square[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{margin-right:0}.btn.active[_ngcontent-%COMP%]{background-color:var(--cl-sidebar-bg);height:calc(100% + 1px)}.btn[_ngcontent-%COMP%]:hover{background-color:var(--cl-hover)}.path[_ngcontent-%COMP%]{cursor:pointer;outline:none;text-decoration:none;font-weight:700;font-size:14px;color:#1c1d20;font-family:Oxygen}.path[_ngcontent-%COMP%]:hover{text-decoration:underline}.path[_ngcontent-%COMP%]:not(:last-child){color:var(--cl-header-txt)}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child){opacity:1}}.path[_ngcontent-%COMP%]:last-child{cursor:default;pointer-events:none;text-overflow:ellipsis;overflow:hidden}.path[_ngcontent-%COMP%]:not(:last-child):after{content:"/";font-family:Oxygen;opacity:.7;display:inline-block;margin-left:8px;margin-right:8px}@media (max-width: 576px){.path[_ngcontent-%COMP%]:not(:last-child):after{margin-left:4px;margin-right:4px}}@media (max-width: 576px){.path[_ngcontent-%COMP%]{font-size:13px}}.btn-goto[_ngcontent-%COMP%]{margin-left:8px}.search-block[_ngcontent-%COMP%]{padding-right:20px}@media (max-width: 576px){.no-opacity[_ngcontent-%COMP%]{opacity:1!important}}.btn-mobile-filter[_ngcontent-%COMP%]{flex-shrink:0;height:100%;min-width:var(--header-height)}.btn-mobile-filter[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:calc(var(--header-height) * .5);opacity:.6}.lang-selector[_ngcontent-%COMP%]{border:none;width:50px;padding:0;margin-right:10px}.lang-selector[_ngcontent-%COMP%]:focus, .lang-selector[_ngcontent-%COMP%]:active{outline:none;border:none}.btn-more[_ngcontent-%COMP%]{width:20px;height:20px;display:inline-flex;justify-content:center;border-radius:2px}.btn-more.pressed[_ngcontent-%COMP%]{background:var(--cl-hover)}.btn-more[_ngcontent-%COMP%]:after{display:none}.dropdown-more[_ngcontent-%COMP%]{position:absolute;left:-10px;top:30px;padding:20px;background-color:var(--cl-header-bg);box-shadow:0 0 10px #0000001a;border-radius:5px;z-index:4}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:not(:last-child){margin-bottom:10px}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:last-child{cursor:pointer;color:var(--cl-header-txt);pointer-events:auto}.dropdown-more[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:after{display:none}.btn-share[_ngcontent-%COMP%] > dsw-share-dashboard[_ngcontent-%COMP%]{display:none}.btn-share[_ngcontent-%COMP%]:hover, .btn-share[_ngcontent-%COMP%]:active{transform:none}.btn-share[_ngcontent-%COMP%]:hover > dsw-share-dashboard[_ngcontent-%COMP%], .btn-share[_ngcontent-%COMP%]:active > dsw-share-dashboard[_ngcontent-%COMP%]{display:block}dsw-share-dashboard[_ngcontent-%COMP%]{position:absolute;top:17px;left:-20px}.icon-plus[_ngcontent-%COMP%]{font-weight:600;font-family:serif;font-size:23px}dsw-search-input[_ngcontent-%COMP%]{width:min(15vw,300px);margin-right:20px}@media (max-width: 576px){dsw-search-input[_ngcontent-%COMP%]{transition:width .2s linear;width:0;overflow:hidden}dsw-search-input.active[_ngcontent-%COMP%]{width:120px}}']});let n=e;return n})();var LA=["sidebar"];function FA(n,e){n&1&&me(0,"dsw-header")}function BA(n,e){if(n&1){let t=Ce();B(0,"dsw-sidebar",null,0),ee("@toggle.done",function(){ce(t);let r=ne();return ue(r.onAnimDone())})("@toggle.start",function(){ce(t);let r=ne();return ue(r.onAnimStart())}),O()}n&2&&te("@toggle",void 0)}function OA(n,e){if(n&1&&me(0,"dsw-modal",2),n&2){let t=e.$implicit;te("data",t)("ngClass",t.class)}}function RA(n,e){if(n&1&&me(0,"dsw-error",3),n&2){let t=e.$implicit;te("@toggleError",!t.isLeft)("@toggleErrorLeft",t.isLeft)("error",t)}}var Dv=(()=>{let e=class e{constructor(s,r,i,o,a){this.sbs=s,this.hs=r,this.es=i,this.ms=o,this.router=a,this.title="DeepSeeWeb",this.isSidebar=!1,this.errors=[]}ngOnInit(){this.router.events.subscribe(s=>{s instanceof Up&&this.sbs.hide()}),this.sbs.sidebarToggle.subscribe(s=>{this.isSidebar=!!s})}onAnimDone(){this.sbs.onAnimEnd.emit()}onAnimStart(){this.sbs.onAnimStart.emit()}trackError(s,r){return r.id}};e.\u0275fac=function(r){return new(r||e)(M(Tt),M(pn),M(tr),M(rr),M(ln))},e.\u0275cmp=Pe({type:e,selectors:[["app-root"]],viewQuery:function(r,i){if(r&1&&ut(LA,5),r&2){let o;ht(o=pt())&&(i.sidebar=o.first)}},standalone:!0,features:[De],decls:11,vars:8,consts:[["sidebar",""],[1,"content"],[3,"data","ngClass"],[3,"error"]],template:function(r,i){r&1&&(we(0,FA,1,0,"dsw-header"),ye(1,"async"),B(2,"div",1),we(3,BA,2,1,"dsw-sidebar"),me(4,"router-outlet"),O(),zt(5,OA,1,2,"dsw-modal",2,rn),ye(7,"async"),zt(8,RA,1,3,"dsw-error",3,i.trackError,!0),ye(10,"async")),r&2&&(pe(Ee(1,2,i.hs.visible$)?0:-1),D(3),pe(i.isSidebar?3:-1),D(2),Gt(Ee(7,4,i.ms.modals)),D(3),Gt(Ee(10,6,i.es.errors$)))},dependencies:[Pv,Cv,jp,Iv,Bo,Tv,er],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}.content[_ngcontent-%COMP%]{display:flex;flex:1 1 100%;height:100%;min-height:0}"],data:{animation:[xv,_v,Av]}});let n=e;return n})();Jr.production&&void 0;Vp(Dv,bv).catch(n=>console.error(n)); diff --git a/dist/polyfills-6EAL64PA.js b/dist/polyfills-6EAL64PA.js deleted file mode 100644 index f67a2daa..00000000 --- a/dist/polyfills-6EAL64PA.js +++ /dev/null @@ -1,2 +0,0 @@ -var ie=globalThis;function Q(e){return(ie.__Zone_symbol_prefix||"__zone_symbol__")+e}function ft(){let e=ie.performance;function n(j){e&&e.mark&&e.mark(j)}function a(j,r){e&&e.measure&&e.measure(j,r)}n("Zone");let $=class ${static assertZonePatched(){if(ie.Promise!==D.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=$.current;for(;r.parent;)r=r.parent;return r}static get current(){return k.zone}static get currentTask(){return S}static __load_patch(r,i,s=!1){if(D.hasOwnProperty(r)){let b=ie[Q("forceDuplicateZoneCheck")]===!0;if(!s&&b)throw Error("Already loaded patch: "+r)}else if(!ie["__Zone_disable_"+r]){let b="Zone:"+r;n(b),D[r]=i(ie,$,w),a(b,b)}}get parent(){return this._parent}get name(){return this._name}constructor(r,i){this._parent=r,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(r){let i=this.getZoneWith(r);if(i)return i._properties[r]}getZoneWith(r){let i=this;for(;i;){if(i._properties.hasOwnProperty(r))return i;i=i._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,i){if(typeof r!="function")throw new Error("Expecting function got: "+r);let s=this._zoneDelegate.intercept(this,r,i),b=this;return function(){return b.runGuarded(s,this,arguments,i)}}run(r,i,s,b){k={parent:k,zone:this};try{return this._zoneDelegate.invoke(this,r,i,s,b)}finally{k=k.parent}}runGuarded(r,i=null,s,b){k={parent:k,zone:this};try{try{return this._zoneDelegate.invoke(this,r,i,s,b)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{k=k.parent}}runTask(r,i,s){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(r.state===X&&(r.type===U||r.type===g))return;let b=r.state!=F;b&&r._transitionTo(F,d),r.runCount++;let x=S;S=r,k={parent:k,zone:this};try{r.type==g&&r.data&&!r.data.isPeriodic&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,r,i,s)}catch(M){if(this._zoneDelegate.handleError(this,M))throw M}}finally{r.state!==X&&r.state!==Y&&(r.type==U||r.data&&r.data.isPeriodic?b&&r._transitionTo(d,F):(r.runCount=0,this._updateTaskCount(r,-1),b&&r._transitionTo(X,F,X))),k=k.parent,S=x}}scheduleTask(r){if(r.zone&&r.zone!==this){let s=this;for(;s;){if(s===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);s=s.parent}}r._transitionTo(v,X);let i=[];r._zoneDelegates=i,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(s){throw r._transitionTo(Y,v,X),this._zoneDelegate.handleError(this,s),s}return r._zoneDelegates===i&&this._updateTaskCount(r,1),r.state==v&&r._transitionTo(d,v),r}scheduleMicroTask(r,i,s,b){return this.scheduleTask(new _(B,r,i,s,b,void 0))}scheduleMacroTask(r,i,s,b,x){return this.scheduleTask(new _(g,r,i,s,b,x))}scheduleEventTask(r,i,s,b,x){return this.scheduleTask(new _(U,r,i,s,b,x))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||te).name+"; Execution: "+this.name+")");if(!(r.state!==d&&r.state!==F)){r._transitionTo(q,d,F);try{this._zoneDelegate.cancelTask(this,r)}catch(i){throw r._transitionTo(Y,q),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(r,-1),r._transitionTo(X,q),r.runCount=0,r}}_updateTaskCount(r,i){let s=r._zoneDelegates;i==-1&&(r._zoneDelegates=null);for(let b=0;bj.hasTask(i,s),onScheduleTask:(j,r,i,s)=>j.scheduleTask(i,s),onInvokeTask:(j,r,i,s,b,x)=>j.invokeTask(i,s,b,x),onCancelTask:(j,r,i,s)=>j.cancelTask(i,s)};class f{get zone(){return this._zone}constructor(r,i,s){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=r,this._parentDelegate=i,this._forkZS=s&&(s&&s.onFork?s:i._forkZS),this._forkDlgt=s&&(s.onFork?i:i._forkDlgt),this._forkCurrZone=s&&(s.onFork?this._zone:i._forkCurrZone),this._interceptZS=s&&(s.onIntercept?s:i._interceptZS),this._interceptDlgt=s&&(s.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=s&&(s.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=s&&(s.onInvoke?s:i._invokeZS),this._invokeDlgt=s&&(s.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=s&&(s.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=s&&(s.onHandleError?s:i._handleErrorZS),this._handleErrorDlgt=s&&(s.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=s&&(s.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=s&&(s.onScheduleTask?s:i._scheduleTaskZS),this._scheduleTaskDlgt=s&&(s.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=s&&(s.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=s&&(s.onInvokeTask?s:i._invokeTaskZS),this._invokeTaskDlgt=s&&(s.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=s&&(s.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=s&&(s.onCancelTask?s:i._cancelTaskZS),this._cancelTaskDlgt=s&&(s.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=s&&(s.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let b=s&&s.onHasTask,x=i&&i._hasTaskZS;(b||x)&&(this._hasTaskZS=b?s:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,s.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),s.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),s.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(r,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,r,i):new t(r,i)}intercept(r,i,s){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,r,i,s):i}invoke(r,i,s,b,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,r,i,s,b,x):i.apply(s,b)}handleError(r,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,r,i):!0}scheduleTask(r,i){let s=i;if(this._scheduleTaskZS)this._hasTaskZS&&s._zoneDelegates.push(this._hasTaskDlgtOwner),s=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,r,i),s||(s=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==B)W(i);else throw new Error("Task is missing scheduleFn.");return s}invokeTask(r,i,s,b){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,r,i,s,b):i.callback.apply(s,b)}cancelTask(r,i){let s;if(this._cancelTaskZS)s=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,r,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");s=i.cancelFn(i)}return s}hasTask(r,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,r,i)}catch(s){this.handleError(r,s)}}_updateTaskCount(r,i){let s=this._taskCounts,b=s[r],x=s[r]=b+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(b==0||x==0){let M={microTask:s.microTask>0,macroTask:s.macroTask>0,eventTask:s.eventTask>0,change:r};this.hasTask(this._zone,M)}}}class _{constructor(r,i,s,b,x,M){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=r,this.source=i,this.data=b,this.scheduleFn=x,this.cancelFn=M,!s)throw new Error("callback is not defined");this.callback=s;let de=this;r===U&&b&&b.useG?this.invoke=_.invokeTask:this.invoke=function(){return _.invokeTask.call(ie,de,this,arguments)}}static invokeTask(r,i,s){r||(r=this),K++;try{return r.runCount++,r.zone.runTask(r,i,s)}finally{K==1&&A(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,v)}_transitionTo(r,i,s){if(this._state===i||this._state===s)this._state=r,r==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${r}', expecting state '${i}'${s?" or '"+s+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let E=Q("setTimeout"),m=Q("Promise"),C=Q("then"),T=[],I=!1,P;function Z(j){if(P||ie[m]&&(P=ie[m].resolve(0)),P){let r=P[C];r||(r=P.then),r.call(P,j)}else ie[E](j,0)}function W(j){K===0&&T.length===0&&Z(A),j&&T.push(j)}function A(){if(!I){for(I=!0;T.length;){let j=T;T=[];for(let r=0;rk,onUnhandledError:z,microtaskDrainDone:z,scheduleMicroTask:W,showUncaughtError:()=>!t[Q("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:z,patchMethod:()=>z,bindArguments:()=>[],patchThen:()=>z,patchMacroTask:()=>z,patchEventPrototype:()=>z,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>z,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>z,wrapWithCurrentZone:()=>z,filterProperties:()=>[],attachOriginToPatched:()=>z,_redefineProperty:()=>z,patchCallbacks:()=>z,nativeScheduleMicroTask:Z},k={parent:null,zone:new t(null,null)},S=null,K=0;function z(){}return a("Zone","Zone"),t}function ht(){let e=globalThis,n=e[Q("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=ft(),e.Zone}var ve=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=Q(He),Ie=Q(xe),ce="true",ae="false",be=Q("");function Ge(e,n){return Zone.current.wrap(e,n)}function Ve(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var H=Q,Se=typeof window<"u",ye=Se?window:void 0,J=Se&&ye||globalThis,Et="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ge(e[a],n+"_"+a));return e}function Tt(e,n){let a=e.constructor.name;for(let t=0;t{let m=function(){return E.apply(this,Fe(arguments,a+"."+c))};return ue(m,E),m})(f)}}}function Qe(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var et=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in J)&&typeof J.process<"u"&&J.process.toString()==="[object process]",Be=!De&&!et&&!!(Se&&ye.HTMLElement),tt=typeof J.process<"u"&&J.process.toString()==="[object process]"&&!et&&!!(Se&&ye.HTMLElement),Ce={},Ye=function(e){if(e=e||J.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=H("ON_PROPERTY"+e.type));let a=this||e.target||J,t=a[n],c;if(Be&&a===ye&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=ve(e,n);if(!t&&a&&ve(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=H("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,_=t.set,E=n.slice(2),m=Ce[E];m||(m=Ce[E]=H("ON_PROPERTY"+E)),t.set=function(C){let T=this;if(!T&&e===J&&(T=J),!T)return;typeof T[m]=="function"&&T.removeEventListener(E,Ye),_&&_.call(T,null),T[m]=C,typeof C=="function"&&T.addEventListener(E,Ye,!1)},t.get=function(){let C=this;if(!C&&e===J&&(C=J),!C)return null;let T=C[m];if(T)return T;if(f){let I=f.call(this);if(I)return t.set.call(this,I),typeof C[Et]=="function"&&C.removeAttribute(n),I}return null},Ae(e,n,t),e[c]=!0}function nt(e,n,a){if(n)for(let t=0;tfunction(_,E){let m=a(_,E);return m.cbIdx>=0&&typeof E[m.cbIdx]=="function"?Ve(m.name,E[m.cbIdx],m,c):f.apply(_,E)})}function ue(e,n){e[H("OriginalDelegate")]=n}var Je=!1,Me=!1;function yt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function mt(){if(Je)return Me;Je=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}var ge=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ge=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ge=!1}var pt={useG:!0},ee={},rt={},ot=new RegExp("^"+be+"(\\w+)(true|false)$"),st=H("propagationStopped");function it(e,n){let a=(n?n(e):e)+ae,t=(n?n(e):e)+ce,c=be+a,f=be+t;ee[e]={},ee[e][ae]=c,ee[e][ce]=f}function kt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,_=t&&t.listeners||"eventListeners",E=t&&t.rmAll||"removeAllListeners",m=H(c),C="."+c+":",T="prependListener",I="."+T+":",P=function(v,d,F){if(v.isRemoved)return;let q=v.callback;typeof q=="object"&&q.handleEvent&&(v.callback=g=>q.handleEvent(g),v.originalDelegate=q);let Y;try{v.invoke(v,d,[F])}catch(g){Y=g}let B=v.options;if(B&&typeof B=="object"&&B.once){let g=v.originalDelegate?v.originalDelegate:v.callback;d[f].call(d,F.type,g,B)}return Y};function Z(v,d,F){if(d=d||e.event,!d)return;let q=v||d.target||e,Y=q[ee[d.type][F?ce:ae]];if(Y){let B=[];if(Y.length===1){let g=P(Y[0],q,d);g&&B.push(g)}else{let g=Y.slice();for(let U=0;U{throw U})}}}let W=function(v){return Z(this,v,!1)},A=function(v){return Z(this,v,!0)};function te(v,d){if(!v)return!1;let F=!0;d&&d.useG!==void 0&&(F=d.useG);let q=d&&d.vh,Y=!0;d&&d.chkDup!==void 0&&(Y=d.chkDup);let B=!1;d&&d.rt!==void 0&&(B=d.rt);let g=v;for(;g&&!g.hasOwnProperty(c);)g=je(g);if(!g&&v[c]&&(g=v),!g||g[m])return!1;let U=d&&d.eventNameToString,D={},w=g[m]=g[c],k=g[H(f)]=g[f],S=g[H(_)]=g[_],K=g[H(E)]=g[E],z;d&&d.prepend&&(z=g[H(d.prepend)]=g[d.prepend]);function $(o,u){return!ge&&typeof o=="object"&&o?!!o.capture:!ge||!u?o:typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}}let j=function(o){if(!D.isExisting)return w.call(D.target,D.eventName,D.capture?A:W,D.options)},r=function(o){if(!o.isRemoved){let u=ee[o.eventName],p;u&&(p=u[o.capture?ce:ae]);let R=p&&o.target[p];if(R){for(let y=0;yne.zone.cancelTask(ne);o.call(_e,"abort",se,{once:!0}),ne.removeAbortListener=()=>_e.removeEventListener("abort",se)}if(D.target=null,pe&&(pe.taskData=null),Ue&&(D.options.once=!0),!ge&&typeof ne.options=="boolean"||(ne.options=oe),ne.target=N,ne.capture=Oe,ne.eventName=L,V&&(ne.originalDelegate=G),O?Ee.unshift(ne):Ee.push(ne),y)return N}};return g[c]=l(w,C,x,M,B),z&&(g[T]=l(z,I,s,M,B,!0)),g[f]=function(){let o=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let p=arguments[2],R=p?typeof p=="boolean"?!0:p.capture:!1,y=arguments[1];if(!y)return k.apply(this,arguments);if(q&&!q(k,y,o,arguments))return;let O=ee[u],N;O&&(N=O[R?ce:ae]);let L=N&&o[N];if(L)for(let G=0;Gfunction(c,f){c[st]=!0,t&&t.apply(c,f)})}function bt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=H("zoneTask");function Te(e,n,a,t){let c=null,f=null;n+=t,a+=t;let _={};function E(C){let T=C.data;return T.args[0]=function(){return C.invoke.apply(this,arguments)},T.handleId=c.apply(e,T.args),C}function m(C){return f.call(e,C.data.handleId)}c=le(e,n,C=>function(T,I){if(typeof I[0]=="function"){let P={isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?I[1]||0:void 0,args:I},Z=I[0];I[0]=function(){try{return Z.apply(this,arguments)}finally{P.isPeriodic||(typeof P.handleId=="number"?delete _[P.handleId]:P.handleId&&(P.handleId[Re]=null))}};let W=Ve(n,I[0],P,E,m);if(!W)return W;let A=W.data.handleId;return typeof A=="number"?_[A]=W:A&&(A[Re]=W),A&&A.ref&&A.unref&&typeof A.ref=="function"&&typeof A.unref=="function"&&(W.ref=A.ref.bind(A),W.unref=A.unref.bind(A)),typeof A=="number"||A?A:W}else return C.apply(e,I)}),f=le(e,a,C=>function(T,I){let P=I[0],Z;typeof P=="number"?Z=_[P]:(Z=P&&P[Re],Z||(Z=P)),Z&&typeof Z.type=="string"?Z.state!=="notScheduled"&&(Z.cancelFn&&Z.data.isPeriodic||Z.runCount===0)&&(typeof P=="number"?delete _[P]:P&&(P[Re]=null),Z.zone.cancelTask(Z)):C.apply(e,I)})}function Pt(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:_}=n.getGlobalObjects();for(let m=0;mf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Ke(e,n,a,t){if(!e)return;let c=at(e,n,a);nt(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ct(e,n){if(De&&!tt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=yt()?[{target:c,ignoreProperties:["error"]}]:[];Ke(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";Te(n,a,t,"Timeout"),Te(n,a,t,"Interval"),Te(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{Te(n,"request","cancel","AnimationFrame"),Te(n,"mozRequest","mozCancel","AnimationFrame"),Te(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,T){return a.current.run(_,n,T,m)})}}),e.__load_patch("EventTarget",(n,a,t)=>{Rt(n,t),wt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ct(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Pt(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=H("xhrTask"),c=H("xhrSync"),f=H("xhrListener"),_=H("xhrScheduled"),E=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function C(T){let I=T.XMLHttpRequest;if(!I)return;let P=I.prototype;function Z(w){return w[t]}let W=P[Le],A=P[Ie];if(!W){let w=T.XMLHttpRequestEventTarget;if(w){let k=w.prototype;W=k[Le],A=k[Ie]}}let te="readystatechange",X="scheduled";function v(w){let k=w.data,S=k.target;S[_]=!1,S[m]=!1;let K=S[f];W||(W=S[Le],A=S[Ie]),K&&A.call(S,te,K);let z=S[f]=()=>{if(S.readyState===S.DONE)if(!k.aborted&&S[_]&&w.state===X){let j=S[a.__symbol__("loadfalse")];if(S.status!==0&&j&&j.length>0){let r=w.invoke;w.invoke=function(){let i=S[a.__symbol__("loadfalse")];for(let s=0;sfunction(w,k){return w[c]=k[2]==!1,w[E]=k[1],q.apply(w,k)}),Y="XMLHttpRequest.send",B=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),U=le(P,"send",()=>function(w,k){if(a.current[g]===!0||w[c])return U.apply(w,k);{let S={target:w,url:w[E],isPeriodic:!1,args:k,aborted:!1},K=Ve(Y,d,S,v,F);w&&w[m]===!0&&!S.aborted&&K.state===X&&K.invoke()}}),D=le(P,"abort",()=>function(w,k){let S=Z(w);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(a.current[B]===!0)return D.apply(w,k)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&Tt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){ct(n,c).forEach(E=>{let m=n.PromiseRejectionEvent;if(m){let C=new m(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}n.PromiseRejectionEvent&&(a[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{bt(n,t)})}function Dt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function _(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let E=t.symbol,m=[],C=n[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,T=E("Promise"),I=E("then"),P="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;m.length;){let h=m.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){W(l)}}};let Z=E("unhandledPromiseRejectionHandler");function W(h){t.onUnhandledError(h);try{let l=a[Z];typeof l=="function"&&l.call(this,h)}catch{}}function A(h){return h&&h.then}function te(h){return h}function X(h){return M.reject(h)}let v=E("state"),d=E("value"),F=E("finally"),q=E("parentPromiseValue"),Y=E("parentPromiseState"),B="Promise.then",g=null,U=!0,D=!1,w=0;function k(h,l){return o=>{try{$(h,l,o)}catch(u){$(h,!1,u)}}}let S=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",z=E("currentTaskTrace");function $(h,l,o){let u=S();if(h===o)throw new TypeError(K);if(h[v]===g){let p=null;try{(typeof o=="object"||typeof o=="function")&&(p=o&&o.then)}catch(R){return u(()=>{$(h,!1,R)})(),h}if(l!==D&&o instanceof M&&o.hasOwnProperty(v)&&o.hasOwnProperty(d)&&o[v]!==g)r(o),$(h,o[v],o[d]);else if(l!==D&&typeof p=="function")try{p.call(o,u(k(h,l)),u(k(h,!1)))}catch(R){u(()=>{$(h,!1,R)})()}else{h[v]=l;let R=h[d];if(h[d]=o,h[F]===F&&l===U&&(h[v]=h[Y],h[d]=h[q]),l===D&&o instanceof Error){let y=a.currentTask&&a.currentTask.data&&a.currentTask.data[P];y&&f(o,z,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y{try{let O=h[d],N=!!o&&F===o[F];N&&(o[q]=O,o[Y]=R);let L=l.run(y,void 0,N&&y!==X&&y!==te?[]:[O]);$(o,!0,L)}catch(O){$(o,!1,O)}},o)}let s="function ZoneAwarePromise() { [native code] }",b=function(){},x=n.AggregateError;class M{static toString(){return s}static resolve(l){return l instanceof M?l:$(new this(null),U,l)}static reject(l){return $(new this(null),D,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new x([],"All promises were rejected"));let o=[],u=0;try{for(let y of l)u++,o.push(M.resolve(y))}catch{return Promise.reject(new x([],"All promises were rejected"))}if(u===0)return Promise.reject(new x([],"All promises were rejected"));let p=!1,R=[];return new M((y,O)=>{for(let N=0;N{p||(p=!0,y(L))},L=>{R.push(L),u--,u===0&&(p=!0,O(new x(R,"All promises were rejected")))})})}static race(l){let o,u,p=new this((O,N)=>{o=O,u=N});function R(O){o(O)}function y(O){u(O)}for(let O of l)A(O)||(O=this.resolve(O)),O.then(R,y);return p}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,p,R=new this((L,G)=>{u=L,p=G}),y=2,O=0,N=[];for(let L of l){A(L)||(L=this.resolve(L));let G=O;try{L.then(V=>{N[G]=o?o.thenCallback(V):V,y--,y===0&&u(N)},V=>{o?(N[G]=o.errorCallback(V),y--,y===0&&u(N)):p(V)})}catch(V){p(V)}y++,O++}return y-=2,y===0&&u(N),R}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[v]=g,o[d]=[];try{let u=S();l&&l(u(k(o,U)),u(k(o,D)))}catch(u){$(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let p=new u(b),R=a.current;return this[v]==g?this[d].push(R,p,l,o):i(this,R,p,l,o),p}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(b);u[F]=F;let p=a.current;return this[v]==g?this[d].push(p,u,l,l):i(this,p,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let de=n[T]=n.Promise;n.Promise=M;let me=E("thenPatched");function he(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[I]=u,h.prototype.then=function(p,R){return new M((O,N)=>{u.call(this,O,N)}).then(p,R)},h[me]=!0}t.patchThen=he;function Pe(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let p=u.constructor;return p[me]||he(p),u}}return de&&(he(de),le(n,"fetch",h=>Pe(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=m,M})}function Ot(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=H("OriginalDelegate"),c=H("Promise"),f=H("Error"),_=function(){if(typeof this=="function"){let T=this[t];if(T)return typeof T=="function"?a.call(T):Object.prototype.toString.call(T);if(this===Promise){let I=n[c];if(I)return a.call(I)}if(this===Error){let I=n[f];if(I)return a.call(I)}}return a.call(this)};_[t]=a,Function.prototype.toString=_;let E=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:E.call(this)}})}function Nt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let _=n[f]=n[t];n[t]=function(E,m,C){return m&&m.prototype&&c.forEach(function(T){let I=`${a}.${t}::`+T,P=m.prototype;try{if(P.hasOwnProperty(T)){let Z=e.ObjectGetOwnPropertyDescriptor(P,T);Z&&Z.value?(Z.value=e.wrapWithCurrentZone(Z.value,I),e._redefineProperty(m.prototype,T,Z)):P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}else P[T]&&(P[T]=e.wrapWithCurrentZone(P[T],I))}catch{}}),_.call(n,E,m,C)},e.attachOriginToPatched(n[t],_)}function Lt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=nt,t.patchMethod=le,t.bindArguments=Fe,t.patchMacroTask=gt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),_=a.__symbol__("UNPATCHED_EVENTS");n[_]&&(n[f]=n[_]),n[f]&&(a[f]=a[_]=n[f]),t.patchEventPrototype=vt,t.patchEventTarget=kt,t.isIEOrEdge=mt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ve,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ke,t.wrapWithCurrentZone=Ge,t.filterProperties=at,t.attachOriginToPatched=ue,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:rt,zoneSymbolEventNames:ee,eventNames:c,isBrowser:Be,isMix:tt,isNode:De,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:be,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function It(e){Dt(e),Ot(e),Lt(e)}var lt=ht();It(lt);St(lt); diff --git a/dist/polyfills-FFHMD2TL.js b/dist/polyfills-FFHMD2TL.js new file mode 100644 index 00000000..b01b7911 --- /dev/null +++ b/dist/polyfills-FFHMD2TL.js @@ -0,0 +1,2 @@ +var ce=globalThis;function te(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.performance;function n(M){e&&e.mark&&e.mark(M)}function a(M,s){e&&e.measure&&e.measure(M,s)}n("Zone");class t{static{this.__symbol__=te}static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=t.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,o=!1){if(S.hasOwnProperty(s)){let g=ce[te("forceDuplicateZoneCheck")]===!0;if(!o&&g)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let g="Zone:"+s;n(g),S[s]=i(ce,t,w),a(g,g)}}get parent(){return this._parent}get name(){return this._name}constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let o=this._zoneDelegate.intercept(this,s,i),g=this;return function(){return g.runGuarded(o,this,arguments,i)}}run(s,i,o,g){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,o,g)}finally{b=b.parent}}runGuarded(s,i=null,o,g){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,o,g)}catch(V){if(this._zoneDelegate.handleError(this,V))throw V}}finally{b=b.parent}}runTask(s,i,o){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let g=s,{type:V,data:{isPeriodic:ee=!1,isRefreshable:Z=!1}={}}=s;if(s.state===q&&(V===z||V===y))return;let he=s.state!=A;he&&g._transitionTo(A,d);let _e=D;D=g,b={parent:b,zone:this};try{V==y&&s.data&&!ee&&!Z&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,g,i,o)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(V==z||ee||Z&&Q===k)he&&g._transitionTo(d,A,k);else{let Ee=g._zoneDelegates;this._updateTaskCount(g,-1),he&&g._transitionTo(q,A,q),Z&&(g._zoneDelegates=Ee)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let o=this;for(;o;){if(o===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);o=o.parent}}s._transitionTo(k,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(o){throw s._transitionTo(X,k,q),this._zoneDelegate.handleError(this,o),o}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==k&&s._transitionTo(d,k),s}scheduleMicroTask(s,i,o,g){return this.scheduleTask(new E(G,s,i,o,g,void 0))}scheduleMacroTask(s,i,o,g,V){return this.scheduleTask(new E(y,s,i,o,g,V))}scheduleEventTask(s,i,o,g,V){return this.scheduleTask(new E(z,s,i,o,g,V))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(x,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,x),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,x),s.runCount=-1,s}}_updateTaskCount(s,i){let o=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let g=0;gM.hasTask(i,o),onScheduleTask:(M,s,i,o)=>M.scheduleTask(i,o),onInvokeTask:(M,s,i,o,g,V)=>M.invokeTask(i,o,g,V),onCancelTask:(M,s,i,o)=>M.cancelTask(i,o)};class f{get zone(){return this._zone}constructor(s,i,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=s,this._parentDelegate=i,this._forkZS=o&&(o&&o.onFork?o:i._forkZS),this._forkDlgt=o&&(o.onFork?i:i._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:i._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:i._interceptZS),this._interceptDlgt=o&&(o.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:i._invokeZS),this._invokeDlgt=o&&(o.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:i._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:i._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:i._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:i._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let g=o&&o.onHasTask,V=i&&i._hasTaskZS;(g||V)&&(this._hasTaskZS=g?o:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new t(s,i)}intercept(s,i,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,o):i}invoke(s,i,o,g,V){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,o,g,V):i.apply(o,g)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let o=i;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),o||(o=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==G)U(i);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(s,i,o,g){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,o,g):i.callback.apply(o,g)}cancelTask(s,i){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");o=i.cancelFn(i)}return o}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(o){this.handleError(s,o)}}_updateTaskCount(s,i){let o=this._taskCounts,g=o[s],V=o[s]=g+i;if(V<0)throw new Error("More tasks executed then were scheduled.");if(g==0||V==0){let ee={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class E{constructor(s,i,o,g,V,ee){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=s,this.source=i,this.data=g,this.scheduleFn=V,this.cancelFn=ee,!o)throw new Error("callback is not defined");this.callback=o;let Z=this;s===z&&g&&g.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,Z,this,arguments)}}static invokeTask(s,i,o){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,o)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,k)}_transitionTo(s,i,o){if(this._state===i||this._state===o)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),p=te("Promise"),C=te("then"),_=[],P=!1,I;function H(M){if(I||ce[p]&&(I=ce[p].resolve(0)),I){let s=I[C];s||(s=I.then),s.call(I,M)}else ce[T](M,0)}function U(M){K===0&&_.length===0&&H($),M&&_.push(M)}function $(){if(!P){for(P=!0;_.length;){let M=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,showUncaughtError:()=>!t[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new t(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),t}function _t(){let e=globalThis,n=e[te("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=te(He),Ie=te(xe),ae="true",le="false",Pe=te("");function Ve(e,n){return Zone.current.wrap(e,n)}function Ge(e,n,a,t,c){return Zone.current.scheduleMacroTask(e,n,a,t,c)}var j=te,De=typeof window<"u",pe=De?window:void 0,Y=De&&pe||globalThis,gt="removeAttribute";function Fe(e,n){for(let a=e.length-1;a>=0;a--)typeof e[a]=="function"&&(e[a]=Ve(e[a],n+"_"+a));return e}function yt(e,n){let a=e.constructor.name;for(let t=0;t{let p=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(p,T),p})(f)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},mt=j("enable_beforeunload"),Ye=function(e){if(e=e||Y.event,!e)return;let n=Ce[e.type];n||(n=Ce[e.type]=j("ON_PROPERTY"+e.type));let a=this||e.target||Y,t=a[n],c;if(Be&&a===pe&&e.type==="error"){let f=e;c=t&&t.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&e.preventDefault()}else c=t&&t.apply(this,arguments),e.type==="beforeunload"&&Y[mt]&&typeof c=="string"?e.returnValue=c:c!=null&&!c&&e.preventDefault();return c};function $e(e,n,a){let t=be(e,n);if(!t&&a&&be(a,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete t.writable,delete t.value;let f=t.get,E=t.set,T=n.slice(2),p=Ce[T];p||(p=Ce[T]=j("ON_PROPERTY"+T)),t.set=function(C){let _=this;if(!_&&e===Y&&(_=Y),!_)return;typeof _[p]=="function"&&_.removeEventListener(T,Ye),E&&E.call(_,null),_[p]=C,typeof C=="function"&&_.addEventListener(T,Ye,!1)},t.get=function(){let C=this;if(!C&&e===Y&&(C=Y),!C)return null;let _=C[p];if(_)return _;if(f){let P=f.call(this);if(P)return t.set.call(this,P),typeof C[gt]=="function"&&C.removeAttribute(n),P}return null},Ae(e,n,t),e[c]=!0}function ot(e,n,a){if(n)for(let t=0;tfunction(E,T){let p=a(E,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ge(p.name,T[p.cbIdx],p,c):f.apply(E,T)})}function fe(e,n){e[j("OriginalDelegate")]=n}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var me=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){me=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{me=!1}var bt={useG:!0},ne={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=j("propagationStopped");function at(e,n){let a=(n?n(e):e)+le,t=(n?n(e):e)+ae,c=Pe+a,f=Pe+t;ne[e]={},ne[e][le]=c,ne[e][ae]=f}function Pt(e,n,a,t){let c=t&&t.add||He,f=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(c),C="."+c+":",_="prependListener",P="."+_+":",I=function(k,d,A){if(k.isRemoved)return;let x=k.callback;typeof x=="object"&&x.handleEvent&&(k.callback=y=>x.handleEvent(y),k.originalDelegate=x);let X;try{k.invoke(k,d,[A])}catch(y){X=y}let G=k.options;if(G&&typeof G=="object"&&G.once){let y=k.originalDelegate?k.originalDelegate:k.callback;d[f].call(d,A.type,y,G)}return X};function H(k,d,A){if(d=d||e.event,!d)return;let x=k||d.target||e,X=x[ne[d.type][A?ae:le]];if(X){let G=[];if(X.length===1){let y=I(X[0],x,d);y&&G.push(y)}else{let y=X.slice();for(let z=0;z{throw z})}}}let U=function(k){return H(this,k,!1)},$=function(k){return H(this,k,!0)};function J(k,d){if(!k)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let x=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let G=!1;d&&d.rt!==void 0&&(G=d.rt);let y=k;for(;y&&!y.hasOwnProperty(c);)y=je(y);if(!y&&k[c]&&(y=k),!y||y[p])return!1;let z=d&&d.eventNameToString,S={},w=y[p]=y[c],b=y[j(f)]=y[f],D=y[j(E)]=y[E],K=y[j(T)]=y[T],W;d&&d.prepend&&(W=y[j(d.prepend)]=y[d.prepend]);function M(r,u){return!me&&typeof r=="object"&&r?!!r.capture:!me||!u?r:typeof r=="boolean"?{capture:r,passive:!0}:r?typeof r=="object"&&r.passive!==!1?{...r,passive:!0}:r:{passive:!0}}let s=function(r){if(!S.isExisting)return w.call(S.target,S.eventName,S.capture?$:U,S.options)},i=function(r){if(!r.isRemoved){let u=ne[r.eventName],v;u&&(v=u[r.capture?ae:le]);let R=v&&r.target[v];if(R){for(let m=0;mre.zone.cancelTask(re);r.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(S.target=null,ke&&(ke.taskData=null),Ue&&(S.options.once=!0),!me&&typeof re.options=="boolean"||(re.options=se),re.target=N,re.capture=Oe,re.eventName=L,B&&(re.originalDelegate=F),O?ge.unshift(re):ge.push(re),m)return N}};return y[c]=l(w,C,ee,Z,G),W&&(y[_]=l(W,P,g,Z,G,!0)),y[f]=function(){let r=this||e,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],R=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(x&&!x(b,m,r,arguments))return;let O=ne[u],N;O&&(N=O[R?ae:le]);let L=N&&r[N];if(L)for(let F=0;Ffunction(c,f){c[ct]=!0,t&&t.apply(c,f)})}function Rt(e,n){n.patchMethod(e,"queueMicrotask",a=>function(t,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ye(e,n,a,t){let c=null,f=null;n+=t,a+=t;let E={};function T(C){let _=C.data;_.args[0]=function(){return C.invoke.apply(this,arguments)};let P=c.apply(e,_.args);return Qe(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Ke(P.refresh)),C}function p(C){let{handle:_,handleId:P}=C.data;return f.call(e,_??P)}c=ue(e,n,C=>function(_,P){if(Ke(P[0])){let I={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:x,isPeriodic:X,isRefreshable:G}=I;!X&&!G&&(x?delete E[x]:A&&(A[Re]=null))}};let U=Ge(n,P[0],I,T,p);if(!U)return U;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:k}=U.data;if($)E[$]=U;else if(J&&(J[Re]=U,q&&!k)){let d=J.refresh;J.refresh=function(){let{zone:A,state:x}=U;return x==="notScheduled"?(U._state="scheduled",A._updateTaskCount(U,1)):x==="running"&&(U._state="scheduling"),d.call(this)}}return J??$??U}else return C.apply(e,P)}),f=ue(e,a,C=>function(_,P){let I=P[0],H;Qe(I)?(H=E[I],delete E[I]):(H=I?.[Re],H?I[Re]=null:H=I),H?.type?H.cancelFn&&H.zone.cancelTask(H):C.apply(e,P)})}function Ct(e,n){let{isBrowser:a,isMix:t}=n.getGlobalObjects();if(!a&&!t||!e.customElements||!("customElements"in e))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",c)}function Dt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:t,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let p=0;pf.target===e);if(!t||t.length===0)return n;let c=t[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function et(e,n,a,t){if(!e)return;let c=ut(e,n,a);ot(e,c,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,t=[];if(Be){let c=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=kt()?[{target:c,ignoreProperties:["error"]}]:[];et(c,Ze(c),a&&a.concat(f),je(c))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[e.__symbol__("legacyPatch")];a&&a()}),e.__load_patch("timers",n=>{let a="set",t="clear";ye(n,a,t,"Timeout"),ye(n,a,t,"Interval"),ye(n,a,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{ye(n,"request","cancel","AnimationFrame"),ye(n,"mozRequest","mozCancel","AnimationFrame"),ye(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,a)=>{let t=["alert","prompt","confirm"];for(let c=0;cfunction(C,_){return a.current.run(E,n,_,p)})}}),e.__load_patch("EventTarget",(n,a,t)=>{St(n,t),Dt(n,t);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&t.patchEventTarget(n,t,[c.prototype])}),e.__load_patch("MutationObserver",(n,a,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,a,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,a,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,a,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,a,t)=>{Ct(n,t)}),e.__load_patch("XHR",(n,a)=>{C(n);let t=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled");function C(_){let P=_.XMLHttpRequest;if(!P)return;let I=P.prototype;function H(w){return w[t]}let U=I[Le],$=I[Ie];if(!U){let w=_.XMLHttpRequestEventTarget;if(w){let b=w.prototype;U=b[Le],$=b[Ie]}}let J="readystatechange",q="scheduled";function k(w){let b=w.data,D=b.target;D[E]=!1,D[p]=!1;let K=D[f];U||(U=D[Le],$=D[Ie]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[E]&&w.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=w.invoke;w.invoke=function(){let o=D[a.__symbol__("loadfalse")];for(let g=0;gfunction(w,b){return w[c]=b[2]==!1,w[T]=b[1],x.apply(w,b)}),X="XMLHttpRequest.send",G=j("fetchTaskAborting"),y=j("fetchTaskScheduling"),z=ue(I,"send",()=>function(w,b){if(a.current[y]===!0||w[c])return z.apply(w,b);{let D={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},K=Ge(X,d,D,k,A);w&&w[p]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(I,"abort",()=>function(w,b){let D=H(w);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[G]===!0)return S.apply(w,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&yt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,a)=>{function t(c){return function(f){lt(n,c).forEach(T=>{let p=n.PromiseRejectionEvent;if(p){let C=new p(c,{promise:f.promise,reason:f.rejection});T.invoke(C)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),a[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,a,t)=>{Rt(n,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(n,a,t)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function E(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=t.symbol,p=[],C=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),I="__creationTrace__";t.onUnhandledError=h=>{if(t.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},t.microtaskDrainDone=()=>{for(;p.length;){let h=p.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){U(l)}}};let H=T("unhandledPromiseRejectionHandler");function U(h){t.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&h.then}function J(h){return h}function q(h){return Z.reject(h)}let k=T("state"),d=T("value"),A=T("finally"),x=T("parentPromiseValue"),X=T("parentPromiseState"),G="Promise.then",y=null,z=!0,S=!1,w=0;function b(h,l){return r=>{try{M(h,l,r)}catch(u){M(h,!1,u)}}}let D=function(){let h=!1;return function(r){return function(){h||(h=!0,r.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function M(h,l,r){let u=D();if(h===r)throw new TypeError(K);if(h[k]===y){let v=null;try{(typeof r=="object"||typeof r=="function")&&(v=r&&r.then)}catch(R){return u(()=>{M(h,!1,R)})(),h}if(l!==S&&r instanceof Z&&r.hasOwnProperty(k)&&r.hasOwnProperty(d)&&r[k]!==y)i(r),M(h,r[k],r[d]);else if(l!==S&&typeof v=="function")try{v.call(r,u(b(h,l)),u(b(h,!1)))}catch(R){u(()=>{M(h,!1,R)})()}else{h[k]=l;let R=h[d];if(h[d]=r,h[A]===A&&l===z&&(h[k]=h[X],h[d]=h[x]),l===S&&r instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[I];m&&f(r,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!r&&A===r[A];N&&(r[x]=O,r[X]=R);let L=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);M(r,!0,L)}catch(O){M(r,!1,O)}},r)}let g="function ZoneAwarePromise() { [native code] }",V=function(){},ee=n.AggregateError;class Z{static toString(){return g}static resolve(l){return l instanceof Z?l:M(new this(null),z,l)}static reject(l){return M(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new Z((r,u)=>{l.resolve=r,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let r=[],u=0;try{for(let m of l)u++,r.push(Z.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,R=[];return new Z((m,O)=>{for(let N=0;N{v||(v=!0,m(L))},L=>{R.push(L),u--,u===0&&(v=!0,O(new ee(R,"All promises were rejected")))})})}static race(l){let r,u,v=new this((O,N)=>{r=O,u=N});function R(O){r(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(R,m);return v}static all(l){return Z.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof Z?this:Z).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,r){let u,v,R=new this((L,F)=>{u=L,v=F}),m=2,O=0,N=[];for(let L of l){$(L)||(L=this.resolve(L));let F=O;try{L.then(B=>{N[F]=r?r.thenCallback(B):B,m--,m===0&&u(N)},B=>{r?(N[F]=r.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),R}constructor(l){let r=this;if(!(r instanceof Z))throw new Error("Must be an instanceof Promise.");r[k]=y,r[d]=[];try{let u=D();l&&l(u(b(r,z)),u(b(r,S)))}catch(u){M(r,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return Z}then(l,r){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||Z);let v=new u(V),R=a.current;return this[k]==y?this[d].push(R,v,l,r):o(this,R,v,l,r),v}catch(l){return this.then(null,l)}finally(l){let r=this.constructor?.[Symbol.species];(!r||typeof r!="function")&&(r=Z);let u=new r(V);u[A]=A;let v=a.current;return this[k]==y?this[d].push(v,u,l,l):o(this,v,u,l,l),u}}Z.resolve=Z.resolve,Z.reject=Z.reject,Z.race=Z.race,Z.all=Z.all;let he=n[_]=n.Promise;n.Promise=Z;let _e=T("thenPatched");function Q(h){let l=h.prototype,r=c(l,"then");if(r&&(r.writable===!1||!r.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,R){return new Z((O,N)=>{u.call(this,O,N)}).then(v,R)},h[_e]=!0}t.patchThen=Q;function Ee(h){return function(l,r){let u=h.apply(l,r);if(u instanceof Z)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Ee(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=p,Z})}function It(e){e.__load_patch("toString",n=>{let a=Function.prototype.toString,t=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),E=function(){if(typeof this=="function"){let _=this[t];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};E[t]=a,Function.prototype.toString=E;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function Mt(e,n,a,t,c){let f=Zone.__symbol__(t);if(n[f])return;let E=n[f]=n[t];n[t]=function(T,p,C){return p&&p.prototype&&c.forEach(function(_){let P=`${a}.${t}::`+_,I=p.prototype;try{if(I.hasOwnProperty(_)){let H=e.ObjectGetOwnPropertyDescriptor(I,_);H&&H.value?(H.value=e.wrapWithCurrentZone(H.value,P),e._redefineProperty(p.prototype,_,H)):I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}else I[_]&&(I[_]=e.wrapWithCurrentZone(I[_],P))}catch{}}),E.call(n,T,p,C)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,a,t)=>{let c=Ze(n);t.patchOnProperties=ot,t.patchMethod=ue,t.bindArguments=Fe,t.patchMacroTask=pt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),E=a.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[f]=n[E]),n[f]&&(a[f]=a[E]=n[f]),t.patchEventPrototype=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft); diff --git a/module.xml b/module.xml index 5866ebce..e0146480 100644 --- a/module.xml +++ b/module.xml @@ -3,7 +3,7 @@ dsw - 4.0.14 + 4.0.15 module DeepSeeWeb (DSW) is an Angular UI layer for IRIS BI (DeepSee) dashboards diff --git a/package-lock.json b/package-lock.json index fbb2ce47..ec663d9d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -821,6 +821,34 @@ "typescript": ">=5.4 <5.6" } }, + "node_modules/@angular/compiler-cli/node_modules/chokidar": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", + "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "dev": true, + "dependencies": { + "readdirp": "^4.0.1" + }, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@angular/compiler-cli/node_modules/readdirp": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", + "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "dev": true, + "engines": { + "node": ">= 14.16.0" + }, + "funding": { + "type": "individual", + "url": "https://paulmillr.com/funding/" + } + }, "node_modules/@angular/core": { "version": "18.2.10", "resolved": "https://registry.npmjs.org/@angular/core/-/core-18.2.10.tgz", @@ -4732,19 +4760,27 @@ "license": "MIT" }, "node_modules/chokidar": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.1.tgz", - "integrity": "sha512-n8enUVCED/KVRQlab1hr3MVpcVMvxtZjmEa956u+4YijlmQED223XMSYj2tLuKvr4jcCTzNNMpQDUer72MMmzA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", "dev": true, - "license": "MIT", "dependencies": { - "readdirp": "^4.0.1" + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" }, "engines": { - "node": ">= 14.16.0" + "node": ">= 8.10.0" }, "funding": { "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" } }, "node_modules/chownr": { @@ -9428,17 +9464,27 @@ } }, "node_modules/readdirp": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.0.2.tgz", - "integrity": "sha512-yDMz9g+VaZkqBYS/ozoBJwaBhTbZo3UNYQHNRw1D3UFQB8oHB4uS/tAODO+ZLjGWmUbKnIlOWO+aaIiAxrUWHA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", "dev": true, - "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, "engines": { - "node": ">= 14.16.0" + "node": ">=8.10.0" + } + }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" }, "funding": { - "type": "individual", - "url": "https://paulmillr.com/funding/" + "url": "https://github.com/sponsors/jonschlinkert" } }, "node_modules/reflect-metadata": { @@ -9710,57 +9756,6 @@ "node": ">=14.0.0" } }, - "node_modules/sass/node_modules/chokidar": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", - "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", - "dev": true, - "license": "MIT", - "dependencies": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - }, - "engines": { - "node": ">= 8.10.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/sass/node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/sass/node_modules/readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "dev": true, - "license": "MIT", - "dependencies": { - "picomatch": "^2.2.1" - }, - "engines": { - "node": ">=8.10.0" - } - }, "node_modules/sax": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/sax/-/sax-1.4.1.tgz",